/** @license React v16.4.1
 * react-dom-unstable-native-dependencies.production.min.js
 *
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
'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. ",
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;
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=
!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=
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]=
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"===
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=
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",
"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=
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=
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,
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=
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=
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),
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",
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",
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},
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=
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);
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;
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,
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}});
