@sterling-scarney/react-places-autocomplete
Version:
A React component for Google Maps Places Autocomplete
23 lines • 43.9 kB
JavaScript
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getLatLng=t.geocodeByPlaceId=t.geocodeByAddress=void 0;var o=n(11),i=r(o),a=n(13);t.geocodeByAddress=a.geocodeByAddress,t.geocodeByPlaceId=a.geocodeByPlaceId,t.getLatLng=a.getLatLng,t.default=i.default},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){g&&d&&(g=!1,d.length?y=d.concat(y):v=-1,y.length&&u())}function u(){if(!g){var e=o(a);g=!0;for(var t=y.length;t;){for(d=y,y=[];++v<t;)d&&d[v].run();v=-1,t=y.length}d=null,g=!1,i(e)}}function c(e,t){this.fun=e,this.array=t}function s(){}var l,f,p=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var d,y=[],g=!1,v=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];y.push(new c(e,t)),1!==y.length||g||o(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=s,p.addListener=s,p.once=s,p.off=s,p.removeListener=s,p.removeAllListeners=s,p.emit=s,p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";function n(e,t,n,o,i,a,u,c){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,u,c],f=0;s=new Error(t.replace(/%s/g,function(){return l[f++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var n={};"production"!==t.env.NODE_ENV&&Object.freeze(n),e.exports=n}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function n(e,t,n,o,i,a,u,c){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,u,c],f=0;s=new Error(t.replace(/%s/g,function(){return l[f++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(2),o=r;if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};o=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];i.apply(void 0,[t].concat(r))}}}e.exports=o}).call(t,n(1))},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){(function(t){"use strict";var r=n(3),o=r;"production"!==t.env.NODE_ENV&&!function(){var e=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};o=function(t,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!t){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];e.apply(void 0,[n].concat(o))}}}(),e.exports=o}).call(t,n(1))},function(e,t){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
;function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,u,c=n(e),s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var l in r)i.call(r,l)&&(c[l]=r[l]);if(o){u=o(r);for(var f=0;f<u.length;f++)a.call(r,u[f])&&(c[u[f]]=r[u[f]])}}return c}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});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}}(),s=n(21),l=r(s),f=n(18),p=r(f),d=n(14),y=r(d),g=n(12),v=function(e){return{mainText:e.main_text,secondaryText:e.secondary_text}},h=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.init=function(){if(!window.google)throw new Error("[react-places-autocomplete]: Google Maps JavaScript API library must be loaded. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library");if(!window.google.maps.places)throw new Error("[react-places-autocomplete]: Google Maps Places library must be loaded. Please add `libraries=places` to the src URL. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library");n.autocompleteService=new window.google.maps.places.AutocompleteService,n.autocompleteOK=window.google.maps.places.PlacesServiceStatus.OK,n.setState(function(e){return e.ready?null:{ready:!0}})},n.autocompleteCallback=function(e,t){if(n.setState({loading:!1}),t!==n.autocompleteOK)return void n.props.onError(t,n.clearSuggestions);var r=n.props,o=r.highlightFirstSuggestion,i=r.filterPredictions;n.setState({suggestions:e.filter(i).map(function(e,t){return{id:e.id,description:e.description,placeId:e.place_id,active:!(!o||0!==t),index:t,formattedSuggestion:v(e.structured_formatting),matchedSubstrings:e.matched_substrings,terms:e.terms,types:e.types}})})},n.fetchPredictions=function(){var e=n.props.value;e.length&&(n.setState({loading:!0}),n.autocompleteService.getPlacePredictions(u({},n.props.searchOptions,{input:e}),n.autocompleteCallback))},n.clearSuggestions=function(){n.setState({suggestions:[]})},n.clearActive=function(){n.setState({suggestions:n.state.suggestions.map(function(e){return u({},e,{active:!1})})})},n.handleSelect=function(e,t,r){n.clearSuggestions(),n.props.onSelect?n.props.onSelect(e,t,r):n.props.onChange(e)},n.getActiveSuggestion=function(){return n.state.suggestions.find(function(e){return e.active})},n.selectActiveAtIndex=function(e){var t=n.state.suggestions.find(function(t){return t.index===e}).description;n.setActiveAtIndex(e),n.props.onChange(t)},n.selectUserInputValue=function(){n.clearActive(),n.props.onChange(n.state.userInputValue)},n.handleEnterKey=function(){var e=n.getActiveSuggestion();void 0===e?n.handleSelect(n.props.value,null,null):n.handleSelect(e.description,e.placeId,e)},n.handleDownKey=function(){if(0!==n.state.suggestions.length){var e=n.getActiveSuggestion();void 0===e?n.selectActiveAtIndex(0):e.index===n.state.suggestions.length-1?n.selectUserInputValue():n.selectActiveAtIndex(e.index+1)}},n.handleUpKey=function(){if(0!==n.state.suggestions.length){var e=n.getActiveSuggestion();void 0===e?n.selectActiveAtIndex(n.state.suggestions.length-1):0===e.index?n.selectUserInputValue():n.selectActiveAtIndex(e.index-1)}},n.handleInputKeyDown=function(e){switch(e.key){case"Enter":e.preventDefault(),n.handleEnterKey();break;case"ArrowDown":e.preventDefault(),n.handleDownKey();break;case"ArrowUp":e.preventDefault(),n.handleUpKey();break;case"Escape":n.clearSuggestions()}},n.setActiveAtIndex=function(e){n.setState({suggestions:n.state.suggestions.map(function(t,n){return n===e?u({},t,{active:!0}):u({},t,{active:!1})})})},n.handleInputChange=function(e){var t=e.target.value;return n.props.onChange(t),n.setState({userInputValue:t}),t?void(n.props.shouldFetchSuggestions&&n.debouncedFetchPredictions()):void n.clearSuggestions()},n.handleInputOnBlur=function(){n.mousedownOnSuggestion||n.clearSuggestions()},n.getActiveSuggestionId=function(){var e=n.getActiveSuggestion();return e?"PlacesAutocomplete__suggestion-"+e.placeId:void 0},n.getIsExpanded=function(){return n.state.suggestions.length>0},n.getInputProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.hasOwnProperty("value"))throw new Error("[react-places-autocomplete]: getInputProps does not accept `value`. Use `value` prop instead");if(e.hasOwnProperty("onChange"))throw new Error("[react-places-autocomplete]: getInputProps does not accept `onChange`. Use `onChange` prop instead");var t={type:"text",autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-expanded":n.getIsExpanded(),"aria-activedescendant":n.getActiveSuggestionId(),disabled:!n.state.ready};return u({},t,e,{onKeyDown:(0,g.compose)(n.handleInputKeyDown,e.onKeyDown),onBlur:(0,g.compose)(n.handleInputOnBlur,e.onBlur),value:n.props.value,onChange:function(e){n.handleInputChange(e)}})},n.getSuggestionItemProps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.handleSuggestionMouseEnter.bind(n,e.index),o=n.handleSuggestionClick.bind(n,e);return u({},t,{key:e.id,id:n.getActiveSuggestionId(),role:"option",onMouseEnter:(0,g.compose)(r,t.onMouseEnter),onMouseLeave:(0,g.compose)(n.handleSuggestionMouseLeave,t.onMouseLeave),onMouseDown:(0,g.compose)(n.handleSuggestionMouseDown,t.onMouseDown),onMouseUp:(0,g.compose)(n.handleSuggestionMouseUp,t.onMouseUp),onTouchStart:(0,g.compose)(n.handleSuggestionTouchStart,t.onTouchStart),onTouchEnd:(0,g.compose)(n.handleSuggestionMouseUp,t.onTouchEnd),onClick:(0,g.compose)(o,t.onClick)})},n.handleSuggestionMouseEnter=function(e){n.setActiveAtIndex(e)},n.handleSuggestionMouseLeave=function(){n.mousedownOnSuggestion=!1,n.clearActive()},n.handleSuggestionMouseDown=function(e){e.preventDefault(),n.mousedownOnSuggestion=!0},n.handleSuggestionTouchStart=function(){n.mousedownOnSuggestion=!0},n.handleSuggestionMouseUp=function(){n.mousedownOnSuggestion=!1},n.handleSuggestionClick=function(e,t){t&&t.preventDefault&&t.preventDefault();var r=e.description,o=e.placeId;n.handleSelect(r,o,e),setTimeout(function(){n.mousedownOnSuggestion=!1})},n.state={loading:!1,suggestions:[],userInputValue:e.value,ready:!e.googleCallbackName},n.debouncedFetchPredictions=(0,y.default)(n.fetchPredictions,e.debounce),n}return a(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this.props.googleCallbackName;if(e){var t=window.google&&window.google.maps&&window.google.maps.places;t?this.init():window[e]=this.init}else this.init()}},{key:"componentWillUnmount",value:function(){var e=this.props.googleCallbackName;e&&window[e]&&delete window[e]}},{key:"render",value:function(){return this.props.children({getInputProps:this.getInputProps,getSuggestionItemProps:this.getSuggestionItemProps,loading:this.state.loading,suggestions:this.state.suggestions})}}]),t}(l.default.Component);h.propTypes={onChange:p.default.func.isRequired,value:p.default.string.isRequired,children:p.default.func.isRequired,onError:p.default.func,onSelect:p.default.func,searchOptions:p.default.shape({bounds:p.default.object,componentRestrictions:p.default.object,location:p.default.object,offset:p.default.oneOfType([p.default.number,p.default.string]),radius:p.default.oneOfType([p.default.number,p.default.string]),types:p.default.array}),filterPredictions:p.default.func,debounce:p.default.number,highlightFirstSuggestion:p.default.bool,shouldFetchSuggestions:p.default.bool,googleCallbackName:p.default.string},h.defaultProps={onError:function(e,t){return console.error("[react-places-autocomplete]: error happened when fetching data from Google Maps API.\nPlease check the docs here (https://developers.google.com/maps/documentation/javascript/places#place_details_responses)\nStatus: ",e)},searchOptions:{},filterPredictions:function(e){return!0},debounce:200,highlightFirstSuggestion:!1,shouldFetchSuggestions:!0},t.default=h},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.compose=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e&&e.apply(void 0,n)})}},t.pick=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(function(t,n){return e&&e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.geocodeByAddress=function(e){var t=new window.google.maps.Geocoder,n=window.google.maps.GeocoderStatus.OK;return new Promise(function(r,o){t.geocode({address:e},function(e,t){t!==n&&o(t),r(e)})})},t.getLatLng=function(e){return new Promise(function(t,n){try{var r={lat:e.geometry.location.lat(),lng:e.geometry.location.lng()};t(r)}catch(e){n(e)}})},t.geocodeByPlaceId=function(e){var t=new window.google.maps.Geocoder,n=window.google.maps.GeocoderStatus.OK;return new Promise(function(r,o){t.geocode({placeId:e},function(e,t){t!==n&&o(t),r(e)})})}},function(e,t){(function(t){function n(e,t,n){function o(t){var n=g,r=v;return g=v=void 0,E=t,m=e.apply(r,n)}function i(e){return E=e,b=setTimeout(l,t),k?o(e):m}function c(e){var n=e-_,r=e-E,o=t-n;return P?O(o,h-r):o}function s(e){var n=e-_,r=e-E;return void 0===_||n>=t||n<0||P&&r>=h}function l(){var e=S();return s(e)?f(e):void(b=setTimeout(l,c(e)))}function f(e){return b=void 0,x&&g?o(e):(g=v=void 0,m)}function p(){void 0!==b&&clearTimeout(b),E=0,g=_=v=b=void 0}function d(){return void 0===b?m:f(S())}function y(){var e=S(),n=s(e);if(g=arguments,v=this,_=e,n){if(void 0===b)return i(_);if(P)return b=setTimeout(l,t),o(_)}return void 0===b&&(b=setTimeout(l,t)),m}var g,v,h,m,b,_,E=0,k=!1,P=!1,x=!0;if("function"!=typeof e)throw new TypeError(u);return t=a(t)||0,r(n)&&(k=!!n.leading,P="maxWait"in n,h=P?w(a(n.maxWait)||0,t):h,x="trailing"in n?!!n.trailing:x),y.cancel=p,y.flush=d,y}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function i(e){return"symbol"==typeof e||o(e)&&b.call(e)==s}function a(e){if("number"==typeof e)return e;if(i(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var n=p.test(e);return n||d.test(e)?y(e.slice(2),n?2:8):f.test(e)?c:+e}var u="Expected a function",c=NaN,s="[object Symbol]",l=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,d=/^0o[0-7]+$/i,y=parseInt,g="object"==typeof t&&t&&t.Object===Object&&t,v="object"==typeof self&&self&&self.Object===Object&&self,h=g||v||Function("return this")(),m=Object.prototype,b=m.toString,w=Math.max,O=Math.min,S=function(){return h.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t,n){(function(t){"use strict";function r(e,n,r,c,s){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var f;try{o("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",c||"React class",r,l),f=e[l](n,l,c,r,null,a)}catch(e){f=e}if(i(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",r,l,typeof f),f instanceof Error&&!(f.message in u)){u[f.message]=!0;var p=s?s():"";i(!1,"Failed %s type: %s%s",r,f.message,null!=p?p:"")}}}if("production"!==t.env.NODE_ENV)var o=n(4),i=n(9),a=n(8),u={};e.exports=r}).call(t,n(1))},function(e,t,n){"use strict";var r=n(3),o=n(4);e.exports=function(){function e(){o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){(function(t){"use strict";var r=n(3),o=n(4),i=n(9),a=n(8),u=n(15);e.exports=function(e,n){function c(e){var t=e&&(x&&e[x]||e[j]);if("function"==typeof t)return t}function s(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function l(e){this.message=e,this.stack=""}function f(e){function r(r,s,f,p,d,y,g){if(p=p||A,y=y||f,g!==a)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=p+":"+f;!u[v]&&c<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",y,p),u[v]=!0,c++)}return null==s[f]?r?new l(null===s[f]?"The "+d+" `"+y+"` is marked as required "+("in `"+p+"`, but its value is `null`."):"The "+d+" `"+y+"` is marked as required in "+("`"+p+"`, but its value is `undefined`.")):null:e(s,f,p,d,y)}if("production"!==t.env.NODE_ENV)var u={},c=0;var s=r.bind(null,!1);return s.isRequired=r.bind(null,!0),s}function p(e){function t(t,n,r,o,i,a){var u=t[n],c=E(u);if(c!==e){var s=k(u);return new l("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return f(t)}function d(){return f(r.thatReturnsNull)}function y(e){function t(t,n,r,o,i){if("function"!=typeof e)return new l("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=t[n];if(!Array.isArray(u)){var c=E(u);return new l("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var s=0;s<u.length;s++){var f=e(u,s,r,o,i+"["+s+"]",a);if(f instanceof Error)return f}return null}return f(t)}function g(){function t(t,n,r,o,i){var a=t[n];if(!e(a)){var u=E(a);return new l("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return f(t)}function v(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||A,u=P(t[n]);return new l("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+a+"`."))}return null}return f(t)}function h(e){function n(t,n,r,o,i){for(var a=t[n],u=0;u<e.length;u++)if(s(a,e[u]))return null;var c=JSON.stringify(e);return new l("Invalid "+o+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+c+"."))}return Array.isArray(e)?f(n):("production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,r.thatReturnsNull)}function m(e){function t(t,n,r,o,i){if("function"!=typeof e)return new l("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=t[n],c=E(u);if("object"!==c)return new l("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an object."));for(var s in u)if(u.hasOwnProperty(s)){var f=e(u,s,r,o,i+"."+s,a);if(f instanceof Error)return f}return null}return f(t)}function b(e){function n(t,n,r,o,i){for(var u=0;u<e.length;u++){var c=e[u];if(null==c(t,n,r,o,i,a))return null}return new l("Invalid "+o+" `"+i+"` supplied to "+("`"+r+"`."))}return Array.isArray(e)?f(n):("production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,r.thatReturnsNull)}function w(){function e(e,t,n,r,o){return S(e[t])?null:new l("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return f(e)}function O(e){function t(t,n,r,o,i){var u=t[n],c=E(u);if("object"!==c)return new l("Invalid "+o+" `"+i+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var s in e){var f=e[s];if(f){var p=f(u,s,r,o,i+"."+s,a);if(p)return p}}return null}return f(t)}function S(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(S);if(null===t||e(t))return!0;var n=c(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!S(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!S(i[1]))return!1}return!0;default:return!1}}function _(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function E(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":_(t,e)?"symbol":t}function k(e){var t=E(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function P(e){return e.constructor&&e.constructor.name?e.constructor.name:A}var x="function"==typeof Symbol&&Symbol.iterator,j="@@iterator",A="<<anonymous>>",T={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:d(),arrayOf:y,element:g(),instanceOf:v,node:w(),objectOf:m,oneOf:h,oneOfType:b,shape:O};return l.prototype=Error.prototype,T.checkPropTypes=u,T.PropTypes=T,T}}).call(t,n(1))},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},i=!0;e.exports=n(17)(o,i)}else e.exports=n(16)()}).call(t,n(1))},function(e,t,n){(function(t){/** @license React v16.2.0
* react.development.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
;"production"!==t.env.NODE_ENV&&!function(){function t(e){if(null===e||"undefined"==typeof e)return null;var t=te&&e[te]||e[ne];return"function"==typeof t?t:null}function r(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;ae[o]||(K(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op.\n\nPlease check the code for the %s component.",t,t,r),ae[o]=!0)}function o(e,t,n){this.props=e,this.context=t,this.refs=B,this.updater=n||ue}function i(e,t,n){this.props=e,this.context=t,this.refs=B,this.updater=n||ue}function a(){}function u(e,t,n){this.props=e,this.context=t,this.refs=B,this.updater=n||ue}function c(e){if(ve.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function s(e){if(ve.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function l(e,t){var n=function(){de||(de=!0,K(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function f(e,t){var n=function(){ye||(ye=!0,K(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function p(e,t,n){var r,o={},i=null,a=null,u=null,p=null;if(null!=t){c(t)&&(a=t.ref),s(t)&&(i=""+t.key),u=void 0===t.__self?null:t.__self,p=void 0===t.__source?null:t.__source;for(r in t)ve.call(t,r)&&!he.hasOwnProperty(r)&&(o[r]=t[r])}var d=arguments.length-2;if(1===d)o.children=n;else if(d>1){for(var y=Array(d),g=0;g<d;g++)y[g]=arguments[g+2];Object.freeze&&Object.freeze(y),o.children=y}if(e&&e.defaultProps){var v=e.defaultProps;for(r in v)void 0===o[r]&&(o[r]=v[r])}if((i||a)&&("undefined"==typeof o.$$typeof||o.$$typeof!==J)){var h="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&l(o,h),a&&f(o,h)}return me(e,i,a,u,p,ge.current,o)}function d(e,t){var n=me(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n}function y(e,t,n){var r,o=V({},e.props),i=e.key,a=e.ref,u=e._self,l=e._source,f=e._owner;if(null!=t){c(t)&&(a=t.ref,f=ge.current),s(t)&&(i=""+t.key);var p;e.type&&e.type.defaultProps&&(p=e.type.defaultProps);for(r in t)ve.call(t,r)&&!he.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==p?o[r]=p[r]:o[r]=t[r])}var d=arguments.length-2;if(1===d)o.children=n;else if(d>1){for(var y=Array(d),g=0;g<d;g++)y[g]=arguments[g+2];o.children=y}return me(e.type,i,a,u,l,f,o)}function g(e){return"object"==typeof e&&null!==e&&e.$$typeof===J}function v(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function h(e){return(""+e).replace(_e,"$&/")}function m(e,t,n,r){if(ke.length){var o=ke.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function b(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,ke.length<Ee&&ke.push(e)}function w(e,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case J:case Q:case X:case Z:a=!0}}if(a)return r(o,e,""===n?we+S(e,0):n),1;var u,c,s=0,l=""===n?we:n+Oe;if(Array.isArray(e))for(var f=0;f<e.length;f++)u=e[f],c=l+S(u,f),s+=w(u,c,r,o);else{var p=t(e);if("function"==typeof p){p===e.entries&&(K(Se,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s",be.getStackAddendum()),Se=!0);for(var d,y=p.call(e),g=0;!(d=y.next()).done;)u=d.value,c=l+S(u,g++),s+=w(u,c,r,o)}else if("object"===i){var v="";v=" If you meant to render a collection of children, use an array instead."+be.getStackAddendum();var h=""+e;W(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===h?"object with keys {"+Object.keys(e).join(", ")+"}":h,v)}}return s}function O(e,t,n){return null==e?0:w(e,"",t,n)}function S(e,t){return"object"==typeof e&&null!==e&&null!=e.key?v(e.key):t.toString(36)}function _(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function E(e,t,n){if(null==e)return e;var r=m(null,null,t,n);O(e,_,r),b(r)}function k(e,t,n){var r=e.result,o=e.keyPrefix,i=e.func,a=e.context,u=i.call(a,t,e.count++);Array.isArray(u)?P(u,r,n,Y.thatReturnsArgument):null!=u&&(g(u)&&(u=d(u,o+(!u.key||t&&t.key===u.key?"":h(u.key)+"/")+n)),r.push(u))}function P(e,t,n,r,o){var i="";null!=n&&(i=h(n)+"/");var a=m(t,i,r,o);O(e,k,a),b(a)}function x(e,t,n){if(null==e)return e;var r=[];return P(e,r,null,t,n),r}function j(e,t){return O(e,Y.thatReturnsNull,null)}function A(e){var t=[];return P(e,t,null,Y.thatReturnsArgument),t}function T(e){return g(e)?void 0:W(!1,"React.Children.only expected to receive a single React element child."),e}function R(e){var t=e.type;return"string"==typeof t?t:"function"==typeof t?t.displayName||t.name:null}function I(){if(ge.current){var e=R(ge.current);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function N(e){if(null!==e&&void 0!==e&&void 0!==e.__source){var t=e.__source,n=t.fileName.replace(/^.*[\\\/]/,""),r=t.lineNumber;return"\n\nCheck your code at "+n+":"+r+"."}return""}function C(e){var t=I();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}function D(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=C(t);if(!Ie[n]){Ie[n]=!0;var r="";e&&e._owner&&e._owner!==ge.current&&(r=" It was passed a child from "+R(e._owner)+"."),xe=e,K(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',n,r,Te()),xe=null}}}function U(e,n){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var o=e[r];g(o)&&D(o,n)}else if(g(e))e._store&&(e._store.validated=!0);else if(e){var i=t(e);if("function"==typeof i&&i!==e.entries)for(var a,u=i.call(e);!(a=u.next()).done;)g(a.value)&&D(a.value,n)}}function M(e){var t=e.type;if("function"==typeof t){var n=t.displayName||t.name,r=t.propTypes;r?(xe=e,z(r,e.props,"prop",n,Te),xe=null):void 0===t.PropTypes||je||(je=!0,K(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"==typeof t.getDefaultProps&&K(t.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function F(e){xe=e;var t=!0,n=!1,r=void 0;try{for(var o,i=Object.keys(e.props)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=o.value;if(!Re.has(a)){K(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s",a,Te());break}}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}null!==e.ref&&K(!1,"Invalid attribute `ref` supplied to `React.Fragment`.%s",Te()),xe=null}function $(e,t,n){var r="string"==typeof e||"function"==typeof e||"symbol"==typeof e||"number"==typeof e;if(!r){var o="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var i=N(t);o+=i?i:I(),o+=Te()||"",K(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==e?e:typeof e,o)}var a=p.apply(this,arguments);if(null==a)return a;if(r)for(var u=2;u<arguments.length;u++)U(arguments[u],e);return"symbol"==typeof e&&e===ee?F(a):M(a),a}function q(e){var t=$.bind(null,e);return t.type=e,Object.defineProperty(t,"type",{enumerable:!1,get:function(){return ie(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}function L(e,t,n){for(var r=y.apply(this,arguments),o=2;o<arguments.length;o++)U(arguments[o],r.type);return M(r),r}var V=n(10),B=n(5),W=n(6),K=n(7),Y=n(2),z=n(22),G="16.2.0",H="function"==typeof Symbol&&Symbol.for,J=H?Symbol.for("react.element"):60103,Q=H?Symbol.for("react.call"):60104,X=H?Symbol.for("react.return"):60105,Z=H?Symbol.for("react.portal"):60106,ee=H?Symbol.for("react.fragment"):60107,te="function"==typeof Symbol&&Symbol.iterator,ne="@@iterator",re=function(){},oe=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(e){}};re=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];oe.apply(void 0,[t].concat(r))}};var ie=re,ae={},ue={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){r(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,o){r(e,"replaceState")},enqueueSetState:function(e,t,n,o){r(e,"setState")}};o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?W(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):void 0,this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var ce={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},se=function(e,t){Object.defineProperty(o.prototype,e,{get:function(){ie(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var le in ce)ce.hasOwnProperty(le)&&se(le,ce[le]);a.prototype=o.prototype;var fe=i.prototype=new a;fe.constructor=i,V(fe,o.prototype),fe.isPureReactComponent=!0;var pe=u.prototype=new a;pe.constructor=u,V(pe,o.prototype),pe.unstable_isAsyncReactComponent=!0,pe.render=function(){return this.props.children};var de,ye,ge={current:null},ve=Object.prototype.hasOwnProperty,he={key:!0,ref:!0,__self:!0,__source:!0},me=function(e,t,n,r,o,i,a){var u={$$typeof:J,type:e,key:t,ref:n,props:a,_owner:i};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u},be={};be.getCurrentStack=null,be.getStackAddendum=function(){var e=be.getCurrentStack;return e?e():null};var we=".",Oe=":",Se=!1,_e=/\/+/g,Ee=10,ke=[],Pe=function(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")},xe=null,je=!1,Ae=function(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type===ee?"React.Fragment":e.type.displayName||e.type.name||"Unknown"},Te=function(){var e="";if(xe){var t=Ae(xe),n=xe._owner;e+=Pe(t,xe._source,n&&R(n))}return e+=be.getStackAddendum()||""},Re=new Map([["children",!0],["key",!0]]),Ie={},Ne={Children:{map:x,forEach:E,count:j,toArray:A,only:T},Component:o,PureComponent:i,unstable_AsyncComponent:u,Fragment:ee,createElement:$,cloneElement:L,createFactory:q,isValidElement:g,version:G,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:ge,assign:V}};V(Ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,{ReactDebugCurrentFrame:be,ReactComponentTreeHook:{}});var Ce=Object.freeze({default:Ne}),De=Ce&&Ne||Ce,Ue=De.default?De.default:De;e.exports=Ue}()}).call(t,n(1))},function(e,t,n){/** @license React v16.2.0
* react.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
;function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function o(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||j}function i(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||j}function a(){}function u(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||j}function c(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)I.call(t,r)&&!N.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];o.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:S,type:e,key:i,ref:a,props:o,_owner:R.current}}function s(e){return"object"==typeof e&&null!==e&&e.$$typeof===S}function l(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function f(e,t,n,r){if(D.length){var o=D.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function p(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>D.length&&D.push(e)}function d(e,t,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case S:case _:case E:case k:a=!0}}if(a)return n(o,e,""===t?"."+y(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;u<e.length;u++){i=e[u];var c=t+y(i,u);a+=d(i,c,n,o)}else if(null===e||"undefined"==typeof e?c=null:(c=x&&e[x]||e["@@iterator"],c="function"==typeof c?c:null),"function"==typeof c)for(e=c.call(e),u=0;!(i=e.next()).done;)i=i.value,c=t+y(i,u++),a+=d(i,c,n,o);else"object"===i&&(n=""+e,r("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function y(e,t){return"object"==typeof e&&null!==e&&null!=e.key?l(e.key):t.toString(36)}function g(e,t){e.func.call(e.context,t,e.count++)}function v(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?h(e,r,n,w.thatReturnsArgument):null!=e&&(s(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(C,"$&/")+"/")+n,e={$$typeof:S,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function h(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(C,"$&/")+"/"),t=f(t,i,r,o),null==e||d(e,"",v,t),p(t)}var m=n(10),b=n(5),w=n(2),O="function"==typeof Symbol&&Symbol.for,S=O?Symbol.for("react.element"):60103,_=O?Symbol.for("react.call"):60104,E=O?Symbol.for("react.return"):60105,k=O?Symbol.for("react.portal"):60106,P=O?Symbol.for("react.fragment"):60107,x="function"==typeof Symbol&&Symbol.iterator,j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?r("85"):void 0,this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},a.prototype=o.prototype;var A=i.prototype=new a;A.constructor=i,m(A,o.prototype),A.isPureReactComponent=!0;var T=u.prototype=new a;T.constructor=u,m(T,o.prototype),T.unstable_isAsyncReactComponent=!0,T.render=function(){return this.props.children};var R={current:null},I=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0},C=/\/+/g,D=[],U={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return h(e,r,null,t,n),r},forEach:function(e,t,n){return null==e?e:(t=f(null,null,t,n),null==e||d(e,"",g,t),void p(t))},count:function(e){return null==e?0:d(e,"",w.thatReturnsNull,null)},toArray:function(e){var t=[];return h(e,t,null,w.thatReturnsArgument),t},only:function(e){return s(e)?void 0:r("143"),e}},Component:o,PureComponent:i,unstable_AsyncComponent:u,Fragment:P,createElement:c,cloneElement:function(e,t,n){var r=m({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=R.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)I.call(t,c)&&!N.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){u=Array(c);for(var s=0;s<c;s++)u[s]=arguments[s+2];r.children=u}return{$$typeof:S,type:e.type,key:o,ref:i,props:r,_owner:a}},createFactory:function(e){var t=c.bind(null,e);return t.type=e,t},isValidElement:s,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:R,assign:m}},M=Object.freeze({default:U}),F=M&&U||M;e.exports=F.default?F.default:F},function(e,t,n){(function(t){"use strict";"production"===t.env.NODE_ENV?e.exports=n(20):e.exports=n(19)}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,n,r,c,s){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var f;try{o("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",r,l,typeof e[l]),f=e[l](n,l,c,r,null,a)}catch(e){f=e}if(i(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",r,l,typeof f),f instanceof Error&&!(f.message in u)){u[f.message]=!0;var p=s?s():"";i(!1,"Failed %s type: %s%s",r,f.message,null!=p?p:"")}}}if("production"!==t.env.NODE_ENV)var o=n(6),i=n(7),a=n(23),u={};e.exports=r}).call(t,n(1))},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n}])});
//# sourceMappingURL=index.umd.min.js.map