react-dom 16.4.0-alpha.0911da3 → 16.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /** @license React v16.4.0-alpha.0911da3
1
+ /** @license React v16.4.1
2
2
  * react-dom-test-utils.production.min.js
3
3
  *
4
4
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -6,24 +6,23 @@
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- 'use strict';(function(m,p){"object"===typeof exports&&"undefined"!==typeof module?module.exports=p(require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["react","react-dom"],p):m.ReactTestUtils=p(m.React,m.ReactDOM)})(this,function(m,p){function k(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,f=0;f<b;f++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[f+1]);b=Error(c+
10
- " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}function v(a){return function(){return a}}function A(a){var b=a;if(a.alternate)for(;b["return"];)b=b["return"];else{if(0!==(b.effectTag&2))return 1;for(;b["return"];)if(b=b["return"],0!==(b.effectTag&2))return 1}return 3===b.tag?2:3}function B(a){2!==A(a)?k("188"):void 0}function J(a){var b=a.alternate;if(!b)return b=A(a),3===b?k("188"):
11
- void 0,1===b?null:a;for(var c=a,f=b;;){var g=c["return"],e=g?g.alternate:null;if(!g||!e)break;if(g.child===e.child){for(var d=g.child;d;){if(d===c)return B(g),a;if(d===f)return B(g),b;d=d.sibling}k("188")}if(c["return"]!==f["return"])c=g,f=e;else{d=!1;for(var l=g.child;l;){if(l===c){d=!0;c=g;f=e;break}if(l===f){d=!0;f=g;c=e;break}l=l.sibling}if(!d){for(l=e.child;l;){if(l===c){d=!0;c=e;f=g;break}if(l===f){d=!0;f=e;c=g;break}l=l.sibling}d?void 0:k("189")}}c.alternate!==f?k("190"):void 0}3!==c.tag?k("188"):
12
- void 0;return c.stateNode.current===c?a:b}function r(a,b,c,f){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var d in a)a.hasOwnProperty(d)&&((b=a[d])?this[d]=b(c):"target"===d?this.target=f:this[d]=c[d]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?n.thatReturnsTrue:n.thatReturnsFalse;this.isPropagationStopped=n.thatReturnsFalse;return this}function K(a,b,c,f){if(this.eventPool.length){var d=this.eventPool.pop();
13
- this.call(d,a,b,c,f);return d}return new this(a,b,c,f)}function L(a){a instanceof this?void 0:k("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function C(a){a.eventPool=[];a.getPooled=K;a.release=L}function w(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;c["ms"+a]="MS"+b;c["O"+a]="o"+b.toLowerCase();return c}function x(a){if(y[a])return y[a];if(!h[a])return a;var b=h[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in D)return y[a]=b[c];
14
- return a}function E(a){}function M(a,b){if(!a)return[];a=J(a);if(!a)return[];for(var c=a,d=[];;){if(5===c.tag||6===c.tag||2===c.tag||1===c.tag){var e=c.stateNode;b(e)&&d.push(e)}if(c.child)c.child["return"]=c,c=c.child;else{if(c===a)return d;for(;!c.sibling;){if(!c["return"]||c["return"]===a)return d;c=c["return"]}c.sibling["return"]=c["return"];c=c.sibling}}}function N(a){return function(b,c){m.isValidElement(b)?k("228"):void 0;e.isCompositeComponent(b)?k("229"):void 0;var d=F.eventNameDispatchConfigs[a],
15
- g=new E;g.target=b;g.type=a.toLowerCase();var n=O.getInstanceFromNode(b),h=new r(d,n,g,b);h.persist();t(h,c);d.phasedRegistrationNames?G.accumulateTwoPhaseDispatches(h):G.accumulateDirectDispatches(h);p.unstable_batchedUpdates(function(){H.enqueueStateRestore(b);u.runEventsInBatch(h,!0)});H.restoreStateIfNeeded()}}function z(){e.Simulate={};var a=void 0;for(a in F.eventNameDispatchConfigs)e.Simulate[a]=N(a)}function P(a){return function(b,c){var d=new E(a);t(d,c);e.isDOMComponent(b)?e.simulateNativeEventOnDOMComponent(a,
16
- b,d):b.tagName&&e.simulateNativeEventOnNode(a,b,d)}}var t=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,d=function(){};d.thatReturns=v;d.thatReturnsFalse=v(!1);d.thatReturnsTrue=v(!0);d.thatReturnsNull=v(null);d.thatReturnsThis=function(){return this};d.thatReturnsArgument=function(a){return a};var n=d,I="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" ");d={type:null,target:null,currentTarget:n.thatReturnsNull,
9
+ 'use strict';(function(l,m){"object"===typeof exports&&"undefined"!==typeof module?module.exports=m(require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["react","react-dom"],m):l.ReactTestUtils=m(l.React,l.ReactDOM)})(this,function(l,m){function k(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,e=0;e<b;e++)c+="&args[]="+encodeURIComponent(arguments[e+1]);K(!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. ",
10
+ c)}function v(a){return function(){return a}}function A(a){var b=a;if(a.alternate)for(;b.return;)b=b.return;else{if(0!==(b.effectTag&2))return 1;for(;b.return;)if(b=b.return,0!==(b.effectTag&2))return 1}return 3===b.tag?2:3}function B(a){2!==A(a)?k("188"):void 0}function L(a){var b=a.alternate;if(!b)return b=A(a),3===b?k("188"):void 0,1===b?null:a;for(var c=a,e=b;;){var d=c.return,g=d?d.alternate:null;if(!d||!g)break;if(d.child===g.child){for(var h=d.child;h;){if(h===c)return B(d),a;if(h===e)return B(d),
11
+ b;h=h.sibling}k("188")}if(c.return!==e.return)c=d,e=g;else{h=!1;for(var f=d.child;f;){if(f===c){h=!0;c=d;e=g;break}if(f===e){h=!0;e=d;c=g;break}f=f.sibling}if(!h){for(f=g.child;f;){if(f===c){h=!0;c=g;e=d;break}if(f===e){h=!0;e=g;c=d;break}f=f.sibling}h?void 0:k("189")}}c.alternate!==e?k("190"):void 0}3!==c.tag?k("188"):void 0;return c.stateNode.current===c?a:b}function r(a,b,c,e){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var d in a)a.hasOwnProperty(d)&&
12
+ ((b=a[d])?this[d]=b(c):"target"===d?this.target=e:this[d]=c[d]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?n.thatReturnsTrue:n.thatReturnsFalse;this.isPropagationStopped=n.thatReturnsFalse;return this}function M(a,b,c,e){if(this.eventPool.length){var d=this.eventPool.pop();this.call(d,a,b,c,e);return d}return new this(a,b,c,e)}function N(a){a instanceof this?void 0:k("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function C(a){a.eventPool=
13
+ [];a.getPooled=M;a.release=N}function w(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;c["ms"+a]="MS"+b;c["O"+a]="o"+b.toLowerCase();return c}function x(a){if(y[a])return y[a];if(!p[a])return a;var b=p[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in D)return y[a]=b[c];return a}function E(a){}function O(a,b){if(!a)return[];a=L(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||2===c.tag||1===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=
14
+ 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}}}function P(a){return function(b,c){l.isValidElement(b)?k("228"):void 0;g.isCompositeComponent(b)?k("229"):void 0;var e=F.eventNameDispatchConfigs[a],d=new E;d.target=b;d.type=a.toLowerCase();var f=Q.getInstanceFromNode(b),h=new r(e,f,d,b);h.persist();t(h,c);e.phasedRegistrationNames?G.accumulateTwoPhaseDispatches(h):G.accumulateDirectDispatches(h);m.unstable_batchedUpdates(function(){H.enqueueStateRestore(b);
15
+ u.runEventsInBatch(h,!0)});H.restoreStateIfNeeded()}}function z(){g.Simulate={};var a=void 0;for(a in F.eventNameDispatchConfigs)g.Simulate[a]=P(a)}function R(a,b){return function(c,e){var d=new E(a);t(d,e);g.isDOMComponent(c)?(c=S(c),d.target=c,I.dispatchEvent(b,d)):c.tagName&&(d.target=c,I.dispatchEvent(b,d))}}var t=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,K=function(a,b,c,e,d,f,g,k){if(!a){if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
16
+ else{var h=[c,e,d,f,g,k],l=0;a=Error(b.replace(/%s/g,function(){return h[l++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}},f=function(){};f.thatReturns=v;f.thatReturnsFalse=v(!1);f.thatReturnsTrue=v(!0);f.thatReturnsNull=v(null);f.thatReturnsThis=function(){return this};f.thatReturnsArgument=function(a){return a};var n=f,J="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" ");f={type:null,target:null,currentTarget:n.thatReturnsNull,
17
17
  eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};t(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=n.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=
18
- !0),this.isPropagationStopped=n.thatReturnsTrue)},persist:function(){this.isPersistent=n.thatReturnsTrue},isPersistent:n.thatReturnsFalse,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<I.length;a++)this[I[a]]=null}});r.Interface=d;r.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,d=function(){};d.prototype=c.prototype;d=new d;t(d,b.prototype);b.prototype=d;b.prototype.constructor=b;b.Interface=t({},c.Interface,a);b.extend=c.extend;
19
- C(b);return b};C(r);d=!("undefined"===typeof window||!window.document||!window.document.createElement);var h={animationend:w("Animation","AnimationEnd"),animationiteration:w("Animation","AnimationIteration"),animationstart:w("Animation","AnimationStart"),transitionend:w("Transition","TransitionEnd")},y={},D={};d&&(D=document.createElement("div").style,"AnimationEvent"in window||(delete h.animationend.animation,delete h.animationiteration.animation,delete h.animationstart.animation),"TransitionEvent"in
20
- window||delete h.transitionend.transition);d={topAnimationEnd:x("animationend"),topAnimationIteration:x("animationiteration"),topAnimationStart:x("animationstart"),topBlur:"blur",topCancel:"cancel",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",
21
- topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoad:"load",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",topToggle:"toggle",topTouchCancel:"touchcancel",
22
- topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:x("transitionend"),topWheel:"wheel"};var Q=p.findDOMNode,q=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=q.EventPluginHub,F=q.EventPluginRegistry,G=q.EventPropagators,H=q.ReactControlledComponent,O=q.ReactDOMComponentTree,R=q.ReactDOMEventListener,e={renderIntoDocument:function(a){var b=document.createElement("div");return p.render(a,b)},isElement:function(a){return m.isValidElement(a)},isElementOfType:function(a,
23
- b){return m.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&m.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return e.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,b){return e.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){if(!a)return[];e.isCompositeComponent(a)?
24
- void 0:k("10");return M(a._reactInternalFiber,b)},scryRenderedDOMComponentsWithClass:function(a,b){return e.findAllInRenderedTree(a,function(a){if(e.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){a=e.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+
25
- a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){return e.findAllInRenderedTree(a,function(a){return e.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){a=e.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){return e.findAllInRenderedTree(a,function(a){return e.isCompositeComponentWithType(a,
26
- b)})},findRenderedComponentWithType:function(a,b){a=e.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 m.createElement(b,null,this.props.children)});return this},simulateNativeEventOnNode:function(a,b,c){c.target=b;R.dispatchEvent(a,c)},simulateNativeEventOnDOMComponent:function(a,b,c){e.simulateNativeEventOnNode(a,
27
- Q(b),c)},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{}},S=u.injection.injectEventPluginOrder;u.injection.injectEventPluginOrder=function(){S.apply(this,arguments);z()};var T=u.injection.injectEventPluginsByName;u.injection.injectEventPluginsByName=function(){T.apply(this,arguments);z()};z();[].concat(Object.keys(d),Object.keys({topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",
28
- topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"})).forEach(function(a){var b=0===a.indexOf("top")?a.charAt(3).toLowerCase()+a.substr(4):a;e.SimulateNative[b]=
29
- P(a)});d=(d=Object.freeze({default:e}))&&e||d;return d["default"]?d["default"]:d});
18
+ !0),this.isPropagationStopped=n.thatReturnsTrue)},persist:function(){this.isPersistent=n.thatReturnsTrue},isPersistent:n.thatReturnsFalse,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<J.length;a++)this[J[a]]=null}});r.Interface=f;r.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,e=function(){};e.prototype=c.prototype;e=new e;t(e,b.prototype);b.prototype=e;b.prototype.constructor=b;b.Interface=t({},c.Interface,a);b.extend=c.extend;
19
+ C(b);return b};C(r);f=!("undefined"===typeof window||!window.document||!window.document.createElement);var p={animationend:w("Animation","AnimationEnd"),animationiteration:w("Animation","AnimationIteration"),animationstart:w("Animation","AnimationStart"),transitionend:w("Transition","TransitionEnd")},y={},D={};f&&(D=document.createElement("div").style,"AnimationEvent"in window||(delete p.animationend.animation,delete p.animationiteration.animation,delete p.animationstart.animation),"TransitionEvent"in
20
+ window||delete p.transitionend.transition);f=x("animationend");var T=x("animationiteration"),U=x("animationstart"),V=x("transitionend"),S=m.findDOMNode,q=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=q.EventPluginHub,F=q.EventPluginRegistry,G=q.EventPropagators,H=q.ReactControlledComponent,Q=q.ReactDOMComponentTree,I=q.ReactDOMEventListener,g={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return l.isValidElement(a)},isElementOfType:function(a,
21
+ 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 g.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,b){return g.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){if(!a)return[];g.isCompositeComponent(a)?
22
+ void 0:k("10");return O(a._reactInternalFiber,b)},scryRenderedDOMComponentsWithClass:function(a,b){return g.findAllInRenderedTree(a,function(a){if(g.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){a=g.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+
23
+ a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){return g.findAllInRenderedTree(a,function(a){return g.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){a=g.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){return g.findAllInRenderedTree(a,function(a){return g.isCompositeComponentWithType(a,
24
+ b)})},findRenderedComponentWithType:function(a,b){a=g.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:{}},W=u.injection.injectEventPluginOrder;
25
+ u.injection.injectEventPluginOrder=function(){W.apply(this,arguments);z()};var X=u.injection.injectEventPluginsByName;u.injection.injectEventPluginsByName=function(){X.apply(this,arguments);z()};z();[["abort","abort"],[f,"animationEnd"],[T,"animationIteration"],[U,"animationStart"],["blur","blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],
26
+ ["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"],
27
+ ["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",
28
+ "stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"],["touchstart","touchStart"],[V,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];g.SimulateNative[b]=R(b,a[0])});f=(f={default:g},g)||f;return f.default?f.default:f});
@@ -1,4 +1,4 @@
1
- /** @license React v16.4.0-alpha.0911da3
1
+ /** @license React v16.4.1
2
2
  * react-dom-unstable-native-dependencies.development.js
3
3
  *
4
4
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -15,13 +15,6 @@
15
15
  (global.ReactDOMUnstableNativeDependencies = factory(global.ReactDOM,global.React));
16
16
  }(this, (function (ReactDOM,React) { 'use strict';
17
17
 
18
- /**
19
- * WARNING: DO NOT manually require this module.
20
- * This is a replacement for `invariant(...)` used by the error code system
21
- * and will _only_ be required by the corresponding babel pass.
22
- * It always throws.
23
- */
24
-
25
18
  /**
26
19
  * Copyright (c) 2013-present, Facebook, Inc.
27
20
  *
@@ -76,6 +69,9 @@ function invariant(condition, format, a, b, c, d, e, f) {
76
69
 
77
70
  var invariant_1 = invariant;
78
71
 
72
+ // Relying on the `invariant()` implementation lets us
73
+ // have preserve the format and params in the www builds.
74
+
79
75
  {
80
76
  // In DEV mode, we swap out invokeGuardedCallback for a special version
81
77
  // that plays more nicely with the browser's DevTools. The idea is to preserve
@@ -214,22 +210,11 @@ var injection = {
214
210
  getNodeFromInstance = Injected.getNodeFromInstance;
215
211
 
216
212
  {
217
- warning_1(getNodeFromInstance && getInstanceFromNode, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.');
213
+ !(getNodeFromInstance && getInstanceFromNode) ? warning_1(false, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
218
214
  }
219
215
  }
220
216
  };
221
217
 
222
- function isEndish(topLevelType) {
223
- return topLevelType === 'topMouseUp' || topLevelType === 'topTouchEnd' || topLevelType === 'topTouchCancel';
224
- }
225
-
226
- function isMoveish(topLevelType) {
227
- return topLevelType === 'topMouseMove' || topLevelType === 'topTouchMove';
228
- }
229
- function isStartish(topLevelType) {
230
- return topLevelType === 'topMouseDown' || topLevelType === 'topTouchStart';
231
- }
232
-
233
218
  var validateEventDispatches = void 0;
234
219
  {
235
220
  validateEventDispatches = function (event) {
@@ -242,7 +227,7 @@ var validateEventDispatches = void 0;
242
227
  var instancesIsArr = Array.isArray(dispatchInstances);
243
228
  var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
244
229
 
245
- warning_1(instancesIsArr === listenersIsArr && instancesLen === listenersLen, 'EventPluginUtils: Invalid `event`.');
230
+ !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warning_1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
246
231
  };
247
232
  }
248
233
 
@@ -333,7 +318,7 @@ var HostComponent = 5;
333
318
 
334
319
  function getParent(inst) {
335
320
  do {
336
- inst = inst['return'];
321
+ inst = inst.return;
337
322
  // TODO: If this is a HostRoot we might want to bail out.
338
323
  // That is depending on if we want nested subtrees (layers) to bubble
339
324
  // events to their parent. We could also go through parentNode on the
@@ -648,7 +633,7 @@ function listenerAtPhase(inst, event, propagationPhase) {
648
633
  */
649
634
  function accumulateDirectionalDispatches(inst, phase, event) {
650
635
  {
651
- warning_1(inst, 'Dispatching inst must not be null');
636
+ !inst ? warning_1(false, 'Dispatching inst must not be null') : void 0;
652
637
  }
653
638
  var listener = listenerAtPhase(inst, event, phase);
654
639
  if (listener) {
@@ -930,7 +915,7 @@ SyntheticEvent.extend = function (Interface) {
930
915
  return new Proxy(constructor.apply(that, args), {
931
916
  set: function (target, prop, value) {
932
917
  if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
933
- warning_1(didWarnForAddedNewProperty || target.isPersistent(), "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.');
918
+ !(didWarnForAddedNewProperty || target.isPersistent()) ? warning_1(false, "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;
934
919
  didWarnForAddedNewProperty = true;
935
920
  }
936
921
  target[prop] = value;
@@ -975,7 +960,7 @@ function getPooledWarningPropertyDefinition(propName, getVal) {
975
960
 
976
961
  function warn(action, result) {
977
962
  var warningCondition = false;
978
- warning_1(warningCondition, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result);
963
+ !warningCondition ? warning_1(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
979
964
  }
980
965
  }
981
966
 
@@ -1017,6 +1002,35 @@ var ResponderSyntheticEvent = SyntheticEvent$1.extend({
1017
1002
  }
1018
1003
  });
1019
1004
 
1005
+ // Note: ideally these would be imported from DOMTopLevelEventTypes,
1006
+ // but our build system currently doesn't let us do that from a fork.
1007
+
1008
+ var TOP_TOUCH_START = 'touchstart';
1009
+ var TOP_TOUCH_MOVE = 'touchmove';
1010
+ var TOP_TOUCH_END = 'touchend';
1011
+ var TOP_TOUCH_CANCEL = 'touchcancel';
1012
+ var TOP_SCROLL = 'scroll';
1013
+ var TOP_SELECTION_CHANGE = 'selectionchange';
1014
+ var TOP_MOUSE_DOWN = 'mousedown';
1015
+ var TOP_MOUSE_MOVE = 'mousemove';
1016
+ var TOP_MOUSE_UP = 'mouseup';
1017
+
1018
+ function isStartish(topLevelType) {
1019
+ return topLevelType === TOP_TOUCH_START || topLevelType === TOP_MOUSE_DOWN;
1020
+ }
1021
+
1022
+ function isMoveish(topLevelType) {
1023
+ return topLevelType === TOP_TOUCH_MOVE || topLevelType === TOP_MOUSE_MOVE;
1024
+ }
1025
+
1026
+ function isEndish(topLevelType) {
1027
+ return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL || topLevelType === TOP_MOUSE_UP;
1028
+ }
1029
+
1030
+ var startDependencies = [TOP_TOUCH_START, TOP_MOUSE_DOWN];
1031
+ var moveDependencies = [TOP_TOUCH_MOVE, TOP_MOUSE_MOVE];
1032
+ var endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END, TOP_MOUSE_UP];
1033
+
1020
1034
  /**
1021
1035
  * Tracks the position and time of each active touch by `touch.identifier`. We
1022
1036
  * should typically only see IDs in the range of 1-20 because IDs get recycled
@@ -1080,7 +1094,7 @@ function getTouchIdentifier(_ref) {
1080
1094
 
1081
1095
  !(identifier != null) ? invariant_1(false, 'Touch object is missing identifier.') : void 0;
1082
1096
  {
1083
- warning_1(identifier <= MAX_TOUCH_BANK, 'Touch identifier %s is greater than maximum supported %s which causes ' + 'performance issues backfilling array locations for all of the indices.', identifier, MAX_TOUCH_BANK);
1097
+ !(identifier <= MAX_TOUCH_BANK) ? warning_1(false, 'Touch identifier %s is greater than maximum supported %s which causes ' + 'performance issues backfilling array locations for all of the indices.', identifier, MAX_TOUCH_BANK) : void 0;
1084
1098
  }
1085
1099
  return identifier;
1086
1100
  }
@@ -1168,7 +1182,7 @@ var ResponderTouchHistoryStore = {
1168
1182
  }
1169
1183
  {
1170
1184
  var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch];
1171
- warning_1(activeRecord != null && activeRecord.touchActive, 'Cannot find single active touch.');
1185
+ !(activeRecord != null && activeRecord.touchActive) ? warning_1(false, 'Cannot find single active touch.') : void 0;
1172
1186
  }
1173
1187
  }
1174
1188
  }
@@ -1217,11 +1231,6 @@ var responderInst = null;
1217
1231
  */
1218
1232
  var trackedTouchCount = 0;
1219
1233
 
1220
- /**
1221
- * Last reported number of active touches.
1222
- */
1223
- var previousActiveTouches = 0;
1224
-
1225
1234
  var changeResponder = function (nextResponderInst, blockHostResponder) {
1226
1235
  var oldResponderInst = responderInst;
1227
1236
  responderInst = nextResponderInst;
@@ -1239,7 +1248,8 @@ var eventTypes = {
1239
1248
  phasedRegistrationNames: {
1240
1249
  bubbled: 'onStartShouldSetResponder',
1241
1250
  captured: 'onStartShouldSetResponderCapture'
1242
- }
1251
+ },
1252
+ dependencies: startDependencies
1243
1253
  },
1244
1254
 
1245
1255
  /**
@@ -1255,7 +1265,8 @@ var eventTypes = {
1255
1265
  phasedRegistrationNames: {
1256
1266
  bubbled: 'onScrollShouldSetResponder',
1257
1267
  captured: 'onScrollShouldSetResponderCapture'
1258
- }
1268
+ },
1269
+ dependencies: [TOP_SCROLL]
1259
1270
  },
1260
1271
 
1261
1272
  /**
@@ -1269,7 +1280,8 @@ var eventTypes = {
1269
1280
  phasedRegistrationNames: {
1270
1281
  bubbled: 'onSelectionChangeShouldSetResponder',
1271
1282
  captured: 'onSelectionChangeShouldSetResponderCapture'
1272
- }
1283
+ },
1284
+ dependencies: [TOP_SELECTION_CHANGE]
1273
1285
  },
1274
1286
 
1275
1287
  /**
@@ -1280,22 +1292,45 @@ var eventTypes = {
1280
1292
  phasedRegistrationNames: {
1281
1293
  bubbled: 'onMoveShouldSetResponder',
1282
1294
  captured: 'onMoveShouldSetResponderCapture'
1283
- }
1295
+ },
1296
+ dependencies: moveDependencies
1284
1297
  },
1285
1298
 
1286
1299
  /**
1287
1300
  * Direct responder events dispatched directly to responder. Do not bubble.
1288
1301
  */
1289
- responderStart: { registrationName: 'onResponderStart' },
1290
- responderMove: { registrationName: 'onResponderMove' },
1291
- responderEnd: { registrationName: 'onResponderEnd' },
1292
- responderRelease: { registrationName: 'onResponderRelease' },
1302
+ responderStart: {
1303
+ registrationName: 'onResponderStart',
1304
+ dependencies: startDependencies
1305
+ },
1306
+ responderMove: {
1307
+ registrationName: 'onResponderMove',
1308
+ dependencies: moveDependencies
1309
+ },
1310
+ responderEnd: {
1311
+ registrationName: 'onResponderEnd',
1312
+ dependencies: endDependencies
1313
+ },
1314
+ responderRelease: {
1315
+ registrationName: 'onResponderRelease',
1316
+ dependencies: endDependencies
1317
+ },
1293
1318
  responderTerminationRequest: {
1294
- registrationName: 'onResponderTerminationRequest'
1319
+ registrationName: 'onResponderTerminationRequest',
1320
+ dependencies: []
1295
1321
  },
1296
- responderGrant: { registrationName: 'onResponderGrant' },
1297
- responderReject: { registrationName: 'onResponderReject' },
1298
- responderTerminate: { registrationName: 'onResponderTerminate' }
1322
+ responderGrant: {
1323
+ registrationName: 'onResponderGrant',
1324
+ dependencies: []
1325
+ },
1326
+ responderReject: {
1327
+ registrationName: 'onResponderReject',
1328
+ dependencies: []
1329
+ },
1330
+ responderTerminate: {
1331
+ registrationName: 'onResponderTerminate',
1332
+ dependencies: []
1333
+ }
1299
1334
  };
1300
1335
 
1301
1336
  /**
@@ -1489,7 +1524,7 @@ to return true:wantsResponderID| |
1489
1524
  */
1490
1525
 
1491
1526
  function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
1492
- var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === 'topSelectionChange' ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder;
1527
+ var shouldSetEventType = isStartish(topLevelType) ? eventTypes.startShouldSetResponder : isMoveish(topLevelType) ? eventTypes.moveShouldSetResponder : topLevelType === TOP_SELECTION_CHANGE ? eventTypes.selectionChangeShouldSetResponder : eventTypes.scrollShouldSetResponder;
1493
1528
 
1494
1529
  // TODO: stop one short of the current responder.
1495
1530
  var bubbleShouldSetFrom = !responderInst ? targetInst : getLowestCommonAncestor(responderInst, targetInst);
@@ -1561,7 +1596,7 @@ function canTriggerTransfer(topLevelType, topLevelInst, nativeEvent) {
1561
1596
  // responderIgnoreScroll: We are trying to migrate away from specifically
1562
1597
  // tracking native scroll events here and responderIgnoreScroll indicates we
1563
1598
  // will send topTouchCancel to handle canceling touch events instead
1564
- topLevelType === 'topScroll' && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === 'topSelectionChange' || isStartish(topLevelType) || isMoveish(topLevelType));
1599
+ topLevelType === TOP_SCROLL && !nativeEvent.responderIgnoreScroll || trackedTouchCount > 0 && topLevelType === TOP_SELECTION_CHANGE || isStartish(topLevelType) || isMoveish(topLevelType));
1565
1600
  }
1566
1601
 
1567
1602
  /**
@@ -1640,7 +1675,7 @@ var ResponderEventPlugin = {
1640
1675
  extracted = accumulate(extracted, gesture);
1641
1676
  }
1642
1677
 
1643
- var isResponderTerminate = responderInst && topLevelType === 'topTouchCancel';
1678
+ var isResponderTerminate = responderInst && topLevelType === TOP_TOUCH_CANCEL;
1644
1679
  var isResponderRelease = responderInst && !isResponderTerminate && isEndish(topLevelType) && noResponderTouches(nativeEvent);
1645
1680
  var finalTouch = isResponderTerminate ? eventTypes.responderTerminate : isResponderRelease ? eventTypes.responderRelease : null;
1646
1681
  if (finalTouch) {
@@ -1651,17 +1686,10 @@ var ResponderEventPlugin = {
1651
1686
  changeResponder(null);
1652
1687
  }
1653
1688
 
1654
- var numberActiveTouches = ResponderTouchHistoryStore.touchHistory.numberActiveTouches;
1655
- if (ResponderEventPlugin.GlobalInteractionHandler && numberActiveTouches !== previousActiveTouches) {
1656
- ResponderEventPlugin.GlobalInteractionHandler.onChange(numberActiveTouches);
1657
- }
1658
- previousActiveTouches = numberActiveTouches;
1659
-
1660
1689
  return extracted;
1661
1690
  },
1662
1691
 
1663
1692
  GlobalResponderHandler: null,
1664
- GlobalInteractionHandler: null,
1665
1693
 
1666
1694
  injection: {
1667
1695
  /**
@@ -1671,14 +1699,6 @@ var ResponderEventPlugin = {
1671
1699
  */
1672
1700
  injectGlobalResponderHandler: function (GlobalResponderHandler) {
1673
1701
  ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler;
1674
- },
1675
-
1676
- /**
1677
- * @param {{onChange: (numberActiveTouches) => void} GlobalInteractionHandler
1678
- * Object that handles any change in the number of active touches.
1679
- */
1680
- injectGlobalInteractionHandler: function (GlobalInteractionHandler) {
1681
- ResponderEventPlugin.GlobalInteractionHandler = GlobalInteractionHandler;
1682
1702
  }
1683
1703
  }
1684
1704
  };
@@ -1,4 +1,4 @@
1
- /** @license React v16.4.0-alpha.0911da3
1
+ /** @license React v16.4.1
2
2
  * react-dom-unstable-native-dependencies.production.min.js
3
3
  *
4
4
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -6,25 +6,25 @@
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- 'use strict';(function(B,n){"object"===typeof exports&&"undefined"!==typeof module?module.exports=n(require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["react-dom","react"],n):B.ReactDOMUnstableNativeDependencies=n(B.ReactDOM,B.React)})(this,function(B,n){function z(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,f=0;f<b;f++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[f+
10
- 1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}function F(a){return function(){return a}}function G(a){return"topMouseUp"===a||"topTouchEnd"===a||"topTouchCancel"===a}function H(a){return"topMouseMove"===a||"topTouchMove"===a}function C(a){return"topMouseDown"===a||"topTouchStart"===a}function N(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?
11
- z("103"):void 0;a.currentTarget=b?O(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&&5!==a.tag);return a?a:null}function P(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 I(a,b){null==b?z("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)?
12
- [a].concat(b):[a,b]}function u(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}function Q(a,b){var c=a.stateNode;if(!c)return null;var f=R(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;
13
- default:a=!1}if(a)return null;c&&"function"!==typeof c?z("231",b,typeof c):void 0;return c}function S(a,b,c){if(b=Q(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=I(c._dispatchListeners,b),c._dispatchInstances=I(c._dispatchInstances,a)}function Z(a){a&&a.dispatchConfig.phasedRegistrationNames&&P(a._targetInst,S,a)}function aa(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=a._targetInst;b=b?t(b):null;P(b,S,a)}}function A(a){if(a&&a.dispatchConfig.registrationName){var b=
14
- a._targetInst;if(b&&a&&a.dispatchConfig.registrationName){var c=Q(b,a.dispatchConfig.registrationName);c&&(a._dispatchListeners=I(a._dispatchListeners,c),a._dispatchInstances=I(a._dispatchInstances,b))}}}function D(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)?
15
- v.thatReturnsTrue:v.thatReturnsFalse;this.isPropagationStopped=v.thatReturnsFalse;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:z("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function T(a){a.eventPool=[];a.getPooled=ba;a.release=ca}function k(a){return a.timeStamp||a.timestamp}function K(a){a=a.identifier;null==a?z("138"):void 0;return a}
16
- function da(a){var b=K(a),c=p[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=k(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=k(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=k(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:k(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:k(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:k(a)},p[b]=c);q.mostRecentTimeStamp=k(a)}
17
- function ea(a){var b=p[K(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=k(a),q.mostRecentTimeStamp=k(a)):console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n","Touch Bank: %s",U(a),V())}function fa(a){var b=p[K(a)];b?(b.touchActive=!1,b.previousPageX=b.currentPageX,b.previousPageY=b.currentPageY,b.previousTimeStamp=b.currentTimeStamp,
18
- b.currentPageX=a.pageX,b.currentPageY=a.pageY,b.currentTimeStamp=k(a),q.mostRecentTimeStamp=k(a)):console.error("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",U(a),V())}function U(a){return JSON.stringify({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY,timestamp:k(a)})}function V(){var a=JSON.stringify(p.slice(0,20));20<p.length&&(a+=" (original size: "+p.length+")");return a}function E(a,b){null==b?z("29"):void 0;return null==a?b:Array.isArray(a)?a.concat(b):
19
- Array.isArray(b)?[a].concat(b):[a,b]}var w=function(){};w.thatReturns=F;w.thatReturnsFalse=F(!1);w.thatReturnsTrue=F(!0);w.thatReturnsNull=F(null);w.thatReturnsThis=function(){return this};w.thatReturnsArgument=function(a){return a};var v=w,R=null,W=null,O=null,L=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,X="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" ");n={type:null,target:null,currentTarget:v.thatReturnsNull,
20
- eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};L(D.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=v.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=
21
- !0),this.isPropagationStopped=v.thatReturnsTrue)},persist:function(){this.isPersistent=v.thatReturnsTrue},isPersistent:v.thatReturnsFalse,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<X.length;a++)this[X[a]]=null}});D.Interface=n;D.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,f=function(){};f.prototype=c.prototype;f=new f;L(f,b.prototype);b.prototype=f;b.prototype.constructor=b;b.Interface=L({},c.Interface,a);b.extend=c.extend;
22
- T(b);return b};T(D);var x=D.extend({touchHistory:function(a){return null}}),p=[],q={touchBank:p,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},r={recordTouchTrack:function(a,b){if(H(a))b.changedTouches.forEach(ea);else if(C(a))b.changedTouches.forEach(da),q.numberActiveTouches=b.touches.length,1===q.numberActiveTouches&&(q.indexOfSingleActiveTouch=b.touches[0].identifier);else if(G(a)&&(b.changedTouches.forEach(fa),q.numberActiveTouches=b.touches.length,1===q.numberActiveTouches))for(a=
23
- 0;a<p.length;a++)if(b=p[a],null!=b&&b.touchActive){q.indexOfSingleActiveTouch=a;break}},touchHistory:q},l=null,J=0,Y=0,M=function(a,b){var c=l;l=a;if(null!==y.GlobalResponderHandler)y.GlobalResponderHandler.onChange(c,a,b)},m={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"}},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",captured:"onScrollShouldSetResponderCapture"}},selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",
24
- captured:"onSelectionChangeShouldSetResponderCapture"}},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"}},responderStart:{registrationName:"onResponderStart"},responderMove:{registrationName:"onResponderMove"},responderEnd:{registrationName:"onResponderEnd"},responderRelease:{registrationName:"onResponderRelease"},responderTerminationRequest:{registrationName:"onResponderTerminationRequest"},responderGrant:{registrationName:"onResponderGrant"},
25
- responderReject:{registrationName:"onResponderReject"},responderTerminate:{registrationName:"onResponderTerminate"}},y={_getResponder:function(){return l},eventTypes:m,extractEvents:function(a,b,c,f){if(C(a))J+=1;else if(G(a))if(0<=J)--J;else return console.error("Ended a touch event which was not counted in `trackedTouchCount`."),null;r.recordTouchTrack(a,c);if(b&&("topScroll"===a&&!c.responderIgnoreScroll||0<J&&"topSelectionChange"===a||C(a)||H(a))){var e=C(a)?m.startShouldSetResponder:H(a)?m.moveShouldSetResponder:
26
- "topSelectionChange"===a?m.selectionChangeShouldSetResponder:m.scrollShouldSetResponder;if(l)b:{var d=l;for(var g=0,h=d;h;h=t(h))g++;h=0;for(var k=b;k;k=t(k))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===l;d=x.getPooled(e,d,c,f);d.touchHistory=r.touchHistory;b?u(d,aa):u(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];
27
- 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!==l?(d=void 0,b=x.getPooled(m.responderGrant,e,c,f),b.touchHistory=r.touchHistory,u(b,A),g=!0===N(b),l?(h=x.getPooled(m.responderTerminationRequest,l,c,f),h.touchHistory=r.touchHistory,u(h,A),k=!h._dispatchListeners||N(h),h.isPersistent()||h.constructor.release(h),k?(h=x.getPooled(m.responderTerminate,l,c,f),h.touchHistory=r.touchHistory,u(h,A),d=E(d,[b,
28
- h]),M(e,g)):(e=x.getPooled(m.responderReject,e,c,f),e.touchHistory=r.touchHistory,u(e,A),d=E(d,e))):(d=E(d,b),M(e,g)),e=d):e=null}else e=null;d=l&&C(a);b=l&&H(a);g=l&&G(a);if(d=d?m.responderStart:b?m.responderMove:g?m.responderEnd:null)d=x.getPooled(d,l,c,f),d.touchHistory=r.touchHistory,u(d,A),e=E(e,d);d=l&&"topTouchCancel"===a;if(a=l&&!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=W(g);b:{for(g=l;h;){if(g===h||g===h.alternate){g=
29
- !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=x.getPooled(a,l,c,f),c.touchHistory=r.touchHistory,u(c,A),e=E(e,c),M(null);c=r.touchHistory.numberActiveTouches;if(y.GlobalInteractionHandler&&c!==Y)y.GlobalInteractionHandler.onChange(c);Y=c;return e},GlobalResponderHandler:null,GlobalInteractionHandler:null,injection:{injectGlobalResponderHandler:function(a){y.GlobalResponderHandler=a},injectGlobalInteractionHandler:function(a){y.GlobalInteractionHandler=
30
- a}}};n=function(a){R=a.getFiberCurrentPropsFromNode;W=a.getInstanceFromNode;O=a.getNodeFromInstance};n(B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDOMComponentTree);return Object.freeze({injectComponentTree:n,ResponderEventPlugin:y,ResponderTouchHistoryStore:r})});
9
+ 'use strict';(function(A,l){"object"===typeof exports&&"undefined"!==typeof module?module.exports=l(require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["react-dom","react"],l):A.ReactDOMUnstableNativeDependencies=l(A.ReactDOM,A.React)})(this,function(A,l){function y(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. ",
10
+ c)}function E(a){return function(){return a}}function N(a){var b=a._dispatchListeners,c=a._dispatchInstances;Array.isArray(b)?y("103"):void 0;a.currentTarget=b?O(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&&5!==a.tag);return a?a:null}function P(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 F(a,b){null==b?y("30"):void 0;
11
+ 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 Q(a,b){var c=a.stateNode;if(!c)return null;var f=R(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=
12
+ !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?y("231",b,typeof c):void 0;return c}function S(a,b,c){if(b=Q(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=F(c._dispatchListeners,b),c._dispatchInstances=F(c._dispatchInstances,a)}function aa(a){a&&a.dispatchConfig.phasedRegistrationNames&&P(a._targetInst,S,a)}function ba(a){if(a&&a.dispatchConfig.phasedRegistrationNames){var b=
13
+ a._targetInst;b=b?t(b):null;P(b,S,a)}}function z(a){if(a&&a.dispatchConfig.registrationName){var b=a._targetInst;if(b&&a&&a.dispatchConfig.registrationName){var c=Q(b,a.dispatchConfig.registrationName);c&&(a._dispatchListeners=F(a._dispatchListeners,c),a._dispatchInstances=F(a._dispatchInstances,b))}}}function B(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]=
14
+ c[e]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?w.thatReturnsTrue:w.thatReturnsFalse;this.isPropagationStopped=w.thatReturnsFalse;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:y("223");a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function T(a){a.eventPool=[];a.getPooled=ca;a.release=da}function C(a){return"touchstart"===
15
+ a||"mousedown"===a}function G(a){return"touchmove"===a||"mousemove"===a}function H(a){return"touchend"===a||"touchcancel"===a||"mouseup"===a}function n(a){return a.timeStamp||a.timestamp}function K(a){a=a.identifier;null==a?y("138"):void 0;return a}function ea(a){var b=K(a),c=p[b];c?(c.touchActive=!0,c.startPageX=a.pageX,c.startPageY=a.pageY,c.startTimeStamp=n(a),c.currentPageX=a.pageX,c.currentPageY=a.pageY,c.currentTimeStamp=n(a),c.previousPageX=a.pageX,c.previousPageY=a.pageY,c.previousTimeStamp=
16
+ n(a)):(c={touchActive:!0,startPageX:a.pageX,startPageY:a.pageY,startTimeStamp:n(a),currentPageX:a.pageX,currentPageY:a.pageY,currentTimeStamp:n(a),previousPageX:a.pageX,previousPageY:a.pageY,previousTimeStamp:n(a)},p[b]=c);q.mostRecentTimeStamp=n(a)}function fa(a){var b=p[K(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=n(a),q.mostRecentTimeStamp=n(a)):console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n",
17
+ "Touch Bank: %s",U(a),V())}function ha(a){var b=p[K(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=n(a),q.mostRecentTimeStamp=n(a)):console.error("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",U(a),V())}function U(a){return JSON.stringify({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY,timestamp:n(a)})}function V(){var a=
18
+ JSON.stringify(p.slice(0,20));20<p.length&&(a+=" (original size: "+p.length+")");return a}function D(a,b){null==b?y("29"):void 0;return null==a?b:Array.isArray(a)?a.concat(b):Array.isArray(b)?[a].concat(b):[a,b]}var Z=function(a,b,c,f,e,d,g,h){if(!a){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=
19
+ 1;throw a;}},r=function(){};r.thatReturns=E;r.thatReturnsFalse=E(!1);r.thatReturnsTrue=E(!0);r.thatReturnsNull=E(null);r.thatReturnsThis=function(){return this};r.thatReturnsArgument=function(a){return a};var w=r,R=null,W=null,O=null,L=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,X="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" ");l={type:null,target:null,currentTarget:w.thatReturnsNull,eventPhase:null,
20
+ bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};L(B.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=w.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=
21
+ w.thatReturnsTrue)},persist:function(){this.isPersistent=w.thatReturnsTrue},isPersistent:w.thatReturnsFalse,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=null;for(a=0;a<X.length;a++)this[X[a]]=null}});B.Interface=l;B.extend=function(a){function b(){return c.apply(this,arguments)}var c=this,f=function(){};f.prototype=c.prototype;f=new f;L(f,b.prototype);b.prototype=f;b.prototype.constructor=b;b.Interface=L({},c.Interface,a);b.extend=c.extend;T(b);return b};T(B);var x=
22
+ B.extend({touchHistory:function(a){return null}});l=["touchstart","mousedown"];r=["touchmove","mousemove"];var Y=["touchcancel","touchend","mouseup"],p=[],q={touchBank:p,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},u={recordTouchTrack:function(a,b){if(G(a))b.changedTouches.forEach(fa);else if(C(a))b.changedTouches.forEach(ea),q.numberActiveTouches=b.touches.length,1===q.numberActiveTouches&&(q.indexOfSingleActiveTouch=b.touches[0].identifier);else if(H(a)&&(b.changedTouches.forEach(ha),
23
+ q.numberActiveTouches=b.touches.length,1===q.numberActiveTouches))for(a=0;a<p.length;a++)if(b=p[a],null!=b&&b.touchActive){q.indexOfSingleActiveTouch=a;break}},touchHistory:q},k=null,I=0,M=function(a,b){var c=k;k=a;if(null!==J.GlobalResponderHandler)J.GlobalResponderHandler.onChange(c,a,b)},m={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"},dependencies:l},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",
24
+ captured:"onScrollShouldSetResponderCapture"},dependencies:["scroll"]},selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",captured:"onSelectionChangeShouldSetResponderCapture"},dependencies:["selectionchange"]},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"},dependencies:r},responderStart:{registrationName:"onResponderStart",dependencies:l},responderMove:{registrationName:"onResponderMove",
25
+ dependencies:r},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:[]}},J={_getResponder:function(){return k},
26
+ eventTypes:m,extractEvents:function(a,b,c,f){if(C(a))I+=1;else if(H(a))if(0<=I)--I;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<I&&"selectionchange"===a||C(a)||G(a))){var e=C(a)?m.startShouldSetResponder:G(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=
27
+ 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=x.getPooled(e,d,c,f);d.touchHistory=u.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);
28
+ e&&e!==k?(d=void 0,b=x.getPooled(m.responderGrant,e,c,f),b.touchHistory=u.touchHistory,v(b,z),g=!0===N(b),k?(h=x.getPooled(m.responderTerminationRequest,k,c,f),h.touchHistory=u.touchHistory,v(h,z),l=!h._dispatchListeners||N(h),h.isPersistent()||h.constructor.release(h),l?(h=x.getPooled(m.responderTerminate,k,c,f),h.touchHistory=u.touchHistory,v(h,z),d=D(d,[b,h]),M(e,g)):(e=x.getPooled(m.responderReject,e,c,f),e.touchHistory=u.touchHistory,v(e,z),d=D(d,e))):(d=D(d,b),M(e,g)),e=d):e=null}else e=null;
29
+ d=k&&C(a);b=k&&G(a);g=k&&H(a);if(d=d?m.responderStart:b?m.responderMove:g?m.responderEnd:null)d=x.getPooled(d,k,c,f),d.touchHistory=u.touchHistory,v(d,z),e=D(e,d);d=k&&"touchcancel"===a;if(a=k&&!d&&H(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=W(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=x.getPooled(a,k,c,f),c.touchHistory=u.touchHistory,
30
+ v(c,z),e=D(e,c),M(null);return e},GlobalResponderHandler:null,injection:{injectGlobalResponderHandler:function(a){J.GlobalResponderHandler=a}}};l=function(a){R=a.getFiberCurrentPropsFromNode;W=a.getInstanceFromNode;O=a.getNodeFromInstance};l(A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDOMComponentTree);return{injectComponentTree:l,ResponderEventPlugin:J,ResponderTouchHistoryStore:u}});