omniscient
Version:
A library providing an abstraction for React components for passing the same data structure through the entire component flow using cursors and immutable data structures.
6 lines • 24 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define("omniscient",["React"],e):"object"==typeof exports?exports.omniscient=e(require("React")):t.omniscient=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=5)}([function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(p===clearTimeout)return clearTimeout(t);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function u(){y&&d&&(y=!1,d.length?h=d.concat(h):m=-1,h.length&&c())}function c(){if(!y){var t=o(u);y=!0;for(var e=h.length;e;){for(d=h,h=[];++m<e;)d&&d[m].run();m=-1,e=h.length}d=null,y=!1,i(t)}}function a(t,e){this.fun=t,this.array=e}function s(){}var l,p,f=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(t){p=r}}();var d,h=[],y=!1,m=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new a(t,e)),1!==h.length||y||o(c)},a.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=s,f.addListener=s,f.once=s,f.off=s,f.removeListener=s,f.removeAllListeners=s,f.emit=s,f.prependListener=s,f.prependOnceListener=s,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,c,a=r(t),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var l in n)i.call(n,l)&&(a[l]=n[l]);if(o){c=o(n);for(var p=0;p<c.length;p++)u.call(n,c[p])&&(a[c[p]]=n[c[p]])}}return a}},function(t,e,n){"use strict";function r(t){function e(t,e){if(t===this.props&&e===this.state)return v&&v.call(this,"shouldComponentUpdate => false (equal input)"),!1;if(!N(this.state,e))return v&&v.call(this,"shouldComponentUpdate => true (state has changed)"),!0;var n=l(t,w),r=l(this.props,w);return _(r,n)?(v&&v.call(this,"shouldComponentUpdate => false"),!1):(v&&v.call(this,"shouldComponentUpdate => true (props have changed)"),!0)}function n(t,e){return h(t,e,function(t,e){return t===e||o(t,e,j,g)})}function r(t,e){if(t===e)return!0;var n=o(t,e,b,E);if(void 0!==n)return n;var r=o(t,e,j,g);return void 0!==r?r:h(t,e,function(t,e){if(t===e)return!0;var n=o(t,e,b,E);return void 0!==n?n:o(t,e,j,g)})}function y(t,e){return D(t)===D(e)}function m(t,e){"function"==typeof t&&(e=t,t=void 0);var n=e;!n&&console.debug&&(n=console.debug.bind(console)),!n&&console.info&&(n=console.info.bind(console));var r=new RegExp(t||".*");return v=function(t){var e=this._reactInternalFiber?this._reactInternalFiber:this._reactInternalInstance?this._reactInternalInstance._currentElement:this._currentElement,o=e&&e.key?" key="+e.key:"",i=this.constructor.displayName;o||i||(i="Unknown");var u=i+o;r.test(u)&&n("<"+u+">: "+t)}}var v;t=t||{};var b=t.isCursor||a,E=t.isEqualCursor||y,g=t.isEqualImmutable||i,N=t.isEqualState||n,_=t.isEqualProps||r,j=t.isImmutable||u,x=t.isIgnorable||p,D=t.unCursor||c,w=s(d(x,f));return e.isCursor=b,e.isEqualState=N,e.isEqualProps=_,e.isEqualCursor=E,e.isEqualImmutable=g,e.isImmutable=j,e.debug=m,e}function o(t,e,n,r){var o=n(t),i=n(e);return o&&i?r(t,e):!o&&!i&&void 0}function i(t,e){return t===e}function u(t){return!(!t||!t[y])}function c(t){return a(t)?t.deref():t}function a(t){return!(!t||"function"!=typeof t.deref)}function s(t){return function(){return!t.apply(t,arguments)}}function l(t,e){return Object.keys(t).reduce(function(n,r){return e(t[r],r)&&(n[r]=t[r]),n},{})}function p(t,e){return!1}function f(t,e){return"children"===e}function d(t,e){return function(){return t.apply(null,arguments)||e.apply(null,arguments)}}var h=n(12);t.exports=r(),t.exports.withDefaults=r;var y="@@__IMMUTABLE_ITERABLE__@@"},function(t,e){function n(t){return!!t&&"object"==typeof t}function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=y}function o(t){return i(t)&&f.call(t)==c}function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function u(t){return null!=t&&(o(t)?d.test(l.call(t)):n(t)&&a.test(t))}var c="[object Function]",a=/^\[object .+?Constructor\]$/,s=Object.prototype,l=Function.prototype.toString,p=s.hasOwnProperty,f=s.toString,d=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),h=function(t,e){var n=null==t?void 0:t[e];return u(n)?n:void 0}(Array,"isArray"),y=9007199254740991,m=h||function(t){return n(t)&&r(t.length)&&"[object Array]"==f.call(t)};t.exports=m},function(t,e,n){"use strict";function r(t){function e(t){function e(e,n,o){function c(t,e,n){if(this&&this.constructor===c){return new m(t,e,n)}var r=t,o=e;"object"==typeof r&&(o=r,r=void 0);var i,u,a=p(l(arguments,o).filter(function(t,e){return j(t,e,!0)}));return g(o)||N(o)?(u=o,i={},i[_]=u):i=d({},o),r&&(i.key=r),a.length&&(i.children=a),h.createElement(m,i)}var a=r(e,n,o),s=i(a.mixins),y={displayName:a.displayName||a.render.name,mixins:a.mixins,render:function(){b&&b.call(this,"render");var t=this.props[_]||this.props;return this.cursor=this.props[_],a.render.call(this,t)}};s&&(y.statics=s,u(a.mixins));var m=t(f(y));return s&&(c=d(c,s)),d(c.prototype,v),d(c,m,{type:m})}return e.debug=n,e.cached=D,e.shouldComponentUpdate=E,e}function n(t,e){E.debug&&(b=E.debug(t,e))}function r(t,e,n){return"function"==typeof t&&(n=t,e=[],t=void 0),"object"==typeof t&&"function"==typeof e&&(n=e,e=t,t=void 0),"string"==typeof t&&"function"==typeof e&&(n=e,e=[]),Array.isArray(e)||(e=[e]),c(e)||e.unshift({shouldComponentUpdate:E}),{displayName:t,mixins:e,render:n}}var b;t=t||{};var E=t.shouldComponentUpdate||y.withDefaults(t),g=t.isCursor||y.isCursor,N=t.isImmutable||y.isImmutable,_=t.cursorField||"__singleCursor",j=t.isNode||o,x=t.classDecorator||a,D=m.withDefaults(E),w=e(x);return w.classDecorator=function(t){return 1===arguments.length?e(t):e(t).apply(null,s(arguments).slice(1))},w}function o(t,e,n){switch(typeof t){case"number":return!0;case"string":return 0!==e||!n;case"boolean":return!t;case"object":return Array.isArray(t)?t.every(function(t,e){return o(t,e,!1)}):!!h.isValidElement(t);default:return!1}}function i(t){var e=t.filter(function(t){return!!t.statics});if(e.length){var n={};return e.forEach(function(t){n=d(n,t.statics)}),n}}function u(t){t.filter(function(t){return!!t.statics}).forEach(function(t){delete t.statics})}function c(t){return t.some(function(t){return!!t.shouldComponentUpdate||!!Array.isArray(t.mixins)&&c(t.mixins)})}function a(t){return t}function s(t){return Array.prototype.slice.call(t)}function l(t,e){var n=s(t),r=Math.max(n.indexOf(e),0);return n.slice(r)}function p(t){return Array.prototype.concat.apply([],t)}var f=n(6),d=n(2),h=n(1),y=n(3),m=n(19),v={isReactComponent:{}};t.exports=r(),t.exports.withDefaults=r},function(t,e,n){"use strict";var r=n(1),o=n(7);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;t.exports=o(r.Component,r.isValidElement,i)},function(t,e,n){"use strict";(function(e){function r(t){return t}function o(t,n,o){function p(t,n,r){for(var o in n)n.hasOwnProperty(o)&&"production"!==e.env.NODE_ENV&&a("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",t.displayName||"ReactClass",s[r],o)}function f(t,e){var n=_.hasOwnProperty(e)?_[e]:null;w.hasOwnProperty(e)&&c("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&c("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function d(t,r){if(r){c("function"!=typeof r,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),c(!n(r),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=t.prototype,i=o.__reactAutoBindPairs;r.hasOwnProperty(l)&&j.mixins(t,r.mixins);for(var u in r)if(r.hasOwnProperty(u)&&u!==l){var s=r[u],p=o.hasOwnProperty(u);if(f(p,u),j.hasOwnProperty(u))j[u](t,s);else{var d=_.hasOwnProperty(u),h="function"==typeof s,y=h&&!d&&!p&&!1!==r.autobind;if(y)i.push(u,s),o[u]=s;else if(p){var b=_[u];c(d&&("DEFINE_MANY_MERGED"===b||"DEFINE_MANY"===b),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",b,u),"DEFINE_MANY_MERGED"===b?o[u]=m(o[u],s):"DEFINE_MANY"===b&&(o[u]=v(o[u],s))}else o[u]=s,"production"!==e.env.NODE_ENV&&"function"==typeof s&&r.displayName&&(o[u].displayName=r.displayName+"_"+u)}}}else if("production"!==e.env.NODE_ENV){var E=typeof r,g="object"===E&&null!==r;"production"!==e.env.NODE_ENV&&a(g,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",t.displayName||"ReactClass",null===r?null:E)}}function h(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var o=n in j;c(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in t;c(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),t[n]=r}}}function y(t,e){c(t&&e&&"object"==typeof t&&"object"==typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in e)e.hasOwnProperty(n)&&(c(void 0===t[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),t[n]=e[n]);return t}function m(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return y(o,n),y(o,r),o}}function v(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function b(t,n){var r=n.bind(t);if("production"!==e.env.NODE_ENV){r.__reactBoundContext=t,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var o=t.constructor.displayName,i=r.bind;r.bind=function(u){for(var c=arguments.length,s=Array(c>1?c-1:0),l=1;l<c;l++)s[l-1]=arguments[l];if(u!==t&&null!==u)"production"!==e.env.NODE_ENV&&a(!1,"bind(): React component methods may only be bound to the component instance. See %s",o);else if(!s.length)return"production"!==e.env.NODE_ENV&&a(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",o),r;var p=i.apply(r,arguments);return p.__reactBoundContext=t,p.__reactBoundMethod=n,p.__reactBoundArguments=s,p}}return r}function E(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];t[r]=b(t,o)}}function g(t){var n=r(function(t,r,i){"production"!==e.env.NODE_ENV&&a(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),this.__reactAutoBindPairs.length&&E(this),this.props=t,this.context=r,this.refs=u,this.updater=i||o,this.state=null;var s=this.getInitialState?this.getInitialState():null;"production"!==e.env.NODE_ENV&&void 0===s&&this.getInitialState._isMockFunction&&(s=null),c("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"),this.state=s});n.prototype=new O,n.prototype.constructor=n,n.prototype.__reactAutoBindPairs=[],N.forEach(d.bind(null,n)),d(n,x),d(n,t),d(n,D),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==e.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),n.prototype.getInitialState&&(n.prototype.getInitialState.isReactClassApproved={})),c(n.prototype.render,"createClass(...): Class specification must implement a `render` method."),"production"!==e.env.NODE_ENV&&(a(!n.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",t.displayName||"A component"),a(!n.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",t.displayName||"A component"));for(var i in _)n.prototype[i]||(n.prototype[i]=null);return n}var N=[],_={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},j={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)d(t,e[n])},childContextTypes:function(t,n){"production"!==e.env.NODE_ENV&&p(t,n,"childContext"),t.childContextTypes=i({},t.childContextTypes,n)},contextTypes:function(t,n){"production"!==e.env.NODE_ENV&&p(t,n,"context"),t.contextTypes=i({},t.contextTypes,n)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=m(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,n){"production"!==e.env.NODE_ENV&&p(t,n,"prop"),t.propTypes=i({},t.propTypes,n)},statics:function(t,e){h(t,e)},autobind:function(){}},x={componentDidMount:function(){this.__isMounted=!0}},D={componentWillUnmount:function(){this.__isMounted=!1}},w={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return"production"!==e.env.NODE_ENV&&(a(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"),this.__didWarnIsMounted=!0),!!this.__isMounted}},O=function(){};return i(O.prototype,t.prototype,w),g}var i=n(2),u=n(8),c=n(9);if("production"!==e.env.NODE_ENV)var a=n(10);var s,l="mixins";s="production"!==e.env.NODE_ENV?{prop:"prop",context:"context",childContext:"child context"}:{},t.exports=o}).call(e,n(0))},function(t,e,n){"use strict";(function(e){var n={};"production"!==e.env.NODE_ENV&&Object.freeze(n),t.exports=n}).call(e,n(0))},function(t,e,n){"use strict";(function(e){function n(t,e,n,o,i,u,c,a){if(r(e),!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,u,c,a],p=0;s=new Error(e.replace(/%s/g,function(){return l[p++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var r=function(t){};"production"!==e.env.NODE_ENV&&(r=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),t.exports=n}).call(e,n(0))},function(t,e,n){"use strict";(function(e){var r=n(11),o=r;if("production"!==e.env.NODE_ENV){var i=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(t){}};o=function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];i.apply(void 0,[e].concat(r))}}}t.exports=o}).call(e,n(0))},function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){function r(t,e,n,r){n="function"==typeof n?i(n,r,3):void 0;var u=n?n(t,e):void 0;return void 0===u?o(t,e,n):!!u}var o=n(13),i=n(18);t.exports=r},function(t,e,n){function r(t){return!!t&&"object"==typeof t}function o(t,e){for(var n=-1,r=t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function i(t,e,n,o,c,a){return t===e||(null==t||null==e||!l(t)&&!r(e)?t!==t&&e!==e:u(t,e,i,n,o,c,a))}function u(t,e,n,r,o,i,u){var l=p(t),d=p(e),m=y,v=y;l||(m=D.call(t),m==h?m=g:m!=g&&(l=f(t))),d||(v=D.call(e),v==h?v=g:v!=g&&(d=f(e)));var b=m==g,E=v==g,N=m==v;if(N&&!l&&!b)return a(t,e,m);if(!o){var _=b&&x.call(t,"__wrapped__"),j=E&&x.call(e,"__wrapped__");if(_||j)return n(_?t.value():t,j?e.value():e,r,o,i,u)}if(!N)return!1;i||(i=[]),u||(u=[]);for(var w=i.length;w--;)if(i[w]==t)return u[w]==e;i.push(t),u.push(e);var O=(l?c:s)(t,e,n,r,o,i,u);return i.pop(),u.pop(),O}function c(t,e,n,r,i,u,c){var a=-1,s=t.length,l=e.length;if(s!=l&&!(i&&l>s))return!1;for(;++a<s;){var p=t[a],f=e[a],d=r?r(i?f:p,i?p:f,a):void 0;if(void 0!==d){if(d)continue;return!1}if(i){if(!o(e,function(t){return p===t||n(p,t,r,i,u,c)}))return!1}else if(p!==f&&!n(p,f,r,i,u,c))return!1}return!0}function a(t,e,n){switch(n){case m:case v:return+t==+e;case b:return t.name==e.name&&t.message==e.message;case E:return t!=+t?e!=+e:t==+e;case N:case _:return t==e+""}return!1}function s(t,e,n,r,o,i,u){var c=d(t),a=c.length;if(a!=d(e).length&&!o)return!1;for(var s=a;s--;){var l=c[s];if(!(o?l in e:x.call(e,l)))return!1}for(var p=o;++s<a;){l=c[s];var f=t[l],h=e[l],y=r?r(o?h:f,o?f:h,l):void 0;if(!(void 0===y?n(f,h,r,o,i,u):y))return!1;p||(p="constructor"==l)}if(!p){var m=t.constructor,v=e.constructor;if(m!=v&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof v&&v instanceof v))return!1}return!0}function l(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var p=n(4),f=n(14),d=n(15),h="[object Arguments]",y="[object Array]",m="[object Boolean]",v="[object Date]",b="[object Error]",E="[object Number]",g="[object Object]",N="[object RegExp]",_="[object String]",j=Object.prototype,x=j.hasOwnProperty,D=j.toString;t.exports=i},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function r(t){return!!t&&"object"==typeof t}function o(t){return r(t)&&n(t.length)&&!!u[a.call(t)]}var i=9007199254740991,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var c=Object.prototype,a=c.toString;t.exports=o},function(t,e,n){function r(t){return null!=t&&i(v(t))}function o(t,e){return t="number"==typeof t||f.test(t)?+t:-1,e=null==e?m:e,t>-1&&t%1==0&&t<e}function i(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=m}function u(t){for(var e=a(t),n=e.length,r=n&&t.length,u=!!r&&i(r)&&(p(t)||l(t)),c=-1,s=[];++c<n;){var f=e[c];(u&&o(f,r)||h.call(t,f))&&s.push(f)}return s}function c(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function a(t){if(null==t)return[];c(t)||(t=Object(t));var e=t.length;e=e&&i(e)&&(p(t)||l(t))&&e||0;for(var n=t.constructor,r=-1,u="function"==typeof n&&n.prototype===t,a=Array(e),s=e>0;++r<e;)a[r]=r+"";for(var f in t)s&&o(f,e)||"constructor"==f&&(u||!h.call(t,f))||a.push(f);return a}var s=n(16),l=n(17),p=n(4),f=/^\d+$/,d=Object.prototype,h=d.hasOwnProperty,y=s(Object,"keys"),m=9007199254740991,v=function(t){return function(e){return null==e?void 0:e[t]}}("length"),b=y?function(t){var e=null==t?void 0:t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&r(t)?u(t):c(t)?y(t):[]}:u;t.exports=b},function(t,e){function n(t){return!!t&&"object"==typeof t}function r(t,e){var n=null==t?void 0:t[e];return u(n)?n:void 0}function o(t){return i(t)&&f.call(t)==c}function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function u(t){return null!=t&&(o(t)?d.test(l.call(t)):n(t)&&a.test(t))}var c="[object Function]",a=/^\[object .+?Constructor\]$/,s=Object.prototype,l=Function.prototype.toString,p=s.hasOwnProperty,f=s.toString,d=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e){function n(t){return o(t)&&h.call(t,"callee")&&(!m.call(t,"callee")||y.call(t)==l)}function r(t){return null!=t&&u(t.length)&&!i(t)}function o(t){return a(t)&&r(t)}function i(t){var e=c(t)?y.call(t):"";return e==p||e==f}function u(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function c(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function a(t){return!!t&&"object"==typeof t}var s=9007199254740991,l="[object Arguments]",p="[object Function]",f="[object GeneratorFunction]",d=Object.prototype,h=d.hasOwnProperty,y=d.toString,m=d.propertyIsEnumerable;t.exports=n},function(t,e){function n(t,e,n){if("function"!=typeof t)return r;if(void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,o){return t.call(e,n,r,o)};case 4:return function(n,r,o,i){return t.call(e,n,r,o,i)};case 5:return function(n,r,o,i,u){return t.call(e,n,r,o,i,u)}}return function(){return t.apply(e,arguments)}}function r(t){return t}t.exports=n},function(t,e,n){"use strict";function r(t){var e=t&&t.isEqualProps||o.isEqualProps;return function(t){var n,r;return function(){return e(arguments,n)||(r=t.apply(this,arguments)),n=arguments,r}}}var o=n(3);t.exports=r(),t.exports.withDefaults=r}])});