UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

13 lines 1.11 MB
/*! * antd v2.13.14 * * Copyright 2015-present, Alipay, Inc. * All rights reserved. */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.antd=t(require("react"),require("react-dom")):e.antd=t(e.React,e.ReactDOM)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,o){r.apply(this,[e,t,o].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){e.exports=n(873)},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(411),i=r(o);t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(415),i=r(o),a=n(412),l=r(a),s=n(21),u=r(s);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,u.default)(t)));e.prototype=(0,l.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(21),i=r(o);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){e.exports=n(651)()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(184),i=r(o);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){var r,o;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=n:(r=[],o=function(){return n}.apply(t,r),!(void 0!==o&&(e.exports=o)))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(184),i=r(o);t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,n){e.exports=t},function(e,t,n){!function(t,n){e.exports=n()}(this,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:T(e)}function n(e){return a(e)?e:M(e)}function r(e){return l(e)?e:N(e)}function o(e){return i(e)&&!s(e)?e:D(e)}function i(e){return!(!e||!e[un])}function a(e){return!(!e||!e[cn])}function l(e){return!(!e||!e[fn])}function s(e){return a(e)||l(e)}function u(e){return!(!e||!e[dn])}function c(e){return e.value=!1,e}function f(e){e&&(e.value=!0)}function d(){}function p(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function h(e){return void 0===e.size&&(e.size=e.__iterate(m)),e.size}function v(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?h(e)+t:t}function m(){return!0}function y(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function C(e){this.next=e}function S(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function w(){return{value:void 0,done:!0}}function x(e){return!!k(e)}function O(e){return e&&"function"==typeof e.next}function E(e){var t=k(e);return t&&t.call(e)}function k(e){var t=e&&(wn&&e[wn]||e[xn]);if("function"==typeof t)return t}function P(e){return e&&"number"==typeof e.length}function T(e){return null===e||void 0===e?F():i(e)?e.toSeq():H(e)}function M(e){return null===e||void 0===e?F().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():V(e)}function N(e){return null===e||void 0===e?F():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():K(e)}function D(e){return(null===e||void 0===e?F():i(e)?a(e)?e.entrySeq():e:K(e)).toSetSeq()}function j(e){this._array=e,this.size=e.length}function R(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function A(e){this._iterable=e,this.size=e.length||e.size}function I(e){this._iterator=e,this._iteratorCache=[]}function L(e){return!(!e||!e[En])}function F(){return kn||(kn=new j([]))}function V(e){var t=Array.isArray(e)?new j(e).fromEntrySeq():O(e)?new I(e).fromEntrySeq():x(e)?new A(e).fromEntrySeq():"object"==typeof e?new R(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function K(e){var t=W(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function H(e){var t=W(e)||"object"==typeof e&&new R(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function W(e){return P(e)?new j(e):O(e)?new I(e):x(e)?new A(e):void 0}function B(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var l=o[n?i-a:a];if(t(l[1],r?l[0]:a,e)===!1)return a+1}return a}return e.__iterateUncached(t,n)}function U(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new C(function(){var e=o[n?i-a:a];return a++>i?w():S(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function z(e,t){return t?Y(t,e,"",{"":e}):q(e)}function Y(e,t,n,r){return Array.isArray(t)?e.call(r,n,N(t).map(function(n,r){return Y(e,n,r,t)})):G(t)?e.call(r,n,M(t).map(function(n,r){return Y(e,n,r,t)})):t}function q(e){return Array.isArray(e)?N(e).map(q).toList():G(e)?M(e).map(q).toMap():e}function G(e){return e&&(e.constructor===Object||void 0===e.constructor)}function X(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function $(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||l(e)!==l(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!s(e);if(u(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&X(o[1],e)&&(n||X(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):o?!X(t,e.get(r,yn)):!X(e.get(r,yn),t))return f=!1,!1});return f&&e.size===d}function J(e,t){if(!(this instanceof J))return new J(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Pn)return Pn;Pn=this}}function Z(e,t){if(!e)throw new Error(t)}function Q(e,t,n){if(!(this instanceof Q))return new Q(e,t,n);if(Z(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Tn)return Tn;Tn=this}}function ee(){throw TypeError("Abstract")}function te(){}function ne(){}function re(){}function oe(e){return e>>>1&1073741824|3221225471&e}function ie(e){if(e===!1||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(e=e.valueOf(),e===!1||null===e||void 0===e))return 0;if(e===!0)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return oe(n)}if("string"===t)return e.length>Ln?ae(e):le(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return se(e);if("function"==typeof e.toString)return le(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Kn[e];return void 0===t&&(t=le(e),Vn===Fn&&(Vn=0,Kn={}),Vn++,Kn[e]=t),t}function le(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return oe(t)}function se(e){var t;if(Rn&&(t=Mn.get(e),void 0!==t))return t;if(t=e[In],void 0!==t)return t;if(!jn){if(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[In],void 0!==t)return t;if(t=ue(e),void 0!==t)return t}if(t=++An,1073741824&An&&(An=0),Rn)Mn.set(e,t);else{if(void 0!==Dn&&Dn(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(jn)Object.defineProperty(e,In,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[In]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[In]=t}}return t}function ue(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){Z(e!==1/0,"Cannot perform this action with an infinite size.")}function fe(e){return null===e||void 0===e?Se():de(e)&&!u(e)?e:Se().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function de(e){return!(!e||!e[Hn])}function pe(e,t){this.ownerID=e,this.entries=t}function he(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function ve(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function me(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ge(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&_e(e._root)}function be(e,t){return S(e,t[0],t[1])}function _e(e,t){return{node:e,index:0,__prev:t}}function Ce(e,t,n,r){var o=Object.create(Wn);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Se(){return Bn||(Bn=Ce(0))}function we(e,t,n){var r,o;if(e._root){var i=c(gn),a=c(bn);if(r=xe(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===yn?-1:1:0)}else{if(n===yn)return e;o=1,r=new pe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ce(o,r):Se()}function xe(e,t,n,r,o,i,a,l){return e?e.update(t,n,r,o,i,a,l):i===yn?e:(f(l),f(a),new ye(t,r,[o,i]))}function Oe(e){return e.constructor===ye||e.constructor===me}function Ee(e,t,n,r,o){if(e.keyHash===r)return new me(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&mn,l=(0===n?r:r>>>n)&mn,s=a===l?[Ee(e,t,n+hn,r,o)]:(i=new ye(t,r,o),a<l?[e,i]:[i,e]);return new he(t,1<<a|1<<l,s)}function ke(e,t,n,r){e||(e=new d);for(var o=new ye(e,ie(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function Pe(e,t,n,r){for(var o=0,i=0,a=new Array(n),l=0,s=1,u=t.length;l<u;l++,s<<=1){var c=t[l];void 0!==c&&l!==r&&(o|=s,a[i++]=c)}return new he(e,o,a)}function Te(e,t,n,r,o){for(var i=0,a=new Array(vn),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[i++]:void 0;return a[r]=o,new ve(e,i+1,a)}function Me(e,t,r){for(var o=[],a=0;a<r.length;a++){var l=r[a],s=n(l);i(l)||(s=s.map(function(e){return z(e)})),o.push(s)}return je(e,t,o)}function Ne(e,t,n){return e&&e.mergeDeep&&i(t)?e.mergeDeep(t):X(e,t)?e:t}function De(e){return function(t,n,r){if(t&&t.mergeDeepWith&&i(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return X(t,o)?t:o}}function je(e,t,n){return n=n.filter(function(e){return 0!==e.size}),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,yn,function(e){return e===yn?n:t(e,n,r)})}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)}):e.constructor(n[0])}function Re(e,t,n,r){var o=e===yn,i=t.next();if(i.done){var a=o?n:e,l=r(a);return l===a?e:l}Z(o||e&&e.set,"invalid keyPath");var s=i.value,u=o?yn:e.get(s,yn),c=Re(u,t,n,r);return c===u?e:c===yn?e.remove(s):(o?Se():e).set(s,c)}function Ae(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function Ie(e,t,n,r){var o=r?e:p(e);return o[t]=n,o}function Le(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,l=0;l<o;l++)l===t?(i[l]=n,a=-1):i[l]=e[l+a];return i}function Fe(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}function Ve(e){var t=Ue();if(null===e||void 0===e)return t;if(Ke(e))return e;var n=r(e),o=n.size;return 0===o?t:(ce(o),o>0&&o<vn?Be(0,o,hn,null,new He(n.toArray())):t.withMutations(function(e){e.setSize(o),n.forEach(function(t,n){return e.set(n,t)})}))}function Ke(e){return!(!e||!e[qn])}function He(e,t){this.array=e,this.ownerID=t}function We(e,t){function n(e,t,n){return 0===t?r(e,n):o(e,t,n)}function r(e,n){var r=n===l?s&&s.array:e&&e.array,o=n>i?0:i-n,u=a-n;return u>vn&&(u=vn),function(){if(o===u)return $n;var e=t?--u:o++;return r&&r[e]}}function o(e,r,o){var l,s=e&&e.array,u=o>i?0:i-o>>r,c=(a-o>>r)+1;return c>vn&&(c=vn),function(){for(;;){if(l){var e=l();if(e!==$n)return e;l=null}if(u===c)return $n;var i=t?--c:u++;l=n(s&&s[i],r-hn,o+(i<<r))}}}var i=e._origin,a=e._capacity,l=Je(a),s=e._tail;return n(e._root,e._level,0)}function Be(e,t,n,r,o,i,a){var l=Object.create(Gn);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=o,l.__ownerID=i,l.__hash=a,l.__altered=!1,l}function Ue(){return Xn||(Xn=Be(0,0,hn))}function ze(e,t,n){if(t=v(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Xe(e,t).set(0,n):Xe(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=c(bn);return t>=Je(e._capacity)?r=Ye(r,e.__ownerID,0,t,n,i):o=Ye(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Be(e._origin,e._capacity,e._level,o,r):e}function Ye(e,t,n,r,o,i){var a=r>>>n&mn,l=e&&a<e.array.length;if(!l&&void 0===o)return e;var s;if(n>0){var u=e&&e.array[a],c=Ye(u,t,n-hn,r,o,i);return c===u?e:(s=qe(e,t),s.array[a]=c,s)}return l&&e.array[a]===o?e:(f(i),s=qe(e,t),void 0===o&&a===s.array.length-1?s.array.pop():s.array[a]=o,s)}function qe(e,t){return t&&e&&t===e.ownerID?e:new He(e?e.array.slice():[],t)}function Ge(e,t){if(t>=Je(e._capacity))return e._tail;if(t<1<<e._level+hn){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&mn],r-=hn;return n}}function Xe(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,o=e._origin,i=e._capacity,a=o+t,l=void 0===n?i:n<0?i+n:o+n;if(a===o&&l===i)return e;if(a>=l)return e.clear();for(var s=e._level,u=e._root,c=0;a+c<0;)u=new He(u&&u.array.length?[void 0,u]:[],r),s+=hn,c+=1<<s;c&&(a+=c,o+=c,l+=c,i+=c);for(var f=Je(i),p=Je(l);p>=1<<s+hn;)u=new He(u&&u.array.length?[u]:[],r),s+=hn;var h=e._tail,v=p<f?Ge(e,l-1):p>f?new He([],r):h;if(h&&p>f&&a<i&&h.array.length){u=qe(u,r);for(var m=u,y=s;y>hn;y-=hn){var g=f>>>y&mn;m=m.array[g]=qe(m.array[g],r)}m.array[f>>>hn&mn]=h}if(l<i&&(v=v&&v.removeAfter(r,0,l)),a>=p)a-=p,l-=p,s=hn,u=null,v=v&&v.removeBefore(r,0,a);else if(a>o||p<f){for(c=0;u;){var b=a>>>s&mn;if(b!==p>>>s&mn)break;b&&(c+=(1<<s)*b),s-=hn,u=u.array[b]}u&&a>o&&(u=u.removeBefore(r,s,a-c)),u&&p<f&&(u=u.removeAfter(r,s,p-c)),c&&(a-=c,l-=c)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=u,e._tail=v,e.__hash=void 0,e.__altered=!0,e):Be(a,l,s,u,v)}function $e(e,t,n){for(var o=[],a=0,l=0;l<n.length;l++){var s=n[l],u=r(s);u.size>a&&(a=u.size),i(s)||(u=u.map(function(e){return z(e)})),o.push(u)}return a>e.size&&(e=e.setSize(a)),je(e,t,o)}function Je(e){return e<vn?0:e-1>>>hn<<hn}function Ze(e){return null===e||void 0===e?tt():Qe(e)?e:tt().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function Qe(e){return de(e)&&u(e)}function et(e,t,n,r){var o=Object.create(Ze.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function tt(){return Jn||(Jn=et(Se(),Ue()))}function nt(e,t,n){var r,o,i=e._map,a=e._list,l=i.get(t),s=void 0!==l;if(n===yn){if(!s)return e;a.size>=vn&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&l!==t}),r=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=l===a.size-1?a.pop():a.set(l,void 0))}else if(s){if(n===a.get(l)[1])return e;r=i,o=a.set(l,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):et(r,o)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function lt(e){var t=Pt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Tt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===Sn){var r=e.__iterator(t,n);return new C(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Cn?_n:Cn,n)},t}function st(e,t,n){var r=Pt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,yn);return i===yn?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return r(t.call(n,e,o,a),o,i)!==!1},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Sn,o);return new C(function(){var o=i.next();if(o.done)return o;var a=o.value,l=a[0];return S(r,l,t.call(n,a[1],l,e),o)})},r}function ut(e,t){var n=Pt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=lt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Tt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var o=Pt(e);return r&&(o.has=function(r){var o=e.get(r,yn);return o!==yn&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,yn);return i!==yn&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,l=0;return e.__iterate(function(e,i,s){if(t.call(n,e,i,s))return l++,o(e,r?i:l-1,a)},i),l},o.__iteratorUncached=function(o,i){var a=e.__iterator(Sn,i),l=0;return new C(function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,u=s[0],c=s[1];if(t.call(n,c,u,e))return S(o,r?u:l++,c,i)}})},o}function ft(e,t,n){var r=fe().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}function dt(e,t,n){var r=a(e),o=(u(e)?Ze():fe()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return e=e||[],e.push(r?[a,i]:i),e})});var i=kt(e);return o.map(function(t){return xt(e,i(t))})}function pt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),y(t,n,o))return e;var i=g(t,o),a=b(n,o);if(i!==i||a!==a)return pt(e.toSeq().cacheResult(),t,n,r);var l,s=a-i;s===s&&(l=s<0?0:s);var u=Pt(e);return u.size=0===l?l:e.size&&l||void 0,!r&&L(e)&&l>=0&&(u.get=function(t,n){return t=v(this,t),t>=0&&t<l?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,u=0;return e.__iterate(function(e,n){if(!s||!(s=a++<i))return u++,t(e,r?n:u-1,o)!==!1&&u!==l}),u},u.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var o=0!==l&&e.__iterator(t,n),a=0,s=0;return new C(function(){for(;a++<i;)o.next();if(++s>l)return w();var e=o.next();return r||t===Cn?e:t===_n?S(t,s-1,void 0,e):S(t,s-1,e.value[1],e)})},u}function ht(e,t,n){var r=Pt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,l){return t.call(n,e,o,l)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(Sn,o),l=!0;return new C(function(){if(!l)return w();var e=a.next();if(e.done)return e;var o=e.value,s=o[0],u=o[1];return t.call(n,u,s,i)?r===Sn?e:S(r,s,u,e):(l=!1,w())})},r}function vt(e,t,n,r){var o=Pt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var l=!0,s=0;return e.__iterate(function(e,i,u){if(!l||!(l=t.call(n,e,i,u)))return s++,o(e,r?i:s-1,a)}),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var l=e.__iterator(Sn,i),s=!0,u=0;return new C(function(){var e,i,c;do{if(e=l.next(),e.done)return r||o===Cn?e:o===_n?S(o,u++,void 0,e):S(o,u++,e.value[1],e);var f=e.value;i=f[0],c=f[1],s&&(s=t.call(n,c,i,a))}while(s);return o===Sn?e:S(o,i,c,e)})},o}function mt(e,t){var r=a(e),o=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?V(e):K(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var s=o[0];if(s===e||r&&a(s)||l(e)&&l(s))return s}var u=new j(o);return r?u=u.toKeyedSeq():l(e)||(u=u.toSetSeq()),u=u.flatten(!0),u.size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),u}function yt(e,t,n){var r=Pt(e);return r.__iterateUncached=function(r,o){function a(e,u){var c=this;e.__iterate(function(e,o){return(!t||u<t)&&i(e)?a(e,u+1):r(e,n?o:l++,c)===!1&&(s=!0),!s},o)}var l=0,s=!1;return a(e,0),l},r.__iteratorUncached=function(r,o){var a=e.__iterator(r,o),l=[],s=0;return new C(function(){for(;a;){var e=a.next();if(e.done===!1){var u=e.value;if(r===Sn&&(u=u[1]),t&&!(l.length<t)||!i(u))return n?e:S(r,s++,u,e);l.push(a),a=u.__iterator(r,o)}else a=l.pop()}return w()})},r}function gt(e,t,n){var r=kt(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}function bt(e,t){var n=Pt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate(function(e,r){return(!i||n(t,i++,o)!==!1)&&n(e,i++,o)!==!1},r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(Cn,r),a=0;return new C(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?S(n,a++,t):S(n,a++,o.value,o)})},n}function _t(e,t,n){t||(t=Mt);var r=a(e),o=0,i=e.toSeq().map(function(t,r){return[r,t,o++,n?n(t,r,e):t]}).toArray();return i.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?M(i):l(e)?N(i):D(i)}function Ct(e,t,n){if(t||(t=Mt),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return St(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return St(t,e,n)?n:e})}function St(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function wt(e,n,r){var o=Pt(e);return o.size=new j(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Cn,t),o=0;!(n=r.next()).done&&e(n.value,o++,this)!==!1;);return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=t(e),E(o?e.reverse():e)}),a=0,l=!1;return new C(function(){var t;return l||(t=i.map(function(e){return e.next()}),l=t.some(function(e){return e.done})),l?w():S(e,a++,n.apply(null,t.map(function(e){return e.value})))})},o}function xt(e,t){return L(e)?t:e.constructor(t)}function Ot(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Et(e){return ce(e.size),h(e)}function kt(e){return a(e)?n:l(e)?r:o}function Pt(e){return Object.create((a(e)?M:l(e)?N:D).prototype)}function Tt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):T.prototype.cacheResult.call(this)}function Mt(e,t){return e>t?1:e<t?-1:0}function Nt(e){var n=E(e);if(!n){if(!P(e))throw new TypeError("Expected iterable or array-like: "+e);n=E(t(e))}return n}function Dt(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);At(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=fe(i)},o=r.prototype=Object.create(Zn);return o.constructor=r,r}function jt(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Rt(e){return e._name||e.constructor.name||"Record"}function At(e,t){try{t.forEach(It.bind(void 0,e))}catch(e){}}function It(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Z(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Lt(e){return null===e||void 0===e?Ht():Ft(e)&&!u(e)?e:Ht().withMutations(function(t){var n=o(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Ft(e){return!(!e||!e[Qn])}function Vt(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Kt(e,t){var n=Object.create(er);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ht(){return tr||(tr=Kt(Se()))}function Wt(e){return null===e||void 0===e?zt():Bt(e)?e:zt().withMutations(function(t){var n=o(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Bt(e){return Ft(e)&&u(e)}function Ut(e,t){var n=Object.create(nr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function zt(){return rr||(rr=Ut(tt()))}function Yt(e){return null===e||void 0===e?Xt():qt(e)?e:Xt().unshiftAll(e)}function qt(e){return!(!e||!e[or])}function Gt(e,t,n,r){var o=Object.create(ir);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Xt(){return ar||(ar=Gt(0))}function $t(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Jt(e,t){return t}function Zt(e,t){return[t,e]}function Qt(e){return function(){return!e.apply(this,arguments)}}function en(e){return function(){return-e.apply(this,arguments)}}function tn(e){return"string"==typeof e?JSON.stringify(e):e}function nn(){return p(arguments)}function rn(e,t){return e<t?1:e>t?-1:0}function on(e){if(e.size===1/0)return 0;var t=u(e),n=a(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+ln(ie(e),ie(t))|0}:function(e,t){r=r+ln(ie(e),ie(t))|0}:t?function(e){r=31*r+ie(e)|0}:function(e){r=r+ie(e)|0});return an(o,r)}function an(e,t){return t=Nn(t,3432918353),t=Nn(t<<15|t>>>-15,461845907),t=Nn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Nn(t^t>>>16,2246822507),t=Nn(t^t>>>13,3266489909),t=oe(t^t>>>16)}function ln(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var sn=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=l,t.isAssociative=s,t.isOrdered=u,t.Keyed=n,t.Indexed=r,t.Set=o;var un="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",dn="@@__IMMUTABLE_ORDERED__@@",pn="delete",hn=5,vn=1<<hn,mn=vn-1,yn={},gn={value:!1},bn={value:!1},_n=0,Cn=1,Sn=2,wn="function"==typeof Symbol&&Symbol.iterator,xn="@@iterator",On=wn||xn;C.prototype.toString=function(){return"[Iterator]"},C.KEYS=_n,C.VALUES=Cn,C.ENTRIES=Sn,C.prototype.inspect=C.prototype.toSource=function(){return this.toString()},C.prototype[On]=function(){return this},e(T,t),T.of=function(){return T(arguments)},T.prototype.toSeq=function(){return this},T.prototype.toString=function(){return this.__toString("Seq {","}")},T.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},T.prototype.__iterate=function(e,t){return B(this,e,t,!0)},T.prototype.__iterator=function(e,t){return U(this,e,t,!0)},e(M,T),M.prototype.toKeyedSeq=function(){return this},e(N,T),N.of=function(){return N(arguments)},N.prototype.toIndexedSeq=function(){return this},N.prototype.toString=function(){return this.__toString("Seq [","]")},N.prototype.__iterate=function(e,t){return B(this,e,t,!1)},N.prototype.__iterator=function(e,t){return U(this,e,t,!1)},e(D,T),D.of=function(){return D(arguments)},D.prototype.toSetSeq=function(){return this},T.isSeq=L,T.Keyed=M,T.Set=D,T.Indexed=N;var En="@@__IMMUTABLE_SEQ__@@";T.prototype[En]=!0,e(j,N),j.prototype.get=function(e,t){return this.has(e)?this._array[v(this,e)]:t},j.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(e(n[t?r-o:o],o,this)===!1)return o+1;return o},j.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new C(function(){return o>r?w():S(e,o,n[t?r-o++:o++])})},e(R,M),R.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},R.prototype.has=function(e){return this._object.hasOwnProperty(e)},R.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(e(n[a],a,this)===!1)return i+1}return i},R.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new C(function(){var a=r[t?o-i:i];return i++>o?w():S(e,a,n[a])})},R.prototype[dn]=!0,e(A,N),A.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=E(n),o=0;if(O(r))for(var i;!(i=r.next()).done&&e(i.value,o++,this)!==!1;);return o},A.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=E(n);if(!O(r))return new C(w);var o=0;return new C(function(){var t=r.next();return t.done?t:S(e,o++,t.value)})},e(I,N),I.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,o=0;o<r.length;)if(e(r[o],o++,this)===!1)return o;for(var i;!(i=n.next()).done;){var a=i.value;if(r[o]=a,e(a,o++,this)===!1)break}return o},I.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new C(function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return S(e,o,r[o++])})};var kn;e(J,N),J.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},J.prototype.get=function(e,t){return this.has(e)?this._value:t},J.prototype.includes=function(e){return X(this._value,e)},J.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new J(this._value,b(t,n)-g(e,n))},J.prototype.reverse=function(){return this},J.prototype.indexOf=function(e){return X(this._value,e)?0:-1},J.prototype.lastIndexOf=function(e){return X(this._value,e)?this.size:-1},J.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(e(this._value,n,this)===!1)return n+1;return n},J.prototype.__iterator=function(e,t){var n=this,r=0;return new C(function(){return r<n.size?S(e,r++,n._value):w()})},J.prototype.equals=function(e){return e instanceof J?X(this._value,e._value):$(e)};var Pn;e(Q,N),Q.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Q.prototype.get=function(e,t){return this.has(e)?this._start+v(this,e)*this._step:t},Q.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Q.prototype.slice=function(e,t){return y(e,t,this.size)?this:(e=g(e,this.size),t=b(t,this.size),t<=e?new Q(0,0):new Q(this.get(e,this._end),this.get(t,this._end),this._step))},Q.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Q.prototype.lastIndexOf=function(e){return this.indexOf(e)},Q.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(e(o,i,this)===!1)return i+1;o+=t?-r:r}return i},Q.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new C(function(){var a=o;return o+=t?-r:r,i>n?w():S(e,i++,a)})},Q.prototype.equals=function(e){return e instanceof Q?this._start===e._start&&this._end===e._end&&this._step===e._step:$(this,e)};var Tn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var Mn,Nn="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Dn=Object.isExtensible,jn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Rn="function"==typeof WeakMap;Rn&&(Mn=new WeakMap);var An=0,In="__immutablehash__";"function"==typeof Symbol&&(In=Symbol(In));var Ln=16,Fn=255,Vn=0,Kn={};e(fe,te),fe.prototype.toString=function(){return this.__toString("Map {","}")},fe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},fe.prototype.set=function(e,t){return we(this,e,t)},fe.prototype.setIn=function(e,t){return this.updateIn(e,yn,function(){return t})},fe.prototype.remove=function(e){return we(this,e,yn)},fe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return yn})},fe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},fe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Re(this,Nt(e),t,n);return r===yn?void 0:r},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Se()},fe.prototype.merge=function(){return Me(this,void 0,arguments)},fe.prototype.mergeWith=function(e){var t=sn.call(arguments,1);return Me(this,e,t)},fe.prototype.mergeIn=function(e){var t=sn.call(arguments,1);return this.updateIn(e,Se(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},fe.prototype.mergeDeep=function(){ return Me(this,Ne,arguments)},fe.prototype.mergeDeepWith=function(e){var t=sn.call(arguments,1);return Me(this,De(e),t)},fe.prototype.mergeDeepIn=function(e){var t=sn.call(arguments,1);return this.updateIn(e,Se(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},fe.prototype.sort=function(e){return Ze(_t(this,e))},fe.prototype.sortBy=function(e,t){return Ze(_t(this,t,e))},fe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},fe.prototype.asImmutable=function(){return this.__ensureOwner()},fe.prototype.wasAltered=function(){return this.__altered},fe.prototype.__iterator=function(e,t){return new ge(this,e,t)},fe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ce(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fe.isMap=de;var Hn="@@__IMMUTABLE_MAP__@@",Wn=fe.prototype;Wn[Hn]=!0,Wn[pn]=Wn.remove,Wn.removeIn=Wn.deleteIn,pe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(X(n,o[i][0]))return o[i][1];return r},pe.prototype.update=function(e,t,n,r,o,i,a){for(var l=o===yn,s=this.entries,u=0,c=s.length;u<c&&!X(r,s[u][0]);u++);var d=u<c;if(d?s[u][1]===o:l)return this;if(f(a),(l||!d)&&f(i),!l||1!==s.length){if(!d&&!l&&s.length>=Un)return ke(e,s,r,o);var h=e&&e===this.ownerID,v=h?s:p(s);return d?l?u===c-1?v.pop():v[u]=v.pop():v[u]=[r,o]:v.push([r,o]),h?(this.entries=v,this):new pe(e,v)}},he.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=1<<((0===e?t:t>>>e)&mn),i=this.bitmap;return 0===(i&o)?r:this.nodes[Ae(i&o-1)].get(e+hn,t,n,r)},he.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var l=(0===t?n:n>>>t)&mn,s=1<<l,u=this.bitmap,c=0!==(u&s);if(!c&&o===yn)return this;var f=Ae(u&s-1),d=this.nodes,p=c?d[f]:void 0,h=xe(p,e,t+hn,n,r,o,i,a);if(h===p)return this;if(!c&&h&&d.length>=zn)return Te(e,d,u,l,h);if(c&&!h&&2===d.length&&Oe(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&Oe(h))return h;var v=e&&e===this.ownerID,m=c?h?u:u^s:u|s,y=c?h?Ie(d,f,h,v):Fe(d,f,v):Le(d,f,h,v);return v?(this.bitmap=m,this.nodes=y,this):new he(e,m,y)},ve.prototype.get=function(e,t,n,r){void 0===t&&(t=ie(n));var o=(0===e?t:t>>>e)&mn,i=this.nodes[o];return i?i.get(e+hn,t,n,r):r},ve.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var l=(0===t?n:n>>>t)&mn,s=o===yn,u=this.nodes,c=u[l];if(s&&!c)return this;var f=xe(c,e,t+hn,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&(d--,d<Yn))return Pe(e,u,d,l)}else d++;var p=e&&e===this.ownerID,h=Ie(u,l,f,p);return p?(this.count=d,this.nodes=h,this):new ve(e,d,h)},me.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(X(n,o[i][0]))return o[i][1];return r},me.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ie(r));var l=o===yn;if(n!==this.keyHash)return l?this:(f(a),f(i),Ee(this,e,t,n,[r,o]));for(var s=this.entries,u=0,c=s.length;u<c&&!X(r,s[u][0]);u++);var d=u<c;if(d?s[u][1]===o:l)return this;if(f(a),(l||!d)&&f(i),l&&2===c)return new ye(e,this.keyHash,s[1^u]);var h=e&&e===this.ownerID,v=h?s:p(s);return d?l?u===c-1?v.pop():v[u]=v.pop():v[u]=[r,o]:v.push([r,o]),h?(this.entries=v,this):new me(e,this.keyHash,v)},ye.prototype.get=function(e,t,n,r){return X(n,this.entry[0])?this.entry[1]:r},ye.prototype.update=function(e,t,n,r,o,i,a){var l=o===yn,s=X(r,this.entry[0]);return(s?o===this.entry[1]:l)?this:(f(a),l?void f(i):s?e&&e===this.ownerID?(this.entry[1]=o,this):new ye(e,this.keyHash,[r,o]):(f(i),Ee(this,e,t,ie(r),[r,o])))},pe.prototype.iterate=me.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(e(n[t?o-r:r])===!1)return!1},he.prototype.iterate=ve.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&i.iterate(e,t)===!1)return!1}},ye.prototype.iterate=function(e,t){return e(this.entry)},e(ge,C),ge.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return be(e,r.entry)}else if(r.entries){if(n=r.entries.length-1,o<=n)return be(e,r.entries[this._reverse?n-o:o])}else if(n=r.nodes.length-1,o<=n){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return be(e,i.entry);t=this._stack=_e(i,t)}continue}t=this._stack=this._stack.__prev}return w()};var Bn,Un=vn/4,zn=vn/2,Yn=vn/4;e(Ve,ne),Ve.of=function(){return this(arguments)},Ve.prototype.toString=function(){return this.__toString("List [","]")},Ve.prototype.get=function(e,t){if(e=v(this,e),e>=0&&e<this.size){e+=this._origin;var n=Ge(this,e);return n&&n.array[e&mn]}return t},Ve.prototype.set=function(e,t){return ze(this,e,t)},Ve.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ve.prototype.insert=function(e,t){return this.splice(e,0,t)},Ve.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=hn,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ue()},Ve.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Xe(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},Ve.prototype.pop=function(){return Xe(this,0,-1)},Ve.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Xe(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},Ve.prototype.shift=function(){return Xe(this,1)},Ve.prototype.merge=function(){return $e(this,void 0,arguments)},Ve.prototype.mergeWith=function(e){var t=sn.call(arguments,1);return $e(this,e,t)},Ve.prototype.mergeDeep=function(){return $e(this,Ne,arguments)},Ve.prototype.mergeDeepWith=function(e){var t=sn.call(arguments,1);return $e(this,De(e),t)},Ve.prototype.setSize=function(e){return Xe(this,0,e)},Ve.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:Xe(this,g(e,n),b(t,n))},Ve.prototype.__iterator=function(e,t){var n=0,r=We(this,t);return new C(function(){var t=r();return t===$n?w():S(e,n++,t)})},Ve.prototype.__iterate=function(e,t){for(var n,r=0,o=We(this,t);(n=o())!==$n&&e(n,r++,this)!==!1;);return r},Ve.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Be(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Ve.isList=Ke;var qn="@@__IMMUTABLE_LIST__@@",Gn=Ve.prototype;Gn[qn]=!0,Gn[pn]=Gn.remove,Gn.setIn=Wn.setIn,Gn.deleteIn=Gn.removeIn=Wn.removeIn,Gn.update=Wn.update,Gn.updateIn=Wn.updateIn,Gn.mergeIn=Wn.mergeIn,Gn.mergeDeepIn=Wn.mergeDeepIn,Gn.withMutations=Wn.withMutations,Gn.asMutable=Wn.asMutable,Gn.asImmutable=Wn.asImmutable,Gn.wasAltered=Wn.wasAltered,He.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&mn;if(r>=this.array.length)return new He([],e);var o,i=0===r;if(t>0){var a=this.array[r];if(o=a&&a.removeBefore(e,t-hn,n),o===a&&i)return this}if(i&&!o)return this;var l=qe(this,e);if(!i)for(var s=0;s<r;s++)l.array[s]=void 0;return o&&(l.array[r]=o),l},He.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r=n-1>>>t&mn;if(r>=this.array.length)return this;var o;if(t>0){var i=this.array[r];if(o=i&&i.removeAfter(e,t-hn,n),o===i&&r===this.array.length-1)return this}var a=qe(this,e);return a.array.splice(r+1),o&&(a.array[r]=o),a};var Xn,$n={};e(Ze,fe),Ze.of=function(){return this(arguments)},Ze.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ze.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ze.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Ze.prototype.set=function(e,t){return nt(this,e,t)},Ze.prototype.remove=function(e){return nt(this,e,yn)},Ze.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ze.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ze.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ze.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ze.isOrderedMap=Qe,Ze.prototype[dn]=!0,Ze.prototype[pn]=Ze.prototype.remove;var Jn;e(rt,M),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=ut(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=st(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Et(this):0,function(o){return e(o,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Cn,t),r=t?Et(this):0;return new C(function(){var o=n.next();return o.done?o:S(e,t?--r:r++,o.value,o)})},rt.prototype[dn]=!0,e(ot,N),ot.prototype.includes=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Cn,t),r=0;return new C(function(){var t=n.next();return t.done?t:S(e,r++,t.value,t)})},e(it,D),it.prototype.has=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Cn,t);return new C(function(){var t=n.next();return t.done?t:S(e,t.value,t.value,t)})},e(at,M),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Ot(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Cn,t);return new C(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ot(r);var o=i(r);return S(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},ot.prototype.cacheResult=rt.prototype.cacheResult=it.prototype.cacheResult=at.prototype.cacheResult=Tt,e(Dt,te),Dt.prototype.toString=function(){return this.__toString(Rt(this)+" {","}")},Dt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Dt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Dt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=jt(this,Se()))},Dt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Rt(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:jt(this,n)},Dt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:jt(this,t)},Dt.prototype.wasAltered=function(){return this._map.wasAltered()},Dt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},Dt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},Dt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?jt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Zn=Dt.prototype;Zn[pn]=Zn.remove,Zn.deleteIn=Zn.removeIn=Wn.removeIn,Zn.merge=Wn.merge,Zn.mergeWith=Wn.mergeWith,Zn.mergeIn=Wn.mergeIn,Zn.mergeDeep=Wn.mergeDeep,Zn.mergeDeepWith=Wn.mergeDeepWith,Zn.mergeDeepIn=Wn.mergeDeepIn,Zn.setIn=Wn.setIn,Zn.update=Wn.update,Zn.updateIn=Wn.updateIn,Zn.withMutations=Wn.withMutations,Zn.asMutable=Wn.asMutable,Zn.asImmutable=Wn.asImmutable,e(Lt,re),Lt.of=function(){return this(arguments)},Lt.fromKeys=function(e){return this(n(e).keySeq())},Lt.prototype.toString=function(){return this.__toString("Set {","}")},Lt.prototype.has=function(e){return this._map.has(e)},Lt.prototype.add=function(e){return Vt(this,this._map.set(e,!0))},Lt.prototype.remove=function(e){return Vt(this,this._map.remove(e))},Lt.prototype.clear=function(){return Vt(this,this._map.clear())},Lt.prototype.union=function(){var e=sn.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)o(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},Lt.prototype.intersect=function(){var e=sn.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return o(e)});var t=this;return this.withMutations(function(n){t.forEach(function(t){e.every(function(e){return e.includes(t)})||n.remove(t)})})},Lt.prototype.subtract=function(){var e=sn.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return o(e)});var t=this;return this.withMutations(function(n){t.forEach(function(t){e.some(function(e){return e.includes(t)})&&n.remove(t)})})},Lt.prototype.merge=function(){return this.union.apply(this,arguments)},Lt.prototype.mergeWith=function(e){var t=sn.call(arguments,1);return this.union.apply(this,t)},Lt.prototype.sort=function(e){return Wt(_t(this,e))},Lt.prototype.sortBy=function(e,t){return Wt(_t(this,t,e))},Lt.prototype.wasAltered=function(){return this._map.wasAltered()},Lt.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},Lt.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},Lt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Lt.isSet=Ft;var Qn="@@__IMMUTABLE_SET__@@",er=Lt.prototype;er[Qn]=!0,er[pn]=er.remove,er.mergeDeep=er.merge,er.mergeDeepWith=er.mergeWith,er.withMutations=Wn.withMutations,er.asMutable=Wn.asMutable,er.asImmutable=Wn.asImmutable,er.__empty=Ht,er.__make=Kt;var tr;e(Wt,Lt),Wt.of=function(){return this(arguments)},Wt.fromKeys=function(e){return this(n(e).keySeq())},Wt.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Wt.isOrderedSet=Bt;var nr=Wt.prototype;nr[dn]=!0,nr.__empty=zt,nr.__make=Ut;var rr;e(Yt,ne),Yt.of=function(){return this(arguments)},Yt.prototype.toString=function(){return this.__toString("Stack [","]")},Yt.prototype.get=function(e,t){var n=this._head;for(e=v(this,e);n&&e--;)n=n.next;return n?n.value:t},Yt.prototype.peek=function(){return this._head&&this._head.value},Yt.prototype.push=fu