UNPKG

igroot

Version:
13 lines 1.83 MB
/*! * igroot v1.6.6 * * 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.igroot=t(require("react"),require("react-dom")):e.igroot=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(1054)},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(512),a=r(o);t.default=a.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(516),a=r(o),i=n(513),l=r(i),u=n(19),s=r(u);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,s.default)(t)));e.prototype=(0,l.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(a.default?(0,a.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(19),a=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,a.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){e.exports=n(801)()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(233),a=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,a.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) 2017 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)&&r.length){var i=n.apply(null,r);i&&e.push(i)}else if("object"===o)for(var l in r)a.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}var a={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?(n.default=n,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(233),a=r(o);t.default=function(e,t,n){return t in e?(0,a.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){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=o(a),l=n(9),u=o(l),s=n(20),c=o(s),f=n(1),d=r(f),p=n(8),h=o(p),v=n(372),m=r(v),y=n(199),g=o(y),b=n(439),C=o(b),_=n(441),M=n(21),w=o(M),S=n(440),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]]);return n};g.default.add.apply(g.default,(0,c.default)(Object.keys(m).map(function(e){return m[e]}))),(0,S.setTwoToneColor)("#1890ff");var O="outlined",k=void 0,E=function(e){var t,n=e.className,r=e.type,o=e.component,a=e.viewBox,l=e.spin,s=e.children,c=e.theme,f=e.twoToneColor,p=x(e,["className","type","component","viewBox","spin","children","theme","twoToneColor"]);(0,w.default)(Boolean(r||o||s),"Icon should have `type` prop or `component` prop or `children`.");var v=(0,h.default)((t={},(0,u.default)(t,"anticon",!0),(0,u.default)(t,"anticon-"+r,Boolean(r)),t),n),m=(0,h.default)((0,u.default)({},"anticon-spin",!!l||"loading"===r)),y=void 0;if(o){var b=(0,i.default)({},_.svgBaseProps,{className:m,viewBox:a});a||delete b.viewBox,y=d.createElement(o,b,s)}if(s){(0,w.default)(Boolean(a)||1===d.Children.count(s)&&d.isValidElement(s)&&"use"===d.Children.only(s).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon.");var C=(0,i.default)({},_.svgBaseProps,{className:m});y=d.createElement("svg",(0,i.default)({},C,{viewBox:a}),s)}if("string"==typeof r){var M=r;if(c){var S=(0,_.getThemeFromTypeName)(r);(0,w.default)(!S,"This icon already has a theme '"+S+"'."+(" The prop 'theme' "+c+" will be ignored."))}M=(0,_.withThemeSuffix)((0,_.removeTypeTheme)(r),k||c||O),y=d.createElement(g.default,{className:m,type:M,primaryColor:f})}return d.createElement("i",(0,i.default)({},p,{className:v}),y)};E.displayName="Icon",E.createFromIconfontCN=C.default,E.getTwoToneColor=S.getTwoToneColor,E.setTwoToneColor=S.setTwoToneColor,t.default=E,e.exports=t.default},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 a(e)?e:z(e)}function n(e){return i(e)?e:T(e)}function r(e){return l(e)?e:P(e)}function o(e){return a(e)&&!u(e)?e:N(e)}function a(e){return!(!e||!e[sn])}function i(e){return!(!e||!e[cn])}function l(e){return!(!e||!e[fn])}function u(e){return i(e)||l(e)}function s(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 C(e,t,0)}function b(e,t){return C(e,t,t)}function C(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function _(e){this.next=e}function M(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 S(e){return!!k(e)}function x(e){return e&&"function"==typeof e.next}function O(e){var t=k(e);return t&&t.call(e)}function k(e){var t=e&&(wn&&e[wn]||e[Sn]);if("function"==typeof t)return t}function E(e){return e&&"number"==typeof e.length}function z(e){return null===e||void 0===e?j():a(e)?e.toSeq():F(e)}function T(e){return null===e||void 0===e?j().toKeyedSeq():a(e)?i(e)?e.toSeq():e.fromEntrySeq():I(e)}function P(e){return null===e||void 0===e?j():a(e)?i(e)?e.entrySeq():e.toIndexedSeq():R(e)}function N(e){return(null===e||void 0===e?j():a(e)?i(e)?e.entrySeq():e:R(e)).toSetSeq()}function V(e){this._array=e,this.size=e.length}function H(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function L(e){this._iterable=e,this.size=e.length||e.size}function D(e){this._iterator=e,this._iteratorCache=[]}function A(e){return!(!e||!e[On])}function j(){return kn||(kn=new V([]))}function I(e){var t=Array.isArray(e)?new V(e).fromEntrySeq():x(e)?new D(e).fromEntrySeq():S(e)?new L(e).fromEntrySeq():"object"==typeof e?new H(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function R(e){var t=K(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function F(e){var t=K(e)||"object"==typeof e&&new H(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function K(e){return E(e)?new V(e):x(e)?new D(e):S(e)?new L(e):void 0}function B(e,t,n,r){var o=e._cache;if(o){for(var a=o.length-1,i=0;i<=a;i++){var l=o[n?a-i:i];if(t(l[1],r?l[0]:i,e)===!1)return i+1}return i}return e.__iterateUncached(t,n)}function W(e,t,n,r){var o=e._cache;if(o){var a=o.length-1,i=0;return new _(function(){var e=o[n?a-i:i];return i++>a?w():M(t,r?e[0]:i-1,e[1])})}return e.__iteratorUncached(t,n)}function U(e,t){return t?q(t,e,"",{"":e}):Y(e)}function q(e,t,n,r){return Array.isArray(t)?e.call(r,n,P(t).map(function(n,r){return q(e,n,r,t)})):G(t)?e.call(r,n,T(t).map(function(n,r){return q(e,n,r,t)})):t}function Y(e){return Array.isArray(e)?P(e).map(Y).toList():G(e)?T(e).map(Y).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(!a(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||i(e)!==i(t)||l(e)!==l(t)||s(e)!==s(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(s(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 Z(e,t){if(!(this instanceof Z))return new Z(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(En)return En;En=this}}function J(e,t){if(!e)throw new Error(t)}function Q(e,t,n){if(!(this instanceof Q))return new Q(e,t,n);if(J(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(zn)return zn;zn=this}}function ee(){throw TypeError("Abstract")}function te(){}function ne(){}function re(){}function oe(e){return e>>>1&1073741824|3221225471&e}function ae(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>An?ie(e):le(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return ue(e);if("function"==typeof e.toString)return le(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ie(e){var t=Rn[e];return void 0===t&&(t=le(e),In===jn&&(In=0,Rn={}),In++,Rn[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 ue(e){var t;if(Hn&&(t=Tn.get(e),void 0!==t))return t;if(t=e[Dn],void 0!==t)return t;if(!Vn){if(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Dn],void 0!==t)return t;if(t=se(e),void 0!==t)return t}if(t=++Ln,1073741824&Ln&&(Ln=0),Hn)Tn.set(e,t);else{if(void 0!==Nn&&Nn(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Vn)Object.defineProperty(e,Dn,{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[Dn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Dn]=t}}return t}function se(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){J(e!==1/0,"Cannot perform this action with an infinite size.")}function fe(e){return null===e||void 0===e?Me():de(e)&&!s(e)?e:Me().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[Fn])}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&&Ce(e._root)}function be(e,t){return M(e,t[0],t[1])}function Ce(e,t){return{node:e,index:0,__prev:t}}function _e(e,t,n,r){var o=Object.create(Kn);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Me(){return Bn||(Bn=_e(0))}function we(e,t,n){var r,o;if(e._root){var a=c(gn),i=c(bn);if(r=Se(e._root,e.__ownerID,0,void 0,t,n,a,i),!i.value)return e;o=e.size+(a.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?_e(o,r):Me()}function Se(e,t,n,r,o,a,i,l){return e?e.update(t,n,r,o,a,i,l):a===yn?e:(f(l),f(i),new ye(t,r,[o,a]))}function xe(e){return e.constructor===ye||e.constructor===me}function Oe(e,t,n,r,o){if(e.keyHash===r)return new me(t,r,[e.entry,o]);var a,i=(0===n?e.keyHash:e.keyHash>>>n)&mn,l=(0===n?r:r>>>n)&mn,u=i===l?[Oe(e,t,n+hn,r,o)]:(a=new ye(t,r,o),i<l?[e,a]:[a,e]);return new he(t,1<<i|1<<l,u)}function ke(e,t,n,r){e||(e=new d);for(var o=new ye(e,ae(n),[n,r]),a=0;a<t.length;a++){var i=t[a];o=o.update(e,0,void 0,i[0],i[1])}return o}function Ee(e,t,n,r){for(var o=0,a=0,i=new Array(n),l=0,u=1,s=t.length;l<s;l++,u<<=1){var c=t[l];void 0!==c&&l!==r&&(o|=u,i[a++]=c)}return new he(e,o,i)}function ze(e,t,n,r,o){for(var a=0,i=new Array(vn),l=0;0!==n;l++,n>>>=1)i[l]=1&n?t[a++]:void 0;return i[r]=o,new ve(e,a+1,i)}function Te(e,t,r){for(var o=[],i=0;i<r.length;i++){var l=r[i],u=n(l);a(l)||(u=u.map(function(e){return U(e)})),o.push(u)}return Ve(e,t,o)}function Pe(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):X(e,t)?e:t}function Ne(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return X(t,o)?t:o}}function Ve(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 He(e,t,n,r){var o=e===yn,a=t.next();if(a.done){var i=o?n:e,l=r(i);return l===i?e:l}J(o||e&&e.set,"invalid keyPath");var u=a.value,s=o?yn:e.get(u,yn),c=He(s,t,n,r);return c===s?e:c===yn?e.remove(u):(o?Me():e).set(u,c)}function Le(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 De(e,t,n,r){var o=r?e:p(e);return o[t]=n,o}function Ae(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var a=new Array(o),i=0,l=0;l<o;l++)l===t?(a[l]=n,i=-1):a[l]=e[l+i];return a}function je(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),a=0,i=0;i<r;i++)i===t&&(a=1),o[i]=e[i+a];return o}function Ie(e){var t=We();if(null===e||void 0===e)return t;if(Re(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 Fe(n.toArray())):t.withMutations(function(e){e.setSize(o),n.forEach(function(t,n){return e.set(n,t)})}))}function Re(e){return!(!e||!e[Yn])}function Fe(e,t){this.array=e,this.ownerID=t}function Ke(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?u&&u.array:e&&e.array,o=n>a?0:a-n,s=i-n;return s>vn&&(s=vn),function(){if(o===s)return $n;var e=t?--s:o++;return r&&r[e]}}function o(e,r,o){var l,u=e&&e.array,s=o>a?0:a-o>>r,c=(i-o>>r)+1;return c>vn&&(c=vn),function(){for(;;){if(l){var e=l();if(e!==$n)return e;l=null}if(s===c)return $n;var a=t?--c:s++;l=n(u&&u[a],r-hn,o+(a<<r))}}}var a=e._origin,i=e._capacity,l=Ze(i),u=e._tail;return n(e._root,e._level,0)}function Be(e,t,n,r,o,a,i){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=a,l.__hash=i,l.__altered=!1,l}function We(){return Xn||(Xn=Be(0,0,hn))}function Ue(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,a=c(bn);return t>=Ze(e._capacity)?r=qe(r,e.__ownerID,0,t,n,a):o=qe(o,e.__ownerID,e._level,t,n,a),a.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 qe(e,t,n,r,o,a){var i=r>>>n&mn,l=e&&i<e.array.length;if(!l&&void 0===o)return e;var u;if(n>0){var s=e&&e.array[i],c=qe(s,t,n-hn,r,o,a);return c===s?e:(u=Ye(e,t),u.array[i]=c,u)}return l&&e.array[i]===o?e:(f(a),u=Ye(e,t),void 0===o&&i===u.array.length-1?u.array.pop():u.array[i]=o,u)}function Ye(e,t){return t&&e&&t===e.ownerID?e:new Fe(e?e.array.slice():[],t)}function Ge(e,t){if(t>=Ze(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,a=e._capacity,i=o+t,l=void 0===n?a:n<0?a+n:o+n;if(i===o&&l===a)return e;if(i>=l)return e.clear();for(var u=e._level,s=e._root,c=0;i+c<0;)s=new Fe(s&&s.array.length?[void 0,s]:[],r),u+=hn,c+=1<<u;c&&(i+=c,o+=c,l+=c,a+=c);for(var f=Ze(a),p=Ze(l);p>=1<<u+hn;)s=new Fe(s&&s.array.length?[s]:[],r),u+=hn;var h=e._tail,v=p<f?Ge(e,l-1):p>f?new Fe([],r):h;if(h&&p>f&&i<a&&h.array.length){s=Ye(s,r);for(var m=s,y=u;y>hn;y-=hn){var g=f>>>y&mn;m=m.array[g]=Ye(m.array[g],r)}m.array[f>>>hn&mn]=h}if(l<a&&(v=v&&v.removeAfter(r,0,l)),i>=p)i-=p,l-=p,u=hn,s=null,v=v&&v.removeBefore(r,0,i);else if(i>o||p<f){for(c=0;s;){var b=i>>>u&mn;if(b!==p>>>u&mn)break;b&&(c+=(1<<u)*b),u-=hn,s=s.array[b]}s&&i>o&&(s=s.removeBefore(r,u,i-c)),s&&p<f&&(s=s.removeAfter(r,u,p-c)),c&&(i-=c,l-=c)}return e.__ownerID?(e.size=l-i,e._origin=i,e._capacity=l,e._level=u,e._root=s,e._tail=v,e.__hash=void 0,e.__altered=!0,e):Be(i,l,u,s,v)}function $e(e,t,n){for(var o=[],i=0,l=0;l<n.length;l++){var u=n[l],s=r(u);s.size>i&&(i=s.size),a(u)||(s=s.map(function(e){return U(e)})),o.push(s)}return i>e.size&&(e=e.setSize(i)),Ve(e,t,o)}function Ze(e){return e<vn?0:e-1>>>hn<<hn}function Je(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)&&s(e)}function et(e,t,n,r){var o=Object.create(Je.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function tt(){return Zn||(Zn=et(Me(),We()))}function nt(e,t,n){var r,o,a=e._map,i=e._list,l=a.get(t),u=void 0!==l;if(n===yn){if(!u)return e;i.size>=vn&&i.size>=2*a.size?(o=i.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=a.remove(t),o=l===i.size-1?i.pop():i.set(l,void 0))}else if(u){if(n===i.get(l)[1])return e;r=a,o=i.set(l,[t,n])}else r=a.set(t,i.size),o=i.set(i.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 at(e){this._iter=e,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function lt(e){var t=Et(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=zt,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===Mn){var r=e.__iterator(t,n);return new _(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===_n?Cn:_n,n)},t}function ut(e,t,n){var r=Et(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var a=e.get(r,yn);return a===yn?o:t.call(n,a,r,e)},r.__iterateUncached=function(r,o){var a=this;return e.__iterate(function(e,o,i){return r(t.call(n,e,o,i),o,a)!==!1},o)},r.__iteratorUncached=function(r,o){var a=e.__iterator(Mn,o);return new _(function(){var o=a.next();if(o.done)return o;var i=o.value,l=i[0];return M(r,l,t.call(n,i[1],l,e),o)})},r}function st(e,t){var n=Et(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=zt,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=Et(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 a=e.get(r,yn);return a!==yn&&t.call(n,a,r,e)?a:o}),o.__iterateUncached=function(o,a){var i=this,l=0;return e.__iterate(function(e,a,u){if(t.call(n,e,a,u))return l++,o(e,r?a:l-1,i)},a),l},o.__iteratorUncached=function(o,a){var i=e.__iterator(Mn,a),l=0;return new _(function(){for(;;){var a=i.next();if(a.done)return a;var u=a.value,s=u[0],c=u[1];if(t.call(n,c,s,e))return M(o,r?s:l++,c,a)}})},o}function ft(e,t,n){var r=fe().asMutable();return e.__iterate(function(o,a){r.update(t.call(n,o,a,e),0,function(e){return e+1})}),r.asImmutable()}function dt(e,t,n){var r=i(e),o=(s(e)?Je():fe()).asMutable();e.__iterate(function(a,i){o.update(t.call(n,a,i,e),function(e){return e=e||[],e.push(r?[i,a]:a),e})});var a=kt(e);return o.map(function(t){return St(e,a(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 a=g(t,o),i=b(n,o);if(a!==a||i!==i)return pt(e.toSeq().cacheResult(),t,n,r);var l,u=i-a;u===u&&(l=u<0?0:u);var s=Et(e);return s.size=0===l?l:e.size&&l||void 0,!r&&A(e)&&l>=0&&(s.get=function(t,n){return t=v(this,t),t>=0&&t<l?e.get(t+a,n):n}),s.__iterateUncached=function(t,n){var o=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var i=0,u=!0,s=0;return e.__iterate(function(e,n){if(!u||!(u=i++<a))return s++,t(e,r?n:s-1,o)!==!1&&s!==l}),s},s.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var o=0!==l&&e.__iterator(t,n),i=0,u=0;return new _(function(){for(;i++<a;)o.next();if(++u>l)return w();var e=o.next();return r||t===_n?e:t===Cn?M(t,u-1,void 0,e):M(t,u-1,e.value[1],e)})},s}function ht(e,t,n){var r=Et(e);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var i=0;return e.__iterate(function(e,o,l){return t.call(n,e,o,l)&&++i&&r(e,o,a)}),i},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(Mn,o),l=!0;return new _(function(){if(!l)return w();var e=i.next();if(e.done)return e;var o=e.value,u=o[0],s=o[1];return t.call(n,s,u,a)?r===Mn?e:M(r,u,s,e):(l=!1,w())})},r}function vt(e,t,n,r){var o=Et(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var l=!0,u=0;return e.__iterate(function(e,a,s){if(!l||!(l=t.call(n,e,a,s)))return u++,o(e,r?a:u-1,i)}),u},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var l=e.__iterator(Mn,a),u=!0,s=0;return new _(function(){var e,a,c;do{if(e=l.next(),e.done)return r||o===_n?e:o===Cn?M(o,s++,void 0,e):M(o,s++,e.value[1],e);var f=e.value;a=f[0],c=f[1],u&&(u=t.call(n,c,a,i))}while(u);return o===Mn?e:M(o,a,c,e)})},o}function mt(e,t){var r=i(e),o=[e].concat(t).map(function(e){return a(e)?r&&(e=n(e)):e=r?I(e):R(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var u=o[0];if(u===e||r&&i(u)||l(e)&&l(u))return u}var s=new V(o);return r?s=s.toKeyedSeq():l(e)||(s=s.toSetSeq()),s=s.flatten(!0),s.size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),s}function yt(e,t,n){var r=Et(e);return r.__iterateUncached=function(r,o){function i(e,s){var c=this;e.__iterate(function(e,o){return(!t||s<t)&&a(e)?i(e,s+1):r(e,n?o:l++,c)===!1&&(u=!0),!u},o)}var l=0,u=!1;return i(e,0),l},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),l=[],u=0;return new _(function(){for(;i;){var e=i.next();if(e.done===!1){var s=e.value;if(r===Mn&&(s=s[1]),t&&!(l.length<t)||!a(s))return n?e:M(r,u++,s,e);l.push(i),i=s.__iterator(r,o)}else i=l.pop()}return w()})},r}function gt(e,t,n){var r=kt(e);return e.toSeq().map(function(o,a){return r(t.call(n,o,a,e))}).flatten(!0)}function bt(e,t){var n=Et(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,a=0;return e.__iterate(function(e,r){return(!a||n(t,a++,o)!==!1)&&n(e,a++,o)!==!1},r),a},n.__iteratorUncached=function(n,r){var o,a=e.__iterator(_n,r),i=0;return new _(function(){return(!o||i%2)&&(o=a.next(),o.done)?o:i%2?M(n,i++,t):M(n,i++,o.value,o)})},n}function Ct(e,t,n){t||(t=Tt);var r=i(e),o=0,a=e.toSeq().map(function(t,r){return[r,t,o++,n?n(t,r,e):t]}).toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?T(a):l(e)?P(a):N(a)}function _t(e,t,n){if(t||(t=Tt),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return Mt(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return Mt(t,e,n)?n:e})}function Mt(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=Et(e);return o.size=new V(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(_n,t),o=0;!(n=r.next()).done&&e(n.value,o++,this)!==!1;);return o},o.__iteratorUncached=function(e,o){var a=r.map(function(e){return e=t(e),O(o?e.reverse():e)}),i=0,l=!1;return new _(function(){var t;return l||(t=a.map(function(e){return e.next()}),l=t.some(function(e){return e.done})),l?w():M(e,i++,n.apply(null,t.map(function(e){return e.value})))})},o}function St(e,t){return A(e)?t:e.constructor(t)}function xt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ot(e){return ce(e.size),h(e)}function kt(e){return i(e)?n:l(e)?r:o}function Et(e){return Object.create((i(e)?T:l(e)?P:N).prototype)}function zt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function Tt(e,t){return e>t?1:e<t?-1:0}function Pt(e){var n=O(e);if(!n){if(!E(e))throw new TypeError("Expected iterable or array-like: "+e);n=O(t(e))}return n}function Nt(e,t){var n,r=function(a){if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var i=Object.keys(e);Lt(o,i),o.size=i.length,o._name=t,o._keys=i,o._defaultValues=e}this._map=fe(a)},o=r.prototype=Object.create(Jn);return o.constructor=r,r}function Vt(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Ht(e){return e._name||e.constructor.name||"Record"}function Lt(e,t){try{t.forEach(Dt.bind(void 0,e))}catch(e){}}function Dt(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){J(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function At(e){return null===e||void 0===e?Ft():jt(e)&&!s(e)?e:Ft().withMutations(function(t){var n=o(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function jt(e){return!(!e||!e[Qn])}function It(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 Rt(e,t){var n=Object.create(er);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ft(){return tr||(tr=Rt(Me()))}function Kt(e){return null===e||void 0===e?Ut():Bt(e)?e:Ut().withMutations(function(t){var n=o(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Bt(e){return jt(e)&&s(e)}function Wt(e,t){var n=Object.create(nr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ut(){return rr||(rr=Wt(tt()))}function qt(e){return null===e||void 0===e?Xt():Yt(e)?e:Xt().unshiftAll(e)}function Yt(e){return!(!e||!e[or])}function Gt(e,t,n,r){var o=Object.create(ar);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Xt(){return ir||(ir=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 Zt(e,t){return t}function Jt(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=s(e),n=i(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+ln(ae(e),ae(t))|0}:function(e,t){r=r+ln(ae(e),ae(t))|0}:t?function(e){r=31*r+ae(e)|0}:function(e){r=r+ae(e)|0});return an(o,r)}function an(e,t){return t=Pn(t,3432918353),t=Pn(t<<15|t>>>-15,461845907),t=Pn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Pn(t^t>>>16,2246822507),t=Pn(t^t>>>13,3266489909),t=oe(t^t>>>16)}function ln(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var un=Array.prototype.slice;e(n,t),e(r,t),e(o,t),t.isIterable=a,t.isKeyed=i,t.isIndexed=l,t.isAssociative=u,t.isOrdered=s,t.Keyed=n,t.Indexed=r,t.Set=o;var sn="@@__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},Cn=0,_n=1,Mn=2,wn="function"==typeof Symbol&&Symbol.iterator,Sn="@@iterator",xn=wn||Sn;_.prototype.toString=function(){return"[Iterator]"},_.KEYS=Cn,_.VALUES=_n,_.ENTRIES=Mn,_.prototype.inspect=_.prototype.toSource=function(){return this.toString()},_.prototype[xn]=function(){return this},e(z,t),z.of=function(){return z(arguments)},z.prototype.toSeq=function(){return this},z.prototype.toString=function(){return this.__toString("Seq {","}")},z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},z.prototype.__iterate=function(e,t){return B(this,e,t,!0)},z.prototype.__iterator=function(e,t){return W(this,e,t,!0)},e(T,z),T.prototype.toKeyedSeq=function(){return this},e(P,z),P.of=function(){return P(arguments)},P.prototype.toIndexedSeq=function(){return this},P.prototype.toString=function(){return this.__toString("Seq [","]")},P.prototype.__iterate=function(e,t){return B(this,e,t,!1)},P.prototype.__iterator=function(e,t){return W(this,e,t,!1)},e(N,z),N.of=function(){return N(arguments)},N.prototype.toSetSeq=function(){return this},z.isSeq=A,z.Keyed=T,z.Set=N,z.Indexed=P;var On="@@__IMMUTABLE_SEQ__@@";z.prototype[On]=!0,e(V,P),V.prototype.get=function(e,t){return this.has(e)?this._array[v(this,e)]:t},V.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},V.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new _(function(){return o>r?w():M(e,o,n[t?r-o++:o++])})},e(H,T),H.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},H.prototype.has=function(e){return this._object.hasOwnProperty(e)},H.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,a=0;a<=o;a++){var i=r[t?o-a:a];if(e(n[i],i,this)===!1)return a+1}return a},H.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,a=0;return new _(function(){var i=r[t?o-a:a];return a++>o?w():M(e,i,n[i])})},H.prototype[dn]=!0,e(L,P),L.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=O(n),o=0;if(x(r))for(var a;!(a=r.next()).done&&e(a.value,o++,this)!==!1;);return o},L.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=O(n);if(!x(r))return new _(w);var o=0;return new _(function(){var t=r.next();return t.done?t:M(e,o++,t.value)})},e(D,P),D.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 a;!(a=n.next()).done;){var i=a.value;if(r[o]=i,e(i,o++,this)===!1)break}return o},D.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new _(function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return M(e,o,r[o++])})};var kn;e(Z,P),Z.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Z.prototype.get=function(e,t){return this.has(e)?this._value:t},Z.prototype.includes=function(e){return X(this._value,e)},Z.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new Z(this._value,b(t,n)-g(e,n))},Z.prototype.reverse=function(){return this},Z.prototype.indexOf=function(e){return X(this._value,e)?0:-1},Z.prototype.lastIndexOf=function(e){return X(this._value,e)?this.size:-1},Z.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},Z.prototype.__iterator=function(e,t){var n=this,r=0;return new _(function(){return r<n.size?M(e,r++,n._value):w()})},Z.prototype.equals=function(e){return e instanceof Z?X(this._value,e._value):$(e)};var En;e(Q,P),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,a=0;a<=n;a++){if(e(o,a,this)===!1)return a+1;o+=t?-r:r}return a},Q.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,a=0;return new _(function(){var i=o;return o+=t?-r:r,a>n?w():M(e,a++,i)})},Q.prototype.equals=function(e){return e instanceof Q?this._start===e._start&&this._end===e._end&&this._step===e._step:$(this,e)};var zn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var Tn,Pn="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},Nn=Object.isExtensible,Vn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Hn="function"==typeof WeakMap;Hn&&(Tn=new WeakMap);var Ln=0,Dn="__immutablehash__";"function"==typeof Symbol&&(Dn=Symbol(Dn));var An=16,jn=255,In=0,Rn={};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=He(this,Pt(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):Me()},fe.prototype.merge=function(){return Te(this,void 0,arguments)},fe.prototype.mergeWith=function(e){var t=un.call(arguments,1);return Te(this,e,t)},fe.prototype.mergeIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,Me(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},fe.prototype.mergeDeep=function(){return Te(this,Pe,arguments)},fe.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return Te(this,Ne(e),t)},fe.prototype.mergeDeepIn=function(e){var t=un.call(arguments,1);return this.updateIn(e,Me(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},fe.prototype.sort=function(e){return Je(Ct(this,e))},fe.prototype.sortBy=function(e,t){return Je(Ct(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?_e(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fe.isMap=de;var Fn="@@__IMMUTABLE_MAP__@@",Kn=fe.prototype;Kn[Fn]=!0,Kn[pn]=Kn.remove,Kn.removeIn=Kn.deleteIn,pe.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a<i;a++)if(X(n,o[a][0]))return o[a][1];return r},pe.prototype.update=function(e,t,n,r,o,a,i){for(var l=o===yn,u=this.entries,s=0,c=u.length;s<c&&!X(r,u[s][0]);s++);var d=s<c;if(d?u[s][1]===o:l)return this;if(f(i),(l||!d)&&f(a),!l||1!==u.length){if(!d&&!l&&u.length>=Wn)return ke(e,u,r,o);var h=e&&e===this.ownerID,v=h?u:p(u);return d?l?s===c-1?v.pop():v[s]=v.pop():v[s]=[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=ae(n));var o=1<<((0===e?t:t>>>e)&mn),a=this.bitmap;return 0===(a&o)?r:this.nodes[Le(a&o-1)].get(e+hn,t,n,r)},he.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=ae(r));var l=(0===t?n:n>>>t)&mn,u=1<<l,s=this.bitmap,c=0!==(s&u);if(!c&&o===yn)return this;var f=Le(s&u-1),d=this.nodes,p=c?d[f]:void 0,h=Se(p,e,t+hn,n,r,o,a,i);if(h===p)return this;if(!c&&h&&d.length>=Un)return ze(e,d,s,l,h);if(c&&!h&&2===d.length&&xe(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&xe(h))return h;var v=e&&e===this.ownerID,m=c?h?s:s^u:s|u,y=c?h?De(d,f,h,v):je(d,f,v):Ae(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=ae(n));var o=(0===e?t:t>>>e)&mn,a=this.nodes[o];return a?a.get(e+hn,t,n,r):r},ve.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=ae(r));var l=(0===t?n:n>>>t)&mn,u=o===yn,s=this.nodes,c=s[l];if(u&&!c)return this;var f=Se(c,e,t+hn,n,r,o,a,i);if(f===c)return this;var d=this.count;if(c){if(!f&&(d--,d<qn))return Ee(e,s,d,l)}else d++;var p=e&&e===this.ownerID,h=De(s,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,a=0,i=o.length;a<i;a++)if(X(n,o[a][0]))return o[a][1];return r},me.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=ae(r));var l=o===yn;if(n!==this.keyHash)return l?this:(f(i),f(a),Oe(this,e,t,n,[r,o]));for(var u=this.entries,s=0,c=u.length;s<c&&!X(r,u[s][0]);s++);var d=s<c;if(d?u[s][1]===o:l)return this;if(f(i),(l||!d)&&f(a),l&&2===c)return new ye(e,this.keyHash,u[1^s]);var h=e&&e===this.ownerID,v=h?u:p(u);return d?l?s===c-1?v.pop():v[s]=v.pop():v[s]=[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,a,i){var l=o===yn,u=X(r,this.entry[0]);return(u?o===this.entry[1]:l)?this:(f(i),l?void f(a):u?e&&e===this.ownerID?(this.entry[1]=o,this):new ye(e,this.keyHash,[r,o]):(f(a),Oe(this,e,t,ae(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 a=n[t?o-r:r];if(a&&a.iterate(e,t)===!1)return!1}},ye.prototype.iterate=function(e,t){return e(this.entry)},e(ge,_),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 a=r.nodes[this._reverse?n-o:o];if(a){if(a.entry)return be(e,a.entry);t=this._stack=Ce(a,t)}continue}t=this._stack=this._stack.__prev}return w()};var Bn,Wn=vn/4,Un=vn/2,qn=vn/4;e(Ie,ne),Ie.of=function(){return this(arguments)},Ie.prototype.toString=function(){return this.__toString("List [","]")},Ie.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},Ie.prototype.set=function(e,t){return Ue(this,e,t)},Ie.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ie.prototype.insert=function(e,t){return this.splice(e,0,t)},Ie.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):We()},Ie.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])})},Ie.prototype.pop=function(){return Xe(this,0,-1)},Ie.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])})},Ie.prototype.shift=function(){return Xe(this,1)},Ie.prototype.merge=function(){return $e(this,void 0,arguments)},Ie.prototype.mergeWith=function(e){var t=un.call(arguments,1);return $e(this,e,t)},Ie.prototype.mergeDeep=function(){return $e(this,Pe,arguments)},Ie.prototype.mergeDeepWith=function(e){var t=un.call(arguments,1);return $e(this,Ne(e),t)},Ie.prototype.setSize=function(e){return Xe(this,0,e)},Ie.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:Xe(this,g(e,n),b(t,n))},Ie.prototype.__iterator=function(e,t){var n=0,r=Ke(this,t);return new _(function(){var t=r();return t===$n?w():M(e,n++,t)})},Ie.prototype.__iterate=function(e,t){for(var n,r=0,o=Ke(this,t);(n=o())!==$n&&e(n,r++,this)!==!1;);return r},Ie.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)},Ie.isList=Re;var Yn="@@__IMMUTABLE_LIST__@@",Gn=Ie.prototype;Gn[Yn]=!0,Gn[pn]=Gn.remove,Gn.setIn=Kn.setIn,Gn.deleteIn=Gn.removeIn=Kn.removeIn,Gn.update=Kn.update,Gn.updateIn=Kn.updateIn,Gn.mergeIn=Kn.mergeIn,Gn.mergeDeepIn=Kn.mergeDeepIn,Gn.withMutations=Kn.withMutations,Gn.asMutable=Kn.asMutable,Gn.asImmutable=Kn.asImmutable,Gn.wasAltered=Kn.wasAltered,Fe.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 Fe([],e);var o,a=0===r;if(t>0){var i=this.array[r];if(o=i&&i.removeBefore(e,t-hn,n),o===i&&a)return this}if(a&&!o)return this;var l=Ye(this,e);if(!a)for(var u=0;u<r;u++)l.array[u]=void 0;return o&&(l.array[r]=o),l},Fe.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 a=this.array[r];if(o=a&&a.removeAfter(e,t-hn,n),o===a&&r===this.array.length-1)return this}var i=Ye(this,e);return i.array.splice(r+1),o&&(i.array[r]=o),i};var Xn,$n={};e(Je,fe),Je.of=function(){return this(arguments)},Je.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Je.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Je.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Je.prototype.set=function(e,t){return nt(this,e,t)},Je.prototype.remove=function(e){return nt(this,e,yn)},Je.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Je.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Je.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Je.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)},Je.isOrderedMap=Qe,Je.prototype[dn]=!0,Je.prototype[pn]=Je.prototype.remove;var Zn;e(rt,T),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=st(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=ut(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?Ot(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(_n,t),r=t?Ot(this):0;return new _(function(){var o=n.next();return o.done?o:M(e,t?--r:r++,o.value,o)})},rt.prototype[dn]=!0,e(ot,P),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(_n,t),r=0;return new _(function(){var t=n.next();return t.done?t:M(e,r++,t.value,t)})},e(at,N),at.prototype.has=function(e){return this._iter.includes(e)},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t);return new _(function(){var t=n.next();return t.done?t:M(e,t.value,t.value,t)})},e(it,T),it.prototype.entrySeq=function(){return this._iter.toSeq()},it.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){xt(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t);return new _(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){xt(r);var o=a(r);return M(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}})},ot.prototype.cacheResult=rt.prototype.cacheResult=at.prototype.cacheResult=it.prototype.cacheResult=zt,e(Nt,te),Nt.prototype.toString=function(){return this.__toString(Ht(this)+" {","}")},Nt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Nt.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},Nt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Vt(this,Me()))},Nt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Ht(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Vt(this,n)},Nt.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:Vt(this,t)},Nt.prototype.wasAltered=function(){return this._map.wasAltered()},Nt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},Nt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},Nt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Vt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Jn=Nt.prototype;Jn[pn]=Jn.remove,Jn.deleteIn=Jn.removeIn=Kn.removeIn,Jn.merge=Kn.merge,Jn.mergeWith=Kn.mergeWith,Jn.mergeIn=Kn.mergeIn,Jn.mergeDeep=Kn.mergeDeep,Jn.mergeDeepWith=Kn.mergeDeepWith,Jn.mergeDeepIn=Kn.mergeDeepIn,Jn.setIn=Kn.setIn,Jn.update=Kn.update,Jn.updateIn=Kn.updateIn,Jn.withMutations=Kn.withMutations,Jn.asMutable=Kn.asMutable,Jn.asImmutable=Kn.asImmutable,e(At,re),At.of=function(){return this(arguments)},At.fromKeys=function(e){return this(n(e).keySeq())},At.prototype.toString=function(){return this.__toString("Set {","}")},At.prototype.has=function(e){return this._map.has(e)},At.prototype.add=function(e){return It(this,this._map.set(e,!0))},At.prototype.remove=function(e){return It(this,this._map.remove(e))},At.prototype.clear=function(){return It(this,this._map.clear())},At.prototype.un