immutable
Advanced tools
Comparing version 4.0.0-rc.4 to 4.0.0-rc.5
@@ -7,32 +7,32 @@ /** | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.Immutable=t.Immutable||{})}(this,function(t){"use strict";function e(t){return t.value=!1,t}function r(t){t&&(t.value=!0)}function n(){}function i(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function o(t){return void 0===t.size&&(t.size=t.__iterate(s)),t.size}function u(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?o(t)+e:e}function s(){return!0}function a(t,e,r){return(0===t&&!p(t)||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function c(t,e){return f(t,e,0)}function h(t,e){return f(t,e,e)}function f(t,e,r){return void 0===t?r:p(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function p(t){return t<0||0===t&&1/t==-(1/0)}function _(t){return(l(t)||m(t))&&!t.__ownerID}function l(t){return!(!t||!t[Ue])}function v(t){return!(!t||!t[Ke])}function y(t){return!(!t||!t[Le])}function d(t){return v(t)||y(t)}function g(t){return!(!t||!t[Te])}function m(t){return!(!t||!t[Ce])}function w(t){return!(!t||"function"!=typeof t.equals||"function"!=typeof t.hashCode)}function z(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function S(){return{value:void 0,done:!0}}function I(t){return!!M(t)}function b(t){return t&&"function"==typeof t.next}function O(t){var e=M(t);return e&&e.call(t)}function M(t){var e=t&&(Ye&&t[Ye]||t[Qe]);if("function"==typeof e)return e}function D(t){return t&&"number"==typeof t.length}function q(t){return!(!t||!t[er])}function E(){return ir||(ir=new rr([]))}function x(t){var e=Array.isArray(t)?new rr(t):b(t)?new sr(t):I(t)?new ur(t):void 0;if(e)return e.fromEntrySeq();if("object"==typeof t)return new nr(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function j(t){var e=A(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)} | ||
function k(t){var e=A(t);if(e)return e;if("object"==typeof t)return new nr(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}function A(t){return D(t)?new rr(t):b(t)?new sr(t):I(t)?new ur(t):void 0}function R(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!!(w(t)&&w(e)&&t.equals(e))}function U(t,e){return K([],e||L,t,"",e&&e.length>2?[]:void 0,{"":t})}function K(t,e,r,n,i,o){var u=Array.isArray(r)?$e:T(r)?Ze:null;if(u){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),i&&""!==n&&i.push(n);var s=e.call(o,n,u(r).map(function(n,o){return K(t,e,n,o,i,r)}),i&&i.slice());return t.pop(),i&&i.pop(),s}return r}function L(t,e){return v(e)?e.toMap():e.toList()}function T(t){return t&&(t.constructor===Object||void 0===t.constructor)}function C(t){return t>>>1&1073741824|3221225471&t}function W(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&((t=t.valueOf())===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){if(t!==t||t===1/0)return 0;var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return C(r)}if("string"===e)return t.length>lr?B(t):J(t);if("function"==typeof t.hashCode)return C(t.hashCode());if("object"===e)return P(t);if("function"==typeof t.toString)return J(""+t);throw Error("Value type "+e+" cannot be hashed.")}function B(t){var e=dr[t];return void 0===e&&(e=J(t),yr===vr&&(yr=0,dr={}),yr++,dr[t]=e),e}function J(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return C(e)}function P(t){var e;if(fr&&void 0!==(e=or.get(t)))return e;if(void 0!==(e=t[_r]))return e;if(!hr){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[_r]))return e;if(void 0!==(e=N(t)))return e}if(e=++pr,1073741824&pr&&(pr=0),fr)or.set(t,e);else{ | ||
if(void 0!==cr&&cr(t)===!1)throw Error("Non-extensible objects are not allowed as keys.");if(hr)Object.defineProperty(t,_r,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[_r]=e;else{if(void 0===t.nodeType)throw Error("Unable to set a non-enumerable property on object.");t[_r]=e}}return e}function N(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function V(t){var e=ft(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=pt,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return e(r,t,n)!==!1},r)},e.__iteratorUncached=function(e,r){if(e===He){var n=t.__iterator(e,r);return new Fe(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===Ve?Ne:Ve,r)},e}function H(t,e,r){var n=ft(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,ke);return o===ke?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return n(e.call(r,t,i,u),i,o)!==!1},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(He,i);return new Fe(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return z(n,s,e.call(r,u[1],s,t),i)})},n}function Y(t,e){var r=this,n=ft(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=V(t);return e.reverse=function(){return t.flip()},e}),n.get=function(r,n){return t.get(e?r:-1-r,n)},n.has=function(r){return t.has(e?r:-1-r)},n.includes=function(e){ | ||
return t.includes(e)},n.cacheResult=pt,n.__iterate=function(r,n){var i=this,u=0;return n&&o(t),t.__iterate(function(t,o){return r(t,e?o:n?i.size-++u:u++,i)},!n)},n.__iterator=function(n,i){var u=0;i&&o(t);var s=t.__iterator(He,!i);return new Fe(function(){var t=s.next();if(t.done)return t;var o=t.value;return z(n,e?o[0]:i?r.size-++u:u++,o[1],t)})},n}function Q(t,e,r,n){var i=ft(t);return n&&(i.has=function(n){var i=t.get(n,ke);return i!==ke&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,ke);return o!==ke&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){if(e.call(r,t,o,a))return s++,i(t,n?o:s-1,u)},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(He,o),s=0;return new Fe(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,c=a[0],h=a[1];if(e.call(r,h,c,t))return z(i,n?c:s++,h,o)}})},i}function X(t,e,r){var n=Sr().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}function F(t,e,r){var n=v(t),i=(g(t)?Br():Sr()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return t=t||[],t.push(n?[u,o]:o),t})});var o=ht(t);return i.map(function(e){return at(t,o(e))})}function G(t,e,r,n){var i=t.size;if(a(e,r,i))return t;var o=c(e,i),s=h(r,i);if(o!==o||s!==s)return G(t.toSeq().cacheResult(),e,r,n);var f,p=s-o;p===p&&(f=p<0?0:p);var _=ft(t);return _.size=0===f?f:t.size&&f||void 0,!n&&q(t)&&f>=0&&(_.get=function(e,r){return e=u(this,e),e>=0&&e<f?t.get(e+o,r):r}),_.__iterateUncached=function(e,r){var i=this;if(0===f)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,s=!0,a=0;return t.__iterate(function(t,r){if(!s||!(s=u++<o))return a++,e(t,n?r:a-1,i)!==!1&&a!==f}),a},_.__iteratorUncached=function(e,r){if(0!==f&&r)return this.cacheResult().__iterator(e,r);if(0===f)return new Fe(S);var i=t.__iterator(e,r),u=0,s=0;return new Fe(function(){for(;u++<o;)i.next();if(++s>f)return S();var t=i.next() | ||
;return n||e===Ve||t.done?t:e===Ne?z(e,s-1,void 0,t):z(e,s-1,t.value[1],t)})},_}function Z(t,e,r){var n=ft(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(He,i),s=!0;return new Fe(function(){if(!s)return S();var t=u.next();if(t.done)return t;var i=t.value,a=i[0],c=i[1];return e.call(r,c,a,o)?n===He?t:z(n,a,c,t):(s=!1,S())})},n}function $(t,e,r,n){var i=ft(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate(function(t,o,c){if(!s||!(s=e.call(r,t,o,c)))return a++,i(t,n?o:a-1,u)}),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(He,o),a=!0,c=0;return new Fe(function(){var t,o,h;do{if(t=s.next(),t.done)return n||i===Ve?t:i===Ne?z(i,c++,void 0,t):z(i,c++,t.value[1],t);var f=t.value;o=f[0],h=f[1],a&&(a=e.call(r,h,o,u))}while(a);return i===He?t:z(i,o,h,t)})},i}function tt(t,e){var r=v(t),n=[t].concat(e).map(function(t){return l(t)?r&&(t=Be(t)):t=r?x(t):j(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&v(i)||y(t)&&y(i))return i}var o=new rr(n);return r?o=o.toKeyedSeq():y(t)||(o=o.toSetSeq()),o=o.flatten(!0),o.size=n.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),o}function et(t,e,r){var n=ft(t);return n.__iterateUncached=function(i,o){function u(t,c){t.__iterate(function(t,o){return(!e||c<e)&&l(t)?u(t,c+1):(s++,i(t,r?o:s-1,n)===!1&&(a=!0)),!a},o)}if(o)return this.cacheResult().__iterate(i,o);var s=0,a=!1;return u(t,0),s},n.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var o=t.__iterator(n,i),u=[],s=0;return new Fe(function(){for(;o;){var t=o.next();if(t.done===!1){var a=t.value | ||
;if(n===He&&(a=a[1]),e&&!(u.length<e)||!l(a))return r?t:z(n,s++,a,t);u.push(o),o=a.__iterator(n,i)}else o=u.pop()}return S()})},n}function rt(t,e,r){var n=ht(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}function nt(t,e){var r=ft(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t){return(!o||r(e,o++,i)!==!1)&&r(t,o++,i)!==!1},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(Ve,n),u=0;return new Fe(function(){return(!i||u%2)&&(i=o.next(),i.done)?i:u%2?z(r,u++,e):z(r,u++,i.value,i)})},r}function it(t,e,r){e||(e=_t);var n=v(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?Ze(o):y(t)?$e(o):tr(o)}function ot(t,e,r){if(e||(e=_t),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return ut(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return ut(e,t,r)?r:t})}function ut(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(void 0===r||null===r||r!==r)||n>0}function st(t,e,r,n){var i=ft(t),o=new rr(r).map(function(t){return t.size});return i.size=n?o.max():o.min(),i.__iterate=function(t,e){for(var r,n=this,i=this.__iterator(Ve,e),o=0;!(r=i.next()).done&&t(r.value,o++,n)!==!1;);return o},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=We(t),O(i?t.reverse():t)}),u=0,s=!1;return new Fe(function(){var r;return s||(r=o.map(function(t){return t.next()}),s=n?r.every(function(t){return t.done}):r.some(function(t){return t.done})),s?S():z(t,u++,e.apply(null,r.map(function(t){return t.value})))})},i}function at(t,e){return t===e?t:q(t)?e:t.constructor(e)}function ct(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function ht(t){return v(t)?Be:y(t)?Je:Pe}function ft(t){return Object.create((v(t)?Ze:y(t)?$e:tr).prototype)}function pt(){return this._iter.cacheResult?(this._iter.cacheResult(), | ||
this.size=this._iter.size,this):Ge.prototype.cacheResult.call(this)}function _t(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function lt(t){if(D(t)&&"string"!=typeof t)return t;if(g(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}function vt(t,e){if(!t)throw Error(e)}function yt(t){vt(t!==1/0,"Cannot perform this action with an infinite size.")}function dt(t){return"string"==typeof t?JSON.stringify(t):t+""}function gt(t){return!(!t||!t[Ir])}function mt(t,e){return z(t,e[0],e[1])}function wt(t,e){return{node:t,index:0,__prev:e}}function zt(t,e,r,n){var i=Object.create(br);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function St(){return xr||(xr=zt(0))}function It(t,r,n){var i,o;if(t._root){var u=e(Ae),s=e(Re);if(i=bt(t._root,t.__ownerID,0,void 0,r,n,u,s),!s.value)return t;o=t.size+(u.value?n===ke?-1:1:0)}else{if(n===ke)return t;o=1,i=new Or(t.__ownerID,[[r,n]])}return t.__ownerID?(t.size=o,t._root=i,t.__hash=void 0,t.__altered=!0,t):i?zt(o,i):St()}function bt(t,e,n,i,o,u,s,a){return t?t.update(e,n,i,o,u,s,a):u===ke?t:(r(a),r(s),new Er(e,i,[o,u]))}function Ot(t){return t.constructor===Er||t.constructor===qr}function Mt(t,e,r,n,i){if(t.keyHash===n)return new qr(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&je,s=(0===r?n:n>>>r)&je;return new Mr(e,1<<u|1<<s,u===s?[Mt(t,e,r+Ee,n,i)]:(o=new Er(e,n,i),u<s?[t,o]:[o,t]))}function Dt(t,e,r,i){t||(t=new n);for(var o=new Er(t,W(r),[r,i]),u=0;u<e.length;u++){var s=e[u];o=o.update(t,0,void 0,s[0],s[1])}return o}function qt(t,e,r,n){for(var i=0,o=0,u=Array(r),s=0,a=1,c=e.length;s<c;s++,a<<=1){var h=e[s];void 0!==h&&s!==n&&(i|=a,u[o++]=h)}return new Mr(t,i,u)}function Et(t,e,r,n,i){for(var o=0,u=Array(xe),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new Dr(t,o+1,u)}function xt(t,e,r){for(var n=[],i=0;i<r.length;i++){var o=r[i],u=Be(o);l(o)||(u=u.map(function(t){return U(t)})),n.push(u)}return At(t,e,n)}function jt(t,e){ | ||
return t&&t.mergeDeep&&l(e)?t.mergeDeep(e):R(t,e)?t:e}function kt(t){return function(e,r,n){if(e&&e.mergeDeepWith&&l(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return R(e,i)?e:i}}function At(t,e,r){return r=r.filter(function(t){return 0!==t.size}),0===r.length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var n=e?function(r,n){t.update(n,ke,function(t){return t===ke?r:e(t,r,n)})}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)}):t.constructor(r[0])}function Rt(t,e,r,n,i){var o=t===ke;if(r===e.length){var u=o?n:t,s=i(u);return s===u?t:s}if(!(o||t&&t.set))throw new TypeError("Invalid keyPath: Value at ["+e.slice(0,r).map(dt)+"] does not have a .set() method and cannot be updated: "+t);var a=e[r],c=o?ke:t.get(a,ke),h=Rt(c,e,r+1,n,i);return h===c?t:h===ke?t.remove(a):(o?St():t).set(a,h)}function Ut(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Kt(t,e,r,n){var o=n?t:i(t);return o[e]=r,o}function Lt(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=Array(i),u=0,s=0;s<i;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function Tt(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}function Ct(t){return!(!t||!t[Kr])}function Wt(t,e){function r(t,e,r){return 0===e?n(t,r):i(t,e,r)}function n(t,r){var n=r===s?a&&a.array:t&&t.array,i=r>o?0:o-r,c=u-r;return c>xe&&(c=xe),function(){if(i===c)return Wr;var t=e?--c:i++;return n&&n[t]}}function i(t,n,i){var s,a=t&&t.array,c=i>o?0:o-i>>n,h=1+(u-i>>n);return h>xe&&(h=xe),function(){for(;;){if(s){var t=s();if(t!==Wr)return t;s=null}if(c===h)return Wr;var o=e?--h:c++;s=r(a&&a[o],n-Ee,i+(o<<n))}}}var o=t._origin,u=t._capacity,s=Xt(u),a=t._tail;return r(t._root,t._level,0)}function Bt(t,e,r,n,i,o,u){var s=Object.create(Lr);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function Jt(){return Cr||(Cr=Bt(0,0,Ee))}function Pt(t,r,n){ | ||
if((r=u(t,r))!==r)return t;if(r>=t.size||r<0)return t.withMutations(function(t){r<0?Yt(t,r).set(0,n):Yt(t,0,r+1).set(r,n)});r+=t._origin;var i=t._tail,o=t._root,s=e(Re);return r>=Xt(t._capacity)?i=Nt(i,t.__ownerID,0,r,n,s):o=Nt(o,t.__ownerID,t._level,r,n,s),s.value?t.__ownerID?(t._root=o,t._tail=i,t.__hash=void 0,t.__altered=!0,t):Bt(t._origin,t._capacity,t._level,o,i):t}function Nt(t,e,n,i,o,u){var s=i>>>n&je,a=t&&s<t.array.length;if(!a&&void 0===o)return t;var c;if(n>0){var h=t&&t.array[s],f=Nt(h,e,n-Ee,i,o,u);return f===h?t:(c=Vt(t,e),c.array[s]=f,c)}return a&&t.array[s]===o?t:(r(u),c=Vt(t,e),void 0===o&&s===c.array.length-1?c.array.pop():c.array[s]=o,c)}function Vt(t,e){return e&&t&&e===t.ownerID?t:new Tr(t?t.array.slice():[],e)}function Ht(t,e){if(e>=Xt(t._capacity))return t._tail;if(e<1<<t._level+Ee){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&je],n-=Ee;return r}}function Yt(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var i=t.__ownerID||new n,o=t._origin,u=t._capacity,s=o+e,a=void 0===r?u:r<0?u+r:o+r;if(s===o&&a===u)return t;if(s>=a)return t.clear();for(var c=t._level,h=t._root,f=0;s+f<0;)h=new Tr(h&&h.array.length?[void 0,h]:[],i),c+=Ee,f+=1<<c;f&&(s+=f,o+=f,a+=f,u+=f);for(var p=Xt(u),_=Xt(a);_>=1<<c+Ee;)h=new Tr(h&&h.array.length?[h]:[],i),c+=Ee;var l=t._tail,v=_<p?Ht(t,a-1):_>p?new Tr([],i):l;if(l&&_>p&&s<u&&l.array.length){h=Vt(h,i);for(var y=h,d=c;d>Ee;d-=Ee){var g=p>>>d&je;y=y.array[g]=Vt(y.array[g],i)}y.array[p>>>Ee&je]=l}if(a<u&&(v=v&&v.removeAfter(i,0,a)),s>=_)s-=_,a-=_,c=Ee,h=null,v=v&&v.removeBefore(i,0,s);else if(s>o||_<p){for(f=0;h;){var m=s>>>c&je;if(m!==_>>>c&je)break;m&&(f+=(1<<c)*m),c-=Ee,h=h.array[m]}h&&s>o&&(h=h.removeBefore(i,c,s-f)),h&&_<p&&(h=h.removeAfter(i,c,_-f)),f&&(s-=f,a-=f)}return t.__ownerID?(t.size=a-s,t._origin=s,t._capacity=a,t._level=c,t._root=h,t._tail=v,t.__hash=void 0,t.__altered=!0,t):Bt(s,a,c,h,v)}function Qt(t,e,r){for(var n=[],i=0,o=0;o<r.length;o++){var u=r[o],s=Je(u);s.size>i&&(i=s.size),l(u)||(s=s.map(function(t){return U(t)})),n.push(s)} | ||
return i>t.size&&(t=t.setSize(i)),At(t,e,n)}function Xt(t){return t<xe?0:t-1>>>Ee<<Ee}function Ft(t){return gt(t)&&g(t)}function Gt(t,e,r,n){var i=Object.create(Br.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function Zt(){return Jr||(Jr=Gt(St(),Jt()))}function $t(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===ke){if(!a)return t;u.size>=xe&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):Gt(n,i)}function te(t){return!(!t||!t[Nr])}function ee(t,e,r,n){var i=Object.create(Vr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function re(){return Hr||(Hr=ee(0))}function ne(t,e){if(t===e)return!0;if(!l(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||v(t)!==v(e)||y(t)!==y(e)||g(t)!==g(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!d(t);if(g(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&R(i[1],t)&&(r||R(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var u=!0,s=e.__iterate(function(e,n){if(r?!t.has(e):i?!R(e,t.get(n,ke)):!R(t.get(n,ke),e))return u=!1,!1});return u&&t.size===s}function ie(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function oe(t){return!(!t||!t[Qr])}function ue(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function se(t,e){var r=Object.create(Xr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r} | ||
function ae(){return Fr||(Fr=se(St()))}function ce(t,e,r,n,i,o){return yt(t.size),t.__iterate(function(t,o,u){i?(i=!1,r=t):r=e.call(n,r,t,o,u)},o),r}function he(t,e){return e}function fe(t,e){return[e,t]}function pe(t){return t&&"function"==typeof t.toJS?t.toJS():t}function _e(t){return function(){return!t.apply(this,arguments)}}function le(t){return function(){return-t.apply(this,arguments)}}function ve(){return i(arguments)}function ye(t,e){return t<e?1:t>e?-1:0}function de(t){if(t.size===1/0)return 0;var e=g(t),r=v(t),n=e?1:0;return ge(t.__iterate(r?e?function(t,e){n=31*n+me(W(t),W(e))|0}:function(t,e){n=n+me(W(t),W(e))|0}:e?function(t){n=31*n+W(t)|0}:function(t){n=n+W(t)|0}),n)}function ge(t,e){return e=ar(e,3432918353),e=ar(e<<15|e>>>-15,461845907),e=ar(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=ar(e^e>>>16,2246822507),e=ar(e^e>>>13,3266489909),e=C(e^e>>>16)}function me(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}function we(t){if("object"!=typeof console||!console.warn)throw Error(t);console.warn(t)}function ze(t,e,r,n){for(var i=lt(r),o=0;o!==i.length;){if(!t||!t.get)return n&&we("Invalid keyPath: Value at ["+i.slice(0,o).map(dt)+"] does not have a .get() method: "+t+"\nThis warning will throw in a future version"),e;if((t=t.get(i[o++],ke))===ke)return e}return t}function Se(t){return oe(t)&&g(t)}function Ie(t,e){var r=Object.create(nn);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function be(){return on||(on=Ie(Zt()))}function Oe(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._values=e,n.__ownerID=r,n}function Me(t){return t._name||t.constructor.name||"Record"}function De(t){return x(t._keys.map(function(e){return[e,t.get(e)]}))}function qe(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){vt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}var Ee=5,xe=1<<Ee,je=xe-1,ke={},Ae={value:!1},Re={value:!1 | ||
},Ue="@@__IMMUTABLE_ITERABLE__@@",Ke="@@__IMMUTABLE_KEYED__@@",Le="@@__IMMUTABLE_INDEXED__@@",Te="@@__IMMUTABLE_ORDERED__@@",Ce="@@__IMMUTABLE_RECORD__@@",We=function(t){return l(t)?t:Ge(t)},Be=function(t){function e(t){return v(t)?t:Ze(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(We),Je=function(t){function e(t){return y(t)?t:$e(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(We),Pe=function(t){function e(t){return l(t)&&!d(t)?t:tr(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(We);We.Keyed=Be,We.Indexed=Je,We.Set=Pe;var Ne=0,Ve=1,He=2,Ye="function"==typeof Symbol&&Symbol.iterator,Qe="@@iterator",Xe=Ye||Qe,Fe=function(t){this.next=t};Fe.prototype.toString=function(){return"[Iterator]"},Fe.KEYS=Ne,Fe.VALUES=Ve,Fe.ENTRIES=He,Fe.prototype.inspect=Fe.prototype.toSource=function(){return""+this},Fe.prototype[Xe]=function(){return this};var Ge=function(t){function e(t){return null===t||void 0===t?E():l(t)||m(t)?t.toSeq():k(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var r=this,n=this._cache;if(n){for(var i=n.length,o=0;o!==i;){var u=n[e?i-++o:o++];if(t(u[1],u[0],r)===!1)break}return o}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var r=this._cache;if(r){var n=r.length,i=0;return new Fe(function(){if(i===n)return S();var o=r[e?n-++i:i++];return z(t,o[0],o[1])})}return this.__iteratorUncached(t,e)},e}(We),Ze=function(t){function e(t){return null===t||void 0===t?E().toKeyedSeq():l(t)?v(t)?t.toSeq():t.fromEntrySeq():m(t)?t.toSeq():x(t)}return t&&(e.__proto__=t), | ||
e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(Ge),$e=function(t){function e(t){return null===t||void 0===t?E():l(t)?v(t)?t.entrySeq():t.toIndexedSeq():m(t)?t.toSeq().entrySeq():j(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(Ge),tr=function(t){function e(t){return(l(t)&&!d(t)?t:$e(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(Ge);Ge.isSeq=q,Ge.Keyed=Ze,Ge.Set=tr,Ge.Indexed=$e;var er="@@__IMMUTABLE_SEQ__@@";Ge.prototype[er]=!0;var rr=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[u(this,t)]:e},e.prototype.__iterate=function(t,e){for(var r=this,n=this._array,i=n.length,o=0;o!==i;){var u=e?i-++o:o++;if(t(n[u],u,r)===!1)break}return o},e.prototype.__iterator=function(t,e){var r=this._array,n=r.length,i=0;return new Fe(function(){if(i===n)return S();var o=e?n-++i:i++;return z(t,o,r[o])})},e}($e),nr=function(t){function e(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return this._object.hasOwnProperty(t)},e.prototype.__iterate=function(t,e){for(var r=this,n=this._object,i=this._keys,o=i.length,u=0;u!==o;){var s=i[e?o-++u:u++];if(t(n[s],s,r)===!1)break}return u},e.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length,o=0;return new Fe(function(){if(o===i)return S();var u=n[e?i-++o:o++] | ||
;return z(t,u,r[u])})},e}(Ze);nr.prototype[Te]=!0;var ir,or,ur=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){var r=this;if(e)return this.cacheResult().__iterate(t,e);var n=this._collection,i=O(n),o=0;if(b(i))for(var u;!(u=i.next()).done&&t(u.value,o++,r)!==!1;);return o},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._collection,n=O(r);if(!b(n))return new Fe(S);var i=0;return new Fe(function(){var e=n.next();return e.done?e:z(t,i++,e.value)})},e}($e),sr=function(t){function e(t){this._iterator=t,this._iteratorCache=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){var r=this;if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(t(i[o],o++,r)===!1)return o;for(var u;!(u=n.next()).done;){var s=u.value;if(i[o]=s,t(s,o++,r)===!1)break}return o},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new Fe(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return z(t,i,n[i++])})},e}($e),ar="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(t,e){t|=0,e|=0;var r=65535&t,n=65535&e;return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0},cr=Object.isExtensible,hr=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),fr="function"==typeof WeakMap;fr&&(or=new WeakMap);var pr=0,_r="__immutablehash__";"function"==typeof Symbol&&(_r=Symbol(_r));var lr=16,vr=255,yr=0,dr={},gr=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)}, | ||
e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=Y(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var r=this,n=H(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e,n){return t(e,n,r)},e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(Ze);gr.prototype[Te]=!0;var mr=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this,n=0;return e&&o(this),this._iter.__iterate(function(i){return t(i,e?r.size-++n:n++,r)},e)},e.prototype.__iterator=function(t,e){var r=this,n=this._iter.__iterator(Ve,e),i=0;return e&&o(this),new Fe(function(){var o=n.next();return o.done?o:z(t,e?r.size-++i:i++,o.value,o)})},e}($e),wr=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(Ve,e);return new Fe(function(){var e=r.next();return e.done?e:z(t,e.value,e.value,e)})},e}(tr),zr=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){ct(e);var n=l(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},e.prototype.__iterator=function(t,e){ | ||
var r=this._iter.__iterator(Ve,e);return new Fe(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){ct(n);var i=l(n);return z(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},e}(Ze);mr.prototype.cacheResult=gr.prototype.cacheResult=wr.prototype.cacheResult=zr.prototype.cacheResult=pt;var Sr=function(t){function e(e){return null===e||void 0===e?St():gt(e)&&!g(e)?e:St().withMutations(function(r){var n=t(e);yt(n.size),n.forEach(function(t,e){return r.set(e,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return St().withMutations(function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}})},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return It(this,t,e)},e.prototype.setIn=function(t,e){return this.updateIn(t,ke,function(){return e})},e.prototype.remove=function(t){return It(this,t,ke)},e.prototype.deleteIn=function(t){if(t=[].concat(lt(t)),t.length){var e=t.pop();return this.updateIn(t,function(t){return t&&t.remove(e)})}},e.prototype.deleteAll=function(t){var e=We(t);return 0===e.size?this:this.withMutations(function(t){e.forEach(function(e){return t.remove(e)})})},e.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},e.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=Rt(this,lt(t),0,e,r);return n===ke?e:n},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):St()},e.prototype.merge=function(){return xt(this,void 0,arguments)},e.prototype.mergeWith=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return xt(this,t,e)},e.prototype.mergeIn=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1] | ||
;return this.updateIn(t,St(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},e.prototype.mergeDeep=function(){return xt(this,jt,arguments)},e.prototype.mergeDeepWith=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return xt(this,kt(t),e)},e.prototype.mergeDeepIn=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return this.updateIn(t,St(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},e.prototype.sort=function(t){return Br(it(this,t))},e.prototype.sortBy=function(t,e){return Br(it(this,e,t))},e.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},e.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new n)},e.prototype.asImmutable=function(){return this.__ensureOwner()},e.prototype.wasAltered=function(){return this.__altered},e.prototype.__iterator=function(t,e){return new jr(this,t,e)},e.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?zt(this.size,this._root,t,this.__hash):0===this.size?St():(this.__ownerID=t,this.__altered=!1,this)},e}(Be);Sr.isMap=gt;var Ir="@@__IMMUTABLE_MAP__@@",br=Sr.prototype;br[Ir]=!0,br.delete=br.remove,br.removeIn=br.deleteIn,br.removeAll=br.deleteAll,br["@@transducer/init"]=br.asMutable,br["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},br["@@transducer/result"]=function(t){return t.asImmutable()};var Or=function(t,e){this.ownerID=t,this.entries=e};Or.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(R(r,i[o][0]))return i[o][1];return n},Or.prototype.update=function(t,e,n,o,u,s,a){for(var c=u===ke,h=this.entries,f=0,p=h.length;f<p&&!R(o,h[f][0]);f++);var _=f<p;if(_?h[f][1]===u:c)return this;if(r(a),(c||!_)&&r(s),!c||1!==h.length){if(!_&&!c&&h.length>=kr)return Dt(t,h,o,u) | ||
;var l=t&&t===this.ownerID,v=l?h:i(h);return _?c?f===p-1?v.pop():v[f]=v.pop():v[f]=[o,u]:v.push([o,u]),l?(this.entries=v,this):new Or(t,v)}};var Mr=function(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r};Mr.prototype.get=function(t,e,r,n){void 0===e&&(e=W(r));var i=1<<((0===t?e:e>>>t)&je),o=this.bitmap;return 0==(o&i)?n:this.nodes[Ut(o&i-1)].get(t+Ee,e,r,n)},Mr.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=W(n));var s=(0===e?r:r>>>e)&je,a=1<<s,c=this.bitmap,h=0!=(c&a);if(!h&&i===ke)return this;var f=Ut(c&a-1),p=this.nodes,_=h?p[f]:void 0,l=bt(_,t,e+Ee,r,n,i,o,u);if(l===_)return this;if(!h&&l&&p.length>=Ar)return Et(t,p,c,s,l);if(h&&!l&&2===p.length&&Ot(p[1^f]))return p[1^f];if(h&&l&&1===p.length&&Ot(l))return l;var v=t&&t===this.ownerID,y=h?l?c:c^a:c|a,d=h?l?Kt(p,f,l,v):Tt(p,f,v):Lt(p,f,l,v);return v?(this.bitmap=y,this.nodes=d,this):new Mr(t,y,d)};var Dr=function(t,e,r){this.ownerID=t,this.count=e,this.nodes=r};Dr.prototype.get=function(t,e,r,n){void 0===e&&(e=W(r));var i=(0===t?e:e>>>t)&je,o=this.nodes[i];return o?o.get(t+Ee,e,r,n):n},Dr.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=W(n));var s=(0===e?r:r>>>e)&je,a=i===ke,c=this.nodes,h=c[s];if(a&&!h)return this;var f=bt(h,t,e+Ee,r,n,i,o,u);if(f===h)return this;var p=this.count;if(h){if(!f&&--p<Rr)return qt(t,c,p,s)}else p++;var _=t&&t===this.ownerID,l=Kt(c,s,f,_);return _?(this.count=p,this.nodes=l,this):new Dr(t,p,l)};var qr=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r};qr.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(R(r,i[o][0]))return i[o][1];return n},qr.prototype.update=function(t,e,n,o,u,s,a){void 0===n&&(n=W(o));var c=u===ke;if(n!==this.keyHash)return c?this:(r(a),r(s),Mt(this,t,e,n,[o,u]));for(var h=this.entries,f=0,p=h.length;f<p&&!R(o,h[f][0]);f++);var _=f<p;if(_?h[f][1]===u:c)return this;if(r(a),(c||!_)&&r(s),c&&2===p)return new Er(t,this.keyHash,h[1^f]);var l=t&&t===this.ownerID,v=l?h:i(h);return _?c?f===p-1?v.pop():v[f]=v.pop():v[f]=[o,u]:v.push([o,u]),l?(this.entries=v, | ||
this):new qr(t,this.keyHash,v)};var Er=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r};Er.prototype.get=function(t,e,r,n){return R(r,this.entry[0])?this.entry[1]:n},Er.prototype.update=function(t,e,n,i,o,u,s){var a=o===ke,c=R(i,this.entry[0]);return(c?o===this.entry[1]:a)?this:(r(s),a?void r(u):c?t&&t===this.ownerID?(this.entry[1]=o,this):new Er(t,this.keyHash,[i,o]):(r(u),Mt(this,t,e,W(i),[i,o])))},Or.prototype.iterate=qr.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(t(r[e?i-n:n])===!1)return!1},Mr.prototype.iterate=Dr.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&o.iterate(t,e)===!1)return!1}},Er.prototype.iterate=function(t,e){return t(this.entry)};var xr,jr=function(t){function e(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&wt(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this,e=this._type,r=this._stack;r;){var n=r.node,i=r.index++,o=void 0;if(n.entry){if(0===i)return mt(e,n.entry)}else if(n.entries){if(o=n.entries.length-1,i<=o)return mt(e,n.entries[t._reverse?o-i:i])}else if(o=n.nodes.length-1,i<=o){var u=n.nodes[t._reverse?o-i:i];if(u){if(u.entry)return mt(e,u.entry);r=t._stack=wt(u,r)}continue}r=t._stack=t._stack.__prev}return S()},e}(Fe),kr=xe/4,Ar=xe/2,Rr=xe/4,Ur=function(t){function e(e){var r=Jt();if(null===e||void 0===e)return r;if(Ct(e))return e;var n=t(e),i=n.size;return 0===i?r:(yt(i),i>0&&i<xe?Bt(0,i,Ee,null,new Tr(n.toArray())):r.withMutations(function(t){t.setSize(i),n.forEach(function(e,r){return t.set(r,e)})}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=u(this,t))>=0&&t<this.size){t+=this._origin;var r=Ht(this,t);return r&&r.array[t&je]}return e},e.prototype.set=function(t,e){ | ||
return Pt(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Ee,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Jt()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){Yt(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},e.prototype.pop=function(){return Yt(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Yt(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},e.prototype.shift=function(){return Yt(this,1)},e.prototype.merge=function(){return Qt(this,void 0,arguments)},e.prototype.mergeWith=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Qt(this,t,e)},e.prototype.mergeDeep=function(){return Qt(this,jt,arguments)},e.prototype.mergeDeepWith=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Qt(this,kt(t),e)},e.prototype.setSize=function(t){return Yt(this,0,t)},e.prototype.slice=function(t,e){var r=this.size;return a(t,e,r)?this:Yt(this,c(t,r),h(e,r))},e.prototype.__iterator=function(t,e){var r=e?this.size:0,n=Wt(this,e);return new Fe(function(){var i=n();return i===Wr?S():z(t,e?--r:r++,i)})},e.prototype.__iterate=function(t,e){for(var r,n=this,i=e?this.size:0,o=Wt(this,e);(r=o())!==Wr&&t(r,e?--i:i++,n)!==!1;);return i},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Bt(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?Jt():(this.__ownerID=t,this)},e}(Je);Ur.isList=Ct;var Kr="@@__IMMUTABLE_LIST__@@",Lr=Ur.prototype;Lr[Kr]=!0,Lr.delete=Lr.remove,Lr.setIn=br.setIn,Lr.deleteIn=Lr.removeIn=br.removeIn,Lr.update=br.update,Lr.updateIn=br.updateIn,Lr.mergeIn=br.mergeIn,Lr.mergeDeepIn=br.mergeDeepIn, | ||
Lr.withMutations=br.withMutations,Lr.asMutable=br.asMutable,Lr.asImmutable=br.asImmutable,Lr.wasAltered=br.wasAltered,Lr["@@transducer/init"]=Lr.asMutable,Lr["@@transducer/step"]=function(t,e){return t.push(e)},Lr["@@transducer/result"]=br["@@transducer/result"];var Tr=function(t,e){this.array=t,this.ownerID=e};Tr.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&je;if(n>=this.array.length)return new Tr([],t);var i,o=0===n;if(e>0){var u=this.array[n];if((i=u&&u.removeBefore(t,e-Ee,r))===u&&o)return this}if(o&&!i)return this;var s=Vt(this,t);if(!o)for(var a=0;a<n;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},Tr.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n=r-1>>>e&je;if(n>=this.array.length)return this;var i;if(e>0){var o=this.array[n];if((i=o&&o.removeAfter(t,e-Ee,r))===o&&n===this.array.length-1)return this}var u=Vt(this,t);return u.array.splice(n+1),i&&(u.array[n]=i),u};var Cr,Wr={},Br=function(t){function e(t){return null===t||void 0===t?Zt():Ft(t)?t:Zt().withMutations(function(e){var r=Be(t);yt(r.size),r.forEach(function(t,r){return e.set(r,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Zt()},e.prototype.set=function(t,e){return $t(this,t,e)},e.prototype.remove=function(t){return $t(this,t,ke)},e.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},e.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){ | ||
if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?Gt(e,r,t,this.__hash):0===this.size?Zt():(this.__ownerID=t,this._map=e,this._list=r,this)},e}(Sr);Br.isOrderedMap=Ft,Br.prototype[Te]=!0,Br.prototype.delete=Br.prototype.remove;var Jr,Pr=function(t){function e(t){return null===t||void 0===t?re():te(t)?t:re().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var r=this._head;for(t=u(this,t);r&&t--;)r=r.next;return r?r.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,r=this._head,n=arguments.length-1;n>=0;n--)r={value:t[n],next:r};return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):ee(e,r)},e.prototype.pushAll=function(e){if(e=t(e),0===e.size)return this;if(0===this.size&&te(e))return e;yt(e.size);var r=this.size,n=this._head;return e.__iterate(function(t){r++,n={value:t,next:n}},!0),this.__ownerID?(this.size=r,this._head=n,this.__hash=void 0,this.__altered=!0,this):ee(r,n)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):re()},e.prototype.slice=function(e,r){if(a(e,r,this.size))return this;var n=c(e,this.size);if(h(r,this.size)!==this.size)return t.prototype.slice.call(this,e,r);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):ee(i,o)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?ee(this.size,this._head,t,this.__hash):0===this.size?re():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var r=this | ||
;if(e)return new rr(this.toArray()).__iterate(function(e,n){return t(e,n,r)},e);for(var n=0,i=this._head;i&&t(i.value,n++,r)!==!1;)i=i.next;return n},e.prototype.__iterator=function(t,e){if(e)return new rr(this.toArray()).__iterator(t,e);var r=0,n=this._head;return new Fe(function(){if(n){var e=n.value;return n=n.next,z(t,r++,e)}return S()})},e}(Je);Pr.isStack=te;var Nr="@@__IMMUTABLE_STACK__@@",Vr=Pr.prototype;Vr[Nr]=!0,Vr.withMutations=br.withMutations,Vr.asMutable=br.asMutable,Vr.asImmutable=br.asImmutable,Vr.wasAltered=br.wasAltered,Vr.shift=Vr.pop,Vr.unshift=Vr.push,Vr.unshiftAll=Vr.pushAll,Vr["@@transducer/init"]=Vr.asMutable,Vr["@@transducer/step"]=function(t,e){return t.unshift(e)},Vr["@@transducer/result"]=br["@@transducer/result"];var Hr,Yr=function(t){function e(e){return null===e||void 0===e?ae():oe(e)&&!g(e)?e:ae().withMutations(function(r){var n=t(e);yt(n.size),n.forEach(function(t){return r.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(Be(t).keySeq())},e.intersect=function(t){return t=We(t).toArray(),t.length?Xr.intersect.apply(e(t.pop()),t):ae()},e.union=function(t){return t=We(t).toArray(),t.length?Xr.union.apply(e(t.pop()),t):ae()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return ue(this,this._map.set(t,!0))},e.prototype.remove=function(t){return ue(this,this._map.remove(t))},e.prototype.clear=function(){return ue(this,this._map.clear())},e.prototype.union=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return e=e.filter(function(t){return 0!==t.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(r){for(var n=0;n<e.length;n++)t(e[n]).forEach(function(t){return r.add(t)})}):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r] | ||
;if(0===e.length)return this;e=e.map(function(e){return t(e)});var n=[];return this.forEach(function(t){e.every(function(e){return e.includes(t)})||n.push(t)}),this.withMutations(function(t){n.forEach(function(e){t.remove(e)})})},e.prototype.subtract=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(0===t.length)return this;var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(t){r.forEach(function(e){t.remove(e)})})},e.prototype.merge=function(){return this.union.apply(this,arguments)},e.prototype.mergeWith=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return this.union.apply(this,e)},e.prototype.sort=function(t){return rn(it(this,t))},e.prototype.sortBy=function(t,e){return rn(it(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},e.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?ae():(this.__ownerID=t,this._map=e,this)},e}(Pe);Yr.isSet=oe;var Qr="@@__IMMUTABLE_SET__@@",Xr=Yr.prototype;Xr[Qr]=!0,Xr.delete=Xr.remove,Xr.mergeDeep=Xr.merge,Xr.mergeDeepWith=Xr.mergeWith,Xr.withMutations=br.withMutations,Xr.asMutable=br.asMutable,Xr.asImmutable=br.asImmutable,Xr["@@transducer/init"]=Xr.asMutable,Xr["@@transducer/step"]=function(t,e){return t.add(e)},Xr["@@transducer/result"]=br["@@transducer/result"],Xr.__empty=ae,Xr.__make=se;var Fr,Gr,Zr=function(t){function e(t,r,n){if(!(this instanceof e))return new e(t,r,n);if(vt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===r&&(r=1/0),n=void 0===n?1:Math.abs(n),r<t&&(n=-n),this._start=t,this._end=r,this._step=n,0===(this.size=Math.max(0,Math.ceil((r-t)/n-1)+1))){if(Gr)return Gr;Gr=this}}return t&&(e.__proto__=t), | ||
e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+u(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,r){return a(t,r,this.size)?this:(t=c(t,this.size),r=h(r,this.size),r<=t?new e(0,0):new e(this.get(t,this._end),this.get(r,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var r=this,n=this.size,i=this._step,o=e?this._start+(n-1)*i:this._start,u=0;u!==n&&t(o,e?n-++u:u++,r)!==!1;)o+=e?-i:i;return u},e.prototype.__iterator=function(t,e){var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;return new Fe(function(){if(o===r)return S();var u=i;return i+=e?-n:n,z(t,e?r-++o:o++,u)})},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:ne(this,t)},e}($e);We.isIterable=l,We.isKeyed=v,We.isIndexed=y,We.isAssociative=d,We.isOrdered=g,We.Iterator=Fe,ie(We,{toArray:function(){yt(this.size);var t=Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new mr(this)},toJS:function(){return this.toSeq().map(pe).toJSON()},toKeyedSeq:function(){return new gr(this,!0)},toMap:function(){return Sr(this.toKeyedSeq())},toObject:function(){yt(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return Br(this.toKeyedSeq())},toOrderedSet:function(){return rn(v(this)?this.valueSeq():this)},toSet:function(){return Yr(v(this)?this.valueSeq():this)},toSetSeq:function(){return new wr(this)},toSeq:function(){ | ||
return y(this)?this.toIndexedSeq():v(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Pr(v(this)?this.valueSeq():this)},toList:function(){return Ur(v(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return at(this,tt(this,t))},includes:function(t){return this.some(function(e){return R(e,t)})},entries:function(){return this.__iterator(He)},every:function(t,e){yt(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1}),r},filter:function(t,e){return at(this,Q(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return yt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){yt(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!==n&&void 0!==n?""+n:""}),e},keys:function(){return this.__iterator(Ne)},map:function(t,e){return at(this,H(this,t,e))},reduce:function(t,e,r){return ce(this,t,e,r,arguments.length<2,!1)},reduceRight:function(t,e,r){return ce(this,t,e,r,arguments.length<2,!0)},reverse:function(){return at(this,Y(this,!0))},slice:function(t,e){return at(this,G(this,t,e,!0))},some:function(t,e){return!this.every(_e(t),e)},sort:function(t){return at(this,it(this,t))},values:function(){return this.__iterator(Ve)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return o(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return X(this,t,e)},equals:function(t){return ne(this,t)},entrySeq:function(){var t=this;if(t._cache)return new rr(t._cache);var e=t.toSeq().map(fe).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e.toJS=function(){return this.map(function(t){return[pe(t[0]),pe(t[1])]}).toJSON()},e},filterNot:function(t,e){ | ||
return this.filter(_e(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(s)},flatMap:function(t,e){return at(this,rt(this,t,e))},flatten:function(t){return at(this,et(this,t,!0))},fromEntrySeq:function(){return new zr(this)},get:function(t,e){return this.find(function(e,r){return R(r,t)},void 0,e)},getIn:function(t,e){return ze(this,e,t,!0)},groupBy:function(t,e){return F(this,t,e)},has:function(t){return this.get(t,ke)!==ke},hasIn:function(t){return ze(this,ke,t,!1)!==ke},isSubset:function(t){return t="function"==typeof t.includes?t:We(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:We(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(e){return R(e,t)})},keySeq:function(){return this.toSeq().map(he).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return ot(this,t)},maxBy:function(t,e){return ot(this,e,t)},min:function(t){return ot(this,t?le(t):ye)},minBy:function(t,e){return ot(this,e?le(e):ye,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return at(this,$(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(_e(t),e)},sortBy:function(t,e){return at(this,it(this,e,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,e){return at(this,Z(this,t,e))},takeUntil:function(t,e){ | ||
return this.takeWhile(_e(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=de(this))}});var $r=We.prototype;$r[Ue]=!0,$r[Xe]=$r.values,$r.toJSON=$r.toArray,$r.__toStringMapper=dt,$r.inspect=$r.toSource=function(){return""+this},$r.chain=$r.flatMap,$r.contains=$r.includes,ie(Be,{flip:function(){return at(this,V(this))},mapEntries:function(t,e){var r=this,n=0;return at(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return at(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var tn=Be.prototype;tn[Ke]=!0,tn[Xe]=$r.entries,tn.toJSON=$r.toObject,tn.__toStringMapper=function(t,e){return dt(e)+": "+dt(t)},ie(Je,{toKeyedSeq:function(){return new gr(this,!1)},filter:function(t,e){return at(this,Q(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return at(this,Y(this,!1))},slice:function(t,e){return at(this,G(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(e||0,0),0===r||2===r&&!e)return this;t=c(t,t<0?this.count():this.size);var n=this.slice(0,t);return at(this,1===r?n:n.concat(i(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(t){return at(this,et(this,t,!1))},get:function(t,e){return t=u(this,t),t<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return(t=u(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return at(this,nt(this,t))},interleave:function(){var t=[this].concat(i(arguments)),e=st(this.toSeq(),$e.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),at(this,r)}, | ||
keySeq:function(){return Zr(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return at(this,$(this,t,e,!1))},zip:function(){return at(this,st(this,ve,[this].concat(i(arguments))))},zipAll:function(){return at(this,st(this,ve,[this].concat(i(arguments)),!0))},zipWith:function(t){var e=i(arguments);return e[0]=this,at(this,st(this,t,e))}});var en=Je.prototype;en[Le]=!0,en[Te]=!0,ie(Pe,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),Pe.prototype.has=$r.includes,Pe.prototype.contains=Pe.prototype.includes,ie(Ze,Be.prototype),ie($e,Je.prototype),ie(tr,Pe.prototype);var rn=function(t){function e(t){return null===t||void 0===t?be():Se(t)?t:be().withMutations(function(e){var r=Pe(t);yt(r.size),r.forEach(function(t){return e.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(Be(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Yr);rn.isOrderedSet=Se;var nn=rn.prototype;nn[Te]=!0,nn.zip=en.zip,nn.zipWith=en.zipWith,nn.__empty=be,nn.__make=Ie;var on,un=function(t,e){var r,n=function(o){var u=this;if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var s=Object.keys(t),a=i._indices={};i._name=e,i._keys=s,i._defaultValues=t;for(var c=0;c<s.length;c++){var h=s[c];a[h]=c,i[h]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+Me(u)+' with property "'+h+'" since that property name is part of the Record API.'):qe(i,h)}}this.__ownerID=void 0,this._values=Ur().withMutations(function(t){t.setSize(u._keys.length),Be(o).forEach(function(e,r){t.set(u._indices[r],e===u._defaultValues[r]?void 0:e)})})},i=n.prototype=Object.create(sn);return i.constructor=n,n};un.prototype.toString=function(){for(var t,e=this,r=Me(this)+" { ",n=this._keys,i=0,o=n.length;i!==o;i++)t=n[i],r+=(i?", ":"")+t+": "+dt(e.get(t));return r+" }"}, | ||
un.prototype.equals=function(t){return this===t||t&&this._keys===t._keys&&De(this).equals(De(t))},un.prototype.hashCode=function(){return De(this).hashCode()},un.prototype.has=function(t){return this._indices.hasOwnProperty(t)},un.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._indices[t],n=this._values.get(r);return void 0===n?this._defaultValues[t]:n},un.prototype.set=function(t,e){if(this.has(t)){var r=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(r!==this._values&&!this.__ownerID)return Oe(this,r)}return this},un.prototype.remove=function(t){return this.set(t)},un.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Oe(this,t)},un.prototype.wasAltered=function(){return this._values.wasAltered()},un.prototype.toSeq=function(){return De(this)},un.prototype.toJS=function(){return De(this).toJS()},un.prototype.__iterator=function(t,e){return De(this).__iterator(t,e)},un.prototype.__iterate=function(t,e){return De(this).__iterate(t,e)},un.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?Oe(this,e,t):(this.__ownerID=t,this._values=e,this)},un.isRecord=m,un.getDescriptiveName=Me;var sn=un.prototype;sn[Ce]=!0,sn.delete=sn.remove,sn.deleteIn=sn.removeIn=br.removeIn,sn.getIn=$r.getIn,sn.hasIn=$r.hasIn,sn.merge=br.merge,sn.mergeWith=br.mergeWith,sn.mergeIn=br.mergeIn,sn.mergeDeep=br.mergeDeep,sn.mergeDeepWith=br.mergeDeepWith,sn.mergeDeepIn=br.mergeDeepIn,sn.setIn=br.setIn,sn.update=br.update,sn.updateIn=br.updateIn,sn.withMutations=br.withMutations,sn.asMutable=br.asMutable,sn.asImmutable=br.asImmutable,sn[Xe]=$r.entries,sn.toJSON=sn.toObject=$r.toObject,sn.inspect=sn.toSource=$r.toSource;var an,cn=function(t){function e(t,r){if(!(this instanceof e))return new e(t,r);if(this._value=t,0===(this.size=void 0===r?1/0:Math.max(0,r))){if(an)return an;an=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e, | ||
e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return R(this._value,t)},e.prototype.slice=function(t,r){var n=this.size;return a(t,r,n)?this:new e(this._value,h(r,n)-c(t,n))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return R(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return R(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var r=this,n=this.size,i=0;i!==n&&t(r._value,e?n-++i:i++,r)!==!1;);return i},e.prototype.__iterator=function(t,e){var r=this,n=this.size,i=0;return new Fe(function(){return i===n?S():z(t,e?n-++i:i++,r._value)})},e.prototype.equals=function(t){return t instanceof e?R(this._value,t._value):ne(t)},e}($e),hn={Collection:We,Iterable:We,Seq:Ge,Map:Sr,OrderedMap:Br,List:Ur,Stack:Pr,Set:Yr,OrderedSet:rn,Record:un,Range:Zr,Repeat:cn,is:R,fromJS:U,hash:W,isImmutable:_,isCollection:l,isKeyed:v,isIndexed:y,isAssociative:d,isOrdered:g,isValueObject:w},fn=We;t.default=hn,t.Collection=We,t.Iterable=fn,t.Seq=Ge,t.Map=Sr,t.OrderedMap=Br,t.List=Ur,t.Stack=Pr,t.Set=Yr,t.OrderedSet=rn,t.Record=un,t.Range=Zr,t.Repeat=cn,t.is=R,t.fromJS=U,t.hash=W,t.isImmutable=_,t.isCollection=l,t.isKeyed=v,t.isIndexed=y,t.isAssociative=d,t.isOrdered=g,t.isValueObject=w,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.Immutable={})}(this,function(t){"use strict";function e(t){return t.value=!1,t}function r(t){t&&(t.value=!0)}function n(){}function i(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function o(t){return void 0===t.size&&(t.size=t.__iterate(s)),t.size}function u(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?o(t)+e:e}function s(){return!0}function a(t,e,r){return(0===t&&!p(t)||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function c(t,e){return f(t,e,0)}function h(t,e){return f(t,e,e)}function f(t,e,r){return void 0===t?r:p(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function p(t){return t<0||0===t&&1/t==-(1/0)}function _(t){return(l(t)||m(t))&&!t.__ownerID}function l(t){return!(!t||!t[Re])}function v(t){return!(!t||!t[Ue])}function y(t){return!(!t||!t[Ke])}function d(t){return v(t)||y(t)}function g(t){return!(!t||!t[Le])}function m(t){return!(!t||!t[Te])}function w(t){return!(!t||"function"!=typeof t.equals||"function"!=typeof t.hashCode)}function S(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function z(){return{value:void 0,done:!0}}function I(t){return!!M(t)}function b(t){return t&&"function"==typeof t.next}function O(t){var e=M(t);return e&&e.call(t)}function M(t){var e=t&&(He&&t[He]||t[Ye]);if("function"==typeof e)return e}function q(t){return t&&"number"==typeof t.length}function D(t){return!(!t||!t[tr])}function E(){return nr||(nr=new er([]))}function x(t){var e=Array.isArray(t)?new er(t):b(t)?new ur(t):I(t)?new or(t):void 0;if(e)return e.fromEntrySeq();if("object"==typeof t)return new rr(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function j(t){var e=A(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function k(t){ | ||
var e=A(t);if(e)return e;if("object"==typeof t)return new rr(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}function A(t){return q(t)?new er(t):b(t)?new ur(t):I(t)?new or(t):void 0}function R(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!!(w(t)&&w(e)&&t.equals(e))}function U(t){return t>>>1&1073741824|3221225471&t}function K(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&((t=t.valueOf())===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){if(t!==t||t===1/0)return 0;var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return U(r)}if("string"===e)return t.length>_r?L(t):T(t);if("function"==typeof t.hashCode)return U(t.hashCode());if("object"===e)return C(t);if("function"==typeof t.toString)return T(""+t);throw Error("Value type "+e+" cannot be hashed.")}function L(t){var e=yr[t];return void 0===e&&(e=T(t),vr===lr&&(vr=0,yr={}),vr++,yr[t]=e),e}function T(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return U(e)}function C(t){var e;if(hr&&void 0!==(e=ir.get(t)))return e;if(void 0!==(e=t[pr]))return e;if(!cr){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[pr]))return e;if(void 0!==(e=B(t)))return e}if(e=++fr,1073741824&fr&&(fr=0),hr)ir.set(t,e);else{if(void 0!==ar&&ar(t)===!1)throw Error("Non-extensible objects are not allowed as keys.");if(cr)Object.defineProperty(t,pr,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[pr]=e;else{if(void 0===t.nodeType)throw Error("Unable to set a non-enumerable property on object.");t[pr]=e}}return e}function B(t){ | ||
if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function W(t){var e=st(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=at,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return e(r,t,n)!==!1},r)},e.__iteratorUncached=function(e,r){if(e===Ve){var n=t.__iterator(e,r);return new Xe(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===Pe?Ne:Pe,r)},e}function J(t,e,r){var n=st(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,je);return o===je?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return n(e.call(r,t,i,u),i,o)!==!1},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(Ve,i);return new Xe(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return S(n,s,e.call(r,u[1],s,t),i)})},n}function N(t,e){var r=this,n=st(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=W(t);return e.reverse=function(){return t.flip()},e}),n.get=function(r,n){return t.get(e?r:-1-r,n)},n.has=function(r){return t.has(e?r:-1-r)},n.includes=function(e){return t.includes(e)},n.cacheResult=at,n.__iterate=function(r,n){var i=this,u=0;return n&&o(t),t.__iterate(function(t,o){return r(t,e?o:n?i.size-++u:u++,i)},!n)},n.__iterator=function(n,i){var u=0;i&&o(t);var s=t.__iterator(Ve,!i);return new Xe(function(){var t=s.next();if(t.done)return t;var o=t.value;return S(n,e?o[0]:i?r.size-++u:u++,o[1],t)})},n}function P(t,e,r,n){var i=st(t);return n&&(i.has=function(n){var i=t.get(n,je);return i!==je&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,je);return o!==je&&e.call(r,o,n,t)?o:i}), | ||
i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){if(e.call(r,t,o,a))return s++,i(t,n?o:s-1,u)},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(Ve,o),s=0;return new Xe(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,c=a[0],h=a[1];if(e.call(r,h,c,t))return S(i,n?c:s++,h,o)}})},i}function V(t,e,r){var n=Sr().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}function H(t,e,r){var n=v(t),i=(g(t)?Br():Sr()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return t=t||[],t.push(n?[u,o]:o),t})});var o=ut(t);return i.map(function(e){return it(t,o(e))})}function Y(t,e,r,n){var i=t.size;if(a(e,r,i))return t;var o=c(e,i),s=h(r,i);if(o!==o||s!==s)return Y(t.toSeq().cacheResult(),e,r,n);var f,p=s-o;p===p&&(f=p<0?0:p);var _=st(t);return _.size=0===f?f:t.size&&f||void 0,!n&&D(t)&&f>=0&&(_.get=function(e,r){return e=u(this,e),e>=0&&e<f?t.get(e+o,r):r}),_.__iterateUncached=function(e,r){var i=this;if(0===f)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,s=!0,a=0;return t.__iterate(function(t,r){if(!s||!(s=u++<o))return a++,e(t,n?r:a-1,i)!==!1&&a!==f}),a},_.__iteratorUncached=function(e,r){if(0!==f&&r)return this.cacheResult().__iterator(e,r);if(0===f)return new Xe(z);var i=t.__iterator(e,r),u=0,s=0;return new Xe(function(){for(;u++<o;)i.next();if(++s>f)return z();var t=i.next();return n||e===Pe||t.done?t:e===Ne?S(e,s-1,void 0,t):S(e,s-1,t.value[1],t)})},_}function Q(t,e,r){var n=st(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(Ve,i),s=!0;return new Xe(function(){if(!s)return z();var t=u.next();if(t.done)return t;var i=t.value,a=i[0],c=i[1];return e.call(r,c,a,o)?n===Ve?t:S(n,a,c,t):(s=!1,z())})},n} | ||
function X(t,e,r,n){var i=st(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate(function(t,o,c){if(!s||!(s=e.call(r,t,o,c)))return a++,i(t,n?o:a-1,u)}),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(Ve,o),a=!0,c=0;return new Xe(function(){var t,o,h;do{if(t=s.next(),t.done)return n||i===Pe?t:i===Ne?S(i,c++,void 0,t):S(i,c++,t.value[1],t);var f=t.value;o=f[0],h=f[1],a&&(a=e.call(r,h,o,u))}while(a);return i===Ve?t:S(i,o,h,t)})},i}function F(t,e){var r=v(t),n=[t].concat(e).map(function(t){return l(t)?r&&(t=Be(t)):t=r?x(t):j(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&v(i)||y(t)&&y(i))return i}var o=new er(n);return r?o=o.toKeyedSeq():y(t)||(o=o.toSetSeq()),o=o.flatten(!0),o.size=n.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),o}function G(t,e,r){var n=st(t);return n.__iterateUncached=function(i,o){function u(t,c){t.__iterate(function(t,o){return(!e||c<e)&&l(t)?u(t,c+1):(s++,i(t,r?o:s-1,n)===!1&&(a=!0)),!a},o)}if(o)return this.cacheResult().__iterate(i,o);var s=0,a=!1;return u(t,0),s},n.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var o=t.__iterator(n,i),u=[],s=0;return new Xe(function(){for(;o;){var t=o.next();if(t.done===!1){var a=t.value;if(n===Ve&&(a=a[1]),e&&!(u.length<e)||!l(a))return r?t:S(n,s++,a,t);u.push(o),o=a.__iterator(n,i)}else o=u.pop()}return z()})},n}function Z(t,e,r){var n=ut(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}function $(t,e){var r=st(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t){return(!o||r(e,o++,i)!==!1)&&r(t,o++,i)!==!1},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(Pe,n),u=0;return new Xe(function(){return(!i||u%2)&&(i=o.next(), | ||
i.done)?i:u%2?S(r,u++,e):S(r,u++,i.value,i)})},r}function tt(t,e,r){e||(e=ct);var n=v(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).valueSeq().toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?Ge(o):y(t)?Ze(o):$e(o)}function et(t,e,r){if(e||(e=ct),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return rt(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return rt(e,t,r)?r:t})}function rt(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(void 0===r||null===r||r!==r)||n>0}function nt(t,e,r,n){var i=st(t),o=new er(r).map(function(t){return t.size});return i.size=n?o.max():o.min(),i.__iterate=function(t,e){for(var r,n=this,i=this.__iterator(Pe,e),o=0;!(r=i.next()).done&&t(r.value,o++,n)!==!1;);return o},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=Ce(t),O(i?t.reverse():t)}),u=0,s=!1;return new Xe(function(){var r;return s||(r=o.map(function(t){return t.next()}),s=n?r.every(function(t){return t.done}):r.some(function(t){return t.done})),s?z():S(t,u++,e.apply(null,r.map(function(t){return t.value})))})},i}function it(t,e){return t===e?t:D(t)?e:t.constructor(e)}function ot(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function ut(t){return v(t)?Be:y(t)?We:Je}function st(t){return Object.create((v(t)?Ge:y(t)?Ze:$e).prototype)}function at(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Fe.prototype.cacheResult.call(this)}function ct(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function ht(t){if(q(t)&&"string"!=typeof t)return t;if(g(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}function ft(t,e){if(!t)throw Error(e)}function pt(t){ft(t!==1/0,"Cannot perform this action with an infinite size.")}function _t(t){try{return"string"==typeof t?JSON.stringify(t):t+""}catch(e){return JSON.stringify(t)}} | ||
function lt(t){return!(!t||!t[zr])}function vt(t,e){return S(t,e[0],e[1])}function yt(t,e){return{node:t,index:0,__prev:e}}function dt(t,e,r,n){var i=Object.create(Ir);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function gt(){return Er||(Er=dt(0))}function mt(t,r,n){var i,o;if(t._root){var u=e(ke),s=e(Ae);if(i=wt(t._root,t.__ownerID,0,void 0,r,n,u,s),!s.value)return t;o=t.size+(u.value?n===je?-1:1:0)}else{if(n===je)return t;o=1,i=new br(t.__ownerID,[[r,n]])}return t.__ownerID?(t.size=o,t._root=i,t.__hash=void 0,t.__altered=!0,t):i?dt(o,i):gt()}function wt(t,e,n,i,o,u,s,a){return t?t.update(e,n,i,o,u,s,a):u===je?t:(r(a),r(s),new Dr(e,i,[o,u]))}function St(t){return t.constructor===Dr||t.constructor===qr}function zt(t,e,r,n,i){if(t.keyHash===n)return new qr(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&xe,s=(0===r?n:n>>>r)&xe;return new Or(e,1<<u|1<<s,u===s?[zt(t,e,r+De,n,i)]:(o=new Dr(e,n,i),u<s?[t,o]:[o,t]))}function It(t,e,r,i){t||(t=new n);for(var o=new Dr(t,K(r),[r,i]),u=0;u<e.length;u++){var s=e[u];o=o.update(t,0,void 0,s[0],s[1])}return o}function bt(t,e,r,n){for(var i=0,o=0,u=Array(r),s=0,a=1,c=e.length;s<c;s++,a<<=1){var h=e[s];void 0!==h&&s!==n&&(i|=a,u[o++]=h)}return new Or(t,i,u)}function Ot(t,e,r,n,i){for(var o=0,u=Array(Ee),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new Mr(t,o+1,u)}function Mt(t,e,r){for(var n=[],i=0;i<r.length;i++)n.push(Be(r[i]));return Et(t,e,n)}function qt(t,e){return e}function Dt(t){return function(e,r,n){if(e&&r&&"object"==typeof r){if(e.mergeDeepWith)return e.mergeDeepWith(t,r);if(e.merge)return e.merge(r)}var i=t(e,r,n);return R(e,i)?e:i}}function Et(t,e,r){return r=r.filter(function(t){return 0!==t.size}),0===r.length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var n=e?function(r,n){t.update(n,je,function(t){return t===je?r:e(t,r,n)})}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)}):t.constructor(r[0])}function xt(t,e,r,n,i){var o=t===je;if(r===e.length){var u=o?n:t,s=i(u) | ||
;return s===u?t:s}if(!(o||t&&t.set))throw new TypeError("Invalid keyPath: Value at ["+e.slice(0,r).map(_t)+"] does not have a .set() method and cannot be updated: "+t);var a=e[r],c=o?je:t.get(a,je),h=xt(c,e,r+1,n,i);return h===c?t:h===je?t.remove(a):(o?gt():t).set(a,h)}function jt(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function kt(t,e,r,n){var o=n?t:i(t);return o[e]=r,o}function At(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=Array(i),u=0,s=0;s<i;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function Rt(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}function Ut(t){return!(!t||!t[Ur])}function Kt(t,e){function r(t,e,r){return 0===e?n(t,r):i(t,e,r)}function n(t,r){var n=r===s?a&&a.array:t&&t.array,i=r>o?0:o-r,c=u-r;return c>Ee&&(c=Ee),function(){if(i===c)return Cr;var t=e?--c:i++;return n&&n[t]}}function i(t,n,i){var s,a=t&&t.array,c=i>o?0:o-i>>n,h=1+(u-i>>n);return h>Ee&&(h=Ee),function(){for(;;){if(s){var t=s();if(t!==Cr)return t;s=null}if(c===h)return Cr;var o=e?--h:c++;s=r(a&&a[o],n-De,i+(o<<n))}}}var o=t._origin,u=t._capacity,s=Pt(u),a=t._tail;return r(t._root,t._level,0)}function Lt(t,e,r,n,i,o,u){var s=Object.create(Kr);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function Tt(){return Tr||(Tr=Lt(0,0,De))}function Ct(t,r,n){if((r=u(t,r))!==r)return t;if(r>=t.size||r<0)return t.withMutations(function(t){r<0?Nt(t,r).set(0,n):Nt(t,0,r+1).set(r,n)});r+=t._origin;var i=t._tail,o=t._root,s=e(Ae);return r>=Pt(t._capacity)?i=Bt(i,t.__ownerID,0,r,n,s):o=Bt(o,t.__ownerID,t._level,r,n,s),s.value?t.__ownerID?(t._root=o,t._tail=i,t.__hash=void 0,t.__altered=!0,t):Lt(t._origin,t._capacity,t._level,o,i):t}function Bt(t,e,n,i,o,u){var s=i>>>n&xe,a=t&&s<t.array.length;if(!a&&void 0===o)return t;var c;if(n>0){var h=t&&t.array[s],f=Bt(h,e,n-De,i,o,u);return f===h?t:(c=Wt(t,e),c.array[s]=f,c)} | ||
return a&&t.array[s]===o?t:(r(u),c=Wt(t,e),void 0===o&&s===c.array.length-1?c.array.pop():c.array[s]=o,c)}function Wt(t,e){return e&&t&&e===t.ownerID?t:new Lr(t?t.array.slice():[],e)}function Jt(t,e){if(e>=Pt(t._capacity))return t._tail;if(e<1<<t._level+De){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&xe],n-=De;return r}}function Nt(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var i=t.__ownerID||new n,o=t._origin,u=t._capacity,s=o+e,a=void 0===r?u:r<0?u+r:o+r;if(s===o&&a===u)return t;if(s>=a)return t.clear();for(var c=t._level,h=t._root,f=0;s+f<0;)h=new Lr(h&&h.array.length?[void 0,h]:[],i),c+=De,f+=1<<c;f&&(s+=f,o+=f,a+=f,u+=f);for(var p=Pt(u),_=Pt(a);_>=1<<c+De;)h=new Lr(h&&h.array.length?[h]:[],i),c+=De;var l=t._tail,v=_<p?Jt(t,a-1):_>p?new Lr([],i):l;if(l&&_>p&&s<u&&l.array.length){h=Wt(h,i);for(var y=h,d=c;d>De;d-=De){var g=p>>>d&xe;y=y.array[g]=Wt(y.array[g],i)}y.array[p>>>De&xe]=l}if(a<u&&(v=v&&v.removeAfter(i,0,a)),s>=_)s-=_,a-=_,c=De,h=null,v=v&&v.removeBefore(i,0,s);else if(s>o||_<p){for(f=0;h;){var m=s>>>c&xe;if(m!==_>>>c&xe)break;m&&(f+=(1<<c)*m),c-=De,h=h.array[m]}h&&s>o&&(h=h.removeBefore(i,c,s-f)),h&&_<p&&(h=h.removeAfter(i,c,_-f)),f&&(s-=f,a-=f)}return t.__ownerID?(t.size=a-s,t._origin=s,t._capacity=a,t._level=c,t._root=h,t._tail=v,t.__hash=void 0,t.__altered=!0,t):Lt(s,a,c,h,v)}function Pt(t){return t<Ee?0:t-1>>>De<<De}function Vt(t){return lt(t)&&g(t)}function Ht(t,e,r,n){var i=Object.create(Br.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function Yt(){return Wr||(Wr=Ht(gt(),Tt()))}function Qt(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===je){if(!a)return t;u.size>=Ee&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]) | ||
;return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):Ht(n,i)}function Xt(t){return!(!t||!t[Nr])}function Ft(t,e,r,n){var i=Object.create(Pr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Gt(){return Vr||(Vr=Ft(0))}function Zt(t,e){if(t===e)return!0;if(!l(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||v(t)!==v(e)||y(t)!==y(e)||g(t)!==g(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!d(t);if(g(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&R(i[1],t)&&(r||R(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var u=!0,s=e.__iterate(function(e,n){if(r?!t.has(e):i?!R(e,t.get(n,je)):!R(t.get(n,je),e))return u=!1,!1});return u&&t.size===s}function $t(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function te(t){return!(!t||!t[Yr])}function ee(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function re(t,e){var r=Object.create(Qr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function ne(){return Xr||(Xr=re(gt()))}function ie(t,e,r,n,i,o){return pt(t.size),t.__iterate(function(t,o,u){i?(i=!1,r=t):r=e.call(n,r,t,o,u)},o),r}function oe(t,e){return e}function ue(t,e){return[e,t]}function se(t){return t&&"function"==typeof t.toJS?t.toJS():t}function ae(t){return function(){return!t.apply(this,arguments)}}function ce(t){return function(){return-t.apply(this,arguments)}}function he(){return i(arguments)}function fe(t,e){return t<e?1:t>e?-1:0}function pe(t){if(t.size===1/0)return 0;var e=g(t),r=v(t),n=e?1:0;return _e(t.__iterate(r?e?function(t,e){n=31*n+le(K(t),K(e))|0}:function(t,e){n=n+le(K(t),K(e))|0}:e?function(t){n=31*n+K(t)|0}:function(t){n=n+K(t)|0}),n)}function _e(t,e){return e=sr(e,3432918353), | ||
e=sr(e<<15|e>>>-15,461845907),e=sr(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=sr(e^e>>>16,2246822507),e=sr(e^e>>>13,3266489909),e=U(e^e>>>16)}function le(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}function ve(t){if("object"!=typeof console||!console.warn)throw Error(t);console.warn(t)}function ye(t,e,r,n){for(var i=ht(r),o=0;o!==i.length;){if(!t||!t.get)return n&&ve("Invalid keyPath: Value at ["+i.slice(0,o).map(_t)+"] does not have a .get() method: "+t+"\nThis warning will throw in a future version"),e;if((t=t.get(i[o++],je))===je)return e}return t}function de(t){return te(t)&&g(t)}function ge(t,e){var r=Object.create(rn);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function me(){return nn||(nn=ge(Yt()))}function we(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._values=e,n.__ownerID=r,n}function Se(t){return t._name||t.constructor.name||"Record"}function ze(t){return x(t._keys.map(function(e){return[e,t.get(e)]}))}function Ie(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){ft(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}function be(t,e){return Oe([],e||Me,t,"",e&&e.length>2?[]:void 0,{"":t})}function Oe(t,e,r,n,i,o){var u=Array.isArray(r)?Ze:qe(r)?Ge:null;if(u){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),i&&""!==n&&i.push(n);var s=e.call(o,n,u(r).map(function(n,o){return Oe(t,e,n,o,i,r)}),i&&i.slice());return t.pop(),i&&i.pop(),s}return r}function Me(t,e){return v(e)?e.toMap():e.toList()}function qe(t){return t&&(t.constructor===Object||void 0===t.constructor)}var De=5,Ee=1<<De,xe=Ee-1,je={},ke={value:!1},Ae={value:!1},Re="@@__IMMUTABLE_ITERABLE__@@",Ue="@@__IMMUTABLE_KEYED__@@",Ke="@@__IMMUTABLE_INDEXED__@@",Le="@@__IMMUTABLE_ORDERED__@@",Te="@@__IMMUTABLE_RECORD__@@",Ce=function(t){return l(t)?t:Fe(t)},Be=function(t){function e(t){return v(t)?t:Ge(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ce),We=function(t){ | ||
function e(t){return y(t)?t:Ze(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ce),Je=function(t){function e(t){return l(t)&&!d(t)?t:$e(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ce);Ce.Keyed=Be,Ce.Indexed=We,Ce.Set=Je;var Ne=0,Pe=1,Ve=2,He="function"==typeof Symbol&&Symbol.iterator,Ye="@@iterator",Qe=He||Ye,Xe=function(t){this.next=t};Xe.prototype.toString=function(){return"[Iterator]"},Xe.KEYS=Ne,Xe.VALUES=Pe,Xe.ENTRIES=Ve,Xe.prototype.inspect=Xe.prototype.toSource=function(){return""+this},Xe.prototype[Qe]=function(){return this};var Fe=function(t){function e(t){return null===t||void 0===t?E():l(t)||m(t)?t.toSeq():k(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var r=this,n=this._cache;if(n){for(var i=n.length,o=0;o!==i;){var u=n[e?i-++o:o++];if(t(u[1],u[0],r)===!1)break}return o}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var r=this._cache;if(r){var n=r.length,i=0;return new Xe(function(){if(i===n)return z();var o=r[e?n-++i:i++];return S(t,o[0],o[1])})}return this.__iteratorUncached(t,e)},e}(Ce),Ge=function(t){function e(t){return null===t||void 0===t?E().toKeyedSeq():l(t)?v(t)?t.toSeq():t.fromEntrySeq():m(t)?t.toSeq():x(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(Fe),Ze=function(t){function e(t){return null===t||void 0===t?E():l(t)?v(t)?t.entrySeq():t.toIndexedSeq():m(t)?t.toSeq().entrySeq():j(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)}, | ||
e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(Fe),$e=function(t){function e(t){return(l(t)&&!d(t)?t:Ze(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(Fe);Fe.isSeq=D,Fe.Keyed=Ge,Fe.Set=$e,Fe.Indexed=Ze;var tr="@@__IMMUTABLE_SEQ__@@";Fe.prototype[tr]=!0;var er=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[u(this,t)]:e},e.prototype.__iterate=function(t,e){for(var r=this,n=this._array,i=n.length,o=0;o!==i;){var u=e?i-++o:o++;if(t(n[u],u,r)===!1)break}return o},e.prototype.__iterator=function(t,e){var r=this._array,n=r.length,i=0;return new Xe(function(){if(i===n)return z();var o=e?n-++i:i++;return S(t,o,r[o])})},e}(Ze),rr=function(t){function e(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return this._object.hasOwnProperty(t)},e.prototype.__iterate=function(t,e){for(var r=this,n=this._object,i=this._keys,o=i.length,u=0;u!==o;){var s=i[e?o-++u:u++];if(t(n[s],s,r)===!1)break}return u},e.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length,o=0;return new Xe(function(){if(o===i)return z();var u=n[e?i-++o:o++];return S(t,u,r[u])})},e}(Ge);rr.prototype[Le]=!0;var nr,ir,or=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){var r=this;if(e)return this.cacheResult().__iterate(t,e);var n=this._collection,i=O(n),o=0 | ||
;if(b(i))for(var u;!(u=i.next()).done&&t(u.value,o++,r)!==!1;);return o},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._collection,n=O(r);if(!b(n))return new Xe(z);var i=0;return new Xe(function(){var e=n.next();return e.done?e:S(t,i++,e.value)})},e}(Ze),ur=function(t){function e(t){this._iterator=t,this._iteratorCache=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){var r=this;if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(t(i[o],o++,r)===!1)return o;for(var u;!(u=n.next()).done;){var s=u.value;if(i[o]=s,t(s,o++,r)===!1)break}return o},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new Xe(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return S(t,i,n[i++])})},e}(Ze),sr="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(t,e){t|=0,e|=0;var r=65535&t,n=65535&e;return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0},ar=Object.isExtensible,cr=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),hr="function"==typeof WeakMap;hr&&(ir=new WeakMap);var fr=0,pr="__immutablehash__";"function"==typeof Symbol&&(pr=Symbol(pr));var _r=16,lr=255,vr=0,yr={},dr=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=N(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var r=this,n=J(this,t,e);return this._useKeys||(n.valueSeq=function(){ | ||
return r._iter.toSeq().map(t,e)}),n},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e,n){return t(e,n,r)},e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(Ge);dr.prototype[Le]=!0;var gr=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this,n=0;return e&&o(this),this._iter.__iterate(function(i){return t(i,e?r.size-++n:n++,r)},e)},e.prototype.__iterator=function(t,e){var r=this,n=this._iter.__iterator(Pe,e),i=0;return e&&o(this),new Xe(function(){var o=n.next();return o.done?o:S(t,e?r.size-++i:i++,o.value,o)})},e}(Ze),mr=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(Pe,e);return new Xe(function(){var e=r.next();return e.done?e:S(t,e.value,e.value,e)})},e}($e),wr=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){ot(e);var n=l(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(Pe,e);return new Xe(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){ot(n);var i=l(n);return S(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},e}(Ge);gr.prototype.cacheResult=dr.prototype.cacheResult=mr.prototype.cacheResult=wr.prototype.cacheResult=at;var Sr=function(t){function e(e){ | ||
return null===e||void 0===e?gt():lt(e)&&!g(e)?e:gt().withMutations(function(r){var n=t(e);pt(n.size),n.forEach(function(t,e){return r.set(e,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return gt().withMutations(function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}})},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return mt(this,t,e)},e.prototype.setIn=function(t,e){return this.updateIn(t,je,function(){return e})},e.prototype.remove=function(t){return mt(this,t,je)},e.prototype.deleteIn=function(t){if(t=[].concat(ht(t)),t.length){var e=t.pop();return this.updateIn(t,function(t){return t&&t.remove(e)})}},e.prototype.deleteAll=function(t){var e=Ce(t);return 0===e.size?this:this.withMutations(function(t){e.forEach(function(e){return t.remove(e)})})},e.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},e.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=xt(this,ht(t),0,e,r);return n===je?e:n},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):gt()},e.prototype.merge=function(){return Mt(this,void 0,arguments)},e.prototype.mergeWith=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Mt(this,t,e)},e.prototype.mergeIn=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return this.updateIn(t,gt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},e.prototype.mergeDeep=function(){return Mt(this,Dt(qt),arguments)},e.prototype.mergeDeepWith=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Mt(this,Dt(t),e)},e.prototype.mergeDeepIn=function(t){ | ||
for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return this.updateIn(t,gt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},e.prototype.sort=function(t){return Br(tt(this,t))},e.prototype.sortBy=function(t,e){return Br(tt(this,e,t))},e.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},e.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new n)},e.prototype.asImmutable=function(){return this.__ensureOwner()},e.prototype.wasAltered=function(){return this.__altered},e.prototype.__iterator=function(t,e){return new xr(this,t,e)},e.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?dt(this.size,this._root,t,this.__hash):0===this.size?gt():(this.__ownerID=t,this.__altered=!1,this)},e}(Be);Sr.isMap=lt;var zr="@@__IMMUTABLE_MAP__@@",Ir=Sr.prototype;Ir[zr]=!0,Ir.delete=Ir.remove,Ir.removeIn=Ir.deleteIn,Ir.removeAll=Ir.deleteAll,Ir["@@transducer/init"]=Ir.asMutable,Ir["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},Ir["@@transducer/result"]=function(t){return t.asImmutable()};var br=function(t,e){this.ownerID=t,this.entries=e};br.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(R(r,i[o][0]))return i[o][1];return n},br.prototype.update=function(t,e,n,o,u,s,a){for(var c=u===je,h=this.entries,f=0,p=h.length;f<p&&!R(o,h[f][0]);f++);var _=f<p;if(_?h[f][1]===u:c)return this;if(r(a),(c||!_)&&r(s),!c||1!==h.length){if(!_&&!c&&h.length>=jr)return It(t,h,o,u);var l=t&&t===this.ownerID,v=l?h:i(h);return _?c?f===p-1?v.pop():v[f]=v.pop():v[f]=[o,u]:v.push([o,u]),l?(this.entries=v,this):new br(t,v)}};var Or=function(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r};Or.prototype.get=function(t,e,r,n){void 0===e&&(e=K(r));var i=1<<((0===t?e:e>>>t)&xe),o=this.bitmap | ||
;return 0==(o&i)?n:this.nodes[jt(o&i-1)].get(t+De,e,r,n)},Or.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=K(n));var s=(0===e?r:r>>>e)&xe,a=1<<s,c=this.bitmap,h=0!=(c&a);if(!h&&i===je)return this;var f=jt(c&a-1),p=this.nodes,_=h?p[f]:void 0,l=wt(_,t,e+De,r,n,i,o,u);if(l===_)return this;if(!h&&l&&p.length>=kr)return Ot(t,p,c,s,l);if(h&&!l&&2===p.length&&St(p[1^f]))return p[1^f];if(h&&l&&1===p.length&&St(l))return l;var v=t&&t===this.ownerID,y=h?l?c:c^a:c|a,d=h?l?kt(p,f,l,v):Rt(p,f,v):At(p,f,l,v);return v?(this.bitmap=y,this.nodes=d,this):new Or(t,y,d)};var Mr=function(t,e,r){this.ownerID=t,this.count=e,this.nodes=r};Mr.prototype.get=function(t,e,r,n){void 0===e&&(e=K(r));var i=(0===t?e:e>>>t)&xe,o=this.nodes[i];return o?o.get(t+De,e,r,n):n},Mr.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=K(n));var s=(0===e?r:r>>>e)&xe,a=i===je,c=this.nodes,h=c[s];if(a&&!h)return this;var f=wt(h,t,e+De,r,n,i,o,u);if(f===h)return this;var p=this.count;if(h){if(!f&&--p<Ar)return bt(t,c,p,s)}else p++;var _=t&&t===this.ownerID,l=kt(c,s,f,_);return _?(this.count=p,this.nodes=l,this):new Mr(t,p,l)};var qr=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r};qr.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(R(r,i[o][0]))return i[o][1];return n},qr.prototype.update=function(t,e,n,o,u,s,a){void 0===n&&(n=K(o));var c=u===je;if(n!==this.keyHash)return c?this:(r(a),r(s),zt(this,t,e,n,[o,u]));for(var h=this.entries,f=0,p=h.length;f<p&&!R(o,h[f][0]);f++);var _=f<p;if(_?h[f][1]===u:c)return this;if(r(a),(c||!_)&&r(s),c&&2===p)return new Dr(t,this.keyHash,h[1^f]);var l=t&&t===this.ownerID,v=l?h:i(h);return _?c?f===p-1?v.pop():v[f]=v.pop():v[f]=[o,u]:v.push([o,u]),l?(this.entries=v,this):new qr(t,this.keyHash,v)};var Dr=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r};Dr.prototype.get=function(t,e,r,n){return R(r,this.entry[0])?this.entry[1]:n},Dr.prototype.update=function(t,e,n,i,o,u,s){var a=o===je,c=R(i,this.entry[0]);return(c?o===this.entry[1]:a)?this:(r(s), | ||
a?void r(u):c?t&&t===this.ownerID?(this.entry[1]=o,this):new Dr(t,this.keyHash,[i,o]):(r(u),zt(this,t,e,K(i),[i,o])))},br.prototype.iterate=qr.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(t(r[e?i-n:n])===!1)return!1},Or.prototype.iterate=Mr.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&o.iterate(t,e)===!1)return!1}},Dr.prototype.iterate=function(t,e){return t(this.entry)};var Er,xr=function(t){function e(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&yt(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this,e=this._type,r=this._stack;r;){var n=r.node,i=r.index++,o=void 0;if(n.entry){if(0===i)return vt(e,n.entry)}else if(n.entries){if(o=n.entries.length-1,i<=o)return vt(e,n.entries[t._reverse?o-i:i])}else if(o=n.nodes.length-1,i<=o){var u=n.nodes[t._reverse?o-i:i];if(u){if(u.entry)return vt(e,u.entry);r=t._stack=yt(u,r)}continue}r=t._stack=t._stack.__prev}return z()},e}(Xe),jr=Ee/4,kr=Ee/2,Ar=Ee/4,Rr=function(t){function e(e){var r=Tt();if(null===e||void 0===e)return r;if(Ut(e))return e;var n=t(e),i=n.size;return 0===i?r:(pt(i),i>0&&i<Ee?Lt(0,i,De,null,new Lr(n.toArray())):r.withMutations(function(t){t.setSize(i),n.forEach(function(e,r){return t.set(r,e)})}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=u(this,t))>=0&&t<this.size){t+=this._origin;var r=Jt(this,t);return r&&r.array[t&xe]}return e},e.prototype.set=function(t,e){return Ct(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){ | ||
return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=De,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Tt()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){Nt(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},e.prototype.pop=function(){return Nt(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Nt(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},e.prototype.shift=function(){return Nt(this,1)},e.prototype.merge=function(){return this.concat.apply(this,arguments)},e.prototype.setSize=function(t){return Nt(this,0,t)},e.prototype.slice=function(t,e){var r=this.size;return a(t,e,r)?this:Nt(this,c(t,r),h(e,r))},e.prototype.__iterator=function(t,e){var r=e?this.size:0,n=Kt(this,e);return new Xe(function(){var i=n();return i===Cr?z():S(t,e?--r:r++,i)})},e.prototype.__iterate=function(t,e){for(var r,n=this,i=e?this.size:0,o=Kt(this,e);(r=o())!==Cr&&t(r,e?--i:i++,n)!==!1;);return i},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Lt(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?Tt():(this.__ownerID=t,this.__altered=!1,this)},e}(We);Rr.isList=Ut;var Ur="@@__IMMUTABLE_LIST__@@",Kr=Rr.prototype;Kr[Ur]=!0,Kr.delete=Kr.remove,Kr.setIn=Ir.setIn,Kr.deleteIn=Kr.removeIn=Ir.removeIn,Kr.update=Ir.update,Kr.updateIn=Ir.updateIn,Kr.mergeIn=Ir.mergeIn,Kr.mergeDeepIn=Ir.mergeDeepIn,Kr.withMutations=Ir.withMutations,Kr.asMutable=Ir.asMutable,Kr.asImmutable=Ir.asImmutable,Kr.wasAltered=Ir.wasAltered,Kr["@@transducer/init"]=Kr.asMutable,Kr["@@transducer/step"]=function(t,e){return t.push(e)},Kr["@@transducer/result"]=Ir["@@transducer/result"];var Lr=function(t,e){this.array=t,this.ownerID=e};Lr.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&xe;if(n>=this.array.length)return new Lr([],t);var i,o=0===n;if(e>0){var u=this.array[n] | ||
;if((i=u&&u.removeBefore(t,e-De,r))===u&&o)return this}if(o&&!i)return this;var s=Wt(this,t);if(!o)for(var a=0;a<n;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},Lr.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n=r-1>>>e&xe;if(n>=this.array.length)return this;var i;if(e>0){var o=this.array[n];if((i=o&&o.removeAfter(t,e-De,r))===o&&n===this.array.length-1)return this}var u=Wt(this,t);return u.array.splice(n+1),i&&(u.array[n]=i),u};var Tr,Cr={},Br=function(t){function e(t){return null===t||void 0===t?Yt():Vt(t)?t:Yt().withMutations(function(e){var r=Be(t);pt(r.size),r.forEach(function(t,r){return e.set(r,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Yt()},e.prototype.set=function(t,e){return Qt(this,t,e)},e.prototype.remove=function(t){return Qt(this,t,je)},e.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},e.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?Ht(e,r,t,this.__hash):0===this.size?Yt():(this.__ownerID=t,this._map=e,this._list=r,this)},e}(Sr);Br.isOrderedMap=Vt,Br.prototype[Le]=!0,Br.prototype.delete=Br.prototype.remove;var Wr,Jr=function(t){function e(t){return null===t||void 0===t?Gt():Xt(t)?t:Gt().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){ | ||
return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var r=this._head;for(t=u(this,t);r&&t--;)r=r.next;return r?r.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,r=this._head,n=arguments.length-1;n>=0;n--)r={value:t[n],next:r};return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Ft(e,r)},e.prototype.pushAll=function(e){if(e=t(e),0===e.size)return this;if(0===this.size&&Xt(e))return e;pt(e.size);var r=this.size,n=this._head;return e.__iterate(function(t){r++,n={value:t,next:n}},!0),this.__ownerID?(this.size=r,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ft(r,n)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gt()},e.prototype.slice=function(e,r){if(a(e,r,this.size))return this;var n=c(e,this.size);if(h(r,this.size)!==this.size)return t.prototype.slice.call(this,e,r);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ft(i,o)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ft(this.size,this._head,t,this.__hash):0===this.size?Gt():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var r=this;if(e)return new er(this.toArray()).__iterate(function(e,n){return t(e,n,r)},e);for(var n=0,i=this._head;i&&t(i.value,n++,r)!==!1;)i=i.next;return n},e.prototype.__iterator=function(t,e){if(e)return new er(this.toArray()).__iterator(t,e);var r=0,n=this._head;return new Xe(function(){if(n){var e=n.value;return n=n.next,S(t,r++,e)}return z()})},e}(We);Jr.isStack=Xt;var Nr="@@__IMMUTABLE_STACK__@@",Pr=Jr.prototype;Pr[Nr]=!0,Pr.withMutations=Ir.withMutations,Pr.asMutable=Ir.asMutable, | ||
Pr.asImmutable=Ir.asImmutable,Pr.wasAltered=Ir.wasAltered,Pr.shift=Pr.pop,Pr.unshift=Pr.push,Pr.unshiftAll=Pr.pushAll,Pr["@@transducer/init"]=Pr.asMutable,Pr["@@transducer/step"]=function(t,e){return t.unshift(e)},Pr["@@transducer/result"]=Ir["@@transducer/result"];var Vr,Hr=function(t){function e(e){return null===e||void 0===e?ne():te(e)&&!g(e)?e:ne().withMutations(function(r){var n=t(e);pt(n.size),n.forEach(function(t){return r.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(Be(t).keySeq())},e.intersect=function(t){return t=Ce(t).toArray(),t.length?Qr.intersect.apply(e(t.pop()),t):ne()},e.union=function(t){return t=Ce(t).toArray(),t.length?Qr.union.apply(e(t.pop()),t):ne()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return ee(this,this._map.set(t,t))},e.prototype.remove=function(t){return ee(this,this._map.remove(t))},e.prototype.clear=function(){return ee(this,this._map.clear())},e.prototype.union=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return e=e.filter(function(t){return 0!==t.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(r){for(var n=0;n<e.length;n++)t(e[n]).forEach(function(t){return r.add(t)})}):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map(function(e){return t(e)});var n=[];return this.forEach(function(t){e.every(function(e){return e.includes(t)})||n.push(t)}),this.withMutations(function(t){n.forEach(function(e){t.remove(e)})})},e.prototype.subtract=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map(function(e){return t(e)});var n=[];return this.forEach(function(t){e.some(function(e){return e.includes(t)})&&n.push(t)}), | ||
this.withMutations(function(t){n.forEach(function(e){t.remove(e)})})},e.prototype.sort=function(t){return en(tt(this,t))},e.prototype.sortBy=function(t,e){return en(tt(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e){return t(e,e,r)},e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(Je);Hr.isSet=te;var Yr="@@__IMMUTABLE_SET__@@",Qr=Hr.prototype;Qr[Yr]=!0,Qr.delete=Qr.remove,Qr.merge=Qr.union,Qr.withMutations=Ir.withMutations,Qr.asMutable=Ir.asMutable,Qr.asImmutable=Ir.asImmutable,Qr["@@transducer/init"]=Qr.asMutable,Qr["@@transducer/step"]=function(t,e){return t.add(e)},Qr["@@transducer/result"]=Ir["@@transducer/result"],Qr.__empty=ne,Qr.__make=re;var Xr,Fr,Gr=function(t){function e(t,r,n){if(!(this instanceof e))return new e(t,r,n);if(ft(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===r&&(r=1/0),n=void 0===n?1:Math.abs(n),r<t&&(n=-n),this._start=t,this._end=r,this._step=n,0===(this.size=Math.max(0,Math.ceil((r-t)/n-1)+1))){if(Fr)return Fr;Fr=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+u(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,r){return a(t,r,this.size)?this:(t=c(t,this.size),r=h(r,this.size),r<=t?new e(0,0):new e(this.get(t,this._end),this.get(r,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1}, | ||
e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var r=this,n=this.size,i=this._step,o=e?this._start+(n-1)*i:this._start,u=0;u!==n&&t(o,e?n-++u:u++,r)!==!1;)o+=e?-i:i;return u},e.prototype.__iterator=function(t,e){var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;return new Xe(function(){if(o===r)return z();var u=i;return i+=e?-n:n,S(t,e?r-++o:o++,u)})},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:Zt(this,t)},e}(Ze);Ce.isIterable=l,Ce.isKeyed=v,Ce.isIndexed=y,Ce.isAssociative=d,Ce.isOrdered=g,Ce.Iterator=Xe,$t(Ce,{toArray:function(){pt(this.size);var t=Array(this.size||0),e=v(this),r=0;return this.__iterate(function(n,i){t[r++]=e?[i,n]:n}),t},toIndexedSeq:function(){return new gr(this)},toJS:function(){return this.toSeq().map(se).toJSON()},toKeyedSeq:function(){return new dr(this,!0)},toMap:function(){return Sr(this.toKeyedSeq())},toObject:function(){pt(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return Br(this.toKeyedSeq())},toOrderedSet:function(){return en(v(this)?this.valueSeq():this)},toSet:function(){return Hr(v(this)?this.valueSeq():this)},toSetSeq:function(){return new mr(this)},toSeq:function(){return y(this)?this.toIndexedSeq():v(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Jr(v(this)?this.valueSeq():this)},toList:function(){return Rr(v(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return it(this,F(this,t))},includes:function(t){return this.some(function(e){return R(e,t)})},entries:function(){return this.__iterator(Ve)},every:function(t,e){pt(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1}),r},filter:function(t,e){ | ||
return it(this,P(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return pt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){pt(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!==n&&void 0!==n?""+n:""}),e},keys:function(){return this.__iterator(Ne)},map:function(t,e){return it(this,J(this,t,e))},reduce:function(t,e,r){return ie(this,t,e,r,arguments.length<2,!1)},reduceRight:function(t,e,r){return ie(this,t,e,r,arguments.length<2,!0)},reverse:function(){return it(this,N(this,!0))},slice:function(t,e){return it(this,Y(this,t,e,!0))},some:function(t,e){return!this.every(ae(t),e)},sort:function(t){return it(this,tt(this,t))},values:function(){return this.__iterator(Pe)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return o(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return V(this,t,e)},equals:function(t){return Zt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new er(t._cache);var e=t.toSeq().map(ue).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e.toJS=function(){return this.map(function(t){return[se(t[0]),se(t[1])]}).toJSON()},e},filterNot:function(t,e){return this.filter(ae(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(s)},flatMap:function(t,e){return it(this,Z(this,t,e))},flatten:function(t){return it(this,G(this,t,!0))},fromEntrySeq:function(){return new wr(this)},get:function(t,e){return this.find(function(e,r){return R(r,t)},void 0,e)}, | ||
getIn:function(t,e){return ye(this,e,t,!0)},groupBy:function(t,e){return H(this,t,e)},has:function(t){return this.get(t,je)!==je},hasIn:function(t){return ye(this,je,t,!1)!==je},isSubset:function(t){return t="function"==typeof t.includes?t:Ce(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:Ce(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(e){return R(e,t)})},keySeq:function(){return this.toSeq().map(oe).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return et(this,t)},maxBy:function(t,e){return et(this,e,t)},min:function(t){return et(this,t?ce(t):fe)},minBy:function(t,e){return et(this,e?ce(e):fe,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return it(this,X(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(ae(t),e)},sortBy:function(t,e){return it(this,tt(this,e,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,e){return it(this,Q(this,t,e))},takeUntil:function(t,e){return this.takeWhile(ae(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=pe(this))}});var Zr=Ce.prototype;Zr[Re]=!0,Zr[Qe]=Zr.values,Zr.toJSON=Zr.toArray,Zr.__toStringMapper=_t,Zr.inspect=Zr.toSource=function(){return""+this},Zr.chain=Zr.flatMap,Zr.contains=Zr.includes,$t(Be,{flip:function(){return it(this,W(this))},mapEntries:function(t,e){var r=this,n=0;return it(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return it(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var $r=Be.prototype;$r[Ue]=!0,$r[Qe]=Zr.entries, | ||
$r.toJSON=Zr.toObject,$r.__toStringMapper=function(t,e){return _t(e)+": "+_t(t)},$t(We,{toKeyedSeq:function(){return new dr(this,!1)},filter:function(t,e){return it(this,P(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return it(this,N(this,!1))},slice:function(t,e){return it(this,Y(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(e||0,0),0===r||2===r&&!e)return this;t=c(t,t<0?this.count():this.size);var n=this.slice(0,t);return it(this,1===r?n:n.concat(i(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(t){return it(this,G(this,t,!1))},get:function(t,e){return t=u(this,t),t<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return(t=u(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return it(this,$(this,t))},interleave:function(){var t=[this].concat(i(arguments)),e=nt(this.toSeq(),Ze.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),it(this,r)},keySeq:function(){return Gr(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return it(this,X(this,t,e,!1))},zip:function(){return it(this,nt(this,he,[this].concat(i(arguments))))},zipAll:function(){return it(this,nt(this,he,[this].concat(i(arguments)),!0))},zipWith:function(t){var e=i(arguments);return e[0]=this,it(this,nt(this,t,e))}});var tn=We.prototype;tn[Ke]=!0,tn[Le]=!0,$t(Je,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),Je.prototype.has=Zr.includes,Je.prototype.contains=Je.prototype.includes,$t(Ge,Be.prototype),$t(Ze,We.prototype),$t($e,Je.prototype);var en=function(t){function e(t){ | ||
return null===t||void 0===t?me():de(t)?t:me().withMutations(function(e){var r=Je(t);pt(r.size),r.forEach(function(t){return e.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(Be(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Hr);en.isOrderedSet=de;var rn=en.prototype;rn[Le]=!0,rn.zip=tn.zip,rn.zipWith=tn.zipWith,rn.__empty=me,rn.__make=ge;var nn,on=function(t,e){var r,n=function(o){var u=this;if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var s=Object.keys(t),a=i._indices={};i._name=e,i._keys=s,i._defaultValues=t;for(var c=0;c<s.length;c++){var h=s[c];a[h]=c,i[h]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+Se(u)+' with property "'+h+'" since that property name is part of the Record API.'):Ie(i,h)}}this.__ownerID=void 0,this._values=Rr().withMutations(function(t){t.setSize(u._keys.length),Be(o).forEach(function(e,r){t.set(u._indices[r],e===u._defaultValues[r]?void 0:e)})})},i=n.prototype=Object.create(un);return i.constructor=n,n};on.prototype.toString=function(){for(var t,e=this,r=Se(this)+" { ",n=this._keys,i=0,o=n.length;i!==o;i++)t=n[i],r+=(i?", ":"")+t+": "+_t(e.get(t));return r+" }"},on.prototype.equals=function(t){return this===t||t&&this._keys===t._keys&&ze(this).equals(ze(t))},on.prototype.hashCode=function(){return ze(this).hashCode()},on.prototype.has=function(t){return this._indices.hasOwnProperty(t)},on.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._indices[t],n=this._values.get(r);return void 0===n?this._defaultValues[t]:n},on.prototype.set=function(t,e){if(this.has(t)){var r=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(r!==this._values&&!this.__ownerID)return we(this,r)}return this},on.prototype.remove=function(t){return this.set(t)},on.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length) | ||
;return this.__ownerID?this:we(this,t)},on.prototype.wasAltered=function(){return this._values.wasAltered()},on.prototype.toSeq=function(){return ze(this)},on.prototype.toJS=function(){return ze(this).toJS()},on.prototype.__iterator=function(t,e){return ze(this).__iterator(t,e)},on.prototype.__iterate=function(t,e){return ze(this).__iterate(t,e)},on.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?we(this,e,t):(this.__ownerID=t,this._values=e,this)},on.isRecord=m,on.getDescriptiveName=Se;var un=on.prototype;un[Te]=!0,un.delete=un.remove,un.deleteIn=un.removeIn=Ir.removeIn,un.getIn=Zr.getIn,un.hasIn=Zr.hasIn,un.merge=Ir.merge,un.mergeWith=Ir.mergeWith,un.mergeIn=Ir.mergeIn,un.mergeDeep=Ir.mergeDeep,un.mergeDeepWith=Ir.mergeDeepWith,un.mergeDeepIn=Ir.mergeDeepIn,un.setIn=Ir.setIn,un.update=Ir.update,un.updateIn=Ir.updateIn,un.withMutations=Ir.withMutations,un.asMutable=Ir.asMutable,un.asImmutable=Ir.asImmutable,un[Qe]=Zr.entries,un.toJSON=un.toObject=Zr.toObject,un.inspect=un.toSource=Zr.toSource;var sn,an=function(t){function e(t,r){if(!(this instanceof e))return new e(t,r);if(this._value=t,0===(this.size=void 0===r?1/0:Math.max(0,r))){if(sn)return sn;sn=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return R(this._value,t)},e.prototype.slice=function(t,r){var n=this.size;return a(t,r,n)?this:new e(this._value,h(r,n)-c(t,n))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return R(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return R(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var r=this,n=this.size,i=0;i!==n&&t(r._value,e?n-++i:i++,r)!==!1;);return i},e.prototype.__iterator=function(t,e){var r=this,n=this.size,i=0 | ||
;return new Xe(function(){return i===n?z():S(t,e?n-++i:i++,r._value)})},e.prototype.equals=function(t){return t instanceof e?R(this._value,t._value):Zt(t)},e}(Ze),cn={version:"4.0.0-rc.5",Collection:Ce,Iterable:Ce,Seq:Fe,Map:Sr,OrderedMap:Br,List:Rr,Stack:Jr,Set:Hr,OrderedSet:en,Record:on,Range:Gr,Repeat:an,is:R,fromJS:be,hash:K,isImmutable:_,isCollection:l,isKeyed:v,isIndexed:y,isAssociative:d,isOrdered:g,isValueObject:w},hn=Ce;t.default=cn,t.version="4.0.0-rc.5",t.Collection=Ce,t.Iterable=hn,t.Seq=Fe,t.Map=Sr,t.OrderedMap=Br,t.List=Rr,t.Stack=Jr,t.Set=Hr,t.OrderedSet=en,t.Record=on,t.Range=Gr,t.Repeat=an,t.is=R,t.fromJS=be,t.hash=K,t.isImmutable=_,t.isCollection=l,t.isKeyed=v,t.isIndexed=y,t.isAssociative=d,t.isOrdered=g,t.isValueObject=w,Object.defineProperty(t,"__esModule",{value:!0})}); |
{ | ||
"name": "immutable", | ||
"version": "4.0.0-rc.4", | ||
"version": "4.0.0-rc.5", | ||
"description": "Immutable Data Collections", | ||
@@ -44,4 +44,4 @@ "license": "MIT", | ||
"start": "gulp --gulpfile gulpfile.js dev", | ||
"deploy": "(cd ./pages/out && git init && git config user.name \"Travis CI\" && git config user.email \"github@fb.com\" && git add . && git commit -m \"Deploy to GitHub Pages\" && git push --force --quiet \"https://${GH_TOKEN}@github.com/facebook/immutable-js.git\" master:gh-pages > /dev/null 2>1)", | ||
"gitpublish": ". ./resources/gitpublish.sh" | ||
"deploy": "./resources/deploy-ghpages.sh", | ||
"gitpublish": "./resources/gitpublish.sh" | ||
}, | ||
@@ -62,23 +62,23 @@ "jest": { | ||
"devDependencies": { | ||
"benchmark": "2.1.3", | ||
"browser-sync": "2.18.8", | ||
"browserify": "^5.11.2", | ||
"benchmark": "2.1.4", | ||
"browser-sync": "2.18.13", | ||
"browserify": "14.4.0", | ||
"colors": "1.1.2", | ||
"del": "2.2.2", | ||
"del": "3.0.0", | ||
"dtslint": "0.1.2", | ||
"eslint": "3.17.1", | ||
"eslint-config-airbnb": "14.1.0", | ||
"eslint-config-prettier": "1.5.0", | ||
"eslint-plugin-import": "2.2.0", | ||
"eslint-plugin-jsx-a11y": "4.0.0", | ||
"eslint-plugin-prettier": "2.0.1", | ||
"eslint-plugin-react": "6.10.0", | ||
"eslint": "4.8.0", | ||
"eslint-config-airbnb": "15.1.0", | ||
"eslint-config-prettier": "2.6.0", | ||
"eslint-plugin-import": "2.7.0", | ||
"eslint-plugin-jsx-a11y": "5.1.1", | ||
"eslint-plugin-prettier": "2.3.1", | ||
"eslint-plugin-react": "7.4.0", | ||
"flow-bin": "0.56.0", | ||
"gulp": "3.9.1", | ||
"gulp-concat": "2.6.1", | ||
"gulp-filter": "5.0.0", | ||
"gulp-header": "1.8.8", | ||
"gulp-less": "3.3.0", | ||
"gulp-filter": "5.0.1", | ||
"gulp-header": "1.8.9", | ||
"gulp-less": "3.3.2", | ||
"gulp-size": "2.1.0", | ||
"gulp-sourcemaps": "2.4.1", | ||
"gulp-sourcemaps": "2.6.1", | ||
"gulp-uglify": "2.1.0", | ||
@@ -91,16 +91,17 @@ "gulp-util": "3.0.8", | ||
"mkdirp": "0.5.1", | ||
"npm-run-all": "4.0.2", | ||
"prettier": "1.7.2", | ||
"npm-run-all": "4.1.1", | ||
"prettier": "1.7.4", | ||
"react": "^0.12.0", | ||
"react-router": "^0.11.2", | ||
"react-tools": "^0.12.0", | ||
"rimraf": "2.6.1", | ||
"rollup": "0.41.5", | ||
"rollup-plugin-buble": "0.15.0", | ||
"rollup-plugin-commonjs": "7.1.0", | ||
"rollup-plugin-strip-banner": "0.1.0", | ||
"run-sequence": "1.2.2", | ||
"react-tools": "0.13.3", | ||
"rimraf": "2.6.2", | ||
"rollup": "0.50.0", | ||
"rollup-plugin-buble": "0.16.0", | ||
"rollup-plugin-commonjs": "8.2.1", | ||
"rollup-plugin-json": "2.3.0", | ||
"rollup-plugin-strip-banner": "0.2.0", | ||
"run-sequence": "2.2.0", | ||
"through2": "2.0.3", | ||
"transducers-js": "^0.4.174", | ||
"tslint": "4.5.1", | ||
"tslint": "5.7.0", | ||
"typescript": "2.5.3", | ||
@@ -129,3 +130,4 @@ "uglify-js": "2.8.11", | ||
"iteration" | ||
] | ||
], | ||
"dependencies": {} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
752301
18888
48