index4single.js
27.8 KB
!function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("React"),require("mobx"),require("mobxReact"),require("ReactDOM"),require("ReactRouter"),require("weaPortalPublic")):"function"===typeof define&&define.amd?define(["React","mobx","mobxReact","ReactDOM","ReactRouter","weaPortalPublic"],t):"object"===typeof exports?exports.weaPortalPublic=t(require("React"),require("mobx"),require("mobxReact"),require("ReactDOM"),require("ReactRouter"),require("weaPortalPublic")):e.weaPortalPublic=t(e.React,e.mobx,e.mobxReact,e.ReactDOM,e.ReactRouter,e.weaPortalPublic)}(this,function(e,t,n,r,o,i){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="/spa/portal/public/",t(t.s=479)}({0:function(t,n){t.exports=e},11:function(e,n){e.exports=t},121:function(e,t,n){"use strict";t.__esModule=!0,t.go=t.replaceLocation=t.pushLocation=t.startListener=t.getUserConfirmation=t.getCurrentLocation=void 0;var r=n(39),o=n(63),i=n(189),a=n(26),u=n(86),c=u.canUseDOM&&!(0,o.supportsPopstateOnHashchange)(),s=function(e){var t=e&&e.key;return(0,r.createLocation)({pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:t?(0,i.readState)(t):void 0},void 0,t)},f=t.getCurrentLocation=function(){var e=void 0;try{e=window.history.state||{}}catch(t){e={}}return s(e)},l=(t.getUserConfirmation=function(e,t){return t(window.confirm(e))},t.startListener=function(e){var t=function(t){(0,o.isExtraneousPopstateEvent)(t)||e(s(t.state))};(0,o.addEventListener)(window,"popstate",t);var n=function(){return e(f())};return c&&(0,o.addEventListener)(window,"hashchange",n),function(){(0,o.removeEventListener)(window,"popstate",t),c&&(0,o.removeEventListener)(window,"hashchange",n)}},function(e,t){var n=e.state,r=e.key;void 0!==n&&(0,i.saveState)(r,n),t({key:r},(0,a.createPath)(e))});t.pushLocation=function(e){return l(e,function(e,t){return window.history.pushState(e,null,t)})},t.replaceLocation=function(e){return l(e,function(e,t){return window.history.replaceState(e,null,t)})},t.go=function(e){e&&window.history.go(e)}},122:function(e,t,n){"use strict";t.__esModule=!0;var r=n(483),o=n(26),i=n(123),a=function(e){return e&&e.__esModule?e:{default:e}}(i),u=n(85),c=n(39),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,n=e.getUserConfirmation,i=e.pushLocation,s=e.replaceLocation,f=e.go,l=e.keyLength,d=void 0,h=void 0,p=[],v=[],y=[],g=function(){return h&&h.action===u.POP?y.indexOf(h.key):d?y.indexOf(d.key):-1},b=function(e){var t=g();d=e,d.action===u.PUSH?y=[].concat(y.slice(0,t+1),[d.key]):d.action===u.REPLACE&&(y[t]=d.key),v.forEach(function(e){return e(d)})},m=function(e){return p.push(e),function(){return p=p.filter(function(t){return t!==e})}},w=function(e){return v.push(e),function(){return v=v.filter(function(t){return t!==e})}},P=function(e,t){(0,r.loopAsync)(p.length,function(t,n,r){(0,a.default)(p[t],e,function(e){return null!=e?r(e):n()})},function(e){n&&"string"===typeof e?n(e,function(e){return t(!1!==e)}):t(!1!==e)})},O=function(e){d&&(0,c.locationsAreEqual)(d,e)||h&&(0,c.locationsAreEqual)(h,e)||(h=e,P(e,function(t){if(h===e)if(h=null,t){if(e.action===u.PUSH){var n=(0,o.createPath)(d),r=(0,o.createPath)(e);r===n&&(0,c.statesAreEqual)(d.state,e.state)&&(e.action=u.REPLACE)}e.action===u.POP?b(e):e.action===u.PUSH?!1!==i(e)&&b(e):e.action===u.REPLACE&&!1!==s(e)&&b(e)}else if(d&&e.action===u.POP){var a=y.indexOf(d.key),l=y.indexOf(e.key);-1!==a&&-1!==l&&f(a-l)}}))},_=function(e){return O(S(e,u.PUSH))},L=function(e){return O(S(e,u.REPLACE))},j=function(){return f(-1)},E=function(){return f(1)},x=function(){return Math.random().toString(36).substr(2,l||6)},M=function(e){return(0,o.createPath)(e)},S=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x();return(0,c.createLocation)(e,t,n)};return{getCurrentLocation:t,listenBefore:m,listen:w,transitionTo:O,push:_,replace:L,go:f,goBack:j,goForward:E,createKey:x,createPath:o.createPath,createHref:M,createLocation:S}};t.default=s},123:function(e,t,n){"use strict";t.__esModule=!0;var r=n(40),o=(function(e){e&&e.__esModule}(r),function(e,t,n){var r=e(t,n);e.length<2&&n(r)});t.default=o},13:function(e,t){e.exports=n},189:function(e,t,n){"use strict";t.__esModule=!0,t.readState=t.saveState=void 0;var r=n(40),o=(function(e){e&&e.__esModule}(r),{QuotaExceededError:!0,QUOTA_EXCEEDED_ERR:!0}),i={SecurityError:!0},a=function(e){return"@@History/"+e};t.saveState=function(e,t){if(window.sessionStorage)try{null==t?window.sessionStorage.removeItem(a(e)):window.sessionStorage.setItem(a(e),JSON.stringify(t))}catch(e){if(i[e.name])return;if(o[e.name]&&0===window.sessionStorage.length)return;throw e}},t.readState=function(e){var t=void 0;try{t=window.sessionStorage.getItem(a(e))}catch(e){if(i[e.name])return}if(t)try{return JSON.parse(t)}catch(e){}}},26:function(e,t,n){"use strict";t.__esModule=!0,t.createPath=t.parsePath=t.getQueryStringValueFromPath=t.stripQueryStringValueFromPath=t.addQueryStringValueToPath=void 0;var r=n(40),o=(function(e){e&&e.__esModule}(r),t.addQueryStringValueToPath=function(e,t,n){var r=i(e),o=r.pathname,u=r.search,c=r.hash;return a({pathname:o,search:u+(-1===u.indexOf("?")?"?":"&")+t+"="+n,hash:c})},t.stripQueryStringValueFromPath=function(e,t){var n=i(e),r=n.pathname,o=n.search,u=n.hash;return a({pathname:r,search:o.replace(new RegExp("([?&])"+t+"=[a-zA-Z0-9]+(&?)"),function(e,t,n){return"?"===t?t:n}),hash:u})},t.getQueryStringValueFromPath=function(e,t){var n=i(e),r=n.search,o=r.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return o&&o[1]},function(e){var t=e.match(/^(https?:)?\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}),i=t.parsePath=function(e){var t=o(e),n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substring(i),t=t.substring(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substring(a),t=t.substring(0,a)),""===t&&(t="/"),{pathname:t,search:n,hash:r}},a=t.createPath=function(e){if(null==e||"string"===typeof e)return e;var t=e.basename,n=e.pathname,r=e.search,o=e.hash,i=(t||"")+n;return r&&"?"!==r&&(i+=r),o&&(i+=o),i}},32: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)}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 f in n)i.call(n,f)&&(c[f]=n[f]);if(o){u=o(n);for(var l=0;l<u.length;l++)a.call(n,u[l])&&(c[u[l]]=n[u[l]])}}return c}},39:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.locationsAreEqual=t.statesAreEqual=t.createLocation=t.createQuery=void 0;var o="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},i=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},a=n(62),u=r(a),c=n(40),s=(r(c),n(26)),f=n(85),l=(t.createQuery=function(e){return i(Object.create(null),e)},t.createLocation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.POP,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="string"===typeof e?(0,s.parsePath)(e):e;return{pathname:r.pathname||"/",search:r.search||"",hash:r.hash||"",state:r.state,action:t,key:n}},function(e){return"[object Date]"===Object.prototype.toString.call(e)}),d=t.statesAreEqual=function e(t,n){if(t===n)return!0;var r="undefined"===typeof t?"undefined":o(t);if(r!==("undefined"===typeof n?"undefined":o(n)))return!1;if("function"===r&&(0,u.default)(!1),"object"===r){if(l(t)&&l(n)&&(0,u.default)(!1),!Array.isArray(t)){var i=Object.keys(t),a=Object.keys(n);return i.length===a.length&&i.every(function(r){return e(t[r],n[r])})}return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&d(e.state,t.state)}},40:function(e,t,n){"use strict";var r=function(){};e.exports=r},479:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(0),i=r(o),a=n(59),u=r(a),c=n(13),s=n(480),f=n(87),l=n(492),d=n(493),h=r(d),p=(0,f.useRouterHistory)(s.createHashHistory)({queryKey:"_key",basename:"/"}),v=new l.RouterStore,y={routing:v},g=(0,l.syncHistoryWithStore)(p,y.routing);window.weaHistory=g;var b=function(){return i.default.createElement(c.Provider,y,i.default.createElement(f.Router,{history:g},i.default.createElement(f.Route,{path:"/",component:function(e){return e.children}},h.default.Route)))};u.default.render(i.default.createElement(b,null),document.getElementById("container"))},480:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.locationsAreEqual=t.Actions=t.useQueries=t.useBeforeUnload=t.useBasename=t.createMemoryHistory=t.createHashHistory=t.createHistory=void 0;var o=n(39);Object.defineProperty(t,"locationsAreEqual",{enumerable:!0,get:function(){return o.locationsAreEqual}});var i=n(481),a=r(i),u=n(484),c=r(u),s=n(486),f=r(s),l=n(487),d=r(l),h=n(488),p=r(h),v=n(489),y=r(v),g=n(85),b=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(g);t.createHistory=a.default,t.createHashHistory=c.default,t.createMemoryHistory=f.default,t.useBasename=d.default,t.useBeforeUnload=p.default,t.useQueries=y.default,t.Actions=b},481:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=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},a=n(62),u=o(a),c=n(86),s=n(121),f=r(s),l=n(482),d=r(l),h=n(63),p=n(122),v=o(p),y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c.canUseDOM||(0,u.default)(!1);var t=e.forceRefresh||!(0,h.supportsHistory)(),n=t?d:f,r=n.getUserConfirmation,o=n.getCurrentLocation,a=n.pushLocation,s=n.replaceLocation,l=n.go,p=(0,v.default)(i({getUserConfirmation:r},e,{getCurrentLocation:o,pushLocation:a,replaceLocation:s,go:l})),y=0,g=void 0,b=function(e,t){1===++y&&(g=f.startListener(p.transitionTo));var n=t?p.listenBefore(e):p.listen(e);return function(){n(),0===--y&&g()}};return i({},p,{listenBefore:function(e){return b(e,!0)},listen:function(e){return b(e,!1)}})};t.default=y},482:function(e,t,n){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(121);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var o=n(39),i=n(26);t.getCurrentLocation=function(){return(0,o.createLocation)(window.location)},t.pushLocation=function(e){return window.location.href=(0,i.createPath)(e),!1},t.replaceLocation=function(e){return window.location.replace((0,i.createPath)(e)),!1}},483:function(e,t,n){"use strict";t.__esModule=!0;t.loopAsync=function(e,t,n){var r=0,o=!1,i=!1,a=!1,u=void 0,c=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(o=!0,i)return void(u=t);n.apply(void 0,t)};!function s(){if(!o&&(a=!0,!i)){for(i=!0;!o&&r<e&&a;)a=!1,t(r++,s,c);if(i=!1,o)return void n.apply(void 0,u);r>=e&&a&&(o=!0,n())}}()}},484:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=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},i=n(40),a=(r(i),n(62)),u=r(a),c=n(86),s=n(63),f=n(485),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(f),d=n(122),h=r(d),p=function(e){return"/"===e.charAt(0)?e:"/"+e},v={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!"+e},decodePath:function(e){return"!"===e.charAt(0)?e.substring(1):e}},noslash:{encodePath:function(e){return"/"===e.charAt(0)?e.substring(1):e},decodePath:p},slash:{encodePath:p,decodePath:p}},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c.canUseDOM||(0,u.default)(!1);var t=e.queryKey,n=e.hashType;"string"!==typeof t&&(t="_k"),null==n&&(n="slash"),n in v||(n="slash");var r=v[n],i=l.getUserConfirmation,a=function(){return l.getCurrentLocation(r,t)},f=function(e){return l.pushLocation(e,r,t)},d=function(e){return l.replaceLocation(e,r,t)},p=(0,h.default)(o({getUserConfirmation:i},e,{getCurrentLocation:a,pushLocation:f,replaceLocation:d,go:l.go})),y=0,g=void 0,b=function(e,n){1===++y&&(g=l.startListener(p.transitionTo,r,t));var o=n?p.listenBefore(e):p.listen(e);return function(){o(),0===--y&&g()}},m=function(e){return b(e,!0)},w=function(e){return b(e,!1)};(0,s.supportsGoWithoutReloadUsingHash)();return o({},p,{listenBefore:m,listen:w,go:function(e){p.go(e)},createHref:function(e){return"#"+r.encodePath(p.createHref(e))}})};t.default=y},485:function(e,t,n){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(121);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var o=n(40),i=(function(e){e&&e.__esModule}(o),n(39)),a=n(63),u=n(189),c=n(26),s=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},f=function(e){return window.location.hash=e},l=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},d=t.getCurrentLocation=function(e,t){var n=e.decodePath(s()),r=(0,c.getQueryStringValueFromPath)(n,t),o=void 0;r&&(n=(0,c.stripQueryStringValueFromPath)(n,t),o=(0,u.readState)(r));var a=(0,c.parsePath)(n);return a.state=o,(0,i.createLocation)(a,void 0,r)},h=void 0,p=(t.startListener=function(e,t,n){var r=function(){var r=s(),o=t.encodePath(r);if(r!==o)l(o);else{var i=d(t,n);if(h&&i.key&&h.key===i.key)return;h=i,e(i)}},o=s(),i=t.encodePath(o);return o!==i&&l(i),(0,a.addEventListener)(window,"hashchange",r),function(){return(0,a.removeEventListener)(window,"hashchange",r)}},function(e,t,n,r){var o=e.state,i=e.key,a=t.encodePath((0,c.createPath)(e));void 0!==o&&(a=(0,c.addQueryStringValueToPath)(a,n,i),(0,u.saveState)(i,o)),h=e,r(a)});t.pushLocation=function(e,t,n){return p(e,t,n,function(e){s()!==e&&f(e)})},t.replaceLocation=function(e,t,n){return p(e,t,n,function(e){s()!==e&&l(e)})}},486:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=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},i=n(40),a=(r(i),n(62)),u=r(a),c=n(39),s=n(26),f=n(122),l=r(f),d=n(85),h=function(e){return e.filter(function(e){return e.state}).reduce(function(e,t){return e[t.key]=t.state,e},{})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)?e={entries:e}:"string"===typeof e&&(e={entries:[e]});var t=function(){var e=v[y],t=(0,s.createPath)(e),n=void 0,r=void 0;e.key&&(n=e.key,r=m(n));var i=(0,s.parsePath)(t);return(0,c.createLocation)(o({},i,{state:r}),void 0,n)},n=function(e){var t=y+e;return t>=0&&t<v.length},r=function(e){if(e&&n(e)){y+=e;var r=t();f.transitionTo(o({},r,{action:d.POP}))}},i=function(e){y+=1,y<v.length&&v.splice(y),v.push(e),b(e.key,e.state)},a=function(e){v[y]=e,b(e.key,e.state)},f=(0,l.default)(o({},e,{getCurrentLocation:t,pushLocation:i,replaceLocation:a,go:r})),p=e,v=p.entries,y=p.current;"string"===typeof v?v=[v]:Array.isArray(v)||(v=["/"]),v=v.map(function(e){return(0,c.createLocation)(e)}),null==y?y=v.length-1:y>=0&&y<v.length||(0,u.default)(!1);var g=h(v),b=function(e,t){return g[e]=t},m=function(e){return g[e]};return o({},f,{canGo:n})};t.default=p},487:function(e,t,n){"use strict";t.__esModule=!0;var r=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},o=n(123),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=n(26),u=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),o=t.basename,u=function(e){return e?(o&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(o.toLowerCase())?(e.pathname=e.pathname.substring(o.length),e.basename=o,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},c=function(e){if(!o)return e;var t="string"===typeof e?(0,a.parsePath)(e):e,n=t.pathname,i="/"===o.slice(-1)?o:o+"/",u="/"===n.charAt(0)?n.slice(1):n;return r({},t,{pathname:i+u})};return r({},n,{getCurrentLocation:function(){return u(n.getCurrentLocation())},listenBefore:function(e){return n.listenBefore(function(t,n){return(0,i.default)(e,u(t),n)})},listen:function(e){return n.listen(function(t){return e(u(t))})},push:function(e){return n.push(c(e))},replace:function(e){return n.replace(c(e))},createPath:function(e){return n.createPath(c(e))},createHref:function(e){return n.createHref(c(e))},createLocation:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return u(n.createLocation.apply(n,[c(e)].concat(r)))}})}};t.default=u},488:function(e,t,n){"use strict";t.__esModule=!0;var r=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},o=n(62),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=n(63),u=n(86),c=function(e){var t=function(t){var n=e();if("string"===typeof n)return(t||window.event).returnValue=n,n};return(0,a.addEventListener)(window,"beforeunload",t),function(){return(0,a.removeEventListener)(window,"beforeunload",t)}},s=function(e){return u.canUseDOM||(0,i.default)(!1),function(t){var n=e(t),o=[],i=void 0,a=function(){for(var e=void 0,t=0,n=o.length;null==e&&t<n;++t)e=o[t].call();return e};return r({},n,{listenBeforeUnload:function(e){return 1===o.push(e)&&(i=c(a)),function(){o=o.filter(function(t){return t!==e}),0===o.length&&i&&(i(),i=null)}}})}};t.default=s},489:function(e,t,n){"use strict";t.__esModule=!0;var r=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},o=n(490),i=n(123),a=function(e){return e&&e.__esModule?e:{default:e}}(i),u=n(39),c=n(26),s=function(e){return(0,o.stringify)(e).replace(/%20/g,"+")},f=o.parse,l=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),o=t.stringifyQuery,i=t.parseQueryString;"function"!==typeof o&&(o=s),"function"!==typeof i&&(i=f);var l=function(e){return e?(null==e.query&&(e.query=i(e.search.substring(1))),e):e},d=function(e,t){if(null==t)return e;var n="string"===typeof e?(0,c.parsePath)(e):e,i=o(t);return r({},n,{search:i?"?"+i:""})};return r({},n,{getCurrentLocation:function(){return l(n.getCurrentLocation())},listenBefore:function(e){return n.listenBefore(function(t,n){return(0,a.default)(e,l(t),n)})},listen:function(e){return n.listen(function(t){return e(l(t))})},push:function(e){return n.push(d(e,e.query))},replace:function(e){return n.replace(d(e,e.query))},createPath:function(e){return n.createPath(d(e,e.query))},createHref:function(e){return n.createHref(d(e,e.query))},createLocation:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i=n.createLocation.apply(n,[d(e,e.query)].concat(r));return e.query&&(i.query=(0,u.createQuery)(e.query)),l(i)}})}};t.default=l},490:function(e,t,n){"use strict";function r(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[i(t,e),"[",r,"]"].join(""):[i(t,e),"[",i(r,e),"]=",i(n,e)].join("")};case"bracket":return function(t,n){return null===n?i(t,e):[i(t,e),"[]=",i(n,e)].join("")};default:return function(t,n){return null===n?i(t,e):[i(t,e),"=",i(n,e)].join("")}}}function o(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t)return void(r[e]=n);void 0===r[e]&&(r[e]={}),r[e][t[1]]=n};case"bracket":return function(e,n,r){return t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0===r[e]?void(r[e]=[n]):void(r[e]=[].concat(r[e],n)):void(r[e]=n)};default:return function(e,t,n){if(void 0===n[e])return void(n[e]=t);n[e]=[].concat(n[e],t)}}}function i(e,t){return t.encode?t.strict?u(e):encodeURIComponent(e):e}function a(e){return Array.isArray(e)?e.sort():"object"===typeof e?a(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}var u=n(491),c=n(32);t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e,t){t=c({arrayFormat:"none"},t);var n=o(t),r=Object.create(null);return"string"!==typeof e?r:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),o=t.shift(),i=t.length>0?t.join("="):void 0;i=void 0===i?null:decodeURIComponent(i),n(decodeURIComponent(o),i,r)}),Object.keys(r).sort().reduce(function(e,t){var n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=a(n):e[t]=n,e},Object.create(null))):r},t.stringify=function(e,t){t=c({encode:!0,strict:!0,arrayFormat:"none"},t);var n=r(t);return e?Object.keys(e).sort().map(function(r){var o=e[r];if(void 0===o)return"";if(null===o)return i(r,t);if(Array.isArray(o)){var a=[];return o.slice().forEach(function(e){void 0!==e&&a.push(n(r,e,a.length))}),a.join("&")}return i(r,t)+"="+i(o,t)}).filter(function(e){return e.length>0}).join("&"):""}},491:function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},492:function(e,t,n){!function(t,r){e.exports=r(n(11))}(0,function(e){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.i=function(e){return e},t.d=function(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},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=4)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(3);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})})},function(e,t,n){"use strict";function r(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}Object.defineProperty(t,"__esModule",{value:!0}),t.RouterStore=void 0;var a,u,c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0);t.RouterStore=(a=function(){function e(){o(this,e),r(this,"location",u,this),this.history=null,this.push=this.push.bind(this),this.replace=this.replace.bind(this),this.go=this.go.bind(this),this.goBack=this.goBack.bind(this),this.goForward=this.goForward.bind(this)}return c(e,[{key:"_updateLocation",value:function(e){this.location=e}},{key:"push",value:function(e){this.history.push(e)}},{key:"replace",value:function(e){this.history.replace(e)}},{key:"go",value:function(e){this.history.go(e)}},{key:"goBack",value:function(){this.history.goBack()}},{key:"goForward",value:function(){this.history.goForward()}}]),e}(),u=i(a.prototype,"location",[s.observable],{enumerable:!0,initializer:function(){return null}}),i(a.prototype,"_updateLocation",[s.action],Object.getOwnPropertyDescriptor(a.prototype,"_updateLocation"),a.prototype),a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syncHistoryWithStore=void 0;var r=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},o=n(0);t.syncHistoryWithStore=function(e,t){t.history=e;var n=function(e){t._updateLocation(e)},i=e.listen(n);return n(e.getCurrentLocation()),r({},e,{listen:function(e){var n=function(n){e(t.location)},r=(0,o.observe)(t,"location",n);return e(t.location),function(){r()}},unsubscribe:function(){i()}})}},function(e,t,n){e.exports=n(1)}])})},493:function(e,t){e.exports=i},59:function(e,t){e.exports=r},62:function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,u){if(!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 s=[n,r,o,i,a,u],f=0;c=new Error(t.replace(/%s/g,function(){return s[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};e.exports=r},63:function(e,t,n){"use strict";t.__esModule=!0;t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.supportsPopstateOnHashchange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},85:function(e,t,n){"use strict";t.__esModule=!0;t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},86:function(e,t,n){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"===typeof window||!window.document||!window.document.createElement)},87:function(e,t){e.exports=o}})});
//# sourceMappingURL=index4single.js.map?v=83a8f374