Skip to content

Instantly share code, notes, and snippets.

@m0rsecode
Created July 8, 2015 04:56
Show Gist options
  • Save m0rsecode/64a91a85378b347378f8 to your computer and use it in GitHub Desktop.
Save m0rsecode/64a91a85378b347378f8 to your computer and use it in GitHub Desktop.
__DEV__=!1,function(e){function t(e){for(var t,n,r,o,i=Array.prototype.slice.call(e),a={};i.length;)if(n=i.shift(),!a[n]&&(a[n]=!0,r=h[n],r&&r.waiting))for(t=0;t<r.dependencies.length;t++)o=r.dependencies[t],(!h[o]||h[o].waiting)&&i.push(o);for(n in a)_.call(a,n)&&i.push(n);var s=[];for(t=0;t<i.length;t++){n=i[t];var u=n;if(r=h[n])if(r.waiting){for(var c=[],l=0;l<r.dependencies.length;l++)o=r.dependencies[l],(!h[o]||h[o].waiting)&&c.push(o);u+=" is waiting for "+c.join(", ")}else u+=" is ready";else u+=" is not defined";s.push(u)}return s.join("\n")}function n(e){this.name="ModuleError",this.message=e,this.stack=Error(e).stack,this.framesToPop=2}function r(o){var i,a,s,u=h[o];if(u&&u.exports)return 1===u.refcount--&&delete h[o],u.exports;if(e.ErrorUtils&&!e.ErrorUtils.inGuard())return ErrorUtils.applyWithGuard(r,this,arguments);if(!u)throw s='Requiring unknown module "'+o+'"',p&&(s+=". If you are sure the module is there, try restarting the packager."),new n(s);if(u.hasError)throw new n('Requiring module "'+o+'" which threw an exception');if(u.waiting)throw new n('Requiring module "'+o+'" with unresolved dependencies: '+t([o]));var c=u.exports={},l=u.factory;if("[object Function]"===d.call(l)){var f,m=[],g=u.dependencies,v=g.length;u.special&y&&(v=Math.min(v,l.length));try{for(a=0;m.length<v;a++)i=g[a],u.inlineRequires[i]||m.push("module"===i?u:"exports"===i?c:r.call(null,i));++w,0===R++&&(E-=S());try{f=l.apply(u.context||e,m)}catch(_){if(h.ex&&h.erx){var b=r.call(null,"ex"),C=r.call(null,"erx"),T=C(_.message);T[0].indexOf(' from module "%s"')<0&&(T[0]+=' from module "%s"',T[T.length]=o),_.message=b.apply(null,T)}throw _}finally{0===--R&&(E+=S())}}catch(_){throw u.hasError=!0,u.exports=null,_}if(f){if(p&&"object"!=typeof f&&"function"!=typeof f)throw new n('Factory for module "'+o+'" returned an invalid value "'+f+'". Returned value should be either a function or an object.');u.exports=f}}else u.exports=l;return 1===u.refcount--&&delete h[o],u.exports}function o(e,t,r,o,a,u,l){void 0===t?(t=[],r=e,e=s()):void 0===r&&(r=t,"[object Array]"===d.call(e)?(t=e,e=s()):t=[]);var f={cancel:i.bind(this,e)},g=h[e];if(g)return u&&(g.refcount+=u),f;if(!t&&!r&&u)return m[e]=(m[e]||0)+u,f;if(g={id:e},g.refcount=(m[e]||0)+(u||0),delete m[e],p){if(!r||"object"!=typeof r&&"function"!=typeof r&&"string"!=typeof r)throw new n('Invalid factory "'+r+'" for module "'+e+'". Factory should be either a function or an object.');if("[object Array]"!==d.call(t))throw new n('Invalid dependencies for module "'+e+'". Dependencies must be passed as an array.')}return g.factory=r,g.dependencies=t,g.context=a,g.special=o,g.inlineRequires=l||{},g.waitingMap={},g.waiting=0,g.hasError=!1,h[e]=g,c(e),f}function i(e){if(h[e]){var t=h[e];delete h[e];for(var n in t.waitingMap)t.waitingMap[n]&&delete f[n][e];for(var r=0;r<t.dependencies.length;r++)n=t.dependencies[r],h[n]?1===h[n].refcount--&&i(n):m[n]&&m[n]--}}function a(e,t,n){return o(e,t,void 0,v,n,1)}function s(){return"__mod__"+g++}function u(e,t){e.waitingMap[t]||e.id===t||(e.waiting++,e.waitingMap[t]=1,f[t]||(f[t]={}),f[t][e.id]=1)}function c(e){var t,n,o,i=[],a=h[e];for(n=0;n<a.dependencies.length;n++)if(t=a.dependencies[n],h[t]){if(h[t].waiting)for(o in h[t].waitingMap)h[t].waitingMap[o]&&u(a,o)}else u(a,t);if(0===a.waiting&&a.special&v&&i.push(e),f[e]){var s,c=f[e];f[e]=void 0;for(t in c){s=h[t];for(o in a.waitingMap)a.waitingMap[o]&&u(s,o);s.waitingMap[e]&&(s.waitingMap[e]=void 0,s.waiting--),0===s.waiting&&s.special&v&&i.push(t)}}for(n=0;n<i.length;n++)r.call(null,i[n])}function l(e,t){var n=h[e]={id:e};n.exports=t,n.refcount=0}if(!e.require){var p=e.__DEV__,d=Object.prototype.toString,h={},f={},m={},g=0,v=1,y=2,_=Object.prototype.hasOwnProperty;n.prototype=Object.create(Error.prototype),n.prototype.constructor=n;var b=e.performance||e.msPerformance||e.webkitPerformance||{};b.now||(b=e.Date);var S=b?b.now.bind(b):function(){return 0},R=0,E=0,w=0;r.__getFactoryTime=function(){return(R?S():0)+E},r.__getTotalFactories=function(){return w},l("module",0),l("exports",0),l("global",e),l("require",r),l("requireDynamic",r),l("requireLazy",a),e.require=r,e.requireDynamic=r,e.requireLazy=a,r.__debug={modules:h,deps:f,printDependencyInfo:function(){if(e.console){var n=Object.keys(r.__debug.deps);e.console.log(t(n))}}},e.__d=function(e,t,n,r,i){var a=["global","require","requireDynamic","requireLazy","module","exports"];o(e,a.concat(t),n,r||y,null,null,i)}}}(this),Object.assign=function(e,t){if(__DEV__){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("In this environment the target of assign MUST be an object.This error is a performance optimization and not spec compliant.")}for(var n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r){if(__DEV__&&"object"!=typeof r&&"function"!=typeof r)throw new TypeError("In this environment the target of assign MUST be an object.This error is a performance optimization and not spec compliant.");for(var o in r){if(__DEV__){var i=Object.prototype.hasOwnProperty;if(!i.call(r,o))throw new TypeError("One of the sources to assign has an enumerable key on the prototype chain. This is an edge case that we do not support. This error is a performance optimization and not spec compliant.")}e[o]=r[o]}}}return e},function(e){"use strict";function t(e){function t(t){return function(){var n=Array.prototype.map.call(arguments,function(e){var t,n=typeof e;if(null===e)t="null";else if(void 0===e)t="undefined";else if("string"===n)t='"'+e+'"';else if("function"===n)try{t=e.toString()}catch(r){t="[function unknown]"}else try{t=JSON.stringify(e)}catch(r){if("function"==typeof e.toString)try{t=e.toString()}catch(o){}}return t||'["'+n+'" failed to stringify]'}).join(", ");e.nativeLoggingHook(n,t)}}function o(t){if(!Array.isArray(t)){var o=t;t=[];for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];s[n]=a,t.push(s)}}if(0===t.length)return void e.nativeLoggingHook("",r.log);var u=Object.keys(t[0]).sort(),c=[],l=[];u.forEach(function(e,n){l[n]=e.length;for(var r=0;r<t.length;r++){var o=t[r][e].toString();c[r]=c[r]||[],c[r][n]=o,l[n]=Math.max(l[n],o.length)}});for(var p=function(e,t){var n=e.map(function(e,t){var n=i(" ",l[t]-e.length).join("");return e+n});return t=t||" ",n.join(t+"|"+t)},d=l.map(function(e){return i("-",e).join("")}),h=p(d,"-"),f=p(u),m=[f,h],g=0;g<t.length;g++)m.push(p(c[g]));e.nativeLoggingHook("\n"+m.join("\n"),r.log)}if(e.nativeLoggingHook){var i=function(e,t){return Array.apply(null,Array(t)).map(function(){return e})};e.console={error:t(r.error),info:t(r.info),log:t(r.log),warn:t(r.warn),trace:t(r.trace),table:o}}}var n="(index)",r={trace:0,log:1,info:2,warn:3,error:4};"undefined"!=typeof module?module.exports=t:t(e)}(this),function(e){function t(){var t=function(t){e.console.error("Error: \n stack: "+t.stack+"\n line: "+t.line+"\n message: "+t.message,t)};e.ErrorUtils.setGlobalHandler(t)}var n={_inGuard:0,_globalHandler:null,setGlobalHandler:function(e){n._globalHandler=e},reportError:function(e){n._globalHandler&&n._globalHandler(e)},reportFatalError:function(e){n._globalHandler&&n._globalHandler(e,!0)},applyWithGuard:function(e,t,r){try{return n._inGuard++,e.apply(t,r)}catch(o){n.reportError(o)}finally{n._inGuard--}},applyWithGuardIfNeeded:function(e,t,r){return n.inGuard()?e.apply(t,r):void n.applyWithGuard(e,t,r)},inGuard:function(){return n._inGuard},guard:function(e,t,r){function o(){return n.applyWithGuard(e,r||this,arguments,null,t)}return"function"!=typeof e?(console.warn("A function must be passed to ErrorUtils.guard, got ",e),null):(t=t||e.name||"<generated guard>",o)}};e.ErrorUtils=n,t()}(this),String.prototype.startsWith||(String.prototype.startsWith=function(e){"use strict";if(null==this)throw TypeError();var t=String(this),n=arguments.length>1?Number(arguments[1])||0:0,r=Math.min(Math.max(n,0),t.length);return t.indexOf(String(e),n)===r}),String.prototype.endsWith||(String.prototype.endsWith=function(e){"use strict";if(null==this)throw TypeError();var t=String(this),n=t.length,r=String(e),o=arguments.length>1?Number(arguments[1])||0:n,i=Math.min(Math.max(o,0),n),a=i-r.length;return 0>a?!1:t.lastIndexOf(r,a)===a}),String.prototype.contains||(String.prototype.contains=function(e){"use strict";if(null==this)throw TypeError();var t=String(this),n=arguments.length>1?Number(arguments[1])||0:0;return-1!==t.indexOf(String(e),n)}),String.prototype.repeat||(String.prototype.repeat=function(e){"use strict";if(null==this)throw TypeError();var t=String(this);if(e=Number(e)||0,0>e||e===1/0)throw RangeError();if(1===e)return t;for(var n="";e;)1&e&&(n+=t),(e>>=1)&&(t+=t);return n}),function(e){function t(e,t){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var n=Object(this),r=n.length>>>0,o=0;r>o;o++)if(e.call(t,n[o],o,n))return o;return-1}Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{enumerable:!1,writable:!0,configurable:!0,value:t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{enumerable:!1,writable:!0,configurable:!0,value:function(n,r){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");var o=t.call(this,n,r);return-1===o?e:this[o]}})}(),function(e){function t(e){return new Error("You are trying to render the global "+e+" variable as a React element. You probably forgot to require "+e+".")}e.Text={get defaultProps(){throw t("Text")}},e.Image={get defaultProps(){throw t("Image")}},e.document&&(e.document.createElement=null),e.MutationObserver=void 0}(this),__d("MetPro/index.ios",["react-native/Libraries/react-native/react-native","MetPro/stores/UserStore","MetPro/components/LoginScreen","MetPro/components/ProfileScreen","MetPro/components/MainScreen","MetPro/actions/UserActionCreators","MetPro/actions/ServerActionCreators","Dimensions"],function(e,t,n,r,o,i){"use strict";function a(){return{currentUser:c.getCurrentUser()}}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=t("react-native/Libraries/react-native/react-native"),c=t("MetPro/stores/UserStore"),l=t("MetPro/components/LoginScreen"),p=(t("MetPro/components/ProfileScreen"),t("MetPro/components/MainScreen")),d=t("MetPro/actions/UserActionCreators"),h=(t("MetPro/actions/ServerActionCreators"),t("Dimensions")),f=h.get("window"),m=f.width,g=f.height,v=u.AppRegistry,y=u.StatusBarIOS,_=(u.Navigator,u.AlertIOS,u.StyleSheet,u.View),b=u.createClass({getInitialState:function(){return s({},a())},componentWillMount:function(){y.setStyle(1),c.addChangeListener(this._onChange),d.loadCurrentUser()},componentWillUnmount:function(){c.removeChangeListener(this._onChange)},render:function(){var e=this.state.currentUser;return e?e.isAnonymous?u.createElement(l,null):u.createElement(p,null):u.createElement(_,{style:{backgroundColor:"white",width:m,height:g}})},_onChange:function(){this.setState(a())}});v.registerComponent("MetPro",function(){return b})}),__d("react-native/Libraries/react-native/react-native",["React","ActivityIndicatorIOS","DatePickerIOS","Image","ListView","MapView","Navigator","NavigatorIOS","PickerIOS","ProgressViewIOS","ScrollView","SegmentedControlIOS","SliderIOS","SwitchIOS","TabBarIOS","Text","TextInput","TouchableHighlight","TouchableOpacity","TouchableWithoutFeedback","View","WebView","AlertIOS","AppRegistry","AppStateIOS","AsyncStorage","CameraRoll","InteractionManager","LayoutAnimation","LinkingIOS","NetInfo","PanResponder","PixelRatio","PushNotificationIOS","StatusBarIOS","StyleSheet","VibrationIOS","RCTDeviceEventEmitter","RCTNativeAppEventEmitter","NativeModules","requireNativeComponent","LinkedStateMixin","ReactComponentWithPureRenderMixin","NativeModules","ReactUpdates","cloneWithProps","ReactFragment","update","ReactDefaultPerf","ReactTestUtils"],function(e,t,n,r,o,i){"use strict";var a=Object.assign(Object.create(t("React")),{ActivityIndicatorIOS:t("ActivityIndicatorIOS"),DatePickerIOS:t("DatePickerIOS"),Image:t("Image"),ListView:t("ListView"),MapView:t("MapView"),Navigator:t("Navigator"),NavigatorIOS:t("NavigatorIOS"),PickerIOS:t("PickerIOS"),ProgressViewIOS:t("ProgressViewIOS"),ScrollView:t("ScrollView"),SegmentedControlIOS:t("SegmentedControlIOS"),SliderIOS:t("SliderIOS"),SwitchIOS:t("SwitchIOS"),TabBarIOS:t("TabBarIOS"),Text:t("Text"),TextInput:t("TextInput"),TouchableHighlight:t("TouchableHighlight"),TouchableOpacity:t("TouchableOpacity"),TouchableWithoutFeedback:t("TouchableWithoutFeedback"),View:t("View"),WebView:t("WebView"),AlertIOS:t("AlertIOS"),AppRegistry:t("AppRegistry"),AppStateIOS:t("AppStateIOS"),AsyncStorage:t("AsyncStorage"),CameraRoll:t("CameraRoll"),InteractionManager:t("InteractionManager"),LayoutAnimation:t("LayoutAnimation"),LinkingIOS:t("LinkingIOS"),NetInfo:t("NetInfo"),PanResponder:t("PanResponder"),PixelRatio:t("PixelRatio"),PushNotificationIOS:t("PushNotificationIOS"),StatusBarIOS:t("StatusBarIOS"),StyleSheet:t("StyleSheet"),VibrationIOS:t("VibrationIOS"),DeviceEventEmitter:t("RCTDeviceEventEmitter"),NativeAppEventEmitter:t("RCTNativeAppEventEmitter"),NativeModules:t("NativeModules"),requireNativeComponent:t("requireNativeComponent"),addons:{LinkedStateMixin:t("LinkedStateMixin"),Perf:void 0,PureRenderMixin:t("ReactComponentWithPureRenderMixin"),TestModule:t("NativeModules").TestModule,TestUtils:void 0,batchedUpdates:t("ReactUpdates").batchedUpdates,cloneWithProps:t("cloneWithProps"),createFragment:t("ReactFragment").create,update:t("update")}});__DEV__&&(a.addons.Perf=t("ReactDefaultPerf"),a.addons.TestUtils=t("ReactTestUtils")),o.exports=a}),__d("React",["ReactNative"],function(e,t,n,r,o,i){"use strict";o.exports=t("ReactNative")}),__d("ReactNative",["ReactChildren","ReactClass","ReactComponent","ReactContext","ReactCurrentOwner","ReactElement","ReactElementValidator","ReactInstanceHandles","ReactNativeDefaultInjection","ReactNativeMount","ReactPropTypes","deprecated","findNodeHandle","invariant","onlyChild","ReactReconciler","ReactNativeTextComponent"],function(e,t,n,r,o,i){"use strict";var a=t("ReactChildren"),s=t("ReactClass"),u=t("ReactComponent"),c=t("ReactContext"),l=t("ReactCurrentOwner"),p=t("ReactElement"),d=t("ReactElementValidator"),h=t("ReactInstanceHandles"),f=t("ReactNativeDefaultInjection"),m=t("ReactNativeMount"),g=t("ReactPropTypes"),v=t("deprecated"),y=t("findNodeHandle"),_=t("invariant"),b=t("onlyChild");f.inject();var S=p.createElement,R=p.createFactory,E=p.cloneElement;__DEV__&&(S=d.createElement,R=d.createFactory,E=d.cloneElement);var w=function(e){var t=e.type.defaultProps,n=e.props;for(var r in t)void 0===n[r]&&(n[r]=t[r])},C=function(e){return __DEV__&&_(!1,"This optimized path should never be used in DEV mode because it does not provide validation. Check your JSX transform."),e._owner=l.current,e._context=c.current,e.type.defaultProps&&w(e),e},T=function(e,t,n){return m.renderComponent(e,t,n)},I={hasReactNativeInitialized:!1,Children:{map:a.map,forEach:a.forEach,count:a.count,only:b},Component:u,PropTypes:g,createClass:s.createClass,createElement:S,createFactory:R,cloneElement:E,_augmentElement:C,findNodeHandle:y,render:T,unmountComponentAtNode:m.unmountComponentAtNode,__spread:Object.assign,unmountComponentAtNodeAndRemoveContainer:m.unmountComponentAtNodeAndRemoveContainer,isValidClass:p.isValidFactory,isValidElement:p.isValidElement,renderComponent:v("React","renderComponent","render",this,T),isValidComponent:v("React","isValidComponent","isValidElement",this,p.isValidElement)};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:l,InstanceHandles:h,Mount:m,Reconciler:t("ReactReconciler"),TextComponent:t("ReactNativeTextComponent")}),o.exports=I}),__d("ReactChildren",["PooledClass","ReactFragment","traverseAllChildren","warning"],function(e,t,n,r,o,i){"use strict";function a(e,t){this.forEachFunction=e,this.forEachContext=t}function s(e,t,n,r){var o=e;o.forEachFunction.call(o.forEachContext,t,r)}function u(e,t,n){if(null==e)return e;var r=a.getPooled(t,n);g(e,s,r),a.release(r)}function c(e,t,n){this.mapResult=e,this.mapFunction=t,this.mapContext=n}function l(e,t,n,r){var o=e,i=o.mapResult,a=!i.hasOwnProperty(n);if(__DEV__&&v(a,"ReactChildren.map(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",n),a){var s=o.mapFunction.call(o.mapContext,t,r);i[n]=s}}function p(e,t,n){if(null==e)return e;var r={},o=c.getPooled(r,t,n);return g(e,l,o),c.release(o),m.create(r)}function d(e,t,n,r){return null}function h(e,t){return g(e,d,null)}var f=t("PooledClass"),m=t("ReactFragment"),g=t("traverseAllChildren"),v=t("warning"),y=f.twoArgumentPooler,_=f.threeArgumentPooler;f.addPoolingTo(a,y),f.addPoolingTo(c,_);var b={forEach:u,map:p,count:h};o.exports=b}),__d("PooledClass",["invariant"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},u=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},c=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},l=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},p=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor&&e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},d=10,h=s,f=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||h,n.poolSize||(n.poolSize=d),n.release=p,n},m={addPoolingTo:f,oneArgumentPooler:s,twoArgumentPooler:u,threeArgumentPooler:c,fiveArgumentPooler:l};o.exports=m}),__d("invariant",[],function(e,t,n,r,o,i){"use strict";var a=function(e,t,n,r,o,i,a,s){if(__DEV__&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;u=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return c[l++]}))}throw u.framesToPop=1,u}};o.exports=a}),__d("ReactFragment",["ReactElement","warning"],function(e,t,n,r,o,i){"use strict";var a=t("ReactElement"),s=t("warning");if(__DEV__){var u="_reactFragment",c="_reactDidWarn",l=!1;try{var p=function(){return 1};Object.defineProperty({},u,{enumerable:!1,value:!0}),Object.defineProperty({},"key",{enumerable:!0,get:p}),l=!0}catch(d){}var h=function(e,t){Object.defineProperty(e,t,{enumerable:!0,get:function(){return s(this[c],"A ReactFragment is an opaque type. Accessing any of its properties is deprecated. Pass it to one of the React.Children helpers."),this[c]=!0,this[u][t]},set:function(e){s(this[c],"A ReactFragment is an immutable opaque type. Mutating its properties is deprecated."),this[c]=!0,this[u][t]=e}})},f={},m=function(e){var t="";for(var n in e)t+=n+":"+typeof e[n]+",";var r=!!f[t];return f[t]=!0,r}}var g={create:function(e){if(__DEV__){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object.",e),e;if(a.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;if(l){var t={};Object.defineProperty(t,u,{enumerable:!1,value:e}),Object.defineProperty(t,c,{writable:!0,enumerable:!1,value:!1});for(var n in e)h(t,n);return Object.preventExtensions(t),t}}return e},extract:function(e){return __DEV__&&l?e[u]?e[u]:(s(m(e),"Any use of a keyed object should be wrapped in React.addons.createFragment(object) before being passed as a child."),e):e},extractIfFragment:function(e){if(__DEV__&&l){if(e[u])return e[u];for(var t in e)if(e.hasOwnProperty(t)&&a.isValidElement(e[t]))return g.extract(e)}return e}};o.exports=g}),__d("ReactElement",["ReactContext","ReactCurrentOwner","Object.assign","warning"],function(e,t,n,r,o,i){"use strict";function a(e,t){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:function(){return this._store?this._store[t]:null},set:function(e){p(!1,"Don't set the %s property of the React element. Instead, specify the correct value when initially creating the element.",t),this._store[t]=e}})}function s(e){try{var t={props:!0};for(var n in t)a(e,n);h=!0}catch(r){}}var u=t("ReactContext"),c=t("ReactCurrentOwner"),l=t("Object.assign"),p=t("warning"),d={key:!0,ref:!0},h=!1,f=function(e,t,n,r,o,i){if(this.type=e,this.key=t,this.ref=n,this._owner=r,this._context=o,__DEV__){this._store={props:i,originalProps:l({},i)};try{Object.defineProperty(this._store,"validated",{configurable:!1,enumerable:!1,writable:!0})}catch(a){}if(this._store.validated=!1,h)return void Object.freeze(this)}this.props=i};f.prototype={_isReactElement:!0},__DEV__&&s(f.prototype),f.createElement=function(e,t,n){var r,o={},i=null,a=null;if(null!=t){a=void 0===t.ref?null:t.ref,i=void 0===t.key?null:""+t.key;for(r in t)t.hasOwnProperty(r)&&!d.hasOwnProperty(r)&&(o[r]=t[r])}var s=arguments.length-2;if(1===s)o.children=n;else if(s>1){for(var l=Array(s),p=0;s>p;p++)l[p]=arguments[p+2];o.children=l}if(e&&e.defaultProps){var h=e.defaultProps;for(r in h)"undefined"==typeof o[r]&&(o[r]=h[r])}return new f(e,i,a,c.current,u.current,o)},f.createFactory=function(e){var t=f.createElement.bind(null,e);return t.type=e,t},f.cloneAndReplaceProps=function(e,t){var n=new f(e.type,e.key,e.ref,e._owner,e._context,t);return __DEV__&&(n._store.validated=e._store.validated),n},f.cloneElement=function(e,t,n){var r,o=l({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(a=t.ref,s=c.current),void 0!==t.key&&(i=""+t.key);for(r in t)t.hasOwnProperty(r)&&!d.hasOwnProperty(r)&&(o[r]=t[r])}var u=arguments.length-2;if(1===u)o.children=n;else if(u>1){for(var p=Array(u),h=0;u>h;h++)p[h]=arguments[h+2];o.children=p}return new f(e.type,i,a,s,e._context,o)},f.isValidElement=function(e){var t=!(!e||!e._isReactElement);return t},o.exports=f}),__d("ReactContext",["Object.assign","emptyObject","warning"],function(e,t,n,r,o,i){"use strict";var a=t("Object.assign"),s=t("emptyObject"),u=t("warning"),c=!1,l={current:s,withContext:function(e,t){__DEV__&&(u(c,"withContext is deprecated and will be removed in a future version. Use a wrapper component with getChildContext instead."),c=!0);var n,r=l.current;l.current=a({},r,e);try{n=t()}finally{l.current=r}return n}};o.exports=l}),__d("Object.assign",[],function(e,t,n,r,o,i){"use strict";function a(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var i=arguments[o];if(null!=i){var a=Object(i);for(var s in a)r.call(a,s)&&(n[s]=a[s])}}return n}o.exports=a}),__d("emptyObject",[],function(e,t,n,r,o,i){"use strict";var a={};__DEV__&&Object.freeze(a),o.exports=a}),__d("warning",["emptyFunction"],function(e,t,n,r,o,i){"use strict";var a=t("emptyFunction"),s=a;__DEV__&&(s=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(0!==t.indexOf("Failed Composite propType: ")&&!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return r[i++]});console.warn(a);try{throw new Error(a)}catch(s){}}}),o.exports=s}),__d("emptyFunction",[],function(e,t,n,r,o,i){function a(e){return function(){return e}}function s(){}s.thatReturns=a,s.thatReturnsFalse=a(!1),s.thatReturnsTrue=a(!0),s.thatReturnsNull=a(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(e){return e},o.exports=s}),__d("ReactCurrentOwner",[],function(e,t,n,r,o,i){"use strict";var a={current:null};o.exports=a}),__d("traverseAllChildren",["ReactElement","ReactFragment","ReactInstanceHandles","getIteratorFn","invariant","warning"],function(e,t,n,r,o,i){"use strict";function a(e){return b[e]}function s(e,t){return e&&null!=e.key?c(e.key):t.toString(36)}function u(e){return(""+e).replace(S,a)}function c(e){return"$"+u(e)}function l(e,t,n,r,o){var i=typeof e;if(("undefined"===i||"boolean"===i)&&(e=null),null===e||"string"===i||"number"===i||d.isValidElement(e))return r(o,e,""===t?y+s(e,0):t,n),1;var a,u,p,f=0;if(Array.isArray(e))for(var b=0;b<e.length;b++)a=e[b],u=(""!==t?t+_:y)+s(a,b),p=n+f,f+=l(a,u,p,r,o);else{var S=m(e);if(S){var E,w=S.call(e);if(S!==e.entries)for(var C=0;!(E=w.next()).done;)a=E.value,u=(""!==t?t+_:y)+s(a,C++),p=n+f,f+=l(a,u,p,r,o);else for(__DEV__&&(v(R,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead."),R=!0);!(E=w.next()).done;){var T=E.value;T&&(a=T[1],u=(""!==t?t+_:y)+c(T[0])+_+s(a,0),p=n+f,f+=l(a,u,p,r,o))}}else if("object"===i){g(1!==e.nodeType,"traverseAllChildren(...): Encountered an invalid child; DOM elements are not valid children of React components.");var I=h.extract(e);for(var P in I)I.hasOwnProperty(P)&&(a=I[P],u=(""!==t?t+_:y)+c(P)+_+s(a,0),p=n+f,f+=l(a,u,p,r,o))}}return f}function p(e,t,n){return null==e?0:l(e,"",0,t,n)}var d=t("ReactElement"),h=t("ReactFragment"),f=t("ReactInstanceHandles"),m=t("getIteratorFn"),g=t("invariant"),v=t("warning"),y=f.SEPARATOR,_=":",b={"=":"=0",".":"=1",":":"=2"},S=/[=.:]/g,R=!1;o.exports=p}),__d("ReactInstanceHandles",["ReactRootIndex","invariant"],function(e,t,n,r,o,i){"use strict";function a(e){return g+e.toString(36)}function s(e,t){return e.charAt(t)===g||t===e.length}function u(e){return""===e||e.charAt(0)===g&&e.charAt(e.length-1)!==g}function c(e,t){return 0===t.indexOf(e)&&s(t,e.length)}function l(e){return e?e.substr(0,e.lastIndexOf(g)):""}function p(e,t){if(m(u(e)&&u(t),"getNextDescendantID(%s, %s): Received an invalid React DOM ID.",e,t),m(c(e,t),"getNextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",e,t),e===t)return e;for(var n=e.length+v,r=n;r<t.length&&!s(t,r);r++);return t.substr(0,r)}function d(e,t){var n=Math.min(e.length,t.length);if(0===n)return"";for(var r=0,o=0;n>=o;o++)if(s(e,o)&&s(t,o))r=o;else if(e.charAt(o)!==t.charAt(o))break;var i=e.substr(0,r);return m(u(i),"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",e,t,i),i}function h(e,t,n,r,o,i){e=e||"",t=t||"",m(e!==t,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",e);var a=c(t,e);m(a||c(e,t),"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",e,t);for(var s=0,u=a?l:p,d=e;;d=u(d,t)){var h;if(o&&d===e||i&&d===t||(h=n(d,a,r)),h===!1||d===t)break;m(s++<y,"traverseParentPath(%s, %s, ...): Detected an infinite loop while traversing the React DOM ID tree. This may be due to malformed IDs: %s",e,t)}}var f=t("ReactRootIndex"),m=t("invariant"),g=".",v=g.length,y=100,_={createReactRootID:function(){return a(f.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===g&&e.length>1){var t=e.indexOf(g,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var i=d(e,t);i!==e&&h(e,i,n,r,!1,!0),i!==t&&h(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(h("",e,t,n,!0,!1),h(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(h("",e,t,n,!0,!0),h(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){h("",e,t,n,!0,!1)},_getFirstCommonAncestorID:d,_getNextDescendantID:p,isAncestorIDOf:c,SEPARATOR:g};o.exports=_}),__d("ReactRootIndex",[],function(e,t,n,r,o,i){"use strict";var a={injectCreateReactRootIndex:function(e){s.createReactRootIndex=e}},s={createReactRootIndex:null,injection:a};o.exports=s}),__d("getIteratorFn",[],function(e,t,n,r,o,i){"use strict";function a(e){var t=e&&(s&&e[s]||e[u]);return"function"==typeof t?t:void 0}var s="function"==typeof Symbol&&Symbol.iterator,u="@@iterator";o.exports=a}),__d("ReactClass",["ReactComponent","ReactCurrentOwner","ReactElement","ReactErrorUtils","ReactInstanceMap","ReactLifeCycle","ReactPropTypeLocations","ReactPropTypeLocationNames","ReactUpdateQueue","Object.assign","invariant","keyMirror","keyOf","warning"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){for(var r in t)t.hasOwnProperty(r)&&P("function"==typeof t[r],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",R[n],r)}function s(e,t){var n=D.hasOwnProperty(t)?D[t]:null;A.hasOwnProperty(t)&&C(n===M.OVERRIDE_BASE,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e.hasOwnProperty(t)&&C(n===M.DEFINE_MANY||n===M.DEFINE_MANY_MERGED,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function u(e,t){if(t){C("function"!=typeof t,"ReactClass: You're attempting to use a component class as a mixin. Instead, just use a regular object."),C(!v.isValidElement(t),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var n=e.prototype;t.hasOwnProperty(x)&&N.mixins(e,t.mixins);for(var r in t)if(t.hasOwnProperty(r)&&r!==x){var o=t[r];if(s(n,r),N.hasOwnProperty(r))N[r](e,o);else{var i=D.hasOwnProperty(r),a=n.hasOwnProperty(r),u=o&&o.__reactDontBind,c="function"==typeof o,l=c&&!i&&!a&&!u;if(l)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[r]=o,n[r]=o;else if(a){var h=D[r];C(i&&(h===M.DEFINE_MANY_MERGED||h===M.DEFINE_MANY),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",h,r),h===M.DEFINE_MANY_MERGED?n[r]=p(n[r],o):h===M.DEFINE_MANY&&(n[r]=d(n[r],o))}else n[r]=o,__DEV__&&"function"==typeof o&&t.displayName&&(n[r].displayName=t.displayName+"_"+r)}}}}function c(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in N;C(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;C(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=r}}}function l(e,t){C(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(C(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return l(o,n),l(o,r),o}}function d(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);if(__DEV__){n.__reactBoundContext=e,n.__reactBoundMethod=t,n.__reactBoundArguments=null;var r=e.constructor.displayName,o=n.bind;n.bind=function(i){for(var a=arguments.length,s=Array(a>1?a-1:0),u=1;a>u;u++)s[u-1]=arguments[u];if(i!==e&&null!==i)P(!1,"bind(): React component methods may only be bound to the component instance. See %s",r);else if(!s.length)return P(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",r),
n;var c=o.apply(n,arguments);return c.__reactBoundContext=e,c.__reactBoundMethod=t,c.__reactBoundArguments=s,c}}return n}function f(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=h(e,y.guard(n,e.constructor.displayName+"."+t))}}var m=t("ReactComponent"),g=t("ReactCurrentOwner"),v=t("ReactElement"),y=t("ReactErrorUtils"),_=t("ReactInstanceMap"),b=t("ReactLifeCycle"),S=t("ReactPropTypeLocations"),R=t("ReactPropTypeLocationNames"),E=t("ReactUpdateQueue"),w=t("Object.assign"),C=t("invariant"),T=t("keyMirror"),I=t("keyOf"),P=t("warning"),x=I({mixins:null}),M=T({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),O=[],D={mixins:M.DEFINE_MANY,statics:M.DEFINE_MANY,propTypes:M.DEFINE_MANY,contextTypes:M.DEFINE_MANY,childContextTypes:M.DEFINE_MANY,getDefaultProps:M.DEFINE_MANY_MERGED,getInitialState:M.DEFINE_MANY_MERGED,getChildContext:M.DEFINE_MANY_MERGED,render:M.DEFINE_ONCE,componentWillMount:M.DEFINE_MANY,componentDidMount:M.DEFINE_MANY,componentWillReceiveProps:M.DEFINE_MANY,shouldComponentUpdate:M.DEFINE_ONCE,componentWillUpdate:M.DEFINE_MANY,componentDidUpdate:M.DEFINE_MANY,componentWillUnmount:M.DEFINE_MANY,updateComponent:M.OVERRIDE_BASE},N={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)u(e,t[n])},childContextTypes:function(e,t){__DEV__&&a(e,t,S.childContext),e.childContextTypes=w({},e.childContextTypes,t)},contextTypes:function(e,t){__DEV__&&a(e,t,S.context),e.contextTypes=w({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=p(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){__DEV__&&a(e,t,S.prop),e.propTypes=w({},e.propTypes,t)},statics:function(e,t){c(e,t)}},k={enumerable:!1,get:function(){var e=this.displayName||this.name||"Component";return P(!1,"%s.type is deprecated. Use %s directly to access the class.",e,e),Object.defineProperty(this,"type",{value:this}),this}},A={replaceState:function(e,t){E.enqueueReplaceState(this,e),t&&E.enqueueCallback(this,t)},isMounted:function(){if(__DEV__){var e=g.current;null!==e&&(P(e._warnedAboutRefsInRender,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",e.getName()||"A component"),e._warnedAboutRefsInRender=!0)}var t=_.get(this);return t&&t!==b.currentlyMountingInstance},setProps:function(e,t){E.enqueueSetProps(this,e),t&&E.enqueueCallback(this,t)},replaceProps:function(e,t){E.enqueueReplaceProps(this,e),t&&E.enqueueCallback(this,t)}},L=function(){};w(L.prototype,m.prototype,A);var V={createClass:function(e){var t=function(e,n){__DEV__&&P(this instanceof t,"Something is calling a React component directly. Use a factory or JSX instead. See: http://fb.me/react-legacyfactory"),this.__reactAutoBindMap&&f(this),this.props=e,this.context=n,this.state=null;var r=this.getInitialState?this.getInitialState():null;__DEV__&&"undefined"==typeof r&&this.getInitialState._isMockFunction&&(r=null),C("object"==typeof r&&!Array.isArray(r),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=r};t.prototype=new L,t.prototype.constructor=t,O.forEach(u.bind(null,t)),u(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),__DEV__&&(t.getDefaultProps&&(t.getDefaultProps.isReactClassApproved={}),t.prototype.getInitialState&&(t.prototype.getInitialState.isReactClassApproved={})),C(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),__DEV__&&P(!t.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",e.displayName||"A component");for(var n in D)t.prototype[n]||(t.prototype[n]=null);if(t.type=t,__DEV__)try{Object.defineProperty(t,"type",k)}catch(r){}return t},injection:{injectMixin:function(e){O.push(e)}}};o.exports=V}),__d("ReactComponent",["ReactUpdateQueue","invariant","warning"],function(e,t,n,r,o,i){"use strict";function a(e,t){this.props=e,this.context=t}var s=t("ReactUpdateQueue"),u=t("invariant"),c=t("warning");if(a.prototype.setState=function(e,t){u("object"==typeof e||"function"==typeof e||null==e,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),__DEV__&&c(null!=e,"setState(...): You passed an undefined or null state object; instead, use forceUpdate()."),s.enqueueSetState(this,e),t&&s.enqueueCallback(this,t)},a.prototype.forceUpdate=function(e){s.enqueueForceUpdate(this),e&&s.enqueueCallback(this,e)},__DEV__){var l={getDOMNode:"getDOMNode",isMounted:"isMounted",replaceProps:"replaceProps",replaceState:"replaceState",setProps:"setProps"},p=function(e,t){try{Object.defineProperty(a.prototype,e,{get:function(){return void c(!1,"%s(...) is deprecated in plain JavaScript React classes.",t)}})}catch(n){}};for(var d in l)l.hasOwnProperty(d)&&p(d,l[d])}o.exports=a}),__d("ReactUpdateQueue",["ReactLifeCycle","ReactCurrentOwner","ReactElement","ReactInstanceMap","ReactUpdates","Object.assign","invariant","warning"],function(e,t,n,r,o,i){"use strict";function a(e){e!==u.currentlyMountingInstance&&d.enqueueUpdate(e)}function s(e,t){f(null==c.current,"%s(...): Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.",t);var n=p.get(e);return n?n===u.currentlyUnmountingInstance?null:n:(__DEV__&&m(!t,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op.",t,t),null)}var u=t("ReactLifeCycle"),c=t("ReactCurrentOwner"),l=t("ReactElement"),p=t("ReactInstanceMap"),d=t("ReactUpdates"),h=t("Object.assign"),f=t("invariant"),m=t("warning"),g={enqueueCallback:function(e,t){f("function"==typeof t,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable.");var n=s(e);return n&&n!==u.currentlyMountingInstance?(n._pendingCallbacks?n._pendingCallbacks.push(t):n._pendingCallbacks=[t],void a(n)):null},enqueueCallbackInternal:function(e,t){f("function"==typeof t,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."),e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],a(e)},enqueueForceUpdate:function(e){var t=s(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,a(t))},enqueueReplaceState:function(e,t){var n=s(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,a(n))},enqueueSetState:function(e,t){var n=s(e,"setState");if(n){var r=n._pendingStateQueue||(n._pendingStateQueue=[]);r.push(t),a(n)}},enqueueSetProps:function(e,t){var n=s(e,"setProps");if(n){f(n._isTopLevel,"setProps(...): You called `setProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created.");var r=n._pendingElement||n._currentElement,o=h({},r.props,t);n._pendingElement=l.cloneAndReplaceProps(r,o),a(n)}},enqueueReplaceProps:function(e,t){var n=s(e,"replaceProps");if(n){f(n._isTopLevel,"replaceProps(...): You called `replaceProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created.");var r=n._pendingElement||n._currentElement;n._pendingElement=l.cloneAndReplaceProps(r,t),a(n)}},enqueueElementInternal:function(e,t){e._pendingElement=t,a(e)}};o.exports=g}),__d("ReactLifeCycle",[],function(e,t,n,r,o,i){"use strict";var a={currentlyMountingInstance:null,currentlyUnmountingInstance:null};o.exports=a}),__d("ReactInstanceMap",[],function(e,t,n,r,o,i){"use strict";var a={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};o.exports=a}),__d("ReactUpdates",["CallbackQueue","PooledClass","ReactCurrentOwner","ReactPerf","ReactReconciler","Transaction","Object.assign","invariant","warning"],function(e,t,n,r,o,i){"use strict";function a(){b(O.ReactReconcileTransaction&&C,"ReactUpdates: must inject a reconcile transaction class and batching strategy")}function s(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=h.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled()}function u(e,t,n,r,o){a(),C.batchedUpdates(e,t,n,r,o)}function c(e,t){return e._mountOrder-t._mountOrder}function l(e){var t=e.dirtyComponentsLength;b(t===R.length,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",t,R.length),R.sort(c);for(var n=0;t>n;n++){var r=R[n],o=r._pendingCallbacks;if(r._pendingCallbacks=null,v.performUpdateIfNecessary(r,e.reconcileTransaction),o)for(var i=0;i<o.length;i++)e.callbackQueue.enqueue(o[i],r.getPublicInstance())}}function p(e){return a(),S(null==m.current,"enqueueUpdate(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate."),C.isBatchingUpdates?void R.push(e):void C.batchedUpdates(p,e)}function d(e,t){b(C.isBatchingUpdates,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."),E.enqueue(e,t),w=!0}var h=t("CallbackQueue"),f=t("PooledClass"),m=t("ReactCurrentOwner"),g=t("ReactPerf"),v=t("ReactReconciler"),y=t("Transaction"),_=t("Object.assign"),b=t("invariant"),S=t("warning"),R=[],E=h.getPooled(),w=!1,C=null,T={initialize:function(){this.dirtyComponentsLength=R.length},close:function(){this.dirtyComponentsLength!==R.length?(R.splice(0,this.dirtyComponentsLength),x()):R.length=0}},I={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},P=[T,I];_(s.prototype,y.Mixin,{getTransactionWrappers:function(){return P},destructor:function(){this.dirtyComponentsLength=null,h.release(this.callbackQueue),this.callbackQueue=null,O.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return y.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),f.addPoolingTo(s);var x=function(){for(;R.length||w;){if(R.length){var e=s.getPooled();e.perform(l,null,e),s.release(e)}if(w){w=!1;var t=E;E=h.getPooled(),t.notifyAll(),h.release(t)}}};x=g.measure("ReactUpdates","flushBatchedUpdates",x);var M={injectReconcileTransaction:function(e){b(e,"ReactUpdates: must provide a reconcile transaction class"),O.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){b(e,"ReactUpdates: must provide a batching strategy"),b("function"==typeof e.batchedUpdates,"ReactUpdates: must provide a batchedUpdates() function"),b("boolean"==typeof e.isBatchingUpdates,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"),C=e}},O={ReactReconcileTransaction:null,batchedUpdates:u,enqueueUpdate:p,flushBatchedUpdates:x,injection:M,asap:d};o.exports=O}),__d("CallbackQueue",["PooledClass","Object.assign","invariant"],function(e,t,n,r,o,i){"use strict";function a(){this._callbacks=null,this._contexts=null}var s=t("PooledClass"),u=t("Object.assign"),c=t("invariant");u(a.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){c(e.length===t.length,"Mismatched list of contexts in callback queue"),this._callbacks=null,this._contexts=null;for(var n=0,r=e.length;r>n;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),s.addPoolingTo(a),o.exports=a}),__d("ReactPerf",[],function(e,t,n,r,o,i){"use strict";function a(e,t,n){return n}var s={enableMeasure:!1,storedMeasure:a,measureMethods:function(e,t,n){if(__DEV__)for(var r in n)n.hasOwnProperty(r)&&(e[r]=s.measure(t,n[r],e[r]))},measure:function(e,t,n){if(__DEV__){var r=null,o=function(){return s.enableMeasure?(r||(r=s.storedMeasure(e,t,n)),r.apply(this,arguments)):n.apply(this,arguments)};return o.displayName=e+"_"+t,o}return n},injection:{injectMeasure:function(e){s.storedMeasure=e}}};o.exports=s}),__d("ReactReconciler",["ReactRef","ReactElementValidator"],function(e,t,n,r,o,i){"use strict";function a(){s.attachRefs(this,this._currentElement)}var s=t("ReactRef"),u=t("ReactElementValidator"),c={mountComponent:function(e,t,n,r){var o=e.mountComponent(t,n,r);return __DEV__&&u.checkAndWarnForMutatedProps(e._currentElement),n.getReactMountReady().enqueue(a,e),o},unmountComponent:function(e){s.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,n,r){var o=e._currentElement;if(t!==o||null==t._owner){__DEV__&&u.checkAndWarnForMutatedProps(t);var i=s.shouldUpdateRefs(o,t);i&&s.detachRefs(e,o),e.receiveComponent(t,n,r),i&&n.getReactMountReady().enqueue(a,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};o.exports=c}),__d("ReactRef",["ReactOwner"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){"function"==typeof e?e(t.getPublicInstance()):u.addComponentAsRefTo(t,e,n)}function s(e,t,n){"function"==typeof e?e(null):u.removeComponentAsRefFrom(t,e,n)}var u=t("ReactOwner"),c={};c.attachRefs=function(e,t){var n=t.ref;null!=n&&a(n,e,t._owner)},c.shouldUpdateRefs=function(e,t){return t._owner!==e._owner||t.ref!==e.ref},c.detachRefs=function(e,t){var n=t.ref;null!=n&&s(n,e,t._owner)},o.exports=c}),__d("ReactOwner",["invariant"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,n){a(s.isValidOwner(n),"addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){a(s.isValidOwner(n),"removeComponentAsRefFrom(...): Only a ReactOwner can have refs. This usually means that you're trying to remove a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."),n.getPublicInstance().refs[t]===e.getPublicInstance()&&n.detachRef(t)}};o.exports=s}),__d("ReactElementValidator",["ReactElement","ReactFragment","ReactPropTypeLocations","ReactPropTypeLocationNames","ReactCurrentOwner","ReactNativeComponent","getIteratorFn","invariant","warning"],function(e,t,n,r,o,i){"use strict";function a(){if(R.current){var e=R.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function s(e){var t=e&&e.getPublicInstance();if(!t)return void 0;var n=t.constructor;return n?n.displayName||n.name||void 0:void 0}function u(){var e=R.current;return e&&s(e)||void 0}function c(e,t){e._store.validated||null!=e.key||(e._store.validated=!0,p('Each child in an array or iterator should have a unique "key" prop.',e,t))}function l(e,t,n){x.test(e)&&p("Child objects should have non-numeric keys so ordering is preserved.",t,n)}function p(e,t,n){var r=u(),o="string"==typeof n?n:n.displayName||n.name,i=r||o,a=I[e]||(I[e]={});if(!a.hasOwnProperty(i)){a[i]=!0;var c=r?" Check the render method of "+r+".":o?" Check the React.render call using <"+o+">.":"",l="";if(t&&t._owner&&t._owner!==R.current){var p=s(t._owner);l=" It was passed a child from "+p+"."}T(!1,e+"%s%s See http://fb.me/react-warning-keys for more information.",c,l)}}function d(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];y.isValidElement(r)&&c(r,t)}else if(y.isValidElement(e))e._store.validated=!0;else if(e){var o=w(e);if(o){if(o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)y.isValidElement(i.value)&&c(i.value,t)}else if("object"==typeof e){var s=_.extractIfFragment(e);for(var u in s)s.hasOwnProperty(u)&&l(u,s[u],t)}}}function h(e,t,n,r){for(var o in t)if(t.hasOwnProperty(o)){var i;try{C("function"==typeof t[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e||"React class",S[r],o),i=t[o](n,o,e,r)}catch(s){i=s}if(i instanceof Error&&!(i.message in P)){P[i.message]=!0;var u=a(this);T(!1,"Failed propType: %s%s",i.message,u)}}}function f(e,t){var n=t.type,r="string"==typeof n?n:n.displayName,o=t._owner?t._owner.getPublicInstance().constructor.displayName:null,i=e+"|"+r+"|"+o;if(!M.hasOwnProperty(i)){M[i]=!0;var a="";r&&(a=" <"+r+" />");var s="";o&&(s=" The element was created by "+o+"."),T(!1,"Don't set .props.%s of the React component%s. Instead, specify the correct value when initially creating the element or use React.cloneElement to make a new element with updated props.%s",e,a,s)}}function m(e,t){return e!==e?t!==t:0===e&&0===t?1/e===1/t:e===t}function g(e){if(e._store){var t=e._store.originalProps,n=e.props;for(var r in n)n.hasOwnProperty(r)&&(t.hasOwnProperty(r)&&m(t[r],n[r])||(f(r,e),t[r]=n[r]))}}function v(e){if(null!=e.type){var t=E.getComponentClassForElement(e),n=t.displayName||t.name;t.propTypes&&h(n,t.propTypes,e.props,b.prop),"function"==typeof t.getDefaultProps&&T(t.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var y=t("ReactElement"),_=t("ReactFragment"),b=t("ReactPropTypeLocations"),S=t("ReactPropTypeLocationNames"),R=t("ReactCurrentOwner"),E=t("ReactNativeComponent"),w=t("getIteratorFn"),C=t("invariant"),T=t("warning"),I={},P={},x=/^\d+$/,M={},O={checkAndWarnForMutatedProps:g,createElement:function(e,t,n){T(null!=e,"React.createElement: type should not be null or undefined. It should be a string (for DOM elements) or a ReactClass (for composite components).");var r=y.createElement.apply(this,arguments);if(null==r)return r;for(var o=2;o<arguments.length;o++)d(arguments[o],e);return v(r),r},createFactory:function(e){var t=O.createElement.bind(null,e);if(t.type=e,__DEV__)try{Object.defineProperty(t,"type",{enumerable:!1,get:function(){return T(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}})}catch(n){}return t},cloneElement:function(e,t,n){for(var r=y.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)d(arguments[o],r.type);return v(r),r}};o.exports=O}),__d("ReactPropTypeLocations",["keyMirror"],function(e,t,n,r,o,i){"use strict";var a=t("keyMirror"),s=a({prop:null,context:null,childContext:null});o.exports=s}),__d("keyMirror",["invariant"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s=function(e){var t,n={};a(e instanceof Object&&!Array.isArray(e),"keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};o.exports=s}),__d("ReactPropTypeLocationNames",[],function(e,t,n,r,o,i){"use strict";var a={};__DEV__&&(a={prop:"prop",context:"context",childContext:"child context"}),o.exports=a}),__d("ReactNativeComponent",["Object.assign","invariant"],function(e,t,n,r,o,i){"use strict";function a(e){if("function"==typeof e.type)return e.type;var t=e.type,n=f[t];return null==n&&(f[t]=n=d(t)),n}function s(e){return p(h,"There is no registered component for the tag %s",e.type),new h(e.type,e.props)}function u(e){return new m(e)}function c(e){return e instanceof m}var l=t("Object.assign"),p=t("invariant"),d=null,h=null,f={},m=null,g={injectGenericComponentClass:function(e){h=e},injectTextComponentClass:function(e){m=e},injectComponentClasses:function(e){l(f,e)},injectAutoWrapper:function(e){d=e}},v={getComponentClassForElement:a,createInternalComponent:s,createInstanceForText:u,isTextComponent:c,injection:g};o.exports=v}),__d("Transaction",["invariant"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,r,o,i,s,u){a(!this.isInTransaction(),"Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.");var c,l;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=e.call(t,n,r,o,i,s,u),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(p){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=u.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===u.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(o){}}}},closeAll:function(e){a(this.isInTransaction(),"Transaction.closeAll(): Cannot close transaction when none are open.");for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r,o=t[n],i=this.wrapperInitData[n];try{r=!0,i!==u.OBSERVED_ERROR&&o.close&&o.close.call(this,i),r=!1}finally{if(r)try{this.closeAll(n+1)}catch(s){}}}this.wrapperInitData.length=0}},u={Mixin:s,OBSERVED_ERROR:{}};o.exports=u}),__d("ReactErrorUtils",[],function(e,t,n,r,o,i){"use strict";var a={guard:function(e,t){return e}};o.exports=a}),__d("keyOf",[],function(e,t,n,r,o,i){var a=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};o.exports=a}),__d("ReactNativeDefaultInjection",["InitializeJavaScriptAppEngine","EventPluginHub","EventPluginUtils","IOSDefaultEventPluginOrder","IOSNativeBridgeEventPlugin","NodeHandle","ReactComponentEnvironment","ReactDefaultBatchingStrategy","ReactEmptyComponent","ReactInstanceHandles","ReactNativeComponentEnvironment","ReactNativeGlobalInteractionHandler","ReactNativeGlobalResponderHandler","ReactNativeMount","ReactNativeTextComponent","ReactNativeComponent","ReactUpdates","ResponderEventPlugin","UniversalWorkerNodeHandle","createReactNativeComponentClass","invariant","RCTEventEmitter","RCTLog","RCTJSTimers"],function(e,t,n,r,o,i){"use strict";function a(){s.injection.injectEventPluginOrder(c),s.injection.injectInstanceHandle(m),E.injection.injectGlobalResponderHandler(y),E.injection.injectGlobalInteractionHandler(v),s.injection.injectEventPluginsByName({ResponderEventPlugin:E,IOSNativeBridgeEventPlugin:l}),R.injection.injectReconcileTransaction(g.ReactReconcileTransaction),R.injection.injectBatchingStrategy(h),d.injection.injectEnvironment(g);var e=C({validAttributes:{},uiViewClassName:"RCTView"});f.injection.injectEmptyComponent(e),u.injection.injectMount(_),S.injection.injectTextComponentClass(b),S.injection.injectAutoWrapper(function(e){var t="";"string"==typeof e&&/^[a-z]/.test(e)&&(t+=" Each component name should start with an uppercase letter."),T(!1,"Expected a component class, got %s.%s",e,t)}),p.injection.injectImplementation(w)}t("InitializeJavaScriptAppEngine");var s=t("EventPluginHub"),u=t("EventPluginUtils"),c=t("IOSDefaultEventPluginOrder"),l=t("IOSNativeBridgeEventPlugin"),p=t("NodeHandle"),d=t("ReactComponentEnvironment"),h=t("ReactDefaultBatchingStrategy"),f=t("ReactEmptyComponent"),m=t("ReactInstanceHandles"),g=t("ReactNativeComponentEnvironment"),v=t("ReactNativeGlobalInteractionHandler"),y=t("ReactNativeGlobalResponderHandler"),_=t("ReactNativeMount"),b=t("ReactNativeTextComponent"),S=t("ReactNativeComponent"),R=t("ReactUpdates"),E=t("ResponderEventPlugin"),w=t("UniversalWorkerNodeHandle"),C=t("createReactNativeComponentClass"),T=t("invariant");t("RCTEventEmitter"),t("RCTLog"),t("RCTJSTimers"),o.exports={inject:a}}),__d("InitializeJavaScriptAppEngine",["RCTDeviceEventEmitter","ExceptionsManager","ErrorUtils","ExceptionsManager","Platform","JSTimers","NativeModules","Promise","XMLHttpRequest","fetch","Geolocation","WebSocket"],function(e,t,n,r,o,i){function a(e,n){try{t("ExceptionsManager").handleException(e,n)}catch(r){console.log("Failed to print error: ",r.message)}}function s(){var e=t("ErrorUtils");e.setGlobalHandler(a)}function u(){var e=t("ExceptionsManager"),n=t("Platform");__DEV__&&"ios"===n.OS&&e.installConsoleErrorReporter()}function c(){var e=t("JSTimers");GLOBAL.setTimeout=e.setTimeout,GLOBAL.setInterval=e.setInterval,GLOBAL.setImmediate=e.setImmediate,GLOBAL.clearTimeout=e.clearTimeout,GLOBAL.clearInterval=e.clearInterval,GLOBAL.clearImmediate=e.clearImmediate,GLOBAL.cancelAnimationFrame=e.clearInterval,GLOBAL.requestAnimationFrame=function(t){return e.requestAnimationFrame(t)}}function l(){var e=t("NativeModules").AlertManager;GLOBAL.alert||(GLOBAL.alert=function(t){var n={title:"Alert",message:""+t,buttons:[{cancel:"Okay"}]};e.alertWithArgs(n,null)})}function p(){GLOBAL.Promise=t("Promise")}function d(){GLOBAL.XMLHttpRequest=t("XMLHttpRequest");var e=t("fetch");GLOBAL.fetch=e.fetch,GLOBAL.Headers=e.Headers,GLOBAL.Request=e.Request,GLOBAL.Response=e.Response}function h(){GLOBAL.navigator=GLOBAL.navigator||{},GLOBAL.navigator.geolocation=t("Geolocation")}function f(){GLOBAL.WebSocket=t("WebSocket")}function m(){console.profile=console.profile||GLOBAL.consoleProfile||function(){},console.profileEnd=console.profileEnd||GLOBAL.consoleProfileEnd||function(){}}t("RCTDeviceEventEmitter"),"undefined"==typeof GLOBAL&&(GLOBAL=this),"undefined"==typeof window&&(window=GLOBAL),s(),c(),l(),p(),d(),u(),h(),f(),m()}),__d("RCTDeviceEventEmitter",["EventEmitter"],function(e,t,n,r,o,i){"use strict";var a=t("EventEmitter"),s=new a;o.exports=s}),__d("EventEmitter",["EmitterSubscription","ErrorUtils","EventSubscriptionVendor","emptyFunction","invariant"],function(e,t,n,r,o,i){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("EmitterSubscription"),c=t("ErrorUtils"),l=t("EventSubscriptionVendor"),p=t("emptyFunction"),d=t("invariant"),h=function(){function e(){a(this,e),this._subscriber=new l}return s(e,[{key:"addListener",value:function(e,t,n){return this._subscriber.addSubscription(e,new u(this._subscriber,t,n))}},{key:"once",value:function(e,t,n){var r=this;return this.addListener(e,function(){r.removeCurrentListener(),t.apply(n,arguments)})}},{key:"removeAllListeners",value:function(e){this._subscriber.removeAllSubscriptions(e)}},{key:"removeCurrentListener",value:function(){d(!!this._currentSubscription,"Not in an emitting cycle; there is no current subscription"),this._subscriber.removeSubscription(this._currentSubscription)}},{key:"listeners",value:function(e){var t=this._subscriber.getSubscriptionsForType(e);return t?t.filter(p.thatReturnsTrue).map(function(e){return e.listener}):[]}},{key:"emit",value:function(e){var t=this._subscriber.getSubscriptionsForType(e);if(t){for(var n=Object.keys(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i&&(this._currentSubscription=i,c.applyWithGuard(i.listener,i.context,Array.prototype.slice.call(arguments,1),null,"EventEmitter:"+e))}this._currentSubscription=null}}}]),e}();o.exports=h}),__d("EmitterSubscription",["EventSubscription"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}var u=function p(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:p(o,t,n)}if("value"in r)return r.value;var i=r.get;return void 0===i?void 0:i.call(n)},c=t("EventSubscription"),l=function(e){function t(e,n,r){a(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.listener=n,this.context=r}return s(t,e),t}(c);o.exports=l}),__d("EventSubscription",[],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(){function e(t){a(this,e),this.subscriber=t}return s(e,[{key:"remove",value:function(){this.subscriber.removeSubscription(this)}}]),e}();o.exports=u}),__d("ErrorUtils",[],function(e,t,n,r,o,i){var a=this;o.exports=a.ErrorUtils}),__d("EventSubscriptionVendor",["invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("invariant"),c=function(){function e(){a(this,e),this._subscriptionsForType={},this._currentSubscription=null}return s(e,[{key:"addSubscription",value:function(e,t){u(t.subscriber===this,"The subscriber of the subscription is incorrectly set."),this._subscriptionsForType[e]||(this._subscriptionsForType[e]=[]);var n=this._subscriptionsForType[e].length;return this._subscriptionsForType[e].push(t),t.eventType=e,t.key=n,t}},{key:"removeAllSubscriptions",value:function(e){void 0===e?this._subscriptionsForType={}:delete this._subscriptionsForType[e]}},{key:"removeSubscription",value:function(e){var t=e.eventType,n=e.key,r=this._subscriptionsForType[t];r&&delete r[n]}},{key:"getSubscriptionsForType",value:function(e){return this._subscriptionsForType[e]}}]),e}();o.exports=c}),__d("ExceptionsManager",["NativeModules","loadSourceMap","parseErrorStack","stringifySafe"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){h&&(n||(n=m(e)),t?h.reportFatalException(e.message,n):h.reportSoftException(e.message,n),__DEV__&&(d=d||f()).then(function(t){var n=m(e,t);h.updateExceptionMessage(e.message,n)})["catch"](function(e){console.warn("Unable to load source map: "+e.message)}))}function s(e,t){var n=m(e),r="Error: "+e.message+"\n stack: \n"+c(n)+"\n URL: "+e.sourceURL+"\n line: "+e.line+"\n message: "+e.message;console.errorOriginal?console.errorOriginal(r):console.error(r),a(e,t,n)}function u(){console.reportException||(console.reportException=a,console.errorOriginal=console.error.bind(console),console.error=function(){if(console.errorOriginal.apply(null,arguments),console.reportErrorsAsExceptions){var e=Array.prototype.map.call(arguments,g).join(", "),t=new Error("console.error: "+e);t.framesToPop=1,a(t,!1)}},void 0===console.reportErrorsAsExceptions&&(console.reportErrorsAsExceptions=!0))}function c(e){var t=Math.max.apply(null,e.map(function(e){return e.methodName.length}));return e.map(function(e){return l(e,t)}).join("\n")}function l(e,t){var n=e.file.split("/"),r=n[n.length-1];r.length>18&&(r=r.substr(0,17)+"…");
var o=p(t-e.methodName.length);return" "+e.methodName+o+" "+r+":"+e.lineNumber}function p(e){return new Array(e+1).join(" ")}var d,h=t("NativeModules").ExceptionsManager,f=t("loadSourceMap"),m=t("parseErrorStack"),g=t("stringifySafe");o.exports={handleException:s,installConsoleErrorReporter:u}}),__d("NativeModules",["BatchedBridge","nativeModulePrefixNormalizer"],function(e,t,n,r,o,i){"use strict";var a=t("BatchedBridge").RemoteModules,s=t("nativeModulePrefixNormalizer");s(a),o.exports=a}),__d("BatchedBridge",["BatchedBridgeFactory","MessageQueue"],function(e,t,n,r,o,i){"use strict";var a=t("BatchedBridgeFactory"),s=t("MessageQueue"),u=__fbBatchedBridgeConfig.remoteModuleConfig,c=__fbBatchedBridgeConfig.localModulesConfig,l=a.create(s,u,c);l._config=u,o.exports=l}),__d("BatchedBridgeFactory",["invariant","keyMirror","mapObject","warning"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s=t("keyMirror"),u=t("mapObject"),c=t("warning"),l=Array.prototype.slice,p=s({remote:null,local:null}),d={MethodTypes:p,_createBridgedModule:function(e,t,n){var r=u(t.methods,function(t,r){return t.type===p.local?null:function(){var t=arguments.length>0?arguments[arguments.length-1]:null,o=arguments.length>1?arguments[arguments.length-2]:null,i="function"==typeof t,s="function"==typeof o;s&&a(i,"Cannot have a non-function arg after a function arg.");var u=(i?1:0)+(s?1:0),c=l.call(arguments,0,arguments.length-u),p=i?t:null,d=s?o:null;return e.call(n,r,c,d,p)}});for(var o in t.constants)c(!r[o],"saw constant and method named %s",o),r[o]=t.constants[o];return r},create:function(e,t,n){var r=new e(t,n);return{callFunction:r.callFunction.bind(r),callFunctionReturnFlushedQueue:r.callFunctionReturnFlushedQueue.bind(r),invokeCallback:r.invokeCallback.bind(r),invokeCallbackAndReturnFlushedQueue:r.invokeCallbackAndReturnFlushedQueue.bind(r),flushedQueue:r.flushedQueue.bind(r),RemoteModules:u(t,this._createBridgedModule.bind(this,r)),setLoggingEnabled:r.setLoggingEnabled.bind(r),getLoggedOutgoingItems:r.getLoggedOutgoingItems.bind(r),getLoggedIncomingItems:r.getLoggedIncomingItems.bind(r),replayPreviousLog:r.replayPreviousLog.bind(r),processBatch:r.processBatch.bind(r)}}};o.exports=d}),__d("mapObject",[],function(e,t,n,r,o,i){"use strict";function a(e,t,n){if(!e)return null;var r={};for(var o in e)s.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r}var s=Object.prototype.hasOwnProperty;o.exports=a}),__d("MessageQueue",["ErrorUtils","ReactUpdates","invariant","warning","BridgeProfiling","JSTimersExecution"],function(e,t,n,r,o,i){"use strict";var a=t("ErrorUtils"),s=t("ReactUpdates"),u=t("invariant"),c=t("warning"),l=t("BridgeProfiling"),p=t("JSTimersExecution"),d="Error in MessageQueue implementation",h=!1,f=t,m=function(e,t,n){return e[t].apply(e,n)},g=function(e,t,n){this._requireFunc=n||f,this._initBookeeping(),this._initNamingMap(e,t)},v=0,y=1,_=2,b=3,S=4,R=function(e,t,n){try{return e.apply(t,n)}catch(r){a.reportFatalError(r)}},E=function(e,t,n,r){return e&&R(e,r,t),n?R(n,r,null):null},w=function(){return{GUID:1,errorCallbackIDForSuccessCallbackID:function(e){return e+1},successCallbackIDForErrorCallbackID:function(e){return e-1},allocateCallbackIDs:function(e){e.successCallbackID=this.GUID++,e.errorCallbackID=this.GUID++},isSuccessCallback:function(e){return e%2===1}}},C={_initNamingMap:function(e,t){function n(e,t,n,r,o){for(var i in e){var a=e[i],s=a.moduleID;t[i]=s,n[s]=i,r[i]={},o[i]={};var u=a.methods;for(var c in u){var l=u[c].methodID;r[i][c]=l,o[i][l]=c}}}this._remoteModuleNameToModuleID={},this._remoteModuleIDToModuleName={},this._remoteModuleNameToMethodNameToID={},this._remoteModuleNameToMethodIDToName={},this._localModuleNameToModuleID={},this._localModuleIDToModuleName={},this._localModuleNameToMethodNameToID={},this._localModuleNameToMethodIDToName={},n(e,this._remoteModuleNameToModuleID,this._remoteModuleIDToModuleName,this._remoteModuleNameToMethodNameToID,this._remoteModuleNameToMethodIDToName),n(t,this._localModuleNameToModuleID,this._localModuleIDToModuleName,this._localModuleNameToMethodNameToID,this._localModuleNameToMethodIDToName)},_initBookeeping:function(){this._POOLED_CBIDS={errorCallbackID:null,successCallbackID:null},this._bookkeeping=w(),this._threadLocalCallbacksByID=[],this._threadLocalScopesByID=[],this._outgoingItems=[[],[],[],[],[]],this._outgoingItemsSwap=[[],[],[],[],[]]},invokeCallback:function(e,t){return E(this._invokeCallback,[e,t],null,this)},_invokeCallback:function(e,t){try{var n=this._threadLocalCallbacksByID[e],r=this._threadLocalScopesByID[e];c(n,"Cannot find callback with CBID %s. Native module may have invoked both the success callback and the error callback.",e),h&&console.log("N->JS: Callback#"+e+"("+JSON.stringify(t)+")"),l.profile("Callback#"+e+"("+JSON.stringify(t)+")"),n.apply(r,t),l.profileEnd()}catch(o){throw o}finally{this._freeResourcesForCallbackID(e)}},invokeCallbackAndReturnFlushedQueue:function(e,t){return this._enableLogging&&this._loggedIncomingItems.push([(new Date).getTime(),e,t]),E(this._invokeCallback,[e,t],this._flushedQueueUnguarded,this)},callFunction:function(e,t,n){return E(this._callFunction,[e,t,n],null,this)},_callFunction:function(e,t,n){var r=this._localModuleIDToModuleName[e],o=this._localModuleNameToMethodIDToName[r][t];h&&console.log("N->JS: "+r+"."+o+"("+JSON.stringify(n)+")"),l.profile(r+"."+o+"("+JSON.stringify(n)+")");var i=m(this._requireFunc(r),o,n);return l.profileEnd(),i},callFunctionReturnFlushedQueue:function(e,t,n){return this._enableLogging&&this._loggedIncomingItems.push([(new Date).getTime(),e,t,n]),E(this._callFunction,[e,t,n],this._flushedQueueUnguarded,this)},processBatch:function(e){var t=this;l.profile("MessageQueue.processBatch()");var n=E(function(){s.batchedUpdates(function(){e.forEach(function(e){if(u("BatchedBridge"===e.module,"All the calls should pass through the BatchedBridge module"),"callFunctionReturnFlushedQueue"===e.method)t._callFunction.apply(t,e.args);else{if("invokeCallbackAndReturnFlushedQueue"!==e.method)throw new Error("Unrecognized method called on BatchedBridge: "+e.method);t._invokeCallback.apply(t,e.args)}}),l.profile("React.batchedUpdates()")}),l.profileEnd()},null,this._flushedQueueUnguarded,this);return l.profileEnd(),n},setLoggingEnabled:function(e){this._enableLogging=e,this._loggedIncomingItems=[],this._loggedOutgoingItems=[[],[],[],[],[]]},getLoggedIncomingItems:function(){return this._loggedIncomingItems},getLoggedOutgoingItems:function(){return this._loggedOutgoingItems},replayPreviousLog:function(e){this._outgoingItems=e},_swapAndReinitializeBuffer:function(){var e=this._outgoingItems,t=this._outgoingItemsSwap;t[v].length=0,t[y].length=0,t[_].length=0,t[b].length=0,t[S].length=0,this._outgoingItemsSwap=e,this._outgoingItems=t},_pushRequestToOutgoingItems:function(e,t,n){this._outgoingItems[v].push(e),this._outgoingItems[y].push(t),this._outgoingItems[_].push(n),this._enableLogging&&(this._loggedOutgoingItems[v].push(e),this._loggedOutgoingItems[y].push(t),this._loggedOutgoingItems[_].push(n))},_pushResponseToOutgoingItems:function(e,t){this._outgoingItems[b].push(e),this._outgoingItems[S].push(t)},_freeResourcesForCallbackID:function(e){var t=this._bookkeeping.isSuccessCallback(e)?this._bookkeeping.errorCallbackIDForSuccessCallbackID(e):this._bookkeeping.successCallbackIDForErrorCallbackID(e);this._threadLocalCallbacksByID[e]=null,this._threadLocalScopesByID[e]=null,this._threadLocalCallbacksByID[t]&&(this._threadLocalCallbacksByID[t]=null,this._threadLocalScopesByID[t]=null)},_storeCallbacksInCurrentThread:function(e,t,n){u(e||t,d),this._bookkeeping.allocateCallbackIDs(this._POOLED_CBIDS);var r=this._POOLED_CBIDS.successCallbackID,o=this._POOLED_CBIDS.errorCallbackID;this._threadLocalCallbacksByID[o]=e,this._threadLocalCallbacksByID[r]=t,this._threadLocalScopesByID[o]=n,this._threadLocalScopesByID[r]=n},flushedQueue:function(){return E(null,null,this._flushedQueueUnguarded,this)},_flushedQueueUnguarded:function(){l.profile("JSTimersExecution.callImmediates()"),p.callImmediates(),l.profileEnd();var e=this._outgoingItems;this._swapAndReinitializeBuffer();var t=e[v].length||e[S].length?e:null;if(h&&t)for(var n=0;n<e[0].length;n++){var r=this._remoteModuleIDToModuleName[e[0][n]],o=this._remoteModuleNameToMethodIDToName[r][e[1][n]];console.log("JS->N: "+r+"."+o+"("+JSON.stringify(e[2][n])+")")}return t},call:function(e,t,n,r,o,i){u(!(r&&"function"!=typeof r||o&&"function"!=typeof o),"Callbacks must be functions"),o&&(this._storeCallbacksInCurrentThread(r,o,i,this._POOLED_CBIDS),r&&n.push(this._POOLED_CBIDS.errorCallbackID),n.push(this._POOLED_CBIDS.successCallbackID));var a=this._remoteModuleNameToModuleID[e];if(void 0===a||null===a)throw new Error("Unrecognized module name:"+e);var s=this._remoteModuleNameToMethodNameToID[e][t];if(void 0===s||null===a)throw new Error("Unrecognized method name:"+t);this._pushRequestToOutgoingItems(a,s,n)},__numPendingCallbacksOnlyUseMeInTestCases:function(){for(var e=this._threadLocalCallbacksByID,t=0,n=0;n<e.length;n++)e[n]&&t++;return t}};Object.assign(g.prototype,C),o.exports=g}),__d("BridgeProfiling",[],function(e,t,n,r,o,i){"use strict";var a=a||this,s={profile:function(e,t){if(a.__BridgeProfilingIsProfiling){if(t)try{t=JSON.stringify(t)}catch(n){t=n.message}console.profile(e,t)}},profileEnd:function(){a.__BridgeProfilingIsProfiling&&console.profileEnd()}};o.exports=s}),__d("JSTimersExecution",["invariant","keyMirror","performanceNow","warning","JSTimers","JSTimers"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s=t("keyMirror"),u=t("performanceNow"),c=t("warning"),l={GUID:1,Type:s({setTimeout:null,setInterval:null,requestAnimationFrame:null,setImmediate:null}),callbacks:[],types:[],timerIDs:[],immediates:[],callTimer:function(e){c(e<=l.GUID,"Tried to call timer with ID "+e+" but no such timer exists");var t=l.timerIDs.indexOf(e);if(-1!==t){var n=l.types[t],r=l.callbacks[t];(n===l.Type.setTimeout||n===l.Type.setImmediate||n===l.Type.requestAnimationFrame)&&l._clearIndex(t);try{if(n===l.Type.setTimeout||n===l.Type.setInterval||n===l.Type.setImmediate)r();else{if(n!==l.Type.requestAnimationFrame)return void console.error("Tried to call a callback with invalid type: "+n);var o=u();r(o)}}catch(i){l.errors=l.errors||[],l.errors.push(i)}}},callTimers:function(e){a(0!==e.length,'Probably shouldn\'t call "callTimers" with no timerIDs'),l.errors=null,e.forEach(l.callTimer);var n=l.errors;if(n){var r=n.length;if(r>1)for(var o=1;r>o;o++)t("JSTimers").setTimeout(function(e){throw e}.bind(null,n[o]),0);throw n[0]}},callImmediates:function(){for(l.errors=null;0!==l.immediates.length;)l.callTimer(l.immediates.shift());l.errors&&l.errors.forEach(function(e){return t("JSTimers").setTimeout(function(){throw e},0)})},_clearIndex:function(e){l.timerIDs[e]=null,l.callbacks[e]=null,l.types[e]=null}};o.exports=l}),__d("performanceNow",["performance"],function(e,t,n,r,o,i){var a=t("performance");a&&a.now||(a=Date);var s=a.now.bind(a);o.exports=s}),__d("performance",["ExecutionEnvironment"],function(e,t,n,r,o,i){"use strict";var a,s=t("ExecutionEnvironment");s.canUseDOM&&(a=window.performance||window.msPerformance||window.webkitPerformance),o.exports=a||{}}),__d("ExecutionEnvironment",[],function(e,t,n,r,o,i){"use strict";var a=!("undefined"==typeof window||!window.document||!window.document.createElement),s={canUseDOM:a,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen,isInWorker:!a};o.exports=s}),__d("JSTimers",["NativeModules","JSTimersExecution"],function(e,t,n,r,o,i){"use strict";var a=t("NativeModules").Timing,s=t("JSTimersExecution"),u={Types:s.Types,_getFreeIndex:function(){var e=s.timerIDs.indexOf(null);return-1===e&&(e=s.timerIDs.length),e},setTimeout:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];var i=s.GUID++,c=u._getFreeIndex();return s.timerIDs[c]=i,s.callbacks[c]=function(){return e.apply(void 0,r)},s.types[c]=s.Type.setTimeout,a.createTimer(i,t,Date.now(),!1),i},setInterval:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];var i=s.GUID++,c=u._getFreeIndex();return s.timerIDs[c]=i,s.callbacks[c]=function(){return e.apply(void 0,r)},s.types[c]=s.Type.setInterval,a.createTimer(i,t,Date.now(),!0),i},setImmediate:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];var o=s.GUID++,i=u._getFreeIndex();return s.timerIDs[i]=o,s.callbacks[i]=function(){return e.apply(void 0,n)},s.types[i]=s.Type.setImmediate,s.immediates.push(o),o},requestAnimationFrame:function(e){var t=s.GUID++,n=u._getFreeIndex();return s.timerIDs[n]=t,s.callbacks[n]=e,s.types[n]=s.Type.requestAnimationFrame,a.createTimer(t,1,Date.now(),!1),t},clearTimeout:function(e){u._clearTimerID(e)},clearInterval:function(e){u._clearTimerID(e)},clearImmediate:function(e){u._clearTimerID(e),s.immediates.splice(s.immediates.indexOf(e),1)},cancelAnimationFrame:function(e){u._clearTimerID(e)},_clearTimerID:function(e){if(null!=e){var t=s.timerIDs.indexOf(e);-1!==t&&(s._clearIndex(t),s.types[t]!==s.Type.setImmediate&&a.deleteTimer(e))}}};o.exports=u}),__d("nativeModulePrefixNormalizer",[],function(e,t,n,r,o,i){"use strict";function a(e){Object.keys(e).forEach(function(t){var n=t.replace(/^(RCT|RK)/,"");if(e["RCT"+n]&&e["RK"+n])throw new Error("Module cannot be registered as both RCT and RK: "+t);n!==t&&(e[n]=e[t],delete e[t])})}o.exports=a}),__d("loadSourceMap",["Promise","NativeModules","SourceMap","react-native/Libraries/JavaScriptAppEngine/Initialization/source-map-url"],function(e,t,n,r,o,i){"use strict";function a(){return s().then(function(e){return new p(e)})}function s(){return e.RAW_SOURCE_MAP?c.resolve(e.RAW_SOURCE_MAP):h?f?new c(h.getScriptText).then(u).then(function(e){return null===e?c.reject(new Error("No source map URL found. May be running from bundled file.")):c.resolve(e)}).then(fetch).then(function(e){return e.text()}):c.reject(new Error("RCTDataManager module is not available")):c.reject(new Error("RCTSourceCode module is not available"))}function u(e){var t=e.url,n=e.text,r=e.fullSourceMappingURL;if(r)return r;var o=d.getFrom(n);if(!o)return null;var i=t.match(/(.+:\/\/.*?)\//)[1];return i+o}var c=t("Promise"),l=t("NativeModules"),p=t("SourceMap").SourceMapConsumer,d=t("react-native/Libraries/JavaScriptAppEngine/Initialization/source-map-url"),h=l.SourceCode,f=l.DataManager;o.exports=a}),__d("Promise",["setImmediate","promise/setimmediate/es6-extensions","promise/setimmediate/done"],function(e,t,n,r,o,i){"use strict";e.setImmediate=t("setImmediate");var a=t("promise/setimmediate/es6-extensions");t("promise/setimmediate/done"),a.prototype["finally"]=function(e){return this.then(e,e)},o.exports=a}),__d("setImmediate",["ImmediateImplementation"],function(e,t,n,r,o,i){o.exports=e.setImmediate||t("ImmediateImplementation").setImmediate}),__d("ImmediateImplementation",[],function(e,t,n,r,o,i){!function(e,t){"use strict";function n(e){var n=e[0];return e=Array.prototype.slice.call(e,1),h[d]=function(){n.apply(t,e)},m=m.next={handle:d++},m.handle}function r(){for(var e,t;!g&&(e=f.next);)if(f=e,t=h[e.handle]){g=!0;try{t(),g=!1}finally{o(e.handle),g&&(g=!1,f.next&&p(r))}}}function o(e){delete h[e]}function a(){if(e.postMessage&&!e.importScripts){var t=!0,n=function(){t=!1,e.removeEventListener?e.removeEventListener("message",n,!1):e.detachEvent("onmessage",n)};if(e.addEventListener)e.addEventListener("message",n,!1);else{if(!e.attachEvent)return!1;e.attachEvent("onmessage",n)}return e.postMessage("","*"),t}}function s(){var t="setImmediate$"+Math.random()+"$",o=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&r()};e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),p=function(){var r=n(arguments);return e.postMessage(t+r,"*"),r}}function u(){var e=new MessageChannel;e.port1.onmessage=r,p=function(){var t=n(arguments);return e.port2.postMessage(t),t}}function c(){var e=v.documentElement;p=function(){var t=n(arguments),o=v.createElement("script");return o.onreadystatechange=function(){o.onreadystatechange=null,e.removeChild(o),o=null,r()},e.appendChild(o),t}}function l(){p=function(){return setTimeout(r,0),n(arguments)}}var p,d=1,h={},f={},m=f,g=!1,v=e.document;a()?s():e.MessageChannel?u():v&&"onreadystatechange"in v.createElement("script")?c():l(),i.setImmediate=p,i.clearImmediate=o}(Function("return this")())}),__d("promise/setimmediate/es6-extensions",["promise/setimmediate/core"],function(e,t,n,r,o,i){"use strict";function a(e){var t=new s(s._1);return t._41=1,t._86=e,t}var s=t("promise/setimmediate/core");o.exports=s;var u=a(!0),c=a(!1),l=a(null),p=a(void 0),d=a(0),h=a("");s.resolve=function(e){if(e instanceof s)return e;if(null===e)return l;if(void 0===e)return p;if(e===!0)return u;if(e===!1)return c;if(0===e)return d;if(""===e)return h;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new s(t.bind(e))}catch(n){return new s(function(e,t){t(n)})}return a(e)},s.all=function(e){var t=Array.prototype.slice.call(e);return new s(function(e,n){function r(i,a){if(a&&("object"==typeof a||"function"==typeof a)){if(a instanceof s&&a.then===s.prototype.then){for(;3===a._41;)a=a._86;return 1===a._41?r(i,a._86):(2===a._41&&n(a._86),void a.then(function(e){r(i,e)},n))}var u=a.then;if("function"==typeof u){var c=new s(u.bind(a));return void c.then(function(e){r(i,e)},n)}}t[i]=a,0===--o&&e(t)}if(0===t.length)return e([]);for(var o=t.length,i=0;i<t.length;i++)r(i,t[i])})},s.reject=function(e){return new s(function(t,n){n(e)})},s.race=function(e){return new s(function(t,n){e.forEach(function(e){s.resolve(e).then(t,n)})})},s.prototype["catch"]=function(e){return this.then(null,e)}}),__d("promise/setimmediate/core",[],function(e,t,n,r,o,i){"use strict";function a(){}function s(e){try{return e.then}catch(t){return y=t,_}}function u(e,t){try{return e(t)}catch(n){return y=n,_}}function c(e,t,n){try{e(t,n)}catch(r){return y=r,_}}function l(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._41=0,this._86=null,this._17=[],e!==a&&v(e,this)}function p(e,t,n){return new e.constructor(function(r,o){var i=new l(a);i.then(r,o),d(e,new g(t,n,i))})}function d(e,t){for(;3===e._41;)e=e._86;return 0===e._41?void e._17.push(t):void setImmediate(function(){var n=1===e._41?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._41?h(t.promise,e._86):f(t.promise,e._86));var r=u(n,e._86);r===_?f(t.promise,y):h(t.promise,r)})}function h(e,t){if(t===e)return f(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=s(t);if(n===_)return f(e,y);if(n===e.then&&t instanceof l)return e._41=3,e._86=t,void m(e);if("function"==typeof n)return void v(n.bind(t),e)}e._41=1,e._86=t,m(e)}function f(e,t){e._41=2,e._86=t,m(e)}function m(e){for(var t=0;t<e._17.length;t++)d(e,e._17[t]);e._17=null}function g(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function v(e,t){var n=!1,r=c(e,function(e){n||(n=!0,h(t,e))},function(e){n||(n=!0,f(t,e))});n||r!==_||(n=!0,f(t,y))}var y=null,_={};o.exports=l,l._1=a,l.prototype.then=function(e,t){if(this.constructor!==l)return p(this,e,t);var n=new l(a);return d(this,new g(e,t,n)),n}}),__d("promise/setimmediate/done",["promise/setimmediate/core"],function(e,t,n,r,o,i){"use strict";var a=t("promise/setimmediate/core");o.exports=a,a.prototype.done=function(e,t){var n=arguments.length?this.then.apply(this,arguments):this;n.then(null,function(e){setTimeout(function(){throw e},0)})}}),__d("SourceMap",[],function(e,t,n,r,o,i){function a(){function e(t,n,r){if("string"!=typeof t)throw new TypeError("Expected string, got: "+t);if(2==arguments.length&&(r=n),t in e.modules)throw new Error("Module already defined: "+t);e.modules[t]=r}function t(){this.modules={},this._currentModule=null}e.modules={},function(){function n(e){for(var t=e.split("/"),n=1;n<t.length;)".."===t[n]?t.splice(n-1,1):"."===t[n]?t.splice(n,1):n++;return t.join("/")}function r(e,t){return e=e.trim(),t=t.trim(),/^\//.test(t)?t:e.replace(/\/*$/,"/")+t}function o(e){var t=e.split("/");return t.pop(),t.join("/")}t.prototype.require=function(e,t){if(Array.isArray(e)){var n=e.map(function(e){return this.lookup(e)},this);return void(t&&t.apply(null,n))}return this.lookup(e)},t.prototype.lookup=function(t){if(/^\./.test(t)&&(t=n(r(o(this._currentModule),t))),t in this.modules){var i=this.modules[t];return i}if(!(t in e.modules))throw new Error("Module not defined: "+t);var i=e.modules[t];if("function"==typeof i){var a={},s=this._currentModule;this._currentModule=t,i(this.require.bind(this),a,{id:t,uri:""}),this._currentModule=s,i=a}return this.modules[t]=i,i}}(),e.Domain=t,e.globalDomain=new t;var n=e.globalDomain.require.bind(e.globalDomain);e("source-map/source-map-generator",["require","exports","module","source-map/base64-vlq","source-map/util","source-map/array-set"],function(e,t,n){function r(e){this._file=i.getArg(e,"file"),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._sources=new a,this._names=new a,this._mappings=[],this._sourcesContents=null}var o=e("./base64-vlq"),i=e("./util"),a=e("./array-set").ArraySet;r.prototype._version=3,r.fromSourceMap=function(e){var t=e.sourceRoot,n=new r({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source&&(r.source=e.source,t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(t){var r=e.sourceContentFor(t);r&&n.setSourceContent(t,r)}),n},r.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._validateMapping(t,n,r,o),r&&!this._sources.has(r)&&this._sources.add(r),o&&!this._names.has(o)&&this._names.add(o),this._mappings.push({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o})},r.prototype.setSourceContent=function(e,t){var n=e;this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!==t?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[i.toSetString(n)]=t):(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(e,t){t||(t=e.file);var n=this._sourceRoot;n&&(t=i.relative(n,t));var r=new a,o=new a;this._mappings.forEach(function(a){if(a.source===t&&a.originalLine){var s=e.originalPositionFor({line:a.originalLine,column:a.originalColumn});null!==s.source&&(n?a.source=i.relative(n,s.source):a.source=s.source,a.originalLine=s.line,a.originalColumn=s.column,null!==s.name&&null!==a.name&&(a.name=s.name))}var u=a.source;u&&!r.has(u)&&r.add(u);var c=a.name;c&&!o.has(c)&&o.add(c)},this),this._sources=r,this._names=o,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r&&(n&&(t=i.relative(n,t)),this.setSourceContent(t,r))},this)},r.prototype._validateMapping=function(e,t,n,r){if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!n&&!r||e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,orginal:t,name:r}))},r.prototype._serializeMappings=function(){var e,t=0,n=1,r=0,a=0,s=0,u=0,c="";this._mappings.sort(i.compareByGeneratedPositions);for(var l=0,p=this._mappings.length;p>l;l++){if(e=this._mappings[l],e.generatedLine!==n)for(t=0;e.generatedLine!==n;)c+=";",n++;else if(l>0){if(!i.compareByGeneratedPositions(e,this._mappings[l-1]))continue;c+=","}c+=o.encode(e.generatedColumn-t),t=e.generatedColumn,e.source&&(c+=o.encode(this._sources.indexOf(e.source)-u),u=this._sources.indexOf(e.source),c+=o.encode(e.originalLine-1-a),a=e.originalLine-1,c+=o.encode(e.originalColumn-r),r=e.originalColumn,e.name&&(c+=o.encode(this._names.indexOf(e.name)-s),s=this._names.indexOf(e.name)))}return c},r.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},r.prototype.toJSON=function(){var e={version:this._version,file:this._file,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},r.prototype.toString=function(){return JSON.stringify(this)},t.SourceMapGenerator=r}),e("source-map/base64-vlq",["require","exports","module","source-map/base64"],function(e,t,n){function r(e){return 0>e?(-e<<1)+1:(e<<1)+0}function o(e){var t=1===(1&e),n=e>>1;return t?-n:n}var i=e("./base64"),a=5,s=1<<a,u=s-1,c=s;t.encode=function(e){var t,n="",o=r(e);do t=o&u,o>>>=a,o>0&&(t|=c),n+=i.encode(t);while(o>0);return n},t.decode=function(e){var t,n,r=0,s=e.length,l=0,p=0;do{if(r>=s)throw new Error("Expected more digits in base 64 VLQ value.");n=i.decode(e.charAt(r++)),t=!!(n&c),n&=u,l+=n<<p,p+=a}while(t);return{value:o(l),rest:e.slice(r)}}}),e("source-map/base64",["require","exports","module"],function(e,t,n){var r={},o={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(e,t){r[e]=t,o[t]=e}),t.encode=function(e){if(e in o)return o[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){if(e in r)return r[e];throw new TypeError("Not a valid base 64 digit: "+e)}}),e("source-map/util",["require","exports","module"],function(e,t,n){function r(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')}function o(e){var t=e.match(h);return t?{scheme:t[1],auth:t[3],host:t[4],port:t[6],path:t[7]}:null}function i(e){var t=e.scheme+"://";return e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e,t){var n;return t.match(h)||t.match(f)?t:"/"===t.charAt(0)&&(n=o(e))?(n.path=t,i(n)):e.replace(/\/$/,"")+"/"+t}function s(e){return"$"+e}function u(e){return e.substr(1)}function c(e,t){e=e.replace(/\/$/,"");var n=o(e);return"/"==t.charAt(0)&&n&&"/"==n.path?t.slice(1):0===t.indexOf(e+"/")?t.substr(e.length+1):t}function l(e,t){var n=e||"",r=t||"";return(n>r)-(r>n)}function p(e,t,n){var r;return(r=l(e.source,t.source))?r:(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,r||n?r:(r=l(e.name,t.name))?r:(r=e.generatedLine-t.generatedLine,r?r:e.generatedColumn-t.generatedColumn))}function d(e,t,n){var r;return(r=e.generatedLine-t.generatedLine)?r:(r=e.generatedColumn-t.generatedColumn,r||n?r:(r=l(e.source,t.source))?r:(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,r?r:l(e.name,t.name)))}t.getArg=r;var h=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/,f=/^data:.+\,.+/;t.urlParse=o,t.urlGenerate=i,t.join=a,t.toSetString=s,t.fromSetString=u,t.relative=c,t.compareByOriginalPositions=p,t.compareByGeneratedPositions=d}),e("source-map/array-set",["require","exports","module","source-map/util"],function(e,t,n){function r(){this._array=[],this._set={}}var o=e("./util");r.fromArray=function(e,t){for(var n=new r,o=0,i=e.length;i>o;o++)n.add(e[o],t);return n},r.prototype.add=function(e,t){var n=this.has(e),r=this._array.length;(!n||t)&&this._array.push(e),n||(this._set[o.toSetString(e)]=r)},r.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this._set,o.toSetString(e))},r.prototype.indexOf=function(e){if(this.has(e))return this._set[o.toSetString(e)];throw new Error('"'+e+'" is not in the set.')},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},r.prototype.toArray=function(){return this._array.slice()},t.ArraySet=r}),e("source-map/source-map-consumer",["require","exports","module","source-map/util","source-map/binary-search","source-map/array-set","source-map/base64-vlq"],function(e,t,n){function r(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=o.getArg(t,"version"),r=o.getArg(t,"sources"),i=o.getArg(t,"names",[]),s=o.getArg(t,"sourceRoot",null),u=o.getArg(t,"sourcesContent",null),c=o.getArg(t,"mappings"),l=o.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);this._names=a.fromArray(i,!0),this._sources=a.fromArray(r,!0),this.sourceRoot=s,this.sourcesContent=u,this._mappings=c,this.file=l}var o=e("./util"),i=e("./binary-search"),a=e("./array-set").ArraySet,s=e("./base64-vlq");r.fromSourceMap=function(e){var t=Object.create(r.prototype);return t._names=a.fromArray(e._names.toArray(),!0),t._sources=a.fromArray(e._sources.toArray(),!0),t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file,t.__generatedMappings=e._mappings.slice().sort(o.compareByGeneratedPositions),t.__originalMappings=e._mappings.slice().sort(o.compareByOriginalPositions),t},r.prototype._version=3,Object.defineProperty(r.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return this.sourceRoot?o.join(this.sourceRoot,e):e},this)}}),r.prototype.__generatedMappings=null,Object.defineProperty(r.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__generatedMappings}}),r.prototype.__originalMappings=null,Object.defineProperty(r.prototype,"_originalMappings",{get:function(){return this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot)),this.__originalMappings}}),r.prototype._parseMappings=function(e,t){for(var n,r,i=1,a=0,u=0,c=0,l=0,p=0,d=/^[,;]/,h=e;h.length>0;)if(";"===h.charAt(0))i++,h=h.slice(1),a=0;else if(","===h.charAt(0))h=h.slice(1);else{if(n={},n.generatedLine=i,r=s.decode(h),n.generatedColumn=a+r.value,a=n.generatedColumn,h=r.rest,h.length>0&&!d.test(h.charAt(0))){if(r=s.decode(h),n.source=this._sources.at(l+r.value),l+=r.value,h=r.rest,0===h.length||d.test(h.charAt(0)))throw new Error("Found a source, but no line and column");if(r=s.decode(h),n.originalLine=u+r.value,u=n.originalLine,n.originalLine+=1,h=r.rest,0===h.length||d.test(h.charAt(0)))throw new Error("Found a source and line, but no column");r=s.decode(h),n.originalColumn=c+r.value,c=n.originalColumn,h=r.rest,h.length>0&&!d.test(h.charAt(0))&&(r=s.decode(h),n.name=this._names.at(p+r.value),p+=r.value,h=r.rest)}this.__generatedMappings.push(n),"number"==typeof n.originalLine&&this.__originalMappings.push(n)}this.__originalMappings.sort(o.compareByOriginalPositions)},r.prototype._findMapping=function(e,t,n,r,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return i.search(e,t,o)},r.prototype.originalPositionFor=function(e){var t={generatedLine:o.getArg(e,"line"),generatedColumn:o.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",o.compareByGeneratedPositions);if(n){var r=o.getArg(n,"source",null);return r&&this.sourceRoot&&(r=o.join(this.sourceRoot,r)),{source:r,line:o.getArg(n,"originalLine",null),column:o.getArg(n,"originalColumn",null),name:o.getArg(n,"name",null)}}return{source:null,line:null,column:null,name:null}},r.prototype.sourceContentFor=function(e){if(!this.sourcesContent)return null;if(this.sourceRoot&&(e=o.relative(this.sourceRoot,e)),
this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var t;if(this.sourceRoot&&(t=o.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==t.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!t.path||"/"==t.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}throw new Error('"'+e+'" is not in the SourceMap.')},r.prototype.generatedPositionFor=function(e){var t={source:o.getArg(e,"source"),originalLine:o.getArg(e,"line"),originalColumn:o.getArg(e,"column")};this.sourceRoot&&(t.source=o.relative(this.sourceRoot,t.source));var n=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",o.compareByOriginalPositions);return n?{line:o.getArg(n,"generatedLine",null),column:o.getArg(n,"generatedColumn",null)}:{line:null,column:null}},r.GENERATED_ORDER=1,r.ORIGINAL_ORDER=2,r.prototype.eachMapping=function(e,t,n){var i,a=t||null,s=n||r.GENERATED_ORDER;switch(s){case r.GENERATED_ORDER:i=this._generatedMappings;break;case r.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;i.map(function(e){var t=e.source;return t&&u&&(t=o.join(u,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name}}).forEach(e,a)},t.SourceMapConsumer=r}),e("source-map/binary-search",["require","exports","module"],function(e,t,n){function r(e,t,n,o,i){var a=Math.floor((t-e)/2)+e,s=i(n,o[a],!0);return 0===s?o[a]:s>0?t-a>1?r(a,t,n,o,i):o[a]:a-e>1?r(e,a,n,o,i):0>e?null:o[e]}t.search=function(e,t,n){return t.length>0?r(-1,t.length,e,t,n):null}}),e("source-map/source-node",["require","exports","module","source-map/source-map-generator","source-map/util"],function(e,t,n){function r(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=void 0===e?null:e,this.column=void 0===t?null:t,this.source=void 0===n?null:n,this.name=void 0===o?null:o,null!=r&&this.add(r)}var o=e("./source-map-generator").SourceMapGenerator,i=e("./util");r.fromStringWithSourceMap=function(e,t){function n(e,t){null===e||void 0===e.source?o.add(t):o.add(new r(e.originalLine,e.originalColumn,e.source,t,e.name))}var o=new r,i=e.split("\n"),a=1,s=0,u=null;return t.eachMapping(function(e){if(null===u){for(;a<e.generatedLine;)o.add(i.shift()+"\n"),a++;if(s<e.generatedColumn){var t=i[0];o.add(t.substr(0,e.generatedColumn)),i[0]=t.substr(e.generatedColumn),s=e.generatedColumn}}else if(a<e.generatedLine){var r="";do r+=i.shift()+"\n",a++,s=0;while(a<e.generatedLine);if(s<e.generatedColumn){var t=i[0];r+=t.substr(0,e.generatedColumn),i[0]=t.substr(e.generatedColumn),s=e.generatedColumn}n(u,r)}else{var t=i[0],r=t.substr(0,e.generatedColumn-s);i[0]=t.substr(e.generatedColumn-s),s=e.generatedColumn,n(u,r)}u=e},this),n(u,i.join("\n")),t.sources.forEach(function(e){var n=t.sourceContentFor(e);n&&o.setSourceContent(e,n)}),o},r.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!(e instanceof r||"string"==typeof e))throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},r.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!(e instanceof r||"string"==typeof e))throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},r.prototype.walk=function(e){for(var t,n=0,o=this.children.length;o>n;n++)t=this.children[n],t instanceof r?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},r.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;r-1>n;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},r.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n instanceof r?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},r.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},r.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;n>t;t++)this.children[t]instanceof r&&this.children[t].walkSourceContents(e);for(var o=Object.keys(this.sourceContents),t=0,n=o.length;n>t;t++)e(i.fromSetString(o[t]),this.sourceContents[o[t]])},r.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},r.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new o(e),r=!1,i=null,a=null,s=null,u=null;return this.walk(function(e,o){t.code+=e,null!==o.source&&null!==o.line&&null!==o.column?((i!==o.source||a!==o.line||s!==o.column||u!==o.name)&&n.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:t.line,column:t.column},name:o.name}),i=o.source,a=o.line,s=o.column,u=o.name,r=!0):r&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,r=!1),e.split("").forEach(function(e){"\n"===e?(t.line++,t.column=0):t.column++})}),this.walkSourceContents(function(e,t){n.setSourceContent(e,t)}),{code:t.code,map:n}},t.SourceNode=r}),this.sourceMap={SourceMapConsumer:n("source-map/source-map-consumer").SourceMapConsumer,SourceMapGenerator:n("source-map/source-map-generator").SourceMapGenerator,SourceNode:n("source-map/source-node").SourceNode}}var s={};a.call(s),o.exports=s.sourceMap}),__d("react-native/Libraries/JavaScriptAppEngine/Initialization/source-map-url",[],function(e,t,n,r,o,i){!function(){var e=null;void function(t,n){"function"==typeof e&&e.amd?e(n):"object"==typeof i?o.exports=n():t.sourceMappingURL=n()}(this,function(){var e=/[#@] sourceMappingURL=([^\s'"]*)/,t=RegExp("(?:/\\*(?:\\s*\r?\n(?://)?)?(?:"+e.source+")\\s*\\*/|//(?:"+e.source+"))\\s*$");return{regex:t,_innerRegex:e,getFrom:function(e){var n=e.match(t);return n?n[1]||n[2]||"":null},existsIn:function(e){return t.test(e)},removeFrom:function(e){return e.replace(t,"")},insertBefore:function(e,n){var r=e.match(t);return r?e.slice(0,r.index)+n+e.slice(r.index):e+n}}})}()}),__d("parseErrorStack",["stacktrace-parser/index"],function(e,t,n,r,o,i){"use strict";function a(e,t){try{var n=e.originalPositionFor({line:t.lineNumber,column:t.column});n&&(t.file=n.source,t.lineNumber=n.line,t.column=n.column)}catch(r){}}function s(e,t){for(var n=u.parse(e.stack),r=e.framesToPop||0;r--;)n.shift();return t&&n.forEach(a.bind(null,t)),n}var u=t("stacktrace-parser/index");o.exports=s}),__d("stacktrace-parser/index",["stacktrace-parser/lib/stacktrace-parser"],function(e,t,n,r,o,i){o.exports=t("stacktrace-parser/lib/stacktrace-parser")}),__d("stacktrace-parser/lib/stacktrace-parser",[],function(e,t,n,r,o,i){var a="<unknown>",s={parse:function(e){for(var t,n,r=/^\s*at (?:(?:(?:Anonymous function)?|((?:\[object object\])?\S+(?: \[as \S+\])?)) )?\(?((?:file|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i,o=/^(?:\s*(\S*)(?:\((.*?)\))?@)?((?:\w).*?):(\d+)(?::(\d+))?\s*$/i,i=/^\s*at (?:((?:\[object object\])?\S+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i,s=e.split("\n"),u=[],c=0,l=s.length;l>c;++c){if(t=o.exec(s[c]))n={file:t[3],methodName:t[1]||a,lineNumber:+t[4],column:t[5]?+t[5]:null};else if(t=r.exec(s[c]))n={file:t[2],methodName:t[1]||a,lineNumber:+t[3],column:t[4]?+t[4]:null};else{if(!(t=i.exec(s[c])))continue;n={file:t[2],methodName:t[1]||a,lineNumber:+t[3],column:t[4]?+t[4]:null}}u.push(n)}return u}};o.exports=s}),__d("stringifySafe",[],function(e,t,n,r,o,i){"use strict";function a(e){var t,n=typeof e;if(void 0===e)t="undefined";else if(null===e)t="null";else if("string"===n)t='"'+e+'"';else if("function"===n)try{t=e.toString()}catch(r){t="[function unknown]"}else try{t=JSON.stringify(e)}catch(r){if("function"==typeof e.toString)try{t=e.toString()}catch(o){}}return t||'["'+n+'" failed to stringify]'}o.exports=a}),__d("Platform",[],function(e,t,n,r,o,i){"use strict";var a={OS:"ios"};o.exports=a}),__d("XMLHttpRequest",["NativeModules","XMLHttpRequestBase"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:h(o,t,n)}if("value"in r)return r.value;var i=r.get;return void 0===i?void 0:i.call(n)},l=t("NativeModules").DataManager,p=t("XMLHttpRequestBase"),d=function(e){function t(){a(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return s(t,e),u(t,[{key:"sendImpl",value:function(e,t,n,r){l.queryData("http",{method:e,url:t,data:r,headers:n},this.callback.bind(this))}},{key:"abortImpl",value:function(){console.warn("XMLHttpRequest: abort() cancels JS callbacks but not native HTTP request.")}}]),t}(p);o.exports=d}),__d("XMLHttpRequestBase",[],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(){function e(){a(this,e),this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.onreadystatechange=void 0,this.upload=void 0,this.readyState=this.UNSENT,this.responseHeaders=void 0,this.responseText=void 0,this.status=0,this._method=null,this._url=null,this._headers={},this._sent=!1,this._aborted=!1}return s(e,[{key:"getAllResponseHeaders",value:function(){if(this.responseHeaders){var e=[];for(var t in this.responseHeaders)e.push(t+": "+this.responseHeaders[t]);return e.join("\n")}return null}},{key:"getResponseHeader",value:function(e){if(this.responseHeaders){var t=this.responseHeaders[e.toLowerCase()];return void 0!==t?t:null}return null}},{key:"setRequestHeader",value:function(e,t){this._headers[e.toLowerCase()]=t}},{key:"open",value:function(e,t,n){if(this.readyState!==this.UNSENT)throw new Error("Cannot open, already sending");if(void 0!==n&&!n)throw new Error("Synchronous http requests are not supported");this._method=e,this._url=t,this._aborted=!1,this._setReadyState(this.OPENED)}},{key:"sendImpl",value:function(e,t,n,r){throw new Error("Subclass must define sendImpl method")}},{key:"abortImpl",value:function(){throw new Error("Subclass must define abortImpl method")}},{key:"send",value:function(e){if(this.readyState!==this.OPENED)throw new Error("Request has not been opened");if(this._sent)throw new Error("Request has already been sent");this._sent=!0,this.sendImpl(this._method,this._url,this._headers,e)}},{key:"abort",value:function(){this.abortImpl(),this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._sent=!1,this._setReadyState(this.DONE)),this.readyState===this.DONE&&this._sendLoad(),this.readyState=this.UNSENT,this._aborted=!0}},{key:"callback",value:function(e,t,n){if(!this._aborted){this.status=e;var r={};for(var o in t)r[o.toLowerCase()]=t[o];this.responseHeaders=r,this.responseText=n,this._setReadyState(this.DONE),this._sendLoad()}}},{key:"_setReadyState",value:function(e){this.readyState=e;var t=this.onreadystatechange;t&&t(null)}},{key:"_sendLoad",value:function(){var e=this.onload;e&&e(null)}}]),e}();o.exports=u}),__d("fetch",[],function(e,t,n,r,o,i){"use strict";var a={};!function(){function e(e){if("string"!=typeof e&&(e=e.toString()),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=e.toString()),e}function n(e){this.map={};var t=this;e instanceof n?e.forEach(function(e,n){n.forEach(function(n){t.append(e,n)})}):e&&Object.getOwnPropertyNames(e).forEach(function(n){t.append(n,e[n])})}function r(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function o(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function i(e){var t=new FileReader;return t.readAsArrayBuffer(e),o(t)}function s(e){var t=new FileReader;return t.readAsText(e),o(t)}function u(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(f.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(f.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else{if(e)throw new Error("unsupported BodyInit type");this._bodyText=""}},f.blob?(this.blob=function(){var e=r(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(i)},this.text=function(){var e=r(this);if(e)return e;if(this._bodyBlob)return s(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=r(this);return e?e:Promise.resolve(this._bodyText)},f.formData&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then(JSON.parse)},this}function c(e){var t=e.toUpperCase();return m.indexOf(t)>-1?t:e}function l(e,t){if(t=t||{},this.url=e,this.credentials=t.credentials||"omit",this.headers=new n(t.headers),this.method=c(t.method||"GET"),this.mode=t.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&t.body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(t.body)}function p(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function d(e){var t=new n,r=e.getAllResponseHeaders().trim().split("\n");return r.forEach(function(e){var n=e.trim().split(":"),r=n.shift().trim(),o=n.join(":").trim();t.append(r,o)}),t}function h(e,t){t||(t={}),this._initBody(e),this.type="default",this.url=null,this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof n?t.headers:new n(t.headers),this.url=t.url||""}if(!a.fetch){n.prototype.append=function(n,r){n=e(n),r=t(r);var o=this.map[n];o||(o=[],this.map[n]=o),o.push(r)},n.prototype["delete"]=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(n,r){this.map[e(n)]=[t(r)]},n.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.map).forEach(function(n){e(n,t.map[n])})};var f={blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in a},m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];u.call(l.prototype),u.call(h.prototype),a.Headers=n,a.Request=l,a.Response=h,a.fetch=function(e,t){var n;return n=l.prototype.isPrototypeOf(e)&&!t?e:new l(e,t),new Promise(function(e,t){function r(){return"responseURL"in o?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):void 0}var o=new XMLHttpRequest;"cors"===n.credentials&&(o.withCredentials=!0),o.onload=function(){var n=1223===o.status?204:o.status;if(100>n||n>599)return void t(new TypeError("Network request failed"));var i={status:n,statusText:o.statusText,headers:d(o),url:r()},a="response"in o?o.response:o.responseText;e(new h(a,i))},o.onerror=function(){t(new TypeError("Network request failed"))},o.open(n.method,n.url,!0),"responseType"in o&&f.blob&&(o.responseType="blob"),n.headers.forEach(function(e,t){t.forEach(function(t){o.setRequestHeader(e,t)})}),o.send("undefined"==typeof n._bodyInit?null:n._bodyInit)})},a.fetch.polyfill=!0}}(),o.exports=a}),__d("Geolocation",["RCTDeviceEventEmitter","NativeModules","invariant","logError","warning"],function(e,t,n,r,o,i){"use strict";var a=t("RCTDeviceEventEmitter"),s=t("NativeModules").LocationObserver,u=t("invariant"),c=t("logError"),l=t("warning"),p=[],d=!1,h={getCurrentPosition:function(e,t,n){u("function"==typeof e,"Must provide a valid geo_success callback."),s.getCurrentPosition(n||{},e,t||c)},watchPosition:function(e,t,n){d||(s.startObserving(n||{}),d=!0);var r=p.length;return p.push([a.addListener("geolocationDidChange",e),t?a.addListener("geolocationError",t):null]),r},clearWatch:function(e){var t=p[e];if(t){t[0].remove();var n=t[1];n&&n.remove(),p[e]=void 0;for(var r=!0,o=0;o<p.length;o++)p[o]&&(r=!1);r&&h.stopObserving()}},stopObserving:function(){if(d){s.stopObserving(),d=!1;for(var e=0;e<p.length;e++){var t=p[e];if(t){l("Called stopObserving with existing subscriptions."),t[0].remove();var n=t[1];n&&n.remove()}}p=[]}}};o.exports=h}),__d("logError",[],function(e,t,n,r,o,i){"use strict";var a=function(){if(1===arguments.length&&arguments[0]instanceof Error){var e=arguments[0];console.error('Error: "'+e.message+'". Stack:\n'+e.stack)}else console.error.apply(console,arguments)};o.exports=a}),__d("WebSocket",["RCTDeviceEventEmitter","NativeModules","WebSocketBase"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function m(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:m(o,t,n)}if("value"in r)return r.value;var i=r.get;return void 0===i?void 0:i.call(n)},l=t("RCTDeviceEventEmitter"),p=t("NativeModules").WebSocketManager,d=t("WebSocketBase"),h=0,f=function(e){function t(){a(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return s(t,e),u(t,[{key:"connectToSocketImpl",value:function(e){this._socketId=h++,p.connect(e,this._socketId),this._registerEvents(this._socketId)}},{key:"closeConnectionImpl",value:function(){p.close(this._socketId)}},{key:"cancelConnectionImpl",value:function(){p.close(this._socketId)}},{key:"sendStringImpl",value:function(e){p.send(e,this._socketId)}},{key:"sendArrayBufferImpl",value:function(){console.warn("Sending ArrayBuffers is not yet supported")}},{key:"_unregisterEvents",value:function(){this._subs.forEach(function(e){return e.remove()}),this._subs=[]}},{key:"_registerEvents",value:function(e){this._subs=[l.addListener("websocketMessage",function(t){t.id===e&&this.onmessage&&this.onmessage({data:t.data})}.bind(this)),l.addListener("websocketOpen",function(t){t.id===e&&(this.readyState=this.OPEN,this.onopen&&this.onopen())}.bind(this)),l.addListener("websocketClosed",function(t){t.id===e&&(this.readyState=this.CLOSED,this.onclose&&this.onclose(t),this._unregisterEvents(),p.close(e))}.bind(this)),l.addListener("websocketFailed",function(t){t.id===e&&(this.onerror&&this.onerror(new Error(t.message)),this._unregisterEvents(),p.close(e))}.bind(this))]}}]),t}(d);o.exports=f}),__d("WebSocketBase",[],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(){function e(t,n){a(this,e),this.CONNECTING=0,this.OPEN=1,this.CLOSING=2,this.CLOSED=3,n||(n=[]),this.connectToSocketImpl(t)}return s(e,[{key:"close",value:function(){this.readyState!==e.CLOSING&&this.readyState!==e.CLOSED&&(this.readyState===e.CONNECTING&&this.cancelConnectionImpl(),this.closeConnectionImpl())}},{key:"send",value:function(t){if(this.readyState===e.CONNECTING)throw new Error("INVALID_STATE_ERR");if("string"==typeof t)this.sendStringImpl(t);else{if(!(t instanceof ArrayBuffer))throw new Error("Not supported data type");this.sendArrayBufferImpl(t)}}},{key:"closeConnectionImpl",value:function(){throw new Error("Subclass must define closeConnectionImpl method")}},{key:"connectToSocketImpl",value:function(){throw new Error("Subclass must define connectToSocketImpl method")}},{key:"cancelConnectionImpl",value:function(){throw new Error("Subclass must define cancelConnectionImpl method")}},{key:"sendStringImpl",value:function(){throw new Error("Subclass must define sendStringImpl method")}},{key:"sendArrayBufferImpl",value:function(){throw new Error("Subclass must define sendArrayBufferImpl method")}}]),e}();o.exports=u}),__d("EventPluginHub",["EventPluginRegistry","EventPluginUtils","accumulateInto","forEachAccumulated","invariant"],function(e,t,n,r,o,i){"use strict";function a(){var e=m&&m.traverseTwoPhase&&m.traverseEnterLeave;p(e,"InstanceHandle not injected before use!")}var s=t("EventPluginRegistry"),u=t("EventPluginUtils"),c=t("accumulateInto"),l=t("forEachAccumulated"),p=t("invariant"),d={},h=null,f=function(e){if(e){var t=u.executeDispatch,n=s.getPluginModuleForEvent(e);n&&n.executeDispatch&&(t=n.executeDispatch),u.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e)}},m=null,g={injection:{injectMount:u.injection.injectMount,injectInstanceHandle:function(e){m=e,__DEV__&&a()},getInstanceHandle:function(){return __DEV__&&a(),m},injectEventPluginOrder:s.injectEventPluginOrder,injectEventPluginsByName:s.injectEventPluginsByName},eventNameDispatchConfigs:s.eventNameDispatchConfigs,registrationNameModules:s.registrationNameModules,putListener:function(e,t,n){p(!n||"function"==typeof n,"Expected %s listener to be a function, instead got type %s",t,typeof n);var r=d[t]||(d[t]={});r[e]=n},getListener:function(e,t){var n=d[t];return n&&n[e]},deleteListener:function(e,t){var n=d[t];n&&delete n[e]},deleteAllListeners:function(e){for(var t in d)delete d[t][e]},extractEvents:function(e,t,n,r){for(var o,i=s.plugins,a=0,u=i.length;u>a;a++){var l=i[a];if(l){var p=l.extractEvents(e,t,n,r);p&&(o=c(o,p))}}return o},enqueueEvents:function(e){e&&(h=c(h,e))},processEventQueue:function(){var e=h;h=null,l(e,f),p(!h,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.")},__purge:function(){d={}},__getListenerBank:function(){return d}};o.exports=g}),__d("EventPluginRegistry",["invariant"],function(e,t,n,r,o,i){"use strict";function a(){if(l)for(var e in p){var t=p[e],n=l.indexOf(e);if(c(n>-1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",e),!d.plugins[n]){c(t.extractEvents,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",e),d.plugins[n]=t;var r=t.eventTypes;for(var o in r)c(s(r[o],t,o),"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",o,e)}}}function s(e,t,n){c(!d.eventNameDispatchConfigs.hasOwnProperty(n),"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",n),d.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];u(i,t,n)}return!0}return e.registrationName?(u(e.registrationName,t,n),!0):!1}function u(e,t,n){c(!d.registrationNameModules[e],"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",e),d.registrationNameModules[e]=t,d.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var c=t("invariant"),l=null,p={},d={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){c(!l,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."),l=Array.prototype.slice.call(e),a()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];p.hasOwnProperty(n)&&p[n]===r||(c(!p[n],"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",n),p[n]=r,t=!0)}t&&a()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return d.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=d.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){l=null;for(var e in p)p.hasOwnProperty(e)&&delete p[e];d.plugins.length=0;var t=d.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=d.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};o.exports=d}),__d("EventPluginUtils",["EventConstants","invariant"],function(e,t,n,r,o,i){"use strict";function a(e){return e===b.topMouseUp||e===b.topTouchEnd||e===b.topTouchCancel}function s(e){return e===b.topMouseMove||e===b.topTouchMove}function u(e){return e===b.topMouseDown||e===b.topTouchStart}function c(e,t){var n=e._dispatchListeners,r=e._dispatchIDs;if(__DEV__&&g(e),Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)t(e,n[o],r[o]);else n&&t(e,n,r)}function l(e,t,n){e.currentTarget=_.Mount.getNode(n);var r=t(e,n);return e.currentTarget=null,r}function p(e,t){c(e,t),e._dispatchListeners=null,e._dispatchIDs=null}function d(e){var t=e._dispatchListeners,n=e._dispatchIDs;if(__DEV__&&g(e),Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function h(e){var t=d(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function f(e){__DEV__&&g(e);var t=e._dispatchListeners,n=e._dispatchIDs;y(!Array.isArray(t),"executeDirectDispatch(...): Invalid `event`.");var r=t?t(e,n):null;return e._dispatchListeners=null,e._dispatchIDs=null,r}function m(e){return!!e._dispatchListeners}var g,v=t("EventConstants"),y=t("invariant"),_={Mount:null,injectMount:function(e){_.Mount=e,__DEV__&&y(e&&e.getNode,"EventPluginUtils.injection.injectMount(...): Injected Mount module is missing getNode.")}},b=v.topLevelTypes;__DEV__&&(g=function(e){var t=e._dispatchListeners,n=e._dispatchIDs,r=Array.isArray(t),o=Array.isArray(n),i=o?n.length:n?1:0,a=r?t.length:t?1:0;y(o===r&&i===a,"EventPluginUtils: Invalid `event`.")});var S={isEndish:a,isMoveish:s,isStartish:u,executeDirectDispatch:f,executeDispatch:l,executeDispatchesInOrder:p,executeDispatchesInOrderStopAtTrue:h,hasDispatches:m,injection:_,useTouchEvents:!1};o.exports=S}),__d("EventConstants",["keyMirror"],function(e,t,n,r,o,i){"use strict";var a=t("keyMirror"),s=a({bubbled:null,captured:null}),u=a({topBlur:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topReset:null,topScroll:null,topSelectionChange:null,topSubmit:null,topTextInput:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topWheel:null}),c={topLevelTypes:u,PropagationPhases:s};o.exports=c}),__d("accumulateInto",["invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(s(null!=t,"accumulateInto(...): Accumulated items must not be null or undefined."),null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var s=t("invariant");o.exports=a}),__d("forEachAccumulated",[],function(e,t,n,r,o,i){"use strict";var a=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};o.exports=a}),__d("IOSDefaultEventPluginOrder",[],function(e,t,n,r,o,i){"use strict";var a=["ResponderEventPlugin","IOSNativeBridgeEventPlugin"];o.exports=a}),__d("IOSNativeBridgeEventPlugin",["EventPropagators","NativeModules","SyntheticEvent","merge","warning"],function(e,t,n,r,o,i){"use strict";var a=t("EventPropagators"),s=t("NativeModules"),u=t("SyntheticEvent"),c=t("merge"),l=t("warning"),p=s.UIManager,d=p.customBubblingEventTypes,h=p.customDirectEventTypes,f={};for(var m in d)f[m]=d[m];for(var g in h)l(!d[g],"Event cannot be both direct and bubbling: %s",g),f[g]=h[g];var v={eventTypes:c(d,h),extractEvents:function(e,t,n,r){var o=d[e],i=h[e],s=u.getPooled(o||i,n,r);if(o)a.accumulateTwoPhaseDispatches(s);else{if(!i)return null;a.accumulateDirectDispatches(s)}return s}};o.exports=v}),__d("EventPropagators",["EventConstants","EventPluginHub","accumulateInto","forEachAccumulated"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return S(e,r)}function s(e,t,n){if(__DEV__&&!e)throw new Error("Dispatching id must not be null");var r=t?b.bubbled:b.captured,o=a(e,n,r);o&&(n._dispatchListeners=y(n._dispatchListeners,o),n._dispatchIDs=y(n._dispatchIDs,e))}function u(e){e&&e.dispatchConfig.phasedRegistrationNames&&v.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,s,e)}function c(e){e&&e.dispatchConfig.phasedRegistrationNames&&v.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(e.dispatchMarker,s,e)}function l(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=S(e,r);o&&(n._dispatchListeners=y(n._dispatchListeners,o),n._dispatchIDs=y(n._dispatchIDs,e))}}function p(e){e&&e.dispatchConfig.registrationName&&l(e.dispatchMarker,null,e)}function d(e){_(e,u)}function h(e){_(e,c)}function f(e,t,n,r){v.injection.getInstanceHandle().traverseEnterLeave(n,r,l,e,t)}function m(e){_(e,p)}var g=t("EventConstants"),v=t("EventPluginHub"),y=t("accumulateInto"),_=t("forEachAccumulated"),b=g.PropagationPhases,S=v.getListener,R={accumulateTwoPhaseDispatches:d,accumulateTwoPhaseDispatchesSkipTarget:h,accumulateDirectDispatches:m,accumulateEnterLeaveDispatches:f};o.exports=R}),__d("SyntheticEvent",["PooledClass","Object.assign","emptyFunction","getEventTarget"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var r=this.constructor.Interface;for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];i?this[o]=i(n):this[o]=n[o]}var a=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;a?this.isDefaultPrevented=c.thatReturnsTrue:this.isDefaultPrevented=c.thatReturnsFalse,this.isPropagationStopped=c.thatReturnsFalse}var s=t("PooledClass"),u=t("Object.assign"),c=t("emptyFunction"),l=t("getEventTarget"),p={type:null,target:l,currentTarget:c.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now();
},defaultPrevented:null,isTrusted:null};u(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=c.thatReturnsTrue},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=c.thatReturnsTrue},persist:function(){this.isPersistent=c.thatReturnsTrue},isPersistent:c.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),a.Interface=p,a.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);u(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=u({},n.Interface,t),e.augmentClass=n.augmentClass,s.addPoolingTo(e,s.threeArgumentPooler)},s.addPoolingTo(a,s.threeArgumentPooler),o.exports=a}),__d("getEventTarget",[],function(e,t,n,r,o,i){"use strict";function a(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}o.exports=a}),__d("merge",["mergeInto"],function(e,t,n,r,o,i){"use strict";var a=t("mergeInto"),s=function(e,t){var n={};return a(n,e),a(n,t),n};o.exports=s}),__d("mergeInto",["mergeHelpers"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(c(e),null!=t){u(t);for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}}var s=t("mergeHelpers"),u=s.checkMergeObjectArg,c=s.checkMergeIntoObjectArg;o.exports=a}),__d("mergeHelpers",["invariant","keyMirror"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s=t("keyMirror"),u=36,c=function(e){return"object"!=typeof e||null===e},l={MAX_MERGE_DEPTH:u,isTerminal:c,normalizeMergeArg:function(e){return void 0===e||null===e?{}:e},checkMergeArrayArgs:function(e,t){a(Array.isArray(e)&&Array.isArray(t),"Tried to merge arrays, instead got %s and %s.",e,t)},checkMergeObjectArgs:function(e,t){l.checkMergeObjectArg(e),l.checkMergeObjectArg(t)},checkMergeObjectArg:function(e){a(!c(e)&&!Array.isArray(e),"Tried to merge an object, instead got %s.",e)},checkMergeIntoObjectArg:function(e){a(!(c(e)&&"function"!=typeof e||Array.isArray(e)),"Tried to merge into an object, instead got %s.",e)},checkMergeLevel:function(e){a(u>e,"Maximum deep merge depth exceeded. You may be attempting to merge circular structures in an unsupported way.")},checkArrayStrategy:function(e){a(void 0===e||e in l.ArrayStrategies,"You must provide an array strategy to deep merge functions to instruct the deep merge how to resolve merging two arrays.")},ArrayStrategies:s({Clobber:!0,IndexByIndex:!0})};o.exports=l}),__d("NodeHandle",[],function(e,t,n,r,o,i){var a={injection:{injectImplementation:function(e){a._Implementation=e}},_Implementation:null,getRootNodeID:function(e){return a._Implementation.getRootNodeID(e)}};o.exports=a}),__d("ReactComponentEnvironment",["invariant"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s=!1,u={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){a(!s,"ReactCompositeComponent: injectEnvironment() can only be called once."),u.unmountIDFromEnvironment=e.unmountIDFromEnvironment,u.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,u.processChildrenUpdates=e.processChildrenUpdates,s=!0}}};o.exports=u}),__d("ReactDefaultBatchingStrategy",["ReactUpdates","Transaction","Object.assign","emptyFunction"],function(e,t,n,r,o,i){"use strict";function a(){this.reinitializeTransaction()}var s=t("ReactUpdates"),u=t("Transaction"),c=t("Object.assign"),l=t("emptyFunction"),p={initialize:l,close:function(){m.isBatchingUpdates=!1}},d={initialize:l,close:s.flushBatchedUpdates.bind(s)},h=[d,p];c(a.prototype,u.Mixin,{getTransactionWrappers:function(){return h}});var f=new a,m={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o){var i=m.isBatchingUpdates;m.isBatchingUpdates=!0,i?e(t,n,r,o):f.perform(e,null,t,n,r,o)}};o.exports=m}),__d("ReactEmptyComponent",["ReactElement","ReactInstanceMap","invariant"],function(e,t,n,r,o,i){"use strict";function a(e){h[e]=!0}function s(e){delete h[e]}function u(e){return!!h[e]}var c,l=t("ReactElement"),p=t("ReactInstanceMap"),d=t("invariant"),h={},f={injectEmptyComponent:function(e){c=l.createFactory(e)}},m=function(){};m.prototype.componentDidMount=function(){var e=p.get(this);e&&a(e._rootNodeID)},m.prototype.componentWillUnmount=function(){var e=p.get(this);e&&s(e._rootNodeID)},m.prototype.render=function(){return d(c,"Trying to return null from a render, but no null placeholder component was injected."),c()};var g=l.createElement(m),v={emptyElement:g,injection:f,isNullComponentID:u};o.exports=v}),__d("ReactNativeComponentEnvironment",["ReactNativeDOMIDOperations","ReactNativeReconcileTransaction"],function(e,t,n,r,o,i){"use strict";var a=t("ReactNativeDOMIDOperations"),s=t("ReactNativeReconcileTransaction"),u={processChildrenUpdates:a.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:a.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(){},clearNode:function(){},ReactReconcileTransaction:s};o.exports=u}),__d("ReactNativeDOMIDOperations",["ReactNativeTagHandles","ReactMultiChildUpdateTypes","NativeModules","ReactPerf"],function(e,t,n,r,o,i){"use strict";var a=t("ReactNativeTagHandles"),s=t("ReactMultiChildUpdateTypes"),u=t("NativeModules").UIManager,c=t("ReactPerf"),l=function(e,t){if(e.length){for(var n={},r=0;r<e.length;r++){var o=e[r],i=a.mostRecentMountedNodeHandleForRootNodeID(o.parentID),c=n[i]||(n[i]={});if(o.type===s.MOVE_EXISTING)(c.moveFromIndices||(c.moveFromIndices=[])).push(o.fromIndex),(c.moveToIndices||(c.moveToIndices=[])).push(o.toIndex);else if(o.type===s.REMOVE_NODE)(c.removeAtIndices||(c.removeAtIndices=[])).push(o.fromIndex);else if(o.type===s.INSERT_MARKUP){var l=t[o.markupIndex],p=l.tag,d=l.rootNodeID;a.associateRootNodeIDWithMountedNodeHandle(d,p),(c.addAtIndices||(c.addAtIndices=[])).push(o.toIndex),(c.addChildTags||(c.addChildTags=[])).push(p)}}for(var h in n){var f=+h,m=n[f];u.manageChildren(f,m.moveFromIndices,m.moveToIndices,m.addChildTags,m.addAtIndices,m.removeAtIndices)}}},p={dangerouslyProcessChildrenUpdates:c.measure("ReactDOMIDOperations","dangerouslyProcessChildrenUpdates",l),dangerouslyReplaceNodeWithMarkupByID:c.measure("ReactDOMIDOperations","dangerouslyReplaceNodeWithMarkupByID",function(e,t){var n=a.mostRecentMountedNodeHandleForRootNodeID(e);u.replaceExistingNonRootView(n,t.tag),a.associateRootNodeIDWithMountedNodeHandle(e,t.tag)})};o.exports=p}),__d("ReactNativeTagHandles",["invariant","warning"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s=t("warning"),u=1,c={tagsStartAt:u,tagCount:u,allocateTag:function(){for(;this.reactTagIsNativeTopRootID(c.tagCount);)c.tagCount++;var e=c.tagCount;return c.tagCount++,e},associateRootNodeIDWithMountedNodeHandle:function(e,t){s(e&&t,"Root node or tag is null when associating"),e&&t&&(c.tagToRootNodeID[t]=e,c.rootNodeIDToTag[e]=t)},allocateRootNodeIDForTag:function(e){return a(this.reactTagIsNativeTopRootID(e),"Expect a native root tag, instead got ",e),".r["+e+"]{TOP_LEVEL}"},reactTagIsNativeTopRootID:function(e){return e%10===1},mostRecentMountedNodeHandleForRootNodeID:function(e){return c.rootNodeIDToTag[e]},tagToRootNodeID:[],rootNodeIDToTag:{}};o.exports=c}),__d("ReactMultiChildUpdateTypes",["keyMirror"],function(e,t,n,r,o,i){"use strict";var a=t("keyMirror"),s=a({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,TEXT_CONTENT:null});o.exports=s}),__d("ReactNativeReconcileTransaction",["CallbackQueue","PooledClass","Transaction"],function(e,t,n,r,o,i){"use strict";function a(){this.reinitializeTransaction(),this.reactMountReady=s.getPooled(null)}var s=t("CallbackQueue"),u=t("PooledClass"),c=t("Transaction"),l={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},p=[l],d={getTransactionWrappers:function(){return p},getReactMountReady:function(){return this.reactMountReady},destructor:function(){s.release(this.reactMountReady),this.reactMountReady=null}};Object.assign(a.prototype,c.Mixin,a,d),u.addPoolingTo(a),o.exports=a}),__d("ReactNativeGlobalInteractionHandler",["InteractionManager"],function(e,t,n,r,o,i){"use strict";var a=t("InteractionManager"),s=null,u={onChange:function(e){0===e?s&&(a.clearInteractionHandle(s),s=null):s||(s=a.createInteractionHandle())}};o.exports=u}),__d("InteractionManager",["ErrorUtils","EventEmitter","Set","invariant","keyMirror","setImmediate"],function(e,t,n,r,o,i){"use strict";function a(){b||(b=f(s))}function s(){b=null;var e=v.size;y.forEach(function(e){return v.add(e)}),_.forEach(function(e){return v["delete"](e)});var t=v.size;if(0!==e&&0===t?g.emit(E.Events.interactionComplete):0===e&&0!==t&&g.emit(E.Events.interactionStart),0===t){var n=S;S=[],n.forEach(function(e){c.applyWithGuard(e)})}y.clear(),_.clear()}function u(e,t,n){setTimeout(function(){v.has(e)&&console.warn(t.message+"\n"+t.stack)},n)}var c=t("ErrorUtils"),l=t("EventEmitter"),p=t("Set"),d=t("invariant"),h=t("keyMirror"),f=t("setImmediate"),m=2e3,g=new l,v=new p,y=new p,_=new p,b=null,S=[],R=0,E={Events:h({interactionStart:!0,interactionComplete:!0}),runAfterInteractions:function(e){d("function"==typeof e,"Must specify a function to schedule."),a(),S.push(e)},createInteractionHandle:function(){a();var e=++R;if(y.add(e),__DEV__){var t=new Error("InteractionManager: interaction handle not cleared within "+m+" ms.");u(e,t,m)}return e},clearInteractionHandle:function(e){d(!!e,"Must provide a handle to clear."),a(),y["delete"](e),_.add(e)},addListener:g.addListener.bind(g)};o.exports=E}),__d("Set",["Map","toIterator","_shouldPolyfillES6Collection"],function(e,t,n,r,o,i){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("Map"),c=t("toIterator"),l=t("_shouldPolyfillES6Collection");o.exports=function(e,t){function n(e){e._map=new u,e.size=e._map.size}if(!l("Set"))return e.Set;var r=function(){function e(t){if(a(this,e),null==this||"object"!=typeof this&&"function"!=typeof this)throw new TypeError("Wrong set object type.");if(n(this),null!=t)for(var r,o=c(t);!(r=o.next()).done;)this.add(r.value)}return s(e,[{key:"add",value:function(e){return this._map.set(e,e),this.size=this._map.size,this}},{key:"clear",value:function(){n(this)}},{key:"delete",value:function(e){var t=this._map["delete"](e);return this.size=this._map.size,t}},{key:"entries",value:function(){return this._map.entries()}},{key:"forEach",value:function(e){for(var t,n=arguments[1],r=this._map.keys();!(t=r.next()).done;)e.call(n,t.value,t.value,this)}},{key:"has",value:function(e){return this._map.has(e)}},{key:"values",value:function(){return this._map.values()}}]),e}();return r.prototype[c.ITERATOR_SYMBOL]=r.prototype.values,r.prototype.keys=r.prototype.values,r}(Function("return this")())}),__d("Map",["guid","isNode","toIterator","_shouldPolyfillES6Collection"],function(e,t,n,r,o,i){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("guid"),c=t("isNode"),l=t("toIterator"),p=t("_shouldPolyfillES6Collection");o.exports=function(e,t){function n(e,t){if(i(t)){var n=w(t);return e._objectIndex[n]}var r=_+t;return"string"==typeof t?e._stringIndex[r]:e._otherIndex[r]}function r(e,t,n){var r=null==n;if(i(t)){var o=w(t);r?delete e._objectIndex[o]:e._objectIndex[o]=n}else{var a=_+t;"string"==typeof t?r?delete e._stringIndex[a]:e._stringIndex[a]=n:r?delete e._otherIndex[a]:e._otherIndex[a]=n}}function o(e){return e._mapData=[],e._objectIndex={},e._stringIndex={},e._otherIndex={},__DEV__&&E?void(e.hasOwnProperty(m)?e[m]=0:(Object.defineProperty(e,m,{value:0,writable:!0}),Object.defineProperty(e,"size",{set:function(e){throw console.error("PLEASE FIX ME: You are changing the map size property which should not be writable and will break in production."),new Error("The map size property is not writable.")},get:function(){return e[m]}}))):void(e.size=0)}function i(e){return null!=e&&("object"==typeof e||"function"==typeof e)}function d(e,t){return{value:e,done:t}}function h(e){return E?Object.isExtensible(e):!0}function f(e){var t;switch(e.nodeType){case 1:t=e.uniqueID;break;case 9:t=e.documentElement.uniqueID;break;default:return null}return t?b+t:null}if(!p("Map"))return e.Map;var m,g="key",v="value",y="key+value",_="$map_";__DEV__&&(m="$size"+u());var b="IE_HASH_",S=function(){function e(t){if(a(this,e),!i(this))throw new TypeError("Wrong map object type.");if(o(this),null!=t)for(var n,r=l(t);!(n=r.next()).done;){if(!i(n.value))throw new TypeError("Expected iterable items to be pair objects.");this.set(n.value[0],n.value[1])}}return s(e,[{key:"clear",value:function(){o(this)}},{key:"has",value:function(e){var t=n(this,e);return!(null==t||!this._mapData[t])}},{key:"set",value:function(e,t){var o=n(this,e);return null!=o&&this._mapData[o]?this._mapData[o][1]=t:(o=this._mapData.push([e,t])-1,r(this,e,o),__DEV__?this[m]+=1:this.size+=1),this}},{key:"get",value:function(e){var r=n(this,e);return null==r?t:this._mapData[r][1]}},{key:"delete",value:function(e){var o=n(this,e);return null!=o&&this._mapData[o]?(r(this,e,t),this._mapData[o]=t,__DEV__?this[m]-=1:this.size-=1,!0):!1}},{key:"entries",value:function(){return new R(this,y)}},{key:"keys",value:function(){return new R(this,g)}},{key:"values",value:function(){return new R(this,v)}},{key:"forEach",value:function(e,n){if("function"!=typeof e)throw new TypeError("Callback must be callable.");for(var r=e.bind(n||t),o=this._mapData,i=0;i<o.length;i++){var a=o[i];null!=a&&r(a[1],a[0],this)}}}]),e}();S.prototype[l.ITERATOR_SYMBOL]=S.prototype.entries;var R=function(){function e(t,n){if(a(this,e),!i(t)||!t._mapData)throw new TypeError("Object is not a map.");if(-1===[g,y,v].indexOf(n))throw new Error("Invalid iteration kind.");this._map=t,this._nextIndex=0,this._kind=n}return s(e,[{key:"next",value:function(){if(!this instanceof S)throw new TypeError("Expected to be called on a MapIterator.");var e=this._map,n=this._nextIndex,r=this._kind;if(null==e)return d(t,!0);for(var o=e._mapData;n<o.length;){var i=o[n];if(n+=1,this._nextIndex=n,i){if(r===g)return d(i[0],!1);if(r===v)return d(i[1],!1);if(r)return d(i,!1)}}return this._map=t,d(t,!0)}}]),e}();R.prototype[l.ITERATOR_SYMBOL]=function(){return this};var E=function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}(),w=function(){var e=Object.prototype.propertyIsEnumerable,t=u(),n=0;return function(r){if(r[t])return r[t];if(!E&&r.propertyIsEnumerable&&r.propertyIsEnumerable[t])return r.propertyIsEnumerable[t];if(!E&&c(r)&&f(r))return f(r);if(!E&&r[t])return r[t];if(h(r)){if(n+=1,E)Object.defineProperty(r,t,{enumerable:!1,writable:!1,configurable:!1,value:n});else if(r.propertyIsEnumerable)r.propertyIsEnumerable=function(){return e.apply(this,arguments)},r.propertyIsEnumerable[t]=n;else{if(!c(r))throw new Error("Unable to set a non-enumerable property on object.");r[t]=n}return n}throw new Error("Non-extensible objects are not allowed as keys.")}}();return S}(Function("return this")())}),__d("guid",[],function(e,t,n,r,o,i){function a(){return"f"+(Math.random()*(1<<30)).toString(16).replace(".","")}o.exports=a}),__d("isNode",[],function(e,t,n,r,o,i){function a(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}o.exports=a}),__d("toIterator",[],function(e,t,n,r,o,i){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u="key",c="value",l="key+value",p="function"==typeof Symbol?Symbol.iterator:"@@iterator",d=function(){return Array.prototype[p]&&String.prototype[p]?function(e){return e[p]()}:function(){function e(e,t){return{value:e,done:t}}var t=function(){function t(e,n){if(a(this,t),!Array.isArray(e))throw new TypeError("Object is not an Array");this._iteratedObject=e,this._kind=n,this._nextIndex=0}return s(t,[{key:"next",value:function(){if(!this instanceof t)throw new TypeError("Object is not an ArrayIterator");if(null==this._iteratedObject)return e(void 0,!0);var n=this._iteratedObject,r=this._iteratedObject.length,o=this._nextIndex,i=this._kind;return o>=r?(this._iteratedObject=void 0,e(void 0,!0)):(this._nextIndex=o+1,i===u?e(o,!1):i===c?e(n[o],!1):i===l?e([o,n[o]],!1):void 0)}},{key:"@@iterator",value:function(){return this}}]),t}(),n=function(){function t(e){if(a(this,t),"string"!=typeof e)throw new TypeError("Object is not a string");this._iteratedString=e,this._nextIndex=0}return s(t,[{key:"next",value:function(){if(!this instanceof t)throw new TypeError("Object is not a StringIterator");if(null==this._iteratedString)return e(void 0,!0);var n=this._nextIndex,r=this._iteratedString,o=r.length;if(n>=o)return this._iteratedString=void 0,e(void 0,!0);var i,a=r.charCodeAt(n);if(55296>a||a>56319||n+1===o)i=r[n];else{var s=r.charCodeAt(n+1);i=56320>s||s>57343?r[n]:r[n]+r[n+1]}return this._nextIndex=n+i.length,e(i,!1)}},{key:"@@iterator",value:function(){return this}}]),t}();return function(e,r){return"string"==typeof e?new n(e):Array.isArray(e)?new t(e,r||c):e[p]()}}()}();Object.assign(d,{KIND_KEY:u,KIND_VALUE:c,KIND_KEY_VAL:l,ITERATOR_SYMBOL:p}),o.exports=d}),__d("_shouldPolyfillES6Collection",[],function(e,t,n,r,o,i){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}function u(t){var n=e[t];if(null==n)return!0;var r=n.prototype;return null==n||"function"!=typeof n||"function"!=typeof r.clear||0!==(new n).size||"function"!=typeof r.keys||"function"!=typeof r.forEach||l(n)||!c(n)}function c(e){var t=function(e){function t(){a(this,t),p(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return s(t,e),t}(e);try{var n=new t([]);return n.size,n instanceof e}catch(r){return!1}}function l(e){try{e()}catch(t){return!1}return!0}var p=function d(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:d(o,t,n)}if("value"in r)return r.value;var i=r.get;return void 0===i?void 0:i.call(n)};o.exports=u}),__d("ReactNativeGlobalResponderHandler",["NativeModules","ReactNativeTagHandles"],function(e,t,n,r,o,i){"use strict";var a=t("NativeModules").UIManager,s=t("ReactNativeTagHandles"),u={onChange:function(e,t){null!==t?a.setJSResponder(s.mostRecentMountedNodeHandleForRootNodeID(t)):a.clearJSResponder()}};o.exports=u}),__d("ReactNativeMount",["NativeModules","ReactNativeTagHandles","ReactPerf","ReactReconciler","ReactUpdateQueue","ReactUpdates","emptyObject","instantiateReactComponent","shouldUpdateReactComponent"],function(e,t,n,r,o,i){"use strict";function a(e,t){return e+"["+t+"]"}function s(e,t,n,r){var o=d.mountComponent(e,t,r,m);e._isTopLevel=!0,y._mountImageIntoNode(o,n)}function u(e,t,n){var r=f.ReactReconcileTransaction.getPooled();r.perform(s,null,e,t,n,r),f.ReactReconcileTransaction.release(r)}var c=t("NativeModules").UIManager,l=t("ReactNativeTagHandles"),p=t("ReactPerf"),d=t("ReactReconciler"),h=t("ReactUpdateQueue"),f=t("ReactUpdates"),m=t("emptyObject"),g=t("instantiateReactComponent"),v=t("shouldUpdateReactComponent"),y={instanceCount:0,_instancesByContainerID:{},renderComponent:function(e,t,n){var r=l.tagToRootNodeID[t];if(r){var o=y._instancesByContainerID[r];if(o){var i=o._currentElement;if(v(i,e))return h.enqueueElementInternal(o,e),n&&h.enqueueCallbackInternal(o,n),o;y.unmountComponentAtNode(t)}}if(!l.reactTagIsNativeTopRootID(t))return void console.error("You cannot render into anything but a top root");var r=l.allocateRootNodeIDForTag(t);l.associateRootNodeIDWithMountedNodeHandle(r,t);var s=g(e);y._instancesByContainerID[r]=s;var c=a(r,y.instanceCount++);f.batchedUpdates(u,s,c,r);var p=s.getPublicInstance();return n&&n.call(p),p},_mountImageIntoNode:p.measure("ReactComponentBrowserEnvironment","mountImageIntoNode",function(e,t){l.associateRootNodeIDWithMountedNodeHandle(e.rootNodeID,e.tag);var n=[e.tag],r=[0];c.manageChildren(l.mostRecentMountedNodeHandleForRootNodeID(t),null,null,n,r,null)}),unmountComponentAtNodeAndRemoveContainer:function(e){y.unmountComponentAtNode(e),c.removeRootView(e)},unmountComponentAtNode:function(e){if(!l.reactTagIsNativeTopRootID(e))return console.error("You cannot render into anything but a top root"),!1;var t=l.tagToRootNodeID[e],n=y._instancesByContainerID[t];return n?(y.unmountComponentFromNode(n,t),delete y._instancesByContainerID[t],!0):!1},unmountComponentFromNode:function(e,t){d.unmountComponent(e);var n=l.mostRecentMountedNodeHandleForRootNodeID(t);c.removeSubviewsFromContainerWithID(n)},getNode:function(e){return e}};y.renderComponent=p.measure("ReactMount","_renderNewRootComponent",y.renderComponent),o.exports=y}),__d("instantiateReactComponent",["ReactCompositeComponent","ReactEmptyComponent","ReactNativeComponent","Object.assign","invariant","warning"],function(e,t,n,r,o,i){"use strict";function a(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function s(e,t){var n;if((null===e||e===!1)&&(e=c.emptyElement),"object"==typeof e){var r=e;__DEV__&&h(r&&("function"==typeof r.type||"string"==typeof r.type),"Only functions or strings can be mounted as React components."),n=t===r.type&&"string"==typeof r.type?l.createInternalComponent(r):a(r.type)?new r.type(r):new f}else"string"==typeof e||"number"==typeof e?n=l.createInstanceForText(e):d(!1,"Encountered invalid React node of type %s",typeof e);return __DEV__&&h("function"==typeof n.construct&&"function"==typeof n.mountComponent&&"function"==typeof n.receiveComponent&&"function"==typeof n.unmountComponent,"Only React Components can be mounted."),n.construct(e),n._mountIndex=0,n._mountImage=null,__DEV__&&(n._isOwnerNecessary=!1,n._warnedAboutRefsInRender=!1),__DEV__&&Object.preventExtensions&&Object.preventExtensions(n),n}var u=t("ReactCompositeComponent"),c=t("ReactEmptyComponent"),l=t("ReactNativeComponent"),p=t("Object.assign"),d=t("invariant"),h=t("warning"),f=function(){};p(f.prototype,u.Mixin,{_instantiateReactComponent:s}),o.exports=s}),__d("ReactCompositeComponent",["ReactComponentEnvironment","ReactContext","ReactCurrentOwner","ReactElement","ReactElementValidator","ReactInstanceMap","ReactLifeCycle","ReactNativeComponent","ReactPerf","ReactPropTypeLocations","ReactPropTypeLocationNames","ReactReconciler","ReactUpdates","Object.assign","emptyObject","invariant","shouldUpdateReactComponent","warning"],function(e,t,n,r,o,i){"use strict";function a(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}var s=t("ReactComponentEnvironment"),u=t("ReactContext"),c=t("ReactCurrentOwner"),l=t("ReactElement"),p=t("ReactElementValidator"),d=t("ReactInstanceMap"),h=t("ReactLifeCycle"),f=t("ReactNativeComponent"),m=t("ReactPerf"),g=t("ReactPropTypeLocations"),v=t("ReactPropTypeLocationNames"),y=t("ReactReconciler"),_=t("ReactUpdates"),b=t("Object.assign"),S=t("emptyObject"),R=t("invariant"),E=t("shouldUpdateReactComponent"),w=t("warning"),C=1,T={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._isTopLevel=!1,this._pendingCallbacks=null},mountComponent:function(e,t,n){this._context=n,this._mountOrder=C++,this._rootNodeID=e;var r=this._processProps(this._currentElement.props),o=this._processContext(this._currentElement._context),i=f.getComponentClassForElement(this._currentElement),a=new i(r,o);__DEV__&&w(null!=a.render,"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render` in your component or you may have accidentally tried to render an element whose type is a function that isn't a React component.",i.displayName||i.name||"Component"),a.props=r,a.context=o,a.refs=S,this._instance=a,d.set(a,this),__DEV__&&this._warnIfContextsDiffer(this._currentElement._context,n),__DEV__&&(w(!a.getInitialState||a.getInitialState.isReactClassApproved,"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",this.getName()||"a component"),w(!a.getDefaultProps||a.getDefaultProps.isReactClassApproved,"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",this.getName()||"a component"),w(!a.propTypes,"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",this.getName()||"a component"),w(!a.contextTypes,"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",this.getName()||"a component"),w("function"!=typeof a.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",this.getName()||"A component"));var s=a.state;void 0===s&&(a.state=s=null),R("object"==typeof s&&!Array.isArray(s),"%s.state: must be set to an object or null",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var u,c=h.currentlyMountingInstance;h.currentlyMountingInstance=this;try{a.componentWillMount&&(a.componentWillMount(),this._pendingStateQueue&&(a.state=this._processPendingState(a.props,a.context))),u=this._renderValidatedComponent()}finally{h.currentlyMountingInstance=c}this._renderedComponent=this._instantiateReactComponent(u,this._currentElement.type);var l=y.mountComponent(this._renderedComponent,e,t,this._processChildContext(n));return a.componentDidMount&&t.getReactMountReady().enqueue(a.componentDidMount,a),l},unmountComponent:function(){var e=this._instance;if(e.componentWillUnmount){var t=h.currentlyUnmountingInstance;h.currentlyUnmountingInstance=this;try{e.componentWillUnmount()}finally{h.currentlyUnmountingInstance=t}}y.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,d.remove(e)},_setPropsInternal:function(e,t){var n=this._pendingElement||this._currentElement;this._pendingElement=l.cloneAndReplaceProps(n,b({},n.props,e)),_.enqueueUpdate(this,t)},_maskContext:function(e){var t=null;if("string"==typeof this._currentElement.type)return S;var n=this._currentElement.type.contextTypes;if(!n)return S;t={};for(var r in n)t[r]=e[r];return t},_processContext:function(e){var t=this._maskContext(e);if(__DEV__){var n=f.getComponentClassForElement(this._currentElement);n.contextTypes&&this._checkPropTypes(n.contextTypes,t,g.context)}return t},_processChildContext:function(e){var t=this._instance,n=t.getChildContext&&t.getChildContext();if(n){R("object"==typeof t.constructor.childContextTypes,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",this.getName()||"ReactCompositeComponent"),__DEV__&&this._checkPropTypes(t.constructor.childContextTypes,n,g.childContext);for(var r in n)R(r in t.constructor.childContextTypes,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',this.getName()||"ReactCompositeComponent",r);return b({},e,n)}return e},_processProps:function(e){if(__DEV__){var t=f.getComponentClassForElement(this._currentElement);t.propTypes&&this._checkPropTypes(t.propTypes,e,g.prop)}return e},_checkPropTypes:function(e,t,n){var r=this.getName();for(var o in e)if(e.hasOwnProperty(o)){var i;try{R("function"==typeof e[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",r||"React class",v[n],o),i=e[o](t,o,r,n)}catch(s){i=s}if(i instanceof Error){var u=a(this);n===g.prop?w(!1,"Failed Composite propType: %s%s",i.message,u):w(!1,"Failed Context Types: %s%s",i.message,u)}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&y.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&(__DEV__&&p.checkAndWarnForMutatedProps(this._currentElement),this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context))},_warnIfContextsDiffer:function(e,t){e=this._maskContext(e),t=this._maskContext(t);for(var n=Object.keys(t).sort(),r=this.getName()||"ReactCompositeComponent",o=0;o<n.length;o++){var i=n[o];w(e[i]===t[i],"owner-based and parent-based contexts differ (values: `%s` vs `%s`) for key (%s) while mounting %s (see: http://fb.me/react-context-by-parent)",e[i],t[i],i,r)}},updateComponent:function(e,t,n,r,o){var i=this._instance,a=i.context,s=i.props;t!==n&&(a=this._processContext(n._context),s=this._processProps(n.props),__DEV__&&null!=o&&this._warnIfContextsDiffer(n._context,o),i.componentWillReceiveProps&&i.componentWillReceiveProps(s,a));var u=this._processPendingState(s,a),c=this._pendingForceUpdate||!i.shouldComponentUpdate||i.shouldComponentUpdate(s,u,a);__DEV__&&w("undefined"!=typeof c,"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",this.getName()||"ReactCompositeComponent"),c?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,s,u,a,e,o)):(this._currentElement=n,this._context=o,i.props=s,i.state=u,i.context=a)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;for(var i=b({},o?r[0]:n.state),a=o?1:0;a<r.length;a++){var s=r[a];b(i,"function"==typeof s?s.call(n,i,e,t):s)}return i},_performComponentUpdate:function(e,t,n,r,o,i){var a=this._instance,s=a.props,u=a.state,c=a.context;a.componentWillUpdate&&a.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,a.props=t,a.state=n,a.context=r,this._updateRenderedComponent(o,i),a.componentDidUpdate&&o.getReactMountReady().enqueue(a.componentDidUpdate.bind(a,s,u,c),a)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent();if(E(r,o))y.receiveComponent(n,o,e,this._processChildContext(t));else{var i=this._rootNodeID,a=n._rootNodeID;y.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(o,this._currentElement.type);var s=y.mountComponent(this._renderedComponent,i,e,this._processChildContext(t));this._replaceNodeWithMarkupByID(a,s)}},_replaceNodeWithMarkupByID:function(e,t){
s.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,t=e.render();return __DEV__&&"undefined"==typeof t&&e.render._isMockFunction&&(t=null),t},_renderValidatedComponent:function(){var e,t=u.current;u.current=this._processChildContext(this._currentElement._context),c.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{u.current=t,c.current=null}return R(null===e||e===!1||l.isValidElement(e),"%s.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.",this.getName()||"ReactCompositeComponent"),e},attachRef:function(e,t){var n=this.getPublicInstance(),r=n.refs===S?n.refs={}:n.refs;r[e]=t.getPublicInstance()},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){return this._instance},_instantiateReactComponent:null};m.measureMethods(T,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var I={Mixin:T};o.exports=I}),__d("shouldUpdateReactComponent",["warning"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(null!=e&&null!=t){var n=typeof e,r=typeof t;if("string"===n||"number"===n)return"string"===r||"number"===r;if("object"===r&&e.type===t.type&&e.key===t.key){var o=e._owner===t._owner,i=null,a=null,u=null;return __DEV__&&(o||(null!=e._owner&&null!=e._owner.getPublicInstance()&&null!=e._owner.getPublicInstance().constructor&&(i=e._owner.getPublicInstance().constructor.displayName),null!=t._owner&&null!=t._owner.getPublicInstance()&&null!=t._owner.getPublicInstance().constructor&&(a=t._owner.getPublicInstance().constructor.displayName),null!=t.type&&null!=t.type.displayName&&(u=t.type.displayName),null!=t.type&&"string"==typeof t.type&&(u=t.type),("string"!=typeof t.type||"input"===t.type||"textarea"===t.type)&&(null!=e._owner&&e._owner._isOwnerNecessary===!1||null!=t._owner&&t._owner._isOwnerNecessary===!1)&&(null!=e._owner&&(e._owner._isOwnerNecessary=!0),null!=t._owner&&(t._owner._isOwnerNecessary=!0),s(!1,"<%s /> is being rendered by both %s and %s using the same key (%s) in the same place. Currently, this means that they don't preserve state. This behavior should be very rare so we're considering deprecating it. Please contact the React team and explain your use case so that we can take that into consideration.",u||"Unknown Component",i||"[Unknown]",a||"[Unknown]",e.key)))),o}}return!1}var s=t("warning");o.exports=a}),__d("ReactNativeTextComponent",["ReactNativeTagHandles","NativeModules","Object.assign"],function(e,t,n,r,o,i){"use strict";var a=t("ReactNativeTagHandles"),s=t("NativeModules").UIManager,u=t("Object.assign"),c=function(e){};u(c.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null},mountComponent:function(e,t,n){this._rootNodeID=e;var r=a.allocateTag();return s.createView(r,"RCTRawText",{text:this._stringText}),{rootNodeID:e,tag:r}},receiveComponent:function(e,t,n){if(e!==this._currentElement){this._currentElement=e;var r=""+e;r!==this._stringText&&(this._stringText=r,s.updateView(a.mostRecentMountedNodeHandleForRootNodeID(this._rootNodeID),"RCTRawText",{text:this._stringText}))}},unmountComponent:function(){this._currentElement=null,this._stringText=null,this._rootNodeID=null}}),o.exports=c}),__d("ResponderEventPlugin",["EventConstants","EventPluginUtils","EventPropagators","NodeHandle","ReactInstanceHandles","ResponderSyntheticEvent","ResponderTouchHistoryStore","accumulate","invariant","keyOf"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){var r=_(e)?x.startShouldSetResponder:b(e)?x.moveShouldSetResponder:e===c.topLevelTypes.topSelectionChange?x.selectionChangeShouldSetResponder:x.scrollShouldSetResponder,o=C?h._getFirstCommonAncestorID(C,t):t,i=o===C,a=f.getPooled(r,o,n);a.touchHistory=m.touchHistory,i?p.accumulateTwoPhaseDispatchesSkipTarget(a):p.accumulateTwoPhaseDispatches(a);var s=w(a);if(a.isPersistent()||a.constructor.release(a),!s||s===C)return null;var u,l=f.getPooled(x.responderGrant,s,n);if(l.touchHistory=m.touchHistory,p.accumulateDirectDispatches(l),C){var d=f.getPooled(x.responderTerminationRequest,C,n);d.touchHistory=m.touchHistory,p.accumulateDirectDispatches(d);var v=!E(d)||R(d);if(d.isPersistent()||d.constructor.release(d),v){var y=x.responderTerminate,S=f.getPooled(y,C,n);S.touchHistory=m.touchHistory,p.accumulateDirectDispatches(S),u=g(u,[l,S]),P(s)}else{var T=f.getPooled(x.responderReject,s,n);T.touchHistory=m.touchHistory,p.accumulateDirectDispatches(T),u=g(u,T)}}else u=g(u,l),P(s);return u}function s(e,t){return t&&(e===c.topLevelTypes.topScroll||T>0&&e===c.topLevelTypes.topSelectionChange||_(e)||b(e))}function u(e){var t=e.touches;if(!t||0===t.length)return!0;for(var n=0;n<t.length;n++){var r=t[n],o=r.target;if(null!==o&&void 0!==o&&0!==o){var i=h._getFirstCommonAncestorID(C,d.getRootNodeID(o));if(i===C)return!1}}return!0}var c=t("EventConstants"),l=t("EventPluginUtils"),p=t("EventPropagators"),d=t("NodeHandle"),h=t("ReactInstanceHandles"),f=t("ResponderSyntheticEvent"),m=t("ResponderTouchHistoryStore"),g=t("accumulate"),v=t("invariant"),y=t("keyOf"),_=l.isStartish,b=l.isMoveish,S=l.isEndish,R=l.executeDirectDispatch,E=l.hasDispatches,w=l.executeDispatchesInOrderStopAtTrue,C=null,T=0,I=0,P=function(e){var t=C;C=e,null!==M.GlobalResponderHandler&&M.GlobalResponderHandler.onChange(t,e)},x={startShouldSetResponder:{phasedRegistrationNames:{bubbled:y({onStartShouldSetResponder:null}),captured:y({onStartShouldSetResponderCapture:null})}},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:y({onScrollShouldSetResponder:null}),captured:y({onScrollShouldSetResponderCapture:null})}},selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:y({onSelectionChangeShouldSetResponder:null}),captured:y({onSelectionChangeShouldSetResponderCapture:null})}},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:y({onMoveShouldSetResponder:null}),captured:y({onMoveShouldSetResponderCapture:null})}},responderStart:{registrationName:y({onResponderStart:null})},responderMove:{registrationName:y({onResponderMove:null})},responderEnd:{registrationName:y({onResponderEnd:null})},responderRelease:{registrationName:y({onResponderRelease:null})},responderTerminationRequest:{registrationName:y({onResponderTerminationRequest:null})},responderGrant:{registrationName:y({onResponderGrant:null})},responderReject:{registrationName:y({onResponderReject:null})},responderTerminate:{registrationName:y({onResponderTerminate:null})}},M={getResponderID:function(){return C},eventTypes:x,extractEvents:function(e,t,n,r){_(e)?T+=1:S(e)&&(T-=1,v(T>=0,"Ended a touch event which was not counted in trackedTouchCount.")),m.recordTouchTrack(e,r);var o=s(e,n)?a(e,n,r):null,i=C&&_(e),l=C&&b(e),d=C&&S(e),h=i?x.responderStart:l?x.responderMove:d?x.responderEnd:null;if(h){var y=f.getPooled(h,C,r);y.touchHistory=m.touchHistory,p.accumulateDirectDispatches(y),o=g(o,y)}var R=C&&e===c.topLevelTypes.topTouchCancel,E=C&&!R&&S(e)&&u(r),w=R?x.responderTerminate:E?x.responderRelease:null;if(w){var O=f.getPooled(w,C,r);O.touchHistory=m.touchHistory,p.accumulateDirectDispatches(O),o=g(o,O),P(null)}var D=m.touchHistory.numberActiveTouches;return M.GlobalInteractionHandler&&D!==I&&M.GlobalInteractionHandler.onChange(D),I=D,o},GlobalResponderHandler:null,GlobalInteractionHandler:null,injection:{injectGlobalResponderHandler:function(e){M.GlobalResponderHandler=e},injectGlobalInteractionHandler:function(e){M.GlobalInteractionHandler=e}}};o.exports=M}),__d("ResponderSyntheticEvent",["SyntheticEvent"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){s.call(this,e,t,n)}var s=t("SyntheticEvent"),u={touchHistory:function(e){return null}};s.augmentClass(a,u),o.exports=a}),__d("ResponderTouchHistoryStore",["EventPluginUtils","invariant"],function(e,t,n,r,o,i){"use strict";var a=t("EventPluginUtils"),s=t("invariant"),u=a.isMoveish,c=a.isStartish,l=a.isEndish,p=20,d={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},h=function(e){return e.timeStamp||e.timestamp},f=function(e){return{touchActive:!0,startTimeStamp:h(e),startPageX:e.pageX,startPageY:e.pageY,currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:h(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:h(e)}},m=function(e,t){e.touchActive=!0,e.startTimeStamp=h(t),e.startPageX=t.pageX,e.startPageY=t.pageY,e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=h(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=h(t)},g=function(e){var t=e.identifier;s(null!=t,"Touch object is missing identifier"),t>p&&console.warn("Touch identifier "+t+" is greater than maximum supported "+p+" which causes performance issues backfilling array locations for all of the indices.")},v=function(e){var t=d.touchBank,n=e.identifier,r=t[n];__DEV__&&g(e),r?m(r,e):t[e.identifier]=f(e),d.mostRecentTimeStamp=h(e)},y=function(e){var t=d.touchBank,n=t[e.identifier];__DEV__&&(g(e),s(n,"Touch data should have been recorded on start")),n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=h(e),d.mostRecentTimeStamp=h(e)},_=function(e){var t=d.touchBank,n=t[e.identifier];__DEV__&&(g(e),s(n,"Touch data should have been recorded on start")),n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=h(e),n.touchActive=!1,d.mostRecentTimeStamp=h(e)},b={recordTouchTrack:function(e,t){var n=d.touchBank;if(u(e))t.changedTouches.forEach(y);else if(c(e))t.changedTouches.forEach(v),d.numberActiveTouches=t.touches.length,1===d.numberActiveTouches&&(d.indexOfSingleActiveTouch=t.touches[0].identifier);else if(l(e)&&(t.changedTouches.forEach(_),d.numberActiveTouches=t.touches.length,1===d.numberActiveTouches)){for(var r=0;r<n.length;r++){var o=n[r];if(null!=o&&o.touchActive){d.indexOfSingleActiveTouch=r;break}}if(__DEV__){var i=n[d.indexOfSingleActiveTouch],a=null!=i&&!!i.touchActive;s(a,"Cannot find single active touch")}}},touchHistory:d};o.exports=b}),__d("accumulate",["invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(s(null!=t,"accumulate(...): Accumulated items must be not be null or undefined."),null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n?e.concat(t):r?[e].concat(t):[e,t]}var s=t("invariant");o.exports=a}),__d("UniversalWorkerNodeHandle",["ReactNativeTagHandles","invariant"],function(e,t,n,r,o,i){var a=t("ReactNativeTagHandles"),s=t("invariant"),u={getRootNodeID:function(e){return s(void 0!==e&&null!==e&&0!==e,"No node handle defined"),a.tagToRootNodeID[e]}};o.exports=u}),__d("createReactNativeComponentClass",["ReactNativeBaseComponent"],function(e,t,n,r,o,i){"use strict";var a=t("ReactNativeBaseComponent"),s=function(e){var t=function(e){this._currentElement=e,this._rootNodeID=null,this._renderedChildren=null,this.previousFlattenedStyle=null};return t.displayName=e.uiViewClassName,t.prototype=new a(e),t.prototype.constructor=t,t};o.exports=s}),__d("ReactNativeBaseComponent",["NativeMethodsMixin","ReactNativeEventEmitter","ReactNativeStyleAttributes","ReactNativeTagHandles","ReactMultiChild","NativeModules","styleDiffer","deepFreezeAndThrowOnMutationInDev","diffRawProperties","flattenStyle","precomputeStyle","warning"],function(e,t,n,r,o,i){"use strict";var a=t("NativeMethodsMixin"),s=t("ReactNativeEventEmitter"),u=t("ReactNativeStyleAttributes"),c=t("ReactNativeTagHandles"),l=t("ReactMultiChild"),p=t("NativeModules").UIManager,d=t("styleDiffer"),h=t("deepFreezeAndThrowOnMutationInDev"),f=t("diffRawProperties"),m=t("flattenStyle"),g=t("precomputeStyle"),v=t("warning"),y=s.registrationNames,_=s.putListener,b=s.deleteAllListeners,S=function(e){this.viewConfig=e},R=function(e){var t=R._cache[e];if(t)return t;for(var n=[],r=0;e>r;r++)n[r]=r;return R._cache[e]=n,n};R._cache={},S.Mixin={getPublicInstance:function(){return this},construct:function(e){this._currentElement=e},unmountComponent:function(){b(this._rootNodeID),this.unmountChildren(),this._rootNodeID=null},initializeChildren:function(e,t,n,r){var o=this.mountChildren(e,n,r);if(o.length){for(var i=R(o.length),a=[],s=0;s<o.length;s++){var u=o[s],l=u.tag,d=u.rootNodeID;v(u&&u.rootNodeID&&u.tag,"Mount image returned does not have required data"),c.associateRootNodeIDWithMountedNodeHandle(d,l),a[s]=u.tag}p.manageChildren(t,null,null,a,i,null)}},computeUpdatedProperties:function(e,t,n){if(__DEV__)for(var r in t)t.hasOwnProperty(r)&&t[r]&&n[r]&&h(t[r]);var o=f(null,e,t,n);if(d(t.style,e.style)){var i=g(m(t.style));o=f(o,this.previousFlattenedStyle,i,u),this.previousFlattenedStyle=i}return o},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e;var o=this.computeUpdatedProperties(r.props,e.props,this.viewConfig.validAttributes);o&&p.updateView(c.mostRecentMountedNodeHandleForRootNodeID(this._rootNodeID),this.viewConfig.uiViewClassName,o),this._reconcileListenersUponUpdate(r.props,e.props),this.updateChildren(e.props.children,t,n)},_registerListenersUponCreation:function(e){for(var t in e)if(y[t]&&e[t]){var n=e[t];_(this._rootNodeID,t,n)}},_reconcileListenersUponUpdate:function(e,t){for(var n in t)y[n]&&t[n]!==e[n]&&_(this._rootNodeID,n,t[n])},mountComponent:function(e,t,n){this._rootNodeID=e;var r=c.allocateTag();this.previousFlattenedStyle={};var o=this.computeUpdatedProperties({},this._currentElement.props,this.viewConfig.validAttributes);return p.createView(r,this.viewConfig.uiViewClassName,o),this._registerListenersUponCreation(this._currentElement.props),this.initializeChildren(this._currentElement.props.children,r,t,n),{rootNodeID:e,tag:r}}},Object.assign(S.prototype,l.Mixin,S.Mixin,a),o.exports=S}),__d("NativeMethodsMixin",["NativeModules","TextInputState","findNodeHandle","flattenStyle","invariant","mergeFast","precomputeStyle"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(void 0!==t.styles){var n=e._owner||null,r=e.constructor.displayName,o="`styles` is not a supported property of `"+r+"`, did you mean `style` (singular)?";throw n&&n.constructor&&n.constructor.displayName&&(o+="\n\nCheck the `"+n.constructor.displayName+"` parent component."),new Error(o)}}var s=t("NativeModules"),u=s.POPAnimationManager,c=s.UIManager,l=t("TextInputState"),p=t("findNodeHandle"),d=t("flattenStyle"),h=t("invariant"),f=t("mergeFast"),m=t("precomputeStyle"),g=function(e,t){h(t,e+' must be called with a valid animation ID returned from POPAnimation.createAnimation, received: "'+t+'"')},v={addAnimation:function(e,t){g("addAnimation",e),u.addAnimation(p(this),e,_(this,t))},removeAnimation:function(e){g("removeAnimation",e),u.removeAnimation(p(this),e)},measure:function(e){c.measure(p(this),_(this,e))},measureLayout:function(e,t,n){c.measureLayout(p(this),e,_(this,n),_(this,t))},setNativeProps:function(e){var t=!0;for(var n in e)if("style"!==n){t=!1;break}var r=m(d(e.style)),o=null;o=t?r:r?f(e,r):e,c.updateView(p(this),this.viewConfig.uiViewClassName,o)},focus:function(){l.focusTextInput(p(this))},blur:function(){l.blurTextInput(p(this))}};if(__DEV__){var y=v;h(!y.componentWillMount&&!y.componentWillReceiveProps,"Do not override existing functions."),y.componentWillMount=function(){a(this,this.props)},y.componentWillReceiveProps=function(e){a(this,e)}}var _=function(e,t){return function(){return!t||e.isMounted&&!e.isMounted()?void 0:t.apply(e,arguments)}};o.exports=v}),__d("TextInputState",["NativeModules"],function(e,t,n,r,o,i){"use strict";var a=t("NativeModules").UIManager,s={_currentlyFocusedID:null,currentlyFocusedField:function(){return this._currentlyFocusedID},focusTextInput:function(e){this._currentlyFocusedID!==e&&null!==e&&(this._currentlyFocusedID=e,a.focus(e))},blurTextInput:function(e){this._currentlyFocusedID===e&&null!==e&&(this._currentlyFocusedID=null,a.blur(e))}};o.exports=s}),__d("findNodeHandle",["ReactCurrentOwner","ReactInstanceMap","ReactNativeTagHandles","invariant","warning"],function(e,t,n,r,o,i){"use strict";function a(e){if(__DEV__){var t=s.current;null!==t&&(p(t._warnedAboutRefsInRender,"%s is accessing findNodeHandle inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",t.getName()||"A component"),t._warnedAboutRefsInRender=!0)}if(null==e)return null;if("number"==typeof e)return e;var n=e,r=u.get(n);if(r)return c.rootNodeIDToTag[r._rootNodeID];var o=n._rootNodeID;return o?c.rootNodeIDToTag[o]:(l("object"==typeof n&&"_rootNodeID"in n||null!=n.render&&"function"==typeof n.render,"findNodeHandle(...): Argument is not a component (type: %s, keys: %s)",typeof n,Object.keys(n)),void l(!1,"findNodeHandle(...): Unable to find node handle for unmounted component."))}var s=t("ReactCurrentOwner"),u=t("ReactInstanceMap"),c=t("ReactNativeTagHandles"),l=t("invariant"),p=t("warning");o.exports=a}),__d("flattenStyle",["StyleSheetRegistry","invariant","mergeIntoFast"],function(e,t,n,r,o,i){"use strict";function a(e){return"number"==typeof e?u.getStyleByID(e):e}function s(e){if(!e)return void 0;if(c(e!==!0,"style may be false but not true"),!Array.isArray(e))return a(e);for(var t={},n=0;n<e.length;++n){var r=s(e[n]);r&&l(t,r)}return t}var u=t("StyleSheetRegistry"),c=t("invariant"),l=t("mergeIntoFast");o.exports=s}),__d("StyleSheetRegistry",[],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u={},c=1,l={},p=function(){function e(){a(this,e)}return s(e,null,[{key:"registerStyle",value:function(e){var t=++c;return __DEV__&&Object.freeze(e),u[t]=e,t}},{key:"getStyleByID",value:function(e){if(!e)return l;var t=u[e];return t?t:(console.warn("Invalid style with id `"+e+"`. Skipping ..."),l)}}]),e}();o.exports=p}),__d("mergeIntoFast",[],function(e,t,n,r,o,i){"use strict";var a=function(e,t){for(var n in t)e[n]=t[n]};o.exports=a}),__d("mergeFast",[],function(e,t,n,r,o,i){"use strict";var a=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var o in t)n[o]=t[o];return n};o.exports=a}),__d("precomputeStyle",["MatrixMath","Platform","deepFreezeAndThrowOnMutationInDev","invariant","stringifySafe"],function(e,t,n,r,o,i){"use strict";function a(e){if(!e||!e.transform)return e;m(!e.transformMatrix,"transformMatrix and transform styles cannot be used on the same component");var t=s(p({},e));return f(t),t}function s(e){var t=e.transform,n=d.createIdentityMatrix();return t.forEach(function(e){var t=Object.keys(e)[0],r=e[t];switch(__DEV__&&l(t,r,e),t){case"matrix":d.multiplyInto(n,n,r);break;case"rotate":u(n,d.reuseRotateZCommand,[c(r)]);break;case"scale":u(n,d.reuseScaleCommand,[r]);break;case"scaleX":u(n,d.reuseScaleXCommand,[r]);break;case"scaleY":u(n,d.reuseScaleYCommand,[r]);break;case"translate":u(n,d.reuseTranslate3dCommand,[r[0],r[1],r[2]||0]);break;case"translateX":u(n,d.reuseTranslate2dCommand,[r,0]);break;case"translateY":u(n,d.reuseTranslate2dCommand,[0,r]);break;default:throw new Error("Invalid transform name: "+t)}}),"android"===h.OS?p({},e,{transformMatrix:n,decomposedMatrix:d.decomposeMatrix(n)}):p({},e,{transformMatrix:n})}function u(e,t,n){var r=d.createIdentityMatrix(),o=[r].concat(n);t.apply(this,o),d.multiplyInto(e,e,r)}function c(e){var t=parseFloat(e,10);return e.indexOf("rad")>-1?t:t*Math.PI/180}function l(e,t,n){m(!t.getValue,"You passed an animated value or spring to a normal component. You need to wrap that component in an Animated. For example, replace <View /> by <Animated.View />.");var r=["matrix","translate"];switch(-1!==r.indexOf(e)&&m(Array.isArray(t),"Transform with key of %s must have an array as the value: %s",e,g(n)),e){case"matrix":m(9===t.length||16===t.length,"Matrix transform must have a length of 9 (2d) or 16 (3d). Provided matrix has a length of %s: %s",t.length,g(n));break;case"translate":break;case"rotate":m("string"==typeof t,'Transform with key of "%s" must be a string: %s',e,g(n)),m(t.indexOf("deg")>-1||t.indexOf("rad")>-1,"Rotate transform must be expressed in degrees (deg) or radians (rad): %s",g(n));break;default:m("number"==typeof t,'Transform with key of "%s" must be a number: %s',e,g(n))}}var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=t("MatrixMath"),h=t("Platform"),f=t("deepFreezeAndThrowOnMutationInDev"),m=t("invariant"),g=t("stringifySafe");o.exports=a}),__d("MatrixMath",["invariant"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s={createIdentityMatrix:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},createCopy:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]},createTranslate2d:function(e,t){var n=s.createIdentityMatrix();return s.reuseTranslate2dCommand(n,e,t),n},reuseTranslate2dCommand:function(e,t,n){e[12]=t,e[13]=n},reuseTranslate3dCommand:function(e,t,n,r){e[12]=t,e[13]=n,e[14]=r},createScale:function(e){var t=s.createIdentityMatrix();return s.reuseScaleCommand(t,e),t},reuseScaleCommand:function(e,t){e[0]=t,e[5]=t},reuseScale3dCommand:function(e,t,n,r){e[0]=t,e[5]=n,e[10]=r},reuseScaleXCommand:function(e,t){e[0]=t},reuseScaleYCommand:function(e,t){e[5]=t},reuseScaleZCommand:function(e,t){e[10]=t},reuseRotateXCommand:function(e,t){e[5]=Math.cos(t),e[6]=Math.sin(t),e[9]=-Math.sin(t),e[10]=Math.cos(t)},reuseRotateYCommand:function(e,t){e[0]=Math.cos(t),e[2]=-Math.sin(t),e[8]=Math.sin(t),e[10]=Math.cos(t)},reuseRotateZCommand:function(e,t){e[0]=Math.cos(t),e[1]=Math.sin(t),e[4]=-Math.sin(t),e[5]=Math.cos(t)},createRotateZ:function(e){var t=s.createIdentityMatrix();return s.reuseRotateZCommand(t,e),t},multiplyInto:function(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],p=t[8],d=t[9],h=t[10],f=t[11],m=t[12],g=t[13],v=t[14],y=t[15],_=n[0],b=n[1],S=n[2],R=n[3];e[0]=_*r+b*s+S*p+R*m,e[1]=_*o+b*u+S*d+R*g,e[2]=_*i+b*c+S*h+R*v,e[3]=_*a+b*l+S*f+R*y,_=n[4],b=n[5],S=n[6],R=n[7],e[4]=_*r+b*s+S*p+R*m,e[5]=_*o+b*u+S*d+R*g,e[6]=_*i+b*c+S*h+R*v,e[7]=_*a+b*l+S*f+R*y,_=n[8],b=n[9],S=n[10],R=n[11],e[8]=_*r+b*s+S*p+R*m,e[9]=_*o+b*u+S*d+R*g,e[10]=_*i+b*c+S*h+R*v,e[11]=_*a+b*l+S*f+R*y,_=n[12],b=n[13],S=n[14],R=n[15],e[12]=_*r+b*s+S*p+R*m,e[13]=_*o+b*u+S*d+R*g,e[14]=_*i+b*c+S*h+R*v,e[15]=_*a+b*l+S*f+R*y},determinant:function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=e[6],u=e[7],c=e[8],l=e[9],p=e[10],d=e[11],h=e[12],f=e[13],m=e[14],g=e[15];return o*s*l*h-r*u*l*h-o*a*p*h+n*u*p*h+r*a*d*h-n*s*d*h-o*s*c*f+r*u*c*f+o*i*p*f-t*u*p*f-r*i*d*f+t*s*d*f+o*a*c*m-n*u*c*m-o*i*l*m+t*u*l*m+n*i*d*m-t*a*d*m-r*a*c*g+n*s*c*g+r*i*l*g-t*s*l*g-n*i*p*g+t*a*p*g},inverse:function(e){var t=s.determinant(e);if(!t)return e;var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],u=e[5],c=e[6],l=e[7],p=e[8],d=e[9],h=e[10],f=e[11],m=e[12],g=e[13],v=e[14],y=e[15];return[(c*f*g-l*h*g+l*d*v-u*f*v-c*d*y+u*h*y)/t,(i*h*g-o*f*g-i*d*v+r*f*v+o*d*y-r*h*y)/t,(o*l*g-i*c*g+i*u*v-r*l*v-o*u*y+r*c*y)/t,(i*c*d-o*l*d-i*u*h+r*l*h+o*u*f-r*c*f)/t,(l*h*m-c*f*m-l*p*v+a*f*v+c*p*y-a*h*y)/t,(o*f*m-i*h*m+i*p*v-n*f*v-o*p*y+n*h*y)/t,(i*c*m-o*l*m-i*a*v+n*l*v+o*a*y-n*c*y)/t,(o*l*p-i*c*p+i*a*h-n*l*h-o*a*f+n*c*f)/t,(u*f*m-l*d*m+l*p*g-a*f*g-u*p*y+a*d*y)/t,(i*d*m-r*f*m-i*p*g+n*f*g+r*p*y-n*d*y)/t,(r*l*m-i*u*m+i*a*g-n*l*g-r*a*y+n*u*y)/t,(i*u*p-r*l*p-i*a*d+n*l*d+r*a*f-n*u*f)/t,(c*d*m-u*h*m-c*p*g+a*h*g+u*p*v-a*d*v)/t,(r*h*m-o*d*m+o*p*g-n*h*g-r*p*v+n*d*v)/t,(o*u*m-r*c*m-o*a*g+n*c*g+r*a*v-n*u*v)/t,(r*c*p-o*u*p+o*a*d-n*c*d-r*a*h+n*u*h)/t]},transpose:function(e){return[e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15]]},multiplyVectorByMatrix:function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];return[n*t[0]+r*t[4]+o*t[8]+i*t[12],n*t[1]+r*t[5]+o*t[9]+i*t[13],n*t[2]+r*t[6]+o*t[10]+i*t[14],n*t[3]+r*t[7]+o*t[11]+i*t[15]]},v3Length:function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])},v3Normalize:function(e,t){var n=1/(t||s.v3Length(e));return[e[0]*n,e[1]*n,e[2]*n]},v3Dot:function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},v3Combine:function(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]},v3Cross:function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]},quaternionToDegreesXYZ:function(e,t,n){var r=e[0],o=e[1],i=e[2],a=e[3],u=a*a,c=r*r,l=o*o,p=i*i,d=r*o+i*a,h=u+c+l+p,f=180/Math.PI;return d>.49999*h?[0,2*Math.atan2(r,a)*f,90]:-.49999*h>d?[0,-2*Math.atan2(r,a)*f,-90]:[s.roundTo3Places(Math.atan2(2*r*a-2*o*i,1-2*c-2*p)*f),s.roundTo3Places(Math.atan2(2*o*a-2*r*i,1-2*l-2*p)*f),s.roundTo3Places(Math.asin(2*r*o+2*i*a)*f)]},roundTo3Places:function(e){var t=e.toString().split("e");return.001*Math.round(t[0]+"e"+(t[1]?+t[1]-3:3))},decomposeMatrix:function(e){a(16===e.length,"Matrix decomposition needs a list of 3d matrix values, received %s",e);var t=[],n=[],r=[],o=[],i=[];if(e[15]){for(var u=[],c=[],l=0;4>l;l++){u.push([]);for(var p=0;4>p;p++){var d=e[4*l+p]/e[15];u[l].push(d),c.push(3===p?0:d)}}if(c[15]=1,s.determinant(c)){if(0!==u[0][3]||0!==u[1][3]||0!==u[2][3])var h=[u[0][3],u[1][3],u[2][3],u[3][3]],f=s.inverse3x3(c),m=s.transpose4x4(f),t=s.multiplyVectorByMatrix(h,m);else t[0]=t[1]=t[2]=0,t[3]=1;for(var l=0;3>l;l++)i[l]=u[3][l];var g=[];for(l=0;3>l;l++)g[l]=[u[l][0],u[l][1],u[l][2]];r[0]=s.v3Length(g[0]),g[0]=s.v3Normalize(g[0],r[0]),o[0]=s.v3Dot(g[0],g[1]),g[1]=s.v3Combine(g[1],g[0],1,-o[0]),o[0]=s.v3Dot(g[0],g[1]),g[1]=s.v3Combine(g[1],g[0],1,-o[0]),r[1]=s.v3Length(g[1]),g[1]=s.v3Normalize(g[1],r[1]),o[0]/=r[1],o[1]=s.v3Dot(g[0],g[2]),g[2]=s.v3Combine(g[2],g[0],1,-o[1]),o[2]=s.v3Dot(g[1],g[2]),g[2]=s.v3Combine(g[2],g[1],1,-o[2]),r[2]=s.v3Length(g[2]),g[2]=s.v3Normalize(g[2],r[2]),o[1]/=r[2],o[2]/=r[2];var v=s.v3Cross(g[1],g[2]);if(s.v3Dot(g[0],v)<0)for(l=0;3>l;l++)r[l]*=-1,g[l][0]*=-1,g[l][1]*=-1,g[l][2]*=-1;n[0]=.5*Math.sqrt(Math.max(1+g[0][0]-g[1][1]-g[2][2],0)),n[1]=.5*Math.sqrt(Math.max(1-g[0][0]+g[1][1]-g[2][2],0)),n[2]=.5*Math.sqrt(Math.max(1-g[0][0]-g[1][1]+g[2][2],0)),n[3]=.5*Math.sqrt(Math.max(1+g[0][0]+g[1][1]+g[2][2],0)),g[2][1]>g[1][2]&&(n[0]=-n[0]),g[0][2]>g[2][0]&&(n[1]=-n[1]),g[1][0]>g[0][1]&&(n[2]=-n[2]);var y;return y=n[0]<.001&&n[0]>=0&&n[1]<.001&&n[1]>=0?[0,0,s.roundTo3Places(180*Math.atan2(g[0][1],g[0][0])/Math.PI)]:s.quaternionToDegreesXYZ(n,u,g),{rotationDegrees:y,perspective:t,quaternion:n,scale:r,skew:o,translation:i,rotate:y[2],scaleX:r[0],scaleY:r[1],translateX:i[0],translateY:i[1]}}}}};o.exports=s}),__d("deepFreezeAndThrowOnMutationInDev",[],function(e,t,n,r,o,i){"use strict";function a(e){if(__DEV__){if("object"!=typeof e||null===e||Object.isFrozen(e)||Object.isSealed(e))return;for(var t in e)e.hasOwnProperty(t)&&(e.__defineGetter__(t,u.bind(null,e[t])),e.__defineSetter__(t,s.bind(null,t)),a(e[t]));Object.freeze(e),Object.seal(e)}}function s(e,t){throw Error("You attempted to set the key `"+e+"` with the value `"+JSON.stringify(t)+"` on an object that is meant to be immutable and has been frozen.")}function u(e){return e}o.exports=a}),__d("ReactNativeEventEmitter",["EventPluginHub","ReactEventEmitterMixin","ReactNativeTagHandles","NodeHandle","EventConstants","merge","warning"],function(e,t,n,r,o,i){"use strict";var a=t("EventPluginHub"),s=t("ReactEventEmitterMixin"),u=t("ReactNativeTagHandles"),c=t("NodeHandle"),l=t("EventConstants"),p=t("merge"),d=t("warning"),h=l.topLevelTypes,f={},m=function(e,t){for(var n=[],r=0;r<t.length;r++)n.push(e[t[r]]);return n},g=function(e,t){for(var n=[],r=e,o=0;o<t.length;o++){var i=t[o];n.push(e[i]),r[i]=null}for(var a=0,s=0;s<r.length;s++){var u=r[s];null!==u&&(r[a++]=u)}return r.length=a,n},v=p(s,{registrationNames:a.registrationNameModules,putListener:a.putListener,getListener:a.getListener,deleteListener:a.deleteListener,deleteAllListeners:a.deleteAllListeners,_receiveRootNodeIDEvent:function(e,t,n){var r=n||f;v.handleTopLevel(t,e,e,r)},receiveEvent:function(e,t,n){var r=u.tagToRootNodeID[e];v._receiveRootNodeIDEvent(r,t,n)},receiveTouches:function(e,t,n){for(var r=e===h.topTouchEnd||e===h.topTouchCancel?g(t,n):m(t,n),o=0;o<r.length;o++){var i=r[o];i.changedTouches=r,i.touches=t;var a=i,s=null,l=a.target;null!==l&&void 0!==l&&(l<u.tagsStartAt?__DEV__&&d(!1,"A view is reporting that a touch occured on tag zero."):s=c.getRootNodeID(l)),v._receiveRootNodeIDEvent(s,e,a)}}});o.exports=v}),__d("ReactEventEmitterMixin",["EventPluginHub"],function(e,t,n,r,o,i){"use strict";function a(e){s.enqueueEvents(e),s.processEventQueue()}var s=t("EventPluginHub"),u={handleTopLevel:function(e,t,n,r){var o=s.extractEvents(e,t,n,r);a(o)}};o.exports=u}),__d("ReactNativeStyleAttributes",["ImageStylePropTypes","TextStylePropTypes","ViewStylePropTypes","keyMirror","matricesDiffer","sizesDiffer"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("ImageStylePropTypes"),u=t("TextStylePropTypes"),c=t("ViewStylePropTypes"),l=t("keyMirror"),p=t("matricesDiffer"),d=t("sizesDiffer"),h=a({},l(c),l(u),l(s));h.transformMatrix={diff:p},h.shadowOffset={diff:d},h.decomposedMatrix="decomposedMatrix",o.exports=h}),__d("ImageStylePropTypes",["ImageResizeMode","LayoutPropTypes","ReactPropTypes","TransformPropTypes"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("ImageResizeMode"),u=t("LayoutPropTypes"),c=t("ReactPropTypes"),l=t("TransformPropTypes"),p=a({},u,l,{resizeMode:c.oneOf(Object.keys(s)),backgroundColor:c.string,borderColor:c.string,borderWidth:c.number,borderRadius:c.number,tintColor:c.string,opacity:c.number});o.exports=p}),__d("ImageResizeMode",["keyMirror"],function(e,t,n,r,o,i){"use strict";var a=t("keyMirror"),s=a({contain:null,cover:null,stretch:null});o.exports=s}),__d("LayoutPropTypes",["ReactPropTypes"],function(e,t,n,r,o,i){"use strict";var a=t("ReactPropTypes"),s={width:a.number,height:a.number,top:a.number,left:a.number,right:a.number,bottom:a.number,margin:a.number,marginVertical:a.number,marginHorizontal:a.number,marginTop:a.number,marginBottom:a.number,marginLeft:a.number,marginRight:a.number,padding:a.number,paddingVertical:a.number,paddingHorizontal:a.number,paddingTop:a.number,paddingBottom:a.number,paddingLeft:a.number,paddingRight:a.number,borderWidth:a.number,borderTopWidth:a.number,borderRightWidth:a.number,borderBottomWidth:a.number,borderLeftWidth:a.number,position:a.oneOf(["absolute","relative"]),flexDirection:a.oneOf(["row","column"]),flexWrap:a.oneOf(["wrap","nowrap"]),justifyContent:a.oneOf(["flex-start","flex-end","center","space-between","space-around"]),alignItems:a.oneOf(["flex-start","flex-end","center","stretch"]),alignSelf:a.oneOf(["auto","flex-start","flex-end","center","stretch"]),flex:a.number};o.exports=s}),__d("ReactPropTypes",["ReactElement","ReactFragment","ReactPropTypeLocationNames","emptyFunction"],function(e,t,n,r,o,i){"use strict";function a(e){function t(t,n,r,o,i){if(o=o||w,null==n[r]){var a=R[i];return t?new Error("Required "+a+" `"+r+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function s(e){function t(t,n,r,o){var i=t[n],a=y(i);if(a!==e){var s=R[o],u=_(i);
return new Error("Invalid "+s+" `"+n+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `"+e+"`."))}return null}return a(t)}function u(){return a(E.thatReturns(null))}function c(e){function t(t,n,r,o){var i=t[n];if(!Array.isArray(i)){var a=R[o],s=y(i);return new Error("Invalid "+a+" `"+n+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an array."))}for(var u=0;u<i.length;u++){var c=e(i,u,r,o);if(c instanceof Error)return c}return null}return a(t)}function l(){function e(e,t,n,r){if(!b.isValidElement(e[t])){var o=R[r];return new Error("Invalid "+o+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactElement."))}return null}return a(e)}function p(e){function t(t,n,r,o){if(!(t[n]instanceof e)){var i=R[o],a=e.name||w;return new Error("Invalid "+i+" `"+n+"` supplied to "+("`"+r+"`, expected instance of `"+a+"`."))}return null}return a(t)}function d(e){function t(t,n,r,o){for(var i=t[n],a=0;a<e.length;a++)if(i===e[a])return null;var s=R[o],u=JSON.stringify(e);return new Error("Invalid "+s+" `"+n+"` of value `"+i+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return a(t)}function h(e){function t(t,n,r,o){var i=t[n],a=y(i);if("object"!==a){var s=R[o];return new Error("Invalid "+s+" `"+n+"` of type "+("`"+a+"` supplied to `"+r+"`, expected an object."))}for(var u in i)if(i.hasOwnProperty(u)){var c=e(i,u,r,o);if(c instanceof Error)return c}return null}return a(t)}function f(e){function t(t,n,r,o){for(var i=0;i<e.length;i++){var a=e[i];if(null==a(t,n,r,o))return null}var s=R[o];return new Error("Invalid "+s+" `"+n+"` supplied to "+("`"+r+"`."))}return a(t)}function m(){function e(e,t,n,r){if(!v(e[t])){var o=R[r];return new Error("Invalid "+o+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return a(e)}function g(e){function t(t,n,r,o){var i=t[n],a=y(i);if("object"!==a){var s=R[o];return new Error("Invalid "+s+" `"+n+"` of type `"+a+"` "+("supplied to `"+r+"`, expected `object`."))}for(var u in e){var c=e[u];if(c){var l=c(i,u,r,o);if(l)return l}}return null}return a(t)}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||b.isValidElement(e))return!0;e=S.extractIfFragment(e);for(var t in e)if(!v(e[t]))return!1;return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function _(e){var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}var b=t("ReactElement"),S=t("ReactFragment"),R=t("ReactPropTypeLocationNames"),E=t("emptyFunction"),w="<<anonymous>>",C=l(),T=m(),I={array:s("array"),bool:s("boolean"),func:s("function"),number:s("number"),object:s("object"),string:s("string"),any:u(),arrayOf:c,element:C,instanceOf:p,node:T,objectOf:h,oneOf:d,oneOfType:f,shape:g};o.exports=I}),__d("TransformPropTypes",["ReactPropTypes"],function(e,t,n,r,o,i){"use strict";var a=t("ReactPropTypes"),s={transform:a.arrayOf(a.oneOfType([a.shape({rotate:a.string}),a.shape({scaleX:a.number}),a.shape({scaleY:a.number}),a.shape({translateX:a.number}),a.shape({translateY:a.number})])),transformMatrix:a.arrayOf(a.number),rotation:a.number,scaleX:a.number,scaleY:a.number,translateX:a.number,translateY:a.number};o.exports=s}),__d("TextStylePropTypes",["ReactPropTypes","ViewStylePropTypes"],function(e,t,n,r,o,i){"use strict";for(var a=t("ReactPropTypes"),s=t("ViewStylePropTypes"),u=Object.assign(Object.create(s),{fontFamily:a.string,fontSize:a.number,fontWeight:a.oneOf(["normal","bold","100","200","300","400","500","600","700","800","900"]),fontStyle:a.oneOf(["normal","italic"]),lineHeight:a.number,color:a.string,containerBackgroundColor:a.string,textAlign:a.oneOf(["auto","left","right","center"]),writingDirection:a.oneOf(["auto","ltr","rtl"]),letterSpacing:a.number}),c=Object.keys({padding:null,paddingTop:null,paddingLeft:null,paddingRight:null,paddingBottom:null,paddingVertical:null,paddingHorizontal:null}),l=0;l<c.length;l++)delete u[c[l]];o.exports=u}),__d("ViewStylePropTypes",["LayoutPropTypes","ReactPropTypes","TransformPropTypes"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("LayoutPropTypes"),u=t("ReactPropTypes"),c=t("TransformPropTypes"),l=a({},s,c,{backgroundColor:u.string,borderColor:u.string,borderTopColor:u.string,borderRightColor:u.string,borderBottomColor:u.string,borderLeftColor:u.string,borderRadius:u.number,borderTopLeftRadius:u.number,borderTopRightRadius:u.number,borderBottomLeftRadius:u.number,borderBottomRightRadius:u.number,opacity:u.number,overflow:u.oneOf(["visible","hidden"]),shadowColor:u.string,shadowOffset:u.shape({width:u.number,height:u.number}),shadowOpacity:u.number,shadowRadius:u.number});o.exports=l}),__d("matricesDiffer",[],function(e,t,n,r,o,i){"use strict";var a=function(e,t){return e===t?!1:!e||!t||e[12]!==t[12]||e[13]!==t[13]||e[14]!==t[14]||e[5]!==t[5]||e[10]!==t[10]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[6]!==t[6]||e[7]!==t[7]||e[8]!==t[8]||e[9]!==t[9]||e[11]!==t[11]||e[15]!==t[15]};o.exports=a}),__d("sizesDiffer",[],function(e,t,n,r,o,i){"use strict";var a={width:void 0,height:void 0},s=function(e,t){return e=e||a,t=t||a,e!==t&&(e.width!==t.width||e.height!==t.height)};o.exports=s}),__d("ReactMultiChild",["ReactComponentEnvironment","ReactMultiChildUpdateTypes","ReactReconciler","ReactChildReconciler"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){v.push({parentID:e,parentNode:null,type:h.INSERT_MARKUP,markupIndex:y.push(t)-1,textContent:null,fromIndex:null,toIndex:n})}function s(e,t,n){v.push({parentID:e,parentNode:null,type:h.MOVE_EXISTING,markupIndex:null,textContent:null,fromIndex:t,toIndex:n})}function u(e,t){v.push({parentID:e,parentNode:null,type:h.REMOVE_NODE,markupIndex:null,textContent:null,fromIndex:t,toIndex:null})}function c(e,t){v.push({parentID:e,parentNode:null,type:h.TEXT_CONTENT,markupIndex:null,textContent:t,fromIndex:null,toIndex:null})}function l(){v.length&&(d.processChildrenUpdates(v,y),p())}function p(){v.length=0,y.length=0}var d=t("ReactComponentEnvironment"),h=t("ReactMultiChildUpdateTypes"),f=t("ReactReconciler"),m=t("ReactChildReconciler"),g=0,v=[],y=[],_={Mixin:{mountChildren:function(e,t,n){var r=m.instantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=this._rootNodeID+a,c=f.mountComponent(s,u,t,n);s._mountIndex=i,o.push(c),i++}return o},updateTextContent:function(e){g++;var t=!0;try{var n=this._renderedChildren;m.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setTextContent(e),t=!1}finally{g--,g||(t?p():l())}},updateChildren:function(e,t,n){g++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{g--,g||(r?p():l())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,o=m.updateChildren(r,e,t,n);if(this._renderedChildren=o,o||r){var i,a=0,s=0;for(i in o)if(o.hasOwnProperty(i)){var u=r&&r[i],c=o[i];u===c?(this.moveChild(u,s,a),a=Math.max(u._mountIndex,a),u._mountIndex=s):(u&&(a=Math.max(u._mountIndex,a),this._unmountChildByName(u,i)),this._mountChildByNameAtIndex(c,i,s,t,n)),s++}for(i in r)!r.hasOwnProperty(i)||o&&o.hasOwnProperty(i)||this._unmountChildByName(r[i],i)}},unmountChildren:function(){var e=this._renderedChildren;m.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&s(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){a(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){u(this._rootNodeID,e._mountIndex)},setTextContent:function(e){c(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,o){var i=this._rootNodeID+t,a=f.mountComponent(e,i,r,o);e._mountIndex=n,this.createChild(e,a)},_unmountChildByName:function(e,t){this.removeChild(e),e._mountIndex=null}}};o.exports=_}),__d("ReactChildReconciler",["ReactReconciler","flattenChildren","instantiateReactComponent","shouldUpdateReactComponent"],function(e,t,n,r,o,i){"use strict";var a=t("ReactReconciler"),s=t("flattenChildren"),u=t("instantiateReactComponent"),c=t("shouldUpdateReactComponent"),l={instantiateChildren:function(e,t,n){var r=s(e);for(var o in r)if(r.hasOwnProperty(o)){var i=r[o],a=u(i,null);r[o]=a}return r},updateChildren:function(e,t,n,r){var o=s(t);if(!o&&!e)return null;var i;for(i in o)if(o.hasOwnProperty(i)){var l=e&&e[i],p=l&&l._currentElement,d=o[i];if(c(p,d))a.receiveComponent(l,d,n,r),o[i]=l;else{l&&a.unmountComponent(l,i);var h=u(d,null);o[i]=h}}for(i in e)!e.hasOwnProperty(i)||o&&o.hasOwnProperty(i)||a.unmountComponent(e[i]);return o},unmountChildren:function(e){for(var t in e){var n=e[t];a.unmountComponent(n)}}};o.exports=l}),__d("flattenChildren",["traverseAllChildren","warning"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){var r=e,o=!r.hasOwnProperty(n);__DEV__&&c(o,"flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",n),o&&null!=t&&(r[n]=t)}function s(e){if(null==e)return e;var t={};return u(e,a,t),t}var u=t("traverseAllChildren"),c=t("warning");o.exports=s}),__d("styleDiffer",["deepDiffer"],function(e,t,n,r,o,i){"use strict";function a(e,t){return!s(e,t)}function s(e,t){if(!e)return!t;if(!t)return!e;if(typeof e!=typeof t)return!1;if("number"==typeof e)return e===t;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!s(e[n],t[n]))return!1;return!0}for(var r in e)if(u(e[r],t[r]))return!1;for(var r in t)if(!e.hasOwnProperty(r))return!1;return!0}var u=t("deepDiffer");o.exports=a}),__d("deepDiffer",[],function(e,t,n,r,o,i){"use strict";var a=function(e,t){if(e===t)return!1;if("function"==typeof e&&"function"==typeof t)return!1;if("object"!=typeof e||null===e)return e!==t;if("object"!=typeof t||null===t)return!0;if(e.constructor!==t.constructor)return!0;if(Array.isArray(e)){var n=e.length;if(t.length!==n)return!0;for(var r=0;n>r;r++)if(a(e[r],t[r]))return!0}else{for(var o in e)if(a(e[o],t[o]))return!0;for(var i in t)if(void 0===e[i]&&void 0!==t[i])return!0}return!1};o.exports=a}),__d("diffRawProperties",[],function(e,t,n,r,o,i){"use strict";function a(e,t,n,r){var o,i,a,s,u;if(n)for(var c in n)o=r[c],o&&(a=t&&t[c],i=n[c],"function"==typeof a&&(a=!0),"function"==typeof i&&(i=!0),a!==i&&(s="object"!=typeof i||null===i,u=s||!a||o.diff&&o.diff(a,i),u&&(e=e||{},e[c]=i)));if(t)for(var c in t)o=r[c],o&&(e&&void 0!==e[c]||(a=t[c],i=n&&n[c],"function"==typeof a&&(a=!0),"function"==typeof i&&(i=!0),a!==i&&(void 0===i&&(i=null),s="object"!=typeof i||null===i,u=s&&a!==i||o.diff&&o.diff(a,i),u&&(e=e||{},e[c]=i))));return e}o.exports=a}),__d("RCTEventEmitter",["ReactNativeEventEmitter"],function(e,t,n,r,o,i){"use strict";var a=t("ReactNativeEventEmitter");o.exports=a}),__d("RCTLog",["invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("invariant"),c={log:"log",info:"info",warn:"warn",error:"error",mustfix:"error"},l=function(){function t(){a(this,t)}return s(t,null,[{key:"logIfNoNativeHook",value:function(){var t=Array.prototype.slice.call(arguments),n=t.shift(),r=c[n];return u(r,'Level "'+n+'" not one of '+Object.keys(c)),"undefined"==typeof e.nativeLoggingHook&&console[r].apply(console,t),!0}}]),t}();o.exports=l}),__d("RCTJSTimers",["JSTimersExecution"],function(e,t,n,r,o,i){"use strict";var a=t("JSTimersExecution"),s=a;o.exports=s}),__d("deprecated",["Object.assign","warning"],function(e,t,n,r,o,i){"use strict";function a(e,t,n,r,o){var i=!1;if(__DEV__){var a=function(){return u(i,"%s.%s will be deprecated in a future version. Use %s.%s instead.",e,t,e,n),i=!0,o.apply(r,arguments)};return a.displayName=e+"_"+t,s(a,o)}return o}var s=t("Object.assign"),u=t("warning");o.exports=a}),__d("onlyChild",["ReactElement","invariant"],function(e,t,n,r,o,i){"use strict";function a(e){return u(s.isValidElement(e),"onlyChild must be passed a children with exactly one child."),e}var s=t("ReactElement"),u=t("invariant");o.exports=a}),__d("ActivityIndicatorIOS",["NativeMethodsMixin","ReactPropTypes","React","StyleSheet","View","requireNativeComponent","verifyPropTypes"],function(e,t,n,r,o,i){"use strict";function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var s=t("NativeMethodsMixin"),u=t("ReactPropTypes"),c=t("React"),l=t("StyleSheet"),p=t("View"),d=t("requireNativeComponent"),h=t("verifyPropTypes"),f="#999999",m=c.createClass({mixins:[s],propTypes:{animating:u.bool,color:u.string,hidesWhenStopped:u.bool,size:u.oneOf(["small","large"]),onLayout:u.func},getDefaultProps:function(){return{animating:!0,color:f,hidesWhenStopped:!0,size:"small"}},render:function(){var e=this.props,t=e.onLayout,n=e.style,r=a(e,["onLayout","style"]),o="large"===this.props.size?g.sizeLarge:g.sizeSmall;return c.createElement(p,{onLayout:t,style:[g.container,o,n]},c.createElement(v,r))}}),g=l.create({container:{alignItems:"center",justifyContent:"center"},sizeSmall:{height:20},sizeLarge:{height:36}}),v=d("RCTActivityIndicatorView",null);if(__DEV__){var y={activityIndicatorViewStyle:!0};h(m,v.viewConfig,y)}o.exports=m}),__d("StyleSheet",["StyleSheetRegistry","StyleSheetValidation"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("StyleSheetRegistry"),c=t("StyleSheetValidation"),l=function(){function e(){a(this,e)}return s(e,null,[{key:"create",value:function(e){var t={};for(var n in e)c.validateStyle(n,e),t[n]=u.registerStyle(e[n]);return t}}]),e}();o.exports=l}),__d("StyleSheetValidation",["ImageStylePropTypes","ReactPropTypeLocations","TextStylePropTypes","ViewStylePropTypes","invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("ImageStylePropTypes"),c=t("ReactPropTypeLocations"),l=t("TextStylePropTypes"),p=t("ViewStylePropTypes"),d=t("invariant"),h=function(){function e(){a(this,e)}return s(e,null,[{key:"validateStyleProp",value:function(e,t,n){if(__DEV__){if(void 0===m[e]){var r='"'+e+'" is not a valid style property.',o="\nValid style props: "+JSON.stringify(Object.keys(m),null," ");f(r,t,n,o)}var i=m[e](t,e,n,c.prop);i&&f(i.message,t,n)}}},{key:"validateStyle",value:function(t,n){if(__DEV__)for(var r in n[t])e.validateStyleProp(r,n[t],"StyleSheet "+t)}},{key:"addValidStylePropTypes",value:function(e){for(var t in e)d(void 0===m[t]||m[t]===e[t],'Attemped to redefine existing style prop type "'+t+'".'),m[t]=e[t]}}]),e}(),f=function(e,t,n,r){d(!1,e+"\n"+(n||"<<unknown>>")+": "+JSON.stringify(t,null," ")+(r||""))},m={};h.addValidStylePropTypes(u),h.addValidStylePropTypes(l),h.addValidStylePropTypes(p),o.exports=h}),__d("View",["NativeMethodsMixin","ReactPropTypes","NativeModules","React","ReactNativeStyleAttributes","ReactNativeViewAttributes","StyleSheetPropType","ViewStylePropTypes","createReactNativeComponentClass"],function(e,t,n,r,o,i){"use strict";var a=t("NativeMethodsMixin"),s=t("ReactPropTypes"),u=t("NativeModules").UIManager,c=t("React"),l=t("ReactNativeStyleAttributes"),p=t("ReactNativeViewAttributes"),d=t("StyleSheetPropType"),h=t("ViewStylePropTypes"),f=t("createReactNativeComponentClass"),m=d(h),g=["none","button","link","header","search","image","selected","plays","key","text","summary","disabled","frequentUpdates","startsMedia","adjustable","allowsDirectInteraction","pageTurn"],v=c.createClass({mixins:[a],viewConfig:{uiViewClassName:"RCTView",validAttributes:p.RCTView},propTypes:{accessible:s.bool,accessibilityLabel:s.string,accessibilityTraits:s.oneOfType([s.oneOf(g),s.arrayOf(s.oneOf(g))]),onAcccessibilityTap:s.func,onMagicTap:s.func,testID:s.string,onMoveShouldSetResponder:s.func,onResponderGrant:s.func,onResponderMove:s.func,onResponderReject:s.func,onResponderRelease:s.func,onResponderTerminate:s.func,onResponderTerminationRequest:s.func,onStartShouldSetResponder:s.func,onStartShouldSetResponderCapture:s.func,onLayout:s.func,pointerEvents:s.oneOf(["box-none","none","box-only","auto"]),style:m,removeClippedSubviews:s.bool,renderToHardwareTextureAndroid:s.bool},render:function(){return c.createElement(y,this.props)}}),y=f({validAttributes:p.RCTView,uiViewClassName:"RCTView"});if(y.propTypes=v.propTypes,__DEV__){var _=u.viewConfigs&&u.viewConfigs.RCTView||{};for(var b in _.nativeProps){var S=v;if(!S.propTypes[b]&&!l[b])throw new Error("View is missing propType for native prop `"+b+"`")}}var R=y;__DEV__&&(R=v),o.exports=R}),__d("ReactNativeViewAttributes",["merge"],function(e,t,n,r,o,i){"use strict";var a=t("merge"),s={};s.UIView={pointerEvents:!0,accessible:!0,accessibilityLabel:!0,accessibilityTraits:!0,testID:!0,onLayout:!0,onAccessibilityTap:!0,onMagicTap:!0},s.RCTView=a(s.UIView,{removeClippedSubviews:!0}),o.exports=s}),__d("StyleSheetPropType",["createStrictShapeTypeChecker","flattenStyle"],function(e,t,n,r,o,i){"use strict";function a(e){var t=s(e);return function(e,n,r,o){var i=e;return e[n]&&(i={},i[n]=u(e[n])),t(i,n,r,o)}}var s=t("createStrictShapeTypeChecker"),u=t("flattenStyle");o.exports=a}),__d("createStrictShapeTypeChecker",["ReactPropTypeLocationNames","invariant","merge"],function(e,t,n,r,o,i){"use strict";function a(e){function t(t,n,r,o,i){if(!n[r])return void(t&&u(!1,"Required object `"+r+"` was not specified in "+("`"+o+"`.")));var a=n[r],l=typeof a,p=i&&s[i]||"(unknown)";"object"!==l&&u(!1,"Invalid "+p+" `"+r+"` of type `"+l+"` "+("supplied to `"+o+"`, expected `object`."));var d=c(n[r],e);for(var h in d){var f=e[h];f||u(!1,"Invalid props."+r+" key `"+h+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(n[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(a,h,o,i);m&&u(!1,m.message+"\nBad object: "+JSON.stringify(n[r],null," "))}}function n(e,n,r,o){return t(!1,e,n,r,o)}return n.isRequired=t.bind(null,!0),n}var s=t("ReactPropTypeLocationNames"),u=t("invariant"),c=t("merge");o.exports=a}),__d("requireNativeComponent",["NativeModules","UnimplementedView","createReactNativeComponentClass","deepDiffer","insetsDiffer","pointsDiffer","matricesDiffer","sizesDiffer","verifyPropTypes","warning"],function(e,t,n,r,o,i){"use strict";function a(e,t){var n=u[e];if(!n||!n.NativeProps)return v(!1,'Native component for "%s" does not exist',e),c;var r=s({},u.RCTView.NativeProps,n.NativeProps);n.uiViewClassName=e,n.validAttributes={};for(var o in r){var i=y[r[o]]||p;n.validAttributes[o]={diff:i}}return __DEV__&&t&&g(t,n),l(n)}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=t("NativeModules").UIManager,c=t("UnimplementedView"),l=t("createReactNativeComponentClass"),p=t("deepDiffer"),d=t("insetsDiffer"),h=t("pointsDiffer"),f=t("matricesDiffer"),m=t("sizesDiffer"),g=t("verifyPropTypes"),v=t("warning"),y={CATransform3D:f,CGPoint:h,CGSize:m,UIEdgeInsets:d};o.exports=a}),__d("UnimplementedView",["React","StyleSheet","View"],function(e,t,n,r,o,i){"use strict";var a=t("React"),s=t("StyleSheet"),u=t("View"),c=a.createClass({setNativeProps:function(){},render:function(){return a.createElement(u,{style:[l.unimplementedView,this.props.style]},this.props.children)}}),l=s.create({unimplementedView:{borderWidth:1,borderColor:"red",alignSelf:"flex-start"}});o.exports=c}),__d("insetsDiffer",[],function(e,t,n,r,o,i){"use strict";var a={top:void 0,left:void 0,right:void 0,bottom:void 0},s=function(e,t){return e=e||a,t=t||a,e!==t&&(e.top!==t.top||e.left!==t.left||e.right!==t.right||e.bottom!==t.bottom)};o.exports=s}),__d("pointsDiffer",[],function(e,t,n,r,o,i){"use strict";var a={x:void 0,y:void 0},s=function(e,t){return e=e||a,t=t||a,e!==t&&(e.x!==t.x||e.y!==t.y)};o.exports=s}),__d("verifyPropTypes",["ReactNativeStyleAttributes","View"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){if(t){var r=e.name||e.displayName;if(!e.propTypes)throw new Error("`"+r+"` has no propTypes defined`");var o=t.NativeProps;for(var i in o)if(!(e.propTypes[i]||u.propTypes[i]||s[i]||n&&n[i]))throw new Error("`"+r+"` has no propType for native prop `"+t.uiViewClassName+"."+i+"` of native type `"+o[i]+"`")}}var s=t("ReactNativeStyleAttributes"),u=t("View");o.exports=a}),__d("DatePickerIOS",["NativeMethodsMixin","ReactPropTypes","React","NativeModules","StyleSheet","View","requireNativeComponent"],function(e,t,n,r,o,i){"use strict";var a=t("NativeMethodsMixin"),s=t("ReactPropTypes"),u=t("React"),c=t("NativeModules").UIManager.RCTDatePicker.Constants,l=t("StyleSheet"),p=t("View"),d=t("requireNativeComponent"),h="datepicker",f=u.createClass({mixins:[a],propTypes:{date:s.instanceOf(Date).isRequired,onDateChange:s.func.isRequired,maximumDate:s.instanceOf(Date),minimumDate:s.instanceOf(Date),mode:s.oneOf(["date","time","datetime"]),minuteInterval:s.oneOf([1,2,3,4,5,6,10,12,15,20,30]),timeZoneOffsetInMinutes:s.number},getDefaultProps:function(){return{mode:"datetime"}},_onChange:function(e){var t=e.nativeEvent.timestamp;this.props.onDateChange&&this.props.onDateChange(new Date(t)),this.props.onChange&&this.props.onChange(e);var n=this.props.date.getTime();t!==n&&this.refs[h].setNativeProps({date:n})},render:function(){var e=this.props;return u.createElement(p,{style:e.style},u.createElement(g,{ref:h,style:m.datePickerIOS,date:e.date.getTime(),maximumDate:e.maximumDate?e.maximumDate.getTime():void 0,minimumDate:e.minimumDate?e.minimumDate.getTime():void 0,mode:e.mode,minuteInterval:e.minuteInterval,timeZoneOffsetInMinutes:e.timeZoneOffsetInMinutes,onChange:this._onChange}))}}),m=l.create({datePickerIOS:{height:c.ComponentHeight,width:c.ComponentWidth}}),g=d("RCTDatePicker",f);o.exports=f}),__d("Image",["EdgeInsetsPropType","ImageResizeMode","ImageStylePropTypes","NativeMethodsMixin","NativeModules","ReactPropTypes","React","ReactNativeViewAttributes","StyleSheet","StyleSheetPropType","flattenStyle","invariant","merge","requireNativeComponent","resolveAssetSource","verifyPropTypes","warning"],function(e,t,n,r,o,i){"use strict";var a=t("EdgeInsetsPropType"),s=t("ImageResizeMode"),u=t("ImageStylePropTypes"),c=t("NativeMethodsMixin"),l=(t("NativeModules"),t("ReactPropTypes")),p=t("React"),d=t("ReactNativeViewAttributes"),h=t("StyleSheet"),f=t("StyleSheetPropType"),m=t("flattenStyle"),g=t("invariant"),v=t("merge"),y=t("requireNativeComponent"),_=t("resolveAssetSource"),b=t("verifyPropTypes"),S=t("warning"),R=p.createClass({propTypes:{source:l.shape({uri:l.string}),defaultSource:l.shape({uri:l.string}),accessible:l.bool,accessibilityLabel:l.string,capInsets:a,resizeMode:l.oneOf(["cover","contain","stretch"]),style:f(u),testID:l.string,onLayout:l.func},statics:{resizeMode:s},mixins:[c],viewConfig:{uiViewClassName:"UIView",validAttributes:d.UIView},render:function(){for(var e in T)void 0!==this.props[e]&&console.warn("Prop `"+e+" = "+this.props[e]+"` should not be set directly on Image.");var t=_(this.props.source)||{},n=t.width,r=t.height,o=m([{width:n,height:r},E.base,this.props.style]);g(o,"style must be initialized");var i=t.uri&&t.uri.match(/^https?:/);g(!(i&&t.isStatic),'static image uris cannot start with "http": "'+t.uri+'"');var a=!t.isStatic&&!i,s=i?w:C;this.props.style&&this.props.style.tintColor&&S(s===C,"tintColor style only supported on static images.");var u=this.props.resizeMode||o.resizeMode||"cover",c=v(this.props,{style:o,resizeMode:u,tintColor:o.tintColor});return a?c.imageTag=t.uri:c.src=t.uri,this.props.defaultSource&&(c.defaultImageSrc=this.props.defaultSource.uri),p.createElement(s,c)}}),E=h.create({base:{overflow:"hidden"}}),w=y("RCTNetworkImageView",null),C=y("RCTStaticImage",null),T={src:!0,defaultImageSrc:!0,imageTag:!0,resizeMode:!0};__DEV__&&(b(R,C.viewConfig,T),b(R,w.viewConfig,T)),o.exports=R}),__d("EdgeInsetsPropType",["ReactPropTypes","createStrictShapeTypeChecker"],function(e,t,n,r,o,i){"use strict";var a=t("ReactPropTypes"),s=t("createStrictShapeTypeChecker"),u=s({top:a.number,left:a.number,bottom:a.number,right:a.number});o.exports=u}),__d("resolveAssetSource",["AssetRegistry","PixelRatio","Platform","NativeModules"],function(e,t,n,r,o,i){"use strict";function a(){if(!__DEV__)return null;if(void 0===f){var e=y.scriptURL,t=e&&e.match(/^https?:\/\/.*?\//);f=t?t[0]:null}return f}function s(e){if("android"===v.OS){var t=c(e);return(t+"/"+e.name).toLowerCase().replace(/\//g,"_").replace(/([^a-z0-9_])/g,"").replace(/^assets_/,"")}return l(e)}function u(e,t){return e+l(t)+"?hash="+t.hash}function c(e){var t=e.httpServerLocation;return"/"===t[0]&&(t=t.substr(1)),t}function l(e){var t=p(e.scales,g.get()),n=1===t?"":"@"+t+"x",r=c(e);return r+"/"+e.name+n+"."+e.type}function p(e,t){for(var n=0;n<e.length;n++)if(e[n]>=t)return e[n];return e[e.length-1]||1}function d(e){if("object"==typeof e)return e;var t=m.getAssetByID(e);return t?h(t):null}function h(e){var t=a();return t?{width:e.width,height:e.height,uri:u(t,e),isStatic:!1}:{width:e.width,height:e.height,uri:s(e),isStatic:!0}}var f,m=t("AssetRegistry"),g=t("PixelRatio"),v=t("Platform"),y=t("NativeModules").SourceCode;o.exports=d,o.exports.pickScale=p}),__d("AssetRegistry",[],function(e,t,n,r,o,i){"use strict";function a(e){return u.push(e)}function s(e){return u[e-1]}var u=[];o.exports={registerAsset:a,getAssetByID:s}}),__d("PixelRatio",["Dimensions"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("Dimensions"),c=function(){function e(){a(this,e)}return s(e,null,[{key:"get",value:function(){return u.get("window").scale}},{key:"getFontScale",value:function(){return u.get("window").fontScale||e.get()}},{key:"getPixelSizeForLayoutSize",value:function(t){return Math.round(t*e.get())}},{key:"startDetecting",value:function(){}}]),e}();o.exports=c}),__d("Dimensions",["NativeModules","invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("NativeModules"),c=t("invariant"),l=u.UIManager.Dimensions;if(l&&l.windowPhysicalPixels){l=JSON.parse(JSON.stringify(l));var p=l.windowPhysicalPixels;l.window={width:p.width/p.scale,height:p.height/p.scale,scale:p.scale,fontScale:p.fontScale},delete l.windowPhysicalPixels}var d=function(){function e(){a(this,e)}return s(e,null,[{key:"set",value:function(e){return Object.assign(l,e),!0}},{key:"get",value:function(e){return c(l[e],"No dimension set for key "+e),l[e]}}]),e}();o.exports=d}),__d("ListView",["ListViewDataSource","React","NativeModules","ScrollView","ScrollResponder","StaticRenderer","react-timer-mixin/TimerMixin","logError","merge","isEmpty"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("ListViewDataSource"),u=t("React"),c=t("NativeModules").UIManager,l=t("ScrollView"),p=t("ScrollResponder"),d=t("StaticRenderer"),h=t("react-timer-mixin/TimerMixin"),f=t("logError"),m=t("merge"),g=t("isEmpty"),v=u.PropTypes,y=1,_=10,b=1e3,S=1e3,R=50,E="listviewscroll",w=u.createClass({mixins:[p.Mixin,h],statics:{DataSource:s},propTypes:a({},l.propTypes,{dataSource:v.instanceOf(s).isRequired,renderSeparator:v.func,renderRow:v.func.isRequired,initialListSize:v.number,onEndReached:v.func,onEndReachedThreshold:v.number,pageSize:v.number,renderFooter:v.func,renderHeader:v.func,renderSectionHeader:v.func,scrollRenderAheadDistance:u.PropTypes.number,onChangeVisibleRows:u.PropTypes.func,removeClippedSubviews:u.PropTypes.bool}),getMetrics:function(){return{contentHeight:this.scrollProperties.contentHeight,totalRows:this.props.dataSource.getRowCount(),renderedRows:this.state.curRenderedRowsCount,visibleRows:Object.keys(this._visibleRows).length}},getScrollResponder:function(){return this.refs[E]},setNativeProps:function(e){this.refs[E].setNativeProps(e)},getDefaultProps:function(){return{initialListSize:_,pageSize:y,scrollRenderAheadDistance:b,onEndReachedThreshold:S}},getInitialState:function(){return{curRenderedRowsCount:this.props.initialListSize,prevRenderedRowsCount:0,highlightedRow:{}}},componentWillMount:function(){this.scrollProperties={visibleHeight:null,contentHeight:null,offsetY:0},this._childFrames=[],this._visibleRows={}},componentDidMount:function(){var e=this;this.requestAnimationFrame(function(){e._measureAndUpdateScrollProps()})},componentWillReceiveProps:function(e){this.props.dataSource!==e.dataSource&&this.setState({prevRenderedRowsCount:0})},onRowHighlighted:function(e,t){this.setState({highlightedRow:{sectionID:e,rowID:t}})},render:function(){for(var e=[],t=this.props.dataSource,n=t.rowIdentities,r=0,o=[],i=this.props.renderHeader&&this.props.renderHeader(),s=this.props.renderFooter&&this.props.renderFooter(),c=i?1:0,p=0;p<n.length;p++){var h=t.sectionIdentities[p],f=n[p];if(0!==f.length){if(this.props.renderSectionHeader){var g=r>=this.state.prevRenderedRowsCount&&t.sectionHeaderShouldUpdate(p);e.push(u.createElement(d,{key:"s_"+h,shouldUpdate:!!g,render:this.props.renderSectionHeader.bind(null,t.getSectionHeaderData(p),h)})),o.push(c++)}for(var v=0;v<f.length;v++){var y=f[v],_=h+y,b=r>=this.state.prevRenderedRowsCount&&t.rowShouldUpdate(p,v),S=u.createElement(d,{key:"r_"+_,shouldUpdate:!!b,render:this.props.renderRow.bind(null,t.getRowData(p,v),h,y,this.onRowHighlighted)});if(e.push(S),c++,this.props.renderSeparator&&(v!==f.length-1||p===n.length-1)){var w=this.state.highlightedRow.sectionID===h&&(this.state.highlightedRow.rowID===y||this.state.highlightedRow.rowID===f[v+1]),C=this.props.renderSeparator(h,y,w);e.push(C),c++}if(++r===this.state.curRenderedRowsCount)break}if(r>=this.state.curRenderedRowsCount)break}}var T=m(this.props,{onScroll:this._onScroll,stickyHeaderIndices:o});return T.scrollEventThrottle||(T.scrollEventThrottle=R),u.createElement(l,a({},T,{ref:E}),i,e,s)},_measureAndUpdateScrollProps:function(){c.measureLayout(this.refs[E].getInnerViewNode(),u.findNodeHandle(this.refs[E]),f,this._setScrollContentHeight),c.measureLayoutRelativeToParent(u.findNodeHandle(this.refs[E]),f,this._setScrollVisibleHeight)},_setScrollContentHeight:function(e,t,n,r){this.scrollProperties.contentHeight=r},_setScrollVisibleHeight:function(e,t,n,r){this.scrollProperties.visibleHeight=r,this._updateVisibleRows(),this._renderMoreRowsIfNeeded()},_renderMoreRowsIfNeeded:function(){if(null!==this.scrollProperties.contentHeight&&null!==this.scrollProperties.visibleHeight&&this.state.curRenderedRowsCount!==this.props.dataSource.getRowCount()){
var e=this._getDistanceFromEnd(this.scrollProperties);e<this.props.scrollRenderAheadDistance&&this._pageInNewRows()}},_pageInNewRows:function(){var e=this,t=Math.min(this.state.curRenderedRowsCount+this.props.pageSize,this.props.dataSource.getRowCount());this.setState({prevRenderedRowsCount:this.state.curRenderedRowsCount,curRenderedRowsCount:t},function(){e._measureAndUpdateScrollProps(),e.setState({prevRenderedRowsCount:e.state.curRenderedRowsCount})})},_getDistanceFromEnd:function(e){return e.contentHeight-e.visibleHeight-e.offsetY},_updateVisibleRows:function(e){var t=this;if(this.props.onChangeVisibleRows){var n=e&&e.nativeEvent.updatedChildFrames;n&&n.forEach(function(e){t._childFrames[e.index]=m(e)});for(var r=this.props.dataSource,o=this.scrollProperties.offsetY,i=o+this.scrollProperties.visibleHeight,a=r.rowIdentities,s=this.props.renderHeader&&this.props.renderHeader(),u=s?1:0,c=!1,l={},p=0;p<a.length;p++){var d=a[p];if(0!==d.length){var h=r.sectionIdentities[p];this.props.renderSectionHeader&&u++;var f=this._visibleRows[h];f||(f={});for(var v=0;v<d.length;v++){var y=d[v],_=this._childFrames[u];if(u++,!_)break;var b=f[y],S=_.y,R=S+_.height;S>i||o>R?b&&(c=!0,delete f[y],l[h]||(l[h]={}),l[h][y]=!1):b||(c=!0,f[y]=!0,l[h]||(l[h]={}),l[h][y]=!0)}g(f)?this._visibleRows[h]&&delete this._visibleRows[h]:this._visibleRows[h]=f}}c&&this.props.onChangeVisibleRows(this._visibleRows,l)}},_onScroll:function(e){this.scrollProperties.visibleHeight=e.nativeEvent.layoutMeasurement.height,this.scrollProperties.contentHeight=e.nativeEvent.contentSize.height,this.scrollProperties.offsetY=e.nativeEvent.contentOffset.y,this._updateVisibleRows(e);var t=this._getDistanceFromEnd(this.scrollProperties)<this.props.onEndReachedThreshold;t&&this.props.onEndReached&&this.scrollProperties.contentHeight!==this._sentEndForContentHeight&&this.state.curRenderedRowsCount===this.props.dataSource.getRowCount()?(this._sentEndForContentHeight=this.scrollProperties.contentHeight,this.props.onEndReached(e)):this._renderMoreRowsIfNeeded(),this.props.onScroll&&this.props.onScroll(e)}});o.exports=w}),__d("ListViewDataSource",["invariant","isEmpty","warning"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t,n){return e[t][n]}function u(e,t){return e[t]}function c(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.length}return t}function l(e){if(h(e))return{};for(var t={},n=0;n<e.length;n++){var r=e[n];f(!t[r],"Value appears more than once in array: "+r),t[r]=!0}return t}var p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=t("invariant"),h=t("isEmpty"),f=t("warning"),m=function(){function e(t){a(this,e),d(t&&"function"==typeof t.rowHasChanged,"Must provide a rowHasChanged function."),this._rowHasChanged=t.rowHasChanged,this._getRowData=t.getRowData||s,this._sectionHeaderHasChanged=t.sectionHeaderHasChanged,this._getSectionHeaderData=t.getSectionHeaderData||u,this._dataBlob=null,this._dirtyRows=[],this._dirtySections=[],this._cachedRowCount=0,this.rowIdentities=[],this.sectionIdentities=[]}return p(e,[{key:"cloneWithRows",value:function(e,t){var n=t?[t]:null;return this._sectionHeaderHasChanged||(this._sectionHeaderHasChanged=function(){return!1}),this.cloneWithRowsAndSections({s1:e},["s1"],n)}},{key:"cloneWithRowsAndSections",value:function(t,n,r){d("function"==typeof this._sectionHeaderHasChanged,"Must provide a sectionHeaderHasChanged function with section data.");var o=new e({getRowData:this._getRowData,getSectionHeaderData:this._getSectionHeaderData,rowHasChanged:this._rowHasChanged,sectionHeaderHasChanged:this._sectionHeaderHasChanged});return o._dataBlob=t,n?o.sectionIdentities=n:o.sectionIdentities=Object.keys(t),r?o.rowIdentities=r:(o.rowIdentities=[],o.sectionIdentities.forEach(function(e){o.rowIdentities.push(Object.keys(t[e]))})),o._cachedRowCount=c(o.rowIdentities),o._calculateDirtyArrays(this._dataBlob,this.sectionIdentities,this.rowIdentities),o}},{key:"getRowCount",value:function(){return this._cachedRowCount}},{key:"rowShouldUpdate",value:function(e,t){var n=this._dirtyRows[e][t];return f(void 0!==n,"missing dirtyBit for section, row: "+e+", "+t),n}},{key:"getRowData",value:function(e,t){var n=this.sectionIdentities[e],r=this.rowIdentities[e][t];return f(void 0!==n&&void 0!==r,"rendering invalid section, row: "+e+", "+t),this._getRowData(this._dataBlob,n,r)}},{key:"getRowIDForFlatIndex",value:function(e){for(var t=e,n=0;n<this.sectionIdentities.length;n++){if(!(t>=this.rowIdentities[n].length))return this.rowIdentities[n][t];t-=this.rowIdentities[n].length}return null}},{key:"getSectionIDForFlatIndex",value:function(e){for(var t=e,n=0;n<this.sectionIdentities.length;n++){if(!(t>=this.rowIdentities[n].length))return this.sectionIdentities[n];t-=this.rowIdentities[n].length}return null}},{key:"getSectionLengths",value:function(){for(var e=[],t=0;t<this.sectionIdentities.length;t++)e.push(this.rowIdentities[t].length);return e}},{key:"sectionHeaderShouldUpdate",value:function(e){var t=this._dirtySections[e];return f(void 0!==t,"missing dirtyBit for section: "+e),t}},{key:"getSectionHeaderData",value:function(e){if(!this._getSectionHeaderData)return null;var t=this.sectionIdentities[e];return f(void 0!==t,"renderSection called on invalid section: "+e),this._getSectionHeaderData(this._dataBlob,t)}},{key:"_calculateDirtyArrays",value:function(e,t,n){for(var r=l(t),o={},i=0;i<n.length;i++){var a=t[i];f(!o[a],"SectionID appears more than once: "+a),o[a]=l(n[i])}this._dirtySections=[],this._dirtyRows=[];for(var s,u=0;u<this.sectionIdentities.length;u++){var a=this.sectionIdentities[u];s=!r[a];var c=this._sectionHeaderHasChanged;!s&&c&&(s=c(this._getSectionHeaderData(e,a),this._getSectionHeaderData(this._dataBlob,a))),this._dirtySections.push(!!s),this._dirtyRows[u]=[];for(var p=0;p<this.rowIdentities[u].length;p++){var d=this.rowIdentities[u][p];s=!r[a]||!o[a][d]||this._rowHasChanged(this._getRowData(e,a,d),this._getRowData(this._dataBlob,a,d)),this._dirtyRows[u].push(!!s)}}}}]),e}();o.exports=m}),__d("isEmpty",[],function(e,t,n,r,o,i){function a(e){if(Array.isArray(e))return 0===e.length;if("object"==typeof e){for(var t in e)return!1;return!0}return!e}o.exports=a}),__d("ScrollView",["EdgeInsetsPropType","Platform","PointPropType","NativeModules","React","ReactNativeViewAttributes","NativeModules","ScrollResponder","StyleSheet","StyleSheetPropType","View","ViewStylePropTypes","createReactNativeComponentClass","deepDiffer","flattenStyle","insetsDiffer","invariant","pointsDiffer","requireNativeComponent"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("EdgeInsetsPropType"),u=t("Platform"),c=t("PointPropType"),l=t("NativeModules").UIManager.RCTScrollView,p=l.Constants,d=t("React"),h=t("ReactNativeViewAttributes"),f=t("NativeModules").UIManager,m=t("ScrollResponder"),g=t("StyleSheet"),v=t("StyleSheetPropType"),y=t("View"),_=t("ViewStylePropTypes"),b=t("createReactNativeComponentClass"),S=t("deepDiffer"),R=t("flattenStyle"),E=t("insetsDiffer"),w=t("invariant"),C=t("pointsDiffer"),T=t("requireNativeComponent"),I=d.PropTypes,P="ScrollView",x="InnerScrollView",M=d.createClass({propTypes:{automaticallyAdjustContentInsets:I.bool,contentInset:s,contentOffset:c,onScroll:I.func,onScrollAnimationEnd:I.func,scrollEnabled:I.bool,scrollIndicatorInsets:s,showsHorizontalScrollIndicator:I.bool,showsVerticalScrollIndicator:I.bool,style:v(_),scrollEventThrottle:I.number,bounces:I.bool,bouncesZoom:I.bool,alwaysBounceHorizontal:I.bool,alwaysBounceVertical:I.bool,centerContent:I.bool,contentContainerStyle:v(_),decelerationRate:I.number,horizontal:I.bool,directionalLockEnabled:I.bool,canCancelContentTouches:I.bool,keyboardDismissMode:I.oneOf(["none","interactive","on-drag"]),keyboardShouldPersistTaps:I.bool,maximumZoomScale:I.number,minimumZoomScale:I.number,pagingEnabled:I.bool,scrollsToTop:I.bool,stickyHeaderIndices:I.arrayOf(I.number),removeClippedSubviews:I.bool,zoomScale:I.number},mixins:[m.Mixin],getInitialState:function(){return this.scrollResponderMixinGetInitialState()},setNativeProps:function(e){this.refs[P].setNativeProps(e)},getInnerViewNode:function(){return d.findNodeHandle(this.refs[x])},scrollTo:function(e,t){"android"===u.OS?f.dispatchViewManagerCommand(d.findNodeHandle(this),f.RCTScrollView.Commands.scrollTo,[t||0,e||0]):f.scrollTo(d.findNodeHandle(this),t||0,e||0)},scrollWithoutAnimationTo:function(e,t){f.scrollWithoutAnimationTo(d.findNodeHandle(this),t||0,e||0)},render:function(){var e=[this.props.horizontal&&O.contentContainerHorizontal,this.props.contentContainerStyle];if(__DEV__&&this.props.style){var t=R(this.props.style),n=["alignItems","justifyContent"].filter(function(e){return t&&void 0!==t[e]});w(0===n.length,"ScrollView child layout ("+JSON.stringify(n)+") must by applied through the contentContainerStyle prop.")}if(__DEV__&&this.props.onScroll&&!this.props.scrollEventThrottle){var r=this.props.onScroll;this.props.onScroll=function(){console.log("You specified `onScroll` on a <ScrollView> but not `scrollEventThrottle`. You will only receive one event. Using `16` you get all the events but be aware that it may cause frame drops, use a bigger number if you don't need as much precision."),r.apply(this,arguments)}}var o,i=d.createElement(y,{ref:x,style:e,removeClippedSubviews:this.props.removeClippedSubviews},this.props.children),s=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,c=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,h=a({},this.props,{alwaysBounceHorizontal:s,alwaysBounceVertical:c,style:[O.base,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this.scrollResponderHandleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject});if("ios"===u.OS)o=l;else if("android"===u.OS){o=this.props.horizontal?k:N;var f={none:p.KeyboardDismissMode.None,interactive:p.KeyboardDismissMode.Interactive,"on-drag":p.KeyboardDismissMode.OnDrag};h.keyboardDismissMode=h.keyboardDismissMode?f[h.keyboardDismissMode]:void 0}return w(void 0!==o,"ScrollViewClass must not be undefined"),d.createElement(o,a({},h,{ref:P}),i)}}),O=g.create({base:{flex:1},contentContainerHorizontal:{alignSelf:"flex-start",flexDirection:"row"}}),D=a({},h.UIView,{alwaysBounceHorizontal:!0,alwaysBounceVertical:!0,automaticallyAdjustContentInsets:!0,bounces:!0,centerContent:!0,contentInset:{diff:E},contentOffset:{diff:C},decelerationRate:!0,horizontal:!0,keyboardDismissMode:!0,keyboardShouldPersistTaps:!0,maximumZoomScale:!0,minimumZoomScale:!0,pagingEnabled:!0,removeClippedSubviews:!0,scrollEnabled:!0,scrollIndicatorInsets:{diff:E},scrollsToTop:!0,showsHorizontalScrollIndicator:!0,showsVerticalScrollIndicator:!0,stickyHeaderIndices:{diff:S},scrollEventThrottle:!0,zoomScale:!0});if("android"===u.OS)var N=b({validAttributes:D,uiViewClassName:"RCTScrollView"}),k=b({validAttributes:D,uiViewClassName:"AndroidHorizontalScrollView"});else if("ios"===u.OS)var l=T("RCTScrollView",M);o.exports=M}),__d("PointPropType",["ReactPropTypes","createStrictShapeTypeChecker"],function(e,t,n,r,o,i){"use strict";var a=t("ReactPropTypes"),s=t("createStrictShapeTypeChecker"),u=s({x:a.number,y:a.number});o.exports=u}),__d("ScrollResponder",["NativeModules","RCTDeviceEventEmitter","React","Subscribable","TextInputState","warning"],function(e,t,n,r,o,i){"use strict";var a=t("NativeModules"),s=t("RCTDeviceEventEmitter"),u=t("React"),c=t("Subscribable"),l=t("TextInputState"),p=a.UIManager,d=a.UIManager,h=p.RCTScrollView.Constants,f=t("warning"),m=16,g={mixins:[c.Mixin],statics:h,scrollResponderMixinGetInitialState:function(){return{isTouching:!1,lastMomentumScrollBeginTime:0,lastMomentumScrollEndTime:0,observedScrollSinceBecomingResponder:!1,becameResponderWhileAnimating:!1}},scrollResponderHandleScrollShouldSetResponder:function(){return this.state.isTouching},scrollResponderHandleStartShouldSetResponder:function(){return!1},scrollResponderHandleStartShouldSetResponderCapture:function(e){var t=l.currentlyFocusedField();return this.props.keyboardShouldPersistTaps||null==t||e.target===t?this.scrollResponderIsAnimating():!0},scrollResponderHandleResponderReject:function(){f(!1,"ScrollView doesn't take rejection well - scrolls anyway")},scrollResponderHandleTerminationRequest:function(){return!this.state.observedScrollSinceBecomingResponder},scrollResponderHandleTouchEnd:function(e){var t=e.nativeEvent;this.state.isTouching=0!==t.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},scrollResponderHandleResponderRelease:function(e){this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=l.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==t||e.target===t||this.state.observedScrollSinceBecomingResponder||this.state.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),l.blurTextInput(t))},scrollResponderHandleScroll:function(e){this.state.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},scrollResponderHandleResponderGrant:function(e){this.state.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.state.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},scrollResponderHandleScrollBeginDrag:function(e){this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},scrollResponderHandleScrollEndDrag:function(e){this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},scrollResponderHandleMomentumScrollBegin:function(e){this.state.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},scrollResponderHandleMomentumScrollEnd:function(e){this.state.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},scrollResponderHandleTouchStart:function(e){this.state.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},scrollResponderHandleTouchMove:function(e){this.props.onTouchMove&&this.props.onTouchMove(e)},scrollResponderIsAnimating:function(){var e=Date.now(),t=e-this.state.lastMomentumScrollEndTime,n=m>t||this.state.lastMomentumScrollEndTime<this.state.lastMomentumScrollBeginTime;return n},scrollResponderScrollTo:function(e,t){d.scrollTo(u.findNodeHandle(this),e,t)},scrollResponderZoomTo:function(e){d.zoomToRect(u.findNodeHandle(this),e)},scrollResponderScrollNativeHandleToKeyboard:function(e,t,n){this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,p.measureLayout(e,u.findNodeHandle(this),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},scrollResponderInputMeasureAndScrollToKeyboard:function(e,t,n,r){if(this.keyboardWillOpenTo){var o=t-this.keyboardWillOpenTo.endCoordinates.screenY+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(o=Math.max(0,o)),this.scrollResponderScrollTo(0,o)}this.additionalOffset=0,this.preventNegativeScrollOffset=!1},scrollResponderTextInputFocusError:function(e){console.error("Error measuring text field: ",e)},componentWillMount:function(){this.keyboardWillOpenTo=null,this.additionalScrollOffset=0,this.addListenerOn(s,"keyboardWillShow",this.scrollResponderKeyboardWillShow),this.addListenerOn(s,"keyboardWillHide",this.scrollResponderKeyboardWillHide),this.addListenerOn(s,"keyboardDidShow",this.scrollResponderKeyboardDidShow),this.addListenerOn(s,"keyboardDidHide",this.scrollResponderKeyboardDidHide)},scrollResponderKeyboardWillShow:function(e){this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},scrollResponderKeyboardWillHide:function(e){this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},scrollResponderKeyboardDidShow:function(){this.keyboardWillOpenTo=null,this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow()},scrollResponderKeyboardDidHide:function(){this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide()}},v={Mixin:g};o.exports=v}),__d("Subscribable",["EventEmitter"],function(e,t,n,r,o,i){"use strict";var a={};a.Mixin={componentWillMount:function(){this._subscribableSubscriptions=[]},componentWillUnmount:function(){this._subscribableSubscriptions.forEach(function(e){return e.remove()}),this._subscribableSubscriptions=null},addListenerOn:function(e,t,n,r){this._subscribableSubscriptions.push(e.addListener(t,n,r))}},o.exports=a}),__d("StaticRenderer",["React"],function(e,t,n,r,o,i){"use strict";var a=t("React"),s=a.createClass({propTypes:{shouldUpdate:a.PropTypes.bool.isRequired,render:a.PropTypes.func.isRequired},shouldComponentUpdate:function(e){return e.shouldUpdate},render:function(){return this.props.render()}});o.exports=s}),__d("react-timer-mixin/TimerMixin",[],function(e,t,n,r,o,i){"use strict";var a="undefined"==typeof window?e:window,s=function(e,t,n){return function(r,o){var i=e(function(){t.call(this,i),r.apply(this,arguments)}.bind(this),o);return this[n]?this[n].push(i):this[n]=[i],i}},u=function(e,t){return function(n){if(this[t]){var r=this[t].indexOf(n);-1!==r&&this[t].splice(r,1)}e(n)}},c="TimerMixin_timeouts",l=u(a.clearTimeout,c),p=s(a.setTimeout,l,c),d="TimerMixin_intervals",h=u(a.clearInterval,d),f=s(a.setInterval,function(){},d),m="TimerMixin_immediates",g=u(a.clearImmediate,m),v=s(a.setImmediate,g,m),y="TimerMixin_rafs",_=u(a.cancelAnimationFrame,y),b=s(a.requestAnimationFrame,_,y),S={componentWillUnmount:function(){this[c]&&this[c].forEach(this.clearTimeout),this[d]&&this[d].forEach(this.clearInterval),this[m]&&this[m].forEach(this.clearImmediate),this[y]&&this[y].forEach(this.cancelAnimationFrame)},setTimeout:p,clearTimeout:l,setInterval:f,clearInterval:h,setImmediate:v,clearImmediate:g,requestAnimationFrame:b,cancelAnimationFrame:_};o.exports=S}),__d("MapView",["EdgeInsetsPropType","NativeMethodsMixin","Platform","React","ReactNativeViewAttributes","View","createReactNativeComponentClass","deepDiffer","insetsDiffer","merge","requireNativeComponent"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("EdgeInsetsPropType"),u=t("NativeMethodsMixin"),c=t("Platform"),l=t("React"),p=t("ReactNativeViewAttributes"),d=t("View"),h=t("createReactNativeComponentClass"),f=t("deepDiffer"),m=t("insetsDiffer"),g=t("merge"),v=t("requireNativeComponent"),y=l.createClass({mixins:[u],propTypes:{style:d.propTypes.style,showsUserLocation:l.PropTypes.bool,zoomEnabled:l.PropTypes.bool,rotateEnabled:l.PropTypes.bool,pitchEnabled:l.PropTypes.bool,scrollEnabled:l.PropTypes.bool,region:l.PropTypes.shape({latitude:l.PropTypes.number.isRequired,longitude:l.PropTypes.number.isRequired,latitudeDelta:l.PropTypes.number.isRequired,longitudeDelta:l.PropTypes.number.isRequired}),annotations:l.PropTypes.arrayOf(l.PropTypes.shape({latitude:l.PropTypes.number.isRequired,longitude:l.PropTypes.number.isRequired,title:l.PropTypes.string,subtitle:l.PropTypes.string})),maxDelta:l.PropTypes.number,minDelta:l.PropTypes.number,legalLabelInsets:s,onRegionChange:l.PropTypes.func,onRegionChangeComplete:l.PropTypes.func},_onChange:function(e){e.nativeEvent.continuous?this.props.onRegionChange&&this.props.onRegionChange(e.nativeEvent.region):this.props.onRegionChangeComplete&&this.props.onRegionChangeComplete(e.nativeEvent.region)},render:function(){return l.createElement(_,a({},this.props,{onChange:this._onChange}))}});if("android"===c.OS)var _=h({validAttributes:g(p.UIView,{showsUserLocation:!0,zoomEnabled:!0,rotateEnabled:!0,pitchEnabled:!0,scrollEnabled:!0,region:{diff:f},annotations:{diff:f},maxDelta:!0,minDelta:!0,legalLabelInsets:{diff:m}}),uiViewClassName:"RCTMap"});else var _=v("RCTMap",y);o.exports=y}),__d("Navigator",["NativeModules","BackAndroid","Dimensions","InteractionMixin","NavigatorBreadcrumbNavigationBar","NavigatorInterceptor","NavigatorNavigationBar","NavigatorSceneConfigs","NavigatorStaticContextContainer","PanResponder","Platform","React","StaticContainer.react","StyleSheet","Subscribable","react-timer-mixin/TimerMixin","View","clamp","flattenStyle","getNavigatorContext","invariant","rebound/rebound"],function(e,t,n,r,o,i){"use strict";function a(){return k++}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=t("NativeModules").AnimationsDebugModule,c=t("BackAndroid"),l=t("Dimensions"),p=t("InteractionMixin"),d=t("NavigatorBreadcrumbNavigationBar"),h=t("NavigatorInterceptor"),f=t("NavigatorNavigationBar"),m=t("NavigatorSceneConfigs"),g=t("NavigatorStaticContextContainer"),v=t("PanResponder"),y=t("Platform"),_=t("React"),b=t("StaticContainer.react"),S=t("StyleSheet"),R=t("Subscribable"),E=t("react-timer-mixin/TimerMixin"),w=t("View"),C=t("clamp"),T=t("flattenStyle"),I=t("getNavigatorContext"),P=t("invariant"),x=t("rebound/rebound"),M=_.PropTypes,O=l.get("window").width,D=l.get("window").height,N={style:{left:O,opacity:0}},k=0,A=S.create({container:{flex:1,overflow:"hidden"},defaultSceneStyle:{position:"absolute",left:0,right:0,bottom:0,top:0},baseScene:{position:"absolute",overflow:"hidden",left:0,right:0,bottom:0,top:0},disabledScene:{left:O},transitioner:{flex:1,backgroundColor:"transparent",overflow:"hidden"}}),L=["pop","jumpBack","jumpForward"],V=_.createClass({propTypes:{configureScene:M.func,renderScene:M.func.isRequired,initialRoute:M.object,initialRouteStack:M.arrayOf(M.object),onWillFocus:M.func,onDidFocus:M.func,onItemRef:M.func,navigationBar:M.node,navigator:M.object,sceneStyle:w.propTypes.style},contextTypes:{},statics:{BreadcrumbNavigationBar:d,NavigationBar:f,SceneConfigs:m,Interceptor:h,getContext:I},mixins:[E,p,R.Mixin],getDefaultProps:function(){return{configureScene:function(){return m.PushFromRight},sceneStyle:A.defaultSceneStyle}},getInitialState:function(){var e=this,t=this.props.initialRouteStack||[this.props.initialRoute];P(t.length>=1,"Navigator requires props.initialRoute or props.initialRouteStack.");var n=t.length-1;return this.props.initialRoute&&(n=t.indexOf(this.props.initialRoute),P(-1!==n,"initialRoute is not in initialRouteStack.")),{sceneConfigStack:t.map(function(t){return e.props.configureScene(t)}),idStack:t.map(function(){return a()}),routeStack:t,updatingRangeStart:0,updatingRangeLength:t.length,presentedIndex:n,transitionFromIndex:null,activeGesture:null,pendingGestureProgress:null,transitionQueue:[]}},componentWillMount:function(){var e=this;this.parentNavigator=I(this)||this.props.navigator,this._subRouteFocus=[],this.navigatorContext={setHandlerForIndex:this.setHandlerForIndex,request:this.request,parentNavigator:this.parentNavigator,getCurrentRoutes:this.getCurrentRoutes,pop:this.requestPop,jumpBack:this.jumpBack,jumpForward:this.jumpForward,jumpTo:this.jumpTo,popToRoute:this.popToRoute,push:this.push,replace:this.replace,replaceAtIndex:this.replaceAtIndex,replacePrevious:this.replacePrevious,replacePreviousAndPop:this.replacePreviousAndPop,immediatelyResetRouteStack:this.immediatelyResetRouteStack,resetTo:this.resetTo,popToTop:this.popToTop},this._handlers={},this.springSystem=new x.SpringSystem,this.spring=this.springSystem.createSpring(),this.spring.setRestSpeedThreshold(.05),this.spring.setCurrentValue(0).setAtRest(),this.spring.addListener({onSpringEndStateChange:function(){e._interactionHandle||(e._interactionHandle=e.createInteractionHandle())},onSpringUpdate:function(){e._handleSpringUpdate()},onSpringAtRest:function(){e._completeTransition()}}),this.panGesture=v.create({onMoveShouldSetPanResponder:this._handleMoveShouldSetPanResponder,onPanResponderGrant:this._handlePanResponderGrant,onPanResponderRelease:this._handlePanResponderRelease,onPanResponderMove:this._handlePanResponderMove,onPanResponderTerminate:this._handlePanResponderTerminate}),this._itemRefs={},this._interactionHandle=null,this._emitWillFocus(this.state.routeStack[this.state.presentedIndex])},request:function(e,t,n){return this.parentNavigator?this.parentNavigator.request.apply(null,arguments):this._handleRequest.apply(null,arguments)},requestPop:function(e){return this.request("pop",e)},requestPopTo:function(e){return this.request("popTo",e)},_handleRequest:function(e,t,n){var r=this._handlers[this.state.presentedIndex];if(r&&r(e,t,n))return!0;switch(e){case"pop":return this._handlePop(t);case"push":return this._handlePush(t);default:return P(!1,"Unsupported request type "+e),!1}},_handlePop:function(e){if(e){var t=this.state.routeStack.indexOf(e);return-1===t?!1:(P(t<=this.state.presentedIndex,"Cannot pop past a route that is forward in the navigator"),this._popN(this.state.presentedIndex-t+1),!0)}return 0===this.state.presentedIndex?!1:(this.pop(),!0)},_handlePush:function(e){return this.push(e),!0},setHandlerForIndex:function(e,t){this._handlers[e]=t},componentDidMount:function(){this._handleSpringUpdate(),this._emitDidFocus(this.state.routeStack[this.state.presentedIndex]),this.parentNavigator?this.parentNavigator.setHandler(this._handleRequest):"android"===y.OS&&c.addEventListener("hardwareBackPress",this._handleAndroidBackPress)},componentWillUnmount:function(){this.parentNavigator?this.parentNavigator.setHandler(null):"android"===y.OS&&c.removeEventListener("hardwareBackPress",this._handleAndroidBackPress)},_handleAndroidBackPress:function(){var e=this.requestPop();e||c.exitApp()},immediatelyResetRouteStack:function(e){var t=this,n=e.length-1;this.setState({idStack:e.map(a),routeStack:e,sceneConfigStack:e.map(this.props.configureScene),updatingRangeStart:0,updatingRangeLength:e.length,presentedIndex:n,activeGesture:null,transitionFromIndex:null,transitionQueue:[]},function(){t._handleSpringUpdate()})},_transitionTo:function(e,t,n,r){if(e!==this.state.presentedIndex){if(null!==this.state.transitionFromIndex)return void this.state.transitionQueue.push({destIndex:e,velocity:t,cb:r});this.state.transitionFromIndex=this.state.presentedIndex,this.state.presentedIndex=e,this.state.transitionCb=r,this._onAnimationStart(),u&&u.startRecordingFps();var o=this.state.sceneConfigStack[this.state.transitionFromIndex]||this.state.sceneConfigStack[this.state.presentedIndex];P(o,"Cannot configure scene at index "+this.state.transitionFromIndex),null!=n&&this.spring.setCurrentValue(n),this.spring.setOvershootClampingEnabled(!0),this.spring.getSpringConfig().friction=o.springFriction,this.spring.getSpringConfig().tension=o.springTension,this.spring.setVelocity(t||o.defaultTransitionVelocity),this.spring.setEndValue(1);var i=this._subRouteFocus[this.state.presentedIndex]||this.state.routeStack[this.state.presentedIndex];this._emitWillFocus(i)}},_handleSpringUpdate:function(){if(null!=this.state.transitionFromIndex)this._transitionBetween(this.state.transitionFromIndex,this.state.presentedIndex,this.spring.getCurrentValue());else if(null!=this.state.activeGesture){var e=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture);e>-1&&this._transitionBetween(this.state.presentedIndex,e,this.spring.getCurrentValue())}},_completeTransition:function(){if(1!==this.spring.getCurrentValue()&&0!==this.spring.getCurrentValue())return void(this.state.pendingGestureProgress&&(this.state.pendingGestureProgress=null));this._onAnimationEnd();var e=this.state.presentedIndex,t=this._subRouteFocus[e]||this.state.routeStack[e];if(this._emitDidFocus(t),u&&u.stopRecordingFps(Date.now()),this.state.transitionFromIndex=null,this.spring.setCurrentValue(0).setAtRest(),this._hideScenes(),this.state.transitionCb&&(this.state.transitionCb(),this.state.transitionCb=null),this._interactionHandle&&(this.clearInteractionHandle(this._interactionHandle),this._interactionHandle=null),this.state.pendingGestureProgress){var n=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture);return this._enableScene(n),void this.spring.setEndValue(this.state.pendingGestureProgress)}if(this.state.transitionQueue.length){var r=this.state.transitionQueue.shift();this._enableScene(r.destIndex),this._transitionTo(r.destIndex,r.velocity,null,r.cb)}},_emitDidFocus:function(e){this._lastDidFocus!==e&&(this._lastDidFocus=e,this.props.onDidFocus&&this.props.onDidFocus(e),this.parentNavigator&&this.parentNavigator.onDidFocus&&this.parentNavigator.onDidFocus(e))},_emitWillFocus:function(e){if(this._lastWillFocus!==e){this._lastWillFocus=e;var t=this._navBar;t&&t.handleWillFocus&&t.handleWillFocus(e),this.props.onWillFocus&&this.props.onWillFocus(e),this.parentNavigator&&this.parentNavigator.onWillFocus&&this.parentNavigator.onWillFocus(e)}},_hideScenes:function(){var e=null;this.state.activeGesture&&(e=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture));for(var t=0;t<this.state.routeStack.length;t++)t!==this.state.presentedIndex&&t!==this.state.transitionFromIndex&&t!==e&&this._disableScene(t)},_disableScene:function(e){this.refs["scene_"+e]&&this.refs["scene_"+e].setNativeProps(N)},_enableScene:function(e){var t=T([A.baseScene,this.props.sceneStyle]),n={left:t.left};e!==this.state.transitionFromIndex&&e!==this.state.presentedIndex&&(n.opacity=0),this.refs["scene_"+e]&&this.refs["scene_"+e].setNativeProps(n)},_onAnimationStart:function(){var e=this.state.presentedIndex,t=this.state.presentedIndex;null!=this.state.transitionFromIndex?e=this.state.transitionFromIndex:this.state.activeGesture&&(t=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture)),this._setRenderSceneToHarwareTextureAndroid(e,!0),this._setRenderSceneToHarwareTextureAndroid(t,!0);var n=this._navBar;n&&n.onAnimationStart&&n.onAnimationStart(e,t)},_onAnimationEnd:function(){for(var e=this.state.routeStack.length-1,t=0;e>=t;t++)this._setRenderSceneToHarwareTextureAndroid(t,!1);var n=this._navBar;n&&n.onAnimationEnd&&n.onAnimationEnd()},_setRenderSceneToHarwareTextureAndroid:function(e,t){var n=this.refs["scene_"+e];null!==n&&void 0!==n&&n.setNativeProps({renderToHardwareTextureAndroid:t})},_handleTouchStart:function(){this._eligibleGestures=L},_handleMoveShouldSetPanResponder:function(e,t){var n=this.state.sceneConfigStack[this.state.presentedIndex];return this._expectingGestureGrant=this._matchGestureAction(this._eligibleGestures,n.gestures,t),!!this._expectingGestureGrant},_doesGestureOverswipe:function(e){var t=this.state.presentedIndex<=0&&("pop"===e||"jumpBack"===e),n=this.state.presentedIndex>=this.state.routeStack.length-1&&"jumpForward"===e;return n||t},_handlePanResponderGrant:function(e,t){P(this._expectingGestureGrant,"Responder granted unexpectedly."),this._attachGesture(this._expectingGestureGrant),this._onAnimationStart(),this._expectingGestureGrant=null;
},_deltaForGestureAction:function(e){switch(e){case"pop":case"jumpBack":return-1;case"jumpForward":return 1;default:return void P(!1,"Unsupported gesture action "+e)}},_handlePanResponderRelease:function(e,t){var n=this,r=this.state.sceneConfigStack[this.state.presentedIndex],o=this.state.activeGesture;if(o){var i=r.gestures[o],a=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture);if(0===this.spring.getCurrentValue())return this.spring.setCurrentValue(0).setAtRest(),void this._completeTransition();var s,u,c="top-to-bottom"===i.direction||"bottom-to-top"===i.direction,l="right-to-left"===i.direction||"bottom-to-top"===i.direction;c?(s=l?-t.vy:t.vy,u=l?-t.dy:t.dy):(s=l?-t.vx:t.vx,u=l?-t.dx:t.dx);var p=C(-10,s,10);if(Math.abs(s)<i.notMoving){var d=u>i.fullDistance*i.stillCompletionRatio;p=d?i.snapVelocity:-i.snapVelocity}if(0>p||this._doesGestureOverswipe(o)){if(null==this.state.transitionFromIndex){var h=this.state.presentedIndex;this.state.presentedIndex=a,this._transitionTo(h,-p,1-this.spring.getCurrentValue())}}else this._transitionTo(a,p,null,function(){"pop"===o&&n._cleanScenesPastIndex(a)});this._detachGesture()}},_handlePanResponderTerminate:function(e,t){var n=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture);this._detachGesture();var r=this.state.presentedIndex;this.state.presentedIndex=n,this._transitionTo(r,null,1-this.spring.getCurrentValue())},_attachGesture:function(e){this.state.activeGesture=e;var t=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture);this._enableScene(t)},_detachGesture:function(){this.state.activeGesture=null,this.state.pendingGestureProgress=null,this._hideScenes()},_handlePanResponderMove:function(e,t){var n=this.state.sceneConfigStack[this.state.presentedIndex];if(this.state.activeGesture){var r=n.gestures[this.state.activeGesture];return this._moveAttachedGesture(r,t)}var o=this._matchGestureAction(L,n.gestures,t);o&&this._attachGesture(o)},_moveAttachedGesture:function(e,t){var n="top-to-bottom"===e.direction||"bottom-to-top"===e.direction,r="right-to-left"===e.direction||"bottom-to-top"===e.direction,o=n?t.dy:t.dx;o=r?-o:o;var i=e.gestureDetectMovement,a=(o-i)/(e.fullDistance-i);if(0>a&&e.isDetachable){var s=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture);return this._transitionBetween(this.state.presentedIndex,s,0),this._detachGesture(),void(null!=this.state.pendingGestureProgress&&this.spring.setCurrentValue(0))}if(this._doesGestureOverswipe(this.state.activeGesture)){var u=e.overswipe.frictionConstant,c=e.overswipe.frictionByDistance,l=1/(u+Math.abs(a)*c);a*=l}a=C(0,a,1),null!=this.state.transitionFromIndex?this.state.pendingGestureProgress=a:this.state.pendingGestureProgress?this.spring.setEndValue(a):this.spring.setCurrentValue(a)},_matchGestureAction:function(e,t,n){var r=this;if(!t)return null;var o=null;return e.some(function(e,i){var a=t[e];if(a){if(null==a.overswipe&&r._doesGestureOverswipe(e))return!1;var s="top-to-bottom"===a.direction||"bottom-to-top"===a.direction,u="right-to-left"===a.direction||"bottom-to-top"===a.direction,c=s?n.moveY:n.moveX,l=s?n.dy:n.dx,p=s?n.dx:n.dy,d=a.edgeHitWidth;u&&(c=-c,l=-l,p=-p,d=s?-(D-d):-(O-d));var h=null==a.edgeHitWidth||d>c;if(!h)return!1;var f=l>=a.gestureDetectMovement;if(!f)return!1;var m=Math.abs(l)>Math.abs(p)*a.directionRatio;return m?(o=e,!0):void(r._eligibleGestures=r._eligibleGestures.slice().splice(i,1))}}),o},_transitionSceneStyle:function(e,t,n,r){var o=this.refs["scene_"+r];if(null!==o&&void 0!==o){var i=t>e?t:e,a=this.state.sceneConfigStack[i];a||(a=this.state.sceneConfigStack[i-1]);var s={},u=e>r||t>r?a.animationInterpolators.out:a.animationInterpolators.into,c=t>e?n:1-n,l=u(s,c);l&&o.setNativeProps({style:s})}},_transitionBetween:function(e,t,n){this._transitionSceneStyle(e,t,n,e),this._transitionSceneStyle(e,t,n,t);var r=this._navBar;r&&r.updateProgress&&r.updateProgress(n,e,t)},_handleResponderTerminationRequest:function(){return!1},_resetUpdatingRange:function(){this.state.updatingRangeStart=0,this.state.updatingRangeLength=this.state.routeStack.length},_getDestIndexWithinBounds:function(e){var t=this.state.presentedIndex,n=t+e;P(n>=0,"Cannot jump before the first route.");var r=this.state.routeStack.length-1;return P(r>=n,"Cannot jump past the last route."),n},_jumpN:function(e){var t=this,n=this._getDestIndexWithinBounds(e),r=function(){t._enableScene(n),t._transitionTo(n),t._resetUpdatingRange()};this.setState({updatingRangeStart:n,updatingRangeLength:1},r)},jumpTo:function(e){var t=this.state.routeStack.indexOf(e);P(-1!==t,"Cannot jump to route that is not in the route stack"),this._jumpN(t-this.state.presentedIndex)},jumpForward:function(){this._jumpN(1)},jumpBack:function(){this._jumpN(-1)},push:function(e){var t=this;P(!!e,"Must supply route to push");var n=this.state.presentedIndex+1,r=this.state.routeStack.slice(0,n),o=this.state.idStack.slice(0,n),i=this.state.sceneConfigStack.slice(0,n),s=r.concat([e]),u=s.length-1,c=o.concat([a()]),l=i.concat([this.props.configureScene(e)]),p=function(){t._enableScene(u),t._transitionTo(u),t._resetUpdatingRange()};this.setState({idStack:c,routeStack:s,sceneConfigStack:l,updatingRangeStart:s.length-1,updatingRangeLength:1},p)},_popN:function(e){var t=this;if(0!==e){P(this.state.presentedIndex-e>=0,"Cannot pop below zero");var n=this.state.presentedIndex-e;this._enableScene(n),this._transitionTo(n,null,null,function(){t._cleanScenesPastIndex(n)})}},pop:function(){this._popN(1)},replaceAtIndex:function(e,t,n){var r=this;if(P(!!e,"Must supply route to replace"),0>t&&(t+=this.state.routeStack.length),!(this.state.routeStack.length<=t)){var o=this.state.idStack.slice(),i=this.state.routeStack.slice(),s=this.state.sceneConfigStack.slice();o[t]=a(),i[t]=e,s[t]=this.props.configureScene(e),this.setState({idStack:o,routeStack:i,sceneConfigStack:s,updatingRangeStart:t,updatingRangeLength:1},function(){r._resetUpdatingRange(),t===r.state.presentedIndex&&(r._emitWillFocus(e),r._emitDidFocus(e)),n&&n()})}},replace:function(e){this.replaceAtIndex(e,this.state.presentedIndex)},replacePrevious:function(e){this.replaceAtIndex(e,this.state.presentedIndex-1)},popToTop:function(){this.popToRoute(this.state.routeStack[0])},popToRoute:function(e){var t=this.state.routeStack.indexOf(e);P(-1!==t,"Calling popToRoute for a route that doesn't exist!");var n=this.state.presentedIndex-t;this._popN(n)},replacePreviousAndPop:function(e){this.state.routeStack.length<2||(this.replacePrevious(e),this.pop())},resetTo:function(e){var t=this;P(!!e,"Must supply route to push"),this.replaceAtIndex(e,0,function(){t.state.presentedIndex>0&&t._popN(t.state.presentedIndex)})},getCurrentRoutes:function(){return this.state.routeStack},_handleItemRef:function(e,t,n){this._itemRefs[e]=n;var r=this.state.idStack.indexOf(e);-1!==r&&this.props.onItemRef&&this.props.onItemRef(n,r,t)},_cleanScenesPastIndex:function(e){var t=this,n=e+1;if(n<this.state.routeStack.length){var r=n,o=this.state.routeStack.length-n+1;this.state.idStack.slice(n).map(function(e){t._itemRefs[e]=null}),this.setState({updatingRangeStart:r,updatingRangeLength:o,sceneConfigStack:this.state.sceneConfigStack.slice(0,n),idStack:this.state.idStack.slice(0,n),routeStack:this.state.routeStack.slice(0,n)},this._resetUpdatingRange)}},_renderOptimizedScenes:function(){var e=0!==this.state.updatingRangeLength;return e?_.createElement(b,{shouldUpdate:!0},_.createElement(w,s({style:A.transitioner},this.panGesture.panHandlers,{onTouchStart:this._handleTouchStart,onResponderTerminationRequest:this._handleResponderTerminationRequest}),this.state.routeStack.map(this._renderOptimizedScene))):_.createElement(b,{shouldUpdate:!1})},_renderOptimizedScene:function(e,t){var n=this,r=t>=this.state.updatingRangeStart&&t<=this.state.updatingRangeStart+this.state.updatingRangeLength,o=s({},this.navigatorContext,{route:e,setHandler:function(e){n.navigatorContext.setHandlerForIndex(t,e)},onWillFocus:function(e){n._subRouteFocus[t]=e,n.state.presentedIndex===t&&n._emitWillFocus(e)},onDidFocus:function(e){n._subRouteFocus[t]=e,n.state.presentedIndex===t&&n._emitDidFocus(e)}}),i=r?this._renderScene(e,t,o):null;return _.createElement(g,{navigatorContext:o,key:"nav"+t,shouldUpdate:r},i)},_renderScene:function(e,t,n){var r=this,o=this.props.renderScene(e,n),i=null;t!==this.state.presentedIndex&&(i=A.disabledScene);var a=o.ref;return null!=a&&"function"!=typeof a&&(console.warn("String refs are not supported for navigator scenes. Use a callback ref instead. Ignoring ref: "+a),a=null),_.createElement(w,{key:this.state.idStack[t],ref:"scene_"+t,onStartShouldSetResponderCapture:function(){return!!r.state.transitionFromIndex||!!r.state.activeGesture},style:[A.baseScene,this.props.sceneStyle,i]},_.cloneElement(o,{ref:function(n){r._handleItemRef(r.state.idStack[t],e,n),a&&a(n)}}))},_renderNavigationBar:function(){var e=this;return this.props.navigationBar?_.cloneElement(this.props.navigationBar,{ref:function(t){e._navBar=t},navigator:this.navigatorContext,navState:this.state}):null},render:function(){return _.createElement(w,{style:[A.container,this.props.style]},this._renderOptimizedScenes(),this._renderNavigationBar())}});o.exports=V}),__d("BackAndroid",["warning"],function(e,t,n,r,o,i){"use strict";function a(){s(!1,"BackAndroid is not supported on this platform.")}var s=t("warning"),u={exitApp:a,addEventListener:a,removeEventListener:a};o.exports=u}),__d("InteractionMixin",["InteractionManager"],function(e,t,n,r,o,i){"use strict";var a=t("InteractionManager"),s={componentWillUnmount:function(){for(;this._interactionMixinHandles.length;)a.clearInteractionHandle(this._interactionMixinHandles.pop())},_interactionMixinHandles:[],createInteractionHandle:function(){var e=a.createInteractionHandle();return this._interactionMixinHandles.push(e),e},clearInteractionHandle:function(e){a.clearInteractionHandle(e),this._interactionMixinHandles=this._interactionMixinHandles.filter(function(t){return t!==e})},runAfterInteractions:function(e){a.runAfterInteractions(e)}};o.exports=s}),__d("NavigatorBreadcrumbNavigationBar",["NavigatorBreadcrumbNavigationBarStyles","NavigatorNavigationBarStyles","React","StaticContainer.react","StyleSheet","View","invariant"],function(e,t,n,r,o,i){"use strict";var a=t("NavigatorBreadcrumbNavigationBarStyles"),s=t("NavigatorNavigationBarStyles"),u=t("React"),c=t("StaticContainer.react"),l=t("StyleSheet"),p=t("View"),d=t("invariant"),h=a.Interpolators,f=u.PropTypes,m=h.map(function(){return{style:{}}}),g=h.map(function(){return{style:{}}}),v=h.map(function(){return{style:{}}}),y=h.map(function(){return{style:{}}}),_=h.map(function(){return{style:{}}}),b=function(e){return void 0!==e.presentedIndex?e.presentedIndex:e.observedTopOfStack},S=function(e,t){return e===t?a.Center[e]:t>e?a.Left[e]:a.Right[e]},R=u.createClass({propTypes:{navigator:f.shape({push:f.func,pop:f.func,replace:f.func,popToRoute:f.func,popToTop:f.func}),routeMapper:f.shape({rightContentForRoute:f.func,titleContentForRoute:f.func,iconForRoute:f.func}),navState:u.PropTypes.shape({routeStack:u.PropTypes.arrayOf(u.PropTypes.object),idStack:u.PropTypes.arrayOf(u.PropTypes.number),presentedIndex:u.PropTypes.number}),style:p.propTypes.style},statics:{Styles:a},_updateIndexProgress:function(e,t,n,r){var o,i=r>n?e:1-e,a=t-n,s=t-r;d(h[t],"Cannot find breadcrumb interpolators for "+t),o=a>0&&0===s||s>0&&0===a?h[t].RightToCenter:0>a&&0===s||0>s&&0===a?h[t].CenterToLeft:a===s?h[t].RightToCenter:h[t].RightToLeft,o.Crumb(m[t].style,i)&&this.refs["crumb_"+t].setNativeProps(m[t]),o.Icon(g[t].style,i)&&this.refs["icon_"+t].setNativeProps(g[t]),o.Separator(v[t].style,i)&&this.refs["separator_"+t].setNativeProps(v[t]),o.Title(y[t].style,i)&&this.refs["title_"+t].setNativeProps(y[t]);var u=this.refs["right_"+t];u&&o.RightItem(_[t].style,i)&&u.setNativeProps(_[t])},updateProgress:function(e,t,n){for(var r=Math.max(t,n),o=Math.min(t,n),i=o;r>=i;i++)this._updateIndexProgress(e,i,t,n)},onAnimationStart:function(e,t){for(var n=Math.max(e,t),r=Math.min(e,t),o=r;n>=o;o++)this._setRenderViewsToHardwareTextureAndroid(o,!0)},onAnimationEnd:function(){for(var e=this.props.navState.routeStack.length-1,t=0;e>=t;t++)this._setRenderViewsToHardwareTextureAndroid(t,!1)},_setRenderViewsToHardwareTextureAndroid:function(e,t){var n={renderToHardwareTextureAndroid:t};this.refs["crumb_"+e].setNativeProps(n),this.refs["icon_"+e].setNativeProps(n),this.refs["separator_"+e].setNativeProps(n),this.refs["title_"+e].setNativeProps(n);var r=this.refs["right_"+e];r&&r.setNativeProps(n)},render:function(){var e=this.props.navState,t=e&&e.routeStack.map(this._renderOrReturnBreadcrumb),n=e.routeStack.map(this._renderOrReturnTitle),r=e.routeStack.map(this._renderOrReturnRightButton);return u.createElement(p,{style:[E.breadCrumbContainer,this.props.style]},n,t,r)},_renderOrReturnBreadcrumb:function(e,t){var n=this.props.navState.idStack[t],r=this.props.routeMapper,o=this.props.navigator,i=this.refs["crumbContainer"+n];if(i)return u.createElement(c,{ref:"crumbContainer"+n,key:"crumbContainer"+n,shouldUpdate:!1});var a=S(t,b(this.props.navState));return u.createElement(c,{ref:"crumbContainer"+n,key:"crumbContainer"+n,shouldUpdate:!1},u.createElement(p,{ref:"crumb_"+t,style:a.Crumb},u.createElement(p,{ref:"icon_"+t,style:a.Icon},r.iconForRoute(e,o)),u.createElement(p,{ref:"separator_"+t,style:a.Separator},r.separatorForRoute(e,o))))},_renderOrReturnTitle:function(e,t){var n=this.props.navState,r=n.idStack[t],o=this.refs["titleContainer"+r];if(o)return u.createElement(c,{ref:"titleContainer"+r,key:"titleContainer"+r,shouldUpdate:!1});var i=this.props.routeMapper,a=i.titleContentForRoute(n.routeStack[t],this.props.navigator),s=S(t,b(this.props.navState));return u.createElement(c,{ref:"titleContainer"+r,key:"titleContainer"+r,shouldUpdate:!1},u.createElement(p,{ref:"title_"+t,style:s.Title},a))},_renderOrReturnRightButton:function(e,t){var n=this.props.navState,r=this.props.routeMapper,o=n.idStack[t],i=this.refs["rightContainer"+o];if(i)return u.createElement(c,{ref:"rightContainer"+o,key:"rightContainer"+o,shouldUpdate:!1});var a=r.rightContentForRoute(n.routeStack[t],this.props.navigator);if(!a)return null;var s=S(t,b(this.props.navState));return u.createElement(c,{ref:"rightContainer"+o,key:"rightContainer"+o,shouldUpdate:!1},u.createElement(p,{ref:"right_"+t,style:s.RightItem},a))}}),E=l.create({breadCrumbContainer:{overflow:"hidden",position:"absolute",height:s.General.TotalNavHeight,top:0,left:0,right:0}});o.exports=R}),__d("NavigatorBreadcrumbNavigationBarStyles",["Dimensions","NavigatorNavigationBarStyles","buildStyleInterpolator","merge"],function(e,t,n,r,o,i){"use strict";for(var a=t("Dimensions"),s=t("NavigatorNavigationBarStyles"),u=t("buildStyleInterpolator"),c=t("merge"),l=a.get("window").width,p=s.General.StatusBarHeight,d=s.General.NavBarHeight,h=4,f=40,m=9,g=f+m,v=100,y=.6,_=10,b={position:"absolute",flexDirection:"row",top:p,width:g,height:d,backgroundColor:"transparent"},S={width:f,height:d},R={width:m,height:d},E={position:"absolute",top:p,height:d,backgroundColor:"transparent"},w=c(E,{left:0,right:0,alignItems:"center",height:d}),C={position:"absolute",top:p,right:h,overflow:"hidden",opacity:1,height:d,backgroundColor:"transparent"},T=[],I=[],P=[],x=0;_>x;x++){var M=g*x+h;T[x]={Crumb:c(b,{left:M}),Icon:c(S,{opacity:y}),Separator:c(R,{opacity:1}),Title:c(E,{left:M,opacity:0}),RightItem:c(C,{opacity:0})},I[x]={Crumb:c(b,{left:M}),Icon:c(S,{opacity:1}),Separator:c(R,{opacity:0}),Title:c(E,{left:M+f,opacity:1}),RightItem:c(C,{opacity:1})};var O=l-100;P[x]={Crumb:c(b,{left:O}),Icon:c(S,{opacity:0}),Separator:c(R,{opacity:0}),Title:c(E,{left:O+f,opacity:0}),RightItem:c(C,{opacity:0})}}I[0]={Crumb:c(b,{left:l/4}),Icon:c(S,{opacity:0}),Separator:c(R,{opacity:0}),Title:c(w,{opacity:1}),RightItem:I[0].RightItem},T[0].Title=c(w,{left:-l/4,opacity:0}),P[0].Title=c(w,{opacity:0});var D=function(e,t){return{Crumb:u({left:{type:"linear",from:e.Crumb.left,to:t.Crumb.left,min:0,max:1,extrapolate:!0}}),Icon:u({opacity:{type:"linear",from:e.Icon.opacity,to:t.Icon.opacity,min:0,max:1}}),Separator:u({opacity:{type:"linear",from:e.Separator.opacity,to:t.Separator.opacity,min:0,max:1}}),Title:u({opacity:{type:"linear",from:e.Title.opacity,to:t.Title.opacity,min:0,max:1},left:{type:"linear",from:e.Title.left,to:t.Title.left,min:0,max:1,extrapolate:!0}}),RightItem:u({opacity:{type:"linear",from:e.RightItem.opacity,to:t.RightItem.opacity,min:0,max:1,round:v}})}},N=I.map(function(e,t){return{RightToCenter:D(P[t],I[t]),CenterToLeft:D(I[t],T[t]),RightToLeft:D(P[t],T[t])}});o.exports={Interpolators:N,Left:T,Center:I,Right:P,IconWidth:f,IconHeight:d,SeparatorWidth:m,SeparatorHeight:d}}),__d("NavigatorNavigationBarStyles",["Dimensions","buildStyleInterpolator","merge"],function(e,t,n,r,o,i){"use strict";function a(e,t){return{Title:u({opacity:{type:"linear",from:e.Title.opacity,to:t.Title.opacity,min:0,max:1},left:{type:"linear",from:e.Title.left,to:t.Title.left,min:0,max:1,extrapolate:!0}}),LeftButton:u({opacity:{type:"linear",from:e.LeftButton.opacity,to:t.LeftButton.opacity,min:0,max:1,round:g},left:{type:"linear",from:e.LeftButton.left,to:t.LeftButton.left,min:0,max:1}}),RightButton:u({opacity:{type:"linear",from:e.RightButton.opacity,to:t.RightButton.opacity,min:0,max:1,round:g},left:{type:"linear",from:e.RightButton.left,to:t.RightButton.left,min:0,max:1,extrapolate:!0}})}}var s=t("Dimensions"),u=t("buildStyleInterpolator"),c=t("merge"),l=s.get("window").width,p=44,d=20,h=p+d,f={Title:{position:"absolute",top:d,left:0,alignItems:"center",width:l,height:p,backgroundColor:"transparent"},LeftButton:{position:"absolute",top:d,left:0,overflow:"hidden",opacity:1,width:l/3,height:p,backgroundColor:"transparent"},RightButton:{position:"absolute",top:d,left:2*l/3,overflow:"hidden",opacity:1,alignItems:"flex-end",width:l/3,height:p,backgroundColor:"transparent"}},m={Left:{Title:c(f.Title,{left:-l/2,opacity:0}),LeftButton:c(f.LeftButton,{left:-l/3,opacity:1}),RightButton:c(f.RightButton,{left:l/3,opacity:0})},Center:{Title:c(f.Title,{left:0,opacity:1}),LeftButton:c(f.LeftButton,{left:0,opacity:1}),RightButton:c(f.RightButton,{left:2*l/3-0,opacity:1})},Right:{Title:c(f.Title,{left:l/2,opacity:0}),LeftButton:c(f.LeftButton,{left:0,opacity:0}),RightButton:c(f.RightButton,{left:l,opacity:0})}},g=100,v={RightToCenter:a(m.Right,m.Center),CenterToLeft:a(m.Center,m.Left),RightToLeft:a(m.Right,m.Left)};o.exports={General:{NavBarHeight:p,StatusBarHeight:d,TotalNavHeight:h},Interpolators:v,Stages:m}}),__d("buildStyleInterpolator",["keyOf"],function(e,t,n,r,o,i){for(var a=t("keyOf"),s=a({x:null}),u=a({y:null}),c=a({z:null}),l=a({w:null}),p=a({transformRotateRadians:null}),d={transformRotateRadians:!0,transformScale:!0,transformTranslate:!0},h={transformRotateRadians:[0,0,0,1],transformTranslate:[0,0,0],transformScale:[1,1,1]},f=/([^\s,]+)/g,m=function(e,t){var n=e.toString(),r=n.slice(n.indexOf("(")+1,n.indexOf(")")).match(f)||[],o=r.map(function(e){return"\\b"+e+"\\b"}).join("|"),i=new RegExp(o,"g"),a=n.substring(n.indexOf("{")+1,n.lastIndexOf("}")-1),s=a.replace(i,function(e){var n=r.indexOf(e),o=t[n];return o});return s.split("\n")},g={unroll:function(e,t,n,r,o,i,a,s,u,c,l,p,d,h,f,m,g){t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=e[6],u=e[7],c=e[8],l=e[9],p=e[10],d=e[11],h=e[12],f=e[13],m=e[14],g=e[15]},matrixDiffers:function(e,t,n,r,o,i,a,s,u,c,l,p,d,h,f,m,g,v){e=e||n!==t[0]||r!==t[1]||o!==t[2]||i!==t[3]||a!==t[4]||s!==t[5]||u!==t[6]||c!==t[7]||l!==t[8]||p!==t[9]||d!==t[10]||h!==t[11]||f!==t[12]||m!==t[13]||g!==t[14]||v!==t[15]},transformScale:function(e,t){var n=t[0],r=t[1],o=t[2];e[0]=e[0]*n,e[1]=e[1]*n,e[2]=e[2]*n,e[3]=e[3]*n,e[4]=e[4]*r,e[5]=e[5]*r,e[6]=e[6]*r,e[7]=e[7]*r,e[8]=e[8]*o,e[9]=e[9]*o,e[10]=e[10]*o,e[11]=e[11]*o,e[12]=e[12],e[13]=e[13],e[14]=e[14],e[15]=e[15]},transformTranslate:function(e,t){var n=t[0],r=t[1],o=t[2];e[12]=e[0]*n+e[4]*r+e[8]*o+e[12],e[13]=e[1]*n+e[5]*r+e[9]*o+e[13],e[14]=e[2]*n+e[6]*r+e[10]*o+e[14],e[15]=e[3]*n+e[7]*r+e[11]*o+e[15]},transformRotateRadians:function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n+n,s=r+r,u=o+o,c=n*a,l=n*s,p=n*u,d=r*s,h=r*u,f=o*u,m=i*a,g=i*s,v=i*u,y=1-(d+f),_=l+v,b=p-g,S=l-v,R=1-(c+f),E=h+m,w=p+g,C=h-m,T=1-(c+d),I=e[0],P=e[1],x=e[2],M=e[3],O=e[4],D=e[5],N=e[6],k=e[7],A=e[8],L=e[9],V=e[10],B=e[11],j=y,F=_,H=b;e[0]=j*I+F*O+H*A,e[1]=j*P+F*D+H*L,e[2]=j*x+F*N+H*V,e[3]=j*M+F*k+H*B,j=S,F=R,H=E,e[4]=j*I+F*O+H*A,e[5]=j*P+F*D+H*L,e[6]=j*x+F*N+H*V,e[7]=j*M+F*k+H*B,j=w,F=C,H=T,e[8]=j*I+F*O+H*A,e[9]=j*P+F*D+H*L,e[10]=j*x+F*N+H*V,e[11]=j*M+F*k+H*B}},v={transformScale:function(e,t){e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1},transformTranslate:function(e,t){e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1},transformRotateRadians:function(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=n+n,s=r+r,u=o+o,c=n*a,l=n*s,p=n*u,d=r*s,h=r*u,f=o*u,m=i*a,g=i*s,v=i*u,y=1-(d+f),_=l+v,b=p-g,S=l-v,R=1-(c+f),E=h+m,w=p+g,C=h-m,T=1-(c+d),I=y,P=_,x=b;e[0]=I,e[1]=P,e[2]=x,e[3]=0,I=S,P=R,x=E,e[4]=I,e[5]=P,e[6]=x,e[7]=0,I=w,P=C,x=T,e[8]=I,e[9]=P,e[10]=x,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1}},y=function(e,t){return" if (!didChange) {\n var prevVal = result."+e+";\n result."+e+" = "+t+";\n didChange = didChange || ("+t+" !== prevVal);\n } else {\n result."+e+" = "+t+";\n }\n"},_=(function(e,t,n,r){var o="round"in e,i=e.round,a=" ratio = (value - "+e.min+") / "+(e.max-e.min)+";\n";e.extrapolate||(a+=" ratio = ratio > 1 ? 1 : (ratio < 0 ? 0 : ratio);\n");var s=o?"Math.round("+i+" * ":"",u=o?") / "+i:"";return a+=" "+r+" = "+s+"("+t+" * (1 - ratio) + "+n+" * ratio)"+u+";\n"}),b=function(e){return _(e,e.from,e.to,"nextScalarVal")},S=function(e){var t=JSON.stringify(e.value);return" nextScalarVal = "+t+";\n"},R=function(e){return" nextScalarVal = value >= "+(e.threshold+" ? "+e.to+" : "+e.from)+";\n"},E=function(e){return" nextScalarVal = value;\n"},w=function(e){return e+"ReuseOp"},C=function(e){var t="";for(var n in e)d[n]&&(t+="var "+w(n)+" = [];\n");return t},T=function(e){return"\n"+e.join("\n")+"\n"},I=function(e,t,n,r){var o=w(t)+"["+r+"]";return void 0!==e.from[n]&&void 0!==e.to[n]?" "+e.from[n]!==e.to[n]?_(e,e.from[n],e.to[n],o):o+" = "+e.from[n]+";":" "+o+" = "+h[t][r]+";"},P=[],x=0;16>x;x++)P.push("m"+x);var M=function(e){var t=[" var transformMatrix = result.transformMatrix !== undefined ? result.transformMatrix : (result.transformMatrix = []);"];t.push.apply(t,m(g.unroll,["transformMatrix"].concat(P)));for(var n=0;n<e.length;n++){var r=e[n];0===n?t.push.apply(t,m(v[r],["transformMatrix",w(r)])):t.push.apply(t,m(g[r],["transformMatrix",w(r)]))}return t.push.apply(t,m(g.matrixDiffers,["didChange","transformMatrix"].concat(P))),t},O={transformTranslate:!0,transformRotateRadians:!0,transformScale:!0},D=function(e){var t=[],n="return (function() {\n";n+=C(e),n+="return function(result, value) {\n",n+=" var didChange = false;\n",n+=" var nextScalarVal;\n",n+=" var ratio;\n";for(var r in e){var o=e[r];if("linear"===o.type)if(O[r]){t.push(r);var i=[I(o,r,s,0),I(o,r,u,1),I(o,r,c,2)];r===p&&i.push(I(o,r,l,3)),n+=T(i)}else n+=b(o,"nextScalarVal"),n+=y(r,"nextScalarVal");else"constant"===o.type?(n+=S(o),n+=y(r,"nextScalarVal")):"step"===o.type?(n+=R(o),n+=y(r,"nextScalarVal")):"identity"===o.type&&(n+=E(o),n+=y(r,"nextScalarVal"))}return t.length&&(n+=T(M(t))),n+=" return didChange;\n",n+="};\n",n+="})()"},N=function(e){return Function(D(e))()};o.exports=N}),__d("StaticContainer.react",["React","onlyChild"],function(e,t,n,r,o,i){var a=t("React"),s=t("onlyChild"),u=a.createClass({shouldComponentUpdate:function(e){return e.shouldUpdate},render:function(){return s(this.props.children)}});o.exports=u}),__d("NavigatorInterceptor",["React","getNavigatorContext"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("React"),u=t("getNavigatorContext"),c=s.createClass({contextTypes:{navigator:s.PropTypes.object},componentWillMount:function(){this.navigator=u(this)},componentDidMount:function(){this.navigator.setHandler(this._navigatorHandleRequest)},childContextTypes:{navigator:s.PropTypes.object},getChildContext:function(){var e=this;return{navigator:a({},this.navigator,{setHandler:function(t){e._childNavigationHandler=t}})}},componentWillUnmount:function(){this.navigator.setHandler(null)},_navigatorHandleRequest:function(e,t,n){return this._interceptorHandle(e,t,n)?!0:this._childNavigationHandler&&this._childNavigationHandler(e,t,n)?!0:void 0},_interceptorHandle:function(e,t,n){if(this.props.onRequest&&this.props.onRequest(e,t,n))return!0;switch(e){case"pop":return this.props.onPopRequest&&this.props.onPopRequest(t,n);case"popTo":return this.props.onPopToRequest&&this.props.onPopToRequest(t,n);case"push":return this.props.onPushRequest&&this.props.onPushRequest(t,n);default:return!1}},render:function(){return this.props.children}});o.exports=c}),__d("getNavigatorContext",["ReactInstanceMap"],function(e,t,n,r,o,i){"use strict";function a(e){return s.get(e)._context.navigator}var s=t("ReactInstanceMap");o.exports=a}),__d("NavigatorNavigationBar",["React","NavigatorNavigationBarStyles","StaticContainer.react","StyleSheet","View"],function(e,t,n,r,o,i){"use strict";var a=t("React"),s=t("NavigatorNavigationBarStyles"),u=t("StaticContainer.react"),c=t("StyleSheet"),l=t("View"),p=["Title","LeftButton","RightButton"],d=function(e){return void 0!==e.presentedIndex?e.presentedIndex:e.observedTopOfStack},h=a.createClass({propTypes:{navigator:a.PropTypes.object,routeMapper:a.PropTypes.shape({Title:a.PropTypes.func.isRequired,LeftButton:a.PropTypes.func.isRequired,RightButton:a.PropTypes.func.isRequired}),navState:a.PropTypes.shape({routeStack:a.PropTypes.arrayOf(a.PropTypes.object),idStack:a.PropTypes.arrayOf(a.PropTypes.number),presentedIndex:a.PropTypes.number}),style:l.propTypes.style},statics:{Styles:s},_getReusableProps:function(e,t){this._reusableProps||(this._reusableProps={});var n=this._reusableProps[e];n||(n=this._reusableProps[e]=[]);var r=n[t];return r||(r=n[t]={style:{}}),r},_updateIndexProgress:function(e,t,n,r){var o,i=r>n?e:1-e,a=t-n,u=t-r;o=a>0&&0===u||u>0&&0===a?s.Interpolators.RightToCenter:0>a&&0===u||0>u&&0===a?s.Interpolators.CenterToLeft:a===u?s.Interpolators.RightToCenter:s.Interpolators.RightToLeft,p.forEach(function(e){var n=this.refs[e+t],r=this._getReusableProps(e,t);n&&o[e](r.style,i)&&n.setNativeProps(r)},this)},updateProgress:function(e,t,n){for(var r=Math.max(t,n),o=Math.min(t,n),i=o;r>=i;i++)this._updateIndexProgress(e,i,t,n)},render:function(){var e=this.props.navState,t=p.map(function(t){return e.routeStack.map(this._renderOrReturnComponent.bind(this,t))},this);return a.createElement(l,{style:[f.navBarContainer,this.props.style]},t)},_renderOrReturnComponent:function(e,t,n){var r=this.props.navState,o=r.idStack[n],i=e+"Container"+o,c=this.refs[i];if(c)return a.createElement(u,{ref:i,key:i,shouldUpdate:!1});var p=this.props.routeMapper[e](r.routeStack[n],this.props.navigator,n,this.props.navState);if(!p)return null;var h=n===d(this.props.navState)?s.Stages.Center:s.Stages.Left;return a.createElement(u,{ref:i,key:i,shouldUpdate:!1},a.createElement(l,{ref:e+n,style:h[e]},p))}}),f=c.create({navBarContainer:{position:"absolute",height:s.General.TotalNavHeight,top:0,left:0,right:0,backgroundColor:"transparent"}});o.exports=h}),__d("NavigatorSceneConfigs",["Dimensions","PixelRatio","buildStyleInterpolator"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("Dimensions"),u=t("PixelRatio"),c=t("buildStyleInterpolator"),l=s.get("window").width,p=s.get("window").height,d={transformTranslate:{from:{x:0,y:0,z:0},to:{x:-Math.round(.3*s.get("window").width),y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:u.get()},transformScale:{from:{x:1,y:1,z:1},to:{x:.95,y:.95,z:1},min:0,max:1,type:"linear",extrapolate:!0},opacity:{from:1,to:.3,min:0,max:1,type:"linear",extrapolate:!1,round:100},translateX:{from:0,to:-Math.round(.3*s.get("window").width),min:0,max:1,type:"linear",extrapolate:!0,round:u.get()},scaleX:{from:1,to:.95,min:0,max:1,type:"linear",extrapolate:!0},scaleY:{from:1,to:.95,min:0,max:1,type:"linear",extrapolate:!0}},h=a({},d,{transformTranslate:{from:{x:0,y:0,z:0},to:{x:Math.round(.3*l),y:0,z:0}},translateX:{from:0,to:Math.round(.3*l)}}),f={opacity:{from:0,to:1,min:.5,max:1,type:"linear",extrapolate:!1,round:100}},m={opacity:{from:1,to:0,min:0,max:.5,type:"linear",extrapolate:!1,round:100}},g={transformTranslate:{from:{x:0,y:0,z:0},to:{x:-s.get("window").width,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:u.get()},opacity:{value:1,type:"constant"},translateX:{from:0,to:-s.get("window").width,min:0,max:1,type:"linear",extrapolate:!0,round:u.get()}},v={opacity:{value:1,type:"constant"},transformTranslate:{from:{x:s.get("window").width,y:0,z:0},to:{x:0,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:u.get()},translateX:{from:s.get("window").width,to:0,min:0,max:1,type:"linear",extrapolate:!0,round:u.get()},scaleX:{value:1,type:"constant"},scaleY:{value:1,type:"constant"}},y=a({},v,{transformTranslate:{from:{x:-l,y:0,z:0},to:{x:0,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:u.get()},translateX:{from:-l,to:0,min:0,max:1,type:"linear",extrapolate:!0,round:u.get()}}),_={transformTranslate:{from:{x:0,y:0,z:0},to:{x:0,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:u.get()},transformScale:{from:{x:1,y:1,z:1},to:{x:.95,y:.95,z:1},min:0,max:1,type:"linear",extrapolate:!0},opacity:{from:1,to:.3,min:0,max:1,type:"linear",extrapolate:!1,round:100},scaleX:{from:1,to:.95,min:0,max:1,type:"linear",extrapolate:!0},scaleY:{from:1,to:.95,min:0,max:1,type:"linear",extrapolate:!0}},b={opacity:{value:1,type:"constant"},transformTranslate:{from:{x:0,y:s.get("window").height,z:0},to:{x:0,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:u.get()},translateY:{from:s.get("window").height,to:0,min:0,max:1,type:"linear",extrapolate:!0,round:u.get()},scaleX:{value:1,type:"constant"},scaleY:{value:1,type:"constant"}},S={opacity:{value:1,type:"constant"}},R={opacity:{from:0,to:1,min:0,max:1,type:"linear",extrapolate:!1,round:100},transformTranslate:{from:{x:0,y:50,z:0},to:{x:0,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:u.get()},translateY:{from:50,to:0,min:0,max:1,type:"linear",extrapolate:!0,round:u.get()}},E={frictionConstant:1,frictionByDistance:1.5},w={isDetachable:!1,gestureDetectMovement:2,notMoving:.3,directionRatio:.66,snapVelocity:2,edgeHitWidth:30,stillCompletionRatio:.6,fullDistance:l,direction:"left-to-right"},C=a({},w,{direction:"right-to-left"}),T={gestures:{pop:w},springFriction:26,springTension:200,defaultTransitionVelocity:1.5,animationInterpolators:{into:c(v),out:c(d)}},I={PushFromRight:a({},T),FloatFromRight:a({},T),FloatFromLeft:a({},T,{animationInterpolators:{into:c(y),out:c(h)}}),FloatFromBottom:a({},T,{gestures:{pop:a({},w,{edgeHitWidth:150,direction:"top-to-bottom",fullDistance:p})},animationInterpolators:{into:c(b),out:c(_)}}),FloatFromBottomAndroid:a({},T,{gestures:null,animationInterpolators:{into:c(R),out:c(S)}}),FadeAndroid:a({},T,{gestures:null,animationInterpolators:{into:c(f),out:c(m)}}),HorizontalSwipeJump:a({},T,{gestures:{jumpBack:a({},w,{overswipe:E,edgeHitWidth:null,isDetachable:!0}),jumpForward:a({},C,{overswipe:E,edgeHitWidth:null,isDetachable:!0})},animationInterpolators:{into:c(v),out:c(g)}})};o.exports=I}),__d("NavigatorStaticContextContainer",["React","StaticContainer.react"],function(e,t,n,r,o,i){"use strict";var a=t("React"),s=t("StaticContainer.react"),u=a.PropTypes,c=a.createClass({
childContextTypes:{navigator:u.object},getChildContext:function(){return{navigator:this.props.navigatorContext}},render:function(){return a.createElement(s,this.props)}});o.exports=c}),__d("PanResponder",["TouchHistoryMath"],function(e,t,n,r,o,i){"use strict";var a=t("TouchHistoryMath"),s=a.currentCentroidXOfTouchesChangedAfter,u=a.currentCentroidYOfTouchesChangedAfter,c=a.previousCentroidXOfTouchesChangedAfter,l=a.previousCentroidYOfTouchesChangedAfter,p=a.currentCentroidX,d=a.currentCentroidY,h={_initializeGestureState:function(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove:function(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=s(t,e._accountsForMovesUpTo),e.moveY=u(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,r=c(t,n),o=s(t,n),i=l(t,n),a=u(t,n),p=e.dx+(o-r),d=e.dy+(a-i),h=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(p-e.dx)/h,e.vy=(d-e.dy)/h,e.dx=p,e.dy=d,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create:function(e){var t={stateID:Math.random()};h._initializeGestureState(t);var n={onStartShouldSetResponder:function(n){return void 0===e.onStartShouldSetPanResponder?!1:e.onStartShouldSetPanResponder(n,t)},onMoveShouldSetResponder:function(n){return void 0===e.onMoveShouldSetPanResponder?!1:e.onMoveShouldSetPanResponder(n,t)},onStartShouldSetResponderCapture:function(n){return 1===n.nativeEvent.touches.length&&h._initializeGestureState(t),t.numberActiveTouches=n.touchHistory.numberActiveTouches,void 0!==e.onStartShouldSetPanResponderCapture?e.onStartShouldSetPanResponderCapture(n,t):!1},onMoveShouldSetResponderCapture:function(n){var r=n.touchHistory;return t._accountsForMovesUpTo===r.mostRecentTimeStamp?!1:(h._updateGestureStateOnMove(t,r),e.onMoveShouldSetResponderCapture?e.onMoveShouldSetPanResponderCapture(n,t):!1)},onResponderGrant:function(n){t.x0=p(n.touchHistory),t.y0=d(n.touchHistory),t.dx=0,t.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(n,t)},onResponderReject:function(n){e.onPanResponderReject&&e.onPanResponderReject(n,t)},onResponderRelease:function(n){e.onPanResponderRelease&&e.onPanResponderRelease(n,t),h._initializeGestureState(t)},onResponderStart:function(n){var r=n.touchHistory;t.numberActiveTouches=r.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(n,t)},onResponderMove:function(n){var r=n.touchHistory;t._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(h._updateGestureStateOnMove(t,r),e.onPanResponderMove&&e.onPanResponderMove(n,t))},onResponderEnd:function(n){var r=n.touchHistory;t.numberActiveTouches=r.numberActiveTouches,e.onPanResponderEnd&&e.onPanResponderEnd(n,t)},onResponderTerminate:function(n){e.onPanResponderTerminate&&e.onPanResponderTerminate(n,t),h._initializeGestureState(t)},onResponderTerminationRequest:function(n){return void 0===e.onPanResponderTerminationRequest?!0:e.onPanResponderTerminationRequest(n,t)}};return{panHandlers:n}}};o.exports=h}),__d("TouchHistoryMath",[],function(e,t,n,r,o,i){"use strict";var a={centroidDimension:function(e,t,n,r){var o=e.touchBank,i=0,s=0,u=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==u)u.touchActive&&u.currentTimeStamp>t&&(i+=r&&n?u.currentPageX:r&&!n?u.currentPageY:!r&&n?u.previousPageX:u.previousPageY,s=1);else for(var c=0;c<o.length;c++){var l=o[c];if(null!==l&&void 0!==l&&l.touchActive&&l.currentTimeStamp>=t){var p;p=r&&n?l.currentPageX:r&&!n?l.currentPageY:!r&&n?l.previousPageX:l.previousPageY,i+=p,s++}}return s>0?i/s:a.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return a.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return a.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return a.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return a.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return a.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return a.centroidDimension(e,0,!1,!0)},noCentroid:-1};o.exports=a}),__d("clamp",[],function(e,t,n,r,o,i){function a(e,t,n){return e>t?e:t>n?n:t}o.exports=a}),__d("rebound/rebound",[],function(e,t,n,r,o,i){!function(){function e(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)}var t={},n=t.util={},r=Array.prototype.concat,o=Array.prototype.slice;n.bind=function(e,t){var n=o.call(arguments,2);return function(){e.apply(t,r.call(n,o.call(arguments)))}},n.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};var a=t.SpringSystem=function(e){this._springRegistry={},this._activeSprings=[],this.listeners=[],this._idleSpringIndices=[],this.looper=e||new l,this.looper.springSystem=this};n.extend(a.prototype,{_springRegistry:null,_isIdle:!0,_lastTimeMillis:-1,_activeSprings:null,listeners:null,_idleSpringIndices:null,setLooper:function(e){this.looper=e,e.springSystem=this},createSpring:function(e,t){var n;return n=void 0===e||void 0===t?c.DEFAULT_ORIGAMI_SPRING_CONFIG:c.fromOrigamiTensionAndFriction(e,t),this.createSpringWithConfig(n)},createSpringWithBouncinessAndSpeed:function(e,t){var n;return n=void 0===e||void 0===t?c.DEFAULT_ORIGAMI_SPRING_CONFIG:c.fromBouncinessAndSpeed(e,t),this.createSpringWithConfig(n)},createSpringWithConfig:function(e){var t=new s(this);return this.registerSpring(t),t.setSpringConfig(e),t},getIsIdle:function(){return this._isIdle},getSpringById:function(e){return this._springRegistry[e]},getAllSprings:function(){var e=[];for(var t in this._springRegistry)this._springRegistry.hasOwnProperty(t)&&e.push(this._springRegistry[t]);return e},registerSpring:function(e){this._springRegistry[e.getId()]=e},deregisterSpring:function(t){e(this._activeSprings,t),delete this._springRegistry[t.getId()]},advance:function(e,t){for(;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(var n=0,r=this._activeSprings.length;r>n;n++){var o=this._activeSprings[n];o.systemShouldAdvance()?o.advance(e/1e3,t/1e3):this._idleSpringIndices.push(this._activeSprings.indexOf(o))}for(;this._idleSpringIndices.length>0;){var i=this._idleSpringIndices.pop();i>=0&&this._activeSprings.splice(i,1)}},loop:function(e){var t;-1===this._lastTimeMillis&&(this._lastTimeMillis=e-1);var n=e-this._lastTimeMillis;this._lastTimeMillis=e;var r=0,o=this.listeners.length;for(r=0;o>r;r++)t=this.listeners[r],t.onBeforeIntegrate&&t.onBeforeIntegrate(this);for(this.advance(e,n),0===this._activeSprings.length&&(this._isIdle=!0,this._lastTimeMillis=-1),r=0;o>r;r++)t=this.listeners[r],t.onAfterIntegrate&&t.onAfterIntegrate(this);this._isIdle||this.looper.run()},activateSpring:function(e){var t=this._springRegistry[e];-1==this._activeSprings.indexOf(t)&&this._activeSprings.push(t),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},addListener:function(e){this.listeners.push(e)},removeListener:function(t){e(this.listeners,t)},removeAllListeners:function(){this.listeners=[]}});var s=t.Spring=function g(e){this._id="s"+g._ID++,this._springSystem=e,this.listeners=[],this._currentState=new u,this._previousState=new u,this._tempState=new u};n.extend(s,{_ID:0,MAX_DELTA_TIME_SEC:.064,SOLVER_TIMESTEP_SEC:.001}),n.extend(s.prototype,{_id:0,_springConfig:null,_overshootClampingEnabled:!1,_currentState:null,_previousState:null,_tempState:null,_startValue:0,_endValue:0,_wasAtRest:!0,_restSpeedThreshold:.001,_displacementFromRestThreshold:.001,listeners:null,_timeAccumulator:0,_springSystem:null,destroy:function(){this.listeners=[],this.frames=[],this._springSystem.deregisterSpring(this)},getId:function(){return this._id},setSpringConfig:function(e){return this._springConfig=e,this},getSpringConfig:function(){return this._springConfig},setCurrentValue:function(e,t){return this._startValue=e,this._currentState.position=e,t||this.setAtRest(),this.notifyPositionUpdated(!1,!1),this},getStartValue:function(){return this._startValue},getCurrentValue:function(){return this._currentState.position},getCurrentDisplacementDistance:function(){return this.getDisplacementDistanceForState(this._currentState)},getDisplacementDistanceForState:function(e){return Math.abs(this._endValue-e.position)},setEndValue:function(e){if(this._endValue==e&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=e,this._springSystem.activateSpring(this.getId());for(var t=0,n=this.listeners.length;n>t;t++){var r=this.listeners[t],o=r.onSpringEndStateChange;o&&o(this)}return this},getEndValue:function(){return this._endValue},setVelocity:function(e){return e===this._currentState.velocity?this:(this._currentState.velocity=e,this._springSystem.activateSpring(this.getId()),this)},getVelocity:function(){return this._currentState.velocity},setRestSpeedThreshold:function(e){return this._restSpeedThreshold=e,this},getRestSpeedThreshold:function(){return this._restSpeedThreshold},setRestDisplacementThreshold:function(e){this._displacementFromRestThreshold=e},getRestDisplacementThreshold:function(){return this._displacementFromRestThreshold},setOvershootClampingEnabled:function(e){return this._overshootClampingEnabled=e,this},isOvershootClampingEnabled:function(){return this._overshootClampingEnabled},isOvershooting:function(){var e=this._startValue,t=this._endValue;return this._springConfig.tension>0&&(t>e&&this.getCurrentValue()>t||e>t&&this.getCurrentValue()<t)},advance:function(e,t){var n=this.isAtRest();if(!n||!this._wasAtRest){var r=t;t>s.MAX_DELTA_TIME_SEC&&(r=s.MAX_DELTA_TIME_SEC),this._timeAccumulator+=r;for(var o,i,a,u,c,l,p,d,h,f,m=this._springConfig.tension,g=this._springConfig.friction,v=this._currentState.position,y=this._currentState.velocity,_=this._tempState.position,b=this._tempState.velocity;this._timeAccumulator>=s.SOLVER_TIMESTEP_SEC;)this._timeAccumulator-=s.SOLVER_TIMESTEP_SEC,this._timeAccumulator<s.SOLVER_TIMESTEP_SEC&&(this._previousState.position=v,this._previousState.velocity=y),o=y,i=m*(this._endValue-_)-g*y,_=v+o*s.SOLVER_TIMESTEP_SEC*.5,b=y+i*s.SOLVER_TIMESTEP_SEC*.5,a=b,u=m*(this._endValue-_)-g*b,_=v+a*s.SOLVER_TIMESTEP_SEC*.5,b=y+u*s.SOLVER_TIMESTEP_SEC*.5,c=b,l=m*(this._endValue-_)-g*b,_=v+c*s.SOLVER_TIMESTEP_SEC*.5,b=y+l*s.SOLVER_TIMESTEP_SEC*.5,p=b,d=m*(this._endValue-_)-g*b,h=1/6*(o+2*(a+c)+p),f=1/6*(i+2*(u+l)+d),v+=h*s.SOLVER_TIMESTEP_SEC,y+=f*s.SOLVER_TIMESTEP_SEC;this._tempState.position=_,this._tempState.velocity=b,this._currentState.position=v,this._currentState.velocity=y,this._timeAccumulator>0&&this.interpolate(this._timeAccumulator/s.SOLVER_TIMESTEP_SEC),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),n=!0);var S=!1;this._wasAtRest&&(this._wasAtRest=!1,S=!0);var R=!1;n&&(this._wasAtRest=!0,R=!0),this.notifyPositionUpdated(S,R)}},notifyPositionUpdated:function(e,t){for(var n=0,r=this.listeners.length;r>n;n++){var o=this.listeners[n];e&&o.onSpringActivate&&o.onSpringActivate(this),o.onSpringUpdate&&o.onSpringUpdate(this),t&&o.onSpringAtRest&&o.onSpringAtRest(this)}},systemShouldAdvance:function(){return!this.isAtRest()||!this.wasAtRest()},wasAtRest:function(){return this._wasAtRest},isAtRest:function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||0===this._springConfig.tension)},setAtRest:function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},interpolate:function(e){this._currentState.position=this._currentState.position*e+this._previousState.position*(1-e),this._currentState.velocity=this._currentState.velocity*e+this._previousState.velocity*(1-e)},getListeners:function(){return this.listeners},addListener:function(e){return this.listeners.push(e),this},removeListener:function(t){return e(this.listeners,t),this},removeAllListeners:function(){return this.listeners=[],this},currentValueIsApproximately:function(e){return Math.abs(this.getCurrentValue()-e)<=this.getRestDisplacementThreshold()}});var u=function(){};n.extend(u.prototype,{position:0,velocity:0});var c=t.SpringConfig=function(e,t){this.tension=e,this.friction=t},l=t.AnimationLooper=function(){this.springSystem=null;var e=this,t=function(){e.springSystem.loop(Date.now())};this.run=function(){n.onFrame(t)}};t.SimulationLooper=function(e){this.springSystem=null;var t=0,n=!1;e=e||16.667,this.run=function(){if(!n){for(n=!0;!this.springSystem.getIsIdle();)this.springSystem.loop(t+=e);n=!1}}},t.SteppingSimulationLooper=function(e){this.springSystem=null;var t=0;this.run=function(){},this.step=function(e){this.springSystem.loop(t+=e)}};var p=t.OrigamiValueConverter={tensionFromOrigamiValue:function(e){return 3.62*(e-30)+194},origamiValueFromTension:function(e){return(e-194)/3.62+30},frictionFromOrigamiValue:function(e){return 3*(e-8)+25},origamiFromFriction:function(e){return(e-25)/3+8}},d=t.BouncyConversion=function(e,t){this.bounciness=e,this.speed=t;var n=this.normalize(e/1.7,0,20);n=this.projectNormal(n,0,.8);var r=this.normalize(t/1.7,0,20);this.bouncyTension=this.projectNormal(r,.5,200),this.bouncyFriction=this.quadraticOutInterpolation(n,this.b3Nobounce(this.bouncyTension),.01)};n.extend(d.prototype,{normalize:function(e,t,n){return(e-t)/(n-t)},projectNormal:function(e,t,n){return t+e*(n-t)},linearInterpolation:function(e,t,n){return e*n+(1-e)*t},quadraticOutInterpolation:function(e,t,n){return this.linearInterpolation(2*e-e*e,t,n)},b3Friction1:function(e){return 7e-4*Math.pow(e,3)-.031*Math.pow(e,2)+.64*e+1.28},b3Friction2:function(e){return 44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2},b3Friction3:function(e){return 4.5e-7*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84},b3Nobounce:function(e){var t=0;return t=18>=e?this.b3Friction1(e):e>18&&44>=e?this.b3Friction2(e):this.b3Friction3(e)}}),n.extend(c,{fromOrigamiTensionAndFriction:function(e,t){return new c(p.tensionFromOrigamiValue(e),p.frictionFromOrigamiValue(t))},fromBouncinessAndSpeed:function(e,n){var r=new t.BouncyConversion(e,n);return this.fromOrigamiTensionAndFriction(r.bouncyTension,r.bouncyFriction)},coastingConfigWithOrigamiFriction:function(e){return new c(0,p.frictionFromOrigamiValue(e))}}),c.DEFAULT_ORIGAMI_SPRING_CONFIG=c.fromOrigamiTensionAndFriction(40,7),n.extend(c.prototype,{friction:0,tension:0});var h={};n.hexToRGB=function(e){if(h[e])return h[e];e=e.replace("#",""),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=e.match(/.{2}/g),n={r:parseInt(t[0],16),g:parseInt(t[1],16),b:parseInt(t[2],16)};return h[e]=n,n},n.rgbToHex=function(e,t,n){return e=e.toString(16),t=t.toString(16),n=n.toString(16),e=e.length<2?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n,"#"+e+t+n};var f=t.MathUtil={mapValueInRange:function(e,t,n,r,o){var i=n-t,a=o-r,s=(e-t)/i;return r+s*a},interpolateColor:function(e,t,r,o,i,a){o=void 0===o?0:o,i=void 0===i?1:i,t=n.hexToRGB(t),r=n.hexToRGB(r);var s=Math.floor(n.mapValueInRange(e,o,i,t.r,r.r)),u=Math.floor(n.mapValueInRange(e,o,i,t.g,r.g)),c=Math.floor(n.mapValueInRange(e,o,i,t.b,r.b));return a?"rgb("+s+","+u+","+c+")":n.rgbToHex(s,u,c)},degreesToRadians:function(e){return e*Math.PI/180},radiansToDegrees:function(e){return 180*e/Math.PI}};n.extend(n,f);var m;"undefined"!=typeof window&&(m=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),m||"undefined"==typeof process||"node"!==process.title||(m=setImmediate),n.onFrame=function(e){return m(e)},"undefined"!=typeof i?n.extend(i,t):"undefined"!=typeof window&&(window.rebound=t)}()}),__d("NavigatorIOS",["EventEmitter","Image","React","ReactNativeViewAttributes","NativeModules","StyleSheet","StaticContainer.react","View","createReactNativeComponentClass","invariant","logError","merge"],function(e,t,n,r,o,i){"use strict";function a(){return R++}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=t("EventEmitter"),c=t("Image"),l=t("React"),p=t("ReactNativeViewAttributes"),d=t("NativeModules").NavigatorManager,h=t("StyleSheet"),f=t("StaticContainer.react"),m=t("View"),g=t("createReactNativeComponentClass"),v=t("invariant"),y=t("logError"),_=t("merge"),b="transitionerRef",S=l.PropTypes,R=0,E=g({validAttributes:_(p.UIView,{requestedTopOfStack:!0}),uiViewClassName:"RCTNavigator"}),w=g({validAttributes:{title:!0,barTintColor:!0,leftButtonIcon:!0,leftButtonTitle:!0,onNavLeftButtonTap:!0,rightButtonIcon:!0,rightButtonTitle:!0,onNavRightButtonTap:!0,backButtonIcon:!0,backButtonTitle:!0,tintColor:!0,navigationBarHidden:!0,titleTextColor:!0,style:!0},uiViewClassName:"RCTNavItem"}),C=l.createClass({requestSchedulingNavigation:function(e){d.requestSchedulingJavaScriptNavigation(l.findNodeHandle(this),y,e)},render:function(){return l.createElement(E,this.props)}}),T=l.createClass({propTypes:{initialRoute:S.shape({component:S.func.isRequired,title:S.string.isRequired,passProps:S.object,backButtonIcon:c.propTypes.source,backButtonTitle:S.string,leftButtonIcon:c.propTypes.source,leftButtonTitle:S.string,onLeftButtonPress:S.func,rightButtonIcon:c.propTypes.source,rightButtonTitle:S.string,onRightButtonPress:S.func,wrapperStyle:m.propTypes.style}).isRequired,navigationBarHidden:S.bool,itemWrapperStyle:m.propTypes.style,tintColor:S.string,barTintColor:S.string,titleTextColor:S.string},navigator:void 0,componentWillMount:function(){this.navigator={push:this.push,pop:this.pop,popN:this.popN,replace:this.replace,replacePrevious:this.replacePrevious,replacePreviousAndPop:this.replacePreviousAndPop,resetTo:this.resetTo,popToRoute:this.popToRoute,popToTop:this.popToTop}},getInitialState:function(){return{idStack:[a()],routeStack:[this.props.initialRoute],requestedTopOfStack:0,observedTopOfStack:0,progress:1,fromIndex:0,toIndex:0,makingNavigatorRequest:!1,updatingAllIndicesAtOrBeyond:0}},_toFocusOnNavigationComplete:void 0,_handleFocusRequest:function(e){this.state.makingNavigatorRequest?this._toFocusOnNavigationComplete=e:this._getFocusEmitter().emit("focus",e)},_focusEmitter:void 0,_getFocusEmitter:function(){var e=this._focusEmitter;return e||(e=new u,this._focusEmitter=e),e},getChildContext:function(){return{onFocusRequested:this._handleFocusRequest,focusEmitter:this._getFocusEmitter()}},childContextTypes:{onFocusRequested:l.PropTypes.func,focusEmitter:l.PropTypes.instanceOf(u)},_tryLockNavigator:function(e){this.refs[b].requestSchedulingNavigation(function(t){return t&&e()})},_handleNavigatorStackChanged:function(e){var t=e.nativeEvent.stackLength-1;v(t<=this.state.requestedTopOfStack,"No navigator item should be pushed without JS knowing about it %s %s",t,this.state.requestedTopOfStack);var n=this.state.requestedTopOfStack!==this.state.observedTopOfStack;n&&v(t===this.state.requestedTopOfStack,"If waiting for observedTopOfStack to reach requestedTopOfStack, the only valid observedTopOfStack should be requestedTopOfStack.");var r={observedTopOfStack:t,makingNavigatorRequest:!1,updatingAllIndicesAtOrBeyond:null,progress:1,toIndex:t,fromIndex:t};this.setState(r,this._eliminateUnneededChildren)},_eliminateUnneededChildren:function(){var e=this.state.routeStack.length>this.state.observedTopOfStack+1?this.state.observedTopOfStack+1:null;this.setState({idStack:this.state.idStack.slice(0,this.state.observedTopOfStack+1),routeStack:this.state.routeStack.slice(0,this.state.observedTopOfStack+1),requestedTopOfStack:this.state.observedTopOfStack,makingNavigatorRequest:!0,updatingAllIndicesAtOrBeyond:e})},push:function(e){var t=this;v(!!e,"Must supply route to push"),this.state.requestedTopOfStack===this.state.observedTopOfStack&&this._tryLockNavigator(function(){var n=t.state.routeStack.concat([e]),r=t.state.idStack.concat([a()]);t.setState({idStack:r,routeStack:n,requestedTopOfStack:n.length-1,makingNavigatorRequest:!0,updatingAllIndicesAtOrBeyond:n.length-1})})},popN:function(e){var t=this;0!==e&&this.state.requestedTopOfStack===this.state.observedTopOfStack&&this.state.requestedTopOfStack>0&&this._tryLockNavigator(function(){v(t.state.requestedTopOfStack-e>=0,"Cannot pop below 0"),t.setState({requestedTopOfStack:t.state.requestedTopOfStack-e,makingNavigatorRequest:!0,updatingAllIndicesAtOrBeyond:null})})},pop:function(){this.popN(1)},replaceAtIndex:function(e,t){if(v(!!e,"Must supply route to replace"),0>t&&(t+=this.state.routeStack.length),!(this.state.routeStack.length<=t)){var n=this.state.idStack.slice(),r=this.state.routeStack.slice();n[t]=a(),r[t]=e,this.setState({idStack:n,routeStack:r,makingNavigatorRequest:!1,updatingAllIndicesAtOrBeyond:t})}},replace:function(e){this.replaceAtIndex(e,-1)},replacePrevious:function(e){this.replaceAtIndex(e,-2)},popToTop:function(){this.popToRoute(this.state.routeStack[0])},popToRoute:function(e){var t=this.state.routeStack.indexOf(e);v(-1!==t,"Calling pop to route for a route that doesn't exist!");var n=this.state.routeStack.length-t-1;this.popN(n)},replacePreviousAndPop:function(e){var t=this;this.state.requestedTopOfStack===this.state.observedTopOfStack&&(this.state.routeStack.length<2||this._tryLockNavigator(function(){t.replacePrevious(e),t.setState({requestedTopOfStack:t.state.requestedTopOfStack-1,makingNavigatorRequest:!0})}))},resetTo:function(e){v(!!e,"Must supply route to push"),this.state.requestedTopOfStack===this.state.observedTopOfStack&&(this.replaceAtIndex(e,0),this.popToRoute(e))},handleNavigationComplete:function(e){this._toFocusOnNavigationComplete&&(this._getFocusEmitter().emit("focus",this._toFocusOnNavigationComplete),this._toFocusOnNavigationComplete=null),this._handleNavigatorStackChanged(e)},_routeToStackItem:function(e,t){var n=e.component,r=null!==this.state.updatingAllIndicesAtOrBeyond&&this.state.updatingAllIndicesAtOrBeyond>=t;return l.createElement(f,{key:"nav"+t,shouldUpdate:r},l.createElement(w,{title:e.title,style:[I.stackItem,this.props.itemWrapperStyle,e.wrapperStyle],backButtonIcon:this._imageNameFromSource(e.backButtonIcon),backButtonTitle:e.backButtonTitle,leftButtonIcon:this._imageNameFromSource(e.leftButtonIcon),leftButtonTitle:e.leftButtonTitle,onNavLeftButtonTap:e.onLeftButtonPress,rightButtonIcon:this._imageNameFromSource(e.rightButtonIcon),rightButtonTitle:e.rightButtonTitle,onNavRightButtonTap:e.onRightButtonPress,navigationBarHidden:this.props.navigationBarHidden,tintColor:this.props.tintColor,barTintColor:this.props.barTintColor,titleTextColor:this.props.titleTextColor},l.createElement(n,s({navigator:this.navigator,route:e},e.passProps))))},_imageNameFromSource:function(e){return e?e.uri:void 0},renderNavigationStackItems:function(){var e=this.state.makingNavigatorRequest||null!==this.state.updatingAllIndicesAtOrBeyond,t=e?this.state.routeStack.map(this._routeToStackItem):null;return l.createElement(f,{shouldUpdate:e},l.createElement(C,{ref:b,style:I.transitioner,vertical:this.props.vertical,requestedTopOfStack:this.state.requestedTopOfStack,onNavigationComplete:this.handleNavigationComplete},t))},render:function(){return l.createElement(m,{style:this.props.style},this.renderNavigationStackItems())}}),I=h.create({stackItem:{backgroundColor:"white",overflow:"hidden",position:"absolute",top:0,left:0,right:0,bottom:0},transitioner:{flex:1}});o.exports=T}),__d("PickerIOS",["NativeMethodsMixin","React","ReactChildren","ReactNativeViewAttributes","NativeModules","StyleSheet","View","requireNativeComponent","merge"],function(e,t,n,r,o,i){"use strict";var a=t("NativeMethodsMixin"),s=t("React"),u=t("ReactChildren"),c=(t("ReactNativeViewAttributes"),t("NativeModules").UIManager.RCTPicker.Constants),l=t("StyleSheet"),p=t("View"),d=t("requireNativeComponent"),h=(t("merge"),"picker"),f=s.createClass({mixins:[a],propTypes:{onValueChange:s.PropTypes.func,selectedValue:s.PropTypes.any},getInitialState:function(){return this._stateFromProps(this.props)},componentWillReceiveProps:function(e){this.setState(this._stateFromProps(e))},_stateFromProps:function(e){var t=0,n=[];return u.forEach(e.children,function(r,o){r.props.value===e.selectedValue&&(t=o),n.push({value:r.props.value,label:r.props.label})}),{selectedIndex:t,items:n}},render:function(){return s.createElement(p,{style:this.props.style},s.createElement(g,{ref:h,style:m.pickerIOS,items:this.state.items,selectedIndex:this.state.selectedIndex,onChange:this._onChange}))},_onChange:function(e){this.props.onChange&&this.props.onChange(e),this.props.onValueChange&&this.props.onValueChange(e.nativeEvent.newValue),this.state.selectedIndex!==e.nativeEvent.newIndex&&this.refs[h].setNativeProps({selectedIndex:this.state.selectedIndex})}});f.Item=s.createClass({propTypes:{value:s.PropTypes.any,label:s.PropTypes.string},render:function(){return null}});var m=l.create({pickerIOS:{height:c.ComponentHeight}}),g=d("RCTPicker",null);o.exports=f}),__d("ProgressViewIOS",["Image","NativeMethodsMixin","NativeModules","ReactPropTypes","React","StyleSheet","requireNativeComponent","verifyPropTypes"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("Image"),u=t("NativeMethodsMixin"),c=t("NativeModules"),l=t("ReactPropTypes"),p=t("React"),d=t("StyleSheet"),h=t("requireNativeComponent"),f=(t("verifyPropTypes"),p.createClass({mixins:[u],propTypes:{progressViewStyle:l.oneOf(["default","bar"]),progress:l.number,progressTintColor:l.string,trackTintColor:l.string,progressImage:s.propTypes.source,trackImage:s.propTypes.source},render:function(){return p.createElement(g,a({},this.props,{style:[m.progressView,this.props.style]}))}})),m=d.create({progressView:{height:c.ProgressViewManager.ComponentHeight}}),g=h("RCTProgressView",f);o.exports=f}),__d("SegmentedControlIOS",["NativeMethodsMixin","NativeModules","ReactPropTypes","React","StyleSheet","requireNativeComponent","verifyPropTypes"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("NativeMethodsMixin"),u=t("NativeModules"),c=t("ReactPropTypes"),l=t("React"),p=t("StyleSheet"),d=t("requireNativeComponent"),h=(t("verifyPropTypes"),"segmentedcontrol"),f=l.createClass({mixins:[s],propTypes:{values:c.arrayOf(c.string),selectedIndex:c.number,onValueChange:c.func,onChange:c.func,enabled:c.bool,tintColor:c.string,momentary:c.bool},getDefaultProps:function(){return{values:[],enabled:!0}},_onChange:function(e){this.props.onChange&&this.props.onChange(e),this.props.onValueChange&&this.props.onValueChange(e.nativeEvent.value)},render:function(){return l.createElement(g,a({},this.props,{ref:h,style:[m.segmentedControl,this.props.style],onChange:this._onChange}))}}),m=p.create({segmentedControl:{height:u.SegmentedControlManager.ComponentHeight}}),g=d("RCTSegmentedControl",f);o.exports=f}),__d("SliderIOS",["NativeMethodsMixin","ReactPropTypes","React","StyleSheet","View","requireNativeComponent"],function(e,t,n,r,o,i){"use strict";var a=t("NativeMethodsMixin"),s=t("ReactPropTypes"),u=t("React"),c=t("StyleSheet"),l=t("View"),p=t("requireNativeComponent"),d=u.createClass({mixins:[a],propTypes:{style:l.propTypes.style,value:s.number,minimumValue:s.number,maximumValue:s.number,minimumTrackTintColor:s.string,maximumTrackTintColor:s.string,onValueChange:s.func,onSlidingComplete:s.func},_onValueChange:function(e){this.props.onChange&&this.props.onChange(e),e.nativeEvent.continuous?this.props.onValueChange&&this.props.onValueChange(e.nativeEvent.value):this.props.onSlidingComplete&&void 0!==e.nativeEvent.value&&this.props.onSlidingComplete(e.nativeEvent.value)},render:function(){return u.createElement(f,{style:[h.slider,this.props.style],value:this.props.value,maximumValue:this.props.maximumValue,minimumValue:this.props.minimumValue,minimumTrackTintColor:this.props.minimumTrackTintColor,maximumTrackTintColor:this.props.maximumTrackTintColor,onChange:this._onValueChange})}}),h=c.create({slider:{height:40}}),f=p("RCTSlider",d);o.exports=d}),__d("SwitchIOS",["NativeMethodsMixin","ReactPropTypes","React","StyleSheet","requireNativeComponent"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("NativeMethodsMixin"),u=t("ReactPropTypes"),c=t("React"),l=t("StyleSheet"),p=t("requireNativeComponent"),d="switch",h=c.createClass({mixins:[s],propTypes:{value:u.bool,disabled:u.bool,onValueChange:u.func,onTintColor:u.string,thumbTintColor:u.string,tintColor:u.string},getDefaultProps:function(){return{value:!1,disabled:!1}},_onChange:function(e){this.props.onChange&&this.props.onChange(e),this.props.onValueChange&&this.props.onValueChange(e.nativeEvent.value),this.refs[d].setNativeProps({value:this.props.value})},render:function(){return c.createElement(m,a({},this.props,{ref:d,onChange:this._onChange,style:[f.rkSwitch,this.props.style]}))}}),f=l.create({rkSwitch:{height:31,width:51}}),m=p("RCTSwitch",h);o.exports=h}),__d("TabBarIOS",["React","StyleSheet","TabBarItemIOS","View","requireNativeComponent"],function(e,t,n,r,o,i){"use strict";var a=t("React"),s=t("StyleSheet"),u=t("TabBarItemIOS"),c=t("View"),l=t("requireNativeComponent"),p=a.createClass({statics:{Item:u},propTypes:{style:c.propTypes.style,tintColor:a.PropTypes.string,barTintColor:a.PropTypes.string},render:function(){return a.createElement(h,{style:[d.tabGroup,this.props.style],tintColor:this.props.tintColor,barTintColor:this.props.barTintColor},this.props.children)}}),d=s.create({tabGroup:{flex:1}}),h=l("RCTTabBar",p);o.exports=p}),__d("TabBarItemIOS",["Image","React","StaticContainer.react","StyleSheet","View","requireNativeComponent"],function(e,t,n,r,o,i){"use strict";var a=t("Image"),s=t("React"),u=t("StaticContainer.react"),c=t("StyleSheet"),l=t("View"),p=t("requireNativeComponent"),d=s.createClass({propTypes:{badge:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.number]),systemIcon:s.PropTypes.oneOf(["bookmarks","contacts","downloads","favorites","featured","history","more","most-recent","most-viewed","recents","search","top-rated"]),icon:a.propTypes.source,selectedIcon:a.propTypes.source,onPress:s.PropTypes.func,selected:s.PropTypes.bool,style:l.propTypes.style,title:s.PropTypes.string},getInitialState:function(){return{hasBeenSelected:!1}},componentWillMount:function(){this.props.selected&&this.setState({hasBeenSelected:!0})},componentWillReceiveProps:function(e){(this.state.hasBeenSelected||e.selected)&&this.setState({hasBeenSelected:!0})},render:function(){var e=null;e=this.state.hasBeenSelected?s.createElement(u,{shouldUpdate:this.props.selected},this.props.children):s.createElement(l,null);var t=this.props.systemIcon||this.props.icon&&this.props.icon.uri,n="number"==typeof this.props.badge?""+this.props.badge:this.props.badge;return s.createElement(f,{icon:t,selectedIcon:this.props.selectedIcon&&this.props.selectedIcon.uri,onPress:this.props.onPress,selected:this.props.selected,badge:n,title:this.props.title,style:[h.tab,this.props.style]},e)}}),h=c.create({tab:{position:"absolute",top:0,right:0,bottom:0,left:0}}),f=p("RCTTabBarItem",d);o.exports=d}),__d("Text",["NativeMethodsMixin","Platform","React","ReactInstanceMap","ReactNativeViewAttributes","StyleSheetPropType","TextStylePropTypes","Touchable","createReactNativeComponentClass","merge"],function(e,t,n,r,o,i){"use strict";var a=t("NativeMethodsMixin"),s=t("Platform"),u=t("React"),c=t("ReactInstanceMap"),l=t("ReactNativeViewAttributes"),p=t("StyleSheetPropType"),d=t("TextStylePropTypes"),h=t("Touchable"),f=t("createReactNativeComponentClass"),m=t("merge"),g=p(d),v={validAttributes:m(l.UIView,{isHighlighted:!0,
numberOfLines:!0}),uiViewClassName:"RCTText"},y=u.createClass({mixins:[h.Mixin,a],propTypes:{numberOfLines:u.PropTypes.number,onPress:u.PropTypes.func,suppressHighlighting:u.PropTypes.bool,style:g,testID:u.PropTypes.string,onLayout:u.PropTypes.func},viewConfig:v,getInitialState:function(){return m(this.touchableGetInitialState(),{isHighlighted:!1})},onStartShouldSetResponder:function(){var e=this.props.onStartShouldSetResponder&&this.props.onStartShouldSetResponder();return e||!!this.props.onPress},handleResponderTerminationRequest:function(){var e=this.touchableHandleResponderTerminationRequest();return e&&this.props.onResponderTerminationRequest&&(e=this.props.onResponderTerminationRequest()),e},handleResponderGrant:function(e,t){this.touchableHandleResponderGrant(e,t),this.props.onResponderGrant&&this.props.onResponderGrant.apply(this,arguments)},handleResponderMove:function(e){this.touchableHandleResponderMove(e),this.props.onResponderMove&&this.props.onResponderMove.apply(this,arguments)},handleResponderRelease:function(e){this.touchableHandleResponderRelease(e),this.props.onResponderRelease&&this.props.onResponderRelease.apply(this,arguments)},handleResponderTerminate:function(e){this.touchableHandleResponderTerminate(e),this.props.onResponderTerminate&&this.props.onResponderTerminate.apply(this,arguments)},touchableHandleActivePressIn:function(){!this.props.suppressHighlighting&&this.props.onPress&&this.setState({isHighlighted:!0})},touchableHandleActivePressOut:function(){!this.props.suppressHighlighting&&this.props.onPress&&this.setState({isHighlighted:!1})},touchableHandlePress:function(){this.props.onPress&&this.props.onPress()},touchableGetPressRectOffset:function(){return _},getChildContext:function(){return{isInAParentText:!0}},childContextTypes:{isInAParentText:u.PropTypes.bool},render:function(){var e={};for(var t in this.props)e[t]=this.props[t];e.accessible!==!1&&(e.accessible=!0),e.isHighlighted=this.state.isHighlighted,e.onStartShouldSetResponder=this.onStartShouldSetResponder,e.onResponderTerminationRequest=this.handleResponderTerminationRequest,e.onResponderGrant=this.handleResponderGrant,e.onResponderMove=this.handleResponderMove,e.onResponderRelease=this.handleResponderRelease,e.onResponderTerminate=this.handleResponderTerminate;var n=c.get(this)._context;return n.isInAParentText?u.createElement(S,e):u.createElement(b,e)}}),_={top:20,left:20,right:20,bottom:30},b=f(v),S=b;"android"===s.OS&&(S=f({validAttributes:m(l.UIView,{isHighlighted:!0}),uiViewClassName:"RCTVirtualText"})),o.exports=y}),__d("Touchable",["BoundingDimensions","Position","TouchEventUtils","keyMirror","queryLayoutByID"],function(e,t,n,r,o,i){"use strict";var a=t("BoundingDimensions"),s=t("Position"),u=t("TouchEventUtils"),c=t("keyMirror"),l=t("queryLayoutByID"),p=c({NOT_RESPONDER:null,RESPONDER_INACTIVE_PRESS_IN:null,RESPONDER_INACTIVE_PRESS_OUT:null,RESPONDER_ACTIVE_PRESS_IN:null,RESPONDER_ACTIVE_PRESS_OUT:null,RESPONDER_ACTIVE_LONG_PRESS_IN:null,RESPONDER_ACTIVE_LONG_PRESS_OUT:null,ERROR:null}),d={RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0},h={RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0},f={RESPONDER_ACTIVE_LONG_PRESS_IN:!0},m=c({DELAY:null,RESPONDER_GRANT:null,RESPONDER_RELEASE:null,RESPONDER_TERMINATED:null,ENTER_PRESS_RECT:null,LEAVE_PRESS_RECT:null,LONG_PRESS_DETECTED:null}),g={NOT_RESPONDER:{DELAY:p.ERROR,RESPONDER_GRANT:p.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:p.ERROR,RESPONDER_TERMINATED:p.ERROR,ENTER_PRESS_RECT:p.ERROR,LEAVE_PRESS_RECT:p.ERROR,LONG_PRESS_DETECTED:p.ERROR},RESPONDER_INACTIVE_PRESS_IN:{DELAY:p.RESPONDER_ACTIVE_PRESS_IN,RESPONDER_GRANT:p.ERROR,RESPONDER_RELEASE:p.NOT_RESPONDER,RESPONDER_TERMINATED:p.NOT_RESPONDER,ENTER_PRESS_RECT:p.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:p.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:p.ERROR},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:p.RESPONDER_ACTIVE_PRESS_OUT,RESPONDER_GRANT:p.ERROR,RESPONDER_RELEASE:p.NOT_RESPONDER,RESPONDER_TERMINATED:p.NOT_RESPONDER,ENTER_PRESS_RECT:p.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:p.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:p.ERROR},RESPONDER_ACTIVE_PRESS_IN:{DELAY:p.ERROR,RESPONDER_GRANT:p.ERROR,RESPONDER_RELEASE:p.NOT_RESPONDER,RESPONDER_TERMINATED:p.NOT_RESPONDER,ENTER_PRESS_RECT:p.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:p.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:p.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:p.ERROR,RESPONDER_GRANT:p.ERROR,RESPONDER_RELEASE:p.NOT_RESPONDER,RESPONDER_TERMINATED:p.NOT_RESPONDER,ENTER_PRESS_RECT:p.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:p.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:p.ERROR},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:p.ERROR,RESPONDER_GRANT:p.ERROR,RESPONDER_RELEASE:p.NOT_RESPONDER,RESPONDER_TERMINATED:p.NOT_RESPONDER,ENTER_PRESS_RECT:p.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:p.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:p.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:p.ERROR,RESPONDER_GRANT:p.ERROR,RESPONDER_RELEASE:p.NOT_RESPONDER,RESPONDER_TERMINATED:p.NOT_RESPONDER,ENTER_PRESS_RECT:p.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:p.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:p.ERROR},error:{DELAY:p.NOT_RESPONDER,RESPONDER_GRANT:p.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:p.NOT_RESPONDER,RESPONDER_TERMINATED:p.NOT_RESPONDER,ENTER_PRESS_RECT:p.NOT_RESPONDER,LEAVE_PRESS_RECT:p.NOT_RESPONDER,LONG_PRESS_DETECTED:p.NOT_RESPONDER}},v=130,y=20,_=500,b=_-v,S=10,R={touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!0},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e,t){e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=p.NOT_RESPONDER,this.state.touchable.responderID=t,this._receiveSignal(m.RESPONDER_GRANT,e);var n=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):v;n=isNaN(n)?v:n,0!==n?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),n):this._handleDelay(e);var r=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):b;r=isNaN(r)?b:r,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),r+n)},touchableHandleResponderRelease:function(e){this._receiveSignal(m.RESPONDER_RELEASE,e)},touchableHandleResponderTerminate:function(e){this._receiveSignal(m.RESPONDER_TERMINATED,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.touchState!==p.RESPONDER_INACTIVE_PRESS_IN&&this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,n=this.state.touchable.dimensionsOnActivate,r=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():null,o=null!=r.left?r.left:y,i=null!=r.top?r.top:y,a=null!=r.right?r.right:y,s=null!=r.bottom?r.bottom:y,c=u.extractSingleTouch(e.nativeEvent),l=c&&c.pageX,d=c&&c.pageY;if(this.pressInLocation){var h=this._getDistanceBetweenPoints(l,d,this.pressInLocation.pageX,this.pressInLocation.pageY);h>S&&this._cancelLongPressDelayTimeout()}var f=l>t.left-o&&d>t.top-i&&l<t.left+n.width+a&&d<t.top+n.height+s;f?this._receiveSignal(m.ENTER_PRESS_RECT,e):(this._cancelLongPressDelayTimeout(),this._receiveSignal(m.LEAVE_PRESS_RECT,e))}},_remeasureMetricsOnActivation:function(){l(this.state.touchable.responderID,null,this._handleQueryLayout)},_handleQueryLayout:function(e,t,n,r,o,i){this.state.touchable.positionOnActivate&&s.release(this.state.touchable.positionOnActivate),this.state.touchable.dimensionsOnActivate&&a.release(this.state.touchable.dimensionsOnActivate),this.state.touchable.positionOnActivate=s.getPooled(o,i),this.state.touchable.dimensionsOnActivate=a.getPooled(n,r)},_handleDelay:function(e){this.touchableDelayTimeout=null,this._receiveSignal(m.DELAY,e)},_handleLongDelay:function(e){this.longPressDelayTimeout=null,this._receiveSignal(m.LONG_PRESS_DETECTED,e)},_receiveSignal:function(e,t){var n=this.state.touchable.touchState;if(!g[n]||!g[n][e])throw new Error("Unrecognized signal `"+e+"` or state `"+n+"` for Touchable responder `"+this.state.touchable.responderID+"`");var r=g[n][e];if(r===p.ERROR)throw new Error("Touchable cannot transition from `"+n+"` to `"+e+"` for responder `"+this.state.touchable.responderID+"`");n!==r&&(this._performSideEffectsForTransition(n,r,e,t),this.state.touchable.touchState=r)},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(e){return e===p.RESPONDER_ACTIVE_PRESS_IN||e===p.RESPONDER_ACTIVE_LONG_PRESS_IN},_savePressInLocation:function(e){var t=u.extractSingleTouch(e.nativeEvent),n=t&&t.pageX,r=t&&t.pageY;this.pressInLocation={pageX:n,pageY:r}},_getDistanceBetweenPoints:function(e,t,n,r){var o=e-n,i=t-r;return Math.sqrt(o*o+i*i)},_performSideEffectsForTransition:function(e,t,n,r){var o=this._isHighlight(e),i=this._isHighlight(t),a=n===m.RESPONDER_TERMINATED||n===m.RESPONDER_RELEASE;if(a&&this._cancelLongPressDelayTimeout(),!d[e]&&d[t]&&this._remeasureMetricsOnActivation(),h[e]&&n===m.LONG_PRESS_DETECTED&&this.touchableHandleLongPress&&this.touchableHandleLongPress(),i&&!o?(this._savePressInLocation(r),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn()):!i&&o&&this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=this.setTimeout(function(){this.touchableHandleActivePressOut()},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut()),h[e]&&n===m.RESPONDER_RELEASE){var s=!!this.props.onLongPress,u=f[e]&&(!s||!this.touchableLongPressCancelsPress()),c=!f[e]||u;c&&this.touchableHandlePress&&this.touchableHandlePress(r)}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null}},E={Mixin:R};o.exports=E}),__d("BoundingDimensions",["PooledClass"],function(e,t,n,r,o,i){"use strict";function a(e,t){this.width=e,this.height=t}var s=t("PooledClass"),u=s.twoArgumentPooler;a.getPooledFromElement=function(e){return a.getPooled(e.offsetWidth,e.offsetHeight)},s.addPoolingTo(a,u),o.exports=a}),__d("Position",["PooledClass"],function(e,t,n,r,o,i){"use strict";function a(e,t){this.left=e,this.top=t}var s=t("PooledClass"),u=s.twoArgumentPooler;s.addPoolingTo(a,u),o.exports=a}),__d("TouchEventUtils",[],function(e,t,n,r,o,i){var a={extractSingleTouch:function(e){var t=e.touches,n=e.changedTouches,r=t&&t.length>0,o=n&&n.length>0;return!r&&o?n[0]:r?t[0]:e}};o.exports=a}),__d("queryLayoutByID",["ReactNativeTagHandles","NativeModules"],function(e,t,n,r,o,i){"use strict";var a=t("ReactNativeTagHandles"),s=t("NativeModules").UIManager,u=function(e,t,n){s.measure(a.rootNodeIDToTag[e],n)};o.exports=u}),__d("TextInput",["DocumentSelectionState","EventEmitter","NativeMethodsMixin","NativeModules","Platform","ReactPropTypes","React","ReactChildren","ReactNativeViewAttributes","StyleSheet","Text","TextInputState","react-timer-mixin/TimerMixin","TouchableWithoutFeedback","createReactNativeComponentClass","emptyFunction","invariant","merge"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("DocumentSelectionState"),u=t("EventEmitter"),c=t("NativeMethodsMixin"),l=t("NativeModules").UIManager,p=t("Platform"),d=t("ReactPropTypes"),h=t("React"),f=t("ReactChildren"),m=t("ReactNativeViewAttributes"),g=t("StyleSheet"),v=t("Text"),y=t("TextInputState"),_=t("react-timer-mixin/TimerMixin"),b=t("TouchableWithoutFeedback"),S=t("createReactNativeComponentClass"),R=t("emptyFunction"),E=t("invariant"),w=t("merge"),C=w(m.UIView,{autoCorrect:!0,autoCapitalize:!0,clearTextOnFocus:!0,color:!0,editable:!0,fontFamily:!0,fontSize:!0,fontStyle:!0,fontWeight:!0,keyboardType:!0,returnKeyType:!0,enablesReturnKeyAutomatically:!0,secureTextEntry:!0,selectTextOnFocus:!0,mostRecentEventCounter:!0,placeholder:!0,placeholderTextColor:!0,text:!0}),T=w(C,{caretHidden:!0,enabled:!0,clearButtonMode:!0,clearTextOnFocus:!0,selectTextOnFocus:!0}),I={onSelectionChange:!0,onTextInput:!0,children:!0},P={onSubmitEditing:!0},x={autoCapitalize:!0,autoCorrect:!0,autoFocus:!0,keyboardType:!0,multiline:!0,password:!0,placeholder:!0,text:!0,testID:!0},M={uiViewClassName:"RCTTextField",validAttributes:T},O={uiViewClassName:"AndroidTextInput",validAttributes:x},D=h.createClass({propTypes:{autoCapitalize:d.oneOf(["none","sentences","words","characters"]),autoCorrect:d.bool,autoFocus:d.bool,editable:d.bool,keyboardType:d.oneOf(["default","numeric","email-address","ascii-capable","numbers-and-punctuation","url","number-pad","phone-pad","name-phone-pad","decimal-pad","twitter","web-search"]),returnKeyType:d.oneOf(["default","go","google","join","next","route","search","send","yahoo","done","emergency-call"]),enablesReturnKeyAutomatically:d.bool,multiline:d.bool,onBlur:d.func,onFocus:d.func,onChange:d.func,onChangeText:d.func,onEndEditing:d.func,onSubmitEditing:d.func,onLayout:d.func,password:d.bool,placeholder:d.string,placeholderTextColor:d.string,selectionState:d.instanceOf(s),value:d.string,bufferDelay:d.number,controlled:d.bool,clearButtonMode:d.oneOf(["never","while-editing","unless-editing","always"]),clearTextOnFocus:d.bool,selectTextOnFocus:d.bool,style:v.propTypes.style,testID:d.string},mixins:[c,_],viewConfig:"ios"===p.OS?M:"android"===p.OS?O:{},isFocused:function(){return y.currentlyFocusedField()===h.findNodeHandle(this.refs.input)},getDefaultProps:function(){return{bufferDelay:100}},getInitialState:function(){return{mostRecentEventCounter:0,bufferedValue:this.props.value}},contextTypes:{onFocusRequested:h.PropTypes.func,focusEmitter:h.PropTypes.instanceOf(u)},_focusSubscription:void 0,componentDidMount:function(){var e=this;return this.context.focusEmitter?(this._focusSubscription=this.context.focusEmitter.addListener("focus",function(t){e===t?e.requestAnimationFrame(e.focus):e.isFocused()&&e.blur()}),void(this.props.autoFocus&&this.context.onFocusRequested(this))):void(this.props.autoFocus&&this.requestAnimationFrame(this.focus))},componentWillUnmount:function(){this._focusSubscription&&this._focusSubscription.remove(),this.isFocused()&&this.blur()},_bufferTimeout:void 0,componentWillReceiveProps:function(e){var t=this;e.value!==this.props.value&&(this.isFocused()?(this.clearTimeout(this._bufferTimeout),this._bufferTimeout=this.setTimeout(function(){return t.setState({bufferedValue:e.value})},this.props.bufferDelay)):this.setState({bufferedValue:e.value}))},getChildContext:function(){return{isInAParentText:!0}},childContextTypes:{isInAParentText:h.PropTypes.bool},render:function(){return"ios"===p.OS?this._renderIOS():"android"===p.OS?this._renderAndroid():void 0},_renderIOS:function(){var e,t=this.props;if(t.style=[N.input,this.props.style],t.multiline){for(var n in P)if(t[n])throw new Error("TextInput prop `"+n+"` cannot be used with multiline.");var r=t.children,o=0;f.forEach(r,function(){return++o}),E(!(t.value&&o),"Cannot specify both value and children."),o>1&&(r=h.createElement(v,null,r)),t.inputView&&(r=[r,t.inputView]),e=h.createElement(k,a({ref:"input"},t,{children:r,mostRecentEventCounter:this.state.mostRecentEventCounter,onFocus:this._onFocus,onBlur:this._onBlur,onChange:this._onChange,onSelectionChange:this._onSelectionChange,onTextInput:this._onTextInput,onSelectionChangeShouldSetResponder:R.thatReturnsTrue,text:this.state.bufferedValue}))}else{for(var n in I)if(t[n])throw new Error("TextInput prop `"+n+"` is only supported with multiline.");e=h.createElement(A,a({ref:"input"},t,{onFocus:this._onFocus,onBlur:this._onBlur,onChange:this._onChange,onSelectionChangeShouldSetResponder:function(){return!0},text:this.state.bufferedValue}))}return h.createElement(b,{onPress:this._onPress,rejectResponderTermination:!0,testID:t.testID},e)},_renderAndroid:function(){var e=l.UIText.AutocapitalizationType[this.props.autoCapitalize],t=this.props.children,n=0;f.forEach(t,function(){return++n}),E(!(this.props.value&&n),"Cannot specify both value and children."),n>1&&(t=h.createElement(v,null,t));var r=h.createElement(L,{ref:"input",style:[this.props.style],autoCapitalize:e,autoCorrect:this.props.autoCorrect,keyboardType:this.props.keyboardType,multiline:this.props.multiline,onFocus:this._onFocus,onBlur:this._onBlur,onChange:this._onChange,onEndEditing:this.props.onEndEditing,onSubmitEditing:this.props.onSubmitEditing,onLayout:this.props.onLayout,password:this.props.password||this.props.secureTextEntry,placeholder:this.props.placeholder,text:this.state.bufferedValue,children:t});return h.createElement(b,{onPress:this._onPress,testID:this.props.testID},r)},_onFocus:function(e){this.props.onFocus&&this.props.onFocus(e)},_onPress:function(e){this.focus()},_onChange:function(e){this.props.controlled&&e.nativeEvent.text!==this.props.value&&this.refs.input.setNativeProps({text:this.props.value}),this.props.onChange&&this.props.onChange(e),this.props.onChangeText&&this.props.onChangeText(e.nativeEvent.text)},_onBlur:function(e){this.blur(),this.props.onBlur&&this.props.onBlur(e)},_onSelectionChange:function(e){if(this.props.selectionState){var t=e.nativeEvent.selection;this.props.selectionState.update(t.start,t.end)}this.props.onSelectionChange&&this.props.onSelectionChange(e)},_onTextInput:function(e){this.props.onTextInput&&this.props.onTextInput(e);var t=e.nativeEvent.eventCounter;t>this.state.mostRecentEventCounter&&this.setState({mostRecentEventCounter:t})}}),N=g.create({input:{alignSelf:"stretch"}}),k=S({validAttributes:C,uiViewClassName:"RCTTextView"}),A=S({validAttributes:T,uiViewClassName:"RCTTextField"}),L=S({validAttributes:x,uiViewClassName:"AndroidTextInput"});o.exports=D}),__d("DocumentSelectionState",["mixInEventEmitter"],function(e,t,n,r,o,i){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("mixInEventEmitter"),c=function(){function e(t,n){a(this,e),this._anchorOffset=t,this._focusOffset=n,this._hasFocus=!1}return s(e,[{key:"update",value:function(e,t){(this._anchorOffset!==e||this._focusOffset!==t)&&(this._anchorOffset=e,this._focusOffset=t,this.emit("update"))}},{key:"constrainLength",value:function(e){this.update(Math.min(this._anchorOffset,e),Math.min(this._focusOffset,e))}},{key:"focus",value:function(){this._hasFocus||(this._hasFocus=!0,this.emit("focus"))}},{key:"blur",value:function(){this._hasFocus&&(this._hasFocus=!1,this.emit("blur"))}},{key:"hasFocus",value:function(){return this._hasFocus}},{key:"isCollapsed",value:function(){return this._anchorOffset===this._focusOffset}},{key:"isBackward",value:function(){return this._anchorOffset>this._focusOffset}},{key:"getAnchorOffset",value:function(){return this._hasFocus?this._anchorOffset:null}},{key:"getFocusOffset",value:function(){return this._hasFocus?this._focusOffset:null}},{key:"getStartOffset",value:function(){return this._hasFocus?Math.min(this._anchorOffset,this._focusOffset):null}},{key:"getEndOffset",value:function(){return this._hasFocus?Math.max(this._anchorOffset,this._focusOffset):null}},{key:"overlaps",value:function(e,t){return this.hasFocus()&&this.getStartOffset()<=t&&e<=this.getEndOffset()}}]),e}();u(c,{blur:!0,focus:!0,update:!0}),o.exports=c}),__d("mixInEventEmitter",["EventEmitter","EventEmitterWithHolding","EventHolder","EventValidator","copyProperties","invariant","keyOf"],function(e,t,n,r,o,i){function a(e,t){d(t,"Must supply set of valid event types"),d(!this.__eventEmitter,"An active emitter is already mixed in");var n=e.prototype||e,r=e.constructor;r&&d(r===Object||r===Function,"Mix EventEmitter into a class, not an instance"),n.hasOwnProperty(f)?p(n.__types,t):n.__types?n.__types=p({},n.__types,t):n.__types=t,p(n,m)}var s=t("EventEmitter"),u=t("EventEmitterWithHolding"),c=t("EventHolder"),l=t("EventValidator"),p=t("copyProperties"),d=t("invariant"),h=t("keyOf"),f=h({__types:!0}),m={emit:function(e,t,n,r,o,i,a){return this.__getEventEmitter().emit(e,t,n,r,o,i,a)},emitAndHold:function(e,t,n,r,o,i,a){return this.__getEventEmitter().emitAndHold(e,t,n,r,o,i,a)},addListener:function(e,t,n){return this.__getEventEmitter().addListener(e,t,n)},once:function(e,t,n){return this.__getEventEmitter().once(e,t,n)},addRetroactiveListener:function(e,t,n){return this.__getEventEmitter().addRetroactiveListener(e,t,n)},addListenerMap:function(e,t){return this.__getEventEmitter().addListenerMap(e,t)},addRetroactiveListenerMap:function(e,t){return this.__getEventEmitter().addListenerMap(e,t)},removeAllListeners:function(){this.__getEventEmitter().removeAllListeners()},removeCurrentListener:function(){this.__getEventEmitter().removeCurrentListener()},releaseHeldEventType:function(e){this.__getEventEmitter().releaseHeldEventType(e)},__getEventEmitter:function(){if(!this.__eventEmitter){var e=new s;e=l.addValidation(e,this.__types);var t=new c;this.__eventEmitter=new u(e,t)}return this.__eventEmitter}};o.exports=a}),__d("EventEmitterWithHolding",[],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(){function e(t,n){a(this,e),this._emitter=t,this._eventHolder=n,this._currentEventToken=null,this._emittingHeldEvents=!1}return s(e,[{key:"addListener",value:function(e,t,n){return this._emitter.addListener(e,t,n)}},{key:"once",value:function(e,t,n){return this._emitter.once(e,t,n)}},{key:"addRetroactiveListener",value:function(e,t,n){var r=this._emitter.addListener(e,t,n);return this._emittingHeldEvents=!0,this._eventHolder.emitToListener(e,t,n),this._emittingHeldEvents=!1,r}},{key:"removeAllListeners",value:function(e){this._emitter.removeAllListeners(e)}},{key:"removeCurrentListener",value:function(){this._emitter.removeCurrentListener()}},{key:"listeners",value:function(e){return this._emitter.listeners(e)}},{key:"emit",value:function(e,t,n,r,o,i,a){this._emitter.emit(e,t,n,r,o,i,a)}},{key:"emitAndHold",value:function(e,t,n,r,o,i,a){this._currentEventToken=this._eventHolder.holdEvent(e,t,n,r,o,i,a),this._emitter.emit(e,t,n,r,o,i,a),this._currentEventToken=null}},{key:"releaseCurrentEvent",value:function(){null!==this._currentEventToken?this._eventHolder.releaseEvent(this._currentEventToken):this._emittingHeldEvents&&this._eventHolder.releaseCurrentEvent()}},{key:"releaseHeldEventType",value:function(e){this._eventHolder.releaseEventType(e)}}]),e}();o.exports=u}),__d("EventHolder",["invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("invariant"),c=function(){function e(){a(this,e),this._heldEvents={},this._currentEventKey=null}return s(e,[{key:"holdEvent",value:function(e,t,n,r,o,i,a){this._heldEvents[e]=this._heldEvents[e]||[];var s=this._heldEvents[e],u={eventType:e,index:s.length};return s.push([t,n,r,o,i,a]),u}},{key:"emitToListener",value:function(e,t,n){var r=this,o=this._heldEvents[e];if(o){var i=this._currentEventKey;o.forEach(function(o,i){o&&(r._currentEventKey={eventType:e,index:i},t.apply(n,o))}),this._currentEventKey=i}}},{key:"releaseCurrentEvent",value:function(){u(null!==this._currentEventKey,"Not in an emitting cycle; there is no current event"),this.releaseEvent(this._currentEventKey)}},{key:"releaseEvent",value:function(e){delete this._heldEvents[e.eventType][e.index]}},{key:"releaseEventType",value:function(e){this._heldEvents[e]=[]}}]),e}();o.exports=c}),__d("EventValidator",["copyProperties"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(-1===t.indexOf(e))throw new TypeError(s(e,t))}function s(e,t){var n='Unknown event type "'+e+'". ';return __DEV__&&(n+=l(e,t)),n+="Known event types: "+t.join(", ")+"."}var u=t("copyProperties"),c={addValidation:function(e,t){var n=Object.keys(t),r=Object.create(e);return u(r,{emit:function(t,r,o,i,s,u,c){return a(t,n),e.emit.call(this,t,r,o,i,s,u,c)}}),r}};if(__DEV__)var l=function(e,t){var n=p(e,t);return f(n,e)?'Did you mean "'+n.type+'"? ':""},p=function(e,t){var n=t.map(d.bind(this,e));return n.sort(h)[0]},d=function(e,t){return{type:t,distance:m(e,t)}},h=function(e,t){return e.distance<t.distance?-1:e.distance>t.distance?1:0},f=function(e,t){return e.distance/t.length<.334},m=function(e,t){var n,r,o=[];for(n=0;n<=e.length;n++)o[n]=[n];for(r=1;r<=t.length;r++)o[0][r]=r;for(n=1;n<=e.length;n++)for(r=1;r<=t.length;r++){var i=e.charAt(n-1)===t.charAt(r-1)?0:1;o[n][r]=Math.min(o[n-1][r]+1,o[n][r-1]+1,o[n-1][r-1]+i),n>1&&r>1&&e.charAt(n-1)==t.charAt(r-2)&&e.charAt(n-2)==t.charAt(r-1)&&(o[n][r]=Math.min(o[n][r],o[n-2][r-2]+i))}return o[e.length][t.length]};o.exports=c}),__d("copyProperties",[],function(e,t,n,r,o,i){function a(e,t,n,r,o,i,a){if(e=e||{},__DEV__&&a)throw new Error("Too many arguments passed to copyProperties");for(var s,u=[t,n,r,o,i],c=0;u[c];){s=u[c++];for(var l in s)e[l]=s[l];s.hasOwnProperty&&s.hasOwnProperty("toString")&&"undefined"!=typeof s.toString&&e.toString!==s.toString&&(e.toString=s.toString)}return e}o.exports=a}),__d("TouchableWithoutFeedback",["React","react-timer-mixin/TimerMixin","Touchable","ensurePositiveDelayProps","onlyChild"],function(e,t,n,r,o,i){"use strict";var a=t("React"),s=t("react-timer-mixin/TimerMixin"),u=t("Touchable"),c=t("ensurePositiveDelayProps"),l=t("onlyChild"),p={top:20,left:20,right:20,bottom:30},d=a.createClass({mixins:[s,u.Mixin],propTypes:{accessible:a.PropTypes.bool,onPress:a.PropTypes.func,onPressIn:a.PropTypes.func,onPressOut:a.PropTypes.func,onLongPress:a.PropTypes.func,delayPressIn:a.PropTypes.number,delayPressOut:a.PropTypes.number,delayLongPress:a.PropTypes.number},getInitialState:function(){return this.touchableGetInitialState()},componentDidMount:function(){c(this.props)},componentWillReceiveProps:function(e){c(e)},touchableHandlePress:function(e){this.props.onPress&&this.props.onPress(e)},touchableHandleActivePressIn:function(){this.props.onPressIn&&this.props.onPressIn()},touchableHandleActivePressOut:function(){this.props.onPressOut&&this.props.onPressOut()},touchableHandleLongPress:function(){this.props.onLongPress&&this.props.onLongPress()},touchableGetPressRectOffset:function(){return p},touchableGetHighlightDelayMS:function(){return this.props.delayPressIn||0},touchableGetLongPressDelayMS:function(){return 0===this.props.delayLongPress?0:this.props.delayLongPress||500},touchableGetPressOutDelayMS:function(){return this.props.delayPressOut||0},render:function(){return a.cloneElement(l(this.props.children),{accessible:this.props.accessible!==!1,testID:this.props.testID,onStartShouldSetResponder:this.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:this.touchableHandleResponderTerminationRequest,onResponderGrant:this.touchableHandleResponderGrant,onResponderMove:this.touchableHandleResponderMove,onResponderRelease:this.touchableHandleResponderRelease,onResponderTerminate:this.touchableHandleResponderTerminate})}});o.exports=d}),__d("ensurePositiveDelayProps",["invariant"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s=function(e){a(!(e.delayPressIn<0||e.delayPressOut<0||e.delayLongPress<0),"Touchable components cannot have negative delay properties")};o.exports=s}),__d("TouchableHighlight",["NativeMethodsMixin","React","ReactNativeViewAttributes","StyleSheet","react-timer-mixin/TimerMixin","Touchable","TouchableWithoutFeedback","View","cloneWithProps","ensureComponentIsNative","ensurePositiveDelayProps","keyOf","merge","onlyChild"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("NativeMethodsMixin"),u=t("React"),c=t("ReactNativeViewAttributes"),l=t("StyleSheet"),p=t("react-timer-mixin/TimerMixin"),d=t("Touchable"),h=t("TouchableWithoutFeedback"),f=t("View"),m=t("cloneWithProps"),g=t("ensureComponentIsNative"),v=t("ensurePositiveDelayProps"),y=t("keyOf"),_=t("merge"),b=t("onlyChild"),S={activeOpacity:.8,underlayColor:"black"},R=u.createClass({propTypes:a({},h.propTypes,{activeOpacity:u.PropTypes.number,underlayColor:u.PropTypes.string,style:f.propTypes.style,onShowUnderlay:u.PropTypes.func,onHideUnderlay:u.PropTypes.func}),mixins:[s,p,d.Mixin],getDefaultProps:function(){return S},computeSyntheticState:function(e){return{activeProps:{style:{opacity:e.activeOpacity}},activeUnderlayProps:{style:{backgroundColor:e.underlayColor}},underlayStyle:[I.style,e.style]}},getInitialState:function(){return _(this.touchableGetInitialState(),this.computeSyntheticState(this.props))},componentDidMount:function(){v(this.props),g(this.refs[w])},componentDidUpdate:function(){g(this.refs[w])},componentWillReceiveProps:function(e){v(e),(e.activeOpacity!==this.props.activeOpacity||e.underlayColor!==this.props.underlayColor||e.style!==this.props.style)&&this.setState(this.computeSyntheticState(e))},viewConfig:{uiViewClassName:"RCTView",validAttributes:c.RCTView},touchableHandleActivePressIn:function(){this.clearTimeout(this._hideTimeout),this._hideTimeout=null,this._showUnderlay(),this.props.onPressIn&&this.props.onPressIn()},touchableHandleActivePressOut:function(){this._hideTimeout||this._hideUnderlay(),this.props.onPressOut&&this.props.onPressOut()},touchableHandlePress:function(){this.clearTimeout(this._hideTimeout),this._showUnderlay(),this._hideTimeout=this.setTimeout(this._hideUnderlay,this.props.delayPressOut||100),this.props.onPress&&this.props.onPress()},touchableHandleLongPress:function(){this.props.onLongPress&&this.props.onLongPress()},touchableGetPressRectOffset:function(){return E},touchableGetHighlightDelayMS:function(){return this.props.delayPressIn},touchableGetLongPressDelayMS:function(){return this.props.delayLongPress},touchableGetPressOutDelayMS:function(){return this.props.delayPressOut},_showUnderlay:function(){this.refs[C].setNativeProps(this.state.activeUnderlayProps),this.refs[w].setNativeProps(this.state.activeProps),this.props.onShowUnderlay&&this.props.onShowUnderlay()},_hideUnderlay:function(){this.clearTimeout(this._hideTimeout),this._hideTimeout=null,this.refs[C]&&(this.refs[w].setNativeProps(T),this.refs[C].setNativeProps(a({},I,{style:this.state.underlayStyle})),this.props.onHideUnderlay&&this.props.onHideUnderlay())},render:function(){return u.createElement(f,{ref:C,style:this.state.underlayStyle,onStartShouldSetResponder:this.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:this.touchableHandleResponderTerminationRequest,onResponderGrant:this.touchableHandleResponderGrant,onResponderMove:this.touchableHandleResponderMove,onResponderRelease:this.touchableHandleResponderRelease,onResponderTerminate:this.touchableHandleResponderTerminate},m(b(this.props.children),{ref:w,accessible:!0,testID:this.props.testID}))}}),E={top:20,left:20,right:20,bottom:30},w=y({childRef:null}),C=y({underlayRef:null}),T={style:l.create({x:{opacity:1}}).x},I={
style:l.create({x:{backgroundColor:"transparent"}}).x};o.exports=R}),__d("cloneWithProps",["ReactElement","ReactPropTransferer","keyOf","warning"],function(e,t,n,r,o,i){"use strict";function a(e,t){__DEV__&&l(!e.ref,"You are calling cloneWithProps() on a child with a ref. This is dangerous because you're creating a new child which will not be added as a ref to its parent.");var n=u.mergeProps(t,e.props);return!n.hasOwnProperty(p)&&e.props.hasOwnProperty(p)&&(n.children=e.props.children),s.createElement(e.type,n)}var s=t("ReactElement"),u=t("ReactPropTransferer"),c=t("keyOf"),l=t("warning"),p=c({children:null});o.exports=a}),__d("ReactPropTransferer",["Object.assign","emptyFunction","joinClasses"],function(e,t,n,r,o,i){"use strict";function a(e){return function(t,n,r){t.hasOwnProperty(n)?t[n]=e(t[n],r):t[n]=r}}function s(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=d[n];r&&d.hasOwnProperty(n)?r(e,n,t[n]):e.hasOwnProperty(n)||(e[n]=t[n])}return e}var u=t("Object.assign"),c=t("emptyFunction"),l=t("joinClasses"),p=a(function(e,t){return u({},t,e)}),d={children:c,className:a(l),style:p},h={mergeProps:function(e,t){return s(u({},e),t)}};o.exports=h}),__d("joinClasses",[],function(e,t,n,r,o,i){"use strict";function a(e){e||(e="");var t,n=arguments.length;if(n>1)for(var r=1;n>r;r++)t=arguments[r],t&&(e=(e?e+" ":"")+t);return e}o.exports=a}),__d("ensureComponentIsNative",["invariant"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s=function(e){a(e&&"function"==typeof e.setNativeProps,"Touchable child must either be native or forward setNativeProps to a native component")};o.exports=s}),__d("TouchableOpacity",["NativeMethodsMixin","POPAnimationMixin","React","react-timer-mixin/TimerMixin","Touchable","TouchableWithoutFeedback","cloneWithProps","ensureComponentIsNative","ensurePositiveDelayProps","flattenStyle","keyOf","onlyChild"],function(e,t,n,r,o,i){"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t("NativeMethodsMixin"),u=t("POPAnimationMixin"),c=t("React"),l=t("react-timer-mixin/TimerMixin"),p=t("Touchable"),d=t("TouchableWithoutFeedback"),h=t("cloneWithProps"),f=t("ensureComponentIsNative"),m=t("ensurePositiveDelayProps"),g=t("flattenStyle"),v=t("keyOf"),y=t("onlyChild"),_=c.createClass({mixins:[l,p.Mixin,s,u],propTypes:a({},d.propTypes,{activeOpacity:c.PropTypes.number}),getDefaultProps:function(){return{activeOpacity:.2}},getInitialState:function(){return this.touchableGetInitialState()},componentDidMount:function(){m(this.props),f(this.refs[S])},componentDidUpdate:function(){f(this.refs[S])},componentWillReceiveProps:function(e){m(e)},setOpacityTo:function(e){if(u){this.stopAllAnimations();var t={type:this.AnimationTypes.linear,property:this.AnimationProperties.opacity,duration:.15,toValue:e};this.startAnimation(S,t)}else this.refs[S].setNativeProps({opacity:e})},touchableHandleActivePressIn:function(){this.clearTimeout(this._hideTimeout),this._hideTimeout=null,this._opacityActive(),this.props.onPressIn&&this.props.onPressIn()},touchableHandleActivePressOut:function(){this._hideTimeout||this._opacityInactive(),this.props.onPressOut&&this.props.onPressOut()},touchableHandlePress:function(){this.clearTimeout(this._hideTimeout),this._opacityActive(),this._hideTimeout=this.setTimeout(this._opacityInactive,this.props.delayPressOut||100),this.props.onPress&&this.props.onPress()},touchableHandleLongPress:function(){this.props.onLongPress&&this.props.onLongPress()},touchableGetPressRectOffset:function(){return b},touchableGetHighlightDelayMS:function(){return this.props.delayPressIn||0},touchableGetLongPressDelayMS:function(){return 0===this.props.delayLongPress?0:this.props.delayLongPress||500},touchableGetPressOutDelayMS:function(){return this.props.delayPressOut},_opacityActive:function(){this.setOpacityTo(this.props.activeOpacity)},_opacityInactive:function(){this.clearTimeout(this._hideTimeout),this._hideTimeout=null;var e=y(this.props.children),t=g(e.props.style)||{};this.setOpacityTo(void 0===t.opacity?1:t.opacity)},render:function(){return h(y(this.props.children),{ref:S,accessible:!0,testID:this.props.testID,onStartShouldSetResponder:this.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:this.touchableHandleResponderTerminationRequest,onResponderGrant:this.touchableHandleResponderGrant,onResponderMove:this.touchableHandleResponderMove,onResponderRelease:this.touchableHandleResponderRelease,onResponderTerminate:this.touchableHandleResponderTerminate})}}),b={top:20,left:20,right:20,bottom:30},S=v({childRef:null});o.exports=_}),__d("POPAnimationMixin",["POPAnimation","React","invariant","warning"],function(e,t,n,r,o,i){"use strict";var a=t("POPAnimation"),s=t("React");if(a){var u=a,c=t("invariant"),l=t("warning"),p={AnimationTypes:u.Types,AnimationProperties:u.Properties,getInitialState:function(){return{_currentAnimationsByNodeHandle:{}}},_ensureBookkeepingSetup:function(e){this.state._currentAnimationsByNodeHandle[e]||(this.state._currentAnimationsByNodeHandle[e]=[])},startAnimation:function(e,t,n){var r=0;"number"==typeof t?r=t:(c(t instanceof Object&&void 0!==t.type&&void 0!==t.property,"Animation definitions must specify a type of animation and a property to animate."),r=u.createAnimation(t.type,t)),c(this.refs[e],"Invalid refKey "+e+" for anim:\n"+JSON.stringify(t)+"\nvalid refs: "+JSON.stringify(Object.keys(this.refs)));var o=s.findNodeHandle(this.refs[e]);this.startAnimationWithNodeHandle(o,r,n)},startAnimationWithNodeHandle:function(e,t,n){var r=this;this._ensureBookkeepingSetup(e);var o=this.state._currentAnimationsByNodeHandle[e],i=o.length;o.push(t);var a=function(t){if(r.isMounted()){o[i]=0;for(var a=!0,s=0;s<o.length;s++)if(o[s]){a=!1;break}a&&(r.state._currentAnimationsByNodeHandle[e]=void 0),n&&n(t)}};u.addAnimation(e,t,a)},startAnimations:function(e,t,n){var r=this,o=0,i=0,a=e.length,s=function(e){e&&++i,++o===a&&t&&t(i===a)};e.forEach(function(e){l(null!=e.ref||null!=e.nodeHandle&&!e.ref!=!e.nodeHandle,"Animations must be specified with either ref xor nodeHandle"),e.ref?r.startAnimation(e.ref,e.anim,s):e.nodeHandle&&r.startAnimationWithNodeHandle(e.nodeHandle,e.anim,s)})},stopNodeHandleAnimations:function(e){if(this.state._currentAnimationsByNodeHandle[e]){for(var t=this.state._currentAnimationsByNodeHandle[e],n=0;n<t.length;n++){var r=t[n];r&&u.removeAnimation(+e,r)}this.state._currentAnimationsByNodeHandle[e]=void 0}},stopAnimations:function(e){c(this.refs[e],"invalid ref"),this.stopNodeHandleAnimations(s.findNodeHandle(this.refs[e]))},stopAllAnimations:function(){for(var e in this.state._currentAnimationsByNodeHandle)this.stopNodeHandleAnimations(e)},animateToFrame:function(e,t,n,r,o){var i={x:t.left+t.width/2,y:t.top+t.height/2,w:t.width,h:t.height},a=u.createAnimation(n,{property:u.Properties.position,toValue:[i.x,i.y],velocity:r||[0,0]}),s=u.createAnimation(n,{property:u.Properties.size,toValue:[i.w,i.h]});this.startAnimation(e,a,o),this.startAnimation(e,s)},componentWillUnmount:function(){this.stopAllAnimations()}};o.exports=p}else o.exports=null}),__d("POPAnimation",["NativeModules","ReactPropTypes","createStrictShapeTypeChecker","getObjectValues","invariant","merge"],function(e,t,n,r,o,i){"use strict";var a=t("NativeModules").POPAnimationManager;if(a){var s=t("ReactPropTypes"),u=t("createStrictShapeTypeChecker"),c=t("getObjectValues"),l=t("invariant"),p=t("merge"),d=a.Types,h=a.Properties,f={bounds:h.bounds,opacity:h.opacity,position:h.position,positionX:h.positionX,positionY:h.positionY,zPosition:h.zPosition,rotation:h.rotation,rotationX:h.rotationX,rotationY:h.rotationY,scaleX:h.scaleX,scaleXY:h.scaleXY,scaleY:h.scaleY,shadowColor:h.shadowColor,shadowOffset:h.shadowOffset,shadowOpacity:h.shadowOpacity,shadowRadius:h.shadowRadius,size:h.size,subscaleXY:h.subscaleXY,subtranslationX:h.subtranslationX,subtranslationXY:h.subtranslationXY,subtranslationY:h.subtranslationY,subtranslationZ:h.subtranslationZ,translationX:h.translationX,translationXY:h.translationXY,translationY:h.translationY,translationZ:h.translationZ},m={decay:d.decay,easeIn:d.easeIn,easeInEaseOut:d.easeInEaseOut,easeOut:d.easeOut,linear:d.linear,spring:d.spring},g={Types:m,Properties:f,attributeChecker:u({type:s.oneOf(c(m)),property:s.oneOf(c(f)),fromValue:s.any,toValue:s.any,duration:s.any,velocity:s.any,deceleration:s.any,springBounciness:s.any,dynamicsFriction:s.any,dynamicsMass:s.any,dynamicsTension:s.any}),lastUsedTag:0,allocateTagForAnimation:function(){return++this.lastUsedTag},createAnimation:function(e,t){var n=this.allocateTagForAnimation();return __DEV__&&(g.attributeChecker({attrs:t},"attrs","POPAnimation.createAnimation"),g.attributeChecker({attrs:{type:e}},"attrs","POPAnimation.createAnimation")),a.createAnimationInternal(n,e,t),n},createSpringAnimation:function(e){return this.createAnimation(this.Types.spring,e)},createDecayAnimation:function(e){return this.createAnimation(this.Types.decay,e)},createLinearAnimation:function(e){return this.createAnimation(this.Types.linear,e)},createEaseInAnimation:function(e){return this.createAnimation(this.Types.easeIn,e)},createEaseOutAnimation:function(e){return this.createAnimation(this.Types.easeOut,e)},createEaseInEaseOutAnimation:function(e){return this.createAnimation(this.Types.easeInEaseOut,e)},addAnimation:function(e,t,n){a.addAnimation(e,t,n)},removeAnimation:function(e,t){a.removeAnimation(e,t)}};if(__DEV__){var v=p(a.Properties,a.Properties);for(var y in v)l(g.Properties[y]===a.Properties[y],"POPAnimation doesn't copy property "+y+" correctly");var _=p(a.Types,a.Types);for(var y in _)l(g.Types[y]===a.Types[y],"POPAnimation doesn't copy type "+y+" correctly")}o.exports=g}else o.exports=null}),__d("getObjectValues",[],function(e,t,n,r,o,i){function a(e){var t=[];for(var n in e)t.push(e[n]);return t}o.exports=a}),__d("WebView",["ActivityIndicatorIOS","EdgeInsetsPropType","React","StyleSheet","Text","View","invariant","keyMirror","requireNativeComponent","NativeModules"],function(e,t,n,r,o,i){"use strict";var a=t("ActivityIndicatorIOS"),s=t("EdgeInsetsPropType"),u=t("React"),c=t("StyleSheet"),l=t("Text"),p=t("View"),d=t("invariant"),h=t("keyMirror"),f=t("requireNativeComponent"),m=u.PropTypes,g=t("NativeModules").WebViewManager,v="rgba(255,255,255,0.8)",y="webview",_=h({IDLE:null,LOADING:null,ERROR:null}),b={click:g.NavigationType.LinkClicked,formsubmit:g.NavigationType.FormSubmitted,backforward:g.NavigationType.BackForward,reload:g.NavigationType.Reload,formresubmit:g.NavigationType.FormResubmitted,other:g.NavigationType.Other},S=function(){return u.createElement(p,{style:C.loadingView},u.createElement(a,null))},R=function(e,t,n){return u.createElement(p,{style:C.errorContainer},u.createElement(l,{style:C.errorTextTitle},"Error loading page"),u.createElement(l,{style:C.errorText},"Domain: "+e),u.createElement(l,{style:C.errorText},"Error Code: "+t),u.createElement(l,{style:C.errorText},"Description: "+n))},E=u.createClass({statics:{NavigationType:b},propTypes:{url:m.string,html:m.string,renderError:m.func,renderLoading:m.func,bounces:m.bool,scrollEnabled:m.bool,automaticallyAdjustContentInsets:m.bool,shouldInjectAJAXHandler:m.bool,contentInset:s,onNavigationStateChange:m.func,startInLoadingState:m.bool,style:p.propTypes.style,javaScriptEnabledAndroid:m.bool},getInitialState:function(){return{viewState:_.IDLE,lastErrorEvent:null,startInLoadingState:!0}},componentWillMount:function(){this.props.startInLoadingState&&this.setState({viewState:_.LOADING})},render:function(){var e=null;if(this.state.viewState===_.LOADING)e=(this.props.renderLoading||S)();else if(this.state.viewState===_.ERROR){var t=this.state.lastErrorEvent;d(null!=t,"lastErrorEvent expected to be non-null"),e=(this.props.renderError||R)(t.domain,t.code,t.description)}else this.state.viewState!==_.IDLE&&console.error("RCTWebView invalid state encountered: "+this.state.loading);var n=[C.container,C.webView,this.props.style];(this.state.viewState===_.LOADING||this.state.viewState===_.ERROR)&&n.push(C.hidden);var r=u.createElement(w,{ref:y,key:"webViewKey",style:n,url:this.props.url,html:this.props.html,bounces:this.props.bounces,scrollEnabled:this.props.scrollEnabled,shouldInjectAJAXHandler:this.props.shouldInjectAJAXHandler,contentInset:this.props.contentInset,automaticallyAdjustContentInsets:this.props.automaticallyAdjustContentInsets,onLoadingStart:this.onLoadingStart,onLoadingFinish:this.onLoadingFinish,onLoadingError:this.onLoadingError});return u.createElement(p,{style:C.container},r,e)},goForward:function(){g.goForward(this.getWebWiewHandle())},goBack:function(){g.goBack(this.getWebWiewHandle())},reload:function(){g.reload(this.getWebWiewHandle())},updateNavigationState:function(e){this.props.onNavigationStateChange&&this.props.onNavigationStateChange(e.nativeEvent)},getWebWiewHandle:function(){return u.findNodeHandle(this.refs[y])},onLoadingStart:function(e){this.updateNavigationState(e)},onLoadingError:function(e){e.persist(),console.error("Encountered an error loading page",e.nativeEvent),this.setState({lastErrorEvent:e.nativeEvent,viewState:_.ERROR})},onLoadingFinish:function(e){this.setState({viewState:_.IDLE}),this.updateNavigationState(e)}}),w=f("RCTWebView",E),C=c.create({container:{flex:1},errorContainer:{flex:1,justifyContent:"center",alignItems:"center",backgroundColor:v},errorText:{fontSize:14,textAlign:"center",marginBottom:2},errorTextTitle:{fontSize:15,fontWeight:"500",marginBottom:10},hidden:{height:0,flex:0},loadingView:{backgroundColor:v,flex:1,justifyContent:"center",alignItems:"center"},webView:{backgroundColor:"#ffffff"}});o.exports=E}),__d("AlertIOS",["NativeModules","invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("NativeModules").AlertManager,c=t("invariant"),l="OK",p={text:l,onPress:null},d=function(){function e(){a(this,e)}return s(e,null,[{key:"alert",value:function(e,t,n,r){var o=[],i=[];e=e||"",t=t||"",n=n||[p],r=r||"",n.forEach(function(e,t){o[t]=e.onPress;var n={};n[t]=e.text||l,i.push(n)}),u.alertWithArgs({title:e,message:t,buttons:i,type:r},function(e,t){var n=o[e];n&&n(t)})}},{key:"prompt",value:function(e,t,n,r){2===arguments.length?"object"==typeof t?(n=t,t=void 0):"function"==typeof t&&(r=t,t=void 0):3===arguments.length&&"function"==typeof n&&(r=n,n=void 0),c(!(r&&n)&&(r||n),"Must provide either a button list or a callback, but not both"),n||(n=[{text:"Cancel"},{text:"OK",onPress:r}]),this.alert(e,t,n,"plain-text")}}]),e}();o.exports=d}),__d("AppRegistry",["invariant","renderApplication","RCTRenderingPerf"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s=t("renderApplication");__DEV__&&t("RCTRenderingPerf");var u={},c={registerConfig:function(e){for(var t=0;t<e.length;++t){var n=e[t];n.run?c.registerRunnable(n.appKey,n.run):c.registerComponent(n.appKey,n.component)}},registerComponent:function(e,t){return u[e]={run:function(e){return s(t(),e.initialProps,e.rootTag)}},e},registerRunnable:function(e,t){return u[e]={run:t},e},runApplication:function(e,t){console.log('Running application "'+e+'" with appParams: '+JSON.stringify(t)+". __DEV__ === "+__DEV__+", development-level warning are "+(__DEV__?"ON":"OFF")+", performance optimizations are "+(__DEV__?"OFF":"ON")),a(u[e]&&u[e].run,"Application "+e+" has not been registered. This is either due to a require() error during initialization or failure to call AppRegistry.registerComponent."),u[e].run(t)}};o.exports=c}),__d("renderApplication",["InspectorOverlay","RCTDeviceEventEmitter","React","StyleSheet","Subscribable","View","WarningBox","invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){f(n,"Expect to have a valid rootTag, instead got ",n),c.render(c.createElement(m,{rootTag:n},c.createElement(e,t)),n)}var s=t("InspectorOverlay"),u=t("RCTDeviceEventEmitter"),c=t("React"),l=t("StyleSheet"),p=t("Subscribable"),d=t("View"),h=t("WarningBox"),f=t("invariant"),m=c.createClass({mixins:[p.Mixin],getInitialState:function(){return{inspector:null}},toggleElementInspector:function(){var e=this.state.inspector?null:c.createElement(s,{rootTag:this.props.rootTag,inspectedViewTag:c.findNodeHandle(this.refs.main)});this.setState({inspector:e})},componentDidMount:function(){this.addListenerOn(u,"toggleElementInspector",this.toggleElementInspector)},render:function(){var e=__DEV__&&console.yellowBoxEnabled,t=e?c.createElement(h,null):null;return c.createElement(d,{style:g.appContainer},c.createElement(d,{style:g.appContainer,ref:"main"},this.props.children),t,this.state.inspector)}}),g=l.create({appContainer:{position:"absolute",left:0,top:0,right:0,bottom:0}});o.exports=a}),__d("InspectorOverlay",["Dimensions","Inspector","React","StyleSheet","Text","NativeModules","View","ElementBox","ElementProperties"],function(e,t,n,r,o,i){"use strict";var a=t("Dimensions"),s=t("Inspector"),u=t("React"),c=t("StyleSheet"),l=t("Text"),p=t("NativeModules").UIManager,d=t("View"),h=t("ElementBox"),f=t("ElementProperties"),m=u.createClass({getInitialState:function(){return{frame:null,pointerY:0,hierarchy:[],selection:-1}},findViewForTouchEvent:function(e){var t=this,n=e.nativeEvent.touches[0],r=n.locationX,o=n.locationY;p.findSubviewIn(this.props.inspectedViewTag,[r,o],function(e,n,r,i,a){var u=s.findInstanceByNativeTag(t.props.rootTag,e);if(u){var c=s.getOwnerHierarchy(u),l=u.getPublicInstance();t.setState({hierarchy:c,pointerY:o,selection:c.length-1,frame:{left:n,top:r,width:i,height:a},style:l.props?l.props.style:{}})}})},setSelection:function(e){var t=this,n=this.state.hierarchy[e],r=n.getPublicInstance();p.measure(u.findNodeHandle(n),function(n,o,i,a,s,u){t.setState({frame:{left:s,top:u,width:i,height:a},style:r.props?r.props.style:{},selection:e})})},shouldSetResponser:function(e){return this.findViewForTouchEvent(e),!0},render:function(){var e=[],t="flex-end";if(this.state.frame){var n=this.state.pointerY,r=a.get("window").height-n;t=n>r?"flex-start":"flex-end",e.push(u.createElement(h,{frame:this.state.frame,style:this.state.style})),e.push(u.createElement(f,{style:this.state.style,frame:this.state.frame,hierarchy:this.state.hierarchy,selection:this.state.selection,setSelection:this.setSelection}))}else e.push(u.createElement(d,{style:g.welcomeMessage},u.createElement(l,{style:g.welcomeText},"Welcome to the inspector! Tap something to inspect it.")));return u.createElement(d,{onStartShouldSetResponder:this.shouldSetResponser,onResponderMove:this.findViewForTouchEvent,style:[g.inspector,{justifyContent:t}]},e)}}),g=c.create({welcomeMessage:{backgroundColor:"rgba(0, 0, 0, 0.7)",padding:10,paddingVertical:50},welcomeText:{color:"white"},inspector:{backgroundColor:"rgba(255,255,255,0.0)",position:"absolute",left:0,top:0,right:0,bottom:0}});o.exports=m}),__d("Inspector",["ReactInstanceHandles","ReactInstanceMap","ReactNativeMount","ReactNativeTagHandles"],function(e,t,n,r,o,i){"use strict";function a(e,t){t&&(e.unshift(t),a(e,t._currentElement._owner))}function s(e,t){if(t===u(e))return e;if(e._renderedComponent)return s(e._renderedComponent,t);for(var n in e._renderedChildren){var r=e._renderedChildren[n];if(p.isAncestorIDOf(u(r),t)){var o=s(r,t);if(o)return o}}}function u(e){var t=d.get(e);return t?t._rootNodeID:e._rootNodeID}function c(e,t){var n=f.tagToRootNodeID[e],r=h._instancesByContainerID[n],o=f.tagToRootNodeID[t];return o?s(r,o):void 0}function l(e){var t=[];return a(t,e),t}var p=t("ReactInstanceHandles"),d=t("ReactInstanceMap"),h=t("ReactNativeMount"),f=t("ReactNativeTagHandles");o.exports={findInstanceByNativeTag:c,getOwnerHierarchy:l}}),__d("ElementBox",["React","View","StyleSheet","BorderBox","resolveBoxStyle","flattenStyle"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function y(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:y(o,t,n)}if("value"in r)return r.value;var i=r.get;return void 0===i?void 0:i.call(n)},l=t("React"),p=t("View"),d=t("StyleSheet"),h=t("BorderBox"),f=t("resolveBoxStyle"),m=t("flattenStyle"),g=function(e){function t(){a(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return s(t,e),u(t,[{key:"render",value:function(){var e=m(this.props.style)||{},t=f("margin",e),n=f("padding",e),r=this.props.frame;t&&(r={top:r.top-t.top,left:r.left-t.left,height:r.height+t.top+t.bottom,width:r.width+t.left+t.right});var o={width:this.props.frame.width,height:this.props.frame.height};return n&&(o={width:o.width-n.left-n.right,height:o.height-n.top-n.bottom}),l.createElement(p,{style:[v.frame,r],pointerEvents:"none"},l.createElement(h,{box:t,style:v.margin},l.createElement(h,{box:n,style:v.padding},l.createElement(p,{style:[v.content,o]}))))}}]),t}(l.Component),v=d.create({frame:{position:"absolute"},content:{backgroundColor:"rgba(200, 230, 255, 0.8)"},padding:{borderColor:"rgba(77, 255, 0, 0.3)"},margin:{borderColor:"rgba(255, 132, 0, 0.3)"}});o.exports=g}),__d("BorderBox",["React","View"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:h(o,t,n)}if("value"in r)return r.value;var i=r.get;return void 0===i?void 0:i.call(n)},l=t("React"),p=t("View"),d=function(e){function t(){a(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return s(t,e),u(t,[{key:"render",value:function(){var e=this.props.box;if(!e)return this.props.children;var t={borderTopWidth:e.top,borderBottomWidth:e.bottom,borderLeftWidth:e.left,borderRightWidth:e.right};return l.createElement(p,{style:[t,this.props.style]},this.props.children)}}]),t}(l.Component);o.exports=d}),__d("resolveBoxStyle",[],function(e,t,n,r,o,i){"use strict";function a(e,t){var n={},r=["top","left","bottom","right"],o=!1;return r.forEach(function(r){n[r]=t[e]||0}),t[e]&&(o=!0),t[e+"Vertical"]&&(n.top=n.bottom=t[e+"Vertical"],o=!0),t[e+"Horizontal"]&&(n.left=n.right=t[e+"Horizontal"],o=!0),r.forEach(function(r){var i=t[e+s(r)];i&&(n[r]=i,o=!0)}),o?n:void 0}function s(e){return e[0].toUpperCase()+e.slice(1)}o.exports=a}),__d("ElementProperties",["React","StyleSheet","Text","View","ReactPropTypes","BoxInspector","StyleInspector","TouchableHighlight","TouchableWithoutFeedback","flattenStyle","mapWithSeparator"],function(e,t,n,r,o,i){"use strict";var a=t("React"),s=t("StyleSheet"),u=t("Text"),c=t("View"),l=t("ReactPropTypes"),p=t("BoxInspector"),d=t("StyleInspector"),h=t("TouchableHighlight"),f=t("TouchableWithoutFeedback"),m=t("flattenStyle"),g=t("mapWithSeparator"),v=a.createClass({propTypes:{hierarchy:l.array.isRequired,style:l.array.isRequired},render:function(){var e=this,t=m(this.props.style),n=this.props.selection;return a.createElement(f,null,a.createElement(c,{style:y.info},a.createElement(c,{style:y.breadcrumb},g(this.props.hierarchy,function(t,r){return a.createElement(h,{style:[y.breadItem,r===n&&y.selected],onPress:function(){return e.props.setSelection(r)}},a.createElement(u,{style:y.breadItemText},t.getName?t.getName():"Unknown"))},function(){return a.createElement(u,{style:y.breadSep},"▸")})),a.createElement(c,{style:y.row},a.createElement(d,{style:t}),a.createElement(p,{style:t,frame:this.props.frame}))))}}),y=s.create({breadSep:{fontSize:8,color:"white"},breadcrumb:{flexDirection:"row",flexWrap:"wrap",marginBottom:5},selected:{borderColor:"white",borderRadius:5},breadItem:{borderWidth:1,borderColor:"transparent",marginHorizontal:2},breadItemText:{fontSize:10,color:"white",marginHorizontal:5},row:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},info:{backgroundColor:"rgba(0, 0, 0, 0.7)",padding:10},path:{color:"white",fontSize:9}});o.exports=v}),__d("BoxInspector",["React","StyleSheet","Text","View","resolveBoxStyle"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function _(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:_(o,t,n)}if("value"in r)return r.value;var i=r.get;return void 0===i?void 0:i.call(n)},l=t("React"),p=t("StyleSheet"),d=t("Text"),h=t("View"),f=t("resolveBoxStyle"),m={top:0,left:0,right:0,bottom:0},g=function(e){function t(){a(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return s(t,e),u(t,[{key:"render",value:function(){var e=this.props.frame,t=this.props.style,n=t&&f("margin",t)||m,r=t&&f("padding",t)||m;return l.createElement(v,{title:"margin",titleStyle:y.marginLabel,box:n},l.createElement(v,{title:"padding",box:r},l.createElement(h,null,l.createElement(d,{style:y.innerText},"(",e.left,", ",e.top,")"),l.createElement(d,{style:y.innerText},e.width," × ",e.height))))}}]),t}(l.Component),v=function(e){function t(){a(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return s(t,e),u(t,[{key:"render",value:function(){var e=this.props.box;return l.createElement(h,{style:y.box},l.createElement(h,{style:y.row},l.createElement(d,{style:[this.props.titleStyle,y.label]},this.props.title),l.createElement(d,{style:y.boxText},e.top)),l.createElement(h,{style:y.row},l.createElement(d,{style:y.boxText},e.left),this.props.children,l.createElement(d,{style:y.boxText},e.right)),l.createElement(d,{style:y.boxText},e.bottom))}}]),t}(l.Component),y=p.create({row:{flexDirection:"row",alignItems:"center",justifyContent:"space-around"},marginLabel:{width:60},label:{fontSize:10,color:"rgb(255,100,0)",marginLeft:5,flex:1,textAlign:"left",top:-3},buffer:{fontSize:10,color:"yellow",flex:1,textAlign:"center"},innerText:{color:"yellow",fontSize:12,textAlign:"center",width:70},box:{borderWidth:1,borderColor:"grey"},boxText:{color:"white",fontSize:12,marginHorizontal:3,marginVertical:2,textAlign:"center"}});o.exports=g}),__d("StyleInspector",["React","StyleSheet","Text","View"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:g(o,t,n)}if("value"in r)return r.value;var i=r.get;return void 0===i?void 0:i.call(n)},l=t("React"),p=t("StyleSheet"),d=t("Text"),h=t("View"),f=function(e){function t(){a(this,t),c(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return s(t,e),u(t,[{key:"render",value:function(){var e=this;if(!this.props.style)return l.createElement(d,{style:m.noStyle},"No style");var t=Object.keys(this.props.style);return l.createElement(h,{style:m.container},l.createElement(h,null,t.map(function(e){return l.createElement(d,{style:m.attr},e,":")})),l.createElement(h,null,t.map(function(t){return l.createElement(d,{style:m.value},e.props.style[t])})))}}]),t}(l.Component),m=p.create({container:{flexDirection:"row"},row:{flexDirection:"row",alignItems:"center",justifyContent:"space-around"},attr:{fontSize:10,color:"#ccc"},value:{fontSize:10,color:"white",marginLeft:10},noStyle:{color:"white",fontSize:10}});o.exports=f}),__d("mapWithSeparator",[],function(e,t,n,r,o,i){"use strict";function a(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(t(e[o],o,e)),o!==e.length-1&&r.push(n(o));return r}o.exports=a}),__d("WarningBox",["AsyncStorage","EventEmitter","Map","PanResponder","React","StyleSheet","Text","TouchableOpacity","View","invariant","rebound/rebound","stringifySafe","Dimensions"],function(e,t,n,r,o,i){"use strict";function a(){u.setItem(S,JSON.stringify(w),function(e){e&&console.warn("Could not save ignored warnings.",e)})}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=t("AsyncStorage"),c=t("EventEmitter"),l=t("Map"),p=t("PanResponder"),d=t("React"),h=t("StyleSheet"),f=t("Text"),m=t("TouchableOpacity"),g=t("View"),v=t("invariant"),y=t("rebound/rebound"),_=t("stringifySafe"),b=t("Dimensions").get("window").width,S="__DEV_WARNINGS_IGNORED",R=console.warn.bind(console),E=new l,w=[],C=0,T=new c;__DEV__&&(console.warn=function(){if(R.apply(null,arguments),console.yellowBoxEnabled){var e=Array.prototype.map.call(arguments,_).join(" ");if(console.yellowBoxResetIgnored||-1===w.indexOf(e)){var t=E.has(e)?E.get(e)+1:1;E.set(e,t),C+=1,T.emit("count",C)}}}),u.getItem(S,function(e,t){e||!t||console.yellowBoxResetIgnored||(w=JSON.parse(t))});var I=d.createClass({componentWillMount:function(){var e=this;this.springSystem=new y.SpringSystem,this.dismissalSpring=this.springSystem.createSpring(),this.dismissalSpring.setRestSpeedThreshold(.05),this.dismissalSpring.setCurrentValue(0),this.dismissalSpring.addListener({onSpringUpdate:function(){var t=e.dismissalSpring.getCurrentValue();e.text&&e.text.setNativeProps({left:b*t}),e.container&&e.container.setNativeProps({opacity:1-t}),e.closeButton&&e.closeButton.setNativeProps({opacity:1-5*t})},onSpringAtRest:function(){e.dismissalSpring.getCurrentValue()&&e.collapseSpring.setEndValue(1)}}),this.collapseSpring=this.springSystem.createSpring(),this.collapseSpring.setRestSpeedThreshold(.05),this.collapseSpring.setCurrentValue(0),this.collapseSpring.getSpringConfig().friction=20,this.collapseSpring.getSpringConfig().tension=200,
this.collapseSpring.addListener({onSpringUpdate:function(){var t=e.collapseSpring.getCurrentValue();e.container&&e.container.setNativeProps({height:Math.abs(46-46*t)})},onSpringAtRest:function(){e.props.onDismissed()}}),this.panGesture=p.create({onStartShouldSetPanResponder:function(){return!!e.dismissalSpring.getCurrentValue()},onMoveShouldSetPanResponder:function(){return!0},onPanResponderGrant:function(){e.isResponderOnlyToBlockTouches=!!e.dismissalSpring.getCurrentValue()},onPanResponderMove:function(t,n){e.isResponderOnlyToBlockTouches||e.dismissalSpring.setCurrentValue(n.dx/b)},onPanResponderRelease:function(t,n){if(!e.isResponderOnlyToBlockTouches){var r=n.dx/b,o=n.vx+r>.5;e.dismissalSpring.setEndValue(o?1:0)}}})},render:function(){var e,t=this;return E.get(this.props.warning)>1&&(e=d.createElement(f,{style:O.bold},"(",E.get(this.props.warning),")"," ")),d.createElement(g,s({style:O.warningBox,ref:function(e){t.container=e}},this.panGesture.panHandlers),d.createElement(m,{onPress:this.props.onOpened},d.createElement(g,null,d.createElement(f,{style:O.warningText,numberOfLines:2,ref:function(e){t.text=e}},e,this.props.warning))),d.createElement(g,{ref:function(e){t.closeButton=e},style:O.closeButton},d.createElement(m,{onPress:function(){t.dismissalSpring.setEndValue(1)}},d.createElement(f,{style:O.closeButtonText},"✕"))))}}),P=d.createClass({render:function(){var e;return E.get(this.props.warning)>1&&(e=d.createElement(f,{style:O.bold},"(",E.get(this.props.warning),")"," ")),d.createElement(m,{activeOpacity:.9,onPress:this.props.onClose},d.createElement(g,{style:O.yellowBox},d.createElement(f,{style:O.yellowBoxText},e,this.props.warning),d.createElement(g,{style:O.yellowBoxButtons},d.createElement(g,{style:O.yellowBoxButton},d.createElement(m,{onPress:this.props.onDismissed},d.createElement(f,{style:O.yellowBoxButtonText},"Dismiss"))),d.createElement(g,{style:O.yellowBoxButton},d.createElement(m,{onPress:this.props.onIgnored},d.createElement(f,{style:O.yellowBoxButtonText},"Ignore"))))))}}),x=!0,M=d.createClass({getInitialState:function(){return{totalWarningCount:C,openWarning:null}},componentWillMount:function(){console.yellowBoxResetIgnored&&(u.setItem(S,"[]",function(e){e&&console.warn("Could not reset ignored warnings.",e)}),w=[])},componentDidMount:function(){v(x,"There can only be one WarningBox"),x=!1,T.addListener("count",this._onWarningCount)},componentWillUnmount:function(){T.removeAllListeners(),x=!0},_onWarningCount:function(e){var t=this;setImmediate(function(){t.setState({totalWarningCount:e})})},_onDismiss:function(e){E["delete"](e),this.setState({openWarning:null})},render:function(){var e=this;if(0===E.size)return d.createElement(g,null);if(this.state.openWarning)return d.createElement(P,{warning:this.state.openWarning,onClose:function(){e.setState({openWarning:null})},onDismissed:this._onDismiss.bind(this,this.state.openWarning),onIgnored:function(){w.push(e.state.openWarning),a(),e._onDismiss(e.state.openWarning)}});var t=[];return E.forEach(function(n,r){t.push(d.createElement(I,{key:r,onOpened:function(){e.setState({openWarning:r})},onDismissed:e._onDismiss.bind(e,r),warning:r}))}),d.createElement(g,{style:O.warningContainer},t)}}),O=h.create({bold:{fontWeight:"bold"},closeButton:{position:"absolute",right:0,height:46,width:46},closeButtonText:{color:"white",fontSize:32,position:"relative",left:8},warningContainer:{position:"absolute",left:0,right:0,bottom:0},warningBox:{position:"relative",backgroundColor:"rgba(171, 124, 36, 0.9)",flex:1,height:46},warningText:{color:"white",position:"absolute",left:0,marginLeft:15,marginRight:46,top:7},yellowBox:{backgroundColor:"rgba(171, 124, 36, 0.9)",position:"absolute",left:0,right:0,top:0,bottom:0,padding:15,paddingTop:35},yellowBoxText:{color:"white",fontSize:20},yellowBoxButtons:{flexDirection:"row",position:"absolute",bottom:0},yellowBoxButton:{flex:1,padding:25},yellowBoxButtonText:{color:"white",fontSize:16}});o.exports=M}),__d("AsyncStorage",["NativeModules"],function(e,t,n,r,o,i){"use strict";function a(e){if(!e)return null;var t=new Error(e.message);return t.key=e.key,t}var s=t("NativeModules"),u=s.AsyncLocalStorage,c=s.AsyncRocksDBStorage,l=c||u,p={getItem:function(e,t){return new Promise(function(n,r){l.multiGet([e],function(e,o){var i=o&&o[0]&&o[0][1]?o[0][1]:null;t&&t(e&&a(e[0])||null,i),e?r(a(e[0])):n(i)})})},setItem:function(e,t,n){return new Promise(function(r,o){l.multiSet([[e,t]],function(e){n&&n(e&&a(e[0])||null),e?o(a(e[0])):r(null)})})},removeItem:function(e,t){return new Promise(function(n,r){l.multiRemove([e],function(e){t&&t(e&&a(e[0])||null),e?r(a(e[0])):n(null)})})},mergeItem:function(e,t,n){return new Promise(function(r,o){l.multiMerge([[e,t]],function(e){n&&n(e&&a(e[0])||null),e?o(a(e[0])):r(null)})})},clear:function(e){return new Promise(function(t,n){l.clear(function(r){e&&e(a(r)),r&&a(r)?n(a(r)):t(null)})})},getAllKeys:function(e){return new Promise(function(t,n){l.getAllKeys(function(r,o){e&&e(a(r),o),r?n(a(r)):t(o)})})},multiGet:function(e,t){return new Promise(function(n,r){l.multiGet(e,function(e,o){var i=e&&e.map(function(e){return a(e)})||null;t&&t(i,o),e?r(i):n(o)})})},multiSet:function(e,t){return new Promise(function(n,r){l.multiSet(e,function(e){var o=e&&e.map(function(e){return a(e)})||null;t&&t(o),e?r(o):n(null)})})},multiRemove:function(e,t){return new Promise(function(n,r){l.multiRemove(e,function(e){var o=e&&e.map(function(e){return a(e)})||null;t&&t(o),e?r(o):n(null)})})},multiMerge:function(e,t){return new Promise(function(n,r){l.multiMerge(e,function(e){var o=e&&e.map(function(e){return a(e)})||null;t&&t(o),e?r(o):n(null)})})}};l.multiMerge||(delete p.mergeItem,delete p.multiMerge),o.exports=p}),__d("RCTRenderingPerf",["ReactDefaultPerf","invariant"],function(e,t,n,r,o,i){"use strict";var a=t("ReactDefaultPerf"),s=t("invariant"),u=[],c=!1,l={toggle:function(){console.log("Render perfomance measurements enabled"),c=!0},start:function(){c&&(a.start(),u.forEach(function(e){return e.start()}))},stop:function(){if(c){a.stop(),a.printInclusive(),a.printWasted();for(var e=0,t=0,n=a.getLastMeasurements(),r=0;r<n.length;r++){var o=n[r].render;for(var i in o)e+=o[i];t+=n[r].totalTime}console.log("Total time spent in render(): "+e+"ms"),u.forEach(function(e){return e.stop()})}},register:function(e){s("function"==typeof e.start,"Perf module should have start() function"),s("function"==typeof e.stop,"Perf module should have stop() function"),u.push(e)}};o.exports=l}),__d("ReactDefaultPerf",["DOMProperty","ReactDefaultPerfAnalysis","ReactMount","ReactPerf","performanceNow"],function(e,t,n,r,o,i){"use strict";function a(e){return Math.floor(100*e)/100}function s(e,t,n){e[t]=(e[t]||0)+n}var u=t("DOMProperty"),c=t("ReactDefaultPerfAnalysis"),l=t("ReactMount"),p=t("ReactPerf"),d=t("performanceNow"),h={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){h._injected||p.injection.injectMeasure(h.measure),h._allMeasurements.length=0,p.enableMeasure=!0},stop:function(){p.enableMeasure=!1},getLastMeasurements:function(){return h._allMeasurements},printExclusive:function(e){e=e||h._allMeasurements;var t=c.getExclusiveSummary(e);console.table(t.map(function(e){return{"Component class name":e.componentName,"Total inclusive time (ms)":a(e.inclusive),"Exclusive mount time (ms)":a(e.exclusive),"Exclusive render time (ms)":a(e.render),"Mount time per instance (ms)":a(e.exclusive/e.count),"Render time per instance (ms)":a(e.render/e.count),Instances:e.count}}))},printInclusive:function(e){e=e||h._allMeasurements;var t=c.getInclusiveSummary(e);console.table(t.map(function(e){return{"Owner > component":e.componentName,"Inclusive time (ms)":a(e.time),Instances:e.count}})),console.log("Total time:",c.getTotalTime(e).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(e){var t=c.getInclusiveSummary(e,!0);return t.map(function(e){return{"Owner > component":e.componentName,"Wasted time (ms)":e.time,Instances:e.count}})},printWasted:function(e){e=e||h._allMeasurements,console.table(h.getMeasurementsSummaryMap(e)),console.log("Total time:",c.getTotalTime(e).toFixed(2)+" ms")},printDOM:function(e){e=e||h._allMeasurements;var t=c.getDOMSummary(e);console.table(t.map(function(e){var t={};return t[u.ID_ATTRIBUTE_NAME]=e.id,t.type=e.type,t.args=JSON.stringify(e.args),t})),console.log("Total time:",c.getTotalTime(e).toFixed(2)+" ms")},_recordWrite:function(e,t,n,r){var o=h._allMeasurements[h._allMeasurements.length-1].writes;o[e]=o[e]||[],o[e].push({type:t,time:n,args:r})},measure:function(e,t,n){return function(){for(var r=arguments.length,o=Array(r),i=0;r>i;i++)o[i]=arguments[i];var a,u,c;if("_renderNewRootComponent"===t||"flushBatchedUpdates"===t)return h._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0}),c=d(),u=n.apply(this,o),h._allMeasurements[h._allMeasurements.length-1].totalTime=d()-c,u;if("_mountImageIntoNode"===t||"ReactDOMIDOperations"===e){if(c=d(),u=n.apply(this,o),a=d()-c,"_mountImageIntoNode"===t){var p=l.getID(o[1]);h._recordWrite(p,t,a,o[0])}else"dangerouslyProcessChildrenUpdates"===t?o[0].forEach(function(e){var t={};null!==e.fromIndex&&(t.fromIndex=e.fromIndex),null!==e.toIndex&&(t.toIndex=e.toIndex),null!==e.textContent&&(t.textContent=e.textContent),null!==e.markupIndex&&(t.markup=o[1][e.markupIndex]),h._recordWrite(e.parentID,e.type,a,t)}):h._recordWrite(o[0],t,a,Array.prototype.slice.call(o,1));return u}if("ReactCompositeComponent"!==e||"mountComponent"!==t&&"updateComponent"!==t&&"_renderValidatedComponent"!==t)return n.apply(this,o);if("string"==typeof this._currentElement.type)return n.apply(this,o);var f="mountComponent"===t?o[0]:this._rootNodeID,m="_renderValidatedComponent"===t,g="mountComponent"===t,v=h._mountStack,y=h._allMeasurements[h._allMeasurements.length-1];if(m?s(y.counts,f,1):g&&v.push(0),c=d(),u=n.apply(this,o),a=d()-c,m)s(y.render,f,a);else if(g){var _=v.pop();v[v.length-1]+=a,s(y.exclusive,f,a-_),s(y.inclusive,f,a)}else s(y.inclusive,f,a);return y.displayNames[f]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():"<root>"},u}}};o.exports=h}),__d("DOMProperty",["invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t){return(e&t)===t}var s=t("invariant"),u={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=e.Properties||{},n=e.DOMAttributeNames||{},r=e.DOMPropertyNames||{},o=e.DOMMutationMethods||{};e.isCustomAttribute&&l._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var i in t){s(!l.isStandardName.hasOwnProperty(i),"injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",i),l.isStandardName[i]=!0;var c=i.toLowerCase();if(l.getPossibleStandardName[c]=i,n.hasOwnProperty(i)){var p=n[i];l.getPossibleStandardName[p]=i,l.getAttributeName[i]=p}else l.getAttributeName[i]=c;l.getPropertyName[i]=r.hasOwnProperty(i)?r[i]:i,o.hasOwnProperty(i)?l.getMutationMethod[i]=o[i]:l.getMutationMethod[i]=null;var d=t[i];l.mustUseAttribute[i]=a(d,u.MUST_USE_ATTRIBUTE),l.mustUseProperty[i]=a(d,u.MUST_USE_PROPERTY),l.hasSideEffects[i]=a(d,u.HAS_SIDE_EFFECTS),l.hasBooleanValue[i]=a(d,u.HAS_BOOLEAN_VALUE),l.hasNumericValue[i]=a(d,u.HAS_NUMERIC_VALUE),l.hasPositiveNumericValue[i]=a(d,u.HAS_POSITIVE_NUMERIC_VALUE),l.hasOverloadedBooleanValue[i]=a(d,u.HAS_OVERLOADED_BOOLEAN_VALUE),s(!l.mustUseAttribute[i]||!l.mustUseProperty[i],"DOMProperty: Cannot require using both attribute and property: %s",i),s(l.mustUseProperty[i]||!l.hasSideEffects[i],"DOMProperty: Properties that have side effects must use property: %s",i),s(!!l.hasBooleanValue[i]+!!l.hasNumericValue[i]+!!l.hasOverloadedBooleanValue[i]<=1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",i)}}},c={},l={ID_ATTRIBUTE_NAME:"data-reactid",isStandardName:{},getPossibleStandardName:{},getAttributeName:{},getPropertyName:{},getMutationMethod:{},mustUseAttribute:{},mustUseProperty:{},hasSideEffects:{},hasBooleanValue:{},hasNumericValue:{},hasPositiveNumericValue:{},hasOverloadedBooleanValue:{},_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<l._isCustomAttributeFunctions.length;t++){var n=l._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,r=c[e];return r||(c[e]=r={}),t in r||(n=document.createElement(e),r[t]=n[t]),r[t]},injection:u};o.exports=l}),__d("ReactDefaultPerfAnalysis",["Object.assign"],function(e,t,n,r,o,i){function a(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.totalTime}return t}function s(e){for(var t=[],n=0;n<e.length;n++){var r,o=e[n];for(r in o.writes)o.writes[r].forEach(function(e){t.push({id:r,type:h[e.type]||e.type,args:e.args})})}return t}function u(e){for(var t,n={},r=0;r<e.length;r++){var o=e[r],i=p({},o.exclusive,o.inclusive);for(var a in i)t=o.displayNames[a].current,n[t]=n[t]||{componentName:t,inclusive:0,exclusive:0,render:0,count:0},o.render[a]&&(n[t].render+=o.render[a]),o.exclusive[a]&&(n[t].exclusive+=o.exclusive[a]),o.inclusive[a]&&(n[t].inclusive+=o.inclusive[a]),o.counts[a]&&(n[t].count+=o.counts[a])}var s=[];for(t in n)n[t].exclusive>=d&&s.push(n[t]);return s.sort(function(e,t){return t.exclusive-e.exclusive}),s}function c(e,t){for(var n,r={},o=0;o<e.length;o++){var i,a=e[o],s=p({},a.exclusive,a.inclusive);t&&(i=l(a));for(var u in s)if(!t||i[u]){var c=a.displayNames[u];n=c.owner+" > "+c.current,r[n]=r[n]||{componentName:n,time:0,count:0},a.inclusive[u]&&(r[n].time+=a.inclusive[u]),a.counts[u]&&(r[n].count+=a.counts[u])}}var h=[];for(n in r)r[n].time>=d&&h.push(r[n]);return h.sort(function(e,t){return t.time-e.time}),h}function l(e){var t={},n=Object.keys(e.writes),r=p({},e.exclusive,e.inclusive);for(var o in r){for(var i=!1,a=0;a<n.length;a++)if(0===n[a].indexOf(o)){i=!0;break}!i&&e.counts[o]>0&&(t[o]=!0)}return t}var p=t("Object.assign"),d=1.2,h={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",TEXT_CONTENT:"set textContent",updatePropertyByID:"update attribute",deletePropertyByID:"delete attribute",updateStylesByID:"update styles",updateInnerHTMLByID:"set innerHTML",dangerouslyReplaceNodeWithMarkupByID:"replace"},f={getExclusiveSummary:u,getInclusiveSummary:c,getDOMSummary:s,getTotalTime:a};o.exports=f}),__d("ReactMount",["DOMProperty","ReactBrowserEventEmitter","ReactCurrentOwner","ReactElement","ReactElementValidator","ReactEmptyComponent","ReactInstanceHandles","ReactInstanceMap","ReactMarkupChecksum","ReactPerf","ReactReconciler","ReactUpdateQueue","ReactUpdates","emptyObject","containsNode","getReactRootElementInContainer","instantiateReactComponent","invariant","setInnerHTML","shouldUpdateReactComponent","warning"],function(e,t,n,r,o,i){"use strict";function a(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function s(e){var t=k(e);return t&&Q.getID(t)}function u(e){var t=c(e);if(t)if(U.hasOwnProperty(t)){var n=U[t];n!==e&&(L(!h(n,t),"ReactMount: Two valid but unequal nodes with the same `%s`: %s",H,t),U[t]=e)}else U[t]=e;return t}function c(e){return e&&e.getAttribute&&e.getAttribute(H)||""}function l(e,t){var n=c(e);n!==t&&delete U[n],e.setAttribute(H,t),U[t]=e}function p(e){return U.hasOwnProperty(e)&&h(U[e],e)||(U[e]=Q.findReactNodeByID(e)),U[e]}function d(e){var t=T.get(e)._rootNodeID;return w.isNullComponentID(t)?null:(U.hasOwnProperty(t)&&h(U[t],t)||(U[t]=Q.findReactNodeByID(t)),U[t])}function h(e,t){if(e){L(c(e)===t,"ReactMount: Unexpected modification of `%s`",H);var n=Q.findReactContainerForID(t);if(n&&N(n,e))return!0}return!1}function f(e){delete U[e]}function m(e){var t=U[e];return t&&h(t,e)?void(X=t):!1}function g(e){X=null,C.traverseAncestors(e,m);var t=X;return X=null,t}function v(e,t,n,r,o){var i=x.mountComponent(e,t,r,D);e._isTopLevel=!0,Q._mountImageIntoNode(i,n,o)}function y(e,t,n,r){var o=O.ReactReconcileTransaction.getPooled();o.perform(v,null,e,t,n,o,r),O.ReactReconcileTransaction.release(o)}var _=t("DOMProperty"),b=t("ReactBrowserEventEmitter"),S=t("ReactCurrentOwner"),R=t("ReactElement"),E=t("ReactElementValidator"),w=t("ReactEmptyComponent"),C=t("ReactInstanceHandles"),T=t("ReactInstanceMap"),I=t("ReactMarkupChecksum"),P=t("ReactPerf"),x=t("ReactReconciler"),M=t("ReactUpdateQueue"),O=t("ReactUpdates"),D=t("emptyObject"),N=t("containsNode"),k=t("getReactRootElementInContainer"),A=t("instantiateReactComponent"),L=t("invariant"),V=t("setInnerHTML"),B=t("shouldUpdateReactComponent"),j=t("warning"),F=C.SEPARATOR,H=_.ID_ATTRIBUTE_NAME,U={},W=1,G=9,q={},z={};if(__DEV__)var Y={};var $=[],X=null,Q={_instancesByReactRootID:q,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return __DEV__&&E.checkAndWarnForMutatedProps(t),Q.scrollMonitor(n,function(){M.enqueueElementInternal(e,t),r&&M.enqueueCallbackInternal(e,r)}),__DEV__&&(Y[s(n)]=k(n)),e},_registerComponent:function(e,t){L(t&&(t.nodeType===W||t.nodeType===G),"_registerComponent(...): Target container is not a DOM element."),b.ensureScrollValueMonitoring();var n=Q.registerContainer(t);return q[n]=e,n},_renderNewRootComponent:function(e,t,n){j(null==S.current,"_renderNewRootComponent(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.");var r=A(e,null),o=Q._registerComponent(r,t);return O.batchedUpdates(y,r,o,t,n),__DEV__&&(Y[o]=k(t)),r},render:function(e,t,n){L(R.isValidElement(e),"React.render(): Invalid component element.%s","string"==typeof e?" Instead of passing an element string, make sure to instantiate it by passing it to React.createElement.":"function"==typeof e?" Instead of passing a component class, make sure to instantiate it by passing it to React.createElement.":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var r=q[s(t)];if(r){var o=r._currentElement;if(B(o,e))return Q._updateRootComponent(r,e,t,n).getPublicInstance();Q.unmountComponentAtNode(t)}var i=k(t),a=i&&Q.isRenderedByReact(i);if(__DEV__&&(!a||i.nextSibling))for(var u=i;u;){if(Q.isRenderedByReact(u)){j(!1,"render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.");break}u=u.nextSibling}var c=a&&!r,l=Q._renderNewRootComponent(e,t,c).getPublicInstance();return n&&n.call(l),l},constructAndRenderComponent:function(e,t,n){var r=R.createElement(e,t);return Q.render(r,n)},constructAndRenderComponentByID:function(e,t,n){var r=document.getElementById(n);return L(r,'Tried to get element with id of "%s" but it is not present on the page.',n),Q.constructAndRenderComponent(e,t,r)},registerContainer:function(e){var t=s(e);return t&&(t=C.getReactRootIDFromNodeID(t)),t||(t=C.createReactRootID()),z[t]=e,t},unmountComponentAtNode:function(e){j(null==S.current,"unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate."),L(e&&(e.nodeType===W||e.nodeType===G),"unmountComponentAtNode(...): Target container is not a DOM element.");var t=s(e),n=q[t];return n?(Q.unmountComponentFromNode(n,e),delete q[t],delete z[t],__DEV__&&delete Y[t],!0):!1},unmountComponentFromNode:function(e,t){for(x.unmountComponent(e),t.nodeType===G&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)},findReactContainerForID:function(e){var t=C.getReactRootIDFromNodeID(e),n=z[t];if(__DEV__){var r=Y[t];if(r&&r.parentNode!==n){L(c(r)===t,"ReactMount: Root element ID differed from reactRootID.");var o=n.firstChild;o&&t===c(o)?Y[t]=o:j(!1,"ReactMount: Root element has been removed from its original container. New container:",r.parentNode)}}return n},findReactNodeByID:function(e){var t=Q.findReactContainerForID(e);return Q.findComponentRoot(t,e)},isRenderedByReact:function(e){if(1!==e.nodeType)return!1;var t=Q.getID(e);return t?t.charAt(0)===F:!1},getFirstReactDOM:function(e){for(var t=e;t&&t.parentNode!==t;){if(Q.isRenderedByReact(t))return t;t=t.parentNode}return null},findComponentRoot:function(e,t){var n=$,r=0,o=g(t)||e;for(n[0]=o.firstChild,n.length=1;r<n.length;){for(var i,a=n[r++];a;){var s=Q.getID(a);s?t===s?i=a:C.isAncestorIDOf(s,t)&&(n.length=r=0,n.push(a.firstChild)):n.push(a.firstChild),a=a.nextSibling}if(i)return n.length=0,i}n.length=0,L(!1,"findComponentRoot(..., %s): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",t,Q.getID(e))},_mountImageIntoNode:function(e,t,n){if(L(t&&(t.nodeType===W||t.nodeType===G),"mountComponentIntoNode(...): Target container is not valid."),n){var r=k(t);if(I.canReuseMarkup(e,r))return;var o=r.getAttribute(I.CHECKSUM_ATTR_NAME);r.removeAttribute(I.CHECKSUM_ATTR_NAME);var i=r.outerHTML;r.setAttribute(I.CHECKSUM_ATTR_NAME,o);var s=a(e,i),u=" (client) "+e.substring(s-20,s+20)+"\n (server) "+i.substring(s-20,s+20);L(t.nodeType!==G,"You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s",u),__DEV__&&j(!1,"React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\n%s",u)}L(t.nodeType!==G,"You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See React.renderToString() for server rendering."),V(t,e)},getReactRootID:s,getID:u,setID:l,getNode:p,getNodeFromInstance:d,purgeID:f};P.measureMethods(Q,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),o.exports=Q}),__d("ReactBrowserEventEmitter",["EventConstants","EventPluginHub","EventPluginRegistry","ReactEventEmitterMixin","ViewportMetrics","Object.assign","isEventSupported"],function(e,t,n,r,o,i){"use strict";function a(e){return Object.prototype.hasOwnProperty.call(e,y)||(e[y]=g++,f[e[y]]={}),f[e[y]]}var s=t("EventConstants"),u=t("EventPluginHub"),c=t("EventPluginRegistry"),l=t("ReactEventEmitterMixin"),p=t("ViewportMetrics"),d=t("Object.assign"),h=t("isEventSupported"),f={},m=!1,g=0,v={topBlur:"blur",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topWheel:"wheel"},y="_reactListenersID"+String(Math.random()).slice(2),_=d({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(_.handleTopLevel),_.ReactEventListener=e}},setEnabled:function(e){_.ReactEventListener&&_.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!_.ReactEventListener||!_.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=a(n),o=c.registrationNameDependencies[e],i=s.topLevelTypes,u=0,l=o.length;l>u;u++){var p=o[u];r.hasOwnProperty(p)&&r[p]||(p===i.topWheel?h("wheel")?_.ReactEventListener.trapBubbledEvent(i.topWheel,"wheel",n):h("mousewheel")?_.ReactEventListener.trapBubbledEvent(i.topWheel,"mousewheel",n):_.ReactEventListener.trapBubbledEvent(i.topWheel,"DOMMouseScroll",n):p===i.topScroll?h("scroll",!0)?_.ReactEventListener.trapCapturedEvent(i.topScroll,"scroll",n):_.ReactEventListener.trapBubbledEvent(i.topScroll,"scroll",_.ReactEventListener.WINDOW_HANDLE):p===i.topFocus||p===i.topBlur?(h("focus",!0)?(_.ReactEventListener.trapCapturedEvent(i.topFocus,"focus",n),_.ReactEventListener.trapCapturedEvent(i.topBlur,"blur",n)):h("focusin")&&(_.ReactEventListener.trapBubbledEvent(i.topFocus,"focusin",n),_.ReactEventListener.trapBubbledEvent(i.topBlur,"focusout",n)),r[i.topBlur]=!0,r[i.topFocus]=!0):v.hasOwnProperty(p)&&_.ReactEventListener.trapBubbledEvent(p,v[p],n),r[p]=!0)}},trapBubbledEvent:function(e,t,n){return _.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return _.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!m){var e=p.refreshScrollValues;_.ReactEventListener.monitorScrollValue(e),m=!0}},eventNameDispatchConfigs:u.eventNameDispatchConfigs,registrationNameModules:u.registrationNameModules,putListener:u.putListener,getListener:u.getListener,deleteListener:u.deleteListener,deleteAllListeners:u.deleteAllListeners});o.exports=_}),__d("ViewportMetrics",[],function(e,t,n,r,o,i){"use strict";var a={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){a.currentScrollLeft=e.x,a.currentScrollTop=e.y}};o.exports=a}),__d("isEventSupported",["ExecutionEnvironment"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!u.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&s&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var s,u=t("ExecutionEnvironment");u.canUseDOM&&(s=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),o.exports=a}),__d("ReactMarkupChecksum",["adler32"],function(e,t,n,r,o,i){"use strict";var a=t("adler32"),s={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=a(e);return e.replace(">"," "+s.CHECKSUM_ATTR_NAME+'="'+t+'">')},canReuseMarkup:function(e,t){var n=t.getAttribute(s.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var r=a(e);return r===n}};o.exports=s}),__d("adler32",[],function(e,t,n,r,o,i){"use strict";function a(e){for(var t=1,n=0,r=0;r<e.length;r++)t=(t+e.charCodeAt(r))%s,n=(n+t)%s;return t|n<<16}var s=65521;o.exports=a}),__d("containsNode",["isTextNode"],function(e,t,n,r,o,i){function a(e,t){return e&&t?e===t?!0:s(e)?!1:s(t)?a(e,t.parentNode):e.contains?e.contains(t):e.compareDocumentPosition?!!(16&e.compareDocumentPosition(t)):!1:!1}var s=t("isTextNode");o.exports=a}),__d("isTextNode",["isNode"],function(e,t,n,r,o,i){function a(e){return s(e)&&3==e.nodeType}var s=t("isNode");o.exports=a}),__d("getReactRootElementInContainer",[],function(e,t,n,r,o,i){"use strict";function a(e){return e?e.nodeType===s?e.documentElement:e.firstChild:null}var s=9;o.exports=a}),__d("setInnerHTML",["ExecutionEnvironment"],function(e,t,n,r,o,i){"use strict";var a=t("ExecutionEnvironment"),s=/^[ \r\n\t\f]/,u=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,c=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(c=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),a.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),s.test(t)||"<"===t[0]&&u.test(t)){e.innerHTML="\ufeff"+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}o.exports=c}),__d("AppStateIOS",["Map","NativeModules","RCTDeviceEventEmitter","logError","invariant"],function(e,t,n,r,o,i){"use strict";var a=t("Map"),s=t("NativeModules"),u=t("RCTDeviceEventEmitter"),c=s.AppState,l=t("logError"),p=t("invariant"),d={change:new a,memoryWarning:new a},h={addEventListener:function(e,t){p(-1!==["change","memoryWarning"].indexOf(e),'Trying to subscribe to unknown event: "%s"',e),"change"===e?d[e].set(t,u.addListener("appStateDidChange",function(e){t(e.app_state)})):"memoryWarning"===e&&d[e].set(t,u.addListener("memoryWarning",t))},removeEventListener:function(e,t){p(-1!==["change","memoryWarning"].indexOf(e),'Trying to remove listener for unknown event: "%s"',e),d[e].has(t)&&(d[e].get(t).remove(),d[e]["delete"](t))},currentState:null};u.addListener("appStateDidChange",function(e){h.currentState=e.app_state}),c.getCurrentAppState(function(e){h.currentState=e.app_state},l),o.exports=h}),__d("CameraRoll",["ReactPropTypes","NativeModules","createStrictShapeTypeChecker","deepFreezeAndThrowOnMutationInDev","invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("ReactPropTypes"),c=t("NativeModules").CameraRollManager,l=t("createStrictShapeTypeChecker"),p=t("deepFreezeAndThrowOnMutationInDev"),d=t("invariant"),h=["Album","All","Event","Faces","Library","PhotoStream","SavedPhotos"],f=["All","Videos","Photos"];p(h),p(f);var m=l({first:u.number.isRequired,after:u.string,groupTypes:u.oneOf(h),groupName:u.string,assetType:u.oneOf(f)}),g=l({edges:u.arrayOf(l({node:l({type:u.string.isRequired,group_name:u.string.isRequired,image:l({uri:u.string.isRequired,height:u.number.isRequired,width:u.number.isRequired,isStored:u.bool}).isRequired,timestamp:u.number.isRequired,location:l({latitude:u.number,longitude:u.number,altitude:u.number,heading:u.number,speed:u.number})}).isRequired})).isRequired,page_info:l({has_next_page:u.bool.isRequired,start_cursor:u.string,end_cursor:u.string}).isRequired}),v=function(){function e(){a(this,e)}return s(e,null,[{key:"saveImageWithTag",value:function(e,t,n){d("string"==typeof e,"CameraRoll.saveImageWithTag tag must be a valid string."),c.saveImageWithTag(e,function(e){t&&t(e)},function(e){n&&n(e)})}},{key:"getPhotos",value:function(e,t,n){var r=t;__DEV__&&(m({params:e},"params","CameraRoll.getPhotos"),d("function"==typeof t,"CameraRoll.getPhotos callback must be a valid function."),d("function"==typeof n,"CameraRoll.getPhotos errorCallback must be a valid function.")),__DEV__&&(r=function(e){g({response:e},"response","CameraRoll.getPhotos callback"),t(e)}),c.getPhotos(e,r,n)}}]),e}();v.GroupTypesOptions=h,v.AssetTypeOptions=f,o.exports=v}),__d("LayoutAnimation",["ReactPropTypes","NativeModules","createStrictShapeTypeChecker","keyMirror"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){v({config:e},"config","LayoutAnimation.configureNext"),c.configureNextLayoutAnimation(e,t,n)}function s(e,t,n){
return{duration:e,create:{type:t,property:n},update:{type:t}}}var u=t("ReactPropTypes"),c=t("NativeModules").UIManager,l=t("createStrictShapeTypeChecker"),p=t("keyMirror"),d={spring:!0,linear:!0,easeInEaseOut:!0,easeIn:!0,easeOut:!0},h=p(d),f={opacity:!0,scaleXY:!0},m=p(f),g=l({duration:u.number,delay:u.number,springDamping:u.number,initialVelocity:u.number,type:u.oneOf(Object.keys(h)),property:u.oneOf(Object.keys(m))}),v=l({duration:u.number.isRequired,create:g,update:g,"delete":g}),y={configureNext:a,create:s,Types:h,Properties:m,configChecker:v,Presets:{easeInEaseOut:s(300,h.easeInEaseOut,m.opacity),linear:s(500,h.linear,m.opacity),spring:{duration:700,create:{type:h.linear,property:m.opacity},update:{type:h.spring,springDamping:.4}}}};o.exports=y}),__d("LinkingIOS",["RCTDeviceEventEmitter","NativeModules","invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("RCTDeviceEventEmitter"),c=t("NativeModules").LinkingManager,l=t("invariant"),p={},d=c&&c.initialURL,h="openURL",f=function(){function e(){a(this,e)}return s(e,null,[{key:"addEventListener",value:function(e,t){l("url"===e,"LinkingIOS only supports `url` events"),p[t]=u.addListener(h,t)}},{key:"removeEventListener",value:function(e,t){l("url"===e,"LinkingIOS only supports `url` events"),p[t]&&(p[t].remove(),p[t]=null)}},{key:"openURL",value:function(e){l("string"==typeof e,"Invalid url: should be a string"),c.openURL(e)}},{key:"canOpenURL",value:function(e,t){l("string"==typeof e,"Invalid url: should be a string"),l("function"==typeof t,"A valid callback function is required"),c.canOpenURL(e,t)}},{key:"popInitialURL",value:function(){var e=d;return d=null,e}}]),e}();o.exports=f}),__d("NetInfo",["NativeModules","Platform","RCTDeviceEventEmitter"],function(e,t,n,r,o,i){"use strict";var a=t("NativeModules"),s=t("Platform"),u=t("RCTDeviceEventEmitter");if("ios"===s.OS)var c=a.Reachability;else if("android"===s.OS)var c=a.NetInfo;var l="reachabilityDidChange",p={},d={addEventListener:function(e,t){p[t]=u.addListener(l,function(e){t(e.network_reachability)})},removeEventListener:function(e,t){p[t]&&(p[t].remove(),p[t]=null)},fetch:function(){return new Promise(function(e,t){c.getCurrentReachability(function(t){e(t.network_reachability)},t)})},isConnected:{},isConnectionMetered:{}};if("ios"===s.OS)var h=function(e){return"none"!==e&&"unknown"!==e};else if("android"===s.OS)var h=function(e){return"NONE"!==e&&"UNKNOWN"!==e};var f={};d.isConnected={addEventListener:function(e,t){f[t]=function(e){t(h(e))},d.addEventListener(e,f[t])},removeEventListener:function(e,t){d.removeEventListener(e,f[t])},fetch:function(){return d.fetch().then(function(e){return h(e)})}},"android"===s.OS&&(d.isConnectionMetered=function(e){c.isConnectionMetered(function(t){e(t)})}),o.exports=d}),__d("PushNotificationIOS",["RCTDeviceEventEmitter","NativeModules","invariant"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=t("RCTDeviceEventEmitter"),c=t("NativeModules").PushNotificationManager,l=t("invariant"),p={},d=c&&c.initialNotification,h="remoteNotificationReceived",f="remoteNotificationsRegistered",m=function(){function e(t){var n=this;a(this,e),this._data={},Object.keys(t).forEach(function(e){var r=t[e];"aps"===e?(n._alert=r.alert,n._sound=r.sound,n._badgeCount=r.badge):n._data[e]=r})}return s(e,[{key:"getMessage",value:function(){return this._alert}},{key:"getSound",value:function(){return this._sound}},{key:"getAlert",value:function(){return this._alert}},{key:"getBadgeCount",value:function(){return this._badgeCount}},{key:"getData",value:function(){return this._data}}],[{key:"setApplicationIconBadgeNumber",value:function(e){c.setApplicationIconBadgeNumber(e)}},{key:"getApplicationIconBadgeNumber",value:function(e){c.getApplicationIconBadgeNumber(e)}},{key:"addEventListener",value:function(t,n){l("notification"===t||"register"===t,"PushNotificationIOS only supports `notification` and `register` events"),"notification"===t?p[n]=u.addListener(h,function(t){n(new e(t))}):"register"===t&&(p[n]=u.addListener(f,function(e){n(e.deviceToken)}))}},{key:"requestPermissions",value:function(e){var t={};t=e?{alert:!!e.alert,badge:!!e.badge,sound:!!e.sound}:{alert:!0,badge:!0,sound:!0},c.requestPermissions(t)}},{key:"checkPermissions",value:function(e){l("function"==typeof e,"Must provide a valid callback"),c.checkPermissions(e)}},{key:"removeEventListener",value:function(e,t){l("notification"===e||"register"===e,"PushNotificationIOS only supports `notification` and `register` events"),p[t]&&(p[t].remove(),p[t]=null)}},{key:"popInitialNotification",value:function(){var t=d&&new e(d);return d=null,t}}]),e}();o.exports=m}),__d("StatusBarIOS",["NativeModules"],function(e,t,n,r,o,i){"use strict";var a=t("NativeModules").StatusBarManager,s={setStyle:function(e,t){t=t||!1,a.setStyle(e,t)},setHidden:function(e,t){t=t||"none",a.setHidden(e,t)}};o.exports=s}),__d("VibrationIOS",["NativeModules","invariant"],function(e,t,n,r,o,i){"use strict";var a=t("NativeModules").Vibration,s=t("invariant"),u={vibrate:function(){s(void 0===arguments[0],"Vibration patterns not supported."),a.vibrate()}};o.exports=u}),__d("RCTNativeAppEventEmitter",["EventEmitter"],function(e,t,n,r,o,i){"use strict";var a=t("EventEmitter"),s=new a;o.exports=s}),__d("LinkedStateMixin",["ReactLink","ReactStateSetters"],function(e,t,n,r,o,i){"use strict";var a=t("ReactLink"),s=t("ReactStateSetters"),u={linkState:function(e){return new a(this.state[e],s.createStateKeySetter(this,e))}};o.exports=u}),__d("ReactLink",["React"],function(e,t,n,r,o,i){"use strict";function a(e,t){this.value=e,this.requestChange=t}function s(e){var t={value:"undefined"==typeof e?u.PropTypes.any.isRequired:e.isRequired,requestChange:u.PropTypes.func.isRequired};return u.PropTypes.shape(t)}var u=t("React");a.PropTypes={link:s},o.exports=a}),__d("ReactStateSetters",[],function(e,t,n,r,o,i){"use strict";function a(e,t){var n={};return function(r){n[t]=r,e.setState(n)}}var s={createStateSetter:function(e,t){return function(n,r,o,i,a,s){var u=t.call(e,n,r,o,i,a,s);u&&e.setState(u)}},createStateKeySetter:function(e,t){var n=e.__keySetters||(e.__keySetters={});return n[t]||(n[t]=a(e,t))}};s.Mixin={createStateSetter:function(e){return s.createStateSetter(this,e)},createStateKeySetter:function(e){return s.createStateKeySetter(this,e)}},o.exports=s}),__d("ReactComponentWithPureRenderMixin",["shallowEqual"],function(e,t,n,r,o,i){"use strict";var a=t("shallowEqual"),s={shouldComponentUpdate:function(e,t){return!a(this.props,e)||!a(this.state,t)}};o.exports=s}),__d("shallowEqual",[],function(e,t,n,r,o,i){"use strict";function a(e,t){if(e===t)return!0;var n;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}o.exports=a}),__d("update",["Object.assign","keyOf","invariant"],function(e,t,n,r,o,i){"use strict";function a(e){return Array.isArray(e)?e.concat():e&&"object"==typeof e?c(new e.constructor,e):e}function s(e,t,n){p(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e);var r=t[n];p(Array.isArray(r),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",n,r)}function u(e,t){if(p("object"==typeof t,"update(): You provided a key path to update() that did not contain one of %s. Did you forget to include {%s: ...}?",_.join(", "),g),d.call(t,g))return p(1===Object.keys(t).length,"Cannot have more than one key in an object with %s",g),t[g];var n=a(e);if(d.call(t,v)){var r=t[v];p(r&&"object"==typeof r,"update(): %s expects a spec of type 'object'; got %s",v,r),p(n&&"object"==typeof n,"update(): %s expects a target of type 'object'; got %s",v,n),c(n,t[v])}d.call(t,h)&&(s(e,t,h),t[h].forEach(function(e){n.push(e)})),d.call(t,f)&&(s(e,t,f),t[f].forEach(function(e){n.unshift(e)})),d.call(t,m)&&(p(Array.isArray(e),"Expected %s target to be an array; got %s",m,e),p(Array.isArray(t[m]),"update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",m,t[m]),t[m].forEach(function(e){p(Array.isArray(e),"update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",m,t[m]),n.splice.apply(n,e)})),d.call(t,y)&&(p("function"==typeof t[y],"update(): expected spec of %s to be a function; got %s.",y,t[y]),n=t[y](n));for(var o in t)b.hasOwnProperty(o)&&b[o]||(n[o]=u(e[o],t[o]));return n}var c=t("Object.assign"),l=t("keyOf"),p=t("invariant"),d={}.hasOwnProperty,h=l({$push:null}),f=l({$unshift:null}),m=l({$splice:null}),g=l({$set:null}),v=l({$merge:null}),y=l({$apply:null}),_=[h,f,m,g,v,y],b={};_.forEach(function(e){b[e]=!0}),o.exports=u}),__d("ReactTestUtils",["EventConstants","EventPluginHub","EventPropagators","React","ReactElement","ReactEmptyComponent","ReactBrowserEventEmitter","ReactCompositeComponent","ReactInstanceHandles","ReactInstanceMap","ReactMount","ReactUpdates","SyntheticEvent","Object.assign"],function(e,t,n,r,o,i){"use strict";function a(e){}function s(e){return function(t,n){var r;C.isDOMComponent(t)?r=t.getDOMNode():t.tagName&&(r=t);var o=new a;o.target=r;var i=new R(g.eventNameDispatchConfigs[e],b.getID(r),o);E(i,n),d.accumulateTwoPhaseDispatches(i),S.batchedUpdates(function(){p.enqueueEvents(i),p.processEventQueue()})}}function u(){C.Simulate={};var e;for(e in g.eventNameDispatchConfigs)C.Simulate[e]=s(e)}function c(e){return function(t,n){var r=new a(e);E(r,n),C.isDOMComponent(t)?C.simulateNativeEventOnDOMComponent(e,t,r):t.tagName&&C.simulateNativeEventOnNode(e,t,r)}}var l=t("EventConstants"),p=t("EventPluginHub"),d=t("EventPropagators"),h=t("React"),f=t("ReactElement"),m=t("ReactEmptyComponent"),g=t("ReactBrowserEventEmitter"),v=t("ReactCompositeComponent"),y=t("ReactInstanceHandles"),_=t("ReactInstanceMap"),b=t("ReactMount"),S=t("ReactUpdates"),R=t("SyntheticEvent"),E=t("Object.assign"),w=l.topLevelTypes,C={renderIntoDocument:function(e){var t=document.createElement("div");return h.render(e,t)},isElement:function(e){return f.isValidElement(e)},isElementOfType:function(e,t){return f.isValidElement(e)&&e.type===t},isDOMComponent:function(e){return!!(e&&e.tagName&&e.getDOMNode)},isDOMComponentElement:function(e){return!!(e&&f.isValidElement(e)&&e.tagName)},isCompositeComponent:function(e){return"function"==typeof e.render&&"function"==typeof e.setState},isCompositeComponentWithType:function(e,t){return!(!C.isCompositeComponent(e)||e.constructor!==t)},isCompositeComponentElement:function(e){if(!f.isValidElement(e))return!1;var t=e.type.prototype;return"function"==typeof t.render&&"function"==typeof t.setState},isCompositeComponentElementWithType:function(e,t){return!(!C.isCompositeComponentElement(e)||e.constructor!==t)},getRenderedChildOfCompositeComponent:function(e){if(!C.isCompositeComponent(e))return null;var t=_.get(e);return t._renderedComponent.getPublicInstance()},findAllInRenderedTree:function(e,t){if(!e)return[];var n=t(e)?[e]:[];if(C.isDOMComponent(e)){var r,o=_.get(e),i=o._renderedComponent._renderedChildren;for(r in i)i.hasOwnProperty(r)&&i[r].getPublicInstance&&(n=n.concat(C.findAllInRenderedTree(i[r].getPublicInstance(),t)))}else C.isCompositeComponent(e)&&(n=n.concat(C.findAllInRenderedTree(C.getRenderedChildOfCompositeComponent(e),t)));return n},scryRenderedDOMComponentsWithClass:function(e,t){return C.findAllInRenderedTree(e,function(e){var n=e.props.className;return C.isDOMComponent(e)&&n&&-1!==(" "+n+" ").indexOf(" "+t+" ")})},findRenderedDOMComponentWithClass:function(e,t){var n=C.scryRenderedDOMComponentsWithClass(e,t);if(1!==n.length)throw new Error("Did not find exactly one match (found: "+n.length+") for class:"+t);return n[0]},scryRenderedDOMComponentsWithTag:function(e,t){return C.findAllInRenderedTree(e,function(e){return C.isDOMComponent(e)&&e.tagName===t.toUpperCase()})},findRenderedDOMComponentWithTag:function(e,t){var n=C.scryRenderedDOMComponentsWithTag(e,t);if(1!==n.length)throw new Error("Did not find exactly one match for tag:"+t);return n[0]},scryRenderedComponentsWithType:function(e,t){return C.findAllInRenderedTree(e,function(e){return C.isCompositeComponentWithType(e,t)})},findRenderedComponentWithType:function(e,t){var n=C.scryRenderedComponentsWithType(e,t);if(1!==n.length)throw new Error("Did not find exactly one match for componentType:"+t);return n[0]},mockComponent:function(e,t){return t=t||e.mockTagName||"div",e.prototype.render.mockImplementation(function(){return h.createElement(t,null,this.props.children)}),this},simulateNativeEventOnNode:function(e,t,n){n.target=t,g.ReactEventListener.dispatchEvent(e,n)},simulateNativeEventOnDOMComponent:function(e,t,n){C.simulateNativeEventOnNode(e,t.getDOMNode(),n)},nativeTouchData:function(e,t){return{touches:[{pageX:e,pageY:t}]}},createRenderer:function(){return new T},Simulate:null,SimulateNative:{}},T=function(){this._instance=null};T.prototype.getRenderOutput=function(){return this._instance&&this._instance._renderedComponent&&this._instance._renderedComponent._renderedOutput||null};var I=function(e){this._renderedOutput=e,this._currentElement=null===e||e===!1?m.emptyElement:e};I.prototype={mountComponent:function(){},receiveComponent:function(e){this._renderedOutput=e,this._currentElement=null===e||e===!1?m.emptyElement:e},unmountComponent:function(){}};var P=function(){};E(P.prototype,v.Mixin,{_instantiateReactComponent:function(e){return new I(e)},_replaceNodeWithMarkupByID:function(){},_renderValidatedComponent:v.Mixin._renderValidatedComponentWithoutOwnerOrContext}),T.prototype.render=function(e,t){var n=S.ReactReconcileTransaction.getPooled();this._render(e,n,t),S.ReactReconcileTransaction.release(n)},T.prototype.unmount=function(){this._instance&&this._instance.unmountComponent()},T.prototype._render=function(e,t,n){if(this._instance)this._instance.receiveComponent(e,t,n);else{var r=y.createReactRootID(),o=new P(e.type);o.construct(e),o.mountComponent(r,t,n),this._instance=o}};var x=p.injection.injectEventPluginOrder;p.injection.injectEventPluginOrder=function(){x.apply(this,arguments),u()};var M=p.injection.injectEventPluginsByName;p.injection.injectEventPluginsByName=function(){M.apply(this,arguments),u()},u();var O;for(O in w){var D=0===O.indexOf("top")?O.charAt(3).toLowerCase()+O.substr(4):O;C.SimulateNative[D]=c(O)}o.exports=C}),__d("MetPro/stores/UserStore",["object-assign/index","events/events","MetPro/dispatcher/AppDispatcher","react-native/Libraries/react-native/react-native","MetPro/constants/MetproConstants","MetPro/constants/StorageConstants","MetPro/constants/ApiConstants","MetPro/models/User","merge"],function(e,t,n,r,o,i){"use strict";var a=t("object-assign/index"),s=t("events/events").EventEmitter,u=t("MetPro/dispatcher/AppDispatcher"),c=t("react-native/Libraries/react-native/react-native"),l=c.AsyncStorage,p=t("MetPro/constants/MetproConstants"),d=t("MetPro/constants/StorageConstants"),h=(t("MetPro/constants/ApiConstants"),t("MetPro/models/User")),f=p.ActionTypes,m=(t("merge"),"change"),g=null,v=[],y=new h({isAnonymous:!0}),_=a({},s.prototype,{getCurrentUser:function(){return g},getErrors:function(){return v},emitChange:function(){this.emit(m)},addChangeListener:function(e){this.on(m,e)},removeChangeListener:function(e){this.removeListener(m,e)}});_.dispatchToken=u.register(function(e){switch(e.type){case f.LOAD_USER:l.getItem(d.CURRENT_USER_KEY,function(e,t){var n;e||(n=h.fromJSON(JSON.parse(t))),(e||!n)&&(n=y),g=n,_.emitChange()});break;case f.LOGOUT_USER:l.removeItem(d.CURRENT_USER_KEY,function(e){e?console.log("Error removing user in local storage! "+e.message):(g=y,_.emitChange())});break;case f.RECEIVE_USER:e.data.token?l.setItem(d.CURRENT_USER_KEY,JSON.stringify(e.data),function(t){t?console.log("Error setting user in local storage! "+t.message):(v=[],g=h.fromJSON(e.data),_.emitChange())}):(g=y,v=[{error:"Oops. Couldn't sign in. Double check your email & password."}],_.emitChange())}}),o.exports=_}),__d("object-assign/index",[],function(e,t,n,r,o,i){"use strict";function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}o.exports=Object.assign||function(e,t){for(var n,r,o=a(e),i=1;i<arguments.length;i++){n=arguments[i],r=Object.keys(Object(n));for(var s=0;s<r.length;s++)o[r[s]]=n[r[s]]}return o}}),__d("events/events",[],function(e,t,n,r,o,i){function a(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function s(e){return"function"==typeof e}function u(e){return"number"==typeof e}function c(e){return"object"==typeof e&&null!==e}function l(e){return void 0===e}o.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0,a.defaultMaxListeners=10,a.prototype.setMaxListeners=function(e){if(!u(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},a.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&(!this._events.error||c(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],l(n))return!1;if(s(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;r>i;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(c(n)){for(r=arguments.length,o=new Array(r-1),i=1;r>i;i++)o[i-1]=arguments[i];for(a=n.slice(),r=a.length,i=0;r>i;i++)a[i].apply(this,o)}return!0},a.prototype.addListener=function(e,t){var n;if(!s(t))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,s(t.listener)?t.listener:t),this._events[e]?c(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,c(this._events[e])&&!this._events[e].warned){var n;n=l(this._maxListeners)?a.defaultMaxListeners:this._maxListeners,n&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())}return this},a.prototype.on=a.prototype.addListener,a.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!s(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},a.prototype.removeListener=function(e,t){var n,r,o,i;if(!s(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,r=-1,n===t||s(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(c(n)){for(i=o;i-->0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(0>r)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},a.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],s(n))this.removeListener(e,n);else for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},a.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?s(this._events[e])?[this._events[e]]:this._events[e].slice():[]},a.listenerCount=function(e,t){var n;return n=e._events&&e._events[t]?s(e._events[t])?1:e._events[t].length:0}}),__d("MetPro/dispatcher/AppDispatcher",["flux/index"],function(e,t,n,r,o,i){var a=t("flux/index").Dispatcher;o.exports=new a}),__d("flux/index",["Dispatcher"],function(e,t,n,r,o,i){o.exports.Dispatcher=t("Dispatcher")}),__d("Dispatcher",["invariant"],function(e,t,n,r,o,i){"use strict";function a(){this.$Dispatcher_callbacks={},this.$Dispatcher_isPending={},this.$Dispatcher_isHandled={},this.$Dispatcher_isDispatching=!1,this.$Dispatcher_pendingPayload=null}var s=t("invariant"),u=1,c="ID_";a.prototype.register=function(e){var t=c+u++;return this.$Dispatcher_callbacks[t]=e,t},a.prototype.unregister=function(e){s(this.$Dispatcher_callbacks[e],"Dispatcher.unregister(...): `%s` does not map to a registered callback.",e),delete this.$Dispatcher_callbacks[e]},a.prototype.waitFor=function(e){s(this.$Dispatcher_isDispatching,"Dispatcher.waitFor(...): Must be invoked while dispatching.");for(var t=0;t<e.length;t++){var n=e[t];this.$Dispatcher_isPending[n]?s(this.$Dispatcher_isHandled[n],"Dispatcher.waitFor(...): Circular dependency detected while waiting for `%s`.",n):(s(this.$Dispatcher_callbacks[n],"Dispatcher.waitFor(...): `%s` does not map to a registered callback.",n),this.$Dispatcher_invokeCallback(n))}},a.prototype.dispatch=function(e){s(!this.$Dispatcher_isDispatching,"Dispatch.dispatch(...): Cannot dispatch in the middle of a dispatch."),this.$Dispatcher_startDispatching(e);try{for(var t in this.$Dispatcher_callbacks)this.$Dispatcher_isPending[t]||this.$Dispatcher_invokeCallback(t)}finally{this.$Dispatcher_stopDispatching()}},a.prototype.isDispatching=function(){return this.$Dispatcher_isDispatching},a.prototype.$Dispatcher_invokeCallback=function(e){this.$Dispatcher_isPending[e]=!0,this.$Dispatcher_callbacks[e](this.$Dispatcher_pendingPayload),this.$Dispatcher_isHandled[e]=!0},a.prototype.$Dispatcher_startDispatching=function(e){for(var t in this.$Dispatcher_callbacks)this.$Dispatcher_isPending[t]=!1,this.$Dispatcher_isHandled[t]=!1;this.$Dispatcher_pendingPayload=e,this.$Dispatcher_isDispatching=!0},a.prototype.$Dispatcher_stopDispatching=function(){this.$Dispatcher_pendingPayload=null,this.$Dispatcher_isDispatching=!1},o.exports=a}),__d("MetPro/constants/MetproConstants",["keymirror/index"],function(e,t,n,r,o,i){"use strict";var a=t("keymirror/index"),s="http://localhost:3000";o.exports={ApiInfo:{BASE_URL:"http://40440fb7.ngrok.com/api/",USER_TOKEN:"y9CQuEohrdMpX9WzQ56w",FORMAT:"json"},blueBackground:"#008ad9",darkGray:"#2f3132",blue:"#188de7",green:"#19CAB6",red:"#d14d4d",orange:"#ff6204",background:"#f5f5f5",textColor:"#666",APIEndpoints:{LOGIN:s+"/v1/login",NAS:s+"/v1/nas",MEALS:s+"/v1/meals",PHASES:s+"/v1/phases"},PayloadSources:a({SERVER_ACTION:null,VIEW_ACTION:null}),ActionTypes:a({LOGIN:null,LOGIN_RESPONSE:null,LOGOUT:null,PENDING:null,RECEIVE_PHASE:null,RECEIVE_MEAL:null,RECEIVE_FOODS:null,RECEIVE_CHARTS:null,RECEIVE_MEAL_ENTRY:null,SAVE_MEAL_ENTRY:null,SAVE_WEIGHT_ENTRY:null,SAVE_ADD_POINTS:null,SAVE_ALCOHOL_POINTS:null,LOAD_USER:null,LOGOUT_USER:null,RECEIVE_USER:null,RECEIVE_USER_ERROR:null,RECEIVE_NEW_PHASE:null})}}),__d("keymirror/index",[],function(e,t,n,r,o,i){"use strict";var a=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};o.exports=a}),__d("MetPro/constants/StorageConstants",[],function(e,t,n,r,o,i){o.exports={CURRENT_USER_KEY:"CURRENT_USER_KEY"}}),__d("MetPro/constants/ApiConstants",[],function(e,t,n,r,o,i){o.exports={PENDING:"PENDING",ERROR:"ERROR"}}),__d("MetPro/models/User",[],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(){function e(t){a(this,e),t&&(this.token=t.token,this.id=t.id,this.isAnonymous=t.isAnonymous)}return s(e,null,[{key:"fromJSON",value:function(t){if(!t||!t.token)return null;var n=new e({token:t.token,id:t.id});return n}}]),e}();o.exports=u}),__d("MetPro/components/LoginScreen",["Dimensions","MetPro/constants/MetproConstants","react-native/Libraries/react-native/react-native","MetPro/stores/UserStore","MetPro/actions/UserActionCreators","MaterialIcons"],function(e,t,n,r,o,i){"use strict";function a(){var e=y.getErrors();return{errors:e}}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=t("Dimensions"),c=u.get("window"),l=c.width,p=(c.height,t("MetPro/constants/MetproConstants")),d=t("react-native/Libraries/react-native/react-native"),h=d.StyleSheet,f=d.Text,m=d.TextInput,g=d.View,v=(d.TouchableOpacity,d.Image,d.Navigator,d.TouchableHighlight),y=t("MetPro/stores/UserStore"),_=t("MetPro/actions/UserActionCreators"),b=t("MaterialIcons"),S=d.createClass({getInitialState:function(){return s({},a(),{email:"",password:""})},componentWillMount:function(){y.addChangeListener(this._onChange)},componentWillUnmount:function(){y.removeChangeListener(this._onChange)},login:function(){this.state.email.length>3&&this.state.password.length>3&&_.login(this.state.email,this.state.password)},renderErrors:function(){console.log(this.state.errors);for(var e=[],t=0;t<this.state.errors.length;t++)e.push(d.createElement(f,{style:R.errorText},this.state.errors[t].error));return e},render:function(){var e=this;return console.log(this.state.errors),d.createElement(g,{style:R.container},d.createElement(f,{style:R.h1},"MetPro"),this.renderErrors(),d.createElement(g,{style:R.loginContainer},d.createElement(g,{style:R.inputContainer},d.createElement(b,{name:"email",size:26,color:"#5dc4ff",style:R.icon}),d.createElement(m,{style:R.textInput,autoFocus:!0,keyboardType:"email-address",placeholder:"Email Address",onChangeText:function(t){return e.setState({email:t})}})),d.createElement(g,{style:[R.inputContainer,{borderBottomWidth:0}]},d.createElement(b,{name:"lock-outline",size:26,color:"#5dc4ff",style:R.icon}),d.createElement(m,{secureTextEntry:!0,value:"",style:R.textInput,placeholder:"Password",onChangeText:function(t){return e.setState({password:t})}}))),d.createElement(v,{style:R.button,onPress:this.login},d.createElement(f,{style:R.buttonText},"Sign in")))},_onChange:function(){this.setState(a())}}),R=h.create({container:{flex:1,padding:20,paddingBottom:25,width:l,alignItems:"center",backgroundColor:p.blueBackground},h1:{marginTop:90,fontSize:22,fontWeight:"500",alignSelf:"center",color:"white"},loginContainer:{paddingLeft:5,paddingRight:5,marginTop:15,width:l-60,borderWidth:1,borderRadius:7,borderColor:"#5dc4ff"},inputContainer:{flexDirection:"row",borderBottomWidth:1,borderColor:"#5dc4ff",alignItems:"stretch",justifyContent:"center",backgroundColor:"transparent"},icon:{marginLeft:8,paddingTop:9,alignSelf:"stretch",justifyContent:"center",flex:1},errorText:{justifyContent:"center",fontSize:18,fontWeight:"600",color:"#8ad7ff",padding:10},textInput:{flex:9,color:"#efefef",height:46,borderRadius:5,borderColor:"#5dc4ff",fontSize:20,marginLeft:5,fontWeight:"500",padding:6},button:{marginTop:10,padding:14,width:l-60,backgroundColor:"rgba(255,255,255,0.98)",borderRadius:7},buttonText:{color:p.blueBackground,fontSize:18,fontWeight:"500",alignSelf:"center"},"default":{height:26,borderWidth:.5,borderColor:"#0f0f0f",flex:1,fontSize:13,padding:4},multiline:{borderWidth:.5,borderColor:"#0f0f0f",flex:1,fontSize:13,height:50,padding:4,marginBottom:4},multilineWithFontStyles:{color:"blue",fontWeight:"bold",fontSize:18,fontFamily:"Cochin",height:60},multilineChild:{width:50,height:40,position:"absolute",right:5,backgroundColor:"red"},eventLabel:{margin:3,fontSize:12},labelContainer:{flexDirection:"row",marginVertical:2,flex:1},label:{width:120,justifyContent:"flex-end",flexDirection:"row",marginRight:10,paddingTop:2}});o.exports=S}),__d("MetPro/actions/UserActionCreators",["MetPro/utils/ApiUtils","MetPro/constants/MetproConstants","MetPro/dispatcher/AppDispatcher"],function(e,t,n,r,o,i){"use strict";var a=t("MetPro/utils/ApiUtils"),s=t("MetPro/constants/MetproConstants"),u=t("MetPro/dispatcher/AppDispatcher"),c=s.ActionTypes;o.exports={login:function(e,t){a.login(e,t)},logout:function(){u.dispatch({type:c.LOGOUT_USER})},loadCurrentUser:function(){u.dispatch({type:c.LOAD_USER})}}}),__d("MetPro/utils/ApiUtils",["MetPro/constants/MetproConstants","MetPro/stores/UserStore","MetPro/actions/ServerActionCreators"],function(e,t,n,r,o,i){"use strict";function a(){return{currentUser:u.getCurrentUser()}}var s=t("MetPro/constants/MetproConstants"),u=t("MetPro/stores/UserStore"),c=t("MetPro/actions/ServerActionCreators"),l=s.ApiInfo;s.ActionTypes;o.exports={login:function(e,t){fetch(l.BASE_URL+"client/authenticate/",{method:"post",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({email:e,password:t})}).then(function(e){return e.json()}).then(function(e){c.receiveUser(e)})["catch"](function(e){return console.error("Error:"+e)})},fetchMeal:function(){console.log("Fetching Meal"),fetch(l.BASE_URL+"phase/"+a().currentUser.token).then(function(e){return e.json()}).then(function(e){c.receiveMeal(e)})["catch"](function(e){console.warn(e)})},fetchCharts:function(){console.log("Fetching Charts"),fetch(l.BASE_URL+"phase/tracking/"+a().currentUser.token).then(function(e){return e.json()}).then(function(e){c.receiveCharts(e)})["catch"](function(e){console.warn(e)})},fetchFoods:function(){fetch(l.BASE_URL+"phase/foods/"+a().currentUser.token).then(function(e){return e.json()}).then(function(e){c.receiveFoods(e)})["catch"](function(e){console.warn(e)})},postMealEntry:function(e,t,n){fetch(l.BASE_URL+"phase/submit",{method:"post",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({token:a().currentUser.token,entryDate:e,mealID:t,mealValue:n})}).then(function(e){return e.json()}).then(function(e){c.receiveMealEntry(e)})["catch"](function(e){console.warn(e)})},postWeightEntry:function(e,t){fetch(l.BASE_URL+"phase/weight",{method:"post",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({token:a().currentUser.token,entryDate:e,weight:t})}).then(function(e){return e.json()}).then(function(e){})["catch"](function(e){console.warn(e)})},postAddPoints:function(e,t){fetch(l.BASE_URL+"phase/add_points",{method:"post",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({token:a().currentUser.token,entryDate:e,points:t})}).then(function(e){return e.json()}).then(function(e){})["catch"](function(e){console.warn(e)})},postAlcoholPoints:function(e,t){fetch(l.BASE_URL+"phase/alcohol_points",{method:"post",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({token:a().currentUser.token,entryDate:e,points:t})}).then(function(e){return e.json()}).then(function(e){console.log(e)})["catch"](function(e){console.warn(e)})},submitPhase:function(e,t){fetch(l.BASE_URL+"phase/submit_phase",{method:"post",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({token:a().currentUser.token,currentDate:new Date,energy:e,digestion:t})}).then(function(e){return e.json()}).then(function(e){c.receiveNewPhase(e);
})["catch"](function(e){console.warn(e)})}}}),__d("MetPro/actions/ServerActionCreators",["MetPro/constants/MetproConstants","MetPro/dispatcher/AppDispatcher"],function(e,t,n,r,o,i){"use strict";var a=t("MetPro/constants/MetproConstants"),s=t("MetPro/dispatcher/AppDispatcher"),u=a.ActionTypes;o.exports={receiveUser:function(e){s.dispatch({data:e,type:u.RECEIVE_USER})},receiveMeal:function(e){s.dispatch({data:e,type:u.RECEIVE_MEAL})},receiveCharts:function(e){s.dispatch({data:e,type:u.RECEIVE_CHARTS})},receiveFoods:function(e){s.dispatch({data:e,type:u.RECEIVE_FOODS})},receiveMealEntry:function(e){s.dispatch({data:e,type:u.RECEIVE_MEAL_ENTRY})},receiveNewPhase:function(e){s.dispatch({data:e,type:u.RECEIVE_NEW_PHASE})}}}),__d("MaterialIcons",["createIconSet"],function(e,t,n,r,o,i){"use strict";var a=t("createIconSet"),s={"3d-rotation":61696,"access-alarm":61697,"access-alarms":61698,"access-time":61699,accessibility:61700,"account-balance":61701,"account-balance-wallet":61702,"account-box":61703,"account-circle":61704,adb:61705,add:61706,"add-alarm":61707,"add-alert":61708,"add-box":61709,"add-circle":61710,"add-circle-outline":61711,"add-shopping-cart":61712,"add-to-photos":61713,adjust:61714,"airline-seat-flat":61715,"airline-seat-flat-angled":61716,"airline-seat-individual-suite":61717,"airline-seat-legroom-extra":61718,"airline-seat-legroom-normal":61719,"airline-seat-legroom-reduced":61720,"airline-seat-recline-extra":61721,"airline-seat-recline-normal":61722,"airplanemode-active":61723,"airplanemode-inactive":61724,airplay:61725,alarm:61726,"alarm-add":61727,"alarm-off":61728,"alarm-on":61729,album:61730,android:61731,announcement:61732,apps:61733,archive:61734,"arrow-back":61735,"arrow-drop-down":61736,"arrow-drop-down-circle":61737,"arrow-drop-up":61738,"arrow-forward":61739,"aspect-ratio":61740,assessment:61741,assignment:61742,"assignment-ind":61743,"assignment-late":61744,"assignment-return":61745,"assignment-returned":61746,"assignment-turned-in":61747,assistant:61748,"assistant-photo":61749,"attach-file":61750,"attach-money":61751,attachment:61752,audiotrack:61753,autorenew:61754,"av-timer":61755,backspace:61756,backup:61757,"battery-20":61758,"battery-30":61759,"battery-50":61760,"battery-60":61761,"battery-80":61762,"battery-90":61763,"battery-alert":61764,"battery-charging-20":61765,"battery-charging-30":61766,"battery-charging-50":61767,"battery-charging-60":61768,"battery-charging-80":61769,"battery-charging-90":61770,"battery-charging-full":61771,"battery-full":61772,"battery-std":61773,"battery-unknown":61774,beenhere:61775,block:61776,bluetooth:61777,"bluetooth-audio":61778,"bluetooth-connected":61779,"bluetooth-disabled":61780,"bluetooth-searching":61781,"blur-circular":61782,"blur-linear":61783,"blur-off":61784,"blur-on":61785,book:61786,bookmark:61787,"bookmark-border":61788,"border-all":61789,"border-bottom":61790,"border-clear":61791,"border-color":61792,"border-horizontal":61793,"border-inner":61794,"border-left":61795,"border-outer":61796,"border-right":61797,"border-style":61798,"border-top":61799,"border-vertical":61800,"brightness-1":61801,"brightness-2":61802,"brightness-3":61803,"brightness-4":61804,"brightness-5":61805,"brightness-6":61806,"brightness-7":61807,"brightness-auto":61808,"brightness-high":61809,"brightness-low":61810,"brightness-medium":61811,"broken-image":61812,brush:61813,"bug-report":61814,build:61815,business:61816,cached:61817,cake:61818,call:61819,"call-end":61820,"call-made":61821,"call-merge":61822,"call-missed":61823,"call-received":61824,"call-split":61825,camera:61826,"camera-alt":61827,"camera-front":61828,"camera-rear":61829,"camera-roll":61830,cancel:61831,"card-giftcard":61832,"card-membership":61833,"card-travel":61834,cast:61835,"cast-connected":61836,"center-focus-strong":61837,"center-focus-weak":61838,"change-history":61839,chat:61840,"chat-bubble":61841,"chat-bubble-outline":61842,check:61843,"check-box":61844,"check-box-outline-blank":61845,"check-circle":61846,"chevron-left":61847,"chevron-right":61848,"chrome-reader-mode":61849,"class":61850,clear:61851,"clear-all":61852,close:61853,"closed-caption":61854,cloud:61855,"cloud-circle":61856,"cloud-done":61857,"cloud-download":61858,"cloud-off":61859,"cloud-queue":61860,"cloud-upload":61861,code:61862,collections:61863,"color-lens":61864,colorize:61865,comment:61866,compare:61867,computer:61868,"confirmation-number":61869,"contact-phone":61870,contacts:61871,"content-copy":61872,"content-cut":61873,"content-paste":61874,"control-point":61875,"control-point-duplicate":61876,create:61877,"credit-card":61878,crop:61879,"crop-16-9":61880,"crop-3-2":61881,"crop-5-4":61882,"crop-7-5":61883,"crop-din":61884,"crop-free":61885,"crop-landscape":61886,"crop-original":61887,"crop-portrait":61888,"crop-square":61889,dashboard:61890,"data-usage":61891,dehaze:61892,"delete":61893,description:61894,"desktop-mac":61895,"desktop-windows":61896,details:61897,"developer-board":61898,"developer-mode":61899,devices:61900,"dialer-sip":61901,dialpad:61902,directions:61903,"directions-bike":61904,"directions-boat":61905,"directions-bus":61906,"directions-car":61907,"directions-railway":61908,"directions-run":61909,"directions-subway":61910,"directions-transit":61911,"directions-walk":61912,"disc-full":61913,dns:61914,"do-not-disturb":61915,"do-not-disturb-alt":61916,dock:61917,domain:61918,done:61919,"done-all":61920,drafts:61921,"drive-eta":61922,dvr:61923,edit:61924,email:61925,equalizer:61926,error:61927,"error-outline":61928,event:61929,"event-available":61930,"event-busy":61931,"event-note":61932,"event-seat":61933,"exit-to-app":61934,"expand-less":61935,"expand-more":61936,explicit:61937,explore:61938,exposure:61939,"exposure-neg-1":61940,"exposure-neg-2":61941,"exposure-plus-1":61942,"exposure-plus-2":61943,"exposure-zero":61944,extension:61945,face:61946,"fast-forward":61947,"fast-rewind":61948,favorite:61949,"favorite-border":61950,feedback:61951,"file-download":61952,"file-upload":61953,filter:61954,"filter-1":61955,"filter-2":61956,"filter-3":61957,"filter-4":61958,"filter-5":61959,"filter-6":61960,"filter-7":61961,"filter-8":61962,"filter-9":61963,"filter-9-plus":61964,"filter-b-and-w":61965,"filter-center-focus":61966,"filter-drama":61967,"filter-frames":61968,"filter-hdr":61969,"filter-list":61970,"filter-none":61971,"filter-tilt-shift":61972,"filter-vintage":61973,"find-in-page":61974,"find-replace":61975,flag:61976,flare:61977,"flash-auto":61978,"flash-off":61979,"flash-on":61980,flight:61981,"flight-land":61982,"flight-takeoff":61983,flip:61984,"flip-to-back":61985,"flip-to-front":61986,folder:61987,"folder-open":61988,"folder-shared":61989,"folder-special":61990,"format-align-center":61991,"format-align-justify":61992,"format-align-left":61993,"format-align-right":61994,"format-bold":61995,"format-clear":61996,"format-color-fill":61997,"format-color-reset":61998,"format-color-text":61999,"format-indent-decrease":62e3,"format-indent-increase":62001,"format-italic":62002,"format-line-spacing":62003,"format-list-bulleted":62004,"format-list-numbered":62005,"format-paint":62006,"format-quote":62007,"format-size":62008,"format-strikethrough":62009,"format-textdirection-l-to-r":62010,"format-textdirection-r-to-l":62011,"format-underlined":62012,forum:62013,forward:62014,"forward-10":62015,"forward-30":62016,"forward-5":62017,fullscreen:62018,"fullscreen-exit":62019,functions:62020,gamepad:62021,games:62022,gesture:62023,"get-app":62024,"gps-fixed":62025,"gps-not-fixed":62026,"gps-off":62027,grade:62028,gradient:62029,grain:62030,"graphic-eq":62031,"grid-off":62032,"grid-on":62033,group:62034,"group-add":62035,"group-work":62036,"hdr-off":62037,"hdr-on":62038,"hdr-strong":62039,"hdr-weak":62040,headset:62041,"headset-mic":62042,healing:62043,hearing:62044,help:62045,"high-quality":62046,"highlight-off":62047,history:62048,home:62049,hotel:62050,"hourglass-empty":62051,"hourglass-full":62052,http:62053,https:62054,image:62055,"image-aspect-ratio":62056,"import-export":62057,inbox:62058,info:62059,"info-outline":62060,input:62061,"insert-chart":62062,"insert-comment":62063,"insert-drive-file":62064,"insert-emoticon":62065,"insert-invitation":62066,"insert-link":62067,"insert-photo":62068,"invert-colors":62069,"invert-colors-off":62070,iso:62071,keyboard:62072,"keyboard-arrow-down":62073,"keyboard-arrow-left":62074,"keyboard-arrow-right":62075,"keyboard-arrow-up":62076,"keyboard-backspace":62077,"keyboard-capslock":62078,"keyboard-hide":62079,"keyboard-return":62080,"keyboard-tab":62081,"keyboard-voice":62082,label:62083,"label-outline":62084,landscape:62085,language:62086,laptop:62087,"laptop-chromebook":62088,"laptop-mac":62089,"laptop-windows":62090,launch:62091,layers:62092,"layers-clear":62093,"leak-add":62094,"leak-remove":62095,lens:62096,"library-add":62097,"library-books":62098,"library-music":62099,link:62100,list:62101,"live-help":62102,"live-tv":62103,"local-activity":62104,"local-airport":62105,"local-atm":62106,"local-bar":62107,"local-cafe":62108,"local-car-wash":62109,"local-convenience-store":62110,"local-dining":62111,"local-drink":62112,"local-florist":62113,"local-gas-station":62114,"local-grocery-store":62115,"local-hospital":62116,"local-hotel":62117,"local-laundry-service":62118,"local-library":62119,"local-mall":62120,"local-movies":62121,"local-offer":62122,"local-parking":62123,"local-pharmacy":62124,"local-phone":62125,"local-pizza":62126,"local-play":62127,"local-post-office":62128,"local-printshop":62129,"local-see":62130,"local-shipping":62131,"local-taxi":62132,"location-city":62133,"location-disabled":62134,"location-off":62135,"location-on":62136,"location-searching":62137,lock:62138,"lock-open":62139,"lock-outline":62140,looks:62141,"looks-3":62142,"looks-4":62143,"looks-5":62144,"looks-6":62145,"looks-one":62146,"looks-two":62147,loop:62148,loupe:62149,loyalty:62150,mail:62151,map:62152,markunread:62153,"markunread-mailbox":62154,memory:62155,menu:62156,"merge-type":62157,message:62158,mic:62159,"mic-none":62160,"mic-off":62161,mms:62162,"mode-comment":62163,"mode-edit":62164,"monochrome-photos":62165,mood:62166,"mood-bad":62167,more:62168,"more-horiz":62169,"more-vert":62170,mouse:62171,movie:62172,"movie-creation":62173,"music-note":62174,"my-location":62175,nature:62176,"nature-people":62177,"navigate-before":62178,"navigate-next":62179,navigation:62180,"network-cell":62181,"network-locked":62182,"network-wifi":62183,"new-releases":62184,nfc:62185,"no-sim":62186,"not-interested":62187,"note-add":62188,notifications:62189,"notifications-active":62190,"notifications-none":62191,"notifications-off":62192,"notifications-paused":62193,"ondemand-video":62194,"open-in-browser":62195,"open-in-new":62196,"open-with":62197,pages:62198,pageview:62199,palette:62200,panorama:62201,"panorama-fish-eye":62202,"panorama-horizontal":62203,"panorama-vertical":62204,"panorama-wide-angle":62205,"party-mode":62206,pause:62207,"pause-circle-filled":62208,"pause-circle-outline":62209,payment:62210,people:62211,"people-outline":62212,"perm-camera-mic":62213,"perm-contact-calendar":62214,"perm-data-setting":62215,"perm-device-information":62216,"perm-identity":62217,"perm-media":62218,"perm-phone-msg":62219,"perm-scan-wifi":62220,person:62221,"person-add":62222,"person-outline":62223,"person-pin":62224,"personal-video":62225,phone:62226,"phone-android":62227,"phone-bluetooth-speaker":62228,"phone-forwarded":62229,"phone-in-talk":62230,"phone-iphone":62231,"phone-locked":62232,"phone-missed":62233,"phone-paused":62234,phonelink:62235,"phonelink-off":62236,photo:62237,"photo-album":62238,"photo-camera":62239,"photo-library":62240,"picture-as-pdf":62241,"picture-in-picture":62242,"pin-drop":62243,place:62244,"play-arrow":62245,"play-circle-filled":62246,"play-circle-outline":62247,"play-for-work":62248,"playlist-add":62249,"plus-one":62250,poll:62251,polymer:62252,"portable-wifi-off":62253,portrait:62254,power:62255,"power-input":62256,"power-settings-new":62257,"present-to-all":62258,print:62259,"public":62260,publish:62261,"query-builder":62262,"question-answer":62263,queue:62264,"queue-music":62265,radio:62266,"radio-button-checked":62267,"radio-button-unchecked":62268,"rate-review":62269,receipt:62270,"recent-actors":62271,redeem:62272,redo:62273,refresh:62274,remove:62275,"remove-circle":62276,"remove-circle-outline":62277,"remove-red-eye":62278,repeat:62279,"repeat-one":62280,replay:62281,"replay-10":62282,"replay-30":62283,"replay-5":62284,reply:62285,"reply-all":62286,report:62287,"report-problem":62288,"restaurant-menu":62289,restore:62290,"ring-volume":62291,room:62292,"rotate-90-degrees-ccw":62293,"rotate-left":62294,"rotate-right":62295,router:62296,satellite:62297,save:62298,scanner:62299,schedule:62300,school:62301,"screen-lock-landscape":62302,"screen-lock-portrait":62303,"screen-lock-rotation":62304,"screen-rotation":62305,"sd-card":62306,"sd-storage":62307,search:62308,security:62309,"select-all":62310,send:62311,settings:62312,"settings-applications":62313,"settings-backup-restore":62314,"settings-bluetooth":62315,"settings-brightness":62316,"settings-cell":62317,"settings-ethernet":62318,"settings-input-antenna":62319,"settings-input-component":62320,"settings-input-composite":62321,"settings-input-hdmi":62322,"settings-input-svideo":62323,"settings-overscan":62324,"settings-phone":62325,"settings-power":62326,"settings-remote":62327,"settings-system-daydream":62328,"settings-voice":62329,share:62330,shop:62331,"shop-two":62332,"shopping-basket":62333,"shopping-cart":62334,shuffle:62335,"signal-cellular-0-bar":62336,"signal-cellular-1-bar":62337,"signal-cellular-2-bar":62338,"signal-cellular-3-bar":62339,"signal-cellular-4-bar":62340,"signal-cellular-connected-no-internet-0-bar":62341,"signal-cellular-connected-no-internet-1-bar":62342,"signal-cellular-connected-no-internet-2-bar":62343,"signal-cellular-connected-no-internet-3-bar":62344,"signal-cellular-connected-no-internet-4-bar":62345,"signal-cellular-no-sim":62346,"signal-cellular-null":62347,"signal-cellular-off":62348,"signal-wifi-0-bar":62349,"signal-wifi-1-bar":62350,"signal-wifi-1-bar-lock":62351,"signal-wifi-2-bar":62352,"signal-wifi-2-bar-lock":62353,"signal-wifi-3-bar":62354,"signal-wifi-3-bar-lock":62355,"signal-wifi-4-bar":62356,"signal-wifi-4-bar-lock":62357,"signal-wifi-off":62358,"sim-card":62359,"sim-card-alert":62360,"skip-next":62361,"skip-previous":62362,slideshow:62363,smartphone:62364,sms:62365,"sms-failed":62366,snooze:62367,sort:62368,"space-bar":62369,speaker:62370,"speaker-group":62371,"speaker-notes":62372,"speaker-phone":62373,spellcheck:62374,stars:62375,"stay-current-landscape":62376,"stay-current-portrait":62377,"stay-primary-landscape":62378,"stay-primary-portrait":62379,stop:62380,storage:62381,store:62382,"store-mall-directory":62383,straighten:62384,"strikethrough-s":62385,style:62386,subject:62387,subtitles:62388,"supervisor-account":62389,"surround-sound":62390,"swap-calls":62391,"swap-horiz":62392,"swap-vert":62393,"swap-vertical-circle":62394,"switch-camera":62395,"switch-video":62396,sync:62397,"sync-disabled":62398,"sync-problem":62399,"system-update":62400,"system-update-alt":62401,tab:62402,"tab-unselected":62403,tablet:62404,"tablet-android":62405,"tablet-mac":62406,"tag-faces":62407,"tap-and-play":62408,terrain:62409,"text-format":62410,textsms:62411,texture:62412,theaters:62413,"thumb-down":62414,"thumb-up":62415,"thumbs-up-down":62416,"time-to-leave":62417,timelapse:62418,timer:62419,"timer-10":62420,"timer-3":62421,"timer-off":62422,toc:62423,today:62424,toll:62425,tonality:62426,toys:62427,"track-changes":62428,traffic:62429,transform:62430,translate:62431,"trending-down":62432,"trending-flat":62433,"trending-up":62434,tune:62435,"turned-in":62436,"turned-in-not":62437,tv:62438,undo:62439,"unfold-less":62440,"unfold-more":62441,usb:62442,"verified-user":62443,"vertical-align-bottom":62444,"vertical-align-center":62445,"vertical-align-top":62446,vibration:62447,"video-library":62448,videocam:62449,"videocam-off":62450,"view-agenda":62451,"view-array":62452,"view-carousel":62453,"view-column":62454,"view-comfy":62455,"view-compact":62456,"view-day":62457,"view-headline":62458,"view-list":62459,"view-module":62460,"view-quilt":62461,"view-stream":62462,"view-week":62463,visibility:62464,"visibility-off":62465,"voice-chat":62466,voicemail:62467,"volume-down":62468,"volume-mute":62469,"volume-off":62470,"volume-up":62471,"vpn-key":62472,"vpn-lock":62473,wallpaper:62474,warning:62475,watch:62476,"wb-auto":62477,"wb-cloudy":62478,"wb-incandescent":62479,"wb-iridescent":62480,"wb-sunny":62481,wc:62482,web:62483,whatshot:62484,widgets:62485,wifi:62486,"wifi-lock":62487,"wifi-tethering":62488,work:62489,"wrap-text":62490,"youtube-searched-for":62491},u=a(s,"MaterialIcons");o.exports=u,o.exports.glyphMap=s}),__d("createIconSet",["lodash/index","react-native/Libraries/react-native/react-native","invariant","merge","flattenStyle","ViewStylePropTypes","TextStylePropTypes"],function(e,t,n,r,o,i){"use strict";function a(e,t){var n=d.create({container:{overflow:"hidden",backgroundColor:"transparent",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},text:{fontFamily:t}}),r=c.createClass({propTypes:{name:c.PropTypes.oneOf(Object.keys(e)).isRequired,size:c.PropTypes.number,color:c.PropTypes.string,style:c.PropTypes.oneOfType([c.PropTypes.number,c.PropTypes.object,c.PropTypes.array])},render:function(){var t=this.props.name,r=e[t]||"?";"number"==typeof r&&(r=String.fromCharCode(r));var o=u.pick(v([n.container,this.props.style]),Object.keys(y)),i=u.pick(v([this.props.style,n.text]),Object.keys(_)),a=this.props.size||i.fontSize||b,d=this.props.color||i.color||R;return i.fontSize=a,i.lineHeight=a,i.height=a,i.color=d,c.createElement(l,s({},this.props,{style:o}),c.createElement(p,{style:i},r),this.props.children)}}),o={},i=function(n,r,i){g(m,"RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a?");var a=e[n]||"?";"number"==typeof a&&(a=String.fromCharCode(a)),r=r||b,i=i||R;var s=a+":"+r+":"+i;return new Promise(function(e,n){var u=o[s];return"undefined"!=typeof u?((!u||u instanceof Error)&&n(u),e({uri:u})):void m.getImageForFont(t,a,r,i,function(t,r){return"string"==typeof t&&(t=new Error(t)),o[s]=r||t||!1,!t&&r?e({uri:r}):void n(t)})})},a=c.createClass({componentDidMount:function(){var e=this,t=this.props.iconSize||S;this.props.iconName&&i(this.props.iconName,t).then(function(t){return e.setState({icon:t})}),this.props.selectedIconName&&i(this.props.selectedIconName,t).then(function(t){return e.setState({selectedIcon:t})})},render:function(){return c.createElement(h.Item,s({},this.props,this.state))}});return r.TabBarItem=a,r.getImageSource=i,r}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=t("lodash/index"),c=t("react-native/Libraries/react-native/react-native"),l=c.View,p=c.Text,d=c.StyleSheet,h=c.TabBarIOS,f=c.NativeModules,m=f.RNVectorIconsManager,g=t("invariant"),v=(t("merge"),t("flattenStyle")),y=t("ViewStylePropTypes"),_=t("TextStylePropTypes"),b=12,S=30,R="black";o.exports=a}),__d("lodash/index",[],function(e,t,n,r,o,i){(function(){function t(e,t){if(e!==t){var n=null===e,r=e===C,o=e===e,i=null===t,a=t===C,s=t===t;if(e>t&&!i||!o||n&&!a&&s||r&&s)return 1;if(t>e&&!n||!s||i&&!r&&o||a&&o)return-1}return 0}function n(e,t,n){for(var r=e.length,o=n?r:-1;n?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function r(e,t,n){if(t!==t)return g(e,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function a(e){return"function"==typeof e||!1}function s(e){return null==e?"":e+""}function u(e,t){for(var n=-1,r=e.length;++n<r&&t.indexOf(e.charAt(n))>-1;);return n}function c(e,t){for(var n=e.length;n--&&t.indexOf(e.charAt(n))>-1;);return n}function l(e,n){return t(e.criteria,n.criteria)||e.index-n.index}function p(e,n,r){for(var o=-1,i=e.criteria,a=n.criteria,s=i.length,u=r.length;++o<s;){var c=t(i[o],a[o]);if(c){if(o>=u)return c;var l=r[o];return c*("asc"===l||l===!0?1:-1)}}return e.index-n.index}function d(e){return Ge[e]}function h(e){return qe[e]}function f(e,t,n){return t?e=$e[e]:n&&(e=Xe[e]),"\\"+e}function m(e){return"\\"+Xe[e]}function g(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o<r;){var i=e[o];if(i!==i)return o}return-1}function v(e){return!!e&&"object"==typeof e}function y(e){return 160>=e&&e>=9&&13>=e||32==e||160==e||5760==e||6158==e||e>=8192&&(8202>=e||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function _(e,t){for(var n=-1,r=e.length,o=-1,i=[];++n<r;)e[n]===t&&(e[n]=G,i[++o]=n);return i}function b(e,t){for(var n,r=-1,o=e.length,i=-1,a=[];++r<o;){var s=e[r],u=t?t(s,r,e):s;r&&n===u||(n=u,a[++i]=s)}return a}function S(e){for(var t=-1,n=e.length;++t<n&&y(e.charCodeAt(t)););return t}function R(e){for(var t=e.length;t--&&y(e.charCodeAt(t)););return t}function E(e){return ze[e]}function w(e){function o(e){if(v(e)&&!xs(e)&&!(e instanceof K)){if(e instanceof y)return e;if(ta.call(e,"__chain__")&&ta.call(e,"__wrapped__"))return hr(e)}return new y(e)}function i(){}function y(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}function K(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Pa,this.__views__=[]}function te(){var e=new K(this.__wrapped__);return e.__actions__=et(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=et(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=et(this.__views__),e}function re(){if(this.__filtered__){var e=new K(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Ge(){var e=this.__wrapped__.value(),t=this.__dir__,n=xs(e),r=0>t,o=n?e.length:0,i=zn(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,p=l.length,d=0,h=Ea(u,this.__takeCount__);if(!n||F>o||o==u&&h==u)return nn(r&&n?e.reverse():e,this.__actions__);var f=[];e:for(;u--&&h>d;){c+=t;for(var m=-1,g=e[c];++m<p;){var v=l[m],y=v.iteratee,_=v.type,b=y(g);if(_==U)g=b;else if(!b){if(_==H)continue e;break e}}f[d++]=g}return f}function qe(){this.__data__={}}function ze(e){return this.has(e)&&delete this.__data__[e]}function Ye(e){return"__proto__"==e?C:this.__data__[e]}function $e(e){return"__proto__"!=e&&ta.call(this.__data__,e)}function Xe(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this}function Qe(e){var t=e?e.length:0;for(this.data={hash:va(null),set:new pa};t--;)this.push(e[t])}function Ke(e,t){var n=e.data,r="string"==typeof t||Ao(t)?n.set.has(t):n.hash[t];return r?0:-1}function Je(e){var t=this.data;"string"==typeof e||Ao(e)?t.set.add(e):t.hash[e]=!0}function Ze(e,t){for(var n=-1,r=e.length,o=-1,i=t.length,a=Hi(r+i);++n<r;)a[n]=e[n];for(;++o<i;)a[n++]=t[o];return a}function et(e,t){var n=-1,r=e.length;for(t||(t=Hi(r));++n<r;)t[n]=e[n];return t}function tt(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function ot(e,t){for(var n=e.length;n--&&t(e[n],n,e)!==!1;);return e}function it(e,t){for(var n=-1,r=e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function at(e,t,n,r){for(var o=-1,i=e.length,a=r,s=a;++o<i;){var u=e[o],c=+t(u);n(c,a)&&(a=c,s=u)}return s}function st(e,t){for(var n=-1,r=e.length,o=-1,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[++o]=a)}return i}function ut(e,t){for(var n=-1,r=e.length,o=Hi(r);++n<r;)o[n]=t(e[n],n,e);return o}function ct(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function lt(e,t,n,r){var o=-1,i=e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function pt(e,t,n,r){var o=e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function dt(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function ht(e,t){for(var n=e.length,r=0;n--;)r+=+t(e[n])||0;return r}function ft(e,t){return e===C?t:e}function mt(e,t,n,r){return e!==C&&ta.call(r,n)?e:t}function gt(e,t,n){for(var r=-1,o=Fs(t),i=o.length;++r<i;){var a=o[r],s=e[a],u=n(s,t[a],a,e,t);(u===u?u===s:s!==s)&&(s!==C||a in e)||(e[a]=u)}return e}function vt(e,t){return null==t?e:_t(t,Fs(t),e)}function yt(e,t){for(var n=-1,r=null==e,o=!r&&Kn(e),i=o?e.length:0,a=t.length,s=Hi(a);++n<a;){var u=t[n];o?s[n]=Jn(u,i)?e[u]:C:s[n]=r?C:e[u]}return s}function _t(e,t,n){n||(n={});for(var r=-1,o=t.length;++r<o;){var i=t[r];n[i]=e[i]}return n}function bt(e,t,n){var r=typeof e;return"function"==r?t===C?e:an(e,t,n):null==e?Pi:"object"==r?jt(e):t===C?ki(e):Ft(e,t)}function St(e,t,n,r,o,i,a){var s;if(n&&(s=o?n(e,r,o):n(e)),s!==C)return s;if(!Ao(e))return e;var u=xs(e);if(u){if(s=Yn(e),!t)return et(e,s)}else{var c=ra.call(e),l=c==Q;if(c!=Z&&c!=q&&(!l||o))return We[c]?Xn(e,c,t):o?e:{};if(s=$n(l?{}:e),!t)return vt(s,e)}i||(i=[]),a||(a=[]);for(var p=i.length;p--;)if(i[p]==e)return a[p];return i.push(e),a.push(s),(u?tt:Ot)(e,function(r,o){s[o]=St(r,t,n,o,e,i,a)}),s}function Rt(e,t,n){if("function"!=typeof e)throw new Qi(W);return da(function(){e.apply(C,n)},t)}function Et(e,t){var n=e?e.length:0,o=[];if(!n)return o;var i=-1,a=Wn(),s=a==r,u=s&&t.length>=F?mn(t):null,c=t.length;u&&(a=Ke,s=!1,t=u);e:for(;++i<n;){var l=e[i];if(s&&l===l){for(var p=c;p--;)if(t[p]===l)continue e;o.push(l)}else a(t,l,0)<0&&o.push(l)}return o}function wt(e,t){var n=!0;return La(e,function(e,r,o){return n=!!t(e,r,o)}),n}function Ct(e,t,n,r){var o=r,i=o;return La(e,function(e,a,s){var u=+t(e,a,s);(n(u,o)||u===r&&u===i)&&(o=u,i=e)}),i}function Tt(e,t,n,r){var o=e.length;for(n=null==n?0:+n||0,0>n&&(n=-n>o?0:o+n),r=r===C||r>o?o:+r||0,0>r&&(r+=o),o=n>r?0:r>>>0,n>>>=0;o>n;)e[n++]=t;return e}function It(e,t){var n=[];return La(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Pt(e,t,n,r){var o;return n(e,function(e,n,i){return t(e,n,i)?(o=r?n:e,!1):void 0}),o}function xt(e,t,n,r){r||(r=[]);for(var o=-1,i=e.length;++o<i;){var a=e[o];v(a)&&Kn(a)&&(n||xs(a)||To(a))?t?xt(a,t,n,r):ct(r,a):n||(r[r.length]=a)}return r}function Mt(e,t){return Ba(e,t,ti)}function Ot(e,t){return Ba(e,t,Fs)}function Dt(e,t){return ja(e,t,Fs)}function Nt(e,t){for(var n=-1,r=t.length,o=-1,i=[];++n<r;){var a=t[n];ko(e[a])&&(i[++o]=a)}return i}function kt(e,t,n){if(null!=e){n!==C&&n in pr(e)&&(t=[n]);for(var r=0,o=t.length;null!=e&&o>r;)e=e[t[r++]];return r&&r==o?e:C}}function At(e,t,n,r,o,i){return e===t?!0:null==e||null==t||!Ao(e)&&!v(t)?e!==e&&t!==t:Lt(e,t,At,n,r,o,i)}function Lt(e,t,n,r,o,i,a){var s=xs(e),u=xs(t),c=z,l=z;s||(c=ra.call(e),c==q?c=Z:c!=Z&&(s=Go(e))),u||(l=ra.call(t),l==q?l=Z:l!=Z&&(u=Go(t)));var p=c==Z,d=l==Z,h=c==l;if(h&&!s&&!p)return jn(e,t,c);if(!o){var f=p&&ta.call(e,"__wrapped__"),m=d&&ta.call(t,"__wrapped__");if(f||m)return n(f?e.value():e,m?t.value():t,r,o,i,a)}if(!h)return!1;i||(i=[]),a||(a=[]);for(var g=i.length;g--;)if(i[g]==e)return a[g]==t;i.push(e),a.push(t);var v=(s?Bn:Fn)(e,t,n,r,o,i,a);return i.pop(),a.pop(),v}function Vt(e,t,n){var r=t.length,o=r,i=!n;if(null==e)return!o;for(e=pr(e);r--;){var a=t[r];if(i&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<o;){a=t[r];var s=a[0],u=e[s],c=a[1];if(i&&a[2]){if(u===C&&!(s in e))return!1}else{var l=n?n(u,c,s):C;if(!(l===C?At(c,u,n,!0):l))return!1}}return!0}function Bt(e,t){var n=-1,r=Kn(e)?Hi(e.length):[];return La(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function jt(e){var t=Gn(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null==e?!1:e[n]===r&&(r!==C||n in pr(e))}}return function(e){return Vt(e,t)}}function Ft(e,t){var n=xs(e),r=er(e)&&rr(t),o=e+"";return e=dr(e),function(i){if(null==i)return!1;var a=o;if(i=pr(i),!(!n&&r||a in i)){if(i=1==e.length?i:kt(i,$t(e,0,-1)),null==i)return!1;a=Tr(e),i=pr(i)}return i[a]===t?t!==C||a in i:At(t,i[a],C,!0)}}function Ht(e,t,n,r,o){if(!Ao(e))return e;var i=Kn(t)&&(xs(t)||Go(t)),a=i?C:Fs(t);return tt(a||t,function(s,u){if(a&&(u=s,s=t[u]),v(s))r||(r=[]),o||(o=[]),Ut(e,t,u,Ht,n,r,o);else{var c=e[u],l=n?n(c,s,u,e,t):C,p=l===C;p&&(l=s),l===C&&(!i||u in e)||!p&&(l===l?l===c:c!==c)||(e[u]=l)}}),e}function Ut(e,t,n,r,o,i,a){for(var s=i.length,u=t[n];s--;)if(i[s]==u)return void(e[n]=a[s]);var c=e[n],l=o?o(c,u,n,e,t):C,p=l===C;p&&(l=u,Kn(u)&&(xs(u)||Go(u))?l=xs(c)?c:Kn(c)?et(c):[]:Ho(u)||To(u)?l=To(c)?Xo(c):Ho(c)?c:{}:p=!1),i.push(u),a.push(l),p?e[n]=r(l,u,o,i,a):(l===l?l!==c:c===c)&&(e[n]=l)}function Wt(e){return function(t){return null==t?C:t[e]}}function Gt(e){var t=e+"";return e=dr(e),function(n){return kt(n,e,t)}}function qt(e,t){for(var n=e?t.length:0;n--;){var r=t[n];if(r!=o&&Jn(r)){var o=r;ha.call(e,r,1)}}return e}function zt(e,t){return e+ya(Ta()*(t-e+1))}function Yt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function $t(e,t,n){var r=-1,o=e.length;t=null==t?0:+t||0,0>t&&(t=-t>o?0:o+t),n=n===C||n>o?o:+n||0,0>n&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Hi(o);++r<o;)i[r]=e[r+t];return i}function Xt(e,t){var n;return La(e,function(e,r,o){return n=t(e,r,o),!n}),!!n}function Qt(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Kt(e,t,n){var r=Hn(),o=-1;t=ut(t,function(e){return r(e)});var i=Bt(e,function(e){var n=ut(t,function(t){return t(e)});return{criteria:n,index:++o,value:e}});return Qt(i,function(e,t){return p(e,t,n)})}function Jt(e,t){var n=0;return La(e,function(e,r,o){n+=+t(e,r,o)||0}),n}function Zt(e,t){var n=-1,o=Wn(),i=e.length,a=o==r,s=a&&i>=F,u=s?mn():null,c=[];u?(o=Ke,a=!1):(s=!1,u=t?[]:c);e:for(;++n<i;){var l=e[n],p=t?t(l,n,e):l;if(a&&l===l){for(var d=u.length;d--;)if(u[d]===p)continue e;t&&u.push(p),c.push(l)}else o(u,p,0)<0&&((t||s)&&u.push(p),c.push(l))}return c}function en(e,t){for(var n=-1,r=t.length,o=Hi(r);++n<r;)o[n]=e[t[n]];return o}function tn(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?$t(e,r?0:i,r?i+1:o):$t(e,r?i+1:0,r?o:i)}function nn(e,t){var n=e;n instanceof K&&(n=n.value());for(var r=-1,o=t.length;++r<o;){var i=t[r];n=i.func.apply(i.thisArg,ct([n],i.args))}return n}function rn(e,t,n){var r=0,o=e?e.length:r;if("number"==typeof t&&t===t&&Oa>=o){for(;o>r;){var i=r+o>>>1,a=e[i];(n?t>=a:t>a)&&null!==a?r=i+1:o=i}return o}return on(e,t,Pi,n)}function on(e,t,n,r){t=n(t);for(var o=0,i=e?e.length:0,a=t!==t,s=null===t,u=t===C;i>o;){var c=ya((o+i)/2),l=n(e[c]),p=l!==C,d=l===l;if(a)var h=d||r;else h=s?d&&p&&(r||null!=l):u?d&&(r||p):null==l?!1:r?t>=l:t>l;h?o=c+1:i=c}return Ea(i,Ma)}function an(e,t,n){if("function"!=typeof e)return Pi;if(t===C)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)};case 5:return function(n,r,o,i,a){return e.call(t,n,r,o,i,a)}}return function(){return e.apply(t,arguments)}}function sn(e){var t=new aa(e.byteLength),n=new fa(t);return n.set(new fa(e)),t}function un(e,t,n){for(var r=n.length,o=-1,i=Ra(e.length-r,0),a=-1,s=t.length,u=Hi(s+i);++a<s;)u[a]=t[a];for(;++o<r;)u[n[o]]=e[o];for(;i--;)u[a++]=e[o++];return u}function cn(e,t,n){for(var r=-1,o=n.length,i=-1,a=Ra(e.length-o,0),s=-1,u=t.length,c=Hi(a+u);++i<a;)c[i]=e[i];for(var l=i;++s<u;)c[l+s]=t[s];for(;++r<o;)c[l+n[r]]=e[i++];return c}function ln(e,t){return function(n,r,o){var i=t?t():{};if(r=Hn(r,o,3),xs(n))for(var a=-1,s=n.length;++a<s;){var u=n[a];e(i,u,r(u,a,n),n)}else La(n,function(t,n,o){e(i,t,r(t,n,o),o)});return i}}function pn(e){return yo(function(t,n){var r=-1,o=null==t?0:n.length,i=o>2?n[o-2]:C,a=o>2?n[2]:C,s=o>1?n[o-1]:C;for("function"==typeof i?(i=an(i,s,5),o-=2):(i="function"==typeof s?s:C,o-=i?1:0),a&&Zn(n[0],n[1],a)&&(i=3>o?C:i,o=1);++r<o;){var u=n[r];u&&e(t,u,i)}return t})}function dn(e,t){return function(n,r){var o=n?Ua(n):0;if(!nr(o))return e(n,r);for(var i=t?o:-1,a=pr(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}function hn(e){return function(t,n,r){for(var o=pr(t),i=r(t),a=i.length,s=e?a:-1;e?s--:++s<a;){var u=i[s];if(n(o[u],u,o)===!1)break}return t}}function fn(e,t){function n(){var o=this&&this!==nt&&this instanceof n?r:e;return o.apply(t,arguments)}var r=vn(e);return n}
function mn(e){return va&&pa?new Qe(e):null}function gn(e){return function(t){for(var n=-1,r=Ci(pi(t)),o=r.length,i="";++n<o;)i=e(i,r[n],n);return i}}function vn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Aa(e.prototype),r=e.apply(n,t);return Ao(r)?r:n}}function yn(e){function t(n,r,o){o&&Zn(n,r,o)&&(r=C);var i=Vn(n,e,C,C,C,C,C,r);return i.placeholder=t.placeholder,i}return t}function _n(e,t){return yo(function(n){var r=n[0];return null==r?r:(n.push(t),e.apply(C,n))})}function bn(e,t){return function(n,r,o){if(o&&Zn(n,r,o)&&(r=C),r=Hn(r,o,3),1==r.length){n=xs(n)?n:lr(n);var i=at(n,r,e,t);if(!n.length||i!==t)return i}return Ct(n,r,e,t)}}function Sn(e,t){return function(r,o,i){if(o=Hn(o,i,3),xs(r)){var a=n(r,o,t);return a>-1?r[a]:C}return Pt(r,o,e)}}function Rn(e){return function(t,r,o){return t&&t.length?(r=Hn(r,o,3),n(t,r,e)):-1}}function En(e){return function(t,n,r){return n=Hn(n,r,3),Pt(t,n,e,!0)}}function wn(e){return function(){for(var t,n=arguments.length,r=e?n:-1,o=0,i=Hi(n);e?r--:++r<n;){var a=i[o++]=arguments[r];if("function"!=typeof a)throw new Qi(W);!t&&y.prototype.thru&&"wrapper"==Un(a)&&(t=new y([],!0))}for(r=t?-1:n;++r<n;){a=i[r];var s=Un(a),u="wrapper"==s?Ha(a):C;t=u&&tr(u[0])&&u[1]==(k|M|D|A)&&!u[4].length&&1==u[9]?t[Un(u[0])].apply(t,u[3]):1==a.length&&tr(a)?t[s]():t.thru(a)}return function(){var e=arguments,r=e[0];if(t&&1==e.length&&xs(r)&&r.length>=F)return t.plant(r).value();for(var o=0,a=n?i[o].apply(this,e):r;++o<n;)a=i[o].call(this,a);return a}}}function Cn(e,t){return function(n,r,o){return"function"==typeof r&&o===C&&xs(n)?e(n,r):t(n,an(r,o,3))}}function Tn(e){return function(t,n,r){return("function"!=typeof n||r!==C)&&(n=an(n,r,3)),e(t,n,ti)}}function In(e){return function(t,n,r){return("function"!=typeof n||r!==C)&&(n=an(n,r,3)),e(t,n)}}function Pn(e){return function(t,n,r){var o={};return n=Hn(n,r,3),Ot(t,function(t,r,i){var a=n(t,r,i);r=e?a:r,t=e?t:a,o[r]=t}),o}}function xn(e){return function(t,n,r){return t=s(t),(e?t:"")+Nn(t,n,r)+(e?"":t)}}function Mn(e){var t=yo(function(n,r){var o=_(r,t.placeholder);return Vn(n,e,C,r,o)});return t}function On(e,t){return function(n,r,o,i){var a=arguments.length<3;return"function"==typeof r&&i===C&&xs(n)?e(n,r,o,a):Yt(n,Hn(r,i,4),o,a,t)}}function Dn(e,t,n,r,o,i,a,s,u,c){function l(){for(var y=arguments.length,b=y,S=Hi(y);b--;)S[b]=arguments[b];if(r&&(S=un(S,r,o)),i&&(S=cn(S,i,a)),f||g){var R=l.placeholder,E=_(S,R);if(y-=E.length,c>y){var w=s?et(s):C,T=Ra(c-y,0),x=f?E:C,M=f?C:E,O=f?S:C,k=f?C:S;t|=f?D:N,t&=~(f?N:D),m||(t&=~(I|P));var A=[e,t,n,O,x,k,M,w,u,T],L=Dn.apply(C,A);return tr(e)&&Wa(L,A),L.placeholder=R,L}}var V=d?n:this,B=h?V[e]:e;return s&&(S=ur(S,s)),p&&u<S.length&&(S.length=u),this&&this!==nt&&this instanceof l&&(B=v||vn(e)),B.apply(V,S)}var p=t&k,d=t&I,h=t&P,f=t&M,m=t&x,g=t&O,v=h?C:vn(e);return l}function Nn(e,t,n){var r=e.length;if(t=+t,r>=t||!ba(t))return"";var o=t-r;return n=null==n?" ":n+"",vi(n,ga(o/n.length)).slice(0,o)}function kn(e,t,n,r){function o(){for(var t=-1,s=arguments.length,u=-1,c=r.length,l=Hi(c+s);++u<c;)l[u]=r[u];for(;s--;)l[u++]=arguments[++t];var p=this&&this!==nt&&this instanceof o?a:e;return p.apply(i?n:this,l)}var i=t&I,a=vn(e);return o}function An(e){var t=qi[e];return function(e,n){return n=n===C?0:+n||0,n?(n=ca(10,n),t(e*n)/n):t(e)}}function Ln(e){return function(t,n,r,o){var i=Hn(r);return null==r&&i===bt?rn(t,n,e):on(t,n,i(r,o,1),e)}}function Vn(e,t,n,r,o,i,a,s){var u=t&P;if(!u&&"function"!=typeof e)throw new Qi(W);var c=r?r.length:0;if(c||(t&=~(D|N),r=o=C),c-=o?o.length:0,t&N){var l=r,p=o;r=o=C}var d=u?C:Ha(e),h=[e,t,n,r,o,l,p,i,a,s];if(d&&(or(h,d),t=h[1],s=h[9]),h[9]=null==s?u?0:e.length:Ra(s-c,0)||0,t==I)var f=fn(h[0],h[2]);else f=t!=D&&t!=(I|D)||h[4].length?Dn.apply(C,h):kn.apply(C,h);var m=d?Fa:Wa;return m(f,h)}function Bn(e,t,n,r,o,i,a){var s=-1,u=e.length,c=t.length;if(u!=c&&!(o&&c>u))return!1;for(;++s<u;){var l=e[s],p=t[s],d=r?r(o?p:l,o?l:p,s):C;if(d!==C){if(d)continue;return!1}if(o){if(!dt(t,function(e){return l===e||n(l,e,r,o,i,a)}))return!1}else if(l!==p&&!n(l,p,r,o,i,a))return!1}return!0}function jn(e,t,n){switch(n){case Y:case $:return+e==+t;case X:return e.name==t.name&&e.message==t.message;case J:return e!=+e?t!=+t:e==+t;case ee:case ne:return e==t+""}return!1}function Fn(e,t,n,r,o,i,a){var s=Fs(e),u=s.length,c=Fs(t),l=c.length;if(u!=l&&!o)return!1;for(var p=u;p--;){var d=s[p];if(!(o?d in t:ta.call(t,d)))return!1}for(var h=o;++p<u;){d=s[p];var f=e[d],m=t[d],g=r?r(o?m:f,o?f:m,d):C;if(!(g===C?n(f,m,r,o,i,a):g))return!1;h||(h="constructor"==d)}if(!h){var v=e.constructor,y=t.constructor;if(v!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y))return!1}return!0}function Hn(e,t,n){var r=o.callback||Ti;return r=r===Ti?bt:r,n?r(e,t,n):r}function Un(e){for(var t=e.name,n=ka[t],r=n?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Wn(e,t,n){var i=o.indexOf||wr;return i=i===wr?r:i,e?i(e,t,n):i}function Gn(e){for(var t=ni(e),n=t.length;n--;)t[n][2]=rr(t[n][1]);return t}function qn(e,t){var n=null==e?C:e[t];return Bo(n)?n:C}function zn(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Ea(t,e+a);break;case"takeRight":e=Ra(e,t-a)}}return{start:e,end:t}}function Yn(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ta.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function $n(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=Yi),new t}function Xn(e,t,n){var r=e.constructor;switch(t){case oe:return sn(e);case Y:case $:return new r(+e);case ie:case ae:case se:case ue:case ce:case le:case pe:case de:case he:var o=e.buffer;return new r(n?sn(o):o,e.byteOffset,e.length);case J:case ne:return new r(e);case ee:var i=new r(e.source,De.exec(e));i.lastIndex=e.lastIndex}return i}function Qn(e,t,n){null==e||er(t,e)||(t=dr(t),e=1==t.length?e:kt(e,$t(t,0,-1)),t=Tr(t));var r=null==e?e:e[t];return null==r?C:r.apply(e,n)}function Kn(e){return null!=e&&nr(Ua(e))}function Jn(e,t){return e="number"==typeof e||Ae.test(e)?+e:-1,t=null==t?Da:t,e>-1&&e%1==0&&t>e}function Zn(e,t,n){if(!Ao(n))return!1;var r=typeof t;if("number"==r?Kn(n)&&Jn(t,n.length):"string"==r&&t in n){var o=n[t];return e===e?e===o:o!==o}return!1}function er(e,t){var n=typeof e;if("string"==n&&Ce.test(e)||"number"==n)return!0;if(xs(e))return!1;var r=!we.test(e);return r||null!=t&&e in pr(t)}function tr(e){var t=Un(e);if(!(t in K.prototype))return!1;var n=o[t];if(e===n)return!0;var r=Ha(n);return!!r&&e===r[0]}function nr(e){return"number"==typeof e&&e>-1&&e%1==0&&Da>=e}function rr(e){return e===e&&!Ao(e)}function or(e,t){var n=e[1],r=t[1],o=n|r,i=k>o,a=r==k&&n==M||r==k&&n==A&&e[7].length<=t[8]||r==(k|A)&&n==M;if(!i&&!a)return e;r&I&&(e[2]=t[2],o|=n&I?0:x);var s=t[3];if(s){var u=e[3];e[3]=u?un(u,s,t[4]):et(s),e[4]=u?_(e[3],G):et(t[4])}return s=t[5],s&&(u=e[5],e[5]=u?cn(u,s,t[6]):et(s),e[6]=u?_(e[5],G):et(t[6])),s=t[7],s&&(e[7]=et(s)),r&k&&(e[8]=null==e[8]?t[8]:Ea(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function ir(e,t){return e===C?t:Ms(e,t,ir)}function ar(e,t){e=pr(e);for(var n=-1,r=t.length,o={};++n<r;){var i=t[n];i in e&&(o[i]=e[i])}return o}function sr(e,t){var n={};return Mt(e,function(e,r,o){t(e,r,o)&&(n[r]=e)}),n}function ur(e,t){for(var n=e.length,r=Ea(t.length,n),o=et(e);r--;){var i=t[r];e[r]=Jn(i,n)?o[i]:C}return e}function cr(e){for(var t=ti(e),n=t.length,r=n&&e.length,o=!!r&&nr(r)&&(xs(e)||To(e)),i=-1,a=[];++i<n;){var s=t[i];(o&&Jn(s,r)||ta.call(e,s))&&a.push(s)}return a}function lr(e){return null==e?[]:Kn(e)?Ao(e)?e:Yi(e):ai(e)}function pr(e){return Ao(e)?e:Yi(e)}function dr(e){if(xs(e))return e;var t=[];return s(e).replace(Te,function(e,n,r,o){t.push(r?o.replace(Me,"$1"):n||e)}),t}function hr(e){return e instanceof K?e.clone():new y(e.__wrapped__,e.__chain__,et(e.__actions__))}function fr(e,t,n){t=(n?Zn(e,t,n):null==t)?1:Ra(ya(t)||1,1);for(var r=0,o=e?e.length:0,i=-1,a=Hi(ga(o/t));o>r;)a[++i]=$t(e,r,r+=t);return a}function mr(e){for(var t=-1,n=e?e.length:0,r=-1,o=[];++t<n;){var i=e[t];i&&(o[++r]=i)}return o}function gr(e,t,n){var r=e?e.length:0;return r?((n?Zn(e,t,n):null==t)&&(t=1),$t(e,0>t?0:t)):[]}function vr(e,t,n){var r=e?e.length:0;return r?((n?Zn(e,t,n):null==t)&&(t=1),t=r-(+t||0),$t(e,0,0>t?0:t)):[]}function yr(e,t,n){return e&&e.length?tn(e,Hn(t,n,3),!0,!0):[]}function _r(e,t,n){return e&&e.length?tn(e,Hn(t,n,3),!0):[]}function br(e,t,n,r){var o=e?e.length:0;return o?(n&&"number"!=typeof n&&Zn(e,t,n)&&(n=0,r=o),Tt(e,t,n,r)):[]}function Sr(e){return e?e[0]:C}function Rr(e,t,n){var r=e?e.length:0;return n&&Zn(e,t,n)&&(t=!1),r?xt(e,t):[]}function Er(e){var t=e?e.length:0;return t?xt(e,!0):[]}function wr(e,t,n){var o=e?e.length:0;if(!o)return-1;if("number"==typeof n)n=0>n?Ra(o+n,0):n;else if(n){var i=rn(e,t);return o>i&&(t===t?t===e[i]:e[i]!==e[i])?i:-1}return r(e,t,n||0)}function Cr(e){return vr(e,1)}function Tr(e){var t=e?e.length:0;return t?e[t-1]:C}function Ir(e,t,n){var r=e?e.length:0;if(!r)return-1;var o=r;if("number"==typeof n)o=(0>n?Ra(r+n,0):Ea(n||0,r-1))+1;else if(n){o=rn(e,t,!0)-1;var i=e[o];return(t===t?t===i:i!==i)?o:-1}if(t!==t)return g(e,o,!0);for(;o--;)if(e[o]===t)return o;return-1}function Pr(){var e=arguments,t=e[0];if(!t||!t.length)return t;for(var n=0,r=Wn(),o=e.length;++n<o;)for(var i=0,a=e[n];(i=r(t,a,i))>-1;)ha.call(t,i,1);return t}function xr(e,t,n){var r=[];if(!e||!e.length)return r;var o=-1,i=[],a=e.length;for(t=Hn(t,n,3);++o<a;){var s=e[o];t(s,o,e)&&(r.push(s),i.push(o))}return qt(e,i),r}function Mr(e){return gr(e,1)}function Or(e,t,n){var r=e?e.length:0;return r?(n&&"number"!=typeof n&&Zn(e,t,n)&&(t=0,n=r),$t(e,t,n)):[]}function Dr(e,t,n){var r=e?e.length:0;return r?((n?Zn(e,t,n):null==t)&&(t=1),$t(e,0,0>t?0:t)):[]}function Nr(e,t,n){var r=e?e.length:0;return r?((n?Zn(e,t,n):null==t)&&(t=1),t=r-(+t||0),$t(e,0>t?0:t)):[]}function kr(e,t,n){return e&&e.length?tn(e,Hn(t,n,3),!1,!0):[]}function Ar(e,t,n){return e&&e.length?tn(e,Hn(t,n,3)):[]}function Lr(e,t,n,o){var i=e?e.length:0;if(!i)return[];null!=t&&"boolean"!=typeof t&&(o=n,n=Zn(e,t,o)?C:t,t=!1);var a=Hn();return(null!=n||a!==bt)&&(n=a(n,o,3)),t&&Wn()==r?b(e,n):Zt(e,n)}function Vr(e){if(!e||!e.length)return[];var t=-1,n=0;e=st(e,function(e){return Kn(e)?(n=Ra(e.length,n),!0):void 0});for(var r=Hi(n);++t<n;)r[t]=ut(e,Wt(t));return r}function Br(e,t,n){var r=e?e.length:0;if(!r)return[];var o=Vr(e);return null==t?o:(t=an(t,n,4),ut(o,function(e){return lt(e,t,C,!0)}))}function jr(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(Kn(n))var r=r?ct(Et(r,n),Et(n,r)):n}return r?Zt(r):[]}function Fr(e,t){var n=-1,r=e?e.length:0,o={};for(!r||t||xs(e[0])||(t=[]);++n<r;){var i=e[n];t?o[i]=t[n]:i&&(o[i[0]]=i[1])}return o}function Hr(e){var t=o(e);return t.__chain__=!0,t}function Ur(e,t,n){return t.call(n,e),e}function Wr(e,t,n){return t.call(n,e)}function Gr(){return Hr(this)}function qr(){return new y(this.value(),this.__chain__)}function zr(e){for(var t,n=this;n instanceof i;){var r=hr(n);t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function Yr(){var e=this.__wrapped__,t=function(e){return n&&n.__dir__<0?e:e.reverse()};if(e instanceof K){var n=e;return this.__actions__.length&&(n=new K(this)),n=n.reverse(),n.__actions__.push({func:Wr,args:[t],thisArg:C}),new y(n,this.__chain__)}return this.thru(t)}function $r(){return this.value()+""}function Xr(){return nn(this.__wrapped__,this.__actions__)}function Qr(e,t,n){var r=xs(e)?it:wt;return n&&Zn(e,t,n)&&(t=C),("function"!=typeof t||n!==C)&&(t=Hn(t,n,3)),r(e,t)}function Kr(e,t,n){var r=xs(e)?st:It;return t=Hn(t,n,3),r(e,t)}function Jr(e,t){return os(e,jt(t))}function Zr(e,t,n,r){var o=e?Ua(e):0;return nr(o)||(e=ai(e),o=e.length),n="number"!=typeof n||r&&Zn(t,n,r)?0:0>n?Ra(o+n,0):n||0,"string"==typeof e||!xs(e)&&Wo(e)?o>=n&&e.indexOf(t,n)>-1:!!o&&Wn(e,t,n)>-1}function eo(e,t,n){var r=xs(e)?ut:Bt;return t=Hn(t,n,3),r(e,t)}function to(e,t){return eo(e,ki(t))}function no(e,t,n){var r=xs(e)?st:It;return t=Hn(t,n,3),r(e,function(e,n,r){return!t(e,n,r)})}function ro(e,t,n){if(n?Zn(e,t,n):null==t){e=lr(e);var r=e.length;return r>0?e[zt(0,r-1)]:C}var o=-1,i=$o(e),r=i.length,a=r-1;for(t=Ea(0>t?0:+t||0,r);++o<t;){var s=zt(o,a),u=i[s];i[s]=i[o],i[o]=u}return i.length=t,i}function oo(e){return ro(e,Pa)}function io(e){var t=e?Ua(e):0;return nr(t)?t:Fs(e).length}function ao(e,t,n){var r=xs(e)?dt:Xt;return n&&Zn(e,t,n)&&(t=C),("function"!=typeof t||n!==C)&&(t=Hn(t,n,3)),r(e,t)}function so(e,t,n){if(null==e)return[];n&&Zn(e,t,n)&&(t=C);var r=-1;t=Hn(t,n,3);var o=Bt(e,function(e,n,o){return{criteria:t(e,n,o),index:++r,value:e}});return Qt(o,l)}function uo(e,t,n,r){return null==e?[]:(r&&Zn(t,n,r)&&(n=C),xs(t)||(t=null==t?[]:[t]),xs(n)||(n=null==n?[]:[n]),Kt(e,t,n))}function co(e,t){return Kr(e,jt(t))}function lo(e,t){if("function"!=typeof t){if("function"!=typeof e)throw new Qi(W);var n=e;e=t,t=n}return e=ba(e=+e)?e:0,function(){return--e<1?t.apply(this,arguments):void 0}}function po(e,t,n){return n&&Zn(e,t,n)&&(t=C),t=e&&null==t?e.length:Ra(+t||0,0),Vn(e,k,C,C,C,C,t)}function ho(e,t){var n;if("function"!=typeof t){if("function"!=typeof e)throw new Qi(W);var r=e;e=t,t=r}return function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=C),n}}function fo(e,t,n){function r(){h&&sa(h),c&&sa(c),m=0,c=h=f=C}function o(t,n){n&&sa(n),c=h=f=C,t&&(m=ms(),l=e.apply(d,u),h||c||(u=d=C))}function i(){var e=t-(ms()-p);0>=e||e>t?o(f,c):h=da(i,e)}function a(){o(v,h)}function s(){if(u=arguments,p=ms(),d=this,f=v&&(h||!y),g===!1)var n=y&&!h;else{c||y||(m=p);var r=g-(p-m),o=0>=r||r>g;o?(c&&(c=sa(c)),m=p,l=e.apply(d,u)):c||(c=da(a,r))}return o&&h?h=sa(h):h||t===g||(h=da(i,t)),n&&(o=!0,l=e.apply(d,u)),!o||h||c||(u=d=C),l}var u,c,l,p,d,h,f,m=0,g=!1,v=!0;if("function"!=typeof e)throw new Qi(W);if(t=0>t?0:+t||0,n===!0){var y=!0;v=!1}else Ao(n)&&(y=!!n.leading,g="maxWait"in n&&Ra(+n.maxWait||0,t),v="trailing"in n?!!n.trailing:v);return s.cancel=r,s}function mo(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new Qi(W);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new mo.Cache,n}function go(e){if("function"!=typeof e)throw new Qi(W);return function(){return!e.apply(this,arguments)}}function vo(e){return ho(2,e)}function yo(e,t){if("function"!=typeof e)throw new Qi(W);return t=Ra(t===C?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,o=Ra(n.length-t,0),i=Hi(o);++r<o;)i[r]=n[t+r];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,n[0],i);case 2:return e.call(this,n[0],n[1],i)}var a=Hi(t+1);for(r=-1;++r<t;)a[r]=n[r];return a[t]=i,e.apply(this,a)}}function _o(e){if("function"!=typeof e)throw new Qi(W);return function(t){return e.apply(this,t)}}function bo(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Qi(W);return n===!1?r=!1:Ao(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),fo(e,t,{leading:r,maxWait:+t,trailing:o})}function So(e,t){return t=null==t?Pi:t,Vn(t,D,C,[e],[])}function Ro(e,t,n,r){return t&&"boolean"!=typeof t&&Zn(e,t,n)?t=!1:"function"==typeof t&&(r=n,n=t,t=!1),"function"==typeof n?St(e,t,an(n,r,1)):St(e,t)}function Eo(e,t,n){return"function"==typeof t?St(e,!0,an(t,n,1)):St(e,!0)}function wo(e,t){return e>t}function Co(e,t){return e>=t}function To(e){return v(e)&&Kn(e)&&ta.call(e,"callee")&&!la.call(e,"callee")}function Io(e){return e===!0||e===!1||v(e)&&ra.call(e)==Y}function Po(e){return v(e)&&ra.call(e)==$}function xo(e){return!!e&&1===e.nodeType&&v(e)&&!Ho(e)}function Mo(e){return null==e?!0:Kn(e)&&(xs(e)||Wo(e)||To(e)||v(e)&&ko(e.splice))?!e.length:!Fs(e).length}function Oo(e,t,n,r){n="function"==typeof n?an(n,r,3):C;var o=n?n(e,t):C;return o===C?At(e,t,n):!!o}function Do(e){return v(e)&&"string"==typeof e.message&&ra.call(e)==X}function No(e){return"number"==typeof e&&ba(e)}function ko(e){return Ao(e)&&ra.call(e)==Q}function Ao(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Lo(e,t,n,r){return n="function"==typeof n?an(n,r,3):C,Vt(e,Gn(t),n)}function Vo(e){return Fo(e)&&e!=+e}function Bo(e){return null==e?!1:ko(e)?ia.test(ea.call(e)):v(e)&&ke.test(e)}function jo(e){return null===e}function Fo(e){return"number"==typeof e||v(e)&&ra.call(e)==J}function Ho(e){var t;if(!v(e)||ra.call(e)!=Z||To(e)||!ta.call(e,"constructor")&&(t=e.constructor,"function"==typeof t&&!(t instanceof t)))return!1;var n;return Mt(e,function(e,t){n=t}),n===C||ta.call(e,n)}function Uo(e){return Ao(e)&&ra.call(e)==ee}function Wo(e){return"string"==typeof e||v(e)&&ra.call(e)==ne}function Go(e){return v(e)&&nr(e.length)&&!!Ue[ra.call(e)]}function qo(e){return e===C}function zo(e,t){return t>e}function Yo(e,t){return t>=e}function $o(e){var t=e?Ua(e):0;return nr(t)?t?et(e):[]:ai(e)}function Xo(e){return _t(e,ti(e))}function Qo(e,t,n){var r=Aa(e);return n&&Zn(e,t,n)&&(t=C),t?vt(r,t):r}function Ko(e){return Nt(e,ti(e))}function Jo(e,t,n){var r=null==e?C:kt(e,dr(t),t+"");return r===C?n:r}function Zo(e,t){if(null==e)return!1;var n=ta.call(e,t);if(!n&&!er(t)){if(t=dr(t),e=1==t.length?e:kt(e,$t(t,0,-1)),null==e)return!1;t=Tr(t),n=ta.call(e,t)}return n||nr(e.length)&&Jn(t,e.length)&&(xs(e)||To(e))}function ei(e,t,n){n&&Zn(e,t,n)&&(t=C);for(var r=-1,o=Fs(e),i=o.length,a={};++r<i;){var s=o[r],u=e[s];t?ta.call(a,u)?a[u].push(s):a[u]=[s]:a[u]=s}return a}function ti(e){if(null==e)return[];Ao(e)||(e=Yi(e));var t=e.length;t=t&&nr(t)&&(xs(e)||To(e))&&t||0;for(var n=e.constructor,r=-1,o="function"==typeof n&&n.prototype===e,i=Hi(t),a=t>0;++r<t;)i[r]=r+"";for(var s in e)a&&Jn(s,t)||"constructor"==s&&(o||!ta.call(e,s))||i.push(s);return i}function ni(e){e=pr(e);for(var t=-1,n=Fs(e),r=n.length,o=Hi(r);++t<r;){var i=n[t];o[t]=[i,e[i]]}return o}function ri(e,t,n){var r=null==e?C:e[t];return r===C&&(null==e||er(t,e)||(t=dr(t),e=1==t.length?e:kt(e,$t(t,0,-1)),r=null==e?C:e[Tr(t)]),r=r===C?n:r),ko(r)?r.call(e):r}function oi(e,t,n){if(null==e)return e;var r=t+"";t=null!=e[r]||er(t,e)?[r]:dr(t);for(var o=-1,i=t.length,a=i-1,s=e;null!=s&&++o<i;){var u=t[o];Ao(s)&&(o==a?s[u]=n:null==s[u]&&(s[u]=Jn(t[o+1])?[]:{})),s=s[u]}return e}function ii(e,t,n,r){var o=xs(e)||Go(e);if(t=Hn(t,r,4),null==n)if(o||Ao(e)){var i=e.constructor;n=o?xs(e)?new i:[]:Aa(ko(i)?i.prototype:C)}else n={};return(o?tt:Ot)(e,function(e,r,o){return t(n,e,r,o)}),n}function ai(e){return en(e,Fs(e))}function si(e){return en(e,ti(e))}function ui(e,t,n){return t=+t||0,n===C?(n=t,t=0):n=+n||0,e>=Ea(t,n)&&e<Ra(t,n)}function ci(e,t,n){n&&Zn(e,t,n)&&(t=n=C);var r=null==e,o=null==t;if(null==n&&(o&&"boolean"==typeof e?(n=e,e=1):"boolean"==typeof t&&(n=t,o=!0)),r&&o&&(t=1,o=!1),e=+e||0,o?(t=e,e=0):t=+t||0,n||e%1||t%1){var i=Ta();return Ea(e+i*(t-e+ua("1e-"+((i+"").length-1))),t)}return zt(e,t)}function li(e){return e=s(e),e&&e.charAt(0).toUpperCase()+e.slice(1)}function pi(e){return e=s(e),e&&e.replace(Le,d).replace(xe,"")}function di(e,t,n){e=s(e),t+="";var r=e.length;return n=n===C?r:Ea(0>n?0:+n||0,r),n-=t.length,n>=0&&e.indexOf(t,n)==n}function hi(e){return e=s(e),e&&be.test(e)?e.replace(ye,h):e}function fi(e){return e=s(e),e&&Pe.test(e)?e.replace(Ie,f):e||"(?:)"}function mi(e,t,n){e=s(e),t=+t;var r=e.length;if(r>=t||!ba(t))return e;var o=(t-r)/2,i=ya(o),a=ga(o);return n=Nn("",a,n),n.slice(0,i)+e+n}function gi(e,t,n){return(n?Zn(e,t,n):null==t)?t=0:t&&(t=+t),e=bi(e),Ca(e,t||(Ne.test(e)?16:10))}function vi(e,t){var n="";if(e=s(e),t=+t,1>t||!e||!ba(t))return n;do t%2&&(n+=e),t=ya(t/2),e+=e;while(t);return n}function yi(e,t,n){return e=s(e),n=null==n?0:Ea(0>n?0:+n||0,e.length),e.lastIndexOf(t,n)==n}function _i(e,t,n){var r=o.templateSettings;n&&Zn(e,t,n)&&(t=n=C),e=s(e),t=gt(vt({},n||t),r,mt);var i,a,u=gt(vt({},t.imports),r.imports,mt),c=Fs(u),l=en(u,c),p=0,d=t.interpolate||Ve,h="__p += '",f=$i((t.escape||Ve).source+"|"+d.source+"|"+(d===Ee?Oe:Ve).source+"|"+(t.evaluate||Ve).source+"|$","g"),g="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++He+"]")+"\n";e.replace(f,function(t,n,r,o,s,u){return r||(r=o),h+=e.slice(p,u).replace(Be,m),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),p=u+t.length,t}),h+="';\n";var v=t.variable;v||(h="with (obj) {\n"+h+"\n}\n"),h=(a?h.replace(fe,""):h).replace(me,"$1").replace(ge,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var y=Ks(function(){return Gi(c,g+"return "+h).apply(C,l)});if(y.source=h,Do(y))throw y;return y}function bi(e,t,n){var r=e;return(e=s(e))?(n?Zn(r,t,n):null==t)?e.slice(S(e),R(e)+1):(t+="",e.slice(u(e,t),c(e,t)+1)):e}function Si(e,t,n){var r=e;return e=s(e),e?(n?Zn(r,t,n):null==t)?e.slice(S(e)):e.slice(u(e,t+"")):e}function Ri(e,t,n){var r=e;return e=s(e),e?(n?Zn(r,t,n):null==t)?e.slice(0,R(e)+1):e.slice(0,c(e,t+"")+1):e}function Ei(e,t,n){n&&Zn(e,t,n)&&(t=C);var r=L,o=V;if(null!=t)if(Ao(t)){var i="separator"in t?t.separator:i;r="length"in t?+t.length||0:r,o="omission"in t?s(t.omission):o}else r=+t||0;if(e=s(e),r>=e.length)return e;var a=r-o.length;if(1>a)return o;var u=e.slice(0,a);if(null==i)return u+o;if(Uo(i)){if(e.slice(a).search(i)){var c,l,p=e.slice(0,a);for(i.global||(i=$i(i.source,(De.exec(i)||"")+"g")),i.lastIndex=0;c=i.exec(p);)l=c.index;u=u.slice(0,null==l?a:l)}}else if(e.indexOf(i,a)!=a){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+o}function wi(e){return e=s(e),e&&_e.test(e)?e.replace(ve,E):e}function Ci(e,t,n){return n&&Zn(e,t,n)&&(t=C),e=s(e),e.match(t||je)||[]}function Ti(e,t,n){return n&&Zn(e,t,n)&&(t=C),v(e)?xi(e):bt(e,t)}function Ii(e){return function(){return e}}function Pi(e){return e}function xi(e){return jt(St(e,!0))}function Mi(e,t){return Ft(e,St(t,!0))}function Oi(e,t,n){if(null==n){var r=Ao(t),o=r?Fs(t):C,i=o&&o.length?Nt(t,o):C;(i?i.length:r)||(i=!1,n=t,t=e,e=this)}i||(i=Nt(t,Fs(t)));var a=!0,s=-1,u=ko(e),c=i.length;n===!1?a=!1:Ao(n)&&"chain"in n&&(a=n.chain);for(;++s<c;){var l=i[s],p=t[l];e[l]=p,u&&(e.prototype[l]=function(t){return function(){var n=this.__chain__;if(a||n){var r=e(this.__wrapped__),o=r.__actions__=et(this.__actions__);return o.push({func:t,args:arguments,thisArg:e}),r.__chain__=n,r}return t.apply(e,ct([this.value()],arguments))}}(p))}return e}function Di(){return nt._=oa,this}function Ni(){}function ki(e){return er(e)?Wt(e):Gt(e)}function Ai(e){return function(t){return kt(e,dr(t),t+"")}}function Li(e,t,n){n&&Zn(e,t,n)&&(t=n=C),e=+e||0,n=null==n?1:+n||0,null==t?(t=e,e=0):t=+t||0;for(var r=-1,o=Ra(ga((t-e)/(n||1)),0),i=Hi(o);++r<o;)i[r]=e,e+=n;return i}function Vi(e,t,n){if(e=ya(e),1>e||!ba(e))return[];var r=-1,o=Hi(Ea(e,xa));for(t=an(t,n,1);++r<e;)xa>r?o[r]=t(r):t(r);return o}function Bi(e){var t=++na;return s(e)+t}function ji(e,t){return(+e||0)+(+t||0)}function Fi(e,t,n){return n&&Zn(e,t,n)&&(t=C),t=Hn(t,n,3),1==t.length?ht(xs(e)?e:lr(e),t):Jt(e,t)}e=e?rt.defaults(nt.Object(),e,rt.pick(nt,Fe)):nt;var Hi=e.Array,Ui=e.Date,Wi=e.Error,Gi=e.Function,qi=e.Math,zi=e.Number,Yi=e.Object,$i=e.RegExp,Xi=e.String,Qi=e.TypeError,Ki=Hi.prototype,Ji=Yi.prototype,Zi=Xi.prototype,ea=Gi.prototype.toString,ta=Ji.hasOwnProperty,na=0,ra=Ji.toString,oa=nt._,ia=$i("^"+ea.call(ta).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),aa=e.ArrayBuffer,sa=e.clearTimeout,ua=e.parseFloat,ca=qi.pow,la=Ji.propertyIsEnumerable,pa=qn(e,"Set"),da=e.setTimeout,ha=Ki.splice,fa=e.Uint8Array,ma=qn(e,"WeakMap"),ga=qi.ceil,va=qn(Yi,"create"),ya=qi.floor,_a=qn(Hi,"isArray"),ba=e.isFinite,Sa=qn(Yi,"keys"),Ra=qi.max,Ea=qi.min,wa=qn(Ui,"now"),Ca=e.parseInt,Ta=qi.random,Ia=zi.NEGATIVE_INFINITY,Pa=zi.POSITIVE_INFINITY,xa=4294967295,Ma=xa-1,Oa=xa>>>1,Da=9007199254740991,Na=ma&&new ma,ka={};o.support={};o.templateSettings={escape:Se,evaluate:Re,interpolate:Ee,variable:"",imports:{_:o}};var Aa=function(){function e(){}return function(t){if(Ao(t)){e.prototype=t;var n=new e;e.prototype=C}return n||{}}}(),La=dn(Ot),Va=dn(Dt,!0),Ba=hn(),ja=hn(!0),Fa=Na?function(e,t){return Na.set(e,t),e}:Pi,Ha=Na?function(e){return Na.get(e)}:Ni,Ua=Wt("length"),Wa=function(){var e=0,t=0;return function(n,r){var o=ms(),i=j-(o-t);if(t=o,i>0){if(++e>=B)return n}else e=0;return Fa(n,r)}}(),Ga=yo(function(e,t){return v(e)&&Kn(e)?Et(e,xt(t,!1,!0)):[]}),qa=Rn(),za=Rn(!0),Ya=yo(function(e){for(var t=e.length,n=t,o=Hi(p),i=Wn(),a=i==r,s=[];n--;){var u=e[n]=Kn(u=e[n])?u:[];o[n]=a&&u.length>=120?mn(n&&u):null}var c=e[0],l=-1,p=c?c.length:0,d=o[0];e:for(;++l<p;)if(u=c[l],(d?Ke(d,u):i(s,u,0))<0){for(var n=t;--n;){var h=o[n];if((h?Ke(h,u):i(e[n],u,0))<0)continue e}d&&d.push(u),s.push(u)}return s}),$a=yo(function(e,n){n=xt(n);var r=yt(e,n);return qt(e,n.sort(t)),r}),Xa=Ln(),Qa=Ln(!0),Ka=yo(function(e){return Zt(xt(e,!1,!0))}),Ja=yo(function(e,t){return Kn(e)?Et(e,t):[]}),Za=yo(Vr),es=yo(function(e){var t=e.length,n=t>2?e[t-2]:C,r=t>1?e[t-1]:C;return t>2&&"function"==typeof n?t-=2:(n=t>1&&"function"==typeof r?(--t,r):C,r=C),e.length=t,Br(e,n,r)}),ts=yo(function(e){return e=xt(e),this.thru(function(t){return Ze(xs(t)?t:[pr(t)],e)})}),ns=yo(function(e,t){return yt(e,xt(t))}),rs=ln(function(e,t,n){ta.call(e,n)?++e[n]:e[n]=1}),os=Sn(La),is=Sn(Va,!0),as=Cn(tt,La),ss=Cn(ot,Va),us=ln(function(e,t,n){ta.call(e,n)?e[n].push(t):e[n]=[t]}),cs=ln(function(e,t,n){e[n]=t}),ls=yo(function(e,t,n){var r=-1,o="function"==typeof t,i=er(t),a=Kn(e)?Hi(e.length):[];return La(e,function(e){var s=o?t:i&&null!=e?e[t]:C;a[++r]=s?s.apply(e,n):Qn(e,t,n)}),a}),ps=ln(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ds=On(lt,La),hs=On(pt,Va),fs=yo(function(e,t){if(null==e)return[];var n=t[2];return n&&Zn(t[0],t[1],n)&&(t.length=1),Kt(e,xt(t),[])}),ms=wa||function(){return(new Ui).getTime()},gs=yo(function(e,t,n){var r=I;if(n.length){var o=_(n,gs.placeholder);r|=D}return Vn(e,r,t,n,o)}),vs=yo(function(e,t){t=t.length?xt(t):Ko(e);for(var n=-1,r=t.length;++n<r;){var o=t[n];e[o]=Vn(e[o],I,e)}return e}),ys=yo(function(e,t,n){var r=I|P;if(n.length){var o=_(n,ys.placeholder);r|=D}return Vn(t,r,e,n,o)}),_s=yn(M),bs=yn(O),Ss=yo(function(e,t){return Rt(e,1,t)}),Rs=yo(function(e,t,n){return Rt(e,t,n)}),Es=wn(),ws=wn(!0),Cs=yo(function(e,t){if(t=xt(t),"function"!=typeof e||!it(t,a))throw new Qi(W);var n=t.length;return yo(function(r){for(var o=Ea(r.length,n);o--;)r[o]=t[o](r[o]);return e.apply(this,r)})}),Ts=Mn(D),Is=Mn(N),Ps=yo(function(e,t){return Vn(e,A,C,C,C,xt(t))}),xs=_a||function(e){return v(e)&&nr(e.length)&&ra.call(e)==z},Ms=pn(Ht),Os=pn(function(e,t,n){return n?gt(e,t,n):vt(e,t)}),Ds=_n(Os,ft),Ns=_n(Ms,ir),ks=En(Ot),As=En(Dt),Ls=Tn(Ba),Vs=Tn(ja),Bs=In(Ot),js=In(Dt),Fs=Sa?function(e){var t=null==e?C:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&Kn(e)?cr(e):Ao(e)?Sa(e):[]}:cr,Hs=Pn(!0),Us=Pn(),Ws=yo(function(e,t){if(null==e)return{};if("function"!=typeof t[0]){var t=ut(xt(t),Xi);return ar(e,Et(ti(e),t))}var n=an(t[0],t[1],3);return sr(e,function(e,t,r){return!n(e,t,r)})}),Gs=yo(function(e,t){return null==e?{}:"function"==typeof t[0]?sr(e,an(t[0],t[1],3)):ar(e,xt(t))}),qs=gn(function(e,t,n){return t=t.toLowerCase(),e+(n?t.charAt(0).toUpperCase()+t.slice(1):t)}),zs=gn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ys=xn(),$s=xn(!0),Xs=gn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Qs=gn(function(e,t,n){return e+(n?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}),Ks=yo(function(e,t){try{return e.apply(C,t)}catch(n){return Do(n)?n:new Wi(n)}}),Js=yo(function(e,t){return function(n){return Qn(n,e,t)}}),Zs=yo(function(e,t){return function(n){return Qn(e,n,t)}}),eu=An("ceil"),tu=An("floor"),nu=bn(wo,Ia),ru=bn(zo,Pa),ou=An("round");return o.prototype=i.prototype,y.prototype=Aa(i.prototype),y.prototype.constructor=y,K.prototype=Aa(i.prototype),K.prototype.constructor=K,qe.prototype["delete"]=ze,qe.prototype.get=Ye,qe.prototype.has=$e,qe.prototype.set=Xe,Qe.prototype.push=Je,mo.Cache=qe,o.after=lo,o.ary=po,o.assign=Os,o.at=ns,o.before=ho,o.bind=gs,o.bindAll=vs,o.bindKey=ys,o.callback=Ti,o.chain=Hr,o.chunk=fr,o.compact=mr,o.constant=Ii,o.countBy=rs,o.create=Qo,o.curry=_s,o.curryRight=bs,o.debounce=fo,o.defaults=Ds,o.defaultsDeep=Ns,o.defer=Ss,o.delay=Rs,o.difference=Ga,o.drop=gr,o.dropRight=vr,o.dropRightWhile=yr,o.dropWhile=_r,o.fill=br,o.filter=Kr,o.flatten=Rr,o.flattenDeep=Er,o.flow=Es,o.flowRight=ws,o.forEach=as,o.forEachRight=ss,o.forIn=Ls,o.forInRight=Vs,o.forOwn=Bs,o.forOwnRight=js,o.functions=Ko,o.groupBy=us,o.indexBy=cs,o.initial=Cr,o.intersection=Ya,o.invert=ei,o.invoke=ls,o.keys=Fs,o.keysIn=ti,o.map=eo,o.mapKeys=Hs,o.mapValues=Us,o.matches=xi,o.matchesProperty=Mi,o.memoize=mo,o.merge=Ms,o.method=Js,o.methodOf=Zs,o.mixin=Oi,o.modArgs=Cs,o.negate=go,o.omit=Ws,o.once=vo,o.pairs=ni,o.partial=Ts,o.partialRight=Is,o.partition=ps,o.pick=Gs,o.pluck=to,o.property=ki,o.propertyOf=Ai,o.pull=Pr,o.pullAt=$a,o.range=Li,o.rearg=Ps,o.reject=no,o.remove=xr,o.rest=Mr,o.restParam=yo,o.set=oi,o.shuffle=oo,o.slice=Or,o.sortBy=so,o.sortByAll=fs,o.sortByOrder=uo,o.spread=_o,o.take=Dr,o.takeRight=Nr,o.takeRightWhile=kr,o.takeWhile=Ar,o.tap=Ur,o.throttle=bo,o.thru=Wr,o.times=Vi,o.toArray=$o,o.toPlainObject=Xo,o.transform=ii,o.union=Ka,o.uniq=Lr,o.unzip=Vr,o.unzipWith=Br,o.values=ai,o.valuesIn=si,o.where=co,o.without=Ja,o.wrap=So,o.xor=jr,o.zip=Za,o.zipObject=Fr,o.zipWith=es,o.backflow=ws,o.collect=eo,o.compose=ws,o.each=as,o.eachRight=ss,o.extend=Os,o.iteratee=Ti,o.methods=Ko,o.object=Fr,o.select=Kr,o.tail=Mr,o.unique=Lr,Oi(o,o),o.add=ji,o.attempt=Ks,o.camelCase=qs,o.capitalize=li,o.ceil=eu,o.clone=Ro,o.cloneDeep=Eo,o.deburr=pi,o.endsWith=di,o.escape=hi,o.escapeRegExp=fi,o.every=Qr,o.find=os,o.findIndex=qa,o.findKey=ks,o.findLast=is,o.findLastIndex=za,o.findLastKey=As,o.findWhere=Jr,o.first=Sr,o.floor=tu,o.get=Jo,o.gt=wo,o.gte=Co,o.has=Zo,o.identity=Pi,o.includes=Zr,o.indexOf=wr,o.inRange=ui,o.isArguments=To,o.isArray=xs,o.isBoolean=Io,o.isDate=Po,o.isElement=xo,o.isEmpty=Mo,o.isEqual=Oo,o.isError=Do,o.isFinite=No,o.isFunction=ko,o.isMatch=Lo,o.isNaN=Vo,o.isNative=Bo,o.isNull=jo,o.isNumber=Fo,o.isObject=Ao,o.isPlainObject=Ho,o.isRegExp=Uo,o.isString=Wo,o.isTypedArray=Go,o.isUndefined=qo,o.kebabCase=zs,o.last=Tr,o.lastIndexOf=Ir,o.lt=zo,o.lte=Yo,o.max=nu,o.min=ru,o.noConflict=Di,o.noop=Ni,o.now=ms,o.pad=mi,o.padLeft=Ys,o.padRight=$s,o.parseInt=gi,o.random=ci,o.reduce=ds,o.reduceRight=hs,o.repeat=vi,o.result=ri,o.round=ou,o.runInContext=w,o.size=io,o.snakeCase=Xs,o.some=ao,o.sortedIndex=Xa,o.sortedLastIndex=Qa,o.startCase=Qs,o.startsWith=yi,o.sum=Fi,o.template=_i,o.trim=bi,o.trimLeft=Si,o.trimRight=Ri,o.trunc=Ei,o.unescape=wi,o.uniqueId=Bi,o.words=Ci,o.all=Qr,o.any=ao,o.contains=Zr,o.eq=Oo,o.detect=os,o.foldl=ds,o.foldr=hs,o.head=Sr,o.include=Zr,o.inject=ds,Oi(o,function(){var e={};return Ot(o,function(t,n){o.prototype[n]||(e[n]=t)}),e}(),!1),o.sample=ro,o.prototype.sample=function(e){return this.__chain__||null!=e?this.thru(function(t){return ro(t,e)}):ro(this.value())},o.VERSION=T,tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){o[e].placeholder=o}),tt(["drop","take"],function(e,t){K.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new K(this);n=null==n?1:Ra(ya(n)||0,0);var o=this.clone();return r?o.__takeCount__=Ea(o.__takeCount__,n):o.__views__.push({size:n,type:e+(o.__dir__<0?"Right":"")}),o},K.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n!=U;
K.prototype[e]=function(e,t){var o=this.clone();return o.__iteratees__.push({iteratee:Hn(e,t,1),type:n}),o.__filtered__=o.__filtered__||r,o}}),tt(["first","last"],function(e,t){var n="take"+(t?"Right":"");K.prototype[e]=function(){return this[n](1).value()[0]}}),tt(["initial","rest"],function(e,t){var n="drop"+(t?"":"Right");K.prototype[e]=function(){return this.__filtered__?new K(this):this[n](1)}}),tt(["pluck","where"],function(e,t){var n=t?"filter":"map",r=t?jt:ki;K.prototype[e]=function(e){return this[n](r(e))}}),K.prototype.compact=function(){return this.filter(Pi)},K.prototype.reject=function(e,t){return e=Hn(e,t,1),this.filter(function(t){return!e(t)})},K.prototype.slice=function(e,t){e=null==e?0:+e||0;var n=this;return n.__filtered__&&(e>0||0>t)?new K(n):(0>e?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==C&&(t=+t||0,n=0>t?n.dropRight(-t):n.take(t-e)),n)},K.prototype.takeRightWhile=function(e,t){return this.reverse().takeWhile(e,t).reverse()},K.prototype.toArray=function(){return this.take(Pa)},Ot(K.prototype,function(e,t){var n=/^(?:filter|map|reject)|While$/.test(t),r=/^(?:first|last)$/.test(t),i=o[r?"take"+("last"==t?"Right":""):t];i&&(o.prototype[t]=function(){var t=r?[1]:arguments,o=this.__chain__,a=this.__wrapped__,s=!!this.__actions__.length,u=a instanceof K,c=t[0],l=u||xs(a);l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=function(e){return r&&o?i(e,1)[0]:i.apply(C,ct([e],t))},d={func:Wr,args:[p],thisArg:C},h=u&&!s;if(r&&!o)return h?(a=a.clone(),a.__actions__.push(d),e.call(a)):i.call(C,this.value())[0];if(!r&&l){a=h?a:new K(this);var f=e.apply(a,t);return f.__actions__.push(d),new y(f,o)}return this.thru(p)})}),tt(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(e){var t=(/^(?:replace|split)$/.test(e)?Zi:Ki)[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:join|pop|replace|shift)$/.test(e);o.prototype[e]=function(){var e=arguments;return r&&!this.__chain__?t.apply(this.value(),e):this[n](function(n){return t.apply(n,e)})}}),Ot(K.prototype,function(e,t){var n=o[t];if(n){var r=n.name,i=ka[r]||(ka[r]=[]);i.push({name:t,func:n})}}),ka[Dn(C,P).name]=[{name:"wrapper",func:C}],K.prototype.clone=te,K.prototype.reverse=re,K.prototype.value=Ge,o.prototype.chain=Gr,o.prototype.commit=qr,o.prototype.concat=ts,o.prototype.plant=zr,o.prototype.reverse=Yr,o.prototype.toString=$r,o.prototype.run=o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=Xr,o.prototype.collect=o.prototype.map,o.prototype.head=o.prototype.first,o.prototype.select=o.prototype.filter,o.prototype.tail=o.prototype.rest,o}var C,T="3.10.0",I=1,P=2,x=4,M=8,O=16,D=32,N=64,k=128,A=256,L=30,V="...",B=150,j=16,F=200,H=1,U=2,W="Expected a function",G="__lodash_placeholder__",q="[object Arguments]",z="[object Array]",Y="[object Boolean]",$="[object Date]",X="[object Error]",Q="[object Function]",K="[object Map]",J="[object Number]",Z="[object Object]",ee="[object RegExp]",te="[object Set]",ne="[object String]",re="[object WeakMap]",oe="[object ArrayBuffer]",ie="[object Float32Array]",ae="[object Float64Array]",se="[object Int8Array]",ue="[object Int16Array]",ce="[object Int32Array]",le="[object Uint8Array]",pe="[object Uint8ClampedArray]",de="[object Uint16Array]",he="[object Uint32Array]",fe=/\b__p \+= '';/g,me=/\b(__p \+=) '' \+/g,ge=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ve=/&(?:amp|lt|gt|quot|#39|#96);/g,ye=/[&<>"'`]/g,_e=RegExp(ve.source),be=RegExp(ye.source),Se=/<%-([\s\S]+?)%>/g,Re=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Ie=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,Pe=RegExp(Ie.source),xe=/[\u0300-\u036f\ufe20-\ufe23]/g,Me=/\\(\\)?/g,Oe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,De=/\w*$/,Ne=/^0[xX]/,ke=/^\[object .+?Constructor\]$/,Ae=/^\d+$/,Le=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Ve=/($^)/,Be=/['\n\r\u2028\u2029\\]/g,je=function(){var e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",t="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(e+"+(?="+e+t+")|"+e+"?"+t+"|"+e+"+|[0-9]+","g")}(),Fe=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],He=-1,Ue={};Ue[ie]=Ue[ae]=Ue[se]=Ue[ue]=Ue[ce]=Ue[le]=Ue[pe]=Ue[de]=Ue[he]=!0,Ue[q]=Ue[z]=Ue[oe]=Ue[Y]=Ue[$]=Ue[X]=Ue[Q]=Ue[K]=Ue[J]=Ue[Z]=Ue[ee]=Ue[te]=Ue[ne]=Ue[re]=!1;var We={};We[q]=We[z]=We[oe]=We[Y]=We[$]=We[ie]=We[ae]=We[se]=We[ue]=We[ce]=We[J]=We[Z]=We[ee]=We[ne]=We[le]=We[pe]=We[de]=We[he]=!0,We[X]=We[Q]=We[K]=We[te]=We[re]=!1;var Ge={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},qe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},ze={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Ye={"function":!0,object:!0},$e={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Xe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qe=Ye[typeof i]&&i&&!i.nodeType&&i,Ke=Ye[typeof o]&&o&&!o.nodeType&&o,Je=Qe&&Ke&&"object"==typeof e&&e&&e.Object&&e,Ze=Ye[typeof self]&&self&&self.Object&&self,et=Ye[typeof window]&&window&&window.Object&&window,tt=Ke&&Ke.exports===Qe&&Qe,nt=Je||et!==(this&&this.window)&&et||Ze||this,rt=w();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(nt._=rt,define(function(){return rt})):Qe&&Ke?tt?(Ke.exports=rt)._=rt:Qe._=rt:nt._=rt}).call(this)}),__d("MetPro/components/ProfileScreen",["react-native/Libraries/react-native/react-native","MetPro/constants/MetproConstants","MaterialIcons","pluralize/pluralize","Dimensions","invariant","MetPro/utils/ApiUtils","MetPro/actions/UserActionCreators"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native"),s=(t("MetPro/constants/MetproConstants"),t("MaterialIcons")),u=(t("pluralize/pluralize"),t("Dimensions")),c=u.get("window"),l=c.width,p=(c.height,a.AppRegistry,a.ListView,a.TouchableHighlight),d=a.StyleSheet,h=(a.Image,a.Text),f=a.View,m=(t("invariant"),t("MetPro/utils/ApiUtils"),t("MetPro/actions/UserActionCreators")),g=a.createClass({componentWillMount:function(){},componentWillUnmount:function(){},getInitialState:function(){return{}},_onSignoutPress:function(){m.logout()},render:function(){return a.createElement(f,{style:v.container},a.createElement(f,{style:{padding:20,borderWidth:0}},a.createElement(s,{name:"person",size:75,color:"#ccc",style:v.icon})),a.createElement(p,{onPress:this._onSignoutPress},a.createElement(f,{style:{borderWidth:1,borderColor:"#dedede",width:l,padding:15,backgroundColor:"white",borderRightWidth:0,borderLeftWidth:0}},a.createElement(h,{style:{alignSelf:"center"}},"Sign out"))))}}),v=d.create({container:{flex:1,alignItems:"center",backgroundColor:"#f1f1f1"}});o.exports=g}),__d("pluralize/pluralize",[],function(e,t,n,r,o,i){!function(e,n){"function"==typeof t&&"object"==typeof i&&"object"==typeof o?o.exports=n():"function"==typeof define&&define.amd?define(function(){return n()}):e.pluralize=n()}(this,function(){function e(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}function t(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function n(t,n){return t===t.toUpperCase()?n.toUpperCase():t[0]===t[0].toUpperCase()?e(n):n.toLowerCase()}function r(e,t){return e.replace(/\$(\d{1,2})/g,function(e,n){return t[n]||""})}function o(e,t){if(!e.length||c.hasOwnProperty(e))return e;for(var o=t.length;o--;){var i=t[o];if(i[0].test(e))return e.replace(i[0],function(e,t,o){var a=r(i[1],arguments);return""===e?n(o[t-1],a):n(e,a)})}return e}function i(e,t,r){return function(i){var a=i.toLowerCase();return t.hasOwnProperty(a)?n(i,a):e.hasOwnProperty(a)?n(i,e[a]):o(i,r)}}function a(e,t,n){var r=1===t?a.singular(e):a.plural(e);return(n?t+" ":"")+r}var s=[],u=[],c={},l={},p={};return a.plural=i(p,l,s),a.singular=i(l,p,u),a.addPluralRule=function(e,n){s.push([t(e),n])},a.addSingularRule=function(e,n){u.push([t(e),n])},a.addUncountableRule=function(e){return"string"==typeof e?c[e.toLowerCase()]=!0:(a.addPluralRule(e,"$0"),void a.addSingularRule(e,"$0"))},a.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),p[e]=t,l[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["thief","thieves"],["genie","genies"],["groove","grooves"],["pickaxe","pickaxes"],["whiskey","whiskies"]].forEach(function(e){return a.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|tlas|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[emjzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|octop|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|\w+hedr)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(i)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/(m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"]].forEach(function(e){return a.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(?:sis|ses)$/i,"$1sis"],[/(^analy)(?:sis|ses)$/i,"$1sis"],[/([^aeflor])ves$/i,"$1fe"],[/(hive|tive|dr?ive)s$/i,"$1"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/([^aeiouy]|qu)ies$/i,"$1y"],[/(^[pl]|zomb|^(?:neck)?t|[aeo][lt]|cut)ies$/i,"$1ie"],[/([^c][eor]n|smil)ies$/i,"$1ey"],[/(m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|tlas|gas|(?:her|at|gr)o|ris)(?:es)?$/i,"$1"],[/(e[mn]u)s?$/i,"$1"],[/(movie|twelve)s$/i,"$1"],[/(cris|test|diagnos)(?:is|es)$/i,"$1is"],[/(alumn|syllab|octop|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|\w+hedr)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return a.addSingularRule(e[0],e[1])}),["advice","agenda","bison","bream","buffalo","carp","chassis","cod","cooperation","corps","digestion","debris","diabetes","energy","equipment","elk","excretion","expertise","flounder","gallows","graffiti","headquarters","health","herpes","highjinks","homework","information","jeans","justice","kudos","labour","machinery","mackerel","media","mews","moose","news","pike","plankton","pliers","pollution","premises","rain","rice","salmon","scissors","series","sewage","shambles","shrimp","species","staff","swine","trout","tuna","whiting","wildebeest","wildlife",/pox$/i,/ois$/i,/deer$/i,/fish$/i,/sheep$/i,/measles$/i,/[^aeiou]ese$/i].forEach(a.addUncountableRule),a})}),__d("MetPro/components/MainScreen",["react-native/Libraries/react-native/react-native","TabBar","MetPro/components/MealsScreen","MetPro/components/PhaseScreen","MetPro/components/ProfileScreen","MetPro/components/NewPhaseModal","MetPro/components/NavigationBar","MaterialIcons","moment/moment","react-native-remote-push/RemotePushIOS","MetPro/utils/Installation","Dimensions","MetPro/utils/ApiUtils"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native"),s=t("TabBar"),u=t("MetPro/components/MealsScreen"),c=t("MetPro/components/PhaseScreen"),l=t("MetPro/components/ProfileScreen"),p=t("MetPro/components/NewPhaseModal"),d=t("MetPro/components/NavigationBar"),h=t("MaterialIcons"),f=t("moment/moment"),m=t("react-native-remote-push/RemotePushIOS"),g=t("MetPro/utils/Installation"),v=t("Dimensions"),y=v.get("window"),_=y.width,b=y.height,S=t("MetPro/utils/ApiUtils"),R=a.AppStateIOS,E=(a.AppRegistry,a.TabBarIOS,a.NavigatorIOS),w=a.Navigator,C=a.StyleSheet,T=a.StatusBarIOS,I=(a.AlertIOS,a.View),P=a.createClass({componentDidMount:function(){m.requestPermissions(function(e,t){e?console.log("Could not register for push"):(console.log("Ahem"),g({deviceType:"ios",deviceToken:t.token,channels:["cheese"]}))}),m.setListenerForNotifications(this.receiveRemoteNotification),T.setStyle(1),R.addEventListener("change",this._handleAppStateChange)},componentWillUnmount:function(){R.removeEventListener("change",this._handleAppStateChange)},_handleAppStateChange:function(e){"active"==e&&(this.state.currentDate.isBefore(f(),"days")?(S.fetchCharts(),S.fetchFoods(),S.fetchMeal(),this.setState({currentAppState:e,currentDate:f()})):this.setState({currentAppState:e}))},receiveRemoteNotification:function(){S.fetchCharts(),S.fetchFoods(),S.fetchMeal(),this.setState({showNewPhaseModal:!0})},getInitialState:function(){return{selectedTab:0,currentAppState:R.currentState,showNewPhaseModal:!1,currentDate:f()}},renderScene:function(e,t){var n=e.component,r=e.navigationBar;return r&&(r=a.addons.cloneWithProps(r,{navigator:t,route:e})),a.createElement(I,{style:x.navigator},r,a.createElement(n,{navigator:t,route:e}))},selectedTab:function(e){this.setState({selectedTab:e})},render:function(){return a.createElement(I,{style:{flex:1}},a.createElement(s,{style:{flex:1},initialTab:this.state.selectedTab,selectedTab:this.selectedTab,tabBarStyle:x.tabBar,containerStyle:x.container,tabBarItemStyle:x.tabBarItem,tabBarItemSelectedStyle:x.selectedTabBarItem},a.createElement(s.Item,{icon:this._icon(0),title:"Diet Phase"},a.createElement(E,{style:x.navigation,barTintColor:"#008ad9",tintColor:"white",titleTextColor:"white",initialRoute:{title:"Diet Phase",component:u}})),a.createElement(s.Item,{icon:this._icon(1),title:"NAS Charts"},a.createElement(w,{ref:"nav",style:x.nav,renderScene:this.renderScene,configureScene:function(e){return e.sceneConfig?e.sceneConfig:w.SceneConfigs.FloatFromRight},tintColor:"#ED6063",initialRoute:{title:"NAS Charts",component:c,passProps:{}}})),a.createElement(s.Item,{icon:this._icon(2),title:"Profile"},a.createElement(w,{ref:"nav",style:x.nav,renderScene:this.renderScene,configureScene:function(e){return e.sceneConfig?e.sceneConfig:w.SceneConfigs.FloatFromRight},tintColor:"#ED6063",initialRoute:{title:"NAS Charts",component:l,navigationBar:a.createElement(d,{title:"Profile",titleColor:"white"}),passProps:{}}}))),a.createElement(p,{onSubmit:this._onSubmitFinished,isVisible:this.state.showNewPhaseModal}))},_onSubmitFinished:function(){this.setState({showNewPhaseModal:!1})},_icon:function(e){switch(e){case 0:return 0===this.state.selectedTab?a.createElement(h,{name:"local-dining",size:28,color:"#089aed",style:x.icon}):a.createElement(h,{name:"local-dining",size:28,color:"#757575",style:x.icon});case 1:return 1===this.state.selectedTab?a.createElement(h,{name:"event",size:28,color:"#089aed",style:x.icon}):a.createElement(h,{name:"event",size:28,color:"#757575",style:x.icon});case 2:return 2===this.state.selectedTab?a.createElement(h,{name:"person",size:28,color:"#089aed",style:x.icon}):a.createElement(h,{name:"person",size:28,color:"#757575",style:x.icon})}}}),x=C.create({app:{width:_,height:b},container:{width:_,flex:1,justifyContent:"flex-start",alignItems:"center",backgroundColor:"#2f3132"},navigator:{flex:1},navigation:{width:_,height:b-49,backgroundColor:"#2f3132"},tabBar:{backgroundColor:"white",bottom:0,width:_,height:49,shadowColor:"black",shadowOffset:{height:-2,width:0},shadowOpacity:.05,shadowRadius:3,flexDirection:"row",justifyContent:"center"},tabBarItem:{flex:1,alignItems:"center",justifyContent:"space-between"},selectedTabBarItem:{flex:1,backgroundColor:"#efefef",alignItems:"center",justifyContent:"space-between"},icon:{width:28,height:34,alignItems:"flex-end"}});o.exports=P}),__d("TabBar",["react-native/Libraries/react-native/react-native"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function v(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:v(o,t,n)}if("value"in r)return r.value;var i=r.get;return void 0===i?void 0:i.call(n)},p=t("react-native/Libraries/react-native/react-native"),d=p.Text,h=p.TouchableHighlight,f=p.View,m=function(e){function t(e){a(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={selectedTabIdx:e.initialTab}}return s(t,e),c(t,[{key:"render",value:function(){return p.createElement(f,{style:this.props.style},p.createElement(f,{style:this.props.containerStyle},this._renderViews()),p.createElement(f,{style:this.props.tabBarStyle},this._renderTabs()))}},{key:"_renderViews",value:function(){function e(e,t){return p.createElement(f,{key:t,style:{position:"absolute",top:0,right:0,bottom:0,left:0}},e)}var t=this,n=this.props.children.map(function(n,r){return r!=t.state.selectedTabIdx?e(n.props.children,r):void 0});return n.push(e(this.props.children[this.state.selectedTabIdx].props.children,this.state.selectedTabIdx)),n}},{key:"_renderTabs",value:function(){var e=this;return this.props.children.map(function(n,r){if(n.type===t.Item){var o={onPress:function(){return e._onTabItemPressed(r)},selected:r===e.state.selectedTabIdx,style:e.props.tabBarItemStyle,selectedStyle:e.props.tabBarItemSelectedStyle};return p.createElement(g,u({key:r},n.props,o))}})}},{key:"_onTabItemPressed",value:function(e){this.props.selectedTab(e),this.setState({selectedTabIdx:e})}}]),t}(p.Component);m.Item=function(e){var t=function(){a(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)};return s(t,e),t}(p.Component);var g=function(e){function t(){a(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return s(t,e),c(t,[{key:"render",value:function(){var e;return this.props.selected&&(e=this.props.selectedStyle),p.createElement(h,{onPress:this.props.onPress,style:{flex:1}},p.createElement(f,{style:[this.props.style,e]},this.props.icon,p.createElement(d,{style:{fontSize:11,color:"#777"}},this.props.title)))}}]),t}(p.Component);o.exports=m}),__d("MetPro/components/MealsScreen",["react-native/Libraries/react-native/react-native","MetPro/constants/MetproConstants","MaterialIcons","pluralize/pluralize","RadioGroup","Dimensions","invariant","MetPro/stores/MealStore","MetPro/utils/ApiUtils","MetPro/components/MealDetailScreen"],function(e,t,n,r,o,i){"use strict";function a(){var e=_.getMeal();return{meal:e}}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=t("react-native/Libraries/react-native/react-native"),c=(t("MetPro/constants/MetproConstants"),t("MaterialIcons")),l=t("pluralize/pluralize"),p=(t("RadioGroup"),t("Dimensions")),d=p.get("window"),h=d.width,f=(d.height,u.AppRegistry,u.ListView),m=u.TouchableHighlight,g=u.StyleSheet,v=(u.Image,u.Text),y=u.View,_=(t("invariant"),t("MetPro/stores/MealStore")),b=t("MetPro/utils/ApiUtils"),S=u.createClass({componentWillMount:function(){b.fetchMeal(),_.addChangeListener(this._onChange)},componentWillUnmount:function(){console.log("UnMounted"),_.removeChangeListener(this._onChange)},getInitialState:function(){return s({},a(),{calorie_range:"",dataSource:new f.DataSource({rowHasChanged:function(e,t){return e!==t}})})},selectMeal:function(e){var n=t("MetPro/components/MealDetailScreen");this.props.navigator.push({title:e.name,component:n,passProps:{meal:e}})},renderRow:function(e){var t=this,n=[];return e.meal_carb&&n.push(u.createElement(v,{style:R.p},"Meal Carbs ",l("serving",parseFloat(e.meal_carb),!0))),e.snack_carb&&n.push(u.createElement(v,{style:R.p},"Snack Carbs ",l("serving",parseFloat(e.snack_carb),!0))),e.vegetable_carb&&n.push(u.createElement(v,{style:R.p},"Veg. Carbs ",l("serving",parseFloat(e.vegetable_carb),!0))),e.protein&&n.push(u.createElement(v,{style:R.p},"Protein ",l("serving",parseFloat(e.protein),!0))),e.fat&&n.push(u.createElement(v,{style:R.p},"Fats ",l("serving",parseFloat(e.fat),!0))),u.createElement(m,{onPress:function(){return t.selectMeal(e)},onShowUnderlay:this.props.onHighlight,onHideUnderlay:this.props.onUnhighlight},u.createElement(y,{style:R.row},u.createElement(y,{style:R.rowContent},u.createElement(v,{style:R.h1},e.name),n),u.createElement(y,{style:R.pushArrow},u.createElement(c,{name:"navigate-next",size:28,color:"#ccc",style:R.arrow}))))},renderHeader:function(){return u.createElement(y,{style:R.header},u.createElement(v,{style:R.h1},this.state.meal.name),u.createElement(v,{style:R.p},"Calorie Range: ",this.state.meal.calorie_range),u.createElement(y,{style:R.formula},u.createElement(y,{style:[R.formulaCircle,R.protein]},u.createElement(v,{style:R.formulaTitle},this.state.meal.total_protein,u.createElement(v,{style:R.formulaPercent},"%")),u.createElement(v,{style:R.formulaType},"PROTEIN")),u.createElement(y,{style:[R.formulaCircle,R.carbs]},u.createElement(v,{style:R.formulaTitle},this.state.meal.total_carbs,u.createElement(v,{style:R.formulaPercent},"%")),u.createElement(v,{style:R.formulaType},"CARBS")),u.createElement(y,{style:[R.formulaCircle,R.fats]},u.createElement(v,{style:R.formulaTitle},this.state.meal.total_fats,u.createElement(v,{style:R.formulaPercent},"%")),u.createElement(v,{style:R.formulaType},"FATS"))))},render:function(){return u.createElement(f,{style:R.container,dataSource:this.state.dataSource,renderRow:this.renderRow,renderHeader:this.renderHeader})},_onChange:function(){var e=a();this.setState(s({},e,{dataSource:this.state.dataSource.cloneWithRows(e.meal.meals)}))}}),R=g.create({container:{flex:1},header:{padding:20,paddingBottom:25,width:h,alignItems:"center",backgroundColor:"#efefef"},tabContent:{flex:1,alignItems:"center"},h1:{fontSize:19,fontWeight:"700",marginBottom:2},p:{fontSize:15,color:"#707070",lineHeight:20},seperator:{width:h,height:2,color:"black",backgroundColor:"#dedede"},rowSeparator:{backgroundColor:"black",height:10,marginLeft:4},tabText:{color:"white",margin:50},row:{padding:10,paddingBottom:12,backgroundColor:"white",flexDirection:"row",borderBottomWidth:1,borderColor:"rgba(0,0,0, 0.11)"},rowContent:{flex:1},pushArrow:{flex:0,alignSelf:"center"},arrow:{},formula:{padding:10,height:60,width:h,backgroundColor:"transparent",flexDirection:"row",justifyContent:"center"},formulaCircle:{width:58,height:58,borderRadius:29,borderWidth:2,marginRight:5,backgroundColor:"rgba(255,255,255, 0.9)"},protein:{borderColor:"#f3af0d"},carbs:{borderColor:"#59cc13"},fats:{borderColor:"#22bff2"},formulaTitle:{marginTop:10,paddingBottom:0,fontSize:23,lineHeight:21,fontWeight:"800",textAlign:"center",containerBackgroundColor:"transparent"},formulaPercent:{color:"#666",fontSize:12,marginLeft:2,paddingBottom:5},formulaType:{fontSize:9,lineHeight:8,containerBackgroundColor:"transparent",textAlign:"center"},formulaType2:{fontSize:9,lineHeight:8,containerBackgroundColor:"transparent",textAlign:"center"}});o.exports=S}),__d("RadioGroup",["react-native/Libraries/react-native/react-native"],function(e,t,n,r,o,i){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:g(o,t,n)}if("value"in r)return r.value;var i=r.get;return void 0===i?void 0:i.call(n)},p=t("react-native/Libraries/react-native/react-native"),d=p.View,h=p.Text,f=p.TouchableHighlight,m=(p.StyleSheet,function(e){function t(e){a(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={selectedItemIdx:e.initialItem}}return s(t,e),c(t,[{key:"render",value:function(){return p.createElement(d,{style:{flex:1}},p.createElement(h,{style:this.props.titleStyle},this.props.title),p.createElement(d,{style:this.props.style},this._renderItems()))}},{key:"_renderItems",value:function(){var e=this;return this.props.children.map(function(n,r){if(n.type===t.Item){var o={onPress:function(){return e._onItemPressed(r,n.props.value)},selected:r===e.state.selectedItemIdx,style:e.props.itemStyle,labelStyle:e.props.itemLabelStyle,selectedStyle:e.props.itemSelectedStyle};return p.createElement(t.Item,u({key:r},n.props,o))}})}},{key:"_onItemPressed",value:function(e,t){console.log(t),this.props.selectedItem(t),this.setState({selectedItemIdx:e})}}]),t}(p.Component));m.Item=function(e){var t=function(){a(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)};return s(t,e),c(t,[{key:"render",value:function(){var e;return this.props.selected&&(e=this.props.selectedStyle),p.createElement(f,{style:[this.props.style,e],onPress:this.props.onPress},p.createElement(d,null,p.createElement(h,{style:this.props.labelStyle},this.props.label)))}}]),t}(p.Component),o.exports=m}),__d("MetPro/stores/MealStore",["object-assign/index","events/events","MetPro/constants/MetproConstants","MetPro/dispatcher/AppDispatcher"],function(e,t,n,r,o,i){"use strict";function a(e){h=e}var s=t("object-assign/index"),u=t("events/events").EventEmitter,c=t("MetPro/constants/MetproConstants"),l=t("MetPro/dispatcher/AppDispatcher"),p="change",d=c.ActionTypes,h={},f=s({},u.prototype,{emitChange:function(){this.emit(p)},addChangeListener:function(e){this.on(p,e)},removeChangeListener:function(e){this.removeListener(p,e)},getMeal:function(){return h}});f.dispatchToken=l.register(function(e){switch(e.type){case d.RECEIVE_MEAL:a(e.data),f.emitChange()}}),o.exports=f}),__d("MetPro/components/MealDetailScreen",["react-native/Libraries/react-native/react-native","MetPro/components/MealCarousel","Dimensions","invariant","MetPro/stores/MealStore","MetPro/stores/FoodStore","MetPro/utils/ApiUtils","MetPro/images/breakfast.png","MetPro/images/morningsnack.png","MetPro/images/lunch.png","MetPro/images/afternoonsnack.png","MetPro/images/dinner.png","MetPro/images/latenightsnack.png","MetPro/images/morningsnack.png"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native"),s=t("MetPro/components/MealCarousel"),u=t("Dimensions"),c=u.get("window"),l=c.width,p=(c.height,a.ListView),d=a.TouchableHighlight,h=a.StyleSheet,f=a.Image,m=a.Text,g=a.View,v=(t("invariant"),t("MetPro/stores/MealStore")),y=t("MetPro/stores/FoodStore"),_=t("MetPro/utils/ApiUtils"),b=a.createClass({propTypes:{meal:a.PropTypes.object.isRequired},getInitialState:function(){var e=v.getMeal(),t=y.getFilteredFoods(this.props.meal,e),n=new p.DataSource({rowHasChanged:function(e,t){return e!==t},sectionHeaderHasChanged:function(e,t){return e!==t}});return{mealPhase:e,meal:this.props.meal,dataSource:n.cloneWithRowsAndSections(t)}},componentWillMount:function(){y.addChangeListener(this._onChange),_.fetchFoods()},componentWillUnmount:function(){y.removeChangeListener(this._onChange)},renderHeader:function(){var e=this;if(0===this.state.meal.sample_diets.length)return a.createElement(g,{style:S.blank});switch(this.state.meal.name){case"Breakfast":var n=t("MetPro/images/breakfast.png");break;case"Mid-morning snack":var n=t("MetPro/images/morningsnack.png");break;case"Lunch":var n=t("MetPro/images/lunch.png");break;case"Mid-afternoon snack":var n=t("MetPro/images/afternoonsnack.png");break;case"Dinner":var n=t("MetPro/images/dinner.png");break;case"Late night snack":var n=t("MetPro/images/latenightsnack.png");break;default:var n=t("MetPro/images/morningsnack.png")}return this.state.meal.sample_diets.map(function(t){return a.createElement(s,null,a.createElement(f,{style:S.mealImage,source:n,resizeMode:f.resizeMode.stretch},a.createElement(g,{style:S.mealContainer},a.createElement(m,{style:S.sampleTitle},"Sample ",e.state.meal.name),a.createElement(m,{style:S.sample},t.content))))})},renderSectionHeader:function(e,t){var n=t.toLowerCase().replace(/ /g,"").replace(/\./g,"");return a.createElement(g,{style:[S.sectionHeader,S[n]]},a.createElement(m,{style:S.sectionHeaderText},t))},renderRow:function(e,t,n){return a.createElement(d,{key:e.id,onPress:this.props.onSelect,onShowUnderlay:this.props.onHighlight,onHideUnderlay:this.props.onUnhighlight},a.createElement(g,{style:S.row},a.createElement(g,{style:S.rowLeft},a.createElement(m,{style:S.h1},e.name),a.createElement(m,{style:S.h2},e.description)),a.createElement(m,{style:S.p},e.amount," ",e.unit)))},renderCircle:function(e,t,n){var r=e.toLowerCase();return a.createElement(g,{key:e,style:[S.formulaCircle,R[r]]},a.createElement(m,{style:S.formulaTitle},n),a.createElement(m,{style:S.formulaType},e),a.createElement(m,{style:S.formulaType2},t))},render:function(){var e=[];return this.state.meal.meal_carb&&e.push(this.renderCircle("MEAL","CARBS",this.state.meal.meal_carb)),this.state.meal.snack_carb&&e.push(this.renderCircle("SNACK","CARBS",this.state.meal.snack_carb)),
this.state.meal.vegetable_carb&&e.push(this.renderCircle("VEG","CARBS",this.state.meal.vegetable_carb)),this.state.meal.protein&&e.push(this.renderCircle("PROTEIN","",this.state.meal.protein)),this.state.meal.fat&&e.push(this.renderCircle("FATS","",this.state.meal.fat)),a.createElement(g,{style:{flex:1}},a.createElement(p,{style:S.container,dataSource:this.state.dataSource,renderRow:this.renderRow,renderHeader:this.renderHeader,renderSectionHeader:this.renderSectionHeader}),a.createElement(g,{style:S.formula},e))},_onChange:function(){var e=v.getMeal(),t=y.getFilteredFoods(this.props.meal,e);this.setState({mealPhase:e,dataSource:this.state.dataSource.cloneWithRowsAndSections(t)})}}),S=h.create({container:{flex:1},image:{flex:1,width:l,height:225},formula:{padding:6,paddingRight:2,height:60,width:l,backgroundColor:"transparent",position:"absolute",top:64,flexDirection:"row",justifyContent:"flex-end"},sample:{textAlign:"left",color:"white",marginLeft:0,fontWeight:"800",fontSize:16,lineHeight:23,shadowColor:"black",shadowOffset:{height:0,width:0},shadowOpacity:1,shadowRadius:2},sampleTitle:{textAlign:"left",marginTop:0,marginLeft:0,color:"white",fontSize:20,fontWeight:"800",marginBottom:12,shadowColor:"black",shadowOffset:{height:0,width:0},shadowOpacity:1,shadowRadius:2},mealImage:{width:l,height:250,overflow:"hidden"},mealContainer:{backgroundColor:"transparent",width:l,flex:1,padding:25,paddingTop:75,justifyContent:"flex-start",alignItems:"flex-start"},tabContent:{flex:1,alignItems:"center"},sectionHeader:{backgroundColor:"#efefef",padding:12,paddingLeft:10},sectionHeaderText:{fontSize:17,fontWeight:"600"},h1:{flex:0,alignSelf:"flex-start",fontSize:17,fontWeight:"600",marginBottom:0},h2:{fontSize:13,lineHeight:15,fontWeight:"400",marginBottom:0,color:"#777"},p:{fontSize:16,color:"#777",alignSelf:"stretch",justifyContent:"center"},seperator:{width:l,height:2,color:"black",backgroundColor:"#dedede"},rowSeparator:{backgroundColor:"black",height:10,marginLeft:4},tabText:{color:"white",margin:50},row:{padding:10,paddingRight:15,backgroundColor:"white",flexDirection:"row",borderBottomWidth:1,borderColor:"rgba(0,0,0, 0.11)"},rowLeft:{flex:1},formulaCircle:{width:56,paddingTop:2,height:56,borderRadius:28,borderWidth:2,marginRight:5,backgroundColor:"rgba(255,255,255, 0.9)"},formulaTitle:{marginTop:6,paddingBottom:0,fontSize:22,lineHeight:21,fontWeight:"800",textAlign:"center",containerBackgroundColor:"transparent"},formulaContent:{fontSize:12,containerBackgroundColor:"transparent",textAlign:"center"},formulaType:{fontSize:9,lineHeight:8,containerBackgroundColor:"transparent",textAlign:"center"},formulaType2:{fontSize:9,lineHeight:8,containerBackgroundColor:"transparent",textAlign:"center"},mealcarbs:{backgroundColor:"#7fd0cc"},snackcarbs:{backgroundColor:"#7fd0cc"},vegcarbs:{backgroundColor:"#acd037"},protein:{backgroundColor:"#f45844"},fats:{backgroundColor:"#ffab1b"}}),R=h.create({meal:{borderColor:"#7fd0cc"},snack:{borderColor:"#7fd0cc"},protein:{borderColor:"#f45844"},veg:{borderColor:"#acd037"},fats:{borderColor:"#ffab1b"}});o.exports=b}),__d("MetPro/components/MealCarousel",["react-native/Libraries/react-native/react-native","Dimensions"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native"),s=t("Dimensions"),u=s.get("window"),c=u.width,l=(u.height,a.StyleSheet),p=a.View,d=a.Text,h=a.ScrollView,f=a.createClass({getDefaultProps:function(){return{hideIndicators:!1,indicatorColor:"black",indicatorSize:30,inactiveIndicatorColor:"white",indicatorAtBottom:!0,width:c}},getInitialState:function(){return{activePage:0}},render:function(){return a.createElement(p,{style:{flex:1}},a.createElement(h,{ref:"scrollview",contentContainerStyle:m.container,automaticallyAdjustContentInsets:!1,horizontal:!0,pagingEnabled:!0,showsHorizontalScrollIndicator:!1,bounces:!1,onMomentumScrollEnd:this.onAnimationEnd},this.props.children),this.renderPageIndicator())},indicatorPressed:function(e){this.setState({activePage:e}),this.refs.scrollview.scrollTo(0,e*this.props.width)},renderPageIndicator:function(){if(this.props.hideIndicators===!0)return null;var e,t,n=[],r=this.props.indicatorAtBottom?m.pageIndicatorBottom:m.pageIndicatorTop;t={width:15*this.props.children.length},t.left=(this.props.width-t.width)/2;for(var o=0;o<this.props.children.length;o++)e=o===this.state.activePage?{color:this.props.indicatorColor}:{color:this.props.inactiveIndicatorColor},n.push(a.createElement(d,{style:[e,{fontSize:this.props.indicatorSize}],key:o,onPress:this.indicatorPressed.bind(this,o)},"•"));return a.createElement(p,{style:[m.pageIndicator,t,r]},n)},onAnimationEnd:function(e){var t=e.nativeEvent.contentOffset.x/this.props.width;this.setState({activePage:t}),this.props.onPageChange&&this.props.onPageChange(t)}}),m=l.create({container:{flex:1,justifyContent:"center"},page:{alignItems:"center",justifyContent:"center",borderWidth:1},pageIndicator:{position:"absolute",flexDirection:"row",flex:1,justifyContent:"space-around",alignItems:"center",backgroundColor:"transparent"},pageIndicatorTop:{top:20},pageIndicatorBottom:{bottom:0}});o.exports=f}),__d("MetPro/stores/FoodStore",["object-assign/index","events/events","MetPro/constants/MetproConstants","MetPro/dispatcher/AppDispatcher"],function(e,t,n,r,o,i){"use strict";function a(e){h=e}var s=t("object-assign/index"),u=t("events/events").EventEmitter,c=t("MetPro/constants/MetproConstants"),l=t("MetPro/dispatcher/AppDispatcher"),p="change",d=c.ActionTypes,h={},f=s({},u.prototype,{emitChange:function(){this.emit(p)},addChangeListener:function(e){this.on(p,e)},removeChangeListener:function(e){this.removeListener(p,e)},getFilteredFoods:function(e,t){for(var n={},r=0;r<h.length;r++)1==h[r].id&&e.meal_carb&&(n[h[r].name]=h[r].foods),2==h[r].id&&e.snack_carb&&(n[h[r].name]=h[r].foods),3==h[r].id&&e.vegetable_carb&&(n[h[r].name]=h[r].foods),4==h[r].id&&e.protein&&(n[h[r].name]=h[r].foods),5==h[r].id&&e.fat&&(n[h[r].name]=h[r].foods);return n}});f.dispatchToken=l.register(function(e){switch(e.type){case d.RECEIVE_FOODS:a(e.data),f.emitChange()}}),o.exports=f}),__d("MetPro/images/breakfast.png",[],function(e,t,n,r,o,i){o.exports=t("AssetRegistry").registerAsset({__packager_asset:!0,fileSystemLocation:"/Users/brettmorse/Apps/MetPro/images",httpServerLocation:"/assets/images",width:736,height:500,scales:[1,2,3],hash:"d7a4488e3db399cc5e174694efa6771c",name:"breakfast",type:"png"})}),__d("MetPro/images/morningsnack.png",[],function(e,t,n,r,o,i){o.exports=t("AssetRegistry").registerAsset({__packager_asset:!0,fileSystemLocation:"/Users/brettmorse/Apps/MetPro/images",httpServerLocation:"/assets/images",width:736,height:500,scales:[1],hash:"ca6a3fb67416c5b8881d8c93e736e175",name:"morningsnack",type:"png"})}),__d("MetPro/images/lunch.png",[],function(e,t,n,r,o,i){o.exports=t("AssetRegistry").registerAsset({__packager_asset:!0,fileSystemLocation:"/Users/brettmorse/Apps/MetPro/images",httpServerLocation:"/assets/images",width:736,height:500,scales:[1],hash:"14127c18b7ef4144c6f2489546a071f7",name:"lunch",type:"png"})}),__d("MetPro/images/afternoonsnack.png",[],function(e,t,n,r,o,i){o.exports=t("AssetRegistry").registerAsset({__packager_asset:!0,fileSystemLocation:"/Users/brettmorse/Apps/MetPro/images",httpServerLocation:"/assets/images",width:736,height:500,scales:[1],hash:"c6d7b3debeb1c5d24d2f30ab25a7238a",name:"afternoonsnack",type:"png"})}),__d("MetPro/images/dinner.png",[],function(e,t,n,r,o,i){o.exports=t("AssetRegistry").registerAsset({__packager_asset:!0,fileSystemLocation:"/Users/brettmorse/Apps/MetPro/images",httpServerLocation:"/assets/images",width:736,height:500,scales:[1],hash:"dd95eaacc17b3b95df6c6500745609dc",name:"dinner",type:"png"})}),__d("MetPro/images/latenightsnack.png",[],function(e,t,n,r,o,i){o.exports=t("AssetRegistry").registerAsset({__packager_asset:!0,fileSystemLocation:"/Users/brettmorse/Apps/MetPro/images",httpServerLocation:"/assets/images",width:736,height:500,scales:[1],hash:"c61e1a5d7ad82063e2761d8794e0696f",name:"latenightsnack",type:"png"})}),__d("MetPro/components/PhaseScreen",["react-native/Libraries/react-native/react-native","MetPro/constants/MetproConstants","MetPro/components/PhaseCarousel","moment/moment","MetPro/components/MealItem/index","MetPro/components/PointsItem","MetPro/components/ProfileScreen","MaterialIcons","MetPro/components/ListPopover","MetPro/components/PresubmitModal","MetPro/components/SubmittedModal","Dimensions","invariant","MetPro/utils/ApiUtils","MetPro/stores/ChartStore","MetPro/actions/PhaseActionCreators"],function(e,t,n,r,o,i){"use strict";function a(){return{charts:O.getCharts(),dates:O.getDates(),showSubmittedModal:O.getShowModal()}}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=t("react-native/Libraries/react-native/react-native"),c=t("MetPro/constants/MetproConstants"),l=t("MetPro/components/PhaseCarousel"),p=t("moment/moment"),d=t("MetPro/components/MealItem/index"),h=t("MetPro/components/PointsItem"),f=(t("MetPro/components/ProfileScreen"),t("MaterialIcons")),m=t("MetPro/components/ListPopover"),g=t("MetPro/components/PresubmitModal"),v=t("MetPro/components/SubmittedModal"),y=t("Dimensions"),_=y.get("window"),b=_.width,S=_.height,R=(u.AppStateIOS,u.TouchableHighlight),E=u.ScrollView,w=(u.Navigator,u.PixelRatio,u.StyleSheet),C=u.TextInput,T=u.Text,I=u.View,P=[{label:"No Points",value:"0"},{label:"1 Point",value:"1"},{label:"2 Points",value:"2"},{label:"3 Points",value:"3"},{label:"4 Points",value:"4"},{label:"5 Points",value:"5"},{label:"6 Points",value:"6"},{label:"7 Points",value:"7"},{label:"8 Points",value:"8"},{label:"9 Points",value:"9"},{label:"10+ Points",value:"10"},{label:"",value:"10"},{label:"",value:"10"}],x=P,M=(t("invariant"),c.ApiInfo,t("MetPro/utils/ApiUtils")),O=t("MetPro/stores/ChartStore"),D=t("MetPro/actions/PhaseActionCreators"),N=u.createClass({componentWillMount:function(){O.addChangeListener(this._onChange),M.fetchCharts()},componentWillUnmount:function(){O.removeChangeListener(this._onChange)},getInitialState:function(){return s({},a(),{currentDate:new Date,dateIdx:0,activePopover:"sugar",popupIsVisible:!1})},render:function(){var e=this;return u.createElement(I,{style:{flex:1}},u.createElement(l,{width:b,dates:this.state.dates,charts:this.state.charts,onPageChange:function(t){return e._onChartChange(t)}},this.renderDays()),this.renderPopover(),u.createElement(g,{onSubmit:this._onSubmitFinished,isVisible:this.state.showPresubmitModal}),u.createElement(v,{onSubmit:this._closeSubmittedModal,isVisible:this.state.showSubmittedModal}))},renderDays:function(){var e=this;if(0===this.state.dates.length)return u.createElement(I,{style:k.blank});var t=p(this.state.dates[0],"YYYY-MM-DD");return t.isAfter(p(),"days")?this.renderFutureDay():this.state.dates.map(function(t){var n=p(t,"YYYY-MM-DD");return n.isAfter(p(),"days")?u.createElement(I,null):e.renderDayView(t)})},renderDayView:function(e){var t=this,n=this.state.charts[e];return u.createElement(E,{key:n.entry_date,style:k.phaseCard,bounces:!1,pagingEnabled:!1},u.createElement(I,{style:k.container},u.createElement(C,{keyboardType:"decimal-pad",value:n.weight,placeholder:"Morning Weight...",placeholderTextColor:"#929292",style:k.weight,onBlur:function(e){return t._onWeightBlur(e,n.entry_date)}}),u.createElement(d,{title:"Breakfast",entryDate:n.entry_date,mealId:"m1",status:n.m1,onChange:this._onMealItemPressed}),u.createElement(d,{title:"Mid-morning Snack",entryDate:n.entry_date,mealId:"s1",status:n.s1,onChange:this._onMealItemPressed}),u.createElement(d,{title:"Lunch",entryDate:n.entry_date,mealId:"m2",status:n.m2,onChange:this._onMealItemPressed}),u.createElement(d,{title:"Afternoon Snack",entryDate:n.entry_date,mealId:"s2",status:n.s2,onChange:this._onMealItemPressed}),u.createElement(d,{title:"Dinner",entryDate:n.entry_date,mealId:"m3",status:n.m3,onChange:this._onMealItemPressed}),u.createElement(d,{title:"Late-night Snack",entryDate:n.entry_date,mealId:"s3",status:n.s3,onChange:this._onMealItemPressed}),u.createElement(h,{title:"Additional Meal Points?",points:n.add_points,onChange:function(e){return t.showPopover("sugar")}}),u.createElement(h,{title:"Alcohol Points?",points:n.alcohol_points,onChange:function(e){return t.showPopover("alcohol")}}),n.entry_date==this.state.dates[this.state.dates.length-1]?this.renderSubmitButton():null))},renderSubmitButton:function(){return u.createElement(R,{style:[k.submit],onPress:this._onSubmitPressed},u.createElement(I,null,u.createElement(T,{style:k.submitText},"Submit Results")))},renderFutureDay:function(){return u.createElement(I,{style:k.phaseCard},u.createElement(I,{style:k.futureContainer},u.createElement(f,{name:"event-note",size:48,color:"#aaa",style:k.icon}),u.createElement(T,{style:k.future},"You will see a new NAS chart tomorrow."),u.createElement(T,{style:k.futureSmall},"Continue on the same diet phase until your coach reviews your results.")))},renderPopover:function(){return u.createElement(m,{type:this.state.activePopover,list:"sugar"===this.state.activePopover?P:x,dateIdx:this.state.dateIdx,chart:this.state.charts[this.state.dateIdx],isVisible:this.state.popupIsVisible,onClick:this.setPoints,onClose:this.closePopover})},_onChartChange:function(e){this.setState({dateIdx:e})},_onSubmitPressed:function(){this.setState({dateIdx:0,showPresubmitModal:!0})},_onSubmitFinished:function(e,t){this.setState({showPresubmitModal:!1}),D.submitPhase(e,t)},_closeSubmittedModal:function(){this.setState({showSubmittedModal:!1})},_onChange:function(){this.setState(s({},a()))},_onMealItemPressed:function(e,t,n){this.state.charts[e][t]=n,this.setState({charts:this.state.charts}),D.saveMealEntry(e,t,n)},_onWeightBlur:function(e,t){D.saveWeightEntry(t,e.nativeEvent.text)},setPoints:function(e,t,n){var r=this.state.dates[this.state.dateIdx];switch(n){case"sugar":D.saveAddPoints(r,t);break;case"alcohol":D.saveAlcoholPoints(r,t)}},showPopover:function(e){this.setState({activePopover:e,popupIsVisible:!0})},closePopover:function(){this.setState({popupIsVisible:!1})},_handleAppStateChange:function(e){this.setState({currentAppState:e})}}),k=w.create({popover:{backgroundColor:"blue"},phaseCard:{flex:1,overflow:"hidden",width:b-1,marginTop:2,borderTopLeftRadius:15,borderTopRightRadius:15,backgroundColor:"white",marginRight:1},container:{width:b,justifyContent:"center",alignItems:"center",backgroundColor:"white"},futureContainer:{width:b,paddingTop:70,padding:50,justifyContent:"center",alignItems:"center",backgroundColor:"white"},future:{marginTop:15,fontSize:24,color:"#888",textAlign:"center",alignItems:"center"},futureSmall:{marginTop:25,fontSize:18,color:"#999",textAlign:"center",alignItems:"center"},submit:{width:b-50,marginTop:12,borderRadius:8,borderWidth:1,borderColor:"#ccc",height:48,bottom:0,flexDirection:"row",padding:4,marginLeft:50,marginRight:50,justifyContent:"center",alignItems:"center",marginBottom:20},submitText:{color:c.blue,fontSize:18},blank:{backgroundColor:"white",height:S,width:b,marginTop:5},addPoints:{alignSelf:"auto",alignItems:"center",justifyContent:"center",backgroundColor:"#f1f1f1",borderRadius:5,height:35,width:80,color:"#666",marginRight:0,padding:5,paddingLeft:15,marginLeft:20,marginBottom:0},dayTitle:{color:"white",fontSize:14,fontWeight:"400",lineHeight:24,marginBottom:5},pageText:{color:"white"},dayNumber:{justifyContent:"center",alignItems:"center",marginTop:0,color:"white",fontSize:22,fontWeight:"800"},today:{width:36,height:36,justifyContent:"center",alignItems:"center",backgroundColor:"#22d370",borderRadius:25},h1:{paddingTop:25,color:"white",fontSize:18,fontWeight:"800"},weight:{marginTop:18,backgroundColor:"#f1f1f1",borderRadius:5,height:40,color:"#666",marginRight:20,padding:5,paddingLeft:10,marginLeft:20,marginBottom:8,justifyContent:"center",alignItems:"center"}});o.exports=N}),__d("MetPro/components/PhaseCarousel",["react-native/Libraries/react-native/react-native","Dimensions","moment/moment"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native"),s=t("Dimensions"),u=t("moment/moment"),c=s.get("window"),l=c.width,p=(c.height,a.StyleSheet),d=a.View,h=a.Text,f=a.ScrollView,m=a.createClass({getInitialState:function(){return{activePage:0}},getDefaultProps:function(){return{indicatorColor:"#5cc4ff",indicatorSize:140}},componentWillReceiveProps:function(e){this.props.charts!==e.charts&&this.setState({activePage:0})},render:function(){return a.createElement(d,{style:[{flex:1,backgroundColor:"#008ad9"}]},this.renderPageIndicators(),a.createElement(f,{ref:"scrollview",automaticallyAdjustContentInsets:!1,contentContainerStyle:g.container,horizontal:!0,pagingEnabled:!0,keyboardDismissMode:"on-drag",showsHorizontalScrollIndicator:!1,bounces:!0,directionalLockEnabled:!0,onMomentumScrollEnd:this.onAnimationEnd},this.props.children))},renderPageIndicators:function(){var e=this,t=this.props.dates.map(function(t,n){return e.renderDay(n,t)});return a.createElement(d,{style:[g.days]},t)},renderDay:function(e,t){var n,r=this,o=u(t,"YYYY-MM-DD"),i=u(t,"YYYY-MM-DD").isSame(u(),"day");if(i)var s="Today";else var s=u(t,"YYYY-MM-DD").format("ddd");var c=u(t,"YYYY-MM-DD").format("DD");return n=e===this.state.activePage?{backgroundColor:this.props.indicatorColor}:{},o.isAfter(u(),"days")?a.createElement(d,{style:[g.day],key:t},a.createElement(h,{style:[g.dayTitle,g.futureDayTitle]},s),a.createElement(d,{style:[g.indicator,i?g.today:"",n]},a.createElement(h,{style:[g.dayNumber,g.futureDayNumber]},c))):a.createElement(d,{style:[g.day],key:t},a.createElement(h,{style:[g.dayTitle]},s),a.createElement(d,{style:[g.indicator,i?g.today:"",n]},a.createElement(h,{style:g.dayNumber,onPress:function(){return r.indicatorPressed(e)}},c)))},indicatorPressed:function(e){this.setState({activePage:e}),this.refs.scrollview.scrollTo(0,e*l)},onAnimationEnd:function(e){var t=e.nativeEvent.contentOffset.x/l;this.setState({activePage:t}),this.props.onPageChange&&this.props.onPageChange(t)}}),g=p.create({container:{flex:1,justifyContent:"center"},page:{alignItems:"center",justifyContent:"center",borderWidth:1},days:{paddingTop:16,backgroundColor:"transparent",flexDirection:"row"},day:{flex:1,justifyContent:"center",alignItems:"center",padding:10,paddingBottom:8,alignSelf:"auto",backgroundColor:"transparent"},dayTitle:{color:"white",fontSize:14,fontWeight:"400",lineHeight:22,marginBottom:2},futureDayTitle:{color:"#5ab3e6"},pageText:{color:"white"},today:{backgroundColor:"rgba(0,0,0,0.1)"},dayNumber:{containerBackgroundColor:"transparent",textAlign:"center",width:35,justifyContent:"center",alignItems:"center",marginTop:0,color:"white",fontSize:22,padding:2,paddingTop:11,paddingBottom:12,fontWeight:"800"},futureDayNumber:{color:"#5ab3e6"},todayss:{width:35,height:35,justifyContent:"center",alignItems:"center",borderColor:"#585d5e",borderWidth:2,backgroundColor:"transparent",borderRadius:17.5},pageIndicator:{lineHeight:48,position:"absolute",flexDirection:"row",flex:1,justifyContent:"space-around",alignItems:"center",backgroundColor:"transparent"},pageIndicatorTop:{top:20},pageIndicatorBottom:{top:61},indicator:{justifyContent:"center",alignItems:"center",borderRadius:18,width:36,height:36}});o.exports=m}),__d("moment/moment",[],function(e,t,n,r,o,i){!function(e,t){"object"==typeof i&&"undefined"!=typeof o?o.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function e(){return Dn.apply(null,arguments)}function n(e){Dn=e}function r(e){return"[object Array]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function a(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,r){return Ie(e,t,n,r,!0).utc()}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function p(e){return null==e._pf&&(e._pf=l()),e._pf}function d(e){if(null==e._isValid){var t=p(e);e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated,e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function h(e){var t=c(NaN);return null!=e?u(p(t),e):p(t).userInvalidated=!0,t}function f(e,t){var n,r,o;if("undefined"!=typeof t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(e._i=t._i),"undefined"!=typeof t._f&&(e._f=t._f),"undefined"!=typeof t._l&&(e._l=t._l),"undefined"!=typeof t._strict&&(e._strict=t._strict),"undefined"!=typeof t._tzm&&(e._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(e._isUTC=t._isUTC),"undefined"!=typeof t._offset&&(e._offset=t._offset),"undefined"!=typeof t._pf&&(e._pf=p(t)),"undefined"!=typeof t._locale&&(e._locale=t._locale),kn.length>0)for(n in kn)r=kn[n],o=t[r],"undefined"!=typeof o&&(e[r]=o);return e}function m(t){f(this,t),this._d=new Date(+t._d),An===!1&&(An=!0,e.updateOffset(this),An=!1)}function g(e){return e instanceof m||null!=e&&null!=e._isAMomentObject}function v(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function y(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;o>r;r++)(n&&e[r]!==t[r]||!n&&v(e[r])!==v(t[r]))&&a++;return a+i}function _(){}function b(e){return e?e.toLowerCase().replace("_","-"):e}function S(e){for(var t,n,r,o,i=0;i<e.length;){for(o=b(e[i]).split("-"),t=o.length,n=b(e[i+1]),n=n?n.split("-"):null;t>0;){if(r=R(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&y(o,n,!0)>=t-1)break;t--}i++}return null}function R(e){var n=null;if(!Ln[e]&&"undefined"!=typeof o&&o&&o.exports)try{n=Nn._abbr,t("./locale/"+e),E(n)}catch(r){}return Ln[e]}function E(e,t){var n;return e&&(n="undefined"==typeof t?C(e):w(e,t),n&&(Nn=n)),Nn._abbr}function w(e,t){return null!==t?(t.abbr=e,Ln[e]||(Ln[e]=new _),Ln[e].set(t),E(e),Ln[e]):(delete Ln[e],null)}function C(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Nn;if(!r(e)){if(t=R(e))return t;e=[e]}return S(e)}function T(e,t){var n=e.toLowerCase();Vn[n]=Vn[n+"s"]=Vn[t]=e}function I(e){return"string"==typeof e?Vn[e]||Vn[e.toLowerCase()]:void 0}function P(e){var t,n,r={};for(n in e)s(e,n)&&(t=I(n),t&&(r[t]=e[n]));return r}function x(t,n){return function(r){return null!=r?(O(this,t,r),e.updateOffset(this,n),this):M(this,t)}}function M(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function O(e,t,n){return e._d["set"+(e._isUTC?"UTC":"")+t](n)}function D(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=I(e),"function"==typeof this[e])return this[e](t);return this}function N(e,t,n){for(var r=""+Math.abs(e),o=e>=0;r.length<t;)r="0"+r;return(o?n?"+":"":"-")+r}function k(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(Hn[e]=o),t&&(Hn[t[0]]=function(){return N(o.apply(this,arguments),t[1],t[2])}),n&&(Hn[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function A(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function L(e){var t,n,r=e.match(Bn);for(t=0,n=r.length;n>t;t++)Hn[r[t]]?r[t]=Hn[r[t]]:r[t]=A(r[t]);return function(o){var i="";for(t=0;n>t;t++)i+=r[t]instanceof Function?r[t].call(o,e):r[t];return i}}function V(e,t){return e.isValid()?(t=B(t,e.localeData()),Fn[t]||(Fn[t]=L(t)),Fn[t](e)):e.localeData().invalidDate()}function B(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(jn.lastIndex=0;r>=0&&jn.test(e);)e=e.replace(jn,n),jn.lastIndex=0,r-=1;return e}function j(e,t,n){nr[e]="function"==typeof t?t:function(e){return e&&n?n:t}}function F(e,t){return s(nr,e)?nr[e](t._strict,t._locale):new RegExp(H(e))}function H(e){return e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function U(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(r=function(e,n){n[t]=v(e)}),n=0;n<e.length;n++)rr[e[n]]=r}function W(e,t){U(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function G(e,t,n){null!=t&&s(rr,e)&&rr[e](t,n._a,n,e)}function q(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function z(e){return this._months[e.month()]}function Y(e){return this._monthsShort[e.month()]}function $(e,t,n){var r,o,i;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++){if(o=c([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function X(e,t){var n;return"string"==typeof t&&(t=e.localeData().monthsParse(t),"number"!=typeof t)?e:(n=Math.min(e.date(),q(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e)}function Q(t){return null!=t?(X(this,t),e.updateOffset(this,!0),this):M(this,"Month")}function K(){return q(this.year(),this.month())}function J(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[ir]<0||n[ir]>11?ir:n[ar]<1||n[ar]>q(n[or],n[ir])?ar:n[sr]<0||n[sr]>24||24===n[sr]&&(0!==n[ur]||0!==n[cr]||0!==n[lr])?sr:n[ur]<0||n[ur]>59?ur:n[cr]<0||n[cr]>59?cr:n[lr]<0||n[lr]>999?lr:-1,p(e)._overflowDayOfYear&&(or>t||t>ar)&&(t=ar),p(e).overflow=t),e}function Z(t){e.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function ee(e,t){var n=!0,r=e+"\n"+(new Error).stack;return u(function(){return n&&(Z(r),n=!1),t.apply(this,arguments)},t)}function te(e,t){hr[e]||(Z(t),hr[e]=!0)}function ne(e){var t,n,r=e._i,o=fr.exec(r);if(o){for(p(e).iso=!0,t=0,n=mr.length;n>t;t++)if(mr[t][1].exec(r)){e._f=mr[t][0]+(o[6]||" ");break}for(t=0,n=gr.length;n>t;t++)if(gr[t][1].exec(r)){e._f+=gr[t][0];break}r.match(Zn)&&(e._f+="Z"),Se(e)}else e._isValid=!1}function re(t){var n=vr.exec(t._i);return null!==n?void(t._d=new Date(+n[1])):(ne(t),void(t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t))))}function oe(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return 1970>e&&s.setFullYear(e),s}function ie(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function ae(e){return se(e)?366:365}function se(e){return e%4===0&&e%100!==0||e%400===0}function ue(){return se(this.year())}function ce(e,t,n){var r,o=n-t,i=n-e.day();return i>o&&(i-=7),o-7>i&&(i+=7),r=Pe(e).add(i,"d"),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function le(e){return ce(e,this._week.dow,this._week.doy).week}function pe(){return this._week.dow}function de(){return this._week.doy}function he(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function fe(e){var t=ce(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function me(e,t,n,r,o){var i,a,s=ie(e,0,1).getUTCDay();return s=0===s?7:s,n=null!=n?n:o,i=o-s+(s>r?7:0)-(o>s?7:0),a=7*(t-1)+(n-o)+i+1,{year:a>0?e:e-1,dayOfYear:a>0?a:ae(e-1)+a}}function ge(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function ve(e,t,n){return null!=e?e:null!=t?t:n}function ye(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function _e(e){var t,n,r,o,i=[];if(!e._d){for(r=ye(e),e._w&&null==e._a[ar]&&null==e._a[ir]&&be(e),e._dayOfYear&&(o=ve(e._a[or],r[or]),e._dayOfYear>ae(o)&&(p(e)._overflowDayOfYear=!0),n=ie(o,0,e._dayOfYear),e._a[ir]=n.getUTCMonth(),e._a[ar]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;7>t;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[sr]&&0===e._a[ur]&&0===e._a[cr]&&0===e._a[lr]&&(e._nextDay=!0,e._a[sr]=0),e._d=(e._useUTC?ie:oe).apply(null,i),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[sr]=24)}}function be(e){var t,n,r,o,i,a,s;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(i=1,a=4,n=ve(t.GG,e._a[or],ce(Pe(),1,4).year),r=ve(t.W,1),o=ve(t.E,1)):(i=e._locale._week.dow,a=e._locale._week.doy,n=ve(t.gg,e._a[or],ce(Pe(),i,a).year),r=ve(t.w,1),null!=t.d?(o=t.d,i>o&&++r):o=null!=t.e?t.e+i:i),s=me(n,r,o,a,i),e._a[or]=s.year,e._dayOfYear=s.dayOfYear}function Se(t){if(t._f===e.ISO_8601)return void ne(t);t._a=[],p(t).empty=!0;var n,r,o,i,a,s=""+t._i,u=s.length,c=0;for(o=B(t._f,t._locale).match(Bn)||[],n=0;n<o.length;n++)i=o[n],r=(s.match(F(i,t))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&p(t).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),c+=r.length),Hn[i]?(r?p(t).empty=!1:p(t).unusedTokens.push(i),G(i,r,t)):t._strict&&!r&&p(t).unusedTokens.push(i);p(t).charsLeftOver=u-c,s.length>0&&p(t).unusedInput.push(s),p(t).bigHour===!0&&t._a[sr]<=12&&t._a[sr]>0&&(p(t).bigHour=void 0),t._a[sr]=Re(t._locale,t._a[sr],t._meridiem),_e(t),J(t)}function Re(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&12>t&&(t+=12),r||12!==t||(t=0),t):t}function Ee(e){var t,n,r,o,i;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)i=0,t=f({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Se(t),d(t)&&(i+=p(t).charsLeftOver,i+=10*p(t).unusedTokens.length,p(t).score=i,(null==r||r>i)&&(r=i,n=t));u(e,n||t)}function we(e){if(!e._d){var t=P(e._i);e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],_e(e)}}function Ce(e){var t,n=e._i,o=e._f;return e._locale=e._locale||C(e._l),null===n||void 0===o&&""===n?h({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),g(n)?new m(J(n)):(r(o)?Ee(e):o?Se(e):i(n)?e._d=n:Te(e),t=new m(J(e)),t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t))}function Te(t){var n=t._i;void 0===n?t._d=new Date:i(n)?t._d=new Date(+n):"string"==typeof n?re(t):r(n)?(t._a=a(n.slice(0),function(e){return parseInt(e,10)}),_e(t)):"object"==typeof n?we(t):"number"==typeof n?t._d=new Date(n):e.createFromInputFallback(t)}function Ie(e,t,n,r,o){var i={};return"boolean"==typeof n&&(r=n,n=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=n,i._i=e,i._f=t,i._strict=r,Ce(i)}function Pe(e,t,n,r){return Ie(e,t,n,r,!1)}function xe(e,t){var n,o;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Pe();for(n=t[0],o=1;o<t.length;++o)t[o][e](n)&&(n=t[o]);return n}function Me(){var e=[].slice.call(arguments,0);return xe("isBefore",e)}function Oe(){var e=[].slice.call(arguments,0);return xe("isAfter",e)}function De(e){var t=P(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||0,a=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._milliseconds=+l+1e3*c+6e4*u+36e5*s,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=C(),this._bubble()}function Ne(e){return e instanceof De}function ke(e,t){k(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)})}function Ae(e){var t=(e||"").match(Zn)||[],n=t[t.length-1]||[],r=(n+"").match(Rr)||["-",0,0],o=+(60*r[1])+v(r[2]);return"+"===r[0]?o:-o}function Le(t,n){var r,o;return n._isUTC?(r=n.clone(),o=(g(t)||i(t)?+t:+Pe(t))-+r,r._d.setTime(+r._d+o),e.updateOffset(r,!1),r):Pe(t).local()}function Ve(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Be(t,n){var r,o=this._offset||0;return null!=t?("string"==typeof t&&(t=Ae(t)),Math.abs(t)<16&&(t=60*t),!this._isUTC&&n&&(r=Ve(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),
o!==t&&(!n||this._changeInProgress?et(this,Xe(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?o:Ve(this)}function je(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Fe(e){return this.utcOffset(0,e)}function He(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ve(this),"m")),this}function Ue(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ae(this._i)),this}function We(e){return e=e?Pe(e).utcOffset():0,(this.utcOffset()-e)%60===0}function Ge(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qe(){if(this._a){var e=this._isUTC?c(this._a):Pe(this._a);return this.isValid()&&y(this._a,e.toArray())>0}return!1}function ze(){return!this._isUTC}function Ye(){return this._isUTC}function $e(){return this._isUTC&&0===this._offset}function Xe(e,t){var n,r,o,i=e,a=null;return Ne(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(i={},t?i[t]=e:i.milliseconds=e):(a=Er.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:v(a[ar])*n,h:v(a[sr])*n,m:v(a[ur])*n,s:v(a[cr])*n,ms:v(a[lr])*n}):(a=wr.exec(e))?(n="-"===a[1]?-1:1,i={y:Qe(a[2],n),M:Qe(a[3],n),d:Qe(a[4],n),h:Qe(a[5],n),m:Qe(a[6],n),s:Qe(a[7],n),w:Qe(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=Je(Pe(i.from),Pe(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),r=new De(i),Ne(e)&&s(e,"_locale")&&(r._locale=e._locale),r}function Qe(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ke(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Je(e,t){var n;return t=Le(t,e),e.isBefore(t)?n=Ke(e,t):(n=Ke(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function Ze(e,t){return function(n,r){var o,i;return null===r||isNaN(+r)||(te(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),i=n,n=r,r=i),n="string"==typeof n?+n:n,o=Xe(n,r),et(this,o,e),this}}function et(t,n,r,o){var i=n._milliseconds,a=n._days,s=n._months;o=null==o?!0:o,i&&t._d.setTime(+t._d+i*r),a&&O(t,"Date",M(t,"Date")+a*r),s&&X(t,M(t,"Month")+s*r),o&&e.updateOffset(t,a||s)}function tt(e){var t=e||Pe(),n=Le(t,this).startOf("day"),r=this.diff(n,"days",!0),o=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse";return this.format(this.localeData().calendar(o,this,Pe(t)))}function nt(){return new m(this)}function rt(e,t){var n;return t=I("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=g(e)?e:Pe(e),+this>+e):(n=g(e)?+e:+Pe(e),n<+this.clone().startOf(t))}function ot(e,t){var n;return t=I("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=g(e)?e:Pe(e),+e>+this):(n=g(e)?+e:+Pe(e),+this.clone().endOf(t)<n)}function it(e,t,n){return this.isAfter(e,n)&&this.isBefore(t,n)}function at(e,t){var n;return t=I(t||"millisecond"),"millisecond"===t?(e=g(e)?e:Pe(e),+this===+e):(n=+Pe(e),+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))}function st(e){return 0>e?Math.ceil(e):Math.floor(e)}function ut(e,t,n){var r,o,i=Le(e,this),a=6e4*(i.utcOffset()-this.utcOffset());return t=I(t),"year"===t||"month"===t||"quarter"===t?(o=ct(this,i),"quarter"===t?o/=3:"year"===t&&(o/=12)):(r=this-i,o="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-a)/864e5:"week"===t?(r-a)/6048e5:r),n?o:st(o)}function ct(e,t){var n,r,o=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(o,"months");return 0>t-i?(n=e.clone().add(o-1,"months"),r=(t-i)/(i-n)):(n=e.clone().add(o+1,"months"),r=(t-i)/(n-i)),-(o+r)}function lt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function pt(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():V(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):V(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function dt(t){var n=V(this,t||e.defaultFormat);return this.localeData().postformat(n)}function ht(e,t){return this.isValid()?Xe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ft(e){return this.from(Pe(),e)}function mt(e,t){return this.isValid()?Xe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gt(e){return this.to(Pe(),e)}function vt(e){var t;return void 0===e?this._locale._abbr:(t=C(e),null!=t&&(this._locale=t),this)}function yt(){return this._locale}function _t(e){switch(e=I(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function bt(e){return e=I(e),void 0===e||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")}function St(){return+this._d-6e4*(this._offset||0)}function Rt(){return Math.floor(+this/1e3)}function Et(){return this._offset?new Date(+this):this._d}function wt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ct(){return d(this)}function Tt(){return u({},p(this))}function It(){return p(this).overflow}function Pt(e,t){k(0,[e,e.length],0,t)}function xt(e,t,n){return ce(Pe([e,11,31+t-n]),t,n).week}function Mt(e){var t=ce(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")}function Ot(e){var t=ce(this,1,4).year;return null==e?t:this.add(e-t,"y")}function Dt(){return xt(this.year(),1,4)}function Nt(){var e=this.localeData()._week;return xt(this.year(),e.dow,e.doy)}function kt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function At(e,t){if("string"==typeof e)if(isNaN(e)){if(e=t.weekdaysParse(e),"number"!=typeof e)return null}else e=parseInt(e,10);return e}function Lt(e){return this._weekdays[e.day()]}function Vt(e){return this._weekdaysShort[e.day()]}function Bt(e){return this._weekdaysMin[e.day()]}function jt(e){var t,n,r;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;7>t;t++)if(this._weekdaysParse[t]||(n=Pe([2e3,1]).day(t),r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t}function Ft(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=At(e,this.localeData()),this.add(e-t,"d")):t}function Ht(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ut(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)}function Wt(e,t){k(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Gt(e,t){return t._meridiemParse}function qt(e){return"p"===(e+"").toLowerCase().charAt(0)}function zt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Yt(e){k(0,[e,3],0,"millisecond")}function $t(){return this._isUTC?"UTC":""}function Xt(){return this._isUTC?"Coordinated Universal Time":""}function Qt(e){return Pe(1e3*e)}function Kt(){return Pe.apply(null,arguments).parseZone()}function Jt(e,t,n){var r=this._calendar[e];return"function"==typeof r?r.call(t,n):r}function Zt(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t}function en(){return this._invalidDate}function tn(e){return this._ordinal.replace("%d",e)}function nn(e){return e}function rn(e,t,n,r){var o=this._relativeTime[n];return"function"==typeof o?o(e,t,n,r):o.replace(/%d/i,e)}function on(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)}function an(e){var t,n;for(n in e)t=e[n],"function"==typeof t?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function sn(e,t,n,r){var o=C(),i=c().set(r,t);return o[n](i,e)}function un(e,t,n,r,o){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return sn(e,t,n,o);var i,a=[];for(i=0;r>i;i++)a[i]=sn(e,i,n,o);return a}function cn(e,t){return un(e,t,"months",12,"month")}function ln(e,t){return un(e,t,"monthsShort",12,"month")}function pn(e,t){return un(e,t,"weekdays",7,"day")}function dn(e,t){return un(e,t,"weekdaysShort",7,"day")}function hn(e,t){return un(e,t,"weekdaysMin",7,"day")}function fn(){var e=this._data;return this._milliseconds=zr(this._milliseconds),this._days=zr(this._days),this._months=zr(this._months),e.milliseconds=zr(e.milliseconds),e.seconds=zr(e.seconds),e.minutes=zr(e.minutes),e.hours=zr(e.hours),e.months=zr(e.months),e.years=zr(e.years),this}function mn(e,t,n,r){var o=Xe(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function gn(e,t){return mn(this,e,t,1)}function vn(e,t){return mn(this,e,t,-1)}function yn(){var e,t,n,r=this._milliseconds,o=this._days,i=this._months,a=this._data,s=0;return a.milliseconds=r%1e3,e=st(r/1e3),a.seconds=e%60,t=st(e/60),a.minutes=t%60,n=st(t/60),a.hours=n%24,o+=st(n/24),s=st(_n(o)),o-=st(bn(s)),i+=st(o/30),o%=30,s+=st(i/12),i%=12,a.days=o,a.months=i,a.years=s,this}function _n(e){return 400*e/146097}function bn(e){return 146097*e/400}function Sn(e){var t,n,r=this._milliseconds;if(e=I(e),"month"===e||"year"===e)return t=this._days+r/864e5,n=this._months+12*_n(t),"month"===e?n:n/12;switch(t=this._days+Math.round(bn(this._months/12)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Rn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12)}function En(e){return function(){return this.as(e)}}function wn(e){return e=I(e),this[e+"s"]()}function Cn(e){return function(){return this._data[e]}}function Tn(){return st(this.days()/7)}function In(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function Pn(e,t,n){var r=Xe(e).abs(),o=uo(r.as("s")),i=uo(r.as("m")),a=uo(r.as("h")),s=uo(r.as("d")),u=uo(r.as("M")),c=uo(r.as("y")),l=o<co.s&&["s",o]||1===i&&["m"]||i<co.m&&["mm",i]||1===a&&["h"]||a<co.h&&["hh",a]||1===s&&["d"]||s<co.d&&["dd",s]||1===u&&["M"]||u<co.M&&["MM",u]||1===c&&["y"]||["yy",c];return l[2]=t,l[3]=+e>0,l[4]=n,In.apply(null,l)}function xn(e,t){return void 0===co[e]?!1:void 0===t?co[e]:(co[e]=t,!0)}function Mn(e){var t=this.localeData(),n=Pn(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function On(){var e=lo(this.years()),t=lo(this.months()),n=lo(this.days()),r=lo(this.hours()),o=lo(this.minutes()),i=lo(this.seconds()+this.milliseconds()/1e3),a=this.asSeconds();return a?(0>a?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(r||o||i?"T":"")+(r?r+"H":"")+(o?o+"M":"")+(i?i+"S":""):"P0D"}var Dn,Nn,kn=e.momentProperties=[],An=!1,Ln={},Vn={},Bn=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,jn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Fn={},Hn={},Un=/\d/,Wn=/\d\d/,Gn=/\d{3}/,qn=/\d{4}/,zn=/[+-]?\d{6}/,Yn=/\d\d?/,$n=/\d{1,3}/,Xn=/\d{1,4}/,Qn=/[+-]?\d{1,6}/,Kn=/\d+/,Jn=/[+-]?\d+/,Zn=/Z|[+-]\d\d:?\d\d/gi,er=/[+-]?\d+(\.\d{1,3})?/,tr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,nr={},rr={},or=0,ir=1,ar=2,sr=3,ur=4,cr=5,lr=6;k("M",["MM",2],"Mo",function(){return this.month()+1}),k("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),k("MMMM",0,0,function(e){return this.localeData().months(this,e)}),T("month","M"),j("M",Yn),j("MM",Yn,Wn),j("MMM",tr),j("MMMM",tr),U(["M","MM"],function(e,t){t[ir]=v(e)-1}),U(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[ir]=o:p(n).invalidMonth=e});var pr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),dr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),hr={};e.suppressDeprecationWarnings=!1;var fr=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],gr=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],vr=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=ee("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),k(0,["YY",2],0,function(){return this.year()%100}),k(0,["YYYY",4],0,"year"),k(0,["YYYYY",5],0,"year"),k(0,["YYYYYY",6,!0],0,"year"),T("year","y"),j("Y",Jn),j("YY",Yn,Wn),j("YYYY",Xn,qn),j("YYYYY",Qn,zn),j("YYYYYY",Qn,zn),U(["YYYY","YYYYY","YYYYYY"],or),U("YY",function(t,n){n[or]=e.parseTwoDigitYear(t)}),e.parseTwoDigitYear=function(e){return v(e)+(v(e)>68?1900:2e3)};var yr=x("FullYear",!1);k("w",["ww",2],"wo","week"),k("W",["WW",2],"Wo","isoWeek"),T("week","w"),T("isoWeek","W"),j("w",Yn),j("ww",Yn,Wn),j("W",Yn),j("WW",Yn,Wn),W(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=v(e)});var _r={dow:0,doy:6};k("DDD",["DDDD",3],"DDDo","dayOfYear"),T("dayOfYear","DDD"),j("DDD",$n),j("DDDD",Gn),U(["DDD","DDDD"],function(e,t,n){n._dayOfYear=v(e)}),e.ISO_8601=function(){};var br=ee("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=Pe.apply(null,arguments);return this>e?this:e}),Sr=ee("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=Pe.apply(null,arguments);return e>this?this:e});ke("Z",":"),ke("ZZ",""),j("Z",Zn),j("ZZ",Zn),U(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ae(e)});var Rr=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Er=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,wr=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Xe.fn=De.prototype;var Cr=Ze(1,"add"),Tr=Ze(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Ir=ee("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});k(0,["gg",2],0,function(){return this.weekYear()%100}),k(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Pt("gggg","weekYear"),Pt("ggggg","weekYear"),Pt("GGGG","isoWeekYear"),Pt("GGGGG","isoWeekYear"),T("weekYear","gg"),T("isoWeekYear","GG"),j("G",Jn),j("g",Jn),j("GG",Yn,Wn),j("gg",Yn,Wn),j("GGGG",Xn,qn),j("gggg",Xn,qn),j("GGGGG",Qn,zn),j("ggggg",Qn,zn),W(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=v(e)}),W(["gg","GG"],function(t,n,r,o){n[o]=e.parseTwoDigitYear(t)}),k("Q",0,0,"quarter"),T("quarter","Q"),j("Q",Un),U("Q",function(e,t){t[ir]=3*(v(e)-1)}),k("D",["DD",2],"Do","date"),T("date","D"),j("D",Yn),j("DD",Yn,Wn),j("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),U(["D","DD"],ar),U("Do",function(e,t){t[ar]=v(e.match(Yn)[0],10)});var Pr=x("Date",!0);k("d",0,"do","day"),k("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),k("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),k("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),k("e",0,0,"weekday"),k("E",0,0,"isoWeekday"),T("day","d"),T("weekday","e"),T("isoWeekday","E"),j("d",Yn),j("e",Yn),j("E",Yn),j("dd",tr),j("ddd",tr),j("dddd",tr),W(["dd","ddd","dddd"],function(e,t,n){var r=n._locale.weekdaysParse(e);null!=r?t.d=r:p(n).invalidWeekday=e}),W(["d","e","E"],function(e,t,n,r){t[r]=v(e)});var xr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Mr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Or="Su_Mo_Tu_We_Th_Fr_Sa".split("_");k("H",["HH",2],0,"hour"),k("h",["hh",2],0,function(){return this.hours()%12||12}),Wt("a",!0),Wt("A",!1),T("hour","h"),j("a",Gt),j("A",Gt),j("H",Yn),j("h",Yn),j("HH",Yn,Wn),j("hh",Yn,Wn),U(["H","HH"],sr),U(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),U(["h","hh"],function(e,t,n){t[sr]=v(e),p(n).bigHour=!0});var Dr=/[ap]\.?m?\.?/i,Nr=x("Hours",!0);k("m",["mm",2],0,"minute"),T("minute","m"),j("m",Yn),j("mm",Yn,Wn),U(["m","mm"],ur);var kr=x("Minutes",!1);k("s",["ss",2],0,"second"),T("second","s"),j("s",Yn),j("ss",Yn,Wn),U(["s","ss"],cr);var Ar=x("Seconds",!1);k("S",0,0,function(){return~~(this.millisecond()/100)}),k(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Yt("SSS"),Yt("SSSS"),T("millisecond","ms"),j("S",$n,Un),j("SS",$n,Wn),j("SSS",$n,Gn),j("SSSS",Kn),U(["S","SS","SSS","SSSS"],function(e,t){t[lr]=v(1e3*("0."+e))});var Lr=x("Milliseconds",!1);k("z",0,0,"zoneAbbr"),k("zz",0,0,"zoneName");var Vr=m.prototype;Vr.add=Cr,Vr.calendar=tt,Vr.clone=nt,Vr.diff=ut,Vr.endOf=bt,Vr.format=dt,Vr.from=ht,Vr.fromNow=ft,Vr.to=mt,Vr.toNow=gt,Vr.get=D,Vr.invalidAt=It,Vr.isAfter=rt,Vr.isBefore=ot,Vr.isBetween=it,Vr.isSame=at,Vr.isValid=Ct,Vr.lang=Ir,Vr.locale=vt,Vr.localeData=yt,Vr.max=Sr,Vr.min=br,Vr.parsingFlags=Tt,Vr.set=D,Vr.startOf=_t,Vr.subtract=Tr,Vr.toArray=wt,Vr.toDate=Et,Vr.toISOString=pt,Vr.toJSON=pt,Vr.toString=lt,Vr.unix=Rt,Vr.valueOf=St,Vr.year=yr,Vr.isLeapYear=ue,Vr.weekYear=Mt,Vr.isoWeekYear=Ot,Vr.quarter=Vr.quarters=kt,Vr.month=Q,Vr.daysInMonth=K,Vr.week=Vr.weeks=he,Vr.isoWeek=Vr.isoWeeks=fe,Vr.weeksInYear=Nt,Vr.isoWeeksInYear=Dt,Vr.date=Pr,Vr.day=Vr.days=Ft,Vr.weekday=Ht,Vr.isoWeekday=Ut,Vr.dayOfYear=ge,Vr.hour=Vr.hours=Nr,Vr.minute=Vr.minutes=kr,Vr.second=Vr.seconds=Ar,Vr.millisecond=Vr.milliseconds=Lr,Vr.utcOffset=Be,Vr.utc=Fe,Vr.local=He,Vr.parseZone=Ue,Vr.hasAlignedHourOffset=We,Vr.isDST=Ge,Vr.isDSTShifted=qe,Vr.isLocal=ze,Vr.isUtcOffset=Ye,Vr.isUtc=$e,Vr.isUTC=$e,Vr.zoneAbbr=$t,Vr.zoneName=Xt,Vr.dates=ee("dates accessor is deprecated. Use date instead.",Pr),Vr.months=ee("months accessor is deprecated. Use month instead",Q),Vr.years=ee("years accessor is deprecated. Use year instead",yr),Vr.zone=ee("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",je);var Br=Vr,jr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Fr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},Hr="Invalid date",Ur="%d",Wr=/\d{1,2}/,Gr={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},qr=_.prototype;qr._calendar=jr,qr.calendar=Jt,qr._longDateFormat=Fr,qr.longDateFormat=Zt,qr._invalidDate=Hr,qr.invalidDate=en,qr._ordinal=Ur,qr.ordinal=tn,qr._ordinalParse=Wr,qr.preparse=nn,qr.postformat=nn,qr._relativeTime=Gr,qr.relativeTime=rn,qr.pastFuture=on,qr.set=an,qr.months=z,qr._months=pr,qr.monthsShort=Y,qr._monthsShort=dr,qr.monthsParse=$,qr.week=le,qr._week=_r,qr.firstDayOfYear=de,qr.firstDayOfWeek=pe,qr.weekdays=Lt,qr._weekdays=xr,qr.weekdaysMin=Bt,qr._weekdaysMin=Or,qr.weekdaysShort=Vt,qr._weekdaysShort=Mr,qr.weekdaysParse=jt,qr.isPM=qt,qr._meridiemParse=Dr,qr.meridiem=zt,E("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===v(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),e.lang=ee("moment.lang is deprecated. Use moment.locale instead.",E),e.langData=ee("moment.langData is deprecated. Use moment.localeData instead.",C);var zr=Math.abs,Yr=En("ms"),$r=En("s"),Xr=En("m"),Qr=En("h"),Kr=En("d"),Jr=En("w"),Zr=En("M"),eo=En("y"),to=Cn("milliseconds"),no=Cn("seconds"),ro=Cn("minutes"),oo=Cn("hours"),io=Cn("days"),ao=Cn("months"),so=Cn("years"),uo=Math.round,co={s:45,m:45,h:22,d:26,M:11},lo=Math.abs,po=De.prototype;po.abs=fn,po.add=gn,po.subtract=vn,po.as=Sn,po.asMilliseconds=Yr,po.asSeconds=$r,po.asMinutes=Xr,po.asHours=Qr,po.asDays=Kr,po.asWeeks=Jr,po.asMonths=Zr,po.asYears=eo,po.valueOf=Rn,po._bubble=yn,po.get=wn,po.milliseconds=to,po.seconds=no,po.minutes=ro,po.hours=oo,po.days=io,po.weeks=Tn,po.months=ao,po.years=so,po.humanize=Mn,po.toISOString=On,po.toString=On,po.toJSON=On,po.locale=vt,po.localeData=yt,po.toIsoString=ee("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",On),po.lang=Ir,k("X",0,0,"unix"),k("x",0,0,"valueOf"),j("x",Jn),j("X",er),U("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),U("x",function(e,t,n){n._d=new Date(v(e))}),e.version="2.10.3",n(Pe),e.fn=Br,e.min=Me,e.max=Oe,e.utc=c,e.unix=Qt,e.months=cn,e.isDate=i,e.locale=E,e.invalid=h,e.duration=Xe,e.isMoment=g,e.weekdays=pn,e.parseZone=Kt,e.localeData=C,e.isDuration=Ne,e.monthsShort=ln,e.weekdaysMin=hn,e.defineLocale=w,e.weekdaysShort=dn,e.normalizeUnits=I,e.relativeTimeThreshold=xn;var ho=e;return ho})}),__d("MetPro/components/MealItem/index",["react-native/Libraries/react-native/react-native","MetPro/constants/MetproConstants","MaterialIcons","Dimensions","MetPro/components/MealItem/images/xOn.png","MetPro/components/MealItem/images/xDefault.png","MetPro/components/MealItem/images/checkOn.png","MetPro/components/MealItem/images/checkDefault.png"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native"),s=t("MetPro/constants/MetproConstants"),u=(t("MaterialIcons"),t("Dimensions")),c=u.get("window"),l=c.width,p=(c.height,a.TouchableHighlight,a.TouchableOpacity),d=(a.PixelRatio,a.StyleSheet),h=(a.TextInput,a.Image),f=a.Text,m=a.View,g=0,v=1,y=2,_=a.createClass({propTypes:{onChange:a.PropTypes.func},statusToEnum:function(){var e=g;return this.props.status===!1?e=v:this.props.status===!0&&(e=y),e},render:function(){var e=this,n=function(){return e.statusToEnum()===v?a.createElement(h,{style:b.no,source:t("MetPro/components/MealItem/images/xOn.png")}):e.statusToEnum()===y||e.statusToEnum()===g?a.createElement(h,{style:b.no,source:t("MetPro/components/MealItem/images/xDefault.png")}):void assert(!1,"Invalid state.")}(),r=function(){return e.statusToEnum()===y?a.createElement(h,{source:t("MetPro/components/MealItem/images/checkOn.png")}):e.statusToEnum()===v||e.statusToEnum()===g?a.createElement(h,{source:t("MetPro/components/MealItem/images/checkDefault.png")}):void assert(!1,"Invalid state.")}();return a.createElement(m,{style:b.meal},a.createElement(f,{style:b.titleText},this.props.title),a.createElement(p,{onPress:this._onNoPressed},n),a.createElement(p,{onPress:this._onYesPressed},r))},_onNoPressed:function(){this.props.onChange(this.props.entryDate,this.props.mealId,!1)},_onYesPressed:function(){this.props.onChange(this.props.entryDate,this.props.mealId,!0)}}),b=(s.green,s.red,d.create({container:{width:l,top:0,justifyContent:"flex-start",alignItems:"center",backgroundColor:"white"},activeOn:{backgroundColor:s.green},activeOff:{backgroundColor:s.red},meal:{marginTop:0,width:l-40,flexDirection:"row",padding:4,marginLeft:50,marginRight:50,backgroundColor:"white"},titleText:{marginTop:8,fontSize:18,color:"#3f3f3f",fontWeight:"500",alignSelf:"flex-start",justifyContent:"flex-start",flex:1},icon:{containerBackgroundColor:"transparent"},yes:{alignSelf:"auto",alignItems:"center",justifyContent:"center",width:38,height:38},yesOn:{},no:{marginRight:5},noOn:{},containerFuture:{backgroundColor:"#fefefe"},dayTitle:{color:"white",fontSize:14,fontWeight:"400",lineHeight:24,marginBottom:5},pageText:{color:"white"},dayNumber:{justifyContent:"center",alignItems:"center",marginTop:0,color:"white",fontSize:22,fontWeight:"800"},today:{width:36,height:36,justifyContent:"center",alignItems:"center",backgroundColor:"#22d370",borderRadius:12.5},h1:{paddingTop:25,color:"white",fontSize:18,fontWeight:"800"},weight:{marginTop:0,backgroundColor:"#f1f1f1",borderRadius:2.5,height:40,color:"#666",marginRight:20,padding:5,paddingLeft:10,marginLeft:20,marginBottom:8,justifyContent:"center",alignItems:"center"}}));o.exports=_}),__d("MetPro/components/MealItem/images/xOn.png",[],function(e,t,n,r,o,i){o.exports=t("AssetRegistry").registerAsset({__packager_asset:!0,fileSystemLocation:"/Users/brettmorse/Apps/MetPro/components/MealItem/images",httpServerLocation:"/assets/components/MealItem/images",width:38,height:38,scales:[1,2,3],hash:"dc22cf4cbeb8bad57523e59bff3b8722",name:"xOn",type:"png"})}),__d("MetPro/components/MealItem/images/xDefault.png",[],function(e,t,n,r,o,i){o.exports=t("AssetRegistry").registerAsset({__packager_asset:!0,fileSystemLocation:"/Users/brettmorse/Apps/MetPro/components/MealItem/images",httpServerLocation:"/assets/components/MealItem/images",width:38,height:38,scales:[1,2,3],hash:"dc22cf4cbeb8bad57523e59bff3b8722",name:"xDefault",type:"png"})}),__d("MetPro/components/MealItem/images/checkOn.png",[],function(e,t,n,r,o,i){o.exports=t("AssetRegistry").registerAsset({__packager_asset:!0,fileSystemLocation:"/Users/brettmorse/Apps/MetPro/components/MealItem/images",httpServerLocation:"/assets/components/MealItem/images",width:38,height:38,scales:[1,2,3],hash:"dc22cf4cbeb8bad57523e59bff3b8722",name:"checkOn",type:"png"})}),__d("MetPro/components/MealItem/images/checkDefault.png",[],function(e,t,n,r,o,i){o.exports=t("AssetRegistry").registerAsset({__packager_asset:!0,fileSystemLocation:"/Users/brettmorse/Apps/MetPro/components/MealItem/images",httpServerLocation:"/assets/components/MealItem/images",width:38,height:38,scales:[1,2,3],hash:"dc22cf4cbeb8bad57523e59bff3b8722",name:"checkDefault",type:"png"})}),__d("MetPro/components/PointsItem",["react-native/Libraries/react-native/react-native","MetPro/constants/MetproConstants","MaterialIcons","Dimensions","MetPro/components/MealItem/images/blank.png"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native"),s=(t("MetPro/constants/MetproConstants"),t("MaterialIcons"),t("Dimensions")),u=s.get("window"),c=u.width,l=(u.height,a.TouchableHighlight),p=(a.PixelRatio,a.StyleSheet),d=(a.TextInput,a.Image),h=a.Text,f=a.View,m=a.createClass({propTypes:{onChange:a.PropTypes.func},getInitialState:function(){return{points:0}},componentWillReceiveProps:function(e){this.setState({points:e.points})},getDefaultProps:function(){return{onChange:function(){}}},render:function(){return a.createElement(f,{style:g.container},a.createElement(h,{style:g.titleText},this.props.title),a.createElement(l,{onPress:this.showPopover},a.createElement(d,{style:g.points,source:t("MetPro/components/MealItem/images/blank.png")},a.createElement(h,{style:g.pointsText},this.props.points))))},showPopover:function(){this.props.onChange()}}),g=p.create({container:{marginTop:0,width:c-40,flexDirection:"row",padding:4,marginLeft:50,marginRight:50,backgroundColor:"white"},points:{alignSelf:"auto",alignItems:"center",justifyContent:"center",backgroundColor:"white"},pointsText:{fontSize:17,color:"#888",backgroundColor:"white",fontWeight:"500"},titleText:{marginTop:8,fontSize:18,color:"#888",backgroundColor:"white",fontWeight:"400",alignSelf:"flex-start",justifyContent:"flex-start",flex:1}});o.exports=m}),__d("MetPro/components/MealItem/images/blank.png",[],function(e,t,n,r,o,i){o.exports=t("AssetRegistry").registerAsset({__packager_asset:!0,fileSystemLocation:"/Users/brettmorse/Apps/MetPro/components/MealItem/images",httpServerLocation:"/assets/components/MealItem/images",width:38,height:38,scales:[1,2,3],hash:"dc22cf4cbeb8bad57523e59bff3b8722",name:"blank",type:"png"})}),__d("MetPro/components/ListPopover",["react-native/Libraries/react-native/react-native","MetPro/constants/MetproConstants","Dimensions","Modal"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native"),s=t("MetPro/constants/MetproConstants"),u=t("Dimensions"),c=u.get("window"),l=c.width,p=c.height,d=t("Modal"),h=a.ListView,f=a.PropTypes,m=a.StyleSheet,g=a.Text,v=a.TouchableOpacity,y=(a.TouchableWithoutFeedback,a.View),_=function(){},b=new h.DataSource({rowHasChanged:function(e,t){return e!==t}}),S=a.createClass({propTypes:{type:f.string.isRequired,list:f.array.isRequired,isVisible:f.bool,onClick:f.func,onClose:f.func},getDefaultProps:function(){return{type:"sugar",list:[""],isVisible:!1,onClick:_,onClose:_}},getInitialState:function(){return{dataSource:b.cloneWithRows(this.props.list)}},componentWillReceiveProps:function(e){e.list!==this.props.list&&this.setState({dataSource:b.cloneWithRows(e.list)})},handleClick:function(e){this.props.onClick(e.entry_date,e.value,this.props.type),this.props.onClose()},renderRow:function(e){var t=this,n=this.props.separatorStyle||R.separator,r=this.props.rowText||R.rowText,o=a.createElement(y,{style:n});e===this.props.list[0]&&(o={});var i=a.createElement(g,{style:r},e.label);return this.props.renderRow&&(i=this.props.renderRow(e)),a.createElement(y,null,o,a.createElement(v,{onPress:function(){return t.handleClick(e)}},i))},renderType:function(){switch(this.props.type){case"sugar":return a.createElement(y,{style:R.container},a.createElement(g,{style:R.h1},"Sugar Points"),a.createElement(g,{style:R.p2},"Add 1 point per single serving of sugar in addition to your meal. Larger than average servings or double portions would need to be counted as such."));case"alcohol":return a.createElement(y,{style:[R.container]},a.createElement(g,{style:R.h1},"Alcohol Chart"),a.createElement(y,{style:R.table},a.createElement(y,{style:R.tableRow},a.createElement(g,{numberOfLines:3,style:R.p4},"1.5 oz Vodka, Whiskey, Scotch, Rum, Cognac, Brandy, Tequila."),a.createElement(g,{style:R.p3},"1/2 Point")),a.createElement(y,{style:R.tableRow},a.createElement(g,{style:R.p4},"5 oz glass of wine"),a.createElement(g,{style:R.p3},"2 Points")),a.createElement(y,{style:R.tableRow},a.createElement(g,{style:R.p4},"12 oz beer"),a.createElement(g,{style:R.p3},"3 Points")),a.createElement(y,{style:[R.tableRow,R.noBorder]},a.createElement(g,{style:R.p4},"Liquor in pre-made mixes and juices"),a.createElement(g,{style:R.p3},"4 Points"))))}},renderList:function(){var e=this;return a.createElement(h,{style:{flex:1},dataSource:this.state.dataSource,renderRow:function(t){return e.renderRow(t)},automaticallyAdjustContentInsets:!1})},render:function(){var e=this.props.containerStyle||R.container,t=this.props.popoverStyle||R.popover;return a.createElement(d,{style:{width:l,height:p},isVisible:this.props.isVisible,forceToFront:!0,customCloseButton:this.closeButton()},a.createElement(y,{style:e},this.renderType(),a.createElement(y,{style:t},this.renderList())))},closeButton:function(){var e=this;return a.createElement(y,{style:{width:l,backgroundColor:s.blueBackground,alignItems:"flex-end",paddingTop:25,paddingRight:25}},a.createElement(y,{style:{}},a.createElement(v,{style:{color:"white"},onPress:function(){return e.props.onClose()}},a.createElement(g,{style:{textAlign:"center",paddingTop:1,justifyContent:"center",color:"rgba(255,255,255,0.3)",fontSize:22,fontWeight:"600",borderWidth:1,borderColor:"rgba(255,255,255,0.3)",borderRadius:15,width:30,height:30}},"X"))))}}),R=m.create({container:{flex:5,width:l,height:p,alignItems:"center",paddingLeft:15,paddingRight:15,backgroundColor:s.blueBackground},table:{width:l-30,borderWidth:1,borderRadius:6,borderColor:"rgba(255,255,255,0.3)"},tableRow:{flexDirection:"row",padding:8,backgroundColor:"transparent",borderBottomWidth:1,borderColor:"rgba(255,255,255,0.3)"
},noBorder:{borderBottomWidth:0},h1:{fontSize:22,color:"white",fontWeight:"600",marginTop:15,marginBottom:10,textAlign:"center"},p:{color:"#efefef",fontSize:16,marginBottom:10,containerBackgroundColor:"transparent",paddingRight:15,textAlign:"center"},p2:{color:"#efefef",fontSize:16,fontWeight:"500",textAlign:"center"},p3:{flex:1,color:"#efefef",fontSize:16,marginBottom:10,containerBackgroundColor:"transparent",paddingRight:15,textAlign:"right"},p4:{flex:3,color:"#efefef",fontSize:16,fontWeight:"500",textAlign:"left"},popover:{flex:4,borderRadius:3,width:l,backgroundColor:"#ffffff"},rowText:{padding:10,paddingLeft:15,color:"#777",fontSize:16,fontWeight:"500"},separator:{height:.5,marginLeft:8,marginRight:8,backgroundColor:"#CCC"}});o.exports=S}),__d("Modal",["merge","react-native/Libraries/react-native/react-native","react-native-modal/Transitions","react-native-modal/Style","Overlay","react-native-blur/index"],function(e,t,n,r,o,i){"use strict";var a=(t("merge"),t("react-native/Libraries/react-native/react-native")),s=a.View,u=a.Text,c=a.TouchableOpacity,l=a.TouchableWithoutFeedback,p=a.PropTypes,d=t("react-native-modal/Transitions"),h=t("react-native-modal/Style"),f=t("Overlay"),m=t("react-native-blur/index").BlurView,g=function(){},v={getInitialState:function(){return{isModalOpen:!1}},openModal:function(){this.setState({isModalOpen:!0})},closeModal:function(){this.setState({isModalOpen:!1})}},y=a.createClass({mixins:[d.Mixin],statics:{transitionEasings:d.Easings,Mixin:v,DefaultStyles:h},propTypes:{isVisible:p.bool,hideCloseButton:p.bool,backdropType:p.string,onClose:p.func,onPressBackdrop:p.func,customCloseButton:p.node,customShowHandler:p.func,customHideHandler:p.func,forceToFront:p.bool,containerPointerEvents:p.string},getDefaultProps:function(){return{isVisible:!1,hideCloseButton:!1,onClose:g,onPressBackdrop:g,backdropType:"plain",backdropBlur:"light",forceToFront:!1,containerPointerEvents:"auto"}},componentWillReceiveProps:function(e){var t=e.isVisible,n=this.props,r=n.isVisible,o=n.customShowHandler,i=n.customHideHandler;if(t!==r){var a=function(e){return e("opacity",{duration:300,begin:0,end:1})},s=function(e){return e("opacity",{duration:300,end:0})};if(t){var u=o||a;u(this.transition)}else{var c=i||s;c(this.transition)}}},renderCloseButton:function(){var e=this.props,t=e.customCloseButton,n=e.hideCloseButton,r=e.onClose,o=this.props.style||h;return t?a.addons.cloneWithProps(t,null):!n&&r?a.createElement(s,{style:o.closeButton},a.createElement(c,{onPress:r},a.createElement(u,{style:o.closeButtonText},"Close"))):void 0},renderBody:function(){var e=this.props.style||h,t=this.extractResponderProps();return a.createElement(s,t,this.renderCloseButton(),a.createElement(s,{style:e.modal,pointerEvents:this.props.containerPointerEvents},a.Children.map(this.props.children,a.addons.cloneWithProps)))},extractResponderProps:function(){var e={};return this.props.onMoveShouldSetResponder&&(e.onMoveShouldSetResponder=this.props.onMoveShouldSetResponder),this.props.onMoveShouldSetResponderCapture&&(e.onMoveShouldSetResponderCapture=this.props.onMoveShouldSetResponderCapture),this.props.onResponderEnd&&(e.onResponderEnd=this.props.onResponderEnd),this.props.onResponderGrant&&(e.onResponderGrant=this.props.onResponderGrant),this.props.onResponderMove&&(e.onResponderMove=this.props.onResponderMove),this.props.onResponderReject&&(e.onResponderReject=this.props.onResponderReject),this.props.onResponderRelease&&(e.onResponderRelease=this.props.onResponderRelease),this.props.onResponderStart&&(e.onResponderStart=this.props.onResponderStart),this.props.onResponderTerminate&&(e.onResponderTerminate=this.props.onResponderTerminate),this.props.onResponderTerminationRequest&&(e.onResponderTerminationRequest=this.props.onResponderTerminationRequest),this.props.onStartShouldSetResponder&&(e.onStartShouldSetResponder=this.props.onStartShouldSetResponder),this.props.onStartShouldSetResponderCapture&&(e.onStartShouldSetResponderCapture=this.props.onStartShouldSetResponderCapture),e},renderModal:function(){var e=this.props,t=e.onPressBackdrop,n=e.backdropType,r=e.backdropBlur,o=this.props.style||h,i=this.renderBody();return"plain"==n?a.createElement(s,{style:[o.container,this.transitionStyles()]},a.createElement(l,{onPress:t},a.createElement(s,{style:o.backdrop})),i):"none"===n?a.createElement(s,{style:[o.container,this.transitionStyles()]},i):a.createElement(l,{onPress:t},a.createElement(m,{blurType:r,style:[o.container,this.transitionStyles()]},i))},render:function(){var e=this.props.style||h,t=this.props,n=t.isVisible,r=t.forceToFront;return n||this.state.isTransitioning?r?a.createElement(f,{isVisible:!0,aboveStatusBar:!0,style:e.container},this.renderModal()):a.createElement(s,{style:e.container},this.renderModal()):a.createElement(s,null)}});o.exports=y}),__d("react-native-modal/Transitions",["react-tween-state/index"],function(e,t,n,r,o,i){"use strict";var a=t("react-tween-state/index"),s=a.Mixin,u=a.easingTypes,c=Object.assign(s,{getInitialState:function(){return{isTransitioning:!1,tweenQueue:[],tweenProperties:[]}},transition:function(e,t){var n=this;this.setState({isTransitioning:!0}),-1===this.state.tweenProperties.indexOf(e)&&this.state.tweenProperties.push(e);var r="undefined"==typeof t.begin?this.state[e]:t.begin;this.tweenState(e,{easing:t.easing||u.easeInOutQuad,duration:t.duration||300,delay:t.delay,beginValue:r,endValue:t.end,onEnd:function(){requestAnimationFrame(function(){n.state.tweenQueue.length||n.setState({isTransitioning:!1}),t.reset&&(n.state[e]=r),t.onEnd&&t.onEnd()})}})},transitionStyles:function(e){var t=this;"undefined"==typeof e&&(e=[]);var n={};return this.state.tweenProperties.forEach(function(r){if(0===e.length||e.indexOf(r)>-1){var o,i=t.getTweeningValue(r);o="undefined"==typeof i||null===i?t.state[r]:i,n[r]=o}}),n}});o.exports={Mixin:c,Easings:u}}),__d("react-tween-state/index",["tween-functions/index"],function(e,t,n,r,o,i){"use strict";function a(e){return e}var s=t("tween-functions/index"),u="ADDITIVE",c=s.easeInOutQuad,l=300,p=0,d={easingTypes:s,stackBehavior:{ADDITIVE:"ADDITIVE",DESTRUCTIVE:"DESTRUCTIVE"}};d.Mixin={getInitialState:function(){return{tweenQueue:[]}},tweenState:function(e,t,n){"string"==typeof e&&(n=t,t=e,e=a),this._tweenState(e,t,n)},_tweenState:function(e,t,n){var r=this._pendingState||this.state,o=e(r),i={easing:n.easing||c,duration:null==n.duration?l:n.duration,delay:null==n.delay?p:n.delay,beginValue:null==n.beginValue?o[t]:n.beginValue,endValue:n.endValue,onEnd:n.onEnd,stackBehavior:n.stackBehavior||u},a=r.tweenQueue;i.stackBehavior===d.stackBehavior.DESTRUCTIVE&&(a=r.tweenQueue.filter(function(e){return e.stateName!==t||e.stateRefFunc(r)!==o})),a.push({stateRefFunc:e,stateName:t,config:i,initTime:Date.now()+i.delay}),o[t]=i.endValue,this.setState({tweenQueue:a}),1===a.length&&this.startRaf()},getTweeningValue:function(e,t){return"string"==typeof e&&(t=e,e=a),this._getTweeningValue(e,t)},_getTweeningValue:function(e,t){for(var n=this.state,r=e(n),o=r[t],i=Date.now(),a=0;a<n.tweenQueue.length;a++){var s=n.tweenQueue[a],u=s.stateRefFunc(n);if(s.stateName===t&&u===r){var c=i-s.initTime>s.config.duration?s.config.duration:Math.max(0,i-s.initTime),l=-s.config.endValue+s.config.easing(c,s.config.beginValue,s.config.endValue,s.config.duration);o+=l}}return o},_rafCb:function(){var e=this.state;if(0!==e.tweenQueue.length){for(var t=Date.now(),n=[],r=0;r<e.tweenQueue.length;r++){var o=e.tweenQueue[r];t-o.initTime<o.config.duration?n.push(o):o.config.onEnd&&o.config.onEnd()}this.isMounted()&&(this.setState({tweenQueue:n}),requestAnimationFrame(this._rafCb))}},startRaf:function(){requestAnimationFrame(this._rafCb)}},o.exports=d}),__d("tween-functions/index",[],function(e,t,n,r,o,i){"use strict";var a={linear:function(e,t,n,r){var o=n-t;return o*e/r+t},easeInQuad:function(e,t,n,r){var o=n-t;return o*(e/=r)*e+t},easeOutQuad:function(e,t,n,r){var o=n-t;return-o*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,n,r){var o=n-t;return(e/=r/2)<1?o/2*e*e+t:-o/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,r){var o=n-t;return o*(e/=r)*e*e+t},easeOutCubic:function(e,t,n,r){var o=n-t;return o*((e=e/r-1)*e*e+1)+t},easeInOutCubic:function(e,t,n,r){var o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,n,r){var o=n-t;return o*(e/=r)*e*e*e+t},easeOutQuart:function(e,t,n,r){var o=n-t;return-o*((e=e/r-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,n,r){var o=n-t;return(e/=r/2)<1?o/2*e*e*e*e+t:-o/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,n,r){var o=n-t;return o*(e/=r)*e*e*e*e+t},easeOutQuint:function(e,t,n,r){var o=n-t;return o*((e=e/r-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,n,r){var o=n-t;return(e/=r/2)<1?o/2*e*e*e*e*e+t:o/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,n,r){var o=n-t;return-o*Math.cos(e/r*(Math.PI/2))+o+t},easeOutSine:function(e,t,n,r){var o=n-t;return o*Math.sin(e/r*(Math.PI/2))+t},easeInOutSine:function(e,t,n,r){var o=n-t;return-o/2*(Math.cos(Math.PI*e/r)-1)+t},easeInExpo:function(e,t,n,r){var o,i=n-t;return null!==(o=0===e)?o:{b:i*Math.pow(2,10*(e/r-1))+t}},easeOutExpo:function(e,t,n,r){var o,i=n-t;return null!==(o=e===r)?o:t+{c:i*(-Math.pow(2,-10*e/r)+1)+t}},easeInOutExpo:function(e,t,n,r){var o=n-t;return(e/=r/2)<1?o/2*Math.pow(2,10*(e-1))+t:o/2*(-Math.pow(2,-10*--e)+2)+t},easeInCirc:function(e,t,n,r){var o=n-t;return-o*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOutCirc:function(e,t,n,r){var o=n-t;return o*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOutCirc:function(e,t,n,r){var o=n-t;return(e/=r/2)<1?-o/2*(Math.sqrt(1-e*e)-1)+t:o/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,n,r){var o,i,a,s=n-t;return a=1.70158,i=0,o=s,0===e||1===(e/=r),i||(i=.3*r),o<Math.abs(s)?(o=s,a=i/4):a=i/(2*Math.PI)*Math.asin(s/o),-(o*Math.pow(2,10*(e-=1))*Math.sin(2*(e*r-a)*Math.PI/i))+t},easeOutElastic:function(e,t,n,r){var o,i,a,s=n-t;return a=1.70158,i=0,o=s,0===e||1===(e/=r),i||(i=.3*r),o<Math.abs(s)?(o=s,a=i/4):a=i/(2*Math.PI)*Math.asin(s/o),o*Math.pow(2,-10*e)*Math.sin(2*(e*r-a)*Math.PI/i)+s+t},easeInOutElastic:function(e,t,n,r){var o,i,a,s=n-t;return a=1.70158,i=0,o=s,0===e||2===(e/=r/2),i||(i=.3*r*1.5),o<Math.abs(s)?(o=s,a=i/4):a=i/(2*Math.PI)*Math.asin(s/o),1>e?-.5*o*Math.pow(2,10*(e-=1))*Math.sin(2*(e*r-a)*Math.PI/i)+t:o*Math.pow(2,-10*(e-=1))*Math.sin(2*(e*r-a)*Math.PI/i)*.5+s+t},easeInBack:function(e,t,n,r,o){var i=n-t;return void 0===o&&(o=1.70158),i*(e/=r)*e*((o+1)*e-o)+t},easeOutBack:function(e,t,n,r,o){var i=n-t;return void 0===o&&(o=1.70158),i*((e=e/r-1)*e*((o+1)*e+o)+1)+t},easeInOutBack:function(e,t,n,r,o){var i=n-t;return void 0===o&&(o=1.70158),(e/=r/2)<1?i/2*e*e*(((o*=1.525)+1)*e-o)+t:i/2*((e-=2)*e*(((o*=1.525)+1)*e+o)+2)+t},easeInBounce:function(e,t,n,r){var o,i=n-t;return o=a.easeOutBounce(r-e,0,i,r),i-o+t},easeOutBounce:function(e,t,n,r){var o=n-t;return(e/=r)<1/2.75?7.5625*o*e*e+t:2/2.75>e?o*(7.5625*(e-=1.5/2.75)*e+.75)+t:2.5/2.75>e?o*(7.5625*(e-=2.25/2.75)*e+.9375)+t:o*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,n,r){var o,i=n-t;return r/2>e?(o=a.easeInBounce(2*e,0,i,r),.5*o+t):(o=a.easeOutBounce(2*e-r,0,i,r),.5*o+.5*i+t)}};o.exports=a}),__d("react-native-modal/Style",["react-native/Libraries/react-native/react-native"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native").StyleSheet;o.exports=a.create({container:{position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"transparent",justifyContent:"center"},backdrop:{position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"#000000",opacity:.5},closeButton:{position:"absolute",borderColor:"#ffffff",borderRadius:2,borderWidth:1,right:20,top:20,paddingLeft:10,paddingRight:10,paddingTop:5,paddingBottom:5},closeButtonText:{color:"#ffffff"},modal:{margin:20,backgroundColor:"#ffffff",borderRadius:3,padding:20}})}),__d("Overlay",["react-native/Libraries/react-native/react-native"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native"),s=a.View,u=(a.PropTypes,a.StyleSheet),c=a.requireNativeComponent,l=a.createClass({propTypes:{aboveStatusBar:a.PropTypes.bool,isVisible:a.PropTypes.bool},getDefaultProps:function(){return{aboveStatusBar:!1,isVisible:!1}},render:function(){this.props.isVisible;return this.props.isVisible?a.createElement(p,{isVisible:!0,style:d.container,pointerEvents:"none",aboveStatusBar:this.props.aboveStatusBar},a.Children.map(this.props.children,a.addons.cloneWithProps)):a.createElement(s,null)}}),p=c("RNOverlay",l),d=u.create({container:{position:"absolute",top:0,bottom:0,left:0,right:0,borderWidth:0,backgroundColor:"transparent"}});o.exports=l}),__d("react-native-blur/index",["react-native/Libraries/react-native/react-native"],function(e,t,n,r,o,i){var a=t("react-native/Libraries/react-native/react-native"),s=a.requireNativeComponent,u=a.createClass({propTypes:{blurType:a.PropTypes.string},render:function(){return a.createElement(c,this.props)}}),c=s("BlurView",u),l=a.createClass({propTypes:{blurType:a.PropTypes.string},render:function(){return a.createElement(p,this.props)}}),p=s("VibrancyView",l);o.exports={BlurView:u,VibrancyView:l}}),__d("MetPro/components/PresubmitModal",["react-native/Libraries/react-native/react-native","Modal","RadioGroup","MetPro/constants/MetproConstants","Dimensions"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native"),s=t("Modal"),u=t("RadioGroup"),c=t("MetPro/constants/MetproConstants"),l=t("Dimensions"),p=l.get("window"),d=(p.width,p.height,a.Text),h=a.View,f=a.TouchableHighlight,m=a.StyleSheet,g=a.createClass({getInitialState:function(){return{selectedEnergy:!1,selectedDigestion:!1}},renderSubmit:function(){var e=this;return this.state.selectedEnergy&&this.state.selectedDigestion?a.createElement(f,{style:v.button,onPress:function(){return e.props.onSubmit(e.state.selectedEnergy,e.state.selectedDigestion)}},a.createElement(d,{style:v.buttonText},"Submit")):a.createElement(h,{style:v.buttonDisabled},a.createElement(d,{style:v.buttonText},"Submit"))},render:function(){return a.createElement(s,{forceToFront:!0,isVisible:this.props.isVisible},a.createElement(h,{style:v.container},a.createElement(u,{style:v.radioGroup,titleStyle:v.title,itemStyle:v.item,itemLabelStyle:v.itemLabel,itemSelectedStyle:v.selectedItem,selectedItem:this.selectedEnergy,title:"How is your overall Energy?"},a.createElement(u.Item,{label:"Tired",value:1}),a.createElement(u.Item,{label:"Ok",value:2}),a.createElement(u.Item,{label:"Great",value:3})),a.createElement(u,{style:v.radioGroup,titleStyle:v.title,itemStyle:v.item,itemLabelStyle:v.itemLabel,itemSelectedStyle:v.selectedItem,selectedItem:this.selectedDigestion,title:"How is your digestion?"},a.createElement(u.Item,{label:"1",value:"1"}),a.createElement(u.Item,{label:"2",value:"2"}),a.createElement(u.Item,{label:"3",value:"3"})),this.renderSubmit()))},selectedEnergy:function(e){this.setState({selectedEnergy:e})},selectedDigestion:function(e){this.setState({selectedDigestion:e})}}),v=m.create({container:{alignItems:"stretch"},h1:{fontSize:18,marginBottom:20,alignSelf:"center"},buttonDisabled:{marginTop:15,alignItems:"center",flex:1,backgroundColor:"#ccc",borderRadius:6,padding:12},button:{marginTop:15,alignItems:"center",flex:1,backgroundColor:c.blueBackground,borderRadius:6,padding:12},buttonText:{color:"white",fontSize:16,fontWeight:"500"},radioGroup:{flexDirection:"row",justifyContent:"center",padding:5,paddingBottom:15},title:{padding:10,fontSize:18,textAlign:"center"},item:{alignItems:"center",justifyContent:"center",backgroundColor:"#ccc",width:50,height:50,borderRadius:25,marginRight:8},itemLabel:{color:"white"},selectedItem:{backgroundColor:c.blue}});o.exports=g}),__d("MetPro/components/SubmittedModal",["react-native/Libraries/react-native/react-native","Modal","MaterialIcons","MetPro/constants/MetproConstants","Dimensions"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native"),s=t("Modal"),u=t("MaterialIcons"),c=t("MetPro/constants/MetproConstants"),l=t("Dimensions"),p=l.get("window"),d=(p.width,p.height,a.Text),h=a.View,f=a.TouchableHighlight,m=a.StyleSheet,g=a.createClass({render:function(){return a.createElement(s,{forceToFront:!0,isVisible:this.props.isVisible},a.createElement(h,{style:v.container},a.createElement(u,{name:"done",size:48,color:"#aaa",style:v.icon}),a.createElement(d,{style:v.h1},"Your phase has been submitted."),a.createElement(d,{style:v.p},"Your coach will review your results. Continue on your current meal phase until your coach makes a diet change."),a.createElement(f,{style:v.button,onPress:this.props.onSubmit},a.createElement(d,{style:v.buttonText},"Got it!"))))}}),v=m.create({container:{padding:15,alignItems:"center"},icon:{marginBottom:15},h1:{fontSize:18,marginBottom:20,alignSelf:"center"},p:{alignSelf:"center",paddingBottom:25},button:{alignItems:"center",flex:1,backgroundColor:c.blueBackground,borderRadius:6,padding:12},buttonText:{color:"white",fontSize:16,fontWeight:"500"},items:{flexDirection:"row",alignItems:"center",justifyContent:"center"},item:{textAlign:"center",padding:25,paddingTop:0,fontSize:22,fontWeight:"600",color:"#777",justifyContent:"center",alignSelf:"center",flex:1}});o.exports=g}),__d("MetPro/stores/ChartStore",["object-assign/index","events/events","MetPro/constants/MetproConstants","MetPro/dispatcher/AppDispatcher"],function(e,t,n,r,o,i){"use strict";function a(e,t,n){h[e][t]=n}var s=t("object-assign/index"),u=t("events/events").EventEmitter,c=t("MetPro/constants/MetproConstants"),l=t("MetPro/dispatcher/AppDispatcher"),p="change",d=c.ActionTypes,h={},f=[],m=!1,g=s({},u.prototype,{emitChange:function(){this.emit(p)},addChangeListener:function(e){this.on(p,e)},removeChangeListener:function(e){this.removeListener(p,e)},getCharts:function(){return h},getDates:function(){return f},getShowModal:function(){return m},getChartForEntryDate:function(e){return h[e]}});g.dispatchToken=l.register(function(e){switch(e.type){case d.RECEIVE_MEAL_ENTRY:console.log("Received meal entry"),a(e.data.entryDate,e.data.mealID,e.data.mealValue),g.emitChange();break;case d.SAVE_ADD_POINTS:console.log(e),h[e.entryDate].add_points=e.itemValue,g.emitChange();break;case d.SAVE_ALCOHOL_POINTS:console.log(e),h[e.entryDate].alcohol_points=e.itemValue,g.emitChange();break;case d.RECEIVE_NEW_PHASE:case d.RECEIVE_CHARTS:h={},f=[],e.data.forEach(function(e){var t=e.entry_date;f.push(t),h[t]=e}),e.type===d.RECEIVE_NEW_PHASE?(m=!0,g.emitChange(),m=!1):g.emitChange()}}),o.exports=g}),__d("MetPro/actions/PhaseActionCreators",["MetPro/utils/ApiUtils","MetPro/constants/MetproConstants","MetPro/dispatcher/AppDispatcher"],function(e,t,n,r,o,i){"use strict";var a=t("MetPro/utils/ApiUtils"),s=t("MetPro/constants/MetproConstants"),u=t("MetPro/dispatcher/AppDispatcher"),c=s.ActionTypes;o.exports={saveAddPoints:function(e,t){a.postAddPoints(e,t),u.dispatch({entryDate:e,itemValue:t,type:c.SAVE_ADD_POINTS})},saveAlcoholPoints:function(e,t){a.postAlcoholPoints(e,t),u.dispatch({entryDate:e,itemValue:t,type:c.SAVE_ALCOHOL_POINTS})},saveMealEntry:function(e,t,n){a.postMealEntry(e,t,n)},saveWeightEntry:function(e,t){a.postWeightEntry(e,t),u.dispatch({entryDate:e,weight:t,type:c.SAVE_WEIGHT_ENTRY})},submitPhase:function(e,t){a.submitPhase(e,t)}}}),__d("MetPro/components/NewPhaseModal",["react-native/Libraries/react-native/react-native","Modal","MetPro/constants/MetproConstants","Dimensions"],function(e,t,n,r,o,i){"use strict";var a=t("react-native/Libraries/react-native/react-native"),s=t("Modal"),u=t("MetPro/constants/MetproConstants"),c=t("Dimensions"),l=c.get("window"),p=(l.width,l.height,a.Text),d=a.View,h=a.TouchableHighlight,f=a.StyleSheet,m=a.createClass({render:function(){return a.createElement(s,{forceToFront:!0,isVisible:this.props.isVisible},a.createElement(d,{style:g.container},a.createElement(p,{style:g.h1},"New Diet Plan!"),a.createElement(h,{style:g.button,onPress:this.props.onSubmit},a.createElement(p,{style:g.buttonText},"Ok Got it!"))))}}),g=f.create({container:{alignItems:"stretch"},h1:{fontSize:18,marginBottom:20,alignSelf:"center"},button:{alignItems:"center",flex:1,backgroundColor:u.blueBackground,borderRadius:6,padding:12},buttonText:{color:"white",fontSize:16,fontWeight:"500"},items:{flexDirection:"row",alignItems:"center",justifyContent:"center"},item:{textAlign:"center",padding:25,paddingTop:0,fontSize:22,fontWeight:"600",color:"#777",justifyContent:"center",alignSelf:"center",flex:1}});o.exports=m}),__d("MetPro/components/NavigationBar",["MetPro/constants/MetproConstants","react-native/Libraries/react-native/react-native","NavigatorNavigationBarStyles","StaticContainer.react","cssVar"],function(e,t,n,r,o,i){"use strict";var a=t("MetPro/constants/MetproConstants"),s=t("react-native/Libraries/react-native/react-native"),u=(s.PixelRatio,s.StatusBarIOS),c=s.StyleSheet,l=s.Text,p=s.TouchableOpacity,d=s.View,h=t("NavigatorNavigationBarStyles"),f=t("StaticContainer.react"),m=(t("cssVar"),c.create({navBarContainer:{height:h.General.TotalNavHeight,backgroundColor:a.blueBackground,flexDirection:"row",alignItems:"flex-end",paddingBottom:5,justifyContent:"space-between"},customTitle:{position:"absolute",alignItems:"center",bottom:5,left:0,right:0},navBarText:{fontSize:17,marginVertical:10,flex:2,textAlign:"center"},navBarTitleText:{color:"white",fontWeight:"500",position:"absolute",left:0,right:0,bottom:12},navBarLeftButton:{paddingLeft:10},navBarRightButton:{paddingRight:10},navBarButtonText:{color:"white"}})),g=s.createClass({propTypes:{navigator:s.PropTypes.object.isRequired,route:s.PropTypes.object.isRequired},prevButtonShouldBeHidden:function(){var e=this.props,t=e.onPrev,n=e.hidePrev,r=e.navigator,o=r.getCurrentRoutes;return n||o&&o().length<=1&&!t},getLeftButtonElement:function(){var e=this.props,t=e.onPrev,n=e.prevTitle,r=e.navigator,o=e.route,i=e.buttonsColor,a=e.customPrev;if(a)return s.addons.cloneWithProps(a,{navigator:r,route:o});if(this.prevButtonShouldBeHidden())return s.createElement(d,{style:m.navBarLeftButton});var u=i?{color:i}:{};return s.createElement(p,{onPress:t||r.pop},s.createElement(d,{style:m.navBarLeftButton},s.createElement(l,{style:[m.navBarText,m.navBarButtonText,u]},n||"Back")))},getTitleElement:function(){var e=this.props,t=e.title,n=e.titleColor,r=e.customTitle,o=e.navigator,i=e.route;if(r)return s.createElement(d,{style:m.customTitle},s.addons.cloneWithProps(r,{navigator:o,route:i}));if(t&&!t.length)return!0;var a=[m.navBarText,m.navBarTitleText,{color:n}];return s.createElement(l,{style:a},t)},getRightButtonElement:function(){var e=this.props,t=e.onNext,n=e.nextTitle,r=e.navigator,o=e.route,i=e.buttonsColor,a=e.customNext;if(a)return s.addons.cloneWithProps(a,{navigator:r,route:o});if(!t)return s.createElement(l,{style:m.navBarRightButton});var u=i?{color:i}:{};return s.createElement(p,{onPress:t},s.createElement(d,{style:m.navBarRightButton},s.createElement(l,{style:[m.navBarText,m.navBarButtonText,u]},n||"Next")))},render:function(){"lightContent"===this.props.statusBar?u.setStyle(u.Style.lightContent):"default"===this.props.statusBar&&u.setStyle(u.Style["default"]);var e=this.props.backgroundColor?{backgroundColor:this.props.backgroundColor}:{},t=this.props.style;return s.createElement(f,{shouldUpdate:!1},s.createElement(d,{style:[m.navBarContainer,e,t]},this.getTitleElement(),this.getLeftButtonElement(),this.getRightButtonElement()))}});o.exports=g}),__d("cssVar",["invariant","CSSVarConfig"],function(e,t,n,r,o,i){"use strict";var a=t("invariant"),s=t("CSSVarConfig"),u=function(e){return a(s[e],"invalid css variable "+e),s[e]};o.exports=u}),__d("CSSVarConfig",[],function(e,t,n,r,o,i){"use strict";o.exports={"fbui-accent-blue":"#5890ff","fbui-blue-90":"#4e69a2","fbui-blue-80":"#627aad","fbui-blue-70":"#758ab7","fbui-blue-60":"#899bc1","fbui-blue-50":"#9daccb","fbui-blue-40":"#b1bdd6","fbui-blue-30":"#c4cde0","fbui-blue-20":"#d8deea","fbui-blue-10":"#ebeef4","fbui-blue-5":"#f5f7fa","fbui-blue-2":"#fbfcfd","fbui-blueblack-90":"#06090f","fbui-blueblack-80":"#0c121e","fbui-blueblack-70":"#121b2e","fbui-blueblack-60":"#18243d","fbui-blueblack-50":"#1e2d4c","fbui-blueblack-40":"#23355b","fbui-blueblack-30":"#293e6b","fbui-blueblack-20":"#2f477a","fbui-blueblack-10":"#355089","fbui-blueblack-5":"#385490","fbui-blueblack-2":"#3a5795","fbui-bluegray-90":"#080a10","fbui-bluegray-80":"#141823","fbui-bluegray-70":"#232937","fbui-bluegray-60":"#373e4d","fbui-bluegray-50":"#4e5665","fbui-bluegray-40":"#6a7180","fbui-bluegray-30":"#9197a3","fbui-bluegray-20":"#bdc1c9","fbui-bluegray-10":"#dcdee3","fbui-bluegray-5":"#e9eaed","fbui-bluegray-2":"#f6f7f8","fbui-gray-90":"#191919","fbui-gray-80":"#333333","fbui-gray-70":"#4c4c4c","fbui-gray-60":"#666666","fbui-gray-50":"#7f7f7f","fbui-gray-40":"#999999","fbui-gray-30":"#b2b2b2","fbui-gray-20":"#cccccc","fbui-gray-10":"#e5e5e5","fbui-gray-5":"#f2f2f2","fbui-gray-2":"#fafafa","fbui-red":"#da2929","fbui-error":"#ce0d24","x-mobile-dark-text":"#4e5665","x-mobile-medium-text":"#6a7180","x-mobile-light-text":"#9197a3","x-mobile-base-wash":"#dcdee3"}}),__d("react-native-remote-push/RemotePushIOS",["NativeModules","react-native/Libraries/react-native/react-native"],function(e,t,n,r,o,i){var a=t("NativeModules").RemotePushManager,s=t("react-native/Libraries/react-native/react-native"),u=s.DeviceEventEmitter;const c="registeredForRemoteNotifications",l="registeredForRemoteNotificationsError",p="receivedRemoteNotification";o.exports={requestPermissions:function(e){a.requestPermissions(),u.addListener(c,function(t){e(null,t)}),u.addListener(l,function(t){e("Couldn't register for notifications")})},setListenerForNotifications:function(e){a.getStartupNotifications(function(t,n){n&&e(n)}),u.addListener(p,function(t){e(t)})}}}),__d("MetPro/utils/Installation",[],function(e,t,n,r,o,i){var a=function(e){console.log("Made it here"),console.log(e);var t="https://api.parse.com";t+="/1/installations",fetch(t,{method:"post",headers:{Accept:"application/json","X-Parse-Application-Id":"FpmZmgQsTvveoMbQXhnHzBRYa330MfyOrlKbLApa","X-Parse-REST-API-Key":"p7NTLgVneJrwg4OYo9aivbonKPKKcRtHirv3uZ5R","Content-Type":"application/json"},body:JSON.stringify(e)}).then(console.log(e))["catch"]()};o.exports=a}),require("MetPro/index.ios");
//# sourceMappingURL=bundle.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment