ukey1-react-sdk
Version:
Ukey1 SDK for React apps
13 lines • 83 kB
JavaScript
!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";e.exports=n(1)},function(e,t,n){(function(t){"use strict";function r(e){return s("options",e,"object",!0),s("options.appId",e.appId,"string",!0),e.sdkVersion=h,e.host||(e.host=y),e}function o(){}var i=n(3),a=n(6),s=n(7),u=n(8),c=n(9),l=n(10),p=n(69),f=n(70),h="2.0.0",d="_ukey1",y="https://api.ukey.one";o.prototype.connect=function(e){var n=r(e),o=n.requestId=a();if(!t.browser)throw new Error("This library is available only in browser");new l(n).execute(function(e){var t=(new i).sessionStorage(),r=e.gateway;n.signup&&(r+=(r.search(/\?/)>=0?"&":"?")+"signup=1"),t.save("ukey1",{requestId:o,connectId:e.connect_id}),window.location=r})},o.prototype.accessToken=function(e){var t,n,o,a=r(e),l=(new i).sessionStorage(),h=l.read("ukey1");if(s("options.success",a.success,"function",!0),s("options.finished",a.finished,"function",!0),!h)return console.log("No requestId and connectId in device storage"),a.finished(!1),!1;if(l["delete"]("ukey1"),a.requestId=h.requestId+"",a.connectId=h.connectId+"",t=u(d+"[request_id]"),n=u(d+"[connect_id]"),o=u(d+"[result]"),a.authCode=u(d+"[code]"),!t||t!==a.requestId)return console.log("Invalid requestId"),a.finished(!1),!1;if(!n||n!==a.connectId)return console.log("Invalid connectId"),a.finished(!1),!1;if("authorized"!==o)return console.log("User has canceled the request"),a.finished(!1),!1;try{new p(a).execute(function(e){a.accessToken=e.access_token,new f(a).execute(function(e){a.success(e.user,new c(e.user)),a.finished(!0)})})}catch(y){throw a.finished(!1),y}},o.prototype.parseUserData=function(e){return new c(e)},e.exports=o}).call(t,n(2))},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(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){y&&h&&(y=!1,h.length?d=h.concat(d):m=-1,d.length&&s())}function s(){if(!y){var e=o(a);y=!0;for(var t=d.length;t;){for(h=d,d=[];++m<t;)h&&h[m].run();m=-1,t=d.length}h=null,y=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,p,f=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var h,d=[],y=!1,m=-1;f.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];d.push(new u(e,t)),1!==d.length||y||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=c,f.addListener=c,f.once=c,f.off=c,f.removeListener=c,f.removeAllListeners=c,f.emit=c,f.prependListener=c,f.prependOnceListener=c,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){"use strict";e.exports=n(4)},function(e,t,n){(function(t,r){"use strict";function o(e){if(!e)throw new Error("No storage version.")}function i(e){"object"!=typeof e&&(e={}),e.cookieFallback!==!0&&e.cookieFallback!==!1&&(e.cookieFallback=!0);var t={};"object"==typeof e.cookie&&("string"==typeof e.cookie.path?t.path=e.cookie.path:t.path="/","number"==typeof e.cookie.maxAge?t.maxAge=e.cookie.maxAge:t.maxAge=2592e3,"string"==typeof e.cookie.domain&&(t.domain=e.cookie.domain),"boolean"==typeof e.cookie.secure&&(t.secure=e.cookie.secure)),this.o=e,this.o.cookie=t,this.v=0,this.ls,this.ss}var a=n(5),s="localStorage"in t,u="sessionStorage"in t,c="rds_react",l=1,p=2,f=3,h={};i.prototype._storageVersion=function(e){var n=[c+"test","test"].join("_"),o="Required storage version is not supported. You can enable cookieFallback.";try{if(r.browser){if(e===p&&!s||e===f&&!u)throw new Error(o);e===p&&(this.ls=t.localStorage,this.ls.setItem(n,1),this.ls.removeItem(n)),e===f&&(this.ss=t.sessionStorage,this.ss.setItem(n,1),this.ss.removeItem(n))}else console.log("The package runs out of browser - simulation enabled.")}catch(i){if(!this.o.cookieFallback)throw new Error(o);e=l}return e},i.prototype.cookies=function(){return this.v=this._storageVersion(l),this},i.prototype.localStorage=function(){return this.v=this._storageVersion(p),this},i.prototype.sessionStorage=function(){return this.v=this._storageVersion(f),this},i.prototype.save=function(e,t){o(this.v);var n=[c,e].join("_"),i=JSON.stringify(t);if(r.browser)try{switch(this.v){case p:this.ls.setItem(n,i);break;case f:this.ss.setItem(n,i);break;case l:document.cookie=a.serialize(n,i,this.o.cookie)}}catch(s){throw new Error("Unable to save data.")}else h[n]=i},i.prototype.read=function(e){o(this.v);var t,n,i,s=[c,e].join("_");if(r.browser)try{switch(this.v){case p:n=this.ls.getItem(s);break;case f:n=this.ss.getItem(s);break;case l:i=a.parse(document.cookie),n=i&&i[s]}}catch(u){throw new Error("Unable to read data.")}else"storageKey"in h&&(n=h[s]);if(n)try{t=JSON.parse(n)}catch(u){throw new Error("Unable to parse data.")}return t},i.prototype["delete"]=function(e){o(this.v);var t=[c,e].join("_"),n={};if(r.browser)try{switch(this.v){case p:this.ls.removeItem(t);break;case f:this.ss.removeItem(t);break;case l:n=this.o.cookie,n.maxAge=0,n.expires=new Date(1970,1,1,0,0,1),document.cookie=a.serialize(t,"",n)}}catch(i){throw new Error("Unable to delete data.")}else"storageKey"in h&&delete h[t]},e.exports=i}).call(t,function(){return this}(),n(2))},function(e,t){/*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
"use strict";function n(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},r=t||{},a=e.split(s),u=r.decode||i,c=0;c<a.length;c++){var l=a[c],p=l.indexOf("=");if(!(0>p)){var f=l.substr(0,p).trim(),h=l.substr(++p,l.length).trim();'"'==h[0]&&(h=h.slice(1,-1)),void 0==n[f]&&(n[f]=o(h,u))}}return n}function r(e,t,n){var r=n||{},o=r.encode||a;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!u.test(e))throw new TypeError("argument name is invalid");var i=o(t);if(i&&!u.test(i))throw new TypeError("argument val is invalid");var s=e+"="+i;if(null!=r.maxAge){var c=r.maxAge-0;if(isNaN(c))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(c)}if(r.domain){if(!u.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!u.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var l="string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return s}function o(e,t){try{return t(e)}catch(n){return e}}t.parse=n,t.serialize=r;var i=decodeURIComponent,a=encodeURIComponent,s=/; */,u=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},function(e,t){"use strict";function n(){return Math.random().toString(36).substr(2,10)+"-"+(new Date).getTime()}e.exports=n},function(e,t){"use strict";function n(e,t,o,i,a){if("array"===o){if(i&&!t||t&&"[object Array]"!==Object.prototype.toString.call(t))throw new Error("Unknown/invalid `"+e+"` ("+o+" required)")}else if("function"===o){if(i&&!t||t&&"[object Function]"!==Object.prototype.toString.call(t))throw new Error("Unknown/invalid `"+e+"` ("+o+" required)")}else if(i&&!t||t&&("undefined"==typeof t?"undefined":r(t))!==o)throw new Error("Unknown/invalid `"+e+"` ("+o+" required)");if("string"===o&&a&&(n("checkOption(attribute a)",a,"array",!1),a.indexOf(t)<0))throw new Error("Unknown/invalid `"+e+"` (possible values are ["+a.join(",")+"])")}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=n},function(e,t){"use strict";function n(e,t){var n,r;return t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&"),n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),r=n.exec(t),r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}e.exports=n},function(e,t){"use strict";function n(e){this.rawData=e}n.prototype.id=function(){return this.rawData.id},n.prototype.firstname=function(){return this.rawData.firstname},n.prototype.surname=function(){return this.rawData.surname},n.prototype.language=function(){return this.rawData.language},n.prototype.country=function(){return this.rawData.country},n.prototype.email=function(){return this.rawData.email},n.prototype.image=function(){return this.rawData.image},n.prototype.get=function(e){return this.rawData[e]},e.exports=n},function(e,t,n){"use strict";function r(e){return i("options.requestId",e.requestId,"string",!0),i("options.returnUrl",e.returnUrl,"string",!0),i("options.scope",e.scope,"array",!1),e}function o(e){this.o=r(e)}var i=n(7),a=n(11),s="/auth/v2/connect";o.prototype.execute=function(e){var t,n;i("execute(attribute callback)",e,"function",!0),this.o.method="POST",this.o.endpoint=s,t=new a(this.o),n={request_id:this.o.requestId,scope:this.o.scope,return_url:this.o.returnUrl},t.send(n,function(t){if(!(t.body.result>=200&&t.body.result<300))throw new Error(t.body.debug.message);e(t.body)})},e.exports=o},function(e,t,n){"use strict";function r(e){return a("options",e,"object",!0),a("options.appId",e.appId,"string",!0),a("options.host",e.host,"string",!0),a("options.sdkVersion",e.sdkVersion,"string",!0),a("options.method",e.method,"string",!0,["GET","POST"]),a("options.endpoint",e.endpoint,"string",!0),a("options.accessToken",e.accessToken,"string",!1),e}function o(e){this.o=r(e)}var i=n(12),a=n(7),s=n(47),u=5e3,c="ukey1-react-sdk/",l="Bearer ";o.prototype.prepareHeaders=function(e){return e["User-Agent"]=this.prepareUserAgent(),e["x-ukey1-app"]=this.o.appId,this.o.accessToken&&(e.Authorization=l+this.o.accessToken),e},o.prototype.prepareUserAgent=function(){return c+this.o.sdkVersion+" React.js/"+i.version+(navigator?" "+navigator.userAgent:"")},o.prototype.checkResult=function(e){var t={};if(!e.body.result)throw t=new Error("Invalid response structure"),t.response=e,t;if(e.body.result!==e.status)throw t=new Error("Unexpected HTTP status "+e.status),t.response=e,t;return e},o.prototype.send=function(e,t){var n={},r={};r=this.prepareHeaders(r),n.url=this.o.host+this.o.endpoint,n.method=this.o.method,n.timeout=u,e&&(r["Content-Type"]="application/json",n.body=e),n.headers=r,s.request(n).use(s.plugins.parse("json")).then(this.checkResult).then(t)["catch"](function(e){throw console.log("Request failed"),e})},e.exports=o},function(e,t,n){"use strict";e.exports=n(13)},function(e,t,n){(function(t){"use strict";var r=n(14),o=n(15),i=n(24),a=n(32),s=n(26),u=n(38),c=n(43),l=n(44),p=n(46),f=s.createElement,h=s.createFactory,d=s.cloneElement;if("production"!==t.env.NODE_ENV){var y=n(23),m=n(20),v=n(33),g=!1;f=v.createElement,h=v.createFactory,d=v.cloneElement}var b=r,w=function(e){return e};if("production"!==t.env.NODE_ENV){var E=!1,_=!1;b=function(){return y(E,"React.__spread is deprecated and should not be used. Use Object.assign directly or another helper function with similar semantics. You may be seeing this warning due to your compiler. See https://fb.me/react-spread-deprecation for more details."),E=!0,r.apply(null,arguments)},w=function(e){return y(_,"React.createMixin is deprecated and should not be used. In React v16.0, it will be removed. You can use this mixin directly instead. See https://fb.me/createmixin-was-never-implemented for more info."),_=!0,e}}var O={Children:{map:i.map,forEach:i.forEach,count:i.count,toArray:i.toArray,only:p},Component:o.Component,PureComponent:o.PureComponent,createElement:f,cloneElement:d,isValidElement:s.isValidElement,PropTypes:u,createClass:l,createFactory:h,createMixin:w,DOM:a,version:c,__spread:b};if("production"!==t.env.NODE_ENV){var N=!1;m&&(Object.defineProperty(O,"PropTypes",{get:function(){return y(g,"Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs"),g=!0,u}}),Object.defineProperty(O,"createClass",{get:function(){return y(N,"Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class"),N=!0,l}})),O.DOM={};var x=!1;Object.keys(a).forEach(function(e){O.DOM[e]=function(){return x||(y(!1,"Accessing factories like React.DOM.%s has been deprecated and will be removed in v16.0+. Use the react-dom-factories package instead. Version 1.0 provides a drop-in replacement. For more info, see https://fb.me/react-dom-factories",e),x=!0),a[e].apply(a,arguments)}})}e.exports=O}).call(t,n(2))},function(e,t){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";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;10>n;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("")?!1:!0}catch(i){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,s,u=n(e),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var l in r)i.call(r,l)&&(u[l]=r[l]);if(o){s=o(r);for(var p=0;p<s.length;p++)a.call(r,s[p])&&(u[s[p]]=r[s[p]])}}return u}},function(e,t,n){(function(t){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||u}function o(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||u}function i(){}var a=n(16),s=n(14),u=n(17),c=n(20),l=n(21),p=n(22),f=n(23);if(r.prototype.isReactComponent={},r.prototype.setState=function(e,n){"object"!=typeof e&&"function"!=typeof e&&null!=e?"production"!==t.env.NODE_ENV?p(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):a("85"):void 0,this.updater.enqueueSetState(this,e),n&&this.updater.enqueueCallback(this,n,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")},"production"!==t.env.NODE_ENV){var h={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)."]},d=function(e,t){c&&Object.defineProperty(r.prototype,e,{get:function(){return void f(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var y in h)h.hasOwnProperty(y)&&d(y,h[y])}i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,s(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,e.exports={Component:r,PureComponent:o}}).call(t,n(2))},function(e,t){"use strict";function n(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;t>r;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,n){if("production"!==t.env.NODE_ENV){var r=e.constructor;"production"!==t.env.NODE_ENV?o(!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. Please check the code for the %s component.",n,n,r&&(r.displayName||r.name)||"ReactClass"):void 0}}var o=n(18),i={isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}};e.exports=i}).call(t,n(2))},function(e,t,n){(function(t){"use strict";var r=n(19),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;t>r;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(a){}};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;n>o;o++)r[o-2]=arguments[o];i.apply(void 0,[t].concat(r))}}}e.exports=o}).call(t,n(2))},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";var n=!1;if("production"!==t.env.NODE_ENV)try{Object.defineProperty({},"x",{get:function(){}}),n=!0}catch(r){}e.exports=n}).call(t,n(2))},function(e,t,n){(function(t){"use strict";var n={};"production"!==t.env.NODE_ENV&&Object.freeze(n),e.exports=n}).call(t,n(2))},function(e,t,n){(function(t){"use strict";function n(e,t,n,o,i,a,s,u){if(r(t),!e){var c;if(void 0===t)c=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,s,u],p=0;c=new Error(t.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}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(2))},function(e,t,n){(function(t){"use strict";var n=function(){};if("production"!==t.env.NODE_ENV){var r=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=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(a){}};n=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,o=Array(n>2?n-2:0),i=2;n>i;i++)o[i-2]=arguments[i];r.apply(void 0,[t].concat(o))}}}e.exports=n}).call(t,n(2))},function(e,t,n){"use strict";function r(e){return(""+e).replace(w,"$&/")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);v(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?c(u,o,n,m.thatReturnsArgument):null!=u&&(y.isValidElement(u)&&(u=y.cloneAndReplaceKey(u,i+(!u.key||t&&t.key===u.key?"":r(u.key)+"/")+n)),o.push(u))}function c(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var c=s.getPooled(t,a,o,i);v(e,u,c),s.release(c)}function l(e,t,n){if(null==e)return e;var r=[];return c(e,r,null,t,n),r}function p(e,t,n){return null}function f(e,t){return v(e,p,null)}function h(e){var t=[];return c(e,t,null,m.thatReturnsArgument),t}var d=n(25),y=n(26),m=n(19),v=n(29),g=d.twoArgumentPooler,b=d.fourArgumentPooler,w=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},d.addPoolingTo(o,g),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d.addPoolingTo(s,b);var E={forEach:a,map:l,mapIntoWithKeyPrefixInternal:c,count:f,toArray:h};e.exports=E},function(e,t,n){(function(t){"use strict";var r=n(16),o=n(22),i=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},a=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)},s=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)},u=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},c=function(e){var n=this;e instanceof n?void 0:"production"!==t.env.NODE_ENV?o(!1,"Trying to release an instance into a pool of a different type."):r("25"),e.destructor(),n.instancePool.length<n.poolSize&&n.instancePool.push(e)},l=10,p=i,f=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||p,n.poolSize||(n.poolSize=l),n.release=c,n},h={addPoolingTo:f,oneArgumentPooler:i,twoArgumentPooler:a,threeArgumentPooler:s,fourArgumentPooler:u};e.exports=h}).call(t,n(2))},function(e,t,n){(function(t){"use strict";function r(e){if("production"!==t.env.NODE_ENV&&h.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return void 0!==e.ref}function o(e){if("production"!==t.env.NODE_ENV&&h.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}function i(e,n){var r=function(){s||(s=!0,"production"!==t.env.NODE_ENV?p(!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)",n):void 0)};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function a(e,n){var r=function(){u||(u=!0,"production"!==t.env.NODE_ENV?p(!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)",n):void 0)};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}var s,u,c=n(14),l=n(27),p=n(18),f=n(20),h=Object.prototype.hasOwnProperty,d=n(28),y={key:!0,ref:!0,__self:!0,__source:!0},m=function(e,n,r,o,i,a,s){var u={$$typeof:d,type:e,key:n,ref:r,props:s,_owner:a};return"production"!==t.env.NODE_ENV&&(u._store={},f?(Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i})):(u._store.validated=!1,u._self=o,u._source=i),Object.freeze&&(Object.freeze(u.props),Object.freeze(u))),u};m.createElement=function(e,n,s){var u,c={},p=null,f=null,v=null,g=null;if(null!=n){r(n)&&(f=n.ref),o(n)&&(p=""+n.key),v=void 0===n.__self?null:n.__self,g=void 0===n.__source?null:n.__source;for(u in n)h.call(n,u)&&!y.hasOwnProperty(u)&&(c[u]=n[u])}var b=arguments.length-2;if(1===b)c.children=s;else if(b>1){for(var w=Array(b),E=0;b>E;E++)w[E]=arguments[E+2];"production"!==t.env.NODE_ENV&&Object.freeze&&Object.freeze(w),c.children=w}if(e&&e.defaultProps){var _=e.defaultProps;for(u in _)void 0===c[u]&&(c[u]=_[u])}if("production"!==t.env.NODE_ENV&&(p||f)&&("undefined"==typeof c.$$typeof||c.$$typeof!==d)){var O="function"==typeof e?e.displayName||e.name||"Unknown":e;p&&i(c,O),f&&a(c,O)}return m(e,p,f,v,g,l.current,c)},m.createFactory=function(e){var t=m.createElement.bind(null,e);return t.type=e,t},m.cloneAndReplaceKey=function(e,t){var n=m(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},m.cloneElement=function(e,t,n){var i,a=c({},e.props),s=e.key,u=e.ref,p=e._self,f=e._source,d=e._owner;if(null!=t){r(t)&&(u=t.ref,d=l.current),o(t)&&(s=""+t.key);var v;e.type&&e.type.defaultProps&&(v=e.type.defaultProps);for(i in t)h.call(t,i)&&!y.hasOwnProperty(i)&&(void 0===t[i]&&void 0!==v?a[i]=v[i]:a[i]=t[i])}var g=arguments.length-2;if(1===g)a.children=n;else if(g>1){for(var b=Array(g),w=0;g>w;w++)b[w]=arguments[w+2];a.children=b}return m(e.type,s,u,p,f,d,a)},m.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===d},e.exports=m}).call(t,n(2))},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?p.escape(e.key):t.toString(36)}function o(e,n,i,m){var v=typeof e;if(("undefined"===v||"boolean"===v)&&(e=null),null===e||"string"===v||"number"===v||"object"===v&&e.$$typeof===u)return i(m,e,""===n?h+r(e,0):n),1;var g,b,w=0,E=""===n?h:n+d;if(Array.isArray(e))for(var _=0;_<e.length;_++)g=e[_],b=E+r(g,_),w+=o(g,b,i,m);else{var O=c(e);if(O){var N,x=O.call(e);if(O!==e.entries)for(var k=0;!(N=x.next()).done;)g=N.value,b=E+r(g,k++),w+=o(g,b,i,m);else{if("production"!==t.env.NODE_ENV){var j="";if(s.current){var D=s.current.getName();D&&(j=" Check the render method of `"+D+"`.")}"production"!==t.env.NODE_ENV?f(y,"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.%s",j):void 0,y=!0}for(;!(N=x.next()).done;){var P=N.value;P&&(g=P[1],b=E+p.escape(P[0])+d+r(g,0),w+=o(g,b,i,m))}}}else if("object"===v){var I="";if("production"!==t.env.NODE_ENV&&(I=" If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",e._isReactElement&&(I=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),s.current)){var S=s.current.getName();S&&(I+=" Check the render method of `"+S+"`.")}var T=String(e);"production"!==t.env.NODE_ENV?l(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===T?"object with keys {"+Object.keys(e).join(", ")+"}":T,I):a("31","[object Object]"===T?"object with keys {"+Object.keys(e).join(", ")+"}":T,I)}}return w}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=n(16),s=n(27),u=n(28),c=n(30),l=n(22),p=n(31),f=n(18),h=".",d=":",y=!1;e.exports=i}).call(t,n(2))},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);return"function"==typeof t?t:void 0}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t){"use strict";function n(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var o={escape:n,unescape:r};e.exports=o},function(e,t,n){(function(t){"use strict";var r=n(26),o=r.createFactory;if("production"!==t.env.NODE_ENV){var i=n(33);o=i.createFactory}var a={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),"var":o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};e.exports=a}).call(t,n(2))},function(e,t,n){(function(t){"use strict";function r(){if(c.current){var e=c.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e){if(null!==e&&void 0!==e&&void 0!==e.__source){var t=e.__source,n=t.fileName.replace(/^.*[\\\/]/,""),r=t.lineNumber;return" Check your code at "+n+":"+r+"."}return""}function i(e){var t=r();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t=" Check the top-level render call using <"+n+">.")}return t}function a(e,n){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=v.uniqueKey||(v.uniqueKey={}),o=i(n);if(!r[o]){r[o]=!0;var a="";e&&e._owner&&e._owner!==c.current&&(a=" It was passed a child from "+e._owner.getName()+"."),"production"!==t.env.NODE_ENV?y(!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',o,a,l.getCurrentStackAddendum(e)):void 0}}}function s(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];p.isValidElement(r)&&a(r,t)}else if(p.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var o=d(e);if(o&&o!==e.entries)for(var i,s=o.call(e);!(i=s.next()).done;)p.isValidElement(i.value)&&a(i.value,t)}}function u(e){var n=e.type;if("function"==typeof n){var r=n.displayName||n.name;n.propTypes&&f(n.propTypes,e.props,"prop",r,e,null),"function"==typeof n.getDefaultProps&&("production"!==t.env.NODE_ENV?y(n.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."):void 0)}}var c=n(27),l=n(34),p=n(26),f=n(35),h=n(20),d=n(30),y=n(18),m=n(23),v={},g={createElement:function(e,n,i){var a="string"==typeof e||"function"==typeof e;if(!a&&"function"!=typeof e&&"string"!=typeof e){var c="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(c+=" You likely forgot to export your component from the file it's defined in.");var f=o(n);c+=f?f:r(),c+=l.getCurrentStackAddendum();var h=null!==n&&void 0!==n&&void 0!==n.__source?n.__source:null;l.pushNonStandardWarningStack(!0,h),"production"!==t.env.NODE_ENV?y(!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,c):void 0,l.popNonStandardWarningStack()}var d=p.createElement.apply(this,arguments);if(null==d)return d;if(a)for(var m=2;m<arguments.length;m++)s(arguments[m],e);return u(d),d},createFactory:function(e){var n=g.createElement.bind(null,e);return n.type=e,"production"!==t.env.NODE_ENV&&h&&Object.defineProperty(n,"type",{enumerable:!1,get:function(){return m(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),n},cloneElement:function(e,t,n){for(var r=p.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)s(arguments[o],r.type);return u(r),r}};e.exports=g}).call(t,n(2))},function(e,t,n){(function(t){"use strict";function r(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,r=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var o=t.call(e);return r.test(o)}catch(i){return!1}}function o(e){var t=c(e);if(t){var n=t.childIDs;l(e),n.forEach(o)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function s(e){var n,r=j.getDisplayName(e),o=j.getElement(e),a=j.getOwnerID(e);return a&&(n=j.getDisplayName(a)),"production"!==t.env.NODE_ENV?g(o,"ReactComponentTreeHook: Missing React element for debugID %s when building stack",e):void 0,i(r,o&&o._source,n)}var u,c,l,p,f,h,d,y=n(16),m=n(27),v=n(22),g=n(18),b="function"==typeof Array.from&&"function"==typeof Map&&r(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&r(Map.prototype.keys)&&"function"==typeof Set&&r(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&r(Set.prototype.keys);if(b){var w=new Map,E=new Set;u=function(e,t){w.set(e,t)},c=function(e){return w.get(e)},l=function(e){w["delete"](e)},p=function(){return Array.from(w.keys())},f=function(e){E.add(e)},h=function(e){E["delete"](e)},d=function(){return Array.from(E.keys())}}else{var _={},O={},N=function(e){return"."+e},x=function(e){return parseInt(e.substr(1),10)};u=function(e,t){var n=N(e);_[n]=t},c=function(e){var t=N(e);return _[t]},l=function(e){var t=N(e);delete _[t]},p=function(){return Object.keys(_).map(x)},f=function(e){var t=N(e);O[t]=!0},h=function(e){var t=N(e);delete O[t]},d=function(){return Object.keys(O).map(x)}}var k=[],j={onSetChildren:function(e,n){var r=c(e);r?void 0:"production"!==t.env.NODE_ENV?v(!1,"Item must have been set"):y("144"),r.childIDs=n;for(var o=0;o<n.length;o++){var i=n[o],a=c(i);a?void 0:"production"!==t.env.NODE_ENV?v(!1,"Expected hook events to fire for the child before its parent includes it in onSetChildren()."):y("140"),null==a.childIDs&&"object"==typeof a.element&&null!=a.element?"production"!==t.env.NODE_ENV?v(!1,"Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren()."):y("141"):void 0,a.isMounted?void 0:"production"!==t.env.NODE_ENV?v(!1,"Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren()."):y("71"),null==a.parentID&&(a.parentID=e),a.parentID!==e?"production"!==t.env.NODE_ENV?v(!1,"Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).",i,a.parentID,e):y("142",i,a.parentID,e):void 0}},onBeforeMountComponent:function(e,t,n){var r={element:t,parentID:n,text:null,childIDs:[],isMounted:!1,updateCount:0};u(e,r)},onBeforeUpdateComponent:function(e,t){var n=c(e);n&&n.isMounted&&(n.element=t)},onMountComponent:function(e){var n=c(e);n?void 0:"production"!==t.env.NODE_ENV?v(!1,"Item must have been set"):y("144"),n.isMounted=!0;var r=0===n.parentID;r&&f(e)},onUpdateComponent:function(e){var t=c(e);t&&t.isMounted&&t.updateCount++},onUnmountComponent:function(e){var t=c(e);if(t){t.isMounted=!1;var n=0===t.parentID;n&&h(e)}k.push(e)},purgeUnmountedComponents:function(){if(!j._preventPurging){for(var e=0;e<k.length;e++){var t=k[e];o(t)}k.length=0}},isMounted:function(e){var t=c(e);return t?t.isMounted:!1},getCurrentStackAddendum:function(e){var t="";if(e){var n=a(e),r=e._owner;t+=i(n,e._source,r&&r.getName())}var o=m.current,s=o&&o._debugID;return t+=j.getStackAddendumByID(s)},getStackAddendumByID:function(e){for(var t="";e;)t+=s(e),e=j.getParentID(e);return t},getChildIDs:function(e){var t=c(e);return t?t.childIDs:[]},getDisplayName:function(e){var t=j.getElement(e);return t?a(t):null},getElement:function(e){var t=c(e);return t?t.element:null},getOwnerID:function(e){var t=j.getElement(e);return t&&t._owner?t._owner._debugID:null},getParentID:function(e){var t=c(e);return t?t.parentID:null},getSource:function(e){var t=c(e),n=t?t.element:null,r=null!=n?n._source:null;return r},getText:function(e){var t=j.getElement(e);return"string"==typeof t?t:"number"==typeof t?""+t:null},getUpdateCount:function(e){var t=c(e);return t?t.updateCount:0},getRootIDs:d,getRegisteredIDs:p,pushNonStandardWarningStack:function(e,t){if("function"==typeof console.reactStack){var n=[],r=m.current,o=r&&r._debugID;try{for(e&&n.push({name:o?j.getDisplayName(o):null,fileName:t?t.fileName:null,lineNumber:t?t.lineNumber:null});o;){var i=j.getElement(o),a=j.getParentID(o),s=j.getOwnerID(o),u=s?j.getDisplayName(s):null,c=i&&i._source;n.push({name:u,fileName:c?c.fileName:null,lineNumber:c?c.lineNumber:null}),o=a}}catch(l){}console.reactStack(n)}},popNonStandardWarningStack:function(){"function"==typeof console.reactStackEnd&&console.reactStackEnd()}};e.exports=j}).call(t,n(2))},function(e,t,n){(function(t){"use strict";function r(e,r,p,f,h,d){for(var y in e)if(e.hasOwnProperty(y)){var m;try{"function"!=typeof e[y]?"production"!==t.env.NODE_ENV?u(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",f||"React class",a[p],y):i("84",f||"React class",a[p],y):void 0,m=e[y](r,y,f,p,null,s)}catch(v){m=v}if("production"!==t.env.NODE_ENV?c(!m||m 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).",f||"React class",a[p],y,typeof m):void 0,m instanceof Error&&!(m.message in l)){l[m.message]=!0;var g="";"production"!==t.env.NODE_ENV&&(o||(o=n(34)),null!==d?g=o.getStackAddendumByID(d):null!==h&&(g=o.getCurrentStackAddendum(h))),"production"!==t.env.NODE_ENV?c(!1,"Failed %s type: %s%s",p,m.message,g):void 0}}}var o,i=n(16),a=n(36),s=n(37),u=n(22),c=n(18);"undefined"!=typeof t&&t.env&&"test"===t.env.NODE_ENV&&(o=n(34));var l={};e.exports=r}).call(t,n(2))},function(e,t,n){(function(t){"use strict";var n={};"production"!==t.env.NODE_ENV&&(n={prop:"prop",context:"context",childContext:"child context"}),e.exports=n}).call(t,n(2))},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){"use strict";var r=n(26),o=r.isValidElement,i=n(39);e.exports=i(o)},function(e,t,n){"use strict";var r=n(40);e.exports=function(e){var t=!1;return r(e,t)}},function(e,t,n){(function(t){"use strict";var r=n(19),o=n(22),i=n(18),a=n(14),s=n(41),u=n(42);e.exports=function(e,n){function c(e){var t=e&&(I&&e[I]||e[S]);return"function"==typeof t?t:void 0}function l(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function p(e){this.message=e,this.stack=""}function f(e){function r(r,c,l,f,h,d,y){if(f=f||T,d=d||l,y!==s)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 m=f+":"+l;!a[m]&&3>u&&(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.",d,f),a[m]=!0,u++)}return null==c[l]?r?new p(null===c[l]?"The "+h+" `"+d+"` is marked as required "+("in `"+f+"`, but its value is `null`."):"The "+h+" `"+d+"` is marked as required in "+("`"+f+"`, but its value is `undefined`.")):null:e(c,l,f,h,d)}if("production"!==t.env.NODE_ENV)var a={},u=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function h(e){function t(t,n,r,o,i,a){var s=t[n],u=k(s);if(u!==e){var c=j(s);return new p("Invalid "+o+" `"+i+"` of type "+("`"+c+"` 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 p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a)){var u=k(a);return new p("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<a.length;c++){var l=e(a,c,r,o,i+"["+c+"]",s);if(l instanceof Error)return l}return null}return f(t)}function m(){function t(t,n,r,o,i){var a=t[n];if(!e(a)){var s=k(a);return new p("Invalid "+o+" `"+i+"` of type "+("`"+s+"` 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||T,s=P(t[n]);return new p("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+a+"`."))}return null}return f(t)}function g(e){function n(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(l(a,e[s]))return null;var u=JSON.stringify(e);return new p("Invalid "+o+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}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 b(e){function t(t,n,r,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],u=k(a);if("object"!==u)return new p("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."));for(var c in a)if(a.hasOwnProperty(c)){var l=e(a,c,r,o,i+"."+c,s);if(l instanceof Error)return l}return null}return f(t)}function w(e){function n(t,n,r,o,i){for(var a=0;a<e.length;a++){var u=e[a];if(null==u(t,n,r,o,i,s))return null}return new p("Invalid "+o+" `"+i+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV?i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,r.thatReturnsNull;for(var o=0;o<e.length;o++){var a=e[o];if("function"!=typeof a)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",D(a),o),r.thatReturnsNull}return f(n)}function E(){function e(e,t,n,r,o){return N(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return f(e)}function _(e){function t(t,n,r,o,i){var a=t[n],u=k(a);if("object"!==u)return new p("Invalid "+o+" `"+i+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."));for(var c in e){var l=e[c];if(l){var f=l(a,c,r,o,i+"."+c,s);if(f)return f}}return null}return f(t)}function O(e){function t(t,n,r,o,i){var u=t[n],c=k(u);if("object"!==c)return new p("Invalid "+o+" `"+i+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));var l=a({},t[n],e);for(var f in l){var h=e[f];if(!h)return new p("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=h(u,f,r,o,i+"."+f,s);if(d)return d}return null}return f(t)}function N(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(N);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(!N(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!N(i[1]))return!1}return!0;default:return!1}}function x(e,t){return"symbol"===e?!0:"Symbol"===t["@@toStringTag"]?!0:"function"==typeof Symbol&&t instanceof Symbol?!0:!1}function k(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":x(t,e)?"symbol":t}function j(e){if("undefined"==typeof e||null===e)return""+e;var t=k(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function D(e){var t=j(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function P(e){return e.constructor&&e.constructor.name?e.constructor.name:T}var I="function"==typeof Symbol&&Symbol.iterator,S="@@iterator",T="<<anonymous>>",A={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:d(),arrayOf:y,element:m(),
instanceOf:v,node:E(),objectOf:b,oneOf:g,oneOfType:w,shape:_,exact:O};return p.prototype=Error.prototype,A.checkPropTypes=u,A.PropTypes=A,A}}).call(t,n(2))},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";function r(e,n,r,u,c){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var p;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`.",u||"React class",r,l,typeof e[l]),p=e[l](n,l,u,r,null,a)}catch(f){p=f}if(i(!p||p 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).",u||"React class",r,l,typeof p),p instanceof Error&&!(p.message in s)){s[p.message]=!0;var h=c?c():"";i(!1,"Failed %s type: %s%s",r,p.message,null!=h?h:"")}}}if("production"!==t.env.NODE_ENV)var o=n(22),i=n(18),a=n(41),s={};e.exports=r}).call(t,n(2))},function(e,t){"use strict";e.exports="15.6.2"},function(e,t,n){"use strict";var r=n(15),o=r.Component,i=n(26),a=i.isValidElement,s=n(17),u=n(45);e.exports=u(o,a,s)},function(e,t,n){(function(t){"use strict";function r(e){return e}function o(e,n,o){function p(e,n,r){for(var o in n)n.hasOwnProperty(o)&&"production"!==t.env.NODE_ENV&&u("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",c[r],o)}function f(e,t){var n=_.hasOwnProperty(t)?_[t]:null;k.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function h(e,r){if(r){s("function"!=typeof r,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!n(r),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=e.prototype,i=o.__reactAutoBindPairs;r.hasOwnProperty(l)&&O.mixins(e,r.mixins);for(var a in r)if(r.hasOwnProperty(a)&&a!==l){var c=r[a],p=o.hasOwnProperty(a);if(f(p,a),O.hasOwnProperty(a))O[a](e,c);else{var h=_.hasOwnProperty(a),d="function"==typeof c,y=d&&!h&&!p&&r.autobind!==!1;if(y)i.push(a,c),o[a]=c;else if(p){var g=_[a];s(h&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,a),"DEFINE_MANY_MERGED"===g?o[a]=m(o[a],c):"DEFINE_MANY"===g&&(o[a]=v(o[a],c))}else o[a]=c,"production"!==t.env.NODE_ENV&&"function"==typeof c&&r.displayName&&(o[a].displayName=r.displayName+"_"+a)}}}else if("production"!==t.env.NODE_ENV){var b=typeof r,w="object"===b&&null!==r;"production"!==t.env.NODE_ENV&&u(w,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",e.displayName||"ReactClass",null===r?null:b)}}function d(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in O;s(!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;s(!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 y(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects w