text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("redux-api",[],e):"object"==typeof exports?exports["redux-api"]=e():t["redux-api"]=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=26)}([function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i={};i.hexTable=new Array(256);for(var o=0;o<256;++o)i.hexTable[o]="%"+((o<16?"0":"")+o.toString(16)).toUpperCase();e.arrayToObject=function(t,e){for(var r=e.plainObjects?Object.create(null):{},n=0,i=t.length;n<i;++n)"undefined"!=typeof t[n]&&(r[n]=t[n]);return r},e.merge=function(t,r,i){if(!r)return t;if("object"!==("undefined"==typeof r?"undefined":n(r)))return Array.isArray(t)?t.push(r):"object"===("undefined"==typeof t?"undefined":n(t))?t[r]=!0:t=[t,r],t;if("object"!==("undefined"==typeof t?"undefined":n(t)))return t=[t].concat(r);Array.isArray(t)&&!Array.isArray(r)&&(t=e.arrayToObject(t,i));for(var o=Object.keys(r),u=0,s=o.length;u<s;++u){var a=o[u],c=r[a];Object.prototype.hasOwnProperty.call(t,a)?t[a]=e.merge(t[a],c,i):t[a]=c}return t},e.decode=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},e.encode=function(t){if(0===t.length)return t;"string"!=typeof t&&(t=""+t);for(var e="",r=0,n=t.length;r<n;++r){var o=t.charCodeAt(r);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?e+=t[r]:o<128?e+=i.hexTable[o]:o<2048?e+=i.hexTable[192|o>>6]+i.hexTable[128|63&o]:o<55296||o>=57344?e+=i.hexTable[224|o>>12]+i.hexTable[128|o>>6&63]+i.hexTable[128|63&o]:(++r,o=65536+((1023&o)<<10|1023&t.charCodeAt(r)),e+=i.hexTable[240|o>>18]+i.hexTable[128|o>>12&63]+i.hexTable[128|o>>6&63]+i.hexTable[128|63&o])}return e},e.compact=function(t,r){if("object"!==("undefined"==typeof t?"undefined":n(t))||null===t)return t;r=r||[];var i=r.indexOf(t);if(i!==-1)return r[i];if(r.push(t),Array.isArray(t)){for(var o=[],u=0,s=t.length;u<s;++u)"undefined"!=typeof t[u]&&o.push(t[u]);return o}var a=Object.keys(t);for(u=0,s=a.length;u<s;++u){var c=a[u];t[c]=e.compact(t[c],r)}return t},e.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},e.isBuffer=function(t){return null!==t&&"undefined"!=typeof t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}},function(t,e,r){"use strict";function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(t,e,r){if(t&&f.isObject(t)&&t instanceof n)return t;var i=new n;return i.parse(t,e,r),i}function o(t){return f.isString(t)&&(t=i(t)),t instanceof n?t.format():n.prototype.format.call(t)}function u(t,e){return i(t,!1,!0).resolve(e)}function s(t,e){return t?i(t,!1,!0).resolveObject(e):e}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c=r(10),f=r(17);e.parse=i,e.resolve=u,e.resolveObject=s,e.format=o,e.Url=n;var h=/^([a-z0-9.+-]+:)/i,p=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,y=["<",">",'"',"`"," ","\r","\n","\t"],v=["{","}","|","\\","^","`"].concat(y),_=["'"].concat(v),d=["%","/","?",";","#"].concat(_),m=["/","?","#"],g=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,S={javascript:!0,"javascript:":!0},O={javascript:!0,"javascript:":!0},j={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},I=r(16);n.prototype.parse=function(t,e,r){if(!f.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+("undefined"==typeof t?"undefined":a(t)));var n=t.indexOf("?"),i=n!==-1&&n<t.indexOf("#")?"?":"#",o=t.split(i),u=/\\/g;o[0]=o[0].replace(u,"/"),t=o.join(i);var s=t;if(s=s.trim(),!r&&1===t.split("#").length){var p=l.exec(s);if(p)return this.path=s,this.href=s,this.pathname=p[1],p[2]?(this.search=p[2],e?this.query=I.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var y=h.exec(s);if(y){y=y[0];var v=y.toLowerCase();this.protocol=v,s=s.substr(y.length)}if(r||y||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===s.substr(0,2);!x||y&&O[y]||(s=s.substr(2),this.slashes=!0)}if(!O[y]&&(x||y&&!j[y])){for(var z=-1,q=0;q<m.length;q++){var A=s.indexOf(m[q]);A!==-1&&(z===-1||A<z)&&(z=A)}var D,M;M=z===-1?s.lastIndexOf("@"):s.lastIndexOf("@",z),M!==-1&&(D=s.slice(0,M),s=s.slice(M+1),this.auth=decodeURIComponent(D)),z=-1;for(var q=0;q<d.length;q++){var A=s.indexOf(d[q]);A!==-1&&(z===-1||A<z)&&(z=A)}z===-1&&(z=s.length),this.host=s.slice(0,z),s=s.slice(z),this.parseHost(),this.hostname=this.hostname||"";var E="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!E)for(var k=this.hostname.split(/\./),q=0,P=k.length;q<P;q++){var U=k[q];if(U&&!U.match(b)){for(var R="",C=0,T=U.length;C<T;C++)R+=U.charCodeAt(C)>127?"x":U[C];if(!R.match(b)){var L=k.slice(0,q),K=k.slice(q+1),N=U.match(w);N&&(L.push(N[1]),K.unshift(N[2])),K.length&&(s="/"+K.join(".")+s),this.hostname=L.join(".");break}}}this.hostname.length>g?this.hostname="":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=c.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!S[v])for(var q=0,P=_.length;q<P;q++){var H=_[q];if(s.indexOf(H)!==-1){var W=encodeURIComponent(H);W===H&&(W=escape(H)),s=s.split(H).join(W)}}var J=s.indexOf("#");J!==-1&&(this.hash=s.substr(J),s=s.slice(0,J));var V=s.indexOf("?");if(V!==-1?(this.search=s.substr(V),this.query=s.substr(V+1),e&&(this.query=I.parse(this.query)),s=s.slice(0,V)):e&&(this.search="",this.query={}),s&&(this.pathname=s),j[v]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var F=this.pathname||"",$=this.search||"";this.path=F+$}return this.href=this.format(),this},n.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=t+this.host:this.hostname&&(i=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&f.isObject(this.query)&&Object.keys(this.query).length&&(o=I.stringify(this.query));var u=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||j[e])&&i!==!1?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),u&&"?"!==u.charAt(0)&&(u="?"+u),r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),u=u.replace("#","%23"),e+i+r+u+n},n.prototype.resolve=function(t){return this.resolveObject(i(t,!1,!0)).format()},n.prototype.resolveObject=function(t){if(f.isString(t)){var e=new n;e.parse(t,!1,!0),t=e}for(var r=new n,i=Object.keys(this),o=0;o<i.length;o++){var u=i[o];r[u]=this[u]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),a=0;a<s.length;a++){var c=s[a];"protocol"!==c&&(r[c]=t[c])}return j[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!j[t.protocol]){for(var h=Object.keys(t),p=0;p<h.length;p++){var l=h[p];r[l]=t[l]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||O[t.protocol])r.pathname=t.pathname;else{for(var y=(t.pathname||"").split("/");y.length&&!(t.host=y.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==y[0]&&y.unshift(""),y.length<2&&y.unshift(""),r.pathname=y.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var v=r.pathname||"",_=r.search||"";r.path=v+_}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var d=r.pathname&&"/"===r.pathname.charAt(0),m=t.host||t.pathname&&"/"===t.pathname.charAt(0),g=m||d||r.host&&t.pathname,b=g,w=r.pathname&&r.pathname.split("/")||[],y=t.pathname&&t.pathname.split("/")||[],S=r.protocol&&!j[r.protocol];if(S&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===y[0]?y[0]=t.host:y.unshift(t.host)),t.host=null),g=g&&(""===y[0]||""===w[0])),m)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,w=y;else if(y.length)w||(w=[]),w.pop(),w=w.concat(y),r.search=t.search,r.query=t.query;else if(!f.isNullOrUndefined(t.search)){if(S){r.hostname=r.host=w.shift();var I=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");I&&(r.auth=I.shift(),r.host=r.hostname=I.shift())}return r.search=t.search,r.query=t.query,f.isNull(r.pathname)&&f.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=w.slice(-1)[0],z=(r.host||t.host||w.length>1)&&("."===x||".."===x)||""===x,q=0,A=w.length;A>=0;A--)x=w[A],"."===x?w.splice(A,1):".."===x?(w.splice(A,1),q++):q&&(w.splice(A,1),q--);if(!g&&!b)for(;q--;q)w.unshift("..");!g||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),z&&"/"!==w.join("/").substr(-1)&&w.push("");var D=""===w[0]||w[0]&&"/"===w[0].charAt(0);if(S){r.hostname=r.host=D?"":w.length?w.shift():"";var I=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");I&&(r.auth=I.shift(),r.host=r.hostname=I.shift())}return g=g||r.host&&w.length,g&&!D&&w.unshift(""),w.length?r.pathname=w.join("/"):(r.pathname=null,r.path=null),f.isNull(r.pathname)&&f.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var t=this.host,e=p.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,r){"use strict";function n(t,e){if(void 0===t)return e;if(void 0===e)return t;var r=i.call(t),s=i.call(e);return r===u?t.concat(e):s===u?[t].concat(e):r!==o||s!==o?e:Object.keys(e).reduce(function(r,i){return r[i]=n(t[i],e[i]),r},t)}Object.defineProperty(e,"__esModule",{value:!0}),e.mergePair=n,e.default=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length?e.reduce(n):null};var i=Object.prototype.toString,o="[object Object]",u="[object Array]"},function(t,e){(function(e){t.exports=e}).call(e,{})},function(t,e,r){"use strict";var n,i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(u,s){"object"===o(e)&&"undefined"!=typeof t?t.exports=s():(n=s,i="function"==typeof n?n.call(e,r,e,t):n,!(void 0!==i&&(t.exports=i)))}(void 0,function(){function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return u(t)?t:D(t)}function r(t){return s(t)?t:M(t)}function n(t){return a(t)?t:E(t)}function i(t){return u(t)&&!c(t)?t:k(t)}function u(t){return!(!t||!t[cr])}function s(t){return!(!t||!t[fr])}function a(t){return!(!t||!t[hr])}function c(t){return s(t)||a(t)}function f(t){return!(!t||!t[pr])}function h(t){return t.value=!1,t}function p(t){t&&(t.value=!0)}function l(){}function y(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function v(t){return void 0===t.size&&(t.size=t.__iterate(d)),t.size}function _(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?v(t)+e:e}function d(){return!0}function m(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function g(t,e){return w(t,e,0)}function b(t,e){return w(t,e,e)}function w(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function S(t){this.next=t}function O(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 j(){return{value:void 0,done:!0}}function I(t){return!!q(t)}function x(t){return t&&"function"==typeof t.next}function z(t){var e=q(t);return e&&e.call(t)}function q(t){var e=t&&(Or&&t[Or]||t[jr]);if("function"==typeof e)return e}function A(t){return t&&"number"==typeof t.length}function D(t){return null===t||void 0===t?L():u(t)?t.toSeq():F(t)}function M(t){return null===t||void 0===t?L().toKeyedSeq():u(t)?s(t)?t.toSeq():t.fromEntrySeq():K(t)}function E(t){return null===t||void 0===t?L():u(t)?s(t)?t.entrySeq():t.toIndexedSeq():N(t)}function k(t){return(null===t||void 0===t?L():u(t)?s(t)?t.entrySeq():t:N(t)).toSetSeq()}function P(t){this._array=t,this.size=t.length}function U(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function R(t){this._iterable=t,this.size=t.length||t.size}function C(t){this._iterator=t,this._iteratorCache=[]}function T(t){return!(!t||!t[xr])}function L(){return zr||(zr=new P([]))}function K(t){var e=Array.isArray(t)?new P(t).fromEntrySeq():x(t)?new C(t).fromEntrySeq():I(t)?new R(t).fromEntrySeq():"object"===("undefined"==typeof t?"undefined":o(t))?new U(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function N(t){var e=B(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function F(t){var e=B(t)||"object"===("undefined"==typeof t?"undefined":o(t))&&new U(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function B(t){return A(t)?new P(t):x(t)?new C(t):I(t)?new R(t):void 0}function H(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;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 W(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new S(function(){var t=i[r?o-u:u];return u++>o?j():O(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function J(t,e){return e?V(e,t,"",{"":t}):$(t)}function V(t,e,r,n){return Array.isArray(e)?t.call(n,r,E(e).map(function(r,n){return V(t,r,n,e)})):G(e)?t.call(n,r,M(e).map(function(r,n){return V(t,r,n,e)})):e}function $(t){return Array.isArray(t)?E(t).map($).toList():G(t)?M(t).map($).toMap():t}function G(t){return t&&(t.constructor===Object||void 0===t.constructor)}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))}function Z(t,e){if(t===e)return!0;if(!u(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||s(t)!==s(e)||a(t)!==a(e)||f(t)!==f(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!c(t);if(f(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 h=!0,p=e.__iterate(function(e,n){if(r?!t.has(e):i?!Y(e,t.get(n,dr)):!Y(t.get(n,dr),e))return h=!1,!1});return h&&t.size===p}function Q(t,e){if(!(this instanceof Q))return new Q(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(qr)return qr;qr=this}}function X(t,e){if(!t)throw new Error(e)}function tt(t,e,r){if(!(this instanceof tt))return new tt(t,e,r);if(X(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),e<t&&(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(Ar)return Ar;Ar=this}}function et(){throw TypeError("Abstract")}function rt(){}function nt(){}function it(){}function ot(t){return t>>>1&1073741824|3221225471&t}function ut(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="undefined"==typeof t?"undefined":o(t);if("number"===e){if(t!==t||t===1/0)return 0;var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return ot(r)}if("string"===e)return t.length>Cr?st(t):at(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return ct(t);if("function"==typeof t.toString)return at(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function st(t){var e=Kr[t];return void 0===e&&(e=at(t),Lr===Tr&&(Lr=0,Kr={}),Lr++,Kr[t]=e),e}function at(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return ot(e)}function ct(t){var e;if(Pr&&(e=Dr.get(t),void 0!==e))return e;if(e=t[Rr],void 0!==e)return e;if(!kr){if(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Rr],void 0!==e)return e;if(e=ft(t),void 0!==e)return e}if(e=++Ur,1073741824&Ur&&(Ur=0),Pr)Dr.set(t,e);else{if(void 0!==Er&&Er(t)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(kr)Object.defineProperty(t,Rr,{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[Rr]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Rr]=e}}return e}function ft(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ht(t){X(t!==1/0,"Cannot perform this action with an infinite size.")}function pt(t){return null===t||void 0===t?Ot():lt(t)&&!f(t)?t:Ot().withMutations(function(e){var n=r(t);ht(n.size),n.forEach(function(t,r){return e.set(r,t)})})}function lt(t){return!(!t||!t[Nr])}function yt(t,e){this.ownerID=t,this.entries=e}function vt(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function _t(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function dt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function mt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function gt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&wt(t._root)}function bt(t,e){return O(t,e[0],e[1])}function wt(t,e){return{node:t,index:0,__prev:e}}function St(t,e,r,n){var i=Object.create(Fr);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Ot(){return Br||(Br=St(0))}function jt(t,e,r){var n,i;if(t._root){var o=h(mr),u=h(gr);if(n=It(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===dr?-1:1:0)}else{if(r===dr)return t;i=1,n=new yt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?St(i,n):Ot()}function It(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===dr?t:(p(s),p(u),new mt(e,n,[i,o]))}function xt(t){return t.constructor===mt||t.constructor===dt}function zt(t,e,r,n,i){if(t.keyHash===n)return new dt(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&_r,s=(0===r?n:n>>>r)&_r,a=u===s?[zt(t,e,r+yr,n,i)]:(o=new mt(e,n,i),u<s?[t,o]:[o,t]);return new vt(e,1<<u|1<<s,a)}function qt(t,e,r,n){t||(t=new l);for(var i=new mt(t,ut(r),[r,n]),o=0;o<e.length;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}function At(t,e,r,n){for(var i=0,o=0,u=new Array(r),s=0,a=1,c=e.length;s<c;s++,a<<=1){var f=e[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new vt(t,i,u)}function Dt(t,e,r,n,i){for(var o=0,u=new Array(vr),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new _t(t,o+1,u)}function Mt(t,e,n){for(var i=[],o=0;o<n.length;o++){var s=n[o],a=r(s);u(s)||(a=a.map(function(t){return J(t)})),i.push(a)}return Pt(t,e,i)}function Et(t,e,r){return t&&t.mergeDeep&&u(e)?t.mergeDeep(e):Y(t,e)?t:e}function kt(t){return function(e,r,n){if(e&&e.mergeDeepWith&&u(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return Y(e,i)?e:i}}function Pt(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,dr,function(t){return t===dr?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 Ut(t,e,r,n){var i=t===dr,o=e.next();if(o.done){var u=i?r:t,s=n(u);return s===u?t:s}X(i||t&&t.set,"invalid keyPath");var a=o.value,c=i?dr:t.get(a,dr),f=Ut(c,e,r,n);return f===c?t:f===dr?t.remove(a):(i?Ot():t).set(a,f)}function Rt(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 Ct(t,e,r,n){var i=n?t:y(t);return i[e]=r,i}function Tt(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;s<i;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function Lt(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;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}function Kt(t){var e=Wt();if(null===t||void 0===t)return e;if(Nt(t))return t;var r=n(t),i=r.size;return 0===i?e:(ht(i),i>0&&i<vr?Ht(0,i,yr,null,new Ft(r.toArray())):e.withMutations(function(t){t.setSize(i),r.forEach(function(e,r){return t.set(r,e)})}))}function Nt(t){return!(!t||!t[Vr])}function Ft(t,e){this.array=t,this.ownerID=e}function Bt(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>vr&&(c=vr),function(){if(i===c)return Yr;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>vr&&(f=vr),function(){for(;;){if(s){var t=s();if(t!==Yr)return t;s=null}if(c===f)return Yr;var o=e?--f:c++;s=r(a&&a[o],n-yr,i+(o<<n))}}}var o=t._origin,u=t._capacity,s=Qt(u),a=t._tail;return r(t._root,t._level,0)}function Ht(t,e,r,n,i,o,u){var s=Object.create($r);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 Wt(){return Gr||(Gr=Ht(0,0,yr))}function Jt(t,e,r){if(e=_(t,e),e!==e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Yt(t,e).set(0,r):Yt(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=h(gr);return e>=Qt(t._capacity)?n=Vt(n,t.__ownerID,0,e,r,o):i=Vt(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Ht(t._origin,t._capacity,t._level,i,n):t}function Vt(t,e,r,n,i,o){var u=n>>>r&_r,s=t&&u<t.array.length;if(!s&&void 0===i)return t;var a;if(r>0){var c=t&&t.array[u],f=Vt(c,e,r-yr,n,i,o);return f===c?t:(a=$t(t,e),a.array[u]=f,a)}return s&&t.array[u]===i?t:(p(o),a=$t(t,e),void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function $t(t,e){return e&&t&&e===t.ownerID?t:new Ft(t?t.array.slice():[],e)}function Gt(t,e){if(e>=Qt(t._capacity))return t._tail;if(e<1<<t._level+yr){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&_r],n-=yr;return r}}function Yt(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new l,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:r<0?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,c=t._root,f=0;u+f<0;)c=new Ft(c&&c.array.length?[void 0,c]:[],n),a+=yr,f+=1<<a;f&&(u+=f,i+=f,s+=f,o+=f);for(var h=Qt(o),p=Qt(s);p>=1<<a+yr;)c=new Ft(c&&c.array.length?[c]:[],n),a+=yr;var y=t._tail,v=p<h?Gt(t,s-1):p>h?new Ft([],n):y;if(y&&p>h&&u<o&&y.array.length){c=$t(c,n);for(var _=c,d=a;d>yr;d-=yr){var m=h>>>d&_r;_=_.array[m]=$t(_.array[m],n)}_.array[h>>>yr&_r]=y}if(s<o&&(v=v&&v.removeAfter(n,0,s)),u>=p)u-=p,s-=p,a=yr,c=null,v=v&&v.removeBefore(n,0,u);else if(u>i||p<h){for(f=0;c;){var g=u>>>a&_r;if(g!==p>>>a&_r)break;g&&(f+=(1<<a)*g),a-=yr,c=c.array[g]}c&&u>i&&(c=c.removeBefore(n,a,u-f)),c&&p<h&&(c=c.removeAfter(n,a,p-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=c,t._tail=v,t.__hash=void 0,t.__altered=!0,t):Ht(u,s,a,c,v)}function Zt(t,e,r){for(var i=[],o=0,s=0;s<r.length;s++){var a=r[s],c=n(a);c.size>o&&(o=c.size),u(a)||(c=c.map(function(t){return J(t)})),i.push(c)}return o>t.size&&(t=t.setSize(o)),Pt(t,e,i)}function Qt(t){return t<vr?0:t-1>>>yr<<yr}function Xt(t){return null===t||void 0===t?re():te(t)?t:re().withMutations(function(e){var n=r(t);ht(n.size),n.forEach(function(t,r){return e.set(r,t)})})}function te(t){return lt(t)&&f(t)}function ee(t,e,r,n){var i=Object.create(Xt.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function re(){return Zr||(Zr=ee(Ot(),Wt()))}function ne(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===dr){if(!a)return t;u.size>=vr&&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):ee(n,i)}function ie(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ue(t){this._iter=t,this.size=t.size}function se(t){this._iter=t,this.size=t.size}function ae(t){var e=Ae(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=De,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===Sr){var n=t.__iterator(e,r);return new S(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===wr?br:wr,r)},e}function ce(t,e,r){var n=Ae(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,dr);return o===dr?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(Sr,i);return new S(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return O(n,s,e.call(r,u[1],s,t),i)})},n}function fe(t,e){var r=Ae(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=ae(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=De,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 he(t,e,r,n){var i=Ae(t);return n&&(i.has=function(n){var i=t.get(n,dr);return i!==dr&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,dr);return o!==dr&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){if(e.call(r,t,o,a))return s++,i(t,n?o:s-1,u)},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(Sr,o),s=0;return new S(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 O(i,n?c:s++,f,o)}})},i}function pe(t,e,r){var n=pt().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}function le(t,e,r){var n=s(t),i=(f(t)?Xt():pt()).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=qe(t);return i.map(function(e){return Ie(t,o(e))})}function ye(t,e,r,n){var i=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r===1/0?r=i:r|=0),m(e,r,i))return t;var o=g(e,i),u=b(r,i);if(o!==o||u!==u)return ye(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a===a&&(s=a<0?0:a);var c=Ae(t);return c.size=0===s?s:t.size&&s||void 0,!n&&T(t)&&s>=0&&(c.get=function(e,r){return e=_(this,e),e>=0&&e<s?t.get(e+o,r):r}),c.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,c=0;return t.__iterate(function(t,r){if(!a||!(a=u++<o))return c++,e(t,n?r:c-1,i)!==!1&&c!==s}),c},c.__iteratorUncached=function(e,r){if(0!==s&&r)return this.cacheResult().__iterator(e,r);var i=0!==s&&t.__iterator(e,r),u=0,a=0;return new S(function(){for(;u++<o;)i.next();if(++a>s)return j();var t=i.next();return n||e===wr?t:e===br?O(e,a-1,void 0,t):O(e,a-1,t.value[1],t)})},c}function ve(t,e,r){var n=Ae(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(Sr,i),s=!0;return new S(function(){if(!s)return j();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===Sr?t:O(n,a,c,t):(s=!1,j())})},n}function _e(t,e,r,n){var i=Ae(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate(function(t,o,c){if(!s||!(s=e.call(r,t,o,c)))return a++,i(t,n?o:a-1,u)}),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(Sr,o),a=!0,c=0;return new S(function(){var t,o,f;do{if(t=s.next(),t.done)return n||i===wr?t:i===br?O(i,c++,void 0,t):O(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===Sr?t:O(i,o,f,t)})},i}function de(t,e){var n=s(t),i=[t].concat(e).map(function(t){return u(t)?n&&(t=r(t)):t=n?K(t):N(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||n&&s(o)||a(t)&&a(o))return o}var c=new P(i);return n?c=c.toKeyedSeq():a(t)||(c=c.toSetSeq()),c=c.flatten(!0),c.size=i.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),c}function me(t,e,r){var n=Ae(t);return n.__iterateUncached=function(n,i){function o(t,c){var f=this;t.__iterate(function(t,i){return(!e||c<e)&&u(t)?o(t,c+1):n(t,r?i:s++,f)===!1&&(a=!0),!a},i)}var s=0,a=!1;return o(t,0),s},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),s=[],a=0;return new S(function(){for(;o;){var t=o.next();if(t.done===!1){var c=t.value;if(n===Sr&&(c=c[1]),e&&!(s.length<e)||!u(c))return r?t:O(n,a++,c,t);s.push(o),o=c.__iterator(n,i)}else o=s.pop()}return j()})},n}function ge(t,e,r){var n=qe(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}function be(t,e){var r=Ae(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(wr,n),u=0;return new S(function(){return(!i||u%2)&&(i=o.next(),i.done)?i:u%2?O(r,u++,e):O(r,u++,i.value,i)})},r}function we(t,e,r){e||(e=Me);var n=s(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):a(t)?E(o):k(o)}function Se(t,e,r){if(e||(e=Me),r){var n=t.toSeq().map(function(e,n){
  return[e,r(e,n,t)]}).reduce(function(t,r){return Oe(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return Oe(e,t,r)?r:t})}function Oe(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(void 0===r||null===r||r!==r)||n>0}function je(t,r,n){var i=Ae(t);return i.size=new P(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(wr,e),i=0;!(r=n.next()).done&&t(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=e(t),z(i?t.reverse():t)}),u=0,s=!1;return new S(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?j():O(t,u++,r.apply(null,e.map(function(t){return t.value})))})},i}function Ie(t,e){return T(t)?e:t.constructor(e)}function xe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function ze(t){return ht(t.size),v(t)}function qe(t){return s(t)?r:a(t)?n:i}function Ae(t){return Object.create((s(t)?M:a(t)?E:k).prototype)}function De(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):D.prototype.cacheResult.call(this)}function Me(t,e){return t>e?1:t<e?-1:0}function Ee(t){var r=z(t);if(!r){if(!A(t))throw new TypeError("Expected iterable or array-like: "+t);r=z(e(t))}return r}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);Re(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=pt(o)},i=n.prototype=Object.create(Qr);return i.constructor=n,n}function Pe(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function Ue(t){return t._name||t.constructor.name||"Record"}function Re(t,e){try{e.forEach(Ce.bind(void 0,t))}catch(t){}}function Ce(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){X(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Te(t){return null===t||void 0===t?Fe():Le(t)&&!f(t)?t:Fe().withMutations(function(e){var r=i(t);ht(r.size),r.forEach(function(t){return e.add(t)})})}function Le(t){return!(!t||!t[Xr])}function Ke(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(tn);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Fe(){return en||(en=Ne(Ot()))}function Be(t){return null===t||void 0===t?Je():He(t)?t:Je().withMutations(function(e){var r=i(t);ht(r.size),r.forEach(function(t){return e.add(t)})})}function He(t){return Le(t)&&f(t)}function We(t,e){var r=Object.create(rn);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Je(){return nn||(nn=We(re()))}function Ve(t){return null===t||void 0===t?Ye():$e(t)?t:Ye().unshiftAll(t)}function $e(t){return!(!t||!t[on])}function Ge(t,e,r,n){var i=Object.create(un);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Ye(){return sn||(sn=Ge(0))}function Ze(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 Qe(t,e){return e}function Xe(t,e){return[e,t]}function tr(t){return function(){return!t.apply(this,arguments)}}function er(t){return function(){return-t.apply(this,arguments)}}function rr(t){return"string"==typeof t?JSON.stringify(t):String(t)}function nr(){return y(arguments)}function ir(t,e){return t<e?1:t>e?-1:0}function or(t){if(t.size===1/0)return 0;var e=f(t),r=s(t),n=e?1:0,i=t.__iterate(r?e?function(t,e){n=31*n+sr(ut(t),ut(e))|0}:function(t,e){n=n+sr(ut(t),ut(e))|0}:e?function(t){n=31*n+ut(t)|0}:function(t){n=n+ut(t)|0});return ur(i,n)}function ur(t,e){return e=Mr(e,3432918353),e=Mr(e<<15|e>>>-15,461845907),e=Mr(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Mr(e^e>>>16,2246822507),e=Mr(e^e>>>13,3266489909),e=ot(e^e>>>16)}function sr(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var ar=Array.prototype.slice;t(r,e),t(n,e),t(i,e),e.isIterable=u,e.isKeyed=s,e.isIndexed=a,e.isAssociative=c,e.isOrdered=f,e.Keyed=r,e.Indexed=n,e.Set=i;var cr="@@__IMMUTABLE_ITERABLE__@@",fr="@@__IMMUTABLE_KEYED__@@",hr="@@__IMMUTABLE_INDEXED__@@",pr="@@__IMMUTABLE_ORDERED__@@",lr="delete",yr=5,vr=1<<yr,_r=vr-1,dr={},mr={value:!1},gr={value:!1},br=0,wr=1,Sr=2,Or="function"==typeof Symbol&&Symbol.iterator,jr="@@iterator",Ir=Or||jr;S.prototype.toString=function(){return"[Iterator]"},S.KEYS=br,S.VALUES=wr,S.ENTRIES=Sr,S.prototype.inspect=S.prototype.toSource=function(){return this.toString()},S.prototype[Ir]=function(){return this},t(D,e),D.of=function(){return D(arguments)},D.prototype.toSeq=function(){return this},D.prototype.toString=function(){return this.__toString("Seq {","}")},D.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},D.prototype.__iterate=function(t,e){return H(this,t,e,!0)},D.prototype.__iterator=function(t,e){return W(this,t,e,!0)},t(M,D),M.prototype.toKeyedSeq=function(){return this},t(E,D),E.of=function(){return E(arguments)},E.prototype.toIndexedSeq=function(){return this},E.prototype.toString=function(){return this.__toString("Seq [","]")},E.prototype.__iterate=function(t,e){return H(this,t,e,!1)},E.prototype.__iterator=function(t,e){return W(this,t,e,!1)},t(k,D),k.of=function(){return k(arguments)},k.prototype.toSetSeq=function(){return this},D.isSeq=T,D.Keyed=M,D.Set=k,D.Indexed=E;var xr="@@__IMMUTABLE_SEQ__@@";D.prototype[xr]=!0,t(P,E),P.prototype.get=function(t,e){return this.has(t)?this._array[_(this,t)]:e},P.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(t(r[e?n-i:i],i,this)===!1)return i+1;return i},P.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new S(function(){return i>n?j():O(t,i,r[e?n-i++:i++])})},t(U,M),U.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},U.prototype.has=function(t){return this._object.hasOwnProperty(t)},U.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var u=n[e?i-o:o];if(t(r[u],u,this)===!1)return o+1}return o},U.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new S(function(){var u=n[e?i-o:o];return o++>i?j():O(t,u,r[u])})},U.prototype[pr]=!0,t(R,E),R.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=this._iterable,n=z(r),i=0;if(x(n))for(var o;!(o=n.next()).done&&t(o.value,i++,this)!==!1;);return i},R.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterable,n=z(r);if(!x(n))return new S(j);var i=0;return new S(function(){var e=n.next();return e.done?e:O(t,i++,e.value)})},t(C,E),C.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},C.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new S(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return O(t,i,n[i++])})};var zr;t(Q,E),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(t,e){return this.has(t)?this._value:e},Q.prototype.includes=function(t){return Y(this._value,t)},Q.prototype.slice=function(t,e){var r=this.size;return m(t,e,r)?this:new Q(this._value,b(e,r)-g(t,r))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(t){return Y(this._value,t)?0:-1},Q.prototype.lastIndexOf=function(t){return Y(this._value,t)?this.size:-1},Q.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},Q.prototype.__iterator=function(t,e){var r=this,n=0;return new S(function(){return n<r.size?O(t,n++,r._value):j()})},Q.prototype.equals=function(t){return t instanceof Q?Y(this._value,t._value):Z(t)};var qr;t(tt,E),tt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},tt.prototype.get=function(t,e){return this.has(t)?this._start+_(this,t)*this._step:e},tt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},tt.prototype.slice=function(t,e){return m(t,e,this.size)?this:(t=g(t,this.size),e=b(e,this.size),e<=t?new tt(0,0):new tt(this.get(t,this._end),this.get(e,this._end),this._step))},tt.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},tt.prototype.lastIndexOf=function(t){return this.indexOf(t)},tt.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;o<=r;o++){if(t(i,o,this)===!1)return o+1;i+=e?-n:n}return o},tt.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 S(function(){var u=i;return i+=e?-n:n,o>r?j():O(t,o++,u)})},tt.prototype.equals=function(t){return t instanceof tt?this._start===t._start&&this._end===t._end&&this._step===t._step:Z(this,t)};var Ar;t(et,e),t(rt,et),t(nt,et),t(it,et),et.Keyed=rt,et.Indexed=nt,et.Set=it;var Dr,Mr="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(t,e){t|=0,e|=0;var r=65535&t,n=65535&e;return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0},Er=Object.isExtensible,kr=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Pr="function"==typeof WeakMap;Pr&&(Dr=new WeakMap);var Ur=0,Rr="__immutablehash__";"function"==typeof Symbol&&(Rr=Symbol(Rr));var Cr=16,Tr=255,Lr=0,Kr={};t(pt,rt),pt.of=function(){var t=ar.call(arguments,0);return Ot().withMutations(function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw new Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}})},pt.prototype.toString=function(){return this.__toString("Map {","}")},pt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},pt.prototype.set=function(t,e){return jt(this,t,e)},pt.prototype.setIn=function(t,e){return this.updateIn(t,dr,function(){return e})},pt.prototype.remove=function(t){return jt(this,t,dr)},pt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return dr})},pt.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},pt.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=Ut(this,Ee(t),e,r);return n===dr?void 0:n},pt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ot()},pt.prototype.merge=function(){return Mt(this,void 0,arguments)},pt.prototype.mergeWith=function(t){var e=ar.call(arguments,1);return Mt(this,t,e)},pt.prototype.mergeIn=function(t){var e=ar.call(arguments,1);return this.updateIn(t,Ot(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},pt.prototype.mergeDeep=function(){return Mt(this,Et,arguments)},pt.prototype.mergeDeepWith=function(t){var e=ar.call(arguments,1);return Mt(this,kt(t),e)},pt.prototype.mergeDeepIn=function(t){var e=ar.call(arguments,1);return this.updateIn(t,Ot(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},pt.prototype.sort=function(t){return Xt(we(this,t))},pt.prototype.sortBy=function(t,e){return Xt(we(this,e,t))},pt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},pt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new l)},pt.prototype.asImmutable=function(){return this.__ensureOwner()},pt.prototype.wasAltered=function(){return this.__altered},pt.prototype.__iterator=function(t,e){return new gt(this,t,e)},pt.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},pt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?St(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},pt.isMap=lt;var Nr="@@__IMMUTABLE_MAP__@@",Fr=pt.prototype;Fr[Nr]=!0,Fr[lr]=Fr.remove,Fr.removeIn=Fr.deleteIn,yt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(Y(r,i[o][0]))return i[o][1];return n},yt.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===dr,a=this.entries,c=0,f=a.length;c<f&&!Y(n,a[c][0]);c++);var h=c<f;if(h?a[c][1]===i:s)return this;if(p(u),(s||!h)&&p(o),!s||1!==a.length){if(!h&&!s&&a.length>=Hr)return qt(t,a,n,i);var l=t&&t===this.ownerID,v=l?a:y(a);return h?s?c===f-1?v.pop():v[c]=v.pop():v[c]=[n,i]:v.push([n,i]),l?(this.entries=v,this):new yt(t,v)}},vt.prototype.get=function(t,e,r,n){void 0===e&&(e=ut(r));var i=1<<((0===t?e:e>>>t)&_r),o=this.bitmap;return 0===(o&i)?n:this.nodes[Rt(o&i-1)].get(t+yr,e,r,n)},vt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ut(n));var s=(0===e?r:r>>>e)&_r,a=1<<s,c=this.bitmap,f=0!==(c&a);if(!f&&i===dr)return this;var h=Rt(c&a-1),p=this.nodes,l=f?p[h]:void 0,y=It(l,t,e+yr,r,n,i,o,u);if(y===l)return this;if(!f&&y&&p.length>=Wr)return Dt(t,p,c,s,y);if(f&&!y&&2===p.length&&xt(p[1^h]))return p[1^h];if(f&&y&&1===p.length&&xt(y))return y;var v=t&&t===this.ownerID,_=f?y?c:c^a:c|a,d=f?y?Ct(p,h,y,v):Lt(p,h,v):Tt(p,h,y,v);return v?(this.bitmap=_,this.nodes=d,this):new vt(t,_,d)},_t.prototype.get=function(t,e,r,n){void 0===e&&(e=ut(r));var i=(0===t?e:e>>>t)&_r,o=this.nodes[i];return o?o.get(t+yr,e,r,n):n},_t.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ut(n));var s=(0===e?r:r>>>e)&_r,a=i===dr,c=this.nodes,f=c[s];if(a&&!f)return this;var h=It(f,t,e+yr,r,n,i,o,u);if(h===f)return this;var p=this.count;if(f){if(!h&&(p--,p<Jr))return At(t,c,p,s)}else p++;var l=t&&t===this.ownerID,y=Ct(c,s,h,l);return l?(this.count=p,this.nodes=y,this):new _t(t,p,y)},dt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(Y(r,i[o][0]))return i[o][1];return n},dt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ut(n));var s=i===dr;if(r!==this.keyHash)return s?this:(p(u),p(o),zt(this,t,e,r,[n,i]));for(var a=this.entries,c=0,f=a.length;c<f&&!Y(n,a[c][0]);c++);var h=c<f;if(h?a[c][1]===i:s)return this;if(p(u),(s||!h)&&p(o),s&&2===f)return new mt(t,this.keyHash,a[1^c]);var l=t&&t===this.ownerID,v=l?a:y(a);return h?s?c===f-1?v.pop():v[c]=v.pop():v[c]=[n,i]:v.push([n,i]),l?(this.entries=v,this):new dt(t,this.keyHash,v)},mt.prototype.get=function(t,e,r,n){return Y(r,this.entry[0])?this.entry[1]:n},mt.prototype.update=function(t,e,r,n,i,o,u){var s=i===dr,a=Y(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(p(u),s?void p(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new mt(t,this.keyHash,[n,i]):(p(o),zt(this,t,e,ut(n),[n,i])))},yt.prototype.iterate=dt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(t(r[e?i-n:n])===!1)return!1},vt.prototype.iterate=_t.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&o.iterate(t,e)===!1)return!1}},mt.prototype.iterate=function(t,e){return t(this.entry)},t(gt,S),gt.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 bt(t,n.entry)}else if(n.entries){if(r=n.entries.length-1,i<=r)return bt(t,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,i<=r){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return bt(t,o.entry);e=this._stack=wt(o,e)}continue}e=this._stack=this._stack.__prev}return j()};var Br,Hr=vr/4,Wr=vr/2,Jr=vr/4;t(Kt,nt),Kt.of=function(){return this(arguments)},Kt.prototype.toString=function(){return this.__toString("List [","]")},Kt.prototype.get=function(t,e){if(t=_(this,t),t>=0&&t<this.size){t+=this._origin;var r=Gt(this,t);return r&&r.array[t&_r]}return e},Kt.prototype.set=function(t,e){return Jt(this,t,e)},Kt.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Kt.prototype.insert=function(t,e){return this.splice(t,0,e)},Kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=yr,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Wt()},Kt.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){Yt(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},Kt.prototype.pop=function(){return Yt(this,0,-1)},Kt.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Yt(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},Kt.prototype.shift=function(){return Yt(this,1)},Kt.prototype.merge=function(){return Zt(this,void 0,arguments)},Kt.prototype.mergeWith=function(t){var e=ar.call(arguments,1);return Zt(this,t,e)},Kt.prototype.mergeDeep=function(){return Zt(this,Et,arguments)},Kt.prototype.mergeDeepWith=function(t){var e=ar.call(arguments,1);return Zt(this,kt(t),e)},Kt.prototype.setSize=function(t){return Yt(this,0,t)},Kt.prototype.slice=function(t,e){var r=this.size;return m(t,e,r)?this:Yt(this,g(t,r),b(e,r))},Kt.prototype.__iterator=function(t,e){var r=0,n=Bt(this,e);return new S(function(){var e=n();return e===Yr?j():O(t,r++,e)})},Kt.prototype.__iterate=function(t,e){for(var r,n=0,i=Bt(this,e);(r=i())!==Yr&&t(r,n++,this)!==!1;);return n},Kt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ht(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},Kt.isList=Nt;var Vr="@@__IMMUTABLE_LIST__@@",$r=Kt.prototype;$r[Vr]=!0,$r[lr]=$r.remove,$r.setIn=Fr.setIn,$r.deleteIn=$r.removeIn=Fr.removeIn,$r.update=Fr.update,$r.updateIn=Fr.updateIn,$r.mergeIn=Fr.mergeIn,$r.mergeDeepIn=Fr.mergeDeepIn,$r.withMutations=Fr.withMutations,$r.asMutable=Fr.asMutable,$r.asImmutable=Fr.asImmutable,$r.wasAltered=Fr.wasAltered,Ft.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&_r;if(n>=this.array.length)return new Ft([],t);var i,o=0===n;if(e>0){var u=this.array[n];if(i=u&&u.removeBefore(t,e-yr,r),i===u&&o)return this}if(o&&!i)return this;var s=$t(this,t);if(!o)for(var a=0;a<n;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},Ft.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n=r-1>>>e&_r;if(n>=this.array.length)return this;var i;if(e>0){var o=this.array[n];if(i=o&&o.removeAfter(t,e-yr,r),i===o&&n===this.array.length-1)return this}var u=$t(this,t);return u.array.splice(n+1),i&&(u.array[n]=i),u};var Gr,Yr={};t(Xt,pt),Xt.of=function(){return this(arguments)},Xt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Xt.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},Xt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):re()},Xt.prototype.set=function(t,e){return ne(this,t,e)},Xt.prototype.remove=function(t){return ne(this,t,dr)},Xt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Xt.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},Xt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Xt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?ee(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},Xt.isOrderedMap=te,Xt.prototype[pr]=!0,Xt.prototype[lr]=Xt.prototype.remove;var Zr;t(ie,M),ie.prototype.get=function(t,e){return this._iter.get(t,e)},ie.prototype.has=function(t){return this._iter.has(t)},ie.prototype.valueSeq=function(){return this._iter.valueSeq()},ie.prototype.reverse=function(){var t=this,e=fe(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},ie.prototype.map=function(t,e){var r=this,n=ce(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},ie.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?ze(this):0,function(i){return t(i,e?--r:r++,n)}),e)},ie.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(wr,e),n=e?ze(this):0;return new S(function(){var i=r.next();return i.done?i:O(t,e?--n:n++,i.value,i)})},ie.prototype[pr]=!0,t(oe,E),oe.prototype.includes=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},oe.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e),n=0;return new S(function(){var e=r.next();return e.done?e:O(t,n++,e.value,e)})},t(ue,k),ue.prototype.has=function(t){return this._iter.includes(t)},ue.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},ue.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e);return new S(function(){var e=r.next();return e.done?e:O(t,e.value,e.value,e)})},t(se,M),se.prototype.entrySeq=function(){return this._iter.toSeq()},se.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){xe(e);var n=u(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},se.prototype.__iterator=function(t,e){var r=this._iter.__iterator(wr,e);return new S(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){xe(n);var i=u(n);return O(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},oe.prototype.cacheResult=ie.prototype.cacheResult=ue.prototype.cacheResult=se.prototype.cacheResult=De,t(ke,rt),ke.prototype.toString=function(){return this.__toString(Ue(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=Pe(this,Ot()))},ke.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Ue(this));if(this._map&&!this._map.has(t)){var r=this._defaultValues[t];if(e===r)return this}var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:Pe(this,n)},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:Pe(this,e)},ke.prototype.wasAltered=function(){return this._map.wasAltered()},ke.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},ke.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.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?Pe(this,e,t):(this.__ownerID=t,this._map=e,this)};var Qr=ke.prototype;Qr[lr]=Qr.remove,Qr.deleteIn=Qr.removeIn=Fr.removeIn,Qr.merge=Fr.merge,Qr.mergeWith=Fr.mergeWith,Qr.mergeIn=Fr.mergeIn,Qr.mergeDeep=Fr.mergeDeep,Qr.mergeDeepWith=Fr.mergeDeepWith,Qr.mergeDeepIn=Fr.mergeDeepIn,Qr.setIn=Fr.setIn,Qr.update=Fr.update,Qr.updateIn=Fr.updateIn,Qr.withMutations=Fr.withMutations,Qr.asMutable=Fr.asMutable,Qr.asImmutable=Fr.asImmutable,t(Te,it),Te.of=function(){return this(arguments)},Te.fromKeys=function(t){return this(r(t).keySeq())},Te.prototype.toString=function(){return this.__toString("Set {","}")},Te.prototype.has=function(t){return this._map.has(t)},Te.prototype.add=function(t){return Ke(this,this._map.set(t,!0))},Te.prototype.remove=function(t){return Ke(this,this._map.remove(t))},Te.prototype.clear=function(){return Ke(this,this._map.clear())},Te.prototype.union=function(){var t=ar.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++)i(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Te.prototype.intersect=function(){var t=ar.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.every(function(t){return t.includes(e)})||r.remove(e)})})},Te.prototype.subtract=function(){var t=ar.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.remove(e)})})},Te.prototype.merge=function(){return this.union.apply(this,arguments)},Te.prototype.mergeWith=function(t){var e=ar.call(arguments,1);return this.union.apply(this,e)},Te.prototype.sort=function(t){return Be(we(this,t))},Te.prototype.sortBy=function(t,e){return Be(we(this,e,t))},Te.prototype.wasAltered=function(){return this._map.wasAltered()},Te.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},Te.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Te.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)},Te.isSet=Le;var Xr="@@__IMMUTABLE_SET__@@",tn=Te.prototype;tn[Xr]=!0,tn[lr]=tn.remove,tn.mergeDeep=tn.merge,tn.mergeDeepWith=tn.mergeWith,tn.withMutations=Fr.withMutations,tn.asMutable=Fr.asMutable,tn.asImmutable=Fr.asImmutable,tn.__empty=Fe,tn.__make=Ne;var en;t(Be,Te),Be.of=function(){return this(arguments)},Be.fromKeys=function(t){return this(r(t).keySeq())},Be.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Be.isOrderedSet=He;var rn=Be.prototype;rn[pr]=!0,rn.__empty=Je,rn.__make=We;var nn;t(Ve,nt),Ve.of=function(){return this(arguments)},Ve.prototype.toString=function(){return this.__toString("Stack [","]")},Ve.prototype.get=function(t,e){var r=this._head;for(t=_(this,t);r&&t--;)r=r.next;return r?r.value:e},Ve.prototype.peek=function(){return this._head&&this._head.value},Ve.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):Ge(t,e)},Ve.prototype.pushAll=function(t){if(t=n(t),0===t.size)return this;ht(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):Ge(e,r)},Ve.prototype.pop=function(){return this.slice(1)},Ve.prototype.unshift=function(){return this.push.apply(this,arguments)},Ve.prototype.unshiftAll=function(t){return this.pushAll(t)},Ve.prototype.shift=function(){return this.pop.apply(this,arguments)},Ve.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):Ye()},Ve.prototype.slice=function(t,e){if(m(t,e,this.size))return this;var r=g(t,this.size),n=b(e,this.size);if(n!==this.size)return nt.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):Ge(i,o)},Ve.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ge(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ve.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},Ve.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new S(function(){if(n){var e=n.value;return n=n.next,O(t,r++,e)}return j()})},Ve.isStack=$e;var on="@@__IMMUTABLE_STACK__@@",un=Ve.prototype;un[on]=!0,un.withMutations=Fr.withMutations,un.asMutable=Fr.asMutable,un.asImmutable=Fr.asImmutable,un.wasAltered=Fr.wasAltered;var sn;e.Iterator=S,Ze(e,{toArray:function(){ht(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new oe(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 ie(this,!0)},toMap:function(){return pt(this.toKeyedSeq())},toObject:function(){ht(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return Xt(this.toKeyedSeq())},toOrderedSet:function(){return Be(s(this)?this.valueSeq():this)},toSet:function(){return Te(s(this)?this.valueSeq():this)},toSetSeq:function(){return new ue(this)},toSeq:function(){return a(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ve(s(this)?this.valueSeq():this)},toList:function(){return Kt(s(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=ar.call(arguments,0);return Ie(this,de(this,t))},includes:function(t){return this.some(function(e){return Y(e,t)})},entries:function(){return this.__iterator(Sr)},every:function(t,e){ht(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1}),r},filter:function(t,e){return Ie(this,he(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return ht(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){ht(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(br)},map:function(t,e){return Ie(this,ce(this,t,e))},reduce:function(t,e,r){ht(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 Ie(this,fe(this,!0))},slice:function(t,e){return Ie(this,ye(this,t,e,!0))},some:function(t,e){return!this.every(tr(t),e)},sort:function(t){return Ie(this,we(this,t))},values:function(){return this.__iterator(wr)},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 v(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return pe(this,t,e)},equals:function(t){return Z(this,t)},entrySeq:function(){var t=this;if(t._cache)return new P(t._cache);var e=t.toSeq().map(Xe).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(tr(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(d)},flatMap:function(t,e){return Ie(this,ge(this,t,e))},flatten:function(t){return Ie(this,me(this,t,!0))},fromEntrySeq:function(){return new se(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=Ee(t);!(r=i.next()).done;){var o=r.value;if(n=n&&n.get?n.get(o,dr):dr,n===dr)return e}return n},groupBy:function(t,e){return le(this,t,e)},has:function(t){return this.get(t,dr)!==dr},hasIn:function(t){return this.getIn(t,dr)!==dr},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(e){return Y(e,t)})},keySeq:function(){return this.toSeq().map(Qe).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Se(this,t)},maxBy:function(t,e){return Se(this,e,t)},min:function(t){return Se(this,t?er(t):ir)},minBy:function(t,e){return Se(this,e?er(e):ir,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ie(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ie(this,_e(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(tr(t),e)},sortBy:function(t,e){return Ie(this,we(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ie(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ie(this,ve(this,t,e))},takeUntil:function(t,e){return this.takeWhile(tr(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=or(this))}});var an=e.prototype;an[cr]=!0,an[Ir]=an.values,an.__toJS=an.toArray,an.__toStringMapper=rr,an.inspect=an.toSource=function(){return this.toString()},an.chain=an.flatMap,an.contains=an.includes,Ze(r,{flip:function(){return Ie(this,ae(this))},mapEntries:function(t,e){var r=this,n=0;return Ie(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return Ie(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var cn=r.prototype;cn[fr]=!0,cn[Ir]=an.entries,cn.__toJS=an.toObject,cn.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+rr(t)},Ze(n,{toKeyedSeq:function(){return new ie(this,!1)},filter:function(t,e){return Ie(this,he(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Ie(this,fe(this,!1))},slice:function(t,e){return Ie(this,ye(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=g(t,t<0?this.count():this.size);var n=this.slice(0,t);return Ie(this,1===r?n:n.concat(y(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(t){return Ie(this,me(this,t,!1))},get:function(t,e){return t=_(this,t),t<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return t=_(this,t),t>=0&&(void 0!==this.size?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return Ie(this,be(this,t))},interleave:function(){var t=[this].concat(y(arguments)),e=je(this.toSeq(),E.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),Ie(this,r)},keySeq:function(){return tt(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Ie(this,_e(this,t,e,!1))},zip:function(){var t=[this].concat(y(arguments));return Ie(this,je(this,nr,t))},zipWith:function(t){var e=y(arguments);return e[0]=this,Ie(this,je(this,t,e))}}),n.prototype[hr]=!0,n.prototype[pr]=!0,Ze(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=an.includes,i.prototype.contains=i.prototype.includes,Ze(M,r.prototype),Ze(E,n.prototype),Ze(k,i.prototype),Ze(rt,r.prototype),Ze(nt,n.prototype),Ze(it,i.prototype);var fn={Iterable:e,Seq:D,Collection:et,Map:pt,OrderedMap:Xt,List:Kt,Stack:Ve,Set:Te,OrderedSet:Be,Record:ke,Range:tt,Repeat:Q,is:Y,fromJS:J};return fn})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){}function o(t){var e=void 0,r={},n=void 0;return t[0]instanceof Function?n=t[0]:t[1]instanceof Function?(e=t[0],n=t[1]):(e=t[0],r=t[1],n=t[2]||i),[e,r,n]}function u(t){return function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=o(r),u=f(i,3),s=u[0],a=u[1],h=u[2];return[s,c({},a,{method:t.toUpperCase()}),h]}}function s(t,e){return{dispatch:t,getState:function(){return e().toJS()}}}function a(t,e,r){function n(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=o(e),u=f(n,3),c=u[0],p=u[1],y=u[2],_=!!p&&!!p.syncing;return p&&delete p.syncing,g.push(y),function(){var t=a.holder&&a.holder.middlewareParser||s,e=t.apply(void 0,arguments),r=e.dispatch,n=e.getState,o=a.reducerName,u=a.prefix,f=n(),y=(0,b.default)(f,u,o,"loading");if(!y){var d={pathvars:c,params:p},m=(0,b.default)(f,u,o,"data");r({type:h,syncing:_,request:d});var j={dispatch:r,getState:n,requestOptions:d,actions:a.actions,prefetch:a.prefetch},I=new Promise(function(t,e){(0,S.default)(0,j,function(i){return i?(g.reject(i),e(i)):void new Promise(function(t,e){w.set({resolve:t,reject:e,promise:O(c,p,n).then(t,e)})}).then(function(e){w.pop();var i=a.transformer(e,m,{type:l,request:d});r({data:i,origData:e,type:l,syncing:!1,request:d}),a.broadcast&&a.broadcast.forEach(function(t){r({type:t,data:i,origData:e,request:d})}),a.postfetch&&a.postfetch.forEach(function(t){t instanceof Function&&t({data:i,getState:n,dispatch:r,actions:a.actions,request:d})}),g.resolve(i),t(i)},function(t){r({type:v,syncing:!1,error:t,request:d}),g.reject(t),e(t)})})});return I.catch(i),I}}}var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},h=u.actionFetch,l=u.actionSuccess,v=u.actionFail,d=u.actionReset,g=new j.default,w=(0,x.default)(),O=function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=a&&a.holder&&a.holder.responseHandler,s=(0,_.default)(t,e,a.urlOptions),c=s,f=a.holder?a.holder.rootUrl:null;if(f=f instanceof Function?f(c,n,o):f){var h=y.default.parse(f),p=y.default.parse(c);if(!p.host){var l=(h.path?h.path.replace(/\/$/,""):"")+"/"+(p.path?p.path.replace(/^\//,""):"");c=h.protocol+"//"+h.host+l}}var v=a.holder?a.holder.options instanceof Function?a.holder.options(c,n,o):a.holder.options:{},d=r instanceof Function?r(c,n,o):r,g=(0,m.default)({},v,d,n),b=a.fetch(c,g),w=a.validation?b.then(function(t){return new Promise(function(e,r){return a.validation(t,function(n){return n?r(n):e(t)})})}):b,S=w;return u&&(S=w&&w.then?w.then(function(t){var e=u(null,t);return void 0===e?t:e},function(t){return u(t)}):u(w)),S&&S.catch&&S.catch(i),S};n.request=O,n.reset=function(t){var e=w.pop();return e&&e.reject(new Error("Application abort request")),"sync"===t?{type:d,mutation:t}:{type:d}},n.sync=function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var u=o(r),s=f(u,3),h=s[0],p=s[1],l=s[2],y=!!a.holder&&a.holder.server;return function(t,r){var i=r(),o=i[e];if(!y&&o&&o.sync)return void l(null,o.data);var u=c({},p,{syncing:!0});return n(h,u,l)(t,r)}};var I=a.helpers||{};a.crud&&(I=c({},z,I));var q=function(t,r,o){if(t[o])throw new Error('Helper name: "'+o+'" for endpoint "'+e+'" has been already reserved');var u=r instanceof Function?{call:r}:r,s=u.sync,c=u.call;return t[o]=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t,r){var o=e.length-1,u=e[o]instanceof Function?e[o]:i,h=(0,p.default)(c,{getState:r,dispatch:t,actions:a.actions},e),l=new Promise(function(e,i){var o=function(t,r){t?i(t):e(r),u(t,r)};if(h instanceof Function)h(function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e?o(e):(0,p.default)(s?n.sync:n,null,i.concat(o))(t,r)});else{var a=f(h,2),c=a[0],l=a[1];(0,p.default)(s?n.sync:n,null,[c,l,o])(t,r)}});return l.catch(i),l}},t};return Object.keys(I).reduce(function(t,e){return q(t,I[e],e,I)},n)}Object.defineProperty(e,"__esModule",{value:!0}),e.CRUD=void 0;var c=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},f=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var u,s=t[Symbol.iterator]();!(n=(u=s.next()).done)&&(r.push(u.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.default=a;var h=r(9),p=n(h),l=r(1),y=n(l),v=r(23),_=n(v),d=r(2),m=n(d),g=r(24),b=n(g),w=r(22),S=n(w),O=r(20),j=n(O),I=r(21),x=n(I),z=e.CRUD=["get","post","put","delete","patch"].reduce(function(t,e){return t[e]=u(e),t},{})},function(t,e,r){"use strict";function n(t){for(var e=arguments.length,r=Array(e>2?e-2:0),i=2;i<e;i++)r[i-2]=arguments[i];var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise(function(e,r){o?t(o(function(t,n){t?r(t):e(n)})||{}):r("no chain function")}).then(function(e){return r.length?n.apply(void 0,[t].concat(r)):e})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,t.exports=e.default},function(t,e,r){"use strict";function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],n=e.actionFetch,o=e.actionSuccess,u=e.actionFail,s=e.actionReset;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,a=arguments[1];switch(a.type){case n:return e.merge({loading:!0,error:null,syncing:!!a.syncing});case o:return e.mergeDeep({loading:!1,sync:!0,syncing:!1,error:null,data:a.data});case u:return e.merge({loading:!1,error:a.error,syncing:!1});case s:var c=a.mutation;return"sync"===c?e.merge({sync:!1}):i({},t);default:return r?r(e,a):e}}}Object.defineProperty(e,"__esModule",{value:!0});var i=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};e.default=n,t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.prototype.toString,i="[object Object]";e.default={array:function(t){return t?Array.isArray(t)?t:[t]:[]},object:function(t){return t?n.call(t)===i?t:{data:t}:{}}},t.exports=e.default},function(t,e,r){"use strict";function n(t,e,r){switch(r?r.length:0){case 0:return e?t.call(e):t();case 1:return e?t.call(e,r[0]):t(r[0]);case 2:return e?t.call(e,r[0],r[1]):t(r[0],r[1]);case 3:return e?t.call(e,r[0],r[1],r[2]):t(r[0],r[1],r[2]);case 4:return e?t.call(e,r[0],r[1],r[2],r[3]):t(r[0],r[1],r[2],r[3]);case 5:return e?t.call(e,r[0],r[1],r[2],r[3],r[4]):t(r[0],r[1],r[2],r[3],r[4]);default:return t.apply(e,r)}}t.exports=n},function(t,e,r){"use strict";(function(t,n){var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(u){function s(t){throw new RangeError(R[t])}function a(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function c(t,e){var r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(U,".");var i=t.split("."),o=a(i,e).join(".");return n+o}function f(t){for(var e,r,n=[],i=0,o=t.length;i<o;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(r=t.charCodeAt(i++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--)):n.push(e);return n}function h(t){return a(t,function(t){var e="";return t>65535&&(t-=65536,e+=L(t>>>10&1023|55296),t=56320|1023&t),e+=L(t)}).join("")}function p(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:I}function l(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function y(t,e,r){var n=0;for(t=r?T(t/A):t>>1,t+=T(t/e);t>C*z>>1;n+=I)t=T(t/C);return T(n+(C+1)*t/(t+q))}function v(t){var e,r,n,i,o,u,a,c,f,l,v=[],_=t.length,d=0,m=M,g=D;for(r=t.lastIndexOf(E),r<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&s("not-basic"),v.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<_;){for(o=d,u=1,a=I;i>=_&&s("invalid-input"),c=p(t.charCodeAt(i++)),(c>=I||c>T((j-d)/u))&&s("overflow"),d+=c*u,f=a<=g?x:a>=g+z?z:a-g,!(c<f);a+=I)l=I-f,u>T(j/l)&&s("overflow"),u*=l;e=v.length+1,g=y(d-o,e,0==o),T(d/e)>j-m&&s("overflow"),m+=T(d/e),d%=e,v.splice(d++,0,m)}return h(v)}function _(t){var e,r,n,i,o,u,a,c,h,p,v,_,d,m,g,b=[];for(t=f(t),_=t.length,e=M,r=0,o=D,u=0;u<_;++u)v=t[u],v<128&&b.push(L(v));for(n=i=b.length,i&&b.push(E);n<_;){for(a=j,u=0;u<_;++u)v=t[u],v>=e&&v<a&&(a=v);for(d=n+1,a-e>T((j-r)/d)&&s("overflow"),r+=(a-e)*d,e=a,u=0;u<_;++u)if(v=t[u],v<e&&++r>j&&s("overflow"),v==e){for(c=r,h=I;p=h<=o?x:h>=o+z?z:h-o,!(c<p);h+=I)g=c-p,m=I-p,b.push(L(l(p+g%m,0))),c=T(g/m);b.push(L(l(c,0))),o=y(r,d,n==i),r=0,++n}++r,++e}return b.join("")}function d(t){return c(t,function(t){return k.test(t)?v(t.slice(4).toLowerCase()):t})}function m(t){return c(t,function(t){return P.test(t)?"xn--"+_(t):t})}var g="object"==o(e)&&e&&!e.nodeType&&e,b="object"==o(t)&&t&&!t.nodeType&&t,w="object"==("undefined"==typeof n?"undefined":o(n))&&n;w.global!==w&&w.window!==w&&w.self!==w||(u=w);var S,O,j=2147483647,I=36,x=1,z=26,q=38,A=700,D=72,M=128,E="-",k=/^xn--/,P=/[^\x20-\x7E]/,U=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=I-x,T=Math.floor,L=String.fromCharCode;if(S={version:"1.4.1",ucs2:{decode:f,encode:h},decode:v,encode:_,toASCII:m,toUnicode:d},"object"==o(r(3))&&r(3))i=function(){return S}.call(e,r,e,t),!(void 0!==i&&(t.exports=i));else if(g&&b)if(t.exports==g)b.exports=S;else for(O in S)S.hasOwnProperty(O)&&(g[O]=S[O]);else u.punycode=S}(void 0)}).call(e,r(19)(t),r(18))},function(t,e,r){"use strict";var n=r(13),i=r(12);t.exports={stringify:n,parse:i}},function(t,e,r){"use strict";var n=r(0),i={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1,allowDots:!1};i.parseValues=function(t,e){for(var r={},i=t.split(e.delimiter,e.parameterLimit===1/0?void 0:e.parameterLimit),o=0,u=i.length;o<u;++o){var s=i[o],a=s.indexOf("]=")===-1?s.indexOf("="):s.indexOf("]=")+1;if(a===-1)r[n.decode(s)]="",e.strictNullHandling&&(r[n.decode(s)]=null);else{var c=n.decode(s.slice(0,a)),f=n.decode(s.slice(a+1));Object.prototype.hasOwnProperty.call(r,c)?r[c]=[].concat(r[c]).concat(f):r[c]=f}}return r},i.parseObject=function(t,e,r){if(!t.length)return e;var n,o=t.shift();if("[]"===o)n=[],n=n.concat(i.parseObject(t,e,r));else{n=r.plainObjects?Object.create(null):{};var u="["===o[0]&&"]"===o[o.length-1]?o.slice(1,o.length-1):o,s=parseInt(u,10),a=""+s;!isNaN(s)&&o!==u&&a===u&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(n=[],n[s]=i.parseObject(t,e,r)):n[u]=i.parseObject(t,e,r)}return n},i.parseKeys=function(t,e,r){if(t){r.allowDots&&(t=t.replace(/\.([^\.\[]+)/g,"[$1]"));var n=/^([^\[\]]*)/,o=/(\[[^\[\]]*\])/g,u=n.exec(t),s=[];if(u[1]){if(!r.plainObjects&&Object.prototype.hasOwnProperty(u[1])&&!r.allowPrototypes)return;s.push(u[1])}for(var a=0;null!==(u=o.exec(t))&&a<r.depth;)++a,(r.plainObjects||!Object.prototype.hasOwnProperty(u[1].replace(/\[|\]/g,""))||r.allowPrototypes)&&s.push(u[1]);return u&&s.push("["+t.slice(u.index)+"]"),i.parseObject(s,e,r)}},t.exports=function(t,e){if(e=e||{},e.delimiter="string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,e.depth="number"==typeof e.depth?e.depth:i.depth,e.arrayLimit="number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,e.parseArrays=e.parseArrays!==!1,e.allowDots="boolean"==typeof e.allowDots?e.allowDots:i.allowDots,e.plainObjects="boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,e.allowPrototypes="boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,e.parameterLimit="number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,e.strictNullHandling="boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling,""===t||null===t||"undefined"==typeof t)return e.plainObjects?Object.create(null):{};for(var r="string"==typeof t?i.parseValues(t,e):t,o=e.plainObjects?Object.create(null):{},u=Object.keys(r),s=0,a=u.length;s<a;++s){var c=u[s],f=i.parseKeys(c,r[c],e);o=n.merge(o,f,e)}return n.compact(o)}},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(0),o={delimiter:"&",arrayPrefixGenerators:{brackets:function(t,e){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t,e){return t}},strictNullHandling:!1,skipNulls:!1,encode:!0};o.stringify=function(t,e,r,n,u,s,a,c){if("function"==typeof a)t=a(e,t);else if(i.isBuffer(t))t=t.toString();else if(t instanceof Date)t=t.toISOString();else if(null===t){if(n)return s?i.encode(e):e;t=""}if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return s?[i.encode(e)+"="+i.encode(t)]:[e+"="+t];var f=[];if("undefined"==typeof t)return f;var h;if(Array.isArray(a))h=a;else{var p=Object.keys(t);h=c?p.sort(c):p}for(var l=0,y=h.length;l<y;++l){var v=h[l];u&&null===t[v]||(f=Array.isArray(t)?f.concat(o.stringify(t[v],r(e,v),r,n,u,s,a)):f.concat(o.stringify(t[v],e+"["+v+"]",r,n,u,s,a)))}return f},t.exports=function(t,e){e=e||{};var r,i,u="undefined"==typeof e.delimiter?o.delimiter:e.delimiter,s="boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling,a="boolean"==typeof e.skipNulls?e.skipNulls:o.skipNulls,c="boolean"==typeof e.encode?e.encode:o.encode,f="function"==typeof e.sort?e.sort:null;"function"==typeof e.filter?(i=e.filter,t=i("",t)):Array.isArray(e.filter)&&(r=i=e.filter);var h=[];if("object"!==("undefined"==typeof t?"undefined":n(t))||null===t)return"";var p;p=e.arrayFormat in o.arrayPrefixGenerators?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":"indices";var l=o.arrayPrefixGenerators[p];r||(r=Object.keys(t)),f&&r.sort(f);for(var y=0,v=r.length;y<v;++y){var _=r[y];a&&null===t[_]||(h=h.concat(o.stringify(t[_],_,l,s,a,c,i,f)))}return h.join(u)}},function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,o){e=e||"&",r=r||"=";var u={};if("string"!=typeof t||0===t.length)return u;var s=/\+/g;t=t.split(e);var a=1e3;o&&"number"==typeof o.maxKeys&&(a=o.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var f=0;f<c;++f){var h,p,l,y,v=t[f].replace(s,"%20"),_=v.indexOf(r);_>=0?(h=v.substr(0,_),p=v.substr(_+1)):(h=v,p=""),l=decodeURIComponent(h),y=decodeURIComponent(p),n(u,l)?i(u[l])?u[l].push(y):u[l]=[u[l],y]:u[l]=y}return u};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";function n(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t){switch("undefined"==typeof t?"undefined":i(t)){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,a){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"===("undefined"==typeof t?"undefined":i(t))?n(s(t),function(i){var s=encodeURIComponent(o(i))+r;return u(t[i])?n(t[i],function(t){return s+encodeURIComponent(o(t))}).join(e):s+encodeURIComponent(o(t[i]))}).join(e):a?encodeURIComponent(o(a))+r+encodeURIComponent(o(t)):""};var u=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},s=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},function(t,e,r){"use strict";e.decode=e.parse=r(14),e.encode=e.stringify=r(15)},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"===("undefined"==typeof t?"undefined":n(t))&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,r){"use strict";var n,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},function(t,e,r){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function(){function t(){n(this,t),this.container=[]}return i(t,[{key:"push",value:function(t){t instanceof Function&&this.container.push(t)}},{key:"resolve",value:function(t){this.container.forEach(function(e){return e(null,t)}),this.container=[]}},{key:"reject",value:function(t){this.container.forEach(function(e){return e(t)}),this.container=[]}}]),t}();e.default=o,t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=void 0,e=!1;return{set:function(r){return!e&&(t=r,e=!0,!0)},empty:function(){return!e},pop:function(){if(e){e=!1;var r=t;return t=null,r}}}},t.exports=e.default},function(t,e,r){"use strict";function n(){}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;!e.prefetch||t>=e.prefetch.length?r():e.prefetch[t](e,function(n){return n?r(n):i(t+1,e,r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r){if(!t)return"";e||(e={});var n={},i=Object.keys(e).reduce(function(t,r){var i=e[r],o=new RegExp("(\\(:"+r+"\\)|:"+r+")","g");return t.replace(o,function(){return n[r]=i,i})},t);if(!i)return i;var u=(0,a.parse)(i),c=u.protocol,h=u.host,y=u.path,v=h?c+"//"+h+y.replace(l,""):y.replace(l,""),_=Object.keys(n);if(_.length!==Object.keys(e).length){var d=v.split("?");r||(r={});var m=r,g=m.arrayFormat,b=m.delimiter,w=o({arrayFormat:g,delimiter:b},r.qsParseOptions),S=(0,p.default)(d[1]&&s.default.parse(d[1],w),(0,f.default)(e,_)),O=o({arrayFormat:g,delimiter:b},r.qsStringifyOptions),j=s.default.stringify(S,O);return d[0]+"?"+j}return v}Object.defineProperty(e,"__esModule",{value:!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};e.default=i;var u=r(11),s=n(u),a=r(1),c=r(25),f=n(c),h=r(2),p=n(h),l=/(\(:[^\)]+\)|:[^\/]+)/g;t.exports=e.default},function(t,e,r){"use strict";function n(t){return""===t||null===t||void 0===t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return r.reduce(function(t,e){return n(e)?t:t&&t[e]},t)},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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};e.default=function(t,e){return Array.isArray(e)?Object.keys(t||{}).reduce(function(r,n){return e.indexOf(n)===-1&&(r[n]=t[n]),r},{}):n({},t)},t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){function r(t,r,i){var a="object"===("undefined"==typeof r?"undefined":u(r))?o({},_,{reducerName:i},r):o({},_,{reducerName:i,url:r});void 0!==a.broadcast&&console.warn("Deprecated `broadcast` option. you shoud use `events`to catch redux-api events (see https://github.com/lexich/redux-api/blob/master/DOCS.md#Events)");var f=a.url,p=a.urlOptions,l=a.options,y=a.transformer,v=a.broadcast,m=a.crud,g=a.reducerName,b=a.prefetch,w=a.postfetch,S=a.validation,O=a.helpers,j=e&&e.prefix||"",I={actionFetch:d+"@"+j+g,actionSuccess:d+"@"+j+g+"_success",actionFail:d+"@"+j+g+"_fail",actionReset:d+"@"+j+g+"_delete"},x={urlOptions:p,fetch:a.fetch?a.fetch:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.fetch.apply(this,e)},holder:n,broadcast:v,virtual:!!a.virtual,reducerName:g,actions:t.actions,prefetch:b,postfetch:w,validation:S,helpers:O,transformer:y,prefix:j,crud:m};if(t.actions[i]=(0,h.default)(f,i,l,I,x),!x.virtual&&!t.reducers[g]){var z=(0,s.fromJS)({sync:!1,syncing:!1,loading:!1,data:y()}),q=a.reducer?a.reducer.bind(t):null;t.reducers[g]=(0,c.default)(z,I,q)}return t.events[g]=I,t}t||(t={});var n={fetch:null,server:!1,rootUrl:null,middlewareParser:null,options:{},responseHandler:null},i={use:function(t,e){return n[t]=e,this},init:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments[2];return console.warn("Deprecated method, use `use` method"),this.use("fetch",t),this.use("server",e),this.use("rootUrl",r),this},actions:{},reducers:{},events:{}};return Object.keys(t).reduce(function(e,n){return r(e,t[n],n,t)},i)}Object.defineProperty(e,"__esModule",{value:!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},u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=i;var s=r(4),a=r(7),c=n(a),f=r(5),h=n(f),p=r(8),l=n(p),y=r(6),v=n(y),_={transformer:l.default.object},d="@@redux-api";i.transformers=l.default,i.async=v.default,t.exports=e.default}])});