From 2579584bd3721cef482e75d8d315de30d60c1eae Mon Sep 17 00:00:00 2001 From: theporchrat Date: Fri, 24 Oct 2014 18:10:28 -0400 Subject: [PATCH] cmbox bug --- browser/react-widgets.js | 8 ++++---- docs/docs.js | 16 ++++++++-------- lib/dropdowns/combobox.js | 2 +- package.json | 2 +- src/dropdowns/combobox.jsx | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/browser/react-widgets.js b/browser/react-widgets.js index 4210ab175..17849b458 100644 --- a/browser/react-widgets.js +++ b/browser/react-widgets.js @@ -1,5 +1,5 @@ -/*! v"1.3.0" | (c) 2014 Jason Quense | https://github.com/theporchrat/react-widgets/blob/master/License.txt */ -this.ReactWidgets=function(e){function t(n){if(s[n])return s[n].exports;var i=s[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var s={};return t.m=e,t.c=s,t.p="",t(0)}([function(e,t,s){e.exports={DropDownlist:s(1),Combobox:s(2),Calendar:s(3),DateTimePicker:s(4),NumberPicker:s(5),Select:s(6),utils:{ReplaceTransitionGroup:s(7),SlideTransition:s(8)}}},function(e,t,s){var n=s(9),i=s(10),r=s(24),o=s(31),a=s(27),p=s(28).mergeIntoProps,l=(s(29).directions,s(21),s(33)),u=s(12),d=s(30),h=(s(13),{value:n.PropTypes.any,onChange:n.PropTypes.func,open:n.PropTypes.bool,onToggle:n.PropTypes.func,data:n.PropTypes.array,valueField:n.PropTypes.string,textField:n.PropTypes.string,valueComponent:n.PropTypes.component,itemComponent:n.PropTypes.component,busy:n.PropTypes.bool,delay:n.PropTypes.number,duration:n.PropTypes.number,disabled:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.oneOf(["disabled"])]),readOnly:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.oneOf(["readOnly"])]),messages:n.PropTypes.shape({open:n.PropTypes.string})}),c=n.createClass({displayName:"DropdownList",mixins:[s(34),s(40),s(35),s(37),s(38),s(39)("focusedIndex"),s(39)("selectedIndex")],propTypes:h,getInitialState:function(){var e=this._dataIndexOf(this.props.data,this.props.value);return{selectedIndex:e,focusedIndex:-1===e?0:e}},getDefaultProps:function(){return{delay:500,value:"",open:!1,data:[],messages:{open:"open dropdown"}}},componentWillReceiveProps:function(e){if(!i.isEqual(e.value,this.props.value)){var t=this._dataIndexOf(e.data,e.value);this.setSelectedIndex(t),this.setFocusedIndex(-1===t?0:t)}},render:function(){var e=i.keys(h),t=this._dataItem(this._data(),this.props.value),s=this._id("_option");return p(i.omit(this.props,e),n.DOM.div({ref:"element",onKeyDown:this._maybeHandle(this._keyDown),onClick:this._maybeHandle(this.toggle),onFocus:this._maybeHandle(i.partial(this._focus,!0),!0),onBlur:i.partial(this._focus,!1),"aria-expanded":this.props.open,"aria-haspopup":!0,"aria-activedescendent":this.props.open?s:void 0,"aria-disabled":this.props.disabled,"aria-readonly":this.props.readOnly,tabIndex:this.props.disabled?"-1":"0",className:r({"rw-dropdown-list":!0,"rw-widget":!0,"rw-state-disabled":this.props.disabled,"rw-state-readonly":this.props.readOnly,"rw-state-focus":this.state.focused,"rw-open":this.props.open,"rw-rtl":this.isRtl()})},n.DOM.span({className:"rw-dropdownlist-picker rw-select rw-btn"},n.DOM.i({className:"rw-i rw-i-caret-down"+(this.props.busy?" rw-loading":"")},n.DOM.span({className:"rw-sr"},this.props.messages.open))),n.DOM.div({className:"rw-input"},this.props.valueComponent?this.props.valueComponent({item:t}):this._dataText(t)),l({open:this.props.open,onRequestClose:this.close,duration:this.props.duration},n.DOM.div(null,u({ref:"list",optID:s,"aria-hidden":!this.props.open,style:{maxHeight:200,height:"auto"},data:this.props.data,initialVisibleItems:this.props.initialBufferSize,itemHeight:18,selectedIndex:this.state.selectedIndex,focusedIndex:this.state.focusedIndex,textField:this.props.textField,valueField:this.props.valueField,listItem:this.props.itemComponent,onSelect:this._maybeHandle(this._onSelect)})))))},setWidth:function(){var e=d.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})},_focus:function(e){var t=this;clearTimeout(t.timer),t.timer=setTimeout(function(){e?t.getDOMNode().focus():t.close(),e!==t.state.focused&&t.setState({focused:e})},0)},_onSelect:function(e){this.close(),this.change(e)},_keyDown:function(e){function t(e){s.change(s._data()[e])}var s=this,n=e.key,i=e.altKey,r=this.props.open;"End"===n?(r?this.setFocusedIndex(this._data().length-1):t(this._data().length-1),e.preventDefault()):"Home"===n?(r?this.setFocusedIndex(0):t(0),e.preventDefault()):"Escape"===n&&r?this.close():"Enter"===n&&r?t(this.state.focusedIndex):"ArrowDown"===n?(i?this.open():r?this.setFocusedIndex(this.nextFocusedIndex()):t(this.nextSelectedIndex()),e.preventDefault()):"ArrowUp"===n?(i?this.close():r?this.setFocusedIndex(this.prevFocusedIndex()):t(this.prevSelectedIndex()),e.preventDefault()):this.search(String.fromCharCode(e.keyCode),this._locate)},change:function(e){var t=this.props.onChange;t&&!i.isEqual(e,this.props.value)&&(t(e),this.close())},_locate:function(e){var t=this.props.open?"focusedIndex":"selectedIndex",s=this.findNextWordIndex(e,this.state[t]),n=o(t).bind(this);-1!==s&&n(s)},_data:function(){return this.props.data},open:function(){this.notify("onToggle",!0)},close:function(){this.notify("onToggle",!1)},toggle:function(){this.props.open?this.close():this.open()}});e.exports=a.createControlledClass("DropDownList",c,{open:"onToggle",value:"onChange"})},function(e,t,s){function n(e,t){var s;if(e===t)return!0;for(s in e)if(e.hasOwnProperty(s)&&(!t.hasOwnProperty(s)||e[s]!==t[s]))return!1;for(s in t)if(t.hasOwnProperty(s)&&!e.hasOwnProperty(s))return!1;return!0}var i=s(9),r=s(24),o=s(10),a=(s(25),s(26)),p=s(27),l=s(28).mergeIntoProps,u=(s(29).directions,s(11)),d=s(33),h=s(12),c=s(30),f=s(13),y={value:i.PropTypes.any,onChange:i.PropTypes.func,open:i.PropTypes.bool,onToggle:i.PropTypes.func,itemComponent:i.PropTypes.func,data:i.PropTypes.array,valueField:i.PropTypes.string,textField:i.PropTypes.string,disabled:i.PropTypes.oneOfType([i.PropTypes.bool,i.PropTypes.oneOf(["disabled"])]),readOnly:i.PropTypes.oneOfType([i.PropTypes.bool,i.PropTypes.oneOf(["readOnly"])]),suggest:i.PropTypes.bool,busy:i.PropTypes.bool,duration:i.PropTypes.number,placeholder:i.PropTypes.string,messages:i.PropTypes.shape({open:i.PropTypes.string,emptyList:i.PropTypes.string,emptyFilter:i.PropTypes.string})},m=i.createClass({displayName:"ComboBox",mixins:[s(34),s(35),s(36),s(37),s(38),s(39)("focusedIndex"),s(39)("selectedIndex")],propTypes:y,getInitialState:function(){var e=this.process(this.props.data,this.props.value),t=this._dataIndexOf(e,this.props.value);return{selectedIndex:t,focusedIndex:-1===t?0:t,processedData:e,open:!1}},getDefaultProps:function(){return{data:[],value:"",open:!1,suggest:!1,filter:!1,delay:500,messages:{open:"open combobox",emptyList:"There are no items in this list",emptyFilter:"The filter returned no results"}}},shouldComponentUpdate:function(e,t){var s=this.refs.input&&this.refs.input.isSuggesting(),i=!n(t,this.state),r=!n(e,this.props);return s||i||r},componentWillReceiveProps:function(e){var t=this._dataIndexOf(e.data,e.value),s=-1==t?e.value:e.data[t],n=this.refs.input.isSuggesting(),i=this.process(e.data,e.value,(-1===t||n)&&this._dataText(s)),r=this._dataIndexOf(i,e.value),o=this.filterIndexOf(i,this._dataText(s));this._searchTerm="",this.setState({processedData:i,selectedIndex:r,focusedIndex:-1===r?-1!==o?o:0:r})},render:function(){var e=(this.props.valueComponent,this._dataItem(this._data(),this.props.value)),t=this._data(),s=this._id("_listbox"),n=this._id("_option"),a=this.props.suggest?this.props.filter?"both":"inline":this.props.filter?"list":"";return l(o.omit(this.props,o.keys(y)),i.DOM.div({ref:"element",onKeyDown:this._maybeHandle(this._keyDown),onFocus:this._maybeHandle(o.partial(this._focus,!0),!0),onBlur:this._focus.bind(null,!1),tabIndex:"-1",className:r({"rw-combobox":!0,"rw-widget":!0,"rw-state-focus":this.state.focused,"rw-open":this.props.open,"rw-state-disabled":this.props.disabled,"rw-state-readonly":this.props.readOnly,"rw-rtl":this.isRtl()})},f({tabIndex:"-1",className:"rw-select",onClick:this._maybeHandle(this.toggle),disabled:!(!this.props.disabled&&!this.props.readOnly)},i.DOM.i({className:"rw-i rw-i-caret-down"+(this.props.busy?" rw-loading":"")},i.DOM.span({className:"rw-sr"},this.props.messages.open))),u({ref:"input",type:"text",role:"combobox",suggest:this.props.suggest,"aria-owns":s,"aria-busy":!!this.props.busy,"aria-autocomplete":a,"aria-activedescendent":this.props.open?n:void 0,"aria-expanded":this.props.open,"aria-haspopup":!0,placeholder:this.props.placeholder,disabled:this.props.disabled,readOnly:this.props.readOnly,className:"rw-input",value:this._dataText(e),onChange:this._inputTyping,onKeyDown:this._inputKeyDown}),d({open:this.props.open,onRequestClose:this.close,duration:this.props.duration},i.DOM.div(null,h({ref:"list",id:s,optID:n,"aria-hidden":!this.props.open,"aria-live":a&&"polite",style:{maxHeight:200,height:"auto"},data:t,selectedIndex:this.state.selectedIndex,focusedIndex:this.state.focusedIndex,textField:this.props.textField,valueField:this.props.valueField,onSelect:this._maybeHandle(this._onSelect),listItem:this.props.itemComponent,messages:{emptyList:this.props.data.length?this.props.messages.emptyFilter:this.props.messages.emptyList}})))))},setWidth:function(){var e=c.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})},_onSelect:function(e){this.close(),this.change(e),this._focus(!0)},_inputKeyDown:function(e){this._deleting="Backspace"===e.key||"Delete"===e.key,this._isTyping=!0},_inputTyping:function(e){var t,s,n=this,i=!!this.props.suggest,r=e.target.value;t=this._deleting||!i?r:this.suggest(this._data(),r),t=t||r,s=o.find(n.props.data,function(e){return n._dataText(e).toLowerCase()===t.toLowerCase()}),this.change(!this._deleting&&s?s:r,!0),this.open()},_focus:function(e){var t=this;clearTimeout(t.timer),!e&&t.refs.input.accept(),t.timer=setTimeout(function(){e?t.refs.input.focus():t.close(),e!==t.state.focused&&t.setState({focused:e})},0)},_keyDown:function(e){function t(e){return-1===e||0===s._data().length?s.change(s.refs.input.getDOMNode().value,!1):(s.refs.input.accept(!0),void s.change(s._data()[e],!1))}var s=this,n=e.key,i=e.altKey,r=(String.fromCharCode(e.keyCode),this.state.selectedIndex,this.state.focusedIndex),o=this.props.open;"End"===n?t(this._data().length-1):"Home"===n?t(0):"Escape"===n&&o?this.close():"Enter"===n&&o?(t(r),this.close()):"ArrowDown"===n?i?this.open():o?this.setFocusedIndex(this.nextFocusedIndex()):t(this.nextSelectedIndex()):"ArrowUp"===n&&(i?this.close():o?this.setFocusedIndex(this.prevFocusedIndex()):t(this.prevSelectedIndex()))},change:function(e,t){this._typedChange=!!t,this.notify("onChange",e)},open:function(){this.props.open||this.notify("onToggle",!0)},close:function(){this.props.open&&this.notify("onToggle",!0)},toggle:function(){this._focus(!0),this.props.open?this.close():this.open()},suggest:function(e,t){function s(e){return i(this._dataText(e).toLowerCase(),n.toLowerCase())}var n=this._dataText(t),i=a.startsWith,r="string"==typeof t?o.find(e,s,this):t;return!r||this.state&&this.state.deleting?"":this._dataText(r)},_data:function(){return this.state.processedData},process:function(e,t,s){return this.props.filter&&s&&(e=this.filter(e,s)),e}});e.exports=p.createControlledClass("ComboBox",m,{open:"onToggle",value:"onChange"})},function(e,t,s){var n=s(9),i=s(14),r=s(15),o=s(16),a=s(17),p=s(18),l=s(24),u=s(31),d=s(27),h=s(8),c=s(32),f=s(28).mergeIntoProps,y=s(29),m=s(10),v=y.directions,g=y.calendarViews,T=m.values(g),w=m.invert(y.calendarViewHierarchy),D=y.calendarViewHierarchy,O=y.calendarViewUnits,b=m.object([[g.MONTH,r],[g.YEAR,o],[g.DECADE,a],[g.CENTURY,p]]),x=m.object([[g.YEAR,1],[g.DECADE,10],[g.CENTURY,100]]),P=n.createClass({displayName:"Calendar",mixins:[s(34),s(40),s(38)],propTypes:{onChange:n.PropTypes.func.isRequired,value:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date),initialView:n.PropTypes.oneOf(T),finalView:n.PropTypes.oneOf(T),disabled:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.oneOf(["disabled"])]),readOnly:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.oneOf(["readOnly"])]),messages:n.PropTypes.shape({moveBack:n.PropTypes.string,moveForward:n.PropTypes.string}),maintainFocus:n.PropTypes.bool},getInitialState:function(){return{selectedIndex:0,view:this.props.initialView||"month",currentDate:this.inRangeValue(new Date(this.props.value))}},getDefaultProps:function(){return{open:!1,value:new Date,min:new Date(1900,0,1),max:new Date(2099,11,31),initialView:"month",finalView:"century",maintainFocus:!0}},componentWillReceiveProps:function(e){var t=T.indexOf(e.initialView),s=T.indexOf(e.finalView),n=T.indexOf(this.state.view),i=this.state.view,r=this.inRangeValue(new Date(e.value));t>n?this.setState({view:i=e.initialView}):n>s&&this.setState({view:i=e.finalView}),c.eq(r,this.props.value,O[i])||this.setState({currentDate:r})},render:function(){function e(){this._focus(!0,"stop")}var t=b[this.state.view],s=this.props.disabled||this.props.readOnly,r=this.state.currentDate,o=this._id("_view_label"),a=this.state.view+"_"+c[this.state.view](r),p=this._id("_view");return f(m.omit(this.props,"value","min","max"),n.DOM.div({className:l({"rw-calendar":!0,"rw-widget":!0,"rw-state-disabled":this.props.disabled,"rw-state-readonly":this.props.readOnly,"rw-rtl":this.isRtl()})},i({label:this._label(),labelId:o,messages:this.props.messages,upDisabled:s||this.state.view===this.props.finalView,prevDisabled:s||!c.inRange(this.nextDate(v.LEFT),this.props.min,this.props.max),nextDisabled:s||!c.inRange(this.nextDate(v.RIGHT),this.props.min,this.props.max),onViewChange:this._maybeHandle(m.partial(this.navigate,v.UP,null)),onMoveLeft:this._maybeHandle(m.partial(this.navigate,v.LEFT,null)),onMoveRight:this._maybeHandle(m.partial(this.navigate,v.RIGHT,null))}),h({ref:"animation",direction:this.state.slideDirection,onAnimate:e.bind(this)},t({ref:"currentView",key:a,id:p,"aria-labeledby":o,selectedDate:this.props.value,value:this.state.currentDate,onChange:this._maybeHandle(this.change),onKeyDown:this._maybeHandle(this._keyDown),onFocus:this._maybeHandle(m.partial(this._focus,!0),!0),onMoveLeft:this._maybeHandle(m.partial(this.navigate,v.LEFT)),onMoveRight:this._maybeHandle(m.partial(this.navigate,v.RIGHT)),disabled:this.props.disabled,readOnly:this.props.readOnly,min:this.props.min,max:this.props.max}))))},navigate:function(e,t){var s=this.state.view,n=e===v.LEFT||e===v.UP?"right":"left";t||(t=m.contains([v.LEFT,v.RIGHT],e)?this.nextDate(e):this.state.currentDate),e===v.DOWN&&(s=w[s]||s),e===v.UP&&(s=D[s]||s),this.isValidView(s)&&c.inRange(t,this.props.min,this.props.max,s)&&(this._focus(!0,"nav"),this.setState({currentDate:t,slideDirection:n,view:s}))},_focus:function(e){u("focused");this.props.maintainFocus&&e&&this.refs.currentView.getDOMNode().focus()},change:function(e){return this.props.onChange&&this.state.view===this.props.initialView?this.notify("onChange",e):void this.navigate(v.DOWN,e)},nextDate:function(e){var t=e===v.LEFT?"subtract":"add",s=this.state.view,n=s===g.MONTH?s:g.YEAR,i=x[s]||1;return c[t](this.state.currentDate,1*i,n)},_keyDown:function(e){var t=e.ctrlKey,s=e.key;t?("ArrowDown"===s&&(e.preventDefault(),this.navigate(v.DOWN)),"ArrowUp"===s&&(e.preventDefault(),this.navigate(v.UP)),"ArrowLeft"===s&&(e.preventDefault(),this.navigate(v.LEFT)),"ArrowRight"===s&&(e.preventDefault(),this.navigate(v.RIGHT))):this.refs.currentView._keyDown&&this.refs.currentView._keyDown(e)},_label:function(){var e=this.state.view,t=this.state.currentDate;return"month"===e?c.format(t,c.formats.MONTH_YEAR):"year"===e?c.format(t,c.formats.YEAR):"decade"===e?c.format(c.firstOfDecade(t),c.formats.YEAR)+" - "+c.format(c.lastOfDecade(t),c.formats.YEAR):"century"===e?c.format(c.firstOfCentury(t),c.formats.YEAR)+" - "+c.format(c.lastOfCentury(t),c.formats.YEAR):void 0},inRangeValue:function(e){return null==e?e:c.max(c.min(e,this.props.max),this.props.min)},isValidView:function(e){var t=T.indexOf(this.props.initialView),s=T.indexOf(this.props.finalView),n=T.indexOf(e);return n>=t&&s>=n}});e.exports=d.createControlledClass("Calendar",P,{value:"onChange"})},function(e,t,s){function n(e,t){var s="";return e instanceof Date&&!isNaN(e.getTime())&&(s=p.format(e,t)),s}function i(e,t){var s;e=[].concat(e);for(var n=0;n=0&&i(e,s,s+n)}},getDefaultProps:function(){return{value:""}},render:function(){return this.transferPropsTo(n.DOM.input({type:"text",className:"rw-input",onKeyDown:this.props.onKeyDown,onChange:this._change,value:null==this.props.value?"":this.props.value}))},isSuggesting:function(){var e=this.props.value,t=null!=this._last&&-1!==e.toLowerCase().indexOf(this._last.toLowerCase());return this.props.suggest&&t},accept:function(e){var t=this.getDOMNode().value||"",s=t.length;this._last=null,e&&i(this.getDOMNode(),s,s)},_change:function(e){var t=e.target.value;this._last=t,this.props.onChange(e,t)},focus:function(){this.getDOMNode().focus()}})},function(e,t,s){{var n=s(9),i=(s(26),s(43),s(28)),r=i.mergeIntoProps,o=(i.cloneWithProps,s(24)),a=s(10);n.createClass({displayName:"DefaultListItem",mixins:[s(37),s(44)],render:function(){var e=this.props.item;return this.transferPropsTo(n.DOM.li(null,e?this._dataText(e):""))}})}e.exports=n.createClass({displayName:"List",mixins:[s(37)],propTypes:{data:n.PropTypes.array,onSelect:n.PropTypes.func,listItem:n.PropTypes.component,selectedIndex:n.PropTypes.number,focusedIndex:n.PropTypes.number,valueField:n.PropTypes.string,textField:n.PropTypes.string,optID:n.PropTypes.string,messages:n.PropTypes.shape({emptyList:n.PropTypes.string})},getDefaultProps:function(){return{delay:500,optID:"",onSelect:a.noop,data:[],messages:{emptyList:"There are no items in this list"}}},componentDidMount:function(){this._setScrollPosition()},componentDidUpdate:function(e){e.focusedIndex!==this.props.focusedIndex&&this._setScrollPosition()},render:function(){{var e,t=n.DOM.li(null,this.props.messages.emptyList);n.DOM.li(null,this.props.messages.emptyFilter)}return e=a.map(this.props.data,function(e,t){var s=this.props.focusedIndex===t;return n.DOM.li({key:"item_"+t,role:"option",id:s?this.props.optID:void 0,"aria-selected":t===this.props.selectedIndex,className:o({"rw-state-focus":s,"rw-state-selected":t===this.props.selectedIndex}),onClick:a.partial(this.props.onSelect,e,t)},this.props.listItem?this.props.listItem({item:e}):this._dataText(e))},this),r(a.omit(this.props,"data","selectedIndex"),n.DOM.ul({className:"rw-list",ref:"scrollable",role:"listbox",tabIndex:"-1",onKeyDown:this._keyDown,onKeyPress:this.search},this.props.data.length?e:t))},_setScrollPosition:function(){var e,t,s,n,i,r=this.getDOMNode(),o=r.children[this.props.focusedIndex];o&&(e=r.scrollTop,t=r.clientHeight,s=o.offsetTop,n=o.offsetHeight,i=s+n,r.scrollTop=e>s?s:i>e+t?i-t:e)}})},function(e,t,s){var n=s(9);e.exports=n.createClass({displayName:"exports",render:function(){return this.transferPropsTo(n.DOM.button({type:"button",className:"rw-btn"},this.props.children))}})},function(e,t,s){var n=s(9),i=(s(24),s(13));e.exports=n.createClass({displayName:"exports",propTypes:{label:n.PropTypes.string.isRequired,labelId:n.PropTypes.string,upDisabled:n.PropTypes.bool.isRequired,prevDisabled:n.PropTypes.bool.isRequired,nextDisabled:n.PropTypes.bool.isRequired,onViewChange:n.PropTypes.func.isRequired,onMoveLeft:n.PropTypes.func.isRequired,onMoveRight:n.PropTypes.func.isRequired,messages:n.PropTypes.shape({moveBack:n.PropTypes.string,moveForward:n.PropTypes.string})},mixins:[s(40),s(44)],getDefaultProps:function(){return{messages:{moveBack:"navigate back",moveForward:"navigate forward"}}},render:function(){var e=this.isRtl();return n.DOM.div({className:"rw-header"},i({className:"rw-btn-left",onClick:this.props.onMoveLeft,disabled:this.props.prevDisabled,"aria-disabled":this.props.prevDisabled,title:this.props.moveBack},n.DOM.i({className:"rw-i rw-i-caret-"+(e?"right":"left")},n.DOM.span({className:"rw-sr"},this.props.moveBack))),i({className:"rw-btn-view",id:this.props.labelId,onClick:this.props.onViewChange,disabled:this.props.upDisabled,"aria-disabled":this.props.upDisabled},this.props.label),i({className:"rw-btn-right",onClick:this.props.onMoveRight,disabled:this.props.nextDisabled,"aria-disabled":this.props.nextDisabled,title:this.props.moveForward},n.DOM.i({className:"rw-i rw-i-caret-"+(e?"left":"right")},n.DOM.span({className:"rw-sr"},this.props.moveForward))))}})},function(e,t,s){var n=s(9),i=s(24),r=s(32),o=s(45),a=s(29).directions,p=s(28).mergeIntoProps,l=s(10),u=s(13),d={LEFT:a.RIGHT,RIGHT:a.LEFT};e.exports=n.createClass({displayName:"MonthView",mixins:[s(34),s(44),s(46)("month","day")],propTypes:{culture:n.PropTypes.array,value:n.PropTypes.instanceOf(Date),selectedDate:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date),format:n.PropTypes.string,onChange:n.PropTypes.func.isRequired,onMoveLeft:n.PropTypes.func,onMoveRight:n.PropTypes.func},render:function(){var e=r.visibleDays(this.props.value),t=o(e,7);return p(l.omit(this.props,"max","min","value","onChange"),n.DOM.table({role:"grid",tabIndex:this.props.disabled?"-1":"0",className:"rw-calendar-grid","aria-activedescendant":this._id("_selected_item"),onKeyUp:this._keyUp},n.DOM.thead(null,n.DOM.tr(null,this._headers())),n.DOM.tbody(null,l.map(t,this._row))))},_row:function(e,t){return n.DOM.tr({key:"week_"+t},l.map(e,function(e,t){var s=r.eq(e,this.state.focusedDate,"day"),o=r.eq(e,this.props.selectedDate,"day"),a=this._id("_selected_item");return r.inRange(e,this.props.min,this.props.max)?n.DOM.td({key:"day_"+t},u({tabIndex:"-1",onClick:l.partial(this.props.onChange,e),"aria-selected":o,"aria-disabled":this.props.disabled,disabled:this.props.disabled,className:i({"rw-off-range":r.month(e)!==r.month(this.state.focusedDate),"rw-state-focus":s,"rw-state-selected":o}),id:s?a:void 0},r.format(e,"dd"))):n.DOM.td({key:"day_"+t,className:"rw-empty-cell"}," ")}.bind(this)))},_headers:function(e){var t=r.shortDaysOfWeek(e);return l.map(t,function(e,t){return n.DOM.th({key:"header_"+t},e)})},move:function(e,t){return this.isRtl()&&d[t]&&(t=d[t]),t===a.LEFT?e=r.subtract(e,1,"day"):t===a.RIGHT?e=r.add(e,1,"day"):t===a.UP?e=r.subtract(e,1,"week"):t===a.DOWN&&(e=r.add(e,1,"week")),e}})},function(e,t,s){var n=s(9),i=s(24),r=s(32),o=s(45),a=s(29).directions,p=s(28).mergeIntoProps,l=s(10),u={LEFT:a.RIGHT,RIGHT:a.LEFT};e.exports=n.createClass({displayName:"YearView",mixins:[s(34),s(44),s(46)("year","month")],propTypes:{value:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date),onChange:n.PropTypes.func.isRequired},render:function(){var e=r.monthsInYear(r.year(this.props.value)),t=o(e,4);return p(l.omit(this.props,"max","min","value","onChange"),n.DOM.table({tabIndex:this.props.disabled?"-1":"0",ref:"table",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-activedescendant":this._id("_selected_item"),onKeyUp:this._keyUp},n.DOM.tbody(null,l.map(t,this._row))))},_row:function(e,t){return n.DOM.tr({key:t},l.map(e,function(e,t){var s=r.eq(e,this.state.focusedDate,"month"),o=r.eq(e,this.props.value,"month"),a=this._id("_selected_item");return r.inRange(e,this.props.min,this.props.max,"month")?n.DOM.td({key:t},d({onClick:l.partial(this.props.onChange,e),tabIndex:"-1",id:s?a:void 0,"aria-selected":o,"aria-disabled":this.props.disabled,disabled:this.props.disabled,className:i({"rw-state-focus":s,"rw-state-selected":o})},r.format(e,r.formats.MONTH_NAME_ABRV))):n.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},focus:function(){this.refs.table.getDOMNode().focus()},move:function(e,t){return this.isRtl()&&u[t]&&(t=u[t]),t===a.LEFT?e=r.subtract(e,1,"month"):t===a.RIGHT?e=r.add(e,1,"month"):t===a.UP?e=r.subtract(e,4,"month"):t===a.DOWN&&(e=r.add(e,4,"month")),e}});var d=s(13)},function(e,t,s){function n(e,t){return a.gte(e,a.startOf(t,"decade"),"year")&&a.lte(e,a.endOf(t,"decade"),"year")}function i(e){var e=a.add(a.startOf(e,"decade"),-2,"year");return d.map(d.range(12),function(){return e=a.add(e,1,"year")})}var r=s(9),o=s(24),a=s(32),p=s(45),l=s(29).directions,u=s(28).mergeIntoProps,d=s(10),h={LEFT:l.RIGHT,RIGHT:l.LEFT};e.exports=r.createClass({displayName:"DecadeView",mixins:[s(34),s(40),s(44),s(46)("decade","year")],propTypes:{value:r.PropTypes.instanceOf(Date),min:r.PropTypes.instanceOf(Date),max:r.PropTypes.instanceOf(Date),onChange:r.PropTypes.func.isRequired},render:function(){var e=i(this.props.value),t=p(e,4);return u(d.omit(this.props,"max","min","value","onChange"),r.DOM.table({tabIndex:this.props.disabled?"-1":"0",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-activedescendant":this._id("_selected_item"),onKeyUp:this._keyUp},r.DOM.tbody(null,d.map(t,this._row))))},_row:function(e,t){this._id("_selected_item");return r.DOM.tr({key:"row_"+t},d.map(e,function(e,t){var s=a.eq(e,this.state.focusedDate,"year"),i=a.eq(e,this.props.value,"year"),p=this.props.id&&this.props.id+"_selected_item";return a.inRange(e,this.props.min,this.props.max,"year")?r.DOM.td({key:t},c({onClick:d.partial(this.props.onChange,e),tabIndex:"-1",id:s?p:void 0,"aria-selected":i,"aria-disabled":this.props.disabled,disabled:this.props.disabled,className:o({"rw-off-range":!n(e,this.props.value),"rw-state-focus":s,"rw-state-selected":i})},a.format(e,a.formats.YEAR))):r.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},move:function(e,t){return this.isRtl()&&h[t]&&(t=h[t]),t===l.LEFT?e=a.subtract(e,1,"year"):t===l.RIGHT?e=a.add(e,1,"year"):t===l.UP?e=a.subtract(e,4,"year"):t===l.DOWN&&(e=a.add(e,4,"year")),e}});var c=s(13)},function(e,t,s){function n(e){return u.format(u.startOf(e,"decade"),u.formats.YEAR)+" - "+u.format(u.endOf(e,"decade"),u.formats.YEAR)}function i(e,t,s){return u.max(u.min(e,s),t)}function r(e,t,s){return u.gte(e,u.startOf(t,"decade"),"year")&&u.lte(e,u.endOf(s,"decade"),"year")}function o(e,t){return u.gte(e,u.startOf(t,"century"),"year")&&u.lte(e,u.endOf(t,"century"),"year")}function a(e){var e=u.add(u.startOf(e,"century"),-20,"year");return f.map(f.range(12),function(){return e=u.add(e,10,"year")})}var p=s(9),l=s(24),u=s(32),d=s(45),h=s(29).directions,c=s(28).mergeIntoProps,f=s(10),y={LEFT:h.RIGHT,RIGHT:h.LEFT};e.exports=p.createClass({displayName:"CenturyView",mixins:[s(34),s(40),s(44),s(46)("century","decade")],propTypes:{value:p.PropTypes.instanceOf(Date),min:p.PropTypes.instanceOf(Date),max:p.PropTypes.instanceOf(Date),onChange:p.PropTypes.func.isRequired},render:function(){var e=a(this.props.value),t=d(e,4);return c(f.omit(this.props,"max","min","value","onChange"),p.DOM.table({tabIndex:this.props.disabled?"-1":"0",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-activedescendant":this._id("_selected_item"),onKeyUp:this._keyUp},p.DOM.tbody(null,f.map(t,this._row))))},_row:function(e,t){return p.DOM.tr({key:"row_"+t},f.map(e,function(e,t){var s=u.eq(e,this.state.focusedDate,"decade"),a=u.eq(e,this.props.value,"decade"),d=this._id("_selected_item"),h=i(e,this.props.min,this.props.max);return r(e,this.props.min,this.props.max)?p.DOM.td({key:t},m({onClick:f.partial(this.props.onChange,h),tabIndex:"-1",id:s?d:void 0,"aria-selected":a,"aria-disabled":this.props.disabled,disabled:this.props.disabled,className:l({"rw-off-range":!o(e,this.props.value),"rw-state-focus":s,"rw-state-selected":a})},n(e))):p.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},move:function(e,t){return this.isRtl()&&y[t]&&(t=y[t]),t===h.LEFT?e=u.subtract(e,1,"decade"):t===h.RIGHT?e=u.add(e,1,"decade"):t===h.UP?e=u.subtract(e,4,"decade"):t===h.DOWN&&(e=u.add(e,4,"decade")),e}});var m=s(13)},function(e,t,s){var n=s(9),i=(s(24),s(32)),r=s(12),o=s(28).mergeIntoProps,a=(s(29).directions,s(10));e.exports=n.createClass({displayName:"TimeList",mixins:[s(35),s(39)("selectedIndex"),s(39)("focusedIndex")],propTypes:{value:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date),step:n.PropTypes.number,itemComponent:n.PropTypes.func,onSelect:n.PropTypes.func,preserveDate:n.PropTypes.bool},getDefaultProps:function(){return{step:30,format:"t",onSelect:a.noop,preserveDate:!0}},getInitialState:function(){var e=this._selectedIndex(this._data(),this.props.value);return{focusedIndex:-1===e?0:e}},render:function(){var e=this._data(),t=this._selectedIndex(e,this.props.value);return o(a.omit(this.props,"value"),r({ref:"list",data:e,textField:"label",valueField:"date",selectedIndex:t,focusedIndex:this.state.focusedIndex,listItem:this.props.itemComponent,onSelect:this.props.onSelect}))},_selectedIndex:function(e,t){var s=6e4*this.props.step;return t?(t=new Date(Math.floor(t.getTime()/s)*s),a.findIndex(e,{label:i.format(t,this.props.format)})):0},_data:function(){for(var e=[],t=0,s=this._dateValues(),n=s.min,r=i.date(n);100>t&&i.date(n)===r&&i.lte(n,s.max);)t++,e.push({date:n,label:i.format(n,this.props.format)}),n=i.add(n,this.props.step||30,"minutes");return e},_dateValues:function(){var e,t,s=this.props.value||i.today(),n=this.props.preserveDate,r=this.props.min,o=this.props.max;return n?{min:i.eq(s,r,"day")?r:i.today(),max:i.eq(s,o,"day")?r:i.tomorrow()}:(e=i.startOf(i.merge(new Date,r),"minutes"),t=i.startOf(i.merge(new Date,o),"minutes"),i.lte(t,e)&&i.gt(o,r,"day")&&(t=i.tomorrow()),{min:e,max:t})},_keyDown:function(e){var t=this,s=e.key,n=String.fromCharCode(e.keyCode);"End"===s?this.setFocusedIndex(this._data().length-1):"Home"===s?this.setFocusedIndex(0):"Enter"===s?this.props.onSelect(this._data()[this.state.focusedIndex]):"ArrowDown"===s?(e.preventDefault(),this.setFocusedIndex(this.nextFocusedIndex())):"ArrowUp"===s?(e.preventDefault(),this.setFocusedIndex(this.prevFocusedIndex())):(e.preventDefault(),this.search(n,function(e){t.setFocusedIndex(this.findNextWordIndex(e,t.state.focusedIndex))}))}});s(13)},function(e,t,s){function n(e){return!isNaN(e.getTime())}function i(e,t){var s="";return e instanceof Date&&n(e)&&(s=p.format(e,t)),s}var r=s(9),o=s(24),a=s(43),p=s(32);e.exports=r.createClass({displayName:"DatePickerInput",propTypes:{format:r.PropTypes.string,parse:r.PropTypes.func.isRequired,value:r.PropTypes.instanceOf(Date),onChange:r.PropTypes.func.isRequired},getDefaultProps:function(){return{textValue:""}},componentWillReceiveProps:function(e){this.setState({textValue:i(e.value,e.editing&&e.editFormat?e.editFormat:e.format)})},getInitialState:function(){var e=i(this.props.value,this.props.editing&&this.props.editFormat?this.props.editFormat:this.props.format);return{textValue:e,lastValue:e}},render:function(){var e=this.state.textValue;return this.transferPropsTo(r.DOM.input({type:"text",className:o({"rw-input":!0}),value:e,"aria-disabled":this.props.disabled,"aria-readonly":this.props.readOnly,disabled:this.props.disabled,readOnly:this.props.readOnly,onChange:this._change,onBlur:a.chain(this.props.blur,this._blur)}))},_change:function(e){this.setState({textValue:e.target.value})},_blur:function(){var e=this.state.textValue;e!==this.state.lastValue&&(this.props.onChange(this.props.parse(e),e),this.setState({lastValue:e}))},focus:function(){this.getDOMNode().focus()}})},function(e,t,s){var n=s(9),i=s(28).mergeIntoProps,r=s(10);e.exports=n.createClass({displayName:"exports",mixins:[s(37)],render:function(){var e=this.props.value;return i(r.omit(this.props,"value"),n.DOM.div(null,this._dataText(e)))}})},function(e,t,s){var n=s(9);e.exports=n.createClass({displayName:"SelectSearchInput",propTypes:{value:n.PropTypes.string,onChange:n.PropTypes.func.isRequired,disabled:n.PropTypes.bool,readOnly:n.PropTypes.bool},componentDidUpdate:function(){this.props.focused&&this.focus()},render:function(){var e=this.props.value,t=this.props.placeholder,s=Math.max((e||t).length,1);return this.transferPropsTo(n.DOM.input({type:"text",className:"rw-input","aria-disabled":this.props.disabled,"aria-readonly":this.props.readOnly,disabled:this.props.disabled,readOnly:this.props.readOnly,size:s}))},focus:function(){this.getDOMNode().focus()}})},function(e,t,s){var n=s(9),i=s(10),r=s(24),o=s(28).mergeIntoProps,a=s(13);e.exports=n.createClass({displayName:"SelectTagList",mixins:[s(37),s(40)],propTypes:{value:n.PropTypes.array,valueField:n.PropTypes.string,textField:n.PropTypes.string,valueComponent:n.PropTypes.component,disabled:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.array,n.PropTypes.oneOf(["disabled"])]),readOnly:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.array,n.PropTypes.oneOf(["readonly"])])},getInitialState:function(){return{focused:null}},render:function(){{var e=this.state.focused,t=this.props.value;i.isArray(this.props.disabled),i.isArray(this.props.readOnly)}return o(i.omit(this.props,"value","disabled","readOnly"),n.DOM.ul({className:"rw-tag-list"},i.map(t,function(t,s){var i=this.isDisabled(t),o=this.isReadOnly(t);return n.DOM.li({key:s,className:r({"rw-state-focus":!i&&e===s,"rw-state-disabled":i,"rw-state-readonly":o})},this.props.valueComponent?this.props.valueComponent({item:t}):this._dataText(t),a({tabIndex:"-1",onClick:!(i||o)&&this._delete.bind(null,t),"aria-disabled":i,disabled:i},"×",n.DOM.span({className:"rw-sr"},"Remove "+this._dataText(t))))},this)))},_delete:function(e){this.props.onDelete(e)},removeCurrent:function(){var e=this.props.value[this.state.focused];!e||this.isDisabled(e)||this.isReadOnly(e)||this.props.onDelete(e)},isDisabled:function(e,t){return t&&(e=this.props.value[e]),this.props.disabled===!0||-1!==this._dataIndexOf(this.props.disabled||[],e)},isReadOnly:function(e,t){return t&&(e=this.props.value[e]),this.props.readOnly===!0||-1!==this._dataIndexOf(this.props.readOnly||[],e)},removeNext:function(){var e=i.last(this.props.value);!e||this.isDisabled(e)||this.isReadOnly(e)||this.props.onDelete(e)},clear:function(){this.setState({focused:null})},first:function(){for(var e=0,t=this.props.value.length;t>e&&this.isDisabled(e,!0);)e++;e!==t&&this.setState({focused:e})},last:function(){for(var e=this.props.value.length-1;e>-1&&this.isDisabled(e,!0);)e--;e>=0&&this.setState({focused:e})},next:function(){for(var e=this.state.focused+1,t=this.props.value.length;t>e&&this.isDisabled(e,!0);)e++;return null!==this.state.focused?e>=t?this.clear():void this.setState({focused:e}):void 0},prev:function(){var e=this.state.focused;for(null===e&&(e=this.props.value.length),e--;e>-1&&this.isDisabled(e,!0);)e--;e>=0&&this.setState({focused:e})}})},function(e,t,s){"use strict";var n=s(10);e.exports=function(e){return n.isArray(e)||(e=n.transform(e,function(e,t,s){t&&e.push(s)},[])),e.join(" ")}},function(e){"use strict";e.exports=function(e,t,s){return void 0===t?{start:e.selectionStart,end:e.selectionEnd}:(e.focus(),void e.setSelectionRange(t,s))}},function(e,t,s){"use strict";var n=s(10),i={eq:function(e,t){return e===t},neq:function(e,t){return e!==t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},lt:function(e,t){return t>e},lte:function(e,t){return t>=e},contains:function(e,t){return n.contains(e,t)},startsWith:function(e,t){return 0===e.lastIndexOf(t,0)},endsWith:function(e,t){var s=e.length-t.length,n=e.indexOf(t,s);return-1!==n&&n===s}};e.exports=i},function(e,t,s){"use strict";function n(e,t){return a.propType(function(s,n,r,o){return void 0!==s[n]?s[e]?t&&t(s,n,r,o):new Error("ReactWidgets: you have provided a `"+n+"` prop to `"+r+"` without an `"+e+"` handler. This will render a read-only field. If the field should be mutable use `"+i(n)+"`. Otherwise, set `"+e+"`"):void 0})}function i(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}var r=s(10),o=s(9),a=s(47);e.exports={createControlledClass:function(e,t,s){function a(e,t,n){var i=s[t],o=i&&p(e.props,t),a={};return e._notifying||(e._notifying=[]),e.props[i]&&(e._notifying.push(!0),e.props[i].apply(e,r.rest(arguments,2)),e._notifying.pop()),a[t]=n,e.setState(a),!o}function p(e,t){return void 0!==e[t]}var l=r.invert(s),u=r.transform(s,function(e,s,r){var o=t.type.propTypes[r];e[r]=n(s,o),e[i(r)]=o},{});return o.createClass({displayName:e,propTypes:u,getInitialState:function(){var e=this.props,t=r.keys(s);return r.transform(t,function(t,s){t[s]=e[i(s)]},{})},shouldComponentUpdate:function(){return!this._notifying||!this._notifying.length},render:function(){var e,n,i=this;return e=r.mapValues(s,function(e,t){return p(i.props,t)?i.props[t]:i.state[t]}),n=r.mapValues(l,function(e){return r.partial(a,i,e)}),t(r.extend({},this.props,e,n),this.props.children)}})}}},function(e,t,s){"use strict";function n(e,t){return a.transform(t,function(e,t,s){a.has(l,s)?l[s](e,t,s):a.has(e,s)||(e[s]=t)},e)}function i(e){return function(t,s,n){t[n]=a.has(t,n)?e(t[n],s):s}}function r(){return a.reduce(arguments,function(e,t){return e?t?e+=" "+t:e:t||""},"")}function o(e,t){return a.extend({},e,t)}var a=s(10),p=s(9),l={className:i(r),children:a.noop,key:a.noop,ref:a.noop,style:i(o)};e.exports={mergeIntoProps:function(e,t){var s=t.props?t.props:t;return n(s,e),t},cloneWithProps:function(e,t){var s=n(a.clone(t),e.props),i=a.map(p.version.split("."),parseFloat);return!a.has(s,"children")&&a.has(e.props,"children")&&(s.children=e.props.children),0===i[0]&&i[1]<11?e.constructor.ConvenienceConstructor(s):e.constructor(s)}}},function(e,t,s){function n(e){return i.mapValues(e,function(e,t){return t})}var i=s(10),r={MONTH:"month",YEAR:"year",DECADE:"decade",CENTURY:"century"};e.exports={directions:n({LEFT:null,RIGHT:null,UP:null,DOWN:null}),datePopups:{TIME:"time",CALENDAR:"calendar"},calendarViews:r,calendarViewHierarchy:i.object([[r.MONTH,r.YEAR],[r.YEAR,r.DECADE],[r.DECADE,r.CENTURY]]),calendarViewUnits:i.object([[r.MONTH,r.DAY],[r.YEAR,r.MONTH],[r.DECADE,r.YEAR],[r.CENTURY,r.DECADE]])}},function(e,t,s){"use strict";function n(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})}function i(e){return e.replace(/[A-Z]/g,function(e,t){return(0!==t?"-":"")+e.toLowerCase()})}function r(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)}var o,a,p,l,u,d,h=s(10),c="",f=document.createElement("div"),y={},m={O:"otransitionend",Moz:"transitionend",Webkit:"webkitTransitionEnd"};h.any(m,function(e,t){return void 0!==f.style[t+"TransitionProperty"]?(c="-"+t.toLowerCase()+"-",d=e,!0):void 0}),d||void 0===f.style.transitionProperty||(d="transitionend"),u=!d,y[p=c+"transition-property"]=y[a=c+"transition-duration"]=y[l=c+"transition-delay"]=y[o=c+"transition-timing-function"]="";var v=e.exports={width:function(e){return v.offset(e).width},height:function(e){return v.offset(e).height},hasFocus:function(e){var t=e.ownerDocument;return null==t.activeElement?!1:t.activeElement===e},offset:function(e){var t=e.ownerDocument,s=t&&t.documentElement,n={top:0,left:0};if(s)return v.contains(s,e)?(void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-s.clientTop,left:n.left+window.pageXOffset-s.clientLeft,width:n.width||e.offsetWidth,height:n.height||e.offsetHeight}):n},css:function(e,t,s){var o="",a=t;if("string"==typeof t){if(void 0===s)return e.style[n(t)]||r(e).getPropertyValue(t);(a={})[t]=s}h.each(a,function(t,s){t||0===t?o+=i(s)+":"+t+";":e.style.removeProperty(i(s))}),e.style.cssText+=";"+o},contains:function(){var e=document.documentElement;return e&&e.contains?function(e,t){return e.contains(t)}:e&&e.compareDocumentPosition?function(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}:function(e,t){if(t)do if(t===e)return!0;while(t=t.parentNode);return!1}}(),on:function(e,t,s){e.addEventListener?e.addEventListener(t,s,!1):e.attachEvent?e.attachEvent("on"+t,s):e["on"+t]=s},off:function(e,t,s){e.addEventListener?e.removeEventListener(t,s,!1):e.attachEvent?e.detachEvent("on"+t,s):e["on"+t]=null},trigger:function(e,t){var s=document.createEvent("Events");s.initEvent(t,!0,!0),e.dispatchEvent(s)},animate:function(e,t,s,n,r){function c(t){t.target===t.currentTarget&&(f=!0,v.off(t.target,d,c),v.css(e,y),r&&r.call(this))}var f,m=[],g={target:e,currentTarget:e},T={};"function"==typeof n&&(r=n,n=null),u&&(s=0),void 0===s&&(s=200),h.each(t,function(e,s){T[s]=t[s],m.push(i(s))}),s>0&&(T[p]=m.join(", "),T[a]=s/1e3+"s",T[l]="0s",T[o]=n||"linear",v.on(e,d,c),setTimeout(function(){f||c(g)},s+25)),e.clientLeft,v.css(e,T),0>=s&&setTimeout(h.partial(c,g),0)}}},function(e){"use strict";e.exports=function(e){return function(t){var s={};return s[e]=t,this.setState(s),this}}},function(e,t,s){"use strict";var n=s(48),i=s(42),r=s(10),o=e.exports=r.extend({},n,{culture:function(){return i.culture()},startOfWeek:function(){var e=i.culture();return e&&e.calendar?e.calendar.firstDay||0:0},parse:function(e,t,s){return i.parseDate(e,t,s)},format:function(e,t,s){return i.format(e,t,s)},shortDaysOfWeek:function(){var e=o.culture();return e&&e.calendar?e.calendar.days.namesShort.slice():void 0},daysOfWeek:function(e,t){return 1===arguments.length&&(t=e,e=new Date),t=t||"do",r.map(r.range(7),function(s){return o.format(n.weekday(e,s),t)})},months:function(e,t){return 1===arguments.length&&(t=e,e=new Date),t=t||o.formats.DAY_NAME_ABRV,r.map(r.range(12),function(s){return o.format(n.month(e,s),t)})},monthsInYear:function(e){var t=new Date(e,0,1);return r.map(r.range(12),function(e){return n.month(t,e)})},firstOfDecade:function(e){var t=n.year(e)%10;return n.subtract(e,t,"year")},lastOfDecade:function(e){return n.add(o.firstOfDecade(e),9,"year")},firstOfCentury:function(e){var t=n.year(e)%100;return n.subtract(e,t,"year")},lastOfCentury:function(e){return n.add(o.firstOfCentury(e),99,"year")},firstVisibleDay:function(e){var t=n.startOf(e,"month");return n.startOf(t,"week")},lastVisibleDay:function(e){var t=n.endOf(e,"month");return n.endOf(t,"week")},visibleDays:function(e){for(var t=o.firstVisibleDay(e),s=o.lastVisibleDay(e),i=[];n.lte(t,s,"day");)i.push(t),t=n.add(t,1,"day");return i},merge:function(e,t){return null==t&&null==e?null:(null==t&&(t=new Date),null==e&&(e=new Date),e=o.startOf(e,"day"),e=o.hours(e,o.hours(t)),e=o.minutes(e,o.minutes(t)),e=o.seconds(e,o.seconds(t)),o.milliseconds(e,o.milliseconds(t)))},sameMonth:function(e,t){return n.eq(e,t,"month")},today:function(){return this.startOf(new Date,"day")},yesterday:function(){return this.add(this.startOf(new Date,"day"),-1,"day")},tomorrow:function(){return this.add(this.startOf(new Date,"day"),1,"day")},formats:{DAY_OF_MONTH:"dd",DAY_NAME_SHORT:null,MONTH_NAME_ABRV:"MMM",MONTH_YEAR:"MMMM yyyy",YEAR:"yyyy"}})},function(e,t,s){function n(e){var t=i.Children.map(e,function(e){return e});for(var s in t)return s}var i=s(9),r=(s(24),s(10)),o=s(28).mergeIntoProps,a=s(30),p=i.createClass({displayName:"PopupContent",render:function(){return i.Children.only(this.props.children)}});e.exports=i.createClass({displayName:"exports",propTypes:{duration:i.PropTypes.number,onRequestClose:i.PropTypes.func.isRequired,onClosing:i.PropTypes.func,onOpening:i.PropTypes.func,onClose:i.PropTypes.func,onOpen:i.PropTypes.func},getDefaultProps:function(){return{height:"auto",duration:200,open:!1,onClosing:r.noop,onOpening:r.noop,onClose:r.noop,onOpen:r.noop}},componentDidMount:function(){this.close(0)},componentWillReceiveProps:function(e){this.setState({contentChanged:n(e.children)!==n(this.props.children)})},componentDidUpdate:function(e){var t=e.open&&!this.props.open,s=!e.open&&this.props.open;s?this.open():t&&this.close()},render:function(){var e=o({className:"rw-popup rw-widget"},this.props.children);return e.props.ref=this.props.children.props.ref,o(this.props,i.DOM.div({className:"rw-popup-container"},p({ref:"content"},e)))},dimensions:function(){var e=this.getDOMNode();e.style.display="block",e.style.height=a.height(this.refs.content.getDOMNode())+"px"},open:function(){var e=this,t=this.getDOMNode(),s=this.refs.content.getDOMNode();this.ORGINAL_POSITION=a.css(s,"position"),this._isOpening=!0,this.dimensions(),this.props.onOpening(),s.style.position="absolute",a.animate(s,{top:0},e.props.duration,function(){e._isOpening&&(s.style.position=e.ORGINAL_POSITION,t.style.overflow="visible",e.ORGINAL_POSITION=null,e.props.onOpen())})},close:function(e){{var t=this,s=this.refs.content.getDOMNode(),n=this.getDOMNode();n.style.height}this.ORGINAL_POSITION=a.css(s,"position"),this._isOpening=!1,this.dimensions(),this.props.onClosing(),n.style.overflow="hidden",s.style.position="absolute",a.animate(s,{top:"-100%"},void 0===e?this.props.duration:e,function(){t._isOpening||(s.style.position=t.ORGINAL_POSITION,n.style.display="none",t.ORGINAL_POSITION=null,t.props.onClose())})}})},function(e,t,s){"use strict";var n=s(9),i=s(10);e.exports={propTypes:{disabled:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.oneOf(["disabled"])]),readOnly:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.oneOf(["readOnly"])])},isDisabled:function(){return this.props.disabled===!0||"disabled"===this.props.disabled},isReadOnly:function(){return this.props.readOnly===!0||"readonly"===this.props.readOnly},notify:function(e,t){this.props[e]&&this.props[e].apply(null,[].concat(t))},_id:function(e){return this._id_||(this._id_=i.uniqueId("rw_")),(this.props.id||this._id_)+e -},_maybeHandle:function(e,t){return this.isDisabled()||!t&&this.isReadOnly()?i.noop:e}}},function(e,t,s){var n=s(9),i=s(26),r=s(37),o=(s(43),s(31),s(10));e.exports={propTypes:{data:n.PropTypes.array,value:n.PropTypes.any,delay:n.PropTypes.number,filter:n.PropTypes.string},search:function(e,t){var s=this,n=((this._searchTerm||"")+e).toLowerCase();clearTimeout(this._timer),this._searchTerm=n,this._timer=setTimeout(function(){s._searchTerm="",t(n)},this.props.delay)},findNextWordIndex:function(e,t){var s=i.startsWith,n=this;return o.findIndex(n._data(),function(i,o){return o!=t&&s(r._dataText.call(n,i).toLowerCase(),e.toLowerCase())})}}},function(e,t,s){{var n=s(9),i=s(26),r=s(37),o=s(31),a=s(43),p=(s(29).directions,s(10)),l=(a.provided(function(e){return!p.isEqual(e.value,this.props.value)}),a.provided(function(e){return e>=0})),u=p.without(p.keys(i),"filter");l(o("selectedIndex"))}e.exports={propTypes:{data:n.PropTypes.array,value:n.PropTypes.any,filter:n.PropTypes.oneOfType([n.PropTypes.func,n.PropTypes.oneOf(u.concat(!1))]),caseSensitive:n.PropTypes.bool,minLength:n.PropTypes.number},getDefaultProps:function(){return{caseSensitive:!1,minLength:1}},filterIndexOf:function(e,t){var s="function"==typeof this.props.filter?this.props.filter:i[this.props.filter||"eq"];return!t||!t.trim()||this.props.filter&&t.length<(this.props.minLength||1)?-1:(this.props.caseSensitive||(t=t.toLowerCase()),p.findIndex(e,function(e){var n=r._dataText.call(this,e);return this.props.caseSensitive||(n=n.toLowerCase()),s(n,t.toLowerCase())},this))},filter:function(e,t){var s="string"==typeof this.props.filter?i[this.props.filter]:this.props.filter;return!s||!t||!t.trim()||t.length<(this.props.minLength||1)?e:(this.props.caseSensitive||(t=t.toLowerCase()),p.filter(e,function(e){var n=r._dataText.call(this,e);return this.props.caseSensitive||(n=n.toLowerCase()),s(n,t.toLowerCase())},this))}}},function(e,t,s){var n=s(9),i=s(10);e.exports={propTypes:{valueField:n.PropTypes.string,textField:n.PropTypes.string},_dataValue:function(e){var t=this.props.valueField;return t&&e&&i.has(e,t)?e[t]:e},_dataText:function(e){var t=this.props.textField;return(t&&e&&i.has(e,t)?e[t]:e)+""},_dataIndexOf:function(e,t){return i.findIndex(e,i.partial(this._valueMatcher,t),this)},_valueMatcher:function(e,t){return i.isEqual(this._dataValue(e),this._dataValue(t))},_dataItem:function(e,t){var s,n=e[0],r=this.props.valueField;return i.has(t,r)||typeof n==typeof val?t:(s=this._dataIndexOf(e,this._dataValue(t)),-1!==s?e[s]:t)}}},function(e,t,s){var n=s(9);e.exports={propTypes:{isRtl:n.PropTypes.bool},contextTypes:{isRtl:n.PropTypes.bool},childContextTypes:{isRtl:n.PropTypes.bool},getChildContext:function(){return{isRtl:this.props.isRtl||this.context&&this.context.isRtl}},isRtl:function(){return!!(this.props.isRtl||this.context&&this.context.isRtl)}}},function(e,t,s){function n(e){return function(){return e.apply(this,arguments),this}}var i=s(9),r=(s(26),s(37),s(31)),o=s(43),a=(s(29).directions,s(10));e.exports=function(e){var t=e.charAt(0).toUpperCase()+e.substr(1),s=(o.provided(function(e){return!a.isEqual(e.value,this.props.value)}),o.provided(function(e){return e>=0})),p=s(r(e)),l={propTypes:{data:i.PropTypes.array,value:i.PropTypes.any}};return l["set"+t]=n(p),l["prev"+t]=function(){var t=(this._data(),this.state&&this.state[e]||0);return t-=1,0>t&&(t=0),t},l["next"+t]=function(){var t=this._data(),s=this.state&&this.state[e]||0;return s+=1,s>=t.length&&(s=t.length-1),s},l}},function(e,t,s){function n(e,t){var s;if(e===t)return!0;for(s in e)if(e.hasOwnProperty(s)&&(!t.hasOwnProperty(s)||e[s]!==t[s]))return!1;for(s in t)if(t.hasOwnProperty(s)&&!e.hasOwnProperty(s))return!1;return!0}s(9);e.exports={shouldComponentUpdate:function(e,t){return!n(this.props,e)||!n(this.state,t)}}},function(e,t,s){var n=s(9),i=(s(24),s(43),s(31)),r=s(42);e.exports=n.createClass({displayName:"NumberPickerInput",propTypes:{value:n.PropTypes.number,format:n.PropTypes.string,min:n.PropTypes.number,onChange:n.PropTypes.func.isRequired,onKeyDown:n.PropTypes.func},getDefaultProps:function(){return{value:null,format:"d",editing:!1}},getInitialState:function(){var e=this.props.editing?this.props.value:r.format(this.props.value,this.props.format);return{stringValue:e}},componentWillReceiveProps:function(e){var t=e.editing?e.value:r.format(e.value,e.format);isNaN(e.value)&&(t=""),this.current(t)},render:function(){var e=this.state.stringValue;return this.transferPropsTo(n.DOM.input({type:"text",className:"rw-input",onKeyDown:this.props.onKeyDown,onChange:this._change,onBlur:this._finish,"aria-disabled":this.props.disabled,"aria-readonly":this.props.readOnly,disabled:this.props.disabled,readOnly:this.props.readOnly,value:e}))},_change:function(e){var t=e.target.value,s=+e.target.value,n=0!==t&&!t,i=_.isFinite(this.props.min);return!i&&n?this.props.onChange(null):this.isValid(s)&&s!==this.props.value?this.props.onChange(s):void this.current(e.target.value)},_finish:function(){var e=+this.state.stringValue;!isNaN(e)&&e=this.props.min},current:i("stringValue")})},function(e){!function(){e.exports=this["window.Globalize"]}()},function(e,t,s){"use strict";function n(e,t){return function(){var s=e.apply(this,arguments),n=t.apply(this,arguments);if(null!=s||null!=n)return null==s?n:null==n?s:i.extend(s,n)}}var i=s(10),r=e.exports={chain:function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},merge:function(e,t){if(typeof e!=typeof t)throw new TypeError;return i.isArray(e)?e.splice(e.length,0,t):i.isFunction(e)?e=n(e,t):i.extend(e,t),e},before:i.curry(function(e,t){return function(){return e.apply(this,arguments),t.apply(this,arguments)}}),after:i.curry(function(e,t){return function(){var s=t.apply(this,arguments);return e.apply(this,arguments),s}}),around:i.curry(function(e,t){return function(){var s=[t].concat(i.toArray(arguments));return e.apply(this,s)}}),provided:function(e){return r.around(function(t){var s=i.rest(arguments);return e.apply(this,s)?t.apply(this,s):void 0})}}},function(e,t,s){var n=s(9);e.exports={contextTypes:{isRtl:n.PropTypes.bool},isRtl:function(){return!!this.context.isRtl}}},function(e){"use strict";e.exports=function(e,t){var s=0,n=e?e.length:0,i=[];for(t=Math.max(+t||1,1);n>s;)i.push(e.slice(s,s+=t));return i}},function(e,t,s){var n=s(9),i=s(32),r=s(29).directions;e.exports=function(e,t){return{propTypes:{value:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date)},getInitialState:function(){return{focusedDate:this.props.value}},componentWillReceiveProps:function(e){var s=this.state.focusedDate;//!dates.inRange(focused, nextProps.min, nextProps.max) +/*! v"1.4.1" | (c) 2014 Jason Quense | https://github.com/theporchrat/react-widgets/blob/master/License.txt */ +this.ReactWidgets=function(e){function t(n){if(s[n])return s[n].exports;var i=s[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var s={};return t.m=e,t.c=s,t.p="",t(0)}([function(e,t,s){e.exports={DropDownlist:s(1),Combobox:s(2),Calendar:s(3),DateTimePicker:s(4),NumberPicker:s(5),Select:s(6),utils:{ReplaceTransitionGroup:s(7),SlideTransition:s(8)}}},function(e,t,s){var n=s(9),i=s(10),r=s(25),o=s(26),a=s(27),p=s(28).mergeIntoProps,l=(s(29).directions,s(11),s(34)),u=s(12),d=s(30),h=(s(13),{value:n.PropTypes.any,onChange:n.PropTypes.func,open:n.PropTypes.bool,onToggle:n.PropTypes.func,data:n.PropTypes.array,valueField:n.PropTypes.string,textField:n.PropTypes.string,valueComponent:n.PropTypes.component,itemComponent:n.PropTypes.component,busy:n.PropTypes.bool,delay:n.PropTypes.number,duration:n.PropTypes.number,disabled:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.oneOf(["disabled"])]),readOnly:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.oneOf(["readOnly"])]),messages:n.PropTypes.shape({open:n.PropTypes.string})}),c=n.createClass({displayName:"DropdownList",mixins:[s(35),s(36),s(37),s(38),s(39),s(40)("focusedIndex"),s(40)("selectedIndex")],propTypes:h,getInitialState:function(){var e=this._dataIndexOf(this.props.data,this.props.value);return{selectedIndex:e,focusedIndex:-1===e?0:e}},getDefaultProps:function(){return{delay:500,value:"",open:!1,data:[],messages:{open:"open dropdown"}}},componentWillReceiveProps:function(e){if(!i.isEqual(e.value,this.props.value)){var t=this._dataIndexOf(e.data,e.value);this.setSelectedIndex(t),this.setFocusedIndex(-1===t?0:t)}},render:function(){var e=i.keys(h),t=this._dataItem(this._data(),this.props.value),s=this._id("_option");return p(i.omit(this.props,e),n.DOM.div({ref:"element",onKeyDown:this._maybeHandle(this._keyDown),onClick:this._maybeHandle(this.toggle),onFocus:this._maybeHandle(i.partial(this._focus,!0),!0),onBlur:i.partial(this._focus,!1),"aria-expanded":this.props.open,"aria-haspopup":!0,"aria-activedescendent":this.props.open?s:void 0,"aria-disabled":this.props.disabled,"aria-readonly":this.props.readOnly,tabIndex:this.props.disabled?"-1":"0",className:r({"rw-dropdown-list":!0,"rw-widget":!0,"rw-state-disabled":this.props.disabled,"rw-state-readonly":this.props.readOnly,"rw-state-focus":this.state.focused,"rw-open":this.props.open,"rw-rtl":this.isRtl()})},n.DOM.span({className:"rw-dropdownlist-picker rw-select rw-btn"},n.DOM.i({className:"rw-i rw-i-caret-down"+(this.props.busy?" rw-loading":"")},n.DOM.span({className:"rw-sr"},this.props.messages.open))),n.DOM.div({className:"rw-input"},this.props.valueComponent?this.props.valueComponent({item:t}):this._dataText(t)),l({open:this.props.open,onRequestClose:this.close,duration:this.props.duration},n.DOM.div(null,u({ref:"list",optID:s,"aria-hidden":!this.props.open,style:{maxHeight:200,height:"auto"},data:this.props.data,initialVisibleItems:this.props.initialBufferSize,itemHeight:18,selectedIndex:this.state.selectedIndex,focusedIndex:this.state.focusedIndex,textField:this.props.textField,valueField:this.props.valueField,listItem:this.props.itemComponent,onSelect:this._maybeHandle(this._onSelect)})))))},setWidth:function(){var e=d.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})},_focus:function(e){var t=this;clearTimeout(t.timer),t.timer=setTimeout(function(){e?t.getDOMNode().focus():t.close(),e!==t.state.focused&&t.setState({focused:e})},0)},_onSelect:function(e){this.close(),this.change(e)},_keyDown:function(e){function t(e){s.change(s._data()[e])}var s=this,n=e.key,i=e.altKey,r=this.props.open;"End"===n?(r?this.setFocusedIndex(this._data().length-1):t(this._data().length-1),e.preventDefault()):"Home"===n?(r?this.setFocusedIndex(0):t(0),e.preventDefault()):"Escape"===n&&r?this.close():"Enter"===n&&r?t(this.state.focusedIndex):"ArrowDown"===n?(i?this.open():r?this.setFocusedIndex(this.nextFocusedIndex()):t(this.nextSelectedIndex()),e.preventDefault()):"ArrowUp"===n?(i?this.close():r?this.setFocusedIndex(this.prevFocusedIndex()):t(this.prevSelectedIndex()),e.preventDefault()):this.search(String.fromCharCode(e.keyCode),this._locate)},change:function(e){var t=this.props.onChange;t&&!i.isEqual(e,this.props.value)&&(t(e),this.close())},_locate:function(e){var t=this.props.open?"focusedIndex":"selectedIndex",s=this.findNextWordIndex(e,this.state[t]),n=o(t).bind(this);-1!==s&&n(s)},_data:function(){return this.props.data},open:function(){this.notify("onToggle",!0)},close:function(){this.notify("onToggle",!1)},toggle:function(){this.props.open?this.close():this.open()}});e.exports=a.createControlledClass("DropDownList",c,{open:"onToggle",value:"onChange"})},function(e,t,s){function n(e,t){var s;if(e===t)return!0;for(s in e)if(e.hasOwnProperty(s)&&(!t.hasOwnProperty(s)||e[s]!==t[s]))return!1;for(s in t)if(t.hasOwnProperty(s)&&!e.hasOwnProperty(s))return!1;return!0}var i=s(9),r=s(25),o=s(10),a=(s(31),s(32)),p=s(27),l=s(28).mergeIntoProps,u=(s(29).directions,s(14)),d=s(34),h=s(12),c=s(30),f=s(13),y={value:i.PropTypes.any,onChange:i.PropTypes.func,open:i.PropTypes.bool,onToggle:i.PropTypes.func,itemComponent:i.PropTypes.func,data:i.PropTypes.array,valueField:i.PropTypes.string,textField:i.PropTypes.string,disabled:i.PropTypes.oneOfType([i.PropTypes.bool,i.PropTypes.oneOf(["disabled"])]),readOnly:i.PropTypes.oneOfType([i.PropTypes.bool,i.PropTypes.oneOf(["readOnly"])]),suggest:i.PropTypes.bool,busy:i.PropTypes.bool,duration:i.PropTypes.number,placeholder:i.PropTypes.string,messages:i.PropTypes.shape({open:i.PropTypes.string,emptyList:i.PropTypes.string,emptyFilter:i.PropTypes.string})},m=i.createClass({displayName:"ComboBox",mixins:[s(35),s(37),s(41),s(38),s(39),s(40)("focusedIndex"),s(40)("selectedIndex")],propTypes:y,getInitialState:function(){var e=this.process(this.props.data,this.props.value),t=this._dataIndexOf(e,this.props.value);return{selectedIndex:t,focusedIndex:-1===t?0:t,processedData:e,open:!1}},getDefaultProps:function(){return{data:[],value:"",open:!1,suggest:!1,filter:!1,delay:500,messages:{open:"open combobox",emptyList:"There are no items in this list",emptyFilter:"The filter returned no results"}}},shouldComponentUpdate:function(e,t){var s=this.refs.input&&this.refs.input.isSuggesting(),i=!n(t,this.state),r=!n(e,this.props);return s||i||r},componentWillReceiveProps:function(e){var t=this._dataIndexOf(e.data,e.value),s=-1==t?e.value:e.data[t],n=this.refs.input.isSuggesting(),i=this.process(e.data,e.value,(-1===t||n)&&this._dataText(s)),r=this._dataIndexOf(i,e.value),o=this.filterIndexOf(i,this._dataText(s));this._searchTerm="",this.setState({processedData:i,selectedIndex:r,focusedIndex:-1===r?-1!==o?o:0:r})},render:function(){var e=(this.props.valueComponent,this._dataItem(this._data(),this.props.value)),t=this._data(),s=this._id("_listbox"),n=this._id("_option"),a=this.props.suggest?this.props.filter?"both":"inline":this.props.filter?"list":"";return l(o.omit(this.props,o.keys(y)),i.DOM.div({ref:"element",onKeyDown:this._maybeHandle(this._keyDown),onFocus:this._maybeHandle(o.partial(this._focus,!0),!0),onBlur:this._focus.bind(null,!1),tabIndex:"-1",className:r({"rw-combobox":!0,"rw-widget":!0,"rw-state-focus":this.state.focused,"rw-open":this.props.open,"rw-state-disabled":this.props.disabled,"rw-state-readonly":this.props.readOnly,"rw-rtl":this.isRtl()})},f({tabIndex:"-1",className:"rw-select",onClick:this._maybeHandle(this.toggle),disabled:!(!this.props.disabled&&!this.props.readOnly)},i.DOM.i({className:"rw-i rw-i-caret-down"+(this.props.busy?" rw-loading":"")},i.DOM.span({className:"rw-sr"},this.props.messages.open))),u({ref:"input",type:"text",role:"combobox",suggest:this.props.suggest,"aria-owns":s,"aria-busy":!!this.props.busy,"aria-autocomplete":a,"aria-activedescendent":this.props.open?n:void 0,"aria-expanded":this.props.open,"aria-haspopup":!0,placeholder:this.props.placeholder,disabled:this.props.disabled,readOnly:this.props.readOnly,className:"rw-input",value:this._dataText(e),onChange:this._inputTyping,onKeyDown:this._inputKeyDown}),d({open:this.props.open,onRequestClose:this.close,duration:this.props.duration},i.DOM.div(null,h({ref:"list",id:s,optID:n,"aria-hidden":!this.props.open,"aria-live":a&&"polite",style:{maxHeight:200,height:"auto"},data:t,selectedIndex:this.state.selectedIndex,focusedIndex:this.state.focusedIndex,textField:this.props.textField,valueField:this.props.valueField,onSelect:this._maybeHandle(this._onSelect),listItem:this.props.itemComponent,messages:{emptyList:this.props.data.length?this.props.messages.emptyFilter:this.props.messages.emptyList}})))))},setWidth:function(){var e=c.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})},_onSelect:function(e){this.close(),this.change(e),this._focus(!0)},_inputKeyDown:function(e){this._deleting="Backspace"===e.key||"Delete"===e.key,this._isTyping=!0},_inputTyping:function(e){var t,s,n=this,i=!!this.props.suggest,r=e.target.value;t=this._deleting||!i?r:this.suggest(this._data(),r),t=t||r,s=o.find(n.props.data,function(e){return n._dataText(e).toLowerCase()===t.toLowerCase()}),this.change(!this._deleting&&s?s:r,!0),this.open()},_focus:function(e){var t=this;clearTimeout(t.timer),!e&&t.refs.input.accept(),t.timer=setTimeout(function(){e?t.refs.input.focus():t.close(),e!==t.state.focused&&t.setState({focused:e})},0)},_keyDown:function(e){function t(e){return-1===e||0===s._data().length?s.change(s.refs.input.getDOMNode().value,!1):(s.refs.input.accept(!0),void s.change(s._data()[e],!1))}var s=this,n=e.key,i=e.altKey,r=(String.fromCharCode(e.keyCode),this.state.selectedIndex,this.state.focusedIndex),o=this.props.open;"End"===n?t(this._data().length-1):"Home"===n?t(0):"Escape"===n&&o?this.close():"Enter"===n&&o?(t(r),this.close()):"ArrowDown"===n?i?this.open():o?this.setFocusedIndex(this.nextFocusedIndex()):t(this.nextSelectedIndex()):"ArrowUp"===n&&(i?this.close():o?this.setFocusedIndex(this.prevFocusedIndex()):t(this.prevSelectedIndex()))},change:function(e,t){this._typedChange=!!t,this.notify("onChange",e)},open:function(){this.props.open||this.notify("onToggle",!0)},close:function(){this.props.open&&this.notify("onToggle",!1)},toggle:function(){this._focus(!0),this.props.open?this.close():this.open()},suggest:function(e,t){function s(e){return i(this._dataText(e).toLowerCase(),n.toLowerCase())}var n=this._dataText(t),i=a.startsWith,r="string"==typeof t?o.find(e,s,this):t;return!r||this.state&&this.state.deleting?"":this._dataText(r)},_data:function(){return this.state.processedData},process:function(e,t,s){return this.props.filter&&s&&(e=this.filter(e,s)),e}});e.exports=p.createControlledClass("ComboBox",m,{open:"onToggle",value:"onChange"})},function(e,t,s){var n=s(9),i=s(15),r=s(16),o=s(17),a=s(18),p=s(19),l=s(25),u=s(26),d=s(27),h=s(8),c=s(33),f=s(28).mergeIntoProps,y=s(29),m=s(10),v=y.directions,g=y.calendarViews,T=m.values(g),w=m.invert(y.calendarViewHierarchy),D=y.calendarViewHierarchy,O=y.calendarViewUnits,b=m.object([[g.MONTH,r],[g.YEAR,o],[g.DECADE,a],[g.CENTURY,p]]),x=m.object([[g.YEAR,1],[g.DECADE,10],[g.CENTURY,100]]),P=n.createClass({displayName:"Calendar",mixins:[s(35),s(36),s(39)],propTypes:{onChange:n.PropTypes.func.isRequired,value:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date),initialView:n.PropTypes.oneOf(T),finalView:n.PropTypes.oneOf(T),disabled:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.oneOf(["disabled"])]),readOnly:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.oneOf(["readOnly"])]),messages:n.PropTypes.shape({moveBack:n.PropTypes.string,moveForward:n.PropTypes.string}),maintainFocus:n.PropTypes.bool},getInitialState:function(){return{selectedIndex:0,view:this.props.initialView||"month",currentDate:this.inRangeValue(new Date(this.props.value))}},getDefaultProps:function(){return{open:!1,value:new Date,min:new Date(1900,0,1),max:new Date(2099,11,31),initialView:"month",finalView:"century",maintainFocus:!0}},componentWillReceiveProps:function(e){var t=T.indexOf(e.initialView),s=T.indexOf(e.finalView),n=T.indexOf(this.state.view),i=this.state.view,r=this.inRangeValue(new Date(e.value));t>n?this.setState({view:i=e.initialView}):n>s&&this.setState({view:i=e.finalView}),c.eq(r,this.props.value,O[i])||this.setState({currentDate:r})},render:function(){function e(){this._focus(!0,"stop")}var t=b[this.state.view],s=this.props.disabled||this.props.readOnly,r=this.state.currentDate,o=this._id("_view_label"),a=this.state.view+"_"+c[this.state.view](r),p=this._id("_view");return f(m.omit(this.props,"value","min","max"),n.DOM.div({className:l({"rw-calendar":!0,"rw-widget":!0,"rw-state-disabled":this.props.disabled,"rw-state-readonly":this.props.readOnly,"rw-rtl":this.isRtl()})},i({label:this._label(),labelId:o,messages:this.props.messages,upDisabled:s||this.state.view===this.props.finalView,prevDisabled:s||!c.inRange(this.nextDate(v.LEFT),this.props.min,this.props.max),nextDisabled:s||!c.inRange(this.nextDate(v.RIGHT),this.props.min,this.props.max),onViewChange:this._maybeHandle(m.partial(this.navigate,v.UP,null)),onMoveLeft:this._maybeHandle(m.partial(this.navigate,v.LEFT,null)),onMoveRight:this._maybeHandle(m.partial(this.navigate,v.RIGHT,null))}),h({ref:"animation",direction:this.state.slideDirection,onAnimate:e.bind(this)},t({ref:"currentView",key:a,id:p,"aria-labeledby":o,selectedDate:this.props.value,value:this.state.currentDate,onChange:this._maybeHandle(this.change),onKeyDown:this._maybeHandle(this._keyDown),onFocus:this._maybeHandle(m.partial(this._focus,!0),!0),onMoveLeft:this._maybeHandle(m.partial(this.navigate,v.LEFT)),onMoveRight:this._maybeHandle(m.partial(this.navigate,v.RIGHT)),disabled:this.props.disabled,readOnly:this.props.readOnly,min:this.props.min,max:this.props.max}))))},navigate:function(e,t){var s=this.state.view,n=e===v.LEFT||e===v.UP?"right":"left";t||(t=m.contains([v.LEFT,v.RIGHT],e)?this.nextDate(e):this.state.currentDate),e===v.DOWN&&(s=w[s]||s),e===v.UP&&(s=D[s]||s),this.isValidView(s)&&c.inRange(t,this.props.min,this.props.max,s)&&(this._focus(!0,"nav"),this.setState({currentDate:t,slideDirection:n,view:s}))},_focus:function(e){u("focused");this.props.maintainFocus&&e&&this.refs.currentView.getDOMNode().focus()},change:function(e){return this.props.onChange&&this.state.view===this.props.initialView?this.notify("onChange",e):void this.navigate(v.DOWN,e)},nextDate:function(e){var t=e===v.LEFT?"subtract":"add",s=this.state.view,n=s===g.MONTH?s:g.YEAR,i=x[s]||1;return c[t](this.state.currentDate,1*i,n)},_keyDown:function(e){var t=e.ctrlKey,s=e.key;t?("ArrowDown"===s&&(e.preventDefault(),this.navigate(v.DOWN)),"ArrowUp"===s&&(e.preventDefault(),this.navigate(v.UP)),"ArrowLeft"===s&&(e.preventDefault(),this.navigate(v.LEFT)),"ArrowRight"===s&&(e.preventDefault(),this.navigate(v.RIGHT))):this.refs.currentView._keyDown&&this.refs.currentView._keyDown(e)},_label:function(){var e=this.state.view,t=this.state.currentDate;return"month"===e?c.format(t,c.formats.MONTH_YEAR):"year"===e?c.format(t,c.formats.YEAR):"decade"===e?c.format(c.firstOfDecade(t),c.formats.YEAR)+" - "+c.format(c.lastOfDecade(t),c.formats.YEAR):"century"===e?c.format(c.firstOfCentury(t),c.formats.YEAR)+" - "+c.format(c.lastOfCentury(t),c.formats.YEAR):void 0},inRangeValue:function(e){return null==e?e:c.max(c.min(e,this.props.max),this.props.min)},isValidView:function(e){var t=T.indexOf(this.props.initialView),s=T.indexOf(this.props.finalView),n=T.indexOf(e);return n>=t&&s>=n}});e.exports=d.createControlledClass("Calendar",P,{value:"onChange"})},function(e,t,s){function n(e,t){var s="";return e instanceof Date&&!isNaN(e.getTime())&&(s=p.format(e,t)),s}function i(e,t){var s;e=[].concat(e);for(var n=0;ns?s:i>e+t?i-t:e)}})},function(e,t,s){var n=s(9);e.exports=n.createClass({displayName:"exports",render:function(){return this.transferPropsTo(n.DOM.button({type:"button",className:"rw-btn"},this.props.children))}})},function(e,t,s){var n=s(9),i=(s(25),s(43),s(31));e.exports=n.createClass({displayName:"exports",propTypes:{value:n.PropTypes.string,onChange:n.PropTypes.func.isRequired},componentDidUpdate:function(){var e=this.getDOMNode(),t=this.props.value;if(this.isSuggesting()){var s=t.toLowerCase().indexOf(this._last.toLowerCase())+this._last.length,n=t.length-s;s>=0&&i(e,s,s+n)}},getDefaultProps:function(){return{value:""}},render:function(){return this.transferPropsTo(n.DOM.input({type:"text",className:"rw-input",onKeyDown:this.props.onKeyDown,onChange:this._change,value:null==this.props.value?"":this.props.value}))},isSuggesting:function(){var e=this.props.value,t=null!=this._last&&-1!==e.toLowerCase().indexOf(this._last.toLowerCase());return this.props.suggest&&t},accept:function(e){var t=this.getDOMNode().value||"",s=t.length;this._last=null,e&&i(this.getDOMNode(),s,s)},_change:function(e){var t=e.target.value;this._last=t,this.props.onChange(e,t)},focus:function(){this.getDOMNode().focus()}})},function(e,t,s){var n=s(9),i=(s(25),s(13));e.exports=n.createClass({displayName:"exports",propTypes:{label:n.PropTypes.string.isRequired,labelId:n.PropTypes.string,upDisabled:n.PropTypes.bool.isRequired,prevDisabled:n.PropTypes.bool.isRequired,nextDisabled:n.PropTypes.bool.isRequired,onViewChange:n.PropTypes.func.isRequired,onMoveLeft:n.PropTypes.func.isRequired,onMoveRight:n.PropTypes.func.isRequired,messages:n.PropTypes.shape({moveBack:n.PropTypes.string,moveForward:n.PropTypes.string})},mixins:[s(36),s(44)],getDefaultProps:function(){return{messages:{moveBack:"navigate back",moveForward:"navigate forward"}}},render:function(){var e=this.isRtl();return n.DOM.div({className:"rw-header"},i({className:"rw-btn-left",onClick:this.props.onMoveLeft,disabled:this.props.prevDisabled,"aria-disabled":this.props.prevDisabled,title:this.props.moveBack},n.DOM.i({className:"rw-i rw-i-caret-"+(e?"right":"left")},n.DOM.span({className:"rw-sr"},this.props.moveBack))),i({className:"rw-btn-view",id:this.props.labelId,onClick:this.props.onViewChange,disabled:this.props.upDisabled,"aria-disabled":this.props.upDisabled},this.props.label),i({className:"rw-btn-right",onClick:this.props.onMoveRight,disabled:this.props.nextDisabled,"aria-disabled":this.props.nextDisabled,title:this.props.moveForward},n.DOM.i({className:"rw-i rw-i-caret-"+(e?"left":"right")},n.DOM.span({className:"rw-sr"},this.props.moveForward))))}})},function(e,t,s){var n=s(9),i=s(25),r=s(33),o=s(45),a=s(29).directions,p=s(28).mergeIntoProps,l=s(10),u=s(13),d={LEFT:a.RIGHT,RIGHT:a.LEFT};e.exports=n.createClass({displayName:"MonthView",mixins:[s(35),s(44),s(46)("month","day")],propTypes:{culture:n.PropTypes.array,value:n.PropTypes.instanceOf(Date),selectedDate:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date),format:n.PropTypes.string,onChange:n.PropTypes.func.isRequired,onMoveLeft:n.PropTypes.func,onMoveRight:n.PropTypes.func},render:function(){var e=r.visibleDays(this.props.value),t=o(e,7);return p(l.omit(this.props,"max","min","value","onChange"),n.DOM.table({role:"grid",tabIndex:this.props.disabled?"-1":"0",className:"rw-calendar-grid","aria-activedescendant":this._id("_selected_item"),onKeyUp:this._keyUp},n.DOM.thead(null,n.DOM.tr(null,this._headers())),n.DOM.tbody(null,l.map(t,this._row))))},_row:function(e,t){return n.DOM.tr({key:"week_"+t},l.map(e,function(e,t){var s=r.eq(e,this.state.focusedDate,"day"),o=r.eq(e,this.props.selectedDate,"day"),a=this._id("_selected_item");return r.inRange(e,this.props.min,this.props.max)?n.DOM.td({key:"day_"+t},u({tabIndex:"-1",onClick:l.partial(this.props.onChange,e),"aria-selected":o,"aria-disabled":this.props.disabled,disabled:this.props.disabled,className:i({"rw-off-range":r.month(e)!==r.month(this.state.focusedDate),"rw-state-focus":s,"rw-state-selected":o}),id:s?a:void 0},r.format(e,"dd"))):n.DOM.td({key:"day_"+t,className:"rw-empty-cell"}," ")}.bind(this)))},_headers:function(e){var t=r.shortDaysOfWeek(e);return l.map(t,function(e,t){return n.DOM.th({key:"header_"+t},e)})},move:function(e,t){return this.isRtl()&&d[t]&&(t=d[t]),t===a.LEFT?e=r.subtract(e,1,"day"):t===a.RIGHT?e=r.add(e,1,"day"):t===a.UP?e=r.subtract(e,1,"week"):t===a.DOWN&&(e=r.add(e,1,"week")),e}})},function(e,t,s){var n=s(9),i=s(25),r=s(33),o=s(45),a=s(29).directions,p=s(28).mergeIntoProps,l=s(10),u={LEFT:a.RIGHT,RIGHT:a.LEFT};e.exports=n.createClass({displayName:"YearView",mixins:[s(35),s(44),s(46)("year","month")],propTypes:{value:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date),onChange:n.PropTypes.func.isRequired},render:function(){var e=r.monthsInYear(r.year(this.props.value)),t=o(e,4);return p(l.omit(this.props,"max","min","value","onChange"),n.DOM.table({tabIndex:this.props.disabled?"-1":"0",ref:"table",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-activedescendant":this._id("_selected_item"),onKeyUp:this._keyUp},n.DOM.tbody(null,l.map(t,this._row))))},_row:function(e,t){return n.DOM.tr({key:t},l.map(e,function(e,t){var s=r.eq(e,this.state.focusedDate,"month"),o=r.eq(e,this.props.value,"month"),a=this._id("_selected_item");return r.inRange(e,this.props.min,this.props.max,"month")?n.DOM.td({key:t},d({onClick:l.partial(this.props.onChange,e),tabIndex:"-1",id:s?a:void 0,"aria-selected":o,"aria-disabled":this.props.disabled,disabled:this.props.disabled,className:i({"rw-state-focus":s,"rw-state-selected":o})},r.format(e,r.formats.MONTH_NAME_ABRV))):n.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},focus:function(){this.refs.table.getDOMNode().focus()},move:function(e,t){return this.isRtl()&&u[t]&&(t=u[t]),t===a.LEFT?e=r.subtract(e,1,"month"):t===a.RIGHT?e=r.add(e,1,"month"):t===a.UP?e=r.subtract(e,4,"month"):t===a.DOWN&&(e=r.add(e,4,"month")),e}});var d=s(13)},function(e,t,s){function n(e,t){return a.gte(e,a.startOf(t,"decade"),"year")&&a.lte(e,a.endOf(t,"decade"),"year")}function i(e){var e=a.add(a.startOf(e,"decade"),-2,"year");return d.map(d.range(12),function(){return e=a.add(e,1,"year")})}var r=s(9),o=s(25),a=s(33),p=s(45),l=s(29).directions,u=s(28).mergeIntoProps,d=s(10),h={LEFT:l.RIGHT,RIGHT:l.LEFT};e.exports=r.createClass({displayName:"DecadeView",mixins:[s(35),s(36),s(44),s(46)("decade","year")],propTypes:{value:r.PropTypes.instanceOf(Date),min:r.PropTypes.instanceOf(Date),max:r.PropTypes.instanceOf(Date),onChange:r.PropTypes.func.isRequired},render:function(){var e=i(this.props.value),t=p(e,4);return u(d.omit(this.props,"max","min","value","onChange"),r.DOM.table({tabIndex:this.props.disabled?"-1":"0",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-activedescendant":this._id("_selected_item"),onKeyUp:this._keyUp},r.DOM.tbody(null,d.map(t,this._row))))},_row:function(e,t){this._id("_selected_item");return r.DOM.tr({key:"row_"+t},d.map(e,function(e,t){var s=a.eq(e,this.state.focusedDate,"year"),i=a.eq(e,this.props.value,"year"),p=this.props.id&&this.props.id+"_selected_item";return a.inRange(e,this.props.min,this.props.max,"year")?r.DOM.td({key:t},c({onClick:d.partial(this.props.onChange,e),tabIndex:"-1",id:s?p:void 0,"aria-selected":i,"aria-disabled":this.props.disabled,disabled:this.props.disabled,className:o({"rw-off-range":!n(e,this.props.value),"rw-state-focus":s,"rw-state-selected":i})},a.format(e,a.formats.YEAR))):r.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},move:function(e,t){return this.isRtl()&&h[t]&&(t=h[t]),t===l.LEFT?e=a.subtract(e,1,"year"):t===l.RIGHT?e=a.add(e,1,"year"):t===l.UP?e=a.subtract(e,4,"year"):t===l.DOWN&&(e=a.add(e,4,"year")),e}});var c=s(13)},function(e,t,s){function n(e){return u.format(u.startOf(e,"decade"),u.formats.YEAR)+" - "+u.format(u.endOf(e,"decade"),u.formats.YEAR)}function i(e,t,s){return u.max(u.min(e,s),t)}function r(e,t,s){return u.gte(e,u.startOf(t,"decade"),"year")&&u.lte(e,u.endOf(s,"decade"),"year")}function o(e,t){return u.gte(e,u.startOf(t,"century"),"year")&&u.lte(e,u.endOf(t,"century"),"year")}function a(e){var e=u.add(u.startOf(e,"century"),-20,"year");return f.map(f.range(12),function(){return e=u.add(e,10,"year")})}var p=s(9),l=s(25),u=s(33),d=s(45),h=s(29).directions,c=s(28).mergeIntoProps,f=s(10),y={LEFT:h.RIGHT,RIGHT:h.LEFT};e.exports=p.createClass({displayName:"CenturyView",mixins:[s(35),s(36),s(44),s(46)("century","decade")],propTypes:{value:p.PropTypes.instanceOf(Date),min:p.PropTypes.instanceOf(Date),max:p.PropTypes.instanceOf(Date),onChange:p.PropTypes.func.isRequired},render:function(){var e=a(this.props.value),t=d(e,4);return c(f.omit(this.props,"max","min","value","onChange"),p.DOM.table({tabIndex:this.props.disabled?"-1":"0",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-activedescendant":this._id("_selected_item"),onKeyUp:this._keyUp},p.DOM.tbody(null,f.map(t,this._row))))},_row:function(e,t){return p.DOM.tr({key:"row_"+t},f.map(e,function(e,t){var s=u.eq(e,this.state.focusedDate,"decade"),a=u.eq(e,this.props.value,"decade"),d=this._id("_selected_item"),h=i(e,this.props.min,this.props.max);return r(e,this.props.min,this.props.max)?p.DOM.td({key:t},m({onClick:f.partial(this.props.onChange,h),tabIndex:"-1",id:s?d:void 0,"aria-selected":a,"aria-disabled":this.props.disabled,disabled:this.props.disabled,className:l({"rw-off-range":!o(e,this.props.value),"rw-state-focus":s,"rw-state-selected":a})},n(e))):p.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},move:function(e,t){return this.isRtl()&&y[t]&&(t=y[t]),t===h.LEFT?e=u.subtract(e,1,"decade"):t===h.RIGHT?e=u.add(e,1,"decade"):t===h.UP?e=u.subtract(e,4,"decade"):t===h.DOWN&&(e=u.add(e,4,"decade")),e}});var m=s(13)},function(e,t,s){var n=s(9),i=(s(25),s(33)),r=s(12),o=s(28).mergeIntoProps,a=(s(29).directions,s(10));e.exports=n.createClass({displayName:"TimeList",mixins:[s(37),s(40)("selectedIndex"),s(40)("focusedIndex")],propTypes:{value:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date),step:n.PropTypes.number,itemComponent:n.PropTypes.func,onSelect:n.PropTypes.func,preserveDate:n.PropTypes.bool},getDefaultProps:function(){return{step:30,format:"t",onSelect:a.noop,preserveDate:!0}},getInitialState:function(){var e=this._selectedIndex(this._data(),this.props.value);return{focusedIndex:-1===e?0:e}},render:function(){var e=this._data(),t=this._selectedIndex(e,this.props.value);return o(a.omit(this.props,"value"),r({ref:"list",data:e,textField:"label",valueField:"date",selectedIndex:t,focusedIndex:this.state.focusedIndex,listItem:this.props.itemComponent,onSelect:this.props.onSelect}))},_selectedIndex:function(e,t){var s=6e4*this.props.step;return t?(t=new Date(Math.floor(t.getTime()/s)*s),a.findIndex(e,{label:i.format(t,this.props.format)})):0},_data:function(){for(var e=[],t=0,s=this._dateValues(),n=s.min,r=i.date(n);100>t&&i.date(n)===r&&i.lte(n,s.max);)t++,e.push({date:n,label:i.format(n,this.props.format)}),n=i.add(n,this.props.step||30,"minutes");return e},_dateValues:function(){var e,t,s=this.props.value||i.today(),n=this.props.preserveDate,r=this.props.min,o=this.props.max;return n?{min:i.eq(s,r,"day")?r:i.today(),max:i.eq(s,o,"day")?r:i.tomorrow()}:(e=i.startOf(i.merge(new Date,r),"minutes"),t=i.startOf(i.merge(new Date,o),"minutes"),i.lte(t,e)&&i.gt(o,r,"day")&&(t=i.tomorrow()),{min:e,max:t})},_keyDown:function(e){var t=this,s=e.key,n=String.fromCharCode(e.keyCode);"End"===s?this.setFocusedIndex(this._data().length-1):"Home"===s?this.setFocusedIndex(0):"Enter"===s?this.props.onSelect(this._data()[this.state.focusedIndex]):"ArrowDown"===s?(e.preventDefault(),this.setFocusedIndex(this.nextFocusedIndex())):"ArrowUp"===s?(e.preventDefault(),this.setFocusedIndex(this.prevFocusedIndex())):(e.preventDefault(),this.search(n,function(e){t.setFocusedIndex(this.findNextWordIndex(e,t.state.focusedIndex))}))}});s(13)},function(e,t,s){function n(e){return!isNaN(e.getTime())}function i(e,t){var s="";return e instanceof Date&&n(e)&&(s=p.format(e,t)),s}var r=s(9),o=s(25),a=s(43),p=s(33);e.exports=r.createClass({displayName:"DatePickerInput",propTypes:{format:r.PropTypes.string,parse:r.PropTypes.func.isRequired,value:r.PropTypes.instanceOf(Date),onChange:r.PropTypes.func.isRequired},getDefaultProps:function(){return{textValue:""}},componentWillReceiveProps:function(e){this.setState({textValue:i(e.value,e.editing&&e.editFormat?e.editFormat:e.format)})},getInitialState:function(){var e=i(this.props.value,this.props.editing&&this.props.editFormat?this.props.editFormat:this.props.format);return{textValue:e,lastValue:e}},render:function(){var e=this.state.textValue;return this.transferPropsTo(r.DOM.input({type:"text",className:o({"rw-input":!0}),value:e,"aria-disabled":this.props.disabled,"aria-readonly":this.props.readOnly,disabled:this.props.disabled,readOnly:this.props.readOnly,onChange:this._change,onBlur:a.chain(this.props.blur,this._blur)}))},_change:function(e){this.setState({textValue:e.target.value})},_blur:function(){var e=this.state.textValue;e!==this.state.lastValue&&(this.props.onChange(this.props.parse(e),e),this.setState({lastValue:e}))},focus:function(){this.getDOMNode().focus()}})},function(e,t,s){var n=s(9),i=(s(25),s(43),s(26)),r=s(42);e.exports=n.createClass({displayName:"NumberPickerInput",propTypes:{value:n.PropTypes.number,format:n.PropTypes.string,min:n.PropTypes.number,onChange:n.PropTypes.func.isRequired,onKeyDown:n.PropTypes.func},getDefaultProps:function(){return{value:null,format:"d",editing:!1}},getInitialState:function(){var e=this.props.editing?this.props.value:r.format(this.props.value,this.props.format);return{stringValue:e}},componentWillReceiveProps:function(e){var t=e.editing?e.value:r.format(e.value,e.format);isNaN(e.value)&&(t=""),this.current(t)},render:function(){var e=this.state.stringValue;return this.transferPropsTo(n.DOM.input({type:"text",className:"rw-input",onKeyDown:this.props.onKeyDown,onChange:this._change,onBlur:this._finish,"aria-disabled":this.props.disabled,"aria-readonly":this.props.readOnly,disabled:this.props.disabled,readOnly:this.props.readOnly,value:e}))},_change:function(e){var t=e.target.value,s=+e.target.value,n=0!==t&&!t,i=_.isFinite(this.props.min);return!i&&n?this.props.onChange(null):this.isValid(s)&&s!==this.props.value?this.props.onChange(s):void this.current(e.target.value)},_finish:function(){var e=+this.state.stringValue;!isNaN(e)&&e=this.props.min},current:i("stringValue")})},function(e,t,s){var n=s(9);e.exports=n.createClass({displayName:"SelectSearchInput",propTypes:{value:n.PropTypes.string,onChange:n.PropTypes.func.isRequired,disabled:n.PropTypes.bool,readOnly:n.PropTypes.bool},componentDidUpdate:function(){this.props.focused&&this.focus()},render:function(){var e=this.props.value,t=this.props.placeholder,s=Math.max((e||t).length,1);return this.transferPropsTo(n.DOM.input({type:"text",className:"rw-input","aria-disabled":this.props.disabled,"aria-readonly":this.props.readOnly,disabled:this.props.disabled,readOnly:this.props.readOnly,size:s}))},focus:function(){this.getDOMNode().focus()}})},function(e,t,s){var n=s(9),i=s(10),r=s(25),o=s(28).mergeIntoProps,a=s(13);e.exports=n.createClass({displayName:"SelectTagList",mixins:[s(38),s(36)],propTypes:{value:n.PropTypes.array,valueField:n.PropTypes.string,textField:n.PropTypes.string,valueComponent:n.PropTypes.component,disabled:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.array,n.PropTypes.oneOf(["disabled"])]),readOnly:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.array,n.PropTypes.oneOf(["readonly"])])},getInitialState:function(){return{focused:null}},render:function(){{var e=this.state.focused,t=this.props.value;i.isArray(this.props.disabled),i.isArray(this.props.readOnly)}return o(i.omit(this.props,"value","disabled","readOnly"),n.DOM.ul({className:"rw-tag-list"},i.map(t,function(t,s){var i=this.isDisabled(t),o=this.isReadOnly(t);return n.DOM.li({key:s,className:r({"rw-state-focus":!i&&e===s,"rw-state-disabled":i,"rw-state-readonly":o})},this.props.valueComponent?this.props.valueComponent({item:t}):this._dataText(t),a({tabIndex:"-1",onClick:!(i||o)&&this._delete.bind(null,t),"aria-disabled":i,disabled:i},"×",n.DOM.span({className:"rw-sr"},"Remove "+this._dataText(t))))},this)))},_delete:function(e){this.props.onDelete(e)},removeCurrent:function(){var e=this.props.value[this.state.focused];!e||this.isDisabled(e)||this.isReadOnly(e)||this.props.onDelete(e)},isDisabled:function(e,t){return t&&(e=this.props.value[e]),this.props.disabled===!0||-1!==this._dataIndexOf(this.props.disabled||[],e)},isReadOnly:function(e,t){return t&&(e=this.props.value[e]),this.props.readOnly===!0||-1!==this._dataIndexOf(this.props.readOnly||[],e)},removeNext:function(){var e=i.last(this.props.value);!e||this.isDisabled(e)||this.isReadOnly(e)||this.props.onDelete(e)},clear:function(){this.setState({focused:null})},first:function(){for(var e=0,t=this.props.value.length;t>e&&this.isDisabled(e,!0);)e++;e!==t&&this.setState({focused:e})},last:function(){for(var e=this.props.value.length-1;e>-1&&this.isDisabled(e,!0);)e--;e>=0&&this.setState({focused:e})},next:function(){for(var e=this.state.focused+1,t=this.props.value.length;t>e&&this.isDisabled(e,!0);)e++;return null!==this.state.focused?e>=t?this.clear():void this.setState({focused:e}):void 0},prev:function(){var e=this.state.focused;for(null===e&&(e=this.props.value.length),e--;e>-1&&this.isDisabled(e,!0);)e--;e>=0&&this.setState({focused:e})}})},function(e,t,s){"use strict";var n=s(10);e.exports=function(e){return n.isArray(e)||(e=n.transform(e,function(e,t,s){t&&e.push(s)},[])),e.join(" ")}},function(e){"use strict";e.exports=function(e){return function(t){var s={};return s[e]=t,this.setState(s),this}}},function(e,t,s){"use strict";function n(e,t){return a.propType(function(s,n,r,o){return void 0!==s[n]?s[e]?t&&t(s,n,r,o):new Error("ReactWidgets: you have provided a `"+n+"` prop to `"+r+"` without an `"+e+"` handler. This will render a read-only field. If the field should be mutable use `"+i(n)+"`. Otherwise, set `"+e+"`"):void 0})}function i(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}var r=s(10),o=s(9),a=s(47);e.exports={createControlledClass:function(e,t,s){function a(e,t,n){var i=s[t],o=i&&p(e.props,t),a={};return e._notifying||(e._notifying=[]),e.props[i]&&(e._notifying.push(!0),e.props[i].apply(e,r.rest(arguments,2)),e._notifying.pop()),a[t]=n,e.setState(a),!o}function p(e,t){return void 0!==e[t]}var l=r.invert(s),u=r.transform(s,function(e,s,r){var o=t.type.propTypes[r];e[r]=n(s,o),e[i(r)]=o},{});return o.createClass({displayName:e,propTypes:u,getInitialState:function(){var e=this.props,t=r.keys(s);return r.transform(t,function(t,s){t[s]=e[i(s)]},{})},shouldComponentUpdate:function(){return!this._notifying||!this._notifying.length},render:function(){var e,n,i=this;return e=r.mapValues(s,function(e,t){return p(i.props,t)?i.props[t]:i.state[t]}),n=r.mapValues(l,function(e){return r.partial(a,i,e)}),t(r.extend({},this.props,e,n),this.props.children)}})}}},function(e,t,s){"use strict";function n(e,t){return a.transform(t,function(e,t,s){a.has(l,s)?l[s](e,t,s):a.has(e,s)||(e[s]=t)},e)}function i(e){return function(t,s,n){t[n]=a.has(t,n)?e(t[n],s):s}}function r(){return a.reduce(arguments,function(e,t){return e?t?e+=" "+t:e:t||""},"")}function o(e,t){return a.extend({},e,t)}var a=s(10),p=s(9),l={className:i(r),children:a.noop,key:a.noop,ref:a.noop,style:i(o)};e.exports={mergeIntoProps:function(e,t){var s=t.props?t.props:t;return n(s,e),t},cloneWithProps:function(e,t){var s=n(a.clone(t),e.props),i=a.map(p.version.split("."),parseFloat);return!a.has(s,"children")&&a.has(e.props,"children")&&(s.children=e.props.children),0===i[0]&&i[1]<11?e.constructor.ConvenienceConstructor(s):e.constructor(s)}}},function(e,t,s){function n(e){return i.mapValues(e,function(e,t){return t})}var i=s(10),r={MONTH:"month",YEAR:"year",DECADE:"decade",CENTURY:"century"};e.exports={directions:n({LEFT:null,RIGHT:null,UP:null,DOWN:null}),datePopups:{TIME:"time",CALENDAR:"calendar"},calendarViews:r,calendarViewHierarchy:i.object([[r.MONTH,r.YEAR],[r.YEAR,r.DECADE],[r.DECADE,r.CENTURY]]),calendarViewUnits:i.object([[r.MONTH,r.DAY],[r.YEAR,r.MONTH],[r.DECADE,r.YEAR],[r.CENTURY,r.DECADE]])}},function(e,t,s){"use strict";function n(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})}function i(e){return e.replace(/[A-Z]/g,function(e,t){return(0!==t?"-":"")+e.toLowerCase()})}function r(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)}var o,a,p,l,u,d,h=s(10),c="",f=document.createElement("div"),y={},m={O:"otransitionend",Moz:"transitionend",Webkit:"webkitTransitionEnd"};h.any(m,function(e,t){return void 0!==f.style[t+"TransitionProperty"]?(c="-"+t.toLowerCase()+"-",d=e,!0):void 0}),d||void 0===f.style.transitionProperty||(d="transitionend"),u=!d,y[p=c+"transition-property"]=y[a=c+"transition-duration"]=y[l=c+"transition-delay"]=y[o=c+"transition-timing-function"]="";var v=e.exports={width:function(e){return v.offset(e).width},height:function(e){return v.offset(e).height},hasFocus:function(e){var t=e.ownerDocument;return null==t.activeElement?!1:t.activeElement===e},offset:function(e){var t=e.ownerDocument,s=t&&t.documentElement,n={top:0,left:0};if(s)return v.contains(s,e)?(void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-s.clientTop,left:n.left+window.pageXOffset-s.clientLeft,width:n.width||e.offsetWidth,height:n.height||e.offsetHeight}):n},css:function(e,t,s){var o="",a=t;if("string"==typeof t){if(void 0===s)return e.style[n(t)]||r(e).getPropertyValue(t);(a={})[t]=s}h.each(a,function(t,s){t||0===t?o+=i(s)+":"+t+";":e.style.removeProperty(i(s))}),e.style.cssText+=";"+o},contains:function(){var e=document.documentElement;return e&&e.contains?function(e,t){return e.contains(t)}:e&&e.compareDocumentPosition?function(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}:function(e,t){if(t)do if(t===e)return!0;while(t=t.parentNode);return!1}}(),on:function(e,t,s){e.addEventListener?e.addEventListener(t,s,!1):e.attachEvent?e.attachEvent("on"+t,s):e["on"+t]=s},off:function(e,t,s){e.addEventListener?e.removeEventListener(t,s,!1):e.attachEvent?e.detachEvent("on"+t,s):e["on"+t]=null},trigger:function(e,t){var s=document.createEvent("Events");s.initEvent(t,!0,!0),e.dispatchEvent(s)},animate:function(e,t,s,n,r){function c(t){t.target===t.currentTarget&&(f=!0,v.off(t.target,d,c),v.css(e,y),r&&r.call(this))}var f,m=[],g={target:e,currentTarget:e},T={};"function"==typeof n&&(r=n,n=null),u&&(s=0),void 0===s&&(s=200),h.each(t,function(e,s){T[s]=t[s],m.push(i(s))}),s>0&&(T[p]=m.join(", "),T[a]=s/1e3+"s",T[l]="0s",T[o]=n||"linear",v.on(e,d,c),setTimeout(function(){f||c(g)},s+25)),e.clientLeft,v.css(e,T),0>=s&&setTimeout(h.partial(c,g),0)}}},function(e){"use strict";e.exports=function(e,t,s){return void 0===t?{start:e.selectionStart,end:e.selectionEnd}:(e.focus(),void e.setSelectionRange(t,s))}},function(e,t,s){"use strict";var n=s(10),i={eq:function(e,t){return e===t},neq:function(e,t){return e!==t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},lt:function(e,t){return t>e},lte:function(e,t){return t>=e},contains:function(e,t){return n.contains(e,t)},startsWith:function(e,t){return 0===e.lastIndexOf(t,0)},endsWith:function(e,t){var s=e.length-t.length,n=e.indexOf(t,s);return-1!==n&&n===s}};e.exports=i},function(e,t,s){"use strict";var n=s(48),i=s(42),r=s(10),o=e.exports=r.extend({},n,{culture:function(){return i.culture()},startOfWeek:function(){var e=i.culture();return e&&e.calendar?e.calendar.firstDay||0:0},parse:function(e,t,s){return i.parseDate(e,t,s)},format:function(e,t,s){return i.format(e,t,s)},shortDaysOfWeek:function(){var e=o.culture();return e&&e.calendar?e.calendar.days.namesShort.slice():void 0},daysOfWeek:function(e,t){return 1===arguments.length&&(t=e,e=new Date),t=t||"do",r.map(r.range(7),function(s){return o.format(n.weekday(e,s),t)})},months:function(e,t){return 1===arguments.length&&(t=e,e=new Date),t=t||o.formats.DAY_NAME_ABRV,r.map(r.range(12),function(s){return o.format(n.month(e,s),t)})},monthsInYear:function(e){var t=new Date(e,0,1);return r.map(r.range(12),function(e){return n.month(t,e)})},firstOfDecade:function(e){var t=n.year(e)%10;return n.subtract(e,t,"year")},lastOfDecade:function(e){return n.add(o.firstOfDecade(e),9,"year")},firstOfCentury:function(e){var t=n.year(e)%100;return n.subtract(e,t,"year")},lastOfCentury:function(e){return n.add(o.firstOfCentury(e),99,"year")},firstVisibleDay:function(e){var t=n.startOf(e,"month");return n.startOf(t,"week")},lastVisibleDay:function(e){var t=n.endOf(e,"month");return n.endOf(t,"week")},visibleDays:function(e){for(var t=o.firstVisibleDay(e),s=o.lastVisibleDay(e),i=[];n.lte(t,s,"day");)i.push(t),t=n.add(t,1,"day");return i},merge:function(e,t){return null==t&&null==e?null:(null==t&&(t=new Date),null==e&&(e=new Date),e=o.startOf(e,"day"),e=o.hours(e,o.hours(t)),e=o.minutes(e,o.minutes(t)),e=o.seconds(e,o.seconds(t)),o.milliseconds(e,o.milliseconds(t)))},sameMonth:function(e,t){return n.eq(e,t,"month")},today:function(){return this.startOf(new Date,"day")},yesterday:function(){return this.add(this.startOf(new Date,"day"),-1,"day")},tomorrow:function(){return this.add(this.startOf(new Date,"day"),1,"day")},formats:{DAY_OF_MONTH:"dd",DAY_NAME_SHORT:null,MONTH_NAME_ABRV:"MMM",MONTH_YEAR:"MMMM yyyy",YEAR:"yyyy"}})},function(e,t,s){function n(e){var t=i.Children.map(e,function(e){return e});for(var s in t)return s}var i=s(9),r=(s(25),s(10)),o=s(28).mergeIntoProps,a=s(30),p=i.createClass({displayName:"PopupContent",render:function(){return i.Children.only(this.props.children)}});e.exports=i.createClass({displayName:"exports",propTypes:{duration:i.PropTypes.number,onRequestClose:i.PropTypes.func.isRequired,onClosing:i.PropTypes.func,onOpening:i.PropTypes.func,onClose:i.PropTypes.func,onOpen:i.PropTypes.func},getDefaultProps:function(){return{height:"auto",duration:200,open:!1,onClosing:r.noop,onOpening:r.noop,onClose:r.noop,onOpen:r.noop}},componentDidMount:function(){this.close(0)},componentWillReceiveProps:function(e){this.setState({contentChanged:n(e.children)!==n(this.props.children)})},componentDidUpdate:function(e){var t=e.open&&!this.props.open,s=!e.open&&this.props.open;s?this.open():t&&this.close()},render:function(){var e=o({className:"rw-popup rw-widget"},this.props.children);return e.props.ref=this.props.children.props.ref,o(this.props,i.DOM.div({className:"rw-popup-container"},p({ref:"content"},e)))},dimensions:function(){var e=this.getDOMNode(); +e.style.display="block",e.style.height=a.height(this.refs.content.getDOMNode())+"px"},open:function(){var e=this,t=this.getDOMNode(),s=this.refs.content.getDOMNode();this.ORGINAL_POSITION=a.css(s,"position"),this._isOpening=!0,this.dimensions(),this.props.onOpening(),s.style.position="absolute",a.animate(s,{top:0},e.props.duration,function(){e._isOpening&&(s.style.position=e.ORGINAL_POSITION,t.style.overflow="visible",e.ORGINAL_POSITION=null,e.props.onOpen())})},close:function(e){{var t=this,s=this.refs.content.getDOMNode(),n=this.getDOMNode();n.style.height}this.ORGINAL_POSITION=a.css(s,"position"),this._isOpening=!1,this.dimensions(),this.props.onClosing(),n.style.overflow="hidden",s.style.position="absolute",a.animate(s,{top:"-100%"},void 0===e?this.props.duration:e,function(){t._isOpening||(s.style.position=t.ORGINAL_POSITION,n.style.display="none",t.ORGINAL_POSITION=null,t.props.onClose())})}})},function(e,t,s){"use strict";var n=s(9),i=s(10);e.exports={propTypes:{disabled:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.oneOf(["disabled"])]),readOnly:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.oneOf(["readOnly"])])},isDisabled:function(){return this.props.disabled===!0||"disabled"===this.props.disabled},isReadOnly:function(){return this.props.readOnly===!0||"readonly"===this.props.readOnly},notify:function(e,t){this.props[e]&&this.props[e].apply(null,[].concat(t))},_id:function(e){return this._id_||(this._id_=i.uniqueId("rw_")),(this.props.id||this._id_)+e},_maybeHandle:function(e,t){return this.isDisabled()||!t&&this.isReadOnly()?i.noop:e}}},function(e,t,s){function n(e,t){var s;if(e===t)return!0;for(s in e)if(e.hasOwnProperty(s)&&(!t.hasOwnProperty(s)||e[s]!==t[s]))return!1;for(s in t)if(t.hasOwnProperty(s)&&!e.hasOwnProperty(s))return!1;return!0}s(9);e.exports={shouldComponentUpdate:function(e,t){return!n(this.props,e)||!n(this.state,t)}}},function(e,t,s){var n=s(9),i=s(32),r=s(38),o=(s(43),s(26),s(10));e.exports={propTypes:{data:n.PropTypes.array,value:n.PropTypes.any,delay:n.PropTypes.number,filter:n.PropTypes.string},search:function(e,t){var s=this,n=((this._searchTerm||"")+e).toLowerCase();clearTimeout(this._timer),this._searchTerm=n,this._timer=setTimeout(function(){s._searchTerm="",t(n)},this.props.delay)},findNextWordIndex:function(e,t){var s=i.startsWith,n=this;return o.findIndex(n._data(),function(i,o){return o!=t&&s(r._dataText.call(n,i).toLowerCase(),e.toLowerCase())})}}},function(e,t,s){var n=s(9),i=s(10);e.exports={propTypes:{valueField:n.PropTypes.string,textField:n.PropTypes.string},_dataValue:function(e){var t=this.props.valueField;return t&&e&&i.has(e,t)?e[t]:e},_dataText:function(e){var t=this.props.textField;return(t&&e&&i.has(e,t)?e[t]:e)+""},_dataIndexOf:function(e,t){return i.findIndex(e,i.partial(this._valueMatcher,t),this)},_valueMatcher:function(e,t){return i.isEqual(this._dataValue(e),this._dataValue(t))},_dataItem:function(e,t){var s,n=e[0],r=this.props.valueField;return i.has(t,r)||typeof n==typeof val?t:(s=this._dataIndexOf(e,this._dataValue(t)),-1!==s?e[s]:t)}}},function(e,t,s){var n=s(9);e.exports={propTypes:{isRtl:n.PropTypes.bool},contextTypes:{isRtl:n.PropTypes.bool},childContextTypes:{isRtl:n.PropTypes.bool},getChildContext:function(){return{isRtl:this.props.isRtl||this.context&&this.context.isRtl}},isRtl:function(){return!!(this.props.isRtl||this.context&&this.context.isRtl)}}},function(e,t,s){function n(e){return function(){return e.apply(this,arguments),this}}var i=s(9),r=(s(32),s(38),s(26)),o=s(43),a=(s(29).directions,s(10));e.exports=function(e){var t=e.charAt(0).toUpperCase()+e.substr(1),s=(o.provided(function(e){return!a.isEqual(e.value,this.props.value)}),o.provided(function(e){return e>=0})),p=s(r(e)),l={propTypes:{data:i.PropTypes.array,value:i.PropTypes.any}};return l["set"+t]=n(p),l["prev"+t]=function(){var t=(this._data(),this.state&&this.state[e]||0);return t-=1,0>t&&(t=0),t},l["next"+t]=function(){var t=this._data(),s=this.state&&this.state[e]||0;return s+=1,s>=t.length&&(s=t.length-1),s},l}},function(e,t,s){{var n=s(9),i=s(32),r=s(38),o=s(26),a=s(43),p=(s(29).directions,s(10)),l=(a.provided(function(e){return!p.isEqual(e.value,this.props.value)}),a.provided(function(e){return e>=0})),u=p.without(p.keys(i),"filter");l(o("selectedIndex"))}e.exports={propTypes:{data:n.PropTypes.array,value:n.PropTypes.any,filter:n.PropTypes.oneOfType([n.PropTypes.func,n.PropTypes.oneOf(u.concat(!1))]),caseSensitive:n.PropTypes.bool,minLength:n.PropTypes.number},getDefaultProps:function(){return{caseSensitive:!1,minLength:1}},filterIndexOf:function(e,t){var s="function"==typeof this.props.filter?this.props.filter:i[this.props.filter||"eq"];return!t||!t.trim()||this.props.filter&&t.length<(this.props.minLength||1)?-1:(this.props.caseSensitive||(t=t.toLowerCase()),p.findIndex(e,function(e){var n=r._dataText.call(this,e);return this.props.caseSensitive||(n=n.toLowerCase()),s(n,t.toLowerCase())},this))},filter:function(e,t){var s="string"==typeof this.props.filter?i[this.props.filter]:this.props.filter;return!s||!t||!t.trim()||t.length<(this.props.minLength||1)?e:(this.props.caseSensitive||(t=t.toLowerCase()),p.filter(e,function(e){var n=r._dataText.call(this,e);return this.props.caseSensitive||(n=n.toLowerCase()),s(n,t.toLowerCase())},this))}}},function(e){!function(){e.exports=this["window.Globalize"]}()},function(e,t,s){"use strict";function n(e,t){return function(){var s=e.apply(this,arguments),n=t.apply(this,arguments);if(null!=s||null!=n)return null==s?n:null==n?s:i.extend(s,n)}}var i=s(10),r=e.exports={chain:function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},merge:function(e,t){if(typeof e!=typeof t)throw new TypeError;return i.isArray(e)?e.splice(e.length,0,t):i.isFunction(e)?e=n(e,t):i.extend(e,t),e},before:i.curry(function(e,t){return function(){return e.apply(this,arguments),t.apply(this,arguments)}}),after:i.curry(function(e,t){return function(){var s=t.apply(this,arguments);return e.apply(this,arguments),s}}),around:i.curry(function(e,t){return function(){var s=[t].concat(i.toArray(arguments));return e.apply(this,s)}}),provided:function(e){return r.around(function(t){var s=i.rest(arguments);return e.apply(this,s)?t.apply(this,s):void 0})}}},function(e,t,s){var n=s(9);e.exports={contextTypes:{isRtl:n.PropTypes.bool},isRtl:function(){return!!this.context.isRtl}}},function(e){"use strict";e.exports=function(e,t){var s=0,n=e?e.length:0,i=[];for(t=Math.max(+t||1,1);n>s;)i.push(e.slice(s,s+=t));return i}},function(e,t,s){var n=s(9),i=s(33),r=s(29).directions;e.exports=function(e,t){return{propTypes:{value:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date)},getInitialState:function(){return{focusedDate:this.props.value}},componentWillReceiveProps:function(e){var s=this.state.focusedDate;//!dates.inRange(focused, nextProps.min, nextProps.max) i.eq(e.value,s,t)||this.setState({focusedDate:e.value})},_keyDown:function(s){var n=s.key,o=(s.altKey,this.state.focusedDate),a=o;if("Enter"===n)return this.props.onChange(a);if("ArrowLeft"===n?a=this.move(a,r.LEFT):"ArrowRight"===n?a=this.move(a,r.RIGHT):"ArrowUp"===n?a=this.move(a,r.UP):"ArrowDown"===n&&(a=this.move(a,r.DOWN)),!i.eq(o,a,t)){if(s.preventDefault(),i.gt(a,this.props.value,e))return this.props.onMoveRight(a);if(i.lt(a,this.props.value,e))return this.props.onMoveLeft(a);this.setState({focusedDate:a})}}}}},function(e,t,s){"use strict";var n=s(9),i=s(10),r=e.exports={version:function(){return i.map(n.version.split("."),parseFloat)},propType:function(e){return function(t,s,n,i){var o=r.version(),a=e.call(this,t,s,n,i);return a&&a!==!0?0===o[0]&&o[1]<11?console.warn(a instanceof Error?a.message:a):a:void 0}}}},function(e){function t(e,t){var s=f.month(e),n=s+t;return e=f.month(e,n),0>n&&(n=12+t),f.month(e)!==n%12&&(e=f.date(e,0)),e}function s(e){return e=e.charAt(0).toUpperCase()+e.substr(1),function(t,s){return void 0===s?t["get"+e]():(t=new Date(t),t["set"+e](s),t)}}function n(e){return function(t,s,n){return e(+f.startOf(t,n),+f.startOf(s,n))}}var i="milliseconds",r="seconds",o="minutes",a="hours",p="day",l="week",u="month",d="year",h="decade",c="century",f=e.exports={startOfWeek:function(){return 0},add:function(e,s,n){if(e=new Date(e),n===i)return f.milliseconds(e,f.milliseconds(e)+s);if(n===r)return f.seconds(e,f.seconds(e)+s);if(n===o)return f.minutes(e,f.minutes(e)+s);if(n===a)return f.hours(e,f.hours(e)+s);if(n===p)return f.date(e,f.date(e)+s);if(n===l)return f.date(e,f.date(e)+7*s);if(n===u)return t(e,s);if(n===d)return f.year(e,f.year(e)+s);if(n===h)return f.year(e,f.year(e)+10*s);if(n===c)return f.year(e,f.year(e)+100*s);throw new TypeError('Invalid units: "'+n+'"')},subtract:function(e,t,s){return f.add(e,-t,s)},startOf:function(e,t){switch(e=new Date(e),t){case"century":case"decade":case"year":e=f.month(e,0);case"month":e=f.date(e,1);case"week":case"day":e=f.hours(e,0);case"hours":e=f.minutes(e,0);case"minutes":e=f.seconds(e,0);case"seconds":e=f.milliseconds(e,0)}return t===h&&(e=f.subtract(e,f.year(e)%10,"year")),t===c&&(e=f.subtract(e,f.year(e)%100,"year")),t===l&&(e=f.weekday(e,0)),e},endOf:function(e,t){return e=new Date(e),e=f.startOf(e,t),e=f.add(e,1,t),e=f.subtract(e,1,i)},eq:n(function(e,t){return e===t}),gt:n(function(e,t){return e>t}),gte:n(function(e,t){return e>=t}),lt:n(function(e,t){return t>e}),lte:n(function(e,t){return t>=e}),min:function(){var e=Array.prototype.slice.call(arguments);return new Date(Math.min.apply(Math,e))},max:function(){var e=Array.prototype.slice.call(arguments);return new Date(Math.max.apply(Math,e))},inRange:function(e,t,s,n){return n=n||"day",f.gte(e,t,n)&&f.lte(e,s,n)},milliseconds:s("Milliseconds"),seconds:s("Seconds"),minutes:s("Minutes"),hours:s("Hours"),day:s("Day"),date:s("Date"),month:s("Month"),year:s("FullYear"),decade:function(e,t){return void 0==t?f.year(f.startOf(e,h)):f.add(e,t+10,d)},century:function(e,t){return void 0==t?f.year(f.startOf(e,c)):f.add(e,t+100,d)},weekday:function(e,t){var s=(f.day(e)+7-f.startOfWeek())%7;return void 0==t?s:f.add(e,t-s,p)}}}]); \ No newline at end of file diff --git a/docs/docs.js b/docs/docs.js index 9a9e5d161..c04b4b4ef 100644 --- a/docs/docs.js +++ b/docs/docs.js @@ -1,11 +1,11 @@ -/*! v"1.3.0" | (c) 2014 Jason Quense | https://github.com/theporchrat/react-widgets/blob/master/License.txt */ -!function(e){function t(a){if(n[a])return n[a].exports;var s=n[a]={exports:{},id:a,loaded:!1};return e[a].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var n={};return t.m=e,t.c=n,t.p="docs/",t(0)}([function(e,t,n){var a=n(1),s=n(11),i=n(3),r=n(12),o=(n(13),n(14)),l=(n(2),n(4)),p=n(5),u=n(6),d=n(7),c=n(8),h=n(9),m=n(10);n(15);var f=["#intro","#dropdown-list","#combobox","#number-picker","#select-list","#calendar","#date-picker"],y=a.createClass({displayName:"DocPage",getInitialState:function(){return{sideHref:"#intro"}},componentDidMount:function(){location.hash&&this.setState({sideHref:location.hash.split("/")[0]})},render:function(){var e=this.state.sideHref;return a.DOM.div({style:{marginTop:72}},i({page:this.props.page}),a.DOM.div({className:"container"},a.DOM.aside({className:"col-sm-3"},a.DOM.div({className:"nav-aside"},r({className:"side-nav",onSelect:this.handleNavItemSelect},o({key:0,href:"#intro",active:"#intro"===e},"Getting Started"),o({key:1,href:"#dropdown-list",active:"#dropdown-list"===e},"Dropdown List"),o({key:2,href:"#combobox",active:"#combobox"===e},"Combobox"),o({key:6,href:"#number-picker",active:"#number-picker"===e},"Number Picker"),o({key:3,href:"#select-list",active:"#select-list"===e},"Select"),o({key:4,href:"#calendar",active:"#calendar"===e},"Calendar"),o({key:5,href:"#date-picker",active:"#date-picker"===e},"Date "," & "," Time Picker")))),a.DOM.article({className:"col-sm-9 tab-content"},l({className:s({"tab-pane":!0,active:"#intro"===e})}),p({className:s({"tab-pane":!0,active:"#dropdown-list"===e})}),u({className:s({"tab-pane":!0,active:"#combobox"===e})}),m({className:s({"tab-pane":!0,active:"#number-picker"===e})}),d({className:s({"tab-pane":!0,active:"#select-list"===e})}),c({className:s({"tab-pane":!0,active:"#calendar"===e})}),h({className:s({"tab-pane":!0,active:"#date-picker"===e})}),a.DOM.div({className:"clearfix",style:{marginTop:20}},f.indexOf(e)>0&&a.DOM.button({type:"button",className:"btn btn-link pull-left",onClick:this.prev},"« prev"),f.indexOf(e)")," tag replacement that offers additional functionality. the Dropdown list"),l(null),i({code:"render: function(){\n var DropdownList = require('react-widgets').DropdownList\n , list = [\n { label: 'orange', id: 1 },\n { label: 'blue', id: 2 },\n { label: 'red', id: 3 },\n ]\n return (\n \n )\n},\n\n_change: function(value){\n this.setState({\n value: value\n })\n}\n"}),a.DOM.h2(null,"Props"),a.DOM.h3({className:"prop-header",id:p+"value"},"value ",a.DOM.small(null,"Any"),a.DOM.strong(null,"controllable (onChange, defaultValue)")),a.DOM.p(null,"The current value of the DropdownList. This can be an object (such as a member of the ",a.DOM.code(null,"data")," array) or a primitive value, hinted to by the ",a.DOM.code(null,"valueField"),". The widget value does not need to be in the ",a.DOM.code(null,"data")," array; widgets can have values that are not in their list."),a.DOM.h3({className:"prop-header",id:p+"onChange"},"onChange ",a.DOM.small(null,"Function(Any value)")),a.DOM.p(null,"Change event Handler that is called when the value is changed."),a.DOM.h3({className:"prop-header",id:p+"data"},"data ",a.DOM.small(null,"Array - mixed")),a.DOM.p(null,"provide an array of possible values for the DropdownList. If an array of ",a.DOM.code(null,"objects")," is provided you should use the ",a.DOM.code(null,"valueField")," and ",a.DOM.code(null,"textField")," props, to specify which object properties comprise the value field (such as an id) and the field used to label the item."),a.DOM.h3({className:"prop-header",id:p+"valueField"},"valueField ",a.DOM.small(null,"String")),a.DOM.p(null,"A property name of a uniquely identifying field in the ",a.DOM.code(null,"data")," array. If no valueField is provided, the widget will use strict equality checks to locate the data item, if it exists."),a.DOM.h3({className:"prop-header",id:p+"textField"},"textField ",a.DOM.small(null,"String")),a.DOM.p(null,"This prop determines which data item field to display in the combobox and selected item. This prop is unnecessary when an ",a.DOM.code(null,"itemComponent")," and ",a.DOM.code(null,"valueComponent")," are provided."),a.DOM.h3({className:"prop-header",id:p+"valueComponent"},"valueComponent ",a.DOM.small(null,"Component")),a.DOM.p(null,"This component is used to render the selected value of the combobox. The default component renders the text of the selected item (specified by ",a.DOM.code(null,"textfield"),")"),a.DOM.h3({className:"prop-header",id:p+"itemComponent"},"itemComponent ",a.DOM.small(null,"Component")),a.DOM.p(null,"This component is used to render each possible item in the dropdownlist. The default component renders the text of the selected item (specified by ",a.DOM.code(null,"textfield"),")"),a.DOM.h3({className:"prop-header",id:p+"open"},"open ",a.DOM.small(null,"Boolean",s(null,"false")),a.DOM.strong(null,"controllable (onToggle, defaultOpen)")),a.DOM.p(null,"Whether or not the ",u," is open. When unset (",a.DOM.code(null,"undefined"),") the ",u," will handle the opening and closing internally. The ",a.DOM.code(null,"defaultOpen")," prop can be used to ","set"," an initialization value for uncontrolled widgets."),a.DOM.h3({className:"prop-header",id:p+"onToggle"},"onToggle ",a.DOM.small(null,"Function(Boolean isOpen)")),a.DOM.p(null,"Called when the ",u," is about to open or close. ",a.DOM.code(null,"onToggle")," should be used when the ",a.DOM.code(null,"open")," prop is ","set"," otherwise the widget will never open or close."),a.DOM.h3({className:"prop-header",id:p+"busy"},"busy ",a.DOM.small(null,"Boolean")),a.DOM.p(null,"mark whether the widget is in a busy or loading state. If ",a.DOM.code(null,"true")," the widget will display a spinner gif, useful when loading data via an ajax call."),a.DOM.h3({className:"prop-header",id:p+"duration"},"duration ",a.DOM.small(null,"Number",s(null,"250"))),a.DOM.p(null,"The speed, in milliseconds, of the dropdown animation."),a.DOM.h3({className:"prop-header",id:p+"isRtl"},"isRtl ",a.DOM.small(null,"Boolean",s(null,"false"))),a.DOM.p(null,"mark whether the widget should render right-to-left. This property can also be implicitly passed to the widget through a ",a.DOM.code(null,"childContext")," prop (",a.DOM.code(null,"isRtl"),") this allows higher level application components to specify the direction."),a.DOM.h3({className:"prop-header",id:p+"messages"},"messages ",a.DOM.small(null,"Object")),a.DOM.p(null,"Object hash containing display text and/or text for screen readers. Use the ",a.DOM.code(null,"messages")," object to localize widget text and increase accessibility."),a.DOM.h3(null,"messages.open ",a.DOM.small(null,"String",s(null,'"Open Dropdown"'))),a.DOM.p(null,"Dropdown button text for screen readers"),a.DOM.h2({id:p+"keyboard"},"Keyboard Navigation"),a.DOM.ul({className:"list-unstyled keyboard-list"},a.DOM.li(null,a.DOM.kbd(null,"alt + down arrow")," open dropdown"),a.DOM.li(null,a.DOM.kbd(null,"alt + up arrow")," close dropdown"),a.DOM.li(null,a.DOM.kbd(null,"down arrow")," move focus to next item"),a.DOM.li(null,a.DOM.kbd(null,"up arrow")," move focus to previous item"),a.DOM.li(null,a.DOM.kbd(null,"home")," move focus to first item"),a.DOM.li(null,a.DOM.kbd(null,"end")," move focus to last item"),a.DOM.li(null,a.DOM.kbd(null,"enter")," select focused item"),a.DOM.li(null,a.DOM.kbd(null,"any key")," search list for item starting with key"))))}});e.exports=d},function(e,t,n){var a=n(1),s=n(21),i=n(22),r=n(17),o=n(18),l=n(28),p="combobox/",u="Combobox",d=a.createClass({displayName:"ComboBox",render:function(){return this.transferPropsTo(a.DOM.section(null,a.DOM.h1({className:"page-header"},"Combobox",a.DOM.span({className:"pull-right"},o({title:"props",bsStyle:"link",pullRight:!0},r({href:"#"+p+"value"},"value"),r({href:"#"+p+"onChange"},"onChange"),r({href:"#"+p+"data"},"data"),r({divider:!0}),r({href:"#"+p+"valueField"},"valueField"),r({href:"#"+p+"textField"},"textField"),r({href:"#"+p+"itemComponent"},"itemComponent"),r({href:"#"+p+"suggest"},"suggest"),r({href:"#"+p+"filter"},"filter"),r({href:"#"+p+"open"},"open"),r({href:"#"+p+"onToggle"},"onToggle"),r({href:"#"+p+"busy"},"busy"),r({href:"#"+p+"duration"},"duration"),r({href:"#"+p+"isRtl"},"isRtl"),r({href:"#"+p+"messages"},"messages"),r({divider:!0}),r({href:"#"+p+"keyboard"},"Keyboard Navigation")))),a.DOM.p(null,"Select an item from the list, or input a custom value. The combobox can also make suggestions as you type"),l(null),i({code:"render: function(){\n //... \n\n return (\n \n\n \n\n \n )\n}"}),a.DOM.h2(null,"Props"),a.DOM.h3({className:"prop-header",id:p+"value"},"value ",a.DOM.small(null,"Any"),a.DOM.strong(null,"controllable (onChange, defaultValue)")),a.DOM.p(null,"The current value of the Combobox. This can be an object (such as a member of the ",a.DOM.code(null,"data")," array) or a primitive value, hinted to by the ",a.DOM.code(null,"valueField"),". The widget value does not need to be in the ",a.DOM.code(null,"data"),", widgets can have values that are not in their list."),a.DOM.h3({className:"prop-header",id:p+"onChange"},"onChange ",a.DOM.small(null,"Function(Any value)")),a.DOM.p(null,"Called when the value is changed. If the value is on of the ",a.DOM.code(null,"data")," members that item will be returned. In the case of a value not being found in the ",a.DOM.code(null,"data")," array the string value of the combobox will be returned."),a.DOM.h3({className:"prop-header",id:p+"data"},"data ",a.DOM.small(null,"Array")),a.DOM.p(null,"An array of possible values for the combobox. If an array of ",a.DOM.code(null,"objects")," is provided you should use the ",a.DOM.code(null,"valueField")," and ",a.DOM.code(null,"textField")," props, to specify which object properties comprise the value field (such as an id) and the field used to label the item."),a.DOM.h3({className:"prop-header",id:p+"valueField"},"valueField ",a.DOM.small(null,"String")),a.DOM.p(null,"A property name of a uniquely identifying field in the ",a.DOM.code(null,"data")," array. If no valueField is provided, the widget will use strict equality checks to locate the data item, if it exists."),a.DOM.h3({className:"prop-header",id:p+"textField"},"textField ",a.DOM.small(null,"String")),a.DOM.p(null,"This prop determines which data item field to display in the dropdown list and the text value of combobox. This prop is unnecessary when an ",a.DOM.code(null,"itemComponent")," is provided."),a.DOM.h3({className:"prop-header",id:p+"itemComponent"},"itemComponent ",a.DOM.small(null,"Component")),a.DOM.p(null,"This component is used to render each possible item in the dropdownlist. The default component renders the text of the selected item (specified by ",a.DOM.code(null,"textfield"),")"),a.DOM.h3({className:"prop-header",id:p+"suggest"},"suggest ",a.DOM.small(null,"Boolean",s(null,"false"))),a.DOM.p(null,"When ",a.DOM.code(null,"true"),' the Combobox will suggest, or fill in, values as you type. The suggestions are always "startsWith", meaning it will search from the start of the ',a.DOM.code(null,"textField")," property"),a.DOM.h3({className:"prop-header",id:p+"filter"},"filter ",a.DOM.small(null,"[Boolean, String, Function(String item)]",s(null,"false"))),a.DOM.p(null,"Specify a filtering method used to reduce the items in the dropdown as you type. It can be used in conjuction with the ",a.DOM.code(null,"suggest")," prop or instead of it. There are a few prebuilt filtering methods that can be specified by passing the ",a.DOM.code(null,"String")," name. You can explicitly opt out of filtering by setting filter to ",a.DOM.code(null,"false")),a.DOM.p(null,"To handle custom filtering techniques provide a ",a.DOM.code(null,"function")," that returns ",a.DOM.code(null,"true")," or ",a.DOM.code(null,"false")," for each passed in item (just like the ",a.DOM.a({href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter"},"array.filter")," builtin)"),a.DOM.p(null,"Acceptable values for filter are: ",a.DOM.code(null,"false")," ",a.DOM.code(null,'"startsWith"')," ",a.DOM.code(null,'"endsWith"')," ",a.DOM.code(null,'"contains"')," ",a.DOM.code(null,"function(String item)")),a.DOM.h3({className:"prop-header",id:p+"open"},"open ",a.DOM.small(null,"Boolean",s(null,"false")),a.DOM.strong(null,"controllable (onToggle, defaultOpen)")),a.DOM.p(null,"Whether or not the ",u," is open. When unset (",a.DOM.code(null,"undefined"),") the ",u," will handle the opening and closing internally. The ",a.DOM.code(null,"defaultOpen")," prop can be used to ","set"," an initialization value for uncontrolled widgets."),a.DOM.h3({className:"prop-header",id:p+"onToggle"},"onToggle ",a.DOM.small(null,"Function(Boolean isOpen)")),a.DOM.p(null,"Called fires when the ",u," is about to open or close. ",a.DOM.code(null,"onToggle")," should be used when the ",a.DOM.code(null,"open")," prop is ","set"," otherwise the widget will never open or close."),a.DOM.h3({className:"prop-header",id:p+"busy"},"busy ",a.DOM.small(null,"Boolean",s(null,"false"))),a.DOM.p(null,"Mark whether the widget is in a busy or loading state. If ",a.DOM.code(null,"true")," the widget will display a spinner gif, useful when loading data via an ajax call."),a.DOM.h3({className:"prop-header",id:p+"duration"},"duration ",a.DOM.small(null,"Number",s(null,"250"))),a.DOM.p(null,"The speed, in milliseconds, of the dropdown animation."),a.DOM.h3({className:"prop-header",id:p+"isRtl"},"isRtl ",a.DOM.small(null,"Boolean",s(null,"false"))),a.DOM.p(null,"mark whether the widget should render right-to-left. This property can also be implicitly passed to the widget through a ",a.DOM.code(null,"childContext")," prop (",a.DOM.code(null,"isRtl"),") this allows higher level application components to specify the direction."),a.DOM.h3({className:"prop-header",id:p+"messages"},"messages ",a.DOM.small(null,"Object")),a.DOM.p(null,"Object hash containing display text and/or text for screen readers. Use the ",a.DOM.code(null,"messages")," object to localize widget text and increase accessibility."),a.DOM.h3(null,"messages.open ",a.DOM.small(null,"String",s(null,'"Open Combobox"'))),a.DOM.p(null,"Combobox button text for screen readers"),a.DOM.h3(null,"messages.emptyList ",a.DOM.small(null,"String",s(null,'"There are no items in this list"'))),a.DOM.p(null,"text to display when the ",a.DOM.code(null,"data")," prop array is empty"),a.DOM.h3(null,"messages.emptyFilter ",a.DOM.small(null,"String",s(null,'"The filter returned no results"'))),a.DOM.p(null,"text to display when the the current filter does not return any results"),a.DOM.h2({id:p+"keyboard"},"Keyboard Navigation"),a.DOM.ul({className:"list-unstyled keyboard-list"},a.DOM.li(null,a.DOM.kbd(null,"alt + down arrow")," open dropdown"),a.DOM.li(null,a.DOM.kbd(null,"alt + up arrow")," close dropdown"),a.DOM.li(null,a.DOM.kbd(null,"down arrow")," move focus to next item"),a.DOM.li(null,a.DOM.kbd(null,"up arrow")," move focus to previous item"),a.DOM.li(null,a.DOM.kbd(null,"home")," move focus to first item"),a.DOM.li(null,a.DOM.kbd(null,"end")," move focus to last item"),a.DOM.li(null,a.DOM.kbd(null,"enter")," select focused item"),a.DOM.li(null,a.DOM.kbd(null,"any key")," search list for item starting with key"))))}});e.exports=d},function(e,t,n){var a=n(1),s=n(21),i=n(22),r=n(18),o=n(17),l=n(26),p="select-list/",u="Select",d=a.createClass({displayName:"Select",render:function(){return this.transferPropsTo(a.DOM.section(null,a.DOM.h1({className:"page-header"},"Select",a.DOM.span({className:"pull-right"},r({title:"props",bsStyle:"link",pullRight:!0},o({href:"#"+p+"value"},"value"),o({href:"#"+p+"onChange"},"onChange"),o({href:"#"+p+"data"},"data"),o({divider:!0}),o({href:"#"+p+"valueField"},"valueField"),o({href:"#"+p+"textField"},"textField"),o({href:"#"+p+"tagComponent"},"tagComponent"),o({href:"#"+p+"itemComponent"},"itemComponent"),o({href:"#"+p+"placeholder"},"placeholder"),o({href:"#"+p+"open"},"open"),o({href:"#"+p+"onToggle"},"onToggle"),o({href:"#"+p+"busy"},"busy"),o({href:"#"+p+"duration"},"duration"),o({href:"#"+p+"isRtl"},"isRtl"),o({href:"#"+p+"messages"},"messages"),o({divider:!0}),o({href:"#"+p+"keyboard"},"Keyboard Navigation")))),a.DOM.p(null,"Multiple selection widget."),l(null),i({code:"render: function(){\n var Select = require('react-widgets').Select\n //... \n\n return (\n \n )\n}"}),a.DOM.h2(null,"Props"),a.DOM.h3({className:"prop-header",id:p+"value"},"value ",a.DOM.small(null,"Array?"),a.DOM.strong(null,"controllable (onChange, defaultValue)")),a.DOM.p(null,"The current values of the Select. The value should can ",a.DOM.code(null,"null"),", or an array of ",a.DOM.code(null,"valieField")," values, or an array of objects (such as a few items in the ",a.DOM.code(null,"data")," array)"),a.DOM.h3({className:"prop-header",id:p+"onChange"},"onChange ",a.DOM.small(null,"Function(Any value)")),a.DOM.p(null,"change event Handler that is called when the value is changed. The handler will return an array of values"),a.DOM.strong(null,"Note:"),a.DOM.span(null," Just like input tags, if you do not specify an ",a.DOM.code(null,"onChange")," handler the widget becomes readonly"),a.DOM.h3({className:"prop-header",id:p+"data"},"data ",a.DOM.small(null,"Array")),a.DOM.p(null,"provide an array of possible values for the select. If an array of ",a.DOM.code(null,"objects")," is provided you should use the ",a.DOM.code(null,"valueField")," and ",a.DOM.code(null,"textField")," props, to specify which object properties comprise the value field (such as an id) and the field used to label the item."),a.DOM.h3({className:"prop-header",id:p+"valueField"},"valueField ",a.DOM.small(null,"String")),a.DOM.p(null,"A property name of a uniquely identifying field in the ",a.DOM.code(null,"data")," array. If no valueField is provided, the widget will use strict equality checks to locate the data item, if it exists."),a.DOM.h3({className:"prop-header",id:p+"textField"},"textField ",a.DOM.small(null,"String")),a.DOM.p(null,"This prop determines which data item field to display in the select list and selected item This prop is unnecessary when an ",a.DOM.code(null,"itemComponent")," and ",a.DOM.code(null,"tagComponent")," are provided."),a.DOM.h3({className:"prop-header",id:p+"tagComponent"},"tagComponent ",a.DOM.small(null,"Component")),a.DOM.p(null,"This component is used to render each selected item. The default component renders the text of the selected item (specified by ",a.DOM.code(null,"textfield"),")"),a.DOM.h3({className:"prop-header",id:p+"itemComponent"},"itemComponent ",a.DOM.small(null,"Component")),a.DOM.p(null,"This component is used to render each possible item in the list. The default component renders the text of the selected item (specified by ",a.DOM.code(null,"textfield"),")"),a.DOM.h3({className:"prop-header",id:p+"placeholder"},"placeholder ",a.DOM.small(null,"String")),a.DOM.p(null,"The same as an input placeholder, only works in browsers that support the placeholder attribute for inputs"),a.DOM.h3({className:"prop-header",id:p+"searchTerm"},"searchTerm ",a.DOM.small(null,"String"),a.DOM.strong(null,"controllable (onSearch, defaultSearchTerm)")),a.DOM.p(null,"The string value of the current search being typed into the ",u,". When unset (",a.DOM.code(null,"undefined"),") the ",u," will handle the filtering internally. The ",a.DOM.code(null,"defaultSearchTerm")," prop can be used to ","set"," an initialization value for uncontrolled widgets."),a.DOM.h3({className:"prop-header",id:p+"onSearch"},"onSearch ",a.DOM.small(null,"Function(String searchTerm)")),a.DOM.p(null,"Called when the value of the text box changes either from typing or a pasted value. ",a.DOM.code(null,"onSearch")," should be used when the ",a.DOM.code(null,"searchTerm")," prop is ","set","."),a.DOM.h3({className:"prop-header",id:p+"open"},"open ",a.DOM.small(null,"Boolean",s(null,"false")),a.DOM.strong(null,"controllable (onToggle, defaultOpen)")),a.DOM.p(null,"Whether or not the ",u," is open. When unset (",a.DOM.code(null,"undefined"),") the ",u," will handle the opening and closing internally. The ",a.DOM.code(null,"defaultOpen")," prop can be used to ","set"," an initialization value for uncontrolled widgets."),a.DOM.h3({className:"prop-header",id:p+"onToggle"},"onToggle ",a.DOM.small(null,"Function(Boolean isOpen)")),a.DOM.p(null,"Called when the ",u," is about to open or close. ",a.DOM.code(null,"onToggle")," should be used when the ",a.DOM.code(null,"open")," prop is ","set"," otherwise the widget will never open or close."),a.DOM.h3({className:"prop-header",id:p+"busy"},"busy ",a.DOM.small(null,"Boolean")),a.DOM.p(null,"mark whether the widget is in a busy or loading state. If ",a.DOM.code(null,"true")," the widget will display a spinner gif, useful when loading data via an ajax call."),a.DOM.h3({className:"prop-header",id:p+"duration"},"duration ",a.DOM.small(null,"Number",s(null,"250"))),a.DOM.p(null,"The speed, in milliseconds, of the dropdown animation."),a.DOM.h3({className:"prop-header",id:p+"duration"},"disabled ",a.DOM.small(null,"[Boolean, Array]")),a.DOM.p(null,"Disable the widget, If an ",a.DOM.code(null,"Array")," of values is passed in only the tags specified will be disabled."),a.DOM.h3({className:"prop-header",id:p+"duration"},"readOnly ",a.DOM.small(null,"[Boolean, Array]")),a.DOM.p(null,"Place the widget in a readonly mode, If an ",a.DOM.code(null,"Array")," of values is passed in only the tags specified will be readonly."),a.DOM.h3({className:"prop-header",id:p+"isRtl"},"isRtl ",a.DOM.small(null,"Boolean",s(null,"false"))),a.DOM.p(null,"mark whether the widget should render right-to-left. This property can also be implicitly passed to the widget through a ",a.DOM.code(null,"childContext")," prop (",a.DOM.code(null,"isRtl"),") this allows higher level application components to specify the direction."),a.DOM.h3({className:"prop-header",id:p+"messages"},"messages ",a.DOM.small(null,"Object")),a.DOM.p(null,"Object hash containing display text and/or text for screen readers. Use the ",a.DOM.code(null,"messages")," object to localize widget text and increase accessibility."),a.DOM.h3(null,"messages.emptyList ",a.DOM.small(null,"String",s(null,'"There are no items in this list"'))),a.DOM.p(null,"text to display when the ",a.DOM.code(null,"data")," prop array is empty"),a.DOM.h3(null,"messages.emptyFilter ",a.DOM.small(null,"String",s(null,'"The filter returned no results"'))),a.DOM.p(null,"text to display when the the current filter does not return any results"),a.DOM.h2({id:p+"keyboard"},"Keyboard Navigation"),a.DOM.ul({className:"list-unstyled keyboard-list"},a.DOM.li(null,a.DOM.kbd(null,"down arrow")," open dropdown, and move focus to next item"),a.DOM.li(null,a.DOM.kbd(null,"up arrow")," move focus to previous item"),a.DOM.li(null,a.DOM.kbd(null,"alt + up arrow")," close dropdown"),a.DOM.li(null,a.DOM.kbd(null,"left arrow")," move focus to previous selected tag"),a.DOM.li(null,a.DOM.kbd(null,"right arrow")," move focus to previous selected tag"),a.DOM.li(null,a.DOM.kbd(null,"delete")," unselect focused tag"),a.DOM.li(null,a.DOM.kbd(null,"backspace")," remove next selected tag"),a.DOM.li(null,a.DOM.kbd(null,"home")," move focus to first item"),a.DOM.li(null,a.DOM.kbd(null,"end")," move focus to last item"),a.DOM.li(null,a.DOM.kbd(null,"enter")," select focused item"),a.DOM.li(null,a.DOM.kbd(null,"any key")," search list for item starting with key")))) +}});e.exports=d},function(e,t,n){var a=n(1),s=n(21),i=n(22),r=n(19),o=n(18),l=n(26),p="calendar/",u=a.createClass({displayName:"Calendar",render:function(){return this.transferPropsTo(a.DOM.section(null,a.DOM.h1({className:"page-header"},"Calendar",a.DOM.span({className:"pull-right"},r({title:"props",bsStyle:"link",pullRight:!0},o({href:"#"+p+"value"},"value"),o({href:"#"+p+"onChange"},"onChange"),o({divider:!0}),o({href:"#"+p+"min"},"min"),o({href:"#"+p+"max"},"max"),o({href:"#"+p+"initialView"},"initialView"),o({href:"#"+p+"finalView"},"finalView"),o({href:"#"+p+"duration"},"duration"),o({href:"#"+p+"isRtl"},"isRtl"),o({href:"#"+p+"messages"},"messages"),o({divider:!0}),o({href:"#"+p+"keyboard"},"Keyboard Navigation")))),a.DOM.p(null,"Calendar widget."),l(null),i({code:"render: function(){\n //... \n\n return (\n \n \n \n \n \n \n}"}),a.DOM.h2(null,"Props"),a.DOM.h3({className:"prop-header",id:p+"value"},"value ",a.DOM.small(null,"Date"),a.DOM.strong(null,"controllable (onChange, defaultValue)")),a.DOM.p(null,"The current selected date, should be a Date object or null."),a.DOM.h3({className:"prop-header",id:p+"onChange"},"onChange ",a.DOM.small(null,"Function( Date value )")),a.DOM.p(null,"change event Handler that is called when the value is changed. The handler is called with the Date object"),a.DOM.h3({className:"prop-header",id:p+"min"},"min ",a.DOM.small(null,"Date")),a.DOM.p(null,"The minimum date that the Calendar can navigate from."),a.DOM.h3({className:"prop-header",id:p+"max"},"max ",a.DOM.small(null,"Date")),a.DOM.p(null,"The maximum date that the Calendar can navigate to."),a.DOM.h3({className:"prop-header",id:p+"initialView"},"initialView ",a.DOM.small(null,"Enum",s(null,'"month"'))),a.DOM.p(null,"The starting and lowest level view the calendar can navigate down to."),a.DOM.p(null,"Acceptable values are:",a.DOM.code(null,'"month"')," ",a.DOM.code(null,'"year"')," ",a.DOM.code(null,'"decade"')," ",a.DOM.code(null,'"century"')),a.DOM.h3({className:"prop-header",id:p+"finalView"},"finalView ",a.DOM.small(null,"Enum",s(null,'"century"'))),a.DOM.p(null,"The highest level view the calendar can navigate up to. This value should be higher than ",a.DOM.code(null,"initialView")),a.DOM.p(null,"Acceptable values are:",a.DOM.code(null,'"month"')," ",a.DOM.code(null,'"year"')," ",a.DOM.code(null,'"decade"')," ",a.DOM.code(null,'"century"')),a.DOM.h3({className:"prop-header",id:p+"isRtl"},"isRtl ",a.DOM.small(null,"Boolean",s(null,"false"))),a.DOM.p(null,"mark whether the widget should render right-to-left. This property can also be implicitly passed to the widget through a ",a.DOM.code(null,"childContext")," prop (",a.DOM.code(null,"isRtl"),") this allows higher level application components to specify the direction."),a.DOM.h3({className:"prop-header",id:p+"messages"},"messages ",a.DOM.small(null,"Object")),a.DOM.p(null,"Object hash containing display text and/or text for screen readers. Use the ",a.DOM.code(null,"messages")," object to localize widget text and increase accessibility."),a.DOM.h3(null,"messages.moveBack ",a.DOM.small(null,"String",s(null,'"navigate back"'))),a.DOM.p(null,"title and screen reader text for the left arrow button"),a.DOM.h3(null,"messages.moveForward ",a.DOM.small(null,"String",s(null,'"navigate forward"'))),a.DOM.p(null,"title and screen reader text for the right arrow button"),a.DOM.h2({id:p+"keyboard"},"Keyboard Navigation"),a.DOM.ul({className:"list-unstyled keyboard-list"},a.DOM.li(null,a.DOM.kbd(null,"ctrl + down arrow")," navigate to next view "),a.DOM.li(null,a.DOM.kbd(null,"ctrl + up arrow")," navigate to previous view "),a.DOM.li(null,a.DOM.kbd(null,"ctrl + left arrow")," navigate to previous: month, year, decade, century"),a.DOM.li(null,a.DOM.kbd(null,"ctrl + right arrow")," navigate to next: month, year, decade, century"),a.DOM.li(null,a.DOM.kbd(null,"left arrow")," move focus to previous date"),a.DOM.li(null,a.DOM.kbd(null,"right arrow")," move focus to next date"),a.DOM.li(null,a.DOM.kbd(null,"up arrow")," move focus up within view"),a.DOM.li(null,a.DOM.kbd(null,"down arrow")," move focus down within view"))))}});e.exports=u},function(e,t,n){var a=n(1),s=n(21),i=n(22),r=n(19),o=n(18),l=n(27),p="date-picker/",u="DateTimePicker",d=a.createClass({displayName:"DateTimePicker",render:function(){return this.transferPropsTo(a.DOM.section(null,a.DOM.h1({className:"page-header"},"Date and Time Picker",a.DOM.span({className:"pull-right"},r({title:"props",bsStyle:"link",pullRight:!0},o({href:"#"+p+"value"},"value"),o({href:"#"+p+"onChange"},"onChange"),o({href:"#"+p+"data"},"data"),o({divider:!0}),o({href:"#"+p+"calendar"},"calendar"),o({href:"#"+p+"time"},"time"),o({href:"#"+p+"min"},"min"),o({href:"#"+p+"max"},"max"),o({href:"#"+p+"format"},"format"),o({href:"#"+p+"parse"},"parse"),o({href:"#"+p+"initialView"},"initialView"),o({href:"#"+p+"finalView"},"finalView"),o({href:"#"+p+"open"},"open"),o({href:"#"+p+"onToggle"},"onToggle"),o({href:"#"+p+"duration"},"duration"),o({href:"#"+p+"isRtl"},"isRtl"),o({href:"#"+p+"messages"},"messages"),o({divider:!0}),o({href:"#"+p+"keyboard"},"Keyboard Navigation")))),a.DOM.p(null,"Datepicker widget. Allows you to ","set"," different parts of a javascript ",a.DOM.code(null,"Date")," object. Since dates are ",a.DOM.em(null,"highly")," localized we make use of the excellent ",a.DOM.a({target:"_blank",href:"https://github.com/jquery/globalize/tree/79ae658b842f75f58199d6e9074e01f7ce207468"},"Globalize.js")," library internally to format and parse dates from Strings. It is up to you to ","set"," the culture via the ",a.DOM.code(null,"Globalize.culture()")," method. All format props expect Globalize compatible format string.",a.DOM.br(null),a.DOM.br(null),a.DOM.strong(null,"Note: we expect a pre 1.0.0 version as 1.0 will dramatically change the Globalize API, once 1.0 is stable we will switch to it as well")),a.DOM.p(null,"Dates are never mutated but always return and operate on a new Date instance. When the ",a.DOM.code(null,"calendar")," prop is ","set"," the widget takes all props vailable to the Calendar widget (see above), the same is true for the keyboard navigation!"),l(null),i({code:"render: function(){\n var DateTimePicker = require('react-widgets').DateTimePicker\n //... \n\n return (\n \n \n \n \n ]")),a.DOM.p(null,"Determines how the widget parses the typed date string into a Date object. You can provide an array of formats to try, or provide a ","function"," that returns a date to handle parsing yourself"),a.DOM.h3({className:"prop-header",id:p+"initialView"},"initialView ",a.DOM.small(null,"Enum",s(null,'"month"'))),a.DOM.p(null,"The starting and lowest level view the calendar can navigate down to."),a.DOM.p(null,"Acceptable values are:",a.DOM.code(null,'"month"')," ",a.DOM.code(null,'"year"')," ",a.DOM.code(null,'"decade"')," ",a.DOM.code(null,'"century"')),a.DOM.h3({className:"prop-header",id:p+"finalView"},"finalView ",a.DOM.small(null,"Enum",s(null,'"century"'))),a.DOM.p(null,"The highest level view the calendar can navigate up to. This value should be higher than ",a.DOM.code(null,"initialView")),a.DOM.p(null,"Acceptable values are:",a.DOM.code(null,'"month"')," ",a.DOM.code(null,'"year"')," ",a.DOM.code(null,'"decade"')," ",a.DOM.code(null,'"century"')),a.DOM.h3({className:"prop-header",id:p+"open"},"open ",a.DOM.small(null,"[Boolean, String]",s(null,"false")),a.DOM.strong(null,"controllable (onToggle, defaultOpen)")),a.DOM.p(null,"Whether or not the ",u," is open. When unset (",a.DOM.code(null,"undefined"),") the ",u," will handle the opening and closing internally. The ",a.DOM.code(null,"defaultOpen")," prop can be used to ","set"," an initialization value for uncontrolled widgets."),a.DOM.p(null,"Acceptable values are: ",a.DOM.code(null,"false")," ",a.DOM.code(null,'"calendar"')," ",a.DOM.code(null,'"time"')),a.DOM.h3({className:"prop-header",id:p+"onToggle"},"onToggle ",a.DOM.small(null,"Function(Boolean isOpen)")),a.DOM.p(null,"Called when the ",u," is about to open or close. ",a.DOM.code(null,"onToggle")," should be used when the ",a.DOM.code(null,"open")," prop is ","set"," otherwise the widget will never open or close."),a.DOM.h3({className:"prop-header",id:p+"duration"},"duration ",a.DOM.small(null,"Number",s(null,"250"))),a.DOM.p(null,"The speed, in milliseconds, of the either dropdown animation."),a.DOM.h3({className:"prop-header",id:p+"isRtl"},"isRtl ",a.DOM.small(null,"Boolean",s(null,"false"))),a.DOM.p(null,"mark whether the widget should render right-to-left. This property can also be implicitly passed to the widget through a ",a.DOM.code(null,"childContext")," prop (",a.DOM.code(null,"isRtl"),") this allows higher level application components to specify the direction."),a.DOM.h3({className:"prop-header",id:p+"messages"},"messages ",a.DOM.small(null,"Object")),a.DOM.p(null,"Object hash containing display text and/or text for screen readers. Use the ",a.DOM.code(null,"messages")," object to localize widget text and increase accessibility."),a.DOM.h3(null,"messages.calendarButton ",a.DOM.small(null,"String",s(null,'"Select Date"'))),a.DOM.p(null,"title and screen reader text for the left arrow button"),a.DOM.h3(null,"messages.timeButton ",a.DOM.small(null,"String",s(null,'"Select Time"'))),a.DOM.p(null,"title and screen reader text for the right arrow button"),a.DOM.h2({id:p+"keyboard"},"Keyboard Navigation"),a.DOM.ul({className:"list-unstyled keyboard-list"},a.DOM.li(null,a.DOM.strong(null,"All Calendar keys above also apply")),a.DOM.li(null,a.DOM.kbd(null,"alt + down arrow")," open calendar or times"),a.DOM.li(null,a.DOM.kbd(null,"alt + up arrow")," close calendar or times"),a.DOM.li(null,a.DOM.kbd(null,"down arrow")," move focus to next time"),a.DOM.li(null,a.DOM.kbd(null,"up arrow")," move focus to previous time"),a.DOM.li(null,a.DOM.kbd(null,"home")," move focus to first time"),a.DOM.li(null,a.DOM.kbd(null,"end")," move focus to last time"),a.DOM.li(null,a.DOM.kbd(null,"enter")," select focused item"),a.DOM.li(null,a.DOM.kbd(null,"any key")," search list for time starting with key"))))}});e.exports=d},function(e,t,n){var a=n(1),s=n(21),i=n(22),r=n(19),o=n(18),l=n(28),p="number-picker/",u=a.createClass({displayName:"NumberPicker",render:function(){return this.transferPropsTo(a.DOM.section(null,a.DOM.h1({className:"page-header"},"Number Picker",a.DOM.span({className:"pull-right"},r({title:"props",bsStyle:"link",pullRight:!0},o({href:"#"+p+"value"},"value"),o({href:"#"+p+"onChange"},"onChange"),o({divider:!0}),o({href:"#"+p+"format"},"format"),o({href:"#"+p+"min"},"min"),o({href:"#"+p+"max"},"max"),o({href:"#"+p+"step"},"step"),o({href:"#"+p+"isRtl"},"isRtl"),o({href:"#"+p+"messages"},"messages"),o({divider:!0}),o({href:"#"+p+"keyboard"},"Keyboard Navigation")))),a.DOM.p(null,"Select an item from the list, or input a custom value. The vombobox can also make suggestions as you type"),l(null),i({code:"render: function(){\n //... \n\n return (\n \n\n \n\n )\n}"}),a.DOM.h2(null,"Props"),a.DOM.h3({className:"prop-header",id:p+"value"},"value ",a.DOM.small(null,"Number?"),a.DOM.strong(null,"controllable (onChange, defaultValue)")),a.DOM.p(null,"The current value of the NumberPicker."),a.DOM.h3({className:"prop-header",id:p+"onChange"},"onChange ",a.DOM.small(null,"Function(Number? value)")),a.DOM.p(null,"Change event Handler that is called when the value is changed. The handler is called with the current numeric value or null."),a.DOM.h3({className:"prop-header",id:p+"format"},"format ",a.DOM.small(null,"String",s(null,'"d"'))),a.DOM.p(null,"A format string used to display the number value. For more information on prefined and custom number and currency formats visit the ",a.DOM.a({href:"https://github.com/jquery/globalize/tree/79ae658b842f75f58199d6e9074e01f7ce207468#number-formatting"},"Globalize.js documentation ",a.DOM.i({className:"fa fa-external-link"})),"."),a.DOM.h3({className:"prop-header",id:p+"min"},"min ",a.DOM.small(null,"Number",s(null,"-Infinity"))),a.DOM.p(null,"The minimum number that the NumberPicker value."),a.DOM.h3({className:"prop-header",id:p+"max"},"max ",a.DOM.small(null,"Number",s(null,"Infinity"))),a.DOM.p(null,"The maximum number that the NumberPicker value."),a.DOM.h3({className:"prop-header",id:p+"step"},"step ",a.DOM.small(null,"Number",s(null,"1"))),a.DOM.p(null,"Amount to increase or decrease value when using the spinner buttons."),a.DOM.h3({className:"prop-header",id:p+"isRtl"},"isRtl ",a.DOM.small(null,"Boolean",s(null,"false"))),a.DOM.p(null,"mark whether the widget should render right-to-left. This property can also be implicitly passed to the widget through a ",a.DOM.code(null,"childContext")," prop (",a.DOM.code(null,"isRtl"),") this allows higher level application components to specify the direction."),a.DOM.h3({className:"prop-header",id:p+"messages"},"messages ",a.DOM.small(null,"Object")),a.DOM.p(null,"Object hash containing display text and/or text for screen readers. Use the ",a.DOM.code(null,"messages")," object to localize widget text and increase accessibility."),a.DOM.h3(null,"messages.increment ",a.DOM.small(null,"String",s(null,'"increment value"'))),a.DOM.p(null,"Number picker spinner up button text for screen readers"),a.DOM.h3(null,"messages.decrement ",a.DOM.small(null,"String",s(null,'"decrement value"'))),a.DOM.p(null,"Number picker spinner down button text for screen readers "),a.DOM.h2({id:p+"keyboard"},"Keyboard Navigation"),a.DOM.ul({className:"list-unstyled keyboard-list"},a.DOM.li(null,a.DOM.kbd(null,"down arrow")," decrement value"),a.DOM.li(null,a.DOM.kbd(null,"up arrow")," increment value"),a.DOM.li(null,a.DOM.kbd(null,"home")," ","set"," value to minimum value if finite"),a.DOM.li(null,a.DOM.kbd(null,"end")," ","set"," value to maximum value if finite"))))}});e.exports=u},function(e,t,n){"use strict";var a=n(2);e.exports=function(e){return a.isArray(e)||(e=a.transform(e,function(e,t,n){t&&e.push(n)},[])),e.join(" ")}},function(e,t,n){var a=n(1),s=n(29),i=n(30),r=n(32),o=n(33),l=n(34),p=n(35),u=n(36),d=a.createClass({displayName:"Nav",mixins:[s,i],propTypes:{bsStyle:a.PropTypes.oneOf(["tabs","pills"]),stacked:a.PropTypes.bool,justified:a.PropTypes.bool,onSelect:a.PropTypes.func,collapsable:a.PropTypes.bool,expanded:a.PropTypes.bool,navbar:a.PropTypes.bool},getDefaultProps:function(){return{bsClass:"nav"}},getCollapsableDOMNode:function(){return this.getDOMNode()},getCollapsableDimensionValue:function(){var e=this.refs.ul.getDOMNode(),t=e.offsetHeight,n=o.getComputedStyles(e);return t+parseInt(n.marginTop,10)+parseInt(n.marginBottom,10)},render:function(){var e=this.props.collapsable?this.getCollapsableClassSet():{};return e["navbar-collapse"]=this.props.collapsable,this.transferPropsTo(this.props.navbar&&!this.props.collapsable?this.renderUl():a.DOM.nav({className:r(e)},this.renderUl()))},renderUl:function(){var e=this.getBsClassSet();return e["nav-stacked"]=this.props.stacked,e["nav-justified"]=this.props.justified,e["navbar-nav"]=this.props.navbar,e["pull-right"]=this.props.pullRight,a.DOM.ul({className:r(e),ref:"ul"},p.map(this.props.children,this.renderNavItem))},getChildActiveProp:function(e){return e.props.active?!0:null!=this.props.activeKey&&e.props.key===this.props.activeKey?!0:null!=this.props.activeHref&&e.props.href===this.props.activeHref?!0:e.props.active},renderNavItem:function(e){return l(e,{active:this.getChildActiveProp(e),activeKey:this.props.activeKey,activeHref:this.props.activeHref,onSelect:u(e.props.onSelect,this.props.onSelect),ref:e.props.ref,key:e.props.key,navItem:!0})}});e.exports=d},function(e,t,n){var a=n(1),s=n(31),i=n(33),r=a.createClass({displayName:"Affix",statics:{domUtils:i},mixins:[s],render:function(){var e={top:this.state.affixPositionTop};return this.transferPropsTo(a.DOM.div({className:this.state.affixClass,style:e},this.props.children))}});e.exports=r},function(e,t,n){var a=n(1),s=n(32),i=n(29),r=a.createClass({displayName:"NavItem",mixins:[i],propTypes:{onSelect:a.PropTypes.func,active:a.PropTypes.bool,disabled:a.PropTypes.bool,href:a.PropTypes.string,title:a.PropTypes.string},getDefaultProps:function(){return{href:"#"}},render:function(){var e={active:this.props.active,disabled:this.props.disabled};return this.transferPropsTo(a.DOM.li({className:s(e)},a.DOM.a({href:this.props.href,title:this.props.title,onClick:this.handleClick,ref:"anchor"},this.props.children)))},handleClick:function(e){this.props.onSelect&&(e.preventDefault(),this.props.disabled||this.props.onSelect(this.props.key,this.props.href))}});e.exports=r},function(e,t,n){n(20)(n(16))},function(e){e.exports="body{margin-bottom:40px;background:#FAFAF9}h2,h3{margin-top:40px}h3{color:#284C6D;border-bottom:1px solid #eee;padding-bottom:10px;font-size:20px}.example{background-color:#fff;margin-top:20px;position:relative;border:#ddd 1px solid;border-top-right-radius:4px;border-top-left-radius:4px;padding:35px 20px 20px}code{color:#555;background-color:rgba(0,0,0,.07)}.example:before{position:absolute;top:5px;left:10px;color:#959595;content:'Example'}.example+pre{margin-top:0!important;border-top-width:0;border-top-left-radius:0;border-top-right-radius:0}.keyboard-list.list-unstyled{padding-left:20px}.keyboard-list>li{padding:10px 0}.prop-header{position:relative;overflow:visible}.prop-header:before{display:block;content:\" \";margin-top:-65px;height:65px;visibility:hidden}h3{overflow:hidden}h3>small{margin-left:5px;color:#555;font-weight:700;font-size:80%;font-family:Menlo,Monaco,Consolas,'Courier New',monospace}h3>strong{float:right;font-weight:400;line-height:1;color:#AF006E;font-size:65%;font-style:italic}.rw-widget{max-width:300px}.nav-aside{position:fixed;top:72px}@media (max-width:767px){.nav-aside{position:static}}pre>code.hljs{background:0 0}pre{background:#F4F4F4}.navbar-default{background-color:#0079C1}.navbar-default .navbar-nav>li>a{color:#fff;border-bottom:3px solid #0079C1}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li.active>a,.navbar-default .navbar-nav>li.active>a:hover{color:#E7CAA1;border-bottom-color:#E7CAA1;background:0 0}.dropdown-menu{border-radius:0}.dropdown-menu>li>a,.side-nav .nav>li>a{color:#284C6D;border-left:2px solid transparent}.side-nav .nav>li>a:hover,.side-nav .nav>li.active>a,.dropdown-menu>li>a:hover,.dropdown-menu>li.active>a{color:#B59E7D;background:0 0;border-left-color:#E7CAA1}.page-header{border-bottom-color:#0079C1}.page-header,.h1,h2,h4,h5{color:#0079C1}.example .demo{margin:40px auto 10px}.example .api-panel{padding-top:10px;border-top:#ddd 1px solid}.example.example-vertical .demo{margin:20px auto 30px}.example.example-vertical .api-panel{margin-top:0;border-top:#ddd 1px solid;padding-top:10px}@media (min-width:768px){.example .api-panel{margin-top:-10px;padding-top:0;border-left:#ddd 1px solid;border-top-width:0}}.overdue{color:#bd362f}"},function(e,t,n){var a=n(1),s=n(29),i=n(37),r=n(32),o=n(34),l=n(35),p=n(36),u=(n(12),a.createClass({displayName:"Navbar",mixins:[s],propTypes:{fixedTop:a.PropTypes.bool,fixedBottom:a.PropTypes.bool,staticTop:a.PropTypes.bool,inverse:a.PropTypes.bool,fluid:a.PropTypes.bool,role:a.PropTypes.string,componentClass:i.componentClass,brand:a.PropTypes.renderable,toggleButton:a.PropTypes.renderable,onToggle:a.PropTypes.func,navExpanded:a.PropTypes.bool,defaultNavExpanded:a.PropTypes.bool},getDefaultProps:function(){return{bsClass:"navbar",bsStyle:"default",role:"navigation",componentClass:a.DOM.nav}},getInitialState:function(){return{navExpanded:this.props.defaultNavExpanded}},shouldComponentUpdate:function(){return!this._isChanging},handleToggle:function(){this.props.onToggle&&(this._isChanging=!0,this.props.onToggle(),this._isChanging=!1),this.setState({navOpen:!this.state.navOpen})},isNavOpen:function(){return null!=this.props.navOpen?this.props.navOpen:this.state.navOpen},render:function(){var e=this.getBsClassSet(),t=this.props.componentClass;return e["navbar-fixed-top"]=this.props.fixedTop,e["navbar-fixed-bottom"]=this.props.fixedBottom,e["navbar-static-top"]=this.props.staticTop,e["navbar-inverse"]=this.props.inverse,this.transferPropsTo(t({className:r(e)},a.DOM.div({className:this.props.fluid?"container-fluid":"container"},this.props.brand||this.props.toggleButton||this.props.toggleNavKey?this.renderHeader():null,l.map(this.props.children,this.renderChild))))},renderChild:function(e){return o(e,{navbar:!0,collapsable:null!=this.props.toggleNavKey&&this.props.toggleNavKey===e.props.key,expanded:null!=this.props.toggleNavKey&&this.props.toggleNavKey===e.props.key&&this.isNavOpen(),key:e.props.key,ref:e.props.ref})},renderHeader:function(){var e;return this.props.brand&&(e=a.isValidComponent(this.props.brand)?o(this.props.brand,{className:"navbar-brand"}):a.DOM.span({className:"navbar-brand"},this.props.brand)),a.DOM.div({className:"navbar-header"},e,this.props.toggleButton||null!=this.props.toggleNavKey?this.renderToggleButton():null)},renderToggleButton:function(){var e;return a.isValidComponent(this.props.toggleButton)?o(this.props.toggleButton,{className:"navbar-toggle",onClick:p(this.handleToggle,this.props.toggleButton.props.onClick)}):(e=null!=this.props.toggleButton?this.props.toggleButton:[a.DOM.span({className:"sr-only",key:0},"Toggle navigation"),a.DOM.span({className:"icon-bar",key:1}),a.DOM.span({className:"icon-bar",key:2}),a.DOM.span({className:"icon-bar",key:3})],a.DOM.button({className:"navbar-toggle",type:"button",onClick:this.handleToggle},e))}}));e.exports=u},function(e,t,n){var a=n(1),s=n(32),i=a.createClass({displayName:"MenuItem",propTypes:{header:a.PropTypes.bool,divider:a.PropTypes.bool,href:a.PropTypes.string,title:a.PropTypes.string,onSelect:a.PropTypes.func},getDefaultProps:function(){return{href:"#"}},handleClick:function(e){this.props.onSelect&&(e.preventDefault(),this.props.onSelect(this.props.key))},renderAnchor:function(){return a.DOM.a({onClick:this.handleClick,href:this.props.href,title:this.props.title,tabIndex:"-1"},this.props.children)},render:function(){var e={"dropdown-header":this.props.header,divider:this.props.divider},t=null;return this.props.header?t=this.props.children:this.props.divider||(t=this.renderAnchor()),this.transferPropsTo(a.DOM.li({role:"presentation",title:null,href:null,className:s(e)},t))}});e.exports=i},function(e,t,n){var a=n(1),s=n(32),i=n(34),r=n(36),o=n(29),l=n(38),p=n(39),u=n(40),d=n(41),c=n(35),h=a.createClass({displayName:"DropdownButton",mixins:[o,l],propTypes:{pullRight:a.PropTypes.bool,dropup:a.PropTypes.bool,title:a.PropTypes.renderable,href:a.PropTypes.string,onClick:a.PropTypes.func,onSelect:a.PropTypes.func,navItem:a.PropTypes.bool},render:function(){var e="dropdown-toggle",t=this.props.navItem?"renderNavItem":"renderButtonGroup";return this[t]([this.transferPropsTo(p({ref:"dropdownButton",className:e,onClick:this.handleDropdownClick,key:0,navDropdown:this.props.navItem,navItem:null,title:null,pullRight:null,dropup:null},this.props.title," ",a.DOM.span({className:"caret"}))),d({ref:"menu","aria-labelledby":this.props.id,pullRight:this.props.pullRight,key:1},c.map(this.props.children,this.renderMenuItem))])},renderButtonGroup:function(e){var t={open:this.state.open,dropup:this.props.dropup};return u({bsSize:this.props.bsSize,className:s(t)},e)},renderNavItem:function(e){var t={dropdown:!0,open:this.state.open,dropup:this.props.dropup};return a.DOM.li({className:s(t)},e)},renderMenuItem:function(e){var t=this.props.onSelect||e.props.onSelect?this.handleOptionSelect:null;return i(e,{onSelect:r(e.props.onSelect,t),key:e.props.key,ref:e.props.ref})},handleDropdownClick:function(e){e.preventDefault(),this.setDropdownState(!this.state.open)},handleOptionSelect:function(e){this.props.onSelect&&this.props.onSelect(e),this.setDropdownState(!1)}});e.exports=h},function(e){e.exports=function(e){var t=document.createElement("style");t.type="text/css";var n=document.getElementsByTagName("head")[0];n.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}},function(e,t,n){var a=n(1),s=a.createClass({displayName:"defaultValue",render:function(){return a.DOM.span({className:"default"},"(default: ",this.props.children,")")}});e.exports=s},function(e,t,n){{var a=n(1);n(2)}e.exports=a.createClass({displayName:"exports",getDefaultProps:function(){return{language:"js"}},render:function(){return a.DOM.pre(null,a.DOM.code({className:this.props.language},this.props.code))}})},function(e,t,n){var a=n(1),s=n(39),i=n(40),r=n(42).DropDownlist,o=n(42).NumberPicker,l=a.createClass({displayName:"valueComp",render:function(){return a.DOM.span(null,a.DOM.i({className:"fa fa-comment"})," "+this.props.item.label)}}),p=a.createClass({displayName:"itemComp",render:function(){var e=["bicycle","area-chart","anchor"];return this._icon||(this._icon=e[_.random(0,2)]),a.DOM.div(null,a.DOM.i({className:"fa fa-"+this._icon})," "+this.props.item.label)}}),u=a.createClass({displayName:"DropdownApi",getInitialState:function(){return{duration:250}},render:function(){var e=[{label:"orange",id:1},{label:"blue",id:2},{label:"red",id:3}];return a.DOM.div({className:"example"},a.DOM.div({className:"row"},a.DOM.div({className:"col-sm-8 demo"},a.DOM.div({className:"form-group"},r({disabled:"disabled"===this.state.disabled,readOnly:"readonly"===this.state.disabled,value:this.state.value||1,data:e,duration:this.state.duration,busy:this.state.busy,onChange:this._change,isRtl:this.state.isRtl,valueField:"id",textField:"label"})),a.DOM.div({className:"form-group"},a.DOM.label(null,"Custom Rendering"),r({disabled:"disabled"===this.state.disabled,readOnly:"readonly"===this.state.disabled,value:this.state.value||1,valueComponent:l,itemComponent:p,data:e,duration:this.state.duration,busy:this.state.busy,onChange:this._change,isRtl:this.state.isRtl,valueField:"id",textField:"label"}))),a.DOM.div({className:"col-sm-4 api-panel"},a.DOM.div({className:"form-group"},a.DOM.label({className:"checkbox-inline"},a.DOM.input({type:"checkbox",checked:this.state.isRtl,onChange:_.partial(this._set,"isRtl",!this.state.isRtl)}),"Right to Left")),a.DOM.div({className:"form-group"},i(null,s({active:"disabled"===this.state.disabled,onClick:this.disabled},"Disable"),s({active:"readonly"===this.state.disabled,onClick:this.readOnly},"Readonly")),s({style:{marginLeft:10},active:this.state.busy,onClick:_.partial(this._set,"busy",!this.state.busy)},"Busy")),a.DOM.div({className:"form-group"},a.DOM.label({className:"form-label"},"Duration"),o({value:this.state.duration,step:200,min:0,max:1e3,onChange:_.partial(this._set,"duration")})))))},_change:function(e){this.setState({value:e})},_set:function(e,t){var n={};n[e]=t,this.setState(n)},readOnly:function(){var e="readonly"===this.state.disabled?!1:"readonly";this.setState({disabled:e})},disabled:function(){var e="disabled"===this.state.disabled?!1:"disabled";this.setState({disabled:e})}});e.exports=u},function(e,t,n){function a(e){return function(t){return e(t.target.value)}}for(var s=n(1),i=n(2),r=n(39),o=n(40),l=n(42),p=new(n(48)),u=new Array(100),d=0;d=t-r?"bottom":null!=i&&i>=n?"top":!1,this.affixed!==o&&(null!=this.unpin&&(e.style.top=""),l="affix"+(o?"-"+o:""),this.affixed=o,this.unpin="bottom"===o?this.getPinnedOffset(e):null,"bottom"===o&&(e.className=e.className.replace(/affix-top|affix-bottom|affix/,"affix-top"),p=t-r-e.offsetHeight-s.getOffset(e).top),this.setState({affixClass:l,affixPositionTop:p}))))},checkPositionWithEventLoop:function(){setTimeout(this.checkPosition,0)},componentDidMount:function(){this._onWindowScrollListener=i.listen(window,"scroll",this.checkPosition),this._onDocumentClickListener=i.listen(document,"click",this.checkPositionWithEventLoop)},componentWillUnmount:function(){this._onWindowScrollListener&&this._onWindowScrollListener.remove(),this._onDocumentClickListener&&this._onDocumentClickListener.remove()},componentDidUpdate:function(e,t){t.affixClass===this.state.affixClass&&this.checkPositionWithEventLoop()}};e.exports=r},function(e){function t(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).join(" "):Array.prototype.join.call(arguments," ")}e.exports=t},function(e){function t(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)}function n(e){if(window.jQuery)return window.jQuery(e).offset();var t=document.documentElement,n={top:0,left:0};return"undefined"!=typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}function a(e,a){if(window.jQuery)return window.jQuery(e).position();var s,i={top:0,left:0};return"fixed"===t(e).position?s=e.getBoundingClientRect():(a||(a=a(e)),s=n(e),"HTML"!==a.nodeName&&(i=n(a)),i.top+=parseInt(t(a).borderTopWidth,10),i.left+=parseInt(t(a).borderLeftWidth,10)),{top:s.top-i.top-parseInt(t(e).marginTop,10),left:s.left-i.left-parseInt(t(e).marginLeft,10)}}function s(e){for(var n=document.documentElement,a=e.offsetParent||n;a&&"HTML"!==a.nodeName&&"static"===t(a).position;)a=a.offsetParent;return a||n}e.exports={getComputedStyles:t,getOffset:n,getPosition:a,offsetParent:s}},function(e,t,n){function a(e){e||(e="");var t,n=arguments.length;if(n>1)for(var a=1;n>a;a++)t=arguments[a],t&&(e+=" "+t);return e}function s(e){return function(t,n,a){t[n]=t.hasOwnProperty(n)?e(t[n],a):a}}function i(){}function r(e,t){for(var n in t)if(t.hasOwnProperty(n)){var a=c[n];a&&c.hasOwnProperty(n)?a(e,n,t[n]):e.hasOwnProperty(n)||(e[n]=t[n])}return e}function o(e,t){return r(u(e),t)}function l(e,t){var n=h.mergeProps(t,e.props);return!n.hasOwnProperty(m)&&e.props.hasOwnProperty(m)&&(n.children=e.props.children),0===p.version.indexOf("0.10.")?e.constructor.ConvenienceConstructor(n):e.constructor(n)}var p=n(1),u=n(46),d=s(function(e,t){return u(t,e)}),c={children:i,className:s(a),key:i,ref:i,style:d},h={mergeProps:o},m="children";e.exports=l},function(e,t,n){function a(e,t,n){var a=0;return o.Children.map(e,function(e){if(o.isValidComponent(e)){var s=a;return a++,t.call(n,e,s)}return e})}function s(e,t,n){var a=0;return o.Children.forEach(e,function(e){o.isValidComponent(e)&&(t.call(n,e,a),a++)})}function i(e){var t=0;return o.Children.forEach(e,function(e){o.isValidComponent(e)&&t++}),t}function r(e){var t=!1;return o.Children.forEach(e,function(e){!t&&o.isValidComponent(e)&&(t=!0)}),t}var o=n(1);e.exports={map:a,forEach:s,numberOf:i,hasValidComponent:r}},function(e){function t(e,t){var n="function"==typeof e,a="function"==typeof t;return n||a?n?a?function(){e.apply(this,arguments),t.apply(this,arguments)}:e:t:null}e.exports=t},function(e,t,n){var a=n(1),s={componentClass:function(e,t,n){return a.isValidClass(e[t])?void 0:new Error("Invalid `"+t+"` prop in `"+n+"`, expected be a valid React class")},mountable:function(e,t,n){return"object"!=typeof e[t]||"function"!=typeof e[t].getDOMNode&&1!==e[t].nodeType?new Error("Invalid `"+t+"` prop in `"+n+"`, expected be a DOM element or an object that has a `getDOMNode` method"):void 0}};e.exports=s},function(e,t,n){function a(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}var s=(n(1),n(45)),i={getInitialState:function(){return{open:!1}},setDropdownState:function(e,t){e?this.bindRootCloseHandlers():this.unbindRootCloseHandlers(),this.setState({open:e},t)},handleDocumentKeyUp:function(e){27===e.keyCode&&this.setDropdownState(!1)},handleDocumentClick:function(e){a(e.target,this.getDOMNode())||this.setDropdownState(!1)},bindRootCloseHandlers:function(){this._onDocumentClickListener=s.listen(document,"click",this.handleDocumentClick),this._onDocumentKeyupListener=s.listen(document,"keyup",this.handleDocumentKeyUp)},unbindRootCloseHandlers:function(){this._onDocumentClickListener&&this._onDocumentClickListener.remove(),this._onDocumentKeyupListener&&this._onDocumentKeyupListener.remove()},componentWillUnmount:function(){this.unbindRootCloseHandlers()}};e.exports=i},function(e,t,n){var a=n(1),s=n(32),i=n(29),r=a.createClass({displayName:"Button",mixins:[i],propTypes:{active:a.PropTypes.bool,disabled:a.PropTypes.bool,block:a.PropTypes.bool,navItem:a.PropTypes.bool,navDropdown:a.PropTypes.bool},getDefaultProps:function(){return{bsClass:"button",bsStyle:"default",type:"button"}},render:function(){var e,t=this.props.navDropdown?{}:this.getBsClassSet();return t.active=this.props.active,t["btn-block"]=this.props.block,this.props.navItem?this.renderNavItem(t):(e=this.props.href||this.props.navDropdown?"renderAnchor":"renderButton",this[e](t))},renderAnchor:function(e){var t=this.props.href||"#";return e.disabled=this.props.disabled,this.transferPropsTo(a.DOM.a({href:t,className:s(e),role:"button"},this.props.children))},renderButton:function(e){return this.transferPropsTo(a.DOM.button({className:s(e)},this.props.children))},renderNavItem:function(e){var t={active:this.props.active};return a.DOM.li({className:s(t)},this.renderAnchor(e))}});e.exports=r},function(e,t,n){var a=n(1),s=n(32),i=n(29),r=(n(39),a.createClass({displayName:"ButtonGroup",mixins:[i],propTypes:{vertical:a.PropTypes.bool,justified:a.PropTypes.bool},getDefaultProps:function(){return{bsClass:"button-group"}},render:function(){var e=this.getBsClassSet();return e["btn-group"]=!this.props.vertical,e["btn-group-vertical"]=this.props.vertical,e["btn-group-justified"]=this.props.justified,this.transferPropsTo(a.DOM.div({className:s(e)},this.props.children))}}));e.exports=r},function(e,t,n){var a=n(1),s=n(32),i=n(34),r=n(36),o=n(35),l=a.createClass({displayName:"DropdownMenu",propTypes:{pullRight:a.PropTypes.bool,onSelect:a.PropTypes.func},render:function(){var e={"dropdown-menu":!0,"dropdown-menu-right":this.props.pullRight};return this.transferPropsTo(a.DOM.ul({className:s(e),role:"menu"},o.map(this.props.children,this.renderMenuItem)))},renderMenuItem:function(e){return i(e,{onSelect:r(e.props.onSelect,this.props.onSelect),key:e.props.key,ref:e.props.ref})}});e.exports=l},function(e,t,n){e.exports={DropDownlist:n(49),Combobox:n(50),Calendar:n(51),DateTimePicker:n(52),NumberPicker:n(53),Select:n(54),utils:{ReplaceTransitionGroup:n(55),SlideTransition:n(56)}}},function(e){e.exports={CLASSES:{alert:"alert",button:"btn","button-group":"btn-group","button-toolbar":"btn-toolbar",column:"col","input-group":"input-group",form:"form",glyphicon:"glyphicon",label:"label",panel:"panel","panel-group":"panel-group","progress-bar":"progress-bar",nav:"nav",navbar:"navbar",modal:"modal",row:"row",well:"well"},STYLES:{"default":"default",primary:"primary",success:"success",info:"info",warning:"warning",danger:"danger",link:"link",inline:"inline",tabs:"tabs",pills:"pills"},SIZES:{large:"lg",medium:"md",small:"sm",xsmall:"xs"},GLYPHS:["asterisk","plus","euro","minus","cloud","envelope","pencil","glass","music","search","heart","star","star-empty","user","film","th-large","th","th-list","ok","remove","zoom-in","zoom-out","off","signal","cog","trash","home","file","time","road","download-alt","download","upload","inbox","play-circle","repeat","refresh","list-alt","lock","flag","headphones","volume-off","volume-down","volume-up","qrcode","barcode","tag","tags","book","bookmark","print","camera","font","bold","italic","text-height","text-width","align-left","align-center","align-right","align-justify","list","indent-left","indent-right","facetime-video","picture","map-marker","adjust","tint","edit","share","check","move","step-backward","fast-backward","backward","play","pause","stop","forward","fast-forward","step-forward","eject","chevron-left","chevron-right","plus-sign","minus-sign","remove-sign","ok-sign","question-sign","info-sign","screenshot","remove-circle","ok-circle","ban-circle","arrow-left","arrow-right","arrow-up","arrow-down","share-alt","resize-full","resize-small","exclamation-sign","gift","leaf","fire","eye-open","eye-close","warning-sign","plane","calendar","random","comment","magnet","chevron-up","chevron-down","retweet","shopping-cart","folder-close","folder-open","resize-vertical","resize-horizontal","hdd","bullhorn","bell","certificate","thumbs-up","thumbs-down","hand-right","hand-left","hand-up","hand-down","circle-arrow-right","circle-arrow-left","circle-arrow-up","circle-arrow-down","globe","wrench","tasks","filter","briefcase","fullscreen","dashboard","paperclip","heart-empty","link","phone","pushpin","usd","gbp","sort","sort-by-alphabet","sort-by-alphabet-alt","sort-by-order","sort-by-order-alt","sort-by-attributes","sort-by-attributes-alt","unchecked","expand","collapse-down","collapse-up","log-in","flash","log-out","new-window","record","save","open","saved","import","export","send","floppy-disk","floppy-saved","floppy-remove","floppy-save","floppy-open","credit-card","transfer","cutlery","header","compressed","earphone","phone-alt","tower","stats","sd-video","hd-video","subtitles","sound-stereo","sound-dolby","sound-5-1","sound-6-1","sound-7-1","copyright-mark","registration-mark","cloud-download","cloud-upload","tree-conifer","tree-deciduous"]}},function(e){function t(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete i.animationend.animation,"TransitionEvent"in window||delete i.transitionend.transition;for(var n in i){var a=i[n];for(var s in a)if(s in t){r.push(a[s]);break}}}function n(e,t,n){e.addEventListener(t,n,!1)}function a(e,t,n){e.removeEventListener(t,n,!1)}var s=!("undefined"==typeof window||!window.document||!window.document.createElement),i={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},r=[];s&&t();var o={addEndEventListener:function(e,t){return 0===r.length?void window.setTimeout(t,0):void r.forEach(function(a){n(e,a,t)})},removeEndEventListener:function(e,t){0!==r.length&&r.forEach(function(n){a(e,n,t)})}};e.exports=o},function(e){var t={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}};e.exports=t},function(e){function t(e,t){if(null!=t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function n(e,n){var a={};return t(a,e),t(a,n),a}e.exports=n},function(e){function t(e,t){var n=m.month(e),a=n+t;return e=m.month(e,a),0>a&&(a=12+t),m.month(e)!==a%12&&(e=m.date(e,0)),e}function n(e){return e=e.charAt(0).toUpperCase()+e.substr(1),function(t,n){return void 0===n?t["get"+e]():(t=new Date(t),t["set"+e](n),t)}}function a(e){return function(t,n,a){return e(+m.startOf(t,a),+m.startOf(n,a))}}var s="milliseconds",i="seconds",r="minutes",o="hours",l="day",p="week",u="month",d="year",c="decade",h="century",m=e.exports={startOfWeek:function(){return 0},add:function(e,n,a){if(e=new Date(e),a===s)return m.milliseconds(e,m.milliseconds(e)+n);if(a===i)return m.seconds(e,m.seconds(e)+n);if(a===r)return m.minutes(e,m.minutes(e)+n);if(a===o)return m.hours(e,m.hours(e)+n);if(a===l)return m.date(e,m.date(e)+n);if(a===p)return m.date(e,m.date(e)+7*n);if(a===u)return t(e,n);if(a===d)return m.year(e,m.year(e)+n);if(a===c)return m.year(e,m.year(e)+10*n);if(a===h)return m.year(e,m.year(e)+100*n);throw new TypeError('Invalid units: "'+a+'"')},subtract:function(e,t,n){return m.add(e,-t,n)},startOf:function(e,t){switch(e=new Date(e),t){case"century":case"decade":case"year":e=m.month(e,0);case"month":e=m.date(e,1);case"week":case"day":e=m.hours(e,0);case"hours":e=m.minutes(e,0);case"minutes":e=m.seconds(e,0);case"seconds":e=m.milliseconds(e,0)}return t===c&&(e=m.subtract(e,m.year(e)%10,"year")),t===h&&(e=m.subtract(e,m.year(e)%100,"year")),t===p&&(e=m.weekday(e,0)),e},endOf:function(e,t){return e=new Date(e),e=m.startOf(e,t),e=m.add(e,1,t),e=m.subtract(e,1,s)},eq:a(function(e,t){return e===t}),gt:a(function(e,t){return e>t}),gte:a(function(e,t){return e>=t}),lt:a(function(e,t){return t>e}),lte:a(function(e,t){return t>=e}),min:function(){var e=Array.prototype.slice.call(arguments);return new Date(Math.min.apply(Math,e))},max:function(){var e=Array.prototype.slice.call(arguments);return new Date(Math.max.apply(Math,e))},inRange:function(e,t,n,a){return a=a||"day",m.gte(e,t,a)&&m.lte(e,n,a)},milliseconds:n("Milliseconds"),seconds:n("Seconds"),minutes:n("Minutes"),hours:n("Hours"),day:n("Day"),date:n("Date"),month:n("Month"),year:n("FullYear"),decade:function(e,t){return void 0==t?m.year(m.startOf(e,c)):m.add(e,t+10,d)},century:function(e,t){return void 0==t?m.year(m.startOf(e,h)):m.add(e,t+100,d)},weekday:function(e,t){var n=(m.day(e)+7-m.startOfWeek())%7;return void 0==t?n:m.add(e,t-n,l)}}},function(e,t){var n,a;!function(){function s(e){return this instanceof s?(void 0!==e&&("function"==typeof e?this.random=e:this.seed=e),void("undefined"==typeof this.random&&(this.mt=this.mersenne_twister(e),this.random=function(){return this.mt.random(this.seed)}))):new s(e)}function i(e,t){if(e||(e={}),!t)return e;for(var n in t)"undefined"==typeof e[n]&&(e[n]=t[n]);return e}function r(e,t){if(e)throw new RangeError(t)}function o(e){return function(){return this.natural(e)}}function l(e,t){var n;t=t||(Array.isArray(e)?[]:{});for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]||t[n]);return t}var p=9007199254740992,u=-p,d="0123456789",c="abcdefghijklmnopqrstuvwxyz",h=c.toUpperCase(),m=d+"abcdef",f=Array.prototype.slice;s.prototype.bool=function(e){return e=i(e,{likelihood:50}),r(e.likelihood<0||e.likelihood>100,"Chance: Likelihood accepts values from 0 to 100."),100*this.random()a,"Chance: Max specified is out of range with fixed. Max should be, at most, "+a),e=i(e,{min:s,max:a}),t=this.integer({min:e.min*n,max:e.max*n});var o=(t/n).toFixed(e.fixed);return parseFloat(o)},s.prototype.integer=function(e){return e=i(e,{min:u,max:p}),r(e.min>e.max,"Chance: Min cannot be greater than Max."),Math.floor(this.random()*(e.max-e.min+1)+e.min)},s.prototype.natural=function(e){return e=i(e,{min:0,max:p}),this.integer(e)},s.prototype.normal=function(e){e=i(e,{mean:0,dev:1});var t,n,a,s,r=e.mean,o=e.dev;do n=2*this.random()-1,a=2*this.random()-1,t=n*n+a*a;while(t>=1);return s=n*Math.sqrt(-2*Math.log(t)/t),o*s+r},s.prototype.string=function(e){e=i(e);for(var t=e.length||this.natural({min:5,max:20}),n="",a=e.pool,s=0;t>s;s++)n+=this.character({pool:a});return n},s.prototype.capitalize=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},s.prototype.mixin=function(e){for(var t in e)s.prototype[t]=e[t];return this},s.prototype.unique=function(e,t,n){n=i(n,{comparator:function(e){return-1!==e.indexOf(r)}});for(var a=[],s=0;a.length50*t)throw new RangeError("Chance: num is likely too large for sample set")}return a},s.prototype.pad=function(e,t,n){return n=n||"0",e+="",e.length>=t?e:new Array(t-e.length+1).join(n)+e},s.prototype.pick=function(e,t){return t&&1!==t?this.shuffle(e).slice(0,t):e[this.natural({max:e.length-1})]},s.prototype.shuffle=function(e){for(var t=e.slice(0),n=[],a=0,s=Number(t.length),i=0;s>i;i++)a=this.natural({max:t.length-1}),n[i]=t[a],t.splice(a,1);return n},s.prototype.paragraph=function(e){e=i(e); +for(var t=e.sentences||this.natural({min:3,max:7}),n=[],a=0;t>a;a++)n.push(this.sentence());return n.join(" ")},s.prototype.sentence=function(e){e=i(e);for(var t,n=e.words||this.natural({min:12,max:18}),a=[],s=0;n>s;s++)a.push(this.word());return t=a.join(" "),t=this.capitalize(t)+"."},s.prototype.syllable=function(e){e=i(e);for(var t,n=e.length||this.natural({min:2,max:3}),a="bcdfghjklmnprstvwz",s="aeiou",r=a+s,o="",l=0;n>l;l++)t=this.character(0===l?{pool:r}:-1===a.indexOf(t)?{pool:a}:{pool:s}),o+=t;return o},s.prototype.word=function(e){e=i(e),r(e.syllables&&e.length,"Chance: Cannot specify both syllables AND length.");var t=e.syllables||this.natural({min:1,max:3}),n="";if(e.length){do n+=this.syllable();while(n.lengtha;a++)n+=this.syllable();return n},s.prototype.age=function(e){e=i(e);var t;switch(e.type){case"child":t={min:1,max:12};break;case"teen":t={min:13,max:19};break;case"adult":t={min:18,max:65};break;case"senior":t={min:65,max:100};break;case"all":t={min:1,max:100};break;default:t={min:18,max:65}}return this.natural(t)},s.prototype.birthday=function(e){return e=i(e,{year:(new Date).getFullYear()-this.age(e)}),this.date(e)},s.prototype.first=function(e){return e=i(e,{gender:this.gender()}),this.pick(this.get("firstNames")[e.gender.toLowerCase()])},s.prototype.gender=function(){return this.pick(["Male","Female"])},s.prototype.last=function(){return this.pick(this.get("lastNames"))},s.prototype.name=function(e){e=i(e);var t,n=this.first(e),a=this.last();return t=e.middle?n+" "+this.first(e)+" "+a:e.middle_initial?n+" "+this.character({alpha:!0,casing:"upper"})+". "+a:n+" "+a,e.prefix&&(t=this.prefix(e)+" "+t),t},s.prototype.name_prefixes=function(e){e=e||"all";var t=[{name:"Doctor",abbreviation:"Dr."}];return("male"===e||"all"===e)&&t.push({name:"Mister",abbreviation:"Mr."}),("female"===e||"all"===e)&&(t.push({name:"Miss",abbreviation:"Miss"}),t.push({name:"Misses",abbreviation:"Mrs."})),t},s.prototype.prefix=function(e){return this.name_prefix(e)},s.prototype.name_prefix=function(e){return e=i(e,{gender:"all"}),e.full?this.pick(this.name_prefixes(e.gender)).name:this.pick(this.name_prefixes(e.gender)).abbreviation},s.prototype.ssn=function(e){e=i(e,{ssnFour:!1,dashes:!0});var t,n="1234567890",a="";return e.dashes&&(a="-"),t=e.ssnFour?this.string({pool:n,length:4}):this.string({pool:n,length:3})+a+this.string({pool:n,length:2})+a+this.string({pool:n,length:4})},s.prototype.color=function(e){function t(e,t){return[e,e,e].join(t||"")}e=i(e,{format:this.pick(["hex","shorthex","rgb"]),grayscale:!1});var n=e.grayscale;if("hex"===e.format)return"#"+(n?t(this.hash({length:2})):this.hash({length:6}));if("shorthex"===e.format)return"#"+(n?t(this.hash({length:1})):this.hash({length:3}));if("rgb"===e.format)return n?"rgb("+t(this.natural({max:255}),",")+")":"rgb("+this.natural({max:255})+","+this.natural({max:255})+","+this.natural({max:255})+")";throw new Error('Invalid format provided. Please provide one of "hex", "shorthex", or "rgb"')},s.prototype.domain=function(e){return e=i(e),this.word()+"."+(e.tld||this.tld())},s.prototype.email=function(e){return e=i(e),this.word()+"@"+(e.domain||this.domain())},s.prototype.fbid=function(){return parseInt("10000"+this.natural({max:1e11}),10)},s.prototype.google_analytics=function(){var e=this.pad(this.natural({max:999999}),6),t=this.pad(this.natural({max:99}),2);return"UA-"+e+"-"+t},s.prototype.hashtag=function(){return"#"+this.word()},s.prototype.ip=function(){return this.natural({max:255})+"."+this.natural({max:255})+"."+this.natural({max:255})+"."+this.natural({max:255})},s.prototype.ipv6=function(){for(var e=[],t=0;8>t;t++)e.push(this.hash({length:4}));return e.join(":")},s.prototype.klout=function(){return this.natural({min:1,max:99})},s.prototype.tlds=function(){return["com","org","edu","gov","co.uk","net","io"]},s.prototype.tld=function(){return this.pick(this.tlds())},s.prototype.twitter=function(){return"@"+this.word()},s.prototype.address=function(e){return e=i(e),this.natural({min:5,max:2e3})+" "+this.street(e)},s.prototype.areacode=function(e){e=i(e,{parens:!0});var t=this.natural({min:2,max:9}).toString()+this.natural({min:0,max:8}).toString()+this.natural({min:0,max:9}).toString();return e.parens?"("+t+")":t},s.prototype.city=function(){return this.capitalize(this.word({syllables:3}))},s.prototype.coordinates=function(e){return e=i(e),this.latitude(e)+", "+this.longitude(e)},s.prototype.geoJson=function(e){return e=i(e),this.latitude(e)+", "+this.longitude(e)+", "+this.altitude(e)},s.prototype.altitude=function(e){return e=i(e,{fixed:5}),this.floating({min:0,max:32736e3,fixed:e.fixed})},s.prototype.depth=function(e){return e=i(e,{fixed:5}),this.floating({min:-35994,max:0,fixed:e.fixed})},s.prototype.latitude=function(e){return e=i(e,{fixed:5,min:-90,max:90}),this.floating({min:e.min,max:e.max,fixed:e.fixed})},s.prototype.longitude=function(e){return e=i(e,{fixed:5,min:-180,max:180}),this.floating({min:e.min,max:e.max,fixed:e.fixed})},s.prototype.phone=function(e){e=i(e,{formatted:!0}),e.formatted||(e.parens=!1);var t=this.areacode(e).toString(),n=this.natural({min:2,max:9}).toString()+this.natural({min:0,max:9}).toString()+this.natural({min:0,max:9}).toString(),a=this.natural({min:1e3,max:9999}).toString();return e.formatted?t+" "+n+"-"+a:t+n+a},s.prototype.postal=function(){var e=this.character({pool:"XVTSRPNKLMHJGECBA"}),t=e+this.natural({max:9})+this.character({alpha:!0,casing:"upper"}),n=this.natural({max:9})+this.character({alpha:!0,casing:"upper"})+this.natural({max:9});return t+" "+n},s.prototype.provinces=function(){return this.get("provinces")},s.prototype.province=function(e){return e&&e.full?this.pick(this.provinces()).name:this.pick(this.provinces()).abbreviation},s.prototype.radio=function(e){e=i(e,{side:"?"});var t="";switch(e.side.toLowerCase()){case"east":case"e":t="W";break;case"west":case"w":t="K";break;default:t=this.character({pool:"KW"})}return t+this.character({alpha:!0,casing:"upper"})+this.character({alpha:!0,casing:"upper"})+this.character({alpha:!0,casing:"upper"})},s.prototype.state=function(e){return e&&e.full?this.pick(this.states(e)).name:this.pick(this.states(e)).abbreviation},s.prototype.states=function(e){e=i(e);var t,n=this.get("us_states_and_dc"),a=this.get("territories"),s=this.get("armed_forces");return t=n,e.territories&&(t=t.concat(a)),e.armed_forces&&(t=t.concat(s)),t},s.prototype.street=function(e){e=i(e);var t=this.word({syllables:2});return t=this.capitalize(t),t+=" ",t+=e.short_suffix?this.street_suffix().abbreviation:this.street_suffix().name},s.prototype.street_suffix=function(){return this.pick(this.street_suffixes())},s.prototype.street_suffixes=function(){return this.get("street_suffixes")},s.prototype.tv=function(e){return this.radio(e)},s.prototype.zip=function(e){for(var t="",n=0;5>n;n++)t+=this.natural({max:9}).toString();if(e&&e.plusfour===!0)for(t+="-",n=0;4>n;n++)t+=this.natural({max:9}).toString();return t},s.prototype.ampm=function(){return this.bool()?"am":"pm"},s.prototype.date=function(e){var t,n=this.month({raw:!0});e=i(e,{year:parseInt(this.year(),10),month:n.numeric-1,day:this.natural({min:1,max:n.days}),hour:this.hour(),minute:this.minute(),second:this.second(),millisecond:this.millisecond(),american:!0,string:!1});var a=new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return t=e.american?a.getMonth()+1+"/"+a.getDate()+"/"+a.getFullYear():a.getDate()+"/"+(a.getMonth()+1)+"/"+a.getFullYear(),e.string?t:a},s.prototype.hammertime=function(e){return this.date(e).getTime()},s.prototype.hour=function(e){e=i(e);var t=e.twentyfour?24:12;return this.natural({min:1,max:t})},s.prototype.millisecond=function(){return this.natural({max:999})},s.prototype.minute=s.prototype.second=function(){return this.natural({max:59})},s.prototype.month=function(e){e=i(e);var t=this.pick(this.months());return e.raw?t:t.name},s.prototype.months=function(){return this.get("months")},s.prototype.second=function(){return this.natural({max:59})},s.prototype.timestamp=function(){return this.natural({min:1,max:parseInt((new Date).getTime()/1e3,10)})},s.prototype.year=function(e){return e=i(e,{min:(new Date).getFullYear()}),e.max="undefined"!=typeof e.max?e.max:e.min+100,this.natural(e).toString()},s.prototype.cc=function(e){e=i(e);var t,n,a;t=this.cc_type(e.type?{name:e.type,raw:!0}:{raw:!0}),n=t.prefix.split(""),a=t.length-t.prefix.length-1;for(var s=0;a>s;s++)n.push(this.integer({min:0,max:9}));return n.push(this.luhn_calculate(n.join(""))),n.join("")},s.prototype.cc_types=function(){return this.get("cc_types")},s.prototype.cc_type=function(e){e=i(e);var t=this.cc_types(),n=null;if(e.name){for(var a=0;at?"-$"+t.replace("-",""):"$"+t},s.prototype.exp=function(e){e=i(e);var t={};return t.year=this.exp_year(),t.month=t.year===(new Date).getFullYear()?this.exp_month({future:!0}):this.exp_month(),e.raw?t:t.month+"/"+t.year},s.prototype.exp_month=function(e){e=i(e);var t,n;if(e.future){do t=this.month({raw:!0}).numeric,n=parseInt(t,10);while(n<(new Date).getMonth())}else t=this.month({raw:!0}).numeric;return t},s.prototype.exp_year=function(){return this.year({max:(new Date).getFullYear()+10})},s.prototype.currency_types=function(){return this.get("currency_types")},s.prototype.currency=function(){return this.pick(this.currency_types())},s.prototype.currency_pair=function(e){var t=this.unique(this.currency,2,{comparator:function(e,t){return 0===e.length?!1:e.reduce(function(e,n){return e?e:n.code===t.code},!1)}});return e?t[0]+"/"+t[1]:t},s.prototype.d4=o({min:1,max:4}),s.prototype.d6=o({min:1,max:6}),s.prototype.d8=o({min:1,max:8}),s.prototype.d10=o({min:1,max:10}),s.prototype.d12=o({min:1,max:12}),s.prototype.d20=o({min:1,max:20}),s.prototype.d30=o({min:1,max:30}),s.prototype.d100=o({min:1,max:100}),s.prototype.rpg=function(e,t){if(t=i(t),null===e)throw new Error("A type of die roll must be included");var n=e.toLowerCase().split("d"),a=[];if(2!==n.length||!parseInt(n[0],10)||!parseInt(n[1],10))throw new Error("Invalid format provided. Please provide #d# where the first # is the number of dice to roll, the second # is the max of each die");for(var s=n[0];s>0;s--)a[s-1]=this.natural({min:1,max:n[1]});return"undefined"!=typeof t.sum&&t.sum?a.reduce(function(e,t){return e+t}):a},s.prototype.guid=function(e){e=e||{version:5};var t="ABCDEF1234567890",n="AB89",a=this.string({pool:t,length:8})+"-"+this.string({pool:t,length:4})+"-"+e.version+this.string({pool:t,length:3})+"-"+this.string({pool:n,length:1})+this.string({pool:t,length:3})+"-"+this.string({pool:t,length:12});return a},s.prototype.hash=function(e){e=i(e,{length:40,casing:"lower"});var t="upper"===e.casing?m.toUpperCase():m;return this.string({pool:t,length:e.length})},s.prototype.luhn_check=function(e){var t=e.toString(),n=+t.substring(t.length-1);return n===this.luhn_calculate(+t.substring(0,t.length-1))},s.prototype.luhn_calculate=function(e){for(var t,n=e.toString().split("").reverse(),a=0,s=0,i=n.length;i>s;++s)t=+n[s],s%2===0&&(t*=2,t>9&&(t-=9)),a+=t;return 9*a%10};var y={firstNames:{male:["James","John","Robert","Michael","William","David","Richard","Joseph","Charles","Thomas","Christopher","Daniel","Matthew","George","Donald","Anthony","Paul","Mark","Edward","Steven","Kenneth","Andrew","Brian","Joshua","Kevin","Ronald","Timothy","Jason","Jeffrey","Frank","Gary","Ryan","Nicholas","Eric","Stephen","Jacob","Larry","Jonathan","Scott","Raymond","Justin","Brandon","Gregory","Samuel","Benjamin","Patrick","Jack","Henry","Walter","Dennis","Jerry","Alexander","Peter","Tyler","Douglas","Harold","Aaron","Jose","Adam","Arthur","Zachary","Carl","Nathan","Albert","Kyle","Lawrence","Joe","Willie","Gerald","Roger","Keith","Jeremy","Terry","Harry","Ralph","Sean","Jesse","Roy","Louis","Billy","Austin","Bruce","Eugene","Christian","Bryan","Wayne","Russell","Howard","Fred","Ethan","Jordan","Philip","Alan","Juan","Randy","Vincent","Bobby","Dylan","Johnny","Phillip","Victor","Clarence","Ernest","Martin","Craig","Stanley","Shawn","Travis","Bradley","Leonard","Earl","Gabriel","Jimmy","Francis","Todd","Noah","Danny","Dale","Cody","Carlos","Allen","Frederick","Logan","Curtis","Alex","Joel","Luis","Norman","Marvin","Glenn","Tony","Nathaniel","Rodney","Melvin","Alfred","Steve","Cameron","Chad","Edwin","Caleb","Evan","Antonio","Lee","Herbert","Jeffery","Isaac","Derek","Ricky","Marcus","Theodore","Elijah","Luke","Jesus","Eddie","Troy","Mike","Dustin","Ray","Adrian","Bernard","Leroy","Angel","Randall","Wesley","Ian","Jared","Mason","Hunter","Calvin","Oscar","Clifford","Jay","Shane","Ronnie","Barry","Lucas","Corey","Manuel","Leo","Tommy","Warren","Jackson","Isaiah","Connor","Don","Dean","Jon","Julian","Miguel","Bill","Lloyd","Charlie","Mitchell","Leon","Jerome","Darrell","Jeremiah","Alvin","Brett","Seth","Floyd","Jim","Blake","Micheal","Gordon","Trevor","Lewis","Erik","Edgar","Vernon","Devin","Gavin","Jayden","Chris","Clyde","Tom","Derrick","Mario","Brent","Marc","Herman","Chase","Dominic","Ricardo","Franklin","Maurice","Max","Aiden","Owen","Lester","Gilbert","Elmer","Gene","Francisco","Glen","Cory","Garrett","Clayton","Sam","Jorge","Chester","Alejandro","Jeff","Harvey","Milton","Cole","Ivan","Andre","Duane","Landon"],female:["Mary","Emma","Elizabeth","Minnie","Margaret","Ida","Alice","Bertha","Sarah","Annie","Clara","Ella","Florence","Cora","Martha","Laura","Nellie","Grace","Carrie","Maude","Mabel","Bessie","Jennie","Gertrude","Julia","Hattie","Edith","Mattie","Rose","Catherine","Lillian","Ada","Lillie","Helen","Jessie","Louise","Ethel","Lula","Myrtle","Eva","Frances","Lena","Lucy","Edna","Maggie","Pearl","Daisy","Fannie","Josephine","Dora","Rosa","Katherine","Agnes","Marie","Nora","May","Mamie","Blanche","Stella","Ellen","Nancy","Effie","Sallie","Nettie","Della","Lizzie","Flora","Susie","Maud","Mae","Etta","Harriet","Sadie","Caroline","Katie","Lydia","Elsie","Kate","Susan","Mollie","Alma","Addie","Georgia","Eliza","Lulu","Nannie","Lottie","Amanda","Belle","Charlotte","Rebecca","Ruth","Viola","Olive","Amelia","Hannah","Jane","Virginia","Emily","Matilda","Irene","Kathryn","Esther","Willie","Henrietta","Ollie","Amy","Rachel","Sara","Estella","Theresa","Augusta","Ora","Pauline","Josie","Lola","Sophia","Leona","Anne","Mildred","Ann","Beulah","Callie","Lou","Delia","Eleanor","Barbara","Iva","Louisa","Maria","Mayme","Evelyn","Estelle","Nina","Betty","Marion","Bettie","Dorothy","Luella","Inez","Lela","Rosie","Allie","Millie","Janie","Cornelia","Victoria","Ruby","Winifred","Alta","Celia","Christine","Beatrice","Birdie","Harriett","Mable","Myra","Sophie","Tillie","Isabel","Sylvia","Carolyn","Isabelle","Leila","Sally","Ina","Essie","Bertie","Nell","Alberta","Katharine","Lora","Rena","Mina","Rhoda","Mathilda","Abbie","Eula","Dollie","Hettie","Eunice","Fanny","Ola","Lenora","Adelaide","Christina","Lelia","Nelle","Sue","Johanna","Lilly","Lucinda","Minerva","Lettie","Roxie","Cynthia","Helena","Hilda","Hulda","Bernice","Genevieve","Jean","Cordelia","Marian","Francis","Jeanette","Adeline","Gussie","Leah","Lois","Lura","Mittie","Hallie","Isabella","Olga","Phoebe","Teresa","Hester","Lida","Lina","Winnie","Claudia","Marguerite","Vera","Cecelia","Bess","Emilie","John","Rosetta","Verna","Myrtie","Cecilia","Elva","Olivia","Ophelia","Georgie","Elnora","Violet","Adele","Lily","Linnie","Loretta","Madge","Polly","Virgie","Eugenia","Lucile","Lucille","Mabelle","Rosalie"]},lastNames:["Smith","Johnson","Williams","Jones","Brown","Davis","Miller","Wilson","Moore","Taylor","Anderson","Thomas","Jackson","White","Harris","Martin","Thompson","Garcia","Martinez","Robinson","Clark","Rodriguez","Lewis","Lee","Walker","Hall","Allen","Young","Hernandez","King","Wright","Lopez","Hill","Scott","Green","Adams","Baker","Gonzalez","Nelson","Carter","Mitchell","Perez","Roberts","Turner","Phillips","Campbell","Parker","Evans","Edwards","Collins","Stewart","Sanchez","Morris","Rogers","Reed","Cook","Morgan","Bell","Murphy","Bailey","Rivera","Cooper","Richardson","Cox","Howard","Ward","Torres","Peterson","Gray","Ramirez","James","Watson","Brooks","Kelly","Sanders","Price","Bennett","Wood","Barnes","Ross","Henderson","Coleman","Jenkins","Perry","Powell","Long","Patterson","Hughes","Flores","Washington","Butler","Simmons","Foster","Gonzales","Bryant","Alexander","Russell","Griffin","Diaz","Hayes","Myers","Ford","Hamilton","Graham","Sullivan","Wallace","Woods","Cole","West","Jordan","Owens","Reynolds","Fisher","Ellis","Harrison","Gibson","McDonald","Cruz","Marshall","Ortiz","Gomez","Murray","Freeman","Wells","Webb","Simpson","Stevens","Tucker","Porter","Hunter","Hicks","Crawford","Henry","Boyd","Mason","Morales","Kennedy","Warren","Dixon","Ramos","Reyes","Burns","Gordon","Shaw","Holmes","Rice","Robertson","Hunt","Black","Daniels","Palmer","Mills","Nichols","Grant","Knight","Ferguson","Rose","Stone","Hawkins","Dunn","Perkins","Hudson","Spencer","Gardner","Stephens","Payne","Pierce","Berry","Matthews","Arnold","Wagner","Willis","Ray","Watkins","Olson","Carroll","Duncan","Snyder","Hart","Cunningham","Bradley","Lane","Andrews","Ruiz","Harper","Fox","Riley","Armstrong","Carpenter","Weaver","Greene","Lawrence","Elliott","Chavez","Sims","Austin","Peters","Kelley","Franklin","Lawson","Fields","Gutierrez","Ryan","Schmidt","Carr","Vasquez","Castillo","Wheeler","Chapman","Oliver","Montgomery","Richards","Williamson","Johnston","Banks","Meyer","Bishop","McCoy","Howell","Alvarez","Morrison","Hansen","Fernandez","Garza","Harvey","Little","Burton","Stanley","Nguyen","George","Jacobs","Reid","Kim","Fuller","Lynch","Dean","Gilbert","Garrett","Romero","Welch","Larson","Frazier","Burke","Hanson","Day","Mendoza","Moreno","Bowman","Medina","Fowler","Brewer","Hoffman","Carlson","Silva","Pearson","Holland","Douglas","Fleming","Jensen","Vargas","Byrd","Davidson","Hopkins","May","Terry","Herrera","Wade","Soto","Walters","Curtis","Neal","Caldwell","Lowe","Jennings","Barnett","Graves","Jimenez","Horton","Shelton","Barrett","Obrien","Castro","Sutton","Gregory","McKinney","Lucas","Miles","Craig","Rodriquez","Chambers","Holt","Lambert","Fletcher","Watts","Bates","Hale","Rhodes","Pena","Beck","Newman","Haynes","McDaniel","Mendez","Bush","Vaughn","Parks","Dawson","Santiago","Norris","Hardy","Love","Steele","Curry","Powers","Schultz","Barker","Guzman","Page","Munoz","Ball","Keller","Chandler","Weber","Leonard","Walsh","Lyons","Ramsey","Wolfe","Schneider","Mullins","Benson","Sharp","Bowen","Daniel","Barber","Cummings","Hines","Baldwin","Griffith","Valdez","Hubbard","Salazar","Reeves","Warner","Stevenson","Burgess","Santos","Tate","Cross","Garner","Mann","Mack","Moss","Thornton","Dennis","McGee","Farmer","Delgado","Aguilar","Vega","Glover","Manning","Cohen","Harmon","Rodgers","Robbins","Newton","Todd","Blair","Higgins","Ingram","Reese","Cannon","Strickland","Townsend","Potter","Goodwin","Walton","Rowe","Hampton","Ortega","Patton","Swanson","Joseph","Francis","Goodman","Maldonado","Yates","Becker","Erickson","Hodges","Rios","Conner","Adkins","Webster","Norman","Malone","Hammond","Flowers","Cobb","Moody","Quinn","Blake","Maxwell","Pope","Floyd","Osborne","Paul","McCarthy","Guerrero","Lindsey","Estrada","Sandoval","Gibbs","Tyler","Gross","Fitzgerald","Stokes","Doyle","Sherman","Saunders","Wise","Colon","Gill","Alvarado","Greer","Padilla","Simon","Waters","Nunez","Ballard","Schwartz","McBride","Houston","Christensen","Klein","Pratt","Briggs","Parsons","McLaughlin","Zimmerman","French","Buchanan","Moran","Copeland","Roy","Pittman","Brady","McCormick","Holloway","Brock","Poole","Frank","Logan","Owen","Bass","Marsh","Drake","Wong","Jefferson","Park","Morton","Abbott","Sparks","Patrick","Norton","Huff","Clayton","Massey","Lloyd","Figueroa","Carson","Bowers","Roberson","Barton","Tran","Lamb","Harrington","Casey","Boone","Cortez","Clarke","Mathis","Singleton","Wilkins","Cain","Bryan","Underwood","Hogan","McKenzie","Collier","Luna","Phelps","McGuire","Allison","Bridges","Wilkerson","Nash","Summers","Atkins"],provinces:[{name:"Alberta",abbreviation:"AB"},{name:"British Columbia",abbreviation:"BC"},{name:"Manitoba",abbreviation:"MB"},{name:"New Brunswick",abbreviation:"NB"},{name:"Newfoundland and Labrador",abbreviation:"NL"},{name:"Nova Scotia",abbreviation:"NS"},{name:"Ontario",abbreviation:"ON"},{name:"Prince Edward Island",abbreviation:"PE"},{name:"Quebec",abbreviation:"QC"},{name:"Saskatchewan",abbreviation:"SK"},{name:"Northwest Territories",abbreviation:"NT"},{name:"Nunavut",abbreviation:"NU"},{name:"Yukon",abbreviation:"YT"}],us_states_and_dc:[{name:"Alabama",abbreviation:"AL"},{name:"Alaska",abbreviation:"AK"},{name:"Arizona",abbreviation:"AZ"},{name:"Arkansas",abbreviation:"AR"},{name:"California",abbreviation:"CA"},{name:"Colorado",abbreviation:"CO"},{name:"Connecticut",abbreviation:"CT"},{name:"Delaware",abbreviation:"DE"},{name:"District of Columbia",abbreviation:"DC"},{name:"Florida",abbreviation:"FL"},{name:"Georgia",abbreviation:"GA"},{name:"Hawaii",abbreviation:"HI"},{name:"Idaho",abbreviation:"ID"},{name:"Illinois",abbreviation:"IL"},{name:"Indiana",abbreviation:"IN"},{name:"Iowa",abbreviation:"IA"},{name:"Kansas",abbreviation:"KS"},{name:"Kentucky",abbreviation:"KY"},{name:"Louisiana",abbreviation:"LA"},{name:"Maine",abbreviation:"ME"},{name:"Maryland",abbreviation:"MD"},{name:"Massachusetts",abbreviation:"MA"},{name:"Michigan",abbreviation:"MI"},{name:"Minnesota",abbreviation:"MN"},{name:"Mississippi",abbreviation:"MS"},{name:"Missouri",abbreviation:"MO"},{name:"Montana",abbreviation:"MT"},{name:"Nebraska",abbreviation:"NE"},{name:"Nevada",abbreviation:"NV"},{name:"New Hampshire",abbreviation:"NH"},{name:"New Jersey",abbreviation:"NJ"},{name:"New Mexico",abbreviation:"NM"},{name:"New York",abbreviation:"NY"},{name:"North Carolina",abbreviation:"NC"},{name:"North Dakota",abbreviation:"ND"},{name:"Ohio",abbreviation:"OH"},{name:"Oklahoma",abbreviation:"OK"},{name:"Oregon",abbreviation:"OR"},{name:"Pennsylvania",abbreviation:"PA"},{name:"Rhode Island",abbreviation:"RI"},{name:"South Carolina",abbreviation:"SC"},{name:"South Dakota",abbreviation:"SD"},{name:"Tennessee",abbreviation:"TN"},{name:"Texas",abbreviation:"TX"},{name:"Utah",abbreviation:"UT"},{name:"Vermont",abbreviation:"VT"},{name:"Virginia",abbreviation:"VA"},{name:"Washington",abbreviation:"WA"},{name:"West Virginia",abbreviation:"WV"},{name:"Wisconsin",abbreviation:"WI"},{name:"Wyoming",abbreviation:"WY"}],territories:[{name:"American Samoa",abbreviation:"AS"},{name:"Federated States of Micronesia",abbreviation:"FM"},{name:"Guam",abbreviation:"GU"},{name:"Marshall Islands",abbreviation:"MH"},{name:"Northern Mariana Islands",abbreviation:"MP"},{name:"Puerto Rico",abbreviation:"PR"},{name:"Virgin Islands, U.S.",abbreviation:"VI"}],armed_forces:[{name:"Armed Forces Europe",abbreviation:"AE"},{name:"Armed Forces Pacific",abbreviation:"AP"},{name:"Armed Forces the Americas",abbreviation:"AA"}],street_suffixes:[{name:"Avenue",abbreviation:"Ave"},{name:"Boulevard",abbreviation:"Blvd"},{name:"Center",abbreviation:"Ctr"},{name:"Circle",abbreviation:"Cir"},{name:"Court",abbreviation:"Ct"},{name:"Drive",abbreviation:"Dr"},{name:"Extension",abbreviation:"Ext"},{name:"Glen",abbreviation:"Gln"},{name:"Grove",abbreviation:"Grv"},{name:"Heights",abbreviation:"Hts"},{name:"Highway",abbreviation:"Hwy"},{name:"Junction",abbreviation:"Jct"},{name:"Key",abbreviation:"Key"},{name:"Lane",abbreviation:"Ln"},{name:"Loop",abbreviation:"Loop"},{name:"Manor",abbreviation:"Mnr"},{name:"Mill",abbreviation:"Mill"},{name:"Park",abbreviation:"Park"},{name:"Parkway",abbreviation:"Pkwy"},{name:"Pass",abbreviation:"Pass"},{name:"Path",abbreviation:"Path"},{name:"Pike",abbreviation:"Pike"},{name:"Place",abbreviation:"Pl"},{name:"Plaza",abbreviation:"Plz"},{name:"Point",abbreviation:"Pt"},{name:"Ridge",abbreviation:"Rdg"},{name:"River",abbreviation:"Riv"},{name:"Road",abbreviation:"Rd"},{name:"Square",abbreviation:"Sq"},{name:"Street",abbreviation:"St"},{name:"Terrace",abbreviation:"Ter"},{name:"Trail",abbreviation:"Trl"},{name:"Turnpike",abbreviation:"Tpke"},{name:"View",abbreviation:"Vw"},{name:"Way",abbreviation:"Way"}],months:[{name:"January",short_name:"Jan",numeric:"01",days:31},{name:"February",short_name:"Feb",numeric:"02",days:28},{name:"March",short_name:"Mar",numeric:"03",days:31},{name:"April",short_name:"Apr",numeric:"04",days:30},{name:"May",short_name:"May",numeric:"05",days:31},{name:"June",short_name:"Jun",numeric:"06",days:30},{name:"July",short_name:"Jul",numeric:"07",days:31},{name:"August",short_name:"Aug",numeric:"08",days:31},{name:"September",short_name:"Sep",numeric:"09",days:30},{name:"October",short_name:"Oct",numeric:"10",days:31},{name:"November",short_name:"Nov",numeric:"11",days:30},{name:"December",short_name:"Dec",numeric:"12",days:31}],cc_types:[{name:"American Express",short_name:"amex",prefix:"34",length:15},{name:"Bankcard",short_name:"bankcard",prefix:"5610",length:16},{name:"China UnionPay",short_name:"chinaunion",prefix:"62",length:16},{name:"Diners Club Carte Blanche",short_name:"dccarte",prefix:"300",length:14},{name:"Diners Club enRoute",short_name:"dcenroute",prefix:"2014",length:15},{name:"Diners Club International",short_name:"dcintl",prefix:"36",length:14},{name:"Diners Club United States & Canada",short_name:"dcusc",prefix:"54",length:16},{name:"Discover Card",short_name:"discover",prefix:"6011",length:16},{name:"InstaPayment",short_name:"instapay",prefix:"637",length:16},{name:"JCB",short_name:"jcb",prefix:"3528",length:16},{name:"Laser",short_name:"laser",prefix:"6304",length:16},{name:"Maestro",short_name:"maestro",prefix:"5018",length:16},{name:"Mastercard",short_name:"mc",prefix:"51",length:16},{name:"Solo",short_name:"solo",prefix:"6334",length:16},{name:"Switch",short_name:"switch",prefix:"4903",length:16},{name:"Visa",short_name:"visa",prefix:"4",length:16},{name:"Visa Electron",short_name:"electron",prefix:"4026",length:16}],currency_types:[{code:"AED",name:"United Arab Emirates Dirham"},{code:"AFN",name:"Afghanistan Afghani"},{code:"ALL",name:"Albania Lek"},{code:"AMD",name:"Armenia Dram"},{code:"ANG",name:"Netherlands Antilles Guilder"},{code:"AOA",name:"Angola Kwanza"},{code:"ARS",name:"Argentina Peso"},{code:"AUD",name:"Australia Dollar"},{code:"AWG",name:"Aruba Guilder"},{code:"AZN",name:"Azerbaijan New Manat"},{code:"BAM",name:"Bosnia and Herzegovina Convertible Marka"},{code:"BBD",name:"Barbados Dollar"},{code:"BDT",name:"Bangladesh Taka"},{code:"BGN",name:"Bulgaria Lev"},{code:"BHD",name:"Bahrain Dinar"},{code:"BIF",name:"Burundi Franc"},{code:"BMD",name:"Bermuda Dollar"},{code:"BND",name:"Brunei Darussalam Dollar"},{code:"BOB",name:"Bolivia Boliviano"},{code:"BRL",name:"Brazil Real"},{code:"BSD",name:"Bahamas Dollar"},{code:"BTN",name:"Bhutan Ngultrum"},{code:"BWP",name:"Botswana Pula"},{code:"BYR",name:"Belarus Ruble"},{code:"BZD",name:"Belize Dollar"},{code:"CAD",name:"Canada Dollar"},{code:"CDF",name:"Congo/Kinshasa Franc"},{code:"CHF",name:"Switzerland Franc"},{code:"CLP",name:"Chile Peso"},{code:"CNY",name:"China Yuan Renminbi"},{code:"COP",name:"Colombia Peso"},{code:"CRC",name:"Costa Rica Colon"},{code:"CUC",name:"Cuba Convertible Peso"},{code:"CUP",name:"Cuba Peso"},{code:"CVE",name:"Cape Verde Escudo"},{code:"CZK",name:"Czech Republic Koruna"},{code:"DJF",name:"Djibouti Franc"},{code:"DKK",name:"Denmark Krone"},{code:"DOP",name:"Dominican Republic Peso"},{code:"DZD",name:"Algeria Dinar"},{code:"EGP",name:"Egypt Pound"},{code:"ERN",name:"Eritrea Nakfa"},{code:"ETB",name:"Ethiopia Birr"},{code:"EUR",name:"Euro Member Countries"},{code:"FJD",name:"Fiji Dollar"},{code:"FKP",name:"Falkland Islands (Malvinas) Pound"},{code:"GBP",name:"United Kingdom Pound"},{code:"GEL",name:"Georgia Lari"},{code:"GGP",name:"Guernsey Pound"},{code:"GHS",name:"Ghana Cedi"},{code:"GIP",name:"Gibraltar Pound"},{code:"GMD",name:"Gambia Dalasi"},{code:"GNF",name:"Guinea Franc"},{code:"GTQ",name:"Guatemala Quetzal"},{code:"GYD",name:"Guyana Dollar"},{code:"HKD",name:"Hong Kong Dollar"},{code:"HNL",name:"Honduras Lempira"},{code:"HRK",name:"Croatia Kuna"},{code:"HTG",name:"Haiti Gourde"},{code:"HUF",name:"Hungary Forint"},{code:"IDR",name:"Indonesia Rupiah"},{code:"ILS",name:"Israel Shekel"},{code:"IMP",name:"Isle of Man Pound"},{code:"INR",name:"India Rupee"},{code:"IQD",name:"Iraq Dinar"},{code:"IRR",name:"Iran Rial"},{code:"ISK",name:"Iceland Krona"},{code:"JEP",name:"Jersey Pound"},{code:"JMD",name:"Jamaica Dollar"},{code:"JOD",name:"Jordan Dinar"},{code:"JPY",name:"Japan Yen"},{code:"KES",name:"Kenya Shilling"},{code:"KGS",name:"Kyrgyzstan Som"},{code:"KHR",name:"Cambodia Riel"},{code:"KMF",name:"Comoros Franc"},{code:"KPW",name:"Korea (North) Won"},{code:"KRW",name:"Korea (South) Won"},{code:"KWD",name:"Kuwait Dinar"},{code:"KYD",name:"Cayman Islands Dollar"},{code:"KZT",name:"Kazakhstan Tenge"},{code:"LAK",name:"Laos Kip"},{code:"LBP",name:"Lebanon Pound"},{code:"LKR",name:"Sri Lanka Rupee"},{code:"LRD",name:"Liberia Dollar"},{code:"LSL",name:"Lesotho Loti"},{code:"LTL",name:"Lithuania Litas"},{code:"LYD",name:"Libya Dinar"},{code:"MAD",name:"Morocco Dirham"},{code:"MDL",name:"Moldova Leu"},{code:"MGA",name:"Madagascar Ariary"},{code:"MKD",name:"Macedonia Denar"},{code:"MMK",name:"Myanmar (Burma) Kyat"},{code:"MNT",name:"Mongolia Tughrik"},{code:"MOP",name:"Macau Pataca"},{code:"MRO",name:"Mauritania Ouguiya"},{code:"MUR",name:"Mauritius Rupee"},{code:"MVR",name:"Maldives (Maldive Islands) Rufiyaa"},{code:"MWK",name:"Malawi Kwacha"},{code:"MXN",name:"Mexico Peso"},{code:"MYR",name:"Malaysia Ringgit"},{code:"MZN",name:"Mozambique Metical"},{code:"NAD",name:"Namibia Dollar"},{code:"NGN",name:"Nigeria Naira"},{code:"NIO",name:"Nicaragua Cordoba"},{code:"NOK",name:"Norway Krone"},{code:"NPR",name:"Nepal Rupee"},{code:"NZD",name:"New Zealand Dollar"},{code:"OMR",name:"Oman Rial"},{code:"PAB",name:"Panama Balboa"},{code:"PEN",name:"Peru Nuevo Sol"},{code:"PGK",name:"Papua New Guinea Kina"},{code:"PHP",name:"Philippines Peso"},{code:"PKR",name:"Pakistan Rupee"},{code:"PLN",name:"Poland Zloty"},{code:"PYG",name:"Paraguay Guarani"},{code:"QAR",name:"Qatar Riyal"},{code:"RON",name:"Romania New Leu"},{code:"RSD",name:"Serbia Dinar"},{code:"RUB",name:"Russia Ruble"},{code:"RWF",name:"Rwanda Franc"},{code:"SAR",name:"Saudi Arabia Riyal"},{code:"SBD",name:"Solomon Islands Dollar"},{code:"SCR",name:"Seychelles Rupee"},{code:"SDG",name:"Sudan Pound"},{code:"SEK",name:"Sweden Krona"},{code:"SGD",name:"Singapore Dollar"},{code:"SHP",name:"Saint Helena Pound"},{code:"SLL",name:"Sierra Leone Leone"},{code:"SOS",name:"Somalia Shilling"},{code:"SPL",name:"Seborga Luigino"},{code:"SRD",name:"Suriname Dollar"},{code:"STD",name:"São Tomé and Príncipe Dobra"},{code:"SVC",name:"El Salvador Colon"},{code:"SYP",name:"Syria Pound"},{code:"SZL",name:"Swaziland Lilangeni"},{code:"THB",name:"Thailand Baht"},{code:"TJS",name:"Tajikistan Somoni"},{code:"TMT",name:"Turkmenistan Manat"},{code:"TND",name:"Tunisia Dinar"},{code:"TOP",name:"Tonga Pa'anga"},{code:"TRY",name:"Turkey Lira"},{code:"TTD",name:"Trinidad and Tobago Dollar"},{code:"TVD",name:"Tuvalu Dollar"},{code:"TWD",name:"Taiwan New Dollar"},{code:"TZS",name:"Tanzania Shilling"},{code:"UAH",name:"Ukraine Hryvnia"},{code:"UGX",name:"Uganda Shilling"},{code:"USD",name:"United States Dollar"},{code:"UYU",name:"Uruguay Peso"},{code:"UZS",name:"Uzbekistan Som"},{code:"VEF",name:"Venezuela Bolivar"},{code:"VND",name:"Viet Nam Dong"},{code:"VUV",name:"Vanuatu Vatu"},{code:"WST",name:"Samoa Tala"},{code:"XAF",name:"Communauté Financière Africaine (BEAC) CFA Franc BEAC"},{code:"XCD",name:"East Caribbean Dollar"},{code:"XDR",name:"International Monetary Fund (IMF) Special Drawing Rights"},{code:"XOF",name:"Communauté Financière Africaine (BCEAO) Franc"},{code:"XPF",name:"Comptoirs Français du Pacifique (CFP) Franc"},{code:"YER",name:"Yemen Rial"},{code:"ZAR",name:"South Africa Rand"},{code:"ZMW",name:"Zambia Kwacha"},{code:"ZWD",name:"Zimbabwe Dollar"}]}; +s.prototype.get=function(e){return l(y[e])},s.prototype.set=function(e,t){"string"==typeof e?y[e]=t:y=l(e,y)},s.prototype.mersenne_twister=function(e){return new g(e)},s.prototype.VERSION="0.5.9";var g=function(e){void 0===e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,this.init_genrand(e)};g.prototype.init_genrand=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti>>30,this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0},g.prototype.init_by_array=function(e,t){var n,a,s=1,i=0;for(this.init_genrand(19650218),n=this.N>t?this.N:t;n;n--)a=this.mt[s-1]^this.mt[s-1]>>>30,this.mt[s]=(this.mt[s]^(1664525*((4294901760&a)>>>16)<<16)+1664525*(65535&a))+e[i]+i,this.mt[s]>>>=0,s++,i++,s>=this.N&&(this.mt[0]=this.mt[this.N-1],s=1),i>=t&&(i=0);for(n=this.N-1;n;n--)a=this.mt[s-1]^this.mt[s-1]>>>30,this.mt[s]=(this.mt[s]^(1566083941*((4294901760&a)>>>16)<<16)+1566083941*(65535&a))-s,this.mt[s]>>>=0,s++,s>=this.N&&(this.mt[0]=this.mt[this.N-1],s=1);this.mt[0]=2147483648},g.prototype.genrand_int32=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti===this.N+1&&this.init_genrand(5489),n=0;n>>1^t[1&e];for(;n>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0},g.prototype.genrand_int31=function(){return this.genrand_int32()>>>1},g.prototype.genrand_real1=function(){return this.genrand_int32()*(1/4294967295)},g.prototype.random=function(){return this.genrand_int32()*(1/4294967296)},g.prototype.genrand_real3=function(){return(this.genrand_int32()+.5)*(1/4294967296)},g.prototype.genrand_res53=function(){var e=this.genrand_int32()>>>5,t=this.genrand_int32()>>>6;return(67108864*e+t)*(1/9007199254740992)},"undefined"!=typeof e&&e.exports&&(t=e.exports=s),t.Chance=s,n=[],a=function(){return s}.apply(null,n),!(void 0!==a&&(e.exports=a)),"object"==typeof window&&"object"==typeof window.document&&(window.Chance=s,window.chance=new s)}()},function(e,t,n){var a=n(1),s=n(2),i=n(11),r=n(57),o=n(58),l=n(59).mergeIntoProps,p=(n(60).directions,n(61),n(79)),u=n(62),d=n(63),c=(n(64),{value:a.PropTypes.any,onChange:a.PropTypes.func,open:a.PropTypes.bool,onToggle:a.PropTypes.func,data:a.PropTypes.array,valueField:a.PropTypes.string,textField:a.PropTypes.string,valueComponent:a.PropTypes.component,itemComponent:a.PropTypes.component,busy:a.PropTypes.bool,delay:a.PropTypes.number,duration:a.PropTypes.number,disabled:a.PropTypes.oneOfType([a.PropTypes.bool,a.PropTypes.oneOf(["disabled"])]),readOnly:a.PropTypes.oneOfType([a.PropTypes.bool,a.PropTypes.oneOf(["readOnly"])]),messages:a.PropTypes.shape({open:a.PropTypes.string})}),h=a.createClass({displayName:"DropdownList",mixins:[n(80),n(81),n(82),n(83),n(84),n(85)("focusedIndex"),n(85)("selectedIndex")],propTypes:c,getInitialState:function(){var e=this._dataIndexOf(this.props.data,this.props.value);return{selectedIndex:e,focusedIndex:-1===e?0:e}},getDefaultProps:function(){return{delay:500,value:"",open:!1,data:[],messages:{open:"open dropdown"}}},componentWillReceiveProps:function(e){if(!s.isEqual(e.value,this.props.value)){var t=this._dataIndexOf(e.data,e.value);this.setSelectedIndex(t),this.setFocusedIndex(-1===t?0:t)}},render:function(){var e=s.keys(c),t=this._dataItem(this._data(),this.props.value),n=this._id("_option");return l(s.omit(this.props,e),a.DOM.div({ref:"element",onKeyDown:this._maybeHandle(this._keyDown),onClick:this._maybeHandle(this.toggle),onFocus:this._maybeHandle(s.partial(this._focus,!0),!0),onBlur:s.partial(this._focus,!1),"aria-expanded":this.props.open,"aria-haspopup":!0,"aria-activedescendent":this.props.open?n:void 0,"aria-disabled":this.props.disabled,"aria-readonly":this.props.readOnly,tabIndex:this.props.disabled?"-1":"0",className:i({"rw-dropdown-list":!0,"rw-widget":!0,"rw-state-disabled":this.props.disabled,"rw-state-readonly":this.props.readOnly,"rw-state-focus":this.state.focused,"rw-open":this.props.open,"rw-rtl":this.isRtl()})},a.DOM.span({className:"rw-dropdownlist-picker rw-select rw-btn"},a.DOM.i({className:"rw-i rw-i-caret-down"+(this.props.busy?" rw-loading":"")},a.DOM.span({className:"rw-sr"},this.props.messages.open))),a.DOM.div({className:"rw-input"},this.props.valueComponent?this.props.valueComponent({item:t}):this._dataText(t)),p({open:this.props.open,onRequestClose:this.close,duration:this.props.duration},a.DOM.div(null,u({ref:"list",optID:n,"aria-hidden":!this.props.open,style:{maxHeight:200,height:"auto"},data:this.props.data,initialVisibleItems:this.props.initialBufferSize,itemHeight:18,selectedIndex:this.state.selectedIndex,focusedIndex:this.state.focusedIndex,textField:this.props.textField,valueField:this.props.valueField,listItem:this.props.itemComponent,onSelect:this._maybeHandle(this._onSelect)})))))},setWidth:function(){var e=d.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})},_focus:function(e){var t=this;clearTimeout(t.timer),t.timer=setTimeout(function(){e?t.getDOMNode().focus():t.close(),e!==t.state.focused&&t.setState({focused:e})},0)},_onSelect:function(e){this.close(),this.change(e)},_keyDown:function(e){function t(e){n.change(n._data()[e])}var n=this,a=e.key,s=e.altKey,i=this.props.open;"End"===a?(i?this.setFocusedIndex(this._data().length-1):t(this._data().length-1),e.preventDefault()):"Home"===a?(i?this.setFocusedIndex(0):t(0),e.preventDefault()):"Escape"===a&&i?this.close():"Enter"===a&&i?t(this.state.focusedIndex):"ArrowDown"===a?(s?this.open():i?this.setFocusedIndex(this.nextFocusedIndex()):t(this.nextSelectedIndex()),e.preventDefault()):"ArrowUp"===a?(s?this.close():i?this.setFocusedIndex(this.prevFocusedIndex()):t(this.prevSelectedIndex()),e.preventDefault()):this.search(String.fromCharCode(e.keyCode),this._locate)},change:function(e){var t=this.props.onChange;t&&!s.isEqual(e,this.props.value)&&(t(e),this.close())},_locate:function(e){var t=this.props.open?"focusedIndex":"selectedIndex",n=this.findNextWordIndex(e,this.state[t]),a=r(t).bind(this);-1!==n&&a(n)},_data:function(){return this.props.data},open:function(){this.notify("onToggle",!0)},close:function(){this.notify("onToggle",!1)},toggle:function(){this.props.open?this.close():this.open()}});e.exports=o.createControlledClass("DropDownList",h,{open:"onToggle",value:"onChange"})},function(e,t,n){function a(e,t){var n;if(e===t)return!0;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}var s=n(1),i=n(11),r=n(2),o=(n(65),n(66)),l=n(58),p=n(59).mergeIntoProps,u=(n(60).directions,n(67)),d=n(79),c=n(62),h=n(63),m=n(64),f={value:s.PropTypes.any,onChange:s.PropTypes.func,open:s.PropTypes.bool,onToggle:s.PropTypes.func,itemComponent:s.PropTypes.func,data:s.PropTypes.array,valueField:s.PropTypes.string,textField:s.PropTypes.string,disabled:s.PropTypes.oneOfType([s.PropTypes.bool,s.PropTypes.oneOf(["disabled"])]),readOnly:s.PropTypes.oneOfType([s.PropTypes.bool,s.PropTypes.oneOf(["readOnly"])]),suggest:s.PropTypes.bool,busy:s.PropTypes.bool,duration:s.PropTypes.number,placeholder:s.PropTypes.string,messages:s.PropTypes.shape({open:s.PropTypes.string,emptyList:s.PropTypes.string,emptyFilter:s.PropTypes.string})},y=s.createClass({displayName:"ComboBox",mixins:[n(80),n(82),n(86),n(83),n(84),n(85)("focusedIndex"),n(85)("selectedIndex")],propTypes:f,getInitialState:function(){var e=this.process(this.props.data,this.props.value),t=this._dataIndexOf(e,this.props.value);return{selectedIndex:t,focusedIndex:-1===t?0:t,processedData:e,open:!1}},getDefaultProps:function(){return{data:[],value:"",open:!1,suggest:!1,filter:!1,delay:500,messages:{open:"open combobox",emptyList:"There are no items in this list",emptyFilter:"The filter returned no results"}}},shouldComponentUpdate:function(e,t){var n=this.refs.input&&this.refs.input.isSuggesting(),s=!a(t,this.state),i=!a(e,this.props);return n||s||i},componentWillReceiveProps:function(e){var t=this._dataIndexOf(e.data,e.value),n=-1==t?e.value:e.data[t],a=this.refs.input.isSuggesting(),s=this.process(e.data,e.value,(-1===t||a)&&this._dataText(n)),i=this._dataIndexOf(s,e.value),r=this.filterIndexOf(s,this._dataText(n));this._searchTerm="",this.setState({processedData:s,selectedIndex:i,focusedIndex:-1===i?-1!==r?r:0:i})},render:function(){var e=(this.props.valueComponent,this._dataItem(this._data(),this.props.value)),t=this._data(),n=this._id("_listbox"),a=this._id("_option"),o=this.props.suggest?this.props.filter?"both":"inline":this.props.filter?"list":"";return p(r.omit(this.props,r.keys(f)),s.DOM.div({ref:"element",onKeyDown:this._maybeHandle(this._keyDown),onFocus:this._maybeHandle(r.partial(this._focus,!0),!0),onBlur:this._focus.bind(null,!1),tabIndex:"-1",className:i({"rw-combobox":!0,"rw-widget":!0,"rw-state-focus":this.state.focused,"rw-open":this.props.open,"rw-state-disabled":this.props.disabled,"rw-state-readonly":this.props.readOnly,"rw-rtl":this.isRtl()})},m({tabIndex:"-1",className:"rw-select",onClick:this._maybeHandle(this.toggle),disabled:!(!this.props.disabled&&!this.props.readOnly)},s.DOM.i({className:"rw-i rw-i-caret-down"+(this.props.busy?" rw-loading":"")},s.DOM.span({className:"rw-sr"},this.props.messages.open))),u({ref:"input",type:"text",role:"combobox",suggest:this.props.suggest,"aria-owns":n,"aria-busy":!!this.props.busy,"aria-autocomplete":o,"aria-activedescendent":this.props.open?a:void 0,"aria-expanded":this.props.open,"aria-haspopup":!0,placeholder:this.props.placeholder,disabled:this.props.disabled,readOnly:this.props.readOnly,className:"rw-input",value:this._dataText(e),onChange:this._inputTyping,onKeyDown:this._inputKeyDown}),d({open:this.props.open,onRequestClose:this.close,duration:this.props.duration},s.DOM.div(null,c({ref:"list",id:n,optID:a,"aria-hidden":!this.props.open,"aria-live":o&&"polite",style:{maxHeight:200,height:"auto"},data:t,selectedIndex:this.state.selectedIndex,focusedIndex:this.state.focusedIndex,textField:this.props.textField,valueField:this.props.valueField,onSelect:this._maybeHandle(this._onSelect),listItem:this.props.itemComponent,messages:{emptyList:this.props.data.length?this.props.messages.emptyFilter:this.props.messages.emptyList}})))))},setWidth:function(){var e=h.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})},_onSelect:function(e){this.close(),this.change(e),this._focus(!0)},_inputKeyDown:function(e){this._deleting="Backspace"===e.key||"Delete"===e.key,this._isTyping=!0},_inputTyping:function(e){var t,n,a=this,s=!!this.props.suggest,i=e.target.value;t=this._deleting||!s?i:this.suggest(this._data(),i),t=t||i,n=r.find(a.props.data,function(e){return a._dataText(e).toLowerCase()===t.toLowerCase()}),this.change(!this._deleting&&n?n:i,!0),this.open()},_focus:function(e){var t=this;clearTimeout(t.timer),!e&&t.refs.input.accept(),t.timer=setTimeout(function(){e?t.refs.input.focus():t.close(),e!==t.state.focused&&t.setState({focused:e})},0)},_keyDown:function(e){function t(e){return-1===e||0===n._data().length?n.change(n.refs.input.getDOMNode().value,!1):(n.refs.input.accept(!0),void n.change(n._data()[e],!1))}var n=this,a=e.key,s=e.altKey,i=(String.fromCharCode(e.keyCode),this.state.selectedIndex,this.state.focusedIndex),r=this.props.open;"End"===a?t(this._data().length-1):"Home"===a?t(0):"Escape"===a&&r?this.close():"Enter"===a&&r?(t(i),this.close()):"ArrowDown"===a?s?this.open():r?this.setFocusedIndex(this.nextFocusedIndex()):t(this.nextSelectedIndex()):"ArrowUp"===a&&(s?this.close():r?this.setFocusedIndex(this.prevFocusedIndex()):t(this.prevSelectedIndex()))},change:function(e,t){this._typedChange=!!t,this.notify("onChange",e)},open:function(){this.props.open||this.notify("onToggle",!0)},close:function(){this.props.open&&this.notify("onToggle",!1)},toggle:function(){this._focus(!0),this.props.open?this.close():this.open()},suggest:function(e,t){function n(e){return s(this._dataText(e).toLowerCase(),a.toLowerCase())}var a=this._dataText(t),s=o.startsWith,i="string"==typeof t?r.find(e,n,this):t;return!i||this.state&&this.state.deleting?"":this._dataText(i)},_data:function(){return this.state.processedData},process:function(e,t,n){return this.props.filter&&n&&(e=this.filter(e,n)),e}});e.exports=l.createControlledClass("ComboBox",y,{open:"onToggle",value:"onChange"})},function(e,t,n){var a=n(1),s=n(68),i=n(69),r=n(70),o=n(71),l=n(72),p=n(11),u=n(57),d=n(58),c=n(56),h=n(73),m=n(59).mergeIntoProps,f=n(60),y=n(2),g=f.directions,v=f.calendarViews,b=y.values(v),D=y.invert(f.calendarViewHierarchy),O=f.calendarViewHierarchy,w=f.calendarViewUnits,M=y.object([[v.MONTH,i],[v.YEAR,r],[v.DECADE,o],[v.CENTURY,l]]),T=y.object([[v.YEAR,1],[v.DECADE,10],[v.CENTURY,100]]),x=a.createClass({displayName:"Calendar",mixins:[n(80),n(81),n(84)],propTypes:{onChange:a.PropTypes.func.isRequired,value:a.PropTypes.instanceOf(Date),min:a.PropTypes.instanceOf(Date),max:a.PropTypes.instanceOf(Date),initialView:a.PropTypes.oneOf(b),finalView:a.PropTypes.oneOf(b),disabled:a.PropTypes.oneOfType([a.PropTypes.bool,a.PropTypes.oneOf(["disabled"])]),readOnly:a.PropTypes.oneOfType([a.PropTypes.bool,a.PropTypes.oneOf(["readOnly"])]),messages:a.PropTypes.shape({moveBack:a.PropTypes.string,moveForward:a.PropTypes.string}),maintainFocus:a.PropTypes.bool},getInitialState:function(){return{selectedIndex:0,view:this.props.initialView||"month",currentDate:this.inRangeValue(new Date(this.props.value))}},getDefaultProps:function(){return{open:!1,value:new Date,min:new Date(1900,0,1),max:new Date(2099,11,31),initialView:"month",finalView:"century",maintainFocus:!0}},componentWillReceiveProps:function(e){var t=b.indexOf(e.initialView),n=b.indexOf(e.finalView),a=b.indexOf(this.state.view),s=this.state.view,i=this.inRangeValue(new Date(e.value));t>a?this.setState({view:s=e.initialView}):a>n&&this.setState({view:s=e.finalView}),h.eq(i,this.props.value,w[s])||this.setState({currentDate:i})},render:function(){function e(){this._focus(!0,"stop")}var t=M[this.state.view],n=this.props.disabled||this.props.readOnly,i=this.state.currentDate,r=this._id("_view_label"),o=this.state.view+"_"+h[this.state.view](i),l=this._id("_view");return m(y.omit(this.props,"value","min","max"),a.DOM.div({className:p({"rw-calendar":!0,"rw-widget":!0,"rw-state-disabled":this.props.disabled,"rw-state-readonly":this.props.readOnly,"rw-rtl":this.isRtl()})},s({label:this._label(),labelId:r,messages:this.props.messages,upDisabled:n||this.state.view===this.props.finalView,prevDisabled:n||!h.inRange(this.nextDate(g.LEFT),this.props.min,this.props.max),nextDisabled:n||!h.inRange(this.nextDate(g.RIGHT),this.props.min,this.props.max),onViewChange:this._maybeHandle(y.partial(this.navigate,g.UP,null)),onMoveLeft:this._maybeHandle(y.partial(this.navigate,g.LEFT,null)),onMoveRight:this._maybeHandle(y.partial(this.navigate,g.RIGHT,null))}),c({ref:"animation",direction:this.state.slideDirection,onAnimate:e.bind(this)},t({ref:"currentView",key:o,id:l,"aria-labeledby":r,selectedDate:this.props.value,value:this.state.currentDate,onChange:this._maybeHandle(this.change),onKeyDown:this._maybeHandle(this._keyDown),onFocus:this._maybeHandle(y.partial(this._focus,!0),!0),onMoveLeft:this._maybeHandle(y.partial(this.navigate,g.LEFT)),onMoveRight:this._maybeHandle(y.partial(this.navigate,g.RIGHT)),disabled:this.props.disabled,readOnly:this.props.readOnly,min:this.props.min,max:this.props.max}))))},navigate:function(e,t){var n=this.state.view,a=e===g.LEFT||e===g.UP?"right":"left";t||(t=y.contains([g.LEFT,g.RIGHT],e)?this.nextDate(e):this.state.currentDate),e===g.DOWN&&(n=D[n]||n),e===g.UP&&(n=O[n]||n),this.isValidView(n)&&h.inRange(t,this.props.min,this.props.max,n)&&(this._focus(!0,"nav"),this.setState({currentDate:t,slideDirection:a,view:n}))},_focus:function(e){u("focused");this.props.maintainFocus&&e&&this.refs.currentView.getDOMNode().focus()},change:function(e){return this.props.onChange&&this.state.view===this.props.initialView?this.notify("onChange",e):void this.navigate(g.DOWN,e)},nextDate:function(e){var t=e===g.LEFT?"subtract":"add",n=this.state.view,a=n===v.MONTH?n:v.YEAR,s=T[n]||1;return h[t](this.state.currentDate,1*s,a)},_keyDown:function(e){var t=e.ctrlKey,n=e.key;t?("ArrowDown"===n&&(e.preventDefault(),this.navigate(g.DOWN)),"ArrowUp"===n&&(e.preventDefault(),this.navigate(g.UP)),"ArrowLeft"===n&&(e.preventDefault(),this.navigate(g.LEFT)),"ArrowRight"===n&&(e.preventDefault(),this.navigate(g.RIGHT))):this.refs.currentView._keyDown&&this.refs.currentView._keyDown(e)},_label:function(){var e=this.state.view,t=this.state.currentDate;return"month"===e?h.format(t,h.formats.MONTH_YEAR):"year"===e?h.format(t,h.formats.YEAR):"decade"===e?h.format(h.firstOfDecade(t),h.formats.YEAR)+" - "+h.format(h.lastOfDecade(t),h.formats.YEAR):"century"===e?h.format(h.firstOfCentury(t),h.formats.YEAR)+" - "+h.format(h.lastOfCentury(t),h.formats.YEAR):void 0},inRangeValue:function(e){return null==e?e:h.max(h.min(e,this.props.max),this.props.min)},isValidView:function(e){var t=b.indexOf(this.props.initialView),n=b.indexOf(this.props.finalView),a=b.indexOf(e);return a>=t&&n>=a}});e.exports=d.createControlledClass("Calendar",x,{value:"onChange"})},function(e,t,n){function a(e,t){var n="";return e instanceof Date&&!isNaN(e.getTime())&&(n=l.format(e,t)),n}function s(e,t){var n;e=[].concat(e);for(var a=0;an?n:s>e+t?s-t:e)}})},function(e,t,n){"use strict";function a(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})}function s(e){return e.replace(/[A-Z]/g,function(e,t){return(0!==t?"-":"")+e.toLowerCase()})}function i(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)}var r,o,l,p,u,d,c=n(2),h="",m=document.createElement("div"),f={},y={O:"otransitionend",Moz:"transitionend",Webkit:"webkitTransitionEnd"};c.any(y,function(e,t){return void 0!==m.style[t+"TransitionProperty"]?(h="-"+t.toLowerCase()+"-",d=e,!0):void 0}),d||void 0===m.style.transitionProperty||(d="transitionend"),u=!d,f[l=h+"transition-property"]=f[o=h+"transition-duration"]=f[p=h+"transition-delay"]=f[r=h+"transition-timing-function"]="";var g=e.exports={width:function(e){return g.offset(e).width},height:function(e){return g.offset(e).height},hasFocus:function(e){var t=e.ownerDocument;return null==t.activeElement?!1:t.activeElement===e},offset:function(e){var t=e.ownerDocument,n=t&&t.documentElement,a={top:0,left:0};if(n)return g.contains(n,e)?(void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect()),{top:a.top+window.pageYOffset-n.clientTop,left:a.left+window.pageXOffset-n.clientLeft,width:a.width||e.offsetWidth,height:a.height||e.offsetHeight}):a},css:function(e,t,n){var r="",o=t;if("string"==typeof t){if(void 0===n)return e.style[a(t)]||i(e).getPropertyValue(t);(o={})[t]=n}c.each(o,function(t,n){t||0===t?r+=s(n)+":"+t+";":e.style.removeProperty(s(n))}),e.style.cssText+=";"+r},contains:function(){var e=document.documentElement;return e&&e.contains?function(e,t){return e.contains(t)}:e&&e.compareDocumentPosition?function(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}:function(e,t){if(t)do if(t===e)return!0;while(t=t.parentNode);return!1}}(),on:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},off:function(e,t,n){e.addEventListener?e.removeEventListener(t,n,!1):e.attachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},trigger:function(e,t){var n=document.createEvent("Events");n.initEvent(t,!0,!0),e.dispatchEvent(n)},animate:function(e,t,n,a,i){function h(t){t.target===t.currentTarget&&(m=!0,g.off(t.target,d,h),g.css(e,f),i&&i.call(this))}var m,y=[],v={target:e,currentTarget:e},b={};"function"==typeof a&&(i=a,a=null),u&&(n=0),void 0===n&&(n=200),c.each(t,function(e,n){b[n]=t[n],y.push(s(n))}),n>0&&(b[l]=y.join(", "),b[o]=n/1e3+"s",b[p]="0s",b[r]=a||"linear",g.on(e,d,h),setTimeout(function(){m||h(v)},n+25)),e.clientLeft,g.css(e,b),0>=n&&setTimeout(c.partial(h,v),0)}}},function(e,t,n){var a=n(1);e.exports=a.createClass({displayName:"exports",render:function(){return this.transferPropsTo(a.DOM.button({type:"button",className:"rw-btn"},this.props.children))}})},function(e){"use strict";e.exports=function(e,t,n){return void 0===t?{start:e.selectionStart,end:e.selectionEnd}:(e.focus(),void e.setSelectionRange(t,n))}},function(e,t,n){"use strict";var a=n(2),s={eq:function(e,t){return e===t},neq:function(e,t){return e!==t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},lt:function(e,t){return t>e},lte:function(e,t){return t>=e},contains:function(e,t){return a.contains(e,t)},startsWith:function(e,t){return 0===e.lastIndexOf(t,0)},endsWith:function(e,t){var n=e.length-t.length,a=e.indexOf(t,n);return-1!==a&&a===n}};e.exports=s},function(e,t,n){var a=n(1),s=(n(11),n(88),n(65));e.exports=a.createClass({displayName:"exports",propTypes:{value:a.PropTypes.string,onChange:a.PropTypes.func.isRequired},componentDidUpdate:function(){var e=this.getDOMNode(),t=this.props.value;if(this.isSuggesting()){var n=t.toLowerCase().indexOf(this._last.toLowerCase())+this._last.length,a=t.length-n;n>=0&&s(e,n,n+a)}},getDefaultProps:function(){return{value:""}},render:function(){return this.transferPropsTo(a.DOM.input({type:"text",className:"rw-input",onKeyDown:this.props.onKeyDown,onChange:this._change,value:null==this.props.value?"":this.props.value}))},isSuggesting:function(){var e=this.props.value,t=null!=this._last&&-1!==e.toLowerCase().indexOf(this._last.toLowerCase());return this.props.suggest&&t},accept:function(e){var t=this.getDOMNode().value||"",n=t.length;this._last=null,e&&s(this.getDOMNode(),n,n)},_change:function(e){var t=e.target.value;this._last=t,this.props.onChange(e,t)},focus:function(){this.getDOMNode().focus()}})},function(e,t,n){var a=n(1),s=(n(11),n(64));e.exports=a.createClass({displayName:"exports",propTypes:{label:a.PropTypes.string.isRequired,labelId:a.PropTypes.string,upDisabled:a.PropTypes.bool.isRequired,prevDisabled:a.PropTypes.bool.isRequired,nextDisabled:a.PropTypes.bool.isRequired,onViewChange:a.PropTypes.func.isRequired,onMoveLeft:a.PropTypes.func.isRequired,onMoveRight:a.PropTypes.func.isRequired,messages:a.PropTypes.shape({moveBack:a.PropTypes.string,moveForward:a.PropTypes.string})},mixins:[n(81),n(89)],getDefaultProps:function(){return{messages:{moveBack:"navigate back",moveForward:"navigate forward"}}},render:function(){var e=this.isRtl();return a.DOM.div({className:"rw-header"},s({className:"rw-btn-left",onClick:this.props.onMoveLeft,disabled:this.props.prevDisabled,"aria-disabled":this.props.prevDisabled,title:this.props.moveBack},a.DOM.i({className:"rw-i rw-i-caret-"+(e?"right":"left")},a.DOM.span({className:"rw-sr"},this.props.moveBack))),s({className:"rw-btn-view",id:this.props.labelId,onClick:this.props.onViewChange,disabled:this.props.upDisabled,"aria-disabled":this.props.upDisabled},this.props.label),s({className:"rw-btn-right",onClick:this.props.onMoveRight,disabled:this.props.nextDisabled,"aria-disabled":this.props.nextDisabled,title:this.props.moveForward},a.DOM.i({className:"rw-i rw-i-caret-"+(e?"left":"right")},a.DOM.span({className:"rw-sr"},this.props.moveForward))))}})},function(e,t,n){var a=n(1),s=n(11),i=n(73),r=n(90),o=n(60).directions,l=n(59).mergeIntoProps,p=n(2),u=n(64),d={LEFT:o.RIGHT,RIGHT:o.LEFT};e.exports=a.createClass({displayName:"MonthView",mixins:[n(80),n(89),n(91)("month","day")],propTypes:{culture:a.PropTypes.array,value:a.PropTypes.instanceOf(Date),selectedDate:a.PropTypes.instanceOf(Date),min:a.PropTypes.instanceOf(Date),max:a.PropTypes.instanceOf(Date),format:a.PropTypes.string,onChange:a.PropTypes.func.isRequired,onMoveLeft:a.PropTypes.func,onMoveRight:a.PropTypes.func},render:function(){var e=i.visibleDays(this.props.value),t=r(e,7);return l(p.omit(this.props,"max","min","value","onChange"),a.DOM.table({role:"grid",tabIndex:this.props.disabled?"-1":"0",className:"rw-calendar-grid","aria-activedescendant":this._id("_selected_item"),onKeyUp:this._keyUp},a.DOM.thead(null,a.DOM.tr(null,this._headers())),a.DOM.tbody(null,p.map(t,this._row))))},_row:function(e,t){return a.DOM.tr({key:"week_"+t},p.map(e,function(e,t){var n=i.eq(e,this.state.focusedDate,"day"),r=i.eq(e,this.props.selectedDate,"day"),o=this._id("_selected_item");return i.inRange(e,this.props.min,this.props.max)?a.DOM.td({key:"day_"+t},u({tabIndex:"-1",onClick:p.partial(this.props.onChange,e),"aria-selected":r,"aria-disabled":this.props.disabled,disabled:this.props.disabled,className:s({"rw-off-range":i.month(e)!==i.month(this.state.focusedDate),"rw-state-focus":n,"rw-state-selected":r}),id:n?o:void 0},i.format(e,"dd"))):a.DOM.td({key:"day_"+t,className:"rw-empty-cell"}," ")}.bind(this)))},_headers:function(e){var t=i.shortDaysOfWeek(e);return p.map(t,function(e,t){return a.DOM.th({key:"header_"+t},e)})},move:function(e,t){return this.isRtl()&&d[t]&&(t=d[t]),t===o.LEFT?e=i.subtract(e,1,"day"):t===o.RIGHT?e=i.add(e,1,"day"):t===o.UP?e=i.subtract(e,1,"week"):t===o.DOWN&&(e=i.add(e,1,"week")),e}})},function(e,t,n){var a=n(1),s=n(11),i=n(73),r=n(90),o=n(60).directions,l=n(59).mergeIntoProps,p=n(2),u={LEFT:o.RIGHT,RIGHT:o.LEFT};e.exports=a.createClass({displayName:"YearView",mixins:[n(80),n(89),n(91)("year","month")],propTypes:{value:a.PropTypes.instanceOf(Date),min:a.PropTypes.instanceOf(Date),max:a.PropTypes.instanceOf(Date),onChange:a.PropTypes.func.isRequired},render:function(){var e=i.monthsInYear(i.year(this.props.value)),t=r(e,4);return l(p.omit(this.props,"max","min","value","onChange"),a.DOM.table({tabIndex:this.props.disabled?"-1":"0",ref:"table",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-activedescendant":this._id("_selected_item"),onKeyUp:this._keyUp},a.DOM.tbody(null,p.map(t,this._row))))},_row:function(e,t){return a.DOM.tr({key:t},p.map(e,function(e,t){var n=i.eq(e,this.state.focusedDate,"month"),r=i.eq(e,this.props.value,"month"),o=this._id("_selected_item");return i.inRange(e,this.props.min,this.props.max,"month")?a.DOM.td({key:t},d({onClick:p.partial(this.props.onChange,e),tabIndex:"-1",id:n?o:void 0,"aria-selected":r,"aria-disabled":this.props.disabled,disabled:this.props.disabled,className:s({"rw-state-focus":n,"rw-state-selected":r})},i.format(e,i.formats.MONTH_NAME_ABRV))):a.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},focus:function(){this.refs.table.getDOMNode().focus()},move:function(e,t){return this.isRtl()&&u[t]&&(t=u[t]),t===o.LEFT?e=i.subtract(e,1,"month"):t===o.RIGHT?e=i.add(e,1,"month"):t===o.UP?e=i.subtract(e,4,"month"):t===o.DOWN&&(e=i.add(e,4,"month")),e}});var d=n(64)},function(e,t,n){function a(e,t){return o.gte(e,o.startOf(t,"decade"),"year")&&o.lte(e,o.endOf(t,"decade"),"year")}function s(e){var e=o.add(o.startOf(e,"decade"),-2,"year");return d.map(d.range(12),function(){return e=o.add(e,1,"year")})}var i=n(1),r=n(11),o=n(73),l=n(90),p=n(60).directions,u=n(59).mergeIntoProps,d=n(2),c={LEFT:p.RIGHT,RIGHT:p.LEFT};e.exports=i.createClass({displayName:"DecadeView",mixins:[n(80),n(81),n(89),n(91)("decade","year")],propTypes:{value:i.PropTypes.instanceOf(Date),min:i.PropTypes.instanceOf(Date),max:i.PropTypes.instanceOf(Date),onChange:i.PropTypes.func.isRequired},render:function(){var e=s(this.props.value),t=l(e,4);return u(d.omit(this.props,"max","min","value","onChange"),i.DOM.table({tabIndex:this.props.disabled?"-1":"0",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-activedescendant":this._id("_selected_item"),onKeyUp:this._keyUp},i.DOM.tbody(null,d.map(t,this._row))))},_row:function(e,t){this._id("_selected_item");return i.DOM.tr({key:"row_"+t},d.map(e,function(e,t){var n=o.eq(e,this.state.focusedDate,"year"),s=o.eq(e,this.props.value,"year"),l=this.props.id&&this.props.id+"_selected_item";return o.inRange(e,this.props.min,this.props.max,"year")?i.DOM.td({key:t},h({onClick:d.partial(this.props.onChange,e),tabIndex:"-1",id:n?l:void 0,"aria-selected":s,"aria-disabled":this.props.disabled,disabled:this.props.disabled,className:r({"rw-off-range":!a(e,this.props.value),"rw-state-focus":n,"rw-state-selected":s})},o.format(e,o.formats.YEAR))):i.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},move:function(e,t){return this.isRtl()&&c[t]&&(t=c[t]),t===p.LEFT?e=o.subtract(e,1,"year"):t===p.RIGHT?e=o.add(e,1,"year"):t===p.UP?e=o.subtract(e,4,"year"):t===p.DOWN&&(e=o.add(e,4,"year")),e}});var h=n(64)},function(e,t,n){function a(e){return u.format(u.startOf(e,"decade"),u.formats.YEAR)+" - "+u.format(u.endOf(e,"decade"),u.formats.YEAR)}function s(e,t,n){return u.max(u.min(e,n),t)}function i(e,t,n){return u.gte(e,u.startOf(t,"decade"),"year")&&u.lte(e,u.endOf(n,"decade"),"year")}function r(e,t){return u.gte(e,u.startOf(t,"century"),"year")&&u.lte(e,u.endOf(t,"century"),"year")}function o(e){var e=u.add(u.startOf(e,"century"),-20,"year");return m.map(m.range(12),function(){return e=u.add(e,10,"year")})}var l=n(1),p=n(11),u=n(73),d=n(90),c=n(60).directions,h=n(59).mergeIntoProps,m=n(2),f={LEFT:c.RIGHT,RIGHT:c.LEFT};e.exports=l.createClass({displayName:"CenturyView",mixins:[n(80),n(81),n(89),n(91)("century","decade")],propTypes:{value:l.PropTypes.instanceOf(Date),min:l.PropTypes.instanceOf(Date),max:l.PropTypes.instanceOf(Date),onChange:l.PropTypes.func.isRequired},render:function(){var e=o(this.props.value),t=d(e,4);return h(m.omit(this.props,"max","min","value","onChange"),l.DOM.table({tabIndex:this.props.disabled?"-1":"0",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-activedescendant":this._id("_selected_item"),onKeyUp:this._keyUp},l.DOM.tbody(null,m.map(t,this._row))))},_row:function(e,t){return l.DOM.tr({key:"row_"+t},m.map(e,function(e,t){var n=u.eq(e,this.state.focusedDate,"decade"),o=u.eq(e,this.props.value,"decade"),d=this._id("_selected_item"),c=s(e,this.props.min,this.props.max);return i(e,this.props.min,this.props.max)?l.DOM.td({key:t},y({onClick:m.partial(this.props.onChange,c),tabIndex:"-1",id:n?d:void 0,"aria-selected":o,"aria-disabled":this.props.disabled,disabled:this.props.disabled,className:p({"rw-off-range":!r(e,this.props.value),"rw-state-focus":n,"rw-state-selected":o})},a(e))):l.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},move:function(e,t){return this.isRtl()&&f[t]&&(t=f[t]),t===c.LEFT?e=u.subtract(e,1,"decade"):t===c.RIGHT?e=u.add(e,1,"decade"):t===c.UP?e=u.subtract(e,4,"decade"):t===c.DOWN&&(e=u.add(e,4,"decade")),e}});var y=n(64)},function(e,t,n){"use strict";var a=n(47),s=n(92),i=n(2),r=e.exports=i.extend({},a,{culture:function(){return s.culture()},startOfWeek:function(){var e=s.culture();return e&&e.calendar?e.calendar.firstDay||0:0},parse:function(e,t,n){return s.parseDate(e,t,n)},format:function(e,t,n){return s.format(e,t,n)},shortDaysOfWeek:function(){var e=r.culture();return e&&e.calendar?e.calendar.days.namesShort.slice():void 0},daysOfWeek:function(e,t){return 1===arguments.length&&(t=e,e=new Date),t=t||"do",i.map(i.range(7),function(n){return r.format(a.weekday(e,n),t)})},months:function(e,t){return 1===arguments.length&&(t=e,e=new Date),t=t||r.formats.DAY_NAME_ABRV,i.map(i.range(12),function(n){return r.format(a.month(e,n),t)})},monthsInYear:function(e){var t=new Date(e,0,1);return i.map(i.range(12),function(e){return a.month(t,e)})},firstOfDecade:function(e){var t=a.year(e)%10;return a.subtract(e,t,"year")},lastOfDecade:function(e){return a.add(r.firstOfDecade(e),9,"year")},firstOfCentury:function(e){var t=a.year(e)%100;return a.subtract(e,t,"year")},lastOfCentury:function(e){return a.add(r.firstOfCentury(e),99,"year")},firstVisibleDay:function(e){var t=a.startOf(e,"month");return a.startOf(t,"week")},lastVisibleDay:function(e){var t=a.endOf(e,"month");return a.endOf(t,"week")},visibleDays:function(e){for(var t=r.firstVisibleDay(e),n=r.lastVisibleDay(e),s=[];a.lte(t,n,"day");)s.push(t),t=a.add(t,1,"day");return s},merge:function(e,t){return null==t&&null==e?null:(null==t&&(t=new Date),null==e&&(e=new Date),e=r.startOf(e,"day"),e=r.hours(e,r.hours(t)),e=r.minutes(e,r.minutes(t)),e=r.seconds(e,r.seconds(t)),r.milliseconds(e,r.milliseconds(t)))},sameMonth:function(e,t){return a.eq(e,t,"month")},today:function(){return this.startOf(new Date,"day")},yesterday:function(){return this.add(this.startOf(new Date,"day"),-1,"day")},tomorrow:function(){return this.add(this.startOf(new Date,"day"),1,"day")},formats:{DAY_OF_MONTH:"dd",DAY_NAME_SHORT:null,MONTH_NAME_ABRV:"MMM",MONTH_YEAR:"MMMM yyyy",YEAR:"yyyy"}})},function(e,t,n){var a=n(1),s=(n(11),n(73)),i=n(62),r=n(59).mergeIntoProps,o=(n(60).directions,n(2));e.exports=a.createClass({displayName:"TimeList",mixins:[n(82),n(85)("selectedIndex"),n(85)("focusedIndex")],propTypes:{value:a.PropTypes.instanceOf(Date),min:a.PropTypes.instanceOf(Date),max:a.PropTypes.instanceOf(Date),step:a.PropTypes.number,itemComponent:a.PropTypes.func,onSelect:a.PropTypes.func,preserveDate:a.PropTypes.bool},getDefaultProps:function(){return{step:30,format:"t",onSelect:o.noop,preserveDate:!0}},getInitialState:function(){var e=this._selectedIndex(this._data(),this.props.value);return{focusedIndex:-1===e?0:e}},render:function(){var e=this._data(),t=this._selectedIndex(e,this.props.value);return r(o.omit(this.props,"value"),i({ref:"list",data:e,textField:"label",valueField:"date",selectedIndex:t,focusedIndex:this.state.focusedIndex,listItem:this.props.itemComponent,onSelect:this.props.onSelect}))},_selectedIndex:function(e,t){var n=6e4*this.props.step;return t?(t=new Date(Math.floor(t.getTime()/n)*n),o.findIndex(e,{label:s.format(t,this.props.format)})):0},_data:function(){for(var e=[],t=0,n=this._dateValues(),a=n.min,i=s.date(a);100>t&&s.date(a)===i&&s.lte(a,n.max);)t++,e.push({date:a,label:s.format(a,this.props.format)}),a=s.add(a,this.props.step||30,"minutes");return e},_dateValues:function(){var e,t,n=this.props.value||s.today(),a=this.props.preserveDate,i=this.props.min,r=this.props.max;return a?{min:s.eq(n,i,"day")?i:s.today(),max:s.eq(n,r,"day")?i:s.tomorrow()}:(e=s.startOf(s.merge(new Date,i),"minutes"),t=s.startOf(s.merge(new Date,r),"minutes"),s.lte(t,e)&&s.gt(r,i,"day")&&(t=s.tomorrow()),{min:e,max:t})},_keyDown:function(e){var t=this,n=e.key,a=String.fromCharCode(e.keyCode);"End"===n?this.setFocusedIndex(this._data().length-1):"Home"===n?this.setFocusedIndex(0):"Enter"===n?this.props.onSelect(this._data()[this.state.focusedIndex]):"ArrowDown"===n?(e.preventDefault(),this.setFocusedIndex(this.nextFocusedIndex())):"ArrowUp"===n?(e.preventDefault(),this.setFocusedIndex(this.prevFocusedIndex())):(e.preventDefault(),this.search(a,function(e){t.setFocusedIndex(this.findNextWordIndex(e,t.state.focusedIndex))}))}});n(64)},function(e,t,n){function a(e){return!isNaN(e.getTime())}function s(e,t){var n="";return e instanceof Date&&a(e)&&(n=l.format(e,t)),n}var i=n(1),r=n(11),o=n(88),l=n(73);e.exports=i.createClass({displayName:"DatePickerInput",propTypes:{format:i.PropTypes.string,parse:i.PropTypes.func.isRequired,value:i.PropTypes.instanceOf(Date),onChange:i.PropTypes.func.isRequired},getDefaultProps:function(){return{textValue:""}},componentWillReceiveProps:function(e){this.setState({textValue:s(e.value,e.editing&&e.editFormat?e.editFormat:e.format)})},getInitialState:function(){var e=s(this.props.value,this.props.editing&&this.props.editFormat?this.props.editFormat:this.props.format);return{textValue:e,lastValue:e}},render:function(){var e=this.state.textValue;return this.transferPropsTo(i.DOM.input({type:"text",className:r({"rw-input":!0}),value:e,"aria-disabled":this.props.disabled,"aria-readonly":this.props.readOnly,disabled:this.props.disabled,readOnly:this.props.readOnly,onChange:this._change,onBlur:o.chain(this.props.blur,this._blur)}))},_change:function(e){this.setState({textValue:e.target.value})},_blur:function(){var e=this.state.textValue;e!==this.state.lastValue&&(this.props.onChange(this.props.parse(e),e),this.setState({lastValue:e}))},focus:function(){this.getDOMNode().focus()}})},function(e,t,n){var a=n(1),s=(n(11),n(88),n(57)),i=n(92);e.exports=a.createClass({displayName:"NumberPickerInput",propTypes:{value:a.PropTypes.number,format:a.PropTypes.string,min:a.PropTypes.number,onChange:a.PropTypes.func.isRequired,onKeyDown:a.PropTypes.func},getDefaultProps:function(){return{value:null,format:"d",editing:!1}},getInitialState:function(){var e=this.props.editing?this.props.value:i.format(this.props.value,this.props.format);return{stringValue:e}},componentWillReceiveProps:function(e){var t=e.editing?e.value:i.format(e.value,e.format);isNaN(e.value)&&(t=""),this.current(t)},render:function(){var e=this.state.stringValue;return this.transferPropsTo(a.DOM.input({type:"text",className:"rw-input",onKeyDown:this.props.onKeyDown,onChange:this._change,onBlur:this._finish,"aria-disabled":this.props.disabled,"aria-readonly":this.props.readOnly,disabled:this.props.disabled,readOnly:this.props.readOnly,value:e}))},_change:function(e){var t=e.target.value,n=+e.target.value,a=0!==t&&!t,s=_.isFinite(this.props.min);return!s&&a?this.props.onChange(null):this.isValid(n)&&n!==this.props.value?this.props.onChange(n):void this.current(e.target.value)},_finish:function(){var e=+this.state.stringValue;!isNaN(e)&&e=this.props.min},current:s("stringValue")})},function(e,t,n){var a=n(1);e.exports=a.createClass({displayName:"SelectSearchInput",propTypes:{value:a.PropTypes.string,onChange:a.PropTypes.func.isRequired,disabled:a.PropTypes.bool,readOnly:a.PropTypes.bool},componentDidUpdate:function(){this.props.focused&&this.focus()},render:function(){var e=this.props.value,t=this.props.placeholder,n=Math.max((e||t).length,1);return this.transferPropsTo(a.DOM.input({type:"text",className:"rw-input","aria-disabled":this.props.disabled,"aria-readonly":this.props.readOnly,disabled:this.props.disabled,readOnly:this.props.readOnly,size:n}))},focus:function(){this.getDOMNode().focus()}})},function(e,t,n){var a=n(1),s=n(2),i=n(11),r=n(59).mergeIntoProps,o=n(64);e.exports=a.createClass({displayName:"SelectTagList",mixins:[n(83),n(81)],propTypes:{value:a.PropTypes.array,valueField:a.PropTypes.string,textField:a.PropTypes.string,valueComponent:a.PropTypes.component,disabled:a.PropTypes.oneOfType([a.PropTypes.bool,a.PropTypes.array,a.PropTypes.oneOf(["disabled"])]),readOnly:a.PropTypes.oneOfType([a.PropTypes.bool,a.PropTypes.array,a.PropTypes.oneOf(["readonly"])])},getInitialState:function(){return{focused:null}},render:function(){{var e=this.state.focused,t=this.props.value;s.isArray(this.props.disabled),s.isArray(this.props.readOnly)}return r(s.omit(this.props,"value","disabled","readOnly"),a.DOM.ul({className:"rw-tag-list"},s.map(t,function(t,n){var s=this.isDisabled(t),r=this.isReadOnly(t);return a.DOM.li({key:n,className:i({"rw-state-focus":!s&&e===n,"rw-state-disabled":s,"rw-state-readonly":r})},this.props.valueComponent?this.props.valueComponent({item:t}):this._dataText(t),o({tabIndex:"-1",onClick:!(s||r)&&this._delete.bind(null,t),"aria-disabled":s,disabled:s},"×",a.DOM.span({className:"rw-sr"},"Remove "+this._dataText(t))))},this)))},_delete:function(e){this.props.onDelete(e)},removeCurrent:function(){var e=this.props.value[this.state.focused];!e||this.isDisabled(e)||this.isReadOnly(e)||this.props.onDelete(e)},isDisabled:function(e,t){return t&&(e=this.props.value[e]),this.props.disabled===!0||-1!==this._dataIndexOf(this.props.disabled||[],e)},isReadOnly:function(e,t){return t&&(e=this.props.value[e]),this.props.readOnly===!0||-1!==this._dataIndexOf(this.props.readOnly||[],e)},removeNext:function(){var e=s.last(this.props.value);!e||this.isDisabled(e)||this.isReadOnly(e)||this.props.onDelete(e)},clear:function(){this.setState({focused:null})},first:function(){for(var e=0,t=this.props.value.length;t>e&&this.isDisabled(e,!0);)e++;e!==t&&this.setState({focused:e})},last:function(){for(var e=this.props.value.length-1;e>-1&&this.isDisabled(e,!0);)e--; +e>=0&&this.setState({focused:e})},next:function(){for(var e=this.state.focused+1,t=this.props.value.length;t>e&&this.isDisabled(e,!0);)e++;return null!==this.state.focused?e>=t?this.clear():void this.setState({focused:e}):void 0},prev:function(){var e=this.state.focused;for(null===e&&(e=this.props.value.length),e--;e>-1&&this.isDisabled(e,!0);)e--;e>=0&&this.setState({focused:e})}})},function(e,t,n){function a(e){var t=s.Children.map(e,function(e){return e});for(var n in t)return n}var s=n(1),i=(n(11),n(2)),r=n(59).mergeIntoProps,o=n(63),l=s.createClass({displayName:"PopupContent",render:function(){return s.Children.only(this.props.children)}});e.exports=s.createClass({displayName:"exports",propTypes:{duration:s.PropTypes.number,onRequestClose:s.PropTypes.func.isRequired,onClosing:s.PropTypes.func,onOpening:s.PropTypes.func,onClose:s.PropTypes.func,onOpen:s.PropTypes.func},getDefaultProps:function(){return{height:"auto",duration:200,open:!1,onClosing:i.noop,onOpening:i.noop,onClose:i.noop,onOpen:i.noop}},componentDidMount:function(){this.close(0)},componentWillReceiveProps:function(e){this.setState({contentChanged:a(e.children)!==a(this.props.children)})},componentDidUpdate:function(e){var t=e.open&&!this.props.open,n=!e.open&&this.props.open;n?this.open():t&&this.close()},render:function(){var e=r({className:"rw-popup rw-widget"},this.props.children);return e.props.ref=this.props.children.props.ref,r(this.props,s.DOM.div({className:"rw-popup-container"},l({ref:"content"},e)))},dimensions:function(){var e=this.getDOMNode();e.style.display="block",e.style.height=o.height(this.refs.content.getDOMNode())+"px"},open:function(){var e=this,t=this.getDOMNode(),n=this.refs.content.getDOMNode();this.ORGINAL_POSITION=o.css(n,"position"),this._isOpening=!0,this.dimensions(),this.props.onOpening(),n.style.position="absolute",o.animate(n,{top:0},e.props.duration,function(){e._isOpening&&(n.style.position=e.ORGINAL_POSITION,t.style.overflow="visible",e.ORGINAL_POSITION=null,e.props.onOpen())})},close:function(e){{var t=this,n=this.refs.content.getDOMNode(),a=this.getDOMNode();a.style.height}this.ORGINAL_POSITION=o.css(n,"position"),this._isOpening=!1,this.dimensions(),this.props.onClosing(),a.style.overflow="hidden",n.style.position="absolute",o.animate(n,{top:"-100%"},void 0===e?this.props.duration:e,function(){t._isOpening||(n.style.position=t.ORGINAL_POSITION,a.style.display="none",t.ORGINAL_POSITION=null,t.props.onClose())})}})},function(e,t,n){"use strict";var a=n(1),s=n(2);e.exports={propTypes:{disabled:a.PropTypes.oneOfType([a.PropTypes.bool,a.PropTypes.oneOf(["disabled"])]),readOnly:a.PropTypes.oneOfType([a.PropTypes.bool,a.PropTypes.oneOf(["readOnly"])])},isDisabled:function(){return this.props.disabled===!0||"disabled"===this.props.disabled},isReadOnly:function(){return this.props.readOnly===!0||"readonly"===this.props.readOnly},notify:function(e,t){this.props[e]&&this.props[e].apply(null,[].concat(t))},_id:function(e){return this._id_||(this._id_=s.uniqueId("rw_")),(this.props.id||this._id_)+e},_maybeHandle:function(e,t){return this.isDisabled()||!t&&this.isReadOnly()?s.noop:e}}},function(e,t,n){function a(e,t){var n;if(e===t)return!0;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}n(1);e.exports={shouldComponentUpdate:function(e,t){return!a(this.props,e)||!a(this.state,t)}}},function(e,t,n){var a=n(1),s=n(66),i=n(83),r=(n(88),n(57),n(2));e.exports={propTypes:{data:a.PropTypes.array,value:a.PropTypes.any,delay:a.PropTypes.number,filter:a.PropTypes.string},search:function(e,t){var n=this,a=((this._searchTerm||"")+e).toLowerCase();clearTimeout(this._timer),this._searchTerm=a,this._timer=setTimeout(function(){n._searchTerm="",t(a)},this.props.delay)},findNextWordIndex:function(e,t){var n=s.startsWith,a=this;return r.findIndex(a._data(),function(s,r){return r!=t&&n(i._dataText.call(a,s).toLowerCase(),e.toLowerCase())})}}},function(e,t,n){var a=n(1),s=n(2);e.exports={propTypes:{valueField:a.PropTypes.string,textField:a.PropTypes.string},_dataValue:function(e){var t=this.props.valueField;return t&&e&&s.has(e,t)?e[t]:e},_dataText:function(e){var t=this.props.textField;return(t&&e&&s.has(e,t)?e[t]:e)+""},_dataIndexOf:function(e,t){return s.findIndex(e,s.partial(this._valueMatcher,t),this)},_valueMatcher:function(e,t){return s.isEqual(this._dataValue(e),this._dataValue(t))},_dataItem:function(e,t){var n,a=e[0],i=this.props.valueField;return s.has(t,i)||typeof a==typeof val?t:(n=this._dataIndexOf(e,this._dataValue(t)),-1!==n?e[n]:t)}}},function(e,t,n){var a=n(1);e.exports={propTypes:{isRtl:a.PropTypes.bool},contextTypes:{isRtl:a.PropTypes.bool},childContextTypes:{isRtl:a.PropTypes.bool},getChildContext:function(){return{isRtl:this.props.isRtl||this.context&&this.context.isRtl}},isRtl:function(){return!!(this.props.isRtl||this.context&&this.context.isRtl)}}},function(e,t,n){function a(e){return function(){return e.apply(this,arguments),this}}var s=n(1),i=(n(66),n(83),n(57)),r=n(88),o=(n(60).directions,n(2));e.exports=function(e){var t=e.charAt(0).toUpperCase()+e.substr(1),n=(r.provided(function(e){return!o.isEqual(e.value,this.props.value)}),r.provided(function(e){return e>=0})),l=n(i(e)),p={propTypes:{data:s.PropTypes.array,value:s.PropTypes.any}};return p["set"+t]=a(l),p["prev"+t]=function(){var t=(this._data(),this.state&&this.state[e]||0);return t-=1,0>t&&(t=0),t},p["next"+t]=function(){var t=this._data(),n=this.state&&this.state[e]||0;return n+=1,n>=t.length&&(n=t.length-1),n},p}},function(e,t,n){{var a=n(1),s=n(66),i=n(83),r=n(57),o=n(88),l=(n(60).directions,n(2)),p=(o.provided(function(e){return!l.isEqual(e.value,this.props.value)}),o.provided(function(e){return e>=0})),u=l.without(l.keys(s),"filter");p(r("selectedIndex"))}e.exports={propTypes:{data:a.PropTypes.array,value:a.PropTypes.any,filter:a.PropTypes.oneOfType([a.PropTypes.func,a.PropTypes.oneOf(u.concat(!1))]),caseSensitive:a.PropTypes.bool,minLength:a.PropTypes.number},getDefaultProps:function(){return{caseSensitive:!1,minLength:1}},filterIndexOf:function(e,t){var n="function"==typeof this.props.filter?this.props.filter:s[this.props.filter||"eq"];return!t||!t.trim()||this.props.filter&&t.length<(this.props.minLength||1)?-1:(this.props.caseSensitive||(t=t.toLowerCase()),l.findIndex(e,function(e){var a=i._dataText.call(this,e);return this.props.caseSensitive||(a=a.toLowerCase()),n(a,t.toLowerCase())},this))},filter:function(e,t){var n="string"==typeof this.props.filter?s[this.props.filter]:this.props.filter;return!n||!t||!t.trim()||t.length<(this.props.minLength||1)?e:(this.props.caseSensitive||(t=t.toLowerCase()),l.filter(e,function(e){var a=i._dataText.call(this,e);return this.props.caseSensitive||(a=a.toLowerCase()),n(a,t.toLowerCase())},this))}}},function(e,t,n){"use strict";var a=n(1),s=n(2),i=e.exports={version:function(){return s.map(a.version.split("."),parseFloat)},propType:function(e){return function(t,n,a,s){var r=i.version(),o=e.call(this,t,n,a,s);return o&&o!==!0?0===r[0]&&r[1]<11?console.warn(o instanceof Error?o.message:o):o:void 0}}}},function(e,t,n){"use strict";function a(e,t){return function(){var n=e.apply(this,arguments),a=t.apply(this,arguments);if(null!=n||null!=a)return null==n?a:null==a?n:s.extend(n,a)}}var s=n(2),i=e.exports={chain:function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},merge:function(e,t){if(typeof e!=typeof t)throw new TypeError;return s.isArray(e)?e.splice(e.length,0,t):s.isFunction(e)?e=a(e,t):s.extend(e,t),e},before:s.curry(function(e,t){return function(){return e.apply(this,arguments),t.apply(this,arguments)}}),after:s.curry(function(e,t){return function(){var n=t.apply(this,arguments);return e.apply(this,arguments),n}}),around:s.curry(function(e,t){return function(){var n=[t].concat(s.toArray(arguments));return e.apply(this,n)}}),provided:function(e){return i.around(function(t){var n=s.rest(arguments);return e.apply(this,n)?t.apply(this,n):void 0})}}},function(e,t,n){var a=n(1);e.exports={contextTypes:{isRtl:a.PropTypes.bool},isRtl:function(){return!!this.context.isRtl}}},function(e){"use strict";e.exports=function(e,t){var n=0,a=e?e.length:0,s=[];for(t=Math.max(+t||1,1);a>n;)s.push(e.slice(n,n+=t));return s}},function(e,t,n){var a=n(1),s=n(73),i=n(60).directions;e.exports=function(e,t){return{propTypes:{value:a.PropTypes.instanceOf(Date),min:a.PropTypes.instanceOf(Date),max:a.PropTypes.instanceOf(Date)},getInitialState:function(){return{focusedDate:this.props.value}},componentWillReceiveProps:function(e){var n=this.state.focusedDate;//!dates.inRange(focused, nextProps.min, nextProps.max) s.eq(e.value,n,t)||this.setState({focusedDate:e.value})},_keyDown:function(n){var a=n.key,r=(n.altKey,this.state.focusedDate),o=r;if("Enter"===a)return this.props.onChange(o);if("ArrowLeft"===a?o=this.move(o,i.LEFT):"ArrowRight"===a?o=this.move(o,i.RIGHT):"ArrowUp"===a?o=this.move(o,i.UP):"ArrowDown"===a&&(o=this.move(o,i.DOWN)),!s.eq(r,o,t)){if(n.preventDefault(),s.gt(o,this.props.value,e))return this.props.onMoveRight(o);if(s.lt(o,this.props.value,e))return this.props.onMoveLeft(o);this.setState({focusedDate:o})}}}}},function(e){/*! * Globalize * diff --git a/lib/dropdowns/combobox.js b/lib/dropdowns/combobox.js index 0d10324c1..bddcc0a8d 100644 --- a/lib/dropdowns/combobox.js +++ b/lib/dropdowns/combobox.js @@ -325,7 +325,7 @@ var ComboBox = React.createClass({ close: function(){ if ( this.props.open ) - this.notify('onToggle', true) + this.notify('onToggle', false) }, toggle: function(e){ diff --git a/package.json b/package.json index 1ee2e702c..26e2e1d37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-widgets", - "version": "1.4.0", + "version": "1.4.1", "description": "React widgets", "main": "index.js", "author": { diff --git a/src/dropdowns/combobox.jsx b/src/dropdowns/combobox.jsx index 055271676..2e2bd41df 100644 --- a/src/dropdowns/combobox.jsx +++ b/src/dropdowns/combobox.jsx @@ -324,7 +324,7 @@ var ComboBox = React.createClass({ close: function(){ if ( this.props.open ) - this.notify('onToggle', true) + this.notify('onToggle', false) }, toggle: function(e){