react-dom
Advanced tools
Comparing version 16.5.0 to 16.5.1
@@ -1,5 +0,5 @@ | ||
/** @license React v16.5.0 | ||
/** @license React v16.5.1 | ||
* react-dom-server.browser.production.min.js | ||
* | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
@@ -13,3 +13,3 @@ * This source code is licensed under the MIT license found in the | ||
var x="function"===typeof Symbol&&Symbol.for,y=x?Symbol.for("react.portal"):60106,A=x?Symbol.for("react.fragment"):60107,B=x?Symbol.for("react.strict_mode"):60108,C=x?Symbol.for("react.profiler"):60114,E=x?Symbol.for("react.provider"):60109,F=x?Symbol.for("react.context"):60110,G=x?Symbol.for("react.async_mode"):60111,H=x?Symbol.for("react.forward_ref"):60112,ba=x?Symbol.for("react.placeholder"):60113; | ||
function I(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case G:return"AsyncMode";case A:return"Fragment";case y:return"Portal";case C:return"Profiler";case B:return"StrictMode";case ba:return"Placeholder"}if("object"===typeof a){switch(a.$$typeof){case F:return"Context.Consumer";case E:return"Context.Provider";case H:return a=a.render,a=a.displayName||a.name||"",""!==a?"ForwardRef("+a+")":"ForwardRef"}if("function"=== | ||
function I(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case G:return"AsyncMode";case A:return"Fragment";case y:return"Portal";case C:return"Profiler";case B:return"StrictMode";case ba:return"Placeholder"}if("object"===typeof a){switch(a.$$typeof){case F:return"Context.Consumer";case E:return"Context.Provider";case H:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef")}if("function"=== | ||
typeof a.then&&(a=1===a._reactStatus?a._reactResult:null))return I(a)}return null}var ca=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,J=Object.prototype.hasOwnProperty,K={},L={}; | ||
@@ -44,2 +44,2 @@ function M(a){if(J.call(L,a))return!0;if(J.call(K,a))return!1;if(ca.test(a))return L[a]=!0;K[a]=!0;return!1}function da(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==d)return!d.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}} | ||
">");a:{l=f.dangerouslySetInnerHTML;if(null!=l){if(null!=l.__html){l=l.__html;break a}}else if(l=f.children,"string"===typeof l||"number"===typeof l){l=R(l);break a}l=null}null!=l?(f=[],la[b]&&"\n"===l.charAt(0)&&(u+="\n"),u+=l):f=W(f.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?T(a):"http://www.w3.org/2000/svg"===c&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":c;this.stack.push({domNamespace:c,type:b,children:f,childIndex:0,context:d,footer:h});this.previousWasTextNode= | ||
!1;return u};return a}(),ua={renderToString:function(a){return(new ta(a,!1)).read(Infinity)},renderToStaticMarkup:function(a){return(new ta(a,!0)).read(Infinity)},renderToNodeStream:function(){r("207")},renderToStaticNodeStream:function(){r("208")},version:"16.5.0"},va={default:ua},wa=va&&ua||va;module.exports=wa.default||wa; | ||
!1;return u};return a}(),ua={renderToString:function(a){return(new ta(a,!1)).read(Infinity)},renderToStaticMarkup:function(a){return(new ta(a,!0)).read(Infinity)},renderToNodeStream:function(){r("207")},renderToStaticNodeStream:function(){r("208")},version:"16.5.1"},va={default:ua},wa=va&&ua||va;module.exports=wa.default||wa; |
@@ -1,5 +0,5 @@ | ||
/** @license React v16.5.0 | ||
/** @license React v16.5.1 | ||
* react-dom-server.node.production.min.js | ||
* | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
@@ -13,3 +13,3 @@ * This source code is licensed under the MIT license found in the | ||
var x="function"===typeof Symbol&&Symbol.for,y=x?Symbol.for("react.portal"):60106,A=x?Symbol.for("react.fragment"):60107,B=x?Symbol.for("react.strict_mode"):60108,C=x?Symbol.for("react.profiler"):60114,E=x?Symbol.for("react.provider"):60109,F=x?Symbol.for("react.context"):60110,G=x?Symbol.for("react.async_mode"):60111,H=x?Symbol.for("react.forward_ref"):60112,ca=x?Symbol.for("react.placeholder"):60113; | ||
function I(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case G:return"AsyncMode";case A:return"Fragment";case y:return"Portal";case C:return"Profiler";case B:return"StrictMode";case ca:return"Placeholder"}if("object"===typeof a){switch(a.$$typeof){case F:return"Context.Consumer";case E:return"Context.Provider";case H:return a=a.render,a=a.displayName||a.name||"",""!==a?"ForwardRef("+a+")":"ForwardRef"}if("function"=== | ||
function I(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case G:return"AsyncMode";case A:return"Fragment";case y:return"Portal";case C:return"Profiler";case B:return"StrictMode";case ca:return"Placeholder"}if("object"===typeof a){switch(a.$$typeof){case F:return"Context.Consumer";case E:return"Context.Provider";case H:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef")}if("function"=== | ||
typeof a.then&&(a=1===a._reactStatus?a._reactResult:null))return I(a)}return null}var da=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,J=Object.prototype.hasOwnProperty,K={},L={}; | ||
@@ -46,2 +46,2 @@ function M(a){if(J.call(L,a))return!0;if(J.call(K,a))return!1;if(da.test(a))return L[a]=!0;K[a]=!0;return!1}function ea(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==d)return!d.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}} | ||
var wa=function(a){function b(d,c){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var g=a.call(this,{});if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");g=!g||"object"!==typeof g&&"function"!==typeof g?this:g;g.partialRenderer=new Z(d,c);return g}va(b,a);b.prototype._read=function(a){try{this.push(this.partialRenderer.read(a))}catch(c){this.emit("error",c)}};return b}(aa.Readable),xa={renderToString:function(a){return(new Z(a, | ||
!1)).read(Infinity)},renderToStaticMarkup:function(a){return(new Z(a,!0)).read(Infinity)},renderToNodeStream:function(a){return new wa(a,!1)},renderToStaticNodeStream:function(a){return new wa(a,!0)},version:"16.5.0"},ya={default:xa},Aa=ya&&xa||ya;module.exports=Aa.default||Aa; | ||
!1)).read(Infinity)},renderToStaticMarkup:function(a){return(new Z(a,!0)).read(Infinity)},renderToNodeStream:function(a){return new wa(a,!1)},renderToStaticNodeStream:function(a){return new wa(a,!0)},version:"16.5.1"},ya={default:xa},Aa=ya&&xa||ya;module.exports=Aa.default||Aa; |
@@ -1,5 +0,5 @@ | ||
/** @license React v16.5.0 | ||
/** @license React v16.5.1 | ||
* react-dom-test-utils.development.js | ||
* | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
@@ -85,2 +85,6 @@ * This source code is licensed under the MIT license found in the | ||
} | ||
if (args.length > 8) { | ||
// Check before the condition to catch violations early. | ||
throw new Error('warningWithoutStack() currently supports at most 8 arguments.'); | ||
} | ||
if (condition) { | ||
@@ -90,8 +94,49 @@ return; | ||
if (typeof console !== 'undefined') { | ||
var _console; | ||
var _args$map = args.map(function (item) { | ||
return '' + item; | ||
}), | ||
a = _args$map[0], | ||
b = _args$map[1], | ||
c = _args$map[2], | ||
d = _args$map[3], | ||
e = _args$map[4], | ||
f = _args$map[5], | ||
g = _args$map[6], | ||
h = _args$map[7]; | ||
var stringArgs = args.map(function (item) { | ||
return '' + item; | ||
}); | ||
(_console = console).error.apply(_console, ['Warning: ' + format].concat(stringArgs)); | ||
var message = 'Warning: ' + format; | ||
// We intentionally don't use spread (or .apply) because it breaks IE9: | ||
// https://github.com/facebook/react/issues/13610 | ||
switch (args.length) { | ||
case 0: | ||
console.error(message); | ||
break; | ||
case 1: | ||
console.error(message, a); | ||
break; | ||
case 2: | ||
console.error(message, a, b); | ||
break; | ||
case 3: | ||
console.error(message, a, b, c); | ||
break; | ||
case 4: | ||
console.error(message, a, b, c, d); | ||
break; | ||
case 5: | ||
console.error(message, a, b, c, d, e); | ||
break; | ||
case 6: | ||
console.error(message, a, b, c, d, e, f); | ||
break; | ||
case 7: | ||
console.error(message, a, b, c, d, e, f, g); | ||
break; | ||
case 8: | ||
console.error(message, a, b, c, d, e, f, g, h); | ||
break; | ||
default: | ||
throw new Error('warningWithoutStack() currently supports at most 8 arguments.'); | ||
} | ||
} | ||
@@ -103,6 +148,6 @@ try { | ||
var argIndex = 0; | ||
var message = 'Warning: ' + format.replace(/%s/g, function () { | ||
var _message = 'Warning: ' + format.replace(/%s/g, function () { | ||
return args[argIndex++]; | ||
}); | ||
throw new Error(message); | ||
throw new Error(_message); | ||
} catch (x) {} | ||
@@ -840,9 +885,10 @@ }; | ||
var getFiberCurrentPropsFromNode = _ReactDOM$__SECRET_IN[2]; | ||
var eventNameDispatchConfigs = _ReactDOM$__SECRET_IN[3]; | ||
var accumulateTwoPhaseDispatches = _ReactDOM$__SECRET_IN[4]; | ||
var accumulateDirectDispatches = _ReactDOM$__SECRET_IN[5]; | ||
var enqueueStateRestore = _ReactDOM$__SECRET_IN[6]; | ||
var restoreStateIfNeeded = _ReactDOM$__SECRET_IN[7]; | ||
var dispatchEvent = _ReactDOM$__SECRET_IN[8]; | ||
var runEventsInBatch = _ReactDOM$__SECRET_IN[9]; | ||
var injectEventPluginsByName = _ReactDOM$__SECRET_IN[3]; | ||
var eventNameDispatchConfigs = _ReactDOM$__SECRET_IN[4]; | ||
var accumulateTwoPhaseDispatches = _ReactDOM$__SECRET_IN[5]; | ||
var accumulateDirectDispatches = _ReactDOM$__SECRET_IN[6]; | ||
var enqueueStateRestore = _ReactDOM$__SECRET_IN[7]; | ||
var restoreStateIfNeeded = _ReactDOM$__SECRET_IN[8]; | ||
var dispatchEvent = _ReactDOM$__SECRET_IN[9]; | ||
var runEventsInBatch = _ReactDOM$__SECRET_IN[10]; | ||
@@ -849,0 +895,0 @@ |
@@ -1,5 +0,5 @@ | ||
/** @license React v16.5.0 | ||
/** @license React v16.5.1 | ||
* react-dom-test-utils.production.min.js | ||
* | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
@@ -20,3 +20,3 @@ * This source code is licensed under the MIT license found in the | ||
A&&(E=document.createElement("div").style,"AnimationEvent"in window||(delete C.animationend.animation,delete C.animationiteration.animation,delete C.animationstart.animation),"TransitionEvent"in window||delete C.transitionend.transition);function F(a){if(D[a])return D[a];if(!C[a])return a;var b=C[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in E)return D[a]=b[c];return a} | ||
var G=F("animationend"),H=F("animationiteration"),I=F("animationstart"),J=F("transitionend"),K=m.findDOMNode,N=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,O=N[0],P=N[3],Q=N[4],R=N[5],S=N[6],aa=N[7],T=N[8],ba=N[9];function U(){} | ||
var G=F("animationend"),H=F("animationiteration"),I=F("animationstart"),J=F("transitionend"),K=m.findDOMNode,N=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,O=N[0],P=N[4],Q=N[5],R=N[6],S=N[7],aa=N[8],T=N[9],ba=N[10];function U(){} | ||
function ca(a,b){if(!a)return[];a=t(a);if(!a)return[];for(var c=a,e=[];;){if(7===c.tag||8===c.tag||2===c.tag||3===c.tag||0===c.tag||1===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}} | ||
@@ -23,0 +23,0 @@ function V(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;p("286",b,a)}} |
@@ -1,5 +0,5 @@ | ||
/** @license React v16.5.0 | ||
/** @license React v16.5.1 | ||
* react-dom-unstable-native-dependencies.development.js | ||
* | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
@@ -145,2 +145,6 @@ * This source code is licensed under the MIT license found in the | ||
} | ||
if (args.length > 8) { | ||
// Check before the condition to catch violations early. | ||
throw new Error('warningWithoutStack() currently supports at most 8 arguments.'); | ||
} | ||
if (condition) { | ||
@@ -150,8 +154,49 @@ return; | ||
if (typeof console !== 'undefined') { | ||
var _console; | ||
var _args$map = args.map(function (item) { | ||
return '' + item; | ||
}), | ||
a = _args$map[0], | ||
b = _args$map[1], | ||
c = _args$map[2], | ||
d = _args$map[3], | ||
e = _args$map[4], | ||
f = _args$map[5], | ||
g = _args$map[6], | ||
h = _args$map[7]; | ||
var stringArgs = args.map(function (item) { | ||
return '' + item; | ||
}); | ||
(_console = console).error.apply(_console, ['Warning: ' + format].concat(stringArgs)); | ||
var message = 'Warning: ' + format; | ||
// We intentionally don't use spread (or .apply) because it breaks IE9: | ||
// https://github.com/facebook/react/issues/13610 | ||
switch (args.length) { | ||
case 0: | ||
console.error(message); | ||
break; | ||
case 1: | ||
console.error(message, a); | ||
break; | ||
case 2: | ||
console.error(message, a, b); | ||
break; | ||
case 3: | ||
console.error(message, a, b, c); | ||
break; | ||
case 4: | ||
console.error(message, a, b, c, d); | ||
break; | ||
case 5: | ||
console.error(message, a, b, c, d, e); | ||
break; | ||
case 6: | ||
console.error(message, a, b, c, d, e, f); | ||
break; | ||
case 7: | ||
console.error(message, a, b, c, d, e, f, g); | ||
break; | ||
case 8: | ||
console.error(message, a, b, c, d, e, f, g, h); | ||
break; | ||
default: | ||
throw new Error('warningWithoutStack() currently supports at most 8 arguments.'); | ||
} | ||
} | ||
@@ -163,6 +208,6 @@ try { | ||
var argIndex = 0; | ||
var message = 'Warning: ' + format.replace(/%s/g, function () { | ||
var _message = 'Warning: ' + format.replace(/%s/g, function () { | ||
return args[argIndex++]; | ||
}); | ||
throw new Error(message); | ||
throw new Error(_message); | ||
} catch (x) {} | ||
@@ -1650,7 +1695,2 @@ }; | ||
// This is used by react-native-web. | ||
function injectComponentTree(ComponentTree) { | ||
setComponentTree(ComponentTree.getFiberCurrentPropsFromNode, ComponentTree.getInstanceFromNode, ComponentTree.getNodeFromInstance); | ||
} | ||
// Inject react-dom's ComponentTree into this module. | ||
@@ -1662,9 +1702,13 @@ // Keep in sync with ReactDOM.js and ReactTestUtils.js: | ||
var getFiberCurrentPropsFromNode = _ReactDOM$__SECRET_IN[2]; | ||
var injectEventPluginsByName = _ReactDOM$__SECRET_IN[3]; | ||
setComponentTree(getFiberCurrentPropsFromNode, getInstanceFromNode, getNodeFromInstance); | ||
var ReactDOMUnstableNativeDependencies = Object.freeze({ | ||
injectComponentTree: injectComponentTree, | ||
ResponderEventPlugin: ResponderEventPlugin, | ||
ResponderTouchHistoryStore: ResponderTouchHistoryStore | ||
ResponderTouchHistoryStore: ResponderTouchHistoryStore, | ||
injectEventPluginsByName: injectEventPluginsByName | ||
}); | ||
@@ -1671,0 +1715,0 @@ |
@@ -1,5 +0,5 @@ | ||
/** @license React v16.5.0 | ||
/** @license React v16.5.1 | ||
* react-dom-unstable-native-dependencies.production.min.js | ||
* | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
@@ -35,3 +35,3 @@ * This source code is licensed under the MIT license found in the | ||
u?(h=F.getPooled(Y.responderTerminate,U,c,f),h.touchHistory=S.touchHistory,x(h,A),d=T(d,[b,h]),W(e,g)):(e=F.getPooled(Y.responderReject,e,c,f),e.touchHistory=S.touchHistory,x(e,A),d=T(d,e))):(d=T(d,b),W(e,g)),e=d):e=null}else e=null;d=U&&G(a);b=U&&H(a);g=U&&I(a);if(d=d?Y.responderStart:b?Y.responderMove:g?Y.responderEnd:null)d=F.getPooled(d,U,c,f),d.touchHistory=S.touchHistory,x(d,A),e=T(e,d);d=U&&"touchcancel"===a;if(a=U&&!d&&I(a))a:{if((a=c.touches)&&0!==a.length)for(b=0;b<a.length;b++)if(g=a[b].target, | ||
null!==g&&void 0!==g&&0!==g){h=p(g);b:{for(g=U;h;){if(g===h||g===h.alternate){g=!0;break b}h=t(h)}g=!1}if(g){a=!1;break a}}a=!0}if(a=d?Y.responderTerminate:a?Y.responderRelease:null)c=F.getPooled(a,U,c,f),c.touchHistory=S.touchHistory,x(c,A),e=T(e,c),W(null);return e},GlobalResponderHandler:null,injection:{injectGlobalResponderHandler:function(a){X.GlobalResponderHandler=a}}},Z=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ka=Z[0],la=Z[1];n=Z[2];p=ka;q=la; | ||
module.exports={injectComponentTree:function(a){var b=a.getInstanceFromNode,c=a.getNodeFromInstance;n=a.getFiberCurrentPropsFromNode;p=b;q=c},ResponderEventPlugin:X,ResponderTouchHistoryStore:S}; | ||
null!==g&&void 0!==g&&0!==g){h=p(g);b:{for(g=U;h;){if(g===h||g===h.alternate){g=!0;break b}h=t(h)}g=!1}if(g){a=!1;break a}}a=!0}if(a=d?Y.responderTerminate:a?Y.responderRelease:null)c=F.getPooled(a,U,c,f),c.touchHistory=S.touchHistory,x(c,A),e=T(e,c),W(null);return e},GlobalResponderHandler:null,injection:{injectGlobalResponderHandler:function(a){X.GlobalResponderHandler=a}}},Z=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ka=Z[3],la=Z[0],ma=Z[1];n=Z[2];p=la;q=ma; | ||
module.exports={ResponderEventPlugin:X,ResponderTouchHistoryStore:S,injectEventPluginsByName:ka}; |
{ | ||
"name": "react-dom", | ||
"version": "16.5.0", | ||
"version": "16.5.1", | ||
"description": "React package for working with the DOM.", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
"prop-types": "^15.6.2", | ||
"schedule": "^0.3.0" | ||
"schedule": "^0.4.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "peerDependencies": { |
@@ -1,5 +0,5 @@ | ||
/** @license React v16.5.0 | ||
/** @license React v16.5.1 | ||
* react-dom-server.browser.production.min.js | ||
* | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
@@ -11,10 +11,10 @@ * This source code is licensed under the MIT license found in the | ||
"Invariant Violation"}a.framesToPop=1;throw a;}}function u(a){for(var b=arguments.length-1,d="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)d+="&args[]="+encodeURIComponent(arguments[c+1]);w(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",d)}function B(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a; | ||
switch(a){case I:return"AsyncMode";case D:return"Fragment";case J:return"Portal";case K:return"Profiler";case L:return"StrictMode";case Z:return"Placeholder"}if("object"===typeof a){switch(a.$$typeof){case M:return"Context.Consumer";case E:return"Context.Provider";case N:return a=a.render,a=a.displayName||a.name||"",""!==a?"ForwardRef("+a+")":"ForwardRef"}if("function"===typeof a.then&&(a=1===a._reactStatus?a._reactResult:null))return B(a)}return null}function O(a){if(P.call(Q,a))return!0;if(P.call(R, | ||
a))return!1;if(aa.test(a))return Q[a]=!0;R[a]=!0;return!1}function ba(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==d)return!d.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}function ca(a,b,d,c){if(null===b||"undefined"===typeof b||ba(a,b,d,c))return!0;if(c)return!1;if(null!==d)switch(d.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)|| | ||
1>b}return!1}function q(a,b,d,c,k){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=k;this.mustUseProperty=d;this.propertyName=a;this.type=b}function z(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=da.exec(a);if(b){var d="",c,k=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}k!==c&&(d+=a.substring(k, | ||
c));k=c+1;d+=b}a=k!==c?d+a.substring(k,c):d}return a}function S(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ea(a){if(void 0===a||null===a)return a;var b="";t.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function fa(a,b){if(a=a.contextTypes){var d={},c;for(c in a)d[c]=b[c];b=d}else b=T;return b}function U(a,b){void 0===a&&u("152",B(b)||"Component")}function ha(a, | ||
b){function d(c,k){var d=fa(k,b),f=[],h=!1,g={isMounted:function(a){return!1},enqueueForceUpdate:function(a){if(null===f)return null},enqueueReplaceState:function(a,b){h=!0;f=[b]},enqueueSetState:function(a,b){if(null===f)return null;f.push(b)}},e=void 0;if(k.prototype&&k.prototype.isReactComponent){if(e=new k(c.props,d,g),"function"===typeof k.getDerivedStateFromProps){var l=k.getDerivedStateFromProps.call(null,c.props,e.state);null!=l&&(e.state=x({},e.state,l))}}else if(e=k(c.props,d,g),null==e|| | ||
null==e.render){a=e;U(a,k);return}e.props=c.props;e.context=d;e.updater=g;g=e.state;void 0===g&&(e.state=g=null);if("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount)if("function"===typeof e.componentWillMount&&"function"!==typeof k.getDerivedStateFromProps&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&"function"!==typeof k.getDerivedStateFromProps&&e.UNSAFE_componentWillMount(),f.length){g=f;var p=h;f=null;h=!1;if(p&&1===g.length)e.state= | ||
g[0];else{l=p?g[0]:e.state;var n=!0;for(p=p?1:0;p<g.length;p++){var r=g[p];r="function"===typeof r?r.call(e,l,c.props,d):r;null!=r&&(n?(n=!1,l=x({},l,r)):x(l,r))}e.state=l}}else f=null;a=e.render();U(a,k);c=void 0;if("function"===typeof e.getChildContext&&(d=k.childContextTypes,"object"===typeof d)){c=e.getChildContext();for(var q in c)q in d?void 0:u("108",B(k)||"Unknown",q)}c&&(b=x({},b,c))}for(;t.isValidElement(a);){var c=a,k=c.type;if("function"!==typeof k)break;d(c,k)}return{child:a,context:b}} | ||
var x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,l="function"===typeof Symbol&&Symbol.for,J=l?Symbol.for("react.portal"):60106,D=l?Symbol.for("react.fragment"):60107,L=l?Symbol.for("react.strict_mode"):60108,K=l?Symbol.for("react.profiler"):60114,E=l?Symbol.for("react.provider"):60109,M=l?Symbol.for("react.context"):60110,I=l?Symbol.for("react.async_mode"):60111,N=l?Symbol.for("react.forward_ref"):60112,Z=l?Symbol.for("react.placeholder"):60113,aa=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, | ||
switch(a){case I:return"AsyncMode";case D:return"Fragment";case J:return"Portal";case K:return"Profiler";case L:return"StrictMode";case Z:return"Placeholder"}if("object"===typeof a){switch(a.$$typeof){case M:return"Context.Consumer";case E:return"Context.Provider";case N:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef")}if("function"===typeof a.then&&(a=1===a._reactStatus?a._reactResult:null))return B(a)}return null}function O(a){if(P.call(Q, | ||
a))return!0;if(P.call(R,a))return!1;if(aa.test(a))return Q[a]=!0;R[a]=!0;return!1}function ba(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==d)return!d.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}function ca(a,b,d,c){if(null===b||"undefined"===typeof b||ba(a,b,d,c))return!0;if(c)return!1;if(null!==d)switch(d.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b); | ||
case 6:return isNaN(b)||1>b}return!1}function q(a,b,d,c,k){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=k;this.mustUseProperty=d;this.propertyName=a;this.type=b}function z(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=da.exec(a);if(b){var d="",c,k=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}k!== | ||
c&&(d+=a.substring(k,c));k=c+1;d+=b}a=k!==c?d+a.substring(k,c):d}return a}function S(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ea(a){if(void 0===a||null===a)return a;var b="";t.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function fa(a,b){if(a=a.contextTypes){var d={},c;for(c in a)d[c]=b[c];b=d}else b=T;return b}function U(a,b){void 0===a&&u("152",B(b)||"Component")} | ||
function ha(a,b){function d(c,k){var d=fa(k,b),f=[],h=!1,g={isMounted:function(a){return!1},enqueueForceUpdate:function(a){if(null===f)return null},enqueueReplaceState:function(a,b){h=!0;f=[b]},enqueueSetState:function(a,b){if(null===f)return null;f.push(b)}},e=void 0;if(k.prototype&&k.prototype.isReactComponent){if(e=new k(c.props,d,g),"function"===typeof k.getDerivedStateFromProps){var l=k.getDerivedStateFromProps.call(null,c.props,e.state);null!=l&&(e.state=x({},e.state,l))}}else if(e=k(c.props, | ||
d,g),null==e||null==e.render){a=e;U(a,k);return}e.props=c.props;e.context=d;e.updater=g;g=e.state;void 0===g&&(e.state=g=null);if("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount)if("function"===typeof e.componentWillMount&&"function"!==typeof k.getDerivedStateFromProps&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&"function"!==typeof k.getDerivedStateFromProps&&e.UNSAFE_componentWillMount(),f.length){g=f;var p=h;f=null;h=!1;if(p&& | ||
1===g.length)e.state=g[0];else{l=p?g[0]:e.state;var n=!0;for(p=p?1:0;p<g.length;p++){var r=g[p];r="function"===typeof r?r.call(e,l,c.props,d):r;null!=r&&(n?(n=!1,l=x({},l,r)):x(l,r))}e.state=l}}else f=null;a=e.render();U(a,k);c=void 0;if("function"===typeof e.getChildContext&&(d=k.childContextTypes,"object"===typeof d)){c=e.getChildContext();for(var q in c)q in d?void 0:u("108",B(k)||"Unknown",q)}c&&(b=x({},b,c))}for(;t.isValidElement(a);){var c=a,k=c.type;if("function"!==typeof k)break;d(c,k)}return{child:a, | ||
context:b}}var x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,l="function"===typeof Symbol&&Symbol.for,J=l?Symbol.for("react.portal"):60106,D=l?Symbol.for("react.fragment"):60107,L=l?Symbol.for("react.strict_mode"):60108,K=l?Symbol.for("react.profiler"):60114,E=l?Symbol.for("react.provider"):60109,M=l?Symbol.for("react.context"):60110,I=l?Symbol.for("react.async_mode"):60111,N=l?Symbol.for("react.forward_ref"):60112,Z=l?Symbol.for("react.placeholder"):60113,aa=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, | ||
P=Object.prototype.hasOwnProperty,R={},Q={},p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){p[a]=new q(a,0,!1,a,null)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];p[b]=new q(b,1,!1,a[1],null)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){p[a]=new q(a,2,!1,a.toLowerCase(), | ||
@@ -37,2 +37,2 @@ null)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){p[a]=new q(a,2,!1,a,null)});"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){p[a]=new q(a,3,!1,a.toLowerCase(),null)});["checked","multiple","muted","selected"].forEach(function(a){p[a]=new q(a,3,!0,a,null)});["capture","download"].forEach(function(a){p[a]= | ||
">");a:{m=f.dangerouslySetInnerHTML;if(null!=m){if(null!=m.__html){m=m.__html;break a}}else if(m=f.children,"string"===typeof m||"number"===typeof m){m=z(m);break a}m=null}null!=m?(f=[],ma[b]&&"\n"===m.charAt(0)&&(v+="\n"),v+=m):f=y(f.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?S(a):"http://www.w3.org/2000/svg"===c&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":c;this.stack.push({domNamespace:c,type:b,children:f,childIndex:0,context:d,footer:h});this.previousWasTextNode= | ||
!1;return v};return a}();l={renderToString:function(a){return(new X(a,!1)).read(Infinity)},renderToStaticMarkup:function(a){return(new X(a,!0)).read(Infinity)},renderToNodeStream:function(){u("207")},renderToStaticNodeStream:function(){u("208")},version:"16.5.0"};var Y={default:l};l=Y&&l||Y;return l.default||l}); | ||
!1;return v};return a}();l={renderToString:function(a){return(new X(a,!1)).read(Infinity)},renderToStaticMarkup:function(a){return(new X(a,!0)).read(Infinity)},renderToNodeStream:function(){u("207")},renderToStaticNodeStream:function(){u("208")},version:"16.5.1"};var Y={default:l};l=Y&&l||Y;return l.default||l}); |
@@ -1,5 +0,5 @@ | ||
/** @license React v16.5.0 | ||
/** @license React v16.5.1 | ||
* react-dom-test-utils.development.js | ||
* | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
@@ -85,2 +85,6 @@ * This source code is licensed under the MIT license found in the | ||
} | ||
if (args.length > 8) { | ||
// Check before the condition to catch violations early. | ||
throw new Error('warningWithoutStack() currently supports at most 8 arguments.'); | ||
} | ||
if (condition) { | ||
@@ -90,8 +94,49 @@ return; | ||
if (typeof console !== 'undefined') { | ||
var _console; | ||
var _args$map = args.map(function (item) { | ||
return '' + item; | ||
}), | ||
a = _args$map[0], | ||
b = _args$map[1], | ||
c = _args$map[2], | ||
d = _args$map[3], | ||
e = _args$map[4], | ||
f = _args$map[5], | ||
g = _args$map[6], | ||
h = _args$map[7]; | ||
var stringArgs = args.map(function (item) { | ||
return '' + item; | ||
}); | ||
(_console = console).error.apply(_console, ['Warning: ' + format].concat(stringArgs)); | ||
var message = 'Warning: ' + format; | ||
// We intentionally don't use spread (or .apply) because it breaks IE9: | ||
// https://github.com/facebook/react/issues/13610 | ||
switch (args.length) { | ||
case 0: | ||
console.error(message); | ||
break; | ||
case 1: | ||
console.error(message, a); | ||
break; | ||
case 2: | ||
console.error(message, a, b); | ||
break; | ||
case 3: | ||
console.error(message, a, b, c); | ||
break; | ||
case 4: | ||
console.error(message, a, b, c, d); | ||
break; | ||
case 5: | ||
console.error(message, a, b, c, d, e); | ||
break; | ||
case 6: | ||
console.error(message, a, b, c, d, e, f); | ||
break; | ||
case 7: | ||
console.error(message, a, b, c, d, e, f, g); | ||
break; | ||
case 8: | ||
console.error(message, a, b, c, d, e, f, g, h); | ||
break; | ||
default: | ||
throw new Error('warningWithoutStack() currently supports at most 8 arguments.'); | ||
} | ||
} | ||
@@ -103,6 +148,6 @@ try { | ||
var argIndex = 0; | ||
var message = 'Warning: ' + format.replace(/%s/g, function () { | ||
var _message = 'Warning: ' + format.replace(/%s/g, function () { | ||
return args[argIndex++]; | ||
}); | ||
throw new Error(message); | ||
throw new Error(_message); | ||
} catch (x) {} | ||
@@ -840,9 +885,10 @@ }; | ||
var getFiberCurrentPropsFromNode = _ReactDOM$__SECRET_IN[2]; | ||
var eventNameDispatchConfigs = _ReactDOM$__SECRET_IN[3]; | ||
var accumulateTwoPhaseDispatches = _ReactDOM$__SECRET_IN[4]; | ||
var accumulateDirectDispatches = _ReactDOM$__SECRET_IN[5]; | ||
var enqueueStateRestore = _ReactDOM$__SECRET_IN[6]; | ||
var restoreStateIfNeeded = _ReactDOM$__SECRET_IN[7]; | ||
var dispatchEvent = _ReactDOM$__SECRET_IN[8]; | ||
var runEventsInBatch = _ReactDOM$__SECRET_IN[9]; | ||
var injectEventPluginsByName = _ReactDOM$__SECRET_IN[3]; | ||
var eventNameDispatchConfigs = _ReactDOM$__SECRET_IN[4]; | ||
var accumulateTwoPhaseDispatches = _ReactDOM$__SECRET_IN[5]; | ||
var accumulateDirectDispatches = _ReactDOM$__SECRET_IN[6]; | ||
var enqueueStateRestore = _ReactDOM$__SECRET_IN[7]; | ||
var restoreStateIfNeeded = _ReactDOM$__SECRET_IN[8]; | ||
var dispatchEvent = _ReactDOM$__SECRET_IN[9]; | ||
var runEventsInBatch = _ReactDOM$__SECRET_IN[10]; | ||
@@ -849,0 +895,0 @@ |
@@ -1,5 +0,5 @@ | ||
/** @license React v16.5.0 | ||
/** @license React v16.5.1 | ||
* react-dom-test-utils.production.min.js | ||
* | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
@@ -20,10 +20,10 @@ * This source code is licensed under the MIT license found in the | ||
"AnimationIteration"),animationstart:x("Animation","AnimationStart"),transitionend:x("Transition","TransitionEnd")},z={},D={};m&&(D=document.createElement("div").style,"AnimationEvent"in window||(delete r.animationend.animation,delete r.animationiteration.animation,delete r.animationstart.animation),"TransitionEvent"in window||delete r.transitionend.transition);m=y("animationend");var W=y("animationiteration"),X=y("animationstart"),Y=y("transitionend"),V=n.findDOMNode,p=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events, | ||
O=p[0],F=p[3],P=p[4],Q=p[5],R=p[6],T=p[7],G=p[8],S=p[9],f={renderIntoDocument:function(a){var b=document.createElement("div");return n.render(a,b)},isElement:function(a){return l.isValidElement(a)},isElementOfType:function(a,b){return l.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&l.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return f.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&& | ||
"function"===typeof a.setState},isCompositeComponentWithType:function(a,b){return f.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){q(a,"findAllInRenderedTree");return a?M(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){q(a,"scryRenderedDOMComponentsWithClass");return f.findAllInRenderedTree(a,function(a){if(f.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);Array.isArray(b)|| | ||
(void 0===b?k("11"):void 0,b=b.split(/\s+/));return b.every(function(a){return-1!==d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){q(a,"findRenderedDOMComponentWithClass");a=f.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){q(a,"scryRenderedDOMComponentsWithTag");return f.findAllInRenderedTree(a,function(a){return f.isDOMComponent(a)&& | ||
a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){q(a,"findRenderedDOMComponentWithTag");a=f.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){q(a,"scryRenderedComponentsWithType");return f.findAllInRenderedTree(a,function(a){return f.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){q(a, | ||
"findRenderedComponentWithType");a=f.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return l.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{}};(function(){f.Simulate={};var a=void 0;for(a in F)f.Simulate[a]= | ||
N(a)})();[["abort","abort"],[m,"animationEnd"],[W,"animationIteration"],[X,"animationStart"],["blur","blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragenter","dragEnter"],["dragexit", | ||
"dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag","drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown","mouseDown"],["mousemove", | ||
"mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled","stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"], | ||
["touchstart","touchStart"],[Y,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];f.SimulateNative[b]=U(b,a[0])});m=(m={default:f},f)||m;return m.default||m}); | ||
O=p[0],F=p[4],P=p[5],Q=p[6],R=p[7],T=p[8],G=p[9],S=p[10],f={renderIntoDocument:function(a){var b=document.createElement("div");return n.render(a,b)},isElement:function(a){return l.isValidElement(a)},isElementOfType:function(a,b){return l.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&l.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return f.isDOMComponent(a)?!1:null!=a&&"function"=== | ||
typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,b){return f.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){q(a,"findAllInRenderedTree");return a?M(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){q(a,"scryRenderedDOMComponentsWithClass");return f.findAllInRenderedTree(a,function(a){if(f.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d= | ||
c.split(/\s+/);Array.isArray(b)||(void 0===b?k("11"):void 0,b=b.split(/\s+/));return b.every(function(a){return-1!==d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){q(a,"findRenderedDOMComponentWithClass");a=f.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){q(a,"scryRenderedDOMComponentsWithTag");return f.findAllInRenderedTree(a, | ||
function(a){return f.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){q(a,"findRenderedDOMComponentWithTag");a=f.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){q(a,"scryRenderedComponentsWithType");return f.findAllInRenderedTree(a,function(a){return f.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a, | ||
b){q(a,"findRenderedComponentWithType");a=f.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return l.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{}};(function(){f.Simulate={};var a=void 0; | ||
for(a in F)f.Simulate[a]=N(a)})();[["abort","abort"],[m,"animationEnd"],[W,"animationIteration"],[X,"animationStart"],["blur","blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragenter", | ||
"dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag","drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown", | ||
"mouseDown"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled","stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"], | ||
["touchmove","touchMove"],["touchstart","touchStart"],[Y,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];f.SimulateNative[b]=U(b,a[0])});m=(m={default:f},f)||m;return m.default||m}); |
@@ -1,5 +0,5 @@ | ||
/** @license React v16.5.0 | ||
/** @license React v16.5.1 | ||
* react-dom-unstable-native-dependencies.development.js | ||
* | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
@@ -142,2 +142,6 @@ * This source code is licensed under the MIT license found in the | ||
} | ||
if (args.length > 8) { | ||
// Check before the condition to catch violations early. | ||
throw new Error('warningWithoutStack() currently supports at most 8 arguments.'); | ||
} | ||
if (condition) { | ||
@@ -147,8 +151,49 @@ return; | ||
if (typeof console !== 'undefined') { | ||
var _console; | ||
var _args$map = args.map(function (item) { | ||
return '' + item; | ||
}), | ||
a = _args$map[0], | ||
b = _args$map[1], | ||
c = _args$map[2], | ||
d = _args$map[3], | ||
e = _args$map[4], | ||
f = _args$map[5], | ||
g = _args$map[6], | ||
h = _args$map[7]; | ||
var stringArgs = args.map(function (item) { | ||
return '' + item; | ||
}); | ||
(_console = console).error.apply(_console, ['Warning: ' + format].concat(stringArgs)); | ||
var message = 'Warning: ' + format; | ||
// We intentionally don't use spread (or .apply) because it breaks IE9: | ||
// https://github.com/facebook/react/issues/13610 | ||
switch (args.length) { | ||
case 0: | ||
console.error(message); | ||
break; | ||
case 1: | ||
console.error(message, a); | ||
break; | ||
case 2: | ||
console.error(message, a, b); | ||
break; | ||
case 3: | ||
console.error(message, a, b, c); | ||
break; | ||
case 4: | ||
console.error(message, a, b, c, d); | ||
break; | ||
case 5: | ||
console.error(message, a, b, c, d, e); | ||
break; | ||
case 6: | ||
console.error(message, a, b, c, d, e, f); | ||
break; | ||
case 7: | ||
console.error(message, a, b, c, d, e, f, g); | ||
break; | ||
case 8: | ||
console.error(message, a, b, c, d, e, f, g, h); | ||
break; | ||
default: | ||
throw new Error('warningWithoutStack() currently supports at most 8 arguments.'); | ||
} | ||
} | ||
@@ -160,6 +205,6 @@ try { | ||
var argIndex = 0; | ||
var message = 'Warning: ' + format.replace(/%s/g, function () { | ||
var _message = 'Warning: ' + format.replace(/%s/g, function () { | ||
return args[argIndex++]; | ||
}); | ||
throw new Error(message); | ||
throw new Error(_message); | ||
} catch (x) {} | ||
@@ -1651,7 +1696,2 @@ }; | ||
// This is used by react-native-web. | ||
function injectComponentTree(ComponentTree) { | ||
setComponentTree(ComponentTree.getFiberCurrentPropsFromNode, ComponentTree.getInstanceFromNode, ComponentTree.getNodeFromInstance); | ||
} | ||
// Inject react-dom's ComponentTree into this module. | ||
@@ -1663,9 +1703,13 @@ // Keep in sync with ReactDOM.js and ReactTestUtils.js: | ||
var getFiberCurrentPropsFromNode = _ReactDOM$__SECRET_IN[2]; | ||
var injectEventPluginsByName = _ReactDOM$__SECRET_IN[3]; | ||
setComponentTree(getFiberCurrentPropsFromNode, getInstanceFromNode, getNodeFromInstance); | ||
var ReactDOMUnstableNativeDependencies = Object.freeze({ | ||
injectComponentTree: injectComponentTree, | ||
ResponderEventPlugin: ResponderEventPlugin, | ||
ResponderTouchHistoryStore: ResponderTouchHistoryStore | ||
ResponderTouchHistoryStore: ResponderTouchHistoryStore, | ||
injectEventPluginsByName: injectEventPluginsByName | ||
}); | ||
@@ -1672,0 +1716,0 @@ |
@@ -1,5 +0,5 @@ | ||
/** @license React v16.5.0 | ||
/** @license React v16.5.1 | ||
* react-dom-unstable-native-dependencies.production.min.js | ||
* | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
@@ -9,23 +9,23 @@ * This source code is licensed under the MIT license found in the | ||
*/ | ||
'use strict';(function(q,u){"object"===typeof exports&&"undefined"!==typeof module?module.exports=u(require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["react-dom","react"],u):q.ReactDOMUnstableNativeDependencies=u(q.ReactDOM,q.React)})(this,function(q,u){function Z(a,b,c,f,e,d,g,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var k=[c,f, | ||
e,d,g,h],m=0;a=Error(b.replace(/%s/g,function(){return k[m++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}function x(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=0;f<b;f++)c+="&args[]="+encodeURIComponent(arguments[f+1]);Z(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}function M(a,b,c){N=a;O=b;P=c}function Q(a){var b=a._dispatchListeners, | ||
c=a._dispatchInstances;Array.isArray(b)?x("103"):void 0;a.currentTarget=b?P(c):null;b=b?b(a):null;a.currentTarget=null;a._dispatchListeners=null;a._dispatchInstances=null;return b}function r(a){do a=a.return;while(a&&7!==a.tag);return a?a:null}function R(a,b,c){for(var f=[];a;)f.push(a),a=r(a);for(a=f.length;0<a--;)b(f[a],"captured",c);for(a=0;a<f.length;a++)b(f[a],"bubbled",c)}function C(a,b){null==b?x("30"):void 0;if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a, | ||
b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function v(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}function S(a,b){var c=a.stateNode;if(!c)return null;var f=N(c);if(!f)return null;c=f[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":(f=!f.disabled)||(a=a.type,f=!("button"===a||"input"=== | ||
a||"select"===a||"textarea"===a));a=!f;break a;default:a=!1}if(a)return null;c&&"function"!==typeof c?x("231",b,typeof c):void 0;return c}function T(a,b,c){if(b=S(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=C(c._dispatchListeners,b),c._dispatchInstances=C(c._dispatchInstances,a)}function aa(a){a&&a.dispatchConfig.phasedRegistrationNames&&R(a._targetInst,T,a)}function ba(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?r(b):null;R(b,T,a)}}function y(a){if(a&& | ||
a.dispatchConfig.registrationName){var b=a._targetInst;if(b&&a&&a.dispatchConfig.registrationName){var c=S(b,a.dispatchConfig.registrationName);c&&(a._dispatchListeners=C(a._dispatchListeners,c),a._dispatchInstances=C(a._dispatchInstances,b))}}}function D(){return!0}function E(){return!1}function z(a,b,c,f){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var e in a)a.hasOwnProperty(e)&&((b=a[e])?this[e]=b(c):"target"===e?this.target=f:this[e]=c[e]);this.isDefaultPrevented= | ||
(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?D:E;this.isPropagationStopped=E;return this}function ca(a,b,c,f){if(this.eventPool.length){var e=this.eventPool.pop();this.call(e,a,b,c,f);return e}return new this(a,b,c,f)}function da(a){a instanceof this?void 0:x("279");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function U(a){a.eventPool=[];a.getPooled=ca;a.release=da}function A(a){return"touchstart"===a||"mousedown"===a}function F(a){return"touchmove"===a||"mousemove"=== | ||
a}function G(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a}function l(a){return a.timeStamp||a.timestamp}function J(a){a=a.identifier;null==a?x("138"):void 0;return a}function ea(a){var b=J(a),c=n[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=l(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=l(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=l(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:l(a), | ||
currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:l(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:l(a)},n[b]=c);p.mostRecentTimeStamp=l(a)}function fa(a){var b=n[J(a)];b?(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=l(a),p.mostRecentTimeStamp=l(a)):console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n","Touch Bank: %s", | ||
V(a),W())}function ha(a){var b=n[J(a)];b?(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=l(a),p.mostRecentTimeStamp=l(a)):console.error("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",V(a),W())}function V(a){return JSON.stringify({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY,timestamp:l(a)})}function W(){var a=JSON.stringify(n.slice(0, | ||
20));20<n.length&&(a+=" (original size: "+n.length+")");return a}function B(a,b){null==b?x("29"):void 0;return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b):[a,b]}var N=null,O=null,P=null,K=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign;K(z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=D)},stopPropagation:function(){var a= | ||
'use strict';(function(n,p){"object"===typeof exports&&"undefined"!==typeof module?module.exports=p(require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["react-dom","react"],p):n.ReactDOMUnstableNativeDependencies=p(n.ReactDOM,n.React)})(this,function(n,p){function Y(a,b,c,f,e,d,g,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var k=[c,f, | ||
e,d,g,h],m=0;a=Error(b.replace(/%s/g,function(){return k[m++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}function x(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=0;f<b;f++)c+="&args[]="+encodeURIComponent(arguments[f+1]);Y(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}function M(a){var b=a._dispatchListeners,c=a._dispatchInstances; | ||
Array.isArray(b)?x("103"):void 0;a.currentTarget=b?N(c):null;b=b?b(a):null;a.currentTarget=null;a._dispatchListeners=null;a._dispatchInstances=null;return b}function t(a){do a=a.return;while(a&&7!==a.tag);return a?a:null}function O(a,b,c){for(var f=[];a;)f.push(a),a=t(a);for(a=f.length;0<a--;)b(f[a],"captured",c);for(a=0;a<f.length;a++)b(f[a],"bubbled",c)}function C(a,b){null==b?x("30"):void 0;if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)? | ||
[a].concat(b):[a,b]}function v(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}function P(a,b){var c=a.stateNode;if(!c)return null;var f=Q(c);if(!f)return null;c=f[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":(f=!f.disabled)||(a=a.type,f=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!f;break a; | ||
default:a=!1}if(a)return null;c&&"function"!==typeof c?x("231",b,typeof c):void 0;return c}function R(a,b,c){if(b=P(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=C(c._dispatchListeners,b),c._dispatchInstances=C(c._dispatchInstances,a)}function Z(a){a&&a.dispatchConfig.phasedRegistrationNames&&O(a._targetInst,R,a)}function aa(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?t(b):null;O(b,R,a)}}function y(a){if(a&&a.dispatchConfig.registrationName){var b= | ||
a._targetInst;if(b&&a&&a.dispatchConfig.registrationName){var c=P(b,a.dispatchConfig.registrationName);c&&(a._dispatchListeners=C(a._dispatchListeners,c),a._dispatchInstances=C(a._dispatchInstances,b))}}}function D(){return!0}function E(){return!1}function z(a,b,c,f){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var e in a)a.hasOwnProperty(e)&&((b=a[e])?this[e]=b(c):"target"===e?this.target=f:this[e]=c[e]);this.isDefaultPrevented=(null!=c.defaultPrevented? | ||
c.defaultPrevented:!1===c.returnValue)?D:E;this.isPropagationStopped=E;return this}function ba(a,b,c,f){if(this.eventPool.length){var e=this.eventPool.pop();this.call(e,a,b,c,f);return e}return new this(a,b,c,f)}function ca(a){a instanceof this?void 0:x("279");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function S(a){a.eventPool=[];a.getPooled=ba;a.release=ca}function A(a){return"touchstart"===a||"mousedown"===a}function F(a){return"touchmove"===a||"mousemove"===a}function G(a){return"touchend"=== | ||
a||"touchcancel"===a||"mouseup"===a}function l(a){return a.timeStamp||a.timestamp}function J(a){a=a.identifier;null==a?x("138"):void 0;return a}function da(a){var b=J(a),c=q[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=l(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=l(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=l(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:l(a),currentPageX:a.pageX, | ||
currentPageY:a.pageY,currentTimeStamp:l(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:l(a)},q[b]=c);r.mostRecentTimeStamp=l(a)}function ea(a){var b=q[J(a)];b?(b.touchActive=!0,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=l(a),r.mostRecentTimeStamp=l(a)):console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n","Touch Bank: %s",T(a),U())} | ||
function fa(a){var b=q[J(a)];b?(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=l(a),r.mostRecentTimeStamp=l(a)):console.error("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",T(a),U())}function T(a){return JSON.stringify({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY,timestamp:l(a)})}function U(){var a=JSON.stringify(q.slice(0, | ||
20));20<q.length&&(a+=" (original size: "+q.length+")");return a}function B(a,b){null==b?x("29"):void 0;return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b):[a,b]}var Q=null,V=null,N=null,K=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign;K(z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=D)},stopPropagation:function(){var a= | ||
this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=D)},persist:function(){this.isPersistent=D},isPersistent:E,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=E;this._dispatchInstances=this._dispatchListeners=null}});z.Interface={type:null,target:null,currentTarget:function(){return null}, | ||
eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};z.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,f=function(){};f.prototype=c.prototype;f=new f;K(f,b.prototype);b.prototype=f;b.prototype.constructor=b;b.Interface=K({},c.Interface,a);b.extend=c.extend;U(b);return b};U(z);var w=z.extend({touchHistory:function(a){return null}});u=["touchstart","mousedown"];var X=["touchmove","mousemove"], | ||
Y=["touchcancel","touchend","mouseup"],n=[],p={touchBank:n,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},t={recordTouchTrack:function(a,b){if(F(a))b.changedTouches.forEach(fa);else if(A(a))b.changedTouches.forEach(ea),p.numberActiveTouches=b.touches.length,1===p.numberActiveTouches&&(p.indexOfSingleActiveTouch=b.touches[0].identifier);else if(G(a)&&(b.changedTouches.forEach(ha),p.numberActiveTouches=b.touches.length,1===p.numberActiveTouches))for(a=0;a<n.length;a++)if(b= | ||
n[a],null!=b&&b.touchActive){p.indexOfSingleActiveTouch=a;break}},touchHistory:p},k=null,H=0,L=function(a,b){var c=k;k=a;if(null!==I.GlobalResponderHandler)I.GlobalResponderHandler.onChange(c,a,b)},m={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"},dependencies:u},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",captured:"onScrollShouldSetResponderCapture"},dependencies:["scroll"]}, | ||
selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",captured:"onSelectionChangeShouldSetResponderCapture"},dependencies:["selectionchange"]},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"},dependencies:X},responderStart:{registrationName:"onResponderStart",dependencies:u},responderMove:{registrationName:"onResponderMove",dependencies:X},responderEnd:{registrationName:"onResponderEnd", | ||
dependencies:Y},responderRelease:{registrationName:"onResponderRelease",dependencies:Y},responderTerminationRequest:{registrationName:"onResponderTerminationRequest",dependencies:[]},responderGrant:{registrationName:"onResponderGrant",dependencies:[]},responderReject:{registrationName:"onResponderReject",dependencies:[]},responderTerminate:{registrationName:"onResponderTerminate",dependencies:[]}},I={_getResponder:function(){return k},eventTypes:m,extractEvents:function(a,b,c,f){if(A(a))H+=1;else if(G(a))if(0<= | ||
H)--H;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."),null;t.recordTouchTrack(a,c);if(b&&("scroll"===a&&!c.responderIgnoreScroll||0<H&&"selectionchange"===a||A(a)||F(a))){var e=A(a)?m.startShouldSetResponder:F(a)?m.moveShouldSetResponder:"selectionchange"===a?m.selectionChangeShouldSetResponder:m.scrollShouldSetResponder;if(k)b:{var d=k;for(var g=0,h=d;h;h=r(h))g++;h=0;for(var l=b;l;l=r(l))h++;for(;0<g-h;)d=r(d),g--;for(;0<h-g;)b=r(b),h--;for(;g--;){if(d=== | ||
b||d===b.alternate)break b;d=r(d);b=r(b)}d=null}else d=b;b=d===k;d=w.getPooled(e,d,c,f);d.touchHistory=t.touchHistory;b?v(d,ba):v(d,aa);b:{e=d._dispatchListeners;b=d._dispatchInstances;if(Array.isArray(e))for(g=0;g<e.length&&!d.isPropagationStopped();g++){if(e[g](d,b[g])){e=b[g];break b}}else if(e&&e(d,b)){e=b;break b}e=null}d._dispatchInstances=null;d._dispatchListeners=null;d.isPersistent()||d.constructor.release(d);e&&e!==k?(d=void 0,b=w.getPooled(m.responderGrant,e,c,f),b.touchHistory=t.touchHistory, | ||
v(b,y),g=!0===Q(b),k?(h=w.getPooled(m.responderTerminationRequest,k,c,f),h.touchHistory=t.touchHistory,v(h,y),l=!h._dispatchListeners||Q(h),h.isPersistent()||h.constructor.release(h),l?(h=w.getPooled(m.responderTerminate,k,c,f),h.touchHistory=t.touchHistory,v(h,y),d=B(d,[b,h]),L(e,g)):(e=w.getPooled(m.responderReject,e,c,f),e.touchHistory=t.touchHistory,v(e,y),d=B(d,e))):(d=B(d,b),L(e,g)),e=d):e=null}else e=null;d=k&&A(a);b=k&&F(a);g=k&&G(a);if(d=d?m.responderStart:b?m.responderMove:g?m.responderEnd: | ||
null)d=w.getPooled(d,k,c,f),d.touchHistory=t.touchHistory,v(d,y),e=B(e,d);d=k&&"touchcancel"===a;if(a=k&&!d&&G(a))a:{if((a=c.touches)&&0!==a.length)for(b=0;b<a.length;b++)if(g=a[b].target,null!==g&&void 0!==g&&0!==g){h=O(g);b:{for(g=k;h;){if(g===h||g===h.alternate){g=!0;break b}h=r(h)}g=!1}if(g){a=!1;break a}}a=!0}if(a=d?m.responderTerminate:a?m.responderRelease:null)c=w.getPooled(a,k,c,f),c.touchHistory=t.touchHistory,v(c,y),e=B(e,c),L(null);return e},GlobalResponderHandler:null,injection:{injectGlobalResponderHandler:function(a){I.GlobalResponderHandler= | ||
a}}};q=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;M(q[2],q[0],q[1]);return{injectComponentTree:function(a){M(a.getFiberCurrentPropsFromNode,a.getInstanceFromNode,a.getNodeFromInstance)},ResponderEventPlugin:I,ResponderTouchHistoryStore:t}}); | ||
eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};z.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,f=function(){};f.prototype=c.prototype;f=new f;K(f,b.prototype);b.prototype=f;b.prototype.constructor=b;b.Interface=K({},c.Interface,a);b.extend=c.extend;S(b);return b};S(z);var w=z.extend({touchHistory:function(a){return null}});p=["touchstart","mousedown"];var W=["touchmove","mousemove"], | ||
X=["touchcancel","touchend","mouseup"],q=[],r={touchBank:q,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},u={recordTouchTrack:function(a,b){if(F(a))b.changedTouches.forEach(ea);else if(A(a))b.changedTouches.forEach(da),r.numberActiveTouches=b.touches.length,1===r.numberActiveTouches&&(r.indexOfSingleActiveTouch=b.touches[0].identifier);else if(G(a)&&(b.changedTouches.forEach(fa),r.numberActiveTouches=b.touches.length,1===r.numberActiveTouches))for(a=0;a<q.length;a++)if(b= | ||
q[a],null!=b&&b.touchActive){r.indexOfSingleActiveTouch=a;break}},touchHistory:r},k=null,H=0,L=function(a,b){var c=k;k=a;if(null!==I.GlobalResponderHandler)I.GlobalResponderHandler.onChange(c,a,b)},m={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"},dependencies:p},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",captured:"onScrollShouldSetResponderCapture"},dependencies:["scroll"]}, | ||
selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",captured:"onSelectionChangeShouldSetResponderCapture"},dependencies:["selectionchange"]},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"},dependencies:W},responderStart:{registrationName:"onResponderStart",dependencies:p},responderMove:{registrationName:"onResponderMove",dependencies:W},responderEnd:{registrationName:"onResponderEnd", | ||
dependencies:X},responderRelease:{registrationName:"onResponderRelease",dependencies:X},responderTerminationRequest:{registrationName:"onResponderTerminationRequest",dependencies:[]},responderGrant:{registrationName:"onResponderGrant",dependencies:[]},responderReject:{registrationName:"onResponderReject",dependencies:[]},responderTerminate:{registrationName:"onResponderTerminate",dependencies:[]}},I={_getResponder:function(){return k},eventTypes:m,extractEvents:function(a,b,c,f){if(A(a))H+=1;else if(G(a))if(0<= | ||
H)--H;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."),null;u.recordTouchTrack(a,c);if(b&&("scroll"===a&&!c.responderIgnoreScroll||0<H&&"selectionchange"===a||A(a)||F(a))){var e=A(a)?m.startShouldSetResponder:F(a)?m.moveShouldSetResponder:"selectionchange"===a?m.selectionChangeShouldSetResponder:m.scrollShouldSetResponder;if(k)b:{var d=k;for(var g=0,h=d;h;h=t(h))g++;h=0;for(var l=b;l;l=t(l))h++;for(;0<g-h;)d=t(d),g--;for(;0<h-g;)b=t(b),h--;for(;g--;){if(d=== | ||
b||d===b.alternate)break b;d=t(d);b=t(b)}d=null}else d=b;b=d===k;d=w.getPooled(e,d,c,f);d.touchHistory=u.touchHistory;b?v(d,aa):v(d,Z);b:{e=d._dispatchListeners;b=d._dispatchInstances;if(Array.isArray(e))for(g=0;g<e.length&&!d.isPropagationStopped();g++){if(e[g](d,b[g])){e=b[g];break b}}else if(e&&e(d,b)){e=b;break b}e=null}d._dispatchInstances=null;d._dispatchListeners=null;d.isPersistent()||d.constructor.release(d);e&&e!==k?(d=void 0,b=w.getPooled(m.responderGrant,e,c,f),b.touchHistory=u.touchHistory, | ||
v(b,y),g=!0===M(b),k?(h=w.getPooled(m.responderTerminationRequest,k,c,f),h.touchHistory=u.touchHistory,v(h,y),l=!h._dispatchListeners||M(h),h.isPersistent()||h.constructor.release(h),l?(h=w.getPooled(m.responderTerminate,k,c,f),h.touchHistory=u.touchHistory,v(h,y),d=B(d,[b,h]),L(e,g)):(e=w.getPooled(m.responderReject,e,c,f),e.touchHistory=u.touchHistory,v(e,y),d=B(d,e))):(d=B(d,b),L(e,g)),e=d):e=null}else e=null;d=k&&A(a);b=k&&F(a);g=k&&G(a);if(d=d?m.responderStart:b?m.responderMove:g?m.responderEnd: | ||
null)d=w.getPooled(d,k,c,f),d.touchHistory=u.touchHistory,v(d,y),e=B(e,d);d=k&&"touchcancel"===a;if(a=k&&!d&&G(a))a:{if((a=c.touches)&&0!==a.length)for(b=0;b<a.length;b++)if(g=a[b].target,null!==g&&void 0!==g&&0!==g){h=V(g);b:{for(g=k;h;){if(g===h||g===h.alternate){g=!0;break b}h=t(h)}g=!1}if(g){a=!1;break a}}a=!0}if(a=d?m.responderTerminate:a?m.responderRelease:null)c=w.getPooled(a,k,c,f),c.touchHistory=u.touchHistory,v(c,y),e=B(e,c),L(null);return e},GlobalResponderHandler:null,injection:{injectGlobalResponderHandler:function(a){I.GlobalResponderHandler= | ||
a}}};n=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events;p=n[3];(function(a,b,c){Q=a;V=b;N=c})(n[2],n[0],n[1]);return{ResponderEventPlugin:I,ResponderTouchHistoryStore:u,injectEventPluginsByName:p}}); |
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
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 not supported yet
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
2253533
48566
+ Addedschedule@0.4.0(transitive)
- Removedschedule@0.3.0(transitive)
Updatedschedule@^0.4.0