@brigad/redux-rest-easy
Advanced tools
Comparing version 2.9.2 to 2.9.3
@@ -1,43 +0,47 @@ | ||
'use strict';(function(y,F){"object"===typeof exports&&"undefined"!==typeof module?F(exports,require("react"),require("react-redux")):"function"===typeof define&&define.amd?define(["exports","react","react-redux"],F):F(y.ReduxRestEasy={},y.React,y.ReactRedux)})(this,function(y,F,Pa){function Qa(){throw Error("Dynamic requires are not currently supported by rollup-plugin-commonjs");}function ha(h,g){return g={exports:{}},h(g,g.exports),g.exports}function N(h){return function(){var g=this,a=arguments; | ||
return new Promise(function(b,c){function e(a,e){try{var g=m[a](e),h=g.value}catch(n){c(n);return}g.done?b(h):Promise.resolve(h).then(d,f)}function d(a){e("next",a)}function f(a){e("throw",a)}var m=h.apply(g,a);d()})}}function ia(h,g,a){g in h?Object.defineProperty(h,g,{value:a,enumerable:!0,configurable:!0,writable:!0}):h[g]=a;return h}function k(h){for(var g=1;g<arguments.length;g++){var a=null!=arguments[g]?arguments[g]:{},b=Object.keys(a);"function"===typeof Object.getOwnPropertySymbols&&(b=b.concat(Object.getOwnPropertySymbols(a).filter(function(b){return Object.getOwnPropertyDescriptor(a, | ||
b).enumerable})));b.forEach(function(b){ia(h,b,a[b])})}return h}function Ra(h,g){h.prototype.__proto__=g&&g.prototype;h.__proto__=g}function Sa(h,g){if(null==h)return{};var a={},b=Object.keys(h),c;for(c=0;c<b.length;c++){var e=b[c];0<=g.indexOf(e)||(a[e]=h[e])}if(Object.getOwnPropertySymbols)for(b=Object.getOwnPropertySymbols(h),c=0;c<b.length;c++)e=b[c],0<=g.indexOf(e)||Object.prototype.propertyIsEnumerable.call(h,e)&&(a[e]=h[e]);return a}function U(h){if(void 0===h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
return h}function ua(h,g,a){if("string"!==typeof g){if(va){var b=ja(g);b&&b!==va&&ua(h,b,a)}b=Ta(g);wa&&(b=b.concat(wa(g)));for(var c=0;c<b.length;++c){var e=b[c];if(!(Ua[e]||Va[e]||a&&a[e])){var d=Wa(g,e);try{Xa(h,e,d)}catch(f){}}}}return h}function R(h,g){if(!0===h)return"true";if(!1===h)return"false";switch(typeof h){case "object":if(null===h)return null;if(h.toJSON&&"function"===typeof h.toJSON)return R(h.toJSON(),g);g=Ya.call(h);if("[object Array]"===g){var a="[";var b=h.length-1;for(g=0;g<b;g++)a+= | ||
R(h[g],!0)+",";-1<b&&(a+=R(h[g],!0));return a+"]"}if("[object Object]"===g){var c=Za(h).sort();b=c.length;a="";for(g=0;g<b;){var e=c[g];var d=R(h[e],!1);void 0!==d&&(a&&(a+=","),a+=JSON.stringify(e)+":"+d);g++}return"{"+a+"}"}return JSON.stringify(h);case "function":case "undefined":return g?null:void 0;case "string":return JSON.stringify(h);default:return isFinite(h)?h:null}}function $a(h,g){return h===g}function xa(h){var g=1<arguments.length&&void 0!==arguments[1]?arguments[1]:$a,a=null,b=null; | ||
return function(){a:{var c=a;var e=arguments;if(null===c||null===e||c.length!==e.length)c=!1;else{for(var d=c.length,f=0;f<d;f++)if(!g(c[f],e[f])){c=!1;break a}c=!0}}c||(b=h.apply(null,arguments));a=arguments;return b}}function ab(h){h=Array.isArray(h[0])?h[0]:h;if(!h.every(function(g){return"function"===typeof g}))throw h=h.map(function(g){return typeof g}).join(", "),Error("Selector creators expect all input-selectors to be functions, "+("instead received the following types: ["+h+"]"));return h} | ||
function ya(h){for(var g=arguments.length,a=Array(1<g?g-1:0),b=1;b<g;b++)a[b-1]=arguments[b];return function(){for(var b=arguments.length,e=Array(b),d=0;d<b;d++)e[d]=arguments[d];var f=0,g=e.pop(),p=ab(e),u=h.apply(void 0,[function(){f++;return g.apply(null,arguments)}].concat(a));b=xa(function(){for(var a=[],b=p.length,d=0;d<b;d++)a.push(p[d].apply(null,arguments));return u.apply(null,a)});b.resultFunc=g;b.recomputations=function(){return f};b.resetRecomputations=function(){return f=0};return b}} | ||
function za(){for(var h=arguments.length,g=Array(h),a=0;a<h;a++)g[a]=arguments[a];return function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if("function"===typeof b)throw Error('[re-reselect] Second argument "options" must be an object. Please use "options.selectorCreator" to provide a custom selectorCreator.');var e=b.cacheObject||new bb,d=b.selectorCreator||cb,f=e.isValidCacheKey||db;b=function(){var b=a.apply(void 0,arguments);if(f(b)){var c=e.get(b);void 0===c&&(c=d.apply(void 0, | ||
g),e.set(b,c));return c.apply(void 0,arguments)}console.warn('[re-reselect] Invalid cache key "'+b+'" has been returned by resolver function.')};b.getMatchingSelector=function(){var b=a.apply(void 0,arguments);return e.get(b)};b.removeMatchingSelector=function(){var b=a.apply(void 0,arguments);e.remove(b)};b.clearCache=function(){e.clear()};b.resultFunc=g[g.length-1];b.cache=e;return b}}F=F&&F.hasOwnProperty("default")?F["default"]:F;var eb="undefined"!==typeof window?window:"undefined"!==typeof global? | ||
global:"undefined"!==typeof self?self:{};ha(function(h){!function(g){function a(a,b,d,f){b=Object.create((b&&b.prototype instanceof c?b:c).prototype);f=new n(f||[]);b._invoke=p(a,d,f);return b}function b(a,b,d){try{return{type:"normal",arg:a.call(b,d)}}catch(fb){return{type:"throw",arg:fb}}}function c(){}function e(){}function d(){}function f(a){["next","throw","return"].forEach(function(b){a[b]=function(a){return this._invoke(b,a)}})}function m(a){function d(c,f,q,e){c=b(a[c],a,f);if("throw"===c.type)e(c.arg); | ||
else{var g=c.arg;return(c=g.value)&&"object"===typeof c&&A.call(c,"__await")?Promise.resolve(c.__await).then(function(a){d("next",a,q,e)},function(a){d("throw",a,q,e)}):Promise.resolve(c).then(function(a){g.value=a;q(g)},function(a){return d("throw",a,q,e)})}}var c;this._invoke=function(a,b){function f(){return new Promise(function(c,f){d(a,b,c,f)})}return c=c?c.then(f,f):f()}}function p(a,d,c){var f=v;return function(e,g){if(f===r)throw Error("Generator is already running");if(f===x){if("throw"=== | ||
e)throw g;return q()}c.method=e;for(c.arg=g;;){if(e=c.delegate)if(e=u(e,c)){if(e===I)continue;return e}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(f===v)throw f=x,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);f=r;e=b(a,d,c);if("normal"===e.type){f=c.done?x:L;if(e.arg===I)continue;return{value:e.arg,done:c.done}}"throw"===e.type&&(f=x,c.method="throw",c.arg=e.arg)}}}function u(a,c){var d=a.iterator[c.method];if(d===C){c.delegate=null; | ||
if("throw"===c.method){if(a.iterator.return&&(c.method="return",c.arg=C,u(a,c),"throw"===c.method))return I;c.method="throw";c.arg=new TypeError("The iterator does not provide a 'throw' method")}return I}d=b(d,a.iterator,c.arg);if("throw"===d.type)return c.method="throw",c.arg=d.arg,c.delegate=null,I;d=d.arg;if(!d)return c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,I;if(d.done)c[a.resultName]=d.value,c.next=a.nextLoc,"return"!==c.method&&(c.method="next", | ||
c.arg=C);else return d;c.delegate=null;return I}function l(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]);2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]);this.tryEntries.push(b)}function t(a){var b=a.completion||{};b.type="normal";delete b.arg;a.completion=b}function n(a){this.tryEntries=[{tryLoc:"root"}];a.forEach(l,this);this.reset(!0)}function k(a){if(a){var b=a[J];if(b)return b.call(a);if("function"===typeof a.next)return a;if(!isNaN(a.length)){var c=-1;b=function G(){for(;++c<a.length;)if(A.call(a, | ||
c))return G.value=a[c],G.done=!1,G;G.value=C;G.done=!0;return G};return b.next=b}}return{next:q}}function q(){return{value:C,done:!0}}var z=Object.prototype,A=z.hasOwnProperty,C,D="function"===typeof Symbol?Symbol:{},J=D.iterator||"@@iterator",ka=D.asyncIterator||"@@asyncIterator",V=D.toStringTag||"@@toStringTag",B=g.regeneratorRuntime;if(B)h.exports=B;else{B=g.regeneratorRuntime=h.exports;B.wrap=a;var v="suspendedStart",L="suspendedYield",r="executing",x="completed",I={};g={};g[J]=function(){return this}; | ||
(D=(D=Object.getPrototypeOf)&&D(D(k([]))))&&D!==z&&A.call(D,J)&&(g=D);var y=d.prototype=c.prototype=Object.create(g);e.prototype=y.constructor=d;d.constructor=e;d[V]=e.displayName="GeneratorFunction";B.isGeneratorFunction=function(a){return(a="function"===typeof a&&a.constructor)?a===e||"GeneratorFunction"===(a.displayName||a.name):!1};B.mark=function(a){Object.setPrototypeOf?Object.setPrototypeOf(a,d):(a.__proto__=d,V in a||(a[V]="GeneratorFunction"));a.prototype=Object.create(y);return a};B.awrap= | ||
function(a){return{__await:a}};f(m.prototype);m.prototype[ka]=function(){return this};B.AsyncIterator=m;B.async=function(b,c,d,f){var e=new m(a(b,c,d,f));return B.isGeneratorFunction(c)?e:e.next().then(function(a){return a.done?a.value:e.next()})};f(y);y[V]="Generator";y[J]=function(){return this};y.toString=function(){return"[object Generator]"};B.keys=function(a){var b=[],c;for(c in a)b.push(c);b.reverse();return function G(){for(;b.length;){var c=b.pop();if(c in a)return G.value=c,G.done=!1,G}G.done= | ||
!0;return G}};B.values=k;n.prototype={constructor:n,reset:function(a){this.next=this.prev=0;this.sent=this._sent=C;this.done=!1;this.delegate=null;this.method="next";this.arg=C;this.tryEntries.forEach(t);if(!a)for(var b in this)"t"===b.charAt(0)&&A.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=C)},stop:function(){this.done=!0;var a=this.tryEntries[0].completion;if("throw"===a.type)throw a.arg;return this.rval},dispatchException:function(a){function b(b,d){e.type="throw";e.arg=a;c.next=b;d&&(c.method= | ||
"next",c.arg=C);return!!d}if(this.done)throw a;for(var c=this,d=this.tryEntries.length-1;0<=d;--d){var f=this.tryEntries[d],e=f.completion;if("root"===f.tryLoc)return b("end");if(f.tryLoc<=this.prev){var q=A.call(f,"catchLoc"),g=A.call(f,"finallyLoc");if(q&&g){if(this.prev<f.catchLoc)return b(f.catchLoc,!0);if(this.prev<f.finallyLoc)return b(f.finallyLoc)}else if(q){if(this.prev<f.catchLoc)return b(f.catchLoc,!0)}else if(g){if(this.prev<f.finallyLoc)return b(f.finallyLoc)}else throw Error("try statement without catch or finally"); | ||
}}},abrupt:function(a,b){for(var c=this.tryEntries.length-1;0<=c;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&A.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var f=d;break}}f&&("break"===a||"continue"===a)&&f.tryLoc<=b&&b<=f.finallyLoc&&(f=null);c=f?f.completion:{};c.type=a;c.arg=b;return f?(this.method="next",this.next=f.finallyLoc,I):this.complete(c)},complete:function(a,b){if("throw"===a.type)throw a.arg;"break"===a.type||"continue"===a.type?this.next=a.arg:"return"===a.type?(this.rval= | ||
this.arg=a.arg,this.method="return",this.next="end"):"normal"===a.type&&b&&(this.next=b);return I},finish:function(a){for(var b=this.tryEntries.length-1;0<=b;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion,c.afterLoc),t(c),I}},"catch":function(a){for(var b=this.tryEntries.length-1;0<=b;--b){var c=this.tryEntries[b];if(c.tryLoc===a){a=c.completion;if("throw"===a.type){var d=a.arg;t(c)}return d}}throw Error("illegal catch attempt");},delegateYield:function(a,b,c){this.delegate= | ||
{iterator:k(a),resultName:b,nextLoc:c};"next"===this.method&&(this.arg=C);return I}}}}(function(){return this}()||Function("return this")())});var Ua={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Va={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xa=Object.defineProperty,Ta=Object.getOwnPropertyNames,wa=Object.getOwnPropertySymbols,Wa=Object.getOwnPropertyDescriptor,ja= | ||
Object.getPrototypeOf,va=ja&&ja(Object),gb=function(h){return function(g,a){for(var b=a&&"function"===typeof a?function(){var b=a.apply(void 0,arguments);return Object.keys(b).reduce(function(a,c){var d;return k({},a,(d={},d[c]=function(){var a=b[c].apply(b,arguments);a&&a.__actionName&&a.__requestURL&&(h(a.__actionName,a.__requestURL),delete a.__actionName,delete a.__requestURL);return a},d))},{})}:a,c=arguments.length,e=Array(2<c?c-2:0),d=2;d<c;d++)e[d-2]=arguments[d];return Pa.connect.apply(void 0, | ||
[g,b].concat(e))}},la=function(h,g){return function(a){return{type:h,resourceName:g,resourceId:a}}},H=function(h,g,a){return"@@rest-easy/"+h+"/"+g+"/"+a.toUpperCase()},hb=function(h){var g=H(h,"@invalidate","INVALIDATE_RESOURCE");var a=H(h,"@invalidate","INVALIDATE_ID");var b=H(h,"@reset","RESET_RESOURCE");return{resource:{invalidate:la(g,h),invalidateId:la(a,h),reset:la(b,h)}}},W=function(h,g){return function(a,b,c,e,d){return{type:g,url:a,resourceId:b,payload:c&&Object.keys(c).length?c:void 0,metadata:e, | ||
principalResourceIds:"string"===typeof d?[d]:d,cacheLifetime:h}}},ib=function(h,g,a){var b=H(h,g,"REQUEST");var c=H(h,g,"RECEIVE");var e=H(h,g,"FAIL");h=H(h,g,"RECEIVE_FROM_CACHE");return{REQUEST:W(a,b),RECEIVE:W(a,c),FAIL:W(a,e),RECEIVE_FROM_CACHE:W(a,h)}},Ya=Object.prototype.toString,Za=Object.keys||function(h){var g=[],a;for(a in h)g.push(a);return g},Aa=function(h){h=R(h,!1);if(void 0!==h)return""+h},ma=Object.prototype.hasOwnProperty,E=function(){for(var h=[],g=0;256>g;++g)h.push("%"+((16>g? | ||
"0":"")+g.toString(16)).toUpperCase());return h}(),Ba=function(h,g){g=g&&g.plainObjects?Object.create(null):{};for(var a=0;a<h.length;++a)"undefined"!==typeof h[a]&&(g[a]=h[a]);return g},K={arrayToObject:Ba,assign:function(h,g){return Object.keys(g).reduce(function(a,b){a[b]=g[b];return a},h)},compact:function(h){h=[{obj:{o:h},prop:"o"}];for(var g=[],a=0;a<h.length;++a){var b=h[a];b=b.obj[b.prop];for(var c=Object.keys(b),e=0;e<c.length;++e){var d=c[e],f=b[d];"object"===typeof f&&null!==f&&-1===g.indexOf(f)&& | ||
(h.push({obj:b,prop:d}),g.push(f))}}for(var m;h.length;)if(g=h.pop(),m=g.obj[g.prop],Array.isArray(m)){a=[];for(b=0;b<m.length;++b)"undefined"!==typeof m[b]&&a.push(m[b]);g.obj[g.prop]=a}return m},decode:function(h){try{return decodeURIComponent(h.replace(/\+/g," "))}catch(g){return h}},encode:function(h){if(0===h.length)return h;h="string"===typeof h?h:String(h);for(var g="",a=0;a<h.length;++a){var b=h.charCodeAt(a);45===b||46===b||95===b||126===b||48<=b&&57>=b||65<=b&&90>=b||97<=b&&122>=b?g+=h.charAt(a): | ||
128>b?g+=E[b]:2048>b?g+=E[192|b>>6]+E[128|b&63]:55296>b||57344<=b?g+=E[224|b>>12]+E[128|b>>6&63]+E[128|b&63]:(a+=1,b=65536+((b&1023)<<10|h.charCodeAt(a)&1023),g+=E[240|b>>18]+E[128|b>>12&63]+E[128|b>>6&63]+E[128|b&63])}return g},isBuffer:function(h){return null===h||"undefined"===typeof h?!1:!!(h.constructor&&h.constructor.isBuffer&&h.constructor.isBuffer(h))},isRegExp:function(h){return"[object RegExp]"===Object.prototype.toString.call(h)},merge:function c(g,a,b){if(!a)return g;if("object"!==typeof a){if(Array.isArray(g))g.push(a); | ||
else if("object"===typeof g){if(b.plainObjects||b.allowPrototypes||!ma.call(Object.prototype,a))g[a]=!0}else return[g,a];return g}if("object"!==typeof g)return[g].concat(a);var e=g;Array.isArray(g)&&!Array.isArray(a)&&(e=Ba(g,b));return Array.isArray(g)&&Array.isArray(a)?(a.forEach(function(a,f){ma.call(g,f)?g[f]&&"object"===typeof g[f]?g[f]=c(g[f],a,b):g.push(a):g[f]=a}),g):Object.keys(a).reduce(function(d,f){var e=a[f];ma.call(d,f)?d[f]=c(d[f],e,b):d[f]=e;return d},e)}},jb=String.prototype.replace, | ||
kb=/%20/g,X={"default":"RFC3986",formatters:{RFC1738:function(g){return jb.call(g,kb,"+")},RFC3986:function(g){return g}},RFC1738:"RFC1738",RFC3986:"RFC3986"},Ca={brackets:function(g){return g+"[]"},indices:function(g,a){return g+"["+a+"]"},repeat:function(g){return g}},lb=Date.prototype.toISOString,Y=K.encode,mb=function(g){return lb.call(g)},nb=function w(a,b,c,e,d,f,m,p,u,l,t,n){if("function"===typeof m)a=m(b,a);else if(a instanceof Date)a=l(a);else if(null===a){if(e)return f&&!n?f(b,Y):b;a=""}if("string"=== | ||
typeof a||"number"===typeof a||"boolean"===typeof a||K.isBuffer(a))return f?(b=n?b:f(b,Y),[t(b)+"="+t(f(a,Y))]):[t(b)+"="+t(String(a))];var q=[];if("undefined"===typeof a)return q;if(Array.isArray(m))var z=m;else z=Object.keys(a),z=p?z.sort(p):z;for(var A=0;A<z.length;++A){var k=z[A];d&&null===a[k]||(q=Array.isArray(a)?q.concat(w(a[k],c(b,k),c,e,d,f,m,p,u,l,t,n)):q.concat(w(a[k],b+(u?"."+k:"["+k+"]"),c,e,d,f,m,p,u,l,t,n)))}return q},na=Object.prototype.hasOwnProperty,Z=K.decode,ob={formats:X,parse:function(a, | ||
b){b=b?K.assign({},b):{};if(null!==b.decoder&&void 0!==b.decoder&&"function"!==typeof b.decoder)throw new TypeError("Decoder has to be a function.");b.ignoreQueryPrefix=!0===b.ignoreQueryPrefix;b.delimiter="string"===typeof b.delimiter||K.isRegExp(b.delimiter)?b.delimiter:"&";b.depth="number"===typeof b.depth?b.depth:5;b.arrayLimit="number"===typeof b.arrayLimit?b.arrayLimit:20;b.parseArrays=!1!==b.parseArrays;b.decoder="function"===typeof b.decoder?b.decoder:Z;b.allowDots="boolean"===typeof b.allowDots? | ||
'use strict';(function(y,F){"object"===typeof exports&&"undefined"!==typeof module?F(exports,require("react"),require("react-redux")):"function"===typeof define&&define.amd?define(["exports","react","react-redux"],F):F(y.ReduxRestEasy={},y.React,y.ReactRedux)})(this,function(y,F,Ya){function Za(){throw Error("Dynamic requires are not currently supported by rollup-plugin-commonjs");}function xa(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h["default"]:h}function Q(h, | ||
g){return g={exports:{}},h(g,g.exports),g.exports}function ya(h,g,a,b,c,e,d){try{var f=h[e](d),l=f.value}catch(n){a(n);return}f.done?g(l):Promise.resolve(l).then(b,c)}function N(h){return function(){var g=this,a=arguments;return new Promise(function(b,c){function e(a){ya(f,b,c,e,d,"next",a)}function d(a){ya(f,b,c,e,d,"throw",a)}var f=h.apply(g,a);e(void 0)})}}function za(h,g,a){g in h?Object.defineProperty(h,g,{value:a,enumerable:!0,configurable:!0,writable:!0}):h[g]=a;return h}function k(){k=Object.assign|| | ||
function(h){for(var g=1;g<arguments.length;g++){var a=arguments[g],b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(h[b]=a[b])}return h};return k.apply(this,arguments)}function $a(h,g){h.prototype=Object.create(g.prototype);h.prototype.constructor=h;h.__proto__=g}function ab(h,g){if(null==h)return{};var a={},b=Object.keys(h),c;for(c=0;c<b.length;c++){var e=b[c];0<=g.indexOf(e)||(a[e]=h[e])}return a}function W(h){if(void 0===h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
return h}function la(h,g,a){g in h?Object.defineProperty(h,g,{value:a,enumerable:!0,configurable:!0,writable:!0}):h[g]=a;return h}function Aa(h,g,a){if("string"!==typeof g){if(Ba){var b=bb(g);b&&b!==Ba&&Aa(h,b,a)}b=cb(g);Ca&&(b=b.concat(Ca(g)));for(var c=Da[h.$$typeof]||Ea,e=Da[g.$$typeof]||Ea,d=0;d<b.length;++d){var f=b[d];if(!(db[f]||a&&a[f]||e&&e[f]||c&&c[f])){var l=eb(g,f);try{fb(h,f,l)}catch(n){}}}}return h}function T(h,g){if(!0===h)return"true";if(!1===h)return"false";switch(typeof h){case "object":if(null=== | ||
h)return null;if(h.toJSON&&"function"===typeof h.toJSON)return T(h.toJSON(),g);g=gb.call(h);if("[object Array]"===g){var a="[";var b=h.length-1;for(g=0;g<b;g++)a+=T(h[g],!0)+",";-1<b&&(a+=T(h[g],!0));return a+"]"}if("[object Object]"===g){var c=hb(h).sort();b=c.length;a="";for(g=0;g<b;){var e=c[g];var d=T(h[e],!1);void 0!==d&&(a&&(a+=","),a+=JSON.stringify(e)+":"+d);g++}return"{"+a+"}"}return JSON.stringify(h);case "function":case "undefined":return g?null:void 0;case "string":return JSON.stringify(h); | ||
default:return isFinite(h)?h:null}}function ib(h,g){return h===g}function Fa(h){var g=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ib,a=null,b=null;return function(){a:{var c=a;var e=arguments;if(null===c||null===e||c.length!==e.length)c=!1;else{for(var d=c.length,f=0;f<d;f++)if(!g(c[f],e[f])){c=!1;break a}c=!0}}c||(b=h.apply(null,arguments));a=arguments;return b}}function jb(h){h=Array.isArray(h[0])?h[0]:h;if(!h.every(function(g){return"function"===typeof g}))throw h=h.map(function(g){return typeof g}).join(", "), | ||
Error("Selector creators expect all input-selectors to be functions, "+("instead received the following types: ["+h+"]"));return h}function Ga(h){for(var g=arguments.length,a=Array(1<g?g-1:0),b=1;b<g;b++)a[b-1]=arguments[b];return function(){for(var b=arguments.length,e=Array(b),d=0;d<b;d++)e[d]=arguments[d];var f=0,g=e.pop(),n=jb(e),t=h.apply(void 0,[function(){f++;return g.apply(null,arguments)}].concat(a));b=Fa(function(){for(var a=[],b=n.length,d=0;d<b;d++)a.push(n[d].apply(null,arguments));return t.apply(null, | ||
a)});b.resultFunc=g;b.recomputations=function(){return f};b.resetRecomputations=function(){return f=0};return b}}function ma(h){return"string"===typeof h||"number"===typeof h}function X(h){if(void 0===h)throw Error('Missing the required property "cacheSize".');if(!Number.isInteger(h)||0>=h)throw Error('The "cacheSize" property must be a positive integer value.');}function Ha(){for(var h=arguments.length,g=Array(h),a=0;a<h;a++)g[a]=arguments[a];return function(a){var b=1<arguments.length&&void 0!== | ||
arguments[1]?arguments[1]:{};if("function"===typeof b)throw Error('[re-reselect] Second argument "options" must be an object. Please use "options.selectorCreator" to provide a custom selectorCreator.');var e=b.cacheObject||new kb,d=b.selectorCreator||lb,f=e.isValidCacheKey||mb;b=function(){var b=a.apply(void 0,arguments);if(f(b)){var c=e.get(b);void 0===c&&(c=d.apply(void 0,g),e.set(b,c));return c.apply(void 0,arguments)}console.warn('[re-reselect] Invalid cache key "'+b+'" has been returned by resolver function.')}; | ||
b.getMatchingSelector=function(){var b=a.apply(void 0,arguments);return e.get(b)};b.removeMatchingSelector=function(){var b=a.apply(void 0,arguments);e.remove(b)};b.clearCache=function(){e.clear()};b.resultFunc=g[g.length-1];b.cache=e;return b}}F=F&&F.hasOwnProperty("default")?F["default"]:F;var nb="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};Q(function(h){!function(g){function a(a,b,d,f){b=Object.create((b&&b.prototype instanceof c?b:c).prototype); | ||
f=new p(f||[]);b._invoke=n(a,d,f);return b}function b(a,b,d){try{return{type:"normal",arg:a.call(b,d)}}catch(ob){return{type:"throw",arg:ob}}}function c(){}function e(){}function d(){}function f(a){["next","throw","return"].forEach(function(b){a[b]=function(a){return this._invoke(b,a)}})}function l(a){function d(c,f,q,e){c=b(a[c],a,f);if("throw"===c.type)e(c.arg);else{var g=c.arg;return(c=g.value)&&"object"===typeof c&&A.call(c,"__await")?Promise.resolve(c.__await).then(function(a){d("next",a,q,e)}, | ||
function(a){d("throw",a,q,e)}):Promise.resolve(c).then(function(a){g.value=a;q(g)},function(a){return d("throw",a,q,e)})}}var c;this._invoke=function(a,b){function f(){return new Promise(function(c,f){d(a,b,c,f)})}return c=c?c.then(f,f):f()}}function n(a,d,c){var f=v;return function(e,g){if(f===r)throw Error("Generator is already running");if(f===w){if("throw"===e)throw g;return q()}c.method=e;for(c.arg=g;;){if(e=c.delegate)if(e=t(e,c)){if(e===I)continue;return e}if("next"===c.method)c.sent=c._sent= | ||
c.arg;else if("throw"===c.method){if(f===v)throw f=w,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);f=r;e=b(a,d,c);if("normal"===e.type){f=c.done?w:L;if(e.arg===I)continue;return{value:e.arg,done:c.done}}"throw"===e.type&&(f=w,c.method="throw",c.arg=e.arg)}}}function t(a,c){var d=a.iterator[c.method];if(d===C){c.delegate=null;if("throw"===c.method){if(a.iterator.return&&(c.method="return",c.arg=C,t(a,c),"throw"===c.method))return I;c.method="throw";c.arg=new TypeError("The iterator does not provide a 'throw' method")}return I}d= | ||
b(d,a.iterator,c.arg);if("throw"===d.type)return c.method="throw",c.arg=d.arg,c.delegate=null,I;d=d.arg;if(!d)return c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,I;if(d.done)c[a.resultName]=d.value,c.next=a.nextLoc,"return"!==c.method&&(c.method="next",c.arg=C);else return d;c.delegate=null;return I}function m(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]);2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]);this.tryEntries.push(b)}function u(a){var b=a.completion|| | ||
{};b.type="normal";delete b.arg;a.completion=b}function p(a){this.tryEntries=[{tryLoc:"root"}];a.forEach(m,this);this.reset(!0)}function k(a){if(a){var b=a[J];if(b)return b.call(a);if("function"===typeof a.next)return a;if(!isNaN(a.length)){var c=-1;b=function G(){for(;++c<a.length;)if(A.call(a,c))return G.value=a[c],G.done=!1,G;G.value=C;G.done=!0;return G};return b.next=b}}return{next:q}}function q(){return{value:C,done:!0}}var z=Object.prototype,A=z.hasOwnProperty,C,D="function"===typeof Symbol? | ||
Symbol:{},J=D.iterator||"@@iterator",na=D.asyncIterator||"@@asyncIterator",Y=D.toStringTag||"@@toStringTag",B=g.regeneratorRuntime;if(B)h.exports=B;else{B=g.regeneratorRuntime=h.exports;B.wrap=a;var v="suspendedStart",L="suspendedYield",r="executing",w="completed",I={};g={};g[J]=function(){return this};(D=(D=Object.getPrototypeOf)&&D(D(k([]))))&&D!==z&&A.call(D,J)&&(g=D);var y=d.prototype=c.prototype=Object.create(g);e.prototype=y.constructor=d;d.constructor=e;d[Y]=e.displayName="GeneratorFunction"; | ||
B.isGeneratorFunction=function(a){return(a="function"===typeof a&&a.constructor)?a===e||"GeneratorFunction"===(a.displayName||a.name):!1};B.mark=function(a){Object.setPrototypeOf?Object.setPrototypeOf(a,d):(a.__proto__=d,Y in a||(a[Y]="GeneratorFunction"));a.prototype=Object.create(y);return a};B.awrap=function(a){return{__await:a}};f(l.prototype);l.prototype[na]=function(){return this};B.AsyncIterator=l;B.async=function(b,c,d,f){var q=new l(a(b,c,d,f));return B.isGeneratorFunction(c)?q:q.next().then(function(a){return a.done? | ||
a.value:q.next()})};f(y);y[Y]="Generator";y[J]=function(){return this};y.toString=function(){return"[object Generator]"};B.keys=function(a){var b=[],c;for(c in a)b.push(c);b.reverse();return function G(){for(;b.length;){var c=b.pop();if(c in a)return G.value=c,G.done=!1,G}G.done=!0;return G}};B.values=k;p.prototype={constructor:p,reset:function(a){this.next=this.prev=0;this.sent=this._sent=C;this.done=!1;this.delegate=null;this.method="next";this.arg=C;this.tryEntries.forEach(u);if(!a)for(var b in this)"t"=== | ||
b.charAt(0)&&A.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=C)},stop:function(){this.done=!0;var a=this.tryEntries[0].completion;if("throw"===a.type)throw a.arg;return this.rval},dispatchException:function(a){function b(b,d){q.type="throw";q.arg=a;c.next=b;d&&(c.method="next",c.arg=C);return!!d}if(this.done)throw a;for(var c=this,d=this.tryEntries.length-1;0<=d;--d){var f=this.tryEntries[d],q=f.completion;if("root"===f.tryLoc)return b("end");if(f.tryLoc<=this.prev){var e=A.call(f,"catchLoc"),g=A.call(f, | ||
"finallyLoc");if(e&&g){if(this.prev<f.catchLoc)return b(f.catchLoc,!0);if(this.prev<f.finallyLoc)return b(f.finallyLoc)}else if(e){if(this.prev<f.catchLoc)return b(f.catchLoc,!0)}else if(g){if(this.prev<f.finallyLoc)return b(f.finallyLoc)}else throw Error("try statement without catch or finally");}}},abrupt:function(a,b){for(var c=this.tryEntries.length-1;0<=c;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&A.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var f=d;break}}f&&("break"===a||"continue"=== | ||
a)&&f.tryLoc<=b&&b<=f.finallyLoc&&(f=null);c=f?f.completion:{};c.type=a;c.arg=b;return f?(this.method="next",this.next=f.finallyLoc,I):this.complete(c)},complete:function(a,b){if("throw"===a.type)throw a.arg;"break"===a.type||"continue"===a.type?this.next=a.arg:"return"===a.type?(this.rval=this.arg=a.arg,this.method="return",this.next="end"):"normal"===a.type&&b&&(this.next=b);return I},finish:function(a){for(var b=this.tryEntries.length-1;0<=b;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion, | ||
c.afterLoc),u(c),I}},"catch":function(a){for(var b=this.tryEntries.length-1;0<=b;--b){var c=this.tryEntries[b];if(c.tryLoc===a){a=c.completion;if("throw"===a.type){var d=a.arg;u(c)}return d}}throw Error("illegal catch attempt");},delegateYield:function(a,b,c){this.delegate={iterator:k(a),resultName:b,nextLoc:c};"next"===this.method&&(this.arg=C);return I}}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())});var Ia=Q(function(h,g){function a(a){if("object"===typeof a&& | ||
null!==a){var g=a.$$typeof;switch(g){case b:switch(a=a.type,a){case t:case e:case f:case d:return a;default:switch(a=a&&a.$$typeof,a){case n:case m:case l:return a;default:return g}}case c:return g}}}Object.defineProperty(g,"__esModule",{value:!0});var b=(h="function"===typeof Symbol&&Symbol.for)?Symbol.for("react.element"):60103,c=h?Symbol.for("react.portal"):60106,e=h?Symbol.for("react.fragment"):60107,d=h?Symbol.for("react.strict_mode"):60108,f=h?Symbol.for("react.profiler"):60114,l=h?Symbol.for("react.provider"): | ||
60109,n=h?Symbol.for("react.context"):60110,t=h?Symbol.for("react.async_mode"):60111,m=h?Symbol.for("react.forward_ref"):60112,u=h?Symbol.for("react.timeout"):60113;g.typeOf=a;g.AsyncMode=t;g.ContextConsumer=n;g.ContextProvider=l;g.Element=b;g.ForwardRef=m;g.Fragment=e;g.Profiler=f;g.Portal=c;g.StrictMode=d;g.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===t||a===f||a===d||a===u||"object"===typeof a&&null!==a&&(a.$$typeof===l||a.$$typeof===n||a.$$typeof=== | ||
m)};g.isAsyncMode=function(b){return a(b)===t};g.isContextConsumer=function(b){return a(b)===n};g.isContextProvider=function(b){return a(b)===l};g.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===b};g.isForwardRef=function(b){return a(b)===m};g.isFragment=function(b){return a(b)===e};g.isProfiler=function(b){return a(b)===f};g.isPortal=function(b){return a(b)===c};g.isStrictMode=function(b){return a(b)===d}});xa(Ia);var pb=Q(function(h,g){});xa(pb);var qb=Q(function(h){h.exports= | ||
Ia}),Z,Ea={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},db={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Da=la({},qb.ForwardRef,(Z={},la(Z,"$$typeof",!0),la(Z,"render",!0),Z)),fb=Object.defineProperty,cb=Object.getOwnPropertyNames,Ca=Object.getOwnPropertySymbols,eb=Object.getOwnPropertyDescriptor,bb=Object.getPrototypeOf,Ba=Object.prototype,rb=function(h){return function(g, | ||
a){for(var b=a&&"function"===typeof a?function(){var b=a.apply(void 0,arguments);return Object.keys(b).reduce(function(a,c){var d;return k({},a,(d={},d[c]=function(){var a=b[c].apply(b,arguments);a&&a.__actionName&&a.__requestURL&&(h(a.__actionName,a.__requestURL),delete a.__actionName,delete a.__requestURL);return a},d))},{})}:a,c=arguments.length,e=Array(2<c?c-2:0),d=2;d<c;d++)e[d-2]=arguments[d];return Ya.connect.apply(void 0,[g,b].concat(e))}},oa=function(h,g){return function(a){return{type:h, | ||
resourceName:g,resourceId:a}}},H=function(h,g,a){return"@@rest-easy/"+h+"/"+g+"/"+a.toUpperCase()},sb=function(h){var g=H(h,"@invalidate","INVALIDATE_RESOURCE");var a=H(h,"@invalidate","INVALIDATE_ID");var b=H(h,"@reset","RESET_RESOURCE");return{resource:{invalidate:oa(g,h),invalidateId:oa(a,h),reset:oa(b,h)}}},aa=function(h,g){return function(a,b,c,e,d){return{type:g,url:a,resourceId:b,payload:c&&Object.keys(c).length?c:void 0,metadata:e,principalResourceIds:"string"===typeof d?[d]:d,cacheLifetime:h}}}, | ||
tb=function(h,g,a){var b=H(h,g,"REQUEST");var c=H(h,g,"RECEIVE");var e=H(h,g,"FAIL");h=H(h,g,"RECEIVE_FROM_CACHE");return{REQUEST:aa(a,b),RECEIVE:aa(a,c),FAIL:aa(a,e),RECEIVE_FROM_CACHE:aa(a,h)}},gb=Object.prototype.toString,hb=Object.keys||function(h){var g=[],a;for(a in h)g.push(a);return g},Ja=function(h){h=T(h,!1);if(void 0!==h)return""+h},pa=Object.prototype.hasOwnProperty,E=function(){for(var h=[],g=0;256>g;++g)h.push("%"+((16>g?"0":"")+g.toString(16)).toUpperCase());return h}(),Ka=function(h, | ||
g){g=g&&g.plainObjects?Object.create(null):{};for(var a=0;a<h.length;++a)"undefined"!==typeof h[a]&&(g[a]=h[a]);return g},K={arrayToObject:Ka,assign:function(h,g){return Object.keys(g).reduce(function(a,b){a[b]=g[b];return a},h)},compact:function(h){h=[{obj:{o:h},prop:"o"}];for(var g=[],a=0;a<h.length;++a){var b=h[a];b=b.obj[b.prop];for(var c=Object.keys(b),e=0;e<c.length;++e){var d=c[e],f=b[d];"object"===typeof f&&null!==f&&-1===g.indexOf(f)&&(h.push({obj:b,prop:d}),g.push(f))}}for(var l;h.length;)if(g= | ||
h.pop(),l=g.obj[g.prop],Array.isArray(l)){a=[];for(b=0;b<l.length;++b)"undefined"!==typeof l[b]&&a.push(l[b]);g.obj[g.prop]=a}return l},decode:function(h){try{return decodeURIComponent(h.replace(/\+/g," "))}catch(g){return h}},encode:function(h){if(0===h.length)return h;h="string"===typeof h?h:String(h);for(var g="",a=0;a<h.length;++a){var b=h.charCodeAt(a);45===b||46===b||95===b||126===b||48<=b&&57>=b||65<=b&&90>=b||97<=b&&122>=b?g+=h.charAt(a):128>b?g+=E[b]:2048>b?g+=E[192|b>>6]+E[128|b&63]:55296> | ||
b||57344<=b?g+=E[224|b>>12]+E[128|b>>6&63]+E[128|b&63]:(a+=1,b=65536+((b&1023)<<10|h.charCodeAt(a)&1023),g+=E[240|b>>18]+E[128|b>>12&63]+E[128|b>>6&63]+E[128|b&63])}return g},isBuffer:function(h){return null===h||"undefined"===typeof h?!1:!!(h.constructor&&h.constructor.isBuffer&&h.constructor.isBuffer(h))},isRegExp:function(h){return"[object RegExp]"===Object.prototype.toString.call(h)},merge:function c(g,a,b){if(!a)return g;if("object"!==typeof a){if(Array.isArray(g))g.push(a);else if("object"=== | ||
typeof g){if(b.plainObjects||b.allowPrototypes||!pa.call(Object.prototype,a))g[a]=!0}else return[g,a];return g}if("object"!==typeof g)return[g].concat(a);var e=g;Array.isArray(g)&&!Array.isArray(a)&&(e=Ka(g,b));return Array.isArray(g)&&Array.isArray(a)?(a.forEach(function(a,f){pa.call(g,f)?g[f]&&"object"===typeof g[f]?g[f]=c(g[f],a,b):g.push(a):g[f]=a}),g):Object.keys(a).reduce(function(d,f){var e=a[f];pa.call(d,f)?d[f]=c(d[f],e,b):d[f]=e;return d},e)}},ub=String.prototype.replace,vb=/%20/g,ba={"default":"RFC3986", | ||
formatters:{RFC1738:function(g){return ub.call(g,vb,"+")},RFC3986:function(g){return g}},RFC1738:"RFC1738",RFC3986:"RFC3986"},La={brackets:function(g){return g+"[]"},indices:function(g,a){return g+"["+a+"]"},repeat:function(g){return g}},wb=Date.prototype.toISOString,ca=K.encode,xb=function(g){return wb.call(g)},yb=function x(a,b,c,e,d,f,l,n,t,m,u,p){if("function"===typeof l)a=l(b,a);else if(a instanceof Date)a=m(a);else if(null===a){if(e)return f&&!p?f(b,ca):b;a=""}if("string"===typeof a||"number"=== | ||
typeof a||"boolean"===typeof a||K.isBuffer(a))return f?(b=p?b:f(b,ca),[u(b)+"="+u(f(a,ca))]):[u(b)+"="+u(String(a))];var q=[];if("undefined"===typeof a)return q;if(Array.isArray(l))var z=l;else z=Object.keys(a),z=n?z.sort(n):z;for(var A=0;A<z.length;++A){var k=z[A];d&&null===a[k]||(q=Array.isArray(a)?q.concat(x(a[k],c(b,k),c,e,d,f,l,n,t,m,u,p)):q.concat(x(a[k],b+(t?"."+k:"["+k+"]"),c,e,d,f,l,n,t,m,u,p)))}return q},qa=Object.prototype.hasOwnProperty,da=K.decode,zb={formats:ba,parse:function(a,b){b= | ||
b?K.assign({},b):{};if(null!==b.decoder&&void 0!==b.decoder&&"function"!==typeof b.decoder)throw new TypeError("Decoder has to be a function.");b.ignoreQueryPrefix=!0===b.ignoreQueryPrefix;b.delimiter="string"===typeof b.delimiter||K.isRegExp(b.delimiter)?b.delimiter:"&";b.depth="number"===typeof b.depth?b.depth:5;b.arrayLimit="number"===typeof b.arrayLimit?b.arrayLimit:20;b.parseArrays=!1!==b.parseArrays;b.decoder="function"===typeof b.decoder?b.decoder:da;b.allowDots="boolean"===typeof b.allowDots? | ||
b.allowDots:!1;b.plainObjects="boolean"===typeof b.plainObjects?b.plainObjects:!1;b.allowPrototypes="boolean"===typeof b.allowPrototypes?b.allowPrototypes:!1;b.parameterLimit="number"===typeof b.parameterLimit?b.parameterLimit:1E3;b.strictNullHandling="boolean"===typeof b.strictNullHandling?b.strictNullHandling:!1;if(""===a||null===a||"undefined"===typeof a)return b.plainObjects?Object.create(null):{};if("string"===typeof a){var c={};a=(b.ignoreQueryPrefix?a.replace(/^\?/,""):a).split(b.delimiter, | ||
Infinity===b.parameterLimit?void 0:b.parameterLimit);for(var e=0;e<a.length;++e){var d=a[e],f=d.indexOf("]="),m=-1===f?d.indexOf("="):f+1;-1===m?(f=b.decoder(d,Z),d=b.strictNullHandling?null:""):(f=b.decoder(d.slice(0,m),Z),d=b.decoder(d.slice(m+1),Z));na.call(c,f)?c[f]=[].concat(c[f]).concat(d):c[f]=d}}else c=a;a=b.plainObjects?Object.create(null):{};e=Object.keys(c);for(d=0;d<e.length;++d){f=e[d];a:{var p=f;f=c[f];m=b;if(p){p=m.allowDots?p.replace(/\.([^.[]+)/g,"[$1]"):p;var k=/(\[[^[\]]*])/g,l= | ||
/(\[[^[\]]*])/.exec(p);l=l?p.slice(0,l.index):p;var t=[];if(l){if(!m.plainObjects&&na.call(Object.prototype,l)&&!m.allowPrototypes){f=void 0;break a}t.push(l)}for(var n=0;null!==(l=k.exec(p))&&n<m.depth;){n+=1;if(!m.plainObjects&&na.call(Object.prototype,l[1].slice(1,-1))&&!m.allowPrototypes){f=void 0;break a}t.push(l[1])}l&&t.push("["+p.slice(l.index)+"]");p=t;for(k=p.length-1;0<=k;--k){l=p[k];if("[]"===l)t=[],t=t.concat(f);else{t=m.plainObjects?Object.create(null):{};n="["===l.charAt(0)&&"]"=== | ||
l.charAt(l.length-1)?l.slice(1,-1):l;var w=parseInt(n,10);!isNaN(w)&&l!==n&&String(w)===n&&0<=w&&m.parseArrays&&w<=m.arrayLimit?(t=[],t[w]=f):t[n]=f}f=t}}else f=void 0}a=K.merge(a,f,b)}return K.compact(a)},stringify:function(a,b){b=b?K.assign({},b):{};if(null!==b.encoder&&void 0!==b.encoder&&"function"!==typeof b.encoder)throw new TypeError("Encoder has to be a function.");var c="undefined"===typeof b.delimiter?"&":b.delimiter,e="boolean"===typeof b.strictNullHandling?b.strictNullHandling:!1,d="boolean"=== | ||
typeof b.skipNulls?b.skipNulls:!1,f="boolean"===typeof b.encode?b.encode:!0,m="function"===typeof b.encoder?b.encoder:Y,p="function"===typeof b.sort?b.sort:null,k="undefined"===typeof b.allowDots?!1:b.allowDots,l="function"===typeof b.serializeDate?b.serializeDate:mb,t="boolean"===typeof b.encodeValuesOnly?b.encodeValuesOnly:!1;if("undefined"===typeof b.format)b.format=X["default"];else if(!Object.prototype.hasOwnProperty.call(X.formatters,b.format))throw new TypeError("Unknown format option provided."); | ||
var n=X.formatters[b.format];if("function"===typeof b.filter){var w=b.filter;a=w("",a)}else if(Array.isArray(b.filter))var q=w=b.filter;var z=[];if("object"!==typeof a||null===a)return"";var A=Ca[b.arrayFormat in Ca?b.arrayFormat:"indices"in b?b.indices?"indices":"repeat":"indices"];q||(q=Object.keys(a));p&&q.sort(p);for(var C=0;C<q.length;++C){var D=q[C];d&&null===a[D]||(z=z.concat(nb(a[D],D,A,e,d,f?m:null,w,p,k,l,n,t)))}q=z.join(c);w=!0===b.addQueryPrefix?"?":"";return 0<q.length?w+q:""}},Da=function(a){a= | ||
a&&Object.keys(a)?ob.stringify(a):"";return a?"?"+a:""},pb=function(a,b,c){var e="string"!==typeof a?a():a;b&&Object.keys(b).forEach(function(a){e=e.replace("::"+a,b[a]).replace(":"+a,b[a])});a=c?Da(JSON.parse(Aa(c))):"";return""+e+a},qb=function(a){a=("string"!==typeof a?a():a).split("/").reverse();var b=a.findIndex(function(a){return a.startsWith("::")});return-1!==b?a.length-1-b:-1},rb=function(a,b){if(!a||!b&&0!==b||-1===b)return null;for(var c=0,e=0;e<b;e+=1)c=a.indexOf("/",c+1);b=a.indexOf("/", | ||
c+1);return a.substr(c+1,-1!==b?b-c-1:a.length)},x=function(a){return a&&a.restEasy?a.restEasy:(console.error('\n There doesn\'t seem to be a "restEasy" key in your state.\n\n For more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/reducer.md#reducer\n '),null)},oa=function(a){return"never"!==a&&(!a||new Date>new Date(a))},sb=function(a,b,c){if(!("GET"===b&&a&&c&&a.requests&&a.requests[c]))return!0;a=a.requests[c];b=a.didInvalidate; | ||
c=a.expireAt;return!a.hasSucceeded||b||oa(c)},aa=function(a){return"number"===typeof a?a.toString():a},ba=function(a,b){return aa(a)===aa(b)},pa=function(a,b){return a?a.map(aa).includes(aa(b)):!1},tb=function(a,b,c,e){return"GET"===b&&a&&a.requests&&c&&null!==e?Object.values(a.requests).some(function(a){var b=a.didInvalidate,d=a.expireAt,p=a.resourceName,k=a.resourceId,l=a.payloadIds;return a.hasSucceeded&&!b&&(c===p&&ba(e,k)||l&&l[c]&&pa(l[c],e))&&!oa(d)}):!1},ca=function(a){if(a&&"function"=== | ||
typeof a){for(var b=arguments.length,c=Array(1<b?b-1:0),e=1;e<b;e++)c[e-1]=arguments[e];return a.apply(void 0,c)}},qa={getToken:function(){return"token"},requestGET:function(){var a=N(regeneratorRuntime.mark(function c(){var a;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:c.t0=this.getToken;if(!c.t0){c.next=5;break}c.next=4;return this.getToken();case 4:c.t0=c.sent;case 5:return a=c.t0,c.abrupt("return",{method:"GET",headers:k({Accept:"application/json"},a?{Authorization:"Bearer "+ | ||
Infinity===b.parameterLimit?void 0:b.parameterLimit);for(var e=0;e<a.length;++e){var d=a[e],f=d.indexOf("]="),l=-1===f?d.indexOf("="):f+1;-1===l?(f=b.decoder(d,da),d=b.strictNullHandling?null:""):(f=b.decoder(d.slice(0,l),da),d=b.decoder(d.slice(l+1),da));qa.call(c,f)?c[f]=[].concat(c[f]).concat(d):c[f]=d}}else c=a;a=b.plainObjects?Object.create(null):{};e=Object.keys(c);for(d=0;d<e.length;++d){f=e[d];a:{var n=f;f=c[f];l=b;if(n){n=l.allowDots?n.replace(/\.([^.[]+)/g,"[$1]"):n;var t=/(\[[^[\]]*])/g, | ||
m=/(\[[^[\]]*])/.exec(n);m=m?n.slice(0,m.index):n;var u=[];if(m){if(!l.plainObjects&&qa.call(Object.prototype,m)&&!l.allowPrototypes){f=void 0;break a}u.push(m)}for(var p=0;null!==(m=t.exec(n))&&p<l.depth;){p+=1;if(!l.plainObjects&&qa.call(Object.prototype,m[1].slice(1,-1))&&!l.allowPrototypes){f=void 0;break a}u.push(m[1])}m&&u.push("["+n.slice(m.index)+"]");n=u;for(t=n.length-1;0<=t;--t){m=n[t];if("[]"===m)u=[],u=u.concat(f);else{u=l.plainObjects?Object.create(null):{};p="["===m.charAt(0)&&"]"=== | ||
m.charAt(m.length-1)?m.slice(1,-1):m;var k=parseInt(p,10);!isNaN(k)&&m!==p&&String(k)===p&&0<=k&&l.parseArrays&&k<=l.arrayLimit?(u=[],u[k]=f):u[p]=f}f=u}}else f=void 0}a=K.merge(a,f,b)}return K.compact(a)},stringify:function(a,b){b=b?K.assign({},b):{};if(null!==b.encoder&&void 0!==b.encoder&&"function"!==typeof b.encoder)throw new TypeError("Encoder has to be a function.");var c="undefined"===typeof b.delimiter?"&":b.delimiter,e="boolean"===typeof b.strictNullHandling?b.strictNullHandling:!1,d="boolean"=== | ||
typeof b.skipNulls?b.skipNulls:!1,f="boolean"===typeof b.encode?b.encode:!0,l="function"===typeof b.encoder?b.encoder:ca,n="function"===typeof b.sort?b.sort:null,k="undefined"===typeof b.allowDots?!1:b.allowDots,m="function"===typeof b.serializeDate?b.serializeDate:xb,u="boolean"===typeof b.encodeValuesOnly?b.encodeValuesOnly:!1;if("undefined"===typeof b.format)b.format=ba["default"];else if(!Object.prototype.hasOwnProperty.call(ba.formatters,b.format))throw new TypeError("Unknown format option provided."); | ||
var p=ba.formatters[b.format];if("function"===typeof b.filter){var x=b.filter;a=x("",a)}else if(Array.isArray(b.filter))var q=x=b.filter;var z=[];if("object"!==typeof a||null===a)return"";var A=La[b.arrayFormat in La?b.arrayFormat:"indices"in b?b.indices?"indices":"repeat":"indices"];q||(q=Object.keys(a));n&&q.sort(n);for(var C=0;C<q.length;++C){var D=q[C];d&&null===a[D]||(z=z.concat(yb(a[D],D,A,e,d,f?l:null,x,n,k,m,p,u)))}q=z.join(c);x=!0===b.addQueryPrefix?"?":"";return 0<q.length?x+q:""}},Ma=function(a){a= | ||
a&&Object.keys(a)?zb.stringify(a):"";return a?"?"+a:""},Ab=function(a,b,c){var e="string"!==typeof a?a():a;b&&Object.keys(b).forEach(function(a){e=e.replace("::"+a,b[a]).replace(":"+a,b[a])});a=c?Ma(JSON.parse(Ja(c))):"";return""+e+a},Bb=function(a){a=("string"!==typeof a?a():a).split("/").reverse();var b=a.findIndex(function(a){return a.startsWith("::")});return-1!==b?a.length-1-b:-1},Cb=function(a,b){if(!a||!b&&0!==b||-1===b)return null;for(var c=0,e=0;e<b;e+=1)c=a.indexOf("/",c+1);b=a.indexOf("/", | ||
c+1);return a.substr(c+1,-1!==b?b-c-1:a.length)},w=function(a){return a&&a.restEasy?a.restEasy:(console.error('\n There doesn\'t seem to be a "restEasy" key in your state.\n\n For more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/reducer.md#reducer\n '),null)},ra=function(a){return"never"!==a&&(!a||new Date>new Date(a))},Db=function(a,b,c){if(!("GET"===b&&a&&c&&a.requests&&a.requests[c]))return!0;a=a.requests[c];b=a.didInvalidate; | ||
c=a.expireAt;return!a.hasSucceeded||b||ra(c)},ea=function(a){return"number"===typeof a?a.toString():a},fa=function(a,b){return ea(a)===ea(b)},sa=function(a,b){return a?a.map(ea).includes(ea(b)):!1},Eb=function(a,b,c,e){return"GET"===b&&a&&a.requests&&c&&null!==e?Object.values(a.requests).some(function(a){var b=a.didInvalidate,d=a.expireAt,n=a.resourceName,k=a.resourceId,m=a.payloadIds;return a.hasSucceeded&&!b&&(c===n&&fa(e,k)||m&&m[c]&&sa(m[c],e))&&!ra(d)}):!1},ha=function(a){if(a&&"function"=== | ||
typeof a){for(var b=arguments.length,c=Array(1<b?b-1:0),e=1;e<b;e++)c[e-1]=arguments[e];return a.apply(void 0,c)}},ta={getToken:function(){return"token"},requestGET:function(){var a=N(regeneratorRuntime.mark(function c(){var a;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:c.t0=this.getToken;if(!c.t0){c.next=5;break}c.next=4;return this.getToken();case 4:c.t0=c.sent;case 5:return a=c.t0,c.abrupt("return",{method:"GET",headers:k({Accept:"application/json"},a?{Authorization:"Bearer "+ | ||
a}:{})});case 7:case "end":return c.stop()}},c,this)}));return function(){return a.apply(this,arguments)}}(),requestPATCH:function(){var a=N(regeneratorRuntime.mark(function e(a){var c;return regeneratorRuntime.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:d.t0=this.getToken;if(!d.t0){d.next=5;break}d.next=4;return this.getToken();case 4:d.t0=d.sent;case 5:return c=d.t0,d.abrupt("return",{method:"PATCH",headers:k({Accept:"application/json","Content-Type":"application/json"},c?{Authorization:"Bearer "+ | ||
@@ -48,50 +52,55 @@ c}:{}),body:JSON.stringify(a)});case 7:case "end":return d.stop()}},e,this)}));return function(c){return a.apply(this,arguments)}}(),requestPUT:function(){var a=N(regeneratorRuntime.mark(function e(a){var c;return regeneratorRuntime.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:d.t0=this.getToken;if(!d.t0){d.next=5;break}d.next=4;return this.getToken();case 4:d.t0=d.sent;case 5:return c=d.t0,d.abrupt("return",{method:"PUT",headers:k({Accept:"application/json","Content-Type":"application/json"}, | ||
this.getToken&&this.getToken()?{Authorization:"Bearer "+a}:{})});case 7:case "end":return c.stop()}},c,this)}));return function(){return a.apply(this,arguments)}}(),handleStatusCode:function(a){if(a){if(200<=a.status&&300>a.status)return a;var b=Error(a.statusText);b.response=a;throw b;}return null},handleError:function(){var a=N(regeneratorRuntime.mark(function d(a,e){var c;return regeneratorRuntime.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:d.prev=0;if(!a||!a.response){d.next=8;break}d.next= | ||
4;return a.response.json();case 4:c=d.sent;console.error(c);d.next=9;break;case 8:console.error(a);case 9:d.next=14;break;case 11:d.prev=11,d.t0=d["catch"](0),console.error(d.t0);case 14:case "end":return d.stop()}},d,this,[[0,11]])}));return function(c,e){return a.apply(this,arguments)}}()},Ea=qa,ub=function(a,b,c,e,d,f,m,p){return function(a,l,t){return function(n){void 0===n&&(n={});var u=n.query,q=void 0===u?{}:u;u=n.body;var z=void 0===u?{}:u;u=n.urlParams;var A=void 0===u?{}:u,C=n.onSuccess, | ||
D=n.onError,J=Sa(n,["query","body","urlParams","onSuccess","onError"]);return function(){var n=N(regeneratorRuntime.mark(function L(n,u){var v,ka,w,B,y,F,E,H,G,K;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return v=k({},Ea,p||{}),n(b.REQUEST(l,t)),r.prev=2,r.next=5,ca(e,A,q,z,J,n);case 5:return w=(ka=r.sent)||z,r.t0=fetch,r.t1=a,r.next=11,v["request"+c](w);case 11:return r.t2=r.sent,r.next=14,(0,r.t0)(r.t1,r.t2);case 14:B=r.sent;v.handleStatusCode(B);if(204===B.status){r.next= | ||
22;break}r.next=19;return B.json();case 19:r.t3=r.sent;r.next=23;break;case 22:r.t3={};case 23:return y=r.t3,F=d?d(y,x(u()).resources,A,q,w,J):{entities:y},E=F.entities,H=F.result,G=f?f(y,x(u()).resources,A,q,w,J):null,K=Array.isArray(H)?H:[H],n(b.RECEIVE(l,t,E,G,K)),r.next=30,ca(m,E||{},A,q,w,J,n);case 30:return ca(C,E||{},J),r.abrupt("return",{normalizedPayload:E||{},otherArgs:J});case 34:return r.prev=34,r.t4=r["catch"](2),n(b.FAIL(l,t)),v.handleError(r.t4,n),ca(D,r.t4),r.abrupt("return",{error:r.t4}); | ||
case 40:case "end":return r.stop()}},L,this,[[2,34]])}));return function(a,b){return n.apply(this,arguments)}}()}}},vb=function(a,b,c,e){var d=c[e],f=d.method,m=d.url,p=d.cacheHint;c=d.beforeHook;var k=d.normalizer,l=d.metadataNormalizer,t=d.afterHook;d=d.networkHelpers;var n=ib(a,e,b),w=ub(e,n,f,c,k,l,t,d);return function(b){return function(c,d){d=x(d());var q=b||{},z=q.urlParams,l=q.query,A=q.body,k=q.otherArgs;q=qb(m);var t=pb(m,z,l);z=p?p(z,l,A,k):null;var u=""+(e||"")+(t?":"+t:"")+(z?":"+Da(z): | ||
""),L=rb(u,q),r;d&&u&&d.requests&&d.requests[u]&&!d.requests[u].endedAt||sb(d,f,u)&&(r=tb(d,f,a,L)?function(){var b,d;return c(n.RECEIVE_FROM_CACHE(u,L,(d={},d[a]=(b={},b[L]=null,b),d),null,[L]))}:function(){return c(w(t,u,L)(b))});r=r?r():{};r.__actionName=e;r.__requestURL=u;return r}}},wb=function(a,b){return function(c){return{type:a,url:c,resourceName:b}}},da=function(a){return"object"===typeof a&&null!==a&&!Array.isArray(a)},Fa=function(a){return function(b){throw Error("redux-rest-easy: "+a+ | ||
" "+b);}},O=function(a){return"function"===typeof a},Ga=["method","url"],xb=Ga.concat("cacheHint beforeHook normalizer metadataNormalizer afterHook networkHelpers".split(" ")),Ha=["GET","POST","PATCH","PUT","DELETE"],S=function(a,b){return a+' "'+b+'" is invalid. Expected a valid function.\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig'},yb=function(a,b){b&&(da(b)&&Object.keys(b).length|| | ||
Fa(a+" > createResource >")("You have to provide a valid actions configuration.\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource.md#createresourceresourcename-optionsactions"),Object.keys(b).forEach(function(c){var e=Fa(a+" > "+(c+" >")+" createResource >");c=b[c];var d=Object.keys(c);Ga.forEach(function(a){d.includes(a)||e('Key "'+a+'" is missing.\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig')}); | ||
d.forEach(function(a){xb.includes(a)||e('Unknown key "'+a+'".\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig')});var f=c.method,m=c.url,p=c.cacheHint,k=c.beforeHook,l=c.normalizer,t=c.metadataNormalizer,n=c.afterHook,w=c.networkHelpers;"string"===typeof f&&Ha.includes(f)||e('Method "'+f+'" is invalid. Expected one of: '+Ha.join(", ")+".\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig"); | ||
m&&("string"===typeof m||O(m))||e('URL "'+m+'" is invalid. Expected a string or a function returning a string.\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig');void 0===p||O(p)||e(S("cacheHint",p));void 0===k||O(k)||e(S("beforeHook",k));void 0===l||O(l)||e(S("normalizer",l));void 0===t||O(t)||e(S("metadataNormalizer",t));void 0===n||O(n)||e(S("afterHook",n));void 0===w||da(w)|| | ||
e('networkHelpers "'+w+'" is invalid. Expected a valid object.\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig');Object.keys(w||{}).forEach(function(a){void 0===w[a]||O(w[a])||e(a+' "networkHelpers.'+w[a]+'" is invalid. Expected a valid function.\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig')})}))}, | ||
zb=function(a){return function(b){throw Error("redux-rest-easy: "+a+" "+b);}},Ab=["cacheLifetime","denormalizer"],Bb=function(a,b){var c=zb((a||"[no resource name]")+" > createResource >");a&&"string"===typeof a||c("You have to provide a valid resource name.");b&&(da(b)&&Object.keys(b).length||c("You have to provide a valid resource configuration (or not at all)."),Object.keys(b).forEach(function(a){Ab.includes(a)||c('Unknown key "'+a+'" in resource config.')}),a=b.cacheLifetime,b=b.denormalizer, | ||
void 0!==a&&("number"!==typeof a||0>a)&&c('cacheLifetime "'+a+'" in resource config is invalid. Expected a number between 0 and Infinity.'),void 0!==b&&"function"!==typeof b&&c('denormalizer "'+b+'" in resource config is invalid. Expected a valid function.'))},cb=ya(xa),bb=function(){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this._cache={}}a.prototype.set=function(a,c){this._cache[a]=c};a.prototype.get=function(a){return this._cache[a]};a.prototype.remove= | ||
function(a){delete this._cache[a]};a.prototype.clear=function(){this._cache={}};a.prototype.isValidCacheKey=function(a){return"string"===typeof a||"number"===typeof a};return a}(),db=function(){return!0},P=function(a,b,c){return c?c.__requestURLsByActionKey?c.__requestURLsByActionKey[b]:(console.error("You may have forgotten to use redux-rest-easy's connect on a Component which requested "+a+"."+b+"\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/connect.md#connectconnectargs"), | ||
""):(console.error("You may have forgotten to pass ownProps to a selector related to "+a+"."+b+"\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/selectors.md#actionrequest"),"")},Ia={selectorCreator:ya(function(a){var b=null;return function(){b||(b=a.apply(void 0,arguments));return b}})},ra=function(a,b,c){return b?Object.keys(b).reduce(function(e,d){var f;return k({},e,(f={},f[d]=d===a?c:Object.keys(b[d]||{}), | ||
f))},{}):{}},Cb=ha(function(a,b){(function(c,e){function d(a,b){return(a&65535)*b+(((a>>>16)*b&65535)<<16)}function f(a,b){return a<<b|a>>>32-b}function m(a){a=d(a^a>>>16,2246822507);a=d(a^a>>>13,3266489909);return a^a>>>16}function k(a,b){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];b=[b[0]>>>16,b[0]&65535,b[1]>>>16,b[1]&65535];var c=[0,0,0,0];c[3]+=a[3]+b[3];c[2]+=c[3]>>>16;c[3]&=65535;c[2]+=a[2]+b[2];c[1]+=c[2]>>>16;c[2]&=65535;c[1]+=a[1]+b[1];c[0]+=c[1]>>>16;c[1]&=65535;c[0]+=a[0]+b[0];c[0]&= | ||
65535;return[c[0]<<16|c[1],c[2]<<16|c[3]]}function u(a,b){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];b=[b[0]>>>16,b[0]&65535,b[1]>>>16,b[1]&65535];var c=[0,0,0,0];c[3]+=a[3]*b[3];c[2]+=c[3]>>>16;c[3]&=65535;c[2]+=a[2]*b[3];c[1]+=c[2]>>>16;c[2]&=65535;c[2]+=a[3]*b[2];c[1]+=c[2]>>>16;c[2]&=65535;c[1]+=a[1]*b[3];c[0]+=c[1]>>>16;c[1]&=65535;c[1]+=a[2]*b[2];c[0]+=c[1]>>>16;c[1]&=65535;c[1]+=a[3]*b[1];c[0]+=c[1]>>>16;c[1]&=65535;c[0]+=a[0]*b[3]+a[1]*b[2]+a[2]*b[1]+a[3]*b[0];c[0]&=65535;return[c[0]<< | ||
16|c[1],c[2]<<16|c[3]]}function l(a,b){b%=64;if(32===b)return[a[1],a[0]];if(32>b)return[a[0]<<b|a[1]>>>32-b,a[1]<<b|a[0]>>>32-b];b-=32;return[a[1]<<b|a[0]>>>32-b,a[0]<<b|a[1]>>>32-b]}function t(a,b){b%=64;return 0===b?a:32>b?[a[0]<<b|a[1]>>>32-b,a[1]<<b]:[a[1]<<b-32,0]}function n(a,b){return[a[0]^b[0],a[1]^b[1]]}function w(a){a=n(a,[0,a[0]>>>1]);a=u(a,[4283543511,3981806797]);a=n(a,[0,a[0]>>>1]);a=u(a,[3301882366,444984403]);return a=n(a,[0,a[0]>>>1])}c={version:"2.1.2",x86:{},x64:{}};c.x86.hash32= | ||
function(a,b){a=a||"";var c=a.length%4,e=a.length-c;b=b||0;for(var q,l=0;l<e;l+=4)q=a.charCodeAt(l)&255|(a.charCodeAt(l+1)&255)<<8|(a.charCodeAt(l+2)&255)<<16|(a.charCodeAt(l+3)&255)<<24,q=d(q,3432918353),q=f(q,15),q=d(q,461845907),b^=q,b=f(b,13),b=d(b,5)+3864292196;q=0;switch(c){case 3:q^=(a.charCodeAt(l+2)&255)<<16;case 2:q^=(a.charCodeAt(l+1)&255)<<8;case 1:q^=a.charCodeAt(l)&255,q=d(q,3432918353),q=f(q,15),q=d(q,461845907),b^=q}b^=a.length;b=m(b);return b>>>0};c.x86.hash128=function(a,b){a=a|| | ||
"";b=b||0;for(var c=a.length%16,e=a.length-c,l=b,q=b,n=b,k,t,p,u,r=0;r<e;r+=16)k=a.charCodeAt(r)&255|(a.charCodeAt(r+1)&255)<<8|(a.charCodeAt(r+2)&255)<<16|(a.charCodeAt(r+3)&255)<<24,t=a.charCodeAt(r+4)&255|(a.charCodeAt(r+5)&255)<<8|(a.charCodeAt(r+6)&255)<<16|(a.charCodeAt(r+7)&255)<<24,p=a.charCodeAt(r+8)&255|(a.charCodeAt(r+9)&255)<<8|(a.charCodeAt(r+10)&255)<<16|(a.charCodeAt(r+11)&255)<<24,u=a.charCodeAt(r+12)&255|(a.charCodeAt(r+13)&255)<<8|(a.charCodeAt(r+14)&255)<<16|(a.charCodeAt(r+15)& | ||
255)<<24,k=d(k,597399067),k=f(k,15),k=d(k,2869860233),l^=k,l=f(l,19),l+=q,l=d(l,5)+1444728091,t=d(t,2869860233),t=f(t,16),t=d(t,951274213),q^=t,q=f(q,17),q+=n,q=d(q,5)+197830471,p=d(p,951274213),p=f(p,17),p=d(p,2716044179),n^=p,n=f(n,15),n+=b,n=d(n,5)+2530024501,u=d(u,2716044179),u=f(u,18),u=d(u,597399067),b^=u,b=f(b,13),b+=l,b=d(b,5)+850148119;u=p=t=k=0;switch(c){case 15:u^=a.charCodeAt(r+14)<<16;case 14:u^=a.charCodeAt(r+13)<<8;case 13:u^=a.charCodeAt(r+12),u=d(u,2716044179),u=f(u,18),u=d(u,597399067), | ||
b^=u;case 12:p^=a.charCodeAt(r+11)<<24;case 11:p^=a.charCodeAt(r+10)<<16;case 10:p^=a.charCodeAt(r+9)<<8;case 9:p^=a.charCodeAt(r+8),p=d(p,951274213),p=f(p,17),p=d(p,2716044179),n^=p;case 8:t^=a.charCodeAt(r+7)<<24;case 7:t^=a.charCodeAt(r+6)<<16;case 6:t^=a.charCodeAt(r+5)<<8;case 5:t^=a.charCodeAt(r+4),t=d(t,2869860233),t=f(t,16),t=d(t,951274213),q^=t;case 4:k^=a.charCodeAt(r+3)<<24;case 3:k^=a.charCodeAt(r+2)<<16;case 2:k^=a.charCodeAt(r+1)<<8;case 1:k^=a.charCodeAt(r),k=d(k,597399067),k=f(k,15), | ||
k=d(k,2869860233),l^=k}l^=a.length;q^=a.length;n^=a.length;b^=a.length;l=l+q+n+b;q+=l;n+=l;b+=l;l=m(l);q=m(q);n=m(n);b=m(b);l=l+q+n+b;q+=l;n+=l;b+=l;return("00000000"+(l>>>0).toString(16)).slice(-8)+("00000000"+(q>>>0).toString(16)).slice(-8)+("00000000"+(n>>>0).toString(16)).slice(-8)+("00000000"+(b>>>0).toString(16)).slice(-8)};c.x64.hash128=function(a,b){a=a||"";b=b||0;var c=a.length%16,d=a.length-c,f=[0,b];b=[0,b];for(var e,m,p=[2277735313,289559509],q=[1291169091,658871167],v=0;v<d;v+=16)e=[a.charCodeAt(v+ | ||
4)&255|(a.charCodeAt(v+5)&255)<<8|(a.charCodeAt(v+6)&255)<<16|(a.charCodeAt(v+7)&255)<<24,a.charCodeAt(v)&255|(a.charCodeAt(v+1)&255)<<8|(a.charCodeAt(v+2)&255)<<16|(a.charCodeAt(v+3)&255)<<24],m=[a.charCodeAt(v+12)&255|(a.charCodeAt(v+13)&255)<<8|(a.charCodeAt(v+14)&255)<<16|(a.charCodeAt(v+15)&255)<<24,a.charCodeAt(v+8)&255|(a.charCodeAt(v+9)&255)<<8|(a.charCodeAt(v+10)&255)<<16|(a.charCodeAt(v+11)&255)<<24],e=u(e,p),e=l(e,31),e=u(e,q),f=n(f,e),f=l(f,27),f=k(f,b),f=k(u(f,[0,5]),[0,1390208809]), | ||
m=u(m,q),m=l(m,33),m=u(m,p),b=n(b,m),b=l(b,31),b=k(b,f),b=k(u(b,[0,5]),[0,944331445]);e=[0,0];m=[0,0];switch(c){case 15:m=n(m,t([0,a.charCodeAt(v+14)],48));case 14:m=n(m,t([0,a.charCodeAt(v+13)],40));case 13:m=n(m,t([0,a.charCodeAt(v+12)],32));case 12:m=n(m,t([0,a.charCodeAt(v+11)],24));case 11:m=n(m,t([0,a.charCodeAt(v+10)],16));case 10:m=n(m,t([0,a.charCodeAt(v+9)],8));case 9:m=n(m,[0,a.charCodeAt(v+8)]),m=u(m,q),m=l(m,33),m=u(m,p),b=n(b,m);case 8:e=n(e,t([0,a.charCodeAt(v+7)],56));case 7:e=n(e, | ||
t([0,a.charCodeAt(v+6)],48));case 6:e=n(e,t([0,a.charCodeAt(v+5)],40));case 5:e=n(e,t([0,a.charCodeAt(v+4)],32));case 4:e=n(e,t([0,a.charCodeAt(v+3)],24));case 3:e=n(e,t([0,a.charCodeAt(v+2)],16));case 2:e=n(e,t([0,a.charCodeAt(v+1)],8));case 1:e=n(e,[0,a.charCodeAt(v)]),e=u(e,p),e=l(e,31),e=u(e,q),f=n(f,e)}f=n(f,[0,a.length]);b=n(b,[0,a.length]);f=k(f,b);b=k(b,f);f=w(f);b=w(b);f=k(f,b);b=k(b,f);return("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)+("00000000"+ | ||
(b[0]>>>0).toString(16)).slice(-8)+("00000000"+(b[1]>>>0).toString(16)).slice(-8)};a.exports&&(b=a.exports=c);b.murmurHash3=c})(eb)}),Db=ha(function(a){a.exports={v3:Cb};Qa.main===a&&console.log(a.exports.v3)}).v3,ea=function(a){return Db.x64.hash128(Aa(a||null))},M=ea([]),Ja=function(a,b,c,e,d){var f,m,p=a.requests,u=void 0===p?{}:p;p=a.resources;var l=void 0===p?{}:p;a=a.resolversHashes;a=void 0===a?{}:a;e=ra(b,e,d);return k({},a,{requests:k({},a.requests||{},(f={},f[c]=Object.keys(e).reduce(function(a, | ||
b){var d;return k({},a,(d={},d[b]=u[c]&&u[c].payloadIds&&u[c].payloadIds[b]?ea(u[c].payloadIds[b]):M,d))},{}),f)),resources:k({},a.resources||{},(m={_getResourcesHash:function(){return ea(l)}},m[b]=l[b]?ea(l[b]):M,m))})},Eb=function(a,b){var c,e=a.requests,d=void 0===e?{}:e;a=a.resolversHashes;a=void 0===a?{}:a;return k({},a,{requests:k({},Object.entries(a.requests||{}).reduce(function(a,b){var c,e=b[0];b=b[1];return k({},a,Object.keys(d).includes(e)?(c={},c[e]=b,c):{})},{})),resources:k({},a.resources|| | ||
{},(c={},c[b]=M,c))})},Ka=function(a,b,c){a=(void 0===a?{}:a).resolversHashes;a=void 0===a?{}:a;return a.requests&&a.requests[b]&&a.requests[b][c]?a.requests[b][c]:M},sa=function(a,b){a=(void 0===a?{}:a).resolversHashes;a=void 0===a?{}:a;return a.resources&&a.resources[b]?a.resources[b]:M},Fb=[],fa=function(a,b,c,e){void 0===e&&(e=-1);return!!a.requests&&Object.entries(a.requests).some(function(a){var d=a[1],m=d.resourceName,k=d.resourceId;d=d.endedAt;return a[0].split(":")[0]===c&&m===b&&(-1===e|| | ||
null!==k&&ba(k,e))&&!d})},Q=function(a,b,c,e,d){void 0===d&&(d=-1);return(a=a.requests&&Object.entries(a.requests).filter(function(a){var e=a[1],f=e.resourceName,k=e.resourceId,l=e.endedAt;e=e.payloadIds;return a[0].split(":")[0]===c&&f===b&&(-1===d||null!==k&&ba(k,d)||!!l&&e&&e[b]&&pa(e[b],d))}).map(function(a){return a[1]}))&&a.length?a.reduce(function(a,b){return b.endedAt?a.endedAt&&b.endedAt>a.endedAt?b:a:a},a[0])[e]:!1},La=function(a,b){return a.resources&&a.resources[b]?a.resources[b]:null}, | ||
Ma=function(a,b,c){return a.requests&&a.requests[c]&&a.requests[c].payloadIds&&a.requests[c].payloadIds[b]?a.requests[c].payloadIds[b]:null},Gb=za(function(a){return a.resources},La,Ma,function(a,b,c,e){return e},function(a,b,c,e,d){return d},function(a,b,c,e,d){return b&&c?e&&d?d(c,a):c.reduce(function(a,c){return a.concat([b[c]])},[]):Fb})(function(a,b,c,e,d){var f=La(a,b),k=Ma(a,b,c);return f&&k?e&&d?!(!e||!d)+"-"+Object.keys(a.requests[c].payloadIds).map(function(b){return Ka(a,c,b)+"-"+sa(a, | ||
b)}).join("--"):!(!e||!d)+"-"+Ka(a,c,b)+"-"+sa(a,b):M},Ia),Na=function(a,b){return!(!a.requests||!a.requests[b]||a.requests[b].endedAt)},ta=function(a,b,c){return!!(a.requests&&a.requests[b]&&a.requests[b][c])},Hb=function(a,b,c){var e;return e={},e[b]={resource:{couldPerform:function(c){return!fa(x(c),a,b)},isPerforming:function(c){return fa(x(c),a,b)},hasSucceeded:function(c){return Q(x(c),a,b,"hasSucceeded")},hasFailed:function(c){return Q(x(c),a,b,"hasFailed")},isValid:function(c){return!Q(x(c), | ||
a,b,"didInvalidate")},couldPerformOnId:function(c,e){return!fa(x(c),a,b,e)},isPerformingOnId:function(c,e){return fa(x(c),a,b,e)},hasSucceededOnId:function(c,e){return Q(x(c),a,b,"hasSucceeded",e)},hasFailedOnId:function(c,e){return Q(x(c),a,b,"hasFailed",e)},isValidId:function(c,e){return!Q(x(c),a,b,"didInvalidate",e)}},request:{getResource:function(d,e,k){void 0===k&&(k=!0);return Gb(x(d),a,P(a,b,e),k,c)},getMetadata:function(c,e){c=x(c);e=P(a,b,e);return c.requests&&c.requests[e]&&c.requests[e].metadata? | ||
c.requests[e].metadata:{}},couldPerform:function(c,e){return!Na(x(c),P(a,b,e))},isPerforming:function(c,e){return Na(x(c),P(a,b,e))},hasSucceeded:function(c,e){return ta(x(c),P(a,b,e),"hasSucceeded")},hasFailed:function(c,e){return ta(x(c),P(a,b,e),"hasFailed")},isValid:function(c,e){return!ta(x(c),P(a,b,e),"didInvalidate")}}},e},Ib=[],Oa=function(a,b){return a.resources&&a.resources[b]?a.resources[b]:null},Jb=za(function(a){return a.resources},Oa,function(a,b,c){return c},function(a,b,c,e){return e}, | ||
function(a,b,c,e){return b?c&&e?e(Object.keys(b),a):Object.values(b):Ib})(function(a,b,c,e){return Oa(a,b)?(c&&e?(a=(void 0===a?{}:a).resolversHashes,a=void 0===a?{}:a,a=a.resources&&a.resources._getResourcesHash?a.resources._getResourcesHash():M,c=!(!c||!e)+"-"+a):c=!(!c||!e)+"-"+sa(a,b),c):M},Ia),Kb=function(a,b,c,e,d){var f=a.resources&&a.resources[b]&&a.resources[b][c]?a.resources[b][c]:null;if(!e||!d||!f)return f;a=Object.entries(a.resources).reduce(function(a,d){var e,l,m=d[0];d=d[1];return k({}, | ||
a,(l={},l[m]=m===b?(e={},e[c]=f,e):d,l))},{});return d([c],a)[0]||null},Lb=function(a,b){return{resource:{getResource:function(c,e){void 0===e&&(e=!0);return Jb(x(c),a,e,b)},getResourceById:function(c,e,d){void 0===d&&(d=!0);return Kb(x(c),a,e,d,b)}}}},T=function(a){a=a.split("/");return{resourceName:a[1],actionName:a[2],caseName:a[3]}},Mb=function(a,b){var c=a&&a.resources?a.resources:{};return b&&da(b)?Object.entries(b).reduce(function(a,b){var d,e=b[0];b=b[1];return k({},a,(d={},d[e]=k({},c[e]|| | ||
{},b),d))},c):c},Nb={},Ob={REQUEST:function(a,b){var c,e=b.type,d=b.url;b=b.resourceId;return k({},a,{requests:k({},a.requests||{},(c={},c[d]=k({},a.requests&&a.requests[d]?a.requests[d]:{},{resourceName:T(e).resourceName,resourceId:b,startedAt:(new Date).toISOString(),endedAt:null,expireAt:null,hasSucceeded:a.requests&&a.requests[d]?!!a.requests[d].hasSucceeded:!1,hasFailed:a.requests&&a.requests[d]?!!a.requests[d].hasFailed:!1,didInvalidate:a.requests&&a.requests[d]?!!a.requests[d].didInvalidate: | ||
!1,fromCache:a.requests&&a.requests[d]?!!a.requests[d].fromCache:!1}),c))})},RECEIVE:function(a,b){var c,e=b.url,d=b.payload,f=b.principalResourceIds,m=b.metadata,p=b.cacheLifetime;p=void 0===p?0:p;b=T(b.type).resourceName;a=k({},a,{requests:k({},a.requests||{},(c={},c[e]=k({},a.requests&&a.requests[e]?a.requests[e]:{},{endedAt:(new Date).toISOString(),expireAt:Infinity!==p?(new Date((new Date).getTime()+1E3*p)).toISOString():"never",hasSucceeded:!0,hasFailed:!1,didInvalidate:!1,fromCache:!1,payloadIds:ra(b, | ||
d,f),metadata:m}),c)),resources:Mb(a,d)});return k({},a,{resolversHashes:Ja(a,b,e,d,f)})},FAIL:function(a,b){var c;b=b.url;return k({},a,{requests:k({},a.requests||{},(c={},c[b]=k({},a.requests&&a.requests[b]?a.requests[b]:{},{endedAt:(new Date).toISOString(),hasSucceeded:!1,hasFailed:!0}),c))})},RECEIVE_FROM_CACHE:function(a,b){var c,e=b.type,d=b.url,f=b.resourceId,m=b.payload,p=b.principalResourceIds,u=b.metadata;b=b.cacheLifetime;var l=void 0===b?0:b;b=T(e).resourceName;a=k({},a,{requests:k({}, | ||
a.requests||{},(c={},c[d]=k({},a.requests&&a.requests[d]?a.requests[d]:{},{resourceName:T(e).resourceName,resourceId:f,startedAt:(new Date).toISOString(),endedAt:(new Date).toISOString(),expireAt:Infinity!==l?(new Date((new Date).getTime()+1E3*l)).toISOString():"never",hasSucceeded:!0,hasFailed:!1,didInvalidate:!1,fromCache:!0,payloadIds:ra(b,m,p),metadata:u}),c))});return k({},a,{resolversHashes:Ja(a,b,d,m,p)})},INVALIDATE_RESOURCE:function(a,b){var c=b.resourceName;return k({},a,{requests:k({}, | ||
Object.entries(a.requests||{}).reduce(function(a,b){var d,e=b[0];b=b[1];return k({},a,(d={},d[e]=!b.didInvalidate&&(b.resourceName===c||b.payloadIds&&b.payloadIds[c])?k({},b,{didInvalidate:!0}):b,d))},{}))})},INVALIDATE_ID:function(a,b){var c=b.resourceName,e=b.resourceId;return k({},a,{requests:k({},Object.entries(a.requests||{}).reduce(function(a,b){var d,f=b[0];b=b[1];return k({},a,(d={},d[f]=!b.didInvalidate&&(b.resourceName===c&&ba(b.resourceId,e)||b.payloadIds&&b.payloadIds[c]&&pa(b.payloadIds[c], | ||
e))?k({},b,{didInvalidate:!0}):b,d))},{}))})},INVALIDATE_REQUEST:function(a,b){var c;b=b.url;return k({},a,{requests:k({},a.requests||{},(c={},c[b]=k({},a.requests&&a.requests[b]?a.requests[b]:{},{didInvalidate:!0}),c))})},RESET_RESOURCE:function(a,b){var c,e=b.resourceName;a=k({},a,{requests:k({},Object.entries(a.requests||{}).filter(function(a){a=a[1];var b=a.payloadIds;return e!==a.resourceName&&(!b||!Object.keys(b).includes(e))}).reduce(function(a,b){var c,d=b[0];b=b[1];return k({},a,(c={},c[d]= | ||
b,c))},{})),resources:k({},a.resources||{},(c={},c[e]=void 0,c))});return k({},a,{resolversHashes:Eb(a,e)})},RESET_ALL:function(){return{}}},Pb=function(a){void 0===a&&(a=Nb);return function(b,c){void 0===c&&(c={});if(void 0===b)return a;if(!c.type||!c.type.startsWith("@@rest-easy"))return b;var e=Ob[T(c.type).caseName];return e?e(b,c):b}}(),Qb=function(a){return function(){return{type:a}}},Rb=function(a,b){var c=void 0===b?{}:b;b=c.alwaysPersist;c=c.neverPersist;if(!a||!Object.keys(a).length)return{}; | ||
var e="string"===typeof b?[b]:b,d="string"===typeof c?[c]:c,f=Object.entries(a.requests||{}).reduce(function(a,b){var c,f,l=b[0];b=b[1];return k({},a,b&&b.endedAt&&e&&b.payloadIds&&Object.keys(b.payloadIds).some(function(a){return e.includes(a)})?(c={},c[l]=b,c):!b||!b.endedAt||b.didInvalidate||oa(b.expireAt)||d&&b.payloadIds&&Object.keys(b.payloadIds).some(function(a){return d.includes(a)})?{}:(f={},f[l]="never"===b.expireAt?k({},b,{didInvalidate:!0}):b,f))},{}),m=Object.values(f).reduce(function(a, | ||
b){return k({},a,Object.entries(b.payloadIds||{}).reduce(function(a,b){var c,d=b[0];b=b[1];return k({},a,(c={},c[d]=(a[d]||[]).concat(b.map(function(a){return a.toString()})),c))},{}))},{});b=Object.entries(a.resources||{}).reduce(function(a,b){var c,d=b[0];b=b[1];return k({},a,(c={},c[d]=Object.entries(b||{}).reduce(function(a,b){var c,e=b[0];b=b[1];return k({},a,m[d]&&m[d].includes(e)?(c={},c[e]=b,c):{})},{}),c))},{});var p=Object.entries(b).reduce(function(a,b){var c,d=b[0];b=b[1];return k({}, | ||
a,Object.keys(b).length?(c={},c[d]=b,c):{})},{});b=k({},a.resolversHashes||{},{requests:Object.entries(a.resolversHashes&&a.resolversHashes.requests?a.resolversHashes.requests:{}).reduce(function(a,b){var c,d=b[0];b=b[1];return k({},a,f[d]?(c={},c[d]=b,c):{})},{}),resources:Object.entries(a.resolversHashes&&a.resolversHashes.resources?a.resolversHashes.resources:{}).reduce(function(b,c){var d,e=c[0];c=c[1];return k({},b,p[e]&&Object.keys(a.resources[e]).length===Object.keys(p[e]).length?(d={},d[e]= | ||
c,d):{})},{})});return k({},a,{requests:f,resources:p,resolversHashes:b})};y.connect=function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];return function(a){var c=a.displayName||a.name||"Component",e=function(c){function d(d){var e=c.call(this,d)||this;ia(U(U(e)),"onInjectProps",function(a,b){e.setState(function(c){var d;return c.__requestURLsByActionKey[a]!==b?{__requestURLsByActionKey:k({},c.__requestURLsByActionKey,(d={},d[a]=b,d))}:null})});ia(U(U(e)),"getWrappedInstance", | ||
function(){return e.innerRef&&e.innerRef.getWrappedInstance?e.innerRef.getWrappedInstance():null});e.state={__requestURLsByActionKey:{}};e.ConnectedComponent=gb(e.onInjectProps).apply(void 0,b)(a);return e}d.prototype.render=function(){var a=this,b=this.ConnectedComponent,c=k({},this.props,this.state,{ref:function(b){a.innerRef=b}});return F.createElement(b,c)};Ra(d,c);return d}(F.Component);e.displayName="EasyConnect("+c+")";return ua(e,a)}};y.createResource=function(a,b){return function(c){Bb(a, | ||
b);yb(a,c);var e=b||{},d=e.cacheLifetime,f=void 0===d?0:d,m=e.denormalizer,p=k({},hb(a)),u=k({},Lb(a,m));Object.keys(c||{}).forEach(function(b){var d=p;var e=c||{};var l,q=H(a,"@invalidate","INVALIDATE_REQUEST");e=(l={},l[b]={perform:vb(a,f,e,b),invalidate:wb(q,a)},l);p=k({},d,e);u=k({},u,Hb(a,b,m))});return{actions:p,selectors:u}}};y.reducer=Pb;y.reset=function(){var a=H("@global","@reset","RESET_ALL");return Qb(a)()};y.initializeNetworkHelpers=function(a){Ea=a?k({},qa,a):qa};y.getPersistableState= | ||
function(a,b){return Rb(a,b)};Object.defineProperty(y,"__esModule",{value:!0})}); | ||
4;return a.response.json();case 4:c=d.sent;console.error(c);d.next=9;break;case 8:console.error(a);case 9:d.next=14;break;case 11:d.prev=11,d.t0=d["catch"](0),console.error(d.t0);case 14:case "end":return d.stop()}},d,this,[[0,11]])}));return function(c,e){return a.apply(this,arguments)}}()},Na=ta,Fb=function(a,b,c,e,d,f,l,n){return function(a,m,u){return function(p){p=void 0===p?{}:p;var t=p.query,q=void 0===t?{}:t;t=p.body;var z=void 0===t?{}:t;t=p.urlParams;var A=void 0===t?{}:t,C=p.onSuccess, | ||
D=p.onError,J=ab(p,["query","body","urlParams","onSuccess","onError"]);return function(){var p=N(regeneratorRuntime.mark(function L(p,t){var v,na,B,x,y,F,E,H,G,K;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return v=k({},Na,n||{}),p(b.REQUEST(m,u)),r.prev=2,r.next=5,ha(e,A,q,z,J,p);case 5:return B=(na=r.sent)||z,r.t0=fetch,r.t1=a,r.next=11,v["request"+c](B);case 11:return r.t2=r.sent,r.next=14,(0,r.t0)(r.t1,r.t2);case 14:x=r.sent;v.handleStatusCode(x);if(204===x.status){r.next= | ||
22;break}r.next=19;return x.json();case 19:r.t3=r.sent;r.next=23;break;case 22:r.t3={};case 23:return y=r.t3,F=d?d(y,w(t()).resources,A,q,B,J):{entities:y},E=F.entities,H=F.result,G=f?f(y,w(t()).resources,A,q,B,J):null,K=Array.isArray(H)?H:[H],p(b.RECEIVE(m,u,E,G,K)),r.next=30,ha(l,E||{},A,q,B,J,p);case 30:return ha(C,E||{},J),r.abrupt("return",{normalizedPayload:E||{},otherArgs:J});case 34:return r.prev=34,r.t4=r["catch"](2),p(b.FAIL(m,u)),v.handleError(r.t4,p),ha(D,r.t4),r.abrupt("return",{error:r.t4}); | ||
case 40:case "end":return r.stop()}},L,this,[[2,34]])}));return function(a,b){return p.apply(this,arguments)}}()}}},Gb=function(a,b,c,e){var d=c[e],f=d.method,l=d.url,n=d.cacheHint;c=d.beforeHook;var k=d.normalizer,m=d.metadataNormalizer,u=d.afterHook;d=d.networkHelpers;var p=tb(a,e,b),x=Fb(e,p,f,c,k,m,u,d);return function(b){return function(c,d){d=w(d());var q=b||{},z=q.urlParams,m=q.query,A=q.body,k=q.otherArgs;q=Bb(l);var u=Ab(l,z,m);z=n?n(z,m,A,k):null;var t=""+(e||"")+(u?":"+u:"")+(z?":"+Ma(z): | ||
""),L=Cb(t,q),r;d&&t&&d.requests&&d.requests[t]&&!d.requests[t].endedAt||Db(d,f,t)&&(r=Eb(d,f,a,L)?function(){var b,d;return c(p.RECEIVE_FROM_CACHE(t,L,(d={},d[a]=(b={},b[L]=null,b),d),null,[L]))}:function(){return c(x(u,t,L)(b))});r=r?r():{};r.__actionName=e;r.__requestURL=t;return r}}},Hb=function(a,b){return function(c){return{type:a,url:c,resourceName:b}}},ia=function(a){return"object"===typeof a&&null!==a&&!Array.isArray(a)},Oa=function(a){return function(b){throw Error("redux-rest-easy: "+a+ | ||
" "+b);}},O=function(a){return"function"===typeof a},Pa=["method","url"],Ib=Pa.concat("cacheHint beforeHook normalizer metadataNormalizer afterHook networkHelpers".split(" ")),Qa=["GET","POST","PATCH","PUT","DELETE"],U=function(a,b){return a+' "'+b+'" is invalid. Expected a valid function.\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig'},Jb=function(a,b){b&&(ia(b)&&Object.keys(b).length|| | ||
Oa(a+" > createResource >")("You have to provide a valid actions configuration.\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource.md#createresourceresourcename-optionsactions"),Object.keys(b).forEach(function(c){var e=Oa(a+" > "+(c+" >")+" createResource >");c=b[c];var d=Object.keys(c);Pa.forEach(function(a){d.includes(a)||e('Key "'+a+'" is missing.\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig')}); | ||
d.forEach(function(a){Ib.includes(a)||e('Unknown key "'+a+'".\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig')});var f=c.method,l=c.url,n=c.cacheHint,k=c.beforeHook,m=c.normalizer,u=c.metadataNormalizer,p=c.afterHook,x=c.networkHelpers;"string"===typeof f&&Qa.includes(f)||e('Method "'+f+'" is invalid. Expected one of: '+Qa.join(", ")+".\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig"); | ||
l&&("string"===typeof l||O(l))||e('URL "'+l+'" is invalid. Expected a string or a function returning a string.\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig');void 0===n||O(n)||e(U("cacheHint",n));void 0===k||O(k)||e(U("beforeHook",k));void 0===m||O(m)||e(U("normalizer",m));void 0===u||O(u)||e(U("metadataNormalizer",u));void 0===p||O(p)||e(U("afterHook",p));void 0===x||ia(x)|| | ||
e('networkHelpers "'+x+'" is invalid. Expected a valid object.\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig');Object.keys(x||{}).forEach(function(a){void 0===x[a]||O(x[a])||e(a+' "networkHelpers.'+x[a]+'" is invalid. Expected a valid function.\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/actionsConfig.md#actionsconfig')})}))}, | ||
Kb=function(a){return function(b){throw Error("redux-rest-easy: "+a+" "+b);}},Lb=["cacheLifetime","denormalizer"],Mb=function(a,b){var c=Kb((a||"[no resource name]")+" > createResource >");a&&"string"===typeof a||c("You have to provide a valid resource name.");b&&(ia(b)&&Object.keys(b).length||c("You have to provide a valid resource configuration (or not at all)."),Object.keys(b).forEach(function(a){Lb.includes(a)||c('Unknown key "'+a+'" in resource config.')}),a=b.cacheLifetime,b=b.denormalizer, | ||
void 0!==a&&("number"!==typeof a||0>a)&&c('cacheLifetime "'+a+'" in resource config is invalid. Expected a number between 0 and Infinity.'),void 0!==b&&"function"!==typeof b&&c('denormalizer "'+b+'" in resource config is invalid. Expected a valid function.'))},lb=Ga(Fa),R=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");},Nb=function(){function a(){R(this,a);this._cache={}}a.prototype.set=function(a,c){this._cache[a]=c};a.prototype.get=function(a){return this._cache[a]}; | ||
a.prototype.remove=function(a){delete this._cache[a]};a.prototype.clear=function(){this._cache={}};a.prototype.isValidCacheKey=function(a){return ma(a)};return a}();(function(){function a(){var b=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).cacheSize;R(this,a);X(b);this._cache={};this._cacheOrdering=[];this._cacheSize=b}a.prototype.set=function(a,c){this._cache[a]=c;this._cacheOrdering.push(a);this._cacheOrdering.length>this._cacheSize&&this.remove(this._cacheOrdering[0])};a.prototype.get= | ||
function(a){return this._cache[a]};a.prototype.remove=function(a){var b=this._cacheOrdering.indexOf(a);-1<b&&this._cacheOrdering.splice(b,1);delete this._cache[a]};a.prototype.clear=function(){this._cache={};this._cacheOrdering=[]};a.prototype.isValidCacheKey=function(a){return ma(a)};return a})();(function(){function a(){var b=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).cacheSize;R(this,a);X(b);this._cache={};this._cacheOrdering=[];this._cacheSize=b}a.prototype.set=function(a,c){this._cache[a]= | ||
c;this._registerCacheHit(a);this._cacheOrdering.length>this._cacheSize&&this.remove(this._cacheOrdering[0])};a.prototype.get=function(a){this._registerCacheHit(a);return this._cache[a]};a.prototype.remove=function(a){this._deleteCacheHit(a);delete this._cache[a]};a.prototype.clear=function(){this._cache={};this._cacheOrdering=[]};a.prototype._registerCacheHit=function(a){this._deleteCacheHit(a);this._cacheOrdering.push(a)};a.prototype._deleteCacheHit=function(a){a=this._cacheOrdering.indexOf(a);-1< | ||
a&&this._cacheOrdering.splice(a,1)};a.prototype.isValidCacheKey=function(a){return ma(a)};return a})();(function(){function a(){R(this,a);this._cache=new Map}a.prototype.set=function(a,c){this._cache.set(a,c)};a.prototype.get=function(a){return this._cache.get(a)};a.prototype.remove=function(a){this._cache.delete(a)};a.prototype.clear=function(){this._cache.clear()};return a})();(function(){function a(){var b=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).cacheSize;R(this,a);X(b);this._cache= | ||
new Map;this._cacheSize=b}a.prototype.set=function(a,c){this._cache.set(a,c);this._cache.size>this._cacheSize&&(a=this._cache.keys().next().value,this.remove(a))};a.prototype.get=function(a){return this._cache.get(a)};a.prototype.remove=function(a){this._cache.delete(a)};a.prototype.clear=function(){this._cache.clear()};return a})();(function(){function a(){var b=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).cacheSize;R(this,a);X(b);this._cache=new Map;this._cacheSize=b}a.prototype.set= | ||
function(a,c){this._cache.set(a,c);this._cache.size>this._cacheSize&&(a=this._cache.keys().next().value,this.remove(a))};a.prototype.get=function(a){var b=this._cache.get(a);this._cache.has(a)&&(this.remove(a),this._cache.set(a,b));return b};a.prototype.remove=function(a){this._cache.delete(a)};a.prototype.clear=function(){this._cache.clear()};return a})();var kb=Nb,mb=function(){return!0},P=function(a,b,c){return c?c.__requestURLsByActionKey?c.__requestURLsByActionKey[b]:(console.error("You may have forgotten to use redux-rest-easy's connect on a Component which requested "+ | ||
a+"."+b+"\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/connect.md#connectconnectargs"),""):(console.error("You may have forgotten to pass ownProps to a selector related to "+a+"."+b+"\n\nFor more information, browse the related documentation: https://github.com/Brigad/redux-rest-easy/blob/master/docs/api/createResource/selectors.md#actionrequest"),"")},Ra={selectorCreator:Ga(function(a){var b=null;return function(){b||(b= | ||
a.apply(void 0,arguments));return b}})},ua=function(a,b,c){return b?Object.keys(b).reduce(function(e,d){var f;return k({},e,(f={},f[d]=d===a?c:Object.keys(b[d]||{}),f))},{}):{}},Ob=Q(function(a,b){(function(c,e){function d(a,b){return(a&65535)*b+(((a>>>16)*b&65535)<<16)}function f(a,b){return a<<b|a>>>32-b}function l(a){a=d(a^a>>>16,2246822507);a=d(a^a>>>13,3266489909);return a^a>>>16}function n(a,b){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];b=[b[0]>>>16,b[0]&65535,b[1]>>>16,b[1]&65535];var c= | ||
[0,0,0,0];c[3]+=a[3]+b[3];c[2]+=c[3]>>>16;c[3]&=65535;c[2]+=a[2]+b[2];c[1]+=c[2]>>>16;c[2]&=65535;c[1]+=a[1]+b[1];c[0]+=c[1]>>>16;c[1]&=65535;c[0]+=a[0]+b[0];c[0]&=65535;return[c[0]<<16|c[1],c[2]<<16|c[3]]}function k(a,b){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];b=[b[0]>>>16,b[0]&65535,b[1]>>>16,b[1]&65535];var c=[0,0,0,0];c[3]+=a[3]*b[3];c[2]+=c[3]>>>16;c[3]&=65535;c[2]+=a[2]*b[3];c[1]+=c[2]>>>16;c[2]&=65535;c[2]+=a[3]*b[2];c[1]+=c[2]>>>16;c[2]&=65535;c[1]+=a[1]*b[3];c[0]+=c[1]>>>16;c[1]&=65535; | ||
c[1]+=a[2]*b[2];c[0]+=c[1]>>>16;c[1]&=65535;c[1]+=a[3]*b[1];c[0]+=c[1]>>>16;c[1]&=65535;c[0]+=a[0]*b[3]+a[1]*b[2]+a[2]*b[1]+a[3]*b[0];c[0]&=65535;return[c[0]<<16|c[1],c[2]<<16|c[3]]}function m(a,b){b%=64;if(32===b)return[a[1],a[0]];if(32>b)return[a[0]<<b|a[1]>>>32-b,a[1]<<b|a[0]>>>32-b];b-=32;return[a[1]<<b|a[0]>>>32-b,a[0]<<b|a[1]>>>32-b]}function u(a,b){b%=64;return 0===b?a:32>b?[a[0]<<b|a[1]>>>32-b,a[1]<<b]:[a[1]<<b-32,0]}function p(a,b){return[a[0]^b[0],a[1]^b[1]]}function x(a){a=p(a,[0,a[0]>>> | ||
1]);a=k(a,[4283543511,3981806797]);a=p(a,[0,a[0]>>>1]);a=k(a,[3301882366,444984403]);return a=p(a,[0,a[0]>>>1])}c={version:"2.1.2",x86:{},x64:{}};c.x86.hash32=function(a,b){a=a||"";var c=a.length%4,e=a.length-c;b=b||0;for(var q,m=0;m<e;m+=4)q=a.charCodeAt(m)&255|(a.charCodeAt(m+1)&255)<<8|(a.charCodeAt(m+2)&255)<<16|(a.charCodeAt(m+3)&255)<<24,q=d(q,3432918353),q=f(q,15),q=d(q,461845907),b^=q,b=f(b,13),b=d(b,5)+3864292196;q=0;switch(c){case 3:q^=(a.charCodeAt(m+2)&255)<<16;case 2:q^=(a.charCodeAt(m+ | ||
1)&255)<<8;case 1:q^=a.charCodeAt(m)&255,q=d(q,3432918353),q=f(q,15),q=d(q,461845907),b^=q}b^=a.length;b=l(b);return b>>>0};c.x86.hash128=function(a,b){a=a||"";b=b||0;for(var c=a.length%16,e=a.length-c,m=b,q=b,k=b,p,n,u,t,r=0;r<e;r+=16)p=a.charCodeAt(r)&255|(a.charCodeAt(r+1)&255)<<8|(a.charCodeAt(r+2)&255)<<16|(a.charCodeAt(r+3)&255)<<24,n=a.charCodeAt(r+4)&255|(a.charCodeAt(r+5)&255)<<8|(a.charCodeAt(r+6)&255)<<16|(a.charCodeAt(r+7)&255)<<24,u=a.charCodeAt(r+8)&255|(a.charCodeAt(r+9)&255)<<8|(a.charCodeAt(r+ | ||
10)&255)<<16|(a.charCodeAt(r+11)&255)<<24,t=a.charCodeAt(r+12)&255|(a.charCodeAt(r+13)&255)<<8|(a.charCodeAt(r+14)&255)<<16|(a.charCodeAt(r+15)&255)<<24,p=d(p,597399067),p=f(p,15),p=d(p,2869860233),m^=p,m=f(m,19),m+=q,m=d(m,5)+1444728091,n=d(n,2869860233),n=f(n,16),n=d(n,951274213),q^=n,q=f(q,17),q+=k,q=d(q,5)+197830471,u=d(u,951274213),u=f(u,17),u=d(u,2716044179),k^=u,k=f(k,15),k+=b,k=d(k,5)+2530024501,t=d(t,2716044179),t=f(t,18),t=d(t,597399067),b^=t,b=f(b,13),b+=m,b=d(b,5)+850148119;t=u=n=p=0; | ||
switch(c){case 15:t^=a.charCodeAt(r+14)<<16;case 14:t^=a.charCodeAt(r+13)<<8;case 13:t^=a.charCodeAt(r+12),t=d(t,2716044179),t=f(t,18),t=d(t,597399067),b^=t;case 12:u^=a.charCodeAt(r+11)<<24;case 11:u^=a.charCodeAt(r+10)<<16;case 10:u^=a.charCodeAt(r+9)<<8;case 9:u^=a.charCodeAt(r+8),u=d(u,951274213),u=f(u,17),u=d(u,2716044179),k^=u;case 8:n^=a.charCodeAt(r+7)<<24;case 7:n^=a.charCodeAt(r+6)<<16;case 6:n^=a.charCodeAt(r+5)<<8;case 5:n^=a.charCodeAt(r+4),n=d(n,2869860233),n=f(n,16),n=d(n,951274213), | ||
q^=n;case 4:p^=a.charCodeAt(r+3)<<24;case 3:p^=a.charCodeAt(r+2)<<16;case 2:p^=a.charCodeAt(r+1)<<8;case 1:p^=a.charCodeAt(r),p=d(p,597399067),p=f(p,15),p=d(p,2869860233),m^=p}m^=a.length;q^=a.length;k^=a.length;b^=a.length;m=m+q+k+b;q+=m;k+=m;b+=m;m=l(m);q=l(q);k=l(k);b=l(b);m=m+q+k+b;q+=m;k+=m;b+=m;return("00000000"+(m>>>0).toString(16)).slice(-8)+("00000000"+(q>>>0).toString(16)).slice(-8)+("00000000"+(k>>>0).toString(16)).slice(-8)+("00000000"+(b>>>0).toString(16)).slice(-8)};c.x64.hash128=function(a, | ||
b){a=a||"";b=b||0;var c=a.length%16,d=a.length-c,f=[0,b];b=[0,b];for(var e,l,q=[2277735313,289559509],t=[1291169091,658871167],v=0;v<d;v+=16)e=[a.charCodeAt(v+4)&255|(a.charCodeAt(v+5)&255)<<8|(a.charCodeAt(v+6)&255)<<16|(a.charCodeAt(v+7)&255)<<24,a.charCodeAt(v)&255|(a.charCodeAt(v+1)&255)<<8|(a.charCodeAt(v+2)&255)<<16|(a.charCodeAt(v+3)&255)<<24],l=[a.charCodeAt(v+12)&255|(a.charCodeAt(v+13)&255)<<8|(a.charCodeAt(v+14)&255)<<16|(a.charCodeAt(v+15)&255)<<24,a.charCodeAt(v+8)&255|(a.charCodeAt(v+ | ||
9)&255)<<8|(a.charCodeAt(v+10)&255)<<16|(a.charCodeAt(v+11)&255)<<24],e=k(e,q),e=m(e,31),e=k(e,t),f=p(f,e),f=m(f,27),f=n(f,b),f=n(k(f,[0,5]),[0,1390208809]),l=k(l,t),l=m(l,33),l=k(l,q),b=p(b,l),b=m(b,31),b=n(b,f),b=n(k(b,[0,5]),[0,944331445]);e=[0,0];l=[0,0];switch(c){case 15:l=p(l,u([0,a.charCodeAt(v+14)],48));case 14:l=p(l,u([0,a.charCodeAt(v+13)],40));case 13:l=p(l,u([0,a.charCodeAt(v+12)],32));case 12:l=p(l,u([0,a.charCodeAt(v+11)],24));case 11:l=p(l,u([0,a.charCodeAt(v+10)],16));case 10:l=p(l, | ||
u([0,a.charCodeAt(v+9)],8));case 9:l=p(l,[0,a.charCodeAt(v+8)]),l=k(l,t),l=m(l,33),l=k(l,q),b=p(b,l);case 8:e=p(e,u([0,a.charCodeAt(v+7)],56));case 7:e=p(e,u([0,a.charCodeAt(v+6)],48));case 6:e=p(e,u([0,a.charCodeAt(v+5)],40));case 5:e=p(e,u([0,a.charCodeAt(v+4)],32));case 4:e=p(e,u([0,a.charCodeAt(v+3)],24));case 3:e=p(e,u([0,a.charCodeAt(v+2)],16));case 2:e=p(e,u([0,a.charCodeAt(v+1)],8));case 1:e=p(e,[0,a.charCodeAt(v)]),e=k(e,q),e=m(e,31),e=k(e,t),f=p(f,e)}f=p(f,[0,a.length]);b=p(b,[0,a.length]); | ||
f=n(f,b);b=n(b,f);f=x(f);b=x(b);f=n(f,b);b=n(b,f);return("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)+("00000000"+(b[0]>>>0).toString(16)).slice(-8)+("00000000"+(b[1]>>>0).toString(16)).slice(-8)};a.exports&&(b=a.exports=c);b.murmurHash3=c})(nb)}),Pb=Q(function(a){a.exports={v3:Ob};Za.main===a&&console.log(a.exports.v3)}).v3,ja=function(a){return Pb.x64.hash128(Ja(a||null))},M=ja([]),Sa=function(a,b,c,e,d){var f,l,n=a.requests,t=void 0===n?{}:n;n=a.resources; | ||
var m=void 0===n?{}:n;a=a.resolversHashes;a=void 0===a?{}:a;e=ua(b,e,d);return k({},a,{requests:k({},a.requests||{},(f={},f[c]=Object.keys(e).reduce(function(a,b){var d;return k({},a,(d={},d[b]=t[c]&&t[c].payloadIds&&t[c].payloadIds[b]?ja(t[c].payloadIds[b]):M,d))},{}),f)),resources:k({},a.resources||{},(l={_getResourcesHash:function(){return ja(m)}},l[b]=m[b]?ja(m[b]):M,l))})},Qb=function(a,b){var c,e=a.requests,d=void 0===e?{}:e;a=a.resolversHashes;a=void 0===a?{}:a;return k({},a,{requests:k({}, | ||
Object.entries(a.requests||{}).reduce(function(a,b){var c,f=b[0];b=b[1];return k({},a,Object.keys(d).includes(f)?(c={},c[f]=b,c):{})},{})),resources:k({},a.resources||{},(c={},c[b]=M,c))})},Ta=function(a,b,c){a=(void 0===a?{}:a).resolversHashes;a=void 0===a?{}:a;return a.requests&&a.requests[b]&&a.requests[b][c]?a.requests[b][c]:M},va=function(a,b){a=(void 0===a?{}:a).resolversHashes;a=void 0===a?{}:a;return a.resources&&a.resources[b]?a.resources[b]:M},Rb=[],ka=function(a,b,c,e){void 0===e&&(e=-1); | ||
return!!a.requests&&Object.entries(a.requests).some(function(a){var d=a[1],l=d.resourceName,k=d.resourceId;d=d.endedAt;return a[0].split(":")[0]===c&&l===b&&(-1===e||null!==k&&fa(k,e))&&!d})},S=function(a,b,c,e,d){void 0===d&&(d=-1);return(a=a.requests&&Object.entries(a.requests).filter(function(a){var f=a[1],e=f.resourceName,k=f.resourceId,m=f.endedAt;f=f.payloadIds;return a[0].split(":")[0]===c&&e===b&&(-1===d||null!==k&&fa(k,d)||!!m&&f&&f[b]&&sa(f[b],d))}).map(function(a){return a[1]}))&&a.length? | ||
a.reduce(function(a,b){return b.endedAt?a.endedAt&&b.endedAt>a.endedAt?b:a:a},a[0])[e]:!1},Ua=function(a,b){return a.resources&&a.resources[b]?a.resources[b]:null},Va=function(a,b,c){return a.requests&&a.requests[c]&&a.requests[c].payloadIds&&a.requests[c].payloadIds[b]?a.requests[c].payloadIds[b]:null},Sb=Ha(function(a){return a.resources},Ua,Va,function(a,b,c,e){return e},function(a,b,c,e,d){return d},function(a,b,c,e,d){return b&&c?e&&d?d(c,a):c.reduce(function(a,c){return a.concat([b[c]])},[]): | ||
Rb})(function(a,b,c,e,d){var f=Ua(a,b),k=Va(a,b,c);return f&&k?e&&d?!(!e||!d)+"-"+Object.keys(a.requests[c].payloadIds).map(function(b){return Ta(a,c,b)+"-"+va(a,b)}).join("--"):!(!e||!d)+"-"+Ta(a,c,b)+"-"+va(a,b):M},Ra),Wa=function(a,b){return!(!a.requests||!a.requests[b]||a.requests[b].endedAt)},wa=function(a,b,c){return!!(a.requests&&a.requests[b]&&a.requests[b][c])},Tb=function(a,b,c){var e;return e={},e[b]={resource:{couldPerform:function(c){return!ka(w(c),a,b)},isPerforming:function(c){return ka(w(c), | ||
a,b)},hasSucceeded:function(c){return S(w(c),a,b,"hasSucceeded")},hasFailed:function(c){return S(w(c),a,b,"hasFailed")},isValid:function(c){return!S(w(c),a,b,"didInvalidate")},couldPerformOnId:function(c,f){return!ka(w(c),a,b,f)},isPerformingOnId:function(c,f){return ka(w(c),a,b,f)},hasSucceededOnId:function(c,f){return S(w(c),a,b,"hasSucceeded",f)},hasFailedOnId:function(c,f){return S(w(c),a,b,"hasFailed",f)},isValidId:function(c,f){return!S(w(c),a,b,"didInvalidate",f)}},request:{getResource:function(d, | ||
f,e){void 0===e&&(e=!0);return Sb(w(d),a,P(a,b,f),e,c)},getMetadata:function(c,f){c=w(c);f=P(a,b,f);return c.requests&&c.requests[f]&&c.requests[f].metadata?c.requests[f].metadata:{}},couldPerform:function(c,f){return!Wa(w(c),P(a,b,f))},isPerforming:function(c,f){return Wa(w(c),P(a,b,f))},hasSucceeded:function(c,f){return wa(w(c),P(a,b,f),"hasSucceeded")},hasFailed:function(c,f){return wa(w(c),P(a,b,f),"hasFailed")},isValid:function(c,f){return!wa(w(c),P(a,b,f),"didInvalidate")}}},e},Ub=[],Xa=function(a, | ||
b){return a.resources&&a.resources[b]?a.resources[b]:null},Vb=Ha(function(a){return a.resources},Xa,function(a,b,c){return c},function(a,b,c,e){return e},function(a,b,c,e){return b?c&&e?e(Object.keys(b),a):Object.values(b):Ub})(function(a,b,c,e){return Xa(a,b)?(c&&e?(a=(void 0===a?{}:a).resolversHashes,a=void 0===a?{}:a,a=a.resources&&a.resources._getResourcesHash?a.resources._getResourcesHash():M,c=!(!c||!e)+"-"+a):c=!(!c||!e)+"-"+va(a,b),c):M},Ra),Wb=function(a,b,c,e,d){var f=a.resources&&a.resources[b]&& | ||
a.resources[b][c]?a.resources[b][c]:null;if(!e||!d||!f)return f;a=Object.entries(a.resources).reduce(function(a,d){var e,m,l=d[0];d=d[1];return k({},a,(m={},m[l]=l===b?(e={},e[c]=f,e):d,m))},{});return d([c],a)[0]||null},Xb=function(a,b){return{resource:{getResource:function(c,e){void 0===e&&(e=!0);return Vb(w(c),a,e,b)},getResourceById:function(c,e,d){void 0===d&&(d=!0);return Wb(w(c),a,e,d,b)}}}},V=function(a){a=a.split("/");return{resourceName:a[1],actionName:a[2],caseName:a[3]}},Yb=function(a, | ||
b){var c=a&&a.resources?a.resources:{};return b&&ia(b)?Object.entries(b).reduce(function(a,b){var d,e=b[0];b=b[1];return k({},a,(d={},d[e]=k({},c[e]||{},b),d))},c):c},Zb={},$b={REQUEST:function(a,b){var c,e=b.type,d=b.url;b=b.resourceId;return k({},a,{requests:k({},a.requests||{},(c={},c[d]=k({},a.requests&&a.requests[d]?a.requests[d]:{},{resourceName:V(e).resourceName,resourceId:b,startedAt:(new Date).toISOString(),endedAt:null,expireAt:null,hasSucceeded:a.requests&&a.requests[d]?!!a.requests[d].hasSucceeded: | ||
!1,hasFailed:a.requests&&a.requests[d]?!!a.requests[d].hasFailed:!1,didInvalidate:a.requests&&a.requests[d]?!!a.requests[d].didInvalidate:!1,fromCache:a.requests&&a.requests[d]?!!a.requests[d].fromCache:!1}),c))})},RECEIVE:function(a,b){var c,e=b.url,d=b.payload,f=b.principalResourceIds,l=b.metadata,n=b.cacheLifetime;n=void 0===n?0:n;b=V(b.type).resourceName;a=k({},a,{requests:k({},a.requests||{},(c={},c[e]=k({},a.requests&&a.requests[e]?a.requests[e]:{},{endedAt:(new Date).toISOString(),expireAt:Infinity!== | ||
n?(new Date((new Date).getTime()+1E3*n)).toISOString():"never",hasSucceeded:!0,hasFailed:!1,didInvalidate:!1,fromCache:!1,payloadIds:ua(b,d,f),metadata:l}),c)),resources:Yb(a,d)});return k({},a,{resolversHashes:Sa(a,b,e,d,f)})},FAIL:function(a,b){var c;b=b.url;return k({},a,{requests:k({},a.requests||{},(c={},c[b]=k({},a.requests&&a.requests[b]?a.requests[b]:{},{endedAt:(new Date).toISOString(),hasSucceeded:!1,hasFailed:!0}),c))})},RECEIVE_FROM_CACHE:function(a,b){var c,e=b.type,d=b.url,f=b.resourceId, | ||
l=b.payload,n=b.principalResourceIds,t=b.metadata;b=b.cacheLifetime;var m=void 0===b?0:b;b=V(e).resourceName;a=k({},a,{requests:k({},a.requests||{},(c={},c[d]=k({},a.requests&&a.requests[d]?a.requests[d]:{},{resourceName:V(e).resourceName,resourceId:f,startedAt:(new Date).toISOString(),endedAt:(new Date).toISOString(),expireAt:Infinity!==m?(new Date((new Date).getTime()+1E3*m)).toISOString():"never",hasSucceeded:!0,hasFailed:!1,didInvalidate:!1,fromCache:!0,payloadIds:ua(b,l,n),metadata:t}),c))}); | ||
return k({},a,{resolversHashes:Sa(a,b,d,l,n)})},INVALIDATE_RESOURCE:function(a,b){var c=b.resourceName;return k({},a,{requests:k({},Object.entries(a.requests||{}).reduce(function(a,b){var d,e=b[0];b=b[1];return k({},a,(d={},d[e]=!b.didInvalidate&&(b.resourceName===c||b.payloadIds&&b.payloadIds[c])?k({},b,{didInvalidate:!0}):b,d))},{}))})},INVALIDATE_ID:function(a,b){var c=b.resourceName,e=b.resourceId;return k({},a,{requests:k({},Object.entries(a.requests||{}).reduce(function(a,b){var d,f=b[0];b= | ||
b[1];return k({},a,(d={},d[f]=!b.didInvalidate&&(b.resourceName===c&&fa(b.resourceId,e)||b.payloadIds&&b.payloadIds[c]&&sa(b.payloadIds[c],e))?k({},b,{didInvalidate:!0}):b,d))},{}))})},INVALIDATE_REQUEST:function(a,b){var c;b=b.url;return k({},a,{requests:k({},a.requests||{},(c={},c[b]=k({},a.requests&&a.requests[b]?a.requests[b]:{},{didInvalidate:!0}),c))})},RESET_RESOURCE:function(a,b){var c,e=b.resourceName;a=k({},a,{requests:k({},Object.entries(a.requests||{}).filter(function(a){a=a[1];var b= | ||
a.payloadIds;return e!==a.resourceName&&(!b||!Object.keys(b).includes(e))}).reduce(function(a,b){var c,d=b[0];b=b[1];return k({},a,(c={},c[d]=b,c))},{})),resources:k({},a.resources||{},(c={},c[e]=void 0,c))});return k({},a,{resolversHashes:Qb(a,e)})},RESET_ALL:function(){return{}}},ac=function(a){void 0===a&&(a=Zb);return function(b,c){void 0===c&&(c={});if(void 0===b)return a;if(!c.type||!c.type.startsWith("@@rest-easy"))return b;var e=$b[V(c.type).caseName];return e?e(b,c):b}}(),bc=function(a){return function(){return{type:a}}}, | ||
cc=function(a,b){var c=void 0===b?{}:b;b=c.alwaysPersist;c=c.neverPersist;if(!a||!Object.keys(a).length)return{};var e="string"===typeof b?[b]:b,d="string"===typeof c?[c]:c,f=Object.entries(a.requests||{}).reduce(function(a,b){var c,f,m=b[0];b=b[1];return k({},a,b&&b.endedAt&&e&&b.payloadIds&&Object.keys(b.payloadIds).some(function(a){return e.includes(a)})?(c={},c[m]=b,c):!b||!b.endedAt||b.didInvalidate||ra(b.expireAt)||d&&b.payloadIds&&Object.keys(b.payloadIds).some(function(a){return d.includes(a)})? | ||
{}:(f={},f[m]="never"===b.expireAt?k({},b,{didInvalidate:!0}):b,f))},{}),l=Object.values(f).reduce(function(a,b){return k({},a,Object.entries(b.payloadIds||{}).reduce(function(a,b){var c,d=b[0];b=b[1];return k({},a,(c={},c[d]=(a[d]||[]).concat(b.map(function(a){return a.toString()})),c))},{}))},{});b=Object.entries(a.resources||{}).reduce(function(a,b){var c,d=b[0];b=b[1];return k({},a,(c={},c[d]=Object.entries(b||{}).reduce(function(a,b){var c,e=b[0];b=b[1];return k({},a,l[d]&&l[d].includes(e)?(c= | ||
{},c[e]=b,c):{})},{}),c))},{});var n=Object.entries(b).reduce(function(a,b){var c,d=b[0];b=b[1];return k({},a,Object.keys(b).length?(c={},c[d]=b,c):{})},{});b=k({},a.resolversHashes||{},{requests:Object.entries(a.resolversHashes&&a.resolversHashes.requests?a.resolversHashes.requests:{}).reduce(function(a,b){var c,d=b[0];b=b[1];return k({},a,f[d]?(c={},c[d]=b,c):{})},{}),resources:Object.entries(a.resolversHashes&&a.resolversHashes.resources?a.resolversHashes.resources:{}).reduce(function(b,c){var d, | ||
e=c[0];c=c[1];return k({},b,n[e]&&Object.keys(a.resources[e]).length===Object.keys(n[e]).length?(d={},d[e]=c,d):{})},{})});return k({},a,{requests:f,resources:n,resolversHashes:b})};y.connect=function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];return function(a){var c=a.displayName||a.name||"Component",e=function(c){function d(d){var e=c.call(this,d)||this;za(W(W(e)),"onInjectProps",function(a,b){e.setState(function(c){var d;return c.__requestURLsByActionKey[a]!==b?{__requestURLsByActionKey:k({}, | ||
c.__requestURLsByActionKey,(d={},d[a]=b,d))}:null})});za(W(W(e)),"getWrappedInstance",function(){return e.innerRef&&e.innerRef.getWrappedInstance?e.innerRef.getWrappedInstance():null});e.state={__requestURLsByActionKey:{}};e.ConnectedComponent=rb(e.onInjectProps).apply(void 0,b)(a);return e}$a(d,c);d.prototype.render=function(){var a=this,b=this.ConnectedComponent,c=k({},this.props,this.state,{ref:function(b){a.innerRef=b}});return F.createElement(b,c)};return d}(F.Component);e.displayName="EasyConnect("+ | ||
c+")";return Aa(e,a)}};y.createResource=function(a,b){return function(c){Mb(a,b);Jb(a,c);var e=b||{},d=e.cacheLifetime,f=void 0===d?0:d,l=e.denormalizer,n=k({},sb(a)),t=k({},Xb(a,l));Object.keys(c||{}).forEach(function(b){var d=k,e=n;var m=c||{};var q,w=H(a,"@invalidate","INVALIDATE_REQUEST");m=(q={},q[b]={perform:Gb(a,f,m,b),invalidate:Hb(w,a)},q);n=d({},e,m);t=k({},t,Tb(a,b,l))});return{actions:n,selectors:t}}};y.reducer=ac;y.reset=function(){var a=H("@global","@reset","RESET_ALL");return bc(a)()}; | ||
y.initializeNetworkHelpers=function(a){Na=a?k({},ta,a):ta};y.getPersistableState=function(a,b){return cc(a,b)};Object.defineProperty(y,"__esModule",{value:!0})}); |
{ | ||
"name": "@brigad/redux-rest-easy", | ||
"version": "2.9.2", | ||
"version": "2.9.3", | ||
"description": "Redux/React/React Native framework generating actions, reducers and selectors to perform network requests", | ||
@@ -68,3 +68,3 @@ "main": "dist/redux-rest-easy.cjs.js", | ||
"fast-stable-stringify": "1.0.0", | ||
"hoist-non-react-statics": "2.5.5", | ||
"hoist-non-react-statics": "3.0.1", | ||
"is-object": "1.0.1", | ||
@@ -74,26 +74,26 @@ "murmur-hash": "1.0.0", | ||
"re-reselect": "2.1.0", | ||
"regenerator-runtime": "0.12.0", | ||
"regenerator-runtime": "0.12.1", | ||
"reselect": "3.0.1" | ||
}, | ||
"devDependencies": { | ||
"@ampproject/rollup-plugin-closure-compiler": "0.4.3", | ||
"@babel/cli": "7.0.0-beta.47", | ||
"@babel/core": "7.0.0-beta.47", | ||
"@babel/preset-env": "7.0.0-beta.47", | ||
"@babel/preset-react": "7.0.0-beta.47", | ||
"@babel/preset-stage-2": "7.0.0-beta.47", | ||
"all-contributors-cli": "5.3.0", | ||
"@ampproject/rollup-plugin-closure-compiler": "0.6.1", | ||
"@babel/cli": "7.0.0", | ||
"@babel/core": "7.0.0", | ||
"@babel/plugin-proposal-class-properties": "7.0.0", | ||
"@babel/preset-env": "7.0.0", | ||
"@babel/preset-react": "7.0.0", | ||
"all-contributors-cli": "5.4.0", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-eslint": "8.2.6", | ||
"babel-jest": "23.4.0", | ||
"babel-eslint": "9.0.0", | ||
"babel-jest": "23.4.2", | ||
"codecov": "3.0.4", | ||
"cross-env": "5.2.0", | ||
"eslint": "5.1.0", | ||
"eslint-config-airbnb": "17.0.0", | ||
"eslint-config-prettier": "2.9.0", | ||
"eslint-plugin-import": "2.13.0", | ||
"eslint": "5.5.0", | ||
"eslint-config-airbnb": "17.1.0", | ||
"eslint-config-prettier": "3.0.1", | ||
"eslint-plugin-import": "2.14.0", | ||
"eslint-plugin-jsx-a11y": "6.1.1", | ||
"eslint-plugin-react": "7.10.0", | ||
"fetch-mock": "6.5.0", | ||
"jest-cli": "23.4.1", | ||
"eslint-plugin-react": "7.11.1", | ||
"fetch-mock": "6.5.2", | ||
"jest-cli": "23.5.0", | ||
"jest-junit": "5.1.0", | ||
@@ -103,12 +103,12 @@ "mockdate": "2.0.2", | ||
"prettier-eslint-cli": "4.7.1", | ||
"react": "16.4.1", | ||
"react": "16.4.2", | ||
"react-redux": "5.0.7", | ||
"redux": "4.0.0", | ||
"rimraf": "2.6.2", | ||
"rollup": "0.62.0", | ||
"rollup-plugin-babel": "4.0.0-beta.7", | ||
"rollup-plugin-commonjs": "9.1.3", | ||
"rollup": "0.65.0", | ||
"rollup-plugin-babel": "4.0.2", | ||
"rollup-plugin-commonjs": "9.1.6", | ||
"rollup-plugin-node-resolve": "3.3.0", | ||
"rollup-plugin-replace": "2.0.0", | ||
"semantic-release": "15.8.0" | ||
"semantic-release": "15.9.12" | ||
}, | ||
@@ -115,0 +115,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
476429
10285
+ Addedhoist-non-react-statics@3.0.1(transitive)
+ Addedregenerator-runtime@0.12.1(transitive)
- Removedhoist-non-react-statics@2.5.5(transitive)
- Removedregenerator-runtime@0.12.0(transitive)
Updatedregenerator-runtime@0.12.1