-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnux.min.js
4 lines (4 loc) · 94 KB
/
nux.min.js
1
2
3
4
!function t(e,r,n){function i(u,s){if(!r[u]){if(!e[u]){var a="function"==typeof require&&require;if(!s&&a)return a(u,!0);if(o)return o(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=r[u]={exports:{}};e[u][0].call(f.exports,function(t){var r=e[u][1][t];return i(r?r:t)},f,f.exports,t,e,r,n)}return r[u].exports}for(var o="function"==typeof require&&require,u=0;u<n.length;u++)i(n[u]);return i}({1:[function(t,e,r){"use strict";function n(t){var e=void 0===arguments[1]?v({div:{}}):arguments[1],r=void 0===arguments[2]?y.options:arguments[2],n=void 0===arguments[3]?document.body:arguments[3],i=e;r.localStorage&&localStorage.getItem("nux")&&(i=JSON.parse(localStorage.getItem("nux"))),a();var c=_(),h=f(p(t,i,r)),l=h.getState().get("ui").toVNode(h),g=s(l);if(n.appendChild(g),h.getState().get("routes")){var m=function(){var t=location.hash||"#";c.run(t.slice(1))};h.getState().get("routes").forEach(function(t,e){c.add(e,function(e){h.dispatch(t.merge(d(e)).toJS())})}),window.addEventListener("hashchange",m),m()}return h.subscribe(function(){var t=h.getState().get("ui");r.localStorage&&localStorage.setItem("nux",JSON.stringify(t?t.toJS():{}));var e=h.getState().get("ui").toVNode(h),n=o(l,e);g=u(g,n),l=e}),h}var i=function(t){return t&&t.__esModule?t["default"]:t},o=(i(t("virtual-dom/h")),i(t("virtual-dom/diff"))),u=i(t("virtual-dom/patch")),s=i(t("virtual-dom/create-element")),a=i(t("dom-delegator")),c=t("redux"),f=c.createStore,h=(c.compose,i(t("./utils"))),p=(t("./ui").renderUI,t("./reducer").reducer),l=t("immutable"),v=l.fromJS,d=l.Map,_=i(t("rlite-router")),y=window.nux=e.exports={init:n,options:{localStorage:!1,logActions:!1},utils:h}},{"./reducer":2,"./ui":3,"./utils":4,"dom-delegator":9,immutable:21,redux:23,"rlite-router":31,"virtual-dom/create-element":32,"virtual-dom/diff":33,"virtual-dom/h":34,"virtual-dom/patch":42}],2:[function(t,e,r){"use strict";function n(t){var e=void 0===arguments[1]?{}:arguments[1],r=void 0===arguments[2]?{}:arguments[2],n=u({ui:e},function(t,e){var r=s.isIndexed(e);return r?e.toList():e.toOrderedMap()}).merge(r.routes?u({routes:r.routes}):{});return function(e,o){var u=void 0===arguments[0]?n:arguments[0],s=void 0;switch(o.type){case"_UPDATE_INPUT_VALUE":s=u.setIn(o.pathArray.concat(["props","value"]),o.val);break;default:s=t(u,o)}return r.logActions&&i(o,s,u),s}}function i(t,e,r){var n=e.toJS();console.log("\n----------------------------------------------------------------\nACTION TAKEN ",t,"\nNEW STATE ",n,"\nPREVIOUS STATE ",r.toJS(),"\n----------------------------------------------------------------")}r.reducer=n,Object.defineProperty(r,"__esModule",{value:!0});var o=t("immutable"),u=o.fromJS,s=o.Iterable;o.Map},{immutable:21}],3:[function(t,e,r){"use strict";function n(t,e){var r=void 0===arguments[2]?a():arguments[2],i=e.findKey(function(){return!0}),u=e.get(i),c=0===r.size?r.push(i):r,f=a(),h=u.get("props")||s();u.get("children")&&(f=u.get("children").map(function(e,r){return"$text"===r?new a([e]):n(t,(new s).set(r,e),c.concat(["children",r]))}).toList());var p={};return i.indexOf("input")>-1&&(h=h.set("ev-keyup",function(e){e.preventDefault(),t.dispatch({type:"_UPDATE_INPUT_VALUE",val:e.target.value,pathArray:["ui"].concat(c.toJS())}),p["ev-keyup"]?p["ev-keyup"](e):!1,p["ev-keyup-"+e.keyCode]?p["ev-keyup-"+e.keyCode](e):!1})),h.get("events")&&(h=h.get("events").reduce(function(e,r,n){return n.indexOf("ev-keyup")>-1?(p[n]=function(e){t.dispatch(r.get("dispatch").merge(s({event:e})).toJS())},e):e.set(n,function(e){e.preventDefault(),t.dispatch(r.get("dispatch").merge(s({event:e})).toJS())})},h)["delete"]("events")),o.apply(this,[i,h.toJS(),f.toJS()])}var i=function(t){return t&&t.__esModule?t["default"]:t};r.renderUI=n,Object.defineProperty(r,"__esModule",{value:!0});var o=i(t("virtual-dom/h")),u=t("immutable"),s=(u.fromJS,u.Map),a=u.List;u.Iterable},{immutable:21,"virtual-dom/h":34}],4:[function(t,e,r){"use strict";function n(t){var e=t.split(" props")[0].split(" "),r=e.reduce(function(t,r,n){return"children"===r?t:"ui"===r||"props"===r?t.concat([r]):e.length===n+1?t.concat([r]):t.concat([r,"children"])},[]),n=[];if(t.indexOf("props")>0){var i=t.split("props")[1].split(" ");n=["props"].concat(i.slice(1))}return r.concat(n)}var i=function(t){return t&&t.__esModule?t["default"]:t};r.selector=n,Object.defineProperty(r,"__esModule",{value:!0});var o=t("immutable"),u=o.Collection,s=o.Map,a=o.fromJS,c=t("./ui").renderUI,f=i(t("virtual-dom/create-element"));u.prototype.$=function(t,e){var r=n(t),i=r.pop(),o=void 0,u=void 0;return void 0!==e?(o=this.setIn(n(t),e),u=(new s).set(i,o)):(o=this.getIn(n(t)),u=(new s).set(i,o),u.__queryNode=this,u.__query=t,u)},u.prototype.children=function h(){var t=this.findKey(function(){return!0}),h=this.getIn([t,"children"])||this.get("children")||new s;if(0===arguments.length)return h;if(arguments[0]&&"object"==typeof arguments[0])h=arguments[0];else if("string"==typeof arguments[0]&&void 0!==arguments[1])h=null===arguments[1]?h["delete"](arguments[0]):h.set(arguments[0],arguments[1]);else if(1===arguments.length&&"string"==typeof arguments[0])return h.get(arguments[0]);return this.__queryNode?this.__queryNode.setIn(n(this.__query).concat("children"),h):this.setIn([t,"children"],h)},u.prototype.toNode=function(t){return(new s).set(t,this)},u.prototype.toVNode=function(t){return c(t,this)},u.prototype.toElement=function(t){var e=this.toVNode(t);return e?f(e):void 0},u.prototype.toHTML=function(t){var e=this.toElement(t);return e?e.outerHTML:void 0},u.prototype.props=function p(){var t=this.findKey(function(){return!0}),p=this.getIn([t,"props"])||new s;if(0===arguments.length)return p;if("object"==typeof arguments[0])p=p.merge(arguments[0]);else if("string"==typeof arguments[0]&&void 0!==arguments[1])p=null===arguments[1]?p["delete"](arguments[0]):p.set(arguments[0],a(arguments[1]));else if(1===arguments.length&&"string"==typeof arguments[0])return p.get(arguments[0]);return this.__queryNode?this.__queryNode.setIn(n(this.__query).concat("props"),p):this.setIn([t,"props"],p)},u.prototype.style=function l(){var t=this.findKey(function(){return!0}),l=this.getIn([t,"props","style"])||new s;if(!l)return new s;if(0===arguments.length)return l;if("object"==typeof arguments[0])l=l.merge(arguments[0]);else if("string"==typeof arguments[0]&&"string"==typeof arguments[1])l=l.set(arguments[0],arguments[1]);else if("string"==typeof arguments[0]&&null===arguments[1])l=l["delete"](arguments[0]);else if(1===arguments.length&&"string"==typeof arguments[0])return l.get(arguments[0]);return this.__queryNode?this.__queryNode.setIn(n(this.__query).concat(["props","style"]),l):this.setIn([t,"props","style"],l)},u.prototype.events=function v(){var t=this.findKey(function(){return!0}),v=this.getIn([t,"props","events"])||new s;if(!v)return new s;if(0===arguments.length)return v;if("object"==typeof arguments[0])v=v.merge(arguments[0]);else if("string"==typeof arguments[0]&&"object"==typeof arguments[1])v=v.set(arguments[0],a(arguments[1]));else if("string"==typeof arguments[0]&&null===arguments[1])v=v["delete"](arguments[0]);else if(1===arguments.length&&"string"==typeof arguments[0])return v.get(arguments[0]);return this.__queryNode?this.__queryNode.setIn(n(this.__query).concat(["props","events"]),v):this.setIn([t,"props","events"],v)}},{"./ui":3,immutable:21,"virtual-dom/create-element":32}],5:[function(t,e,r){},{}],6:[function(t,e,r){function n(){}var i=e.exports={};i.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.MutationObserver,r="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};var n=[];if(e){var i=document.createElement("div"),o=new MutationObserver(function(){var t=n.slice();n.length=0,t.forEach(function(t){t()})});return o.observe(i,{attributes:!0}),function(t){n.length||i.setAttribute("yes","no"),n.push(t)}}return r?(window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}):function(t){setTimeout(t,0)}}(),i.title="browser",i.browser=!0,i.env={},i.argv=[],i.on=n,i.addListener=n,i.once=n,i.off=n,i.removeListener=n,i.removeAllListeners=n,i.emit=n,i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")}},{}],7:[function(t,e,r){function n(t,e,r){var n=i(t),o=n[e];o?Array.isArray(o)?-1===o.indexOf(r)&&o.push(r):o!==r&&(n[e]=[o,r]):n[e]=r}var i=t("ev-store");e.exports=n},{"ev-store":11}],8:[function(t,e,r){function n(t){return this instanceof n?(t=t||f,this.target=t.documentElement,this.events={},this.rawEventListeners={},void(this.globalListeners={})):new n(t)}function i(t,e){function r(e){var r=n[t]||[];if(r.length>0){var u=new d(e);u.currentTarget=i,s(r,u)}o(e.target,e,t)}var n=e.globalListeners,i=e.target;return r}function o(t,e,r){var n=u(t,r);if(n&&n.handlers.length>0){var i=new d(e);if(i.currentTarget=n.currentTarget,s(n.handlers,i),i._bubbles){var a=n.currentTarget.parentNode;o(a,e,r)}}}function u(t,e){if(null===t||"undefined"==typeof t)return null;var r=h(t),n=r[e],i=r.event;if(!n&&!i)return u(t.parentNode,e);var o=[].concat(n||[],i||[]);return new a(t,o)}function s(t,e){t.forEach(function(r){if("function"==typeof r)r(e);else if("function"==typeof r.handleEvent)r.handleEvent(e);else{if("dom-delegator-handle"!==r.type)throw new Error("dom-delegator: unknown handler found: "+JSON.stringify(t));_(r).func(e)}})}function a(t,e){this.currentTarget=t,this.handlers=e}function c(){this.type="dom-delegator-handle"}var f=t("global/document"),h=t("ev-store"),p=t("weakmap-shim/create-store"),l=t("./add-event.js"),v=t("./remove-event.js"),d=t("./proxy-event.js"),_=p();e.exports=n,n.prototype.addEventListener=l,n.prototype.removeEventListener=v,n.allocateHandle=function(t){var e=new c;return _(e).func=t,e},n.transformHandle=function(t,e){var r=_(t).func;return this.allocateHandle(function(t){e(t,r)})},n.prototype.addGlobalEventListener=function(t,e){var r=this.globalListeners[t]||[];-1===r.indexOf(e)&&r.push(e),this.globalListeners[t]=r},n.prototype.removeGlobalEventListener=function(t,e){var r=this.globalListeners[t]||[],n=r.indexOf(e);-1!==n&&r.splice(n,1)},n.prototype.listenTo=function(t){if(t in this.events||(this.events[t]=0),this.events[t]++,1===this.events[t]){var e=this.rawEventListeners[t];e||(e=this.rawEventListeners[t]=i(t,this)),this.target.addEventListener(t,e,!0)}},n.prototype.unlistenTo=function(t){if(t in this.events||(this.events[t]=0),0===this.events[t])throw new Error("already unlistened to event.");if(this.events[t]--,0===this.events[t]){var e=this.rawEventListeners[t];if(!e)throw new Error("dom-delegator#unlistenTo: cannot unlisten to "+t);this.target.removeEventListener(t,e,!0)}}},{"./add-event.js":7,"./proxy-event.js":19,"./remove-event.js":20,"ev-store":11,"global/document":14,"weakmap-shim/create-store":17}],9:[function(t,e,r){function n(t){t=t||{};var e=t.document||u,r=e[f];r||(r=e[f]=o());var n=h.delegators[r];if(n||(n=h.delegators[r]=new s(e)),t.defaultEvents!==!1)for(var i=0;i<p.length;i++)n.listenTo(p[i]);return n}var i=t("individual"),o=t("cuid"),u=t("global/document"),s=t("./dom-delegator.js"),a="13",c="__DOM_DELEGATOR_CACHE@"+a,f="__DOM_DELEGATOR_CACHE_TOKEN@"+a,h=i(c,{delegators:{}}),p=["blur","change","click","contextmenu","dblclick","error","focus","focusin","focusout","input","keydown","keypress","keyup","load","mousedown","mouseup","resize","select","submit","touchcancel","touchend","touchstart","unload"];e.exports=n,n.allocateHandle=s.allocateHandle,n.transformHandle=s.transformHandle},{"./dom-delegator.js":8,cuid:10,"global/document":14,individual:15}],10:[function(t,e,r){!function(t){"use strict";var r="cuid",n=0,i=4,o=36,u=Math.pow(o,i),s=function(t,e){var r="000000000"+t;return r.substr(r.length-e)},a=function(){return s((Math.random()*u<<0).toString(o),i)},c=function(){return n=u>n?n:0,n++,n-1},f=function(){var t,e="c",r=(new Date).getTime().toString(o),n=f.fingerprint(),u=a()+a();return t=s(c().toString(o),i),e+r+t+n+u};f.slug=function(){var t,e=(new Date).getTime().toString(36),r=f.fingerprint().slice(0,1)+f.fingerprint().slice(-1),n=a().slice(-2);return t=c().toString(36).slice(-4),e.slice(-2)+t+r+n},f.globalCount=function(){var t=function(){var t,e=0;for(t in window)e++;return e}();return f.globalCount=function(){return t},t},f.fingerprint=function(){return s((navigator.mimeTypes.length+navigator.userAgent.length).toString(36)+f.globalCount().toString(36),4)},t.register?t.register(r,f):"undefined"!=typeof e?e.exports=f:t[r]=f}(this.applitude||this)},{}],11:[function(t,e,r){"use strict";function n(t){var e=t[u];return e||(e=t[u]={}),e}var i=t("individual/one-version"),o="7";i("ev-store",o);var u="__EV_STORE_KEY@"+o;e.exports=n},{"individual/one-version":13}],12:[function(t,e,r){(function(t){"use strict";function r(t,e){return t in n?n[t]:(n[t]=e,e)}var n="undefined"!=typeof window?window:"undefined"!=typeof t?t:{};e.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],13:[function(t,e,r){"use strict";function n(t,e,r){var n="__INDIVIDUAL_ONE_VERSION_"+t,o=n+"_ENFORCE_SINGLETON",u=i(o,e);if(u!==e)throw new Error("Can only have one copy of "+t+".\nYou already have version "+u+" installed.\nThis means you cannot install version "+e);return i(n,r)}var i=t("./index.js");e.exports=n},{"./index.js":12}],14:[function(t,e,r){(function(r){var n="undefined"!=typeof r?r:"undefined"!=typeof window?window:{},i=t("min-document");if("undefined"!=typeof document)e.exports=document;else{var o=n["__GLOBAL_DOCUMENT_CACHE@4"];o||(o=n["__GLOBAL_DOCUMENT_CACHE@4"]=i),e.exports=o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":5}],15:[function(t,e,r){(function(t){function r(t,e){return n[t]?n[t]:(Object.defineProperty(n,t,{value:e,configurable:!0}),e)}var n="undefined"!=typeof window?window:"undefined"!=typeof t?t:{};e.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],16:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],17:[function(t,e,r){function n(){var t={};return function(e){if(("object"!=typeof e||null===e)&&"function"!=typeof e)throw new Error("Weakmap-shim: Key must be object");var r=e.valueOf(t);return r&&r.identity===t?r:i(e,t)}}var i=t("./hidden-store.js");e.exports=n},{"./hidden-store.js":18}],18:[function(t,e,r){function n(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,"valueOf",{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}e.exports=n},{}],19:[function(t,e,r){function n(t){if(!(this instanceof n))return new n(t);if(f.test(t.type))return new o(t);if(h.test(t.type))return new i(t);for(var e=0;e<s.length;e++){var r=s[e];this[r]=t[r]}this._rawEvent=t,this._bubbles=!1}function i(t){for(var e=0;e<s.length;e++){var r=s[e];this[r]=t[r]}for(var n=0;n<c.length;n++){var i=c[n];this[i]=t[i]}this._rawEvent=t}function o(t){for(var e=0;e<s.length;e++){var r=s[e];this[r]=t[r]}for(var n=0;n<a.length;n++){var i=a[n];this[i]=t[i]}this._rawEvent=t}var u=t("inherits"),s=["altKey","bubbles","cancelable","ctrlKey","eventPhase","metaKey","relatedTarget","shiftKey","target","timeStamp","type","view","which"],a=["char","charCode","key","keyCode"],c=["button","buttons","clientX","clientY","layerX","layerY","offsetX","offsetY","pageX","pageY","screenX","screenY","toElement"],f=/^key|input/,h=/^(?:mouse|pointer|contextmenu)|click/;e.exports=n,n.prototype.preventDefault=function(){this._rawEvent.preventDefault()},n.prototype.startPropagation=function(){this._bubbles=!0},u(i,n),u(o,n)},{inherits:16}],20:[function(t,e,r){function n(t,e,r){var n=i(t),o=n[e];if(o)if(Array.isArray(o)){var u=o.indexOf(r);-1!==u&&o.splice(u,1)}else o===r&&(n[e]=null)}var i=t("ev-store");e.exports=n},{"ev-store":11}],21:[function(t,e,r){!function(t,n){"object"==typeof r&&"undefined"!=typeof e?e.exports=n():"function"==typeof define&&define.amd?define(n):t.Immutable=n()}(this,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return t.value=!1,t}function r(t){t&&(t.value=!0)}function n(){}function i(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;r>i;i++)n[i]=t[i+e];return n}function o(t){return void 0===t.size&&(t.size=t.__iterate(s)),t.size}function u(t,e){if("number"!=typeof e){var r=+e;if(""+r!==e)return NaN;e=r}return 0>e?o(t)+e:e}function s(){return!0}function a(t,e,r){return(0===t||void 0!==r&&-r>=t)&&(void 0===e||void 0!==r&&e>=r)}function c(t,e){return h(t,e,0)}function f(t,e){return h(t,e,e)}function h(t,e,r){return void 0===t?r:0>t?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function p(t){return _(t)?t:j(t)}function l(t){return y(t)?t:M(t)}function v(t){return g(t)?t:D(t)}function d(t){return _(t)&&!m(t)?t:A(t)}function _(t){return!(!t||!t[vr])}function y(t){return!(!t||!t[dr])}function g(t){return!(!t||!t[_r])}function m(t){return y(t)||g(t)}function w(t){return!(!t||!t[yr])}function b(t){this.next=t}function S(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function x(){return{value:void 0,done:!0}}function I(t){return!!O(t)}function k(t){return t&&"function"==typeof t.next}function E(t){var e=O(t);return e&&e.call(t)}function O(t){var e=t&&(br&&t[br]||t[Sr]);return"function"==typeof e?e:void 0}function z(t){return t&&"number"==typeof t.length}function j(t){return null===t||void 0===t?L():_(t)?t.toSeq():K(t)}function M(t){return null===t||void 0===t?L().toKeyedSeq():_(t)?y(t)?t.toSeq():t.fromEntrySeq():C(t)}function D(t){return null===t||void 0===t?L():_(t)?y(t)?t.entrySeq():t.toIndexedSeq():P(t)}function A(t){return(null===t||void 0===t?L():_(t)?y(t)?t.entrySeq():t:P(t)).toSetSeq()}function q(t){this._array=t,this.size=t.length}function T(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function N(t){this._iterable=t,this.size=t.length||t.size}function R(t){this._iterator=t,this._iteratorCache=[]}function U(t){return!(!t||!t[Ir])}function L(){return kr||(kr=new q([]))}function C(t){var e=Array.isArray(t)?new q(t).fromEntrySeq():k(t)?new R(t).fromEntrySeq():I(t)?new N(t).fromEntrySeq():"object"==typeof t?new T(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function P(t){var e=V(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function K(t){var e=V(t)||"object"==typeof t&&new T(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function V(t){return z(t)?new q(t):k(t)?new R(t):I(t)?new N(t):void 0}function W(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;o>=u;u++){var s=i[r?o-u:u];if(e(s[1],n?s[0]:u,t)===!1)return u+1}return u}return t.__iterateUncached(e,r)}function J(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new b(function(){var t=i[r?o-u:u];return u++>o?x():S(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function H(){throw TypeError("Abstract")}function B(){}function G(){}function X(){}function Y(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return"function"==typeof t.equals&&"function"==typeof e.equals&&t.equals(e)?!0:!1}function F(t,e){return e?$(e,t,"",{"":t}):Z(t)}function $(t,e,r,n){return Array.isArray(e)?t.call(n,r,D(e).map(function(r,n){return $(t,r,n,e)})):Q(e)?t.call(n,r,M(e).map(function(r,n){return $(t,r,n,e)})):e}function Z(t){return Array.isArray(t)?D(t).map(Z).toList():Q(t)?M(t).map(Z).toMap():t}function Q(t){return t&&(t.constructor===Object||void 0===t.constructor)}function tt(t){return t>>>1&1073741824|3221225471&t}function et(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(t=t.valueOf(),t===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return tt(r)}return"string"===e?t.length>qr?rt(t):nt(t):"function"==typeof t.hashCode?t.hashCode():it(t)}function rt(t){var e=Rr[t];return void 0===e&&(e=nt(t),Nr===Tr&&(Nr=0,Rr={}),Nr++,Rr[t]=e),e}function nt(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return tt(e)}function it(t){var e;if(Mr&&(e=Er.get(t),void 0!==e))return e;if(e=t[Ar],void 0!==e)return e;if(!jr){if(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ar],void 0!==e)return e;if(e=ot(t),void 0!==e)return e}if(e=++Dr,1073741824&Dr&&(Dr=0),Mr)Er.set(t,e);else{if(void 0!==zr&&zr(t)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(jr)Object.defineProperty(t,Ar,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ar]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ar]=e}}return e}function ot(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ut(t,e){if(!t)throw new Error(e)}function st(t){ut(t!==1/0,"Cannot perform this action with an infinite size.")}function at(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ct(t){this._iter=t,this.size=t.size}function ft(t){this._iter=t,this.size=t.size}function ht(t){this._iter=t,this.size=t.size}function pt(t){var e=qt(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Tt,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return e(r,t,n)!==!1},r)},e.__iteratorUncached=function(e,r){if(e===wr){var n=t.__iterator(e,r);return new b(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===mr?gr:mr,r)},e}function lt(t,e,r){var n=qt(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,hr);return o===hr?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return n(e.call(r,t,i,u),i,o)!==!1},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(wr,i);return new b(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return S(n,s,e.call(r,u[1],s,t),i)})},n}function vt(t,e){var r=qt(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=pt(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=Tt,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function dt(t,e,r,n){var i=qt(t);return n&&(i.has=function(n){var i=t.get(n,hr);return i!==hr&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,hr);return o!==hr&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){return e.call(r,t,o,a)?(s++,i(t,n?o:s-1,u)):void 0},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(wr,o),s=0;return new b(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,c=a[0],f=a[1];if(e.call(r,f,c,t))return S(i,n?c:s++,f,o)}})},i}function _t(t,e,r){var n=Ut().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}function yt(t,e,r){var n=y(t),i=(w(t)?xe():Ut()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return t=t||[],t.push(n?[u,o]:o),t})});var o=At(t);return i.map(function(e){return jt(t,o(e))})}function gt(t,e,r,n){var i=t.size;if(void 0!==e&&(e=0|e),void 0!==r&&(r=0|r),a(e,r,i))return t;var o=c(e,i),s=f(r,i);if(o!==o||s!==s)return gt(t.toSeq().cacheResult(),e,r,n);var h,p=s-o;p===p&&(h=0>p?0:p);var l=qt(t);return l.size=0===h?h:t.size&&h||void 0,!n&&U(t)&&h>=0&&(l.get=function(e,r){return e=u(this,e),e>=0&&h>e?t.get(e+o,r):r}),l.__iterateUncached=function(e,r){var i=this;if(0===h)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,s=!0,a=0;return t.__iterate(function(t,r){return s&&(s=u++<o)?void 0:(a++,e(t,n?r:a-1,i)!==!1&&a!==h)}),a},l.__iteratorUncached=function(e,r){if(0!==h&&r)return this.cacheResult().__iterator(e,r);var i=0!==h&&t.__iterator(e,r),u=0,s=0;return new b(function(){for(;u++<o;)i.next();if(++s>h)return x();var t=i.next();return n||e===mr?t:e===gr?S(e,s-1,void 0,t):S(e,s-1,t.value[1],t)})},l}function mt(t,e,r){var n=qt(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(wr,i),s=!0;return new b(function(){if(!s)return x();var t=u.next();if(t.done)return t;var i=t.value,a=i[0],c=i[1];return e.call(r,c,a,o)?n===wr?t:S(n,a,c,t):(s=!1,x())})},n}function wt(t,e,r,n){var i=qt(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate(function(t,o,c){return s&&(s=e.call(r,t,o,c))?void 0:(a++,i(t,n?o:a-1,u))}),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(wr,o),a=!0,c=0;return new b(function(){var t,o,f;do{if(t=s.next(),t.done)return n||i===mr?t:i===gr?S(i,c++,void 0,t):S(i,c++,t.value[1],t);var h=t.value;o=h[0],f=h[1],a&&(a=e.call(r,f,o,u))}while(a);return i===wr?t:S(i,o,f,t)})},i}function bt(t,e){var r=y(t),n=[t].concat(e).map(function(t){return _(t)?r&&(t=l(t)):t=r?C(t):P(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&y(i)||g(t)&&g(i))return i}var o=new q(n);return r?o=o.toKeyedSeq():g(t)||(o=o.toSetSeq()),o=o.flatten(!0),o.size=n.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),o}function St(t,e,r){var n=qt(t);return n.__iterateUncached=function(n,i){function o(t,a){var c=this;t.__iterate(function(t,i){return(!e||e>a)&&_(t)?o(t,a+1):n(t,r?i:u++,c)===!1&&(s=!0),!s},i)}var u=0,s=!1;return o(t,0),u},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),u=[],s=0;return new b(function(){for(;o;){var t=o.next();if(t.done===!1){var a=t.value;if(n===wr&&(a=a[1]),e&&!(u.length<e)||!_(a))return r?t:S(n,s++,a,t);u.push(o),o=a.__iterator(n,i)}else o=u.pop()}return x()})},n}function xt(t,e,r){var n=At(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}function It(t,e){var r=qt(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t,n){return(!o||r(e,o++,i)!==!1)&&r(t,o++,i)!==!1},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(mr,n),u=0;return new b(function(){return(!i||u%2)&&(i=o.next(),i.done)?i:u%2?S(r,u++,e):S(r,u++,i.value,i)})},r}function kt(t,e,r){e||(e=Nt);var n=y(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?M(o):g(t)?D(o):A(o)}function Et(t,e,r){if(e||(e=Nt),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return Ot(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return Ot(e,t,r)?r:t})}function Ot(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(void 0===r||null===r||r!==r)||n>0}function zt(t,e,r){var n=qt(t);return n.size=new q(r).map(function(t){return t.size}).min(),n.__iterate=function(t,e){for(var r,n=this.__iterator(mr,e),i=0;!(r=n.next()).done&&t(r.value,i++,this)!==!1;);return i},n.__iteratorUncached=function(t,n){var i=r.map(function(t){return t=p(t),E(n?t.reverse():t)}),o=0,u=!1;return new b(function(){var r;return u||(r=i.map(function(t){return t.next()}),u=r.some(function(t){return t.done})),u?x():S(t,o++,e.apply(null,r.map(function(t){return t.value})))})},n}function jt(t,e){return U(t)?e:t.constructor(e)}function Mt(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Dt(t){return st(t.size),o(t)}function At(t){return y(t)?l:g(t)?v:d}function qt(t){return Object.create((y(t)?M:g(t)?D:A).prototype)}function Tt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):j.prototype.cacheResult.call(this)}function Nt(t,e){return t>e?1:e>t?-1:0}function Rt(t){var e=E(t);if(!e){if(!z(t))throw new TypeError("Expected iterable or array-like: "+t);e=E(p(t))}return e}function Ut(t){return null===t||void 0===t?Xt():Lt(t)&&!w(t)?t:Xt().withMutations(function(e){var r=l(t);st(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function Lt(t){return!(!t||!t[Ur])}function Ct(t,e){this.ownerID=t,this.entries=e}function Pt(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function Kt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function Vt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function Wt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function Jt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Bt(t._root)}function Ht(t,e){return S(t,e[0],e[1])}function Bt(t,e){return{node:t,index:0,__prev:e}}function Gt(t,e,r,n){var i=Object.create(Lr);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Xt(){return Cr||(Cr=Gt(0))}function Yt(t,r,n){var i,o;if(t._root){var u=e(pr),s=e(lr);if(i=Ft(t._root,t.__ownerID,0,void 0,r,n,u,s),!s.value)return t;o=t.size+(u.value?n===hr?-1:1:0)}else{if(n===hr)return t;o=1,i=new Ct(t.__ownerID,[[r,n]])}return t.__ownerID?(t.size=o,t._root=i,t.__hash=void 0,t.__altered=!0,t):i?Gt(o,i):Xt()}function Ft(t,e,n,i,o,u,s,a){return t?t.update(e,n,i,o,u,s,a):u===hr?t:(r(a),r(s),new Wt(e,i,[o,u]))}function $t(t){return t.constructor===Wt||t.constructor===Vt}function Zt(t,e,r,n,i){if(t.keyHash===n)return new Vt(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&fr,s=(0===r?n:n>>>r)&fr,a=u===s?[Zt(t,e,r+ar,n,i)]:(o=new Wt(e,n,i),s>u?[t,o]:[o,t]);return new Pt(e,1<<u|1<<s,a)}function Qt(t,e,r,i){t||(t=new n);for(var o=new Wt(t,et(r),[r,i]),u=0;u<e.length;u++){var s=e[u];o=o.update(t,0,void 0,s[0],s[1])}return o}function te(t,e,r,n){for(var i=0,o=0,u=new Array(r),s=0,a=1,c=e.length;c>s;s++,a<<=1){var f=e[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new Pt(t,i,u)}function ee(t,e,r,n,i){for(var o=0,u=new Array(cr),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new Kt(t,o+1,u)}function re(t,e,r){for(var n=[],i=0;i<r.length;i++){var o=r[i],u=l(o);_(o)||(u=u.map(function(t){return F(t)})),n.push(u)}return ie(t,e,n)}function ne(t){return function(e,r,n){return e&&e.mergeDeepWith&&_(r)?e.mergeDeepWith(t,r):t?t(e,r,n):r}}function ie(t,e,r){return r=r.filter(function(t){return 0!==t.size}),0===r.length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var n=e?function(r,n){t.update(n,hr,function(t){
return t===hr?r:e(t,r,n)})}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)}):t.constructor(r[0])}function oe(t,e,r,n){var i=t===hr,o=e.next();if(o.done){var u=i?r:t,s=n(u);return s===u?t:s}ut(i||t&&t.set,"invalid keyPath");var a=o.value,c=i?hr:t.get(a,hr),f=oe(c,e,r,n);return f===c?t:f===hr?t.remove(a):(i?Xt():t).set(a,f)}function ue(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function se(t,e,r,n){var o=n?t:i(t);return o[e]=r,o}function ae(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),u=0,s=0;i>s;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function ce(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;n>u;u++)u===e&&(o=1),i[u]=t[u+o];return i}function fe(t){var e=de();if(null===t||void 0===t)return e;if(he(t))return t;var r=v(t),n=r.size;return 0===n?e:(st(n),n>0&&cr>n?ve(0,n,ar,null,new pe(r.toArray())):e.withMutations(function(t){t.setSize(n),r.forEach(function(e,r){return t.set(r,e)})}))}function he(t){return!(!t||!t[Wr])}function pe(t,e){this.array=t,this.ownerID=e}function le(t,e){function r(t,e,r){return 0===e?n(t,r):i(t,e,r)}function n(t,r){var n=r===s?a&&a.array:t&&t.array,i=r>o?0:o-r,c=u-r;return c>cr&&(c=cr),function(){if(i===c)return Br;var t=e?--c:i++;return n&&n[t]}}function i(t,n,i){var s,a=t&&t.array,c=i>o?0:o-i>>n,f=(u-i>>n)+1;return f>cr&&(f=cr),function(){for(;;){if(s){var t=s();if(t!==Br)return t;s=null}if(c===f)return Br;var o=e?--f:c++;s=r(a&&a[o],n-ar,i+(o<<n))}}}var o=t._origin,u=t._capacity,s=Se(u),a=t._tail;return r(t._root,t._level,0)}function ve(t,e,r,n,i,o,u){var s=Object.create(Jr);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function de(){return Hr||(Hr=ve(0,0,ar))}function _e(t,r,n){if(r=u(t,r),r!==r)return t;if(r>=t.size||0>r)return t.withMutations(function(t){0>r?we(t,r).set(0,n):we(t,0,r+1).set(r,n)});r+=t._origin;var i=t._tail,o=t._root,s=e(lr);return r>=Se(t._capacity)?i=ye(i,t.__ownerID,0,r,n,s):o=ye(o,t.__ownerID,t._level,r,n,s),s.value?t.__ownerID?(t._root=o,t._tail=i,t.__hash=void 0,t.__altered=!0,t):ve(t._origin,t._capacity,t._level,o,i):t}function ye(t,e,n,i,o,u){var s=i>>>n&fr,a=t&&s<t.array.length;if(!a&&void 0===o)return t;var c;if(n>0){var f=t&&t.array[s],h=ye(f,e,n-ar,i,o,u);return h===f?t:(c=ge(t,e),c.array[s]=h,c)}return a&&t.array[s]===o?t:(r(u),c=ge(t,e),void 0===o&&s===c.array.length-1?c.array.pop():c.array[s]=o,c)}function ge(t,e){return e&&t&&e===t.ownerID?t:new pe(t?t.array.slice():[],e)}function me(t,e){if(e>=Se(t._capacity))return t._tail;if(e<1<<t._level+ar){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&fr],n-=ar;return r}}function we(t,e,r){void 0!==e&&(e=0|e),void 0!==r&&(r=0|r);var i=t.__ownerID||new n,o=t._origin,u=t._capacity,s=o+e,a=void 0===r?u:0>r?u+r:o+r;if(s===o&&a===u)return t;if(s>=a)return t.clear();for(var c=t._level,f=t._root,h=0;0>s+h;)f=new pe(f&&f.array.length?[void 0,f]:[],i),c+=ar,h+=1<<c;h&&(s+=h,o+=h,a+=h,u+=h);for(var p=Se(u),l=Se(a);l>=1<<c+ar;)f=new pe(f&&f.array.length?[f]:[],i),c+=ar;var v=t._tail,d=p>l?me(t,a-1):l>p?new pe([],i):v;if(v&&l>p&&u>s&&v.array.length){f=ge(f,i);for(var _=f,y=c;y>ar;y-=ar){var g=p>>>y&fr;_=_.array[g]=ge(_.array[g],i)}_.array[p>>>ar&fr]=v}if(u>a&&(d=d&&d.removeAfter(i,0,a)),s>=l)s-=l,a-=l,c=ar,f=null,d=d&&d.removeBefore(i,0,s);else if(s>o||p>l){for(h=0;f;){var m=s>>>c&fr;if(m!==l>>>c&fr)break;m&&(h+=(1<<c)*m),c-=ar,f=f.array[m]}f&&s>o&&(f=f.removeBefore(i,c,s-h)),f&&p>l&&(f=f.removeAfter(i,c,l-h)),h&&(s-=h,a-=h)}return t.__ownerID?(t.size=a-s,t._origin=s,t._capacity=a,t._level=c,t._root=f,t._tail=d,t.__hash=void 0,t.__altered=!0,t):ve(s,a,c,f,d)}function be(t,e,r){for(var n=[],i=0,o=0;o<r.length;o++){var u=r[o],s=v(u);s.size>i&&(i=s.size),_(u)||(s=s.map(function(t){return F(t)})),n.push(s)}return i>t.size&&(t=t.setSize(i)),ie(t,e,n)}function Se(t){return cr>t?0:t-1>>>ar<<ar}function xe(t){return null===t||void 0===t?Ee():Ie(t)?t:Ee().withMutations(function(e){var r=l(t);st(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function Ie(t){return Lt(t)&&w(t)}function ke(t,e,r,n){var i=Object.create(xe.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function Ee(){return Gr||(Gr=ke(Xt(),de()))}function Oe(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===hr){if(!a)return t;u.size>=cr&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):ke(n,i)}function ze(t){return null===t||void 0===t?De():je(t)?t:De().unshiftAll(t)}function je(t){return!(!t||!t[Xr])}function Me(t,e,r,n){var i=Object.create(Yr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function De(){return Fr||(Fr=Me(0))}function Ae(t){return null===t||void 0===t?Re():qe(t)&&!w(t)?t:Re().withMutations(function(e){var r=d(t);st(r.size),r.forEach(function(t){return e.add(t)})})}function qe(t){return!(!t||!t[$r])}function Te(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Ne(t,e){var r=Object.create(Zr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Re(){return Qr||(Qr=Ne(Xt()))}function Ue(t){return null===t||void 0===t?Pe():Le(t)?t:Pe().withMutations(function(e){var r=d(t);st(r.size),r.forEach(function(t){return e.add(t)})})}function Le(t){return qe(t)&&w(t)}function Ce(t,e){var r=Object.create(tn);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Pe(){return en||(en=Ce(Ee()))}function Ke(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);Je(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=Ut(o)},i=n.prototype=Object.create(rn);return i.constructor=n,n}function Ve(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function We(t){return t._name||t.constructor.name||"Record"}function Je(t,e){try{e.forEach(He.bind(void 0,t))}catch(r){}}function He(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){ut(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Be(t,e){if(t===e)return!0;if(!_(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||y(t)!==y(e)||g(t)!==g(e)||w(t)!==w(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!m(t);if(w(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&Y(i[1],t)&&(r||Y(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var u=!0,s=e.__iterate(function(e,n){return(r?t.has(e):i?Y(e,t.get(n,hr)):Y(t.get(n,hr),e))?void 0:(u=!1,!1)});return u&&t.size===s}function Ge(t,e,r){if(!(this instanceof Ge))return new Ge(t,e,r);if(ut(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),t>e&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(nn)return nn;nn=this}}function Xe(t,e){if(!(this instanceof Xe))return new Xe(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(on)return on;on=this}}function Ye(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function Fe(t,e){return e}function $e(t,e){return[e,t]}function Ze(t){return function(){return!t.apply(this,arguments)}}function Qe(t){return function(){return-t.apply(this,arguments)}}function tr(t){return"string"==typeof t?JSON.stringify(t):t}function er(){return i(arguments)}function rr(t,e){return e>t?1:t>e?-1:0}function nr(t){if(t.size===1/0)return 0;var e=w(t),r=y(t),n=e?1:0,i=t.__iterate(r?e?function(t,e){n=31*n+or(et(t),et(e))|0}:function(t,e){n=n+or(et(t),et(e))|0}:e?function(t){n=31*n+et(t)|0}:function(t){n=n+et(t)|0});return ir(i,n)}function ir(t,e){return e=Or(e,3432918353),e=Or(e<<15|e>>>-15,461845907),e=Or(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Or(e^e>>>16,2246822507),e=Or(e^e>>>13,3266489909),e=tt(e^e>>>16)}function or(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var ur=Array.prototype.slice,sr="delete",ar=5,cr=1<<ar,fr=cr-1,hr={},pr={value:!1},lr={value:!1};t(l,p),t(v,p),t(d,p),p.isIterable=_,p.isKeyed=y,p.isIndexed=g,p.isAssociative=m,p.isOrdered=w,p.Keyed=l,p.Indexed=v,p.Set=d;var vr="@@__IMMUTABLE_ITERABLE__@@",dr="@@__IMMUTABLE_KEYED__@@",_r="@@__IMMUTABLE_INDEXED__@@",yr="@@__IMMUTABLE_ORDERED__@@",gr=0,mr=1,wr=2,br="function"==typeof Symbol&&Symbol.iterator,Sr="@@iterator",xr=br||Sr;b.prototype.toString=function(){return"[Iterator]"},b.KEYS=gr,b.VALUES=mr,b.ENTRIES=wr,b.prototype.inspect=b.prototype.toSource=function(){return this.toString()},b.prototype[xr]=function(){return this},t(j,p),j.of=function(){return j(arguments)},j.prototype.toSeq=function(){return this},j.prototype.toString=function(){return this.__toString("Seq {","}")},j.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},j.prototype.__iterate=function(t,e){return W(this,t,e,!0)},j.prototype.__iterator=function(t,e){return J(this,t,e,!0)},t(M,j),M.prototype.toKeyedSeq=function(){return this},t(D,j),D.of=function(){return D(arguments)},D.prototype.toIndexedSeq=function(){return this},D.prototype.toString=function(){return this.__toString("Seq [","]")},D.prototype.__iterate=function(t,e){return W(this,t,e,!1)},D.prototype.__iterator=function(t,e){return J(this,t,e,!1)},t(A,j),A.of=function(){return A(arguments)},A.prototype.toSetSeq=function(){return this},j.isSeq=U,j.Keyed=M,j.Set=A,j.Indexed=D;var Ir="@@__IMMUTABLE_SEQ__@@";j.prototype[Ir]=!0,t(q,D),q.prototype.get=function(t,e){return this.has(t)?this._array[u(this,t)]:e},q.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;n>=i;i++)if(t(r[e?n-i:i],i,this)===!1)return i+1;return i},q.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new b(function(){return i>n?x():S(t,i,r[e?n-i++:i++])})},t(T,M),T.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},T.prototype.has=function(t){return this._object.hasOwnProperty(t)},T.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;i>=o;o++){var u=n[e?i-o:o];if(t(r[u],u,this)===!1)return o+1}return o},T.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new b(function(){var u=n[e?i-o:o];return o++>i?x():S(t,u,r[u])})},T.prototype[yr]=!0,t(N,D),N.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=this._iterable,n=E(r),i=0;if(k(n))for(var o;!(o=n.next()).done&&t(o.value,i++,this)!==!1;);return i},N.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterable,n=E(r);if(!k(n))return new b(x);var i=0;return new b(function(){var e=n.next();return e.done?e:S(t,i++,e.value)})},t(R,D),R.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r=this._iterator,n=this._iteratorCache,i=0;i<n.length;)if(t(n[i],i++,this)===!1)return i;for(var o;!(o=r.next()).done;){var u=o.value;if(n[i]=u,t(u,i++,this)===!1)break}return i},R.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new b(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return S(t,i,n[i++])})};var kr;t(H,p),t(B,H),t(G,H),t(X,H),H.Keyed=B,H.Indexed=G,H.Set=X;var Er,Or="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){t=0|t,e=0|e;var r=65535&t,n=65535&e;return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0},zr=Object.isExtensible,jr=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Mr="function"==typeof WeakMap;Mr&&(Er=new WeakMap);var Dr=0,Ar="__immutablehash__";"function"==typeof Symbol&&(Ar=Symbol(Ar));var qr=16,Tr=255,Nr=0,Rr={};t(at,M),at.prototype.get=function(t,e){return this._iter.get(t,e)},at.prototype.has=function(t){return this._iter.has(t)},at.prototype.valueSeq=function(){return this._iter.valueSeq()},at.prototype.reverse=function(){var t=this,e=vt(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},at.prototype.map=function(t,e){var r=this,n=lt(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},at.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?Dt(this):0,function(i){return t(i,e?--r:r++,n)}),e)},at.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(mr,e),n=e?Dt(this):0;return new b(function(){var i=r.next();return i.done?i:S(t,e?--n:n++,i.value,i)})},at.prototype[yr]=!0,t(ct,D),ct.prototype.includes=function(t){return this._iter.includes(t)},ct.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},ct.prototype.__iterator=function(t,e){var r=this._iter.__iterator(mr,e),n=0;return new b(function(){var e=r.next();return e.done?e:S(t,n++,e.value,e)})},t(ft,A),ft.prototype.has=function(t){return this._iter.includes(t)},ft.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},ft.prototype.__iterator=function(t,e){var r=this._iter.__iterator(mr,e);return new b(function(){var e=r.next();return e.done?e:S(t,e.value,e.value,e)})},t(ht,M),ht.prototype.entrySeq=function(){return this._iter.toSeq()},ht.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){Mt(e);var n=_(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},ht.prototype.__iterator=function(t,e){var r=this._iter.__iterator(mr,e);return new b(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Mt(n);var i=_(n);return S(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},ct.prototype.cacheResult=at.prototype.cacheResult=ft.prototype.cacheResult=ht.prototype.cacheResult=Tt,t(Ut,B),Ut.prototype.toString=function(){return this.__toString("Map {","}")},Ut.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Ut.prototype.set=function(t,e){return Yt(this,t,e)},Ut.prototype.setIn=function(t,e){return this.updateIn(t,hr,function(){return e})},Ut.prototype.remove=function(t){return Yt(this,t,hr)},Ut.prototype.deleteIn=function(t){return this.updateIn(t,function(){return hr})},Ut.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},Ut.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=oe(this,Rt(t),e,r);return n===hr?void 0:n},Ut.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Xt()},Ut.prototype.merge=function(){return re(this,void 0,arguments)},Ut.prototype.mergeWith=function(t){var e=ur.call(arguments,1);return re(this,t,e)},Ut.prototype.mergeIn=function(t){var e=ur.call(arguments,1);return this.updateIn(t,Xt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},Ut.prototype.mergeDeep=function(){return re(this,ne(void 0),arguments)},Ut.prototype.mergeDeepWith=function(t){var e=ur.call(arguments,1);return re(this,ne(t),e)},Ut.prototype.mergeDeepIn=function(t){var e=ur.call(arguments,1);return this.updateIn(t,Xt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},Ut.prototype.sort=function(t){return xe(kt(this,t))},Ut.prototype.sortBy=function(t,e){return xe(kt(this,e,t))},Ut.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Ut.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new n)},Ut.prototype.asImmutable=function(){return this.__ensureOwner()},Ut.prototype.wasAltered=function(){return this.__altered},Ut.prototype.__iterator=function(t,e){return new Jt(this,t,e)},Ut.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},Ut.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Gt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ut.isMap=Lt;var Ur="@@__IMMUTABLE_MAP__@@",Lr=Ut.prototype;Lr[Ur]=!0,Lr[sr]=Lr.remove,Lr.removeIn=Lr.deleteIn,Ct.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(Y(r,i[o][0]))return i[o][1];return n},Ct.prototype.update=function(t,e,n,o,u,s,a){for(var c=u===hr,f=this.entries,h=0,p=f.length;p>h&&!Y(o,f[h][0]);h++);var l=p>h;if(l?f[h][1]===u:c)return this;if(r(a),(c||!l)&&r(s),!c||1!==f.length){if(!l&&!c&&f.length>=Pr)return Qt(t,f,o,u);var v=t&&t===this.ownerID,d=v?f:i(f);return l?c?h===p-1?d.pop():d[h]=d.pop():d[h]=[o,u]:d.push([o,u]),v?(this.entries=d,this):new Ct(t,d)}},Pt.prototype.get=function(t,e,r,n){void 0===e&&(e=et(r));var i=1<<((0===t?e:e>>>t)&fr),o=this.bitmap;return 0===(o&i)?n:this.nodes[ue(o&i-1)].get(t+ar,e,r,n)},Pt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=et(n));var s=(0===e?r:r>>>e)&fr,a=1<<s,c=this.bitmap,f=0!==(c&a);if(!f&&i===hr)return this;var h=ue(c&a-1),p=this.nodes,l=f?p[h]:void 0,v=Ft(l,t,e+ar,r,n,i,o,u);if(v===l)return this;if(!f&&v&&p.length>=Kr)return ee(t,p,c,s,v);if(f&&!v&&2===p.length&&$t(p[1^h]))return p[1^h];if(f&&v&&1===p.length&&$t(v))return v;var d=t&&t===this.ownerID,_=f?v?c:c^a:c|a,y=f?v?se(p,h,v,d):ce(p,h,d):ae(p,h,v,d);return d?(this.bitmap=_,this.nodes=y,this):new Pt(t,_,y)},Kt.prototype.get=function(t,e,r,n){void 0===e&&(e=et(r));var i=(0===t?e:e>>>t)&fr,o=this.nodes[i];return o?o.get(t+ar,e,r,n):n},Kt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=et(n));var s=(0===e?r:r>>>e)&fr,a=i===hr,c=this.nodes,f=c[s];if(a&&!f)return this;var h=Ft(f,t,e+ar,r,n,i,o,u);if(h===f)return this;var p=this.count;if(f){if(!h&&(p--,Vr>p))return te(t,c,p,s)}else p++;var l=t&&t===this.ownerID,v=se(c,s,h,l);return l?(this.count=p,this.nodes=v,this):new Kt(t,p,v)},Vt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;u>o;o++)if(Y(r,i[o][0]))return i[o][1];return n},Vt.prototype.update=function(t,e,n,o,u,s,a){void 0===n&&(n=et(o));var c=u===hr;if(n!==this.keyHash)return c?this:(r(a),r(s),Zt(this,t,e,n,[o,u]));for(var f=this.entries,h=0,p=f.length;p>h&&!Y(o,f[h][0]);h++);var l=p>h;if(l?f[h][1]===u:c)return this;if(r(a),(c||!l)&&r(s),c&&2===p)return new Wt(t,this.keyHash,f[1^h]);var v=t&&t===this.ownerID,d=v?f:i(f);return l?c?h===p-1?d.pop():d[h]=d.pop():d[h]=[o,u]:d.push([o,u]),v?(this.entries=d,this):new Vt(t,this.keyHash,d)},Wt.prototype.get=function(t,e,r,n){return Y(r,this.entry[0])?this.entry[1]:n},Wt.prototype.update=function(t,e,n,i,o,u,s){var a=o===hr,c=Y(i,this.entry[0]);return(c?o===this.entry[1]:a)?this:(r(s),a?void r(u):c?t&&t===this.ownerID?(this.entry[1]=o,this):new Wt(t,this.keyHash,[i,o]):(r(u),Zt(this,t,e,et(i),[i,o])))},Ct.prototype.iterate=Vt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;i>=n;n++)if(t(r[e?i-n:n])===!1)return!1},Pt.prototype.iterate=Kt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;i>=n;n++){var o=r[e?i-n:n];if(o&&o.iterate(t,e)===!1)return!1}},Wt.prototype.iterate=function(t,e){return t(this.entry)},t(Jt,b),Jt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return Ht(t,n.entry)}else if(n.entries){if(r=n.entries.length-1,r>=i)return Ht(t,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,r>=i){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return Ht(t,o.entry);e=this._stack=Bt(o,e)}continue}e=this._stack=this._stack.__prev}return x()};var Cr,Pr=cr/4,Kr=cr/2,Vr=cr/4;t(fe,G),fe.of=function(){return this(arguments)},fe.prototype.toString=function(){return this.__toString("List [","]")},fe.prototype.get=function(t,e){if(t=u(this,t),t>=0&&t<this.size){t+=this._origin;var r=me(this,t);return r&&r.array[t&fr]}return e},fe.prototype.set=function(t,e){return _e(this,t,e)},fe.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=ar,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):de()},fe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){we(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},fe.prototype.pop=function(){return we(this,0,-1)},fe.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){we(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},fe.prototype.shift=function(){return we(this,1)},fe.prototype.merge=function(){return be(this,void 0,arguments)},fe.prototype.mergeWith=function(t){var e=ur.call(arguments,1);return be(this,t,e)},fe.prototype.mergeDeep=function(){return be(this,ne(void 0),arguments)},fe.prototype.mergeDeepWith=function(t){var e=ur.call(arguments,1);return be(this,ne(t),e)},fe.prototype.setSize=function(t){return we(this,0,t)},fe.prototype.slice=function(t,e){var r=this.size;return a(t,e,r)?this:we(this,c(t,r),f(e,r))},fe.prototype.__iterator=function(t,e){var r=0,n=le(this,e);return new b(function(){var e=n();return e===Br?x():S(t,r++,e)})},fe.prototype.__iterate=function(t,e){for(var r,n=0,i=le(this,e);(r=i())!==Br&&t(r,n++,this)!==!1;);return n},fe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?ve(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},fe.isList=he;var Wr="@@__IMMUTABLE_LIST__@@",Jr=fe.prototype;Jr[Wr]=!0,Jr[sr]=Jr.remove,Jr.setIn=Lr.setIn,Jr.deleteIn=Jr.removeIn=Lr.removeIn,Jr.update=Lr.update,Jr.updateIn=Lr.updateIn,Jr.mergeIn=Lr.mergeIn,Jr.mergeDeepIn=Lr.mergeDeepIn,Jr.withMutations=Lr.withMutations,Jr.asMutable=Lr.asMutable,Jr.asImmutable=Lr.asImmutable,Jr.wasAltered=Lr.wasAltered,pe.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&fr;if(n>=this.array.length)return new pe([],t);var i,o=0===n;if(e>0){var u=this.array[n];if(i=u&&u.removeBefore(t,e-ar,r),i===u&&o)return this}if(o&&!i)return this;var s=ge(this,t);if(!o)for(var a=0;n>a;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},pe.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n=r-1>>>e&fr;if(n>=this.array.length)return this;var i;if(e>0){var o=this.array[n];if(i=o&&o.removeAfter(t,e-ar,r),i===o&&n===this.array.length-1)return this}var u=ge(this,t);return u.array.splice(n+1),i&&(u.array[n]=i),u};var Hr,Br={};t(xe,Ut),xe.of=function(){return this(arguments)},xe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},xe.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},xe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ee()},xe.prototype.set=function(t,e){return Oe(this,t,e)},xe.prototype.remove=function(t){return Oe(this,t,hr)},xe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},xe.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},xe.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},xe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?ke(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},xe.isOrderedMap=Ie,xe.prototype[yr]=!0,xe.prototype[sr]=xe.prototype.remove;var Gr;t(ze,G),ze.of=function(){return this(arguments)},ze.prototype.toString=function(){return this.__toString("Stack [","]")},ze.prototype.get=function(t,e){var r=this._head;for(t=u(this,t);r&&t--;)r=r.next;return r?r.value:e},ze.prototype.peek=function(){return this._head&&this._head.value},ze.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Me(t,e)},ze.prototype.pushAll=function(t){if(t=v(t),0===t.size)return this;st(t.size);var e=this.size,r=this._head;return t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Me(e,r)},ze.prototype.pop=function(){return this.slice(1)},ze.prototype.unshift=function(){return this.push.apply(this,arguments)},ze.prototype.unshiftAll=function(t){return this.pushAll(t)},ze.prototype.shift=function(){return this.pop.apply(this,arguments)},ze.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):De()},ze.prototype.slice=function(t,e){if(a(t,e,this.size))return this;var r=c(t,this.size),n=f(e,this.size);if(n!==this.size)return G.prototype.slice.call(this,t,e);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Me(i,o)},ze.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Me(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},ze.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&t(n.value,r++,this)!==!1;)n=n.next;return r},ze.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new b(function(){if(n){var e=n.value;return n=n.next,S(t,r++,e)}return x()})},ze.isStack=je;var Xr="@@__IMMUTABLE_STACK__@@",Yr=ze.prototype;Yr[Xr]=!0,Yr.withMutations=Lr.withMutations,Yr.asMutable=Lr.asMutable,Yr.asImmutable=Lr.asImmutable,Yr.wasAltered=Lr.wasAltered;var Fr;t(Ae,X),Ae.of=function(){return this(arguments)},Ae.fromKeys=function(t){return this(l(t).keySeq())},Ae.prototype.toString=function(){return this.__toString("Set {","}")},Ae.prototype.has=function(t){return this._map.has(t)},Ae.prototype.add=function(t){return Te(this,this._map.set(t,!0))},Ae.prototype.remove=function(t){return Te(this,this._map.remove(t))},Ae.prototype.clear=function(){return Te(this,this._map.clear())},Ae.prototype.union=function(){var t=ur.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r<t.length;r++)d(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Ae.prototype.intersect=function(){var t=ur.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return d(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.every(function(t){return t.includes(e)})||r.remove(e)})})},Ae.prototype.subtract=function(){var t=ur.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return d(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.remove(e)})})},Ae.prototype.merge=function(){return this.union.apply(this,arguments)},Ae.prototype.mergeWith=function(t){var e=ur.call(arguments,1);return this.union.apply(this,e)},Ae.prototype.sort=function(t){return Ue(kt(this,t))},Ae.prototype.sortBy=function(t,e){return Ue(kt(this,e,t))},Ae.prototype.wasAltered=function(){return this._map.wasAltered()},Ae.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},Ae.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Ae.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Ae.isSet=qe;var $r="@@__IMMUTABLE_SET__@@",Zr=Ae.prototype;Zr[$r]=!0,Zr[sr]=Zr.remove,Zr.mergeDeep=Zr.merge,Zr.mergeDeepWith=Zr.mergeWith,Zr.withMutations=Lr.withMutations,Zr.asMutable=Lr.asMutable,Zr.asImmutable=Lr.asImmutable,Zr.__empty=Re,Zr.__make=Ne;var Qr;t(Ue,Ae),Ue.of=function(){return this(arguments)},Ue.fromKeys=function(t){return this(l(t).keySeq())},Ue.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ue.isOrderedSet=Le;var tn=Ue.prototype;tn[yr]=!0,tn.__empty=Pe,tn.__make=Ce;var en;t(Ke,B),Ke.prototype.toString=function(){return this.__toString(We(this)+" {","}")},Ke.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Ke.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},Ke.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Ve(this,Xt()))},Ke.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+We(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:Ve(this,r)},Ke.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:Ve(this,e)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()},Ke.prototype.__iterator=function(t,e){var r=this;return l(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},Ke.prototype.__iterate=function(t,e){var r=this;return l(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},Ke.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Ve(this,e,t):(this.__ownerID=t,this._map=e,this)};var rn=Ke.prototype;rn[sr]=rn.remove,rn.deleteIn=rn.removeIn=Lr.removeIn,rn.merge=Lr.merge,rn.mergeWith=Lr.mergeWith,rn.mergeIn=Lr.mergeIn,rn.mergeDeep=Lr.mergeDeep,rn.mergeDeepWith=Lr.mergeDeepWith,rn.mergeDeepIn=Lr.mergeDeepIn,rn.setIn=Lr.setIn,rn.update=Lr.update,rn.updateIn=Lr.updateIn,rn.withMutations=Lr.withMutations,rn.asMutable=Lr.asMutable,rn.asImmutable=Lr.asImmutable,t(Ge,D),Ge.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Ge.prototype.get=function(t,e){return this.has(t)?this._start+u(this,t)*this._step:e},Ge.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},Ge.prototype.slice=function(t,e){return a(t,e,this.size)?this:(t=c(t,this.size),e=f(e,this.size),t>=e?new Ge(0,0):new Ge(this.get(t,this._end),this.get(e,this._end),this._step))},Ge.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},Ge.prototype.lastIndexOf=function(t){return this.indexOf(t)},Ge.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;r>=o;o++){if(t(i,o,this)===!1)return o+1;i+=e?-n:n}return o},Ge.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new b(function(){var u=i;return i+=e?-n:n,o>r?x():S(t,o++,u)})},Ge.prototype.equals=function(t){return t instanceof Ge?this._start===t._start&&this._end===t._end&&this._step===t._step:Be(this,t)};var nn;t(Xe,D),Xe.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]";
},Xe.prototype.get=function(t,e){return this.has(t)?this._value:e},Xe.prototype.includes=function(t){return Y(this._value,t)},Xe.prototype.slice=function(t,e){var r=this.size;return a(t,e,r)?this:new Xe(this._value,f(e,r)-c(t,r))},Xe.prototype.reverse=function(){return this},Xe.prototype.indexOf=function(t){return Y(this._value,t)?0:-1},Xe.prototype.lastIndexOf=function(t){return Y(this._value,t)?this.size:-1},Xe.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(t(this._value,r,this)===!1)return r+1;return r},Xe.prototype.__iterator=function(t,e){var r=this,n=0;return new b(function(){return n<r.size?S(t,n++,r._value):x()})},Xe.prototype.equals=function(t){return t instanceof Xe?Y(this._value,t._value):Be(t)};var on;p.Iterator=b,Ye(p,{toArray:function(){st(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new ct(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new at(this,!0)},toMap:function(){return Ut(this.toKeyedSeq())},toObject:function(){st(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return xe(this.toKeyedSeq())},toOrderedSet:function(){return Ue(y(this)?this.valueSeq():this)},toSet:function(){return Ae(y(this)?this.valueSeq():this)},toSetSeq:function(){return new ft(this)},toSeq:function(){return g(this)?this.toIndexedSeq():y(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return ze(y(this)?this.valueSeq():this)},toList:function(){return fe(y(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var t=ur.call(arguments,0);return jt(this,bt(this,t))},includes:function(t){return this.some(function(e){return Y(e,t)})},entries:function(){return this.__iterator(wr)},every:function(t,e){st(this.size);var r=!0;return this.__iterate(function(n,i,o){return t.call(e,n,i,o)?void 0:(r=!1,!1)}),r},filter:function(t,e){return jt(this,dt(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;return this.__iterate(function(n,i,o){return t.call(e,n,i,o)?(r=[i,n],!1):void 0}),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return st(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){st(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!==n&&void 0!==n?n.toString():""}),e},keys:function(){return this.__iterator(gr)},map:function(t,e){return jt(this,lt(this,t,e))},reduce:function(t,e,r){st(this.size);var n,i;return arguments.length<2?i=!0:n=e,this.__iterate(function(e,o,u){i?(i=!1,n=e):n=t.call(r,n,e,o,u)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return jt(this,vt(this,!0))},slice:function(t,e){return jt(this,gt(this,t,e,!0))},some:function(t,e){return!this.every(Ze(t),e)},sort:function(t){return jt(this,kt(this,t))},values:function(){return this.__iterator(mr)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return o(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return _t(this,t,e)},equals:function(t){return Be(this,t)},entrySeq:function(){var t=this;if(t._cache)return new q(t._cache);var e=t.toSeq().map($e).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Ze(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(s)},flatMap:function(t,e){return jt(this,xt(this,t,e))},flatten:function(t){return jt(this,St(this,t,!0))},fromEntrySeq:function(){return new ht(this)},get:function(t,e){return this.find(function(e,r){return Y(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=Rt(t);!(r=i.next()).done;){var o=r.value;if(n=n&&n.get?n.get(o,hr):hr,n===hr)return e}return n},groupBy:function(t,e){return yt(this,t,e)},has:function(t){return this.get(t,hr)!==hr},hasIn:function(t){return this.getIn(t,hr)!==hr},isSubset:function(t){return t="function"==typeof t.includes?t:p(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:p(t),t.isSubset(this)},keySeq:function(){return this.toSeq().map(Fe).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return Et(this,t)},maxBy:function(t,e){return Et(this,e,t)},min:function(t){return Et(this,t?Qe(t):rr)},minBy:function(t,e){return Et(this,e?Qe(e):rr,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return jt(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return jt(this,wt(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Ze(t),e)},sortBy:function(t,e){return jt(this,kt(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return jt(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return jt(this,mt(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Ze(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=nr(this))}});var un=p.prototype;un[vr]=!0,un[xr]=un.values,un.__toJS=un.toArray,un.__toStringMapper=tr,un.inspect=un.toSource=function(){return this.toString()},un.chain=un.flatMap,un.contains=un.includes,function(){try{Object.defineProperty(un,"length",{get:function(){if(!p.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),Ye(l,{flip:function(){return jt(this,pt(this))},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return Y(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return Y(e,t)})},mapEntries:function(t,e){var r=this,n=0;return jt(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return jt(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var sn=l.prototype;sn[dr]=!0,sn[xr]=un.entries,sn.__toJS=un.toObject,sn.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+tr(t)},Ye(v,{toKeyedSeq:function(){return new at(this,!1)},filter:function(t,e){return jt(this,dt(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){return this.toSeq().reverse().indexOf(t)},reverse:function(){return jt(this,vt(this,!1))},slice:function(t,e){return jt(this,gt(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=c(t,0>t?this.count():this.size);var n=this.slice(0,t);return jt(this,1===r?n:n.concat(i(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.toKeyedSeq().findLastKey(t,e);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(t){return jt(this,St(this,t,!1))},get:function(t,e){return t=u(this,t),0>t||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return t=u(this,t),t>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return jt(this,It(this,t))},interleave:function(){var t=[this].concat(i(arguments)),e=zt(this.toSeq(),D.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),jt(this,r)},last:function(){return this.get(-1)},skipWhile:function(t,e){return jt(this,wt(this,t,e,!1))},zip:function(){var t=[this].concat(i(arguments));return jt(this,zt(this,er,t))},zipWith:function(t){var e=i(arguments);return e[0]=this,jt(this,zt(this,t,e))}}),v.prototype[_r]=!0,v.prototype[yr]=!0,Ye(d,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),d.prototype.has=un.includes,Ye(M,l.prototype),Ye(D,v.prototype),Ye(A,d.prototype),Ye(B,l.prototype),Ye(G,v.prototype),Ye(X,d.prototype);var an={Iterable:p,Seq:j,Collection:H,Map:Ut,OrderedMap:xe,List:fe,Stack:ze,Set:Ae,OrderedSet:Ue,Record:Ke,Range:Ge,Repeat:Xe,is:Y,fromJS:F};return an})},{}],22:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){function r(){return c}function n(t){f.push(t);var e=!0;return function(){if(e){e=!1;var r=f.indexOf(t);f.splice(r,1)}}}function i(t){if(!u["default"](t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,c=a(c,t)}finally{h=!1}return f.slice().forEach(function(t){return t()}),t}function o(t){a=t,i({type:s.INIT})}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var a=t,c=e,f=[],h=!1;return i({type:s.INIT}),{dispatch:i,subscribe:n,getState:r,replaceReducer:o}}r.__esModule=!0,r["default"]=i;var o=t("./utils/isPlainObject"),u=n(o),s={INIT:"@@redux/INIT"};r.ActionTypes=s},{"./utils/isPlainObject":28}],23:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0;var i=t("./createStore"),o=n(i),u=t("./utils/combineReducers"),s=n(u),a=t("./utils/bindActionCreators"),c=n(a),f=t("./utils/applyMiddleware"),h=n(f),p=t("./utils/compose"),l=n(p);r.createStore=o["default"],r.combineReducers=s["default"],r.bindActionCreators=c["default"],r.applyMiddleware=h["default"],r.compose=l["default"]},{"./createStore":22,"./utils/applyMiddleware":24,"./utils/bindActionCreators":25,"./utils/combineReducers":26,"./utils/compose":27}],24:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return function(t){return function(r,n){var i=t(r,n),u=i.dispatch,a=[],c={getState:i.getState,dispatch:function(t){return u(t)}};return a=e.map(function(t){return t(c)}),u=s["default"].apply(void 0,a)(i.dispatch),o({},i,{dispatch:u})}}}r.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};r["default"]=i;var u=t("./compose"),s=n(u);e.exports=r["default"]},{"./compose":27}],25:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){return function(){return e(t.apply(void 0,arguments))}}function o(t,e){if("function"==typeof t)return i(t,e);if("object"!=typeof t||null===t||void 0===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');return s["default"](t,function(t){return i(t,e)})}r.__esModule=!0,r["default"]=o;var u=t("../utils/mapValues"),s=n(u);e.exports=r["default"]},{"../utils/mapValues":29}],26:[function(t,e,r){(function(n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var r=e&&e.type,n=r&&'"'+r.toString()+'"'||"an action";return'Reducer "'+t+'" returned undefined handling '+n+". To ignore an action, you must explicitly return the previous state."}function u(t,e,r){var n=Object.keys(e),i=r&&r.type===c.ActionTypes.INIT?"initialState argument passed to createStore":"previous state received by the reducer";if(0===n.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!h["default"](t))return"The "+i+' has unexpected type of "'+{}.toString.call(t).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+n.join('", "')+'"');var o=Object.keys(t).filter(function(t){return n.indexOf(t)<0});return o.length>0?"Unexpected "+(o.length>1?"keys":"key")+" "+('"'+o.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+n.join('", "')+'". Unexpected keys will be ignored.'):void 0}function s(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:c.ActionTypes.INIT});if("undefined"==typeof n)throw new Error('Reducer "'+e+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var i="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof r(void 0,{type:i}))throw new Error('Reducer "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+c.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function a(t){var e,r=d["default"](t,function(t){return"function"==typeof t});try{s(r)}catch(i){e=i}var a=l["default"](r,function(){});return function(t,i){if(void 0===t&&(t=a),e)throw e;var s=!1,c=l["default"](r,function(e,r){var n=t[r],u=e(n,i);if("undefined"==typeof u){var a=o(r,i);throw new Error(a)}return s=s||u!==n,u});if("production"!==n.env.NODE_ENV){var f=u(t,c,i);f&&console.error(f)}return s?c:t}}r.__esModule=!0,r["default"]=a;var c=t("../createStore"),f=t("../utils/isPlainObject"),h=i(f),p=t("../utils/mapValues"),l=i(p),v=t("../utils/pick"),d=i(v);e.exports=r["default"]}).call(this,t("_process"))},{"../createStore":22,"../utils/isPlainObject":28,"../utils/mapValues":29,"../utils/pick":30,_process:6}],27:[function(t,e,r){"use strict";function n(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return function(t){return e.reduceRight(function(t,e){return e(t)},t)}}r.__esModule=!0,r["default"]=n,e.exports=r["default"]},{}],28:[function(t,e,r){"use strict";function n(t){if(!t||"object"!=typeof t)return!1;var e="function"==typeof t.constructor?Object.getPrototypeOf(t):Object.prototype;if(null===e)return!0;var r=e.constructor;return"function"==typeof r&&r instanceof r&&i(r)===i(Object)}r.__esModule=!0,r["default"]=n;var i=function(t){return Function.prototype.toString.call(t)};e.exports=r["default"]},{}],29:[function(t,e,r){"use strict";function n(t,e){return Object.keys(t).reduce(function(r,n){return r[n]=e(t[n],n),r},{})}r.__esModule=!0,r["default"]=n,e.exports=r["default"]},{}],30:[function(t,e,r){"use strict";function n(t,e){return Object.keys(t).reduce(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{})}r.__esModule=!0,r["default"]=n,e.exports=r["default"]},{}],31:[function(t,e,r){!function(t,r){var n=t.define;n&&n.amd?n([],r):"undefined"!=typeof e&&e.exports?e.exports=r():t.Rlite=r()}(this,function(){return function(){function t(t){return t}function e(t){return~t.indexOf("/?")&&(t=t.replace("/?","?")),"/"==t[0]&&(t=t.slice(1)),"/"==t[t.length-1]&&(t=t.slice(0,-1)),t}function r(t,e){for(var r=t.split("/"),n=o,i={},u=0;u<r.length&&n;++u){var s=e(r[u]);n=n[s.toLowerCase()]||n[":"],n&&n["~"]&&(i[n["~"]]=s)}return n&&{cb:n["@"],params:i}}function n(t,e,r){if(t&&e.cb)for(var n=t.indexOf("#"),i=(0>n?t:t.slice(0,n)).split("&"),o=0;o<i.length;++o){var u=i[o].split("=");e.params[u[0]]=r(u[1])}return e}function i(i){var o=e(i).split("?"),s=~i.indexOf("%")?u:t;return n(o[1],r(o[0],s)||{},s)}var o={},u=decodeURIComponent;return{add:function(t,e){for(var r=t.toLowerCase().split("/"),n=o,i=0;i<r.length;++i){var u=r[i],s=":"==u[0]?":":u;n=n[s]||(n[s]={}),":"==s&&(n["~"]=u.slice(1))}n["@"]=e},exists:function(t){return!!i(t).cb},lookup:i,run:function(t){var e=i(t);return e.cb&&e.cb({url:t,params:e.params}),!!e.cb}}}})},{}],32:[function(t,e,r){var n=t("./vdom/create-element.js");e.exports=n},{"./vdom/create-element.js":44}],33:[function(t,e,r){var n=t("./vtree/diff.js");e.exports=n},{"./vtree/diff.js":64}],34:[function(t,e,r){var n=t("./virtual-hyperscript/index.js");e.exports=n},{"./virtual-hyperscript/index.js":51}],35:[function(t,e,r){e.exports=function(t){var e,r=String.prototype.split,n=/()??/.exec("")[1]===t;return e=function(e,i,o){if("[object RegExp]"!==Object.prototype.toString.call(i))return r.call(e,i,o);var u,s,a,c,f=[],h=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),p=0,i=new RegExp(i.source,h+"g");for(e+="",n||(u=new RegExp("^"+i.source+"$(?!\\s)",h)),o=o===t?-1>>>0:o>>>0;(s=i.exec(e))&&(a=s.index+s[0].length,!(a>p&&(f.push(e.slice(p,s.index)),!n&&s.length>1&&s[0].replace(u,function(){for(var e=1;e<arguments.length-2;e++)arguments[e]===t&&(s[e]=t)}),s.length>1&&s.index<e.length&&Array.prototype.push.apply(f,s.slice(1)),c=s[0].length,p=a,f.length>=o)));)i.lastIndex===s.index&&i.lastIndex++;return p===e.length?(c||!i.test(""))&&f.push(""):f.push(e.slice(p)),f.length>o?f.slice(0,o):f}}()},{}],36:[function(t,e,r){e.exports=t(11)},{"/Users/marknutter/Dropbox/OSS/nux/node_modules/dom-delegator/node_modules/ev-store/index.js":11,"individual/one-version":38}],37:[function(t,e,r){e.exports=t(12)},{"/Users/marknutter/Dropbox/OSS/nux/node_modules/dom-delegator/node_modules/ev-store/node_modules/individual/index.js":12}],38:[function(t,e,r){e.exports=t(13)},{"./index.js":37,"/Users/marknutter/Dropbox/OSS/nux/node_modules/dom-delegator/node_modules/ev-store/node_modules/individual/one-version.js":13}],39:[function(t,e,r){e.exports=t(14)},{"/Users/marknutter/Dropbox/OSS/nux/node_modules/dom-delegator/node_modules/global/document.js":14,"min-document":5}],40:[function(t,e,r){"use strict";e.exports=function(t){return"object"==typeof t&&null!==t}},{}],41:[function(t,e,r){function n(t){return"[object Array]"===o.call(t)}var i=Array.isArray,o=Object.prototype.toString;e.exports=i||n},{}],42:[function(t,e,r){var n=t("./vdom/patch.js");e.exports=n},{"./vdom/patch.js":47}],43:[function(t,e,r){function n(t,e,r){for(var n in e){var u=e[n];void 0===u?i(t,n,u,r):a(u)?(i(t,n,u,r),u.hook&&u.hook(t,n,r?r[n]:void 0)):s(u)?o(t,e,r,n,u):t[n]=u}}function i(t,e,r,n){if(n){var i=n[e];if(a(i))i.unhook&&i.unhook(t,e,r);else if("attributes"===e)for(var o in i)t.removeAttribute(o);else if("style"===e)for(var u in i)t.style[u]="";else"string"==typeof i?t[e]="":t[e]=null}}function o(t,e,r,n,i){var o=r?r[n]:void 0;if("attributes"!==n){if(o&&s(o)&&u(o)!==u(i))return void(t[n]=i);s(t[n])||(t[n]={});var a="style"===n?"":void 0;for(var c in i){var f=i[c];t[n][c]=void 0===f?a:f}}else for(var h in i){var p=i[h];void 0===p?t.removeAttribute(h):t.setAttribute(h,p)}}function u(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}var s=t("is-object"),a=t("../vnode/is-vhook.js");e.exports=n},{"../vnode/is-vhook.js":55,"is-object":40}],44:[function(t,e,r){function n(t,e){var r=e?e.document||i:i,f=e?e.warn:null;if(t=c(t).a,a(t))return t.init();if(s(t))return r.createTextNode(t.text);if(!u(t))return f&&f("Item is not a valid virtual dom node",t),null;var h=null===t.namespace?r.createElement(t.tagName):r.createElementNS(t.namespace,t.tagName),p=t.properties;o(h,p);for(var l=t.children,v=0;v<l.length;v++){var d=n(l[v],e);d&&h.appendChild(d)}return h}var i=t("global/document"),o=t("./apply-properties"),u=t("../vnode/is-vnode.js"),s=t("../vnode/is-vtext.js"),a=t("../vnode/is-widget.js"),c=t("../vnode/handle-thunk.js");e.exports=n},{"../vnode/handle-thunk.js":53,"../vnode/is-vnode.js":56,"../vnode/is-vtext.js":57,"../vnode/is-widget.js":58,"./apply-properties":43,"global/document":39}],45:[function(t,e,r){function n(t,e,r,n){return r&&0!==r.length?(r.sort(u),i(t,e,r,n,0)):{}}function i(t,e,r,n,u){if(n=n||{},t){o(r,u,u)&&(n[u]=t);var a=e.children;if(a)for(var c=t.childNodes,f=0;f<e.children.length;f++){u+=1;var h=a[f]||s,p=u+(h.count||0);o(r,u,p)&&i(c[f],h,r,n,u),u=p}}return n}function o(t,e,r){if(0===t.length)return!1;for(var n,i,o=0,u=t.length-1;u>=o;){if(n=(u+o)/2>>0,i=t[n],o===u)return i>=e&&r>=i;if(e>i)o=n+1;else{if(!(i>r))return!0;u=n-1}}return!1}function u(t,e){return t>e?1:-1}var s={};e.exports=n},{}],46:[function(t,e,r){function n(t,e,r){var n=t.type,c=t.vNode,l=t.patch;switch(n){case v.REMOVE:return i(e,c);case v.INSERT:return o(e,l,r);case v.VTEXT:return u(e,c,l,r);case v.WIDGET:return s(e,c,l,r);case v.VNODE:return a(e,c,l,r);case v.ORDER:return f(e,l),e;case v.PROPS:return p(e,l,c.properties),e;case v.THUNK:return h(e,r.patch(e,l,r));default:return e}}function i(t,e){var r=t.parentNode;return r&&r.removeChild(t),c(t,e),null}function o(t,e,r){var n=r.render(e,r);return t&&t.appendChild(n),t}function u(t,e,r,n){var i;if(3===t.nodeType)t.replaceData(0,t.length,r.text),i=t;else{var o=t.parentNode;i=n.render(r,n),o&&i!==t&&o.replaceChild(i,t)}return i}function s(t,e,r,n){var i,o=d(e,r);i=o?r.update(e,t)||t:n.render(r,n);var u=t.parentNode;return u&&i!==t&&u.replaceChild(i,t),o||c(t,e),i}function a(t,e,r,n){var i=t.parentNode,o=n.render(r,n);return i&&o!==t&&i.replaceChild(o,t),o}function c(t,e){"function"==typeof e.destroy&&l(e)&&e.destroy(t)}function f(t,e){for(var r,n,i,o=t.childNodes,u={},s=0;s<e.removes.length;s++)n=e.removes[s],r=o[n.from],n.key&&(u[n.key]=r),t.removeChild(r);for(var a=o.length,c=0;c<e.inserts.length;c++)i=e.inserts[c],r=u[i.key],t.insertBefore(r,i.to>=a++?null:o[i.to])}function h(t,e){return t&&e&&t!==e&&t.parentNode&&t.parentNode.replaceChild(e,t),e}var p=t("./apply-properties"),l=t("../vnode/is-widget.js"),v=t("../vnode/vpatch.js"),d=t("./update-widget");e.exports=n},{"../vnode/is-widget.js":58,"../vnode/vpatch.js":61,"./apply-properties":43,"./update-widget":48}],47:[function(t,e,r){function n(t,e,r){return r=r||{},r.patch=r.patch&&r.patch!==n?r.patch:i,r.render=r.render||c,r.patch(t,e,r)}function i(t,e,r){var n=u(e);if(0===n.length)return t;var i=f(t,e.a,n),a=t.ownerDocument;r.document||a===s||(r.document=a);for(var c=0;c<n.length;c++){var h=n[c];t=o(t,i[h],e[h],r)}return t}function o(t,e,r,n){if(!e)return t;var i;if(a(r))for(var o=0;o<r.length;o++)i=h(r[o],e,n),e===t&&(t=i);else i=h(r,e,n),e===t&&(t=i);return t}function u(t){var e=[];for(var r in t)"a"!==r&&e.push(Number(r));return e}var s=t("global/document"),a=t("x-is-array"),c=t("./create-element"),f=t("./dom-index"),h=t("./patch-op");e.exports=n},{"./create-element":44,"./dom-index":45,"./patch-op":46,"global/document":39,"x-is-array":41}],48:[function(t,e,r){function n(t,e){return i(t)&&i(e)?"name"in t&&"name"in e?t.id===e.id:t.init===e.init:!1}var i=t("../vnode/is-widget.js");e.exports=n},{"../vnode/is-widget.js":58}],49:[function(t,e,r){"use strict";function n(t){return this instanceof n?void(this.value=t):new n(t)}var i=t("ev-store");e.exports=n,n.prototype.hook=function(t,e){var r=i(t),n=e.substr(3);r[n]=this.value},n.prototype.unhook=function(t,e){var r=i(t),n=e.substr(3);r[n]=void 0}},{"ev-store":36}],50:[function(t,e,r){"use strict";function n(t){return this instanceof n?void(this.value=t):new n(t)}e.exports=n,n.prototype.hook=function(t,e){t[e]!==this.value&&(t[e]=this.value)}},{}],51:[function(t,e,r){"use strict";function n(t,e,r){var n,u,a,c,f=[];return!r&&s(e)&&(r=e,u={}),u=u||e||{},n=g(t,u),u.hasOwnProperty("key")&&(a=u.key,u.key=void 0),u.hasOwnProperty("namespace")&&(c=u.namespace,u.namespace=void 0),"INPUT"!==n||c||!u.hasOwnProperty("value")||void 0===u.value||_(u.value)||(u.value=m(u.value)),o(u),void 0!==r&&null!==r&&i(r,f,n,u),new h(n,u,f,a,c)}function i(t,e,r,n){if("string"==typeof t)e.push(new p(t));else if("number"==typeof t)e.push(new p(String(t)));else if(u(t))e.push(t);else{if(!f(t)){if(null===t||void 0===t)return;throw a({foreignObject:t,parentVnode:{tagName:r,properties:n}})}for(var o=0;o<t.length;o++)i(t[o],e,r,n)}}function o(t){for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];if(_(r))continue;"ev-"===e.substr(0,3)&&(t[e]=w(r))}}function u(t){return l(t)||v(t)||d(t)||y(t)}function s(t){return"string"==typeof t||f(t)||u(t)}function a(t){var e=new Error;return e.type="virtual-hyperscript.unexpected.virtual-element",e.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+c(t.foreignObject)+".\nThe parent vnode is:\n"+c(t.parentVnode),e.foreignObject=t.foreignObject,e.parentVnode=t.parentVnode,e}function c(t){try{return JSON.stringify(t,null," ")}catch(e){return String(t)}}var f=t("x-is-array"),h=t("../vnode/vnode.js"),p=t("../vnode/vtext.js"),l=t("../vnode/is-vnode"),v=t("../vnode/is-vtext"),d=t("../vnode/is-widget"),_=t("../vnode/is-vhook"),y=t("../vnode/is-thunk"),g=t("./parse-tag.js"),m=t("./hooks/soft-set-hook.js"),w=t("./hooks/ev-hook.js");e.exports=n},{"../vnode/is-thunk":54,"../vnode/is-vhook":55,"../vnode/is-vnode":56,"../vnode/is-vtext":57,"../vnode/is-widget":58,"../vnode/vnode.js":60,"../vnode/vtext.js":62,"./hooks/ev-hook.js":49,"./hooks/soft-set-hook.js":50,"./parse-tag.js":52,"x-is-array":41}],52:[function(t,e,r){"use strict";function n(t,e){if(!t)return"DIV";var r=!e.hasOwnProperty("id"),n=i(t,o),s=null;u.test(n[1])&&(s="DIV");var a,c,f,h;for(h=0;h<n.length;h++)c=n[h],c&&(f=c.charAt(0),s?"."===f?(a=a||[],a.push(c.substring(1,c.length))):"#"===f&&r&&(e.id=c.substring(1,c.length)):s=c);return a&&(e.className&&a.push(e.className),e.className=a.join(" ")),e.namespace?s:s.toUpperCase()}var i=t("browser-split"),o=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,u=/^\.|#/;e.exports=n},{"browser-split":35}],53:[function(t,e,r){function n(t,e){var r=t,n=e;return a(e)&&(n=i(e,t)),a(t)&&(r=i(t,null)),{a:r,b:n}}function i(t,e){var r=t.vnode;if(r||(r=t.vnode=t.render(e)),!(o(r)||u(r)||s(r)))throw new Error("thunk did not return a valid node");return r}var o=t("./is-vnode"),u=t("./is-vtext"),s=t("./is-widget"),a=t("./is-thunk");e.exports=n},{"./is-thunk":54,"./is-vnode":56,"./is-vtext":57,"./is-widget":58}],54:[function(t,e,r){function n(t){return t&&"Thunk"===t.type}e.exports=n},{}],55:[function(t,e,r){function n(t){return t&&("function"==typeof t.hook&&!t.hasOwnProperty("hook")||"function"==typeof t.unhook&&!t.hasOwnProperty("unhook"))}e.exports=n},{}],56:[function(t,e,r){function n(t){return t&&"VirtualNode"===t.type&&t.version===i}var i=t("./version");e.exports=n},{"./version":59}],57:[function(t,e,r){function n(t){return t&&"VirtualText"===t.type&&t.version===i}var i=t("./version");e.exports=n},{"./version":59}],58:[function(t,e,r){function n(t){return t&&"Widget"===t.type}e.exports=n},{}],59:[function(t,e,r){e.exports="2"},{}],60:[function(t,e,r){function n(t,e,r,n,i){this.tagName=t,this.properties=e||c,this.children=r||f,this.key=null!=n?String(n):void 0,this.namespace="string"==typeof i?i:null;var h,p=r&&r.length||0,l=0,v=!1,d=!1,_=!1;for(var y in e)if(e.hasOwnProperty(y)){var g=e[y];a(g)&&g.unhook&&(h||(h={}),h[y]=g)}for(var m=0;p>m;m++){var w=r[m];o(w)?(l+=w.count||0,!v&&w.hasWidgets&&(v=!0),!d&&w.hasThunks&&(d=!0),_||!w.hooks&&!w.descendantHooks||(_=!0)):!v&&u(w)?"function"==typeof w.destroy&&(v=!0):!d&&s(w)&&(d=!0)}this.count=p+l,this.hasWidgets=v,this.hasThunks=d,this.hooks=h,this.descendantHooks=_}var i=t("./version"),o=t("./is-vnode"),u=t("./is-widget"),s=t("./is-thunk"),a=t("./is-vhook");e.exports=n;var c={},f=[];n.prototype.version=i,n.prototype.type="VirtualNode"},{"./is-thunk":54,"./is-vhook":55,"./is-vnode":56,"./is-widget":58,"./version":59}],61:[function(t,e,r){function n(t,e,r){this.type=Number(t),this.vNode=e,this.patch=r}var i=t("./version");n.NONE=0,n.VTEXT=1,n.VNODE=2,n.WIDGET=3,n.PROPS=4,n.ORDER=5,n.INSERT=6,n.REMOVE=7,n.THUNK=8,e.exports=n,n.prototype.version=i,n.prototype.type="VirtualPatch"},{"./version":59}],62:[function(t,e,r){function n(t){this.text=String(t)}var i=t("./version");e.exports=n,n.prototype.version=i,n.prototype.type="VirtualText"},{"./version":59}],63:[function(t,e,r){function n(t,e){var r;for(var s in t){s in e||(r=r||{},r[s]=void 0);var a=t[s],c=e[s];if(a!==c)if(o(a)&&o(c))if(i(c)!==i(a))r=r||{},r[s]=c;else if(u(c))r=r||{},r[s]=c;else{var f=n(a,c);f&&(r=r||{},r[s]=f)}else r=r||{},r[s]=c}for(var h in e)h in t||(r=r||{},r[h]=e[h]);return r}function i(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}var o=t("is-object"),u=t("../vnode/is-vhook");e.exports=n},{"../vnode/is-vhook":55,"is-object":40}],64:[function(t,e,r){function n(t,e){var r={a:t};return i(t,e,r,0),r}function i(t,e,r,n){if(t!==e){var i=r[n],s=!1;if(b(t)||b(e))a(t,e,r,n);else if(null==e)w(t)||(u(t,r,n),i=r[n]),i=d(i,new y(y.REMOVE,t,e));else if(g(e))if(g(t))if(t.tagName===e.tagName&&t.namespace===e.namespace&&t.key===e.key){var c=x(t.properties,e.properties);c&&(i=d(i,new y(y.PROPS,t,c))),i=o(t,e,r,i,n)}else i=d(i,new y(y.VNODE,t,e)),s=!0;else i=d(i,new y(y.VNODE,t,e)),s=!0;else m(e)?m(t)?t.text!==e.text&&(i=d(i,new y(y.VTEXT,t,e))):(i=d(i,new y(y.VTEXT,t,e)),s=!0):w(e)&&(w(t)||(s=!0),i=d(i,new y(y.WIDGET,t,e)));i&&(r[n]=i),s&&u(t,r,n)}}function o(t,e,r,n,o){for(var u=t.children,s=p(u,e.children),a=s.children,c=u.length,f=a.length,h=c>f?c:f,l=0;h>l;l++){var v=u[l],_=a[l];o+=1,v?i(v,_,r,o):_&&(n=d(n,new y(y.INSERT,null,_))),g(v)&&v.count&&(o+=v.count)}return s.moves&&(n=d(n,new y(y.ORDER,t,s.moves))),n}function u(t,e,r){f(t,e,r),s(t,e,r)}function s(t,e,r){if(w(t))"function"==typeof t.destroy&&(e[r]=d(e[r],new y(y.REMOVE,t,null)));else if(g(t)&&(t.hasWidgets||t.hasThunks))for(var n=t.children,i=n.length,o=0;i>o;o++){var u=n[o];r+=1,s(u,e,r),g(u)&&u.count&&(r+=u.count)}else b(t)&&a(t,null,e,r)}function a(t,e,r,i){var o=S(t,e),u=n(o.a,o.b);c(u)&&(r[i]=new y(y.THUNK,null,u))}function c(t){for(var e in t)if("a"!==e)return!0;return!1}function f(t,e,r){if(g(t)){if(t.hooks&&(e[r]=d(e[r],new y(y.PROPS,t,h(t.hooks)))),t.descendantHooks||t.hasThunks)for(var n=t.children,i=n.length,o=0;i>o;o++){var u=n[o];r+=1,f(u,e,r),g(u)&&u.count&&(r+=u.count)}}else b(t)&&a(t,null,e,r)}function h(t){var e={};for(var r in t)e[r]=void 0;return e}function p(t,e){var r=v(e),n=r.keys,i=r.free;if(i.length===e.length)return{children:e,moves:null};var o=v(t),u=o.keys,s=o.free;if(s.length===t.length)return{children:e,moves:null};for(var a=[],c=0,f=i.length,h=0,p=0;p<t.length;p++){var d,_=t[p];_.key?n.hasOwnProperty(_.key)?(d=n[_.key],a.push(e[d])):(d=p-h++,a.push(null)):f>c?(d=i[c++],a.push(e[d])):(d=p-h++,a.push(null))}for(var y=c>=i.length?e.length:i[c],g=0;g<e.length;g++){var m=e[g];m.key?u.hasOwnProperty(m.key)||a.push(m):g>=y&&a.push(m)}for(var w,b=a.slice(),S=0,x=[],I=[],k=0;k<e.length;){var E=e[k];for(w=b[S];null===w&&b.length;)x.push(l(b,S,null)),w=b[S];w&&w.key===E.key?(S++,k++):E.key?(w&&w.key&&n[w.key]!==k+1?(x.push(l(b,S,w.key)),w=b[S],w&&w.key===E.key?S++:I.push({key:E.key,to:k})):I.push({key:E.key,to:k}),k++):w&&w.key&&x.push(l(b,S,w.key))}for(;S<b.length;)w=b[S],x.push(l(b,S,w&&w.key));return x.length!==h||I.length?{children:a,moves:{removes:x,inserts:I}}:{children:a,moves:null}}function l(t,e,r){return t.splice(e,1),{from:e,key:r}}function v(t){for(var e={},r=[],n=t.length,i=0;n>i;i++){var o=t[i];o.key?e[o.key]=i:r.push(i)}return{keys:e,free:r}}function d(t,e){return t?(_(t)?t.push(e):t=[t,e],t):e}var _=t("x-is-array"),y=t("../vnode/vpatch"),g=t("../vnode/is-vnode"),m=t("../vnode/is-vtext"),w=t("../vnode/is-widget"),b=t("../vnode/is-thunk"),S=t("../vnode/handle-thunk"),x=t("./diff-props");e.exports=n},{
"../vnode/handle-thunk":53,"../vnode/is-thunk":54,"../vnode/is-vnode":56,"../vnode/is-vtext":57,"../vnode/is-widget":58,"../vnode/vpatch":61,"./diff-props":63,"x-is-array":41}]},{},[1]);