qBitrr2 5.7.1__py3-none-any.whl → 5.8.1__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/arss.py +25 -141
- qBitrr/bundled_data.py +2 -2
- qBitrr/database.py +79 -0
- qBitrr/main.py +14 -8
- qBitrr/search_activity_store.py +9 -39
- qBitrr/static/assets/ConfigView.js +4 -4
- qBitrr/static/assets/ConfigView.js.map +1 -1
- qBitrr/static/assets/LogsView.js +19 -19
- qBitrr/static/assets/LogsView.js.map +1 -1
- qBitrr/tables.py +11 -0
- {qbitrr2-5.7.1.dist-info → qbitrr2-5.8.1.dist-info}/METADATA +19 -1
- {qbitrr2-5.7.1.dist-info → qbitrr2-5.8.1.dist-info}/RECORD +16 -15
- {qbitrr2-5.7.1.dist-info → qbitrr2-5.8.1.dist-info}/WHEEL +1 -1
- {qbitrr2-5.7.1.dist-info → qbitrr2-5.8.1.dist-info}/entry_points.txt +0 -0
- {qbitrr2-5.7.1.dist-info → qbitrr2-5.8.1.dist-info}/licenses/LICENSE +0 -0
- {qbitrr2-5.7.1.dist-info → qbitrr2-5.8.1.dist-info}/top_level.txt +0 -0
qBitrr/static/assets/LogsView.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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; }
|
|
1
|
+
import{j as R,u as bs,d as Ss,I as lr,R as Es,D as xs,e as Ls,f as ks}from"./app.js";import{r as v,R as g}from"./table.js";import{r as Is,S as Os}from"./react-select.esm.js";import{u as zs}from"./useInterval.js";import"./vendor.js";var Jt="@@__IMMUTABLE_INDEXED__@@";function de(e){return!!(e&&e[Jt])}var Vt="@@__IMMUTABLE_KEYED__@@";function j(e){return!!(e&&e[Vt])}function Tr(e){return j(e)||de(e)}var ti="@@__IMMUTABLE_ITERABLE__@@";function ce(e){return!!(e&&e[ti])}var G=function(t){return ce(t)?t:ne(t)},pe=(function(e){function t(r){return j(r)?r:je(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(G),Ue=(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})(G),nt=(function(e){function t(r){return ce(r)&&!Tr(r)?r:ot(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(G);G.Keyed=pe;G.Indexed=Ue;G.Set=nt;var it=0,fe=1,le=2,Lr=typeof Symbol=="function"&&Symbol.iterator,ri="@@iterator",rr=Lr||ri,L=function(t){this.next=t};L.prototype.toString=function(){return"[Iterator]"};L.KEYS=it;L.VALUES=fe;L.ENTRIES=le;L.prototype.inspect=L.prototype.toSource=function(){return this.toString()};L.prototype[rr]=function(){return this};function q(e,t,r,n){var i=e===it?t:e===fe?r:[t,r];return n?n.value=i:n={value:i,done:!1},n}function ee(){return{value:void 0,done:!0}}function ni(e){return Array.isArray(e)?!0:!!nr(e)}function yn(e){return!!(e&&typeof e.next=="function")}function kr(e){var t=nr(e);return t&&t.call(e)}function nr(e){var t=e&&(Lr&&e[Lr]||e[ri]);if(typeof t=="function")return t}function Ms(e){var t=nr(e);return t&&t===e.entries}function Cs(e){var t=nr(e);return t&&t===e.keys}var $t="delete",$=5,ae=1<<$,Q=ae-1,E={};function Ir(){return{value:!1}}function he(e){e&&(e.value=!0)}function Br(){}function Ge(e){return e.size===void 0&&(e.size=e.__iterate(ii)),e.size}function Ne(e,t){if(typeof t!="number"){var r=t>>>0;if(""+r!==t||r===4294967295)return NaN;t=r}return t<0?Ge(e)+t:t}function ii(){return!0}function ir(e,t,r){return(e===0&&!oi(e)||r!==void 0&&e<=-r)&&(t===void 0||r!==void 0&&t>=r)}function Nt(e,t){return si(e,t,0)}function sr(e,t){return si(e,t,t)}function si(e,t,r){return e===void 0?r:oi(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function oi(e){return e<0||e===0&&1/e===-1/0}var ai="@@__IMMUTABLE_RECORD__@@";function We(e){return!!(e&&e[ai])}function Ee(e){return ce(e)||We(e)}var Te="@@__IMMUTABLE_ORDERED__@@";function Se(e){return!!(e&&e[Te])}var ui="@@__IMMUTABLE_SEQ__@@";function jr(e){return!!(e&&e[ui])}var st=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?Pr():Ee(r)?r.toSeq():As(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 L(function(){if(a===o)return ee();var u=s[i?o-++a:a++];return q(n,u[0],u[1])})}return this.__iteratorUncached(n,i)},t})(G),je=(function(e){function t(r){return r==null?Pr().toKeyedSeq():ce(r)?j(r)?r.toSeq():r.fromEntrySeq():We(r)?r.toSeq():Fr(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?Pr():ce(r)?j(r)?r.entrySeq():r.toIndexedSeq():We(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),ot=(function(e){function t(r){return(ce(r)&&!Tr(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=jr;ne.Keyed=je;ne.Set=ot;ne.Indexed=ye;ne.prototype[ui]=!0;var Ze=(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[Ne(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 L(function(){if(a===o)return ee();var u=i?o-++a:a++;return q(n,u,s[u])})},t})(ye),qr=(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 st.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 L(function(){if(u===a)return ee();var c=o[i?a-++u:u++];return q(n,c,s[c])})},t})(je);qr.prototype[Te]=!0;var Rs=(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=kr(s),a=0;if(yn(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=kr(s);if(!yn(o))return new L(ee);var a=0;return new L(function(){var u=o.next();return u.done?u:q(n,a++,u.value)})},t})(ye),vn;function Pr(){return vn||(vn=new Ze([]))}function Fr(e){var t=Dr(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new qr(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function fi(e){var t=Dr(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function As(e){var t=Dr(e);if(t)return Ms(e)?t.fromEntrySeq():Cs(e)?t.toSetSeq():t;if(typeof e=="object")return new qr(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function Dr(e){return ci(e)?new Ze(e):ni(e)?new Rs(e):void 0}function Tt(){return this.__ensureOwner()}function Bt(){return this.__ownerID?this:this.__ensureOwner(new Br)}var dt=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 or(e){return e>>>1&1073741824|e&3221225471}var $s=Object.prototype.valueOf;function se(e){if(e==null)return wn(e);if(typeof e.hashCode=="function")return or(e.hashCode(e));var t=Ps(e);if(t==null)return wn(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return Ns(t);case"string":return t.length>Fs?Ts(t):Or(t);case"object":case"function":return js(t);case"symbol":return Bs(t);default:if(typeof t.toString=="function")return Or(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function wn(e){return e===null?1108378658:1108378659}function Ns(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 or(t)}function Ts(e){var t=pr[e];return t===void 0&&(t=Or(e),dr===Ds&&(dr=0,pr={}),dr++,pr[e]=t),t}function Or(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return or(t)}function Bs(e){var t=En[e];return t!==void 0||(t=li(),En[e]=t),t}function js(e){var t;if(zr&&(t=Mr.get(e),t!==void 0)||(t=e[Pe],t!==void 0)||!Sn&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Pe],t!==void 0||(t=qs(e),t!==void 0)))return t;if(t=li(),zr)Mr.set(e,t);else{if(bn!==void 0&&bn(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Sn)Object.defineProperty(e,Pe,{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[Pe]=t;else if(e.nodeType!==void 0)e[Pe]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var bn=Object.isExtensible,Sn=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})();function qs(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function Ps(e){return e.valueOf!==$s&&typeof e.valueOf=="function"?e.valueOf(e):e}function li(){var e=++hr;return hr&1073741824&&(hr=0),e}var zr=typeof WeakMap=="function",Mr;zr&&(Mr=new WeakMap);var En=Object.create(null),hr=0,Pe="__immutablehash__";typeof Symbol=="function"&&(Pe=Symbol(Pe));var Fs=16,Ds=255,dr=0,pr={},ar=(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=Ur(this,!0);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().reverse()}),i},t.prototype.map=function(n,i){var s=this,o=gi(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})(je);ar.prototype[Te]=!0;var hi=(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&&Ge(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(fe,i),a=0;return i&&Ge(this),new L(function(){var u=o.next();return u.done?u:q(n,i?s.size-++a:a++,u.value,u)})},t})(ye),di=(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(fe,i);return new L(function(){var o=s.next();return o.done?o:q(n,o.value,o.value,o)})},t})(ot),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.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(o){if(o){Ln(o);var a=ce(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(fe,i);return new L(function(){for(;;){var o=s.next();if(o.done)return o;var a=o.value;if(a){Ln(a);var u=ce(a);return q(n,u?a.get(0):a[0],u?a.get(1):a[1],o)}}})},t})(je);hi.prototype.cacheResult=ar.prototype.cacheResult=di.prototype.cacheResult=pi.prototype.cacheResult=Hr;function _i(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=Hr,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===le){var i=e.__iterator(r,n);return new L(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===fe?it:fe,n)},t}function gi(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,E);return o===E?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(le,s);return new L(function(){var a=o.next();if(a.done)return a;var u=a.value,c=u[0];return q(i,c,t.call(r,u[1],c,e),a)})},n}function Ur(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=_i(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=Hr,n.__iterate=function(i,s){var o=this,a=0;return s&&Ge(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&&Ge(e);var a=e.__iterator(le,!s);return new L(function(){var u=a.next();if(u.done)return u;var c=u.value;return q(i,t?c[0]:s?r.size-++o:o++,c[1],u)})},n}function mi(e,t,r,n){var i=xe(e);return n&&(i.has=function(s){var o=e.get(s,E);return o!==E&&!!t.call(r,o,s,e)},i.get=function(s,o){var a=e.get(s,E);return a!==E&&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(le,o),u=0;return new L(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 q(s,n?l:u++,h,c)}})},i}function Us(e,t,r){var n=at().asMutable();return e.__iterate(function(i,s){n.update(t.call(r,i,s,e),0,function(o){return o+1})}),n.asImmutable()}function Ws(e,t,r){var n=j(e),i=(Se(e)?Ce():at()).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=Kr(e);return i.map(function(o){return A(e,s(o))}).asImmutable()}function Ks(e,t,r){var n=j(e),i=[[],[]];e.__iterate(function(o,a){i[t.call(r,o,a,e)?1:0].push(n?[a,o]:o)});var s=Kr(e);return i.map(function(o){return A(e,s(o))})}function Wr(e,t,r,n){var i=e.size;if(ir(t,r,i))return e;if(typeof i>"u"&&(t<0||r<0))return Wr(e.toSeq().cacheResult(),t,r,n);var s=Nt(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&&jr(e)&&u>=0&&(c.get=function(f,l){return f=Ne(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(w,y){if(!(p&&(p=d++<s)))return _++,f(w,n?y:_-1,h)!==!1&&_!==u}),_},c.__iteratorUncached=function(f,l){if(u!==0&&l)return this.cacheResult().__iterator(f,l);if(u===0)return new L(ee);var h=e.__iterator(f,l),d=0,p=0;return new L(function(){for(;d++<s;)h.next();if(++p>u)return ee();var _=h.next();return n||f===fe||_.done?_:f===it?q(f,p-1,void 0,_):q(f,p-1,_.value[1],_)})},c}function Hs(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(le,s),u=!0;return new L(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===le?c:q(i,l,h,c):(u=!1,ee())})},n}function yi(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(le,o),c=!0,f=0;return new L(function(){var l,h,d;do{if(l=u.next(),l.done)return n||s===fe?l:s===it?q(s,f++,void 0,l):q(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===le?l:q(s,h,d,l)})},i}var Ys=(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[Jt]=this._wrappedIterables[0][Jt],this[Te]=this._wrappedIterables[0][Te]}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=j(this),a=o?le:fe,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 L(ee);if(i)return this.cacheResult().__iterator(n,i);var o=0,a=this._wrappedIterables[o].__iterator(n,i);return new L(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 Xs(e,t){var r=j(e),n=[e].concat(t).map(function(s){return ce(s)?r&&(s=pe(s)):s=r?Fr(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&&j(i)||de(e)&&de(i))return i}return new Ys(n)}function vi(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)&&ce(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 L(function(){for(;o;){var c=o.next();if(c.done!==!1){o=a.pop();continue}var f=c.value;if(i===le&&(f=f[1]),(!t||a.length<t)&&ce(f))a.push(o),o=f.__iterator(i,s);else return r?c:q(i,u++,f,c)}return ee()})},n}function Gs(e,t,r){var n=Kr(e);return e.toSeq().map(function(i,s){return n(t.call(r,i,s,e))}).flatten(!0)}function Zs(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(fe,i),o=0,a;return new L(function(){return(!a||o%2)&&(a=s.next(),a.done)?a:o%2?q(n,o++,t):q(n,o++,a.value,a)})},r}function Je(e,t,r){t||(t=wi);var n=j(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?je(s):de(e)?ye(s):ot(s)}function Ut(e,t,r){if(t||(t=wi),r){var n=e.toSeq().map(function(i,s){return[i,r(i,s,e)]}).reduce(function(i,s){return xn(t,i[1],s[1])?s:i});return n&&n[0]}return e.reduce(function(i,s){return xn(t,i,s)?s:i})}function xn(e,t,r){var n=e(r,t);return n===0&&r!==t&&(r==null||r!==r)||n>0}function Wt(e,t,r,n){var i=xe(e),s=new Ze(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(fe,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=G(l),kr(a?l.reverse():l)}),c=0,f=!1;return new L(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():q(o,c++,t.apply(null,l.map(function(h){return h.value})))})},i}function A(e,t){return e===t?e:jr(e)?t:e.constructor(t)}function Ln(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Kr(e){return j(e)?pe:de(e)?Ue:nt}function xe(e){return Object.create((j(e)?je:de(e)?ye:ot).prototype)}function Hr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ne.prototype.cacheResult.call(this)}function wi(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 kn(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function ue(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!!(kn(e)&&kn(t)&&e.equals(t))}function bi(e,t,r,n){return ut(e,[t],r,n)}function Si(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return xi(this,e)}function Ei(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 xi(this,t,e)}function xi(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?We(e)?e:e.constructor(n[0]):e.withMutations(function(o){for(var a=r?function(c,f){bi(o,f,E,function(l){return l===E?c:r(l,c,f)})}:function(c,f){o.set(f,c)},u=0;u<n.length;u++)n[u].forEach(a)})}var Js=Object.prototype.toString;function Vs(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 Be(e){return typeof e=="object"&&(Ee(e)||Array.isArray(e)||Vs(e))}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 Qt(e){if(Array.isArray(e))return we(e);var t={};for(var r in e)st.call(e,r)&&(t[r]=e[r]);return t}function Yr(e,t,r){return Xr(e,t,Qs(r))}function Xr(e,t,r){if(!Be(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?Ue:pe,o=n?function(u){i===e&&(i=Qt(i)),i.push(u)}:function(u,c){var f=st.call(i,c),l=f&&r?r(i[c],u,c):u;(!f||l!==i[c])&&(i===e&&(i=Qt(i)),i[c]=l)},a=0;a<t.length;a++)s(t[a]).forEach(o);return i}function Qs(e){function t(r,n,i){return Be(r)&&Be(n)&&eo(r,n)?Xr(r,[n],t):e?e(r,n,i):n}return t}function eo(e,t){var r=ne(e),n=ne(t);return de(r)===de(n)&&j(r)===j(n)}function Li(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Yr(this,e)}function ki(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Yr(this,t,e)}function Gr(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return ut(this,e,be(),function(n){return Yr(n,t)})}function Zr(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return ut(this,e,be(),function(n){return Xr(n,t)})}function to(e,t,r){return ut(e,t,E,function(){return r})}function Jr(e,t){return to(this,e,t)}function Vr(e,t,r){return arguments.length===1?e(this):bi(this,e,t,r)}function Qr(e,t,r){return ut(this,e,t,r)}function en(){return this.__altered}function jt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}var Ii="@@__IMMUTABLE_MAP__@@";function tn(e){return!!(e&&e[Ii])}function bt(e,t){if(!e)throw new Error(t)}function oe(e){bt(e!==1/0,"Cannot perform this action with an infinite size.")}var at=(function(e){function t(r){return r==null?be():tn(r)&&!Se(r)?r:be().withMutations(function(n){var i=e(r);oe(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 zn(this,n,i)},t.prototype.remove=function(n){return zn(this,n,E)},t.prototype.deleteAll=function(n){var i=G(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 Ce(Je(this,n))},t.prototype.sortBy=function(n,i){return Ce(Je(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 ro(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?rn(this.size,this._root,n,this.__hash):this.size===0?be():(this.__ownerID=n,this.__altered=!1,this)},t})(pe);at.isMap=tn;var T=at.prototype;T[Ii]=!0;T[$t]=T.remove;T.removeAll=T.deleteAll;T.setIn=Jr;T.removeIn=T.deleteIn=on;T.update=Vr;T.updateIn=Qr;T.merge=T.concat=Si;T.mergeWith=Ei;T.mergeDeep=Li;T.mergeDeepWith=ki;T.mergeIn=Zr;T.mergeDeepIn=Gr;T.withMutations=jt;T.wasAltered=en;T.asImmutable=Tt;T["@@transducer/init"]=T.asMutable=Bt;T["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};T["@@transducer/result"]=function(e){return e.asImmutable()};var Lt=function(t,r){this.ownerID=t,this.entries=r};Lt.prototype.get=function(t,r,n,i){for(var s=this.entries,o=0,a=s.length;o<a;o++)if(ue(n,s[o][0]))return s[o][1];return i};Lt.prototype.update=function(t,r,n,i,s,o,a){for(var u=s===E,c=this.entries,f=0,l=c.length;f<l&&!ue(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>=uo)return no(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 Lt(t,p)}};var Ve=function(t,r,n){this.ownerID=t,this.bitmap=r,this.nodes=n};Ve.prototype.get=function(t,r,n,i){r===void 0&&(r=se(n));var s=1<<((t===0?r:r>>>t)&Q),o=this.bitmap;return(o&s)===0?i:this.nodes[Oi(o&s-1)].get(t+$,r,n,i)};Ve.prototype.update=function(t,r,n,i,s,o,a){n===void 0&&(n=se(i));var u=(r===0?n:n>>>r)&Q,c=1<<u,f=this.bitmap,l=(f&c)!==0;if(!l&&s===E)return this;var h=Oi(f&c-1),d=this.nodes,p=l?d[h]:void 0,_=nn(p,t,r+$,n,i,s,o,a);if(_===p)return this;if(!l&&_&&d.length>=co)return so(t,d,f,u,_);if(l&&!_&&d.length===2&&Mn(d[h^1]))return d[h^1];if(l&&_&&d.length===1&&Mn(_))return _;var w=t&&t===this.ownerID,y=l?_?f:f^c:f|c,k=l?_?zi(d,h,_,w):ao(d,h,w):oo(d,h,_,w);return w?(this.bitmap=y,this.nodes=k,this):new Ve(t,y,k)};var kt=function(t,r,n){this.ownerID=t,this.count=r,this.nodes=n};kt.prototype.get=function(t,r,n,i){r===void 0&&(r=se(n));var s=(t===0?r:r>>>t)&Q,o=this.nodes[s];return o?o.get(t+$,r,n,i):i};kt.prototype.update=function(t,r,n,i,s,o,a){n===void 0&&(n=se(i));var u=(r===0?n:n>>>r)&Q,c=s===E,f=this.nodes,l=f[u];if(c&&!l)return this;var h=nn(l,t,r+$,n,i,s,o,a);if(h===l)return this;var d=this.count;if(!l)d++;else if(!h&&(d--,d<fo))return io(t,f,d,u);var p=t&&t===this.ownerID,_=zi(f,u,h,p);return p?(this.count=d,this.nodes=_,this):new kt(t,d,_)};var Qe=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entries=n};Qe.prototype.get=function(t,r,n,i){for(var s=this.entries,o=0,a=s.length;o<a;o++)if(ue(n,s[o][0]))return s[o][1];return i};Qe.prototype.update=function(t,r,n,i,s,o,a){n===void 0&&(n=se(i));var u=s===E;if(n!==this.keyHash)return u?this:(he(a),he(o),sn(this,t,r,n,[i,s]));for(var c=this.entries,f=0,l=c.length;f<l&&!ue(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 Me(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 Qe(t,this.keyHash,p)};var Me=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entry=n};Me.prototype.get=function(t,r,n,i){return ue(n,this.entry[0])?this.entry[1]:i};Me.prototype.update=function(t,r,n,i,s,o,a){var u=s===E,c=ue(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 Me(t,this.keyHash,[i,s]):(he(o),sn(this,t,r,se(i),[i,s]))};Lt.prototype.iterate=Qe.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};Ve.prototype.iterate=kt.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}};Me.prototype.iterate=function(e,t){return e(this.entry)};var ro=(function(e){function t(r,n,i){this._type=n,this._reverse=i,this._stack=r._root&&In(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 _r(n,s.entry)}else if(s.entries){if(a=s.entries.length-1,o<=a)return _r(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 _r(n,u.entry);i=this._stack=In(u,i)}continue}i=this._stack=this._stack.__prev}return ee()},t})(L);function _r(e,t){return q(e,t[0],t[1])}function In(e,t){return{node:e,index:0,__prev:t}}function rn(e,t,r,n){var i=Object.create(T);return i.size=e,i._root=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var On;function be(){return On||(On=rn(0))}function zn(e,t,r){var n,i;if(e._root){var s=Ir(),o=Ir();if(n=nn(e._root,e.__ownerID,0,void 0,t,r,s,o),!o.value)return e;i=e.size+(s.value?r===E?-1:1:0)}else{if(r===E)return e;i=1,n=new Lt(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=i,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?rn(i,n):be()}function nn(e,t,r,n,i,s,o,a){return e?e.update(t,r,n,i,s,o,a):s===E?e:(he(a),he(o),new Me(t,n,[i,s]))}function Mn(e){return e.constructor===Me||e.constructor===Qe}function sn(e,t,r,n,i){if(e.keyHash===n)return new Qe(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?[sn(e,t,r+$,n,i)]:(a=new Me(t,n,i),s<o?[e,a]:[a,e]);return new Ve(t,1<<s|1<<o,u)}function no(e,t,r,n){e||(e=new Br);for(var i=new Me(e,se(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 io(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 Ve(e,i,o)}function so(e,t,r,n,i){for(var s=0,o=new Array(ae),a=0;r!==0;a++,r>>>=1)o[a]=r&1?t[s++]:void 0;return o[n]=i,new kt(e,s+1,o)}function Oi(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 zi(e,t,r,n){var i=n?e:we(e);return i[t]=r,i}function oo(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 ao(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 uo=ae/4,co=ae/2,fo=ae/4;function Mi(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)}function It(e){try{return typeof e=="string"?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function lo(e,t){return Ee(e)?e.has(t):Be(e)&&st.call(e,t)}function Ci(e,t,r){return Ee(e)?e.get(t,r):lo(e,t)?typeof e.get=="function"?e.get(t):e[t]:r}function ho(e,t){if(!Be(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(!st.call(e,t))return e;var r=Qt(e);return Array.isArray(r)?r.splice(t,1):delete r[t],r}function po(e,t,r){if(!Be(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(st.call(e,t)&&r===e[t])return e;var n=Qt(e);return n[t]=r,n}function ut(e,t,r,n){n||(n=r,r=void 0);var i=Ri(Ee(e),e,Mi(t),0,r,n);return i===E?r:i}function Ri(e,t,r,n,i,s){var o=t===E;if(n===r.length){var a=o?i:t,u=s(a);return u===a?t:u}if(!o&&!Be(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(r).slice(0,n).map(It)+"]: "+t);var c=r[n],f=o?E:Ci(t,c,E),l=Ri(f===E?e:Ee(f),f,r,n+1,i,s);return l===f?t:l===E?ho(t,c):po(o?e?be():{}:t,c,l)}function _o(e,t){return ut(e,t,function(){return E})}function on(e){return _o(this,e)}var Ai="@@__IMMUTABLE_LIST__@@";function $i(e){return!!(e&&e[Ai])}var X=(function(e){function t(r){var n=Gt();if(r==null)return n;if($i(r))return r;var i=e(r),s=i.size;return s===0?n:(oe(s),s>0&&s<ae?Ot(0,s,$,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=Ne(this,n),n>=0&&n<this.size){n+=this._origin;var s=Ni(this,n);return s&&s.array[n&Q]}return i},t.prototype.set=function(n,i){return go(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=$,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Gt()},t.prototype.push=function(){var n=arguments,i=this.size;return this.withMutations(function(s){Ae(s,0,i+n.length);for(var o=0;o<n.length;o++)s.set(i+o,n[o])})},t.prototype.pop=function(){return Ae(this,0,-1)},t.prototype.unshift=function(){var n=arguments;return this.withMutations(function(i){Ae(i,-n.length);for(var s=0;s<n.length;s++)i.set(s,n[s])})},t.prototype.shift=function(){return Ae(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"&&ni(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 Ae(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:Ae(this,Nt(n,s),sr(i,s))},t.prototype.__iterator=function(n,i){var s=i?this.size:0,o=Cn(this,i);return new L(function(){var a=o();return a===St?ee():q(n,i?--s:s++,a)})},t.prototype.__iterate=function(n,i){for(var s=i?this.size:0,o=Cn(this,i),a;(a=o())!==St&&n(a,i?--s:s++,this)!==!1;);return s},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?Ot(this._origin,this._capacity,this._level,this._root,this._tail,n,this.__hash):this.size===0?Gt():(this.__ownerID=n,this.__altered=!1,this)},t})(Ue);X.isList=$i;var U=X.prototype;U[Ai]=!0;U[$t]=U.remove;U.merge=U.concat;U.setIn=Jr;U.deleteIn=U.removeIn=on;U.update=Vr;U.updateIn=Qr;U.mergeIn=Zr;U.mergeDeepIn=Gr;U.withMutations=jt;U.wasAltered=en;U.asImmutable=Tt;U["@@transducer/init"]=U.asMutable=Bt;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+$)-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-$,n),o===a&&s)return this}if(s&&!o)return this;var u=et(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+$:ae)||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-$,n),s===o&&i===this.array.length-1)return this}var a=et(this,t);return a.array.splice(i+1),s&&(a.array[i]=s),a};var St={};function Cn(e,t){var r=e._origin,n=e._capacity,i=zt(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>ae&&(d=ae),function(){if(h===d)return St;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 _>ae&&(_=ae),function(){for(;;){if(h){var w=h();if(w!==St)return w;h=null}if(p===_)return St;var y=t?--_:p++;h=o(d&&d[y],f-$,l+(y<<f))}}}}function Ot(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 Gt(){return Ot(0,0,$)}function go(e,t,r){if(t=Ne(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(o){t<0?Ae(o,t).set(0,r):Ae(o,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,i=e._root,s=Ir();return t>=zt(e._capacity)?n=Cr(n,e.__ownerID,0,t,r,s):i=Cr(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):Ot(e._origin,e._capacity,e._level,i,n):e}function Cr(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=Cr(c,t,r-$,n,i,s);return f===c?e:(u=et(e,t),u.array[o]=f,u)}return a&&e.array[o]===i?e:(s&&he(s),u=et(e,t),i===void 0&&o===u.array.length-1?u.array.pop():u.array[o]=i,u)}function et(e,t){return t&&e&&t===e.ownerID?e:new $e(e?e.array.slice():[],t)}function Ni(e,t){if(t>=zt(e._capacity))return e._tail;if(t<1<<e._level+$){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&Q],n-=$;return r}}function Ae(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+=$,f+=1<<u;f&&(o+=f,i+=f,a+=f,s+=f);for(var l=zt(s),h=zt(a);h>=1<<u+$;)c=new $e(c&&c.array.length?[c]:[],n),u+=$;var d=e._tail,p=h<l?Ni(e,a-1):h>l?new $e([],n):d;if(d&&h>l&&o<s&&d.array.length){c=et(c,n);for(var _=c,w=u;w>$;w-=$){var y=l>>>w&Q;_=_.array[y]=et(_.array[y],n)}_.array[l>>>$&Q]=d}if(a<s&&(p=p&&p.removeAfter(n,0,a)),o>=h)o-=h,a-=h,u=$,c=null,p=p&&p.removeBefore(n,0,o);else if(o>i||h<l){for(f=0;c;){var k=o>>>u&Q;if(k!==h>>>u&Q)break;k&&(f+=(1<<u)*k),u-=$,c=c.array[k]}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):Ot(o,a,u,c,p)}function zt(e){return e<ae?0:e-1>>>$<<$}function Ti(e){return tn(e)&&Se(e)}var Ce=(function(e){function t(r){return r==null?mt():Ti(r)?r:mt().withMutations(function(n){var i=pe(r);oe(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):mt()},t.prototype.set=function(n,i){return An(this,n,i)},t.prototype.remove=function(n){return An(this,n,E)},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?an(i,s,n,this.__hash):this.size===0?mt():(this.__ownerID=n,this.__altered=!1,this._map=i,this._list=s,this)},t})(at);Ce.isOrderedMap=Ti;Ce.prototype[Te]=!0;Ce.prototype[$t]=Ce.prototype.remove;function an(e,t,r,n){var i=Object.create(Ce.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 Rn;function mt(){return Rn||(Rn=an(be(),Gt()))}function An(e,t,r){var n=e._map,i=e._list,s=n.get(t),o=s!==void 0,a,u;if(r===E){if(!o)return e;i.size>=ae&&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):an(a,u)}var Bi="@@__IMMUTABLE_STACK__@@";function Rr(e){return!!(e&&e[Bi])}var un=(function(e){function t(r){return r==null?Kt():Rr(r)?r:Kt().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=Ne(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):yt(i,s)},t.prototype.pushAll=function(n){if(n=e(n),n.size===0)return this;if(this.size===0&&Rr(n))return n;oe(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):yt(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):Kt()},t.prototype.slice=function(n,i){if(ir(n,i,this.size))return this;var s=Nt(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):yt(a,u)},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?yt(this.size,this._head,n,this.__hash):this.size===0?Kt():(this.__ownerID=n,this.__altered=!1,this)},t.prototype.__iterate=function(n,i){var s=this;if(i)return new Ze(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 Ze(this.toArray()).__iterator(n,i);var s=0,o=this._head;return new L(function(){if(o){var a=o.value;return o=o.next,q(n,s++,a)}return ee()})},t})(Ue);un.isStack=Rr;var te=un.prototype;te[Bi]=!0;te.shift=te.pop;te.unshift=te.push;te.unshiftAll=te.pushAll;te.withMutations=jt;te.wasAltered=en;te.asImmutable=Tt;te["@@transducer/init"]=te.asMutable=Bt;te["@@transducer/step"]=function(e,t){return e.unshift(t)};te["@@transducer/result"]=function(e){return e.asImmutable()};function yt(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 $n;function Kt(){return $n||($n=yt(0))}function Nn(e,t,r,n,i,s){return oe(e.size),e.__iterate(function(o,a,u){i?(i=!1,r=o):r=t.call(n,r,o,a,u)},s),r}function mo(e,t){return t}function yo(e,t){return[t,e]}function gr(e){return function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return!e.apply(this,t)}}function Tn(e){return function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return-e.apply(this,t)}}function Bn(e,t){return e<t?1:e>t?-1:0}function ji(e,t){if(e===t)return!0;if(!ce(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||j(e)!==j(t)||de(e)!==de(t)||Se(e)!==Se(t))return!1;if(e.size===0&&t.size===0)return!0;var r=!Tr(e);if(Se(e)){var n=e.entries();return t.every(function(u,c){var f=n.next().value;return f&&ue(f[1],u)&&(r||ue(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?!ue(u,e.get(c,E)):!ue(e.get(c,E),u))return o=!1,!1});return o&&e.size===a}var Xe=(function(e){function t(r,n,i){if(i===void 0&&(i=1),!(this instanceof t))return new t(r,n,i);if(bt(i!==0,"Cannot step a Range by 0"),bt(r!==void 0,"You must define a start value when using Range"),bt(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(mr)return mr;mr=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+Ne(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=Nt(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 L(function(){if(u===s)return ee();var c=a;return a+=i?-o:o,q(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:ji(this,n)},t})(ye),mr,qi="@@__IMMUTABLE_SET__@@";function cn(e){return!!(e&&e[qi])}var ur=(function(e){function t(r){return r==null?vt():cn(r)&&!Se(r)?r:vt().withMutations(function(n){var i=e(r);oe(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=G(n).toArray(),n.length?Y.intersect.apply(t(n.pop()),n):vt()},t.union=function(n){return n=G(n).toArray(),n.length?Y.union.apply(t(n.pop()),n):vt()},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 Mt(Je(this,n))},t.prototype.sortBy=function(n,i){return Mt(Je(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})(nt);ur.isSet=cn;var Y=ur.prototype;Y[qi]=!0;Y[$t]=Y.remove;Y.merge=Y.concat=Y.union;Y.withMutations=jt;Y.asImmutable=Tt;Y["@@transducer/init"]=Y.asMutable=Bt;Y["@@transducer/step"]=function(e,t){return e.add(t)};Y["@@transducer/result"]=function(e){return e.asImmutable()};Y.__empty=vt;Y.__make=Pi;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 Pi(e,t){var r=Object.create(Y);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var jn;function vt(){return jn||(jn=Pi(be()))}function Fi(e,t,r){for(var n=Mi(t),i=0;i!==n.length;)if(e=Ci(e,n[i++],E),e===E)return r;return e}function Di(e,t){return Fi(this,e,t)}function vo(e,t){return Fi(e,t,E)!==E}function wo(e){return vo(this,e)}function Ui(){oe(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e}function er(e){if(!e||typeof e!="object")return e;if(!ce(e)){if(!Be(e))return e;e=ne(e)}if(j(e)){var t={};return e.__iterate(function(n,i){t[i]=er(n)}),t}var r=[];return e.__iterate(function(n){r.push(er(n))}),r}function bo(e){if(e.size===1/0)return 0;var t=Se(e),r=j(e),n=t?1:0;return e.__iterate(r?t?function(i,s){n=31*n+qn(se(i),se(s))|0}:function(i,s){n=n+qn(se(i),se(s))|0}:t?function(i){n=31*n+se(i)|0}:function(i){n=n+se(i)|0}),So(e.size,n)}function So(e,t){return t=dt(t,3432918353),t=dt(t<<15|t>>>-15,461845907),t=dt(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=dt(t^t>>>16,2246822507),t=dt(t^t>>>13,3266489909),t=or(t^t>>>16),t}function qn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function Ke(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}G.Iterator=L;Ke(G,{toArray:function(){oe(this.size);var t=new Array(this.size||0),r=j(this),n=0;return this.__iterate(function(i,s){t[n++]=r?[s,i]:i}),t},toIndexedSeq:function(){return new hi(this)},toJS:function(){return er(this)},toKeyedSeq:function(){return new ar(this,!0)},toMap:function(){return at(this.toKeyedSeq())},toObject:Ui,toOrderedMap:function(){return Ce(this.toKeyedSeq())},toOrderedSet:function(){return Mt(j(this)?this.valueSeq():this)},toSet:function(){return ur(j(this)?this.valueSeq():this)},toSetSeq:function(){return new di(this)},toSeq:function(){return de(this)?this.toIndexedSeq():j(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return un(j(this)?this.valueSeq():this)},toList:function(){return X(j(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 A(this,Xs(this,t))},includes:function(t){return this.some(function(r){return ue(r,t)})},entries:function(){return this.__iterator(le)},every:function(t,r){oe(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 A(this,mi(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 oe(this.size),this.__iterate(r?t.bind(r):t)},join:function(t){oe(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(it)},map:function(t,r){return A(this,gi(this,t,r))},reduce:function(t,r,n){return Nn(this,t,r,n,arguments.length<2,!1)},reduceRight:function(t,r,n){return Nn(this,t,r,n,arguments.length<2,!0)},reverse:function(){return A(this,Ur(this,!0))},slice:function(t,r){return A(this,Wr(this,t,r,!0))},some:function(t,r){oe(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 A(this,Je(this,t))},values:function(){return this.__iterator(fe)},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 Ge(t?this.toSeq().filter(t,r):this)},countBy:function(t,r){return Us(this,t,r)},equals:function(t){return ji(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Ze(t._cache);var r=t.toSeq().map(yo).toIndexedSeq();return r.fromEntrySeq=function(){return t.toSeq()},r},filterNot:function(t,r){return this.filter(gr(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(ii,null,t)},flatMap:function(t,r){return A(this,Gs(this,t,r))},flatten:function(t){return A(this,vi(this,t,!0))},fromEntrySeq:function(){return new pi(this)},get:function(t,r){return this.find(function(n,i){return ue(i,t)},void 0,r)},getIn:Di,groupBy:function(t,r){return Ws(this,t,r)},has:function(t){return this.get(t,E)!==E},hasIn:wo,isSubset:function(t){return t=typeof t.includes=="function"?t:G(t),this.every(function(r){return t.includes(r)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:G(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(r){return ue(r,t)})},keySeq:function(){return this.toSeq().map(mo).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?Tn(t):Bn)},minBy:function(t,r){return Ut(this,r?Tn(r):Bn,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 A(this,yi(this,t,r,!0))},skipUntil:function(t,r){return this.skipWhile(gr(t),r)},sortBy:function(t,r){return A(this,Je(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 A(this,Hs(this,t,r))},takeUntil:function(t,r){return this.takeWhile(gr(t),r)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=bo(this))}});var Z=G.prototype;Z[ti]=!0;Z[rr]=Z.values;Z.toJSON=Z.toArray;Z.__toStringMapper=It;Z.inspect=Z.toSource=function(){return this.toString()};Z.chain=Z.flatMap;Z.contains=Z.includes;Ke(pe,{flip:function(){return A(this,_i(this))},mapEntries:function(t,r){var n=this,i=0;return A(this,this.toSeq().map(function(s,o){return t.call(r,[o,s],i++,n)}).fromEntrySeq())},mapKeys:function(t,r){var n=this;return A(this,this.toSeq().flip().map(function(i,s){return t.call(r,i,s,n)}).flip())}});var qt=pe.prototype;qt[Vt]=!0;qt[rr]=Z.entries;qt.toJSON=Ui;qt.__toStringMapper=function(e,t){return It(t)+": "+It(e)};Ke(Ue,{toKeyedSeq:function(){return new ar(this,!1)},filter:function(t,r){return A(this,mi(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 A(this,Ur(this,!1))},slice:function(t,r){return A(this,Wr(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=Nt(t,t<0?this.count():this.size);var i=this.slice(0,t);return A(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 A(this,vi(this,t,!1))},get:function(t,r){return t=Ne(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=Ne(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return A(this,Zs(this,t))},interleave:function(){var t=[this].concat(we(arguments)),r=Wt(this.toSeq(),ye.of,t),n=r.flatten(!0);return r.size&&(n.size=r.size*t.length),A(this,n)},keySeq:function(){return Xe(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,r){return A(this,yi(this,t,r,!1))},zip:function(){var t=[this].concat(we(arguments));return A(this,Wt(this,Pn,t))},zipAll:function(){var t=[this].concat(we(arguments));return A(this,Wt(this,Pn,t,!0))},zipWith:function(t){var r=we(arguments);return r[0]=this,A(this,Wt(this,t,r))}});var ct=Ue.prototype;ct[Jt]=!0;ct[Te]=!0;Ke(nt,{get:function(t,r){return this.has(t)?t:r},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var tt=nt.prototype;tt.has=Z.includes;tt.contains=tt.includes;tt.keys=tt.values;Ke(je,qt);Ke(ye,ct);Ke(ot,tt);function Pn(){return we(arguments)}function Wi(e){return cn(e)&&Se(e)}var Mt=(function(e){function t(r){return r==null?Ar():Wi(r)?r:Ar().withMutations(function(n){var i=nt(r);oe(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})(ur);Mt.isOrderedSet=Wi;var He=Mt.prototype;He[Te]=!0;He.zip=ct.zip;He.zipWith=ct.zipWith;He.zipAll=ct.zipAll;He.__empty=Ar;He.__make=Ki;function Ki(e,t){var r=Object.create(He);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var Fn;function Ar(){return Fn||(Fn=Ki(mt()))}function Eo(e){if(We(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 K=function(t,r){var n;Eo(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 "+ln(this)+' with property "'+h+'" since that property name is part of the Record API.'):xo(s,h)}}return this.__ownerID=void 0,this._values=X().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(N);return s.constructor=i,r&&(i.displayName=r),i};K.prototype.toString=function(){for(var t=ln(this)+" { ",r=this._keys,n,i=0,s=r.length;i!==s;i++)n=r[i],t+=(i?", ":"")+n+": "+It(this.get(n));return t+" }"};K.prototype.equals=function(t){return this===t||We(t)&&rt(this).equals(rt(t))};K.prototype.hashCode=function(){return rt(this).hashCode()};K.prototype.has=function(t){return this._indices.hasOwnProperty(t)};K.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};K.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 fn(this,n)}return this};K.prototype.remove=function(t){return this.set(t)};K.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:fn(this,t)};K.prototype.wasAltered=function(){return this._values.wasAltered()};K.prototype.toSeq=function(){return rt(this)};K.prototype.toJS=function(){return er(this)};K.prototype.entries=function(){return this.__iterator(le)};K.prototype.__iterator=function(t,r){return rt(this).__iterator(t,r)};K.prototype.__iterate=function(t,r){return rt(this).__iterate(t,r)};K.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._values.__ensureOwner(t);return t?fn(this,r,t):(this.__ownerID=t,this._values=r,this)};K.isRecord=We;K.getDescriptiveName=ln;var N=K.prototype;N[ai]=!0;N[$t]=N.remove;N.deleteIn=N.removeIn=on;N.getIn=Di;N.hasIn=Z.hasIn;N.merge=Si;N.mergeWith=Ei;N.mergeIn=Zr;N.mergeDeep=Li;N.mergeDeepWith=ki;N.mergeDeepIn=Gr;N.setIn=Jr;N.update=Vr;N.updateIn=Qr;N.withMutations=jt;N.asMutable=Bt;N.asImmutable=Tt;N[rr]=N.entries;N.toJSON=N.toObject=Z.toObject;N.inspect=N.toSource=function(){return this.toString()};function fn(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._values=t,n.__ownerID=r,n}function ln(e){return e.constructor.displayName||e.constructor.name||"Record"}function rt(e){return Fr(e._keys.map(function(t){return[t,e.get(t)]}))}function xo(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(r){bt(this.__ownerID,"Cannot set on an immutable record."),this.set(t,r)}})}catch{}}const Ct=null,{min:Fe,max:_e,abs:Dn,floor:Lo}=Math,Hi=(e,t,r)=>Fe(r,_e(t,e)),Yi=e=>[...e].sort(((t,r)=>t-r)),Xi=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)},$r=()=>{let e;return[new Promise((t=>{e=t})),e]},Gi=e=>{let t;return()=>(e&&(t=e(),e=void 0),t)},Et=(e,t,r)=>{const n=r?"unshift":"push";for(let i=0;i<t;i++)e[n](-1);return e},Zi=(e,t)=>{const r=e.t[t];return r===-1?e.o:r},ko=(e,t,r)=>{const n=e.t[t]===-1;return e.t[t]=r,e.i=Fe(t,e.i),n},Zt=(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+=Zi(e,r),e.u[++r]=n;return e.i=t,n},Ye=(e,t,r=0,n=e.l-1)=>{let i=r;for(;r<=n;){const s=Lo((r+n)/2);Zt(e,s)<=t?(i=s,r=s+1):n=s-1}return Hi(i,0,e.l-1)},Un=(e,t,r)=>{const n=t-e.l;return e.i=r?-1:Fe(t-1,e.i),e.l=t,n>0?(Et(e.u,n),Et(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===-1?e.o:s)),0))},Io=typeof window<"u",Oo=e=>e.documentElement,zo=e=>e.ownerDocument,Mo=e=>e.defaultView,Ji=Gi((()=>!!/iP(hone|od|ad)/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>0)),Co=Gi((()=>"scrollBehavior"in Oo(document).style)),Ro=e=>_e(e.h(),e.p()),Ao=(e,t=40,r=0,n,i=!1)=>{let s=!!r,o=1,a=0,u=0,c=0,f=0,l=0,h=0,d=0,p=0,_=Ct,w=[0,s?_e(r-1,0):-1],y=0,k=!1;const I=((S,z,M)=>({o:z,t:M?Et(M.slice(0,Fe(S,M.length)),_e(0,S-M.length)):Et([],S),l:S,i:-1,u:Et([],S+1)}))(e,n?n[1]:t,n&&n[0]),F=new Set,O=()=>c-u,m=()=>O()+l+f,D=(S,z)=>((M,J,b,x)=>{if(x=Fe(x,M.l-1),Zt(M,x)<=J){const C=Ye(M,b,x);return[Ye(M,J,x,C),C]}{const C=Ye(M,J,void 0,x);return[C,Ye(M,b,C)]}})(I,S,z,w[0]),W=()=>Zt(I,I.l),qe=(S,z)=>{const M=Zt(I,S)-l;return z?W()-M-Le(S):M},Le=S=>Zi(I,S),lt=(S,z=-1)=>I.t[S]===z,ht=S=>{S&&(Ji()&&d!==0||_&&p===1?l+=S:f+=S)};return{v:()=>{F.clear()},m:()=>o,_:()=>(S=>[S.t.slice(),S.o])(I),S:(S=200)=>{if(!k||s)return w;let z,M;if(h)[z,M]=w;else{let J=_e(0,m()),b=J+a;i||(S=_e(0,S),d!==1&&(J-=S),d!==2&&(b+=S)),[z,M]=w=D(_e(0,J),_e(0,b)),_&&(z=Fe(z,_[0]),M=_e(M,_[1]))}return[_e(z,0),Fe(M,I.l-1)]},$:S=>Ye(I,S-u),I:lt,k:qe,R:Le,T:()=>I.l,C:()=>c,M:()=>d!==0,p:()=>a,O:()=>u,h:W,H:()=>(h=f,f=0,[h,p===2]),W:(S,z)=>{const M=[S,z];return F.add(M),()=>{F.delete(M)}},B:(S,z)=>{let M,J,b=0;switch(S){case 1:{if(z===c&&p===0)break;const x=h;h=0;const C=z-c,V=Dn(C);x&&V<Dn(x)+1||p!==0||(d=C<0?2:1),s&&(s=!1),c=z,b=4;const ke=O();ke>=-a&&ke<=W()&&(b+=1,J=V>a);break}case 2:b=8,d!==0&&(M=!0,b+=1),d=0,p=0,_=Ct;break;case 3:{const x=z.filter((([C,V])=>!lt(C,V)));if(!x.length)break;ht(x.reduce(((C,[V,ke])=>((p===2||(_&&p===1?V<_[0]:qe(V+(d===0&&p===0?1:0))<O()))&&(C+=ke-Le(V)),C)),0));for(const[C,V]of x){const ke=Le(C),Ft=ko(I,C,V);i&&(y+=Ft?V:V-ke)}i&&a&&y>a&&(ht(((C,V)=>{let ke=0;const Ft=[];C.t.forEach(((mn,ws)=>{mn!==-1&&(Ft.push(mn),ws<V&&ke++)})),C.i=-1;const Dt=Yi(Ft),gn=Dt.length,fr=gn/2|0,ys=gn%2==0?(Dt[fr-1]+Dt[fr])/2:Dt[fr],vs=C.o;return((C.o=ys)-vs)*_e(V-ke,0)})(I,Ye(I,m()))),i=!1),b=3,J=!0;break}case 4:a!==z&&(a||(k=J=!0),a=z,b=3);break;case 5:z[1]?(ht(Un(I,z[0],!0)),p=2,b=1):(Un(I,z[0]),b=1);break;case 6:u=z;break;case 7:p=1;break;case 8:_=D(z,z+a),b=1}b&&(o=1+(2147483647&o),M&&l&&(f+=l,l=0),F.forEach((([x,C])=>{b&x&&C(J)})))}}},hn=setTimeout,yr=(e,t)=>t?-e:e,$o=(e,t,r,n,i,s)=>{const o=Date.now;let a=0,u=!1,c=!1,f=!1,l=!1;const h=(()=>{let y;const k=()=>{y!=Ct&&clearTimeout(y)},I=()=>{k(),y=hn((()=>{y=Ct,(()=>{if(u||c)return u=!1,void h();f=!1,e.B(2)})()}),150)};return I.J=k,I})(),d=()=>{a=o(),f&&(l=!0),e.B(1,n()),h()},p=y=>{if(u||!e.M()||y.ctrlKey)return;const k=o()-a;150>k&&50<k&&(r?y.deltaX:y.deltaY)&&(u=!0)},_=()=>{c=!0,f=l=!1},w=()=>{c=!1,Ji()&&(f=!0)};return t.addEventListener("scroll",d),t.addEventListener("wheel",p,{passive:!0}),t.addEventListener("touchstart",_,{passive:!0}),t.addEventListener("touchend",w,{passive:!0}),{A:()=>{t.removeEventListener("scroll",d),t.removeEventListener("wheel",p),t.removeEventListener("touchstart",_),t.removeEventListener("touchend",w),h.J()},L:()=>{const[y,k]=e.H();y&&(i(y,k,l),l=!1,k&&e.p()>e.h()&&e.B(1,n()))}}},No=(e,t,r)=>{let n;return[async(i,s)=>{if(!await t())return;n&&n();const o=()=>{const[a,u]=$r();return n=()=>{u(!1)},e.p()&&hn(n,150),[a,e.W(2,(()=>{u(!0)}))]};if(s&&Co())e.B(8,i()),Xi((async()=>{for(;;){let a=!0;for(let[f,l]=e.S();f<=l;f++)if(e.I(f)){a=!1;break}if(a)break;const[u,c]=o();try{if(!await u)return}finally{c()}}e.B(7),r(i(),s)}));else for(;;){const[a,u]=o();try{if(e.B(7),r(i()),!await a)return}finally{u()}}},()=>{n&&n()}]},To=(e,t)=>{let r,n,i=$r(),s=!1;const o=t?"scrollLeft":"scrollTop",a=t?"overflowX":"overflowY",[u,c]=No(e,(()=>i[0]),((f,l)=>{f=yr(f,s),l?r.scrollTo({[t?"left":"top"]:f,behavior:"smooth"}):r[o]=f}));return{N(f,l){r=l,t&&(s=getComputedStyle(l).direction==="rtl"),n=$o(e,l,t,(()=>yr(l[o],s)),((h,d,p)=>{if(p){const _=l.style,w=_[a];_[a]="hidden",hn((()=>{_[a]=w}))}l[o]=yr(e.C()+h,s),d&&c()})),i[1](!0)},v(){n&&n.A(),i[1](!1),i=$r()},P:()=>s,V(f){u((()=>f))},X(f){f+=e.C(),u((()=>f))},Y(f,{align:l,smooth:h,offset:d=0}={}){if(f=Hi(f,0,e.T()-1),l==="nearest"){const p=e.k(f),_=e.C();if(p<_)l="start";else{if(!(p+e.R(f)>_+e.p()))return;l="end"}}u((()=>d+e.O()+e.k(f)+(l==="end"?e.R(f)-e.p():l==="center"?(e.R(f)-e.p())/2:0)),h)},q:()=>{n&&n.L()}}},Bo=e=>{let t;return{D(r){(t||(t=new(Mo(zo(r))).ResizeObserver(e))).observe(r)},j(r){t.unobserve(r)},A(){t&&t.disconnect()}}},jo=(e,t)=>{let r;const n=t?"width":"height",i=new WeakMap,s=Bo((o=>{const a=[];for(const{target:u,contentRect:c}of o)if(u.offsetParent)if(u===r)e.B(4,c[n]);else{const f=i.get(u);f!=Ct&&a.push([f,c[n]])}a.length&&e.B(3,a)}));return{G(o){s.D(r=o)},U:(o,a)=>(i.set(o,a),s.D(o),()=>{i.delete(o),s.j(o)}),v:s.A}},tr=Io?v.useLayoutEffect:v.useEffect,ie="current",Vi=(e,t)=>{if(Array.isArray(e))for(const r of e)Vi(r,t);else e==null||typeof e=="boolean"||t.push(e)},qo=(e,t)=>{const r=e.key;return r??"_"+t},Po=e=>{const t=v.useRef(null);return t[ie]||(t[ie]=e())},Wn=e=>{const t=v.useRef(e);return tr((()=>{t[ie]=e}),[e]),t},Fo=v.memo((({Z:e,ee:t,te:r,oe:n,ne:i,re:s,ie:o,se:a})=>{const u=v.useRef(null);tr((()=>t(u[ie],r)),[r]);const c=v.useMemo((()=>{const f={contain:"layout style",position:i&&a?void 0:"absolute",[o?"height":"width"]:"100%",[o?"top":"left"]:0,[o?"left":"top"]:n,visibility:!i||a?void 0:"hidden"};return o&&(f.display="inline-flex"),f}),[n,i,a,o]);return R.jsx(s,typeof s=="string"?{ref:u,style:c,children:e}:{ref:u,style:c,index:r,children:e})})),Do=(e,t)=>v.useMemo((()=>{if(typeof e=="function")return[n=>e(t[n],n),t.length];const r=(n=>{const i=[];return Vi(n,i),i})(e);return[n=>r[n],r.length]}),[e,t]),Uo=v.forwardRef((({children:e,data:t,bufferSize: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[w,y]=Do(e,t),k=v.useRef(null),I=v.useRef(!!c),F=Wn(d),O=Wn(p),[m,D,W,qe]=Po((()=>{const b=!!s,x=Ao(y,n,c,a,!n);return[x,jo(x,b),To(x,b),b]}));y!==m.T()&&m.B(5,[y,i]),u!==m.O()&&m.B(6,u);const[Le,lt]=v.useReducer(m.m,void 0,m.m),ht=m.M(),S=m.h(),z=W.P(),M=[],J=b=>{const x=w(b);return R.jsx(Fo,{ee:D.U,te:b,oe:m.k(b,z),ne:m.I(b),re:l,Z:x,ie:qe,se:I[ie]},qo(x,b))};if(tr((()=>{I[ie]=!1,m.W(1,(C=>{C?Is.flushSync(lt):lt()})),m.W(4,(()=>{F[ie]&&F[ie](m.C())})),m.W(8,(()=>{O[ie]&&O[ie]()}));const b=k[ie],x=C=>{D.G(C),W.N(b,C)};return h?Xi((()=>{h[ie]&&x(h[ie])})):x(b.parentElement),()=>{m.v(),D.v(),W.v()}}),[]),tr((()=>{W.q()}),[Le]),v.useImperativeHandle(_,(()=>({get cache(){return m._()},get scrollOffset(){return m.C()},get scrollSize(){return Ro(m)},get viewportSize(){return m.p()},findItemIndex:m.$,getItemOffset:m.k,getItemSize:m.R,scrollToIndex:W.Y,scrollTo:W.V,scrollBy:W.X})),[]),o){const b=new Set(o);for(let[x,C]=m.S(r);x<=C;x++)b.add(x);Yi([...b]).forEach((x=>{M.push(J(x))}))}else for(let[b,x]=m.S(r);b<=x;b++)M.push(J(b));return R.jsx(f,{ref:k,style:{contain:"size style",overflowAnchor:"none",flex:"none",position:"relative",width:qe?S:"100%",height:qe?"100%":S,pointerEvents:ht?"none":void 0},children:M})})),Wo=v.forwardRef((({children:e,data:t,bufferSize:r,itemSize:n,shift:i,horizontal:s,keepMounted:o,cache:a,ssrCount:u,item:c,onScroll:f,onScrollEnd:l,style:h,...d},p)=>R.jsx("div",{...d,style:{display:s?"inline-block":"block",[s?"overflowX":"overflowY"]:"auto",contain:"strict",width:"100%",height:"100%",...h},children:R.jsx(Uo,{ref:p,data:t,bufferSize:r,itemSize:n,shift:i,horizontal:s,keepMounted:o,cache:a,ssrCount:u,item:c,onScroll:f,onScrollEnd:l,children:e})})));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 Ko=`.index-module_bold__Mynkh { font-weight: bold; }
|
|
2
2
|
.index-module_underline__Wil2O { text-decoration: underline; }
|
|
3
3
|
.index-module_italic__FHDKu { font-style: italic; }
|
|
4
4
|
|
|
@@ -41,12 +41,12 @@ 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
|
|
|
41
41
|
.index-module_cyanBg__I5MZ5 { background-color: #00aaaa; }
|
|
42
42
|
.index-module_whiteBg__AsxTO { background-color: #eeeeee; }
|
|
43
43
|
.index-module_greyBg__wAYhU { background-color: #969696; }
|
|
44
|
-
`,
|
|
44
|
+
`,Ie={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(Ko);const Ho=(e,t)=>{const r=["log-part"];return e.foreground&&e.bold?r.push(Ie[`${e.foreground}Bold`],Ie.bold):e.foreground?r.push(Ie[e.foreground]):e.bold&&r.push(Ie.bold),t?r.push(Ie.wrapLine):r.push(Ie.noWrapLine),e.background&&r.push(Ie[`${e.background}Bg`]),e.italic&&r.push(Ie.italic),e.underline&&r.push(Ie.underline),r.join(" ")};class Qi extends v.Component{render(){const{format:t,part:r,style:n}=this.props,i=r.text,s=Ho(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)}}Qi.defaultProps={format:null,style:null,enableLinks:!1,wrapLines:!1};var Yo=`.index-module_lineContent__v3zqf {
|
|
45
45
|
user-select: initial;
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,Xo={lineContent:"index-module_lineContent__v3zqf"};ve(Yo);class es extends v.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
48
|
`)&&(o.text+=`
|
|
49
|
-
`)}return g.createElement("span",{className:`log-content ${
|
|
49
|
+
`)}return g.createElement("span",{className:`log-content ${Xo.lineContent}`,style:s,onClick:n},t&&t.map((o,a)=>g.createElement(Qi,{wrapLines:this.props.wrapLines,part:o,format:r,key:`line-${i}-${a}`,enableLinks:this.props.enableLinks})))}}es.defaultProps={formatPart:null,style:null};var Go=`.index-module_lineGutter__aPlbD {
|
|
50
50
|
display: inline-flex;
|
|
51
51
|
overflow: hidden;
|
|
52
52
|
min-width: 20px;
|
|
@@ -56,7 +56,7 @@ 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
|
|
|
56
56
|
text-decoration: none;
|
|
57
57
|
user-select: none;
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,Zo={lineGutter:"index-module_lineGutter__aPlbD"};ve(Go);class ts extends v.Component{render(){const{gutter:t}=this.props;return g.createElement("span",{className:`log-gutter ${Zo.lineGutter}`},t)}}ts.defaultProps={gutter:null};var Jo=`.index-module_lineNumber__bNeiE {
|
|
60
60
|
display: inline-block;
|
|
61
61
|
width: 55px;
|
|
62
62
|
margin-left: 15px;
|
|
@@ -82,7 +82,7 @@ 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
|
|
|
82
82
|
.index-module_lineNumberHighlight__AqBvr {
|
|
83
83
|
color: #ffffff;
|
|
84
84
|
}
|
|
85
|
-
`,
|
|
85
|
+
`,vr={lineNumber:"index-module_lineNumber__bNeiE",wrapLine:"index-module_wrapLine__LQ9AC",lineNumberHighlight:"index-module_lineNumberHighlight__AqBvr index-module_lineNumber__bNeiE"};ve(Jo);class rs extends v.Component{render(){const{highlight:t,onClick:r,number:n,style:i}=this.props,s=`log-number ${t?vr.lineNumberHighlight:vr.lineNumber} ${this.props.wrapLines?vr.wrapLine:""}`;return g.createElement("a",{id:""+n,onClick:r,className:s,style:i})}}rs.defaultProps={style:null,highlight:!1,onClick:null,wrapLines:!1};var Vo=`.index-module_line__BM5rd {
|
|
86
86
|
margin: 0;
|
|
87
87
|
user-select: none;
|
|
88
88
|
}
|
|
@@ -102,25 +102,25 @@ 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
|
|
|
102
102
|
.index-module_lineSelectable__1-mwt {
|
|
103
103
|
user-select: text;
|
|
104
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(
|
|
105
|
+
`,Yt={line:"index-module_line__BM5rd",wrapLine:"index-module_wrapLine__uOMsW",lineHighlight:"index-module_lineHighlight__zcBLB",lineSelectable:"index-module_lineSelectable__1-mwt"};ve(Vo);class Re extends v.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}`:"",w=`${Yt.line}${p}${_} ${d?Yt.wrapLine:""} ${f}`,y={...c,lineHeight:`${c&&c.height||u}px`,minWidth:c&&c.width||"100%",width:void 0};return g.createElement("div",{className:w,style:y},this.props.enableLineNumbers?g.createElement(rs,{number:a,highlight:n,onClick:s,wrapLines:d}):null,this.props.enableGutters?g.createElement(ts,{gutter:h}):null,g.createElement(es,{wrapLines:d,number:a,formatPart:r,data:t,onClick:o,enableLinks:this.props.enableLinks}))}}Re.defaultProps={highlight:!1,selectable:!1,style:{},formatPart:void 0,onLineNumberClick:void 0,onLineContentClick:void 0,className:"",highlightClassName:"",enableLineNumbers:!0,enableLinks:!1,wrapLines:!1};var Qo=`.index-module_loading__Tw7fR {
|
|
106
106
|
position: absolute;
|
|
107
107
|
top: 50%;
|
|
108
108
|
left: 50%;
|
|
109
109
|
transform: translateX(-50%) translateY(-50%);
|
|
110
110
|
}
|
|
111
|
-
`,
|
|
111
|
+
`,ea={loading:"index-module_loading__Tw7fR"};ve(Qo);const Nr=g.memo(e=>g.createElement("svg",{width:"44",height:"44",viewBox:"0 0 44 44",stroke:"#fff",className:ea.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"})))));Nr.displayName="Loading";const wr=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function br(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent(`on${t}`,r)}function pt(e,t,r,n){e&&(e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent(`on${t}`,r))}function ns(e,t){const r=t.slice(0,t.length-1),n=[];for(let i=0;i<r.length;i++)n.push(e[r[i].toLowerCase()]);return n}function is(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 ta(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}function ss(e){let t=e.keyCode||e.which||e.charCode;return e.code&&/^Key[A-Z]$/.test(e.code)&&(t=e.code.charCodeAt(3)),t}const Rt={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,"-":wr?173:189,"=":wr?61:187,";":wr?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},wt={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},H={16:!1,18:!1,17:!1,91:!1},P={};for(let e=1;e<20;e++)Rt[`f${e}`]=111+e;let B=[],xt=null,os="all";const Oe=new Map,ft=e=>Rt[e.toLowerCase()]||me[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),ra=e=>Object.keys(Rt).find(t=>Rt[t]===e),na=e=>Object.keys(me).find(t=>me[t]===e),as=e=>{os=e||"all"},At=()=>os||"all",ia=()=>B.slice(0),sa=()=>B.map(e=>ra(e)||na(e)||String.fromCharCode(e)),oa=()=>{const e=[];return Object.keys(P).forEach(t=>{P[t].forEach(({key:r,scope:n,mods:i,shortcut:s})=>{e.push({scope:n,shortcut:s,mods:i,keys:r.split("+").map(o=>ft(o))})})}),e},us=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},aa=e=>(typeof e=="string"&&(e=ft(e)),B.indexOf(e)!==-1),ua=(e,t)=>{let r,n;e||(e=At());for(const i in P)if(Object.prototype.hasOwnProperty.call(P,i))for(r=P[i],n=0;n<r.length;)r[n].scope===e?r.splice(n,1).forEach(({element:s})=>dn(s)):n++;At()===e&&as(t||"all")};function ca(e){let t=ss(e);e.key&&e.key.toLowerCase()==="capslock"&&(t=ft(e.key));const r=B.indexOf(t);if(r>=0&&B.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&B.splice(0,B.length),(t===93||t===224)&&(t=91),t in H){H[t]=!1;for(const n in me)me[n]===t&&(ge[n]=!1)}}const cs=(e,...t)=>{if(typeof e>"u")Object.keys(P).forEach(r=>{Array.isArray(P[r])&&P[r].forEach(n=>Xt(n)),delete P[r]}),dn(null);else if(Array.isArray(e))e.forEach(r=>{r.key&&Xt(r)});else if(typeof e=="object")e.key&&Xt(e);else if(typeof e=="string"){let[r,n]=t;typeof r=="function"&&(n=r,r=""),Xt({key:e,scope:r,method:n,splitKey:"+"})}},Xt=({key:e,scope:t,method:r,splitKey:n="+"})=>{is(e).forEach(i=>{const s=i.split(n),o=s.length,a=s[o-1],u=a==="*"?"*":ft(a);if(!P[u])return;t||(t=At());const c=o>1?ns(me,s):[],f=[];P[u]=P[u].filter(l=>{const h=(r?l.method===r:!0)&&l.scope===t&&ta(l.mods,c);return h&&f.push(l.element),!h}),f.forEach(l=>dn(l))})};function Kn(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 H)Object.prototype.hasOwnProperty.call(H,s)&&(!H[s]&&t.mods.indexOf(+s)>-1||H[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!H[16]&&!H[18]&&!H[17]&&!H[91]||i||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(B),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Hn(e,t){const r=P["*"];let n=ss(e);if(e.key&&e.key.toLowerCase()==="capslock"||!(ge.filter||us).call(this,e))return;if((n===93||n===224)&&(n=91),B.indexOf(n)===-1&&n!==229&&B.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(a=>{const u=wt[a];e[a]&&B.indexOf(u)===-1?B.push(u):!e[a]&&B.indexOf(u)>-1?B.splice(B.indexOf(u),1):a==="metaKey"&&e[a]&&(B=B.filter(c=>c in wt||c===n))}),n in H){H[n]=!0;for(const a in me)if(Object.prototype.hasOwnProperty.call(me,a)){const u=wt[me[a]];ge[a]=e[u]}if(!r)return}for(const a in H)Object.prototype.hasOwnProperty.call(H,a)&&(H[a]=e[wt[a]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(B.indexOf(17)===-1&&B.push(17),B.indexOf(18)===-1&&B.push(18),H[17]=!0,H[18]=!0);const i=At();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)&&Kn(e,r[a],i,t);if(!(n in P))return;const s=P[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(ft(f[h]));l.sort().join("")===B.sort().join("")&&Kn(e,u,i,t)}}const ge=function(e,t,r){B=[];const n=is(e);let i=[],s="all",o=document,a=0,u=!1,c=!0,f="+",l=!1,h=!1;if(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"){const d=t;d.scope&&(s=d.scope),d.element&&(o=d.element),d.keyup&&(u=d.keyup),d.keydown!==void 0&&(c=d.keydown),d.capture!==void 0&&(l=d.capture),typeof d.splitKey=="string"&&(f=d.splitKey),d.single===!0&&(h=!0)}for(typeof t=="string"&&(s=t),h&&cs(e,s);a<n.length;a++){const d=n[a].split(f);i=[],d.length>1&&(i=ns(me,d));let p=d[d.length-1];p=p==="*"?"*":ft(p),p in P||(P[p]=[]),P[p].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"&&typeof window<"u"){if(!Oe.has(o)){const d=(_=window.event)=>Hn(_,o),p=(_=window.event)=>{Hn(_,o),ca(_)};Oe.set(o,{keydownListener:d,keyupListenr:p,capture:l}),br(o,"keydown",d,l),br(o,"keyup",p,l)}if(!xt){const d=()=>{B=[]};xt={listener:d,capture:l},br(window,"focus",d,l)}}};function fa(e,t="all"){Object.keys(P).forEach(r=>{P[r].filter(n=>n.scope===t&&n.shortcut===e).forEach(n=>{n&&n.method&&n.method({},n)})})}function dn(e){const t=Object.values(P).flat();if(t.findIndex(({element:r})=>r===e)<0&&e){const{keydownListener:r,keyupListenr:n,capture:i}=Oe.get(e)||{};r&&n&&(pt(e,"keyup",n,i),pt(e,"keydown",r,i),Oe.delete(e))}if((t.length<=0||Oe.size<=0)&&(Array.from(Oe.keys()).forEach(r=>{const{keydownListener:n,keyupListenr:i,capture:s}=Oe.get(r)||{};n&&i&&(pt(r,"keyup",i,s),pt(r,"keydown",n,s),Oe.delete(r))}),Oe.clear(),Object.keys(P).forEach(r=>delete P[r]),xt)){const{listener:r,capture:n}=xt;pt(window,"focus",r,n),xt=null}}const Sr={getPressedKeyString:sa,setScope:as,getScope:At,deleteScope:ua,getPressedKeyCodes:ia,getAllKeyCodes:oa,isPressed:aa,filter:us,trigger:fa,unbind:cs,keyMap:Rt,modifier:me,modifierMap:wt};for(const e in Sr){const t=e;Object.prototype.hasOwnProperty.call(Sr,t)&&(ge[t]=Sr[t])}if(typeof window<"u"){const e=window.hotkeys;ge.noConflict=t=>(t&&window.hotkeys===ge&&(window.hotkeys=e),ge),window.hotkeys=ge}var la=`.index-module_downArrowIcon__fpzoO {
|
|
112
112
|
height: 15px;
|
|
113
113
|
cursor: pointer;
|
|
114
114
|
}
|
|
115
|
-
`,
|
|
115
|
+
`,ha={downArrowIcon:"index-module_downArrowIcon__fpzoO"};ve(la);const da=g.memo(e=>g.createElement("svg",{className:ha.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 pa=`.index-module_upArrowIcon__lxdzV {
|
|
116
116
|
height: 15px;
|
|
117
117
|
cursor: pointer;
|
|
118
118
|
}
|
|
119
|
-
`,
|
|
119
|
+
`,_a={upArrowIcon:"index-module_upArrowIcon__lxdzV"};ve(pa);const ga=g.memo(e=>g.createElement("svg",{className:_a.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 ma=`.index-module_filterLinesIcon__EsTp0 {
|
|
120
120
|
height: 15px;
|
|
121
121
|
cursor: pointer;
|
|
122
122
|
}
|
|
123
|
-
`,
|
|
123
|
+
`,ya={filterLinesIcon:"index-module_filterLinesIcon__EsTp0"};ve(ma);const va=g.memo(e=>g.createElement("svg",{className:ya.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 wa=`.index-module_searchBar__wNJXf {
|
|
124
124
|
display: flex;
|
|
125
125
|
align-items: center;
|
|
126
126
|
justify-content: flex-end;
|
|
@@ -164,13 +164,13 @@ 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
|
|
|
164
164
|
border: none;
|
|
165
165
|
margin-right: 10px;
|
|
166
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(
|
|
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(wa);class fs extends v.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=v.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(va,null)),i&&g.createElement(v.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(ga,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(da,null))))}}fs.defaultProps={currentResultsPosition:0,disabled:!1,enableHotKeys:!1,filterActive:!1,onClearSearch:()=>{},onFilterLinesWithMatches:()=>{},onSearch:()=>{},resultsCount:0,searchMinCharacters:2};const Yn={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"},ba=(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];Yn[c]?o.foreground=Yn[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]=ba(n,s):n+=e[a]}return n&&(o.text=n+(t||""),s.push(o)),s},ze=e=>new TextEncoder().encode(e),ls=e=>(ArrayBuffer.isView(e)||(e=new Uint8Array([e])),new TextDecoder("utf-8").decode(e));function cr(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 Sa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hs=function(e){return e instanceof RegExp},ds=function(t){var r=/[\\^$.*+?()[\]{}|]/g,n=RegExp(r.source);return t&&n.test(t)?t.replace(r,"\\$&"):t},ps=function(e){return typeof e=="string"},Ea=function(e){var t=[];return e.forEach(function(r){Array.isArray(r)?t=t.concat(r):t.push(r)}),t};function Jn(e,t,r,n=null){var i=0,s=0;if(e==="")return e;if(!e||!ps(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var o=t;hs(o)||(o=new RegExp("("+ds(o)+")","gi"));for(var a=e.split(o),u=1,c=a.length;u<c&&!(Number.isInteger(n)&&(n*2<u||n<1));u+=2){if(a[u]===void 0||a[u-1]===void 0){console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}s=a[u].length,i+=a[u-1].length,a[u]=r(a[u],(u-1)/2,i),i+=s}return a}var xa=function(t,r,n,i=null){return Array.isArray(t)||(t=[t]),Ea(t.map(function(s){var o;if(ps(s))if(Number.isInteger(i)&&i>0){o=Jn(s,r,n,i);var a=hs(r)?r:new RegExp("("+ds(r)+")","gi");i-=(s.match(a)||[]).length}else o=Jn(s,r,n,i);else o=s;return o}))},Er=Sa(xa);const pn=10,_n=13,Vn=45,_s=e=>e===pn||e===_n,_t=({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,xr=e=>!e||Array.isArray(e)&&(isNaN(e[0])||isNaN(e[1]))||!Array.isArray(e)&&isNaN(e)?Xe(0,0):Array.isArray(e)?e.length===1?Xe(e[0],e[0]+1):Xe(e[0],e[1]+1):Xe(e,e+1),Pt=(e,t)=>{const r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r},De=(e,t)=>{const r=t?Pt(t,e):e,{length:n}=r;let i=0,s=0;return{lines:X().withMutations(a=>{for(;s<n;){const u=r[s],c=r[s+1];_s(u)?(a.push(r.subarray(i,s)),i=u===_n&&c===pn?s+2:s+1,s=i):s+=1}!t&&s!==i&&a.push(r.slice(i))}),remaining:s!==i?r.slice(i):null}},La=e=>{const{length:t}=e,r=[];let n=0,i=0;for(;i<t;){const s=e[i],o=e[i+1];_s(s)?(r.push(i),n=s===_n&&o===pn?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=Er(u,c,s):u=l.map((p,_)=>Er(p,h,_===o?s:n)):u=Er(u,h,n),u);return r?a.toLowerCase().includes(e.toLowerCase())&&(u=d()):a.includes(e)&&(u=d()),u},ka='^(?:(?!.*?[.]{2})[a-zA-Z0-9](?:[a-zA-Z0-9.+!%-]{1,64}|)|"[a-zA-Z0-9.+!% -]{1,64}")',Ia="[a-zA-Z0-9][a-zA-Z0-9.-]+(.[a-z]{2,}|.[0-9]{1,})$",Oa=new RegExp(`${ka}@${Ia}`),ei="(((http|ftp)?s?s?)(:)(/{2}))",za=/https?:[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/,Ma=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 Ca=(e,t)=>{const{withCredentials:r,onOpen:n,onClose:i,onError:s,formatMessage:o}=t,a=cr();let u=new Uint8Array,c=null;return a.on("data",f=>{u=Pt(u,ze(f));const{lines:l,remaining:h}=De(ze(f),c);c=h,a.emit("update",{lines:l,encodedLog:u})}),a.on("done",()=>{c&&a.emit("update",{lines:X.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
168
|
`)?h:`${h}
|
|
169
|
-
`,a.emit("data",h))}),a.on("abort",()=>{f.close()})}catch(f){a.emit("error",f)}}),a};const
|
|
169
|
+
`,a.emit("data",h))}),a.on("abort",()=>{f.close()})}catch(f){a.emit("error",f)}}),a};const Ra=Promise.resolve().then(()=>globalThis.fetch);var Aa=(e,t)=>{const r=cr();return r.on("start",async()=>{try{const i=await(await Ra)(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}=De(o);r.emit("update",{lines:a}),r.emit("end",o)}catch(n){r.emit("error",n)}}),r};const $a=(e,t)=>{const r=Array.from(ze(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=ls(i);r&&(n=n?.toLowerCase(),s=s.toLowerCase()),s=s.endsWith(`
|
|
170
170
|
`)?s:s+`
|
|
171
|
-
`,i=
|
|
171
|
+
`,i=ze(s);const o=$a(n,i),a=La(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),gs=async(e,t)=>{const r=await e.read();if(r.value&&t.emit("data",r.value),!r.done)return gs(e,t);t.emit("done")};var Ba=(e,t)=>{const r=cr();let n=null,i=new Uint8Array;return r.on("data",s=>{i=Pt(i,new Uint8Array(s));const{lines:o,remaining:a}=De(s,n);n=a,r.emit("update",{lines:o,encodedLog:i})}),r.on("done",()=>{n&&r.emit("update",{lines:X.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")),gs(a,r)}catch(s){r.emit("error",s)}}),r},ja=(e,t)=>{const{onOpen:r,onClose:n,onError:i,formatMessage:s,protocols:o}=t,a=cr();let u=new Uint8Array,c=null,f=!1;return a.on("data",l=>{u=Pt(u,ze(l));const{lines:h,remaining:d}=De(ze(l),c);c=d,a.emit("update",{lines:h,encodedLog:u})}),a.on("done",()=>{c&&a.emit("update",{lines:X.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
172
|
`)?d:`${d}
|
|
173
|
-
`,a.emit("data",d))}),a.on("abort",()=>{f=!0,l.close()})}catch(l){a.emit("error",l)}}),a},
|
|
173
|
+
`,a.emit("data",d))}),a.on("abort",()=>{f=!0,l.close()})}catch(l){a.emit("error",l)}}),a},qa=`.index-module_lazyLog__4TukL {
|
|
174
174
|
overflow: auto !important;
|
|
175
175
|
font-family: "Monaco", monospace;
|
|
176
176
|
font-size: 12px;
|
|
@@ -200,9 +200,9 @@ 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
|
|
|
200
200
|
background-color: #ff10f0;
|
|
201
201
|
color: #222222;
|
|
202
202
|
}
|
|
203
|
-
`,
|
|
204
|
-
`),n=
|
|
203
|
+
`,gt={lazyLog:"index-module_lazyLog__4TukL",wrapLine:"index-module_wrapLine__1TUVd",searchMatch:"index-module_searchMatch__o26h7",searchMatchHighlighted:"index-module_searchMatchHighlighted__fKXBW"};ve(qa);class ms extends v.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:X()},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||X()).concat(t),w=_.count(),y=_t({follow:h,scrollToLine:l,previousCount:d,count:w,offset:p});return{lines:_,offset:p,count:w,scrollToIndex:y}}),this.forceSearch();else{const{count:c}=this.state,f=0,l=(this.state.lines||X()).concat(t),h=l.count(),d=_t({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=xr(u),f={highlight:c};return i&&Object.assign(f,{scrollToIndex:_t({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:X(),resultLineUniqueIndexes:[],isFilteringLinesWithMatches:this.state.isFilteringLinesWithMatches,scrollToIndex:0,currentResultsPosition:0})},this.handleFilterLinesWithMatches=t=>{this.setState({isFilteringLinesWithMatches:t,filteredLines:X(),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:gt.searchMatch},c),selectedLine:!0,replaceJsxHighlight:(c,f)=>g.createElement("span",{key:f,className:gt.searchMatchHighlighted},c),highlightedWordLocation:a})}return Qn({searchKeywords:n,nextFormatPart:void 0,caseInsensitive:this.props.caseInsensitive,replaceJsx:(a,u)=>g.createElement("span",{key:u,className:gt.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:w,filteredLines:y,resultLineUniqueIndexes:k}=this.state,I=w?y:p,F=w?k[t.index]:t.index+1+_;if(I?.size<=0)return this.renderNoRows();if(!F)return;const O=ls(I?.get(t.index)),m=h?Ma(Zn(O)):Zn(O);return g.createElement(Re,{className:`log-line ${i}`,data:m,enableGutters:c,wrapLines:l,enableLineNumbers:f,enableLinks:h,formatPart:this.handleFormatPart(F),gutter:u?u[F]:void 0,highlight:d?.includes(F),highlightClassName:`log-highlight ${s}`,key:t.index,number:F,rowHeight:r,selectable:n,onLineNumberClick:D=>{const W=this.handleHighlight(D);o?.({lineNumber:F,highlightRange:W})},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(Re,{wrapLines:n,className:t,highlightClassName:r,data:[{bold:!0,text:"No filter matches"}]}):this.props.loadingComponent||g.createElement(Nr,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:_t({follow:r,scrollToLine:n,count:o,offset:a}),p=i&&i!==u||s&&s!==c;return{scrollToIndex:d,highlight:f===Xe(0,0)?xr(t):f||xr(f),...p?{url:i,text:s,lines:X(),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:w,isSearching:y,loaded:k,error:I}=i,F=t.url!==o||r.url!==i.url||t.text!==a;F&&this.request(),F&&!u&&_>0&&s?.current?.scrollTo(_);const O=r.scrollOffset!=_;u&&!y&&!O&&s?.current?.scrollToIndex(w+(c||0),{align:"nearest"}),!k&&r.loaded!==k&&f?f():I&&r.error!==I&&l&&l(I),h&&h!==t.highlight&&d&&d(i.highlight);const D=p&&t.scrollToLine!==p;!u&&D&&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?ja(i,o):n?Ca(i,a):t?Ba(i,s):Aa(i,s)}request(){const{text:t,url:r,external:n}=this.props;if(this.endRequest(),t){const i=ze(t),{lines:s}=De(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=ze(""),{lines:s}=De(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=ze(r.endsWith(`
|
|
205
205
|
`)?r:r+`
|
|
206
|
-
`),i=
|
|
207
|
-
`).length;Le!==
|
|
206
|
+
`),i=Pt(this.encodedLog,n),{lines:s}=De(n);this.handleUpdate({lines:s,encodedLog:i})}handleScrollToLine(t=0){const r=_t({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(v.Fragment,null,g.createElement(Re,{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(Re,{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(Re,{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(Re,{wrapLines:o,selectable:n,key:"error-line-3",className:r,highlightClassName:i,enableLinks:s,data:[]}),g.createElement(Re,{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:X(),isFilteringLinesWithMatches:!1})}render(){const{enableSearch:t}=this.props,{resultLines:r,isFilteringLinesWithMatches:n,filteredLines:i=X(),count:s,currentResultsPosition:o}=this.state,a=n?i.size:s;return g.createElement(v.Fragment,null,t&&g.createElement(fs,{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(Wo,{ref:this.listRef,className:`react-lazylog ${gt.lazyLog} ${this.props.wrapLines?gt.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(Nr,null))))}}ms.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 Pa extends v.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(v.Fragment,null,t({follow:r,onScroll:this.handleScroll,startFollowing:this.startFollowing,stopFollowing:this.stopFollowing}))}}Pa.defaultProps={startFollowing:!1};const Fa="/static/assets/live-streaming.svg",Da=()=>{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 Xa({active:e}){const[t,r]=v.useState([]),[n,i]=v.useState("All.log"),[s,o]=v.useState(""),[a,u]=v.useState(!0),[c,f]=v.useState(!1),[l,h]=v.useState(!1),[d,p]=v.useState(!1),_=v.useRef(""),w=v.useRef(0),{push:y}=bs(),k=v.useCallback((O,m)=>O instanceof Error&&O.message?`${m}: ${O.message}`:typeof O=="string"&&O.trim().length?`${m}: ${O}`:m,[]),I=v.useCallback(async()=>{f(!0);try{const m=(await Ss()).files??[];r(m),m.length?i(D=>D&&m.includes(D)?D:m.find(W=>W==="All.log")??m[0]):i("")}catch(O){y(k(O,"Failed to refresh log list"),"error")}finally{f(!1)}},[k,y]);v.useEffect(()=>{(async()=>{try{const D=(await ks())?.WebUI;_.current=D?.Token||""}catch(m){console.error("Failed to fetch WebUI token from config:",m)}finally{p(!0)}})()},[]),v.useEffect(()=>{I()},[I]);const F=v.useCallback(async(O=!1)=>{if(n){O&&h(!0);try{const m=new URLSearchParams;_.current&&m.set("token",_.current);const D=await fetch(`/web/logs/${encodeURIComponent(n)}?${m}`);if(!D.ok)throw new Error(`${D.status} ${D.statusText}`);const W=await D.text(),Le=W.split(`
|
|
207
|
+
`).length;Le!==w.current&&(o(W),w.current=Le)}catch(m){y(k(m,`Failed to read ${n}`),"error")}finally{O&&h(!1)}}},[n,y,k]);return v.useEffect(()=>{n&&d&&(w.current=0,F(!0))},[n,d,F]),zs(()=>{d&&F(!1)},e?1e3:null),R.jsxs("section",{className:"card",style:{height:"calc(100vh - 140px)",display:"flex",flexDirection:"column",margin:0,padding:0},children:[R.jsx("div",{className:"card-header",style:{flexShrink:0},children:"Logs"}),R.jsxs("div",{className:"card-body",style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",padding:"12px"},children:[R.jsxs("div",{className:"row",style:{flexShrink:0,marginBottom:"12px"},children:[R.jsx("div",{className:"col field",children:R.jsxs("div",{className:"field",children:[R.jsx("label",{children:"Log File"}),R.jsx(Os,{options:t.map(O=>({value:O,label:O})),value:n?{value:n,label:n}:null,onChange:O=>i(O?.value||""),isDisabled:!t.length,styles:Da()})]})}),R.jsxs("div",{className:"col field",children:[R.jsx("label",{children:" "}),R.jsxs("div",{className:"row",style:{alignItems:"center"},children:[R.jsxs("button",{className:"btn ghost",onClick:()=>{I()},disabled:c,children:[R.jsx(lr,{src:Es}),"Reload List"]}),R.jsxs("button",{className:"btn",onClick:()=>n&&window.open(Ls(n),"_blank"),disabled:!n,children:[R.jsx(lr,{src:xs}),"Download"]}),R.jsxs("label",{className:"hint inline",style:{cursor:"pointer"},children:[R.jsx("input",{type:"checkbox",checked:a,onChange:O=>u(O.target.checked)}),R.jsx(lr,{src:Fa}),R.jsx("span",{children:"Auto-scroll"})]})]})]})]}),R.jsx("div",{style:{flex:1,minHeight:0,overflow:"hidden",borderRadius:"4px"},children:l?R.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"#666",backgroundColor:"#0a0e14"},children:[R.jsx("span",{className:"spinner",style:{marginRight:"8px"}}),"Loading logs..."]}):s?R.jsx(ms,{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"}}):R.jsx("div",{style:{color:"#666",backgroundColor:"#0a0e14",padding:"16px"},children:"Select a log file to view..."})})]})]})}export{Xa as LogsView};
|
|
208
208
|
//# sourceMappingURL=LogsView.js.map
|