ygd
Version:
An enterprise-class UI design language and React-based implementation
15 lines • 2.01 MB
JavaScript
/*!
*
* ygd v3.15.13
*
* 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"),require("moment")):"function"==typeof define&&define.amd?define(["react","react-dom","moment"],t):"object"==typeof exports?exports.ygd=t(require("react"),require("react-dom"),require("moment")):e.ygd=t(e.React,e.ReactDOM,e.moment)}(window,function(n,r,o){return c={},i.m=a=[function(e,t,n){e.exports=n(299)()},function(e,t){e.exports=n},function(e,t,n){var r;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var a={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"==r||"number"==r)e.push(n);else if(Array.isArray(n)&&n.length){var o=c.apply(null,n);o&&e.push(o)}else if("object"==r)for(var i in n)a.call(n,i)&&n[i]&&e.push(i)}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(r=function(){return c}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(289),i=(r=o)&&r.__esModule?r:{default:r};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,n){"use strict";t.__esModule=!0;var r,o=n(106),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";n.d(t,"b",function(){return v}),n.d(t,"a",function(){return m}),n.d(t,"d",function(){return g});function r(n){return s.createElement(m,null,function(e){var t=(0,e.getPrefixCls)("empty");switch(n){case"Table":case"List":return s.createElement(a.a,{image:c,className:"".concat(t,"-normal")});case"Select":case"TreeSelect":case"Cascader":case"Transfer":return s.createElement(a.a,{image:c,className:"".concat(t,"-small")});default:return s.createElement(a.a,null)}})}var s=n(1),o=n(55),i=n.n(o),a=n(74),c="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K";function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||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}).apply(this,arguments)}function f(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),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=["getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton"],y=i()({getPrefixCls:function(e,t){return t||"yg-".concat(e)},renderEmpty:r}),m=y.Consumer,b=function(){function e(){var l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(l=p(this,h(e).apply(this,arguments))).getPrefixCls=function(e,t){var n=l.props.prefixCls,r=void 0===n?"yg":n;return t||(e?"".concat(r,"-").concat(e):r)},l.renderProvider=function(e){var t=l.props,n=t.children,r=t.getPopupContainer,o=t.renderEmpty,i=t.csp,a=t.autoInsertSpaceInButton,c=u({},e,{getPrefixCls:l.getPrefixCls,csp:i,autoInsertSpaceInButton:a});return r&&(c.getPopupContainer=r),o&&(c.renderEmpty=o),s.createElement(y.Provider,{value:c},n)},l}var t,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(e,s["Component"]),t=e,(n=[{key:"render",value:function(){return s.createElement(m,null,this.renderProvider)}}])&&f(t.prototype,n),r&&f(t,r),e}();function g(i){return function(o){function e(r){return s.createElement(m,null,function(e){var t=i.prefixCls,n=(0,e.getPrefixCls)(t,r.prefixCls);return s.createElement(o,u({},e,r,{prefixCls:n}))})}var t=o.constructor,n=t&&t.displayName||o.name||"Component";return e.displayName="withConfigConsumer(".concat(n,")"),e}}b.defaultProps={autoInsertSpaceInButton:!1};t.c=b},function(e,t,n){"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";t.__esModule=!0;var r=a(n(324)),o=a(n(328)),i=a(n(106));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t){e.exports=r},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(182),i=(r=o)&&r.__esModule?r:{default:r};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,t,n){"use strict";function l(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function s(n){this.setState(function(e){var t=this.constructor.getDerivedStateFromProps(n,e);return null!=t?t:null}.bind(this))}function u(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function r(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=l,t.componentWillReceiveProps=s),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=u;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return r}),u.__suppressDeprecationWarning=s.__suppressDeprecationWarning=l.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(182),i=(r=o)&&r.__esModule?r:{default:r};function a(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)}}t.default=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}},function(e,t,n){"use strict";var r=n(484),o=n(86),i=n(33),a=n(500),c=n(61),l=n(148),s=n(151),u=n(228),f=n(501),p=n(230),h=n(104),d=n(30),v=n(226),y=n(20),m=n(159),b=n(244),g=n(71),w=n(561),O={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:h,EntityInstance:v,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:c,ContentState:l,SelectionState:g,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:d,RichUtils:b,DefaultDraftBlockRenderMap:s,DefaultDraftInlineStyle:u,convertFromHTML:n(242),convertFromRaw:n(564),convertToRaw:w,genKey:n(45),getDefaultKeyBinding:n(245),getVisibleSelectionRect:n(569)};e.exports=O},function(e,t){e.exports=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var s=i[l];if(!c(s))return!1;var u=e[s],f=t[s];if(!1===(o=n?n.call(r,u,f,s):void 0)||void 0===o&&u!==f)return!1}return!0}},function(f,e,p){(function(e){for(var r=p(301),t="undefined"==typeof window?e:window,n=["moz","webkit"],o="AnimationFrame",i=t["request"+o],a=t["cancel"+o]||t["cancelRequest"+o],c=0;!i&&c<n.length;c++)i=t[n[c]+"Request"+o],a=t[n[c]+"Cancel"+o]||t[n[c]+"CancelRequest"+o];if(!i||!a){var l=0,s=0,u=[];i=function(e){if(0===u.length){var t=r(),n=Math.max(0,1e3/60-(t-l));l=n+t,setTimeout(function(){for(var e=u.slice(0),t=u.length=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return u.push({handle:++s,callback:e,cancelled:!1}),s},a=function(e){for(var t=0;t<u.length;t++)u[t].handle===e&&(u[t].cancelled=!0)}}f.exports=function(e){return i.call(t,e)},f.exports.cancel=function(){a.apply(t,arguments)},f.exports.polyfill=function(e){(e=e||t).requestAnimationFrame=i,e.cancelAnimationFrame=a}}).call(this,p(26))},function(e,t,n){e.exports=function(){"use strict";var r=Array.prototype.slice;function e(e,t){if(t){e.prototype=Object.create(t.prototype)}e.prototype.constructor=e}function l(e){return u(e)?e:Y(e)}function c(e){return f(e)?e:G(e)}function s(e){return p(e)?e:X(e)}function o(e){return u(e)&&!h(e)?e:$(e)}function u(e){return!!(e&&e[t])}function f(e){return!!(e&&e[n])}function p(e){return!!(e&&e[i])}function h(e){return f(e)||p(e)}function d(e){return!!(e&&e[a])}e(c,l),e(s,l),e(o,l),l.isIterable=u,l.isKeyed=f,l.isIndexed=p,l.isAssociative=h,l.isOrdered=d,l.Keyed=c,l.Indexed=s,l.Set=o;var t="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_KEYED__@@",i="@@__IMMUTABLE_INDEXED__@@",a="@@__IMMUTABLE_ORDERED__@@",v="delete",g=5,y=1<<g,w=y-1,b={},m={value:false},O={value:false};function C(e){e.value=false;return e}function S(e){e&&(e.value=true)}function x(){}function E(e,t){t=t||0;var n=Math.max(0,e.length-t);var r=new Array(n);for(var o=0;o<n;o++){r[o]=e[o+t]}return r}function k(e){if(e.size===undefined){e.size=e.__iterate(M)}return e.size}function _(e,t){if(typeof t!=="number"){var n=t>>>0;if(""+n!==t||n===4294967295){return NaN}t=n}return t<0?k(e)+t:t}function M(){return true}function z(e,t,n){return(e===0||n!==undefined&&e<=-n)&&(t===undefined||n!==undefined&&t>=n)}function P(e,t){return j(e,t,0)}function T(e,t){return j(e,t,t)}function j(e,t,n){return e===undefined?n:e<0?Math.max(0,t+e):t===undefined?e:Math.min(t,e)}var N=0,V=1,D=2,L=typeof Symbol==="function"&&Symbol.iterator,H="@@iterator",A=L||H;function I(e){this.next=e}function R(e,t,n,r){var o=e===0?t:e===1?n:[t,n];r?r.value=o:r={value:o,done:false};return r}function F(){return{value:undefined,done:true}}function K(e){return!!W(e)}function B(e){return e&&typeof e.next==="function"}function U(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(L&&e[L]||e[H]);if(typeof t==="function"){return t}}function q(e){return e&&typeof e.length==="number"}function Y(e){return e===null||e===undefined?ae():u(e)?e.toSeq():se(e)}function G(e){return e===null||e===undefined?ae().toKeyedSeq():u(e)?f(e)?e.toSeq():e.fromEntrySeq():ce(e)}function X(e){return e===null||e===undefined?ae():!u(e)?le(e):f(e)?e.entrySeq():e.toIndexedSeq()}function $(e){return(e===null||e===undefined?ae():!u(e)?le(e):f(e)?e.entrySeq():e).toSetSeq()}I.prototype.toString=function(){return"[Iterator]"},I.KEYS=N,I.VALUES=V,I.ENTRIES=D,I.prototype.inspect=I.prototype.toSource=function(){return this.toString()},I.prototype[A]=function(){return this},e(Y,l),Y.of=function(){return Y(arguments)},Y.prototype.toSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq {","}")},Y.prototype.cacheResult=function(){if(!this._cache&&this.__iterateUncached){this._cache=this.entrySeq().toArray();this.size=this._cache.length}return this},Y.prototype.__iterate=function(e,t){return fe(this,e,t,true)},Y.prototype.__iterator=function(e,t){return pe(this,e,t,true)},e(G,Y),G.prototype.toKeyedSeq=function(){return this},e(X,Y),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(e,t){return fe(this,e,t,false)},X.prototype.__iterator=function(e,t){return pe(this,e,t,false)},e($,Y),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},Y.isSeq=ie,Y.Keyed=G,Y.Set=$,Y.Indexed=X;var J="@@__IMMUTABLE_SEQ__@@",Q,Z,ee;function te(e){this._array=e;this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e;this._keys=t;this.size=t.length}function re(e){this._iterable=e;this.size=e.length||e.size}function oe(e){this._iterator=e;this._iteratorCache=[]}function ie(e){return!!(e&&e[J])}function ae(){return Q||(Q=new te([]))}function ce(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():B(e)?new oe(e).fromEntrySeq():K(e)?new re(e).fromEntrySeq():typeof e==="object"?new ne(e):undefined;if(!t){throw new TypeError("Expected Array or iterable object of [k, v] entries, "+"or keyed object: "+e)}return t}function le(e){var t=ue(e);if(!t){throw new TypeError("Expected Array or iterable object of values: "+e)}return t}function se(e){var t=ue(e)||typeof e==="object"&&new ne(e);if(!t){throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e)}return t}function ue(e){return q(e)?new te(e):B(e)?new oe(e):K(e)?new re(e):undefined}function fe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1;for(var a=0;a<=i;a++){var c=o[n?i-a:a];if(t(c[1],r?c[0]:a,e)===false){return a+1}}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1;var a=0;return new I(function(){var e=o[n?i-a:a];return a++>i?F():R(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function he(e,t){return t?de(t,e,"",{"":e}):ve(e)}function de(n,r,e,t){if(Array.isArray(r)){return n.call(t,e,X(r).map(function(e,t){return de(n,e,t,r)}))}if(ye(r)){return n.call(t,e,G(r).map(function(e,t){return de(n,e,t,r)}))}return r}function ve(e){if(Array.isArray(e)){return X(e).map(ve).toList()}if(ye(e)){return G(e).map(ve).toMap()}return e}function ye(e){return e&&(e.constructor===Object||e.constructor===undefined)}function me(e,t){if(e===t||e!==e&&t!==t){return true}if(!e||!t){return false}if(typeof e.valueOf==="function"&&typeof t.valueOf==="function"){e=e.valueOf();t=t.valueOf();if(e===t||e!==e&&t!==t){return true}if(!e||!t){return false}}if(typeof e.equals==="function"&&typeof t.equals==="function"&&e.equals(t)){return true}return false}function be(n,e){if(n===e){return true}if(!u(e)||n.size!==undefined&&e.size!==undefined&&n.size!==e.size||n.__hash!==undefined&&e.__hash!==undefined&&n.__hash!==e.__hash||f(n)!==f(e)||p(n)!==p(e)||d(n)!==d(e)){return false}if(n.size===0&&e.size===0){return true}var r=!h(n);if(d(n)){var o=n.entries();return e.every(function(e,t){var n=o.next().value;return n&&me(n[1],e)&&(r||me(n[0],t))})&&o.next().done}var i=false;if(n.size===undefined){if(e.size===undefined){if(typeof n.cacheResult==="function"){n.cacheResult()}}else{i=true;var t=n;n=e;e=t}}var a=true;var c=e.__iterate(function(e,t){if(r?!n.has(e):i?!me(e,n.get(t,b)):!me(n.get(t,b),e)){a=false;return false}});return a&&n.size===c}function ge(e,t){if(!(this instanceof ge)){return new ge(e,t)}this._value=e;this.size=t===undefined?Infinity:Math.max(0,t);if(this.size===0){if(Z){return Z}Z=this}}function we(e,t){if(!e)throw new Error(t)}function Oe(e,t,n){if(!(this instanceof Oe)){return new Oe(e,t,n)}we(n!==0,"Cannot step a Range by 0");e=e||0;if(t===undefined){t=Infinity}n=n===undefined?1:Math.abs(n);if(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);if(this.size===0){if(ee){return ee}ee=this}}function Ce(){throw TypeError("Abstract")}function Se(){}function xe(){}function Ee(){}Y.prototype[J]=true,e(te,X),te.prototype.get=function(e,t){return this.has(e)?this._array[_(this,e)]:t},te.prototype.__iterate=function(e,t){var n=this._array;var r=n.length-1;for(var o=0;o<=r;o++){if(e(n[t?r-o:o],o,this)===false){return o+1}}return o},te.prototype.__iterator=function(e,t){var n=this._array;var r=n.length-1;var o=0;return new I(function(){return o>r?F():R(e,o,n[t?r-o++:o++])})},e(ne,G),ne.prototype.get=function(e,t){if(t!==undefined&&!this.has(e)){return t}return this._object[e]},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){var n=this._object;var r=this._keys;var o=r.length-1;for(var i=0;i<=o;i++){var a=r[t?o-i:i];if(e(n[a],a,this)===false){return i+1}}return i},ne.prototype.__iterator=function(t,n){var r=this._object;var o=this._keys;var i=o.length-1;var a=0;return new I(function(){var e=o[n?i-a:a];return a++>i?F():R(t,e,r[e])})},ne.prototype[a]=true,e(re,X),re.prototype.__iterateUncached=function(e,t){if(t){return this.cacheResult().__iterate(e,t)}var n=this._iterable;var r=U(n);var o=0;if(B(r)){var i;while(!(i=r.next()).done){if(e(i.value,o++,this)===false){break}}}return o},re.prototype.__iteratorUncached=function(t,e){if(e){return this.cacheResult().__iterator(t,e)}var n=this._iterable;var r=U(n);if(!B(r)){return new I(F)}var o=0;return new I(function(){var e=r.next();return e.done?e:R(t,o++,e.value)})},e(oe,X),oe.prototype.__iterateUncached=function(e,t){if(t){return this.cacheResult().__iterate(e,t)}var n=this._iterator;var r=this._iteratorCache;var o=0;while(o<r.length){if(e(r[o],o++,this)===false){return o}}var i;while(!(i=n.next()).done){var a=i.value;r[o]=a;if(e(a,o++,this)===false){break}}return o},oe.prototype.__iteratorUncached=function(t,e){if(e){return this.cacheResult().__iterator(t,e)}var n=this._iterator;var r=this._iteratorCache;var o=0;return new I(function(){if(o>=r.length){var e=n.next();if(e.done){return e}r[o]=e.value}return R(t,o,r[o++])})},e(ge,X),ge.prototype.toString=function(){if(this.size===0){return"Repeat []"}return"Repeat [ "+this._value+" "+this.size+" times ]"},ge.prototype.get=function(e,t){return this.has(e)?this._value:t},ge.prototype.includes=function(e){return me(this._value,e)},ge.prototype.slice=function(e,t){var n=this.size;return z(e,t,n)?this:new ge(this._value,T(t,n)-P(e,n))},ge.prototype.reverse=function(){return this},ge.prototype.indexOf=function(e){if(me(this._value,e)){return 0}return-1},ge.prototype.lastIndexOf=function(e){if(me(this._value,e)){return this.size}return-1},ge.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++){if(e(this._value,n,this)===false){return n+1}}return n},ge.prototype.__iterator=function(e,t){var n=this;var r=0;return new I(function(){return r<n.size?R(e,r++,n._value):F()})},ge.prototype.equals=function(e){return e instanceof ge?me(this._value,e._value):be(e)},e(Oe,X),Oe.prototype.toString=function(){if(this.size===0){return"Range []"}return"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Oe.prototype.get=function(e,t){return this.has(e)?this._start+_(this,e)*this._step:t},Oe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Oe.prototype.slice=function(e,t){if(z(e,t,this.size)){return this}e=P(e,this.size);t=T(t,this.size);if(t<=e){return new Oe(0,0)}return new Oe(this.get(e,this._end),this.get(t,this._end),this._step)},Oe.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},Oe.prototype.lastIndexOf=function(e){return this.indexOf(e)},Oe.prototype.__iterate=function(e,t){var n=this.size-1;var r=this._step;var o=t?this._start+n*r:this._start;for(var i=0;i<=n;i++){if(e(o,i,this)===false){return i+1}o+=t?-r:r}return i},Oe.prototype.__iterator=function(t,n){var r=this.size-1;var o=this._step;var i=n?this._start+r*o:this._start;var a=0;return new I(function(){var e=i;i+=n?-o:o;return a>r?F():R(t,a++,e)})},Oe.prototype.equals=function(e){return e instanceof Oe?this._start===e._start&&this._end===e._end&&this._step===e._step:be(this,e)},e(Ce,l),e(Se,Ce),e(xe,Ce),e(Ee,Ce),Ce.Keyed=Se,Ce.Indexed=xe,Ce.Set=Ee;var ke=typeof Math.imul==="function"&&Math.imul(4294967295,2)===-2?Math.imul:function e(t,n){t=t|0;n=n|0;var r=t&65535;var o=n&65535;return r*o+((t>>>16)*o+r*(n>>>16)<<16>>>0)|0};function _e(e){return e>>>1&1073741824|e&3221225471}function Me(e){if(e===false||e===null||e===undefined){return 0}if(typeof e.valueOf==="function"){e=e.valueOf();if(e===false||e===null||e===undefined){return 0}}if(e===true){return 1}var t=typeof e;if(t==="number"){var n=e|0;if(n!==e){n^=e*4294967295}while(e>4294967295){e/=4294967295;n^=e}return _e(n)}if(t==="string"){return e.length>Ie?ze(e):Pe(e)}if(typeof e.hashCode==="function"){return e.hashCode()}if(t==="object"){return Te(e)}if(typeof e.toString==="function"){return Pe(e.toString())}throw new Error("Value type "+t+" cannot be hashed.")}function ze(e){var t=Ke[e];if(t===undefined){t=Pe(e);if(Fe===Re){Fe=0;Ke={}}Fe++;Ke[e]=t}return t}function Pe(e){var t=0;for(var n=0;n<e.length;n++){t=31*t+e.charCodeAt(n)|0}return _e(t)}function Te(e){var t;if(De){t=Le.get(e);if(t!==undefined){return t}}t=e[Ae];if(t!==undefined){return t}if(!Ne){t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ae];if(t!==undefined){return t}t=Ve(e);if(t!==undefined){return t}}t=++He;if(He&1073741824){He=0}if(De){Le.set(e,t)}else if(je!==undefined&&je(e)===false){throw new Error("Non-extensible objects are not allowed as keys.")}else if(Ne){Object.defineProperty(e,Ae,{enumerable:false,configurable:false,writable:false,value:t})}else if(e.propertyIsEnumerable!==undefined&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable){e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)};e.propertyIsEnumerable[Ae]=t}else if(e.nodeType!==undefined){e[Ae]=t}else{throw new Error("Unable to set a non-enumerable property on object.")}return t}var je=Object.isExtensible,Ne=function(){try{Object.defineProperty({},"@",{});return true}catch(e){return false}}();function Ve(e){if(e&&e.nodeType>0){switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}}var De=typeof WeakMap==="function",Le;if(De){Le=new WeakMap}var He=0,Ae="__immutablehash__";if(typeof Symbol==="function"){Ae=Symbol(Ae)}var Ie=16,Re=255,Fe=0,Ke={};function Be(e){we(e!==Infinity,"Cannot perform this action with an infinite size.")}function Ue(t){return t===null||t===undefined?ot():We(t)&&!d(t)?t:ot().withMutations(function(n){var e=c(t);Be(e.size);e.forEach(function(e,t){return n.set(t,e)})})}function We(e){return!!(e&&e[qe])}e(Ue,Se),Ue.prototype.toString=function(){return this.__toString("Map {","}")},Ue.prototype.get=function(e,t){return this._root?this._root.get(0,undefined,e,t):t},Ue.prototype.set=function(e,t){return it(this,e,t)},Ue.prototype.setIn=function(e,t){return this.updateIn(e,b,function(){return t})},Ue.prototype.remove=function(e){return it(this,e,b)},Ue.prototype.deleteIn=function(e){return this.updateIn(e,function(){return b})},Ue.prototype.update=function(e,t,n){return arguments.length===1?e(this):this.updateIn([e],t,n)},Ue.prototype.updateIn=function(e,t,n){if(!n){n=t;t=undefined}var r=yt(this,Cn(e),t,n);return r===b?undefined:r},Ue.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=0;this._root=null;this.__hash=undefined;this.__altered=true;return this}return ot()},Ue.prototype.merge=function(){return pt(this,undefined,arguments)},Ue.prototype.mergeWith=function(e){var t=r.call(arguments,1);return pt(this,e,t)},Ue.prototype.mergeIn=function(e){var t=r.call(arguments,1);return this.updateIn(e,ot(),function(e){return typeof e.merge==="function"?e.merge.apply(e,t):t[t.length-1]})},Ue.prototype.mergeDeep=function(){return pt(this,ht,arguments)},Ue.prototype.mergeDeepWith=function(e){var t=r.call(arguments,1);return pt(this,dt(e),t)},Ue.prototype.mergeDeepIn=function(e){var t=r.call(arguments,1);return this.updateIn(e,ot(),function(e){return typeof e.mergeDeep==="function"?e.mergeDeep.apply(e,t):t[t.length-1]})},Ue.prototype.sort=function(e){return Kt(fn(this,e))},Ue.prototype.sortBy=function(e,t){return Kt(fn(this,t,e))},Ue.prototype.withMutations=function(e){var t=this.asMutable();e(t);return t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ue.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)},Ue.prototype.asImmutable=function(){return this.__ensureOwner()},Ue.prototype.wasAltered=function(){return this.__altered},Ue.prototype.__iterator=function(e,t){return new et(this,e,t)},Ue.prototype.__iterate=function(t,e){var n=this;var r=0;this._root&&this._root.iterate(function(e){r++;return t(e[1],e[0],n)},e);return r},Ue.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}if(!e){this.__ownerID=e;this.__altered=false;return this}return rt(this.size,this._root,e,this.__hash)},Ue.isMap=We;var qe="@@__IMMUTABLE_MAP__@@",Ye=Ue.prototype,Ge;function Xe(e,t){this.ownerID=e;this.entries=t}function $e(e,t,n){this.ownerID=e;this.bitmap=t;this.nodes=n}function Je(e,t,n){this.ownerID=e;this.count=t;this.nodes=n}function Qe(e,t,n){this.ownerID=e;this.keyHash=t;this.entries=n}function Ze(e,t,n){this.ownerID=e;this.keyHash=t;this.entry=n}function et(e,t,n){this._type=t;this._reverse=n;this._stack=e._root&&nt(e._root)}function tt(e,t){return R(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ye);o.size=e;o._root=t;o.__ownerID=n;o.__hash=r;o.__altered=false;return o}function ot(){return Ge||(Ge=rt(0))}function it(e,t,n){var r;var o;if(!e._root){if(n===b){return e}o=1;r=new Xe(e.__ownerID,[[t,n]])}else{var i=C(m);var a=C(O);r=at(e._root,e.__ownerID,0,undefined,t,n,i,a);if(!a.value){return e}o=e.size+(i.value?n===b?-1:1:0)}if(e.__ownerID){e.size=o;e._root=r;e.__hash=undefined;e.__altered=true;return e}return r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,c){if(!e){if(i===b){return e}S(c);S(a);return new Ze(t,r,[o,i])}return e.update(t,n,r,o,i,a,c)}function ct(e){return e.constructor===Ze||e.constructor===Qe}function lt(e,t,n,r,o){if(e.keyHash===r){return new Qe(t,r,[e.entry,o])}var i=(n===0?e.keyHash:e.keyHash>>>n)&w;var a=(n===0?r:r>>>n)&w;var c;var l=i===a?[lt(e,t,n+g,r,o)]:(c=new Ze(t,r,o),i<a?[e,c]:[c,e]);return new $e(t,1<<i|1<<a,l)}function st(e,t,n,r){if(!e){e=new x}var o=new Ze(e,Me(n),[n,r]);for(var i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,undefined,a[0],a[1])}return o}function ut(e,t,n,r){var o=0;var i=0;var a=new Array(n);for(var c=0,l=1,s=t.length;c<s;c++,l<<=1){var u=t[c];if(u!==undefined&&c!==r){o|=l;a[i++]=u}}return new $e(e,o,a)}function ft(e,t,n,r,o){var i=0;var a=new Array(y);for(var c=0;n!==0;c++,n>>>=1){a[c]=n&1?t[i++]:undefined}a[r]=o;return new Je(e,i+1,a)}function pt(e,t,n){var r=[];for(var o=0;o<n.length;o++){var i=n[o];var a=c(i);if(!u(i)){a=a.map(function(e){return he(e)})}r.push(a)}return vt(e,t,r)}function ht(e,t,n){return e&&e.mergeDeep&&u(t)?e.mergeDeep(t):me(e,t)?e:t}function dt(o){return function(e,t,n){if(e&&e.mergeDeepWith&&u(t)){return e.mergeDeepWith(o,t)}var r=o(e,t,n);return me(e,r)?e:r}}function vt(e,o,n){n=n.filter(function(e){return e.size!==0});if(n.length===0){return e}if(e.size===0&&!e.__ownerID&&n.length===1){return e.constructor(n[0])}return e.withMutations(function(r){var e=o?function(t,n){r.update(n,b,function(e){return e===b?t:o(e,t,n)})}:function(e,t){r.set(t,e)};for(var t=0;t<n.length;t++){n[t].forEach(e)}})}function yt(e,t,n,r){var o=e===b;var i=t.next();if(i.done){var a=o?n:e;var c=r(a);return c===a?e:c}we(o||e&&e.set,"invalid keyPath");var l=i.value;var s=o?b:e.get(l,b);var u=yt(s,t,n,r);return u===s?e:u===b?e.remove(l):(o?ot():e).set(l,u)}function mt(e){e=e-(e>>1&1431655765);e=(e&858993459)+(e>>2&858993459);e=e+(e>>4)&252645135;e=e+(e>>8);e=e+(e>>16);return e&127}function bt(e,t,n,r){var o=r?e:E(e);o[t]=n;return o}function gt(e,t,n,r){var o=e.length+1;if(r&&t+1===o){e[t]=n;return e}var i=new Array(o);var a=0;for(var c=0;c<o;c++){if(c===t){i[c]=n;a=-1}else{i[c]=e[c+a]}}return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r){e.pop();return e}var o=new Array(r);var i=0;for(var a=0;a<r;a++){if(a===t){i=1}o[a]=e[a+i]}return o}Ye[qe]=true,Ye[v]=Ye.remove,Ye.removeIn=Ye.deleteIn,Xe.prototype.get=function(e,t,n,r){var o=this.entries;for(var i=0,a=o.length;i<a;i++){if(me(n,o[i][0])){return o[i][1]}}return r},Xe.prototype.update=function(e,t,n,r,o,i,a){var c=o===b;var l=this.entries;var s=0;for(var u=l.length;s<u;s++){if(me(r,l[s][0])){break}}var f=s<u;if(f?l[s][1]===o:c){return this}S(a);(c||!f)&&S(i);if(c&&l.length===1){return}if(!f&&!c&&l.length>=Ot){return st(e,l,r,o)}var p=e&&e===this.ownerID;var h=p?l:E(l);if(f){if(c){s===u-1?h.pop():h[s]=h.pop()}else{h[s]=[r,o]}}else{h.push([r,o])}if(p){this.entries=h;return this}return new Xe(e,h)},$e.prototype.get=function(e,t,n,r){if(t===undefined){t=Me(n)}var o=1<<((e===0?t:t>>>e)&w);var i=this.bitmap;return(i&o)===0?r:this.nodes[mt(i&o-1)].get(e+g,t,n,r)},$e.prototype.update=function(e,t,n,r,o,i,a){if(n===undefined){n=Me(r)}var c=(t===0?n:n>>>t)&w;var l=1<<c;var s=this.bitmap;var u=(s&l)!==0;if(!u&&o===b){return this}var f=mt(s&l-1);var p=this.nodes;var h=u?p[f]:undefined;var d=at(h,e,t+g,n,r,o,i,a);if(d===h){return this}if(!u&&d&&p.length>=Ct){return ft(e,p,s,c,d)}if(u&&!d&&p.length===2&&ct(p[f^1])){return p[f^1]}if(u&&d&&p.length===1&&ct(d)){return d}var v=e&&e===this.ownerID;var y=u?d?s:s^l:s|l;var m=u?d?bt(p,f,d,v):wt(p,f,v):gt(p,f,d,v);if(v){this.bitmap=y;this.nodes=m;return this}return new $e(e,y,m)},Je.prototype.get=function(e,t,n,r){if(t===undefined){t=Me(n)}var o=(e===0?t:t>>>e)&w;var i=this.nodes[o];return i?i.get(e+g,t,n,r):r},Je.prototype.update=function(e,t,n,r,o,i,a){if(n===undefined){n=Me(r)}var c=(t===0?n:n>>>t)&w;var l=o===b;var s=this.nodes;var u=s[c];if(l&&!u){return this}var f=at(u,e,t+g,n,r,o,i,a);if(f===u){return this}var p=this.count;if(!u){p++}else if(!f){p--;if(p<St){return ut(e,s,p,c)}}var h=e&&e===this.ownerID;var d=bt(s,c,f,h);if(h){this.count=p;this.nodes=d;return this}return new Je(e,p,d)},Qe.prototype.get=function(e,t,n,r){var o=this.entries;for(var i=0,a=o.length;i<a;i++){if(me(n,o[i][0])){return o[i][1]}}return r},Qe.prototype.update=function(e,t,n,r,o,i,a){if(n===undefined){n=Me(r)}var c=o===b;if(n!==this.keyHash){if(c){return this}S(a);S(i);return lt(this,e,t,n,[r,o])}var l=this.entries;var s=0;for(var u=l.length;s<u;s++){if(me(r,l[s][0])){break}}var f=s<u;if(f?l[s][1]===o:c){return this}S(a);(c||!f)&&S(i);if(c&&u===2){return new Ze(e,this.keyHash,l[s^1])}var p=e&&e===this.ownerID;var h=p?l:E(l);if(f){if(c){s===u-1?h.pop():h[s]=h.pop()}else{h[s]=[r,o]}}else{h.push([r,o])}if(p){this.entries=h;return this}return new Qe(e,this.keyHash,h)},Ze.prototype.get=function(e,t,n,r){return me(n,this.entry[0])?this.entry[1]:r},Ze.prototype.update=function(e,t,n,r,o,i,a){var c=o===b;var l=me(r,this.entry[0]);if(l?o===this.entry[1]:c){return this}S(a);if(c){S(i);return}if(l){if(e&&e===this.ownerID){this.entry[1]=o;return this}return new Ze(e,this.keyHash,[r,o])}S(i);return lt(this,e,t,Me(r),[r,o])},Xe.prototype.iterate=Qe.prototype.iterate=function(e,t){var n=this.entries;for(var r=0,o=n.length-1;r<=o;r++){if(e(n[t?o-r:r])===false){return false}}},$e.prototype.iterate=Je.prototype.iterate=function(e,t){var n=this.nodes;for(var r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&i.iterate(e,t)===false){return false}}},Ze.prototype.iterate=function(e,t){return e(this.entry)},e(et,I),et.prototype.next=function(){var e=this._type;var t=this._stack;while(t){var n=t.node;var r=t.index++;var o;if(n.entry){if(r===0){return tt(e,n.entry)}}else if(n.entries){o=n.entries.length-1;if(r<=o){return tt(e,n.entries[this._reverse?o-r:r])}}else{o=n.nodes.length-1;if(r<=o){var i=n.nodes[this._reverse?o-r:r];if(i){if(i.entry){return tt(e,i.entry)}t=this._stack=nt(i,t)}continue}}t=this._stack=this._stack.__prev}return F()};var Ot=y/4,Ct=y/2,St=y/4;function xt(e){var t=Vt();if(e===null||e===undefined){return t}if(Et(e)){return e}var r=s(e);var o=r.size;if(o===0){return t}Be(o);if(o>0&&o<y){return Nt(0,o,g,null,new Mt(r.toArray()))}return t.withMutations(function(n){n.setSize(o);r.forEach(function(e,t){return n.set(t,e)})})}function Et(e){return!!(e&&e[kt])}e(xt,xe),xt.of=function(){return this(arguments)},xt.prototype.toString=function(){return this.__toString("List [","]")},xt.prototype.get=function(e,t){e=_(this,e);if(e>=0&&e<this.size){e+=this._origin;var n=At(this,e);return n&&n.array[e&w]}return t},xt.prototype.set=function(e,t){return Dt(this,e,t)},xt.prototype.remove=function(e){return!this.has(e)?this:e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1)},xt.prototype.insert=function(e,t){return this.splice(e,0,t)},xt.prototype.clear=function(){if(this.size===0){return this}if(this.__ownerID){this.size=this._origin=this._capacity=0;this._level=g;this._root=this._tail=null;this.__hash=undefined;this.__altered=true;return this}return Vt()},xt.prototype.push=function(){var n=arguments;var r=this.size;return this.withMutations(function(e){It(e,0,r+n.length);for(var t=0;t<n.length;t++){e.set(r+t,n[t])}})},xt.prototype.pop=function(){return It(this,0,-1)},xt.prototype.unshift=function(){var n=arguments;return this.withMutations(function(e){It(e,-n.length);for(var t=0;t<n.length;t++){e.set(t,n[t])}})},xt.prototype.shift=function(){return It(this,1)},xt.prototype.merge=function(){return Rt(this,undefined,arguments)},xt.prototype.mergeWith=function(e){var t=r.call(arguments,1);return Rt(this,e,t)},xt.prototype.mergeDeep=function(){return Rt(this,ht,arguments)},xt.prototype.mergeDeepWith=function(e){var t=r.call(arguments,1);return Rt(this,dt(e),t)},xt.prototype.setSize=function(e){return It(this,0,e)},xt.prototype.slice=function(e,t){var n=this.size;if(z(e,t,n)){return this}return It(this,P(e,n),T(t,n))},xt.prototype.__iterator=function(t,e){var n=0;var r=jt(this,e);return new I(function(){var e=r();return e===zt?F():R(t,n++,e)})},xt.prototype.__iterate=function(e,t){var n=0;var r=jt(this,t);var o;while((o=r())!==zt){if(e(o,n++,this)===false){break}}return n},xt.prototype.__ensureOwner=function(e){if(e===this.__ownerID){return this}if(!e){this.__ownerID=e;return this}return Nt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash)},xt.isList=Et;var kt="@@__IMMUTABLE_LIST__@@",_t=xt.prototype;function Mt(e,t){this.array=e;this.ownerID=t}_t[kt]=true,_t[v]=_t.remove,_t.setIn=Ye.setIn,_t.deleteIn=_t.removeIn=Ye.removeIn,_t.update=Ye.update,_t.updateIn=Ye.updateIn,_t.mergeIn=Ye.mergeIn,_t.mergeDeepIn=Ye.mergeDeepIn,_t.withMutations=Ye.withMutations,_t.asMutable=Ye.asMutable,_t.asImmutable=Ye.asImmutable,_t.wasAltered=Ye.wasAltered,Mt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:false||this.array.length===0){return this}var r=n>>>t&w;if(r>=this.array.length){return new Mt([],e)}var o=r===0;var i;if(t>0){var a=this.array[r];i=a&&a.removeBefore(e,t-g,n);if(i===a&&o){return this}}if(o&&!i){return this}var c=Ht(this,e);if(!o){for(var l=0;l<r;l++){c.array[l]=undefined}}if(i){c.array[r]=i}return c},Mt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||this.array.length===0){return this}var r=n-1>>>t&w;if(r>=this.array.length){return this}var o;if(t>0){var i=this.array[r];o=i&&i.removeAfter(e,t-g,n);if(o===i&&r===this.array.length-1){return this}}var a=Ht(this,e);a.array.splice(r+1);if(o){a.array[r]=o}return a};var zt={},Pt,Tt;function jt(e,l){var s=e._origin;var u=e._capacity;var i=Ft(u);var a=e._tail;return f(e._root,e._level,0);function f(e,t,n){return t===0?r(e,n):o(e,t,n)}function r(e,t){var n=t===i?a&&a.array:e&&e.array;var r=t>s?0:s-t;var o=u-t;if(o>y){o=y}return function(){if(r===o){return zt}var e=l?--o:r++;return n&&n[e]}}function o(e,n,r){var o;var i=e&&e.array;var a=r>s?0:s-r>>n;var c=(u-r>>n)+1;if(c>y){c=y}return function(){do{if(o){var e=o();if(e!==zt){return e}o=null}if(a===c){return zt}var t=l?--c:a++;o=f(i&&i[t],n-g,r+(t<<n))}while(true)}}}function Nt(e,t,n,r,o,i,a){var c=Object.create(_t);c.size=t-e;c._origin=e;c._capacity=t;c._level=n;c._root=r;c._tail=o;c.__ownerID=i;c.__hash=a;c.__altered=false;return c}function Vt(){return Pt||(Pt=Nt(0,0,g))}function Dt(e,t,n){t=_(e,t);if(t!==t){return e}if(t>=e.size||t<0){return e.withMutations(function(e){t<0?It(e,t).set(0,n):It(e,0,t+1).set(t,n)})}t+=e._origin;var r=e._tail;var o=e._root;var i=C(O);if(t>=Ft(e._capacity)){r=Lt(r,e.__ownerID,0,t,n,i)}else{o=Lt(o,e.__ownerID,e._level,t,n,i)}if(!i.value){return e}if(e.__ownerID){e._root=o;e._tail=r;e.__hash=undefined;e.__altered=true;return e}return Nt(e._origin,e._capacity,e._level,o,r)}function Lt(e,t,n,r,o,i){var a=r>>>n&w;var c=e&&a<e.array.length;if(!c&&o===undefined){return e}var l;if(n>0){var s=e&&e.array[a];var u=Lt(s,t,n-g,r,o,i);if(u===s){return e}l=Ht(e,t);l.array[a]=u;return l}if(c&&e.array[a]===o){return e}S(i);l=Ht(e,t);if(o===undefined&&a===l.array.length-1){l.array.pop()}else{l.array[a]=o}return l}function Ht(e,t){if(t&&e&&t===e.ownerID){return e}return new Mt(e?e.array.slice():[],t)}function At(e,t){if(t>=Ft(e._capacity)){return e._tail}if(t<1<<e._level+g){var n=e._root;var r=e._level;while(n&&r>0){n=n.array[t>>>r&w];r-=g}return n}}function It(e,t,n){if(t!==undefined){t=t|0}if(n!==undefined){n=n|0}var r=e.__ownerID||new x;var o=e._origin;var i=e._capacity;var a=o+t;var c=n===undefined?i:n<0?i+n:o+n;if(a===o&&c===i){return e}if(a>=c){return e.clear()}var l=e._level;var s=e._root;var u=0;while(a+u<0){s=new Mt(s&&s.array.length?[undefined,s]:[],r);l+=g;u+=1<<l}if(u){a+=u;o+=u;c+=u;i+=u}var f=Ft(i);var p=Ft(c);while(p>=1<<l+g){s=new Mt(s&&s.array.length?[s]:[],r);l+=g}var h=e._tail;var d=p<f?At(e,c-1):p>f?new Mt([],r):h;if(h&&p>f&&a<i&&h.array.length){s=Ht(s,r);var v=s;for(var y=l;y>g;y-=g){var m=f>>>y&w;v=v.array[m]=Ht(v.array[m],r)}v.array[f>>>g&w]=h}if(c<i){d=d&&d.removeAfter(r,0,c)}if(a>=p){a-=p;c-=p;l=g;s=null;d=d&&d.removeBefore(r,0,a)}else if(a>o||p<f){u=0;while(s){var b=a>>>l&w;if(b!==p>>>l&w){break}if(b){u+=(1<<l)*b}l-=g;s=s.array[b]}if(s&&a>o){s=s.removeBefore(r,l,a-u)}if(s&&p<f){s=s.removeAfter(r,l,p-u)}if(u){a-=u;c-=u}}if(e.__ownerID){e.size=c-a;e._origin=a;e._capacity=c;e._level=l;e._root=s;e._tail=d;e.__hash=undefined;e.__altered=true;return e}return Nt(a,c,l,s,d)}function Rt(e,t,n){var r=[];var o=0;for(var i=0;i<n.length;i++){var a=n[i];var c=s(a);if(c.size>o){o=c.size}if(!u(a)){c=c.map(function(e){return he(e)})}r.push(c)}if(o>e.size){e=e.setSize(o)}return vt(e,t,r)}function Ft(e){return e<y?0:e-1>>>g<<g}function Kt(t){return t===null||t===undefined?Wt():Bt(t)?t:Wt().withMutations(function(n){var e=c(t);Be(e.size);e.forEach(function(e,t){return n.set(t,e)})})}function Bt(e){return We(e)&&d(e)}function Ut(e,t,n,r){var o=Object.create(Kt.prototype);o.size=e?e.size:0;o._map=e;o._list=t;o.__ownerID=n;o.__hash=r;return o}function Wt(){return Tt||(Tt=Ut(ot(),Vt()))}function qt(e,t,n){var r=e._map;var o=e._list;var i=r.get(t);var a=i!==undefined;var c;var l;if(n===b){if(!a){return e}if(o.size>=y&&o.size>=r.size*2){l=o.filter(function(e,t){return e!==undefined&&i!==t});c=l.toKeyedSeq().map(function(e){return e[0]}).flip().toMap();if(e.__ownerID){c.__ownerID=l.__ownerID=e.__ownerID}}else{c=r.remove(t);l=i===o.size-1?o.pop():o.set(i,undefined)}}else{if(a){if(n===o.get(i)[1]){return e}c=r;l=o.set(i,[t,n])}else{c=r.set(t,o.size);l=o.set(o.size,[t,n])}}if(e.__ownerID){e.size=c.size;e._map=c;e._list=l;e.__hash=undefined;return e}return Ut(c,l)}function Yt(e,t){this._iter=e;this._useKeys=t;this.size=e.size}function Gt(e){this._iter=e;this.size=e.size}function Xt(e){this._iter=e;this.size=e.size}function $t(e){this._iter=e;this.size=e.size}function Jt(o){var e=gn(o);e._iter=o;e.size=o.size;e.flip=function(){return o};e.reverse=function(){var e=o.reverse.apply(this);e.flip=function(){return o.reverse()};return e};e.has=function(e){return o.includes(e)};e.includes=function(e){return o.has(e)};e.cacheResult=wn;e.__iterateUncached=function(n,e){var r=this;return o.__iterate(function(e,t){return n(t,e,r)!==false},e)};e.__iteratorUncached=function(e,t){if(e===D){var n=o.__iterator(e,t);return new I(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1];e.value[1]=t}return e})}return o.__iterator(e===V?N:V,t)};return e}function Qt(i,a,c){var e=gn(i);e.size=i.size;e.has=function(e){return i.has(e)};e.get=function(e,t){var n=i.get(e,b);return n===b?t:a.call(c,n,e,i)};e.__iterateUncached=function(r,e){var o=this;return i.__iterate(function(e,t,n){return r(a.call(c,e,t,n),t,o)!==false},e)};e.__iteratorUncached=function(r,e){var o=i.__iterator(D,e);return new I(function(){var e=o.next();if(e.done){return e}var t=e.value;var n=t[0];return R(r,n,a.call(c,t[1],n,i),e)})};return e}function Zt(o,n){var e=gn(o);e._iter=o;e.size=o.size;e.reverse=function(){return o};if(o.flip){e.flip=function(){var e=Jt(o);e.reverse=function(){return o.flip()};return e}}e.get=function(e,t){return o.get(n?e:-1-e,t)};e.has=function(e){return o.has(n?e:-1-e)};e.includes=function(e){return o.includes(e)};e.cacheResult=wn;e.__iterate=function(n,e){var r=this;return o.__iterate(function(e,t){return n(e,t,r)},!e)};e.__iterator=function(e,t){return o.__iterator(e,!t)};return e}function en(c,l,s,u){var e=gn(c);if(u){e.has=function(e){var t=c.get(e,b);return t!==b&&!!l.call(s,t,e,c)};e.get=function(e,t){var n=c.get(e,b);return n!==b&&l.call(s,n,e,c)?n:t}}e.__iterateUncached=function(r,e){var o=this;var i=0;c.__iterate(function(e,t,n){if(l.call(s,e,t,n)){i++;return r(e,u?t:i-1,o)}},e);return i};e.__iteratorUncached=function(o,e){var i=c.__iterator(D,e);var a=0;return new I(function(){while(true){var e=i.next();if(e.done){return e}var t=e.value;var n=t[0];var r=t[1];if(l.call(s,r,n,c)){return R(o,u?n:a++,r,e)}}})};return e}function tn(n,r,o){var i=Ue().asMutable();n.__iterate(function(e,t){i.update(r.call(o,e,t,n),0,function(e){return e+1})});return i.asImmutable()}function nn(r,e,o){var i=f(r);var a=(d(r)?Kt():Ue()).asMutable();r.__iterate(function(t,n){a.update(e.call(o,t,n,r),function(e){return e=e||[],e.push(i?[n,t]:t),e})});var t=bn(r);return a.map(function(e){return vn(r,t(e))})}function rn(c,e,t,l){var n=c.size;if(e!==undefined){e=e|0}if(t!==undefined){t=t|0}if(z(e,t,n)){return c}var s=P(e,n);var r=T(t,n);if(s!==s||r!==r){return rn(c.toSeq().cacheResult(),e,t,l)}var o=r-s;var u;if(o===o){u=o<0?0:o}var i=gn(c);i.size=u===0?u:c.size&&u||undefined;if(!l&&ie(c)&&u>=0){i.get=function(e,t){e=_(this,e);return e>=0&&e<u?c.get(e+s,t):t}}i.__iterateUncached=function(n,e){var r=this;if(u===0){return 0}if(e){return this.cacheResult().__iterate(n,e)}var o=0;var i=true;var a=0;c.__iterate(function(e,t){if(!(i&&(i=o++<s))){a++;return n(e,l?t:a-1,r)!==false&&a!==u}});return a};i.__iteratorUncached=function(t,e){if(u!==0&&e){return this.cacheResult().__iterator(t,e)}var n=u!==0&&c.__iterator(t,e);var r=0;var o=0;return new I(function(){while(r++<s){n.next()}if(++o>u){return F()}var e=n.next();if(l||t===V){return e}else if(t===N){return R(t,o-1,undefined,e)}else{return R(t,o-1,e.value[1],e)}})};return i}function on(t,l,s){var e=gn(t);e.__iterateUncached=function(r,e){var o=this;if(e){return this.cacheResult().__iterate(r,e)}var i=0;t.__iterate(function(e,t,n){return l.call(s,e,t,n)&&++i&&r(e,t,o)});return i};e.__iteratorUncached=function(o,e){var i=this;if(e){return this.cacheResult().__iterator(o,e)}var a=t.__iterator(D,e);var c=true;return new I(function(){if(!c){return F()}var e=a.next();if(e.done){return e}var t=e.value;var n=t[0];var r=t[1];if(!l.call(s,r,n,i)){c=false;return F()}return o===D?e:R(o,n,r,e)})};return e}function an(t,s,u,f){var e=gn(t);e.__iterateUncached=function(r,e){var o=this;if(e){return this.cacheResult().__iterate(r,e)}var i=true;var a=0;t.__iterate(function(e,t,n){if(!(i&&(i=s.call(u,e,t,n)))){a++;return r(e,f?t:a-1,o)}});return a};e.__iteratorUncached=function(o,e){var i=this;if(e){return this.cacheResult().__iterator(o,e)}var a=t.__iterator(D,e);var c=true;var l=0;return new I(function(){var e,t,n;do{e=a.next();if(e.done){if(f||o===V){return e}else if(o===N){return R(o,l++,undefined,e)}else{return R(o,l++,e.value[1],e)}}var r=e.value;t=r[0];n=r[1];c&&(c=s.call(u,n,t,i))}while(c);return o===D?e:R(o,t,n,e)})};return e}function cn(e,t){var n=f(e);var r=[e].concat(t).map(function(e){if(!u(e)){e=n?ce(e):le(Array.isArray(e)?e:[e])}else if(n){e=c(e)}return e}).filter(function(e){return e.size!==0});if(r.length===0){return e}if(r.length===1){var o=r[0];if(o===e||n&&f(o)||p(e)&&p(o)){return o}}var i=new te(r);if(n){i=i.toKeyedSeq()}else if(!p(e)){i=i.toSetSeq()}i=i.flatten(true);i.size=r.reduce(function(e,t){if(e!==undefined){var n=t.size;if(n!==undefined){return e+n}}},0);return i}function ln(e,l,s){var t=gn(e);t.__iterateUncached=function(o,t){var i=0;var a=false;function c(e,n){var r=this;e.__iterate(function(e,t){if((!l||n<l)&&u(e)){c(e,n+1)}else if(o(e,s?t:i++,r)===false){a=true}return!a},t)}c(e,0);return i};t.__iteratorUncached=function(n,r){var o=e.__iterator(n,r);var i=[];var a=0;return new I(function(){while(o){var e=o.next();if(e.done!==false){o=i.pop();continue}var t=e.value;if(n===D){t=t[1]}if((!l||i.length<l)&&u(t)){i.push(o);o=t.__iterator(n,r)}else{return s?e:R(n,a++,t,e)}}return F()})};return t}function sn(n,r,o){var i=bn(n);return n.toSeq().map(function(e,t){return i(r.call(o,e,t,n))}).flatten(true)}function un(i,a){var t=gn(i=this);return e.size=i.size&&2*i.size-1,e.__iterateUncached=function(n,e){var r=this,o=0;return i.__iterate(function(e,t){return(!o||!1!==n(a,o++,r))&&!1!==n(e,o++,r)},e),o},e.__iteratorUncached=function(e,t){var n,r=i.__iterator(V,t),o=0;return new I(function(){return(!n||o%2)&&(n=r.next()).done?n:o%2?R(e,o++,a):R(e,o++,n.value,n)})},e}function fn(n,r,o){if(!r){r=On}var e=f(n);var i=0;var a=n.toSeq().map(function(e,t){return[t,e,i++,o?o(e,t,n):e]}).toArray();a.sort(function(e,t){return r(e[3],t[3])||e[2]-t[2]}).forEach(e?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]});return e?G(a):p(n)?X(a):$(a)}function pn(n,r,o){if(!r){r=On}if(o){var e=n.toSeq().map(function(e,t){return[e,o(e,t,n)]}).reduce(function(e,t){return hn(r,e[1],t[1])?t:e});return e&&e[0]}else{return n.reduce(function(e,t){return hn(r,e,t)?t:e})}}function hn(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n===undefined||n===null||n!==n)||r>0}function dn(e,a,c){var t=gn(e);t.size=new te(c).map(function(e){return e.size}).min();t.__iterate=function(e,t){var n=this.__iterator(V,t);var r;var o=0;while(!(r=n.next()).done){if(e(r.value,o++,this)===false){break}}return o};t.__iteratorUncached=function(t,n){var r=c.map(function(e){return e=l(e),U(n?e.reverse():e)});var o=0;var i=false;return new I(function(){var e;if(!i){e=r.map(function(e){return e.next()});i=e.some(function(e){return e.done})}if(i){return F()}return R(t,o++,a.apply(null,e.map(function(e){return e.value})))})};return t}function vn(e,t){return ie(e)?t:e.constructor(t)}function yn(e){if(e!==Object(e)){throw new TypeError("Expected [K, V] tuple: "+e)}}function mn(e){Be(e.size);return k(e)}function bn(e){return f(e)?c:p(e)?s:o}function gn(e){return Object.create((f(e)?G:p(e)?X:$).prototype)}function wn(){if(this._iter.cacheResult){this._iter.cacheResult();this.size=this._iter.size;return this}else{return Y.prototype.cacheResult.call(this)}}function On(e,t){return e>t?1:e<t?-1:0}function Cn(e){var t=U(e);if(!t){if(!q(e)){throw new TypeError("Expected iterable or array-like: "+e)}t=U(l(e))}return t}function Sn(r,o){var i;var a=function e(t){if(t instanceof a){return t}if(!(this instanceof a)){return new a(t)}if(!i){i=true;var n=Object.keys(r);_n(c,n);c.size=n.length;c._name=o;c._keys=n;c._defaultValues=r}this._map=Ue(t)};var c=a.prototype=Object.create(xn);c.constr