=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_en.properties' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_en.properties 2015-10-15 14:07:18 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_en.properties 2015-10-15 23:57:44 +0000 @@ -24,12 +24,12 @@ intro_data_synchronization = Configure remote server URL and authentication for automatic synchronization of data. intro_calendar_settings=Configure the system calendar and date format. The system supports a wide range of calendars. intro_oauth2_clients=Configure which clients are allowed to access this system using OAuth2. -general_settings=General Settings -appearance_settings=Appearance Settings -email_settings=Email Settings -approval_settings=Approval Settings -calendar_settings=Calendar Settings -access_settings=Access Settings +general_settings=General +appearance_settings=Appearance +email_settings=Email +approval_settings=Approval +calendar_settings=Calendar +access_settings=Access data_synchronization=Data Synchronization general=General appearance=Appearance @@ -109,7 +109,7 @@ uses_image_from=will use image from custom_login_page_logo=Custom login page logo custom_top_menu_logo=Custom top menu logo -synchronization_settings=Synchronization Settings +synchronization_settings=Synchronization oauth2_clients=OAuth2 Clients remote_server_url=Remote server URL remote_server_username=Remote server username @@ -141,9 +141,17 @@ client_secret=Client Secret grant_types=Grant Types redirect_uris=Redirect URIs -weekly=Weekly +Weekly=Weekly yearly=Yearly -import_settings=Data Import Settings +Daily=Daily +Quarterly=Quarterly +Monthly=Monthly +THIS_BIMONTH=This bi-month +THIS_MONTH=This month +THIS_QUARTER=This quarter +THIS_SIX_MONTH=This six-month +THIS_WEEK=This week +import_settings=Data Import require_category_option_combos_to_match=Require category option combos to match category combo of data element require_organisation_units_to_match_assignment=Require organisation units to match assignment of data set require_attribute_option_combos_to_match=Require attribute option combos to match category combo of data set @@ -152,7 +160,7 @@ require_periods_to_match_period_type=Require periods to match period type of data set yyyy-MM-dd=1981-03-31 (yyyy-MM-dd) dd-MM-yyyy=03-31-1981 (dd-MM-yyyy) -server_settings=Server Settings +server_settings=Server level=Level search=Search no_settings_found_that_match=No settings found that match search @@ -161,3 +169,10 @@ 3_months=3 months 6_months=6 months 12_months=12 months +settings_updated=Setting updated +shortname= +one_url_per_line=One URL per line +field_required=This field is required +field_should_be_an_url=This field should contain an URL +field_should_be_an_email=This field should contain an e-mail address +field_should_be_a_number=This field should contain a number === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_fr.properties' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_fr.properties 2015-10-15 14:07:18 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_fr.properties 2015-10-15 23:57:44 +0000 @@ -60,7 +60,7 @@ allows_html=permettre le HTML application_footer=Pied de page de l'application code=Code -approval_settings=Approval settings +approval_settings=Approval macos=Mac OS intro_system_approval_settings=Configure the levels at which data is approved according to organisation unit level and category option group. system_approval_settings=System Approval Settings === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_km.properties' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_km.properties 2015-10-15 14:07:18 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_km.properties 2015-10-15 23:57:44 +0000 @@ -1,1 +1,1 @@ -access_settings=Access settings +access_settings=Access === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_lo.properties' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_lo.properties 2015-10-15 14:07:18 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_lo.properties 2015-10-15 23:57:44 +0000 @@ -1,11 +1,11 @@ openid_provider_label=OpenID Provider Label openid_provider=OpenID Provider username=User name -general_settings=General settings -appearance_settings=Appearance settings -approval_settings=Approval settings -calendar_settings=Calendar settings -access_settings=Access settings +general_settings=General +appearance_settings=Appearance +approval_settings=Approval +calendar_settings=Calendar +access_settings=Access date_format=Date Format google_analytics_ua_key=Google Analytics (Universal Analytics) Key omit_indicators_zero_numerator_data_mart=Omit indicator values with zero numerator in data mart @@ -30,7 +30,7 @@ intro_access_settings=Configure access to the system, like which user role should be used for user self registration. intro_data_synchronization=Configure remote server URL and authentication for automatic synchronization of data. intro_calendar_settings=Configure the system calendar and date format. The system supports a wide range of calendars. -email_settings=Email Settings +email_settings=Email data_synchronization=Data Synchronization general=General appearance=Appearance @@ -97,7 +97,7 @@ months=Months allow_users_to_grant_own_user_roles=Allow users to grant own user roles object_not_deleted_associated_by_objects=Object not deleted because it is associated by objects of type -analytics_max_limit=Maximum number of analytics records +analytics_max_limit=Maximum number of analytics records unlimited=Unlimited uses_image_from=will use image from custom_login_page_logo=Custom login page logo @@ -111,3 +111,6 @@ returns=returns test_settings=Test settings hidden=Hidden +server_settings= +active_menu_element_color= +import_settings= === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_vi.properties' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_vi.properties 2015-10-15 14:07:18 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/i18n/module/i18n_module_vi.properties 2015-10-15 23:57:44 +0000 @@ -8,7 +8,7 @@ no_start_page=Kh\u00f4ng c\u00f3 trang nh\u1ea5t dashboard_charts_to_display=Bi\u1ec3u \u0111\u1ed3 hi\u1ec3n th\u1ecb \u1edf b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n email_settings=C\u00e0i \u0111\u1eb7t email -access_settings=Access settings +access_settings=Access code=M\u00e3 appearance=Thi\u1ebft l\u1eadp giao di\u1ec7n email=Thi\u1ebft l\u1eadp giao th\u1ee9c th\u01b0 \u0111i\u1ec7n t\u1eed @@ -29,4 +29,4 @@ no_completeness_recipients=Ng\u01b0\u1eddi nh\u1eadn ch\u01b0a ho\u00e0n th\u00e0nh username=T\u00ean \u0111\u0103ng nh\u1eadp password=M\u1eadt kh\u1ea9u -application_title=Ti\u00eau \u0111\u1ec1 \u1ee9ng d\u1ee5ng +application_title=Ti\u00eau \u0111\u1ec1 \u1ee9ng d\u1ee5ng === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/index.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/index.html 2015-10-15 14:07:18 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/index.html 2015-10-15 23:57:44 +0000 @@ -2,16 +2,13 @@ Settings - + - + -
-

DHIS2 System Settings

- Loading, please wait... -
+
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/manifest.webapp' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/manifest.webapp 2015-10-15 14:07:18 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/manifest.webapp 2015-10-15 23:57:44 +0000 @@ -14,4 +14,4 @@ "href": ".." } } -} \ No newline at end of file +} === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/settings-app.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/settings-app.js 2015-10-15 14:07:18 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/settings-app.js 2015-10-15 23:57:44 +0000 @@ -1,13 +1,13 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,o){r.apply(this,[e,t,o].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,o){r.apply(this,[e,t,o].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.uiLocale;"en"!==t&&p.config.i18n.sources.add("i18n/module/i18n_module_"+t+".properties"),p.config.i18n.sources.add("i18n/module/i18n_module_en.properties")}var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&a["return"]&&a["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=Object.assign||function(e){for(var t=1;t0}).sort().join("\n"),Object.keys(e[0]).map(function(t){var n=e[0][t];e[0][t]=null===n||isNaN(n)?n:n.toString()}),y["default"].setState(Object.assign({},e[0],n)),l["default"].info("System settings loaded successfully.",y["default"].state),t()},function(e){l["default"].error(e)})}),m["default"].saveKey.subscribe(function(t){var n=i(t.data,2),r=n[0],o=n[1],s=e.system.settings.mapping[r];s.configuration?e.system.configuration.set(r,o).then(function(){window.snackbar&&window.snackbar.show()})["catch"](function(e){l["default"].error("Failed to save configuration:",e)}):e.system.settings.set(r,o).then(function(){window.snackbar&&window.snackbar.show()})["catch"](function(e){l["default"].error("Failed to save setting:",e)});var a=y["default"].state;a[r]=o,y["default"].setState(a)}),l["default"].info("D2 initialized",e),l["default"].info("Can settings:",e.currentUser.authorities.has("F_SYSTEM_SETTING"),"Can Oauth:",e.currentUser.authorities.has("F_OAUTH2_CLIENT_MANAGE")),e.i18n.addStrings(e.system.getI18nStrings()),e.i18n.addStrings(["access_denied","settings_updated","save","delete","level","category_option_group_set","search","yes","no","edit"]),e.i18n.load().then(function(){return e.currentUser.authorities.has("F_SYSTEM_SETTING")?(m["default"].load(),void Promise.all([e.models.indicatorGroup.list({paging:!1,fields:"id,displayName",order:"displayName:asc"}),e.models.dataElementGroup.list({paging:!1,fields:"id,displayName",order:"displayName:asc"}),e.models.userGroup.list({paging:!1,fields:"id,displayName",order:"displayName:asc"}),e.models.organisationUnitLevel.list({paging:!1,fields:"id,level,displayName",order:"level:asc"}),e.models.userRole.list({paging:!1,fields:"id,displayName",order:"displayName:asc"}),e.models.organisationUnit.list({paging:!1,fields:"id,displayName",filter:["level:in:[1,2]"]})]).then(function(t){function n(e){return e.toArray().map(function(e){return{payload:e.id,text:e.displayName}})}var r=n(t[0]),o=n(t[1]),i=n(t[2]);i.unshift({payload:"null",text:e.i18n.getTranslation("no_feedback_recipients")});var s=t[3].toArray().map(function(e){return{payload:e.id,text:e.level+": "+e.displayName}}),a=n(t[4]),u=n(t[5]);b["default"].setState({indicatorGroups:r,dataElementGroups:o,userGroups:i,organisationUnitLevels:s,userRoles:a,organisationUnits:u})})):void document.write(e.i18n.getTranslation("access_denied"))})},function(e){l["default"].error("Failed to initialize D2:",e),document.write("Failed to initialize D2.")})},function(e,t){function n(){c=!1,s.length?u=s.concat(u):l=-1,u.length&&r()}function r(){if(!c){var e=setTimeout(n);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l1)for(var n=1;n1){for(var h=Array(l),d=0;l>d;d++)h[d]=arguments[d+2];o.children=h}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)"undefined"==typeof o[r]&&(o[r]=f[r])}return new p(e,a,u,s.current,i.current,o)},p.createFactory=function(e){var t=p.createElement.bind(null,e);return t.type=e,t},p.cloneAndReplaceProps=function(e,n){var r=new p(e.type,e.key,e.ref,e._owner,e._context,n);return"production"!==t.env.NODE_ENV&&(r._store.validated=e._store.validated),r},p.cloneElement=function(e,t,n){var r,o=a({},e.props),i=e.key,u=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,l=s.current),void 0!==t.key&&(i=""+t.key);for(r in t)t.hasOwnProperty(r)&&!c.hasOwnProperty(r)&&(o[r]=t[r])}var h=arguments.length-2;if(1===h)o.children=n;else if(h>1){for(var d=Array(h),f=0;h>f;f++)d[f]=arguments[f+2];o.children=d}return new p(e.type,i,u,l,e._context,o)},p.isValidElement=function(e){var t=!(!e||!e._isReactElement);return t},e.exports=p}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(21),o=r;"production"!==t.env.NODE_ENV&&(o=function(e,t){for(var n=[],r=2,o=arguments.length;o>r;r++)n.push(arguments[r]);if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(0!==t.indexOf("Failed Composite propType: ")&&!e){var i=0,s="Warning: "+t.replace(/%s/g,function(){return n[i++]});console.warn(s);try{throw new Error(s)}catch(a){}}}),e.exports=o}).call(t,n(1))},function(e,t,n){e.exports=n(277)},function(e,t,n){"use strict";var r=n(22);e.exports={easeOutFunction:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutFunction:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeOut:function(e,t,n,r){if(r=r||this.easeOutFunction,t&&"[object Array]"===Object.prototype.toString.call(t)){for(var o="",i=0;i-9007199254740992&&9007199254740992>e&&Math.floor(e)===e}function l(e){return"number"==typeof e&&isFinite(e)&&e-parseFloat(e)+1>=0}function p(e,t){var n=s(t)&&t||[];return n.indexOf(e)>=0}function h(e){return e&&11===e.length}Object.defineProperty(t,"__esModule",{value:!0}),t.checkDefined=n,t.checkType=r,t.isType=o,t.isString=i,t.isArray=s,t.isObject=a,t.isDefined=u,t.isInteger=c,t.isNumeric=l,t.contains=p,t.isValidUid=h,Number.isInteger||(Number.isInteger=c),t["default"]={checkType:r,checkDefined:n,isArray:s,isDefined:u,isInteger:c,isNumeric:l,isString:i,isType:o,contains:p,isValidUid:h}},function(e,t,n){(function(t){"use strict";function r(e,n,r){for(var o in n)n.hasOwnProperty(o)&&("production"!==t.env.NODE_ENV?_("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",b[r],o):null)}function o(e,n){var r=D.hasOwnProperty(n)?D[n]:null;M.hasOwnProperty(n)&&("production"!==t.env.NODE_ENV?T(r===N.OVERRIDE_BASE,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",n):T(r===N.OVERRIDE_BASE)),e.hasOwnProperty(n)&&("production"!==t.env.NODE_ENV?T(r===N.DEFINE_MANY||r===N.DEFINE_MANY_MERGED,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n):T(r===N.DEFINE_MANY||r===N.DEFINE_MANY_MERGED))}function i(e,n){if(n){"production"!==t.env.NODE_ENV?T("function"!=typeof n,"ReactClass: You're attempting to use a component class as a mixin. Instead, just use a regular object."):T("function"!=typeof n),"production"!==t.env.NODE_ENV?T(!f.isValidElement(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object."):T(!f.isValidElement(n));var r=e.prototype;n.hasOwnProperty(S)&&P.mixins(e,n.mixins);for(var i in n)if(n.hasOwnProperty(i)&&i!==S){var s=n[i];if(o(r,i),P.hasOwnProperty(i))P[i](e,s);else{var a=D.hasOwnProperty(i),l=r.hasOwnProperty(i),p=s&&s.__reactDontBind,h="function"==typeof s,d=h&&!a&&!l&&!p;if(d)r.__reactAutoBindMap||(r.__reactAutoBindMap={}),r.__reactAutoBindMap[i]=s,r[i]=s;else if(l){var m=D[i];"production"!==t.env.NODE_ENV?T(a&&(m===N.DEFINE_MANY_MERGED||m===N.DEFINE_MANY),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,i):T(a&&(m===N.DEFINE_MANY_MERGED||m===N.DEFINE_MANY)),m===N.DEFINE_MANY_MERGED?r[i]=u(r[i],s):m===N.DEFINE_MANY&&(r[i]=c(r[i],s))}else r[i]=s,"production"!==t.env.NODE_ENV&&"function"==typeof s&&n.displayName&&(r[i].displayName=n.displayName+"_"+i)}}}}function s(e,n){if(n)for(var r in n){var o=n[r];if(n.hasOwnProperty(r)){var i=r in P;"production"!==t.env.NODE_ENV?T(!i,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',r):T(!i);var s=r in e;"production"!==t.env.NODE_ENV?T(!s,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",r):T(!s),e[r]=o}}}function a(e,n){"production"!==t.env.NODE_ENV?T(e&&n&&"object"==typeof e&&"object"==typeof n,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."):T(e&&n&&"object"==typeof e&&"object"==typeof n);for(var r in n)n.hasOwnProperty(r)&&("production"!==t.env.NODE_ENV?T(void 0===e[r],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",r):T(void 0===e[r]),e[r]=n[r]);return e}function u(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return a(o,n),a(o,r),o}}function c(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function l(e,n){var r=n.bind(e);if("production"!==t.env.NODE_ENV){r.__reactBoundContext=e,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var o=e.constructor.displayName,i=r.bind;r.bind=function(s){for(var a=[],u=1,c=arguments.length;c>u;u++)a.push(arguments[u]);if(s!==e&&null!==s)"production"!==t.env.NODE_ENV?_(!1,"bind(): React component methods may only be bound to the component instance. See %s",o):null;else if(!a.length)return"production"!==t.env.NODE_ENV?_(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",o):null,r;var l=i.apply(r,arguments);return l.__reactBoundContext=e,l.__reactBoundMethod=n,l.__reactBoundArguments=a,l}}return r}function p(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=l(e,m.guard(n,e.constructor.displayName+"."+t))}}var h=n(133),d=n(25),f=n(8),m=n(261),v=n(35),y=n(84),g=n(85),b=n(66),w=n(86),E=n(5),T=n(2),x=n(53),C=n(17),_=n(9),S=C({mixins:null}),N=x({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),O=[],D={mixins:N.DEFINE_MANY,statics:N.DEFINE_MANY,propTypes:N.DEFINE_MANY,contextTypes:N.DEFINE_MANY,childContextTypes:N.DEFINE_MANY,getDefaultProps:N.DEFINE_MANY_MERGED,getInitialState:N.DEFINE_MANY_MERGED,getChildContext:N.DEFINE_MANY_MERGED,render:N.DEFINE_ONCE,componentWillMount:N.DEFINE_MANY,componentDidMount:N.DEFINE_MANY,componentWillReceiveProps:N.DEFINE_MANY,shouldComponentUpdate:N.DEFINE_ONCE,componentWillUpdate:N.DEFINE_MANY,componentDidUpdate:N.DEFINE_MANY,componentWillUnmount:N.DEFINE_MANY,updateComponent:N.OVERRIDE_BASE},P={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;nr;r++){var o=b[r],i=o._pendingCallbacks;if(o._pendingCallbacks=null,f.performUpdateIfNecessary(o,e.reconcileTransaction),i)for(var a=0;ar;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){var t=k(e);return t&&G.getID(t)}function i(e){var n=s(e);if(n)if(U.hasOwnProperty(n)){var r=U[n];r!==e&&("production"!==t.env.NODE_ENV?A(!l(r,n),"ReactMount: Two valid but unequal nodes with the same `%s`: %s",F,n):A(!l(r,n)),U[n]=e)}else U[n]=e;return n}function s(e){return e&&e.getAttribute&&e.getAttribute(F)||""}function a(e,t){var n=s(e);n!==t&&delete U[n],e.setAttribute(F,t),U[t]=e}function u(e){return U.hasOwnProperty(e)&&l(U[e],e)||(U[e]=G.findReactNodeByID(e)),U[e]}function c(e){var t=x.get(e)._rootNodeID;return E.isNullComponentID(t)?null:(U.hasOwnProperty(t)&&l(U[t],t)||(U[t]=G.findReactNodeByID(t)),U[t])}function l(e,n){if(e){"production"!==t.env.NODE_ENV?A(s(e)===n,"ReactMount: Unexpected modification of `%s`",F):A(s(e)===n);var r=G.findReactContainerForID(n);if(r&&P(r,e))return!0}return!1}function p(e){delete U[e]}function h(e){var t=U[e];return t&&l(t,e)?void(H=t):!1}function d(e){H=null,T.traverseAncestors(e,h);var t=H;return H=null,t}function f(e,t,n,r,o){var i=S.mountComponent(e,t,r,D);e._isTopLevel=!0,G._mountImageIntoNode(i,n,o)}function m(e,t,n,r){var o=O.ReactReconcileTransaction.getPooled();o.perform(f,null,e,t,n,o,r),O.ReactReconcileTransaction.release(o)}var v=n(30),y=n(33),g=n(25),b=n(8),w=n(51),E=n(64),T=n(34),x=n(35),C=n(139),_=n(29),S=n(38),N=n(86),O=n(16),D=n(52),P=n(146),k=n(301),M=n(92),A=n(2),R=n(94),I=n(95),j=n(9),L=T.SEPARATOR,F=v.ID_ATTRIBUTE_NAME,U={},W=1,V=9,B={},q={};if("production"!==t.env.NODE_ENV)var z={};var K=[],H=null,G={_instancesByReactRootID:B,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,n,r,i){return"production"!==t.env.NODE_ENV&&w.checkAndWarnForMutatedProps(n),G.scrollMonitor(r,function(){N.enqueueElementInternal(e,n),i&&N.enqueueCallbackInternal(e,i)}),"production"!==t.env.NODE_ENV&&(z[o(r)]=k(r)),e},_registerComponent:function(e,n){"production"!==t.env.NODE_ENV?A(n&&(n.nodeType===W||n.nodeType===V),"_registerComponent(...): Target container is not a DOM element."):A(n&&(n.nodeType===W||n.nodeType===V)),y.ensureScrollValueMonitoring();var r=G.registerContainer(n);return B[r]=e,r},_renderNewRootComponent:function(e,n,r){"production"!==t.env.NODE_ENV?j(null==g.current,"_renderNewRootComponent(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate."):null;var o=M(e,null),i=G._registerComponent(o,n);return O.batchedUpdates(m,o,i,n,r),"production"!==t.env.NODE_ENV&&(z[i]=k(n)),o},render:function(e,n,r){"production"!==t.env.NODE_ENV?A(b.isValidElement(e),"React.render(): Invalid component element.%s","string"==typeof e?" Instead of passing an element string, make sure to instantiate it by passing it to React.createElement.":"function"==typeof e?" Instead of passing a component class, make sure to instantiate it by passing it to React.createElement.":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":""):A(b.isValidElement(e));var i=B[o(n)];if(i){var s=i._currentElement;if(I(s,e))return G._updateRootComponent(i,e,n,r).getPublicInstance();G.unmountComponentAtNode(n)}var a=k(n),u=a&&G.isRenderedByReact(a);if("production"!==t.env.NODE_ENV&&(!u||a.nextSibling))for(var c=a;c;){if(G.isRenderedByReact(c)){"production"!==t.env.NODE_ENV?j(!1,"render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup."):null;break}c=c.nextSibling}var l=u&&!i,p=G._renderNewRootComponent(e,n,l).getPublicInstance();return r&&r.call(p),p},constructAndRenderComponent:function(e,t,n){var r=b.createElement(e,t);return G.render(r,n)},constructAndRenderComponentByID:function(e,n,r){var o=document.getElementById(r);return"production"!==t.env.NODE_ENV?A(o,'Tried to get element with id of "%s" but it is not present on the page.',r):A(o),G.constructAndRenderComponent(e,n,o)},registerContainer:function(e){var t=o(e);return t&&(t=T.getReactRootIDFromNodeID(t)),t||(t=T.createReactRootID()),q[t]=e,t},unmountComponentAtNode:function(e){"production"!==t.env.NODE_ENV?j(null==g.current,"unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate."):null,"production"!==t.env.NODE_ENV?A(e&&(e.nodeType===W||e.nodeType===V),"unmountComponentAtNode(...): Target container is not a DOM element."):A(e&&(e.nodeType===W||e.nodeType===V));var n=o(e),r=B[n];return r?(G.unmountComponentFromNode(r,e),delete B[n],delete q[n],"production"!==t.env.NODE_ENV&&delete z[n],!0):!1},unmountComponentFromNode:function(e,t){for(S.unmountComponent(e),t.nodeType===V&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)},findReactContainerForID:function(e){var n=T.getReactRootIDFromNodeID(e),r=q[n];if("production"!==t.env.NODE_ENV){var o=z[n];if(o&&o.parentNode!==r){"production"!==t.env.NODE_ENV?A(s(o)===n,"ReactMount: Root element ID differed from reactRootID."):A(s(o)===n);var i=r.firstChild;i&&n===s(i)?z[n]=i:"production"!==t.env.NODE_ENV?j(!1,"ReactMount: Root element has been removed from its original container. New container:",o.parentNode):null}}return r},findReactNodeByID:function(e){var t=G.findReactContainerForID(e);return G.findComponentRoot(t,e)},isRenderedByReact:function(e){if(1!==e.nodeType)return!1;var t=G.getID(e);return t?t.charAt(0)===L:!1},getFirstReactDOM:function(e){for(var t=e;t&&t.parentNode!==t;){if(G.isRenderedByReact(t))return t;t=t.parentNode}return null},findComponentRoot:function(e,n){var r=K,o=0,i=d(n)||e;for(r[0]=i.firstChild,r.length=1;o when using tables, nesting tags like
,

, or , or using non-SVG elements in an parent. Try inspecting the child nodes of the element with React ID `%s`.",n,G.getID(e)):A(!1)},_mountImageIntoNode:function(e,n,o){if("production"!==t.env.NODE_ENV?A(n&&(n.nodeType===W||n.nodeType===V),"mountComponentIntoNode(...): Target container is not valid."):A(n&&(n.nodeType===W||n.nodeType===V)),o){var i=k(n);if(C.canReuseMarkup(e,i))return;var s=i.getAttribute(C.CHECKSUM_ATTR_NAME);i.removeAttribute(C.CHECKSUM_ATTR_NAME);var a=i.outerHTML;i.setAttribute(C.CHECKSUM_ATTR_NAME,s);var u=r(e,a),c=" (client) "+e.substring(u-20,u+20)+"\n (server) "+a.substring(u-20,u+20);"production"!==t.env.NODE_ENV?A(n.nodeType!==V,"You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s",c):A(n.nodeType!==V),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?j(!1,"React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\n%s",c):null)}"production"!==t.env.NODE_ENV?A(n.nodeType!==V,"You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See React.renderToString() for server rendering."):A(n.nodeType!==V),R(n,e)},getReactRootID:o,getID:i,setID:a,getNode:u,getNodeFromInstance:c,purgeID:p};_.measureMethods(G,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),e.exports=G}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t-1){var t=e.values.map(function(e){return e/=255,.03928>=e?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*t[0]+.7152*t[1]+.0722*t[2]}var n="Calculating the relative luminance is not available for HSL and HSLA.";return console.error(n),-1},_convertColorToString:function(e,t){var n=e.type+"("+parseInt(e.values[0])+","+parseInt(e.values[1])+","+parseInt(e.values[2]);return n+=void 0!==t?","+t+")":4===e.values.length?","+e.values[3]+")":")"},_convertHexToRGB:function(e){if(4===e.length){for(var t="#",n=1;n-1)return e.values[2]+=t,this._decomposeColor(this._convertColorToString(e));if(e.type.indexOf("rgb")>-1)for(var n=0;3>n;n++)e.values[n]*=1+t,e.values[n]>255&&(e.values[n]=255);return e.type.indexOf("a")<=-1&&(e.type+="a"),this._convertColorToString(e,"0.15")},darken:function(e,t){if(e=this._decomposeColor(e),e.type.indexOf("hsl")>-1)return e.values[2]+=t,this._decomposeColor(this._convertColorToString(e));if(e.type.indexOf("rgb")>-1)for(var n=0;3>n;n++)e.values[n]*=1-t,e.values[n]<0&&(e.values[n]=0);return this._convertColorToString(e)},contrastRatio:function(e,t){var n=this._luminance(e),r=this._luminance(t);return n>=r?((n+.05)/(r+.05)).toFixed(2):((r+.05)/(n+.05)).toFixed(2)},contrastRatioLevel:function(e,t){var n={fail:{range:[0,3],color:"hsl(0, 100%, 40%)"},"aa-large":{range:[3,4.5],color:"hsl(40, 100%, 45%)"},aa:{range:[4.5,7],color:"hsl(80, 60%, 45%)"},aaa:{range:[7,22],color:"hsl(95, 60%, 41%)"}},r=this.contrastRatio(e,t);for(var o in n){var i=n[o].range;if(r>=i[0]&&r<=i[1])return o}}}},function(e,t,n){(function(t){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return v(e,r)}function o(e,n,o){if("production"!==t.env.NODE_ENV&&!e)throw new Error("Dispatching id must not be null");var i=n?m.bubbled:m.captured,s=r(e,o,i);s&&(o._dispatchListeners=d(o._dispatchListeners,s),o._dispatchIDs=d(o._dispatchIDs,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,o,e)}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=v(e,r);o&&(n._dispatchListeners=d(n._dispatchListeners,o),n._dispatchIDs=d(n._dispatchIDs,e))}}function a(e){e&&e.dispatchConfig.registrationName&&s(e.dispatchMarker,null,e)}function u(e){f(e,i)}function c(e,t,n,r){h.injection.getInstanceHandle().traverseEnterLeave(n,r,s,e,t)}function l(e){f(e,a)}var p=n(13),h=n(31),d=n(69),f=n(88),m=p.PropagationPhases,v=h.getListener,y={accumulateTwoPhaseDispatches:u,accumulateDirectDispatches:l,accumulateEnterLeaveDispatches:c};e.exports=y}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function n(e,t,n){return n}var r={enableMeasure:!1,storedMeasure:n,measureMethods:function(e,n,o){if("production"!==t.env.NODE_ENV)for(var i in o)o.hasOwnProperty(i)&&(e[i]=r.measure(n,o[i],e[i]))},measure:function(e,n,o){if("production"!==t.env.NODE_ENV){var i=null,s=function(){return r.enableMeasure?(i||(i=r.storedMeasure(e,n,o)),i.apply(this,arguments)):o.apply(this,arguments)};return s.displayName=e+"_"+n,s}return o},injection:{injectMeasure:function(e){r.storedMeasure=e}}};e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,t){return(e&t)===t}var o=n(2),i={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var n=e.Properties||{},s=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&a._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var l in n){"production"!==t.env.NODE_ENV?o(!a.isStandardName.hasOwnProperty(l),"injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",l):o(!a.isStandardName.hasOwnProperty(l)),a.isStandardName[l]=!0;var p=l.toLowerCase();if(a.getPossibleStandardName[p]=l,s.hasOwnProperty(l)){var h=s[l];a.getPossibleStandardName[h]=l,a.getAttributeName[l]=h}else a.getAttributeName[l]=p;a.getPropertyName[l]=u.hasOwnProperty(l)?u[l]:l,c.hasOwnProperty(l)?a.getMutationMethod[l]=c[l]:a.getMutationMethod[l]=null;var d=n[l];a.mustUseAttribute[l]=r(d,i.MUST_USE_ATTRIBUTE),a.mustUseProperty[l]=r(d,i.MUST_USE_PROPERTY),a.hasSideEffects[l]=r(d,i.HAS_SIDE_EFFECTS),a.hasBooleanValue[l]=r(d,i.HAS_BOOLEAN_VALUE),a.hasNumericValue[l]=r(d,i.HAS_NUMERIC_VALUE),a.hasPositiveNumericValue[l]=r(d,i.HAS_POSITIVE_NUMERIC_VALUE),a.hasOverloadedBooleanValue[l]=r(d,i.HAS_OVERLOADED_BOOLEAN_VALUE),"production"!==t.env.NODE_ENV?o(!a.mustUseAttribute[l]||!a.mustUseProperty[l],"DOMProperty: Cannot require using both attribute and property: %s",l):o(!a.mustUseAttribute[l]||!a.mustUseProperty[l]),"production"!==t.env.NODE_ENV?o(a.mustUseProperty[l]||!a.hasSideEffects[l],"DOMProperty: Properties that have side effects must use property: %s",l):o(a.mustUseProperty[l]||!a.hasSideEffects[l]),"production"!==t.env.NODE_ENV?o(!!a.hasBooleanValue[l]+!!a.hasNumericValue[l]+!!a.hasOverloadedBooleanValue[l]<=1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",l):o(!!a.hasBooleanValue[l]+!!a.hasNumericValue[l]+!!a.hasOverloadedBooleanValue[l]<=1)}}},s={},a={ID_ATTRIBUTE_NAME:"data-reactid",isStandardName:{},getPossibleStandardName:{},getAttributeName:{},getPropertyName:{},getMutationMethod:{},mustUseAttribute:{},mustUseProperty:{},hasSideEffects:{},hasBooleanValue:{},hasNumericValue:{},hasPositiveNumericValue:{},hasOverloadedBooleanValue:{},_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;tu;u++){var l=a[u];if(l){var p=l.extractEvents(e,t,n,r);p&&(i=s(i,p))}}return i},enqueueEvents:function(e){e&&(l=s(l,e))},processEventQueue:function(){var e=l;l=null,a(e,p),"production"!==t.env.NODE_ENV?u(!l,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."):u(!l)},__purge:function(){c={}},__getListenerBank:function(){return c}};e.exports=d}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(50),o=n(132),i=n(133),s=n(15),a=n(82),u=n(25),c=n(8),l=n(51),p=n(248),h=n(136),d=n(259),f=n(34),m=n(18),v=n(29),y=n(141),g=n(38),b=n(271),w=n(5),E=n(147),T=n(155);d.inject();var x=c.createElement,C=c.createFactory,_=c.cloneElement;"production"!==t.env.NODE_ENV&&(x=l.createElement,C=l.createFactory,_=l.cloneElement);var S=v.measure("React","render",m.render),N={ -Children:{map:o.map,forEach:o.forEach,count:o.count,only:T},Component:i,DOM:p,PropTypes:y,initializeTouchEvents:function(e){r.useTouchEvents=e},createClass:s.createClass,createElement:x,cloneElement:_,createFactory:C,createMixin:function(e){return e},constructAndRenderComponent:m.constructAndRenderComponent,constructAndRenderComponentByID:m.constructAndRenderComponentByID,findDOMNode:E,render:S,renderToString:b.renderToString,renderToStaticMarkup:b.renderToStaticMarkup,unmountComponentAtNode:m.unmountComponentAtNode,isValidElement:c.isValidElement,withContext:a.withContext,__spread:w};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:u,InstanceHandles:f,Mount:m,Reconciler:g,TextComponent:h}),"production"!==t.env.NODE_ENV){var O=n(12);if(O.canUseDOM&&window.top===window.self){navigator.userAgent.indexOf("Chrome")>-1&&"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&console.debug("Download the React DevTools for a better development experience: https://fb.me/react-devtools");for(var D=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.split,String.prototype.trim,Object.create,Object.freeze],P=0;Pc;c++){var h=a[c];i.hasOwnProperty(h)&&i[h]||(h===u.topWheel?l("wheel")?v.ReactEventListener.trapBubbledEvent(u.topWheel,"wheel",n):l("mousewheel")?v.ReactEventListener.trapBubbledEvent(u.topWheel,"mousewheel",n):v.ReactEventListener.trapBubbledEvent(u.topWheel,"DOMMouseScroll",n):h===u.topScroll?l("scroll",!0)?v.ReactEventListener.trapCapturedEvent(u.topScroll,"scroll",n):v.ReactEventListener.trapBubbledEvent(u.topScroll,"scroll",v.ReactEventListener.WINDOW_HANDLE):h===u.topFocus||h===u.topBlur?(l("focus",!0)?(v.ReactEventListener.trapCapturedEvent(u.topFocus,"focus",n),v.ReactEventListener.trapCapturedEvent(u.topBlur,"blur",n)):l("focusin")&&(v.ReactEventListener.trapBubbledEvent(u.topFocus,"focusin",n),v.ReactEventListener.trapBubbledEvent(u.topBlur,"focusout",n)),i[u.topBlur]=!0,i[u.topFocus]=!0):f.hasOwnProperty(h)&&v.ReactEventListener.trapBubbledEvent(h,f[h],n),i[h]=!0)}},trapBubbledEvent:function(e,t,n){return v.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return v.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!h){var e=u.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),h=!0}},eventNameDispatchConfigs:i.eventNameDispatchConfigs,registrationNameModules:i.registrationNameModules,putListener:i.putListener,getListener:i.getListener,deleteListener:i.deleteListener,deleteAllListeners:i.deleteAllListeners});e.exports=v},function(e,t,n){(function(t){"use strict";function r(e){return d+e.toString(36)}function o(e,t){return e.charAt(t)===d||t===e.length}function i(e){return""===e||e.charAt(0)===d&&e.charAt(e.length-1)!==d}function s(e,t){return 0===t.indexOf(e)&&o(t,e.length)}function a(e){return e?e.substr(0,e.lastIndexOf(d)):""}function u(e,n){if("production"!==t.env.NODE_ENV?h(i(e)&&i(n),"getNextDescendantID(%s, %s): Received an invalid React DOM ID.",e,n):h(i(e)&&i(n)),"production"!==t.env.NODE_ENV?h(s(e,n),"getNextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",e,n):h(s(e,n)),e===n)return e;var r,a=e.length+f;for(r=a;r=a;a++)if(o(e,a)&&o(n,a))s=a;else if(e.charAt(a)!==n.charAt(a))break;var u=e.substr(0,s);return"production"!==t.env.NODE_ENV?h(i(u),"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",e,n,u):h(i(u)),u}function l(e,n,r,o,i,c){e=e||"",n=n||"","production"!==t.env.NODE_ENV?h(e!==n,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",e):h(e!==n);var l=s(n,e);"production"!==t.env.NODE_ENV?h(l||s(e,n),"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",e,n):h(l||s(e,n));for(var p=0,d=l?a:u,f=e;;f=d(f,n)){var v;if(i&&f===e||c&&f===n||(v=r(f,l,o)),v===!1||f===n)break;"production"!==t.env.NODE_ENV?h(p++1){var t=e.indexOf(d,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var i=c(e,t);i!==e&&l(e,i,n,r,!1,!0),i!==t&&l(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(l("",e,t,n,!0,!1),l(e,"",t,n,!1,!0))},traverseAncestors:function(e,t,n){l("",e,t,n,!0,!1)},_getFirstCommonAncestorID:c,_getNextDescendantID:u,isAncestorIDOf:s,SEPARATOR:d};e.exports=v}).call(t,n(1))},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0)break;t.system.configuration.get(r).then(function(e){a.fieldOptions.defaultValue=null===e?"null":e.id});break;case"editlist":a.type=Y,a.fieldOptions={floatingLabelText:t.i18n.getTranslation(i.label),multiLine:!0},a.updateEvent="onBlur";break;case"password":a.type=Y,a.fieldOptions={floatingLabelText:t.i18n.getTranslation(i.label),type:"password"},a.updateEvent="onBlur";break;case"dataapproval":a.type=H["default"],a.fieldOptions={columns:["level","name","categoryOptionGroupSet"]};break;case"oauth2clients":a.type=L["default"],a.fieldOptions={d2:t};break;default:a.type=Y,a.updateEvent="onBlur",a.fieldOptions={floatingLabelText:t.i18n.getTranslation(i.label),defaultValue:s,multiLine:i.multiLine&&i.multiLine===!0}}return a.fieldOptions&&a.fieldOptions.style?a.fieldOptions.style=Object.assign({},n.forms,a.fieldOptions.style):a.fieldOptions.style={width:"100%",minWidth:n.forms.minWidth,maxWidth:n.forms.maxWidth},i.helpText&&(a.fieldOptions.helpText=t.i18n.getTranslation(i.helpText)),a.validators=o(i),a});return c["default"].createElement("div",{className:"app"},c["default"].createElement(B["default"],null),c["default"].createElement(k["default"],{message:t.i18n.getTranslation("settings_updated"),autoHideDuration:1250,ref:function(t){e._uglySnackbarRefExportFn(t)}}),c["default"].createElement(I["default"],{d2:t,categoryOrder:this.props.categoryOrder,categories:this.props.categories,currentCategory:this.state.category,settingsActions:this.props.settingsActions}),c["default"].createElement("div",{className:"content-area",style:n.forms},c["default"].createElement("h1",null,this.props.categories[this.state.category]?t.i18n.getTranslation(this.props.categories[this.state.category].label):"Search result"),this.state.currentSettings.length?null:c["default"].createElement("div",null,t.i18n.getTranslation("no_settings_found_that_match")),c["default"].createElement(U["default"],{source:this.props.settingsStore.state||{},fieldConfigs:i,onFormFieldUpdate:this._saveSetting})))},_uglySnackbarRefExportFn:function(e){this._snackbar=e,window.snackbar=this._snackbar},_saveSetting:function(e,t){this.props.settingsActions.saveKey(e,t)}});c["default"].render(c["default"].createElement(z["default"],null),document.getElementById("app")),h.getManifest("manifest.webapp").then(function(e){h.config.baseUrl=e.getBaseUrl()+"/api"}).then(h.getUserSettings).then(i).then(h.init).then(function(e){function t(){c["default"].render(c["default"].createElement($,{d2:e,settingsStore:g["default"],configOptionStore:w["default"],settingsActions:v["default"],categoryOrder:E.categoryOrder,categories:E.categories}),document.getElementById("app"))}v["default"].load.subscribe(function(n){Promise.all([e.system.settings.all(),e.system.configuration.all(n.data===!0)]).then(function(e){var n=Object.keys(e[1]).filter(function(e){return"systemId"!==e}).map(function(t){return{key:t,value:e[1][t]}}).reduce(function(e,t){var n=t.value;return null===n||"null"===n||void 0===n?n="null":n.hasOwnProperty("id")&&(n=n.id),e[t.key]=n,e},{});n.corsWhitelist=(e[1].corsWhitelist||[]).filter(function(e){return e.trim().length>0}).sort().join("\n"),Object.keys(e[0]).map(function(t){var n=e[0][t];e[0][t]=null===n||isNaN(n)?n:n.toString()}),g["default"].setState(Object.assign({},e[0],n)),p["default"].info("System settings loaded successfully.",g["default"].state),t()},function(e){p["default"].error(e)})}),v["default"].saveKey.subscribe(function(t){var n=s(t.data,2),r=n[0],i=n[1],a=e.system.settings.mapping[r];o(e.system.settings.mapping[r]).every(function(e){return e(i)===!0})&&(a.configuration?e.system.configuration.set(r,i).then(function(){window.snackbar&&window.snackbar.show()})["catch"](function(e){p["default"].error("Failed to save configuration:",e)}):e.system.settings.set(r,i).then(function(){window.snackbar&&window.snackbar.show()})["catch"](function(e){p["default"].error("Failed to save setting:",e)}));var u=g["default"].state;u[r]=i,g["default"].setState(u)}),p["default"].info("D2 initialized",e),p["default"].info("Can settings:",e.currentUser.authorities.has("F_SYSTEM_SETTING"),"Can Oauth:",e.currentUser.authorities.has("F_OAUTH2_CLIENT_MANAGE")),e.i18n.addStrings(e.system.getI18nStrings()),e.i18n.addStrings(["access_denied","settings_updated","save","delete","level","category_option_group_set","search","yes","no","edit"]),e.i18n.load().then(function(){return e.currentUser.authorities.has("F_SYSTEM_SETTING")?(v["default"].load(),void Promise.all([e.models.indicatorGroup.list({paging:!1,fields:"id,displayName",order:"displayName:asc"}),e.models.dataElementGroup.list({paging:!1,fields:"id,displayName",order:"displayName:asc"}),e.models.userGroup.list({paging:!1,fields:"id,displayName",order:"displayName:asc"}),e.models.organisationUnitLevel.list({paging:!1,fields:"id,level,displayName",order:"level:asc"}),e.models.userRole.list({paging:!1,fields:"id,displayName",order:"displayName:asc"}),e.models.organisationUnit.list({paging:!1,fields:"id,displayName",filter:["level:in:[1,2]"]}),e.Api.getApi().get("../dhis-web-commons/menu/getModules.action"),e.Api.getApi().get("system/flags"),e.Api.getApi().get("system/styles")]).then(function(t){function n(e){return e.toArray().map(function(e){return{payload:e.id,text:e.displayName}})}var r=n(t[0]),o=n(t[1]),i=n(t[2]);i.unshift({payload:"null",text:e.i18n.getTranslation("no_feedback_recipients")});var s=t[3].toArray().map(function(e){return{payload:e.id,text:e.level+": "+e.displayName}}),a=n(t[4]),u=n(t[5]),c=(t[6].modules||[]).map(function(e){return{payload:e.name,text:e.name}}),l=(t[7]||[]).map(function(e){return{payload:e,text:e}}),p=Object.keys(t[8]).map(function(e){return{payload:t[8][e],text:e}});w["default"].setState({indicatorGroups:r,dataElementGroups:o,userGroups:i,organisationUnitLevels:s,userRoles:a,organisationUnits:u,startModules:c,flags:l,styles:p})})):void document.write(e.i18n.getTranslation("access_denied"))})},function(e){p["default"].error("Failed to initialize D2:",e),document.write("Failed to initialize D2.")})},function(e,t){function n(){c=!1,s.length?u=s.concat(u):l=-1,u.length&&r()}function r(){if(!c){var e=setTimeout(n);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l1)for(var n=1;n1){for(var h=Array(l),d=0;l>d;d++)h[d]=arguments[d+2];o.children=h}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)"undefined"==typeof o[r]&&(o[r]=f[r])}return new p(e,a,u,s.current,i.current,o)},p.createFactory=function(e){var t=p.createElement.bind(null,e);return t.type=e,t},p.cloneAndReplaceProps=function(e,n){var r=new p(e.type,e.key,e.ref,e._owner,e._context,n);return"production"!==t.env.NODE_ENV&&(r._store.validated=e._store.validated),r},p.cloneElement=function(e,t,n){var r,o=a({},e.props),i=e.key,u=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,l=s.current),void 0!==t.key&&(i=""+t.key);for(r in t)t.hasOwnProperty(r)&&!c.hasOwnProperty(r)&&(o[r]=t[r])}var h=arguments.length-2;if(1===h)o.children=n;else if(h>1){for(var d=Array(h),f=0;h>f;f++)d[f]=arguments[f+2];o.children=d}return new p(e.type,i,u,l,e._context,o)},p.isValidElement=function(e){var t=!(!e||!e._isReactElement);return t},e.exports=p}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(20),o=r;"production"!==t.env.NODE_ENV&&(o=function(e,t){for(var n=[],r=2,o=arguments.length;o>r;r++)n.push(arguments[r]);if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(0!==t.indexOf("Failed Composite propType: ")&&!e){var i=0,s="Warning: "+t.replace(/%s/g,function(){return n[i++]});console.warn(s);try{throw new Error(s)}catch(a){}}}),e.exports=o}).call(t,n(1))},function(e,t,n){e.exports=n(277)},function(e,t,n){"use strict";var r=n(22);e.exports={easeOutFunction:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutFunction:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeOut:function(e,t,n,r){if(r=r||this.easeOutFunction,t&&"[object Array]"===Object.prototype.toString.call(t)){for(var o="",i=0;i-9007199254740992&&9007199254740992>e&&Math.floor(e)===e}function l(e){return"number"==typeof e&&isFinite(e)&&e-parseFloat(e)+1>=0}function p(e,t){var n=s(t)&&t||[];return n.indexOf(e)>=0}function h(e){return e&&11===e.length}Object.defineProperty(t,"__esModule",{value:!0}),t.checkDefined=n,t.checkType=r,t.isType=o,t.isString=i,t.isArray=s,t.isObject=a,t.isDefined=u,t.isInteger=c,t.isNumeric=l,t.contains=p,t.isValidUid=h,Number.isInteger||(Number.isInteger=c),t["default"]={checkType:r,checkDefined:n,isArray:s,isDefined:u,isInteger:c,isNumeric:l,isString:i,isType:o,contains:p,isValidUid:h}},function(e,t,n){(function(t){"use strict";function r(e,n,r){for(var o in n)n.hasOwnProperty(o)&&("production"!==t.env.NODE_ENV?_("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",b[r],o):null)}function o(e,n){var r=D.hasOwnProperty(n)?D[n]:null;M.hasOwnProperty(n)&&("production"!==t.env.NODE_ENV?T(r===N.OVERRIDE_BASE,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",n):T(r===N.OVERRIDE_BASE)),e.hasOwnProperty(n)&&("production"!==t.env.NODE_ENV?T(r===N.DEFINE_MANY||r===N.DEFINE_MANY_MERGED,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n):T(r===N.DEFINE_MANY||r===N.DEFINE_MANY_MERGED))}function i(e,n){if(n){"production"!==t.env.NODE_ENV?T("function"!=typeof n,"ReactClass: You're attempting to use a component class as a mixin. Instead, just use a regular object."):T("function"!=typeof n),"production"!==t.env.NODE_ENV?T(!f.isValidElement(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object."):T(!f.isValidElement(n));var r=e.prototype;n.hasOwnProperty(S)&&P.mixins(e,n.mixins);for(var i in n)if(n.hasOwnProperty(i)&&i!==S){var s=n[i];if(o(r,i),P.hasOwnProperty(i))P[i](e,s);else{var a=D.hasOwnProperty(i),l=r.hasOwnProperty(i),p=s&&s.__reactDontBind,h="function"==typeof s,d=h&&!a&&!l&&!p;if(d)r.__reactAutoBindMap||(r.__reactAutoBindMap={}),r.__reactAutoBindMap[i]=s,r[i]=s;else if(l){var m=D[i];"production"!==t.env.NODE_ENV?T(a&&(m===N.DEFINE_MANY_MERGED||m===N.DEFINE_MANY),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,i):T(a&&(m===N.DEFINE_MANY_MERGED||m===N.DEFINE_MANY)),m===N.DEFINE_MANY_MERGED?r[i]=u(r[i],s):m===N.DEFINE_MANY&&(r[i]=c(r[i],s))}else r[i]=s,"production"!==t.env.NODE_ENV&&"function"==typeof s&&n.displayName&&(r[i].displayName=n.displayName+"_"+i)}}}}function s(e,n){if(n)for(var r in n){var o=n[r];if(n.hasOwnProperty(r)){var i=r in P;"production"!==t.env.NODE_ENV?T(!i,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',r):T(!i);var s=r in e;"production"!==t.env.NODE_ENV?T(!s,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",r):T(!s),e[r]=o}}}function a(e,n){"production"!==t.env.NODE_ENV?T(e&&n&&"object"==typeof e&&"object"==typeof n,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."):T(e&&n&&"object"==typeof e&&"object"==typeof n);for(var r in n)n.hasOwnProperty(r)&&("production"!==t.env.NODE_ENV?T(void 0===e[r],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",r):T(void 0===e[r]),e[r]=n[r]);return e}function u(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return a(o,n),a(o,r),o}}function c(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function l(e,n){var r=n.bind(e);if("production"!==t.env.NODE_ENV){r.__reactBoundContext=e,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var o=e.constructor.displayName,i=r.bind;r.bind=function(s){for(var a=[],u=1,c=arguments.length;c>u;u++)a.push(arguments[u]);if(s!==e&&null!==s)"production"!==t.env.NODE_ENV?_(!1,"bind(): React component methods may only be bound to the component instance. See %s",o):null;else if(!a.length)return"production"!==t.env.NODE_ENV?_(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",o):null,r;var l=i.apply(r,arguments);return l.__reactBoundContext=e,l.__reactBoundMethod=n,l.__reactBoundArguments=a,l}}return r}function p(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=l(e,m.guard(n,e.constructor.displayName+"."+t))}}var h=n(131),d=n(25),f=n(8),m=n(261),v=n(36),y=n(84),g=n(85),b=n(67),w=n(86),E=n(5),T=n(2),x=n(54),C=n(21),_=n(9),S=C({mixins:null}),N=x({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),O=[],D={mixins:N.DEFINE_MANY,statics:N.DEFINE_MANY,propTypes:N.DEFINE_MANY,contextTypes:N.DEFINE_MANY,childContextTypes:N.DEFINE_MANY,getDefaultProps:N.DEFINE_MANY_MERGED,getInitialState:N.DEFINE_MANY_MERGED,getChildContext:N.DEFINE_MANY_MERGED,render:N.DEFINE_ONCE,componentWillMount:N.DEFINE_MANY,componentDidMount:N.DEFINE_MANY,componentWillReceiveProps:N.DEFINE_MANY,shouldComponentUpdate:N.DEFINE_ONCE,componentWillUpdate:N.DEFINE_MANY,componentDidUpdate:N.DEFINE_MANY,componentWillUnmount:N.DEFINE_MANY,updateComponent:N.OVERRIDE_BASE},P={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;nr;r++){var o=b[r],i=o._pendingCallbacks;if(o._pendingCallbacks=null,f.performUpdateIfNecessary(o,e.reconcileTransaction),i)for(var a=0;ar;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){var t=k(e);return t&&G.getID(t)}function i(e){var n=s(e);if(n)if(U.hasOwnProperty(n)){var r=U[n];r!==e&&("production"!==t.env.NODE_ENV?A(!l(r,n),"ReactMount: Two valid but unequal nodes with the same `%s`: %s",F,n):A(!l(r,n)),U[n]=e)}else U[n]=e;return n}function s(e){return e&&e.getAttribute&&e.getAttribute(F)||""}function a(e,t){var n=s(e);n!==t&&delete U[n],e.setAttribute(F,t),U[t]=e}function u(e){return U.hasOwnProperty(e)&&l(U[e],e)||(U[e]=G.findReactNodeByID(e)),U[e]}function c(e){var t=x.get(e)._rootNodeID;return E.isNullComponentID(t)?null:(U.hasOwnProperty(t)&&l(U[t],t)||(U[t]=G.findReactNodeByID(t)),U[t])}function l(e,n){if(e){"production"!==t.env.NODE_ENV?A(s(e)===n,"ReactMount: Unexpected modification of `%s`",F):A(s(e)===n);var r=G.findReactContainerForID(n);if(r&&P(r,e))return!0}return!1}function p(e){delete U[e]}function h(e){var t=U[e];return t&&l(t,e)?void(H=t):!1}function d(e){H=null,T.traverseAncestors(e,h);var t=H;return H=null,t}function f(e,t,n,r,o){var i=S.mountComponent(e,t,r,D);e._isTopLevel=!0,G._mountImageIntoNode(i,n,o)}function m(e,t,n,r){var o=O.ReactReconcileTransaction.getPooled();o.perform(f,null,e,t,n,o,r),O.ReactReconcileTransaction.release(o)}var v=n(30),y=n(34),g=n(25),b=n(8),w=n(52),E=n(65),T=n(35),x=n(36),C=n(137),_=n(27),S=n(39),N=n(86),O=n(16),D=n(53),P=n(144),k=n(301),M=n(93),A=n(2),R=n(95),I=n(96),j=n(9),L=T.SEPARATOR,F=v.ID_ATTRIBUTE_NAME,U={},W=1,V=9,B={},q={};if("production"!==t.env.NODE_ENV)var z={};var K=[],H=null,G={_instancesByReactRootID:B,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,n,r,i){return"production"!==t.env.NODE_ENV&&w.checkAndWarnForMutatedProps(n),G.scrollMonitor(r,function(){N.enqueueElementInternal(e,n),i&&N.enqueueCallbackInternal(e,i)}),"production"!==t.env.NODE_ENV&&(z[o(r)]=k(r)),e},_registerComponent:function(e,n){"production"!==t.env.NODE_ENV?A(n&&(n.nodeType===W||n.nodeType===V),"_registerComponent(...): Target container is not a DOM element."):A(n&&(n.nodeType===W||n.nodeType===V)),y.ensureScrollValueMonitoring();var r=G.registerContainer(n);return B[r]=e,r},_renderNewRootComponent:function(e,n,r){"production"!==t.env.NODE_ENV?j(null==g.current,"_renderNewRootComponent(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate."):null;var o=M(e,null),i=G._registerComponent(o,n);return O.batchedUpdates(m,o,i,n,r),"production"!==t.env.NODE_ENV&&(z[i]=k(n)),o},render:function(e,n,r){"production"!==t.env.NODE_ENV?A(b.isValidElement(e),"React.render(): Invalid component element.%s","string"==typeof e?" Instead of passing an element string, make sure to instantiate it by passing it to React.createElement.":"function"==typeof e?" Instead of passing a component class, make sure to instantiate it by passing it to React.createElement.":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":""):A(b.isValidElement(e));var i=B[o(n)];if(i){var s=i._currentElement;if(I(s,e))return G._updateRootComponent(i,e,n,r).getPublicInstance();G.unmountComponentAtNode(n)}var a=k(n),u=a&&G.isRenderedByReact(a);if("production"!==t.env.NODE_ENV&&(!u||a.nextSibling))for(var c=a;c;){if(G.isRenderedByReact(c)){"production"!==t.env.NODE_ENV?j(!1,"render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup."):null;break}c=c.nextSibling}var l=u&&!i,p=G._renderNewRootComponent(e,n,l).getPublicInstance();return r&&r.call(p),p},constructAndRenderComponent:function(e,t,n){var r=b.createElement(e,t);return G.render(r,n)},constructAndRenderComponentByID:function(e,n,r){var o=document.getElementById(r);return"production"!==t.env.NODE_ENV?A(o,'Tried to get element with id of "%s" but it is not present on the page.',r):A(o),G.constructAndRenderComponent(e,n,o)},registerContainer:function(e){var t=o(e);return t&&(t=T.getReactRootIDFromNodeID(t)),t||(t=T.createReactRootID()),q[t]=e,t},unmountComponentAtNode:function(e){"production"!==t.env.NODE_ENV?j(null==g.current,"unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate."):null,"production"!==t.env.NODE_ENV?A(e&&(e.nodeType===W||e.nodeType===V),"unmountComponentAtNode(...): Target container is not a DOM element."):A(e&&(e.nodeType===W||e.nodeType===V));var n=o(e),r=B[n];return r?(G.unmountComponentFromNode(r,e),delete B[n],delete q[n],"production"!==t.env.NODE_ENV&&delete z[n],!0):!1},unmountComponentFromNode:function(e,t){for(S.unmountComponent(e),t.nodeType===V&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)},findReactContainerForID:function(e){var n=T.getReactRootIDFromNodeID(e),r=q[n];if("production"!==t.env.NODE_ENV){var o=z[n];if(o&&o.parentNode!==r){"production"!==t.env.NODE_ENV?A(s(o)===n,"ReactMount: Root element ID differed from reactRootID."):A(s(o)===n);var i=r.firstChild;i&&n===s(i)?z[n]=i:"production"!==t.env.NODE_ENV?j(!1,"ReactMount: Root element has been removed from its original container. New container:",o.parentNode):null}}return r},findReactNodeByID:function(e){var t=G.findReactContainerForID(e);return G.findComponentRoot(t,e)},isRenderedByReact:function(e){if(1!==e.nodeType)return!1;var t=G.getID(e);return t?t.charAt(0)===L:!1},getFirstReactDOM:function(e){for(var t=e;t&&t.parentNode!==t;){if(G.isRenderedByReact(t))return t;t=t.parentNode}return null},findComponentRoot:function(e,n){var r=K,o=0,i=d(n)||e;for(r[0]=i.firstChild,r.length=1;o when using tables, nesting tags like
,

, or , or using non-SVG elements in an parent. Try inspecting the child nodes of the element with React ID `%s`.",n,G.getID(e)):A(!1)},_mountImageIntoNode:function(e,n,o){if("production"!==t.env.NODE_ENV?A(n&&(n.nodeType===W||n.nodeType===V),"mountComponentIntoNode(...): Target container is not valid."):A(n&&(n.nodeType===W||n.nodeType===V)),o){var i=k(n);if(C.canReuseMarkup(e,i))return;var s=i.getAttribute(C.CHECKSUM_ATTR_NAME);i.removeAttribute(C.CHECKSUM_ATTR_NAME);var a=i.outerHTML;i.setAttribute(C.CHECKSUM_ATTR_NAME,s);var u=r(e,a),c=" (client) "+e.substring(u-20,u+20)+"\n (server) "+a.substring(u-20,u+20);"production"!==t.env.NODE_ENV?A(n.nodeType!==V,"You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s",c):A(n.nodeType!==V),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?j(!1,"React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\n%s",c):null)}"production"!==t.env.NODE_ENV?A(n.nodeType!==V,"You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See React.renderToString() for server rendering."):A(n.nodeType!==V),R(n,e)},getReactRootID:o,getID:i,setID:a,getNode:u,getNodeFromInstance:c,purgeID:p};_.measureMethods(G,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),e.exports=G}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t-1){var t=e.values.map(function(e){return e/=255,.03928>=e?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*t[0]+.7152*t[1]+.0722*t[2]}var n="Calculating the relative luminance is not available for HSL and HSLA.";return console.error(n),-1},_convertColorToString:function(e,t){var n=e.type+"("+parseInt(e.values[0])+","+parseInt(e.values[1])+","+parseInt(e.values[2]);return n+=void 0!==t?","+t+")":4===e.values.length?","+e.values[3]+")":")"},_convertHexToRGB:function(e){if(4===e.length){for(var t="#",n=1;n-1)return e.values[2]+=t,this._decomposeColor(this._convertColorToString(e));if(e.type.indexOf("rgb")>-1)for(var n=0;3>n;n++)e.values[n]*=1+t,e.values[n]>255&&(e.values[n]=255);return e.type.indexOf("a")<=-1&&(e.type+="a"),this._convertColorToString(e,"0.15")},darken:function(e,t){if(e=this._decomposeColor(e),e.type.indexOf("hsl")>-1)return e.values[2]+=t,this._decomposeColor(this._convertColorToString(e));if(e.type.indexOf("rgb")>-1)for(var n=0;3>n;n++)e.values[n]*=1-t,e.values[n]<0&&(e.values[n]=0);return this._convertColorToString(e)},contrastRatio:function(e,t){var n=this._luminance(e),r=this._luminance(t);return n>=r?((n+.05)/(r+.05)).toFixed(2):((r+.05)/(n+.05)).toFixed(2)},contrastRatioLevel:function(e,t){var n={fail:{range:[0,3],color:"hsl(0, 100%, 40%)"},"aa-large":{range:[3,4.5],color:"hsl(40, 100%, 45%)"},aa:{range:[4.5,7],color:"hsl(80, 60%, 45%)"},aaa:{range:[7,22],color:"hsl(95, 60%, 41%)"}},r=this.contrastRatio(e,t);for(var o in n){var i=n[o].range;if(r>=i[0]&&r<=i[1])return o}}}},function(e,t,n){(function(t){"use strict";function n(e,t,n){return n}var r={enableMeasure:!1,storedMeasure:n,measureMethods:function(e,n,o){if("production"!==t.env.NODE_ENV)for(var i in o)o.hasOwnProperty(i)&&(e[i]=r.measure(n,o[i],e[i]))},measure:function(e,n,o){if("production"!==t.env.NODE_ENV){var i=null,s=function(){return r.enableMeasure?(i||(i=r.storedMeasure(e,n,o)),i.apply(this,arguments)):o.apply(this,arguments)};return s.displayName=e+"_"+n,s}return o},injection:{injectMeasure:function(e){r.storedMeasure=e}}};e.exports=r}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t,n){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var r=this.constructor.Interface;for(var o in r)if(r.hasOwnProperty(o)){var i=r[o];i?this[o]=i(n):this[o]=n[o]}var a=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;a?this.isDefaultPrevented=s.thatReturnsTrue:this.isDefaultPrevented=s.thatReturnsFalse,this.isPropagationStopped=s.thatReturnsFalse}var o=n(23),i=n(5),s=n(20),a=n(92),u={type:null,target:a,currentTarget:s.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};i(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=s.thatReturnsTrue},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=s.thatReturnsTrue},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=u,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);i(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=i({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.threeArgumentPooler)},o.addPoolingTo(r,o.threeArgumentPooler),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;tu;u++){var l=a[u];if(l){var p=l.extractEvents(e,t,n,r);p&&(i=s(i,p))}}return i},enqueueEvents:function(e){e&&(l=s(l,e))},processEventQueue:function(){var e=l;l=null,a(e,p),"production"!==t.env.NODE_ENV?u(!l,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."):u(!l)},__purge:function(){c={}},__getListenerBank:function(){return c}};e.exports=d}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return v(e,r)}function o(e,n,o){if("production"!==t.env.NODE_ENV&&!e)throw new Error("Dispatching id must not be null");var i=n?m.bubbled:m.captured,s=r(e,o,i);s&&(o._dispatchListeners=d(o._dispatchListeners,s),o._dispatchIDs=d(o._dispatchIDs,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,o,e)}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=v(e,r);o&&(n._dispatchListeners=d(n._dispatchListeners,o),n._dispatchIDs=d(n._dispatchIDs,e))}}function a(e){e&&e.dispatchConfig.registrationName&&s(e.dispatchMarker,null,e)}function u(e){f(e,i)}function c(e,t,n,r){h.injection.getInstanceHandle().traverseEnterLeave(n,r,s,e,t)}function l(e){f(e,a)}var p=n(13),h=n(31),d=n(88),f=n(89),m=p.PropagationPhases,v=h.getListener,y={accumulateTwoPhaseDispatches:u,accumulateDirectDispatches:l,accumulateEnterLeaveDispatches:c};e.exports=y}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(64),o=n(130),i=n(131),s=n(15),a=n(82),u=n(25),c=n(8),l=n(52),p=n(248),h=n(134),d=n(259),f=n(35),m=n(17),v=n(27),y=n(139),g=n(39),b=n(271),w=n(5),E=n(145),T=n(153);d.inject();var x=c.createElement,C=c.createFactory,_=c.cloneElement;"production"!==t.env.NODE_ENV&&(x=l.createElement,C=l.createFactory,_=l.cloneElement);var S=v.measure("React","render",m.render),N={Children:{map:o.map,forEach:o.forEach,count:o.count,only:T},Component:i,DOM:p,PropTypes:y,initializeTouchEvents:function(e){r.useTouchEvents=e},createClass:s.createClass,createElement:x,cloneElement:_,createFactory:C,createMixin:function(e){return e},constructAndRenderComponent:m.constructAndRenderComponent,constructAndRenderComponentByID:m.constructAndRenderComponentByID,findDOMNode:E,render:S,renderToString:b.renderToString,renderToStaticMarkup:b.renderToStaticMarkup,unmountComponentAtNode:m.unmountComponentAtNode,isValidElement:c.isValidElement,withContext:a.withContext,__spread:w};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:u,InstanceHandles:f,Mount:m,Reconciler:g,TextComponent:h}),"production"!==t.env.NODE_ENV){var O=n(12);if(O.canUseDOM&&window.top===window.self){navigator.userAgent.indexOf("Chrome")>-1&&"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&console.debug("Download the React DevTools for a better development experience: https://fb.me/react-devtools");for(var D=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.split,String.prototype.trim,Object.create,Object.freeze],P=0;Pc;c++){var h=a[c];i.hasOwnProperty(h)&&i[h]||(h===u.topWheel?l("wheel")?v.ReactEventListener.trapBubbledEvent(u.topWheel,"wheel",n):l("mousewheel")?v.ReactEventListener.trapBubbledEvent(u.topWheel,"mousewheel",n):v.ReactEventListener.trapBubbledEvent(u.topWheel,"DOMMouseScroll",n):h===u.topScroll?l("scroll",!0)?v.ReactEventListener.trapCapturedEvent(u.topScroll,"scroll",n):v.ReactEventListener.trapBubbledEvent(u.topScroll,"scroll",v.ReactEventListener.WINDOW_HANDLE):h===u.topFocus||h===u.topBlur?(l("focus",!0)?(v.ReactEventListener.trapCapturedEvent(u.topFocus,"focus",n),v.ReactEventListener.trapCapturedEvent(u.topBlur,"blur",n)):l("focusin")&&(v.ReactEventListener.trapBubbledEvent(u.topFocus,"focusin",n),v.ReactEventListener.trapBubbledEvent(u.topBlur,"focusout",n)),i[u.topBlur]=!0,i[u.topFocus]=!0):f.hasOwnProperty(h)&&v.ReactEventListener.trapBubbledEvent(h,f[h],n),i[h]=!0)}},trapBubbledEvent:function(e,t,n){return v.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return v.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!h){var e=u.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),h=!0}},eventNameDispatchConfigs:i.eventNameDispatchConfigs,registrationNameModules:i.registrationNameModules,putListener:i.putListener,getListener:i.getListener,deleteListener:i.deleteListener,deleteAllListeners:i.deleteAllListeners});e.exports=v},function(e,t,n){(function(t){"use strict";function r(e){return d+e.toString(36)}function o(e,t){return e.charAt(t)===d||t===e.length}function i(e){return""===e||e.charAt(0)===d&&e.charAt(e.length-1)!==d}function s(e,t){return 0===t.indexOf(e)&&o(t,e.length)}function a(e){return e?e.substr(0,e.lastIndexOf(d)):""}function u(e,n){if("production"!==t.env.NODE_ENV?h(i(e)&&i(n),"getNextDescendantID(%s, %s): Received an invalid React DOM ID.",e,n):h(i(e)&&i(n)),"production"!==t.env.NODE_ENV?h(s(e,n),"getNextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",e,n):h(s(e,n)),e===n)return e;var r,a=e.length+f;for(r=a;r=a;a++)if(o(e,a)&&o(n,a))s=a;else if(e.charAt(a)!==n.charAt(a))break;var u=e.substr(0,s);return"production"!==t.env.NODE_ENV?h(i(u),"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",e,n,u):h(i(u)),u}function l(e,n,r,o,i,c){e=e||"",n=n||"","production"!==t.env.NODE_ENV?h(e!==n,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",e):h(e!==n);var l=s(n,e);"production"!==t.env.NODE_ENV?h(l||s(e,n),"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",e,n):h(l||s(e,n));for(var p=0,d=l?a:u,f=e;;f=d(f,n)){var v;if(i&&f===e||c&&f===n||(v=r(f,l,o)),v===!1||f===n)break;"production"!==t.env.NODE_ENV?h(p++1){var t=e.indexOf(d,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var i=c(e,t);i!==e&&l(e,i,n,r,!1,!0),i!==t&&l(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(l("",e,t,n,!0,!1),l(e,"",t,n,!1,!0))},traverseAncestors:function(e,t,n){l("",e,t,n,!0,!1)},_getFirstCommonAncestorID:c,_getNextDescendantID:u,isAncestorIDOf:s,SEPARATOR:d};e.exports=v}).call(t,n(1))},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){var r,o;!function(i,s){"use strict";"object"==typeof e&&e.exports?e.exports=s():(r=s,o="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==o&&(e.exports=o)))}(this,function(){"use strict";function e(e){return typeof console===a?!1:void 0!==console[e]?t(console,e):void 0!==console.log?t(console,"log"):s}function t(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(r){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function n(e,t,n){return function(){typeof console!==a&&(r.call(this,t,n),this[e].apply(this,arguments))}}function r(e,t){for(var n=0;nn?s:this.methodFactory(r,e,t)}}function o(t,r,o){return e(t)||n.apply(this,arguments)}function i(e,t,n){function i(e){var t=(u[e]||"silent").toUpperCase();try{return void(window.localStorage[p]=t)}catch(n){}try{window.document.cookie=encodeURIComponent(p)+"="+t+";"}catch(n){}}function s(){var e;try{e=window.localStorage[p]}catch(t){}if(typeof e===a)try{var n=window.document.cookie,r=n.indexOf(encodeURIComponent(p)+"=");r&&(e=/^([^;]+)/.exec(n.slice(r))[1])}catch(t){}return void 0===l.levels[e]&&(e=void 0),e}var c,l=this,p="loglevel";e&&(p+=":"+e),l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=n||o,l.getLevel=function(){return c},l.setLevel=function(t,n){if("string"==typeof t&&void 0!==l.levels[t.toUpperCase()]&&(t=l.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=l.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;return c=t,n!==!1&&i(t),r.call(l,t,e),typeof console===a&&t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(){if(!g){var e=document.createElement("style");e.innerHTML="\n button::-moz-focus-inner,\n input::-moz-focus-inner {\n border: 0;\n padding: 0;\n }\n ",document.body.appendChild(e),g=!0}}function i(){b||(h.on(window,"keydown",function(e){w=e.keyCode===d.TAB}),b=!0)}var s=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;tt||o.hasOverloadedBooleanValue[e]&&t===!1}var o=n(30),i=n(311),s=n(9);if("production"!==t.env.NODE_ENV)var a={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0},u={},c=function(e){if(!(a.hasOwnProperty(e)&&a[e]||u.hasOwnProperty(e)&&u[e])){u[e]=!0;var n=e.toLowerCase(),r=o.isCustomAttribute(n)?n:o.getPossibleStandardName.hasOwnProperty(n)?o.getPossibleStandardName[n]:null;"production"!==t.env.NODE_ENV?s(null==r,"Unknown DOM property %s. Did you mean %s?",e,r):null}};var l={createMarkupForID:function(e){return o.ID_ATTRIBUTE_NAME+"="+i(e)},createMarkupForProperty:function(e,n){if(o.isStandardName.hasOwnProperty(e)&&o.isStandardName[e]){if(r(e,n))return"";var s=o.getAttributeName[e];return o.hasBooleanValue[e]||o.hasOverloadedBooleanValue[e]&&n===!0?s:s+"="+i(n)}return o.isCustomAttribute(e)?null==n?"":e+"="+i(n):("production"!==t.env.NODE_ENV&&c(e),null)},setValueForProperty:function(e,n,i){if(o.isStandardName.hasOwnProperty(n)&&o.isStandardName[n]){var s=o.getMutationMethod[n];if(s)s(e,i);else if(r(n,i))this.deleteValueForProperty(e,n);else if(o.mustUseAttribute[n])e.setAttribute(o.getAttributeName[n],""+i);else{var a=o.getPropertyName[n];o.hasSideEffects[n]&&""+e[a]==""+i||(e[a]=i)}}else o.isCustomAttribute(n)?null==i?e.removeAttribute(n):e.setAttribute(n,""+i):"production"!==t.env.NODE_ENV&&c(n)},deleteValueForProperty:function(e,n){if(o.isStandardName.hasOwnProperty(n)&&o.isStandardName[n]){var r=o.getMutationMethod[n];if(r)r(e,void 0);else if(o.mustUseAttribute[n])e.removeAttribute(o.getAttributeName[n]);else{var i=o.getPropertyName[n],s=o.getDefaultValueForProperty(e.nodeName,i);o.hasSideEffects[n]&&""+e[i]===s||(e[i]=s)}}else o.isCustomAttribute(n)?e.removeAttribute(n):"production"!==t.env.NODE_ENV&&c(n)}};e.exports=l}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){return e===y.topMouseUp||e===y.topTouchEnd||e===y.topTouchCancel}function o(e){return e===y.topMouseMove||e===y.topTouchMove}function i(e){return e===y.topMouseDown||e===y.topTouchStart}function s(e,n){var r=e._dispatchListeners,o=e._dispatchIDs;if("production"!==t.env.NODE_ENV&&d(e),Array.isArray(r))for(var i=0;i.":"",p="";if(n&&n._owner&&n._owner!==b.current){var h=o(n._owner);p=" It was passed a child from "+h+"."}"production"!==t.env.NODE_ENV?x(!1,e+"%s%s See https://fb.me/react-warning-keys for more information.",l,p):null}}function c(e,t){if(Array.isArray(e))for(var n=0;n");var u="";i&&(u=" The element was created by "+i+"."),"production"!==t.env.NODE_ENV?x(!1,"Don't set .props.%s of the React component%s. Instead, specify the correct value when initially creating the element or use React.cloneElement to make a new element with updated props.%s",e,a,u):null}}function h(e,t){return e!==e?t!==t:0===e&&0===t?1/e===1/t:e===t}function d(e){if(e._store){var t=e._store.originalProps,n=e.props;for(var r in n)n.hasOwnProperty(r)&&(t.hasOwnProperty(r)&&h(t[r],n[r])||(p(r,e),t[r]=n[r]))}}function f(e){if(null!=e.type){var n=w.getComponentClassForElement(e),r=n.displayName||n.name;n.propTypes&&l(r,n.propTypes,e.props,y.prop),"function"==typeof n.getDefaultProps&&("production"!==t.env.NODE_ENV?x(n.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."):null)}}var m=n(8),v=n(37),y=n(85),g=n(66),b=n(25),w=n(65),E=n(150),T=n(2),x=n(9),C={},_={},S=/^\d+$/,N={},O={checkAndWarnForMutatedProps:d,createElement:function(e,n,r){"production"!==t.env.NODE_ENV?x(null!=e,"React.createElement: type should not be null or undefined. It should be a string (for DOM elements) or a ReactClass (for composite components)."):null;var o=m.createElement.apply(this,arguments);if(null==o)return o;for(var i=2;in?s:this.methodFactory(r,e,t)}}function o(t,r,o){return e(t)||n.apply(this,arguments)}function i(e,t,n){function i(e){var t=(u[e]||"silent").toUpperCase();try{return void(window.localStorage[p]=t)}catch(n){}try{window.document.cookie=encodeURIComponent(p)+"="+t+";"}catch(n){}}function s(){var e;try{e=window.localStorage[p]}catch(t){}if(typeof e===a)try{var n=window.document.cookie,r=n.indexOf(encodeURIComponent(p)+"=");r&&(e=/^([^;]+)/.exec(n.slice(r))[1])}catch(t){}return void 0===l.levels[e]&&(e=void 0),e}var c,l=this,p="loglevel";e&&(p+=":"+e),l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=n||o,l.getLevel=function(){return c},l.setLevel=function(t,n){if("string"==typeof t&&void 0!==l.levels[t.toUpperCase()]&&(t=l.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=l.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;return c=t,n!==!1&&i(t),r.call(l,t,e),typeof console===a&&t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return e.children||e.label?void 0:new Error("Required prop label or children was not specified in "+n+".")}var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){return e||0===e}var i=Object.assign||function(e){for(var t=1;t=0;i--)this.on(e,r[i],o)},on:function(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,function(){n.call(e)})},off:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent("on"+t,n)},isKeyboard:function(e){return-1!==["keydown","keypress","keyup"].indexOf(e.type)}}},function(e,t,n){"use strict";var r=n(3);e.exports={corners:r.PropTypes.oneOf(["bottom-left","bottom-right","top-left","top-right"]),cornersAndCenter:r.PropTypes.oneOf(["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"]),stringOrNumber:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.number]),zDepth:r.PropTypes.oneOf([0,1,2,3,4,5])}},function(e,t,n){"use strict";var r=n(148),o={componentDidMount:function(){this.props.autoFocus&&r(this.getDOMNode())}};e.exports=o},function(e,t,n){(function(t){"use strict";function r(e){l[e]=!0}function o(e){delete l[e]}function i(e){return!!l[e]}var s,a=n(8),u=n(35),c=n(2),l={},p={injectEmptyComponent:function(e){s=a.createFactory(e)}},h=function(){};h.prototype.componentDidMount=function(){var e=u.get(this);e&&r(e._rootNodeID)},h.prototype.componentWillUnmount=function(){var e=u.get(this);e&&o(e._rootNodeID)},h.prototype.render=function(){return"production"!==t.env.NODE_ENV?c(s,"Trying to return null from a render, but no null placeholder component was injected."):c(s),s()};var d=a.createElement(h),f={emptyElement:d,injection:p,isNullComponentID:i};e.exports=f}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=p[t];return null==n&&(p[t]=n=c(t)),n}function o(e){return"production"!==t.env.NODE_ENV?u(l,"There is no registered component for the tag %s",e.type):u(l),new l(e.type,e.props)}function i(e){return new h(e)}function s(e){return e instanceof h}var a=n(5),u=n(2),c=null,l=null,p={},h=null,d={injectGenericComponentClass:function(e){l=e},injectTextComponentClass:function(e){h=e},injectComponentClasses:function(e){a(p,e)},injectAutoWrapper:function(e){c=e}},f={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:i,isTextComponent:s,injection:d};e.exports=f}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var n={};"production"!==t.env.NODE_ENV&&(n={prop:"prop",context:"context",childContext:"child context"}),e.exports=n}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(39),i=n(87),s=n(90),a={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:s,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};o.augmentClass(r,a),e.exports=r},function(e,t,n){(function(t){"use strict";var r=n(2),o={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,n,o,i,s,a,u,c){"production"!==t.env.NODE_ENV?r(!this.isInTransaction(),"Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction."):r(!this.isInTransaction());var l,p;try{this._isInTransaction=!0,l=!0,this.initializeAll(0),p=e.call(n,o,i,s,a,u,c),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(h){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return p},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n":">","<":"<",'"':""","'":"'"},i=/[&><"']/g;e.exports=r},function(e,t){!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(5),a=r(s),u=n(6),c=r(u),l=n(1),p=r(l),h=n(8),d=r(h),f=n(9),m=r(f);t["default"]={isArrayOfStrings:i["default"],isString:a["default"],isFunction:c["default"],isObject:p["default"],camelCaseToUnderscores:d["default"],isIterable:m["default"]},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=r(o);t["default"]=i["default"],e.exports=t["default"]},function(e,t){"use strict";function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Array.isArray(e)&&e.reduce(function(e,t){return e&&s["default"](t)},!0)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(4),s=r(i);e.exports=t["default"]},function(e,t){"use strict";function n(e){return!!e&&"object"==typeof e}function r(e){return"string"==typeof e||n(e)&&s.call(e)==o}var o="[object String]",i=Object.prototype,s=i.toString;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),i=r(o);t["default"]=i["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),i=r(o);t["default"]=i["default"],e.exports=t["default"]},function(e,t){"use strict";function n(e){return r(e)&&s.call(e)==o}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var o="[object Function]",i=Object.prototype,s=i.toString;e.exports=n},function(e,t){"use strict";function n(e){return e.replace(/[a-z][A-Z]/g,function(e){return[e.charAt(0),e.charAt(1)].join("_")}).toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Boolean((e||s["default"](e))&&e[Symbol.iterator])}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(4),s=r(i);e.exports=t["default"]}]))},function(e,t,n){(function(r){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;nn;n++)t[n]=arguments[n];return this.logger.debug.apply(console,t),!0}return!1}},{key:"error",value:function(){if(this.canLog("error")){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.logger.error.apply(console,t),!0}return!1}},{key:"log",value:function(){if(this.canLog("log")){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.logger.log.apply(console,t),!0}return!1}},{key:"warn",value:function(){if(this.canLog("warn")){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.logger.warn.apply(console,t),!0}return!1}}],[{key:"getLogger",value:function(){var t=void 0;try{t=r.console}catch(n){t=window.console}return this.logger?this.logger:this.logger=new e(t)}}]),e}();t["default"]=a,e.exports=t["default"]}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;tr;r++)e[r].call(n[r]);e.length=0,n.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){"production"!==t.env.NODE_ENV?c(null==e.props.checkedLink||null==e.props.valueLink,"Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don't want to use valueLink and vice versa."):c(null==e.props.checkedLink||null==e.props.valueLink)}function o(e){r(e),"production"!==t.env.NODE_ENV?c(null==e.props.value&&null==e.props.onChange,"Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don't want to use valueLink."):c(null==e.props.value&&null==e.props.onChange)}function i(e){r(e),"production"!==t.env.NODE_ENV?c(null==e.props.checked&&null==e.props.onChange,"Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don't want to use checkedLink"):c(null==e.props.checked&&null==e.props.onChange)}function s(e){this.props.valueLink.requestChange(e.target.value)}function a(e){this.props.checkedLink.requestChange(e.target.checked)}var u=n(141),c=n(2),l={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},p={Mixin:{propTypes:{value:function(e,t,n){return!e[t]||l[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:u.func}},getValue:function(e){return e.props.valueLink?(o(e),e.props.valueLink.value):e.props.value},getChecked:function(e){return e.props.checkedLink?(i(e),e.props.checkedLink.value):e.props.checked},getOnChange:function(e){return e.props.valueLink?(o(e),s):e.props.checkedLink?(i(e),a):e.props.onChange}};e.exports=p}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){e.remove()}var o=n(33),i=n(69),s=n(88),a=n(2),u={trapBubbledEvent:function(e,n){"production"!==t.env.NODE_ENV?a(this.isMounted(),"Must be mounted to trap events"):a(this.isMounted());var r=this.getDOMNode();"production"!==t.env.NODE_ENV?a(r,"LocalEventTrapMixin.trapBubbledEvent(...): Requires node to be rendered."):a(r);var s=o.trapBubbledEvent(e,n,r);this._localEventListeners=i(this._localEventListeners,s)},componentWillUnmount:function(){this._localEventListeners&&s(this._localEventListeners,r)}};e.exports=u}).call(t,n(1))},function(e,t,n){"use strict";var r=n(135),o=n(18),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};e.exports=i},function(e,t,n){(function(t){"use strict";var r=n(2),o=!1,i={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){"production"!==t.env.NODE_ENV?r(!o,"ReactCompositeComponent: injectEnvironment() can only be called once."):r(!o),i.unmountIDFromEnvironment=e.unmountIDFromEnvironment,i.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=i}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(5),o=n(52),i=n(9),s=!1,a={current:o,withContext:function(e,n){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?i(s,"withContext is deprecated and will be removed in a future version. Use a wrapper component with getChildContext instead."):null,s=!0);var o,u=a.current;a.current=r({},u,e);try{o=n()}finally{a.current=u}return o}};e.exports=a}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){e&&(null!=e.dangerouslySetInnerHTML&&("production"!==t.env.NODE_ENV?y(null==e.children,"Can only set one of `children` or `props.dangerouslySetInnerHTML`."):y(null==e.children),"production"!==t.env.NODE_ENV?y("object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML,"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information."):y("object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML)),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?w(null==e.innerHTML,"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."):null,"production"!==t.env.NODE_ENV?w(!e.contentEditable||null==e.children,"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."):null),"production"!==t.env.NODE_ENV?y(null==e.style||"object"==typeof e.style,"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."):y(null==e.style||"object"==typeof e.style))}function o(e,n,r,o){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?w("onScroll"!==n||g("scroll",!0),"This browser doesn't support the `onScroll` event"):null);var i=h.findReactContainerForID(e);if(i){var s=i.nodeType===S?i.ownerDocument:i;T(n,s)}o.getPutListenerQueue().enqueuePutListener(e,n,r)}function i(e){k.call(P,e)||("production"!==t.env.NODE_ENV?y(D.test(e),"Invalid tag: %s",e):y(D.test(e)),P[e]=!0)}function s(e){i(e),this._tag=e,this._renderedChildren=null,this._previousStyleCopy=null,this._rootNodeID=null}var a=n(130),u=n(30),c=n(49),l=n(33),p=n(80),h=n(18),d=n(266),f=n(29),m=n(5),v=n(70),y=n(2),g=n(93),b=n(17),w=n(9),E=l.deleteListener,T=l.listenTo,x=l.registrationNameModules,C={string:!0,number:!0},_=b({style:null}),S=1,N=null,O={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},D=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,P={},k={}.hasOwnProperty;s.displayName="ReactDOMComponent",s.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e,r(this._currentElement.props);var o=O[this._tag]?"":"";return this._createOpenTagMarkupAndPutListeners(t)+this._createContentMarkup(t,n)+o},_createOpenTagMarkupAndPutListeners:function(e){var t=this._currentElement.props,n="<"+this._tag;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(null!=i)if(x.hasOwnProperty(r))o(this._rootNodeID,r,i,e);else{r===_&&(i&&(i=this._previousStyleCopy=m({},t.style)),i=a.createMarkupForStyles(i));var s=c.createMarkupForProperty(r,i);s&&(n+=" "+s)}}if(e.renderToStaticMarkup)return n+">";var u=c.createMarkupForID(this._rootNodeID);return n+" "+u+">"},_createContentMarkup:function(e,t){var n="";("listing"===this._tag||"pre"===this._tag||"textarea"===this._tag)&&(n="\n");var r=this._currentElement.props,o=r.dangerouslySetInnerHTML;if(null!=o){if(null!=o.__html)return n+o.__html}else{var i=C[typeof r.children]?r.children:null,s=null!=i?null:r.children;if(null!=i)return n+v(i);if(null!=s){var a=this.mountChildren(s,e,t);return n+a.join("")}}return n},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,o){r(this._currentElement.props),this._updateDOMProperties(t.props,e),this._updateDOMChildren(t.props,e,o)},_updateDOMProperties:function(e,t){var n,r,i,s=this._currentElement.props;for(n in e)if(!s.hasOwnProperty(n)&&e.hasOwnProperty(n))if(n===_){var a=this._previousStyleCopy;for(r in a)a.hasOwnProperty(r)&&(i=i||{},i[r]="");this._previousStyleCopy=null}else x.hasOwnProperty(n)?E(this._rootNodeID,n):(u.isStandardName[n]||u.isCustomAttribute(n))&&N.deletePropertyByID(this._rootNodeID,n);for(n in s){var c=s[n],l=n===_?this._previousStyleCopy:e[n];if(s.hasOwnProperty(n)&&c!==l)if(n===_)if(c?c=this._previousStyleCopy=m({},c):this._previousStyleCopy=null,l){for(r in l)!l.hasOwnProperty(r)||c&&c.hasOwnProperty(r)||(i=i||{},i[r]="");for(r in c)c.hasOwnProperty(r)&&l[r]!==c[r]&&(i=i||{},i[r]=c[r])}else i=c;else x.hasOwnProperty(n)?o(this._rootNodeID,n,c,t):(u.isStandardName[n]||u.isCustomAttribute(n))&&N.updatePropertyByID(this._rootNodeID,n,c)}i&&N.updateStylesByID(this._rootNodeID,i)},_updateDOMChildren:function(e,t,n){var r=this._currentElement.props,o=C[typeof e.children]?e.children:null,i=C[typeof r.children]?r.children:null,s=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,a=r.dangerouslySetInnerHTML&&r.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,c=null!=i?null:r.children,l=null!=o||null!=s,p=null!=i||null!=a;null!=u&&null==c?this.updateChildren(null,t,n):l&&!p&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=a?s!==a&&N.updateInnerHTMLByID(this._rootNodeID,a):null!=c&&this.updateChildren(c,t,n)},unmountComponent:function(){this.unmountChildren(),l.deleteAllListeners(this._rootNodeID),p.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null}},f.measureMethods(s,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),m(s.prototype,s.Mixin,d.Mixin),s.injection={injectIDOperations:function(e){s.BackendIDOperations=N=e}},e.exports=s}).call(t,n(1))},function(e,t){"use strict";var n={currentlyMountingInstance:null,currentlyUnmountingInstance:null};e.exports=n},function(e,t,n){"use strict";var r=n(53),o=r({prop:null,context:null,childContext:null});e.exports=o},function(e,t,n){(function(t){"use strict";function r(e){e!==i.currentlyMountingInstance&&c.enqueueUpdate(e)}function o(e,n){"production"!==t.env.NODE_ENV?p(null==s.current,"%s(...): Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.",n):p(null==s.current);var r=u.get(e);return r?r===i.currentlyUnmountingInstance?null:r:("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?h(!n,"%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,n):null),null)}var i=n(84),s=n(25),a=n(8),u=n(35),c=n(16),l=n(5),p=n(2),h=n(9),d={enqueueCallback:function(e,n){"production"!==t.env.NODE_ENV?p("function"==typeof n,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):p("function"==typeof n);var s=o(e);return s&&s!==i.currentlyMountingInstance?(s._pendingCallbacks?s._pendingCallbacks.push(n):s._pendingCallbacks=[n],void r(s)):null},enqueueCallbackInternal:function(e,n){"production"!==t.env.NODE_ENV?p("function"==typeof n,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):p("function"==typeof n),e._pendingCallbacks?e._pendingCallbacks.push(n):e._pendingCallbacks=[n],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(t),r(n)}},enqueueSetProps:function(e,n){var i=o(e,"setProps");if(i){"production"!==t.env.NODE_ENV?p(i._isTopLevel,"setProps(...): You called `setProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):p(i._isTopLevel);var s=i._pendingElement||i._currentElement,u=l({},s.props,n);i._pendingElement=a.cloneAndReplaceProps(s,u),r(i)}},enqueueReplaceProps:function(e,n){var i=o(e,"replaceProps");if(i){"production"!==t.env.NODE_ENV?p(i._isTopLevel,"replaceProps(...): You called `replaceProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):p(i._isTopLevel);var s=i._pendingElement||i._currentElement;i._pendingElement=a.cloneAndReplaceProps(s,n),r(i)}},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)}};e.exports=d}).call(t,n(1))},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.exports=n},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return r?!!n[r]:!1}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e,n){var o;if((null===e||e===!1)&&(e=s.emptyElement),"object"==typeof e){var i=e;"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?l(i&&("function"==typeof i.type||"string"==typeof i.type),"Only functions or strings can be mounted as React components."):null),o=n===i.type&&"string"==typeof i.type?a.createInternalComponent(i):r(i.type)?new i.type(i):new p}else"string"==typeof e||"number"==typeof e?o=a.createInstanceForText(e):"production"!==t.env.NODE_ENV?c(!1,"Encountered invalid React node of type %s",typeof e):c(!1);return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?l("function"==typeof o.construct&&"function"==typeof o.mountComponent&&"function"==typeof o.receiveComponent&&"function"==typeof o.unmountComponent,"Only React Components can be mounted."):null),o.construct(e),o._mountIndex=0,o._mountImage=null,"production"!==t.env.NODE_ENV&&(o._isOwnerNecessary=!1,o._warnedAboutRefsInRender=!1),"production"!==t.env.NODE_ENV&&Object.preventExtensions&&Object.preventExtensions(o),o}var i=n(134),s=n(64),a=n(65),u=n(5),c=n(2),l=n(9),p=function(){};u(p.prototype,i.Mixin,{_instantiateReactComponent:o}),e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";/** +!function(){"use strict";function o(){for(var e="",t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(){if(!g){var e=document.createElement("style");e.innerHTML="\n button::-moz-focus-inner,\n input::-moz-focus-inner {\n border: 0;\n padding: 0;\n }\n ",document.body.appendChild(e),g=!0}}function i(){b||(h.on(window,"keydown",function(e){w=e.keyCode===d.TAB}),b=!0)}var s=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;tt||o.hasOverloadedBooleanValue[e]&&t===!1}var o=n(30),i=n(311),s=n(9);if("production"!==t.env.NODE_ENV)var a={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0},u={},c=function(e){if(!(a.hasOwnProperty(e)&&a[e]||u.hasOwnProperty(e)&&u[e])){u[e]=!0;var n=e.toLowerCase(),r=o.isCustomAttribute(n)?n:o.getPossibleStandardName.hasOwnProperty(n)?o.getPossibleStandardName[n]:null;"production"!==t.env.NODE_ENV?s(null==r,"Unknown DOM property %s. Did you mean %s?",e,r):null}};var l={createMarkupForID:function(e){return o.ID_ATTRIBUTE_NAME+"="+i(e)},createMarkupForProperty:function(e,n){if(o.isStandardName.hasOwnProperty(e)&&o.isStandardName[e]){if(r(e,n))return"";var s=o.getAttributeName[e];return o.hasBooleanValue[e]||o.hasOverloadedBooleanValue[e]&&n===!0?s:s+"="+i(n)}return o.isCustomAttribute(e)?null==n?"":e+"="+i(n):("production"!==t.env.NODE_ENV&&c(e),null)},setValueForProperty:function(e,n,i){if(o.isStandardName.hasOwnProperty(n)&&o.isStandardName[n]){var s=o.getMutationMethod[n];if(s)s(e,i);else if(r(n,i))this.deleteValueForProperty(e,n);else if(o.mustUseAttribute[n])e.setAttribute(o.getAttributeName[n],""+i);else{var a=o.getPropertyName[n];o.hasSideEffects[n]&&""+e[a]==""+i||(e[a]=i)}}else o.isCustomAttribute(n)?null==i?e.removeAttribute(n):e.setAttribute(n,""+i):"production"!==t.env.NODE_ENV&&c(n)},deleteValueForProperty:function(e,n){if(o.isStandardName.hasOwnProperty(n)&&o.isStandardName[n]){var r=o.getMutationMethod[n];if(r)r(e,void 0);else if(o.mustUseAttribute[n])e.removeAttribute(o.getAttributeName[n]);else{var i=o.getPropertyName[n],s=o.getDefaultValueForProperty(e.nodeName,i);o.hasSideEffects[n]&&""+e[i]===s||(e[i]=s)}}else o.isCustomAttribute(n)?e.removeAttribute(n):"production"!==t.env.NODE_ENV&&c(n)}};e.exports=l}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(){if(b.current){var e=b.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e){var t=e&&e.getPublicInstance();if(!t)return void 0;var n=t.constructor;return n?n.displayName||n.name||void 0:void 0}function i(){var e=b.current;return e&&o(e)||void 0}function s(e,t){e._store.validated||null!=e.key||(e._store.validated=!0,u('Each child in an array or iterator should have a unique "key" prop.',e,t))}function a(e,t,n){S.test(e)&&u("Child objects should have non-numeric keys so ordering is preserved.",t,n)}function u(e,n,r){var s=i(),a="string"==typeof r?r:r.displayName||r.name,u=s||a,c=C[e]||(C[e]={});if(!c.hasOwnProperty(u)){c[u]=!0;var l=s?" Check the render method of "+s+".":a?" Check the React.render call using <"+a+">.":"",p="";if(n&&n._owner&&n._owner!==b.current){var h=o(n._owner);p=" It was passed a child from "+h+"."}"production"!==t.env.NODE_ENV?x(!1,e+"%s%s See https://fb.me/react-warning-keys for more information.",l,p):null}}function c(e,t){if(Array.isArray(e))for(var n=0;n");var u="";i&&(u=" The element was created by "+i+"."),"production"!==t.env.NODE_ENV?x(!1,"Don't set .props.%s of the React component%s. Instead, specify the correct value when initially creating the element or use React.cloneElement to make a new element with updated props.%s",e,a,u):null}}function h(e,t){return e!==e?t!==t:0===e&&0===t?1/e===1/t:e===t}function d(e){if(e._store){var t=e._store.originalProps,n=e.props;for(var r in n)n.hasOwnProperty(r)&&(t.hasOwnProperty(r)&&h(t[r],n[r])||(p(r,e),t[r]=n[r]))}}function f(e){if(null!=e.type){var n=w.getComponentClassForElement(e),r=n.displayName||n.name;n.propTypes&&l(r,n.propTypes,e.props,y.prop),"function"==typeof n.getDefaultProps&&("production"!==t.env.NODE_ENV?x(n.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."):null)}}var m=n(8),v=n(38),y=n(85),g=n(67),b=n(25),w=n(66),E=n(148),T=n(2),x=n(9),C={},_={},S=/^\d+$/,N={},O={checkAndWarnForMutatedProps:d,createElement:function(e,n,r){"production"!==t.env.NODE_ENV?x(null!=e,"React.createElement: type should not be null or undefined. It should be a string (for DOM elements) or a ReactClass (for composite components)."):null;var o=m.createElement.apply(this,arguments);if(null==o)return o;for(var i=2;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return e.children||e.label?void 0:new Error("Required prop label or children was not specified in "+n+".")}var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){return e||0===e}var i=Object.assign||function(e){for(var t=1;t=0;i--)this.on(e,r[i],o)},on:function(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,function(){n.call(e)})},off:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent("on"+t,n)},isKeyboard:function(e){return-1!==["keydown","keypress","keyup"].indexOf(e.type)}}},function(e,t,n){"use strict";var r=n(3);e.exports={corners:r.PropTypes.oneOf(["bottom-left","bottom-right","top-left","top-right"]),cornersAndCenter:r.PropTypes.oneOf(["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"]),stringOrNumber:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.number]),zDepth:r.PropTypes.oneOf([0,1,2,3,4,5])}},function(e,t,n){"use strict";var r=n(146),o={componentDidMount:function(){this.props.autoFocus&&r(this.getDOMNode())}};e.exports=o},function(e,t,n){(function(t){"use strict";function r(e){return e===y.topMouseUp||e===y.topTouchEnd||e===y.topTouchCancel}function o(e){return e===y.topMouseMove||e===y.topTouchMove}function i(e){return e===y.topMouseDown||e===y.topTouchStart}function s(e,n){var r=e._dispatchListeners,o=e._dispatchIDs;if("production"!==t.env.NODE_ENV&&d(e),Array.isArray(r))for(var i=0;i":">","<":"<",'"':""","'":"'"},i=/[&><"']/g;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(41),a=r(s),u=n(172),c=r(u),l=n(42),p=r(l),h=i["default"].createClass({displayName:"Form",propTypes:{fieldConfigs:i["default"].PropTypes.arrayOf(i["default"].PropTypes.shape({name:i["default"].PropTypes.string.isRequired,type:i["default"].PropTypes.func.isRequired,fieldOptions:i["default"].PropTypes.object,validators:i["default"].PropTypes.arrayOf(i["default"].PropTypes.func)})).isRequired,onFormFieldUpdate:i["default"].PropTypes.func,source:i["default"].PropTypes.object.isRequired,children:i["default"].PropTypes.array},mixins:[p["default"]],getDefaultProps:function(){return{fieldConfigs:[]}},renderFieldsFromFieldConfigs:function(){var e=this;return this.props.fieldConfigs.filter(function(e){return e.type}).map(function(t){var n=e.props.source&&e.props.source[t.name],r=(t.validators||[]).filter(function(e){return e(n)!==!0}).map(function(e){return e(n)}).shift(),o="onBlur"===t.updateEvent?"onBlur":"onChange";return i["default"].createElement(c["default"],{fieldOptions:t.fieldOptions,key:t.name,type:t.type,errorMessage:r?e.getTranslation(r):void 0,onChange:e.updateRequest.bind(e,t),value:n,isValid:e.isValid(),updateFn:e.updateRequest.bind(e,t),updateEvent:o})})},render:function(){var e=a["default"]("form");return i["default"].createElement("form",{className:e},this.renderFieldsFromFieldConfigs(),this.props.children)},isValid:function(){return!0},updateRequest:function(e,t){this.props.onFormFieldUpdate&&this.props.onFormFieldUpdate(e.name,t.target.value)}});t["default"]=h,e.exports=t["default"]},function(e,t){!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(5),a=r(s),u=n(6),c=r(u),l=n(1),p=r(l),h=n(8),d=r(h),f=n(9),m=r(f);t["default"]={isArrayOfStrings:i["default"],isString:a["default"],isFunction:c["default"],isObject:p["default"],camelCaseToUnderscores:d["default"],isIterable:m["default"]},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=r(o);t["default"]=i["default"],e.exports=t["default"]},function(e,t){"use strict";function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Array.isArray(e)&&e.reduce(function(e,t){return e&&s["default"](t)},!0)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(4),s=r(i);e.exports=t["default"]},function(e,t){"use strict";function n(e){return!!e&&"object"==typeof e}function r(e){return"string"==typeof e||n(e)&&s.call(e)==o}var o="[object String]",i=Object.prototype,s=i.toString;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),i=r(o);t["default"]=i["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),i=r(o);t["default"]=i["default"],e.exports=t["default"]},function(e,t){"use strict";function n(e){return r(e)&&s.call(e)==o}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var o="[object Function]",i=Object.prototype,s=i.toString;e.exports=n},function(e,t){"use strict";function n(e){return e.replace(/[a-z][A-Z]/g,function(e){return[e.charAt(0),e.charAt(1)].join("_")}).toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Boolean((e||s["default"](e))&&e[Symbol.iterator])}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(4),s=r(i);e.exports=t["default"]}]))},function(e,t,n){(function(r){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;nn;n++)t[n]=arguments[n];return this.logger.debug.apply(console,t),!0}return!1}},{key:"error",value:function(){if(this.canLog("error")){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.logger.error.apply(console,t),!0}return!1}},{key:"log",value:function(){if(this.canLog("log")){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.logger.log.apply(console,t),!0}return!1}},{key:"warn",value:function(){if(this.canLog("warn")){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.logger.warn.apply(console,t),!0}return!1}}],[{key:"getLogger",value:function(){var t=void 0;try{t=r.console}catch(n){t=window.console}return this.logger?this.logger:this.logger=new e(t)}}]),e}();t["default"]=a,e.exports=t["default"]}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;tr;r++)e[r].call(n[r]);e.length=0,n.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){"production"!==t.env.NODE_ENV?c(null==e.props.checkedLink||null==e.props.valueLink,"Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don't want to use valueLink and vice versa."):c(null==e.props.checkedLink||null==e.props.valueLink)}function o(e){r(e),"production"!==t.env.NODE_ENV?c(null==e.props.value&&null==e.props.onChange,"Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don't want to use valueLink."):c(null==e.props.value&&null==e.props.onChange)}function i(e){r(e),"production"!==t.env.NODE_ENV?c(null==e.props.checked&&null==e.props.onChange,"Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don't want to use checkedLink"):c(null==e.props.checked&&null==e.props.onChange)}function s(e){this.props.valueLink.requestChange(e.target.value)}function a(e){this.props.checkedLink.requestChange(e.target.checked)}var u=n(139),c=n(2),l={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},p={Mixin:{propTypes:{value:function(e,t,n){return!e[t]||l[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:u.func}},getValue:function(e){return e.props.valueLink?(o(e),e.props.valueLink.value):e.props.value},getChecked:function(e){return e.props.checkedLink?(i(e),e.props.checkedLink.value):e.props.checked},getOnChange:function(e){return e.props.valueLink?(o(e),s):e.props.checkedLink?(i(e),a):e.props.onChange}};e.exports=p}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){e.remove()}var o=n(34),i=n(88),s=n(89),a=n(2),u={trapBubbledEvent:function(e,n){"production"!==t.env.NODE_ENV?a(this.isMounted(),"Must be mounted to trap events"):a(this.isMounted());var r=this.getDOMNode();"production"!==t.env.NODE_ENV?a(r,"LocalEventTrapMixin.trapBubbledEvent(...): Requires node to be rendered."):a(r);var s=o.trapBubbledEvent(e,n,r);this._localEventListeners=i(this._localEventListeners,s)},componentWillUnmount:function(){this._localEventListeners&&s(this._localEventListeners,r)}};e.exports=u}).call(t,n(1))},function(e,t,n){"use strict";var r=n(133),o=n(17),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};e.exports=i},function(e,t,n){(function(t){"use strict";var r=n(2),o=!1,i={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){"production"!==t.env.NODE_ENV?r(!o,"ReactCompositeComponent: injectEnvironment() can only be called once."):r(!o),i.unmountIDFromEnvironment=e.unmountIDFromEnvironment,i.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=i}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(5),o=n(53),i=n(9),s=!1,a={current:o,withContext:function(e,n){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?i(s,"withContext is deprecated and will be removed in a future version. Use a wrapper component with getChildContext instead."):null,s=!0);var o,u=a.current;a.current=r({},u,e);try{o=n()}finally{a.current=u}return o}};e.exports=a}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){e&&(null!=e.dangerouslySetInnerHTML&&("production"!==t.env.NODE_ENV?y(null==e.children,"Can only set one of `children` or `props.dangerouslySetInnerHTML`."):y(null==e.children),"production"!==t.env.NODE_ENV?y("object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML,"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information."):y("object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML)),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?w(null==e.innerHTML,"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."):null,"production"!==t.env.NODE_ENV?w(!e.contentEditable||null==e.children,"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."):null),"production"!==t.env.NODE_ENV?y(null==e.style||"object"==typeof e.style,"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."):y(null==e.style||"object"==typeof e.style))}function o(e,n,r,o){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?w("onScroll"!==n||g("scroll",!0),"This browser doesn't support the `onScroll` event"):null);var i=h.findReactContainerForID(e);if(i){var s=i.nodeType===S?i.ownerDocument:i;T(n,s)}o.getPutListenerQueue().enqueuePutListener(e,n,r)}function i(e){k.call(P,e)||("production"!==t.env.NODE_ENV?y(D.test(e),"Invalid tag: %s",e):y(D.test(e)),P[e]=!0)}function s(e){i(e),this._tag=e,this._renderedChildren=null,this._previousStyleCopy=null,this._rootNodeID=null}var a=n(128),u=n(30),c=n(51),l=n(34),p=n(80),h=n(17),d=n(266),f=n(27),m=n(5),v=n(70),y=n(2),g=n(94),b=n(21),w=n(9),E=l.deleteListener,T=l.listenTo,x=l.registrationNameModules,C={string:!0,number:!0},_=b({style:null}),S=1,N=null,O={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},D=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,P={},k={}.hasOwnProperty;s.displayName="ReactDOMComponent",s.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e,r(this._currentElement.props);var o=O[this._tag]?"":"";return this._createOpenTagMarkupAndPutListeners(t)+this._createContentMarkup(t,n)+o},_createOpenTagMarkupAndPutListeners:function(e){var t=this._currentElement.props,n="<"+this._tag;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(null!=i)if(x.hasOwnProperty(r))o(this._rootNodeID,r,i,e);else{r===_&&(i&&(i=this._previousStyleCopy=m({},t.style)),i=a.createMarkupForStyles(i));var s=c.createMarkupForProperty(r,i);s&&(n+=" "+s)}}if(e.renderToStaticMarkup)return n+">";var u=c.createMarkupForID(this._rootNodeID);return n+" "+u+">"},_createContentMarkup:function(e,t){var n="";("listing"===this._tag||"pre"===this._tag||"textarea"===this._tag)&&(n="\n");var r=this._currentElement.props,o=r.dangerouslySetInnerHTML;if(null!=o){if(null!=o.__html)return n+o.__html}else{var i=C[typeof r.children]?r.children:null,s=null!=i?null:r.children;if(null!=i)return n+v(i);if(null!=s){var a=this.mountChildren(s,e,t);return n+a.join("")}}return n},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,o){r(this._currentElement.props),this._updateDOMProperties(t.props,e),this._updateDOMChildren(t.props,e,o)},_updateDOMProperties:function(e,t){var n,r,i,s=this._currentElement.props;for(n in e)if(!s.hasOwnProperty(n)&&e.hasOwnProperty(n))if(n===_){var a=this._previousStyleCopy;for(r in a)a.hasOwnProperty(r)&&(i=i||{},i[r]="");this._previousStyleCopy=null}else x.hasOwnProperty(n)?E(this._rootNodeID,n):(u.isStandardName[n]||u.isCustomAttribute(n))&&N.deletePropertyByID(this._rootNodeID,n);for(n in s){var c=s[n],l=n===_?this._previousStyleCopy:e[n];if(s.hasOwnProperty(n)&&c!==l)if(n===_)if(c?c=this._previousStyleCopy=m({},c):this._previousStyleCopy=null,l){for(r in l)!l.hasOwnProperty(r)||c&&c.hasOwnProperty(r)||(i=i||{},i[r]="");for(r in c)c.hasOwnProperty(r)&&l[r]!==c[r]&&(i=i||{},i[r]=c[r])}else i=c;else x.hasOwnProperty(n)?o(this._rootNodeID,n,c,t):(u.isStandardName[n]||u.isCustomAttribute(n))&&N.updatePropertyByID(this._rootNodeID,n,c); +}i&&N.updateStylesByID(this._rootNodeID,i)},_updateDOMChildren:function(e,t,n){var r=this._currentElement.props,o=C[typeof e.children]?e.children:null,i=C[typeof r.children]?r.children:null,s=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,a=r.dangerouslySetInnerHTML&&r.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,c=null!=i?null:r.children,l=null!=o||null!=s,p=null!=i||null!=a;null!=u&&null==c?this.updateChildren(null,t,n):l&&!p&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=a?s!==a&&N.updateInnerHTMLByID(this._rootNodeID,a):null!=c&&this.updateChildren(c,t,n)},unmountComponent:function(){this.unmountChildren(),l.deleteAllListeners(this._rootNodeID),p.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null}},f.measureMethods(s,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),m(s.prototype,s.Mixin,d.Mixin),s.injection={injectIDOperations:function(e){s.BackendIDOperations=N=e}},e.exports=s}).call(t,n(1))},function(e,t){"use strict";var n={currentlyMountingInstance:null,currentlyUnmountingInstance:null};e.exports=n},function(e,t,n){"use strict";var r=n(54),o=r({prop:null,context:null,childContext:null});e.exports=o},function(e,t,n){(function(t){"use strict";function r(e){e!==i.currentlyMountingInstance&&c.enqueueUpdate(e)}function o(e,n){"production"!==t.env.NODE_ENV?p(null==s.current,"%s(...): Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.",n):p(null==s.current);var r=u.get(e);return r?r===i.currentlyUnmountingInstance?null:r:("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?h(!n,"%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,n):null),null)}var i=n(84),s=n(25),a=n(8),u=n(36),c=n(16),l=n(5),p=n(2),h=n(9),d={enqueueCallback:function(e,n){"production"!==t.env.NODE_ENV?p("function"==typeof n,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):p("function"==typeof n);var s=o(e);return s&&s!==i.currentlyMountingInstance?(s._pendingCallbacks?s._pendingCallbacks.push(n):s._pendingCallbacks=[n],void r(s)):null},enqueueCallbackInternal:function(e,n){"production"!==t.env.NODE_ENV?p("function"==typeof n,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):p("function"==typeof n),e._pendingCallbacks?e._pendingCallbacks.push(n):e._pendingCallbacks=[n],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(t),r(n)}},enqueueSetProps:function(e,n){var i=o(e,"setProps");if(i){"production"!==t.env.NODE_ENV?p(i._isTopLevel,"setProps(...): You called `setProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):p(i._isTopLevel);var s=i._pendingElement||i._currentElement,u=l({},s.props,n);i._pendingElement=a.cloneAndReplaceProps(s,u),r(i)}},enqueueReplaceProps:function(e,n){var i=o(e,"replaceProps");if(i){"production"!==t.env.NODE_ENV?p(i._isTopLevel,"replaceProps(...): You called `replaceProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):p(i._isTopLevel);var s=i._pendingElement||i._currentElement;i._pendingElement=a.cloneAndReplaceProps(s,n),r(i)}},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)}};e.exports=d}).call(t,n(1))},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,n){if("production"!==t.env.NODE_ENV?o(null!=n,"accumulateInto(...): Accumulated items must not be null or undefined."):o(null!=n),null==e)return n;var r=Array.isArray(e),i=Array.isArray(n);return r&&i?(e.push.apply(e,n),e):r?(e.push(n),e):i?[e].concat(n):[e,n]}var o=n(2);e.exports=r}).call(t,n(1))},function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.exports=n},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return r?!!n[r]:!1}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e,n){var o;if((null===e||e===!1)&&(e=s.emptyElement),"object"==typeof e){var i=e;"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?l(i&&("function"==typeof i.type||"string"==typeof i.type),"Only functions or strings can be mounted as React components."):null),o=n===i.type&&"string"==typeof i.type?a.createInternalComponent(i):r(i.type)?new i.type(i):new p}else"string"==typeof e||"number"==typeof e?o=a.createInstanceForText(e):"production"!==t.env.NODE_ENV?c(!1,"Encountered invalid React node of type %s",typeof e):c(!1);return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?l("function"==typeof o.construct&&"function"==typeof o.mountComponent&&"function"==typeof o.receiveComponent&&"function"==typeof o.unmountComponent,"Only React Components can be mounted."):null),o.construct(e),o._mountIndex=0,o._mountImage=null,"production"!==t.env.NODE_ENV&&(o._isOwnerNecessary=!1,o._warnedAboutRefsInRender=!1),"production"!==t.env.NODE_ENV&&Object.preventExtensions&&Object.preventExtensions(o),o}var i=n(132),s=n(65),a=n(66),u=n(5),c=n(2),l=n(9),p=function(){};u(p.prototype,i.Mixin,{_instantiateReactComponent:o}),e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, @@ -21,22 +21,22 @@ * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */ -function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var s=document.createElement("div");s.setAttribute(n,"return;"),r="function"==typeof s[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(12);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){"use strict";var r=n(12),o=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(s=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var a=document.createElement("div");a.innerHTML=" ",""===a.innerHTML&&(s=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&i.test(t)){e.innerHTML="\ufeff"+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}e.exports=s},function(e,t,n){(function(t){"use strict";function r(e,n){if(null!=e&&null!=n){var r=typeof e,i=typeof n;if("string"===r||"number"===r)return"string"===i||"number"===i;if("object"===i&&e.type===n.type&&e.key===n.key){var s=e._owner===n._owner,a=null,u=null,c=null;return"production"!==t.env.NODE_ENV&&(s||(null!=e._owner&&null!=e._owner.getPublicInstance()&&null!=e._owner.getPublicInstance().constructor&&(a=e._owner.getPublicInstance().constructor.displayName),null!=n._owner&&null!=n._owner.getPublicInstance()&&null!=n._owner.getPublicInstance().constructor&&(u=n._owner.getPublicInstance().constructor.displayName),null!=n.type&&null!=n.type.displayName&&(c=n.type.displayName),null!=n.type&&"string"==typeof n.type&&(c=n.type),("string"!=typeof n.type||"input"===n.type||"textarea"===n.type)&&(null!=e._owner&&e._owner._isOwnerNecessary===!1||null!=n._owner&&n._owner._isOwnerNecessary===!1)&&(null!=e._owner&&(e._owner._isOwnerNecessary=!0),null!=n._owner&&(n._owner._isOwnerNecessary=!0),"production"!==t.env.NODE_ENV?o(!1,"<%s /> is being rendered by both %s and %s using the same key (%s) in the same place. Currently, this means that they don't preserve state. This behavior should be very rare so we're considering deprecating it. Please contact the React team and explain your use case so that we can take that into consideration.",c||"Unknown Component",a||"[Unknown]",u||"[Unknown]",e.key):null))),s}}return!1}var o=n(9);e.exports=r}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s={contextTypes:{d2:i["default"].PropTypes.object.isRequired},getTranslation:function(e){return this.context.d2.i18n.getTranslation(e)}};t["default"]=s,e.exports=t["default"]},57,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(72),i=r(o),s=void 0;try{s=window.jQuery}catch(a){i["default"].getLogger().error("JQuery not found"),s={}}t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){var n=t.collection?t.collectionName:t.name,r={configurable:!1,enumerable:!0,get:function(){return this.dataValues[n]}};t.writable&&(r.set=function(e){(!h.isObject(e)&&e!==this.dataValues[n]||h.isObject(e))&&(this.dirty=!0,this[T.DIRTY_PROPERTY_LIST].add(n),this.dataValues[n]=e)}),n&&(e[n]=r)}function a(e){var t={},n=d.curry(s,t);return(e||[]).forEach(n),t}function u(e,t){function n(e){return e.href?e.href.split("/").pop():void 0}var r=t.collection?t.collectionName:t.name,o={persisted:t.persisted,type:b["default"].typeLookup(t.propertyType),required:t.required,min:t.min,max:t.max,owner:t.owner,unique:t.unique,writable:t.writable,constants:t.constants};("REFERENCE"===o.type||"COLLECTION"===o.type&&"REFERENCE"===t.itemPropertyType)&&(o.referenceType=n(t)),r&&(e[r]=o)}function c(e){var t={},n=d.curry(u,t);return(e||[]).forEach(n),t}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e,t,n){for(var r=!0;r;){var o=e,i=t,s=n;a=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var a=Object.getOwnPropertyDescriptor(o,i);if(void 0!==a){if("value"in a)return a.value;var u=a.get;return void 0===u?void 0:u.call(s)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=i,n=s,r=!0}},p=function(){function e(e,t){for(var n=0;n=0&&void 0!==e.dataValues[r]&&null!==e.dataValues[r]&&(t[r]=e.dataValues[r])}),t}},{key:"getOwnedPropertyNames",value:function(){var e=this;return Object.keys(this.modelValidations).filter(function(t){return e.modelValidations[t].owner})}},{key:"delete",value:function(e){return this.api["delete"](e.dataValues.href)}}],[{key:"createFromSchema",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],r=void 0;return h.checkType(t,Object,"Schema"),r="function"==typeof e.specialClasses[t.name]?e.specialClasses[t.name]:e,Object.freeze(new r(t.name,t.plural,t,Object.freeze(a(t.properties)),Object.freeze(c(t.properties)),n.reduce(function(e,t){return e[t.name]=t,e},{}),t.authorities))}}]),e}(),C=function(e){function t(){i(this,t),l(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return o(t,e),p(t,[{key:"get",value:function(e){var n=arguments.length<=1||void 0===arguments[1]?{fields:":all,userCredentials[:owner]"}:arguments[1];return l(Object.getPrototypeOf(t.prototype),"get",this).call(this,e,n)}}]),t}(x);x.specialClasses={user:C},t["default"]=x,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return T.test(e)}function s(e,t){return v.isNumeric(t)?e>=t:!0}function a(e,t){return v.isNumeric(t)?t>=e:!0}function u(e,t){return v.isInteger(t)?Boolean(e&&v.isInteger(e.length)&&e.length>=t):!0}function c(e,t){return v.isInteger(t)?Boolean(e&&v.isInteger(e.length)&&e.length<=t):!0}function l(e,t){var n={status:!0,messages:[]};return(v.isArray(e)||v.isString(e))&&(u(e,t.min)||(n.status=!1,n.messages.push({message:["Value needs to be longer than or equal to",t.min].join(" "),value:e})),c(e,t.max)||(n.status=!1,n.messages.push({message:["Value needs to be shorter than or equal to",t.max].join(" "),value:e}))),n}function p(e,t,n){return n&&v.isArray(x[n])?void(e.status=x[n].reduce(function(n,r){return r.validator.apply(null,[t])?n:(e.messages.push({message:r.message,value:t}),!1)},!0)):e}function h(e,t){switch(t){case"INTEGER":return v.isInteger(e);case"NUMBER":return v.isNumeric(e);case"COLLECTION":return v.isArray(e);case"PHONENUMBER":case"EMAIL":case"URL":case"COLOR":case"PASSWORD":case"IDENTIFIER":case"TEXT":return v.isString(e);case"COMPLEX":return v.isObject(e);case"DATE":case"REFERENCE":case"BOOLEAN":case"CONSTANT":return!0;default:E.log("No type validator found for",t)}return!1}function d(e,t){var n={status:!0,messages:[]};return v.isNumeric(e)&&(s(e,t.min)||(n.status=!1,n.messages.push({message:["Value needs to be larger than or equal to",t.min].join(" "),value:e})),a(e,t.max)||(n.status=!1,n.messages.push({message:["Value needs to be smaller than or equal to",t.max].join(" "),value:e}))),n}function f(e,t,n){var r=d(t,n);r.status||(e.status=!1,e.messages=e.messages.concat(r.messages));var o=l(t,n);return o.status||(e.status=!1,e.messages=e.messages.concat(o.messages)),e}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function e(e,t){for(var n=0;nr;r++)n[r]=arguments[r];return u["default"].info("Firing action: "+t.id.toString()),s.Observable.fromPromise(new Promise(function(e,r){t.onNext({data:1===n.length?n[0]:[].concat(n),complete:function(){e.apply(void 0,arguments),u["default"].info("Completed action: "+t.id.toString())},error:function(){r.apply(void 0,arguments),u["default"].warn("Errored action: "+t.id.toString())}})}))},s.Observable.prototype,s.Subject.prototype);return Object.defineProperty(t,"id",{value:Symbol(e)}),s.Subject.call(t),t},createActionsFromNames:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],n=arguments.length<=1||void 0===arguments[1]?void 0:arguments[1],r={},o=n;return o=n&&i["default"](n)?n+".":"",t.forEach(function(t){r[t]=e.create(o+t)}),r}};t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(57),i=r(o),s=n(110),a=r(s),u=r(s);t["default"]={log:i["default"],Action:a["default"],Store:u["default"]},e.exports=t["default"]},function(e,t,n){var r;(function(e,o,i){(function(s){function a(e){for(var t=[],n=0,r=e.length;r>n;n++)t.push(e[n]);return t}function u(){try{return De.apply(this,arguments)}catch(e){return Ge.e=e,Ge}}function c(e){if(!He(e))throw new TypeError("fn must be a function");return De=e,u}function l(e){throw e}function p(e,t){if(Ye&&t.stack&&"object"==typeof e&&null!==e&&e.stack&&-1===e.stack.indexOf(Je)){for(var n=[],r=t;r;r=r.source)r.stack&&n.unshift(r.stack);n.unshift(e.stack);var o=n.join("\n"+Je+"\n");e.stack=h(o)}}function h(e){for(var t=e.split("\n"),n=[],r=0,o=t.length;o>r;r++){var i=t[r];d(i)||f(i)||!i||n.push(i)}return n.join("\n")}function d(e){var t=v(e);if(!t)return!1;var n=t[0],r=t[1];return n===Xe&&r>=$e&&ro>=r}function f(e){return-1!==e.indexOf("(module.js:")||-1!==e.indexOf("(node.js:")}function m(){if(Ye)try{throw new Error}catch(e){var t=e.stack.split("\n"),n=t[0].indexOf("@")>0?t[1]:t[2],r=v(n);if(!r)return;return Xe=r[0],r[1]}}function v(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(e);return r?[r[1],Number(r[2])]:void 0}function y(e){var t=[];if(!Rt(e))return t;At.nonEnumArgs&&e.length&&It(e)&&(e=Lt.call(e));var n=At.enumPrototypes&&"function"==typeof e,r=At.enumErrorProps&&(e===Nt||e instanceof Error);for(var o in e)n&&"prototype"==o||r&&("message"==o||"name"==o)||t.push(o);if(At.nonEnumShadows&&e!==Ot){var i=e.constructor,s=-1,a=dt;if(e===(i&&i.prototype))var u=e===Dt?xt:e===Nt?gt:Ct.call(e),c=Mt[u];for(;++s-1:void 0});return n.pop(),r.pop(),d}function T(e,t){for(var n=new Array(e),r=0;e>r;r++)n[r]=t();return n}function x(e,t){this.id=e,this.value=t}function C(e,t){this.scheduler=e,this.disposable=t,this.isDisposed=!1}function _(e,t){t.isDisposed||(t.isDisposed=!0,t.disposable.dispose())}function S(e){this._s=e}function N(e){this._s=e,this._l=e.length,this._i=0}function O(e){this._a=e}function D(e){this._a=e,this._l=A(e),this._i=0}function P(e){return"number"==typeof e&&Le.isFinite(e)}function k(e){var t,n=e[st];if(!n&&"string"==typeof e)return t=new S(e),t[st]();if(!n&&e.length!==s)return t=new O(e),t[st]();if(!n)throw new TypeError("Object is not iterable");return e[st]()}function M(e){var t=+e;return 0===t?t:isNaN(t)?t:0>t?-1:1}function A(e){var t=+e.length;return isNaN(t)?0:0!==t&&P(t)?(t=M(t)*Math.floor(Math.abs(t)),0>=t?0:t>Kn?Kn:t):t}function R(e,t){this.observer=e,this.parent=t}function I(e,t){return nn(e)||(e=un),new Gn(t,e)}function j(e,t){this.observer=e,this.parent=t}function L(e,t){this.observer=e,this.parent=t}function F(e,t){return e.amb(t)}function U(e,t){return new $r(function(n){var r=new Xt,o=new $t;return o.setDisposable(r),r.setDisposable(e.subscribe(new ir(n,o,t))),o},e)}function W(){return!1}function V(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function W(){return!1}function W(){return!1}function B(){return[]}function V(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function W(){return!1}function B(){return[]}function V(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function q(e){return function(t){return e.subscribe(t)}}function z(e){return e.toArray()}function K(e){return e.length>0}function H(e,t){this.o=e,this.accumulator=t.accumulator,this.hasSeed=t.hasSeed,this.seed=t.seed,this.hasAccumulation=!1,this.accumulation=null,this.hasValue=!1,this.isStopped=!1}function G(e,t,n){var r=pt(t,n,3);return e.map(function(t,n){var o=r(t,n,e);return Ke(o)&&(o=Ln(o)),(ct(o)||ut(o))&&(o=Hn(o)),o}).concatAll()}function Y(e,t,n){for(var r=0,o=e.length;o>r;r++)if(n(e[r],t))return r;return-1}function Q(e){this.comparer=e,this.set=[]}function X(e,t){return function(n){for(var r=n,o=0;t>o;o++){var i=r[e[o]];if("undefined"==typeof i)return s;r=i}return r}}function $(e,t,n){return new $r(function(r){var o=!1,i=null,s=[];return e.subscribe(function(e){var a,u;try{u=t(e)}catch(c){return void r.onError(c)}if(a=0,o)try{a=n(u,i)}catch(l){return void r.onError(l)}else o=!0,i=u;a>0&&(i=u,s=[]),a>=0&&s.push(e)},function(e){r.onError(e)},function(){r.onNext(s),r.onCompleted()})},e)}function J(e){if(0===e.length)throw new Ze;return e[0]}function Z(e,t,n,r){var o=pt(t,n,3);return new $r(function(t){var n=0;return e.subscribe(function(i){var s;try{s=o(i,n,e)}catch(a){return void t.onError(a)}s?(t.onNext(r?n:i),t.onCompleted()):n++},function(e){t.onError(e)},function(){t.onNext(r?-1:s),t.onCompleted()})},e)}function ee(e){return e?Sn.isObservable(e)?e:Ke(e)?Sn.fromPromise(e):ie(e)||oe(e)?Mr.call(this,e):He(e)?re.call(this,e):ct(e)||ut(e)?te.call(this,e):Rt(e)?ne.call(this,e):e:e}function te(e){return Sn.from(e).flatMap(ee).toArray()}function ne(e){function t(e,t){n[t]=s,o.push(e.map(function(e){n[t]=e}))}for(var n=new e.constructor,r=Object.keys(e),o=[],i=0,a=r.length;a>i;i++){var u=r[i],c=ee.call(this,e[u]);c&&Sn.isObservable(c)?t(c,u):n[u]=e[u]}return Sn.forkJoin.apply(Sn,o).map(function(){return n})}function re(e){var t=this;return new $r(function(n){e.call(t,function(){var e=arguments[0],t=arguments[1];if(e)return n.onError(e);if(arguments.length>2){for(var r=[],o=1,i=arguments.length;i>o;o++)r.push(arguments[o]);t=r}n.onNext(t),n.onCompleted()})})}function oe(e){return He(e.next)&&He(e["throw"])}function ie(e){var t=e.constructor;return t?"GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName?!0:oe(t.prototype):!1}function se(e,t,n,r){var o=new to;return r.push(ae(o,t,n)),e.apply(t,r),o.asObservable()}function ae(e,t,n){return function(){for(var r=arguments.length,o=new Array(r),i=0;r>i;i++)o[i]=arguments[i];if(He(n)){if(o=c(n).apply(t,o),o===Ge)return e.onError(o.e);e.onNext(o)}else o.length<=1?e.onNext(o[0]):e.onNext(o);e.onCompleted()}}function ue(e,t,n,r){var o=new to;return r.push(ce(o,t,n)),e.apply(t,r),o.asObservable()}function ce(e,t,n){return function(){var r=arguments[0];if(r)return e.onError(r);for(var o=arguments.length,i=[],s=1;o>s;s++)i[s-1]=arguments[s];if(He(n)){var i=c(n).apply(t,i);if(i===Ge)return e.onError(i.e);e.onNext(i)}else i.length<=1?e.onNext(i[0]):e.onNext(i);e.onCompleted()}}function le(e,t,n){this._e=e,this._n=t,this._fn=n,this._e.addEventListener(this._n,this._fn,!1),this.isDisposed=!1}function pe(e,t,n){var r=new qt,o=Object.prototype.toString.call(e);if("[object NodeList]"===o||"[object HTMLCollection]"===o)for(var i=0,s=e.length;s>i;i++)r.add(pe(e.item(i),t,n));else e&&r.add(new le(e,t,n));return r}function he(e,t){return function(){var n=arguments[0];return He(t)&&(n=c(t).apply(null,arguments),n===Ge)?e.onError(n.e):void e.onNext(n)}}function de(e,t,n){return new $r(function(r){function o(e,t){if(l[t]=e,s[t]=!0,a||(a=s.every(We))){if(i)return r.onError(i);var o=c(n).apply(null,l);if(o===Ge)return r.onError(o.e);r.onNext(o)}u&&l[1]&&r.onCompleted()}var i,s=[!1,!1],a=!1,u=!1,l=new Array(2);return new qt(e.subscribe(function(e){o(e,0)},function(e){l[1]?r.onError(e):i=e},function(){u=!0,l[1]&&r.onCompleted()}),t.subscribe(function(e){o(e,1)},function(e){r.onError(e)},function(){u=!0,o(!0,1)}))},e)}function z(e){return e.toArray()}function fe(e,t){return e.groupJoin(this,t,Bn,function(e,t){return t})}function me(e){var t=this;return new $r(function(n){var r=new eo,o=new qt,i=new Jt(o);return n.onNext(Wt(r,i)),o.add(t.subscribe(function(e){r.onNext(e)},function(e){r.onError(e),n.onError(e)},function(){r.onCompleted(),n.onCompleted()})),Ke(e)&&(e=Ln(e)),o.add(e.subscribe(function(e){r.onCompleted(),r=new eo,n.onNext(Wt(r,i))},function(e){r.onError(e),n.onError(e)},function(){r.onCompleted(),n.onCompleted()})),i},t)}function ve(e){var t=this;return new $r(function(n){function r(){var t;try{t=e()}catch(i){return void n.onError(i)}Ke(t)&&(t=Ln(t));var u=new Xt;o.setDisposable(u),u.setDisposable(t.take(1).subscribe(Ue,function(e){a.onError(e),n.onError(e)},function(){a.onCompleted(),a=new eo,n.onNext(Wt(a,s)),r()}))}var o=new $t,i=new qt(o),s=new Jt(i),a=new eo;return n.onNext(Wt(a,s)),i.add(t.subscribe(function(e){a.onNext(e)},function(e){a.onError(e),n.onError(e)},function(){a.onCompleted(),n.onCompleted()})),r(),s},t)}function ye(e,t){return new Kr(e,t)}function ge(e){this.patterns=e}function be(e,t){this.expression=e,this.selector=t}function we(e,t,n){var r=e.get(t);if(!r){var o=new Qr(t,n);return e.set(t,o),o}return r}function Ee(e,t,n){this.joinObserverArray=e,this.onNext=t,this.onCompleted=n,this.joinObservers=new Yr;for(var r=0,o=this.joinObserverArray.length;o>r;r++){var i=this.joinObserverArray[r];this.joinObservers.set(i,i)}}function Te(e,t){return new $r(function(n){return t.scheduleWithAbsolute(e,function(){n.onNext(0),n.onCompleted()})})}function xe(e,t,n){return new $r(function(r){var o=e,i=tn(t);return n.scheduleRecursiveWithAbsoluteAndState(0,o,function(e,t){if(i>0){var s=n.now();o+=i,s>=o&&(o=s+i)}r.onNext(e),t(e+1,o)})})}function Ce(e,t){return new $r(function(n){return t.scheduleWithRelative(tn(e),function(){n.onNext(0),n.onCompleted()})})}function _e(e,t,n){return e===t?new $r(function(e){return n.schedulePeriodicWithState(0,t,function(t){return e.onNext(t),t+1})}):Un(function(){return xe(n.now()+e,t,n)})}function Se(e,t,n){return new $r(function(r){var o,i=!1,s=new $t,a=null,u=[],c=!1;return o=e.materialize().timestamp(n).subscribe(function(e){var o,l;"E"===e.value.kind?(u=[],u.push(e),a=e.value.exception,l=!c):(u.push({value:e.value,timestamp:e.timestamp+t}),l=!i,i=!0),l&&(null!==a?r.onError(a):(o=new Xt,s.setDisposable(o),o.setDisposable(n.scheduleRecursiveWithRelative(t,function(e){var t,o,s,l;if(null===a){c=!0;do s=null,u.length>0&&u[0].timestamp-n.now()<=0&&(s=u.shift().value),null!==s&&s.accept(r);while(null!==s);l=!1,o=0,u.length>0?(l=!0,o=Math.max(0,u[0].timestamp-n.now())):i=!1,t=a,c=!1,null!==t?r.onError(t):l&&e(o)}}))))}),new qt(o,s)},e)}function Ne(e,t,n){return Un(function(){return Se(e,t-n.now(),n)})}function z(e){return e.toArray()}function z(e){return e.toArray()}function Oe(e,t){return new $r(function(n){function r(){s&&(s=!1,n.onNext(o)),i&&n.onCompleted()}var o,i=!1,s=!1,a=new Xt;return a.setDisposable(e.subscribe(function(e){s=!0,o=e},function(e){n.onError(e)},function(){i=!0,a.dispose()})),new qt(a,t.subscribe(r,function(e){n.onError(e)},r))},e)}var De,Pe={"function":!0,object:!0},ke=Pe[typeof t]&&t&&!t.nodeType&&t,Me=Pe[typeof self]&&self.Object&&self,Ae=Pe[typeof window]&&window&&window.Object&&window,Re=Pe[typeof e]&&e&&!e.nodeType&&e,Ie=Re&&Re.exports===ke&&ke,je=ke&&Re&&"object"==typeof o&&o&&o.Object&&o,Le=Le=je||Ae!==(this&&this.window)&&Ae||Me||this,Fe={internals:{},config:{Promise:Le.Promise},helpers:{}},Ue=Fe.helpers.noop=function(){},We=Fe.helpers.identity=function(e){return e},Ve=Fe.helpers.defaultNow=Date.now,Be=Fe.helpers.defaultComparer=function(e,t){return jt(e,t)},qe=Fe.helpers.defaultSubComparer=function(e,t){return e>t?1:t>e?-1:0},ze=(Fe.helpers.defaultKeySerializer=function(e){return e.toString()},Fe.helpers.defaultError=function(e){throw e}),Ke=Fe.helpers.isPromise=function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then},He=Fe.helpers.isFunction=function(){var e=function(e){return"function"==typeof e||!1};return e(/x/)&&(e=function(e){return"function"==typeof e&&"[object Function]"==Ct.call(e)}),e}(),Ge={e:{}};Fe.config.longStackSupport=!1;var Ye=!1,Qe=c(function(){throw new Error})();Ye=!!Qe.e&&!!Qe.e.stack;var Xe,$e=m(),Je="From previous event:",Ze=Fe.EmptyError=function(){this.message="Sequence contains no elements.",this.name="EmptyError",Error.call(this)};Ze.prototype=Error.prototype;var et=Fe.ObjectDisposedError=function(){this.message="Object has been disposed",this.name="ObjectDisposedError",Error.call(this)};et.prototype=Error.prototype;var tt=Fe.ArgumentOutOfRangeError=function(){this.message="Argument out of range",this.name="ArgumentOutOfRangeError",Error.call(this)};tt.prototype=Error.prototype;var nt=Fe.NotSupportedError=function(e){this.message=e||"This operation is not supported",this.name="NotSupportedError",Error.call(this)};nt.prototype=Error.prototype;var rt=Fe.NotImplementedError=function(e){this.message=e||"This operation is not implemented",this.name="NotImplementedError",Error.call(this)};rt.prototype=Error.prototype;var ot=Fe.helpers.notImplemented=function(){throw new rt},it=Fe.helpers.notSupported=function(){throw new nt},st="function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_";Le.Set&&"function"==typeof(new Le.Set)["@@iterator"]&&(st="@@iterator");var at=Fe.doneEnumerator={done:!0,value:s},ut=Fe.helpers.isIterable=function(e){return e[st]!==s},ct=Fe.helpers.isArrayLike=function(e){return e&&e.length!==s};Fe.helpers.iterator=st;var lt,pt=Fe.internals.bindCallback=function(e,t,n){if("undefined"==typeof t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},ht=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dt=ht.length,ft="[object Arguments]",mt="[object Array]",vt="[object Boolean]",yt="[object Date]",gt="[object Error]",bt="[object Function]",wt="[object Number]",Et="[object Object]",Tt="[object RegExp]",xt="[object String]",Ct=Object.prototype.toString,_t=Object.prototype.hasOwnProperty,St=Ct.call(arguments)==ft,Nt=Error.prototype,Ot=Object.prototype,Dt=String.prototype,Pt=Ot.propertyIsEnumerable;try{lt=!(Ct.call(document)==Et&&!({toString:0}+""))}catch(kt){lt=!0}var Mt={};Mt[mt]=Mt[yt]=Mt[wt]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},Mt[vt]=Mt[xt]={constructor:!0,toString:!0,valueOf:!0},Mt[gt]=Mt[bt]=Mt[Tt]={constructor:!0,toString:!0},Mt[Et]={constructor:!0};var At={};!function(){var e=function(){this.x=1},t=[];e.prototype={valueOf:1,y:1};for(var n in new e)t.push(n);for(n in arguments);At.enumErrorProps=Pt.call(Nt,"message")||Pt.call(Nt,"name"),At.enumPrototypes=Pt.call(e,"prototype"),At.nonEnumArgs=0!=n,At.nonEnumShadows=!/valueOf/.test(t)}(1);var Rt=Fe.internals.isObject=function(e){var t=typeof e;return e&&("function"==t||"object"==t)||!1},It=function(e){return e&&"object"==typeof e?Ct.call(e)==ft:!1};St||(It=function(e){return e&&"object"==typeof e?_t.call(e,"callee"):!1});var jt=Fe.internals.isEqual=function(e,t){return E(e,t,[],[])},Lt=({}.hasOwnProperty,Array.prototype.slice),Ft=Fe.internals.inherits=function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n},Ut=Fe.internals.addProperties=function(e){for(var t=[],n=1,r=arguments.length;r>n;n++)t.push(arguments[n]);for(var o=0,i=t.length;i>o;o++){var s=t[o];for(var a in s)e[a]=s[a]}},Wt=Fe.internals.addRef=function(e,t){return new $r(function(n){return new qt(t.getDisposable(),e.subscribe(n))})};x.prototype.compareTo=function(e){var t=this.value.compareTo(e.value);return 0===t&&(t=this.id-e.id),t};var Vt=Fe.internals.PriorityQueue=function(e){this.items=new Array(e),this.length=0},Bt=Vt.prototype;Bt.isHigherPriority=function(e,t){return this.items[e].compareTo(this.items[t])<0},Bt.percolate=function(e){if(!(e>=this.length||0>e)){var t=e-1>>1;if(!(0>t||t===e)&&this.isHigherPriority(e,t)){var n=this.items[e];this.items[e]=this.items[t],this.items[t]=n,this.percolate(t)}}},Bt.heapify=function(e){if(+e||(e=0),!(e>=this.length||0>e)){var t=2*e+1,n=2*e+2,r=e;if(te;e++)n[e]=arguments[e];for(e=0;t>e;e++)if(!Yt(n[e]))throw new TypeError("Not a disposable");this.disposables=n,this.isDisposed=!1,this.length=n.length},zt=qt.prototype;zt.add=function(e){this.isDisposed?e.dispose():(this.disposables.push(e),this.length++)},zt.remove=function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),this.length--,e.dispose())}return t},zt.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;e>n;n++)t[n]=this.disposables[n];for(this.disposables=[],this.length=0,n=0;e>n;n++)t[n].dispose()}};var Kt=Fe.Disposable=function(e){this.isDisposed=!1,this.action=e||Ue};Kt.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)};var Ht=Kt.create=function(e){return new Kt(e)},Gt=Kt.empty={dispose:Ue},Yt=Kt.isDisposable=function(e){return e&&He(e.dispose)},Qt=Kt.checkDisposed=function(e){if(e.isDisposed)throw new et},Xt=Fe.SingleAssignmentDisposable=function(){this.isDisposed=!1,this.current=null};Xt.prototype.getDisposable=function(){return this.current},Xt.prototype.setDisposable=function(e){if(this.current)throw new Error("Disposable has already been assigned");var t=this.isDisposed;!t&&(this.current=e),t&&e&&e.dispose()},Xt.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null}e&&e.dispose()};var $t=Fe.SerialDisposable=function(){this.isDisposed=!1,this.current=null};$t.prototype.getDisposable=function(){return this.current},$t.prototype.setDisposable=function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e}n&&n.dispose(),t&&e&&e.dispose()},$t.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null}e&&e.dispose()};var Jt=Fe.RefCountDisposable=function(){function e(e){this.disposable=e,this.disposable.count++,this.isInnerDisposed=!1}function t(e){this.underlyingDisposable=e,this.isDisposed=!1,this.isPrimaryDisposed=!1,this.count=0}return e.prototype.dispose=function(){this.disposable.isDisposed||this.isInnerDisposed||(this.isInnerDisposed=!0,this.disposable.count--,0===this.disposable.count&&this.disposable.isPrimaryDisposed&&(this.disposable.isDisposed=!0,this.disposable.underlyingDisposable.dispose()))},t.prototype.dispose=function(){this.isDisposed||this.isPrimaryDisposed||(this.isPrimaryDisposed=!0,0===this.count&&(this.isDisposed=!0,this.underlyingDisposable.dispose()))},t.prototype.getDisposable=function(){return this.isDisposed?Gt:new e(this)},t}();C.prototype.dispose=function(){this.scheduler.scheduleWithState(this,_)};var Zt=Fe.internals.ScheduledItem=function(e,t,n,r,o){this.scheduler=e,this.state=t,this.action=n,this.dueTime=r,this.comparer=o||qe,this.disposable=new Xt};Zt.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},Zt.prototype.compareTo=function(e){return this.comparer(this.dueTime,e.dueTime)},Zt.prototype.isCancelled=function(){return this.disposable.isDisposed},Zt.prototype.invokeCore=function(){return this.action(this.scheduler,this.state)};var en=Fe.Scheduler=function(){function e(e,t,n,r){this.now=e,this._schedule=t,this._scheduleRelative=n,this._scheduleAbsolute=r}function t(e,t){return t(),Gt}e.isScheduler=function(t){return t instanceof e};var n=e.prototype;return n.schedule=function(e){return this._schedule(e,t)},n.scheduleWithState=function(e,t){return this._schedule(e,t)},n.scheduleWithRelative=function(e,n){return this._scheduleRelative(n,e,t)},n.scheduleWithRelativeAndState=function(e,t,n){return this._scheduleRelative(e,t,n)},n.scheduleWithAbsolute=function(e,n){return this._scheduleAbsolute(n,e,t)},n.scheduleWithAbsoluteAndState=function(e,t,n){return this._scheduleAbsolute(e,t,n)},e.now=Ve,e.normalize=function(e){return 0>e&&(e=0),e},e}(),tn=en.normalize,nn=en.isScheduler;!function(e){function t(e,t){function n(t){function r(e,t){return s?i.remove(u):a=!0,o(t,n),Gt}var s=!1,a=!1,u=e.scheduleWithState(t,r);a||(i.add(u),s=!0)}var r=t[0],o=t[1],i=new qt;return o(r,n),i}function n(e,t,n){function r(t,o){function a(e,t){return u?s.remove(l):c=!0,i(t,r),Gt}var u=!1,c=!1,l=e[n](t,o,a);c||(s.add(l),u=!0)}var o=t[0],i=t[1],s=new qt;return i(o,r),s}function r(e,t){return n(e,t,"scheduleWithRelativeAndState")}function o(e,t){return n(e,t,"scheduleWithAbsoluteAndState")}function i(e,t){e(function(n){t(e,n)})}e.scheduleRecursive=function(e){return this.scheduleRecursiveWithState(e,i)},e.scheduleRecursiveWithState=function(e,n){return this.scheduleWithState([e,n],t)},e.scheduleRecursiveWithRelative=function(e,t){return this.scheduleRecursiveWithRelativeAndState(t,e,i)},e.scheduleRecursiveWithRelativeAndState=function(e,t,n){return this._scheduleRelative([e,n],t,r)},e.scheduleRecursiveWithAbsolute=function(e,t){return this.scheduleRecursiveWithAbsoluteAndState(t,e,i)},e.scheduleRecursiveWithAbsoluteAndState=function(e,t,n){return this._scheduleAbsolute([e,n],t,o)}}(en.prototype),function(e){en.prototype.schedulePeriodic=function(e,t){return this.schedulePeriodicWithState(null,e,t)},en.prototype.schedulePeriodicWithState=function(e,t,n){if("undefined"==typeof Le.setInterval)throw new nt;t=tn(t);var r=e,o=Le.setInterval(function(){r=n(r)},t);return Ht(function(){Le.clearInterval(o)})}}(en.prototype),function(e){e.catchError=e["catch"]=function(e){return new dn(this,e)}}(en.prototype);var rn,on,sn=Fe.internals.SchedulePeriodicRecursive=function(){function e(e,t){t(0,this._period);try{this._state=this._action(this._state)}catch(n){throw this._cancel.dispose(),n}}function t(e,t,n,r){this._scheduler=e,this._state=t,this._period=n,this._action=r}return t.prototype.start=function(){var t=new Xt;return this._cancel=t,t.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0,this._period,e.bind(this))),t},t}(),an=en.immediate=function(){function e(e,t){return t(this,e)}return new en(Ve,e,it,it)}(),un=en.currentThread=function(){function e(){for(;n.length>0;){var e=n.shift();!e.isCancelled()&&e.invoke()}}function t(t,r){var o=new Zt(this,t,r,this.now());if(n)n.push(o);else{n=[o];var i=c(e)();if(n=null,i===Ge)return l(i.e)}return o.disposable}var n,r=new en(Ve,t,it,it);return r.scheduleRequired=function(){return!n},r}(),cn=function(){var e,t=Ue;if(Le.setTimeout)e=Le.setTimeout,t=Le.clearTimeout;else{if(!Le.WScript)throw new nt;e=function(e,t){Le.WScript.Sleep(t),e()}}return{setTimeout:e,clearTimeout:t}}(),ln=cn.setTimeout,pn=cn.clearTimeout;!function(){function e(t){if(s)ln(function(){e(t)},0);else{var n=o[t];if(n){s=!0;var r=c(n)();if(on(t),s=!1,r===Ge)return l(r.e)}}}function t(){if(!Le.postMessage||Le.importScripts)return!1;var e=!1,t=Le.onmessage;return Le.onmessage=function(){e=!0},Le.postMessage("","*"),Le.onmessage=t,e}function n(t){"string"==typeof t.data&&t.data.substring(0,p.length)===p&&e(t.data.substring(p.length))}var r=1,o={},s=!1;on=function(e){delete o[e]};var a=RegExp("^"+String(Ct).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),u="function"==typeof(u=je&&Ie&&je.setImmediate)&&!a.test(u)&&u;if(He(u))rn=function(t){var n=r++;return o[n]=t,u(function(){e(n)}),n};else if("undefined"!=typeof i&&"[object process]"==={}.toString.call(i))rn=function(t){var n=r++;return o[n]=t,i.nextTick(function(){e(n)}),n};else if(t()){var p="ms.rx.schedule"+Math.random();Le.addEventListener?Le.addEventListener("message",n,!1):Le.attachEvent?Le.attachEvent("onmessage",n):Le.onmessage=n,rn=function(e){var t=r++;return o[t]=e,Le.postMessage(p+currentId,"*"),t}}else if(Le.MessageChannel){var h=new Le.MessageChannel;h.port1.onmessage=function(t){e(t.data)},rn=function(e){var t=r++;return o[t]=e,h.port2.postMessage(t),t}}else rn="document"in Le&&"onreadystatechange"in Le.document.createElement("script")?function(t){var n=Le.document.createElement("script"),i=r++;return o[i]=t,n.onreadystatechange=function(){e(i),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},Le.document.documentElement.appendChild(n),i}:function(t){var n=r++;return o[n]=t,ln(function(){e(n)},0),n}}();var hn=en.timeout=en["default"]=function(){function e(e,t){var n=this,r=new Xt,o=rn(function(){!r.isDisposed&&r.setDisposable(t(n,e))});return new qt(r,Ht(function(){on(o)}))}function t(e,t,n){var r=this,o=en.normalize(t),i=new Xt;if(0===o)return r.scheduleWithState(e,n);var s=ln(function(){!i.isDisposed&&i.setDisposable(n(r,e))},o);return new qt(i,Ht(function(){pn(s)}))}function n(e,t,n){return this.scheduleWithRelativeAndState(e,t-this.now(),n)}return new en(Ve,e,t,n)}(),dn=function(e){function t(e,t){return this._scheduler.scheduleWithState(e,this._wrap(t))}function n(e,t,n){return this._scheduler.scheduleWithRelativeAndState(e,t,this._wrap(n))}function r(e,t,n){return this._scheduler.scheduleWithAbsoluteAndState(e,t,this._wrap(n))}function o(o,i){this._scheduler=o,this._handler=i,this._recursiveOriginal=null,this._recursiveWrapper=null,e.call(this,this._scheduler.now.bind(this._scheduler),t,n,r)}return Ft(o,e),o.prototype._clone=function(e){return new o(e,this._handler)},o.prototype._wrap=function(e){var t=this;return function(n,r){try{return e(t._getRecursiveWrapper(n),r)}catch(o){if(!t._handler(o))throw o;return Gt}}},o.prototype._getRecursiveWrapper=function(e){if(this._recursiveOriginal!==e){this._recursiveOriginal=e;var t=this._clone(e);t._recursiveOriginal=e,t._recursiveWrapper=t,this._recursiveWrapper=t}return this._recursiveWrapper},o.prototype.schedulePeriodicWithState=function(e,t,n){var r=this,o=!1,i=new Xt;return i.setDisposable(this._scheduler.schedulePeriodicWithState(e,t,function(e){if(o)return null;try{return n(e)}catch(t){if(o=!0,!r._handler(t))throw t;return i.dispose(),null}})),i},o}(en),fn=Fe.Notification=function(){function e(e,t,n,r,o,i){this.kind=e,this.value=t,this.exception=n,this._accept=r,this._acceptObservable=o,this.toString=i}return e.prototype.accept=function(e,t,n){return e&&"object"==typeof e?this._acceptObservable(e):this._accept(e,t,n)},e.prototype.toObservable=function(e){var t=this;return nn(e)||(e=an),new $r(function(n){return e.scheduleWithState(t,function(e,t){t._acceptObservable(n),"N"===t.kind&&n.onCompleted()})})},e}(),mn=fn.createOnNext=function(){function e(e){return e(this.value)}function t(e){return e.onNext(this.value)}function n(){return"OnNext("+this.value+")"}return function(r){return new fn("N",r,null,e,t,n)}}(),vn=fn.createOnError=function(){function e(e,t){return t(this.exception)}function t(e){return e.onError(this.exception)}function n(){return"OnError("+this.exception+")"}return function(r){return new fn("E",null,r,e,t,n)}}(),yn=fn.createOnCompleted=function(){function e(e,t,n){return n()}function t(e){return e.onCompleted()}function n(){return"OnCompleted()"}return function(){return new fn("C",null,null,e,t,n)}}(),gn=Fe.Observer=function(){};gn.prototype.toNotifier=function(){var e=this;return function(t){return t.accept(e)}},gn.prototype.asObserver=function(){var e=this;return new Tn(function(t){e.onNext(t)},function(t){e.onError(t)},function(){e.onCompleted()})},gn.prototype.checked=function(){return new xn(this)};var bn=gn.create=function(e,t,n){return e||(e=Ue),t||(t=ze),n||(n=Ue),new Tn(e,t,n)};gn.fromNotifier=function(e,t){var n=pt(e,t,1);return new Tn(function(e){return n(mn(e))},function(e){return n(vn(e))},function(){return n(yn())})},gn.prototype.notifyOn=function(e){return new _n(e,this)},gn.prototype.makeSafe=function(e){return new AnonymousSafeObserver(this._onNext,this._onError,this._onCompleted,e)};var wn,En=Fe.internals.AbstractObserver=function(e){function t(){this.isStopped=!1}return Ft(t,e),t.prototype.next=ot,t.prototype.error=ot,t.prototype.completed=ot,t.prototype.onNext=function(e){!this.isStopped&&this.next(e)},t.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.error(e))},t.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.completed())},t.prototype.dispose=function(){this.isStopped=!0},t.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.error(e),!0)},t}(gn),Tn=Fe.AnonymousObserver=function(e){function t(t,n,r){e.call(this),this._onNext=t,this._onError=n,this._onCompleted=r}return Ft(t,e),t.prototype.next=function(e){this._onNext(e)},t.prototype.error=function(e){this._onError(e)},t.prototype.completed=function(){this._onCompleted()},t}(En),xn=function(e){function t(t){e.call(this),this._observer=t,this._state=0}Ft(t,e);var n=t.prototype;return n.onNext=function(e){this.checkAccess();var t=c(this._observer.onNext).call(this._observer,e);this._state=0,t===Ge&&l(t.e)},n.onError=function(e){this.checkAccess();var t=c(this._observer.onError).call(this._observer,e);this._state=2,t===Ge&&l(t.e)},n.onCompleted=function(){this.checkAccess();var e=c(this._observer.onCompleted).call(this._observer);this._state=2,e===Ge&&l(e.e)},n.checkAccess=function(){if(1===this._state)throw new Error("Re-entrancy detected");if(2===this._state)throw new Error("Observer completed");0===this._state&&(this._state=1)},t}(gn),Cn=Fe.internals.ScheduledObserver=function(e){function t(t,n){e.call(this),this.scheduler=t,this.observer=n,this.isAcquired=!1,this.hasFaulted=!1,this.queue=[],this.disposable=new $t}return Ft(t,e),t.prototype.next=function(e){var t=this;this.queue.push(function(){t.observer.onNext(e)})},t.prototype.error=function(e){var t=this;this.queue.push(function(){t.observer.onError(e)})},t.prototype.completed=function(){var e=this;this.queue.push(function(){e.observer.onCompleted()})},t.prototype.ensureActive=function(){var e=!1;!this.hasFaulted&&this.queue.length>0&&(e=!this.isAcquired,this.isAcquired=!0),e&&this.disposable.setDisposable(this.scheduler.scheduleRecursiveWithState(this,function(e,t){var n;if(!(e.queue.length>0))return void(e.isAcquired=!1);n=e.queue.shift();var r=c(n)();return r===Ge?(e.queue=[],e.hasFaulted=!0,l(r.e)):void t(e)}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.disposable.dispose()},t}(En),_n=function(e){function t(t,n,r){e.call(this,t,n),this._cancel=r}return Ft(t,e),t.prototype.next=function(t){e.prototype.next.call(this,t),this.ensureActive()},t.prototype.error=function(t){e.prototype.error.call(this,t),this.ensureActive()},t.prototype.completed=function(){e.prototype.completed.call(this),this.ensureActive()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._cancel&&this._cancel.dispose(),this._cancel=null},t}(Cn),Sn=Fe.Observable=function(){function e(e,t){return function(n){var r=n.onError;return n.onError=function(t){p(t,e),r.call(n,t)},t.call(e,n)}}function t(t){if(Fe.config.longStackSupport&&Ye){var n=c(l)(new Error).e;this.stack=n.stack.substring(n.stack.indexOf("\n")+1),this._subscribe=e(this,t)}else this._subscribe=t}return wn=t.prototype,t.isObservable=function(e){return e&&He(e.subscribe)},wn.subscribe=wn.forEach=function(e,t,n){return this._subscribe("object"==typeof e?e:bn(e,t,n))},wn.subscribeOnNext=function(e,t){return this._subscribe(bn("undefined"!=typeof t?function(n){e.call(t,n)}:e))},wn.subscribeOnError=function(e,t){return this._subscribe(bn(null,"undefined"!=typeof t?function(n){e.call(t,n)}:e))},wn.subscribeOnCompleted=function(e,t){return this._subscribe(bn(null,null,"undefined"!=typeof t?function(){e.call(t)}:e))},t}(),Nn=Fe.ObservableBase=function(e){function t(e){return e&&He(e.dispose)?e:He(e)?Ht(e):Gt}function n(e,n){var r=n[0],o=n[1],i=c(o.subscribeCore).call(o,r);return i!==Ge||r.fail(Ge.e)?void r.setDisposable(t(i)):l(Ge.e)}function r(e){var t=new Jr(e),r=[t,this];return un.scheduleRequired()?un.scheduleWithState(r,n):n(null,r),t}function o(){e.call(this,r)}return Ft(o,e),o.prototype.subscribeCore=ot,o}(Sn),On=function(e){function t(t,n,r,o){this.resultSelector=Fe.helpers.isFunction(r)?r:null,this.selector=Fe.internals.bindCallback(Fe.helpers.isFunction(n)?n:function(){return n},o,3),this.source=t,e.call(this)}function n(e,t,n,r){this.i=0,this.selector=t,this.resultSelector=n,this.source=r,this.isStopped=!1,this.o=e}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this.selector,this.resultSelector,this))},n.prototype._wrapResult=function(e,t,n){return this.resultSelector?e.map(function(e,r){return this.resultSelector(t,e,n,r)},this):e},n.prototype.onNext=function(e){if(!this.isStopped){var t=this.i++,n=c(this.selector)(e,t,this.source);if(n===Ge)return this.o.onError(n.e);Fe.helpers.isPromise(n)&&(n=Fe.Observable.fromPromise(n)),(Fe.helpers.isArrayLike(n)||Fe.helpers.isIterable(n))&&(n=Fe.Observable.from(n)),this.o.onNext(this._wrapResult(n,e,t))}},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0, -this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},t}(Nn),Dn=Fe.internals.Enumerable=function(){},Pn=function(e){function t(t){this.sources=t,e.call(this)}function n(e,t,n){this.o=e,this.s=t,this.e=n,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){var t,r=new $t,o=an.scheduleRecursiveWithState(this.sources[st](),function(o,i){if(!t){var s=c(o.next).call(o);if(s===Ge)return e.onError(s.e);if(s.done)return e.onCompleted();var a=s.value;Ke(a)&&(a=Ln(a));var u=new Xt;r.setDisposable(u),u.setDisposable(a.subscribe(new n(e,i,o)))}});return new qt(r,o,Ht(function(){t=!0}))},n.prototype.onNext=function(e){this.isStopped||this.o.onNext(e)},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.s(this.e))},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);Dn.prototype.concat=function(){return new Pn(this)};var kn=function(e){function t(t){this.sources=t,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t,n=this.sources[st](),r=new $t,o=an.scheduleRecursiveWithState(null,function(o,i){if(!t){var s=c(n.next).call(n);if(s===Ge)return e.onError(s.e);if(s.done)return null!==o?e.onError(o):e.onCompleted();var a=s.value;Ke(a)&&(a=Ln(a));var u=new Xt;r.setDisposable(u),u.setDisposable(a.subscribe(function(t){e.onNext(t)},i,function(){e.onCompleted()}))}});return new qt(r,o,Ht(function(){t=!0}))},t}(Nn);Dn.prototype.catchError=function(){return new kn(this)},Dn.prototype.catchErrorWhen=function(e){var t=this;return new $r(function(n){var r,o,i=new eo,s=new eo,a=e(i),u=a.subscribe(s),l=t[st](),p=new $t,h=an.scheduleRecursive(function(e){if(!r){var t=c(l.next).call(l);if(t===Ge)return n.onError(t.e);if(t.done)return void(o?n.onError(o):n.onCompleted());var a=t.value;Ke(a)&&(a=Ln(a));var u=new Xt,h=new Xt;p.setDisposable(new qt(h,u)),u.setDisposable(a.subscribe(function(e){n.onNext(e)},function(t){h.setDisposable(s.subscribe(e,function(e){n.onError(e)},function(){n.onCompleted()})),i.onNext(t)},function(){n.onCompleted()}))}});return new qt(u,p,h,Ht(function(){r=!0}))})};var Mn=function(e){function t(e,t){this.v=e,this.c=null==t?-1:t}function n(e){this.v=e.v,this.l=e.c}return Ft(t,e),t.prototype[st]=function(){return new n(this)},n.prototype.next=function(){return 0===this.l?at:(this.l>0&&this.l--,{done:!1,value:this.v})},t}(Dn),An=Dn.repeat=function(e,t){return new Mn(e,t)},Rn=function(e){function t(e,t,n){this.s=e,this.fn=t?pt(t,n,3):null}function n(e){this.i=-1,this.s=e.s,this.l=this.s.length,this.fn=e.fn}return Ft(t,e),t.prototype[st]=function(){return new n(this)},n.prototype.next=function(){return++this.ie?(t.onNext(n[e]),o(e+1)):t.onCompleted()}var t=this.observer,n=this.parent.args,r=n.length;return this.parent.scheduler.scheduleRecursiveWithState(0,e)};var Yn=Sn.fromArray=function(e,t){return nn(t)||(t=un),new Gn(e,t)};Sn.generate=function(e,t,n,r,o){return nn(o)||(o=un),new $r(function(i){var s=!0;return o.scheduleRecursiveWithState(e,function(e,o){var a,u;try{s?s=!1:e=n(e),a=t(e),a&&(u=r(e))}catch(c){return i.onError(c)}a?(i.onNext(u),o(e)):i.onCompleted()})})},Sn.of=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return new Gn(t,un)},Sn.ofWithScheduler=function(e){for(var t=arguments.length,n=new Array(t-1),r=1;t>r;r++)n[r-1]=arguments[r];return new Gn(n,e)},Sn.ofArrayChanges=function(e){if(!Array.isArray(e))throw new TypeError("Array.observe only accepts arrays.");if("function"!=typeof Array.observe&&"function"!=typeof Array.unobserve)throw new TypeError("Array.observe is not supported on your platform");return new $r(function(t){function n(e){for(var n=0,r=e.length;r>n;n++)t.onNext(e[n])}return Array.observe(e,n),function(){Array.unobserve(e,n)}})},Sn.ofObjectChanges=function(e){if(null==e)throw new TypeError("object must not be null or undefined.");if("function"!=typeof Object.observe&&"function"!=typeof Object.unobserve)throw new TypeError("Object.observe is not supported on your platform");return new $r(function(t){function n(e){for(var n=0,r=e.length;r>n;n++)t.onNext(e[n])}return Object.observe(e,n),function(){Object.unobserve(e,n)}})};var Qn=function(e){function t(){e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){return Gt},t}(Nn),Xn=new Qn,$n=Sn.never=function(){return Xn},Jn=function(e){function t(t,n){this.obj=t,this.keys=Object.keys(t),this.scheduler=n,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new j(e,this);return t.run()},t}(Nn);j.prototype.run=function(){function e(e,i){if(o>e){var s=r[e];t.onNext([s,n[s]]),i(e+1)}else t.onCompleted()}var t=this.observer,n=this.parent.obj,r=this.parent.keys,o=r.length;return this.parent.scheduler.scheduleRecursiveWithState(0,e)},Sn.pairs=function(e,t){return t||(t=un),new Jn(e,t)};var Zn=function(e){function t(t,n,r){this.start=t,this.rangeCount=n,this.scheduler=r,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new er(e,this);return t.run()},t}(Nn),er=function(){function e(e,t){this.observer=e,this.parent=t}return e.prototype.run=function(){function e(e,o){n>e?(r.onNext(t+e),o(e+1)):r.onCompleted()}var t=this.parent.start,n=this.parent.rangeCount,r=this.observer;return this.parent.scheduler.scheduleRecursiveWithState(0,e)},e}();Sn.range=function(e,t,n){return nn(n)||(n=un),new Zn(e,t,n)};var tr=function(e){function t(t,n,r){this.value=t,this.repeatCount=null==n?-1:n,this.scheduler=r,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new L(e,this);return t.run()},t}(Nn);L.prototype.run=function(){function e(e,r){return(-1===e||e>0)&&(t.onNext(n),e>0&&e--),0===e?t.onCompleted():void r(e)}var t=this.observer,n=this.parent.value;return this.parent.scheduler.scheduleRecursiveWithState(this.parent.repeatCount,e)},Sn.repeat=function(e,t,n){return nn(n)||(n=un),new tr(e,t,n)};var nr=function(e){function t(t,n){this.value=t,this.scheduler=n,e.call(this)}function n(e,t,n){this.observer=e,this.value=t,this.scheduler=n}function r(e,t){var n=t[0],r=t[1];return r.onNext(n),r.onCompleted(),Gt}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new n(e,this.value,this.scheduler);return t.run()},n.prototype.run=function(){var e=[this.value,this.observer];return this.scheduler===an?r(null,e):this.scheduler.scheduleWithState(e,r)},t}(Nn),rr=(Sn["return"]=Sn.just=function(e,t){return nn(t)||(t=an),new nr(e,t)},function(e){function t(t,n){this.error=t,this.scheduler=n,e.call(this)}function n(e,t){this.o=e,this.p=t}function r(e,t){var n=t[0],r=t[1];r.onError(n)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new n(e,this);return t.run()},n.prototype.run=function(){return this.p.scheduler.scheduleWithState([this.p.error,this.o],r)},t}(Nn)),or=Sn["throw"]=function(e,t){return nn(t)||(t=an),new rr(e,t)};Sn.using=function(e,t){return new $r(function(n){var r=Gt,o=c(e)();if(o===Ge)return new qt(or(o.e).subscribe(n),r);o&&(r=o);var i=c(t)(o);return i===Ge?new qt(or(i.e).subscribe(n),r):new qt(i.subscribe(n),r)})},wn.amb=function(e){var t=this;return new $r(function(n){function r(){i||(i=s,c.dispose())}function o(){i||(i=a,u.dispose())}var i,s="L",a="R",u=new Xt,c=new Xt;Ke(e)&&(e=Ln(e));var l=bn(function(e){r(),i===s&&n.onNext(e)},function(e){r(),i===s&&n.onError(e)},function(){r(),i===s&&n.onCompleted()}),p=bn(function(e){o(),i===a&&n.onNext(e)},function(e){o(),i===a&&n.onError(e)},function(){o(),i===a&&n.onCompleted()});return u.setDisposable(t.subscribe(l)),c.setDisposable(e.subscribe(p)),new qt(u,c)})},Sn.amb=function(){var e,t=$n();if(Array.isArray(arguments[0]))e=arguments[0];else{var n=arguments.length;e=new Array(e);for(var r=0;n>r;r++)e[r]=arguments[r]}for(var r=0,n=e.length;n>r;r++)t=F(t,e[r]);return t};var ir=function(e){function t(t,n,r){this._o=t,this._s=n,this._fn=r,e.call(this)}return Ft(t,e),t.prototype.next=function(e){this._o.onNext(e)},t.prototype.completed=function(){return this._o.onCompleted()},t.prototype.error=function(e){var t=c(this._fn)(e);if(t===Ge)return this._o.onError(t.e);Ke(t)&&(t=Ln(t));var n=new Xt;this._s.setDisposable(n),n.setDisposable(t.subscribe(this._o))},t}(En);wn["catch"]=function(e){return He(e)?U(this,e):sr([this,e])};var sr=Sn["catch"]=function(){var e;if(Array.isArray(arguments[0]))e=arguments[0];else{var t=arguments.length;e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}return In(e).catchError()};wn.combineLatest=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return Array.isArray(t[0])?t[0].unshift(this):t.unshift(this),ar.apply(this,t)};var ar=Sn.combineLatest=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=He(t[e-1])?t.pop():V;return Array.isArray(t[0])&&(t=t[0]),new $r(function(e){function n(t){if(s[t]=!0,a||(a=s.every(We))){try{var n=r.apply(null,c)}catch(o){return e.onError(o)}e.onNext(n)}else u.filter(function(e,n){return n!==t}).every(We)&&e.onCompleted()}function o(t){u[t]=!0,u.every(We)&&e.onCompleted()}for(var i=t.length,s=T(i,W),a=!1,u=T(i,W),c=new Array(i),l=new Array(i),p=0;i>p;p++)!function(r){var i=t[r],s=new Xt;Ke(i)&&(i=Ln(i)),s.setDisposable(i.subscribe(function(e){c[r]=e,n(r)},function(t){e.onError(t)},function(){o(r)})),l[r]=s}(p);return new qt(l)},this)};wn.concat=function(){for(var e=[],t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return e.unshift(this),cr.apply(null,e)};var ur=function(e){function t(t){this.sources=t,e.call(this)}function n(e,t){this.sources=e,this.o=t}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new n(this.sources,e);return t.run()},n.prototype.run=function(){var e,t=new $t,n=this.sources,r=n.length,o=this.o,i=an.scheduleRecursiveWithState(0,function(i,s){if(!e){if(i===r)return o.onCompleted();var a=n[i];Ke(a)&&(a=Ln(a));var u=new Xt;t.setDisposable(u),u.setDisposable(a.subscribe(function(e){o.onNext(e)},function(e){o.onError(e)},function(){s(i+1)}))}});return new qt(t,i,Ht(function(){e=!0}))},t}(Nn),cr=Sn.concat=function(){var e;if(Array.isArray(arguments[0]))e=arguments[0];else{e=new Array(arguments.length);for(var t=0,n=arguments.length;n>t;t++)e[t]=arguments[t]}return new ur(e)};wn.concatAll=function(){return this.merge(1)};var lr=function(e){function t(t,n){this.source=t,this.maxConcurrent=n,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new qt;return t.add(this.source.subscribe(new pr(e,this.maxConcurrent,t))),t},t}(Nn),pr=function(){function e(e,t,n){this.o=e,this.max=t,this.g=n,this.done=!1,this.q=[],this.activeCount=0,this.isStopped=!1}function t(e,t){this.parent=e,this.sad=t,this.isStopped=!1}return e.prototype.handleSubscribe=function(e){var n=new Xt;this.g.add(n),Ke(e)&&(e=Ln(e)),n.setDisposable(e.subscribe(new t(this,n)))},e.prototype.onNext=function(e){this.isStopped||(this.activeCount0?e.handleSubscribe(e.q.shift()):(e.activeCount--,e.done&&0===e.activeCount&&e.o.onCompleted())}},t.prototype.dispose=function(){this.isStopped=!0},t.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(e),!0)},e}();wn.merge=function(e){return"number"!=typeof e?hr(this,e):new lr(this,e)};var hr=Sn.merge=function(){var e,t,n=[],r=arguments.length;if(arguments[0])if(nn(arguments[0]))for(e=arguments[0],t=1;r>t;t++)n.push(arguments[t]);else for(e=an,t=0;r>t;t++)n.push(arguments[t]);else for(e=an,t=1;r>t;t++)n.push(arguments[t]);return Array.isArray(n[0])&&(n=n[0]),I(e,n).mergeAll()},dr=function(e){function t(t){this.source=t,e.call(this)}function n(e,t){this.o=e,this.g=t,this.isStopped=!1,this.done=!1}function r(e,t){this.parent=e,this.sad=t,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){var t=new qt,r=new Xt;return t.add(r),r.setDisposable(this.source.subscribe(new n(e,t))),t},n.prototype.onNext=function(e){if(!this.isStopped){var t=new Xt;this.g.add(t),Ke(e)&&(e=Ln(e)),t.setDisposable(e.subscribe(new r(this,t)))}},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.done=!0,1===this.g.length&&this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},r.prototype.onNext=function(e){this.isStopped||this.parent.o.onNext(e)},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.parent.o.onError(e))},r.prototype.onCompleted=function(){if(!this.isStopped){var e=this.parent;this.isStopped=!0,e.g.remove(this.sad),e.done&&1===e.g.length&&e.o.onCompleted()}},r.prototype.dispose=function(){this.isStopped=!0},r.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(e),!0)},t}(Nn);wn.mergeAll=function(){return new dr(this)};var fr=Fe.CompositeError=function(e){this.name="NotImplementedError",this.innerErrors=e,this.message="This contains multiple errors. Check the innerErrors",Error.call(this)};fr.prototype=Error.prototype,Sn.mergeDelayError=function(){var e;if(Array.isArray(arguments[0]))e=arguments[0];else{var t=arguments.length;e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}var r=I(null,e);return new $r(function(e){function t(){0===s.length?e.onCompleted():1===s.length?e.onError(s[0]):e.onError(new fr(s))}var n=new qt,o=new Xt,i=!1,s=[];return n.add(o),o.setDisposable(r.subscribe(function(r){var o=new Xt;n.add(o),Ke(r)&&(r=Ln(r)),o.setDisposable(r.subscribe(function(t){e.onNext(t)},function(e){s.push(e),n.remove(o),i&&1===n.length&&t()},function(){n.remove(o),i&&1===n.length&&t()}))},function(e){s.push(e),i=!0,1===n.length&&t()},function(){i=!0,1===n.length&&t()})),n})},wn.onErrorResumeNext=function(e){if(!e)throw new Error("Second observable is required");return mr([this,e])};var mr=Sn.onErrorResumeNext=function(){var e=[];if(Array.isArray(arguments[0]))e=arguments[0];else for(var t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return new $r(function(t){var n=0,r=new $t,o=an.scheduleRecursive(function(o){var i,s;nn;n++)t[n]=arguments[n];var r=t.pop(),o=this;return Array.isArray(t[0])&&(t=t[0]),new $r(function(e){for(var n=t.length,i=T(n,W),s=!1,a=new Array(n),u=new Array(n+1),l=0;n>l;l++)!function(n){var r=t[n],o=new Xt;Ke(r)&&(r=Ln(r)),o.setDisposable(r.subscribe(function(e){a[n]=e,i[n]=!0,s=i.every(We)},function(t){e.onError(t)},Ue)),u[n]=o}(l);var p=new Xt;return p.setDisposable(o.subscribe(function(t){var n=[t].concat(a);if(s){var o=c(r).apply(null,n);return o===Ge?e.onError(o.e):void e.onNext(o)}},function(t){e.onError(t)},function(){e.onCompleted()})),u[n]=p,new qt(u)},this)},wn.zip=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=He(t[e-1])?t.pop():V;Array.isArray(t[0])&&(t=t[0]);var o=this;return t.unshift(o),new $r(function(e){for(var n=t.length,i=T(n,B),s=T(n,W),a=new Array(n),u=0;n>u;u++)!function(n){var u=t[n],l=new Xt;Ke(u)&&(u=Ln(u)),l.setDisposable(u.subscribe(function(t){if(i[n].push(t),i.every(function(e){return e.length>0})){var a=i.map(function(e){return e.shift()}),u=c(r).apply(o,a);if(u===Ge)return e.onError(u.e);e.onNext(u)}else s.filter(function(e,t){return t!==n}).every(We)&&e.onCompleted()},function(t){e.onError(t)},function(){s[n]=!0,s.every(We)&&e.onCompleted()})),a[n]=l}(u);return new qt(a)},o)},Sn.zip=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];Array.isArray(t[0])&&(t=He(t[1])?t[0].concat(t[1]):t[0]);var r=t.shift();return r.zip.apply(r,t)},wn.zipIterable=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=He(t[e-1])?t.pop():V,o=this;return t.unshift(o),new $r(function(e){for(var n=t.length,i=T(n,B),s=T(n,W),a=new Array(n),u=0;n>u;u++)!function(n){var u=t[n],l=new Xt;(ct(u)||ut(u))&&(u=Hn(u)),l.setDisposable(u.subscribe(function(t){if(i[n].push(t),i.every(function(e){return e.length>0})){var a=i.map(function(e){return e.shift()}),u=c(r).apply(o,a);if(u===Ge)return e.onError(u.e);e.onNext(u)}else s.filter(function(e,t){return t!==n}).every(We)&&e.onCompleted()},function(t){e.onError(t)},function(){s[n]=!0,s.every(We)&&e.onCompleted()})),a[n]=l}(u);return new qt(a)},o)},wn.asObservable=function(){return new $r(q(this),this)},wn.bufferWithCount=function(e,t){return"number"!=typeof t&&(t=e),this.windowWithCount(e,t).flatMap(z).filter(K)},wn.dematerialize=function(){var e=this;return new $r(function(t){return e.subscribe(function(e){return e.accept(t)},function(e){t.onError(e)},function(){t.onCompleted()})},this)};var gr=function(e){function t(t,n,r){this.source=t,this.keyFn=n,this.comparer=r,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new br(e,this.keyFn,this.comparer))},t}(Nn),br=function(e){function t(t,n,r){this.o=t,this.keyFn=n,this.comparer=r,this.hasCurrentKey=!1,this.currentKey=null,e.call(this)}return Ft(t,e),t.prototype.next=function(e){var t,n=e;return He(this.keyFn)&&(n=c(this.keyFn)(e),n===Ge)?this.o.onError(n.e):this.hasCurrentKey&&(t=c(this.comparer)(this.currentKey,n),t===Ge)?this.o.onError(t.e):void(this.hasCurrentKey&&t||(this.hasCurrentKey=!0,this.currentKey=n,this.o.onNext(e)))},t.prototype.error=function(e){this.o.onError(e)},t.prototype.completed=function(){this.o.onCompleted()},t}(En);wn.distinctUntilChanged=function(e,t){return t||(t=Be),new gr(this,e,t)};var wr=function(e){function t(t,n,r,o){this.source=t,this._oN=n,this._oE=r,this._oC=o,e.call(this)}function n(e,t){this.o=e,this.t=!t._oN||He(t._oN)?bn(t._oN||Ue,t._oE||Ue,t._oC||Ue):t._oN,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this))},n.prototype.onNext=function(e){if(!this.isStopped){var t=c(this.t.onNext).call(this.t,e);t===Ge&&this.o.onError(t.e),this.o.onNext(e)}},n.prototype.onError=function(e){if(!this.isStopped){this.isStopped=!0;var t=c(this.t.onError).call(this.t,e);if(t===Ge)return this.o.onError(t.e);this.o.onError(e)}},n.prototype.onCompleted=function(){if(!this.isStopped){this.isStopped=!0;var e=c(this.t.onCompleted).call(this.t);if(e===Ge)return this.o.onError(e.e);this.o.onCompleted()}},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);wn["do"]=wn.tap=wn.doAction=function(e,t,n){return new wr(this,e,t,n)},wn.doOnNext=wn.tapOnNext=function(e,t){return this.tap("undefined"!=typeof t?function(n){e.call(t,n)}:e)},wn.doOnError=wn.tapOnError=function(e,t){return this.tap(Ue,"undefined"!=typeof t?function(n){e.call(t,n)}:e)},wn.doOnCompleted=wn.tapOnCompleted=function(e,t){return this.tap(Ue,null,"undefined"!=typeof t?function(){e.call(t)}:e)},wn["finally"]=function(e){var t=this;return new $r(function(n){var r=c(t.subscribe).call(t,n);return r===Ge?(e(),l(r.e)):Ht(function(){var t=c(r.dispose).call(r);e(),t===Ge&&l(t.e)})},this)};var Er=function(e){function t(t){this.source=t,e.call(this)}function n(e){this.o=e,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e))},n.prototype.onNext=Ue,n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.observer.onError(e),!0)},t}(Nn);wn.ignoreElements=function(){return new Er(this)},wn.materialize=function(){var e=this;return new $r(function(t){return e.subscribe(function(e){t.onNext(mn(e))},function(e){t.onNext(vn(e)),t.onCompleted()},function(){t.onNext(yn()),t.onCompleted()})},e)},wn.repeat=function(e){return An(this,e).concat()},wn.retry=function(e){return An(this,e).catchError()},wn.retryWhen=function(e){return An(this).catchErrorWhen(e)};var Tr=function(e){function t(t,n,r,o){this.source=t,this.accumulator=n,this.hasSeed=r,this.seed=o,e.call(this)}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new H(e,this))},t}(Nn);H.prototype={onNext:function(e){return this.isStopped?void 0:(!this.hasValue&&(this.hasValue=!0),this.hasAccumulation?this.accumulation=c(this.accumulator)(this.accumulation,e):(this.accumulation=this.hasSeed?c(this.accumulator)(this.seed,e):e,this.hasAccumulation=!0),this.accumulation===Ge?this.o.onError(this.accumulation.e):void this.o.onNext(this.accumulation))},onError:function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},onCompleted:function(){this.isStopped||(this.isStopped=!0,!this.hasValue&&this.hasSeed&&this.o.onNext(this.seed),this.o.onCompleted())},dispose:function(){this.isStopped=!0},fail:function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)}},wn.scan=function(){var e,t=!1,n=arguments[0];return 2===arguments.length&&(t=!0,e=arguments[1]),new Tr(this,n,t,e)},wn.skipLast=function(e){if(0>e)throw new tt;var t=this;return new $r(function(n){var r=[];return t.subscribe(function(t){r.push(t),r.length>e&&n.onNext(r.shift())},function(e){n.onError(e)},function(){n.onCompleted()})},t)},wn.startWith=function(){var e,t=0;arguments.length&&nn(arguments[0])?(e=arguments[0],t=1):e=an;for(var n=[],r=t,o=arguments.length;o>r;r++)n.push(arguments[r]);return In([Yn(n,e),this]).concat()},wn.takeLast=function(e){if(0>e)throw new tt;var t=this;return new $r(function(n){var r=[];return t.subscribe(function(t){r.push(t),r.length>e&&r.shift()},function(e){n.onError(e)},function(){for(;r.length>0;)n.onNext(r.shift());n.onCompleted()})},t)},wn.takeLastBuffer=function(e){var t=this;return new $r(function(n){var r=[];return t.subscribe(function(t){r.push(t),r.length>e&&r.shift()},function(e){n.onError(e)},function(){n.onNext(r),n.onCompleted()})},t)},wn.windowWithCount=function(e,t){var n=this;if(+e||(e=0),Math.abs(e)===1/0&&(e=0),0>=e)throw new tt;if(null==t&&(t=e),+t||(t=0),Math.abs(t)===1/0&&(t=0),0>=t)throw new tt;return new $r(function(r){function o(){var e=new eo;u.push(e),r.onNext(Wt(e,s))}var i=new Xt,s=new Jt(i),a=0,u=[];return o(),i.setDisposable(n.subscribe(function(n){for(var r=0,i=u.length;i>r;r++)u[r].onNext(n);var s=a-e+1;s>=0&&s%t===0&&u.shift().onCompleted(),++a%t===0&&o()},function(e){for(;u.length>0;)u.shift().onError(e);r.onError(e)},function(){for(;u.length>0;)u.shift().onCompleted();r.onCompleted()})),s},n)},wn.selectConcat=wn.concatMap=function(e,t,n){return He(e)&&He(t)?this.concatMap(function(n,r){var o=e(n,r);return Ke(o)&&(o=Ln(o)),(ct(o)||ut(o))&&(o=Hn(o)),o.map(function(e,o){return t(n,e,r,o)})}):He(e)?G(this,e,n):G(this,function(){return e})},wn.concatMapObserver=wn.selectConcatObserver=function(e,t,n,r){var o=this,i=pt(e,r,2),s=pt(t,r,1),a=pt(n,r,0);return new $r(function(e){var t=0;return o.subscribe(function(n){var r;try{r=i(n,t++)}catch(o){return void e.onError(o)}Ke(r)&&(r=Ln(r)),e.onNext(r)},function(t){var n;try{n=s(t)}catch(r){return void e.onError(r)}Ke(n)&&(n=Ln(n)),e.onNext(n),e.onCompleted()},function(){var t;try{t=a()}catch(n){return void e.onError(n)}Ke(t)&&(t=Ln(t)),e.onNext(t),e.onCompleted()})},this).concatAll()},wn.defaultIfEmpty=function(e){var t=this;return e===s&&(e=null),new $r(function(n){var r=!1;return t.subscribe(function(e){r=!0,n.onNext(e)},function(e){n.onError(e)},function(){!r&&n.onNext(e),n.onCompleted()})},t)},Q.prototype.push=function(e){var t=-1===Y(this.set,e,this.comparer);return t&&this.set.push(e),t},wn.distinct=function(e,t){var n=this;return t||(t=Be),new $r(function(r){var o=new Q(t);return n.subscribe(function(t){var n=t;if(e)try{n=e(t)}catch(i){return void r.onError(i)}o.push(n)&&r.onNext(t)},function(e){r.onError(e)},function(){r.onCompleted()})},this)},wn.groupBy=function(e,t){return this.groupByUntil(e,t,$n)},wn.groupByUntil=function(e,t,n){var r=this;return new $r(function(o){var i=new Yr,a=new qt,u=new Jt(a),l=function(e){return function(t){t.onError(e)}};return a.add(r.subscribe(function(r){var p=c(e)(r);if(p===Ge)return i.forEach(l(p.e)),o.onError(p.e);var h=!1,d=i.get(p);if(d===s&&(d=new eo,i.set(p,d),h=!0),h){var f=new Zr(p,d,u),m=new Zr(p,d),v=c(n)(m);if(v===Ge)return i.forEach(l(v.e)),o.onError(v.e);o.onNext(f);var y=new Xt;a.add(y),y.setDisposable(v.take(1).subscribe(Ue,function(e){i.forEach(l(e)),o.onError(e)},function(){i["delete"](p)&&d.onCompleted(),a.remove(y)}))}var g=r;return He(t)&&(g=c(t)(r),g===Ge)?(i.forEach(l(g.e)),o.onError(g.e)):void d.onNext(g)},function(e){i.forEach(l(e)),o.onError(e)},function(){i.forEach(function(e){e.onCompleted()}),o.onCompleted()})),u},r)};var xr=function(e){function t(t,n,r){this.source=t, -this.selector=pt(n,r,3),e.call(this)}function n(e,t){return function(n,r,o){return e.call(this,t.selector(n,r,o),r,o)}}function r(e,t,n){this.o=e,this.selector=t,this.source=n,this.i=0,this.isStopped=!1}return Ft(t,e),t.prototype.internalMap=function(e,r){return new t(this.source,n(e,this),r)},t.prototype.subscribeCore=function(e){return this.source.subscribe(new r(e,this.selector,this))},r.prototype.onNext=function(e){if(!this.isStopped){var t=c(this.selector)(e,this.i++,this.source);return t===Ge?this.o.onError(t.e):void this.o.onNext(t)}},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},r.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},r.prototype.dispose=function(){this.isStopped=!0},r.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);wn.map=wn.select=function(e,t){var n="function"==typeof e?e:function(){return e};return this instanceof xr?this.internalMap(n,t):new xr(this,n,t)},wn.pluck=function(){var e=arguments.length,t=new Array(e);if(0===e)throw new Error("List of properties cannot be empty.");for(var n=0;e>n;n++)t[n]=arguments[n];return this.map(X(t,e))},wn.flatMap=wn.selectMany=function(e,t,n){return new On(this,e,t,n).mergeAll()},wn.flatMapObserver=wn.selectManyObserver=function(e,t,n,r){var o=this;return new $r(function(i){var s=0;return o.subscribe(function(t){var n;try{n=e.call(r,t,s++)}catch(o){return void i.onError(o)}Ke(n)&&(n=Ln(n)),i.onNext(n)},function(e){var n;try{n=t.call(r,e)}catch(o){return void i.onError(o)}Ke(n)&&(n=Ln(n)),i.onNext(n),i.onCompleted()},function(){var e;try{e=n.call(r)}catch(t){return void i.onError(t)}Ke(e)&&(e=Ln(e)),i.onNext(e),i.onCompleted()})},o).mergeAll()},Fe.Observable.prototype.flatMapLatest=function(e,t,n){return new On(this,e,t,n).switchLatest()};var Cr=function(e){function t(t,n){this.source=t,this.skipCount=n,e.call(this)}function n(e,t){this.c=t,this.r=t,this.o=e,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this.skipCount))},n.prototype.onNext=function(e){this.isStopped||(this.r<=0?this.o.onNext(e):this.r--)},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);wn.skip=function(e){if(0>e)throw new tt;return new Cr(this,e)},wn.skipWhile=function(e,t){var n=this,r=pt(e,t,3);return new $r(function(e){var t=0,o=!1;return n.subscribe(function(i){if(!o)try{o=!r(i,t++,n)}catch(s){return void e.onError(s)}o&&e.onNext(i)},function(t){e.onError(t)},function(){e.onCompleted()})},n)},wn.take=function(e,t){if(0>e)throw new tt;if(0===e)return Bn(t);var n=this;return new $r(function(t){var r=e;return n.subscribe(function(e){r-->0&&(t.onNext(e),0>=r&&t.onCompleted())},function(e){t.onError(e)},function(){t.onCompleted()})},n)},wn.takeWhile=function(e,t){var n=this,r=pt(e,t,3);return new $r(function(e){var t=0,o=!0;return n.subscribe(function(i){if(o){try{o=r(i,t++,n)}catch(s){return void e.onError(s)}o?e.onNext(i):e.onCompleted()}},function(t){e.onError(t)},function(){e.onCompleted()})},n)};var _r=function(e){function t(t,n,r){this.source=t,this.predicate=pt(n,r,3),e.call(this)}function n(e,t){return function(n,r,o){return t.predicate(n,r,o)&&e.call(this,n,r,o)}}function r(e,t,n){this.o=e,this.predicate=t,this.source=n,this.i=0,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new r(e,this.predicate,this))},t.prototype.internalFilter=function(e,r){return new t(this.source,n(e,this),r)},r.prototype.onNext=function(e){if(!this.isStopped){var t=c(this.predicate)(e,this.i++,this.source);return t===Ge?this.o.onError(t.e):void(t&&this.o.onNext(e))}},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},r.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},r.prototype.dispose=function(){this.isStopped=!0},r.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);wn.filter=wn.where=function(e,t){return this instanceof _r?this.internalFilter(e,t):new _r(this,e,t)};var Sr=function(e){function t(t,n,r,o){this.source=t,this.acc=n,this.hasSeed=r,this.seed=o,e.call(this)}function n(e,t){this.o=e,this.acc=t.acc,this.hasSeed=t.hasSeed,this.seed=t.seed,this.hasAccumulation=!1,this.result=null,this.hasValue=!1,this.isStopped=!1}return Ft(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e,this))},n.prototype.onNext=function(e){this.isStopped||(!this.hasValue&&(this.hasValue=!0),this.hasAccumulation?this.result=c(this.acc)(this.result,e):(this.result=this.hasSeed?c(this.acc)(this.seed,e):e,this.hasAccumulation=!0),this.result===Ge&&this.o.onError(this.result.e))},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.hasValue&&this.o.onNext(this.result),!this.hasValue&&this.hasSeed&&this.o.onNext(this.seed),!this.hasValue&&!this.hasSeed&&this.o.onError(new Ze),this.o.onCompleted())},n.prototype.dispose=function(){this.isStopped=!0},n.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t}(Nn);wn.reduce=function(e){var t=!1;if(2===arguments.length){t=!0;var n=arguments[1]}return new Sr(this,e,t,n)};var Nr=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,e.call(this)}return Ft(t,e),t.prototype.next=function(e){var t=c(this._fn)(e,this._i++,this._s);return t===Ge?this._o.onError(t.e):void(Boolean(t)&&(this._o.onNext(!0),this._o.onCompleted()))},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!1),this._o.onCompleted()},t}(En);wn.some=function(e,t){var n=this,r=pt(e,t,3);return new $r(function(e){return n.subscribe(new Nr(e,r,n))})};var Or=function(e){function t(t){this._o=t,e.call(this)}return Ft(t,e),t.prototype.next=function(){this._o.onNext(!1),this._o.onCompleted()},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!0),this._o.onCompleted()},t}(En);wn.isEmpty=function(){var e=this;return new $r(function(t){return e.subscribe(new Or(t))},e)};var Dr=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,e.call(this)}return Ft(t,e),t.prototype.next=function(e){var t=c(this._fn)(e,this._i++,this._s);return t===Ge?this._o.onError(t.e):void(Boolean(t)||(this._o.onNext(!1),this._o.onCompleted()))},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._o.onNext(!0),this._o.onCompleted()},t}(En);wn.every=function(e,t){var n=this,r=pt(e,t,3);return new $r(function(e){return n.subscribe(new Dr(e,r,n))},this)},wn.includes=function(e,t){function n(e,t){return 0===e&&0===t||e===t||isNaN(e)&&isNaN(t)}var r=this;return new $r(function(o){var i=0,s=+t||0;return Math.abs(s)===1/0&&(s=0),0>s?(o.onNext(!1),o.onCompleted(),Gt):r.subscribe(function(t){i++>=s&&n(t,e)&&(o.onNext(!0),o.onCompleted())},function(e){o.onError(e)},function(){o.onNext(!1),o.onCompleted()})},this)},wn.contains=function(e,t){wn.includes(e,t)},wn.count=function(e,t){return e?this.filter(e,t).count():this.reduce(function(e){return e+1},0)},wn.indexOf=function(e,t){var n=this;return new $r(function(r){var o=0,i=+t||0;return Math.abs(i)===1/0&&(i=0),0>i?(r.onNext(-1),r.onCompleted(),Gt):n.subscribe(function(t){o>=i&&t===e&&(r.onNext(o),r.onCompleted()),o++},function(e){r.onError(e)},function(){r.onNext(-1),r.onCompleted()})},n)},wn.sum=function(e,t){return e&&He(e)?this.map(e,t).sum():this.reduce(function(e,t){return e+t},0)},wn.minBy=function(e,t){return t||(t=qe),$(this,e,function(e,n){return-1*t(e,n)})},wn.min=function(e){return this.minBy(We,e).map(function(e){return J(e)})},wn.maxBy=function(e,t){return t||(t=qe),$(this,e,t)},wn.max=function(e){return this.maxBy(We,e).map(function(e){return J(e)})};var Pr=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._c=0,this._t=0,e.call(this)}return Ft(t,e),t.prototype.next=function(e){if(this._fn){var t=c(this._fn)(e,this._c++,this._s);if(t===Ge)return this._o.onError(t.e);this._t+=t}else this._c++,this._t+=e},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){return 0===this._c?this._o.onError(new Ze):(this._o.onNext(this._t/this._c),void this._o.onCompleted())},t}(En);wn.average=function(e,t){var n,r=this;return He(e)&&(n=pt(e,t,3)),new $r(function(e){return r.subscribe(new Pr(e,n,r))},r)},wn.sequenceEqual=function(e,t){var n=this;return t||(t=Be),new $r(function(r){var o=!1,i=!1,s=[],a=[],u=n.subscribe(function(e){var n,o;if(a.length>0){o=a.shift();try{n=t(o,e)}catch(u){return void r.onError(u)}n||(r.onNext(!1),r.onCompleted())}else i?(r.onNext(!1),r.onCompleted()):s.push(e)},function(e){r.onError(e)},function(){o=!0,0===s.length&&(a.length>0?(r.onNext(!1),r.onCompleted()):i&&(r.onNext(!0),r.onCompleted()))});(ct(e)||ut(e))&&(e=Hn(e)),Ke(e)&&(e=Ln(e));var c=e.subscribe(function(e){var n;if(s.length>0){var i=s.shift();try{n=t(i,e)}catch(u){return void r.onError(u)}n||(r.onNext(!1),r.onCompleted())}else o?(r.onNext(!1),r.onCompleted()):a.push(e)},function(e){r.onError(e)},function(){i=!0,0===a.length&&(s.length>0?(r.onNext(!1),r.onCompleted()):o&&(r.onNext(!0),r.onCompleted()))});return new qt(u,c)},n)},wn.elementAt=function(e,t){if(0>e)throw new tt;var n=this;return new $r(function(r){var o=e;return n.subscribe(function(e){0===o--&&(r.onNext(e),r.onCompleted())},function(e){r.onError(e)},function(){t===s?r.onError(new tt):(r.onNext(t),r.onCompleted())})},n)},wn.single=function(e,t){if(He(e))return this.filter(e,t).single();var n=this;return new $r(function(e){var t,r=!1;return n.subscribe(function(n){r?e.onError(new Error("Sequence contains more than one element")):(t=n,r=!0)},function(t){e.onError(t)},function(){e.onNext(t),e.onCompleted()})},n)};var kr=function(e){function t(t,n,r){this._o=t,this._obj=n,this._s=r,this._i=0,e.call(this)}return Ft(t,e),t.prototype.next=function(e){if(this._obj.predicate){var t=c(this._obj.predicate)(e,this._i++,this._s);if(t===Ge)return this._o.onError(t.e);Boolean(t)&&(this._o.onNext(e),this._o.onCompleted())}else this._obj.predicate||(this._o.onNext(e),this._o.onCompleted())},t.prototype.error=function(e){this._o.onError(e)},t.prototype.completed=function(){this._obj.defaultValue===s?this._o.onError(new Ze):(this._o.onNext(this._obj.defaultValue),this._o.onCompleted())},t}(En);wn.first=function(){var e={},t=this;if(e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},He(e.predicate)){var n=e.predicate;e.predicate=pt(n,e.thisArg,3)}return new $r(function(n){return t.subscribe(new kr(n,e,t))},t)},wn.last=function(){var e={},t=this;if(e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},He(e.predicate)){var n=e.predicate;e.predicate=pt(n,e.thisArg,3)}return new $r(function(n){var r,o=!1,i=0;return t.subscribe(function(s){if(e.predicate){var a=c(e.predicate)(s,i++,t);if(a===Ge)return n.onError(a.e);a&&(o=!0,r=s)}else e.predicate||(o=!0,r=s)},function(e){n.onError(e)},function(){o?(n.onNext(r),n.onCompleted()):e.defaultValue===s?n.onError(new Ze):(n.onNext(e.defaultValue),n.onCompleted())})},t)},wn.find=function(e,t){return Z(this,e,t,!1)},wn.findIndex=function(e,t){return Z(this,e,t,!0)},wn.toSet=function(){if("undefined"==typeof Le.Set)throw new TypeError;var e=this;return new $r(function(t){var n=new Le.Set;return e.subscribe(function(e){n.add(e)},function(e){t.onError(e)},function(){t.onNext(n),t.onCompleted()})},e)},wn.toMap=function(e,t){if("undefined"==typeof Le.Map)throw new TypeError;var n=this;return new $r(function(r){var o=new Le.Map;return n.subscribe(function(n){var i;try{i=e(n)}catch(s){return void r.onError(s)}var a=n;if(t)try{a=t(n)}catch(s){return void r.onError(s)}o.set(i,a)},function(e){r.onError(e)},function(){r.onNext(o),r.onCompleted()})},n)},Sn.wrap=function(e){function t(){return Sn.spawn.call(this,e.apply(this,arguments))}return t.__generatorFunction__=e,t};var Mr=Sn.spawn=function(){for(var e=arguments[0],t=this,n=[],r=1,o=arguments.length;o>r;r++)n.push(arguments[r]);return new $r(function(r){function o(t){var n=c(e.next).call(e,t);return n===Ge?r.onError(n.e):void s(n)}function i(t){var n=c(e.next).call(e,t);return n===Ge?r.onError(n.e):void s(n)}function s(e){if(e.done)return r.onNext(e.value),void r.onCompleted();var n=ee.call(t,e.value);Sn.isObservable(n)?a.add(n.subscribe(o,i)):i(new TypeError("type not supported"))}var a=new qt;return He(e)&&(e=e.apply(t,n)),e&&He(e.next)?(o(),a):(r.onNext(e),r.onCompleted())})};Sn.start=function(e,t,n){return Ar(e,t,n)()};var Ar=Sn.toAsync=function(e,t,n){return nn(n)||(n=hn),function(){var r=arguments,o=new to;return n.schedule(function(){var n;try{n=e.apply(t,r)}catch(i){return void o.onError(i)}o.onNext(n),o.onCompleted()}),o.asObservable()}};Sn.fromCallback=function(e,t,n){return function(){"undefined"==typeof t&&(t=this);for(var r=arguments.length,o=new Array(r),i=0;r>i;i++)o[i]=arguments[i];return se(e,t,n,o)}},Sn.fromNodeCallback=function(e,t,n){return function(){"undefined"==typeof t&&(t=this);for(var r=arguments.length,o=new Array(r),i=0;r>i;i++)o[i]=arguments[i];return ue(e,t,n,o)}},le.prototype.dispose=function(){this.isDisposed||(this._e.removeEventListener(this._n,this._fn,!1),this.isDisposed=!0)},Fe.config.useNativeEvents=!1,Sn.fromEvent=function(e,t,n){return e.addListener?Rr(function(n){e.addListener(t,n)},function(n){e.removeListener(t,n)},n):Fe.config.useNativeEvents||"function"!=typeof e.on||"function"!=typeof e.off?new $r(function(r){return pe(e,t,he(r,n))}).publish().refCount():Rr(function(n){e.on(t,n)},function(n){e.off(t,n)},n)};var Rr=Sn.fromEventPattern=function(e,t,n,r){return nn(r)||(r=an),new $r(function(r){function o(){var e=arguments[0];return He(n)&&(e=c(n).apply(null,arguments),e===Ge)?r.onError(e.e):void r.onNext(e)}var i=e(o);return Ht(function(){He(t)&&t(o,i)})}).publish().refCount()};Sn.startAsync=function(e){var t;try{t=e()}catch(n){return or(n)}return Ln(t)};var Ir=function(e){function t(e){var t=this.source.publish(),n=t.subscribe(e),r=Gt,o=this.pauser.distinctUntilChanged().subscribe(function(e){e?r=t.connect():(r.dispose(),r=Gt)});return new qt(n,r,o)}function n(n,r){this.source=n,this.controller=new eo,r&&r.subscribe?this.pauser=this.controller.merge(r):this.pauser=this.controller,e.call(this,t,n)}return Ft(n,e),n.prototype.pause=function(){this.controller.onNext(!1)},n.prototype.resume=function(){this.controller.onNext(!0)},n}(Sn);wn.pausable=function(e){return new Ir(this,e)};var jr=function(e){function t(e){function t(){for(;r.length>0;)e.onNext(r.shift())}var n,r=[],o=de(this.source,this.pauser.startWith(!1).distinctUntilChanged(),function(e,t){return{data:e,shouldFire:t}}).subscribe(function(o){n!==s&&o.shouldFire!=n?(n=o.shouldFire,o.shouldFire&&t()):(n=o.shouldFire,o.shouldFire?e.onNext(o.data):r.push(o.data))},function(n){t(),e.onError(n)},function(){t(),e.onCompleted()});return o}function n(n,r){this.source=n,this.controller=new eo,r&&r.subscribe?this.pauser=this.controller.merge(r):this.pauser=this.controller,e.call(this,t,n)}return Ft(n,e),n.prototype.pause=function(){this.controller.onNext(!1)},n.prototype.resume=function(){this.controller.onNext(!0)},n}(Sn);wn.pausableBuffered=function(e){return new jr(this,e)};var Lr=function(e){function t(e){return this.source.subscribe(e)}function n(n,r,o){e.call(this,t,n),this.subject=new Fr(r,o),this.source=n.multicast(this.subject).refCount()}return Ft(n,e),n.prototype.request=function(e){return this.subject.request(null==e?-1:e)},n}(Sn),Fr=function(e){function t(e){return this.subject.subscribe(e)}function n(n,r){null==n&&(n=!0),e.call(this,t),this.subject=new eo,this.enableQueue=n,this.queue=n?[]:null,this.requestedCount=0,this.requestedDisposable=null,this.error=null,this.hasFailed=!1,this.hasCompleted=!1,this.scheduler=r||un}return Ft(n,e),Ut(n.prototype,gn,{onCompleted:function(){this.hasCompleted=!0,this.enableQueue&&0!==this.queue.length?this.queue.push(fn.createOnCompleted()):(this.subject.onCompleted(),this.disposeCurrentRequest())},onError:function(e){this.hasFailed=!0,this.error=e,this.enableQueue&&0!==this.queue.length?this.queue.push(fn.createOnError(e)):(this.subject.onError(e),this.disposeCurrentRequest())},onNext:function(e){this.requestedCount<=0?this.enableQueue&&this.queue.push(fn.createOnNext(e)):(0===this.requestedCount--&&this.disposeCurrentRequest(),this.subject.onNext(e))},_processRequest:function(e){if(this.enableQueue)for(;this.queue.length>0&&(e>0||"N"!==this.queue[0].kind);){var t=this.queue.shift();t.accept(this.subject),"N"===t.kind?e--:(this.disposeCurrentRequest(),this.queue=[])}return e},request:function(e){this.disposeCurrentRequest();var t=this;return this.requestedDisposable=this.scheduler.scheduleWithState(e,function(e,n){var r=t._processRequest(n),o=t.hasCompleted||t.hasFailed;return!o&&r>0?(t.requestedCount=r,Ht(function(){t.requestedCount=0})):void 0}),this.requestedDisposable},disposeCurrentRequest:function(){this.requestedDisposable&&(this.requestedDisposable.dispose(),this.requestedDisposable=null)}}),n}(Sn);wn.controlled=function(e,t){return e&&nn(e)&&(t=e,e=!0),null==e&&(e=!0),new Lr(this,e,t)};var Ur=function(e){function t(e){this.subscription=this.source.subscribe(new r(e,this,this.subscription));var t=this;return hn.schedule(function(){t.source.request(1)}),this.subscription}function n(n){e.call(this,t,n),this.source=n}Ft(n,e);var r=function(e){function t(t,n,r){e.call(this),this.observer=t,this.observable=n,this.cancel=r}Ft(t,e);var n=t.prototype;return n.completed=function(){this.observer.onCompleted(),this.dispose()},n.error=function(e){this.observer.onError(e),this.dispose()},n.next=function(e){this.observer.onNext(e);var t=this;hn.schedule(function(){t.observable.source.request(1)})},n.dispose=function(){this.observer=null,this.cancel&&(this.cancel.dispose(),this.cancel=null),e.prototype.dispose.call(this)},t}(En);return n}(Sn);Lr.prototype.stopAndWait=function(){return new Ur(this)};var Wr=function(e){function t(e){this.subscription=this.source.subscribe(new r(e,this,this.subscription));var t=this;return hn.schedule(function(){t.source.request(t.windowSize)}),this.subscription}function n(n,r){e.call(this,t,n),this.source=n,this.windowSize=r}Ft(n,e);var r=function(e){function t(e,t,n){this.observer=e,this.observable=t,this.cancel=n,this.received=0}Ft(t,e);var n=t.prototype;return n.completed=function(){this.observer.onCompleted(),this.dispose()},n.error=function(e){this.observer.onError(e),this.dispose()},n.next=function(e){if(this.observer.onNext(e),this.received=++this.received%this.observable.windowSize,0===this.received){var t=this;hn.schedule(function(){t.observable.source.request(t.observable.windowSize)})}},n.dispose=function(){this.observer=null,this.cancel&&(this.cancel.dispose(),this.cancel=null),e.prototype.dispose.call(this)},t}(En);return n}(Sn);Lr.prototype.windowed=function(e){return new Wr(this,e)},wn.pipe=function(e){function t(){n.resume()}var n=this.pausableBuffered();return e.addListener("drain",t),n.subscribe(function(t){!e.write(String(t))&&n.pause()},function(t){e.emit("error",t)},function(){!e._isStdio&&e.end(),e.removeListener("drain",t)}),n.resume(),e},wn.multicast=function(e,t){var n=this;return"function"==typeof e?new $r(function(r){var o=n.multicast(e());return new qt(t(o).subscribe(r),o.connect())},n):new zr(n,e)},wn.publish=function(e){return e&&He(e)?this.multicast(function(){return new eo},e):this.multicast(new eo)},wn.share=function(){return this.publish().refCount()},wn.publishLast=function(e){return e&&He(e)?this.multicast(function(){return new to},e):this.multicast(new to)},wn.publishValue=function(e,t){return 2===arguments.length?this.multicast(function(){return new Br(t)},e):this.multicast(new Br(e))},wn.shareValue=function(e){return this.publishValue(e).refCount()},wn.replay=function(e,t,n,r){return e&&He(e)?this.multicast(function(){return new qr(t,n,r)},e):this.multicast(new qr(t,n,r))},wn.shareReplay=function(e,t,n){return this.replay(null,e,t,n).refCount()};var Vr=function(e,t){this.subject=e,this.observer=t};Vr.prototype.dispose=function(){if(!this.subject.isDisposed&&null!==this.observer){var e=this.subject.observers.indexOf(this.observer);this.subject.observers.splice(e,1),this.observer=null}};var Br=Fe.BehaviorSubject=function(e){function t(e){return Qt(this),this.isStopped?(this.hasError?e.onError(this.error):e.onCompleted(),Gt):(this.observers.push(e),e.onNext(this.value),new Vr(this,e))}function n(n){e.call(this,t),this.value=n,this.observers=[],this.isDisposed=!1,this.isStopped=!1,this.hasError=!1}return Ft(n,e),Ut(n.prototype,gn,{getValue:function(){if(Qt(this),this.hasError)throw this.error;return this.value},hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(Qt(this),!this.isStopped){this.isStopped=!0;for(var e=0,t=a(this.observers),n=t.length;n>e;e++)t[e].onCompleted();this.observers.length=0}},onError:function(e){if(Qt(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=e;for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onError(e);this.observers.length=0}},onNext:function(e){if(Qt(this),!this.isStopped){this.value=e;for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onNext(e)}},dispose:function(){this.isDisposed=!0,this.observers=null,this.value=null,this.exception=null}}),n}(Sn),qr=Fe.ReplaySubject=function(e){function t(e,t){return Ht(function(){t.dispose(),!e.isDisposed&&e.observers.splice(e.observers.indexOf(t),1)})}function n(e){var n=new Cn(this.scheduler,e),r=t(this,n);Qt(this),this._trim(this.scheduler.now()),this.observers.push(n);for(var o=0,i=this.q.length;i>o;o++)n.onNext(this.q[o].value);return this.hasError?n.onError(this.error):this.isStopped&&n.onCompleted(),n.ensureActive(),r}function r(t,r,i){this.bufferSize=null==t?o:t,this.windowSize=null==r?o:r,this.scheduler=i||un,this.q=[],this.observers=[],this.isStopped=!1,this.isDisposed=!1,this.hasError=!1,this.error=null,e.call(this,n)}var o=Math.pow(2,53)-1;return Ft(r,e),Ut(r.prototype,gn.prototype,{hasObservers:function(){return this.observers.length>0},_trim:function(e){for(;this.q.length>this.bufferSize;)this.q.shift();for(;this.q.length>0&&e-this.q[0].interval>this.windowSize;)this.q.shift()},onNext:function(e){if(Qt(this),!this.isStopped){var t=this.scheduler.now();this.q.push({interval:t,value:e}),this._trim(t);for(var n=0,r=a(this.observers),o=r.length;o>n;n++){var i=r[n];i.onNext(e),i.ensureActive()}}},onError:function(e){if(Qt(this),!this.isStopped){this.isStopped=!0,this.error=e,this.hasError=!0;var t=this.scheduler.now();this._trim(t);for(var n=0,r=a(this.observers),o=r.length;o>n;n++){var i=r[n];i.onError(e),i.ensureActive()}this.observers.length=0}},onCompleted:function(){if(Qt(this),!this.isStopped){this.isStopped=!0;var e=this.scheduler.now();this._trim(e);for(var t=0,n=a(this.observers),r=n.length;r>t;t++){var o=n[t];o.onCompleted(),o.ensureActive()}this.observers.length=0}},dispose:function(){this.isDisposed=!0,this.observers=null}}),r}(Sn),zr=Fe.ConnectableObservable=function(e){function t(t,n){var r,o=!1,i=t.asObservable();this.connect=function(){return o||(o=!0,r=new qt(i.subscribe(n),Ht(function(){o=!1}))),r},e.call(this,function(e){return n.subscribe(e)})}return Ft(t,e),t.prototype.refCount=function(){var e,t=0,n=this;return new $r(function(r){var o=1===++t,i=n.subscribe(r);return o&&(e=n.connect()),function(){i.dispose(),0===--t&&e.dispose()}})},t}(Sn);wn.singleInstance=function(){function e(){return r||(r=!0,t=n["finally"](function(){r=!1}).publish().refCount()),t}var t,n=this,r=!1;return new $r(function(t){return e().subscribe(t)})},wn.join=function(e,t,n,r){var o=this;return new $r(function(i){var s=new qt,a=!1,u=!1,l=0,p=0,h=new Yr,d=new Yr,f=function(e){i.onError(e)};return s.add(o.subscribe(function(e){var n=l++,o=new Xt;h.set(n,e),s.add(o);var u=c(t)(e);return u===Ge?i.onError(u.e):(o.setDisposable(u.take(1).subscribe(Ue,f,function(){h["delete"](n)&&0===h.size&&a&&i.onCompleted(),s.remove(o)})),void d.forEach(function(t){var n=c(r)(e,t);return n===Ge?i.onError(n.e):void i.onNext(n)}))},f,function(){a=!0,(u||0===h.size)&&i.onCompleted()})),s.add(e.subscribe(function(e){var t=p++,o=new Xt;d.set(t,e),s.add(o);var a=c(n)(e);return a===Ge?i.onError(a.e):(o.setDisposable(a.take(1).subscribe(Ue,f,function(){d["delete"](t)&&0===d.size&&u&&i.onCompleted(),s.remove(o)})),void h.forEach(function(t){var n=c(r)(t,e);return n===Ge?i.onError(n.e):void i.onNext(n)}))},f,function(){u=!0,(a||0===d.size)&&i.onCompleted()})),s},o)},wn.groupJoin=function(e,t,n,r){var o=this;return new $r(function(i){function s(e){}var a=new qt,u=new Jt(a),l=new Yr,p=new Yr,h=0,d=0,s=function(e){return function(t){t.onError(e)}};return a.add(o.subscribe(function(e){var n=new eo,o=h++;l.set(o,n);var d=c(r)(e,Wt(n,u));if(d===Ge)return l.forEach(s(d.e)),i.onError(d.e);i.onNext(d),p.forEach(function(e){n.onNext(e)});var f=new Xt;a.add(f);var m=c(t)(e);return m===Ge?(l.forEach(s(m.e)),i.onError(m.e)):void f.setDisposable(m.take(1).subscribe(Ue,function(e){l.forEach(s(e)),i.onError(e)},function(){l["delete"](o)&&n.onCompleted(),a.remove(f)}))},function(e){l.forEach(s(e)),i.onError(e)},function(){i.onCompleted()})),a.add(e.subscribe(function(e){var t=d++;p.set(t,e);var r=new Xt;a.add(r);var o=c(n)(e);return o===Ge?(l.forEach(s(o.e)),i.onError(o.e)):(r.setDisposable(o.take(1).subscribe(Ue,function(e){l.forEach(s(e)),i.onError(e)},function(){p["delete"](t),a.remove(r)})),void l.forEach(function(t){t.onNext(e)}))},function(e){l.forEach(s(e)),i.onError(e)})),u},o)},wn.buffer=function(){return this.window.apply(this,arguments).flatMap(z)},wn.window=function(e,t){return 1===arguments.length&&"function"!=typeof arguments[0]?me.call(this,e):"function"==typeof e?ve.call(this,e):fe.call(this,e,t)},wn.pairwise=function(){var e=this;return new $r(function(t){var n,r=!1;return e.subscribe(function(e){r?t.onNext([n,e]):r=!0,n=e},t.onError.bind(t),t.onCompleted.bind(t))},e)},wn.partition=function(e,t){return[this.filter(e,t),this.filter(function(n,r,o){return!e.call(t,n,r,o)})]};var Kr=function(e){function t(e,t){this.c=e,this.s=t}return Ft(t,e),t.prototype[st]=function(){var e=this;return{next:function(){return e.c()?{done:!1,value:e.s}:{done:!0,value:void 0}}}},t}(Dn);wn.letBind=wn.let=function(e){return e(this)},Sn["if"]=function(e,t,n){return Un(function(){return n||(n=Bn()),Ke(t)&&(t=Ln(t)),Ke(n)&&(n=Ln(n)),"function"==typeof n.now&&(n=Bn(n)),e()?t:n})},Sn["for"]=Sn.forIn=function(e,t,n){return In(e,t,n).concat()};var Hr=Sn["while"]=Sn.whileDo=function(e,t){return Ke(t)&&(t=Ln(t)),ye(e,t).concat()};wn.doWhile=function(e){return cr([this,Hr(e,this)])},Sn["case"]=function(e,t,n){return Un(function(){Ke(n)&&(n=Ln(n)),n||(n=Bn()),nn(n)&&(n=Bn(n));var r=t[e()];return Ke(r)&&(r=Ln(r)),r||n})},wn.expand=function(e,t){nn(t)||(t=an);var n=this;return new $r(function(r){var o=[],i=new $t,s=new qt(i),a=0,u=!1,c=function(){var n=!1;o.length>0&&(n=!u,u=!0),n&&i.setDisposable(t.scheduleRecursive(function(t){var n;if(!(o.length>0))return void(u=!1);n=o.shift();var i=new Xt;s.add(i),i.setDisposable(n.subscribe(function(t){r.onNext(t);var n=null;try{n=e(t)}catch(i){r.onError(i)}o.push(n),a++,c()},r.onError.bind(r),function(){s.remove(i),a--,0===a&&r.onCompleted()})),t()}))};return o.push(n),a++,c(),s},this)},Sn.forkJoin=function(){var e=[];if(Array.isArray(arguments[0]))e=arguments[0];else for(var t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return new $r(function(t){var n=e.length;if(0===n)return t.onCompleted(),Gt;for(var r=new qt,o=!1,i=new Array(n),s=new Array(n),a=new Array(n),u=0;n>u;u++)!function(u){var c=e[u];Ke(c)&&(c=Ln(c)),r.add(c.subscribe(function(e){o||(i[u]=!0,a[u]=e)},function(e){o=!0,t.onError(e),r.dispose()},function(){if(!o){if(!i[u])return void t.onCompleted();s[u]=!0;for(var e=0;n>e;e++)if(!s[e])return;o=!0,t.onNext(a),t.onCompleted()}}))}(u);return r})},wn.forkJoin=function(e,t){var n=this;return new $r(function(r){var o,i,s=!1,a=!1,u=!1,c=!1,l=new Xt,p=new Xt;return Ke(e)&&(e=Ln(e)),l.setDisposable(n.subscribe(function(e){u=!0,o=e},function(e){p.dispose(),r.onError(e)},function(){if(s=!0,a)if(u)if(c){var e;try{e=t(o,i)}catch(n){return void r.onError(n)}r.onNext(e),r.onCompleted()}else r.onCompleted();else r.onCompleted()})),p.setDisposable(e.subscribe(function(e){c=!0,i=e},function(e){l.dispose(),r.onError(e)},function(){if(a=!0,s)if(u)if(c){var e;try{e=t(o,i)}catch(n){return void r.onError(n)}r.onNext(e),r.onCompleted()}else r.onCompleted();else r.onCompleted()})),new qt(l,p)},n)},wn.manySelect=wn.extend=function(e,t){nn(t)||(t=an);var n=this;return Un(function(){var r;return n.map(function(e){var t=new Gr(e);return r&&r.onNext(e),r=t,t}).tap(Ue,function(e){r&&r.onError(e)},function(){r&&r.onCompleted()}).observeOn(t).map(e)},n)};var Gr=function(e){function t(e){var t=this,n=new qt;return n.add(un.schedule(function(){e.onNext(t.head),n.add(t.tail.mergeAll().subscribe(e))})),n}function n(n){e.call(this,t),this.head=n,this.tail=new to}return Ft(n,e),Ut(n.prototype,gn,{onCompleted:function(){this.onNext(Sn.empty())},onError:function(e){this.onNext(Sn["throw"](e))},onNext:function(e){this.tail.onNext(e),this.tail.onCompleted()}}),n}(Sn),Yr=Le.Map||function(){function e(){this.size=0,this._values=[],this._keys=[]}return e.prototype["delete"]=function(e){var t=this._keys.indexOf(e);return-1===t?!1:(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},e.prototype.get=function(e){var t=this._keys.indexOf(e);return-1===t?s:this._values[t]},e.prototype.set=function(e,t){var n=this._keys.indexOf(e);return-1===n?(this._keys.push(e),this._values.push(t),this.size++):this._values[n]=t,this},e.prototype.forEach=function(e,t){for(var n=0;ni;i++)o.push(we(e,this.expression.patterns[i],t.onError.bind(t)));var a=new Ee(o,function(){var e;try{e=r.selector.apply(r,arguments)}catch(n){return void t.onError(n)}t.onNext(e)},function(){for(var e=0,t=o.length;t>e;e++)o[e].removeActivePlan(a);n(a)});for(i=0,s=o.length;s>i;i++)o[i].addActivePlan(a);return a},Ee.prototype.dequeue=function(){this.joinObservers.forEach(function(e){e.queue.shift()})},Ee.prototype.match=function(){var e,t,n=!0;for(e=0,t=this.joinObserverArray.length;t>e;e++)if(0===this.joinObserverArray[e].queue.length){n=!1;break}if(n){var r=[],o=!1;for(e=0,t=this.joinObserverArray.length;t>e;e++)r.push(this.joinObserverArray[e].queue[0]),"C"===this.joinObserverArray[e].queue[0].kind&&(o=!0);if(o)this.onCompleted();else{this.dequeue();var i=[];for(e=0,t=r.length;en;n++)t[n].match()}},n.error=Ue,n.completed=Ue,n.addActivePlan=function(e){this.activePlans.push(e)},n.subscribe=function(){this.subscription.setDisposable(this.source.materialize().subscribe(this))},n.removeActivePlan=function(e){this.activePlans.splice(this.activePlans.indexOf(e),1),0===this.activePlans.length&&this.dispose(); -},n.dispose=function(){e.prototype.dispose.call(this),this.isDisposed||(this.isDisposed=!0,this.subscription.dispose())},t}(En);wn.and=function(e){return new ge([this,e])},wn.thenDo=function(e){return new ge([this]).thenDo(e)},Sn.when=function(){var e,t=arguments.length;if(Array.isArray(arguments[0]))e=arguments[0];else{e=new Array(t);for(var n=0;t>n;n++)e[n]=arguments[n]}return new $r(function(t){var n=[],r=new Yr,o=bn(function(e){t.onNext(e)},function(e){r.forEach(function(t){t.onError(e)}),t.onError(e)},function(e){t.onCompleted()});try{for(var i=0,s=e.length;s>i;i++)n.push(e[i].activate(r,o,function(e){var r=n.indexOf(e);n.splice(r,1),0===n.length&&t.onCompleted()}))}catch(a){or(a).subscribe(t)}var u=new qt;return r.forEach(function(e){e.subscribe(),u.add(e)}),u})};var Xr=Sn.interval=function(e,t){return _e(e,e,nn(t)?t:hn)};Sn.timer=function(e,t,n){var r;return nn(n)||(n=hn),null!=t&&"number"==typeof t?r=t:nn(t)&&(n=t),e instanceof Date&&r===s?Te(e.getTime(),n):e instanceof Date&&r!==s?xe(e.getTime(),t,n):r===s?Ce(e,n):_e(e,r,n)},wn.delay=function(e,t){return nn(t)||(t=hn),e instanceof Date?Ne(this,e.getTime(),t):Se(this,e,t)},wn.debounce=function(e,t){nn(t)||(t=hn);var n=this;return new $r(function(r){var o,i=new $t,s=!1,a=0,u=n.subscribe(function(n){s=!0,o=n,a++;var u=a,c=new Xt;i.setDisposable(c),c.setDisposable(t.scheduleWithRelative(e,function(){s&&a===u&&r.onNext(o),s=!1}))},function(e){i.dispose(),r.onError(e),s=!1,a++},function(){i.dispose(),s&&r.onNext(o),r.onCompleted(),s=!1,a++});return new qt(u,i)},this)},wn.throttle=function(e,t){return this.debounce(e,t)},wn.windowWithTime=function(e,t,n){var r,o=this;return null==t&&(r=e),nn(n)||(n=hn),"number"==typeof t?r=t:nn(t)&&(r=e,n=t),new $r(function(t){function i(){var e=new Xt,o=!1,s=!1;p.setDisposable(e),c===u?(o=!0,s=!0):u>c?o=!0:s=!0;var d=o?c:u,f=d-h;h=d,o&&(c+=r),s&&(u+=r),e.setDisposable(n.scheduleWithRelative(f,function(){if(s){var e=new eo;l.push(e),t.onNext(Wt(e,a))}o&&l.shift().onCompleted(),i()}))}var s,a,u=r,c=e,l=[],p=new $t,h=0;return s=new qt(p),a=new Jt(s),l.push(new eo),t.onNext(Wt(l[0],a)),i(),s.add(o.subscribe(function(e){for(var t=0,n=l.length;n>t;t++)l[t].onNext(e)},function(e){for(var n=0,r=l.length;r>n;n++)l[n].onError(e);t.onError(e)},function(){for(var e=0,n=l.length;n>e;e++)l[e].onCompleted();t.onCompleted()})),a},o)},wn.windowWithTimeOrCount=function(e,t,n){var r=this;return nn(n)||(n=hn),new $r(function(o){function i(t){var r=new Xt;s.setDisposable(r),r.setDisposable(n.scheduleWithRelative(e,function(){if(t===l){c=0;var e=++l;p.onCompleted(),p=new eo,o.onNext(Wt(p,u)),i(e)}}))}var s=new $t,a=new qt(s),u=new Jt(a),c=0,l=0,p=new eo;return o.onNext(Wt(p,u)),i(0),a.add(r.subscribe(function(e){var n=0,r=!1;p.onNext(e),++c===t&&(r=!0,c=0,n=++l,p.onCompleted(),p=new eo,o.onNext(Wt(p,u))),r&&i(n)},function(e){p.onError(e),o.onError(e)},function(){p.onCompleted(),o.onCompleted()})),u},r)},wn.bufferWithTime=function(e,t,n){return this.windowWithTime(e,t,n).flatMap(z)},wn.bufferWithTimeOrCount=function(e,t,n){return this.windowWithTimeOrCount(e,t,n).flatMap(z)},wn.timeInterval=function(e){var t=this;return nn(e)||(e=hn),Un(function(){var n=e.now();return t.map(function(t){var r=e.now(),o=r-n;return n=r,{value:t,interval:o}})})},wn.timestamp=function(e){return nn(e)||(e=hn),this.map(function(t){return{value:t,timestamp:e.now()}})},wn.sample=wn.throttleLatest=function(e,t){return nn(t)||(t=hn),"number"==typeof e?Oe(this,Xr(e,t)):Oe(this,e)},wn.timeout=function(e,t,n){(null==t||"string"==typeof t)&&(t=or(new Error(t||"Timeout"))),nn(n)||(n=hn);var r=this,o=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new $r(function(i){function s(){var r=a;p.setDisposable(n[o](e,function(){a===r&&(Ke(t)&&(t=Ln(t)),c.setDisposable(t.subscribe(i)))}))}var a=0,u=new Xt,c=new $t,l=!1,p=new $t;return c.setDisposable(u),s(),u.setDisposable(r.subscribe(function(e){l||(a++,i.onNext(e),s())},function(e){l||(a++,i.onError(e))},function(){l||(a++,i.onCompleted())})),new qt(c,p)},r)},Sn.generateWithAbsoluteTime=function(e,t,n,r,o,i){return nn(i)||(i=hn),new $r(function(s){var a=!0,u=!1;return i.scheduleRecursiveWithAbsoluteAndState(e,i.now(),function(e,i){u&&s.onNext(e);try{if(a?a=!1:e=n(e),u=t(e))var c=r(e),l=o(e)}catch(p){return void s.onError(p)}u?i(c,l):s.onCompleted()})})},Sn.generateWithRelativeTime=function(e,t,n,r,o,i){return nn(i)||(i=hn),new $r(function(s){var a=!0,u=!1;return i.scheduleRecursiveWithRelativeAndState(e,0,function(e,i){u&&s.onNext(e);try{if(a?a=!1:e=n(e),u=t(e))var c=r(e),l=o(e)}catch(p){return void s.onError(p)}u?i(c,l):s.onCompleted()})})},wn.delaySubscription=function(e,t){var n=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative",r=this;return nn(t)||(t=hn),new $r(function(o){var i=new $t;return i.setDisposable(t[n](e,function(){i.setDisposable(r.subscribe(o))})),i},this)},wn.delayWithSelector=function(e,t){var n,r,o=this;return He(e)?r=e:(n=e,r=t),new $r(function(e){function t(){u.setDisposable(o.subscribe(function(t){var n=c(r)(t);if(n===Ge)return e.onError(n.e);var o=new Xt;s.add(o),o.setDisposable(n.subscribe(function(){e.onNext(t),s.remove(o),i()},function(t){e.onError(t)},function(){e.onNext(t),s.remove(o),i()}))},function(t){e.onError(t)},function(){a=!0,u.dispose(),i()}))}function i(){a&&0===s.length&&e.onCompleted()}var s=new qt,a=!1,u=new $t;return n?u.setDisposable(n.subscribe(t,function(t){e.onError(t)},t)):t(),new qt(u,s)},this)},wn.timeoutWithSelector=function(e,t,n){1===arguments.length&&(t=e,e=$n()),n||(n=or(new Error("Timeout")));var r=this;return new $r(function(o){function i(e){function t(){return l===r}var r=l,i=new Xt;u.setDisposable(i),i.setDisposable(e.subscribe(function(){t()&&a.setDisposable(n.subscribe(o)),i.dispose()},function(e){t()&&o.onError(e)},function(){t()&&a.setDisposable(n.subscribe(o))}))}function s(){var e=!p;return e&&l++,e}var a=new $t,u=new $t,c=new Xt;a.setDisposable(c);var l=0,p=!1;return i(e),c.setDisposable(r.subscribe(function(e){if(s()){o.onNext(e);var n;try{n=t(e)}catch(r){return void o.onError(r)}i(Ke(n)?Ln(n):n)}},function(e){s()&&o.onError(e)},function(){s()&&o.onCompleted()})),new qt(a,u)},r)},wn.debounceWithSelector=function(e){var t=this;return new $r(function(n){var r,o=!1,i=new $t,s=0,a=t.subscribe(function(t){var a=c(e)(t);if(a===Ge)return n.onError(a.e);Ke(a)&&(a=Ln(a)),o=!0,r=t,s++;var u=s,l=new Xt;i.setDisposable(l),l.setDisposable(a.subscribe(function(){o&&s===u&&n.onNext(r),o=!1,l.dispose()},function(e){n.onError(e)},function(){o&&s===u&&n.onNext(r),o=!1,l.dispose()}))},function(e){i.dispose(),n.onError(e),o=!1,s++},function(){i.dispose(),o&&n.onNext(r),n.onCompleted(),o=!1,s++});return new qt(a,i)},t)},wn.skipLastWithTime=function(e,t){nn(t)||(t=hn);var n=this;return new $r(function(r){var o=[];return n.subscribe(function(n){var i=t.now();for(o.push({interval:i,value:n});o.length>0&&i-o[0].interval>=e;)r.onNext(o.shift().value)},function(e){r.onError(e)},function(){for(var n=t.now();o.length>0&&n-o[0].interval>=e;)r.onNext(o.shift().value);r.onCompleted()})},n)},wn.takeLastWithTime=function(e,t){var n=this;return nn(t)||(t=hn),new $r(function(r){var o=[];return n.subscribe(function(n){var r=t.now();for(o.push({interval:r,value:n});o.length>0&&r-o[0].interval>=e;)o.shift()},function(e){r.onError(e)},function(){for(var n=t.now();o.length>0;){var i=o.shift();n-i.interval<=e&&r.onNext(i.value)}r.onCompleted()})},n)},wn.takeLastBufferWithTime=function(e,t){var n=this;return nn(t)||(t=hn),new $r(function(r){var o=[];return n.subscribe(function(n){var r=t.now();for(o.push({interval:r,value:n});o.length>0&&r-o[0].interval>=e;)o.shift()},function(e){r.onError(e)},function(){for(var n=t.now(),i=[];o.length>0;){var s=o.shift();n-s.interval<=e&&i.push(s.value)}r.onNext(i),r.onCompleted()})},n)},wn.takeWithTime=function(e,t){var n=this;return nn(t)||(t=hn),new $r(function(r){return new qt(t.scheduleWithRelative(e,function(){r.onCompleted()}),n.subscribe(r))},n)},wn.skipWithTime=function(e,t){var n=this;return nn(t)||(t=hn),new $r(function(r){var o=!1;return new qt(t.scheduleWithRelative(e,function(){o=!0}),n.subscribe(function(e){o&&r.onNext(e)},r.onError.bind(r),r.onCompleted.bind(r)))},n)},wn.skipUntilWithTime=function(e,t){nn(t)||(t=hn);var n=this,r=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new $r(function(o){var i=!1;return new qt(t[r](e,function(){i=!0}),n.subscribe(function(e){i&&o.onNext(e)},function(e){o.onError(e)},function(){o.onCompleted()}))},n)},wn.takeUntilWithTime=function(e,t){nn(t)||(t=hn);var n=this,r=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new $r(function(o){return new qt(t[r](e,function(){o.onCompleted()}),n.subscribe(o))},n)},wn.throttleFirst=function(e,t){nn(t)||(t=hn);var n=+e||0;if(0>=n)throw new RangeError("windowDuration cannot be less or equal zero.");var r=this;return new $r(function(e){var o=0;return r.subscribe(function(r){var i=t.now();(0===o||i-o>=n)&&(o=i,e.onNext(r))},function(t){e.onError(t)},function(){e.onCompleted()})},r)},wn.transduce=function(e){function t(e){return{"@@transducer/init":function(){return e},"@@transducer/step":function(e,t){return e.onNext(t)},"@@transducer/result":function(e){return e.onCompleted()}}}var n=this;return new $r(function(r){var o=e(t(r));return n.subscribe(function(e){var t=c(o["@@transducer/step"]).call(o,r,e);t===Ge&&r.onError(t.e)},function(e){r.onError(e)},function(){o["@@transducer/result"](r)})},n)},wn.switchFirst=function(){var e=this;return new $r(function(t){var n=!1,r=!1,o=new Xt,i=new qt;return i.add(o),o.setDisposable(e.subscribe(function(e){if(!n){n=!0,Ke(e)&&(e=Ln(e));var o=new Xt;i.add(o),o.setDisposable(e.subscribe(function(e){t.onNext(e)},function(e){t.onError(e)},function(){i.remove(o),n=!1,r&&1===i.length&&t.onCompleted()}))}},function(e){t.onError(e)},function(){r=!0,!n&&1===i.length&&t.onCompleted()})),i},this)},wn.flatMapFirst=wn.selectManyFirst=function(e,t,n){return new On(this,e,t,n).switchFirst()},Fe.Observable.prototype.flatMapWithMaxConcurrent=function(e,t,n,r){return new On(this,t,n,r).merge(e)},Fe.VirtualTimeScheduler=function(e){function t(){return this.toDateTimeOffset(this.clock)}function n(e,t){return this.scheduleAbsoluteWithState(e,this.clock,t)}function r(e,t,n){return this.scheduleRelativeWithState(e,this.toRelative(t),n)}function o(e,t,n){return this.scheduleRelativeWithState(e,this.toRelative(t-this.now()),n)}function i(e,t){return t(),Gt}function s(i,s){this.clock=i,this.comparer=s,this.isEnabled=!1,this.queue=new Vt(1024),e.call(this,t,n,r,o)}Ft(s,e);var a=s.prototype;return a.add=ot,a.toDateTimeOffset=ot,a.toRelative=ot,a.schedulePeriodicWithState=function(e,t,n){var r=new sn(this,e,t,n);return r.start()},a.scheduleRelativeWithState=function(e,t,n){var r=this.add(this.clock,t);return this.scheduleAbsoluteWithState(e,r,n)},a.scheduleRelative=function(e,t){return this.scheduleRelativeWithState(t,e,i)},a.start=function(){if(!this.isEnabled){this.isEnabled=!0;do{var e=this.getNext();null!==e?(this.comparer(e.dueTime,this.clock)>0&&(this.clock=e.dueTime),e.invoke()):this.isEnabled=!1}while(this.isEnabled)}},a.stop=function(){this.isEnabled=!1},a.advanceTo=function(e){var t=this.comparer(this.clock,e);if(this.comparer(this.clock,e)>0)throw new tt;if(0!==t&&!this.isEnabled){this.isEnabled=!0;do{var n=this.getNext();null!==n&&this.comparer(n.dueTime,e)<=0?(this.comparer(n.dueTime,this.clock)>0&&(this.clock=n.dueTime),n.invoke()):this.isEnabled=!1}while(this.isEnabled);this.clock=e}},a.advanceBy=function(e){var t=this.add(this.clock,e),n=this.comparer(this.clock,t);if(n>0)throw new tt;0!==n&&this.advanceTo(t)},a.sleep=function(e){var t=this.add(this.clock,e);if(this.comparer(this.clock,t)>=0)throw new tt;this.clock=t},a.getNext=function(){for(;this.queue.length>0;){var e=this.queue.peek();if(!e.isCancelled())return e;this.queue.dequeue()}return null},a.scheduleAbsolute=function(e,t){return this.scheduleAbsoluteWithState(t,e,i)},a.scheduleAbsoluteWithState=function(e,t,n){function r(e,t){return o.queue.remove(i),n(e,t)}var o=this,i=new Zt(this,e,r,t,this.comparer);return this.queue.enqueue(i),i.disposable},s}(en),Fe.HistoricalScheduler=function(e){function t(t,n){var r=null==t?0:t,o=n||qe;e.call(this,r,o)}Ft(t,e);var n=t.prototype;return n.add=function(e,t){return e+t},n.toDateTimeOffset=function(e){return new Date(e).getTime()},n.toRelative=function(e){return e},t}(Fe.VirtualTimeScheduler);var $r=Fe.AnonymousObservable=function(e){function t(e){return e&&He(e.dispose)?e:He(e)?Ht(e):Gt}function n(e,n){var r=n[0],o=n[1],i=c(o.__subscribe).call(o,r);return i!==Ge||r.fail(Ge.e)?void r.setDisposable(t(i)):l(Ge.e)}function r(e){var t=new Jr(e),r=[t,this];return un.scheduleRequired()?un.scheduleWithState(r,n):n(null,r),t}function o(t,n){this.source=n,this.__subscribe=t,e.call(this,r)}return Ft(o,e),o}(Sn),Jr=function(e){function t(t){e.call(this),this.observer=t,this.m=new Xt}Ft(t,e);var n=t.prototype;return n.next=function(e){var t=c(this.observer.onNext).call(this.observer,e);t===Ge&&(this.dispose(),l(t.e))},n.error=function(e){var t=c(this.observer.onError).call(this.observer,e);this.dispose(),t===Ge&&l(t.e)},n.completed=function(){var e=c(this.observer.onCompleted).call(this.observer);this.dispose(),e===Ge&&l(e.e)},n.setDisposable=function(e){this.m.setDisposable(e)},n.getDisposable=function(){return this.m.getDisposable()},n.dispose=function(){e.prototype.dispose.call(this),this.m.dispose()},t}(En),Zr=function(e){function t(e){return this.underlyingObservable.subscribe(e)}function n(n,r,o){e.call(this,t),this.key=n,this.underlyingObservable=o?new $r(function(e){return new qt(o.getDisposable(),r.subscribe(e))}):r}return Ft(n,e),n}(Sn),eo=Fe.Subject=function(e){function t(e){return Qt(this),this.isStopped?this.hasError?(e.onError(this.error),Gt):(e.onCompleted(),Gt):(this.observers.push(e),new Vr(this,e))}function n(){e.call(this,t),this.isDisposed=!1,this.isStopped=!1,this.observers=[],this.hasError=!1}return Ft(n,e),Ut(n.prototype,gn.prototype,{hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(Qt(this),!this.isStopped){this.isStopped=!0;for(var e=0,t=a(this.observers),n=t.length;n>e;e++)t[e].onCompleted();this.observers.length=0}},onError:function(e){if(Qt(this),!this.isStopped){this.isStopped=!0,this.error=e,this.hasError=!0;for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onError(e);this.observers.length=0}},onNext:function(e){if(Qt(this),!this.isStopped)for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onNext(e)},dispose:function(){this.isDisposed=!0,this.observers=null}}),n.create=function(e,t){return new no(e,t)},n}(Sn),to=Fe.AsyncSubject=function(e){function t(e){return Qt(this),this.isStopped?(this.hasError?e.onError(this.error):this.hasValue?(e.onNext(this.value),e.onCompleted()):e.onCompleted(),Gt):(this.observers.push(e),new Vr(this,e))}function n(){e.call(this,t),this.isDisposed=!1,this.isStopped=!1,this.hasValue=!1,this.observers=[],this.hasError=!1}return Ft(n,e),Ut(n.prototype,gn,{hasObservers:function(){return Qt(this),this.observers.length>0},onCompleted:function(){var e,t;if(Qt(this),!this.isStopped){this.isStopped=!0;var n=a(this.observers),t=n.length;if(this.hasValue)for(e=0;t>e;e++){var r=n[e];r.onNext(this.value),r.onCompleted()}else for(e=0;t>e;e++)n[e].onCompleted();this.observers.length=0}},onError:function(e){if(Qt(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=e;for(var t=0,n=a(this.observers),r=n.length;r>t;t++)n[t].onError(e);this.observers.length=0}},onNext:function(e){Qt(this),this.isStopped||(this.value=e,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.exception=null,this.value=null}}),n}(Sn),no=Fe.AnonymousSubject=function(e){function t(e){return this.observable.subscribe(e)}function n(n,r){this.observer=n,this.observable=r,e.call(this,t)}return Ft(n,e),Ut(n.prototype,gn.prototype,{onCompleted:function(){this.observer.onCompleted()},onError:function(e){this.observer.onError(e)},onNext:function(e){this.observer.onNext(e)}}),n}(Sn);Fe.Pauser=function(e){function t(){e.call(this)}return Ft(t,e),t.prototype.pause=function(){this.onNext(!1)},t.prototype.resume=function(){this.onNext(!0)},t}(eo),Le.Rx=Fe,r=function(){return Fe}.call(t,n,t,e),!(r!==s&&(e.exports=r));var ro=m()}).call(this)}).call(t,n(159)(e),function(){return this}(),n(1))},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t1,W=w||O,V={root:{backgroundColor:!this.state.isKeyboardFocused&&!this.state.hovered||this.state.rightIconButtonHovered||this.state.rightIconButtonKeyboardFocused?null:I,color:R,display:"block",fontSize:16,lineHeight:"16px",position:"relative",transition:l.easeOut()},innerDiv:{marginLeft:x*this.state.muiTheme.listItem.nestedLevelDepth,paddingLeft:E||b||w||g?72:16,paddingRight:S||_||N?56:O?72:16,paddingBottom:j?20:16,paddingTop:L||U?16:20,position:"relative"},icons:{height:24,width:24,display:"block",position:"absolute",top:F?12:j?4:0,padding:12},leftIcon:{color:c.grey600,fill:c.grey600,left:4},rightIcon:{color:c.grey400,fill:c.grey400,right:4},avatars:{position:"absolute",top:j?8:16},label:{cursor:"pointer"},leftAvatar:{left:16},rightAvatar:{right:16},leftCheckbox:{position:"absolute",display:"block",width:24,top:F?24:j?16:12,left:16},primaryText:{},rightIconButton:{position:"absolute",display:"block",top:F?12:j?4:0,right:4},rightToggle:{position:"absolute",display:"block",width:54,top:F?25:j?17:13,right:8},secondaryText:{fontSize:14,lineHeight:U?"18px":"16px",height:U?36:16,margin:0,marginTop:4,color:p.textLightBlack,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:U?null:"nowrap",display:U?"-webkit-box":null,WebkitLineClamp:U?2:null,WebkitBoxOrient:U?"vertical":null}},B=[n];E&&this._pushElement(B,E,this.mergeStyles(V.icons,V.leftIcon)),S&&this._pushElement(B,S,this.mergeStyles(V.icons,V.rightIcon)),b&&this._pushElement(B,b,this.mergeStyles(V.avatars,V.leftAvatar)),_&&this._pushElement(B,_,this.mergeStyles(V.avatars,V.rightAvatar)),w&&this._pushElement(B,w,this.mergeStyles(V.leftCheckbox));var q=T.length,z=_||S||N||O,K=q&&t&&!z;if(N||K){var H=N,G={onKeyboardFocus:this._handleRightIconButtonKeyboardFocus,onMouseEnter:this._handleRightIconButtonMouseEnter,onMouseLeave:this._handleRightIconButtonMouseLeave,onTouchTap:this._handleRightIconButtonTouchTap,onMouseDown:this._handleRightIconButtonMouseUp,onMouseUp:this._handleRightIconButtonMouseUp};K&&(H=this.state.open?i.createElement(d,null,i.createElement(f,null)):i.createElement(d,null,i.createElement(m,null)),G.onTouchTap=this._handleNestedListToggle),this._pushElement(B,H,this.mergeStyles(V.rightIconButton),G)}if(O&&this._pushElement(B,O,this.mergeStyles(V.rightToggle)),D){var Y=this._createTextElement(V.primaryText,D,"primaryText");B.push(Y)}if(P){var Y=this._createTextElement(V.secondaryText,P,"secondaryText");B.push(Y)}var Q=T.length?i.createElement(v,{nestedLevel:x+1,open:this.state.open},T):void 0;return W?this._createLabelElement(V,B):s?this._createDisabledElement(V,B):i.createElement("div",null,i.createElement(h,o({},A,{disabled:s,disableKeyboardFocus:u||this.state.rightIconButtonKeyboardFocused,linkButton:!0,onKeyboardFocus:this._handleKeyboardFocus,onMouseLeave:this._handleMouseLeave,onMouseEnter:this._handleMouseEnter,onTouchStart:this._handleTouchStart,onTouchTap:C,ref:"enhancedButton",style:this.mergeAndPrefix(V.root,M)}),i.createElement("div",{style:this.mergeAndPrefix(V.innerDiv,y)},B)),Q)},applyFocusState:function(e){var t=this.refs.enhancedButton,n=i.findDOMNode(t);if(t)switch(e){case"none":n.blur();break;case"focused":n.focus();break;case"keyboard-focused":t.setKeyboardFocus(),n.focus()}},_createDisabledElement:function(e,t){var n=this.props,r=n.innerDivStyle,o=n.style,s=this.mergeAndPrefix(e.root,e.innerDiv,r,o);return i.createElement("div",{style:s},t)},_createLabelElement:function(e,t){var n=this.props,r=n.innerDivStyle,o=n.style,s=this.mergeAndPrefix(e.root,e.innerDiv,r,e.label,o);return i.createElement("label",{style:s},t)},_createTextElement:function(e,t,n){var r=i.isValidElement(t),o=r?this.mergeStyles(e,t.props.style):null;return r?i.cloneElement(t,{key:n,style:o}):i.createElement("div",{key:n,style:e},t)},_handleKeyboardFocus:function(e,t){this.setState({isKeyboardFocused:t}),this.props.onKeyboardFocus(e,t)},_handleMouseEnter:function(e){this.state.touch||this.setState({hovered:!0}),this.props.onMouseEnter(e)},_handleMouseLeave:function(e){this.setState({hovered:!1}),this.props.onMouseLeave(e)},_handleNestedListToggle:function(e){e.stopPropagation(),this.setState({open:!this.state.open}),this.props.onNestedListToggle(this)},_handleRightIconButtonKeyboardFocus:function(e,t){var n=this.props.rightIconButton,r={};r.rightIconButtonKeyboardFocused=t,t&&(r.isKeyboardFocused=!1),this.setState(r),n&&n.props.onKeyboardFocus&&n.props.onKeyboardFocus(e,t)},_handleRightIconButtonMouseDown:function(e){var t=this.props.rightIconButton;e.stopPropagation(),t&&t.props.onMouseDown&&t.props.onMouseDown(e)},_handleRightIconButtonMouseLeave:function(e){var t=this.props.rightIconButton;this.setState({rightIconButtonHovered:!1}),t&&t.props.onMouseLeave&&t.props.onMouseLeave(e)},_handleRightIconButtonMouseEnter:function(e){var t=this.props.rightIconButton;this.setState({rightIconButtonHovered:!0}),t&&t.props.onMouseEnter&&t.props.onMouseEnter(e)},_handleRightIconButtonMouseUp:function(e){var t=this.props.rightIconButton;e.stopPropagation(),t&&t.props.onMouseUp&&t.props.onMouseUp(e)},_handleRightIconButtonTouchTap:function(e){var t=this.props.rightIconButton;e.stopPropagation(),t&&t.props.onTouchTap&&t.props.onTouchTap(e)},_handleTouchStart:function(e){this.setState({touch:!0}),this.props.onTouchStart(e)},_pushElement:function(e,t,n,r){if(t){var s=this.mergeStyles(n,t.props.style);e.push(i.cloneElement(t,o({key:e.length,style:s},r)))}}});e.exports=b},function(e,t,n){"use strict";var r=n(3),o=n(61),i=n(126);e.exports={componentDidMount:function(){this.manuallyBindClickAway||this._bindClickAway()},componentWillUnmount:function(){this._unbindClickAway()},_checkClickAway:function(e){var t=r.findDOMNode(this);e.target!==t&&!i.isDescendant(t,e.target)&&document.documentElement.contains(e.target)&&this.componentClickAway&&this.componentClickAway()},_bindClickAway:function(){o.on(document,"mouseup",this._checkClickAway),o.on(document,"touchend",this._checkClickAway)},_unbindClickAway:function(){o.off(document,"mouseup",this._checkClickAway),o.off(document,"touchend",this._checkClickAway)}}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return e.children||e.label?void 0:new Error("Required prop label or children was not specified in "+n+".")}var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t-1?v(e):h.test(e)?y(e):d.test(t)&&g(e,t)};var w={createMarkupForStyles:function(e){var n="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];"production"!==t.env.NODE_ENV&&b(r,o),null!=o&&(n+=l(r)+":",n+=s(r,o)+";")}return n||null},setValueForStyles:function(e,n){var o=e.style;for(var i in n)if(n.hasOwnProperty(i)){"production"!==t.env.NODE_ENV&&b(i,n[i]);var a=s(i,n[i]);if("float"===i&&(i=p),a)o[i]=a;else{var u=r.shorthandPropertyExpansions[i];if(u)for(var c in u)o[c]="";else o[i]=""}}}};e.exports=w}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(){if(a)for(var e in u){var n=u[e],r=a.indexOf(e);if("production"!==t.env.NODE_ENV?s(r>-1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",e):s(r>-1),!c.plugins[r]){"production"!==t.env.NODE_ENV?s(n.extractEvents,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",e):s(n.extractEvents),c.plugins[r]=n;var i=n.eventTypes;for(var l in i)"production"!==t.env.NODE_ENV?s(o(i[l],n,l),"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",l,e):s(o(i[l],n,l))}}}function o(e,n,r){"production"!==t.env.NODE_ENV?s(!c.eventNameDispatchConfigs.hasOwnProperty(r),"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",r):s(!c.eventNameDispatchConfigs.hasOwnProperty(r)),c.eventNameDispatchConfigs[r]=e;var o=e.phasedRegistrationNames;if(o){for(var a in o)if(o.hasOwnProperty(a)){var u=o[a];i(u,n,r)}return!0}return e.registrationName?(i(e.registrationName,n,r),!0):!1}function i(e,n,r){"production"!==t.env.NODE_ENV?s(!c.registrationNameModules[e],"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",e):s(!c.registrationNameModules[e]),c.registrationNameModules[e]=n,c.registrationNameDependencies[e]=n.eventTypes[r].dependencies}var s=n(2),a=null,u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){"production"!==t.env.NODE_ENV?s(!a,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."):s(!a),a=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var n=!1;for(var o in e)if(e.hasOwnProperty(o)){var i=e[o];u.hasOwnProperty(o)&&u[o]===i||("production"!==t.env.NODE_ENV?s(!u[o],"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",o):s(!u[o]),u[o]=i,n=!0)}n&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=c.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){a=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=c}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,t){this.forEachFunction=e,this.forEachContext=t}function o(e,t,n,r){var o=e;o.forEachFunction.call(o.forEachContext,t,r)}function i(e,t,n){if(null==e)return e;var i=r.getPooled(t,n);d(e,o,i),r.release(i)}function s(e,t,n){this.mapResult=e,this.mapFunction=t,this.mapContext=n}function a(e,n,r,o){var i=e,s=i.mapResult,a=!s.hasOwnProperty(r);if("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?f(a,"ReactChildren.map(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",r):null),a){var u=i.mapFunction.call(i.mapContext,n,o);s[r]=u}}function u(e,t,n){if(null==e)return e;var r={},o=s.getPooled(r,t,n);return d(e,a,o),s.release(o),h.create(r)}function c(e,t,n,r){return null}function l(e,t){return d(e,c,null)}var p=n(23),h=n(37),d=n(157),f=n(9),m=p.twoArgumentPooler,v=p.threeArgumentPooler;p.addPoolingTo(r,m),p.addPoolingTo(s,v);var y={forEach:i,map:u,count:l};e.exports=y}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,t){this.props=e,this.context=t}var o=n(86),i=n(2),s=n(9);if(r.prototype.setState=function(e,n){"production"!==t.env.NODE_ENV?i("object"==typeof e||"function"==typeof e||null==e,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):i("object"==typeof e||"function"==typeof e||null==e),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?s(null!=e,"setState(...): You passed an undefined or null state object; instead, use forceUpdate()."):null),o.enqueueSetState(this,e),n&&o.enqueueCallback(this,n)},r.prototype.forceUpdate=function(e){o.enqueueForceUpdate(this),e&&o.enqueueCallback(this,e)},"production"!==t.env.NODE_ENV){var a={getDOMNode:["getDOMNode","Use React.findDOMNode(component) instead."], -isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceProps:["replaceProps","Instead, call React.render again at the top level."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."],setProps:["setProps","Instead, call React.render again at the top level."]},u=function(e,n){try{Object.defineProperty(r.prototype,e,{get:function(){return void("production"!==t.env.NODE_ENV?s(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1]):null)}})}catch(o){}};for(var c in a)a.hasOwnProperty(c)&&u(c,a[c])}e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}var o=n(81),i=n(82),s=n(25),a=n(8),u=n(51),c=n(35),l=n(84),p=n(65),h=n(29),d=n(85),f=n(66),m=n(38),v=n(16),y=n(5),g=n(52),b=n(2),w=n(95),E=n(9),T=1,x={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._isTopLevel=!1,this._pendingCallbacks=null},mountComponent:function(e,n,r){this._context=r,this._mountOrder=T++,this._rootNodeID=e;var o=this._processProps(this._currentElement.props),i=this._processContext(this._currentElement._context),s=p.getComponentClassForElement(this._currentElement),a=new s(o,i);"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?E(null!=a.render,"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render` in your component or you may have accidentally tried to render an element whose type is a function that isn't a React component.",s.displayName||s.name||"Component"):null),a.props=o,a.context=i,a.refs=g,this._instance=a,c.set(a,this),"production"!==t.env.NODE_ENV&&this._warnIfContextsDiffer(this._currentElement._context,r),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?E(!a.getInitialState||a.getInitialState.isReactClassApproved,"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",this.getName()||"a component"):null,"production"!==t.env.NODE_ENV?E(!a.getDefaultProps||a.getDefaultProps.isReactClassApproved,"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",this.getName()||"a component"):null,"production"!==t.env.NODE_ENV?E(!a.propTypes,"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",this.getName()||"a component"):null,"production"!==t.env.NODE_ENV?E(!a.contextTypes,"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",this.getName()||"a component"):null,"production"!==t.env.NODE_ENV?E("function"!=typeof a.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",this.getName()||"A component"):null);var u=a.state;void 0===u&&(a.state=u=null),"production"!==t.env.NODE_ENV?b("object"==typeof u&&!Array.isArray(u),"%s.state: must be set to an object or null",this.getName()||"ReactCompositeComponent"):b("object"==typeof u&&!Array.isArray(u)),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var h,d,f=l.currentlyMountingInstance;l.currentlyMountingInstance=this;try{a.componentWillMount&&(a.componentWillMount(),this._pendingStateQueue&&(a.state=this._processPendingState(a.props,a.context))),h=this._getValidatedChildContext(r),d=this._renderValidatedComponent(h)}finally{l.currentlyMountingInstance=f}this._renderedComponent=this._instantiateReactComponent(d,this._currentElement.type);var v=m.mountComponent(this._renderedComponent,e,n,this._mergeChildContext(r,h));return a.componentDidMount&&n.getReactMountReady().enqueue(a.componentDidMount,a),v},unmountComponent:function(){var e=this._instance;if(e.componentWillUnmount){var t=l.currentlyUnmountingInstance;l.currentlyUnmountingInstance=this;try{e.componentWillUnmount()}finally{l.currentlyUnmountingInstance=t}}m.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,c.remove(e)},_setPropsInternal:function(e,t){var n=this._pendingElement||this._currentElement;this._pendingElement=a.cloneAndReplaceProps(n,y({},n.props,e)),v.enqueueUpdate(this,t)},_maskContext:function(e){var t=null;if("string"==typeof this._currentElement.type)return g;var n=this._currentElement.type.contextTypes;if(!n)return g;t={};for(var r in n)t[r]=e[r];return t},_processContext:function(e){var n=this._maskContext(e);if("production"!==t.env.NODE_ENV){var r=p.getComponentClassForElement(this._currentElement);r.contextTypes&&this._checkPropTypes(r.contextTypes,n,d.context)}return n},_getValidatedChildContext:function(e){var n=this._instance,r=n.getChildContext&&n.getChildContext();if(r){"production"!==t.env.NODE_ENV?b("object"==typeof n.constructor.childContextTypes,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",this.getName()||"ReactCompositeComponent"):b("object"==typeof n.constructor.childContextTypes),"production"!==t.env.NODE_ENV&&this._checkPropTypes(n.constructor.childContextTypes,r,d.childContext);for(var o in r)"production"!==t.env.NODE_ENV?b(o in n.constructor.childContextTypes,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',this.getName()||"ReactCompositeComponent",o):b(o in n.constructor.childContextTypes);return r}return null},_mergeChildContext:function(e,t){return t?y({},e,t):e},_processProps:function(e){if("production"!==t.env.NODE_ENV){var n=p.getComponentClassForElement(this._currentElement);n.propTypes&&this._checkPropTypes(n.propTypes,e,d.prop)}return e},_checkPropTypes:function(e,n,o){var i=this.getName();for(var s in e)if(e.hasOwnProperty(s)){var a;try{"production"!==t.env.NODE_ENV?b("function"==typeof e[s],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",i||"React class",f[o],s):b("function"==typeof e[s]),a=e[s](n,s,i,o)}catch(u){a=u}if(a instanceof Error){var c=r(this);o===d.prop?"production"!==t.env.NODE_ENV?E(!1,"Failed Composite propType: %s%s",a.message,c):null:"production"!==t.env.NODE_ENV?E(!1,"Failed Context Types: %s%s",a.message,c):null}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&m.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&("production"!==t.env.NODE_ENV&&u.checkAndWarnForMutatedProps(this._currentElement),this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context))},_warnIfContextsDiffer:function(e,n){e=this._maskContext(e),n=this._maskContext(n);for(var r=Object.keys(n).sort(),o=this.getName()||"ReactCompositeComponent",i=0;i"+o+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;n!==this._stringText&&(this._stringText=n,i.BackendIDOperations.updateTextContentByID(this._rootNodeID,n))}},unmountComponent:function(){o.unmountIDFromEnvironment(this._rootNodeID)}}),e.exports=u},function(e,t,n){"use strict";function r(e){return Math.floor(100*e)/100}function o(e,t,n){e[t]=(e[t]||0)+n}var i=n(30),s=n(260),a=n(18),u=n(29),c=n(310),l={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){l._injected||u.injection.injectMeasure(l.measure),l._allMeasurements.length=0,u.enableMeasure=!0},stop:function(){u.enableMeasure=!1},getLastMeasurements:function(){return l._allMeasurements},printExclusive:function(e){e=e||l._allMeasurements;var t=s.getExclusiveSummary(e);console.table(t.map(function(e){return{"Component class name":e.componentName,"Total inclusive time (ms)":r(e.inclusive),"Exclusive mount time (ms)":r(e.exclusive),"Exclusive render time (ms)":r(e.render),"Mount time per instance (ms)":r(e.exclusive/e.count),"Render time per instance (ms)":r(e.render/e.count),Instances:e.count}}))},printInclusive:function(e){e=e||l._allMeasurements;var t=s.getInclusiveSummary(e);console.table(t.map(function(e){return{"Owner > component":e.componentName,"Inclusive time (ms)":r(e.time),Instances:e.count}})),console.log("Total time:",s.getTotalTime(e).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(e){var t=s.getInclusiveSummary(e,!0);return t.map(function(e){return{"Owner > component":e.componentName,"Wasted time (ms)":e.time,Instances:e.count}})},printWasted:function(e){e=e||l._allMeasurements,console.table(l.getMeasurementsSummaryMap(e)),console.log("Total time:",s.getTotalTime(e).toFixed(2)+" ms")},printDOM:function(e){e=e||l._allMeasurements;var t=s.getDOMSummary(e);console.table(t.map(function(e){var t={};return t[i.ID_ATTRIBUTE_NAME]=e.id,t.type=e.type,t.args=JSON.stringify(e.args),t})),console.log("Total time:",s.getTotalTime(e).toFixed(2)+" ms")},_recordWrite:function(e,t,n,r){var o=l._allMeasurements[l._allMeasurements.length-1].writes;o[e]=o[e]||[],o[e].push({type:t,time:n,args:r})},measure:function(e,t,n){return function(){for(var r=[],i=0,s=arguments.length;s>i;i++)r.push(arguments[i]);var u,p,h;if("_renderNewRootComponent"===t||"flushBatchedUpdates"===t)return l._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0}),h=c(),p=n.apply(this,r),l._allMeasurements[l._allMeasurements.length-1].totalTime=c()-h,p;if("_mountImageIntoNode"===t||"ReactDOMIDOperations"===e){if(h=c(),p=n.apply(this,r),u=c()-h,"_mountImageIntoNode"===t){var d=a.getID(r[1]);l._recordWrite(d,t,u,r[0])}else"dangerouslyProcessChildrenUpdates"===t?r[0].forEach(function(e){var t={};null!==e.fromIndex&&(t.fromIndex=e.fromIndex),null!==e.toIndex&&(t.toIndex=e.toIndex),null!==e.textContent&&(t.textContent=e.textContent),null!==e.markupIndex&&(t.markup=r[1][e.markupIndex]),l._recordWrite(e.parentID,e.type,u,t)}):l._recordWrite(r[0],t,u,Array.prototype.slice.call(r,1));return p}if("ReactCompositeComponent"!==e||"mountComponent"!==t&&"updateComponent"!==t&&"_renderValidatedComponent"!==t)return n.apply(this,r);if("string"==typeof this._currentElement.type)return n.apply(this,r);var f="mountComponent"===t?r[0]:this._rootNodeID,m="_renderValidatedComponent"===t,v="mountComponent"===t,y=l._mountStack,g=l._allMeasurements[l._allMeasurements.length-1];if(m?o(g.counts,f,1):v&&y.push(0),h=c(),p=n.apply(this,r),u=c()-h,m)o(g.render,f,u);else if(v){var b=y.pop();y[y.length-1]+=u,o(g.exclusive,f,u-b),o(g.inclusive,f,u)}else o(g.inclusive,f,u);return g.displayNames[f]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():""},p}}};e.exports=l},function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=n(256),i=n(146),s=n(148),a=n(149),u={hasSelectionCapabilities:function(e){return e&&("INPUT"===e.nodeName&&"text"===e.type||"TEXTAREA"===e.nodeName||"true"===e.contentEditable)},getSelectionInformation:function(){var e=a();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=a(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,o),s(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&"INPUT"===e.nodeName){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if("undefined"==typeof r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&"INPUT"===e.nodeName){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(e,t)}};e.exports=u},function(e,t,n){"use strict";var r=n(290),o={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(">"," "+o.CHECKSUM_ATTR_NAME+'="'+t+'">')},canReuseMarkup:function(e,t){var n=t.getAttribute(o.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var i=r(e);return i===n}};e.exports=o},function(e,t,n){"use strict";var r=n(53),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,TEXT_CONTENT:null});e.exports=o},function(e,t,n){"use strict";function r(e){function t(t,n,r,o,i){if(o=o||E,null==n[r]){var s=b[i];return t?new Error("Required "+s+" `"+r+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o){var i=t[n],s=m(i);if(s!==e){var a=b[o],u=v(i);return new Error("Invalid "+a+" `"+n+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `"+e+"`."))}return null}return r(t)}function i(){return r(w.thatReturns(null))}function s(e){function t(t,n,r,o){var i=t[n];if(!Array.isArray(i)){var s=b[o],a=m(i);return new Error("Invalid "+s+" `"+n+"` of type "+("`"+a+"` supplied to `"+r+"`, expected an array."))}for(var u=0;u>",T=a(),x=h(),C={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(),arrayOf:s,element:T,instanceOf:u,node:x,objectOf:l,oneOf:c,oneOfType:p,shape:d};e.exports=C},function(e,t,n){"use strict";function r(){this.listenersToPut=[]}var o=n(23),i=n(33),s=n(5);s(r.prototype,{enqueuePutListener:function(e,t,n){this.listenersToPut.push({rootNodeID:e,propKey:t,propValue:n})},putListeners:function(){for(var e=0;e":s.innerHTML="<"+e+">",a[e]=!s.firstChild),a[e]?h[e]:null}var o=n(12),i=n(2),s=o.canUseDOM?document.createElement("div"):null,a={circle:!0,clipPath:!0,defs:!0,ellipse:!0,g:!0,line:!0,linearGradient:!0,path:!0,polygon:!0,polyline:!0,radialGradient:!0,rect:!0,stop:!0,text:!0},u=[1,'"],c=[1,"","
"],l=[3,"","
"],p=[1,"",""],h={"*":[1,"?

"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l,circle:p,clipPath:p,defs:p,ellipse:p,g:p,line:p,linearGradient:p,path:p,polygon:p,polyline:p,radialGradient:p,rect:p,stop:p,text:p};e.exports=r}).call(t,n(1))},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(12),i=null;e.exports=r},function(e,t){function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t){"use strict";function n(e){return e&&("INPUT"===e.nodeName&&r[e.type]||"TEXTAREA"===e.nodeName)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){return"production"!==t.env.NODE_ENV?i(o.isValidElement(e),"onlyChild must be passed a children with exactly one child."):i(o.isValidElement(e)),e}var o=n(8),i=n(2);e.exports=r}).call(t,n(1))},function(e,t){"use strict";function n(e,t){if(e===t)return!0;var n;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){return y[e]}function o(e,t){return e&&null!=e.key?s(e.key):t.toString(36)}function i(e){return(""+e).replace(g,r)}function s(e){return"$"+i(e)}function a(e,n,r,i,u){var p=typeof e;if(("undefined"===p||"boolean"===p)&&(e=null),null===e||"string"===p||"number"===p||c.isValidElement(e))return i(u,e,""===n?m+o(e,0):n,r),1;var y,g,w,E=0;if(Array.isArray(e))for(var T=0;T{{name}}
{{name}}

{{description}}

',c.menuLink='
  • {{menuItemName}}
  • ',c.menuLinkWithScroll='
  • {{menuItemName}}
  • ',c.search='
    ',c.extraLink='';var h,d,f,m,v,y,g;g={ctrl:17,enter:13,slash:191,backslash:220,arrowLeft:37,arrowUp:38,arrowRight:39,arrowDown:40,m:77,comma:188,dot:190,isArrowKey:function(e){return e===g.arrowRight||e===g.arrowLeft||e===g.arrowDown||e===g.arrowUp}},"undefined"!=typeof angular?u=angular.element:"undefined"!=typeof jQuery&&(u=jQuery),h=function(e){function t(t){return e[t]?e[t]:void console.error("Template with name: "+t+" does not exist")}var r={};return e===n&&(e={}),r.parse=function(e,n){for(var r,o=/\{\{([A-z]+?)\}\}/,i=t(e);r=o.exec(i);)i=i.replace("{{"+r[1]+"}}",n[r[1]]||"");return i},r.get=function(t){return e[t]===n&&console.error("Template "+t+" does not exist"),e[t]},r.add=function(t,n){e[t]&&console.error("Template not allowed to be overridden using the add method, use the replace method instead"),e[t]=n},r.replace=function(t,r){e[t]===n&&console.error("No template to be replaced, use the add method to add templates"),e[t]=r},r},d=function(e,t,r,s){var p=a(),d=n;return p.template=h(),p.name=e,p.ajax=!1,p.icon=r,p.container=s,"string"==typeof t?(o(t,function(e){p.menuItems.addMenuItems(e)}),p.menuItems=i["default"].menu(e)):p.menuItems=i["default"].menu(e,t),p.template.add("menuStructure",'
      '),p.template.add("linkItem",c.menuLink),p.template.add("menuItem",c.itemItemplate),p.isOpen=function(){var e=u(document.querySelector(p.getDropdownSelector())),t=u(e).css("display"),n=parseInt(u(e).css("left"),10)<0;return"none"===t||n?!1:!0},p.isClosed=function(){return!p.isOpen()},p.open=function(e){var t=u(document.querySelector(p.getDropdownSelector()));u(t).css("left",p.getDropDownPosition()+"px"),t.css("display","block"),e||t.attr("data-display-clicked","true"),p.hooks.call("open")},p.close=function(e){var t=u(document.querySelector(p.getDropdownSelector()));t.css("display","none"),e||t.attr("data-display-clicked","false"),p.hooks.call("close")},p.closeAll=function(){var e=document.querySelectorAll("#"+p.container+" div.app-menu-dropdown-wrap");u(e).css("display","none"),u(e).attr("data-display-clicked","false")},p.setCurrentId=function(e){d=e},p.getCurrentId=function(){return d},p.goToMenuItem=function(e){var t,r;e!==n&&(t=e.querySelector("a"),r=u(t).attr("href"),r&&(window.location=r))},p.renderMenuItems=function(e){var t="";return e.forEach(function(e){t+=p.template.parse("menuItem",{id:e.id,name:e.name,defaultAction:e.defaultAction,icon:e.icon})}),t},p.getButtonId=function(){return"#"+p.name+"Button"},p.getDropdownSelector=function(){return p.getButtonId()+" div.app-menu-dropdown-wrap"},p.getDropDownPosition=function(){var e,t=document.querySelector(p.getButtonId()),n=u(t.querySelector("div.app-menu-dropdown-wrap"));return n.css("display","block"),p.dropdownWidth=n[0].offsetWidth,p.linkPositionX=t.offsetLeft,e=p.linkPositionX-(p.dropdownWidth-t.offsetWidth),n.css("display","none"),e},p.renderers.push(function(e){var t,n;n=p.renderMenuItems(e.getApps()),t=p.template.parse("linkItem",{id:p.name,iconName:p.icon,menuItemName:e.name,classes:l.aMenuLinkClasses,menuItems:n}),null===document.querySelector("#"+p.container+" ul")&&u(document.querySelector("#"+p.container)).append(p.template.parse("menuStructure",{id:l.ulWrapId})),null!==document.querySelector("#applicationsButton")?u(document.querySelector("#applicationsButton")).before(t):u(document.querySelector("#"+p.container+" ul")).append(t)}),p.eventsHandlers.push(function(e){var t=u(e.querySelector("div.app-menu-dropdown-wrap"));u(e.querySelector("a.drop-down-menu-link")).on("click",function(){"true"===t.attr("data-display-clicked")?p.close():(p.closeAll(),p.open())}),u(e).on("mouseenter",function(){p.open(!0)}),u(e).on("mouseleave",function(){"true"!==t.attr("data-display-clicked")&&p.close(!0)}),u(window).on("resize",function(){p.closeAll()})}),p.menuItems.subscribe(p.render,!0),p.menuItems.subscribe(function(e){var t,r=document.querySelector(p.getButtonId()+" ul.menuDropDownBox");null!==r&&(t=p.renderMenuItems(e.getApps()),u(r.querySelectorAll("li")).remove(),u(r).append(t),p.setCurrentId(n))}),a(p)},v=function(e){var t=e;return t.template.replace("linkItem",c.menuLinkWithScroll),t.eventsHandlers.push(function(e){var n=e.querySelector("div.menu-drop-down-scroll"),r=e.querySelector("div.apps-scroll-up"),o=e.querySelector("div.apps-scroll-down");u(n).on("scroll",function(){n.scrollTop<10?t.menuWidth=360:t.menuWidth=384,u(n).parent().css("width",t.menuWidth+"px"),u(n).parent().parent().css("width",t.menuWidth+"px")}),u(r).on("click",function(e){e.preventDefault(),n.scrollTop=n.scrollTop-330}),u(o).on("click",function(e){var t=330;e.preventDefault(),0===n.scrollTop&&(t+=40),n.scrollTop=n.scrollTop+t})}),a(t)},f=function(e){function t(e){var t,o,i=u(e.querySelector(".apps-search")).val().toLowerCase(),s=e.querySelector("ul.menuDropDownBox");""===i?(u(e.querySelector(".apps-search-clear")).css("display","none"),e.querySelector(".apps-search").focus(),t=r.renderMenuItems(r.menuItems.getApps())):(u(e.querySelector(".apps-search-clear")).css("display","block"),o=r.menuItems.search(i),t=r.renderMenuItems(o)),u(s.querySelectorAll("li")).remove(),u(s).append(t),r.setCurrentId(n)}var r=e,o=!1,s="";return r.template.add("search",c.search),i["default"].translate.get(["app_search_placeholder"],function(e){var t=document.querySelector("#"+r.name+"Button input.apps-search");s=e.get("app_search_placeholder"),o===!0&&u(t).attr("placeholder",s)}),r.renderers.push(function(){var e=document.querySelector("#"+r.name+"Button div.menu-drop-down-scroll");u(e).prepend(r.template.parse("search",{search_apps:s})),o=!0}),r.eventsHandlers.push(function(e){var n=e.querySelector("input.apps-search");r.hooks.open.push(function(){n.focus()}),u(n).on("keyup",function(n){g.isArrowKey(n.which)||n.which===g.enter||n.which===g.ctrl||t(e)}),u(e.querySelector(".apps-search-clear")).on("click",function(){u(e.querySelector(".apps-search-clear")).css("display","none"),u(e.querySelector(".apps-search")).val(""),e.querySelector(".apps-search").focus(),t(e)})}),a(r)},m=function(e){var t=e,n=!1;return t.template.add("extraLink",c.extraLink),i["default"].translate.get([e.extraLink.text],function(r){e.extraLink.text=r.get(e.extraLink.text),n===!0&&u(document.querySelector("#"+t.name+"div.apps-menu-bottom-button")).html(e.extraLink.text)}),t.renderers.push(function(){var r=document.querySelector("#"+t.name+"Button div.menu-drop-down-buttons");e.extraLink.url=i["default"].menu.fixUrlIfNeeded(e.extraLink.url),u(r).prepend(t.template.parse("extraLink",e.extraLink)),n=!0}),a(t)},y=function(e){var t=e;return t.eventsHandlers.push(function(e){function r(n){function r(e,t,n){var o,i;0>=n||(o=t-e.scrollTop-49,i=o/n*10,setTimeout(function(){e.scrollTop=e.scrollTop+i,e.scrollTop!==t&&i!==1/0&&r(e,t,n-10)},10))}u(t.selectedElement).toggleClass("selected"),t.selectedElement=i[n],u(t.selectedElement).toggleClass("selected"),e.querySelector("div.menu-drop-down-scroll")&&r(e.querySelector("div.menu-drop-down-scroll"),t.selectedElement.offsetTop,50),t.setCurrentId(n)}var o,i,s;t.hooks.close.push(function(){t.setCurrentId(n)}),u(document).on("keyup",function(e){e.which===t.shortCutKey&&(e.ctrlKey||e.altKey)&&(e.preventDefault(),t.isOpen()?(t.close(),s&&s.focus()):(s=document.activeElement,document.activeElement.blur(),t.closeAll(),t.open()))}),u(e.querySelectorAll("input")).on("keydown",function(e){return g.isArrowKey(e.which)?e.shiftKey?!0:!1:void 0}),u(document).on("keyup",function(s){var a;if(!t.isClosed()&&!s.shiftKey){if(s.preventDefault(),i=e.querySelectorAll("ul.menuDropDownBox li"),g.isArrowKey(s.which)){if(o=t.getCurrentId(),o===n)return o=0,void r(o);if(s.which===g.arrowRight){if(i[o+1]===n)return;return o+=1,void r(o)}if(s.which===g.arrowLeft){if(i[o-1]===n)return;return o-=1,void r(o)}if(s.which===g.arrowDown){if(i[o+3]===n)return;return o+=3,void r(o)}if(s.which===g.arrowUp){if(i[o-3]===n)return;return o-=3,void r(o)}}s.which===g.enter&&(a=i[t.getCurrentId()],a===n&&(a=i[0]),t.goToMenuItem(a))}})}),a(t)},e.ui={},e.ui.createMenu=function(e,t,r){var o;if("string"!=typeof e)throw s("Menu name needs to be a string");if("string"!=typeof t&&t.length<=0)throw s("Menu should have data to present in an array or be a url to fetch data from");return r==n&&(r={}),o=d(e,t,r.icon||"th",r.container||"dhisDropDownMenu"),r.shortCut&&g[r.shortCut]&&(o.shortCutKey=g[r.shortCut],o=y(o)),r.scrollable&&(o=v(o)),r.scrollable&&r.searchable&&(o=f(o)),"object"==typeof r.extraLink&&r.extraLink.url&&r.extraLink.text&&(o.extraLink=r.extraLink,o=m(o)),o}}(i["default"].menu,i["default"].settings),function(){function e(){var e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),n=a["default"]({helpPageLink:t}),r=c["default"]({isMobile:e});n.dataSource[3].defaultAction=t,i["default"].menu.ui.createMenu(n.name,n.dataSource,n.options),i["default"].menu.mainAppMenu=i["default"].menu.ui.createMenu(r.name,r.dataSource,r.options)}var t="";i["default"].menu.ui.initMenu=function(){try{i["default"].menu.ui.loadingStatus=jQuery.ajax({type:"GET",url:i["default"].settings.getBaseUrl()+"/dhis-web-commons/menu/getHelpPageLinkModule.action",dataType:"json",success:function(n){t=n.defaultAction?n.defaultAction:"",e()},error:function(){e()}})}catch(n){console&&console.error&&console.error(n.message,n.stack)}}}(),t["default"]={},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(54),i=r(o);!function(e,t){var n=9,r={isFunction:function(e){return"[object Function]"==Object.prototype.toString.call(e)},isString:function(e){return"string"==typeof e||e instanceof String?!0:!1},clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}},o=function(){var n;return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),n=window.location.origin,function(){var r,o=n.split("/");if(e.settings.baseUrl===t)return"..";if("string"!=typeof e.settings.baseUrl)throw new TypeError("Dhis2 settings: baseUrl should be a string");if(""!==o[o.length-1]){if(/^http\:\/\//.test(e.settings.baseUrl))return e.settings.baseUrl;r=n+"/"+e.settings.baseUrl}else o.pop(),o.push(e.settings.baseUrl),r=o.join("/");return r}}(),i=function(e){return".."===e.substring(0,2)?o()+e.substring(2,e.length):e},s=function(){var e=[],t={},n=function(e,t){return!0};return{getItem:function(e){return t[e]},setItem:function(n,r){e.push(n),t[n]=r},list:function(){var r=[];return e.forEach(function(e,o,i){n(t[e],t[e].id)&&r.push(t[e])}),r},setOrder:function(t){e=t},getOrder:function(){return e},addFilter:function(e){r.isFunction(e)&&(n=function(t,n,o){return e(r.clone(t),n)?!0:!1})}}},a={};e.menu={},e.menu=function(o,u){function c(e){var t=f.getApps();f.name=e[o],t.forEach(function(t,n,r){t.id&&e[t.id]&&(r[n].name=e.get(t.id)),""===t.description&&e.get("intro_"+t.id)!=="intro_"+t.id&&(t.description=e["intro_"+t.id])}),l()}function l(){m=!0,h()}function p(){return m}function h(){var e;if(!p()||v==={})return!1;for(;0!==g.length;)e=g.pop(),e.apply(f,[f]);y.forEach(function(e,t,n){e.apply(f,[f])})}function d(e,t){var n,r,o=[],i=[],s=Math.floor(e.length/2);return e.length<=1?e:(s=e[s],e.forEach(function(e,t,r){n=s.name.localeCompare(e.name),-1>=n&&i.push(e),n>=1&&o.push(e)}),o=d(o),i=d(i),r=o.concat([s]).concat(i),t?r.reverse():r)}var f={},m=!1,v=s(),y=[],g=[];return f.id=o,f.name=o,f.displayOrder="custom",f.getMenuItems=function(){return v},f.getMaxFavorites=function(){return n},f.orderMenuItemsByList=function(e){return v.setOrder(e),h(),f},f.updateFavoritesFromList=function(e){var t,r=e.slice(0,n),o=v.getOrder().slice(0,n),i=v.getOrder();return t=r,o.forEach(function(e,n,o){-1===r.indexOf(e)&&t.push(e)}),i.forEach(function(e,n,r){-1===t.indexOf(e)&&t.push(e)}),v.setOrder(t),h(),f},f.addMenuItems=function(t){var n=[];n.push(o),t.forEach(function(e,t,r){e.id=e.name,n.push(e.name),""===e.description&&n.push("intro_"+e.name),e.defaultAction=i(e.defaultAction),e.icon=i(e.icon),v.setItem(e.id,e)}),e.translate.get(n,c)},f.subscribe=function(e,n){var o=n?!0:!1;return r.isFunction(e)?(p()&&v!==t&&e(f),!0===o?g.push(e):y.push(e),!0):(setTimeout(h,300),!1)},f.notify=function(){h()},f.getFavorites=function(){return v.list().slice(0,n)},f.getApps=function(){return v.list()},f.getNonFavoriteApps=function(){return v.list().slice(n)},f.sortNonFavAppsByName=function(e){return d(f.getNonFavoriteApps(),e)},f.getOrderedAppList=function(){var e=f.getFavorites(),t=f.getNonFavoriteApps();switch(f.displayOrder){case"name-asc":t=f.sortNonFavAppsByName();break;case"name-desc":t=f.sortNonFavAppsByName(!0)}return e.concat(t)},f.updateOrder=function(e){switch(f.displayOrder){case"name-asc":case"name-desc":f.updateFavoritesFromList(e);break;default:f.orderMenuItemsByList(e)}},f.save=function(e){return r.isFunction(e)?e(f.getMenuItems().getOrder()):!1},f.search=function(e){var t=f.getApps(),n=[];return t.forEach(function(t){var r=t.name.toLowerCase(),o=r.indexOf(e);-1!==o&&(t.searchScore=o,n.push(t))}),n.sort(function(e,t){return e.searchScoret.searchScore?1:0}),n},"object"==typeof u&&f.addMenuItems(u),a[o]=f,f},e.menu.filter=function(e,t){return r.isString(e)&&r.isFunction(t)?(a[e].getMenuItems().addFilter(t),a[e].notify(),!0):!1},e.menu.getNameKeysForMenus=function(){var e,t={};for(e in a)a.hasOwnProperty(e)&&(t[e]=a[e].getMenuItems().getOrder());return t},e.menu.fixUrlIfNeeded=i}(i["default"]),t["default"]={},e.exports=t["default"]},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return{name:"applications",dataSource:"/dhis-web-commons/menu/getModules.action",options:{searchable:!e.isMobile,scrollable:!0,extraLink:{text:"more_applications",url:"../dhis-web-commons-about/modules.action"},shortCut:"m"}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return{name:"profile",dataSource:[{name:"settings",namespace:"/dhis-web-commons-about",defaultAction:"../dhis-web-commons-about/userSettings.action",icon:"../icons/usersettings.png",description:""},{name:"profile",namespace:"/dhis-web-commons-about",defaultAction:"../dhis-web-commons-about/showUpdateUserProfileForm.action",icon:"../icons/function-profile.png",description:""},{name:"account",namespace:"/dhis-web-commons-about",defaultAction:"../dhis-web-commons-about/showUpdateUserAccountForm.action",icon:"../icons/function-account.png",description:""},{name:"help",namespace:"/dhis-web-commons-about",defaultAction:e.helpPageLink,icon:"../icons/function-account.png",description:""},{name:"log_out",namespace:"/dhis-web-commons-about",defaultAction:"../dhis-web-commons-security/logout.action",icon:"../icons/function-log-out.png",description:""},{name:"about_dhis2",namespace:"/dhis-web-commons-about",defaultAction:"../dhis-web-commons-about/about.action",icon:"../icons/function-about-dhis2.png",description:""}],options:{icon:"user",shortCut:"comma"}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(54),i=r(o),s=n(97),a=r(s);!function(e,t){function n(e){var t;for(t in e)"string"==typeof t&&"get"!==t&&(o[t]=e[t])}function r(e,t){jQuery.ajax({url:s()+"/api/i18n",method:"POST",data:JSON.stringify(e),headers:{"Content-type":"application/json; charset=utf-8"}}).success(function(e){n(JSON.parse(e)),t(o)}).error(function(){a["default"].error("Failed to load translations")})}var o={get:function(e){return this.hasOwnProperty(e)?this[e]:e}},s=function(){var e;return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),e=window.location.origin,function(){var n,r=e.split("/");if(i["default"].settings===t||i["default"].settings.baseUrl===t)return"..";if("string"!=typeof i["default"].settings.baseUrl)throw new TypeError("Dhis2 settings: baseUrl should be a string");if(""!==r[r.length-1]){if(/^https?\:\/\//.test(i["default"].settings.baseUrl))return i["default"].settings.baseUrl;n=e+"/"+i["default"].settings.baseUrl}else r.pop(),r.push(i["default"].settings.baseUrl),n=r.join("/");return n}}();e.get=function(e,t){var n=[];e.forEach(function(e,t,r){e in o||n.push(e)}),n.length>0?r(n,t):t(o)}}(i["default"].translate),t["default"]={},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;nn;n++)t[n]=arguments[n];var r=t.filter(function(e){return e});if(!r.every(function(e){return u.isType(e,"object")}))throw new Error("Expected Config parameter to have type object");return Object.assign.apply(Object,[{},a["default"]].concat(t))}},{key:"processConfigForD2",value:function(e,t){var n=t.Api.getApi();t.model.ModelDefinition.prototype.api=n,t.models=new t.model.ModelDefinitions,u.isString(e.baseUrl)?n.setBaseUrl(e.baseUrl):n.setBaseUrl("/api"),e.i18n&&e.i18n.sources&&Array.from(e.i18n.sources).forEach(function(e){return t.i18n.addSource(e)}),e.i18n&&e.i18n.strings&&t.i18n.addStrings(Array.from(e.i18n.strings))}}]),e}();t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){var t=void 0;return t=e.userCredentials?Object.assign({},e.userCredentials,e):Object.assign({},e),Object.keys(t).reduce(function(e,n){return l.has(n)?t[n].map&&(e[h[n]]=t[n].map(function(e){return e.id})):e[n]=t[n],e},{})}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n0?this.strings.add(e.trim()):e.forEach(function(e){(""+e).trim().length>0&&t.strings.add(e)})}},{key:"load",value:function(){function e(e){return e.split("\n").reduce(function(e,t){var n=t.split("=").map(function(e){return e.trim()}),r=i(n,2),o=r[0],s=r[1];return void 0===o||void 0===s||e.hasOwnProperty(o)||(e[o]=s.replace(/\\u([0-9a-f]{4})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})),e},{})}var t=this,n=this;n.translations={};var r=[];return this.sources.forEach(function(t){r.push(n.api.request("GET",t,void 0,{dataType:"text"}).then(function(t){return Promise.resolve(e(t))},function(){return Promise.resolve({})}))}),Promise.all(r).then(function(e){return e.forEach(function(e){Object.keys(e).forEach(function(r){n.translations.hasOwnProperty(r)||(n.translations[r]=e[r]),t.strings["delete"](r)})}),t.strings.size>0?n.api.post("i18n",Array.from(n.strings)).then(function(e){return Object.keys(e).forEach(function(t){t!==e[t]&&(n.translations[t]=e[t],n.strings["delete"](t))}),Promise.resolve(n.translations)}):Promise.resolve(n.translations)})}},{key:"getTranslation",value:function(e){if(void 0===this.translations)throw new Error("Tried to translate before loading translations!");return this.translations.hasOwnProperty(e)?this.translations[e]:"** "+e+" **"}},{key:"isTranslated",value:function(e){if(void 0===this.translations)throw new Error("Tried to translate before loading translations!");return this.translations.hasOwnProperty(e)}},{key:"getUntranslatedStrings",value:function(){return this.translations?Array.from(this.strings):void 0}}],[{key:"getI18n",value:function(){return new e}}]),e}();t["default"]=c,e.exports=t["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")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0&&s.isString(e)?e:void i.throwError(['Type from schema "',e,'" not found available type list.'].join(""))}}]),e}();t["default"]=new a,e.exports=t["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")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;nn;n++)t[n]=arguments[n];return this.valuesContainerMap["delete"].apply(this.valuesContainerMap,t)}},{key:"entries",value:function(){return this.valuesContainerMap.entries.apply(this.valuesContainerMap)}},{key:"forEach",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.valuesContainerMap.forEach.apply(this.valuesContainerMap,t)}},{key:"get",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.valuesContainerMap.get.apply(this.valuesContainerMap,t)}},{key:"has",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.valuesContainerMap.has.apply(this.valuesContainerMap,t)}},{key:"keys",value:function(){return this.valuesContainerMap.keys.apply(this.valuesContainerMap)}},{key:"set",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.valuesContainerMap.set.apply(this.valuesContainerMap,t)}},{key:"values",value:function(){return this.valuesContainerMap.values.apply(this.valuesContainerMap)}},{key:"size",get:function(){return this.valuesContainerMap.size}}],[{key:"create",value:function(t,n,r){return new e(t,n,r)}}]),e}();t["default"]=y,e.exports=t["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")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;ne)throw new Error("PageNr can not be less than 1");if(e>this.pageCount)throw new Error("PageNr can not be larger than the total page count of "+this.pageCount);return this.pagingHandler.list({page:e})}}]),e}();t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0?e.split("/")[0]:f},render:function(){var e={height:"44px",position:"fixed",zIndex:15,top:0,left:0,right:0,boxShadow:"0 0 3px #222"},t={position:"absolute",top:"13px",left:"55px"},n={position:"absolute",top:12,left:175,fontWeight:"bold",color:"#fff",fontSize:16};return c["default"].createElement("div",{className:"header-bar",style:e,id:"header"},c["default"].createElement("a",{href:this.state.headerBar.link,title:this.state.headerBar.title,className:"title-link"},c["default"].createElement("img",{className:"header-logo",src:this.state.headerBar.logo,id:"headerBanner",style:t}),c["default"].createElement("span",{className:"header-text",id:"headerText",style:n},this.state.headerBar.title)),c["default"].createElement("div",null,this.state.headerBar.message),c["default"].createElement("div",{id:"dhisDropDownMenu"}))},loadDataFromLocalStorageIfAvailable:function(){var e=void 0,t=void 0,n=void 0,r=void 0;return s()&&(e=localStorage.getItem("dhis2.menu.ui.headerBar.logo"),t=localStorage.getItem("dhis2.menu.ui.headerBar.title"),n=localStorage.getItem("dhis2.menu.ui.headerBar.link"),r=localStorage.getItem("dhis2.menu.ui.headerBar.userStyle")),{userStyleUrl:r,logo:e,title:t,link:n}},setHeaderData:function(e,t,n,r){var o=this.getStyleName(e);this.addUserStyleStylesheet(this.getStylesheetUrl(e)),this.setHeaderLogo(o,t),this.setHeaderTitle(n),this.setHeaderLink(r)},setHeaderBarProp:function(e,t){this.setState({headerBar:Object.assign({},this.state.headerBar,o({},e,t))})},setHeaderLogo:function(e,t){t===!0?this.setHeaderBarProp("logo",[this.getBaseUrl(),"/external-static/logo_banner.png"].join("")):this.isValidUserStyle(e)?this.setHeaderBarProp("logo",this.getStyleLogoUrl(e)):this.setHeaderBarProp("logo",this.getStyleLogoUrl(f))},setHeaderTitle:function(e){this.setHeaderBarProp("title",e||"District Health Information Software 2")},setHeaderLink:function(e){this.setHeaderBarProp("link",[this.getBaseUrl(),e||"dhis-web-dashboard-integration","index.action"].join("/"))},requestUserStyle:function(){var e=this.context.d2.Api.getApi();return e.get("userSettings/currentStyle",{},{dataType:"text"}).then(function(e){return e.trim()})},isValidUserStyle:function(e){return"string"==typeof e&&/^[A-z0-9_\-]+$/.test(e)},addUserStyleStylesheet:function(e){jQuery("head").append('')}});t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(76),a=r(s),u=n(117),c=r(u),l=n(59),p=r(l),h=n(107),d=r(h),f=i["default"].createClass({displayName:"MyListItem",propTypes:{label:i["default"].PropTypes.string.isRequired,listStyle:i["default"].PropTypes.object,settingsActions:i["default"].PropTypes.object.isRequired,categoryKey:i["default"].PropTypes.string.isRequired},render:function(){var e=this.props.label;return i["default"].createElement(c["default"],{primaryText:e,style:this.props.listStyle,onClick:this.setCategory})},setCategory:function(){this.props.settingsActions.setCategory(this.props.categoryKey)}}),m=i["default"].createClass({displayName:"Sidebar",propTypes:{categories:i["default"].PropTypes.object.isRequired,categoryOrder:i["default"].PropTypes.array.isRequired,settingsActions:i["default"].PropTypes.object.isRequired,d2:i["default"].PropTypes.object.isRequired,currentCategory:i["default"].PropTypes.oneOfType([i["default"].PropTypes.object,i["default"].PropTypes.string]).isRequired},contextTypes:{muiTheme:i["default"].PropTypes.object},render:function(){var e=this,t=this.props.d2,n=this.props.categories,r=this.props.categoryOrder,o=this.props.currentCategory,s=this.context.muiTheme;return i["default"].createElement("div",{style:{backgroundColor:s.sideBar.backgroundColor},className:"left-bar"},i["default"].createElement("div",{style:{padding:"0 1rem"}},i["default"].createElement(p["default"],{hintText:t.i18n.getTranslation("search"),style:{width:"100%"},onChange:this.search})),i["default"].createElement(a["default"],{style:{backgroundColor:"transparent"}},r.filter(function(e){return!(n[e].authority&&!t.currentUser.authorities.has(n[e].authority))}).map(function(r){return i["default"].createElement(f,{key:r,label:t.i18n.getTranslation(n[r].label),categoryKey:r,settingsActions:e.props.settingsActions,listStyle:{backgroundColor:r===o?s.sideBar.backgroundColorItemActive:s.sideBar.backgroundColorItem,color:r===o?s.sideBar.textColorActive:s.sideBar.textColor,fontSize:15,fontWeight:r===o?"bold":"inherit"}})})))},search:function(e){d["default"].searchSettings(e.target.value)}});t["default"]=m,e.exports=t["default"]},105,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),s=n(116),a=r(s),u=n(58),c=r(u),l=n(36),p=r(l),h=n(19),d=r(h),f=n(119),m=r(f),v=n(102),y=r(v),g=n(75),b=r(g),w=n(103),E=r(w),T=n(105),x=r(T),C=n(189),_=r(C),S=n(188),N=r(S);t["default"]=i["default"].createClass({displayName:"DataApprovalLevels.component",propTypes:{columns:i["default"].PropTypes.array.isRequired},mixins:[E["default"]],componentWillMount:function(){var e=this;_["default"].loadDataApprovalLevels(),x["default"].subscribe(function(t){e.isMounted()&&e.setState({approvalLevels:t,showAddForm:!1})})},getInitialState:function(){return this.modelToEdit=this.context.d2.models.dataApprovalLevel.create(),{approvalLevels:[],showAddForm:!1}},renderForm:function(){var e=this.context.d2,t=e.models.organisationUnitLevel.list().then(function(e){return e.toArray()}).then(function(e){return e.sort(function(e,t){return e.level-t.level})}).then(function(e){return e.map(function(e){return{text:e.level+": "+e.displayName,payload:e}})}),n=e.models.categoryOptionGroupSet.list().then(function(e){return e.toArray()}).then(function(e){return e.map(function(e){return{text:e.displayName,payload:e}})}),r=[{name:"organisationUnitLevel",type:N["default"],fieldOptions:{floatingLabelText:this.getTranslation("organisation_unit_level"),menuItemsSource:function(){return t},value:this.modelToEdit.organisationUnitLevel}},{name:"categoryOptionGroupSet",type:N["default"],fieldOptions:{floatingLabelText:this.getTranslation("category_option_group_set"),menuItemsSource:function(){return n},value:this.modelToEdit.categoryOptionGroupSet}}],o={padding:"2rem",marginTop:"2rem",marginRight:"2rem"};return i["default"].createElement(d["default"],{style:o},i["default"].createElement("h2",{style:{margin:0}},this.getTranslation("create_new_approval_level")),i["default"].createElement(b["default"],{source:this.modelToEdit,fieldConfigs:r,onFormFieldUpdate:this.formFieldUpdate},i["default"].createElement("div",{style:{marginTop:"1rem"}},i["default"].createElement(m["default"],{onClick:this.saveAction,primary:!0,label:this.getTranslation("save")}),i["default"].createElement(c["default"],{onClick:this.cancelAction,style:{marginLeft:"1rem"},label:this.getTranslation("cancel")}))))},renderList:function(){var e={"delete":_["default"].deleteDataApprovalLevel},t={textAlign:"right",marginTop:"1rem",marginRight:16};return i["default"].createElement("div",{style:{maxWidth:960,marginRight:16}},i["default"].createElement("div",{style:t},i["default"].createElement(a["default"],{onClick:this.addClick},i["default"].createElement(p["default"],{className:"material-icons"},"add"))),i["default"].createElement("div",{style:{marginTop:-24}},i["default"].createElement(y["default"],{rows:this.state.approvalLevels,columns:this.props.columns,contextMenuActions:e})))},render:function(){return i["default"].createElement("div",null,this.state.showAddForm?this.renderForm():this.renderList())},saveAction:function(){var e=this;_["default"].saveDataApprovalLevel(this.modelToEdit).subscribe(function(){window.snackbar.show(),e.resetAddFormAnddisplayList()},function(e){return console.log("Error",e)})},cancelAction:function(){this.resetAddFormAnddisplayList()},resetAddFormAnddisplayList:function(){this.modelToEdit=this.context.d2.models.dataApprovalLevel.create(),this.setState({showAddForm:!1})},formFieldUpdate:function(e,t){this.modelToEdit[e]=t,this.forceUpdate()},addClick:function(){this.setState({approvalLevelToAdd:this.context.d2.models.dataApprovalLevel.create(),showAddForm:!0})}}),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;tn;n++)t+=e.charAt(Math.random()*e.length),(8===n||12===n||16===n||20===n)&&(t+="-");return t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),s=r(i),a=n(57),u=r(a),c=n(58),l=r(c),p=n(116),h=r(p),d=n(36),f=r(d),m=n(19),v=r(m),y=n(119),g=r(y),b=n(59),w=r(b),E=n(102),T=r(E),x=n(75),C=r(x),_=n(104),S=r(_),N=n(103),O=r(N),D=n(190),P=r(D),k=n(106),M=r(k),A=n(192),R=r(A),I=n(109),j=r(I);u["default"].setLevel(u["default"].levels.TRACE),t["default"]=s["default"].createClass({displayName:"OAuth2ClientEditor.component",mixins:[O["default"]], -getInitialState:function(){return{showForm:!1}},componentWillMount:function(){var e=this;this.oa2cStoreDisposable=M["default"].subscribe(function(){e.isMounted()&&e.setState({isEmpty:0===M["default"].state.length})}),R["default"].load()},renderForm:function(){var e=j["default"].forms;this.clientModel||(this.clientModel=this.context.d2.models.oAuth2Client.create());var t=this.clientModel,n=(t.grantTypes||[]).reduce(function(e,t){return e[t]=!0,e},{}),r=[{name:"name",type:w["default"],updateEvent:"onBlur",fieldOptions:{floatingLabelText:this.getTranslation("name"),style:e}},{name:"cid",type:w["default"],updateEvent:"onBlur",fieldOptions:{floatingLabelText:this.getTranslation("client_id"),style:e}},{name:"secret",type:w["default"],fieldOptions:{floatingLabelText:this.getTranslation("client_secret"),disabled:!0,style:e,value:t.secret||o()}},{name:"grantTypes",type:P["default"],style:e,fieldOptions:{label:this.getTranslation("grant_types"),items:[{name:"password",text:this.getTranslation("password"),value:n.password},{name:"refresh_token",text:this.getTranslation("refresh_token"),value:n.refresh_token},{name:"authorization_code",text:this.getTranslation("authorization_code"),value:n.authorization_code}]}},{name:"redirectUris",type:w["default"],updateEvent:"onBlur",fieldOptions:{hintText:this.getTranslation("enter_one_uri_per_line"),floatingLabelText:this.getTranslation("redirect_uris"),multiLine:!0,style:e,defaultValue:(t.redirectUris||[]).join("\n")}}],i={padding:"2rem",marginTop:"2rem",marginRight:"2rem",overflow:"hidden"};return s["default"].createElement(v["default"],{style:i},s["default"].createElement("h2",null,void 0===this.clientModel.id?this.getTranslation("create_new_oauth2_client"):this.getTranslation("edit_oauth2_client")),s["default"].createElement(C["default"],{source:this.clientModel,fieldConfigs:r,onFormFieldUpdate:this.formUpdateAction},s["default"].createElement("div",{style:{marginTop:"1rem"}},s["default"].createElement(g["default"],{onClick:this.saveAction,primary:!0,label:this.getTranslation("save")}),this.state.isEmpty?void 0:s["default"].createElement(l["default"],{onClick:this.cancelAction,style:{marginLeft:"1rem"},label:this.getTranslation("cancel")}))))},renderList:function(){var e={edit:this.editAction,"delete":this.deleteAction},t={textAlign:"right",marginTop:"1rem",marginRight:16};return s["default"].createElement("div",{style:{maxWidth:960,marginRight:16}},s["default"].createElement("div",{style:t},s["default"].createElement(h["default"],{onClick:this.newAction},s["default"].createElement(f["default"],{className:"material-icons"},"add"))),s["default"].createElement("div",{style:{marginTop:-24}},s["default"].createElement(T["default"],{rows:M["default"].state,columns:["name","password","refresh_token","authorization_code"],contextMenuActions:e})))},render:function(){var e=j["default"].rawTheme;return s["default"].createElement("div",null,s["default"].createElement("div",{style:{position:"fixed",left:0,top:0,right:0,bottom:0,zIndex:1e3,backgroundColor:"rgba(255,255,255,0.4)",display:this.state.saving?"block":"none"}},s["default"].createElement(S["default"],null)),this.state.isEmpty?s["default"].createElement("div",{style:{color:e.palette.accent1Color}},this.getTranslation("no_oauth2_clients_registered")):void 0,this.state.showForm||this.state.isEmpty?this.renderForm():this.renderList())},componentWillUnMount:function(){this.oa2cStoreDisposable&&this.oa2cStoreDisposable.dispose()},cancelAction:function(){Object.assign(this.clientModel,this.clientModelBackup),R["default"].load(),this.setState({showForm:!1})},newAction:function(){this.clientModel=this.context.d2.models.oAuth2Client.create(),this.setState({showForm:!0})},editAction:function(e){u["default"].info("Edit OAuth2 client:",e.name),this.clientModelBackup=Object.assign({},e),this.clientModel=e,this.setState({showForm:!0})},deleteAction:function(e){R["default"]["delete"](e)},saveAction:function(){var e=this;this.setState({saving:!0}),this.clientModel.redirectUris=(this.clientModel.redirectUris+"").split("\n").filter(function(e){return e.length>0&&e.match(/https?:\/\/.{2,}\..{2,}/)}),this.clientModel.secret=o(),this.clientModel.save().then(function(){window.snackbar.show(),e.setState({showForm:!1,saving:!1}),R["default"].load()})["catch"](function(t){e.setState({saving:!1}),u["default"].warn("Failed to save OAuth2 client:"+t.response.validationViolations.reduce(function(e,t){return(e.length?e+"\n":"")+t.property+": "+t.message},""))})},formUpdateAction:function(e,t){this.clientModel[e]=t}}),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(111),i=n(55),s=n(106),a=r(s),u=o.Action.createActionsFromNames(["load","delete"]);u.load.subscribe(function(){i.getInstance().then(function(e){e.models.oAuth2Client.list({paging:!1,fields:":all"}).then(function(t){var n=e.i18n.getTranslation("yes"),r=e.i18n.getTranslation("no");a["default"].setState(t.toArray().map(function(e){return Object.assign(e,{password:-1!==e.grantTypes.indexOf("password")?n:r,refresh_token:-1!==e.grantTypes.indexOf("refresh_token")?n:r,authorization_code:-1!==e.grantTypes.indexOf("authorization_code")?n:r})}))})})}),u["delete"].subscribe(function(e){e.data["delete"]().then(function(){a["default"].state.splice(a["default"].state.indexOf(e.data),1),a["default"].setState(a["default"].state),window.snackbar.show()})["catch"](function(e){log.error("Failed to delete OAuth2 client:",e)})}),t["default"]=u,e.exports=t["default"]},105,function(e,t,n){t=e.exports=n(195)(),t.push([e.id,'#menuLinkArea *{box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;-o-box-sizing:content-box;-m-box-sizing:content-box}#menuLinkArea{list-style-type:none;max-width:1200px;margin:0;padding:0 20px 0 0}#menuLinkArea li{float:right}#menuLinkArea .app-menu-dropdown li{float:left}input.apps-search[type=text]{border:1px solid #ccc;border-radius:3px;box-sizing:content-box;font-size:inherit;outline:none;padding:4px 1px;padding-right:5px;padding-left:5px;width:348px}.apps-search-wrap{padding-bottom:10px;position:relative;width:360px}.app-menu-dropdown .apps-search-clear{color:#404040;cursor:pointer;display:none;font-size:15px;height:15px;margin:0;padding:0;position:absolute;right:5px;top:18%;width:20px}.menuDropDownBox{list-style-type:none;padding:0;margin:10px 0}.menuDropDownBox a{border-radius:3px;cursor:pointer}.menuDropDownBox a:hover{text-decoration:none;background-color:#f5f5f7;color:#000}.menuDropDownBox li.selected a{background-color:#f5f5f7}.app-menu:after{clear:both;content:""}.app-menu li,.app-menu ul{list-style:none}.app-manager-header,.app-menu{margin:0 auto;position:relative;width:535px}.app-menu li{float:left;position:relative}#menuOrderBy{float:right}.app-menu .app-menu-item,.app-menu .app-menu-placeholder{margin:10px;display:block;border:1px solid #d0d0d0;background-color:#fff;width:225px;height:56px;border-radius:5px;padding:10px}.app-menu .app-menu-item img{max-height:36px;max-width:36px;display:block;left:25px;top:29px;position:absolute}.app-menu .app-menu-item span{font-size:1.15em;padding-left:48px;display:block;padding-top:19px;color:#404040}.app-menu .app-menu-item:hover,.app-menu .app-menu-placeholder{border:1px dashed #9ec5df;background-color:#e9f5fb;text-decoration:none}.app-menu-item-description{display:none}.app-menu-item-description .fa.fa-arrows{font-size:1.3em;position:absolute;right:5px;top:5px}.app-menu li:hover a .app-menu-item-description{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;border:1px solid #b0b0b0;display:block;margin:10px;padding:10px;font-size:1em;color:#555;border-radius:5px}.app-menu li.ui-sortable-helper:hover a .app-menu-item-description{display:none}.app-menu li.ui-sortable-helper:hover a{background-color:hsla(0,0%,100%,.3)}.app-menu-item .app-menu-item-description span{color:#444;display:block;font-size:1.1em;padding:0;padding-bottom:5px;margin:0}.app-menu-item .app-menu-item-description p{height:35px;margin:0;overflow:hidden;padding:0}.app-menu li:hover a .fa.fa-bookmark{display:none}.app-menu a.app-menu-item .fa.fa-bookmark{color:#276696;font-size:2em;position:absolute;right:15px;top:10px}.app-menu li+li+li+li+li+li+li+li+li+li a.app-menu-item .fa.fa-bookmark{display:none}.menu-link{color:#fff;cursor:pointer;font-size:9pt;height:44px;line-height:44px;text-align:center;width:105px}.menu-link i.fa{font-size:2em;padding-right:10px;position:relative;top:5px}a.menu-link:hover{color:#fff;text-decoration:none}.app-menu-dropdown{background-color:#fff;border:1px solid #bbb;border-radius:2px;box-shadow:rgba(0,0,0,.24) 0 2px 8px 0;color:#000;font-size:9pt;max-height:610px;overflow-y:inherit;padding:10px;top:10px;position:relative;width:360px;z-index:100000}.app-menu-dropdown-wrap{position:absolute;left:-9999px}.app-menu-hide{display:none}.app-menu-dropdown ul{margin:0;overflow:auto}.app-menu-dropdown li{float:left}.app-menu-dropdown img{padding:15px 36px 5px;max-height:48px;max-width:48px}.app-menu-dropdown span{color:#404040;display:block;font-family:LiberationSans,arial,sans-serif;height:30px;overflow:hidden;padding-left:10px;padding-right:10px;text-align:center;width:100px}.app-menu-dropdown .caret-up-background,.app-menu-dropdown .caret-up-border{border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;position:absolute}.app-menu-dropdown .caret-up-background{border-bottom:10px solid #fff;top:-9px}.app-menu-dropdown .caret-up-border{border-bottom:10px solid #bbb;top:-10px}.app-menu-dropdown a.app-menu-item{color:#000;display:block;height:110px;padding:0;text-decoration:none;width:120px}.app-menu-dropdown a.app-menu-item:hover span{padding-left:10px;padding-right:10px;text-align:center;width:100px}.apps-menu-bottom-button{display:table;height:34px;padding-top:8px;text-align:center;margin-top:5px;float:left}.apps-menu-bottom-button a{color:#4a89ba;border:1px solid #ccc;background-color:#f5f5f7;border-radius:5px;display:table-cell;vertical-align:middle;text-decoration:none}.apps-scroll{width:60px;margin-left:5px}.app-menu-dropdown:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.apps-menu-bottom-button a:hover{color:#fff;border:1px solid #4a89ba;background-color:#4a89ba}.apps-menu-more{width:230px}.menu-placeholder{width:100%;text-align:center;vertical-align:middle}hr.app-separator{border:none;border-top:1px solid #bbb;height:1px;position:absolute;top:484px;width:100%}.menu-drop-down-wrap{overflow:hidden;height:375px}.menu-drop-down-scroll{height:375px;overflow-y:auto;overflow-x:hidden;width:384px}#appsMenuDropDown ul.menuDropDownBox{height:330px}.caret-up-background,.caret-up-border{left:298px}.drop-down-menu-link{cursor:pointer;display:block;font-family:LiberationSans,arial,sans-serif}.show-menu{display:block}.app-menu-help{color:#444;line-height:1.75em}.app-menu-help .fa{font-size:1.2em}.app-menu-help .fa-bookmark{color:#276696;font-size:1.5em;padding-right:5px;position:relative;top:2px}.app-menu-help .fa-arrows{padding-right:4px}.app-menu-error{background:darkred;background:rgba(160,0,0,.7);border:1px solid darkred;border-radius:5px;display:block;padding:.5em 0;text-align:center;width:358px}.app-menu-error:hover{background:rgba(160,0,0,.8);cursor:pointer}.app-menu-error a,.app-menu-error a:hover{background-color:transparent;color:#fff}.app-menu-error a:hover{text-decoration:none}@media (max-device-width:700px),(max-width:700px){#headerText{display:none}}@media only screen and (min-width:840px){.app-manager-header,.app-menu{width:808px}hr.app-separator{top:288px}}.data-table__headers{display:table-row}.data-table__headers__header{padding:.5rem 1rem;border-bottom:2px solid #e0e0e0;color:#757575;display:table-cell;font-weight:400;padding:1.6rem;text-align:left;transition:all .3s ease;vertical-align:bottom}.data-table__rows__row{display:table-row}.data-table__rows__row:hover .data-table__rows__row__column{background-color:#b3e5fc}.data-table__rows__row__column{padding:.5rem 1rem;border-bottom:1px solid #e0e0e0;border-top:0;display:table-cell;padding:1.6rem;text-align:left;transition:all .3s ease;vertical-align:top}.data-table__context-menu{background:hsla(0,0%,100%,.9);border:1px solid #fff;padding:.5rem 0;position:fixed}.data-table__context-menu ul{list-style:none;margin:0;padding:0}.data-table__context-menu__item{cursor:pointer;display:block;padding:.5rem 1rem;text-align:left}.data-table__context-menu__item:hover{background:rgba(200,200,255,.9)}.data-table{background-color:#fff;border-spacing:0;box-shadow:0 1px 3px 0 rgba(0,0,0,.12),0 1px 2px 0 rgba(0,0,0,.24);color:#212121;display:table;margin-bottom:2rem;max-width:100%;width:100%}.data-table__rows{display:table-row-group}html{background:#fff;font-family:Roboto,sans-serif}.app{padding-top:3rem}.left-bar{width:256px;float:left;position:fixed;margin-top:16px;bottom:0;top:0;left:0;padding-top:2rem}.content-area{padding-left:16px;margin-left:256px}',""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(3),i=n(4),s=n(22),a=o.createClass({displayName:"BeforeAfterWrapper",mixins:[i],propTypes:{beforeStyle:o.PropTypes.object,afterStyle:o.PropTypes.object,beforeElementType:o.PropTypes.string,afterElementType:o.PropTypes.string,elementType:o.PropTypes.string},getDefaultProps:function(){return{beforeElementType:"div",afterElementType:"div",elementType:"div"}},render:function(){var e=this.props,t=e.beforeStyle,n=e.afterStyle,i=(e.beforeElementType,e.afterElementType,e.elementType,r(e,["beforeStyle","afterStyle","beforeElementType","afterElementType","elementType"])),a=void 0,u=void 0;t=s.all({boxSizing:"border-box"}),n=s.all({boxSizing:"border-box"}),this.props.beforeStyle&&(a=o.createElement(this.props.beforeElementType,{style:this.mergeAndPrefix(t,this.props.beforeStyle),key:"::before"})),this.props.afterStyle&&(u=o.createElement(this.props.afterElementType,{style:this.mergeAndPrefix(n,this.props.afterStyle),key:"::after"}));var c=[a,this.props.children,u],l=i;return l.style=this.props.style,o.createElement(this.props.elementType,l,c)}});e.exports=a},function(e,t,n){"use strict";var r=n(10),o=n(44),i=n(127),s=n(7),a=n(6),u=r.createClass({displayName:"FlatButtonLabel",mixins:[o],contextTypes:{muiTheme:r.PropTypes.object},propTypes:{label:r.PropTypes.node,style:r.PropTypes.object},childContextTypes:{muiTheme:r.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:a.getMuiTheme(s)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},statics:{getRelevantContextKeys:function(e){return{spacingDesktopGutterLess:e.rawTheme.spacing.desktopGutterLess}}},render:function(){var e=this.props,t=e.label,n=e.style,o=this.constructor.getRelevantContextKeys(this.state.muiTheme),s=i.mergeAndPrefix({position:"relative",padding:"0 "+o.spacingDesktopGutterLess+"px"},n);return r.createElement("span",{style:s},t)}});e.exports=u},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;tn&&(n=0);var r={root:{position:"relative",margin:n+"px",display:"inline-block",width:t,height:t},wrapper:{width:t,height:t,margin:"5px",display:"inline-block",transition:u.create("transform","20s",null,"linear")},svg:{height:t,position:"relative",transform:"scale("+e+")",width:t},path:{strokeDasharray:"89,200",strokeDashoffset:0,stroke:this.props.color||this.getTheme().primary1Color,strokeLinecap:"round",transition:u.create("all","1.5s",null,"ease-in-out")}};if(a.set(r.wrapper,"transitionTimingFunction","linear"),"determinate"===this.props.mode){var o=this._getRelativeValue();r.path.transition=u.create("all","0.3s",null,"linear"),r.path.strokeDasharray=Math.round(1.25*o)+",200"}return r},render:function(){var e=this.props,t=e.style,n=e.innerStyle,s=e.size,a=r(e,["style","innerStyle","size"]),u=this.getStyles(s||1);return i.createElement("div",o({},a,{style:this.mergeAndPrefix(u.root,t)}),i.createElement("div",{ref:"wrapper",style:this.mergeAndPrefix(u.wrapper,n)},i.createElement("svg",{style:this.mergeAndPrefix(u.svg)},i.createElement("circle",{ref:"path",style:this.mergeAndPrefix(u.path),cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"2.5",strokeMiterlimit:"10"}))))}});e.exports=p},function(e,t,n){(function(t){"use strict";var r=n(3),o=n(4),i=n(11),s=n(48),a=n(124),u=n(19),c=n(206),l=n(114),p=n(7),h=n(6),d=r.createClass({displayName:"DropDownMenu",mixins:[o],contextTypes:{muiTheme:r.PropTypes.object},childContextTypes:{muiTheme:r.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{className:r.PropTypes.string,displayMember:r.PropTypes.string,valueMember:r.PropTypes.string,autoWidth:r.PropTypes.bool,disabled:r.PropTypes.bool,onChange:r.PropTypes.func,menuItems:r.PropTypes.array.isRequired,menuItemStyle:r.PropTypes.object,underlineStyle:r.PropTypes.object,iconStyle:r.PropTypes.object,labelStyle:r.PropTypes.object,selectedIndex:r.PropTypes.number},getDefaultProps:function(){return{autoWidth:!0,disabled:!1,valueMember:"payload",displayMember:"text"}},getInitialState:function(){return{open:!1,selectedIndex:this._isControlled()?null:this.props.selectedIndex||0,muiTheme:this.context.muiTheme?this.context.muiTheme:h.getMuiTheme(p)}},componentDidMount:function(){this.props.autoWidth&&this._setWidth(),this.props.hasOwnProperty("selectedIndex")&&this._setSelectedIndex(this.props)},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n}),this.props.autoWidth&&this._setWidth(),e.hasOwnProperty("value")||e.hasOwnProperty("valueLink")||e.hasOwnProperty("selectedIndex")&&this._setSelectedIndex(e)},getStyles:function(){var e=this.props.disabled,t=5,n=this.state.muiTheme.rawTheme.spacing,r=this.state.muiTheme.dropDownMenu.accentColor,o=this.state.muiTheme.menu.backgroundColor,s={root:{transition:i.easeOut(),position:"relative",display:"inline-block",height:n.desktopSubheaderHeight,fontSize:n.desktopDropDownMenuFontSize,outline:"none"},control:{cursor:e?"not-allowed":"pointer",position:"static",height:"100%"},controlBg:{transition:i.easeOut(),backgroundColor:o,height:"100%",width:"100%",opacity:0},icon:{position:"absolute",top:(n.desktopToolbarHeight-24)/2,right:n.desktopGutterLess,fill:this.state.muiTheme.dropDownMenu.accentColor},label:{transition:i.easeOut(),lineHeight:n.desktopToolbarHeight+"px",position:"absolute",paddingLeft:n.desktopGutter,top:0,opacity:1,color:e?this.state.muiTheme.rawTheme.palette.disabledColor:this.state.muiTheme.rawTheme.palette.textColor},underline:{borderTop:"solid 1px "+r,margin:"-1px "+n.desktopGutter+"px"},menu:{zIndex:t+1},menuItem:{paddingRight:n.iconSize+n.desktopGutterLess+n.desktopGutterMini,height:n.desktopDropDownMenuItemHeight,lineHeight:n.desktopDropDownMenuItemHeight+"px",whiteSpace:"nowrap"},rootWhenOpen:{opacity:1},labelWhenOpen:{opacity:0,top:n.desktopToolbarHeight/2},overlay:{height:"100%",width:"100%",position:"fixed",top:0,left:0,zIndex:t}};return s},getInputNode:function(){var e=this.refs.root,t=this.props.menuItems[this.state.selectedIndex];return t&&(e.value=t[this.props.displayMember]),e},render:function(){var e=this,n=this.getStyles(),o=this._isControlled()?null:this.state.selectedIndex,i="";if(o)"production"!==t.env.NODE_ENV&&console.assert(!!this.props.menuItems[o],"SelectedIndex of "+o+" does not exist in menuItems.");else if(this.props.valueMember&&this._isControlled()){var s=this.props.hasOwnProperty("value")?this.props.value:this.props.valueLink.value;if(null!==s&&void 0!==s)for(var p=0;pn&&console.warn("Cannot set selectedIndex to a negative index.",n),this.setState({selectedIndex:n>-1?n:0})},_onControlClick:function(){this.props.disabled||this.setState({open:!this.state.open})},_onKeyDown:function(e){switch(e.which){case s.UP:this.state.open?e.altKey&&this.setState({open:!1}):this._selectPreviousItem();break;case s.DOWN:this.state.open||(e.altKey?this.setState({open:!0}):this._selectNextItem());break;case s.ENTER:case s.SPACE:this.setState({open:!0});break;default:return}e.preventDefault()},_onMenuItemClick:function(e,t,n){if(this.props.onChange&&this.state.selectedIndex!==t){var r=this.props.menuItems[t];r&&(e.target.value=r[this.props.valueMember]),this.props.valueLink?this.props.valueLink.requestChange(e.target.value):this.props.onChange(e,t,n)}this.setState({selectedIndex:t,value:e.target.value,open:!1})},_onMenuRequestClose:function(){this.setState({open:!1})},_selectPreviousItem:function(){this.setState({selectedIndex:Math.max(this.state.selectedIndex-1,0)})},_selectNextItem:function(){this.setState({selectedIndex:Math.min(this.state.selectedIndex+1,this.props.menuItems.length-1)})},_handleOverlayTouchTap:function(){this.setState({open:!1})},_isControlled:function(){return this.props.hasOwnProperty("value")||this.props.hasOwnProperty("valueLink")}});e.exports=d}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;tthis.props.rows&&(r=Math.min(this.props.rowsMax*u,r)),this.state.height!==r&&(this.setState({height:r}),this.props.onHeightChange&&this.props.onHeightChange(t,r))},_handleChange:function(e){this._syncHeightWithShadow(e.target.value),this.props.hasOwnProperty("valueLink")&&this.props.valueLink.requestChange(e.target.value),this.props.onChange&&this.props.onChange(e)},componentWillReceiveProps:function(e){e.value!==this.props.value&&this._syncHeightWithShadow(e.value)}});e.exports=l},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0?e:0,isKeyboardFocused:this.props.initiallyKeyboardFocused,keyWidth:this.props.desktop?64:56,muiTheme:this.context.muiTheme?this.context.muiTheme:v.getMuiTheme(m)}},componentDidEnter:function(){this._animateOpen()},componentDidMount:function(){this.props.autoWidth&&this._setWidth(),this.props.animated||this._animateOpen(),this._setScollPosition()},componentDidUpdate:function(){this.props.autoWidth&&this._setWidth()},componentWillLeave:function(e){var t=this,n=i.findDOMNode(this).style;c.set(n,"transition",l.easeOut("250ms",["opacity","transform"])),c.set(n,"transform","translate3d(0,-8px,0)"),n.opacity=0,setTimeout(function(){t.isMounted()&&e()},250)},componentWillReceiveProps:function(e,t){var n=this._getSelectedIndex(e),r=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({focusIndex:n>=0?n:0,keyWidth:e.desktop?64:56,muiTheme:r})},render:function(){var e=this,t=this.props,n=t.animated,s=(t.autoWidth,t.children),a=t.desktop,u=(t.initiallyKeyboardFocused,t.listStyle),c=t.maxHeight,p=(t.multiple,t.openDirection),h=(t.selectedMenuItemStyle,t.style),m=(t.value,t.valueLink,t.width),v=t.zDepth,y=r(t,["animated","autoWidth","children","desktop","initiallyKeyboardFocused","listStyle","maxHeight","multiple","openDirection","selectedMenuItemStyle","style","value","valueLink","width","zDepth"]),g="bottom"===p.split("-")[0],b="left"===p.split("-")[1],w={root:{transition:n?l.easeOut("250ms","transform"):null,position:"absolute",zIndex:10,top:g?0:null,bottom:g?null:0,left:b?null:0,right:b?0:null,transform:"scaleX(0)",transformOrigin:b?"right":"left"},list:{display:"table-cell",paddingBottom:a?16:8,paddingTop:a?16:8,userSelect:"none",width:m},menuItemContainer:{transition:n?l.easeOut(null,"opacity"):null,opacity:0},paper:{transition:n?l.easeOut("500ms",["transform","opacity"]):null,transform:"scaleY(0)",transformOrigin:g?"top":"bottom",opacity:0,maxHeight:c,overflowY:c?"scroll":null},selectedMenuItem:{color:this.state.muiTheme.rawTheme.palette.accent1Color}},E=this.mergeAndPrefix(w.root,h),T=this.mergeStyles(w.list,u),x=g?175:325,C=this._getCascadeChildrenCount(),_=Math.ceil(150/C),S=0,N=i.Children.map(s,function(t){var r="MenuDivider"===t.type.displayName,o=t.props.disabled,s={};if(n){var u=e.state.focusIndex,c=0;S>=u-1&&u+C-1>=S&&(x=g?x+_:x-_,c=x),s=e.mergeAndPrefix(w.menuItemContainer,{transitionDelay:c+"ms"})}var l=r?t:o?i.cloneElement(t,{desktop:a}):e._cloneMenuItem(t,S,w);return r||o||S++,n?i.createElement("div",{style:s},l):l});return i.createElement("div",{onKeyDown:this._handleKeyDown,style:E},i.createElement(f,{ref:"scrollContainer",style:w.paper,zDepth:v},i.createElement(d,o({},y,{ref:"list",style:T}),N)))},setKeyboardFocused:function(e){this.setState({isKeyboardFocused:e})},_animateOpen:function(){var e=i.findDOMNode(this).style,t=i.findDOMNode(this.refs.scrollContainer).style,n=i.findDOMNode(this.refs.list).childNodes;c.set(e,"transform","scaleX(1)"),c.set(t,"transform","scaleY(1)"),t.opacity=1;for(var r=0;re&&(e=0),this._setFocusIndex(e,!0)},_getCascadeChildrenCount:function(){var e=this.props,t=e.children,n=e.desktop,r=e.maxHeight,o=1,s=n?16:8,a=n?32:48;return r?(i.Children.forEach(t,function(e){if(r>s){var t="MenuDivider"===e.type.displayName;s+=t?16:a,o++}}),o):i.Children.count(t)},_getMenuItemCount:function(){var e=0;return i.Children.forEach(this.props.children,function(t){var n="MenuDivider"===t.type.displayName,r=t.props.disabled;n||r||e++}),e},_getSelectedIndex:function(e){var t=this,n=e.children,r=-1,o=0;return i.Children.forEach(n,function(n){var i="MenuDivider"===n.type.displayName;t._isChildSelected(n,e)&&(r=o),i||o++}),r},_handleKeyDown:function(e){switch(e.keyCode){case p.DOWN:e.preventDefault(),this._incrementKeyboardFocusIndex();break;case p.ESC:this.props.onEscKeyDown(e);break;case p.TAB:e.preventDefault(),e.shiftKey?this._decrementKeyboardFocusIndex():this._incrementKeyboardFocusIndex();break;case p.UP:e.preventDefault(),this._decrementKeyboardFocusIndex()}this.props.onKeyDown(e)},_handleMenuItemTouchTap:function(e,t){var n=this.props.multiple,r=this.getValueLink(this.props),o=r.value,i=t.props.value;if(n){var a=o.indexOf(i),u=-1===a?s(o,{$push:[i]}):s(o,{$splice:[[a,1]]});r.requestChange(e,u)}else n||i===o||r.requestChange(e,i);this.props.onItemTouchTap(e,t)},_incrementKeyboardFocusIndex:function(){var e=this.state.focusIndex,t=this._getMenuItemCount()-1;e++,e>t&&(e=t),this._setFocusIndex(e,!0)},_isChildSelected:function(e,t){var n=t.multiple,r=this.getValueLink(t).value,o=e.props.value;return n&&r.length&&-1!==r.indexOf(o)||!n&&r&&r===o},_setFocusIndex:function(e,t){this.setState({focusIndex:e,isKeyboardFocused:t})},_setScollPosition:function(){var e=this.props.desktop,t=this.refs.focusedMenuItem,n=e?32:48;if(t){var r=i.findDOMNode(t).offsetTop,o=r-n;n>o&&(o=0),i.findDOMNode(this.refs.scrollContainer).scrollTop=o}},_setWidth:function(){var e=i.findDOMNode(this),t=i.findDOMNode(this.refs.list),n=e.offsetWidth,r=this.state.keyWidth,o=1.5*r,s=n/r,a=void 0;s=1.5>=s?1.5:Math.ceil(s),a=s*r,o>a&&(a=o),e.style.width=a+"px",t.style.width=a+"px"}});e.exports=y},function(e,t,n){"use strict";var r=n(10);e.exports={propTypes:{onChange:r.PropTypes.func,value:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.array]),valueLink:r.PropTypes.shape({value:r.PropTypes.string.isRequired,requestChange:r.PropTypes.func.isRequired})},getDefaultProps:function(){return{onChange:function(){}}},getValueLink:function(e){return e.valueLink||{value:e.value,requestChange:e.onChange}}}},function(e,t,n){"use strict";var r=n(61);e.exports={componentDidMount:function(){var e=this.windowListeners;for(var t in e){var n=e[t];r.on(window,t,this[n])}},componentWillUnmount:function(){var e=this.windowListeners;for(var t in e){var n=e[t];r.off(window,t,this[n])}}}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t0&&(this._clearAutoHideTimer(),this._autoHideTimerId=setTimeout(function(){e.dismiss()},this.props.autoHideDuration))}});e.exports=d},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=n(46),s=r.createClass({displayName:"NavigationArrowDropUp",mixins:[o],render:function(){return r.createElement(i,this.props,r.createElement("path",{d:"M7 14l5-5 5 5z"}))}});e.exports=s},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=n(46),s=r.createClass({displayName:"NavigationCheck",mixins:[o],render:function(){return r.createElement(i,this.props,r.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}))}});e.exports=s},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=n(46),s=r.createClass({displayName:"ToggleCheckBoxOutlineBlank",mixins:[o],render:function(){return r.createElement(i,this.props,r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))}});e.exports=s},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=n(46),s=r.createClass({displayName:"ToggleCheckBox",mixins:[o],render:function(){return r.createElement(i,this.props,r.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))}});e.exports=s},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=Object.assign||function(e){for(var t=1;t',e,""].join(""),l.id=d,(p?l:f).innerHTML+=s,f.appendChild(l),p||(f.style.background="",f.style.overflow="hidden",c=h.style.overflow,h.style.overflow="hidden",h.appendChild(f)),a=r(l,e),p?l.parentNode.removeChild(l):(f.parentNode.removeChild(f),h.style.overflow=c),!!a},_={}.hasOwnProperty,S=n;S=r(_,"undefined")||r(_.call,"undefined")?function(e,t){return t in e&&r(e.constructor.prototype[t],"undefined")}:function(e,t){return _.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=T.call(arguments,1),r=function o(){if(this instanceof o){var r=function(){};r.prototype=t.prototype;var i=new r,s=t.apply(i,n.concat(T.call(arguments)));return Object(s)===s?s:i}return t.apply(e,n.concat(T.call(arguments)))};return r}),w.borderradius=function(){return c("borderRadius")},w.boxshadow=function(){return c("boxShadow")},w.opacity=function(){return i("opacity:.55"),/^0.55$/.test(m.opacity)},w.csstransforms=function(){return!!c("transform")},w.csstransforms3d=function(){var e=!!c("perspective");return e&&"webkitPerspective"in h.style&&C("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){e=9===t.offsetLeft&&3===t.offsetHeight}),e},w.csstransitions=function(){return c("transition")};for(var N in w)S(w,N)&&(x=N.toLowerCase(),p[x]=w[N](),E.push((p[x]?"":"no-")+x));return p.addTest=function(e,t){if("object"==typeof e)for(var r in e)S(e,r)&&p.addTest(r,e[r]);else{if(e=e.toLowerCase(),p[e]!==n)return p;t="function"==typeof t?t():t,"undefined"!=typeof enableClasses&&enableClasses&&(h.className+=" "+(t?"":"no-")+e),p[e]=t}return p},o(""),p._version=l,p._prefixes=v,p._domPrefixes=b,p._cssomPrefixes=g,p.testProp=function(e){return a([e])},p.testAllProps=c,p.testStyles=C,p.prefixed=function(e,t,n){return t?c(e,t,n):c(e,"pfx")},p}(window,window.document)},function(e,t){"use strict";function n(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),i=0;i=0},v=10,y=750,g={x:null,y:null},b=null,w={x:{page:"pageX",client:"clientX",envScroll:"currentPageScrollLeft"},y:{page:"pageY",client:"clientY",envScroll:"currentPageScrollTop"}},E=[h.topMouseDown,h.topMouseMove,h.topMouseUp];s.useTouchEvents&&E.push(h.topTouchEnd,h.topTouchStart,h.topTouchMove);var T={touchTap:{phasedRegistrationNames:{bubbled:p({onTouchTap:null}),captured:p({onTouchTapCapture:null})},dependencies:E}},x=function(){return Date.now?Date.now():+new Date},C={tapMoveThreshold:v,ignoreMouseThreshold:y,eventTypes:T,extractEvents:function(e,t,n,i){if(m(e))b=x();else if(b&&x()-bc&&(s=u.getPooled(T.touchTap,n,i)),d(e)?(g.x=r(w.x,i),g.y=r(w.y,i)):f(e)&&(g.x=0,g.y=0),a.accumulateTwoPhaseDispatches(s),s}};e.exports=C},function(e,t){var n={extractSingleTouch:function(e){var t=e.touches,n=e.changedTouches,r=t&&t.length>0,o=n&&n.length>0;return!r&&o?n[0]:r?t[0]:e}};e.exports=n},function(e,t,n){e.exports=function(){var e=n(3);e.initializeTouchEvents(!0),n(31).injection.injectEventPluginsByName({ResponderEventPlugin:n(227),TapEventPlugin:n(228)})}},function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case O.topCompositionStart:return D.compositionStart;case O.topCompositionEnd:return D.compositionEnd;case O.topCompositionUpdate:return D.compositionUpdate}}function s(e,t){return e===O.topKeyDown&&t.keyCode===E}function a(e,t){switch(e){case O.topKeyUp:return-1!==w.indexOf(t.keyCode);case O.topKeyDown:return t.keyCode!==E;case O.topKeyPress:case O.topMouseDown:case O.topBlur:return!0;default:return!1}}function u(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function c(e,t,n,r){var o,c;if(T?o=i(e):k?a(e,r)&&(o=D.compositionEnd):s(e,r)&&(o=D.compositionStart),!o)return null;_&&(k||o!==D.compositionStart?o===D.compositionEnd&&k&&(c=k.getData()):k=v.getPooled(t));var l=y.getPooled(o,n,r);if(c)l.data=c;else{var p=u(r);null!==p&&(l.data=p)}return f.accumulateTwoPhaseDispatches(l),l}function l(e,t){switch(e){case O.topCompositionEnd:return u(t);case O.topKeyPress:var n=t.which;return n!==S?null:(P=!0,N);case O.topTextInput:var r=t.data;return r===N&&P?null:r;default:return null}}function p(e,t){if(k){if(e===O.topCompositionEnd||a(e,t)){var n=k.getData();return v.release(k),k=null,n}return null}switch(e){case O.topPaste:return null;case O.topKeyPress:return t.which&&!o(t)?String.fromCharCode(t.which):null;case O.topCompositionEnd:return _?null:t.data;default:return null}}function h(e,t,n,r){var o;if(o=C?l(e,r):p(e,r),!o)return null;var i=g.getPooled(D.beforeInput,n,r);return i.data=o,f.accumulateTwoPhaseDispatches(i),i}var d=n(13),f=n(28),m=n(12),v=n(240),y=n(283),g=n(286),b=n(17),w=[9,13,27,32],E=229,T=m.canUseDOM&&"CompositionEvent"in window,x=null;m.canUseDOM&&"documentMode"in document&&(x=document.documentMode);var C=m.canUseDOM&&"TextEvent"in window&&!x&&!r(),_=m.canUseDOM&&(!T||x&&x>8&&11>=x),S=32,N=String.fromCharCode(S),O=d.topLevelTypes,D={beforeInput:{phasedRegistrationNames:{bubbled:b({onBeforeInput:null}),captured:b({onBeforeInputCapture:null})},dependencies:[O.topCompositionEnd,O.topKeyPress,O.topTextInput,O.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:b({onCompositionEnd:null}),captured:b({onCompositionEndCapture:null})},dependencies:[O.topBlur,O.topCompositionEnd,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:b({onCompositionStart:null}),captured:b({onCompositionStartCapture:null})},dependencies:[O.topBlur,O.topCompositionStart,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:b({onCompositionUpdate:null}),captured:b({onCompositionUpdateCapture:null})},dependencies:[O.topBlur,O.topCompositionUpdate,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]}},P=!1,k=null,M={eventTypes:D,extractEvents:function(e,t,n,r){return[c(e,t,n,r),h(e,t,n,r)]}};e.exports=M},function(e,t,n){(function(t){var r=n(2),o={addClass:function(e,n){return"production"!==t.env.NODE_ENV?r(!/\s/.test(n),'CSSCore.addClass takes only a single class name. "%s" contains multiple classes.',n):r(!/\s/.test(n)),n&&(e.classList?e.classList.add(n):o.hasClass(e,n)||(e.className=e.className+" "+n)),e},removeClass:function(e,n){return"production"!==t.env.NODE_ENV?r(!/\s/.test(n),'CSSCore.removeClass takes only a single class name. "%s" contains multiple classes.',n):r(!/\s/.test(n)),n&&(e.classList?e.classList.remove(n):o.hasClass(e,n)&&(e.className=e.className.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,""))),e},conditionClass:function(e,t,n){return(n?o.addClass:o.removeClass)(e,t)},hasClass:function(e,n){return"production"!==t.env.NODE_ENV?r(!/\s/.test(n),"CSS.hasClass takes only a single class name."):r(!/\s/.test(n)),e.classList?!!n&&e.classList.contains(n):(" "+e.className+" ").indexOf(" "+n+" ")>-1}};e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function o(e){var t=x.getPooled(O.change,P,e);w.accumulateTwoPhaseDispatches(t),T.batchedUpdates(i,t)}function i(e){b.enqueueEvents(e),b.processEventQueue()}function s(e,t){D=e,P=t,D.attachEvent("onchange",o)}function a(){D&&(D.detachEvent("onchange",o),D=null,P=null)}function u(e,t,n){return e===N.topChange?n:void 0}function c(e,t,n){e===N.topFocus?(a(),s(t,n)):e===N.topBlur&&a()}function l(e,t){D=e,P=t,k=e.value,M=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(D,"value",I),D.attachEvent("onpropertychange",h)}function p(){D&&(delete D.value,D.detachEvent("onpropertychange",h),D=null,P=null,k=null,M=null)}function h(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==k&&(k=t,o(e))}}function d(e,t,n){return e===N.topInput?n:void 0}function f(e,t,n){e===N.topFocus?(p(),l(t,n)):e===N.topBlur&&p()}function m(e,t,n){return e!==N.topSelectionChange&&e!==N.topKeyUp&&e!==N.topKeyDown||!D||D.value===k?void 0:(k=D.value,P)}function v(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function y(e,t,n){return e===N.topClick?n:void 0}var g=n(13),b=n(31),w=n(28),E=n(12),T=n(16),x=n(26),C=n(93),_=n(154),S=n(17),N=g.topLevelTypes,O={change:{phasedRegistrationNames:{bubbled:S({onChange:null}),captured:S({onChangeCapture:null})},dependencies:[N.topBlur,N.topChange,N.topClick,N.topFocus,N.topInput,N.topKeyDown,N.topKeyUp,N.topSelectionChange]}},D=null,P=null,k=null,M=null,A=!1;E.canUseDOM&&(A=C("change")&&(!("documentMode"in document)||document.documentMode>8));var R=!1;E.canUseDOM&&(R=C("input")&&(!("documentMode"in document)||document.documentMode>9));var I={get:function(){return M.get.call(this)},set:function(e){k=""+e,M.set.call(this,e)}},j={eventTypes:O,extractEvents:function(e,t,n,o){var i,s;if(r(t)?A?i=u:s=c:_(t)?R?i=d:(i=m,s=f):v(t)&&(i=y),i){var a=i(e,t,n);if(a){var l=x.getPooled(O.change,a,o);return w.accumulateTwoPhaseDispatches(l),l}}s&&s(e,t,n)}};e.exports=j},function(e,t){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};e.exports=r},function(e,t,n){(function(t){"use strict";function r(e,t,n){e.insertBefore(t,e.childNodes[n]||null)}var o=n(236),i=n(140),s=n(312),a=n(2),u={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:s,processUpdates:function(e,n){for(var u,c=null,l=null,p=0;p when using tables, nesting tags like ,

      , or , or using non-SVG elements in an parent. Try inspecting the child nodes of the element with React ID `%s`.",h,f):a(d),c=c||{},c[f]=c[f]||[],c[f][h]=d,l=l||[],l.push(d)}var m=o.dangerouslyRenderMarkup(n);if(l)for(var v=0;v]+)/,l="data-danger-index",p={dangerouslyRenderMarkup:function(e){"production"!==t.env.NODE_ENV?u(o.canUseDOM,"dangerouslyRenderMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use React.renderToString for server rendering."):u(o.canUseDOM);for(var n,p={},h=0;h node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See React.renderToString()."):u("html"!==e.tagName.toLowerCase());var r=i(n,s)[0];e.parentNode.replaceChild(r,e)}};e.exports=p}).call(t,n(1))},function(e,t,n){"use strict";var r=n(17),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null -}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null}),r({AnalyticsEventPlugin:null}),r({MobileSafariClickEventPlugin:null})];e.exports=o},function(e,t,n){"use strict";var r=n(13),o=n(28),i=n(67),s=n(18),a=n(17),u=r.topLevelTypes,c=s.getFirstReactDOM,l={mouseEnter:{registrationName:a({onMouseEnter:null}),dependencies:[u.topMouseOut,u.topMouseOver]},mouseLeave:{registrationName:a({onMouseLeave:null}),dependencies:[u.topMouseOut,u.topMouseOver]}},p=[null,null],h={eventTypes:l,extractEvents:function(e,t,n,r){if(e===u.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(e!==u.topMouseOut&&e!==u.topMouseOver)return null;var a;if(t.window===t)a=t;else{var h=t.ownerDocument;a=h?h.defaultView||h.parentWindow:window}var d,f;if(e===u.topMouseOut?(d=t,f=c(r.relatedTarget||r.toElement)||a):(d=a,f=t),d===f)return null;var m=d?s.getID(d):"",v=f?s.getID(f):"",y=i.getPooled(l.mouseLeave,m,r);y.type="mouseleave",y.target=d,y.relatedTarget=f;var g=i.getPooled(l.mouseEnter,v,r);return g.type="mouseenter",g.target=f,g.relatedTarget=d,o.accumulateEnterLeaveDispatches(y,g,m,v),p[0]=y,p[1]=g,p}};e.exports=h},function(e,t,n){(function(t){var r=n(21),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,n,o){return e.addEventListener?(e.addEventListener(n,o,!0),{remove:function(){e.removeEventListener(n,o,!0)}}):("production"!==t.env.NODE_ENV&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:r})},registerDefault:function(){}};e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(23),i=n(5),s=n(152);i(r.prototype,{getText:function(){return"value"in this._root?this._root.value:this._root[s()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;r>e&&n[e]===o[e];e++);var s=r-e;for(t=1;s>=t&&n[r-t]===o[i-t];t++);var a=t>1?1-t:void 0;return this._fallbackText=o.slice(e,a),this._fallbackText}}),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r,o=n(30),i=n(12),s=o.injection.MUST_USE_ATTRIBUTE,a=o.injection.MUST_USE_PROPERTY,u=o.injection.HAS_BOOLEAN_VALUE,c=o.injection.HAS_SIDE_EFFECTS,l=o.injection.HAS_NUMERIC_VALUE,p=o.injection.HAS_POSITIVE_NUMERIC_VALUE,h=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(i.canUseDOM){var d=document.implementation;r=d&&d.hasFeature&&d.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var f={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:s|u,allowTransparency:s,alt:null,async:u,autoComplete:null,autoPlay:u,cellPadding:null,cellSpacing:null,charSet:s,checked:a|u,classID:s,className:r?s:a,cols:s|p,colSpan:null,content:null,contentEditable:null,contextMenu:s,controls:a|u,coords:null,crossOrigin:null,data:null,dateTime:s,defer:u,dir:null,disabled:s|u,download:h,draggable:null,encType:null,form:s,formAction:s,formEncType:s,formMethod:s,formNoValidate:u,formTarget:s,frameBorder:s,headers:null,height:s,hidden:s|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:a,label:null,lang:null,list:s,loop:a|u,low:null,manifest:s,marginHeight:null,marginWidth:null,max:null,maxLength:s,media:s,mediaGroup:null,method:null,min:null,multiple:a|u,muted:a|u,name:null,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:a|u,rel:null,required:u,role:s,rows:s|p,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:s|u,selected:a|u,shape:null,size:s|p,sizes:s,span:p,spellCheck:null,src:null,srcDoc:a,srcSet:s,start:l,step:null,style:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:a|c,width:s,wmode:s,autoCapitalize:null,autoCorrect:null,itemProp:s,itemScope:s|u,itemType:s,itemID:s,itemRef:s,property:null,unselectable:s},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoCapitalize:"autocapitalize",autoComplete:"autocomplete",autoCorrect:"autocorrect",autoFocus:"autofocus",autoPlay:"autoplay",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=f},function(e,t,n){"use strict";var r=n(265),o=n(273),i={linkState:function(e){return new r(this.state[e],o.createStateKeySetter(this,e))}};e.exports=i},function(e,t,n){"use strict";var r=n(13),o=n(21),i=r.topLevelTypes,s={eventTypes:null,extractEvents:function(e,t,n,r){if(e===i.topTouchStart){var s=r.target;s&&!s.onclick&&(s.onclick=o)}}};e.exports=s},function(e,t,n){"use strict";var r=n(32),o=n(5),i=r.createFactory(n(144)),s=r.createFactory(n(245)),a=r.createClass({displayName:"ReactCSSTransitionGroup",propTypes:{transitionName:r.PropTypes.string.isRequired,transitionAppear:r.PropTypes.bool,transitionEnter:r.PropTypes.bool,transitionLeave:r.PropTypes.bool},getDefaultProps:function(){return{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0}},_wrapChild:function(e){return s({name:this.props.transitionName,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave},e)},render:function(){return i(o({},this.props,{childFactory:this._wrapChild}))}});e.exports=a},function(e,t,n){(function(t){"use strict";var r=n(32),o=n(232),i=n(276),s=n(155),a=n(9),u=17,c=5e3,l=null;"production"!==t.env.NODE_ENV&&(l=function(){"production"!==t.env.NODE_ENV?a(!1,"transition(): tried to perform an animation without an animationend or transitionend event after timeout (%sms). You should either disable this transition in JS or add a CSS animation/transition.",c):null});var p=r.createClass({displayName:"ReactCSSTransitionGroupChild",transition:function(e,n){var r=this.getDOMNode(),s=this.props.name+"-"+e,a=s+"-active",u=null,p=function(e){e&&e.target!==r||("production"!==t.env.NODE_ENV&&clearTimeout(u),o.removeClass(r,s),o.removeClass(r,a),i.removeEndEventListener(r,p),n&&n())};i.addEndEventListener(r,p),o.addClass(r,s),this.queueClass(a),"production"!==t.env.NODE_ENV&&(u=setTimeout(l,c))},queueClass:function(e){this.classNameQueue.push(e),this.timeout||(this.timeout=setTimeout(this.flushClassNameQueue,u))},flushClassNameQueue:function(){this.isMounted()&&this.classNameQueue.forEach(o.addClass.bind(o,this.getDOMNode())),this.classNameQueue.length=0,this.timeout=null},componentWillMount:function(){this.classNameQueue=[]},componentWillUnmount:function(){this.timeout&&clearTimeout(this.timeout)},componentWillAppear:function(e){this.props.appear?this.transition("appear",e):e()},componentWillEnter:function(e){this.props.enter?this.transition("enter",e):e()},componentWillLeave:function(e){this.props.leave?this.transition("leave",e):e()},render:function(){return s(this.props.children)}});e.exports=p}).call(t,n(1))},function(e,t,n){"use strict";var r=n(38),o=n(298),i=n(92),s=n(95),a={instantiateChildren:function(e,t,n){var r=o(e);for(var s in r)if(r.hasOwnProperty(s)){var a=r[s],u=i(a,null);r[s]=u}return r},updateChildren:function(e,t,n,a){var u=o(t);if(!u&&!e)return null;var c;for(c in u)if(u.hasOwnProperty(c)){var l=e&&e[c],p=l&&l._currentElement,h=u[c];if(s(p,h))r.receiveComponent(l,h,n,a),u[c]=l;else{l&&r.unmountComponent(l,c);var d=i(h,null);u[c]=d}}for(c in e)!e.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||r.unmountComponent(e[c]);return u},unmountChildren:function(e){for(var t in e){var n=e[t];r.unmountComponent(n)}}};e.exports=a},function(e,t,n){"use strict";var r=n(156),o={shouldComponentUpdate:function(e,t){return!r(this.props,e)||!r(this.state,t)}};e.exports=o},function(e,t,n){(function(t){"use strict";function r(e){return"production"!==t.env.NODE_ENV?i.createFactory(e):o.createFactory(e)}var o=n(8),i=n(51),s=n(307),a=s({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);e.exports=a}).call(t,n(1))},function(e,t,n){"use strict";var r=n(63),o=n(24),i=n(15),s=n(8),a=n(53),u=s.createFactory("button"),c=a({onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0}),l=i.createClass({displayName:"ReactDOMButton",tagName:"BUTTON",mixins:[r,o],render:function(){var e={};for(var t in this.props)!this.props.hasOwnProperty(t)||this.props.disabled&&c[t]||(e[t]=this.props[t]);return u(e,this.props.children)}});e.exports=l},function(e,t,n){"use strict";var r=n(13),o=n(79),i=n(24),s=n(15),a=n(8),u=a.createFactory("form"),c=s.createClass({displayName:"ReactDOMForm",tagName:"FORM",mixins:[i,o],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topReset,"reset"),this.trapBubbledEvent(r.topLevelTypes.topSubmit,"submit")}});e.exports=c},function(e,t,n){"use strict";var r=n(13),o=n(79),i=n(24),s=n(15),a=n(8),u=a.createFactory("iframe"),c=s.createClass({displayName:"ReactDOMIframe",tagName:"IFRAME",mixins:[i,o],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topLoad,"load")}});e.exports=c},function(e,t,n){"use strict";var r=n(13),o=n(79),i=n(24),s=n(15),a=n(8),u=a.createFactory("img"),c=s.createClass({displayName:"ReactDOMImg",tagName:"IMG",mixins:[i,o],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topLoad,"load"),this.trapBubbledEvent(r.topLevelTypes.topError,"error")}});e.exports=c},function(e,t,n){(function(t){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var o=n(63),i=n(49),s=n(78),a=n(24),u=n(15),c=n(8),l=n(18),p=n(16),h=n(5),d=n(2),f=c.createFactory("input"),m={},v=u.createClass({displayName:"ReactDOMInput",tagName:"INPUT",mixins:[o,s.Mixin,a],getInitialState:function(){var e=this.props.defaultValue;return{initialChecked:this.props.defaultChecked||!1,initialValue:null!=e?e:null}},render:function(){var e=h({},this.props);e.defaultChecked=null,e.defaultValue=null;var t=s.getValue(this);e.value=null!=t?t:this.state.initialValue;var n=s.getChecked(this);return e.checked=null!=n?n:this.state.initialChecked,e.onChange=this._handleChange,f(e,this.props.children)},componentDidMount:function(){var e=l.getID(this.getDOMNode());m[e]=this},componentWillUnmount:function(){var e=this.getDOMNode(),t=l.getID(e);delete m[t]},componentDidUpdate:function(e,t,n){var r=this.getDOMNode();null!=this.props.checked&&i.setValueForProperty(r,"checked",this.props.checked||!1);var o=s.getValue(this);null!=o&&i.setValueForProperty(r,"value",""+o)},_handleChange:function(e){var n,o=s.getOnChange(this);o&&(n=o.call(this,e)),p.asap(r,this);var i=this.props.name;if("radio"===this.props.type&&null!=i){for(var a=this.getDOMNode(),u=a;u.parentNode;)u=u.parentNode;for(var c=u.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),h=0,f=c.length;f>h;h++){var v=c[h];if(v!==a&&v.form===a.form){var y=l.getID(v);"production"!==t.env.NODE_ENV?d(y,"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."):d(y);var g=m[y];"production"!==t.env.NODE_ENV?d(g,"ReactDOMInput: Unknown radio button ID %s.",y):d(g),p.asap(r,g)}}}return n}});e.exports=v}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(24),o=n(15),i=n(8),s=n(9),a=i.createFactory("option"),u=o.createClass({displayName:"ReactDOMOption",tagName:"OPTION",mixins:[r],componentWillMount:function(){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?s(null==this.props.selected,"Use the `defaultValue` or `value` props on , and ) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.",this.constructor.displayName):s(!1)},render:function(){return n(this.props)}});return r}var o=n(15),i=n(8),s=n(2);e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){function r(e){var t=e.match(l);return t&&t[1].toLowerCase()}function o(e,n){var o=c;"production"!==t.env.NODE_ENV?u(!!c,"createNodesFromMarkup dummy not initialized"):u(!!c);var i=r(e),l=i&&a(i);if(l){o.innerHTML=l[1]+e+l[2];for(var p=l[0];p--;)o=o.lastChild}else o.innerHTML=e;var h=o.getElementsByTagName("script");h.length&&("production"!==t.env.NODE_ENV?u(n,"createNodesFromMarkup(...): Unexpected