├── .babelrc ├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── README.md ├── docs ├── index.html ├── src.2688a3bb.js ├── src.2688a3bb.map ├── src.53903f68.js ├── src.53903f68.map └── src.efa4e38b.css ├── package.json └── src ├── common_styles ├── colors.scss └── global.scss ├── components ├── App │ ├── App.js │ └── index.js ├── Demo │ ├── Demo.js │ ├── Demo.scss │ ├── __tests__ │ │ ├── Demo.test.js │ │ └── __snapshots__ │ │ │ └── Sample.test.js.snap │ └── index.js ├── Footer │ ├── Footer.js │ ├── Footer.scss │ ├── __tests__ │ │ ├── Footer.test.js │ │ └── __snapshots__ │ │ │ └── Footer.test.js.snap │ └── index.js ├── NavBar │ ├── NavBar.js │ ├── NavBar.scss │ ├── __tests__ │ │ ├── NavBar.test.js │ │ └── __snapshots__ │ │ │ └── NavBar.test.js.snap │ └── index.js └── Sample │ ├── Sample.js │ ├── Sample.scss │ ├── __tests__ │ ├── Sample.test.js │ └── __snapshots__ │ │ └── Sample.test.js.snap │ └── index.js ├── index.html └── index.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "react", 4 | [ 5 | "env", 6 | { 7 | "targets": { 8 | "browsers": ["last 2 versions"] 9 | } 10 | } 11 | ] 12 | ], 13 | "plugins": ["transform-class-properties"] 14 | } 15 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "eslint:recommended", 4 | "plugin:import/errors", 5 | "plugin:react/recommended", 6 | "plugin:jsx-a11y/recommended", 7 | "prettier", 8 | "prettier/react" 9 | ], 10 | "rules": { 11 | "react/prop-types": 0, 12 | "jsx-a11y/label-has-for": 0, 13 | "jsx-a11y/accessible-emoji": 0, 14 | "no-console": 1 15 | }, 16 | "plugins": ["react", "import", "jsx-a11y"], 17 | "parser": "babel-eslint", 18 | "parserOptions": { 19 | "ecmaVersion": 2018, 20 | "sourceType": "module", 21 | "ecmaFeatures": { 22 | "jsx": true 23 | } 24 | }, 25 | "settings": { 26 | "react": { 27 | "version": "16.5.2" 28 | } 29 | }, 30 | "env": { 31 | "es6": true, 32 | "browser": true, 33 | "node": true, 34 | "jest": true 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_STORE 2 | node_modules 3 | dist/ 4 | remote-repo/ 5 | coverage/ 6 | *.log* 7 | chrome-user-data 8 | *.sublime-project 9 | *.sublime-workspace 10 | .idea 11 | *.iml 12 | .vscode 13 | *.swp 14 | *.swo 15 | .cache 16 | .env 17 | package-lock.json 18 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Succint React Starter 2 | 3 | Thanks to [Brian Holt](https://github.com/btholt) for the inspiration! 4 | 5 | ## Why did I build this? 6 | Create React App is a great starting point, but I wanted something a bit more custom. Parcel instead of Webpack, for example. I also wanted to see if I could build something I would use myself and make getting little experiments up and running quickly easier. 7 | 8 | ## What's included? 9 | I've kept things as simple, streamlined, and modular as I could. Hopefully this allows me and anyone else using this setup to swap things out easily. 10 | 11 | ### CSS/Sass 12 | 13 | I've used the very basic [Marx classless framework/reset](https://mblode.github.io/marx/) to provide a starting point for basic prototyping with a tolerable UI while maintaining symantic and accessibility standards. Removing it is as simple as deleting the cdn link from `index.html`. 14 | 15 | I've also provided a few basic overrides for the nav bar and button styling, which also serve as examples of how the styling files can be structured within the project. 16 | 17 | On a more formal project, I would probably use [Bulma](https://bulma.io/) via [Trunx](https://github.com/fibo/trunx). 18 | 19 | ### Sample files 20 | 21 | I've included a navbar, a sample page, and a footer, which also act as the demo app and landing page for the project. The purpose was two-fold. First, to have the documentation presented nicely and second to provide a working reference of my preferred React setup. 22 | 23 | ### The package.json 24 | 25 | It's fairly self-explanatory, but here's what's included, with links to each package so you can read the documentation. 26 | 27 | #### devDependencies 28 | - [babel-core](https://www.npmjs.com/package/babel-core) 29 | - [babel-eslint](https://www.npmjs.com/package/babel-eslint) 30 | - [babel-plugin-transform-class-properties](https://www.npmjs.com/package/babel-plugin-transform-class-properties) 31 | - [babel-preset-env](https://www.npmjs.com/package/babel-preset-env) 32 | - [babel-preset-react](https://www.npmjs.com/package/babel-preset-react) 33 | - [eslint](https://www.npmjs.com/package/eslint) 34 | - [eslint-config-prettier](https://www.npmjs.com/package/eslint-config-prettier) 35 | - [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import) 36 | - [eslint-plugin-jsx-a11y](https://www.npmjs.com/package/eslint-plugin-jsx-a11y) 37 | - [eslint-plugin-prettier](https://www.npmjs.com/package/eslint-plugin-prettier) 38 | - [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react) 39 | - [jest](https://www.npmjs.com/package/jest) 40 | - [parcel-bundler](https://www.npmjs.com/package/parcel-bundler) 41 | - [prettier](https://www.npmjs.com/package/prettier) 42 | - [react-test-renderer](https://www.npmjs.com/package/react-test-renderer) 43 | - [sass](https://www.npmjs.com/package/sass) 44 | 45 | #### dependencies 46 | - [@reach/router](https://www.npmjs.com/package/@reach/router) 47 | - [emotion](https://www.npmjs.com/package/emotion) 48 | - [identity-obj-proxy](https://www.npmjs.com/package/identity-obj-proxy) 49 | - [react](https://www.npmjs.com/package/react) 50 | - [react-dom](https://www.npmjs.com/package/react-dom) 51 | - [react-emotion](https://www.npmjs.com/package/react-emotion) 52 | - [react-loadable](https://www.npmjs.com/package/react-loadable) 53 | 54 | 55 | ### The config files 56 | 57 | I've set up a basic `.babelrc`, `.eslintrc.json`, and `.prettierrc` so that you can start using this right away. They contain what I consider to be a good balance between customization and letting the defaults handle things. 58 | 59 | ## Getting set up 60 | 61 | ### VS Code 62 | 63 | This is my preferred editor. I recommend using the following extensions: 64 | - [npm Intellisense](https://marketplace.visualstudio.com/items?itemName=christian-kohler.npm-intellisense) 65 | - [Prettier - Code formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) 66 | - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) 67 | - [vscode-styled-components](https://marketplace.visualstudio.com/items?itemName=mf.vscode-styled-components) (if you'll be using Emotion) 68 | 69 | I can also recommend a couple extensions I find helpful in general front end development: 70 | - [Auto Rename Tag](https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag) 71 | - [Bracket Pair Colorizer](https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer) 72 | - [Intellisense for CSS class names](https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion) 73 | 74 | ### Dev Tools 75 | 76 | I recommend you also install the [React](https://github.com/facebook/react-devtools) and [Redux](https://github.com/zalmoxisus/redux-devtools-extension) (if you're using it) developer tools in your browser. It will make debugging easier. 77 | 78 | ### Up and running 79 | 80 | You'll need to get into your project folder and install the packages first. 81 | 82 | ``` 83 | cd /path/to/your/project/folder 84 | npm install 85 | ``` 86 | 87 | If you open up your project in your text editor, in the package.json file you'll find some scripts you can run in your terminal that can be run as follows: 88 | 89 | - `npm run format` - runs Prettier 90 | - `npm run test` - runs your Jest tests 91 | - `npm run testu` - runs the snapshot updates on Jest tests 92 | - `npm run testw` - runs Jest with the watch argument, making repeatedly running tests more useful 93 | - `npm run testc` - runs Jest with a coverage report, which is generated in a coverage folder in the root 94 | - `npm run lint` - runs ESLint on all `.js` and `.jsx` files in the `src` directory 95 | - `npm run dev` - runs Parcel and tells it which file to user to start the app. In this case, `index.html`. 96 | - `npm run build` - runs Parcel to compile a production build based of the `index.html` file. 97 | - `npm run buildgh` - runs Parcel to complile to the `/docs` folder for deployment on Github Pages. 98 | 99 | Once you've got it installed, to start the project server, run `npm run dev` and it will be running at `http://localhost:1234`. 100 | 101 | ## ToDo list 102 | - Finish the demo page. 103 | - Currently the local server only runs on http. Getting something going with https is ideal. 104 | - Configure a localstorage example. 105 | - Set up a code-splitting example. 106 | - Set up an emotion example. -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | Document
-------------------------------------------------------------------------------- /docs/src.2688a3bb.js: -------------------------------------------------------------------------------- 1 | parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;fO.length&&O.push(e)}function q(e,r,o,u){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var i=!1;if(null===e)i=!0;else switch(l){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case t:case n:i=!0}}if(i)return o(u,e,""===r?"."+I(e,0):r),1;if(i=0,r=""===r?".":r+":",Array.isArray(e))for(var f=0;f=o){r=t;break}t=t.next}while(t!==e);null===r?r=e:r===e&&(e=f,a()),(o=r.previous).next=r.previous=f,f.next=r,f.previous=o}}function f(){if(-1===t&&null!==e&&1===e.priorityLevel){o=!0,u.didTimeout=!0;try{do{s()}while(null!==e&&1===e.priorityLevel)}finally{o=!1,null!==e?a():r=!1}}}function c(n){o=!0,u.didTimeout=n;try{if(n)for(;null!==e;){var t=exports.unstable_now();if(!(e.expirationTime<=t))break;do{s()}while(null!==e&&e.expirationTime<=t)}else if(null!==e)do{s()}while(null!==e&&0=I-t){if(!(-1!==n&&n<=t))return j||(j=!0,h(N)),A=e,void(C=n);i=!0}if(null!==e){q=!0;try{e(i)}finally{q=!1}}}},!1);var N=function(e){if(null!==A){h(N);var n=e-I+E;nn&&(n=8),E=nn?window.postMessage(B,"*"):j||(j=!0,h(N))},m=function(){A=null,F=!1,C=-1}}exports.unstable_ImmediatePriority=1,exports.unstable_UserBlockingPriority=2,exports.unstable_NormalPriority=3,exports.unstable_IdlePriority=4,exports.unstable_runWithPriority=function(e,i){switch(e){case 1:case 2:case 3:case 4:break;default:e=3}var o=n,r=t;n=e,t=exports.unstable_now();try{return i()}finally{n=o,t=r,f()}},exports.unstable_scheduleCallback=function(i,o){var r=-1!==t?t:exports.unstable_now();if("object"==typeof o&&null!==o&&"number"==typeof o.timeout)o=r+o.timeout;else switch(n){case 1:o=r+-1;break;case 2:o=r+250;break;case 4:o=r+1073741823;break;default:o=r+5e3}if(i={callback:i,priorityLevel:n,expirationTime:o,next:null,previous:null},null===e)e=i.next=i.previous=i,a();else{r=null;var l=e;do{if(l.expirationTime>o){r=l;break}l=l.next}while(l!==e);null===r?r=e:r===e&&(e=i,a()),(o=r.previous).next=r.previous=i,i.next=r,i.previous=o}return i},exports.unstable_cancelCallback=function(n){var t=n.next;if(null!==t){if(t===n)e=null;else{n===e&&(e=t);var i=n.previous;i.next=t,t.previous=i}n.next=n.previous=null}},exports.unstable_wrapCallback=function(e){var i=n;return function(){var o=n,r=t;n=i,t=exports.unstable_now();try{return e.apply(this,arguments)}finally{n=o,t=r,f()}}},exports.unstable_getCurrentPriorityLevel=function(){return n}; 9 | },{}],"MDSO":[function(require,module,exports) { 10 | "use strict";module.exports=require("./cjs/scheduler.production.min.js"); 11 | },{"./cjs/scheduler.production.min.js":"5IvP"}],"i17t":[function(require,module,exports) { 12 | "use strict";var e=require("react"),t=require("object-assign"),n=require("scheduler");function r(e,t,n,r,l,a,i,o){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,l,a,i,o],c=0;(e=Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}function l(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=0;lthis.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=fe,e.release=de}t(se.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ue)},persist:function(){this.isPersistent=ue},isPersistent:ce,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ce,this._dispatchInstances=this._dispatchListeners=null}}),se.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},se.extend=function(e){function n(){}function r(){return l.apply(this,arguments)}var l=this;n.prototype=l.prototype;var a=new n;return t(a,r.prototype),r.prototype=a,r.prototype.constructor=r,r.Interface=t({},l.Interface,e),r.extend=l.extend,pe(r),r},pe(se);var me=se.extend({data:null}),he=se.extend({data:null}),ve=[9,13,27,32],ge=$&&"CompositionEvent"in window,ye=null;$&&"documentMode"in document&&(ye=document.documentMode);var be=$&&"TextEvent"in window&&!ye,ke=$&&(!ge||ye&&8=ye),Te=String.fromCharCode(32),xe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},we=!1;function Ce(e,t){switch(e){case"keyup":return-1!==ve.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ee(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Se=!1;function _e(e,t){switch(e){case"compositionend":return Ee(t);case"keypress":return 32!==t.which?null:(we=!0,Te);case"textInput":return(e=t.data)===Te&&we?null:e;default:return null}}function Pe(e,t){if(Se)return"compositionend"===e||!ge&&Ce(e,t)?(e=oe(),ie=ae=le=null,Se=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1t}return!1}function Tt(e,t,n,r,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t}var xt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xt[e]=new Tt(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xt[t]=new Tt(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){xt[e]=new Tt(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xt[e]=new Tt(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xt[e]=new Tt(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){xt[e]=new Tt(e,3,!0,e,null)}),["capture","download"].forEach(function(e){xt[e]=new Tt(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){xt[e]=new Tt(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){xt[e]=new Tt(e,5,!1,e.toLowerCase(),null)});var wt=/[\-:]([a-z])/g;function Ct(e){return e[1].toUpperCase()}function Et(e,t,n,r){var l=xt.hasOwnProperty(t)?xt[t]:null;(null!==l?0===l.type:!r&&(2On.length&&On.push(e)}}}var Ln={},An=0,Wn="_reactListenersID"+(""+Math.random()).slice(2);function Vn(e){return Object.prototype.hasOwnProperty.call(e,Wn)||(e[Wn]=An++,Ln[e[Wn]]={}),Ln[e[Wn]]}function jn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Bn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hn(e,t){var n,r=Bn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Bn(r)}}function Qn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Qn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Kn(){for(var e=window,t=jn();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(n){break}t=jn(e.document)}return t}function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Yn=$&&"documentMode"in document&&11>=document.documentMode,Xn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},qn=null,Gn=null,Zn=null,Jn=!1;function er(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Jn||null==qn||qn!==jn(n)?null:("selectionStart"in(n=qn)&&$n(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Zn&&cn(Zn,n)?null:(Zn=n,(e=se.getPooled(Xn.select,Gn,e,t)).type="select",e.target=qn,K(e),e))}var tr={eventTypes:Xn,extractEvents:function(e,t,n,r){var l,a=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(l=!a)){e:{a=Vn(a),l=k.onSelect;for(var i=0;i=t.length||l("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:St(n)}}function or(e,t){var n=St(t.value),r=St(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ur(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}O.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),T=W,x=L,w=A,O.injectEventPluginsByName({SimpleEventPlugin:Nn,EnterLeaveEventPlugin:an,ChangeEventPlugin:$t,SelectEventPlugin:tr,BeforeInputEventPlugin:Ne});var cr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function sr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?sr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var dr=void 0,pr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==cr.svg||"innerHTML"in e)e.innerHTML=t;else{for((dr=dr||document.createElement("div")).innerHTML=""+t+"",t=dr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var hr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vr=["Webkit","ms","Moz","O"];function gr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),l=n,a=t[n];l=null==a||"boolean"==typeof a||""===a?"":r||"number"!=typeof a||0===a||hr.hasOwnProperty(l)&&hr[l]?(""+a).trim():a+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}Object.keys(hr).forEach(function(e){vr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hr[t]=hr[e]})});var yr=t({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function br(e,t){t&&(yr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&l("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&l("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||l("61")),null!=t.style&&"object"!=typeof t.style&&l("62",""))}function kr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Tr(e,t){var n=Vn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=k[t];for(var r=0;rzr||(e.current=Or[zr],Or[zr]=null,zr--)}function Ur(e,t){Or[++zr]=e.current,e.current=t}var Mr={},Fr={current:Mr},Rr={current:!1},Lr=Mr;function Ar(e,t){var n=e.type.contextTypes;if(!n)return Mr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in n)a[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Wr(e){return null!=(e=e.childContextTypes)}function Vr(e){Dr(Rr,e),Dr(Fr,e)}function jr(e){Dr(Rr,e),Dr(Fr,e)}function Br(e,t,n){Fr.current!==Mr&&l("168"),Ur(Fr,t,e),Ur(Rr,n,e)}function Hr(e,n,r){var a=e.stateNode;if(e=n.childContextTypes,"function"!=typeof a.getChildContext)return r;for(var i in a=a.getChildContext())i in e||l("108",dt(n)||"Unknown",i);return t({},r,a)}function Qr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Mr,Lr=Fr.current,Ur(Fr,t,e),Ur(Rr,Rr.current,e),!0}function Kr(e,t,n){var r=e.stateNode;r||l("169"),n?(t=Hr(e,t,Lr),r.__reactInternalMemoizedMergedChildContext=t,Dr(Rr,e),Dr(Fr,e),Ur(Fr,t,e)):Dr(Rr,e),Ur(Rr,n,e)}var $r=null,Yr=null;function Xr(e){return function(t){try{return e(t)}catch(n){}}}function qr(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);$r=Xr(function(e){return t.onCommitFiberRoot(n,e)}),Yr=Xr(function(e){return t.onCommitFiberUnmount(n,e)})}catch(r){}return!0}function Gr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Zr(e,t,n,r){return new Gr(e,t,n,r)}function Jr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function el(e){if("function"==typeof e)return Jr(e)?1:0;if(null!=e){if((e=e.$$typeof)===it)return 11;if(e===ut)return 14}return 2}function tl(e,t){var n=e.alternate;return null===n?((n=Zr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.firstContextDependency=e.firstContextDependency,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function nl(e,t,n,r,a,i){var o=2;if(r=e,"function"==typeof e)Jr(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case et:return rl(n.children,a,i,t);case at:return ll(n,3|a,i,t);case tt:return ll(n,2|a,i,t);case nt:return(e=Zr(12,n,t,4|a)).elementType=nt,e.type=nt,e.expirationTime=i,e;case ot:return(e=Zr(13,n,t,a)).elementType=ot,e.type=ot,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case rt:o=10;break e;case lt:o=9;break e;case it:o=11;break e;case ut:o=14;break e;case ct:o=16,r=null;break e}l("130",null==e?e:typeof e,"")}return(t=Zr(o,n,t,a)).elementType=e,t.type=r,t.expirationTime=i,t}function rl(e,t,n,r){return(e=Zr(7,e,r,t)).expirationTime=n,e}function ll(e,t,n,r){return e=Zr(8,e,r,t),t=0==(1&t)?tt:at,e.elementType=t,e.type=t,e.expirationTime=n,e}function al(e,t,n){return(e=Zr(6,e,null,t)).expirationTime=n,e}function il(e,t,n){return(t=Zr(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ol(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n>t?e.earliestPendingTime=t:e.latestPendingTimet?e.earliestSuspendedTime=t:re)&&(l=r),0!==(e=l)&&0!==n&&nl?(null===i&&(i=u,a=c),(0===o||o>s)&&(o=s)):(c=bl(e,t,u,c,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(s=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f>l?(null===s&&(s=u,null===i&&(a=c)),(0===o||o>f)&&(o=f)):(c=bl(e,t,u,c,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===i&&(t.lastUpdate=null),null===s?t.lastCapturedUpdate=null:e.effectTag|=32,null===i&&null===s&&(a=c),t.baseState=a,t.firstUpdate=i,t.firstCapturedUpdate=s,e.expirationTime=o,e.memoizedState=c}function Tl(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),xl(t.firstEffect,n),t.firstEffect=t.lastEffect=null,xl(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function xl(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&l("191",n),n.call(r)}e=e.nextEffect}}function wl(e,t){return{value:e,source:t,stack:pt(t)}}var Cl={current:null},El=null,Sl=null,_l=null;function Pl(e,t){var n=e.type._context;Ur(Cl,n._currentValue,e),n._currentValue=t}function Nl(e){var t=Cl.current;Dr(Cl,e),e.type._context._currentValue=t}function Il(e){El=e,_l=Sl=null,e.firstContextDependency=null}function Ol(e,t){return _l!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(_l=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Sl?(null===El&&l("293"),El.firstContextDependency=Sl=t):Sl=Sl.next=t),e._currentValue}var zl={},Dl={current:zl},Ul={current:zl},Ml={current:zl};function Fl(e){return e===zl&&l("174"),e}function Rl(e,t){Ur(Ml,t,e),Ur(Ul,e,e),Ur(Dl,zl,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fr(null,"");break;default:t=fr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Dr(Dl,e),Ur(Dl,t,e)}function Ll(e){Dr(Dl,e),Dr(Ul,e),Dr(Ml,e)}function Al(e){Fl(Ml.current);var t=Fl(Dl.current),n=fr(t,e.type);t!==n&&(Ur(Ul,e,e),Ur(Dl,n,e))}function Wl(e){Ul.current===e&&(Dr(Dl,e),Dr(Ul,e))}var Vl=Xe.ReactCurrentOwner,jl=(new e.Component).refs;function Bl(e,n,r,l){r=null==(r=r(l,n=e.memoizedState))?n:t({},n,r),e.memoizedState=r,null!==(l=e.updateQueue)&&0===e.expirationTime&&(l.baseState=r)}var Hl={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===sn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Fi(),l=ml(r=li(r,e));l.payload=t,null!=n&&(l.callback=n),vl(e,l),oi(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Fi(),l=ml(r=li(r,e));l.tag=1,l.payload=t,null!=n&&(l.callback=n),vl(e,l),oi(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Fi(),r=ml(n=li(n,e));r.tag=2,null!=t&&(r.callback=t),vl(e,r),oi(e,n)}};function Ql(e,t,n,r,l,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!cn(n,r)||!cn(l,a))}function Kl(e,t,n){var r=!1,l=Mr,a=t.contextType;return"object"==typeof a&&null!==a?a=Vl.currentDispatcher.readContext(a):(l=Wr(t)?Lr:Fr.current,a=(r=null!=(r=t.contextTypes))?Ar(e,l):Mr),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Hl,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function $l(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Hl.enqueueReplaceState(t,t.state,null)}function Yl(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=jl;var a=t.contextType;"object"==typeof a&&null!==a?l.context=Vl.currentDispatcher.readContext(a):(a=Wr(t)?Lr:Fr.current,l.context=Ar(e,a)),null!==(a=e.updateQueue)&&(kl(e,a,n,l,r),l.state=e.memoizedState),"function"==typeof(a=t.getDerivedStateFromProps)&&(Bl(e,t,a,n),l.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(t=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&Hl.enqueueReplaceState(l,l.state,null),null!==(a=e.updateQueue)&&(kl(e,a,n,l,r),l.state=e.memoizedState)),"function"==typeof l.componentDidMount&&(e.effectTag|=4)}var Xl=Array.isArray;function ql(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&l("289"),r=n.stateNode),r||l("147",e);var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===jl&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}"string"!=typeof e&&l("284"),n._owner||l("290",e)}return e}function Gl(e,t){"textarea"!==e.type&&l("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Zl(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t,n){return(e=tl(e,t,n)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)h?(v=f,f=null):v=f.sibling;var g=p(l,f,o[h],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(l,f),a=i(g,a,h),null===s?c=g:s.sibling=g,s=g,f=v}if(h===o.length)return n(l,f),c;if(null===f){for(;hv?(g=h,h=null):g=h.sibling;var b=p(a,h,y.value,c);if(null===b){h||(h=g);break}e&&h&&null===b.alternate&&t(a,h),o=i(b,o,v),null===f?s=b:f.sibling=b,f=b,h=g}if(y.done)return n(a,h),s;if(null===h){for(;!y.done;v++,y=u.next())null!==(y=d(a,y.value,c))&&(o=i(y,o,v),null===f?s=y:f.sibling=y,f=y);return s}for(h=r(a,h);!y.done;v++,y=u.next())null!==(y=m(h,a,v,y.value,c))&&(e&&null!==y.alternate&&h.delete(null===y.key?v:y.key),o=i(y,o,v),null===f?s=y:f.sibling=y,f=y);return e&&h.forEach(function(e){return t(a,e)}),s}return function(e,r,i,u){var c="object"==typeof i&&null!==i&&i.type===et&&null===i.key;c&&(i=i.props.children);var s="object"==typeof i&&null!==i;if(s)switch(i.$$typeof){case Ze:e:{for(s=i.key,c=r;null!==c;){if(c.key===s){if(7===c.tag?i.type===et:c.elementType===i.type){n(e,c.sibling),(r=a(c,i.type===et?i.props.children:i.props,u)).ref=ql(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===et?((r=rl(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=nl(i.type,i.key,i.props,null,e.mode,u)).ref=ql(e,r,i),u.return=e,e=u)}return o(e);case Je:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=a(r,i.children||[],u)).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=il(i,e.mode,u)).return=e,e=r}return o(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,i,u)).return=e,e=r):(n(e,r),(r=al(i,e.mode,u)).return=e,e=r),o(e);if(Xl(i))return h(e,r,i,u);if(ft(i))return v(e,r,i,u);if(s&&Gl(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:l("152",(u=e.type).displayName||u.name||"Component")}return n(e,r)}}var Jl=Zl(!0),ea=Zl(!1),ta=null,na=null,ra=!1;function la(e,t){var n=Zr(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function aa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function ia(e){if(ra){var t=na;if(t){var n=t;if(!aa(e,t)){if(!(t=Nr(n))||!aa(e,t))return e.effectTag|=2,ra=!1,void(ta=e);la(ta,n)}ta=e,na=Ir(t)}else e.effectTag|=2,ra=!1,ta=e}}function oa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;ta=e}function ua(e){if(e!==ta)return!1;if(!ra)return oa(e),ra=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Sr(t,e.memoizedProps))for(t=na;t;)la(e,t),t=Nr(t);return oa(e),na=ta?Nr(e.stateNode):null,!0}function ca(){na=ta=null,ra=!1}function sa(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:throw e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._result=t,t}}var fa=Xe.ReactCurrentOwner;function da(e,t,n,r){t.child=null===e?ea(t,null,n,r):Jl(t,e.child,n,r)}function pa(e,t,n,r,l){n=n.render;var a=t.ref;return Rr.current||t.memoizedProps!==r||a!==(null!==e?e.ref:null)?(da(e,t,r=n(r,a),l),t.child):wa(e,t,l)}function ma(e,t,n,r,l,a){if(null===e){var i=n.type;return"function"!=typeof i||Jr(i)||void 0!==i.defaultProps||null!==n.compare?((e=nl(n.type,null,r,null,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ha(e,t,i,r,l,a))}return i=e.child,(0===l||l>a)&&(l=i.memoizedProps,(n=null!==(n=n.compare)?n:cn)(l,r)&&e.ref===t.ref)?wa(e,t,a):((e=tl(i,r,a)).ref=t.ref,e.return=t,t.child=e)}function ha(e,t,n,r,l,a){return null!==e&&(0===l||l>a)&&cn(e.memoizedProps,r)&&e.ref===t.ref?wa(e,t,a):ga(e,t,n,r,a)}function va(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function ga(e,t,n,r,l){var a=Wr(n)?Lr:Fr.current;return a=Ar(t,a),Il(t,l),n=n(r,a),t.effectTag|=1,da(e,t,n,l),t.child}function ya(e,t,n,r,l){if(Wr(n)){var a=!0;Qr(t)}else a=!1;if(Il(t,l),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Kl(t,n,r,l),Yl(t,n,r,l),r=!0;else if(null===e){var i=t.stateNode,o=t.memoizedProps;i.props=o;var u=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Vl.currentDispatcher.readContext(c):c=Ar(t,c=Wr(n)?Lr:Fr.current);var s=n.getDerivedStateFromProps,f="function"==typeof s||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==r||u!==c)&&$l(t,i,r,c),fl=!1;var d=t.memoizedState;u=i.state=d;var p=t.updateQueue;null!==p&&(kl(t,p,r,i,l),u=t.memoizedState),o!==r||d!==u||Rr.current||fl?("function"==typeof s&&(Bl(t,n,s,r),u=t.memoizedState),(o=fl||Ql(t,n,o,r,d,u,c))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.effectTag|=4)):("function"==typeof i.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=c,r=o):("function"==typeof i.componentDidMount&&(t.effectTag|=4),r=!1)}else i=t.stateNode,o=t.memoizedProps,i.props=o,u=i.context,"object"==typeof(c=n.contextType)&&null!==c?c=Vl.currentDispatcher.readContext(c):c=Ar(t,c=Wr(n)?Lr:Fr.current),(f="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==r||u!==c)&&$l(t,i,r,c),fl=!1,u=t.memoizedState,d=i.state=u,null!==(p=t.updateQueue)&&(kl(t,p,r,i,l),d=t.memoizedState),o!==r||u!==d||Rr.current||fl?("function"==typeof s&&(Bl(t,n,s,r),d=t.memoizedState),(s=fl||Ql(t,n,o,r,u,d,c))?(f||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,d,c),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof i.componentDidUpdate&&(t.effectTag|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),i.props=r,i.state=d,i.context=c,r=s):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return ba(e,t,n,r,a,l)}function ba(e,t,n,r,l,a){va(e,t);var i=0!=(64&t.effectTag);if(!r&&!i)return l&&Kr(t,n,!1),wa(e,t,a);r=t.stateNode,fa.current=t;var o=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&i?(t.child=Jl(t,e.child,null,a),t.child=Jl(t,null,o,a)):da(e,t,o,a),t.memoizedState=r.state,l&&Kr(t,n,!0),t.child}function ka(e){var t=e.stateNode;t.pendingContext?Br(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Br(e,t.context,!1),Rl(e,t.containerInfo)}function Ta(e,n){if(e&&e.defaultProps)for(var r in n=t({},n),e=e.defaultProps)void 0===n[r]&&(n[r]=e[r]);return n}function xa(e,t,n){var r=t.mode,l=t.pendingProps,a=t.memoizedState;null!==a&&(a.alreadyCaptured?null!==e&&a===e.memoizedState?a={alreadyCaptured:!0,didTimeout:!0,timedOutAt:a.timedOutAt}:(a.alreadyCaptured=!0,a.didTimeout=!0):a=null);var i=null!==a&&a.didTimeout;if(null===e)i?(i=l.fallback,l=rl(null,r,0,null),r=rl(i,r,n,null),l.sibling=r,(n=l).return=r.return=t):n=r=ea(t,null,l.children,n);else{var o=e.memoizedState;null!==o&&o.didTimeout?(e=(r=e.child).sibling,i?(n=l.fallback,(r=tl(r,r.pendingProps,0)).effectTag|=2,(l=r.sibling=tl(e,n,e.expirationTime)).effectTag|=2,n=r,r.childExpirationTime=0,r=l,n.return=r.return=t):(i=e.child,r=Jl(t,r.child,l.children,n),Jl(t,i,null,n),n=r)):(e=e.child,i?(i=l.fallback,(l=rl(null,r,0,null)).effectTag|=2,l.child=e,e.return=l,(r=l.sibling=rl(i,r,n,null)).effectTag|=2,n=l,l.childExpirationTime=0,n.return=r.return=t):r=n=Jl(t,e,l.children,n))}return t.memoizedState=a,t.child=n,r}function wa(e,t,n){null!==e&&(t.firstContextDependency=e.firstContextDependency);var r=t.childExpirationTime;if(0===r||r>n)return null;if(null!==e&&t.child!==e.child&&l("153"),null!==t.child){for(n=tl(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=tl(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Ca(e,t,n){var r=t.expirationTime;if(null!==e&&e.memoizedProps===t.pendingProps&&!Rr.current&&(0===r||r>n)){switch(t.tag){case 3:ka(t),ca();break;case 5:Al(t);break;case 1:Wr(t.type)&&Qr(t);break;case 4:Rl(t,t.stateNode.containerInfo);break;case 10:Pl(t,t.memoizedProps.value);break;case 13:if(null!==(r=t.memoizedState)&&r.didTimeout)return 0!==(r=t.child.childExpirationTime)&&r<=n?xa(e,t,n):null!==(t=wa(e,t,n))?t.sibling:null}return wa(e,t,n)}switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var a=Ar(t,Fr.current);if(Il(t,n),a=r(e,a),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,Wr(r)){var i=!0;Qr(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null;var o=r.getDerivedStateFromProps;"function"==typeof o&&Bl(t,r,o,e),a.updater=Hl,t.stateNode=a,a._reactInternalFiber=t,Yl(t,r,e,n),t=ba(null,t,r,!0,i,n)}else t.tag=0,da(null,t,a,n),t=t.child;return t;case 16:switch(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),i=t.pendingProps,e=sa(a),t.type=e,a=t.tag=el(e),i=Ta(e,i),o=void 0,a){case 0:o=ga(null,t,e,i,n);break;case 1:o=ya(null,t,e,i,n);break;case 11:o=pa(null,t,e,i,n);break;case 14:o=ma(null,t,e,Ta(e.type,i),r,n);break;default:l("283",e)}return o;case 0:return r=t.type,a=t.pendingProps,ga(e,t,r,a=t.elementType===r?a:Ta(r,a),n);case 1:return r=t.type,a=t.pendingProps,ya(e,t,r,a=t.elementType===r?a:Ta(r,a),n);case 3:return ka(t),null===(r=t.updateQueue)&&l("282"),a=null!==(a=t.memoizedState)?a.element:null,kl(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===a?(ca(),t=wa(e,t,n)):(a=t.stateNode,(a=(null===e||null===e.child)&&a.hydrate)&&(na=Ir(t.stateNode.containerInfo),ta=t,a=ra=!0),a?(t.effectTag|=2,t.child=ea(t,null,r,n)):(da(e,t,r,n),ca()),t=t.child),t;case 5:return Al(t),null===e&&ia(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,o=a.children,Sr(r,a)?o=null:null!==i&&Sr(r,i)&&(t.effectTag|=16),va(e,t),1073741823!==n&&1&t.mode&&a.hidden?(t.expirationTime=1073741823,t=null):(da(e,t,o,n),t=t.child),t;case 6:return null===e&&ia(t),null;case 13:return xa(e,t,n);case 4:return Rl(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Jl(t,null,r,n):da(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,pa(e,t,r,a=t.elementType===r?a:Ta(r,a),n);case 7:return da(e,t,t.pendingProps,n),t.child;case 8:case 12:return da(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,Pl(t,i=a.value),null!==o){var u=o.value;if(0===(i=u===i&&(0!==u||1/u==1/i)||u!=u&&i!=i?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(o.children===a.children&&!Rr.current){t=wa(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){if(null!==(u=o.firstContextDependency))do{if(u.context===r&&0!=(u.observedBits&i)){if(1===o.tag){var c=ml(n);c.tag=2,vl(o,c)}(0===o.expirationTime||o.expirationTime>n)&&(o.expirationTime=n),null!==(c=o.alternate)&&(0===c.expirationTime||c.expirationTime>n)&&(c.expirationTime=n);for(var s=o.return;null!==s;){if(c=s.alternate,0===s.childExpirationTime||s.childExpirationTime>n)s.childExpirationTime=n,null!==c&&(0===c.childExpirationTime||c.childExpirationTime>n)&&(c.childExpirationTime=n);else{if(null===c||!(0===c.childExpirationTime||c.childExpirationTime>n))break;c.childExpirationTime=n}s=s.return}}c=o.child,u=u.next}while(null!==u);else c=10===o.tag&&o.type===t.type?null:o.child;if(null!==c)c.return=o;else for(c=o;null!==c;){if(c===t){c=null;break}if(null!==(o=c.sibling)){o.return=c.return,c=o;break}c=c.return}o=c}}da(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(i=t.pendingProps).children,Il(t,n),r=r(a=Ol(a,i.unstable_observedBits)),t.effectTag|=1,da(e,t,r,n),t.child;case 14:return ma(e,t,a=t.type,i=Ta(a.type,t.pendingProps),r,n);case 15:return ha(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ta(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Wr(r)?(e=!0,Qr(t)):e=!1,Il(t,n),Kl(t,r,a,n),Yl(t,r,a,n),ba(null,t,r,!0,e,n);default:l("156")}}function Ea(e){e.effectTag|=4}var Sa=void 0,_a=void 0,Pa=void 0,Na=void 0;function Ia(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=pt(n)),null!==n&&dt(n.type),t=t.value,null!==e&&1===e.tag&&dt(e.type);try{console.error(t)}catch(l){setTimeout(function(){throw l})}}function Oa(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){ri(e,n)}else t.current=null}function za(e){switch("function"==typeof Yr&&Yr(e),e.tag){case 1:Oa(e);var t=e.stateNode;if("function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){ri(e,n)}break;case 5:Oa(e);break;case 4:Ma(e)}}function Da(e){return 5===e.tag||3===e.tag||4===e.tag}function Ua(e){e:{for(var t=e.return;null!==t;){if(Da(t)){var n=t;break e}t=t.return}l("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:l("161")}16&n.effectTag&&(mr(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Da(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var a=e;;){if(5===a.tag||6===a.tag)if(n)if(r){var i=t,o=a.stateNode,u=n;8===i.nodeType?i.parentNode.insertBefore(o,u):i.insertBefore(o,u)}else t.insertBefore(a.stateNode,n);else r?(o=t,u=a.stateNode,8===o.nodeType?(i=o.parentNode).insertBefore(u,o):(i=o).appendChild(u),null!=(o=o._reactRootContainer)||null!==i.onclick||(i.onclick=xr)):t.appendChild(a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===e)break;for(;null===a.sibling;){if(null===a.return||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function Ma(e){for(var t=e,n=!1,r=void 0,a=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&l("160"),n.tag){case 5:r=n.stateNode,a=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,a=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,o=i;;)if(za(o),null!==o.child&&4!==o.tag)o.child.return=o,o=o.child;else{if(o===i)break;for(;null===o.sibling;){if(null===o.return||o.return===i)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}a?(i=r,o=t.stateNode,8===i.nodeType?i.parentNode.removeChild(o):i.removeChild(o)):r.removeChild(t.stateNode)}else if(4===t.tag?(r=t.stateNode.containerInfo,a=!0):za(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Fa(e,t){switch(t.tag){case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,a=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[F]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Nt(n,r),kr(e,a),t=kr(e,r),a=0;a<\/script>",f=i.removeChild(i.firstChild)):"string"==typeof p.is?f=f.createElement(i,{is:p.is}):(f=f.createElement(i),"select"===i&&p.multiple&&(f.multiple=!0)):f=f.createElementNS(s,i),(i=f)[M]=d,i[F]=o,Sa(i,n,!1,!1),p=i;var m=u,h=kr(f=c,d=o);switch(f){case"iframe":case"object":Un("load",p),u=d;break;case"video":case"audio":for(u=0;u=h?p=0:(-1===p||hr||0!==i&&i>r||0!==o&&o>r)return ul(e,r),void Ui(e,t,r,e.expirationTime,-1);if(!e.didError&&!n)return e.didError=!0,r=e.nextExpirationTimeToWorkOn=r,n=e.expirationTime=1,void Ui(e,t,r,n,-1)}n||-1===Ya?(e.pendingCommitExpirationTime=r,e.finishedWork=t):(ul(e,r),(n=10*(cl(e,r)-2))n?0:n))}}function ri(e,t){var n;e:{for(Ha&&!Ga&&l("263"),n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Za||!Za.has(r))){vl(n,e=La(n,e=wl(t,e),1)),oi(n,1),n=void 0;break e}break;case 3:vl(n,e=Ra(n,e=wl(t,e),1)),oi(n,1),n=void 0;break e}n=n.return}3===e.tag&&(vl(e,n=Ra(e,n=wl(t,e),1)),oi(e,1)),n=void 0}return n}function li(e,t){return 0!==Ba?e=Ba:Ha?e=Ga?1:$a:1&t.mode?(e=wi?2+10*(1+((e-2+15)/10|0)):2+25*(1+((e-2+500)/25|0)),null!==Ka&&e===$a&&(e+=1)):e=1,wi&&e>vi&&(vi=e),e}function ai(e,t,n,r){var l=e.earliestSuspendedTime,a=e.latestSuspendedTime;if(0!==l&&r>=l&&r<=a){a=l=r,e.didError=!1;var i=e.latestPingedTime;(0===i||it)&&(e.expirationTime=t);var n=e.alternate;null!==n&&(0===n.expirationTime||n.expirationTime>t)&&(n.expirationTime=t);var r=e.return,l=null;if(null===r&&3===e.tag)l=e.stateNode;else for(;null!==r;){if(n=r.alternate,(0===r.childExpirationTime||r.childExpirationTime>t)&&(r.childExpirationTime=t),null!==n&&(0===n.childExpirationTime||n.childExpirationTime>t)&&(n.childExpirationTime=t),null===r.return&&3===r.tag){l=r.stateNode;break}r=r.return}return null===l?null:l}function oi(e,t){null!==(e=ii(e,t))&&(!Ha&&0!==$a&&t<$a&&Ja(),ol(e,t),Ha&&!Ga&&Ka===e||Ri(e,e.expirationTime),Ni>Pi&&(Ni=0,l("185")))}function ui(e,t,n,r,l){var a=Ba;Ba=1;try{return e(t,n,r,l)}finally{Ba=a}}var ci=null,si=null,fi=0,di=void 0,pi=!1,mi=null,hi=0,vi=0,gi=!1,yi=!1,bi=null,ki=null,Ti=!1,xi=!1,wi=!1,Ci=null,Ei=n.unstable_now(),Si=2+(Ei/10|0),_i=Si,Pi=50,Ni=0,Ii=null,Oi=1;function zi(){Si=2+((n.unstable_now()-Ei)/10|0)}function Di(e,t){if(0!==fi){if(t>fi)return;null!==di&&n.unstable_cancelCallback(di)}fi=t,e=n.unstable_now()-Ei,di=n.unstable_scheduleCallback(Ai,{timeout:10*(t-2)-e})}function Ui(e,t,n,r,l){e.expirationTime=r,0!==l||Hi()?0=n&&(t.nextExpirationTimeToWorkOn=Si),t=t.nextScheduledRoot}while(t!==ci)}Wi(0,e)}function Wi(e,t){if(ki=t,Li(),null!==ki)for(zi(),_i=Si;null!==mi&&0!==hi&&(0===e||e>=hi)&&(!gi||Si>=hi);)ji(mi,hi,Si>=hi),Li(),zi(),_i=Si;else for(;null!==mi&&0!==hi&&(0===e||e>=hi);)ji(mi,hi,!0),Li();if(null!==ki&&(fi=0,di=null),0!==hi&&Di(mi,hi),ki=null,gi=!1,Ni=0,Ii=null,null!==Ci)for(e=Ci,Ci=null,t=0;te.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,ol(e,u)):ute){var ne=te;te=ee,ee=ne}var re=Hn($,ee),le=Hn($,te);if(re&&le&&(1!==Z.rangeCount||Z.anchorNode!==re.node||Z.anchorOffset!==re.offset||Z.focusNode!==le.node||Z.focusOffset!==le.offset)){var ae=G.createRange();ae.setStart(re.node,re.offset),Z.removeAllRanges(),ee>te?(Z.addRange(ae),Z.extend(le.node,le.offset)):(ae.setEnd(le.node,le.offset),Z.addRange(ae))}}}for(var ie=[],oe=$;oe=oe.parentNode;)1===oe.nodeType&&ie.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});"function"==typeof $.focus&&$.focus();for(var ue=0;ueOi)&&(gi=!0)}function Qi(e){null===mi&&l("246"),mi.expirationTime=0,yi||(yi=!0,bi=e)}function Ki(e,t){var n=Ti;Ti=!0;try{return e(t)}finally{(Ti=n)||pi||Wi(1,null)}}function $i(e,t){if(Ti&&!xi){xi=!0;try{return e(t)}finally{xi=!1}}return e(t)}function Yi(e,t,n){if(wi)return e(t,n);Ti||pi||0===vi||(Wi(vi,null),vi=0);var r=wi,l=Ti;Ti=wi=!0;try{return e(t,n)}finally{wi=r,(Ti=l)||pi||Wi(1,null)}}function Xi(e,t,n,r,a){var i=t.current;e:if(n){t:{2===sn(n=n._reactInternalFiber)&&1===n.tag||l("170");var o=n;do{switch(o.tag){case 3:o=o.stateNode.context;break t;case 1:if(Wr(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break t}}o=o.return}while(null!==o);l("171"),o=void 0}if(1===n.tag){var u=n.type;if(Wr(u)){n=Hr(n,u,o);break e}}n=o}else n=Mr;return null===t.context?t.context=n:t.pendingContext=n,t=a,(a=ml(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(a.callback=t),vl(i,a),oi(i,r),r}function qi(e,t,n,r){var l=t.current;return Xi(e,t,n,l=li(Fi(),l),r)}function Gi(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Zi(e,t,n){var r=3e.score?-1:r.index-e.index})},b=function(r){return r.replace(/(^\/+|\/+$)/g,"").split("/")},g=function(r,e){return r+(e?"?"+e:"")},k=["uri","path"]; 40 | },{"invariant":"2gTp"}],"9+jT":[function(require,module,exports) { 41 | "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createMemorySource=exports.createHistory=exports.navigate=exports.globalHistory=void 0;var t=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},u=c.state,p=c.replace,l=void 0!==p&&p;u=t({},u,{key:Date.now()+""});try{i||l?n.history.replaceState(u,null,r):n.history.pushState(u,null,r)}catch(f){n.location[l?"replace":"assign"](r)}a=e(n),i=!0;var v=new Promise(function(t){return s=t});return o.forEach(function(t){return t({location:a,action:"PUSH"})}),v}}};exports.createHistory=n;var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=0,n=[{pathname:t,search:""}],r=[];return{get location(){return n[e]},addEventListener:function(t,e){},removeEventListener:function(t,e){},history:{get entries(){return n},get index(){return e},get state(){return r[e]},pushState:function(t,o,a){var i=a.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;e++,n.push({pathname:s,search:u}),r.push(t)},replaceState:function(t,o,a){var i=a.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;n[e]={pathname:s,search:u},r[e]=t}}}};exports.createMemorySource=r;var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a=function(){return o?window:r()},i=n(a());exports.globalHistory=i;var s=i.navigate;exports.navigate=s; 42 | },{}],"VJZj":[function(require,module,exports) { 43 | "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"globalHistory",{enumerable:!0,get:function(){return u.globalHistory}}),Object.defineProperty(exports,"navigate",{enumerable:!0,get:function(){return u.navigate}}),Object.defineProperty(exports,"createHistory",{enumerable:!0,get:function(){return u.createHistory}}),Object.defineProperty(exports,"createMemorySource",{enumerable:!0,get:function(){return u.createMemorySource}}),exports.redirectTo=exports.isRedirect=exports.ServerLocation=exports.Router=exports.Redirect=exports.Match=exports.LocationProvider=exports.Location=exports.Link=void 0;var e=c(require("react")),t=c(require("warning")),r=c(require("prop-types")),n=c(require("invariant")),o=c(require("create-react-context")),a=require("react-lifecycles-compat"),i=require("./lib/utils"),u=require("./lib/history");function c(e){return e&&e.__esModule?e:{default:e}}var l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 d(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)}var h=function(e,t){var r=(0,o.default)(t);return r.Consumer.displayName=e+".Consumer",r.Provider.displayName=e+".Provider",r},v=h("Location"),m=function(t){var r=t.children;return e.default.createElement(v.Consumer,null,function(t){return t?r(t):e.default.createElement(y,null,r)})};exports.Location=m;var y=function(t){function r(){var e,n;p(this,r);for(var o=arguments.length,a=Array(o),i=0;i 19 | 20 | 21 | 22 | 23 | 24 |