qBitrr2 5.5.3__py3-none-any.whl → 5.5.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- qBitrr/bundled_data.py +2 -2
- qBitrr/db_lock.py +135 -3
- qBitrr/static/assets/ArrView.js +1 -1
- qBitrr/static/assets/ArrView.js.map +1 -1
- qBitrr/static/assets/ConfigView.js +4 -3
- qBitrr/static/assets/ConfigView.js.map +1 -1
- qBitrr/static/assets/LogsView.js +207 -1
- qBitrr/static/assets/LogsView.js.map +1 -1
- qBitrr/static/assets/ProcessesView.js +1 -1
- qBitrr/static/assets/ProcessesView.js.map +1 -1
- qBitrr/static/assets/app.css +1 -1
- qBitrr/static/assets/app.js +5 -5
- qBitrr/static/assets/app.js.map +1 -1
- qBitrr/static/assets/lidarr.svg +1 -0
- qBitrr/static/assets/logo.svg +48 -0
- qBitrr/static/assets/react-select.esm.js +4 -4
- qBitrr/static/assets/react-select.esm.js.map +1 -1
- qBitrr/static/assets/table.js +1 -1
- qBitrr/static/index.html +23 -9
- qBitrr/static/logov2-clean.svg +48 -0
- qBitrr/static/manifest.json +1 -1
- qBitrr/static/sw.js +29 -6
- {qbitrr2-5.5.3.dist-info → qbitrr2-5.5.6.dist-info}/METADATA +2 -2
- {qbitrr2-5.5.3.dist-info → qbitrr2-5.5.6.dist-info}/RECORD +28 -25
- {qbitrr2-5.5.3.dist-info → qbitrr2-5.5.6.dist-info}/WHEEL +0 -0
- {qbitrr2-5.5.3.dist-info → qbitrr2-5.5.6.dist-info}/entry_points.txt +0 -0
- {qbitrr2-5.5.3.dist-info → qbitrr2-5.5.6.dist-info}/licenses/LICENSE +0 -0
- {qbitrr2-5.5.3.dist-info → qbitrr2-5.5.6.dist-info}/top_level.txt +0 -0
qBitrr/static/assets/LogsView.js
CHANGED
|
@@ -1,2 +1,208 @@
|
|
|
1
|
-
import{u as $,c as E,d as N,j as s,I as k,R as H,e as I}from"./app.js";import{r as i}from"./table.js";import{u as R}from"./useInterval.js";import{S as F}from"./react-select.esm.js";import"./vendor.js";const T="/static/assets/download.svg",D="/static/assets/live-streaming.svg",M=()=>{const o=document.documentElement.getAttribute("data-theme")==="dark";return{control:l=>({...l,background:o?"#0f131a":"#ffffff",color:o?"#eaeef2":"#1d1d1f",borderColor:o?"#2a2f36":"#d2d2d7",minHeight:"38px",boxShadow:"none","&:hover":{borderColor:o?"#3a4149":"#b8b8bd"}}),menu:l=>({...l,background:o?"#0f131a":"#ffffff",borderColor:o?"#2a2f36":"#d2d2d7",border:`1px solid ${o?"#2a2f36":"#d2d2d7"}`}),option:(l,h)=>({...l,background:h.isFocused?o?"rgba(122, 162, 247, 0.15)":"rgba(0, 113, 227, 0.1)":o?"#0f131a":"#ffffff",color:o?"#eaeef2":"#1d1d1f","&:active":{background:o?"rgba(122, 162, 247, 0.25)":"rgba(0, 113, 227, 0.2)"}}),singleValue:l=>({...l,color:o?"#eaeef2":"#1d1d1f"}),input:l=>({...l,color:o?"#eaeef2":"#1d1d1f"}),placeholder:l=>({...l,color:o?"#9aa3ac":"#6e6e73"}),menuList:l=>({...l,padding:"4px"})}};function A(o){const l={30:"#000000",31:"#cd3131",32:"#0dbc79",33:"#e5e510",34:"#2472c8",35:"#bc3fbc",36:"#11a8cd",37:"#e5e5e5",90:"#666666",91:"#f14c4c",92:"#23d18b",93:"#f5f543",94:"#3b8eea",95:"#d670d6",96:"#29b8db",97:"#ffffff"},h={40:"#000000",41:"#cd3131",42:"#0dbc79",43:"#e5e510",44:"#2472c8",45:"#bc3fbc",46:"#11a8cd",47:"#e5e5e5",100:"#666666",101:"#f14c4c",102:"#23d18b",103:"#f5f543",104:"#3b8eea",105:"#d670d6",106:"#29b8db",107:"#ffffff"};let r=o,e=[];return r=r.replace(/\u001b\[([0-9;]+)m/g,(y,j)=>{const d=j.split(";");let f="";for(const n of d)n==="0"||n===""?(f+="</span>".repeat(e.length),e=[]):n==="1"?(e.push("font-weight:bold"),f+=`<span style="${e.join(";")}">`):n==="3"?(e.push("font-style:italic"),f+=`<span style="${e.join(";")}">`):n==="4"?(e.push("text-decoration:underline"),f+=`<span style="${e.join(";")}">`):n==="22"?e=e.filter(a=>!a.includes("font-weight")):n==="23"?e=e.filter(a=>!a.includes("font-style")):n==="24"?e=e.filter(a=>!a.includes("text-decoration")):l[n]?(e=e.filter(a=>!a.startsWith("color:")),e.push(`color:${l[n]}`),f+=`<span style="${e.join(";")}">`):h[n]?(e=e.filter(a=>!a.startsWith("background-color:")),e.push(`background-color:${h[n]}`),f+=`<span style="${e.join(";")}">`):n==="39"?e=e.filter(a=>!a.startsWith("color:")):n==="49"&&(e=e.filter(a=>!a.startsWith("background-color:")));return f}),r+="</span>".repeat(e.length),r=r.replace(/\n/g,"<br>"),r}function q({active:o}){const[l,h]=i.useState([]),[r,e]=i.useState("Main.log"),[y,j]=i.useState(""),[d,f]=i.useState(!0),[n,a]=i.useState(!1),[L,w]=i.useState(!1),u=i.useRef(null),b=i.useRef(!1),{push:m}=$(),x=i.useCallback((t,c)=>t instanceof Error&&t.message?`${c}: ${t.message}`:typeof t=="string"&&t.trim().length?`${c}: ${t}`:c,[]),v=i.useCallback(async()=>{a(!0);try{const c=(await E()).files??[];h(c),c.length?e(g=>g&&c.includes(g)?g:c.find(C=>C.toLowerCase()==="main.log")??null??c[0]):e("")}catch(t){m(x(t,"Failed to refresh log list"),"error")}finally{a(!1)}},[x,m]),S=i.useCallback(async(t,c,g=!1)=>{if(t){g&&w(!0);try{const p=await N(t);j(p),window.requestAnimationFrame(()=>{u.current&&c&&!b.current&&(u.current.scrollTop=u.current.scrollHeight)})}catch(p){m(x(p,`Failed to read ${t}`),"error")}finally{g&&w(!1)}}},[x,m]);return i.useEffect(()=>{const t=u.current;if(!t)return;const c=()=>{if(!d)return;const{scrollTop:g,scrollHeight:p,clientHeight:C}=t;!(Math.abs(p-g-C)<10)&&!b.current&&(b.current=!0,f(!1))};return t.addEventListener("scroll",c),()=>t.removeEventListener("scroll",c)},[d]),i.useEffect(()=>{d&&(b.current=!1,u.current&&(u.current.scrollTop=u.current.scrollHeight))},[d]),i.useEffect(()=>{v()},[v]),i.useEffect(()=>{r&&S(r,d,!0)},[r,S,d]),R(()=>{r&&S(r,d)},o&&d?2e3:null),s.jsxs("section",{className:"card",style:{height:"calc(100vh - 140px)",display:"flex",flexDirection:"column",margin:0,padding:0},children:[s.jsx("div",{className:"card-header",style:{flexShrink:0},children:"Logs"}),s.jsxs("div",{className:"card-body",style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",padding:"12px"},children:[s.jsxs("div",{className:"row",style:{flexShrink:0,marginBottom:"12px"},children:[s.jsx("div",{className:"col field",children:s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Log File"}),s.jsx(F,{options:l.map(t=>({value:t,label:t})),value:r?{value:r,label:r}:null,onChange:t=>e(t?.value||""),isDisabled:!l.length,styles:M()})]})}),s.jsxs("div",{className:"col field",children:[s.jsx("label",{children:" "}),s.jsxs("div",{className:"row",style:{alignItems:"center"},children:[s.jsxs("button",{className:"btn ghost",onClick:()=>void v(),disabled:n,children:[s.jsx(k,{src:H}),"Reload List"]}),s.jsxs("button",{className:"btn",onClick:()=>r&&window.open(I(r),"_blank"),disabled:!r,children:[s.jsx(k,{src:T}),"Download"]}),s.jsxs("label",{className:"hint inline",style:{cursor:"pointer"},children:[s.jsx("input",{type:"checkbox",checked:d,onChange:t=>f(t.target.checked)}),s.jsx(k,{src:D}),s.jsx("span",{children:"Auto-scroll"})]})]})]})]}),s.jsx("div",{ref:u,style:{flex:1,minHeight:0,overflow:"auto",backgroundColor:"#0a0e14",borderRadius:"4px",padding:"16px"},children:L?s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"#666"},children:[s.jsx("span",{className:"spinner",style:{marginRight:"8px"}}),"Loading logs..."]}):y?s.jsx("pre",{style:{margin:0,whiteSpace:"pre-wrap",fontFamily:'"Cascadia Code", "Fira Code", "Consolas", "Monaco", monospace',fontSize:"13px",lineHeight:"1.5",color:"#e5e5e5",tabSize:4,minHeight:"100%"},dangerouslySetInnerHTML:{__html:A(y)}}):s.jsx("div",{style:{color:"#666"},children:"Select a log file to view its tail..."})})]})]})}export{q as LogsView};
|
|
1
|
+
import{j as M,u as ys,d as vs,I as dr,R as ws,D as bs,e as Ss,f as Es}from"./app.js";import{r as w,R as g}from"./table.js";import{r as xs,S as Ls}from"./react-select.esm.js";import{u as ks}from"./useInterval.js";import"./vendor.js";var $t="delete",R=5,oe=1<<R,Q=oe-1,L={};function kr(){return{value:!1}}function he(e){e&&(e.value=!0)}function Br(){}function et(e){return e.size===void 0&&(e.size=e.__iterate(ti)),e.size}function Be(e,t){if(typeof t!="number"){var r=t>>>0;if(""+r!==t||r===4294967295)return NaN;t=r}return t<0?et(e)+t:t}function ti(){return!0}function ir(e,t,r){return(e===0&&!ni(e)||r!==void 0&&e<=-r)&&(t===void 0||r!==void 0&&t>=r)}function Bt(e,t){return ri(e,t,0)}function sr(e,t){return ri(e,t,t)}function ri(e,t,r){return e===void 0?r:ni(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function ni(e){return e<0||e===0&&1/e===-1/0}var ii="@@__IMMUTABLE_ITERABLE__@@";function ue(e){return!!(e&&e[ii])}var Vt="@@__IMMUTABLE_KEYED__@@";function $(e){return!!(e&&e[Vt])}var Qt="@@__IMMUTABLE_INDEXED__@@";function de(e){return!!(e&&e[Qt])}function jr(e){return $(e)||de(e)}var Z=function(t){return ue(t)?t:ne(t)},pe=(function(e){function t(r){return $(r)?r:Pe(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(Z),Ye=(function(e){function t(r){return de(r)?r:ye(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(Z),ut=(function(e){function t(r){return ue(r)&&!jr(r)?r:lt(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(Z);Z.Keyed=pe;Z.Indexed=Ye;Z.Set=ut;var si="@@__IMMUTABLE_SEQ__@@";function qr(e){return!!(e&&e[si])}var oi="@@__IMMUTABLE_RECORD__@@";function Je(e){return!!(e&&e[oi])}function Ee(e){return ue(e)||Je(e)}var je="@@__IMMUTABLE_ORDERED__@@";function Se(e){return!!(e&&e[je])}var ct=0,ce=1,fe=2,Or=typeof Symbol=="function"&&Symbol.iterator,ai="@@iterator",or=Or||ai,O=function(t){this.next=t};O.prototype.toString=function(){return"[Iterator]"};O.KEYS=ct;O.VALUES=ce;O.ENTRIES=fe;O.prototype.inspect=O.prototype.toSource=function(){return this.toString()};O.prototype[or]=function(){return this};function B(e,t,r,n){var i=e===ct?t:e===ce?r:[t,r];return n?n.value=i:n={value:i,done:!1},n}function ee(){return{value:void 0,done:!0}}function ui(e){return Array.isArray(e)?!0:!!ar(e)}function vn(e){return e&&typeof e.next=="function"}function zr(e){var t=ar(e);return t&&t.call(e)}function ar(e){var t=e&&(Or&&e[Or]||e[ai]);if(typeof t=="function")return t}function Os(e){var t=ar(e);return t&&t===e.entries}function zs(e){var t=ar(e);return t&&t===e.keys}var ft=Object.prototype.hasOwnProperty;function ci(e){return Array.isArray(e)||typeof e=="string"?!0:e&&typeof e=="object"&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}var ne=(function(e){function t(r){return r==null?Fr():Ee(r)?r.toSeq():Ms(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(n,i){var s=this._cache;if(s){for(var o=s.length,a=0;a!==o;){var u=s[i?o-++a:a++];if(n(u[1],u[0],this)===!1)break}return a}return this.__iterateUncached(n,i)},t.prototype.__iterator=function(n,i){var s=this._cache;if(s){var o=s.length,a=0;return new O(function(){if(a===o)return ee();var u=s[i?o-++a:a++];return B(n,u[0],u[1])})}return this.__iteratorUncached(n,i)},t})(Z),Pe=(function(e){function t(r){return r==null?Fr().toKeyedSeq():ue(r)?$(r)?r.toSeq():r.fromEntrySeq():Je(r)?r.toSeq():Kr(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t})(ne),ye=(function(e){function t(r){return r==null?Fr():ue(r)?$(r)?r.entrySeq():r.toIndexedSeq():Je(r)?r.toSeq().entrySeq():fi(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t})(ne),lt=(function(e){function t(r){return(ue(r)&&!jr(r)?r:ye(r)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t})(ne);ne.isSeq=qr;ne.Keyed=Pe;ne.Set=lt;ne.Indexed=ye;ne.prototype[si]=!0;var tt=(function(e){function t(r){this._array=r,this.size=r.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,i){return this.has(n)?this._array[Be(this,n)]:i},t.prototype.__iterate=function(n,i){for(var s=this._array,o=s.length,a=0;a!==o;){var u=i?o-++a:a++;if(n(s[u],u,this)===!1)break}return a},t.prototype.__iterator=function(n,i){var s=this._array,o=s.length,a=0;return new O(function(){if(a===o)return ee();var u=i?o-++a:a++;return B(n,u,s[u])})},t})(ye),Pr=(function(e){function t(r){var n=Object.keys(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[]);this._object=r,this._keys=n,this.size=n.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,i){return i!==void 0&&!this.has(n)?i:this._object[n]},t.prototype.has=function(n){return ft.call(this._object,n)},t.prototype.__iterate=function(n,i){for(var s=this._object,o=this._keys,a=o.length,u=0;u!==a;){var c=o[i?a-++u:u++];if(n(s[c],c,this)===!1)break}return u},t.prototype.__iterator=function(n,i){var s=this._object,o=this._keys,a=o.length,u=0;return new O(function(){if(u===a)return ee();var c=o[i?a-++u:u++];return B(n,c,s[c])})},t})(Pe);Pr.prototype[je]=!0;var Is=(function(e){function t(r){this._collection=r,this.size=r.length||r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(n,i){if(i)return this.cacheResult().__iterate(n,i);var s=this._collection,o=zr(s),a=0;if(vn(o))for(var u;!(u=o.next()).done&&n(u.value,a++,this)!==!1;);return a},t.prototype.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var s=this._collection,o=zr(s);if(!vn(o))return new O(ee);var a=0;return new O(function(){var u=o.next();return u.done?u:B(n,a++,u.value)})},t})(ye),wn;function Fr(){return wn||(wn=new tt([]))}function Kr(e){var t=Ur(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new Pr(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function fi(e){var t=Ur(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function Ms(e){var t=Ur(e);if(t)return Os(e)?t.fromEntrySeq():zs(e)?t.toSetSeq():t;if(typeof e=="object")return new Pr(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function Ur(e){return ci(e)?new tt(e):ui(e)?new Is(e):void 0}var li="@@__IMMUTABLE_MAP__@@";function Dr(e){return!!(e&&e[li])}function hi(e){return Dr(e)&&Se(e)}function bn(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function ae(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(bn(e)&&bn(t)&&e.equals(t))}var gt=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,r){t|=0,r|=0;var n=t&65535,i=r&65535;return n*i+((t>>>16)*i+n*(r>>>16)<<16>>>0)|0};function ur(e){return e>>>1&1073741824|e&3221225471}var Cs=Object.prototype.valueOf;function ie(e){if(e==null)return Sn(e);if(typeof e.hashCode=="function")return ur(e.hashCode(e));var t=Bs(e);if(t==null)return Sn(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return Rs(t);case"string":return t.length>js?As(t):Ir(t);case"object":case"function":return Ts(t);case"symbol":return Ns(t);default:if(typeof t.toString=="function")return Ir(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function Sn(e){return e===null?1108378658:1108378659}function Rs(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return ur(t)}function As(e){var t=gr[e];return t===void 0&&(t=Ir(e),_r===qs&&(_r=0,gr={}),_r++,gr[e]=t),t}function Ir(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return ur(t)}function Ns(e){var t=Ln[e];return t!==void 0||(t=di(),Ln[e]=t),t}function Ts(e){var t;if(Mr&&(t=Cr.get(e),t!==void 0)||(t=e[De],t!==void 0)||!xn&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[De],t!==void 0||(t=$s(e),t!==void 0)))return t;if(t=di(),Mr)Cr.set(e,t);else{if(En!==void 0&&En(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(xn)Object.defineProperty(e,De,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[De]=t;else if(e.nodeType!==void 0)e[De]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var En=Object.isExtensible,xn=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})();function $s(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function Bs(e){return e.valueOf!==Cs&&typeof e.valueOf=="function"?e.valueOf(e):e}function di(){var e=++pr;return pr&1073741824&&(pr=0),e}var Mr=typeof WeakMap=="function",Cr;Mr&&(Cr=new WeakMap);var Ln=Object.create(null),pr=0,De="__immutablehash__";typeof Symbol=="function"&&(De=Symbol(De));var js=16,qs=255,_r=0,gr={},cr=(function(e){function t(r,n){this._iter=r,this._useKeys=n,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,i){return this._iter.get(n,i)},t.prototype.has=function(n){return this._iter.has(n)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var n=this,i=Wr(this,!0);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().reverse()}),i},t.prototype.map=function(n,i){var s=this,o=yi(this,n,i);return this._useKeys||(o.valueSeq=function(){return s._iter.toSeq().map(n,i)}),o},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(o,a){return n(o,a,s)},i)},t.prototype.__iterator=function(n,i){return this._iter.__iterator(n,i)},t})(Pe);cr.prototype[je]=!0;var pi=(function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,i){var s=this,o=0;return i&&et(this),this._iter.__iterate(function(a){return n(a,i?s.size-++o:o++,s)},i)},t.prototype.__iterator=function(n,i){var s=this,o=this._iter.__iterator(ce,i),a=0;return i&&et(this),new O(function(){var u=o.next();return u.done?u:B(n,i?s.size-++a:a++,u.value,u)})},t})(ye),_i=(function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(o){return n(o,o,s)},i)},t.prototype.__iterator=function(n,i){var s=this._iter.__iterator(ce,i);return new O(function(){var o=s.next();return o.done?o:B(n,o.value,o.value,o)})},t})(lt),gi=(function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(o){if(o){On(o);var a=ue(o);return n(a?o.get(1):o[1],a?o.get(0):o[0],s)}},i)},t.prototype.__iterator=function(n,i){var s=this._iter.__iterator(ce,i);return new O(function(){for(;;){var o=s.next();if(o.done)return o;var a=o.value;if(a){On(a);var u=ue(a);return B(n,u?a.get(0):a[0],u?a.get(1):a[1],o)}}})},t})(Pe);pi.prototype.cacheResult=cr.prototype.cacheResult=_i.prototype.cacheResult=gi.prototype.cacheResult=Jr;function mi(e){var t=xe(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var r=e.reverse.apply(this);return r.flip=function(){return e.reverse()},r},t.has=function(r){return e.includes(r)},t.includes=function(r){return e.has(r)},t.cacheResult=Jr,t.__iterateUncached=function(r,n){var i=this;return e.__iterate(function(s,o){return r(o,s,i)!==!1},n)},t.__iteratorUncached=function(r,n){if(r===fe){var i=e.__iterator(r,n);return new O(function(){var s=i.next();if(!s.done){var o=s.value[0];s.value[0]=s.value[1],s.value[1]=o}return s})}return e.__iterator(r===ce?ct:ce,n)},t}function yi(e,t,r){var n=xe(e);return n.size=e.size,n.has=function(i){return e.has(i)},n.get=function(i,s){var o=e.get(i,L);return o===L?s:t.call(r,o,i,e)},n.__iterateUncached=function(i,s){var o=this;return e.__iterate(function(a,u,c){return i(t.call(r,a,u,c),u,o)!==!1},s)},n.__iteratorUncached=function(i,s){var o=e.__iterator(fe,s);return new O(function(){var a=o.next();if(a.done)return a;var u=a.value,c=u[0];return B(i,c,t.call(r,u[1],c,e),a)})},n}function Wr(e,t){var r=this,n=xe(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var i=mi(e);return i.reverse=function(){return e.flip()},i}),n.get=function(i,s){return e.get(t?i:-1-i,s)},n.has=function(i){return e.has(t?i:-1-i)},n.includes=function(i){return e.includes(i)},n.cacheResult=Jr,n.__iterate=function(i,s){var o=this,a=0;return s&&et(e),e.__iterate(function(u,c){return i(u,t?c:s?o.size-++a:a++,o)},!s)},n.__iterator=function(i,s){var o=0;s&&et(e);var a=e.__iterator(fe,!s);return new O(function(){var u=a.next();if(u.done)return u;var c=u.value;return B(i,t?c[0]:s?r.size-++o:o++,c[1],u)})},n}function vi(e,t,r,n){var i=xe(e);return n&&(i.has=function(s){var o=e.get(s,L);return o!==L&&!!t.call(r,o,s,e)},i.get=function(s,o){var a=e.get(s,L);return a!==L&&t.call(r,a,s,e)?a:o}),i.__iterateUncached=function(s,o){var a=this,u=0;return e.__iterate(function(c,f,l){if(t.call(r,c,f,l))return u++,s(c,n?f:u-1,a)},o),u},i.__iteratorUncached=function(s,o){var a=e.__iterator(fe,o),u=0;return new O(function(){for(;;){var c=a.next();if(c.done)return c;var f=c.value,l=f[0],h=f[1];if(t.call(r,h,l,e))return B(s,n?l:u++,h,c)}})},i}function Ps(e,t,r){var n=dt().asMutable();return e.__iterate(function(i,s){n.update(t.call(r,i,s,e),0,function(o){return o+1})}),n.asImmutable()}function Fs(e,t,r){var n=$(e),i=(Se(e)?Re():dt()).asMutable();e.__iterate(function(o,a){i.update(t.call(r,o,a,e),function(u){return u=u||[],u.push(n?[a,o]:o),u})});var s=Yr(e);return i.map(function(o){return C(e,s(o))}).asImmutable()}function Ks(e,t,r){var n=$(e),i=[[],[]];e.__iterate(function(o,a){i[t.call(r,o,a,e)?1:0].push(n?[a,o]:o)});var s=Yr(e);return i.map(function(o){return C(e,s(o))})}function Hr(e,t,r,n){var i=e.size;if(ir(t,r,i))return e;if(typeof i>"u"&&(t<0||r<0))return Hr(e.toSeq().cacheResult(),t,r,n);var s=Bt(t,i),o=sr(r,i),a=o-s,u;a===a&&(u=a<0?0:a);var c=xe(e);return c.size=u===0?u:e.size&&u||void 0,!n&&qr(e)&&u>=0&&(c.get=function(f,l){return f=Be(this,f),f>=0&&f<u?e.get(f+s,l):l}),c.__iterateUncached=function(f,l){var h=this;if(u===0)return 0;if(l)return this.cacheResult().__iterate(f,l);var d=0,p=!0,_=0;return e.__iterate(function(y,v){if(!(p&&(p=d++<s)))return _++,f(y,n?v:_-1,h)!==!1&&_!==u}),_},c.__iteratorUncached=function(f,l){if(u!==0&&l)return this.cacheResult().__iterator(f,l);if(u===0)return new O(ee);var h=e.__iterator(f,l),d=0,p=0;return new O(function(){for(;d++<s;)h.next();if(++p>u)return ee();var _=h.next();return n||f===ce||_.done?_:f===ct?B(f,p-1,void 0,_):B(f,p-1,_.value[1],_)})},c}function Us(e,t,r){var n=xe(e);return n.__iterateUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterate(i,s);var a=0;return e.__iterate(function(u,c,f){return t.call(r,u,c,f)&&++a&&i(u,c,o)}),a},n.__iteratorUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterator(i,s);var a=e.__iterator(fe,s),u=!0;return new O(function(){if(!u)return ee();var c=a.next();if(c.done)return c;var f=c.value,l=f[0],h=f[1];return t.call(r,h,l,o)?i===fe?c:B(i,l,h,c):(u=!1,ee())})},n}function wi(e,t,r,n){var i=xe(e);return i.__iterateUncached=function(s,o){var a=this;if(o)return this.cacheResult().__iterate(s,o);var u=!0,c=0;return e.__iterate(function(f,l,h){if(!(u&&(u=t.call(r,f,l,h))))return c++,s(f,n?l:c-1,a)}),c},i.__iteratorUncached=function(s,o){var a=this;if(o)return this.cacheResult().__iterator(s,o);var u=e.__iterator(fe,o),c=!0,f=0;return new O(function(){var l,h,d;do{if(l=u.next(),l.done)return n||s===ce?l:s===ct?B(s,f++,void 0,l):B(s,f++,l.value[1],l);var p=l.value;h=p[0],d=p[1],c&&(c=t.call(r,d,h,a))}while(c);return s===fe?l:B(s,h,d,l)})},i}var Ds=(function(e){function t(r){this._wrappedIterables=r.flatMap(function(n){return n._wrappedIterables?n._wrappedIterables:[n]}),this.size=this._wrappedIterables.reduce(function(n,i){if(n!==void 0){var s=i.size;if(s!==void 0)return n+s}},0),this[Vt]=this._wrappedIterables[0][Vt],this[Qt]=this._wrappedIterables[0][Qt],this[je]=this._wrappedIterables[0][je]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(n,i){if(this._wrappedIterables.length!==0){if(i)return this.cacheResult().__iterate(n,i);for(var s=0,o=$(this),a=o?fe:ce,u=this._wrappedIterables[s].__iterator(a,i),c=!0,f=0;c;){for(var l=u.next();l.done;){if(s++,s===this._wrappedIterables.length)return f;u=this._wrappedIterables[s].__iterator(a,i),l=u.next()}var h=o?n(l.value[1],l.value[0],this):n(l.value,f,this);c=h!==!1,f++}return f}},t.prototype.__iteratorUncached=function(n,i){var s=this;if(this._wrappedIterables.length===0)return new O(ee);if(i)return this.cacheResult().__iterator(n,i);var o=0,a=this._wrappedIterables[o].__iterator(n,i);return new O(function(){for(var u=a.next();u.done;){if(o++,o===s._wrappedIterables.length)return u;a=s._wrappedIterables[o].__iterator(n,i),u=a.next()}return u})},t})(ne);function Ws(e,t){var r=$(e),n=[e].concat(t).map(function(s){return ue(s)?r&&(s=pe(s)):s=r?Kr(s):fi(Array.isArray(s)?s:[s]),s}).filter(function(s){return s.size!==0});if(n.length===0)return e;if(n.length===1){var i=n[0];if(i===e||r&&$(i)||de(e)&&de(i))return i}return new Ds(n)}function bi(e,t,r){var n=xe(e);return n.__iterateUncached=function(i,s){if(s)return this.cacheResult().__iterate(i,s);var o=0,a=!1;function u(c,f){c.__iterate(function(l,h){return(!t||f<t)&&ue(l)?u(l,f+1):(o++,i(l,r?h:o-1,n)===!1&&(a=!0)),!a},s)}return u(e,0),o},n.__iteratorUncached=function(i,s){if(s)return this.cacheResult().__iterator(i,s);var o=e.__iterator(i,s),a=[],u=0;return new O(function(){for(;o;){var c=o.next();if(c.done!==!1){o=a.pop();continue}var f=c.value;if(i===fe&&(f=f[1]),(!t||a.length<t)&&ue(f))a.push(o),o=f.__iterator(i,s);else return r?c:B(i,u++,f,c)}return ee()})},n}function Hs(e,t,r){var n=Yr(e);return e.toSeq().map(function(i,s){return n(t.call(r,i,s,e))}).flatten(!0)}function Ys(e,t){var r=xe(e);return r.size=e.size&&e.size*2-1,r.__iterateUncached=function(n,i){var s=this,o=0;return e.__iterate(function(a){return(!o||n(t,o++,s)!==!1)&&n(a,o++,s)!==!1},i),o},r.__iteratorUncached=function(n,i){var s=e.__iterator(ce,i),o=0,a;return new O(function(){return(!a||o%2)&&(a=s.next(),a.done)?a:o%2?B(n,o++,t):B(n,o++,a.value,a)})},r}function rt(e,t,r){t||(t=Si);var n=$(e),i=0,s=e.toSeq().map(function(o,a){return[a,o,i++,r?r(o,a,e):o]}).valueSeq().toArray();return s.sort(function(o,a){return t(o[3],a[3])||o[2]-a[2]}).forEach(n?function(o,a){s[a].length=2}:function(o,a){s[a]=o[1]}),n?Pe(s):de(e)?ye(s):lt(s)}function Ut(e,t,r){if(t||(t=Si),r){var n=e.toSeq().map(function(i,s){return[i,r(i,s,e)]}).reduce(function(i,s){return kn(t,i[1],s[1])?s:i});return n&&n[0]}return e.reduce(function(i,s){return kn(t,i,s)?s:i})}function kn(e,t,r){var n=e(r,t);return n===0&&r!==t&&(r==null||r!==r)||n>0}function Dt(e,t,r,n){var i=xe(e),s=new tt(r).map(function(o){return o.size});return i.size=n?s.max():s.min(),i.__iterate=function(o,a){for(var u=this.__iterator(ce,a),c,f=0;!(c=u.next()).done&&o(c.value,f++,this)!==!1;);return f},i.__iteratorUncached=function(o,a){var u=r.map(function(l){return l=Z(l),zr(a?l.reverse():l)}),c=0,f=!1;return new O(function(){var l;return f||(l=u.map(function(h){return h.next()}),f=n?l.every(function(h){return h.done}):l.some(function(h){return h.done})),f?ee():B(o,c++,t.apply(null,l.map(function(h){return h.value})))})},i}function C(e,t){return e===t?e:qr(e)?t:e.constructor(t)}function On(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Yr(e){return $(e)?pe:de(e)?Ye:ut}function xe(e){return Object.create(($(e)?Pe:de(e)?ye:lt).prototype)}function Jr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ne.prototype.cacheResult.call(this)}function Si(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e<t?-1:0}function we(e,t){t=t||0;for(var r=Math.max(0,e.length-t),n=new Array(r),i=0;i<r;i++)n[i]=e[i+t];return n}function xt(e,t){if(!e)throw new Error(t)}function se(e){xt(e!==1/0,"Cannot perform this action with an infinite size.")}function Ei(e){if(ci(e)&&typeof e!="string")return e;if(Se(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}var Js=Object.prototype.toString;function Xs(e){if(!e||typeof e!="object"||Js.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t,n=Object.getPrototypeOf(t);n!==null;)r=n,n=Object.getPrototypeOf(r);return r===t}function qe(e){return typeof e=="object"&&(Ee(e)||Array.isArray(e)||Xs(e))}function zt(e){try{return typeof e=="string"?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function Gs(e,t){return Ee(e)?e.has(t):qe(e)&&ft.call(e,t)}function xi(e,t,r){return Ee(e)?e.get(t,r):Gs(e,t)?typeof e.get=="function"?e.get(t):e[t]:r}function er(e){if(Array.isArray(e))return we(e);var t={};for(var r in e)ft.call(e,r)&&(t[r]=e[r]);return t}function Zs(e,t){if(!qe(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Ee(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!ft.call(e,t))return e;var r=er(e);return Array.isArray(r)?r.splice(t,1):delete r[t],r}function Vs(e,t,r){if(!qe(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Ee(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,r)}if(ft.call(e,t)&&r===e[t])return e;var n=er(e);return n[t]=r,n}function ht(e,t,r,n){n||(n=r,r=void 0);var i=Li(Ee(e),e,Ei(t),0,r,n);return i===L?r:i}function Li(e,t,r,n,i,s){var o=t===L;if(n===r.length){var a=o?i:t,u=s(a);return u===a?t:u}if(!o&&!qe(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(r).slice(0,n).map(zt)+"]: "+t);var c=r[n],f=o?L:xi(t,c,L),l=Li(f===L?e:Ee(f),f,r,n+1,i,s);return l===f?t:l===L?Zs(t,c):Vs(o?e?be():{}:t,c,l)}function Qs(e,t,r){return ht(e,t,L,function(){return r})}function Xr(e,t){return Qs(this,e,t)}function eo(e,t){return ht(e,t,function(){return L})}function Gr(e){return eo(this,e)}function ki(e,t,r,n){return ht(e,[t],r,n)}function Zr(e,t,r){return arguments.length===1?e(this):ki(this,e,t,r)}function Vr(e,t,r){return ht(this,e,t,r)}function Oi(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ii(this,e)}function zi(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];if(typeof e!="function")throw new TypeError("Invalid merger function: "+e);return Ii(this,t,e)}function Ii(e,t,r){for(var n=[],i=0;i<t.length;i++){var s=pe(t[i]);s.size!==0&&n.push(s)}return n.length===0?e:e.toSeq().size===0&&!e.__ownerID&&n.length===1?Je(e)?e:e.constructor(n[0]):e.withMutations(function(o){for(var a=r?function(c,f){ki(o,f,L,function(l){return l===L?c:r(l,c,f)})}:function(c,f){o.set(f,c)},u=0;u<n.length;u++)n[u].forEach(a)})}function Qr(e,t,r){return en(e,t,to(r))}function en(e,t,r){if(!qe(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Ee(e))return typeof r=="function"&&e.mergeWith?e.mergeWith.apply(e,[r].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var n=Array.isArray(e),i=e,s=n?Ye:pe,o=n?function(u){i===e&&(i=er(i)),i.push(u)}:function(u,c){var f=ft.call(i,c),l=f&&r?r(i[c],u,c):u;(!f||l!==i[c])&&(i===e&&(i=er(i)),i[c]=l)},a=0;a<t.length;a++)s(t[a]).forEach(o);return i}function to(e){function t(r,n,i){return qe(r)&&qe(n)&&ro(r,n)?en(r,[n],t):e?e(r,n,i):n}return t}function ro(e,t){var r=ne(e),n=ne(t);return de(r)===de(n)&&$(r)===$(n)}function Mi(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Qr(this,e)}function Ci(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Qr(this,t,e)}function tn(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return ht(this,e,be(),function(n){return en(n,t)})}function rn(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return ht(this,e,be(),function(n){return Qr(n,t)})}function jt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function qt(){return this.__ownerID?this:this.__ensureOwner(new Br)}function Pt(){return this.__ensureOwner()}function nn(){return this.__altered}var dt=(function(e){function t(r){return r==null?be():Dr(r)&&!Se(r)?r:be().withMutations(function(n){var i=e(r);se(i.size),i.forEach(function(s,o){return n.set(o,s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(n,i){return this._root?this._root.get(0,void 0,n,i):i},t.prototype.set=function(n,i){return Mn(this,n,i)},t.prototype.remove=function(n){return Mn(this,n,L)},t.prototype.deleteAll=function(n){var i=Z(n);return i.size===0?this:this.withMutations(function(s){i.forEach(function(o){return s.remove(o)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):be()},t.prototype.sort=function(n){return Re(rt(this,n))},t.prototype.sortBy=function(n,i){return Re(rt(this,i,n))},t.prototype.map=function(n,i){var s=this;return this.withMutations(function(o){o.forEach(function(a,u){o.set(u,n.call(i,a,u,s))})})},t.prototype.__iterator=function(n,i){return new no(this,n,i)},t.prototype.__iterate=function(n,i){var s=this,o=0;return this._root&&this._root.iterate(function(a){return o++,n(a[1],a[0],s)},i),o},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?sn(this.size,this._root,n,this.__hash):this.size===0?be():(this.__ownerID=n,this.__altered=!1,this)},t})(pe);dt.isMap=Dr;var N=dt.prototype;N[li]=!0;N[$t]=N.remove;N.removeAll=N.deleteAll;N.setIn=Xr;N.removeIn=N.deleteIn=Gr;N.update=Zr;N.updateIn=Vr;N.merge=N.concat=Oi;N.mergeWith=zi;N.mergeDeep=Mi;N.mergeDeepWith=Ci;N.mergeIn=tn;N.mergeDeepIn=rn;N.withMutations=jt;N.wasAltered=nn;N.asImmutable=Pt;N["@@transducer/init"]=N.asMutable=qt;N["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};N["@@transducer/result"]=function(e){return e.asImmutable()};var It=function(t,r){this.ownerID=t,this.entries=r};It.prototype.get=function(t,r,n,i){for(var s=this.entries,o=0,a=s.length;o<a;o++)if(ae(n,s[o][0]))return s[o][1];return i};It.prototype.update=function(t,r,n,i,s,o,a){for(var u=s===L,c=this.entries,f=0,l=c.length;f<l&&!ae(i,c[f][0]);f++);var h=f<l;if(h?c[f][1]===s:u)return this;if(he(a),(u||!h)&&he(o),!(u&&c.length===1)){if(!h&&!u&&c.length>=co)return io(t,c,i,s);var d=t&&t===this.ownerID,p=d?c:we(c);return h?u?f===l-1?p.pop():p[f]=p.pop():p[f]=[i,s]:p.push([i,s]),d?(this.entries=p,this):new It(t,p)}};var nt=function(t,r,n){this.ownerID=t,this.bitmap=r,this.nodes=n};nt.prototype.get=function(t,r,n,i){r===void 0&&(r=ie(n));var s=1<<((t===0?r:r>>>t)&Q),o=this.bitmap;return(o&s)===0?i:this.nodes[Ri(o&s-1)].get(t+R,r,n,i)};nt.prototype.update=function(t,r,n,i,s,o,a){n===void 0&&(n=ie(i));var u=(r===0?n:n>>>r)&Q,c=1<<u,f=this.bitmap,l=(f&c)!==0;if(!l&&s===L)return this;var h=Ri(f&c-1),d=this.nodes,p=l?d[h]:void 0,_=on(p,t,r+R,n,i,s,o,a);if(_===p)return this;if(!l&&_&&d.length>=fo)return oo(t,d,f,u,_);if(l&&!_&&d.length===2&&Cn(d[h^1]))return d[h^1];if(l&&_&&d.length===1&&Cn(_))return _;var y=t&&t===this.ownerID,v=l?_?f:f^c:f|c,S=l?_?Ai(d,h,_,y):uo(d,h,y):ao(d,h,_,y);return y?(this.bitmap=v,this.nodes=S,this):new nt(t,v,S)};var Mt=function(t,r,n){this.ownerID=t,this.count=r,this.nodes=n};Mt.prototype.get=function(t,r,n,i){r===void 0&&(r=ie(n));var s=(t===0?r:r>>>t)&Q,o=this.nodes[s];return o?o.get(t+R,r,n,i):i};Mt.prototype.update=function(t,r,n,i,s,o,a){n===void 0&&(n=ie(i));var u=(r===0?n:n>>>r)&Q,c=s===L,f=this.nodes,l=f[u];if(c&&!l)return this;var h=on(l,t,r+R,n,i,s,o,a);if(h===l)return this;var d=this.count;if(!l)d++;else if(!h&&(d--,d<lo))return so(t,f,d,u);var p=t&&t===this.ownerID,_=Ai(f,u,h,p);return p?(this.count=d,this.nodes=_,this):new Mt(t,d,_)};var it=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entries=n};it.prototype.get=function(t,r,n,i){for(var s=this.entries,o=0,a=s.length;o<a;o++)if(ae(n,s[o][0]))return s[o][1];return i};it.prototype.update=function(t,r,n,i,s,o,a){n===void 0&&(n=ie(i));var u=s===L;if(n!==this.keyHash)return u?this:(he(a),he(o),an(this,t,r,n,[i,s]));for(var c=this.entries,f=0,l=c.length;f<l&&!ae(i,c[f][0]);f++);var h=f<l;if(h?c[f][1]===s:u)return this;if(he(a),(u||!h)&&he(o),u&&l===2)return new Ce(t,this.keyHash,c[f^1]);var d=t&&t===this.ownerID,p=d?c:we(c);return h?u?f===l-1?p.pop():p[f]=p.pop():p[f]=[i,s]:p.push([i,s]),d?(this.entries=p,this):new it(t,this.keyHash,p)};var Ce=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entry=n};Ce.prototype.get=function(t,r,n,i){return ae(n,this.entry[0])?this.entry[1]:i};Ce.prototype.update=function(t,r,n,i,s,o,a){var u=s===L,c=ae(i,this.entry[0]);if(c?s===this.entry[1]:u)return this;if(he(a),u){he(o);return}return c?t&&t===this.ownerID?(this.entry[1]=s,this):new Ce(t,this.keyHash,[i,s]):(he(o),an(this,t,r,ie(i),[i,s]))};It.prototype.iterate=it.prototype.iterate=function(e,t){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(e(r[t?i-n:n])===!1)return!1};nt.prototype.iterate=Mt.prototype.iterate=function(e,t){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var s=r[t?i-n:n];if(s&&s.iterate(e,t)===!1)return!1}};Ce.prototype.iterate=function(e,t){return e(this.entry)};var no=(function(e){function t(r,n,i){this._type=n,this._reverse=i,this._stack=r._root&&zn(r._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var n=this._type,i=this._stack;i;){var s=i.node,o=i.index++,a=void 0;if(s.entry){if(o===0)return mr(n,s.entry)}else if(s.entries){if(a=s.entries.length-1,o<=a)return mr(n,s.entries[this._reverse?a-o:o])}else if(a=s.nodes.length-1,o<=a){var u=s.nodes[this._reverse?a-o:o];if(u){if(u.entry)return mr(n,u.entry);i=this._stack=zn(u,i)}continue}i=this._stack=this._stack.__prev}return ee()},t})(O);function mr(e,t){return B(e,t[0],t[1])}function zn(e,t){return{node:e,index:0,__prev:t}}function sn(e,t,r,n){var i=Object.create(N);return i.size=e,i._root=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var In;function be(){return In||(In=sn(0))}function Mn(e,t,r){var n,i;if(e._root){var s=kr(),o=kr();if(n=on(e._root,e.__ownerID,0,void 0,t,r,s,o),!o.value)return e;i=e.size+(s.value?r===L?-1:1:0)}else{if(r===L)return e;i=1,n=new It(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=i,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?sn(i,n):be()}function on(e,t,r,n,i,s,o,a){return e?e.update(t,r,n,i,s,o,a):s===L?e:(he(a),he(o),new Ce(t,n,[i,s]))}function Cn(e){return e.constructor===Ce||e.constructor===it}function an(e,t,r,n,i){if(e.keyHash===n)return new it(t,n,[e.entry,i]);var s=(r===0?e.keyHash:e.keyHash>>>r)&Q,o=(r===0?n:n>>>r)&Q,a,u=s===o?[an(e,t,r+R,n,i)]:(a=new Ce(t,n,i),s<o?[e,a]:[a,e]);return new nt(t,1<<s|1<<o,u)}function io(e,t,r,n){e||(e=new Br);for(var i=new Ce(e,ie(r),[r,n]),s=0;s<t.length;s++){var o=t[s];i=i.update(e,0,void 0,o[0],o[1])}return i}function so(e,t,r,n){for(var i=0,s=0,o=new Array(r),a=0,u=1,c=t.length;a<c;a++,u<<=1){var f=t[a];f!==void 0&&a!==n&&(i|=u,o[s++]=f)}return new nt(e,i,o)}function oo(e,t,r,n,i){for(var s=0,o=new Array(oe),a=0;r!==0;a++,r>>>=1)o[a]=r&1?t[s++]:void 0;return o[n]=i,new Mt(e,s+1,o)}function Ri(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function Ai(e,t,r,n){var i=n?e:we(e);return i[t]=r,i}function ao(e,t,r,n){var i=e.length+1;if(n&&t+1===i)return e[t]=r,e;for(var s=new Array(i),o=0,a=0;a<i;a++)a===t?(s[a]=r,o=-1):s[a]=e[a+o];return s}function uo(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var i=new Array(n),s=0,o=0;o<n;o++)o===t&&(s=1),i[o]=e[o+s];return i}var co=oe/4,fo=oe/2,lo=oe/4,Ni="@@__IMMUTABLE_LIST__@@";function Ti(e){return!!(e&&e[Ni])}var G=(function(e){function t(r){var n=Xt();if(r==null)return n;if(Ti(r))return r;var i=e(r),s=i.size;return s===0?n:(se(s),s>0&&s<oe?Ct(0,s,R,null,new $e(i.toArray())):n.withMutations(function(o){o.setSize(s),i.forEach(function(a,u){return o.set(u,a)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(n,i){if(n=Be(this,n),n>=0&&n<this.size){n+=this._origin;var s=$i(this,n);return s&&s.array[n&Q]}return i},t.prototype.set=function(n,i){return ho(this,n,i)},t.prototype.remove=function(n){return this.has(n)?n===0?this.shift():n===this.size-1?this.pop():this.splice(n,1):this},t.prototype.insert=function(n,i){return this.splice(n,0,i)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=R,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Xt()},t.prototype.push=function(){var n=arguments,i=this.size;return this.withMutations(function(s){Ne(s,0,i+n.length);for(var o=0;o<n.length;o++)s.set(i+o,n[o])})},t.prototype.pop=function(){return Ne(this,0,-1)},t.prototype.unshift=function(){var n=arguments;return this.withMutations(function(i){Ne(i,-n.length);for(var s=0;s<n.length;s++)i.set(s,n[s])})},t.prototype.shift=function(){return Ne(this,1)},t.prototype.shuffle=function(n){return n===void 0&&(n=Math.random),this.withMutations(function(i){for(var s=i.size,o,a;s;)o=Math.floor(n()*s--),a=i.get(o),i.set(o,i.get(s)),i.set(s,a)})},t.prototype.concat=function(){for(var n=arguments,i=[],s=0;s<arguments.length;s++){var o=n[s],a=e(typeof o!="string"&&ui(o)?o:[o]);a.size!==0&&i.push(a)}return i.length===0?this:this.size===0&&!this.__ownerID&&i.length===1?this.constructor(i[0]):this.withMutations(function(u){i.forEach(function(c){return c.forEach(function(f){return u.push(f)})})})},t.prototype.setSize=function(n){return Ne(this,0,n)},t.prototype.map=function(n,i){var s=this;return this.withMutations(function(o){for(var a=0;a<s.size;a++)o.set(a,n.call(i,o.get(a),a,s))})},t.prototype.slice=function(n,i){var s=this.size;return ir(n,i,s)?this:Ne(this,Bt(n,s),sr(i,s))},t.prototype.__iterator=function(n,i){var s=i?this.size:0,o=Rn(this,i);return new O(function(){var a=o();return a===Lt?ee():B(n,i?--s:s++,a)})},t.prototype.__iterate=function(n,i){for(var s=i?this.size:0,o=Rn(this,i),a;(a=o())!==Lt&&n(a,i?--s:s++,this)!==!1;);return s},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?Ct(this._origin,this._capacity,this._level,this._root,this._tail,n,this.__hash):this.size===0?Xt():(this.__ownerID=n,this.__altered=!1,this)},t})(Ye);G.isList=Ti;var U=G.prototype;U[Ni]=!0;U[$t]=U.remove;U.merge=U.concat;U.setIn=Xr;U.deleteIn=U.removeIn=Gr;U.update=Zr;U.updateIn=Vr;U.mergeIn=tn;U.mergeDeepIn=rn;U.withMutations=jt;U.wasAltered=nn;U.asImmutable=Pt;U["@@transducer/init"]=U.asMutable=qt;U["@@transducer/step"]=function(e,t){return e.push(t)};U["@@transducer/result"]=function(e){return e.asImmutable()};var $e=function(t,r){this.array=t,this.ownerID=r};$e.prototype.removeBefore=function(t,r,n){if((n&(1<<r+R)-1)===0||this.array.length===0)return this;var i=n>>>r&Q;if(i>=this.array.length)return new $e([],t);var s=i===0,o;if(r>0){var a=this.array[i];if(o=a&&a.removeBefore(t,r-R,n),o===a&&s)return this}if(s&&!o)return this;var u=st(this,t);if(!s)for(var c=0;c<i;c++)u.array[c]=void 0;return o&&(u.array[i]=o),u};$e.prototype.removeAfter=function(t,r,n){if(n===(r?1<<r+R:oe)||this.array.length===0)return this;var i=n-1>>>r&Q;if(i>=this.array.length)return this;var s;if(r>0){var o=this.array[i];if(s=o&&o.removeAfter(t,r-R,n),s===o&&i===this.array.length-1)return this}var a=st(this,t);return a.array.splice(i+1),s&&(a.array[i]=s),a};var Lt={};function Rn(e,t){var r=e._origin,n=e._capacity,i=Rt(n),s=e._tail;return o(e._root,e._level,0);function o(c,f,l){return f===0?a(c,l):u(c,f,l)}function a(c,f){var l=f===i?s&&s.array:c&&c.array,h=f>r?0:r-f,d=n-f;return d>oe&&(d=oe),function(){if(h===d)return Lt;var p=t?--d:h++;return l&&l[p]}}function u(c,f,l){var h,d=c&&c.array,p=l>r?0:r-l>>f,_=(n-l>>f)+1;return _>oe&&(_=oe),function(){for(;;){if(h){var y=h();if(y!==Lt)return y;h=null}if(p===_)return Lt;var v=t?--_:p++;h=o(d&&d[v],f-R,l+(v<<f))}}}}function Ct(e,t,r,n,i,s,o){var a=Object.create(U);return a.size=t-e,a._origin=e,a._capacity=t,a._level=r,a._root=n,a._tail=i,a.__ownerID=s,a.__hash=o,a.__altered=!1,a}function Xt(){return Ct(0,0,R)}function ho(e,t,r){if(t=Be(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(o){t<0?Ne(o,t).set(0,r):Ne(o,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,i=e._root,s=kr();return t>=Rt(e._capacity)?n=Rr(n,e.__ownerID,0,t,r,s):i=Rr(i,e.__ownerID,e._level,t,r,s),s.value?e.__ownerID?(e._root=i,e._tail=n,e.__hash=void 0,e.__altered=!0,e):Ct(e._origin,e._capacity,e._level,i,n):e}function Rr(e,t,r,n,i,s){var o=n>>>r&Q,a=e&&o<e.array.length;if(!a&&i===void 0)return e;var u;if(r>0){var c=e&&e.array[o],f=Rr(c,t,r-R,n,i,s);return f===c?e:(u=st(e,t),u.array[o]=f,u)}return a&&e.array[o]===i?e:(s&&he(s),u=st(e,t),i===void 0&&o===u.array.length-1?u.array.pop():u.array[o]=i,u)}function st(e,t){return t&&e&&t===e.ownerID?e:new $e(e?e.array.slice():[],t)}function $i(e,t){if(t>=Rt(e._capacity))return e._tail;if(t<1<<e._level+R){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&Q],n-=R;return r}}function Ne(e,t,r){t!==void 0&&(t|=0),r!==void 0&&(r|=0);var n=e.__ownerID||new Br,i=e._origin,s=e._capacity,o=i+t,a=r===void 0?s:r<0?s+r:i+r;if(o===i&&a===s)return e;if(o>=a)return e.clear();for(var u=e._level,c=e._root,f=0;o+f<0;)c=new $e(c&&c.array.length?[void 0,c]:[],n),u+=R,f+=1<<u;f&&(o+=f,i+=f,a+=f,s+=f);for(var l=Rt(s),h=Rt(a);h>=1<<u+R;)c=new $e(c&&c.array.length?[c]:[],n),u+=R;var d=e._tail,p=h<l?$i(e,a-1):h>l?new $e([],n):d;if(d&&h>l&&o<s&&d.array.length){c=st(c,n);for(var _=c,y=u;y>R;y-=R){var v=l>>>y&Q;_=_.array[v]=st(_.array[v],n)}_.array[l>>>R&Q]=d}if(a<s&&(p=p&&p.removeAfter(n,0,a)),o>=h)o-=h,a-=h,u=R,c=null,p=p&&p.removeBefore(n,0,o);else if(o>i||h<l){for(f=0;c;){var S=o>>>u&Q;if(S!==h>>>u&Q)break;S&&(f+=(1<<u)*S),u-=R,c=c.array[S]}c&&o>i&&(c=c.removeBefore(n,u,o-f)),c&&h<l&&(c=c.removeAfter(n,u,h-f)),f&&(o-=f,a-=f)}return e.__ownerID?(e.size=a-o,e._origin=o,e._capacity=a,e._level=u,e._root=c,e._tail=p,e.__hash=void 0,e.__altered=!0,e):Ct(o,a,u,c,p)}function Rt(e){return e<oe?0:e-1>>>R<<R}var Re=(function(e){function t(r){return r==null?wt():hi(r)?r:wt().withMutations(function(n){var i=pe(r);se(i.size),i.forEach(function(s,o){return n.set(o,s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(n,i){var s=this._map.get(n);return s!==void 0?this._list.get(s)[1]:i},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):wt()},t.prototype.set=function(n,i){return Nn(this,n,i)},t.prototype.remove=function(n){return Nn(this,n,L)},t.prototype.__iterate=function(n,i){var s=this;return this._list.__iterate(function(o){return o&&n(o[1],o[0],s)},i)},t.prototype.__iterator=function(n,i){return this._list.fromEntrySeq().__iterator(n,i)},t.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var i=this._map.__ensureOwner(n),s=this._list.__ensureOwner(n);return n?un(i,s,n,this.__hash):this.size===0?wt():(this.__ownerID=n,this.__altered=!1,this._map=i,this._list=s,this)},t})(dt);Re.isOrderedMap=hi;Re.prototype[je]=!0;Re.prototype[$t]=Re.prototype.remove;function un(e,t,r,n){var i=Object.create(Re.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var An;function wt(){return An||(An=un(be(),Xt()))}function Nn(e,t,r){var n=e._map,i=e._list,s=n.get(t),o=s!==void 0,a,u;if(r===L){if(!o)return e;i.size>=oe&&i.size>=n.size*2?(u=i.filter(function(c,f){return c!==void 0&&s!==f}),a=u.toKeyedSeq().map(function(c){return c[0]}).flip().toMap(),e.__ownerID&&(a.__ownerID=u.__ownerID=e.__ownerID)):(a=n.remove(t),u=s===i.size-1?i.pop():i.set(s,void 0))}else if(o){if(r===i.get(s)[1])return e;a=n,u=i.set(s,[t,r])}else a=n.set(t,i.size),u=i.set(i.size,[t,r]);return e.__ownerID?(e.size=a.size,e._map=a,e._list=u,e.__hash=void 0,e.__altered=!0,e):un(a,u)}var Bi="@@__IMMUTABLE_STACK__@@";function Ar(e){return!!(e&&e[Bi])}var cn=(function(e){function t(r){return r==null?Wt():Ar(r)?r:Wt().pushAll(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(n,i){var s=this._head;for(n=Be(this,n);s&&n--;)s=s.next;return s?s.value:i},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var i=this.size+arguments.length,s=this._head,o=arguments.length-1;o>=0;o--)s={value:n[o],next:s};return this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):bt(i,s)},t.prototype.pushAll=function(n){if(n=e(n),n.size===0)return this;if(this.size===0&&Ar(n))return n;se(n.size);var i=this.size,s=this._head;return n.__iterate(function(o){i++,s={value:o,next:s}},!0),this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):bt(i,s)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Wt()},t.prototype.slice=function(n,i){if(ir(n,i,this.size))return this;var s=Bt(n,this.size),o=sr(i,this.size);if(o!==this.size)return e.prototype.slice.call(this,n,i);for(var a=this.size-s,u=this._head;s--;)u=u.next;return this.__ownerID?(this.size=a,this._head=u,this.__hash=void 0,this.__altered=!0,this):bt(a,u)},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?bt(this.size,this._head,n,this.__hash):this.size===0?Wt():(this.__ownerID=n,this.__altered=!1,this)},t.prototype.__iterate=function(n,i){var s=this;if(i)return new tt(this.toArray()).__iterate(function(u,c){return n(u,c,s)},i);for(var o=0,a=this._head;a&&n(a.value,o++,this)!==!1;)a=a.next;return o},t.prototype.__iterator=function(n,i){if(i)return new tt(this.toArray()).__iterator(n,i);var s=0,o=this._head;return new O(function(){if(o){var a=o.value;return o=o.next,B(n,s++,a)}return ee()})},t})(Ye);cn.isStack=Ar;var te=cn.prototype;te[Bi]=!0;te.shift=te.pop;te.unshift=te.push;te.unshiftAll=te.pushAll;te.withMutations=jt;te.wasAltered=nn;te.asImmutable=Pt;te["@@transducer/init"]=te.asMutable=qt;te["@@transducer/step"]=function(e,t){return e.unshift(t)};te["@@transducer/result"]=function(e){return e.asImmutable()};function bt(e,t,r,n){var i=Object.create(te);return i.size=e,i._head=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var Tn;function Wt(){return Tn||(Tn=bt(0))}var ji="@@__IMMUTABLE_SET__@@";function fn(e){return!!(e&&e[ji])}function qi(e){return fn(e)&&Se(e)}function Pi(e,t){if(e===t)return!0;if(!ue(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||$(e)!==$(t)||de(e)!==de(t)||Se(e)!==Se(t))return!1;if(e.size===0&&t.size===0)return!0;var r=!jr(e);if(Se(e)){var n=e.entries();return t.every(function(u,c){var f=n.next().value;return f&&ae(f[1],u)&&(r||ae(f[0],c))})&&n.next().done}var i=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{i=!0;var s=e;e=t,t=s}var o=!0,a=t.__iterate(function(u,c){if(r?!e.has(u):i?!ae(u,e.get(c,L)):!ae(e.get(c,L),u))return o=!1,!1});return o&&e.size===a}function Xe(e,t){var r=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}function tr(e){if(!e||typeof e!="object")return e;if(!ue(e)){if(!qe(e))return e;e=ne(e)}if($(e)){var t={};return e.__iterate(function(n,i){t[i]=tr(n)}),t}var r=[];return e.__iterate(function(n){r.push(tr(n))}),r}var fr=(function(e){function t(r){return r==null?St():fn(r)&&!Se(r)?r:St().withMutations(function(n){var i=e(r);se(i.size),i.forEach(function(s){return n.add(s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(pe(n).keySeq())},t.intersect=function(n){return n=Z(n).toArray(),n.length?J.intersect.apply(t(n.pop()),n):St()},t.union=function(n){return n=Z(n).toArray(),n.length?J.union.apply(t(n.pop()),n):St()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(n){return this._map.has(n)},t.prototype.add=function(n){return Ht(this,this._map.set(n,n))},t.prototype.remove=function(n){return Ht(this,this._map.remove(n))},t.prototype.clear=function(){return Ht(this,this._map.clear())},t.prototype.map=function(n,i){var s=this,o=!1,a=Ht(this,this._map.mapEntries(function(u){var c=u[1],f=n.call(i,c,c,s);return f!==c&&(o=!0),[f,f]},i));return o?a:this},t.prototype.union=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return n=n.filter(function(s){return s.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(s){for(var o=0;o<n.length;o++)typeof n[o]=="string"?s.add(n[o]):e(n[o]).forEach(function(a){return s.add(a)})})},t.prototype.intersect=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(n.length===0)return this;n=n.map(function(o){return e(o)});var s=[];return this.forEach(function(o){n.every(function(a){return a.includes(o)})||s.push(o)}),this.withMutations(function(o){s.forEach(function(a){o.remove(a)})})},t.prototype.subtract=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(n.length===0)return this;n=n.map(function(o){return e(o)});var s=[];return this.forEach(function(o){n.some(function(a){return a.includes(o)})&&s.push(o)}),this.withMutations(function(o){s.forEach(function(a){o.remove(a)})})},t.prototype.sort=function(n){return At(rt(this,n))},t.prototype.sortBy=function(n,i){return At(rt(this,i,n))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(n,i){var s=this;return this._map.__iterate(function(o){return n(o,o,s)},i)},t.prototype.__iterator=function(n,i){return this._map.__iterator(n,i)},t.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var i=this._map.__ensureOwner(n);return n?this.__make(i,n):this.size===0?this.__empty():(this.__ownerID=n,this._map=i,this)},t})(ut);fr.isSet=fn;var J=fr.prototype;J[ji]=!0;J[$t]=J.remove;J.merge=J.concat=J.union;J.withMutations=jt;J.asImmutable=Pt;J["@@transducer/init"]=J.asMutable=qt;J["@@transducer/step"]=function(e,t){return e.add(t)};J["@@transducer/result"]=function(e){return e.asImmutable()};J.__empty=St;J.__make=Fi;function Ht(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function Fi(e,t){var r=Object.create(J);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var $n;function St(){return $n||($n=Fi(be()))}var Ve=(function(e){function t(r,n,i){if(i===void 0&&(i=1),!(this instanceof t))return new t(r,n,i);if(xt(i!==0,"Cannot step a Range by 0"),xt(r!==void 0,"You must define a start value when using Range"),xt(n!==void 0,"You must define an end value when using Range"),i=Math.abs(i),n<r&&(i=-i),this._start=r,this._end=n,this._step=i,this.size=Math.max(0,Math.ceil((n-r)/i-1)+1),this.size===0){if(yr)return yr;yr=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},t.prototype.get=function(n,i){return this.has(n)?this._start+Be(this,n)*this._step:i},t.prototype.includes=function(n){var i=(n-this._start)/this._step;return i>=0&&i<this.size&&i===Math.floor(i)},t.prototype.slice=function(n,i){return ir(n,i,this.size)?this:(n=Bt(n,this.size),i=sr(i,this.size),i<=n?new t(0,0):new t(this.get(n,this._end),this.get(i,this._end),this._step))},t.prototype.indexOf=function(n){var i=n-this._start;if(i%this._step===0){var s=i/this._step;if(s>=0&&s<this.size)return s}return-1},t.prototype.lastIndexOf=function(n){return this.indexOf(n)},t.prototype.__iterate=function(n,i){for(var s=this.size,o=this._step,a=i?this._start+(s-1)*o:this._start,u=0;u!==s&&n(a,i?s-++u:u++,this)!==!1;)a+=i?-o:o;return u},t.prototype.__iterator=function(n,i){var s=this.size,o=this._step,a=i?this._start+(s-1)*o:this._start,u=0;return new O(function(){if(u===s)return ee();var c=a;return a+=i?-o:o,B(n,i?s-++u:u++,c)})},t.prototype.equals=function(n){return n instanceof t?this._start===n._start&&this._end===n._end&&this._step===n._step:Pi(this,n)},t})(ye),yr;function Ki(e,t,r){for(var n=Ei(t),i=0;i!==n.length;)if(e=xi(e,n[i++],L),e===L)return r;return e}function Ui(e,t){return Ki(this,e,t)}function po(e,t){return Ki(e,t,L)!==L}function _o(e){return po(this,e)}function Di(){se(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e}Z.Iterator=O;Xe(Z,{toArray:function(){se(this.size);var t=new Array(this.size||0),r=$(this),n=0;return this.__iterate(function(i,s){t[n++]=r?[s,i]:i}),t},toIndexedSeq:function(){return new pi(this)},toJS:function(){return tr(this)},toKeyedSeq:function(){return new cr(this,!0)},toMap:function(){return dt(this.toKeyedSeq())},toObject:Di,toOrderedMap:function(){return Re(this.toKeyedSeq())},toOrderedSet:function(){return At($(this)?this.valueSeq():this)},toSet:function(){return fr($(this)?this.valueSeq():this)},toSetSeq:function(){return new _i(this)},toSeq:function(){return de(this)?this.toIndexedSeq():$(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return cn($(this)?this.valueSeq():this)},toList:function(){return G($(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,r){return this.size===0?t+r:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+r},concat:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return C(this,Ws(this,t))},includes:function(t){return this.some(function(r){return ae(r,t)})},entries:function(){return this.__iterator(fe)},every:function(t,r){se(this.size);var n=!0;return this.__iterate(function(i,s,o){if(!t.call(r,i,s,o))return n=!1,!1}),n},filter:function(t,r){return C(this,vi(this,t,r,!0))},partition:function(t,r){return Ks(this,t,r)},find:function(t,r,n){var i=this.findEntry(t,r);return i?i[1]:n},forEach:function(t,r){return se(this.size),this.__iterate(r?t.bind(r):t)},join:function(t){se(this.size),t=t!==void 0?""+t:",";var r="",n=!0;return this.__iterate(function(i){n?n=!1:r+=t,r+=i!=null?i.toString():""}),r},keys:function(){return this.__iterator(ct)},map:function(t,r){return C(this,yi(this,t,r))},reduce:function(t,r,n){return Bn(this,t,r,n,arguments.length<2,!1)},reduceRight:function(t,r,n){return Bn(this,t,r,n,arguments.length<2,!0)},reverse:function(){return C(this,Wr(this,!0))},slice:function(t,r){return C(this,Hr(this,t,r,!0))},some:function(t,r){se(this.size);var n=!1;return this.__iterate(function(i,s,o){if(t.call(r,i,s,o))return n=!0,!1}),n},sort:function(t){return C(this,rt(this,t))},values:function(){return this.__iterator(ce)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,r){return et(t?this.toSeq().filter(t,r):this)},countBy:function(t,r){return Ps(this,t,r)},equals:function(t){return Pi(this,t)},entrySeq:function(){var t=this;if(t._cache)return new tt(t._cache);var r=t.toSeq().map(mo).toIndexedSeq();return r.fromEntrySeq=function(){return t.toSeq()},r},filterNot:function(t,r){return this.filter(vr(t),r)},findEntry:function(t,r,n){var i=n;return this.__iterate(function(s,o,a){if(t.call(r,s,o,a))return i=[o,s],!1}),i},findKey:function(t,r){var n=this.findEntry(t,r);return n&&n[0]},findLast:function(t,r,n){return this.toKeyedSeq().reverse().find(t,r,n)},findLastEntry:function(t,r,n){return this.toKeyedSeq().reverse().findEntry(t,r,n)},findLastKey:function(t,r){return this.toKeyedSeq().reverse().findKey(t,r)},first:function(t){return this.find(ti,null,t)},flatMap:function(t,r){return C(this,Hs(this,t,r))},flatten:function(t){return C(this,bi(this,t,!0))},fromEntrySeq:function(){return new gi(this)},get:function(t,r){return this.find(function(n,i){return ae(i,t)},void 0,r)},getIn:Ui,groupBy:function(t,r){return Fs(this,t,r)},has:function(t){return this.get(t,L)!==L},hasIn:_o,isSubset:function(t){return t=typeof t.includes=="function"?t:Z(t),this.every(function(r){return t.includes(r)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:Z(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(r){return ae(r,t)})},keySeq:function(){return this.toSeq().map(go).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Ut(this,t)},maxBy:function(t,r){return Ut(this,r,t)},min:function(t){return Ut(this,t?jn(t):Pn)},minBy:function(t,r){return Ut(this,r?jn(r):Pn,t)},rest:function(){return this.slice(1)},skip:function(t){return t===0?this:this.slice(Math.max(0,t))},skipLast:function(t){return t===0?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,r){return C(this,wi(this,t,r,!0))},skipUntil:function(t,r){return this.skipWhile(vr(t),r)},sortBy:function(t,r){return C(this,rt(this,r,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,r){return C(this,Us(this,t,r))},takeUntil:function(t,r){return this.takeWhile(vr(t),r)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=yo(this))}});var V=Z.prototype;V[ii]=!0;V[or]=V.values;V.toJSON=V.toArray;V.__toStringMapper=zt;V.inspect=V.toSource=function(){return this.toString()};V.chain=V.flatMap;V.contains=V.includes;Xe(pe,{flip:function(){return C(this,mi(this))},mapEntries:function(t,r){var n=this,i=0;return C(this,this.toSeq().map(function(s,o){return t.call(r,[o,s],i++,n)}).fromEntrySeq())},mapKeys:function(t,r){var n=this;return C(this,this.toSeq().flip().map(function(i,s){return t.call(r,i,s,n)}).flip())}});var Ft=pe.prototype;Ft[Vt]=!0;Ft[or]=V.entries;Ft.toJSON=Di;Ft.__toStringMapper=function(e,t){return zt(t)+": "+zt(e)};Xe(Ye,{toKeyedSeq:function(){return new cr(this,!1)},filter:function(t,r){return C(this,vi(this,t,r,!1))},findIndex:function(t,r){var n=this.findEntry(t,r);return n?n[0]:-1},indexOf:function(t){var r=this.keyOf(t);return r===void 0?-1:r},lastIndexOf:function(t){var r=this.lastKeyOf(t);return r===void 0?-1:r},reverse:function(){return C(this,Wr(this,!1))},slice:function(t,r){return C(this,Hr(this,t,r,!1))},splice:function(t,r){var n=arguments.length;if(r=Math.max(r||0,0),n===0||n===2&&!r)return this;t=Bt(t,t<0?this.count():this.size);var i=this.slice(0,t);return C(this,n===1?i:i.concat(we(arguments,2),this.slice(t+r)))},findLastIndex:function(t,r){var n=this.findLastEntry(t,r);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return C(this,bi(this,t,!1))},get:function(t,r){return t=Be(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?r:this.find(function(n,i){return i===t},void 0,r)},has:function(t){return t=Be(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return C(this,Ys(this,t))},interleave:function(){var t=[this].concat(we(arguments)),r=Dt(this.toSeq(),ye.of,t),n=r.flatten(!0);return r.size&&(n.size=r.size*t.length),C(this,n)},keySeq:function(){return Ve(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,r){return C(this,wi(this,t,r,!1))},zip:function(){var t=[this].concat(we(arguments));return C(this,Dt(this,qn,t))},zipAll:function(){var t=[this].concat(we(arguments));return C(this,Dt(this,qn,t,!0))},zipWith:function(t){var r=we(arguments);return r[0]=this,C(this,Dt(this,t,r))}});var pt=Ye.prototype;pt[Qt]=!0;pt[je]=!0;Xe(ut,{get:function(t,r){return this.has(t)?t:r},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var ot=ut.prototype;ot.has=V.includes;ot.contains=ot.includes;ot.keys=ot.values;Xe(Pe,Ft);Xe(ye,pt);Xe(lt,ot);function Bn(e,t,r,n,i,s){return se(e.size),e.__iterate(function(o,a,u){i?(i=!1,r=o):r=t.call(n,r,o,a,u)},s),r}function go(e,t){return t}function mo(e,t){return[t,e]}function vr(e){return function(){return!e.apply(this,arguments)}}function jn(e){return function(){return-e.apply(this,arguments)}}function qn(){return we(arguments)}function Pn(e,t){return e<t?1:e>t?-1:0}function yo(e){if(e.size===1/0)return 0;var t=Se(e),r=$(e),n=t?1:0;return e.__iterate(r?t?function(i,s){n=31*n+Fn(ie(i),ie(s))|0}:function(i,s){n=n+Fn(ie(i),ie(s))|0}:t?function(i){n=31*n+ie(i)|0}:function(i){n=n+ie(i)|0}),vo(e.size,n)}function vo(e,t){return t=gt(t,3432918353),t=gt(t<<15|t>>>-15,461845907),t=gt(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=gt(t^t>>>16,2246822507),t=gt(t^t>>>13,3266489909),t=ur(t^t>>>16),t}function Fn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var At=(function(e){function t(r){return r==null?Nr():qi(r)?r:Nr().withMutations(function(n){var i=ut(r);se(i.size),i.forEach(function(s){return n.add(s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(pe(n).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t})(fr);At.isOrderedSet=qi;var Ge=At.prototype;Ge[je]=!0;Ge.zip=pt.zip;Ge.zipWith=pt.zipWith;Ge.zipAll=pt.zipAll;Ge.__empty=Nr;Ge.__make=Wi;function Wi(e,t){var r=Object.create(Ge);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var Kn;function Nr(){return Kn||(Kn=Wi(wt()))}function wo(e){if(Je(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Ee(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(e===null||typeof e!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var W=function(t,r){var n;wo(t);var i=function(a){var u=this;if(a instanceof i)return a;if(!(this instanceof i))return new i(a);if(!n){n=!0;var c=Object.keys(t),f=s._indices={};s._name=r,s._keys=c,s._defaultValues=t;for(var l=0;l<c.length;l++){var h=c[l];f[h]=l,s[h]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+hn(this)+' with property "'+h+'" since that property name is part of the Record API.'):bo(s,h)}}return this.__ownerID=void 0,this._values=G().withMutations(function(d){d.setSize(u._keys.length),pe(a).forEach(function(p,_){d.set(u._indices[_],p===u._defaultValues[_]?void 0:p)})}),this},s=i.prototype=Object.create(A);return s.constructor=i,r&&(i.displayName=r),i};W.prototype.toString=function(){for(var t=hn(this)+" { ",r=this._keys,n,i=0,s=r.length;i!==s;i++)n=r[i],t+=(i?", ":"")+n+": "+zt(this.get(n));return t+" }"};W.prototype.equals=function(t){return this===t||Je(t)&&at(this).equals(at(t))};W.prototype.hashCode=function(){return at(this).hashCode()};W.prototype.has=function(t){return this._indices.hasOwnProperty(t)};W.prototype.get=function(t,r){if(!this.has(t))return r;var n=this._indices[t],i=this._values.get(n);return i===void 0?this._defaultValues[t]:i};W.prototype.set=function(t,r){if(this.has(t)){var n=this._values.set(this._indices[t],r===this._defaultValues[t]?void 0:r);if(n!==this._values&&!this.__ownerID)return ln(this,n)}return this};W.prototype.remove=function(t){return this.set(t)};W.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:ln(this,t)};W.prototype.wasAltered=function(){return this._values.wasAltered()};W.prototype.toSeq=function(){return at(this)};W.prototype.toJS=function(){return tr(this)};W.prototype.entries=function(){return this.__iterator(fe)};W.prototype.__iterator=function(t,r){return at(this).__iterator(t,r)};W.prototype.__iterate=function(t,r){return at(this).__iterate(t,r)};W.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._values.__ensureOwner(t);return t?ln(this,r,t):(this.__ownerID=t,this._values=r,this)};W.isRecord=Je;W.getDescriptiveName=hn;var A=W.prototype;A[oi]=!0;A[$t]=A.remove;A.deleteIn=A.removeIn=Gr;A.getIn=Ui;A.hasIn=V.hasIn;A.merge=Oi;A.mergeWith=zi;A.mergeIn=tn;A.mergeDeep=Mi;A.mergeDeepWith=Ci;A.mergeDeepIn=rn;A.setIn=Xr;A.update=Zr;A.updateIn=Vr;A.withMutations=jt;A.asMutable=qt;A.asImmutable=Pt;A[or]=A.entries;A.toJSON=A.toObject=V.toObject;A.inspect=A.toSource=function(){return this.toString()};function ln(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._values=t,n.__ownerID=r,n}function hn(e){return e.constructor.displayName||e.constructor.name||"Record"}function at(e){return Kr(e._keys.map(function(t){return[t,e.get(t)]}))}function bo(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(r){xt(this.__ownerID,"Cannot set on an immutable record."),this.set(t,r)}})}catch{}}const Qe=null,{min:Te,max:_e,abs:Un,floor:So}=Math,Hi=(e,t,r)=>Te(r,_e(t,e)),Yi=e=>[...e].sort(((t,r)=>t-r)),Ji=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)},dn=e=>{let t;return()=>(e&&(t=e(),e=void 0),t)},We=-1,kt=(e,t,r)=>{const n=r?"unshift":"push";for(let i=0;i<t;i++)e[n](We);return e},rr=(e,t)=>{const r=e.t[t];return r===We?e.o:r},Eo=(e,t,r)=>{const n=e.t[t]===We;return e.t[t]=r,e.i=Te(t,e.i),n},Gt=(e,t)=>{if(!e.l)return 0;if(e.i>=t)return e.u[t];e.i<0&&(e.u[0]=0,e.i=0);let r=e.i,n=e.u[r];for(;r<t;)n+=rr(e,r),e.u[++r]=n;return e.i=t,n},Ue=(e,t,r=0,n=e.l-1)=>{for(;r<=n;){const i=So((r+n)/2),s=Gt(e,i);if(s<=t){if(s+rr(e,i)>t)return i;r=i+1}else n=i-1}return Hi(r,0,e.l-1)},Dn=(e,t,r)=>{const n=t-e.l;return e.i=r?-1:Te(t-1,e.i),e.l=t,n>0?(kt(e.u,n),kt(e.t,n,r),e.o*n):(e.u.splice(n),(r?e.t.splice(0,-n):e.t.splice(n)).reduce(((i,s)=>i-(s===We?e.o:s)),0))},Xi=typeof window<"u",Gi=()=>document.documentElement,xo=e=>e.ownerDocument,Lo=e=>e.defaultView,Zi=dn((()=>!!Xi&&getComputedStyle(Gi()).direction==="rtl")),Vi=dn((()=>/iP(hone|od|ad)/.test(navigator.userAgent))),ko=dn((()=>"scrollBehavior"in Gi().style)),Oo=e=>_e(e.h(),e.v()),zo=e=>!!e.v(),Io=(e,t=40,r=4,n=0,i,s=!1)=>{let o=!!n,a=1,u=0,c=0,f=0,l=0,h=0,d=0,p=0,_=0,y=o?[0,_e(n-1,0)]:Qe,v=[0,0],S=0;const x=((b,z,F)=>({o:F?F[1]:z,t:F&&F[0]?kt(F[0].slice(0,Te(b,F[0].length)),_e(0,b-F[0].length)):kt([],b),l:b,i:-1,u:kt([],b)}))(e,t,i),K=new Set,k=()=>f-c,m=()=>k()+h+l,P=b=>((z,F,ke,j)=>{if(j=Te(j,z.l-1),Gt(z,j)<=F){const D=Ue(z,F+ke,j);return[Ue(z,F,j,D),D]}{const D=Ue(z,F,void 0,j);return[D,Ue(z,F+ke,D)]}})(x,b,u,v[0]),H=()=>(b=>b.l?Gt(b,b.l-1)+rr(b,b.l-1):0)(x),Fe=b=>Gt(x,b)-h,Le=b=>rr(x,b),Ze=b=>{b&&(Vi()&&p!==0?h+=b:l+=b)};return{p:()=>a,m:()=>(b=>[b.t.slice(),b.o])(x),_:()=>{let b,z;return d?[b,z]=v:([b,z]=v=P(_e(0,m())),y&&(b=Te(b,y[0]),z=_e(z,y[1]))),p!==1&&(b-=_e(0,r)),p!==2&&(z+=_e(0,r)),[_e(b,0),Te(z,x.l-1)]},S:()=>Ue(x,m()),$:()=>Ue(x,m()+u),I:b=>x.t[b]===We,k:()=>!!y&&x.t.slice(_e(0,y[0]-1),Te(x.l-1,y[1]+1)+1).includes(We),R:Fe,T:Le,M:()=>x.l,C:()=>f,H:()=>p!==0,v:()=>u,W:()=>c,h:H,O:()=>(d=l,l=0,[d,_===2||k()+u>=H()]),B:(b,z)=>{const F=[b,z];return K.add(F),()=>{K.delete(F)}},J:(b,z)=>{let F,ke,j=0;switch(b){case 1:{const D=d;d=0;const E=z-f,I=Un(E);D&&I<Un(D)+1||_!==0||(p=E<0?2:1),o&&(y=Qe,o=!1),f=z,j=4;const X=k();X>=-u&&X<=H()&&(j+=1,ke=I>u);break}case 2:j=8,p!==0&&(F=!0,j+=1),p=0,_=0,y=Qe;break;case 3:{const D=z.filter((([E,I])=>x.t[E]!==I));if(!D.length)break;Ze(D.reduce(((E,[I,X])=>((_===2||(y?!o&&I<y[0]:Fe(I)+(p===0&&_===0?Le(I):0)<k()))&&(E+=X-Le(I)),E)),0));for(const[E,I]of D){const X=Le(E),Ke=Eo(x,E,I);s&&(S+=Ke?I:I-X)}s&&u&&S>u&&(Ze(((E,I)=>{let X=0;const Ke=[];E.t.forEach(((yn,ms)=>{yn!==We&&(Ke.push(yn),ms<I&&X++)})),E.i=-1;const Oe=Yi(Ke),mn=Oe.length,hr=mn/2|0,_s=mn%2==0?(Oe[hr-1]+Oe[hr])/2:Oe[hr],gs=E.o;return((E.o=_s)-gs)*_e(I-X,0)})(x,Ue(x,m()))),s=!1),j=3,ke=!0;break}case 4:u!==z&&(u=z,j=3);break;case 5:z[1]?(Ze(Dn(x,z[0],!0)),_=2,j=1):(Dn(x,z[0]),j=1);break;case 6:c=z;break;case 7:_=1;break;case 8:y=P(z),j=1}j&&(a=1+(2147483647&a),F&&h&&(l+=h,h=0),K.forEach((([D,E])=>{j&D&&E(ke)})))}}},Tr=setTimeout,Zt=(e,t)=>t&&Zi()?-e:e,Mo=(e,t,r,n,i,s)=>{const o=Date.now;let a=0,u=!1,c=!1,f=!1,l=!1;const h=(()=>{let v;const S=()=>{v!=Qe&&clearTimeout(v)},x=()=>{S(),v=Tr((()=>{v=Qe,(()=>{if(u||c)return u=!1,void h();f=!1,e.J(2)})()}),150)};return x.L=S,x})(),d=()=>{a=o(),f&&(l=!0),e.J(1,n()),h()},p=v=>{if(u||!e.H()||v.ctrlKey)return;const S=o()-a;150>S&&50<S&&(r?v.deltaX:v.deltaY)&&(u=!0)},_=()=>{c=!0,f=l=!1},y=()=>{c=!1,Vi()&&(f=!0)};return t.addEventListener("scroll",d),t.addEventListener("wheel",p,{passive:!0}),t.addEventListener("touchstart",_,{passive:!0}),t.addEventListener("touchend",y,{passive:!0}),{P:()=>{t.removeEventListener("scroll",d),t.removeEventListener("wheel",p),t.removeEventListener("touchstart",_),t.removeEventListener("touchend",y),h.L()},A:()=>{const[v,S]=e.O();v&&(i(Zt(v,r),S,l),l=!1,S&&e.v()>e.h()&&e.J(1,n()))}}},Co=(e,t)=>{let r,n,i;const s=t?"scrollLeft":"scrollTop",o=t?"overflowX":"overflowY",a=async(u,c)=>{if(!r)return void Ji((()=>a(u,c)));i&&i();const f=()=>{let l;return[new Promise(((h,d)=>{l=h,i=d,zo(e)&&Tr(d,150)})),e.B(2,(()=>{l&&l()}))]};if(c&&ko()){for(;e.J(8,u()),e.k();){const[l,h]=f();try{await l}catch{return}finally{h()}}r.scrollTo({[t?"left":"top"]:Zt(u(),t),behavior:"smooth"})}else for(;;){const[l,h]=f();try{r[s]=Zt(u(),t),e.J(7),await l}catch{return}finally{h()}}};return{D(u){r=u,n=Mo(e,u,t,(()=>Zt(u[s],t)),((c,f,l)=>{if(l){const h=u.style,d=h[o];h[o]="hidden",Tr((()=>{h[o]=d}))}f?(u[s]=e.C()+c,i&&i()):u[s]+=c}))},V(){n&&n.P()},X(u){a((()=>u))},Y(u){u+=e.C(),a((()=>u))},j(u,{align:c,smooth:f,offset:l=0}={}){if(u=Hi(u,0,e.M()-1),c==="nearest"){const h=e.R(u),d=e.C();if(h<d)c="start";else{if(!(h+e.T(u)>d+e.v()))return;c="end"}}a((()=>l+e.W()+e.R(u)+(c==="end"?e.T(u)-e.v():c==="center"?(e.T(u)-e.v())/2:0)),f)},q:()=>{n&&n.A()}}},Ro=e=>{let t;return{U(r){(t||(t=new(Lo(xo(r))).ResizeObserver(e))).observe(r)},F(r){t.unobserve(r)},P(){t&&t.disconnect()}}},Ao=(e,t)=>{let r;const n=t?"width":"height",i=new WeakMap,s=Ro((o=>{const a=[];for(const{target:u,contentRect:c}of o)if(u.offsetParent)if(u===r)e.J(4,c[n]);else{const f=i.get(u);f!=Qe&&a.push([f,c[n]])}a.length&&e.J(3,a)}));return{G(o){s.U(r=o)},K:(o,a)=>(i.set(o,a),s.U(o),()=>{i.delete(o),s.F(o)}),V:s.P}},nr=Xi?w.useLayoutEffect:w.useEffect,le="current",Qi=(e,t)=>{if(Array.isArray(e))for(const r of e)Qi(r,t);else e==null||typeof e=="boolean"||t.push(e)},No=(e,t)=>{const r=e.key;return r??"_"+t},To=e=>{const t=w.useRef();return t[le]||(t[le]=e())},Wn=e=>{const t=w.useRef(e);return nr((()=>{t[le]=e}),[e]),t},$o=w.memo((({N:e,Z:t,ee:r,te:n,ne:i,oe:s,re:o,ie:a})=>{const u=w.useRef(null);nr((()=>t(u[le],r)),[r]);const c=w.useMemo((()=>{const f={position:i&&a?void 0:"absolute",[o?"height":"width"]:"100%",[o?"top":"left"]:0,[o?Zi()?"right":"left":"top"]:n,visibility:!i||a?"visible":"hidden"};return o&&(f.display="flex"),f}),[n,i,a,o]);return M.jsx(s,typeof s=="string"?{ref:u,style:c,children:e}:{ref:u,style:c,index:r,children:e})})),Bo=(e,t)=>w.useMemo((()=>{if(typeof e=="function")return[e,t||0];const r=(n=>{const i=[];return Qi(n,i),i})(e);return[n=>r[n],r.length]}),[e,t]),jo=w.forwardRef((({children:e,count:t,overscan:r,itemSize:n,shift:i,horizontal:s,keepMounted:o,cache:a,startMargin:u=0,ssrCount:c,as:f="div",item:l="div",scrollRef:h,onScroll:d,onScrollEnd:p},_)=>{const[y,v]=Bo(e,t),S=w.useRef(null),x=w.useRef(!!c),K=Wn(d),k=Wn(p),[m,P,H,Fe]=To((()=>{const E=!!s,I=Io(v,n,r,c,a,!n);return[I,Ao(I,E),Co(I,E),E]}));v!==m.M()&&m.J(5,[v,i]),u!==m.W()&&m.J(6,u);const[Le,Ze]=w.useReducer(m.p,void 0,m.p),[b,z]=m._(),F=m.H(),ke=m.h(),j=[],D=E=>{const I=y(E);return M.jsx($o,{Z:P.K,ee:E,te:m.R(E),ne:m.I(E),oe:l,N:I,re:Fe,ie:x[le]},No(I,E))};nr((()=>{x[le]=!1;const E=m.B(1,(Oe=>{Oe?xs.flushSync(Ze):Ze()})),I=m.B(4,(()=>{K[le]&&K[le](m.C())})),X=m.B(8,(()=>{k[le]&&k[le]()})),Ke=Oe=>{P.G(Oe),H.D(Oe)};return h?Ji((()=>Ke(h[le]))):Ke(S[le].parentElement),()=>{E(),I(),X(),P.V(),H.V()}}),[]),nr((()=>{H.q()}),[Le]),w.useImperativeHandle(_,(()=>({get cache(){return m.m()},get scrollOffset(){return m.C()},get scrollSize(){return Oo(m)},get viewportSize(){return m.v()},findStartIndex:m.S,findEndIndex:m.$,getItemOffset:m.R,getItemSize:m.T,scrollToIndex:H.j,scrollTo:H.X,scrollBy:H.Y})),[]);for(let E=b,I=z;E<=I;E++)j.push(D(E));if(o){const E=[],I=[];Yi(o).forEach((X=>{X<b&&E.push(D(X)),X>z&&I.push(D(X))})),j.unshift(...E),j.push(...I)}return M.jsx(f,{ref:S,style:{overflowAnchor:"none",flex:"none",position:"relative",visibility:"hidden",width:Fe?ke:"100%",height:Fe?"100%":ke,pointerEvents:F?"none":void 0},children:j})})),qo=w.forwardRef((({children:e,count:t,overscan:r,itemSize:n,shift:i,horizontal:s,keepMounted:o,reverse:a,cache:u,ssrCount:c,item:f,onScroll:l,onScrollEnd:h,style:d,...p},_)=>{const y=w.useRef(null),v=a&&!s;let S=M.jsx(jo,{ref:_,scrollRef:v?y:void 0,count:t,overscan:r,itemSize:n,shift:i,horizontal:s,keepMounted:o,cache:u,ssrCount:c,item:f,onScroll:l,onScrollEnd:h,children:e});return v&&(S=M.jsx("div",{style:{visibility:"hidden",display:"flex",flexDirection:"column",justifyContent:"flex-end",minHeight:"100%"},children:S})),M.jsx("div",{ref:y,...p,style:{display:s?"inline-block":"block",[s?"overflowX":"overflowY"]:"auto",contain:"strict",width:"100%",height:"100%",...d},children:S})}));function ve(e,t){t===void 0&&(t={});var r=t.insertAt;if(!(!e||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var Po=`.index-module_bold__Mynkh { font-weight: bold; }
|
|
2
|
+
.index-module_underline__Wil2O { text-decoration: underline; }
|
|
3
|
+
.index-module_italic__FHDKu { font-style: italic; }
|
|
4
|
+
|
|
5
|
+
.index-module_wrapLine__ATECR {
|
|
6
|
+
white-space: normal;
|
|
7
|
+
text-indent: 0;
|
|
8
|
+
display: inline-block;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.index-module_noWrapLine__mnBfu {
|
|
12
|
+
display: ruby;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.index-module_black__wgdzU { color: #4e4e4e; }
|
|
16
|
+
.index-module_red__ZGVwG { color: #ff6c60; }
|
|
17
|
+
.index-module_green__W5glx { color: #00aa00; }
|
|
18
|
+
.index-module_yellow__7ZHva { color: #ffffb6; }
|
|
19
|
+
.index-module_blue__TYDek { color: #96cbfe; }
|
|
20
|
+
.index-module_magenta__11M24 { color: #ff73fd; }
|
|
21
|
+
.index-module_cyan__gRFzP { color: #00aaaa; }
|
|
22
|
+
.index-module_white__X0NFz { color: #eeeeee; }
|
|
23
|
+
.index-module_grey__E3Gez { color: #969696; }
|
|
24
|
+
|
|
25
|
+
.index-module_blackBold__FWW5K { color: #7c7c7c; }
|
|
26
|
+
.index-module_redBold__7N94D { color: #ff9b93; }
|
|
27
|
+
.index-module_greenBold__rsBvm { color: #ceffab }
|
|
28
|
+
.index-module_yellowBold__XSM-U { color: #ffffcb; }
|
|
29
|
+
.index-module_blueBold__phud4 { color: #b5dcfe; }
|
|
30
|
+
.index-module_magentaBold__Sxjkx { color: #ff9cfe; }
|
|
31
|
+
.index-module_cyanBold__Zp8db { color: #55ffff; }
|
|
32
|
+
.index-module_whiteBold__r8lJg { color: #ffffff; }
|
|
33
|
+
.index-module_greyBold__YXSoC { color: #969696; }
|
|
34
|
+
|
|
35
|
+
.index-module_blackBg__c03y4 { background-color: #4e4e4e; }
|
|
36
|
+
.index-module_redBg__SE7xH { background-color: #ff6c60; }
|
|
37
|
+
.index-module_greenBg__XfHR2 { background-color: #00aa00; }
|
|
38
|
+
.index-module_yellowBg__U-Aea { background-color: #ffffb6; }
|
|
39
|
+
.index-module_blueBg__nRj7n { background-color: #96cbfe; }
|
|
40
|
+
.index-module_magentaBg__ICQ64 { background-color: #ff73fd; }
|
|
41
|
+
.index-module_cyanBg__I5MZ5 { background-color: #00aaaa; }
|
|
42
|
+
.index-module_whiteBg__AsxTO { background-color: #eeeeee; }
|
|
43
|
+
.index-module_greyBg__wAYhU { background-color: #969696; }
|
|
44
|
+
`,ze={bold:"index-module_bold__Mynkh",underline:"index-module_underline__Wil2O",italic:"index-module_italic__FHDKu",wrapLine:"index-module_wrapLine__ATECR",noWrapLine:"index-module_noWrapLine__mnBfu",black:"index-module_black__wgdzU",red:"index-module_red__ZGVwG",green:"index-module_green__W5glx",yellow:"index-module_yellow__7ZHva",blue:"index-module_blue__TYDek",magenta:"index-module_magenta__11M24",cyan:"index-module_cyan__gRFzP",white:"index-module_white__X0NFz",grey:"index-module_grey__E3Gez",blackBold:"index-module_blackBold__FWW5K",redBold:"index-module_redBold__7N94D",greenBold:"index-module_greenBold__rsBvm",yellowBold:"index-module_yellowBold__XSM-U",blueBold:"index-module_blueBold__phud4",magentaBold:"index-module_magentaBold__Sxjkx",cyanBold:"index-module_cyanBold__Zp8db",whiteBold:"index-module_whiteBold__r8lJg",greyBold:"index-module_greyBold__YXSoC",blackBg:"index-module_blackBg__c03y4",redBg:"index-module_redBg__SE7xH",greenBg:"index-module_greenBg__XfHR2",yellowBg:"index-module_yellowBg__U-Aea",blueBg:"index-module_blueBg__nRj7n",magentaBg:"index-module_magentaBg__ICQ64",cyanBg:"index-module_cyanBg__I5MZ5",whiteBg:"index-module_whiteBg__AsxTO",greyBg:"index-module_greyBg__wAYhU"};ve(Po);const Fo=(e,t)=>{const r=["log-part"];return e.foreground&&e.bold?r.push(ze[`${e.foreground}Bold`],ze.bold):e.foreground?r.push(ze[e.foreground]):e.bold&&r.push(ze.bold),t?r.push(ze.wrapLine):r.push(ze.noWrapLine),e.background&&r.push(ze[`${e.background}Bg`]),e.italic&&r.push(ze.italic),e.underline&&r.push(ze.underline),r.join(" ")};class es extends w.Component{render(){const{format:t,part:r,style:n}=this.props,i=r.text,s=Fo(r,!!this.props.wrapLines),o=t?t(i):i;if(this.props.enableLinks){if(r.link)return g.createElement("span",null,g.createElement("a",{className:s,href:i,target:"_blank",rel:"noopener noreferrer"},o)," ");if(r.email)return g.createElement("span",null,g.createElement("a",{className:s,href:`mailto:${i}`},o)," ")}return g.createElement("span",{className:s,style:n},o,this.props.enableLinks?" ":null)}}es.defaultProps={format:null,style:null,enableLinks:!1,wrapLines:!1};var Ko=`.index-module_lineContent__v3zqf {
|
|
45
|
+
user-select: initial;
|
|
46
|
+
}
|
|
47
|
+
`,Uo={lineContent:"index-module_lineContent__v3zqf"};ve(Ko);class ts extends w.Component{render(){const{data:t,formatPart:r,onClick:n,number:i,style:s}=this.props;if(t){const o=t[t.length-1];o&&typeof o.text=="string"&&!o.text.endsWith(`
|
|
48
|
+
`)&&(o.text+=`
|
|
49
|
+
`)}return g.createElement("span",{className:`log-content ${Uo.lineContent}`,style:s,onClick:n},t&&t.map((o,a)=>g.createElement(es,{wrapLines:this.props.wrapLines,part:o,format:r,key:`line-${i}-${a}`,enableLinks:this.props.enableLinks})))}}ts.defaultProps={formatPart:null,style:null};var Do=`.index-module_lineGutter__aPlbD {
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
min-width: 20px;
|
|
53
|
+
padding-right: 0.5em;
|
|
54
|
+
|
|
55
|
+
color: #a7a7a7;
|
|
56
|
+
text-decoration: none;
|
|
57
|
+
user-select: none;
|
|
58
|
+
}
|
|
59
|
+
`,Wo={lineGutter:"index-module_lineGutter__aPlbD"};ve(Do);class rs extends w.Component{render(){const{gutter:t}=this.props;return g.createElement("span",{className:`log-gutter ${Wo.lineGutter}`},t)}}rs.defaultProps={gutter:null};var Ho=`.index-module_lineNumber__bNeiE {
|
|
60
|
+
display: inline-block;
|
|
61
|
+
width: 55px;
|
|
62
|
+
margin-left: 15px;
|
|
63
|
+
margin-right: 15px;
|
|
64
|
+
color: #7e7e7e;
|
|
65
|
+
user-select: none;
|
|
66
|
+
text-align: right;
|
|
67
|
+
min-width: 40px;
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
text-decoration: none;
|
|
70
|
+
padding-right: 1em;
|
|
71
|
+
vertical-align: top;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.index-module_wrapLine__LQ9AC {
|
|
75
|
+
min-width: 55px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.index-module_lineNumber__bNeiE::before {
|
|
79
|
+
content: attr(id);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.index-module_lineNumberHighlight__AqBvr {
|
|
83
|
+
color: #ffffff;
|
|
84
|
+
}
|
|
85
|
+
`,wr={lineNumber:"index-module_lineNumber__bNeiE",wrapLine:"index-module_wrapLine__LQ9AC",lineNumberHighlight:"index-module_lineNumberHighlight__AqBvr index-module_lineNumber__bNeiE"};ve(Ho);class ns extends w.Component{render(){const{highlight:t,onClick:r,number:n,style:i}=this.props,s=`log-number ${t?wr.lineNumberHighlight:wr.lineNumber} ${this.props.wrapLines?wr.wrapLine:""}`;return g.createElement("a",{id:""+n,onClick:r,className:s,style:i})}}ns.defaultProps={style:null,highlight:!1,onClick:null,wrapLines:!1};var Yo=`.index-module_line__BM5rd {
|
|
86
|
+
margin: 0;
|
|
87
|
+
user-select: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.index-module_wrapLine__uOMsW {
|
|
91
|
+
display: flex;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.index-module_line__BM5rd:hover {
|
|
95
|
+
background-color: #444444;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.index-module_lineHighlight__zcBLB {
|
|
99
|
+
background-color: #666666;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.index-module_lineSelectable__1-mwt {
|
|
103
|
+
user-select: text;
|
|
104
|
+
}
|
|
105
|
+
`,Yt={line:"index-module_line__BM5rd",wrapLine:"index-module_wrapLine__uOMsW",lineHighlight:"index-module_lineHighlight__zcBLB",lineSelectable:"index-module_lineSelectable__1-mwt"};ve(Yo);class Ae extends w.Component{render(){const{data:t,formatPart:r,highlight:n,selectable:i,onLineNumberClick:s,onLineContentClick:o,number:a,rowHeight:u,style:c,className:f,highlightClassName:l,gutter:h,wrapLines:d}=this.props,p=i?` ${Yt.lineSelectable}`:"",_=n?` ${Yt.lineHighlight} ${l}`:"",y=`${Yt.line}${p}${_} ${d?Yt.wrapLine:""} ${f}`,v={...c,lineHeight:`${c&&c.height||u}px`,minWidth:c&&c.width||"100%",width:void 0};return g.createElement("div",{className:y,style:v},this.props.enableLineNumbers?g.createElement(ns,{number:a,highlight:n,onClick:s,wrapLines:d}):null,this.props.enableGutters?g.createElement(rs,{gutter:h}):null,g.createElement(ts,{wrapLines:d,number:a,formatPart:r,data:t,onClick:o,enableLinks:this.props.enableLinks}))}}Ae.defaultProps={highlight:!1,selectable:!1,style:{},formatPart:void 0,onLineNumberClick:void 0,onLineContentClick:void 0,className:"",highlightClassName:"",enableLineNumbers:!0,enableLinks:!1,wrapLines:!1};var Jo=`.index-module_loading__Tw7fR {
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: 50%;
|
|
108
|
+
left: 50%;
|
|
109
|
+
transform: translateX(-50%) translateY(-50%);
|
|
110
|
+
}
|
|
111
|
+
`,Xo={loading:"index-module_loading__Tw7fR"};ve(Jo);const $r=g.memo(e=>g.createElement("svg",{width:"44",height:"44",viewBox:"0 0 44 44",stroke:"#fff",className:Xo.loading,...e},g.createElement("g",{fill:"none",fillRule:"evenodd",strokeWidth:"2"},g.createElement("circle",{cx:"22",cy:"22",r:"1"},g.createElement("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),g.createElement("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})),g.createElement("circle",{cx:"22",cy:"22",r:"1"},g.createElement("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),g.createElement("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})))));$r.displayName="Loading";const br=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Sr(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),r)}function mt(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on".concat(t),r)}function is(e,t){const r=t.slice(0,t.length-1);for(let n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function ss(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function Go(e,t){const r=e.length>=t.length?e:t,n=e.length>=t.length?t:e;let i=!0;for(let s=0;s<r.length;s++)n.indexOf(r[s])===-1&&(i=!1);return i}const Nt={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":br?173:189,"=":br?61:187,";":br?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},me={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Et={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Y={16:!1,18:!1,17:!1,91:!1},q={};for(let e=1;e<20;e++)Nt["f".concat(e)]=111+e;let T=[],Ot=null,os="all";const Ie=new Map,_t=e=>Nt[e.toLowerCase()]||me[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),Zo=e=>Object.keys(Nt).find(t=>Nt[t]===e),Vo=e=>Object.keys(me).find(t=>me[t]===e);function as(e){os=e||"all"}function Tt(){return os||"all"}function Qo(){return T.slice(0)}function ea(){return T.map(e=>Zo(e)||Vo(e)||String.fromCharCode(e))}function ta(){const e=[];return Object.keys(q).forEach(t=>{q[t].forEach(r=>{let{key:n,scope:i,mods:s,shortcut:o}=r;e.push({scope:i,shortcut:o,mods:s,keys:n.split("+").map(a=>_t(a))})})}),e}function ra(e){const t=e.target||e.srcElement,{tagName:r}=t;let n=!0;const i=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(i||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(n=!1),n}function na(e){return typeof e=="string"&&(e=_t(e)),T.indexOf(e)!==-1}function ia(e,t){let r,n;e||(e=Tt());for(const i in q)if(Object.prototype.hasOwnProperty.call(q,i))for(r=q[i],n=0;n<r.length;)r[n].scope===e?r.splice(n,1).forEach(o=>{let{element:a}=o;return pn(a)}):n++;Tt()===e&&as(t||"all")}function sa(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=_t(e.key));const r=T.indexOf(t);if(r>=0&&T.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&T.splice(0,T.length),(t===93||t===224)&&(t=91),t in Y){Y[t]=!1;for(const n in me)me[n]===t&&(ge[n]=!1)}}function us(e){if(typeof e>"u")Object.keys(q).forEach(i=>{Array.isArray(q[i])&&q[i].forEach(s=>Jt(s)),delete q[i]}),pn(null);else if(Array.isArray(e))e.forEach(i=>{i.key&&Jt(i)});else if(typeof e=="object")e.key&&Jt(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let[i,s]=r;typeof i=="function"&&(s=i,i=""),Jt({key:e,scope:i,method:s,splitKey:"+"})}}const Jt=e=>{let{key:t,scope:r,method:n,splitKey:i="+"}=e;ss(t).forEach(o=>{const a=o.split(i),u=a.length,c=a[u-1],f=c==="*"?"*":_t(c);if(!q[f])return;r||(r=Tt());const l=u>1?is(me,a):[],h=[];q[f]=q[f].filter(d=>{const _=(n?d.method===n:!0)&&d.scope===r&&Go(d.mods,l);return _&&h.push(d.element),!_}),h.forEach(d=>pn(d))})};function Hn(e,t,r,n){if(t.element!==n)return;let i;if(t.scope===r||t.scope==="all"){i=t.mods.length>0;for(const s in Y)Object.prototype.hasOwnProperty.call(Y,s)&&(!Y[s]&&t.mods.indexOf(+s)>-1||Y[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!Y[16]&&!Y[18]&&!Y[17]&&!Y[91]||i||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(T),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Yn(e,t){const r=q["*"];let n=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!ge.filter.call(this,e))return;if((n===93||n===224)&&(n=91),T.indexOf(n)===-1&&n!==229&&T.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(a=>{const u=Et[a];e[a]&&T.indexOf(u)===-1?T.push(u):!e[a]&&T.indexOf(u)>-1?T.splice(T.indexOf(u),1):a==="metaKey"&&e[a]&&(T=T.filter(c=>c in Et||c===n))}),n in Y){Y[n]=!0;for(const a in me)if(Object.prototype.hasOwnProperty.call(me,a)){const u=Et[me[a]];ge[a]=e[u]}if(!r)return}for(const a in Y)Object.prototype.hasOwnProperty.call(Y,a)&&(Y[a]=e[Et[a]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(T.indexOf(17)===-1&&T.push(17),T.indexOf(18)===-1&&T.push(18),Y[17]=!0,Y[18]=!0);const i=Tt();if(r)for(let a=0;a<r.length;a++)r[a].scope===i&&(e.type==="keydown"&&r[a].keydown||e.type==="keyup"&&r[a].keyup)&&Hn(e,r[a],i,t);if(!(n in q))return;const s=q[n],o=s.length;for(let a=0;a<o;a++)if((e.type==="keydown"&&s[a].keydown||e.type==="keyup"&&s[a].keyup)&&s[a].key){const u=s[a],{splitKey:c}=u,f=u.key.split(c),l=[];for(let h=0;h<f.length;h++)l.push(_t(f[h]));l.sort().join("")===T.sort().join("")&&Hn(e,u,i,t)}}function ge(e,t,r){T=[];const n=ss(e);let i=[],s="all",o=document,a=0,u=!1,c=!0,f="+",l=!1,h=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(l=t.capture),typeof t.splitKey=="string"&&(f=t.splitKey),t.single===!0&&(h=!0)),typeof t=="string"&&(s=t),h&&us(e,s);a<n.length;a++)e=n[a].split(f),i=[],e.length>1&&(i=is(me,e)),e=e[e.length-1],e=e==="*"?"*":_t(e),e in q||(q[e]=[]),q[e].push({keyup:u,keydown:c,scope:s,mods:i,shortcut:n[a],method:r,key:n[a],splitKey:f,element:o});if(typeof o<"u"&&window){if(!Ie.has(o)){const d=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Yn(_,o)},p=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Yn(_,o),sa(_)};Ie.set(o,{keydownListener:d,keyupListenr:p,capture:l}),Sr(o,"keydown",d,l),Sr(o,"keyup",p,l)}if(!Ot){const d=()=>{T=[]};Ot={listener:d,capture:l},Sr(window,"focus",d,l)}}}function oa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(q).forEach(r=>{q[r].filter(i=>i.scope===t&&i.shortcut===e).forEach(i=>{i&&i.method&&i.method()})})}function pn(e){const t=Object.values(q).flat();if(t.findIndex(n=>{let{element:i}=n;return i===e})<0){const{keydownListener:n,keyupListenr:i,capture:s}=Ie.get(e)||{};n&&i&&(mt(e,"keyup",i,s),mt(e,"keydown",n,s),Ie.delete(e))}if((t.length<=0||Ie.size<=0)&&(Object.keys(Ie).forEach(i=>{const{keydownListener:s,keyupListenr:o,capture:a}=Ie.get(i)||{};s&&o&&(mt(i,"keyup",o,a),mt(i,"keydown",s,a),Ie.delete(i))}),Ie.clear(),Object.keys(q).forEach(i=>delete q[i]),Ot)){const{listener:i,capture:s}=Ot;mt(window,"focus",i,s),Ot=null}}const Er={getPressedKeyString:ea,setScope:as,getScope:Tt,deleteScope:ia,getPressedKeyCodes:Qo,getAllKeyCodes:ta,isPressed:na,filter:ra,trigger:oa,unbind:us,keyMap:Nt,modifier:me,modifierMap:Et};for(const e in Er)Object.prototype.hasOwnProperty.call(Er,e)&&(ge[e]=Er[e]);if(typeof window<"u"){const e=window.hotkeys;ge.noConflict=t=>(t&&window.hotkeys===ge&&(window.hotkeys=e),ge),window.hotkeys=ge}var aa=`.index-module_downArrowIcon__fpzoO {
|
|
112
|
+
height: 15px;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
}
|
|
115
|
+
`,ua={downArrowIcon:"index-module_downArrowIcon__fpzoO"};ve(aa);const ca=g.memo(e=>g.createElement("svg",{className:ua.downArrowIcon,...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 115.4 122.88"},g.createElement("path",{d:"M24.94,55A14.66,14.66,0,0,0,4.38,75.91l43.45,42.76a14.66,14.66,0,0,0,20.56,0L111,76.73A14.66,14.66,0,0,0,90.46,55.82l-18,17.69-.29-59.17c-.1-19.28-29.42-19-29.33.24l.29,58.34L24.94,55Z"})));var fa=`.index-module_upArrowIcon__lxdzV {
|
|
116
|
+
height: 15px;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
}
|
|
119
|
+
`,la={upArrowIcon:"index-module_upArrowIcon__lxdzV"};ve(fa);const ha=g.memo(e=>g.createElement("svg",{className:la.upArrowIcon,...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 115.4 122.88"},g.createElement("path",{d:"M24.94,67.88A14.66,14.66,0,0,1,4.38,47L47.83,4.21a14.66,14.66,0,0,1,20.56,0L111,46.15A14.66,14.66,0,0,1,90.46,67.06l-18-17.69-.29,59.17c-.1,19.28-29.42,19-29.33-.25L43.14,50,24.94,67.88Z"})));var da=`.index-module_filterLinesIcon__EsTp0 {
|
|
120
|
+
height: 15px;
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
}
|
|
123
|
+
`,pa={filterLinesIcon:"index-module_filterLinesIcon__EsTp0"};ve(da);const _a=g.memo(e=>g.createElement("svg",{className:pa.filterLinesIcon,...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 286.054 286.054"},g.createElement("path",{d:"M8.939 44.696h178.784a8.931 8.931 0 0 0 8.939-8.939V8.939A8.937 8.937 0 0 0 187.723 0H8.939C4.005 0 0 4.005 0 8.939v26.818c0 4.934 4.005 8.939 8.939 8.939zm268.176 35.757H8.939C4.005 80.453 0 84.457 0 89.392v26.818a8.937 8.937 0 0 0 8.939 8.939h268.176a8.931 8.931 0 0 0 8.939-8.939V89.392a8.936 8.936 0 0 0-8.939-8.939zM8.939 205.601h178.784a8.931 8.931 0 0 0 8.939-8.939v-26.818a8.931 8.931 0 0 0-8.939-8.939H8.939A8.937 8.937 0 0 0 0 169.844v26.818a8.937 8.937 0 0 0 8.939 8.939zm268.176 35.757H8.939A8.937 8.937 0 0 0 0 250.297v26.818a8.937 8.937 0 0 0 8.939 8.939h268.176a8.931 8.931 0 0 0 8.939-8.939v-26.818a8.931 8.931 0 0 0-8.939-8.939z"})));var ga=`.index-module_searchBar__wNJXf {
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
justify-content: flex-end;
|
|
127
|
+
font-family: "Monaco", monospace;
|
|
128
|
+
font-size: 12px;
|
|
129
|
+
background-color: #222222;
|
|
130
|
+
color: #d6d6d6;
|
|
131
|
+
padding: 10px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.index-module_searchInput__lE-5o {
|
|
135
|
+
background-color: #464646;
|
|
136
|
+
color: #d6d6d6;
|
|
137
|
+
height: 20px;
|
|
138
|
+
min-width: 200px;
|
|
139
|
+
font-size: 12px;
|
|
140
|
+
padding: 2px 5px;
|
|
141
|
+
border: 1px solid #4e4e4e;
|
|
142
|
+
margin-right: 10px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.index-module_active__d-59A {
|
|
146
|
+
color: #d6d6d6;
|
|
147
|
+
fill: #d6d6d6;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.index-module_clickable__DD2Kj:hover {
|
|
151
|
+
border-radius: 5px;
|
|
152
|
+
background: #666666;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.index-module_inactive__bJYFs {
|
|
156
|
+
color: #464646;
|
|
157
|
+
fill: #464646;
|
|
158
|
+
padding: 3px;
|
|
159
|
+
padding-bottom: 1px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.index-module_button__0-ptH {
|
|
163
|
+
background: none;
|
|
164
|
+
border: none;
|
|
165
|
+
margin-right: 10px;
|
|
166
|
+
}
|
|
167
|
+
`,re={searchBar:"index-module_searchBar__wNJXf",searchInput:"index-module_searchInput__lE-5o",active:"index-module_active__d-59A",clickable:"index-module_clickable__DD2Kj",inactive:"index-module_inactive__bJYFs",button:"index-module_button__0-ptH"};ve(ga);class cs extends w.Component{constructor(t){super(t),this.state={keywords:""},this.handleSearchChange=r=>{const{value:n}=r.target;this.setState({keywords:n},()=>this.search())},this.handleFilterToggle=()=>{this.props.onFilterLinesWithMatches&&this.props.onFilterLinesWithMatches(!this.props.filterActive)},this.handleKeyPress=r=>{r.key==="Enter"&&(r.shiftKey?this.props.onShiftEnter&&this.props.onShiftEnter(r):this.props.onEnter&&this.props.onEnter(r))},this.handleSearchHotkey=r=>{this.inputRef.current&&(r.preventDefault(),this.inputRef.current.focus())},this.search=()=>{const{keywords:r}=this.state,{onSearch:n,onClearSearch:i,searchMinCharacters:s=2}=this.props;r&&r.length>s?n&&n(r):i&&i()},this.inputRef=w.createRef()}componentDidMount(){if(this.props.enableHotKeys){const t=this;ge("ctrl+f,command+f,f3,ctrl+f3",function(r,n){switch(n.key){case"ctrl+f":case"command+f":t.handleSearchHotkey(r),r.preventDefault();break;case"f3":t.props.onEnter(r),r.preventDefault();break;case"ctrl+f3":t.props.onShiftEnter(r),r.preventDefault();break}}),ge.filter=()=>!0}}componentWillUnmount(){this.props.enableHotKeys&&ge.deleteScope("all")}render(){const{resultsCount:t,filterActive:r,disabled:n,enableSearchNavigation:i,currentResultsPosition:s,onEnter:o,onShiftEnter:a}=this.props,u=`match${t===1?"":"es"}`,c=r?re.active:re.inactive,f=t?re.active:re.inactive;return g.createElement("div",{className:`react-lazylog-searchbar ${re.searchBar}`},g.createElement("span",{className:`react-lazylog-searchbar-matches ${t?"active":"inactive"} ${t?re.active:re.inactive}`,style:{marginRight:"10px"}},i&&t?`${s+1} of ${t} ${u}`:`${t} ${u}`),g.createElement("input",{autoComplete:"off",type:"text",name:"search",placeholder:"Search",className:`react-lazylog-searchbar-input ${re.searchInput}`,onChange:this.handleSearchChange,onKeyUp:this.handleKeyPress,value:this.state.keywords,disabled:n,ref:this.inputRef,"aria-label":"Search Log"}),g.createElement("button",{title:"Filter Lines",disabled:n,className:`react-lazylog-searchbar-filter ${r?"active":"inactive"} ${re.button} ${c} ${re.clickable}`,onKeyUp:this.handleKeyPress,onMouseUp:this.handleFilterToggle},this.props.iconFilterLines||g.createElement(_a,null)),i&&g.createElement(w.Fragment,null,g.createElement("button",{title:"Previous",disabled:n,className:`react-lazylog-searchbar-up-arrow ${t?`active ${re.clickable}`:"inactive"} ${re.button} ${f}`,onClick:a},this.props.iconFindPrevious||g.createElement(ha,null)),g.createElement("button",{title:"Next",disabled:n,className:`react-lazylog-searchbar-down-arrow ${t?`active ${re.clickable}`:"inactive"} ${re.button} ${f}`,onClick:o},this.props.iconFindNext||g.createElement(ca,null))))}}cs.defaultProps={currentResultsPosition:0,disabled:!1,enableHotKeys:!1,filterActive:!1,onClearSearch:()=>{},onFilterLinesWithMatches:()=>{},onSearch:()=>{},resultsCount:0,searchMinCharacters:2};const Jn={30:"black",31:"red",32:"green",33:"yellow",34:"blue",35:"magenta",36:"cyan",37:"white",90:"grey"},Xn={40:"black",41:"red",42:"green",43:"yellow",44:"blue",45:"magenta",46:"cyan",47:"white"},Gn={1:"bold",3:"italic",4:"underline"},ma=(e,t)=>{if(e.length)return[e.substr(0,e.length-1),t];if(t.length){const r=t.length-1,{text:n}=t[r],i=n.length===1?t.slice(0,t.length-1):t.map((s,o)=>r===o?{...s,text:n.substr(0,n.length-1)}:s);return[e,i]}return[e,t]},Zn=e=>{let t=null,r=null,n="",i=[],s=[],o={};for(let a=0;a<e.length;a++){if(t!==null){t==="\x1B"&&e[a]==="["?(n&&(o.text=n,s.push(o),o={text:""},n=""),t=null,r=""):(n+=t+e[a],t=null);continue}else if(r!==null){if(e[a]===";")i.push(r),r="";else if(e[a]==="m"){i.push(r),r=null,n="";for(let u=0;u<i.length;u++){const c=i[u];Jn[c]?o.foreground=Jn[c]:Xn[c]?o.background=Xn[c]:c==="39"?delete o.foreground:c==="49"?delete o.background:Gn[c]?o[Gn[c]]=!0:c==="22"?o.bold=!1:c==="23"?o.italic=!1:c==="24"&&(o.underline=!1)}i=[]}else r+=e[a];continue}e[a]==="\x1B"?t=e[a]:e[a]==="\b"?[n,s]=ma(n,s):n+=e[a]}return n&&(o.text=n+(t||""),s.push(o)),s},Me=e=>new TextEncoder().encode(e),fs=e=>(ArrayBuffer.isView(e)||(e=new Uint8Array([e])),new TextDecoder("utf-8").decode(e));function lr(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}function ya(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var va=function(e){return e instanceof RegExp},wa=function(t){var r=/[\\^$.*+?()[\]{}|]/g,n=RegExp(r.source);return t&&n.test(t)?t.replace(r,"\\$&"):t},ls=function(e){return typeof e=="string"},ba=function(e){var t=[];return e.forEach(function(r){Array.isArray(r)?t=t.concat(r):t.push(r)}),t};function Sa(e,t,r){var n=0,i=0;if(e==="")return e;if(!e||!ls(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var s=t;va(s)||(s=new RegExp("("+wa(s)+")","gi"));for(var o=e.split(s),a=1,u=o.length;a<u;a+=2){if(o[a]===void 0||o[a-1]===void 0){console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}i=o[a].length,n+=o[a-1].length,o[a]=r(o[a],a,n),n+=i}return o}var Ea=function(t,r,n){return Array.isArray(t)||(t=[t]),ba(t.map(function(i){return ls(i)?Sa(i,r,n):i}))},xr=ya(Ea);const _n=10,gn=13,Vn=45,hs=e=>e===_n||e===gn,yt=({follow:e=!1,scrollToLine:t=0,previousCount:r=0,count:n=0,offset:i=0})=>e?n-1-i:t&&r>t?-1:t?t-1-i:-1,Lr=e=>!e||Array.isArray(e)&&(isNaN(e[0])||isNaN(e[1]))||!Array.isArray(e)&&isNaN(e)?Ve(0,0):Array.isArray(e)?e.length===1?Ve(e[0],e[0]+1):Ve(e[0],e[1]+1):Ve(e,e+1),Kt=(e,t)=>{const r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r},He=(e,t)=>{const r=t?Kt(t,e):e,{length:n}=r;let i=0,s=0;return{lines:G().withMutations(a=>{for(;s<n;){const u=r[s],c=r[s+1];hs(u)?(a.push(r.subarray(i,s)),i=u===gn&&c===_n?s+2:s+1,s=i):s+=1}!t&&s!==i&&a.push(r.slice(i))}),remaining:s!==i?r.slice(i):null}},xa=e=>{const{length:t}=e,r=[];let n=0,i=0;for(;i<t;){const s=e[i],o=e[i+1];hs(s)?(r.push(i),n=s===gn&&o===_n?i+2:i+1,i=n):i+=1}return r},Qn=({searchKeywords:e,nextFormatPart:t,caseInsensitive:r,replaceJsx:n,selectedLine:i,replaceJsxHighlight:s,highlightedWordLocation:o})=>a=>{let u=a;const c=e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),f=new RegExp(`(?=${c})`,r?"i":void 0),l=a.split(f),h=new RegExp(`(${c})`,r?"i":void 0),d=()=>(i?l.length===1?u=xr(u,c,s):u=l.map((p,_)=>xr(p,h,_===o?s:n)):u=xr(u,h,n),u);return r?a.toLowerCase().includes(e.toLowerCase())&&(u=d()):a.includes(e)&&(u=d()),u},La='^(?:(?!.*?[.]{2})[a-zA-Z0-9](?:[a-zA-Z0-9.+!%-]{1,64}|)|"[a-zA-Z0-9.+!% -]{1,64}")',ka="[a-zA-Z0-9][a-zA-Z0-9.-]+(.[a-z]{2,}|.[0-9]{1,})$",Oa=new RegExp(`${La}@${ka}`),ei="(((http|ftp)?s?s?)(:)(/{2}))",za=/https?:[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/,Ia=e=>{const t=[];return e.forEach(r=>{const n=r.text.split(" ");let i=!1,s="";n.forEach(o=>{if(o.search(za)>-1){if(t.push({text:s.trimEnd()}),s="",i=!0,o.search(Oa)>-1){t.push({token:o,email:!0});return}if(o.search(ei)===-1){t.push({text:`https://${o}`,link:!0});return}o.split(new RegExp(/(\()*([^\)]+)(\))*/)).filter(Boolean).forEach(u=>{u.search(ei)>-1?t.push({text:u,link:!0}):t.push({text:u})});return}s+=o+" "}),i||t.push(r)}),t};var Ma=(e,t)=>{const{withCredentials:r,onOpen:n,onClose:i,onError:s,formatMessage:o}=t,a=lr();let u=new Uint8Array,c=null;return a.on("data",f=>{u=Kt(u,Me(f));const{lines:l,remaining:h}=He(Me(f),c);c=h,a.emit("update",{lines:l,encodedLog:u})}),a.on("done",()=>{c&&a.emit("update",{lines:G.of(c),encodedLog:u}),a.emit("end",u)}),a.on("start",()=>{try{const f=new EventSource(e,{withCredentials:r});f.addEventListener("open",l=>{n&&n(l,f)}),f.addEventListener("close",l=>{i&&i(l)}),f.addEventListener("error",l=>{s&&s(l),t.reconnect===!1&&f.close()}),f.addEventListener("message",l=>{let h=o?o(l.data):l.data;typeof h=="string"&&(h=h.endsWith(`
|
|
168
|
+
`)?h:`${h}
|
|
169
|
+
`,a.emit("data",h))}),a.on("abort",()=>{f.close()})}catch(f){a.emit("error",f)}}),a};const Ca=Promise.resolve().then(()=>globalThis.fetch);var Ra=(e,t)=>{const r=lr();return r.on("start",async()=>{try{const i=await(await Ca)(e,Object.assign({credentials:"omit"},t));if(!i.ok){const u=new Error(i.statusText);u.status=i.status,r.emit("error",u);return}const s=await i.arrayBuffer(),o=new Uint8Array(s),{lines:a}=He(o);r.emit("update",{lines:a}),r.emit("end",o)}catch(n){r.emit("error",n)}}),r};const Aa=(e,t)=>{const r=Array.from(Me(e)),n=[-1,0],i=r.length,s=t.length,o=i-1;let a=0,u=0,c=0,f=2;for(;f<i;)r[f-1]===r[a]?(a+=1,n[f]=a,f+=1):a>0?a=n[a]:(n[f]=0,f+=1);const l=[];for(;u+c<s;)r[c]===t[u+c]?(c===o&&l.push(u),c+=1):n[c]>-1?(u=u+c-n[c],c=n[c]):(c=0,u+=1);return l},Na=(e,t,r)=>{let n=e,i=t,s=fs(i);r&&(n=n?.toLowerCase(),s=s.toLowerCase()),s=s.endsWith(`
|
|
170
|
+
`)?s:s+`
|
|
171
|
+
`,i=Me(s);const o=Aa(n,i),a=xa(i),u=a.length,c=o.length,f=[];let l=0,h=0,d,p;for(;l<u;){for(d=a[l];h<c&&(p=o[h],p<=d);)f.push(l+1),h+=1;l+=1}return f},Ta=Promise.resolve().then(()=>globalThis.fetch),ds=async(e,t)=>{const r=await e.read();if(r.value&&t.emit("data",r.value),!r.done)return ds(e,t);t.emit("done")};var $a=(e,t)=>{const r=lr();let n=null,i=new Uint8Array;return r.on("data",s=>{i=Kt(i,new Uint8Array(s));const{lines:o,remaining:a}=He(s,n);n=a,r.emit("update",{lines:o,encodedLog:i})}),r.on("done",()=>{n&&r.emit("update",{lines:G.of(n),encodedLog:i}),r.emit("end",i)}),r.on("start",async()=>{try{const o=await(await Ta)(e,Object.assign({credentials:"omit"},t));if(!o.ok){const u=new Error(o.statusText);u.status=o.status,r.emit("error",u);return}const a=o.body?.getReader();return r.on("abort",()=>a?.cancel("ABORTED")),ds(a,r)}catch(s){r.emit("error",s)}}),r},Ba=(e,t)=>{const{onOpen:r,onClose:n,onError:i,formatMessage:s,protocols:o}=t,a=lr();let u=new Uint8Array,c=null,f=!1;return a.on("data",l=>{u=Kt(u,Me(l));const{lines:h,remaining:d}=He(Me(l),c);c=d,a.emit("update",{lines:h,encodedLog:u})}),a.on("done",()=>{c&&a.emit("update",{lines:G.of(c),encodedLog:u}),a.emit("end",u)}),a.on("start",()=>{try{const l=new WebSocket(e,o);l.addEventListener("open",h=>{r&&r(h,l)}),l.addEventListener("close",h=>{if(n&&n(h),!f&&t.reconnect){const d=t.reconnectWait??1;setTimeout(()=>a.emit("start"),d*1e3)}}),l.addEventListener("error",h=>{i&&i(h)}),l.addEventListener("message",h=>{let d=s?s(h.data):h.data;typeof d=="string"&&(d=d.endsWith(`
|
|
172
|
+
`)?d:`${d}
|
|
173
|
+
`,a.emit("data",d))}),a.on("abort",()=>{f=!0,l.close()})}catch(l){a.emit("error",l)}}),a},ja=`.index-module_lazyLog__4TukL {
|
|
174
|
+
overflow: auto !important;
|
|
175
|
+
font-family: "Monaco", monospace;
|
|
176
|
+
font-size: 12px;
|
|
177
|
+
margin: 0;
|
|
178
|
+
white-space: pre;
|
|
179
|
+
background-color: #222222;
|
|
180
|
+
color: #ffffff;
|
|
181
|
+
font-weight: 400;
|
|
182
|
+
will-change: initial;
|
|
183
|
+
outline: none;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.index-module_lazyLog__4TukL span a {
|
|
187
|
+
color: #d6d6d6;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.index-module_wrapLine__1TUVd {
|
|
191
|
+
overflow-x: hidden !important;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.index-module_searchMatch__o26h7 {
|
|
195
|
+
background-color: #ffff00;
|
|
196
|
+
color: #222222;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.index-module_searchMatchHighlighted__fKXBW {
|
|
200
|
+
background-color: #ff10f0;
|
|
201
|
+
color: #222222;
|
|
202
|
+
}
|
|
203
|
+
`,vt={lazyLog:"index-module_lazyLog__4TukL",wrapLine:"index-module_wrapLine__1TUVd",searchMatch:"index-module_searchMatch__o26h7",searchMatchHighlighted:"index-module_searchMatchHighlighted__fKXBW"};ve(ja);class ps extends w.Component{constructor(){super(...arguments),this.state={resultLines:[],count:0,currentResultsPosition:0,isFilteringLinesWithMatches:!1,isSearching:!1,offset:0,resultLineUniqueIndexes:[],scrollOffset:0,scrollToIndex:0,scrollToLine:0,lines:G()},this.emitter=void 0,this.encodedLog=void 0,this.searchBarRef=g.createRef(),this.listRef=g.createRef(),this.handleUpdate=({lines:t,encodedLog:r})=>{this.encodedLog=r;const{scrollToLine:n,follow:i,stream:s,websocket:o,eventsource:a,external:u}=this.props;if(s||o||a||u)this.setState((c,f)=>{const{scrollToLine:l,follow:h}=f,{count:d}=c,p=0,_=(c.lines||G()).concat(t),y=_.count(),v=yt({follow:h,scrollToLine:l,previousCount:d,count:y,offset:p});return{lines:_,offset:p,count:y,scrollToIndex:v}}),this.forceSearch();else{const{count:c}=this.state,f=0,l=(this.state.lines||G()).concat(t),h=l.count(),d=yt({follow:i,scrollToLine:n,previousCount:c,count:h,offset:f});this.setState({lines:l,offset:f,count:h,scrollToIndex:d})}},this.handleEnd=t=>{this.encodedLog=t,this.setState({loaded:!0}),this.props.onLoad&&this.props.onLoad()},this.handleError=t=>{this.setState({error:t}),this.props.onError&&this.props.onError(t)},this.handleHighlight=t=>{const{onHighlight:r,enableMultilineHighlight:n}=this.props,{isFilteringLinesWithMatches:i}=this.state;if(!t.currentTarget.id)return;const s=+t.currentTarget.id;if(!s)return;const o=this.state.highlight?.first(),a=this.state.highlight?.last();let u;o===s?u=null:!t.shiftKey||!o?u=s:n&&s>o?u=[o,s]:!n&&s>o?u=s:u=[s,a];const c=Lr(u),f={highlight:c};return i&&Object.assign(f,{scrollToIndex:yt({scrollToLine:s})}),this.setState(f,()=>{r&&r(c),i&&this.handleFilterLinesWithMatches(!1)}),c},this.handleEnterPressed=()=>{const{resultLines:t,scrollToLine:r,currentResultsPosition:n,isFilteringLinesWithMatches:i}=this.state;if(!this.props.enableSearchNavigation){this.handleFilterLinesWithMatches(!i);return}if(t){if(r&&n+1<t.length){this.handleScrollToLine(t[n+1]),this.setState({currentResultsPosition:n+1});return}this.handleScrollToLine(t[0]),this.setState({currentResultsPosition:0})}},this.handleShiftEnterPressed=()=>{const{resultLines:t,scrollToLine:r,currentResultsPosition:n}=this.state;if(this.props.enableSearchNavigation&&t){if(r&&n-1>=0){this.handleScrollToLine(t[n-1]),this.setState({currentResultsPosition:n-1});return}this.handleScrollToLine(t[t.length-1]),this.setState({currentResultsPosition:t.length-1})}},this.handleSearch=t=>{const{resultLines:r,searchKeywords:n,currentResultsPosition:i}=this.state,{caseInsensitive:s,stream:o,websocket:a,eventsource:u,external:c}=this.props,f=!o&&!a&&!u&&!c&&t===n?r:Na(t,this.encodedLog,s);let l=i;l>f.length-1&&(l=0),this.setState({resultLines:f,isSearching:!0,searchKeywords:t,currentResultsPosition:l},this.filterLinesWithMatches)},this.forceSearch=()=>{const{searchKeywords:t}=this.state,{searchMinCharacters:r}=this.props;t&&t.length>(r||0)&&this.handleSearch(this.state.searchKeywords)},this.handleClearSearch=()=>{this.setState({isSearching:!1,searchKeywords:"",resultLines:[],filteredLines:G(),resultLineUniqueIndexes:[],isFilteringLinesWithMatches:this.state.isFilteringLinesWithMatches,scrollToIndex:0,currentResultsPosition:0})},this.handleFilterLinesWithMatches=t=>{this.setState({isFilteringLinesWithMatches:t,filteredLines:G(),resultLineUniqueIndexes:[]},this.filterLinesWithMatches)},this.filterLinesWithMatches=()=>{const{resultLines:t,lines:r,isFilteringLinesWithMatches:n}=this.state;if(t.length>0&&n){const i=[...new Set(t)];this.setState({resultLineUniqueIndexes:i,filteredLines:r?.filter((s,o)=>i.some(a=>o+1===a))})}},this.handleFormatPart=t=>{const{isSearching:r,searchKeywords:n,resultLines:i,currentResultsPosition:s}=this.state,{enableSearchNavigation:o}=this.props;if(r){if(o&&i&&s!==void 0&&i[s]===t){let a=0;const u=i.findIndex(c=>c===i[s]);for(let c=u;c<=s;c+=1)i[c]===t&&(a+=1);return Qn({searchKeywords:n,nextFormatPart:void 0,caseInsensitive:this.props.caseInsensitive,replaceJsx:(c,f)=>g.createElement("span",{key:f,className:vt.searchMatch},c),selectedLine:!0,replaceJsxHighlight:(c,f)=>g.createElement("span",{key:f,className:vt.searchMatchHighlighted},c),highlightedWordLocation:a})}return Qn({searchKeywords:n,nextFormatPart:void 0,caseInsensitive:this.props.caseInsensitive,replaceJsx:(a,u)=>g.createElement("span",{key:u,className:vt.searchMatch},a),selectedLine:void 0,replaceJsxHighlight:void 0,highlightedWordLocation:void 0})}return this.props.formatPart},this.renderRow=t=>{const{rowHeight:r,selectableLines:n,lineClassName:i,highlightLineClassName:s,onLineNumberClick:o,onLineContentClick:a,gutter:u,enableGutters:c,enableLineNumbers:f,wrapLines:l,enableLinks:h}=this.props,{highlight:d,lines:p,offset:_,isFilteringLinesWithMatches:y,filteredLines:v,resultLineUniqueIndexes:S}=this.state,x=y?v:p,K=y?S[t.index]:t.index+1+_;if(x?.size<=0)return this.renderNoRows();if(!K)return;const k=fs(x?.get(t.index)),m=h?Ia(Zn(k)):Zn(k);return g.createElement(Ae,{className:`log-line ${i}`,data:m,enableGutters:c,wrapLines:l,enableLineNumbers:f,enableLinks:h,formatPart:this.handleFormatPart(K),gutter:u?u[K]:void 0,highlight:d?.includes(K),highlightClassName:`log-highlight ${s}`,key:t.index,number:K,rowHeight:r,selectable:n,onLineNumberClick:P=>{const H=this.handleHighlight(P);o?.({lineNumber:K,highlightRange:H})},onLineContentClick:a})},this.renderNoRows=()=>{const{lineClassName:t,highlightLineClassName:r,wrapLines:n}=this.props,{error:i,count:s,loaded:o}=this.state;return i?this.renderError():!s&&o?g.createElement(g.Fragment,null):s?g.createElement(Ae,{wrapLines:n,className:t,highlightClassName:r,data:[{bold:!0,text:"No filter matches"}]}):this.props.loadingComponent||g.createElement($r,null)},this.calculateListHeight=(t=!1)=>{const{height:r,enableSearch:n}=this.props;if(!this.listRef?.current)return 0;const i=this.listRef.current.viewportSize,s=n?Vn:0;return r==="auto"?t?n?`calc(100% - ${Vn}px)`:"100%":i:Number(r)-s},this.getItemSize=t=>this.props.rowHeight||19}static getDerivedStateFromProps({highlight:t,follow:r,scrollToLine:n,url:i,text:s},{count:o,offset:a,url:u,text:c,highlight:f,isSearching:l,scrollToIndex:h}){const d=l?h:yt({follow:r,scrollToLine:n,count:o,offset:a}),p=i&&i!==u||s&&s!==c;return{scrollToIndex:d,highlight:f===Ve(0,0)?Lr(t):f||Lr(f),...p?{url:i,text:s,lines:G(),count:0,offset:0,loaded:!1,error:null}:null}}componentDidMount(){this.request(),this.props.scrollToLine&&setTimeout(()=>{this.listRef&&this.listRef.current&&this.handleScrollToLine(this.props.scrollToLine)},100)}componentDidUpdate(t,r){const{props:n,state:i,listRef:s}=this,{url:o,text:a,follow:u,extraLines:c,onLoad:f,onError:l,highlight:h,onHighlight:d,scrollToLine:p}=n,{scrollOffset:_,scrollToIndex:y,isSearching:v,loaded:S,error:x}=i,K=t.url!==o||r.url!==i.url||t.text!==a;K&&this.request(),K&&!u&&_>0&&s?.current?.scrollTo(_);const k=r.scrollOffset!=_;u&&!v&&!k&&s?.current?.scrollToIndex(y+(c||0),{align:"nearest"}),!S&&r.loaded!==S&&f?f():x&&r.error!==x&&l&&l(x),h&&h!==t.highlight&&d&&d(i.highlight);const P=p&&t.scrollToLine!==p;!u&&P&&this.handleScrollToLine(p)}componentWillUnmount(){this.endRequest()}initEmitter(){const{stream:t,websocket:r,eventsource:n,url:i,fetchOptions:s,websocketOptions:o,eventsourceOptions:a}=this.props;return r?Ba(i,o):n?Ma(i,a):t?$a(i,s):Ra(i,s)}request(){const{text:t,url:r,external:n}=this.props;if(this.endRequest(),t){const i=Me(t),{lines:s}=He(i);this.handleUpdate({lines:s,encodedLog:i}),this.handleEnd(i)}if(r&&(this.emitter=this.initEmitter(),this.emitter.on("update",this.handleUpdate),this.emitter.on("end",this.handleEnd),this.emitter.on("error",this.handleError),this.emitter.emit("start")),n){const i=Me(""),{lines:s}=He(i);this.handleUpdate({lines:s,encodedLog:i})}}endRequest(){this.emitter&&(this.emitter.emit("abort"),this.emitter.off("update",this.handleUpdate),this.emitter.off("end",this.handleEnd),this.emitter.off("error",this.handleError),this.emitter=null)}appendLines(t){const r=t.join(`
|
|
204
|
+
`),n=Me(r.endsWith(`
|
|
205
|
+
`)?r:r+`
|
|
206
|
+
`),i=Kt(this.encodedLog,n),{lines:s}=He(n);this.handleUpdate({lines:s,encodedLog:i})}handleScrollToLine(t=0){const r=yt({scrollToLine:t});this.setState({scrollToIndex:r,scrollToLine:t}),this.listRef?.current?.scrollToIndex(r,{align:"nearest"})}renderError(){const{url:t,lineClassName:r,selectableLines:n,highlightLineClassName:i,enableLinks:s,wrapLines:o}=this.props,{error:a}=this.state;return g.createElement(w.Fragment,null,g.createElement(Ae,{wrapLines:o,selectable:n,className:r,highlightClassName:i,enableLinks:s,number:"Error",key:"error-line-0",data:[{bold:!0,foreground:"red",text:a?.status?`${a?.message} (HTTP ${a?.status})`:a?.message||"Network Error"}]}),g.createElement(Ae,{wrapLines:o,selectable:n,key:"error-line-1",className:r,highlightClassName:i,enableLinks:s,data:[{bold:!0,text:"An error occurred attempting to load the provided log."}]}),g.createElement(Ae,{wrapLines:o,selectable:n,key:"error-line-2",className:r,highlightClassName:i,enableLinks:s,data:[{bold:!0,text:"Please check the URL and ensure it is reachable."}]}),g.createElement(Ae,{wrapLines:o,selectable:n,key:"error-line-3",className:r,highlightClassName:i,enableLinks:s,data:[]}),g.createElement(Ae,{wrapLines:o,selectable:n,key:"error-line-4",className:r,highlightClassName:i,enableLinks:s,data:[{foreground:"blue",text:t}]}))}clear(){this.searchBarRef.current?.setState({keywords:""}),this.handleClearSearch(),this.setState({count:0,lines:G(),isFilteringLinesWithMatches:!1})}render(){const{enableSearch:t}=this.props,{resultLines:r,isFilteringLinesWithMatches:n,filteredLines:i=G(),count:s,currentResultsPosition:o}=this.state,a=n?i.size:s;return g.createElement(w.Fragment,null,t&&g.createElement(cs,{ref:this.searchBarRef,currentResultsPosition:o,disabled:s===0,enableHotKeys:this.props.enableHotKeys,enableSearchNavigation:this.props.enableSearchNavigation,filterActive:n,iconFilterLines:this.props.iconFilterLines,iconFindNext:this.props.iconFindNext,iconFindPrevious:this.props.iconFindPrevious,onClearSearch:this.handleClearSearch,onEnter:this.handleEnterPressed,onFilterLinesWithMatches:this.handleFilterLinesWithMatches,onSearch:this.handleSearch,onShiftEnter:this.handleShiftEnterPressed,resultsCount:r.length,searchMinCharacters:this.props.searchMinCharacters}),g.createElement(qo,{ref:this.listRef,className:`react-lazylog ${vt.lazyLog} ${this.props.wrapLines?vt.wrapLine:""}`,style:{height:this.calculateListHeight(!0)},onScroll:u=>{if(this.setState({scrollOffset:u}),this.props.onScroll){if(!this.listRef?.current)return;const c={scrollTop:u,scrollHeight:this.listRef.current.scrollSize,clientHeight:this.calculateListHeight()};this.props.onScroll(c)}}},Array.from({length:a===0?a:a+(this.props.extraLines||0)}).map((u,c)=>this.renderRow({index:c})),this.props.loading===!0&&(this.props.loadingComponent||g.createElement($r,null))))}}ps.defaultProps={containerStyle:{width:"auto",maxWidth:"initial",overflow:"initial"},caseInsensitive:!1,enableGutters:!1,enableHotKeys:!1,enableLineNumbers:!0,enableLinks:!1,enableMultilineHighlight:!0,enableSearch:!1,enableSearchNavigation:!0,wrapLines:!1,extraLines:0,fetchOptions:{credentials:"omit"},follow:!1,formatPart:void 0,height:"auto",highlight:void 0,highlightLineClassName:"",lineClassName:"",onError:void 0,onHighlight:void 0,onLineNumberClick:void 0,onLoad:void 0,loading:void 0,overscanRowCount:100,rowHeight:19,scrollToLine:0,searchMinCharacters:2,selectableLines:!1,stream:!1,style:{},websocket:!1,websocketOptions:{},eventsource:!1,eventsourceOptions:{},width:"auto",external:!1};class qa extends w.Component{constructor(){super(...arguments),this.state={follow:this.props.startFollowing??!1},this.handleScroll=({scrollTop:t,scrollHeight:r,clientHeight:n})=>{r>n&&(this.state.follow&&r-t!==n?this.setState({follow:!1}):!this.state.follow&&r-t===n&&this.setState({follow:!0}))},this.startFollowing=()=>{this.setState({follow:!0})},this.stopFollowing=()=>{this.setState({follow:!1})}}render(){const{render:t}=this.props,{follow:r}=this.state;return g.createElement(w.Fragment,null,t({follow:r,onScroll:this.handleScroll,startFollowing:this.startFollowing,stopFollowing:this.stopFollowing}))}}qa.defaultProps={startFollowing:!1};const Pa="/static/assets/live-streaming.svg",Fa=()=>{const e=document.documentElement.getAttribute("data-theme")==="dark";return{control:t=>({...t,background:e?"#0f131a":"#ffffff",color:e?"#eaeef2":"#1d1d1f",borderColor:e?"#2a2f36":"#d2d2d7",minHeight:"38px",boxShadow:"none","&:hover":{borderColor:e?"#3a4149":"#b8b8bd"}}),menu:t=>({...t,background:e?"#0f131a":"#ffffff",borderColor:e?"#2a2f36":"#d2d2d7",border:`1px solid ${e?"#2a2f36":"#d2d2d7"}`}),option:(t,r)=>({...t,background:r.isFocused?e?"rgba(122, 162, 247, 0.15)":"rgba(0, 113, 227, 0.1)":e?"#0f131a":"#ffffff",color:e?"#eaeef2":"#1d1d1f","&:active":{background:e?"rgba(122, 162, 247, 0.25)":"rgba(0, 113, 227, 0.2)"}}),singleValue:t=>({...t,color:e?"#eaeef2":"#1d1d1f"}),input:t=>({...t,color:e?"#eaeef2":"#1d1d1f"}),placeholder:t=>({...t,color:e?"#9aa3ac":"#6e6e73"}),menuList:t=>({...t,padding:"4px"})}};function Ya({active:e}){const[t,r]=w.useState([]),[n,i]=w.useState("All.log"),[s,o]=w.useState(""),[a,u]=w.useState(!0),[c,f]=w.useState(!1),[l,h]=w.useState(!1),[d,p]=w.useState(!1),_=w.useRef(""),y=w.useRef(0),{push:v}=ys(),S=w.useCallback((k,m)=>k instanceof Error&&k.message?`${m}: ${k.message}`:typeof k=="string"&&k.trim().length?`${m}: ${k}`:m,[]),x=w.useCallback(async()=>{f(!0);try{const m=(await vs()).files??[];r(m),m.length?i(P=>P&&m.includes(P)?P:m.find(H=>H==="All.log")??m[0]):i("")}catch(k){v(S(k,"Failed to refresh log list"),"error")}finally{f(!1)}},[S,v]);w.useEffect(()=>{(async()=>{try{const P=(await Es())?.WebUI;_.current=P?.Token||""}catch(m){console.error("Failed to fetch WebUI token from config:",m)}finally{p(!0)}})()},[]),w.useEffect(()=>{x()},[x]);const K=w.useCallback(async(k=!1)=>{if(n){k&&h(!0);try{const m=new URLSearchParams;_.current&&m.set("token",_.current);const P=await fetch(`/web/logs/${encodeURIComponent(n)}?${m}`);if(!P.ok)throw new Error(`${P.status} ${P.statusText}`);const H=await P.text(),Le=H.split(`
|
|
207
|
+
`).length;Le!==y.current&&(o(H),y.current=Le)}catch(m){v(S(m,`Failed to read ${n}`),"error")}finally{k&&h(!1)}}},[n,v,S]);return w.useEffect(()=>{n&&d&&(y.current=0,K(!0))},[n,d,K]),ks(()=>{d&&K(!1)},e?1e3:null),M.jsxs("section",{className:"card",style:{height:"calc(100vh - 140px)",display:"flex",flexDirection:"column",margin:0,padding:0},children:[M.jsx("div",{className:"card-header",style:{flexShrink:0},children:"Logs"}),M.jsxs("div",{className:"card-body",style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",padding:"12px"},children:[M.jsxs("div",{className:"row",style:{flexShrink:0,marginBottom:"12px"},children:[M.jsx("div",{className:"col field",children:M.jsxs("div",{className:"field",children:[M.jsx("label",{children:"Log File"}),M.jsx(Ls,{options:t.map(k=>({value:k,label:k})),value:n?{value:n,label:n}:null,onChange:k=>i(k?.value||""),isDisabled:!t.length,styles:Fa()})]})}),M.jsxs("div",{className:"col field",children:[M.jsx("label",{children:" "}),M.jsxs("div",{className:"row",style:{alignItems:"center"},children:[M.jsxs("button",{className:"btn ghost",onClick:()=>void x(),disabled:c,children:[M.jsx(dr,{src:ws}),"Reload List"]}),M.jsxs("button",{className:"btn",onClick:()=>n&&window.open(Ss(n),"_blank"),disabled:!n,children:[M.jsx(dr,{src:bs}),"Download"]}),M.jsxs("label",{className:"hint inline",style:{cursor:"pointer"},children:[M.jsx("input",{type:"checkbox",checked:a,onChange:k=>u(k.target.checked)}),M.jsx(dr,{src:Pa}),M.jsx("span",{children:"Auto-scroll"})]})]})]})]}),M.jsx("div",{style:{flex:1,minHeight:0,overflow:"hidden",borderRadius:"4px"},children:l?M.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"#666",backgroundColor:"#0a0e14"},children:[M.jsx("span",{className:"spinner",style:{marginRight:"8px"}}),"Loading logs..."]}):s?M.jsx(ps,{text:s,follow:a,enableSearch:!0,caseInsensitive:!0,selectableLines:!0,extraLines:1,style:{height:"100%",backgroundColor:"#0a0e14",color:"#e5e5e5",fontFamily:'"Cascadia Code", "Fira Code", "Consolas", "Monaco", monospace',fontSize:"13px",lineHeight:"1.5"}}):M.jsx("div",{style:{color:"#666",backgroundColor:"#0a0e14",padding:"16px"},children:"Select a log file to view..."})})]})]})}export{Ya as LogsView};
|
|
2
208
|
//# sourceMappingURL=LogsView.js.map
|