UNPKG

@umijs/bundler-webpack

Version:
1 lines 2.81 MB
(function(){var __webpack_modules__={939:function(e,r){(function(e,n){true?n(r):0})(this,(function(e){"use strict";var r="delete";var n=5;var a=1<<n;var i=a-1;var s={};function MakeRef(){return{value:false}}function SetRef(e){if(e){e.value=true}}function OwnerID(){}function ensureSize(e){if(e.size===undefined){e.size=e.__iterate(returnTrue)}return e.size}function wrapIndex(e,r){if(typeof r!=="number"){var n=r>>>0;if(""+n!==r||n===4294967295){return NaN}r=n}return r<0?ensureSize(e)+r:r}function returnTrue(){return true}function wholeSlice(e,r,n){return(e===0&&!isNeg(e)||n!==undefined&&e<=-n)&&(r===undefined||n!==undefined&&r>=n)}function resolveBegin(e,r){return resolveIndex(e,r,0)}function resolveEnd(e,r){return resolveIndex(e,r,r)}function resolveIndex(e,r,n){return e===undefined?n:isNeg(e)?r===Infinity?r:Math.max(0,r+e)|0:r===undefined||r===e?e:Math.min(r,e)|0}function isNeg(e){return e<0||e===0&&1/e===-Infinity}var o="@@__IMMUTABLE_ITERABLE__@@";function isCollection(e){return Boolean(e&&e[o])}var l="@@__IMMUTABLE_KEYED__@@";function isKeyed(e){return Boolean(e&&e[l])}var u="@@__IMMUTABLE_INDEXED__@@";function isIndexed(e){return Boolean(e&&e[u])}function isAssociative(e){return isKeyed(e)||isIndexed(e)}var _=function Collection(e){return isCollection(e)?e:C(e)};var c=function(e){function KeyedCollection(e){return isKeyed(e)?e:E(e)}if(e)KeyedCollection.__proto__=e;KeyedCollection.prototype=Object.create(e&&e.prototype);KeyedCollection.prototype.constructor=KeyedCollection;return KeyedCollection}(_);var $=function(e){function IndexedCollection(e){return isIndexed(e)?e:A(e)}if(e)IndexedCollection.__proto__=e;IndexedCollection.prototype=Object.create(e&&e.prototype);IndexedCollection.prototype.constructor=IndexedCollection;return IndexedCollection}(_);var p=function(e){function SetCollection(e){return isCollection(e)&&!isAssociative(e)?e:I(e)}if(e)SetCollection.__proto__=e;SetCollection.prototype=Object.create(e&&e.prototype);SetCollection.prototype.constructor=SetCollection;return SetCollection}(_);_.Keyed=c;_.Indexed=$;_.Set=p;var h="@@__IMMUTABLE_SEQ__@@";function isSeq(e){return Boolean(e&&e[h])}var d="@@__IMMUTABLE_RECORD__@@";function isRecord(e){return Boolean(e&&e[d])}function isImmutable(e){return isCollection(e)||isRecord(e)}var f="@@__IMMUTABLE_ORDERED__@@";function isOrdered(e){return Boolean(e&&e[f])}var m=0;var g=1;var y=2;var S=typeof Symbol==="function"&&Symbol.iterator;var v="@@iterator";var b=S||v;var x=function Iterator(e){this.next=e};x.prototype.toString=function toString(){return"[Iterator]"};x.KEYS=m;x.VALUES=g;x.ENTRIES=y;x.prototype.inspect=x.prototype.toSource=function(){return this.toString()};x.prototype[b]=function(){return this};function iteratorValue(e,r,n,a){var i=e===0?r:e===1?n:[r,n];a?a.value=i:a={value:i,done:false};return a}function iteratorDone(){return{value:undefined,done:true}}function hasIterator(e){if(Array.isArray(e)){return true}return!!getIteratorFn(e)}function isIterator(e){return e&&typeof e.next==="function"}function getIterator(e){var r=getIteratorFn(e);return r&&r.call(e)}function getIteratorFn(e){var r=e&&(S&&e[S]||e[v]);if(typeof r==="function"){return r}}function isEntriesIterable(e){var r=getIteratorFn(e);return r&&r===e.entries}function isKeysIterable(e){var r=getIteratorFn(e);return r&&r===e.keys}var w=Object.prototype.hasOwnProperty;function isArrayLike(e){if(Array.isArray(e)||typeof e==="string"){return true}return 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 C=function(e){function Seq(e){return e===undefined||e===null?emptySequence():isImmutable(e)?e.toSeq():seqFromValue(e)}if(e)Seq.__proto__=e;Seq.prototype=Object.create(e&&e.prototype);Seq.prototype.constructor=Seq;Seq.prototype.toSeq=function toSeq(){return this};Seq.prototype.toString=function toString(){return this.__toString("Seq {","}")};Seq.prototype.cacheResult=function cacheResult(){if(!this._cache&&this.__iterateUncached){this._cache=this.entrySeq().toArray();this.size=this._cache.length}return this};Seq.prototype.__iterate=function __iterate(e,r){var n=this._cache;if(n){var a=n.length;var i=0;while(i!==a){var s=n[r?a-++i:i++];if(e(s[1],s[0],this)===false){break}}return i}return this.__iterateUncached(e,r)};Seq.prototype.__iterator=function __iterator(e,r){var n=this._cache;if(n){var a=n.length;var i=0;return new x((function(){if(i===a){return iteratorDone()}var s=n[r?a-++i:i++];return iteratorValue(e,s[0],s[1])}))}return this.__iteratorUncached(e,r)};return Seq}(_);var E=function(e){function KeyedSeq(e){return e===undefined||e===null?emptySequence().toKeyedSeq():isCollection(e)?isKeyed(e)?e.toSeq():e.fromEntrySeq():isRecord(e)?e.toSeq():keyedSeqFromValue(e)}if(e)KeyedSeq.__proto__=e;KeyedSeq.prototype=Object.create(e&&e.prototype);KeyedSeq.prototype.constructor=KeyedSeq;KeyedSeq.prototype.toKeyedSeq=function toKeyedSeq(){return this};return KeyedSeq}(C);var A=function(e){function IndexedSeq(e){return e===undefined||e===null?emptySequence():isCollection(e)?isKeyed(e)?e.entrySeq():e.toIndexedSeq():isRecord(e)?e.toSeq().entrySeq():indexedSeqFromValue(e)}if(e)IndexedSeq.__proto__=e;IndexedSeq.prototype=Object.create(e&&e.prototype);IndexedSeq.prototype.constructor=IndexedSeq;IndexedSeq.of=function of(){return IndexedSeq(arguments)};IndexedSeq.prototype.toIndexedSeq=function toIndexedSeq(){return this};IndexedSeq.prototype.toString=function toString(){return this.__toString("Seq [","]")};return IndexedSeq}(C);var I=function(e){function SetSeq(e){return(isCollection(e)&&!isAssociative(e)?e:A(e)).toSetSeq()}if(e)SetSeq.__proto__=e;SetSeq.prototype=Object.create(e&&e.prototype);SetSeq.prototype.constructor=SetSeq;SetSeq.of=function of(){return SetSeq(arguments)};SetSeq.prototype.toSetSeq=function toSetSeq(){return this};return SetSeq}(C);C.isSeq=isSeq;C.Keyed=E;C.Set=I;C.Indexed=A;C.prototype[h]=true;var M=function(e){function ArraySeq(e){this._array=e;this.size=e.length}if(e)ArraySeq.__proto__=e;ArraySeq.prototype=Object.create(e&&e.prototype);ArraySeq.prototype.constructor=ArraySeq;ArraySeq.prototype.get=function get(e,r){return this.has(e)?this._array[wrapIndex(this,e)]:r};ArraySeq.prototype.__iterate=function __iterate(e,r){var n=this._array;var a=n.length;var i=0;while(i!==a){var s=r?a-++i:i++;if(e(n[s],s,this)===false){break}}return i};ArraySeq.prototype.__iterator=function __iterator(e,r){var n=this._array;var a=n.length;var i=0;return new x((function(){if(i===a){return iteratorDone()}var s=r?a-++i:i++;return iteratorValue(e,s,n[s])}))};return ArraySeq}(A);var V=function(e){function ObjectSeq(e){var r=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e;this._keys=r;this.size=r.length}if(e)ObjectSeq.__proto__=e;ObjectSeq.prototype=Object.create(e&&e.prototype);ObjectSeq.prototype.constructor=ObjectSeq;ObjectSeq.prototype.get=function get(e,r){if(r!==undefined&&!this.has(e)){return r}return this._object[e]};ObjectSeq.prototype.has=function has(e){return w.call(this._object,e)};ObjectSeq.prototype.__iterate=function __iterate(e,r){var n=this._object;var a=this._keys;var i=a.length;var s=0;while(s!==i){var o=a[r?i-++s:s++];if(e(n[o],o,this)===false){break}}return s};ObjectSeq.prototype.__iterator=function __iterator(e,r){var n=this._object;var a=this._keys;var i=a.length;var s=0;return new x((function(){if(s===i){return iteratorDone()}var o=a[r?i-++s:s++];return iteratorValue(e,o,n[o])}))};return ObjectSeq}(E);V.prototype[f]=true;var L=function(e){function CollectionSeq(e){this._collection=e;this.size=e.length||e.size}if(e)CollectionSeq.__proto__=e;CollectionSeq.prototype=Object.create(e&&e.prototype);CollectionSeq.prototype.constructor=CollectionSeq;CollectionSeq.prototype.__iterateUncached=function __iterateUncached(e,r){if(r){return this.cacheResult().__iterate(e,r)}var n=this._collection;var a=getIterator(n);var i=0;if(isIterator(a)){var s;while(!(s=a.next()).done){if(e(s.value,i++,this)===false){break}}}return i};CollectionSeq.prototype.__iteratorUncached=function __iteratorUncached(e,r){if(r){return this.cacheResult().__iterator(e,r)}var n=this._collection;var a=getIterator(n);if(!isIterator(a)){return new x(iteratorDone)}var i=0;return new x((function(){var r=a.next();return r.done?r:iteratorValue(e,i++,r.value)}))};return CollectionSeq}(A);var k;function emptySequence(){return k||(k=new M([]))}function keyedSeqFromValue(e){var r=maybeIndexedSeqFromValue(e);if(r){return r.fromEntrySeq()}if(typeof e==="object"){return new V(e)}throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function indexedSeqFromValue(e){var r=maybeIndexedSeqFromValue(e);if(r){return r}throw new TypeError("Expected Array or collection object of values: "+e)}function seqFromValue(e){var r=maybeIndexedSeqFromValue(e);if(r){return isEntriesIterable(e)?r.fromEntrySeq():isKeysIterable(e)?r.toSetSeq():r}if(typeof e==="object"){return new V(e)}throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function maybeIndexedSeqFromValue(e){return isArrayLike(e)?new M(e):hasIterator(e)?new L(e):undefined}var R="@@__IMMUTABLE_MAP__@@";function isMap(e){return Boolean(e&&e[R])}function isOrderedMap(e){return isMap(e)&&isOrdered(e)}function isValueObject(e){return Boolean(e&&typeof e.equals==="function"&&typeof e.hashCode==="function")}function is(e,r){if(e===r||e!==e&&r!==r){return true}if(!e||!r){return false}if(typeof e.valueOf==="function"&&typeof r.valueOf==="function"){e=e.valueOf();r=r.valueOf();if(e===r||e!==e&&r!==r){return true}if(!e||!r){return false}}return!!(isValueObject(e)&&isValueObject(r)&&e.equals(r))}var F=typeof Math.imul==="function"&&Math.imul(4294967295,2)===-2?Math.imul:function imul(e,r){e|=0;r|=0;var n=e&65535;var a=r&65535;return n*a+((e>>>16)*a+n*(r>>>16)<<16>>>0)|0};function smi(e){return e>>>1&1073741824|e&3221225471}var T=Object.prototype.valueOf;function hash(e){if(e==null){return hashNullish(e)}if(typeof e.hashCode==="function"){return smi(e.hashCode(e))}var r=valueOf(e);if(r==null){return hashNullish(r)}switch(typeof r){case"boolean":return r?1108378657:1108378656;case"number":return hashNumber(r);case"string":return r.length>z?cachedHashString(r):hashString(r);case"object":case"function":return hashJSObj(r);case"symbol":return hashSymbol(r);default:if(typeof r.toString==="function"){return hashString(r.toString())}throw new Error("Value type "+typeof r+" cannot be hashed.")}}function hashNullish(e){return e===null?1108378658:1108378659}function hashNumber(e){if(e!==e||e===Infinity){return 0}var r=e|0;if(r!==e){r^=e*4294967295}while(e>4294967295){e/=4294967295;r^=e}return smi(r)}function cachedHashString(e){var r=j[e];if(r===undefined){r=hashString(e);if(q===H){q=0;j={}}q++;j[e]=r}return r}function hashString(e){var r=0;for(var n=0;n<e.length;n++){r=31*r+e.charCodeAt(n)|0}return smi(r)}function hashSymbol(e){var r=O[e];if(r!==undefined){return r}r=nextHash();O[e]=r;return r}function hashJSObj(e){var r;if(J){r=P.get(e);if(r!==undefined){return r}}r=e[B];if(r!==undefined){return r}if(!U){r=e.propertyIsEnumerable&&e.propertyIsEnumerable[B];if(r!==undefined){return r}r=getIENodeHash(e);if(r!==undefined){return r}}r=nextHash();if(J){P.set(e,r)}else if(N!==undefined&&N(e)===false){throw new Error("Non-extensible objects are not allowed as keys.")}else if(U){Object.defineProperty(e,B,{enumerable:false,configurable:false,writable:false,value:r})}else if(e.propertyIsEnumerable!==undefined&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable){e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)};e.propertyIsEnumerable[B]=r}else if(e.nodeType!==undefined){e[B]=r}else{throw new Error("Unable to set a non-enumerable property on object.")}return r}var N=Object.isExtensible;var U=function(){try{Object.defineProperty({},"@",{});return true}catch(e){return false}}();function getIENodeHash(e){if(e&&e.nodeType>0){switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}}function valueOf(e){return e.valueOf!==T&&typeof e.valueOf==="function"?e.valueOf(e):e}function nextHash(){var e=++D;if(D&1073741824){D=0}return e}var J=typeof WeakMap==="function";var P;if(J){P=new WeakMap}var O=Object.create(null);var D=0;var B="__immutablehash__";if(typeof Symbol==="function"){B=Symbol(B)}var z=16;var H=255;var q=0;var j={};var W=function(e){function ToKeyedSequence(e,r){this._iter=e;this._useKeys=r;this.size=e.size}if(e)ToKeyedSequence.__proto__=e;ToKeyedSequence.prototype=Object.create(e&&e.prototype);ToKeyedSequence.prototype.constructor=ToKeyedSequence;ToKeyedSequence.prototype.get=function get(e,r){return this._iter.get(e,r)};ToKeyedSequence.prototype.has=function has(e){return this._iter.has(e)};ToKeyedSequence.prototype.valueSeq=function valueSeq(){return this._iter.valueSeq()};ToKeyedSequence.prototype.reverse=function reverse(){var e=this;var r=reverseFactory(this,true);if(!this._useKeys){r.valueSeq=function(){return e._iter.toSeq().reverse()}}return r};ToKeyedSequence.prototype.map=function map(e,r){var n=this;var a=mapFactory(this,e,r);if(!this._useKeys){a.valueSeq=function(){return n._iter.toSeq().map(e,r)}}return a};ToKeyedSequence.prototype.__iterate=function __iterate(e,r){var n=this;return this._iter.__iterate((function(r,a){return e(r,a,n)}),r)};ToKeyedSequence.prototype.__iterator=function __iterator(e,r){return this._iter.__iterator(e,r)};return ToKeyedSequence}(E);W.prototype[f]=true;var K=function(e){function ToIndexedSequence(e){this._iter=e;this.size=e.size}if(e)ToIndexedSequence.__proto__=e;ToIndexedSequence.prototype=Object.create(e&&e.prototype);ToIndexedSequence.prototype.constructor=ToIndexedSequence;ToIndexedSequence.prototype.includes=function includes(e){return this._iter.includes(e)};ToIndexedSequence.prototype.__iterate=function __iterate(e,r){var n=this;var a=0;r&&ensureSize(this);return this._iter.__iterate((function(i){return e(i,r?n.size-++a:a++,n)}),r)};ToIndexedSequence.prototype.__iterator=function __iterator(e,r){var n=this;var a=this._iter.__iterator(g,r);var i=0;r&&ensureSize(this);return new x((function(){var s=a.next();return s.done?s:iteratorValue(e,r?n.size-++i:i++,s.value,s)}))};return ToIndexedSequence}(A);var Q=function(e){function ToSetSequence(e){this._iter=e;this.size=e.size}if(e)ToSetSequence.__proto__=e;ToSetSequence.prototype=Object.create(e&&e.prototype);ToSetSequence.prototype.constructor=ToSetSequence;ToSetSequence.prototype.has=function has(e){return this._iter.includes(e)};ToSetSequence.prototype.__iterate=function __iterate(e,r){var n=this;return this._iter.__iterate((function(r){return e(r,r,n)}),r)};ToSetSequence.prototype.__iterator=function __iterator(e,r){var n=this._iter.__iterator(g,r);return new x((function(){var r=n.next();return r.done?r:iteratorValue(e,r.value,r.value,r)}))};return ToSetSequence}(I);var G=function(e){function FromEntriesSequence(e){this._iter=e;this.size=e.size}if(e)FromEntriesSequence.__proto__=e;FromEntriesSequence.prototype=Object.create(e&&e.prototype);FromEntriesSequence.prototype.constructor=FromEntriesSequence;FromEntriesSequence.prototype.entrySeq=function entrySeq(){return this._iter.toSeq()};FromEntriesSequence.prototype.__iterate=function __iterate(e,r){var n=this;return this._iter.__iterate((function(r){if(r){validateEntry(r);var a=isCollection(r);return e(a?r.get(1):r[1],a?r.get(0):r[0],n)}}),r)};FromEntriesSequence.prototype.__iterator=function __iterator(e,r){var n=this._iter.__iterator(g,r);return new x((function(){while(true){var r=n.next();if(r.done){return r}var a=r.value;if(a){validateEntry(a);var i=isCollection(a);return iteratorValue(e,i?a.get(0):a[0],i?a.get(1):a[1],r)}}}))};return FromEntriesSequence}(E);K.prototype.cacheResult=W.prototype.cacheResult=Q.prototype.cacheResult=G.prototype.cacheResult=cacheResultThrough;function flipFactory(e){var r=makeSequence(e);r._iter=e;r.size=e.size;r.flip=function(){return e};r.reverse=function(){var r=e.reverse.apply(this);r.flip=function(){return e.reverse()};return r};r.has=function(r){return e.includes(r)};r.includes=function(r){return e.has(r)};r.cacheResult=cacheResultThrough;r.__iterateUncached=function(r,n){var a=this;return e.__iterate((function(e,n){return r(n,e,a)!==false}),n)};r.__iteratorUncached=function(r,n){if(r===y){var a=e.__iterator(r,n);return new x((function(){var e=a.next();if(!e.done){var r=e.value[0];e.value[0]=e.value[1];e.value[1]=r}return e}))}return e.__iterator(r===g?m:g,n)};return r}function mapFactory(e,r,n){var a=makeSequence(e);a.size=e.size;a.has=function(r){return e.has(r)};a.get=function(a,i){var o=e.get(a,s);return o===s?i:r.call(n,o,a,e)};a.__iterateUncached=function(a,i){var s=this;return e.__iterate((function(e,i,o){return a(r.call(n,e,i,o),i,s)!==false}),i)};a.__iteratorUncached=function(a,i){var s=e.__iterator(y,i);return new x((function(){var i=s.next();if(i.done){return i}var o=i.value;var l=o[0];return iteratorValue(a,l,r.call(n,o[1],l,e),i)}))};return a}function reverseFactory(e,r){var n=this;var a=makeSequence(e);a._iter=e;a.size=e.size;a.reverse=function(){return e};if(e.flip){a.flip=function(){var r=flipFactory(e);r.reverse=function(){return e.flip()};return r}}a.get=function(n,a){return e.get(r?n:-1-n,a)};a.has=function(n){return e.has(r?n:-1-n)};a.includes=function(r){return e.includes(r)};a.cacheResult=cacheResultThrough;a.__iterate=function(n,a){var i=this;var s=0;a&&ensureSize(e);return e.__iterate((function(e,o){return n(e,r?o:a?i.size-++s:s++,i)}),!a)};a.__iterator=function(a,i){var s=0;i&&ensureSize(e);var o=e.__iterator(y,!i);return new x((function(){var e=o.next();if(e.done){return e}var l=e.value;return iteratorValue(a,r?l[0]:i?n.size-++s:s++,l[1],e)}))};return a}function filterFactory(e,r,n,a){var i=makeSequence(e);if(a){i.has=function(a){var i=e.get(a,s);return i!==s&&!!r.call(n,i,a,e)};i.get=function(a,i){var o=e.get(a,s);return o!==s&&r.call(n,o,a,e)?o:i}}i.__iterateUncached=function(i,s){var o=this;var l=0;e.__iterate((function(e,s,u){if(r.call(n,e,s,u)){l++;return i(e,a?s:l-1,o)}}),s);return l};i.__iteratorUncached=function(i,s){var o=e.__iterator(y,s);var l=0;return new x((function(){while(true){var s=o.next();if(s.done){return s}var u=s.value;var _=u[0];var c=u[1];if(r.call(n,c,_,e)){return iteratorValue(i,a?_:l++,c,s)}}}))};return i}function countByFactory(e,r,n){var a=Y().asMutable();e.__iterate((function(i,s){a.update(r.call(n,i,s,e),0,(function(e){return e+1}))}));return a.asImmutable()}function groupByFactory(e,r,n){var a=isKeyed(e);var i=(isOrdered(e)?fe():Y()).asMutable();e.__iterate((function(s,o){i.update(r.call(n,s,o,e),(function(e){return e=e||[],e.push(a?[o,s]:s),e}))}));var s=collectionClass(e);return i.map((function(r){return reify(e,s(r))})).asImmutable()}function partitionFactory(e,r,n){var a=isKeyed(e);var i=[[],[]];e.__iterate((function(s,o){i[r.call(n,s,o,e)?1:0].push(a?[o,s]:s)}));var s=collectionClass(e);return i.map((function(r){return reify(e,s(r))}))}function sliceFactory(e,r,n,a){var i=e.size;if(wholeSlice(r,n,i)){return e}var s=resolveBegin(r,i);var o=resolveEnd(n,i);if(s!==s||o!==o){return sliceFactory(e.toSeq().cacheResult(),r,n,a)}var l=o-s;var u;if(l===l){u=l<0?0:l}var _=makeSequence(e);_.size=u===0?u:e.size&&u||undefined;if(!a&&isSeq(e)&&u>=0){_.get=function(r,n){r=wrapIndex(this,r);return r>=0&&r<u?e.get(r+s,n):n}}_.__iterateUncached=function(r,n){var i=this;if(u===0){return 0}if(n){return this.cacheResult().__iterate(r,n)}var o=0;var l=true;var _=0;e.__iterate((function(e,n){if(!(l&&(l=o++<s))){_++;return r(e,a?n:_-1,i)!==false&&_!==u}}));return _};_.__iteratorUncached=function(r,n){if(u!==0&&n){return this.cacheResult().__iterator(r,n)}if(u===0){return new x(iteratorDone)}var i=e.__iterator(r,n);var o=0;var l=0;return new x((function(){while(o++<s){i.next()}if(++l>u){return iteratorDone()}var e=i.next();if(a||r===g||e.done){return e}if(r===m){return iteratorValue(r,l-1,undefined,e)}return iteratorValue(r,l-1,e.value[1],e)}))};return _}function takeWhileFactory(e,r,n){var a=makeSequence(e);a.__iterateUncached=function(a,i){var s=this;if(i){return this.cacheResult().__iterate(a,i)}var o=0;e.__iterate((function(e,i,l){return r.call(n,e,i,l)&&++o&&a(e,i,s)}));return o};a.__iteratorUncached=function(a,i){var s=this;if(i){return this.cacheResult().__iterator(a,i)}var o=e.__iterator(y,i);var l=true;return new x((function(){if(!l){return iteratorDone()}var e=o.next();if(e.done){return e}var i=e.value;var u=i[0];var _=i[1];if(!r.call(n,_,u,s)){l=false;return iteratorDone()}return a===y?e:iteratorValue(a,u,_,e)}))};return a}function skipWhileFactory(e,r,n,a){var i=makeSequence(e);i.__iterateUncached=function(i,s){var o=this;if(s){return this.cacheResult().__iterate(i,s)}var l=true;var u=0;e.__iterate((function(e,s,_){if(!(l&&(l=r.call(n,e,s,_)))){u++;return i(e,a?s:u-1,o)}}));return u};i.__iteratorUncached=function(i,s){var o=this;if(s){return this.cacheResult().__iterator(i,s)}var l=e.__iterator(y,s);var u=true;var _=0;return new x((function(){var e;var s;var c;do{e=l.next();if(e.done){if(a||i===g){return e}if(i===m){return iteratorValue(i,_++,undefined,e)}return iteratorValue(i,_++,e.value[1],e)}var $=e.value;s=$[0];c=$[1];u&&(u=r.call(n,c,s,o))}while(u);return i===y?e:iteratorValue(i,s,c,e)}))};return i}function concatFactory(e,r){var n=isKeyed(e);var a=[e].concat(r).map((function(e){if(!isCollection(e)){e=n?keyedSeqFromValue(e):indexedSeqFromValue(Array.isArray(e)?e:[e])}else if(n){e=c(e)}return e})).filter((function(e){return e.size!==0}));if(a.length===0){return e}if(a.length===1){var i=a[0];if(i===e||n&&isKeyed(i)||isIndexed(e)&&isIndexed(i)){return i}}var s=new M(a);if(n){s=s.toKeyedSeq()}else if(!isIndexed(e)){s=s.toSetSeq()}s=s.flatten(true);s.size=a.reduce((function(e,r){if(e!==undefined){var n=r.size;if(n!==undefined){return e+n}}}),0);return s}function flattenFactory(e,r,n){var a=makeSequence(e);a.__iterateUncached=function(i,s){if(s){return this.cacheResult().__iterate(i,s)}var o=0;var l=false;function flatDeep(e,u){e.__iterate((function(e,s){if((!r||u<r)&&isCollection(e)){flatDeep(e,u+1)}else{o++;if(i(e,n?s:o-1,a)===false){l=true}}return!l}),s)}flatDeep(e,0);return o};a.__iteratorUncached=function(a,i){if(i){return this.cacheResult().__iterator(a,i)}var s=e.__iterator(a,i);var o=[];var l=0;return new x((function(){while(s){var e=s.next();if(e.done!==false){s=o.pop();continue}var u=e.value;if(a===y){u=u[1]}if((!r||o.length<r)&&isCollection(u)){o.push(s);s=u.__iterator(a,i)}else{return n?e:iteratorValue(a,l++,u,e)}}return iteratorDone()}))};return a}function flatMapFactory(e,r,n){var a=collectionClass(e);return e.toSeq().map((function(i,s){return a(r.call(n,i,s,e))})).flatten(true)}function interposeFactory(e,r){var n=makeSequence(e);n.size=e.size&&e.size*2-1;n.__iterateUncached=function(n,a){var i=this;var s=0;e.__iterate((function(e){return(!s||n(r,s++,i)!==false)&&n(e,s++,i)!==false}),a);return s};n.__iteratorUncached=function(n,a){var i=e.__iterator(g,a);var s=0;var o;return new x((function(){if(!o||s%2){o=i.next();if(o.done){return o}}return s%2?iteratorValue(n,s++,r):iteratorValue(n,s++,o.value,o)}))};return n}function sortFactory(e,r,n){if(!r){r=defaultComparator}var a=isKeyed(e);var i=0;var s=e.toSeq().map((function(r,a){return[a,r,i++,n?n(r,a,e):r]})).valueSeq().toArray();s.sort((function(e,n){return r(e[3],n[3])||e[2]-n[2]})).forEach(a?function(e,r){s[r].length=2}:function(e,r){s[r]=e[1]});return a?E(s):isIndexed(e)?A(s):I(s)}function maxFactory(e,r,n){if(!r){r=defaultComparator}if(n){var a=e.toSeq().map((function(r,a){return[r,n(r,a,e)]})).reduce((function(e,n){return maxCompare(r,e[1],n[1])?n:e}));return a&&a[0]}return e.reduce((function(e,n){return maxCompare(r,e,n)?n:e}))}function maxCompare(e,r,n){var a=e(n,r);return a===0&&n!==r&&(n===undefined||n===null||n!==n)||a>0}function zipWithFactory(e,r,n,a){var i=makeSequence(e);var s=new M(n).map((function(e){return e.size}));i.size=a?s.max():s.min();i.__iterate=function(e,r){var n=this.__iterator(g,r);var a;var i=0;while(!(a=n.next()).done){if(e(a.value,i++,this)===false){break}}return i};i.__iteratorUncached=function(e,i){var s=n.map((function(e){return e=_(e),getIterator(i?e.reverse():e)}));var o=0;var l=false;return new x((function(){var n;if(!l){n=s.map((function(e){return e.next()}));l=a?n.every((function(e){return e.done})):n.some((function(e){return e.done}))}if(l){return iteratorDone()}return iteratorValue(e,o++,r.apply(null,n.map((function(e){return e.value}))))}))};return i}function reify(e,r){return e===r?e:isSeq(e)?r:e.constructor(r)}function validateEntry(e){if(e!==Object(e)){throw new TypeError("Expected [K, V] tuple: "+e)}}function collectionClass(e){return isKeyed(e)?c:isIndexed(e)?$:p}function makeSequence(e){return Object.create((isKeyed(e)?E:isIndexed(e)?A:I).prototype)}function cacheResultThrough(){if(this._iter.cacheResult){this._iter.cacheResult();this.size=this._iter.size;return this}return C.prototype.cacheResult.call(this)}function defaultComparator(e,r){if(e===undefined&&r===undefined){return 0}if(e===undefined){return 1}if(r===undefined){return-1}return e>r?1:e<r?-1:0}function arrCopy(e,r){r=r||0;var n=Math.max(0,e.length-r);var a=new Array(n);for(var i=0;i<n;i++){a[i]=e[i+r]}return a}function invariant(e,r){if(!e){throw new Error(r)}}function assertNotInfinite(e){invariant(e!==Infinity,"Cannot perform this action with an infinite size.")}function coerceKeyPath(e){if(isArrayLike(e)&&typeof e!=="string"){return e}if(isOrdered(e)){return e.toArray()}throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}var Z=Object.prototype.toString;function isPlainObject(e){if(!e||typeof e!=="object"||Z.call(e)!=="[object Object]"){return false}var r=Object.getPrototypeOf(e);if(r===null){return true}var n=r;var a=Object.getPrototypeOf(r);while(a!==null){n=a;a=Object.getPrototypeOf(n)}return n===r}function isDataStructure(e){return typeof e==="object"&&(isImmutable(e)||Array.isArray(e)||isPlainObject(e))}function quoteString(e){try{return typeof e==="string"?JSON.stringify(e):String(e)}catch(r){return JSON.stringify(e)}}function has(e,r){return isImmutable(e)?e.has(r):isDataStructure(e)&&w.call(e,r)}function get(e,r,n){return isImmutable(e)?e.get(r,n):!has(e,r)?n:typeof e.get==="function"?e.get(r):e[r]}function shallowCopy(e){if(Array.isArray(e)){return arrCopy(e)}var r={};for(var n in e){if(w.call(e,n)){r[n]=e[n]}}return r}function remove(e,r){if(!isDataStructure(e)){throw new TypeError("Cannot update non-data-structure value: "+e)}if(isImmutable(e)){if(!e.remove){throw new TypeError("Cannot update immutable value without .remove() method: "+e)}return e.remove(r)}if(!w.call(e,r)){return e}var n=shallowCopy(e);if(Array.isArray(n)){n.splice(r,1)}else{delete n[r]}return n}function set(e,r,n){if(!isDataStructure(e)){throw new TypeError("Cannot update non-data-structure value: "+e)}if(isImmutable(e)){if(!e.set){throw new TypeError("Cannot update immutable value without .set() method: "+e)}return e.set(r,n)}if(w.call(e,r)&&n===e[r]){return e}var a=shallowCopy(e);a[r]=n;return a}function updateIn$1(e,r,n,a){if(!a){a=n;n=undefined}var i=updateInDeeply(isImmutable(e),e,coerceKeyPath(r),0,n,a);return i===s?n:i}function updateInDeeply(e,r,n,a,i,o){var l=r===s;if(a===n.length){var u=l?i:r;var _=o(u);return _===u?r:_}if(!l&&!isDataStructure(r)){throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,a).map(quoteString)+"]: "+r)}var c=n[a];var $=l?s:get(r,c,s);var p=updateInDeeply($===s?e:isImmutable($),$,n,a+1,i,o);return p===$?r:p===s?remove(r,c):set(l?e?emptyMap():{}:r,c,p)}function setIn$1(e,r,n){return updateIn$1(e,r,s,(function(){return n}))}function setIn(e,r){return setIn$1(this,e,r)}function removeIn(e,r){return updateIn$1(e,r,(function(){return s}))}function deleteIn(e){return removeIn(this,e)}function update$1(e,r,n,a){return updateIn$1(e,[r],n,a)}function update(e,r,n){return arguments.length===1?e(this):update$1(this,e,r,n)}function updateIn(e,r,n){return updateIn$1(this,e,r,n)}function merge$1(){var e=[],r=arguments.length;while(r--)e[r]=arguments[r];return mergeIntoKeyedWith(this,e)}function mergeWith$1(e){var r=[],n=arguments.length-1;while(n-- >0)r[n]=arguments[n+1];if(typeof e!=="function"){throw new TypeError("Invalid merger function: "+e)}return mergeIntoKeyedWith(this,r,e)}function mergeIntoKeyedWith(e,r,n){var a=[];for(var i=0;i<r.length;i++){var o=c(r[i]);if(o.size!==0){a.push(o)}}if(a.length===0){return e}if(e.toSeq().size===0&&!e.__ownerID&&a.length===1){return e.constructor(a[0])}return e.withMutations((function(e){var r=n?function(r,a){update$1(e,a,s,(function(e){return e===s?r:n(e,r,a)}))}:function(r,n){e.set(n,r)};for(var i=0;i<a.length;i++){a[i].forEach(r)}}))}function merge(e){var r=[],n=arguments.length-1;while(n-- >0)r[n]=arguments[n+1];return mergeWithSources(e,r)}function mergeWith(e,r){var n=[],a=arguments.length-2;while(a-- >0)n[a]=arguments[a+2];return mergeWithSources(r,n,e)}function mergeDeep$1(e){var r=[],n=arguments.length-1;while(n-- >0)r[n]=arguments[n+1];return mergeDeepWithSources(e,r)}function mergeDeepWith$1(e,r){var n=[],a=arguments.length-2;while(a-- >0)n[a]=arguments[a+2];return mergeDeepWithSources(r,n,e)}function mergeDeepWithSources(e,r,n){return mergeWithSources(e,r,deepMergerWith(n))}function mergeWithSources(e,r,n){if(!isDataStructure(e)){throw new TypeError("Cannot merge into non-data-structure value: "+e)}if(isImmutable(e)){return typeof n==="function"&&e.mergeWith?e.mergeWith.apply(e,[n].concat(r)):e.merge?e.merge.apply(e,r):e.concat.apply(e,r)}var a=Array.isArray(e);var i=e;var s=a?$:c;var o=a?function(r){if(i===e){i=shallowCopy(i)}i.push(r)}:function(r,a){var s=w.call(i,a);var o=s&&n?n(i[a],r,a):r;if(!s||o!==i[a]){if(i===e){i=shallowCopy(i)}i[a]=o}};for(var l=0;l<r.length;l++){s(r[l]).forEach(o)}return i}function deepMergerWith(e){function deepMerger(r,n,a){return isDataStructure(r)&&isDataStructure(n)&&areMergeable(r,n)?mergeWithSources(r,[n],deepMerger):e?e(r,n,a):n}return deepMerger}function areMergeable(e,r){var n=C(e);var a=C(r);return isIndexed(n)===isIndexed(a)&&isKeyed(n)===isKeyed(a)}function mergeDeep(){var e=[],r=arguments.length;while(r--)e[r]=arguments[r];return mergeDeepWithSources(this,e)}function mergeDeepWith(e){var r=[],n=arguments.length-1;while(n-- >0)r[n]=arguments[n+1];return mergeDeepWithSources(this,r,e)}function mergeIn(e){var r=[],n=arguments.length-1;while(n-- >0)r[n]=arguments[n+1];return updateIn$1(this,e,emptyMap(),(function(e){return mergeWithSources(e,r)}))}function mergeDeepIn(e){var r=[],n=arguments.length-1;while(n-- >0)r[n]=arguments[n+1];return updateIn$1(this,e,emptyMap(),(function(e){return mergeDeepWithSources(e,r)}))}function withMutations(e){var r=this.asMutable();e(r);return r.wasAltered()?r.__ensureOwner(this.__ownerID):this}function asMutable(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)}function asImmutable(){return this.__ensureOwner()}function wasAltered(){return this.__altered}var Y=function(e){function Map(r){return r===undefined||r===null?emptyMap():isMap(r)&&!isOrdered(r)?r:emptyMap().withMutations((function(n){var a=e(r);assertNotInfinite(a.size);a.forEach((function(e,r){return n.set(r,e)}))}))}if(e)Map.__proto__=e;Map.prototype=Object.create(e&&e.prototype);Map.prototype.constructor=Map;Map.of=function of(){var e=[],r=arguments.length;while(r--)e[r]=arguments[r];return emptyMap().withMutations((function(r){for(var n=0;n<e.length;n+=2){if(n+1>=e.length){throw new Error("Missing value for key: "+e[n])}r.set(e[n],e[n+1])}}))};Map.prototype.toString=function toString(){return this.__toString("Map {","}")};Map.prototype.get=function get(e,r){return this._root?this._root.get(0,undefined,e,r):r};Map.prototype.set=function set(e,r){return updateMap(this,e,r)};Map.prototype.remove=function remove(e){return updateMap(this,e,s)};Map.prototype.deleteAll=function deleteAll(e){var r=_(e);if(r.size===0){return this}return this.withMutations((function(e){r.forEach((function(r){return e.remove(r)}))}))};Map.prototype.clear=function clear(){if(this.size===0){return this}if(this.__ownerID){this.size=0;this._root=null;this.__hash=undefined;this.__altered=true;return this}return emptyMap()};Map.prototype.sort=function sort(e){return fe(sortFactory(this,e))};Map.prototype.sortBy=function sortBy(e,r){return fe(sortFactory(this,r,e))};Map.prototype.map=function map(e,r){var n=this;return this.withMutations((function(a){a.forEach((function(i,s){a.set(s,e.call(r,i,s,n))}))}))};Map.prototype.__iterator=function __iterator(e,r){return new ie(this,e,r)};Map.prototype.__iterate=function __iterate(e,r){var n=this;var a=0;this._root&&this._root.iterate((function(r){a++;return e(r[1],r[0],n)}),r);return a};Map.prototype.__ensureOwner=function __ensureOwner(e){if(e===this.__ownerID){return this}if(!e){if(this.size===0){return emptyMap()}this.__ownerID=e;this.__altered=false;return this}return makeMap(this.size,this._root,e,this.__hash)};return Map}(c);Y.isMap=isMap;var X=Y.prototype;X[R]=true;X[r]=X.remove;X.removeAll=X.deleteAll;X.setIn=setIn;X.removeIn=X.deleteIn=deleteIn;X.update=update;X.updateIn=updateIn;X.merge=X.concat=merge$1;X.mergeWith=mergeWith$1;X.mergeDeep=mergeDeep;X.mergeDeepWith=mergeDeepWith;X.mergeIn=mergeIn;X.mergeDeepIn=mergeDeepIn;X.withMutations=withMutations;X.wasAltered=wasAltered;X.asImmutable=asImmutable;X["@@transducer/init"]=X.asMutable=asMutable;X["@@transducer/step"]=function(e,r){return e.set(r[0],r[1])};X["@@transducer/result"]=function(e){return e.asImmutable()};var ee=function ArrayMapNode(e,r){this.ownerID=e;this.entries=r};ee.prototype.get=function get(e,r,n,a){var i=this.entries;for(var s=0,o=i.length;s<o;s++){if(is(n,i[s][0])){return i[s][1]}}return a};ee.prototype.update=function update(e,r,n,a,i,o,l){var u=i===s;var _=this.entries;var c=0;var $=_.length;for(;c<$;c++){if(is(a,_[c][0])){break}}var p=c<$;if(p?_[c][1]===i:u){return this}SetRef(l);(u||!p)&&SetRef(o);if(u&&_.length===1){return}if(!p&&!u&&_.length>=oe){return createNodes(e,_,a,i)}var h=e&&e===this.ownerID;var d=h?_:arrCopy(_);if(p){if(u){c===$-1?d.pop():d[c]=d.pop()}else{d[c]=[a,i]}}else{d.push([a,i])}if(h){this.entries=d;return this}return new ee(e,d)};var te=function BitmapIndexedNode(e,r,n){this.ownerID=e;this.bitmap=r;this.nodes=n};te.prototype.get=function get(e,r,a,s){if(r===undefined){r=hash(a)}var o=1<<((e===0?r:r>>>e)&i);var l=this.bitmap;return(l&o)===0?s:this.nodes[popCount(l&o-1)].get(e+n,r,a,s)};te.prototype.update=function update(e,r,a,o,l,u,_){if(a===undefined){a=hash(o)}var c=(r===0?a:a>>>r)&i;var $=1<<c;var p=this.bitmap;var h=(p&$)!==0;if(!h&&l===s){return this}var d=popCount(p&$-1);var f=this.nodes;var m=h?f[d]:undefined;var g=updateNode(m,e,r+n,a,o,l,u,_);if(g===m){return this}if(!h&&g&&f.length>=le){return expandNodes(e,f,p,c,g)}if(h&&!g&&f.length===2&&isLeafNode(f[d^1])){return f[d^1]}if(h&&g&&f.length===1&&isLeafNode(g)){return g}var y=e&&e===this.ownerID;var S=h?g?p:p^$:p|$;var v=h?g?setAt(f,d,g,y):spliceOut(f,d,y):spliceIn(f,d,g,y);if(y){this.bitmap=S;this.nodes=v;return this}return new te(e,S,v)};var re=function HashArrayMapNode(e,r,n){this.ownerID=e;this.count=r;this.nodes=n};re.prototype.get=function get(e,r,a,s){if(r===undefined){r=hash(a)}var o=(e===0?r:r>>>e)&i;var l=this.nodes[o];return l?l.get(e+n,r,a,s):s};re.prototype.update=function update(e,r,a,o,l,u,_){if(a===undefined){a=hash(o)}var c=(r===0?a:a>>>r)&i;var $=l===s;var p=this.nodes;var h=p[c];if($&&!h){return this}var d=updateNode(h,e,r+n,a,o,l,u,_);if(d===h){return this}var f=this.count;if(!h){f++}else if(!d){f--;if(f<ue){return packNodes(e,p,f,c)}}var m=e&&e===this.ownerID;var g=setAt(p,c,d,m);if(m){this.count=f;this.nodes=g;return this}return new re(e,f,g)};var ne=function HashCollisionNode(e,r,n){this.ownerID=e;this.keyHash=r;this.entries=n};ne.prototype.get=function get(e,r,n,a){var i=this.entries;for(var s=0,o=i.length;s<o;s++){if(is(n,i[s][0])){return i[s][1]}}return a};ne.prototype.update=function update(e,r,n,a,i,o,l){if(n===undefined){n=hash(a)}var u=i===s;if(n!==this.keyHash){if(u){return this}SetRef(l);SetRef(o);return mergeIntoNode(this,e,r,n,[a,i])}var _=this.entries;var c=0;var $=_.length;for(;c<$;c++){if(is(a,_[c][0])){break}}var p=c<$;if(p?_[c][1]===i:u){return this}SetRef(l);(u||!p)&&SetRef(o);if(u&&$===2){return new ae(e,this.keyHash,_[c^1])}var h=e&&e===this.ownerID;var d=h?_:arrCopy(_);if(p){if(u){c===$-1?d.pop():d[c]=d.pop()}else{d[c]=[a,i]}}else{d.push([a,i])}if(h){this.entries=d;return this}return new ne(e,this.keyHash,d)};var ae=function ValueNode(e,r,n){this.ownerID=e;this.keyHash=r;this.entry=n};ae.prototype.get=function get(e,r,n,a){return is(n,this.entry[0])?this.entry[1]:a};ae.prototype.update=function update(e,r,n,a,i,o,l){var u=i===s;var _=is(a,this.entry[0]);if(_?i===this.entry[1]:u){return this}SetRef(l);if(u){SetRef(o);return}if(_){if(e&&e===this.ownerID){this.entry[1]=i;return this}return new ae(e,this.keyHash,[a,i])}SetRef(o);return mergeIntoNode(this,e,r,hash(a),[a,i])};ee.prototype.iterate=ne.prototype.iterate=function(e,r){var n=this.entries;for(var a=0,i=n.length-1;a<=i;a++){if(e(n[r?i-a:a])===false){return false}}};te.prototype.iterate=re.prototype.iterate=function(e,r){var n=this.nodes;for(var a=0,i=n.length-1;a<=i;a++){var s=n[r?i-a:a];if(s&&s.iterate(e,r)===false){return false}}};ae.prototype.iterate=function(e,r){return e(this.entry)};var ie=function(e){function MapIterator(e,r,n){this._type=r;this._reverse=n;this._stack=e._root&&mapIteratorFrame(e._root)}if(e)MapIterator.__proto__=e;MapIterator.prototype=Object.create(e&&e.prototype);MapIterator.prototype.constructor=MapIterator;MapIterator.prototype.next=function next(){var e=this._type;var r=this._stack;while(r){var n=r.node;var a=r.index++;var i=void 0;if(n.entry){if(a===0){return mapIteratorValue(e,n.entry)}}else if(n.entries){i=n.entries.length-1;if(a<=i){return mapIteratorValue(e,n.entries[this._reverse?i-a:a])}}else{i=n.nodes.length-1;if(a<=i){var s=n.nodes[this._reverse?i-a:a];if(s){if(s.entry){return mapIteratorValue(e,s.entry)}r=this._stack=mapIteratorFrame(s,r)}continue}}r=this._stack=this._stack.__prev}return iteratorDone()};return MapIterator}(x);function mapIteratorValue(e,r){return iteratorValue(e,r[0],r[1])}function mapIteratorFrame(e,r){return{node:e,index:0,__prev:r}}function makeMap(e,r,n,a){var i=Object.create(X);i.size=e;i._root=r;i.__ownerID=n;i.__hash=a;i.__altered=false;return i}var se;function emptyMap(){return se||(se=makeMap(0))}function updateMap(e,r,n){var a;var i;if(!e._root){if(n===s){return e}i=1;a=new ee(e.__ownerID,[[r,n]])}else{var o=MakeRef();var l=MakeRef();a=updateNode(e._root,e.__ownerID,0,undefined,r,n,o,l);if(!l.value){return e}i=e.size+(o.value?n===s?-1:1:0)}if(e.__ownerID){e.size=i;e._root=a;e.__hash=undefined;e.__altered=true;return e}return a?makeMap(i,a):emptyMap()}function updateNode(e,r,n,a,i,o,l,u){if(!e){if(o===s){return e}SetRef(u);SetRef(l);return new ae(r,a,[i,o])}return e.update(r,n,a,i,o,l,u)}function isLeafNode(e){return e.constructor===ae||e.constructor===ne}function mergeIntoNode(e,r,a,s,o){if(e.keyHash===s){return new ne(r,s,[e.entry,o])}var l=(a===0?e.keyHash:e.keyHash>>>a)&i;var u=(a===0?s:s>>>a)&i;var _;var c=l===u?[mergeIntoNode(e,r,a+n,s,o)]:(_=new ae(r,s,o),l<u?[e,_]:[_,e]);return new te(r,1<<l|1<<u,c)}function createNodes(e,r,n,a){if(!e){e=new OwnerID}var i=new ae(e,hash(n),[n,a]);for(var s=0;s<r.length;s++){var o=r[s];i=i.update(e,0,undefined,o[0],o[1])}return i}function packNodes(e,r,n,a){var i=0;var s=0;var o=new Array(n);for(var l=0,u=1,_=r.length;l<_;l++,u<<=1){var c=r[l];if(c!==undefined&&l!==a){i|=u;o[s++]=c}}return new te(e,i,o)}function expandNodes(e,r,n,i,s){var o=0;var l=new Array(a);for(var u=0;n!==0;u++,n>>>=1){l[u]=n&1?r[o++]:undefined}l[i]=s;return new re(e,o+1,l)}function popCount(e){e-=e>>1&1431655765;e=(e&858993459)+(e>>2&858993459);e=e+(e>>4)&252645135;e+=e>>8;e+=e>>16;return e&127}function setAt(e,r,n,a){var i=a?e:arrCopy(e);i[r]=n;return i}function spliceIn(e,r,n,a){var i=e.length+1;if(a&&r+1===i){e[r]=n;return e}var s=new Array(i);var o=0;for(var l=0;l<i;l++){if(l===r){s[l]=n;o=-1}else{s[l]=e[l+o]}}return s}function spliceOut(e,r,n){var a=e.length-1;if(n&&r===a){e.pop();return e}var i=new Array(a);var s=0;for(var o=0;o<a;o++){if(o===r){s=1}i[o]=e[o+s]}return i}var oe=a/4;var le=a/2;var ue=a/4;var _e="@@__IMMUTABLE_LIST__@@";function isList(e){return Boolean(e&&e[_e])}var ce=function(e){function List(r){var i=emptyList();if(r===undefined||r===null){return i}if(isList(r)){return r}var s=e(r);var o=s.size;if(o===0){return i}assertNotInfinite(o);if(o>0&&o<a){return makeList(0,o,n,null,new pe(s.toArray()))}return i.withMutations((function(e){e.setSize(o);s.forEach((function(r,n){return e.set(n,r)}))}))}if(e)List.__proto__=e;List.prototype=Object.create(e&&e.prototype);List.prototype.constructor=List;List.of=function of(){return this(arguments)};List.prototype.toString=function toString(){return this.__toString("List [","]")};List.prototype.get=function get(e,r){e=wrapIndex(this,e);if(e>=0&&e<this.size){e+=this._origin;var n=listNodeFor(this,e);return n&&n.array[e&i]}return r};List.prototype.set=function set(e,r){return updateList(this,e,r)};List.prototype.remove=function remove(e){return!this.has(e)?this:e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1)};List.prototype.insert=function insert(e,r){return this.splice(e,0,r)};List.prototype.clear=function clear(){if(this.size===0){return this}if(this.__ownerID){this.size=this._origin=this._capacity=0;this._level=n;this._root=this._tail=this.__hash=undefined;this.__altered=true;return this}return emptyList()};List.prototype.push=function push(){var e=arguments;var r=this.size;return this.withMutations((function(n){setListBounds(n,0,r+e.length);for(var a=0;a<e.length;a++){n.set(r+a,e[a])}}))};List.prototype.pop=function pop(){return setListBounds(this,0,-1)};List.prototype.unshift=function unshift(){var e=arguments;return this.withMutations((function(r){setListBounds(r,-e.length);for(var n=0;n<e.length;n++){r.set(n,e[n])}}))};List.prototype.shift=function shift(){return setListBounds(this,1)};List.prototype.concat=function concat(){var r=arguments;var n=[];for(var a=0;a<arguments.length;a++){var i=r[a];var s=e(typeof i!=="string"&&hasIterator(i)?i:[i]);if(s.size!==0){n.push(s)}}if(n.length===0){return this}if(this.size===0&&!this.__ownerID&&n.length===1){return this.constructor(n[0])}return this.withMutations((function(e){n.forEach((function(r){return r.forEach((function(r){return e.push(r)}))}))}))};List.prototype.setSize=function setSize(e){return setListBounds(this,0,e)};List.prototype.map=function map(e,r){var n=this;return this.withMutations((function(a){for(var i=0;i<n.size;i++){a.set(i,e.call(r,a.get(i),i,n))}}))};List.prototype.slice=function slice(e,r){var n=this.size;if(wholeSlice(e,r,n)){return this}return setListBounds(this,resolveBegin(e,n),resolveEnd(r,n))};List.prototype.__iterator=function __iterator(e,r){var n=r?this.size:0;var a=iterateList(this,r);return new x((function(){var i=a();return i===he?iteratorDone():iteratorValue(e,r?--n:n++,i)}))};List.prototype.__iterate=function __iterate(e,r){var n=r?this.size:0;var a=iterateList(this,r);var i;while((i=a())!==he){if(e(i,r?--n:n++,this)===false){break}}return n};List.prototype.__ensureOwner=function __ensureOwner(e){if(e===this.__ownerID){return this}if(!e){if(this.size===0){return emptyList()}this.__ownerID=e;this.__altered=false;return this}return makeList(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash)};return List}($);ce.isList=isList;var $e=ce.prototype;$e[_e]=true;$e[r]=$e.remove;$e.merge=$e.concat;$e.setIn=setIn;$e.deleteIn=$e.removeIn=deleteIn;$e.update=update;$e.updateIn=updateIn;$e.mergeIn=mergeIn;$e.mergeDeepIn=mergeDeepIn;$e.withMutations=withMutations;$e.wasAltered=wasAltered;$e.asImmutable=asImmutable;$e["@@transducer/init"]=$e.asMutable=asMutable;$e["@@transducer/step"]=function(e,r){return e.push(r)};$e["@@transducer/result"]=function(e){return e.asImmutable()};var pe=function VNode(e,r){this.array=e;this.ownerID=r};pe.prototype.removeBefore=function removeBefore(e,r,a){if(a===r?1<<r:this.array.length===0){return this}var s=a>>>r&i;if(s>=this.array.length){return new pe([],e)}var o=s===0;var l;if(r>0){var u=this.array[s];l=u&&u.removeBefore(e,r-n,a);if(l===u&&o){return this}}if(o&&!l){return this}var _=editableVNode(this,e);if(!o){for(var c=0;c<s;c++){_.array[c]=undefined}}if(l){_.array[s]=l}return _};pe.prototype.removeAfter=function removeAfter(e,r,a){if(a===(r?1<<r:0)||this.array.length===0){return this}var s=a-1>>>r&i;if(s>=this.array.length){return this}var o;if(r>0){var l=this.array[s];o=l&&l.removeAfter(e,r-n,a);if(o===l&&s===this.array.length-1){return this}}var u=editableVNode(this,e);u.array.splice(s+1);if(o){u.array[s]=o}return u};var he={};function iterateList(e,r){var i=e._origin;var s=e._capacity;var o=getTailOffset(s);var l=e._tail;return iterateNodeOrLeaf(e._root,e._level,0);function iterateNodeOrLeaf(e,r,n){return r===0?iterateLeaf(e,n):iterateNode(e,r,n)}function iterateLeaf(e,n){var u=n===o?l&&l.array:e&&e.array;var _=n>i?0:i-n;var c=s-n;if(c>a){c=a}return function(){if(_===c){return he}var e=r?--c:_++;return u&&u[e]}}function iterateNode(e,o,l){var u;var _=e&&e.array;var c=l>i?0:i-l>>o;var $=(s-l>>o)+1;if($>a){$=a}return function(){while(true){if(u){var e=u();if(e!==he){return e}u=null}if(c===$){return he}var a=r?--$:c++;u=iterateNodeOrLeaf(_&&_[a],o-n,l+(a<<o))}}}}function makeList(e,r,n,a,i,s,o){var l=Object.create($e);l.size=r-e;l._origin=e;l._capacity=r;l._level=n;l._root=a;l._tail=i;l.__ownerID=s;l.__hash=o;l.__altered=false;return l}var de;function emptyList(){return de||(de=makeList(0,0,n))}function updateList(e,r,n){r=wrapIndex(e,r);if(r!==r){return e}if(r>=e.size||r<0){return e.withMutations((function(e){r<0?setListBounds(e,r).set(0,n):setListBounds(e,0,r+1).set(r,n)}))}r+=e._origin;var a=e._tail;var i=e._root;var s=MakeRef();if(r>=getTailOffset(e._capacity)){a=updateVNode(a,e.__ownerID,0,r,n,s)}else{i=updateVNode(i,e.__ownerID,e._level,r,n,s)}if(!s.value){return e}if(e.__ownerID){e._root=i;e._tail=a;e.__hash=undefined;e.__altered=true;return e}return makeList(e._origin,e._capacity,e._level,i,a)}function updateVNode(e,r,a,s,o,l){var u=s>>>a&i;var _=e&&u<e.array.length;if(!_&&o===undefined){return e}var c;if(a>0){var $=e&&e.array[u];var p=updateVNode($,r,a-n,s,o,l);if(p===$){return e}c=editableVNode(e,r);c.array[u]=p;return c}if(_&&e.array[u]===o){return e}if(l){SetRef(l)}c=editableVNode(e,r);if(o===undefined&&u===c.array.length-1){c.array.pop()}else{c.array[u]=o}return c}function editableVNode(e,r){if(r&&e&&r===e.ownerID){return e}return new pe(e?e.array.slice():[],r)}function listNodeFor(e,r){if(r>=getTailOffset(e._capacity)){return e._tail}if(r<1<<e._level+n){var a=e._root;var s=e._level;while(a&&s>0){a=a.array[r>>>s&i];s-=n}return a}}function setListBounds(e,r,a){if(r!==undefined){r|=0}if(a!==undefined){a|=0}var s=e.__ownerID||new OwnerID;var o=e._origin;var l=e._capacity;var u=o+r;var _=a===undefined?l:a<0?l+a:o+a;if(u===o&&_===l){return e}if(u>=_){return e.clear()}var c=e._level;var $=e._root;var p=0;while(u+p<0){$=new pe($&&$.array.length?[undefined,$]:[],s);c+=n;p+=1<<c}if(p){u+=p;o+=p;_+=p;l+=p}var h=getTailOffset(l);var d=getTailOffset(_);while(d>=1<<c+n){$=new pe($&&$.array.length?[$]:[],s);c+=n}var f=e._tail;var m=d<h?listNodeFor(e,_-1):d>h?new pe([],s):f;if(f&&d>h&&u<l&&f.array.length){$=editableVNode($,s);var g=$;for(var y=c;y>n;y-=n){var S=h>>>y&i;g=g.array[S]=editableVNode(g.array[S],s)}g.array[h>>>n&i]=f}if(_<l){m=m&&m.removeAfter(s,0,_)}if(u>=d){u-=d;_-=d;c=n;$=null;m=m&&m.removeBefore(s,0,u)}else if(u>o||d<h){p=0;while($){var v=u>>>c&i;if(v!==d>>>c&i){break}if(v){p+=(1<<c)*v}c-=n;$=$.array[v]}if($&&u>o){$=$.removeBefore(s,c,u-p)}if($&&d<h){$=$.removeAfter(s,c,d-p)}if(p){u-=p;_-=p}}if(e.__ownerID){e.size=_-u;e._origin=u;e._capacity=_;e._level=c;e._root=$;e._tail=m;e.__hash=undefined;e.__altered=true;return e}return makeList(u,_,c,$,m)}function getTailOffset(e){return e<a?0:e-1>>>n<<n}var fe=function(e){function OrderedMap(e){return e===undefined||e===null?emptyOrderedMap():isOrderedMap(e)?e:emptyOrderedMap().withMutations((function(r){var n=c(e);assertNotInfinite(n.size);n.forEach((function(e,n){return r.set(n,e)}))}))}if(e)OrderedMap.__proto__=e;OrderedMap.prototype=Object.create(e&&e.prototype);OrderedMap.prototype.constructor=OrderedMap;OrderedMap.of=function of(){return this(arguments)};OrderedMap.prototype.toString=function toString(){return this.__toString("OrderedMap {","}")};OrderedMap.prototype.get=function get(e,r){var n=this._map.get(e);return n!==undefined?this._list.get(n)[1]:r};OrderedMap.prototype.clear=function clear(){if(this.size===0){return this}if(this.__ownerID){this.size=0;this._map.clear();this._list.clear();this.__altered=true;return this}return emptyOrderedMap()};OrderedMap.prototype.set=function set(e,r){return updateOrderedMap(this,e,r)};OrderedMap.prototype.remove=function remove(e){return updateOrderedMap(this,e,s)};OrderedMap.prototype.__iterate=function __iterate(e,r){var n=this;return this._list.__iterate((function(r){return r&&e(r[1],r[0],n)}),r)};OrderedMap.prototype.__iterator=function __iterator(e,r){return this._list.fromEntrySeq().__iterator(e,r)};OrderedMap.prototype.__ensureOwner=function __ensureOwner(e){if(e===this.__ownerID){return this}var r=this._map.__ensureOwner(e);var n=this._list.__ensureOwner(e);if(!e){if(this.size===0){return emptyOrderedMap()}this.__ownerID=e;this.__altered=false;this._map=r;this._list=n;return this}return makeOrderedMap(r,n,e,this.__hash)};return OrderedMap}(Y);fe.isOrderedMap=isOrderedMap;fe.prototype[f]=true;fe.prototype[r]=fe.prototype.remove;function makeOrderedMap(e,r,n,a){var i=Object.create(fe.prototype);i.size=e?e.size:0;i._map=e;i._list=r;i.__ownerID=n;i.__hash=a;i.__altered=false;return i}v