=== 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-16 16:50:15 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/settings-app.js 2015-10-17 08:23:00 +0000 @@ -1,4 +1,4 @@ -!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,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return(e.validators||[]).filter(function(e){return W.wordToValidatorMap.has(e)}).map(function(e){return W.wordToValidatorMap.get(e)})}function i(e){var t=e.uiLocale;"en"!==t&&h.config.i18n.sources.add("i18n/module/i18n_module_"+t+".properties"),h.config.i18n.sources.add("i18n/module/i18n_module_en.properties")}var s=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")}}(),a=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",{style:{fontSize:"1.75rem"}},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.displayName||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;n=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",{style:{fontSize:"1.75rem"}},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.displayName||e.name}}),l=(t[7]||[]).map(function(e){return{payload:e.key,text:e.name}}),p=(t[8]||[]).map(function(e){return{payload:e.path,text:e.name}});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