← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20749: System settings

 

------------------------------------------------------------
revno: 20749
committer: Mark Polak <markpo@xxxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-10-16 18:50:15 +0200
message:
  System settings
  
  E-mail validation now does not fail on `undefined` value
  Disabled too restrictive OAuth url validation without message
  Show displayName for startup modules when available
modified:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/settings-app.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== 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 13:10:40 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-settings/settings-app.js	2015-10-16 16:50:15 +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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(10),c=r(u),l=n(37),p=r(l),h=n(57),d=n(230),f=r(d),m=n(99),v=r(m),y=n(166),g=r(y),b=n(159),w=r(b),E=n(100),T=n(101),x=r(T),C=n(59),_=r(C),S=n(120),N=r(S),O=n(111),D=r(O),P=n(214),k=r(P),M=n(58),A=r(M),R=n(158),I=r(R),j=n(164),L=r(j),F=n(71),U=r(F),W=n(173),V=n(174),B=r(V),q=n(106),z=r(q),K=n(160),H=r(K);f["default"](),n(316),p["default"].setLevel(p["default"].levels.WARN);var G={childContextTypes:{muiTheme:c["default"].PropTypes.object},getChildContext:function(){return{muiTheme:x["default"]}}},Y=c["default"].createClass({displayName:"HackyTextField",mixins:[G],render:function(){return c["default"].createElement(_["default"],this.props)}}),Q=c["default"].createClass({displayName:"HackyDropDown",propTypes:{defaultValue:c["default"].PropTypes.oneOfType([c["default"].PropTypes.string,c["default"].PropTypes.number,c["default"].PropTypes.bool])},mixins:[G],getInitialState:function(){return{value:this.props.defaultValue?this.props.defaultValue:"null"}},render:function(){return c["default"].createElement(N["default"],a({value:this.state.value.toString()},this.props))}}),X=c["default"].createClass({displayName:"HackyCheckbox",propTypes:{onChange:c["default"].PropTypes.func.isRequired},mixins:[G],render:function(){return c["default"].createElement(D["default"],a({onCheck:this.props.onChange},this.props))}}),$=c["default"].createClass({displayName:"App",propTypes:{categories:c["default"].PropTypes.object.isRequired,categoryOrder:c["default"].PropTypes.arrayOf(c["default"].PropTypes.string).isRequired,settingsStore:c["default"].PropTypes.object.isRequired,configOptionStore:c["default"].PropTypes.object.isRequired,settingsActions:c["default"].PropTypes.object.isRequired,d2:c["default"].PropTypes.object.isRequired},childContextTypes:{d2:c["default"].PropTypes.object},mixins:[G],getChildContext:function(){return{d2:this.props.d2}},getInitialState:function(){return{category:E.categoryOrder[0],currentSettings:E.categories[E.categoryOrder[0]].settings}},componentWillMount:function(){var e=this;this.props.settingsStore.subscribe(function(){e.forceUpdate()}),this.props.configOptionStore.subscribe(function(){e.forceUpdate()}),this.props.settingsActions.setCategory.subscribe(function(t){var n=t.data;e.setState({category:n,currentSettings:n.searchResult?n.settings:E.categories[n].settings})})},render:function(){var e=this,t=this.props.d2,n=x["default"],r=this.state.currentSettings,i=r.map(function(r){var i=t.system.settings.mapping[r],s=g["default"].state?g["default"].state[r]:"",a={name:r};switch(i.type){case"dropdown":a.type=Q,a.fieldOptions={floatingLabelText:t.i18n.getTranslation(i.label),value:s,menuItems:Object.keys(i.options||{}).map(function(e){var n=i.options[e];return{payload:e,text:isNaN(n)?t.i18n.getTranslation(i.options[e]):n}})};break;case"checkbox":a.type=X,a.fieldOptions={label:t.i18n.getTranslation(i.label),checked:"true"===s,onCheck:function(t,n){e.props.settingsActions.saveKey(r,n?"true":"false")}};break;case"post_button":a.type=A["default"],a.fieldOptions={label:t.i18n.getTranslation(i.label),onClick:function(){t.Api.getApi().post(i.uri).then(function(e){p["default"].info(e.message),window.snackbar.show()})},secondary:!0,style:{minWidth:"initial",maxWidth:"initial","float":"right",marginTop:"1em"}};break;case"indicatorGroups":case"dataElementGroups":case"userGroups":case"organisationUnitLevels":case"userRoles":case"organisationUnits":case"startModules":case"flags":case"styles":a.type=Q;var u=e.props.configOptionStore;if(a.fieldOptions={floatingLabelText:t.i18n.getTranslation(i.label),value:s||"null",menuItems:u.state?u.state[i.type]:[]},["startModules","flags","styles"].indexOf(i.type)>=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.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=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function i(){}var s,a=e.exports={},u=[],c=!1,l=-1;a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new o(e,t)),1!==u.length||c||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=i,a.addListener=i,a.once=i,a.off=i,a.removeListener=i,a.removeAllListeners=i,a.emit=i,a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var n=function(e,n,r,o,i,s,a,u){if("production"!==t.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!e){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,s,a,u],p=0;c=new Error("Invariant Violation: "+n.replace(/%s/g,function(){return l[p++]}))}throw c.framesToPop=1,c}};e.exports=n}).call(t,n(1))},function(e,t,n){e.exports=n(33)},function(e,t,n){"use strict";var r=n(3),o=n(49),i=n(125);e.exports={propTypes:{style:r.PropTypes.object},mergeStyles:function(){return o.merge.apply(this,arguments)},mergeAndPrefix:function(){return i.mergeAndPrefix.apply(this,arguments)}}},function(e,t){"use strict";function n(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var i=arguments[o];if(null!=i){var s=Object(i);for(var a in s)r.call(s,a)&&(n[a]=s[a])}}return n}e.exports=n},function(e,t,n){"use strict";var r=n(19),o=n(26),i=n(223),s=n(156);e.exports={getMuiTheme:function(e){var t={appBar:{color:e.palette.primary1Color,textColor:e.palette.alternateTextColor,height:e.spacing.desktopKeylineIncrement},avatar:{borderColor:"rgba(0, 0, 0, 0.08)"},button:{height:36,minWidth:88,iconButtonSize:2*e.spacing.iconSize},checkbox:{boxColor:e.palette.textColor,checkedColor:e.palette.primary1Color,requiredColor:e.palette.primary1Color,disabledColor:e.palette.disabledColor,labelColor:e.palette.textColor,labelDisabledColor:e.palette.disabledColor},datePicker:{color:e.palette.primary1Color,textColor:e.palette.alternateTextColor,calendarTextColor:e.palette.textColor,selectColor:e.palette.primary2Color,selectTextColor:e.palette.alternateTextColor},dropDownMenu:{accentColor:e.palette.borderColor},flatButton:{color:e.palette.alternateTextColor,textColor:e.palette.textColor,primaryTextColor:e.palette.accent1Color,secondaryTextColor:e.palette.primary1Color},floatingActionButton:{buttonSize:56,miniSize:40,color:e.palette.accent1Color,iconColor:e.palette.alternateTextColor,secondaryColor:e.palette.primary1Color,secondaryIconColor:e.palette.alternateTextColor,disabledTextColor:e.palette.disabledColor},gridTile:{textColor:r.white},inkBar:{backgroundColor:e.palette.accent1Color},leftNav:{width:4*e.spacing.desktopKeylineIncrement,color:e.palette.canvasColor},listItem:{nestedLevelDepth:18},menu:{backgroundColor:e.palette.canvasColor,containerBackgroundColor:e.palette.canvasColor},menuItem:{dataHeight:32,height:48,hoverColor:"rgba(0, 0, 0, .035)",padding:e.spacing.desktopGutter,selectedTextColor:e.palette.accent1Color},menuSubheader:{padding:e.spacing.desktopGutter,borderColor:e.palette.borderColor,textColor:e.palette.primary1Color},paper:{backgroundColor:e.palette.canvasColor},radioButton:{borderColor:e.palette.textColor,backgroundColor:e.palette.alternateTextColor,checkedColor:e.palette.primary1Color,requiredColor:e.palette.primary1Color,disabledColor:e.palette.disabledColor,size:24,labelColor:e.palette.textColor,labelDisabledColor:e.palette.disabledColor},raisedButton:{color:e.palette.alternateTextColor,textColor:e.palette.textColor,primaryColor:e.palette.accent1Color,primaryTextColor:e.palette.alternateTextColor,secondaryColor:e.palette.primary1Color,secondaryTextColor:e.palette.alternateTextColor},refreshIndicator:{strokeColor:e.palette.borderColor,loadingStrokeColor:e.palette.primary1Color},slider:{trackSize:2,trackColor:e.palette.primary3Color,trackColorSelected:e.palette.accent3Color,handleSize:12,handleSizeDisabled:8,handleSizeActive:18,handleColorZero:e.palette.borderColor,handleFillColor:e.palette.alternateTextColor,selectionColor:e.palette.primary1Color,rippleColor:e.palette.primary1Color},snackbar:{textColor:e.palette.alternateTextColor,backgroundColor:e.palette.textColor,actionColor:e.palette.accent1Color},table:{backgroundColor:e.palette.canvasColor},tableHeader:{borderColor:e.palette.borderColor},tableHeaderColumn:{textColor:e.palette.primary3Color,height:56,spacing:24},tableFooter:{borderColor:e.palette.borderColor,textColor:e.palette.primary3Color},tableRow:{hoverColor:e.palette.accent2Color,stripeColor:o.lighten(e.palette.primary1Color,.55),selectedColor:e.palette.borderColor,textColor:e.palette.textColor,borderColor:e.palette.borderColor},tableRowColumn:{height:48,spacing:24},timePicker:{color:e.palette.alternateTextColor,textColor:e.palette.accent3Color,accentColor:e.palette.primary1Color,clockColor:e.palette.primary3Color,selectColor:e.palette.primary2Color,selectTextColor:e.palette.alternateTextColor},toggle:{thumbOnColor:e.palette.primary1Color,thumbOffColor:e.palette.accent2Color,thumbDisabledColor:e.palette.borderColor,thumbRequiredColor:e.palette.primary1Color,trackOnColor:o.fade(e.palette.primary1Color,.5),trackOffColor:e.palette.primary3Color,trackDisabledColor:e.palette.primary3Color,labelColor:e.palette.textColor,labelDisabledColor:e.palette.disabledColor},toolbar:{backgroundColor:o.darken(e.palette.accent2Color,.05),height:56,titleFontSize:20,iconColor:"rgba(0, 0, 0, .40)",separatorColor:"rgba(0, 0, 0, .175)",menuHoverColor:"rgba(0, 0, 0, .10)"},tabs:{backgroundColor:e.palette.primary1Color},textField:{textColor:e.palette.textColor,hintColor:e.palette.disabledColor,floatingLabelColor:e.palette.textColor,disabledTextColor:e.palette.disabledColor,errorColor:r.red500,focusColor:e.palette.primary1Color,backgroundColor:"transparent",borderColor:e.palette.borderColor}};return t.flatButton.disabledTextColor=o.fade(t.flatButton.textColor,.3),t.raisedButton.disabledColor=o.darken(t.raisedButton.color,.1),t.raisedButton.disabledTextColor=o.fade(t.raisedButton.textColor,.3),t.toggle.trackRequiredColor=o.fade(t.toggle.thumbRequiredColor,.5),t.rawTheme=e,t["static"]=!0,t},modifyRawThemeSpacing:function(e,t){var n=s(e.rawTheme,{spacing:{$set:t}});return this.getMuiTheme(n)},modifyRawThemePalette:function(e,t){var n=i(e.rawTheme.palette,t),r=s(e.rawTheme,{palette:{$set:n}});return this.getMuiTheme(r)},modifyRawThemeFontFamily:function(e,t){var n=s(e.rawTheme,{fontFamily:{$set:t}});return this.getMuiTheme(n)}}},function(e,t,n){"use strict";var r=n(19),o=n(26),i=n(121);e.exports={spacing:i,fontFamily:"Roboto, sans-serif",palette:{primary1Color:r.cyan500,primary2Color:r.cyan700,primary3Color:r.lightBlack,accent1Color:r.pinkA200,accent2Color:r.grey100,accent3Color:r.grey500,textColor:r.darkBlack,alternateTextColor:r.white,canvasColor:r.white,borderColor:r.grey300,disabledColor:o.fade(r.darkBlack,.3)}}},function(e,t,n){(function(t){"use strict";function r(e,n){Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:function(){return this._store?this._store[n]:null},set:function(e){"production"!==t.env.NODE_ENV?u(!1,"Don't set the %s property of the React element. Instead, specify the correct value when initially creating the element.",n):null,this._store[n]=e}})}function o(e){try{var t={props:!0};for(var n in t)r(e,n);l=!0}catch(o){}}var i=n(82),s=n(25),a=n(5),u=n(9),c={key:!0,ref:!0},l=!1,p=function(e,n,r,o,i,s){if(this.type=e,this.key=n,this.ref=r,this._owner=o,this._context=i,"production"!==t.env.NODE_ENV){this._store={props:s,originalProps:a({},s)};try{Object.defineProperty(this._store,"validated",{configurable:!1,enumerable:!1,writable:!0})}catch(u){}if(this._store.validated=!1,l)return void Object.freeze(this)}this.props=s};p.prototype={_isReactElement:!0},"production"!==t.env.NODE_ENV&&o(p.prototype),p.createElement=function(e,t,n){var r,o={},a=null,u=null;if(null!=t){u=void 0===t.ref?null:t.ref,a=void 0===t.key?null:""+t.key;for(r in t)t.hasOwnProperty(r)&&!c.hasOwnProperty(r)&&(o[r]=t[r])}var l=arguments.length-2;if(1===l)o.children=n;else if(l>1){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<t.length;i++)o&&(o+=","),o+=this.create(e,t[i],n,r);return o}return this.create(e,t,n,r)},create:function(e,t,n,o){return e=e||"450ms",t=t||"all",n=n||"0ms",o=o||"linear",r.singleHyphened(t)+" "+e+" "+o+" "+n}}},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){"use strict";var r=n(54),o=r({bubbled:null,captured:null}),i=r({topBlur:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topReset:null,topScroll:null,topSelectionChange:null,topSubmit:null,topTextInput:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topWheel:null}),s={topLevelTypes:i,PropagationPhases:o};e.exports=s},function(e,t){"use strict";function n(e,t){if(void 0!==e)return!0;throw new Error([t||"Value","should be provided"].join(" "))}function r(e,t,r){if(n(e,r),n(t,"Type"),"function"==typeof t&&e instanceof t||"string"==typeof t&&typeof e===t)return!0;throw new Error(["Expected",r||e,"to have type",t].join(" "))}function o(e,t){var n=function(){};try{return r(e,t),!0}catch(o){n()}return!1}function i(e){return o(e,"string")}function s(e){return Array.isArray(e)}function a(e){return o(e,Object)}function u(e){return void 0!==e}function c(e){return"number"==typeof e&&isFinite(e)&&e>-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<t.length;n++)i(e,t[n])},childContextTypes:function(e,n){"production"!==t.env.NODE_ENV&&r(e,n,g.childContext),e.childContextTypes=E({},e.childContextTypes,n)},contextTypes:function(e,n){"production"!==t.env.NODE_ENV&&r(e,n,g.context),e.contextTypes=E({},e.contextTypes,n)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=u(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,n){"production"!==t.env.NODE_ENV&&r(e,n,g.prop),e.propTypes=E({},e.propTypes,n)},statics:function(e,t){s(e,t)}},k={enumerable:!1,get:function(){var e=this.displayName||this.name||"Component";return"production"!==t.env.NODE_ENV?_(!1,"%s.type is deprecated. Use %s directly to access the class.",e,e):null,Object.defineProperty(this,"type",{value:this}),this}},M={replaceState:function(e,t){w.enqueueReplaceState(this,e),t&&w.enqueueCallback(this,t)},isMounted:function(){if("production"!==t.env.NODE_ENV){var e=d.current;null!==e&&("production"!==t.env.NODE_ENV?_(e._warnedAboutRefsInRender,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",e.getName()||"A component"):null,e._warnedAboutRefsInRender=!0)}var n=v.get(this);return n&&n!==y.currentlyMountingInstance},setProps:function(e,t){w.enqueueSetProps(this,e),t&&w.enqueueCallback(this,t)},replaceProps:function(e,t){w.enqueueReplaceProps(this,e),t&&w.enqueueCallback(this,t)}},A=function(){};E(A.prototype,h.prototype,M);var R={createClass:function(e){var n=function(e,r){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?_(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory";):null),this.__reactAutoBindMap&&p(this),this.props=e,this.context=r,this.state=null;var o=this.getInitialState?this.getInitialState():null;"production"!==t.env.NODE_ENV&&"undefined"==typeof o&&this.getInitialState._isMockFunction&&(o=null),"production"!==t.env.NODE_ENV?T("object"==typeof o&&!Array.isArray(o),"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"):T("object"==typeof o&&!Array.isArray(o)),this.state=o};n.prototype=new A,n.prototype.constructor=n,O.forEach(i.bind(null,n)),i(n,e),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==t.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),
+!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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(10),c=r(u),l=n(37),p=r(l),h=n(57),d=n(230),f=r(d),m=n(99),v=r(m),y=n(166),g=r(y),b=n(159),w=r(b),E=n(100),T=n(101),x=r(T),C=n(59),_=r(C),S=n(120),N=r(S),O=n(111),D=r(O),P=n(214),k=r(P),M=n(58),A=r(M),R=n(158),I=r(R),j=n(164),L=r(j),F=n(71),U=r(F),W=n(173),V=n(174),B=r(V),q=n(106),z=r(q),K=n(160),H=r(K);f["default"](),n(316),p["default"].setLevel(p["default"].levels.WARN);var G={childContextTypes:{muiTheme:c["default"].PropTypes.object},getChildContext:function(){return{muiTheme:x["default"]}}},Y=c["default"].createClass({displayName:"HackyTextField",mixins:[G],render:function(){return c["default"].createElement(_["default"],this.props)}}),Q=c["default"].createClass({displayName:"HackyDropDown",propTypes:{defaultValue:c["default"].PropTypes.oneOfType([c["default"].PropTypes.string,c["default"].PropTypes.number,c["default"].PropTypes.bool])},mixins:[G],getInitialState:function(){return{value:this.props.defaultValue?this.props.defaultValue:"null"}},render:function(){return c["default"].createElement(N["default"],a({value:this.state.value.toString()},this.props))}}),X=c["default"].createClass({displayName:"HackyCheckbox",propTypes:{onChange:c["default"].PropTypes.func.isRequired},mixins:[G],render:function(){return c["default"].createElement(D["default"],a({onCheck:this.props.onChange},this.props))}}),$=c["default"].createClass({displayName:"App",propTypes:{categories:c["default"].PropTypes.object.isRequired,categoryOrder:c["default"].PropTypes.arrayOf(c["default"].PropTypes.string).isRequired,settingsStore:c["default"].PropTypes.object.isRequired,configOptionStore:c["default"].PropTypes.object.isRequired,settingsActions:c["default"].PropTypes.object.isRequired,d2:c["default"].PropTypes.object.isRequired},childContextTypes:{d2:c["default"].PropTypes.object},mixins:[G],getChildContext:function(){return{d2:this.props.d2}},getInitialState:function(){return{category:E.categoryOrder[0],currentSettings:E.categories[E.categoryOrder[0]].settings}},componentWillMount:function(){var e=this;this.props.settingsStore.subscribe(function(){e.forceUpdate()}),this.props.configOptionStore.subscribe(function(){e.forceUpdate()}),this.props.settingsActions.setCategory.subscribe(function(t){var n=t.data;e.setState({category:n,currentSettings:n.searchResult?n.settings:E.categories[n].settings})})},render:function(){var e=this,t=this.props.d2,n=x["default"],r=this.state.currentSettings,i=r.map(function(r){var i=t.system.settings.mapping[r],s=g["default"].state?g["default"].state[r]:"",a={name:r};switch(i.type){case"dropdown":a.type=Q,a.fieldOptions={floatingLabelText:t.i18n.getTranslation(i.label),value:s,menuItems:Object.keys(i.options||{}).map(function(e){var n=i.options[e];return{payload:e,text:isNaN(n)?t.i18n.getTranslation(i.options[e]):n}})};break;case"checkbox":a.type=X,a.fieldOptions={label:t.i18n.getTranslation(i.label),checked:"true"===s,onCheck:function(t,n){e.props.settingsActions.saveKey(r,n?"true":"false")}};break;case"post_button":a.type=A["default"],a.fieldOptions={label:t.i18n.getTranslation(i.label),onClick:function(){t.Api.getApi().post(i.uri).then(function(e){p["default"].info(e.message),window.snackbar.show()})},secondary:!0,style:{minWidth:"initial",maxWidth:"initial","float":"right",marginTop:"1em"}};break;case"indicatorGroups":case"dataElementGroups":case"userGroups":case"organisationUnitLevels":case"userRoles":case"organisationUnits":case"startModules":case"flags":case"styles":a.type=Q;var u=e.props.configOptionStore;if(a.fieldOptions={floatingLabelText:t.i18n.getTranslation(i.label),value:s||"null",menuItems:u.state?u.state[i.type]:[]},["startModules","flags","styles"].indexOf(i.type)>=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=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function i(){}var s,a=e.exports={},u=[],c=!1,l=-1;a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new o(e,t)),1!==u.length||c||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=i,a.addListener=i,a.once=i,a.off=i,a.removeListener=i,a.removeAllListeners=i,a.emit=i,a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var n=function(e,n,r,o,i,s,a,u){if("production"!==t.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!e){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,s,a,u],p=0;c=new Error("Invariant Violation: "+n.replace(/%s/g,function(){return l[p++]}))}throw c.framesToPop=1,c}};e.exports=n}).call(t,n(1))},function(e,t,n){e.exports=n(33)},function(e,t,n){"use strict";var r=n(3),o=n(49),i=n(125);e.exports={propTypes:{style:r.PropTypes.object},mergeStyles:function(){return o.merge.apply(this,arguments)},mergeAndPrefix:function(){return i.mergeAndPrefix.apply(this,arguments)}}},function(e,t){"use strict";function n(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var i=arguments[o];if(null!=i){var s=Object(i);for(var a in s)r.call(s,a)&&(n[a]=s[a])}}return n}e.exports=n},function(e,t,n){"use strict";var r=n(19),o=n(26),i=n(223),s=n(156);e.exports={getMuiTheme:function(e){var t={appBar:{color:e.palette.primary1Color,textColor:e.palette.alternateTextColor,height:e.spacing.desktopKeylineIncrement},avatar:{borderColor:"rgba(0, 0, 0, 0.08)"},button:{height:36,minWidth:88,iconButtonSize:2*e.spacing.iconSize},checkbox:{boxColor:e.palette.textColor,checkedColor:e.palette.primary1Color,requiredColor:e.palette.primary1Color,disabledColor:e.palette.disabledColor,labelColor:e.palette.textColor,labelDisabledColor:e.palette.disabledColor},datePicker:{color:e.palette.primary1Color,textColor:e.palette.alternateTextColor,calendarTextColor:e.palette.textColor,selectColor:e.palette.primary2Color,selectTextColor:e.palette.alternateTextColor},dropDownMenu:{accentColor:e.palette.borderColor},flatButton:{color:e.palette.alternateTextColor,textColor:e.palette.textColor,primaryTextColor:e.palette.accent1Color,secondaryTextColor:e.palette.primary1Color},floatingActionButton:{buttonSize:56,miniSize:40,color:e.palette.accent1Color,iconColor:e.palette.alternateTextColor,secondaryColor:e.palette.primary1Color,secondaryIconColor:e.palette.alternateTextColor,disabledTextColor:e.palette.disabledColor},gridTile:{textColor:r.white},inkBar:{backgroundColor:e.palette.accent1Color},leftNav:{width:4*e.spacing.desktopKeylineIncrement,color:e.palette.canvasColor},listItem:{nestedLevelDepth:18},menu:{backgroundColor:e.palette.canvasColor,containerBackgroundColor:e.palette.canvasColor},menuItem:{dataHeight:32,height:48,hoverColor:"rgba(0, 0, 0, .035)",padding:e.spacing.desktopGutter,selectedTextColor:e.palette.accent1Color},menuSubheader:{padding:e.spacing.desktopGutter,borderColor:e.palette.borderColor,textColor:e.palette.primary1Color},paper:{backgroundColor:e.palette.canvasColor},radioButton:{borderColor:e.palette.textColor,backgroundColor:e.palette.alternateTextColor,checkedColor:e.palette.primary1Color,requiredColor:e.palette.primary1Color,disabledColor:e.palette.disabledColor,size:24,labelColor:e.palette.textColor,labelDisabledColor:e.palette.disabledColor},raisedButton:{color:e.palette.alternateTextColor,textColor:e.palette.textColor,primaryColor:e.palette.accent1Color,primaryTextColor:e.palette.alternateTextColor,secondaryColor:e.palette.primary1Color,secondaryTextColor:e.palette.alternateTextColor},refreshIndicator:{strokeColor:e.palette.borderColor,loadingStrokeColor:e.palette.primary1Color},slider:{trackSize:2,trackColor:e.palette.primary3Color,trackColorSelected:e.palette.accent3Color,handleSize:12,handleSizeDisabled:8,handleSizeActive:18,handleColorZero:e.palette.borderColor,handleFillColor:e.palette.alternateTextColor,selectionColor:e.palette.primary1Color,rippleColor:e.palette.primary1Color},snackbar:{textColor:e.palette.alternateTextColor,backgroundColor:e.palette.textColor,actionColor:e.palette.accent1Color},table:{backgroundColor:e.palette.canvasColor},tableHeader:{borderColor:e.palette.borderColor},tableHeaderColumn:{textColor:e.palette.primary3Color,height:56,spacing:24},tableFooter:{borderColor:e.palette.borderColor,textColor:e.palette.primary3Color},tableRow:{hoverColor:e.palette.accent2Color,stripeColor:o.lighten(e.palette.primary1Color,.55),selectedColor:e.palette.borderColor,textColor:e.palette.textColor,borderColor:e.palette.borderColor},tableRowColumn:{height:48,spacing:24},timePicker:{color:e.palette.alternateTextColor,textColor:e.palette.accent3Color,accentColor:e.palette.primary1Color,clockColor:e.palette.primary3Color,selectColor:e.palette.primary2Color,selectTextColor:e.palette.alternateTextColor},toggle:{thumbOnColor:e.palette.primary1Color,thumbOffColor:e.palette.accent2Color,thumbDisabledColor:e.palette.borderColor,thumbRequiredColor:e.palette.primary1Color,trackOnColor:o.fade(e.palette.primary1Color,.5),trackOffColor:e.palette.primary3Color,trackDisabledColor:e.palette.primary3Color,labelColor:e.palette.textColor,labelDisabledColor:e.palette.disabledColor},toolbar:{backgroundColor:o.darken(e.palette.accent2Color,.05),height:56,titleFontSize:20,iconColor:"rgba(0, 0, 0, .40)",separatorColor:"rgba(0, 0, 0, .175)",menuHoverColor:"rgba(0, 0, 0, .10)"},tabs:{backgroundColor:e.palette.primary1Color},textField:{textColor:e.palette.textColor,hintColor:e.palette.disabledColor,floatingLabelColor:e.palette.textColor,disabledTextColor:e.palette.disabledColor,errorColor:r.red500,focusColor:e.palette.primary1Color,backgroundColor:"transparent",borderColor:e.palette.borderColor}};return t.flatButton.disabledTextColor=o.fade(t.flatButton.textColor,.3),t.raisedButton.disabledColor=o.darken(t.raisedButton.color,.1),t.raisedButton.disabledTextColor=o.fade(t.raisedButton.textColor,.3),t.toggle.trackRequiredColor=o.fade(t.toggle.thumbRequiredColor,.5),t.rawTheme=e,t["static"]=!0,t},modifyRawThemeSpacing:function(e,t){var n=s(e.rawTheme,{spacing:{$set:t}});return this.getMuiTheme(n)},modifyRawThemePalette:function(e,t){var n=i(e.rawTheme.palette,t),r=s(e.rawTheme,{palette:{$set:n}});return this.getMuiTheme(r)},modifyRawThemeFontFamily:function(e,t){var n=s(e.rawTheme,{fontFamily:{$set:t}});return this.getMuiTheme(n)}}},function(e,t,n){"use strict";var r=n(19),o=n(26),i=n(121);e.exports={spacing:i,fontFamily:"Roboto, sans-serif",palette:{primary1Color:r.cyan500,primary2Color:r.cyan700,primary3Color:r.lightBlack,accent1Color:r.pinkA200,accent2Color:r.grey100,accent3Color:r.grey500,textColor:r.darkBlack,alternateTextColor:r.white,canvasColor:r.white,borderColor:r.grey300,disabledColor:o.fade(r.darkBlack,.3)}}},function(e,t,n){(function(t){"use strict";function r(e,n){Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:function(){return this._store?this._store[n]:null},set:function(e){"production"!==t.env.NODE_ENV?u(!1,"Don't set the %s property of the React element. Instead, specify the correct value when initially creating the element.",n):null,this._store[n]=e}})}function o(e){try{var t={props:!0};for(var n in t)r(e,n);l=!0}catch(o){}}var i=n(82),s=n(25),a=n(5),u=n(9),c={key:!0,ref:!0},l=!1,p=function(e,n,r,o,i,s){if(this.type=e,this.key=n,this.ref=r,this._owner=o,this._context=i,"production"!==t.env.NODE_ENV){this._store={props:s,originalProps:a({},s)};try{Object.defineProperty(this._store,"validated",{configurable:!1,enumerable:!1,writable:!0})}catch(u){}if(this._store.validated=!1,l)return void Object.freeze(this)}this.props=s};p.prototype={_isReactElement:!0},"production"!==t.env.NODE_ENV&&o(p.prototype),p.createElement=function(e,t,n){var r,o={},a=null,u=null;if(null!=t){u=void 0===t.ref?null:t.ref,a=void 0===t.key?null:""+t.key;for(r in t)t.hasOwnProperty(r)&&!c.hasOwnProperty(r)&&(o[r]=t[r])}var l=arguments.length-2;if(1===l)o.children=n;else if(l>1){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<t.length;i++)o&&(o+=","),o+=this.create(e,t[i],n,r);return o}return this.create(e,t,n,r)},create:function(e,t,n,o){return e=e||"450ms",t=t||"all",n=n||"0ms",o=o||"linear",r.singleHyphened(t)+" "+e+" "+o+" "+n}}},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){"use strict";var r=n(54),o=r({bubbled:null,captured:null}),i=r({topBlur:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topReset:null,topScroll:null,topSelectionChange:null,topSubmit:null,topTextInput:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topWheel:null}),s={topLevelTypes:i,PropagationPhases:o};e.exports=s},function(e,t){"use strict";function n(e,t){if(void 0!==e)return!0;throw new Error([t||"Value","should be provided"].join(" "))}function r(e,t,r){if(n(e,r),n(t,"Type"),"function"==typeof t&&e instanceof t||"string"==typeof t&&typeof e===t)return!0;throw new Error(["Expected",r||e,"to have type",t].join(" "))}function o(e,t){var n=function(){};try{return r(e,t),!0}catch(o){n()}return!1}function i(e){return o(e,"string")}function s(e){return Array.isArray(e)}function a(e){return o(e,Object)}function u(e){return void 0!==e}function c(e){return"number"==typeof e&&isFinite(e)&&e>-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<t.length;n++)i(e,t[n])},childContextTypes:function(e,n){"production"!==t.env.NODE_ENV&&r(e,n,g.childContext),e.childContextTypes=E({},e.childContextTypes,n)},contextTypes:function(e,n){"production"!==t.env.NODE_ENV&&r(e,n,g.context),e.contextTypes=E({},e.contextTypes,n)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=u(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,n){"production"!==t.env.NODE_ENV&&r(e,n,g.prop),e.propTypes=E({},e.propTypes,n)},statics:function(e,t){s(e,t)}},k={enumerable:!1,get:function(){var e=this.displayName||this.name||"Component";return"production"!==t.env.NODE_ENV?_(!1,"%s.type is deprecated. Use %s directly to access the class.",e,e):null,Object.defineProperty(this,"type",{value:this}),this}},M={replaceState:function(e,t){w.enqueueReplaceState(this,e),t&&w.enqueueCallback(this,t)},isMounted:function(){if("production"!==t.env.NODE_ENV){var e=d.current;null!==e&&("production"!==t.env.NODE_ENV?_(e._warnedAboutRefsInRender,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",e.getName()||"A component"):null,e._warnedAboutRefsInRender=!0)}var n=v.get(this);return n&&n!==y.currentlyMountingInstance},setProps:function(e,t){w.enqueueSetProps(this,e),t&&w.enqueueCallback(this,t)},replaceProps:function(e,t){w.enqueueReplaceProps(this,e),t&&w.enqueueCallback(this,t)}},A=function(){};E(A.prototype,h.prototype,M);var R={createClass:function(e){var n=function(e,r){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?_(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory";):null),this.__reactAutoBindMap&&p(this),this.props=e,this.context=r,this.state=null;var o=this.getInitialState?this.getInitialState():null;"production"!==t.env.NODE_ENV&&"undefined"==typeof o&&this.getInitialState._isMockFunction&&(o=null),"production"!==t.env.NODE_ENV?T("object"==typeof o&&!Array.isArray(o),"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"):T("object"==typeof o&&!Array.isArray(o)),this.state=o};n.prototype=new A,n.prototype.constructor=n,O.forEach(i.bind(null,n)),i(n,e),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==t.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),
 n.prototype.getInitialState&&(n.prototype.getInitialState.isReactClassApproved={})),"production"!==t.env.NODE_ENV?T(n.prototype.render,"createClass(...): Class specification must implement a `render` method."):T(n.prototype.render),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?_(!n.prototype.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.",e.displayName||"A component"):null);for(var r in D)n.prototype[r]||(n.prototype[r]=null);if(n.type=n,"production"!==t.env.NODE_ENV)try{Object.defineProperty(n,"type",k)}catch(o){}return n},injection:{injectMixin:function(e){O.push(e)}}};e.exports=R}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(){"production"!==t.env.NODE_ENV?y(O.ReactReconcileTransaction&&T,"ReactUpdates: must inject a reconcile transaction class and batching strategy"):y(O.ReactReconcileTransaction&&T)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=l.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled()}function i(e,t,n,o,i){r(),T.batchedUpdates(e,t,n,o,i)}function s(e,t){return e._mountOrder-t._mountOrder}function a(e){var n=e.dirtyComponentsLength;"production"!==t.env.NODE_ENV?y(n===b.length,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",n,b.length):y(n===b.length),b.sort(s);for(var r=0;n>r;r++){var o=b[r],i=o._pendingCallbacks;if(o._pendingCallbacks=null,f.performUpdateIfNecessary(o,e.reconcileTransaction),i)for(var a=0;a<i.length;a++)e.callbackQueue.enqueue(i[a],o.getPublicInstance())}}function u(e){return r(),"production"!==t.env.NODE_ENV?g(null==h.current,"enqueueUpdate(): 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,T.isBatchingUpdates?void b.push(e):void T.batchedUpdates(u,e)}function c(e,n){"production"!==t.env.NODE_ENV?y(T.isBatchingUpdates,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."):y(T.isBatchingUpdates),w.enqueue(e,n),E=!0}var l=n(77),p=n(23),h=n(25),d=n(27),f=n(39),m=n(69),v=n(5),y=n(2),g=n(9),b=[],w=l.getPooled(),E=!1,T=null,x={initialize:function(){this.dirtyComponentsLength=b.length},close:function(){this.dirtyComponentsLength!==b.length?(b.splice(0,this.dirtyComponentsLength),S()):b.length=0}},C={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},_=[x,C];v(o.prototype,m.Mixin,{getTransactionWrappers:function(){return _},destructor:function(){this.dirtyComponentsLength=null,l.release(this.callbackQueue),this.callbackQueue=null,O.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return m.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(o);var S=function(){for(;b.length||E;){if(b.length){var e=o.getPooled();e.perform(a,null,e),o.release(e)}if(E){E=!1;var t=w;w=l.getPooled(),t.notifyAll(),l.release(t)}}};S=d.measure("ReactUpdates","flushBatchedUpdates",S);var N={injectReconcileTransaction:function(e){"production"!==t.env.NODE_ENV?y(e,"ReactUpdates: must provide a reconcile transaction class"):y(e),O.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){"production"!==t.env.NODE_ENV?y(e,"ReactUpdates: must provide a batching strategy"):y(e),"production"!==t.env.NODE_ENV?y("function"==typeof e.batchedUpdates,"ReactUpdates: must provide a batchedUpdates() function"):y("function"==typeof e.batchedUpdates),"production"!==t.env.NODE_ENV?y("boolean"==typeof e.isBatchingUpdates,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"):y("boolean"==typeof e.isBatchingUpdates),T=e}},O={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:u,flushBatchedUpdates:S,injection:N,asap:c};e.exports=O}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;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<r.length;){for(var s,a=r[o++];a;){var u=G.getID(a);u?n===u?s=a:T.isAncestorIDOf(u,n)&&(r.length=o=0,r.push(a.firstChild)):r.push(a.firstChild),a=a.nextSibling}if(s)return r.length=0,s}r.length=0,"production"!==t.env.NODE_ENV?A(!1,"findComponentRoot(..., %s): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> 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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(4),u=n(62),c=n(11),l=n(7),p=n(6),h=i.createClass({displayName:"Paper",mixins:[s,a],contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:p.getMuiTheme(l)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},propTypes:{circle:i.PropTypes.bool,rounded:i.PropTypes.bool,transitionEnabled:i.PropTypes.bool,zDepth:u.zDepth},getDefaultProps:function(){return{circle:!1,rounded:!0,transitionEnabled:!0,zDepth:1}},render:function(){var e=this.props,t=e.children,n=e.circle,s=e.rounded,a=e.style,u=e.transitionEnabled,l=e.zDepth,p=r(e,["children","circle","rounded","style","transitionEnabled","zDepth"]),h={backgroundColor:this.state.muiTheme.paper.backgroundColor,transition:u&&c.easeOut(),boxSizing:"border-box",fontFamily:this.state.muiTheme.rawTheme.fontFamily,WebkitTapHighlightColor:"rgba(0,0,0,0)",boxShadow:this._getZDepthShadows(l),borderRadius:n?"50%":s?"2px":"0px"};return i.createElement("div",o({},p,{style:this.mergeAndPrefix(h,a)}),t)},_getZDepthShadows:function(e){var t=[null,"0 1px 6px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24)","0 3px 10px rgba(0, 0, 0, 0.16), 0 3px 10px rgba(0, 0, 0, 0.23)","0 10px 30px rgba(0, 0, 0, 0.19), 0 6px 10px rgba(0, 0, 0, 0.23)","0 14px 45px rgba(0, 0, 0, 0.25), 0 10px 18px rgba(0, 0, 0, 0.22)","0 19px 60px rgba(0, 0, 0, 0.30), 0 15px 20px rgba(0, 0, 0, 0.22)"];return t[e]}});e.exports=h},function(e,t){"use strict";e.exports={red50:"#ffebee",red100:"#ffcdd2",red200:"#ef9a9a",red300:"#e57373",red400:"#ef5350",red500:"#f44336",red600:"#e53935",red700:"#d32f2f",red800:"#c62828",red900:"#b71c1c",redA100:"#ff8a80",redA200:"#ff5252",redA400:"#ff1744",redA700:"#d50000",pink50:"#fce4ec",pink100:"#f8bbd0",pink200:"#f48fb1",pink300:"#f06292",pink400:"#ec407a",pink500:"#e91e63",pink600:"#d81b60",pink700:"#c2185b",pink800:"#ad1457",pink900:"#880e4f",pinkA100:"#ff80ab",pinkA200:"#ff4081",pinkA400:"#f50057",pinkA700:"#c51162",purple50:"#f3e5f5",purple100:"#e1bee7",purple200:"#ce93d8",purple300:"#ba68c8",purple400:"#ab47bc",purple500:"#9c27b0",purple600:"#8e24aa",purple700:"#7b1fa2",purple800:"#6a1b9a",purple900:"#4a148c",purpleA100:"#ea80fc",purpleA200:"#e040fb",purpleA400:"#d500f9",purpleA700:"#aa00ff",deepPurple50:"#ede7f6",deepPurple100:"#d1c4e9",deepPurple200:"#b39ddb",deepPurple300:"#9575cd",deepPurple400:"#7e57c2",deepPurple500:"#673ab7",deepPurple600:"#5e35b1",deepPurple700:"#512da8",deepPurple800:"#4527a0",deepPurple900:"#311b92",deepPurpleA100:"#b388ff",deepPurpleA200:"#7c4dff",deepPurpleA400:"#651fff",deepPurpleA700:"#6200ea",indigo50:"#e8eaf6",indigo100:"#c5cae9",indigo200:"#9fa8da",indigo300:"#7986cb",indigo400:"#5c6bc0",indigo500:"#3f51b5",indigo600:"#3949ab",indigo700:"#303f9f",indigo800:"#283593",indigo900:"#1a237e",indigoA100:"#8c9eff",indigoA200:"#536dfe",indigoA400:"#3d5afe",indigoA700:"#304ffe",blue50:"#e3f2fd",blue100:"#bbdefb",blue200:"#90caf9",blue300:"#64b5f6",blue400:"#42a5f5",blue500:"#2196f3",blue600:"#1e88e5",blue700:"#1976d2",blue800:"#1565c0",blue900:"#0d47a1",blueA100:"#82b1ff",blueA200:"#448aff",blueA400:"#2979ff",blueA700:"#2962ff",lightBlue50:"#e1f5fe",lightBlue100:"#b3e5fc",lightBlue200:"#81d4fa",lightBlue300:"#4fc3f7",lightBlue400:"#29b6f6",lightBlue500:"#03a9f4",lightBlue600:"#039be5",lightBlue700:"#0288d1",lightBlue800:"#0277bd",lightBlue900:"#01579b",lightBlueA100:"#80d8ff",lightBlueA200:"#40c4ff",lightBlueA400:"#00b0ff",lightBlueA700:"#0091ea",cyan50:"#e0f7fa",cyan100:"#b2ebf2",cyan200:"#80deea",cyan300:"#4dd0e1",cyan400:"#26c6da",cyan500:"#00bcd4",cyan600:"#00acc1",cyan700:"#0097a7",cyan800:"#00838f",cyan900:"#006064",cyanA100:"#84ffff",cyanA200:"#18ffff",cyanA400:"#00e5ff",cyanA700:"#00b8d4",teal50:"#e0f2f1",teal100:"#b2dfdb",teal200:"#80cbc4",teal300:"#4db6ac",teal400:"#26a69a",teal500:"#009688",teal600:"#00897b",teal700:"#00796b",teal800:"#00695c",teal900:"#004d40",tealA100:"#a7ffeb",tealA200:"#64ffda",tealA400:"#1de9b6",tealA700:"#00bfa5",green50:"#e8f5e9",green100:"#c8e6c9",green200:"#a5d6a7",green300:"#81c784",green400:"#66bb6a",green500:"#4caf50",green600:"#43a047",green700:"#388e3c",green800:"#2e7d32",green900:"#1b5e20",greenA100:"#b9f6ca",greenA200:"#69f0ae",greenA400:"#00e676",greenA700:"#00c853",lightGreen50:"#f1f8e9",lightGreen100:"#dcedc8",lightGreen200:"#c5e1a5",lightGreen300:"#aed581",lightGreen400:"#9ccc65",lightGreen500:"#8bc34a",lightGreen600:"#7cb342",lightGreen700:"#689f38",lightGreen800:"#558b2f",lightGreen900:"#33691e",lightGreenA100:"#ccff90",lightGreenA200:"#b2ff59",lightGreenA400:"#76ff03",lightGreenA700:"#64dd17",lime50:"#f9fbe7",lime100:"#f0f4c3",lime200:"#e6ee9c",lime300:"#dce775",lime400:"#d4e157",lime500:"#cddc39",lime600:"#c0ca33",lime700:"#afb42b",lime800:"#9e9d24",lime900:"#827717",limeA100:"#f4ff81",limeA200:"#eeff41",limeA400:"#c6ff00",limeA700:"#aeea00",yellow50:"#fffde7",yellow100:"#fff9c4",yellow200:"#fff59d",yellow300:"#fff176",yellow400:"#ffee58",yellow500:"#ffeb3b",yellow600:"#fdd835",yellow700:"#fbc02d",yellow800:"#f9a825",yellow900:"#f57f17",yellowA100:"#ffff8d",yellowA200:"#ffff00",yellowA400:"#ffea00",yellowA700:"#ffd600",amber50:"#fff8e1",amber100:"#ffecb3",amber200:"#ffe082",amber300:"#ffd54f",amber400:"#ffca28",amber500:"#ffc107",amber600:"#ffb300",amber700:"#ffa000",amber800:"#ff8f00",amber900:"#ff6f00",amberA100:"#ffe57f",amberA200:"#ffd740",amberA400:"#ffc400",amberA700:"#ffab00",orange50:"#fff3e0",orange100:"#ffe0b2",orange200:"#ffcc80",orange300:"#ffb74d",orange400:"#ffa726",orange500:"#ff9800",orange600:"#fb8c00",orange700:"#f57c00",orange800:"#ef6c00",orange900:"#e65100",orangeA100:"#ffd180",orangeA200:"#ffab40",orangeA400:"#ff9100",orangeA700:"#ff6d00",deepOrange50:"#fbe9e7",deepOrange100:"#ffccbc",deepOrange200:"#ffab91",deepOrange300:"#ff8a65",deepOrange400:"#ff7043",deepOrange500:"#ff5722",deepOrange600:"#f4511e",deepOrange700:"#e64a19",deepOrange800:"#d84315",deepOrange900:"#bf360c",deepOrangeA100:"#ff9e80",deepOrangeA200:"#ff6e40",deepOrangeA400:"#ff3d00",deepOrangeA700:"#dd2c00",brown50:"#efebe9",brown100:"#d7ccc8",brown200:"#bcaaa4",brown300:"#a1887f",brown400:"#8d6e63",brown500:"#795548",brown600:"#6d4c41",brown700:"#5d4037",brown800:"#4e342e",brown900:"#3e2723",blueGrey50:"#eceff1",blueGrey100:"#cfd8dc",blueGrey200:"#b0bec5",blueGrey300:"#90a4ae",blueGrey400:"#78909c",blueGrey500:"#607d8b",blueGrey600:"#546e7a",blueGrey700:"#455a64",blueGrey800:"#37474f",blueGrey900:"#263238",grey50:"#fafafa",grey100:"#f5f5f5",grey200:"#eeeeee",grey300:"#e0e0e0",grey400:"#bdbdbd",grey500:"#9e9e9e",grey600:"#757575",grey700:"#616161",grey800:"#424242",grey900:"#212121",black:"#000000",white:"#ffffff",transparent:"rgba(0, 0, 0, 0)",fullBlack:"rgba(0, 0, 0, 1)",darkBlack:"rgba(0, 0, 0, 0.87)",lightBlack:"rgba(0, 0, 0, 0.54)",minBlack:"rgba(0, 0, 0, 0.26)",faintBlack:"rgba(0, 0, 0, 0.12)",fullWhite:"rgba(255, 255, 255, 1)",darkWhite:"rgba(255, 255, 255, 0.87)",lightWhite:"rgba(255, 255, 255, 0.54)"}},function(e,t){function n(e){return function(){return e}}function r(){}r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t){var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t,n){"use strict";var r=n(224),o=r?n(226):void 0,i={};e.exports={all:function(e){var t={};for(var n in e)t[this.single(n)]=e[n];return t},set:function(e,t,n){e[this.single(t)]=n},single:function(e){if(!r)return e;if(i.hasOwnProperty(e))return i[e];var t=o.prefixed(e);return t===!1?e:(i[e]=t,t)},singleHyphened:function(e){var t=this.single(e);return t?t.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-"):e}}},function(e,t,n){(function(t){"use strict";var r=n(2),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},s=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},a=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var s=i.instancePool.pop();return i.call(s,e,t,n,r,o),s}return new i(e,t,n,r,o)},u=function(e){var n=this;"production"!==t.env.NODE_ENV?r(e instanceof n,"Trying to release an instance into a pool of a different type."):r(e instanceof n),e.destructor&&e.destructor(),n.instancePool.length<n.poolSize&&n.instancePool.push(e)},c=10,l=o,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||l,n.poolSize||(n.poolSize=c),n.release=u,n},h={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:s,fiveArgumentPooler:a};e.exports=h}).call(t,n(1))},function(e,t,n){"use strict";var r=n(145),o={getDOMNode:function(){return r(this)}};e.exports=o},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t){"use strict";e.exports={_luminance:function(e){if(e=this._decomposeColor(e),e.type.indexOf("rgb")>-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<e.length;n++)t+=e.charAt(n)+e.charAt(n);e=t}var r={r:parseInt(e.substr(1,2),16),g:parseInt(e.substr(3,2),16),b:parseInt(e.substr(5,2),16)};return"rgb("+r.r+","+r.g+","+r.b+")"},_decomposeColor:function(e){if("#"===e.charAt(0))return this._decomposeColor(this._convertHexToRGB(e));var t=e.indexOf("("),n=e.substring(0,t),r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r}},fade:function(e,t){return e=this._decomposeColor(e),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),this._convertColorToString(e,t)},lighten: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]>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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(11),u=n(7),c=n(6),l=i.createClass({displayName:"FontIcon",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{color:i.PropTypes.string,hoverColor:i.PropTypes.string,onMouseLeave:i.PropTypes.func,onMouseEnter:i.PropTypes.func},getInitialState:function(){return{hovered:!1,muiTheme:this.context.muiTheme?this.context.muiTheme:c.getMuiTheme(u)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},render:function(){var e=this.props,t=e.color,n=e.hoverColor,s=(e.onMouseLeave,e.onMouseEnter,e.style),u=r(e,["color","hoverColor","onMouseLeave","onMouseEnter","style"]),c=this.state.muiTheme.rawTheme.spacing,l=t?t:s&&s.color?s.color:this.state.muiTheme.rawTheme.palette.textColor,p=n?n:l,h=this.mergeAndPrefix({position:"relative",fontSize:c.iconSize,display:"inline-block",userSelect:"none",transition:a.easeOut()},s,{color:this.state.hovered?p:l});return i.createElement("span",o({},u,{onMouseLeave:this._handleMouseLeave,onMouseEnter:this._handleMouseEnter,style:h}))},_handleMouseLeave:function(e){void 0!==this.props.hoverColor&&this.setState({hovered:!1}),this.props.onMouseLeave&&this.props.onMouseLeave(e)},_handleMouseEnter:function(e){void 0!==this.props.hoverColor&&this.setState({hovered:!0}),this.props.onMouseEnter&&this.props.onMouseEnter(e)}});e.exports=l},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;t<a._isCustomAttributeFunctions.length;t++){var n=a._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,r=s[e];return r||(s[e]=r={}),t in r||(n=document.createElement(e),r[t]=n[t]),r[t]},injection:i};e.exports=a}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(){var e=h&&h.traverseTwoPhase&&h.traverseEnterLeave;"production"!==t.env.NODE_ENV?u(e,"InstanceHandle not injected before use!"):u(e)}var o=n(129),i=n(64),s=n(88),a=n(89),u=n(2),c={},l=null,p=function(e){if(e){var t=i.executeDispatch,n=o.getPluginModuleForEvent(e);n&&n.executeDispatch&&(t=n.executeDispatch),i.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e)}},h=null,d={injection:{injectMount:i.injection.injectMount,injectInstanceHandle:function(e){h=e,"production"!==t.env.NODE_ENV&&r()},getInstanceHandle:function(){return"production"!==t.env.NODE_ENV&&r(),h},injectEventPluginOrder:o.injectEventPluginOrder,injectEventPluginsByName:o.injectEventPluginsByName},eventNameDispatchConfigs:o.eventNameDispatchConfigs,registrationNameModules:o.registrationNameModules,putListener:function(e,n,r){"production"!==t.env.NODE_ENV?u(!r||"function"==typeof r,"Expected %s listener to be a function, instead got type %s",n,typeof r):u(!r||"function"==typeof r);
 var o=c[n]||(c[n]={});o[e]=r},getListener:function(e,t){var n=c[t];return n&&n[e]},deleteListener:function(e,t){var n=c[t];n&&delete n[e]},deleteAllListeners:function(e){for(var t in c)delete c[t][e]},extractEvents:function(e,t,n,r){for(var i,a=o.plugins,u=0,c=a.length;c>u;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;P<D.length;P++)if(!D[P]){console.error("One or more ES5 shim/shams expected by React are not available: https://fb.me/react-warning-polyfills";);break}}}N.version="0.13.3",e.exports=N}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=d++,p[e[m]]={}),p[e[m]]}var o=n(13),i=n(31),s=n(129),a=n(262),u=n(87),c=n(5),l=n(94),p={},h=!1,d=0,f={topBlur:"blur",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=c({},a,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,i=r(n),a=s.registrationNameDependencies[e],u=o.topLevelTypes,c=0,p=a.length;p>c;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<n.length&&!o(n,r);r++);return n.substr(0,r)}function c(e,n){var r=Math.min(e.length,n.length);if(0===r)return"";for(var s=0,a=0;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++<m,"traverseParentPath(%s, %s, ...): Detected an infinite loop while traversing the React DOM ID tree. This may be due to malformed IDs: %s",e,n):h(p++<m)}}var p=n(141),h=n(2),d=".",f=d.length,m=100,v={createReactRootID:function(){return r(p.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===d&&e.length>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;n<u.length;n++){var r=u[n];this[r]=e>n?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<l.levels.SILENT?"No console available for logging":void 0},l.setDefaultLevel=function(e){s()||l.setLevel(e,!1)},l.enableAll=function(e){l.setLevel(l.levels.TRACE,e)},l.disableAll=function(e){l.setLevel(l.levels.SILENT,e)};var h=s();null==h&&(h=null==t?"WARN":t),l.setLevel(h,!1)}var s=function(){},a="undefined",u=["trace","debug","info","warn","error"],c=new i,l={};c.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=l[e];return t||(t=l[e]=new i(e,c.getLevel(),c.methodFactory)),t};var p=typeof window!==a?window.log:void 0;return c.noConflict=function(){return typeof window!==a&&window.log===c&&(window.log=p),c},c})},function(e,t,n){(function(t){"use strict";var r=n(8),o=n(9);if("production"!==t.env.NODE_ENV){var i="_reactFragment",s="_reactDidWarn",a=!1;try{var u=function(){return 1};Object.defineProperty({},i,{enumerable:!1,value:!0}),Object.defineProperty({},"key",{enumerable:!0,get:u}),a=!0}catch(c){}var l=function(e,n){Object.defineProperty(e,n,{enumerable:!0,get:function(){return"production"!==t.env.NODE_ENV?o(this[s],"A ReactFragment is an opaque type. Accessing any of its properties is deprecated. Pass it to one of the React.Children helpers."):null,this[s]=!0,this[i][n]},set:function(e){"production"!==t.env.NODE_ENV?o(this[s],"A ReactFragment is an immutable opaque type. Mutating its properties is deprecated."):null,this[s]=!0,this[i][n]=e}})},p={},h=function(e){var t="";for(var n in e)t+=n+":"+typeof e[n]+",";var r=!!p[t];return p[t]=!0,r}}var d={create:function(e){if("production"!==t.env.NODE_ENV){if("object"!=typeof e||!e||Array.isArray(e))return"production"!==t.env.NODE_ENV?o(!1,"React.addons.createFragment only accepts a single object.",e):null,e;if(r.isValidElement(e))return"production"!==t.env.NODE_ENV?o(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."):null,e;if(a){var n={};Object.defineProperty(n,i,{enumerable:!1,value:e}),Object.defineProperty(n,s,{writable:!0,enumerable:!1,value:!1});for(var u in e)l(n,u);return Object.preventExtensions(n),n}}return e},extract:function(e){return"production"!==t.env.NODE_ENV&&a?e[i]?e[i]:("production"!==t.env.NODE_ENV?o(h(e),"Any use of a keyed object should be wrapped in React.addons.createFragment(object) before being passed as a child."):null,e):e},extractIfFragment:function(e){if("production"!==t.env.NODE_ENV&&a){if(e[i])return e[i];for(var n in e)if(e.hasOwnProperty(n)&&r.isValidElement(e[n]))return d.extract(e)}return e}};e.exports=d}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(270),i=n(52),s={mountComponent:function(e,n,o,s){var a=e.mountComponent(n,o,s);return"production"!==t.env.NODE_ENV&&i.checkAndWarnForMutatedProps(e._currentElement),o.getReactMountReady().enqueue(r,e),a},unmountComponent:function(e){o.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,n,s,a){var u=e._currentElement;if(n!==u||null==n._owner){"production"!==t.env.NODE_ENV&&i.checkAndWarnForMutatedProps(n);var c=o.shouldUpdateRefs(u,n);c&&o.detachRefs(e,u),e.receiveComponent(n,s,a),c&&s.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};e.exports=s}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(28),i=n(92),s={view:function(e){if(e.view)return e.view;var t=i(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,s),e.exports=r},function(e,t,n){var r;/*!
 	  Copyright (c) 2015 Jed Watson.
@@ -28,15 +28,15 @@
 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<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(14),d=n(44),f=n(74),m=r(f),v=n(188),y=r(v),g=n(185),b=r(g),w=n(187),E=r(w),T=n(75),x=function(){function e(t,n,r,o,s,a,u){i(this,e),h.checkType(t,"string"),h.checkType(n,"string","Plural"),d.addLockedProperty(this,"name",t),d.addLockedProperty(this,"plural",n),d.addLockedProperty(this,"isMetaData",r&&r.metadata||!1),d.addLockedProperty(this,"apiEndpoint",r&&r.apiEndpoint),d.addLockedProperty(this,"modelProperties",o),d.addLockedProperty(this,"modelValidations",s),d.addLockedProperty(this,"attributeProperties",a),d.addLockedProperty(this,"authorities",u),this.filters=E["default"].getFilters(this)}return p(e,[{key:"filter",value:function(){return this.clone().filters}},{key:"create",value:function(e){var t=m["default"].create(this);return e&&Object.keys(t).forEach(function(n){t.dataValues[n]=e[n]}),t}},{key:"clone",value:function(){var e=Object.getPrototypeOf(this),t=this.filters.filters,n=Object.create(e);return n=d.copyOwnProperties(n,this),n.filters=E["default"].getFilters(n),n.filters.filters=t.map(function(e){return e}),n}},{key:"get",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]?{fields:":all"}:arguments[1];return h.checkDefined(e,"Identifier"),Array.isArray(e)?this.list({filter:["id:in:["+e.join(",")+"]"]}):this.api.get([this.apiEndpoint,e].join("/"),n).then(function(e){return t.create(e)})["catch"](function(e){return e.message?Promise.reject(e.message):Promise.reject(e)})}},{key:"list",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=this.filters.getFilters();return!h.isDefined(t.filter)&&n.length&&(t.filter=n),this.api.get(this.apiEndpoint,Object.assign({fields:":all"},t)).then(function(t){return y["default"].create(e,t[e.plural].map(function(t){return e.create(t)}),t.pager)})}},{key:"save",value:function(e){var t=function(e){return!!e.id};return t(e)?this.api.update(e.dataValues.href,this.getOwnedPropertyJSON(e)):this.api.post(this.apiEndpoint,this.getOwnedPropertyJSON(e))}},{key:"getOwnedPropertyJSON",value:function(e){var t={},n=this.getOwnedPropertyNames();return Object.keys(this.modelValidations).forEach(function(r){n.indexOf(r)>=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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=n(14),y=n(73),g=r(y),b=n(43),w=r(b),E=void 0,T=/^[0-9\+ ]+$/,x={PHONENUMBER:[{message:"Phone number can only consist of numbers and + and [space]",validator:i}]},C=function(){function e(t){o(this,e),v.checkType(t,"object","logger (Logger)"),E=t}return m(e,[{key:"validate",value:function(e,t){if(!v.isObject(e))throw new TypeError("validationSettings should be of type object");var n={status:!0,messages:[]};return e.required!==!1||t?(h(t,e.type)||(n.status=!1,n.messages.push({message:"This is not a valid type",value:t})),f(n,t,e),p(n,t,e.type),n):{status:!0,messages:[]}}},{key:"validateAgainstSchema",value:function(e){function t(e){if(e.response&&e.response.validationViolations)return e.response.validationViolations;throw new Error("Response was not a WebMessage with the exprected format")}if(!(e&&e.modelDefinition&&e.modelDefinition.name))return Promise.reject("model.modelDefinition.name can not be found");var n="schemas/"+e.modelDefinition.name;return w["default"].getApi().post(n,e.modelDefinition.getOwnedPropertyJSON(e)).then(function(e){return"OK"===e.status?[]:Promise.reject(e)})["catch"](t)}}],[{key:"getModelValidation",value:function(){return this.modelValidation?this.modelValidation:this.modelValidation=new e(g["default"].getLogger(console))}}]),e}();t["default"]=C,e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={keyCacheStrategy:{label:"cache_strategy",type:"dropdown",options:{NO_CACHE:"no_cache",CACHE_1_HOUR:"cache_for_one_hour",CACHE_6AM_TOMORROW:"cache_until_6am_tomorrow",CACHE_TWO_WEEKS:"cache_for_two_weeks"}},keyAnalyticsMaxLimit:{label:"analytics_max_limit",type:"dropdown",options:{5e4:5e4,1e5:1e5,2e5:2e5,0:"unlimited"}},keyDatabaseServerCpus:{label:"no_of_database_server_cpus",type:"dropdown",options:{0:"detect_based_on_web_server",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",16:"16",32:"32"}},infrastructuralIndicators:{label:"infrastructural_indicators",configuration:"infrastructuralIndicators",type:"indicatorGroups"},infrastructuralDataElements:{label:"infrastructural_data_elements",configuration:"infrastructuralDataElements",type:"dataElementGroups"},infrastructuralPeriodType:{label:"infrastructural_period_type",configuration:"infrastructuralPeriodType",type:"dropdown",options:{Daily:"Daily",Weekly:"Weekly",Monthly:"Monthly",BiMonthly:"BiMonthly",Quarterly:"Quarterly",SixMonthly:"SixMonthly",SixMonthlyApril:"SixMonthlyApril",Yearly:"yearly",FinancialApril:"FinancialApril",FinancialJuly:"FinancialJuly",FinancialOct:"FinancialOct"}},keyAnalysisRelativePeriod:{label:"default_analysis_relative_period",type:"dropdown",options:{THIS_MONTH:"THIS_MONTH",LAST_MONTH:"LAST_MONTH",THIS_BIMONTH:"THIS_BIMONTH",LAST_BIMONTH:"LAST_BIMONTH",THIS_QUARTER:"THIS_QUARTER",LAST_QUARTER:"LAST_QUARTER",THIS_SIX_MONTH:"THIS_SIX_MONTH",LAST_SIX_MONTH:"LAST_SIX_MONTH",MONTHS_THIS_YEAR:"MONTHS_THIS_YEAR",QUARTERS_THIS_YEAR:"QUARTERS_THIS_YEAR",THIS_YEAR:"THIS_YEAR",MONTHS_LAST_YEAR:"MONTHS_LAST_YEAR",QUARTERS_LAST_YEAR:"QUARTERS_LAST_YEAR",LAST_YEAR:"LAST_YEAR",LAST_5_YEARS:"LAST_5_YEARS",LAST_12_MONTHS:"LAST_12_MONTHS",LAST_6_MONTHS:"LAST_6_MONTHS",LAST_3_MONTHS:"LAST_3_MONTHS",LAST_6_BIMONTHS:"LAST_6_BIMONTHS",LAST_4_QUARTERS:"LAST_4_QUARTERS",LAST_2_SIXMONTHS:"LAST_2_SIXMONTHS",THIS_FINANCIAL_YEAR:"THIS_FINANCIAL_YEAR",LAST_FINANCIAL_YEAR:"LAST_FINANCIAL_YEAR",LAST_5_FINANCIAL_YEARS:"LAST_5_FINANCIAL_YEARS",THIS_WEEK:"THIS_WEEK",LAST_WEEK:"LAST_WEEK",LAST_4_WEEKS:"LAST_4_WEEKS",LAST_12_WEEKS:"LAST_12_WEEKS",LAST_52_WEEKS:"LAST_52_WEEKS"}},feedbackRecipients:{label:"feedback_recipients",configuration:"feedbackRecipients",type:"userGroups"},offlineOrganisationUnitLevel:{label:"max_levels_to_offline",description:"relative_to_current_user",configuration:"offlineOrganisationUnitLevel",type:"organisationUnitLevels"},keySystemNotificationsEmail:{label:"system_notifications_email_address",validators:["email"]},factorDeviation:{label:"data_analysis_factor",validators:["number"]},phoneNumberAreaCode:{label:"phone_number_area_code",validators:["number"]},helpPageLink:{label:"help_page_link"},keyInstanceBaseUrl:{label:"server_base_url",validators:["url"]},googleAnalyticsUA:{label:"google_analytics_ua_key"},multiOrganisationUnitForms:{label:"multi_organisation_unit_forms",type:"checkbox"},omitIndicatorsZeroNumeratorDataMart:{label:"omit_indicators_zero_numerator_data_mart",type:"checkbox"},keyAnalyticsMaintenanceMode:{label:"put_analytics_in_maintenance_mode",type:"checkbox"},applicationTitle:{label:"application_title",appendLocale:!0,multiLine:!0},keyApplicationIntro:{label:"application_introduction",description:"allows_html",appendLocale:!0,multiLine:!0},keyApplicationNotification:{label:"application_notification",description:"allows_html",appendLocale:!0,multiLine:!0},keyApplicationFooter:{label:"application_left_footer",description:"allows_html",appendLocale:!0,multiLine:!0},keyApplicationRightFooter:{label:"application_right_footer",description:"allows_html",appendLocale:!0,multiLine:!0},currentStyle:{label:"style",type:"styles"},startModule:{label:"start_page",type:"startModules"},keyFlag:{label:"flag",type:"flags"},keyRequireAddToView:{label:"require_authority_to_add_to_view_object_lists",type:"checkbox"},keyCustomLoginPageLogo:{label:"custom_login_page_logo",type:"checkbox"},keyCustomTopMenuLogo:{label:"custom_top_menu_logo",type:"checkbox"},keyEmailHostName:{label:"host_name"},keyEmailPort:{label:"port",type:"dropdown",options:[587,465,25]},keyEmailUsername:{label:"username"},keyEmailPassword:{label:"password",configuration:"smtpPassword",type:"password"},keyEmailTls:{label:"tls",type:"checkbox"},keyEmailSender:{label:"email_sender",validators:["email"]},emailTestButton:{label:"send_test_email",type:"post_button",uri:"/email/test"},selfRegistrationRole:{label:"self_registration_account_user_role",configuration:"selfRegistrationRole",type:"userRoles"},keySelfRegistrationNoRecaptcha:{label:"do_not_require_recaptcha_for_self_registration",type:"checkbox"},selfRegistrationOrgUnit:{label:"self_registration_account_organisation_unit",configuration:"selfRegistrationOrgUnit",type:"organisationUnits"},keyAccountRecovery:{label:"enable_user_account_recovery",type:"checkbox"},keyCanGrantOwnUserAuthorityGroups:{label:"allow_users_to_grant_own_user_roles",type:"checkbox"},keyAllowObjectAssignment:{label:"allow_assigning_object_to_related_objects_during_add_or_update",type:"checkbox"},credentialsExpires:{label:"user_credentials_expires",type:"dropdown",options:{0:"never",3:"3_months",6:"6_months",12:"12_months"}},keyOpenIdProvider:{label:"openid_provider"},keyOpenIdProviderLabel:{label:"openid_provider_label"},corsWhitelist:{label:"cors_whitelist",configuration:"corsWhitelist",type:"editlist",multiLine:!0,helpText:"one_url_per_line"},keyHideUnapprovedDataInAnalytics:{label:"hide_unapproved_data_in_analytics",type:"checkbox"},keyAcceptanceRequiredForApproval:{label:"acceptance_required_before_approval",type:"checkbox"},dataApprovalLevels:{label:"data_approval_levels",type:"dataapproval"},keyCalendar:{label:"calendar",type:"dropdown",options:{coptic:"coptic",ethiopian:"ethiopian",gregorian:"gregorian",islamic:"islamic",iso8601:"iso8601",julian:"julian",nepali:"nepali",thai:"thai"}},keyDateFormat:{label:"date_format",type:"dropdown",options:{"yyyy-MM-dd":"yyyy-MM-dd","dd-MM-yyyy":"dd-MM-yyyy"}},remoteServerUrl:{label:"remote_server_url",configuration:"remoteServerUrl",validators:["url"]},remoteServerUsername:{label:"remote_server_username",configuration:"remoteServerUsername"},remoteServerPassword:{label:"remote_server_password",configuration:"remoteServerPassword",type:"password"},keyDataImportStrictPeriods:{label:"require_periods_to_match_period_type",type:"checkbox"},keyDataImportStrictCategoryOptionCombos:{label:"require_category_option_combos_to_match",type:"checkbox"},keyDataImportStrictOrganisationUnits:{label:"require_organisation_units_to_match_assignment",type:"checkbox"},keyDataImportStrictAttributeOptionCombos:{label:"require_attribute_option_combos_to_match",type:"checkbox"},keyDataImportRequireCategoryOptionCombo:{label:"require_category_option_combo_to_be_specified",type:"checkbox"},keyDataImportRequireAttributeOptionCombo:{label:"require_attribute_option_combo_to_be_specified",type:"checkbox"},oauth2clients:{label:"oauth2clients",type:"oauth2clients"}};t["default"]=n,e.exports=t["default"]},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(113),a=n(4),u=n(11),c=n(217),l=n(218),p=n(7),h=n(6),d=i.createClass({displayName:"Checkbox",mixins:[a],contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{checked:i.PropTypes.bool,checkedIcon:i.PropTypes.element,defaultChecked:i.PropTypes.bool,iconStyle:i.PropTypes.object,labelStyle:i.PropTypes.object,onCheck:i.PropTypes.func,unCheckedIcon:i.PropTypes.element},getInitialState:function(){return{switched:this.props.checked||this.props.defaultChecked||this.props.valueLink&&this.props.valueLink.value||!1,muiTheme:this.context.muiTheme?this.context.muiTheme:h.getMuiTheme(p)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getTheme:function(){return this.state.muiTheme.checkbox},getStyles:function(){var e=24,t={icon:{height:e,width:e},check:{position:"absolute",opacity:0,transform:"scale(0)",transitionOrigin:"50% 50%",transition:u.easeOut("450ms","opacity","0ms")+", "+u.easeOut("0ms","transform","450ms"),fill:this.getTheme().checkedColor},box:{position:"absolute",opacity:1,fill:this.getTheme().boxColor,transition:u.easeOut("2s",null,"200ms")},checkWhenSwitched:{opacity:1,transform:"scale(1)",transition:u.easeOut("0ms","opacity","0ms")+", "+u.easeOut("800ms","transform","0ms")},boxWhenSwitched:{transition:u.easeOut("100ms",null,"0ms"),fill:this.getTheme().checkedColor},checkWhenDisabled:{fill:this.getTheme().disabledColor},boxWhenDisabled:{fill:this.getTheme().disabledColor},label:{color:this.props.disabled?this.getTheme().labelDisabledColor:this.getTheme().labelColor}};return t},render:function(){var e=this.props,t=e.iconStyle,n=(e.onCheck,e.checkedIcon),a=e.unCheckedIcon,u=r(e,["iconStyle","onCheck","checkedIcon","unCheckedIcon"]),p=this.getStyles(),h=this.mergeAndPrefix(p.box,this.state.switched&&p.boxWhenSwitched,t,this.props.disabled&&p.boxWhenDisabled),d=this.mergeAndPrefix(p.check,this.state.switched&&p.checkWhenSwitched,t,this.props.disabled&&p.checkWhenDisabled),f=n?i.cloneElement(n,{style:this.mergeAndPrefix(d,n.props.style)}):i.createElement(l,{style:d}),m=a?i.cloneElement(a,{style:this.mergeAndPrefix(h,a.props.style)}):i.createElement(c,{style:h}),v=i.createElement("div",null,m,f),y=this.state.switched?d.fill:h.fill,g=this.mergeAndPrefix(p.icon,t),b=this.mergeAndPrefix(p.label,this.props.labelStyle),w={ref:"enhancedSwitch",inputType:"checkbox",switched:this.state.switched,switchElement:v,rippleColor:y,iconStyle:g,onSwitch:this._handleCheck,labelStyle:b,onParentShouldUpdate:this._handleStateChange,defaultSwitched:this.props.defaultChecked,labelPosition:this.props.labelPosition?this.props.labelPosition:"right"};return i.createElement(s,o({},u,w))},isChecked:function(){return this.refs.enhancedSwitch.isSwitched()},setChecked:function(e){this.refs.enhancedSwitch.setSwitched(e)},_handleCheck:function(e,t){this.props.onCheck&&this.props.onCheck(e,t)},_handleStateChange:function(e){this.setState({switched:e})}});e.exports=d},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(198),a=i.createClass({displayName:"ClearFix",render:function(){var e=this.props,t=(e.style,r(e,["style"])),n=function(){return{content:"' '",display:"table"}},a=n();return a.clear="both",i.createElement(s,o({},t,{beforeStyle:n(),afterStyle:a,style:this.props.style}),this.props.children)}});e.exports=a},function(e,t,n){(function(t){"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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(50),a=n(4),u=n(11),c=n(126),l=n(212),p=n(112),h=n(118),d=n(119),f=n(18),m=n(7),v=n(6),y=i.createClass({displayName:"EnhancedSwitch",mixins:[l,a],contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{id:i.PropTypes.string,inputType:i.PropTypes.string.isRequired,switchElement:i.PropTypes.element.isRequired,onParentShouldUpdate:i.PropTypes.func.isRequired,switched:i.PropTypes.bool.isRequired,rippleStyle:i.PropTypes.object,rippleColor:i.PropTypes.string,iconStyle:i.PropTypes.object,thumbStyle:i.PropTypes.object,trackStyle:i.PropTypes.object,labelStyle:i.PropTypes.object,name:i.PropTypes.string,value:i.PropTypes.string,label:i.PropTypes.string,onSwitch:i.PropTypes.func,required:i.PropTypes.bool,disabled:i.PropTypes.bool,defaultSwitched:i.PropTypes.bool,labelPosition:i.PropTypes.oneOf(["left","right"]),disableFocusRipple:i.PropTypes.bool,disableTouchRipple:i.PropTypes.bool},windowListeners:{keydown:"_handleWindowKeydown",keyup:"_handleWindowKeyup"},getInitialState:function(){return{isKeyboardFocused:!1,parentWidth:100,muiTheme:this.context.muiTheme?this.context.muiTheme:v.getMuiTheme(m)}},getEvenWidth:function(){return parseInt(window.getComputedStyle(i.findDOMNode(this.refs.root)).getPropertyValue("width"),10)},componentDidMount:function(){var e=i.findDOMNode(this.refs.checkbox);this.props.switched&&e.checked===this.props.switched||this.props.onParentShouldUpdate(e.checked),window.addEventListener("resize",this._handleResize),this._handleResize()},componentWillUnmount:function(){window.removeEventListener("resize",this._handleResize)},componentWillReceiveProps:function(e,t){var n=e.hasOwnProperty("checkedLink"),r=e.hasOwnProperty("checked"),o=e.hasOwnProperty("toggled"),i=e.hasOwnProperty("defaultSwitched")&&e.defaultSwitched!==this.props.defaultSwitched,s={};s.muiTheme=t.muiTheme?t.muiTheme:this.state.muiTheme,r?s.switched=e.checked:o?s.switched=e.toggled:n?s.switched=e.checkedLink.value:i&&(s.switched=e.defaultSwitched),void 0!==s.switched&&s.switched!==this.props.switched&&this.props.onParentShouldUpdate(s.switched),this.setState(s)},getTheme:function(){return this.state.muiTheme.rawTheme.palette},getStyles:function(){var e=this.state.muiTheme.rawTheme.spacing,t=60-e.desktopGutterLess,n="calc(100% - 60px)",r={root:{position:"relative",cursor:this.props.disabled?"default":"pointer",overflow:"visible",display:"table",height:"auto",width:"100%"},input:{position:"absolute",cursor:this.props.disabled?"default":"pointer",pointerEvents:"all",opacity:0,width:"100%",height:"100%",zIndex:2,left:0,boxSizing:"border-box",padding:0,margin:0},controls:{width:"100%",height:"100%"},label:{"float":"left",position:"relative",display:"block",width:n,lineHeight:"24px",color:this.getTheme().textColor},wrap:{transition:u.easeOut(),"float":"left",position:"relative",display:"block",width:t,marginRight:"right"===this.props.labelPosition?e.desktopGutterLess:0,marginLeft:"left"===this.props.labelPosition?e.desktopGutterLess:0},ripple:{height:"200%",width:"200%",top:-12,left:-12}};return r},render:function(){var e=this.props,t=(e.type,e.name,e.value,e.label,e.onSwitch,e.defaultSwitched,e.onBlur,e.onFocus,e.onMouseUp,e.onMouseDown,e.onMouseLeave,e.onTouchStart,e.onTouchEnd,e.disableTouchRipple),n=e.disableFocusRipple,s=e.className,a=r(e,["type","name","value","label","onSwitch","defaultSwitched","onBlur","onFocus","onMouseUp","onMouseDown","onMouseLeave","onTouchStart","onTouchEnd","disableTouchRipple","disableFocusRipple","className"]),u=this.getStyles(),l=this.mergeAndPrefix(u.wrap,this.props.iconStyle),m=this.mergeAndPrefix(u.ripple,this.props.rippleStyle),v=this.props.hasOwnProperty("rippleColor")?this.props.rippleColor:this.getTheme().primary1Color;this.props.thumbStyle&&(l.marginLeft/=2,l.marginRight/=2);var y=this.props.id||c.generate(),g=this.mergeAndPrefix(u.label,this.props.labelStyle),b=this.props.label?i.createElement("label",{style:g,htmlFor:y},this.props.label):null,w={ref:"checkbox",type:this.props.inputType,style:this.mergeAndPrefix(u.input),name:this.props.name,value:this.props.value,defaultChecked:this.props.defaultSwitched,onBlur:this._handleBlur,onFocus:this._handleFocus},E=this.props.disabled||t;E||(w.onMouseUp=this._handleMouseUp,w.onMouseDown=this._handleMouseDown,w.onMouseLeave=this._handleMouseLeave,w.onTouchStart=this._handleTouchStart,w.onTouchEnd=this._handleTouchEnd),this.props.hasOwnProperty("checkedLink")||(w.onChange=this._handleChange);var T=i.createElement("input",o({},a,w)),x=i.createElement(d,{ref:"touchRipple",key:"touchRipple",style:m,color:v,centerRipple:!0}),C=i.createElement(h,{key:"focusRipple",innerStyle:m,color:v,show:this.state.isKeyboardFocused}),_=[E?null:x,this.props.disabled||n?null:C],S=this.props.thumbStyle?i.createElement("div",{style:l},i.createElement("div",{style:this.props.trackStyle}),i.createElement(f,{style:this.props.thumbStyle,zDepth:1,circle:!0}," ",_," ")):i.createElement("div",{style:l},this.props.switchElement,_),N=this.props.labelPosition,O=N&&"RIGHT"===this.props.labelPosition.toUpperCase()?i.createElement(p,{style:this.mergeAndPrefix(u.controls)},S,b):i.createElement(p,{style:this.mergeAndPrefix(u.controls)},b,S);return i.createElement("div",{ref:"root",className:s,style:this.mergeAndPrefix(u.root,this.props.style)},T,O)},isSwitched:function(){return i.findDOMNode(this.refs.checkbox).checked},setSwitched:function(e){if(this.props.hasOwnProperty("checked")&&this.props.checked!==!1){if("production"!==t.env.NODE_ENV){var n="Cannot call set method while checked is defined as a property.";console.error(n)}}else this.props.onParentShouldUpdate(e),i.findDOMNode(this.refs.checkbox).checked=e},getValue:function(){return i.findDOMNode(this.refs.checkbox).value},isKeyboardFocused:function(){return this.state.isKeyboardFocused},_handleChange:function(e){this._tabPressed=!1,this.setState({isKeyboardFocused:!1});var t=i.findDOMNode(this.refs.checkbox).checked;this.props.hasOwnProperty("checked")||this.props.onParentShouldUpdate(t),this.props.onSwitch&&this.props.onSwitch(e,t)},_handleWindowKeydown:function(e){e.keyCode===s.TAB&&(this._tabPressed=!0),e.keyCode===s.SPACE&&this.state.isKeyboardFocused&&this._handleChange(e)},_handleWindowKeyup:function(e){e.keyCode===s.SPACE&&this.state.isKeyboardFocused&&this._handleChange(e)},_handleMouseDown:function(e){0===e.button&&this.refs.touchRipple.start(e)},_handleMouseUp:function(){this.refs.touchRipple.end()},_handleMouseLeave:function(){this.refs.touchRipple.end()},_handleTouchStart:function(e){this.refs.touchRipple.start(e)},_handleTouchEnd:function(){this.refs.touchRipple.end()},_handleBlur:function(e){this.setState({isKeyboardFocused:!1}),this.props.onBlur&&this.props.onBlur(e)},_handleFocus:function(e){var t=this;setTimeout(function(){t._tabPressed&&t.setState({isKeyboardFocused:!0})},150),this.props.onFocus&&this.props.onFocus(e)},_handleResize:function(){this.setState({parentWidth:this.getEvenWidth()})}});e.exports=y}).call(t,n(1))},function(e,t,n){(function(t){"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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(11),u=n(26),c=n(45),l=n(29),p=n(18),h=n(60),d=n(7),f=n(6),m=function(e){var t=e?0:2;return{zDepth:t,initialZDepth:t}},v=i.createClass({displayName:"FloatingActionButton",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{backgroundColor:i.PropTypes.string,disabled:i.PropTypes.bool,disabledColor:i.PropTypes.string,iconClassName:i.PropTypes.string,iconStyle:i.PropTypes.object,mini:i.PropTypes.bool,onMouseDown:i.PropTypes.func,onMouseUp:i.PropTypes.func,onMouseLeave:i.PropTypes.func,onTouchEnd:i.PropTypes.func,onTouchStart:i.PropTypes.func,secondary:i.PropTypes.bool},getInitialState:function(){var e=this.props.disabled?0:2;return{hovered:!1,initialZDepth:e,touch:!1,zDepth:e,muiTheme:this.context.muiTheme?this.context.muiTheme:f.getMuiTheme(d)}},componentWillMount:function(){this.setState(m(this.props.disabled))},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n}),e.disabled!==this.props.disabled&&this.setState(m(e.disabled))},componentDidMount:function(){if("production"!==t.env.NODE_ENV&&this.props.iconClassName&&this.props.children){var e="You have set both an iconClassName and a child icon. It is recommended you use only one method when adding icons to FloatingActionButtons.";console.warn(e)}},_getBackgroundColor:function(){return this.props.disabled?this.props.disabledColor||this.getTheme().disabledColor:this.props.backgroundColor?this.props.backgroundColor:this.props.secondary?this.getTheme().secondaryColor:this.getTheme().color},getTheme:function(){return this.state.muiTheme.floatingActionButton},_getIconColor:function(){return this.props.disabled?this.getTheme().disabledTextColor:this.props.secondary?this.getTheme().secondaryIconColor:this.getTheme().iconColor},getStyles:function(){var e=this.state.muiTheme.floatingActionButton,t={root:{transition:a.easeOut(),display:"inline-block"},container:{transition:a.easeOut(),position:"relative",height:e.buttonSize,width:e.buttonSize,padding:0,overflow:"hidden",backgroundColor:this._getBackgroundColor(),borderRadius:"50%",textAlign:"center",verticalAlign:"bottom",transform:"translate3d(0, 0, 0)"},containerWhenMini:{height:e.miniSize,width:e.miniSize},overlay:{transition:a.easeOut(),top:0},overlayWhenHovered:{backgroundColor:u.fade(this._getIconColor(),.4)},icon:{height:e.buttonSize,lineHeight:e.buttonSize+"px",fill:e.iconColor,color:this._getIconColor()},iconWhenMini:{height:e.miniSize,lineHeight:e.miniSize+"px"}};return t},render:function(){var e=this.props,t=e.disabled,n=e.mini,s=(e.secondary,e.iconStyle),a=e.iconClassName,u=r(e,["disabled","mini","secondary","iconStyle","iconClassName"]),d=this.getStyles(),f=void 0;a&&(f=i.createElement(l,{className:a,style:this.mergeAndPrefix(d.icon,n&&d.iconWhenMini,s)}));var m=h.extend(this.props.children,{style:this.mergeAndPrefix(d.icon,n&&d.iconWhenMini,s)}),v=t?null:{onMouseDown:this._handleMouseDown,onMouseUp:this._handleMouseUp,onMouseLeave:this._handleMouseLeave,onMouseEnter:this._handleMouseEnter,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd,onKeyboardFocus:this._handleKeyboardFocus};return i.createElement(p,{style:this.mergeAndPrefix(d.root,this.props.style),zDepth:this.state.zDepth,circle:!0},i.createElement(c,o({},u,v,{ref:"container",disabled:t,style:this.mergeAndPrefix(d.container,this.props.mini&&d.containerWhenMini),focusRippleColor:d.icon.color,touchRippleColor:d.icon.color}),i.createElement("div",{ref:"overlay",style:this.mergeAndPrefix(d.overlay,this.state.hovered&&!this.props.disabled&&d.overlayWhenHovered)},f,m)))},_handleMouseDown:function(e){0===e.button&&this.setState({zDepth:this.state.initialZDepth+1}),this.props.onMouseDown&&this.props.onMouseDown(e)},_handleMouseUp:function(e){this.setState({zDepth:this.state.initialZDepth}),this.props.onMouseUp&&this.props.onMouseUp(e)},_handleMouseLeave:function(e){this.refs.container.isKeyboardFocused()||this.setState({zDepth:this.state.initialZDepth,hovered:!1}),this.props.onMouseLeave&&this.props.onMouseLeave(e)},_handleMouseEnter:function(e){this.refs.container.isKeyboardFocused()||this.state.touch||this.setState({hovered:!0}),this.props.onMouseEnter&&this.props.onMouseEnter(e)},_handleTouchStart:function(e){this.setState({touch:!0,zDepth:this.state.initialZDepth+1}),this.props.onTouchStart&&this.props.onTouchStart(e)},_handleTouchEnd:function(e){this.setState({zDepth:this.state.initialZDepth}),this.props.onTouchEnd&&this.props.onTouchEnd(e)},_handleKeyboardFocus:function(e,t){t&&!this.props.disabled?(this.setState({zDepth:this.state.initialZDepth+1}),i.findDOMNode(this.refs.overlay).style.backgroundColor=u.fade(this.getStyles().icon.color,.4)):this.state.hovered||(this.setState({zDepth:this.state.initialZDepth}),i.findDOMNode(this.refs.overlay).style.backgroundColor="transparent")}});e.exports=v}).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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(26),u=n(4),c=n(19),l=n(11),p=n(47),h=n(45),d=n(203),f=n(215),m=n(122),v=n(204),y=n(7),g=n(6),b=i.createClass({displayName:"ListItem",mixins:[s,u],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{autoGenerateNestedIndicator:i.PropTypes.bool,disabled:i.PropTypes.bool,disableKeyboardFocus:i.PropTypes.bool,initiallyOpen:i.PropTypes.bool,innerDivStyle:i.PropTypes.object,insetChildren:i.PropTypes.bool,innerStyle:i.PropTypes.object,leftAvatar:i.PropTypes.element,leftCheckbox:i.PropTypes.element,leftIcon:i.PropTypes.element,nestedLevel:i.PropTypes.number,nestedItems:i.PropTypes.arrayOf(i.PropTypes.element),onKeyboardFocus:i.PropTypes.func,
 onMouseEnter:i.PropTypes.func,onMouseLeave:i.PropTypes.func,onNestedListToggle:i.PropTypes.func,onTouchStart:i.PropTypes.func,onTouchTap:i.PropTypes.func,rightAvatar:i.PropTypes.element,rightIcon:i.PropTypes.element,rightIconButton:i.PropTypes.element,rightToggle:i.PropTypes.element,primaryText:i.PropTypes.node,secondaryText:i.PropTypes.node,secondaryTextLines:i.PropTypes.oneOf([1,2])},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getDefaultProps:function(){return{autoGenerateNestedIndicator:!0,initiallyOpen:!1,nestedItems:[],nestedLevel:0,onKeyboardFocus:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onNestedListToggle:function(){},onTouchStart:function(){},secondaryTextLines:1}},getInitialState:function(){return{hovered:!1,isKeyboardFocused:!1,open:this.props.initiallyOpen,rightIconButtonHovered:!1,rightIconButtonKeyboardFocused:!1,touch:!1,muiTheme:this.context.muiTheme?this.context.muiTheme:g.getMuiTheme(y)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},render:function(){var e=this.props,t=e.autoGenerateNestedIndicator,n=e.children,s=e.disabled,u=e.disableKeyboardFocus,y=e.innerDivStyle,g=e.insetChildren,b=e.leftAvatar,w=e.leftCheckbox,E=e.leftIcon,T=e.nestedItems,x=e.nestedLevel,C=(e.onKeyboardFocus,e.onMouseLeave,e.onMouseEnter,e.onTouchStart,e.onTouchTap),_=e.rightAvatar,S=e.rightIcon,N=e.rightIconButton,O=e.rightToggle,D=e.primaryText,P=e.secondaryText,k=e.secondaryTextLines,M=e.style,A=r(e,["autoGenerateNestedIndicator","children","disabled","disableKeyboardFocus","innerDivStyle","insetChildren","leftAvatar","leftCheckbox","leftIcon","nestedItems","nestedLevel","onKeyboardFocus","onMouseLeave","onMouseEnter","onTouchStart","onTouchTap","rightAvatar","rightIcon","rightIconButton","rightToggle","primaryText","secondaryText","secondaryTextLines","style"]),R=this.state.muiTheme.rawTheme.palette.textColor,I=a.fade(R,.1),j=!P&&(b||_),L=!P&&!(b||_),F=P&&1===k,U=P&&k>1,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(124);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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(3),a=n(4),u=n(11),c=n(26),l=n(47),p=n(45),h=n(18),d=n(7),f=n(6),m=s.createClass({displayName:"RaisedButton",mixins:[a],contextTypes:{muiTheme:s.PropTypes.object},childContextTypes:{muiTheme:s.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{className:s.PropTypes.string,disabled:s.PropTypes.bool,label:o,onMouseDown:s.PropTypes.func,onMouseUp:s.PropTypes.func,onMouseLeave:s.PropTypes.func,onTouchEnd:s.PropTypes.func,onTouchStart:s.PropTypes.func,primary:s.PropTypes.bool,secondary:s.PropTypes.bool,labelStyle:s.PropTypes.object,backgroundColor:s.PropTypes.string,labelColor:s.PropTypes.string,disabledBackgroundColor:s.PropTypes.string,disabledLabelColor:s.PropTypes.string,fullWidth:s.PropTypes.bool},getInitialState:function(){var e=this.props.disabled?0:1;return{hovered:!1,touched:!1,initialZDepth:e,zDepth:e,muiTheme:this.context.muiTheme?this.context.muiTheme:f.getMuiTheme(d)}},componentWillReceiveProps:function(e,t){var n=e.disabled?0:1,r=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({zDepth:n,initialZDepth:n,muiTheme:r})},_getBackgroundColor:function(){var e=this.props.disabledBackgroundColor?this.props.disabledBackgroundColor:this.getTheme().disabledColor;return this.props.disabled?e:this.props.backgroundColor?this.props.backgroundColor:this.props.primary?this.getTheme().primaryColor:this.props.secondary?this.getTheme().secondaryColor:this.getTheme().color},_getLabelColor:function(){var e=this.props.disabledLabelColor?this.props.disabledLabelColor:this.getTheme().disabledTextColor;return this.props.disabled?e:this.props.labelColor?this.props.labelColor:this.props.primary?this.getTheme().primaryTextColor:this.props.secondary?this.getTheme().secondaryTextColor:this.getTheme().textColor},getThemeButton:function(){return this.state.muiTheme.button},getTheme:function(){return this.state.muiTheme.raisedButton},getStyles:function(){var e=this.props.primary||this.props.secondary?.4:.08,t={root:{backgroundColor:"none",display:"inline-block",minWidth:this.props.fullWidth?"100%":this.getThemeButton().minWidth,height:this.getThemeButton().height,transition:u.easeOut()},container:{position:"relative",height:"100%",width:"100%",padding:0,overflow:"hidden",borderRadius:2,transition:u.easeOut(),backgroundColor:this._getBackgroundColor(),transform:"translate3d(0, 0, 0)"},label:{position:"relative",opacity:1,fontSize:"14px",letterSpacing:0,textTransform:this.getTheme().textTransform?this.getTheme().textTransform:this.getThemeButton().textTransform?this.getThemeButton().textTransform:"uppercase",fontWeight:l.fontWeightMedium,margin:0,padding:"0px "+this.state.muiTheme.rawTheme.spacing.desktopGutterLess+"px",userSelect:"none",lineHeight:this.props.style&&this.props.style.height?this.props.style.height:this.getThemeButton().height+"px",color:this._getLabelColor()},overlay:{transition:u.easeOut(),top:0},overlayWhenHovered:{backgroundColor:c.fade(this._getLabelColor(),e)}};return t},render:function(){var e=this.props,t=e.disabled,n=e.label,o=e.primary,a=e.secondary,u=r(e,["disabled","label","primary","secondary"]),c=this.getStyles(),l=void 0;n&&(l=s.createElement("span",{style:this.mergeAndPrefix(c.label,this.props.labelStyle)},n));var d=c.label.color,f=o||a?.16:.1,m=t?null:{onMouseDown:this._handleMouseDown,onMouseUp:this._handleMouseUp,onMouseLeave:this._handleMouseLeave,onMouseEnter:this._handleMouseEnter,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd,onKeyboardFocus:this._handleKeyboardFocus};return s.createElement(h,{style:this.mergeAndPrefix(c.root,this.props.style),zDepth:this.state.zDepth},s.createElement(p,i({},u,m,{ref:"container",disabled:t,style:this.mergeAndPrefix(c.container),focusRippleColor:d,touchRippleColor:d,focusRippleOpacity:f,touchRippleOpacity:f}),s.createElement("div",{ref:"overlay",style:this.mergeAndPrefix(c.overlay,this.state.hovered&&!this.props.disabled&&c.overlayWhenHovered)},l,this.props.children)))},_handleMouseDown:function(e){0===e.button&&this.setState({zDepth:this.state.initialZDepth+1}),this.props.onMouseDown&&this.props.onMouseDown(e)},_handleMouseUp:function(e){this.setState({zDepth:this.state.initialZDepth}),this.props.onMouseUp&&this.props.onMouseUp(e)},_handleMouseLeave:function(e){this.refs.container.isKeyboardFocused()||this.setState({zDepth:this.state.initialZDepth,hovered:!1}),this.props.onMouseLeave&&this.props.onMouseLeave(e)},_handleMouseEnter:function(e){this.refs.container.isKeyboardFocused()||this.state.touch||this.setState({hovered:!0}),this.props.onMouseEnter&&this.props.onMouseEnter(e)},_handleTouchStart:function(e){this.setState({touch:!0,zDepth:this.state.initialZDepth+1}),this.props.onTouchStart&&this.props.onTouchStart(e)},_handleTouchEnd:function(e){this.setState({zDepth:this.state.initialZDepth}),this.props.onTouchEnd&&this.props.onTouchEnd(e)},_handleKeyboardFocus:function(e,t){if(t&&!this.props.disabled){this.setState({zDepth:this.state.initialZDepth+1});var n=this.props.primary||this.props.secondary?.4:.08;s.findDOMNode(this.refs.overlay).style.backgroundColor=c.fade(this.mergeAndPrefix(this.getStyles().label,this.props.labelStyle).color,n)}else this.state.hovered||(this.setState({zDepth:this.state.initialZDepth}),s.findDOMNode(this.refs.overlay).style.backgroundColor="transparent")}});e.exports=m},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=n(4),s=n(22),a=n(19),u=n(11),c=n(222),l=750,p=r.createClass({displayName:"FocusRipple",mixins:[o,i],propTypes:{color:r.PropTypes.string,innerStyle:r.PropTypes.object,opacity:r.PropTypes.number,show:r.PropTypes.bool},getDefaultProps:function(){return{color:a.darkBlack}},componentDidMount:function(){this.props.show&&(this._setRippleSize(),this._pulsate())},componentDidUpdate:function(){this.props.show?(this._setRippleSize(),this._pulsate()):this._timeout&&clearTimeout(this._timeout)},render:function(){var e=this.props,t=e.show,n=e.style,o=this.mergeStyles({height:"100%",width:"100%",position:"absolute",top:0,left:0},n),i=t?this._getRippleElement(this.props):null;return r.createElement(c,{maxScale:.85,style:o},i)},_getRippleElement:function(e){var t=e.color,n=e.innerStyle,o=e.opacity,i=this.mergeAndPrefix({position:"absolute",height:"100%",width:"100%",borderRadius:"50%",opacity:o?o:.16,backgroundColor:t,transition:u.easeOut(l+"ms","transform",null,u.easeInOutFunction)},n);return r.createElement("div",{ref:"innerCircle",style:i})},_pulsate:function(){if(this.isMounted()){var e=r.findDOMNode(this.refs.innerCircle);if(e){var t="scale(1)",n="scale(0.85)",o=e.style[s.single("transform")],i=void 0;o=o||t,i=o===t?n:t,e.style[s.single("transform")]=i,this._timeout=setTimeout(this._pulsate,l)}}},_setRippleSize:function(){var e=r.findDOMNode(this.refs.innerCircle),t=e.offsetHeight,n=e.offsetWidth,o=Math.max(t,n),i=0;-1!==e.style.top.indexOf("px",e.style.top.length-2)&&(i=parseInt(e.style.top)),e.style.height=o+"px",e.style.top=t/2-o/2+i+"px"}});e.exports=p},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=r.addons.TransitionGroup,s=n(4),a=n(124),u=n(49),c=n(213),l=r.createClass({displayName:"TouchRipple",mixins:[o,s],propTypes:{centerRipple:r.PropTypes.bool,color:r.PropTypes.string,opacity:r.PropTypes.number},getInitialState:function(){return{hasRipples:!1,nextKey:0,ripples:[]}},render:function(){var e=this.props,t=e.children,n=e.style,o=this.state,s=o.hasRipples,a=o.ripples,u=void 0;if(s){var c=this.mergeAndPrefix({height:"100%",width:"100%",position:"absolute",top:0,left:0,overflow:"hidden"},n);u=r.createElement(i,{style:c},a)}return r.createElement("div",{onMouseUp:this._handleMouseUp,onMouseDown:this._handleMouseDown,onMouseLeave:this._handleMouseLeave,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd},u,t)},start:function(e,t){var n=this.state.ripples;if(!t)for(var o=0;o<n.length;o++)if(n[o].props.touchGenerated)return;n=u.push(n,r.createElement(c,{key:this.state.nextKey,style:this.props.centerRipple?{}:this._getRippleStyle(e),color:this.props.color,opacity:this.props.opacity,touchGenerated:t})),this.setState({hasRipples:!0,nextKey:this.state.nextKey+1,ripples:n})},end:function(){var e=this.state.ripples;this.setState({ripples:u.shift(e)})},_handleMouseDown:function(e){0===e.button&&this.start(e,!1)},_handleMouseUp:function(){this.end()},_handleMouseLeave:function(){this.end()},_handleTouchStart:function(e){this.start(e,!0)},_handleTouchEnd:function(){this.end()},_getRippleStyle:function(e){var t={},n=r.findDOMNode(this),o=n.offsetHeight,i=n.offsetWidth,s=a.offset(n),u=e.touches&&e.touches.length,c=u?e.touches[0].pageX:e.pageX,l=u?e.touches[0].pageY:e.pageY,p=c-s.left,h=l-s.top,d=this._calcDiag(p,h),f=this._calcDiag(i-p,h),m=this._calcDiag(i-p,o-h),v=this._calcDiag(p,o-h),y=Math.max(d,f,m,v),g=2*y,b=p-y,w=h-y;return t.height=g+"px",t.width=g+"px",t.top=w+"px",t.left=b+"px",t},_calcDiag:function(e,t){return Math.sqrt(e*e+t*t)}});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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(59),u=n(201),c=n(7),l=n(6),p=n(46),h=i.createClass({displayName:"SelectField",mixins:[s,p],contextTypes:{muiTheme:i.PropTypes.object},statics:{getChildrenClasses:function(){return[a,u]}},propTypes:{errorText:i.PropTypes.string,floatingLabelText:i.PropTypes.string,selectFieldRoot:i.PropTypes.object,underlineStyle:i.PropTypes.object,labelStyle:i.PropTypes.object,errorStyle:i.PropTypes.object,hintText:i.PropTypes.string,id:i.PropTypes.string,multiLine:i.PropTypes.bool,onBlur:i.PropTypes.func,onChange:i.PropTypes.func,onFocus:i.PropTypes.func,onKeyDown:i.PropTypes.func,onEnterKeyDown:i.PropTypes.func,type:i.PropTypes.string,rows:i.PropTypes.number,inputStyle:i.PropTypes.object,iconStyle:i.PropTypes.object,floatingLabelStyle:i.PropTypes.object,autoWidth:i.PropTypes.bool,menuItems:i.PropTypes.array.isRequired,menuItemStyle:i.PropTypes.object,selectedIndex:i.PropTypes.number},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:l.getMuiTheme(c)}},getDefaultProps:function(){return{fullWidth:!1}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getStyles:function(){var e={root:{height:46,position:"relative",width:"100%",top:16,fontSize:16},label:{paddingLeft:0,top:4,width:"100%"},icon:{top:20,right:0},underline:{borderTop:"none"},input:{},error:{}};return this.props.floatingLabelText?e.error.bottom=-15:this.props.hintText?(e.root.top=-5,e.label.top=1,e.icon.top=17):e.root.top=-8,e},render:function(){var e=this.getStyles(),t=this.props,n=t.style,s=t.labelStyle,c=t.iconStyle,l=t.underlineStyle,p=t.errorStyle,h=t.selectFieldRoot,d=t.menuItems,f=t.disabled,m=t.floatingLabelText,v=t.floatingLabelStyle,y=t.hintText,g=t.fullWidth,b=t.errorText,w=r(t,["style","labelStyle","iconStyle","underlineStyle","errorStyle","selectFieldRoot","menuItems","disabled","floatingLabelText","floatingLabelStyle","hintText","fullWidth","errorText"]),E={style:this.mergeAndPrefix(e.input,n),floatingLabelText:m,floatingLabelStyle:v,hintText:y||m?y:" ",fullWidth:g,errorText:b,errorStyle:this.mergeAndPrefix(e.error,p)},T={menuItems:d,disabled:f,style:this.mergeAndPrefix(e.root,h),labelStyle:this.mergeAndPrefix(e.label,s),iconStyle:this.mergeAndPrefix(e.icon,c),underlineStyle:this.mergeAndPrefix(e.underline,l),autoWidth:!1};return i.createElement(a,E,i.createElement(u,o({},T,w)))}});e.exports=h},function(e,t){"use strict";e.exports={iconSize:24,desktopGutter:24,desktopGutterMore:32,desktopGutterLess:16,desktopGutterMini:8,desktopKeylineIncrement:64,desktopDropDownMenuItemHeight:32,desktopDropDownMenuFontSize:15,desktopLeftNavMenuItemHeight:48,desktopSubheaderHeight:48,desktopToolbarHeight:56}},function(e,t,n){"use strict";var r=n(10),o=r.addons.PureRenderMixin,i=n(48),s=r.createClass({displayName:"NavigationArrowDropDown",mixins:[o],render:function(){return r.createElement(i,this.props,r.createElement("path",{d:"M7 10l5 5 5-5z"}))}});e.exports=s},function(e,t,n){"use strict";var r=n(61);e.exports={_testSupportedProps:function(e){var t=void 0,n=document.createElement("div");for(t in e)if(e.hasOwnProperty(t)&&void 0!==n.style[t])return e[t]},transitionEndEventName:function(){return this._testSupportedProps({transition:"transitionend",OTransition:"otransitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"})},animationEndEventName:function(){return this._testSupportedProps({animation:"animationend","-o-animation":"oAnimationEnd","-moz-animation":"animationend","-webkit-animation":"webkitAnimationEnd"})},onTransitionEnd:function(e,t){var n=this.transitionEndEventName();r.once(e,n,function(){return t()})},onAnimationEnd:function(e,t){var n=this.animationEndEventName();r.once(e,n,function(){return t()})}}},function(e,t){"use strict";e.exports={isDescendant:function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},offset:function(e){var t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},getStyleAttributeAsNumber:function(e,t){var n=e.style[t],r=0;return n&&n.length&&(r=parseInt(n)),r},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},hasClass:function(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)},toggleClass:function(e,t){this.hasClass(e,t)?this.removeClass(e,t):this.addClass(e,t)},forceRedraw:function(e){var t=e.style.display;e.style.display="none",e.style.display=t},withoutTransition:function(e,t){var n=e.style.transition;e.style.transition=null,t(),this.forceRedraw(e),e.style.transition=n}}},function(e,t,n){"use strict";var r=n(22),o=n(49);e.exports={mergeAndPrefix:function(){var e=o.merge.apply(this,arguments);return r.all(e)}}},function(e,t){"use strict";var n=0;e.exports={generate:function(){return"mui-id-"+n++}}},function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){o.forEach(function(t){r[n(t,e)]=r[e]})});var i={background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}},s={isUnitlessNumber:r,shorthandPropertyExpansions:i};e.exports=s},function(e,t,n){(function(t){"use strict";var r=n(127),o=n(12),i=n(292),s=n(297),a=n(304),u=n(308),c=n(9),l=u(function(e){return a(e)}),p="cssFloat";if(o.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(p="styleFloat"),"production"!==t.env.NODE_ENV)var h=/^(?:webkit|moz|o)[A-Z]/,d=/;\s*$/,f={},m={},v=function(e){f.hasOwnProperty(e)&&f[e]||(f[e]=!0,"production"!==t.env.NODE_ENV?c(!1,"Unsupported style property %s. Did you mean %s?",e,i(e)):null)},y=function(e){f.hasOwnProperty(e)&&f[e]||(f[e]=!0,"production"!==t.env.NODE_ENV?c(!1,"Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)):null)},g=function(e,n){m.hasOwnProperty(n)&&m[n]||(m[n]=!0,"production"!==t.env.NODE_ENV?c(!1,'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,n.replace(d,"")):null)},b=function(e,t){e.indexOf("-")>-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(38),d=n(155),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(52),c=n(36),l=n(84),p=n(66),h=n(27),d=n(85),f=n(67),m=n(39),v=n(16),y=n(5),g=n(53),b=n(2),w=n(96),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<r.length;i++){var s=r[i];"production"!==t.env.NODE_ENV?E(e[s]===n[s],"owner-based and parent-based contexts differ (values: `%s` vs `%s`) for key (%s) while mounting %s (see: http://fb.me/react-context-by-parent)",e[s],n[s],s,o):null}},updateComponent:function(e,n,r,o,i){var s=this._instance,a=s.context,u=s.props;n!==r&&(a=this._processContext(r._context),u=this._processProps(r.props),"production"!==t.env.NODE_ENV&&null!=i&&this._warnIfContextsDiffer(r._context,i),s.componentWillReceiveProps&&s.componentWillReceiveProps(u,a));var c=this._processPendingState(u,a),l=this._pendingForceUpdate||!s.shouldComponentUpdate||s.shouldComponentUpdate(u,c,a);"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?E("undefined"!=typeof l,"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",this.getName()||"ReactCompositeComponent"):null),l?(this._pendingForceUpdate=!1,this._performComponentUpdate(r,u,c,a,e,i)):(this._currentElement=r,this._context=i,s.props=u,s.state=c,s.context=a)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=y({},o?r[0]:n.state),s=o?1:0;s<r.length;s++){var a=r[s];y(i,"function"==typeof a?a.call(n,i,e,t):a)}return i},_performComponentUpdate:function(e,t,n,r,o,i){var s=this._instance,a=s.props,u=s.state,c=s.context;s.componentWillUpdate&&s.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,s.props=t,s.state=n,s.context=r,this._updateRenderedComponent(o,i),s.componentDidUpdate&&o.getReactMountReady().enqueue(s.componentDidUpdate.bind(s,a,u,c),s)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._getValidatedChildContext(),i=this._renderValidatedComponent(o);if(w(r,i))m.receiveComponent(n,i,e,this._mergeChildContext(t,o));else{var s=this._rootNodeID,a=n._rootNodeID;m.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(i,this._currentElement.type);var u=m.mountComponent(this._renderedComponent,s,e,this._mergeChildContext(t,o));this._replaceNodeWithMarkupByID(a,u)}},_replaceNodeWithMarkupByID:function(e,t){o.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,n=e.render();return"production"!==t.env.NODE_ENV&&"undefined"==typeof n&&e.render._isMockFunction&&(n=null),n},_renderValidatedComponent:function(e){var n,r=i.current;i.current=this._mergeChildContext(this._currentElement._context,e),s.current=this;try{n=this._renderValidatedComponentWithoutOwnerOrContext()}finally{i.current=r,s.current=null}return"production"!==t.env.NODE_ENV?b(null===n||n===!1||a.isValidElement(n),"%s.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.",this.getName()||"ReactCompositeComponent"):b(null===n||n===!1||a.isValidElement(n)),n},attachRef:function(e,t){var n=this.getPublicInstance(),r=n.refs===g?n.refs={}:n.refs;r[e]=t.getPublicInstance()},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){return this._instance},_instantiateReactComponent:null};h.measureMethods(x,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var C={Mixin:x};e.exports=C}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(128),o=n(235),i=n(51),s=n(17),a=n(27),u=n(2),c=n(95),l={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},p={updatePropertyByID:function(e,n,r){var o=s.getNode(e);"production"!==t.env.NODE_ENV?u(!l.hasOwnProperty(n),"updatePropertyByID(...): %s",l[n]):u(!l.hasOwnProperty(n)),null!=r?i.setValueForProperty(o,n,r):i.deleteValueForProperty(o,n)},deletePropertyByID:function(e,n,r){var o=s.getNode(e);"production"!==t.env.NODE_ENV?u(!l.hasOwnProperty(n),"updatePropertyByID(...): %s",l[n]):u(!l.hasOwnProperty(n)),i.deleteValueForProperty(o,n,r)},updateStylesByID:function(e,t){var n=s.getNode(e);r.setValueForStyles(n,t)},updateInnerHTMLByID:function(e,t){var n=s.getNode(e);c(n,t)},updateTextContentByID:function(e,t){var n=s.getNode(e);o.updateTextContent(n,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=s.getNode(e);o.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=s.getNode(e[n].parentID);o.processUpdates(e,t)}};a.measureMethods(p,"ReactDOMIDOperations",{updatePropertyByID:"updatePropertyByID",deletePropertyByID:"deletePropertyByID",updateStylesByID:"updateStylesByID",updateInnerHTMLByID:"updateInnerHTMLByID",updateTextContentByID:"updateTextContentByID",dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),e.exports=p}).call(t,n(1))},function(e,t,n){"use strict";var r=n(51),o=n(80),i=n(83),s=n(5),a=n(70),u=function(e){};s(u.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){this._rootNodeID=e;var o=a(this._stringText);return t.renderToStaticMarkup?o:"<span "+r.createMarkupForID(e)+">"+o+"</span>"},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(17),u=n(27),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():"<root>"},p}}};e.exports=l},function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=n(256),i=n(144),s=n(146),a=n(147),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(54),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<i.length;u++){var c=e(i,u,r,o);if(c instanceof Error)return c}return null}return r(t)}function a(){function e(e,t,n,r){if(!y.isValidElement(e[t])){var o=b[r];return new Error("Invalid "+o+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactElement."))}return null}return r(e)}function u(e){function t(t,n,r,o){if(!(t[n]instanceof e)){var i=b[o],s=e.name||E;return new Error("Invalid "+i+" `"+n+"` supplied to "+("`"+r+"`, expected instance of `"+s+"`."))}return null}return r(t)}function c(e){function t(t,n,r,o){for(var i=t[n],s=0;s<e.length;s++)if(i===e[s])return null;var a=b[o],u=JSON.stringify(e);return new Error("Invalid "+a+" `"+n+"` of value `"+i+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return r(t)}function l(e){function t(t,n,r,o){var i=t[n],s=m(i);if("object"!==s){var a=b[o];return new Error("Invalid "+a+" `"+n+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."))}for(var u in i)if(i.hasOwnProperty(u)){var c=e(i,u,r,o);if(c instanceof Error)return c}return null}return r(t)}function p(e){function t(t,n,r,o){for(var i=0;i<e.length;i++){var s=e[i];if(null==s(t,n,r,o))return null}var a=b[o];return new Error("Invalid "+a+" `"+n+"` supplied to "+("`"+r+"`."))}return r(t)}function h(){function e(e,t,n,r){if(!f(e[t])){var o=b[r];return new Error("Invalid "+o+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(e)}function d(e){function t(t,n,r,o){var i=t[n],s=m(i);if("object"!==s){var a=b[o];return new Error("Invalid "+a+" `"+n+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."))}for(var u in e){var c=e[u];if(c){var l=c(i,u,r,o);if(l)return l}}return null}return r(t)}function f(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(f);if(null===e||y.isValidElement(e))return!0;e=g.extractIfFragment(e);for(var t in e)if(!f(e[t]))return!1;return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function v(e){var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}var y=n(8),g=n(38),b=n(67),w=n(20),E="<<anonymous>>",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(34),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<this.listenersToPut.length;e++){var t=this.listenersToPut[e];i.putListener(t.rootNodeID,t.propKey,t.propValue)}},reset:function(){this.listenersToPut.length=0},destructor:function(){this.reset()}}),o.addPoolingTo(r),e.exports=r},function(e,t){"use strict";var n={injectCreateReactRootIndex:function(e){r.createReactRootIndex=e}},r={createReactRootIndex:null,injection:n};e.exports=r},function(e,t,n){"use strict";var r=n(33),o=n(275),i=n(5),s=n(143),a=n(20),u=r.createClass({displayName:"ReactTransitionGroup",propTypes:{component:r.PropTypes.any,childFactory:r.PropTypes.func},getDefaultProps:function(){return{component:"span",childFactory:a.thatReturnsArgument}},getInitialState:function(){return{children:o.getChildMapping(this.props.children)}},componentWillMount:function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},componentDidMount:function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t)},componentWillReceiveProps:function(e){var t=o.getChildMapping(e.children),n=this.state.children;this.setState({children:o.mergeChildMappings(n,t)});var r;for(r in t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in n){var s=t&&t.hasOwnProperty(r);!n[r]||s||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},componentDidUpdate:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},performAppear:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)},_handleDoneAppearing:function(e){var t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performEnter:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)},_handleDoneEntering:function(e){var t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performLeave:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)},_handleDoneLeaving:function(e){var t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);if(n&&n.hasOwnProperty(e))this.performEnter(e);else{var r=i({},this.state.children);delete r[e],this.setState({children:r})}},render:function(){var e=[];for(var t in this.state.children){var n=this.state.children[t];n&&e.push(s(this.props.childFactory(n),{ref:t,key:t}))}return r.createElement(this.props.component,this.props,e)}});e.exports=u},function(e,t,n){(function(t){"use strict";function r(e,n){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?a(!e.ref,"You are calling cloneWithProps() on a child with a ref. This is dangerous because you're creating a new child which will not be added as a ref to its parent."):null);var r=i.mergeProps(n,e.props);return!r.hasOwnProperty(u)&&e.props.hasOwnProperty(u)&&(r.children=e.props.children),o.createElement(e.type,r)}var o=n(8),i=n(268),s=n(21),a=n(9),u=s({children:null});e.exports=r}).call(t,n(1))},function(e,t,n){function r(e,t){return e&&t?e===t?!0:o(e)?!1:o(t)?r(e,t.parentNode):e.contains?e.contains(t):e.compareDocumentPosition?!!(16&e.compareDocumentPosition(t)):!1:!1}var o=n(305);e.exports=r},function(e,t,n){(function(t){"use strict";function r(e){if("production"!==t.env.NODE_ENV){var n=o.current;null!==n&&("production"!==t.env.NODE_ENV?c(n._warnedAboutRefsInRender,"%s is accessing getDOMNode or findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",n.getName()||"A component"):null,n._warnedAboutRefsInRender=!0)}return null==e?null:u(e)?e:i.has(e)?s.getNodeFromInstance(e):("production"!==t.env.NODE_ENV?a(null==e.render||"function"!=typeof e.render,"Component (with keys: %s) contains `render` method but is not mounted in the DOM",Object.keys(e)):a(null==e.render||"function"!=typeof e.render),void("production"!==t.env.NODE_ENV?a(!1,"Element appears to be neither ReactComponent nor DOMNode (keys: %s)",Object.keys(e)):a(!1)))}var o=n(25),i=n(36),s=n(17),a=n(2),u=n(151),c=n(9);e.exports=r}).call(t,n(1))},function(e,t){"use strict";function n(e){try{e.focus()}catch(t){}}e.exports=n},function(e,t){function n(){try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);return"function"==typeof t?t:void 0}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t,n){(function(t){function r(e){return"production"!==t.env.NODE_ENV?i(!!s,"Markup wrapping node not initialized"):i(!!s),h.hasOwnProperty(e)||(e="*"),a.hasOwnProperty(e)||("*"===e?s.innerHTML="<link />":s.innerHTML="<"+e+"></"+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,'<select multiple="true">',"</select>"],c=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,"<svg>","</svg>"],h={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],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<e.length;T++)y=e[T],g=(""!==n?n+v:m)+o(y,T),w=r+E,E+=a(y,g,w,i,u);else{var x=h(e);if(x){var C,_=x.call(e);if(x!==e.entries)for(var S=0;!(C=_.next()).done;)y=C.value,g=(""!==n?n+v:m)+o(y,S++),w=r+E,E+=a(y,g,w,i,u);else for("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?f(b,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead."):null,b=!0);!(C=_.next()).done;){var N=C.value;N&&(y=N[1],g=(""!==n?n+v:m)+s(N[0])+v+o(y,0),w=r+E,E+=a(y,g,w,i,u))}}else if("object"===p){"production"!==t.env.NODE_ENV?d(1!==e.nodeType,"traverseAllChildren(...): Encountered an invalid child; DOM elements are not valid children of React components."):d(1!==e.nodeType);var O=l.extract(e);for(var D in O)O.hasOwnProperty(D)&&(y=O[D],g=(""!==n?n+v:m)+s(D)+v+o(y,0),w=r+E,E+=a(y,g,w,i,u))}}return E}function u(e,t,n){return null==e?0:a(e,"",0,t,n)}var c=n(8),l=n(38),p=n(35),h=n(148),d=n(2),f=n(9),m=p.SEPARATOR,v=":",y={"=":"=0",".":"=1",":":"=2"},g=/[=.:]/g,b=!1;e.exports=u}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){return Array.isArray(e)?e.concat():e&&"object"==typeof e?s(new e.constructor,e):e}function o(e,n,r){"production"!==t.env.NODE_ENV?u(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",r,e):u(Array.isArray(e));var o=n[r];"production"!==t.env.NODE_ENV?u(Array.isArray(o),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",r,o):u(Array.isArray(o))}function i(e,n){if("production"!==t.env.NODE_ENV?u("object"==typeof n,"update(): You provided a key path to update() that did not contain one of %s. Did you forget to include {%s: ...}?",v.join(", "),d):u("object"==typeof n),c.call(n,d))return"production"!==t.env.NODE_ENV?u(1===Object.keys(n).length,"Cannot have more than one key in an object with %s",d):u(1===Object.keys(n).length),n[d];var a=r(e);if(c.call(n,f)){var g=n[f];"production"!==t.env.NODE_ENV?u(g&&"object"==typeof g,"update(): %s expects a spec of type 'object'; got %s",f,g):u(g&&"object"==typeof g),"production"!==t.env.NODE_ENV?u(a&&"object"==typeof a,"update(): %s expects a target of type 'object'; got %s",f,a):u(a&&"object"==typeof a),s(a,n[f])}c.call(n,l)&&(o(e,n,l),n[l].forEach(function(e){a.push(e)})),c.call(n,p)&&(o(e,n,p),n[p].forEach(function(e){a.unshift(e)})),c.call(n,h)&&("production"!==t.env.NODE_ENV?u(Array.isArray(e),"Expected %s target to be an array; got %s",h,e):u(Array.isArray(e)),"production"!==t.env.NODE_ENV?u(Array.isArray(n[h]),"update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",h,n[h]):u(Array.isArray(n[h])),n[h].forEach(function(e){"production"!==t.env.NODE_ENV?u(Array.isArray(e),"update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",h,n[h]):u(Array.isArray(e)),a.splice.apply(a,e)})),c.call(n,m)&&("production"!==t.env.NODE_ENV?u("function"==typeof n[m],"update(): expected spec of %s to be a function; got %s.",m,n[m]):u("function"==typeof n[m]),a=n[m](a));for(var b in n)y.hasOwnProperty(b)&&y[b]||(a[b]=i(e[b],n[b]));return a}var s=n(5),a=n(21),u=n(2),c={}.hasOwnProperty,l=a({$push:null}),p=a({$unshift:null}),h=a({$splice:null}),d=a({$set:null}),f=a({$merge:null}),m=a({$apply:null}),v=[l,p,h,d,f,m],y={};v.forEach(function(e){y[e]=!0}),e.exports=i}).call(t,n(1))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},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(115),c=r(u),l=n(59),p=r(l),h=n(99),d=r(h),f=n(29),m=r(f),v=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)}}),y=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,u={position:"absolute",cursor:"pointer",top:"2rem",right:".75rem",fontSize:"1rem",color:"#AAA"};return i["default"].createElement("div",{style:{backgroundColor:s.sideBar.backgroundColor,borderRight:s.sideBar.borderStyle},className:"left-bar"},i["default"].createElement("div",{style:{padding:"1rem 1rem 0",position:"relative"}},i["default"].createElement(p["default"],{hintText:t.i18n.getTranslation("search"),style:{width:"100%"},onChange:this.search,ref:"searchBox"}),this.state&&this.state.showCloseButton?i["default"].createElement(m["default"],{style:u,className:"material-icons",onClick:this.clearSearchBox},"clear"):null),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(v,{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:14,fontWeight:r===o?"bold":"inherit"}})})))},search:function(e){this.setState({showCloseButton:Boolean(e.target.value)}),d["default"].searchSettings(e.target.value)},clearSearchBox:function(){this.refs.searchBox.getValue()&&(this.refs.searchBox.setValue(""),this.setState({showCloseButton:!1}),d["default"].searchSettings(""))}});t["default"]=y,e.exports=t["default"]},97,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(114),a=r(s),u=n(58),c=r(u),l=n(29),p=r(l),h=n(18),d=r(h),f=n(117),m=r(f),v=n(105),y=r(v),g=n(71),b=r(g),w=n(42),E=r(w),T=n(97),x=r(T),C=n(162),_=r(C),S=n(161),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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=r(i),a=n(120),u=r(a);t["default"]=s["default"].createClass({displayName:"SelectFieldAsyncSource.component",propTypes:{menuItemsSource:s["default"].PropTypes.func},getInitialState:function(){return{menuItems:[]}},componentWillMount:function(){var e=this;this.props.menuItemsSource().then(function(t){e.setState({menuItems:t})})},render:function(){return s["default"].createElement(u["default"],o({},this.props,{menuItems:this.state.menuItems}))}}),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return e.level-t.level}function i(e){return e.response&&e.response.importCount&&1===e.response.importCount.imported?Promise.resolve(e):Promise.reject(e)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(102),a=r(s),u=n(97),c=r(u),l=n(57),p=a["default"].createActionsFromNames(["loadDataApprovalLevels","editDataApprovalLevel","saveDataApprovalLevel","deleteDataApprovalLevel"]);p.loadDataApprovalLevels.subscribe(function(e){var t=e.complete,n=e.error;l.getInstance().then(function(e){return e.models.dataApprovalLevel.list({paging:!1})}).then(function(e){return e.toArray()}).then(function(e){return e.sort(o)}).then(function(e){return c["default"].setState(e)}).then(t)["catch"](n)}),p.saveDataApprovalLevel.subscribe(function(e){var t=e.data,n=e.complete,r=e.error,o=c["default"].getState();Array.isArray(o)&&(console.log(o),o.filter(function(e){return e.orgUnitLevel===t.organisationUnitLevel.level}).forEach(function(e){return console.log(e)}));var s={name:t.organisationUnitLevel.name,orgUnitLevel:t.organisationUnitLevel.level};t.categoryOptionGroupSet&&(s.categoryOptionGroupSet={id:t.categoryOptionGroupSet.id},s.name=t.organisationUnitLevel.name+" "+t.categoryOptionGroupSet.name),l.getInstance().then(function(e){return e.Api.getApi()}).then(function(e){return e.post("dataApprovalLevels",s)}).then(i).then(function(e){return n(e),e}).then(function(){return p.loadDataApprovalLevels()})["catch"](function(e){e.response&&e.response.importConflicts&&r(e.response.importConflicts),r(e)})}),p.deleteDataApprovalLevel.subscribe(function(e){var t=e.data,n=e.complete,r=e.error;t["delete"]().then(n)["catch"](r).then(function(){return p.loadDataApprovalLevels()})}),t["default"]=p,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(111),a=r(s);t["default"]=i["default"].createClass({displayName:"MultiToggle.component",propTypes:{label:i["default"].PropTypes.string.isRequired,onChange:i["default"].PropTypes.func.isRequired,items:i["default"].PropTypes.arrayOf(i["default"].PropTypes.shape({name:i["default"].PropTypes.string.isRequired,value:i["default"].PropTypes.bool,text:i["default"].PropTypes.string.isRequired})),style:i["default"].PropTypes.object},contextTypes:{muiTheme:i["default"].PropTypes.object},getInitialState:function(){return{values:this.props.items.reduce(function(e,t){return t.value&&e.push(t.name),e},[])}},render:function(){var e=this,t=Object.assign({},this.context.muiTheme.forms,this.props.style);return i["default"].createElement("div",null,i["default"].createElement("div",{style:{marginTop:16,marginBottom:8}},this.props.label),this.props.items.map(function(n){return i["default"].createElement(a["default"],{key:n.name,name:n.name,value:"true",defaultChecked:n.value===!0,label:n.text,onCheck:e._handleToggle.bind(e,n.name),style:t,labelPosition:"right"})}))},_handleToggle:function(e,t,n){var r=this;this.setState(function(t){return n?-1===t.values.indexOf(e)&&t.values.push(e):-1!==t.values.indexOf(e)&&t.values.splice(t.values.indexOf(e),1),t},function(){r.props.onChange({target:{value:r.state.values}})})}}),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){for(var e="0123456789abcdef",t="",n=0;32>n;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(37),u=r(a),c=n(58),l=r(c),p=n(114),h=r(p),d=n(29),f=r(d),m=n(18),v=r(m),y=n(117),g=r(y),b=n(59),w=r(b),E=n(105),T=r(E),x=n(71),C=r(x),_=n(106),S=r(_),N=n(42),O=r(N),D=n(163),P=r(D),k=n(98),M=r(k),A=n(165),R=r(A),I=n(101),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,primaryAction:e.edit})))},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(103),i=n(57),s=n(98),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"]},97,function(e,t,n){t=e.exports=n(168)(),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{cursor:pointer;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:#fff;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:3rem;margin-left:256px}',""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},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(42),c=r(u),l=n(210),p=r(l),h=n(209),d=r(h),f=n(29),m=r(f),v=i["default"].createClass({displayName:"DataTableContextMenu",propTypes:{actions:i["default"].PropTypes.objectOf(i["default"].PropTypes.func),activeItem:i["default"].PropTypes.object,coords:i["default"].PropTypes.shape({X:i["default"].PropTypes.number,Y:i["default"].PropTypes.number}),icons:i["default"].PropTypes.object},mixins:[c["default"]],getDefaultProps:function(){return{coords:{X:0,Y:0},icons:{}}},getInitialState:function(){return{actions:this.props.actions||{}}},render:function(){var e=this,t=a["default"]("data-table__context-menu"),n=Object.keys(this.state.actions).filter(function(t){return"function"==typeof e.state.actions[t]});return i["default"].createElement("div",{className:t,style:{position:"absolute",top:this.props.coords.Y,left:this.props.coords.X}},i["default"].createElement(p["default"],{openDirection:"bottom-right",desktop:!0},n.map(function(t){var n=e.props.icons[t]?e.props.icons[t]:t;return i["default"].createElement(d["default"],{key:t,className:"data-table__context-menu__item",onClick:e.handleClick.bind(e,t),primaryText:e.getTranslation(t),leftIcon:i["default"].createElement(m["default"],{className:"material-icons"},n)})})))},handleClick:function(e){this.props.actions[e].apply(this.props.actions,[this.props.activeItem])}});t["default"]=v,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(72),i=n(3),s=r(i),a=n(41),u=r(a),c=n(42),l=r(c),p=s["default"].createClass({displayName:"DataTableHeader",propTypes:{isOdd:s["default"].PropTypes.bool,isEven:s["default"].PropTypes.bool,name:s["default"].PropTypes.string.isRequired},mixins:[l["default"]],render:function(){var e=u["default"]("data-table__headers__header",{"data-table__headers__header--even":!this.props.isOdd,"data-table__headers__header--odd":this.props.isOdd});return s["default"].createElement("div",{className:e},this.getTranslation(o.camelCaseToUnderscores(this.props.name)))}});t["default"]=p,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(41),a=r(s),u=n(72),c=i["default"].createClass({displayName:"DataTableRow",propTypes:{columns:i["default"].PropTypes.arrayOf(i["default"].PropTypes.string).isRequired,dataSource:i["default"].PropTypes.object,isEven:i["default"].PropTypes.bool,isOdd:i["default"].PropTypes.bool,itemClicked:i["default"].PropTypes.func.isRequired,primaryClick:i["default"].PropTypes.func.isRequired},render:function(){var e=this,t=a["default"]("data-table__rows__row",{"data-table__rows__row--even":!this.props.isOdd,"data-table__rows__row--odd":this.props.isOdd}),n=this.props.columns.map(function(t,n){var r=e.props.dataSource[t],o=void 0;return o=u.isObject(r)?r.displayName||r.name||r:r,i["default"].createElement("div",{key:n,className:"data-table__rows__row__column"},o)});return i["default"].createElement("div",{className:t,onContextMenu:this.handleContextClick,onClick:this.handleClick},n)},handleContextClick:function(e){e.preventDefault(),this.props.itemClicked(e,this.props.dataSource)},handleClick:function(){this.props.primaryClick(this.props.dataSource)}});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,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=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}},c=n(3),l=r(c),p=n(41),h=r(p),d=function(e){function t(){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),a(t,[{key:"render",value:function(){return null}}]),t}(l["default"].Component),f=l["default"].createClass({displayName:"FormField",propTypes:{type:l["default"].PropTypes.func.isRequired,isValid:l["default"].PropTypes.bool.isRequired,errorMessage:l["default"].PropTypes.string,fieldOptions:l["default"].PropTypes.object.isRequired,value:l["default"].PropTypes.any,updateFn:l["default"].PropTypes.func.isRequired,updateEvent:l["default"].PropTypes.oneOf(["onChange","onBlur"])},getDefaultProps:function(){return{type:d,validators:[]}},renderHelpText:function(){var e={color:"#888",fontSize:".75rem"};return this.props.fieldOptions&&this.props.fieldOptions.helpText?l["default"].createElement("div",{style:e},this.props.fieldOptions.helpText):null},render:function(){var e=this,t=h["default"]("form-field"),n=this.props.updateFn,r=void 0;return"onBlur"===this.props.updateEvent&&(r=function(t){t.target.value!==e.props.value&&e.props.updateFn(t)},n=void 0),l["default"].createElement("div",{className:t},l["default"].createElement(this.props.type,s({errorText:this.props.errorMessage,defaultValue:this.props.value,onChange:n,onBlur:r},this.props.fieldOptions)),this.renderHelpText())}});t["default"]=f,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)||"field_required"}function i(e){return""===e?!0:l.test(e)||"field_should_be_an_url"}function s(e){return""===e?!0:p.test(e)||"field_should_be_an_email"}function a(e){return e||0===e?c["default"](Number(e))||"field_should_be_a_number":!0}Object.defineProperty(t,"__esModule",{value:!0}),t.isRequired=o,t.isUrl=i,t.isEmail=s,t.isNumber=a;var u=n(196),c=r(u),l=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/i,p=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,h=new Map([["required",o],["url",i],["number",a],["email",s]]);t.wordToValidatorMap=h,t["default"]={isRequired:o,isUrl:i,isNumber:a,isEmail:s}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){try{return localStorage.setItem("dhis2.menu.localstorage.test","dhis2.menu.localstorage.test"),localStorage.removeItem("dhis2.menu.localstorage.test"),!0}catch(e){return!1}}function s(e){return i()&&(localStorage.setItem("dhis2.menu.ui.headerBar.userStyle",e.userStyleUrl),localStorage.setItem("dhis2.menu.ui.headerBar.logo",e.logo),localStorage.setItem("dhis2.menu.ui.headerBar.title",e.title),localStorage.setItem("dhis2.menu.ui.headerBar.link",e.link)),e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),u=r(a);n(179),n(176),n(175);
-var c=n(56),l=r(c),p=n(37),h=r(p),d="light_blue",f="light_blue/light_blue.css",m="dhis-web-commons/css",v=u["default"].createClass({displayName:"HeaderBar",contextTypes:{d2:u["default"].PropTypes.object.isRequired},getInitialState:function(){return{headerBar:{}}},componentWillMount:function(){var e=this;l["default"].menu.ui.initMenu(),this.getSystemSettings(this.context.d2).then(this.getHeaderBarData)["catch"](this.loadDataFromLocalStorageIfAvailable).then(s).then(function(t){e.setHeaderData(t.userStyleUrl,t.logo,t.title,t.link)})},getSystemSettings:function(e){return e.system.settings.all()},getHeaderBarData:function(e){return this.requestUserStyle()["catch"](function(){return h["default"].info("Unable to load usersettings, falling back to systemSettings"),localStorage.setItem("dhis2.menu.ui.headerBar.userStyle",e.currentStyle),e.currentStyle}).then(function(t){return{userStyleUrl:t||e.currentStyle,logo:e.keyCustomTopMenuLogo,title:e.applicationTitle,link:e.startModule}})},getBaseUrl:function(){return this.context.d2.Api.getApi().baseUrl.replace(/\/api\/?$/,"")},getStyleLogoUrl:function(e){return[this.getBaseUrl(),m,e,"logo_banner.png"].join("/")},getStylesheetUrl:function(e){return[this.getBaseUrl(),m,"themes",e||f].join("/")},getStyleName:function(e){return"string"==typeof e&&e.split("/")[0]&&e.split("/").length>0?e.split("/")[0]:d},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 u["default"].createElement("div",{className:"header-bar",style:e,id:"header"},u["default"].createElement("a",{href:this.state.headerBar.link,title:this.state.headerBar.title,className:"title-link"},u["default"].createElement("img",{className:"header-logo",src:this.state.headerBar.logo,id:"headerBanner",style:t}),u["default"].createElement("span",{className:"header-text",id:"headerText",style:n},this.state.headerBar.title)),u["default"].createElement("div",null,this.state.headerBar.message),u["default"].createElement("div",{id:"dhisDropDownMenu"}))},loadDataFromLocalStorageIfAvailable:function(){var e=void 0,t=void 0,n=void 0,r=void 0;return i()&&(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(d))},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('<link href="'+e+'" type="text/css" rel="stylesheet" media="screen,print" />')}});t["default"]=v,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(56),i=r(o),s=n(178),a=r(s),u=n(177),c=r(u);r(u);!function(e,t,n){function r(e){return"[object Function]"==Object.prototype.toString.call(e)}function o(e,t,n){u.ajax({url:p()+e,headers:{"Content-type":"application/json; charset=utf-8"},method:"GET"}).success(function(e){t(e.modules,n)})}function s(e){var t,n=function(){};return n.prototype=new Error,t=new n,t.message=e,t.toString=function(){return"MenuError: "+this.message+" \n"},t}function a(e){var t,o=function(){};return e===n&&(e={renderers:[],eventsHandlers:[],name:"",hooks:{open:[],close:[]}},e.hooks.call=function(t){e.hooks[t]&&e.hooks[t].forEach(function(e){r(e)&&e.apply(t)})}),o.prototype=e,t=new o,t.render=function(n){u(document).ready(function(){e.renderers.forEach(function(e){r(e)&&e(n)}),e.eventsHandlers.forEach(function(e){r(e)&&e(document.querySelector("#"+t.name+"Button"))})})},t}var u=n,c={},l={},p=i["default"].settings.getBaseUrl=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 r,o=e.split("/");if(t.baseUrl===n)return"..";if("string"!=typeof t.baseUrl)throw new TypeError("Dhis2 settings: baseUrl should be a string");return/^http\:\/\//.test(i["default"].settings.baseUrl)?i["default"].settings.baseUrl:(""===o[o.length-1]?(o.pop(),o.push(i["default"].settings.baseUrl),r=o.join("/")):r=[e,i["default"].settings.baseUrl].join("/"),r)}}();l={ulWrapId:"menuLinkArea",aMenuLinkClasses:"menu-link drop-down-menu-link"},c.itemItemplate='<li data-id="{{id}}" data-app-name="{{name}}" data-app-action="{{baseUrl}}{{defaultAction}}"><a href="{{baseUrl}}{{defaultAction}}" class="app-menu-item"><img src="{{baseUrl}}{{icon}}" onError="javascript: this.onerror=null; this.src = \''+p()+'/icons/program.png\';"><span>{{name}}</span><div class="app-menu-item-description"><span class="bold">{{name}}</span><i class="fa fa-arrows"></i><p>{{description}}</p></div></a></li>',c.menuLink='<li id="{{id}}Button"><a id="{{id}}Link" class="{{classes}}"><i class="fa fa-{{iconName}}"></i>{{menuItemName}}</a><div class="app-menu-dropdown-wrap"><div class="app-menu-dropdown"><div class="caret-up-border"></div><div class="caret-up-background"></div><ul class="menuDropDownBox">{{menuItems}}</ul><div class="menu-drop-down-buttons"></div></div></div></li>',c.menuLinkWithScroll='<li id="{{id}}Button"><a id="{{id}}Link" class="{{classes}}"><i class="fa fa-{{iconName}}"></i>{{menuItemName}}</a><div class="app-menu-dropdown-wrap"><div class="app-menu-dropdown"><div class="caret-up-border"></div><div class="caret-up-background"></div><div class="menu-drop-down-wrap"><div class="menu-drop-down-scroll"><ul class="menuDropDownBox">{{menuItems}}</ul></div></div><div class="menu-drop-down-buttons"><div class="apps-menu-bottom-button apps-scroll apps-scroll-up"><a class="fa fa-caret-up" href="#"></a></div><div class="apps-menu-bottom-button apps-scroll apps-scroll-down"><a class="fa fa-caret-down" href="#"></a></div></div></div></div></li>',c.search='<div class="apps-search-wrap"><input class="apps-search" type="text" placeholder="{{search_apps}}"><i class="apps-search-clear fa fa-times-circle"></i></div>',c.extraLink='<div class="apps-menu-bottom-button apps-menu-more"><a href="{{url}}">{{text}}</a></div>';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",'<ul id="{{id}}"></ul>'),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(56),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.searchScore<t.searchScore?-1:e.searchScore>t.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(56),i=r(o),s=n(37),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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(183),a=r(s),u=n(14),c=function(){function e(){o(this,e)}return i(e,null,[{key:"create",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(182),u=r(a),c=Symbol("models"),l=new Set(["userCredentials","userGroups","userRoles","organisationUnits","dataViewOrganisationUnits"]),p={READ:["READ"],CREATE:["CREATE","CREATE_PUBLIC","CREATE_PRIVATE"],CREATE_PUBLIC:["CREATE_PUBLIC"],CREATE_PRIVATE:["CREATE_PRIVATE"],DELETE:["DELETE"],UPDATE:["UPDATE"],EXTERNALIZE:["EXTERNALIZE"]},h=Array.from(l).reduce(function(e,t){return e[t]=Symbol(t),e},{}),d=function(){function e(t,n,r){o(this,e),Object.assign(this,i(t)),this.authorities=n,this[c]=r}return s(e,[{key:"getUserGroups",value:function(){var e=this[h.userGroups];return this[c].userGroup.get({filter:["id:in:["+e.join(",")+"]"]})}},{key:"getUserRoles",value:function(){var e=this[h.userRoles];return this[c].userRole.get({filter:["id:in:["+e.join(",")+"]"]})}},{key:"getOrganisationUnits",value:function(){var e=this[h.organisationUnits];return this[c].organisationUnit.get({filter:["id:in:["+e.join(",")+"]"]})}},{key:"getDataViewOrganisationUnits",value:function(){var e=this[h.dataViewOrganisationUnits];return this[c].organisationUnit.get({filter:["id:in:["+e.join(",")+"]"]})}},{key:"checkAuthorityForType",value:function(e,t){var n=this;return t&&Array.isArray(t.authorities)?t.authorities.filter(function(t){return e.some(function(e){return e===t.type})}).some(function(e){return e.authorities.some(function(e){return n.authorities.has(e)})}):!1}},{key:"canCreate",value:function(e){return this.checkAuthorityForType(p.CREATE,e)}},{key:"canCreatePublic",value:function(e){return this.checkAuthorityForType(p.CREATE_PUBLIC,e)}},{key:"canCreatePrivate",value:function(e){return this.checkAuthorityForType(p.CREATE_PRIVATE,e)}},{key:"canDelete",value:function(e){return this.checkAuthorityForType(p.DELETE,e)}},{key:"canUpdate",value:function(e){return this.checkAuthorityForType(p.UPDATE,e)?!0:this.checkAuthorityForType(p.CREATE,e)}},{key:"uiLocale",get:function(){return this.userSettings&&this.userSettings.keyUiLocale?this.userSettings.keyUiLocale:"en"}}],[{key:"create",value:function(t,n,r){return new e(t,u["default"].create(n),r)}}]),e}();t["default"]=d,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=Symbol(),i=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];n(this,e),this[o]=new Set(t)}return r(e,[{key:"has",value:function(e){return this[o].has("ALL")?!0:this[o].has(e)}}],[{key:"create",value:function(t){return new e(t)}}]),e}();t["default"]=i,e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={baseUrl:"/api",i18n:{sources:new Set,strings:new Set}},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){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=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(43),u=r(a),c=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],n=arguments.length<=1||void 0===arguments[1]?u["default"].getApi():arguments[1];o(this,e),this.sources=t,this.api=n,this.strings=new Set,this.translations=void 0}return s(e,[{key:"addSource",value:function(e){this.sources.push(e)}},{key:"addStrings",value:function(e){var t=this;"string"==typeof e&&e.trim().length>0?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<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(44),s=n(14),a=function(){function e(){r(this,e)}return o(e,[{key:"getTypes",value:function(){return["TEXT","NUMBER","INTEGER","BOOLEAN","EMAIL","PASSWORD","URL","PHONENUMBER","GEOLOCATION","COLOR","COMPLEX","COLLECTION","REFERENCE","DATE","COMPLEX","IDENTIFIER","CONSTANT"]}},{key:"typeLookup",value:function(e){return this.getTypes().indexOf(e)>=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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(14),s={equals:"eq",like:"like",ilike:"ilike"},a=function(){function e(t){r(this,e),this.filters=t,this.propertyName="name",this.comparator="like",this.filterValue=void 0}return o(e,[{key:"on",value:function(e){return i.checkDefined(e,"Property name to filter on"),this.propertyName=e,this}},{key:"getQueryParamFormat",value:function(){return[this.propertyName,this.comparator,this.filterValue].join(":")}}],[{key:"getFilter",value:function(t){return new e(t)}}]),e}();Object.keys(s).forEach(function(e){Object.defineProperty(a.prototype,e,{value:function(t){return i.checkDefined(t,"filterValue"),this.comparator=s[e],this.filterValue=t,this.filters.add(this),this.filters.getReturn()}})}),t["default"]=a,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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(14),a=n(186),u=r(a),c=function(){function e(t){o(this,e),this.filters=[],this.modelDefinition=t}return i(e,[{key:"on",value:function(e){return u["default"].getFilter(this).on(e)}},{key:"add",value:function(e){if(!s.isType(e,u["default"]))throw new TypeError("filter should be an instance of Filter");this.filters.push(e)}},{key:"list",value:function(){return this.modelDefinition.list()}},{key:"getFilters",value:function(){return this.filters.map(function(e){return e.getQueryParamFormat()})}},{key:"getReturn",value:function(){return this.modelDefinition}}],[{key:"getFilters",value:function(t){return new e(t)}}]),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){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e){if(e&&e[Symbol.iterator]){var t=[].concat(o(e));t.forEach(function(e){e instanceof h["default"]||l.throwError("Values of a ModelCollection must be instances of Model")})}}function a(e){if(e&&e[Symbol.iterator]){var t=[].concat(o(e));t.forEach(function(e){c.isValidUid(e.id)||l.throwError("Can not add a Model without id to a ModelCollection")})}}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(14),l=n(44),p=n(74),h=r(p),d=n(108),f=r(d),m=n(191),v=r(m),y=function(){function e(t,n,r){var o=this;i(this,e),c.checkType(t,f["default"]),this.modelDefinition=t,this.pager=new v["default"](r,t),this.valuesContainerMap=new Map,this[Symbol.iterator]=this.valuesContainerMap[Symbol.iterator].bind(this.valuesContainerMap),s(n),a(n),c.isArray(n)&&n.forEach(function(e){return o.add(e)})}return u(e,[{key:"add",value:function(e){return s([e]),a([e]),this.set(e.id,e),this}},{key:"toArray",value:function(){var e=[];return this.forEach(function(t){e.push(t)}),e}},{key:"clear",value:function(){return this.valuesContainerMap.clear.apply(this.valuesContainerMap)}},{key:"delete",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(14),s=function(){function e(){r(this,e)}return o(e,[{key:"add",value:function(e){try{i.checkType(e.name,"string")}catch(t){throw new Error("Name should be set on the passed ModelDefinition to add one")}if(this[e.name])throw new Error(["Model",e.name,"already exists"].join(" "));this[e.name]=e}},{key:"mapThroughDefinitions",value:function(e){var t=[],n=void 0;i.checkType(e,"function","transformer");for(n in this)this.hasOwnProperty(n)&&t.push(e(this[n]));return t}}]),e}();t["default"]=s,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(75),i=r(o),s=n(74),a=r(s),u=n(108),c=r(u),l=n(189),p=r(l),h=n(109),d=r(h);t["default"]={ModelBase:i["default"],Model:a["default"],ModelDefinition:c["default"],ModelDefinitions:p["default"],ModelValidations:d["default"]},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<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(14),s=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{page:1,pageCount:1}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?{list:function(){return Promise.reject("No handler available")}}:arguments[1];r(this,e),this.page=t.page,this.pageCount=t.pageCount,this.total=t.total,this.nextPage=t.nextPage,this.prevPage=t.prevPage,this.pagingHandler=n}return o(e,[{key:"hasNextPage",value:function(){return i.isDefined(this.nextPage)}},{key:"hasPreviousPage",value:function(){return i.isDefined(this.prevPage)}},{key:"getNextPage",value:function(){return this.hasNextPage()?this.goToPage(this.page+1):Promise.reject("There is no next page for this collection")}},{key:"getPreviousPage",value:function(){return this.hasPreviousPage()?this.goToPage(this.page-1):Promise.reject("There is no previous page for this collection")}},{key:"goToPage",value:function(e){if(1>e)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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(194),a=r(s),u=n(193),c=r(u),l=function(){function e(t,n){o(this,e),this.settings=t,this.configuration=n}return i(e,[{key:"getI18nStrings",value:function(){var e=this,t=new Set;return Object.keys(this.settings.mapping).map(function(n){var r=e.settings.mapping[n];if(r.hasOwnProperty("label")&&t.add(r.label),r.hasOwnProperty("description")&&t.add(r.description),r.hasOwnProperty("options"))for(var o in r.options)r.options.hasOwnProperty(o)&&isNaN(r.options[o])&&t.add(r.options[o])}),t}}],[{key:"getSystem",value:function(){return new e(new a["default"],new c["default"])}}]),e}();t["default"]=l,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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(43),a=r(s),u=n(110),c=r(u),l=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?a["default"].getApi():arguments[0];o(this,e),this.api=t,this._configuration=void 0,this._configPromise=null}return i(e,[{key:"all",value:function(e){var t=this;return(null===this._configPromise||e===!0)&&(this._configPromise=this.api.get("configuration").then(function(e){return t._configuration=e,t._configuration})),this._configPromise}},{key:"get",value:function(e,t){return this.all(t).then(function(t){return t.hasOwnProperty(e)?Promise.resolve(t[e]):Promise.reject("Unknown config option: "+e)})}},{key:"set",value:function(e,t){var n=this,r=void 0;if("feedbackRecipients"===e&&"null"===t||null===t)r=this.api["delete"](["configuration",e].join("/"),{dataType:"text"});else if("corsWhitelist"===e)r=this.api.post(["configuration",e].join("/"),t.trim().split("\n"),{dataType:"text"});else{var o=c["default"].hasOwnProperty(e)&&c["default"][e].hasOwnProperty("configuration")&&c["default"][e].configuration;if(!o)return Promise.reject("No configuration found for "+e);console.log(t),r=this.api.post(["configuration",o].join("/"),t,{dataType:"text",contentType:"text/plain"})}return r.then(function(){return n._configuration=void 0,Promise.resolve()})}}]),e}();t["default"]=l,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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(14),a=n(43),u=r(a),c=n(110),l=r(c),p=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?u["default"].getApi():arguments[0];o(this,e),this.api=t,this.mapping=l["default"]}return i(e,[{key:"all",value:function(){return this.api.get("systemSettings")}},{key:"get",value:function(e){function t(e){try{return JSON.parse(e)}catch(t){return e}return e}var n=this;return new Promise(function(r,o){if(!s.isString(e))throw new TypeError('A "key" parameter should be specified when calling get() on systemSettings');n.api.get(["systemSettings",e].join("/"),void 0,{dataType:"text"}).then(function(e){var n=t(e);n&&r(t(e)),o(new Error("The requested systemSetting has no value or does not exist."))})})}},{key:"set",value:function(e,t){var n=["systemSettings",e].join("/");return null===t||0===(t+"").length?this.api["delete"](n,{dataType:"text"}):this.api.post(n,t,{dataType:"text",contentType:"text/plain"})}}]),e}();t["default"]=p,e.exports=t["default"]},function(e,t){"use strict";var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t){(function(t){function n(e){return"number"==typeof e&&r(e)}var r=t.isFinite;e.exports=n}).call(t,function(){return this}())},function(e,t){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,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=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(46),i=n(125),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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(22),u=n(11),c=n(7),l=n(6),p=i.createClass({displayName:"CircularProgress",mixins:[s],propTypes:{mode:i.PropTypes.oneOf(["determinate","indeterminate"]),value:i.PropTypes.number,min:i.PropTypes.number,max:i.PropTypes.number,size:i.PropTypes.number,color:i.PropTypes.string,innerStyle:i.PropTypes.object},contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:l.getMuiTheme(c)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},_getRelativeValue:function(){var e=this.props.value,t=this.props.min,n=this.props.max,r=Math.min(Math.max(t,e),n),o=n-t,i=Math.round(r/o*1e4)/1e4;return 100*i},componentDidMount:function(){var e=i.findDOMNode(this.refs.wrapper),t=i.findDOMNode(this.refs.path);this._scalePath(t),this._rotateWrapper(e)},_scalePath:function(e,t){t=t||0,t%=3,setTimeout(this._scalePath.bind(this,e,t+1),t?750:250),this.isMounted()&&"indeterminate"===this.props.mode&&(0===t?(e.style.strokeDasharray="1, 200",e.style.strokeDashoffset=0,e.style.transitionDuration="0ms"):1===t?(e.style.strokeDasharray="89, 200",e.style.strokeDashoffset=-35,e.style.transitionDuration="750ms"):(e.style.strokeDasharray="89,200",e.style.strokeDashoffset=-124,e.style.transitionDuration="850ms"))},_rotateWrapper:function(e){setTimeout(this._rotateWrapper.bind(this,e),10050),this.isMounted()&&"indeterminate"===this.props.mode&&(a.set(e.style,"transform",null),a.set(e.style,"transform","rotate(0deg)"),e.style.transitionDuration="0ms",setTimeout(function(){a.set(e.style,"transform","rotate(1800deg)"),e.style.transitionDuration="10s",a.set(e.style,"transitionTimingFunction","linear")},50))},getDefaultProps:function(){return{mode:"indeterminate",value:0,min:0,max:100,size:1}},getTheme:function(){return this.state.muiTheme.rawTheme.palette},getStyles:function(e){e*=1.4;var t="50px",n=Math.round((50*e-50)/2);0>n&&(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(50),a=n(122),u=n(18),c=n(207),l=n(112),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;p<this.props.menuItems.length;p++)this.props.menuItems[p][this.props.valueMember]===s&&(o=p)}var h=this.props.menuItems[o];h&&(i=h[this.props.displayMember]);var d=this.props.menuItems.map(function(t){return t.text=t[e.props.displayMember],t.payload=t[e.props.valueMember],t});return r.createElement("div",{ref:"root",onKeyDown:this._onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,className:this.props.className,style:this.mergeAndPrefix(n.root,this.state.open&&n.rootWhenOpen,this.props.style)},r.createElement(l,{style:this.mergeAndPrefix(n.control),onTouchTap:this._onControlClick},r.createElement(u,{style:this.mergeAndPrefix(n.controlBg),zDepth:0}),r.createElement("div",{style:this.mergeAndPrefix(n.label,this.state.open&&n.labelWhenOpen,this.props.labelStyle)},i),r.createElement(a,{style:this.mergeAndPrefix(n.icon,this.props.iconStyle)}),r.createElement("div",{style:this.mergeAndPrefix(n.underline,this.props.underlineStyle)})),r.createElement(c,{ref:"menuItems",autoWidth:this.props.autoWidth,selectedIndex:o,menuItems:d,style:n.menu,menuItemStyle:this.mergeAndPrefix(n.menuItem,this.props.menuItemStyle),hideable:!0,visible:this.state.open,onRequestClose:this._onMenuRequestClose,onItemTap:this._onMenuItemClick}),this.state.open&&r.createElement("div",{style:n.overlay,onTouchTap:this._handleOverlayTouchTap}))},_setWidth:function(){var e=r.findDOMNode(this),t=r.findDOMNode(this.refs.menuItems);this.props.style&&this.props.style.hasOwnProperty("width")||(e.style.width="auto",e.style.width=t.offsetWidth+"px")},_setSelectedIndex:function(e){var n=e.selectedIndex;"production"!==t.env.NODE_ENV&&0>n&&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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(22),u=24,c={textarea:{width:"100%",resize:"none",font:"inherit",padding:0},shadow:{width:"100%",resize:"none",overflow:"hidden",font:"inherit",padding:0,position:"absolute",opacity:0}},l=i.createClass({displayName:"EnhancedTextarea",mixins:[s],propTypes:{onChange:i.PropTypes.func,onHeightChange:i.PropTypes.func,textareaStyle:i.PropTypes.object,rows:i.PropTypes.number,rowsMax:i.PropTypes.number},getDefaultProps:function(){return{rows:1}},getInitialState:function(){return{height:this.props.rows*u}},componentDidMount:function(){this._syncHeightWithShadow()},render:function(){var e=this.props,t=(e.onChange,e.onHeightChange,e.rows,e.style),n=e.textareaStyle,s=(e.valueLink,r(e,["onChange","onHeightChange","rows","style","textareaStyle","valueLink"])),u=this.mergeAndPrefix(c.textarea,n,{height:this.state.height}),l=this.mergeAndPrefix(c.shadow);return this.props.hasOwnProperty("valueLink")&&(s.value=this.props.valueLink.value),this.props.disabled&&(t.cursor="default"),i.createElement("div",{style:this.props.style},i.createElement("textarea",{ref:"shadow",style:a.all(l),tabIndex:"-1",rows:this.props.rows,defaultValue:this.props.defaultValue,readOnly:!0,value:this.props.value,valueLink:this.props.valueLink}),i.createElement("textarea",o({},s,{ref:"input",rows:this.props.rows,style:a.all(u),onChange:this._handleChange})))},getInputNode:function(){return i.findDOMNode(this.refs.input)},setValue:function(e){this.getInputNode().value=e,this._syncHeightWithShadow(e)},_syncHeightWithShadow:function(e,t){var n=i.findDOMNode(this.refs.shadow);void 0!==e&&(n.value=e);var r=n.scrollHeight;this.props.rowsMax>this.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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(46),u=n(11),c=n(62),l=n(45),p=n(29),h=n(220),d=n(60),f=n(7),m=n(6),v=i.createClass({displayName:"IconButton",mixins:[s,a],contextTypes:{muiTheme:i.PropTypes.object},statics:{getRelevantContextKeys:function(e){var t=e.rawTheme.spacing,n=e.rawTheme.palette;return{iconSize:t.iconSize,textColor:n.textColor,disabledColor:n.disabledColor}},getChildrenClasses:function(){return[l,p,h]}},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{className:i.PropTypes.string,disabled:i.PropTypes.bool,iconClassName:i.PropTypes.string,iconStyle:i.PropTypes.object,onBlur:i.PropTypes.func,onFocus:i.PropTypes.func,onKeyboardFocus:i.PropTypes.func,tooltip:i.PropTypes.node,tooltipStyles:i.PropTypes.object,tooltipPosition:c.cornersAndCenter,touch:i.PropTypes.bool},getInitialState:function(){return{tooltipShown:!1,muiTheme:this.context.muiTheme?this.context.muiTheme:m.getMuiTheme(f)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getDefaultProps:function(){return{iconStyle:{},tooltipPosition:"bottom-center"}},getStyles:function(){var e=this.constructor.getRelevantContextKeys(this.state.muiTheme),t=e.iconSize,n=e.textColor,r=e.disabledColor,o={root:{position:"relative",boxSizing:"border-box",transition:u.easeOut(),padding:t/2,width:2*t,height:2*t,fontSize:0},tooltip:{boxSizing:"border-box"},icon:{color:n,fill:n},overlay:{position:"relative",top:0,width:"100%",height:"100%",background:r},disabled:{color:r,fill:r}};return o},render:function(){var e=this.props,t=e.disabled,n=e.iconClassName,s=e.tooltip,a=e.touch,u=e.iconStyle,c=r(e,["disabled","iconClassName","tooltip","touch","iconStyle"]),f=void 0,m=this.getStyles(),v=this.props.tooltipPosition.split("-"),y=s?i.createElement(h,{ref:"tooltip",label:s,show:this.state.tooltipShown,touch:a,style:this.mergeStyles(m.tooltip,this.props.tooltipStyles),verticalPosition:v[0],horizontalPosition:v[1]}):null;if(n){var g=u.iconHoverColor,b=r(u,["iconHoverColor"]);f=i.createElement(p,{className:n,hoverColor:t?null:g,style:this.mergeStyles(m.icon,t?m.disabled:{},b)},this.props.children)}var w=t?this.mergeStyles(u,m.disabled):u;return i.createElement(l,o({},c,{ref:"button",centerRipple:!0,disabled:t,style:this.mergeStyles(m.root,this.props.style),onBlur:this._handleBlur,onFocus:this._handleFocus,onMouseLeave:this._handleMouseLeave,onMouseEnter:this._handleMouseEnter,onKeyboardFocus:this._handleKeyboardFocus}),y,f,d.extend(this.props.children,{style:w}))},setKeyboardFocus:function(){this.refs.button.setKeyboardFocus()},_showTooltip:function(){!this.props.disabled&&this.props.tooltip&&this.setState({tooltipShown:!0})},_hideTooltip:function(){this.props.tooltip&&this.setState({tooltipShown:!1})},_handleBlur:function(e){this._hideTooltip(),this.props.onBlur&&this.props.onBlur(e)},_handleFocus:function(e){this._showTooltip(),this.props.onFocus&&this.props.onFocus(e)},_handleMouseLeave:function(e){this.refs.button.isKeyboardFocused()||this._hideTooltip(),this.props.onMouseLeave&&this.props.onMouseLeave(e)},_handleMouseEnter:function(e){this._showTooltip(),this.props.onMouseEnter&&this.props.onMouseEnter(e)},_handleKeyboardFocus:function(e,t){t&&!this.props.disabled?(this._showTooltip(),this.props.onFocus&&this.props.onFocus(e)):this.state.hovered||(this._hideTooltip(),this.props.onBlur&&this.props.onBlur(e)),this.props.onKeyboardFocus&&this.props.onKeyboardFocus(e,t)}});e.exports=v},function(e,t,n){
-"use strict";var r=n(3),o=n(49),i=n(76),s=r.createClass({displayName:"NestedList",propTypes:{nestedLevel:r.PropTypes.number,open:r.PropTypes.bool},getDefaultProps:function(){return{nestedLevel:1,open:!1}},render:function(){var e=this.props,t=e.children,n=e.open,s=e.nestedLevel,a=e.style,u={root:{display:n?null:"none"}};return r.createElement(i,{style:o.merge(u.root,a)},r.Children.map(t,function(e){return r.isValidElement(e)?r.cloneElement(e,{nestedLevel:s+1}):e}))}});e.exports=s},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(3),i=n(4),s=n(7),a=n(6),u=o.createClass({displayName:"LinkMenuItem",mixins:[i],contextTypes:{muiTheme:o.PropTypes.object},propTypes:{index:o.PropTypes.number.isRequired,payload:o.PropTypes.string.isRequired,text:o.PropTypes.string.isRequired,target:o.PropTypes.string,active:o.PropTypes.bool,disabled:o.PropTypes.bool,className:o.PropTypes.string},getDefaultProps:function(){return{active:!1,disabled:!1}},childContextTypes:{muiTheme:o.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:a.getMuiTheme(s),hovered:!1}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getTheme:function(){return this.state.muiTheme.menuItem},getStyles:function(){var e={root:{userSelect:"none",cursor:"pointer",display:"block",lineHeight:this.getTheme().height+"px",paddingLeft:this.getTheme().padding,paddingRight:this.getTheme().padding},rootWhenHovered:{backgroundColor:this.getTheme().hoverColor},rootWhenSelected:{color:this.getTheme().selectedTextColor},rootWhenDisabled:{cursor:"default",color:this.state.muiTheme.rawTheme.palette.disabledColor}};return e},render:function(){var e=this.props.disabled?this._stopLink:void 0,t=this.props.disabled?"data-href":"href",n={};n[t]=this.props.payload;var i=this.getStyles(),s=this.mergeAndPrefix(i.root,this.props.selected&&i.rootWhenSelected,this.props.selected&&i.rootWhenSelected,this.props.active&&!this.props.disabled&&i.rootWhenHovered,this.props.style,this.props.disabled&&i.rootWhenDisabled);return o.createElement("a",r({key:this.props.index,target:this.props.target,style:s},n,{className:this.props.className,onClick:e,onMouseEnter:this._handleMouseEnter,onMouseLeave:this._handleMouseLeave}),this.props.text)},_stopLink:function(e){e.preventDefault()},_handleMouseEnter:function(e){this.setState({hovered:!0}),!this.props.disabled&&this.props.onMouseEnter&&this.props.onMouseEnter(e)},_handleMouseLeave:function(e){this.setState({hovered:!1}),!this.props.disabled&&this.props.onMouseLeave&&this.props.onMouseLeave(e)}});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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(29),u=n(219),c=n(7),l=n(6),p={LINK:"LINK",SUBHEADER:"SUBHEADER",NESTED:"NESTED"},h=i.createClass({displayName:"MenuItem",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{index:i.PropTypes.number.isRequired,className:i.PropTypes.string,iconClassName:i.PropTypes.string,iconRightClassName:i.PropTypes.string,iconStyle:i.PropTypes.object,iconRightStyle:i.PropTypes.object,attribute:i.PropTypes.string,number:i.PropTypes.string,data:i.PropTypes.string,toggle:i.PropTypes.bool,disabled:i.PropTypes.bool,onTouchTap:i.PropTypes.func,onToggle:i.PropTypes.func,selected:i.PropTypes.bool,active:i.PropTypes.bool},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:l.getMuiTheme(c)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},statics:{Types:p},getDefaultProps:function(){return{toggle:!1,disabled:!1,active:!1}},getTheme:function(){return this.state.muiTheme.menuItem},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e={root:{userSelect:"none",cursor:"pointer",lineHeight:this.getTheme().height+"px",paddingLeft:this.getTheme().padding,paddingRight:this.getTheme().padding,color:this.state.muiTheme.rawTheme.palette.textColor},number:{"float":"right",width:24,textAlign:"center"},attribute:{"float":"right"},iconRight:{lineHeight:this.getTheme().height+"px","float":"right"},icon:{"float":"left",lineHeight:this.getTheme().height+"px",marginRight:this.getSpacing().desktopGutter},data:{display:"block",paddingLeft:2*this.getSpacing().desktopGutter,lineHeight:this.getTheme().dataHeight+"px",height:this.getTheme().dataHeight+"px",verticalAlign:"top",top:-12,position:"relative",fontWeight:300,color:this.state.muiTheme.rawTheme.palette.textColor},toggle:{marginTop:(this.getTheme().height-this.state.muiTheme.radioButton.size)/2,"float":"right",width:42},rootWhenHovered:{backgroundColor:this.getTheme().hoverColor},rootWhenSelected:{color:this.getTheme().selectedTextColor},rootWhenDisabled:{cursor:"default",color:this.state.muiTheme.rawTheme.palette.disabledColor}};return e},render:function(){var e=void 0,t=void 0,n=void 0,s=void 0,c=void 0,l=void 0,p=this.getStyles();if(this.props.iconClassName&&(e=i.createElement(a,{style:this.mergeAndPrefix(p.icon,this.props.iconStyle,this.props.selected&&p.rootWhenSelected),className:this.props.iconClassName})),this.props.iconRightClassName&&(n=i.createElement(a,{style:this.mergeAndPrefix(p.iconRight,this.props.iconRightStyle),className:this.props.iconRightClassName})),this.props.data&&(t=i.createElement("span",{style:this.mergeAndPrefix(p.data)},this.props.data)),void 0!==this.props.number&&(c=i.createElement("span",{style:this.mergeAndPrefix(p.number)},this.props.number)),void 0!==this.props.attribute&&(s=i.createElement("span",{style:this.mergeAndPrefix(p.style)},this.props.attribute)),this.props.icon&&(e=this.props.icon),this.props.toggle){var h=this.props,d=(h.toggle,h.onTouchTap,h.onToggle,h.onMouseEnter,h.onMouseLeave,h.children,h.label,h.style,r(h,["toggle","onTouchTap","onToggle","onMouseEnter","onMouseLeave","children","label","style"]));l=i.createElement(u,o({},d,{onToggle:this._handleToggle,style:p.toggle}))}return i.createElement("div",{key:this.props.index,className:this.props.className,onTouchTap:this._handleTouchTap,onMouseEnter:this._handleMouseEnter,onMouseLeave:this._handleMouseLeave,style:this.mergeAndPrefix(p.root,this.props.selected&&p.rootWhenSelected,this.props.active&&!this.props.disabled&&p.rootWhenHovered,this.props.style,this.props.disabled&&p.rootWhenDisabled)},e,this.props.children,c,s,t,l,n)},_handleTouchTap:function(e){!this.props.disabled&&this.props.onTouchTap&&this.props.onTouchTap(e,this.props.index)},_handleToggle:function(e,t){!this.props.disabled&&this.props.onToggle&&this.props.onToggle(e,this.props.index,t)},_handleMouseEnter:function(e){!this.props.disabled&&this.props.onMouseEnter&&this.props.onMouseEnter(e,this.props.index)},_handleMouseLeave:function(e){!this.props.disabled&&this.props.onMouseLeave&&this.props.onMouseLeave(e,this.props.index)}});e.exports=h},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(123),a=n(225),u=n(50),c=n(4),l=n(11),p=n(116),h=n(18),d=n(206),f=n(205),m=n(208),v=n(7),y=n(6),g=i.createClass({displayName:"NestedMenuItem",mixins:[p,c],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{index:i.PropTypes.number.isRequired,text:i.PropTypes.string,menuItems:i.PropTypes.array.isRequired,zDepth:i.PropTypes.number,disabled:i.PropTypes.bool,active:i.PropTypes.bool,onItemTap:i.PropTypes.func,menuItemStyle:i.PropTypes.object},getDefaultProps:function(){return{disabled:!1}},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:y.getMuiTheme(v),open:!1,activeIndex:0}},componentClickAway:function(){this._closeNestedMenu()},componentDidMount:function(){this._positionNestedMenu();var e=this.getDOMNode();e.focus()},componentDidUpdate:function(){this._positionNestedMenu()},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e={root:{userSelect:"none",cursor:"pointer",lineHeight:this.getTheme().height+"px",color:this.state.muiTheme.rawTheme.palette.textColor},icon:{"float":"left",lineHeight:this.getTheme().height+"px",marginRight:this.getSpacing().desktopGutter},toggle:{marginTop:(this.getTheme().height-this.state.muiTheme.radioButton.size)/2,"float":"right",width:42},rootWhenHovered:{backgroundColor:this.getTheme().hoverColor},rootWhenSelected:{color:this.getTheme().selectedTextColor},rootWhenDisabled:{cursor:"default",color:this.state.muiTheme.rawTheme.palette.disabledColor}};return e},getTheme:function(){return this.state.muiTheme.menuItem},render:function(){var e=this.getStyles();e=this.mergeAndPrefix(e.root,this.props.active&&!this.props.disabled&&e.rootWhenHovered,{position:"relative"},this.props.style);var t={marginRight:-1*this.getSpacing().desktopGutterMini,color:this.state.muiTheme.dropDownMenu.accentColor},n=this.props,s=n.index,a=n.menuItemStyle,u=r(n,["index","menuItemStyle"]);return i.createElement("div",{ref:"root",style:e,onMouseEnter:this._openNestedMenu,onMouseLeave:this._closeNestedMenu,onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},i.createElement(d,{index:s,style:a,disabled:this.props.disabled,iconRightStyle:t,iconRightClassName:"muidocs-icon-custom-arrow-drop-right",onTouchTap:this._onParentItemTap},this.props.text),i.createElement(b,o({},u,{ref:"nestedMenu",menuItems:this.props.menuItems,menuItemStyle:a,onItemTap:this._onMenuItemTap,hideable:!0,visible:this.state.open,onRequestClose:this._closeNestedMenu,zDepth:this.props.zDepth+1})))},toggleNestedMenu:function(){this.props.disabled||this.setState({open:!this.state.open})},isOpen:function(){return this.state.open},_positionNestedMenu:function(){var e=i.findDOMNode(this),t=i.findDOMNode(this.refs.nestedMenu);t.style.left=e.offsetWidth+"px"},_openNestedMenu:function(){this.props.disabled||this.setState({open:!0})},_closeNestedMenu:function(){this.setState({open:!1}),i.findDOMNode(this).focus()},_onParentItemTap:function(){this.toggleNestedMenu()},_onMenuItemTap:function(e,t,n){this.props.onItemTap&&this.props.onItemTap(e,t,n),this._closeNestedMenu()},_handleMouseOver:function(e){!this.props.disabled&&this.props.onMouseOver&&this.props.onMouseOver(e,this.props.index)},_handleMouseOut:function(e){!this.props.disabled&&this.props.onMouseOut&&this.props.onMouseOut(e,this.props.index)}}),b=i.createClass({displayName:"Menu",mixins:[c],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{autoWidth:i.PropTypes.bool,onItemTap:i.PropTypes.func,onToggle:i.PropTypes.func,onRequestClose:i.PropTypes.func,menuItems:i.PropTypes.array.isRequired,selectedIndex:i.PropTypes.number,hideable:i.PropTypes.bool,visible:i.PropTypes.bool,zDepth:i.PropTypes.number,menuItemStyle:i.PropTypes.object,menuItemStyleSubheader:i.PropTypes.object,menuItemStyleLink:i.PropTypes.object,menuItemClassName:i.PropTypes.string,menuItemClassNameSubheader:i.PropTypes.string,menuItemClassNameLink:i.PropTypes.string},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:y.getMuiTheme(v),nestedMenuShown:!1,activeIndex:0}},getDefaultProps:function(){return{autoWidth:!0,hideable:!1,visible:!0,zDepth:1,onRequestClose:function(){}}},componentDidMount:function(){var e=i.findDOMNode(this);this._setKeyWidth(e),this._renderVisibility()},componentDidUpdate:function(e){(this.props.visible!==e.visible||this.props.menuItems.length!==e.menuItems.length)&&this._renderVisibility()},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n}),this._setKeyWidth(i.findDOMNode(this))},getTheme:function(){return this.state.muiTheme.menu},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e={root:{backgroundColor:this.getTheme().containerBackgroundColor,paddingTop:this.getSpacing().desktopGutterMini,paddingBottom:this.getSpacing().desktopGutterMini,transition:l.easeOut(null,"height"),outline:"none !important"},subheader:{paddingLeft:this.state.muiTheme.menuSubheader.padding,paddingRight:this.state.muiTheme.menuSubheader.padding},hideable:{overflow:"hidden",position:"absolute",top:0,zIndex:1},item:{height:34}};return e},render:function(){var e=this.getStyles();return i.createElement(h,{ref:"paperContainer",tabIndex:"0",onKeyDown:this._onKeyDown,zDepth:this.props.zDepth,style:this.mergeAndPrefix(e.root,this.props.hideable&&e.hideable,this.props.style)},this._getChildren())},_getChildren:function(){var e=void 0,t=void 0,n=void 0,s=this.getStyles();this._children=[],this._nestedChildren=[];for(var a=0;a<this.props.menuItems.length;a++){e=this.props.menuItems[a],n=void 0===e.disabled?!1:e.disabled;var u=e,c=(u.icon,u.data,u.attribute,u.number,u.toggle,u.onTouchTap,r(u,["icon","data","attribute","number","toggle","onTouchTap"]));switch(e.type){case d.Types.LINK:t=i.createElement(f,{key:a,index:a,active:this.state.activeIndex===a,text:e.text,disabled:n,className:this.props.menuItemClassNameLink,style:this.props.menuItemStyleLink,payload:e.payload,target:e.target});break;case d.Types.SUBHEADER:t=i.createElement(m,{key:a,index:a,className:this.props.menuItemClassNameSubheader,style:this.mergeAndPrefix(s.subheader,this.props.menuItemStyleSubheader),firstChild:0===a,text:e.text});break;case d.Types.NESTED:var l=this.props,c=(l.ref,l.key,l.index,l.zDepth,r(l,["ref","key","index","zDepth"]));t=i.createElement(g,o({},c,{ref:a,key:a,index:a,nested:!0,active:this.state.activeIndex===a,text:e.text,disabled:n,menuItems:e.items,menuItemStyle:this.props.menuItemStyle,zDepth:this.props.zDepth,onMouseEnter:this._onItemActivated,onMouseLeave:this._onItemDeactivated,onItemTap:this._onNestedItemTap})),this._nestedChildren.push(a);break;default:t=i.createElement(d,o({},c,{selected:this.props.selectedIndex===a,key:a,index:a,active:this.state.activeIndex===a,icon:e.icon,data:e.data,className:this.props.menuItemClassName,style:this.props.menuItemStyle,attribute:e.attribute,number:e.number,toggle:e.toggle,onToggle:this.props.onToggle,disabled:n,onTouchTap:this._onItemTap,onMouseEnter:this._onItemActivated,onMouseLeave:this._onItemDeactivated}),e.text)}this._children.push(t)}return this._children},_setKeyWidth:function(e){var t="100%";this.props.autoWidth&&(e.style.width="auto",t=a.getIncrementalDim(e.offsetWidth)+"px"),e.style.width=t},_renderVisibility:function(){this.props.hideable&&(this.props.visible?this._expandHideableMenu():this._collapseHideableMenu())},_expandHideableMenu:function(){var e=this,t=i.findDOMNode(this),n=i.findDOMNode(this.refs.paperContainer),r=this.getSpacing().desktopGutterMini,o=this._getHiddenMenuHeight(t,r);t.style.transition||(t.style.transition=l.easeOut()),this._nextAnimationFrame(function(){n.style.overflow="hidden",t.style.paddingTop=r+"px",t.style.paddingBottom=r+"px",t.style.height=o+"px",t.style.opacity=1,s.onTransitionEnd(t,function(){e.props.visible&&(n.style.overflow="visible"),t.style.transition=null,t.focus()})})},_getHiddenMenuHeight:function(e,t){var n=2*t;return e.style.visibility="hidden",e.style.height="auto",n+=e.offsetHeight,e.style.height="0px",e.style.visibility="visible",n},_collapseHideableMenu:function(){var e=i.findDOMNode(this),t=i.findDOMNode(this.refs.paperContainer),n=e.style.opacity;e.style.transition||""===n||(e.style.transition=l.easeOut()),this._nextAnimationFrame(function(){t.style.overflow="hidden",e.style.opacity=0,e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px";var r=function(){e.style.transition=null};""===n?r():s.onTransitionEnd(e,r)})},_nextAnimationFrame:function(e){return window.requestAnimationFrame?window.requestAnimationFrame(e):setTimeout(e,16)},_onNestedItemTap:function(e,t,n){this.props.onItemTap&&this.props.onItemTap(e,t,n)},_onItemTap:function(e,t){this.props.onItemTap&&this.props.onItemTap(e,t,this.props.menuItems[t])},_onItemToggle:function(e,t,n){this.props.onItemToggle&&this.props.onItemToggle(e,t,this.props.menuItems[t],n)},_onItemActivated:function(e,t){this.setState({activeIndex:t})},_onItemDeactivated:function(e,t){this.state.activeKey===t&&this.setState({activeIndex:0})},_onKeyDown:function(e){if(this.state.open||this.props.visible){var t=this._children[this.state.activeIndex];if(!(t&&t.props.nested&&this.refs[this.state.activeIndex].isOpen())){switch(e.which){case u.UP:this._activatePreviousItem();break;case u.DOWN:this._activateNextItem();break;case u.RIGHT:this._tryToggleNested(this.state.activeIndex);break;case u.LEFT:this._close();break;case u.ESC:this._close();break;case u.TAB:return void this._close();case u.ENTER:case u.SPACE:e.stopPropagation(),this._triggerSelection(e);break;default:return}e.preventDefault(),e.stopPropagation()}}},_activatePreviousItem:function(){var e=this.state.activeIndex||0;e=Math.max(e-1,0),this.setState({activeIndex:e})},_activateNextItem:function(){var e=this.state.activeIndex||0;e=Math.min(e+1,this._children.length-1),this.setState({activeIndex:e})},_triggerSelection:function(e){var t=this.state.activeIndex||0;this._onItemTap(e,t)},_close:function(){this.props.onRequestClose()},_tryToggleNested:function(e){var t=this.refs[e];t&&t.toggleNestedMenu&&t.toggleNestedMenu()}});e.exports=b},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(47),s=n(7),a=n(6),u=r.createClass({displayName:"SubheaderMenuItem",mixins:[o],contextTypes:{muiTheme:r.PropTypes.object},propTypes:{index:r.PropTypes.number.isRequired,text:r.PropTypes.string.isRequired,firstChild:r.PropTypes.bool,className:r.PropTypes.string},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})},getTheme:function(){return this.state.muiTheme.menuSubheader},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e=this.getSpacing().desktopGutterMini,t=this.getSpacing().desktopSubheaderHeight,n={root:{boxSizing:"border-box",fontSize:"13px",letterSpacing:0,fontWeight:i.fontWeightMedium,margin:0,height:t+e,lineHeight:t+"px",color:this.getTheme().textColor,borderTop:"solid 1px "+this.getTheme().borderColor,paddingTop:e,marginTop:e},rootWhenFirstChild:{height:t,borderTop:"none",paddingTop:0,marginTop:0}};return n},render:function(){return r.createElement("div",{key:this.props.index,className:this.props.className,style:this.mergeAndPrefix(this.getStyles().root,this.props.firstChild&&this.getStyles().rootWhenFirstChild,this.props.style)},this.props.text)}});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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(4),u=n(19),c=n(216),l=n(115),p=n(7),h=n(6),d=i.createClass({displayName:"MenuItem",mixins:[s,a],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{checked:i.PropTypes.bool,desktop:i.PropTypes.bool,disabled:i.PropTypes.bool,innerDivStyle:i.PropTypes.object,insetChildren:i.PropTypes.bool,focusState:i.PropTypes.oneOf(["none","focused","keyboard-focused"]),leftIcon:i.PropTypes.element,rightIcon:i.PropTypes.element,secondaryText:i.PropTypes.node,value:i.PropTypes.string},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:h.getMuiTheme(p)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getDefaultProps:function(){return{focusState:"none"}},componentDidMount:function(){this._applyFocusState()},componentDidUpdate:function(){this._applyFocusState()},render:function(){var e=this.props,t=e.checked,n=e.children,s=e.desktop,a=e.disabled,p=(e.focusState,e.innerDivStyle),h=e.insetChildren,d=e.leftIcon,f=e.rightIcon,m=e.secondaryText,v=e.style,y=(e.value,r(e,["checked","children","desktop","disabled","focusState","innerDivStyle","insetChildren","leftIcon","rightIcon","secondaryText","style","value"])),g=this.state.muiTheme.rawTheme.palette.disabledColor,b=this.state.muiTheme.rawTheme.palette.textColor,w=s?64:72,E=s?24:16,T={root:{color:a?g:b,lineHeight:s?"32px":"48px",fontSize:s?15:16,whiteSpace:"nowrap"},innerDivStyle:{paddingLeft:d||h||t?w:E,paddingRight:E,paddingBottom:0,paddingTop:0},secondaryText:{"float":"right"},leftIconDesktop:{padding:0,left:24,top:4},rightIconDesktop:{padding:0,right:24,top:4,fill:u.grey600}},x=this.mergeStyles(T.root,v),C=this.mergeStyles(T.innerDivStyle,p),_=d?d:t?i.createElement(c,null):null;if(_&&s){var S=this.mergeStyles(T.leftIconDesktop,_.props.style);_=i.cloneElement(_,{style:S})}var N=void 0;if(f){var O=s?this.mergeStyles(T.rightIconDesktop,f.props.style):null;N=i.cloneElement(f,{style:O})}var D=void 0;if(m){var P=i.isValidElement(m),k=P?this.mergeStyles(T.secondaryText,m.props.style):null;D=P?i.cloneElement(m,{style:k}):i.createElement("div",{style:T.secondaryText},m)}return i.createElement(l,o({},y,{disabled:a,innerDivStyle:C,insetChildren:h,leftIcon:_,ref:"listItem",rightIcon:N,style:x}),n,D)},_applyFocusState:function(){this.refs.listItem.applyFocusState(this.props.focusState)}});e.exports=d},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.update,a=n(211),u=n(4),c=n(22),l=n(11),p=n(50),h=n(62),d=n(76),f=n(18),m=n(7),v=n(6),y=i.createClass({displayName:"Menu",mixins:[u,a],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{animated:i.PropTypes.bool,autoWidth:i.PropTypes.bool,desktop:i.PropTypes.bool,initiallyKeyboardFocused:i.PropTypes.bool,listStyle:i.PropTypes.object,maxHeight:i.PropTypes.number,multiple:i.PropTypes.bool,onEscKeyDown:i.PropTypes.func,onItemTouchTap:i.PropTypes.func,onKeyDown:i.PropTypes.func,openDirection:h.corners,selectedMenuItemStyle:i.PropTypes.object,width:h.stringOrNumber,zDepth:h.zDepth},getDefaultProps:function(){return{animated:!1,autoWidth:!0,maxHeight:null,onEscKeyDown:function(){},onItemTouchTap:function(){},onKeyDown:function(){},openDirection:"bottom-left",zDepth:1}},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){var e=this._getSelectedIndex(this.props);return{focusIndex:e>=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;r<n.length;++r)n[r].style.opacity=1},_cloneMenuItem:function(e,t,n){var r=this,o=this.props,s=o.desktop,a=o.selectedMenuItemStyle,u=this._isChildSelected(e,this.props),c={};u&&(c=this.mergeStyles(n.selectedMenuItem,a));var l=this.mergeStyles(e.props.style||{},c),p=t===this.state.focusIndex,h="none";return p&&(h=this.state.isKeyboardFocused?"keyboard-focused":"focused"),i.cloneElement(e,{desktop:s,focusState:h,onTouchTap:function(t){r._handleMenuItemTouchTap(t,e),e.props.onTouchTap&&e.props.onTouchTap(t)},ref:p?"focusedMenuItem":null,style:l})},_decrementKeyboardFocusIndex:function(){var e=this.state.focusIndex;e--,0>e&&(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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(4),u=n(22),c=n(11),l=n(19),p=i.createClass({displayName:"CircleRipple",mixins:[s,a],propTypes:{color:i.PropTypes.string,opacity:i.PropTypes.number},getDefaultProps:function(){return{color:l.darkBlack,opacity:.16}},componentWillAppear:function(e){this._initializeAnimation(e)},componentWillEnter:function(e){this._initializeAnimation(e)},componentDidAppear:function(){this._animate()},componentDidEnter:function(){this._animate()},componentWillLeave:function(e){var t=this,n=i.findDOMNode(this).style;n.opacity=0,setTimeout(function(){t.isMounted()&&e()},2e3)},render:function(){var e=this.props,t=e.color,n=(e.opacity,e.style),s=r(e,["color","opacity","style"]),a=this.mergeAndPrefix({position:"absolute",top:0,left:0,height:"100%",width:"100%",borderRadius:"50%",backgroundColor:t},n);return i.createElement("div",o({},s,{style:a}))},_animate:function(){var e=i.findDOMNode(this).style,t=c.easeOut("2s","opacity")+","+c.easeOut("1s","transform");u.set(e,"transition",t),u.set(e,"transform","scale(1)")},_initializeAnimation:function(e){var t=this,n=i.findDOMNode(this).style;n.opacity=this.props.opacity,u.set(n,"transform","scale(0)"),setTimeout(function(){t.isMounted()&&e()},0)}});e.exports=p},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(123),a=n(4),u=n(11),c=n(116),l=n(58),p=n(7),h=n(6),d=i.createClass({
-displayName:"Snackbar",mixins:[a,c],manuallyBindClickAway:!0,_autoHideTimerId:void 0,contextTypes:{muiTheme:i.PropTypes.object},propTypes:{message:i.PropTypes.string.isRequired,action:i.PropTypes.string,autoHideDuration:i.PropTypes.number,onActionTouchTap:i.PropTypes.func,onShow:i.PropTypes.func,onDismiss:i.PropTypes.func,openOnMount:i.PropTypes.bool},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{open:this.props.openOnMount||!1,muiTheme:this.context.muiTheme?this.context.muiTheme:h.getMuiTheme(p)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},componentDidMount:function(){this.props.openOnMount&&(this._setAutoHideTimer(),this._bindClickAway())},componentClickAway:function(){this.dismiss()},componentDidUpdate:function(e,t){var n=this;t.open!==this.state.open&&(this.state.open?(this._setAutoHideTimer(),s.onTransitionEnd(i.findDOMNode(this),function(){n._bindClickAway()})):this._unbindClickAway())},componentWillUnmount:function(){this._clearAutoHideTimer(),this._unbindClickAway()},getTheme:function(){return this.state.muiTheme.snackbar},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e={root:{color:this.getTheme().textColor,backgroundColor:this.getTheme().backgroundColor,borderRadius:2,padding:"0px "+this.getSpacing().desktopGutter+"px",height:this.getSpacing().desktopSubheaderHeight,lineHeight:this.getSpacing().desktopSubheaderHeight+"px",minWidth:288,maxWidth:568,position:"fixed",zIndex:10,bottom:this.getSpacing().desktopGutter,marginLeft:this.getSpacing().desktopGutter,left:0,opacity:0,visibility:"hidden",transform:"translate3d(0, 20px, 0)",transition:u.easeOut("0ms","left","400ms")+","+u.easeOut("400ms","opacity")+","+u.easeOut("400ms","transform")+","+u.easeOut("400ms","visibility")},action:{color:this.getTheme().actionColor,"float":"right",marginTop:6,marginRight:-16,marginLeft:this.getSpacing().desktopGutter,backgroundColor:"transparent"},rootWhenOpen:{opacity:1,visibility:"visible",transform:"translate3d(0, 0, 0)",transition:u.easeOut("0ms","left","0ms")+","+u.easeOut("400ms","opacity","0ms")+","+u.easeOut("400ms","transform","0ms")+","+u.easeOut("400ms","visibility","0ms")}};return e},render:function(){var e=this.props,t=e.action,n=e.message,s=e.onActionTouchTap,a=e.style,u=r(e,["action","message","onActionTouchTap","style"]),c=this.getStyles(),p=this.state.open?this.mergeStyles(c.root,c.rootWhenOpen,a):this.mergeStyles(c.root,a),h=void 0;return t&&(h=i.createElement(l,{style:c.action,label:t,onTouchTap:s})),i.createElement("span",o({},u,{style:p}),i.createElement("span",null,n),h)},show:function(){this.setState({open:!0}),this.props.onShow&&this.props.onShow()},dismiss:function(){this._clearAutoHideTimer(),this.setState({open:!1}),this.props.onDismiss&&this.props.onDismiss()},_clearAutoHideTimer:function(){void 0!==this._autoHideTimerId&&(this._autoHideTimerId=clearTimeout(this._autoHideTimerId))},_setAutoHideTimer:function(){var e=this;this.props.autoHideDuration>0&&(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(48),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(48),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(48),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(48),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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(11),u=n(18),c=n(113),l=n(7),p=n(6),h=i.createClass({displayName:"Toggle",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{elementStyle:i.PropTypes.object,labelStyle:i.PropTypes.object,onToggle:i.PropTypes.func,toggled:i.PropTypes.bool,defaultToggled:i.PropTypes.bool},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{switched:this.props.toggled||this.props.defaultToggled||this.props.valueLink&&this.props.valueLink.value||!1,muiTheme:this.context.muiTheme?this.context.muiTheme:p.getMuiTheme(l)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getTheme:function(){return this.state.muiTheme.toggle},getStyles:function(){var e=20,t=36,n={icon:{width:36,padding:"4px 0px 6px 2px"},toggleElement:{width:t},track:{transition:a.easeOut(),width:"100%",height:14,borderRadius:30,backgroundColor:this.getTheme().trackOffColor},thumb:{transition:a.easeOut(),position:"absolute",top:1,left:0,width:e,height:e,lineHeight:"24px",borderRadius:"50%",backgroundColor:this.getTheme().thumbOffColor},trackWhenSwitched:{backgroundColor:this.getTheme().trackOnColor},thumbWhenSwitched:{backgroundColor:this.getTheme().thumbOnColor,left:"100%"},trackWhenDisabled:{backgroundColor:this.getTheme().trackDisabledColor},thumbWhenDisabled:{backgroundColor:this.getTheme().thumbDisabledColor},label:{color:this.props.disabled?this.getTheme().labelDisabledColor:this.getTheme().labelColor}};return n},render:function(){var e=this.props,t=(e.onToggle,r(e,["onToggle"])),n=this.getStyles(),s=this.mergeAndPrefix(n.track,this.props.trackStyle,this.state.switched&&n.trackWhenSwitched,this.props.disabled&&n.trackWhenDisabled),a=this.mergeAndPrefix(n.thumb,this.props.thumbStyle,this.state.switched&&n.thumbWhenSwitched,this.props.disabled&&n.thumbWhenDisabled);this.state.switched&&(a.marginLeft="-"+a.width);var l=this.mergeAndPrefix(n.toggleElement,this.props.elementStyle),p=i.createElement("div",{style:l},i.createElement("div",{style:s}),i.createElement(u,{style:a,circle:!0,zDepth:1})),h=this.mergeAndPrefix({top:-10,left:-10},this.props.rippleStyle),d=this.state.switched?this.getTheme().thumbOnColor:this.state.muiTheme.textColor,f=this.mergeAndPrefix(n.icon,this.props.iconStyle),m=this.mergeAndPrefix(n.label,this.props.labelStyle),v={ref:"enhancedSwitch",inputType:"checkbox",switchElement:p,rippleStyle:h,rippleColor:d,iconStyle:f,trackStyle:s,thumbStyle:a,labelStyle:m,switched:this.state.switched,onSwitch:this._handleToggle,onParentShouldUpdate:this._handleStateChange,defaultSwitched:this.props.defaultToggled,labelPosition:this.props.labelPosition?this.props.labelPosition:"left"};return this.props.hasOwnProperty("toggled")&&(v.checked=this.props.toggled),i.createElement(c,o({},t,v))},isToggled:function(){return this.refs.enhancedSwitch.isSwitched()},setToggled:function(e){this.refs.enhancedSwitch.setSwitched(e)},_handleToggle:function(e,t){this.props.onToggle&&this.props.onToggle(e,t)},_handleStateChange:function(e){this.setState({switched:e})}});e.exports=h},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(11),u=n(19),c=n(7),l=n(6),p=i.createClass({displayName:"Tooltip",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{className:i.PropTypes.string,label:i.PropTypes.node.isRequired,show:i.PropTypes.bool,touch:i.PropTypes.bool,verticalPosition:i.PropTypes.oneOf(["top","bottom"]),horizontalPosition:i.PropTypes.oneOf(["left","right","center"])},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},componentDidMount:function(){this._setRippleSize(),this._setTooltipPosition()},componentWillReceiveProps:function(e,t){this._setTooltipPosition();var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},componentDidUpdate:function(){this._setRippleSize()},getInitialState:function(){return{offsetWidth:null,muiTheme:this.context.muiTheme?this.context.muiTheme:l.getMuiTheme(c)}},getStyles:function(){var e=this.props.verticalPosition,t=this.props.horizontalPosition,n=this.props.touch?10:0,r=this.props.touch?-20:-10,o="bottom"===e?14+n:-14-n,i={root:{position:"absolute",fontFamily:this.state.muiTheme.rawTheme.fontFamily,fontSize:"10px",lineHeight:"22px",padding:"0 8px",color:u.white,overflow:"hidden",top:-1e4,borderRadius:2,userSelect:"none",opacity:0,right:"left"===t?12:null,left:"center"===t?(this.state.offsetWidth-48)/2*-1:null,transition:a.easeOut("0ms","top","450ms")+","+a.easeOut("450ms","transform","0ms")+","+a.easeOut("450ms","opacity","0ms")},label:{position:"relative",whiteSpace:"nowrap"},ripple:{position:"absolute",left:"center"===t?"50%":"left"===t?"100%":"0%",top:"bottom"===e?0:"100%",transform:"translate(-50%, -50%)",borderRadius:"50%",backgroundColor:"transparent",transition:a.easeOut("0ms","width","450ms")+","+a.easeOut("0ms","height","450ms")+","+a.easeOut("450ms","backgroundColor","0ms")},rootWhenShown:{top:"top"===e?r:36,opacity:.9,transform:"translate3d(0px, "+o+"px, 0px)",transition:a.easeOut("0ms","top","0ms")+","+a.easeOut("450ms","transform","0ms")+","+a.easeOut("450ms","opacity","0ms")},rootWhenTouched:{fontSize:"14px",lineHeight:"32px",padding:"0 16px"},rippleWhenShown:{backgroundColor:u.grey700,transition:a.easeOut("450ms","width","0ms")+","+a.easeOut("450ms","height","0ms")+","+a.easeOut("450ms","backgroundColor","0ms")}};return i},render:function(){var e=this.props,t=(e.label,r(e,["label"])),n=this.getStyles();return i.createElement("div",o({},t,{style:this.mergeAndPrefix(n.root,this.props.show&&n.rootWhenShown,this.props.touch&&n.rootWhenTouched,this.props.style)}),i.createElement("div",{ref:"ripple",style:this.mergeAndPrefix(n.ripple,this.props.show&&n.rippleWhenShown)}),i.createElement("span",{style:this.mergeAndPrefix(n.label)},this.props.label))},_setRippleSize:function(){var e=i.findDOMNode(this.refs.ripple),t=window.getComputedStyle(i.findDOMNode(this)),n=parseInt(t.getPropertyValue("width"),10)/("center"===this.props.horizontalPosition?2:1),r=parseInt(t.getPropertyValue("height"),10),o=Math.ceil(2*Math.sqrt(Math.pow(r,2)+Math.pow(n,2)));this.props.show?(e.style.height=o+"px",e.style.width=o+"px"):(e.style.width="0px",e.style.height="0px")},_setTooltipPosition:function(){var e=i.findDOMNode(this);this.setState({offsetWidth:e.offsetWidth})}});e.exports=p},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(4),u=n(22),c=n(11),l=i.createClass({displayName:"ScaleInChild",mixins:[s,a],propTypes:{enterDelay:i.PropTypes.number,maxScale:i.PropTypes.number,minScale:i.PropTypes.number},getDefaultProps:function(){return{enterDelay:0,maxScale:1,minScale:0}},componentWillAppear:function(e){this._initializeAnimation(e)},componentWillEnter:function(e){this._initializeAnimation(e)},componentDidAppear:function(){this._animate()},componentDidEnter:function(){this._animate()},componentWillLeave:function(e){var t=this,n=i.findDOMNode(this).style;n.opacity="0",u.set(n,"transform","scale("+this.props.minScale+")"),setTimeout(function(){t.isMounted()&&e()},450)},render:function(){var e=this.props,t=e.children,n=(e.enterDelay,e.style),s=r(e,["children","enterDelay","style"]),a=this.mergeAndPrefix({position:"absolute",height:"100%",width:"100%",top:0,left:0,transition:c.easeOut(null,["transform","opacity"])},n);return i.createElement("div",o({},s,{style:a}),t)},_animate:function(){var e=i.findDOMNode(this).style;e.opacity="1",u.set(e,"transform","scale("+this.props.maxScale+")")},_initializeAnimation:function(e){var t=this,n=i.findDOMNode(this).style;n.opacity="0",u.set(n,"transform","scale(0)"),setTimeout(function(){t.isMounted()&&e()},this.props.enterDelay)}});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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=i.addons.TransitionGroup,u=n(4),c=n(221),l=i.createClass({displayName:"ScaleIn",mixins:[s,u],propTypes:{childStyle:i.PropTypes.object,enterDelay:i.PropTypes.number,maxScale:i.PropTypes.number,minScale:i.PropTypes.number},getDefaultProps:function(){return{enterDelay:0}},render:function(){var e=this.props,t=e.children,n=e.childStyle,s=e.enterDelay,u=e.maxScale,l=e.minScale,p=e.style,h=r(e,["children","childStyle","enterDelay","maxScale","minScale","style"]),d=this.mergeAndPrefix({position:"relative",overflow:"hidden",height:"100%"},p),f=i.Children.map(t,function(e){return i.createElement(c,{key:e.key,enterDelay:s,maxScale:u,minScale:l,style:n},e)});return i.createElement(a,o({},h,{style:d,component:"div"}),f)}});e.exports=l},function(e,t){"use strict";function n(e){return"object"==typeof e&&null!==e}var r=function o(e,t){var r={};return Object.keys(e).forEach(function(i){var s=e[i],a=void 0;n(t)&&(a=t[i]),r[i]=n(s)&&!Array.isArray(s)?o(s,a):s}),n(t)&&Object.keys(t).forEach(function(e){var o=t[e];(!n(o)||Array.isArray(o))&&(r[e]=o)}),r};e.exports=r},function(e,t){"use strict";e.exports=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(e,t){"use strict";e.exports={Desktop:{GUTTER:24,GUTTER_LESS:16,INCREMENT:64,MENU_ITEM_HEIGHT:32},getIncrementalDim:function(e){return Math.ceil(e/this.Desktop.INCREMENT)*this.Desktop.INCREMENT}}},function(e,t){"use strict";e.exports=function(e,t,n){function r(e,t){return typeof e===t}function o(e){m.cssText=e}function i(e,t){return o(v.join(e+";")+(t||""))}function s(e,t){return!!~(""+e).indexOf(t)}function a(e,t){for(var r in e){var o=e[r];if(!s(o,"-")&&m[o]!==n)return"pfx"==t?o:!0}return!1}function u(e,t,o){for(var i in e){var s=t[e[i]];if(s!==n)return o===!1?e[i]:r(s,"function")?s.bind(o||t):s}return!1}function c(e,t,n){var o=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+g.join(o+" ")+o).split(" ");return r(t,"string")||r(t,"undefined")?a(i,t):(i=(e+" "+b.join(o+" ")+o).split(" "),u(i,t,n))}var l="2.8.3",p={},h=t.documentElement,d="modernizr",f=t.createElement(d),m=f.style,v=" -webkit- -moz- -o- -ms- ".split(" "),y="Webkit Moz O ms",g=y.split(" "),b=y.toLowerCase().split(" "),w={},E=[],T=E.slice,x=n,C=function(e,r,o,i){var s=n,a=n,u=n,c=n,l=t.createElement("div"),p=t.body,f=p||t.createElement("body");if(parseInt(o,10))for(;o--;)u=t.createElement("div"),u.id=i?i[o]:d+(o+1),l.appendChild(u);return s=["&#173;",'<style id="s',d,'">',e,"</style>"].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<n.length;i++)if(!o(n[i])||e[n[i]]!==t[n[i]])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){var n=c.extractSingleTouch(t);return n?n[e.page]:e.page in t?t[e.page]:t[e.client]+l[e.envScroll]}function o(e,t){var n=r(w.x,t),o=r(w.y,t);return Math.pow(Math.pow(n-e.x,2)+Math.pow(o-e.y,2),.5)}var i=n(13),s=n(64),a=n(32),u=n(40),c=n(229),l=n(87),p=n(195),h=i.topLevelTypes,d=s.isStartish,f=s.isEndish,m=function(e){var t=[h.topTouchCancel,h.topTouchEnd,h.topTouchStart,h.topTouchMove];return t.indexOf(e)>=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.topTouchStart,h.topTouchCancel,h.topTouchEnd,h.topTouchMove],T=[h.topMouseDown,h.topMouseMove,h.topMouseUp].concat(E),x={touchTap:{phasedRegistrationNames:{bubbled:p({onTouchTap:null}),captured:p({onTouchTapCapture:null})},dependencies:T}},C=function(){return Date.now?Date.now:function(){return+new Date}}(),_={tapMoveThreshold:v,ignoreMouseThreshold:y,eventTypes:x,extractEvents:function(e,t,n,i,s){if(m(e))b=C();else if(b&&C()-b<y)return null;if(!d(e)&&!f(e))return null;var c=null,l=o(g,i);return f(e)&&v>l&&(c=u.getPooled(x.touchTap,n,i,s)),d(e)?(g.x=r(w.x,i),g.y=r(w.y,i)):f(e)&&(g.x=0,g.y=0),a.accumulateTwoPhaseDispatches(c),c}};e.exports=_},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(){n(31).injection.injectEventPluginsByName({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(32),m=n(12),v=n(240),y=n(283),g=n(286),b=n(21),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(32),E=n(12),T=n(16),x=n(28),C=n(94),_=n(152),S=n(21),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(138),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<e.length;p++)if(u=e[p],u.type===i.MOVE_EXISTING||u.type===i.REMOVE_NODE){var h=u.fromIndex,d=u.parentNode.childNodes[h],f=u.parentID;"production"!==t.env.NODE_ENV?a(d,"processUpdates(): Unable to find child %s of element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> 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.length;v++)l[v].parentNode.removeChild(l[v]);for(var y=0;y<e.length;y++)switch(u=e[y],u.type){case i.INSERT_MARKUP:r(u.parentNode,m[u.markupIndex],u.toIndex);break;case i.MOVE_EXISTING:r(u.parentNode,c[u.parentID][u.fromIndex],u.toIndex);break;case i.TEXT_CONTENT:s(u.parentNode,u.textContent);break;case i.REMOVE_NODE:}}};e.exports=u}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=n(12),i=n(295),s=n(20),a=n(149),u=n(2),c=/^(<[^ \/>]+)/,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<e.length;h++)"production"!==t.env.NODE_ENV?u(e[h],"dangerouslyRenderMarkup(...): Missing markup."):u(e[h]),n=r(e[h]),n=a(n)?n:"*",p[n]=p[n]||[],p[n][h]=e[h];var d=[],f=0;for(n in p)if(p.hasOwnProperty(n)){var m,v=p[n];for(m in v)if(v.hasOwnProperty(m)){var y=v[m];v[m]=y.replace(c,"$1 "+l+'="'+m+'" ')}for(var g=i(v.join(""),s),b=0;b<g.length;++b){var w=g[b];w.hasAttribute&&w.hasAttribute(l)?(m=+w.getAttribute(l),w.removeAttribute(l),"production"!==t.env.NODE_ENV?u(!d.hasOwnProperty(m),"Danger: Assigning to an already-occupied result index."):u(!d.hasOwnProperty(m)),d[m]=w,f+=1):"production"!==t.env.NODE_ENV&&console.error("Danger: Discarding unexpected node:",w)}}return"production"!==t.env.NODE_ENV?u(f===d.length,"Danger: Did not assign to every index of resultList."):u(f===d.length),"production"!==t.env.NODE_ENV?u(d.length===e.length,"Danger: Expected markup to render %s nodes, but rendered %s.",e.length,d.length):u(d.length===e.length),d},dangerouslyReplaceNodeWithMarkup:function(e,n){"production"!==t.env.NODE_ENV?u(o.canUseDOM,"dangerouslyReplaceNodeWithMarkup(...): 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),"production"!==t.env.NODE_ENV?u(n,"dangerouslyReplaceNodeWithMarkup(...): Missing markup."):u(n),"production"!==t.env.NODE_ENV?u("html"!==e.tagName.toLowerCase(),"dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> 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(21),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(32),i=n(68),s=n(17),a=n(21),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(20),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(150);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(20),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(33),o=n(5),i=r.createFactory(n(142)),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(33),o=n(232),i=n(276),s=n(153),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(39),o=n(298),i=n(93),s=n(96),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(154),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(52),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(54),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(51),s=n(78),a=n(24),u=n(15),c=n(8),l=n(17),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 <select> instead of setting `selected` on <option>."):null)},render:function(){return a(this.props,this.props.children)}});e.exports=u}).call(t,n(1))},function(e,t,n){"use strict";function r(){if(this._pendingUpdate){this._pendingUpdate=!1;var e=a.getValue(this);null!=e&&this.isMounted()&&i(this,e)}}function o(e,t,n){if(null==e[t])return null;if(e.multiple){if(!Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be an array if `multiple` is true.")}else if(Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be a scalar value if `multiple` is false.")}function i(e,t){var n,r,o,i=e.getDOMNode().options;if(e.props.multiple){for(n={},r=0,o=t.length;o>r;r++)n[""+t[r]]=!0;for(r=0,o=i.length;o>r;r++){var s=n.hasOwnProperty(i[r].value);i[r].selected!==s&&(i[r].selected=s)}}else{for(n=""+t,r=0,o=i.length;o>r;r++)if(i[r].value===n)return void(i[r].selected=!0);i.length&&(i[0].selected=!0)}}var s=n(63),a=n(78),u=n(24),c=n(15),l=n(8),p=n(16),h=n(5),d=l.createFactory("select"),f=c.createClass({displayName:"ReactDOMSelect",tagName:"SELECT",mixins:[s,a.Mixin,u],propTypes:{defaultValue:o,value:o},render:function(){var e=h({},this.props);return e.onChange=this._handleChange,e.value=null,d(e,this.props.children)},componentWillMount:function(){this._pendingUpdate=!1},componentDidMount:function(){var e=a.getValue(this);null!=e?i(this,e):null!=this.props.defaultValue&&i(this,this.props.defaultValue)},componentDidUpdate:function(e){var t=a.getValue(this);null!=t?(this._pendingUpdate=!1,i(this,t)):!e.multiple!=!this.props.multiple&&(null!=this.props.defaultValue?i(this,this.props.defaultValue):i(this,this.props.multiple?[]:""))},_handleChange:function(e){var t,n=a.getOnChange(this);return n&&(t=n.call(this,e)),this._pendingUpdate=!0,p.asap(r,this),t}});e.exports=f},function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var i=o.text.length,s=i+r;return{start:i,end:s}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,s=t.focusOffset,a=t.getRangeAt(0),u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),c=u?0:a.toString().length,l=a.cloneRange();l.selectNodeContents(e),l.setEnd(a.startContainer,a.startOffset);var p=r(l.startContainer,l.startOffset,l.endContainer,l.endOffset),h=p?0:l.toString().length,d=h+c,f=document.createRange();f.setStart(n,o),f.setEnd(i,s);var m=f.collapsed;return{start:m?d:h,end:m?h:d}}function s(e,t){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function a(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var s=i;i=o,o=s}var a=c(e,o),u=c(e,i);if(a&&u){var p=document.createRange();p.setStart(a.node,a.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=n(12),c=n(300),l=n(150),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),h={getOffsets:p?o:i,setOffsets:p?s:a};e.exports=h},function(e,t,n){(function(t){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var o=n(63),i=n(51),s=n(78),a=n(24),u=n(15),c=n(8),l=n(16),p=n(5),h=n(2),d=n(9),f=c.createFactory("textarea"),m=u.createClass({displayName:"ReactDOMTextarea",tagName:"TEXTAREA",mixins:[o,s.Mixin,a],getInitialState:function(){var e=this.props.defaultValue,n=this.props.children;null!=n&&("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?d(!1,"Use the `defaultValue` or `value` props instead of setting children on <textarea>."):null),"production"!==t.env.NODE_ENV?h(null==e,"If you supply `defaultValue` on a <textarea>, do not pass children."):h(null==e),Array.isArray(n)&&("production"!==t.env.NODE_ENV?h(n.length<=1,"<textarea> can only have at most one child."):h(n.length<=1),n=n[0]),e=""+n),null==e&&(e="");var r=s.getValue(this);return{initialValue:""+(null!=r?r:e)}},render:function(){var e=p({},this.props);return"production"!==t.env.NODE_ENV?h(null==e.dangerouslySetInnerHTML,"`dangerouslySetInnerHTML` does not make sense on <textarea>."):h(null==e.dangerouslySetInnerHTML),e.defaultValue=null,e.value=null,e.onChange=this._handleChange,f(e,this.state.initialValue)},componentDidUpdate:function(e,t,n){var r=s.getValue(this);if(null!=r){var o=this.getDOMNode();i.setValueForProperty(o,"value",""+r)}},_handleChange:function(e){var t,n=s.getOnChange(this);return n&&(t=n.call(this,e)),l.asap(r,this),t}});e.exports=m}).call(t,n(1))},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(16),i=n(69),s=n(5),a=n(20),u={initialize:a,close:function(){h.isBatchingUpdates=!1}},c={initialize:a,close:o.flushBatchedUpdates.bind(o)},l=[c,u];s(r.prototype,i.Mixin,{getTransactionWrappers:function(){return l}});var p=new r,h={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o){var i=h.isBatchingUpdates;h.isBatchingUpdates=!0,i?e(t,n,r,o):p.perform(e,null,t,n,r,o)}};e.exports=h},function(e,t,n){(function(t){"use strict";function r(e){return f.createClass({tagName:e.toUpperCase(),render:function(){return new O(e,null,null,null,null,this.props)}})}function o(){if(P.EventEmitter.injectReactEventListener(D),P.EventPluginHub.injectEventPluginOrder(u),P.EventPluginHub.injectInstanceHandle(k),P.EventPluginHub.injectMount(M),P.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:j,EnterLeaveEventPlugin:c,ChangeEventPlugin:s,MobileSafariClickEventPlugin:h,SelectEventPlugin:R,BeforeInputEventPlugin:i}),P.NativeComponent.injectGenericComponentClass(y),P.NativeComponent.injectTextComponentClass(N),P.NativeComponent.injectAutoWrapper(r),P.Class.injectMixin(d),P.NativeComponent.injectComponentClasses({button:g,form:b,iframe:T,img:w,input:x,option:C,select:_,textarea:S,html:F("html"),head:F("head"),body:F("body")}),P.DOMProperty.injectDOMPropertyConfig(p),P.DOMProperty.injectDOMPropertyConfig(L),P.EmptyComponent.injectEmptyComponent("noscript"),P.Updates.injectReconcileTransaction(A),P.Updates.injectBatchingStrategy(v),P.RootIndex.injectCreateReactRootIndex(l.canUseDOM?a.createReactRootIndex:I.createReactRootIndex),P.Component.injectEnvironment(m),P.DOMComponent.injectIDOperations(E),"production"!==t.env.NODE_ENV){var e=l.canUseDOM&&window.location.href||"";if(/[?&]react_perf\b/.test(e)){var o=n(135);o.start()}}}var i=n(231),s=n(233),a=n(234),u=n(237),c=n(238),l=n(12),p=n(241),h=n(243),d=n(24),f=n(15),m=n(80),v=n(258),y=n(83),g=n(249),b=n(250),w=n(252),E=n(133),T=n(251),x=n(253),C=n(254),_=n(255),S=n(257),N=n(134),O=n(8),D=n(263),P=n(264),k=n(35),M=n(17),A=n(269),R=n(279),I=n(280),j=n(281),L=n(278),F=n(294);e.exports={inject:o}}).call(t,n(1))},function(e,t,n){function r(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.totalTime}return t}function o(e){for(var t=[],n=0;n<e.length;n++){var r,o=e[n];for(r in o.writes)o.writes[r].forEach(function(e){t.push({id:r,type:l[e.type]||e.type,args:e.args})})}return t}function i(e){for(var t,n={},r=0;r<e.length;r++){var o=e[r],i=u({},o.exclusive,o.inclusive);for(var s in i)t=o.displayNames[s].current,n[t]=n[t]||{componentName:t,inclusive:0,exclusive:0,render:0,count:0},o.render[s]&&(n[t].render+=o.render[s]),o.exclusive[s]&&(n[t].exclusive+=o.exclusive[s]),o.inclusive[s]&&(n[t].inclusive+=o.inclusive[s]),o.counts[s]&&(n[t].count+=o.counts[s])}var a=[];for(t in n)n[t].exclusive>=c&&a.push(n[t]);return a.sort(function(e,t){return t.exclusive-e.exclusive}),a}function s(e,t){for(var n,r={},o=0;o<e.length;o++){var i,s=e[o],l=u({},s.exclusive,s.inclusive);t&&(i=a(s));for(var p in l)if(!t||i[p]){var h=s.displayNames[p];n=h.owner+" > "+h.current,r[n]=r[n]||{componentName:n,time:0,count:0},s.inclusive[p]&&(r[n].time+=s.inclusive[p]),s.counts[p]&&(r[n].count+=s.counts[p])}}var d=[];for(n in r)r[n].time>=c&&d.push(r[n]);return d.sort(function(e,t){return t.time-e.time}),d}function a(e){var t={},n=Object.keys(e.writes),r=u({},e.exclusive,e.inclusive);for(var o in r){for(var i=!1,s=0;s<n.length;s++)if(0===n[s].indexOf(o)){i=!0;break}!i&&e.counts[o]>0&&(t[o]=!0)}return t}var u=n(5),c=1.2,l={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",TEXT_CONTENT:"set textContent",updatePropertyByID:"update attribute",deletePropertyByID:"delete attribute",updateStylesByID:"update styles",updateInnerHTMLByID:"set innerHTML",dangerouslyReplaceNodeWithMarkupByID:"replace"},p={getExclusiveSummary:i,getInclusiveSummary:s,getDOMSummary:o,getTotalTime:r};e.exports=p},function(e,t){"use strict";var n={guard:function(e,t){return e}};e.exports=n},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue()}var o=n(31),i={handleTopLevel:function(e,t,n,i){var s=o.extractEvents(e,t,n,i);r(s)}};e.exports=i},function(e,t,n){"use strict";function r(e){var t=p.getID(e),n=l.getReactRootIDFromNodeID(t),r=p.findReactContainerForID(n),o=p.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){for(var t=p.getFirstReactDOM(f(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0,i=e.ancestors.length;i>o;o++){t=e.ancestors[o];var s=p.getID(t)||"";v._handleTopLevel(e.topLevelType,t,s,e.nativeEvent)}}function s(e){var t=m(window);e(t)}var a=n(239),u=n(12),c=n(23),l=n(35),p=n(17),h=n(16),d=n(5),f=n(92),m=n(302);d(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(o,c.twoArgumentPooler);var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:u.canUseDOM?window:null,setHandleTopLevel:function(e){v._handleTopLevel=e},setEnabled:function(e){v._enabled=!!e},isEnabled:function(){return v._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?a.listen(r,t,v.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?a.capture(r,t,v.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=s.bind(null,e);a.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(v._enabled){var n=o.getPooled(e,t);try{h.batchedUpdates(i,n)}finally{o.release(n)}}}};e.exports=v},function(e,t,n){"use strict";var r=n(30),o=n(31),i=n(81),s=n(15),a=n(65),u=n(34),c=n(66),l=n(83),p=n(27),h=n(141),d=n(16),f={Component:i.injection,Class:s.injection,DOMComponent:l.injection,DOMProperty:r.injection,EmptyComponent:a.injection,EventPluginHub:o.injection,EventEmitter:u.injection,NativeComponent:c.injection,Perf:p.injection,RootIndex:h.injection,Updates:d.injection};e.exports=f},function(e,t,n){"use strict";function r(e,t){this.value=e,this.requestChange=t}function o(e){var t={value:"undefined"==typeof e?i.PropTypes.any.isRequired:e.isRequired,requestChange:i.PropTypes.func.isRequired};return i.PropTypes.shape(t)}var i=n(33);r.PropTypes={link:o},e.exports=r},function(e,t,n){"use strict";function r(e,t,n){f.push({parentID:e,parentNode:null,type:l.INSERT_MARKUP,markupIndex:m.push(t)-1,textContent:null,fromIndex:null,toIndex:n})}function o(e,t,n){f.push({parentID:e,parentNode:null,type:l.MOVE_EXISTING,markupIndex:null,textContent:null,fromIndex:t,toIndex:n})}function i(e,t){f.push({parentID:e,parentNode:null,type:l.REMOVE_NODE,markupIndex:null,textContent:null,fromIndex:t,toIndex:null})}function s(e,t){f.push({parentID:e,parentNode:null,type:l.TEXT_CONTENT,markupIndex:null,textContent:t,fromIndex:null,toIndex:null})}function a(){f.length&&(c.processChildrenUpdates(f,m),u())}function u(){f.length=0,m.length=0}var c=n(81),l=n(138),p=n(39),h=n(246),d=0,f=[],m=[],v={Mixin:{mountChildren:function(e,t,n){var r=h.instantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var s in r)if(r.hasOwnProperty(s)){var a=r[s],u=this._rootNodeID+s,c=p.mountComponent(a,u,t,n);a._mountIndex=i,o.push(c),i++}return o},updateTextContent:function(e){d++;var t=!0;try{var n=this._renderedChildren;h.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setTextContent(e),t=!1}finally{d--,d||(t?u():a())}},updateChildren:function(e,t,n){d++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{d--,d||(r?u():a())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,o=h.updateChildren(r,e,t,n);if(this._renderedChildren=o,o||r){var i,s=0,a=0;for(i in o)if(o.hasOwnProperty(i)){var u=r&&r[i],c=o[i];u===c?(this.moveChild(u,a,s),s=Math.max(u._mountIndex,s),u._mountIndex=a):(u&&(s=Math.max(u._mountIndex,s),this._unmountChildByName(u,i)),this._mountChildByNameAtIndex(c,i,a,t,n)),a++}for(i in r)!r.hasOwnProperty(i)||o&&o.hasOwnProperty(i)||this._unmountChildByName(r[i],i)}},unmountChildren:function(){var e=this._renderedChildren;h.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&o(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){r(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){i(this._rootNodeID,e._mountIndex)},setTextContent:function(e){s(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,o){var i=this._rootNodeID+t,s=p.mountComponent(e,i,r,o);e._mountIndex=n,this.createChild(e,s)},_unmountChildByName:function(e,t){this.removeChild(e),e._mountIndex=null}}};e.exports=v},function(e,t,n){(function(t){"use strict";var r=n(2),o={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,n,i){"production"!==t.env.NODE_ENV?r(o.isValidOwner(i),"addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."):r(o.isValidOwner(i)),i.attachRef(n,e)},removeComponentAsRefFrom:function(e,n,i){"production"!==t.env.NODE_ENV?r(o.isValidOwner(i),"removeComponentAsRefFrom(...): Only a ReactOwner can have refs. This usually means that you're trying to remove a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."):r(o.isValidOwner(i)),i.getPublicInstance().refs[n]===e.getPublicInstance()&&i.detachRef(n)}};e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return function(t,n,r){t.hasOwnProperty(n)?t[n]=e(t[n],r):t[n]=r}}function o(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=c[n];r&&c.hasOwnProperty(n)?r(e,n,t[n]):e.hasOwnProperty(n)||(e[n]=t[n])}return e}var i=n(5),s=n(20),a=n(306),u=r(function(e,t){return i({},t,e)}),c={children:s,className:r(a),style:u},l={mergeProps:function(e,t){return o(i({},e),t)}};e.exports=l},function(e,t,n){"use strict";function r(){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.putListenerQueue=u.getPooled()}var o=n(77),i=n(23),s=n(34),a=n(136),u=n(140),c=n(69),l=n(5),p={initialize:a.getSelectionInformation,close:a.restoreSelection},h={initialize:function(){var e=s.isEnabled();return s.setEnabled(!1),e},close:function(e){s.setEnabled(e)}},d={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},f={initialize:function(){this.putListenerQueue.reset()},close:function(){this.putListenerQueue.putListeners()}},m=[f,p,h,d],v={getTransactionWrappers:function(){return m},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null,u.release(this.putListenerQueue),this.putListenerQueue=null}};l(r.prototype,c.Mixin,v),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):i.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):i.removeComponentAsRefFrom(t,e,n)}var i=n(267),s={};s.attachRefs=function(e,t){var n=t.ref;null!=n&&r(n,e,t._owner)},s.shouldUpdateRefs=function(e,t){return t._owner!==e._owner||t.ref!==e.ref},s.detachRefs=function(e,t){var n=t.ref;null!=n&&o(n,e,t._owner)},e.exports=s},function(e,t,n){(function(t){"use strict";function r(e){"production"!==t.env.NODE_ENV?p(i.isValidElement(e),"renderToString(): You must pass a valid ReactElement."):p(i.isValidElement(e));var n;try{var r=s.createReactRootID();return n=u.getPooled(!1),n.perform(function(){var t=l(e,null),o=t.mountComponent(r,n,c);return a.addChecksumToMarkup(o)},null)}finally{u.release(n)}}function o(e){"production"!==t.env.NODE_ENV?p(i.isValidElement(e),"renderToStaticMarkup(): You must pass a valid ReactElement."):p(i.isValidElement(e));var n;try{var r=s.createReactRootID();return n=u.getPooled(!0),n.perform(function(){var t=l(e,null);return t.mountComponent(r,n,c)},null)}finally{u.release(n)}}var i=n(8),s=n(35),a=n(137),u=n(272),c=n(53),l=n(93),p=n(2);e.exports={renderToString:r,renderToStaticMarkup:o}}).call(t,n(1))},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=i.getPooled(null),this.putListenerQueue=s.getPooled()}var o=n(23),i=n(77),s=n(140),a=n(69),u=n(5),c=n(20),l={initialize:function(){this.reactMountReady.reset()},close:c},p={initialize:function(){this.putListenerQueue.reset()},close:c},h=[p,l],d={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null,s.release(this.putListenerQueue),this.putListenerQueue=null}};u(r.prototype,a.Mixin,d),o.addPoolingTo(r),e.exports=r},function(e,t){"use strict";function n(e,t){var n={};return function(r){n[t]=r,e.setState(n)}}var r={createStateSetter:function(e,t){return function(n,r,o,i,s,a){var u=t.call(e,n,r,o,i,s,a);u&&e.setState(u)}},createStateKeySetter:function(e,t){var r=e.__keySetters||(e.__keySetters={});return r[t]||(r[t]=n(e,t))}};r.Mixin={createStateSetter:function(e){return r.createStateSetter(this,e)},createStateKeySetter:function(e){return r.createStateKeySetter(this,e)}},e.exports=r},function(e,t,n){"use strict";function r(e){}function o(e){return function(t,n){var o;x.isDOMComponent(t)?o=t.getDOMNode():t.tagName&&(o=t);var i=new r;i.target=o;var s=new b(d.eventNameDispatchConfigs[e],y.getID(o),i);w(s,n),c.accumulateTwoPhaseDispatches(s),g.batchedUpdates(function(){u.enqueueEvents(s),u.processEventQueue()})}}function i(){x.Simulate={};var e;for(e in d.eventNameDispatchConfigs)x.Simulate[e]=o(e)}function s(e){return function(t,n){var o=new r(e);w(o,n),x.isDOMComponent(t)?x.simulateNativeEventOnDOMComponent(e,t,o):t.tagName&&x.simulateNativeEventOnNode(e,t,o)}}var a=n(13),u=n(31),c=n(32),l=n(33),p=n(8),h=n(65),d=n(34),f=n(132),m=n(35),v=n(36),y=n(17),g=n(16),b=n(28),w=n(5),E=n(53),T=a.topLevelTypes,x={renderIntoDocument:function(e){var t=document.createElement("div");return l.render(e,t)},isElement:function(e){return p.isValidElement(e)},isElementOfType:function(e,t){return p.isValidElement(e)&&e.type===t},isDOMComponent:function(e){return!!(e&&e.tagName&&e.getDOMNode)},isDOMComponentElement:function(e){return!!(e&&p.isValidElement(e)&&e.tagName)},isCompositeComponent:function(e){return"function"==typeof e.render&&"function"==typeof e.setState},isCompositeComponentWithType:function(e,t){return!(!x.isCompositeComponent(e)||e.constructor!==t)},isCompositeComponentElement:function(e){if(!p.isValidElement(e))return!1;var t=e.type.prototype;return"function"==typeof t.render&&"function"==typeof t.setState},isCompositeComponentElementWithType:function(e,t){return!(!x.isCompositeComponentElement(e)||e.constructor!==t)},getRenderedChildOfCompositeComponent:function(e){if(!x.isCompositeComponent(e))return null;var t=v.get(e);return t._renderedComponent.getPublicInstance()},findAllInRenderedTree:function(e,t){if(!e)return[];var n=t(e)?[e]:[];if(x.isDOMComponent(e)){var r,o=v.get(e),i=o._renderedComponent._renderedChildren;for(r in i)i.hasOwnProperty(r)&&i[r].getPublicInstance&&(n=n.concat(x.findAllInRenderedTree(i[r].getPublicInstance(),t)))}else x.isCompositeComponent(e)&&(n=n.concat(x.findAllInRenderedTree(x.getRenderedChildOfCompositeComponent(e),t)));return n},scryRenderedDOMComponentsWithClass:function(e,t){
-return x.findAllInRenderedTree(e,function(e){var n=e.props.className;return x.isDOMComponent(e)&&n&&-1!==(" "+n+" ").indexOf(" "+t+" ")})},findRenderedDOMComponentWithClass:function(e,t){var n=x.scryRenderedDOMComponentsWithClass(e,t);if(1!==n.length)throw new Error("Did not find exactly one match (found: "+n.length+") for class:"+t);return n[0]},scryRenderedDOMComponentsWithTag:function(e,t){return x.findAllInRenderedTree(e,function(e){return x.isDOMComponent(e)&&e.tagName===t.toUpperCase()})},findRenderedDOMComponentWithTag:function(e,t){var n=x.scryRenderedDOMComponentsWithTag(e,t);if(1!==n.length)throw new Error("Did not find exactly one match for tag:"+t);return n[0]},scryRenderedComponentsWithType:function(e,t){return x.findAllInRenderedTree(e,function(e){return x.isCompositeComponentWithType(e,t)})},findRenderedComponentWithType:function(e,t){var n=x.scryRenderedComponentsWithType(e,t);if(1!==n.length)throw new Error("Did not find exactly one match for componentType:"+t);return n[0]},mockComponent:function(e,t){return t=t||e.mockTagName||"div",e.prototype.render.mockImplementation(function(){return l.createElement(t,null,this.props.children)}),this},simulateNativeEventOnNode:function(e,t,n){n.target=t,d.ReactEventListener.dispatchEvent(e,n)},simulateNativeEventOnDOMComponent:function(e,t,n){x.simulateNativeEventOnNode(e,t.getDOMNode(),n)},nativeTouchData:function(e,t){return{touches:[{pageX:e,pageY:t}]}},createRenderer:function(){return new C},Simulate:null,SimulateNative:{}},C=function(){this._instance=null};C.prototype.getRenderOutput=function(){return this._instance&&this._instance._renderedComponent&&this._instance._renderedComponent._renderedOutput||null};var _=function(e){this._renderedOutput=e,this._currentElement=null===e||e===!1?h.emptyElement:e};_.prototype={mountComponent:function(){},receiveComponent:function(e){this._renderedOutput=e,this._currentElement=null===e||e===!1?h.emptyElement:e},unmountComponent:function(){}};var S=function(){};w(S.prototype,f.Mixin,{_instantiateReactComponent:function(e){return new _(e)},_replaceNodeWithMarkupByID:function(){},_renderValidatedComponent:f.Mixin._renderValidatedComponentWithoutOwnerOrContext}),C.prototype.render=function(e,t){t||(t=E);var n=g.ReactReconcileTransaction.getPooled();this._render(e,n,t),g.ReactReconcileTransaction.release(n)},C.prototype.unmount=function(){this._instance&&this._instance.unmountComponent()},C.prototype._render=function(e,t,n){if(this._instance)this._instance.receiveComponent(e,t,n);else{var r=m.createReactRootID(),o=new S(e.type);o.construct(e),o.mountComponent(r,t,n),this._instance=o}};var N=u.injection.injectEventPluginOrder;u.injection.injectEventPluginOrder=function(){N.apply(this,arguments),i()};var O=u.injection.injectEventPluginsByName;u.injection.injectEventPluginsByName=function(){O.apply(this,arguments),i()},i();var D;for(D in T){var P=0===D.indexOf("top")?D.charAt(3).toLowerCase()+D.substr(4):D;x.SimulateNative[P]=s(D)}e.exports=x},function(e,t,n){"use strict";var r=n(130),o=n(38),i={getChildMapping:function(e){return e?o.extract(r.map(e,function(e){return e})):e},mergeChildMappings:function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var u in t){if(r.hasOwnProperty(u))for(s=0;s<r[u].length;s++){var c=r[u][s];a[r[u][s]]=n(c)}a[u]=n(u)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}};e.exports=i},function(e,t,n){"use strict";function r(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete a.animationend.animation,"TransitionEvent"in window||delete a.transitionend.transition;for(var n in a){var r=a[n];for(var o in r)if(o in t){u.push(r[o]);break}}}function o(e,t,n){e.addEventListener(t,n,!1)}function i(e,t,n){e.removeEventListener(t,n,!1)}var s=n(12),a={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},u=[];s.canUseDOM&&r();var c={addEndEventListener:function(e,t){return 0===u.length?void window.setTimeout(t,0):void u.forEach(function(n){o(e,n,t)})},removeEndEventListener:function(e,t){0!==u.length&&u.forEach(function(n){i(e,n,t)})}};e.exports=c},function(e,t,n){(function(t){"use strict";var r=n(242),o=n(33),i=n(247),s=n(244),a=n(38),u=n(142),c=n(16),l=n(296),p=n(143),h=n(156);o.addons={CSSTransitionGroup:s,LinkedStateMixin:r,PureRenderMixin:i,TransitionGroup:u,batchedUpdates:c.batchedUpdates,classSet:l,cloneWithProps:p,createFragment:a.create,update:h},"production"!==t.env.NODE_ENV&&(o.addons.Perf=n(135),o.addons.TestUtils=n(274)),e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";var r=n(30),o=r.injection.MUST_USE_ATTRIBUTE,i={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,y1:o,y2:o,y:o},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox"}};e.exports=i},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&a.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e){if(g||null==m||m!==c())return null;var t=r(m);if(!y||!h(y,t)){y=t;var n=u.getPooled(f.select,v,e);return n.type="select",n.target=m,s.accumulateTwoPhaseDispatches(n),n}}var i=n(13),s=n(32),a=n(136),u=n(28),c=n(147),l=n(152),p=n(21),h=n(154),d=i.topLevelTypes,f={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[d.topBlur,d.topContextMenu,d.topFocus,d.topKeyDown,d.topMouseDown,d.topMouseUp,d.topSelectionChange]}},m=null,v=null,y=null,g=!1,b={eventTypes:f,extractEvents:function(e,t,n,r){switch(e){case d.topFocus:(l(t)||"true"===t.contentEditable)&&(m=t,v=n,y=null);break;case d.topBlur:m=null,v=null,y=null;break;case d.topMouseDown:g=!0;break;case d.topContextMenu:case d.topMouseUp:return g=!1,o(r);case d.topSelectionChange:case d.topKeyDown:case d.topKeyUp:return o(r)}}};e.exports=b},function(e,t){"use strict";var n=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};e.exports=r},function(e,t,n){(function(t){"use strict";var r=n(13),o=n(64),i=n(32),s=n(282),a=n(28),u=n(285),c=n(287),l=n(68),p=n(284),h=n(288),d=n(40),f=n(289),m=n(90),v=n(2),y=n(21),g=n(9),b=r.topLevelTypes,w={blur:{phasedRegistrationNames:{bubbled:y({onBlur:!0}),captured:y({onBlurCapture:!0})}},click:{phasedRegistrationNames:{bubbled:y({onClick:!0}),captured:y({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:y({onContextMenu:!0}),captured:y({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:y({onCopy:!0}),captured:y({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:y({onCut:!0}),captured:y({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:y({onDoubleClick:!0}),captured:y({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:y({onDrag:!0}),captured:y({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:y({onDragEnd:!0}),captured:y({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:y({onDragEnter:!0}),captured:y({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:y({onDragExit:!0}),captured:y({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:y({onDragLeave:!0}),captured:y({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:y({onDragOver:!0}),captured:y({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:y({onDragStart:!0}),captured:y({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:y({onDrop:!0}),captured:y({onDropCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:y({onFocus:!0}),captured:y({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:y({onInput:!0}),captured:y({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:y({onKeyDown:!0}),captured:y({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:y({onKeyPress:!0}),captured:y({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:y({onKeyUp:!0}),captured:y({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:y({onLoad:!0}),captured:y({onLoadCapture:!0})}},error:{phasedRegistrationNames:{bubbled:y({onError:!0}),captured:y({onErrorCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:y({onMouseDown:!0}),captured:y({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:y({onMouseMove:!0}),captured:y({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:y({onMouseOut:!0}),captured:y({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:y({onMouseOver:!0}),captured:y({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:y({onMouseUp:!0}),captured:y({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:y({onPaste:!0}),captured:y({onPasteCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:y({onReset:!0}),captured:y({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:y({onScroll:!0}),captured:y({onScrollCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:y({onSubmit:!0}),captured:y({onSubmitCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:y({onTouchCancel:!0}),captured:y({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:y({onTouchEnd:!0}),captured:y({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:y({onTouchMove:!0}),captured:y({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:y({onTouchStart:!0}),captured:y({onTouchStartCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:y({onWheel:!0}),captured:y({onWheelCapture:!0})}}},E={topBlur:w.blur,topClick:w.click,topContextMenu:w.contextMenu,topCopy:w.copy,topCut:w.cut,topDoubleClick:w.doubleClick,topDrag:w.drag,topDragEnd:w.dragEnd,topDragEnter:w.dragEnter,topDragExit:w.dragExit,topDragLeave:w.dragLeave,topDragOver:w.dragOver,topDragStart:w.dragStart,topDrop:w.drop,topError:w.error,topFocus:w.focus,topInput:w.input,topKeyDown:w.keyDown,topKeyPress:w.keyPress,topKeyUp:w.keyUp,topLoad:w.load,topMouseDown:w.mouseDown,topMouseMove:w.mouseMove,topMouseOut:w.mouseOut,topMouseOver:w.mouseOver,topMouseUp:w.mouseUp,topPaste:w.paste,topReset:w.reset,topScroll:w.scroll,topSubmit:w.submit,topTouchCancel:w.touchCancel,topTouchEnd:w.touchEnd,topTouchMove:w.touchMove,topTouchStart:w.touchStart,topWheel:w.wheel};for(var T in E)E[T].dependencies=[T];var x={eventTypes:w,executeDispatch:function(e,n,r){var i=o.executeDispatch(e,n,r);"production"!==t.env.NODE_ENV?g("boolean"!=typeof i,"Returning `false` from an event handler is deprecated and will be ignored in a future release. Instead, manually call e.stopPropagation() or e.preventDefault(), as appropriate."):null,i===!1&&(e.stopPropagation(),e.preventDefault())},extractEvents:function(e,n,r,o){var y=E[e];if(!y)return null;var g;switch(e){case b.topInput:case b.topLoad:case b.topError:case b.topReset:case b.topSubmit:g=a;break;case b.topKeyPress:if(0===m(o))return null;case b.topKeyDown:case b.topKeyUp:g=c;break;case b.topBlur:case b.topFocus:g=u;break;case b.topClick:if(2===o.button)return null;case b.topContextMenu:case b.topDoubleClick:case b.topMouseDown:case b.topMouseMove:case b.topMouseOut:case b.topMouseOver:case b.topMouseUp:g=l;break;case b.topDrag:case b.topDragEnd:case b.topDragEnter:case b.topDragExit:case b.topDragLeave:case b.topDragOver:case b.topDragStart:case b.topDrop:g=p;break;case b.topTouchCancel:case b.topTouchEnd:case b.topTouchMove:case b.topTouchStart:g=h;break;case b.topScroll:g=d;break;case b.topWheel:g=f;break;case b.topCopy:case b.topCut:case b.topPaste:g=s}"production"!==t.env.NODE_ENV?v(g,"SimpleEventPlugin: Unhandled event type, `%s`.",e):v(g);var w=g.getPooled(y,r,o);return i.accumulateTwoPhaseDispatches(w),w}};e.exports=x}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(28),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(28),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(68),i={dataTransfer:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(40),i={relatedTarget:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(28),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(40),i=n(90),s=n(299),a=n(91),u={key:s,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:a,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,u),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(40),i=n(91),s={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(68),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),e.exports=r},function(e,t){"use strict";function n(e){for(var t=1,n=0,o=0;o<e.length;o++)t=(t+e.charCodeAt(o))%r,n=(n+t)%r;return t|n<<16}var r=65521;e.exports=n},function(e,t){function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=n(291),i=/^-ms-/;e.exports=r},function(e,t,n){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function o(e){return r(e)?Array.isArray(e)?e.slice():i(e):[e]}var i=n(313);e.exports=o},function(e,t,n){(function(t){"use strict";function r(e){var n=i.createFactory(e),r=o.createClass({tagName:e.toUpperCase(),displayName:"ReactFullPageComponent"+e,componentWillUnmount:function(){"production"!==t.env.NODE_ENV?s(!1,"%s tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) 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 <script> element rendered."):u(n),s(h).forEach(n));for(var d=s(o.childNodes);o.lastChild;)o.removeChild(o.lastChild);return d}var i=n(12),s=n(293),a=n(149),u=n(2),c=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;e.exports=o}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?o(i,"React.addons.classSet will be deprecated in a future version. See http://fb.me/react-addons-classset";):null,i=!0),"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).join(" "):Array.prototype.join.call(arguments," ")}var o=n(9),i=!1;e.exports=r}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||i.hasOwnProperty(e)&&i[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var o=n(127),i=o.isUnitlessNumber;e.exports=r},function(e,t,n){(function(t){"use strict";function r(e,n,r){var o=e,i=!o.hasOwnProperty(r);"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?s(i,"flattenChildren(...): 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),i&&null!=n&&(o[r]=n)}function o(e){if(null==e)return e;var t={};return i(e,r,t),t}var i=n(155),s=n(9);e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?s[e.keyCode]||"Unidentified":""}var o=n(90),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},s={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var o=n(e),i=0,s=0;o;){if(3===o.nodeType){if(s=i+o.textContent.length,t>=i&&s>=t)return{node:o,offset:t-i};i=s}o=n(r(o))}}e.exports=o},function(e,t){"use strict";function n(e){return e?e.nodeType===r?e.documentElement:e.firstChild:null}var r=9;e.exports=n},function(e,t){"use strict";function n(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(303),i=/^ms-/;e.exports=r},function(e,t,n){function r(e){return o(e)&&3==e.nodeType}var o=n(151);e.exports=r},function(e,t){"use strict";function n(e){e||(e="");var t,n=arguments.length;if(n>1)for(var r=1;n>r;r++)t=arguments[r],t&&(e=(e?e+" ":"")+t);return e}e.exports=n},function(e,t){"use strict";function n(e,t,n){if(!e)return null;var o={};for(var i in e)r.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o}var r=Object.prototype.hasOwnProperty;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){"use strict";var r,o=n(12);o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),e.exports=r||{}},function(e,t,n){var r=n(309);r&&r.now||(r=Date);var o=r.now.bind(r);e.exports=o},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(70);e.exports=r},function(e,t,n){"use strict";var r=n(12),o=n(70),i=n(95),s=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(s=function(e,t){i(e,o(t))})),e.exports=s},function(e,t,n){(function(t){function r(e){var n=e.length;if("production"!==t.env.NODE_ENV?o(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e),"toArray: Array-like object expected"):o(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e)),"production"!==t.env.NODE_ENV?o("number"==typeof n,"toArray: Object needs a length property"):o("number"==typeof n),"production"!==t.env.NODE_ENV?o(0===n||n-1 in e,"toArray: Object should have keys for indices"):o(0===n||n-1 in e),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(r){}for(var i=Array(n),s=0;n>s;s++)i[s]=e[s];return i}var o=n(2);e.exports=r}).call(t,n(1))},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(e){return function(){try{return e.apply(this,arguments)}catch(t){return Xe.e=t,Xe}}}function c(e){throw e}function l(e,t){if(Ze&&t.stack&&"object"==typeof e&&null!==e&&e.stack&&-1===e.stack.indexOf(nt)){for(var n=[],r=t;r;r=r.source)r.stack&&n.unshift(r.stack);n.unshift(e.stack);var o=n.join("\n"+nt+"\n");e.stack=p(o)}}function p(e){for(var t=e.split("\n"),n=[],r=0,o=t.length;o>r;r++){var i=t[r];h(i)||d(i)||!i||n.push(i)}return n.join("\n")}function h(e){var t=m(e);if(!t)return!1;var n=t[0],r=t[1];return n===et&&r>=tt&&uo>=r}function d(e){return-1!==e.indexOf("(module.js:")||-1!==e.indexOf("(node.js:")}function f(){if(Ze)try{throw new Error}catch(e){var t=e.stack.split("\n"),n=t[0].indexOf("@")>0?t[1]:t[2],r=m(n);if(!r)return;return et=r[0],r[1]}}function m(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 v(e){var t=[];if(!Ft(e))return t;Lt.nonEnumArgs&&e.length&&Ut(e)&&(e=Vt.call(e));var n=Lt.enumPrototypes&&"function"==typeof e,r=Lt.enumErrorProps&&(e===kt||e instanceof Error);for(var o in e)n&&"prototype"==o||r&&("message"==o||"name"==o)||t.push(o);if(Lt.nonEnumShadows&&e!==Mt){var i=e.constructor,s=-1,a=yt;if(e===(i&&i.prototype))var u=e===At?Nt:e===kt?Tt:Ot.call(e),c=jt[u];for(;++s<a;)o=vt[s],c&&c[o]||!Dt.call(e,o)||t.push(o)}return t}function y(e,t,n){for(var r=-1,o=n(e),i=o.length;++r<i;){var s=o[r];if(t(e[s],s,e)===!1)break}return e}function g(e,t){return y(e,t,v)}function b(e){return"function"!=typeof e.toString&&"string"==typeof(e+"")}function w(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;var o=typeof e,i=typeof t;if(e===e&&(null==e||null==t||"function"!=o&&"object"!=o&&"function"!=i&&"object"!=i))return!1;var s=Ot.call(e),a=Ot.call(t);if(s==gt&&(s=_t),a==gt&&(a=_t),s!=a)return!1;switch(s){case wt:case Et:return+e==+t;case Ct:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case St:case Nt:return e==String(t)}var u=s==bt;if(!u){if(s!=_t||!Lt.nodeClass&&(b(e)||b(t)))return!1;var c=!Lt.argsObject&&Ut(e)?Object:e.constructor,l=!Lt.argsObject&&Ut(t)?Object:t.constructor;if(!(c==l||Dt.call(e,"constructor")&&Dt.call(t,"constructor")||Qe(c)&&c instanceof c&&Qe(l)&&l instanceof l||!("constructor"in e&&"constructor"in t)))return!1}n||(n=[]),r||(r=[]);for(var p=n.length;p--;)if(n[p]==e)return r[p]==t;var h=0,d=!0;if(n.push(e),r.push(t),u){if(p=e.length,h=t.length,d=h==p)for(;h--;){var f=t[h];if(!(d=w(e[h],f,n,r)))break}}else g(t,function(t,o,i){return Dt.call(i,o)?(h++,d=Dt.call(e,o)&&w(e[o],t,n,r)):void 0}),d&&g(e,function(e,t,n){return Dt.call(n,t)?d=--h>-1:void 0});return n.pop(),r.pop(),d}function E(e,t){for(var n=new Array(e),r=0;e>r;r++)n[r]=t();return n}function T(e,t){this.id=e,this.value=t}function x(e,t){this.scheduler=e,this.disposable=t,this.isDisposed=!1}function C(e,t){t.isDisposed||(t.isDisposed=!0,t.disposable.dispose())}function _(e){this._s=e}function S(e){this._s=e,this._l=e.length,this._i=0}function N(e){this._a=e}function O(e){this._a=e,this._l=M(e),this._i=0}function D(e){return"number"==typeof e&&We.isFinite(e)}function P(e){var t,n=e[lt];if(!n&&"string"==typeof e)return t=new _(e),t[lt]();if(!n&&e.length!==s)return t=new N(e),t[lt]();if(!n)throw new TypeError("Object is not iterable");return e[lt]()}function k(e){var t=+e;return 0===t?t:isNaN(t)?t:0>t?-1:1}function M(e){var t=+e.length;return isNaN(t)?0:0!==t&&D(t)?(t=k(t)*Math.floor(Math.abs(t)),0>=t?0:t>Qn?Qn:t):t}function A(e,t){this.observer=e,this.parent=t}function R(e,t){return an(e)||(e=hn),new $n(t,e)}function I(e,t){this.observer=e,this.parent=t}function j(e,t){this.observer=e,this.parent=t}function L(e,t){return e.amb(t)}function F(e,t){return new no(function(n){var r=new en,o=new tn;return o.setDisposable(r),r.setDisposable(e.subscribe(new cr(n,o,t))),o},e)}function U(){return!1}function W(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function U(){return!1}function U(){return!1}function V(){return[]}function W(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function U(){return!1}function V(){return[]}function W(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function B(e){return function(t){return e.subscribe(t)}}function q(e){return e.toArray()}function z(e){return e.length>0}function K(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 H(e,t,n){var r=mt(t,n,3);return e.map(function(t,n){var o=r(t,n,e);return Ye(o)&&(o=Vn(o)),(dt(o)||ht(o))&&(o=Xn(o)),o}).concatAll()}function G(e,t,n){for(var r=0,o=e.length;o>r;r++)if(n(e[r],t))return r;return-1}function Y(e){this.comparer=e,this.set=[]}function Q(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 X(e,t,n){return new no(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 $(e){if(0===e.length)throw new rt;return e[0]}function Z(e,t,n,r){var o=mt(t,n,3);return new no(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 J(e){return e?Pn.isObservable(e)?e:Ye(e)?Pn.fromPromise(e):oe(e)||re(e)?jr.call(this,e):Qe(e)?ne.call(this,e):dt(e)||ht(e)?ee.call(this,e):Ft(e)?te.call(this,e):e:e}function ee(e){return Pn.from(e).flatMap(J).toArray()}function te(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=J.call(this,e[u]);c&&Pn.isObservable(c)?t(c,u):n[u]=e[u]}return Pn.forkJoin.apply(Pn,o).map(function(){return n})}function ne(e){var t=this;return new no(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 re(e){return Qe(e.next)&&Qe(e["throw"])}function oe(e){var t=e.constructor;return t?"GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName?!0:re(t.prototype):!1}function ie(e,t,n,r){var o=new so;return r.push(se(o,t,n)),e.apply(t,r),o.asObservable()}function se(e,t,n){return function(){for(var r=arguments.length,o=new Array(r),i=0;r>i;i++)o[i]=arguments[i];if(Qe(n)){if(o=$e(n).apply(t,o),o===Xe)return e.onError(o.e);e.onNext(o)}else o.length<=1?e.onNext(o[0]):e.onNext(o);e.onCompleted()}}function ae(e,t,n,r){var o=new so;return r.push(ue(o,t,n)),e.apply(t,r),o.asObservable()}function ue(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(Qe(n)){var i=$e(n).apply(t,i);if(i===Xe)return e.onError(i.e);e.onNext(i)}else i.length<=1?e.onNext(i[0]):e.onNext(i);e.onCompleted()}}function ce(e,t,n){this._e=e,this._n=t,this._fn=n,this._e.addEventListener(this._n,this._fn,!1),this.isDisposed=!1}function le(e,t,n){var r=new Gt,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(le(e.item(i),t,n));else e&&r.add(new ce(e,t,n));return r}function pe(e,t){return function(){var n=arguments[0];return Qe(t)&&(n=$e(t).apply(null,arguments),n===Xe)?e.onError(n.e):void e.onNext(n)}}function he(e,t,n){return new no(function(r){function o(e,t){if(c[t]=e,s[t]=!0,a||(a=s.every(qe))){if(i)return r.onError(i);var o=$e(n).apply(null,c);if(o===Xe)return r.onError(o.e);r.onNext(o)}u&&c[1]&&r.onCompleted()}var i,s=[!1,!1],a=!1,u=!1,c=new Array(2);return new Gt(e.subscribe(function(e){o(e,0)},function(e){c[1]?r.onError(e):i=e},function(){u=!0,c[1]&&r.onCompleted()}),t.subscribe(function(e){o(e,1)},function(e){r.onError(e)},function(){u=!0,o(!0,1)}))},e)}function q(e){return e.toArray()}function de(e,t){return e.groupJoin(this,t,Hn,function(e,t){return t})}function fe(e){var t=this;return new no(function(n){var r=new io,o=new Gt,i=new nn(o);return n.onNext(zt(r,i)),o.add(t.subscribe(function(e){r.onNext(e)},function(e){r.onError(e),n.onError(e)},function(){r.onCompleted(),n.onCompleted()})),Ye(e)&&(e=Vn(e)),o.add(e.subscribe(function(e){r.onCompleted(),r=new io,n.onNext(zt(r,i))},function(e){r.onError(e),n.onError(e)},function(){r.onCompleted(),n.onCompleted()})),i},t)}function me(e){var t=this;return new no(function(n){function r(){var t;try{t=e()}catch(i){return void n.onError(i)}Ye(t)&&(t=Vn(t));var u=new en;o.setDisposable(u),u.setDisposable(t.take(1).subscribe(Be,function(e){a.onError(e),n.onError(e)},function(){a.onCompleted(),a=new io,n.onNext(zt(a,s)),r()}))}var o=new tn,i=new Gt(o),s=new nn(i),a=new io;return n.onNext(zt(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 ve(e,t){return new Qr(e,t)}function ye(e){this.patterns=e}function ge(e,t){this.expression=e,this.selector=t}function be(e,t,n){var r=e.get(t);if(!r){var o=new Jr(t,n);return e.set(t,o),o}return r}function we(e,t,n){this.joinObserverArray=e,this.onNext=t,this.onCompleted=n,this.joinObservers=new Zr;for(var r=0,o=this.joinObserverArray.length;o>r;r++){var i=this.joinObserverArray[r];this.joinObservers.set(i,i)}}function Ee(e,t){return new no(function(n){return t.scheduleWithAbsolute(e,function(){n.onNext(0),n.onCompleted()})})}function Te(e,t,n){return new no(function(r){var o=e,i=sn(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 xe(e,t){return new no(function(n){return t.scheduleWithRelative(sn(e),function(){n.onNext(0),n.onCompleted()})})}function Ce(e,t,n){return e===t?new no(function(e){return n.schedulePeriodicWithState(0,t,function(t){return e.onNext(t),t+1})}):qn(function(){return Te(n.now()+e,t,n);
-})}function _e(e,t,n){return new no(function(r){var o,i=!1,s=new tn,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 en,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 Gt(o,s)},e)}function Se(e,t,n){return qn(function(){return _e(e,t-n.now(),n)})}function Ne(e,t,n){var r,o;return Qe(t)?o=t:(r=t,o=n),new no(function(t){function n(){u.setDisposable(e.subscribe(function(e){var n=$e(o)(e);if(n===Xe)return t.onError(n.e);var r=new en;s.add(r),r.setDisposable(n.subscribe(function(){t.onNext(e),s.remove(r),i()},function(e){t.onError(e)},function(){t.onNext(e),s.remove(r),i()}))},function(e){t.onError(e)},function(){a=!0,u.dispose(),i()}))}function i(){a&&0===s.length&&t.onCompleted()}var s=new Gt,a=!1,u=new tn;return r?u.setDisposable(r.subscribe(n,function(e){t.onError(e)},n)):n(),new Gt(u,s)},this)}function Oe(e,t,n){return an(n)||(n=vn),new no(function(r){var o,i=new tn,s=!1,a=0,u=e.subscribe(function(e){s=!0,o=e,a++;var u=a,c=new en;i.setDisposable(c),c.setDisposable(n.scheduleWithRelative(t,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 Gt(u,i)},this)}function De(e,t){return new no(function(n){var r,o=!1,i=new tn,s=0,a=e.subscribe(function(e){var a=$e(t)(e);if(a===Xe)return n.onError(a.e);Ye(a)&&(a=Vn(a)),o=!0,r=e,s++;var u=s,c=new en;i.setDisposable(c),c.setDisposable(a.subscribe(function(){o&&s===u&&n.onNext(r),o=!1,c.dispose()},function(e){n.onError(e)},function(){o&&s===u&&n.onNext(r),o=!1,c.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 Gt(a,i)},e)}function q(e){return e.toArray()}function q(e){return e.toArray()}function Pe(e,t){return new no(function(n){function r(){s&&(s=!1,n.onNext(o)),i&&n.onCompleted()}var o,i=!1,s=!1,a=new en;return a.setDisposable(e.subscribe(function(e){s=!0,o=e},function(e){n.onError(e)},function(){i=!0,a.dispose()})),new Gt(a,t.subscribe(r,function(e){n.onError(e)},r))},e)}function ke(e,t,n,r){return Qe(t)&&(r=n,n=t,t=tr()),r||(r=ur(new to)),new no(function(o){function i(e){var t=l,n=new en;u.setDisposable(n),n.setDisposable(e.subscribe(function(){l===t&&a.setDisposable(r.subscribe(o)),n.dispose()},function(e){l===t&&o.onError(e)},function(){l===t&&a.setDisposable(r.subscribe(o))}))}function s(){var e=!p;return e&&l++,e}var a=new tn,u=new tn,c=new en;a.setDisposable(c);var l=0,p=!1;return i(t),c.setDisposable(e.subscribe(function(e){if(s()){o.onNext(e);var t=$e(n)(e);if(t===Xe)return o.onError(t.e);i(Ye(t)?Vn(t):t)}},function(e){s()&&o.onError(e)},function(){s()&&o.onCompleted()})),new Gt(a,u)},e)}function Me(e,t,n,r){if(null==n)throw new Error("other or scheduler must be specified");an(n)&&(r=n,n=ur(new to)),n instanceof Error&&(n=ur(n)),an(r)||(r=vn);var o=t instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new no(function(i){function s(){var e=a;p.setDisposable(r[o](t,function(){a===e&&(Ye(n)&&(n=Vn(n)),c.setDisposable(n.subscribe(i)))}))}var a=0,u=new en,c=new tn,l=!1,p=new tn;return c.setDisposable(u),s(),u.setDisposable(e.subscribe(function(e){l||(a++,i.onNext(e),s())},function(e){l||(a++,i.onError(e))},function(){l||(a++,i.onCompleted())})),new Gt(c,p)},e)}var Ae={"function":!0,object:!0},Re=Ae[typeof t]&&t&&!t.nodeType&&t,Ie=Ae[typeof self]&&self.Object&&self,je=Ae[typeof window]&&window&&window.Object&&window,Le=Ae[typeof e]&&e&&!e.nodeType&&e,Fe=Le&&Le.exports===Re&&Re,Ue=Re&&Le&&"object"==typeof o&&o&&o.Object&&o,We=We=Ue||je!==(this&&this.window)&&je||Ie||this,Ve={internals:{},config:{Promise:We.Promise},helpers:{}},Be=Ve.helpers.noop=function(){},qe=Ve.helpers.identity=function(e){return e},ze=Ve.helpers.defaultNow=Date.now,Ke=Ve.helpers.defaultComparer=function(e,t){return Wt(e,t)},He=Ve.helpers.defaultSubComparer=function(e,t){return e>t?1:t>e?-1:0},Ge=(Ve.helpers.defaultKeySerializer=function(e){return e.toString()},Ve.helpers.defaultError=function(e){throw e}),Ye=Ve.helpers.isPromise=function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then},Qe=Ve.helpers.isFunction=function(){var e=function(e){return"function"==typeof e||!1};return e(/x/)&&(e=function(e){return"function"==typeof e&&"[object Function]"==Ot.call(e)}),e}(),Xe={e:{}},$e=Ve.internals.tryCatch=function(e){if(!Qe(e))throw new TypeError("fn must be a function");return u(e)};Ve.config.longStackSupport=!1;var Ze=!1,Je=$e(function(){throw new Error})();Ze=!!Je.e&&!!Je.e.stack;var et,tt=f(),nt="From previous event:",rt=Ve.EmptyError=function(){this.message="Sequence contains no elements.",this.name="EmptyError",Error.call(this)};rt.prototype=Object.create(Error.prototype);var ot=Ve.ObjectDisposedError=function(){this.message="Object has been disposed",this.name="ObjectDisposedError",Error.call(this)};ot.prototype=Object.create(Error.prototype);var it=Ve.ArgumentOutOfRangeError=function(){this.message="Argument out of range",this.name="ArgumentOutOfRangeError",Error.call(this)};it.prototype=Object.create(Error.prototype);var st=Ve.NotSupportedError=function(e){this.message=e||"This operation is not supported",this.name="NotSupportedError",Error.call(this)};st.prototype=Object.create(Error.prototype);var at=Ve.NotImplementedError=function(e){this.message=e||"This operation is not implemented",this.name="NotImplementedError",Error.call(this)};at.prototype=Object.create(Error.prototype);var ut=Ve.helpers.notImplemented=function(){throw new at},ct=Ve.helpers.notSupported=function(){throw new st},lt="function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_";We.Set&&"function"==typeof(new We.Set)["@@iterator"]&&(lt="@@iterator");var pt=Ve.doneEnumerator={done:!0,value:s},ht=Ve.helpers.isIterable=function(e){return e[lt]!==s},dt=Ve.helpers.isArrayLike=function(e){return e&&e.length!==s};Ve.helpers.iterator=lt;var ft,mt=Ve.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)}},vt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],yt=vt.length,gt="[object Arguments]",bt="[object Array]",wt="[object Boolean]",Et="[object Date]",Tt="[object Error]",xt="[object Function]",Ct="[object Number]",_t="[object Object]",St="[object RegExp]",Nt="[object String]",Ot=Object.prototype.toString,Dt=Object.prototype.hasOwnProperty,Pt=Ot.call(arguments)==gt,kt=Error.prototype,Mt=Object.prototype,At=String.prototype,Rt=Mt.propertyIsEnumerable;try{ft=!(Ot.call(document)==_t&&!({toString:0}+""))}catch(It){ft=!0}var jt={};jt[bt]=jt[Et]=jt[Ct]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},jt[wt]=jt[Nt]={constructor:!0,toString:!0,valueOf:!0},jt[Tt]=jt[xt]=jt[St]={constructor:!0,toString:!0},jt[_t]={constructor:!0};var Lt={};!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);Lt.enumErrorProps=Rt.call(kt,"message")||Rt.call(kt,"name"),Lt.enumPrototypes=Rt.call(e,"prototype"),Lt.nonEnumArgs=0!=n,Lt.nonEnumShadows=!/valueOf/.test(t)}(1);var Ft=Ve.internals.isObject=function(e){var t=typeof e;return e&&("function"==t||"object"==t)||!1},Ut=function(e){return e&&"object"==typeof e?Ot.call(e)==gt:!1};Pt||(Ut=function(e){return e&&"object"==typeof e?Dt.call(e,"callee"):!1});var Wt=Ve.internals.isEqual=function(e,t){return w(e,t,[],[])},Vt=({}.hasOwnProperty,Array.prototype.slice),Bt=Ve.internals.inherits=function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n},qt=Ve.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]}},zt=Ve.internals.addRef=function(e,t){return new no(function(n){return new Gt(t.getDisposable(),e.subscribe(n))})};T.prototype.compareTo=function(e){var t=this.value.compareTo(e.value);return 0===t&&(t=this.id-e.id),t};var Kt=Ve.internals.PriorityQueue=function(e){this.items=new Array(e),this.length=0},Ht=Kt.prototype;Ht.isHigherPriority=function(e,t){return this.items[e].compareTo(this.items[t])<0},Ht.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)}}},Ht.heapify=function(e){if(+e||(e=0),!(e>=this.length||0>e)){var t=2*e+1,n=2*e+2,r=e;if(t<this.length&&this.isHigherPriority(t,r)&&(r=t),n<this.length&&this.isHigherPriority(n,r)&&(r=n),r!==e){var o=this.items[e];this.items[e]=this.items[r],this.items[r]=o,this.heapify(r)}}},Ht.peek=function(){return this.items[0].value},Ht.removeAt=function(e){this.items[e]=this.items[--this.length],this.items[this.length]=s,this.heapify()},Ht.dequeue=function(){var e=this.peek();return this.removeAt(0),e},Ht.enqueue=function(e){var t=this.length++;this.items[t]=new T(Kt.count++,e),this.percolate(t)},Ht.remove=function(e){for(var t=0;t<this.length;t++)if(this.items[t].value===e)return this.removeAt(t),!0;return!1},Kt.count=0;var Gt=Ve.CompositeDisposable=function(){var e,t,n=[];if(Array.isArray(arguments[0]))n=arguments[0],t=n.length;else for(t=arguments.length,n=new Array(t),e=0;t>e;e++)n[e]=arguments[e];for(e=0;t>e;e++)if(!Zt(n[e]))throw new TypeError("Not a disposable");this.disposables=n,this.isDisposed=!1,this.length=n.length},Yt=Gt.prototype;Yt.add=function(e){this.isDisposed?e.dispose():(this.disposables.push(e),this.length++)},Yt.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},Yt.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 Qt=Ve.Disposable=function(e){this.isDisposed=!1,this.action=e||Be};Qt.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)};var Xt=Qt.create=function(e){return new Qt(e)},$t=Qt.empty={dispose:Be},Zt=Qt.isDisposable=function(e){return e&&Qe(e.dispose)},Jt=Qt.checkDisposed=function(e){if(e.isDisposed)throw new ot},en=Ve.SingleAssignmentDisposable=function(){this.isDisposed=!1,this.current=null};en.prototype.getDisposable=function(){return this.current},en.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()},en.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null}e&&e.dispose()};var tn=Ve.SerialDisposable=function(){this.isDisposed=!1,this.current=null};tn.prototype.getDisposable=function(){return this.current},tn.prototype.setDisposable=function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e}n&&n.dispose(),t&&e&&e.dispose()},tn.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null}e&&e.dispose()};var nn=Ve.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?$t:new e(this)},t}();x.prototype.dispose=function(){this.scheduler.scheduleWithState(this,C)};var rn=Ve.internals.ScheduledItem=function(e,t,n,r,o){this.scheduler=e,this.state=t,this.action=n,this.dueTime=r,this.comparer=o||He,this.disposable=new en};rn.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},rn.prototype.compareTo=function(e){return this.comparer(this.dueTime,e.dueTime)},rn.prototype.isCancelled=function(){return this.disposable.isDisposed},rn.prototype.invokeCore=function(){return this.action(this.scheduler,this.state)};var on=Ve.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(),$t}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=ze,e.normalize=function(e){return 0>e&&(e=0),e},e}(),sn=on.normalize,an=on.isScheduler;!function(e){function t(e,t){function n(t){function r(e,t){return s?i.remove(u):a=!0,o(t,n),$t}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 Gt;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),$t}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 Gt;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)}}(on.prototype),function(e){on.prototype.schedulePeriodic=function(e,t){return this.schedulePeriodicWithState(null,e,t)},on.prototype.schedulePeriodicWithState=function(e,t,n){if("undefined"==typeof We.setInterval)throw new st;t=sn(t);var r=e,o=We.setInterval(function(){r=n(r)},t);return Xt(function(){We.clearInterval(o)})}}(on.prototype),function(e){e.catchError=e["catch"]=function(e){return new yn(this,e)}}(on.prototype);var un,cn,ln=Ve.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 en;return this._cancel=t,t.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0,this._period,e.bind(this))),t},t}(),pn=on.immediate=function(){function e(e,t){return t(this,e)}return new on(ze,e,ct,ct)}(),hn=on.currentThread=function(){function e(){for(;n.length>0;){var e=n.shift();!e.isCancelled()&&e.invoke()}}function t(t,r){var o=new rn(this,t,r,this.now());if(n)n.push(o);else{n=[o];var i=$e(e)();if(n=null,i===Xe)return c(i.e)}return o.disposable}var n,r=new on(ze,t,ct,ct);return r.scheduleRequired=function(){return!n},r}(),dn=function(){var e,t=Be;if(We.setTimeout)e=We.setTimeout,t=We.clearTimeout;else{if(!We.WScript)throw new st;e=function(e,t){We.WScript.Sleep(t),e()}}return{setTimeout:e,clearTimeout:t}}(),fn=dn.setTimeout,mn=dn.clearTimeout;!function(){function e(t){if(s)fn(function(){e(t)},0);else{var n=o[t];if(n){s=!0;var r=$e(n)();if(cn(t),s=!1,r===Xe)return c(r.e)}}}function t(){if(!We.postMessage||We.importScripts)return!1;var e=!1,t=We.onmessage;return We.onmessage=function(){e=!0},We.postMessage("","*"),We.onmessage=t,e}function n(t){"string"==typeof t.data&&t.data.substring(0,l.length)===l&&e(t.data.substring(l.length))}var r=1,o={},s=!1;cn=function(e){delete o[e]};var a=RegExp("^"+String(Ot).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),u="function"==typeof(u=Ue&&Fe&&Ue.setImmediate)&&!a.test(u)&&u;if(Qe(u))un=function(t){var n=r++;return o[n]=t,u(function(){e(n)}),n};else if("undefined"!=typeof i&&"[object process]"==={}.toString.call(i))un=function(t){var n=r++;return o[n]=t,i.nextTick(function(){e(n)}),n};else if(t()){var l="ms.rx.schedule"+Math.random();We.addEventListener?We.addEventListener("message",n,!1):We.attachEvent?We.attachEvent("onmessage",n):We.onmessage=n,un=function(e){var t=r++;return o[t]=e,We.postMessage(l+currentId,"*"),t}}else if(We.MessageChannel){var p=new We.MessageChannel;p.port1.onmessage=function(t){e(t.data)},un=function(e){var t=r++;return o[t]=e,p.port2.postMessage(t),t}}else un="document"in We&&"onreadystatechange"in We.document.createElement("script")?function(t){var n=We.document.createElement("script"),i=r++;return o[i]=t,n.onreadystatechange=function(){e(i),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},We.document.documentElement.appendChild(n),i}:function(t){var n=r++;return o[n]=t,fn(function(){e(n)},0),n}}();var vn=on.timeout=on["default"]=function(){function e(e,t){var n=this,r=new en,o=un(function(){!r.isDisposed&&r.setDisposable(t(n,e))});return new Gt(r,Xt(function(){cn(o)}))}function t(e,t,n){var r=this,o=on.normalize(t),i=new en;if(0===o)return r.scheduleWithState(e,n);var s=fn(function(){!i.isDisposed&&i.setDisposable(n(r,e))},o);return new Gt(i,Xt(function(){mn(s)}))}function n(e,t,n){return this.scheduleWithRelativeAndState(e,t-this.now(),n)}return new on(ze,e,t,n)}(),yn=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 Bt(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 $t}}},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 en;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}(on),gn=Ve.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 an(e)||(e=pn),new no(function(n){return e.scheduleWithState(t,function(e,t){t._acceptObservable(n),"N"===t.kind&&n.onCompleted()})})},e}(),bn=gn.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 gn("N",r,null,e,t,n)}}(),wn=gn.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 gn("E",null,r,e,t,n)}}(),En=gn.createOnCompleted=function(){function e(e,t,n){return n()}function t(e){return e.onCompleted()}function n(){return"OnCompleted()"}return function(){return new gn("C",null,null,e,t,n)}}(),Tn=Ve.Observer=function(){};Tn.prototype.toNotifier=function(){var e=this;return function(t){return t.accept(e)}},Tn.prototype.asObserver=function(){var e=this;return new Sn(function(t){e.onNext(t)},function(t){e.onError(t)},function(){e.onCompleted()})},Tn.prototype.checked=function(){return new Nn(this)};var xn=Tn.create=function(e,t,n){return e||(e=Be),t||(t=Ge),n||(n=Be),new Sn(e,t,n)};Tn.fromNotifier=function(e,t){var n=mt(e,t,1);return new Sn(function(e){return n(bn(e))},function(e){return n(wn(e))},function(){return n(En())})},Tn.prototype.notifyOn=function(e){return new Dn(e,this)},Tn.prototype.makeSafe=function(e){return new AnonymousSafeObserver(this._onNext,this._onError,this._onCompleted,e)};var Cn,_n=Ve.internals.AbstractObserver=function(e){function t(){this.isStopped=!1}return Bt(t,e),t.prototype.next=ut,t.prototype.error=ut,t.prototype.completed=ut,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}(Tn),Sn=Ve.AnonymousObserver=function(e){function t(t,n,r){e.call(this),this._onNext=t,this._onError=n,this._onCompleted=r}return Bt(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}(_n),Nn=function(e){function t(t){e.call(this),this._observer=t,this._state=0}Bt(t,e);var n=t.prototype;return n.onNext=function(e){this.checkAccess();var t=$e(this._observer.onNext).call(this._observer,e);this._state=0,t===Xe&&c(t.e)},n.onError=function(e){this.checkAccess();var t=$e(this._observer.onError).call(this._observer,e);this._state=2,t===Xe&&c(t.e)},n.onCompleted=function(){this.checkAccess();var e=$e(this._observer.onCompleted).call(this._observer);this._state=2,e===Xe&&c(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}(Tn),On=Ve.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 tn}return Bt(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=$e(n)();return r===Xe?(e.queue=[],e.hasFaulted=!0,c(r.e)):void t(e)}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.disposable.dispose()},t}(_n),Dn=function(e){function t(t,n,r){e.call(this,t,n),this._cancel=r}return Bt(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}(On),Pn=Ve.Observable=function(){function e(e,t){return function(n){var r=n.onError;return n.onError=function(t){l(t,e),r.call(n,t)},t.call(e,n)}}function t(t){if(Ve.config.longStackSupport&&Ze){var n=$e(c)(new Error).e;this.stack=n.stack.substring(n.stack.indexOf("\n")+1),this._subscribe=e(this,t)}else this._subscribe=t}return Cn=t.prototype,t.isObservable=function(e){return e&&Qe(e.subscribe)},Cn.subscribe=Cn.forEach=function(e,t,n){return this._subscribe("object"==typeof e?e:xn(e,t,n))},Cn.subscribeOnNext=function(e,t){return this._subscribe(xn("undefined"!=typeof t?function(n){e.call(t,n)}:e))},Cn.subscribeOnError=function(e,t){return this._subscribe(xn(null,"undefined"!=typeof t?function(n){e.call(t,n)}:e))},Cn.subscribeOnCompleted=function(e,t){return this._subscribe(xn(null,null,"undefined"!=typeof t?function(){e.call(t)}:e))},t}(),kn=Ve.ObservableBase=function(e){function t(e){return e&&Qe(e.dispose)?e:Qe(e)?Xt(e):$t}function n(e,n){var r=n[0],o=n[1],i=$e(o.subscribeCore).call(o,r);return i!==Xe||r.fail(Xe.e)?void r.setDisposable(t(i)):c(Xe.e)}function r(e){var t=new ro(e),r=[t,this];return hn.scheduleRequired()?hn.scheduleWithState(r,n):n(null,r),t}function o(){e.call(this,r)}return Bt(o,e),o.prototype.subscribeCore=ut,o}(Pn),Mn=function(e){function t(t,n,r,o){this.resultSelector=Ve.helpers.isFunction(r)?r:null,this.selector=Ve.internals.bindCallback(Ve.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 Bt(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=$e(this.selector)(e,t,this.source);if(n===Xe)return this.o.onError(n.e);Ve.helpers.isPromise(n)&&(n=Ve.Observable.fromPromise(n)),(Ve.helpers.isArrayLike(n)||Ve.helpers.isIterable(n))&&(n=Ve.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}(kn),An=Ve.internals.Enumerable=function(){},Rn=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 Bt(t,e),t.prototype.subscribeCore=function(e){var t,r=new tn,o=pn.scheduleRecursiveWithState(this.sources[lt](),function(o,i){if(!t){var s=$e(o.next).call(o);if(s===Xe)return e.onError(s.e);if(s.done)return e.onCompleted();var a=s.value;Ye(a)&&(a=Vn(a));var u=new en;r.setDisposable(u),u.setDisposable(a.subscribe(new n(e,i,o)))}});return new Gt(r,o,Xt(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}(kn);An.prototype.concat=function(){return new Rn(this)};var In=function(e){function t(t){this.sources=t,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t,n=this.sources[lt](),r=new tn,o=pn.scheduleRecursiveWithState(null,function(o,i){if(!t){var s=$e(n.next).call(n);if(s===Xe)return e.onError(s.e);if(s.done)return null!==o?e.onError(o):e.onCompleted();var a=s.value;Ye(a)&&(a=Vn(a));var u=new en;r.setDisposable(u),u.setDisposable(a.subscribe(function(t){e.onNext(t)},i,function(){e.onCompleted()}))}});return new Gt(r,o,Xt(function(){t=!0}))},t}(kn);An.prototype.catchError=function(){return new In(this)},An.prototype.catchErrorWhen=function(e){var t=this;return new no(function(n){var r,o,i=new io,s=new io,a=e(i),u=a.subscribe(s),c=t[lt](),l=new tn,p=pn.scheduleRecursive(function(e){if(!r){var t=$e(c.next).call(c);if(t===Xe)return n.onError(t.e);if(t.done)return void(o?n.onError(o):n.onCompleted());var a=t.value;Ye(a)&&(a=Vn(a));var u=new en,p=new en;l.setDisposable(new Gt(p,u)),u.setDisposable(a.subscribe(function(e){n.onNext(e)},function(t){p.setDisposable(s.subscribe(e,function(e){n.onError(e)},function(){n.onCompleted()})),i.onNext(t)},function(){n.onCompleted()}))}});return new Gt(u,l,p,Xt(function(){r=!0}))})};var jn=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 Bt(t,e),t.prototype[lt]=function(){return new n(this)},n.prototype.next=function(){return 0===this.l?pt:(this.l>0&&this.l--,{done:!1,value:this.v})},t}(An),Ln=An.repeat=function(e,t){return new jn(e,t)},Fn=function(e){function t(e,t,n){this.s=e,this.fn=t?mt(t,n,3):null}function n(e){this.i=-1,this.s=e.s,this.l=this.s.length,this.fn=e.fn}return Bt(t,e),t.prototype[lt]=function(){return new n(this)},n.prototype.next=function(){return++this.i<this.l?{done:!1,value:this.fn?this.fn(this.s[this.i],this.i,this.s):this.s[this.i]}:pt},t}(An),Un=An.of=function(e,t,n){return new Fn(e,t,n)};Cn.observeOn=function(e){var t=this;return new no(function(n){return t.subscribe(new Dn(e,n))},t)},Cn.subscribeOn=function(e){var t=this;return new no(function(n){var r=new en,o=new tn;return o.setDisposable(r),r.setDisposable(e.schedule(function(){o.setDisposable(new x(e,t.subscribe(n)))})),o},t)};var Wn=function(e){function t(t){this.p=t,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.p.then(function(t){e.onNext(t),e.onCompleted()},function(t){e.onError(t)}),$t},t}(kn),Vn=Pn.fromPromise=function(e){return new Wn(e)};Cn.toPromise=function(e){if(e||(e=Ve.config.Promise),!e)throw new st("Promise type not provided nor in Rx.config.Promise");var t=this;return new e(function(e,n){var r,o=!1;t.subscribe(function(e){r=e,o=!0},n,function(){o&&e(r)})})};var Bn=function(e){function t(t){this.source=t,e.call(this)}function n(e){this.o=e,this.a=[],this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e))},n.prototype.onNext=function(e){this.isStopped||this.a.push(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.o.onNext(this.a),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}(kn);Cn.toArray=function(){return new Bn(this)},Pn.create=function(e,t){return new no(e,t)};var qn=Pn.defer=function(e){return new no(function(t){var n;try{n=e()}catch(r){return ur(r).subscribe(t)}return Ye(n)&&(n=Vn(n)),n.subscribe(t)})},zn=function(e){function t(t){this.scheduler=t,e.call(this)}function n(e,t){this.observer=e,this.scheduler=t}function r(e,t){return t.onCompleted(),$t}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new n(e,this.scheduler);return t.run()},n.prototype.run=function(){return this.scheduler.scheduleWithState(this.observer,r)},t}(kn),Kn=new zn(pn),Hn=Pn.empty=function(e){return an(e)||(e=pn),e===pn?Kn:new zn(e)},Gn=function(e){function t(t,n,r){this.iterable=t,this.mapper=n,this.scheduler=r,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new Yn(e,this);return t.run()},t}(kn),Yn=function(){function e(e,t){this.o=e,this.parent=t}return e.prototype.run=function(){function e(e,t){var i=$e(n.next).call(n);if(i===Xe)return r.onError(i.e);if(i.done)return r.onCompleted();var s=i.value;return Qe(o)&&(s=$e(o)(s,e),
-s===Xe)?r.onError(s.e):(r.onNext(s),void t(e+1))}var t=Object(this.parent.iterable),n=P(t),r=this.o,o=this.parent.mapper;return this.parent.scheduler.scheduleRecursiveWithState(0,e)},e}(),Qn=Math.pow(2,53)-1;_.prototype[lt]=function(){return new S(this._s)},S.prototype[lt]=function(){return this},S.prototype.next=function(){return this._i<this._l?{done:!1,value:this._s.charAt(this._i++)}:pt},N.prototype[lt]=function(){return new O(this._a)},O.prototype[lt]=function(){return this},O.prototype.next=function(){return this._i<this._l?{done:!1,value:this._a[this._i++]}:pt};var Xn=Pn.from=function(e,t,n,r){if(null==e)throw new Error("iterable cannot be null.");if(t&&!Qe(t))throw new Error("mapFn when provided must be a function");if(t)var o=mt(t,n,2);return an(r)||(r=hn),new Gn(e,o,r)},$n=function(e){function t(t,n){this.args=t,this.scheduler=n,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new A(e,this);return t.run()},t}(kn);A.prototype.run=function(){function e(e,o){r>e?(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 Zn=Pn.fromArray=function(e,t){return an(t)||(t=hn),new $n(e,t)};Pn.generate=function(e,t,n,r,o){return an(o)||(o=hn),new no(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()})})},Pn.of=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return new $n(t,hn)},Pn.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 $n(n,e)},Pn.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 no(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)}})},Pn.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 no(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 Jn=function(e){function t(){e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){return $t},t}(kn),er=new Jn,tr=Pn.never=function(){return er},nr=function(e){function t(t,n){this.obj=t,this.keys=Object.keys(t),this.scheduler=n,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new I(e,this);return t.run()},t}(kn);I.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)},Pn.pairs=function(e,t){return t||(t=hn),new nr(e,t)};var rr=function(e){function t(t,n,r){this.start=t,this.rangeCount=n,this.scheduler=r,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new or(e,this);return t.run()},t}(kn),or=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}();Pn.range=function(e,t,n){return an(n)||(n=hn),new rr(e,t,n)};var ir=function(e){function t(t,n,r){this.value=t,this.repeatCount=null==n?-1:n,this.scheduler=r,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new j(e,this);return t.run()},t}(kn);j.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)},Pn.repeat=function(e,t,n){return an(n)||(n=hn),new ir(e,t,n)};var sr=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(),$t}return Bt(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===pn?r(null,e):this.scheduler.scheduleWithState(e,r)},t}(kn),ar=(Pn["return"]=Pn.just=function(e,t){return an(t)||(t=pn),new sr(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 Bt(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}(kn)),ur=Pn["throw"]=function(e,t){return an(t)||(t=pn),new ar(e,t)};Pn.using=function(e,t){return new no(function(n){var r=$t,o=$e(e)();if(o===Xe)return new Gt(ur(o.e).subscribe(n),r);o&&(r=o);var i=$e(t)(o);return i===Xe?new Gt(ur(i.e).subscribe(n),r):new Gt(i.subscribe(n),r)})},Cn.amb=function(e){var t=this;return new no(function(n){function r(){i||(i=s,c.dispose())}function o(){i||(i=a,u.dispose())}var i,s="L",a="R",u=new en,c=new en;Ye(e)&&(e=Vn(e));var l=xn(function(e){r(),i===s&&n.onNext(e)},function(e){r(),i===s&&n.onError(e)},function(){r(),i===s&&n.onCompleted()}),p=xn(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 Gt(u,c)})},Pn.amb=function(){var e,t=tr();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=L(t,e[r]);return t};var cr=function(e){function t(t,n,r){this._o=t,this._s=n,this._fn=r,e.call(this)}return Bt(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=$e(this._fn)(e);if(t===Xe)return this._o.onError(t.e);Ye(t)&&(t=Vn(t));var n=new en;this._s.setDisposable(n),n.setDisposable(t.subscribe(this._o))},t}(_n);Cn["catch"]=function(e){return Qe(e)?F(this,e):lr([this,e])};var lr=Pn["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 Un(e).catchError()};Cn.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),pr.apply(this,t)};var pr=Pn.combineLatest=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=Qe(t[e-1])?t.pop():W;return Array.isArray(t[0])&&(t=t[0]),new no(function(e){function n(t){if(s[t]=!0,a||(a=s.every(qe))){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(qe)&&e.onCompleted()}function o(t){u[t]=!0,u.every(qe)&&e.onCompleted()}for(var i=t.length,s=E(i,U),a=!1,u=E(i,U),c=new Array(i),l=new Array(i),p=0;i>p;p++)!function(r){var i=t[r],s=new en;Ye(i)&&(i=Vn(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 Gt(l)},this)};Cn.concat=function(){for(var e=[],t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return e.unshift(this),dr.apply(null,e)};var hr=function(e){function t(t){this.sources=t,e.call(this)}function n(e,t){this.sources=e,this.o=t}return Bt(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 tn,n=this.sources,r=n.length,o=this.o,i=pn.scheduleRecursiveWithState(0,function(i,s){if(!e){if(i===r)return o.onCompleted();var a=n[i];Ye(a)&&(a=Vn(a));var u=new en;t.setDisposable(u),u.setDisposable(a.subscribe(function(e){o.onNext(e)},function(e){o.onError(e)},function(){s(i+1)}))}});return new Gt(t,i,Xt(function(){e=!0}))},t}(kn),dr=Pn.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 hr(e)};Cn.concatAll=function(){return this.merge(1)};var fr=function(e){function t(t,n){this.source=t,this.maxConcurrent=n,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new Gt;return t.add(this.source.subscribe(new mr(e,this.maxConcurrent,t))),t},t}(kn),mr=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 en;this.g.add(n),Ye(e)&&(e=Vn(e)),n.setDisposable(e.subscribe(new t(this,n)))},e.prototype.onNext=function(e){this.isStopped||(this.activeCount<this.max?(this.activeCount++,this.handleSubscribe(e)):this.q.push(e))},e.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},e.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.done=!0,0===this.activeCount&&this.o.onCompleted())},e.prototype.dispose=function(){this.isStopped=!0},e.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t.prototype.onNext=function(e){this.isStopped||this.parent.o.onNext(e)},t.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.parent.o.onError(e))},t.prototype.onCompleted=function(){if(!this.isStopped){this.isStopped=!0;var e=this.parent;e.g.remove(this.sad),e.q.length>0?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}();Cn.merge=function(e){return"number"!=typeof e?vr(this,e):new fr(this,e)};var vr=Pn.merge=function(){var e,t,n=[],r=arguments.length;if(arguments[0])if(an(arguments[0]))for(e=arguments[0],t=1;r>t;t++)n.push(arguments[t]);else for(e=pn,t=0;r>t;t++)n.push(arguments[t]);else for(e=pn,t=1;r>t;t++)n.push(arguments[t]);return Array.isArray(n[0])&&(n=n[0]),R(e,n).mergeAll()},yr=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 Bt(t,e),t.prototype.subscribeCore=function(e){var t=new Gt,r=new en;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 en;this.g.add(t),Ye(e)&&(e=Vn(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}(kn);Cn.mergeAll=function(){return new yr(this)};var gr=Ve.CompositeError=function(e){this.name="NotImplementedError",this.innerErrors=e,this.message="This contains multiple errors. Check the innerErrors",Error.call(this)};gr.prototype=Error.prototype,Pn.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=R(null,e);return new no(function(e){function t(){0===s.length?e.onCompleted():1===s.length?e.onError(s[0]):e.onError(new gr(s))}var n=new Gt,o=new en,i=!1,s=[];return n.add(o),o.setDisposable(r.subscribe(function(r){var o=new en;n.add(o),Ye(r)&&(r=Vn(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})},Cn.onErrorResumeNext=function(e){if(!e)throw new Error("Second observable is required");return br([this,e])};var br=Pn.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 no(function(t){var n=0,r=new tn,o=pn.scheduleRecursive(function(o){var i,s;n<e.length?(i=e[n++],Ye(i)&&(i=Vn(i)),s=new en,r.setDisposable(s),s.setDisposable(i.subscribe(t.onNext.bind(t),o,o))):t.onCompleted()});return new Gt(r,o)})};Cn.skipUntil=function(e){var t=this;return new no(function(n){var r=!1,o=new Gt(t.subscribe(function(e){r&&n.onNext(e)},function(e){n.onError(e)},function(){r&&n.onCompleted()}));Ye(e)&&(e=Vn(e));var i=new en;return o.add(i),i.setDisposable(e.subscribe(function(){r=!0,i.dispose()},function(e){n.onError(e)},function(){i.dispose()})),o},t)};var wr=function(e){function t(t){this.source=t,e.call(this)}function n(e,t){this.o=e,this.inner=t,this.stopped=!1,this.latest=0,this.hasLatest=!1,this.isStopped=!1}function r(e,t){this.parent=e,this.id=t,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new tn,r=this.source.subscribe(new n(e,t));return new Gt(r,t)},n.prototype.onNext=function(e){if(!this.isStopped){var t=new en,n=++this.latest;this.hasLatest=!0,this.inner.setDisposable(t),Ye(e)&&(e=Vn(e)),t.setDisposable(e.subscribe(new r(this,n)))}},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.stopped=!0,!this.hasLatest&&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.latest===this.id&&this.parent.o.onNext(e)},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.parent.latest===this.id&&this.parent.o.onError(e))},r.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.parent.latest===this.id&&(this.parent.hasLatest=!1,this.parent.isStopped&&this.parent.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}(kn);Cn["switch"]=Cn.switchLatest=function(){return new wr(this)};var Er=function(e){function t(t,n){this.source=t,this.other=Ye(n)?Vn(n):n,e.call(this)}function n(e){this.o=e,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return new Gt(this.source.subscribe(e),this.other.subscribe(new n(e)))},n.prototype.onNext=function(e){this.isStopped||this.o.onCompleted()},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){!this.isStopped&&(this.isStopped=!0)},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}(kn);Cn.takeUntil=function(e){return new Er(this,e)},Cn.withLatestFrom=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t.pop(),o=this;return Array.isArray(t[0])&&(t=t[0]),new no(function(e){for(var n=t.length,i=E(n,U),s=!1,a=new Array(n),u=new Array(n+1),c=0;n>c;c++)!function(n){var r=t[n],o=new en;Ye(r)&&(r=Vn(r)),o.setDisposable(r.subscribe(function(e){a[n]=e,i[n]=!0,s=i.every(qe)},function(t){e.onError(t)},Be)),u[n]=o}(c);var l=new en;return l.setDisposable(o.subscribe(function(t){var n=[t].concat(a);if(s){var o=$e(r).apply(null,n);return o===Xe?e.onError(o.e):void e.onNext(o)}},function(t){e.onError(t)},function(){e.onCompleted()})),u[n]=l,new Gt(u)},this)},Cn.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=Qe(t[e-1])?t.pop():W;Array.isArray(t[0])&&(t=t[0]);var o=this;return t.unshift(o),new no(function(e){for(var n=t.length,i=E(n,V),s=E(n,U),a=new Array(n),u=0;n>u;u++)!function(n){var u=t[n],c=new en;Ye(u)&&(u=Vn(u)),c.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=$e(r).apply(o,a);if(u===Xe)return e.onError(u.e);e.onNext(u)}else s.filter(function(e,t){return t!==n}).every(qe)&&e.onCompleted()},function(t){e.onError(t)},function(){s[n]=!0,s.every(qe)&&e.onCompleted()})),a[n]=c}(u);return new Gt(a)},o)},Pn.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=Qe(t[1])?t[0].concat(t[1]):t[0]);var r=t.shift();return r.zip.apply(r,t)},Cn.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=Qe(t[e-1])?t.pop():W,o=this;return t.unshift(o),new no(function(e){for(var n=t.length,i=E(n,V),s=E(n,U),a=new Array(n),u=0;n>u;u++)!function(n){var u=t[n],c=new en;(dt(u)||ht(u))&&(u=Xn(u)),c.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=$e(r).apply(o,a);if(u===Xe)return e.onError(u.e);e.onNext(u)}else s.filter(function(e,t){return t!==n}).every(qe)&&e.onCompleted()},function(t){e.onError(t)},function(){s[n]=!0,s.every(qe)&&e.onCompleted()})),a[n]=c}(u);return new Gt(a)},o)},Cn.asObservable=function(){return new no(B(this),this)},Cn.bufferWithCount=function(e,t){return"number"!=typeof t&&(t=e),this.windowWithCount(e,t).flatMap(q).filter(z)},Cn.dematerialize=function(){var e=this;return new no(function(t){return e.subscribe(function(e){return e.accept(t)},function(e){t.onError(e)},function(){t.onCompleted()})},this)};var Tr=function(e){function t(t,n,r){this.source=t,this.keyFn=n,this.comparer=r,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new xr(e,this.keyFn,this.comparer))},t}(kn),xr=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 Bt(t,e),t.prototype.next=function(e){var t,n=e;return Qe(this.keyFn)&&(n=$e(this.keyFn)(e),n===Xe)?this.o.onError(n.e):this.hasCurrentKey&&(t=$e(this.comparer)(this.currentKey,n),t===Xe)?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}(_n);Cn.distinctUntilChanged=function(e,t){return t||(t=Ke),new Tr(this,e,t)};var Cr=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||Qe(t._oN)?xn(t._oN||Be,t._oE||Be,t._oC||Be):t._oN,this.isStopped=!1}return Bt(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=$e(this.t.onNext).call(this.t,e);t===Xe&&this.o.onError(t.e),this.o.onNext(e)}},n.prototype.onError=function(e){if(!this.isStopped){this.isStopped=!0;var t=$e(this.t.onError).call(this.t,e);if(t===Xe)return this.o.onError(t.e);this.o.onError(e)}},n.prototype.onCompleted=function(){if(!this.isStopped){this.isStopped=!0;var e=$e(this.t.onCompleted).call(this.t);if(e===Xe)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}(kn);Cn["do"]=Cn.tap=Cn.doAction=function(e,t,n){return new Cr(this,e,t,n)},Cn.doOnNext=Cn.tapOnNext=function(e,t){return this.tap("undefined"!=typeof t?function(n){e.call(t,n)}:e)},Cn.doOnError=Cn.tapOnError=function(e,t){return this.tap(Be,"undefined"!=typeof t?function(n){e.call(t,n)}:e)},Cn.doOnCompleted=Cn.tapOnCompleted=function(e,t){return this.tap(Be,null,"undefined"!=typeof t?function(){e.call(t)}:e)},Cn["finally"]=function(e){var t=this;return new no(function(n){var r=$e(t.subscribe).call(t,n);return r===Xe?(e(),c(r.e)):Xt(function(){var t=$e(r.dispose).call(r);e(),t===Xe&&c(t.e)})},this)};var _r=function(e){function t(t){this.source=t,e.call(this)}function n(e){this.o=e,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e))},n.prototype.onNext=Be,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}(kn);Cn.ignoreElements=function(){return new _r(this)},Cn.materialize=function(){var e=this;return new no(function(t){return e.subscribe(function(e){t.onNext(bn(e))},function(e){t.onNext(wn(e)),t.onCompleted()},function(){t.onNext(En()),t.onCompleted()})},e)},Cn.repeat=function(e){return Ln(this,e).concat()},Cn.retry=function(e){return Ln(this,e).catchError()},Cn.retryWhen=function(e){return Ln(this).catchErrorWhen(e)};var Sr=function(e){function t(t,n,r,o){this.source=t,this.accumulator=n,this.hasSeed=r,this.seed=o,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new K(e,this))},t}(kn);K.prototype={onNext:function(e){return this.isStopped?void 0:(!this.hasValue&&(this.hasValue=!0),this.hasAccumulation?this.accumulation=$e(this.accumulator)(this.accumulation,e):(this.accumulation=this.hasSeed?$e(this.accumulator)(this.seed,e):e,this.hasAccumulation=!0),this.accumulation===Xe?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)}},Cn.scan=function(){var e,t=!1,n=arguments[0];return 2===arguments.length&&(t=!0,e=arguments[1]),new Sr(this,n,t,e)},Cn.skipLast=function(e){if(0>e)throw new it;var t=this;return new no(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)},Cn.startWith=function(){var e,t=0;arguments.length&&an(arguments[0])?(e=arguments[0],t=1):e=pn;for(var n=[],r=t,o=arguments.length;o>r;r++)n.push(arguments[r]);return Un([Zn(n,e),this]).concat()},Cn.takeLast=function(e){if(0>e)throw new it;var t=this;return new no(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)},Cn.takeLastBuffer=function(e){var t=this;return new no(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)},Cn.windowWithCount=function(e,t){var n=this;if(+e||(e=0),Math.abs(e)===1/0&&(e=0),0>=e)throw new it;if(null==t&&(t=e),+t||(t=0),Math.abs(t)===1/0&&(t=0),0>=t)throw new it;return new no(function(r){function o(){var e=new io;u.push(e),r.onNext(zt(e,s))}var i=new en,s=new nn(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)},Cn.selectConcat=Cn.concatMap=function(e,t,n){return Qe(e)&&Qe(t)?this.concatMap(function(n,r){var o=e(n,r);return Ye(o)&&(o=Vn(o)),(dt(o)||ht(o))&&(o=Xn(o)),o.map(function(e,o){return t(n,e,r,o)})}):Qe(e)?H(this,e,n):H(this,function(){return e})},Cn.concatMapObserver=Cn.selectConcatObserver=function(e,t,n,r){var o=this,i=mt(e,r,2),s=mt(t,r,1),a=mt(n,r,0);return new no(function(e){var t=0;return o.subscribe(function(n){var r;try{r=i(n,t++)}catch(o){return void e.onError(o)}Ye(r)&&(r=Vn(r)),e.onNext(r)},function(t){var n;try{n=s(t)}catch(r){return void e.onError(r)}Ye(n)&&(n=Vn(n)),e.onNext(n),e.onCompleted()},function(){var t;try{t=a()}catch(n){return void e.onError(n)}Ye(t)&&(t=Vn(t)),e.onNext(t),e.onCompleted()})},this).concatAll()},Cn.defaultIfEmpty=function(e){var t=this;return e===s&&(e=null),new no(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)},Y.prototype.push=function(e){var t=-1===G(this.set,e,this.comparer);return t&&this.set.push(e),t},Cn.distinct=function(e,t){var n=this;return t||(t=Ke),new no(function(r){var o=new Y(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)},Cn.groupBy=function(e,t){return this.groupByUntil(e,t,tr)},Cn.groupByUntil=function(e,t,n){var r=this;return new no(function(o){var i=new Zr,a=new Gt,u=new nn(a),c=function(e){return function(t){t.onError(e)}};return a.add(r.subscribe(function(r){var l=$e(e)(r);if(l===Xe)return i.forEach(c(l.e)),o.onError(l.e);var p=!1,h=i.get(l);if(h===s&&(h=new io,i.set(l,h),p=!0),p){var d=new oo(l,h,u),f=new oo(l,h),m=$e(n)(f);if(m===Xe)return i.forEach(c(m.e)),o.onError(m.e);o.onNext(d);var v=new en;a.add(v),v.setDisposable(m.take(1).subscribe(Be,function(e){i.forEach(c(e)),o.onError(e)},function(){i["delete"](l)&&h.onCompleted(),a.remove(v)}))}var y=r;return Qe(t)&&(y=$e(t)(r),y===Xe)?(i.forEach(c(y.e)),o.onError(y.e)):void h.onNext(y)},function(e){i.forEach(c(e)),o.onError(e)},function(){i.forEach(function(e){e.onCompleted()}),o.onCompleted()})),u},r)};var Nr=function(e){function t(t,n,r){this.source=t,this.selector=mt(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 Bt(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=$e(this.selector)(e,this.i++,this.source);return t===Xe?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}(kn);Cn.map=Cn.select=function(e,t){var n="function"==typeof e?e:function(){return e};return this instanceof Nr?this.internalMap(n,t):new Nr(this,n,t)},Cn.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(Q(t,e))},Cn.flatMap=Cn.selectMany=function(e,t,n){return new Mn(this,e,t,n).mergeAll()},Cn.flatMapObserver=Cn.selectManyObserver=function(e,t,n,r){var o=this;return new no(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)}Ye(n)&&(n=Vn(n)),i.onNext(n)},function(e){var n;try{n=t.call(r,e)}catch(o){return void i.onError(o)}Ye(n)&&(n=Vn(n)),i.onNext(n),i.onCompleted()},function(){var e;try{e=n.call(r)}catch(t){return void i.onError(t)}Ye(e)&&(e=Vn(e)),i.onNext(e),i.onCompleted()})},o).mergeAll()},Ve.Observable.prototype.flatMapLatest=function(e,t,n){return new Mn(this,e,t,n).switchLatest()};var Or=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 Bt(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}(kn);Cn.skip=function(e){if(0>e)throw new it;return new Or(this,e)},Cn.skipWhile=function(e,t){var n=this,r=mt(e,t,3);return new no(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)},Cn.take=function(e,t){if(0>e)throw new it;if(0===e)return Hn(t);var n=this;return new no(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)},Cn.takeWhile=function(e,t){var n=this,r=mt(e,t,3);return new no(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 Dr=function(e){function t(t,n,r){this.source=t,this.predicate=mt(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 Bt(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=$e(this.predicate)(e,this.i++,this.source);return t===Xe?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}(kn);Cn.filter=Cn.where=function(e,t){return this instanceof Dr?this.internalFilter(e,t):new Dr(this,e,t)};var Pr=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 Bt(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=$e(this.acc)(this.result,e):(this.result=this.hasSeed?$e(this.acc)(this.seed,e):e,this.hasAccumulation=!0),this.result===Xe&&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 rt),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}(kn);Cn.reduce=function(e){var t=!1;if(2===arguments.length){t=!0;var n=arguments[1]}return new Pr(this,e,t,n)};var kr=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,e.call(this)}return Bt(t,e),t.prototype.next=function(e){var t=$e(this._fn)(e,this._i++,this._s);return t===Xe?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}(_n);Cn.some=function(e,t){var n=this,r=mt(e,t,3);return new no(function(e){return n.subscribe(new kr(e,r,n))})};var Mr=function(e){function t(t){this._o=t,e.call(this)}return Bt(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}(_n);Cn.isEmpty=function(){var e=this;return new no(function(t){return e.subscribe(new Mr(t))},e)};var Ar=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,e.call(this)}return Bt(t,e),t.prototype.next=function(e){var t=$e(this._fn)(e,this._i++,this._s);return t===Xe?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}(_n);Cn.every=function(e,t){var n=this,r=mt(e,t,3);return new no(function(e){return n.subscribe(new Ar(e,r,n))},this)},Cn.includes=function(e,t){function n(e,t){return 0===e&&0===t||e===t||isNaN(e)&&isNaN(t)}var r=this;return new no(function(o){var i=0,s=+t||0;return Math.abs(s)===1/0&&(s=0),0>s?(o.onNext(!1),o.onCompleted(),$t):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)},Cn.contains=function(e,t){Cn.includes(e,t)},Cn.count=function(e,t){return e?this.filter(e,t).count():this.reduce(function(e){return e+1},0)},Cn.indexOf=function(e,t){var n=this;return new no(function(r){var o=0,i=+t||0;return Math.abs(i)===1/0&&(i=0),0>i?(r.onNext(-1),r.onCompleted(),$t):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)},Cn.sum=function(e,t){return e&&Qe(e)?this.map(e,t).sum():this.reduce(function(e,t){return e+t},0)},Cn.minBy=function(e,t){return t||(t=He),X(this,e,function(e,n){return-1*t(e,n)})},Cn.min=function(e){return this.minBy(qe,e).map(function(e){return $(e)})},Cn.maxBy=function(e,t){return t||(t=He),X(this,e,t)},Cn.max=function(e){return this.maxBy(qe,e).map(function(e){return $(e)})};var Rr=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 Bt(t,e),t.prototype.next=function(e){if(this._fn){var t=$e(this._fn)(e,this._c++,this._s);if(t===Xe)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 rt):(this._o.onNext(this._t/this._c),void this._o.onCompleted())},t}(_n);Cn.average=function(e,t){var n,r=this;return Qe(e)&&(n=mt(e,t,3)),new no(function(e){return r.subscribe(new Rr(e,n,r))},r)},Cn.sequenceEqual=function(e,t){var n=this;return t||(t=Ke),new no(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()))});(dt(e)||ht(e))&&(e=Xn(e)),Ye(e)&&(e=Vn(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 Gt(u,c)},n)},Cn.elementAt=function(e,t){if(0>e)throw new it;var n=this;return new no(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 it):(r.onNext(t),r.onCompleted())})},n)},Cn.single=function(e,t){if(Qe(e))return this.filter(e,t).single();var n=this;return new no(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 Ir=function(e){function t(t,n,r){this._o=t,this._obj=n,this._s=r,this._i=0,e.call(this)}return Bt(t,e),t.prototype.next=function(e){if(this._obj.predicate){var t=$e(this._obj.predicate)(e,this._i++,this._s);if(t===Xe)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 rt):(this._o.onNext(this._obj.defaultValue),this._o.onCompleted())},t}(_n);Cn.first=function(){var e={},t=this;if(e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},Qe(e.predicate)){var n=e.predicate;e.predicate=mt(n,e.thisArg,3)}return new no(function(n){return t.subscribe(new Ir(n,e,t))},t)},Cn.last=function(){var e={},t=this;if(e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},Qe(e.predicate)){var n=e.predicate;e.predicate=mt(n,e.thisArg,3)}return new no(function(n){var r,o=!1,i=0;return t.subscribe(function(s){if(e.predicate){var a=$e(e.predicate)(s,i++,t);if(a===Xe)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 rt):(n.onNext(e.defaultValue),n.onCompleted())})},t)},Cn.find=function(e,t){return Z(this,e,t,!1)},Cn.findIndex=function(e,t){return Z(this,e,t,!0)},Cn.toSet=function(){if("undefined"==typeof We.Set)throw new TypeError;var e=this;return new no(function(t){var n=new We.Set;return e.subscribe(function(e){n.add(e)},function(e){t.onError(e)},function(){t.onNext(n),t.onCompleted()})},e)},Cn.toMap=function(e,t){if("undefined"==typeof We.Map)throw new TypeError;var n=this;return new no(function(r){var o=new We.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)},Pn.wrap=function(e){function t(){return Pn.spawn.call(this,e.apply(this,arguments))}return t.__generatorFunction__=e,t};var jr=Pn.spawn=function(){for(var e=arguments[0],t=this,n=[],r=1,o=arguments.length;o>r;r++)n.push(arguments[r]);return new no(function(r){function o(t){var n=$e(e.next).call(e,t);return n===Xe?r.onError(n.e):void s(n)}function i(t){var n=$e(e.next).call(e,t);return n===Xe?r.onError(n.e):void s(n)}function s(e){if(e.done)return r.onNext(e.value),void r.onCompleted();var n=J.call(t,e.value);Pn.isObservable(n)?a.add(n.subscribe(o,i)):i(new TypeError("type not supported"))}var a=new Gt;return Qe(e)&&(e=e.apply(t,n)),e&&Qe(e.next)?(o(),a):(r.onNext(e),r.onCompleted())})};Pn.start=function(e,t,n){return Lr(e,t,n)()};var Lr=Pn.toAsync=function(e,t,n){return an(n)||(n=vn),function(){var r=arguments,o=new so;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()}};Pn.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 ie(e,t,n,o)}},Pn.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 ae(e,t,n,o)}},ce.prototype.dispose=function(){this.isDisposed||(this._e.removeEventListener(this._n,this._fn,!1),this.isDisposed=!0)},Ve.config.useNativeEvents=!1,Pn.fromEvent=function(e,t,n){return e.addListener?Fr(function(n){e.addListener(t,n)},function(n){e.removeListener(t,n)},n):Ve.config.useNativeEvents||"function"!=typeof e.on||"function"!=typeof e.off?new no(function(r){return le(e,t,pe(r,n))}).publish().refCount():Fr(function(n){e.on(t,n)},function(n){e.off(t,n)},n)};var Fr=Pn.fromEventPattern=function(e,t,n,r){return an(r)||(r=pn),new no(function(r){function o(){var e=arguments[0];return Qe(n)&&(e=$e(n).apply(null,arguments),e===Xe)?r.onError(e.e):void r.onNext(e)}var i=e(o);return Xt(function(){Qe(t)&&t(o,i)})}).publish().refCount()};Pn.startAsync=function(e){var t;try{t=e()}catch(n){return ur(n)}return Vn(t)};var Ur=function(e){function t(e){var t=this.source.publish(),n=t.subscribe(e),r=$t,o=this.pauser.distinctUntilChanged().subscribe(function(e){e?r=t.connect():(r.dispose(),r=$t)});return new Gt(n,r,o)}function n(n,r){this.source=n,this.controller=new io,r&&r.subscribe?this.pauser=this.controller.merge(r):this.pauser=this.controller,e.call(this,t,n)}return Bt(n,e),n.prototype.pause=function(){this.controller.onNext(!1)},n.prototype.resume=function(){this.controller.onNext(!0)},n}(Pn);Cn.pausable=function(e){return new Ur(this,e)};var Wr=function(e){function t(e){function t(){for(;r.length>0;)e.onNext(r.shift())}var n,r=[],o=he(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 io,r&&r.subscribe?this.pauser=this.controller.merge(r):this.pauser=this.controller,e.call(this,t,n)}return Bt(n,e),n.prototype.pause=function(){this.controller.onNext(!1)},n.prototype.resume=function(){this.controller.onNext(!0)},n}(Pn);Cn.pausableBuffered=function(e){return new Wr(this,e)};var Vr=function(e){function t(e){return this.source.subscribe(e)}function n(n,r,o){e.call(this,t,n),this.subject=new Br(r,o),this.source=n.multicast(this.subject).refCount()}return Bt(n,e),n.prototype.request=function(e){return this.subject.request(null==e?-1:e)},n}(Pn),Br=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 io,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||hn}return Bt(n,e),qt(n.prototype,Tn,{onCompleted:function(){this.hasCompleted=!0,this.enableQueue&&0!==this.queue.length?this.queue.push(gn.createOnCompleted()):(this.subject.onCompleted(),this.disposeCurrentRequest())},onError:function(e){this.hasFailed=!0,this.error=e,this.enableQueue&&0!==this.queue.length?this.queue.push(gn.createOnError(e)):(this.subject.onError(e),this.disposeCurrentRequest())},onNext:function(e){this.requestedCount<=0?this.enableQueue&&this.queue.push(gn.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,Xt(function(){t.requestedCount=0})):void 0}),this.requestedDisposable},disposeCurrentRequest:function(){this.requestedDisposable&&(this.requestedDisposable.dispose(),this.requestedDisposable=null)}}),n}(Pn);Cn.controlled=function(e,t){return e&&an(e)&&(t=e,e=!0),null==e&&(e=!0),new Vr(this,e,t)};var qr=function(e){function t(e){this.subscription=this.source.subscribe(new r(e,this,this.subscription));var t=this;return vn.schedule(function(){t.source.request(1)}),this.subscription}function n(n){e.call(this,t,n),this.source=n}Bt(n,e);var r=function(e){function t(t,n,r){e.call(this),this.observer=t,this.observable=n,this.cancel=r}Bt(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;vn.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}(_n);return n}(Pn);Vr.prototype.stopAndWait=function(){return new qr(this)};var zr=function(e){function t(e){this.subscription=this.source.subscribe(new r(e,this,this.subscription));var t=this;return vn.schedule(function(){t.source.request(t.windowSize)}),this.subscription}function n(n,r){e.call(this,t,n),this.source=n,this.windowSize=r}Bt(n,e);var r=function(e){function t(e,t,n){this.observer=e,this.observable=t,this.cancel=n,this.received=0}Bt(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;vn.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}(_n);return n}(Pn);Vr.prototype.windowed=function(e){return new zr(this,e)},Cn.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},Cn.multicast=function(e,t){var n=this;return"function"==typeof e?new no(function(r){var o=n.multicast(e());return new Gt(t(o).subscribe(r),o.connect())},n):new Yr(n,e)},Cn.publish=function(e){return e&&Qe(e)?this.multicast(function(){return new io},e):this.multicast(new io)},Cn.share=function(){return this.publish().refCount()},Cn.publishLast=function(e){return e&&Qe(e)?this.multicast(function(){return new so},e):this.multicast(new so)},Cn.publishValue=function(e,t){return 2===arguments.length?this.multicast(function(){return new Hr(t)},e):this.multicast(new Hr(e))},Cn.shareValue=function(e){return this.publishValue(e).refCount()},Cn.replay=function(e,t,n,r){return e&&Qe(e)?this.multicast(function(){return new Gr(t,n,r)},e):this.multicast(new Gr(t,n,r))},Cn.shareReplay=function(e,t,n){return this.replay(null,e,t,n).refCount()};var Kr=function(e,t){this.subject=e,this.observer=t};Kr.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 Hr=Ve.BehaviorSubject=function(e){function t(e){return Jt(this),this.isStopped?(this.hasError?e.onError(this.error):e.onCompleted(),$t):(this.observers.push(e),e.onNext(this.value),new Kr(this,e))}function n(n){e.call(this,t),this.value=n,this.observers=[],this.isDisposed=!1,this.isStopped=!1,this.hasError=!1}return Bt(n,e),qt(n.prototype,Tn,{getValue:function(){if(Jt(this),this.hasError)throw this.error;return this.value},hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(Jt(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(Jt(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(Jt(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}(Pn),Gr=Ve.ReplaySubject=function(e){function t(e,t){return Xt(function(){t.dispose(),!e.isDisposed&&e.observers.splice(e.observers.indexOf(t),1)})}function n(e){var n=new On(this.scheduler,e),r=t(this,n);Jt(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||hn,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 Bt(r,e),qt(r.prototype,Tn.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(Jt(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(Jt(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(Jt(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}(Pn),Yr=Ve.ConnectableObservable=function(e){function t(t,n){var r,o=!1,i=t.asObservable();this.connect=function(){return o||(o=!0,r=new Gt(i.subscribe(n),Xt(function(){o=!1}))),r},e.call(this,function(e){return n.subscribe(e)})}return Bt(t,e),t.prototype.refCount=function(){var e,t=0,n=this;return new no(function(r){var o=1===++t,i=n.subscribe(r);return o&&(e=n.connect()),function(){i.dispose(),0===--t&&e.dispose()}})},t}(Pn);Cn.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 no(function(t){return e().subscribe(t)})},Cn.join=function(e,t,n,r){var o=this;return new no(function(i){var s=new Gt,a=!1,u=!1,c=0,l=0,p=new Zr,h=new Zr,d=function(e){i.onError(e)};return s.add(o.subscribe(function(e){var n=c++,o=new en;p.set(n,e),s.add(o);var u=$e(t)(e);return u===Xe?i.onError(u.e):(o.setDisposable(u.take(1).subscribe(Be,d,function(){p["delete"](n)&&0===p.size&&a&&i.onCompleted(),s.remove(o)})),void h.forEach(function(t){var n=$e(r)(e,t);return n===Xe?i.onError(n.e):void i.onNext(n)}))},d,function(){a=!0,(u||0===p.size)&&i.onCompleted()})),s.add(e.subscribe(function(e){var t=l++,o=new en;h.set(t,e),s.add(o);var a=$e(n)(e);return a===Xe?i.onError(a.e):(o.setDisposable(a.take(1).subscribe(Be,d,function(){h["delete"](t)&&0===h.size&&u&&i.onCompleted(),s.remove(o)})),void p.forEach(function(t){var n=$e(r)(t,e);return n===Xe?i.onError(n.e):void i.onNext(n)}))},d,function(){u=!0,(a||0===h.size)&&i.onCompleted()})),s},o)},Cn.groupJoin=function(e,t,n,r){var o=this;return new no(function(i){function s(e){}var a=new Gt,u=new nn(a),c=new Zr,l=new Zr,p=0,h=0,s=function(e){return function(t){t.onError(e)}};return a.add(o.subscribe(function(e){var n=new io,o=p++;c.set(o,n);var h=$e(r)(e,zt(n,u));if(h===Xe)return c.forEach(s(h.e)),i.onError(h.e);i.onNext(h),l.forEach(function(e){n.onNext(e)});var d=new en;a.add(d);var f=$e(t)(e);return f===Xe?(c.forEach(s(f.e)),i.onError(f.e)):void d.setDisposable(f.take(1).subscribe(Be,function(e){c.forEach(s(e)),i.onError(e)},function(){c["delete"](o)&&n.onCompleted(),a.remove(d)}))},function(e){c.forEach(s(e)),i.onError(e)},function(){i.onCompleted()})),a.add(e.subscribe(function(e){var t=h++;l.set(t,e);var r=new en;a.add(r);var o=$e(n)(e);return o===Xe?(c.forEach(s(o.e)),i.onError(o.e)):(r.setDisposable(o.take(1).subscribe(Be,function(e){c.forEach(s(e)),i.onError(e)},function(){l["delete"](t),a.remove(r)})),void c.forEach(function(t){t.onNext(e)}))},function(e){c.forEach(s(e)),i.onError(e)})),u},o)},Cn.buffer=function(){return this.window.apply(this,arguments).flatMap(q)},Cn.window=function(e,t){return 1===arguments.length&&"function"!=typeof arguments[0]?fe.call(this,e):"function"==typeof e?me.call(this,e):de.call(this,e,t)},Cn.pairwise=function(){var e=this;return new no(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)},Cn.partition=function(e,t){return[this.filter(e,t),this.filter(function(n,r,o){return!e.call(t,n,r,o)})]};var Qr=function(e){function t(e,t){this.c=e,this.s=t}return Bt(t,e),t.prototype[lt]=function(){var e=this;return{next:function(){return e.c()?{done:!1,value:e.s}:{done:!0,value:void 0}}}},t}(An);Cn.letBind=Cn.let=function(e){return e(this)},Pn["if"]=function(e,t,n){return qn(function(){return n||(n=Hn()),Ye(t)&&(t=Vn(t)),Ye(n)&&(n=Vn(n)),"function"==typeof n.now&&(n=Hn(n)),e()?t:n})},Pn["for"]=Pn.forIn=function(e,t,n){return Un(e,t,n).concat()};var Xr=Pn["while"]=Pn.whileDo=function(e,t){return Ye(t)&&(t=Vn(t)),ve(e,t).concat()};Cn.doWhile=function(e){return dr([this,Xr(e,this)])},Pn["case"]=function(e,t,n){return qn(function(){Ye(n)&&(n=Vn(n)),n||(n=Hn()),an(n)&&(n=Hn(n));var r=t[e()];return Ye(r)&&(r=Vn(r)),r||n})},Cn.expand=function(e,t){an(t)||(t=pn);var n=this;return new no(function(r){var o=[],i=new tn,s=new Gt(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 en;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)},Pn.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 no(function(t){var n=e.length;if(0===n)return t.onCompleted(),$t;for(var r=new Gt,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];Ye(c)&&(c=Vn(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})},Cn.forkJoin=function(e,t){var n=this;return new no(function(r){var o,i,s=!1,a=!1,u=!1,c=!1,l=new en,p=new en;return Ye(e)&&(e=Vn(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 Gt(l,p)},n)},Cn.manySelect=Cn.extend=function(e,t){an(t)||(t=pn);var n=this;return qn(function(){var r;return n.map(function(e){var t=new $r(e);return r&&r.onNext(e),r=t,t}).tap(Be,function(e){r&&r.onError(e)},function(){r&&r.onCompleted()}).observeOn(t).map(e)},n)};var $r=function(e){function t(e){var t=this,n=new Gt;return n.add(hn.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 so}return Bt(n,e),qt(n.prototype,Tn,{onCompleted:function(){this.onNext(Pn.empty())},onError:function(e){this.onNext(Pn["throw"](e))},onNext:function(e){this.tail.onNext(e),this.tail.onCompleted()}}),n}(Pn),Zr=We.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;n<this.size;n++)e.call(t,this._values[n],this._keys[n])},e}();ye.prototype.and=function(e){return new ye(this.patterns.concat(e))},ye.prototype.thenDo=function(e){return new ge(this,e)},ge.prototype.activate=function(e,t,n){for(var r=this,o=[],i=0,s=this.expression.patterns.length;s>i;i++)o.push(be(e,this.expression.patterns[i],t.onError.bind(t)));var a=new we(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},we.prototype.dequeue=function(){this.joinObservers.forEach(function(e){e.queue.shift()})},we.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;e<r.length;e++)i.push(r[e].value);this.onNext.apply(this,i)}}};var Jr=function(e){function t(t,n){e.call(this),this.source=t,this.onError=n,this.queue=[],this.activePlans=[],this.subscription=new en,this.isDisposed=!1}Bt(t,e);var n=t.prototype;return n.next=function(e){if(!this.isDisposed){if("E"===e.kind)return this.onError(e.exception);this.queue.push(e);for(var t=this.activePlans.slice(0),n=0,r=t.length;r>n;n++)t[n].match()}},n.error=Be,n.completed=Be,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}(_n);Cn.and=function(e){return new ye([this,e])},Cn.thenDo=function(e){return new ye([this]).thenDo(e)},Pn.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 no(function(t){var n=[],r=new Zr,o=xn(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){ur(a).subscribe(t)}var u=new Gt;return r.forEach(function(e){e.subscribe(),u.add(e)}),u})};var eo=Pn.interval=function(e,t){return Ce(e,e,an(t)?t:vn)};Pn.timer=function(e,t,n){var r;return an(n)||(n=vn),null!=t&&"number"==typeof t?r=t:an(t)&&(n=t),e instanceof Date&&r===s?Ee(e.getTime(),n):e instanceof Date&&r!==s?Te(e.getTime(),t,n):r===s?xe(e,n):Ce(e,r,n)};Cn.delay=function(){if("number"==typeof arguments[0]||arguments[0]instanceof Date){var e=arguments[0],t=arguments[1];return an(t)||(t=vn),e instanceof Date?Se(this,e,t):_e(this,e,t)}if(Qe(arguments[0]))return Ne(this,arguments[0],arguments[1]);throw new Error("Invalid arguments")},Cn.debounce=function(){if(Qe(arguments[0]))return De(this,arguments[0]);if("number"==typeof arguments[0])return Oe(this,arguments[0],arguments[1]);throw new Error("Invalid arguments")},Cn.windowWithTime=function(e,t,n){var r,o=this;return null==t&&(r=e),an(n)||(n=vn),"number"==typeof t?r=t:an(t)&&(r=e,n=t),new no(function(t){function i(){var e=new en,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 io;l.push(e),t.onNext(zt(e,a))}o&&l.shift().onCompleted(),i()}))}var s,a,u=r,c=e,l=[],p=new tn,h=0;return s=new Gt(p),a=new nn(s),l.push(new io),t.onNext(zt(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)},Cn.windowWithTimeOrCount=function(e,t,n){var r=this;return an(n)||(n=vn),new no(function(o){function i(t){var r=new en;s.setDisposable(r),r.setDisposable(n.scheduleWithRelative(e,function(){if(t===l){c=0;var e=++l;p.onCompleted(),p=new io,o.onNext(zt(p,u)),i(e)}}))}var s=new tn,a=new Gt(s),u=new nn(a),c=0,l=0,p=new io;return o.onNext(zt(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 io,o.onNext(zt(p,u))),r&&i(n)},function(e){p.onError(e),o.onError(e)},function(){p.onCompleted(),o.onCompleted()})),u},r)},Cn.bufferWithTime=function(e,t,n){return this.windowWithTime(e,t,n).flatMap(q)},Cn.bufferWithTimeOrCount=function(e,t,n){return this.windowWithTimeOrCount(e,t,n).flatMap(q)},Cn.timeInterval=function(e){var t=this;return an(e)||(e=vn),qn(function(){var n=e.now();return t.map(function(t){var r=e.now(),o=r-n;return n=r,{value:t,interval:o}})})},Cn.timestamp=function(e){return an(e)||(e=vn),this.map(function(t){return{value:t,timestamp:e.now()}})},Cn.sample=Cn.throttleLatest=function(e,t){return an(t)||(t=vn),"number"==typeof e?Pe(this,eo(e,t)):Pe(this,e)};var to=Ve.TimeoutError=function(e){this.message=e||"Timeout has occurred",this.name="TimeoutError",Error.call(this)};to.prototype=Object.create(Error.prototype),Cn.timeout=function(){var e=arguments[0];if(e instanceof Date||"number"==typeof e)return Me(this,e,arguments[1],arguments[2]);if(Pn.isObservable(e)||Qe(e))return ke(this,e,arguments[1],arguments[2]);throw new Error("Invalid arguments")},Pn.generateWithAbsoluteTime=function(e,t,n,r,o,i){return an(i)||(i=vn),new no(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()})})},Pn.generateWithRelativeTime=function(e,t,n,r,o,i){return an(i)||(i=vn),new no(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()})})},Cn.delaySubscription=function(e,t){var n=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative",r=this;return an(t)||(t=vn),new no(function(o){var i=new tn;return i.setDisposable(t[n](e,function(){i.setDisposable(r.subscribe(o))})),i},this)},Cn.skipLastWithTime=function(e,t){an(t)||(t=vn);var n=this;return new no(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)},Cn.takeLastWithTime=function(e,t){var n=this;return an(t)||(t=vn),new no(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)},Cn.takeLastBufferWithTime=function(e,t){var n=this;return an(t)||(t=vn),new no(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)},Cn.takeWithTime=function(e,t){var n=this;return an(t)||(t=vn),new no(function(r){return new Gt(t.scheduleWithRelative(e,function(){r.onCompleted()}),n.subscribe(r))},n)},Cn.skipWithTime=function(e,t){var n=this;return an(t)||(t=vn),new no(function(r){var o=!1;return new Gt(t.scheduleWithRelative(e,function(){o=!0}),n.subscribe(function(e){o&&r.onNext(e)},r.onError.bind(r),r.onCompleted.bind(r)))},n)},Cn.skipUntilWithTime=function(e,t){an(t)||(t=vn);var n=this,r=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new no(function(o){var i=!1;return new Gt(t[r](e,function(){i=!0}),n.subscribe(function(e){i&&o.onNext(e)},function(e){o.onError(e)},function(){o.onCompleted()}))},n)},Cn.takeUntilWithTime=function(e,t){an(t)||(t=vn);var n=this,r=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new no(function(o){return new Gt(t[r](e,function(){o.onCompleted()}),n.subscribe(o))},n)},Cn.throttle=function(e,t){an(t)||(t=vn);var n=+e||0;if(0>=n)throw new RangeError("windowDuration cannot be less or equal zero.");var r=this;return new no(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)},Cn.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 no(function(r){var o=e(t(r));return n.subscribe(function(e){var t=$e(o["@@transducer/step"]).call(o,r,e);t===Xe&&r.onError(t.e)},function(e){r.onError(e)},function(){o["@@transducer/result"](r)})},n)},Cn.switchFirst=function(){var e=this;return new no(function(t){var n=!1,r=!1,o=new en,i=new Gt;return i.add(o),o.setDisposable(e.subscribe(function(e){if(!n){n=!0,Ye(e)&&(e=Vn(e));var o=new en;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)},Cn.flatMapFirst=Cn.selectManyFirst=function(e,t,n){return new Mn(this,e,t,n).switchFirst()},Ve.Observable.prototype.flatMapWithMaxConcurrent=function(e,t,n,r){return new Mn(this,t,n,r).merge(e)};Ve.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(),$t}function s(i,s){this.clock=i,this.comparer=s,this.isEnabled=!1,this.queue=new Kt(1024),e.call(this,t,n,r,o)}Bt(s,e);var a=s.prototype;return a.add=ut,a.toDateTimeOffset=ut,a.toRelative=ut,a.schedulePeriodicWithState=function(e,t,n){var r=new ln(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 it;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 it;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 it;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 rn(this,e,r,t,this.comparer);return this.queue.enqueue(i),i.disposable},s}(on);Ve.HistoricalScheduler=function(e){function t(t,n){var r=null==t?0:t,o=n||He;e.call(this,r,o)}Bt(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}(Ve.VirtualTimeScheduler);var no=Ve.AnonymousObservable=function(e){function t(e){return e&&Qe(e.dispose)?e:Qe(e)?Xt(e):$t}function n(e,n){var r=n[0],o=n[1],i=$e(o.__subscribe).call(o,r);return i!==Xe||r.fail(Xe.e)?void r.setDisposable(t(i)):c(Xe.e)}function r(e){var t=new ro(e),r=[t,this];return hn.scheduleRequired()?hn.scheduleWithState(r,n):n(null,r),t}function o(t,n){this.source=n,this.__subscribe=t,e.call(this,r)}return Bt(o,e),o}(Pn),ro=function(e){function t(t){e.call(this),this.observer=t,this.m=new en}Bt(t,e);var n=t.prototype;return n.next=function(e){var t=$e(this.observer.onNext).call(this.observer,e);t===Xe&&(this.dispose(),c(t.e))},n.error=function(e){var t=$e(this.observer.onError).call(this.observer,e);this.dispose(),t===Xe&&c(t.e)},n.completed=function(){var e=$e(this.observer.onCompleted).call(this.observer);this.dispose(),e===Xe&&c(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}(_n),oo=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 no(function(e){return new Gt(o.getDisposable(),r.subscribe(e))}):r}return Bt(n,e),n}(Pn),io=Ve.Subject=function(e){function t(e){return Jt(this),this.isStopped?this.hasError?(e.onError(this.error),$t):(e.onCompleted(),$t):(this.observers.push(e),new Kr(this,e))}function n(){e.call(this,t),this.isDisposed=!1,this.isStopped=!1,this.observers=[],this.hasError=!1}return Bt(n,e),qt(n.prototype,Tn.prototype,{hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(Jt(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(Jt(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(Jt(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 ao(e,t)},n}(Pn),so=Ve.AsyncSubject=function(e){function t(e){return Jt(this),this.isStopped?(this.hasError?e.onError(this.error):this.hasValue?(e.onNext(this.value),e.onCompleted()):e.onCompleted(),$t):(this.observers.push(e),new Kr(this,e))}function n(){e.call(this,t),this.isDisposed=!1,this.isStopped=!1,this.hasValue=!1,this.observers=[],this.hasError=!1}return Bt(n,e),qt(n.prototype,Tn,{hasObservers:function(){return Jt(this),this.observers.length>0},onCompleted:function(){var e,t;if(Jt(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(Jt(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){Jt(this),this.isStopped||(this.value=e,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.exception=null,this.value=null}}),n}(Pn),ao=Ve.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 Bt(n,e),qt(n.prototype,Tn.prototype,{onCompleted:function(){this.observer.onCompleted()},onError:function(e){this.observer.onError(e)},onNext:function(e){this.observer.onNext(e)}}),n}(Pn);Ve.Pauser=function(e){function t(){e.call(this)}return Bt(t,e),t.prototype.pause=function(){this.onNext(!1)},t.prototype.resume=function(){this.onNext(!0)},t}(io),We.Rx=Ve,r=function(){return Ve}.call(t,n,t,e),!(r!==s&&(e.exports=r));var uo=f()}).call(this)}).call(t,n(157)(e),function(){return this}(),n(1))},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=p[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(a(r.parts[i],t))}else{for(var s=[],i=0;i<r.parts.length;i++)s.push(a(r.parts[i],t));p[r.id]={id:r.id,refs:1,parts:s}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],s=o[1],a=o[2],u=o[3],c={css:s,media:a,sourceMap:u};n[i]?n[i].parts.push(c):t.push(n[i]={id:i,parts:[c]})}return t}function i(){var e=document.createElement("style"),t=f();return e.type="text/css",t.appendChild(e),e}function s(){var e=document.createElement("link"),t=f();return e.rel="stylesheet",t.appendChild(e),e}function a(e,t){var n,r,o;if(t.singleton){var a=v++;n=m||(m=i()),r=u.bind(null,n,a,!1),o=u.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(),r=l.bind(null,n),o=function(){n.parentNode.removeChild(n),n.href&&URL.revokeObjectURL(n.href)}):(n=i(),r=c.bind(null,n),o=function(){n.parentNode.removeChild(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function u(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function c(e,t){var n=t.css,r=t.media;t.sourceMap;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function l(e,t){var n=t.css,r=(t.media,t.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var p={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},d=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),f=h(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,v=0;e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=d());var n=o(e);return r(n,t),function(e){for(var i=[],s=0;s<n.length;s++){var a=n[s],u=p[a.id];u.refs--,i.push(u)}if(e){var c=o(e);r(c,t)}for(var s=0;s<i.length;s++){var u=i[s];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete p[u.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var r=n(167);"string"==typeof r&&(r=[[e.id,r,""]]);n(315)(r,{});r.locals&&(e.exports=r.locals)}]));
+primaryText:e,style:this.props.listStyle,onClick:this.setCategory})},setCategory:function(){this.props.settingsActions.setCategory(this.props.categoryKey)}}),y=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,u={position:"absolute",cursor:"pointer",top:"2rem",right:".75rem",fontSize:"1rem",color:"#AAA"};return i["default"].createElement("div",{style:{backgroundColor:s.sideBar.backgroundColor,borderRight:s.sideBar.borderStyle},className:"left-bar"},i["default"].createElement("div",{style:{padding:"1rem 1rem 0",position:"relative"}},i["default"].createElement(p["default"],{hintText:t.i18n.getTranslation("search"),style:{width:"100%"},onChange:this.search,ref:"searchBox"}),this.state&&this.state.showCloseButton?i["default"].createElement(m["default"],{style:u,className:"material-icons",onClick:this.clearSearchBox},"clear"):null),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(v,{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:14,fontWeight:r===o?"bold":"inherit"}})})))},search:function(e){this.setState({showCloseButton:Boolean(e.target.value)}),d["default"].searchSettings(e.target.value)},clearSearchBox:function(){this.refs.searchBox.getValue()&&(this.refs.searchBox.setValue(""),this.setState({showCloseButton:!1}),d["default"].searchSettings(""))}});t["default"]=y,e.exports=t["default"]},97,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(114),a=r(s),u=n(58),c=r(u),l=n(29),p=r(l),h=n(18),d=r(h),f=n(117),m=r(f),v=n(105),y=r(v),g=n(71),b=r(g),w=n(42),E=r(w),T=n(97),x=r(T),C=n(162),_=r(C),S=n(161),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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=r(i),a=n(120),u=r(a);t["default"]=s["default"].createClass({displayName:"SelectFieldAsyncSource.component",propTypes:{menuItemsSource:s["default"].PropTypes.func},getInitialState:function(){return{menuItems:[]}},componentWillMount:function(){var e=this;this.props.menuItemsSource().then(function(t){e.setState({menuItems:t})})},render:function(){return s["default"].createElement(u["default"],o({},this.props,{menuItems:this.state.menuItems}))}}),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return e.level-t.level}function i(e){return e.response&&e.response.importCount&&1===e.response.importCount.imported?Promise.resolve(e):Promise.reject(e)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(102),a=r(s),u=n(97),c=r(u),l=n(57),p=a["default"].createActionsFromNames(["loadDataApprovalLevels","editDataApprovalLevel","saveDataApprovalLevel","deleteDataApprovalLevel"]);p.loadDataApprovalLevels.subscribe(function(e){var t=e.complete,n=e.error;l.getInstance().then(function(e){return e.models.dataApprovalLevel.list({paging:!1})}).then(function(e){return e.toArray()}).then(function(e){return e.sort(o)}).then(function(e){return c["default"].setState(e)}).then(t)["catch"](n)}),p.saveDataApprovalLevel.subscribe(function(e){var t=e.data,n=e.complete,r=e.error,o=c["default"].getState();Array.isArray(o)&&(console.log(o),o.filter(function(e){return e.orgUnitLevel===t.organisationUnitLevel.level}).forEach(function(e){return console.log(e)}));var s={name:t.organisationUnitLevel.name,orgUnitLevel:t.organisationUnitLevel.level};t.categoryOptionGroupSet&&(s.categoryOptionGroupSet={id:t.categoryOptionGroupSet.id},s.name=t.organisationUnitLevel.name+" "+t.categoryOptionGroupSet.name),l.getInstance().then(function(e){return e.Api.getApi()}).then(function(e){return e.post("dataApprovalLevels",s)}).then(i).then(function(e){return n(e),e}).then(function(){return p.loadDataApprovalLevels()})["catch"](function(e){e.response&&e.response.importConflicts&&r(e.response.importConflicts),r(e)})}),p.deleteDataApprovalLevel.subscribe(function(e){var t=e.data,n=e.complete,r=e.error;t["delete"]().then(n)["catch"](r).then(function(){return p.loadDataApprovalLevels()})}),t["default"]=p,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(111),a=r(s);t["default"]=i["default"].createClass({displayName:"MultiToggle.component",propTypes:{label:i["default"].PropTypes.string.isRequired,onChange:i["default"].PropTypes.func.isRequired,items:i["default"].PropTypes.arrayOf(i["default"].PropTypes.shape({name:i["default"].PropTypes.string.isRequired,value:i["default"].PropTypes.bool,text:i["default"].PropTypes.string.isRequired})),style:i["default"].PropTypes.object},contextTypes:{muiTheme:i["default"].PropTypes.object},getInitialState:function(){return{values:this.props.items.reduce(function(e,t){return t.value&&e.push(t.name),e},[])}},render:function(){var e=this,t=Object.assign({},this.context.muiTheme.forms,this.props.style);return i["default"].createElement("div",null,i["default"].createElement("div",{style:{marginTop:16,marginBottom:8}},this.props.label),this.props.items.map(function(n){return i["default"].createElement(a["default"],{key:n.name,name:n.name,value:"true",defaultChecked:n.value===!0,label:n.text,onCheck:e._handleToggle.bind(e,n.name),style:t,labelPosition:"right"})}))},_handleToggle:function(e,t,n){var r=this;this.setState(function(t){return n?-1===t.values.indexOf(e)&&t.values.push(e):-1!==t.values.indexOf(e)&&t.values.splice(t.values.indexOf(e),1),t},function(){r.props.onChange({target:{value:r.state.values}})})}}),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){for(var e="0123456789abcdef",t="",n=0;32>n;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(37),u=r(a),c=n(58),l=r(c),p=n(114),h=r(p),d=n(29),f=r(d),m=n(18),v=r(m),y=n(117),g=r(y),b=n(59),w=r(b),E=n(105),T=r(E),x=n(71),C=r(x),_=n(106),S=r(_),N=n(42),O=r(N),D=n(163),P=r(D),k=n(98),M=r(k),A=n(165),R=r(A),I=n(101),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,primaryAction:e.edit})))},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}),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(103),i=n(57),s=n(98),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"]},97,function(e,t,n){t=e.exports=n(168)(),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{cursor:pointer;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:#fff;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:3rem;margin-left:256px}',""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},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(42),c=r(u),l=n(210),p=r(l),h=n(209),d=r(h),f=n(29),m=r(f),v=i["default"].createClass({displayName:"DataTableContextMenu",propTypes:{actions:i["default"].PropTypes.objectOf(i["default"].PropTypes.func),activeItem:i["default"].PropTypes.object,coords:i["default"].PropTypes.shape({X:i["default"].PropTypes.number,Y:i["default"].PropTypes.number}),icons:i["default"].PropTypes.object},mixins:[c["default"]],getDefaultProps:function(){return{coords:{X:0,Y:0},icons:{}}},getInitialState:function(){return{actions:this.props.actions||{}}},render:function(){var e=this,t=a["default"]("data-table__context-menu"),n=Object.keys(this.state.actions).filter(function(t){return"function"==typeof e.state.actions[t]});return i["default"].createElement("div",{className:t,style:{position:"absolute",top:this.props.coords.Y,left:this.props.coords.X}},i["default"].createElement(p["default"],{openDirection:"bottom-right",desktop:!0},n.map(function(t){var n=e.props.icons[t]?e.props.icons[t]:t;return i["default"].createElement(d["default"],{key:t,className:"data-table__context-menu__item",onClick:e.handleClick.bind(e,t),primaryText:e.getTranslation(t),leftIcon:i["default"].createElement(m["default"],{className:"material-icons"},n)})})))},handleClick:function(e){this.props.actions[e].apply(this.props.actions,[this.props.activeItem])}});t["default"]=v,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(72),i=n(3),s=r(i),a=n(41),u=r(a),c=n(42),l=r(c),p=s["default"].createClass({displayName:"DataTableHeader",propTypes:{isOdd:s["default"].PropTypes.bool,isEven:s["default"].PropTypes.bool,name:s["default"].PropTypes.string.isRequired},mixins:[l["default"]],render:function(){var e=u["default"]("data-table__headers__header",{"data-table__headers__header--even":!this.props.isOdd,"data-table__headers__header--odd":this.props.isOdd});return s["default"].createElement("div",{className:e},this.getTranslation(o.camelCaseToUnderscores(this.props.name)))}});t["default"]=p,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(41),a=r(s),u=n(72),c=i["default"].createClass({displayName:"DataTableRow",propTypes:{columns:i["default"].PropTypes.arrayOf(i["default"].PropTypes.string).isRequired,dataSource:i["default"].PropTypes.object,isEven:i["default"].PropTypes.bool,isOdd:i["default"].PropTypes.bool,itemClicked:i["default"].PropTypes.func.isRequired,primaryClick:i["default"].PropTypes.func.isRequired},render:function(){var e=this,t=a["default"]("data-table__rows__row",{"data-table__rows__row--even":!this.props.isOdd,"data-table__rows__row--odd":this.props.isOdd}),n=this.props.columns.map(function(t,n){var r=e.props.dataSource[t],o=void 0;return o=u.isObject(r)?r.displayName||r.name||r:r,i["default"].createElement("div",{key:n,className:"data-table__rows__row__column"},o)});return i["default"].createElement("div",{className:t,onContextMenu:this.handleContextClick,onClick:this.handleClick},n)},handleContextClick:function(e){e.preventDefault(),this.props.itemClicked(e,this.props.dataSource)},handleClick:function(){this.props.primaryClick(this.props.dataSource)}});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,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=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}},c=n(3),l=r(c),p=n(41),h=r(p),d=function(e){function t(){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return i(t,e),a(t,[{key:"render",value:function(){return null}}]),t}(l["default"].Component),f=l["default"].createClass({displayName:"FormField",propTypes:{type:l["default"].PropTypes.func.isRequired,isValid:l["default"].PropTypes.bool.isRequired,errorMessage:l["default"].PropTypes.string,fieldOptions:l["default"].PropTypes.object.isRequired,value:l["default"].PropTypes.any,updateFn:l["default"].PropTypes.func.isRequired,updateEvent:l["default"].PropTypes.oneOf(["onChange","onBlur"])},getDefaultProps:function(){return{type:d,validators:[]}},renderHelpText:function(){var e={color:"#888",fontSize:".75rem"};return this.props.fieldOptions&&this.props.fieldOptions.helpText?l["default"].createElement("div",{style:e},this.props.fieldOptions.helpText):null},render:function(){var e=this,t=h["default"]("form-field"),n=this.props.updateFn,r=void 0;return"onBlur"===this.props.updateEvent&&(r=function(t){t.target.value!==e.props.value&&e.props.updateFn(t)},n=void 0),l["default"].createElement("div",{className:t},l["default"].createElement(this.props.type,s({errorText:this.props.errorMessage,defaultValue:this.props.value,onChange:n,onBlur:r},this.props.fieldOptions)),this.renderHelpText())}});t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return null===e}function i(e){return void 0===e}function s(e){return""===e}function a(e){return s(e)||i(e)}function u(e){return Boolean(e)||"field_required"}function c(e){return a(e)?!0:f.test(e)||"field_should_be_an_url"}function l(e){return a(e)?!0:m.test(e)||"field_should_be_an_email"}function p(e){return e||0===e?d["default"](Number(e))||"field_should_be_a_number":!0}Object.defineProperty(t,"__esModule",{value:!0}),t.isNull=o,t.isUndefined=i,t.isEmptyString=s,t.isEmptyStringOrUndefined=a,t.isRequired=u,t.isUrl=c,t.isEmail=l,t.isNumber=p;var h=n(196),d=r(h),f=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/i,m=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,v=new Map([["required",u],["url",c],["number",p],["email",l]]);t.wordToValidatorMap=v,t["default"]={isRequired:u,isUrl:c,isNumber:p,isEmail:l,isEmptyString:s,isNull:o,isUndefined:i}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){try{return localStorage.setItem("dhis2.menu.localstorage.test","dhis2.menu.localstorage.test"),localStorage.removeItem("dhis2.menu.localstorage.test"),!0}catch(e){return!1}}function s(e){return i()&&(localStorage.setItem("dhis2.menu.ui.headerBar.userStyle",e.userStyleUrl),localStorage.setItem("dhis2.menu.ui.headerBar.logo",e.logo),localStorage.setItem("dhis2.menu.ui.headerBar.title",e.title),
+localStorage.setItem("dhis2.menu.ui.headerBar.link",e.link)),e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),u=r(a);n(179),n(176),n(175);var c=n(56),l=r(c),p=n(37),h=r(p),d="light_blue",f="light_blue/light_blue.css",m="dhis-web-commons/css",v=u["default"].createClass({displayName:"HeaderBar",contextTypes:{d2:u["default"].PropTypes.object.isRequired},getInitialState:function(){return{headerBar:{}}},componentWillMount:function(){var e=this;l["default"].menu.ui.initMenu(),this.getSystemSettings(this.context.d2).then(this.getHeaderBarData)["catch"](this.loadDataFromLocalStorageIfAvailable).then(s).then(function(t){e.setHeaderData(t.userStyleUrl,t.logo,t.title,t.link)})},getSystemSettings:function(e){return e.system.settings.all()},getHeaderBarData:function(e){return this.requestUserStyle()["catch"](function(){return h["default"].info("Unable to load usersettings, falling back to systemSettings"),localStorage.setItem("dhis2.menu.ui.headerBar.userStyle",e.currentStyle),e.currentStyle}).then(function(t){return{userStyleUrl:t||e.currentStyle,logo:e.keyCustomTopMenuLogo,title:e.applicationTitle,link:e.startModule}})},getBaseUrl:function(){return this.context.d2.Api.getApi().baseUrl.replace(/\/api\/?$/,"")},getStyleLogoUrl:function(e){return[this.getBaseUrl(),m,e,"logo_banner.png"].join("/")},getStylesheetUrl:function(e){return[this.getBaseUrl(),m,"themes",e||f].join("/")},getStyleName:function(e){return"string"==typeof e&&e.split("/")[0]&&e.split("/").length>0?e.split("/")[0]:d},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 u["default"].createElement("div",{className:"header-bar",style:e,id:"header"},u["default"].createElement("a",{href:this.state.headerBar.link,title:this.state.headerBar.title,className:"title-link"},u["default"].createElement("img",{className:"header-logo",src:this.state.headerBar.logo,id:"headerBanner",style:t}),u["default"].createElement("span",{className:"header-text",id:"headerText",style:n},this.state.headerBar.title)),u["default"].createElement("div",null,this.state.headerBar.message),u["default"].createElement("div",{id:"dhisDropDownMenu"}))},loadDataFromLocalStorageIfAvailable:function(){var e=void 0,t=void 0,n=void 0,r=void 0;return i()&&(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(d))},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('<link href="'+e+'" type="text/css" rel="stylesheet" media="screen,print" />')}});t["default"]=v,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(56),i=r(o),s=n(178),a=r(s),u=n(177),c=r(u);r(u);!function(e,t,n){function r(e){return"[object Function]"==Object.prototype.toString.call(e)}function o(e,t,n){u.ajax({url:p()+e,headers:{"Content-type":"application/json; charset=utf-8"},method:"GET"}).success(function(e){t(e.modules,n)})}function s(e){var t,n=function(){};return n.prototype=new Error,t=new n,t.message=e,t.toString=function(){return"MenuError: "+this.message+" \n"},t}function a(e){var t,o=function(){};return e===n&&(e={renderers:[],eventsHandlers:[],name:"",hooks:{open:[],close:[]}},e.hooks.call=function(t){e.hooks[t]&&e.hooks[t].forEach(function(e){r(e)&&e.apply(t)})}),o.prototype=e,t=new o,t.render=function(n){u(document).ready(function(){e.renderers.forEach(function(e){r(e)&&e(n)}),e.eventsHandlers.forEach(function(e){r(e)&&e(document.querySelector("#"+t.name+"Button"))})})},t}var u=n,c={},l={},p=i["default"].settings.getBaseUrl=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 r,o=e.split("/");if(t.baseUrl===n)return"..";if("string"!=typeof t.baseUrl)throw new TypeError("Dhis2 settings: baseUrl should be a string");return/^http\:\/\//.test(i["default"].settings.baseUrl)?i["default"].settings.baseUrl:(""===o[o.length-1]?(o.pop(),o.push(i["default"].settings.baseUrl),r=o.join("/")):r=[e,i["default"].settings.baseUrl].join("/"),r)}}();l={ulWrapId:"menuLinkArea",aMenuLinkClasses:"menu-link drop-down-menu-link"},c.itemItemplate='<li data-id="{{id}}" data-app-name="{{name}}" data-app-action="{{baseUrl}}{{defaultAction}}"><a href="{{baseUrl}}{{defaultAction}}" class="app-menu-item"><img src="{{baseUrl}}{{icon}}" onError="javascript: this.onerror=null; this.src = \''+p()+'/icons/program.png\';"><span>{{name}}</span><div class="app-menu-item-description"><span class="bold">{{name}}</span><i class="fa fa-arrows"></i><p>{{description}}</p></div></a></li>',c.menuLink='<li id="{{id}}Button"><a id="{{id}}Link" class="{{classes}}"><i class="fa fa-{{iconName}}"></i>{{menuItemName}}</a><div class="app-menu-dropdown-wrap"><div class="app-menu-dropdown"><div class="caret-up-border"></div><div class="caret-up-background"></div><ul class="menuDropDownBox">{{menuItems}}</ul><div class="menu-drop-down-buttons"></div></div></div></li>',c.menuLinkWithScroll='<li id="{{id}}Button"><a id="{{id}}Link" class="{{classes}}"><i class="fa fa-{{iconName}}"></i>{{menuItemName}}</a><div class="app-menu-dropdown-wrap"><div class="app-menu-dropdown"><div class="caret-up-border"></div><div class="caret-up-background"></div><div class="menu-drop-down-wrap"><div class="menu-drop-down-scroll"><ul class="menuDropDownBox">{{menuItems}}</ul></div></div><div class="menu-drop-down-buttons"><div class="apps-menu-bottom-button apps-scroll apps-scroll-up"><a class="fa fa-caret-up" href="#"></a></div><div class="apps-menu-bottom-button apps-scroll apps-scroll-down"><a class="fa fa-caret-down" href="#"></a></div></div></div></div></li>',c.search='<div class="apps-search-wrap"><input class="apps-search" type="text" placeholder="{{search_apps}}"><i class="apps-search-clear fa fa-times-circle"></i></div>',c.extraLink='<div class="apps-menu-bottom-button apps-menu-more"><a href="{{url}}">{{text}}</a></div>';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",'<ul id="{{id}}"></ul>'),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(56),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.searchScore<t.searchScore?-1:e.searchScore>t.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(56),i=r(o),s=n(37),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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(183),a=r(s),u=n(14),c=function(){function e(){o(this,e)}return i(e,null,[{key:"create",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(182),u=r(a),c=Symbol("models"),l=new Set(["userCredentials","userGroups","userRoles","organisationUnits","dataViewOrganisationUnits"]),p={READ:["READ"],CREATE:["CREATE","CREATE_PUBLIC","CREATE_PRIVATE"],CREATE_PUBLIC:["CREATE_PUBLIC"],CREATE_PRIVATE:["CREATE_PRIVATE"],DELETE:["DELETE"],UPDATE:["UPDATE"],EXTERNALIZE:["EXTERNALIZE"]},h=Array.from(l).reduce(function(e,t){return e[t]=Symbol(t),e},{}),d=function(){function e(t,n,r){o(this,e),Object.assign(this,i(t)),this.authorities=n,this[c]=r}return s(e,[{key:"getUserGroups",value:function(){var e=this[h.userGroups];return this[c].userGroup.get({filter:["id:in:["+e.join(",")+"]"]})}},{key:"getUserRoles",value:function(){var e=this[h.userRoles];return this[c].userRole.get({filter:["id:in:["+e.join(",")+"]"]})}},{key:"getOrganisationUnits",value:function(){var e=this[h.organisationUnits];return this[c].organisationUnit.get({filter:["id:in:["+e.join(",")+"]"]})}},{key:"getDataViewOrganisationUnits",value:function(){var e=this[h.dataViewOrganisationUnits];return this[c].organisationUnit.get({filter:["id:in:["+e.join(",")+"]"]})}},{key:"checkAuthorityForType",value:function(e,t){var n=this;return t&&Array.isArray(t.authorities)?t.authorities.filter(function(t){return e.some(function(e){return e===t.type})}).some(function(e){return e.authorities.some(function(e){return n.authorities.has(e)})}):!1}},{key:"canCreate",value:function(e){return this.checkAuthorityForType(p.CREATE,e)}},{key:"canCreatePublic",value:function(e){return this.checkAuthorityForType(p.CREATE_PUBLIC,e)}},{key:"canCreatePrivate",value:function(e){return this.checkAuthorityForType(p.CREATE_PRIVATE,e)}},{key:"canDelete",value:function(e){return this.checkAuthorityForType(p.DELETE,e)}},{key:"canUpdate",value:function(e){return this.checkAuthorityForType(p.UPDATE,e)?!0:this.checkAuthorityForType(p.CREATE,e)}},{key:"uiLocale",get:function(){return this.userSettings&&this.userSettings.keyUiLocale?this.userSettings.keyUiLocale:"en"}}],[{key:"create",value:function(t,n,r){return new e(t,u["default"].create(n),r)}}]),e}();t["default"]=d,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=Symbol(),i=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];n(this,e),this[o]=new Set(t)}return r(e,[{key:"has",value:function(e){return this[o].has("ALL")?!0:this[o].has(e)}}],[{key:"create",value:function(t){return new e(t)}}]),e}();t["default"]=i,e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={baseUrl:"/api",i18n:{sources:new Set,strings:new Set}},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){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=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(43),u=r(a),c=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],n=arguments.length<=1||void 0===arguments[1]?u["default"].getApi():arguments[1];o(this,e),this.sources=t,this.api=n,this.strings=new Set,this.translations=void 0}return s(e,[{key:"addSource",value:function(e){this.sources.push(e)}},{key:"addStrings",value:function(e){var t=this;"string"==typeof e&&e.trim().length>0?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<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(44),s=n(14),a=function(){function e(){r(this,e)}return o(e,[{key:"getTypes",value:function(){return["TEXT","NUMBER","INTEGER","BOOLEAN","EMAIL","PASSWORD","URL","PHONENUMBER","GEOLOCATION","COLOR","COMPLEX","COLLECTION","REFERENCE","DATE","COMPLEX","IDENTIFIER","CONSTANT"]}},{key:"typeLookup",value:function(e){return this.getTypes().indexOf(e)>=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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(14),s={equals:"eq",like:"like",ilike:"ilike"},a=function(){function e(t){r(this,e),this.filters=t,this.propertyName="name",this.comparator="like",this.filterValue=void 0}return o(e,[{key:"on",value:function(e){return i.checkDefined(e,"Property name to filter on"),this.propertyName=e,this}},{key:"getQueryParamFormat",value:function(){return[this.propertyName,this.comparator,this.filterValue].join(":")}}],[{key:"getFilter",value:function(t){return new e(t)}}]),e}();Object.keys(s).forEach(function(e){Object.defineProperty(a.prototype,e,{value:function(t){return i.checkDefined(t,"filterValue"),this.comparator=s[e],this.filterValue=t,this.filters.add(this),this.filters.getReturn()}})}),t["default"]=a,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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(14),a=n(186),u=r(a),c=function(){function e(t){o(this,e),this.filters=[],this.modelDefinition=t}return i(e,[{key:"on",value:function(e){return u["default"].getFilter(this).on(e)}},{key:"add",value:function(e){if(!s.isType(e,u["default"]))throw new TypeError("filter should be an instance of Filter");this.filters.push(e)}},{key:"list",value:function(){return this.modelDefinition.list()}},{key:"getFilters",value:function(){return this.filters.map(function(e){return e.getQueryParamFormat()})}},{key:"getReturn",value:function(){return this.modelDefinition}}],[{key:"getFilters",value:function(t){return new e(t)}}]),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){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e){if(e&&e[Symbol.iterator]){var t=[].concat(o(e));t.forEach(function(e){e instanceof h["default"]||l.throwError("Values of a ModelCollection must be instances of Model")})}}function a(e){if(e&&e[Symbol.iterator]){var t=[].concat(o(e));t.forEach(function(e){c.isValidUid(e.id)||l.throwError("Can not add a Model without id to a ModelCollection")})}}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(14),l=n(44),p=n(74),h=r(p),d=n(108),f=r(d),m=n(191),v=r(m),y=function(){function e(t,n,r){var o=this;i(this,e),c.checkType(t,f["default"]),this.modelDefinition=t,this.pager=new v["default"](r,t),this.valuesContainerMap=new Map,this[Symbol.iterator]=this.valuesContainerMap[Symbol.iterator].bind(this.valuesContainerMap),s(n),a(n),c.isArray(n)&&n.forEach(function(e){return o.add(e)})}return u(e,[{key:"add",value:function(e){return s([e]),a([e]),this.set(e.id,e),this}},{key:"toArray",value:function(){var e=[];return this.forEach(function(t){e.push(t)}),e}},{key:"clear",value:function(){return this.valuesContainerMap.clear.apply(this.valuesContainerMap)}},{key:"delete",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(14),s=function(){function e(){r(this,e)}return o(e,[{key:"add",value:function(e){try{i.checkType(e.name,"string")}catch(t){throw new Error("Name should be set on the passed ModelDefinition to add one")}if(this[e.name])throw new Error(["Model",e.name,"already exists"].join(" "));this[e.name]=e}},{key:"mapThroughDefinitions",value:function(e){var t=[],n=void 0;i.checkType(e,"function","transformer");for(n in this)this.hasOwnProperty(n)&&t.push(e(this[n]));return t}}]),e}();t["default"]=s,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(75),i=r(o),s=n(74),a=r(s),u=n(108),c=r(u),l=n(189),p=r(l),h=n(109),d=r(h);t["default"]={ModelBase:i["default"],Model:a["default"],ModelDefinition:c["default"],ModelDefinitions:p["default"],ModelValidations:d["default"]},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<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(14),s=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{page:1,pageCount:1}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?{list:function(){return Promise.reject("No handler available")}}:arguments[1];r(this,e),this.page=t.page,this.pageCount=t.pageCount,this.total=t.total,this.nextPage=t.nextPage,this.prevPage=t.prevPage,this.pagingHandler=n}return o(e,[{key:"hasNextPage",value:function(){return i.isDefined(this.nextPage)}},{key:"hasPreviousPage",value:function(){return i.isDefined(this.prevPage)}},{key:"getNextPage",value:function(){return this.hasNextPage()?this.goToPage(this.page+1):Promise.reject("There is no next page for this collection")}},{key:"getPreviousPage",value:function(){return this.hasPreviousPage()?this.goToPage(this.page-1):Promise.reject("There is no previous page for this collection")}},{key:"goToPage",value:function(e){if(1>e)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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(194),a=r(s),u=n(193),c=r(u),l=function(){function e(t,n){o(this,e),this.settings=t,this.configuration=n}return i(e,[{key:"getI18nStrings",value:function(){var e=this,t=new Set;return Object.keys(this.settings.mapping).map(function(n){var r=e.settings.mapping[n];if(r.hasOwnProperty("label")&&t.add(r.label),r.hasOwnProperty("description")&&t.add(r.description),r.hasOwnProperty("options"))for(var o in r.options)r.options.hasOwnProperty(o)&&isNaN(r.options[o])&&t.add(r.options[o])}),t}}],[{key:"getSystem",value:function(){return new e(new a["default"],new c["default"])}}]),e}();t["default"]=l,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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(43),a=r(s),u=n(110),c=r(u),l=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?a["default"].getApi():arguments[0];o(this,e),this.api=t,this._configuration=void 0,this._configPromise=null}return i(e,[{key:"all",value:function(e){var t=this;return(null===this._configPromise||e===!0)&&(this._configPromise=this.api.get("configuration").then(function(e){return t._configuration=e,t._configuration})),this._configPromise}},{key:"get",value:function(e,t){return this.all(t).then(function(t){return t.hasOwnProperty(e)?Promise.resolve(t[e]):Promise.reject("Unknown config option: "+e)})}},{key:"set",value:function(e,t){var n=this,r=void 0;if("feedbackRecipients"===e&&"null"===t||null===t)r=this.api["delete"](["configuration",e].join("/"),{dataType:"text"});else if("corsWhitelist"===e)r=this.api.post(["configuration",e].join("/"),t.trim().split("\n"),{dataType:"text"});else{var o=c["default"].hasOwnProperty(e)&&c["default"][e].hasOwnProperty("configuration")&&c["default"][e].configuration;if(!o)return Promise.reject("No configuration found for "+e);console.log(t),r=this.api.post(["configuration",o].join("/"),t,{dataType:"text",contentType:"text/plain"})}return r.then(function(){return n._configuration=void 0,Promise.resolve()})}}]),e}();t["default"]=l,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;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(14),a=n(43),u=r(a),c=n(110),l=r(c),p=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?u["default"].getApi():arguments[0];o(this,e),this.api=t,this.mapping=l["default"]}return i(e,[{key:"all",value:function(){return this.api.get("systemSettings")}},{key:"get",value:function(e){function t(e){try{return JSON.parse(e)}catch(t){return e}return e}var n=this;return new Promise(function(r,o){if(!s.isString(e))throw new TypeError('A "key" parameter should be specified when calling get() on systemSettings');n.api.get(["systemSettings",e].join("/"),void 0,{dataType:"text"}).then(function(e){var n=t(e);n&&r(t(e)),o(new Error("The requested systemSetting has no value or does not exist."))})})}},{key:"set",value:function(e,t){var n=["systemSettings",e].join("/");return null===t||0===(t+"").length?this.api["delete"](n,{dataType:"text"}):this.api.post(n,t,{dataType:"text",contentType:"text/plain"})}}]),e}();t["default"]=p,e.exports=t["default"]},function(e,t){"use strict";var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t){(function(t){function n(e){return"number"==typeof e&&r(e)}var r=t.isFinite;e.exports=n}).call(t,function(){return this}())},function(e,t){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,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=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(46),i=n(125),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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(22),u=n(11),c=n(7),l=n(6),p=i.createClass({displayName:"CircularProgress",mixins:[s],propTypes:{mode:i.PropTypes.oneOf(["determinate","indeterminate"]),value:i.PropTypes.number,min:i.PropTypes.number,max:i.PropTypes.number,size:i.PropTypes.number,color:i.PropTypes.string,innerStyle:i.PropTypes.object},contextTypes:{muiTheme:i.PropTypes.object},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:l.getMuiTheme(c)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},_getRelativeValue:function(){var e=this.props.value,t=this.props.min,n=this.props.max,r=Math.min(Math.max(t,e),n),o=n-t,i=Math.round(r/o*1e4)/1e4;return 100*i},componentDidMount:function(){var e=i.findDOMNode(this.refs.wrapper),t=i.findDOMNode(this.refs.path);this._scalePath(t),this._rotateWrapper(e)},_scalePath:function(e,t){t=t||0,t%=3,setTimeout(this._scalePath.bind(this,e,t+1),t?750:250),this.isMounted()&&"indeterminate"===this.props.mode&&(0===t?(e.style.strokeDasharray="1, 200",e.style.strokeDashoffset=0,e.style.transitionDuration="0ms"):1===t?(e.style.strokeDasharray="89, 200",e.style.strokeDashoffset=-35,e.style.transitionDuration="750ms"):(e.style.strokeDasharray="89,200",e.style.strokeDashoffset=-124,e.style.transitionDuration="850ms"))},_rotateWrapper:function(e){setTimeout(this._rotateWrapper.bind(this,e),10050),this.isMounted()&&"indeterminate"===this.props.mode&&(a.set(e.style,"transform",null),a.set(e.style,"transform","rotate(0deg)"),e.style.transitionDuration="0ms",setTimeout(function(){a.set(e.style,"transform","rotate(1800deg)"),e.style.transitionDuration="10s",a.set(e.style,"transitionTimingFunction","linear")},50))},getDefaultProps:function(){return{mode:"indeterminate",value:0,min:0,max:100,size:1}},getTheme:function(){return this.state.muiTheme.rawTheme.palette},getStyles:function(e){e*=1.4;var t="50px",n=Math.round((50*e-50)/2);0>n&&(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(50),a=n(122),u=n(18),c=n(207),l=n(112),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;p<this.props.menuItems.length;p++)this.props.menuItems[p][this.props.valueMember]===s&&(o=p)}var h=this.props.menuItems[o];h&&(i=h[this.props.displayMember]);var d=this.props.menuItems.map(function(t){return t.text=t[e.props.displayMember],t.payload=t[e.props.valueMember],t});return r.createElement("div",{ref:"root",onKeyDown:this._onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,className:this.props.className,style:this.mergeAndPrefix(n.root,this.state.open&&n.rootWhenOpen,this.props.style)},r.createElement(l,{style:this.mergeAndPrefix(n.control),onTouchTap:this._onControlClick},r.createElement(u,{style:this.mergeAndPrefix(n.controlBg),zDepth:0}),r.createElement("div",{style:this.mergeAndPrefix(n.label,this.state.open&&n.labelWhenOpen,this.props.labelStyle)},i),r.createElement(a,{style:this.mergeAndPrefix(n.icon,this.props.iconStyle)}),r.createElement("div",{style:this.mergeAndPrefix(n.underline,this.props.underlineStyle)})),r.createElement(c,{ref:"menuItems",autoWidth:this.props.autoWidth,selectedIndex:o,menuItems:d,style:n.menu,menuItemStyle:this.mergeAndPrefix(n.menuItem,this.props.menuItemStyle),hideable:!0,visible:this.state.open,onRequestClose:this._onMenuRequestClose,onItemTap:this._onMenuItemClick}),this.state.open&&r.createElement("div",{style:n.overlay,onTouchTap:this._handleOverlayTouchTap}))},_setWidth:function(){var e=r.findDOMNode(this),t=r.findDOMNode(this.refs.menuItems);this.props.style&&this.props.style.hasOwnProperty("width")||(e.style.width="auto",e.style.width=t.offsetWidth+"px")},_setSelectedIndex:function(e){var n=e.selectedIndex;"production"!==t.env.NODE_ENV&&0>n&&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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(22),u=24,c={textarea:{width:"100%",resize:"none",font:"inherit",padding:0},shadow:{width:"100%",resize:"none",overflow:"hidden",font:"inherit",padding:0,position:"absolute",opacity:0}},l=i.createClass({displayName:"EnhancedTextarea",mixins:[s],propTypes:{onChange:i.PropTypes.func,onHeightChange:i.PropTypes.func,textareaStyle:i.PropTypes.object,rows:i.PropTypes.number,rowsMax:i.PropTypes.number},getDefaultProps:function(){return{rows:1}},getInitialState:function(){return{height:this.props.rows*u}},componentDidMount:function(){this._syncHeightWithShadow()},render:function(){var e=this.props,t=(e.onChange,e.onHeightChange,e.rows,e.style),n=e.textareaStyle,s=(e.valueLink,r(e,["onChange","onHeightChange","rows","style","textareaStyle","valueLink"])),u=this.mergeAndPrefix(c.textarea,n,{height:this.state.height}),l=this.mergeAndPrefix(c.shadow);return this.props.hasOwnProperty("valueLink")&&(s.value=this.props.valueLink.value),this.props.disabled&&(t.cursor="default"),i.createElement("div",{style:this.props.style},i.createElement("textarea",{ref:"shadow",style:a.all(l),tabIndex:"-1",rows:this.props.rows,defaultValue:this.props.defaultValue,readOnly:!0,value:this.props.value,valueLink:this.props.valueLink}),i.createElement("textarea",o({},s,{ref:"input",rows:this.props.rows,style:a.all(u),onChange:this._handleChange})))},getInputNode:function(){return i.findDOMNode(this.refs.input)},setValue:function(e){this.getInputNode().value=e,this._syncHeightWithShadow(e)},_syncHeightWithShadow:function(e,t){var n=i.findDOMNode(this.refs.shadow);void 0!==e&&(n.value=e);var r=n.scrollHeight;this.props.rowsMax>this.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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(46),u=n(11),c=n(62),l=n(45),p=n(29),h=n(220),d=n(60),f=n(7),m=n(6),v=i.createClass({displayName:"IconButton",mixins:[s,a],contextTypes:{muiTheme:i.PropTypes.object},statics:{getRelevantContextKeys:function(e){var t=e.rawTheme.spacing,n=e.rawTheme.palette;return{iconSize:t.iconSize,textColor:n.textColor,disabledColor:n.disabledColor}},getChildrenClasses:function(){return[l,p,h]}},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},propTypes:{className:i.PropTypes.string,disabled:i.PropTypes.bool,iconClassName:i.PropTypes.string,iconStyle:i.PropTypes.object,onBlur:i.PropTypes.func,onFocus:i.PropTypes.func,onKeyboardFocus:i.PropTypes.func,tooltip:i.PropTypes.node,tooltipStyles:i.PropTypes.object,tooltipPosition:c.cornersAndCenter,touch:i.PropTypes.bool},getInitialState:function(){return{tooltipShown:!1,muiTheme:this.context.muiTheme?this.context.muiTheme:m.getMuiTheme(f)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getDefaultProps:function(){return{iconStyle:{},tooltipPosition:"bottom-center"}},getStyles:function(){var e=this.constructor.getRelevantContextKeys(this.state.muiTheme),t=e.iconSize,n=e.textColor,r=e.disabledColor,o={root:{position:"relative",boxSizing:"border-box",transition:u.easeOut(),padding:t/2,width:2*t,height:2*t,fontSize:0},tooltip:{boxSizing:"border-box"},icon:{color:n,fill:n},overlay:{position:"relative",top:0,width:"100%",height:"100%",background:r},disabled:{color:r,fill:r}};return o},render:function(){var e=this.props,t=e.disabled,n=e.iconClassName,s=e.tooltip,a=e.touch,u=e.iconStyle,c=r(e,["disabled","iconClassName","tooltip","touch","iconStyle"]),f=void 0,m=this.getStyles(),v=this.props.tooltipPosition.split("-"),y=s?i.createElement(h,{ref:"tooltip",label:s,show:this.state.tooltipShown,touch:a,style:this.mergeStyles(m.tooltip,this.props.tooltipStyles),verticalPosition:v[0],horizontalPosition:v[1]}):null;if(n){var g=u.iconHoverColor,b=r(u,["iconHoverColor"]);f=i.createElement(p,{className:n,hoverColor:t?null:g,style:this.mergeStyles(m.icon,t?m.disabled:{},b)},this.props.children)}var w=t?this.mergeStyles(u,m.disabled):u;return i.createElement(l,o({},c,{ref:"button",centerRipple:!0,disabled:t,style:this.mergeStyles(m.root,this.props.style),onBlur:this._handleBlur,onFocus:this._handleFocus,onMouseLeave:this._handleMouseLeave,onMouseEnter:this._handleMouseEnter,onKeyboardFocus:this._handleKeyboardFocus}),y,f,d.extend(this.props.children,{style:w}))},setKeyboardFocus:function(){this.refs.button.setKeyboardFocus()},_showTooltip:function(){!this.props.disabled&&this.props.tooltip&&this.setState({tooltipShown:!0})},_hideTooltip:function(){this.props.tooltip&&this.setState({tooltipShown:!1})},_handleBlur:function(e){this._hideTooltip(),this.props.onBlur&&this.props.onBlur(e)},_handleFocus:function(e){this._showTooltip(),this.props.onFocus&&this.props.onFocus(e)},_handleMouseLeave:function(e){this.refs.button.isKeyboardFocused()||this._hideTooltip(),this.props.onMouseLeave&&this.props.onMouseLeave(e)},_handleMouseEnter:function(e){this._showTooltip(),this.props.onMouseEnter&&this.props.onMouseEnter(e)},_handleKeyboardFocus:function(e,t){t&&!this.props.disabled?(this._showTooltip(),this.props.onFocus&&this.props.onFocus(e)):this.state.hovered||(this._hideTooltip(),
+this.props.onBlur&&this.props.onBlur(e)),this.props.onKeyboardFocus&&this.props.onKeyboardFocus(e,t)}});e.exports=v},function(e,t,n){"use strict";var r=n(3),o=n(49),i=n(76),s=r.createClass({displayName:"NestedList",propTypes:{nestedLevel:r.PropTypes.number,open:r.PropTypes.bool},getDefaultProps:function(){return{nestedLevel:1,open:!1}},render:function(){var e=this.props,t=e.children,n=e.open,s=e.nestedLevel,a=e.style,u={root:{display:n?null:"none"}};return r.createElement(i,{style:o.merge(u.root,a)},r.Children.map(t,function(e){return r.isValidElement(e)?r.cloneElement(e,{nestedLevel:s+1}):e}))}});e.exports=s},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(3),i=n(4),s=n(7),a=n(6),u=o.createClass({displayName:"LinkMenuItem",mixins:[i],contextTypes:{muiTheme:o.PropTypes.object},propTypes:{index:o.PropTypes.number.isRequired,payload:o.PropTypes.string.isRequired,text:o.PropTypes.string.isRequired,target:o.PropTypes.string,active:o.PropTypes.bool,disabled:o.PropTypes.bool,className:o.PropTypes.string},getDefaultProps:function(){return{active:!1,disabled:!1}},childContextTypes:{muiTheme:o.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:a.getMuiTheme(s),hovered:!1}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getTheme:function(){return this.state.muiTheme.menuItem},getStyles:function(){var e={root:{userSelect:"none",cursor:"pointer",display:"block",lineHeight:this.getTheme().height+"px",paddingLeft:this.getTheme().padding,paddingRight:this.getTheme().padding},rootWhenHovered:{backgroundColor:this.getTheme().hoverColor},rootWhenSelected:{color:this.getTheme().selectedTextColor},rootWhenDisabled:{cursor:"default",color:this.state.muiTheme.rawTheme.palette.disabledColor}};return e},render:function(){var e=this.props.disabled?this._stopLink:void 0,t=this.props.disabled?"data-href":"href",n={};n[t]=this.props.payload;var i=this.getStyles(),s=this.mergeAndPrefix(i.root,this.props.selected&&i.rootWhenSelected,this.props.selected&&i.rootWhenSelected,this.props.active&&!this.props.disabled&&i.rootWhenHovered,this.props.style,this.props.disabled&&i.rootWhenDisabled);return o.createElement("a",r({key:this.props.index,target:this.props.target,style:s},n,{className:this.props.className,onClick:e,onMouseEnter:this._handleMouseEnter,onMouseLeave:this._handleMouseLeave}),this.props.text)},_stopLink:function(e){e.preventDefault()},_handleMouseEnter:function(e){this.setState({hovered:!0}),!this.props.disabled&&this.props.onMouseEnter&&this.props.onMouseEnter(e)},_handleMouseLeave:function(e){this.setState({hovered:!1}),!this.props.disabled&&this.props.onMouseLeave&&this.props.onMouseLeave(e)}});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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(29),u=n(219),c=n(7),l=n(6),p={LINK:"LINK",SUBHEADER:"SUBHEADER",NESTED:"NESTED"},h=i.createClass({displayName:"MenuItem",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{index:i.PropTypes.number.isRequired,className:i.PropTypes.string,iconClassName:i.PropTypes.string,iconRightClassName:i.PropTypes.string,iconStyle:i.PropTypes.object,iconRightStyle:i.PropTypes.object,attribute:i.PropTypes.string,number:i.PropTypes.string,data:i.PropTypes.string,toggle:i.PropTypes.bool,disabled:i.PropTypes.bool,onTouchTap:i.PropTypes.func,onToggle:i.PropTypes.func,selected:i.PropTypes.bool,active:i.PropTypes.bool},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:l.getMuiTheme(c)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},statics:{Types:p},getDefaultProps:function(){return{toggle:!1,disabled:!1,active:!1}},getTheme:function(){return this.state.muiTheme.menuItem},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e={root:{userSelect:"none",cursor:"pointer",lineHeight:this.getTheme().height+"px",paddingLeft:this.getTheme().padding,paddingRight:this.getTheme().padding,color:this.state.muiTheme.rawTheme.palette.textColor},number:{"float":"right",width:24,textAlign:"center"},attribute:{"float":"right"},iconRight:{lineHeight:this.getTheme().height+"px","float":"right"},icon:{"float":"left",lineHeight:this.getTheme().height+"px",marginRight:this.getSpacing().desktopGutter},data:{display:"block",paddingLeft:2*this.getSpacing().desktopGutter,lineHeight:this.getTheme().dataHeight+"px",height:this.getTheme().dataHeight+"px",verticalAlign:"top",top:-12,position:"relative",fontWeight:300,color:this.state.muiTheme.rawTheme.palette.textColor},toggle:{marginTop:(this.getTheme().height-this.state.muiTheme.radioButton.size)/2,"float":"right",width:42},rootWhenHovered:{backgroundColor:this.getTheme().hoverColor},rootWhenSelected:{color:this.getTheme().selectedTextColor},rootWhenDisabled:{cursor:"default",color:this.state.muiTheme.rawTheme.palette.disabledColor}};return e},render:function(){var e=void 0,t=void 0,n=void 0,s=void 0,c=void 0,l=void 0,p=this.getStyles();if(this.props.iconClassName&&(e=i.createElement(a,{style:this.mergeAndPrefix(p.icon,this.props.iconStyle,this.props.selected&&p.rootWhenSelected),className:this.props.iconClassName})),this.props.iconRightClassName&&(n=i.createElement(a,{style:this.mergeAndPrefix(p.iconRight,this.props.iconRightStyle),className:this.props.iconRightClassName})),this.props.data&&(t=i.createElement("span",{style:this.mergeAndPrefix(p.data)},this.props.data)),void 0!==this.props.number&&(c=i.createElement("span",{style:this.mergeAndPrefix(p.number)},this.props.number)),void 0!==this.props.attribute&&(s=i.createElement("span",{style:this.mergeAndPrefix(p.style)},this.props.attribute)),this.props.icon&&(e=this.props.icon),this.props.toggle){var h=this.props,d=(h.toggle,h.onTouchTap,h.onToggle,h.onMouseEnter,h.onMouseLeave,h.children,h.label,h.style,r(h,["toggle","onTouchTap","onToggle","onMouseEnter","onMouseLeave","children","label","style"]));l=i.createElement(u,o({},d,{onToggle:this._handleToggle,style:p.toggle}))}return i.createElement("div",{key:this.props.index,className:this.props.className,onTouchTap:this._handleTouchTap,onMouseEnter:this._handleMouseEnter,onMouseLeave:this._handleMouseLeave,style:this.mergeAndPrefix(p.root,this.props.selected&&p.rootWhenSelected,this.props.active&&!this.props.disabled&&p.rootWhenHovered,this.props.style,this.props.disabled&&p.rootWhenDisabled)},e,this.props.children,c,s,t,l,n)},_handleTouchTap:function(e){!this.props.disabled&&this.props.onTouchTap&&this.props.onTouchTap(e,this.props.index)},_handleToggle:function(e,t){!this.props.disabled&&this.props.onToggle&&this.props.onToggle(e,this.props.index,t)},_handleMouseEnter:function(e){!this.props.disabled&&this.props.onMouseEnter&&this.props.onMouseEnter(e,this.props.index)},_handleMouseLeave:function(e){!this.props.disabled&&this.props.onMouseLeave&&this.props.onMouseLeave(e,this.props.index)}});e.exports=h},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(123),a=n(225),u=n(50),c=n(4),l=n(11),p=n(116),h=n(18),d=n(206),f=n(205),m=n(208),v=n(7),y=n(6),g=i.createClass({displayName:"NestedMenuItem",mixins:[p,c],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{index:i.PropTypes.number.isRequired,text:i.PropTypes.string,menuItems:i.PropTypes.array.isRequired,zDepth:i.PropTypes.number,disabled:i.PropTypes.bool,active:i.PropTypes.bool,onItemTap:i.PropTypes.func,menuItemStyle:i.PropTypes.object},getDefaultProps:function(){return{disabled:!1}},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:y.getMuiTheme(v),open:!1,activeIndex:0}},componentClickAway:function(){this._closeNestedMenu()},componentDidMount:function(){this._positionNestedMenu();var e=this.getDOMNode();e.focus()},componentDidUpdate:function(){this._positionNestedMenu()},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e={root:{userSelect:"none",cursor:"pointer",lineHeight:this.getTheme().height+"px",color:this.state.muiTheme.rawTheme.palette.textColor},icon:{"float":"left",lineHeight:this.getTheme().height+"px",marginRight:this.getSpacing().desktopGutter},toggle:{marginTop:(this.getTheme().height-this.state.muiTheme.radioButton.size)/2,"float":"right",width:42},rootWhenHovered:{backgroundColor:this.getTheme().hoverColor},rootWhenSelected:{color:this.getTheme().selectedTextColor},rootWhenDisabled:{cursor:"default",color:this.state.muiTheme.rawTheme.palette.disabledColor}};return e},getTheme:function(){return this.state.muiTheme.menuItem},render:function(){var e=this.getStyles();e=this.mergeAndPrefix(e.root,this.props.active&&!this.props.disabled&&e.rootWhenHovered,{position:"relative"},this.props.style);var t={marginRight:-1*this.getSpacing().desktopGutterMini,color:this.state.muiTheme.dropDownMenu.accentColor},n=this.props,s=n.index,a=n.menuItemStyle,u=r(n,["index","menuItemStyle"]);return i.createElement("div",{ref:"root",style:e,onMouseEnter:this._openNestedMenu,onMouseLeave:this._closeNestedMenu,onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},i.createElement(d,{index:s,style:a,disabled:this.props.disabled,iconRightStyle:t,iconRightClassName:"muidocs-icon-custom-arrow-drop-right",onTouchTap:this._onParentItemTap},this.props.text),i.createElement(b,o({},u,{ref:"nestedMenu",menuItems:this.props.menuItems,menuItemStyle:a,onItemTap:this._onMenuItemTap,hideable:!0,visible:this.state.open,onRequestClose:this._closeNestedMenu,zDepth:this.props.zDepth+1})))},toggleNestedMenu:function(){this.props.disabled||this.setState({open:!this.state.open})},isOpen:function(){return this.state.open},_positionNestedMenu:function(){var e=i.findDOMNode(this),t=i.findDOMNode(this.refs.nestedMenu);t.style.left=e.offsetWidth+"px"},_openNestedMenu:function(){this.props.disabled||this.setState({open:!0})},_closeNestedMenu:function(){this.setState({open:!1}),i.findDOMNode(this).focus()},_onParentItemTap:function(){this.toggleNestedMenu()},_onMenuItemTap:function(e,t,n){this.props.onItemTap&&this.props.onItemTap(e,t,n),this._closeNestedMenu()},_handleMouseOver:function(e){!this.props.disabled&&this.props.onMouseOver&&this.props.onMouseOver(e,this.props.index)},_handleMouseOut:function(e){!this.props.disabled&&this.props.onMouseOut&&this.props.onMouseOut(e,this.props.index)}}),b=i.createClass({displayName:"Menu",mixins:[c],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{autoWidth:i.PropTypes.bool,onItemTap:i.PropTypes.func,onToggle:i.PropTypes.func,onRequestClose:i.PropTypes.func,menuItems:i.PropTypes.array.isRequired,selectedIndex:i.PropTypes.number,hideable:i.PropTypes.bool,visible:i.PropTypes.bool,zDepth:i.PropTypes.number,menuItemStyle:i.PropTypes.object,menuItemStyleSubheader:i.PropTypes.object,menuItemStyleLink:i.PropTypes.object,menuItemClassName:i.PropTypes.string,menuItemClassNameSubheader:i.PropTypes.string,menuItemClassNameLink:i.PropTypes.string},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:y.getMuiTheme(v),nestedMenuShown:!1,activeIndex:0}},getDefaultProps:function(){return{autoWidth:!0,hideable:!1,visible:!0,zDepth:1,onRequestClose:function(){}}},componentDidMount:function(){var e=i.findDOMNode(this);this._setKeyWidth(e),this._renderVisibility()},componentDidUpdate:function(e){(this.props.visible!==e.visible||this.props.menuItems.length!==e.menuItems.length)&&this._renderVisibility()},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n}),this._setKeyWidth(i.findDOMNode(this))},getTheme:function(){return this.state.muiTheme.menu},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e={root:{backgroundColor:this.getTheme().containerBackgroundColor,paddingTop:this.getSpacing().desktopGutterMini,paddingBottom:this.getSpacing().desktopGutterMini,transition:l.easeOut(null,"height"),outline:"none !important"},subheader:{paddingLeft:this.state.muiTheme.menuSubheader.padding,paddingRight:this.state.muiTheme.menuSubheader.padding},hideable:{overflow:"hidden",position:"absolute",top:0,zIndex:1},item:{height:34}};return e},render:function(){var e=this.getStyles();return i.createElement(h,{ref:"paperContainer",tabIndex:"0",onKeyDown:this._onKeyDown,zDepth:this.props.zDepth,style:this.mergeAndPrefix(e.root,this.props.hideable&&e.hideable,this.props.style)},this._getChildren())},_getChildren:function(){var e=void 0,t=void 0,n=void 0,s=this.getStyles();this._children=[],this._nestedChildren=[];for(var a=0;a<this.props.menuItems.length;a++){e=this.props.menuItems[a],n=void 0===e.disabled?!1:e.disabled;var u=e,c=(u.icon,u.data,u.attribute,u.number,u.toggle,u.onTouchTap,r(u,["icon","data","attribute","number","toggle","onTouchTap"]));switch(e.type){case d.Types.LINK:t=i.createElement(f,{key:a,index:a,active:this.state.activeIndex===a,text:e.text,disabled:n,className:this.props.menuItemClassNameLink,style:this.props.menuItemStyleLink,payload:e.payload,target:e.target});break;case d.Types.SUBHEADER:t=i.createElement(m,{key:a,index:a,className:this.props.menuItemClassNameSubheader,style:this.mergeAndPrefix(s.subheader,this.props.menuItemStyleSubheader),firstChild:0===a,text:e.text});break;case d.Types.NESTED:var l=this.props,c=(l.ref,l.key,l.index,l.zDepth,r(l,["ref","key","index","zDepth"]));t=i.createElement(g,o({},c,{ref:a,key:a,index:a,nested:!0,active:this.state.activeIndex===a,text:e.text,disabled:n,menuItems:e.items,menuItemStyle:this.props.menuItemStyle,zDepth:this.props.zDepth,onMouseEnter:this._onItemActivated,onMouseLeave:this._onItemDeactivated,onItemTap:this._onNestedItemTap})),this._nestedChildren.push(a);break;default:t=i.createElement(d,o({},c,{selected:this.props.selectedIndex===a,key:a,index:a,active:this.state.activeIndex===a,icon:e.icon,data:e.data,className:this.props.menuItemClassName,style:this.props.menuItemStyle,attribute:e.attribute,number:e.number,toggle:e.toggle,onToggle:this.props.onToggle,disabled:n,onTouchTap:this._onItemTap,onMouseEnter:this._onItemActivated,onMouseLeave:this._onItemDeactivated}),e.text)}this._children.push(t)}return this._children},_setKeyWidth:function(e){var t="100%";this.props.autoWidth&&(e.style.width="auto",t=a.getIncrementalDim(e.offsetWidth)+"px"),e.style.width=t},_renderVisibility:function(){this.props.hideable&&(this.props.visible?this._expandHideableMenu():this._collapseHideableMenu())},_expandHideableMenu:function(){var e=this,t=i.findDOMNode(this),n=i.findDOMNode(this.refs.paperContainer),r=this.getSpacing().desktopGutterMini,o=this._getHiddenMenuHeight(t,r);t.style.transition||(t.style.transition=l.easeOut()),this._nextAnimationFrame(function(){n.style.overflow="hidden",t.style.paddingTop=r+"px",t.style.paddingBottom=r+"px",t.style.height=o+"px",t.style.opacity=1,s.onTransitionEnd(t,function(){e.props.visible&&(n.style.overflow="visible"),t.style.transition=null,t.focus()})})},_getHiddenMenuHeight:function(e,t){var n=2*t;return e.style.visibility="hidden",e.style.height="auto",n+=e.offsetHeight,e.style.height="0px",e.style.visibility="visible",n},_collapseHideableMenu:function(){var e=i.findDOMNode(this),t=i.findDOMNode(this.refs.paperContainer),n=e.style.opacity;e.style.transition||""===n||(e.style.transition=l.easeOut()),this._nextAnimationFrame(function(){t.style.overflow="hidden",e.style.opacity=0,e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px";var r=function(){e.style.transition=null};""===n?r():s.onTransitionEnd(e,r)})},_nextAnimationFrame:function(e){return window.requestAnimationFrame?window.requestAnimationFrame(e):setTimeout(e,16)},_onNestedItemTap:function(e,t,n){this.props.onItemTap&&this.props.onItemTap(e,t,n)},_onItemTap:function(e,t){this.props.onItemTap&&this.props.onItemTap(e,t,this.props.menuItems[t])},_onItemToggle:function(e,t,n){this.props.onItemToggle&&this.props.onItemToggle(e,t,this.props.menuItems[t],n)},_onItemActivated:function(e,t){this.setState({activeIndex:t})},_onItemDeactivated:function(e,t){this.state.activeKey===t&&this.setState({activeIndex:0})},_onKeyDown:function(e){if(this.state.open||this.props.visible){var t=this._children[this.state.activeIndex];if(!(t&&t.props.nested&&this.refs[this.state.activeIndex].isOpen())){switch(e.which){case u.UP:this._activatePreviousItem();break;case u.DOWN:this._activateNextItem();break;case u.RIGHT:this._tryToggleNested(this.state.activeIndex);break;case u.LEFT:this._close();break;case u.ESC:this._close();break;case u.TAB:return void this._close();case u.ENTER:case u.SPACE:e.stopPropagation(),this._triggerSelection(e);break;default:return}e.preventDefault(),e.stopPropagation()}}},_activatePreviousItem:function(){var e=this.state.activeIndex||0;e=Math.max(e-1,0),this.setState({activeIndex:e})},_activateNextItem:function(){var e=this.state.activeIndex||0;e=Math.min(e+1,this._children.length-1),this.setState({activeIndex:e})},_triggerSelection:function(e){var t=this.state.activeIndex||0;this._onItemTap(e,t)},_close:function(){this.props.onRequestClose()},_tryToggleNested:function(e){var t=this.refs[e];t&&t.toggleNestedMenu&&t.toggleNestedMenu()}});e.exports=b},function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(47),s=n(7),a=n(6),u=r.createClass({displayName:"SubheaderMenuItem",mixins:[o],contextTypes:{muiTheme:r.PropTypes.object},propTypes:{index:r.PropTypes.number.isRequired,text:r.PropTypes.string.isRequired,firstChild:r.PropTypes.bool,className:r.PropTypes.string},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})},getTheme:function(){return this.state.muiTheme.menuSubheader},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e=this.getSpacing().desktopGutterMini,t=this.getSpacing().desktopSubheaderHeight,n={root:{boxSizing:"border-box",fontSize:"13px",letterSpacing:0,fontWeight:i.fontWeightMedium,margin:0,height:t+e,lineHeight:t+"px",color:this.getTheme().textColor,borderTop:"solid 1px "+this.getTheme().borderColor,paddingTop:e,marginTop:e},rootWhenFirstChild:{height:t,borderTop:"none",paddingTop:0,marginTop:0}};return n},render:function(){return r.createElement("div",{key:this.props.index,className:this.props.className,style:this.mergeAndPrefix(this.getStyles().root,this.props.firstChild&&this.getStyles().rootWhenFirstChild,this.props.style)},this.props.text)}});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;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(4),u=n(19),c=n(216),l=n(115),p=n(7),h=n(6),d=i.createClass({displayName:"MenuItem",mixins:[s,a],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{checked:i.PropTypes.bool,desktop:i.PropTypes.bool,disabled:i.PropTypes.bool,innerDivStyle:i.PropTypes.object,insetChildren:i.PropTypes.bool,focusState:i.PropTypes.oneOf(["none","focused","keyboard-focused"]),leftIcon:i.PropTypes.element,rightIcon:i.PropTypes.element,secondaryText:i.PropTypes.node,value:i.PropTypes.string},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{muiTheme:this.context.muiTheme?this.context.muiTheme:h.getMuiTheme(p)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getDefaultProps:function(){return{focusState:"none"}},componentDidMount:function(){this._applyFocusState()},componentDidUpdate:function(){this._applyFocusState()},render:function(){var e=this.props,t=e.checked,n=e.children,s=e.desktop,a=e.disabled,p=(e.focusState,e.innerDivStyle),h=e.insetChildren,d=e.leftIcon,f=e.rightIcon,m=e.secondaryText,v=e.style,y=(e.value,r(e,["checked","children","desktop","disabled","focusState","innerDivStyle","insetChildren","leftIcon","rightIcon","secondaryText","style","value"])),g=this.state.muiTheme.rawTheme.palette.disabledColor,b=this.state.muiTheme.rawTheme.palette.textColor,w=s?64:72,E=s?24:16,T={root:{color:a?g:b,lineHeight:s?"32px":"48px",fontSize:s?15:16,whiteSpace:"nowrap"},innerDivStyle:{paddingLeft:d||h||t?w:E,paddingRight:E,paddingBottom:0,paddingTop:0},secondaryText:{"float":"right"},leftIconDesktop:{padding:0,left:24,top:4},rightIconDesktop:{padding:0,right:24,top:4,fill:u.grey600}},x=this.mergeStyles(T.root,v),C=this.mergeStyles(T.innerDivStyle,p),_=d?d:t?i.createElement(c,null):null;if(_&&s){var S=this.mergeStyles(T.leftIconDesktop,_.props.style);_=i.cloneElement(_,{style:S})}var N=void 0;if(f){var O=s?this.mergeStyles(T.rightIconDesktop,f.props.style):null;N=i.cloneElement(f,{style:O})}var D=void 0;if(m){var P=i.isValidElement(m),k=P?this.mergeStyles(T.secondaryText,m.props.style):null;D=P?i.cloneElement(m,{style:k}):i.createElement("div",{style:T.secondaryText},m)}return i.createElement(l,o({},y,{disabled:a,innerDivStyle:C,insetChildren:h,leftIcon:_,ref:"listItem",rightIcon:N,style:x}),n,D)},_applyFocusState:function(){this.refs.listItem.applyFocusState(this.props.focusState)}});e.exports=d},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.update,a=n(211),u=n(4),c=n(22),l=n(11),p=n(50),h=n(62),d=n(76),f=n(18),m=n(7),v=n(6),y=i.createClass({displayName:"Menu",mixins:[u,a],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{animated:i.PropTypes.bool,autoWidth:i.PropTypes.bool,desktop:i.PropTypes.bool,initiallyKeyboardFocused:i.PropTypes.bool,listStyle:i.PropTypes.object,maxHeight:i.PropTypes.number,multiple:i.PropTypes.bool,onEscKeyDown:i.PropTypes.func,onItemTouchTap:i.PropTypes.func,onKeyDown:i.PropTypes.func,openDirection:h.corners,selectedMenuItemStyle:i.PropTypes.object,width:h.stringOrNumber,zDepth:h.zDepth},getDefaultProps:function(){return{animated:!1,autoWidth:!0,maxHeight:null,onEscKeyDown:function(){},onItemTouchTap:function(){},onKeyDown:function(){},openDirection:"bottom-left",zDepth:1}},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){var e=this._getSelectedIndex(this.props);return{focusIndex:e>=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;r<n.length;++r)n[r].style.opacity=1},_cloneMenuItem:function(e,t,n){var r=this,o=this.props,s=o.desktop,a=o.selectedMenuItemStyle,u=this._isChildSelected(e,this.props),c={};u&&(c=this.mergeStyles(n.selectedMenuItem,a));var l=this.mergeStyles(e.props.style||{},c),p=t===this.state.focusIndex,h="none";return p&&(h=this.state.isKeyboardFocused?"keyboard-focused":"focused"),i.cloneElement(e,{desktop:s,focusState:h,onTouchTap:function(t){r._handleMenuItemTouchTap(t,e),e.props.onTouchTap&&e.props.onTouchTap(t)},ref:p?"focusedMenuItem":null,style:l})},_decrementKeyboardFocusIndex:function(){var e=this.state.focusIndex;e--,0>e&&(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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(4),u=n(22),c=n(11),l=n(19),p=i.createClass({displayName:"CircleRipple",mixins:[s,a],propTypes:{color:i.PropTypes.string,opacity:i.PropTypes.number},getDefaultProps:function(){return{color:l.darkBlack,opacity:.16}},componentWillAppear:function(e){this._initializeAnimation(e)},componentWillEnter:function(e){this._initializeAnimation(e)},componentDidAppear:function(){this._animate()},componentDidEnter:function(){this._animate()},componentWillLeave:function(e){var t=this,n=i.findDOMNode(this).style;n.opacity=0,setTimeout(function(){t.isMounted()&&e()},2e3)},render:function(){var e=this.props,t=e.color,n=(e.opacity,e.style),s=r(e,["color","opacity","style"]),a=this.mergeAndPrefix({position:"absolute",top:0,left:0,height:"100%",width:"100%",borderRadius:"50%",backgroundColor:t},n);return i.createElement("div",o({},s,{style:a}))},_animate:function(){var e=i.findDOMNode(this).style,t=c.easeOut("2s","opacity")+","+c.easeOut("1s","transform");u.set(e,"transition",t),u.set(e,"transform","scale(1)")},_initializeAnimation:function(e){var t=this,n=i.findDOMNode(this).style;n.opacity=this.props.opacity,u.set(n,"transform","scale(0)"),setTimeout(function(){t.isMounted()&&e()},0)}});e.exports=p},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<arguments.length;t++){
+var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(123),a=n(4),u=n(11),c=n(116),l=n(58),p=n(7),h=n(6),d=i.createClass({displayName:"Snackbar",mixins:[a,c],manuallyBindClickAway:!0,_autoHideTimerId:void 0,contextTypes:{muiTheme:i.PropTypes.object},propTypes:{message:i.PropTypes.string.isRequired,action:i.PropTypes.string,autoHideDuration:i.PropTypes.number,onActionTouchTap:i.PropTypes.func,onShow:i.PropTypes.func,onDismiss:i.PropTypes.func,openOnMount:i.PropTypes.bool},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{open:this.props.openOnMount||!1,muiTheme:this.context.muiTheme?this.context.muiTheme:h.getMuiTheme(p)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},componentDidMount:function(){this.props.openOnMount&&(this._setAutoHideTimer(),this._bindClickAway())},componentClickAway:function(){this.dismiss()},componentDidUpdate:function(e,t){var n=this;t.open!==this.state.open&&(this.state.open?(this._setAutoHideTimer(),s.onTransitionEnd(i.findDOMNode(this),function(){n._bindClickAway()})):this._unbindClickAway())},componentWillUnmount:function(){this._clearAutoHideTimer(),this._unbindClickAway()},getTheme:function(){return this.state.muiTheme.snackbar},getSpacing:function(){return this.state.muiTheme.rawTheme.spacing},getStyles:function(){var e={root:{color:this.getTheme().textColor,backgroundColor:this.getTheme().backgroundColor,borderRadius:2,padding:"0px "+this.getSpacing().desktopGutter+"px",height:this.getSpacing().desktopSubheaderHeight,lineHeight:this.getSpacing().desktopSubheaderHeight+"px",minWidth:288,maxWidth:568,position:"fixed",zIndex:10,bottom:this.getSpacing().desktopGutter,marginLeft:this.getSpacing().desktopGutter,left:0,opacity:0,visibility:"hidden",transform:"translate3d(0, 20px, 0)",transition:u.easeOut("0ms","left","400ms")+","+u.easeOut("400ms","opacity")+","+u.easeOut("400ms","transform")+","+u.easeOut("400ms","visibility")},action:{color:this.getTheme().actionColor,"float":"right",marginTop:6,marginRight:-16,marginLeft:this.getSpacing().desktopGutter,backgroundColor:"transparent"},rootWhenOpen:{opacity:1,visibility:"visible",transform:"translate3d(0, 0, 0)",transition:u.easeOut("0ms","left","0ms")+","+u.easeOut("400ms","opacity","0ms")+","+u.easeOut("400ms","transform","0ms")+","+u.easeOut("400ms","visibility","0ms")}};return e},render:function(){var e=this.props,t=e.action,n=e.message,s=e.onActionTouchTap,a=e.style,u=r(e,["action","message","onActionTouchTap","style"]),c=this.getStyles(),p=this.state.open?this.mergeStyles(c.root,c.rootWhenOpen,a):this.mergeStyles(c.root,a),h=void 0;return t&&(h=i.createElement(l,{style:c.action,label:t,onTouchTap:s})),i.createElement("span",o({},u,{style:p}),i.createElement("span",null,n),h)},show:function(){this.setState({open:!0}),this.props.onShow&&this.props.onShow()},dismiss:function(){this._clearAutoHideTimer(),this.setState({open:!1}),this.props.onDismiss&&this.props.onDismiss()},_clearAutoHideTimer:function(){void 0!==this._autoHideTimerId&&(this._autoHideTimerId=clearTimeout(this._autoHideTimerId))},_setAutoHideTimer:function(){var e=this;this.props.autoHideDuration>0&&(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(48),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(48),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(48),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(48),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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(11),u=n(18),c=n(113),l=n(7),p=n(6),h=i.createClass({displayName:"Toggle",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{elementStyle:i.PropTypes.object,labelStyle:i.PropTypes.object,onToggle:i.PropTypes.func,toggled:i.PropTypes.bool,defaultToggled:i.PropTypes.bool},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},getInitialState:function(){return{switched:this.props.toggled||this.props.defaultToggled||this.props.valueLink&&this.props.valueLink.value||!1,muiTheme:this.context.muiTheme?this.context.muiTheme:p.getMuiTheme(l)}},componentWillReceiveProps:function(e,t){var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},getTheme:function(){return this.state.muiTheme.toggle},getStyles:function(){var e=20,t=36,n={icon:{width:36,padding:"4px 0px 6px 2px"},toggleElement:{width:t},track:{transition:a.easeOut(),width:"100%",height:14,borderRadius:30,backgroundColor:this.getTheme().trackOffColor},thumb:{transition:a.easeOut(),position:"absolute",top:1,left:0,width:e,height:e,lineHeight:"24px",borderRadius:"50%",backgroundColor:this.getTheme().thumbOffColor},trackWhenSwitched:{backgroundColor:this.getTheme().trackOnColor},thumbWhenSwitched:{backgroundColor:this.getTheme().thumbOnColor,left:"100%"},trackWhenDisabled:{backgroundColor:this.getTheme().trackDisabledColor},thumbWhenDisabled:{backgroundColor:this.getTheme().thumbDisabledColor},label:{color:this.props.disabled?this.getTheme().labelDisabledColor:this.getTheme().labelColor}};return n},render:function(){var e=this.props,t=(e.onToggle,r(e,["onToggle"])),n=this.getStyles(),s=this.mergeAndPrefix(n.track,this.props.trackStyle,this.state.switched&&n.trackWhenSwitched,this.props.disabled&&n.trackWhenDisabled),a=this.mergeAndPrefix(n.thumb,this.props.thumbStyle,this.state.switched&&n.thumbWhenSwitched,this.props.disabled&&n.thumbWhenDisabled);this.state.switched&&(a.marginLeft="-"+a.width);var l=this.mergeAndPrefix(n.toggleElement,this.props.elementStyle),p=i.createElement("div",{style:l},i.createElement("div",{style:s}),i.createElement(u,{style:a,circle:!0,zDepth:1})),h=this.mergeAndPrefix({top:-10,left:-10},this.props.rippleStyle),d=this.state.switched?this.getTheme().thumbOnColor:this.state.muiTheme.textColor,f=this.mergeAndPrefix(n.icon,this.props.iconStyle),m=this.mergeAndPrefix(n.label,this.props.labelStyle),v={ref:"enhancedSwitch",inputType:"checkbox",switchElement:p,rippleStyle:h,rippleColor:d,iconStyle:f,trackStyle:s,thumbStyle:a,labelStyle:m,switched:this.state.switched,onSwitch:this._handleToggle,onParentShouldUpdate:this._handleStateChange,defaultSwitched:this.props.defaultToggled,labelPosition:this.props.labelPosition?this.props.labelPosition:"left"};return this.props.hasOwnProperty("toggled")&&(v.checked=this.props.toggled),i.createElement(c,o({},t,v))},isToggled:function(){return this.refs.enhancedSwitch.isSwitched()},setToggled:function(e){this.refs.enhancedSwitch.setSwitched(e)},_handleToggle:function(e,t){this.props.onToggle&&this.props.onToggle(e,t)},_handleStateChange:function(e){this.setState({switched:e})}});e.exports=h},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=n(4),a=n(11),u=n(19),c=n(7),l=n(6),p=i.createClass({displayName:"Tooltip",mixins:[s],contextTypes:{muiTheme:i.PropTypes.object},propTypes:{className:i.PropTypes.string,label:i.PropTypes.node.isRequired,show:i.PropTypes.bool,touch:i.PropTypes.bool,verticalPosition:i.PropTypes.oneOf(["top","bottom"]),horizontalPosition:i.PropTypes.oneOf(["left","right","center"])},childContextTypes:{muiTheme:i.PropTypes.object},getChildContext:function(){return{muiTheme:this.state.muiTheme}},componentDidMount:function(){this._setRippleSize(),this._setTooltipPosition()},componentWillReceiveProps:function(e,t){this._setTooltipPosition();var n=t.muiTheme?t.muiTheme:this.state.muiTheme;this.setState({muiTheme:n})},componentDidUpdate:function(){this._setRippleSize()},getInitialState:function(){return{offsetWidth:null,muiTheme:this.context.muiTheme?this.context.muiTheme:l.getMuiTheme(c)}},getStyles:function(){var e=this.props.verticalPosition,t=this.props.horizontalPosition,n=this.props.touch?10:0,r=this.props.touch?-20:-10,o="bottom"===e?14+n:-14-n,i={root:{position:"absolute",fontFamily:this.state.muiTheme.rawTheme.fontFamily,fontSize:"10px",lineHeight:"22px",padding:"0 8px",color:u.white,overflow:"hidden",top:-1e4,borderRadius:2,userSelect:"none",opacity:0,right:"left"===t?12:null,left:"center"===t?(this.state.offsetWidth-48)/2*-1:null,transition:a.easeOut("0ms","top","450ms")+","+a.easeOut("450ms","transform","0ms")+","+a.easeOut("450ms","opacity","0ms")},label:{position:"relative",whiteSpace:"nowrap"},ripple:{position:"absolute",left:"center"===t?"50%":"left"===t?"100%":"0%",top:"bottom"===e?0:"100%",transform:"translate(-50%, -50%)",borderRadius:"50%",backgroundColor:"transparent",transition:a.easeOut("0ms","width","450ms")+","+a.easeOut("0ms","height","450ms")+","+a.easeOut("450ms","backgroundColor","0ms")},rootWhenShown:{top:"top"===e?r:36,opacity:.9,transform:"translate3d(0px, "+o+"px, 0px)",transition:a.easeOut("0ms","top","0ms")+","+a.easeOut("450ms","transform","0ms")+","+a.easeOut("450ms","opacity","0ms")},rootWhenTouched:{fontSize:"14px",lineHeight:"32px",padding:"0 16px"},rippleWhenShown:{backgroundColor:u.grey700,transition:a.easeOut("450ms","width","0ms")+","+a.easeOut("450ms","height","0ms")+","+a.easeOut("450ms","backgroundColor","0ms")}};return i},render:function(){var e=this.props,t=(e.label,r(e,["label"])),n=this.getStyles();return i.createElement("div",o({},t,{style:this.mergeAndPrefix(n.root,this.props.show&&n.rootWhenShown,this.props.touch&&n.rootWhenTouched,this.props.style)}),i.createElement("div",{ref:"ripple",style:this.mergeAndPrefix(n.ripple,this.props.show&&n.rippleWhenShown)}),i.createElement("span",{style:this.mergeAndPrefix(n.label)},this.props.label))},_setRippleSize:function(){var e=i.findDOMNode(this.refs.ripple),t=window.getComputedStyle(i.findDOMNode(this)),n=parseInt(t.getPropertyValue("width"),10)/("center"===this.props.horizontalPosition?2:1),r=parseInt(t.getPropertyValue("height"),10),o=Math.ceil(2*Math.sqrt(Math.pow(r,2)+Math.pow(n,2)));this.props.show?(e.style.height=o+"px",e.style.width=o+"px"):(e.style.width="0px",e.style.height="0px")},_setTooltipPosition:function(){var e=i.findDOMNode(this);this.setState({offsetWidth:e.offsetWidth})}});e.exports=p},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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=n(4),u=n(22),c=n(11),l=i.createClass({displayName:"ScaleInChild",mixins:[s,a],propTypes:{enterDelay:i.PropTypes.number,maxScale:i.PropTypes.number,minScale:i.PropTypes.number},getDefaultProps:function(){return{enterDelay:0,maxScale:1,minScale:0}},componentWillAppear:function(e){this._initializeAnimation(e)},componentWillEnter:function(e){this._initializeAnimation(e)},componentDidAppear:function(){this._animate()},componentDidEnter:function(){this._animate()},componentWillLeave:function(e){var t=this,n=i.findDOMNode(this).style;n.opacity="0",u.set(n,"transform","scale("+this.props.minScale+")"),setTimeout(function(){t.isMounted()&&e()},450)},render:function(){var e=this.props,t=e.children,n=(e.enterDelay,e.style),s=r(e,["children","enterDelay","style"]),a=this.mergeAndPrefix({position:"absolute",height:"100%",width:"100%",top:0,left:0,transition:c.easeOut(null,["transform","opacity"])},n);return i.createElement("div",o({},s,{style:a}),t)},_animate:function(){var e=i.findDOMNode(this).style;e.opacity="1",u.set(e,"transform","scale("+this.props.maxScale+")")},_initializeAnimation:function(e){var t=this,n=i.findDOMNode(this).style;n.opacity="0",u.set(n,"transform","scale(0)"),setTimeout(function(){t.isMounted()&&e()},this.props.enterDelay)}});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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=i.addons.PureRenderMixin,a=i.addons.TransitionGroup,u=n(4),c=n(221),l=i.createClass({displayName:"ScaleIn",mixins:[s,u],propTypes:{childStyle:i.PropTypes.object,enterDelay:i.PropTypes.number,maxScale:i.PropTypes.number,minScale:i.PropTypes.number},getDefaultProps:function(){return{enterDelay:0}},render:function(){var e=this.props,t=e.children,n=e.childStyle,s=e.enterDelay,u=e.maxScale,l=e.minScale,p=e.style,h=r(e,["children","childStyle","enterDelay","maxScale","minScale","style"]),d=this.mergeAndPrefix({position:"relative",overflow:"hidden",height:"100%"},p),f=i.Children.map(t,function(e){return i.createElement(c,{key:e.key,enterDelay:s,maxScale:u,minScale:l,style:n},e)});return i.createElement(a,o({},h,{style:d,component:"div"}),f)}});e.exports=l},function(e,t){"use strict";function n(e){return"object"==typeof e&&null!==e}var r=function o(e,t){var r={};return Object.keys(e).forEach(function(i){var s=e[i],a=void 0;n(t)&&(a=t[i]),r[i]=n(s)&&!Array.isArray(s)?o(s,a):s}),n(t)&&Object.keys(t).forEach(function(e){var o=t[e];(!n(o)||Array.isArray(o))&&(r[e]=o)}),r};e.exports=r},function(e,t){"use strict";e.exports=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(e,t){"use strict";e.exports={Desktop:{GUTTER:24,GUTTER_LESS:16,INCREMENT:64,MENU_ITEM_HEIGHT:32},getIncrementalDim:function(e){return Math.ceil(e/this.Desktop.INCREMENT)*this.Desktop.INCREMENT}}},function(e,t){"use strict";e.exports=function(e,t,n){function r(e,t){return typeof e===t}function o(e){m.cssText=e}function i(e,t){return o(v.join(e+";")+(t||""))}function s(e,t){return!!~(""+e).indexOf(t)}function a(e,t){for(var r in e){var o=e[r];if(!s(o,"-")&&m[o]!==n)return"pfx"==t?o:!0}return!1}function u(e,t,o){for(var i in e){var s=t[e[i]];if(s!==n)return o===!1?e[i]:r(s,"function")?s.bind(o||t):s}return!1}function c(e,t,n){var o=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+g.join(o+" ")+o).split(" ");return r(t,"string")||r(t,"undefined")?a(i,t):(i=(e+" "+b.join(o+" ")+o).split(" "),u(i,t,n))}var l="2.8.3",p={},h=t.documentElement,d="modernizr",f=t.createElement(d),m=f.style,v=" -webkit- -moz- -o- -ms- ".split(" "),y="Webkit Moz O ms",g=y.split(" "),b=y.toLowerCase().split(" "),w={},E=[],T=E.slice,x=n,C=function(e,r,o,i){var s=n,a=n,u=n,c=n,l=t.createElement("div"),p=t.body,f=p||t.createElement("body");if(parseInt(o,10))for(;o--;)u=t.createElement("div"),u.id=i?i[o]:d+(o+1),l.appendChild(u);return s=["&#173;",'<style id="s',d,'">',e,"</style>"].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<n.length;i++)if(!o(n[i])||e[n[i]]!==t[n[i]])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){var n=c.extractSingleTouch(t);return n?n[e.page]:e.page in t?t[e.page]:t[e.client]+l[e.envScroll]}function o(e,t){var n=r(w.x,t),o=r(w.y,t);return Math.pow(Math.pow(n-e.x,2)+Math.pow(o-e.y,2),.5)}var i=n(13),s=n(64),a=n(32),u=n(40),c=n(229),l=n(87),p=n(195),h=i.topLevelTypes,d=s.isStartish,f=s.isEndish,m=function(e){var t=[h.topTouchCancel,h.topTouchEnd,h.topTouchStart,h.topTouchMove];return t.indexOf(e)>=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.topTouchStart,h.topTouchCancel,h.topTouchEnd,h.topTouchMove],T=[h.topMouseDown,h.topMouseMove,h.topMouseUp].concat(E),x={touchTap:{phasedRegistrationNames:{bubbled:p({onTouchTap:null}),captured:p({onTouchTapCapture:null})},dependencies:T}},C=function(){return Date.now?Date.now:function(){return+new Date}}(),_={tapMoveThreshold:v,ignoreMouseThreshold:y,eventTypes:x,extractEvents:function(e,t,n,i,s){if(m(e))b=C();else if(b&&C()-b<y)return null;if(!d(e)&&!f(e))return null;var c=null,l=o(g,i);return f(e)&&v>l&&(c=u.getPooled(x.touchTap,n,i,s)),d(e)?(g.x=r(w.x,i),g.y=r(w.y,i)):f(e)&&(g.x=0,g.y=0),a.accumulateTwoPhaseDispatches(c),c}};e.exports=_},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(){n(31).injection.injectEventPluginsByName({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(32),m=n(12),v=n(240),y=n(283),g=n(286),b=n(21),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(32),E=n(12),T=n(16),x=n(28),C=n(94),_=n(152),S=n(21),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(138),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<e.length;p++)if(u=e[p],u.type===i.MOVE_EXISTING||u.type===i.REMOVE_NODE){var h=u.fromIndex,d=u.parentNode.childNodes[h],f=u.parentID;"production"!==t.env.NODE_ENV?a(d,"processUpdates(): Unable to find child %s of element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> 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.length;v++)l[v].parentNode.removeChild(l[v]);for(var y=0;y<e.length;y++)switch(u=e[y],u.type){case i.INSERT_MARKUP:r(u.parentNode,m[u.markupIndex],u.toIndex);break;case i.MOVE_EXISTING:r(u.parentNode,c[u.parentID][u.fromIndex],u.toIndex);break;case i.TEXT_CONTENT:s(u.parentNode,u.textContent);break;case i.REMOVE_NODE:}}};e.exports=u}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=n(12),i=n(295),s=n(20),a=n(149),u=n(2),c=/^(<[^ \/>]+)/,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<e.length;h++)"production"!==t.env.NODE_ENV?u(e[h],"dangerouslyRenderMarkup(...): Missing markup."):u(e[h]),n=r(e[h]),n=a(n)?n:"*",p[n]=p[n]||[],p[n][h]=e[h];var d=[],f=0;for(n in p)if(p.hasOwnProperty(n)){var m,v=p[n];for(m in v)if(v.hasOwnProperty(m)){var y=v[m];v[m]=y.replace(c,"$1 "+l+'="'+m+'" ')}for(var g=i(v.join(""),s),b=0;b<g.length;++b){var w=g[b];w.hasAttribute&&w.hasAttribute(l)?(m=+w.getAttribute(l),w.removeAttribute(l),"production"!==t.env.NODE_ENV?u(!d.hasOwnProperty(m),"Danger: Assigning to an already-occupied result index."):u(!d.hasOwnProperty(m)),d[m]=w,f+=1):"production"!==t.env.NODE_ENV&&console.error("Danger: Discarding unexpected node:",w)}}return"production"!==t.env.NODE_ENV?u(f===d.length,"Danger: Did not assign to every index of resultList."):u(f===d.length),"production"!==t.env.NODE_ENV?u(d.length===e.length,"Danger: Expected markup to render %s nodes, but rendered %s.",e.length,d.length):u(d.length===e.length),d},dangerouslyReplaceNodeWithMarkup:function(e,n){"production"!==t.env.NODE_ENV?u(o.canUseDOM,"dangerouslyReplaceNodeWithMarkup(...): 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),"production"!==t.env.NODE_ENV?u(n,"dangerouslyReplaceNodeWithMarkup(...): Missing markup."):u(n),"production"!==t.env.NODE_ENV?u("html"!==e.tagName.toLowerCase(),"dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> 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(21),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(32),i=n(68),s=n(17),a=n(21),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(20),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(150);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(20),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(33),o=n(5),i=r.createFactory(n(142)),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(33),o=n(232),i=n(276),s=n(153),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(39),o=n(298),i=n(93),s=n(96),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(154),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(52),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(54),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(51),s=n(78),a=n(24),u=n(15),c=n(8),l=n(17),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 <select> instead of setting `selected` on <option>."):null)},render:function(){return a(this.props,this.props.children)}});e.exports=u}).call(t,n(1))},function(e,t,n){"use strict";function r(){if(this._pendingUpdate){this._pendingUpdate=!1;var e=a.getValue(this);null!=e&&this.isMounted()&&i(this,e)}}function o(e,t,n){if(null==e[t])return null;if(e.multiple){if(!Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be an array if `multiple` is true.")}else if(Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be a scalar value if `multiple` is false.")}function i(e,t){var n,r,o,i=e.getDOMNode().options;if(e.props.multiple){for(n={},r=0,o=t.length;o>r;r++)n[""+t[r]]=!0;for(r=0,o=i.length;o>r;r++){var s=n.hasOwnProperty(i[r].value);i[r].selected!==s&&(i[r].selected=s)}}else{for(n=""+t,r=0,o=i.length;o>r;r++)if(i[r].value===n)return void(i[r].selected=!0);i.length&&(i[0].selected=!0)}}var s=n(63),a=n(78),u=n(24),c=n(15),l=n(8),p=n(16),h=n(5),d=l.createFactory("select"),f=c.createClass({displayName:"ReactDOMSelect",tagName:"SELECT",mixins:[s,a.Mixin,u],propTypes:{defaultValue:o,value:o},render:function(){var e=h({},this.props);return e.onChange=this._handleChange,e.value=null,d(e,this.props.children)},componentWillMount:function(){this._pendingUpdate=!1},componentDidMount:function(){var e=a.getValue(this);null!=e?i(this,e):null!=this.props.defaultValue&&i(this,this.props.defaultValue)},componentDidUpdate:function(e){var t=a.getValue(this);null!=t?(this._pendingUpdate=!1,i(this,t)):!e.multiple!=!this.props.multiple&&(null!=this.props.defaultValue?i(this,this.props.defaultValue):i(this,this.props.multiple?[]:""))},_handleChange:function(e){var t,n=a.getOnChange(this);return n&&(t=n.call(this,e)),this._pendingUpdate=!0,p.asap(r,this),t}});e.exports=f},function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var i=o.text.length,s=i+r;return{start:i,end:s}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,s=t.focusOffset,a=t.getRangeAt(0),u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),c=u?0:a.toString().length,l=a.cloneRange();l.selectNodeContents(e),l.setEnd(a.startContainer,a.startOffset);var p=r(l.startContainer,l.startOffset,l.endContainer,l.endOffset),h=p?0:l.toString().length,d=h+c,f=document.createRange();f.setStart(n,o),f.setEnd(i,s);var m=f.collapsed;return{start:m?d:h,end:m?h:d}}function s(e,t){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function a(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var s=i;i=o,o=s}var a=c(e,o),u=c(e,i);if(a&&u){var p=document.createRange();p.setStart(a.node,a.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=n(12),c=n(300),l=n(150),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),h={getOffsets:p?o:i,setOffsets:p?s:a};e.exports=h},function(e,t,n){(function(t){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var o=n(63),i=n(51),s=n(78),a=n(24),u=n(15),c=n(8),l=n(16),p=n(5),h=n(2),d=n(9),f=c.createFactory("textarea"),m=u.createClass({displayName:"ReactDOMTextarea",tagName:"TEXTAREA",mixins:[o,s.Mixin,a],getInitialState:function(){var e=this.props.defaultValue,n=this.props.children;null!=n&&("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?d(!1,"Use the `defaultValue` or `value` props instead of setting children on <textarea>."):null),"production"!==t.env.NODE_ENV?h(null==e,"If you supply `defaultValue` on a <textarea>, do not pass children."):h(null==e),Array.isArray(n)&&("production"!==t.env.NODE_ENV?h(n.length<=1,"<textarea> can only have at most one child."):h(n.length<=1),n=n[0]),e=""+n),null==e&&(e="");var r=s.getValue(this);return{initialValue:""+(null!=r?r:e)}},render:function(){var e=p({},this.props);return"production"!==t.env.NODE_ENV?h(null==e.dangerouslySetInnerHTML,"`dangerouslySetInnerHTML` does not make sense on <textarea>."):h(null==e.dangerouslySetInnerHTML),e.defaultValue=null,e.value=null,e.onChange=this._handleChange,f(e,this.state.initialValue)},componentDidUpdate:function(e,t,n){var r=s.getValue(this);if(null!=r){var o=this.getDOMNode();i.setValueForProperty(o,"value",""+r)}},_handleChange:function(e){var t,n=s.getOnChange(this);return n&&(t=n.call(this,e)),l.asap(r,this),t}});e.exports=m}).call(t,n(1))},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(16),i=n(69),s=n(5),a=n(20),u={initialize:a,close:function(){h.isBatchingUpdates=!1}},c={initialize:a,close:o.flushBatchedUpdates.bind(o)},l=[c,u];s(r.prototype,i.Mixin,{getTransactionWrappers:function(){return l}});var p=new r,h={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o){var i=h.isBatchingUpdates;h.isBatchingUpdates=!0,i?e(t,n,r,o):p.perform(e,null,t,n,r,o)}};e.exports=h},function(e,t,n){(function(t){"use strict";function r(e){return f.createClass({tagName:e.toUpperCase(),render:function(){return new O(e,null,null,null,null,this.props)}})}function o(){if(P.EventEmitter.injectReactEventListener(D),P.EventPluginHub.injectEventPluginOrder(u),P.EventPluginHub.injectInstanceHandle(k),P.EventPluginHub.injectMount(M),P.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:j,EnterLeaveEventPlugin:c,ChangeEventPlugin:s,MobileSafariClickEventPlugin:h,SelectEventPlugin:R,BeforeInputEventPlugin:i}),P.NativeComponent.injectGenericComponentClass(y),P.NativeComponent.injectTextComponentClass(N),P.NativeComponent.injectAutoWrapper(r),P.Class.injectMixin(d),P.NativeComponent.injectComponentClasses({button:g,form:b,iframe:T,img:w,input:x,option:C,select:_,textarea:S,html:F("html"),head:F("head"),body:F("body")}),P.DOMProperty.injectDOMPropertyConfig(p),P.DOMProperty.injectDOMPropertyConfig(L),P.EmptyComponent.injectEmptyComponent("noscript"),P.Updates.injectReconcileTransaction(A),P.Updates.injectBatchingStrategy(v),P.RootIndex.injectCreateReactRootIndex(l.canUseDOM?a.createReactRootIndex:I.createReactRootIndex),P.Component.injectEnvironment(m),P.DOMComponent.injectIDOperations(E),"production"!==t.env.NODE_ENV){var e=l.canUseDOM&&window.location.href||"";if(/[?&]react_perf\b/.test(e)){var o=n(135);o.start()}}}var i=n(231),s=n(233),a=n(234),u=n(237),c=n(238),l=n(12),p=n(241),h=n(243),d=n(24),f=n(15),m=n(80),v=n(258),y=n(83),g=n(249),b=n(250),w=n(252),E=n(133),T=n(251),x=n(253),C=n(254),_=n(255),S=n(257),N=n(134),O=n(8),D=n(263),P=n(264),k=n(35),M=n(17),A=n(269),R=n(279),I=n(280),j=n(281),L=n(278),F=n(294);e.exports={inject:o}}).call(t,n(1))},function(e,t,n){function r(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.totalTime}return t}function o(e){for(var t=[],n=0;n<e.length;n++){var r,o=e[n];for(r in o.writes)o.writes[r].forEach(function(e){t.push({id:r,type:l[e.type]||e.type,args:e.args})})}return t}function i(e){for(var t,n={},r=0;r<e.length;r++){var o=e[r],i=u({},o.exclusive,o.inclusive);for(var s in i)t=o.displayNames[s].current,n[t]=n[t]||{componentName:t,inclusive:0,exclusive:0,render:0,count:0},o.render[s]&&(n[t].render+=o.render[s]),o.exclusive[s]&&(n[t].exclusive+=o.exclusive[s]),o.inclusive[s]&&(n[t].inclusive+=o.inclusive[s]),o.counts[s]&&(n[t].count+=o.counts[s])}var a=[];for(t in n)n[t].exclusive>=c&&a.push(n[t]);return a.sort(function(e,t){return t.exclusive-e.exclusive}),a}function s(e,t){for(var n,r={},o=0;o<e.length;o++){var i,s=e[o],l=u({},s.exclusive,s.inclusive);t&&(i=a(s));for(var p in l)if(!t||i[p]){var h=s.displayNames[p];n=h.owner+" > "+h.current,r[n]=r[n]||{componentName:n,time:0,count:0},s.inclusive[p]&&(r[n].time+=s.inclusive[p]),s.counts[p]&&(r[n].count+=s.counts[p])}}var d=[];for(n in r)r[n].time>=c&&d.push(r[n]);return d.sort(function(e,t){return t.time-e.time}),d}function a(e){var t={},n=Object.keys(e.writes),r=u({},e.exclusive,e.inclusive);for(var o in r){for(var i=!1,s=0;s<n.length;s++)if(0===n[s].indexOf(o)){i=!0;break}!i&&e.counts[o]>0&&(t[o]=!0)}return t}var u=n(5),c=1.2,l={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",TEXT_CONTENT:"set textContent",updatePropertyByID:"update attribute",deletePropertyByID:"delete attribute",updateStylesByID:"update styles",updateInnerHTMLByID:"set innerHTML",dangerouslyReplaceNodeWithMarkupByID:"replace"},p={getExclusiveSummary:i,getInclusiveSummary:s,getDOMSummary:o,getTotalTime:r};e.exports=p},function(e,t){"use strict";var n={guard:function(e,t){return e}};e.exports=n},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue()}var o=n(31),i={handleTopLevel:function(e,t,n,i){var s=o.extractEvents(e,t,n,i);r(s)}};e.exports=i},function(e,t,n){"use strict";function r(e){var t=p.getID(e),n=l.getReactRootIDFromNodeID(t),r=p.findReactContainerForID(n),o=p.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){for(var t=p.getFirstReactDOM(f(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0,i=e.ancestors.length;i>o;o++){t=e.ancestors[o];var s=p.getID(t)||"";v._handleTopLevel(e.topLevelType,t,s,e.nativeEvent)}}function s(e){var t=m(window);e(t)}var a=n(239),u=n(12),c=n(23),l=n(35),p=n(17),h=n(16),d=n(5),f=n(92),m=n(302);d(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(o,c.twoArgumentPooler);var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:u.canUseDOM?window:null,setHandleTopLevel:function(e){v._handleTopLevel=e},setEnabled:function(e){v._enabled=!!e},isEnabled:function(){return v._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?a.listen(r,t,v.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?a.capture(r,t,v.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=s.bind(null,e);a.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(v._enabled){var n=o.getPooled(e,t);try{h.batchedUpdates(i,n)}finally{o.release(n)}}}};e.exports=v},function(e,t,n){"use strict";var r=n(30),o=n(31),i=n(81),s=n(15),a=n(65),u=n(34),c=n(66),l=n(83),p=n(27),h=n(141),d=n(16),f={Component:i.injection,Class:s.injection,DOMComponent:l.injection,DOMProperty:r.injection,EmptyComponent:a.injection,EventPluginHub:o.injection,EventEmitter:u.injection,NativeComponent:c.injection,Perf:p.injection,RootIndex:h.injection,Updates:d.injection};e.exports=f},function(e,t,n){"use strict";function r(e,t){this.value=e,this.requestChange=t}function o(e){var t={value:"undefined"==typeof e?i.PropTypes.any.isRequired:e.isRequired,requestChange:i.PropTypes.func.isRequired};return i.PropTypes.shape(t)}var i=n(33);r.PropTypes={link:o},e.exports=r},function(e,t,n){"use strict";function r(e,t,n){f.push({parentID:e,parentNode:null,type:l.INSERT_MARKUP,markupIndex:m.push(t)-1,textContent:null,fromIndex:null,toIndex:n})}function o(e,t,n){f.push({parentID:e,parentNode:null,type:l.MOVE_EXISTING,markupIndex:null,textContent:null,fromIndex:t,toIndex:n})}function i(e,t){f.push({parentID:e,parentNode:null,type:l.REMOVE_NODE,markupIndex:null,textContent:null,fromIndex:t,toIndex:null})}function s(e,t){f.push({parentID:e,parentNode:null,type:l.TEXT_CONTENT,markupIndex:null,textContent:t,fromIndex:null,toIndex:null})}function a(){f.length&&(c.processChildrenUpdates(f,m),u())}function u(){f.length=0,m.length=0}var c=n(81),l=n(138),p=n(39),h=n(246),d=0,f=[],m=[],v={Mixin:{mountChildren:function(e,t,n){var r=h.instantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var s in r)if(r.hasOwnProperty(s)){var a=r[s],u=this._rootNodeID+s,c=p.mountComponent(a,u,t,n);a._mountIndex=i,o.push(c),i++}return o},updateTextContent:function(e){d++;var t=!0;try{var n=this._renderedChildren;h.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setTextContent(e),t=!1}finally{d--,d||(t?u():a())}},updateChildren:function(e,t,n){d++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{d--,d||(r?u():a())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,o=h.updateChildren(r,e,t,n);if(this._renderedChildren=o,o||r){var i,s=0,a=0;for(i in o)if(o.hasOwnProperty(i)){var u=r&&r[i],c=o[i];u===c?(this.moveChild(u,a,s),s=Math.max(u._mountIndex,s),u._mountIndex=a):(u&&(s=Math.max(u._mountIndex,s),this._unmountChildByName(u,i)),this._mountChildByNameAtIndex(c,i,a,t,n)),a++}for(i in r)!r.hasOwnProperty(i)||o&&o.hasOwnProperty(i)||this._unmountChildByName(r[i],i)}},unmountChildren:function(){var e=this._renderedChildren;h.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&o(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){r(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){i(this._rootNodeID,e._mountIndex)},setTextContent:function(e){s(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,o){var i=this._rootNodeID+t,s=p.mountComponent(e,i,r,o);e._mountIndex=n,this.createChild(e,s)},_unmountChildByName:function(e,t){this.removeChild(e),e._mountIndex=null}}};e.exports=v},function(e,t,n){(function(t){"use strict";var r=n(2),o={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,n,i){"production"!==t.env.NODE_ENV?r(o.isValidOwner(i),"addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."):r(o.isValidOwner(i)),i.attachRef(n,e)},removeComponentAsRefFrom:function(e,n,i){"production"!==t.env.NODE_ENV?r(o.isValidOwner(i),"removeComponentAsRefFrom(...): Only a ReactOwner can have refs. This usually means that you're trying to remove a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."):r(o.isValidOwner(i)),i.getPublicInstance().refs[n]===e.getPublicInstance()&&i.detachRef(n)}};e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return function(t,n,r){t.hasOwnProperty(n)?t[n]=e(t[n],r):t[n]=r}}function o(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=c[n];r&&c.hasOwnProperty(n)?r(e,n,t[n]):e.hasOwnProperty(n)||(e[n]=t[n])}return e}var i=n(5),s=n(20),a=n(306),u=r(function(e,t){return i({},t,e)}),c={children:s,className:r(a),style:u},l={mergeProps:function(e,t){return o(i({},e),t)}};e.exports=l},function(e,t,n){"use strict";function r(){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.putListenerQueue=u.getPooled()}var o=n(77),i=n(23),s=n(34),a=n(136),u=n(140),c=n(69),l=n(5),p={initialize:a.getSelectionInformation,close:a.restoreSelection},h={initialize:function(){var e=s.isEnabled();return s.setEnabled(!1),e},close:function(e){s.setEnabled(e)}},d={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},f={initialize:function(){this.putListenerQueue.reset()},close:function(){this.putListenerQueue.putListeners()}},m=[f,p,h,d],v={getTransactionWrappers:function(){return m},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null,u.release(this.putListenerQueue),this.putListenerQueue=null}};l(r.prototype,c.Mixin,v),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):i.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):i.removeComponentAsRefFrom(t,e,n)}var i=n(267),s={};s.attachRefs=function(e,t){var n=t.ref;null!=n&&r(n,e,t._owner)},s.shouldUpdateRefs=function(e,t){return t._owner!==e._owner||t.ref!==e.ref},s.detachRefs=function(e,t){var n=t.ref;null!=n&&o(n,e,t._owner)},e.exports=s},function(e,t,n){(function(t){"use strict";function r(e){"production"!==t.env.NODE_ENV?p(i.isValidElement(e),"renderToString(): You must pass a valid ReactElement."):p(i.isValidElement(e));var n;try{var r=s.createReactRootID();return n=u.getPooled(!1),n.perform(function(){var t=l(e,null),o=t.mountComponent(r,n,c);return a.addChecksumToMarkup(o)},null)}finally{u.release(n)}}function o(e){"production"!==t.env.NODE_ENV?p(i.isValidElement(e),"renderToStaticMarkup(): You must pass a valid ReactElement."):p(i.isValidElement(e));var n;try{var r=s.createReactRootID();return n=u.getPooled(!0),n.perform(function(){var t=l(e,null);return t.mountComponent(r,n,c)},null)}finally{u.release(n)}}var i=n(8),s=n(35),a=n(137),u=n(272),c=n(53),l=n(93),p=n(2);e.exports={renderToString:r,renderToStaticMarkup:o}}).call(t,n(1))},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=i.getPooled(null),this.putListenerQueue=s.getPooled()}var o=n(23),i=n(77),s=n(140),a=n(69),u=n(5),c=n(20),l={initialize:function(){this.reactMountReady.reset()},close:c},p={initialize:function(){this.putListenerQueue.reset()},close:c},h=[p,l],d={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null,s.release(this.putListenerQueue),this.putListenerQueue=null}};u(r.prototype,a.Mixin,d),o.addPoolingTo(r),e.exports=r},function(e,t){"use strict";function n(e,t){var n={};return function(r){n[t]=r,e.setState(n)}}var r={createStateSetter:function(e,t){return function(n,r,o,i,s,a){var u=t.call(e,n,r,o,i,s,a);u&&e.setState(u)}},createStateKeySetter:function(e,t){var r=e.__keySetters||(e.__keySetters={});return r[t]||(r[t]=n(e,t))}};r.Mixin={createStateSetter:function(e){return r.createStateSetter(this,e)},createStateKeySetter:function(e){return r.createStateKeySetter(this,e)}},e.exports=r},function(e,t,n){"use strict";function r(e){}function o(e){return function(t,n){var o;x.isDOMComponent(t)?o=t.getDOMNode():t.tagName&&(o=t);var i=new r;i.target=o;var s=new b(d.eventNameDispatchConfigs[e],y.getID(o),i);w(s,n),c.accumulateTwoPhaseDispatches(s),g.batchedUpdates(function(){u.enqueueEvents(s),u.processEventQueue()})}}function i(){x.Simulate={};var e;for(e in d.eventNameDispatchConfigs)x.Simulate[e]=o(e)}function s(e){return function(t,n){var o=new r(e);w(o,n),x.isDOMComponent(t)?x.simulateNativeEventOnDOMComponent(e,t,o):t.tagName&&x.simulateNativeEventOnNode(e,t,o)}}var a=n(13),u=n(31),c=n(32),l=n(33),p=n(8),h=n(65),d=n(34),f=n(132),m=n(35),v=n(36),y=n(17),g=n(16),b=n(28),w=n(5),E=n(53),T=a.topLevelTypes,x={renderIntoDocument:function(e){var t=document.createElement("div");return l.render(e,t)},isElement:function(e){return p.isValidElement(e)},isElementOfType:function(e,t){return p.isValidElement(e)&&e.type===t},isDOMComponent:function(e){return!!(e&&e.tagName&&e.getDOMNode)},isDOMComponentElement:function(e){return!!(e&&p.isValidElement(e)&&e.tagName)},isCompositeComponent:function(e){return"function"==typeof e.render&&"function"==typeof e.setState},isCompositeComponentWithType:function(e,t){return!(!x.isCompositeComponent(e)||e.constructor!==t)},isCompositeComponentElement:function(e){if(!p.isValidElement(e))return!1;var t=e.type.prototype;return"function"==typeof t.render&&"function"==typeof t.setState},isCompositeComponentElementWithType:function(e,t){return!(!x.isCompositeComponentElement(e)||e.constructor!==t)},getRenderedChildOfCompositeComponent:function(e){if(!x.isCompositeComponent(e))return null;var t=v.get(e);return t._renderedComponent.getPublicInstance()},findAllInRenderedTree:function(e,t){if(!e)return[];var n=t(e)?[e]:[];if(x.isDOMComponent(e)){var r,o=v.get(e),i=o._renderedComponent._renderedChildren;for(r in i)i.hasOwnProperty(r)&&i[r].getPublicInstance&&(n=n.concat(x.findAllInRenderedTree(i[r].getPublicInstance(),t)));
+}else x.isCompositeComponent(e)&&(n=n.concat(x.findAllInRenderedTree(x.getRenderedChildOfCompositeComponent(e),t)));return n},scryRenderedDOMComponentsWithClass:function(e,t){return x.findAllInRenderedTree(e,function(e){var n=e.props.className;return x.isDOMComponent(e)&&n&&-1!==(" "+n+" ").indexOf(" "+t+" ")})},findRenderedDOMComponentWithClass:function(e,t){var n=x.scryRenderedDOMComponentsWithClass(e,t);if(1!==n.length)throw new Error("Did not find exactly one match (found: "+n.length+") for class:"+t);return n[0]},scryRenderedDOMComponentsWithTag:function(e,t){return x.findAllInRenderedTree(e,function(e){return x.isDOMComponent(e)&&e.tagName===t.toUpperCase()})},findRenderedDOMComponentWithTag:function(e,t){var n=x.scryRenderedDOMComponentsWithTag(e,t);if(1!==n.length)throw new Error("Did not find exactly one match for tag:"+t);return n[0]},scryRenderedComponentsWithType:function(e,t){return x.findAllInRenderedTree(e,function(e){return x.isCompositeComponentWithType(e,t)})},findRenderedComponentWithType:function(e,t){var n=x.scryRenderedComponentsWithType(e,t);if(1!==n.length)throw new Error("Did not find exactly one match for componentType:"+t);return n[0]},mockComponent:function(e,t){return t=t||e.mockTagName||"div",e.prototype.render.mockImplementation(function(){return l.createElement(t,null,this.props.children)}),this},simulateNativeEventOnNode:function(e,t,n){n.target=t,d.ReactEventListener.dispatchEvent(e,n)},simulateNativeEventOnDOMComponent:function(e,t,n){x.simulateNativeEventOnNode(e,t.getDOMNode(),n)},nativeTouchData:function(e,t){return{touches:[{pageX:e,pageY:t}]}},createRenderer:function(){return new C},Simulate:null,SimulateNative:{}},C=function(){this._instance=null};C.prototype.getRenderOutput=function(){return this._instance&&this._instance._renderedComponent&&this._instance._renderedComponent._renderedOutput||null};var _=function(e){this._renderedOutput=e,this._currentElement=null===e||e===!1?h.emptyElement:e};_.prototype={mountComponent:function(){},receiveComponent:function(e){this._renderedOutput=e,this._currentElement=null===e||e===!1?h.emptyElement:e},unmountComponent:function(){}};var S=function(){};w(S.prototype,f.Mixin,{_instantiateReactComponent:function(e){return new _(e)},_replaceNodeWithMarkupByID:function(){},_renderValidatedComponent:f.Mixin._renderValidatedComponentWithoutOwnerOrContext}),C.prototype.render=function(e,t){t||(t=E);var n=g.ReactReconcileTransaction.getPooled();this._render(e,n,t),g.ReactReconcileTransaction.release(n)},C.prototype.unmount=function(){this._instance&&this._instance.unmountComponent()},C.prototype._render=function(e,t,n){if(this._instance)this._instance.receiveComponent(e,t,n);else{var r=m.createReactRootID(),o=new S(e.type);o.construct(e),o.mountComponent(r,t,n),this._instance=o}};var N=u.injection.injectEventPluginOrder;u.injection.injectEventPluginOrder=function(){N.apply(this,arguments),i()};var O=u.injection.injectEventPluginsByName;u.injection.injectEventPluginsByName=function(){O.apply(this,arguments),i()},i();var D;for(D in T){var P=0===D.indexOf("top")?D.charAt(3).toLowerCase()+D.substr(4):D;x.SimulateNative[P]=s(D)}e.exports=x},function(e,t,n){"use strict";var r=n(130),o=n(38),i={getChildMapping:function(e){return e?o.extract(r.map(e,function(e){return e})):e},mergeChildMappings:function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var u in t){if(r.hasOwnProperty(u))for(s=0;s<r[u].length;s++){var c=r[u][s];a[r[u][s]]=n(c)}a[u]=n(u)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}};e.exports=i},function(e,t,n){"use strict";function r(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete a.animationend.animation,"TransitionEvent"in window||delete a.transitionend.transition;for(var n in a){var r=a[n];for(var o in r)if(o in t){u.push(r[o]);break}}}function o(e,t,n){e.addEventListener(t,n,!1)}function i(e,t,n){e.removeEventListener(t,n,!1)}var s=n(12),a={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},u=[];s.canUseDOM&&r();var c={addEndEventListener:function(e,t){return 0===u.length?void window.setTimeout(t,0):void u.forEach(function(n){o(e,n,t)})},removeEndEventListener:function(e,t){0!==u.length&&u.forEach(function(n){i(e,n,t)})}};e.exports=c},function(e,t,n){(function(t){"use strict";var r=n(242),o=n(33),i=n(247),s=n(244),a=n(38),u=n(142),c=n(16),l=n(296),p=n(143),h=n(156);o.addons={CSSTransitionGroup:s,LinkedStateMixin:r,PureRenderMixin:i,TransitionGroup:u,batchedUpdates:c.batchedUpdates,classSet:l,cloneWithProps:p,createFragment:a.create,update:h},"production"!==t.env.NODE_ENV&&(o.addons.Perf=n(135),o.addons.TestUtils=n(274)),e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";var r=n(30),o=r.injection.MUST_USE_ATTRIBUTE,i={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,y1:o,y2:o,y:o},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox"}};e.exports=i},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&a.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e){if(g||null==m||m!==c())return null;var t=r(m);if(!y||!h(y,t)){y=t;var n=u.getPooled(f.select,v,e);return n.type="select",n.target=m,s.accumulateTwoPhaseDispatches(n),n}}var i=n(13),s=n(32),a=n(136),u=n(28),c=n(147),l=n(152),p=n(21),h=n(154),d=i.topLevelTypes,f={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[d.topBlur,d.topContextMenu,d.topFocus,d.topKeyDown,d.topMouseDown,d.topMouseUp,d.topSelectionChange]}},m=null,v=null,y=null,g=!1,b={eventTypes:f,extractEvents:function(e,t,n,r){switch(e){case d.topFocus:(l(t)||"true"===t.contentEditable)&&(m=t,v=n,y=null);break;case d.topBlur:m=null,v=null,y=null;break;case d.topMouseDown:g=!0;break;case d.topContextMenu:case d.topMouseUp:return g=!1,o(r);case d.topSelectionChange:case d.topKeyDown:case d.topKeyUp:return o(r)}}};e.exports=b},function(e,t){"use strict";var n=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};e.exports=r},function(e,t,n){(function(t){"use strict";var r=n(13),o=n(64),i=n(32),s=n(282),a=n(28),u=n(285),c=n(287),l=n(68),p=n(284),h=n(288),d=n(40),f=n(289),m=n(90),v=n(2),y=n(21),g=n(9),b=r.topLevelTypes,w={blur:{phasedRegistrationNames:{bubbled:y({onBlur:!0}),captured:y({onBlurCapture:!0})}},click:{phasedRegistrationNames:{bubbled:y({onClick:!0}),captured:y({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:y({onContextMenu:!0}),captured:y({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:y({onCopy:!0}),captured:y({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:y({onCut:!0}),captured:y({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:y({onDoubleClick:!0}),captured:y({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:y({onDrag:!0}),captured:y({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:y({onDragEnd:!0}),captured:y({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:y({onDragEnter:!0}),captured:y({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:y({onDragExit:!0}),captured:y({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:y({onDragLeave:!0}),captured:y({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:y({onDragOver:!0}),captured:y({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:y({onDragStart:!0}),captured:y({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:y({onDrop:!0}),captured:y({onDropCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:y({onFocus:!0}),captured:y({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:y({onInput:!0}),captured:y({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:y({onKeyDown:!0}),captured:y({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:y({onKeyPress:!0}),captured:y({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:y({onKeyUp:!0}),captured:y({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:y({onLoad:!0}),captured:y({onLoadCapture:!0})}},error:{phasedRegistrationNames:{bubbled:y({onError:!0}),captured:y({onErrorCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:y({onMouseDown:!0}),captured:y({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:y({onMouseMove:!0}),captured:y({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:y({onMouseOut:!0}),captured:y({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:y({onMouseOver:!0}),captured:y({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:y({onMouseUp:!0}),captured:y({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:y({onPaste:!0}),captured:y({onPasteCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:y({onReset:!0}),captured:y({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:y({onScroll:!0}),captured:y({onScrollCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:y({onSubmit:!0}),captured:y({onSubmitCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:y({onTouchCancel:!0}),captured:y({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:y({onTouchEnd:!0}),captured:y({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:y({onTouchMove:!0}),captured:y({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:y({onTouchStart:!0}),captured:y({onTouchStartCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:y({onWheel:!0}),captured:y({onWheelCapture:!0})}}},E={topBlur:w.blur,topClick:w.click,topContextMenu:w.contextMenu,topCopy:w.copy,topCut:w.cut,topDoubleClick:w.doubleClick,topDrag:w.drag,topDragEnd:w.dragEnd,topDragEnter:w.dragEnter,topDragExit:w.dragExit,topDragLeave:w.dragLeave,topDragOver:w.dragOver,topDragStart:w.dragStart,topDrop:w.drop,topError:w.error,topFocus:w.focus,topInput:w.input,topKeyDown:w.keyDown,topKeyPress:w.keyPress,topKeyUp:w.keyUp,topLoad:w.load,topMouseDown:w.mouseDown,topMouseMove:w.mouseMove,topMouseOut:w.mouseOut,topMouseOver:w.mouseOver,topMouseUp:w.mouseUp,topPaste:w.paste,topReset:w.reset,topScroll:w.scroll,topSubmit:w.submit,topTouchCancel:w.touchCancel,topTouchEnd:w.touchEnd,topTouchMove:w.touchMove,topTouchStart:w.touchStart,topWheel:w.wheel};for(var T in E)E[T].dependencies=[T];var x={eventTypes:w,executeDispatch:function(e,n,r){var i=o.executeDispatch(e,n,r);"production"!==t.env.NODE_ENV?g("boolean"!=typeof i,"Returning `false` from an event handler is deprecated and will be ignored in a future release. Instead, manually call e.stopPropagation() or e.preventDefault(), as appropriate."):null,i===!1&&(e.stopPropagation(),e.preventDefault())},extractEvents:function(e,n,r,o){var y=E[e];if(!y)return null;var g;switch(e){case b.topInput:case b.topLoad:case b.topError:case b.topReset:case b.topSubmit:g=a;break;case b.topKeyPress:if(0===m(o))return null;case b.topKeyDown:case b.topKeyUp:g=c;break;case b.topBlur:case b.topFocus:g=u;break;case b.topClick:if(2===o.button)return null;case b.topContextMenu:case b.topDoubleClick:case b.topMouseDown:case b.topMouseMove:case b.topMouseOut:case b.topMouseOver:case b.topMouseUp:g=l;break;case b.topDrag:case b.topDragEnd:case b.topDragEnter:case b.topDragExit:case b.topDragLeave:case b.topDragOver:case b.topDragStart:case b.topDrop:g=p;break;case b.topTouchCancel:case b.topTouchEnd:case b.topTouchMove:case b.topTouchStart:g=h;break;case b.topScroll:g=d;break;case b.topWheel:g=f;break;case b.topCopy:case b.topCut:case b.topPaste:g=s}"production"!==t.env.NODE_ENV?v(g,"SimpleEventPlugin: Unhandled event type, `%s`.",e):v(g);var w=g.getPooled(y,r,o);return i.accumulateTwoPhaseDispatches(w),w}};e.exports=x}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(28),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(28),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(68),i={dataTransfer:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(40),i={relatedTarget:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(28),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(40),i=n(90),s=n(299),a=n(91),u={key:s,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:a,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,u),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(40),i=n(91),s={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){o.call(this,e,t,n)}var o=n(68),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),e.exports=r},function(e,t){"use strict";function n(e){for(var t=1,n=0,o=0;o<e.length;o++)t=(t+e.charCodeAt(o))%r,n=(n+t)%r;return t|n<<16}var r=65521;e.exports=n},function(e,t){function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=n(291),i=/^-ms-/;e.exports=r},function(e,t,n){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function o(e){return r(e)?Array.isArray(e)?e.slice():i(e):[e]}var i=n(313);e.exports=o},function(e,t,n){(function(t){"use strict";function r(e){var n=i.createFactory(e),r=o.createClass({tagName:e.toUpperCase(),displayName:"ReactFullPageComponent"+e,componentWillUnmount:function(){"production"!==t.env.NODE_ENV?s(!1,"%s tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) 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 <script> element rendered."):u(n),s(h).forEach(n));for(var d=s(o.childNodes);o.lastChild;)o.removeChild(o.lastChild);return d}var i=n(12),s=n(293),a=n(149),u=n(2),c=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;e.exports=o}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?o(i,"React.addons.classSet will be deprecated in a future version. See http://fb.me/react-addons-classset";):null,i=!0),"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).join(" "):Array.prototype.join.call(arguments," ")}var o=n(9),i=!1;e.exports=r}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||i.hasOwnProperty(e)&&i[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var o=n(127),i=o.isUnitlessNumber;e.exports=r},function(e,t,n){(function(t){"use strict";function r(e,n,r){var o=e,i=!o.hasOwnProperty(r);"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?s(i,"flattenChildren(...): 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),i&&null!=n&&(o[r]=n)}function o(e){if(null==e)return e;var t={};return i(e,r,t),t}var i=n(155),s=n(9);e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?s[e.keyCode]||"Unidentified":""}var o=n(90),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},s={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var o=n(e),i=0,s=0;o;){if(3===o.nodeType){if(s=i+o.textContent.length,t>=i&&s>=t)return{node:o,offset:t-i};i=s}o=n(r(o))}}e.exports=o},function(e,t){"use strict";function n(e){return e?e.nodeType===r?e.documentElement:e.firstChild:null}var r=9;e.exports=n},function(e,t){"use strict";function n(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(303),i=/^ms-/;e.exports=r},function(e,t,n){function r(e){return o(e)&&3==e.nodeType}var o=n(151);e.exports=r},function(e,t){"use strict";function n(e){e||(e="");var t,n=arguments.length;if(n>1)for(var r=1;n>r;r++)t=arguments[r],t&&(e=(e?e+" ":"")+t);return e}e.exports=n},function(e,t){"use strict";function n(e,t,n){if(!e)return null;var o={};for(var i in e)r.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o}var r=Object.prototype.hasOwnProperty;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){"use strict";var r,o=n(12);o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),e.exports=r||{}},function(e,t,n){var r=n(309);r&&r.now||(r=Date);var o=r.now.bind(r);e.exports=o},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(70);e.exports=r},function(e,t,n){"use strict";var r=n(12),o=n(70),i=n(95),s=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(s=function(e,t){i(e,o(t))})),e.exports=s},function(e,t,n){(function(t){function r(e){var n=e.length;if("production"!==t.env.NODE_ENV?o(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e),"toArray: Array-like object expected"):o(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e)),"production"!==t.env.NODE_ENV?o("number"==typeof n,"toArray: Object needs a length property"):o("number"==typeof n),"production"!==t.env.NODE_ENV?o(0===n||n-1 in e,"toArray: Object should have keys for indices"):o(0===n||n-1 in e),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(r){}for(var i=Array(n),s=0;n>s;s++)i[s]=e[s];return i}var o=n(2);e.exports=r}).call(t,n(1))},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(e){return function(){try{return e.apply(this,arguments)}catch(t){return Xe.e=t,Xe}}}function c(e){throw e}function l(e,t){if(Ze&&t.stack&&"object"==typeof e&&null!==e&&e.stack&&-1===e.stack.indexOf(nt)){for(var n=[],r=t;r;r=r.source)r.stack&&n.unshift(r.stack);n.unshift(e.stack);var o=n.join("\n"+nt+"\n");e.stack=p(o)}}function p(e){for(var t=e.split("\n"),n=[],r=0,o=t.length;o>r;r++){var i=t[r];h(i)||d(i)||!i||n.push(i)}return n.join("\n")}function h(e){var t=m(e);if(!t)return!1;var n=t[0],r=t[1];return n===et&&r>=tt&&uo>=r}function d(e){return-1!==e.indexOf("(module.js:")||-1!==e.indexOf("(node.js:")}function f(){if(Ze)try{throw new Error}catch(e){var t=e.stack.split("\n"),n=t[0].indexOf("@")>0?t[1]:t[2],r=m(n);if(!r)return;return et=r[0],r[1]}}function m(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 v(e){var t=[];if(!Ft(e))return t;Lt.nonEnumArgs&&e.length&&Ut(e)&&(e=Vt.call(e));var n=Lt.enumPrototypes&&"function"==typeof e,r=Lt.enumErrorProps&&(e===kt||e instanceof Error);for(var o in e)n&&"prototype"==o||r&&("message"==o||"name"==o)||t.push(o);if(Lt.nonEnumShadows&&e!==Mt){var i=e.constructor,s=-1,a=yt;if(e===(i&&i.prototype))var u=e===At?Nt:e===kt?Tt:Ot.call(e),c=jt[u];for(;++s<a;)o=vt[s],c&&c[o]||!Dt.call(e,o)||t.push(o)}return t}function y(e,t,n){for(var r=-1,o=n(e),i=o.length;++r<i;){var s=o[r];if(t(e[s],s,e)===!1)break}return e}function g(e,t){return y(e,t,v)}function b(e){return"function"!=typeof e.toString&&"string"==typeof(e+"")}function w(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;var o=typeof e,i=typeof t;if(e===e&&(null==e||null==t||"function"!=o&&"object"!=o&&"function"!=i&&"object"!=i))return!1;var s=Ot.call(e),a=Ot.call(t);if(s==gt&&(s=_t),a==gt&&(a=_t),s!=a)return!1;switch(s){case wt:case Et:return+e==+t;case Ct:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case St:case Nt:return e==String(t)}var u=s==bt;if(!u){if(s!=_t||!Lt.nodeClass&&(b(e)||b(t)))return!1;var c=!Lt.argsObject&&Ut(e)?Object:e.constructor,l=!Lt.argsObject&&Ut(t)?Object:t.constructor;if(!(c==l||Dt.call(e,"constructor")&&Dt.call(t,"constructor")||Qe(c)&&c instanceof c&&Qe(l)&&l instanceof l||!("constructor"in e&&"constructor"in t)))return!1}n||(n=[]),r||(r=[]);for(var p=n.length;p--;)if(n[p]==e)return r[p]==t;var h=0,d=!0;if(n.push(e),r.push(t),u){if(p=e.length,h=t.length,d=h==p)for(;h--;){var f=t[h];if(!(d=w(e[h],f,n,r)))break}}else g(t,function(t,o,i){return Dt.call(i,o)?(h++,d=Dt.call(e,o)&&w(e[o],t,n,r)):void 0}),d&&g(e,function(e,t,n){return Dt.call(n,t)?d=--h>-1:void 0});return n.pop(),r.pop(),d}function E(e,t){for(var n=new Array(e),r=0;e>r;r++)n[r]=t();return n}function T(e,t){this.id=e,this.value=t}function x(e,t){this.scheduler=e,this.disposable=t,this.isDisposed=!1}function C(e,t){t.isDisposed||(t.isDisposed=!0,t.disposable.dispose())}function _(e){this._s=e}function S(e){this._s=e,this._l=e.length,this._i=0}function N(e){this._a=e}function O(e){this._a=e,this._l=M(e),this._i=0}function D(e){return"number"==typeof e&&We.isFinite(e)}function P(e){var t,n=e[lt];if(!n&&"string"==typeof e)return t=new _(e),t[lt]();if(!n&&e.length!==s)return t=new N(e),t[lt]();if(!n)throw new TypeError("Object is not iterable");return e[lt]()}function k(e){var t=+e;return 0===t?t:isNaN(t)?t:0>t?-1:1}function M(e){var t=+e.length;return isNaN(t)?0:0!==t&&D(t)?(t=k(t)*Math.floor(Math.abs(t)),0>=t?0:t>Qn?Qn:t):t}function A(e,t){this.observer=e,this.parent=t}function R(e,t){return an(e)||(e=hn),new $n(t,e)}function I(e,t){this.observer=e,this.parent=t}function j(e,t){this.observer=e,this.parent=t}function L(e,t){return e.amb(t)}function F(e,t){return new no(function(n){var r=new en,o=new tn;return o.setDisposable(r),r.setDisposable(e.subscribe(new cr(n,o,t))),o},e)}function U(){return!1}function W(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function U(){return!1}function U(){return!1}function V(){return[]}function W(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function U(){return!1}function V(){return[]}function W(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t}function B(e){return function(t){return e.subscribe(t)}}function q(e){return e.toArray()}function z(e){return e.length>0}function K(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 H(e,t,n){var r=mt(t,n,3);return e.map(function(t,n){var o=r(t,n,e);return Ye(o)&&(o=Vn(o)),(dt(o)||ht(o))&&(o=Xn(o)),o}).concatAll()}function G(e,t,n){for(var r=0,o=e.length;o>r;r++)if(n(e[r],t))return r;return-1}function Y(e){this.comparer=e,this.set=[]}function Q(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 X(e,t,n){return new no(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 $(e){if(0===e.length)throw new rt;return e[0]}function Z(e,t,n,r){var o=mt(t,n,3);return new no(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 J(e){return e?Pn.isObservable(e)?e:Ye(e)?Pn.fromPromise(e):oe(e)||re(e)?jr.call(this,e):Qe(e)?ne.call(this,e):dt(e)||ht(e)?ee.call(this,e):Ft(e)?te.call(this,e):e:e}function ee(e){return Pn.from(e).flatMap(J).toArray()}function te(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=J.call(this,e[u]);c&&Pn.isObservable(c)?t(c,u):n[u]=e[u]}return Pn.forkJoin.apply(Pn,o).map(function(){return n})}function ne(e){var t=this;return new no(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 re(e){return Qe(e.next)&&Qe(e["throw"])}function oe(e){var t=e.constructor;return t?"GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName?!0:re(t.prototype):!1}function ie(e,t,n,r){var o=new so;return r.push(se(o,t,n)),e.apply(t,r),o.asObservable()}function se(e,t,n){return function(){for(var r=arguments.length,o=new Array(r),i=0;r>i;i++)o[i]=arguments[i];if(Qe(n)){if(o=$e(n).apply(t,o),o===Xe)return e.onError(o.e);e.onNext(o)}else o.length<=1?e.onNext(o[0]):e.onNext(o);e.onCompleted()}}function ae(e,t,n,r){var o=new so;return r.push(ue(o,t,n)),e.apply(t,r),o.asObservable()}function ue(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(Qe(n)){var i=$e(n).apply(t,i);if(i===Xe)return e.onError(i.e);e.onNext(i)}else i.length<=1?e.onNext(i[0]):e.onNext(i);e.onCompleted()}}function ce(e,t,n){this._e=e,this._n=t,this._fn=n,this._e.addEventListener(this._n,this._fn,!1),this.isDisposed=!1}function le(e,t,n){var r=new Gt,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(le(e.item(i),t,n));else e&&r.add(new ce(e,t,n));return r}function pe(e,t){return function(){var n=arguments[0];return Qe(t)&&(n=$e(t).apply(null,arguments),n===Xe)?e.onError(n.e):void e.onNext(n)}}function he(e,t,n){return new no(function(r){function o(e,t){if(c[t]=e,s[t]=!0,a||(a=s.every(qe))){if(i)return r.onError(i);var o=$e(n).apply(null,c);if(o===Xe)return r.onError(o.e);r.onNext(o)}u&&c[1]&&r.onCompleted()}var i,s=[!1,!1],a=!1,u=!1,c=new Array(2);return new Gt(e.subscribe(function(e){o(e,0)},function(e){c[1]?r.onError(e):i=e},function(){u=!0,c[1]&&r.onCompleted()}),t.subscribe(function(e){o(e,1)},function(e){r.onError(e)},function(){u=!0,o(!0,1)}))},e)}function q(e){return e.toArray()}function de(e,t){return e.groupJoin(this,t,Hn,function(e,t){return t})}function fe(e){var t=this;return new no(function(n){var r=new io,o=new Gt,i=new nn(o);return n.onNext(zt(r,i)),o.add(t.subscribe(function(e){r.onNext(e)},function(e){r.onError(e),n.onError(e)},function(){r.onCompleted(),n.onCompleted()})),Ye(e)&&(e=Vn(e)),o.add(e.subscribe(function(e){r.onCompleted(),r=new io,n.onNext(zt(r,i))},function(e){r.onError(e),n.onError(e)},function(){r.onCompleted(),n.onCompleted()})),i},t)}function me(e){var t=this;return new no(function(n){function r(){var t;try{t=e()}catch(i){return void n.onError(i)}Ye(t)&&(t=Vn(t));var u=new en;o.setDisposable(u),u.setDisposable(t.take(1).subscribe(Be,function(e){a.onError(e),n.onError(e)},function(){a.onCompleted(),a=new io,n.onNext(zt(a,s)),r()}))}var o=new tn,i=new Gt(o),s=new nn(i),a=new io;return n.onNext(zt(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 ve(e,t){return new Qr(e,t)}function ye(e){this.patterns=e}function ge(e,t){this.expression=e,this.selector=t}function be(e,t,n){var r=e.get(t);if(!r){var o=new Jr(t,n);return e.set(t,o),o}return r}function we(e,t,n){this.joinObserverArray=e,this.onNext=t,this.onCompleted=n,this.joinObservers=new Zr;for(var r=0,o=this.joinObserverArray.length;o>r;r++){var i=this.joinObserverArray[r];this.joinObservers.set(i,i)}}function Ee(e,t){return new no(function(n){return t.scheduleWithAbsolute(e,function(){n.onNext(0),n.onCompleted()})})}function Te(e,t,n){return new no(function(r){var o=e,i=sn(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 xe(e,t){return new no(function(n){return t.scheduleWithRelative(sn(e),function(){n.onNext(0),n.onCompleted();
+})})}function Ce(e,t,n){return e===t?new no(function(e){return n.schedulePeriodicWithState(0,t,function(t){return e.onNext(t),t+1})}):qn(function(){return Te(n.now()+e,t,n)})}function _e(e,t,n){return new no(function(r){var o,i=!1,s=new tn,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 en,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 Gt(o,s)},e)}function Se(e,t,n){return qn(function(){return _e(e,t-n.now(),n)})}function Ne(e,t,n){var r,o;return Qe(t)?o=t:(r=t,o=n),new no(function(t){function n(){u.setDisposable(e.subscribe(function(e){var n=$e(o)(e);if(n===Xe)return t.onError(n.e);var r=new en;s.add(r),r.setDisposable(n.subscribe(function(){t.onNext(e),s.remove(r),i()},function(e){t.onError(e)},function(){t.onNext(e),s.remove(r),i()}))},function(e){t.onError(e)},function(){a=!0,u.dispose(),i()}))}function i(){a&&0===s.length&&t.onCompleted()}var s=new Gt,a=!1,u=new tn;return r?u.setDisposable(r.subscribe(n,function(e){t.onError(e)},n)):n(),new Gt(u,s)},this)}function Oe(e,t,n){return an(n)||(n=vn),new no(function(r){var o,i=new tn,s=!1,a=0,u=e.subscribe(function(e){s=!0,o=e,a++;var u=a,c=new en;i.setDisposable(c),c.setDisposable(n.scheduleWithRelative(t,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 Gt(u,i)},this)}function De(e,t){return new no(function(n){var r,o=!1,i=new tn,s=0,a=e.subscribe(function(e){var a=$e(t)(e);if(a===Xe)return n.onError(a.e);Ye(a)&&(a=Vn(a)),o=!0,r=e,s++;var u=s,c=new en;i.setDisposable(c),c.setDisposable(a.subscribe(function(){o&&s===u&&n.onNext(r),o=!1,c.dispose()},function(e){n.onError(e)},function(){o&&s===u&&n.onNext(r),o=!1,c.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 Gt(a,i)},e)}function q(e){return e.toArray()}function q(e){return e.toArray()}function Pe(e,t){return new no(function(n){function r(){s&&(s=!1,n.onNext(o)),i&&n.onCompleted()}var o,i=!1,s=!1,a=new en;return a.setDisposable(e.subscribe(function(e){s=!0,o=e},function(e){n.onError(e)},function(){i=!0,a.dispose()})),new Gt(a,t.subscribe(r,function(e){n.onError(e)},r))},e)}function ke(e,t,n,r){return Qe(t)&&(r=n,n=t,t=tr()),r||(r=ur(new to)),new no(function(o){function i(e){var t=l,n=new en;u.setDisposable(n),n.setDisposable(e.subscribe(function(){l===t&&a.setDisposable(r.subscribe(o)),n.dispose()},function(e){l===t&&o.onError(e)},function(){l===t&&a.setDisposable(r.subscribe(o))}))}function s(){var e=!p;return e&&l++,e}var a=new tn,u=new tn,c=new en;a.setDisposable(c);var l=0,p=!1;return i(t),c.setDisposable(e.subscribe(function(e){if(s()){o.onNext(e);var t=$e(n)(e);if(t===Xe)return o.onError(t.e);i(Ye(t)?Vn(t):t)}},function(e){s()&&o.onError(e)},function(){s()&&o.onCompleted()})),new Gt(a,u)},e)}function Me(e,t,n,r){if(null==n)throw new Error("other or scheduler must be specified");an(n)&&(r=n,n=ur(new to)),n instanceof Error&&(n=ur(n)),an(r)||(r=vn);var o=t instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new no(function(i){function s(){var e=a;p.setDisposable(r[o](t,function(){a===e&&(Ye(n)&&(n=Vn(n)),c.setDisposable(n.subscribe(i)))}))}var a=0,u=new en,c=new tn,l=!1,p=new tn;return c.setDisposable(u),s(),u.setDisposable(e.subscribe(function(e){l||(a++,i.onNext(e),s())},function(e){l||(a++,i.onError(e))},function(){l||(a++,i.onCompleted())})),new Gt(c,p)},e)}var Ae={"function":!0,object:!0},Re=Ae[typeof t]&&t&&!t.nodeType&&t,Ie=Ae[typeof self]&&self.Object&&self,je=Ae[typeof window]&&window&&window.Object&&window,Le=Ae[typeof e]&&e&&!e.nodeType&&e,Fe=Le&&Le.exports===Re&&Re,Ue=Re&&Le&&"object"==typeof o&&o&&o.Object&&o,We=We=Ue||je!==(this&&this.window)&&je||Ie||this,Ve={internals:{},config:{Promise:We.Promise},helpers:{}},Be=Ve.helpers.noop=function(){},qe=Ve.helpers.identity=function(e){return e},ze=Ve.helpers.defaultNow=Date.now,Ke=Ve.helpers.defaultComparer=function(e,t){return Wt(e,t)},He=Ve.helpers.defaultSubComparer=function(e,t){return e>t?1:t>e?-1:0},Ge=(Ve.helpers.defaultKeySerializer=function(e){return e.toString()},Ve.helpers.defaultError=function(e){throw e}),Ye=Ve.helpers.isPromise=function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then},Qe=Ve.helpers.isFunction=function(){var e=function(e){return"function"==typeof e||!1};return e(/x/)&&(e=function(e){return"function"==typeof e&&"[object Function]"==Ot.call(e)}),e}(),Xe={e:{}},$e=Ve.internals.tryCatch=function(e){if(!Qe(e))throw new TypeError("fn must be a function");return u(e)};Ve.config.longStackSupport=!1;var Ze=!1,Je=$e(function(){throw new Error})();Ze=!!Je.e&&!!Je.e.stack;var et,tt=f(),nt="From previous event:",rt=Ve.EmptyError=function(){this.message="Sequence contains no elements.",this.name="EmptyError",Error.call(this)};rt.prototype=Object.create(Error.prototype);var ot=Ve.ObjectDisposedError=function(){this.message="Object has been disposed",this.name="ObjectDisposedError",Error.call(this)};ot.prototype=Object.create(Error.prototype);var it=Ve.ArgumentOutOfRangeError=function(){this.message="Argument out of range",this.name="ArgumentOutOfRangeError",Error.call(this)};it.prototype=Object.create(Error.prototype);var st=Ve.NotSupportedError=function(e){this.message=e||"This operation is not supported",this.name="NotSupportedError",Error.call(this)};st.prototype=Object.create(Error.prototype);var at=Ve.NotImplementedError=function(e){this.message=e||"This operation is not implemented",this.name="NotImplementedError",Error.call(this)};at.prototype=Object.create(Error.prototype);var ut=Ve.helpers.notImplemented=function(){throw new at},ct=Ve.helpers.notSupported=function(){throw new st},lt="function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_";We.Set&&"function"==typeof(new We.Set)["@@iterator"]&&(lt="@@iterator");var pt=Ve.doneEnumerator={done:!0,value:s},ht=Ve.helpers.isIterable=function(e){return e[lt]!==s},dt=Ve.helpers.isArrayLike=function(e){return e&&e.length!==s};Ve.helpers.iterator=lt;var ft,mt=Ve.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)}},vt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],yt=vt.length,gt="[object Arguments]",bt="[object Array]",wt="[object Boolean]",Et="[object Date]",Tt="[object Error]",xt="[object Function]",Ct="[object Number]",_t="[object Object]",St="[object RegExp]",Nt="[object String]",Ot=Object.prototype.toString,Dt=Object.prototype.hasOwnProperty,Pt=Ot.call(arguments)==gt,kt=Error.prototype,Mt=Object.prototype,At=String.prototype,Rt=Mt.propertyIsEnumerable;try{ft=!(Ot.call(document)==_t&&!({toString:0}+""))}catch(It){ft=!0}var jt={};jt[bt]=jt[Et]=jt[Ct]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},jt[wt]=jt[Nt]={constructor:!0,toString:!0,valueOf:!0},jt[Tt]=jt[xt]=jt[St]={constructor:!0,toString:!0},jt[_t]={constructor:!0};var Lt={};!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);Lt.enumErrorProps=Rt.call(kt,"message")||Rt.call(kt,"name"),Lt.enumPrototypes=Rt.call(e,"prototype"),Lt.nonEnumArgs=0!=n,Lt.nonEnumShadows=!/valueOf/.test(t)}(1);var Ft=Ve.internals.isObject=function(e){var t=typeof e;return e&&("function"==t||"object"==t)||!1},Ut=function(e){return e&&"object"==typeof e?Ot.call(e)==gt:!1};Pt||(Ut=function(e){return e&&"object"==typeof e?Dt.call(e,"callee"):!1});var Wt=Ve.internals.isEqual=function(e,t){return w(e,t,[],[])},Vt=({}.hasOwnProperty,Array.prototype.slice),Bt=Ve.internals.inherits=function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n},qt=Ve.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]}},zt=Ve.internals.addRef=function(e,t){return new no(function(n){return new Gt(t.getDisposable(),e.subscribe(n))})};T.prototype.compareTo=function(e){var t=this.value.compareTo(e.value);return 0===t&&(t=this.id-e.id),t};var Kt=Ve.internals.PriorityQueue=function(e){this.items=new Array(e),this.length=0},Ht=Kt.prototype;Ht.isHigherPriority=function(e,t){return this.items[e].compareTo(this.items[t])<0},Ht.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)}}},Ht.heapify=function(e){if(+e||(e=0),!(e>=this.length||0>e)){var t=2*e+1,n=2*e+2,r=e;if(t<this.length&&this.isHigherPriority(t,r)&&(r=t),n<this.length&&this.isHigherPriority(n,r)&&(r=n),r!==e){var o=this.items[e];this.items[e]=this.items[r],this.items[r]=o,this.heapify(r)}}},Ht.peek=function(){return this.items[0].value},Ht.removeAt=function(e){this.items[e]=this.items[--this.length],this.items[this.length]=s,this.heapify()},Ht.dequeue=function(){var e=this.peek();return this.removeAt(0),e},Ht.enqueue=function(e){var t=this.length++;this.items[t]=new T(Kt.count++,e),this.percolate(t)},Ht.remove=function(e){for(var t=0;t<this.length;t++)if(this.items[t].value===e)return this.removeAt(t),!0;return!1},Kt.count=0;var Gt=Ve.CompositeDisposable=function(){var e,t,n=[];if(Array.isArray(arguments[0]))n=arguments[0],t=n.length;else for(t=arguments.length,n=new Array(t),e=0;t>e;e++)n[e]=arguments[e];for(e=0;t>e;e++)if(!Zt(n[e]))throw new TypeError("Not a disposable");this.disposables=n,this.isDisposed=!1,this.length=n.length},Yt=Gt.prototype;Yt.add=function(e){this.isDisposed?e.dispose():(this.disposables.push(e),this.length++)},Yt.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},Yt.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 Qt=Ve.Disposable=function(e){this.isDisposed=!1,this.action=e||Be};Qt.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)};var Xt=Qt.create=function(e){return new Qt(e)},$t=Qt.empty={dispose:Be},Zt=Qt.isDisposable=function(e){return e&&Qe(e.dispose)},Jt=Qt.checkDisposed=function(e){if(e.isDisposed)throw new ot},en=Ve.SingleAssignmentDisposable=function(){this.isDisposed=!1,this.current=null};en.prototype.getDisposable=function(){return this.current},en.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()},en.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null}e&&e.dispose()};var tn=Ve.SerialDisposable=function(){this.isDisposed=!1,this.current=null};tn.prototype.getDisposable=function(){return this.current},tn.prototype.setDisposable=function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e}n&&n.dispose(),t&&e&&e.dispose()},tn.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null}e&&e.dispose()};var nn=Ve.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?$t:new e(this)},t}();x.prototype.dispose=function(){this.scheduler.scheduleWithState(this,C)};var rn=Ve.internals.ScheduledItem=function(e,t,n,r,o){this.scheduler=e,this.state=t,this.action=n,this.dueTime=r,this.comparer=o||He,this.disposable=new en};rn.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},rn.prototype.compareTo=function(e){return this.comparer(this.dueTime,e.dueTime)},rn.prototype.isCancelled=function(){return this.disposable.isDisposed},rn.prototype.invokeCore=function(){return this.action(this.scheduler,this.state)};var on=Ve.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(),$t}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=ze,e.normalize=function(e){return 0>e&&(e=0),e},e}(),sn=on.normalize,an=on.isScheduler;!function(e){function t(e,t){function n(t){function r(e,t){return s?i.remove(u):a=!0,o(t,n),$t}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 Gt;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),$t}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 Gt;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)}}(on.prototype),function(e){on.prototype.schedulePeriodic=function(e,t){return this.schedulePeriodicWithState(null,e,t)},on.prototype.schedulePeriodicWithState=function(e,t,n){if("undefined"==typeof We.setInterval)throw new st;t=sn(t);var r=e,o=We.setInterval(function(){r=n(r)},t);return Xt(function(){We.clearInterval(o)})}}(on.prototype),function(e){e.catchError=e["catch"]=function(e){return new yn(this,e)}}(on.prototype);var un,cn,ln=Ve.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 en;return this._cancel=t,t.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0,this._period,e.bind(this))),t},t}(),pn=on.immediate=function(){function e(e,t){return t(this,e)}return new on(ze,e,ct,ct)}(),hn=on.currentThread=function(){function e(){for(;n.length>0;){var e=n.shift();!e.isCancelled()&&e.invoke()}}function t(t,r){var o=new rn(this,t,r,this.now());if(n)n.push(o);else{n=[o];var i=$e(e)();if(n=null,i===Xe)return c(i.e)}return o.disposable}var n,r=new on(ze,t,ct,ct);return r.scheduleRequired=function(){return!n},r}(),dn=function(){var e,t=Be;if(We.setTimeout)e=We.setTimeout,t=We.clearTimeout;else{if(!We.WScript)throw new st;e=function(e,t){We.WScript.Sleep(t),e()}}return{setTimeout:e,clearTimeout:t}}(),fn=dn.setTimeout,mn=dn.clearTimeout;!function(){function e(t){if(s)fn(function(){e(t)},0);else{var n=o[t];if(n){s=!0;var r=$e(n)();if(cn(t),s=!1,r===Xe)return c(r.e)}}}function t(){if(!We.postMessage||We.importScripts)return!1;var e=!1,t=We.onmessage;return We.onmessage=function(){e=!0},We.postMessage("","*"),We.onmessage=t,e}function n(t){"string"==typeof t.data&&t.data.substring(0,l.length)===l&&e(t.data.substring(l.length))}var r=1,o={},s=!1;cn=function(e){delete o[e]};var a=RegExp("^"+String(Ot).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),u="function"==typeof(u=Ue&&Fe&&Ue.setImmediate)&&!a.test(u)&&u;if(Qe(u))un=function(t){var n=r++;return o[n]=t,u(function(){e(n)}),n};else if("undefined"!=typeof i&&"[object process]"==={}.toString.call(i))un=function(t){var n=r++;return o[n]=t,i.nextTick(function(){e(n)}),n};else if(t()){var l="ms.rx.schedule"+Math.random();We.addEventListener?We.addEventListener("message",n,!1):We.attachEvent?We.attachEvent("onmessage",n):We.onmessage=n,un=function(e){var t=r++;return o[t]=e,We.postMessage(l+currentId,"*"),t}}else if(We.MessageChannel){var p=new We.MessageChannel;p.port1.onmessage=function(t){e(t.data)},un=function(e){var t=r++;return o[t]=e,p.port2.postMessage(t),t}}else un="document"in We&&"onreadystatechange"in We.document.createElement("script")?function(t){var n=We.document.createElement("script"),i=r++;return o[i]=t,n.onreadystatechange=function(){e(i),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},We.document.documentElement.appendChild(n),i}:function(t){var n=r++;return o[n]=t,fn(function(){e(n)},0),n}}();var vn=on.timeout=on["default"]=function(){function e(e,t){var n=this,r=new en,o=un(function(){!r.isDisposed&&r.setDisposable(t(n,e))});return new Gt(r,Xt(function(){cn(o)}))}function t(e,t,n){var r=this,o=on.normalize(t),i=new en;if(0===o)return r.scheduleWithState(e,n);var s=fn(function(){!i.isDisposed&&i.setDisposable(n(r,e))},o);return new Gt(i,Xt(function(){mn(s)}))}function n(e,t,n){return this.scheduleWithRelativeAndState(e,t-this.now(),n)}return new on(ze,e,t,n)}(),yn=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 Bt(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 $t}}},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 en;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}(on),gn=Ve.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 an(e)||(e=pn),new no(function(n){return e.scheduleWithState(t,function(e,t){t._acceptObservable(n),"N"===t.kind&&n.onCompleted()})})},e}(),bn=gn.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 gn("N",r,null,e,t,n)}}(),wn=gn.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 gn("E",null,r,e,t,n)}}(),En=gn.createOnCompleted=function(){function e(e,t,n){return n()}function t(e){return e.onCompleted()}function n(){return"OnCompleted()"}return function(){return new gn("C",null,null,e,t,n)}}(),Tn=Ve.Observer=function(){};Tn.prototype.toNotifier=function(){var e=this;return function(t){return t.accept(e)}},Tn.prototype.asObserver=function(){var e=this;return new Sn(function(t){e.onNext(t)},function(t){e.onError(t)},function(){e.onCompleted()})},Tn.prototype.checked=function(){return new Nn(this)};var xn=Tn.create=function(e,t,n){return e||(e=Be),t||(t=Ge),n||(n=Be),new Sn(e,t,n)};Tn.fromNotifier=function(e,t){var n=mt(e,t,1);return new Sn(function(e){return n(bn(e))},function(e){return n(wn(e))},function(){return n(En())})},Tn.prototype.notifyOn=function(e){return new Dn(e,this)},Tn.prototype.makeSafe=function(e){return new AnonymousSafeObserver(this._onNext,this._onError,this._onCompleted,e)};var Cn,_n=Ve.internals.AbstractObserver=function(e){function t(){this.isStopped=!1}return Bt(t,e),t.prototype.next=ut,t.prototype.error=ut,t.prototype.completed=ut,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}(Tn),Sn=Ve.AnonymousObserver=function(e){function t(t,n,r){e.call(this),this._onNext=t,this._onError=n,this._onCompleted=r}return Bt(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}(_n),Nn=function(e){function t(t){e.call(this),this._observer=t,this._state=0}Bt(t,e);var n=t.prototype;return n.onNext=function(e){this.checkAccess();var t=$e(this._observer.onNext).call(this._observer,e);this._state=0,t===Xe&&c(t.e)},n.onError=function(e){this.checkAccess();var t=$e(this._observer.onError).call(this._observer,e);this._state=2,t===Xe&&c(t.e)},n.onCompleted=function(){this.checkAccess();var e=$e(this._observer.onCompleted).call(this._observer);this._state=2,e===Xe&&c(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}(Tn),On=Ve.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 tn}return Bt(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=$e(n)();return r===Xe?(e.queue=[],e.hasFaulted=!0,c(r.e)):void t(e)}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.disposable.dispose()},t}(_n),Dn=function(e){function t(t,n,r){e.call(this,t,n),this._cancel=r}return Bt(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}(On),Pn=Ve.Observable=function(){function e(e,t){return function(n){var r=n.onError;return n.onError=function(t){l(t,e),r.call(n,t)},t.call(e,n)}}function t(t){if(Ve.config.longStackSupport&&Ze){var n=$e(c)(new Error).e;this.stack=n.stack.substring(n.stack.indexOf("\n")+1),this._subscribe=e(this,t)}else this._subscribe=t}return Cn=t.prototype,t.isObservable=function(e){return e&&Qe(e.subscribe)},Cn.subscribe=Cn.forEach=function(e,t,n){return this._subscribe("object"==typeof e?e:xn(e,t,n))},Cn.subscribeOnNext=function(e,t){return this._subscribe(xn("undefined"!=typeof t?function(n){e.call(t,n)}:e))},Cn.subscribeOnError=function(e,t){return this._subscribe(xn(null,"undefined"!=typeof t?function(n){e.call(t,n)}:e))},Cn.subscribeOnCompleted=function(e,t){return this._subscribe(xn(null,null,"undefined"!=typeof t?function(){e.call(t)}:e))},t}(),kn=Ve.ObservableBase=function(e){function t(e){return e&&Qe(e.dispose)?e:Qe(e)?Xt(e):$t}function n(e,n){var r=n[0],o=n[1],i=$e(o.subscribeCore).call(o,r);return i!==Xe||r.fail(Xe.e)?void r.setDisposable(t(i)):c(Xe.e)}function r(e){var t=new ro(e),r=[t,this];return hn.scheduleRequired()?hn.scheduleWithState(r,n):n(null,r),t}function o(){e.call(this,r)}return Bt(o,e),o.prototype.subscribeCore=ut,o}(Pn),Mn=function(e){function t(t,n,r,o){this.resultSelector=Ve.helpers.isFunction(r)?r:null,this.selector=Ve.internals.bindCallback(Ve.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 Bt(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=$e(this.selector)(e,t,this.source);if(n===Xe)return this.o.onError(n.e);Ve.helpers.isPromise(n)&&(n=Ve.Observable.fromPromise(n)),(Ve.helpers.isArrayLike(n)||Ve.helpers.isIterable(n))&&(n=Ve.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}(kn),An=Ve.internals.Enumerable=function(){},Rn=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 Bt(t,e),t.prototype.subscribeCore=function(e){var t,r=new tn,o=pn.scheduleRecursiveWithState(this.sources[lt](),function(o,i){if(!t){var s=$e(o.next).call(o);if(s===Xe)return e.onError(s.e);if(s.done)return e.onCompleted();var a=s.value;Ye(a)&&(a=Vn(a));var u=new en;r.setDisposable(u),u.setDisposable(a.subscribe(new n(e,i,o)))}});return new Gt(r,o,Xt(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}(kn);An.prototype.concat=function(){return new Rn(this)};var In=function(e){function t(t){this.sources=t,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t,n=this.sources[lt](),r=new tn,o=pn.scheduleRecursiveWithState(null,function(o,i){if(!t){var s=$e(n.next).call(n);if(s===Xe)return e.onError(s.e);if(s.done)return null!==o?e.onError(o):e.onCompleted();var a=s.value;Ye(a)&&(a=Vn(a));var u=new en;r.setDisposable(u),u.setDisposable(a.subscribe(function(t){e.onNext(t)},i,function(){e.onCompleted()}))}});return new Gt(r,o,Xt(function(){t=!0}))},t}(kn);An.prototype.catchError=function(){return new In(this)},An.prototype.catchErrorWhen=function(e){var t=this;return new no(function(n){var r,o,i=new io,s=new io,a=e(i),u=a.subscribe(s),c=t[lt](),l=new tn,p=pn.scheduleRecursive(function(e){if(!r){var t=$e(c.next).call(c);if(t===Xe)return n.onError(t.e);if(t.done)return void(o?n.onError(o):n.onCompleted());var a=t.value;Ye(a)&&(a=Vn(a));var u=new en,p=new en;l.setDisposable(new Gt(p,u)),u.setDisposable(a.subscribe(function(e){n.onNext(e)},function(t){p.setDisposable(s.subscribe(e,function(e){n.onError(e)},function(){n.onCompleted()})),i.onNext(t)},function(){n.onCompleted()}))}});return new Gt(u,l,p,Xt(function(){r=!0}))})};var jn=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 Bt(t,e),t.prototype[lt]=function(){return new n(this)},n.prototype.next=function(){return 0===this.l?pt:(this.l>0&&this.l--,{done:!1,value:this.v})},t}(An),Ln=An.repeat=function(e,t){return new jn(e,t)},Fn=function(e){function t(e,t,n){this.s=e,this.fn=t?mt(t,n,3):null}function n(e){this.i=-1,this.s=e.s,this.l=this.s.length,this.fn=e.fn}return Bt(t,e),t.prototype[lt]=function(){return new n(this)},n.prototype.next=function(){return++this.i<this.l?{done:!1,value:this.fn?this.fn(this.s[this.i],this.i,this.s):this.s[this.i]}:pt},t}(An),Un=An.of=function(e,t,n){return new Fn(e,t,n)};Cn.observeOn=function(e){var t=this;return new no(function(n){return t.subscribe(new Dn(e,n))},t)},Cn.subscribeOn=function(e){var t=this;return new no(function(n){var r=new en,o=new tn;return o.setDisposable(r),r.setDisposable(e.schedule(function(){o.setDisposable(new x(e,t.subscribe(n)))})),o},t)};var Wn=function(e){function t(t){this.p=t,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.p.then(function(t){e.onNext(t),e.onCompleted()},function(t){e.onError(t)}),$t},t}(kn),Vn=Pn.fromPromise=function(e){return new Wn(e)};Cn.toPromise=function(e){if(e||(e=Ve.config.Promise),!e)throw new st("Promise type not provided nor in Rx.config.Promise");var t=this;return new e(function(e,n){var r,o=!1;t.subscribe(function(e){r=e,o=!0},n,function(){o&&e(r)})})};var Bn=function(e){function t(t){this.source=t,e.call(this)}function n(e){this.o=e,this.a=[],this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e))},n.prototype.onNext=function(e){this.isStopped||this.a.push(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.o.onNext(this.a),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}(kn);Cn.toArray=function(){return new Bn(this)},Pn.create=function(e,t){return new no(e,t)};var qn=Pn.defer=function(e){return new no(function(t){var n;try{n=e()}catch(r){return ur(r).subscribe(t)}return Ye(n)&&(n=Vn(n)),n.subscribe(t)})},zn=function(e){function t(t){this.scheduler=t,e.call(this)}function n(e,t){this.observer=e,this.scheduler=t}function r(e,t){return t.onCompleted(),$t}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new n(e,this.scheduler);return t.run()},n.prototype.run=function(){return this.scheduler.scheduleWithState(this.observer,r)},t}(kn),Kn=new zn(pn),Hn=Pn.empty=function(e){return an(e)||(e=pn),e===pn?Kn:new zn(e)},Gn=function(e){function t(t,n,r){this.iterable=t,this.mapper=n,this.scheduler=r,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new Yn(e,this);return t.run()},t}(kn),Yn=function(){function e(e,t){this.o=e,this.parent=t;
+}return e.prototype.run=function(){function e(e,t){var i=$e(n.next).call(n);if(i===Xe)return r.onError(i.e);if(i.done)return r.onCompleted();var s=i.value;return Qe(o)&&(s=$e(o)(s,e),s===Xe)?r.onError(s.e):(r.onNext(s),void t(e+1))}var t=Object(this.parent.iterable),n=P(t),r=this.o,o=this.parent.mapper;return this.parent.scheduler.scheduleRecursiveWithState(0,e)},e}(),Qn=Math.pow(2,53)-1;_.prototype[lt]=function(){return new S(this._s)},S.prototype[lt]=function(){return this},S.prototype.next=function(){return this._i<this._l?{done:!1,value:this._s.charAt(this._i++)}:pt},N.prototype[lt]=function(){return new O(this._a)},O.prototype[lt]=function(){return this},O.prototype.next=function(){return this._i<this._l?{done:!1,value:this._a[this._i++]}:pt};var Xn=Pn.from=function(e,t,n,r){if(null==e)throw new Error("iterable cannot be null.");if(t&&!Qe(t))throw new Error("mapFn when provided must be a function");if(t)var o=mt(t,n,2);return an(r)||(r=hn),new Gn(e,o,r)},$n=function(e){function t(t,n){this.args=t,this.scheduler=n,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new A(e,this);return t.run()},t}(kn);A.prototype.run=function(){function e(e,o){r>e?(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 Zn=Pn.fromArray=function(e,t){return an(t)||(t=hn),new $n(e,t)};Pn.generate=function(e,t,n,r,o){return an(o)||(o=hn),new no(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()})})},Pn.of=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return new $n(t,hn)},Pn.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 $n(n,e)},Pn.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 no(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)}})},Pn.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 no(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 Jn=function(e){function t(){e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){return $t},t}(kn),er=new Jn,tr=Pn.never=function(){return er},nr=function(e){function t(t,n){this.obj=t,this.keys=Object.keys(t),this.scheduler=n,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new I(e,this);return t.run()},t}(kn);I.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)},Pn.pairs=function(e,t){return t||(t=hn),new nr(e,t)};var rr=function(e){function t(t,n,r){this.start=t,this.rangeCount=n,this.scheduler=r,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new or(e,this);return t.run()},t}(kn),or=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}();Pn.range=function(e,t,n){return an(n)||(n=hn),new rr(e,t,n)};var ir=function(e){function t(t,n,r){this.value=t,this.repeatCount=null==n?-1:n,this.scheduler=r,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new j(e,this);return t.run()},t}(kn);j.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)},Pn.repeat=function(e,t,n){return an(n)||(n=hn),new ir(e,t,n)};var sr=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(),$t}return Bt(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===pn?r(null,e):this.scheduler.scheduleWithState(e,r)},t}(kn),ar=(Pn["return"]=Pn.just=function(e,t){return an(t)||(t=pn),new sr(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 Bt(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}(kn)),ur=Pn["throw"]=function(e,t){return an(t)||(t=pn),new ar(e,t)};Pn.using=function(e,t){return new no(function(n){var r=$t,o=$e(e)();if(o===Xe)return new Gt(ur(o.e).subscribe(n),r);o&&(r=o);var i=$e(t)(o);return i===Xe?new Gt(ur(i.e).subscribe(n),r):new Gt(i.subscribe(n),r)})},Cn.amb=function(e){var t=this;return new no(function(n){function r(){i||(i=s,c.dispose())}function o(){i||(i=a,u.dispose())}var i,s="L",a="R",u=new en,c=new en;Ye(e)&&(e=Vn(e));var l=xn(function(e){r(),i===s&&n.onNext(e)},function(e){r(),i===s&&n.onError(e)},function(){r(),i===s&&n.onCompleted()}),p=xn(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 Gt(u,c)})},Pn.amb=function(){var e,t=tr();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=L(t,e[r]);return t};var cr=function(e){function t(t,n,r){this._o=t,this._s=n,this._fn=r,e.call(this)}return Bt(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=$e(this._fn)(e);if(t===Xe)return this._o.onError(t.e);Ye(t)&&(t=Vn(t));var n=new en;this._s.setDisposable(n),n.setDisposable(t.subscribe(this._o))},t}(_n);Cn["catch"]=function(e){return Qe(e)?F(this,e):lr([this,e])};var lr=Pn["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 Un(e).catchError()};Cn.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),pr.apply(this,t)};var pr=Pn.combineLatest=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=Qe(t[e-1])?t.pop():W;return Array.isArray(t[0])&&(t=t[0]),new no(function(e){function n(t){if(s[t]=!0,a||(a=s.every(qe))){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(qe)&&e.onCompleted()}function o(t){u[t]=!0,u.every(qe)&&e.onCompleted()}for(var i=t.length,s=E(i,U),a=!1,u=E(i,U),c=new Array(i),l=new Array(i),p=0;i>p;p++)!function(r){var i=t[r],s=new en;Ye(i)&&(i=Vn(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 Gt(l)},this)};Cn.concat=function(){for(var e=[],t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return e.unshift(this),dr.apply(null,e)};var hr=function(e){function t(t){this.sources=t,e.call(this)}function n(e,t){this.sources=e,this.o=t}return Bt(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 tn,n=this.sources,r=n.length,o=this.o,i=pn.scheduleRecursiveWithState(0,function(i,s){if(!e){if(i===r)return o.onCompleted();var a=n[i];Ye(a)&&(a=Vn(a));var u=new en;t.setDisposable(u),u.setDisposable(a.subscribe(function(e){o.onNext(e)},function(e){o.onError(e)},function(){s(i+1)}))}});return new Gt(t,i,Xt(function(){e=!0}))},t}(kn),dr=Pn.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 hr(e)};Cn.concatAll=function(){return this.merge(1)};var fr=function(e){function t(t,n){this.source=t,this.maxConcurrent=n,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new Gt;return t.add(this.source.subscribe(new mr(e,this.maxConcurrent,t))),t},t}(kn),mr=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 en;this.g.add(n),Ye(e)&&(e=Vn(e)),n.setDisposable(e.subscribe(new t(this,n)))},e.prototype.onNext=function(e){this.isStopped||(this.activeCount<this.max?(this.activeCount++,this.handleSubscribe(e)):this.q.push(e))},e.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},e.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.done=!0,0===this.activeCount&&this.o.onCompleted())},e.prototype.dispose=function(){this.isStopped=!0},e.prototype.fail=function(e){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(e),!0)},t.prototype.onNext=function(e){this.isStopped||this.parent.o.onNext(e)},t.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.parent.o.onError(e))},t.prototype.onCompleted=function(){if(!this.isStopped){this.isStopped=!0;var e=this.parent;e.g.remove(this.sad),e.q.length>0?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}();Cn.merge=function(e){return"number"!=typeof e?vr(this,e):new fr(this,e)};var vr=Pn.merge=function(){var e,t,n=[],r=arguments.length;if(arguments[0])if(an(arguments[0]))for(e=arguments[0],t=1;r>t;t++)n.push(arguments[t]);else for(e=pn,t=0;r>t;t++)n.push(arguments[t]);else for(e=pn,t=1;r>t;t++)n.push(arguments[t]);return Array.isArray(n[0])&&(n=n[0]),R(e,n).mergeAll()},yr=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 Bt(t,e),t.prototype.subscribeCore=function(e){var t=new Gt,r=new en;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 en;this.g.add(t),Ye(e)&&(e=Vn(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}(kn);Cn.mergeAll=function(){return new yr(this)};var gr=Ve.CompositeError=function(e){this.name="NotImplementedError",this.innerErrors=e,this.message="This contains multiple errors. Check the innerErrors",Error.call(this)};gr.prototype=Error.prototype,Pn.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=R(null,e);return new no(function(e){function t(){0===s.length?e.onCompleted():1===s.length?e.onError(s[0]):e.onError(new gr(s))}var n=new Gt,o=new en,i=!1,s=[];return n.add(o),o.setDisposable(r.subscribe(function(r){var o=new en;n.add(o),Ye(r)&&(r=Vn(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})},Cn.onErrorResumeNext=function(e){if(!e)throw new Error("Second observable is required");return br([this,e])};var br=Pn.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 no(function(t){var n=0,r=new tn,o=pn.scheduleRecursive(function(o){var i,s;n<e.length?(i=e[n++],Ye(i)&&(i=Vn(i)),s=new en,r.setDisposable(s),s.setDisposable(i.subscribe(t.onNext.bind(t),o,o))):t.onCompleted()});return new Gt(r,o)})};Cn.skipUntil=function(e){var t=this;return new no(function(n){var r=!1,o=new Gt(t.subscribe(function(e){r&&n.onNext(e)},function(e){n.onError(e)},function(){r&&n.onCompleted()}));Ye(e)&&(e=Vn(e));var i=new en;return o.add(i),i.setDisposable(e.subscribe(function(){r=!0,i.dispose()},function(e){n.onError(e)},function(){i.dispose()})),o},t)};var wr=function(e){function t(t){this.source=t,e.call(this)}function n(e,t){this.o=e,this.inner=t,this.stopped=!1,this.latest=0,this.hasLatest=!1,this.isStopped=!1}function r(e,t){this.parent=e,this.id=t,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){var t=new tn,r=this.source.subscribe(new n(e,t));return new Gt(r,t)},n.prototype.onNext=function(e){if(!this.isStopped){var t=new en,n=++this.latest;this.hasLatest=!0,this.inner.setDisposable(t),Ye(e)&&(e=Vn(e)),t.setDisposable(e.subscribe(new r(this,n)))}},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.stopped=!0,!this.hasLatest&&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.latest===this.id&&this.parent.o.onNext(e)},r.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.parent.latest===this.id&&this.parent.o.onError(e))},r.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.parent.latest===this.id&&(this.parent.hasLatest=!1,this.parent.isStopped&&this.parent.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}(kn);Cn["switch"]=Cn.switchLatest=function(){return new wr(this)};var Er=function(e){function t(t,n){this.source=t,this.other=Ye(n)?Vn(n):n,e.call(this)}function n(e){this.o=e,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return new Gt(this.source.subscribe(e),this.other.subscribe(new n(e)))},n.prototype.onNext=function(e){this.isStopped||this.o.onCompleted()},n.prototype.onError=function(e){this.isStopped||(this.isStopped=!0,this.o.onError(e))},n.prototype.onCompleted=function(){!this.isStopped&&(this.isStopped=!0)},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}(kn);Cn.takeUntil=function(e){return new Er(this,e)},Cn.withLatestFrom=function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t.pop(),o=this;return Array.isArray(t[0])&&(t=t[0]),new no(function(e){for(var n=t.length,i=E(n,U),s=!1,a=new Array(n),u=new Array(n+1),c=0;n>c;c++)!function(n){var r=t[n],o=new en;Ye(r)&&(r=Vn(r)),o.setDisposable(r.subscribe(function(e){a[n]=e,i[n]=!0,s=i.every(qe)},function(t){e.onError(t)},Be)),u[n]=o}(c);var l=new en;return l.setDisposable(o.subscribe(function(t){var n=[t].concat(a);if(s){var o=$e(r).apply(null,n);return o===Xe?e.onError(o.e):void e.onNext(o)}},function(t){e.onError(t)},function(){e.onCompleted()})),u[n]=l,new Gt(u)},this)},Cn.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=Qe(t[e-1])?t.pop():W;Array.isArray(t[0])&&(t=t[0]);var o=this;return t.unshift(o),new no(function(e){for(var n=t.length,i=E(n,V),s=E(n,U),a=new Array(n),u=0;n>u;u++)!function(n){var u=t[n],c=new en;Ye(u)&&(u=Vn(u)),c.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=$e(r).apply(o,a);if(u===Xe)return e.onError(u.e);e.onNext(u)}else s.filter(function(e,t){return t!==n}).every(qe)&&e.onCompleted()},function(t){e.onError(t)},function(){s[n]=!0,s.every(qe)&&e.onCompleted()})),a[n]=c}(u);return new Gt(a)},o)},Pn.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=Qe(t[1])?t[0].concat(t[1]):t[0]);var r=t.shift();return r.zip.apply(r,t)},Cn.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=Qe(t[e-1])?t.pop():W,o=this;return t.unshift(o),new no(function(e){for(var n=t.length,i=E(n,V),s=E(n,U),a=new Array(n),u=0;n>u;u++)!function(n){var u=t[n],c=new en;(dt(u)||ht(u))&&(u=Xn(u)),c.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=$e(r).apply(o,a);if(u===Xe)return e.onError(u.e);e.onNext(u)}else s.filter(function(e,t){return t!==n}).every(qe)&&e.onCompleted()},function(t){e.onError(t)},function(){s[n]=!0,s.every(qe)&&e.onCompleted()})),a[n]=c}(u);return new Gt(a)},o)},Cn.asObservable=function(){return new no(B(this),this)},Cn.bufferWithCount=function(e,t){return"number"!=typeof t&&(t=e),this.windowWithCount(e,t).flatMap(q).filter(z)},Cn.dematerialize=function(){var e=this;return new no(function(t){return e.subscribe(function(e){return e.accept(t)},function(e){t.onError(e)},function(){t.onCompleted()})},this)};var Tr=function(e){function t(t,n,r){this.source=t,this.keyFn=n,this.comparer=r,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new xr(e,this.keyFn,this.comparer))},t}(kn),xr=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 Bt(t,e),t.prototype.next=function(e){var t,n=e;return Qe(this.keyFn)&&(n=$e(this.keyFn)(e),n===Xe)?this.o.onError(n.e):this.hasCurrentKey&&(t=$e(this.comparer)(this.currentKey,n),t===Xe)?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}(_n);Cn.distinctUntilChanged=function(e,t){return t||(t=Ke),new Tr(this,e,t)};var Cr=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||Qe(t._oN)?xn(t._oN||Be,t._oE||Be,t._oC||Be):t._oN,this.isStopped=!1}return Bt(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=$e(this.t.onNext).call(this.t,e);t===Xe&&this.o.onError(t.e),this.o.onNext(e)}},n.prototype.onError=function(e){if(!this.isStopped){this.isStopped=!0;var t=$e(this.t.onError).call(this.t,e);if(t===Xe)return this.o.onError(t.e);this.o.onError(e)}},n.prototype.onCompleted=function(){if(!this.isStopped){this.isStopped=!0;var e=$e(this.t.onCompleted).call(this.t);if(e===Xe)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}(kn);Cn["do"]=Cn.tap=Cn.doAction=function(e,t,n){return new Cr(this,e,t,n)},Cn.doOnNext=Cn.tapOnNext=function(e,t){return this.tap("undefined"!=typeof t?function(n){e.call(t,n)}:e)},Cn.doOnError=Cn.tapOnError=function(e,t){return this.tap(Be,"undefined"!=typeof t?function(n){e.call(t,n)}:e)},Cn.doOnCompleted=Cn.tapOnCompleted=function(e,t){return this.tap(Be,null,"undefined"!=typeof t?function(){e.call(t)}:e)},Cn["finally"]=function(e){var t=this;return new no(function(n){var r=$e(t.subscribe).call(t,n);return r===Xe?(e(),c(r.e)):Xt(function(){var t=$e(r.dispose).call(r);e(),t===Xe&&c(t.e)})},this)};var _r=function(e){function t(t){this.source=t,e.call(this)}function n(e){this.o=e,this.isStopped=!1}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new n(e))},n.prototype.onNext=Be,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}(kn);Cn.ignoreElements=function(){return new _r(this)},Cn.materialize=function(){var e=this;return new no(function(t){return e.subscribe(function(e){t.onNext(bn(e))},function(e){t.onNext(wn(e)),t.onCompleted()},function(){t.onNext(En()),t.onCompleted()})},e)},Cn.repeat=function(e){return Ln(this,e).concat()},Cn.retry=function(e){return Ln(this,e).catchError()},Cn.retryWhen=function(e){return Ln(this).catchErrorWhen(e)};var Sr=function(e){function t(t,n,r,o){this.source=t,this.accumulator=n,this.hasSeed=r,this.seed=o,e.call(this)}return Bt(t,e),t.prototype.subscribeCore=function(e){return this.source.subscribe(new K(e,this))},t}(kn);K.prototype={onNext:function(e){return this.isStopped?void 0:(!this.hasValue&&(this.hasValue=!0),this.hasAccumulation?this.accumulation=$e(this.accumulator)(this.accumulation,e):(this.accumulation=this.hasSeed?$e(this.accumulator)(this.seed,e):e,this.hasAccumulation=!0),this.accumulation===Xe?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)}},Cn.scan=function(){var e,t=!1,n=arguments[0];return 2===arguments.length&&(t=!0,e=arguments[1]),new Sr(this,n,t,e)},Cn.skipLast=function(e){if(0>e)throw new it;var t=this;return new no(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)},Cn.startWith=function(){var e,t=0;arguments.length&&an(arguments[0])?(e=arguments[0],t=1):e=pn;for(var n=[],r=t,o=arguments.length;o>r;r++)n.push(arguments[r]);return Un([Zn(n,e),this]).concat()},Cn.takeLast=function(e){if(0>e)throw new it;var t=this;return new no(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)},Cn.takeLastBuffer=function(e){var t=this;return new no(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)},Cn.windowWithCount=function(e,t){var n=this;if(+e||(e=0),Math.abs(e)===1/0&&(e=0),0>=e)throw new it;if(null==t&&(t=e),+t||(t=0),Math.abs(t)===1/0&&(t=0),0>=t)throw new it;return new no(function(r){function o(){var e=new io;u.push(e),r.onNext(zt(e,s))}var i=new en,s=new nn(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)},Cn.selectConcat=Cn.concatMap=function(e,t,n){return Qe(e)&&Qe(t)?this.concatMap(function(n,r){var o=e(n,r);return Ye(o)&&(o=Vn(o)),(dt(o)||ht(o))&&(o=Xn(o)),o.map(function(e,o){return t(n,e,r,o)})}):Qe(e)?H(this,e,n):H(this,function(){return e})},Cn.concatMapObserver=Cn.selectConcatObserver=function(e,t,n,r){var o=this,i=mt(e,r,2),s=mt(t,r,1),a=mt(n,r,0);return new no(function(e){var t=0;return o.subscribe(function(n){var r;try{r=i(n,t++)}catch(o){return void e.onError(o)}Ye(r)&&(r=Vn(r)),e.onNext(r)},function(t){var n;try{n=s(t)}catch(r){return void e.onError(r)}Ye(n)&&(n=Vn(n)),e.onNext(n),e.onCompleted()},function(){var t;try{t=a()}catch(n){return void e.onError(n)}Ye(t)&&(t=Vn(t)),e.onNext(t),e.onCompleted()})},this).concatAll()},Cn.defaultIfEmpty=function(e){var t=this;return e===s&&(e=null),new no(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)},Y.prototype.push=function(e){var t=-1===G(this.set,e,this.comparer);return t&&this.set.push(e),t},Cn.distinct=function(e,t){var n=this;return t||(t=Ke),new no(function(r){var o=new Y(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)},Cn.groupBy=function(e,t){return this.groupByUntil(e,t,tr)},Cn.groupByUntil=function(e,t,n){var r=this;return new no(function(o){var i=new Zr,a=new Gt,u=new nn(a),c=function(e){return function(t){t.onError(e)}};return a.add(r.subscribe(function(r){var l=$e(e)(r);if(l===Xe)return i.forEach(c(l.e)),o.onError(l.e);var p=!1,h=i.get(l);if(h===s&&(h=new io,i.set(l,h),p=!0),p){var d=new oo(l,h,u),f=new oo(l,h),m=$e(n)(f);if(m===Xe)return i.forEach(c(m.e)),o.onError(m.e);o.onNext(d);var v=new en;a.add(v),v.setDisposable(m.take(1).subscribe(Be,function(e){i.forEach(c(e)),o.onError(e)},function(){i["delete"](l)&&h.onCompleted(),a.remove(v)}))}var y=r;return Qe(t)&&(y=$e(t)(r),y===Xe)?(i.forEach(c(y.e)),o.onError(y.e)):void h.onNext(y)},function(e){i.forEach(c(e)),o.onError(e)},function(){i.forEach(function(e){e.onCompleted()}),o.onCompleted()})),u},r)};var Nr=function(e){function t(t,n,r){this.source=t,this.selector=mt(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 Bt(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=$e(this.selector)(e,this.i++,this.source);return t===Xe?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}(kn);Cn.map=Cn.select=function(e,t){var n="function"==typeof e?e:function(){return e};return this instanceof Nr?this.internalMap(n,t):new Nr(this,n,t)},Cn.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(Q(t,e))},Cn.flatMap=Cn.selectMany=function(e,t,n){return new Mn(this,e,t,n).mergeAll()},Cn.flatMapObserver=Cn.selectManyObserver=function(e,t,n,r){var o=this;return new no(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)}Ye(n)&&(n=Vn(n)),i.onNext(n)},function(e){var n;try{n=t.call(r,e)}catch(o){return void i.onError(o)}Ye(n)&&(n=Vn(n)),i.onNext(n),i.onCompleted()},function(){var e;try{e=n.call(r)}catch(t){return void i.onError(t)}Ye(e)&&(e=Vn(e)),i.onNext(e),i.onCompleted()})},o).mergeAll()},Ve.Observable.prototype.flatMapLatest=function(e,t,n){return new Mn(this,e,t,n).switchLatest()};var Or=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 Bt(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}(kn);Cn.skip=function(e){if(0>e)throw new it;return new Or(this,e)},Cn.skipWhile=function(e,t){var n=this,r=mt(e,t,3);return new no(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)},Cn.take=function(e,t){if(0>e)throw new it;if(0===e)return Hn(t);var n=this;return new no(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)},Cn.takeWhile=function(e,t){var n=this,r=mt(e,t,3);return new no(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 Dr=function(e){function t(t,n,r){this.source=t,this.predicate=mt(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 Bt(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=$e(this.predicate)(e,this.i++,this.source);return t===Xe?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}(kn);Cn.filter=Cn.where=function(e,t){return this instanceof Dr?this.internalFilter(e,t):new Dr(this,e,t)};var Pr=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 Bt(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=$e(this.acc)(this.result,e):(this.result=this.hasSeed?$e(this.acc)(this.seed,e):e,this.hasAccumulation=!0),this.result===Xe&&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 rt),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}(kn);Cn.reduce=function(e){var t=!1;if(2===arguments.length){t=!0;var n=arguments[1]}return new Pr(this,e,t,n)};var kr=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,e.call(this)}return Bt(t,e),t.prototype.next=function(e){var t=$e(this._fn)(e,this._i++,this._s);return t===Xe?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}(_n);Cn.some=function(e,t){var n=this,r=mt(e,t,3);return new no(function(e){return n.subscribe(new kr(e,r,n))})};var Mr=function(e){function t(t){this._o=t,e.call(this)}return Bt(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}(_n);Cn.isEmpty=function(){var e=this;return new no(function(t){return e.subscribe(new Mr(t))},e)};var Ar=function(e){function t(t,n,r){this._o=t,this._fn=n,this._s=r,this._i=0,e.call(this)}return Bt(t,e),t.prototype.next=function(e){var t=$e(this._fn)(e,this._i++,this._s);return t===Xe?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}(_n);Cn.every=function(e,t){var n=this,r=mt(e,t,3);return new no(function(e){return n.subscribe(new Ar(e,r,n))},this)},Cn.includes=function(e,t){function n(e,t){return 0===e&&0===t||e===t||isNaN(e)&&isNaN(t)}var r=this;return new no(function(o){var i=0,s=+t||0;return Math.abs(s)===1/0&&(s=0),0>s?(o.onNext(!1),o.onCompleted(),$t):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)},Cn.contains=function(e,t){Cn.includes(e,t)},Cn.count=function(e,t){return e?this.filter(e,t).count():this.reduce(function(e){return e+1},0)},Cn.indexOf=function(e,t){var n=this;return new no(function(r){var o=0,i=+t||0;return Math.abs(i)===1/0&&(i=0),0>i?(r.onNext(-1),r.onCompleted(),$t):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)},Cn.sum=function(e,t){return e&&Qe(e)?this.map(e,t).sum():this.reduce(function(e,t){return e+t},0)},Cn.minBy=function(e,t){return t||(t=He),X(this,e,function(e,n){return-1*t(e,n)})},Cn.min=function(e){return this.minBy(qe,e).map(function(e){return $(e)})},Cn.maxBy=function(e,t){return t||(t=He),X(this,e,t)},Cn.max=function(e){return this.maxBy(qe,e).map(function(e){return $(e)})};var Rr=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 Bt(t,e),t.prototype.next=function(e){if(this._fn){var t=$e(this._fn)(e,this._c++,this._s);if(t===Xe)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 rt):(this._o.onNext(this._t/this._c),void this._o.onCompleted())},t}(_n);Cn.average=function(e,t){var n,r=this;return Qe(e)&&(n=mt(e,t,3)),new no(function(e){return r.subscribe(new Rr(e,n,r))},r)},Cn.sequenceEqual=function(e,t){var n=this;return t||(t=Ke),new no(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()))});(dt(e)||ht(e))&&(e=Xn(e)),Ye(e)&&(e=Vn(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 Gt(u,c)},n)},Cn.elementAt=function(e,t){if(0>e)throw new it;var n=this;return new no(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 it):(r.onNext(t),r.onCompleted())})},n)},Cn.single=function(e,t){if(Qe(e))return this.filter(e,t).single();var n=this;return new no(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 Ir=function(e){function t(t,n,r){this._o=t,this._obj=n,this._s=r,this._i=0,e.call(this)}return Bt(t,e),t.prototype.next=function(e){if(this._obj.predicate){var t=$e(this._obj.predicate)(e,this._i++,this._s);if(t===Xe)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 rt):(this._o.onNext(this._obj.defaultValue),this._o.onCompleted())},t}(_n);Cn.first=function(){var e={},t=this;if(e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},Qe(e.predicate)){var n=e.predicate;e.predicate=mt(n,e.thisArg,3)}return new no(function(n){return t.subscribe(new Ir(n,e,t))},t)},Cn.last=function(){var e={},t=this;if(e="object"==typeof arguments[0]?arguments[0]:{predicate:arguments[0],thisArg:arguments[1],defaultValue:arguments[2]},Qe(e.predicate)){var n=e.predicate;e.predicate=mt(n,e.thisArg,3)}return new no(function(n){var r,o=!1,i=0;return t.subscribe(function(s){if(e.predicate){var a=$e(e.predicate)(s,i++,t);if(a===Xe)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 rt):(n.onNext(e.defaultValue),n.onCompleted())})},t)},Cn.find=function(e,t){return Z(this,e,t,!1)},Cn.findIndex=function(e,t){return Z(this,e,t,!0)},Cn.toSet=function(){if("undefined"==typeof We.Set)throw new TypeError;var e=this;return new no(function(t){var n=new We.Set;return e.subscribe(function(e){n.add(e)},function(e){t.onError(e)},function(){t.onNext(n),t.onCompleted()})},e)},Cn.toMap=function(e,t){if("undefined"==typeof We.Map)throw new TypeError;var n=this;return new no(function(r){var o=new We.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)},Pn.wrap=function(e){function t(){return Pn.spawn.call(this,e.apply(this,arguments))}return t.__generatorFunction__=e,t};var jr=Pn.spawn=function(){for(var e=arguments[0],t=this,n=[],r=1,o=arguments.length;o>r;r++)n.push(arguments[r]);return new no(function(r){function o(t){var n=$e(e.next).call(e,t);return n===Xe?r.onError(n.e):void s(n)}function i(t){var n=$e(e.next).call(e,t);return n===Xe?r.onError(n.e):void s(n)}function s(e){if(e.done)return r.onNext(e.value),void r.onCompleted();var n=J.call(t,e.value);Pn.isObservable(n)?a.add(n.subscribe(o,i)):i(new TypeError("type not supported"))}var a=new Gt;return Qe(e)&&(e=e.apply(t,n)),e&&Qe(e.next)?(o(),a):(r.onNext(e),r.onCompleted())})};Pn.start=function(e,t,n){return Lr(e,t,n)()};var Lr=Pn.toAsync=function(e,t,n){return an(n)||(n=vn),function(){var r=arguments,o=new so;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()}};Pn.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 ie(e,t,n,o)}},Pn.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 ae(e,t,n,o)}},ce.prototype.dispose=function(){this.isDisposed||(this._e.removeEventListener(this._n,this._fn,!1),this.isDisposed=!0)},Ve.config.useNativeEvents=!1,Pn.fromEvent=function(e,t,n){return e.addListener?Fr(function(n){e.addListener(t,n)},function(n){e.removeListener(t,n)},n):Ve.config.useNativeEvents||"function"!=typeof e.on||"function"!=typeof e.off?new no(function(r){return le(e,t,pe(r,n))}).publish().refCount():Fr(function(n){e.on(t,n)},function(n){e.off(t,n)},n)};var Fr=Pn.fromEventPattern=function(e,t,n,r){return an(r)||(r=pn),new no(function(r){function o(){var e=arguments[0];return Qe(n)&&(e=$e(n).apply(null,arguments),e===Xe)?r.onError(e.e):void r.onNext(e)}var i=e(o);return Xt(function(){Qe(t)&&t(o,i)})}).publish().refCount()};Pn.startAsync=function(e){var t;try{t=e()}catch(n){return ur(n)}return Vn(t)};var Ur=function(e){function t(e){var t=this.source.publish(),n=t.subscribe(e),r=$t,o=this.pauser.distinctUntilChanged().subscribe(function(e){e?r=t.connect():(r.dispose(),r=$t)});return new Gt(n,r,o)}function n(n,r){this.source=n,this.controller=new io,r&&r.subscribe?this.pauser=this.controller.merge(r):this.pauser=this.controller,e.call(this,t,n)}return Bt(n,e),n.prototype.pause=function(){this.controller.onNext(!1)},n.prototype.resume=function(){this.controller.onNext(!0)},n}(Pn);Cn.pausable=function(e){return new Ur(this,e)};var Wr=function(e){function t(e){function t(){for(;r.length>0;)e.onNext(r.shift())}var n,r=[],o=he(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 io,r&&r.subscribe?this.pauser=this.controller.merge(r):this.pauser=this.controller,e.call(this,t,n)}return Bt(n,e),n.prototype.pause=function(){this.controller.onNext(!1)},n.prototype.resume=function(){this.controller.onNext(!0)},n}(Pn);Cn.pausableBuffered=function(e){return new Wr(this,e)};var Vr=function(e){function t(e){return this.source.subscribe(e)}function n(n,r,o){e.call(this,t,n),this.subject=new Br(r,o),this.source=n.multicast(this.subject).refCount()}return Bt(n,e),n.prototype.request=function(e){return this.subject.request(null==e?-1:e)},n}(Pn),Br=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 io,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||hn}return Bt(n,e),qt(n.prototype,Tn,{onCompleted:function(){this.hasCompleted=!0,this.enableQueue&&0!==this.queue.length?this.queue.push(gn.createOnCompleted()):(this.subject.onCompleted(),this.disposeCurrentRequest())},onError:function(e){this.hasFailed=!0,this.error=e,this.enableQueue&&0!==this.queue.length?this.queue.push(gn.createOnError(e)):(this.subject.onError(e),this.disposeCurrentRequest())},onNext:function(e){this.requestedCount<=0?this.enableQueue&&this.queue.push(gn.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,Xt(function(){t.requestedCount=0})):void 0}),this.requestedDisposable},disposeCurrentRequest:function(){this.requestedDisposable&&(this.requestedDisposable.dispose(),this.requestedDisposable=null)}}),n}(Pn);Cn.controlled=function(e,t){return e&&an(e)&&(t=e,e=!0),null==e&&(e=!0),new Vr(this,e,t)};var qr=function(e){function t(e){this.subscription=this.source.subscribe(new r(e,this,this.subscription));var t=this;return vn.schedule(function(){t.source.request(1)}),this.subscription}function n(n){e.call(this,t,n),this.source=n}Bt(n,e);var r=function(e){function t(t,n,r){e.call(this),this.observer=t,this.observable=n,this.cancel=r}Bt(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;vn.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}(_n);return n}(Pn);Vr.prototype.stopAndWait=function(){return new qr(this)};var zr=function(e){function t(e){this.subscription=this.source.subscribe(new r(e,this,this.subscription));var t=this;return vn.schedule(function(){t.source.request(t.windowSize)}),this.subscription}function n(n,r){e.call(this,t,n),this.source=n,this.windowSize=r}Bt(n,e);var r=function(e){function t(e,t,n){this.observer=e,this.observable=t,this.cancel=n,this.received=0}Bt(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;vn.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}(_n);return n}(Pn);Vr.prototype.windowed=function(e){return new zr(this,e)},Cn.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},Cn.multicast=function(e,t){var n=this;return"function"==typeof e?new no(function(r){var o=n.multicast(e());return new Gt(t(o).subscribe(r),o.connect())},n):new Yr(n,e)},Cn.publish=function(e){return e&&Qe(e)?this.multicast(function(){return new io},e):this.multicast(new io)},Cn.share=function(){return this.publish().refCount()},Cn.publishLast=function(e){return e&&Qe(e)?this.multicast(function(){return new so},e):this.multicast(new so)},Cn.publishValue=function(e,t){return 2===arguments.length?this.multicast(function(){return new Hr(t)},e):this.multicast(new Hr(e))},Cn.shareValue=function(e){return this.publishValue(e).refCount()},Cn.replay=function(e,t,n,r){return e&&Qe(e)?this.multicast(function(){return new Gr(t,n,r)},e):this.multicast(new Gr(t,n,r))},Cn.shareReplay=function(e,t,n){return this.replay(null,e,t,n).refCount()};var Kr=function(e,t){this.subject=e,this.observer=t};Kr.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 Hr=Ve.BehaviorSubject=function(e){function t(e){return Jt(this),this.isStopped?(this.hasError?e.onError(this.error):e.onCompleted(),$t):(this.observers.push(e),e.onNext(this.value),new Kr(this,e))}function n(n){e.call(this,t),this.value=n,this.observers=[],this.isDisposed=!1,this.isStopped=!1,this.hasError=!1}return Bt(n,e),qt(n.prototype,Tn,{getValue:function(){if(Jt(this),this.hasError)throw this.error;return this.value},hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(Jt(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(Jt(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(Jt(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}(Pn),Gr=Ve.ReplaySubject=function(e){function t(e,t){return Xt(function(){t.dispose(),!e.isDisposed&&e.observers.splice(e.observers.indexOf(t),1)})}function n(e){var n=new On(this.scheduler,e),r=t(this,n);Jt(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||hn,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 Bt(r,e),qt(r.prototype,Tn.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(Jt(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(Jt(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(Jt(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}(Pn),Yr=Ve.ConnectableObservable=function(e){function t(t,n){var r,o=!1,i=t.asObservable();this.connect=function(){return o||(o=!0,r=new Gt(i.subscribe(n),Xt(function(){o=!1}))),r},e.call(this,function(e){return n.subscribe(e)})}return Bt(t,e),t.prototype.refCount=function(){var e,t=0,n=this;return new no(function(r){var o=1===++t,i=n.subscribe(r);return o&&(e=n.connect()),function(){i.dispose(),0===--t&&e.dispose()}})},t}(Pn);Cn.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 no(function(t){return e().subscribe(t)})},Cn.join=function(e,t,n,r){var o=this;return new no(function(i){var s=new Gt,a=!1,u=!1,c=0,l=0,p=new Zr,h=new Zr,d=function(e){i.onError(e)};return s.add(o.subscribe(function(e){var n=c++,o=new en;p.set(n,e),s.add(o);var u=$e(t)(e);return u===Xe?i.onError(u.e):(o.setDisposable(u.take(1).subscribe(Be,d,function(){p["delete"](n)&&0===p.size&&a&&i.onCompleted(),s.remove(o)})),void h.forEach(function(t){var n=$e(r)(e,t);return n===Xe?i.onError(n.e):void i.onNext(n)}))},d,function(){a=!0,(u||0===p.size)&&i.onCompleted()})),s.add(e.subscribe(function(e){var t=l++,o=new en;h.set(t,e),s.add(o);var a=$e(n)(e);return a===Xe?i.onError(a.e):(o.setDisposable(a.take(1).subscribe(Be,d,function(){h["delete"](t)&&0===h.size&&u&&i.onCompleted(),s.remove(o)})),void p.forEach(function(t){var n=$e(r)(t,e);return n===Xe?i.onError(n.e):void i.onNext(n)}))},d,function(){u=!0,(a||0===h.size)&&i.onCompleted()})),s},o)},Cn.groupJoin=function(e,t,n,r){var o=this;return new no(function(i){function s(e){}var a=new Gt,u=new nn(a),c=new Zr,l=new Zr,p=0,h=0,s=function(e){return function(t){t.onError(e)}};return a.add(o.subscribe(function(e){var n=new io,o=p++;c.set(o,n);var h=$e(r)(e,zt(n,u));if(h===Xe)return c.forEach(s(h.e)),i.onError(h.e);i.onNext(h),l.forEach(function(e){n.onNext(e)});var d=new en;a.add(d);var f=$e(t)(e);return f===Xe?(c.forEach(s(f.e)),i.onError(f.e)):void d.setDisposable(f.take(1).subscribe(Be,function(e){c.forEach(s(e)),i.onError(e)},function(){c["delete"](o)&&n.onCompleted(),a.remove(d)}))},function(e){c.forEach(s(e)),i.onError(e)},function(){i.onCompleted()})),a.add(e.subscribe(function(e){var t=h++;l.set(t,e);var r=new en;a.add(r);var o=$e(n)(e);return o===Xe?(c.forEach(s(o.e)),i.onError(o.e)):(r.setDisposable(o.take(1).subscribe(Be,function(e){c.forEach(s(e)),i.onError(e)},function(){l["delete"](t),a.remove(r)})),void c.forEach(function(t){t.onNext(e)}))},function(e){c.forEach(s(e)),i.onError(e)})),u},o)},Cn.buffer=function(){return this.window.apply(this,arguments).flatMap(q)},Cn.window=function(e,t){return 1===arguments.length&&"function"!=typeof arguments[0]?fe.call(this,e):"function"==typeof e?me.call(this,e):de.call(this,e,t)},Cn.pairwise=function(){var e=this;return new no(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)},Cn.partition=function(e,t){return[this.filter(e,t),this.filter(function(n,r,o){return!e.call(t,n,r,o)})]};var Qr=function(e){function t(e,t){this.c=e,this.s=t}return Bt(t,e),t.prototype[lt]=function(){var e=this;return{next:function(){return e.c()?{done:!1,value:e.s}:{done:!0,value:void 0}}}},t}(An);Cn.letBind=Cn.let=function(e){return e(this)},Pn["if"]=function(e,t,n){return qn(function(){return n||(n=Hn()),Ye(t)&&(t=Vn(t)),Ye(n)&&(n=Vn(n)),"function"==typeof n.now&&(n=Hn(n)),e()?t:n})},Pn["for"]=Pn.forIn=function(e,t,n){return Un(e,t,n).concat()};var Xr=Pn["while"]=Pn.whileDo=function(e,t){return Ye(t)&&(t=Vn(t)),ve(e,t).concat()};Cn.doWhile=function(e){return dr([this,Xr(e,this)])},Pn["case"]=function(e,t,n){return qn(function(){Ye(n)&&(n=Vn(n)),n||(n=Hn()),an(n)&&(n=Hn(n));var r=t[e()];return Ye(r)&&(r=Vn(r)),r||n})},Cn.expand=function(e,t){an(t)||(t=pn);var n=this;return new no(function(r){var o=[],i=new tn,s=new Gt(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 en;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)},Pn.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 no(function(t){var n=e.length;if(0===n)return t.onCompleted(),$t;for(var r=new Gt,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];Ye(c)&&(c=Vn(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})},Cn.forkJoin=function(e,t){var n=this;return new no(function(r){var o,i,s=!1,a=!1,u=!1,c=!1,l=new en,p=new en;return Ye(e)&&(e=Vn(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 Gt(l,p)},n)},Cn.manySelect=Cn.extend=function(e,t){an(t)||(t=pn);var n=this;return qn(function(){var r;return n.map(function(e){var t=new $r(e);return r&&r.onNext(e),r=t,t}).tap(Be,function(e){r&&r.onError(e)},function(){r&&r.onCompleted()}).observeOn(t).map(e)},n)};var $r=function(e){function t(e){var t=this,n=new Gt;return n.add(hn.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 so}return Bt(n,e),qt(n.prototype,Tn,{onCompleted:function(){this.onNext(Pn.empty())},onError:function(e){this.onNext(Pn["throw"](e))},onNext:function(e){this.tail.onNext(e),this.tail.onCompleted()}}),n}(Pn),Zr=We.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;n<this.size;n++)e.call(t,this._values[n],this._keys[n])},e}();ye.prototype.and=function(e){return new ye(this.patterns.concat(e))},ye.prototype.thenDo=function(e){return new ge(this,e)},ge.prototype.activate=function(e,t,n){for(var r=this,o=[],i=0,s=this.expression.patterns.length;s>i;i++)o.push(be(e,this.expression.patterns[i],t.onError.bind(t)));var a=new we(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},we.prototype.dequeue=function(){this.joinObservers.forEach(function(e){e.queue.shift()})},we.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;e<r.length;e++)i.push(r[e].value);this.onNext.apply(this,i)}}};var Jr=function(e){function t(t,n){e.call(this),this.source=t,this.onError=n,this.queue=[],this.activePlans=[],this.subscription=new en,this.isDisposed=!1}Bt(t,e);var n=t.prototype;return n.next=function(e){if(!this.isDisposed){if("E"===e.kind)return this.onError(e.exception);this.queue.push(e);for(var t=this.activePlans.slice(0),n=0,r=t.length;r>n;n++)t[n].match()}},n.error=Be,n.completed=Be,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}(_n);Cn.and=function(e){return new ye([this,e])},Cn.thenDo=function(e){return new ye([this]).thenDo(e)},Pn.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 no(function(t){var n=[],r=new Zr,o=xn(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){ur(a).subscribe(t)}var u=new Gt;return r.forEach(function(e){e.subscribe(),u.add(e)}),u})};var eo=Pn.interval=function(e,t){return Ce(e,e,an(t)?t:vn)};Pn.timer=function(e,t,n){var r;return an(n)||(n=vn),null!=t&&"number"==typeof t?r=t:an(t)&&(n=t),e instanceof Date&&r===s?Ee(e.getTime(),n):e instanceof Date&&r!==s?Te(e.getTime(),t,n):r===s?xe(e,n):Ce(e,r,n)};Cn.delay=function(){if("number"==typeof arguments[0]||arguments[0]instanceof Date){var e=arguments[0],t=arguments[1];return an(t)||(t=vn),e instanceof Date?Se(this,e,t):_e(this,e,t)}if(Qe(arguments[0]))return Ne(this,arguments[0],arguments[1]);throw new Error("Invalid arguments")},Cn.debounce=function(){if(Qe(arguments[0]))return De(this,arguments[0]);if("number"==typeof arguments[0])return Oe(this,arguments[0],arguments[1]);throw new Error("Invalid arguments")},Cn.windowWithTime=function(e,t,n){var r,o=this;return null==t&&(r=e),an(n)||(n=vn),"number"==typeof t?r=t:an(t)&&(r=e,n=t),new no(function(t){function i(){var e=new en,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 io;l.push(e),t.onNext(zt(e,a))}o&&l.shift().onCompleted(),i()}))}var s,a,u=r,c=e,l=[],p=new tn,h=0;return s=new Gt(p),a=new nn(s),l.push(new io),t.onNext(zt(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)},Cn.windowWithTimeOrCount=function(e,t,n){var r=this;return an(n)||(n=vn),new no(function(o){function i(t){var r=new en;s.setDisposable(r),r.setDisposable(n.scheduleWithRelative(e,function(){if(t===l){c=0;var e=++l;p.onCompleted(),p=new io,o.onNext(zt(p,u)),i(e)}}))}var s=new tn,a=new Gt(s),u=new nn(a),c=0,l=0,p=new io;return o.onNext(zt(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 io,o.onNext(zt(p,u))),r&&i(n)},function(e){p.onError(e),o.onError(e)},function(){p.onCompleted(),o.onCompleted()})),u},r)},Cn.bufferWithTime=function(e,t,n){return this.windowWithTime(e,t,n).flatMap(q)},Cn.bufferWithTimeOrCount=function(e,t,n){return this.windowWithTimeOrCount(e,t,n).flatMap(q)},Cn.timeInterval=function(e){var t=this;return an(e)||(e=vn),qn(function(){var n=e.now();return t.map(function(t){var r=e.now(),o=r-n;return n=r,{value:t,interval:o}})})},Cn.timestamp=function(e){return an(e)||(e=vn),this.map(function(t){return{value:t,timestamp:e.now()}})},Cn.sample=Cn.throttleLatest=function(e,t){return an(t)||(t=vn),"number"==typeof e?Pe(this,eo(e,t)):Pe(this,e)};var to=Ve.TimeoutError=function(e){this.message=e||"Timeout has occurred",this.name="TimeoutError",Error.call(this)};to.prototype=Object.create(Error.prototype),Cn.timeout=function(){var e=arguments[0];if(e instanceof Date||"number"==typeof e)return Me(this,e,arguments[1],arguments[2]);if(Pn.isObservable(e)||Qe(e))return ke(this,e,arguments[1],arguments[2]);throw new Error("Invalid arguments")},Pn.generateWithAbsoluteTime=function(e,t,n,r,o,i){return an(i)||(i=vn),new no(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()})})},Pn.generateWithRelativeTime=function(e,t,n,r,o,i){return an(i)||(i=vn),new no(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()})})},Cn.delaySubscription=function(e,t){var n=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative",r=this;return an(t)||(t=vn),new no(function(o){var i=new tn;return i.setDisposable(t[n](e,function(){i.setDisposable(r.subscribe(o))})),i},this)},Cn.skipLastWithTime=function(e,t){an(t)||(t=vn);var n=this;return new no(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)},Cn.takeLastWithTime=function(e,t){var n=this;return an(t)||(t=vn),new no(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)},Cn.takeLastBufferWithTime=function(e,t){var n=this;return an(t)||(t=vn),new no(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)},Cn.takeWithTime=function(e,t){var n=this;return an(t)||(t=vn),new no(function(r){return new Gt(t.scheduleWithRelative(e,function(){r.onCompleted()}),n.subscribe(r))},n)},Cn.skipWithTime=function(e,t){var n=this;return an(t)||(t=vn),new no(function(r){var o=!1;return new Gt(t.scheduleWithRelative(e,function(){o=!0}),n.subscribe(function(e){o&&r.onNext(e)},r.onError.bind(r),r.onCompleted.bind(r)))},n)},Cn.skipUntilWithTime=function(e,t){an(t)||(t=vn);var n=this,r=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new no(function(o){var i=!1;return new Gt(t[r](e,function(){i=!0}),n.subscribe(function(e){i&&o.onNext(e)},function(e){o.onError(e)},function(){o.onCompleted()}))},n)},Cn.takeUntilWithTime=function(e,t){an(t)||(t=vn);var n=this,r=e instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new no(function(o){return new Gt(t[r](e,function(){o.onCompleted()}),n.subscribe(o))},n)},Cn.throttle=function(e,t){an(t)||(t=vn);var n=+e||0;if(0>=n)throw new RangeError("windowDuration cannot be less or equal zero.");var r=this;return new no(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)},Cn.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 no(function(r){var o=e(t(r));return n.subscribe(function(e){var t=$e(o["@@transducer/step"]).call(o,r,e);t===Xe&&r.onError(t.e)},function(e){r.onError(e)},function(){o["@@transducer/result"](r)})},n)},Cn.switchFirst=function(){var e=this;return new no(function(t){var n=!1,r=!1,o=new en,i=new Gt;return i.add(o),o.setDisposable(e.subscribe(function(e){if(!n){n=!0,Ye(e)&&(e=Vn(e));var o=new en;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)},Cn.flatMapFirst=Cn.selectManyFirst=function(e,t,n){return new Mn(this,e,t,n).switchFirst()},Ve.Observable.prototype.flatMapWithMaxConcurrent=function(e,t,n,r){return new Mn(this,t,n,r).merge(e)};Ve.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(),$t}function s(i,s){this.clock=i,this.comparer=s,this.isEnabled=!1,this.queue=new Kt(1024),e.call(this,t,n,r,o)}Bt(s,e);var a=s.prototype;return a.add=ut,a.toDateTimeOffset=ut,a.toRelative=ut,a.schedulePeriodicWithState=function(e,t,n){var r=new ln(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 it;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 it;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 it;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 rn(this,e,r,t,this.comparer);return this.queue.enqueue(i),i.disposable},s}(on);Ve.HistoricalScheduler=function(e){function t(t,n){var r=null==t?0:t,o=n||He;e.call(this,r,o)}Bt(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}(Ve.VirtualTimeScheduler);var no=Ve.AnonymousObservable=function(e){function t(e){return e&&Qe(e.dispose)?e:Qe(e)?Xt(e):$t}function n(e,n){var r=n[0],o=n[1],i=$e(o.__subscribe).call(o,r);return i!==Xe||r.fail(Xe.e)?void r.setDisposable(t(i)):c(Xe.e)}function r(e){var t=new ro(e),r=[t,this];return hn.scheduleRequired()?hn.scheduleWithState(r,n):n(null,r),t}function o(t,n){this.source=n,this.__subscribe=t,e.call(this,r)}return Bt(o,e),o}(Pn),ro=function(e){function t(t){e.call(this),this.observer=t,this.m=new en}Bt(t,e);var n=t.prototype;return n.next=function(e){var t=$e(this.observer.onNext).call(this.observer,e);t===Xe&&(this.dispose(),c(t.e))},n.error=function(e){var t=$e(this.observer.onError).call(this.observer,e);this.dispose(),t===Xe&&c(t.e)},n.completed=function(){var e=$e(this.observer.onCompleted).call(this.observer);this.dispose(),e===Xe&&c(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}(_n),oo=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 no(function(e){return new Gt(o.getDisposable(),r.subscribe(e))}):r}return Bt(n,e),n}(Pn),io=Ve.Subject=function(e){function t(e){return Jt(this),this.isStopped?this.hasError?(e.onError(this.error),$t):(e.onCompleted(),$t):(this.observers.push(e),new Kr(this,e))}function n(){e.call(this,t),this.isDisposed=!1,this.isStopped=!1,this.observers=[],this.hasError=!1}return Bt(n,e),qt(n.prototype,Tn.prototype,{hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(Jt(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(Jt(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(Jt(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 ao(e,t)},n}(Pn),so=Ve.AsyncSubject=function(e){function t(e){return Jt(this),this.isStopped?(this.hasError?e.onError(this.error):this.hasValue?(e.onNext(this.value),e.onCompleted()):e.onCompleted(),$t):(this.observers.push(e),new Kr(this,e))}function n(){e.call(this,t),this.isDisposed=!1,this.isStopped=!1,this.hasValue=!1,this.observers=[],this.hasError=!1}return Bt(n,e),qt(n.prototype,Tn,{hasObservers:function(){return Jt(this),this.observers.length>0},onCompleted:function(){var e,t;if(Jt(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(Jt(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){Jt(this),this.isStopped||(this.value=e,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.exception=null,this.value=null}}),n}(Pn),ao=Ve.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 Bt(n,e),qt(n.prototype,Tn.prototype,{onCompleted:function(){this.observer.onCompleted()},onError:function(e){this.observer.onError(e)},onNext:function(e){this.observer.onNext(e)}}),n}(Pn);Ve.Pauser=function(e){function t(){e.call(this)}return Bt(t,e),t.prototype.pause=function(){this.onNext(!1)},t.prototype.resume=function(){this.onNext(!0)},t}(io),We.Rx=Ve,r=function(){return Ve}.call(t,n,t,e),!(r!==s&&(e.exports=r));var uo=f()}).call(this)}).call(t,n(157)(e),function(){return this}(),n(1))},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=p[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(a(r.parts[i],t))}else{for(var s=[],i=0;i<r.parts.length;i++)s.push(a(r.parts[i],t));p[r.id]={id:r.id,refs:1,parts:s}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],s=o[1],a=o[2],u=o[3],c={css:s,media:a,sourceMap:u};n[i]?n[i].parts.push(c):t.push(n[i]={id:i,parts:[c]})}return t}function i(){var e=document.createElement("style"),t=f();return e.type="text/css",t.appendChild(e),e}function s(){var e=document.createElement("link"),t=f();return e.rel="stylesheet",t.appendChild(e),e}function a(e,t){var n,r,o;if(t.singleton){var a=v++;n=m||(m=i()),r=u.bind(null,n,a,!1),o=u.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(),r=l.bind(null,n),o=function(){n.parentNode.removeChild(n),n.href&&URL.revokeObjectURL(n.href)}):(n=i(),r=c.bind(null,n),o=function(){n.parentNode.removeChild(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function u(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function c(e,t){var n=t.css,r=t.media;t.sourceMap;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function l(e,t){var n=t.css,r=(t.media,t.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var p={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},d=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),f=h(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,v=0;e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=d());var n=o(e);return r(n,t),function(e){for(var i=[],s=0;s<n.length;s++){var a=n[s],u=p[a.id];u.refs--,i.push(u)}if(e){var c=o(e);r(c,t)}for(var s=0;s<i.length;s++){var u=i[s];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete p[u.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var r=n(167);"string"==typeof r&&(r=[[e.id,r,""]]);n(315)(r,{});r.locals&&(e.exports=r.locals)}]));
 //# sourceMappingURL=settings-app.js.map
\ No newline at end of file