react-textfitter
Version:
Simple fit text
22 lines • 26.5 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["react-textfitter"]=t():e["react-textfitter"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=6)}([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(){h&&y&&(h=!1,y.length?d=y.concat(d):v=-1,d.length&&u())}function u(){if(!h){var e=o(a);h=!0;for(var t=d.length;t;){for(y=d,d=[];++v<t;)y&&y[v].run();v=-1,t=d.length}y=null,h=!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 y,d=[],h=!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];d.push(new c(e,t)),1!==d.length||h||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.prependListener=s,p.prependOnceListener=s,p.listeners=function(e){return[]},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,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){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;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,c=r(e),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var l in n)i.call(n,l)&&(c[l]=n[l]);if(o){u=o(n);for(var f=0;f<u.length;f++)a.call(n,u[f])&&(c[u[f]]=n[u[f]])}}return c}},function(e,t,n){"use strict";(function(t){var n={};"production"!==t.env.NODE_ENV&&Object.freeze(n),e.exports=n}).call(t,n(0))},function(e,t,n){"use strict";(function(t){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(0))},function(e,t,n){"use strict";(function(t){var r=n(1),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(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextFitter=void 0;var r=n(7),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.TextFitter=o.default,t.default=o.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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 a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(8),s=function(e){return e&&e.__esModule?e:{default:e}}(c),l=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={fontSize:e.maxFontSize,delta:e.maxFontSize/2},n.process=n.process.bind(n),n}return i(t,e),u(t,[{key:"componentDidMount",value:function(){this.process()}},{key:"componentDidUpdate",value:function(){this.process()}},{key:"componentWillReceiveProps",value:function(e){e.children!==this.props.children&&this.setState({fontSize:this.props.maxFontSize,delta:this.props.maxFontSize/2})}},{key:"process",value:function(){this.state.delta<=1||(this.result.offsetWidth>this.props.width?this.setState({fontSize:this.state.fontSize-this.state.delta,delta:Math.ceil(this.state.delta/2)}):this.state.fontSize<this.props.maxFontSize&&this.setState({fontSize:this.state.fontSize+this.state.delta,delta:Math.ceil(this.state.delta/2)}))}},{key:"render",value:function(){var e=this;return s.default.createElement("span",{className:this.props.className,ref:function(t){e.result=t},style:a({},this.props.style,{fontSize:this.state.fontSize}),onClick:this.props.onClick},this.props.children)}}]),t}(s.default.Component);l.defaultProps={maxFontSize:60,width:100},t.default=l},function(e,t,n){"use strict";(function(t){"production"===t.env.NODE_ENV?e.exports=n(9):e.exports=n(10)}).call(t,n(0))},function(e,t,n){"use strict";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=g,this.updater=n||P}function i(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||P}function a(){}function u(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||P}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)A.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:O,type:e,key:i,ref:a,props:o,_owner:C.current}}function s(e){return"object"==typeof e&&null!==e&&e.$$typeof===O}function l(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function f(e,t,n,r){if(U.length){var o=U.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>U.length&&U.push(e)}function y(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 O:case k:case S:case j:a=!0}}if(a)return n(o,e,""===t?"."+d(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+d(i,u);a+=y(i,c,n,o)}else if(null===e||void 0===e?c=null:(c=E&&e[E]||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+d(i,u++),a+=y(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 d(e,t){return"object"==typeof e&&null!==e&&null!=e.key?l(e.key):t.toString(36)}function h(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)?m(e,r,n,_.thatReturnsArgument):null!=e&&(s(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(F,"$&/")+"/")+n,e={$$typeof:O,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function m(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(F,"$&/")+"/"),t=f(t,i,r,o),null==e||y(e,"",v,t),p(t)}/** @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.
*/
var b=n(2),g=n(3),_=n(1),w="function"==typeof Symbol&&Symbol.for,O=w?Symbol.for("react.element"):60103,k=w?Symbol.for("react.call"):60104,S=w?Symbol.for("react.return"):60105,j=w?Symbol.for("react.portal"):60106,x=w?Symbol.for("react.fragment"):60107,E="function"==typeof Symbol&&Symbol.iterator,P={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"),this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},a.prototype=o.prototype;var R=i.prototype=new a;R.constructor=i,b(R,o.prototype),R.isPureReactComponent=!0;var T=u.prototype=new a;T.constructor=u,b(T,o.prototype),T.unstable_isAsyncReactComponent=!0,T.render=function(){return this.props.children};var C={current:null},A=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0},F=/\/+/g,U=[],$={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return m(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=f(null,null,t,n),null==e||y(e,"",h,t),p(t)},count:function(e){return null==e?0:y(e,"",_.thatReturnsNull,null)},toArray:function(e){var t=[];return m(e,t,null,_.thatReturnsArgument),t},only:function(e){return s(e)||r("143"),e}},Component:o,PureComponent:i,unstable_AsyncComponent:u,Fragment:x,createElement:c,cloneElement:function(e,t,n){var r=b({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=C.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)A.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:O,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:C,assign:b}},D=Object.freeze({default:$}),z=D&&$||D;e.exports=z.default?z.default:z},function(e,t,n){"use strict";(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||void 0===e)return null;var t=ee&&e[ee]||e[te];return"function"==typeof t?t:null}function r(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;ie[o]||(Y(!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),ie[o]=!0)}function o(e,t,n){this.props=e,this.context=t,this.refs=W,this.updater=n||ae}function i(e,t,n){this.props=e,this.context=t,this.refs=W,this.updater=n||ae}function a(){}function u(e,t,n){this.props=e,this.context=t,this.refs=W,this.updater=n||ae}function c(e){if(de.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(de.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(){fe||(fe=!0,Y(!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(){pe||(pe=!0,Y(!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)de.call(t,r)&&!he.hasOwnProperty(r)&&(o[r]=t[r])}var y=arguments.length-2;if(1===y)o.children=n;else if(y>1){for(var d=Array(y),h=0;h<y;h++)d[h]=arguments[h+2];Object.freeze&&Object.freeze(d),o.children=d}if(e&&e.defaultProps){var v=e.defaultProps;for(r in v)void 0===o[r]&&(o[r]=v[r])}if((i||a)&&(void 0===o.$$typeof||o.$$typeof!==G)){var m="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&l(o,m),a&&f(o,m)}return ve(e,i,a,u,p,ye.current,o)}function y(e,t){return ve(e.type,t,e.ref,e._self,e._source,e._owner,e.props)}function d(e,t,n){var r,o=M({},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=ye.current),s(t)&&(i=""+t.key);var p;e.type&&e.type.defaultProps&&(p=e.type.defaultProps);for(r in t)de.call(t,r)&&!he.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==p?o[r]=p[r]:o[r]=t[r])}var y=arguments.length-2;if(1===y)o.children=n;else if(y>1){for(var d=Array(y),h=0;h<y;h++)d[h]=arguments[h+2];o.children=d}return ve(e.type,i,a,u,l,f,o)}function h(e){return"object"==typeof e&&null!==e&&e.$$typeof===G}function v(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function m(e){return(""+e).replace(we,"$&/")}function b(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 g(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,ke.length<Oe&&ke.push(e)}function _(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 G:case K:case Q:case X:a=!0}}if(a)return r(o,e,""===n?be+O(e,0):n),1;var u,c,s=0,l=""===n?be:n+ge;if(Array.isArray(e))for(var f=0;f<e.length;f++)u=e[f],c=l+O(u,f),s+=_(u,c,r,o);else{var p=t(e);if("function"==typeof p){p===e.entries&&(Y(_e,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s",me.getStackAddendum()),_e=!0);for(var y,d=p.call(e),h=0;!(y=d.next()).done;)u=y.value,c=l+O(u,h++),s+=_(u,c,r,o)}else if("object"===i){var v="";v=" If you meant to render a collection of children, use an array instead."+me.getStackAddendum();var m=""+e;V(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===m?"object with keys {"+Object.keys(e).join(", ")+"}":m,v)}}return s}function w(e,t,n){return null==e?0:_(e,"",t,n)}function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?v(e.key):t.toString(36)}function k(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function S(e,t,n){if(null==e)return e;var r=b(null,null,t,n);w(e,k,r),g(r)}function j(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)?x(u,r,n,B.thatReturnsArgument):null!=u&&(h(u)&&(u=y(u,o+(!u.key||t&&t.key===u.key?"":m(u.key)+"/")+n)),r.push(u))}function x(e,t,n,r,o){var i="";null!=n&&(i=m(n)+"/");var a=b(t,i,r,o);w(e,j,a),g(a)}function E(e,t,n){if(null==e)return e;var r=[];return x(e,r,null,t,n),r}function P(e,t){return w(e,B.thatReturnsNull,null)}function R(e){var t=[];return x(e,t,null,B.thatReturnsArgument),t}function T(e){return h(e)||V(!1,"React.Children.only expected to receive a single React element child."),e}function C(e){var t=e.type;return"string"==typeof t?t:"function"==typeof t?t.displayName||t.name:null}function A(){if(ye.current){var e=C(ye.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;return"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+"."}return""}function F(e){var t=A();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 U(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=F(t);if(!Te[n]){Te[n]=!0;var r="";e&&e._owner&&e._owner!==ye.current&&(r=" It was passed a child from "+C(e._owner)+"."),je=e,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',n,r,Pe()),je=null}}}function $(e,n){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var o=e[r];h(o)&&U(o,n)}else if(h(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;)h(a.value)&&U(a.value,n)}}function D(e){var t=e.type;if("function"==typeof t){var n=t.displayName||t.name,r=t.propTypes;r?(je=e,H(r,e.props,"prop",n,Pe),je=null):void 0===t.PropTypes||xe||(xe=!0,Y(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"==typeof t.getDefaultProps&&Y(t.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function z(e){je=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)){Y(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s",a,Pe());break}}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}null!==e.ref&&Y(!1,"Invalid attribute `ref` supplied to `React.Fragment`.%s",Pe()),je=null}function I(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||A(),o+=Pe()||"",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,o)}var a=p.apply(this,arguments);if(null==a)return a;if(r)for(var u=2;u<arguments.length;u++)$(arguments[u],e);return"symbol"==typeof e&&e===Z?z(a):D(a),a}function q(e){var t=I.bind(null,e);return t.type=e,Object.defineProperty(t,"type",{enumerable:!1,get:function(){return oe(!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=d.apply(this,arguments),o=2;o<arguments.length;o++)$(arguments[o],r.type);return D(r),r}var M=n(2),W=n(3),V=n(4),Y=n(5),B=n(1),H=n(11),J="function"==typeof Symbol&&Symbol.for,G=J?Symbol.for("react.element"):60103,K=J?Symbol.for("react.call"):60104,Q=J?Symbol.for("react.return"):60105,X=J?Symbol.for("react.portal"):60106,Z=J?Symbol.for("react.fragment"):60107,ee="function"==typeof Symbol&&Symbol.iterator,te="@@iterator",ne=function(){},re=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){}};ne=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];re.apply(void 0,[t].concat(r))}};var oe=ne,ie={},ae={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&&V(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var ue={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)."]};for(var ce in ue)ue.hasOwnProperty(ce)&&function(e,t){Object.defineProperty(o.prototype,e,{get:function(){oe(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(ce,ue[ce]);a.prototype=o.prototype;var se=i.prototype=new a;se.constructor=i,M(se,o.prototype),se.isPureReactComponent=!0;var le=u.prototype=new a;le.constructor=u,M(le,o.prototype),le.unstable_isAsyncReactComponent=!0,le.render=function(){return this.props.children};var fe,pe,ye={current:null},de=Object.prototype.hasOwnProperty,he={key:!0,ref:!0,__self:!0,__source:!0},ve=function(e,t,n,r,o,i,a){var u={$$typeof:G,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},me={};me.getCurrentStack=null,me.getStackAddendum=function(){var e=me.getCurrentStack;return e?e():null};var be=".",ge=":",_e=!1,we=/\/+/g,Oe=10,ke=[],Se=function(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")},je=null,xe=!1,Ee=function(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type===Z?"React.Fragment":e.type.displayName||e.type.name||"Unknown"},Pe=function(){var e="";if(je){var t=Ee(je),n=je._owner;e+=Se(t,je._source,n&&C(n))}return e+=me.getStackAddendum()||""},Re=new Map([["children",!0],["key",!0]]),Te={},Ce={Children:{map:E,forEach:S,count:P,toArray:R,only:T},Component:o,PureComponent:i,unstable_AsyncComponent:u,Fragment:Z,createElement:I,cloneElement:L,createFactory:q,isValidElement:h,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:ye,assign:M}};M(Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,{ReactDebugCurrentFrame:me,ReactComponentTreeHook:{}});var Ae=Object.freeze({default:Ce}),Ne=Ae&&Ce||Ae,Fe=Ne.default?Ne.default:Ne;e.exports=Fe}()}).call(t,n(0))},function(e,t,n){"use strict";(function(t){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(4),i=n(5),a=n(12),u={};e.exports=r}).call(t,n(0))},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])});