ethercalc
Version:
Multi-User Spreadsheet Server
2 lines • 185 kB
JavaScript
!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="/static/",t(0)}([function(e,t,n){e.exports=n(91)},function(e,t,n){"use strict";var o=n(50),r=n(128),i=n(19),a=n(20),s=n(59),u=n(71),c=n(123),l=n(31),p=n(53),d=n(57),f={Component:i.injection,CompositeComponent:a.injection,DOMProperty:o.injection,EmptyComponent:s.injection,EventPluginHub:r.injection,EventEmitter:u.injection,NativeComponent:c.injection,Perf:l.injection,RootIndex:p.injection,Updates:d.injection};e.exports=f},function(e,t,n){function o(e,t){var n={}.hasOwnProperty;for(var o in t)n.call(t,o)&&(e[o]=t[o]);return e}var r,i,a="undefined"!=typeof t&&t||this,s="".replace;r=n(13),a.HackFoldr=i=function(){function e(e){this.base=e,this.base=s.call(this.base,/\/+$/,"")}e.displayName="HackFoldr";var t=e.prototype;return t.fetch=function(e,t){var n=this;return this.id=e,r.get(this.base+"/_/"+this.id+"/csv.json",function(e){var o,r,i,a,s,u,c,l,p;if(null!=(o=e.body)&&o.length){for(e.body.shift(),r=[],i=0,s=(a=e.body).length;s>i;++i)u=i,c=a[i],l=c[0],p=c[1],l&&p&&!/^#/.test(l)&&r.push({link:l,title:p,row:u+2});n.rows=r}else n.wasNonExistent=!0;return null!=(a=n.rows)&&a.length?"function"==typeof t?t(n.rows):void 0:(n.wasEmpty=!0,"function"==typeof t?t(n.rows=[{row:2,link:"/"+n.id+".1",title:"Sheet1"}]):void 0)})},t.size=function(){return this.rows.length},t.lastIndex=function(){return this.rows.length-1},t.lastRow=function(){var e;return this.rows.length?(e=this.rows)[e.length-1]:{}},t.links=function(){var e,t,n,o,r=[];for(e=0,n=(t=this.rows).length;n>e;++e)o=t[e].link,r.push(o);return r},t.titles=function(){var e,t,n,o,r=[];for(e=0,n=(t=this.rows).length;n>e;++e)o=t[e].title,r.push(o);return r},t.at=function(e){var t;return null!=(t=this.rows[e])?t:{}},t.push=function(e){var t=this;return this.init(e,function(){return t.postCsv(e.link,e.title,function(t){var n,o;return/paste A(\d+) all/.exec(null!=t&&null!=(n=t.body)&&null!=(o=n.command)?o[1]:void 0)?e.row=parseInt(RegExp.$1):void 0})}),this.rows.push(e),this},t.setAt=function(e,t){var n;return t.title&&(n=this.rows[e].row,this.sendCmd("set B"+n+" text t "+t.title)),o(this.rows[e],t),this},t.deleteAt=function(e){var t;return t=this.rows[e].row,this.sendCmd("set A"+t+":B"+t+" empty multi-cascade"),this.rows.splice(e,1),this},t.sendCmd=function(e,t){var n=this;return null==t&&(t=function(){}),this.init(null,function(){return r.post(n.base+"/_/"+n.id).type("text/plain").send(e).end(function(){})})},t.init=function(e,t){return this.wasNonExistent?(null!=e&&(e.row=2),this.wasNonExistent=!1,this.wasEmpty=!1,e?this.postInitCsv("#url","#title","/"+this.id+".1","Sheet1",e.link,e.title,t):this.postRawCsv("#url","#title","/"+this.id+".1","Sheet1",t)):this.wasEmpty?(null!=e&&(e.row=2),this.wasEmpty=!1,e?this.postRawCsv("/"+this.id+".1","Sheet1",e.link,e.title,t):this.postCsv("/"+this.id+".1","Sheet1",t)):t()},t.postCsv=function(e,t,n){return null==e&&(e=""),null==t&&(t=""),r.post(this.base+"/_/"+this.id).type("text/csv").accept("application/json").send('"'+e.replace(/"/g,'""')+'","'+t.replace(/"/g,'""')+'"').end(function(e){return"function"==typeof n?n(e):void 0})},t.postRawCsv=function(e,t,n,o,i){return null==e&&(e=""),null==t&&(t=""),null==n&&(n=""),null==o&&(o=""),r.post(this.base+"/_/"+this.id).type("text/csv").accept("application/json").send('"'+e.replace(/"/g,'""')+'","'+t.replace(/"/g,'""')+'"\n"'+n.replace(/"/g,'""')+'","'+o.replace(/"/g,'""')+'"').end(function(e){return"function"==typeof i?i(e):void 0})},t.postInitCsv=function(e,t,n,o,i,a,s){return null==e&&(e=""),null==t&&(t=""),null==n&&(n=""),null==o&&(o=""),null==i&&(i=""),null==a&&(a=""),r.post(this.base+"/_/"+this.id).type("text/csv").accept("application/json").send('"'+e.replace(/"/g,'""')+'","'+t.replace(/"/g,'""')+'"\n"'+n.replace(/"/g,'""')+'","'+o.replace(/"/g,'""')+'"\n"'+i.replace(/"/g,'""')+'","'+a.replace(/"/g,'""')+'"').end(function(e){return"function"==typeof s?s(e):void 0})},e}()},function(e,t,n){var o=n(4);"string"==typeof o&&(o=[[e.id,o,""]]),n(7)(o,{})},function(e,t,n){t=e.exports=n(12)(),t.push([e.id,"body{margin:0;padding:0;overflow:hidden}nav,.buttons{background:#eee;font-family:Helvetica,sans-serif;border-top:1px solid #000;position:absolute!important;font-size:16px;height:22px;bottom:5px}nav{right:200px;left:0;padding-left:8px;white-space:nowrap}.readonly nav{right:0}.buttons{width:200px;right:0;padding-right:8px;text-align:right}.buttons button{font-family:Helvetica,sans-serif;background:#eee;font-size:14px;height:22px;border-radius:3px;border:1px solid #eee;margin-left:2px;cursor:pointer}.buttons button:hover{border:1px solid #ccc;background:#fff}.buttons button:disabled:hover{border:1px solid transparent;background:#eee;cursor:default}.basic-tabs-item{display:block!important;visibility:hidden}.basic-tabs-item.active{font-family:Helvetica,sans-serif;visibility:visible}.basic-tabs-item-title{background:#ccc;border:1px solid #000;border-top:none;padding:2px 10px;border-radius:0 0 8px 8px}.basic-tabs-item-title:hover{background:#eee;cursor:pointer}.basic-tabs-item-title.active{background:#fff;border-top:1px solid #fff;margin-top:-1px}body,iframe{height:100%}iframe{width:100%;border:0}.wrapper{position:absolute;width:100%;bottom:30px;top:0}",""])},function(e,t,n){"use strict";function o(){}var r=n(6),i=n(14).copy,a=n(14).copyList,s=n(14).copyKeys,u=n(14).copyExceptKeys,c=n(8),l=n(9),p=r.createFactory(c),d=r.createFactory(l),f=n(10),h=r.createClass({displayName:"TabPanel",propTypes:{activeIndex:r.PropTypes.number,activeStyle:r.PropTypes.object,activeClassName:r.PropTypes.string,defaultStyle:r.PropTypes.object,defaultClassName:r.PropTypes.string,titleStyle:r.PropTypes.object,titleClassName:r.PropTypes.string,activeTitleStyle:r.PropTypes.object,activeTitleClassName:r.PropTypes.string,onChange:r.PropTypes.func,stripListStyle:r.PropTypes.object,stripFactory:r.PropTypes.func,containerFactory:r.PropTypes.func,tabVerticalPosition:r.PropTypes.string},getDefaultProps:function(){return{activeIndex:0,activeStyle:{},activeClassName:"active",defaultStyle:{},defaultClassName:"",titleStyle:{},titleClassName:"",activeTitleStyle:{},activeTitleClassName:"active",tabVerticalPosition:"top"}},render:function(){var e=i(this.props);e.children=e.children||[];var t=e.activeIndex||0;e.activeIndex=Math.min(t,e.children.length-1),e.className=e.className||"",e.className+=" "+f;var n=this.renderStrip(e),o=this.renderContainer(e),a="bottom"==e.tabVerticalPosition?[o,n]:[n,o],s={className:e.className,style:e.style};return r.createElement("div",r.__spread({},s),a)},renderContainer:function(e){var t=a(e,["activeIndex","activeClassName","activeStyle","defaultStyle","defaultClassName","hiddenStyle","children"]);return t.key="container",e.containerFactory?e.containerFactory(t,d):d(t)},renderStrip:function(e){var t=u(e,{},{stripStyle:1,activeTitleStyle:1,activeTitleClassName:1});return s(e,t,{stripStyle:"style",activeTitleStyle:"activeStyle",activeTitleClassName:"activeClassName"}),t.key="strip",t.onChange=this.handleChange||o,e.stripFactory?e.stripFactory(t,p):p(t)},handleChange:function(e){this.props.onChange(e)}});h.Strip=c,h.Container=l,e.exports=h},function(e,t,n){e.exports=n(11)},function(e,t,n){function o(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=l[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(a(o.parts[i],t))}else{for(var s=[],i=0;i<o.parts.length;i++)s.push(a(o.parts[i],t));l[o.id]={id:o.id,refs:1,parts:s}}}}function r(e){for(var t=[],n={},o=0;o<e.length;o++){var r=e[o],i=r[0],a=r[1],s=r[2],u=r[3],c={css:a,media:s,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 a(e,t){var n,o,r;if(t.singleton){var a=m++;n=h||(h=i()),o=u.bind(null,n,a,!1),r=u.bind(null,n,a,!0)}else n=i(),o=c.bind(null,n),r=function(){n.parentNode.removeChild(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function s(e,t,n){var o=["/** >>"+t+" **/","/** "+t+"<< **/"],r=e.lastIndexOf(o[0]),i=n?o[0]+n+o[1]:"";if(e.lastIndexOf(o[0])>=0){var a=e.lastIndexOf(o[1])+o[1].length;return e.slice(0,r)+i+e.slice(a)}return e+i}function u(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=s(e.styleSheet.cssText,t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function c(e,t){var n=t.css,o=t.media,r=t.sourceMap;if(r&&"function"==typeof btoa)try{n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(JSON.stringify(r))+" */",n='@import url("data:text/css;base64,'+btoa(n)+'")'}catch(i){}if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var l={},p=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},d=p(function(){return/msie 9\b/.test(window.navigator.userAgent.toLowerCase())}),f=p(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,m=0;e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=d());var n=r(e);return o(n,t),function(e){for(var i=[],a=0;a<n.length;a++){var s=n[a],u=l[s.id];u.refs--,i.push(u)}if(e){var c=r(e);o(c,t)}for(var a=0;a<i.length;a++){var u=i[a];if(0===u.refs){for(var p=0;p<u.parts.length;p++)u.parts[p]();delete l[u.id]}}}}},function(e,t,n){"use strict";function o(e){e.preventDefault(),e.stopPropagation()}var r=n(6),i=n(14).copy,a=n(39),s=a.buffer,u=n(10),c={display:"inline-block"},l={margin:0,padding:0,listStyle:"none",position:"relative",display:"inline-block"},p={top:0,position:"absolute",height:"100%",cursor:"pointer"},d=r.createClass({displayName:"Scroller",display:"Scroller",getDefaultProps:function(){return{width:5}},render:function(){var e=this.props,t=this.props.side;e.className=e.className||"",e.className+=" "+u+"-scroller "+t,e.active&&e.visible&&(e.className+=" active");var n=i(p);return e.style=i(e.style,n),e.style.width=e.style.width||e.width,e.style[t]=0,e.visible||(e.style.display="none"),e.factory?e.factory(e,t):r.createElement("div",r.__spread({},e))}}),f=r.createFactory(d);e.exports=r.createClass({displayName:"exports",display:"TabPanel.Strip",propTypes:{activeIndex:r.PropTypes.number,activeStyle:r.PropTypes.object,activeClassName:r.PropTypes.string,titleStyle:r.PropTypes.object,titleClassName:r.PropTypes.string,anchorStyle:r.PropTypes.object,scrollerStyle:r.PropTypes.object,scrollerProps:r.PropTypes.object,scrollerWidth:r.PropTypes.number,scrollStep:r.PropTypes.number,scrollSpeed:r.PropTypes.number},getInitialState:function(){return{adjustScroll:!0,scrollPos:0}},componentWillUnmount:function(){this.props.enableScroll&&window.removeEventListener("resize",this.onResizeListener)},componentDidMount:function(){this.props.enableScroll&&setTimeout(function(){this.adjustScroll(),window.addEventListener("resize",this.onResizeListener=s(this.onWindowResize,this.props.onWindowResizeBuffer,this))}.bind(this),0)},componentDidUpdate:function(){this.props.enableScroll&&this.adjustScroll()},onWindowResize:function(){this.adjustScroll(),this.doScroll(0)},adjustScroll:function(){if(this.props.enableScroll){if(!this.state.adjustScroll)return void(this.state.adjustScroll=!0);var e=this.getAvailableStripWidth(),t=this.getCurrentListWidth(),n={adjustScroll:!1,hasLeftScroll:!1,hasRightScroll:!1};t>e?(n.maxScrollPos=t-e,n.hasLeftScroll=0!==this.state.scrollPos,n.hasRightScroll=this.state.scrollPos!=n.maxScrollPos):(n.maxScrollPos=0,n.scrollPos=0),this.setState(n)}},getCurrentListWidth:function(){return this.refs.list.getDOMNode().offsetWidth},getAvailableStripWidth:function(){var e=this.getDOMNode(),t=window.getComputedStyle(e),n=parseInt(t.left,10),o=parseInt(t.right,10);return isNaN(n)&&(n=0),isNaN(o)&&(o=0),e.clientWidth-n-o},handleScrollLeft:function(e){e.preventDefault(),this.handleScroll(-1)},handleScrollRight:function(e){e.preventDefault(),this.handleScroll(1)},handleScrollLeftMax:function(e){o(e),this.handleScrollMax(-1)},handleScrollRightMax:function(e){o(e),this.handleScrollMax(1)},handleScrollMax:function(e){var t=-1==e?0:this.state.maxScrollPos;this.setScrollPosition(t)},handleScroll:function(e){var t=function(){this.stopScroll(),window.removeEventListener("mouseup",t)}.bind(this);window.addEventListener("mouseup",t),this.scrollInterval=setInterval(this.doScroll.bind(this,e),this.props.scrollSpeed)},doScroll:function(e){this.setState({scrollDirection:e});var t=this.state.scrollPos+e*this.props.scrollStep;this.setScrollPosition(t)},setScrollPosition:function(e){e>this.state.maxScrollPos&&(e=this.state.maxScrollPos),0>e&&(e=0),this.setState({scrollPos:e,scrolling:!0})},stopScroll:function(){clearInterval(this.scrollInterval),this.setState({scrolling:!1})},getDefaultProps:function(){return{onWindowResizeBuffer:50,scrollStep:5,scrollSpeed:50,scrollerWidth:8,scrollerProps:{},enableScroll:!1,hasLeftScroll:!1,hasRightScroll:!1,activeClassName:"",activeStyle:{},anchorStyle:{color:"inherit",textDecoration:"inherit"}}},renderTitle:a.curry(function(e,t,n,o,a){var s=e.anchorStyle,u=e.activeStyle,c=e.activeClassName,l=e.activeIndex||0,p=o.props,d=p.tabTitle||p.title;n=i(n),i(p.titleStyle,n);var f=t.concat(p.titleClassName||"");return a==l&&(i(u,n),f.push(c||"")),r.createElement("li",{key:a,onClick:this.handleChange.bind(this,a),style:n,className:f.join(" ")},r.createElement("a",{href:"#",style:s},d))}),render:function(){var e=i(this.props),t=i(c);i(e.titleStyle,t);var n=[e.titleClassName||"",u+"-item-title"],o=r.Children.map(e.children,this.renderTitle(e,n,t),this);e.className=e.className||"",e.className+=" "+u+"-strip",e.style=e.style||{},e.style.position="relative";var a=i(l);this.state.scrollPos&&(a.left=-this.state.scrollPos);var s=this.renderScroller(-1),p=this.renderScroller(1);return r.createElement("nav",r.__spread({},e),r.createElement("ul",{ref:"list",style:a},o),s,p)},handleChange:function(e,t){t.preventDefault(),this.props.onChange(e)},renderScroller:function(e){if(this.props.enableScroll){var t=-1==e?this.handleScrollLeftMax:this.handleScrollRightMax,n=-1==e?this.handleScrollLeft:this.handleScrollRight,o=-1==e?"left":"right",r=-1==e?this.state.hasLeftScroll:this.state.hasRightScroll;return f(i(this.props.scrollerProps,{factory:this.props.scrollerFactory,active:this.state.scrollDirection==e&&this.state.scrolling,onDoubleClick:t,onMouseDown:n,style:this.props.scrollerStyle,side:o,width:this.props.scrollerWidth,visible:r}))}}})},function(e,t,n){"use strict";var o=n(6),r=n(14).copy,i=n(10);e.exports=o.createClass({displayName:"TabPanel.Container",propTypes:{activeIndex:o.PropTypes.number,defaultClassName:o.PropTypes.string,defaultStyle:o.PropTypes.object,hiddenStyle:o.PropTypes.object,activeClassName:o.PropTypes.string,activeStyle:o.PropTypes.object},getDefaultProps:function(){return{activeIndex:0,hiddenStyle:{display:"none"}}},render:function(){return o.createElement("section",{className:i+"-container"},o.Children.map(this.props.children,this.renderItem,this))},renderItem:function(e,t,n){var a=this.props,s=a.hiddenStyle,u=a.activeIndex||0,c={},l=i+"-item ";return t!==u?r(s,c):(r(a.activeStyle,c),l+=a.activeClassName||""),a.defaultStyle&&(e.props.style=r(a.defaultStyle,e.props.style)),a.defaultClassName&&(e.props.className=e.props.className||"",e.props.className+=" "+a.defaultClassName),o.createElement("article",{key:t,style:c,className:l},e)}})},function(e,t,n){e.exports="basic-tabs"},function(e,t,n){(function(t){"use strict";var o=n(16),r=n(17),i=n(18),a=n(19),s=n(20),u=n(21),c=n(22),l=n(23),p=n(24),d=n(25),f=n(26),h=n(27),m=n(15),v=n(28),y=n(29),g=n(30),E=n(31),N=n(32),b=n(33),C=n(34),_=n(35),D=n(36),w=n(37);h.inject();var O=l.createElement,x=l.createFactory;"production"!==t.env.NODE_ENV&&(O=p.createElement,x=p.createFactory),O=v.wrapCreateElement(O),x=v.wrapCreateFactory(x);var M=E.measure("React","render",y.render),T={Children:{map:i.map,forEach:i.forEach,count:i.count,only:w},DOM:d,PropTypes:N,initializeTouchEvents:function(e){r.useTouchEvents=e},createClass:s.createClass,createElement:O,createFactory:x,constructAndRenderComponent:y.constructAndRenderComponent,constructAndRenderComponentByID:y.constructAndRenderComponentByID,render:M,renderToString:b.renderToString,renderToStaticMarkup:b.renderToStaticMarkup,unmountComponentAtNode:y.unmountComponentAtNode,isValidClass:v.isValidClass,isValidElement:l.isValidElement,withContext:u.withContext,__spread:_,renderComponent:D("React","renderComponent","render",this,M),renderComponentToString:D("React","renderComponentToString","renderToString",this,b.renderToString),renderComponentToStaticMarkup:D("React","renderComponentToStaticMarkup","renderToStaticMarkup",this,b.renderToStaticMarkup),isValidComponent:D("React","isValidComponent","isValidElement",this,l.isValidElement)};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({Component:a,CurrentOwner:c,DOMComponent:f,DOMPropertyOperations:o,InstanceHandles:m,Mount:y,MultiChild:g,TextComponent:C}),"production"!==t.env.NODE_ENV){var R=n(38);if(R.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: http://fb.me/react-devtools");for(var I=[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],S=0;S<I.length;S++)if(!I[S]){console.error("One or more ES5 shim/shams expected by React are not available: http://fb.me/react-warning-polyfills");break}}}T.version="0.12.2",e.exports=T}).call(t,n(40))},function(e,t,n){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}},function(e,t,n){function o(){}function r(e){var t={}.toString.call(e);switch(t){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}}function i(){if(y.XMLHttpRequest&&("file:"!=y.location.protocol||!y.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1}function a(e){return e===Object(e)}function s(e){if(!a(e))return e;var t=[];for(var n in e)null!=e[n]&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function u(e){for(var t,n,o={},r=e.split("&"),i=0,a=r.length;a>i;++i)n=r[i],t=n.split("="),o[decodeURIComponent(t[0])]=decodeURIComponent(t[1]);return o}function c(e){var t,n,o,r,i=e.split(/\r?\n/),a={};i.pop();for(var s=0,u=i.length;u>s;++s)n=i[s],t=n.indexOf(":"),o=n.slice(0,t).toLowerCase(),r=g(n.slice(t+1)),a[o]=r;return a}function l(e){return e.split(/ *; */).shift()}function p(e){return v(e.split(/ *; */),function(e,t){var n=t.split(/ *= */),o=n.shift(),r=n.shift();return o&&r&&(e[o]=r),e},{})}function d(e,t){t=t||{},this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method?this.xhr.responseText:null,this.setStatusProperties(this.xhr.status),this.header=this.headers=c(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this.setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this.parseBody(this.text):null}function f(e,t){var n=this;m.call(this),this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e=null,t=null;try{t=new d(n)}catch(o){e=new Error("Parser is unable to parse the response"),e.parse=!0,e.original=o}n.callback(e,t)})}function h(e,t){return"function"==typeof t?new f("GET",e).end(t):1==arguments.length?new f("GET",e):new f(e,t)}var m=n(105),v=n(106),y="undefined"==typeof window?this:window,g="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};h.serializeObject=s,h.parseString=u,h.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},h.serialize={"application/x-www-form-urlencoded":s,"application/json":JSON.stringify},h.parse={"application/x-www-form-urlencoded":u,"application/json":JSON.parse},d.prototype.get=function(e){return this.header[e.toLowerCase()]},d.prototype.setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=l(t);var n=p(t);for(var o in n)this[o]=n[o]},d.prototype.parseBody=function(e){var t=h.parse[this.type];return t&&e&&e.length?t(e):null},d.prototype.setStatusProperties=function(e){var t=e/100|0;this.status=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=4==t||5==t?this.toError():!1,this.accepted=202==e,this.noContent=204==e||1223==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},d.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,o="cannot "+t+" "+n+" ("+this.status+")",r=new Error(o);return r.status=this.status,r.method=t,r.url=n,r},h.Response=d,m(f.prototype),f.prototype.use=function(e){return e(this),this},f.prototype.timeout=function(e){return this._timeout=e,this},f.prototype.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},f.prototype.abort=function(){return this.aborted?void 0:(this.aborted=!0,this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this)},f.prototype.set=function(e,t){if(a(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},f.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},f.prototype.getHeader=function(e){return this._header[e.toLowerCase()]},f.prototype.type=function(e){return this.set("Content-Type",h.types[e]||e),this},f.prototype.accept=function(e){return this.set("Accept",h.types[e]||e),this},f.prototype.auth=function(e,t){var n=btoa(e+":"+t);return this.set("Authorization","Basic "+n),this},f.prototype.query=function(e){return"string"!=typeof e&&(e=s(e)),e&&this._query.push(e),this},f.prototype.field=function(e,t){return this._formData||(this._formData=new FormData),this._formData.append(e,t),this},f.prototype.attach=function(e,t,n){return this._formData||(this._formData=new FormData),this._formData.append(e,t,n),this},f.prototype.send=function(e){var t=a(e),n=this.getHeader("Content-Type");if(t&&a(this._data))for(var o in e)this._data[o]=e[o];else"string"==typeof e?(n||this.type("form"),n=this.getHeader("Content-Type"),"application/x-www-form-urlencoded"==n?this._data=this._data?this._data+"&"+e:e:this._data=(this._data||"")+e):this._data=e;return t?(n||this.type("json"),this):this},f.prototype.callback=function(e,t){var n=this._callback;return this.clearTimeout(),2==n.length?n(e,t):e?this.emit("error",e):void n(t)},f.prototype.crossDomainError=function(){var e=new Error("Origin is not allowed by Access-Control-Allow-Origin");e.crossDomain=!0,this.callback(e)},f.prototype.timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},f.prototype.withCredentials=function(){return this._withCredentials=!0,this},f.prototype.end=function(e){var t=this,n=this.xhr=i(),a=this._query.join("&"),s=this._timeout,u=this._formData||this._data;if(this._callback=e||o,n.onreadystatechange=function(){return 4==n.readyState?0==n.status?t.aborted?t.timeoutError():t.crossDomainError():void t.emit("end"):void 0},n.upload&&(n.upload.onprogress=function(e){e.percent=e.loaded/e.total*100,t.emit("progress",e)}),s&&!this._timer&&(this._timer=setTimeout(function(){t.abort()},s)),a&&(a=h.serializeObject(a),this.url+=~this.url.indexOf("?")?"&"+a:"?"+a),n.open(this.method,this.url,!0),this._withCredentials&&(n.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof u&&!r(u)){var c=h.serialize[this.getHeader("Content-Type")];c&&(u=c(u))}for(var l in this.header)null!=this.header[l]&&n.setRequestHeader(l,this.header[l]);return this.emit("request",this),n.send(u),this},h.Request=f,h.get=function(e,t,n){var o=h("GET",e);return"function"==typeof t&&(n=t,t=null),t&&o.query(t),n&&o.end(n),o},h.head=function(e,t,n){var o=h("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&o.send(t),n&&o.end(n),o},h.del=function(e,t){var n=h("DELETE",e);return t&&n.end(t),n},h.patch=function(e,t,n){var o=h("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&o.send(t),n&&o.end(n),o},h.post=function(e,t,n){var o=h("POST",e);return"function"==typeof t&&(n=t,t=null),t&&o.send(t),n&&o.end(n),o},h.put=function(e,t,n){var o=h("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&o.send(t),n&&o.end(n),o},e.exports=h},function(e,t,n){e.exports=function(){"use strict";var e=Object.prototype.hasOwnProperty,t="object",o="undefined";return{copy:n(42),copyIf:n(43),copyAs:function(n,o){var r={};if(o=o||1,null!=n&&typeof n===t)for(var i in n)e.call(n,i)&&(r[i]=o);return r},copyList:n(44),copyListIf:n(41),copyKeys:n(45),copyKeysIf:n(46),copyExceptKeys:function(n,o,r){if(o=o||{},r=r||{},null!=n&&typeof n===t)for(var i in n)e.call(n,i)&&!e.call(r,i)&&(o[i]=n[i]);return o},bindCopyKeys:function(n,r,i){if(2==arguments.length&&(i=r,r=null),r=r||{},null!=n&&typeof n===t&&null!=i&&typeof i===t){var a,s,u,c;for(var l in i)e.call(i,l)&&(s=i[l],a=typeof s,c=n[l],u=typeof c,u!==o&&(r["string"==a?s:l]="function"==u?c.bind(n):c))}return r}}}()},function(e,t,n){(function(t){"use strict";function o(e){return f+e.toString(36)}function r(e,t){return e.charAt(t)===f||t===e.length}function i(e){return""===e||e.charAt(0)===f&&e.charAt(e.length-1)!==f}function a(e,t){return 0===t.indexOf(e)&&r(t,e.length)}function s(e){return e?e.substr(0,e.lastIndexOf(f)):""}function u(e,n){if("production"!==t.env.NODE_ENV?d(i(e)&&i(n),"getNextDescendantID(%s, %s): Received an invalid React DOM ID.",e,n):d(i(e)&&i(n)),"production"!==t.env.NODE_ENV?d(a(e,n),"getNextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",e,n):d(a(e,n)),e===n)return e;for(var o=e.length+h,s=o;s<n.length&&!r(n,s);s++);return n.substr(0,s)}function c(e,n){var o=Math.min(e.length,n.length);if(0===o)return"";for(var a=0,s=0;o>=s;s++)if(r(e,s)&&r(n,s))a=s;else if(e.charAt(s)!==n.charAt(s))break;var u=e.substr(0,a);return"production"!==t.env.NODE_ENV?d(i(u),"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",e,n,u):d(i(u)),u}function l(e,n,o,r,i,c){e=e||"",n=n||"","production"!==t.env.NODE_ENV?d(e!==n,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",e):d(e!==n);var l=a(n,e);"production"!==t.env.NODE_ENV?d(l||a(e,n),"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",e,n):d(l||a(e,n));for(var p=0,f=l?s:u,h=e;;h=f(h,n)){var v;if(i&&h===e||c&&h===n||(v=o(h,l,r)),v===!1||h===n)break;"production"!==t.env.NODE_ENV?d(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):d(p++<m)}}var p=n(53),d=n(54),f=".",h=f.length,m=100,v={createReactRootID:function(){return o(p.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===f&&e.length>1){var t=e.indexOf(f,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,o,r){var i=c(e,t);i!==e&&l(e,i,n,o,!1,!0),i!==t&&l(i,t,n,r,!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:a,SEPARATOR:f};e.exports=v}).call(t,n(40))},function(e,t,n){(function(t){"use strict";function o(e,t){return null==t||r.hasBooleanValue[e]&&!t||r.hasNumericValue[e]&&isNaN(t)||r.hasPositiveNumericValue[e]&&1>t||r.hasOverloadedBooleanValue[e]&&t===!1}var r=n(50),i=n(51),a=n(52),s=n(49),u=a(function(e){return i(e)+'="'});if("production"!==t.env.NODE_ENV)var c={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0},l={},p=function(e){if(!(c.hasOwnProperty(e)&&c[e]||l.hasOwnProperty(e)&&l[e])){l[e]=!0;var n=e.toLowerCase(),o=r.isCustomAttribute(n)?n:r.getPossibleStandardName.hasOwnProperty(n)?r.getPossibleStandardName[n]:null;"production"!==t.env.NODE_ENV?s(null==o,"Unknown DOM property "+e+". Did you mean "+o+"?"):null}};var d={createMarkupForID:function(e){return u(r.ID_ATTRIBUTE_NAME)+i(e)+'"'},createMarkupForProperty:function(e,n){if(r.isStandardName.hasOwnProperty(e)&&r.isStandardName[e]){if(o(e,n))return"";var a=r.getAttributeName[e];return r.hasBooleanValue[e]||r.hasOverloadedBooleanValue[e]&&n===!0?i(a):u(a)+i(n)+'"'}return r.isCustomAttribute(e)?null==n?"":u(e)+i(n)+'"':("production"!==t.env.NODE_ENV&&p(e),null)},setValueForProperty:function(e,n,i){if(r.isStandardName.hasOwnProperty(n)&&r.isStandardName[n]){var a=r.getMutationMethod[n];if(a)a(e,i);else if(o(n,i))this.deleteValueForProperty(e,n);else if(r.mustUseAttribute[n])e.setAttribute(r.getAttributeName[n],""+i);else{var s=r.getPropertyName[n];r.hasSideEffects[n]&&""+e[s]==""+i||(e[s]=i)}}else r.isCustomAttribute(n)?null==i?e.removeAttribute(n):e.setAttribute(n,""+i):"production"!==t.env.NODE_ENV&&p(n)},deleteValueForProperty:function(e,n){if(r.isStandardName.hasOwnProperty(n)&&r.isStandardName[n]){var o=r.getMutationMethod[n];if(o)o(e,void 0);else if(r.mustUseAttribute[n])e.removeAttribute(r.getAttributeName[n]);else{var i=r.getPropertyName[n],a=r.getDefaultValueForProperty(e.nodeName,i);r.hasSideEffects[n]&&""+e[i]===a||(e[i]=a)}}else r.isCustomAttribute(n)?e.removeAttribute(n):"production"!==t.env.NODE_ENV&&p(n)}};e.exports=d}).call(t,n(40))},function(e,t,n){(function(t){"use strict";function o(e){return e===y.topMouseUp||e===y.topTouchEnd||e===y.topTouchCancel}function r(e){return e===y.topMouseMove||e===y.topTouchMove}function i(e){return e===y.topMouseDown||e===y.topTouchStart}function a(e,n){var o=e._dispatchListeners,r=e._dispatchIDs;if("production"!==t.env.NODE_ENV&&f(e),Array.isArray(o))for(var i=0;i<o.length&&!e.isPropagationStopped();i++)n(e,o[i],r[i]);else o&&n(e,o,r)}function s(e,t,n){e.currentTarget=v.Mount.getNode(n);var o=t(e,n);return e.currentTarget=null,o}function u(e,t){a(e,t),e._dispatchListeners=null,e._dispatchIDs=null}function c(e){var n=e._dispatchListeners,o=e._dispatchIDs;if("production"!==t.env.NODE_ENV&&f(e),Array.isArray(n)){for(var r=0;r<n.length&&!e.isPropagationStopped();r++)if(n[r](e,o[r]))return o[r]}else if(n&&n(e,o))return o;return null}function l(e){var t=c(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function p(e){"production"!==t.env.NODE_ENV&&f(e);var n=e._dispatchListeners,o=e._dispatchIDs;"production"!==t.env.NODE_ENV?m(!Array.isArray(n),"executeDirectDispatch(...): Invalid `event`."):m(!Array.isArray(n));var r=n?n(e,o):null;return e._dispatchListeners=null,e._dispatchIDs=null,r}function d(e){return!!e._dispatchListeners}var f,h=n(55),m=n(54),v={Mount:null,injectMount:function(e){v.Mount=e,"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?m(e&&e.getNode,"EventPluginUtils.injection.injectMount(...): Injected Mount module is missing getNode."):m(e&&e.getNode))}},y=h.topLevelTypes;"production"!==t.env.NODE_ENV&&(f=function(e){var n=e._dispatchListeners,o=e._dispatchIDs,r=Array.isArray(n),i=Array.isArray(o),a=i?o.length:o?1:0,s=r?n.length:n?1:0;
"production"!==t.env.NODE_ENV?m(i===r&&a===s,"EventPluginUtils: Invalid `event`."):m(i===r&&a===s)});var g={isEndish:o,isMoveish:r,isStartish:i,executeDirectDispatch:p,executeDispatch:s,executeDispatchesInOrder:u,executeDispatchesInOrderStopAtTrue:l,hasDispatches:d,injection:v,useTouchEvents:!1};e.exports=g}).call(t,n(40))},function(e,t,n){(function(t){"use strict";function o(e,t){this.forEachFunction=e,this.forEachContext=t}function r(e,t,n,o){var r=e;r.forEachFunction.call(r.forEachContext,t,o)}function i(e,t,n){if(null==e)return e;var i=o.getPooled(t,n);d(e,r,i),o.release(i)}function a(e,t,n){this.mapResult=e,this.mapFunction=t,this.mapContext=n}function s(e,n,o,r){var i=e,a=i.mapResult,s=!a.hasOwnProperty(o);if("production"!==t.env.NODE_ENV?f(s,"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.",o):null,s){var u=i.mapFunction.call(i.mapContext,n,r);a[o]=u}}function u(e,t,n){if(null==e)return e;var o={},r=a.getPooled(o,t,n);return d(e,s,r),a.release(r),o}function c(e,t,n,o){return null}function l(e,t){return d(e,c,null)}var p=n(47),d=n(48),f=n(49),h=p.twoArgumentPooler,m=p.threeArgumentPooler;p.addPoolingTo(o,h),p.addPoolingTo(a,m);var v={forEach:i,map:u,count:l};e.exports=v}).call(t,n(40))},function(e,t,n){(function(t){"use strict";var o=n(23),r=n(56),i=n(57),a=n(35),s=n(54),u=n(58),c=u({MOUNTED:null,UNMOUNTED:null}),l=!1,p=null,d=null,f={injection:{injectEnvironment:function(e){"production"!==t.env.NODE_ENV?s(!l,"ReactComponent: injectEnvironment() can only be called once."):s(!l),d=e.mountImageIntoNode,p=e.unmountIDFromEnvironment,f.BackendIDOperations=e.BackendIDOperations,l=!0}},LifeCycle:c,BackendIDOperations:null,Mixin:{isMounted:function(){return this._lifeCycleState===c.MOUNTED},setProps:function(e,t){var n=this._pendingElement||this._currentElement;this.replaceProps(a({},n.props,e),t)},replaceProps:function(e,n){"production"!==t.env.NODE_ENV?s(this.isMounted(),"replaceProps(...): Can only update a mounted component."):s(this.isMounted()),"production"!==t.env.NODE_ENV?s(0===this._mountDepth,"replaceProps(...): You called `setProps` or `replaceProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):s(0===this._mountDepth),this._pendingElement=o.cloneAndReplaceProps(this._pendingElement||this._currentElement,e),i.enqueueUpdate(this,n)},_setPropsInternal:function(e,t){var n=this._pendingElement||this._currentElement;this._pendingElement=o.cloneAndReplaceProps(n,a({},n.props,e)),i.enqueueUpdate(this,t)},construct:function(e){this.props=e.props,this._owner=e._owner,this._lifeCycleState=c.UNMOUNTED,this._pendingCallbacks=null,this._currentElement=e,this._pendingElement=null},mountComponent:function(e,n,o){"production"!==t.env.NODE_ENV?s(!this.isMounted(),"mountComponent(%s, ...): Can only mount an unmounted component. Make sure to avoid storing components between renders or reusing a single component instance in multiple places.",e):s(!this.isMounted());var i=this._currentElement.ref;if(null!=i){var a=this._currentElement._owner;r.addComponentAsRefTo(this,i,a)}this._rootNodeID=e,this._lifeCycleState=c.MOUNTED,this._mountDepth=o},unmountComponent:function(){"production"!==t.env.NODE_ENV?s(this.isMounted(),"unmountComponent(): Can only unmount a mounted component."):s(this.isMounted());var e=this._currentElement.ref;null!=e&&r.removeComponentAsRefFrom(this,e,this._owner),p(this._rootNodeID),this._rootNodeID=null,this._lifeCycleState=c.UNMOUNTED},receiveComponent:function(e,n){"production"!==t.env.NODE_ENV?s(this.isMounted(),"receiveComponent(...): Can only update a mounted component."):s(this.isMounted()),this._pendingElement=e,this.performUpdateIfNecessary(n)},performUpdateIfNecessary:function(e){if(null!=this._pendingElement){var t=this._currentElement,n=this._pendingElement;this._currentElement=n,this.props=n.props,this._owner=n._owner,this._pendingElement=null,this.updateComponent(e,t)}},updateComponent:function(e,t){var n=this._currentElement;(n._owner!==t._owner||n.ref!==t.ref)&&(null!=t.ref&&r.removeComponentAsRefFrom(this,t.ref,t._owner),null!=n.ref&&r.addComponentAsRefTo(this,n.ref,n._owner))},mountComponentIntoNode:function(e,t,n){var o=i.ReactReconcileTransaction.getPooled();o.perform(this._mountComponentIntoNode,this,e,t,o,n),i.ReactReconcileTransaction.release(o)},_mountComponentIntoNode:function(e,t,n,o){var r=this.mountComponent(e,n,0);d(r,t,o)},isOwnedBy:function(e){return this._owner===e},getSiblingByRef:function(e){var t=this._owner;return t&&t.refs?t.refs[e]:null}}};e.exports=f}).call(t,n(40))},function(e,t,n){(function(t){"use strict";function o(e){var t=e._owner||null;return t&&t.constructor&&t.constructor.displayName?" Check the render method of `"+t.constructor.displayName+"`.":""}function r(e,n,o){for(var r in n)n.hasOwnProperty(r)&&("production"!==t.env.NODE_ENV?M("function"==typeof n[r],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactCompositeComponent",D[o],r):M("function"==typeof n[r]))}function i(e,n){var o=U.hasOwnProperty(n)?U[n]:null;B.hasOwnProperty(n)&&("production"!==t.env.NODE_ENV?M(o===V.OVERRIDE_BASE,"ReactCompositeComponentInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",n):M(o===V.OVERRIDE_BASE)),e.hasOwnProperty(n)&&("production"!==t.env.NODE_ENV?M(o===V.DEFINE_MANY||o===V.DEFINE_MANY_MERGED,"ReactCompositeComponentInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n):M(o===V.DEFINE_MANY||o===V.DEFINE_MANY_MERGED))}function a(e){var n=e._compositeLifeCycleState;"production"!==t.env.NODE_ENV?M(e.isMounted()||n===F.MOUNTING,"replaceState(...): Can only update a mounted or mounting component."):M(e.isMounted()||n===F.MOUNTING),"production"!==t.env.NODE_ENV?M(null==h.current,"replaceState(...): Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."):M(null==h.current),"production"!==t.env.NODE_ENV?M(n!==F.UNMOUNTING,"replaceState(...): Cannot update while unmounting component. This usually means you called setState() on an unmounted component."):M(n!==F.UNMOUNTING)}function s(e,n){if(n){"production"!==t.env.NODE_ENV?M(!E.isValidFactory(n),"ReactCompositeComponent: You're attempting to use a component class as a mixin. Instead, just use a regular object."):M(!E.isValidFactory(n)),"production"!==t.env.NODE_ENV?M(!m.isValidElement(n),"ReactCompositeComponent: You're attempting to use a component as a mixin. Instead, just use a regular object."):M(!m.isValidElement(n));var o=e.prototype;n.hasOwnProperty(A)&&j.mixins(e,n.mixins);for(var r in n)if(n.hasOwnProperty(r)&&r!==A){var a=n[r];if(i(o,r),j.hasOwnProperty(r))j[r](e,a);else{var s=U.hasOwnProperty(r),u=o.hasOwnProperty(r),c=a&&a.__reactDontBind,d="function"==typeof a,f=d&&!s&&!u&&!c;if(f)o.__reactAutoBindMap||(o.__reactAutoBindMap={}),o.__reactAutoBindMap[r]=a,o[r]=a;else if(u){var h=U[r];"production"!==t.env.NODE_ENV?M(s&&(h===V.DEFINE_MANY_MERGED||h===V.DEFINE_MANY),"ReactCompositeComponent: Unexpected spec policy %s for key %s when mixing in component specs.",h,r):M(s&&(h===V.DEFINE_MANY_MERGED||h===V.DEFINE_MANY)),h===V.DEFINE_MANY_MERGED?o[r]=l(o[r],a):h===V.DEFINE_MANY&&(o[r]=p(o[r],a))}else o[r]=a,"production"!==t.env.NODE_ENV&&"function"==typeof a&&n.displayName&&(o[r].displayName=n.displayName+"_"+r)}}}}function u(e,n){if(n)for(var o in n){var r=n[o];if(n.hasOwnProperty(o)){var i=o in j;"production"!==t.env.NODE_ENV?M(!i,'ReactCompositeComponent: 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.',o):M(!i);var a=o in e;"production"!==t.env.NODE_ENV?M(!a,"ReactCompositeComponent: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",o):M(!a),e[o]=r}}}function c(e,n){return"production"!==t.env.NODE_ENV?M(e&&n&&"object"==typeof e&&"object"==typeof n,"mergeObjectsWithNoDuplicateKeys(): Cannot merge non-objects"):M(e&&n&&"object"==typeof e&&"object"==typeof n),S(n,function(n,o){"production"!==t.env.NODE_ENV?M(void 0===e[o],"mergeObjectsWithNoDuplicateKeys(): 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.",o):M(void 0===e[o]),e[o]=n}),e}function l(e,t){return function(){var n=e.apply(this,arguments),o=t.apply(this,arguments);return null==n?o:null==o?n:c(n,o)}}function p(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}var d=n(19),f=n(21),h=n(22),m=n(23),v=n(24),y=n(59),g=n(60),E=n(28),N=n(56),b=n(31),C=n(61),_=n(62),D=n(63),w=n(57),O=n(35),x=n(64),M=n(54),T=n(58),R=n(65),I=n(66),S=n(67),P=n(68),k=n(49),A=R({mixins:null}),V=T({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),L=[],U={mixins:V.DEFINE_MANY,statics:V.DEFINE_MANY,propTypes:V.DEFINE_MANY,contextTypes:V.DEFINE_MANY,childContextTypes:V.DEFINE_MANY,getDefaultProps:V.DEFINE_MANY_MERGED,getInitialState:V.DEFINE_MANY_MERGED,getChildContext:V.DEFINE_MANY_MERGED,render:V.DEFINE_ONCE,componentWillMount:V.DEFINE_MANY,componentDidMount:V.DEFINE_MANY,componentWillReceiveProps:V.DEFINE_MANY,shouldComponentUpdate:V.DEFINE_ONCE,componentWillUpdate:V.DEFINE_MANY,componentDidUpdate:V.DEFINE_MANY,componentWillUnmount:V.DEFINE_MANY,updateComponent:V.OVERRIDE_BASE},j={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)s(e,t[n])},childContextTypes:function(e,t){r(e,t,_.childContext),e.childContextTypes=O({},e.childContextTypes,t)},contextTypes:function(e,t){r(e,t,_.context),e.contextTypes=O({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=l(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){r(e,t,_.prop),e.propTypes=O({},e.propTypes,t)},statics:function(e,t){u(e,t)}},F=T({MOUNTING:null,UNMOUNTING:null,RECEIVING_PROPS:null}),B={construct:function(e){d.Mixin.construct.apply(this,arguments),N.Mixin.construct.apply(this,arguments),this.state=null,this._pendingState=null,this.context=null,this._compositeLifeCycleState=null},isMounted:function(){return d.Mixin.isMounted.call(this)&&this._compositeLifeCycleState!==F.MOUNTING},mountComponent:b.measure("ReactCompositeComponent","mountComponent",function(e,n,o){d.Mixin.mountComponent.call(this,e,n,o),this._compositeLifeCycleState=F.MOUNTING,this.__reactAutoBindMap&&this._bindAutoBindMethods(),this.context=this._processContext(this._currentElement._context),this.props=this._processProps(this.props),this.state=this.getInitialState?this.getInitialState():null,"production"!==t.env.NODE_ENV?M("object"==typeof this.state&&!Array.isArray(this.state),"%s.getInitialState(): must return an object or null",this.constructor.displayName||"ReactCompositeComponent"):M("object"==typeof this.state&&!Array.isArray(this.state)),this._pendingState=null,this._pendingForceUpdate=!1,this.componentWillMount&&(this.componentWillMount(),this._pendingState&&(this.state=this._pendingState,this._pendingState=null)),this._renderedComponent=x(this._renderValidatedComponent(),this._currentElement.type),this._compositeLifeCycleState=null;var r=this._renderedComponent.mountComponent(e,n,o+1);return this.componentDidMount&&n.getReactMountReady().enqueue(this.componentDidMount,this),r}),unmountComponent:function(){this._compositeLifeCycleState=F.UNMOUNTING,this.componentWillUnmount&&this.componentWillUnmount(),this._compositeLifeCycleState=null,this._renderedComponent.unmountComponent(),this._renderedComponent=null,d.Mixin.unmountComponent.call(this)},setState:function(e,n){"production"!==t.env.NODE_ENV?M("object"==typeof e||null==e,"setState(...): takes an object of state variables to update."):M("object"==typeof e||null==e),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?k(null!=e,"setState(...): You passed an undefined or null state object; instead, use forceUpdate()."):null),this.replaceState(O({},this._pendingState||this.state,e),n)},replaceState:function(e,t){a(this),this._pendingState=e,this._compositeLifeCycleState!==F.MOUNTING&&w.enqueueUpdate(this,t)},_processContext:function(e){var n=null,o=this.constructor.contextTypes;if(o){n={};for(var r in o)n[r]=e[r];"production"!==t.env.NODE_ENV&&this._checkPropTypes(o,n,_.context)}return n},_processChildContext:function(e){var n=this.getChildContext&&this.getChildContext(),o=this.constructor.displayName||"ReactCompositeComponent";if(n){"production"!==t.env.NODE_ENV?M("object"==typeof this.constructor.childContextTypes,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",o):M("object"==typeof this.constructor.childContextTypes),"production"!==t.env.NODE_ENV&&this._checkPropTypes(this.constructor.childContextTypes,n,_.childContext);for(var r in n)"production"!==t.env.NODE_ENV?M(r in this.constructor.childContextTypes,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',o,r):M(r in this.constructor.childContextTypes);return O({},e,n)}return e},_processProps:function(e){if("production"!==t.env.NODE_ENV){var n=this.constructor.propTypes;n&&this._checkPropTypes(n,e,_.prop)}return e},_checkPropTypes:function(e,n,r){var i=this.constructor.displayName;for(var a in e)if(e.hasOwnProperty(a)){var s=e[a](n,a,i,r);if(s instanceof Error){var u=o(this);"production"!==t.env.NODE_ENV?k(!1,s.message+u):null}}},performUpdateIfNecessary:function(e){var n=this._compositeLifeCycleState;if(n!==F.MOUNTING&&n!==F.RECEIVING_PROPS&&(null!=this._pendingElement||null!=this._pendingState||this._pendingForceUpdate)){var o=this.context,r=this.props,i=this._currentElement;null!=this._pendingElement&&(i=this._pendingElement,o=this._processContext(i._context),r=this._processProps(i.props),this._pendingElement=null,this._compositeLifeCycleState=F.RECEIVING_PROPS,this.componentWillReceiveProps&&this.componentWillReceiveProps(r,o)),this._compositeLifeCycleState=null;var a=this._pendingState||this.state;this._pendingState=null;var s=this._pendingForceUpdate||!this.shouldComponentUpdate||this.shouldComponentUpdate(r,a,o);"production"!==t.env.NODE_ENV&&"undefined"==typeof s&&console.warn((this.constructor.displayName||"ReactCompositeComponent")+".shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false."),s?(this._pendingForceUpdate=!1,this._performComponentUpdate(i,r,a,o,e)):(this._currentElement=i,this.props=r,this.state=a,this.context=o,this._owner=i._owner)}},_performComponentUpdate:function(e,t,n,o,r){var i=this._currentElement,a=this.props,s=this.state,u=this.context;this.componentWillUpdate&&this.componentWillUpdate(t,n,o),this._currentElement=e,this.props=t,this.state=n,this.context=o,this._owner=e._owner,this.updateComponent(r,i),this.componentDidUpdate&&r.getReactMountReady().enqueue(this.componentDidUpdate.bind(this,a,s,u),this)},receiveComponent:function(e,t){(e!==this._currentElement||null==e._owner)&&d.Mixin.receiveComponent.call(this,e,t)},updateComponent:b.measure("ReactCompositeComponent","updateComponent",function(e,t){d.Mixin.updateComponent.call(this,e,t);var n=this._renderedComponent,o=n._currentElement,r=this._renderValidatedComponent();if(P(o,r))n.receiveComponent(r,e);else{var i=this._rootNodeID,a=n._rootNodeID;n.unmountComponent(),this._renderedComponent=x(r,this._currentElement.type);var s=this._renderedComponent.mountComponent(i,e,this._mountDepth+1);d.BackendIDOperations.dangerouslyReplaceNodeWithMarkupByID(a,s)}}),forceUpdate:function(e){var n=this._compositeLifeCycleState;"production"!==t.env.NODE_ENV?M(this.isMounted()||n===F.MOUNTING,"forceUpdate(...): Can only force an update on mounted or mounting components."):M(this.isMounted()||n===F.MOUNTING),"production"!==t.env.NODE_ENV?M(n!==F.UNMOUNTING&&null==h.current,"forceUpdate(...): Cannot force an update while unmounting component or within a `render` function."):M(n!==F.UNMOUNTING&&null==h.current),this._pendingForceUpdate=!0,w.enqueueUpdate(this,e)},_renderValidatedComponent:b.measure("ReactCompositeComponent","_renderValidatedComponent",function(){var e,n=f.current;f.current=this._processChildContext(this._currentElement._context),h.current=this;try{e=this.render(),null===e||e===!1?(e=y.getEmptyComponent(),y.registerNullComponentID(this._rootNodeID)):y.deregisterNullComponentID(this._rootNodeID)}finally{f.current=n,h.current=null}return"production"!==t.env.NODE_ENV?M(m.isValidElement(e),"%s.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.",this.constructor.displayName||"ReactCompositeComponent"):M(m.isValidElement(e)),e}),_bindAutoBindMethods:function(){for(var e in this.__reactAutoBindMap)if(this.__reactAutoBindMap.hasOwnProperty(e)){var t=this.__reactAutoBindMap[e];this[e]=this._bindAutoBindMethod(g.guard(t,this.constructor.displayName+"."+e))}},_bindAutoBindMethod:function(e){var n=this,o=e.bind(n);if("production"!==t.env.NODE_ENV){o.__reactBoundContext=n,o.__reactBoundMethod=e,o.__reactBoundArguments=null;var r=n.constructor.displayName,i=o.bind;o.bind=function(t){for(var a=[],s=1,u=arguments.length;u>s;s++)a.push(arguments[s]);if(t!==n&&null!==t)I("react_bind_warning",{component:r}),console.warn("bind(): React component methods may only be bound to the component instance. See "+r);else if(!a.length)return I("react_bind_warning",{component:r}),console.warn("bind(): You are binding a component method to the compone