From 1f94e649fb58d541c97866fc203d047689c0783a Mon Sep 17 00:00:00 2001 From: Edd Morgan Date: Tue, 2 May 2017 11:31:27 +0100 Subject: [PATCH 01/23] add 'onFocus' prop --- src/combobox.js | 22 ++++++++++++++++++++++ src/main.js | 8 ++++++++ 2 files changed, 30 insertions(+) diff --git a/src/combobox.js b/src/combobox.js index 236b406..4cec520 100644 --- a/src/combobox.js +++ b/src/combobox.js @@ -11,8 +11,28 @@ var input = React.createFactory('input'); module.exports = React.createClass({ propTypes: { + /** + * Called when the combobox's input receives focus and the user begins interacting with it. + * + * Signature: + * + * ```js + * function(userInput){} + * ``` + */ onFocus: React.PropTypes.func, + /** + * Called when the combobox's input loses focus after being activated for user input + * + * Signature: + * + * ```js + * function(userInput){} + * ``` + */ + onBlur: React.PropTypes.func, + /** * Called when the combobox receives user input, this is your chance to * filter the data and rerender the options. @@ -47,6 +67,7 @@ module.exports = React.createClass({ return { autocomplete: 'both', onFocus: k, + onBlur: k, onInput: k, onSelect: k, value: null, @@ -187,6 +208,7 @@ module.exports = React.createClass({ return; this.maybeSelectAutocompletedOption(); this.hideList(); + this.props.onBlur(); }, handleOptionBlur: function() { diff --git a/src/main.js b/src/main.js index 1e19cb3..99f82b2 100644 --- a/src/main.js +++ b/src/main.js @@ -11,6 +11,7 @@ module.exports = React.createClass({ isLoading: React.PropTypes.bool, loadingComponent: React.PropTypes.any, onFocus: React.PropTypes.func, + onBlur: React.PropTypes.func, onInput: React.PropTypes.func.isRequired, onSelect: React.PropTypes.func.isRequired, tokenAriaFunc: React.PropTypes.func, @@ -38,6 +39,12 @@ module.exports = React.createClass({ } }, + handleBlur: function() { + if (this.props.onBlur) { + this.props.onBlur(); + } + }, + handleInput: function(inputValue) { this.props.onInput(inputValue); }, @@ -87,6 +94,7 @@ module.exports = React.createClass({ 'aria-label': this.props['combobox-aria-label'], ariaDisabled: isDisabled, onFocus: this.handleFocus, + onBlur: this.handleBlur, onInput: this.handleInput, showListOnFocus: this.props.showListOnFocus, onSelect: this.handleSelect, From 6b309136de185b577cb9adf960bb5dc557bf9316 Mon Sep 17 00:00:00 2001 From: Edd Morgan Date: Tue, 2 May 2017 13:54:37 +0100 Subject: [PATCH 02/23] whitelist props that get passed to option div --- src/option.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/option.js b/src/option.js index a3ab64b..c3048f0 100644 --- a/src/option.js +++ b/src/option.js @@ -40,7 +40,11 @@ module.exports = React.createClass({ props.className = addClass(props.className, 'ic-tokeninput-selected'); props.ariaSelected = true; } - return div(props); + return div({ + role: props.role, + tabIndex: props.tabIndex, + className: props.className + }); } }); From a33a4dea6ffda324ee568ce762bfc68c722a6b0c Mon Sep 17 00:00:00 2001 From: Edd Morgan Date: Tue, 2 May 2017 14:09:12 +0100 Subject: [PATCH 03/23] don't ignore lib for now --- .gitignore | 2 +- lib/add-class.js | 9 + lib/combobox.js | 451 +++++++++++++++++++++++++++++++++++++++++++++++ lib/index.js | 38 ++++ lib/main.js | 98 ++++++++++ lib/option.js | 54 ++++++ lib/token.js | 36 ++++ 7 files changed, 687 insertions(+), 1 deletion(-) create mode 100644 lib/add-class.js create mode 100644 lib/combobox.js create mode 100644 lib/index.js create mode 100644 lib/main.js create mode 100644 lib/option.js create mode 100644 lib/token.js diff --git a/.gitignore b/.gitignore index f339102..beb4f27 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,6 @@ TODO *.log node_modules tmp -lib +!lib/ example/bundle.js yarn.lock diff --git a/lib/add-class.js b/lib/add-class.js new file mode 100644 index 0000000..70959d1 --- /dev/null +++ b/lib/add-class.js @@ -0,0 +1,9 @@ +'use strict'; + +module.exports = addClass; + +function addClass(existing, added) { + if (!existing) return added; + if (existing.indexOf(added) > -1) return existing; + return existing + ' ' + added; +} \ No newline at end of file diff --git a/lib/combobox.js b/lib/combobox.js new file mode 100644 index 0000000..0ed32ac --- /dev/null +++ b/lib/combobox.js @@ -0,0 +1,451 @@ +'use strict'; + +var React = require('react'); +var guid = 0; +var k = function k() {}; +var addClass = require('./add-class'); +var ComboboxOption = require('./option'); + +var div = React.createFactory('div'); +var span = React.createFactory('span'); +var input = React.createFactory('input'); + +module.exports = React.createClass({ + displayName: 'exports', + + + propTypes: { + onFocus: React.PropTypes.func, + + /** + * Called when the combobox receives user input, this is your chance to + * filter the data and rerender the options. + * + * Signature: + * + * ```js + * function(userInput){} + * ``` + */ + onInput: React.PropTypes.func, + + /** + * Called when the combobox receives a selection. You probably want to reset + * the options to the full list at this point. + * + * Signature: + * + * ```js + * function(selectedValue){} + * ``` + */ + onSelect: React.PropTypes.func, + + /** + * Shown when the combobox is empty. + */ + placeholder: React.PropTypes.string + }, + + getDefaultProps: function getDefaultProps() { + return { + autocomplete: 'both', + onFocus: k, + onInput: k, + onSelect: k, + value: null, + showListOnFocus: false + }; + }, + + getInitialState: function getInitialState() { + return { + value: this.props.value, + // the value displayed in the input + inputValue: this.findInitialInputValue(), + isOpen: false, + focusedIndex: null, + matchedAutocompleteOption: null, + // this prevents crazy jumpiness since we focus options on mouseenter + usingKeyboard: false, + activedescendant: null, + listId: 'ic-tokeninput-list-' + ++guid, + menu: { + children: [], + activedescendant: null, + isEmpty: true + } + }; + }, + + componentWillMount: function componentWillMount() { + this.setState({ menu: this.makeMenu(this.props.children) }); + }, + + componentWillReceiveProps: function componentWillReceiveProps(newProps) { + this.setState({ menu: this.makeMenu(newProps.children) }, function () { + if (newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) { + if (!this.state.menu.children.length) { + return; + } + this.setState({ + isOpen: true + }, function () { + this.refs.list.scrollTop = 0; + }.bind(this)); + } else { + this.hideList(); + } + }.bind(this)); + }, + + /** + * We don't create the components, the user supplies them, + * so before rendering we attach handlers to facilitate communication from + * the ComboboxOption to the Combobox. + */ + makeMenu: function makeMenu(children) { + var activedescendant; + var isEmpty = true; + + // Should this instead use React.addons.cloneWithProps or React.cloneElement? + var _children = React.Children.map(children, function (child, index) { + // console.log(child.type, ComboboxOption.type) + if (child.type !== ComboboxOption || !child.props.isFocusable) { + // allow random elements to live in this list + return child; + } + isEmpty = false; + // TODO: cloneWithProps and map instead of altering the children in-place + var props = child.props; + var newProps = {}; + if (this.state.value === child.props.value) { + // need an ID for WAI-ARIA + newProps.id = props.id || 'ic-tokeninput-selected-' + ++guid; + newProps.isSelected = true; + activedescendant = props.id; + } + newProps.onBlur = this.handleOptionBlur; + newProps.onClick = this.selectOption.bind(this, child); + newProps.onFocus = this.handleOptionFocus; + newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child); + newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index); + + return React.cloneElement(child, newProps); + }.bind(this)); + + return { + children: _children, + activedescendant: activedescendant, + isEmpty: isEmpty + }; + }, + + getClassName: function getClassName() { + var className = addClass(this.props.className, 'ic-tokeninput'); + if (this.state.isOpen) className = addClass(className, 'ic-tokeninput-is-open'); + return className; + }, + + /** + * When the user begins typing again we need to clear out any state that has + * to do with an existing or potential selection. + */ + clearSelectedState: function clearSelectedState(cb) { + this.setState({ + focusedIndex: null, + inputValue: null, + value: null, + matchedAutocompleteOption: null, + activedescendant: null + }, cb); + }, + + handleInputChange: function handleInputChange() { + var value = this.refs.input.value; + this.clearSelectedState(function () { + this.props.onInput(value); + }.bind(this)); + }, + + handleInputFocus: function handleInputFocus() { + this.props.onFocus(); + this.maybeShowList(); + }, + + handleInputClick: function handleInputClick() { + this.maybeShowList(); + }, + + maybeShowList: function maybeShowList() { + if (this.props.showListOnFocus) { + this.showList(); + } + }, + + handleInputBlur: function handleInputBlur() { + var focusedAnOption = this.state.focusedIndex != null; + if (focusedAnOption) return; + this.maybeSelectAutocompletedOption(); + this.hideList(); + }, + + handleOptionBlur: function handleOptionBlur() { + // don't want to hide the list if we focused another option + this.blurTimer = setTimeout(this.hideList, 0); + }, + + handleOptionFocus: function handleOptionFocus() { + // see `handleOptionBlur` + clearTimeout(this.blurTimer); + }, + + handleInputKeyUp: function handleInputKeyUp(event) { + if (this.state.menu.isEmpty || + // autocompleting while backspacing feels super weird, so let's not + event.keyCode === 8 /*backspace*/ || !this.props.autocomplete.match(/both|inline/)) return; + }, + + handleButtonClick: function handleButtonClick() { + this.state.isOpen ? this.hideList() : this.showList(); + this.focusInput(); + }, + + showList: function showList() { + if (!this.state.menu.children.length) { + return; + } + this.setState({ isOpen: true }); + }, + + hideList: function hideList() { + this.setState({ + isOpen: false, + focusedIndex: null + }); + }, + + hideOnEscape: function hideOnEscape(event) { + this.hideList(); + this.focusInput(); + event.preventDefault(); + }, + + focusInput: function focusInput() { + this.refs.input.focus(); + }, + + selectInput: function selectInput() { + this.refs.input.select(); + }, + + inputKeydownMap: { + 8: 'removeLastToken', // delete + 13: 'selectOnEnter', // enter + 188: 'selectOnEnter', // comma + 27: 'hideOnEscape', // escape + 38: 'focusPrevious', // up arrow + 40: 'focusNext' // down arrow + }, + + optionKeydownMap: { + 13: 'selectOption', + 27: 'hideOnEscape', + 38: 'focusPrevious', + 40: 'focusNext' + }, + + handleKeydown: function handleKeydown(event) { + var handlerName = this.inputKeydownMap[event.keyCode]; + if (!handlerName) return; + this.setState({ usingKeyboard: true }); + return this[handlerName].call(this, event); + }, + + handleOptionKeyDown: function handleOptionKeyDown(child, event) { + var handlerName = this.optionKeydownMap[event.keyCode]; + if (!handlerName) { + // if the user starts typing again while focused on an option, move focus + // to the inpute, select so it wipes out any existing value + this.selectInput(); + return; + } + event.preventDefault(); + this.setState({ usingKeyboard: true }); + this[handlerName].call(this, child); + }, + + handleOptionMouseEnter: function handleOptionMouseEnter(index) { + if (this.state.usingKeyboard) this.setState({ usingKeyboard: false });else this.focusOptionAtIndex(index); + }, + + selectOnEnter: function selectOnEnter(event) { + event.preventDefault(); + this.maybeSelectAutocompletedOption(); + }, + + maybeSelectAutocompletedOption: function maybeSelectAutocompletedOption() { + if (!this.state.matchedAutocompleteOption) { + this.selectText(); + } else { + this.selectOption(this.state.matchedAutocompleteOption, { focus: false }); + } + }, + + selectOption: function selectOption(child, options) { + options = options || {}; + this.setState({ + // value: child.props.value, + // inputValue: getLabel(child), + matchedAutocompleteOption: null + }, function () { + this.props.onSelect(child.props.value, child); + this.hideList(); + this.clearSelectedState(); // added + if (options.focus !== false) this.selectInput(); + }.bind(this)); + this.refs.input.value = ''; // added + }, + + selectText: function selectText() { + var value = this.refs.input.value; + if (!value) return; + this.props.onSelect(value); + this.clearSelectedState(); + this.refs.input.value = ''; // added + }, + + focusNext: function focusNext(event) { + if (event.preventDefault) event.preventDefault(); + if (this.state.menu.isEmpty) return; + var index = this.nextFocusableIndex(this.state.focusedIndex); + this.focusOptionAtIndex(index); + }, + + removeLastToken: function removeLastToken() { + if (this.props.onRemoveLast && !this.refs.input.value) { + this.props.onRemoveLast(); + } + return true; + }, + + focusPrevious: function focusPrevious(event) { + if (event.preventDefault) event.preventDefault(); + if (this.state.menu.isEmpty) return; + var index = this.previousFocusableIndex(this.state.focusedIndex); + this.focusOptionAtIndex(index); + }, + + focusSelectedOption: function focusSelectedOption() { + var selectedIndex; + React.Children.forEach(this.props.children, function (child, index) { + if (child.props.value === this.state.value) selectedIndex = index; + }.bind(this)); + this.showList(); + this.setState({ + focusedIndex: selectedIndex + }, this.focusOption); + }, + + findInitialInputValue: function findInitialInputValue() { + // TODO: might not need this, we should know this in `makeMenu` + var inputValue; + React.Children.forEach(this.props.children, function (child) { + if (child.props.value === this.props.value) inputValue = getLabel(child); + }.bind(this)); + return inputValue; + }, + + clampIndex: function clampIndex(index) { + if (index < 0) { + return this.props.children.length - 1; + } else if (index >= this.props.children.length) { + return 0; + } + return index; + }, + + scanForFocusableIndex: function scanForFocusableIndex(index, increment) { + if (index === null || index === undefined) { + index = increment > 0 ? this.clampIndex(-1) : 0; + } + var newIndex = index; + while (true) { + newIndex = this.clampIndex(newIndex + increment); + if (newIndex === index || this.props.children[newIndex].props.isFocusable) { + return newIndex; + } + } + }, + + nextFocusableIndex: function nextFocusableIndex(index) { + return this.scanForFocusableIndex(index, 1); + }, + + previousFocusableIndex: function previousFocusableIndex(index) { + return this.scanForFocusableIndex(index, -1); + }, + + focusOptionAtIndex: function focusOptionAtIndex(index) { + if (!this.state.isOpen && this.state.value) return this.focusSelectedOption(); + this.showList(); + var length = this.props.children.length; + if (index === -1) index = length - 1;else if (index === length) index = 0; + this.setState({ + focusedIndex: index + }, this.focusOption); + }, + + focusOption: function focusOption() { + var index = this.state.focusedIndex; + this.refs.list.childNodes[index].focus(); + }, + + render: function render() { + var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' + 'Press the down arrow to navigate results. If you don\'t find an ' + 'acceptable option, you can input an alternative. Once you find or ' + 'input the tag you want, press Enter or Comma to add it.'; + + return div({ className: this.getClassName() }, this.props.value, this.state.inputValue, input({ + ref: 'input', + autoComplete: 'off', + spellCheck: 'false', + 'aria-label': ariaLabel, + 'aria-expanded': this.state.isOpen + '', + 'aria-haspopup': 'true', + 'aria-activedescendant': this.state.menu.activedescendant, + 'aria-autocomplete': 'list', + 'aria-owns': this.state.listId, + id: this.props.id, + disabled: this.props.isDisabled, + className: 'ic-tokeninput-input', + onFocus: this.handleInputFocus, + onClick: this.handleInputClick, + onChange: this.handleInputChange, + onBlur: this.handleInputBlur, + onKeyDown: this.handleKeydown, + onKeyUp: this.handleInputKeyUp, + placeholder: this.props.placeholder, + role: 'combobox' + }), span({ + 'aria-hidden': 'true', + className: 'ic-tokeninput-button', + onClick: this.handleButtonClick + }, '▾'), div({ + id: this.state.listId, + ref: 'list', + className: 'ic-tokeninput-list', + role: 'listbox' + }, this.state.menu.children)); + } +}); + +function getLabel(component) { + return component.props.label || component.props.children; +} + +function matchFragment(userInput, firstChildLabel) { + userInput = userInput.toLowerCase(); + firstChildLabel = firstChildLabel.toLowerCase(); + if (userInput === '' || userInput === firstChildLabel) return false; + if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1) return false; + return true; +} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js new file mode 100644 index 0000000..beaf88d --- /dev/null +++ b/lib/index.js @@ -0,0 +1,38 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Token = exports.Option = exports.Combobox = undefined; + +var _combobox = require('./combobox'); + +var _combobox2 = _interopRequireDefault(_combobox); + +var _option = require('./option'); + +var _option2 = _interopRequireDefault(_option); + +var _token = require('./token'); + +var _token2 = _interopRequireDefault(_token); + +var _main = require('./main'); + +var _main2 = _interopRequireDefault(_main); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.Combobox = _combobox2.default; +exports.Option = _option2.default; +exports.Token = _token2.default; + + +/** + * You can't do an import and then immediately export it :( + * And `export default TokenInput from './main'` doesn't seem to + * work either :( + * So this little variable swapping stuff gets it to work. + */ +var TokenInput = _main2.default; +exports.default = TokenInput; \ No newline at end of file diff --git a/lib/main.js b/lib/main.js new file mode 100644 index 0000000..e134022 --- /dev/null +++ b/lib/main.js @@ -0,0 +1,98 @@ +'use strict'; + +var React = require('react'); +var Combobox = React.createFactory(require('./combobox')); +var Token = React.createFactory(require('./token')); +var classnames = require('classnames'); + +var ul = React.DOM.ul; +var li = React.DOM.li; + +module.exports = React.createClass({ + displayName: 'exports', + + propTypes: { + isLoading: React.PropTypes.bool, + loadingComponent: React.PropTypes.any, + onFocus: React.PropTypes.func, + onInput: React.PropTypes.func.isRequired, + onSelect: React.PropTypes.func.isRequired, + tokenAriaFunc: React.PropTypes.func, + onRemove: React.PropTypes.func.isRequired, + selected: React.PropTypes.array.isRequired, + menuContent: React.PropTypes.any, + showListOnFocus: React.PropTypes.bool, + placeholder: React.PropTypes.string + }, + + getInitialState: function getInitialState() { + return { + selectedToken: null + }; + }, + + handleClick: function handleClick() { + // TODO: Expand combobox API for focus + this.refs['combo-li'].querySelector('input').focus(); + }, + + handleFocus: function handleFocus() { + if (this.props.onFocus) { + this.props.onFocus(); + } + }, + + handleInput: function handleInput(inputValue) { + this.props.onInput(inputValue); + }, + + handleSelect: function handleSelect(event, option) { + var input = this.refs['combo-li'].querySelector('input'); + this.props.onSelect(event, option); + this.setState({ + selectedToken: null + }); + this.props.onInput(input.value); + }, + + handleRemove: function handleRemove(value) { + var input = this.refs['combo-li'].querySelector('input'); + this.props.onRemove(value); + input.focus(); + }, + + handleRemoveLast: function handleRemoveLast() { + this.props.onRemove(this.props.selected[this.props.selected.length - 1]); + }, + + render: function render() { + var isDisabled = this.props.isDisabled; + var tokens = this.props.selected.map(function (token) { + return Token({ + tokenAriaFunc: this.props.tokenAriaFunc, + onFocus: this.handleFocus, + onRemove: this.handleRemove, + value: token, + name: token.name, + key: token.id }); + }.bind(this)); + + var classes = classnames('ic-tokens flex', { + 'ic-tokens-disabled': isDisabled + }); + + return ul({ className: classes, onClick: this.handleClick }, tokens, li({ className: 'inline-flex', ref: 'combo-li' }, Combobox({ + id: this.props.id, + 'aria-label': this.props['combobox-aria-label'], + ariaDisabled: isDisabled, + onFocus: this.handleFocus, + onInput: this.handleInput, + showListOnFocus: this.props.showListOnFocus, + onSelect: this.handleSelect, + onRemoveLast: this.handleRemoveLast, + value: this.state.selectedToken, + isDisabled: isDisabled, + placeholder: this.props.placeholder + }, this.props.menuContent)), this.props.isLoading && li({ className: 'ic-tokeninput-loading flex' }, this.props.loadingComponent)); + } +}); \ No newline at end of file diff --git a/lib/option.js b/lib/option.js new file mode 100644 index 0000000..f06e947 --- /dev/null +++ b/lib/option.js @@ -0,0 +1,54 @@ +'use strict'; + +var React = require('react'); +var addClass = require('./add-class'); +var div = React.createFactory('div'); + +module.exports = React.createClass({ + displayName: 'exports', + + + propTypes: { + + /** + * The value that will be sent to the `onSelect` handler of the + * parent Combobox. + */ + value: React.PropTypes.any.isRequired, + + /** + * What value to put into the input element when this option is + * selected, defaults to its children coerced to a string. + */ + label: React.PropTypes.string, + + /** + * Whether the element should be selectable + */ + isFocusable: React.PropTypes.bool + }, + + getDefaultProps: function getDefaultProps() { + return { + role: 'option', + tabIndex: '-1', + className: 'ic-tokeninput-option', + isSelected: false, + isFocusable: true + }; + }, + + render: function render() { + var props = this.props; + if (props.isSelected) { + props.className = addClass(props.className, 'ic-tokeninput-selected'); + props.ariaSelected = true; + } + return div({ + role: props.role, + tabIndex: props.tabIndex, + className: props.className + }); + } + +}); \ No newline at end of file diff --git a/lib/token.js b/lib/token.js new file mode 100644 index 0000000..9e3bcac --- /dev/null +++ b/lib/token.js @@ -0,0 +1,36 @@ +'use strict'; + +var React = require('react'); +var span = React.DOM.span; +var li = React.createFactory('li'); + +module.exports = React.createClass({ + displayName: 'exports', + + handleClick: function handleClick() { + this.props.onRemove(this.props.value); + }, + + handleKeyDown: function handleKeyDown(key) { + var enterKey = 13; + if (key.keyCode === enterKey) this.props.onRemove(this.props.value); + }, + + ariaLabelRemove: function ariaLabelRemove() { + return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) : 'Remove \'' + this.props.name + '\''; + }, + + render: function render() { + return li({ + className: "ic-token inline-flex" + }, span({ className: "ic-token-label" }, this.props.name), span({ + role: 'button', + onClick: this.handleClick, + onFocus: this.props.onFocus, + onKeyDown: this.handleKeyDown, + 'aria-label': this.ariaLabelRemove(), + className: "ic-token-delete-button", + tabIndex: 0 + }, "✕")); + } +}); \ No newline at end of file From aa23ba9372afd249084982ab94985d1f0f48a7a6 Mon Sep 17 00:00:00 2001 From: Edd Morgan Date: Tue, 2 May 2017 14:34:58 +0100 Subject: [PATCH 04/23] dont pass invalid props to option div --- package.json | 3 ++- src/option.js | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 4ec8ff4..482ff78 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "webpack-dev-server": "^1.12.0" }, "dependencies": { - "classnames": "^2.2.1" + "classnames": "^2.2.1", + "object.omit": "^2.0.1" } } diff --git a/src/option.js b/src/option.js index c3048f0..24d2782 100644 --- a/src/option.js +++ b/src/option.js @@ -1,5 +1,6 @@ var React = require('react'); var addClass = require('./add-class'); +var omit = require('object.omit'); var div = React.createFactory('div'); module.exports = React.createClass({ @@ -40,11 +41,7 @@ module.exports = React.createClass({ props.className = addClass(props.className, 'ic-tokeninput-selected'); props.ariaSelected = true; } - return div({ - role: props.role, - tabIndex: props.tabIndex, - className: props.className - }); + return div(omit(props, ['isSelected', 'isFocusable'])); } }); From 0e5233191929853cf918d759a3795c7ca382bfd4 Mon Sep 17 00:00:00 2001 From: Edd Morgan Date: Tue, 2 May 2017 14:36:40 +0100 Subject: [PATCH 05/23] update lib --- lib/option.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/option.js b/lib/option.js index f06e947..0b4ad55 100644 --- a/lib/option.js +++ b/lib/option.js @@ -2,6 +2,7 @@ var React = require('react'); var addClass = require('./add-class'); +var omit = require('object.omit'); var div = React.createFactory('div'); module.exports = React.createClass({ @@ -44,11 +45,7 @@ module.exports = React.createClass({ props.className = addClass(props.className, 'ic-tokeninput-selected'); props.ariaSelected = true; } - return div({ - role: props.role, - tabIndex: props.tabIndex, - className: props.className - }); + return div(omit(props, ['isSelected', 'isFocusable'])); } }); \ No newline at end of file From 21abb496c1540fbb4d42c007b84d8f48b2ac6412 Mon Sep 17 00:00:00 2001 From: Edd Morgan Date: Tue, 2 May 2017 15:36:29 +0100 Subject: [PATCH 06/23] update lib --- lib/combobox.js | 22 ++++++++++++++++++++++ lib/main.js | 8 ++++++++ 2 files changed, 30 insertions(+) diff --git a/lib/combobox.js b/lib/combobox.js index 0ed32ac..8d95786 100644 --- a/lib/combobox.js +++ b/lib/combobox.js @@ -15,8 +15,28 @@ module.exports = React.createClass({ propTypes: { + /** + * Called when the combobox's input receives focus and the user begins interacting with it. + * + * Signature: + * + * ```js + * function(userInput){} + * ``` + */ onFocus: React.PropTypes.func, + /** + * Called when the combobox's input loses focus after being activated for user input + * + * Signature: + * + * ```js + * function(userInput){} + * ``` + */ + onBlur: React.PropTypes.func, + /** * Called when the combobox receives user input, this is your chance to * filter the data and rerender the options. @@ -51,6 +71,7 @@ module.exports = React.createClass({ return { autocomplete: 'both', onFocus: k, + onBlur: k, onInput: k, onSelect: k, value: null, @@ -188,6 +209,7 @@ module.exports = React.createClass({ if (focusedAnOption) return; this.maybeSelectAutocompletedOption(); this.hideList(); + this.props.onBlur(); }, handleOptionBlur: function handleOptionBlur() { diff --git a/lib/main.js b/lib/main.js index e134022..97f3db4 100644 --- a/lib/main.js +++ b/lib/main.js @@ -15,6 +15,7 @@ module.exports = React.createClass({ isLoading: React.PropTypes.bool, loadingComponent: React.PropTypes.any, onFocus: React.PropTypes.func, + onBlur: React.PropTypes.func, onInput: React.PropTypes.func.isRequired, onSelect: React.PropTypes.func.isRequired, tokenAriaFunc: React.PropTypes.func, @@ -42,6 +43,12 @@ module.exports = React.createClass({ } }, + handleBlur: function handleBlur() { + if (this.props.onBlur) { + this.props.onBlur(); + } + }, + handleInput: function handleInput(inputValue) { this.props.onInput(inputValue); }, @@ -86,6 +93,7 @@ module.exports = React.createClass({ 'aria-label': this.props['combobox-aria-label'], ariaDisabled: isDisabled, onFocus: this.handleFocus, + onBlur: this.handleBlur, onInput: this.handleInput, showListOnFocus: this.props.showListOnFocus, onSelect: this.handleSelect, From 47885498dd2aa6ec337a0f8d5c929c1ac21832ac Mon Sep 17 00:00:00 2001 From: Edd Morgan Date: Tue, 1 Aug 2017 23:38:35 +0100 Subject: [PATCH 07/23] fix usingKeyboard handling on mouse enter --- src/combobox.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/combobox.js b/src/combobox.js index 4cec520..4f677a9 100644 --- a/src/combobox.js +++ b/src/combobox.js @@ -302,10 +302,11 @@ module.exports = React.createClass({ }, handleOptionMouseEnter: function(index) { - if (this.state.usingKeyboard) - this.setState({usingKeyboard: false}); - else - this.focusOptionAtIndex(index); + if (this.state.usingKeyboard) { + this.setState({ usingKeyboard: false }); + } + + this.focusOptionAtIndex(index); }, selectOnEnter: function(event) { From ded3341e4784100d1d75e2f8c48871569df617ae Mon Sep 17 00:00:00 2001 From: Edd Morgan Date: Tue, 1 Aug 2017 23:45:26 +0100 Subject: [PATCH 08/23] build --- dist/react-tokeninput.js | 163 +++++++++++++++++++++++++++++-- dist/react-tokeninput.js.map | 2 +- dist/react-tokeninput.min.js | 28 +++++- dist/react-tokeninput.min.js.map | 2 +- lib/combobox.js | 6 +- 5 files changed, 188 insertions(+), 13 deletions(-) diff --git a/dist/react-tokeninput.js b/dist/react-tokeninput.js index debdecd..6837ef4 100644 --- a/dist/react-tokeninput.js +++ b/dist/react-tokeninput.js @@ -69,11 +69,11 @@ return /******/ (function(modules) { // webpackBootstrap var _option2 = _interopRequireDefault(_option); - var _token = __webpack_require__(5); + var _token = __webpack_require__(9); var _token2 = _interopRequireDefault(_token); - var _main = __webpack_require__(6); + var _main = __webpack_require__(10); var _main2 = _interopRequireDefault(_main); @@ -114,8 +114,28 @@ return /******/ (function(modules) { // webpackBootstrap propTypes: { + /** + * Called when the combobox's input receives focus and the user begins interacting with it. + * + * Signature: + * + * ```js + * function(userInput){} + * ``` + */ onFocus: React.PropTypes.func, + /** + * Called when the combobox's input loses focus after being activated for user input + * + * Signature: + * + * ```js + * function(userInput){} + * ``` + */ + onBlur: React.PropTypes.func, + /** * Called when the combobox receives user input, this is your chance to * filter the data and rerender the options. @@ -150,6 +170,7 @@ return /******/ (function(modules) { // webpackBootstrap return { autocomplete: 'both', onFocus: k, + onBlur: k, onInput: k, onSelect: k, value: null, @@ -287,6 +308,7 @@ return /******/ (function(modules) { // webpackBootstrap if (focusedAnOption) return; this.maybeSelectAutocompletedOption(); this.hideList(); + this.props.onBlur(); }, handleOptionBlur: function handleOptionBlur() { @@ -375,7 +397,11 @@ return /******/ (function(modules) { // webpackBootstrap }, handleOptionMouseEnter: function handleOptionMouseEnter(index) { - if (this.state.usingKeyboard) this.setState({ usingKeyboard: false });else this.focusOptionAtIndex(index); + if (this.state.usingKeyboard) { + this.setState({ usingKeyboard: false }); + } + + this.focusOptionAtIndex(index); }, selectOnEnter: function selectOnEnter(event) { @@ -577,6 +603,7 @@ return /******/ (function(modules) { // webpackBootstrap var React = __webpack_require__(2); var addClass = __webpack_require__(3); + var omit = __webpack_require__(5); var div = React.createFactory('div'); module.exports = React.createClass({ @@ -619,13 +646,125 @@ return /******/ (function(modules) { // webpackBootstrap props.className = addClass(props.className, 'ic-tokeninput-selected'); props.ariaSelected = true; } - return div(props); + return div(omit(props, ['isSelected', 'isFocusable'])); } }); /***/ }), /* 5 */ +/***/ (function(module, exports, __webpack_require__) { + + /*! + * object.omit + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + */ + + 'use strict'; + + var isObject = __webpack_require__(6); + var forOwn = __webpack_require__(7); + + module.exports = function omit(obj, keys) { + if (!isObject(obj)) return {}; + + keys = [].concat.apply([], [].slice.call(arguments, 1)); + var last = keys[keys.length - 1]; + var res = {}, fn; + + if (typeof last === 'function') { + fn = keys.pop(); + } + + var isFunction = typeof fn === 'function'; + if (!keys.length && !isFunction) { + return obj; + } + + forOwn(obj, function(value, key) { + if (keys.indexOf(key) === -1) { + + if (!isFunction) { + res[key] = value; + } else if (fn(value, key, obj)) { + res[key] = value; + } + } + }); + return res; + }; + + +/***/ }), +/* 6 */ +/***/ (function(module, exports) { + + /*! + * is-extendable + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */ + + 'use strict'; + + module.exports = function isExtendable(val) { + return typeof val !== 'undefined' && val !== null + && (typeof val === 'object' || typeof val === 'function'); + }; + + +/***/ }), +/* 7 */ +/***/ (function(module, exports, __webpack_require__) { + + /*! + * for-own + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ + + 'use strict'; + + var forIn = __webpack_require__(8); + var hasOwn = Object.prototype.hasOwnProperty; + + module.exports = function forOwn(obj, fn, thisArg) { + forIn(obj, function(val, key) { + if (hasOwn.call(obj, key)) { + return fn.call(thisArg, obj[key], key, obj); + } + }); + }; + + +/***/ }), +/* 8 */ +/***/ (function(module, exports) { + + /*! + * for-in + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ + + 'use strict'; + + module.exports = function forIn(obj, fn, thisArg) { + for (var key in obj) { + if (fn.call(thisArg, obj[key], key, obj) === false) { + break; + } + } + }; + + +/***/ }), +/* 9 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -666,15 +805,15 @@ return /******/ (function(modules) { // webpackBootstrap }); /***/ }), -/* 6 */ +/* 10 */ /***/ (function(module, exports, __webpack_require__) { 'use strict'; var React = __webpack_require__(2); var Combobox = React.createFactory(__webpack_require__(1)); - var Token = React.createFactory(__webpack_require__(5)); - var classnames = __webpack_require__(7); + var Token = React.createFactory(__webpack_require__(9)); + var classnames = __webpack_require__(11); var ul = React.DOM.ul; var li = React.DOM.li; @@ -686,6 +825,7 @@ return /******/ (function(modules) { // webpackBootstrap isLoading: React.PropTypes.bool, loadingComponent: React.PropTypes.any, onFocus: React.PropTypes.func, + onBlur: React.PropTypes.func, onInput: React.PropTypes.func.isRequired, onSelect: React.PropTypes.func.isRequired, tokenAriaFunc: React.PropTypes.func, @@ -713,6 +853,12 @@ return /******/ (function(modules) { // webpackBootstrap } }, + handleBlur: function handleBlur() { + if (this.props.onBlur) { + this.props.onBlur(); + } + }, + handleInput: function handleInput(inputValue) { this.props.onInput(inputValue); }, @@ -757,6 +903,7 @@ return /******/ (function(modules) { // webpackBootstrap 'aria-label': this.props['combobox-aria-label'], ariaDisabled: isDisabled, onFocus: this.handleFocus, + onBlur: this.handleBlur, onInput: this.handleInput, showListOnFocus: this.props.showListOnFocus, onSelect: this.handleSelect, @@ -769,7 +916,7 @@ return /******/ (function(modules) { // webpackBootstrap }); /***/ }), -/* 7 */ +/* 11 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! diff --git a/dist/react-tokeninput.js.map b/dist/react-tokeninput.js.map index 321f41e..654b3a6 100644 --- a/dist/react-tokeninput.js.map +++ b/dist/react-tokeninput.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 651662da19b6e0414157","webpack:///./src/index.js","webpack:///./src/combobox.js","webpack:///external \"react\"","webpack:///./src/add-class.js","webpack:///./src/option.js","webpack:///./src/token.js","webpack:///./src/main.js","webpack:///./~/classnames/index.js"],"names":["Combobox","Option","Token","TokenInput","React","require","guid","k","addClass","ComboboxOption","div","createFactory","span","input","module","exports","createClass","propTypes","onFocus","PropTypes","func","onInput","onSelect","placeholder","string","getDefaultProps","autocomplete","value","showListOnFocus","getInitialState","props","inputValue","findInitialInputValue","isOpen","focusedIndex","matchedAutocompleteOption","usingKeyboard","activedescendant","listId","menu","children","isEmpty","componentWillMount","setState","makeMenu","componentWillReceiveProps","newProps","length","document","activeElement","refs","state","list","scrollTop","bind","hideList","_children","Children","map","child","index","type","isFocusable","id","isSelected","onBlur","handleOptionBlur","onClick","selectOption","handleOptionFocus","onKeyDown","handleOptionKeyDown","onMouseEnter","handleOptionMouseEnter","cloneElement","getClassName","className","clearSelectedState","cb","handleInputChange","handleInputFocus","maybeShowList","handleInputClick","showList","handleInputBlur","focusedAnOption","maybeSelectAutocompletedOption","blurTimer","setTimeout","clearTimeout","handleInputKeyUp","event","keyCode","match","handleButtonClick","focusInput","hideOnEscape","preventDefault","focus","selectInput","select","inputKeydownMap","optionKeydownMap","handleKeydown","handlerName","call","focusOptionAtIndex","selectOnEnter","selectText","options","focusNext","nextFocusableIndex","removeLastToken","onRemoveLast","focusPrevious","previousFocusableIndex","focusSelectedOption","selectedIndex","forEach","focusOption","getLabel","clampIndex","scanForFocusableIndex","increment","undefined","newIndex","childNodes","render","ariaLabel","ref","autoComplete","spellCheck","disabled","isDisabled","onChange","onKeyUp","role","component","label","matchFragment","userInput","firstChildLabel","toLowerCase","indexOf","existing","added","any","isRequired","bool","tabIndex","ariaSelected","DOM","li","handleClick","onRemove","handleKeyDown","key","enterKey","ariaLabelRemove","tokenAriaFunc","name","classnames","ul","isLoading","loadingComponent","selected","array","menuContent","selectedToken","querySelector","handleFocus","handleInput","handleSelect","option","handleRemove","handleRemoveLast","tokens","token","classes","ariaDisabled"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;ACnCA;;;;;;SAHOA,Q;SACAC,M;SACAC,K;;;AAGP;;;;;;AAMA,KAAMC,2BAAN;mBACeA,U;;;;;;;;ACZf,KAAIC,QAAQ,mBAAAC,CAAQ,CAAR,CAAZ;AACA,KAAIC,OAAO,CAAX;AACA,KAAIC,IAAI,SAAJA,CAAI,GAAU,CAAE,CAApB;AACA,KAAIC,WAAW,mBAAAH,CAAQ,CAAR,CAAf;AACA,KAAII,iBAAiB,mBAAAJ,CAAQ,CAAR,CAArB;;AAEA,KAAIK,MAAMN,MAAMO,aAAN,CAAoB,KAApB,CAAV;AACA,KAAIC,OAAOR,MAAMO,aAAN,CAAoB,MAApB,CAAX;AACA,KAAIE,QAAQT,MAAMO,aAAN,CAAoB,OAApB,CAAZ;;AAEAG,QAAOC,OAAP,GAAiBX,MAAMY,WAAN,CAAkB;AAAA;;;AAEjCC,cAAW;AACTC,cAASd,MAAMe,SAAN,CAAgBC,IADhB;;AAGT;;;;;;;;;;AAUAC,cAASjB,MAAMe,SAAN,CAAgBC,IAbhB;;AAeT;;;;;;;;;;AAUAE,eAAUlB,MAAMe,SAAN,CAAgBC,IAzBjB;;AA2BT;;;AAGAG,kBAAanB,MAAMe,SAAN,CAAgBK;AA9BpB,IAFsB;;AAmCjCC,oBAAiB,2BAAW;AAC1B,YAAO;AACLC,qBAAc,MADT;AAELR,gBAASX,CAFJ;AAGLc,gBAASd,CA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,YAPR;AAQP3D,qBAAc,KAAK8D,gBARZ;AASPpJ,cAAO,KAAKwB,KAAL,CAAWqH,aATX;AAUPnC,mBAAYA,UAVL;AAWP9G,oBAAa,KAAKO,KAAL,CAAWP;AAXjB,MAAT,EAaE,KAAKO,KAAL,CAAWyI,WAbb,CADF,CAFK,EAmBL,KAAKzI,KAAL,CAAWqI,SAAX,IAAwBX,GAAG,EAAC5E,WAAW,4BAAZ,EAAH,EAA8C,KAAK9C,KAAL,CAAWsI,gBAAzD,CAnBnB,CAAP;AAqBD;AA9FgC,EAAlB,CAAjB,C;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iBAAgB;;AAEhB;AACA;;AAEA,kBAAiB,sBAAsB;AACvC;AACA;;AAEA;;AAEA;AACA;AACA,KAAI;AACJ;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAE;AACF;AACA;AACA;AACA,IAAG;AACH,GAAE;AACF;AACA;AACA,EAAC","file":"react-tokeninput.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 651662da19b6e0414157","export Combobox from './combobox';\nexport Option from './option';\nexport Token from './token';\nimport main from './main';\n\n/**\n * You can't do an import and then immediately export it :(\n * And `export default TokenInput from './main'` doesn't seem to\n * work either :(\n * So this little variable swapping stuff gets it to work.\n */\nconst TokenInput = main;\nexport default TokenInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var React = require('react');\nvar guid = 0;\nvar k = function(){};\nvar addClass = require('./add-class');\nvar ComboboxOption = require('./option');\n\nvar div = React.createFactory('div');\nvar span = React.createFactory('span');\nvar input = React.createFactory('input');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n onFocus: React.PropTypes.func,\n\n /**\n * Called when the combobox receives user input, this is your chance to\n * filter the data and rerender the options.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onInput: React.PropTypes.func,\n\n /**\n * Called when the combobox receives a selection. You probably want to reset\n * the options to the full list at this point.\n *\n * Signature:\n *\n * ```js\n * function(selectedValue){}\n * ```\n */\n onSelect: React.PropTypes.func,\n\n /**\n * Shown when the combobox is empty.\n */\n placeholder: React.PropTypes.string\n },\n\n getDefaultProps: function() {\n return {\n autocomplete: 'both',\n onFocus: k,\n onInput: k,\n onSelect: k,\n value: null,\n showListOnFocus: false\n };\n },\n\n getInitialState: function() {\n return {\n value: this.props.value,\n // the value displayed in the input\n inputValue: this.findInitialInputValue(),\n isOpen: false,\n focusedIndex: null,\n matchedAutocompleteOption: null,\n // this prevents crazy jumpiness since we focus options on mouseenter\n usingKeyboard: false,\n activedescendant: null,\n listId: 'ic-tokeninput-list-'+(++guid),\n menu: {\n children: [],\n activedescendant: null,\n isEmpty: true\n }\n };\n },\n\n componentWillMount: function() {\n this.setState({menu: this.makeMenu(this.props.children)});\n },\n\n componentWillReceiveProps: function(newProps) {\n this.setState({menu: this.makeMenu(newProps.children)}, function() {\n if(newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({\n isOpen: true\n }, function() {\n this.refs.list.scrollTop = 0;\n }.bind(this))\n } else {\n this.hideList();\n }\n\n }.bind(this));\n },\n\n /**\n * We don't create the components, the user supplies them,\n * so before rendering we attach handlers to facilitate communication from\n * the ComboboxOption to the Combobox.\n */\n makeMenu: function(children) {\n var activedescendant;\n var isEmpty = true;\n\n // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n var _children = React.Children.map(children, function(child, index) {\n // console.log(child.type, ComboboxOption.type)\n if (child.type !== ComboboxOption || !child.props.isFocusable) {\n // allow random elements to live in this list\n return child;\n }\n isEmpty = false;\n // TODO: cloneWithProps and map instead of altering the children in-place\n var props = child.props;\n var newProps = {};\n if (this.state.value === child.props.value) {\n // need an ID for WAI-ARIA\n newProps.id = props.id || 'ic-tokeninput-selected-'+(++guid);\n newProps.isSelected = true\n activedescendant = props.id;\n }\n newProps.onBlur = this.handleOptionBlur;\n newProps.onClick = this.selectOption.bind(this, child);\n newProps.onFocus = this.handleOptionFocus;\n newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n\n return React.cloneElement(child, newProps);\n }.bind(this));\n\n return {\n children: _children,\n activedescendant: activedescendant,\n isEmpty: isEmpty\n };\n },\n\n getClassName: function() {\n var className = addClass(this.props.className, 'ic-tokeninput');\n if (this.state.isOpen)\n className = addClass(className, 'ic-tokeninput-is-open');\n return className;\n },\n\n /**\n * When the user begins typing again we need to clear out any state that has\n * to do with an existing or potential selection.\n */\n clearSelectedState: function(cb) {\n this.setState({\n focusedIndex: null,\n inputValue: null,\n value: null,\n matchedAutocompleteOption: null,\n activedescendant: null\n }, cb);\n },\n\n handleInputChange: function() {\n var value = this.refs.input.value;\n this.clearSelectedState(function() {\n this.props.onInput(value);\n }.bind(this));\n },\n\n handleInputFocus: function() {\n this.props.onFocus();\n this.maybeShowList();\n },\n\n handleInputClick: function() {\n this.maybeShowList();\n },\n\n maybeShowList: function(){\n if (this.props.showListOnFocus){\n this.showList()\n }\n },\n\n handleInputBlur: function() {\n var focusedAnOption = this.state.focusedIndex != null;\n if (focusedAnOption)\n return;\n this.maybeSelectAutocompletedOption();\n this.hideList();\n },\n\n handleOptionBlur: function() {\n // don't want to hide the list if we focused another option\n this.blurTimer = setTimeout(this.hideList, 0);\n },\n\n\n handleOptionFocus: function() {\n // see `handleOptionBlur`\n clearTimeout(this.blurTimer);\n },\n\n handleInputKeyUp: function(event) {\n if (\n this.state.menu.isEmpty ||\n // autocompleting while backspacing feels super weird, so let's not\n event.keyCode === 8 /*backspace*/ ||\n !this.props.autocomplete.match(/both|inline/)\n ) return;\n },\n\n handleButtonClick: function() {\n this.state.isOpen ? this.hideList() : this.showList();\n this.focusInput();\n },\n\n showList: function() {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({isOpen: true})\n },\n\n hideList: function() {\n this.setState({\n isOpen: false,\n focusedIndex: null\n });\n },\n\n hideOnEscape: function(event) {\n this.hideList();\n this.focusInput();\n event.preventDefault();\n },\n\n focusInput: function() {\n this.refs.input.focus();\n },\n\n selectInput: function() {\n this.refs.input.select();\n },\n\n inputKeydownMap: {\n 8: 'removeLastToken', // delete\n 13: 'selectOnEnter', // enter\n 188: 'selectOnEnter', // comma\n 27: 'hideOnEscape', // escape\n 38: 'focusPrevious', // up arrow\n 40: 'focusNext' // down arrow\n },\n\n optionKeydownMap: {\n 13: 'selectOption',\n 27: 'hideOnEscape',\n 38: 'focusPrevious',\n 40: 'focusNext'\n },\n\n handleKeydown: function(event) {\n var handlerName = this.inputKeydownMap[event.keyCode];\n if (!handlerName)\n return\n this.setState({usingKeyboard: true});\n return this[handlerName].call(this,event);\n },\n\n handleOptionKeyDown: function(child, event) {\n var handlerName = this.optionKeydownMap[event.keyCode];\n if (!handlerName) {\n // if the user starts typing again while focused on an option, move focus\n // to the inpute, select so it wipes out any existing value\n this.selectInput();\n return;\n }\n event.preventDefault();\n this.setState({usingKeyboard: true});\n this[handlerName].call(this, child);\n },\n\n handleOptionMouseEnter: function(index) {\n if (this.state.usingKeyboard)\n this.setState({usingKeyboard: false});\n else\n this.focusOptionAtIndex(index);\n },\n\n selectOnEnter: function(event) {\n event.preventDefault();\n this.maybeSelectAutocompletedOption()\n },\n\n maybeSelectAutocompletedOption: function() {\n if (!this.state.matchedAutocompleteOption) {\n this.selectText()\n } else {\n this.selectOption(this.state.matchedAutocompleteOption, {focus: false});\n }\n },\n\n selectOption: function(child, options) {\n options = options || {};\n this.setState({\n // value: child.props.value,\n // inputValue: getLabel(child),\n matchedAutocompleteOption: null\n }, function() {\n this.props.onSelect(child.props.value, child);\n this.hideList();\n this.clearSelectedState(); // added\n if (options.focus !== false)\n this.selectInput();\n }.bind(this));\n this.refs.input.value = '' // added\n },\n\n selectText: function() {\n var value = this.refs.input.value;\n if(!value) return;\n this.props.onSelect(value);\n this.clearSelectedState();\n this.refs.input.value = '' // added\n },\n\n focusNext: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.nextFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n removeLastToken: function() {\n if(this.props.onRemoveLast && !this.refs.input.value) {\n this.props.onRemoveLast()\n }\n return true\n },\n\n focusPrevious: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.previousFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n focusSelectedOption: function() {\n var selectedIndex;\n React.Children.forEach(this.props.children, function(child, index) {\n if (child.props.value === this.state.value)\n selectedIndex = index;\n }.bind(this));\n this.showList();\n this.setState({\n focusedIndex: selectedIndex\n }, this.focusOption);\n },\n\n findInitialInputValue: function() {\n // TODO: might not need this, we should know this in `makeMenu`\n var inputValue;\n React.Children.forEach(this.props.children, function(child) {\n if (child.props.value === this.props.value)\n inputValue = getLabel(child);\n }.bind(this));\n return inputValue;\n },\n\n clampIndex: function(index) {\n if (index < 0) {\n return this.props.children.length - 1\n } else if (index >= this.props.children.length) {\n return 0\n }\n return index\n },\n\n scanForFocusableIndex: function(index, increment) {\n if (index === null || index === undefined) {\n index = increment > 0 ? this.clampIndex(-1) : 0\n }\n var newIndex = index\n while (true) {\n newIndex = this.clampIndex(newIndex + increment)\n if (newIndex === index ||\n this.props.children[newIndex].props.isFocusable)\n {\n return newIndex\n }\n }\n },\n\n nextFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, 1)\n },\n\n previousFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, -1)\n },\n\n focusOptionAtIndex: function(index) {\n if (!this.state.isOpen && this.state.value)\n return this.focusSelectedOption();\n this.showList();\n var length = this.props.children.length;\n if (index === -1)\n index = length - 1;\n else if (index === length)\n index = 0;\n this.setState({\n focusedIndex: index\n }, this.focusOption);\n },\n\n focusOption: function() {\n var index = this.state.focusedIndex;\n this.refs.list.childNodes[index].focus();\n },\n\n render: function() {\n var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' +\n 'Press the down arrow to navigate results. If you don\\'t find an ' +\n 'acceptable option, you can input an alternative. Once you find or ' +\n 'input the tag you want, press Enter or Comma to add it.'\n\n return div({className: this.getClassName()},\n this.props.value,\n this.state.inputValue,\n input({\n ref: 'input',\n autoComplete: 'off',\n spellCheck: 'false',\n 'aria-label': ariaLabel,\n 'aria-expanded': this.state.isOpen+'',\n 'aria-haspopup': 'true',\n 'aria-activedescendant': this.state.menu.activedescendant,\n 'aria-autocomplete': 'list',\n 'aria-owns': this.state.listId,\n id: this.props.id,\n disabled: this.props.isDisabled,\n className: 'ic-tokeninput-input',\n onFocus: this.handleInputFocus,\n onClick: this.handleInputClick,\n onChange: this.handleInputChange,\n onBlur: this.handleInputBlur,\n onKeyDown: this.handleKeydown,\n onKeyUp: this.handleInputKeyUp,\n placeholder: this.props.placeholder,\n role: 'combobox'\n }),\n span({\n 'aria-hidden': 'true',\n className: 'ic-tokeninput-button',\n onClick: this.handleButtonClick\n }, '▾'),\n div({\n id: this.state.listId,\n ref: 'list',\n className: 'ic-tokeninput-list',\n role: 'listbox'\n }, this.state.menu.children)\n );\n }\n});\n\nfunction getLabel(component) {\n return component.props.label || component.props.children;\n}\n\nfunction matchFragment(userInput, firstChildLabel) {\n userInput = userInput.toLowerCase();\n firstChildLabel = firstChildLabel.toLowerCase();\n if (userInput === '' || userInput === firstChildLabel)\n return false;\n if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1)\n return false;\n return true;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/combobox.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 2\n// module chunks = 0 1","module.exports = addClass;\n\nfunction addClass(existing, added) {\n if (!existing) return added;\n if (existing.indexOf(added) > -1) return existing;\n return existing + ' ' + added;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/add-class.js","var React = require('react');\nvar addClass = require('./add-class');\nvar div = React.createFactory('div');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n\n /**\n * The value that will be sent to the `onSelect` handler of the\n * parent Combobox.\n */\n value: React.PropTypes.any.isRequired,\n\n /**\n * What value to put into the input element when this option is\n * selected, defaults to its children coerced to a string.\n */\n label: React.PropTypes.string,\n\n /**\n * Whether the element should be selectable\n */\n isFocusable: React.PropTypes.bool\n },\n\n getDefaultProps: function() {\n return {\n role: 'option',\n tabIndex: '-1',\n className: 'ic-tokeninput-option',\n isSelected: false,\n isFocusable: true\n };\n },\n\n render: function() {\n var props = this.props;\n if (props.isSelected) {\n props.className = addClass(props.className, 'ic-tokeninput-selected');\n props.ariaSelected = true;\n }\n return div(props);\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/option.js","var React = require('react');\nvar span = React.DOM.span;\nvar li = React.createFactory('li');\n\nmodule.exports = React.createClass({\n handleClick: function() {\n this.props.onRemove(this.props.value)\n },\n\n handleKeyDown: function(key) {\n var enterKey = 13;\n if(key.keyCode === enterKey) this.props.onRemove(this.props.value)\n },\n\n ariaLabelRemove: function ariaLabelRemove() {\n return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) :\n 'Remove \\'' + this.props.name + '\\'';\n },\n\n render: function() {\n return (\n li({\n className: \"ic-token inline-flex\"\n },\n span({className: \"ic-token-label\"}, this.props.name),\n span({\n role: 'button',\n onClick: this.handleClick,\n onFocus: this.props.onFocus,\n onKeyDown: this.handleKeyDown,\n 'aria-label': this.ariaLabelRemove(),\n className: \"ic-token-delete-button\",\n tabIndex: 0\n }, \"✕\")\n )\n )\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/token.js","var React = require('react');\nvar Combobox = React.createFactory(require('./combobox'));\nvar Token = React.createFactory(require('./token'));\nvar classnames = require('classnames');\n\nvar ul = React.DOM.ul;\nvar li = React.DOM.li;\n\nmodule.exports = React.createClass({\n propTypes: {\n isLoading: React.PropTypes.bool,\n loadingComponent: React.PropTypes.any,\n onFocus: React.PropTypes.func,\n onInput: React.PropTypes.func.isRequired,\n onSelect: React.PropTypes.func.isRequired,\n tokenAriaFunc: React.PropTypes.func,\n onRemove: React.PropTypes.func.isRequired,\n selected: React.PropTypes.array.isRequired,\n menuContent: React.PropTypes.any,\n showListOnFocus: React.PropTypes.bool,\n placeholder: React.PropTypes.string\n },\n\n getInitialState: function() {\n return {\n selectedToken: null\n };\n },\n\n handleClick: function() {\n // TODO: Expand combobox API for focus\n this.refs['combo-li'].querySelector('input').focus();\n },\n\n handleFocus: function() {\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n },\n\n handleInput: function(inputValue) {\n this.props.onInput(inputValue);\n },\n\n handleSelect: function(event, option) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onSelect(event, option)\n this.setState({\n selectedToken: null\n })\n this.props.onInput(input.value);\n },\n\n handleRemove: function(value) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onRemove(value);\n input.focus();\n },\n\n handleRemoveLast: function() {\n this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n },\n\n render: function() {\n var isDisabled = this.props.isDisabled;\n var tokens = this.props.selected.map(function(token) {\n return (\n Token({\n tokenAriaFunc: this.props.tokenAriaFunc,\n onFocus: this.handleFocus,\n onRemove: this.handleRemove,\n value: token,\n name: token.name,\n key: token.id})\n )\n }.bind(this))\n\n var classes = classnames('ic-tokens flex', {\n 'ic-tokens-disabled': isDisabled\n });\n\n return ul({className: classes, onClick: this.handleClick},\n tokens,\n li({className: 'inline-flex', ref: 'combo-li'},\n Combobox({\n id: this.props.id,\n 'aria-label': this.props['combobox-aria-label'],\n ariaDisabled: isDisabled,\n onFocus: this.handleFocus,\n onInput: this.handleInput,\n showListOnFocus: this.props.showListOnFocus,\n onSelect: this.handleSelect,\n onRemoveLast: this.handleRemoveLast,\n value: this.state.selectedToken,\n isDisabled: isDisabled,\n placeholder: this.props.placeholder\n },\n this.props.menuContent\n )\n ),\n this.props.isLoading && li({className: 'ic-tokeninput-loading flex'}, this.props.loadingComponent)\n );\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 7\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap eb8edd8a57dd140a3260","webpack:///./src/index.js","webpack:///./src/combobox.js","webpack:///external \"react\"","webpack:///./src/add-class.js","webpack:///./src/option.js","webpack:///./~/object.omit/index.js","webpack:///./~/is-extendable/index.js","webpack:///./~/for-own/index.js","webpack:///./~/for-in/index.js","webpack:///./src/token.js","webpack:///./src/main.js","webpack:///./~/classnames/index.js"],"names":["Combobox","Option","Token","TokenInput","React","require","guid","k","addClass","ComboboxOption","div","createFactory","span","input","module","exports","createClass","propTypes","onFocus","PropTypes","func","onBlur","onInput","onSelect","placeholder","string","getDefaultProps","autocomplete","value","showListOnFocus","getInitialState","props","inputValue","findInitialInputValue","isOpen","focusedIndex","matchedAutocompleteOption","usingKeyboard","activedescendant","listId","menu","children","isEmpty","componentWillMount","setState","makeMenu","componentWillReceiveProps","newProps","length","document","activeElement","refs","state","list","scrollTop","bind","hideList","_children","Children","map","child","index","type","isFocusable","id","isSelected","handleOptionBlur","onClick","selectOption","handleOptionFocus","onKeyDown","handleOptionKeyDown","onMouseEnter","handleOptionMouseEnter","cloneElement","getClassName","className","clearSelectedState","cb","handleInputChange","handleInputFocus","maybeShowList","handleInputClick","showList","handleInputBlur","focusedAnOption","maybeSelectAutocompletedOption","blurTimer","setTimeout","clearTimeout","handleInputKeyUp","event","keyCode","match","handleButtonClick","focusInput","hideOnEscape","preventDefault","focus","selectInput","select","inputKeydownMap","optionKeydownMap","handleKeydown","handlerName","call","focusOptionAtIndex","selectOnEnter","selectText","options","focusNext","nextFocusableIndex","removeLastToken","onRemoveLast","focusPrevious","previousFocusableIndex","focusSelectedOption","selectedIndex","forEach","focusOption","getLabel","clampIndex","scanForFocusableIndex","increment","undefined","newIndex","childNodes","render","ariaLabel","ref","autoComplete","spellCheck","disabled","isDisabled","onChange","onKeyUp","role","component","label","matchFragment","userInput","firstChildLabel","toLowerCase","indexOf","existing","added","omit","any","isRequired","bool","tabIndex","ariaSelected","DOM","li","handleClick","onRemove","handleKeyDown","key","enterKey","ariaLabelRemove","tokenAriaFunc","name","classnames","ul","isLoading","loadingComponent","selected","array","menuContent","selectedToken","querySelector","handleFocus","handleBlur","handleInput","handleSelect","option","handleRemove","handleRemoveLast","tokens","token","classes","ariaDisabled"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;ACnCA;;;;;;SAHOA,Q;SACAC,M;SACAC,K;;;AAGP;;;;;;AAMA,KAAMC,2BAAN;mBACeA,U;;;;;;;;ACZf,KAAIC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ACvF,WAAWwG,OAAZ,EAAqBjH,SAAS,KAAKuF,WAAnC,EAAH,EACLwB,MADK,EAELzB,GAAG,EAAC7E,WAAW,aAAZ,EAA2BqD,KAAK,UAAhC,EAAH,EACEjI,SAAS;AACPgE,WAAI,KAAKjC,KAAL,CAAWiC,EADR;AAEP,qBAAc,KAAKjC,KAAL,CAAW,qBAAX,CAFP;AAGPsJ,qBAAchD,UAHP;AAIPnH,gBAAS,KAAKyJ,WAJP;AAKPtJ,eAAQ,KAAKuJ,UALN;AAMPtJ,gBAAS,KAAKuJ,WANP;AAOPhJ,wBAAiB,KAAKE,KAAL,CAAWF,eAPrB;AAQPN,iBAAU,KAAKuJ,YARR;AASP7D,qBAAc,KAAKgE,gBATZ;AAUPrJ,cAAO,KAAKwB,KAAL,CAAWqH,aAVX;AAWPpC,mBAAYA,UAXL;AAYP7G,oBAAa,KAAKO,KAAL,CAAWP;AAZjB,MAAT,EAcE,KAAKO,KAAL,CAAWyI,WAdb,CADF,CAFK,EAoBL,KAAKzI,KAAL,CAAWqI,SAAX,IAAwBX,GAAG,EAAC7E,WAAW,4BAAZ,EAAH,EAA8C,KAAK7C,KAAL,CAAWsI,gBAAzD,CApBnB,CAAP;AAsBD;AAtGgC,EAAlB,CAAjB,C;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iBAAgB;;AAEhB;AACA;;AAEA,kBAAiB,sBAAsB;AACvC;AACA;;AAEA;;AAEA;AACA;AACA,KAAI;AACJ;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAE;AACF;AACA;AACA;AACA,IAAG;AACH,GAAE;AACF;AACA;AACA,EAAC","file":"react-tokeninput.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap eb8edd8a57dd140a3260","export Combobox from './combobox';\nexport Option from './option';\nexport Token from './token';\nimport main from './main';\n\n/**\n * You can't do an import and then immediately export it :(\n * And `export default TokenInput from './main'` doesn't seem to\n * work either :(\n * So this little variable swapping stuff gets it to work.\n */\nconst TokenInput = main;\nexport default TokenInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var React = require('react');\nvar guid = 0;\nvar k = function(){};\nvar addClass = require('./add-class');\nvar ComboboxOption = require('./option');\n\nvar div = React.createFactory('div');\nvar span = React.createFactory('span');\nvar input = React.createFactory('input');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n /**\n * Called when the combobox's input receives focus and the user begins interacting with it.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onFocus: React.PropTypes.func,\n\n /**\n * Called when the combobox's input loses focus after being activated for user input\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onBlur: React.PropTypes.func,\n\n /**\n * Called when the combobox receives user input, this is your chance to\n * filter the data and rerender the options.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onInput: React.PropTypes.func,\n\n /**\n * Called when the combobox receives a selection. You probably want to reset\n * the options to the full list at this point.\n *\n * Signature:\n *\n * ```js\n * function(selectedValue){}\n * ```\n */\n onSelect: React.PropTypes.func,\n\n /**\n * Shown when the combobox is empty.\n */\n placeholder: React.PropTypes.string\n },\n\n getDefaultProps: function() {\n return {\n autocomplete: 'both',\n onFocus: k,\n onBlur: k,\n onInput: k,\n onSelect: k,\n value: null,\n showListOnFocus: false\n };\n },\n\n getInitialState: function() {\n return {\n value: this.props.value,\n // the value displayed in the input\n inputValue: this.findInitialInputValue(),\n isOpen: false,\n focusedIndex: null,\n matchedAutocompleteOption: null,\n // this prevents crazy jumpiness since we focus options on mouseenter\n usingKeyboard: false,\n activedescendant: null,\n listId: 'ic-tokeninput-list-'+(++guid),\n menu: {\n children: [],\n activedescendant: null,\n isEmpty: true\n }\n };\n },\n\n componentWillMount: function() {\n this.setState({menu: this.makeMenu(this.props.children)});\n },\n\n componentWillReceiveProps: function(newProps) {\n this.setState({menu: this.makeMenu(newProps.children)}, function() {\n if(newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({\n isOpen: true\n }, function() {\n this.refs.list.scrollTop = 0;\n }.bind(this))\n } else {\n this.hideList();\n }\n\n }.bind(this));\n },\n\n /**\n * We don't create the components, the user supplies them,\n * so before rendering we attach handlers to facilitate communication from\n * the ComboboxOption to the Combobox.\n */\n makeMenu: function(children) {\n var activedescendant;\n var isEmpty = true;\n\n // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n var _children = React.Children.map(children, function(child, index) {\n // console.log(child.type, ComboboxOption.type)\n if (child.type !== ComboboxOption || !child.props.isFocusable) {\n // allow random elements to live in this list\n return child;\n }\n isEmpty = false;\n // TODO: cloneWithProps and map instead of altering the children in-place\n var props = child.props;\n var newProps = {};\n if (this.state.value === child.props.value) {\n // need an ID for WAI-ARIA\n newProps.id = props.id || 'ic-tokeninput-selected-'+(++guid);\n newProps.isSelected = true\n activedescendant = props.id;\n }\n newProps.onBlur = this.handleOptionBlur;\n newProps.onClick = this.selectOption.bind(this, child);\n newProps.onFocus = this.handleOptionFocus;\n newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n\n return React.cloneElement(child, newProps);\n }.bind(this));\n\n return {\n children: _children,\n activedescendant: activedescendant,\n isEmpty: isEmpty\n };\n },\n\n getClassName: function() {\n var className = addClass(this.props.className, 'ic-tokeninput');\n if (this.state.isOpen)\n className = addClass(className, 'ic-tokeninput-is-open');\n return className;\n },\n\n /**\n * When the user begins typing again we need to clear out any state that has\n * to do with an existing or potential selection.\n */\n clearSelectedState: function(cb) {\n this.setState({\n focusedIndex: null,\n inputValue: null,\n value: null,\n matchedAutocompleteOption: null,\n activedescendant: null\n }, cb);\n },\n\n handleInputChange: function() {\n var value = this.refs.input.value;\n this.clearSelectedState(function() {\n this.props.onInput(value);\n }.bind(this));\n },\n\n handleInputFocus: function() {\n this.props.onFocus();\n this.maybeShowList();\n },\n\n handleInputClick: function() {\n this.maybeShowList();\n },\n\n maybeShowList: function(){\n if (this.props.showListOnFocus){\n this.showList()\n }\n },\n\n handleInputBlur: function() {\n var focusedAnOption = this.state.focusedIndex != null;\n if (focusedAnOption)\n return;\n this.maybeSelectAutocompletedOption();\n this.hideList();\n this.props.onBlur();\n },\n\n handleOptionBlur: function() {\n // don't want to hide the list if we focused another option\n this.blurTimer = setTimeout(this.hideList, 0);\n },\n\n\n handleOptionFocus: function() {\n // see `handleOptionBlur`\n clearTimeout(this.blurTimer);\n },\n\n handleInputKeyUp: function(event) {\n if (\n this.state.menu.isEmpty ||\n // autocompleting while backspacing feels super weird, so let's not\n event.keyCode === 8 /*backspace*/ ||\n !this.props.autocomplete.match(/both|inline/)\n ) return;\n },\n\n handleButtonClick: function() {\n this.state.isOpen ? this.hideList() : this.showList();\n this.focusInput();\n },\n\n showList: function() {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({isOpen: true})\n },\n\n hideList: function() {\n this.setState({\n isOpen: false,\n focusedIndex: null\n });\n },\n\n hideOnEscape: function(event) {\n this.hideList();\n this.focusInput();\n event.preventDefault();\n },\n\n focusInput: function() {\n this.refs.input.focus();\n },\n\n selectInput: function() {\n this.refs.input.select();\n },\n\n inputKeydownMap: {\n 8: 'removeLastToken', // delete\n 13: 'selectOnEnter', // enter\n 188: 'selectOnEnter', // comma\n 27: 'hideOnEscape', // escape\n 38: 'focusPrevious', // up arrow\n 40: 'focusNext' // down arrow\n },\n\n optionKeydownMap: {\n 13: 'selectOption',\n 27: 'hideOnEscape',\n 38: 'focusPrevious',\n 40: 'focusNext'\n },\n\n handleKeydown: function(event) {\n var handlerName = this.inputKeydownMap[event.keyCode];\n if (!handlerName)\n return\n this.setState({usingKeyboard: true});\n return this[handlerName].call(this,event);\n },\n\n handleOptionKeyDown: function(child, event) {\n var handlerName = this.optionKeydownMap[event.keyCode];\n if (!handlerName) {\n // if the user starts typing again while focused on an option, move focus\n // to the inpute, select so it wipes out any existing value\n this.selectInput();\n return;\n }\n event.preventDefault();\n this.setState({usingKeyboard: true});\n this[handlerName].call(this, child);\n },\n\n handleOptionMouseEnter: function(index) {\n if (this.state.usingKeyboard) {\n this.setState({ usingKeyboard: false });\n }\n\n this.focusOptionAtIndex(index);\n },\n\n selectOnEnter: function(event) {\n event.preventDefault();\n this.maybeSelectAutocompletedOption()\n },\n\n maybeSelectAutocompletedOption: function() {\n if (!this.state.matchedAutocompleteOption) {\n this.selectText()\n } else {\n this.selectOption(this.state.matchedAutocompleteOption, {focus: false});\n }\n },\n\n selectOption: function(child, options) {\n options = options || {};\n this.setState({\n // value: child.props.value,\n // inputValue: getLabel(child),\n matchedAutocompleteOption: null\n }, function() {\n this.props.onSelect(child.props.value, child);\n this.hideList();\n this.clearSelectedState(); // added\n if (options.focus !== false)\n this.selectInput();\n }.bind(this));\n this.refs.input.value = '' // added\n },\n\n selectText: function() {\n var value = this.refs.input.value;\n if(!value) return;\n this.props.onSelect(value);\n this.clearSelectedState();\n this.refs.input.value = '' // added\n },\n\n focusNext: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.nextFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n removeLastToken: function() {\n if(this.props.onRemoveLast && !this.refs.input.value) {\n this.props.onRemoveLast()\n }\n return true\n },\n\n focusPrevious: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.previousFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n focusSelectedOption: function() {\n var selectedIndex;\n React.Children.forEach(this.props.children, function(child, index) {\n if (child.props.value === this.state.value)\n selectedIndex = index;\n }.bind(this));\n this.showList();\n this.setState({\n focusedIndex: selectedIndex\n }, this.focusOption);\n },\n\n findInitialInputValue: function() {\n // TODO: might not need this, we should know this in `makeMenu`\n var inputValue;\n React.Children.forEach(this.props.children, function(child) {\n if (child.props.value === this.props.value)\n inputValue = getLabel(child);\n }.bind(this));\n return inputValue;\n },\n\n clampIndex: function(index) {\n if (index < 0) {\n return this.props.children.length - 1\n } else if (index >= this.props.children.length) {\n return 0\n }\n return index\n },\n\n scanForFocusableIndex: function(index, increment) {\n if (index === null || index === undefined) {\n index = increment > 0 ? this.clampIndex(-1) : 0\n }\n var newIndex = index\n while (true) {\n newIndex = this.clampIndex(newIndex + increment)\n if (newIndex === index ||\n this.props.children[newIndex].props.isFocusable)\n {\n return newIndex\n }\n }\n },\n\n nextFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, 1)\n },\n\n previousFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, -1)\n },\n\n focusOptionAtIndex: function(index) {\n if (!this.state.isOpen && this.state.value)\n return this.focusSelectedOption();\n this.showList();\n var length = this.props.children.length;\n if (index === -1)\n index = length - 1;\n else if (index === length)\n index = 0;\n this.setState({\n focusedIndex: index\n }, this.focusOption);\n },\n\n focusOption: function() {\n var index = this.state.focusedIndex;\n this.refs.list.childNodes[index].focus();\n },\n\n render: function() {\n var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' +\n 'Press the down arrow to navigate results. If you don\\'t find an ' +\n 'acceptable option, you can input an alternative. Once you find or ' +\n 'input the tag you want, press Enter or Comma to add it.'\n\n return div({className: this.getClassName()},\n this.props.value,\n this.state.inputValue,\n input({\n ref: 'input',\n autoComplete: 'off',\n spellCheck: 'false',\n 'aria-label': ariaLabel,\n 'aria-expanded': this.state.isOpen+'',\n 'aria-haspopup': 'true',\n 'aria-activedescendant': this.state.menu.activedescendant,\n 'aria-autocomplete': 'list',\n 'aria-owns': this.state.listId,\n id: this.props.id,\n disabled: this.props.isDisabled,\n className: 'ic-tokeninput-input',\n onFocus: this.handleInputFocus,\n onClick: this.handleInputClick,\n onChange: this.handleInputChange,\n onBlur: this.handleInputBlur,\n onKeyDown: this.handleKeydown,\n onKeyUp: this.handleInputKeyUp,\n placeholder: this.props.placeholder,\n role: 'combobox'\n }),\n span({\n 'aria-hidden': 'true',\n className: 'ic-tokeninput-button',\n onClick: this.handleButtonClick\n }, '▾'),\n div({\n id: this.state.listId,\n ref: 'list',\n className: 'ic-tokeninput-list',\n role: 'listbox'\n }, this.state.menu.children)\n );\n }\n});\n\nfunction getLabel(component) {\n return component.props.label || component.props.children;\n}\n\nfunction matchFragment(userInput, firstChildLabel) {\n userInput = userInput.toLowerCase();\n firstChildLabel = firstChildLabel.toLowerCase();\n if (userInput === '' || userInput === firstChildLabel)\n return false;\n if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1)\n return false;\n return true;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/combobox.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 2\n// module chunks = 0 1","module.exports = addClass;\n\nfunction addClass(existing, added) {\n if (!existing) return added;\n if (existing.indexOf(added) > -1) return existing;\n return existing + ' ' + added;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/add-class.js","var React = require('react');\nvar addClass = require('./add-class');\nvar omit = require('object.omit');\nvar div = React.createFactory('div');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n\n /**\n * The value that will be sent to the `onSelect` handler of the\n * parent Combobox.\n */\n value: React.PropTypes.any.isRequired,\n\n /**\n * What value to put into the input element when this option is\n * selected, defaults to its children coerced to a string.\n */\n label: React.PropTypes.string,\n\n /**\n * Whether the element should be selectable\n */\n isFocusable: React.PropTypes.bool\n },\n\n getDefaultProps: function() {\n return {\n role: 'option',\n tabIndex: '-1',\n className: 'ic-tokeninput-option',\n isSelected: false,\n isFocusable: true\n };\n },\n\n render: function() {\n var props = this.props;\n if (props.isSelected) {\n props.className = addClass(props.className, 'ic-tokeninput-selected');\n props.ariaSelected = true;\n }\n return div(omit(props, ['isSelected', 'isFocusable']));\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/option.js","/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('is-extendable');\nvar forOwn = require('for-own');\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function(value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object.omit/index.js\n// module id = 5\n// module chunks = 0 1","/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/is-extendable/index.js\n// module id = 6\n// module chunks = 0 1","/*!\n * for-own \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar forIn = require('for-in');\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(obj, fn, thisArg) {\n forIn(obj, function(val, key) {\n if (hasOwn.call(obj, key)) {\n return fn.call(thisArg, obj[key], key, obj);\n }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-own/index.js\n// module id = 7\n// module chunks = 0 1","/*!\n * for-in \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(obj, fn, thisArg) {\n for (var key in obj) {\n if (fn.call(thisArg, obj[key], key, obj) === false) {\n break;\n }\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-in/index.js\n// module id = 8\n// module chunks = 0 1","var React = require('react');\nvar span = React.DOM.span;\nvar li = React.createFactory('li');\n\nmodule.exports = React.createClass({\n handleClick: function() {\n this.props.onRemove(this.props.value)\n },\n\n handleKeyDown: function(key) {\n var enterKey = 13;\n if(key.keyCode === enterKey) this.props.onRemove(this.props.value)\n },\n\n ariaLabelRemove: function ariaLabelRemove() {\n return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) :\n 'Remove \\'' + this.props.name + '\\'';\n },\n\n render: function() {\n return (\n li({\n className: \"ic-token inline-flex\"\n },\n span({className: \"ic-token-label\"}, this.props.name),\n span({\n role: 'button',\n onClick: this.handleClick,\n onFocus: this.props.onFocus,\n onKeyDown: this.handleKeyDown,\n 'aria-label': this.ariaLabelRemove(),\n className: \"ic-token-delete-button\",\n tabIndex: 0\n }, \"✕\")\n )\n )\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/token.js","var React = require('react');\nvar Combobox = React.createFactory(require('./combobox'));\nvar Token = React.createFactory(require('./token'));\nvar classnames = require('classnames');\n\nvar ul = React.DOM.ul;\nvar li = React.DOM.li;\n\nmodule.exports = React.createClass({\n propTypes: {\n isLoading: React.PropTypes.bool,\n loadingComponent: React.PropTypes.any,\n onFocus: React.PropTypes.func,\n onBlur: React.PropTypes.func,\n onInput: React.PropTypes.func.isRequired,\n onSelect: React.PropTypes.func.isRequired,\n tokenAriaFunc: React.PropTypes.func,\n onRemove: React.PropTypes.func.isRequired,\n selected: React.PropTypes.array.isRequired,\n menuContent: React.PropTypes.any,\n showListOnFocus: React.PropTypes.bool,\n placeholder: React.PropTypes.string\n },\n\n getInitialState: function() {\n return {\n selectedToken: null\n };\n },\n\n handleClick: function() {\n // TODO: Expand combobox API for focus\n this.refs['combo-li'].querySelector('input').focus();\n },\n\n handleFocus: function() {\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n },\n\n handleBlur: function() {\n if (this.props.onBlur) {\n this.props.onBlur();\n }\n },\n\n handleInput: function(inputValue) {\n this.props.onInput(inputValue);\n },\n\n handleSelect: function(event, option) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onSelect(event, option)\n this.setState({\n selectedToken: null\n })\n this.props.onInput(input.value);\n },\n\n handleRemove: function(value) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onRemove(value);\n input.focus();\n },\n\n handleRemoveLast: function() {\n this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n },\n\n render: function() {\n var isDisabled = this.props.isDisabled;\n var tokens = this.props.selected.map(function(token) {\n return (\n Token({\n tokenAriaFunc: this.props.tokenAriaFunc,\n onFocus: this.handleFocus,\n onRemove: this.handleRemove,\n value: token,\n name: token.name,\n key: token.id})\n )\n }.bind(this))\n\n var classes = classnames('ic-tokens flex', {\n 'ic-tokens-disabled': isDisabled\n });\n\n return ul({className: classes, onClick: this.handleClick},\n tokens,\n li({className: 'inline-flex', ref: 'combo-li'},\n Combobox({\n id: this.props.id,\n 'aria-label': this.props['combobox-aria-label'],\n ariaDisabled: isDisabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n onInput: this.handleInput,\n showListOnFocus: this.props.showListOnFocus,\n onSelect: this.handleSelect,\n onRemoveLast: this.handleRemoveLast,\n value: this.state.selectedToken,\n isDisabled: isDisabled,\n placeholder: this.props.placeholder\n },\n this.props.menuContent\n )\n ),\n this.props.isLoading && li({className: 'ic-tokeninput-loading flex'}, this.props.loadingComponent)\n );\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 11\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/react-tokeninput.min.js b/dist/react-tokeninput.min.js index c6f0b68..a8f8b04 100644 --- a/dist/react-tokeninput.min.js +++ b/dist/react-tokeninput.min.js @@ -1,7 +1,31 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.TokenInput=t(require("react")):e.TokenInput=t(e.react)}(this,function(e){return function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={exports:{},id:s,loaded:!1};return e[s].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}([function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.Option=t.Combobox=void 0;var i=n(1),o=s(i),a=n(4),u=s(a),r=n(5),p=s(r),c=n(6),l=s(c);t.Combobox=o.default,t.Option=u.default,t.Token=p.default;var h=l.default;t.default=h},function(e,t,n){"use strict";function s(e){return e.props.label||e.props.children}var i=n(2),o=0,a=function(){},u=n(3),r=n(4),p=i.createFactory("div"),c=i.createFactory("span"),l=i.createFactory("input");e.exports=i.createClass({displayName:"exports",propTypes:{onFocus:i.PropTypes.func,onInput:i.PropTypes.func,onSelect:i.PropTypes.func,placeholder:i.PropTypes.string},getDefaultProps:function(){return{autocomplete:"both",onFocus:a,onInput:a,onSelect:a,value:null,showListOnFocus:!1}},getInitialState:function(){return{value:this.props.value,inputValue:this.findInitialInputValue(),isOpen:!1,focusedIndex:null,matchedAutocompleteOption:null,usingKeyboard:!1,activedescendant:null,listId:"ic-tokeninput-list-"+ ++o,menu:{children:[],activedescendant:null,isEmpty:!0}}},componentWillMount:function(){this.setState({menu:this.makeMenu(this.props.children)})},componentWillReceiveProps:function(e){this.setState({menu:this.makeMenu(e.children)},function(){if(e.children.length&&(this.isOpen||document.activeElement===this.refs.input)){if(!this.state.menu.children.length)return;this.setState({isOpen:!0},function(){this.refs.list.scrollTop=0}.bind(this))}else this.hideList()}.bind(this))},makeMenu:function(e){var t,n=!0,s=i.Children.map(e,function(e,s){if(e.type!==r||!e.props.isFocusable)return e;n=!1;var a=e.props,u={};return this.state.value===e.props.value&&(u.id=a.id||"ic-tokeninput-selected-"+ ++o,u.isSelected=!0,t=a.id),u.onBlur=this.handleOptionBlur,u.onClick=this.selectOption.bind(this,e),u.onFocus=this.handleOptionFocus,u.onKeyDown=this.handleOptionKeyDown.bind(this,e),u.onMouseEnter=this.handleOptionMouseEnter.bind(this,s),i.cloneElement(e,u)}.bind(this));return{children:s,activedescendant:t,isEmpty:n}},getClassName:function(){var e=u(this.props.className,"ic-tokeninput");return this.state.isOpen&&(e=u(e,"ic-tokeninput-is-open")),e},clearSelectedState:function(e){this.setState({focusedIndex:null,inputValue:null,value:null,matchedAutocompleteOption:null,activedescendant:null},e)},handleInputChange:function(){var e=this.refs.input.value;this.clearSelectedState(function(){this.props.onInput(e)}.bind(this))},handleInputFocus:function(){this.props.onFocus(),this.maybeShowList()},handleInputClick:function(){this.maybeShowList()},maybeShowList:function(){this.props.showListOnFocus&&this.showList()},handleInputBlur:function(){var e=null!=this.state.focusedIndex;e||(this.maybeSelectAutocompletedOption(),this.hideList())},handleOptionBlur:function(){this.blurTimer=setTimeout(this.hideList,0)},handleOptionFocus:function(){clearTimeout(this.blurTimer)},handleInputKeyUp:function(e){this.state.menu.isEmpty||8===e.keyCode||!this.props.autocomplete.match(/both|inline/)},handleButtonClick:function(){this.state.isOpen?this.hideList():this.showList(),this.focusInput()},showList:function(){this.state.menu.children.length&&this.setState({isOpen:!0})},hideList:function(){this.setState({isOpen:!1,focusedIndex:null})},hideOnEscape:function(e){this.hideList(),this.focusInput(),e.preventDefault()},focusInput:function(){this.refs.input.focus()},selectInput:function(){this.refs.input.select()},inputKeydownMap:{8:"removeLastToken",13:"selectOnEnter",188:"selectOnEnter",27:"hideOnEscape",38:"focusPrevious",40:"focusNext"},optionKeydownMap:{13:"selectOption",27:"hideOnEscape",38:"focusPrevious",40:"focusNext"},handleKeydown:function(e){var t=this.inputKeydownMap[e.keyCode];if(t)return this.setState({usingKeyboard:!0}),this[t].call(this,e)},handleOptionKeyDown:function(e,t){var n=this.optionKeydownMap[t.keyCode];return n?(t.preventDefault(),this.setState({usingKeyboard:!0}),void this[n].call(this,e)):void this.selectInput()},handleOptionMouseEnter:function(e){this.state.usingKeyboard?this.setState({usingKeyboard:!1}):this.focusOptionAtIndex(e)},selectOnEnter:function(e){e.preventDefault(),this.maybeSelectAutocompletedOption()},maybeSelectAutocompletedOption:function(){this.state.matchedAutocompleteOption?this.selectOption(this.state.matchedAutocompleteOption,{focus:!1}):this.selectText()},selectOption:function(e,t){t=t||{},this.setState({matchedAutocompleteOption:null},function(){this.props.onSelect(e.props.value,e),this.hideList(),this.clearSelectedState(),t.focus!==!1&&this.selectInput()}.bind(this)),this.refs.input.value=""},selectText:function(){var e=this.refs.input.value;e&&(this.props.onSelect(e),this.clearSelectedState(),this.refs.input.value="")},focusNext:function(e){if(e.preventDefault&&e.preventDefault(),!this.state.menu.isEmpty){var t=this.nextFocusableIndex(this.state.focusedIndex);this.focusOptionAtIndex(t)}},removeLastToken:function(){return this.props.onRemoveLast&&!this.refs.input.value&&this.props.onRemoveLast(),!0},focusPrevious:function(e){if(e.preventDefault&&e.preventDefault(),!this.state.menu.isEmpty){var t=this.previousFocusableIndex(this.state.focusedIndex);this.focusOptionAtIndex(t)}},focusSelectedOption:function(){var e;i.Children.forEach(this.props.children,function(t,n){t.props.value===this.state.value&&(e=n)}.bind(this)),this.showList(),this.setState({focusedIndex:e},this.focusOption)},findInitialInputValue:function(){var e;return i.Children.forEach(this.props.children,function(t){t.props.value===this.props.value&&(e=s(t))}.bind(this)),e},clampIndex:function(e){return e<0?this.props.children.length-1:e>=this.props.children.length?0:e},scanForFocusableIndex:function(e,t){null!==e&&void 0!==e||(e=t>0?this.clampIndex(-1):0);for(var n=e;;)if(n=this.clampIndex(n+t),n===e||this.props.children[n].props.isFocusable)return n},nextFocusableIndex:function(e){return this.scanForFocusableIndex(e,1)},previousFocusableIndex:function(e){return this.scanForFocusableIndex(e,-1)},focusOptionAtIndex:function(e){if(!this.state.isOpen&&this.state.value)return this.focusSelectedOption();this.showList();var t=this.props.children.length;e===-1?e=t-1:e===t&&(e=0),this.setState({focusedIndex:e},this.focusOption)},focusOption:function(){var e=this.state.focusedIndex;this.refs.list.childNodes[e].focus()},render:function(){var e=this.props["aria-label"]||"Start typing to search. Press the down arrow to navigate results. If you don't find an acceptable option, you can input an alternative. Once you find or input the tag you want, press Enter or Comma to add it.";return p({className:this.getClassName()},this.props.value,this.state.inputValue,l({ref:"input",autoComplete:"off",spellCheck:"false","aria-label":e,"aria-expanded":this.state.isOpen+"","aria-haspopup":"true","aria-activedescendant":this.state.menu.activedescendant,"aria-autocomplete":"list","aria-owns":this.state.listId,id:this.props.id,disabled:this.props.isDisabled,className:"ic-tokeninput-input",onFocus:this.handleInputFocus,onClick:this.handleInputClick,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleKeydown,onKeyUp:this.handleInputKeyUp,placeholder:this.props.placeholder,role:"combobox"}),c({"aria-hidden":"true",className:"ic-tokeninput-button",onClick:this.handleButtonClick},"▾"),p({id:this.state.listId,ref:"list",className:"ic-tokeninput-list",role:"listbox"},this.state.menu.children))}})},function(t,n){t.exports=e},function(e,t){"use strict";function n(e,t){return e?e.indexOf(t)>-1?e:e+" "+t:t}e.exports=n},function(e,t,n){"use strict";var s=n(2),i=n(3),o=s.createFactory("div");e.exports=s.createClass({displayName:"exports",propTypes:{value:s.PropTypes.any.isRequired,label:s.PropTypes.string,isFocusable:s.PropTypes.bool},getDefaultProps:function(){return{role:"option",tabIndex:"-1",className:"ic-tokeninput-option",isSelected:!1,isFocusable:!0}},render:function(){var e=this.props;return e.isSelected&&(e.className=i(e.className,"ic-tokeninput-selected"),e.ariaSelected=!0),o(e)}})},function(e,t,n){"use strict";var s=n(2),i=s.DOM.span,o=s.createFactory("li");e.exports=s.createClass({displayName:"exports",handleClick:function(){this.props.onRemove(this.props.value)},handleKeyDown:function(e){var t=13;e.keyCode===t&&this.props.onRemove(this.props.value)},ariaLabelRemove:function(){return this.props.tokenAriaFunc?this.props.tokenAriaFunc(this.props.name):"Remove '"+this.props.name+"'"},render:function(){return o({className:"ic-token inline-flex"},i({className:"ic-token-label"},this.props.name),i({role:"button",onClick:this.handleClick,onFocus:this.props.onFocus,onKeyDown:this.handleKeyDown,"aria-label":this.ariaLabelRemove(),className:"ic-token-delete-button",tabIndex:0},"✕"))}})},function(e,t,n){"use strict";var s=n(2),i=s.createFactory(n(1)),o=s.createFactory(n(5)),a=n(7),u=s.DOM.ul,r=s.DOM.li;e.exports=s.createClass({displayName:"exports",propTypes:{isLoading:s.PropTypes.bool,loadingComponent:s.PropTypes.any,onFocus:s.PropTypes.func,onInput:s.PropTypes.func.isRequired,onSelect:s.PropTypes.func.isRequired,tokenAriaFunc:s.PropTypes.func,onRemove:s.PropTypes.func.isRequired,selected:s.PropTypes.array.isRequired,menuContent:s.PropTypes.any,showListOnFocus:s.PropTypes.bool,placeholder:s.PropTypes.string},getInitialState:function(){return{selectedToken:null}},handleClick:function(){this.refs["combo-li"].querySelector("input").focus()},handleFocus:function(){this.props.onFocus&&this.props.onFocus()},handleInput:function(e){this.props.onInput(e)},handleSelect:function(e,t){var n=this.refs["combo-li"].querySelector("input");this.props.onSelect(e,t),this.setState({selectedToken:null}),this.props.onInput(n.value)},handleRemove:function(e){var t=this.refs["combo-li"].querySelector("input");this.props.onRemove(e),t.focus()},handleRemoveLast:function(){this.props.onRemove(this.props.selected[this.props.selected.length-1])},render:function(){var e=this.props.isDisabled,t=this.props.selected.map(function(e){return o({tokenAriaFunc:this.props.tokenAriaFunc,onFocus:this.handleFocus,onRemove:this.handleRemove,value:e,name:e.name,key:e.id})}.bind(this)),n=a("ic-tokens flex",{"ic-tokens-disabled":e});return u({className:n,onClick:this.handleClick},t,r({className:"inline-flex",ref:"combo-li"},i({id:this.props.id,"aria-label":this.props["combobox-aria-label"],ariaDisabled:e,onFocus:this.handleFocus,onInput:this.handleInput,showListOnFocus:this.props.showListOnFocus,onSelect:this.handleSelect,onRemoveLast:this.handleRemoveLast,value:this.state.selectedToken,isDisabled:e,placeholder:this.props.placeholder},this.props.menuContent)),this.props.isLoading&&r({className:"ic-tokeninput-loading flex"},this.props.loadingComponent))}})},function(e,t,n){var s,i;/*! +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.TokenInput=t(require("react")):e.TokenInput=t(e.react)}(this,function(e){return function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={exports:{},id:s,loaded:!1};return e[s].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}([function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.Option=t.Combobox=void 0;var i=n(1),o=s(i),u=n(4),r=s(u),a=n(9),p=s(a),c=n(10),l=s(c);t.Combobox=o.default,t.Option=r.default,t.Token=p.default;var h=l.default;t.default=h},function(e,t,n){"use strict";function s(e){return e.props.label||e.props.children}var i=n(2),o=0,u=function(){},r=n(3),a=n(4),p=i.createFactory("div"),c=i.createFactory("span"),l=i.createFactory("input");e.exports=i.createClass({displayName:"exports",propTypes:{onFocus:i.PropTypes.func,onBlur:i.PropTypes.func,onInput:i.PropTypes.func,onSelect:i.PropTypes.func,placeholder:i.PropTypes.string},getDefaultProps:function(){return{autocomplete:"both",onFocus:u,onBlur:u,onInput:u,onSelect:u,value:null,showListOnFocus:!1}},getInitialState:function(){return{value:this.props.value,inputValue:this.findInitialInputValue(),isOpen:!1,focusedIndex:null,matchedAutocompleteOption:null,usingKeyboard:!1,activedescendant:null,listId:"ic-tokeninput-list-"+ ++o,menu:{children:[],activedescendant:null,isEmpty:!0}}},componentWillMount:function(){this.setState({menu:this.makeMenu(this.props.children)})},componentWillReceiveProps:function(e){this.setState({menu:this.makeMenu(e.children)},function(){if(e.children.length&&(this.isOpen||document.activeElement===this.refs.input)){if(!this.state.menu.children.length)return;this.setState({isOpen:!0},function(){this.refs.list.scrollTop=0}.bind(this))}else this.hideList()}.bind(this))},makeMenu:function(e){var t,n=!0,s=i.Children.map(e,function(e,s){if(e.type!==a||!e.props.isFocusable)return e;n=!1;var u=e.props,r={};return this.state.value===e.props.value&&(r.id=u.id||"ic-tokeninput-selected-"+ ++o,r.isSelected=!0,t=u.id),r.onBlur=this.handleOptionBlur,r.onClick=this.selectOption.bind(this,e),r.onFocus=this.handleOptionFocus,r.onKeyDown=this.handleOptionKeyDown.bind(this,e),r.onMouseEnter=this.handleOptionMouseEnter.bind(this,s),i.cloneElement(e,r)}.bind(this));return{children:s,activedescendant:t,isEmpty:n}},getClassName:function(){var e=r(this.props.className,"ic-tokeninput");return this.state.isOpen&&(e=r(e,"ic-tokeninput-is-open")),e},clearSelectedState:function(e){this.setState({focusedIndex:null,inputValue:null,value:null,matchedAutocompleteOption:null,activedescendant:null},e)},handleInputChange:function(){var e=this.refs.input.value;this.clearSelectedState(function(){this.props.onInput(e)}.bind(this))},handleInputFocus:function(){this.props.onFocus(),this.maybeShowList()},handleInputClick:function(){this.maybeShowList()},maybeShowList:function(){this.props.showListOnFocus&&this.showList()},handleInputBlur:function(){var e=null!=this.state.focusedIndex;e||(this.maybeSelectAutocompletedOption(),this.hideList(),this.props.onBlur())},handleOptionBlur:function(){this.blurTimer=setTimeout(this.hideList,0)},handleOptionFocus:function(){clearTimeout(this.blurTimer)},handleInputKeyUp:function(e){this.state.menu.isEmpty||8===e.keyCode||!this.props.autocomplete.match(/both|inline/)},handleButtonClick:function(){this.state.isOpen?this.hideList():this.showList(),this.focusInput()},showList:function(){this.state.menu.children.length&&this.setState({isOpen:!0})},hideList:function(){this.setState({isOpen:!1,focusedIndex:null})},hideOnEscape:function(e){this.hideList(),this.focusInput(),e.preventDefault()},focusInput:function(){this.refs.input.focus()},selectInput:function(){this.refs.input.select()},inputKeydownMap:{8:"removeLastToken",13:"selectOnEnter",188:"selectOnEnter",27:"hideOnEscape",38:"focusPrevious",40:"focusNext"},optionKeydownMap:{13:"selectOption",27:"hideOnEscape",38:"focusPrevious",40:"focusNext"},handleKeydown:function(e){var t=this.inputKeydownMap[e.keyCode];if(t)return this.setState({usingKeyboard:!0}),this[t].call(this,e)},handleOptionKeyDown:function(e,t){var n=this.optionKeydownMap[t.keyCode];return n?(t.preventDefault(),this.setState({usingKeyboard:!0}),void this[n].call(this,e)):void this.selectInput()},handleOptionMouseEnter:function(e){this.state.usingKeyboard&&this.setState({usingKeyboard:!1}),this.focusOptionAtIndex(e)},selectOnEnter:function(e){e.preventDefault(),this.maybeSelectAutocompletedOption()},maybeSelectAutocompletedOption:function(){this.state.matchedAutocompleteOption?this.selectOption(this.state.matchedAutocompleteOption,{focus:!1}):this.selectText()},selectOption:function(e,t){t=t||{},this.setState({matchedAutocompleteOption:null},function(){this.props.onSelect(e.props.value,e),this.hideList(),this.clearSelectedState(),t.focus!==!1&&this.selectInput()}.bind(this)),this.refs.input.value=""},selectText:function(){var e=this.refs.input.value;e&&(this.props.onSelect(e),this.clearSelectedState(),this.refs.input.value="")},focusNext:function(e){if(e.preventDefault&&e.preventDefault(),!this.state.menu.isEmpty){var t=this.nextFocusableIndex(this.state.focusedIndex);this.focusOptionAtIndex(t)}},removeLastToken:function(){return this.props.onRemoveLast&&!this.refs.input.value&&this.props.onRemoveLast(),!0},focusPrevious:function(e){if(e.preventDefault&&e.preventDefault(),!this.state.menu.isEmpty){var t=this.previousFocusableIndex(this.state.focusedIndex);this.focusOptionAtIndex(t)}},focusSelectedOption:function(){var e;i.Children.forEach(this.props.children,function(t,n){t.props.value===this.state.value&&(e=n)}.bind(this)),this.showList(),this.setState({focusedIndex:e},this.focusOption)},findInitialInputValue:function(){var e;return i.Children.forEach(this.props.children,function(t){t.props.value===this.props.value&&(e=s(t))}.bind(this)),e},clampIndex:function(e){return e<0?this.props.children.length-1:e>=this.props.children.length?0:e},scanForFocusableIndex:function(e,t){null!==e&&void 0!==e||(e=t>0?this.clampIndex(-1):0);for(var n=e;;)if(n=this.clampIndex(n+t),n===e||this.props.children[n].props.isFocusable)return n},nextFocusableIndex:function(e){return this.scanForFocusableIndex(e,1)},previousFocusableIndex:function(e){return this.scanForFocusableIndex(e,-1)},focusOptionAtIndex:function(e){if(!this.state.isOpen&&this.state.value)return this.focusSelectedOption();this.showList();var t=this.props.children.length;e===-1?e=t-1:e===t&&(e=0),this.setState({focusedIndex:e},this.focusOption)},focusOption:function(){var e=this.state.focusedIndex;this.refs.list.childNodes[e].focus()},render:function(){var e=this.props["aria-label"]||"Start typing to search. Press the down arrow to navigate results. If you don't find an acceptable option, you can input an alternative. Once you find or input the tag you want, press Enter or Comma to add it.";return p({className:this.getClassName()},this.props.value,this.state.inputValue,l({ref:"input",autoComplete:"off",spellCheck:"false","aria-label":e,"aria-expanded":this.state.isOpen+"","aria-haspopup":"true","aria-activedescendant":this.state.menu.activedescendant,"aria-autocomplete":"list","aria-owns":this.state.listId,id:this.props.id,disabled:this.props.isDisabled,className:"ic-tokeninput-input",onFocus:this.handleInputFocus,onClick:this.handleInputClick,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleKeydown,onKeyUp:this.handleInputKeyUp,placeholder:this.props.placeholder,role:"combobox"}),c({"aria-hidden":"true",className:"ic-tokeninput-button",onClick:this.handleButtonClick},"▾"),p({id:this.state.listId,ref:"list",className:"ic-tokeninput-list",role:"listbox"},this.state.menu.children))}})},function(t,n){t.exports=e},function(e,t){"use strict";function n(e,t){return e?e.indexOf(t)>-1?e:e+" "+t:t}e.exports=n},function(e,t,n){"use strict";var s=n(2),i=n(3),o=n(5),u=s.createFactory("div");e.exports=s.createClass({displayName:"exports",propTypes:{value:s.PropTypes.any.isRequired,label:s.PropTypes.string,isFocusable:s.PropTypes.bool},getDefaultProps:function(){return{role:"option",tabIndex:"-1",className:"ic-tokeninput-option",isSelected:!1,isFocusable:!0}},render:function(){var e=this.props;return e.isSelected&&(e.className=i(e.className,"ic-tokeninput-selected"),e.ariaSelected=!0),u(o(e,["isSelected","isFocusable"]))}})},function(e,t,n){/*! + * object.omit + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + */ +"use strict";var s=n(6),i=n(7);e.exports=function(e,t){if(!s(e))return{};t=[].concat.apply([],[].slice.call(arguments,1));var n,o=t[t.length-1],u={};"function"==typeof o&&(n=t.pop());var r="function"==typeof n;return t.length||r?(i(e,function(s,i){t.indexOf(i)===-1&&(r?n(s,i,e)&&(u[i]=s):u[i]=s)}),u):e}},function(e,t){/*! + * is-extendable + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */ +"use strict";e.exports=function(e){return"undefined"!=typeof e&&null!==e&&("object"==typeof e||"function"==typeof e)}},function(e,t,n){/*! + * for-own + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ +"use strict";var s=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){s(e,function(s,o){if(i.call(e,o))return t.call(n,e[o],o,e)})}},function(e,t){/*! + * for-in + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ +"use strict";e.exports=function(e,t,n){for(var s in e)if(t.call(n,e[s],s,e)===!1)break}},function(e,t,n){"use strict";var s=n(2),i=s.DOM.span,o=s.createFactory("li");e.exports=s.createClass({displayName:"exports",handleClick:function(){this.props.onRemove(this.props.value)},handleKeyDown:function(e){var t=13;e.keyCode===t&&this.props.onRemove(this.props.value)},ariaLabelRemove:function(){return this.props.tokenAriaFunc?this.props.tokenAriaFunc(this.props.name):"Remove '"+this.props.name+"'"},render:function(){return o({className:"ic-token inline-flex"},i({className:"ic-token-label"},this.props.name),i({role:"button",onClick:this.handleClick,onFocus:this.props.onFocus,onKeyDown:this.handleKeyDown,"aria-label":this.ariaLabelRemove(),className:"ic-token-delete-button",tabIndex:0},"✕"))}})},function(e,t,n){"use strict";var s=n(2),i=s.createFactory(n(1)),o=s.createFactory(n(9)),u=n(11),r=s.DOM.ul,a=s.DOM.li;e.exports=s.createClass({displayName:"exports",propTypes:{isLoading:s.PropTypes.bool,loadingComponent:s.PropTypes.any,onFocus:s.PropTypes.func,onBlur:s.PropTypes.func,onInput:s.PropTypes.func.isRequired,onSelect:s.PropTypes.func.isRequired,tokenAriaFunc:s.PropTypes.func,onRemove:s.PropTypes.func.isRequired,selected:s.PropTypes.array.isRequired,menuContent:s.PropTypes.any,showListOnFocus:s.PropTypes.bool,placeholder:s.PropTypes.string},getInitialState:function(){return{selectedToken:null}},handleClick:function(){this.refs["combo-li"].querySelector("input").focus()},handleFocus:function(){this.props.onFocus&&this.props.onFocus()},handleBlur:function(){this.props.onBlur&&this.props.onBlur()},handleInput:function(e){this.props.onInput(e)},handleSelect:function(e,t){var n=this.refs["combo-li"].querySelector("input");this.props.onSelect(e,t),this.setState({selectedToken:null}),this.props.onInput(n.value)},handleRemove:function(e){var t=this.refs["combo-li"].querySelector("input");this.props.onRemove(e),t.focus()},handleRemoveLast:function(){this.props.onRemove(this.props.selected[this.props.selected.length-1])},render:function(){var e=this.props.isDisabled,t=this.props.selected.map(function(e){return o({tokenAriaFunc:this.props.tokenAriaFunc,onFocus:this.handleFocus,onRemove:this.handleRemove,value:e,name:e.name,key:e.id})}.bind(this)),n=u("ic-tokens flex",{"ic-tokens-disabled":e});return r({className:n,onClick:this.handleClick},t,a({className:"inline-flex",ref:"combo-li"},i({id:this.props.id,"aria-label":this.props["combobox-aria-label"],ariaDisabled:e,onFocus:this.handleFocus,onBlur:this.handleBlur,onInput:this.handleInput,showListOnFocus:this.props.showListOnFocus,onSelect:this.handleSelect,onRemoveLast:this.handleRemoveLast,value:this.state.selectedToken,isDisabled:e,placeholder:this.props.placeholder},this.props.menuContent)),this.props.isLoading&&a({className:"ic-tokeninput-loading flex"},this.props.loadingComponent))}})},function(e,t,n){var s,i;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){"use strict";function n(){for(var e=[],t=0;t components, the user supplies them,\n\t * so before rendering we attach handlers to facilitate communication from\n\t * the ComboboxOption to the Combobox.\n\t */\n\t makeMenu: function makeMenu(children) {\n\t var activedescendant;\n\t var isEmpty = true;\n\t\n\t // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n\t var _children = React.Children.map(children, function (child, index) {\n\t // console.log(child.type, ComboboxOption.type)\n\t if (child.type !== ComboboxOption || !child.props.isFocusable) {\n\t // allow random elements to live in this list\n\t return child;\n\t }\n\t isEmpty = false;\n\t // TODO: cloneWithProps and map instead of altering the children in-place\n\t var props = child.props;\n\t var newProps = {};\n\t if (this.state.value === child.props.value) {\n\t // need an ID for WAI-ARIA\n\t newProps.id = props.id || 'ic-tokeninput-selected-' + ++guid;\n\t newProps.isSelected = true;\n\t activedescendant = props.id;\n\t }\n\t newProps.onBlur = this.handleOptionBlur;\n\t newProps.onClick = this.selectOption.bind(this, child);\n\t newProps.onFocus = this.handleOptionFocus;\n\t newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n\t newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n\t\n\t return React.cloneElement(child, newProps);\n\t }.bind(this));\n\t\n\t return {\n\t children: _children,\n\t activedescendant: activedescendant,\n\t isEmpty: isEmpty\n\t };\n\t },\n\t\n\t getClassName: function getClassName() {\n\t var className = addClass(this.props.className, 'ic-tokeninput');\n\t if (this.state.isOpen) className = addClass(className, 'ic-tokeninput-is-open');\n\t return className;\n\t },\n\t\n\t /**\n\t * When the user begins typing again we need to clear out any state that has\n\t * to do with an existing or potential selection.\n\t */\n\t clearSelectedState: function clearSelectedState(cb) {\n\t this.setState({\n\t focusedIndex: null,\n\t inputValue: null,\n\t value: null,\n\t matchedAutocompleteOption: null,\n\t activedescendant: null\n\t }, cb);\n\t },\n\t\n\t handleInputChange: function handleInputChange() {\n\t var value = this.refs.input.value;\n\t this.clearSelectedState(function () {\n\t this.props.onInput(value);\n\t }.bind(this));\n\t },\n\t\n\t handleInputFocus: function handleInputFocus() {\n\t this.props.onFocus();\n\t this.maybeShowList();\n\t },\n\t\n\t handleInputClick: function handleInputClick() {\n\t this.maybeShowList();\n\t },\n\t\n\t maybeShowList: function maybeShowList() {\n\t if (this.props.showListOnFocus) {\n\t this.showList();\n\t }\n\t },\n\t\n\t handleInputBlur: function handleInputBlur() {\n\t var focusedAnOption = this.state.focusedIndex != null;\n\t if (focusedAnOption) return;\n\t this.maybeSelectAutocompletedOption();\n\t this.hideList();\n\t },\n\t\n\t handleOptionBlur: function handleOptionBlur() {\n\t // don't want to hide the list if we focused another option\n\t this.blurTimer = setTimeout(this.hideList, 0);\n\t },\n\t\n\t handleOptionFocus: function handleOptionFocus() {\n\t // see `handleOptionBlur`\n\t clearTimeout(this.blurTimer);\n\t },\n\t\n\t handleInputKeyUp: function handleInputKeyUp(event) {\n\t if (this.state.menu.isEmpty ||\n\t // autocompleting while backspacing feels super weird, so let's not\n\t event.keyCode === 8 /*backspace*/ || !this.props.autocomplete.match(/both|inline/)) return;\n\t },\n\t\n\t handleButtonClick: function handleButtonClick() {\n\t this.state.isOpen ? this.hideList() : this.showList();\n\t this.focusInput();\n\t },\n\t\n\t showList: function showList() {\n\t if (!this.state.menu.children.length) {\n\t return;\n\t }\n\t this.setState({ isOpen: true });\n\t },\n\t\n\t hideList: function hideList() {\n\t this.setState({\n\t isOpen: false,\n\t focusedIndex: null\n\t });\n\t },\n\t\n\t hideOnEscape: function hideOnEscape(event) {\n\t this.hideList();\n\t this.focusInput();\n\t event.preventDefault();\n\t },\n\t\n\t focusInput: function focusInput() {\n\t this.refs.input.focus();\n\t },\n\t\n\t selectInput: function selectInput() {\n\t this.refs.input.select();\n\t },\n\t\n\t inputKeydownMap: {\n\t 8: 'removeLastToken', // delete\n\t 13: 'selectOnEnter', // enter\n\t 188: 'selectOnEnter', // comma\n\t 27: 'hideOnEscape', // escape\n\t 38: 'focusPrevious', // up arrow\n\t 40: 'focusNext' // down arrow\n\t },\n\t\n\t optionKeydownMap: {\n\t 13: 'selectOption',\n\t 27: 'hideOnEscape',\n\t 38: 'focusPrevious',\n\t 40: 'focusNext'\n\t },\n\t\n\t handleKeydown: function handleKeydown(event) {\n\t var handlerName = this.inputKeydownMap[event.keyCode];\n\t if (!handlerName) return;\n\t this.setState({ usingKeyboard: true });\n\t return this[handlerName].call(this, event);\n\t },\n\t\n\t handleOptionKeyDown: function handleOptionKeyDown(child, event) {\n\t var handlerName = this.optionKeydownMap[event.keyCode];\n\t if (!handlerName) {\n\t // if the user starts typing again while focused on an option, move focus\n\t // to the inpute, select so it wipes out any existing value\n\t this.selectInput();\n\t return;\n\t }\n\t event.preventDefault();\n\t this.setState({ usingKeyboard: true });\n\t this[handlerName].call(this, child);\n\t },\n\t\n\t handleOptionMouseEnter: function handleOptionMouseEnter(index) {\n\t if (this.state.usingKeyboard) this.setState({ usingKeyboard: false });else this.focusOptionAtIndex(index);\n\t },\n\t\n\t selectOnEnter: function selectOnEnter(event) {\n\t event.preventDefault();\n\t this.maybeSelectAutocompletedOption();\n\t },\n\t\n\t maybeSelectAutocompletedOption: function maybeSelectAutocompletedOption() {\n\t if (!this.state.matchedAutocompleteOption) {\n\t this.selectText();\n\t } else {\n\t this.selectOption(this.state.matchedAutocompleteOption, { focus: false });\n\t }\n\t },\n\t\n\t selectOption: function selectOption(child, options) {\n\t options = options || {};\n\t this.setState({\n\t // value: child.props.value,\n\t // inputValue: getLabel(child),\n\t matchedAutocompleteOption: null\n\t }, function () {\n\t this.props.onSelect(child.props.value, child);\n\t this.hideList();\n\t this.clearSelectedState(); // added\n\t if (options.focus !== false) this.selectInput();\n\t }.bind(this));\n\t this.refs.input.value = ''; // added\n\t },\n\t\n\t selectText: function selectText() {\n\t var value = this.refs.input.value;\n\t if (!value) return;\n\t this.props.onSelect(value);\n\t this.clearSelectedState();\n\t this.refs.input.value = ''; // added\n\t },\n\t\n\t focusNext: function focusNext(event) {\n\t if (event.preventDefault) event.preventDefault();\n\t if (this.state.menu.isEmpty) return;\n\t var index = this.nextFocusableIndex(this.state.focusedIndex);\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t removeLastToken: function removeLastToken() {\n\t if (this.props.onRemoveLast && !this.refs.input.value) {\n\t this.props.onRemoveLast();\n\t }\n\t return true;\n\t },\n\t\n\t focusPrevious: function focusPrevious(event) {\n\t if (event.preventDefault) event.preventDefault();\n\t if (this.state.menu.isEmpty) return;\n\t var index = this.previousFocusableIndex(this.state.focusedIndex);\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t focusSelectedOption: function focusSelectedOption() {\n\t var selectedIndex;\n\t React.Children.forEach(this.props.children, function (child, index) {\n\t if (child.props.value === this.state.value) selectedIndex = index;\n\t }.bind(this));\n\t this.showList();\n\t this.setState({\n\t focusedIndex: selectedIndex\n\t }, this.focusOption);\n\t },\n\t\n\t findInitialInputValue: function findInitialInputValue() {\n\t // TODO: might not need this, we should know this in `makeMenu`\n\t var inputValue;\n\t React.Children.forEach(this.props.children, function (child) {\n\t if (child.props.value === this.props.value) inputValue = getLabel(child);\n\t }.bind(this));\n\t return inputValue;\n\t },\n\t\n\t clampIndex: function clampIndex(index) {\n\t if (index < 0) {\n\t return this.props.children.length - 1;\n\t } else if (index >= this.props.children.length) {\n\t return 0;\n\t }\n\t return index;\n\t },\n\t\n\t scanForFocusableIndex: function scanForFocusableIndex(index, increment) {\n\t if (index === null || index === undefined) {\n\t index = increment > 0 ? this.clampIndex(-1) : 0;\n\t }\n\t var newIndex = index;\n\t while (true) {\n\t newIndex = this.clampIndex(newIndex + increment);\n\t if (newIndex === index || this.props.children[newIndex].props.isFocusable) {\n\t return newIndex;\n\t }\n\t }\n\t },\n\t\n\t nextFocusableIndex: function nextFocusableIndex(index) {\n\t return this.scanForFocusableIndex(index, 1);\n\t },\n\t\n\t previousFocusableIndex: function previousFocusableIndex(index) {\n\t return this.scanForFocusableIndex(index, -1);\n\t },\n\t\n\t focusOptionAtIndex: function focusOptionAtIndex(index) {\n\t if (!this.state.isOpen && this.state.value) return this.focusSelectedOption();\n\t this.showList();\n\t var length = this.props.children.length;\n\t if (index === -1) index = length - 1;else if (index === length) index = 0;\n\t this.setState({\n\t focusedIndex: index\n\t }, this.focusOption);\n\t },\n\t\n\t focusOption: function focusOption() {\n\t var index = this.state.focusedIndex;\n\t this.refs.list.childNodes[index].focus();\n\t },\n\t\n\t render: function render() {\n\t var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' + 'Press the down arrow to navigate results. If you don\\'t find an ' + 'acceptable option, you can input an alternative. Once you find or ' + 'input the tag you want, press Enter or Comma to add it.';\n\t\n\t return div({ className: this.getClassName() }, this.props.value, this.state.inputValue, input({\n\t ref: 'input',\n\t autoComplete: 'off',\n\t spellCheck: 'false',\n\t 'aria-label': ariaLabel,\n\t 'aria-expanded': this.state.isOpen + '',\n\t 'aria-haspopup': 'true',\n\t 'aria-activedescendant': this.state.menu.activedescendant,\n\t 'aria-autocomplete': 'list',\n\t 'aria-owns': this.state.listId,\n\t id: this.props.id,\n\t disabled: this.props.isDisabled,\n\t className: 'ic-tokeninput-input',\n\t onFocus: this.handleInputFocus,\n\t onClick: this.handleInputClick,\n\t onChange: this.handleInputChange,\n\t onBlur: this.handleInputBlur,\n\t onKeyDown: this.handleKeydown,\n\t onKeyUp: this.handleInputKeyUp,\n\t placeholder: this.props.placeholder,\n\t role: 'combobox'\n\t }), span({\n\t 'aria-hidden': 'true',\n\t className: 'ic-tokeninput-button',\n\t onClick: this.handleButtonClick\n\t }, '▾'), div({\n\t id: this.state.listId,\n\t ref: 'list',\n\t className: 'ic-tokeninput-list',\n\t role: 'listbox'\n\t }, this.state.menu.children));\n\t }\n\t});\n\t\n\tfunction getLabel(component) {\n\t return component.props.label || component.props.children;\n\t}\n\t\n\tfunction matchFragment(userInput, firstChildLabel) {\n\t userInput = userInput.toLowerCase();\n\t firstChildLabel = firstChildLabel.toLowerCase();\n\t if (userInput === '' || userInput === firstChildLabel) return false;\n\t if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1) return false;\n\t return true;\n\t}\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = addClass;\n\t\n\tfunction addClass(existing, added) {\n\t if (!existing) return added;\n\t if (existing.indexOf(added) > -1) return existing;\n\t return existing + ' ' + added;\n\t}\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar addClass = __webpack_require__(3);\n\tvar div = React.createFactory('div');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t\n\t propTypes: {\n\t\n\t /**\n\t * The value that will be sent to the `onSelect` handler of the\n\t * parent Combobox.\n\t */\n\t value: React.PropTypes.any.isRequired,\n\t\n\t /**\n\t * What value to put into the input element when this option is\n\t * selected, defaults to its children coerced to a string.\n\t */\n\t label: React.PropTypes.string,\n\t\n\t /**\n\t * Whether the element should be selectable\n\t */\n\t isFocusable: React.PropTypes.bool\n\t },\n\t\n\t getDefaultProps: function getDefaultProps() {\n\t return {\n\t role: 'option',\n\t tabIndex: '-1',\n\t className: 'ic-tokeninput-option',\n\t isSelected: false,\n\t isFocusable: true\n\t };\n\t },\n\t\n\t render: function render() {\n\t var props = this.props;\n\t if (props.isSelected) {\n\t props.className = addClass(props.className, 'ic-tokeninput-selected');\n\t props.ariaSelected = true;\n\t }\n\t return div(props);\n\t }\n\t\n\t});\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar span = React.DOM.span;\n\tvar li = React.createFactory('li');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t handleClick: function handleClick() {\n\t this.props.onRemove(this.props.value);\n\t },\n\t\n\t handleKeyDown: function handleKeyDown(key) {\n\t var enterKey = 13;\n\t if (key.keyCode === enterKey) this.props.onRemove(this.props.value);\n\t },\n\t\n\t ariaLabelRemove: function ariaLabelRemove() {\n\t return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) : 'Remove \\'' + this.props.name + '\\'';\n\t },\n\t\n\t render: function render() {\n\t return li({\n\t className: \"ic-token inline-flex\"\n\t }, span({ className: \"ic-token-label\" }, this.props.name), span({\n\t role: 'button',\n\t onClick: this.handleClick,\n\t onFocus: this.props.onFocus,\n\t onKeyDown: this.handleKeyDown,\n\t 'aria-label': this.ariaLabelRemove(),\n\t className: \"ic-token-delete-button\",\n\t tabIndex: 0\n\t }, \"✕\"));\n\t }\n\t});\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar Combobox = React.createFactory(__webpack_require__(1));\n\tvar Token = React.createFactory(__webpack_require__(5));\n\tvar classnames = __webpack_require__(7);\n\t\n\tvar ul = React.DOM.ul;\n\tvar li = React.DOM.li;\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t propTypes: {\n\t isLoading: React.PropTypes.bool,\n\t loadingComponent: React.PropTypes.any,\n\t onFocus: React.PropTypes.func,\n\t onInput: React.PropTypes.func.isRequired,\n\t onSelect: React.PropTypes.func.isRequired,\n\t tokenAriaFunc: React.PropTypes.func,\n\t onRemove: React.PropTypes.func.isRequired,\n\t selected: React.PropTypes.array.isRequired,\n\t menuContent: React.PropTypes.any,\n\t showListOnFocus: React.PropTypes.bool,\n\t placeholder: React.PropTypes.string\n\t },\n\t\n\t getInitialState: function getInitialState() {\n\t return {\n\t selectedToken: null\n\t };\n\t },\n\t\n\t handleClick: function handleClick() {\n\t // TODO: Expand combobox API for focus\n\t this.refs['combo-li'].querySelector('input').focus();\n\t },\n\t\n\t handleFocus: function handleFocus() {\n\t if (this.props.onFocus) {\n\t this.props.onFocus();\n\t }\n\t },\n\t\n\t handleInput: function handleInput(inputValue) {\n\t this.props.onInput(inputValue);\n\t },\n\t\n\t handleSelect: function handleSelect(event, option) {\n\t var input = this.refs['combo-li'].querySelector('input');\n\t this.props.onSelect(event, option);\n\t this.setState({\n\t selectedToken: null\n\t });\n\t this.props.onInput(input.value);\n\t },\n\t\n\t handleRemove: function handleRemove(value) {\n\t var input = this.refs['combo-li'].querySelector('input');\n\t this.props.onRemove(value);\n\t input.focus();\n\t },\n\t\n\t handleRemoveLast: function handleRemoveLast() {\n\t this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n\t },\n\t\n\t render: function render() {\n\t var isDisabled = this.props.isDisabled;\n\t var tokens = this.props.selected.map(function (token) {\n\t return Token({\n\t tokenAriaFunc: this.props.tokenAriaFunc,\n\t onFocus: this.handleFocus,\n\t onRemove: this.handleRemove,\n\t value: token,\n\t name: token.name,\n\t key: token.id });\n\t }.bind(this));\n\t\n\t var classes = classnames('ic-tokens flex', {\n\t 'ic-tokens-disabled': isDisabled\n\t });\n\t\n\t return ul({ className: classes, onClick: this.handleClick }, tokens, li({ className: 'inline-flex', ref: 'combo-li' }, Combobox({\n\t id: this.props.id,\n\t 'aria-label': this.props['combobox-aria-label'],\n\t ariaDisabled: isDisabled,\n\t onFocus: this.handleFocus,\n\t onInput: this.handleInput,\n\t showListOnFocus: this.props.showListOnFocus,\n\t onSelect: this.handleSelect,\n\t onRemoveLast: this.handleRemoveLast,\n\t value: this.state.selectedToken,\n\t isDisabled: isDisabled,\n\t placeholder: this.props.placeholder\n\t }, this.props.menuContent)), this.props.isLoading && li({ className: 'ic-tokeninput-loading flex' }, this.props.loadingComponent));\n\t }\n\t});\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n\t Copyright (c) 2016 Jed Watson.\n\t Licensed under the MIT License (MIT), see\n\t http://jedwatson.github.io/classnames\n\t*/\n\t/* global define */\n\t\n\t(function () {\n\t\t'use strict';\n\t\n\t\tvar hasOwn = {}.hasOwnProperty;\n\t\n\t\tfunction classNames () {\n\t\t\tvar classes = [];\n\t\n\t\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\t\tvar arg = arguments[i];\n\t\t\t\tif (!arg) continue;\n\t\n\t\t\t\tvar argType = typeof arg;\n\t\n\t\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\t\tclasses.push(arg);\n\t\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t\t} else if (argType === 'object') {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\treturn classes.join(' ');\n\t\t}\n\t\n\t\tif (typeof module !== 'undefined' && module.exports) {\n\t\t\tmodule.exports = classNames;\n\t\t} else if (true) {\n\t\t\t// register as 'classnames', consistent with npm package name\n\t\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\t\t\t\treturn classNames;\n\t\t\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t\t} else {\n\t\t\twindow.classNames = classNames;\n\t\t}\n\t}());\n\n\n/***/ })\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// react-tokeninput.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 651662da19b6e0414157","export Combobox from './combobox';\nexport Option from './option';\nexport Token from './token';\nimport main from './main';\n\n/**\n * You can't do an import and then immediately export it :(\n * And `export default TokenInput from './main'` doesn't seem to\n * work either :(\n * So this little variable swapping stuff gets it to work.\n */\nconst TokenInput = main;\nexport default TokenInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var React = require('react');\nvar guid = 0;\nvar k = function(){};\nvar addClass = require('./add-class');\nvar ComboboxOption = require('./option');\n\nvar div = React.createFactory('div');\nvar span = React.createFactory('span');\nvar input = React.createFactory('input');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n onFocus: React.PropTypes.func,\n\n /**\n * Called when the combobox receives user input, this is your chance to\n * filter the data and rerender the options.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onInput: React.PropTypes.func,\n\n /**\n * Called when the combobox receives a selection. You probably want to reset\n * the options to the full list at this point.\n *\n * Signature:\n *\n * ```js\n * function(selectedValue){}\n * ```\n */\n onSelect: React.PropTypes.func,\n\n /**\n * Shown when the combobox is empty.\n */\n placeholder: React.PropTypes.string\n },\n\n getDefaultProps: function() {\n return {\n autocomplete: 'both',\n onFocus: k,\n onInput: k,\n onSelect: k,\n value: null,\n showListOnFocus: false\n };\n },\n\n getInitialState: function() {\n return {\n value: this.props.value,\n // the value displayed in the input\n inputValue: this.findInitialInputValue(),\n isOpen: false,\n focusedIndex: null,\n matchedAutocompleteOption: null,\n // this prevents crazy jumpiness since we focus options on mouseenter\n usingKeyboard: false,\n activedescendant: null,\n listId: 'ic-tokeninput-list-'+(++guid),\n menu: {\n children: [],\n activedescendant: null,\n isEmpty: true\n }\n };\n },\n\n componentWillMount: function() {\n this.setState({menu: this.makeMenu(this.props.children)});\n },\n\n componentWillReceiveProps: function(newProps) {\n this.setState({menu: this.makeMenu(newProps.children)}, function() {\n if(newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({\n isOpen: true\n }, function() {\n this.refs.list.scrollTop = 0;\n }.bind(this))\n } else {\n this.hideList();\n }\n\n }.bind(this));\n },\n\n /**\n * We don't create the components, the user supplies them,\n * so before rendering we attach handlers to facilitate communication from\n * the ComboboxOption to the Combobox.\n */\n makeMenu: function(children) {\n var activedescendant;\n var isEmpty = true;\n\n // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n var _children = React.Children.map(children, function(child, index) {\n // console.log(child.type, ComboboxOption.type)\n if (child.type !== ComboboxOption || !child.props.isFocusable) {\n // allow random elements to live in this list\n return child;\n }\n isEmpty = false;\n // TODO: cloneWithProps and map instead of altering the children in-place\n var props = child.props;\n var newProps = {};\n if (this.state.value === child.props.value) {\n // need an ID for WAI-ARIA\n newProps.id = props.id || 'ic-tokeninput-selected-'+(++guid);\n newProps.isSelected = true\n activedescendant = props.id;\n }\n newProps.onBlur = this.handleOptionBlur;\n newProps.onClick = this.selectOption.bind(this, child);\n newProps.onFocus = this.handleOptionFocus;\n newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n\n return React.cloneElement(child, newProps);\n }.bind(this));\n\n return {\n children: _children,\n activedescendant: activedescendant,\n isEmpty: isEmpty\n };\n },\n\n getClassName: function() {\n var className = addClass(this.props.className, 'ic-tokeninput');\n if (this.state.isOpen)\n className = addClass(className, 'ic-tokeninput-is-open');\n return className;\n },\n\n /**\n * When the user begins typing again we need to clear out any state that has\n * to do with an existing or potential selection.\n */\n clearSelectedState: function(cb) {\n this.setState({\n focusedIndex: null,\n inputValue: null,\n value: null,\n matchedAutocompleteOption: null,\n activedescendant: null\n }, cb);\n },\n\n handleInputChange: function() {\n var value = this.refs.input.value;\n this.clearSelectedState(function() {\n this.props.onInput(value);\n }.bind(this));\n },\n\n handleInputFocus: function() {\n this.props.onFocus();\n this.maybeShowList();\n },\n\n handleInputClick: function() {\n this.maybeShowList();\n },\n\n maybeShowList: function(){\n if (this.props.showListOnFocus){\n this.showList()\n }\n },\n\n handleInputBlur: function() {\n var focusedAnOption = this.state.focusedIndex != null;\n if (focusedAnOption)\n return;\n this.maybeSelectAutocompletedOption();\n this.hideList();\n },\n\n handleOptionBlur: function() {\n // don't want to hide the list if we focused another option\n this.blurTimer = setTimeout(this.hideList, 0);\n },\n\n\n handleOptionFocus: function() {\n // see `handleOptionBlur`\n clearTimeout(this.blurTimer);\n },\n\n handleInputKeyUp: function(event) {\n if (\n this.state.menu.isEmpty ||\n // autocompleting while backspacing feels super weird, so let's not\n event.keyCode === 8 /*backspace*/ ||\n !this.props.autocomplete.match(/both|inline/)\n ) return;\n },\n\n handleButtonClick: function() {\n this.state.isOpen ? this.hideList() : this.showList();\n this.focusInput();\n },\n\n showList: function() {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({isOpen: true})\n },\n\n hideList: function() {\n this.setState({\n isOpen: false,\n focusedIndex: null\n });\n },\n\n hideOnEscape: function(event) {\n this.hideList();\n this.focusInput();\n event.preventDefault();\n },\n\n focusInput: function() {\n this.refs.input.focus();\n },\n\n selectInput: function() {\n this.refs.input.select();\n },\n\n inputKeydownMap: {\n 8: 'removeLastToken', // delete\n 13: 'selectOnEnter', // enter\n 188: 'selectOnEnter', // comma\n 27: 'hideOnEscape', // escape\n 38: 'focusPrevious', // up arrow\n 40: 'focusNext' // down arrow\n },\n\n optionKeydownMap: {\n 13: 'selectOption',\n 27: 'hideOnEscape',\n 38: 'focusPrevious',\n 40: 'focusNext'\n },\n\n handleKeydown: function(event) {\n var handlerName = this.inputKeydownMap[event.keyCode];\n if (!handlerName)\n return\n this.setState({usingKeyboard: true});\n return this[handlerName].call(this,event);\n },\n\n handleOptionKeyDown: function(child, event) {\n var handlerName = this.optionKeydownMap[event.keyCode];\n if (!handlerName) {\n // if the user starts typing again while focused on an option, move focus\n // to the inpute, select so it wipes out any existing value\n this.selectInput();\n return;\n }\n event.preventDefault();\n this.setState({usingKeyboard: true});\n this[handlerName].call(this, child);\n },\n\n handleOptionMouseEnter: function(index) {\n if (this.state.usingKeyboard)\n this.setState({usingKeyboard: false});\n else\n this.focusOptionAtIndex(index);\n },\n\n selectOnEnter: function(event) {\n event.preventDefault();\n this.maybeSelectAutocompletedOption()\n },\n\n maybeSelectAutocompletedOption: function() {\n if (!this.state.matchedAutocompleteOption) {\n this.selectText()\n } else {\n this.selectOption(this.state.matchedAutocompleteOption, {focus: false});\n }\n },\n\n selectOption: function(child, options) {\n options = options || {};\n this.setState({\n // value: child.props.value,\n // inputValue: getLabel(child),\n matchedAutocompleteOption: null\n }, function() {\n this.props.onSelect(child.props.value, child);\n this.hideList();\n this.clearSelectedState(); // added\n if (options.focus !== false)\n this.selectInput();\n }.bind(this));\n this.refs.input.value = '' // added\n },\n\n selectText: function() {\n var value = this.refs.input.value;\n if(!value) return;\n this.props.onSelect(value);\n this.clearSelectedState();\n this.refs.input.value = '' // added\n },\n\n focusNext: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.nextFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n removeLastToken: function() {\n if(this.props.onRemoveLast && !this.refs.input.value) {\n this.props.onRemoveLast()\n }\n return true\n },\n\n focusPrevious: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.previousFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n focusSelectedOption: function() {\n var selectedIndex;\n React.Children.forEach(this.props.children, function(child, index) {\n if (child.props.value === this.state.value)\n selectedIndex = index;\n }.bind(this));\n this.showList();\n this.setState({\n focusedIndex: selectedIndex\n }, this.focusOption);\n },\n\n findInitialInputValue: function() {\n // TODO: might not need this, we should know this in `makeMenu`\n var inputValue;\n React.Children.forEach(this.props.children, function(child) {\n if (child.props.value === this.props.value)\n inputValue = getLabel(child);\n }.bind(this));\n return inputValue;\n },\n\n clampIndex: function(index) {\n if (index < 0) {\n return this.props.children.length - 1\n } else if (index >= this.props.children.length) {\n return 0\n }\n return index\n },\n\n scanForFocusableIndex: function(index, increment) {\n if (index === null || index === undefined) {\n index = increment > 0 ? this.clampIndex(-1) : 0\n }\n var newIndex = index\n while (true) {\n newIndex = this.clampIndex(newIndex + increment)\n if (newIndex === index ||\n this.props.children[newIndex].props.isFocusable)\n {\n return newIndex\n }\n }\n },\n\n nextFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, 1)\n },\n\n previousFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, -1)\n },\n\n focusOptionAtIndex: function(index) {\n if (!this.state.isOpen && this.state.value)\n return this.focusSelectedOption();\n this.showList();\n var length = this.props.children.length;\n if (index === -1)\n index = length - 1;\n else if (index === length)\n index = 0;\n this.setState({\n focusedIndex: index\n }, this.focusOption);\n },\n\n focusOption: function() {\n var index = this.state.focusedIndex;\n this.refs.list.childNodes[index].focus();\n },\n\n render: function() {\n var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' +\n 'Press the down arrow to navigate results. If you don\\'t find an ' +\n 'acceptable option, you can input an alternative. Once you find or ' +\n 'input the tag you want, press Enter or Comma to add it.'\n\n return div({className: this.getClassName()},\n this.props.value,\n this.state.inputValue,\n input({\n ref: 'input',\n autoComplete: 'off',\n spellCheck: 'false',\n 'aria-label': ariaLabel,\n 'aria-expanded': this.state.isOpen+'',\n 'aria-haspopup': 'true',\n 'aria-activedescendant': this.state.menu.activedescendant,\n 'aria-autocomplete': 'list',\n 'aria-owns': this.state.listId,\n id: this.props.id,\n disabled: this.props.isDisabled,\n className: 'ic-tokeninput-input',\n onFocus: this.handleInputFocus,\n onClick: this.handleInputClick,\n onChange: this.handleInputChange,\n onBlur: this.handleInputBlur,\n onKeyDown: this.handleKeydown,\n onKeyUp: this.handleInputKeyUp,\n placeholder: this.props.placeholder,\n role: 'combobox'\n }),\n span({\n 'aria-hidden': 'true',\n className: 'ic-tokeninput-button',\n onClick: this.handleButtonClick\n }, '▾'),\n div({\n id: this.state.listId,\n ref: 'list',\n className: 'ic-tokeninput-list',\n role: 'listbox'\n }, this.state.menu.children)\n );\n }\n});\n\nfunction getLabel(component) {\n return component.props.label || component.props.children;\n}\n\nfunction matchFragment(userInput, firstChildLabel) {\n userInput = userInput.toLowerCase();\n firstChildLabel = firstChildLabel.toLowerCase();\n if (userInput === '' || userInput === firstChildLabel)\n return false;\n if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1)\n return false;\n return true;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/combobox.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 2\n// module chunks = 0 1","module.exports = addClass;\n\nfunction addClass(existing, added) {\n if (!existing) return added;\n if (existing.indexOf(added) > -1) return existing;\n return existing + ' ' + added;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/add-class.js","var React = require('react');\nvar addClass = require('./add-class');\nvar div = React.createFactory('div');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n\n /**\n * The value that will be sent to the `onSelect` handler of the\n * parent Combobox.\n */\n value: React.PropTypes.any.isRequired,\n\n /**\n * What value to put into the input element when this option is\n * selected, defaults to its children coerced to a string.\n */\n label: React.PropTypes.string,\n\n /**\n * Whether the element should be selectable\n */\n isFocusable: React.PropTypes.bool\n },\n\n getDefaultProps: function() {\n return {\n role: 'option',\n tabIndex: '-1',\n className: 'ic-tokeninput-option',\n isSelected: false,\n isFocusable: true\n };\n },\n\n render: function() {\n var props = this.props;\n if (props.isSelected) {\n props.className = addClass(props.className, 'ic-tokeninput-selected');\n props.ariaSelected = true;\n }\n return div(props);\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/option.js","var React = require('react');\nvar span = React.DOM.span;\nvar li = React.createFactory('li');\n\nmodule.exports = React.createClass({\n handleClick: function() {\n this.props.onRemove(this.props.value)\n },\n\n handleKeyDown: function(key) {\n var enterKey = 13;\n if(key.keyCode === enterKey) this.props.onRemove(this.props.value)\n },\n\n ariaLabelRemove: function ariaLabelRemove() {\n return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) :\n 'Remove \\'' + this.props.name + '\\'';\n },\n\n render: function() {\n return (\n li({\n className: \"ic-token inline-flex\"\n },\n span({className: \"ic-token-label\"}, this.props.name),\n span({\n role: 'button',\n onClick: this.handleClick,\n onFocus: this.props.onFocus,\n onKeyDown: this.handleKeyDown,\n 'aria-label': this.ariaLabelRemove(),\n className: \"ic-token-delete-button\",\n tabIndex: 0\n }, \"✕\")\n )\n )\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/token.js","var React = require('react');\nvar Combobox = React.createFactory(require('./combobox'));\nvar Token = React.createFactory(require('./token'));\nvar classnames = require('classnames');\n\nvar ul = React.DOM.ul;\nvar li = React.DOM.li;\n\nmodule.exports = React.createClass({\n propTypes: {\n isLoading: React.PropTypes.bool,\n loadingComponent: React.PropTypes.any,\n onFocus: React.PropTypes.func,\n onInput: React.PropTypes.func.isRequired,\n onSelect: React.PropTypes.func.isRequired,\n tokenAriaFunc: React.PropTypes.func,\n onRemove: React.PropTypes.func.isRequired,\n selected: React.PropTypes.array.isRequired,\n menuContent: React.PropTypes.any,\n showListOnFocus: React.PropTypes.bool,\n placeholder: React.PropTypes.string\n },\n\n getInitialState: function() {\n return {\n selectedToken: null\n };\n },\n\n handleClick: function() {\n // TODO: Expand combobox API for focus\n this.refs['combo-li'].querySelector('input').focus();\n },\n\n handleFocus: function() {\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n },\n\n handleInput: function(inputValue) {\n this.props.onInput(inputValue);\n },\n\n handleSelect: function(event, option) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onSelect(event, option)\n this.setState({\n selectedToken: null\n })\n this.props.onInput(input.value);\n },\n\n handleRemove: function(value) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onRemove(value);\n input.focus();\n },\n\n handleRemoveLast: function() {\n this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n },\n\n render: function() {\n var isDisabled = this.props.isDisabled;\n var tokens = this.props.selected.map(function(token) {\n return (\n Token({\n tokenAriaFunc: this.props.tokenAriaFunc,\n onFocus: this.handleFocus,\n onRemove: this.handleRemove,\n value: token,\n name: token.name,\n key: token.id})\n )\n }.bind(this))\n\n var classes = classnames('ic-tokens flex', {\n 'ic-tokens-disabled': isDisabled\n });\n\n return ul({className: classes, onClick: this.handleClick},\n tokens,\n li({className: 'inline-flex', ref: 'combo-li'},\n Combobox({\n id: this.props.id,\n 'aria-label': this.props['combobox-aria-label'],\n ariaDisabled: isDisabled,\n onFocus: this.handleFocus,\n onInput: this.handleInput,\n showListOnFocus: this.props.showListOnFocus,\n onSelect: this.handleSelect,\n onRemoveLast: this.handleRemoveLast,\n value: this.state.selectedToken,\n isDisabled: isDisabled,\n placeholder: this.props.placeholder\n },\n this.props.menuContent\n )\n ),\n this.props.isLoading && li({className: 'ic-tokeninput-loading flex'}, this.props.loadingComponent)\n );\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 7\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6","webpack:///react-tokeninput.min.js","webpack:///webpack/bootstrap eb8edd8a57dd140a3260?cdce","webpack:///./src/index.js?9552","webpack:///./src/combobox.js?fdf1","webpack:///external \"react\"?3c62","webpack:///./src/add-class.js?a8a9","webpack:///./src/option.js?9ff5","webpack:///./~/object.omit/index.js?7a1a","webpack:///./~/is-extendable/index.js?f1f6","webpack:///./~/for-own/index.js?9374","webpack:///./~/for-in/index.js?acef","webpack:///./src/token.js?3924","webpack:///./src/main.js?3479","webpack:///./~/classnames/index.js?8e43"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_2__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","Object","defineProperty","value","Token","Option","Combobox","undefined","_combobox","_combobox2","_option","_option2","_token","_token2","_main","_main2","TokenInput","getLabel","component","props","label","children","React","guid","k","addClass","ComboboxOption","div","createFactory","span","input","createClass","displayName","propTypes","onFocus","PropTypes","func","onBlur","onInput","onSelect","placeholder","string","getDefaultProps","autocomplete","showListOnFocus","getInitialState","inputValue","findInitialInputValue","isOpen","focusedIndex","matchedAutocompleteOption","usingKeyboard","activedescendant","listId","menu","isEmpty","componentWillMount","setState","makeMenu","componentWillReceiveProps","newProps","length","document","activeElement","refs","state","list","scrollTop","bind","hideList","_children","Children","map","child","index","type","isFocusable","isSelected","handleOptionBlur","onClick","selectOption","handleOptionFocus","onKeyDown","handleOptionKeyDown","onMouseEnter","handleOptionMouseEnter","cloneElement","getClassName","className","clearSelectedState","cb","handleInputChange","handleInputFocus","maybeShowList","handleInputClick","showList","handleInputBlur","focusedAnOption","maybeSelectAutocompletedOption","blurTimer","setTimeout","clearTimeout","handleInputKeyUp","event","keyCode","match","handleButtonClick","focusInput","hideOnEscape","preventDefault","focus","selectInput","select","inputKeydownMap","8","13","188","27","38","40","optionKeydownMap","handleKeydown","handlerName","focusOptionAtIndex","selectOnEnter","selectText","options","focusNext","nextFocusableIndex","removeLastToken","onRemoveLast","focusPrevious","previousFocusableIndex","focusSelectedOption","selectedIndex","forEach","focusOption","clampIndex","scanForFocusableIndex","increment","newIndex","childNodes","render","ariaLabel","ref","autoComplete","spellCheck","aria-label","aria-expanded","aria-haspopup","aria-activedescendant","aria-autocomplete","aria-owns","disabled","isDisabled","onChange","onKeyUp","role","aria-hidden","existing","added","indexOf","omit","any","isRequired","bool","tabIndex","ariaSelected","isObject","forOwn","keys","concat","apply","slice","arguments","fn","last","res","pop","isFunction","key","val","forIn","hasOwn","prototype","hasOwnProperty","thisArg","DOM","li","handleClick","onRemove","handleKeyDown","enterKey","ariaLabelRemove","tokenAriaFunc","name","classnames","ul","isLoading","loadingComponent","selected","array","menuContent","selectedToken","querySelector","handleFocus","handleBlur","handleInput","handleSelect","option","handleRemove","handleRemoveLast","tokens","token","classes","ic-tokens-disabled","ariaDisabled","__WEBPACK_AMD_DEFINE_ARRAY__","__WEBPACK_AMD_DEFINE_RESULT__","classNames","i","arg","argType","push","Array","isArray","join"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,UACA,kBAAAC,gBAAAC,IACAD,QAAA,SAAAJ,GACA,gBAAAC,SACAA,QAAA,WAAAD,EAAAG,QAAA,UAEAJ,EAAA,WAAAC,EAAAD,EAAA,QACCO,KAAA,SAAAC,GACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAT,OAGA,IAAAC,GAAAS,EAAAD,IACAT,WACAW,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAZ,EAAAD,QAAAC,IAAAD,QAAAQ,GAGAP,EAAAW,QAAA,EAGAX,EAAAD,QAvBA,GAAAU,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,IAGAR,EAAA,KDgBM,SAAUP,EAAQD,EAASQ,GAEhC,YAuBA,SAASS,GAAuBC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,QAASF,GArBvFG,OAAOC,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avD,KAAKkC,MAAMqB,aAExBvD,KAAKkC,MAAMuL,cAGfzN,KAAKkC,MAAMmL,WAAaV,GAAIpG,UAAW,8BAA+BvG,KAAKkC,MAAMoL,uBZ2yBjF,SAAU1N,EAAQD,EAASQ,Gav5BjC,GAAAqO,GAAAC;;;;;CAOA,WACA,YAIA,SAAAC,KAGA,OAFAL,MAEAM,EAAA,EAAiBA,EAAA9C,UAAAjH,OAAsB+J,IAAA,CACvC,GAAAC,GAAA/C,UAAA8C,EACA,IAAAC,EAAA,CAEA,GAAAC,SAAAD,EAEA,eAAAC,GAAA,WAAAA,EACAR,EAAAS,KAAAF,OACI,IAAAG,MAAAC,QAAAJ,GACJP,EAAAS,KAAAJ,EAAA/C,MAAA,KAAAiD,QACI,eAAAC,EACJ,OAAA1C,KAAAyC,GACAtC,EAAA9L,KAAAoO,EAAAzC,IAAAyC,EAAAzC,IACAkC,EAAAS,KAAA3C,IAMA,MAAAkC,GAAAY,KAAA,KAxBA,GAAA3C,MAAgBE,cA2BhB,oBAAA5M,MAAAD,QACAC,EAAAD,QAAA+O,GAGAF,KAAAC,EAAA,WACA,MAAAC,IACG/C,MAAAhM,EAAA6O,KAAAlN,SAAAmN,IAAA7O,EAAAD,QAAA8O","file":"react-tokeninput.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Token = exports.Option = exports.Combobox = undefined;\n\t\n\tvar _combobox = __webpack_require__(1);\n\t\n\tvar _combobox2 = _interopRequireDefault(_combobox);\n\t\n\tvar _option = __webpack_require__(4);\n\t\n\tvar _option2 = _interopRequireDefault(_option);\n\t\n\tvar _token = __webpack_require__(9);\n\t\n\tvar _token2 = _interopRequireDefault(_token);\n\t\n\tvar _main = __webpack_require__(10);\n\t\n\tvar _main2 = _interopRequireDefault(_main);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.Combobox = _combobox2.default;\n\texports.Option = _option2.default;\n\texports.Token = _token2.default;\n\t\n\t\n\t/**\n\t * You can't do an import and then immediately export it :(\n\t * And `export default TokenInput from './main'` doesn't seem to\n\t * work either :(\n\t * So this little variable swapping stuff gets it to work.\n\t */\n\tvar TokenInput = _main2.default;\n\texports.default = TokenInput;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar guid = 0;\n\tvar k = function k() {};\n\tvar addClass = __webpack_require__(3);\n\tvar ComboboxOption = __webpack_require__(4);\n\t\n\tvar div = React.createFactory('div');\n\tvar span = React.createFactory('span');\n\tvar input = React.createFactory('input');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t\n\t propTypes: {\n\t /**\n\t * Called when the combobox's input receives focus and the user begins interacting with it.\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(userInput){}\n\t * ```\n\t */\n\t onFocus: React.PropTypes.func,\n\t\n\t /**\n\t * Called when the combobox's input loses focus after being activated for user input\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(userInput){}\n\t * ```\n\t */\n\t onBlur: React.PropTypes.func,\n\t\n\t /**\n\t * Called when the combobox receives user input, this is your chance to\n\t * filter the data and rerender the options.\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(userInput){}\n\t * ```\n\t */\n\t onInput: React.PropTypes.func,\n\t\n\t /**\n\t * Called when the combobox receives a selection. You probably want to reset\n\t * the options to the full list at this point.\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(selectedValue){}\n\t * ```\n\t */\n\t onSelect: React.PropTypes.func,\n\t\n\t /**\n\t * Shown when the combobox is empty.\n\t */\n\t placeholder: React.PropTypes.string\n\t },\n\t\n\t getDefaultProps: function getDefaultProps() {\n\t return {\n\t autocomplete: 'both',\n\t onFocus: k,\n\t onBlur: k,\n\t onInput: k,\n\t onSelect: k,\n\t value: null,\n\t showListOnFocus: false\n\t };\n\t },\n\t\n\t getInitialState: function getInitialState() {\n\t return {\n\t value: this.props.value,\n\t // the value displayed in the input\n\t inputValue: this.findInitialInputValue(),\n\t isOpen: false,\n\t focusedIndex: null,\n\t matchedAutocompleteOption: null,\n\t // this prevents crazy jumpiness since we focus options on mouseenter\n\t usingKeyboard: false,\n\t activedescendant: null,\n\t listId: 'ic-tokeninput-list-' + ++guid,\n\t menu: {\n\t children: [],\n\t activedescendant: null,\n\t isEmpty: true\n\t }\n\t };\n\t },\n\t\n\t componentWillMount: function componentWillMount() {\n\t this.setState({ menu: this.makeMenu(this.props.children) });\n\t },\n\t\n\t componentWillReceiveProps: function componentWillReceiveProps(newProps) {\n\t this.setState({ menu: this.makeMenu(newProps.children) }, function () {\n\t if (newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n\t if (!this.state.menu.children.length) {\n\t return;\n\t }\n\t this.setState({\n\t isOpen: true\n\t }, function () {\n\t this.refs.list.scrollTop = 0;\n\t }.bind(this));\n\t } else {\n\t this.hideList();\n\t }\n\t }.bind(this));\n\t },\n\t\n\t /**\n\t * We don't create the components, the user supplies them,\n\t * so before rendering we attach handlers to facilitate communication from\n\t * the ComboboxOption to the Combobox.\n\t */\n\t makeMenu: function makeMenu(children) {\n\t var activedescendant;\n\t var isEmpty = true;\n\t\n\t // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n\t var _children = React.Children.map(children, function (child, index) {\n\t // console.log(child.type, ComboboxOption.type)\n\t if (child.type !== ComboboxOption || !child.props.isFocusable) {\n\t // allow random elements to live in this list\n\t return child;\n\t }\n\t isEmpty = false;\n\t // TODO: cloneWithProps and map instead of altering the children in-place\n\t var props = child.props;\n\t var newProps = {};\n\t if (this.state.value === child.props.value) {\n\t // need an ID for WAI-ARIA\n\t newProps.id = props.id || 'ic-tokeninput-selected-' + ++guid;\n\t newProps.isSelected = true;\n\t activedescendant = props.id;\n\t }\n\t newProps.onBlur = this.handleOptionBlur;\n\t newProps.onClick = this.selectOption.bind(this, child);\n\t newProps.onFocus = this.handleOptionFocus;\n\t newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n\t newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n\t\n\t return React.cloneElement(child, newProps);\n\t }.bind(this));\n\t\n\t return {\n\t children: _children,\n\t activedescendant: activedescendant,\n\t isEmpty: isEmpty\n\t };\n\t },\n\t\n\t getClassName: function getClassName() {\n\t var className = addClass(this.props.className, 'ic-tokeninput');\n\t if (this.state.isOpen) className = addClass(className, 'ic-tokeninput-is-open');\n\t return className;\n\t },\n\t\n\t /**\n\t * When the user begins typing again we need to clear out any state that has\n\t * to do with an existing or potential selection.\n\t */\n\t clearSelectedState: function clearSelectedState(cb) {\n\t this.setState({\n\t focusedIndex: null,\n\t inputValue: null,\n\t value: null,\n\t matchedAutocompleteOption: null,\n\t activedescendant: null\n\t }, cb);\n\t },\n\t\n\t handleInputChange: function handleInputChange() {\n\t var value = this.refs.input.value;\n\t this.clearSelectedState(function () {\n\t this.props.onInput(value);\n\t }.bind(this));\n\t },\n\t\n\t handleInputFocus: function handleInputFocus() {\n\t this.props.onFocus();\n\t this.maybeShowList();\n\t },\n\t\n\t handleInputClick: function handleInputClick() {\n\t this.maybeShowList();\n\t },\n\t\n\t maybeShowList: function maybeShowList() {\n\t if (this.props.showListOnFocus) {\n\t this.showList();\n\t }\n\t },\n\t\n\t handleInputBlur: function handleInputBlur() {\n\t var focusedAnOption = this.state.focusedIndex != null;\n\t if (focusedAnOption) return;\n\t this.maybeSelectAutocompletedOption();\n\t this.hideList();\n\t this.props.onBlur();\n\t },\n\t\n\t handleOptionBlur: function handleOptionBlur() {\n\t // don't want to hide the list if we focused another option\n\t this.blurTimer = setTimeout(this.hideList, 0);\n\t },\n\t\n\t handleOptionFocus: function handleOptionFocus() {\n\t // see `handleOptionBlur`\n\t clearTimeout(this.blurTimer);\n\t },\n\t\n\t handleInputKeyUp: function handleInputKeyUp(event) {\n\t if (this.state.menu.isEmpty ||\n\t // autocompleting while backspacing feels super weird, so let's not\n\t event.keyCode === 8 /*backspace*/ || !this.props.autocomplete.match(/both|inline/)) return;\n\t },\n\t\n\t handleButtonClick: function handleButtonClick() {\n\t this.state.isOpen ? this.hideList() : this.showList();\n\t this.focusInput();\n\t },\n\t\n\t showList: function showList() {\n\t if (!this.state.menu.children.length) {\n\t return;\n\t }\n\t this.setState({ isOpen: true });\n\t },\n\t\n\t hideList: function hideList() {\n\t this.setState({\n\t isOpen: false,\n\t focusedIndex: null\n\t });\n\t },\n\t\n\t hideOnEscape: function hideOnEscape(event) {\n\t this.hideList();\n\t this.focusInput();\n\t event.preventDefault();\n\t },\n\t\n\t focusInput: function focusInput() {\n\t this.refs.input.focus();\n\t },\n\t\n\t selectInput: function selectInput() {\n\t this.refs.input.select();\n\t },\n\t\n\t inputKeydownMap: {\n\t 8: 'removeLastToken', // delete\n\t 13: 'selectOnEnter', // enter\n\t 188: 'selectOnEnter', // comma\n\t 27: 'hideOnEscape', // escape\n\t 38: 'focusPrevious', // up arrow\n\t 40: 'focusNext' // down arrow\n\t },\n\t\n\t optionKeydownMap: {\n\t 13: 'selectOption',\n\t 27: 'hideOnEscape',\n\t 38: 'focusPrevious',\n\t 40: 'focusNext'\n\t },\n\t\n\t handleKeydown: function handleKeydown(event) {\n\t var handlerName = this.inputKeydownMap[event.keyCode];\n\t if (!handlerName) return;\n\t this.setState({ usingKeyboard: true });\n\t return this[handlerName].call(this, event);\n\t },\n\t\n\t handleOptionKeyDown: function handleOptionKeyDown(child, event) {\n\t var handlerName = this.optionKeydownMap[event.keyCode];\n\t if (!handlerName) {\n\t // if the user starts typing again while focused on an option, move focus\n\t // to the inpute, select so it wipes out any existing value\n\t this.selectInput();\n\t return;\n\t }\n\t event.preventDefault();\n\t this.setState({ usingKeyboard: true });\n\t this[handlerName].call(this, child);\n\t },\n\t\n\t handleOptionMouseEnter: function handleOptionMouseEnter(index) {\n\t if (this.state.usingKeyboard) {\n\t this.setState({ usingKeyboard: false });\n\t }\n\t\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t selectOnEnter: function selectOnEnter(event) {\n\t event.preventDefault();\n\t this.maybeSelectAutocompletedOption();\n\t },\n\t\n\t maybeSelectAutocompletedOption: function maybeSelectAutocompletedOption() {\n\t if (!this.state.matchedAutocompleteOption) {\n\t this.selectText();\n\t } else {\n\t this.selectOption(this.state.matchedAutocompleteOption, { focus: false });\n\t }\n\t },\n\t\n\t selectOption: function selectOption(child, options) {\n\t options = options || {};\n\t this.setState({\n\t // value: child.props.value,\n\t // inputValue: getLabel(child),\n\t matchedAutocompleteOption: null\n\t }, function () {\n\t this.props.onSelect(child.props.value, child);\n\t this.hideList();\n\t this.clearSelectedState(); // added\n\t if (options.focus !== false) this.selectInput();\n\t }.bind(this));\n\t this.refs.input.value = ''; // added\n\t },\n\t\n\t selectText: function selectText() {\n\t var value = this.refs.input.value;\n\t if (!value) return;\n\t this.props.onSelect(value);\n\t this.clearSelectedState();\n\t this.refs.input.value = ''; // added\n\t },\n\t\n\t focusNext: function focusNext(event) {\n\t if (event.preventDefault) event.preventDefault();\n\t if (this.state.menu.isEmpty) return;\n\t var index = this.nextFocusableIndex(this.state.focusedIndex);\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t removeLastToken: function removeLastToken() {\n\t if (this.props.onRemoveLast && !this.refs.input.value) {\n\t this.props.onRemoveLast();\n\t }\n\t return true;\n\t },\n\t\n\t focusPrevious: function focusPrevious(event) {\n\t if (event.preventDefault) event.preventDefault();\n\t if (this.state.menu.isEmpty) return;\n\t var index = this.previousFocusableIndex(this.state.focusedIndex);\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t focusSelectedOption: function focusSelectedOption() {\n\t var selectedIndex;\n\t React.Children.forEach(this.props.children, function (child, index) {\n\t if (child.props.value === this.state.value) selectedIndex = index;\n\t }.bind(this));\n\t this.showList();\n\t this.setState({\n\t focusedIndex: selectedIndex\n\t }, this.focusOption);\n\t },\n\t\n\t findInitialInputValue: function findInitialInputValue() {\n\t // TODO: might not need this, we should know this in `makeMenu`\n\t var inputValue;\n\t React.Children.forEach(this.props.children, function (child) {\n\t if (child.props.value === this.props.value) inputValue = getLabel(child);\n\t }.bind(this));\n\t return inputValue;\n\t },\n\t\n\t clampIndex: function clampIndex(index) {\n\t if (index < 0) {\n\t return this.props.children.length - 1;\n\t } else if (index >= this.props.children.length) {\n\t return 0;\n\t }\n\t return index;\n\t },\n\t\n\t scanForFocusableIndex: function scanForFocusableIndex(index, increment) {\n\t if (index === null || index === undefined) {\n\t index = increment > 0 ? this.clampIndex(-1) : 0;\n\t }\n\t var newIndex = index;\n\t while (true) {\n\t newIndex = this.clampIndex(newIndex + increment);\n\t if (newIndex === index || this.props.children[newIndex].props.isFocusable) {\n\t return newIndex;\n\t }\n\t }\n\t },\n\t\n\t nextFocusableIndex: function nextFocusableIndex(index) {\n\t return this.scanForFocusableIndex(index, 1);\n\t },\n\t\n\t previousFocusableIndex: function previousFocusableIndex(index) {\n\t return this.scanForFocusableIndex(index, -1);\n\t },\n\t\n\t focusOptionAtIndex: function focusOptionAtIndex(index) {\n\t if (!this.state.isOpen && this.state.value) return this.focusSelectedOption();\n\t this.showList();\n\t var length = this.props.children.length;\n\t if (index === -1) index = length - 1;else if (index === length) index = 0;\n\t this.setState({\n\t focusedIndex: index\n\t }, this.focusOption);\n\t },\n\t\n\t focusOption: function focusOption() {\n\t var index = this.state.focusedIndex;\n\t this.refs.list.childNodes[index].focus();\n\t },\n\t\n\t render: function render() {\n\t var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' + 'Press the down arrow to navigate results. If you don\\'t find an ' + 'acceptable option, you can input an alternative. Once you find or ' + 'input the tag you want, press Enter or Comma to add it.';\n\t\n\t return div({ className: this.getClassName() }, this.props.value, this.state.inputValue, input({\n\t ref: 'input',\n\t autoComplete: 'off',\n\t spellCheck: 'false',\n\t 'aria-label': ariaLabel,\n\t 'aria-expanded': this.state.isOpen + '',\n\t 'aria-haspopup': 'true',\n\t 'aria-activedescendant': this.state.menu.activedescendant,\n\t 'aria-autocomplete': 'list',\n\t 'aria-owns': this.state.listId,\n\t id: this.props.id,\n\t disabled: this.props.isDisabled,\n\t className: 'ic-tokeninput-input',\n\t onFocus: this.handleInputFocus,\n\t onClick: this.handleInputClick,\n\t onChange: this.handleInputChange,\n\t onBlur: this.handleInputBlur,\n\t onKeyDown: this.handleKeydown,\n\t onKeyUp: this.handleInputKeyUp,\n\t placeholder: this.props.placeholder,\n\t role: 'combobox'\n\t }), span({\n\t 'aria-hidden': 'true',\n\t className: 'ic-tokeninput-button',\n\t onClick: this.handleButtonClick\n\t }, '▾'), div({\n\t id: this.state.listId,\n\t ref: 'list',\n\t className: 'ic-tokeninput-list',\n\t role: 'listbox'\n\t }, this.state.menu.children));\n\t }\n\t});\n\t\n\tfunction getLabel(component) {\n\t return component.props.label || component.props.children;\n\t}\n\t\n\tfunction matchFragment(userInput, firstChildLabel) {\n\t userInput = userInput.toLowerCase();\n\t firstChildLabel = firstChildLabel.toLowerCase();\n\t if (userInput === '' || userInput === firstChildLabel) return false;\n\t if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1) return false;\n\t return true;\n\t}\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = addClass;\n\t\n\tfunction addClass(existing, added) {\n\t if (!existing) return added;\n\t if (existing.indexOf(added) > -1) return existing;\n\t return existing + ' ' + added;\n\t}\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar addClass = __webpack_require__(3);\n\tvar omit = __webpack_require__(5);\n\tvar div = React.createFactory('div');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t\n\t propTypes: {\n\t\n\t /**\n\t * The value that will be sent to the `onSelect` handler of the\n\t * parent Combobox.\n\t */\n\t value: React.PropTypes.any.isRequired,\n\t\n\t /**\n\t * What value to put into the input element when this option is\n\t * selected, defaults to its children coerced to a string.\n\t */\n\t label: React.PropTypes.string,\n\t\n\t /**\n\t * Whether the element should be selectable\n\t */\n\t isFocusable: React.PropTypes.bool\n\t },\n\t\n\t getDefaultProps: function getDefaultProps() {\n\t return {\n\t role: 'option',\n\t tabIndex: '-1',\n\t className: 'ic-tokeninput-option',\n\t isSelected: false,\n\t isFocusable: true\n\t };\n\t },\n\t\n\t render: function render() {\n\t var props = this.props;\n\t if (props.isSelected) {\n\t props.className = addClass(props.className, 'ic-tokeninput-selected');\n\t props.ariaSelected = true;\n\t }\n\t return div(omit(props, ['isSelected', 'isFocusable']));\n\t }\n\t\n\t});\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/*!\n\t * object.omit \n\t *\n\t * Copyright (c) 2014-2015, Jon Schlinkert.\n\t * Licensed under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tvar isObject = __webpack_require__(6);\n\tvar forOwn = __webpack_require__(7);\n\t\n\tmodule.exports = function omit(obj, keys) {\n\t if (!isObject(obj)) return {};\n\t\n\t keys = [].concat.apply([], [].slice.call(arguments, 1));\n\t var last = keys[keys.length - 1];\n\t var res = {}, fn;\n\t\n\t if (typeof last === 'function') {\n\t fn = keys.pop();\n\t }\n\t\n\t var isFunction = typeof fn === 'function';\n\t if (!keys.length && !isFunction) {\n\t return obj;\n\t }\n\t\n\t forOwn(obj, function(value, key) {\n\t if (keys.indexOf(key) === -1) {\n\t\n\t if (!isFunction) {\n\t res[key] = value;\n\t } else if (fn(value, key, obj)) {\n\t res[key] = value;\n\t }\n\t }\n\t });\n\t return res;\n\t};\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports) {\n\n\t/*!\n\t * is-extendable \n\t *\n\t * Copyright (c) 2015, Jon Schlinkert.\n\t * Licensed under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tmodule.exports = function isExtendable(val) {\n\t return typeof val !== 'undefined' && val !== null\n\t && (typeof val === 'object' || typeof val === 'function');\n\t};\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/*!\n\t * for-own \n\t *\n\t * Copyright (c) 2014-2017, Jon Schlinkert.\n\t * Released under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tvar forIn = __webpack_require__(8);\n\tvar hasOwn = Object.prototype.hasOwnProperty;\n\t\n\tmodule.exports = function forOwn(obj, fn, thisArg) {\n\t forIn(obj, function(val, key) {\n\t if (hasOwn.call(obj, key)) {\n\t return fn.call(thisArg, obj[key], key, obj);\n\t }\n\t });\n\t};\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports) {\n\n\t/*!\n\t * for-in \n\t *\n\t * Copyright (c) 2014-2017, Jon Schlinkert.\n\t * Released under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tmodule.exports = function forIn(obj, fn, thisArg) {\n\t for (var key in obj) {\n\t if (fn.call(thisArg, obj[key], key, obj) === false) {\n\t break;\n\t }\n\t }\n\t};\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar span = React.DOM.span;\n\tvar li = React.createFactory('li');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t handleClick: function handleClick() {\n\t this.props.onRemove(this.props.value);\n\t },\n\t\n\t handleKeyDown: function handleKeyDown(key) {\n\t var enterKey = 13;\n\t if (key.keyCode === enterKey) this.props.onRemove(this.props.value);\n\t },\n\t\n\t ariaLabelRemove: function ariaLabelRemove() {\n\t return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) : 'Remove \\'' + this.props.name + '\\'';\n\t },\n\t\n\t render: function render() {\n\t return li({\n\t className: \"ic-token inline-flex\"\n\t }, span({ className: \"ic-token-label\" }, this.props.name), span({\n\t role: 'button',\n\t onClick: this.handleClick,\n\t onFocus: this.props.onFocus,\n\t onKeyDown: this.handleKeyDown,\n\t 'aria-label': this.ariaLabelRemove(),\n\t className: \"ic-token-delete-button\",\n\t tabIndex: 0\n\t }, \"✕\"));\n\t }\n\t});\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar Combobox = React.createFactory(__webpack_require__(1));\n\tvar Token = React.createFactory(__webpack_require__(9));\n\tvar classnames = __webpack_require__(11);\n\t\n\tvar ul = React.DOM.ul;\n\tvar li = React.DOM.li;\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t propTypes: {\n\t isLoading: React.PropTypes.bool,\n\t loadingComponent: React.PropTypes.any,\n\t onFocus: React.PropTypes.func,\n\t onBlur: React.PropTypes.func,\n\t onInput: React.PropTypes.func.isRequired,\n\t onSelect: React.PropTypes.func.isRequired,\n\t tokenAriaFunc: React.PropTypes.func,\n\t onRemove: React.PropTypes.func.isRequired,\n\t selected: React.PropTypes.array.isRequired,\n\t menuContent: React.PropTypes.any,\n\t showListOnFocus: React.PropTypes.bool,\n\t placeholder: React.PropTypes.string\n\t },\n\t\n\t getInitialState: function getInitialState() {\n\t return {\n\t selectedToken: null\n\t };\n\t },\n\t\n\t handleClick: function handleClick() {\n\t // TODO: Expand combobox API for focus\n\t this.refs['combo-li'].querySelector('input').focus();\n\t },\n\t\n\t handleFocus: function handleFocus() {\n\t if (this.props.onFocus) {\n\t this.props.onFocus();\n\t }\n\t },\n\t\n\t handleBlur: function handleBlur() {\n\t if (this.props.onBlur) {\n\t this.props.onBlur();\n\t }\n\t },\n\t\n\t handleInput: function handleInput(inputValue) {\n\t this.props.onInput(inputValue);\n\t },\n\t\n\t handleSelect: function handleSelect(event, option) {\n\t var input = this.refs['combo-li'].querySelector('input');\n\t this.props.onSelect(event, option);\n\t this.setState({\n\t selectedToken: null\n\t });\n\t this.props.onInput(input.value);\n\t },\n\t\n\t handleRemove: function handleRemove(value) {\n\t var input = this.refs['combo-li'].querySelector('input');\n\t this.props.onRemove(value);\n\t input.focus();\n\t },\n\t\n\t handleRemoveLast: function handleRemoveLast() {\n\t this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n\t },\n\t\n\t render: function render() {\n\t var isDisabled = this.props.isDisabled;\n\t var tokens = this.props.selected.map(function (token) {\n\t return Token({\n\t tokenAriaFunc: this.props.tokenAriaFunc,\n\t onFocus: this.handleFocus,\n\t onRemove: this.handleRemove,\n\t value: token,\n\t name: token.name,\n\t key: token.id });\n\t }.bind(this));\n\t\n\t var classes = classnames('ic-tokens flex', {\n\t 'ic-tokens-disabled': isDisabled\n\t });\n\t\n\t return ul({ className: classes, onClick: this.handleClick }, tokens, li({ className: 'inline-flex', ref: 'combo-li' }, Combobox({\n\t id: this.props.id,\n\t 'aria-label': this.props['combobox-aria-label'],\n\t ariaDisabled: isDisabled,\n\t onFocus: this.handleFocus,\n\t onBlur: this.handleBlur,\n\t onInput: this.handleInput,\n\t showListOnFocus: this.props.showListOnFocus,\n\t onSelect: this.handleSelect,\n\t onRemoveLast: this.handleRemoveLast,\n\t value: this.state.selectedToken,\n\t isDisabled: isDisabled,\n\t placeholder: this.props.placeholder\n\t }, this.props.menuContent)), this.props.isLoading && li({ className: 'ic-tokeninput-loading flex' }, this.props.loadingComponent));\n\t }\n\t});\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n\t Copyright (c) 2016 Jed Watson.\n\t Licensed under the MIT License (MIT), see\n\t http://jedwatson.github.io/classnames\n\t*/\n\t/* global define */\n\t\n\t(function () {\n\t\t'use strict';\n\t\n\t\tvar hasOwn = {}.hasOwnProperty;\n\t\n\t\tfunction classNames () {\n\t\t\tvar classes = [];\n\t\n\t\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\t\tvar arg = arguments[i];\n\t\t\t\tif (!arg) continue;\n\t\n\t\t\t\tvar argType = typeof arg;\n\t\n\t\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\t\tclasses.push(arg);\n\t\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t\t} else if (argType === 'object') {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\treturn classes.join(' ');\n\t\t}\n\t\n\t\tif (typeof module !== 'undefined' && module.exports) {\n\t\t\tmodule.exports = classNames;\n\t\t} else if (true) {\n\t\t\t// register as 'classnames', consistent with npm package name\n\t\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\t\t\t\treturn classNames;\n\t\t\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t\t} else {\n\t\t\twindow.classNames = classNames;\n\t\t}\n\t}());\n\n\n/***/ })\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// react-tokeninput.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap eb8edd8a57dd140a3260","export Combobox from './combobox';\nexport Option from './option';\nexport Token from './token';\nimport main from './main';\n\n/**\n * You can't do an import and then immediately export it :(\n * And `export default TokenInput from './main'` doesn't seem to\n * work either :(\n * So this little variable swapping stuff gets it to work.\n */\nconst TokenInput = main;\nexport default TokenInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var React = require('react');\nvar guid = 0;\nvar k = function(){};\nvar addClass = require('./add-class');\nvar ComboboxOption = require('./option');\n\nvar div = React.createFactory('div');\nvar span = React.createFactory('span');\nvar input = React.createFactory('input');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n /**\n * Called when the combobox's input receives focus and the user begins interacting with it.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onFocus: React.PropTypes.func,\n\n /**\n * Called when the combobox's input loses focus after being activated for user input\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onBlur: React.PropTypes.func,\n\n /**\n * Called when the combobox receives user input, this is your chance to\n * filter the data and rerender the options.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onInput: React.PropTypes.func,\n\n /**\n * Called when the combobox receives a selection. You probably want to reset\n * the options to the full list at this point.\n *\n * Signature:\n *\n * ```js\n * function(selectedValue){}\n * ```\n */\n onSelect: React.PropTypes.func,\n\n /**\n * Shown when the combobox is empty.\n */\n placeholder: React.PropTypes.string\n },\n\n getDefaultProps: function() {\n return {\n autocomplete: 'both',\n onFocus: k,\n onBlur: k,\n onInput: k,\n onSelect: k,\n value: null,\n showListOnFocus: false\n };\n },\n\n getInitialState: function() {\n return {\n value: this.props.value,\n // the value displayed in the input\n inputValue: this.findInitialInputValue(),\n isOpen: false,\n focusedIndex: null,\n matchedAutocompleteOption: null,\n // this prevents crazy jumpiness since we focus options on mouseenter\n usingKeyboard: false,\n activedescendant: null,\n listId: 'ic-tokeninput-list-'+(++guid),\n menu: {\n children: [],\n activedescendant: null,\n isEmpty: true\n }\n };\n },\n\n componentWillMount: function() {\n this.setState({menu: this.makeMenu(this.props.children)});\n },\n\n componentWillReceiveProps: function(newProps) {\n this.setState({menu: this.makeMenu(newProps.children)}, function() {\n if(newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({\n isOpen: true\n }, function() {\n this.refs.list.scrollTop = 0;\n }.bind(this))\n } else {\n this.hideList();\n }\n\n }.bind(this));\n },\n\n /**\n * We don't create the components, the user supplies them,\n * so before rendering we attach handlers to facilitate communication from\n * the ComboboxOption to the Combobox.\n */\n makeMenu: function(children) {\n var activedescendant;\n var isEmpty = true;\n\n // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n var _children = React.Children.map(children, function(child, index) {\n // console.log(child.type, ComboboxOption.type)\n if (child.type !== ComboboxOption || !child.props.isFocusable) {\n // allow random elements to live in this list\n return child;\n }\n isEmpty = false;\n // TODO: cloneWithProps and map instead of altering the children in-place\n var props = child.props;\n var newProps = {};\n if (this.state.value === child.props.value) {\n // need an ID for WAI-ARIA\n newProps.id = props.id || 'ic-tokeninput-selected-'+(++guid);\n newProps.isSelected = true\n activedescendant = props.id;\n }\n newProps.onBlur = this.handleOptionBlur;\n newProps.onClick = this.selectOption.bind(this, child);\n newProps.onFocus = this.handleOptionFocus;\n newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n\n return React.cloneElement(child, newProps);\n }.bind(this));\n\n return {\n children: _children,\n activedescendant: activedescendant,\n isEmpty: isEmpty\n };\n },\n\n getClassName: function() {\n var className = addClass(this.props.className, 'ic-tokeninput');\n if (this.state.isOpen)\n className = addClass(className, 'ic-tokeninput-is-open');\n return className;\n },\n\n /**\n * When the user begins typing again we need to clear out any state that has\n * to do with an existing or potential selection.\n */\n clearSelectedState: function(cb) {\n this.setState({\n focusedIndex: null,\n inputValue: null,\n value: null,\n matchedAutocompleteOption: null,\n activedescendant: null\n }, cb);\n },\n\n handleInputChange: function() {\n var value = this.refs.input.value;\n this.clearSelectedState(function() {\n this.props.onInput(value);\n }.bind(this));\n },\n\n handleInputFocus: function() {\n this.props.onFocus();\n this.maybeShowList();\n },\n\n handleInputClick: function() {\n this.maybeShowList();\n },\n\n maybeShowList: function(){\n if (this.props.showListOnFocus){\n this.showList()\n }\n },\n\n handleInputBlur: function() {\n var focusedAnOption = this.state.focusedIndex != null;\n if (focusedAnOption)\n return;\n this.maybeSelectAutocompletedOption();\n this.hideList();\n this.props.onBlur();\n },\n\n handleOptionBlur: function() {\n // don't want to hide the list if we focused another option\n this.blurTimer = setTimeout(this.hideList, 0);\n },\n\n\n handleOptionFocus: function() {\n // see `handleOptionBlur`\n clearTimeout(this.blurTimer);\n },\n\n handleInputKeyUp: function(event) {\n if (\n this.state.menu.isEmpty ||\n // autocompleting while backspacing feels super weird, so let's not\n event.keyCode === 8 /*backspace*/ ||\n !this.props.autocomplete.match(/both|inline/)\n ) return;\n },\n\n handleButtonClick: function() {\n this.state.isOpen ? this.hideList() : this.showList();\n this.focusInput();\n },\n\n showList: function() {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({isOpen: true})\n },\n\n hideList: function() {\n this.setState({\n isOpen: false,\n focusedIndex: null\n });\n },\n\n hideOnEscape: function(event) {\n this.hideList();\n this.focusInput();\n event.preventDefault();\n },\n\n focusInput: function() {\n this.refs.input.focus();\n },\n\n selectInput: function() {\n this.refs.input.select();\n },\n\n inputKeydownMap: {\n 8: 'removeLastToken', // delete\n 13: 'selectOnEnter', // enter\n 188: 'selectOnEnter', // comma\n 27: 'hideOnEscape', // escape\n 38: 'focusPrevious', // up arrow\n 40: 'focusNext' // down arrow\n },\n\n optionKeydownMap: {\n 13: 'selectOption',\n 27: 'hideOnEscape',\n 38: 'focusPrevious',\n 40: 'focusNext'\n },\n\n handleKeydown: function(event) {\n var handlerName = this.inputKeydownMap[event.keyCode];\n if (!handlerName)\n return\n this.setState({usingKeyboard: true});\n return this[handlerName].call(this,event);\n },\n\n handleOptionKeyDown: function(child, event) {\n var handlerName = this.optionKeydownMap[event.keyCode];\n if (!handlerName) {\n // if the user starts typing again while focused on an option, move focus\n // to the inpute, select so it wipes out any existing value\n this.selectInput();\n return;\n }\n event.preventDefault();\n this.setState({usingKeyboard: true});\n this[handlerName].call(this, child);\n },\n\n handleOptionMouseEnter: function(index) {\n if (this.state.usingKeyboard) {\n this.setState({ usingKeyboard: false });\n }\n\n this.focusOptionAtIndex(index);\n },\n\n selectOnEnter: function(event) {\n event.preventDefault();\n this.maybeSelectAutocompletedOption()\n },\n\n maybeSelectAutocompletedOption: function() {\n if (!this.state.matchedAutocompleteOption) {\n this.selectText()\n } else {\n this.selectOption(this.state.matchedAutocompleteOption, {focus: false});\n }\n },\n\n selectOption: function(child, options) {\n options = options || {};\n this.setState({\n // value: child.props.value,\n // inputValue: getLabel(child),\n matchedAutocompleteOption: null\n }, function() {\n this.props.onSelect(child.props.value, child);\n this.hideList();\n this.clearSelectedState(); // added\n if (options.focus !== false)\n this.selectInput();\n }.bind(this));\n this.refs.input.value = '' // added\n },\n\n selectText: function() {\n var value = this.refs.input.value;\n if(!value) return;\n this.props.onSelect(value);\n this.clearSelectedState();\n this.refs.input.value = '' // added\n },\n\n focusNext: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.nextFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n removeLastToken: function() {\n if(this.props.onRemoveLast && !this.refs.input.value) {\n this.props.onRemoveLast()\n }\n return true\n },\n\n focusPrevious: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.previousFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n focusSelectedOption: function() {\n var selectedIndex;\n React.Children.forEach(this.props.children, function(child, index) {\n if (child.props.value === this.state.value)\n selectedIndex = index;\n }.bind(this));\n this.showList();\n this.setState({\n focusedIndex: selectedIndex\n }, this.focusOption);\n },\n\n findInitialInputValue: function() {\n // TODO: might not need this, we should know this in `makeMenu`\n var inputValue;\n React.Children.forEach(this.props.children, function(child) {\n if (child.props.value === this.props.value)\n inputValue = getLabel(child);\n }.bind(this));\n return inputValue;\n },\n\n clampIndex: function(index) {\n if (index < 0) {\n return this.props.children.length - 1\n } else if (index >= this.props.children.length) {\n return 0\n }\n return index\n },\n\n scanForFocusableIndex: function(index, increment) {\n if (index === null || index === undefined) {\n index = increment > 0 ? this.clampIndex(-1) : 0\n }\n var newIndex = index\n while (true) {\n newIndex = this.clampIndex(newIndex + increment)\n if (newIndex === index ||\n this.props.children[newIndex].props.isFocusable)\n {\n return newIndex\n }\n }\n },\n\n nextFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, 1)\n },\n\n previousFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, -1)\n },\n\n focusOptionAtIndex: function(index) {\n if (!this.state.isOpen && this.state.value)\n return this.focusSelectedOption();\n this.showList();\n var length = this.props.children.length;\n if (index === -1)\n index = length - 1;\n else if (index === length)\n index = 0;\n this.setState({\n focusedIndex: index\n }, this.focusOption);\n },\n\n focusOption: function() {\n var index = this.state.focusedIndex;\n this.refs.list.childNodes[index].focus();\n },\n\n render: function() {\n var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' +\n 'Press the down arrow to navigate results. If you don\\'t find an ' +\n 'acceptable option, you can input an alternative. Once you find or ' +\n 'input the tag you want, press Enter or Comma to add it.'\n\n return div({className: this.getClassName()},\n this.props.value,\n this.state.inputValue,\n input({\n ref: 'input',\n autoComplete: 'off',\n spellCheck: 'false',\n 'aria-label': ariaLabel,\n 'aria-expanded': this.state.isOpen+'',\n 'aria-haspopup': 'true',\n 'aria-activedescendant': this.state.menu.activedescendant,\n 'aria-autocomplete': 'list',\n 'aria-owns': this.state.listId,\n id: this.props.id,\n disabled: this.props.isDisabled,\n className: 'ic-tokeninput-input',\n onFocus: this.handleInputFocus,\n onClick: this.handleInputClick,\n onChange: this.handleInputChange,\n onBlur: this.handleInputBlur,\n onKeyDown: this.handleKeydown,\n onKeyUp: this.handleInputKeyUp,\n placeholder: this.props.placeholder,\n role: 'combobox'\n }),\n span({\n 'aria-hidden': 'true',\n className: 'ic-tokeninput-button',\n onClick: this.handleButtonClick\n }, '▾'),\n div({\n id: this.state.listId,\n ref: 'list',\n className: 'ic-tokeninput-list',\n role: 'listbox'\n }, this.state.menu.children)\n );\n }\n});\n\nfunction getLabel(component) {\n return component.props.label || component.props.children;\n}\n\nfunction matchFragment(userInput, firstChildLabel) {\n userInput = userInput.toLowerCase();\n firstChildLabel = firstChildLabel.toLowerCase();\n if (userInput === '' || userInput === firstChildLabel)\n return false;\n if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1)\n return false;\n return true;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/combobox.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 2\n// module chunks = 0 1","module.exports = addClass;\n\nfunction addClass(existing, added) {\n if (!existing) return added;\n if (existing.indexOf(added) > -1) return existing;\n return existing + ' ' + added;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/add-class.js","var React = require('react');\nvar addClass = require('./add-class');\nvar omit = require('object.omit');\nvar div = React.createFactory('div');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n\n /**\n * The value that will be sent to the `onSelect` handler of the\n * parent Combobox.\n */\n value: React.PropTypes.any.isRequired,\n\n /**\n * What value to put into the input element when this option is\n * selected, defaults to its children coerced to a string.\n */\n label: React.PropTypes.string,\n\n /**\n * Whether the element should be selectable\n */\n isFocusable: React.PropTypes.bool\n },\n\n getDefaultProps: function() {\n return {\n role: 'option',\n tabIndex: '-1',\n className: 'ic-tokeninput-option',\n isSelected: false,\n isFocusable: true\n };\n },\n\n render: function() {\n var props = this.props;\n if (props.isSelected) {\n props.className = addClass(props.className, 'ic-tokeninput-selected');\n props.ariaSelected = true;\n }\n return div(omit(props, ['isSelected', 'isFocusable']));\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/option.js","/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('is-extendable');\nvar forOwn = require('for-own');\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function(value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object.omit/index.js\n// module id = 5\n// module chunks = 0 1","/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/is-extendable/index.js\n// module id = 6\n// module chunks = 0 1","/*!\n * for-own \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar forIn = require('for-in');\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(obj, fn, thisArg) {\n forIn(obj, function(val, key) {\n if (hasOwn.call(obj, key)) {\n return fn.call(thisArg, obj[key], key, obj);\n }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-own/index.js\n// module id = 7\n// module chunks = 0 1","/*!\n * for-in \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(obj, fn, thisArg) {\n for (var key in obj) {\n if (fn.call(thisArg, obj[key], key, obj) === false) {\n break;\n }\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-in/index.js\n// module id = 8\n// module chunks = 0 1","var React = require('react');\nvar span = React.DOM.span;\nvar li = React.createFactory('li');\n\nmodule.exports = React.createClass({\n handleClick: function() {\n this.props.onRemove(this.props.value)\n },\n\n handleKeyDown: function(key) {\n var enterKey = 13;\n if(key.keyCode === enterKey) this.props.onRemove(this.props.value)\n },\n\n ariaLabelRemove: function ariaLabelRemove() {\n return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) :\n 'Remove \\'' + this.props.name + '\\'';\n },\n\n render: function() {\n return (\n li({\n className: \"ic-token inline-flex\"\n },\n span({className: \"ic-token-label\"}, this.props.name),\n span({\n role: 'button',\n onClick: this.handleClick,\n onFocus: this.props.onFocus,\n onKeyDown: this.handleKeyDown,\n 'aria-label': this.ariaLabelRemove(),\n className: \"ic-token-delete-button\",\n tabIndex: 0\n }, \"✕\")\n )\n )\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/token.js","var React = require('react');\nvar Combobox = React.createFactory(require('./combobox'));\nvar Token = React.createFactory(require('./token'));\nvar classnames = require('classnames');\n\nvar ul = React.DOM.ul;\nvar li = React.DOM.li;\n\nmodule.exports = React.createClass({\n propTypes: {\n isLoading: React.PropTypes.bool,\n loadingComponent: React.PropTypes.any,\n onFocus: React.PropTypes.func,\n onBlur: React.PropTypes.func,\n onInput: React.PropTypes.func.isRequired,\n onSelect: React.PropTypes.func.isRequired,\n tokenAriaFunc: React.PropTypes.func,\n onRemove: React.PropTypes.func.isRequired,\n selected: React.PropTypes.array.isRequired,\n menuContent: React.PropTypes.any,\n showListOnFocus: React.PropTypes.bool,\n placeholder: React.PropTypes.string\n },\n\n getInitialState: function() {\n return {\n selectedToken: null\n };\n },\n\n handleClick: function() {\n // TODO: Expand combobox API for focus\n this.refs['combo-li'].querySelector('input').focus();\n },\n\n handleFocus: function() {\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n },\n\n handleBlur: function() {\n if (this.props.onBlur) {\n this.props.onBlur();\n }\n },\n\n handleInput: function(inputValue) {\n this.props.onInput(inputValue);\n },\n\n handleSelect: function(event, option) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onSelect(event, option)\n this.setState({\n selectedToken: null\n })\n this.props.onInput(input.value);\n },\n\n handleRemove: function(value) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onRemove(value);\n input.focus();\n },\n\n handleRemoveLast: function() {\n this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n },\n\n render: function() {\n var isDisabled = this.props.isDisabled;\n var tokens = this.props.selected.map(function(token) {\n return (\n Token({\n tokenAriaFunc: this.props.tokenAriaFunc,\n onFocus: this.handleFocus,\n onRemove: this.handleRemove,\n value: token,\n name: token.name,\n key: token.id})\n )\n }.bind(this))\n\n var classes = classnames('ic-tokens flex', {\n 'ic-tokens-disabled': isDisabled\n });\n\n return ul({className: classes, onClick: this.handleClick},\n tokens,\n li({className: 'inline-flex', ref: 'combo-li'},\n Combobox({\n id: this.props.id,\n 'aria-label': this.props['combobox-aria-label'],\n ariaDisabled: isDisabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n onInput: this.handleInput,\n showListOnFocus: this.props.showListOnFocus,\n onSelect: this.handleSelect,\n onRemoveLast: this.handleRemoveLast,\n value: this.state.selectedToken,\n isDisabled: isDisabled,\n placeholder: this.props.placeholder\n },\n this.props.menuContent\n )\n ),\n this.props.isLoading && li({className: 'ic-tokeninput-loading flex'}, this.props.loadingComponent)\n );\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 11\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file diff --git a/lib/combobox.js b/lib/combobox.js index 8d95786..db9fcba 100644 --- a/lib/combobox.js +++ b/lib/combobox.js @@ -298,7 +298,11 @@ module.exports = React.createClass({ }, handleOptionMouseEnter: function handleOptionMouseEnter(index) { - if (this.state.usingKeyboard) this.setState({ usingKeyboard: false });else this.focusOptionAtIndex(index); + if (this.state.usingKeyboard) { + this.setState({ usingKeyboard: false }); + } + + this.focusOptionAtIndex(index); }, selectOnEnter: function selectOnEnter(event) { From 640652b20923e1581023c9bb2d0c77e36b0e24c5 Mon Sep 17 00:00:00 2001 From: Edd Morgan Date: Wed, 2 Aug 2017 11:02:46 +0100 Subject: [PATCH 09/23] add an onTouchStart handler --- src/combobox.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/combobox.js b/src/combobox.js index 4f677a9..957563c 100644 --- a/src/combobox.js +++ b/src/combobox.js @@ -148,6 +148,7 @@ module.exports = React.createClass({ newProps.onFocus = this.handleOptionFocus; newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child); newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index); + newProps.onTouchStart = this.handleOptionMouseEnter.bind(this, index); return React.cloneElement(child, newProps); }.bind(this)); From dab70b2bdc5bc3e8953cf0fd4a3a13aad37ae787 Mon Sep 17 00:00:00 2001 From: Edd Morgan Date: Wed, 2 Aug 2017 11:03:17 +0100 Subject: [PATCH 10/23] build --- dist/react-tokeninput.js | 1 + dist/react-tokeninput.js.map | 2 +- dist/react-tokeninput.min.js | 2 +- dist/react-tokeninput.min.js.map | 2 +- lib/combobox.js | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dist/react-tokeninput.js b/dist/react-tokeninput.js index 6837ef4..c022e28 100644 --- a/dist/react-tokeninput.js +++ b/dist/react-tokeninput.js @@ -250,6 +250,7 @@ return /******/ (function(modules) { // webpackBootstrap newProps.onFocus = this.handleOptionFocus; newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child); newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index); + newProps.onTouchStart = this.handleOptionMouseEnter.bind(this, index); return React.cloneElement(child, newProps); }.bind(this)); diff --git a/dist/react-tokeninput.js.map b/dist/react-tokeninput.js.map index 654b3a6..855d239 100644 --- a/dist/react-tokeninput.js.map +++ b/dist/react-tokeninput.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap eb8edd8a57dd140a3260","webpack:///./src/index.js","webpack:///./src/combobox.js","webpack:///external \"react\"","webpack:///./src/add-class.js","webpack:///./src/option.js","webpack:///./~/object.omit/index.js","webpack:///./~/is-extendable/index.js","webpack:///./~/for-own/index.js","webpack:///./~/for-in/index.js","webpack:///./src/token.js","webpack:///./src/main.js","webpack:///./~/classnames/index.js"],"names":["Combobox","Option","Token","TokenInput","React","require","guid","k","addClass","ComboboxOption","div","createFactory","span","input","module","exports","createClass","propTypes","onFocus","PropTypes","func","onBlur","onInput","onSelect","placeholder","string","getDefaultProps","autocomplete","value","showListOnFocus","getInitialState","props","inputValue","findInitialInputValue","isOpen","focusedIndex","matchedAutocompleteOption","usingKeyboard","activedescendant","listId","menu","children","isEmpty","componentWillMount","setState","makeMenu","componentWillReceiveProps","newProps","length","document","activeElement","refs","state","list","scrollTop","bind","hideList","_children","Children","map","child","index","type","isFocusable","id","isSelected","handleOptionBlur","onClick","selectOption","handleOptionFocus","onKeyDown","handleOptionKeyDown","onMouseEnter","handleOptionMouseEnter","cloneElement","getClassName","className","clearSelectedState","cb","handleInputChange","handleInputFocus","maybeShowList","handleInputClick","showList","handleInputBlur","focusedAnOption","maybeSelectAutocompletedOption","blurTimer","setTimeout","clearTimeout","handleInputKeyUp","event","keyCode","match","handleButtonClick","focusInput","hideOnEscape","preventDefault","focus","selectInput","select","inputKeydownMap","optionKeydownMap","handleKeydown","handlerName","call","focusOptionAtIndex","selectOnEnter","selectText","options","focusNext","nextFocusableIndex","removeLastToken","onRemoveLast","focusPrevious","previousFocusableIndex","focusSelectedOption","selectedIndex","forEach","focusOption","getLabel","clampIndex","scanForFocusableIndex","increment","undefined","newIndex","childNodes","render","ariaLabel","ref","autoComplete","spellCheck","disabled","isDisabled","onChange","onKeyUp","role","component","label","matchFragment","userInput","firstChildLabel","toLowerCase","indexOf","existing","added","omit","any","isRequired","bool","tabIndex","ariaSelected","DOM","li","handleClick","onRemove","handleKeyDown","key","enterKey","ariaLabelRemove","tokenAriaFunc","name","classnames","ul","isLoading","loadingComponent","selected","array","menuContent","selectedToken","querySelector","handleFocus","handleBlur","handleInput","handleSelect","option","handleRemove","handleRemoveLast","tokens","token","classes","ariaDisabled"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;ACnCA;;;;;;SAHOA,Q;SACAC,M;SACAC,K;;;AAGP;;;;;;AAMA,KAAMC,2BAAN;mBACeA,U;;;;;;;;ACZf,KAAIC,QAAQ,mBAAAC,CAAQ,CAAR,CAAZ;AACA,KAAIC,OAAO,CAAX;AACA,KAAIC,IAAI,SAAJA,CAAI,GAAU,CAAE,CAApB;AACA,KAAIC,WAAW,mBAAAH,CAAQ,CAAR,CAAf;AACA,KAAII,iBAAiB,mBAAAJ,CAAQ,CAAR,CAArB;;AAEA,KAAIK,MAAMN,MAAMO,aAAN,CAAoB,KAApB,CAAV;AACA,KAAIC,OAAOR,MAAMO,aAAN,CAAoB,MAApB,CAAX;AACA,KAAIE,QAAQT,MAAMO,aAAN,CAAoB,OAApB,CAAZ;;AAEAG,QAAOC,OAAP,GAAiBX,MAAMY,WAAN,CAAkB;AAAA;;;AAEjCC,cAAW;AACT;;;;;;;;;AASAC,cAASd,MAAMe,SAAN,CAAgBC,IAVhB;;AAYT;;;;;;;;;AAS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BAAYA,UAXL;AAYP7G,oBAAa,KAAKO,KAAL,CAAWP;AAZjB,MAAT,EAcE,KAAKO,KAAL,CAAWyI,WAdb,CADF,CAFK,EAoBL,KAAKzI,KAAL,CAAWqI,SAAX,IAAwBX,GAAG,EAAC7E,WAAW,4BAAZ,EAAH,EAA8C,KAAK7C,KAAL,CAAWsI,gBAAzD,CApBnB,CAAP;AAsBD;AAtGgC,EAAlB,CAAjB,C;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iBAAgB;;AAEhB;AACA;;AAEA,kBAAiB,sBAAsB;AACvC;AACA;;AAEA;;AAEA;AACA;AACA,KAAI;AACJ;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAE;AACF;AACA;AACA;AACA,IAAG;AACH,GAAE;AACF;AACA;AACA,EAAC","file":"react-tokeninput.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap eb8edd8a57dd140a3260","export Combobox from './combobox';\nexport Option from './option';\nexport Token from './token';\nimport main from './main';\n\n/**\n * You can't do an import and then immediately export it :(\n * And `export default TokenInput from './main'` doesn't seem to\n * work either :(\n * So this little variable swapping stuff gets it to work.\n */\nconst TokenInput = main;\nexport default TokenInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var React = require('react');\nvar guid = 0;\nvar k = function(){};\nvar addClass = require('./add-class');\nvar ComboboxOption = require('./option');\n\nvar div = React.createFactory('div');\nvar span = React.createFactory('span');\nvar input = React.createFactory('input');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n /**\n * Called when the combobox's input receives focus and the user begins interacting with it.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onFocus: React.PropTypes.func,\n\n /**\n * Called when the combobox's input loses focus after being activated for user input\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onBlur: React.PropTypes.func,\n\n /**\n * Called when the combobox receives user input, this is your chance to\n * filter the data and rerender the options.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onInput: React.PropTypes.func,\n\n /**\n * Called when the combobox receives a selection. You probably want to reset\n * the options to the full list at this point.\n *\n * Signature:\n *\n * ```js\n * function(selectedValue){}\n * ```\n */\n onSelect: React.PropTypes.func,\n\n /**\n * Shown when the combobox is empty.\n */\n placeholder: React.PropTypes.string\n },\n\n getDefaultProps: function() {\n return {\n autocomplete: 'both',\n onFocus: k,\n onBlur: k,\n onInput: k,\n onSelect: k,\n value: null,\n showListOnFocus: false\n };\n },\n\n getInitialState: function() {\n return {\n value: this.props.value,\n // the value displayed in the input\n inputValue: this.findInitialInputValue(),\n isOpen: false,\n focusedIndex: null,\n matchedAutocompleteOption: null,\n // this prevents crazy jumpiness since we focus options on mouseenter\n usingKeyboard: false,\n activedescendant: null,\n listId: 'ic-tokeninput-list-'+(++guid),\n menu: {\n children: [],\n activedescendant: null,\n isEmpty: true\n }\n };\n },\n\n componentWillMount: function() {\n this.setState({menu: this.makeMenu(this.props.children)});\n },\n\n componentWillReceiveProps: function(newProps) {\n this.setState({menu: this.makeMenu(newProps.children)}, function() {\n if(newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({\n isOpen: true\n }, function() {\n this.refs.list.scrollTop = 0;\n }.bind(this))\n } else {\n this.hideList();\n }\n\n }.bind(this));\n },\n\n /**\n * We don't create the components, the user supplies them,\n * so before rendering we attach handlers to facilitate communication from\n * the ComboboxOption to the Combobox.\n */\n makeMenu: function(children) {\n var activedescendant;\n var isEmpty = true;\n\n // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n var _children = React.Children.map(children, function(child, index) {\n // console.log(child.type, ComboboxOption.type)\n if (child.type !== ComboboxOption || !child.props.isFocusable) {\n // allow random elements to live in this list\n return child;\n }\n isEmpty = false;\n // TODO: cloneWithProps and map instead of altering the children in-place\n var props = child.props;\n var newProps = {};\n if (this.state.value === child.props.value) {\n // need an ID for WAI-ARIA\n newProps.id = props.id || 'ic-tokeninput-selected-'+(++guid);\n newProps.isSelected = true\n activedescendant = props.id;\n }\n newProps.onBlur = this.handleOptionBlur;\n newProps.onClick = this.selectOption.bind(this, child);\n newProps.onFocus = this.handleOptionFocus;\n newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n\n return React.cloneElement(child, newProps);\n }.bind(this));\n\n return {\n children: _children,\n activedescendant: activedescendant,\n isEmpty: isEmpty\n };\n },\n\n getClassName: function() {\n var className = addClass(this.props.className, 'ic-tokeninput');\n if (this.state.isOpen)\n className = addClass(className, 'ic-tokeninput-is-open');\n return className;\n },\n\n /**\n * When the user begins typing again we need to clear out any state that has\n * to do with an existing or potential selection.\n */\n clearSelectedState: function(cb) {\n this.setState({\n focusedIndex: null,\n inputValue: null,\n value: null,\n matchedAutocompleteOption: null,\n activedescendant: null\n }, cb);\n },\n\n handleInputChange: function() {\n var value = this.refs.input.value;\n this.clearSelectedState(function() {\n this.props.onInput(value);\n }.bind(this));\n },\n\n handleInputFocus: function() {\n this.props.onFocus();\n this.maybeShowList();\n },\n\n handleInputClick: function() {\n this.maybeShowList();\n },\n\n maybeShowList: function(){\n if (this.props.showListOnFocus){\n this.showList()\n }\n },\n\n handleInputBlur: function() {\n var focusedAnOption = this.state.focusedIndex != null;\n if (focusedAnOption)\n return;\n this.maybeSelectAutocompletedOption();\n this.hideList();\n this.props.onBlur();\n },\n\n handleOptionBlur: function() {\n // don't want to hide the list if we focused another option\n this.blurTimer = setTimeout(this.hideList, 0);\n },\n\n\n handleOptionFocus: function() {\n // see `handleOptionBlur`\n clearTimeout(this.blurTimer);\n },\n\n handleInputKeyUp: function(event) {\n if (\n this.state.menu.isEmpty ||\n // autocompleting while backspacing feels super weird, so let's not\n event.keyCode === 8 /*backspace*/ ||\n !this.props.autocomplete.match(/both|inline/)\n ) return;\n },\n\n handleButtonClick: function() {\n this.state.isOpen ? this.hideList() : this.showList();\n this.focusInput();\n },\n\n showList: function() {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({isOpen: true})\n },\n\n hideList: function() {\n this.setState({\n isOpen: false,\n focusedIndex: null\n });\n },\n\n hideOnEscape: function(event) {\n this.hideList();\n this.focusInput();\n event.preventDefault();\n },\n\n focusInput: function() {\n this.refs.input.focus();\n },\n\n selectInput: function() {\n this.refs.input.select();\n },\n\n inputKeydownMap: {\n 8: 'removeLastToken', // delete\n 13: 'selectOnEnter', // enter\n 188: 'selectOnEnter', // comma\n 27: 'hideOnEscape', // escape\n 38: 'focusPrevious', // up arrow\n 40: 'focusNext' // down arrow\n },\n\n optionKeydownMap: {\n 13: 'selectOption',\n 27: 'hideOnEscape',\n 38: 'focusPrevious',\n 40: 'focusNext'\n },\n\n handleKeydown: function(event) {\n var handlerName = this.inputKeydownMap[event.keyCode];\n if (!handlerName)\n return\n this.setState({usingKeyboard: true});\n return this[handlerName].call(this,event);\n },\n\n handleOptionKeyDown: function(child, event) {\n var handlerName = this.optionKeydownMap[event.keyCode];\n if (!handlerName) {\n // if the user starts typing again while focused on an option, move focus\n // to the inpute, select so it wipes out any existing value\n this.selectInput();\n return;\n }\n event.preventDefault();\n this.setState({usingKeyboard: true});\n this[handlerName].call(this, child);\n },\n\n handleOptionMouseEnter: function(index) {\n if (this.state.usingKeyboard) {\n this.setState({ usingKeyboard: false });\n }\n\n this.focusOptionAtIndex(index);\n },\n\n selectOnEnter: function(event) {\n event.preventDefault();\n this.maybeSelectAutocompletedOption()\n },\n\n maybeSelectAutocompletedOption: function() {\n if (!this.state.matchedAutocompleteOption) {\n this.selectText()\n } else {\n this.selectOption(this.state.matchedAutocompleteOption, {focus: false});\n }\n },\n\n selectOption: function(child, options) {\n options = options || {};\n this.setState({\n // value: child.props.value,\n // inputValue: getLabel(child),\n matchedAutocompleteOption: null\n }, function() {\n this.props.onSelect(child.props.value, child);\n this.hideList();\n this.clearSelectedState(); // added\n if (options.focus !== false)\n this.selectInput();\n }.bind(this));\n this.refs.input.value = '' // added\n },\n\n selectText: function() {\n var value = this.refs.input.value;\n if(!value) return;\n this.props.onSelect(value);\n this.clearSelectedState();\n this.refs.input.value = '' // added\n },\n\n focusNext: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.nextFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n removeLastToken: function() {\n if(this.props.onRemoveLast && !this.refs.input.value) {\n this.props.onRemoveLast()\n }\n return true\n },\n\n focusPrevious: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.previousFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n focusSelectedOption: function() {\n var selectedIndex;\n React.Children.forEach(this.props.children, function(child, index) {\n if (child.props.value === this.state.value)\n selectedIndex = index;\n }.bind(this));\n this.showList();\n this.setState({\n focusedIndex: selectedIndex\n }, this.focusOption);\n },\n\n findInitialInputValue: function() {\n // TODO: might not need this, we should know this in `makeMenu`\n var inputValue;\n React.Children.forEach(this.props.children, function(child) {\n if (child.props.value === this.props.value)\n inputValue = getLabel(child);\n }.bind(this));\n return inputValue;\n },\n\n clampIndex: function(index) {\n if (index < 0) {\n return this.props.children.length - 1\n } else if (index >= this.props.children.length) {\n return 0\n }\n return index\n },\n\n scanForFocusableIndex: function(index, increment) {\n if (index === null || index === undefined) {\n index = increment > 0 ? this.clampIndex(-1) : 0\n }\n var newIndex = index\n while (true) {\n newIndex = this.clampIndex(newIndex + increment)\n if (newIndex === index ||\n this.props.children[newIndex].props.isFocusable)\n {\n return newIndex\n }\n }\n },\n\n nextFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, 1)\n },\n\n previousFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, -1)\n },\n\n focusOptionAtIndex: function(index) {\n if (!this.state.isOpen && this.state.value)\n return this.focusSelectedOption();\n this.showList();\n var length = this.props.children.length;\n if (index === -1)\n index = length - 1;\n else if (index === length)\n index = 0;\n this.setState({\n focusedIndex: index\n }, this.focusOption);\n },\n\n focusOption: function() {\n var index = this.state.focusedIndex;\n this.refs.list.childNodes[index].focus();\n },\n\n render: function() {\n var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' +\n 'Press the down arrow to navigate results. If you don\\'t find an ' +\n 'acceptable option, you can input an alternative. Once you find or ' +\n 'input the tag you want, press Enter or Comma to add it.'\n\n return div({className: this.getClassName()},\n this.props.value,\n this.state.inputValue,\n input({\n ref: 'input',\n autoComplete: 'off',\n spellCheck: 'false',\n 'aria-label': ariaLabel,\n 'aria-expanded': this.state.isOpen+'',\n 'aria-haspopup': 'true',\n 'aria-activedescendant': this.state.menu.activedescendant,\n 'aria-autocomplete': 'list',\n 'aria-owns': this.state.listId,\n id: this.props.id,\n disabled: this.props.isDisabled,\n className: 'ic-tokeninput-input',\n onFocus: this.handleInputFocus,\n onClick: this.handleInputClick,\n onChange: this.handleInputChange,\n onBlur: this.handleInputBlur,\n onKeyDown: this.handleKeydown,\n onKeyUp: this.handleInputKeyUp,\n placeholder: this.props.placeholder,\n role: 'combobox'\n }),\n span({\n 'aria-hidden': 'true',\n className: 'ic-tokeninput-button',\n onClick: this.handleButtonClick\n }, '▾'),\n div({\n id: this.state.listId,\n ref: 'list',\n className: 'ic-tokeninput-list',\n role: 'listbox'\n }, this.state.menu.children)\n );\n }\n});\n\nfunction getLabel(component) {\n return component.props.label || component.props.children;\n}\n\nfunction matchFragment(userInput, firstChildLabel) {\n userInput = userInput.toLowerCase();\n firstChildLabel = firstChildLabel.toLowerCase();\n if (userInput === '' || userInput === firstChildLabel)\n return false;\n if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1)\n return false;\n return true;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/combobox.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 2\n// module chunks = 0 1","module.exports = addClass;\n\nfunction addClass(existing, added) {\n if (!existing) return added;\n if (existing.indexOf(added) > -1) return existing;\n return existing + ' ' + added;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/add-class.js","var React = require('react');\nvar addClass = require('./add-class');\nvar omit = require('object.omit');\nvar div = React.createFactory('div');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n\n /**\n * The value that will be sent to the `onSelect` handler of the\n * parent Combobox.\n */\n value: React.PropTypes.any.isRequired,\n\n /**\n * What value to put into the input element when this option is\n * selected, defaults to its children coerced to a string.\n */\n label: React.PropTypes.string,\n\n /**\n * Whether the element should be selectable\n */\n isFocusable: React.PropTypes.bool\n },\n\n getDefaultProps: function() {\n return {\n role: 'option',\n tabIndex: '-1',\n className: 'ic-tokeninput-option',\n isSelected: false,\n isFocusable: true\n };\n },\n\n render: function() {\n var props = this.props;\n if (props.isSelected) {\n props.className = addClass(props.className, 'ic-tokeninput-selected');\n props.ariaSelected = true;\n }\n return div(omit(props, ['isSelected', 'isFocusable']));\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/option.js","/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('is-extendable');\nvar forOwn = require('for-own');\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function(value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object.omit/index.js\n// module id = 5\n// module chunks = 0 1","/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/is-extendable/index.js\n// module id = 6\n// module chunks = 0 1","/*!\n * for-own \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar forIn = require('for-in');\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(obj, fn, thisArg) {\n forIn(obj, function(val, key) {\n if (hasOwn.call(obj, key)) {\n return fn.call(thisArg, obj[key], key, obj);\n }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-own/index.js\n// module id = 7\n// module chunks = 0 1","/*!\n * for-in \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(obj, fn, thisArg) {\n for (var key in obj) {\n if (fn.call(thisArg, obj[key], key, obj) === false) {\n break;\n }\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-in/index.js\n// module id = 8\n// module chunks = 0 1","var React = require('react');\nvar span = React.DOM.span;\nvar li = React.createFactory('li');\n\nmodule.exports = React.createClass({\n handleClick: function() {\n this.props.onRemove(this.props.value)\n },\n\n handleKeyDown: function(key) {\n var enterKey = 13;\n if(key.keyCode === enterKey) this.props.onRemove(this.props.value)\n },\n\n ariaLabelRemove: function ariaLabelRemove() {\n return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) :\n 'Remove \\'' + this.props.name + '\\'';\n },\n\n render: function() {\n return (\n li({\n className: \"ic-token inline-flex\"\n },\n span({className: \"ic-token-label\"}, this.props.name),\n span({\n role: 'button',\n onClick: this.handleClick,\n onFocus: this.props.onFocus,\n onKeyDown: this.handleKeyDown,\n 'aria-label': this.ariaLabelRemove(),\n className: \"ic-token-delete-button\",\n tabIndex: 0\n }, \"✕\")\n )\n )\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/token.js","var React = require('react');\nvar Combobox = React.createFactory(require('./combobox'));\nvar Token = React.createFactory(require('./token'));\nvar classnames = require('classnames');\n\nvar ul = React.DOM.ul;\nvar li = React.DOM.li;\n\nmodule.exports = React.createClass({\n propTypes: {\n isLoading: React.PropTypes.bool,\n loadingComponent: React.PropTypes.any,\n onFocus: React.PropTypes.func,\n onBlur: React.PropTypes.func,\n onInput: React.PropTypes.func.isRequired,\n onSelect: React.PropTypes.func.isRequired,\n tokenAriaFunc: React.PropTypes.func,\n onRemove: React.PropTypes.func.isRequired,\n selected: React.PropTypes.array.isRequired,\n menuContent: React.PropTypes.any,\n showListOnFocus: React.PropTypes.bool,\n placeholder: React.PropTypes.string\n },\n\n getInitialState: function() {\n return {\n selectedToken: null\n };\n },\n\n handleClick: function() {\n // TODO: Expand combobox API for focus\n this.refs['combo-li'].querySelector('input').focus();\n },\n\n handleFocus: function() {\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n },\n\n handleBlur: function() {\n if (this.props.onBlur) {\n this.props.onBlur();\n }\n },\n\n handleInput: function(inputValue) {\n this.props.onInput(inputValue);\n },\n\n handleSelect: function(event, option) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onSelect(event, option)\n this.setState({\n selectedToken: null\n })\n this.props.onInput(input.value);\n },\n\n handleRemove: function(value) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onRemove(value);\n input.focus();\n },\n\n handleRemoveLast: function() {\n this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n },\n\n render: function() {\n var isDisabled = this.props.isDisabled;\n var tokens = this.props.selected.map(function(token) {\n return (\n Token({\n tokenAriaFunc: this.props.tokenAriaFunc,\n onFocus: this.handleFocus,\n onRemove: this.handleRemove,\n value: token,\n name: token.name,\n key: token.id})\n )\n }.bind(this))\n\n var classes = classnames('ic-tokens flex', {\n 'ic-tokens-disabled': isDisabled\n });\n\n return ul({className: classes, onClick: this.handleClick},\n tokens,\n li({className: 'inline-flex', ref: 'combo-li'},\n Combobox({\n id: this.props.id,\n 'aria-label': this.props['combobox-aria-label'],\n ariaDisabled: isDisabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n onInput: this.handleInput,\n showListOnFocus: this.props.showListOnFocus,\n onSelect: this.handleSelect,\n onRemoveLast: this.handleRemoveLast,\n value: this.state.selectedToken,\n isDisabled: isDisabled,\n placeholder: this.props.placeholder\n },\n this.props.menuContent\n )\n ),\n this.props.isLoading && li({className: 'ic-tokeninput-loading flex'}, this.props.loadingComponent)\n );\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 11\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap d2d96eb50982bb6e83df","webpack:///./src/index.js","webpack:///./src/combobox.js","webpack:///external \"react\"","webpack:///./src/add-class.js","webpack:///./src/option.js","webpack:///./~/object.omit/index.js","webpack:///./~/is-extendable/index.js","webpack:///./~/for-own/index.js","webpack:///./~/for-in/index.js","webpack:///./src/token.js","webpack:///./src/main.js","webpack:///./~/classnames/index.js"],"names":["Combobox","Option","Token","TokenInput","React","require","guid","k","addClass","ComboboxOption","div","createFactory","span","input","module","exports","createClass","propTypes","onFocus","PropTypes","func","onBlur","onInput","onSelect","placeholder","string","getDefaultProps","autocomplete","value","showListOnFocus","getInitialState","props","inputValue","findInitialInputValue","isOpen","focusedIndex","matchedAutocompleteOption","usingKeyboard","activedescendant","listId","menu","children","isEmpty","componentWillMount","setState","makeMenu","componentWillReceiveProps","newProps","length","document","activeElement","refs","state","list","scrollTop","bind","hideList","_children","Children","map","child","index","type","isFocusable","id","isSelected","handleOptionBlur","onClick","selectOption","handleOptionFocus","onKeyDown","handleOptionKeyDown","onMouseEnter","handleOptionMouseEnter","onTouchStart","cloneElement","getClassName","className","clearSelectedState","cb","handleInputChange","handleInputFocus","maybeShowList","handleInputClick","showList","handleInputBlur","focusedAnOption","maybeSelectAutocompletedOption","blurTimer","setTimeout","clearTimeout","handleInputKeyUp","event","keyCode","match","handleButtonClick","focusInput","hideOnEscape","preventDefault","focus","selectInput","select","inputKeydownMap","optionKeydownMap","handleKeydown","handlerName","call","focusOptionAtIndex","selectOnEnter","selectText","options","focusNext","nextFocusableIndex","removeLastToken","onRemoveLast","focusPrevious","previousFocusableIndex","focusSelectedOption","selectedIndex","forEach","focusOption","getLabel","clampIndex","scanForFocusableIndex","increment","undefined","newIndex","childNodes","render","ariaLabel","ref","autoComplete","spellCheck","disabled","isDisabled","onChange","onKeyUp","role","component","label","matchFragment","userInput","firstChildLabel","toLowerCase","indexOf","existing","added","omit","any","isRequired","bool","tabIndex","ariaSelected","DOM","li","handleClick","onRemove","handleKeyDown","key","enterKey","ariaLabelRemove","tokenAriaFunc","name","classnames","ul","isLoading","loadingComponent","selected","array","menuContent","selectedToken","querySelector","handleFocus","handleBlur","handleInput","handleSelect","option","handleRemove","handleRemoveLast","tokens","token","classes","ariaDisabled"],"mappings":"AAAA;AACA;AAC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;;ACRA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iBAAgB;;AAEhB;AACA;;AAEA,kBAAiB,sBAAsB;AACvC;AACA;;AAEA;;AAEA;AACA;AACA,KAAI;AACJ;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAE;AACF;AACA;AACA;AACA,IAAG;AACH,GAAE;AACF;AACA;AACA,EAAC","file":"react-tokeninput.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap d2d96eb50982bb6e83df","export Combobox from './combobox';\nexport Option from './option';\nexport Token from './token';\nimport main from './main';\n\n/**\n * You can't do an import and then immediately export it :(\n * And `export default TokenInput from './main'` doesn't seem to\n * work either :(\n * So this little variable swapping stuff gets it to work.\n */\nconst TokenInput = main;\nexport default TokenInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var React = require('react');\nvar guid = 0;\nvar k = function(){};\nvar addClass = require('./add-class');\nvar ComboboxOption = require('./option');\n\nvar div = React.createFactory('div');\nvar span = React.createFactory('span');\nvar input = React.createFactory('input');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n /**\n * Called when the combobox's input receives focus and the user begins interacting with it.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onFocus: React.PropTypes.func,\n\n /**\n * Called when the combobox's input loses focus after being activated for user input\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onBlur: React.PropTypes.func,\n\n /**\n * Called when the combobox receives user input, this is your chance to\n * filter the data and rerender the options.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onInput: React.PropTypes.func,\n\n /**\n * Called when the combobox receives a selection. You probably want to reset\n * the options to the full list at this point.\n *\n * Signature:\n *\n * ```js\n * function(selectedValue){}\n * ```\n */\n onSelect: React.PropTypes.func,\n\n /**\n * Shown when the combobox is empty.\n */\n placeholder: React.PropTypes.string\n },\n\n getDefaultProps: function() {\n return {\n autocomplete: 'both',\n onFocus: k,\n onBlur: k,\n onInput: k,\n onSelect: k,\n value: null,\n showListOnFocus: false\n };\n },\n\n getInitialState: function() {\n return {\n value: this.props.value,\n // the value displayed in the input\n inputValue: this.findInitialInputValue(),\n isOpen: false,\n focusedIndex: null,\n matchedAutocompleteOption: null,\n // this prevents crazy jumpiness since we focus options on mouseenter\n usingKeyboard: false,\n activedescendant: null,\n listId: 'ic-tokeninput-list-'+(++guid),\n menu: {\n children: [],\n activedescendant: null,\n isEmpty: true\n }\n };\n },\n\n componentWillMount: function() {\n this.setState({menu: this.makeMenu(this.props.children)});\n },\n\n componentWillReceiveProps: function(newProps) {\n this.setState({menu: this.makeMenu(newProps.children)}, function() {\n if(newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({\n isOpen: true\n }, function() {\n this.refs.list.scrollTop = 0;\n }.bind(this))\n } else {\n this.hideList();\n }\n\n }.bind(this));\n },\n\n /**\n * We don't create the components, the user supplies them,\n * so before rendering we attach handlers to facilitate communication from\n * the ComboboxOption to the Combobox.\n */\n makeMenu: function(children) {\n var activedescendant;\n var isEmpty = true;\n\n // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n var _children = React.Children.map(children, function(child, index) {\n // console.log(child.type, ComboboxOption.type)\n if (child.type !== ComboboxOption || !child.props.isFocusable) {\n // allow random elements to live in this list\n return child;\n }\n isEmpty = false;\n // TODO: cloneWithProps and map instead of altering the children in-place\n var props = child.props;\n var newProps = {};\n if (this.state.value === child.props.value) {\n // need an ID for WAI-ARIA\n newProps.id = props.id || 'ic-tokeninput-selected-'+(++guid);\n newProps.isSelected = true\n activedescendant = props.id;\n }\n newProps.onBlur = this.handleOptionBlur;\n newProps.onClick = this.selectOption.bind(this, child);\n newProps.onFocus = this.handleOptionFocus;\n newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n newProps.onTouchStart = this.handleOptionMouseEnter.bind(this, index);\n\n return React.cloneElement(child, newProps);\n }.bind(this));\n\n return {\n children: _children,\n activedescendant: activedescendant,\n isEmpty: isEmpty\n };\n },\n\n getClassName: function() {\n var className = addClass(this.props.className, 'ic-tokeninput');\n if (this.state.isOpen)\n className = addClass(className, 'ic-tokeninput-is-open');\n return className;\n },\n\n /**\n * When the user begins typing again we need to clear out any state that has\n * to do with an existing or potential selection.\n */\n clearSelectedState: function(cb) {\n this.setState({\n focusedIndex: null,\n inputValue: null,\n value: null,\n matchedAutocompleteOption: null,\n activedescendant: null\n }, cb);\n },\n\n handleInputChange: function() {\n var value = this.refs.input.value;\n this.clearSelectedState(function() {\n this.props.onInput(value);\n }.bind(this));\n },\n\n handleInputFocus: function() {\n this.props.onFocus();\n this.maybeShowList();\n },\n\n handleInputClick: function() {\n this.maybeShowList();\n },\n\n maybeShowList: function(){\n if (this.props.showListOnFocus){\n this.showList()\n }\n },\n\n handleInputBlur: function() {\n var focusedAnOption = this.state.focusedIndex != null;\n if (focusedAnOption)\n return;\n this.maybeSelectAutocompletedOption();\n this.hideList();\n this.props.onBlur();\n },\n\n handleOptionBlur: function() {\n // don't want to hide the list if we focused another option\n this.blurTimer = setTimeout(this.hideList, 0);\n },\n\n\n handleOptionFocus: function() {\n // see `handleOptionBlur`\n clearTimeout(this.blurTimer);\n },\n\n handleInputKeyUp: function(event) {\n if (\n this.state.menu.isEmpty ||\n // autocompleting while backspacing feels super weird, so let's not\n event.keyCode === 8 /*backspace*/ ||\n !this.props.autocomplete.match(/both|inline/)\n ) return;\n },\n\n handleButtonClick: function() {\n this.state.isOpen ? this.hideList() : this.showList();\n this.focusInput();\n },\n\n showList: function() {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({isOpen: true})\n },\n\n hideList: function() {\n this.setState({\n isOpen: false,\n focusedIndex: null\n });\n },\n\n hideOnEscape: function(event) {\n this.hideList();\n this.focusInput();\n event.preventDefault();\n },\n\n focusInput: function() {\n this.refs.input.focus();\n },\n\n selectInput: function() {\n this.refs.input.select();\n },\n\n inputKeydownMap: {\n 8: 'removeLastToken', // delete\n 13: 'selectOnEnter', // enter\n 188: 'selectOnEnter', // comma\n 27: 'hideOnEscape', // escape\n 38: 'focusPrevious', // up arrow\n 40: 'focusNext' // down arrow\n },\n\n optionKeydownMap: {\n 13: 'selectOption',\n 27: 'hideOnEscape',\n 38: 'focusPrevious',\n 40: 'focusNext'\n },\n\n handleKeydown: function(event) {\n var handlerName = this.inputKeydownMap[event.keyCode];\n if (!handlerName)\n return\n this.setState({usingKeyboard: true});\n return this[handlerName].call(this,event);\n },\n\n handleOptionKeyDown: function(child, event) {\n var handlerName = this.optionKeydownMap[event.keyCode];\n if (!handlerName) {\n // if the user starts typing again while focused on an option, move focus\n // to the inpute, select so it wipes out any existing value\n this.selectInput();\n return;\n }\n event.preventDefault();\n this.setState({usingKeyboard: true});\n this[handlerName].call(this, child);\n },\n\n handleOptionMouseEnter: function(index) {\n if (this.state.usingKeyboard) {\n this.setState({ usingKeyboard: false });\n }\n\n this.focusOptionAtIndex(index);\n },\n\n selectOnEnter: function(event) {\n event.preventDefault();\n this.maybeSelectAutocompletedOption()\n },\n\n maybeSelectAutocompletedOption: function() {\n if (!this.state.matchedAutocompleteOption) {\n this.selectText()\n } else {\n this.selectOption(this.state.matchedAutocompleteOption, {focus: false});\n }\n },\n\n selectOption: function(child, options) {\n options = options || {};\n this.setState({\n // value: child.props.value,\n // inputValue: getLabel(child),\n matchedAutocompleteOption: null\n }, function() {\n this.props.onSelect(child.props.value, child);\n this.hideList();\n this.clearSelectedState(); // added\n if (options.focus !== false)\n this.selectInput();\n }.bind(this));\n this.refs.input.value = '' // added\n },\n\n selectText: function() {\n var value = this.refs.input.value;\n if(!value) return;\n this.props.onSelect(value);\n this.clearSelectedState();\n this.refs.input.value = '' // added\n },\n\n focusNext: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.nextFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n removeLastToken: function() {\n if(this.props.onRemoveLast && !this.refs.input.value) {\n this.props.onRemoveLast()\n }\n return true\n },\n\n focusPrevious: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.previousFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n focusSelectedOption: function() {\n var selectedIndex;\n React.Children.forEach(this.props.children, function(child, index) {\n if (child.props.value === this.state.value)\n selectedIndex = index;\n }.bind(this));\n this.showList();\n this.setState({\n focusedIndex: selectedIndex\n }, this.focusOption);\n },\n\n findInitialInputValue: function() {\n // TODO: might not need this, we should know this in `makeMenu`\n var inputValue;\n React.Children.forEach(this.props.children, function(child) {\n if (child.props.value === this.props.value)\n inputValue = getLabel(child);\n }.bind(this));\n return inputValue;\n },\n\n clampIndex: function(index) {\n if (index < 0) {\n return this.props.children.length - 1\n } else if (index >= this.props.children.length) {\n return 0\n }\n return index\n },\n\n scanForFocusableIndex: function(index, increment) {\n if (index === null || index === undefined) {\n index = increment > 0 ? this.clampIndex(-1) : 0\n }\n var newIndex = index\n while (true) {\n newIndex = this.clampIndex(newIndex + increment)\n if (newIndex === index ||\n this.props.children[newIndex].props.isFocusable)\n {\n return newIndex\n }\n }\n },\n\n nextFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, 1)\n },\n\n previousFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, -1)\n },\n\n focusOptionAtIndex: function(index) {\n if (!this.state.isOpen && this.state.value)\n return this.focusSelectedOption();\n this.showList();\n var length = this.props.children.length;\n if (index === -1)\n index = length - 1;\n else if (index === length)\n index = 0;\n this.setState({\n focusedIndex: index\n }, this.focusOption);\n },\n\n focusOption: function() {\n var index = this.state.focusedIndex;\n this.refs.list.childNodes[index].focus();\n },\n\n render: function() {\n var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' +\n 'Press the down arrow to navigate results. If you don\\'t find an ' +\n 'acceptable option, you can input an alternative. Once you find or ' +\n 'input the tag you want, press Enter or Comma to add it.'\n\n return div({className: this.getClassName()},\n this.props.value,\n this.state.inputValue,\n input({\n ref: 'input',\n autoComplete: 'off',\n spellCheck: 'false',\n 'aria-label': ariaLabel,\n 'aria-expanded': this.state.isOpen+'',\n 'aria-haspopup': 'true',\n 'aria-activedescendant': this.state.menu.activedescendant,\n 'aria-autocomplete': 'list',\n 'aria-owns': this.state.listId,\n id: this.props.id,\n disabled: this.props.isDisabled,\n className: 'ic-tokeninput-input',\n onFocus: this.handleInputFocus,\n onClick: this.handleInputClick,\n onChange: this.handleInputChange,\n onBlur: this.handleInputBlur,\n onKeyDown: this.handleKeydown,\n onKeyUp: this.handleInputKeyUp,\n placeholder: this.props.placeholder,\n role: 'combobox'\n }),\n span({\n 'aria-hidden': 'true',\n className: 'ic-tokeninput-button',\n onClick: this.handleButtonClick\n }, '▾'),\n div({\n id: this.state.listId,\n ref: 'list',\n className: 'ic-tokeninput-list',\n role: 'listbox'\n }, this.state.menu.children)\n );\n }\n});\n\nfunction getLabel(component) {\n return component.props.label || component.props.children;\n}\n\nfunction matchFragment(userInput, firstChildLabel) {\n userInput = userInput.toLowerCase();\n firstChildLabel = firstChildLabel.toLowerCase();\n if (userInput === '' || userInput === firstChildLabel)\n return false;\n if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1)\n return false;\n return true;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/combobox.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 2\n// module chunks = 0 1","module.exports = addClass;\n\nfunction addClass(existing, added) {\n if (!existing) return added;\n if (existing.indexOf(added) > -1) return existing;\n return existing + ' ' + added;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/add-class.js","var React = require('react');\nvar addClass = require('./add-class');\nvar omit = require('object.omit');\nvar div = React.createFactory('div');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n\n /**\n * The value that will be sent to the `onSelect` handler of the\n * parent Combobox.\n */\n value: React.PropTypes.any.isRequired,\n\n /**\n * What value to put into the input element when this option is\n * selected, defaults to its children coerced to a string.\n */\n label: React.PropTypes.string,\n\n /**\n * Whether the element should be selectable\n */\n isFocusable: React.PropTypes.bool\n },\n\n getDefaultProps: function() {\n return {\n role: 'option',\n tabIndex: '-1',\n className: 'ic-tokeninput-option',\n isSelected: false,\n isFocusable: true\n };\n },\n\n render: function() {\n var props = this.props;\n if (props.isSelected) {\n props.className = addClass(props.className, 'ic-tokeninput-selected');\n props.ariaSelected = true;\n }\n return div(omit(props, ['isSelected', 'isFocusable']));\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/option.js","/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('is-extendable');\nvar forOwn = require('for-own');\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function(value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object.omit/index.js\n// module id = 5\n// module chunks = 0 1","/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/is-extendable/index.js\n// module id = 6\n// module chunks = 0 1","/*!\n * for-own \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar forIn = require('for-in');\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(obj, fn, thisArg) {\n forIn(obj, function(val, key) {\n if (hasOwn.call(obj, key)) {\n return fn.call(thisArg, obj[key], key, obj);\n }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-own/index.js\n// module id = 7\n// module chunks = 0 1","/*!\n * for-in \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(obj, fn, thisArg) {\n for (var key in obj) {\n if (fn.call(thisArg, obj[key], key, obj) === false) {\n break;\n }\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-in/index.js\n// module id = 8\n// module chunks = 0 1","var React = require('react');\nvar span = React.DOM.span;\nvar li = React.createFactory('li');\n\nmodule.exports = React.createClass({\n handleClick: function() {\n this.props.onRemove(this.props.value)\n },\n\n handleKeyDown: function(key) {\n var enterKey = 13;\n if(key.keyCode === enterKey) this.props.onRemove(this.props.value)\n },\n\n ariaLabelRemove: function ariaLabelRemove() {\n return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) :\n 'Remove \\'' + this.props.name + '\\'';\n },\n\n render: function() {\n return (\n li({\n className: \"ic-token inline-flex\"\n },\n span({className: \"ic-token-label\"}, this.props.name),\n span({\n role: 'button',\n onClick: this.handleClick,\n onFocus: this.props.onFocus,\n onKeyDown: this.handleKeyDown,\n 'aria-label': this.ariaLabelRemove(),\n className: \"ic-token-delete-button\",\n tabIndex: 0\n }, \"✕\")\n )\n )\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/token.js","var React = require('react');\nvar Combobox = React.createFactory(require('./combobox'));\nvar Token = React.createFactory(require('./token'));\nvar classnames = require('classnames');\n\nvar ul = React.DOM.ul;\nvar li = React.DOM.li;\n\nmodule.exports = React.createClass({\n propTypes: {\n isLoading: React.PropTypes.bool,\n loadingComponent: React.PropTypes.any,\n onFocus: React.PropTypes.func,\n onBlur: React.PropTypes.func,\n onInput: React.PropTypes.func.isRequired,\n onSelect: React.PropTypes.func.isRequired,\n tokenAriaFunc: React.PropTypes.func,\n onRemove: React.PropTypes.func.isRequired,\n selected: React.PropTypes.array.isRequired,\n menuContent: React.PropTypes.any,\n showListOnFocus: React.PropTypes.bool,\n placeholder: React.PropTypes.string\n },\n\n getInitialState: function() {\n return {\n selectedToken: null\n };\n },\n\n handleClick: function() {\n // TODO: Expand combobox API for focus\n this.refs['combo-li'].querySelector('input').focus();\n },\n\n handleFocus: function() {\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n },\n\n handleBlur: function() {\n if (this.props.onBlur) {\n this.props.onBlur();\n }\n },\n\n handleInput: function(inputValue) {\n this.props.onInput(inputValue);\n },\n\n handleSelect: function(event, option) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onSelect(event, option)\n this.setState({\n selectedToken: null\n })\n this.props.onInput(input.value);\n },\n\n handleRemove: function(value) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onRemove(value);\n input.focus();\n },\n\n handleRemoveLast: function() {\n this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n },\n\n render: function() {\n var isDisabled = this.props.isDisabled;\n var tokens = this.props.selected.map(function(token) {\n return (\n Token({\n tokenAriaFunc: this.props.tokenAriaFunc,\n onFocus: this.handleFocus,\n onRemove: this.handleRemove,\n value: token,\n name: token.name,\n key: token.id})\n )\n }.bind(this))\n\n var classes = classnames('ic-tokens flex', {\n 'ic-tokens-disabled': isDisabled\n });\n\n return ul({className: classes, onClick: this.handleClick},\n tokens,\n li({className: 'inline-flex', ref: 'combo-li'},\n Combobox({\n id: this.props.id,\n 'aria-label': this.props['combobox-aria-label'],\n ariaDisabled: isDisabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n onInput: this.handleInput,\n showListOnFocus: this.props.showListOnFocus,\n onSelect: this.handleSelect,\n onRemoveLast: this.handleRemoveLast,\n value: this.state.selectedToken,\n isDisabled: isDisabled,\n placeholder: this.props.placeholder\n },\n this.props.menuContent\n )\n ),\n this.props.isLoading && li({className: 'ic-tokeninput-loading flex'}, this.props.loadingComponent)\n );\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 11\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/react-tokeninput.min.js b/dist/react-tokeninput.min.js index a8f8b04..0a4a8bb 100644 --- a/dist/react-tokeninput.min.js +++ b/dist/react-tokeninput.min.js @@ -1,4 +1,4 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.TokenInput=t(require("react")):e.TokenInput=t(e.react)}(this,function(e){return function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={exports:{},id:s,loaded:!1};return e[s].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}([function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.Option=t.Combobox=void 0;var i=n(1),o=s(i),u=n(4),r=s(u),a=n(9),p=s(a),c=n(10),l=s(c);t.Combobox=o.default,t.Option=r.default,t.Token=p.default;var h=l.default;t.default=h},function(e,t,n){"use strict";function s(e){return e.props.label||e.props.children}var i=n(2),o=0,u=function(){},r=n(3),a=n(4),p=i.createFactory("div"),c=i.createFactory("span"),l=i.createFactory("input");e.exports=i.createClass({displayName:"exports",propTypes:{onFocus:i.PropTypes.func,onBlur:i.PropTypes.func,onInput:i.PropTypes.func,onSelect:i.PropTypes.func,placeholder:i.PropTypes.string},getDefaultProps:function(){return{autocomplete:"both",onFocus:u,onBlur:u,onInput:u,onSelect:u,value:null,showListOnFocus:!1}},getInitialState:function(){return{value:this.props.value,inputValue:this.findInitialInputValue(),isOpen:!1,focusedIndex:null,matchedAutocompleteOption:null,usingKeyboard:!1,activedescendant:null,listId:"ic-tokeninput-list-"+ ++o,menu:{children:[],activedescendant:null,isEmpty:!0}}},componentWillMount:function(){this.setState({menu:this.makeMenu(this.props.children)})},componentWillReceiveProps:function(e){this.setState({menu:this.makeMenu(e.children)},function(){if(e.children.length&&(this.isOpen||document.activeElement===this.refs.input)){if(!this.state.menu.children.length)return;this.setState({isOpen:!0},function(){this.refs.list.scrollTop=0}.bind(this))}else this.hideList()}.bind(this))},makeMenu:function(e){var t,n=!0,s=i.Children.map(e,function(e,s){if(e.type!==a||!e.props.isFocusable)return e;n=!1;var u=e.props,r={};return this.state.value===e.props.value&&(r.id=u.id||"ic-tokeninput-selected-"+ ++o,r.isSelected=!0,t=u.id),r.onBlur=this.handleOptionBlur,r.onClick=this.selectOption.bind(this,e),r.onFocus=this.handleOptionFocus,r.onKeyDown=this.handleOptionKeyDown.bind(this,e),r.onMouseEnter=this.handleOptionMouseEnter.bind(this,s),i.cloneElement(e,r)}.bind(this));return{children:s,activedescendant:t,isEmpty:n}},getClassName:function(){var e=r(this.props.className,"ic-tokeninput");return this.state.isOpen&&(e=r(e,"ic-tokeninput-is-open")),e},clearSelectedState:function(e){this.setState({focusedIndex:null,inputValue:null,value:null,matchedAutocompleteOption:null,activedescendant:null},e)},handleInputChange:function(){var e=this.refs.input.value;this.clearSelectedState(function(){this.props.onInput(e)}.bind(this))},handleInputFocus:function(){this.props.onFocus(),this.maybeShowList()},handleInputClick:function(){this.maybeShowList()},maybeShowList:function(){this.props.showListOnFocus&&this.showList()},handleInputBlur:function(){var e=null!=this.state.focusedIndex;e||(this.maybeSelectAutocompletedOption(),this.hideList(),this.props.onBlur())},handleOptionBlur:function(){this.blurTimer=setTimeout(this.hideList,0)},handleOptionFocus:function(){clearTimeout(this.blurTimer)},handleInputKeyUp:function(e){this.state.menu.isEmpty||8===e.keyCode||!this.props.autocomplete.match(/both|inline/)},handleButtonClick:function(){this.state.isOpen?this.hideList():this.showList(),this.focusInput()},showList:function(){this.state.menu.children.length&&this.setState({isOpen:!0})},hideList:function(){this.setState({isOpen:!1,focusedIndex:null})},hideOnEscape:function(e){this.hideList(),this.focusInput(),e.preventDefault()},focusInput:function(){this.refs.input.focus()},selectInput:function(){this.refs.input.select()},inputKeydownMap:{8:"removeLastToken",13:"selectOnEnter",188:"selectOnEnter",27:"hideOnEscape",38:"focusPrevious",40:"focusNext"},optionKeydownMap:{13:"selectOption",27:"hideOnEscape",38:"focusPrevious",40:"focusNext"},handleKeydown:function(e){var t=this.inputKeydownMap[e.keyCode];if(t)return this.setState({usingKeyboard:!0}),this[t].call(this,e)},handleOptionKeyDown:function(e,t){var n=this.optionKeydownMap[t.keyCode];return n?(t.preventDefault(),this.setState({usingKeyboard:!0}),void this[n].call(this,e)):void this.selectInput()},handleOptionMouseEnter:function(e){this.state.usingKeyboard&&this.setState({usingKeyboard:!1}),this.focusOptionAtIndex(e)},selectOnEnter:function(e){e.preventDefault(),this.maybeSelectAutocompletedOption()},maybeSelectAutocompletedOption:function(){this.state.matchedAutocompleteOption?this.selectOption(this.state.matchedAutocompleteOption,{focus:!1}):this.selectText()},selectOption:function(e,t){t=t||{},this.setState({matchedAutocompleteOption:null},function(){this.props.onSelect(e.props.value,e),this.hideList(),this.clearSelectedState(),t.focus!==!1&&this.selectInput()}.bind(this)),this.refs.input.value=""},selectText:function(){var e=this.refs.input.value;e&&(this.props.onSelect(e),this.clearSelectedState(),this.refs.input.value="")},focusNext:function(e){if(e.preventDefault&&e.preventDefault(),!this.state.menu.isEmpty){var t=this.nextFocusableIndex(this.state.focusedIndex);this.focusOptionAtIndex(t)}},removeLastToken:function(){return this.props.onRemoveLast&&!this.refs.input.value&&this.props.onRemoveLast(),!0},focusPrevious:function(e){if(e.preventDefault&&e.preventDefault(),!this.state.menu.isEmpty){var t=this.previousFocusableIndex(this.state.focusedIndex);this.focusOptionAtIndex(t)}},focusSelectedOption:function(){var e;i.Children.forEach(this.props.children,function(t,n){t.props.value===this.state.value&&(e=n)}.bind(this)),this.showList(),this.setState({focusedIndex:e},this.focusOption)},findInitialInputValue:function(){var e;return i.Children.forEach(this.props.children,function(t){t.props.value===this.props.value&&(e=s(t))}.bind(this)),e},clampIndex:function(e){return e<0?this.props.children.length-1:e>=this.props.children.length?0:e},scanForFocusableIndex:function(e,t){null!==e&&void 0!==e||(e=t>0?this.clampIndex(-1):0);for(var n=e;;)if(n=this.clampIndex(n+t),n===e||this.props.children[n].props.isFocusable)return n},nextFocusableIndex:function(e){return this.scanForFocusableIndex(e,1)},previousFocusableIndex:function(e){return this.scanForFocusableIndex(e,-1)},focusOptionAtIndex:function(e){if(!this.state.isOpen&&this.state.value)return this.focusSelectedOption();this.showList();var t=this.props.children.length;e===-1?e=t-1:e===t&&(e=0),this.setState({focusedIndex:e},this.focusOption)},focusOption:function(){var e=this.state.focusedIndex;this.refs.list.childNodes[e].focus()},render:function(){var e=this.props["aria-label"]||"Start typing to search. Press the down arrow to navigate results. If you don't find an acceptable option, you can input an alternative. Once you find or input the tag you want, press Enter or Comma to add it.";return p({className:this.getClassName()},this.props.value,this.state.inputValue,l({ref:"input",autoComplete:"off",spellCheck:"false","aria-label":e,"aria-expanded":this.state.isOpen+"","aria-haspopup":"true","aria-activedescendant":this.state.menu.activedescendant,"aria-autocomplete":"list","aria-owns":this.state.listId,id:this.props.id,disabled:this.props.isDisabled,className:"ic-tokeninput-input",onFocus:this.handleInputFocus,onClick:this.handleInputClick,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleKeydown,onKeyUp:this.handleInputKeyUp,placeholder:this.props.placeholder,role:"combobox"}),c({"aria-hidden":"true",className:"ic-tokeninput-button",onClick:this.handleButtonClick},"▾"),p({id:this.state.listId,ref:"list",className:"ic-tokeninput-list",role:"listbox"},this.state.menu.children))}})},function(t,n){t.exports=e},function(e,t){"use strict";function n(e,t){return e?e.indexOf(t)>-1?e:e+" "+t:t}e.exports=n},function(e,t,n){"use strict";var s=n(2),i=n(3),o=n(5),u=s.createFactory("div");e.exports=s.createClass({displayName:"exports",propTypes:{value:s.PropTypes.any.isRequired,label:s.PropTypes.string,isFocusable:s.PropTypes.bool},getDefaultProps:function(){return{role:"option",tabIndex:"-1",className:"ic-tokeninput-option",isSelected:!1,isFocusable:!0}},render:function(){var e=this.props;return e.isSelected&&(e.className=i(e.className,"ic-tokeninput-selected"),e.ariaSelected=!0),u(o(e,["isSelected","isFocusable"]))}})},function(e,t,n){/*! +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.TokenInput=t(require("react")):e.TokenInput=t(e.react)}(this,function(e){return function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={exports:{},id:s,loaded:!1};return e[s].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}([function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.Option=t.Combobox=void 0;var i=n(1),o=s(i),u=n(4),r=s(u),a=n(9),p=s(a),c=n(10),l=s(c);t.Combobox=o.default,t.Option=r.default,t.Token=p.default;var h=l.default;t.default=h},function(e,t,n){"use strict";function s(e){return e.props.label||e.props.children}var i=n(2),o=0,u=function(){},r=n(3),a=n(4),p=i.createFactory("div"),c=i.createFactory("span"),l=i.createFactory("input");e.exports=i.createClass({displayName:"exports",propTypes:{onFocus:i.PropTypes.func,onBlur:i.PropTypes.func,onInput:i.PropTypes.func,onSelect:i.PropTypes.func,placeholder:i.PropTypes.string},getDefaultProps:function(){return{autocomplete:"both",onFocus:u,onBlur:u,onInput:u,onSelect:u,value:null,showListOnFocus:!1}},getInitialState:function(){return{value:this.props.value,inputValue:this.findInitialInputValue(),isOpen:!1,focusedIndex:null,matchedAutocompleteOption:null,usingKeyboard:!1,activedescendant:null,listId:"ic-tokeninput-list-"+ ++o,menu:{children:[],activedescendant:null,isEmpty:!0}}},componentWillMount:function(){this.setState({menu:this.makeMenu(this.props.children)})},componentWillReceiveProps:function(e){this.setState({menu:this.makeMenu(e.children)},function(){if(e.children.length&&(this.isOpen||document.activeElement===this.refs.input)){if(!this.state.menu.children.length)return;this.setState({isOpen:!0},function(){this.refs.list.scrollTop=0}.bind(this))}else this.hideList()}.bind(this))},makeMenu:function(e){var t,n=!0,s=i.Children.map(e,function(e,s){if(e.type!==a||!e.props.isFocusable)return e;n=!1;var u=e.props,r={};return this.state.value===e.props.value&&(r.id=u.id||"ic-tokeninput-selected-"+ ++o,r.isSelected=!0,t=u.id),r.onBlur=this.handleOptionBlur,r.onClick=this.selectOption.bind(this,e),r.onFocus=this.handleOptionFocus,r.onKeyDown=this.handleOptionKeyDown.bind(this,e),r.onMouseEnter=this.handleOptionMouseEnter.bind(this,s),r.onTouchStart=this.handleOptionMouseEnter.bind(this,s),i.cloneElement(e,r)}.bind(this));return{children:s,activedescendant:t,isEmpty:n}},getClassName:function(){var e=r(this.props.className,"ic-tokeninput");return this.state.isOpen&&(e=r(e,"ic-tokeninput-is-open")),e},clearSelectedState:function(e){this.setState({focusedIndex:null,inputValue:null,value:null,matchedAutocompleteOption:null,activedescendant:null},e)},handleInputChange:function(){var e=this.refs.input.value;this.clearSelectedState(function(){this.props.onInput(e)}.bind(this))},handleInputFocus:function(){this.props.onFocus(),this.maybeShowList()},handleInputClick:function(){this.maybeShowList()},maybeShowList:function(){this.props.showListOnFocus&&this.showList()},handleInputBlur:function(){var e=null!=this.state.focusedIndex;e||(this.maybeSelectAutocompletedOption(),this.hideList(),this.props.onBlur())},handleOptionBlur:function(){this.blurTimer=setTimeout(this.hideList,0)},handleOptionFocus:function(){clearTimeout(this.blurTimer)},handleInputKeyUp:function(e){this.state.menu.isEmpty||8===e.keyCode||!this.props.autocomplete.match(/both|inline/)},handleButtonClick:function(){this.state.isOpen?this.hideList():this.showList(),this.focusInput()},showList:function(){this.state.menu.children.length&&this.setState({isOpen:!0})},hideList:function(){this.setState({isOpen:!1,focusedIndex:null})},hideOnEscape:function(e){this.hideList(),this.focusInput(),e.preventDefault()},focusInput:function(){this.refs.input.focus()},selectInput:function(){this.refs.input.select()},inputKeydownMap:{8:"removeLastToken",13:"selectOnEnter",188:"selectOnEnter",27:"hideOnEscape",38:"focusPrevious",40:"focusNext"},optionKeydownMap:{13:"selectOption",27:"hideOnEscape",38:"focusPrevious",40:"focusNext"},handleKeydown:function(e){var t=this.inputKeydownMap[e.keyCode];if(t)return this.setState({usingKeyboard:!0}),this[t].call(this,e)},handleOptionKeyDown:function(e,t){var n=this.optionKeydownMap[t.keyCode];return n?(t.preventDefault(),this.setState({usingKeyboard:!0}),void this[n].call(this,e)):void this.selectInput()},handleOptionMouseEnter:function(e){this.state.usingKeyboard&&this.setState({usingKeyboard:!1}),this.focusOptionAtIndex(e)},selectOnEnter:function(e){e.preventDefault(),this.maybeSelectAutocompletedOption()},maybeSelectAutocompletedOption:function(){this.state.matchedAutocompleteOption?this.selectOption(this.state.matchedAutocompleteOption,{focus:!1}):this.selectText()},selectOption:function(e,t){t=t||{},this.setState({matchedAutocompleteOption:null},function(){this.props.onSelect(e.props.value,e),this.hideList(),this.clearSelectedState(),t.focus!==!1&&this.selectInput()}.bind(this)),this.refs.input.value=""},selectText:function(){var e=this.refs.input.value;e&&(this.props.onSelect(e),this.clearSelectedState(),this.refs.input.value="")},focusNext:function(e){if(e.preventDefault&&e.preventDefault(),!this.state.menu.isEmpty){var t=this.nextFocusableIndex(this.state.focusedIndex);this.focusOptionAtIndex(t)}},removeLastToken:function(){return this.props.onRemoveLast&&!this.refs.input.value&&this.props.onRemoveLast(),!0},focusPrevious:function(e){if(e.preventDefault&&e.preventDefault(),!this.state.menu.isEmpty){var t=this.previousFocusableIndex(this.state.focusedIndex);this.focusOptionAtIndex(t)}},focusSelectedOption:function(){var e;i.Children.forEach(this.props.children,function(t,n){t.props.value===this.state.value&&(e=n)}.bind(this)),this.showList(),this.setState({focusedIndex:e},this.focusOption)},findInitialInputValue:function(){var e;return i.Children.forEach(this.props.children,function(t){t.props.value===this.props.value&&(e=s(t))}.bind(this)),e},clampIndex:function(e){return e<0?this.props.children.length-1:e>=this.props.children.length?0:e},scanForFocusableIndex:function(e,t){null!==e&&void 0!==e||(e=t>0?this.clampIndex(-1):0);for(var n=e;;)if(n=this.clampIndex(n+t),n===e||this.props.children[n].props.isFocusable)return n},nextFocusableIndex:function(e){return this.scanForFocusableIndex(e,1)},previousFocusableIndex:function(e){return this.scanForFocusableIndex(e,-1)},focusOptionAtIndex:function(e){if(!this.state.isOpen&&this.state.value)return this.focusSelectedOption();this.showList();var t=this.props.children.length;e===-1?e=t-1:e===t&&(e=0),this.setState({focusedIndex:e},this.focusOption)},focusOption:function(){var e=this.state.focusedIndex;this.refs.list.childNodes[e].focus()},render:function(){var e=this.props["aria-label"]||"Start typing to search. Press the down arrow to navigate results. If you don't find an acceptable option, you can input an alternative. Once you find or input the tag you want, press Enter or Comma to add it.";return p({className:this.getClassName()},this.props.value,this.state.inputValue,l({ref:"input",autoComplete:"off",spellCheck:"false","aria-label":e,"aria-expanded":this.state.isOpen+"","aria-haspopup":"true","aria-activedescendant":this.state.menu.activedescendant,"aria-autocomplete":"list","aria-owns":this.state.listId,id:this.props.id,disabled:this.props.isDisabled,className:"ic-tokeninput-input",onFocus:this.handleInputFocus,onClick:this.handleInputClick,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleKeydown,onKeyUp:this.handleInputKeyUp,placeholder:this.props.placeholder,role:"combobox"}),c({"aria-hidden":"true",className:"ic-tokeninput-button",onClick:this.handleButtonClick},"▾"),p({id:this.state.listId,ref:"list",className:"ic-tokeninput-list",role:"listbox"},this.state.menu.children))}})},function(t,n){t.exports=e},function(e,t){"use strict";function n(e,t){return e?e.indexOf(t)>-1?e:e+" "+t:t}e.exports=n},function(e,t,n){"use strict";var s=n(2),i=n(3),o=n(5),u=s.createFactory("div");e.exports=s.createClass({displayName:"exports",propTypes:{value:s.PropTypes.any.isRequired,label:s.PropTypes.string,isFocusable:s.PropTypes.bool},getDefaultProps:function(){return{role:"option",tabIndex:"-1",className:"ic-tokeninput-option",isSelected:!1,isFocusable:!0}},render:function(){var e=this.props;return e.isSelected&&(e.className=i(e.className,"ic-tokeninput-selected"),e.ariaSelected=!0),u(o(e,["isSelected","isFocusable"]))}})},function(e,t,n){/*! * object.omit * * Copyright (c) 2014-2015, Jon Schlinkert. diff --git a/dist/react-tokeninput.min.js.map b/dist/react-tokeninput.min.js.map index 720b2e2..7463ef6 100644 --- a/dist/react-tokeninput.min.js.map +++ b/dist/react-tokeninput.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6","webpack:///react-tokeninput.min.js","webpack:///webpack/bootstrap eb8edd8a57dd140a3260?cdce","webpack:///./src/index.js?9552","webpack:///./src/combobox.js?fdf1","webpack:///external \"react\"?3c62","webpack:///./src/add-class.js?a8a9","webpack:///./src/option.js?9ff5","webpack:///./~/object.omit/index.js?7a1a","webpack:///./~/is-extendable/index.js?f1f6","webpack:///./~/for-own/index.js?9374","webpack:///./~/for-in/index.js?acef","webpack:///./src/token.js?3924","webpack:///./src/main.js?3479","webpack:///./~/classnames/index.js?8e43"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_2__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","Object","defineProperty","value","Token","Option","Combobox","undefined","_combobox","_combobox2","_option","_option2","_token","_token2","_main","_main2","TokenInput","getLabel","component","props","label","children","React","guid","k","addClass","ComboboxOption","div","createFactory","span","input","createClass","displayName","propTypes","onFocus","PropTypes","func","onBlur","onInput","onSelect","placeholder","string","getDefaultProps","autocomplete","showListOnFocus","getInitialState","inputValue","findInitialInputValue","isOpen","focusedIndex","matchedAutocompleteOption","usingKeyboard","activedescendant","listId","menu","isEmpty","componentWillMount","setState","makeMenu","componentWillReceiveProps","newProps","length","document","activeElement","refs","state","list","scrollTop","bind","hideList","_children","Children","map","child","index","type","isFocusable","isSelected","handleOptionBlur","onClick","selectOption","handleOptionFocus","onKeyDown","handleOptionKeyDown","onMouseEnter","handleOptionMouseEnter","cloneElement","getClassName","className","clearSelectedState","cb","handleInputChange","handleInputFocus","maybeShowList","handleInputClick","showList","handleInputBlur","focusedAnOption","maybeSelectAutocompletedOption","blurTimer","setTimeout","clearTimeout","handleInputKeyUp","event","keyCode","match","handleButtonClick","focusInput","hideOnEscape","preventDefault","focus","selectInput","select","inputKeydownMap","8","13","188","27","38","40","optionKeydownMap","handleKeydown","handlerName","focusOptionAtIndex","selectOnEnter","selectText","options","focusNext","nextFocusableIndex","removeLastToken","onRemoveLast","focusPrevious","previousFocusableIndex","focusSelectedOption","selectedIndex","forEach","focusOption","clampIndex","scanForFocusableIndex","increment","newIndex","childNodes","render","ariaLabel","ref","autoComplete","spellCheck","aria-label","aria-expanded","aria-haspopup","aria-activedescendant","aria-autocomplete","aria-owns","disabled","isDisabled","onChange","onKeyUp","role","aria-hidden","existing","added","indexOf","omit","any","isRequired","bool","tabIndex","ariaSelected","isObject","forOwn","keys","concat","apply","slice","arguments","fn","last","res","pop","isFunction","key","val","forIn","hasOwn","prototype","hasOwnProperty","thisArg","DOM","li","handleClick","onRemove","handleKeyDown","enterKey","ariaLabelRemove","tokenAriaFunc","name","classnames","ul","isLoading","loadingComponent","selected","array","menuContent","selectedToken","querySelector","handleFocus","handleBlur","handleInput","handleSelect","option","handleRemove","handleRemoveLast","tokens","token","classes","ic-tokens-disabled","ariaDisabled","__WEBPACK_AMD_DEFINE_ARRAY__","__WEBPACK_AMD_DEFINE_RESULT__","classNames","i","arg","argType","push","Array","isArray","join"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,UACA,kBAAAC,gBAAAC,IACAD,QAAA,SAAAJ,GACA,gBAAAC,SACAA,QAAA,WAAAD,EAAAG,QAAA,UAEAJ,EAAA,WAAAC,EAAAD,EAAA,QACCO,KAAA,SAAAC,GACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAT,OAGA,IAAAC,GAAAS,EAAAD,IACAT,WACAW,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAZ,EAAAD,QAAAC,IAAAD,QAAAQ,GAGAP,EAAAW,QAAA,EAGAX,EAAAD,QAvBA,GAAAU,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,IAGAR,EAAA,KDgBM,SAAUP,EAAQD,EAASQ,GAEhC,YAuBA,SAASS,GAAuBC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,QAASF,GArBvFG,OAAOC,eAAetB,EAAS,cAC7BuB,OAAO,IAETvB,EAAQwB,MAAQxB,EAAQyB,OAASzB,EAAQ0B,SAAWC,MAEpD,IAAIC,GAAYpB,EAAoB,GAEhCqB,EAAaZ,EAAuBW,GAEpCE,EAAUtB,EAAoB,GA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AqO,GAAAC;;;;;CAOA,WACA,YAIA,SAAAC,KAGA,OAFAL,MAEAM,EAAA,EAAiBA,EAAA9C,UAAAjH,OAAsB+J,IAAA,CACvC,GAAAC,GAAA/C,UAAA8C,EACA,IAAAC,EAAA,CAEA,GAAAC,SAAAD,EAEA,eAAAC,GAAA,WAAAA,EACAR,EAAAS,KAAAF,OACI,IAAAG,MAAAC,QAAAJ,GACJP,EAAAS,KAAAJ,EAAA/C,MAAA,KAAAiD,QACI,eAAAC,EACJ,OAAA1C,KAAAyC,GACAtC,EAAA9L,KAAAoO,EAAAzC,IAAAyC,EAAAzC,IACAkC,EAAAS,KAAA3C,IAMA,MAAAkC,GAAAY,KAAA,KAxBA,GAAA3C,MAAgBE,cA2BhB,oBAAA5M,MAAAD,QACAC,EAAAD,QAAA+O,GAGAF,KAAAC,EAAA,WACA,MAAAC,IACG/C,MAAAhM,EAAA6O,KAAAlN,SAAAmN,IAAA7O,EAAAD,QAAA8O","file":"react-tokeninput.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Token = exports.Option = exports.Combobox = undefined;\n\t\n\tvar _combobox = __webpack_require__(1);\n\t\n\tvar _combobox2 = _interopRequireDefault(_combobox);\n\t\n\tvar _option = __webpack_require__(4);\n\t\n\tvar _option2 = _interopRequireDefault(_option);\n\t\n\tvar _token = __webpack_require__(9);\n\t\n\tvar _token2 = _interopRequireDefault(_token);\n\t\n\tvar _main = __webpack_require__(10);\n\t\n\tvar _main2 = _interopRequireDefault(_main);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.Combobox = _combobox2.default;\n\texports.Option = _option2.default;\n\texports.Token = _token2.default;\n\t\n\t\n\t/**\n\t * You can't do an import and then immediately export it :(\n\t * And `export default TokenInput from './main'` doesn't seem to\n\t * work either :(\n\t * So this little variable swapping stuff gets it to work.\n\t */\n\tvar TokenInput = _main2.default;\n\texports.default = TokenInput;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar guid = 0;\n\tvar k = function k() {};\n\tvar addClass = __webpack_require__(3);\n\tvar ComboboxOption = __webpack_require__(4);\n\t\n\tvar div = React.createFactory('div');\n\tvar span = React.createFactory('span');\n\tvar input = React.createFactory('input');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t\n\t propTypes: {\n\t /**\n\t * Called when the combobox's input receives focus and the user begins interacting with it.\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(userInput){}\n\t * ```\n\t */\n\t onFocus: React.PropTypes.func,\n\t\n\t /**\n\t * Called when the combobox's input loses focus after being activated for user input\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(userInput){}\n\t * ```\n\t */\n\t onBlur: React.PropTypes.func,\n\t\n\t /**\n\t * Called when the combobox receives user input, this is your chance to\n\t * filter the data and rerender the options.\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(userInput){}\n\t * ```\n\t */\n\t onInput: React.PropTypes.func,\n\t\n\t /**\n\t * Called when the combobox receives a selection. You probably want to reset\n\t * the options to the full list at this point.\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(selectedValue){}\n\t * ```\n\t */\n\t onSelect: React.PropTypes.func,\n\t\n\t /**\n\t * Shown when the combobox is empty.\n\t */\n\t placeholder: React.PropTypes.string\n\t },\n\t\n\t getDefaultProps: function getDefaultProps() {\n\t return {\n\t autocomplete: 'both',\n\t onFocus: k,\n\t onBlur: k,\n\t onInput: k,\n\t onSelect: k,\n\t value: null,\n\t showListOnFocus: false\n\t };\n\t },\n\t\n\t getInitialState: function getInitialState() {\n\t return {\n\t value: this.props.value,\n\t // the value displayed in the input\n\t inputValue: this.findInitialInputValue(),\n\t isOpen: false,\n\t focusedIndex: null,\n\t matchedAutocompleteOption: null,\n\t // this prevents crazy jumpiness since we focus options on mouseenter\n\t usingKeyboard: false,\n\t activedescendant: null,\n\t listId: 'ic-tokeninput-list-' + ++guid,\n\t menu: {\n\t children: [],\n\t activedescendant: null,\n\t isEmpty: true\n\t }\n\t };\n\t },\n\t\n\t componentWillMount: function componentWillMount() {\n\t this.setState({ menu: this.makeMenu(this.props.children) });\n\t },\n\t\n\t componentWillReceiveProps: function componentWillReceiveProps(newProps) {\n\t this.setState({ menu: this.makeMenu(newProps.children) }, function () {\n\t if (newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n\t if (!this.state.menu.children.length) {\n\t return;\n\t }\n\t this.setState({\n\t isOpen: true\n\t }, function () {\n\t this.refs.list.scrollTop = 0;\n\t }.bind(this));\n\t } else {\n\t this.hideList();\n\t }\n\t }.bind(this));\n\t },\n\t\n\t /**\n\t * We don't create the components, the user supplies them,\n\t * so before rendering we attach handlers to facilitate communication from\n\t * the ComboboxOption to the Combobox.\n\t */\n\t makeMenu: function makeMenu(children) {\n\t var activedescendant;\n\t var isEmpty = true;\n\t\n\t // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n\t var _children = React.Children.map(children, function (child, index) {\n\t // console.log(child.type, ComboboxOption.type)\n\t if (child.type !== ComboboxOption || !child.props.isFocusable) {\n\t // allow random elements to live in this list\n\t return child;\n\t }\n\t isEmpty = false;\n\t // TODO: cloneWithProps and map instead of altering the children in-place\n\t var props = child.props;\n\t var newProps = {};\n\t if (this.state.value === child.props.value) {\n\t // need an ID for WAI-ARIA\n\t newProps.id = props.id || 'ic-tokeninput-selected-' + ++guid;\n\t newProps.isSelected = true;\n\t activedescendant = props.id;\n\t }\n\t newProps.onBlur = this.handleOptionBlur;\n\t newProps.onClick = this.selectOption.bind(this, child);\n\t newProps.onFocus = this.handleOptionFocus;\n\t newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n\t newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n\t\n\t return React.cloneElement(child, newProps);\n\t }.bind(this));\n\t\n\t return {\n\t children: _children,\n\t activedescendant: activedescendant,\n\t isEmpty: isEmpty\n\t };\n\t },\n\t\n\t getClassName: function getClassName() {\n\t var className = addClass(this.props.className, 'ic-tokeninput');\n\t if (this.state.isOpen) className = addClass(className, 'ic-tokeninput-is-open');\n\t return className;\n\t },\n\t\n\t /**\n\t * When the user begins typing again we need to clear out any state that has\n\t * to do with an existing or potential selection.\n\t */\n\t clearSelectedState: function clearSelectedState(cb) {\n\t this.setState({\n\t focusedIndex: null,\n\t inputValue: null,\n\t value: null,\n\t matchedAutocompleteOption: null,\n\t activedescendant: null\n\t }, cb);\n\t },\n\t\n\t handleInputChange: function handleInputChange() {\n\t var value = this.refs.input.value;\n\t this.clearSelectedState(function () {\n\t this.props.onInput(value);\n\t }.bind(this));\n\t },\n\t\n\t handleInputFocus: function handleInputFocus() {\n\t this.props.onFocus();\n\t this.maybeShowList();\n\t },\n\t\n\t handleInputClick: function handleInputClick() {\n\t this.maybeShowList();\n\t },\n\t\n\t maybeShowList: function maybeShowList() {\n\t if (this.props.showListOnFocus) {\n\t this.showList();\n\t }\n\t },\n\t\n\t handleInputBlur: function handleInputBlur() {\n\t var focusedAnOption = this.state.focusedIndex != null;\n\t if (focusedAnOption) return;\n\t this.maybeSelectAutocompletedOption();\n\t this.hideList();\n\t this.props.onBlur();\n\t },\n\t\n\t handleOptionBlur: function handleOptionBlur() {\n\t // don't want to hide the list if we focused another option\n\t this.blurTimer = setTimeout(this.hideList, 0);\n\t },\n\t\n\t handleOptionFocus: function handleOptionFocus() {\n\t // see `handleOptionBlur`\n\t clearTimeout(this.blurTimer);\n\t },\n\t\n\t handleInputKeyUp: function handleInputKeyUp(event) {\n\t if (this.state.menu.isEmpty ||\n\t // autocompleting while backspacing feels super weird, so let's not\n\t event.keyCode === 8 /*backspace*/ || !this.props.autocomplete.match(/both|inline/)) return;\n\t },\n\t\n\t handleButtonClick: function handleButtonClick() {\n\t this.state.isOpen ? this.hideList() : this.showList();\n\t this.focusInput();\n\t },\n\t\n\t showList: function showList() {\n\t if (!this.state.menu.children.length) {\n\t return;\n\t }\n\t this.setState({ isOpen: true });\n\t },\n\t\n\t hideList: function hideList() {\n\t this.setState({\n\t isOpen: false,\n\t focusedIndex: null\n\t });\n\t },\n\t\n\t hideOnEscape: function hideOnEscape(event) {\n\t this.hideList();\n\t this.focusInput();\n\t event.preventDefault();\n\t },\n\t\n\t focusInput: function focusInput() {\n\t this.refs.input.focus();\n\t },\n\t\n\t selectInput: function selectInput() {\n\t this.refs.input.select();\n\t },\n\t\n\t inputKeydownMap: {\n\t 8: 'removeLastToken', // delete\n\t 13: 'selectOnEnter', // enter\n\t 188: 'selectOnEnter', // comma\n\t 27: 'hideOnEscape', // escape\n\t 38: 'focusPrevious', // up arrow\n\t 40: 'focusNext' // down arrow\n\t },\n\t\n\t optionKeydownMap: {\n\t 13: 'selectOption',\n\t 27: 'hideOnEscape',\n\t 38: 'focusPrevious',\n\t 40: 'focusNext'\n\t },\n\t\n\t handleKeydown: function handleKeydown(event) {\n\t var handlerName = this.inputKeydownMap[event.keyCode];\n\t if (!handlerName) return;\n\t this.setState({ usingKeyboard: true });\n\t return this[handlerName].call(this, event);\n\t },\n\t\n\t handleOptionKeyDown: function handleOptionKeyDown(child, event) {\n\t var handlerName = this.optionKeydownMap[event.keyCode];\n\t if (!handlerName) {\n\t // if the user starts typing again while focused on an option, move focus\n\t // to the inpute, select so it wipes out any existing value\n\t this.selectInput();\n\t return;\n\t }\n\t event.preventDefault();\n\t this.setState({ usingKeyboard: true });\n\t this[handlerName].call(this, child);\n\t },\n\t\n\t handleOptionMouseEnter: function handleOptionMouseEnter(index) {\n\t if (this.state.usingKeyboard) {\n\t this.setState({ usingKeyboard: false });\n\t }\n\t\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t selectOnEnter: function selectOnEnter(event) {\n\t event.preventDefault();\n\t this.maybeSelectAutocompletedOption();\n\t },\n\t\n\t maybeSelectAutocompletedOption: function maybeSelectAutocompletedOption() {\n\t if (!this.state.matchedAutocompleteOption) {\n\t this.selectText();\n\t } else {\n\t this.selectOption(this.state.matchedAutocompleteOption, { focus: false });\n\t }\n\t },\n\t\n\t selectOption: function selectOption(child, options) {\n\t options = options || {};\n\t this.setState({\n\t // value: child.props.value,\n\t // inputValue: getLabel(child),\n\t matchedAutocompleteOption: null\n\t }, function () {\n\t this.props.onSelect(child.props.value, child);\n\t this.hideList();\n\t this.clearSelectedState(); // added\n\t if (options.focus !== false) this.selectInput();\n\t }.bind(this));\n\t this.refs.input.value = ''; // added\n\t },\n\t\n\t selectText: function selectText() {\n\t var value = this.refs.input.value;\n\t if (!value) return;\n\t this.props.onSelect(value);\n\t this.clearSelectedState();\n\t this.refs.input.value = ''; // added\n\t },\n\t\n\t focusNext: function focusNext(event) {\n\t if (event.preventDefault) event.preventDefault();\n\t if (this.state.menu.isEmpty) return;\n\t var index = this.nextFocusableIndex(this.state.focusedIndex);\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t removeLastToken: function removeLastToken() {\n\t if (this.props.onRemoveLast && !this.refs.input.value) {\n\t this.props.onRemoveLast();\n\t }\n\t return true;\n\t },\n\t\n\t focusPrevious: function focusPrevious(event) {\n\t if (event.preventDefault) event.preventDefault();\n\t if (this.state.menu.isEmpty) return;\n\t var index = this.previousFocusableIndex(this.state.focusedIndex);\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t focusSelectedOption: function focusSelectedOption() {\n\t var selectedIndex;\n\t React.Children.forEach(this.props.children, function (child, index) {\n\t if (child.props.value === this.state.value) selectedIndex = index;\n\t }.bind(this));\n\t this.showList();\n\t this.setState({\n\t focusedIndex: selectedIndex\n\t }, this.focusOption);\n\t },\n\t\n\t findInitialInputValue: function findInitialInputValue() {\n\t // TODO: might not need this, we should know this in `makeMenu`\n\t var inputValue;\n\t React.Children.forEach(this.props.children, function (child) {\n\t if (child.props.value === this.props.value) inputValue = getLabel(child);\n\t }.bind(this));\n\t return inputValue;\n\t },\n\t\n\t clampIndex: function clampIndex(index) {\n\t if (index < 0) {\n\t return this.props.children.length - 1;\n\t } else if (index >= this.props.children.length) {\n\t return 0;\n\t }\n\t return index;\n\t },\n\t\n\t scanForFocusableIndex: function scanForFocusableIndex(index, increment) {\n\t if (index === null || index === undefined) {\n\t index = increment > 0 ? this.clampIndex(-1) : 0;\n\t }\n\t var newIndex = index;\n\t while (true) {\n\t newIndex = this.clampIndex(newIndex + increment);\n\t if (newIndex === index || this.props.children[newIndex].props.isFocusable) {\n\t return newIndex;\n\t }\n\t }\n\t },\n\t\n\t nextFocusableIndex: function nextFocusableIndex(index) {\n\t return this.scanForFocusableIndex(index, 1);\n\t },\n\t\n\t previousFocusableIndex: function previousFocusableIndex(index) {\n\t return this.scanForFocusableIndex(index, -1);\n\t },\n\t\n\t focusOptionAtIndex: function focusOptionAtIndex(index) {\n\t if (!this.state.isOpen && this.state.value) return this.focusSelectedOption();\n\t this.showList();\n\t var length = this.props.children.length;\n\t if (index === -1) index = length - 1;else if (index === length) index = 0;\n\t this.setState({\n\t focusedIndex: index\n\t }, this.focusOption);\n\t },\n\t\n\t focusOption: function focusOption() {\n\t var index = this.state.focusedIndex;\n\t this.refs.list.childNodes[index].focus();\n\t },\n\t\n\t render: function render() {\n\t var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' + 'Press the down arrow to navigate results. If you don\\'t find an ' + 'acceptable option, you can input an alternative. Once you find or ' + 'input the tag you want, press Enter or Comma to add it.';\n\t\n\t return div({ className: this.getClassName() }, this.props.value, this.state.inputValue, input({\n\t ref: 'input',\n\t autoComplete: 'off',\n\t spellCheck: 'false',\n\t 'aria-label': ariaLabel,\n\t 'aria-expanded': this.state.isOpen + '',\n\t 'aria-haspopup': 'true',\n\t 'aria-activedescendant': this.state.menu.activedescendant,\n\t 'aria-autocomplete': 'list',\n\t 'aria-owns': this.state.listId,\n\t id: this.props.id,\n\t disabled: this.props.isDisabled,\n\t className: 'ic-tokeninput-input',\n\t onFocus: this.handleInputFocus,\n\t onClick: this.handleInputClick,\n\t onChange: this.handleInputChange,\n\t onBlur: this.handleInputBlur,\n\t onKeyDown: this.handleKeydown,\n\t onKeyUp: this.handleInputKeyUp,\n\t placeholder: this.props.placeholder,\n\t role: 'combobox'\n\t }), span({\n\t 'aria-hidden': 'true',\n\t className: 'ic-tokeninput-button',\n\t onClick: this.handleButtonClick\n\t }, '▾'), div({\n\t id: this.state.listId,\n\t ref: 'list',\n\t className: 'ic-tokeninput-list',\n\t role: 'listbox'\n\t }, this.state.menu.children));\n\t }\n\t});\n\t\n\tfunction getLabel(component) {\n\t return component.props.label || component.props.children;\n\t}\n\t\n\tfunction matchFragment(userInput, firstChildLabel) {\n\t userInput = userInput.toLowerCase();\n\t firstChildLabel = firstChildLabel.toLowerCase();\n\t if (userInput === '' || userInput === firstChildLabel) return false;\n\t if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1) return false;\n\t return true;\n\t}\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = addClass;\n\t\n\tfunction addClass(existing, added) {\n\t if (!existing) return added;\n\t if (existing.indexOf(added) > -1) return existing;\n\t return existing + ' ' + added;\n\t}\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar addClass = __webpack_require__(3);\n\tvar omit = __webpack_require__(5);\n\tvar div = React.createFactory('div');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t\n\t propTypes: {\n\t\n\t /**\n\t * The value that will be sent to the `onSelect` handler of the\n\t * parent Combobox.\n\t */\n\t value: React.PropTypes.any.isRequired,\n\t\n\t /**\n\t * What value to put into the input element when this option is\n\t * selected, defaults to its children coerced to a string.\n\t */\n\t label: React.PropTypes.string,\n\t\n\t /**\n\t * Whether the element should be selectable\n\t */\n\t isFocusable: React.PropTypes.bool\n\t },\n\t\n\t getDefaultProps: function getDefaultProps() {\n\t return {\n\t role: 'option',\n\t tabIndex: '-1',\n\t className: 'ic-tokeninput-option',\n\t isSelected: false,\n\t isFocusable: true\n\t };\n\t },\n\t\n\t render: function render() {\n\t var props = this.props;\n\t if (props.isSelected) {\n\t props.className = addClass(props.className, 'ic-tokeninput-selected');\n\t props.ariaSelected = true;\n\t }\n\t return div(omit(props, ['isSelected', 'isFocusable']));\n\t }\n\t\n\t});\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/*!\n\t * object.omit \n\t *\n\t * Copyright (c) 2014-2015, Jon Schlinkert.\n\t * Licensed under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tvar isObject = __webpack_require__(6);\n\tvar forOwn = __webpack_require__(7);\n\t\n\tmodule.exports = function omit(obj, keys) {\n\t if (!isObject(obj)) return {};\n\t\n\t keys = [].concat.apply([], [].slice.call(arguments, 1));\n\t var last = keys[keys.length - 1];\n\t var res = {}, fn;\n\t\n\t if (typeof last === 'function') {\n\t fn = keys.pop();\n\t }\n\t\n\t var isFunction = typeof fn === 'function';\n\t if (!keys.length && !isFunction) {\n\t return obj;\n\t }\n\t\n\t forOwn(obj, function(value, key) {\n\t if (keys.indexOf(key) === -1) {\n\t\n\t if (!isFunction) {\n\t res[key] = value;\n\t } else if (fn(value, key, obj)) {\n\t res[key] = value;\n\t }\n\t }\n\t });\n\t return res;\n\t};\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports) {\n\n\t/*!\n\t * is-extendable \n\t *\n\t * Copyright (c) 2015, Jon Schlinkert.\n\t * Licensed under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tmodule.exports = function isExtendable(val) {\n\t return typeof val !== 'undefined' && val !== null\n\t && (typeof val === 'object' || typeof val === 'function');\n\t};\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/*!\n\t * for-own \n\t *\n\t * Copyright (c) 2014-2017, Jon Schlinkert.\n\t * Released under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tvar forIn = __webpack_require__(8);\n\tvar hasOwn = Object.prototype.hasOwnProperty;\n\t\n\tmodule.exports = function forOwn(obj, fn, thisArg) {\n\t forIn(obj, function(val, key) {\n\t if (hasOwn.call(obj, key)) {\n\t return fn.call(thisArg, obj[key], key, obj);\n\t }\n\t });\n\t};\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports) {\n\n\t/*!\n\t * for-in \n\t *\n\t * Copyright (c) 2014-2017, Jon Schlinkert.\n\t * Released under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tmodule.exports = function forIn(obj, fn, thisArg) {\n\t for (var key in obj) {\n\t if (fn.call(thisArg, obj[key], key, obj) === false) {\n\t break;\n\t }\n\t }\n\t};\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar span = React.DOM.span;\n\tvar li = React.createFactory('li');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t handleClick: function handleClick() {\n\t this.props.onRemove(this.props.value);\n\t },\n\t\n\t handleKeyDown: function handleKeyDown(key) {\n\t var enterKey = 13;\n\t if (key.keyCode === enterKey) this.props.onRemove(this.props.value);\n\t },\n\t\n\t ariaLabelRemove: function ariaLabelRemove() {\n\t return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) : 'Remove \\'' + this.props.name + '\\'';\n\t },\n\t\n\t render: function render() {\n\t return li({\n\t className: \"ic-token inline-flex\"\n\t }, span({ className: \"ic-token-label\" }, this.props.name), span({\n\t role: 'button',\n\t onClick: this.handleClick,\n\t onFocus: this.props.onFocus,\n\t onKeyDown: this.handleKeyDown,\n\t 'aria-label': this.ariaLabelRemove(),\n\t className: \"ic-token-delete-button\",\n\t tabIndex: 0\n\t }, \"✕\"));\n\t }\n\t});\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar Combobox = React.createFactory(__webpack_require__(1));\n\tvar Token = React.createFactory(__webpack_require__(9));\n\tvar classnames = __webpack_require__(11);\n\t\n\tvar ul = React.DOM.ul;\n\tvar li = React.DOM.li;\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t propTypes: {\n\t isLoading: React.PropTypes.bool,\n\t loadingComponent: React.PropTypes.any,\n\t onFocus: React.PropTypes.func,\n\t onBlur: React.PropTypes.func,\n\t onInput: React.PropTypes.func.isRequired,\n\t onSelect: React.PropTypes.func.isRequired,\n\t tokenAriaFunc: React.PropTypes.func,\n\t onRemove: React.PropTypes.func.isRequired,\n\t selected: React.PropTypes.array.isRequired,\n\t menuContent: React.PropTypes.any,\n\t showListOnFocus: React.PropTypes.bool,\n\t placeholder: React.PropTypes.string\n\t },\n\t\n\t getInitialState: function getInitialState() {\n\t return {\n\t selectedToken: null\n\t };\n\t },\n\t\n\t handleClick: function handleClick() {\n\t // TODO: Expand combobox API for focus\n\t this.refs['combo-li'].querySelector('input').focus();\n\t },\n\t\n\t handleFocus: function handleFocus() {\n\t if (this.props.onFocus) {\n\t this.props.onFocus();\n\t }\n\t },\n\t\n\t handleBlur: function handleBlur() {\n\t if (this.props.onBlur) {\n\t this.props.onBlur();\n\t }\n\t },\n\t\n\t handleInput: function handleInput(inputValue) {\n\t this.props.onInput(inputValue);\n\t },\n\t\n\t handleSelect: function handleSelect(event, option) {\n\t var input = this.refs['combo-li'].querySelector('input');\n\t this.props.onSelect(event, option);\n\t this.setState({\n\t selectedToken: null\n\t });\n\t this.props.onInput(input.value);\n\t },\n\t\n\t handleRemove: function handleRemove(value) {\n\t var input = this.refs['combo-li'].querySelector('input');\n\t this.props.onRemove(value);\n\t input.focus();\n\t },\n\t\n\t handleRemoveLast: function handleRemoveLast() {\n\t this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n\t },\n\t\n\t render: function render() {\n\t var isDisabled = this.props.isDisabled;\n\t var tokens = this.props.selected.map(function (token) {\n\t return Token({\n\t tokenAriaFunc: this.props.tokenAriaFunc,\n\t onFocus: this.handleFocus,\n\t onRemove: this.handleRemove,\n\t value: token,\n\t name: token.name,\n\t key: token.id });\n\t }.bind(this));\n\t\n\t var classes = classnames('ic-tokens flex', {\n\t 'ic-tokens-disabled': isDisabled\n\t });\n\t\n\t return ul({ className: classes, onClick: this.handleClick }, tokens, li({ className: 'inline-flex', ref: 'combo-li' }, Combobox({\n\t id: this.props.id,\n\t 'aria-label': this.props['combobox-aria-label'],\n\t ariaDisabled: isDisabled,\n\t onFocus: this.handleFocus,\n\t onBlur: this.handleBlur,\n\t onInput: this.handleInput,\n\t showListOnFocus: this.props.showListOnFocus,\n\t onSelect: this.handleSelect,\n\t onRemoveLast: this.handleRemoveLast,\n\t value: this.state.selectedToken,\n\t isDisabled: isDisabled,\n\t placeholder: this.props.placeholder\n\t }, this.props.menuContent)), this.props.isLoading && li({ className: 'ic-tokeninput-loading flex' }, this.props.loadingComponent));\n\t }\n\t});\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n\t Copyright (c) 2016 Jed Watson.\n\t Licensed under the MIT License (MIT), see\n\t http://jedwatson.github.io/classnames\n\t*/\n\t/* global define */\n\t\n\t(function () {\n\t\t'use strict';\n\t\n\t\tvar hasOwn = {}.hasOwnProperty;\n\t\n\t\tfunction classNames () {\n\t\t\tvar classes = [];\n\t\n\t\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\t\tvar arg = arguments[i];\n\t\t\t\tif (!arg) continue;\n\t\n\t\t\t\tvar argType = typeof arg;\n\t\n\t\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\t\tclasses.push(arg);\n\t\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t\t} else if (argType === 'object') {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\treturn classes.join(' ');\n\t\t}\n\t\n\t\tif (typeof module !== 'undefined' && module.exports) {\n\t\t\tmodule.exports = classNames;\n\t\t} else if (true) {\n\t\t\t// register as 'classnames', consistent with npm package name\n\t\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\t\t\t\treturn classNames;\n\t\t\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t\t} else {\n\t\t\twindow.classNames = classNames;\n\t\t}\n\t}());\n\n\n/***/ })\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// react-tokeninput.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap eb8edd8a57dd140a3260","export Combobox from './combobox';\nexport Option from './option';\nexport Token from './token';\nimport main from './main';\n\n/**\n * You can't do an import and then immediately export it :(\n * And `export default TokenInput from './main'` doesn't seem to\n * work either :(\n * So this little variable swapping stuff gets it to work.\n */\nconst TokenInput = main;\nexport default TokenInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var React = require('react');\nvar guid = 0;\nvar k = function(){};\nvar addClass = require('./add-class');\nvar ComboboxOption = require('./option');\n\nvar div = React.createFactory('div');\nvar span = React.createFactory('span');\nvar input = React.createFactory('input');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n /**\n * Called when the combobox's input receives focus and the user begins interacting with it.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onFocus: React.PropTypes.func,\n\n /**\n * Called when the combobox's input loses focus after being activated for user input\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onBlur: React.PropTypes.func,\n\n /**\n * Called when the combobox receives user input, this is your chance to\n * filter the data and rerender the options.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onInput: React.PropTypes.func,\n\n /**\n * Called when the combobox receives a selection. You probably want to reset\n * the options to the full list at this point.\n *\n * Signature:\n *\n * ```js\n * function(selectedValue){}\n * ```\n */\n onSelect: React.PropTypes.func,\n\n /**\n * Shown when the combobox is empty.\n */\n placeholder: React.PropTypes.string\n },\n\n getDefaultProps: function() {\n return {\n autocomplete: 'both',\n onFocus: k,\n onBlur: k,\n onInput: k,\n onSelect: k,\n value: null,\n showListOnFocus: false\n };\n },\n\n getInitialState: function() {\n return {\n value: this.props.value,\n // the value displayed in the input\n inputValue: this.findInitialInputValue(),\n isOpen: false,\n focusedIndex: null,\n matchedAutocompleteOption: null,\n // this prevents crazy jumpiness since we focus options on mouseenter\n usingKeyboard: false,\n activedescendant: null,\n listId: 'ic-tokeninput-list-'+(++guid),\n menu: {\n children: [],\n activedescendant: null,\n isEmpty: true\n }\n };\n },\n\n componentWillMount: function() {\n this.setState({menu: this.makeMenu(this.props.children)});\n },\n\n componentWillReceiveProps: function(newProps) {\n this.setState({menu: this.makeMenu(newProps.children)}, function() {\n if(newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({\n isOpen: true\n }, function() {\n this.refs.list.scrollTop = 0;\n }.bind(this))\n } else {\n this.hideList();\n }\n\n }.bind(this));\n },\n\n /**\n * We don't create the components, the user supplies them,\n * so before rendering we attach handlers to facilitate communication from\n * the ComboboxOption to the Combobox.\n */\n makeMenu: function(children) {\n var activedescendant;\n var isEmpty = true;\n\n // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n var _children = React.Children.map(children, function(child, index) {\n // console.log(child.type, ComboboxOption.type)\n if (child.type !== ComboboxOption || !child.props.isFocusable) {\n // allow random elements to live in this list\n return child;\n }\n isEmpty = false;\n // TODO: cloneWithProps and map instead of altering the children in-place\n var props = child.props;\n var newProps = {};\n if (this.state.value === child.props.value) {\n // need an ID for WAI-ARIA\n newProps.id = props.id || 'ic-tokeninput-selected-'+(++guid);\n newProps.isSelected = true\n activedescendant = props.id;\n }\n newProps.onBlur = this.handleOptionBlur;\n newProps.onClick = this.selectOption.bind(this, child);\n newProps.onFocus = this.handleOptionFocus;\n newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n\n return React.cloneElement(child, newProps);\n }.bind(this));\n\n return {\n children: _children,\n activedescendant: activedescendant,\n isEmpty: isEmpty\n };\n },\n\n getClassName: function() {\n var className = addClass(this.props.className, 'ic-tokeninput');\n if (this.state.isOpen)\n className = addClass(className, 'ic-tokeninput-is-open');\n return className;\n },\n\n /**\n * When the user begins typing again we need to clear out any state that has\n * to do with an existing or potential selection.\n */\n clearSelectedState: function(cb) {\n this.setState({\n focusedIndex: null,\n inputValue: null,\n value: null,\n matchedAutocompleteOption: null,\n activedescendant: null\n }, cb);\n },\n\n handleInputChange: function() {\n var value = this.refs.input.value;\n this.clearSelectedState(function() {\n this.props.onInput(value);\n }.bind(this));\n },\n\n handleInputFocus: function() {\n this.props.onFocus();\n this.maybeShowList();\n },\n\n handleInputClick: function() {\n this.maybeShowList();\n },\n\n maybeShowList: function(){\n if (this.props.showListOnFocus){\n this.showList()\n }\n },\n\n handleInputBlur: function() {\n var focusedAnOption = this.state.focusedIndex != null;\n if (focusedAnOption)\n return;\n this.maybeSelectAutocompletedOption();\n this.hideList();\n this.props.onBlur();\n },\n\n handleOptionBlur: function() {\n // don't want to hide the list if we focused another option\n this.blurTimer = setTimeout(this.hideList, 0);\n },\n\n\n handleOptionFocus: function() {\n // see `handleOptionBlur`\n clearTimeout(this.blurTimer);\n },\n\n handleInputKeyUp: function(event) {\n if (\n this.state.menu.isEmpty ||\n // autocompleting while backspacing feels super weird, so let's not\n event.keyCode === 8 /*backspace*/ ||\n !this.props.autocomplete.match(/both|inline/)\n ) return;\n },\n\n handleButtonClick: function() {\n this.state.isOpen ? this.hideList() : this.showList();\n this.focusInput();\n },\n\n showList: function() {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({isOpen: true})\n },\n\n hideList: function() {\n this.setState({\n isOpen: false,\n focusedIndex: null\n });\n },\n\n hideOnEscape: function(event) {\n this.hideList();\n this.focusInput();\n event.preventDefault();\n },\n\n focusInput: function() {\n this.refs.input.focus();\n },\n\n selectInput: function() {\n this.refs.input.select();\n },\n\n inputKeydownMap: {\n 8: 'removeLastToken', // delete\n 13: 'selectOnEnter', // enter\n 188: 'selectOnEnter', // comma\n 27: 'hideOnEscape', // escape\n 38: 'focusPrevious', // up arrow\n 40: 'focusNext' // down arrow\n },\n\n optionKeydownMap: {\n 13: 'selectOption',\n 27: 'hideOnEscape',\n 38: 'focusPrevious',\n 40: 'focusNext'\n },\n\n handleKeydown: function(event) {\n var handlerName = this.inputKeydownMap[event.keyCode];\n if (!handlerName)\n return\n this.setState({usingKeyboard: true});\n return this[handlerName].call(this,event);\n },\n\n handleOptionKeyDown: function(child, event) {\n var handlerName = this.optionKeydownMap[event.keyCode];\n if (!handlerName) {\n // if the user starts typing again while focused on an option, move focus\n // to the inpute, select so it wipes out any existing value\n this.selectInput();\n return;\n }\n event.preventDefault();\n this.setState({usingKeyboard: true});\n this[handlerName].call(this, child);\n },\n\n handleOptionMouseEnter: function(index) {\n if (this.state.usingKeyboard) {\n this.setState({ usingKeyboard: false });\n }\n\n this.focusOptionAtIndex(index);\n },\n\n selectOnEnter: function(event) {\n event.preventDefault();\n this.maybeSelectAutocompletedOption()\n },\n\n maybeSelectAutocompletedOption: function() {\n if (!this.state.matchedAutocompleteOption) {\n this.selectText()\n } else {\n this.selectOption(this.state.matchedAutocompleteOption, {focus: false});\n }\n },\n\n selectOption: function(child, options) {\n options = options || {};\n this.setState({\n // value: child.props.value,\n // inputValue: getLabel(child),\n matchedAutocompleteOption: null\n }, function() {\n this.props.onSelect(child.props.value, child);\n this.hideList();\n this.clearSelectedState(); // added\n if (options.focus !== false)\n this.selectInput();\n }.bind(this));\n this.refs.input.value = '' // added\n },\n\n selectText: function() {\n var value = this.refs.input.value;\n if(!value) return;\n this.props.onSelect(value);\n this.clearSelectedState();\n this.refs.input.value = '' // added\n },\n\n focusNext: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.nextFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n removeLastToken: function() {\n if(this.props.onRemoveLast && !this.refs.input.value) {\n this.props.onRemoveLast()\n }\n return true\n },\n\n focusPrevious: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.previousFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n focusSelectedOption: function() {\n var selectedIndex;\n React.Children.forEach(this.props.children, function(child, index) {\n if (child.props.value === this.state.value)\n selectedIndex = index;\n }.bind(this));\n this.showList();\n this.setState({\n focusedIndex: selectedIndex\n }, this.focusOption);\n },\n\n findInitialInputValue: function() {\n // TODO: might not need this, we should know this in `makeMenu`\n var inputValue;\n React.Children.forEach(this.props.children, function(child) {\n if (child.props.value === this.props.value)\n inputValue = getLabel(child);\n }.bind(this));\n return inputValue;\n },\n\n clampIndex: function(index) {\n if (index < 0) {\n return this.props.children.length - 1\n } else if (index >= this.props.children.length) {\n return 0\n }\n return index\n },\n\n scanForFocusableIndex: function(index, increment) {\n if (index === null || index === undefined) {\n index = increment > 0 ? this.clampIndex(-1) : 0\n }\n var newIndex = index\n while (true) {\n newIndex = this.clampIndex(newIndex + increment)\n if (newIndex === index ||\n this.props.children[newIndex].props.isFocusable)\n {\n return newIndex\n }\n }\n },\n\n nextFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, 1)\n },\n\n previousFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, -1)\n },\n\n focusOptionAtIndex: function(index) {\n if (!this.state.isOpen && this.state.value)\n return this.focusSelectedOption();\n this.showList();\n var length = this.props.children.length;\n if (index === -1)\n index = length - 1;\n else if (index === length)\n index = 0;\n this.setState({\n focusedIndex: index\n }, this.focusOption);\n },\n\n focusOption: function() {\n var index = this.state.focusedIndex;\n this.refs.list.childNodes[index].focus();\n },\n\n render: function() {\n var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' +\n 'Press the down arrow to navigate results. If you don\\'t find an ' +\n 'acceptable option, you can input an alternative. Once you find or ' +\n 'input the tag you want, press Enter or Comma to add it.'\n\n return div({className: this.getClassName()},\n this.props.value,\n this.state.inputValue,\n input({\n ref: 'input',\n autoComplete: 'off',\n spellCheck: 'false',\n 'aria-label': ariaLabel,\n 'aria-expanded': this.state.isOpen+'',\n 'aria-haspopup': 'true',\n 'aria-activedescendant': this.state.menu.activedescendant,\n 'aria-autocomplete': 'list',\n 'aria-owns': this.state.listId,\n id: this.props.id,\n disabled: this.props.isDisabled,\n className: 'ic-tokeninput-input',\n onFocus: this.handleInputFocus,\n onClick: this.handleInputClick,\n onChange: this.handleInputChange,\n onBlur: this.handleInputBlur,\n onKeyDown: this.handleKeydown,\n onKeyUp: this.handleInputKeyUp,\n placeholder: this.props.placeholder,\n role: 'combobox'\n }),\n span({\n 'aria-hidden': 'true',\n className: 'ic-tokeninput-button',\n onClick: this.handleButtonClick\n }, '▾'),\n div({\n id: this.state.listId,\n ref: 'list',\n className: 'ic-tokeninput-list',\n role: 'listbox'\n }, this.state.menu.children)\n );\n }\n});\n\nfunction getLabel(component) {\n return component.props.label || component.props.children;\n}\n\nfunction matchFragment(userInput, firstChildLabel) {\n userInput = userInput.toLowerCase();\n firstChildLabel = firstChildLabel.toLowerCase();\n if (userInput === '' || userInput === firstChildLabel)\n return false;\n if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1)\n return false;\n return true;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/combobox.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 2\n// module chunks = 0 1","module.exports = addClass;\n\nfunction addClass(existing, added) {\n if (!existing) return added;\n if (existing.indexOf(added) > -1) return existing;\n return existing + ' ' + added;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/add-class.js","var React = require('react');\nvar addClass = require('./add-class');\nvar omit = require('object.omit');\nvar div = React.createFactory('div');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n\n /**\n * The value that will be sent to the `onSelect` handler of the\n * parent Combobox.\n */\n value: React.PropTypes.any.isRequired,\n\n /**\n * What value to put into the input element when this option is\n * selected, defaults to its children coerced to a string.\n */\n label: React.PropTypes.string,\n\n /**\n * Whether the element should be selectable\n */\n isFocusable: React.PropTypes.bool\n },\n\n getDefaultProps: function() {\n return {\n role: 'option',\n tabIndex: '-1',\n className: 'ic-tokeninput-option',\n isSelected: false,\n isFocusable: true\n };\n },\n\n render: function() {\n var props = this.props;\n if (props.isSelected) {\n props.className = addClass(props.className, 'ic-tokeninput-selected');\n props.ariaSelected = true;\n }\n return div(omit(props, ['isSelected', 'isFocusable']));\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/option.js","/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('is-extendable');\nvar forOwn = require('for-own');\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function(value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object.omit/index.js\n// module id = 5\n// module chunks = 0 1","/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/is-extendable/index.js\n// module id = 6\n// module chunks = 0 1","/*!\n * for-own \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar forIn = require('for-in');\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(obj, fn, thisArg) {\n forIn(obj, function(val, key) {\n if (hasOwn.call(obj, key)) {\n return fn.call(thisArg, obj[key], key, obj);\n }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-own/index.js\n// module id = 7\n// module chunks = 0 1","/*!\n * for-in \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(obj, fn, thisArg) {\n for (var key in obj) {\n if (fn.call(thisArg, obj[key], key, obj) === false) {\n break;\n }\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-in/index.js\n// module id = 8\n// module chunks = 0 1","var React = require('react');\nvar span = React.DOM.span;\nvar li = React.createFactory('li');\n\nmodule.exports = React.createClass({\n handleClick: function() {\n this.props.onRemove(this.props.value)\n },\n\n handleKeyDown: function(key) {\n var enterKey = 13;\n if(key.keyCode === enterKey) this.props.onRemove(this.props.value)\n },\n\n ariaLabelRemove: function ariaLabelRemove() {\n return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) :\n 'Remove \\'' + this.props.name + '\\'';\n },\n\n render: function() {\n return (\n li({\n className: \"ic-token inline-flex\"\n },\n span({className: \"ic-token-label\"}, this.props.name),\n span({\n role: 'button',\n onClick: this.handleClick,\n onFocus: this.props.onFocus,\n onKeyDown: this.handleKeyDown,\n 'aria-label': this.ariaLabelRemove(),\n className: \"ic-token-delete-button\",\n tabIndex: 0\n }, \"✕\")\n )\n )\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/token.js","var React = require('react');\nvar Combobox = React.createFactory(require('./combobox'));\nvar Token = React.createFactory(require('./token'));\nvar classnames = require('classnames');\n\nvar ul = React.DOM.ul;\nvar li = React.DOM.li;\n\nmodule.exports = React.createClass({\n propTypes: {\n isLoading: React.PropTypes.bool,\n loadingComponent: React.PropTypes.any,\n onFocus: React.PropTypes.func,\n onBlur: React.PropTypes.func,\n onInput: React.PropTypes.func.isRequired,\n onSelect: React.PropTypes.func.isRequired,\n tokenAriaFunc: React.PropTypes.func,\n onRemove: React.PropTypes.func.isRequired,\n selected: React.PropTypes.array.isRequired,\n menuContent: React.PropTypes.any,\n showListOnFocus: React.PropTypes.bool,\n placeholder: React.PropTypes.string\n },\n\n getInitialState: function() {\n return {\n selectedToken: null\n };\n },\n\n handleClick: function() {\n // TODO: Expand combobox API for focus\n this.refs['combo-li'].querySelector('input').focus();\n },\n\n handleFocus: function() {\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n },\n\n handleBlur: function() {\n if (this.props.onBlur) {\n this.props.onBlur();\n }\n },\n\n handleInput: function(inputValue) {\n this.props.onInput(inputValue);\n },\n\n handleSelect: function(event, option) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onSelect(event, option)\n this.setState({\n selectedToken: null\n })\n this.props.onInput(input.value);\n },\n\n handleRemove: function(value) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onRemove(value);\n input.focus();\n },\n\n handleRemoveLast: function() {\n this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n },\n\n render: function() {\n var isDisabled = this.props.isDisabled;\n var tokens = this.props.selected.map(function(token) {\n return (\n Token({\n tokenAriaFunc: this.props.tokenAriaFunc,\n onFocus: this.handleFocus,\n onRemove: this.handleRemove,\n value: token,\n name: token.name,\n key: token.id})\n )\n }.bind(this))\n\n var classes = classnames('ic-tokens flex', {\n 'ic-tokens-disabled': isDisabled\n });\n\n return ul({className: classes, onClick: this.handleClick},\n tokens,\n li({className: 'inline-flex', ref: 'combo-li'},\n Combobox({\n id: this.props.id,\n 'aria-label': this.props['combobox-aria-label'],\n ariaDisabled: isDisabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n onInput: this.handleInput,\n showListOnFocus: this.props.showListOnFocus,\n onSelect: this.handleSelect,\n onRemoveLast: this.handleRemoveLast,\n value: this.state.selectedToken,\n isDisabled: isDisabled,\n placeholder: this.props.placeholder\n },\n this.props.menuContent\n )\n ),\n this.props.isLoading && li({className: 'ic-tokeninput-loading flex'}, this.props.loadingComponent)\n );\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 11\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6","webpack:///react-tokeninput.min.js","webpack:///webpack/bootstrap d2d96eb50982bb6e83df?a116","webpack:///./src/index.js?9552","webpack:///./src/combobox.js?fdf1","webpack:///external \"react\"?3c62","webpack:///./src/add-class.js?a8a9","webpack:///./src/option.js?9ff5","webpack:///./~/object.omit/index.js?7a1a","webpack:///./~/is-extendable/index.js?f1f6","webpack:///./~/for-own/index.js?9374","webpack:///./~/for-in/index.js?acef","webpack:///./src/token.js?3924","webpack:///./src/main.js?3479","webpack:///./~/classnames/index.js?8e43"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_2__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","Object","defineProperty","value","Token","Option","Combobox","undefined","_combobox","_combobox2","_option","_option2","_token","_token2","_main","_main2","TokenInput","getLabel","component","props","label","children","React","guid","k","addClass","ComboboxOption","div","createFactory","span","input","createClass","displayName","propTypes","onFocus","PropTypes","func","onBlur","onInput","onSelect","placeholder","string","getDefaultProps","autocomplete","showListOnFocus","getInitialState","inputValue","findInitialInputValue","isOpen","focusedIndex","matchedAutocompleteOption","usingKeyboard","activedescendant","listId","menu","isEmpty","componentWillMount","setState","makeMenu","componentWillReceiveProps","newProps","length","document","activeElement","refs","state","list","scrollTop","bind","hideList","_children","Children","map","child","index","type","isFocusable","isSelected","handleOptionBlur","onClick","selectOption","handleOptionFocus","onKeyDown","handleOptionKeyDown","onMouseEnter","handleOptionMouseEnter","onTouchStart","cloneElement","getClassName","className","clearSelectedState","cb","handleInputChange","handleInputFocus","maybeShowList","handleInputClick","showList","handleInputBlur","focusedAnOption","maybeSelectAutocompletedOption","blurTimer","setTimeout","clearTimeout","handleInputKeyUp","event","keyCode","match","handleButtonClick","focusInput","hideOnEscape","preventDefault","focus","selectInput","select","inputKeydownMap","8","13","188","27","38","40","optionKeydownMap","handleKeydown","handlerName","focusOptionAtIndex","selectOnEnter","selectText","options","focusNext","nextFocusableIndex","removeLastToken","onRemoveLast","focusPrevious","previousFocusableIndex","focusSelectedOption","selectedIndex","forEach","focusOption","clampIndex","scanForFocusableIndex","increment","newIndex","childNodes","render","ariaLabel","ref","autoComplete","spellCheck","aria-label","aria-expanded","aria-haspopup","aria-activedescendant","aria-autocomplete","aria-owns","disabled","isDisabled","onChange","onKeyUp","role","aria-hidden","existing","added","indexOf","omit","any","isRequired","bool","tabIndex","ariaSelected","isObject","forOwn","keys","concat","apply","slice","arguments","fn","last","res","pop","isFunction","key","val","forIn","hasOwn","prototype","hasOwnProperty","thisArg","DOM","li","handleClick","onRemove","handleKeyDown","enterKey","ariaLabelRemove","tokenAriaFunc","name","classnames","ul","isLoading","loadingComponent","selected","array","menuContent","selectedToken","querySelector","handleFocus","handleBlur","handleInput","handleSelect","option","handleRemove","handleRemoveLast","tokens","token","classes","ic-tokens-disabled","ariaDisabled","__WEBPACK_AMD_DEFINE_ARRAY__","__WEBPACK_AMD_DEFINE_RESULT__","classNames","i","arg","argType","push","Array","isArray","join"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,UACA,kBAAAC,gBAAAC,IACAD,QAAA,SAAAJ,GACA,gBAAAC,SACAA,QAAA,WAAAD,EAAAG,QAAA,UAEAJ,EAAA,WAAAC,EAAAD,EAAA,QACCO,KAAA,SAAAC,GACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAT,OAGA,IAAAC,GAAAS,EAAAD,IACAT,WACAW,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAZ,EAAAD,QAAAC,IAAAD,QAAAQ,GAGAP,EAAAW,QAAA,EAGAX,EAAAD,QAvBA,GAAAU,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,IAGAR,EAAA,KDgBM,SAAUP,EAAQD,EAASQ,GAEhC,YAuBA,SAASS,GAAuBC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,QAASF,GArBvFG,OAAOC,eAAetB,EAAS,cAC7BuB,OAAO,IAETvB,EAAQwB,MAAQxB,EAAQyB,OAASzB,E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avD,KAAKkC,MAAMqB,aAExBvD,KAAKkC,MAAMwL,cAGf1N,KAAKkC,MAAMoL,WAAaV,GAAIpG,UAAW,8BAA+BxG,KAAKkC,MAAMqL,uBZ4yBjF,SAAU3N,EAAQD,EAASQ,Gax5BjC,GAAAsO,GAAAC;;;;;CAOA,WACA,YAIA,SAAAC,KAGA,OAFAL,MAEAM,EAAA,EAAiBA,EAAA9C,UAAAlH,OAAsBgK,IAAA,CACvC,GAAAC,GAAA/C,UAAA8C,EACA,IAAAC,EAAA,CAEA,GAAAC,SAAAD,EAEA,eAAAC,GAAA,WAAAA,EACAR,EAAAS,KAAAF,OACI,IAAAG,MAAAC,QAAAJ,GACJP,EAAAS,KAAAJ,EAAA/C,MAAA,KAAAiD,QACI,eAAAC,EACJ,OAAA1C,KAAAyC,GACAtC,EAAA/L,KAAAqO,EAAAzC,IAAAyC,EAAAzC,IACAkC,EAAAS,KAAA3C,IAMA,MAAAkC,GAAAY,KAAA,KAxBA,GAAA3C,MAAgBE,cA2BhB,oBAAA7M,MAAAD,QACAC,EAAAD,QAAAgP,GAGAF,KAAAC,EAAA,WACA,MAAAC,IACG/C,MAAAjM,EAAA8O,KAAAnN,SAAAoN,IAAA9O,EAAAD,QAAA+O","file":"react-tokeninput.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Token = exports.Option = exports.Combobox = undefined;\n\t\n\tvar _combobox = __webpack_require__(1);\n\t\n\tvar _combobox2 = _interopRequireDefault(_combobox);\n\t\n\tvar _option = __webpack_require__(4);\n\t\n\tvar _option2 = _interopRequireDefault(_option);\n\t\n\tvar _token = __webpack_require__(9);\n\t\n\tvar _token2 = _interopRequireDefault(_token);\n\t\n\tvar _main = __webpack_require__(10);\n\t\n\tvar _main2 = _interopRequireDefault(_main);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.Combobox = _combobox2.default;\n\texports.Option = _option2.default;\n\texports.Token = _token2.default;\n\t\n\t\n\t/**\n\t * You can't do an import and then immediately export it :(\n\t * And `export default TokenInput from './main'` doesn't seem to\n\t * work either :(\n\t * So this little variable swapping stuff gets it to work.\n\t */\n\tvar TokenInput = _main2.default;\n\texports.default = TokenInput;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar guid = 0;\n\tvar k = function k() {};\n\tvar addClass = __webpack_require__(3);\n\tvar ComboboxOption = __webpack_require__(4);\n\t\n\tvar div = React.createFactory('div');\n\tvar span = React.createFactory('span');\n\tvar input = React.createFactory('input');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t\n\t propTypes: {\n\t /**\n\t * Called when the combobox's input receives focus and the user begins interacting with it.\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(userInput){}\n\t * ```\n\t */\n\t onFocus: React.PropTypes.func,\n\t\n\t /**\n\t * Called when the combobox's input loses focus after being activated for user input\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(userInput){}\n\t * ```\n\t */\n\t onBlur: React.PropTypes.func,\n\t\n\t /**\n\t * Called when the combobox receives user input, this is your chance to\n\t * filter the data and rerender the options.\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(userInput){}\n\t * ```\n\t */\n\t onInput: React.PropTypes.func,\n\t\n\t /**\n\t * Called when the combobox receives a selection. You probably want to reset\n\t * the options to the full list at this point.\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(selectedValue){}\n\t * ```\n\t */\n\t onSelect: React.PropTypes.func,\n\t\n\t /**\n\t * Shown when the combobox is empty.\n\t */\n\t placeholder: React.PropTypes.string\n\t },\n\t\n\t getDefaultProps: function getDefaultProps() {\n\t return {\n\t autocomplete: 'both',\n\t onFocus: k,\n\t onBlur: k,\n\t onInput: k,\n\t onSelect: k,\n\t value: null,\n\t showListOnFocus: false\n\t };\n\t },\n\t\n\t getInitialState: function getInitialState() {\n\t return {\n\t value: this.props.value,\n\t // the value displayed in the input\n\t inputValue: this.findInitialInputValue(),\n\t isOpen: false,\n\t focusedIndex: null,\n\t matchedAutocompleteOption: null,\n\t // this prevents crazy jumpiness since we focus options on mouseenter\n\t usingKeyboard: false,\n\t activedescendant: null,\n\t listId: 'ic-tokeninput-list-' + ++guid,\n\t menu: {\n\t children: [],\n\t activedescendant: null,\n\t isEmpty: true\n\t }\n\t };\n\t },\n\t\n\t componentWillMount: function componentWillMount() {\n\t this.setState({ menu: this.makeMenu(this.props.children) });\n\t },\n\t\n\t componentWillReceiveProps: function componentWillReceiveProps(newProps) {\n\t this.setState({ menu: this.makeMenu(newProps.children) }, function () {\n\t if (newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n\t if (!this.state.menu.children.length) {\n\t return;\n\t }\n\t this.setState({\n\t isOpen: true\n\t }, function () {\n\t this.refs.list.scrollTop = 0;\n\t }.bind(this));\n\t } else {\n\t this.hideList();\n\t }\n\t }.bind(this));\n\t },\n\t\n\t /**\n\t * We don't create the components, the user supplies them,\n\t * so before rendering we attach handlers to facilitate communication from\n\t * the ComboboxOption to the Combobox.\n\t */\n\t makeMenu: function makeMenu(children) {\n\t var activedescendant;\n\t var isEmpty = true;\n\t\n\t // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n\t var _children = React.Children.map(children, function (child, index) {\n\t // console.log(child.type, ComboboxOption.type)\n\t if (child.type !== ComboboxOption || !child.props.isFocusable) {\n\t // allow random elements to live in this list\n\t return child;\n\t }\n\t isEmpty = false;\n\t // TODO: cloneWithProps and map instead of altering the children in-place\n\t var props = child.props;\n\t var newProps = {};\n\t if (this.state.value === child.props.value) {\n\t // need an ID for WAI-ARIA\n\t newProps.id = props.id || 'ic-tokeninput-selected-' + ++guid;\n\t newProps.isSelected = true;\n\t activedescendant = props.id;\n\t }\n\t newProps.onBlur = this.handleOptionBlur;\n\t newProps.onClick = this.selectOption.bind(this, child);\n\t newProps.onFocus = this.handleOptionFocus;\n\t newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n\t newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n\t newProps.onTouchStart = this.handleOptionMouseEnter.bind(this, index);\n\t\n\t return React.cloneElement(child, newProps);\n\t }.bind(this));\n\t\n\t return {\n\t children: _children,\n\t activedescendant: activedescendant,\n\t isEmpty: isEmpty\n\t };\n\t },\n\t\n\t getClassName: function getClassName() {\n\t var className = addClass(this.props.className, 'ic-tokeninput');\n\t if (this.state.isOpen) className = addClass(className, 'ic-tokeninput-is-open');\n\t return className;\n\t },\n\t\n\t /**\n\t * When the user begins typing again we need to clear out any state that has\n\t * to do with an existing or potential selection.\n\t */\n\t clearSelectedState: function clearSelectedState(cb) {\n\t this.setState({\n\t focusedIndex: null,\n\t inputValue: null,\n\t value: null,\n\t matchedAutocompleteOption: null,\n\t activedescendant: null\n\t }, cb);\n\t },\n\t\n\t handleInputChange: function handleInputChange() {\n\t var value = this.refs.input.value;\n\t this.clearSelectedState(function () {\n\t this.props.onInput(value);\n\t }.bind(this));\n\t },\n\t\n\t handleInputFocus: function handleInputFocus() {\n\t this.props.onFocus();\n\t this.maybeShowList();\n\t },\n\t\n\t handleInputClick: function handleInputClick() {\n\t this.maybeShowList();\n\t },\n\t\n\t maybeShowList: function maybeShowList() {\n\t if (this.props.showListOnFocus) {\n\t this.showList();\n\t }\n\t },\n\t\n\t handleInputBlur: function handleInputBlur() {\n\t var focusedAnOption = this.state.focusedIndex != null;\n\t if (focusedAnOption) return;\n\t this.maybeSelectAutocompletedOption();\n\t this.hideList();\n\t this.props.onBlur();\n\t },\n\t\n\t handleOptionBlur: function handleOptionBlur() {\n\t // don't want to hide the list if we focused another option\n\t this.blurTimer = setTimeout(this.hideList, 0);\n\t },\n\t\n\t handleOptionFocus: function handleOptionFocus() {\n\t // see `handleOptionBlur`\n\t clearTimeout(this.blurTimer);\n\t },\n\t\n\t handleInputKeyUp: function handleInputKeyUp(event) {\n\t if (this.state.menu.isEmpty ||\n\t // autocompleting while backspacing feels super weird, so let's not\n\t event.keyCode === 8 /*backspace*/ || !this.props.autocomplete.match(/both|inline/)) return;\n\t },\n\t\n\t handleButtonClick: function handleButtonClick() {\n\t this.state.isOpen ? this.hideList() : this.showList();\n\t this.focusInput();\n\t },\n\t\n\t showList: function showList() {\n\t if (!this.state.menu.children.length) {\n\t return;\n\t }\n\t this.setState({ isOpen: true });\n\t },\n\t\n\t hideList: function hideList() {\n\t this.setState({\n\t isOpen: false,\n\t focusedIndex: null\n\t });\n\t },\n\t\n\t hideOnEscape: function hideOnEscape(event) {\n\t this.hideList();\n\t this.focusInput();\n\t event.preventDefault();\n\t },\n\t\n\t focusInput: function focusInput() {\n\t this.refs.input.focus();\n\t },\n\t\n\t selectInput: function selectInput() {\n\t this.refs.input.select();\n\t },\n\t\n\t inputKeydownMap: {\n\t 8: 'removeLastToken', // delete\n\t 13: 'selectOnEnter', // enter\n\t 188: 'selectOnEnter', // comma\n\t 27: 'hideOnEscape', // escape\n\t 38: 'focusPrevious', // up arrow\n\t 40: 'focusNext' // down arrow\n\t },\n\t\n\t optionKeydownMap: {\n\t 13: 'selectOption',\n\t 27: 'hideOnEscape',\n\t 38: 'focusPrevious',\n\t 40: 'focusNext'\n\t },\n\t\n\t handleKeydown: function handleKeydown(event) {\n\t var handlerName = this.inputKeydownMap[event.keyCode];\n\t if (!handlerName) return;\n\t this.setState({ usingKeyboard: true });\n\t return this[handlerName].call(this, event);\n\t },\n\t\n\t handleOptionKeyDown: function handleOptionKeyDown(child, event) {\n\t var handlerName = this.optionKeydownMap[event.keyCode];\n\t if (!handlerName) {\n\t // if the user starts typing again while focused on an option, move focus\n\t // to the inpute, select so it wipes out any existing value\n\t this.selectInput();\n\t return;\n\t }\n\t event.preventDefault();\n\t this.setState({ usingKeyboard: true });\n\t this[handlerName].call(this, child);\n\t },\n\t\n\t handleOptionMouseEnter: function handleOptionMouseEnter(index) {\n\t if (this.state.usingKeyboard) {\n\t this.setState({ usingKeyboard: false });\n\t }\n\t\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t selectOnEnter: function selectOnEnter(event) {\n\t event.preventDefault();\n\t this.maybeSelectAutocompletedOption();\n\t },\n\t\n\t maybeSelectAutocompletedOption: function maybeSelectAutocompletedOption() {\n\t if (!this.state.matchedAutocompleteOption) {\n\t this.selectText();\n\t } else {\n\t this.selectOption(this.state.matchedAutocompleteOption, { focus: false });\n\t }\n\t },\n\t\n\t selectOption: function selectOption(child, options) {\n\t options = options || {};\n\t this.setState({\n\t // value: child.props.value,\n\t // inputValue: getLabel(child),\n\t matchedAutocompleteOption: null\n\t }, function () {\n\t this.props.onSelect(child.props.value, child);\n\t this.hideList();\n\t this.clearSelectedState(); // added\n\t if (options.focus !== false) this.selectInput();\n\t }.bind(this));\n\t this.refs.input.value = ''; // added\n\t },\n\t\n\t selectText: function selectText() {\n\t var value = this.refs.input.value;\n\t if (!value) return;\n\t this.props.onSelect(value);\n\t this.clearSelectedState();\n\t this.refs.input.value = ''; // added\n\t },\n\t\n\t focusNext: function focusNext(event) {\n\t if (event.preventDefault) event.preventDefault();\n\t if (this.state.menu.isEmpty) return;\n\t var index = this.nextFocusableIndex(this.state.focusedIndex);\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t removeLastToken: function removeLastToken() {\n\t if (this.props.onRemoveLast && !this.refs.input.value) {\n\t this.props.onRemoveLast();\n\t }\n\t return true;\n\t },\n\t\n\t focusPrevious: function focusPrevious(event) {\n\t if (event.preventDefault) event.preventDefault();\n\t if (this.state.menu.isEmpty) return;\n\t var index = this.previousFocusableIndex(this.state.focusedIndex);\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t focusSelectedOption: function focusSelectedOption() {\n\t var selectedIndex;\n\t React.Children.forEach(this.props.children, function (child, index) {\n\t if (child.props.value === this.state.value) selectedIndex = index;\n\t }.bind(this));\n\t this.showList();\n\t this.setState({\n\t focusedIndex: selectedIndex\n\t }, this.focusOption);\n\t },\n\t\n\t findInitialInputValue: function findInitialInputValue() {\n\t // TODO: might not need this, we should know this in `makeMenu`\n\t var inputValue;\n\t React.Children.forEach(this.props.children, function (child) {\n\t if (child.props.value === this.props.value) inputValue = getLabel(child);\n\t }.bind(this));\n\t return inputValue;\n\t },\n\t\n\t clampIndex: function clampIndex(index) {\n\t if (index < 0) {\n\t return this.props.children.length - 1;\n\t } else if (index >= this.props.children.length) {\n\t return 0;\n\t }\n\t return index;\n\t },\n\t\n\t scanForFocusableIndex: function scanForFocusableIndex(index, increment) {\n\t if (index === null || index === undefined) {\n\t index = increment > 0 ? this.clampIndex(-1) : 0;\n\t }\n\t var newIndex = index;\n\t while (true) {\n\t newIndex = this.clampIndex(newIndex + increment);\n\t if (newIndex === index || this.props.children[newIndex].props.isFocusable) {\n\t return newIndex;\n\t }\n\t }\n\t },\n\t\n\t nextFocusableIndex: function nextFocusableIndex(index) {\n\t return this.scanForFocusableIndex(index, 1);\n\t },\n\t\n\t previousFocusableIndex: function previousFocusableIndex(index) {\n\t return this.scanForFocusableIndex(index, -1);\n\t },\n\t\n\t focusOptionAtIndex: function focusOptionAtIndex(index) {\n\t if (!this.state.isOpen && this.state.value) return this.focusSelectedOption();\n\t this.showList();\n\t var length = this.props.children.length;\n\t if (index === -1) index = length - 1;else if (index === length) index = 0;\n\t this.setState({\n\t focusedIndex: index\n\t }, this.focusOption);\n\t },\n\t\n\t focusOption: function focusOption() {\n\t var index = this.state.focusedIndex;\n\t this.refs.list.childNodes[index].focus();\n\t },\n\t\n\t render: function render() {\n\t var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' + 'Press the down arrow to navigate results. If you don\\'t find an ' + 'acceptable option, you can input an alternative. Once you find or ' + 'input the tag you want, press Enter or Comma to add it.';\n\t\n\t return div({ className: this.getClassName() }, this.props.value, this.state.inputValue, input({\n\t ref: 'input',\n\t autoComplete: 'off',\n\t spellCheck: 'false',\n\t 'aria-label': ariaLabel,\n\t 'aria-expanded': this.state.isOpen + '',\n\t 'aria-haspopup': 'true',\n\t 'aria-activedescendant': this.state.menu.activedescendant,\n\t 'aria-autocomplete': 'list',\n\t 'aria-owns': this.state.listId,\n\t id: this.props.id,\n\t disabled: this.props.isDisabled,\n\t className: 'ic-tokeninput-input',\n\t onFocus: this.handleInputFocus,\n\t onClick: this.handleInputClick,\n\t onChange: this.handleInputChange,\n\t onBlur: this.handleInputBlur,\n\t onKeyDown: this.handleKeydown,\n\t onKeyUp: this.handleInputKeyUp,\n\t placeholder: this.props.placeholder,\n\t role: 'combobox'\n\t }), span({\n\t 'aria-hidden': 'true',\n\t className: 'ic-tokeninput-button',\n\t onClick: this.handleButtonClick\n\t }, '▾'), div({\n\t id: this.state.listId,\n\t ref: 'list',\n\t className: 'ic-tokeninput-list',\n\t role: 'listbox'\n\t }, this.state.menu.children));\n\t }\n\t});\n\t\n\tfunction getLabel(component) {\n\t return component.props.label || component.props.children;\n\t}\n\t\n\tfunction matchFragment(userInput, firstChildLabel) {\n\t userInput = userInput.toLowerCase();\n\t firstChildLabel = firstChildLabel.toLowerCase();\n\t if (userInput === '' || userInput === firstChildLabel) return false;\n\t if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1) return false;\n\t return true;\n\t}\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = addClass;\n\t\n\tfunction addClass(existing, added) {\n\t if (!existing) return added;\n\t if (existing.indexOf(added) > -1) return existing;\n\t return existing + ' ' + added;\n\t}\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar addClass = __webpack_require__(3);\n\tvar omit = __webpack_require__(5);\n\tvar div = React.createFactory('div');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t\n\t propTypes: {\n\t\n\t /**\n\t * The value that will be sent to the `onSelect` handler of the\n\t * parent Combobox.\n\t */\n\t value: React.PropTypes.any.isRequired,\n\t\n\t /**\n\t * What value to put into the input element when this option is\n\t * selected, defaults to its children coerced to a string.\n\t */\n\t label: React.PropTypes.string,\n\t\n\t /**\n\t * Whether the element should be selectable\n\t */\n\t isFocusable: React.PropTypes.bool\n\t },\n\t\n\t getDefaultProps: function getDefaultProps() {\n\t return {\n\t role: 'option',\n\t tabIndex: '-1',\n\t className: 'ic-tokeninput-option',\n\t isSelected: false,\n\t isFocusable: true\n\t };\n\t },\n\t\n\t render: function render() {\n\t var props = this.props;\n\t if (props.isSelected) {\n\t props.className = addClass(props.className, 'ic-tokeninput-selected');\n\t props.ariaSelected = true;\n\t }\n\t return div(omit(props, ['isSelected', 'isFocusable']));\n\t }\n\t\n\t});\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/*!\n\t * object.omit \n\t *\n\t * Copyright (c) 2014-2015, Jon Schlinkert.\n\t * Licensed under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tvar isObject = __webpack_require__(6);\n\tvar forOwn = __webpack_require__(7);\n\t\n\tmodule.exports = function omit(obj, keys) {\n\t if (!isObject(obj)) return {};\n\t\n\t keys = [].concat.apply([], [].slice.call(arguments, 1));\n\t var last = keys[keys.length - 1];\n\t var res = {}, fn;\n\t\n\t if (typeof last === 'function') {\n\t fn = keys.pop();\n\t }\n\t\n\t var isFunction = typeof fn === 'function';\n\t if (!keys.length && !isFunction) {\n\t return obj;\n\t }\n\t\n\t forOwn(obj, function(value, key) {\n\t if (keys.indexOf(key) === -1) {\n\t\n\t if (!isFunction) {\n\t res[key] = value;\n\t } else if (fn(value, key, obj)) {\n\t res[key] = value;\n\t }\n\t }\n\t });\n\t return res;\n\t};\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports) {\n\n\t/*!\n\t * is-extendable \n\t *\n\t * Copyright (c) 2015, Jon Schlinkert.\n\t * Licensed under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tmodule.exports = function isExtendable(val) {\n\t return typeof val !== 'undefined' && val !== null\n\t && (typeof val === 'object' || typeof val === 'function');\n\t};\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/*!\n\t * for-own \n\t *\n\t * Copyright (c) 2014-2017, Jon Schlinkert.\n\t * Released under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tvar forIn = __webpack_require__(8);\n\tvar hasOwn = Object.prototype.hasOwnProperty;\n\t\n\tmodule.exports = function forOwn(obj, fn, thisArg) {\n\t forIn(obj, function(val, key) {\n\t if (hasOwn.call(obj, key)) {\n\t return fn.call(thisArg, obj[key], key, obj);\n\t }\n\t });\n\t};\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports) {\n\n\t/*!\n\t * for-in \n\t *\n\t * Copyright (c) 2014-2017, Jon Schlinkert.\n\t * Released under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tmodule.exports = function forIn(obj, fn, thisArg) {\n\t for (var key in obj) {\n\t if (fn.call(thisArg, obj[key], key, obj) === false) {\n\t break;\n\t }\n\t }\n\t};\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar span = React.DOM.span;\n\tvar li = React.createFactory('li');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t handleClick: function handleClick() {\n\t this.props.onRemove(this.props.value);\n\t },\n\t\n\t handleKeyDown: function handleKeyDown(key) {\n\t var enterKey = 13;\n\t if (key.keyCode === enterKey) this.props.onRemove(this.props.value);\n\t },\n\t\n\t ariaLabelRemove: function ariaLabelRemove() {\n\t return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) : 'Remove \\'' + this.props.name + '\\'';\n\t },\n\t\n\t render: function render() {\n\t return li({\n\t className: \"ic-token inline-flex\"\n\t }, span({ className: \"ic-token-label\" }, this.props.name), span({\n\t role: 'button',\n\t onClick: this.handleClick,\n\t onFocus: this.props.onFocus,\n\t onKeyDown: this.handleKeyDown,\n\t 'aria-label': this.ariaLabelRemove(),\n\t className: \"ic-token-delete-button\",\n\t tabIndex: 0\n\t }, \"✕\"));\n\t }\n\t});\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar Combobox = React.createFactory(__webpack_require__(1));\n\tvar Token = React.createFactory(__webpack_require__(9));\n\tvar classnames = __webpack_require__(11);\n\t\n\tvar ul = React.DOM.ul;\n\tvar li = React.DOM.li;\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t propTypes: {\n\t isLoading: React.PropTypes.bool,\n\t loadingComponent: React.PropTypes.any,\n\t onFocus: React.PropTypes.func,\n\t onBlur: React.PropTypes.func,\n\t onInput: React.PropTypes.func.isRequired,\n\t onSelect: React.PropTypes.func.isRequired,\n\t tokenAriaFunc: React.PropTypes.func,\n\t onRemove: React.PropTypes.func.isRequired,\n\t selected: React.PropTypes.array.isRequired,\n\t menuContent: React.PropTypes.any,\n\t showListOnFocus: React.PropTypes.bool,\n\t placeholder: React.PropTypes.string\n\t },\n\t\n\t getInitialState: function getInitialState() {\n\t return {\n\t selectedToken: null\n\t };\n\t },\n\t\n\t handleClick: function handleClick() {\n\t // TODO: Expand combobox API for focus\n\t this.refs['combo-li'].querySelector('input').focus();\n\t },\n\t\n\t handleFocus: function handleFocus() {\n\t if (this.props.onFocus) {\n\t this.props.onFocus();\n\t }\n\t },\n\t\n\t handleBlur: function handleBlur() {\n\t if (this.props.onBlur) {\n\t this.props.onBlur();\n\t }\n\t },\n\t\n\t handleInput: function handleInput(inputValue) {\n\t this.props.onInput(inputValue);\n\t },\n\t\n\t handleSelect: function handleSelect(event, option) {\n\t var input = this.refs['combo-li'].querySelector('input');\n\t this.props.onSelect(event, option);\n\t this.setState({\n\t selectedToken: null\n\t });\n\t this.props.onInput(input.value);\n\t },\n\t\n\t handleRemove: function handleRemove(value) {\n\t var input = this.refs['combo-li'].querySelector('input');\n\t this.props.onRemove(value);\n\t input.focus();\n\t },\n\t\n\t handleRemoveLast: function handleRemoveLast() {\n\t this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n\t },\n\t\n\t render: function render() {\n\t var isDisabled = this.props.isDisabled;\n\t var tokens = this.props.selected.map(function (token) {\n\t return Token({\n\t tokenAriaFunc: this.props.tokenAriaFunc,\n\t onFocus: this.handleFocus,\n\t onRemove: this.handleRemove,\n\t value: token,\n\t name: token.name,\n\t key: token.id });\n\t }.bind(this));\n\t\n\t var classes = classnames('ic-tokens flex', {\n\t 'ic-tokens-disabled': isDisabled\n\t });\n\t\n\t return ul({ className: classes, onClick: this.handleClick }, tokens, li({ className: 'inline-flex', ref: 'combo-li' }, Combobox({\n\t id: this.props.id,\n\t 'aria-label': this.props['combobox-aria-label'],\n\t ariaDisabled: isDisabled,\n\t onFocus: this.handleFocus,\n\t onBlur: this.handleBlur,\n\t onInput: this.handleInput,\n\t showListOnFocus: this.props.showListOnFocus,\n\t onSelect: this.handleSelect,\n\t onRemoveLast: this.handleRemoveLast,\n\t value: this.state.selectedToken,\n\t isDisabled: isDisabled,\n\t placeholder: this.props.placeholder\n\t }, this.props.menuContent)), this.props.isLoading && li({ className: 'ic-tokeninput-loading flex' }, this.props.loadingComponent));\n\t }\n\t});\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n\t Copyright (c) 2016 Jed Watson.\n\t Licensed under the MIT License (MIT), see\n\t http://jedwatson.github.io/classnames\n\t*/\n\t/* global define */\n\t\n\t(function () {\n\t\t'use strict';\n\t\n\t\tvar hasOwn = {}.hasOwnProperty;\n\t\n\t\tfunction classNames () {\n\t\t\tvar classes = [];\n\t\n\t\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\t\tvar arg = arguments[i];\n\t\t\t\tif (!arg) continue;\n\t\n\t\t\t\tvar argType = typeof arg;\n\t\n\t\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\t\tclasses.push(arg);\n\t\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t\t} else if (argType === 'object') {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\treturn classes.join(' ');\n\t\t}\n\t\n\t\tif (typeof module !== 'undefined' && module.exports) {\n\t\t\tmodule.exports = classNames;\n\t\t} else if (true) {\n\t\t\t// register as 'classnames', consistent with npm package name\n\t\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\t\t\t\treturn classNames;\n\t\t\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t\t} else {\n\t\t\twindow.classNames = classNames;\n\t\t}\n\t}());\n\n\n/***/ })\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// react-tokeninput.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap d2d96eb50982bb6e83df","export Combobox from './combobox';\nexport Option from './option';\nexport Token from './token';\nimport main from './main';\n\n/**\n * You can't do an import and then immediately export it :(\n * And `export default TokenInput from './main'` doesn't seem to\n * work either :(\n * So this little variable swapping stuff gets it to work.\n */\nconst TokenInput = main;\nexport default TokenInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var React = require('react');\nvar guid = 0;\nvar k = function(){};\nvar addClass = require('./add-class');\nvar ComboboxOption = require('./option');\n\nvar div = React.createFactory('div');\nvar span = React.createFactory('span');\nvar input = React.createFactory('input');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n /**\n * Called when the combobox's input receives focus and the user begins interacting with it.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onFocus: React.PropTypes.func,\n\n /**\n * Called when the combobox's input loses focus after being activated for user input\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onBlur: React.PropTypes.func,\n\n /**\n * Called when the combobox receives user input, this is your chance to\n * filter the data and rerender the options.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onInput: React.PropTypes.func,\n\n /**\n * Called when the combobox receives a selection. You probably want to reset\n * the options to the full list at this point.\n *\n * Signature:\n *\n * ```js\n * function(selectedValue){}\n * ```\n */\n onSelect: React.PropTypes.func,\n\n /**\n * Shown when the combobox is empty.\n */\n placeholder: React.PropTypes.string\n },\n\n getDefaultProps: function() {\n return {\n autocomplete: 'both',\n onFocus: k,\n onBlur: k,\n onInput: k,\n onSelect: k,\n value: null,\n showListOnFocus: false\n };\n },\n\n getInitialState: function() {\n return {\n value: this.props.value,\n // the value displayed in the input\n inputValue: this.findInitialInputValue(),\n isOpen: false,\n focusedIndex: null,\n matchedAutocompleteOption: null,\n // this prevents crazy jumpiness since we focus options on mouseenter\n usingKeyboard: false,\n activedescendant: null,\n listId: 'ic-tokeninput-list-'+(++guid),\n menu: {\n children: [],\n activedescendant: null,\n isEmpty: true\n }\n };\n },\n\n componentWillMount: function() {\n this.setState({menu: this.makeMenu(this.props.children)});\n },\n\n componentWillReceiveProps: function(newProps) {\n this.setState({menu: this.makeMenu(newProps.children)}, function() {\n if(newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({\n isOpen: true\n }, function() {\n this.refs.list.scrollTop = 0;\n }.bind(this))\n } else {\n this.hideList();\n }\n\n }.bind(this));\n },\n\n /**\n * We don't create the components, the user supplies them,\n * so before rendering we attach handlers to facilitate communication from\n * the ComboboxOption to the Combobox.\n */\n makeMenu: function(children) {\n var activedescendant;\n var isEmpty = true;\n\n // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n var _children = React.Children.map(children, function(child, index) {\n // console.log(child.type, ComboboxOption.type)\n if (child.type !== ComboboxOption || !child.props.isFocusable) {\n // allow random elements to live in this list\n return child;\n }\n isEmpty = false;\n // TODO: cloneWithProps and map instead of altering the children in-place\n var props = child.props;\n var newProps = {};\n if (this.state.value === child.props.value) {\n // need an ID for WAI-ARIA\n newProps.id = props.id || 'ic-tokeninput-selected-'+(++guid);\n newProps.isSelected = true\n activedescendant = props.id;\n }\n newProps.onBlur = this.handleOptionBlur;\n newProps.onClick = this.selectOption.bind(this, child);\n newProps.onFocus = this.handleOptionFocus;\n newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n newProps.onTouchStart = this.handleOptionMouseEnter.bind(this, index);\n\n return React.cloneElement(child, newProps);\n }.bind(this));\n\n return {\n children: _children,\n activedescendant: activedescendant,\n isEmpty: isEmpty\n };\n },\n\n getClassName: function() {\n var className = addClass(this.props.className, 'ic-tokeninput');\n if (this.state.isOpen)\n className = addClass(className, 'ic-tokeninput-is-open');\n return className;\n },\n\n /**\n * When the user begins typing again we need to clear out any state that has\n * to do with an existing or potential selection.\n */\n clearSelectedState: function(cb) {\n this.setState({\n focusedIndex: null,\n inputValue: null,\n value: null,\n matchedAutocompleteOption: null,\n activedescendant: null\n }, cb);\n },\n\n handleInputChange: function() {\n var value = this.refs.input.value;\n this.clearSelectedState(function() {\n this.props.onInput(value);\n }.bind(this));\n },\n\n handleInputFocus: function() {\n this.props.onFocus();\n this.maybeShowList();\n },\n\n handleInputClick: function() {\n this.maybeShowList();\n },\n\n maybeShowList: function(){\n if (this.props.showListOnFocus){\n this.showList()\n }\n },\n\n handleInputBlur: function() {\n var focusedAnOption = this.state.focusedIndex != null;\n if (focusedAnOption)\n return;\n this.maybeSelectAutocompletedOption();\n this.hideList();\n this.props.onBlur();\n },\n\n handleOptionBlur: function() {\n // don't want to hide the list if we focused another option\n this.blurTimer = setTimeout(this.hideList, 0);\n },\n\n\n handleOptionFocus: function() {\n // see `handleOptionBlur`\n clearTimeout(this.blurTimer);\n },\n\n handleInputKeyUp: function(event) {\n if (\n this.state.menu.isEmpty ||\n // autocompleting while backspacing feels super weird, so let's not\n event.keyCode === 8 /*backspace*/ ||\n !this.props.autocomplete.match(/both|inline/)\n ) return;\n },\n\n handleButtonClick: function() {\n this.state.isOpen ? this.hideList() : this.showList();\n this.focusInput();\n },\n\n showList: function() {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({isOpen: true})\n },\n\n hideList: function() {\n this.setState({\n isOpen: false,\n focusedIndex: null\n });\n },\n\n hideOnEscape: function(event) {\n this.hideList();\n this.focusInput();\n event.preventDefault();\n },\n\n focusInput: function() {\n this.refs.input.focus();\n },\n\n selectInput: function() {\n this.refs.input.select();\n },\n\n inputKeydownMap: {\n 8: 'removeLastToken', // delete\n 13: 'selectOnEnter', // enter\n 188: 'selectOnEnter', // comma\n 27: 'hideOnEscape', // escape\n 38: 'focusPrevious', // up arrow\n 40: 'focusNext' // down arrow\n },\n\n optionKeydownMap: {\n 13: 'selectOption',\n 27: 'hideOnEscape',\n 38: 'focusPrevious',\n 40: 'focusNext'\n },\n\n handleKeydown: function(event) {\n var handlerName = this.inputKeydownMap[event.keyCode];\n if (!handlerName)\n return\n this.setState({usingKeyboard: true});\n return this[handlerName].call(this,event);\n },\n\n handleOptionKeyDown: function(child, event) {\n var handlerName = this.optionKeydownMap[event.keyCode];\n if (!handlerName) {\n // if the user starts typing again while focused on an option, move focus\n // to the inpute, select so it wipes out any existing value\n this.selectInput();\n return;\n }\n event.preventDefault();\n this.setState({usingKeyboard: true});\n this[handlerName].call(this, child);\n },\n\n handleOptionMouseEnter: function(index) {\n if (this.state.usingKeyboard) {\n this.setState({ usingKeyboard: false });\n }\n\n this.focusOptionAtIndex(index);\n },\n\n selectOnEnter: function(event) {\n event.preventDefault();\n this.maybeSelectAutocompletedOption()\n },\n\n maybeSelectAutocompletedOption: function() {\n if (!this.state.matchedAutocompleteOption) {\n this.selectText()\n } else {\n this.selectOption(this.state.matchedAutocompleteOption, {focus: false});\n }\n },\n\n selectOption: function(child, options) {\n options = options || {};\n this.setState({\n // value: child.props.value,\n // inputValue: getLabel(child),\n matchedAutocompleteOption: null\n }, function() {\n this.props.onSelect(child.props.value, child);\n this.hideList();\n this.clearSelectedState(); // added\n if (options.focus !== false)\n this.selectInput();\n }.bind(this));\n this.refs.input.value = '' // added\n },\n\n selectText: function() {\n var value = this.refs.input.value;\n if(!value) return;\n this.props.onSelect(value);\n this.clearSelectedState();\n this.refs.input.value = '' // added\n },\n\n focusNext: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.nextFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n removeLastToken: function() {\n if(this.props.onRemoveLast && !this.refs.input.value) {\n this.props.onRemoveLast()\n }\n return true\n },\n\n focusPrevious: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.previousFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n focusSelectedOption: function() {\n var selectedIndex;\n React.Children.forEach(this.props.children, function(child, index) {\n if (child.props.value === this.state.value)\n selectedIndex = index;\n }.bind(this));\n this.showList();\n this.setState({\n focusedIndex: selectedIndex\n }, this.focusOption);\n },\n\n findInitialInputValue: function() {\n // TODO: might not need this, we should know this in `makeMenu`\n var inputValue;\n React.Children.forEach(this.props.children, function(child) {\n if (child.props.value === this.props.value)\n inputValue = getLabel(child);\n }.bind(this));\n return inputValue;\n },\n\n clampIndex: function(index) {\n if (index < 0) {\n return this.props.children.length - 1\n } else if (index >= this.props.children.length) {\n return 0\n }\n return index\n },\n\n scanForFocusableIndex: function(index, increment) {\n if (index === null || index === undefined) {\n index = increment > 0 ? this.clampIndex(-1) : 0\n }\n var newIndex = index\n while (true) {\n newIndex = this.clampIndex(newIndex + increment)\n if (newIndex === index ||\n this.props.children[newIndex].props.isFocusable)\n {\n return newIndex\n }\n }\n },\n\n nextFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, 1)\n },\n\n previousFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, -1)\n },\n\n focusOptionAtIndex: function(index) {\n if (!this.state.isOpen && this.state.value)\n return this.focusSelectedOption();\n this.showList();\n var length = this.props.children.length;\n if (index === -1)\n index = length - 1;\n else if (index === length)\n index = 0;\n this.setState({\n focusedIndex: index\n }, this.focusOption);\n },\n\n focusOption: function() {\n var index = this.state.focusedIndex;\n this.refs.list.childNodes[index].focus();\n },\n\n render: function() {\n var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' +\n 'Press the down arrow to navigate results. If you don\\'t find an ' +\n 'acceptable option, you can input an alternative. Once you find or ' +\n 'input the tag you want, press Enter or Comma to add it.'\n\n return div({className: this.getClassName()},\n this.props.value,\n this.state.inputValue,\n input({\n ref: 'input',\n autoComplete: 'off',\n spellCheck: 'false',\n 'aria-label': ariaLabel,\n 'aria-expanded': this.state.isOpen+'',\n 'aria-haspopup': 'true',\n 'aria-activedescendant': this.state.menu.activedescendant,\n 'aria-autocomplete': 'list',\n 'aria-owns': this.state.listId,\n id: this.props.id,\n disabled: this.props.isDisabled,\n className: 'ic-tokeninput-input',\n onFocus: this.handleInputFocus,\n onClick: this.handleInputClick,\n onChange: this.handleInputChange,\n onBlur: this.handleInputBlur,\n onKeyDown: this.handleKeydown,\n onKeyUp: this.handleInputKeyUp,\n placeholder: this.props.placeholder,\n role: 'combobox'\n }),\n span({\n 'aria-hidden': 'true',\n className: 'ic-tokeninput-button',\n onClick: this.handleButtonClick\n }, '▾'),\n div({\n id: this.state.listId,\n ref: 'list',\n className: 'ic-tokeninput-list',\n role: 'listbox'\n }, this.state.menu.children)\n );\n }\n});\n\nfunction getLabel(component) {\n return component.props.label || component.props.children;\n}\n\nfunction matchFragment(userInput, firstChildLabel) {\n userInput = userInput.toLowerCase();\n firstChildLabel = firstChildLabel.toLowerCase();\n if (userInput === '' || userInput === firstChildLabel)\n return false;\n if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1)\n return false;\n return true;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/combobox.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 2\n// module chunks = 0 1","module.exports = addClass;\n\nfunction addClass(existing, added) {\n if (!existing) return added;\n if (existing.indexOf(added) > -1) return existing;\n return existing + ' ' + added;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/add-class.js","var React = require('react');\nvar addClass = require('./add-class');\nvar omit = require('object.omit');\nvar div = React.createFactory('div');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n\n /**\n * The value that will be sent to the `onSelect` handler of the\n * parent Combobox.\n */\n value: React.PropTypes.any.isRequired,\n\n /**\n * What value to put into the input element when this option is\n * selected, defaults to its children coerced to a string.\n */\n label: React.PropTypes.string,\n\n /**\n * Whether the element should be selectable\n */\n isFocusable: React.PropTypes.bool\n },\n\n getDefaultProps: function() {\n return {\n role: 'option',\n tabIndex: '-1',\n className: 'ic-tokeninput-option',\n isSelected: false,\n isFocusable: true\n };\n },\n\n render: function() {\n var props = this.props;\n if (props.isSelected) {\n props.className = addClass(props.className, 'ic-tokeninput-selected');\n props.ariaSelected = true;\n }\n return div(omit(props, ['isSelected', 'isFocusable']));\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/option.js","/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('is-extendable');\nvar forOwn = require('for-own');\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function(value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object.omit/index.js\n// module id = 5\n// module chunks = 0 1","/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/is-extendable/index.js\n// module id = 6\n// module chunks = 0 1","/*!\n * for-own \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar forIn = require('for-in');\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(obj, fn, thisArg) {\n forIn(obj, function(val, key) {\n if (hasOwn.call(obj, key)) {\n return fn.call(thisArg, obj[key], key, obj);\n }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-own/index.js\n// module id = 7\n// module chunks = 0 1","/*!\n * for-in \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(obj, fn, thisArg) {\n for (var key in obj) {\n if (fn.call(thisArg, obj[key], key, obj) === false) {\n break;\n }\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-in/index.js\n// module id = 8\n// module chunks = 0 1","var React = require('react');\nvar span = React.DOM.span;\nvar li = React.createFactory('li');\n\nmodule.exports = React.createClass({\n handleClick: function() {\n this.props.onRemove(this.props.value)\n },\n\n handleKeyDown: function(key) {\n var enterKey = 13;\n if(key.keyCode === enterKey) this.props.onRemove(this.props.value)\n },\n\n ariaLabelRemove: function ariaLabelRemove() {\n return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) :\n 'Remove \\'' + this.props.name + '\\'';\n },\n\n render: function() {\n return (\n li({\n className: \"ic-token inline-flex\"\n },\n span({className: \"ic-token-label\"}, this.props.name),\n span({\n role: 'button',\n onClick: this.handleClick,\n onFocus: this.props.onFocus,\n onKeyDown: this.handleKeyDown,\n 'aria-label': this.ariaLabelRemove(),\n className: \"ic-token-delete-button\",\n tabIndex: 0\n }, \"✕\")\n )\n )\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/token.js","var React = require('react');\nvar Combobox = React.createFactory(require('./combobox'));\nvar Token = React.createFactory(require('./token'));\nvar classnames = require('classnames');\n\nvar ul = React.DOM.ul;\nvar li = React.DOM.li;\n\nmodule.exports = React.createClass({\n propTypes: {\n isLoading: React.PropTypes.bool,\n loadingComponent: React.PropTypes.any,\n onFocus: React.PropTypes.func,\n onBlur: React.PropTypes.func,\n onInput: React.PropTypes.func.isRequired,\n onSelect: React.PropTypes.func.isRequired,\n tokenAriaFunc: React.PropTypes.func,\n onRemove: React.PropTypes.func.isRequired,\n selected: React.PropTypes.array.isRequired,\n menuContent: React.PropTypes.any,\n showListOnFocus: React.PropTypes.bool,\n placeholder: React.PropTypes.string\n },\n\n getInitialState: function() {\n return {\n selectedToken: null\n };\n },\n\n handleClick: function() {\n // TODO: Expand combobox API for focus\n this.refs['combo-li'].querySelector('input').focus();\n },\n\n handleFocus: function() {\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n },\n\n handleBlur: function() {\n if (this.props.onBlur) {\n this.props.onBlur();\n }\n },\n\n handleInput: function(inputValue) {\n this.props.onInput(inputValue);\n },\n\n handleSelect: function(event, option) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onSelect(event, option)\n this.setState({\n selectedToken: null\n })\n this.props.onInput(input.value);\n },\n\n handleRemove: function(value) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onRemove(value);\n input.focus();\n },\n\n handleRemoveLast: function() {\n this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n },\n\n render: function() {\n var isDisabled = this.props.isDisabled;\n var tokens = this.props.selected.map(function(token) {\n return (\n Token({\n tokenAriaFunc: this.props.tokenAriaFunc,\n onFocus: this.handleFocus,\n onRemove: this.handleRemove,\n value: token,\n name: token.name,\n key: token.id})\n )\n }.bind(this))\n\n var classes = classnames('ic-tokens flex', {\n 'ic-tokens-disabled': isDisabled\n });\n\n return ul({className: classes, onClick: this.handleClick},\n tokens,\n li({className: 'inline-flex', ref: 'combo-li'},\n Combobox({\n id: this.props.id,\n 'aria-label': this.props['combobox-aria-label'],\n ariaDisabled: isDisabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n onInput: this.handleInput,\n showListOnFocus: this.props.showListOnFocus,\n onSelect: this.handleSelect,\n onRemoveLast: this.handleRemoveLast,\n value: this.state.selectedToken,\n isDisabled: isDisabled,\n placeholder: this.props.placeholder\n },\n this.props.menuContent\n )\n ),\n this.props.isLoading && li({className: 'ic-tokeninput-loading flex'}, this.props.loadingComponent)\n );\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 11\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file diff --git a/lib/combobox.js b/lib/combobox.js index db9fcba..5537112 100644 --- a/lib/combobox.js +++ b/lib/combobox.js @@ -151,6 +151,7 @@ module.exports = React.createClass({ newProps.onFocus = this.handleOptionFocus; newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child); newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index); + newProps.onTouchStart = this.handleOptionMouseEnter.bind(this, index); return React.cloneElement(child, newProps); }.bind(this)); From de9dfa6714ea31b11848f87e0152d327cb982e18 Mon Sep 17 00:00:00 2001 From: Adam Tombleson Date: Fri, 11 Aug 2017 16:18:41 +0545 Subject: [PATCH 11/23] refactor to remove react warnings --- .babelrc | 6 +- .eslintrc.json | 118 ++++++++ dist/react-tokeninput.js | 209 ++++++++------ dist/react-tokeninput.js.map | 2 +- dist/react-tokeninput.min.js | 10 +- dist/react-tokeninput.min.js.map | 2 +- example/bundle.js.map | 1 - example/{main.js => example.js} | 92 +++--- example/index.html | 18 +- example/names.js | 2 +- example/webpack.config.js | 15 - lib/add-class.js | 9 - lib/combobox.js | 478 ------------------------------- lib/index.js | 38 --- lib/main.js | 106 ------- lib/option.js | 51 ---- lib/token.js | 36 --- package.json | 40 +-- src/add-class.js | 6 +- src/combobox.js | 332 ++++++++++----------- src/index.js | 11 +- src/main.js | 161 ++++++----- src/option.js | 39 +-- src/token.js | 53 ++-- webpack.base.config.js | 90 ++++++ webpack.config.js | 52 ++-- webpack.dev.config.js | 40 +++ webpack.dist.config.js | 46 --- webpack.js | 9 + webpack.prod.config.js | 78 +++++ 30 files changed, 893 insertions(+), 1257 deletions(-) create mode 100644 .eslintrc.json delete mode 100644 example/bundle.js.map rename example/{main.js => example.js} (64%) delete mode 100644 example/webpack.config.js delete mode 100644 lib/add-class.js delete mode 100644 lib/combobox.js delete mode 100644 lib/index.js delete mode 100644 lib/main.js delete mode 100644 lib/option.js delete mode 100644 lib/token.js create mode 100644 webpack.base.config.js create mode 100644 webpack.dev.config.js delete mode 100644 webpack.dist.config.js create mode 100644 webpack.js create mode 100644 webpack.prod.config.js diff --git a/.babelrc b/.babelrc index ef2bf99..e3abc66 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,7 @@ { - "presets": ["es2015", "react", "stage-1"] + "presets": ["es2015", "react", "stage-1"], + "plugins": [ + "react-hot-loader/babel" + ], + } \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..111a43f --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,118 @@ +{ + "plugins": ["babel", "react"], + "parser": "babel-eslint", + "parserOptions": { + "ecmaFeatures": { + "jsx": true + } + }, + "extends": ["eslint:recommended", "plugin:react/recommended"], + "env": { + "browser": true, + "es6": true, + "mocha": true, + "jest": true + }, + "globals": { + "Backbone": true, + "jest": true, + "define": true, + "document": true, + "dust": true, + "Foundation": true, + "Marionette": true, + "Modernizr": true, + "module": true, + "require": true, + "requirejs": true, + "after": false, + "afterEach": false, + "assert": false, + "before": false, + "beforeEach": false, + "describe": false, + "expect": false, + "it": false, + "mocha": false, + "sinon": false + }, + "rules": { + "array-bracket-spacing": 1, + "arrow-parens": 1, + "arrow-spacing": 1, + "brace-style": [1, "1tbs", {"allowSingleLine": true}], + "comma-spacing": [1, {"after": true}], + "curly": 1, + "dot-notation": [1, {"allowKeywords": true}], + "eol-last": 1, + "eqeqeq": 1, + "generator-star-spacing": 1, + "guard-for-in": 1, + "key-spacing": [1, {"mode": "strict"}], + "keyword-spacing": [1, {}], + "max-len": [1, 150, {"ignoreComments": true}, {"ignoreTrailingComments": true}], + "new-parens": 1, + "no-bitwise": 1, + "no-caller": 1, + "no-cond-assign": 1, + "no-const-assign": 2, + "no-console": [1, {"allow": ["warn", "error"] }], + "no-debugger": 1, + "no-dupe-args": 1, + "no-dupe-keys": 1, + "no-duplicate-case": 1, + "no-empty": 1, + "no-eval": 1, + "no-extend-native": 1, + "no-extra-semi": 1, + "no-fallthrough": 1, + "no-irregular-whitespace": 1, + "no-iterator": 1, + "no-loop-func": 1, + "no-mixed-spaces-and-tabs": 1, + "no-multi-spaces": 1, + "no-multi-str": 1, + "no-multiple-empty-lines": [1, {"max": 1}], + "no-obj-calls": 1, + "no-process-exit": 1, + "no-proto": 1, + "no-return-assign": 1, + "no-script-url": 1, + "no-spaced-func": 1, + "no-this-before-super": 1, + "no-trailing-spaces": 1, + "no-undef": 1, + "no-unexpected-multiline": 1, + "no-unreachable": 1, + "no-unused-vars": 1, + "no-use-before-define": 1, + "no-with": 1, + "object-curly-spacing": 1, + "object-shorthand": 1, + "operator-linebreak": [1, "after"], + "quotes": [1, "single", {"allowTemplateLiterals": true}], + "jsx-quotes": ["error", "prefer-single"], + "react/jsx-closing-bracket-location": 1, + "react/jsx-equals-spacing": 1, + "react/jsx-indent": [1, "space"], + "react/jsx-indent-props": [1, "space"], + "react/jsx-no-duplicate-props": 1, + "react/jsx-no-undef": 1, + "react/jsx-tag-spacing": [1, {"beforeSelfClosing": "always"}], + "react/jsx-uses-react": 1, + "react/jsx-uses-vars": 1, + "react/no-unescaped-entities": 1, + "react/no-unknown-property": 1, + "require-yield": 1, + "semi": [0, "never"], + "space-before-blocks": [1, "always"], + "space-before-function-paren": [1, "never"], + "space-in-parens": [1, "never"], + "space-infix-ops": 1, + "space-unary-ops": [1, {"nonwords": false, "overrides": {}}], + "spaced-comment": [1, "always", {"exceptions": ["*"],"markers": ["global"]}], + "valid-typeof": 1, + "wrap-iife": [1, "any"], + "yield-star-spacing": [1, "after"] + } +} diff --git a/dist/react-tokeninput.js b/dist/react-tokeninput.js index c022e28..a3e609a 100644 --- a/dist/react-tokeninput.js +++ b/dist/react-tokeninput.js @@ -811,110 +811,141 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var React = __webpack_require__(2); - var Combobox = React.createFactory(__webpack_require__(1)); - var Token = React.createFactory(__webpack_require__(9)); - var classnames = __webpack_require__(11); + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.Main = undefined; - var ul = React.DOM.ul; - var li = React.DOM.li; + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - module.exports = React.createClass({ - displayName: 'exports', + var _react = __webpack_require__(2); - propTypes: { - isLoading: React.PropTypes.bool, - loadingComponent: React.PropTypes.any, - onFocus: React.PropTypes.func, - onBlur: React.PropTypes.func, - onInput: React.PropTypes.func.isRequired, - onSelect: React.PropTypes.func.isRequired, - tokenAriaFunc: React.PropTypes.func, - onRemove: React.PropTypes.func.isRequired, - selected: React.PropTypes.array.isRequired, - menuContent: React.PropTypes.any, - showListOnFocus: React.PropTypes.bool, - placeholder: React.PropTypes.string - }, + var _react2 = _interopRequireDefault(_react); - getInitialState: function getInitialState() { - return { - selectedToken: null - }; - }, + var _classnames = __webpack_require__(11); - handleClick: function handleClick() { - // TODO: Expand combobox API for focus - this.refs['combo-li'].querySelector('input').focus(); - }, + var _classnames2 = _interopRequireDefault(_classnames); - handleFocus: function handleFocus() { - if (this.props.onFocus) { - this.props.onFocus(); - } - }, + var _combobox = __webpack_require__(1); - handleBlur: function handleBlur() { - if (this.props.onBlur) { - this.props.onBlur(); - } - }, + var _combobox2 = _interopRequireDefault(_combobox); - handleInput: function handleInput(inputValue) { - this.props.onInput(inputValue); - }, + var _token = __webpack_require__(9); - handleSelect: function handleSelect(event, option) { - var input = this.refs['combo-li'].querySelector('input'); - this.props.onSelect(event, option); - this.setState({ - selectedToken: null - }); - this.props.onInput(input.value); - }, + var _token2 = _interopRequireDefault(_token); - handleRemove: function handleRemove(value) { - var input = this.refs['combo-li'].querySelector('input'); - this.props.onRemove(value); - input.focus(); - }, + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - handleRemoveLast: function handleRemoveLast() { - this.props.onRemove(this.props.selected[this.props.selected.length - 1]); - }, + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - render: function render() { - var isDisabled = this.props.isDisabled; - var tokens = this.props.selected.map(function (token) { - return Token({ - tokenAriaFunc: this.props.tokenAriaFunc, - onFocus: this.handleFocus, - onRemove: this.handleRemove, - value: token, - name: token.name, - key: token.id }); - }.bind(this)); + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var classes = classnames('ic-tokens flex', { - 'ic-tokens-disabled': isDisabled - }); + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - return ul({ className: classes, onClick: this.handleClick }, tokens, li({ className: 'inline-flex', ref: 'combo-li' }, Combobox({ - id: this.props.id, - 'aria-label': this.props['combobox-aria-label'], - ariaDisabled: isDisabled, - onFocus: this.handleFocus, - onBlur: this.handleBlur, - onInput: this.handleInput, - showListOnFocus: this.props.showListOnFocus, - onSelect: this.handleSelect, - onRemoveLast: this.handleRemoveLast, - value: this.state.selectedToken, - isDisabled: isDisabled, - placeholder: this.props.placeholder - }, this.props.menuContent)), this.props.isLoading && li({ className: 'ic-tokeninput-loading flex' }, this.props.loadingComponent)); + var Combobox = _react2.default.createFactory(_combobox2.default); + var Token = _react2.default.createFactory(_token2.default); + + var ul = _react2.default.DOM.ul; + var li = _react2.default.DOM.li; + + var Main = exports.Main = function (_React$Component) { + _inherits(Main, _React$Component); + + function Main(props) { + _classCallCheck(this, Main); + + var _this = _possibleConstructorReturn(this, (Main.__proto__ || Object.getPrototypeOf(Main)).call(this, props)); + + _this.state = { + selectedToken: null + }; + return _this; } - }); + + _createClass(Main, [{ + key: 'handleClick', + value: function handleClick() { + // TODO: Expand combobox API for focus + this.refs['combo-li'].querySelector('input').focus(); + } + }, { + key: 'handleFocus', + value: function handleFocus() { + if (this.props.onFocus) { + this.props.onFocus(); + } + } + }, { + key: 'handleBlur', + value: function handleBlur() { + if (this.props.onBlur) { + this.props.onBlur(); + } + } + }, { + key: 'handleInput', + value: function handleInput(inputValue) { + this.props.onInput(inputValue); + } + }, { + key: 'handleSelect', + value: function handleSelect(event, option) { + var input = this.refs['combo-li'].querySelector('input'); + this.props.onSelect(event, option); + this.setState({ + selectedToken: null + }); + this.props.onInput(input.value); + } + }, { + key: 'handleRemove', + value: function handleRemove(value) { + var input = this.refs['combo-li'].querySelector('input'); + this.props.onRemove(value); + input.focus(); + } + }, { + key: 'handleRemoveLast', + value: function handleRemoveLast() { + this.props.onRemove(this.props.selected[this.props.selected.length - 1]); + } + }, { + key: 'render', + value: function render() { + var isDisabled = this.props.isDisabled; + var tokens = this.props.selected.map(function (token) { + return Token({ + tokenAriaFunc: this.props.tokenAriaFunc, + onFocus: this.handleFocus, + onRemove: this.handleRemove, + value: token, + name: token.name, + key: token.id }); + }.bind(this)); + + var classes = (0, _classnames2.default)('ic-tokens flex', { + 'ic-tokens-disabled': isDisabled + }); + + return ul({ className: classes, onClick: this.handleClick }, tokens, li({ className: 'inline-flex', ref: 'combo-li' }, Combobox({ + id: this.props.id, + 'aria-label': this.props['combobox-aria-label'], + ariaDisabled: isDisabled, + onFocus: this.handleFocus, + onBlur: this.handleBlur, + onInput: this.handleInput, + showListOnFocus: this.props.showListOnFocus, + onSelect: this.handleSelect, + onRemoveLast: this.handleRemoveLast, + value: this.state.selectedToken, + isDisabled: isDisabled, + placeholder: this.props.placeholder + }, this.props.menuContent)), this.props.isLoading && li({ className: 'ic-tokeninput-loading flex' }, this.props.loadingComponent)); + } + }]); + + return Main; + }(_react2.default.Component); /***/ }), /* 11 */ diff --git a/dist/react-tokeninput.js.map b/dist/react-tokeninput.js.map index 855d239..b4bb7fa 100644 --- a/dist/react-tokeninput.js.map +++ b/dist/react-tokeninput.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap d2d96eb50982bb6e83df","webpack:///./src/index.js","webpack:///./src/combobox.js","webpack:///external \"react\"","webpack:///./src/add-class.js","webpack:///./src/option.js","webpack:///./~/object.omit/index.js","webpack:///./~/is-extendable/index.js","webpack:///./~/for-own/index.js","webpack:///./~/for-in/index.js","webpack:///./src/token.js","webpack:///./src/main.js","webpack:///./~/classnames/index.js"],"names":["Combobox","Option","Token","TokenInput","React","require","guid","k","addClass","ComboboxOption","div","createFactory","span","input","module","exports","createClass","propTypes","onFocus","PropTypes","func","onBlur","onInput","onSelect","placeholder","string","getDefaultProps","autocomplete","value","showListOnFocus","getInitialState","props","inputValue","findInitialInputValue","isOpen","focusedIndex","matchedAutocompleteOption","usingKeyboard","activedescendant","listId","menu","children","isEmpty","componentWillMount","setState","makeMenu","componentWillReceiveProps","newProps","length","document","activeElement","refs","state","list","scrollTop","bind","hideList","_children","Children","map","child","index","type","isFocusable","id","isSelected","handleOptionBlur","onClick","selectOption","handleOptionFocus","onKeyDown","handleOptionKeyDown","onMouseEnter","handleOptionMouseEnter","onTouchStart","cloneElement","getClassName","className","clearSelectedState","cb","handleInputChange","handleInputFocus","maybeShowList","handleInputClick","showList","handleInputBlur","focusedAnOption","maybeSelectAutocompletedOption","blurTimer","setTimeout","clearTimeout","handleInputKeyUp","event","keyCode","match","handleButtonClick","focusInput","hideOnEscape","preventDefault","focus","selectInput","select","inputKeydownMap","optionKeydownMap","handleKeydown","handlerName","call","focusOptionAtIndex","selectOnEnter","selectText","options","focusNext","nextFocusableIndex","removeLastToken","onRemoveLast","focusPrevious","previousFocusableIndex","focusSelectedOption","selectedIndex","forEach","focusOption","getLabel","clampIndex","scanForFocusableIndex","increment","undefined","newIndex","childNodes","render","ariaLabel","ref","autoComplete","spellCheck","disabled","isDisabled","onChange","onKeyUp","role","component","label","matchFragment","userInput","firstChildLabel","toLowerCase","indexOf","existing","added","omit","any","isRequired","bool","tabIndex","ariaSelected","DOM","li","handleClick","onRemove","handleKeyDown","key","enterKey","ariaLabelRemove","tokenAriaFunc","name","classnames","ul","isLoading","loadingComponent","selected","array","menuContent","selectedToken","querySelector","handleFocus","handleBlur","handleInput","handleSelect","option","handleRemove","handleRemoveLast","tokens","token","classes","ariaDisabled"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;ACnCA;;;;;;SAHOA,Q;SACAC,M;SACAC,K;;;AAGP;;;;;;AAMA,KAAMC,2BAAN;mBACeA,U;;;;;;;;ACZf,KAAIC,QAAQ,mBAAAC,CAAQ,CAAR,CAAZ;AACA,KAAIC,OAAO,CAAX;AACA,KAAIC,IAAI,SAAJA,CAAI,GAAU,CAAE,CAApB;AACA,KAAIC,WAAW,mBAAAH,CAAQ,CAAR,CAAf;AACA,KAAII,iBAAiB,mBAAAJ,CAAQ,CAAR,CAArB;;AAEA,KAAIK,MAAMN,MAAMO,aAAN,CAAoB,KAApB,CAAV;AACA,KAAIC,OAAOR,MAAMO,aAAN,CAAoB,MAApB,CAAX;AACA,KAAIE,QAAQT,MAAMO,aAAN,CAAoB,OAApB,CAAZ;;AAEAG,QAAOC,OAAP,GAAiBX,MAAMY,WAAN,CAAkB;AAAA;;;AAEjCC,cAAW;AACT;;;;;;;;;AASAC,cAASd,MAAMe,SAAN,CAAgBC,I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PrB;AAQPN,iBAAU,KAAKwJ,YARR;AASP7D,qBAAc,KAAKgE,gBATZ;AAUPtJ,cAAO,KAAKwB,KAAL,CAAWsH,aAVX;AAWPpC,mBAAYA,UAXL;AAYP9G,oBAAa,KAAKO,KAAL,CAAWP;AAZjB,MAAT,EAcE,KAAKO,KAAL,CAAW0I,WAdb,CADF,CAFK,EAoBL,KAAK1I,KAAL,CAAWsI,SAAX,IAAwBX,GAAG,EAAC7E,WAAW,4BAAZ,EAAH,EAA8C,KAAK9C,KAAL,CAAWuI,gBAAzD,CApBnB,CAAP;AAsBD;AAtGgC,EAAlB,CAAjB,C;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iBAAgB;;AAEhB;AACA;;AAEA,kBAAiB,sBAAsB;AACvC;AACA;;AAEA;;AAEA;AACA;AACA,KAAI;AACJ;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAE;AACF;AACA;AACA;AACA,IAAG;AACH,GAAE;AACF;AACA;AACA,EAAC","file":"react-tokeninput.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap d2d96eb50982bb6e83df","export Combobox from './combobox';\nexport Option from './option';\nexport Token from './token';\nimport main from './main';\n\n/**\n * You can't do an import and then immediately export it :(\n * And `export default TokenInput from './main'` doesn't seem to\n * work either :(\n * So this little variable swapping stuff gets it to work.\n */\nconst TokenInput = main;\nexport default TokenInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var React = require('react');\nvar guid = 0;\nvar k = function(){};\nvar addClass = require('./add-class');\nvar ComboboxOption = require('./option');\n\nvar div = React.createFactory('div');\nvar span = React.createFactory('span');\nvar input = React.createFactory('input');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n /**\n * Called when the combobox's input receives focus and the user begins interacting with it.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onFocus: React.PropTypes.func,\n\n /**\n * Called when the combobox's input loses focus after being activated for user input\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onBlur: React.PropTypes.func,\n\n /**\n * Called when the combobox receives user input, this is your chance to\n * filter the data and rerender the options.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onInput: React.PropTypes.func,\n\n /**\n * Called when the combobox receives a selection. You probably want to reset\n * the options to the full list at this point.\n *\n * Signature:\n *\n * ```js\n * function(selectedValue){}\n * ```\n */\n onSelect: React.PropTypes.func,\n\n /**\n * Shown when the combobox is empty.\n */\n placeholder: React.PropTypes.string\n },\n\n getDefaultProps: function() {\n return {\n autocomplete: 'both',\n onFocus: k,\n onBlur: k,\n onInput: k,\n onSelect: k,\n value: null,\n showListOnFocus: false\n };\n },\n\n getInitialState: function() {\n return {\n value: this.props.value,\n // the value displayed in the input\n inputValue: this.findInitialInputValue(),\n isOpen: false,\n focusedIndex: null,\n matchedAutocompleteOption: null,\n // this prevents crazy jumpiness since we focus options on mouseenter\n usingKeyboard: false,\n activedescendant: null,\n listId: 'ic-tokeninput-list-'+(++guid),\n menu: {\n children: [],\n activedescendant: null,\n isEmpty: true\n }\n };\n },\n\n componentWillMount: function() {\n this.setState({menu: this.makeMenu(this.props.children)});\n },\n\n componentWillReceiveProps: function(newProps) {\n this.setState({menu: this.makeMenu(newProps.children)}, function() {\n if(newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({\n isOpen: true\n }, function() {\n this.refs.list.scrollTop = 0;\n }.bind(this))\n } else {\n this.hideList();\n }\n\n }.bind(this));\n },\n\n /**\n * We don't create the components, the user supplies them,\n * so before rendering we attach handlers to facilitate communication from\n * the ComboboxOption to the Combobox.\n */\n makeMenu: function(children) {\n var activedescendant;\n var isEmpty = true;\n\n // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n var _children = React.Children.map(children, function(child, index) {\n // console.log(child.type, ComboboxOption.type)\n if (child.type !== ComboboxOption || !child.props.isFocusable) {\n // allow random elements to live in this list\n return child;\n }\n isEmpty = false;\n // TODO: cloneWithProps and map instead of altering the children in-place\n var props = child.props;\n var newProps = {};\n if (this.state.value === child.props.value) {\n // need an ID for WAI-ARIA\n newProps.id = props.id || 'ic-tokeninput-selected-'+(++guid);\n newProps.isSelected = true\n activedescendant = props.id;\n }\n newProps.onBlur = this.handleOptionBlur;\n newProps.onClick = this.selectOption.bind(this, child);\n newProps.onFocus = this.handleOptionFocus;\n newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n newProps.onTouchStart = this.handleOptionMouseEnter.bind(this, index);\n\n return React.cloneElement(child, newProps);\n }.bind(this));\n\n return {\n children: _children,\n activedescendant: activedescendant,\n isEmpty: isEmpty\n };\n },\n\n getClassName: function() {\n var className = addClass(this.props.className, 'ic-tokeninput');\n if (this.state.isOpen)\n className = addClass(className, 'ic-tokeninput-is-open');\n return className;\n },\n\n /**\n * When the user begins typing again we need to clear out any state that has\n * to do with an existing or potential selection.\n */\n clearSelectedState: function(cb) {\n this.setState({\n focusedIndex: null,\n inputValue: null,\n value: null,\n matchedAutocompleteOption: null,\n activedescendant: null\n }, cb);\n },\n\n handleInputChange: function() {\n var value = this.refs.input.value;\n this.clearSelectedState(function() {\n this.props.onInput(value);\n }.bind(this));\n },\n\n handleInputFocus: function() {\n this.props.onFocus();\n this.maybeShowList();\n },\n\n handleInputClick: function() {\n this.maybeShowList();\n },\n\n maybeShowList: function(){\n if (this.props.showListOnFocus){\n this.showList()\n }\n },\n\n handleInputBlur: function() {\n var focusedAnOption = this.state.focusedIndex != null;\n if (focusedAnOption)\n return;\n this.maybeSelectAutocompletedOption();\n this.hideList();\n this.props.onBlur();\n },\n\n handleOptionBlur: function() {\n // don't want to hide the list if we focused another option\n this.blurTimer = setTimeout(this.hideList, 0);\n },\n\n\n handleOptionFocus: function() {\n // see `handleOptionBlur`\n clearTimeout(this.blurTimer);\n },\n\n handleInputKeyUp: function(event) {\n if (\n this.state.menu.isEmpty ||\n // autocompleting while backspacing feels super weird, so let's not\n event.keyCode === 8 /*backspace*/ ||\n !this.props.autocomplete.match(/both|inline/)\n ) return;\n },\n\n handleButtonClick: function() {\n this.state.isOpen ? this.hideList() : this.showList();\n this.focusInput();\n },\n\n showList: function() {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({isOpen: true})\n },\n\n hideList: function() {\n this.setState({\n isOpen: false,\n focusedIndex: null\n });\n },\n\n hideOnEscape: function(event) {\n this.hideList();\n this.focusInput();\n event.preventDefault();\n },\n\n focusInput: function() {\n this.refs.input.focus();\n },\n\n selectInput: function() {\n this.refs.input.select();\n },\n\n inputKeydownMap: {\n 8: 'removeLastToken', // delete\n 13: 'selectOnEnter', // enter\n 188: 'selectOnEnter', // comma\n 27: 'hideOnEscape', // escape\n 38: 'focusPrevious', // up arrow\n 40: 'focusNext' // down arrow\n },\n\n optionKeydownMap: {\n 13: 'selectOption',\n 27: 'hideOnEscape',\n 38: 'focusPrevious',\n 40: 'focusNext'\n },\n\n handleKeydown: function(event) {\n var handlerName = this.inputKeydownMap[event.keyCode];\n if (!handlerName)\n return\n this.setState({usingKeyboard: true});\n return this[handlerName].call(this,event);\n },\n\n handleOptionKeyDown: function(child, event) {\n var handlerName = this.optionKeydownMap[event.keyCode];\n if (!handlerName) {\n // if the user starts typing again while focused on an option, move focus\n // to the inpute, select so it wipes out any existing value\n this.selectInput();\n return;\n }\n event.preventDefault();\n this.setState({usingKeyboard: true});\n this[handlerName].call(this, child);\n },\n\n handleOptionMouseEnter: function(index) {\n if (this.state.usingKeyboard) {\n this.setState({ usingKeyboard: false });\n }\n\n this.focusOptionAtIndex(index);\n },\n\n selectOnEnter: function(event) {\n event.preventDefault();\n this.maybeSelectAutocompletedOption()\n },\n\n maybeSelectAutocompletedOption: function() {\n if (!this.state.matchedAutocompleteOption) {\n this.selectText()\n } else {\n this.selectOption(this.state.matchedAutocompleteOption, {focus: false});\n }\n },\n\n selectOption: function(child, options) {\n options = options || {};\n this.setState({\n // value: child.props.value,\n // inputValue: getLabel(child),\n matchedAutocompleteOption: null\n }, function() {\n this.props.onSelect(child.props.value, child);\n this.hideList();\n this.clearSelectedState(); // added\n if (options.focus !== false)\n this.selectInput();\n }.bind(this));\n this.refs.input.value = '' // added\n },\n\n selectText: function() {\n var value = this.refs.input.value;\n if(!value) return;\n this.props.onSelect(value);\n this.clearSelectedState();\n this.refs.input.value = '' // added\n },\n\n focusNext: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.nextFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n removeLastToken: function() {\n if(this.props.onRemoveLast && !this.refs.input.value) {\n this.props.onRemoveLast()\n }\n return true\n },\n\n focusPrevious: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.previousFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n focusSelectedOption: function() {\n var selectedIndex;\n React.Children.forEach(this.props.children, function(child, index) {\n if (child.props.value === this.state.value)\n selectedIndex = index;\n }.bind(this));\n this.showList();\n this.setState({\n focusedIndex: selectedIndex\n }, this.focusOption);\n },\n\n findInitialInputValue: function() {\n // TODO: might not need this, we should know this in `makeMenu`\n var inputValue;\n React.Children.forEach(this.props.children, function(child) {\n if (child.props.value === this.props.value)\n inputValue = getLabel(child);\n }.bind(this));\n return inputValue;\n },\n\n clampIndex: function(index) {\n if (index < 0) {\n return this.props.children.length - 1\n } else if (index >= this.props.children.length) {\n return 0\n }\n return index\n },\n\n scanForFocusableIndex: function(index, increment) {\n if (index === null || index === undefined) {\n index = increment > 0 ? this.clampIndex(-1) : 0\n }\n var newIndex = index\n while (true) {\n newIndex = this.clampIndex(newIndex + increment)\n if (newIndex === index ||\n this.props.children[newIndex].props.isFocusable)\n {\n return newIndex\n }\n }\n },\n\n nextFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, 1)\n },\n\n previousFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, -1)\n },\n\n focusOptionAtIndex: function(index) {\n if (!this.state.isOpen && this.state.value)\n return this.focusSelectedOption();\n this.showList();\n var length = this.props.children.length;\n if (index === -1)\n index = length - 1;\n else if (index === length)\n index = 0;\n this.setState({\n focusedIndex: index\n }, this.focusOption);\n },\n\n focusOption: function() {\n var index = this.state.focusedIndex;\n this.refs.list.childNodes[index].focus();\n },\n\n render: function() {\n var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' +\n 'Press the down arrow to navigate results. If you don\\'t find an ' +\n 'acceptable option, you can input an alternative. Once you find or ' +\n 'input the tag you want, press Enter or Comma to add it.'\n\n return div({className: this.getClassName()},\n this.props.value,\n this.state.inputValue,\n input({\n ref: 'input',\n autoComplete: 'off',\n spellCheck: 'false',\n 'aria-label': ariaLabel,\n 'aria-expanded': this.state.isOpen+'',\n 'aria-haspopup': 'true',\n 'aria-activedescendant': this.state.menu.activedescendant,\n 'aria-autocomplete': 'list',\n 'aria-owns': this.state.listId,\n id: this.props.id,\n disabled: this.props.isDisabled,\n className: 'ic-tokeninput-input',\n onFocus: this.handleInputFocus,\n onClick: this.handleInputClick,\n onChange: this.handleInputChange,\n onBlur: this.handleInputBlur,\n onKeyDown: this.handleKeydown,\n onKeyUp: this.handleInputKeyUp,\n placeholder: this.props.placeholder,\n role: 'combobox'\n }),\n span({\n 'aria-hidden': 'true',\n className: 'ic-tokeninput-button',\n onClick: this.handleButtonClick\n }, '▾'),\n div({\n id: this.state.listId,\n ref: 'list',\n className: 'ic-tokeninput-list',\n role: 'listbox'\n }, this.state.menu.children)\n );\n }\n});\n\nfunction getLabel(component) {\n return component.props.label || component.props.children;\n}\n\nfunction matchFragment(userInput, firstChildLabel) {\n userInput = userInput.toLowerCase();\n firstChildLabel = firstChildLabel.toLowerCase();\n if (userInput === '' || userInput === firstChildLabel)\n return false;\n if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1)\n return false;\n return true;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/combobox.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 2\n// module chunks = 0 1","module.exports = addClass;\n\nfunction addClass(existing, added) {\n if (!existing) return added;\n if (existing.indexOf(added) > -1) return existing;\n return existing + ' ' + added;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/add-class.js","var React = require('react');\nvar addClass = require('./add-class');\nvar omit = require('object.omit');\nvar div = React.createFactory('div');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n\n /**\n * The value that will be sent to the `onSelect` handler of the\n * parent Combobox.\n */\n value: React.PropTypes.any.isRequired,\n\n /**\n * What value to put into the input element when this option is\n * selected, defaults to its children coerced to a string.\n */\n label: React.PropTypes.string,\n\n /**\n * Whether the element should be selectable\n */\n isFocusable: React.PropTypes.bool\n },\n\n getDefaultProps: function() {\n return {\n role: 'option',\n tabIndex: '-1',\n className: 'ic-tokeninput-option',\n isSelected: false,\n isFocusable: true\n };\n },\n\n render: function() {\n var props = this.props;\n if (props.isSelected) {\n props.className = addClass(props.className, 'ic-tokeninput-selected');\n props.ariaSelected = true;\n }\n return div(omit(props, ['isSelected', 'isFocusable']));\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/option.js","/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('is-extendable');\nvar forOwn = require('for-own');\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function(value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object.omit/index.js\n// module id = 5\n// module chunks = 0 1","/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/is-extendable/index.js\n// module id = 6\n// module chunks = 0 1","/*!\n * for-own \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar forIn = require('for-in');\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(obj, fn, thisArg) {\n forIn(obj, function(val, key) {\n if (hasOwn.call(obj, key)) {\n return fn.call(thisArg, obj[key], key, obj);\n }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-own/index.js\n// module id = 7\n// module chunks = 0 1","/*!\n * for-in \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(obj, fn, thisArg) {\n for (var key in obj) {\n if (fn.call(thisArg, obj[key], key, obj) === false) {\n break;\n }\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-in/index.js\n// module id = 8\n// module chunks = 0 1","var React = require('react');\nvar span = React.DOM.span;\nvar li = React.createFactory('li');\n\nmodule.exports = React.createClass({\n handleClick: function() {\n this.props.onRemove(this.props.value)\n },\n\n handleKeyDown: function(key) {\n var enterKey = 13;\n if(key.keyCode === enterKey) this.props.onRemove(this.props.value)\n },\n\n ariaLabelRemove: function ariaLabelRemove() {\n return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) :\n 'Remove \\'' + this.props.name + '\\'';\n },\n\n render: function() {\n return (\n li({\n className: \"ic-token inline-flex\"\n },\n span({className: \"ic-token-label\"}, this.props.name),\n span({\n role: 'button',\n onClick: this.handleClick,\n onFocus: this.props.onFocus,\n onKeyDown: this.handleKeyDown,\n 'aria-label': this.ariaLabelRemove(),\n className: \"ic-token-delete-button\",\n tabIndex: 0\n }, \"✕\")\n )\n )\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/token.js","var React = require('react');\nvar Combobox = React.createFactory(require('./combobox'));\nvar Token = React.createFactory(require('./token'));\nvar classnames = require('classnames');\n\nvar ul = React.DOM.ul;\nvar li = React.DOM.li;\n\nmodule.exports = React.createClass({\n propTypes: {\n isLoading: React.PropTypes.bool,\n loadingComponent: React.PropTypes.any,\n onFocus: React.PropTypes.func,\n onBlur: React.PropTypes.func,\n onInput: React.PropTypes.func.isRequired,\n onSelect: React.PropTypes.func.isRequired,\n tokenAriaFunc: React.PropTypes.func,\n onRemove: React.PropTypes.func.isRequired,\n selected: React.PropTypes.array.isRequired,\n menuContent: React.PropTypes.any,\n showListOnFocus: React.PropTypes.bool,\n placeholder: React.PropTypes.string\n },\n\n getInitialState: function() {\n return {\n selectedToken: null\n };\n },\n\n handleClick: function() {\n // TODO: Expand combobox API for focus\n this.refs['combo-li'].querySelector('input').focus();\n },\n\n handleFocus: function() {\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n },\n\n handleBlur: function() {\n if (this.props.onBlur) {\n this.props.onBlur();\n }\n },\n\n handleInput: function(inputValue) {\n this.props.onInput(inputValue);\n },\n\n handleSelect: function(event, option) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onSelect(event, option)\n this.setState({\n selectedToken: null\n })\n this.props.onInput(input.value);\n },\n\n handleRemove: function(value) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onRemove(value);\n input.focus();\n },\n\n handleRemoveLast: function() {\n this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n },\n\n render: function() {\n var isDisabled = this.props.isDisabled;\n var tokens = this.props.selected.map(function(token) {\n return (\n Token({\n tokenAriaFunc: this.props.tokenAriaFunc,\n onFocus: this.handleFocus,\n onRemove: this.handleRemove,\n value: token,\n name: token.name,\n key: token.id})\n )\n }.bind(this))\n\n var classes = classnames('ic-tokens flex', {\n 'ic-tokens-disabled': isDisabled\n });\n\n return ul({className: classes, onClick: this.handleClick},\n tokens,\n li({className: 'inline-flex', ref: 'combo-li'},\n Combobox({\n id: this.props.id,\n 'aria-label': this.props['combobox-aria-label'],\n ariaDisabled: isDisabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n onInput: this.handleInput,\n showListOnFocus: this.props.showListOnFocus,\n onSelect: this.handleSelect,\n onRemoveLast: this.handleRemoveLast,\n value: this.state.selectedToken,\n isDisabled: isDisabled,\n placeholder: this.props.placeholder\n },\n this.props.menuContent\n )\n ),\n this.props.isLoading && li({className: 'ic-tokeninput-loading flex'}, this.props.loadingComponent)\n );\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 11\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap d35bb24c59e8aabfcbae","webpack:///./src/index.js","webpack:///./src/combobox.js","webpack:///external \"react\"","webpack:///./src/add-class.js","webpack:///./src/option.js","webpack:///./~/object.omit/index.js","webpack:///./~/is-extendable/index.js","webpack:///./~/for-own/index.js","webpack:///./~/for-in/index.js","webpack:///./src/token.js","webpack:///./src/main.js","webpack:///./~/classnames/index.js"],"names":["Combobox","Option","Token","TokenInput","React","require","guid","k","addClass","ComboboxOption","div","createFactory","span","input","module","exports","createClass","propTypes","onFocus","PropTypes","func","onBlur","onInput","onSelect","placeholder","string","getDefaultProps","autocomplete","value","showListOnFocus","getInitialState","props","inputValue","findInitialInputValue","isOpen","focusedIndex","matchedAutocompleteOption","usingKeyboard","activedescendant","listId","menu","children","isEmpty","componentWillMount","setState","makeMenu","componentWillReceiveProps","newProps","length","document","activeElement","refs","state","list","scrollTop","bind","hideList","_children","Children","map","child","index","type","isFocusable","id","isSelected","handleOptionBlur","onClick","selectOption","handleOptionFocus","onKeyDown","handleOptionKeyDown","onMouseEnter","handleOptionMouseEnter","onTouchStart","cloneElement","getClassName","className","clearSelectedState","cb","handleInputChange","handleInputFocus","maybeShowList","handleInputClick","showList","handleInputBlur","focusedAnOption","maybeSelectAutocompletedOption","blurTimer","setTimeout","clearTimeout","handleInputKeyUp","event","keyCode","match","handleButtonClick","focusInput","hideOnEscape","preventDefault","focus","selectInput","select","inputKeydownMap","optionKeydownMap","handleKeydown","handlerName","call","focusOptionAtIndex","selectOnEnter","selectText","options","focusNext","nextFocusableIndex","removeLastToken","onRemoveLast","focusPrevious","previousFocusableIndex","focusSelectedOption","selectedIndex","forEach","focusOption","getLabel","clampIndex","scanForFocusableIndex","increment","undefined","newIndex","childNodes","render","ariaLabel","ref","autoComplete","spellCheck","disabled","isDisabled","onChange","onKeyUp","role","component","label","matchFragment","userInput","firstChildLabel","toLowerCase","indexOf","existing","added","omit","any","isRequired","bool","tabIndex","ariaSelected","DOM","li","handleClick","onRemove","handleKeyDown","key","enterKey","ariaLabelRemove","tokenAriaFunc","name","ul","Main","selectedToken","querySelector","option","selected","tokens","token","handleFocus","handleRemove","classes","ariaDisabled","handleBlur","handleInput","handleSelect","handleRemoveLast","menuContent","isLoading","loadingComponent","Component"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;ACnCA;;;;;;SAHOA,Q;SACAC,M;SACAC,K;;;AAGP;;;;;;AAMA,KAAMC,2BAAN;mBACeA,U;;;;;;;;ACZf,KAAIC,QAAQ,mBAAAC,CAAQ,CAAR,CAAZ;AACA,KAAIC,OAAO,CAAX;AACA,KAAIC,IAAI,SAAJA,CAAI,GAAU,CAAE,CAApB;AACA,KAAIC,WAAW,mBAAAH,CAAQ,CAAR,CAAf;AACA,KAAII,iBAAiB,mBAAAJ,CAAQ,CAAR,CAArB;;AAEA,KAAIK,MAAMN,MAAMO,aAAN,CAAoB,KAApB,CAAV;AACA,KAAIC,OAAOR,MAAMO,aAAN,CAAoB,MAApB,CAAX;AACA,KAAIE,QAAQT,MAAMO,aAAN,CAAoB,OAApB,CAAZ;;AAEAG,QAAOC,OAAP,GAAiBX,MAAMY,WAAN,CAAkB;AAAA;;;AAEjCC,cAAW;AACT;;;;;;;;;AASAC,cAASd,MAAMe,SAAN,CAAgBC,IAVhB;;AAYT;;;;;;;;;AASAC,aAAQjB,MAAMe,SAAN,CAAgBC,IArBf;;AAuBT;;;;;;;;;;AAUAE,cAASlB,MAAMe,SAAN,CAAgBC,IAjChB;;AAmCT;;;;;;;;;;AAUAG,eAAUnB,MAAMe,SAAN,CAAgBC,IA7CjB;;AA+CT;;;AAGAI,kBAAapB,MAAMe,SAAN,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P;AAOPnJ,0BAAiB,KAAKE,KAAL,CAAWF,eAPrB;AAQPN,mBAAU,KAAK0J,YARR;AASP/D,uBAAc,KAAKgE,gBATZ;AAUPtJ,gBAAO,KAAKwB,KAAL,CAAWiH,aAVX;AAWP/B,qBAAYA,UAXL;AAYP9G,sBAAa,KAAKO,KAAL,CAAWP;AAZjB,QAAT,EAcE,KAAKO,KAAL,CAAWoJ,WAdb,CADF,CAFK,EAoBL,KAAKpJ,KAAL,CAAWqJ,SAAX,IAAwB1B,GAAG,EAAC7E,WAAW,4BAAZ,EAAH,EAA8C,KAAK9C,KAAL,CAAWsJ,gBAAzD,CApBnB,CAAP;AAsBD;;;;GAxGuB,gBAAMC,S;;;;;;ACXhC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iBAAgB;;AAEhB;AACA;;AAEA,kBAAiB,sBAAsB;AACvC;AACA;;AAEA;;AAEA;AACA;AACA,KAAI;AACJ;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAE;AACF;AACA;AACA;AACA,IAAG;AACH,GAAE;AACF;AACA;AACA,EAAC","file":"react-tokeninput.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap d35bb24c59e8aabfcbae","export Combobox from './combobox';\nexport Option from './option';\nexport Token from './token';\nimport main from './main';\n\n/**\n * You can't do an import and then immediately export it :(\n * And `export default TokenInput from './main'` doesn't seem to\n * work either :(\n * So this little variable swapping stuff gets it to work.\n */\nconst TokenInput = main;\nexport default TokenInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var React = require('react');\nvar guid = 0;\nvar k = function(){};\nvar addClass = require('./add-class');\nvar ComboboxOption = require('./option');\n\nvar div = React.createFactory('div');\nvar span = React.createFactory('span');\nvar input = React.createFactory('input');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n /**\n * Called when the combobox's input receives focus and the user begins interacting with it.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onFocus: React.PropTypes.func,\n\n /**\n * Called when the combobox's input loses focus after being activated for user input\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onBlur: React.PropTypes.func,\n\n /**\n * Called when the combobox receives user input, this is your chance to\n * filter the data and rerender the options.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onInput: React.PropTypes.func,\n\n /**\n * Called when the combobox receives a selection. You probably want to reset\n * the options to the full list at this point.\n *\n * Signature:\n *\n * ```js\n * function(selectedValue){}\n * ```\n */\n onSelect: React.PropTypes.func,\n\n /**\n * Shown when the combobox is empty.\n */\n placeholder: React.PropTypes.string\n },\n\n getDefaultProps: function() {\n return {\n autocomplete: 'both',\n onFocus: k,\n onBlur: k,\n onInput: k,\n onSelect: k,\n value: null,\n showListOnFocus: false\n };\n },\n\n getInitialState: function() {\n return {\n value: this.props.value,\n // the value displayed in the input\n inputValue: this.findInitialInputValue(),\n isOpen: false,\n focusedIndex: null,\n matchedAutocompleteOption: null,\n // this prevents crazy jumpiness since we focus options on mouseenter\n usingKeyboard: false,\n activedescendant: null,\n listId: 'ic-tokeninput-list-'+(++guid),\n menu: {\n children: [],\n activedescendant: null,\n isEmpty: true\n }\n };\n },\n\n componentWillMount: function() {\n this.setState({menu: this.makeMenu(this.props.children)});\n },\n\n componentWillReceiveProps: function(newProps) {\n this.setState({menu: this.makeMenu(newProps.children)}, function() {\n if(newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({\n isOpen: true\n }, function() {\n this.refs.list.scrollTop = 0;\n }.bind(this))\n } else {\n this.hideList();\n }\n\n }.bind(this));\n },\n\n /**\n * We don't create the components, the user supplies them,\n * so before rendering we attach handlers to facilitate communication from\n * the ComboboxOption to the Combobox.\n */\n makeMenu: function(children) {\n var activedescendant;\n var isEmpty = true;\n\n // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n var _children = React.Children.map(children, function(child, index) {\n // console.log(child.type, ComboboxOption.type)\n if (child.type !== ComboboxOption || !child.props.isFocusable) {\n // allow random elements to live in this list\n return child;\n }\n isEmpty = false;\n // TODO: cloneWithProps and map instead of altering the children in-place\n var props = child.props;\n var newProps = {};\n if (this.state.value === child.props.value) {\n // need an ID for WAI-ARIA\n newProps.id = props.id || 'ic-tokeninput-selected-'+(++guid);\n newProps.isSelected = true\n activedescendant = props.id;\n }\n newProps.onBlur = this.handleOptionBlur;\n newProps.onClick = this.selectOption.bind(this, child);\n newProps.onFocus = this.handleOptionFocus;\n newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n newProps.onTouchStart = this.handleOptionMouseEnter.bind(this, index);\n\n return React.cloneElement(child, newProps);\n }.bind(this));\n\n return {\n children: _children,\n activedescendant: activedescendant,\n isEmpty: isEmpty\n };\n },\n\n getClassName: function() {\n var className = addClass(this.props.className, 'ic-tokeninput');\n if (this.state.isOpen)\n className = addClass(className, 'ic-tokeninput-is-open');\n return className;\n },\n\n /**\n * When the user begins typing again we need to clear out any state that has\n * to do with an existing or potential selection.\n */\n clearSelectedState: function(cb) {\n this.setState({\n focusedIndex: null,\n inputValue: null,\n value: null,\n matchedAutocompleteOption: null,\n activedescendant: null\n }, cb);\n },\n\n handleInputChange: function() {\n var value = this.refs.input.value;\n this.clearSelectedState(function() {\n this.props.onInput(value);\n }.bind(this));\n },\n\n handleInputFocus: function() {\n this.props.onFocus();\n this.maybeShowList();\n },\n\n handleInputClick: function() {\n this.maybeShowList();\n },\n\n maybeShowList: function(){\n if (this.props.showListOnFocus){\n this.showList()\n }\n },\n\n handleInputBlur: function() {\n var focusedAnOption = this.state.focusedIndex != null;\n if (focusedAnOption)\n return;\n this.maybeSelectAutocompletedOption();\n this.hideList();\n this.props.onBlur();\n },\n\n handleOptionBlur: function() {\n // don't want to hide the list if we focused another option\n this.blurTimer = setTimeout(this.hideList, 0);\n },\n\n\n handleOptionFocus: function() {\n // see `handleOptionBlur`\n clearTimeout(this.blurTimer);\n },\n\n handleInputKeyUp: function(event) {\n if (\n this.state.menu.isEmpty ||\n // autocompleting while backspacing feels super weird, so let's not\n event.keyCode === 8 /*backspace*/ ||\n !this.props.autocomplete.match(/both|inline/)\n ) return;\n },\n\n handleButtonClick: function() {\n this.state.isOpen ? this.hideList() : this.showList();\n this.focusInput();\n },\n\n showList: function() {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({isOpen: true})\n },\n\n hideList: function() {\n this.setState({\n isOpen: false,\n focusedIndex: null\n });\n },\n\n hideOnEscape: function(event) {\n this.hideList();\n this.focusInput();\n event.preventDefault();\n },\n\n focusInput: function() {\n this.refs.input.focus();\n },\n\n selectInput: function() {\n this.refs.input.select();\n },\n\n inputKeydownMap: {\n 8: 'removeLastToken', // delete\n 13: 'selectOnEnter', // enter\n 188: 'selectOnEnter', // comma\n 27: 'hideOnEscape', // escape\n 38: 'focusPrevious', // up arrow\n 40: 'focusNext' // down arrow\n },\n\n optionKeydownMap: {\n 13: 'selectOption',\n 27: 'hideOnEscape',\n 38: 'focusPrevious',\n 40: 'focusNext'\n },\n\n handleKeydown: function(event) {\n var handlerName = this.inputKeydownMap[event.keyCode];\n if (!handlerName)\n return\n this.setState({usingKeyboard: true});\n return this[handlerName].call(this,event);\n },\n\n handleOptionKeyDown: function(child, event) {\n var handlerName = this.optionKeydownMap[event.keyCode];\n if (!handlerName) {\n // if the user starts typing again while focused on an option, move focus\n // to the inpute, select so it wipes out any existing value\n this.selectInput();\n return;\n }\n event.preventDefault();\n this.setState({usingKeyboard: true});\n this[handlerName].call(this, child);\n },\n\n handleOptionMouseEnter: function(index) {\n if (this.state.usingKeyboard) {\n this.setState({ usingKeyboard: false });\n }\n\n this.focusOptionAtIndex(index);\n },\n\n selectOnEnter: function(event) {\n event.preventDefault();\n this.maybeSelectAutocompletedOption()\n },\n\n maybeSelectAutocompletedOption: function() {\n if (!this.state.matchedAutocompleteOption) {\n this.selectText()\n } else {\n this.selectOption(this.state.matchedAutocompleteOption, {focus: false});\n }\n },\n\n selectOption: function(child, options) {\n options = options || {};\n this.setState({\n // value: child.props.value,\n // inputValue: getLabel(child),\n matchedAutocompleteOption: null\n }, function() {\n this.props.onSelect(child.props.value, child);\n this.hideList();\n this.clearSelectedState(); // added\n if (options.focus !== false)\n this.selectInput();\n }.bind(this));\n this.refs.input.value = '' // added\n },\n\n selectText: function() {\n var value = this.refs.input.value;\n if(!value) return;\n this.props.onSelect(value);\n this.clearSelectedState();\n this.refs.input.value = '' // added\n },\n\n focusNext: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.nextFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n removeLastToken: function() {\n if(this.props.onRemoveLast && !this.refs.input.value) {\n this.props.onRemoveLast()\n }\n return true\n },\n\n focusPrevious: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.previousFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n focusSelectedOption: function() {\n var selectedIndex;\n React.Children.forEach(this.props.children, function(child, index) {\n if (child.props.value === this.state.value)\n selectedIndex = index;\n }.bind(this));\n this.showList();\n this.setState({\n focusedIndex: selectedIndex\n }, this.focusOption);\n },\n\n findInitialInputValue: function() {\n // TODO: might not need this, we should know this in `makeMenu`\n var inputValue;\n React.Children.forEach(this.props.children, function(child) {\n if (child.props.value === this.props.value)\n inputValue = getLabel(child);\n }.bind(this));\n return inputValue;\n },\n\n clampIndex: function(index) {\n if (index < 0) {\n return this.props.children.length - 1\n } else if (index >= this.props.children.length) {\n return 0\n }\n return index\n },\n\n scanForFocusableIndex: function(index, increment) {\n if (index === null || index === undefined) {\n index = increment > 0 ? this.clampIndex(-1) : 0\n }\n var newIndex = index\n while (true) {\n newIndex = this.clampIndex(newIndex + increment)\n if (newIndex === index ||\n this.props.children[newIndex].props.isFocusable)\n {\n return newIndex\n }\n }\n },\n\n nextFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, 1)\n },\n\n previousFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, -1)\n },\n\n focusOptionAtIndex: function(index) {\n if (!this.state.isOpen && this.state.value)\n return this.focusSelectedOption();\n this.showList();\n var length = this.props.children.length;\n if (index === -1)\n index = length - 1;\n else if (index === length)\n index = 0;\n this.setState({\n focusedIndex: index\n }, this.focusOption);\n },\n\n focusOption: function() {\n var index = this.state.focusedIndex;\n this.refs.list.childNodes[index].focus();\n },\n\n render: function() {\n var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' +\n 'Press the down arrow to navigate results. If you don\\'t find an ' +\n 'acceptable option, you can input an alternative. Once you find or ' +\n 'input the tag you want, press Enter or Comma to add it.'\n\n return div({className: this.getClassName()},\n this.props.value,\n this.state.inputValue,\n input({\n ref: 'input',\n autoComplete: 'off',\n spellCheck: 'false',\n 'aria-label': ariaLabel,\n 'aria-expanded': this.state.isOpen+'',\n 'aria-haspopup': 'true',\n 'aria-activedescendant': this.state.menu.activedescendant,\n 'aria-autocomplete': 'list',\n 'aria-owns': this.state.listId,\n id: this.props.id,\n disabled: this.props.isDisabled,\n className: 'ic-tokeninput-input',\n onFocus: this.handleInputFocus,\n onClick: this.handleInputClick,\n onChange: this.handleInputChange,\n onBlur: this.handleInputBlur,\n onKeyDown: this.handleKeydown,\n onKeyUp: this.handleInputKeyUp,\n placeholder: this.props.placeholder,\n role: 'combobox'\n }),\n span({\n 'aria-hidden': 'true',\n className: 'ic-tokeninput-button',\n onClick: this.handleButtonClick\n }, '▾'),\n div({\n id: this.state.listId,\n ref: 'list',\n className: 'ic-tokeninput-list',\n role: 'listbox'\n }, this.state.menu.children)\n );\n }\n});\n\nfunction getLabel(component) {\n return component.props.label || component.props.children;\n}\n\nfunction matchFragment(userInput, firstChildLabel) {\n userInput = userInput.toLowerCase();\n firstChildLabel = firstChildLabel.toLowerCase();\n if (userInput === '' || userInput === firstChildLabel)\n return false;\n if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1)\n return false;\n return true;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/combobox.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 2\n// module chunks = 0 1","module.exports = addClass;\n\nfunction addClass(existing, added) {\n if (!existing) return added;\n if (existing.indexOf(added) > -1) return existing;\n return existing + ' ' + added;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/add-class.js","var React = require('react');\nvar addClass = require('./add-class');\nvar omit = require('object.omit');\nvar div = React.createFactory('div');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n\n /**\n * The value that will be sent to the `onSelect` handler of the\n * parent Combobox.\n */\n value: React.PropTypes.any.isRequired,\n\n /**\n * What value to put into the input element when this option is\n * selected, defaults to its children coerced to a string.\n */\n label: React.PropTypes.string,\n\n /**\n * Whether the element should be selectable\n */\n isFocusable: React.PropTypes.bool\n },\n\n getDefaultProps: function() {\n return {\n role: 'option',\n tabIndex: '-1',\n className: 'ic-tokeninput-option',\n isSelected: false,\n isFocusable: true\n };\n },\n\n render: function() {\n var props = this.props;\n if (props.isSelected) {\n props.className = addClass(props.className, 'ic-tokeninput-selected');\n props.ariaSelected = true;\n }\n return div(omit(props, ['isSelected', 'isFocusable']));\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/option.js","/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('is-extendable');\nvar forOwn = require('for-own');\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function(value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object.omit/index.js\n// module id = 5\n// module chunks = 0 1","/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/is-extendable/index.js\n// module id = 6\n// module chunks = 0 1","/*!\n * for-own \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar forIn = require('for-in');\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(obj, fn, thisArg) {\n forIn(obj, function(val, key) {\n if (hasOwn.call(obj, key)) {\n return fn.call(thisArg, obj[key], key, obj);\n }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-own/index.js\n// module id = 7\n// module chunks = 0 1","/*!\n * for-in \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(obj, fn, thisArg) {\n for (var key in obj) {\n if (fn.call(thisArg, obj[key], key, obj) === false) {\n break;\n }\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-in/index.js\n// module id = 8\n// module chunks = 0 1","var React = require('react');\nvar span = React.DOM.span;\nvar li = React.createFactory('li');\n\nmodule.exports = React.createClass({\n handleClick: function() {\n this.props.onRemove(this.props.value)\n },\n\n handleKeyDown: function(key) {\n var enterKey = 13;\n if(key.keyCode === enterKey) this.props.onRemove(this.props.value)\n },\n\n ariaLabelRemove: function ariaLabelRemove() {\n return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) :\n 'Remove \\'' + this.props.name + '\\'';\n },\n\n render: function() {\n return (\n li({\n className: \"ic-token inline-flex\"\n },\n span({className: \"ic-token-label\"}, this.props.name),\n span({\n role: 'button',\n onClick: this.handleClick,\n onFocus: this.props.onFocus,\n onKeyDown: this.handleKeyDown,\n 'aria-label': this.ariaLabelRemove(),\n className: \"ic-token-delete-button\",\n tabIndex: 0\n }, \"✕\")\n )\n )\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/token.js","import React from 'react'\nimport classnames from 'classnames'\nimport C from './combobox'\nimport T from './token'\n\nvar Combobox = React.createFactory(C);\nvar Token = React.createFactory(T);\n\nvar ul = React.DOM.ul;\nvar li = React.DOM.li;\n\nexport class Main extends React.Component {\n propTypes: {\n isLoading: React.PropTypes.bool,\n loadingComponent: React.PropTypes.any,\n onFocus: React.PropTypes.func,\n onBlur: React.PropTypes.func,\n onInput: React.PropTypes.func.isRequired,\n onSelect: React.PropTypes.func.isRequired,\n tokenAriaFunc: React.PropTypes.func,\n onRemove: React.PropTypes.func.isRequired,\n selected: React.PropTypes.array.isRequired,\n menuContent: React.PropTypes.any,\n showListOnFocus: React.PropTypes.bool,\n placeholder: React.PropTypes.string\n }\n\n constructor(props) {\n super(props)\n\n this.state = {\n selectedToken: null\n }\n }\n\n handleClick() {\n // TODO: Expand combobox API for focus\n this.refs['combo-li'].querySelector('input').focus();\n }\n\n handleFocus() {\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n }\n\n handleBlur() {\n if (this.props.onBlur) {\n this.props.onBlur();\n }\n }\n\n handleInput(inputValue) {\n this.props.onInput(inputValue);\n }\n\n handleSelect(event, option) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onSelect(event, option)\n this.setState({\n selectedToken: null\n })\n this.props.onInput(input.value);\n }\n\n handleRemove(value) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onRemove(value);\n input.focus();\n }\n\n handleRemoveLast() {\n this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n }\n\n render() {\n var isDisabled = this.props.isDisabled;\n var tokens = this.props.selected.map(function(token) {\n return (\n Token({\n tokenAriaFunc: this.props.tokenAriaFunc,\n onFocus: this.handleFocus,\n onRemove: this.handleRemove,\n value: token,\n name: token.name,\n key: token.id})\n )\n }.bind(this))\n\n var classes = classnames('ic-tokens flex', {\n 'ic-tokens-disabled': isDisabled\n });\n\n return ul({className: classes, onClick: this.handleClick},\n tokens,\n li({className: 'inline-flex', ref: 'combo-li'},\n Combobox({\n id: this.props.id,\n 'aria-label': this.props['combobox-aria-label'],\n ariaDisabled: isDisabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n onInput: this.handleInput,\n showListOnFocus: this.props.showListOnFocus,\n onSelect: this.handleSelect,\n onRemoveLast: this.handleRemoveLast,\n value: this.state.selectedToken,\n isDisabled: isDisabled,\n placeholder: this.props.placeholder\n },\n this.props.menuContent\n )\n ),\n this.props.isLoading && li({className: 'ic-tokeninput-loading flex'}, this.props.loadingComponent)\n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 11\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/react-tokeninput.min.js b/dist/react-tokeninput.min.js index 0a4a8bb..422f4b3 100644 --- a/dist/react-tokeninput.min.js +++ b/dist/react-tokeninput.min.js @@ -1,10 +1,10 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.TokenInput=t(require("react")):e.TokenInput=t(e.react)}(this,function(e){return function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={exports:{},id:s,loaded:!1};return e[s].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}([function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.Option=t.Combobox=void 0;var i=n(1),o=s(i),u=n(4),r=s(u),a=n(9),p=s(a),c=n(10),l=s(c);t.Combobox=o.default,t.Option=r.default,t.Token=p.default;var h=l.default;t.default=h},function(e,t,n){"use strict";function s(e){return e.props.label||e.props.children}var i=n(2),o=0,u=function(){},r=n(3),a=n(4),p=i.createFactory("div"),c=i.createFactory("span"),l=i.createFactory("input");e.exports=i.createClass({displayName:"exports",propTypes:{onFocus:i.PropTypes.func,onBlur:i.PropTypes.func,onInput:i.PropTypes.func,onSelect:i.PropTypes.func,placeholder:i.PropTypes.string},getDefaultProps:function(){return{autocomplete:"both",onFocus:u,onBlur:u,onInput:u,onSelect:u,value:null,showListOnFocus:!1}},getInitialState:function(){return{value:this.props.value,inputValue:this.findInitialInputValue(),isOpen:!1,focusedIndex:null,matchedAutocompleteOption:null,usingKeyboard:!1,activedescendant:null,listId:"ic-tokeninput-list-"+ ++o,menu:{children:[],activedescendant:null,isEmpty:!0}}},componentWillMount:function(){this.setState({menu:this.makeMenu(this.props.children)})},componentWillReceiveProps:function(e){this.setState({menu:this.makeMenu(e.children)},function(){if(e.children.length&&(this.isOpen||document.activeElement===this.refs.input)){if(!this.state.menu.children.length)return;this.setState({isOpen:!0},function(){this.refs.list.scrollTop=0}.bind(this))}else this.hideList()}.bind(this))},makeMenu:function(e){var t,n=!0,s=i.Children.map(e,function(e,s){if(e.type!==a||!e.props.isFocusable)return e;n=!1;var u=e.props,r={};return this.state.value===e.props.value&&(r.id=u.id||"ic-tokeninput-selected-"+ ++o,r.isSelected=!0,t=u.id),r.onBlur=this.handleOptionBlur,r.onClick=this.selectOption.bind(this,e),r.onFocus=this.handleOptionFocus,r.onKeyDown=this.handleOptionKeyDown.bind(this,e),r.onMouseEnter=this.handleOptionMouseEnter.bind(this,s),r.onTouchStart=this.handleOptionMouseEnter.bind(this,s),i.cloneElement(e,r)}.bind(this));return{children:s,activedescendant:t,isEmpty:n}},getClassName:function(){var e=r(this.props.className,"ic-tokeninput");return this.state.isOpen&&(e=r(e,"ic-tokeninput-is-open")),e},clearSelectedState:function(e){this.setState({focusedIndex:null,inputValue:null,value:null,matchedAutocompleteOption:null,activedescendant:null},e)},handleInputChange:function(){var e=this.refs.input.value;this.clearSelectedState(function(){this.props.onInput(e)}.bind(this))},handleInputFocus:function(){this.props.onFocus(),this.maybeShowList()},handleInputClick:function(){this.maybeShowList()},maybeShowList:function(){this.props.showListOnFocus&&this.showList()},handleInputBlur:function(){var e=null!=this.state.focusedIndex;e||(this.maybeSelectAutocompletedOption(),this.hideList(),this.props.onBlur())},handleOptionBlur:function(){this.blurTimer=setTimeout(this.hideList,0)},handleOptionFocus:function(){clearTimeout(this.blurTimer)},handleInputKeyUp:function(e){this.state.menu.isEmpty||8===e.keyCode||!this.props.autocomplete.match(/both|inline/)},handleButtonClick:function(){this.state.isOpen?this.hideList():this.showList(),this.focusInput()},showList:function(){this.state.menu.children.length&&this.setState({isOpen:!0})},hideList:function(){this.setState({isOpen:!1,focusedIndex:null})},hideOnEscape:function(e){this.hideList(),this.focusInput(),e.preventDefault()},focusInput:function(){this.refs.input.focus()},selectInput:function(){this.refs.input.select()},inputKeydownMap:{8:"removeLastToken",13:"selectOnEnter",188:"selectOnEnter",27:"hideOnEscape",38:"focusPrevious",40:"focusNext"},optionKeydownMap:{13:"selectOption",27:"hideOnEscape",38:"focusPrevious",40:"focusNext"},handleKeydown:function(e){var t=this.inputKeydownMap[e.keyCode];if(t)return this.setState({usingKeyboard:!0}),this[t].call(this,e)},handleOptionKeyDown:function(e,t){var n=this.optionKeydownMap[t.keyCode];return n?(t.preventDefault(),this.setState({usingKeyboard:!0}),void this[n].call(this,e)):void this.selectInput()},handleOptionMouseEnter:function(e){this.state.usingKeyboard&&this.setState({usingKeyboard:!1}),this.focusOptionAtIndex(e)},selectOnEnter:function(e){e.preventDefault(),this.maybeSelectAutocompletedOption()},maybeSelectAutocompletedOption:function(){this.state.matchedAutocompleteOption?this.selectOption(this.state.matchedAutocompleteOption,{focus:!1}):this.selectText()},selectOption:function(e,t){t=t||{},this.setState({matchedAutocompleteOption:null},function(){this.props.onSelect(e.props.value,e),this.hideList(),this.clearSelectedState(),t.focus!==!1&&this.selectInput()}.bind(this)),this.refs.input.value=""},selectText:function(){var e=this.refs.input.value;e&&(this.props.onSelect(e),this.clearSelectedState(),this.refs.input.value="")},focusNext:function(e){if(e.preventDefault&&e.preventDefault(),!this.state.menu.isEmpty){var t=this.nextFocusableIndex(this.state.focusedIndex);this.focusOptionAtIndex(t)}},removeLastToken:function(){return this.props.onRemoveLast&&!this.refs.input.value&&this.props.onRemoveLast(),!0},focusPrevious:function(e){if(e.preventDefault&&e.preventDefault(),!this.state.menu.isEmpty){var t=this.previousFocusableIndex(this.state.focusedIndex);this.focusOptionAtIndex(t)}},focusSelectedOption:function(){var e;i.Children.forEach(this.props.children,function(t,n){t.props.value===this.state.value&&(e=n)}.bind(this)),this.showList(),this.setState({focusedIndex:e},this.focusOption)},findInitialInputValue:function(){var e;return i.Children.forEach(this.props.children,function(t){t.props.value===this.props.value&&(e=s(t))}.bind(this)),e},clampIndex:function(e){return e<0?this.props.children.length-1:e>=this.props.children.length?0:e},scanForFocusableIndex:function(e,t){null!==e&&void 0!==e||(e=t>0?this.clampIndex(-1):0);for(var n=e;;)if(n=this.clampIndex(n+t),n===e||this.props.children[n].props.isFocusable)return n},nextFocusableIndex:function(e){return this.scanForFocusableIndex(e,1)},previousFocusableIndex:function(e){return this.scanForFocusableIndex(e,-1)},focusOptionAtIndex:function(e){if(!this.state.isOpen&&this.state.value)return this.focusSelectedOption();this.showList();var t=this.props.children.length;e===-1?e=t-1:e===t&&(e=0),this.setState({focusedIndex:e},this.focusOption)},focusOption:function(){var e=this.state.focusedIndex;this.refs.list.childNodes[e].focus()},render:function(){var e=this.props["aria-label"]||"Start typing to search. Press the down arrow to navigate results. If you don't find an acceptable option, you can input an alternative. Once you find or input the tag you want, press Enter or Comma to add it.";return p({className:this.getClassName()},this.props.value,this.state.inputValue,l({ref:"input",autoComplete:"off",spellCheck:"false","aria-label":e,"aria-expanded":this.state.isOpen+"","aria-haspopup":"true","aria-activedescendant":this.state.menu.activedescendant,"aria-autocomplete":"list","aria-owns":this.state.listId,id:this.props.id,disabled:this.props.isDisabled,className:"ic-tokeninput-input",onFocus:this.handleInputFocus,onClick:this.handleInputClick,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleKeydown,onKeyUp:this.handleInputKeyUp,placeholder:this.props.placeholder,role:"combobox"}),c({"aria-hidden":"true",className:"ic-tokeninput-button",onClick:this.handleButtonClick},"▾"),p({id:this.state.listId,ref:"list",className:"ic-tokeninput-list",role:"listbox"},this.state.menu.children))}})},function(t,n){t.exports=e},function(e,t){"use strict";function n(e,t){return e?e.indexOf(t)>-1?e:e+" "+t:t}e.exports=n},function(e,t,n){"use strict";var s=n(2),i=n(3),o=n(5),u=s.createFactory("div");e.exports=s.createClass({displayName:"exports",propTypes:{value:s.PropTypes.any.isRequired,label:s.PropTypes.string,isFocusable:s.PropTypes.bool},getDefaultProps:function(){return{role:"option",tabIndex:"-1",className:"ic-tokeninput-option",isSelected:!1,isFocusable:!0}},render:function(){var e=this.props;return e.isSelected&&(e.className=i(e.className,"ic-tokeninput-selected"),e.ariaSelected=!0),u(o(e,["isSelected","isFocusable"]))}})},function(e,t,n){/*! +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.TokenInput=t(require("react")):e.TokenInput=t(e.react)}(this,function(e){return function(e){function t(i){if(n[i])return n[i].exports;var s=n[i]={exports:{},id:i,loaded:!1};return e[i].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.Option=t.Combobox=void 0;var s=n(1),o=i(s),u=n(4),r=i(u),a=n(9),l=i(a),c=n(10),p=i(c);t.Combobox=o.default,t.Option=r.default,t.Token=l.default;var h=p.default;t.default=h},function(e,t,n){"use strict";function i(e){return e.props.label||e.props.children}var s=n(2),o=0,u=function(){},r=n(3),a=n(4),l=s.createFactory("div"),c=s.createFactory("span"),p=s.createFactory("input");e.exports=s.createClass({displayName:"exports",propTypes:{onFocus:s.PropTypes.func,onBlur:s.PropTypes.func,onInput:s.PropTypes.func,onSelect:s.PropTypes.func,placeholder:s.PropTypes.string},getDefaultProps:function(){return{autocomplete:"both",onFocus:u,onBlur:u,onInput:u,onSelect:u,value:null,showListOnFocus:!1}},getInitialState:function(){return{value:this.props.value,inputValue:this.findInitialInputValue(),isOpen:!1,focusedIndex:null,matchedAutocompleteOption:null,usingKeyboard:!1,activedescendant:null,listId:"ic-tokeninput-list-"+ ++o,menu:{children:[],activedescendant:null,isEmpty:!0}}},componentWillMount:function(){this.setState({menu:this.makeMenu(this.props.children)})},componentWillReceiveProps:function(e){this.setState({menu:this.makeMenu(e.children)},function(){if(e.children.length&&(this.isOpen||document.activeElement===this.refs.input)){if(!this.state.menu.children.length)return;this.setState({isOpen:!0},function(){this.refs.list.scrollTop=0}.bind(this))}else this.hideList()}.bind(this))},makeMenu:function(e){var t,n=!0,i=s.Children.map(e,function(e,i){if(e.type!==a||!e.props.isFocusable)return e;n=!1;var u=e.props,r={};return this.state.value===e.props.value&&(r.id=u.id||"ic-tokeninput-selected-"+ ++o,r.isSelected=!0,t=u.id),r.onBlur=this.handleOptionBlur,r.onClick=this.selectOption.bind(this,e),r.onFocus=this.handleOptionFocus,r.onKeyDown=this.handleOptionKeyDown.bind(this,e),r.onMouseEnter=this.handleOptionMouseEnter.bind(this,i),r.onTouchStart=this.handleOptionMouseEnter.bind(this,i),s.cloneElement(e,r)}.bind(this));return{children:i,activedescendant:t,isEmpty:n}},getClassName:function(){var e=r(this.props.className,"ic-tokeninput");return this.state.isOpen&&(e=r(e,"ic-tokeninput-is-open")),e},clearSelectedState:function(e){this.setState({focusedIndex:null,inputValue:null,value:null,matchedAutocompleteOption:null,activedescendant:null},e)},handleInputChange:function(){var e=this.refs.input.value;this.clearSelectedState(function(){this.props.onInput(e)}.bind(this))},handleInputFocus:function(){this.props.onFocus(),this.maybeShowList()},handleInputClick:function(){this.maybeShowList()},maybeShowList:function(){this.props.showListOnFocus&&this.showList()},handleInputBlur:function(){var e=null!=this.state.focusedIndex;e||(this.maybeSelectAutocompletedOption(),this.hideList(),this.props.onBlur())},handleOptionBlur:function(){this.blurTimer=setTimeout(this.hideList,0)},handleOptionFocus:function(){clearTimeout(this.blurTimer)},handleInputKeyUp:function(e){this.state.menu.isEmpty||8===e.keyCode||!this.props.autocomplete.match(/both|inline/)},handleButtonClick:function(){this.state.isOpen?this.hideList():this.showList(),this.focusInput()},showList:function(){this.state.menu.children.length&&this.setState({isOpen:!0})},hideList:function(){this.setState({isOpen:!1,focusedIndex:null})},hideOnEscape:function(e){this.hideList(),this.focusInput(),e.preventDefault()},focusInput:function(){this.refs.input.focus()},selectInput:function(){this.refs.input.select()},inputKeydownMap:{8:"removeLastToken",13:"selectOnEnter",188:"selectOnEnter",27:"hideOnEscape",38:"focusPrevious",40:"focusNext"},optionKeydownMap:{13:"selectOption",27:"hideOnEscape",38:"focusPrevious",40:"focusNext"},handleKeydown:function(e){var t=this.inputKeydownMap[e.keyCode];if(t)return this.setState({usingKeyboard:!0}),this[t].call(this,e)},handleOptionKeyDown:function(e,t){var n=this.optionKeydownMap[t.keyCode];return n?(t.preventDefault(),this.setState({usingKeyboard:!0}),void this[n].call(this,e)):void this.selectInput()},handleOptionMouseEnter:function(e){this.state.usingKeyboard&&this.setState({usingKeyboard:!1}),this.focusOptionAtIndex(e)},selectOnEnter:function(e){e.preventDefault(),this.maybeSelectAutocompletedOption()},maybeSelectAutocompletedOption:function(){this.state.matchedAutocompleteOption?this.selectOption(this.state.matchedAutocompleteOption,{focus:!1}):this.selectText()},selectOption:function(e,t){t=t||{},this.setState({matchedAutocompleteOption:null},function(){this.props.onSelect(e.props.value,e),this.hideList(),this.clearSelectedState(),t.focus!==!1&&this.selectInput()}.bind(this)),this.refs.input.value=""},selectText:function(){var e=this.refs.input.value;e&&(this.props.onSelect(e),this.clearSelectedState(),this.refs.input.value="")},focusNext:function(e){if(e.preventDefault&&e.preventDefault(),!this.state.menu.isEmpty){var t=this.nextFocusableIndex(this.state.focusedIndex);this.focusOptionAtIndex(t)}},removeLastToken:function(){return this.props.onRemoveLast&&!this.refs.input.value&&this.props.onRemoveLast(),!0},focusPrevious:function(e){if(e.preventDefault&&e.preventDefault(),!this.state.menu.isEmpty){var t=this.previousFocusableIndex(this.state.focusedIndex);this.focusOptionAtIndex(t)}},focusSelectedOption:function(){var e;s.Children.forEach(this.props.children,function(t,n){t.props.value===this.state.value&&(e=n)}.bind(this)),this.showList(),this.setState({focusedIndex:e},this.focusOption)},findInitialInputValue:function(){var e;return s.Children.forEach(this.props.children,function(t){t.props.value===this.props.value&&(e=i(t))}.bind(this)),e},clampIndex:function(e){return e<0?this.props.children.length-1:e>=this.props.children.length?0:e},scanForFocusableIndex:function(e,t){null!==e&&void 0!==e||(e=t>0?this.clampIndex(-1):0);for(var n=e;;)if(n=this.clampIndex(n+t),n===e||this.props.children[n].props.isFocusable)return n},nextFocusableIndex:function(e){return this.scanForFocusableIndex(e,1)},previousFocusableIndex:function(e){return this.scanForFocusableIndex(e,-1)},focusOptionAtIndex:function(e){if(!this.state.isOpen&&this.state.value)return this.focusSelectedOption();this.showList();var t=this.props.children.length;e===-1?e=t-1:e===t&&(e=0),this.setState({focusedIndex:e},this.focusOption)},focusOption:function(){var e=this.state.focusedIndex;this.refs.list.childNodes[e].focus()},render:function(){var e=this.props["aria-label"]||"Start typing to search. Press the down arrow to navigate results. If you don't find an acceptable option, you can input an alternative. Once you find or input the tag you want, press Enter or Comma to add it.";return l({className:this.getClassName()},this.props.value,this.state.inputValue,p({ref:"input",autoComplete:"off",spellCheck:"false","aria-label":e,"aria-expanded":this.state.isOpen+"","aria-haspopup":"true","aria-activedescendant":this.state.menu.activedescendant,"aria-autocomplete":"list","aria-owns":this.state.listId,id:this.props.id,disabled:this.props.isDisabled,className:"ic-tokeninput-input",onFocus:this.handleInputFocus,onClick:this.handleInputClick,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleKeydown,onKeyUp:this.handleInputKeyUp,placeholder:this.props.placeholder,role:"combobox"}),c({"aria-hidden":"true",className:"ic-tokeninput-button",onClick:this.handleButtonClick},"▾"),l({id:this.state.listId,ref:"list",className:"ic-tokeninput-list",role:"listbox"},this.state.menu.children))}})},function(t,n){t.exports=e},function(e,t){"use strict";function n(e,t){return e?e.indexOf(t)>-1?e:e+" "+t:t}e.exports=n},function(e,t,n){"use strict";var i=n(2),s=n(3),o=n(5),u=i.createFactory("div");e.exports=i.createClass({displayName:"exports",propTypes:{value:i.PropTypes.any.isRequired,label:i.PropTypes.string,isFocusable:i.PropTypes.bool},getDefaultProps:function(){return{role:"option",tabIndex:"-1",className:"ic-tokeninput-option",isSelected:!1,isFocusable:!0}},render:function(){var e=this.props;return e.isSelected&&(e.className=s(e.className,"ic-tokeninput-selected"),e.ariaSelected=!0),u(o(e,["isSelected","isFocusable"]))}})},function(e,t,n){/*! * object.omit * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";var s=n(6),i=n(7);e.exports=function(e,t){if(!s(e))return{};t=[].concat.apply([],[].slice.call(arguments,1));var n,o=t[t.length-1],u={};"function"==typeof o&&(n=t.pop());var r="function"==typeof n;return t.length||r?(i(e,function(s,i){t.indexOf(i)===-1&&(r?n(s,i,e)&&(u[i]=s):u[i]=s)}),u):e}},function(e,t){/*! +"use strict";var i=n(6),s=n(7);e.exports=function(e,t){if(!i(e))return{};t=[].concat.apply([],[].slice.call(arguments,1));var n,o=t[t.length-1],u={};"function"==typeof o&&(n=t.pop());var r="function"==typeof n;return t.length||r?(s(e,function(i,s){t.indexOf(s)===-1&&(r?n(i,s,e)&&(u[s]=i):u[s]=i)}),u):e}},function(e,t){/*! * is-extendable * * Copyright (c) 2015, Jon Schlinkert. @@ -16,16 +16,16 @@ * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -"use strict";var s=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){s(e,function(s,o){if(i.call(e,o))return t.call(n,e[o],o,e)})}},function(e,t){/*! +"use strict";var i=n(8),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){i(e,function(i,o){if(s.call(e,o))return t.call(n,e[o],o,e)})}},function(e,t){/*! * for-in * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -"use strict";e.exports=function(e,t,n){for(var s in e)if(t.call(n,e[s],s,e)===!1)break}},function(e,t,n){"use strict";var s=n(2),i=s.DOM.span,o=s.createFactory("li");e.exports=s.createClass({displayName:"exports",handleClick:function(){this.props.onRemove(this.props.value)},handleKeyDown:function(e){var t=13;e.keyCode===t&&this.props.onRemove(this.props.value)},ariaLabelRemove:function(){return this.props.tokenAriaFunc?this.props.tokenAriaFunc(this.props.name):"Remove '"+this.props.name+"'"},render:function(){return o({className:"ic-token inline-flex"},i({className:"ic-token-label"},this.props.name),i({role:"button",onClick:this.handleClick,onFocus:this.props.onFocus,onKeyDown:this.handleKeyDown,"aria-label":this.ariaLabelRemove(),className:"ic-token-delete-button",tabIndex:0},"✕"))}})},function(e,t,n){"use strict";var s=n(2),i=s.createFactory(n(1)),o=s.createFactory(n(9)),u=n(11),r=s.DOM.ul,a=s.DOM.li;e.exports=s.createClass({displayName:"exports",propTypes:{isLoading:s.PropTypes.bool,loadingComponent:s.PropTypes.any,onFocus:s.PropTypes.func,onBlur:s.PropTypes.func,onInput:s.PropTypes.func.isRequired,onSelect:s.PropTypes.func.isRequired,tokenAriaFunc:s.PropTypes.func,onRemove:s.PropTypes.func.isRequired,selected:s.PropTypes.array.isRequired,menuContent:s.PropTypes.any,showListOnFocus:s.PropTypes.bool,placeholder:s.PropTypes.string},getInitialState:function(){return{selectedToken:null}},handleClick:function(){this.refs["combo-li"].querySelector("input").focus()},handleFocus:function(){this.props.onFocus&&this.props.onFocus()},handleBlur:function(){this.props.onBlur&&this.props.onBlur()},handleInput:function(e){this.props.onInput(e)},handleSelect:function(e,t){var n=this.refs["combo-li"].querySelector("input");this.props.onSelect(e,t),this.setState({selectedToken:null}),this.props.onInput(n.value)},handleRemove:function(e){var t=this.refs["combo-li"].querySelector("input");this.props.onRemove(e),t.focus()},handleRemoveLast:function(){this.props.onRemove(this.props.selected[this.props.selected.length-1])},render:function(){var e=this.props.isDisabled,t=this.props.selected.map(function(e){return o({tokenAriaFunc:this.props.tokenAriaFunc,onFocus:this.handleFocus,onRemove:this.handleRemove,value:e,name:e.name,key:e.id})}.bind(this)),n=u("ic-tokens flex",{"ic-tokens-disabled":e});return r({className:n,onClick:this.handleClick},t,a({className:"inline-flex",ref:"combo-li"},i({id:this.props.id,"aria-label":this.props["combobox-aria-label"],ariaDisabled:e,onFocus:this.handleFocus,onBlur:this.handleBlur,onInput:this.handleInput,showListOnFocus:this.props.showListOnFocus,onSelect:this.handleSelect,onRemoveLast:this.handleRemoveLast,value:this.state.selectedToken,isDisabled:e,placeholder:this.props.placeholder},this.props.menuContent)),this.props.isLoading&&a({className:"ic-tokeninput-loading flex"},this.props.loadingComponent))}})},function(e,t,n){var s,i;/*! +"use strict";e.exports=function(e,t,n){for(var i in e)if(t.call(n,e[i],i,e)===!1)break}},function(e,t,n){"use strict";var i=n(2),s=i.DOM.span,o=i.createFactory("li");e.exports=i.createClass({displayName:"exports",handleClick:function(){this.props.onRemove(this.props.value)},handleKeyDown:function(e){var t=13;e.keyCode===t&&this.props.onRemove(this.props.value)},ariaLabelRemove:function(){return this.props.tokenAriaFunc?this.props.tokenAriaFunc(this.props.name):"Remove '"+this.props.name+"'"},render:function(){return o({className:"ic-token inline-flex"},s({className:"ic-token-label"},this.props.name),s({role:"button",onClick:this.handleClick,onFocus:this.props.onFocus,onKeyDown:this.handleKeyDown,"aria-label":this.ariaLabelRemove(),className:"ic-token-delete-button",tabIndex:0},"✕"))}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Main=void 0;var r=function(){function e(e,t){for(var n=0;n components, the user supplies them,\n\t * so before rendering we attach handlers to facilitate communication from\n\t * the ComboboxOption to the Combobox.\n\t */\n\t makeMenu: function makeMenu(children) {\n\t var activedescendant;\n\t var isEmpty = true;\n\t\n\t // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n\t var _children = React.Children.map(children, function (child, index) {\n\t // console.log(child.type, ComboboxOption.type)\n\t if (child.type !== ComboboxOption || !child.props.isFocusable) {\n\t // allow random elements to live in this list\n\t return child;\n\t }\n\t isEmpty = false;\n\t // TODO: cloneWithProps and map instead of altering the children in-place\n\t var props = child.props;\n\t var newProps = {};\n\t if (this.state.value === child.props.value) {\n\t // need an ID for WAI-ARIA\n\t newProps.id = props.id || 'ic-tokeninput-selected-' + ++guid;\n\t newProps.isSelected = true;\n\t activedescendant = props.id;\n\t }\n\t newProps.onBlur = this.handleOptionBlur;\n\t newProps.onClick = this.selectOption.bind(this, child);\n\t newProps.onFocus = this.handleOptionFocus;\n\t newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n\t newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n\t newProps.onTouchStart = this.handleOptionMouseEnter.bind(this, index);\n\t\n\t return React.cloneElement(child, newProps);\n\t }.bind(this));\n\t\n\t return {\n\t children: _children,\n\t activedescendant: activedescendant,\n\t isEmpty: isEmpty\n\t };\n\t },\n\t\n\t getClassName: function getClassName() {\n\t var className = addClass(this.props.className, 'ic-tokeninput');\n\t if (this.state.isOpen) className = addClass(className, 'ic-tokeninput-is-open');\n\t return className;\n\t },\n\t\n\t /**\n\t * When the user begins typing again we need to clear out any state that has\n\t * to do with an existing or potential selection.\n\t */\n\t clearSelectedState: function clearSelectedState(cb) {\n\t this.setState({\n\t focusedIndex: null,\n\t inputValue: null,\n\t value: null,\n\t matchedAutocompleteOption: null,\n\t activedescendant: null\n\t }, cb);\n\t },\n\t\n\t handleInputChange: function handleInputChange() {\n\t var value = this.refs.input.value;\n\t this.clearSelectedState(function () {\n\t this.props.onInput(value);\n\t }.bind(this));\n\t },\n\t\n\t handleInputFocus: function handleInputFocus() {\n\t this.props.onFocus();\n\t this.maybeShowList();\n\t },\n\t\n\t handleInputClick: function handleInputClick() {\n\t this.maybeShowList();\n\t },\n\t\n\t maybeShowList: function maybeShowList() {\n\t if (this.props.showListOnFocus) {\n\t this.showList();\n\t }\n\t },\n\t\n\t handleInputBlur: function handleInputBlur() {\n\t var focusedAnOption = this.state.focusedIndex != null;\n\t if (focusedAnOption) return;\n\t this.maybeSelectAutocompletedOption();\n\t this.hideList();\n\t this.props.onBlur();\n\t },\n\t\n\t handleOptionBlur: function handleOptionBlur() {\n\t // don't want to hide the list if we focused another option\n\t this.blurTimer = setTimeout(this.hideList, 0);\n\t },\n\t\n\t handleOptionFocus: function handleOptionFocus() {\n\t // see `handleOptionBlur`\n\t clearTimeout(this.blurTimer);\n\t },\n\t\n\t handleInputKeyUp: function handleInputKeyUp(event) {\n\t if (this.state.menu.isEmpty ||\n\t // autocompleting while backspacing feels super weird, so let's not\n\t event.keyCode === 8 /*backspace*/ || !this.props.autocomplete.match(/both|inline/)) return;\n\t },\n\t\n\t handleButtonClick: function handleButtonClick() {\n\t this.state.isOpen ? this.hideList() : this.showList();\n\t this.focusInput();\n\t },\n\t\n\t showList: function showList() {\n\t if (!this.state.menu.children.length) {\n\t return;\n\t }\n\t this.setState({ isOpen: true });\n\t },\n\t\n\t hideList: function hideList() {\n\t this.setState({\n\t isOpen: false,\n\t focusedIndex: null\n\t });\n\t },\n\t\n\t hideOnEscape: function hideOnEscape(event) {\n\t this.hideList();\n\t this.focusInput();\n\t event.preventDefault();\n\t },\n\t\n\t focusInput: function focusInput() {\n\t this.refs.input.focus();\n\t },\n\t\n\t selectInput: function selectInput() {\n\t this.refs.input.select();\n\t },\n\t\n\t inputKeydownMap: {\n\t 8: 'removeLastToken', // delete\n\t 13: 'selectOnEnter', // enter\n\t 188: 'selectOnEnter', // comma\n\t 27: 'hideOnEscape', // escape\n\t 38: 'focusPrevious', // up arrow\n\t 40: 'focusNext' // down arrow\n\t },\n\t\n\t optionKeydownMap: {\n\t 13: 'selectOption',\n\t 27: 'hideOnEscape',\n\t 38: 'focusPrevious',\n\t 40: 'focusNext'\n\t },\n\t\n\t handleKeydown: function handleKeydown(event) {\n\t var handlerName = this.inputKeydownMap[event.keyCode];\n\t if (!handlerName) return;\n\t this.setState({ usingKeyboard: true });\n\t return this[handlerName].call(this, event);\n\t },\n\t\n\t handleOptionKeyDown: function handleOptionKeyDown(child, event) {\n\t var handlerName = this.optionKeydownMap[event.keyCode];\n\t if (!handlerName) {\n\t // if the user starts typing again while focused on an option, move focus\n\t // to the inpute, select so it wipes out any existing value\n\t this.selectInput();\n\t return;\n\t }\n\t event.preventDefault();\n\t this.setState({ usingKeyboard: true });\n\t this[handlerName].call(this, child);\n\t },\n\t\n\t handleOptionMouseEnter: function handleOptionMouseEnter(index) {\n\t if (this.state.usingKeyboard) {\n\t this.setState({ usingKeyboard: false });\n\t }\n\t\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t selectOnEnter: function selectOnEnter(event) {\n\t event.preventDefault();\n\t this.maybeSelectAutocompletedOption();\n\t },\n\t\n\t maybeSelectAutocompletedOption: function maybeSelectAutocompletedOption() {\n\t if (!this.state.matchedAutocompleteOption) {\n\t this.selectText();\n\t } else {\n\t this.selectOption(this.state.matchedAutocompleteOption, { focus: false });\n\t }\n\t },\n\t\n\t selectOption: function selectOption(child, options) {\n\t options = options || {};\n\t this.setState({\n\t // value: child.props.value,\n\t // inputValue: getLabel(child),\n\t matchedAutocompleteOption: null\n\t }, function () {\n\t this.props.onSelect(child.props.value, child);\n\t this.hideList();\n\t this.clearSelectedState(); // added\n\t if (options.focus !== false) this.selectInput();\n\t }.bind(this));\n\t this.refs.input.value = ''; // added\n\t },\n\t\n\t selectText: function selectText() {\n\t var value = this.refs.input.value;\n\t if (!value) return;\n\t this.props.onSelect(value);\n\t this.clearSelectedState();\n\t this.refs.input.value = ''; // added\n\t },\n\t\n\t focusNext: function focusNext(event) {\n\t if (event.preventDefault) event.preventDefault();\n\t if (this.state.menu.isEmpty) return;\n\t var index = this.nextFocusableIndex(this.state.focusedIndex);\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t removeLastToken: function removeLastToken() {\n\t if (this.props.onRemoveLast && !this.refs.input.value) {\n\t this.props.onRemoveLast();\n\t }\n\t return true;\n\t },\n\t\n\t focusPrevious: function focusPrevious(event) {\n\t if (event.preventDefault) event.preventDefault();\n\t if (this.state.menu.isEmpty) return;\n\t var index = this.previousFocusableIndex(this.state.focusedIndex);\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t focusSelectedOption: function focusSelectedOption() {\n\t var selectedIndex;\n\t React.Children.forEach(this.props.children, function (child, index) {\n\t if (child.props.value === this.state.value) selectedIndex = index;\n\t }.bind(this));\n\t this.showList();\n\t this.setState({\n\t focusedIndex: selectedIndex\n\t }, this.focusOption);\n\t },\n\t\n\t findInitialInputValue: function findInitialInputValue() {\n\t // TODO: might not need this, we should know this in `makeMenu`\n\t var inputValue;\n\t React.Children.forEach(this.props.children, function (child) {\n\t if (child.props.value === this.props.value) inputValue = getLabel(child);\n\t }.bind(this));\n\t return inputValue;\n\t },\n\t\n\t clampIndex: function clampIndex(index) {\n\t if (index < 0) {\n\t return this.props.children.length - 1;\n\t } else if (index >= this.props.children.length) {\n\t return 0;\n\t }\n\t return index;\n\t },\n\t\n\t scanForFocusableIndex: function scanForFocusableIndex(index, increment) {\n\t if (index === null || index === undefined) {\n\t index = increment > 0 ? this.clampIndex(-1) : 0;\n\t }\n\t var newIndex = index;\n\t while (true) {\n\t newIndex = this.clampIndex(newIndex + increment);\n\t if (newIndex === index || this.props.children[newIndex].props.isFocusable) {\n\t return newIndex;\n\t }\n\t }\n\t },\n\t\n\t nextFocusableIndex: function nextFocusableIndex(index) {\n\t return this.scanForFocusableIndex(index, 1);\n\t },\n\t\n\t previousFocusableIndex: function previousFocusableIndex(index) {\n\t return this.scanForFocusableIndex(index, -1);\n\t },\n\t\n\t focusOptionAtIndex: function focusOptionAtIndex(index) {\n\t if (!this.state.isOpen && this.state.value) return this.focusSelectedOption();\n\t this.showList();\n\t var length = this.props.children.length;\n\t if (index === -1) index = length - 1;else if (index === length) index = 0;\n\t this.setState({\n\t focusedIndex: index\n\t }, this.focusOption);\n\t },\n\t\n\t focusOption: function focusOption() {\n\t var index = this.state.focusedIndex;\n\t this.refs.list.childNodes[index].focus();\n\t },\n\t\n\t render: function render() {\n\t var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' + 'Press the down arrow to navigate results. If you don\\'t find an ' + 'acceptable option, you can input an alternative. Once you find or ' + 'input the tag you want, press Enter or Comma to add it.';\n\t\n\t return div({ className: this.getClassName() }, this.props.value, this.state.inputValue, input({\n\t ref: 'input',\n\t autoComplete: 'off',\n\t spellCheck: 'false',\n\t 'aria-label': ariaLabel,\n\t 'aria-expanded': this.state.isOpen + '',\n\t 'aria-haspopup': 'true',\n\t 'aria-activedescendant': this.state.menu.activedescendant,\n\t 'aria-autocomplete': 'list',\n\t 'aria-owns': this.state.listId,\n\t id: this.props.id,\n\t disabled: this.props.isDisabled,\n\t className: 'ic-tokeninput-input',\n\t onFocus: this.handleInputFocus,\n\t onClick: this.handleInputClick,\n\t onChange: this.handleInputChange,\n\t onBlur: this.handleInputBlur,\n\t onKeyDown: this.handleKeydown,\n\t onKeyUp: this.handleInputKeyUp,\n\t placeholder: this.props.placeholder,\n\t role: 'combobox'\n\t }), span({\n\t 'aria-hidden': 'true',\n\t className: 'ic-tokeninput-button',\n\t onClick: this.handleButtonClick\n\t }, '▾'), div({\n\t id: this.state.listId,\n\t ref: 'list',\n\t className: 'ic-tokeninput-list',\n\t role: 'listbox'\n\t }, this.state.menu.children));\n\t }\n\t});\n\t\n\tfunction getLabel(component) {\n\t return component.props.label || component.props.children;\n\t}\n\t\n\tfunction matchFragment(userInput, firstChildLabel) {\n\t userInput = userInput.toLowerCase();\n\t firstChildLabel = firstChildLabel.toLowerCase();\n\t if (userInput === '' || userInput === firstChildLabel) return false;\n\t if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1) return false;\n\t return true;\n\t}\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = addClass;\n\t\n\tfunction addClass(existing, added) {\n\t if (!existing) return added;\n\t if (existing.indexOf(added) > -1) return existing;\n\t return existing + ' ' + added;\n\t}\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar addClass = __webpack_require__(3);\n\tvar omit = __webpack_require__(5);\n\tvar div = React.createFactory('div');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t\n\t propTypes: {\n\t\n\t /**\n\t * The value that will be sent to the `onSelect` handler of the\n\t * parent Combobox.\n\t */\n\t value: React.PropTypes.any.isRequired,\n\t\n\t /**\n\t * What value to put into the input element when this option is\n\t * selected, defaults to its children coerced to a string.\n\t */\n\t label: React.PropTypes.string,\n\t\n\t /**\n\t * Whether the element should be selectable\n\t */\n\t isFocusable: React.PropTypes.bool\n\t },\n\t\n\t getDefaultProps: function getDefaultProps() {\n\t return {\n\t role: 'option',\n\t tabIndex: '-1',\n\t className: 'ic-tokeninput-option',\n\t isSelected: false,\n\t isFocusable: true\n\t };\n\t },\n\t\n\t render: function render() {\n\t var props = this.props;\n\t if (props.isSelected) {\n\t props.className = addClass(props.className, 'ic-tokeninput-selected');\n\t props.ariaSelected = true;\n\t }\n\t return div(omit(props, ['isSelected', 'isFocusable']));\n\t }\n\t\n\t});\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/*!\n\t * object.omit \n\t *\n\t * Copyright (c) 2014-2015, Jon Schlinkert.\n\t * Licensed under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tvar isObject = __webpack_require__(6);\n\tvar forOwn = __webpack_require__(7);\n\t\n\tmodule.exports = function omit(obj, keys) {\n\t if (!isObject(obj)) return {};\n\t\n\t keys = [].concat.apply([], [].slice.call(arguments, 1));\n\t var last = keys[keys.length - 1];\n\t var res = {}, fn;\n\t\n\t if (typeof last === 'function') {\n\t fn = keys.pop();\n\t }\n\t\n\t var isFunction = typeof fn === 'function';\n\t if (!keys.length && !isFunction) {\n\t return obj;\n\t }\n\t\n\t forOwn(obj, function(value, key) {\n\t if (keys.indexOf(key) === -1) {\n\t\n\t if (!isFunction) {\n\t res[key] = value;\n\t } else if (fn(value, key, obj)) {\n\t res[key] = value;\n\t }\n\t }\n\t });\n\t return res;\n\t};\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports) {\n\n\t/*!\n\t * is-extendable \n\t *\n\t * Copyright (c) 2015, Jon Schlinkert.\n\t * Licensed under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tmodule.exports = function isExtendable(val) {\n\t return typeof val !== 'undefined' && val !== null\n\t && (typeof val === 'object' || typeof val === 'function');\n\t};\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/*!\n\t * for-own \n\t *\n\t * Copyright (c) 2014-2017, Jon Schlinkert.\n\t * Released under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tvar forIn = __webpack_require__(8);\n\tvar hasOwn = Object.prototype.hasOwnProperty;\n\t\n\tmodule.exports = function forOwn(obj, fn, thisArg) {\n\t forIn(obj, function(val, key) {\n\t if (hasOwn.call(obj, key)) {\n\t return fn.call(thisArg, obj[key], key, obj);\n\t }\n\t });\n\t};\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports) {\n\n\t/*!\n\t * for-in \n\t *\n\t * Copyright (c) 2014-2017, Jon Schlinkert.\n\t * Released under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tmodule.exports = function forIn(obj, fn, thisArg) {\n\t for (var key in obj) {\n\t if (fn.call(thisArg, obj[key], key, obj) === false) {\n\t break;\n\t }\n\t }\n\t};\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar span = React.DOM.span;\n\tvar li = React.createFactory('li');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t handleClick: function handleClick() {\n\t this.props.onRemove(this.props.value);\n\t },\n\t\n\t handleKeyDown: function handleKeyDown(key) {\n\t var enterKey = 13;\n\t if (key.keyCode === enterKey) this.props.onRemove(this.props.value);\n\t },\n\t\n\t ariaLabelRemove: function ariaLabelRemove() {\n\t return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) : 'Remove \\'' + this.props.name + '\\'';\n\t },\n\t\n\t render: function render() {\n\t return li({\n\t className: \"ic-token inline-flex\"\n\t }, span({ className: \"ic-token-label\" }, this.props.name), span({\n\t role: 'button',\n\t onClick: this.handleClick,\n\t onFocus: this.props.onFocus,\n\t onKeyDown: this.handleKeyDown,\n\t 'aria-label': this.ariaLabelRemove(),\n\t className: \"ic-token-delete-button\",\n\t tabIndex: 0\n\t }, \"✕\"));\n\t }\n\t});\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar Combobox = React.createFactory(__webpack_require__(1));\n\tvar Token = React.createFactory(__webpack_require__(9));\n\tvar classnames = __webpack_require__(11);\n\t\n\tvar ul = React.DOM.ul;\n\tvar li = React.DOM.li;\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t propTypes: {\n\t isLoading: React.PropTypes.bool,\n\t loadingComponent: React.PropTypes.any,\n\t onFocus: React.PropTypes.func,\n\t onBlur: React.PropTypes.func,\n\t onInput: React.PropTypes.func.isRequired,\n\t onSelect: React.PropTypes.func.isRequired,\n\t tokenAriaFunc: React.PropTypes.func,\n\t onRemove: React.PropTypes.func.isRequired,\n\t selected: React.PropTypes.array.isRequired,\n\t menuContent: React.PropTypes.any,\n\t showListOnFocus: React.PropTypes.bool,\n\t placeholder: React.PropTypes.string\n\t },\n\t\n\t getInitialState: function getInitialState() {\n\t return {\n\t selectedToken: null\n\t };\n\t },\n\t\n\t handleClick: function handleClick() {\n\t // TODO: Expand combobox API for focus\n\t this.refs['combo-li'].querySelector('input').focus();\n\t },\n\t\n\t handleFocus: function handleFocus() {\n\t if (this.props.onFocus) {\n\t this.props.onFocus();\n\t }\n\t },\n\t\n\t handleBlur: function handleBlur() {\n\t if (this.props.onBlur) {\n\t this.props.onBlur();\n\t }\n\t },\n\t\n\t handleInput: function handleInput(inputValue) {\n\t this.props.onInput(inputValue);\n\t },\n\t\n\t handleSelect: function handleSelect(event, option) {\n\t var input = this.refs['combo-li'].querySelector('input');\n\t this.props.onSelect(event, option);\n\t this.setState({\n\t selectedToken: null\n\t });\n\t this.props.onInput(input.value);\n\t },\n\t\n\t handleRemove: function handleRemove(value) {\n\t var input = this.refs['combo-li'].querySelector('input');\n\t this.props.onRemove(value);\n\t input.focus();\n\t },\n\t\n\t handleRemoveLast: function handleRemoveLast() {\n\t this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n\t },\n\t\n\t render: function render() {\n\t var isDisabled = this.props.isDisabled;\n\t var tokens = this.props.selected.map(function (token) {\n\t return Token({\n\t tokenAriaFunc: this.props.tokenAriaFunc,\n\t onFocus: this.handleFocus,\n\t onRemove: this.handleRemove,\n\t value: token,\n\t name: token.name,\n\t key: token.id });\n\t }.bind(this));\n\t\n\t var classes = classnames('ic-tokens flex', {\n\t 'ic-tokens-disabled': isDisabled\n\t });\n\t\n\t return ul({ className: classes, onClick: this.handleClick }, tokens, li({ className: 'inline-flex', ref: 'combo-li' }, Combobox({\n\t id: this.props.id,\n\t 'aria-label': this.props['combobox-aria-label'],\n\t ariaDisabled: isDisabled,\n\t onFocus: this.handleFocus,\n\t onBlur: this.handleBlur,\n\t onInput: this.handleInput,\n\t showListOnFocus: this.props.showListOnFocus,\n\t onSelect: this.handleSelect,\n\t onRemoveLast: this.handleRemoveLast,\n\t value: this.state.selectedToken,\n\t isDisabled: isDisabled,\n\t placeholder: this.props.placeholder\n\t }, this.props.menuContent)), this.props.isLoading && li({ className: 'ic-tokeninput-loading flex' }, this.props.loadingComponent));\n\t }\n\t});\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n\t Copyright (c) 2016 Jed Watson.\n\t Licensed under the MIT License (MIT), see\n\t http://jedwatson.github.io/classnames\n\t*/\n\t/* global define */\n\t\n\t(function () {\n\t\t'use strict';\n\t\n\t\tvar hasOwn = {}.hasOwnProperty;\n\t\n\t\tfunction classNames () {\n\t\t\tvar classes = [];\n\t\n\t\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\t\tvar arg = arguments[i];\n\t\t\t\tif (!arg) continue;\n\t\n\t\t\t\tvar argType = typeof arg;\n\t\n\t\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\t\tclasses.push(arg);\n\t\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t\t} else if (argType === 'object') {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\treturn classes.join(' ');\n\t\t}\n\t\n\t\tif (typeof module !== 'undefined' && module.exports) {\n\t\t\tmodule.exports = classNames;\n\t\t} else if (true) {\n\t\t\t// register as 'classnames', consistent with npm package name\n\t\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\t\t\t\treturn classNames;\n\t\t\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t\t} else {\n\t\t\twindow.classNames = classNames;\n\t\t}\n\t}());\n\n\n/***/ })\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// react-tokeninput.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap d2d96eb50982bb6e83df","export Combobox from './combobox';\nexport Option from './option';\nexport Token from './token';\nimport main from './main';\n\n/**\n * You can't do an import and then immediately export it :(\n * And `export default TokenInput from './main'` doesn't seem to\n * work either :(\n * So this little variable swapping stuff gets it to work.\n */\nconst TokenInput = main;\nexport default TokenInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var React = require('react');\nvar guid = 0;\nvar k = function(){};\nvar addClass = require('./add-class');\nvar ComboboxOption = require('./option');\n\nvar div = React.createFactory('div');\nvar span = React.createFactory('span');\nvar input = React.createFactory('input');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n /**\n * Called when the combobox's input receives focus and the user begins interacting with it.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onFocus: React.PropTypes.func,\n\n /**\n * Called when the combobox's input loses focus after being activated for user input\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onBlur: React.PropTypes.func,\n\n /**\n * Called when the combobox receives user input, this is your chance to\n * filter the data and rerender the options.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onInput: React.PropTypes.func,\n\n /**\n * Called when the combobox receives a selection. You probably want to reset\n * the options to the full list at this point.\n *\n * Signature:\n *\n * ```js\n * function(selectedValue){}\n * ```\n */\n onSelect: React.PropTypes.func,\n\n /**\n * Shown when the combobox is empty.\n */\n placeholder: React.PropTypes.string\n },\n\n getDefaultProps: function() {\n return {\n autocomplete: 'both',\n onFocus: k,\n onBlur: k,\n onInput: k,\n onSelect: k,\n value: null,\n showListOnFocus: false\n };\n },\n\n getInitialState: function() {\n return {\n value: this.props.value,\n // the value displayed in the input\n inputValue: this.findInitialInputValue(),\n isOpen: false,\n focusedIndex: null,\n matchedAutocompleteOption: null,\n // this prevents crazy jumpiness since we focus options on mouseenter\n usingKeyboard: false,\n activedescendant: null,\n listId: 'ic-tokeninput-list-'+(++guid),\n menu: {\n children: [],\n activedescendant: null,\n isEmpty: true\n }\n };\n },\n\n componentWillMount: function() {\n this.setState({menu: this.makeMenu(this.props.children)});\n },\n\n componentWillReceiveProps: function(newProps) {\n this.setState({menu: this.makeMenu(newProps.children)}, function() {\n if(newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({\n isOpen: true\n }, function() {\n this.refs.list.scrollTop = 0;\n }.bind(this))\n } else {\n this.hideList();\n }\n\n }.bind(this));\n },\n\n /**\n * We don't create the components, the user supplies them,\n * so before rendering we attach handlers to facilitate communication from\n * the ComboboxOption to the Combobox.\n */\n makeMenu: function(children) {\n var activedescendant;\n var isEmpty = true;\n\n // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n var _children = React.Children.map(children, function(child, index) {\n // console.log(child.type, ComboboxOption.type)\n if (child.type !== ComboboxOption || !child.props.isFocusable) {\n // allow random elements to live in this list\n return child;\n }\n isEmpty = false;\n // TODO: cloneWithProps and map instead of altering the children in-place\n var props = child.props;\n var newProps = {};\n if (this.state.value === child.props.value) {\n // need an ID for WAI-ARIA\n newProps.id = props.id || 'ic-tokeninput-selected-'+(++guid);\n newProps.isSelected = true\n activedescendant = props.id;\n }\n newProps.onBlur = this.handleOptionBlur;\n newProps.onClick = this.selectOption.bind(this, child);\n newProps.onFocus = this.handleOptionFocus;\n newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n newProps.onTouchStart = this.handleOptionMouseEnter.bind(this, index);\n\n return React.cloneElement(child, newProps);\n }.bind(this));\n\n return {\n children: _children,\n activedescendant: activedescendant,\n isEmpty: isEmpty\n };\n },\n\n getClassName: function() {\n var className = addClass(this.props.className, 'ic-tokeninput');\n if (this.state.isOpen)\n className = addClass(className, 'ic-tokeninput-is-open');\n return className;\n },\n\n /**\n * When the user begins typing again we need to clear out any state that has\n * to do with an existing or potential selection.\n */\n clearSelectedState: function(cb) {\n this.setState({\n focusedIndex: null,\n inputValue: null,\n value: null,\n matchedAutocompleteOption: null,\n activedescendant: null\n }, cb);\n },\n\n handleInputChange: function() {\n var value = this.refs.input.value;\n this.clearSelectedState(function() {\n this.props.onInput(value);\n }.bind(this));\n },\n\n handleInputFocus: function() {\n this.props.onFocus();\n this.maybeShowList();\n },\n\n handleInputClick: function() {\n this.maybeShowList();\n },\n\n maybeShowList: function(){\n if (this.props.showListOnFocus){\n this.showList()\n }\n },\n\n handleInputBlur: function() {\n var focusedAnOption = this.state.focusedIndex != null;\n if (focusedAnOption)\n return;\n this.maybeSelectAutocompletedOption();\n this.hideList();\n this.props.onBlur();\n },\n\n handleOptionBlur: function() {\n // don't want to hide the list if we focused another option\n this.blurTimer = setTimeout(this.hideList, 0);\n },\n\n\n handleOptionFocus: function() {\n // see `handleOptionBlur`\n clearTimeout(this.blurTimer);\n },\n\n handleInputKeyUp: function(event) {\n if (\n this.state.menu.isEmpty ||\n // autocompleting while backspacing feels super weird, so let's not\n event.keyCode === 8 /*backspace*/ ||\n !this.props.autocomplete.match(/both|inline/)\n ) return;\n },\n\n handleButtonClick: function() {\n this.state.isOpen ? this.hideList() : this.showList();\n this.focusInput();\n },\n\n showList: function() {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({isOpen: true})\n },\n\n hideList: function() {\n this.setState({\n isOpen: false,\n focusedIndex: null\n });\n },\n\n hideOnEscape: function(event) {\n this.hideList();\n this.focusInput();\n event.preventDefault();\n },\n\n focusInput: function() {\n this.refs.input.focus();\n },\n\n selectInput: function() {\n this.refs.input.select();\n },\n\n inputKeydownMap: {\n 8: 'removeLastToken', // delete\n 13: 'selectOnEnter', // enter\n 188: 'selectOnEnter', // comma\n 27: 'hideOnEscape', // escape\n 38: 'focusPrevious', // up arrow\n 40: 'focusNext' // down arrow\n },\n\n optionKeydownMap: {\n 13: 'selectOption',\n 27: 'hideOnEscape',\n 38: 'focusPrevious',\n 40: 'focusNext'\n },\n\n handleKeydown: function(event) {\n var handlerName = this.inputKeydownMap[event.keyCode];\n if (!handlerName)\n return\n this.setState({usingKeyboard: true});\n return this[handlerName].call(this,event);\n },\n\n handleOptionKeyDown: function(child, event) {\n var handlerName = this.optionKeydownMap[event.keyCode];\n if (!handlerName) {\n // if the user starts typing again while focused on an option, move focus\n // to the inpute, select so it wipes out any existing value\n this.selectInput();\n return;\n }\n event.preventDefault();\n this.setState({usingKeyboard: true});\n this[handlerName].call(this, child);\n },\n\n handleOptionMouseEnter: function(index) {\n if (this.state.usingKeyboard) {\n this.setState({ usingKeyboard: false });\n }\n\n this.focusOptionAtIndex(index);\n },\n\n selectOnEnter: function(event) {\n event.preventDefault();\n this.maybeSelectAutocompletedOption()\n },\n\n maybeSelectAutocompletedOption: function() {\n if (!this.state.matchedAutocompleteOption) {\n this.selectText()\n } else {\n this.selectOption(this.state.matchedAutocompleteOption, {focus: false});\n }\n },\n\n selectOption: function(child, options) {\n options = options || {};\n this.setState({\n // value: child.props.value,\n // inputValue: getLabel(child),\n matchedAutocompleteOption: null\n }, function() {\n this.props.onSelect(child.props.value, child);\n this.hideList();\n this.clearSelectedState(); // added\n if (options.focus !== false)\n this.selectInput();\n }.bind(this));\n this.refs.input.value = '' // added\n },\n\n selectText: function() {\n var value = this.refs.input.value;\n if(!value) return;\n this.props.onSelect(value);\n this.clearSelectedState();\n this.refs.input.value = '' // added\n },\n\n focusNext: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.nextFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n removeLastToken: function() {\n if(this.props.onRemoveLast && !this.refs.input.value) {\n this.props.onRemoveLast()\n }\n return true\n },\n\n focusPrevious: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.previousFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n focusSelectedOption: function() {\n var selectedIndex;\n React.Children.forEach(this.props.children, function(child, index) {\n if (child.props.value === this.state.value)\n selectedIndex = index;\n }.bind(this));\n this.showList();\n this.setState({\n focusedIndex: selectedIndex\n }, this.focusOption);\n },\n\n findInitialInputValue: function() {\n // TODO: might not need this, we should know this in `makeMenu`\n var inputValue;\n React.Children.forEach(this.props.children, function(child) {\n if (child.props.value === this.props.value)\n inputValue = getLabel(child);\n }.bind(this));\n return inputValue;\n },\n\n clampIndex: function(index) {\n if (index < 0) {\n return this.props.children.length - 1\n } else if (index >= this.props.children.length) {\n return 0\n }\n return index\n },\n\n scanForFocusableIndex: function(index, increment) {\n if (index === null || index === undefined) {\n index = increment > 0 ? this.clampIndex(-1) : 0\n }\n var newIndex = index\n while (true) {\n newIndex = this.clampIndex(newIndex + increment)\n if (newIndex === index ||\n this.props.children[newIndex].props.isFocusable)\n {\n return newIndex\n }\n }\n },\n\n nextFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, 1)\n },\n\n previousFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, -1)\n },\n\n focusOptionAtIndex: function(index) {\n if (!this.state.isOpen && this.state.value)\n return this.focusSelectedOption();\n this.showList();\n var length = this.props.children.length;\n if (index === -1)\n index = length - 1;\n else if (index === length)\n index = 0;\n this.setState({\n focusedIndex: index\n }, this.focusOption);\n },\n\n focusOption: function() {\n var index = this.state.focusedIndex;\n this.refs.list.childNodes[index].focus();\n },\n\n render: function() {\n var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' +\n 'Press the down arrow to navigate results. If you don\\'t find an ' +\n 'acceptable option, you can input an alternative. Once you find or ' +\n 'input the tag you want, press Enter or Comma to add it.'\n\n return div({className: this.getClassName()},\n this.props.value,\n this.state.inputValue,\n input({\n ref: 'input',\n autoComplete: 'off',\n spellCheck: 'false',\n 'aria-label': ariaLabel,\n 'aria-expanded': this.state.isOpen+'',\n 'aria-haspopup': 'true',\n 'aria-activedescendant': this.state.menu.activedescendant,\n 'aria-autocomplete': 'list',\n 'aria-owns': this.state.listId,\n id: this.props.id,\n disabled: this.props.isDisabled,\n className: 'ic-tokeninput-input',\n onFocus: this.handleInputFocus,\n onClick: this.handleInputClick,\n onChange: this.handleInputChange,\n onBlur: this.handleInputBlur,\n onKeyDown: this.handleKeydown,\n onKeyUp: this.handleInputKeyUp,\n placeholder: this.props.placeholder,\n role: 'combobox'\n }),\n span({\n 'aria-hidden': 'true',\n className: 'ic-tokeninput-button',\n onClick: this.handleButtonClick\n }, '▾'),\n div({\n id: this.state.listId,\n ref: 'list',\n className: 'ic-tokeninput-list',\n role: 'listbox'\n }, this.state.menu.children)\n );\n }\n});\n\nfunction getLabel(component) {\n return component.props.label || component.props.children;\n}\n\nfunction matchFragment(userInput, firstChildLabel) {\n userInput = userInput.toLowerCase();\n firstChildLabel = firstChildLabel.toLowerCase();\n if (userInput === '' || userInput === firstChildLabel)\n return false;\n if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1)\n return false;\n return true;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/combobox.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 2\n// module chunks = 0 1","module.exports = addClass;\n\nfunction addClass(existing, added) {\n if (!existing) return added;\n if (existing.indexOf(added) > -1) return existing;\n return existing + ' ' + added;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/add-class.js","var React = require('react');\nvar addClass = require('./add-class');\nvar omit = require('object.omit');\nvar div = React.createFactory('div');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n\n /**\n * The value that will be sent to the `onSelect` handler of the\n * parent Combobox.\n */\n value: React.PropTypes.any.isRequired,\n\n /**\n * What value to put into the input element when this option is\n * selected, defaults to its children coerced to a string.\n */\n label: React.PropTypes.string,\n\n /**\n * Whether the element should be selectable\n */\n isFocusable: React.PropTypes.bool\n },\n\n getDefaultProps: function() {\n return {\n role: 'option',\n tabIndex: '-1',\n className: 'ic-tokeninput-option',\n isSelected: false,\n isFocusable: true\n };\n },\n\n render: function() {\n var props = this.props;\n if (props.isSelected) {\n props.className = addClass(props.className, 'ic-tokeninput-selected');\n props.ariaSelected = true;\n }\n return div(omit(props, ['isSelected', 'isFocusable']));\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/option.js","/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('is-extendable');\nvar forOwn = require('for-own');\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function(value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object.omit/index.js\n// module id = 5\n// module chunks = 0 1","/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/is-extendable/index.js\n// module id = 6\n// module chunks = 0 1","/*!\n * for-own \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar forIn = require('for-in');\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(obj, fn, thisArg) {\n forIn(obj, function(val, key) {\n if (hasOwn.call(obj, key)) {\n return fn.call(thisArg, obj[key], key, obj);\n }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-own/index.js\n// module id = 7\n// module chunks = 0 1","/*!\n * for-in \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(obj, fn, thisArg) {\n for (var key in obj) {\n if (fn.call(thisArg, obj[key], key, obj) === false) {\n break;\n }\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-in/index.js\n// module id = 8\n// module chunks = 0 1","var React = require('react');\nvar span = React.DOM.span;\nvar li = React.createFactory('li');\n\nmodule.exports = React.createClass({\n handleClick: function() {\n this.props.onRemove(this.props.value)\n },\n\n handleKeyDown: function(key) {\n var enterKey = 13;\n if(key.keyCode === enterKey) this.props.onRemove(this.props.value)\n },\n\n ariaLabelRemove: function ariaLabelRemove() {\n return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) :\n 'Remove \\'' + this.props.name + '\\'';\n },\n\n render: function() {\n return (\n li({\n className: \"ic-token inline-flex\"\n },\n span({className: \"ic-token-label\"}, this.props.name),\n span({\n role: 'button',\n onClick: this.handleClick,\n onFocus: this.props.onFocus,\n onKeyDown: this.handleKeyDown,\n 'aria-label': this.ariaLabelRemove(),\n className: \"ic-token-delete-button\",\n tabIndex: 0\n }, \"✕\")\n )\n )\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/token.js","var React = require('react');\nvar Combobox = React.createFactory(require('./combobox'));\nvar Token = React.createFactory(require('./token'));\nvar classnames = require('classnames');\n\nvar ul = React.DOM.ul;\nvar li = React.DOM.li;\n\nmodule.exports = React.createClass({\n propTypes: {\n isLoading: React.PropTypes.bool,\n loadingComponent: React.PropTypes.any,\n onFocus: React.PropTypes.func,\n onBlur: React.PropTypes.func,\n onInput: React.PropTypes.func.isRequired,\n onSelect: React.PropTypes.func.isRequired,\n tokenAriaFunc: React.PropTypes.func,\n onRemove: React.PropTypes.func.isRequired,\n selected: React.PropTypes.array.isRequired,\n menuContent: React.PropTypes.any,\n showListOnFocus: React.PropTypes.bool,\n placeholder: React.PropTypes.string\n },\n\n getInitialState: function() {\n return {\n selectedToken: null\n };\n },\n\n handleClick: function() {\n // TODO: Expand combobox API for focus\n this.refs['combo-li'].querySelector('input').focus();\n },\n\n handleFocus: function() {\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n },\n\n handleBlur: function() {\n if (this.props.onBlur) {\n this.props.onBlur();\n }\n },\n\n handleInput: function(inputValue) {\n this.props.onInput(inputValue);\n },\n\n handleSelect: function(event, option) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onSelect(event, option)\n this.setState({\n selectedToken: null\n })\n this.props.onInput(input.value);\n },\n\n handleRemove: function(value) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onRemove(value);\n input.focus();\n },\n\n handleRemoveLast: function() {\n this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n },\n\n render: function() {\n var isDisabled = this.props.isDisabled;\n var tokens = this.props.selected.map(function(token) {\n return (\n Token({\n tokenAriaFunc: this.props.tokenAriaFunc,\n onFocus: this.handleFocus,\n onRemove: this.handleRemove,\n value: token,\n name: token.name,\n key: token.id})\n )\n }.bind(this))\n\n var classes = classnames('ic-tokens flex', {\n 'ic-tokens-disabled': isDisabled\n });\n\n return ul({className: classes, onClick: this.handleClick},\n tokens,\n li({className: 'inline-flex', ref: 'combo-li'},\n Combobox({\n id: this.props.id,\n 'aria-label': this.props['combobox-aria-label'],\n ariaDisabled: isDisabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n onInput: this.handleInput,\n showListOnFocus: this.props.showListOnFocus,\n onSelect: this.handleSelect,\n onRemoveLast: this.handleRemoveLast,\n value: this.state.selectedToken,\n isDisabled: isDisabled,\n placeholder: this.props.placeholder\n },\n this.props.menuContent\n )\n ),\n this.props.isLoading && li({className: 'ic-tokeninput-loading flex'}, this.props.loadingComponent)\n );\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 11\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6","webpack:///react-tokeninput.min.js","webpack:///webpack/bootstrap d35bb24c59e8aabfcbae?cce2","webpack:///./src/index.js?9552","webpack:///./src/combobox.js?fdf1","webpack:///external \"react\"?3c62","webpack:///./src/add-class.js?a8a9","webpack:///./src/option.js?9ff5","webpack:///./~/object.omit/index.js?7a1a","webpack:///./~/is-extendable/index.js?f1f6","webpack:///./~/for-own/index.js?9374","webpack:///./~/for-in/index.js?acef","webpack:///./src/token.js?3924","webpack:///./src/main.js?3479","webpack:///./~/classnames/index.js?8e43"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_2__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","Object","defineProperty","value","Token","Option","Combobox","undefined","_combobox","_combobox2","_option","_option2","_token","_token2","_main","_main2","TokenInput","getLabel","component","props","label","children","React","guid","k","addClass","ComboboxOption","div","createFactory","span","input","createClass","displayName","propTypes","onFocus","PropTypes","func","onBlur","onInput","onSelect","placeholder","string","getDefaultProps","autocomplete","showListOnFocus","getInitialState","inputValue","findInitialInputValue","isOpen","focusedIndex","matchedAutocompleteOption","usingKeyboard","activedescendant","listId","menu","isEmpty","componentWillMount","setState","makeMenu","componentWillReceiveProps","newProps","length","document","activeElement","refs","state","list","scrollTop","bind","hideList","_children","Children","map","child","index","type","isFocusable","isSelected","handleOptionBlur","onClick","selectOption","handleOptionFocus","onKeyDown","handleOptionKeyDown","onMouseEnter","handleOptionMouseEnter","onTouchStart","cloneElement","getClassName","className","clearSelectedState","cb","handleInputChange","handleInputFocus","maybeShowList","handleInputClick","showList","handleInputBlur","focusedAnOption","maybeSelectAutocompletedOption","blurTimer","setTimeout","clearTimeout","handleInputKeyUp","event","keyCode","match","handleButtonClick","focusInput","hideOnEscape","preventDefault","focus","selectInput","select","inputKeydownMap","8","13","188","27","38","40","optionKeydownMap","handleKeydown","handlerName","focusOptionAtIndex","selectOnEnter","selectText","options","focusNext","nextFocusableIndex","removeLastToken","onRemoveLast","focusPrevious","previousFocusableIndex","focusSelectedOption","selectedIndex","forEach","focusOption","clampIndex","scanForFocusableIndex","increment","newIndex","childNodes","render","ariaLabel","ref","autoComplete","spellCheck","aria-label","aria-expanded","aria-haspopup","aria-activedescendant","aria-autocomplete","aria-owns","disabled","isDisabled","onChange","onKeyUp","role","aria-hidden","existing","added","indexOf","omit","any","isRequired","bool","tabIndex","ariaSelected","isObject","forOwn","keys","concat","apply","slice","arguments","fn","last","res","pop","isFunction","key","val","forIn","hasOwn","prototype","hasOwnProperty","thisArg","DOM","li","handleClick","onRemove","handleKeyDown","enterKey","ariaLabelRemove","tokenAriaFunc","name","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","create","constructor","enumerable","writable","configurable","setPrototypeOf","__proto__","Main","_createClass","defineProperties","target","i","descriptor","protoProps","staticProps","_react","_react2","_classnames","_classnames2","ul","_React$Component","_this","getPrototypeOf","selectedToken","querySelector","option","selected","tokens","token","handleFocus","handleRemove","classes","ic-tokens-disabled","ariaDisabled","handleBlur","handleInput","handleSelect","handleRemoveLast","menuContent","isLoading","loadingComponent","Component","__WEBPACK_AMD_DEFINE_ARRAY__","__WEBPACK_AMD_DEFINE_RESULT__","classNames","arg","argType","push","Array","isArray","join"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,UACA,kBAAAC,gBAAAC,IACAD,QAAA,SAAAJ,GACA,gBAAAC,SACAA,QAAA,WAAAD,EAAAG,QAAA,UAEAJ,EAAA,WAAAC,EAAAD,EAAA,QACCO,KAAA,SAAAC,GACD,MCAgB,UAAUC,G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,IACG9E,MAAAjM,EAAA6Q,KAAAlP,SAAAmP,IAAA7Q,EAAAD,QAAA8Q","file":"react-tokeninput.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TokenInput\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"TokenInput\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Token = exports.Option = exports.Combobox = undefined;\n\t\n\tvar _combobox = __webpack_require__(1);\n\t\n\tvar _combobox2 = _interopRequireDefault(_combobox);\n\t\n\tvar _option = __webpack_require__(4);\n\t\n\tvar _option2 = _interopRequireDefault(_option);\n\t\n\tvar _token = __webpack_require__(9);\n\t\n\tvar _token2 = _interopRequireDefault(_token);\n\t\n\tvar _main = __webpack_require__(10);\n\t\n\tvar _main2 = _interopRequireDefault(_main);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.Combobox = _combobox2.default;\n\texports.Option = _option2.default;\n\texports.Token = _token2.default;\n\t\n\t\n\t/**\n\t * You can't do an import and then immediately export it :(\n\t * And `export default TokenInput from './main'` doesn't seem to\n\t * work either :(\n\t * So this little variable swapping stuff gets it to work.\n\t */\n\tvar TokenInput = _main2.default;\n\texports.default = TokenInput;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar guid = 0;\n\tvar k = function k() {};\n\tvar addClass = __webpack_require__(3);\n\tvar ComboboxOption = __webpack_require__(4);\n\t\n\tvar div = React.createFactory('div');\n\tvar span = React.createFactory('span');\n\tvar input = React.createFactory('input');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t\n\t propTypes: {\n\t /**\n\t * Called when the combobox's input receives focus and the user begins interacting with it.\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(userInput){}\n\t * ```\n\t */\n\t onFocus: React.PropTypes.func,\n\t\n\t /**\n\t * Called when the combobox's input loses focus after being activated for user input\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(userInput){}\n\t * ```\n\t */\n\t onBlur: React.PropTypes.func,\n\t\n\t /**\n\t * Called when the combobox receives user input, this is your chance to\n\t * filter the data and rerender the options.\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(userInput){}\n\t * ```\n\t */\n\t onInput: React.PropTypes.func,\n\t\n\t /**\n\t * Called when the combobox receives a selection. You probably want to reset\n\t * the options to the full list at this point.\n\t *\n\t * Signature:\n\t *\n\t * ```js\n\t * function(selectedValue){}\n\t * ```\n\t */\n\t onSelect: React.PropTypes.func,\n\t\n\t /**\n\t * Shown when the combobox is empty.\n\t */\n\t placeholder: React.PropTypes.string\n\t },\n\t\n\t getDefaultProps: function getDefaultProps() {\n\t return {\n\t autocomplete: 'both',\n\t onFocus: k,\n\t onBlur: k,\n\t onInput: k,\n\t onSelect: k,\n\t value: null,\n\t showListOnFocus: false\n\t };\n\t },\n\t\n\t getInitialState: function getInitialState() {\n\t return {\n\t value: this.props.value,\n\t // the value displayed in the input\n\t inputValue: this.findInitialInputValue(),\n\t isOpen: false,\n\t focusedIndex: null,\n\t matchedAutocompleteOption: null,\n\t // this prevents crazy jumpiness since we focus options on mouseenter\n\t usingKeyboard: false,\n\t activedescendant: null,\n\t listId: 'ic-tokeninput-list-' + ++guid,\n\t menu: {\n\t children: [],\n\t activedescendant: null,\n\t isEmpty: true\n\t }\n\t };\n\t },\n\t\n\t componentWillMount: function componentWillMount() {\n\t this.setState({ menu: this.makeMenu(this.props.children) });\n\t },\n\t\n\t componentWillReceiveProps: function componentWillReceiveProps(newProps) {\n\t this.setState({ menu: this.makeMenu(newProps.children) }, function () {\n\t if (newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n\t if (!this.state.menu.children.length) {\n\t return;\n\t }\n\t this.setState({\n\t isOpen: true\n\t }, function () {\n\t this.refs.list.scrollTop = 0;\n\t }.bind(this));\n\t } else {\n\t this.hideList();\n\t }\n\t }.bind(this));\n\t },\n\t\n\t /**\n\t * We don't create the components, the user supplies them,\n\t * so before rendering we attach handlers to facilitate communication from\n\t * the ComboboxOption to the Combobox.\n\t */\n\t makeMenu: function makeMenu(children) {\n\t var activedescendant;\n\t var isEmpty = true;\n\t\n\t // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n\t var _children = React.Children.map(children, function (child, index) {\n\t // console.log(child.type, ComboboxOption.type)\n\t if (child.type !== ComboboxOption || !child.props.isFocusable) {\n\t // allow random elements to live in this list\n\t return child;\n\t }\n\t isEmpty = false;\n\t // TODO: cloneWithProps and map instead of altering the children in-place\n\t var props = child.props;\n\t var newProps = {};\n\t if (this.state.value === child.props.value) {\n\t // need an ID for WAI-ARIA\n\t newProps.id = props.id || 'ic-tokeninput-selected-' + ++guid;\n\t newProps.isSelected = true;\n\t activedescendant = props.id;\n\t }\n\t newProps.onBlur = this.handleOptionBlur;\n\t newProps.onClick = this.selectOption.bind(this, child);\n\t newProps.onFocus = this.handleOptionFocus;\n\t newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n\t newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n\t newProps.onTouchStart = this.handleOptionMouseEnter.bind(this, index);\n\t\n\t return React.cloneElement(child, newProps);\n\t }.bind(this));\n\t\n\t return {\n\t children: _children,\n\t activedescendant: activedescendant,\n\t isEmpty: isEmpty\n\t };\n\t },\n\t\n\t getClassName: function getClassName() {\n\t var className = addClass(this.props.className, 'ic-tokeninput');\n\t if (this.state.isOpen) className = addClass(className, 'ic-tokeninput-is-open');\n\t return className;\n\t },\n\t\n\t /**\n\t * When the user begins typing again we need to clear out any state that has\n\t * to do with an existing or potential selection.\n\t */\n\t clearSelectedState: function clearSelectedState(cb) {\n\t this.setState({\n\t focusedIndex: null,\n\t inputValue: null,\n\t value: null,\n\t matchedAutocompleteOption: null,\n\t activedescendant: null\n\t }, cb);\n\t },\n\t\n\t handleInputChange: function handleInputChange() {\n\t var value = this.refs.input.value;\n\t this.clearSelectedState(function () {\n\t this.props.onInput(value);\n\t }.bind(this));\n\t },\n\t\n\t handleInputFocus: function handleInputFocus() {\n\t this.props.onFocus();\n\t this.maybeShowList();\n\t },\n\t\n\t handleInputClick: function handleInputClick() {\n\t this.maybeShowList();\n\t },\n\t\n\t maybeShowList: function maybeShowList() {\n\t if (this.props.showListOnFocus) {\n\t this.showList();\n\t }\n\t },\n\t\n\t handleInputBlur: function handleInputBlur() {\n\t var focusedAnOption = this.state.focusedIndex != null;\n\t if (focusedAnOption) return;\n\t this.maybeSelectAutocompletedOption();\n\t this.hideList();\n\t this.props.onBlur();\n\t },\n\t\n\t handleOptionBlur: function handleOptionBlur() {\n\t // don't want to hide the list if we focused another option\n\t this.blurTimer = setTimeout(this.hideList, 0);\n\t },\n\t\n\t handleOptionFocus: function handleOptionFocus() {\n\t // see `handleOptionBlur`\n\t clearTimeout(this.blurTimer);\n\t },\n\t\n\t handleInputKeyUp: function handleInputKeyUp(event) {\n\t if (this.state.menu.isEmpty ||\n\t // autocompleting while backspacing feels super weird, so let's not\n\t event.keyCode === 8 /*backspace*/ || !this.props.autocomplete.match(/both|inline/)) return;\n\t },\n\t\n\t handleButtonClick: function handleButtonClick() {\n\t this.state.isOpen ? this.hideList() : this.showList();\n\t this.focusInput();\n\t },\n\t\n\t showList: function showList() {\n\t if (!this.state.menu.children.length) {\n\t return;\n\t }\n\t this.setState({ isOpen: true });\n\t },\n\t\n\t hideList: function hideList() {\n\t this.setState({\n\t isOpen: false,\n\t focusedIndex: null\n\t });\n\t },\n\t\n\t hideOnEscape: function hideOnEscape(event) {\n\t this.hideList();\n\t this.focusInput();\n\t event.preventDefault();\n\t },\n\t\n\t focusInput: function focusInput() {\n\t this.refs.input.focus();\n\t },\n\t\n\t selectInput: function selectInput() {\n\t this.refs.input.select();\n\t },\n\t\n\t inputKeydownMap: {\n\t 8: 'removeLastToken', // delete\n\t 13: 'selectOnEnter', // enter\n\t 188: 'selectOnEnter', // comma\n\t 27: 'hideOnEscape', // escape\n\t 38: 'focusPrevious', // up arrow\n\t 40: 'focusNext' // down arrow\n\t },\n\t\n\t optionKeydownMap: {\n\t 13: 'selectOption',\n\t 27: 'hideOnEscape',\n\t 38: 'focusPrevious',\n\t 40: 'focusNext'\n\t },\n\t\n\t handleKeydown: function handleKeydown(event) {\n\t var handlerName = this.inputKeydownMap[event.keyCode];\n\t if (!handlerName) return;\n\t this.setState({ usingKeyboard: true });\n\t return this[handlerName].call(this, event);\n\t },\n\t\n\t handleOptionKeyDown: function handleOptionKeyDown(child, event) {\n\t var handlerName = this.optionKeydownMap[event.keyCode];\n\t if (!handlerName) {\n\t // if the user starts typing again while focused on an option, move focus\n\t // to the inpute, select so it wipes out any existing value\n\t this.selectInput();\n\t return;\n\t }\n\t event.preventDefault();\n\t this.setState({ usingKeyboard: true });\n\t this[handlerName].call(this, child);\n\t },\n\t\n\t handleOptionMouseEnter: function handleOptionMouseEnter(index) {\n\t if (this.state.usingKeyboard) {\n\t this.setState({ usingKeyboard: false });\n\t }\n\t\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t selectOnEnter: function selectOnEnter(event) {\n\t event.preventDefault();\n\t this.maybeSelectAutocompletedOption();\n\t },\n\t\n\t maybeSelectAutocompletedOption: function maybeSelectAutocompletedOption() {\n\t if (!this.state.matchedAutocompleteOption) {\n\t this.selectText();\n\t } else {\n\t this.selectOption(this.state.matchedAutocompleteOption, { focus: false });\n\t }\n\t },\n\t\n\t selectOption: function selectOption(child, options) {\n\t options = options || {};\n\t this.setState({\n\t // value: child.props.value,\n\t // inputValue: getLabel(child),\n\t matchedAutocompleteOption: null\n\t }, function () {\n\t this.props.onSelect(child.props.value, child);\n\t this.hideList();\n\t this.clearSelectedState(); // added\n\t if (options.focus !== false) this.selectInput();\n\t }.bind(this));\n\t this.refs.input.value = ''; // added\n\t },\n\t\n\t selectText: function selectText() {\n\t var value = this.refs.input.value;\n\t if (!value) return;\n\t this.props.onSelect(value);\n\t this.clearSelectedState();\n\t this.refs.input.value = ''; // added\n\t },\n\t\n\t focusNext: function focusNext(event) {\n\t if (event.preventDefault) event.preventDefault();\n\t if (this.state.menu.isEmpty) return;\n\t var index = this.nextFocusableIndex(this.state.focusedIndex);\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t removeLastToken: function removeLastToken() {\n\t if (this.props.onRemoveLast && !this.refs.input.value) {\n\t this.props.onRemoveLast();\n\t }\n\t return true;\n\t },\n\t\n\t focusPrevious: function focusPrevious(event) {\n\t if (event.preventDefault) event.preventDefault();\n\t if (this.state.menu.isEmpty) return;\n\t var index = this.previousFocusableIndex(this.state.focusedIndex);\n\t this.focusOptionAtIndex(index);\n\t },\n\t\n\t focusSelectedOption: function focusSelectedOption() {\n\t var selectedIndex;\n\t React.Children.forEach(this.props.children, function (child, index) {\n\t if (child.props.value === this.state.value) selectedIndex = index;\n\t }.bind(this));\n\t this.showList();\n\t this.setState({\n\t focusedIndex: selectedIndex\n\t }, this.focusOption);\n\t },\n\t\n\t findInitialInputValue: function findInitialInputValue() {\n\t // TODO: might not need this, we should know this in `makeMenu`\n\t var inputValue;\n\t React.Children.forEach(this.props.children, function (child) {\n\t if (child.props.value === this.props.value) inputValue = getLabel(child);\n\t }.bind(this));\n\t return inputValue;\n\t },\n\t\n\t clampIndex: function clampIndex(index) {\n\t if (index < 0) {\n\t return this.props.children.length - 1;\n\t } else if (index >= this.props.children.length) {\n\t return 0;\n\t }\n\t return index;\n\t },\n\t\n\t scanForFocusableIndex: function scanForFocusableIndex(index, increment) {\n\t if (index === null || index === undefined) {\n\t index = increment > 0 ? this.clampIndex(-1) : 0;\n\t }\n\t var newIndex = index;\n\t while (true) {\n\t newIndex = this.clampIndex(newIndex + increment);\n\t if (newIndex === index || this.props.children[newIndex].props.isFocusable) {\n\t return newIndex;\n\t }\n\t }\n\t },\n\t\n\t nextFocusableIndex: function nextFocusableIndex(index) {\n\t return this.scanForFocusableIndex(index, 1);\n\t },\n\t\n\t previousFocusableIndex: function previousFocusableIndex(index) {\n\t return this.scanForFocusableIndex(index, -1);\n\t },\n\t\n\t focusOptionAtIndex: function focusOptionAtIndex(index) {\n\t if (!this.state.isOpen && this.state.value) return this.focusSelectedOption();\n\t this.showList();\n\t var length = this.props.children.length;\n\t if (index === -1) index = length - 1;else if (index === length) index = 0;\n\t this.setState({\n\t focusedIndex: index\n\t }, this.focusOption);\n\t },\n\t\n\t focusOption: function focusOption() {\n\t var index = this.state.focusedIndex;\n\t this.refs.list.childNodes[index].focus();\n\t },\n\t\n\t render: function render() {\n\t var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' + 'Press the down arrow to navigate results. If you don\\'t find an ' + 'acceptable option, you can input an alternative. Once you find or ' + 'input the tag you want, press Enter or Comma to add it.';\n\t\n\t return div({ className: this.getClassName() }, this.props.value, this.state.inputValue, input({\n\t ref: 'input',\n\t autoComplete: 'off',\n\t spellCheck: 'false',\n\t 'aria-label': ariaLabel,\n\t 'aria-expanded': this.state.isOpen + '',\n\t 'aria-haspopup': 'true',\n\t 'aria-activedescendant': this.state.menu.activedescendant,\n\t 'aria-autocomplete': 'list',\n\t 'aria-owns': this.state.listId,\n\t id: this.props.id,\n\t disabled: this.props.isDisabled,\n\t className: 'ic-tokeninput-input',\n\t onFocus: this.handleInputFocus,\n\t onClick: this.handleInputClick,\n\t onChange: this.handleInputChange,\n\t onBlur: this.handleInputBlur,\n\t onKeyDown: this.handleKeydown,\n\t onKeyUp: this.handleInputKeyUp,\n\t placeholder: this.props.placeholder,\n\t role: 'combobox'\n\t }), span({\n\t 'aria-hidden': 'true',\n\t className: 'ic-tokeninput-button',\n\t onClick: this.handleButtonClick\n\t }, '▾'), div({\n\t id: this.state.listId,\n\t ref: 'list',\n\t className: 'ic-tokeninput-list',\n\t role: 'listbox'\n\t }, this.state.menu.children));\n\t }\n\t});\n\t\n\tfunction getLabel(component) {\n\t return component.props.label || component.props.children;\n\t}\n\t\n\tfunction matchFragment(userInput, firstChildLabel) {\n\t userInput = userInput.toLowerCase();\n\t firstChildLabel = firstChildLabel.toLowerCase();\n\t if (userInput === '' || userInput === firstChildLabel) return false;\n\t if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1) return false;\n\t return true;\n\t}\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = addClass;\n\t\n\tfunction addClass(existing, added) {\n\t if (!existing) return added;\n\t if (existing.indexOf(added) > -1) return existing;\n\t return existing + ' ' + added;\n\t}\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar addClass = __webpack_require__(3);\n\tvar omit = __webpack_require__(5);\n\tvar div = React.createFactory('div');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t\n\t propTypes: {\n\t\n\t /**\n\t * The value that will be sent to the `onSelect` handler of the\n\t * parent Combobox.\n\t */\n\t value: React.PropTypes.any.isRequired,\n\t\n\t /**\n\t * What value to put into the input element when this option is\n\t * selected, defaults to its children coerced to a string.\n\t */\n\t label: React.PropTypes.string,\n\t\n\t /**\n\t * Whether the element should be selectable\n\t */\n\t isFocusable: React.PropTypes.bool\n\t },\n\t\n\t getDefaultProps: function getDefaultProps() {\n\t return {\n\t role: 'option',\n\t tabIndex: '-1',\n\t className: 'ic-tokeninput-option',\n\t isSelected: false,\n\t isFocusable: true\n\t };\n\t },\n\t\n\t render: function render() {\n\t var props = this.props;\n\t if (props.isSelected) {\n\t props.className = addClass(props.className, 'ic-tokeninput-selected');\n\t props.ariaSelected = true;\n\t }\n\t return div(omit(props, ['isSelected', 'isFocusable']));\n\t }\n\t\n\t});\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/*!\n\t * object.omit \n\t *\n\t * Copyright (c) 2014-2015, Jon Schlinkert.\n\t * Licensed under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tvar isObject = __webpack_require__(6);\n\tvar forOwn = __webpack_require__(7);\n\t\n\tmodule.exports = function omit(obj, keys) {\n\t if (!isObject(obj)) return {};\n\t\n\t keys = [].concat.apply([], [].slice.call(arguments, 1));\n\t var last = keys[keys.length - 1];\n\t var res = {}, fn;\n\t\n\t if (typeof last === 'function') {\n\t fn = keys.pop();\n\t }\n\t\n\t var isFunction = typeof fn === 'function';\n\t if (!keys.length && !isFunction) {\n\t return obj;\n\t }\n\t\n\t forOwn(obj, function(value, key) {\n\t if (keys.indexOf(key) === -1) {\n\t\n\t if (!isFunction) {\n\t res[key] = value;\n\t } else if (fn(value, key, obj)) {\n\t res[key] = value;\n\t }\n\t }\n\t });\n\t return res;\n\t};\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports) {\n\n\t/*!\n\t * is-extendable \n\t *\n\t * Copyright (c) 2015, Jon Schlinkert.\n\t * Licensed under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tmodule.exports = function isExtendable(val) {\n\t return typeof val !== 'undefined' && val !== null\n\t && (typeof val === 'object' || typeof val === 'function');\n\t};\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/*!\n\t * for-own \n\t *\n\t * Copyright (c) 2014-2017, Jon Schlinkert.\n\t * Released under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tvar forIn = __webpack_require__(8);\n\tvar hasOwn = Object.prototype.hasOwnProperty;\n\t\n\tmodule.exports = function forOwn(obj, fn, thisArg) {\n\t forIn(obj, function(val, key) {\n\t if (hasOwn.call(obj, key)) {\n\t return fn.call(thisArg, obj[key], key, obj);\n\t }\n\t });\n\t};\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports) {\n\n\t/*!\n\t * for-in \n\t *\n\t * Copyright (c) 2014-2017, Jon Schlinkert.\n\t * Released under the MIT License.\n\t */\n\t\n\t'use strict';\n\t\n\tmodule.exports = function forIn(obj, fn, thisArg) {\n\t for (var key in obj) {\n\t if (fn.call(thisArg, obj[key], key, obj) === false) {\n\t break;\n\t }\n\t }\n\t};\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar React = __webpack_require__(2);\n\tvar span = React.DOM.span;\n\tvar li = React.createFactory('li');\n\t\n\tmodule.exports = React.createClass({\n\t displayName: 'exports',\n\t\n\t handleClick: function handleClick() {\n\t this.props.onRemove(this.props.value);\n\t },\n\t\n\t handleKeyDown: function handleKeyDown(key) {\n\t var enterKey = 13;\n\t if (key.keyCode === enterKey) this.props.onRemove(this.props.value);\n\t },\n\t\n\t ariaLabelRemove: function ariaLabelRemove() {\n\t return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) : 'Remove \\'' + this.props.name + '\\'';\n\t },\n\t\n\t render: function render() {\n\t return li({\n\t className: \"ic-token inline-flex\"\n\t }, span({ className: \"ic-token-label\" }, this.props.name), span({\n\t role: 'button',\n\t onClick: this.handleClick,\n\t onFocus: this.props.onFocus,\n\t onKeyDown: this.handleKeyDown,\n\t 'aria-label': this.ariaLabelRemove(),\n\t className: \"ic-token-delete-button\",\n\t tabIndex: 0\n\t }, \"✕\"));\n\t }\n\t});\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Main = undefined;\n\t\n\tvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _react = __webpack_require__(2);\n\t\n\tvar _react2 = _interopRequireDefault(_react);\n\t\n\tvar _classnames = __webpack_require__(11);\n\t\n\tvar _classnames2 = _interopRequireDefault(_classnames);\n\t\n\tvar _combobox = __webpack_require__(1);\n\t\n\tvar _combobox2 = _interopRequireDefault(_combobox);\n\t\n\tvar _token = __webpack_require__(9);\n\t\n\tvar _token2 = _interopRequireDefault(_token);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar Combobox = _react2.default.createFactory(_combobox2.default);\n\tvar Token = _react2.default.createFactory(_token2.default);\n\t\n\tvar ul = _react2.default.DOM.ul;\n\tvar li = _react2.default.DOM.li;\n\t\n\tvar Main = exports.Main = function (_React$Component) {\n\t _inherits(Main, _React$Component);\n\t\n\t function Main(props) {\n\t _classCallCheck(this, Main);\n\t\n\t var _this = _possibleConstructorReturn(this, (Main.__proto__ || Object.getPrototypeOf(Main)).call(this, props));\n\t\n\t _this.state = {\n\t selectedToken: null\n\t };\n\t return _this;\n\t }\n\t\n\t _createClass(Main, [{\n\t key: 'handleClick',\n\t value: function handleClick() {\n\t // TODO: Expand combobox API for focus\n\t this.refs['combo-li'].querySelector('input').focus();\n\t }\n\t }, {\n\t key: 'handleFocus',\n\t value: function handleFocus() {\n\t if (this.props.onFocus) {\n\t this.props.onFocus();\n\t }\n\t }\n\t }, {\n\t key: 'handleBlur',\n\t value: function handleBlur() {\n\t if (this.props.onBlur) {\n\t this.props.onBlur();\n\t }\n\t }\n\t }, {\n\t key: 'handleInput',\n\t value: function handleInput(inputValue) {\n\t this.props.onInput(inputValue);\n\t }\n\t }, {\n\t key: 'handleSelect',\n\t value: function handleSelect(event, option) {\n\t var input = this.refs['combo-li'].querySelector('input');\n\t this.props.onSelect(event, option);\n\t this.setState({\n\t selectedToken: null\n\t });\n\t this.props.onInput(input.value);\n\t }\n\t }, {\n\t key: 'handleRemove',\n\t value: function handleRemove(value) {\n\t var input = this.refs['combo-li'].querySelector('input');\n\t this.props.onRemove(value);\n\t input.focus();\n\t }\n\t }, {\n\t key: 'handleRemoveLast',\n\t value: function handleRemoveLast() {\n\t this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n\t }\n\t }, {\n\t key: 'render',\n\t value: function render() {\n\t var isDisabled = this.props.isDisabled;\n\t var tokens = this.props.selected.map(function (token) {\n\t return Token({\n\t tokenAriaFunc: this.props.tokenAriaFunc,\n\t onFocus: this.handleFocus,\n\t onRemove: this.handleRemove,\n\t value: token,\n\t name: token.name,\n\t key: token.id });\n\t }.bind(this));\n\t\n\t var classes = (0, _classnames2.default)('ic-tokens flex', {\n\t 'ic-tokens-disabled': isDisabled\n\t });\n\t\n\t return ul({ className: classes, onClick: this.handleClick }, tokens, li({ className: 'inline-flex', ref: 'combo-li' }, Combobox({\n\t id: this.props.id,\n\t 'aria-label': this.props['combobox-aria-label'],\n\t ariaDisabled: isDisabled,\n\t onFocus: this.handleFocus,\n\t onBlur: this.handleBlur,\n\t onInput: this.handleInput,\n\t showListOnFocus: this.props.showListOnFocus,\n\t onSelect: this.handleSelect,\n\t onRemoveLast: this.handleRemoveLast,\n\t value: this.state.selectedToken,\n\t isDisabled: isDisabled,\n\t placeholder: this.props.placeholder\n\t }, this.props.menuContent)), this.props.isLoading && li({ className: 'ic-tokeninput-loading flex' }, this.props.loadingComponent));\n\t }\n\t }]);\n\t\n\t return Main;\n\t}(_react2.default.Component);\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n\t Copyright (c) 2016 Jed Watson.\n\t Licensed under the MIT License (MIT), see\n\t http://jedwatson.github.io/classnames\n\t*/\n\t/* global define */\n\t\n\t(function () {\n\t\t'use strict';\n\t\n\t\tvar hasOwn = {}.hasOwnProperty;\n\t\n\t\tfunction classNames () {\n\t\t\tvar classes = [];\n\t\n\t\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\t\tvar arg = arguments[i];\n\t\t\t\tif (!arg) continue;\n\t\n\t\t\t\tvar argType = typeof arg;\n\t\n\t\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\t\tclasses.push(arg);\n\t\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t\t} else if (argType === 'object') {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\treturn classes.join(' ');\n\t\t}\n\t\n\t\tif (typeof module !== 'undefined' && module.exports) {\n\t\t\tmodule.exports = classNames;\n\t\t} else if (true) {\n\t\t\t// register as 'classnames', consistent with npm package name\n\t\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\t\t\t\treturn classNames;\n\t\t\t}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t\t} else {\n\t\t\twindow.classNames = classNames;\n\t\t}\n\t}());\n\n\n/***/ })\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// react-tokeninput.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap d35bb24c59e8aabfcbae","export Combobox from './combobox';\nexport Option from './option';\nexport Token from './token';\nimport main from './main';\n\n/**\n * You can't do an import and then immediately export it :(\n * And `export default TokenInput from './main'` doesn't seem to\n * work either :(\n * So this little variable swapping stuff gets it to work.\n */\nconst TokenInput = main;\nexport default TokenInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","var React = require('react');\nvar guid = 0;\nvar k = function(){};\nvar addClass = require('./add-class');\nvar ComboboxOption = require('./option');\n\nvar div = React.createFactory('div');\nvar span = React.createFactory('span');\nvar input = React.createFactory('input');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n /**\n * Called when the combobox's input receives focus and the user begins interacting with it.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onFocus: React.PropTypes.func,\n\n /**\n * Called when the combobox's input loses focus after being activated for user input\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onBlur: React.PropTypes.func,\n\n /**\n * Called when the combobox receives user input, this is your chance to\n * filter the data and rerender the options.\n *\n * Signature:\n *\n * ```js\n * function(userInput){}\n * ```\n */\n onInput: React.PropTypes.func,\n\n /**\n * Called when the combobox receives a selection. You probably want to reset\n * the options to the full list at this point.\n *\n * Signature:\n *\n * ```js\n * function(selectedValue){}\n * ```\n */\n onSelect: React.PropTypes.func,\n\n /**\n * Shown when the combobox is empty.\n */\n placeholder: React.PropTypes.string\n },\n\n getDefaultProps: function() {\n return {\n autocomplete: 'both',\n onFocus: k,\n onBlur: k,\n onInput: k,\n onSelect: k,\n value: null,\n showListOnFocus: false\n };\n },\n\n getInitialState: function() {\n return {\n value: this.props.value,\n // the value displayed in the input\n inputValue: this.findInitialInputValue(),\n isOpen: false,\n focusedIndex: null,\n matchedAutocompleteOption: null,\n // this prevents crazy jumpiness since we focus options on mouseenter\n usingKeyboard: false,\n activedescendant: null,\n listId: 'ic-tokeninput-list-'+(++guid),\n menu: {\n children: [],\n activedescendant: null,\n isEmpty: true\n }\n };\n },\n\n componentWillMount: function() {\n this.setState({menu: this.makeMenu(this.props.children)});\n },\n\n componentWillReceiveProps: function(newProps) {\n this.setState({menu: this.makeMenu(newProps.children)}, function() {\n if(newProps.children.length && (this.isOpen || document.activeElement === this.refs.input)) {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({\n isOpen: true\n }, function() {\n this.refs.list.scrollTop = 0;\n }.bind(this))\n } else {\n this.hideList();\n }\n\n }.bind(this));\n },\n\n /**\n * We don't create the components, the user supplies them,\n * so before rendering we attach handlers to facilitate communication from\n * the ComboboxOption to the Combobox.\n */\n makeMenu: function(children) {\n var activedescendant;\n var isEmpty = true;\n\n // Should this instead use React.addons.cloneWithProps or React.cloneElement?\n var _children = React.Children.map(children, function(child, index) {\n // console.log(child.type, ComboboxOption.type)\n if (child.type !== ComboboxOption || !child.props.isFocusable) {\n // allow random elements to live in this list\n return child;\n }\n isEmpty = false;\n // TODO: cloneWithProps and map instead of altering the children in-place\n var props = child.props;\n var newProps = {};\n if (this.state.value === child.props.value) {\n // need an ID for WAI-ARIA\n newProps.id = props.id || 'ic-tokeninput-selected-'+(++guid);\n newProps.isSelected = true\n activedescendant = props.id;\n }\n newProps.onBlur = this.handleOptionBlur;\n newProps.onClick = this.selectOption.bind(this, child);\n newProps.onFocus = this.handleOptionFocus;\n newProps.onKeyDown = this.handleOptionKeyDown.bind(this, child);\n newProps.onMouseEnter = this.handleOptionMouseEnter.bind(this, index);\n newProps.onTouchStart = this.handleOptionMouseEnter.bind(this, index);\n\n return React.cloneElement(child, newProps);\n }.bind(this));\n\n return {\n children: _children,\n activedescendant: activedescendant,\n isEmpty: isEmpty\n };\n },\n\n getClassName: function() {\n var className = addClass(this.props.className, 'ic-tokeninput');\n if (this.state.isOpen)\n className = addClass(className, 'ic-tokeninput-is-open');\n return className;\n },\n\n /**\n * When the user begins typing again we need to clear out any state that has\n * to do with an existing or potential selection.\n */\n clearSelectedState: function(cb) {\n this.setState({\n focusedIndex: null,\n inputValue: null,\n value: null,\n matchedAutocompleteOption: null,\n activedescendant: null\n }, cb);\n },\n\n handleInputChange: function() {\n var value = this.refs.input.value;\n this.clearSelectedState(function() {\n this.props.onInput(value);\n }.bind(this));\n },\n\n handleInputFocus: function() {\n this.props.onFocus();\n this.maybeShowList();\n },\n\n handleInputClick: function() {\n this.maybeShowList();\n },\n\n maybeShowList: function(){\n if (this.props.showListOnFocus){\n this.showList()\n }\n },\n\n handleInputBlur: function() {\n var focusedAnOption = this.state.focusedIndex != null;\n if (focusedAnOption)\n return;\n this.maybeSelectAutocompletedOption();\n this.hideList();\n this.props.onBlur();\n },\n\n handleOptionBlur: function() {\n // don't want to hide the list if we focused another option\n this.blurTimer = setTimeout(this.hideList, 0);\n },\n\n\n handleOptionFocus: function() {\n // see `handleOptionBlur`\n clearTimeout(this.blurTimer);\n },\n\n handleInputKeyUp: function(event) {\n if (\n this.state.menu.isEmpty ||\n // autocompleting while backspacing feels super weird, so let's not\n event.keyCode === 8 /*backspace*/ ||\n !this.props.autocomplete.match(/both|inline/)\n ) return;\n },\n\n handleButtonClick: function() {\n this.state.isOpen ? this.hideList() : this.showList();\n this.focusInput();\n },\n\n showList: function() {\n if(!this.state.menu.children.length) {\n return\n }\n this.setState({isOpen: true})\n },\n\n hideList: function() {\n this.setState({\n isOpen: false,\n focusedIndex: null\n });\n },\n\n hideOnEscape: function(event) {\n this.hideList();\n this.focusInput();\n event.preventDefault();\n },\n\n focusInput: function() {\n this.refs.input.focus();\n },\n\n selectInput: function() {\n this.refs.input.select();\n },\n\n inputKeydownMap: {\n 8: 'removeLastToken', // delete\n 13: 'selectOnEnter', // enter\n 188: 'selectOnEnter', // comma\n 27: 'hideOnEscape', // escape\n 38: 'focusPrevious', // up arrow\n 40: 'focusNext' // down arrow\n },\n\n optionKeydownMap: {\n 13: 'selectOption',\n 27: 'hideOnEscape',\n 38: 'focusPrevious',\n 40: 'focusNext'\n },\n\n handleKeydown: function(event) {\n var handlerName = this.inputKeydownMap[event.keyCode];\n if (!handlerName)\n return\n this.setState({usingKeyboard: true});\n return this[handlerName].call(this,event);\n },\n\n handleOptionKeyDown: function(child, event) {\n var handlerName = this.optionKeydownMap[event.keyCode];\n if (!handlerName) {\n // if the user starts typing again while focused on an option, move focus\n // to the inpute, select so it wipes out any existing value\n this.selectInput();\n return;\n }\n event.preventDefault();\n this.setState({usingKeyboard: true});\n this[handlerName].call(this, child);\n },\n\n handleOptionMouseEnter: function(index) {\n if (this.state.usingKeyboard) {\n this.setState({ usingKeyboard: false });\n }\n\n this.focusOptionAtIndex(index);\n },\n\n selectOnEnter: function(event) {\n event.preventDefault();\n this.maybeSelectAutocompletedOption()\n },\n\n maybeSelectAutocompletedOption: function() {\n if (!this.state.matchedAutocompleteOption) {\n this.selectText()\n } else {\n this.selectOption(this.state.matchedAutocompleteOption, {focus: false});\n }\n },\n\n selectOption: function(child, options) {\n options = options || {};\n this.setState({\n // value: child.props.value,\n // inputValue: getLabel(child),\n matchedAutocompleteOption: null\n }, function() {\n this.props.onSelect(child.props.value, child);\n this.hideList();\n this.clearSelectedState(); // added\n if (options.focus !== false)\n this.selectInput();\n }.bind(this));\n this.refs.input.value = '' // added\n },\n\n selectText: function() {\n var value = this.refs.input.value;\n if(!value) return;\n this.props.onSelect(value);\n this.clearSelectedState();\n this.refs.input.value = '' // added\n },\n\n focusNext: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.nextFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n removeLastToken: function() {\n if(this.props.onRemoveLast && !this.refs.input.value) {\n this.props.onRemoveLast()\n }\n return true\n },\n\n focusPrevious: function(event) {\n if(event.preventDefault) event.preventDefault();\n if (this.state.menu.isEmpty) return;\n var index = this.previousFocusableIndex(this.state.focusedIndex)\n this.focusOptionAtIndex(index);\n },\n\n focusSelectedOption: function() {\n var selectedIndex;\n React.Children.forEach(this.props.children, function(child, index) {\n if (child.props.value === this.state.value)\n selectedIndex = index;\n }.bind(this));\n this.showList();\n this.setState({\n focusedIndex: selectedIndex\n }, this.focusOption);\n },\n\n findInitialInputValue: function() {\n // TODO: might not need this, we should know this in `makeMenu`\n var inputValue;\n React.Children.forEach(this.props.children, function(child) {\n if (child.props.value === this.props.value)\n inputValue = getLabel(child);\n }.bind(this));\n return inputValue;\n },\n\n clampIndex: function(index) {\n if (index < 0) {\n return this.props.children.length - 1\n } else if (index >= this.props.children.length) {\n return 0\n }\n return index\n },\n\n scanForFocusableIndex: function(index, increment) {\n if (index === null || index === undefined) {\n index = increment > 0 ? this.clampIndex(-1) : 0\n }\n var newIndex = index\n while (true) {\n newIndex = this.clampIndex(newIndex + increment)\n if (newIndex === index ||\n this.props.children[newIndex].props.isFocusable)\n {\n return newIndex\n }\n }\n },\n\n nextFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, 1)\n },\n\n previousFocusableIndex: function(index) {\n return this.scanForFocusableIndex(index, -1)\n },\n\n focusOptionAtIndex: function(index) {\n if (!this.state.isOpen && this.state.value)\n return this.focusSelectedOption();\n this.showList();\n var length = this.props.children.length;\n if (index === -1)\n index = length - 1;\n else if (index === length)\n index = 0;\n this.setState({\n focusedIndex: index\n }, this.focusOption);\n },\n\n focusOption: function() {\n var index = this.state.focusedIndex;\n this.refs.list.childNodes[index].focus();\n },\n\n render: function() {\n var ariaLabel = this.props['aria-label'] || 'Start typing to search. ' +\n 'Press the down arrow to navigate results. If you don\\'t find an ' +\n 'acceptable option, you can input an alternative. Once you find or ' +\n 'input the tag you want, press Enter or Comma to add it.'\n\n return div({className: this.getClassName()},\n this.props.value,\n this.state.inputValue,\n input({\n ref: 'input',\n autoComplete: 'off',\n spellCheck: 'false',\n 'aria-label': ariaLabel,\n 'aria-expanded': this.state.isOpen+'',\n 'aria-haspopup': 'true',\n 'aria-activedescendant': this.state.menu.activedescendant,\n 'aria-autocomplete': 'list',\n 'aria-owns': this.state.listId,\n id: this.props.id,\n disabled: this.props.isDisabled,\n className: 'ic-tokeninput-input',\n onFocus: this.handleInputFocus,\n onClick: this.handleInputClick,\n onChange: this.handleInputChange,\n onBlur: this.handleInputBlur,\n onKeyDown: this.handleKeydown,\n onKeyUp: this.handleInputKeyUp,\n placeholder: this.props.placeholder,\n role: 'combobox'\n }),\n span({\n 'aria-hidden': 'true',\n className: 'ic-tokeninput-button',\n onClick: this.handleButtonClick\n }, '▾'),\n div({\n id: this.state.listId,\n ref: 'list',\n className: 'ic-tokeninput-list',\n role: 'listbox'\n }, this.state.menu.children)\n );\n }\n});\n\nfunction getLabel(component) {\n return component.props.label || component.props.children;\n}\n\nfunction matchFragment(userInput, firstChildLabel) {\n userInput = userInput.toLowerCase();\n firstChildLabel = firstChildLabel.toLowerCase();\n if (userInput === '' || userInput === firstChildLabel)\n return false;\n if (firstChildLabel.toLowerCase().indexOf(userInput.toLowerCase()) === -1)\n return false;\n return true;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/combobox.js","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 2\n// module chunks = 0 1","module.exports = addClass;\n\nfunction addClass(existing, added) {\n if (!existing) return added;\n if (existing.indexOf(added) > -1) return existing;\n return existing + ' ' + added;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/add-class.js","var React = require('react');\nvar addClass = require('./add-class');\nvar omit = require('object.omit');\nvar div = React.createFactory('div');\n\nmodule.exports = React.createClass({\n\n propTypes: {\n\n /**\n * The value that will be sent to the `onSelect` handler of the\n * parent Combobox.\n */\n value: React.PropTypes.any.isRequired,\n\n /**\n * What value to put into the input element when this option is\n * selected, defaults to its children coerced to a string.\n */\n label: React.PropTypes.string,\n\n /**\n * Whether the element should be selectable\n */\n isFocusable: React.PropTypes.bool\n },\n\n getDefaultProps: function() {\n return {\n role: 'option',\n tabIndex: '-1',\n className: 'ic-tokeninput-option',\n isSelected: false,\n isFocusable: true\n };\n },\n\n render: function() {\n var props = this.props;\n if (props.isSelected) {\n props.className = addClass(props.className, 'ic-tokeninput-selected');\n props.ariaSelected = true;\n }\n return div(omit(props, ['isSelected', 'isFocusable']));\n }\n\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/option.js","/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = require('is-extendable');\nvar forOwn = require('for-own');\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function(value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/object.omit/index.js\n// module id = 5\n// module chunks = 0 1","/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/is-extendable/index.js\n// module id = 6\n// module chunks = 0 1","/*!\n * for-own \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar forIn = require('for-in');\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(obj, fn, thisArg) {\n forIn(obj, function(val, key) {\n if (hasOwn.call(obj, key)) {\n return fn.call(thisArg, obj[key], key, obj);\n }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-own/index.js\n// module id = 7\n// module chunks = 0 1","/*!\n * for-in \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(obj, fn, thisArg) {\n for (var key in obj) {\n if (fn.call(thisArg, obj[key], key, obj) === false) {\n break;\n }\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/for-in/index.js\n// module id = 8\n// module chunks = 0 1","var React = require('react');\nvar span = React.DOM.span;\nvar li = React.createFactory('li');\n\nmodule.exports = React.createClass({\n handleClick: function() {\n this.props.onRemove(this.props.value)\n },\n\n handleKeyDown: function(key) {\n var enterKey = 13;\n if(key.keyCode === enterKey) this.props.onRemove(this.props.value)\n },\n\n ariaLabelRemove: function ariaLabelRemove() {\n return this.props.tokenAriaFunc ? this.props.tokenAriaFunc(this.props.name) :\n 'Remove \\'' + this.props.name + '\\'';\n },\n\n render: function() {\n return (\n li({\n className: \"ic-token inline-flex\"\n },\n span({className: \"ic-token-label\"}, this.props.name),\n span({\n role: 'button',\n onClick: this.handleClick,\n onFocus: this.props.onFocus,\n onKeyDown: this.handleKeyDown,\n 'aria-label': this.ariaLabelRemove(),\n className: \"ic-token-delete-button\",\n tabIndex: 0\n }, \"✕\")\n )\n )\n }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/token.js","import React from 'react'\nimport classnames from 'classnames'\nimport C from './combobox'\nimport T from './token'\n\nvar Combobox = React.createFactory(C);\nvar Token = React.createFactory(T);\n\nvar ul = React.DOM.ul;\nvar li = React.DOM.li;\n\nexport class Main extends React.Component {\n propTypes: {\n isLoading: React.PropTypes.bool,\n loadingComponent: React.PropTypes.any,\n onFocus: React.PropTypes.func,\n onBlur: React.PropTypes.func,\n onInput: React.PropTypes.func.isRequired,\n onSelect: React.PropTypes.func.isRequired,\n tokenAriaFunc: React.PropTypes.func,\n onRemove: React.PropTypes.func.isRequired,\n selected: React.PropTypes.array.isRequired,\n menuContent: React.PropTypes.any,\n showListOnFocus: React.PropTypes.bool,\n placeholder: React.PropTypes.string\n }\n\n constructor(props) {\n super(props)\n\n this.state = {\n selectedToken: null\n }\n }\n\n handleClick() {\n // TODO: Expand combobox API for focus\n this.refs['combo-li'].querySelector('input').focus();\n }\n\n handleFocus() {\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n }\n\n handleBlur() {\n if (this.props.onBlur) {\n this.props.onBlur();\n }\n }\n\n handleInput(inputValue) {\n this.props.onInput(inputValue);\n }\n\n handleSelect(event, option) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onSelect(event, option)\n this.setState({\n selectedToken: null\n })\n this.props.onInput(input.value);\n }\n\n handleRemove(value) {\n var input = this.refs['combo-li'].querySelector('input');\n this.props.onRemove(value);\n input.focus();\n }\n\n handleRemoveLast() {\n this.props.onRemove(this.props.selected[this.props.selected.length - 1]);\n }\n\n render() {\n var isDisabled = this.props.isDisabled;\n var tokens = this.props.selected.map(function(token) {\n return (\n Token({\n tokenAriaFunc: this.props.tokenAriaFunc,\n onFocus: this.handleFocus,\n onRemove: this.handleRemove,\n value: token,\n name: token.name,\n key: token.id})\n )\n }.bind(this))\n\n var classes = classnames('ic-tokens flex', {\n 'ic-tokens-disabled': isDisabled\n });\n\n return ul({className: classes, onClick: this.handleClick},\n tokens,\n li({className: 'inline-flex', ref: 'combo-li'},\n Combobox({\n id: this.props.id,\n 'aria-label': this.props['combobox-aria-label'],\n ariaDisabled: isDisabled,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n onInput: this.handleInput,\n showListOnFocus: this.props.showListOnFocus,\n onSelect: this.handleSelect,\n onRemoveLast: this.handleRemoveLast,\n value: this.state.selectedToken,\n isDisabled: isDisabled,\n placeholder: this.props.placeholder\n },\n this.props.menuContent\n )\n ),\n this.props.isLoading && li({className: 'ic-tokeninput-loading flex'}, this.props.loadingComponent)\n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n Copyright (c) 2016 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(null, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/classnames/index.js\n// module id = 11\n// module chunks = 0 1"],"sourceRoot":""} \ No newline at end of file diff --git a/example/bundle.js.map b/example/bundle.js.map deleted file mode 100644 index 51dfa99..0000000 --- a/example/bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap 06dcf4129200aace8100","webpack:///./example/main.js","webpack:///./~/react/react.js","webpack:///./~/react/lib/React.js","webpack:///./~/react/lib/ReactDOM.js","webpack:///./~/process/browser.js","webpack:///./~/react/lib/ReactCurrentOwner.js","webpack:///./~/react/lib/ReactDOMTextComponent.js","webpack:///./~/react/lib/DOMChildrenOperations.js","webpack:///./~/react/lib/Danger.js","webpack:///./~/fbjs/lib/ExecutionEnvironment.js","webpack:///./~/fbjs/lib/createNodesFromMarkup.js","webpack:///./~/fbjs/lib/createArrayFromMixed.js","webpack:///./~/fbjs/lib/toArray.js","webpack:///./~/fbjs/lib/invariant.js","webpack:///./~/fbjs/lib/getMarkupWrap.js","webpack:///./~/fbjs/lib/emptyFunction.js","webpack:///./~/react/lib/ReactMultiChildUpdateTypes.js","webpack:///./~/fbjs/lib/keyMirror.js","webpack:///./~/react/lib/ReactPerf.js","webpack:///./~/react/lib/setInnerHTML.js","webpack:///./~/react/lib/setTextContent.js","webpack:///./~/react/lib/escapeTextContentForBrowser.js","webpack:///./~/react/lib/DOMPropertyOperations.js","webpack:///./~/react/lib/DOMProperty.js","webpack:///./~/react/lib/quoteAttributeValueForBrowser.js","webpack:///./~/fbjs/lib/warning.js","webpack:///./~/react/lib/ReactComponentBrowserEnvironment.js","webpack:///./~/react/lib/ReactDOMIDOperations.js","webpack:///./~/react/lib/ReactMount.js","webpack:///./~/react/lib/ReactBrowserEventEmitter.js","webpack:///./~/react/lib/EventConstants.js","webpack:///./~/react/lib/EventPluginHub.js","webpack:///./~/react/lib/EventPluginRegistry.js","webpack:///./~/react/lib/EventPluginUtils.js","webpack:///./~/react/lib/ReactErrorUtils.js","webpack:///./~/react/lib/accumulateInto.js","webpack:///./~/react/lib/forEachAccumulated.js","webpack:///./~/react/lib/ReactEventEmitterMixin.js","webpack:///./~/react/lib/ViewportMetrics.js","webpack:///./~/react/lib/Object.assign.js","webpack:///./~/react/lib/isEventSupported.js","webpack:///./~/react/lib/ReactDOMFeatureFlags.js","webpack:///./~/react/lib/ReactElement.js","webpack:///./~/react/lib/canDefineProperty.js","webpack:///./~/react/lib/ReactEmptyComponentRegistry.js","webpack:///./~/react/lib/ReactInstanceHandles.js","webpack:///./~/react/lib/ReactRootIndex.js","webpack:///./~/react/lib/ReactInstanceMap.js","webpack:///./~/react/lib/ReactMarkupChecksum.js","webpack:///./~/react/lib/adler32.js","webpack:///./~/react/lib/ReactReconciler.js","webpack:///./~/react/lib/ReactRef.js","webpack:///./~/react/lib/ReactOwner.js","webpack:///./~/react/lib/ReactUpdateQueue.js","webpack:///./~/react/lib/ReactUpdates.js","webpack:///./~/react/lib/CallbackQueue.js","webpack:///./~/react/lib/PooledClass.js","webpack:///./~/react/lib/Transaction.js","webpack:///./~/fbjs/lib/emptyObject.js","webpack:///./~/fbjs/lib/containsNode.js","webpack:///./~/fbjs/lib/isTextNode.js","webpack:///./~/fbjs/lib/isNode.js","webpack:///./~/react/lib/instantiateReactComponent.js","webpack:///./~/react/lib/ReactCompositeComponent.js","webpack:///./~/react/lib/ReactComponentEnvironment.js","webpack:///./~/react/lib/ReactPropTypeLocations.js","webpack:///./~/react/lib/ReactPropTypeLocationNames.js","webpack:///./~/react/lib/shouldUpdateReactComponent.js","webpack:///./~/react/lib/ReactEmptyComponent.js","webpack:///./~/react/lib/ReactNativeComponent.js","webpack:///./~/react/lib/validateDOMNesting.js","webpack:///./~/react/lib/ReactDefaultInjection.js","webpack:///./~/react/lib/BeforeInputEventPlugin.js","webpack:///./~/react/lib/EventPropagators.js","webpack:///./~/react/lib/FallbackCompositionState.js","webpack:///./~/react/lib/getTextContentAccessor.js","webpack:///./~/react/lib/SyntheticCompositionEvent.js","webpack:///./~/react/lib/SyntheticEvent.js","webpack:///./~/react/lib/SyntheticInputEvent.js","webpack:///./~/fbjs/lib/keyOf.js","webpack:///./~/react/lib/ChangeEventPlugin.js","webpack:///./~/react/lib/getEventTarget.js","webpack:///./~/react/lib/isTextInputElement.js","webpack:///./~/react/lib/ClientReactRootIndex.js","webpack:///./~/react/lib/DefaultEventPluginOrder.js","webpack:///./~/react/lib/EnterLeaveEventPlugin.js","webpack:///./~/react/lib/SyntheticMouseEvent.js","webpack:///./~/react/lib/SyntheticUIEvent.js","webpack:///./~/react/lib/getEventModifierState.js","webpack:///./~/react/lib/HTMLDOMPropertyConfig.js","webpack:///./~/react/lib/ReactBrowserComponentMixin.js","webpack:///./~/react/lib/findDOMNode.js","webpack:///./~/react/lib/ReactDefaultBatchingStrategy.js","webpack:///./~/react/lib/ReactDOMComponent.js","webpack:///./~/react/lib/AutoFocusUtils.js","webpack:///./~/fbjs/lib/focusNode.js","webpack:///./~/react/lib/CSSPropertyOperations.js","webpack:///./~/react/lib/CSSProperty.js","webpack:///./~/fbjs/lib/camelizeStyleName.js","webpack:///./~/fbjs/lib/camelize.js","webpack:///./~/react/lib/dangerousStyleValue.js","webpack:///./~/fbjs/lib/hyphenateStyleName.js","webpack:///./~/fbjs/lib/hyphenate.js","webpack:///./~/fbjs/lib/memoizeStringOnly.js","webpack:///./~/react/lib/ReactDOMButton.js","webpack:///./~/react/lib/ReactDOMInput.js","webpack:///./~/react/lib/LinkedValueUtils.js","webpack:///./~/react/lib/ReactPropTypes.js","webpack:///./~/react/lib/getIteratorFn.js","webpack:///./~/react/lib/ReactDOMOption.js","webpack:///./~/react/lib/ReactChildren.js","webpack:///./~/react/lib/traverseAllChildren.js","webpack:///./~/react/lib/ReactDOMSelect.js","webpack:///./~/react/lib/ReactDOMTextarea.js","webpack:///./~/react/lib/ReactMultiChild.js","webpack:///./~/react/lib/ReactChildReconciler.js","webpack:///./~/react/lib/flattenChildren.js","webpack:///./~/fbjs/lib/shallowEqual.js","webpack:///./~/react/lib/ReactEventListener.js","webpack:///./~/fbjs/lib/EventListener.js","webpack:///./~/fbjs/lib/getUnboundedScrollPosition.js","webpack:///./~/react/lib/ReactInjection.js","webpack:///./~/react/lib/ReactClass.js","webpack:///./~/react/lib/ReactComponent.js","webpack:///./~/react/lib/ReactNoopUpdateQueue.js","webpack:///./~/react/lib/ReactReconcileTransaction.js","webpack:///./~/react/lib/ReactInputSelection.js","webpack:///./~/react/lib/ReactDOMSelection.js","webpack:///./~/react/lib/getNodeForCharacterOffset.js","webpack:///./~/fbjs/lib/getActiveElement.js","webpack:///./~/react/lib/SelectEventPlugin.js","webpack:///./~/react/lib/ServerReactRootIndex.js","webpack:///./~/react/lib/SimpleEventPlugin.js","webpack:///./~/react/lib/SyntheticClipboardEvent.js","webpack:///./~/react/lib/SyntheticFocusEvent.js","webpack:///./~/react/lib/SyntheticKeyboardEvent.js","webpack:///./~/react/lib/getEventCharCode.js","webpack:///./~/react/lib/getEventKey.js","webpack:///./~/react/lib/SyntheticDragEvent.js","webpack:///./~/react/lib/SyntheticTouchEvent.js","webpack:///./~/react/lib/SyntheticWheelEvent.js","webpack:///./~/react/lib/SVGDOMPropertyConfig.js","webpack:///./~/react/lib/ReactDefaultPerf.js","webpack:///./~/react/lib/ReactDefaultPerfAnalysis.js","webpack:///./~/fbjs/lib/performanceNow.js","webpack:///./~/fbjs/lib/performance.js","webpack:///./~/react/lib/ReactVersion.js","webpack:///./~/react/lib/renderSubtreeIntoContainer.js","webpack:///./~/react/lib/ReactDOMServer.js","webpack:///./~/react/lib/ReactServerRendering.js","webpack:///./~/react/lib/ReactServerBatchingStrategy.js","webpack:///./~/react/lib/ReactServerRenderingTransaction.js","webpack:///./~/react/lib/ReactIsomorphic.js","webpack:///./~/react/lib/ReactDOMFactories.js","webpack:///./~/react/lib/ReactElementValidator.js","webpack:///./~/fbjs/lib/mapObject.js","webpack:///./~/react/lib/onlyChild.js","webpack:///./~/react/lib/deprecated.js","webpack:///./~/react-dom/index.js","webpack:///./index.js","webpack:///./lib/main.js","webpack:///./lib/combobox.js","webpack:///./lib/add-class.js","webpack:///./lib/option.js","webpack:///./lib/token.js","webpack:///./~/classnames/index.js","webpack:///./~/lodash-node/modern/arrays/without.js","webpack:///./~/lodash-node/modern/internals/baseDifference.js","webpack:///./~/lodash-node/modern/internals/baseIndexOf.js","webpack:///./~/lodash-node/modern/internals/cacheIndexOf.js","webpack:///./~/lodash-node/modern/internals/keyPrefix.js","webpack:///./~/lodash-node/modern/internals/createCache.js","webpack:///./~/lodash-node/modern/internals/cachePush.js","webpack:///./~/lodash-node/modern/internals/getObject.js","webpack:///./~/lodash-node/modern/internals/objectPool.js","webpack:///./~/lodash-node/modern/internals/releaseObject.js","webpack:///./~/lodash-node/modern/internals/maxPoolSize.js","webpack:///./~/lodash-node/modern/internals/largeArraySize.js","webpack:///./~/lodash-node/modern/internals/slice.js","webpack:///./~/lodash-node/modern/arrays/uniq.js","webpack:///./~/lodash-node/modern/internals/baseUniq.js","webpack:///./~/lodash-node/modern/internals/getArray.js","webpack:///./~/lodash-node/modern/internals/arrayPool.js","webpack:///./~/lodash-node/modern/internals/releaseArray.js","webpack:///./~/lodash-node/modern/functions/createCallback.js","webpack:///./~/lodash-node/modern/internals/baseCreateCallback.js","webpack:///./~/lodash-node/modern/functions/bind.js","webpack:///./~/lodash-node/modern/internals/createWrapper.js","webpack:///./~/lodash-node/modern/internals/baseBind.js","webpack:///./~/lodash-node/modern/internals/baseCreate.js","webpack:///./~/lodash-node/modern/internals/isNative.js","webpack:///./~/lodash-node/modern/objects/isObject.js","webpack:///./~/lodash-node/modern/internals/objectTypes.js","webpack:///./~/lodash-node/modern/utilities/noop.js","webpack:///./~/lodash-node/modern/internals/setBindData.js","webpack:///./~/lodash-node/modern/internals/baseCreateWrapper.js","webpack:///./~/lodash-node/modern/objects/isFunction.js","webpack:///./~/lodash-node/modern/utilities/identity.js","webpack:///./~/lodash-node/modern/support.js","webpack:///./~/lodash-node/modern/internals/baseIsEqual.js","webpack:///./~/lodash-node/modern/objects/forIn.js","webpack:///./~/lodash-node/modern/objects/keys.js","webpack:///./~/lodash-node/modern/internals/shimKeys.js","webpack:///./~/lodash-node/modern/utilities/property.js","webpack:///./example/names.js"],"names":["React","require","ReactDOM","TokenInput","ComboboxOption","Option","without","uniq","names","App","createClass","getInitialState","input","loading","selected","options","handleChange","value","setState","handleRemove","selectedOptions","state","handleSelect","combobox","id","name","concat","selectedToken","handleInput","userInput","setTimeout","filterTags","bind","filter","RegExp","filteredNames","test","map","indexOf","renderComboboxOptions","length","render","selectedNames","tag","loadingComponent","document","getElementById","module","exports","Combobox","createFactory","Token","classnames","ul","DOM","li","displayName","propTypes","isLoading","PropTypes","bool","any","onFocus","func","onInput","isRequired","onSelect","tokenAriaFunc","onRemove","array","menuContent","showListOnFocus","placeholder","string","handleClick","refs","querySelector","focus","handleFocus","props","inputValue","event","option","handleRemoveLast","isDisabled","tokens","token","key","classes","className","onClick","ref","ariaDisabled","onRemoveLast","guid","k","addClass","div","span","getDefaultProps","autocomplete","findInitialInputValue","isOpen","focusedIndex","matchedAutocompleteOption","usingKeyboard","activedescendant","listId","menu","children","isEmpty","componentWillMount","makeMenu","componentWillReceiveProps","newProps","activeElement","list","scrollTop","hideList","_children","Children","child","index","type","isFocusable","isSelected","onBlur","handleOptionBlur","selectOption","handleOptionFocus","onKeyDown","handleOptionKeyDown","onMouseEnter","handleOptionMouseEnter","cloneElement","getClassName","clearSelectedState","cb","handleInputChange","handleInputFocus","maybeShowList","handleInputClick","showList","handleInputBlur","focusedAnOption","maybeSelectAutocompletedOption","blurTimer","clearTimeout","handleInputKeyUp","keyCode","match","handleButtonClick","focusInput","hideOnEscape","preventDefault","selectInput","select","inputKeydownMap","optionKeydownMap","handleKeydown","handlerName","call","focusOptionAtIndex","selectOnEnter","selectText","focusNext","nextFocusableIndex","removeLastToken","focusPrevious","previousFocusableIndex","focusSelectedOption","selectedIndex","forEach","focusOption","getLabel","clampIndex","scanForFocusableIndex","increment","undefined","newIndex","childNodes","ariaLabel","autoComplete","spellCheck","disabled","onChange","onKeyUp","role","component","label","matchFragment","firstChildLabel","toLowerCase","existing","added","tabIndex","ariaSelected","handleKeyDown","enterKey","ariaLabelRemove"],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;ACtCA,KAAIA,QAAQ,mBAAAC,CAAQ,CAAR,CAAZ;AACA,KAAIC,WAAW,mBAAAD,CAAQ,GAAR,CAAf;AACA,KAAIE,aAAa,mBAAAF,CAAQ,GAAR,CAAjB;AACA,KAAIG,iBAAiB,mBAAAH,CAAQ,GAAR,EAAoBI,MAAzC;;AAEA,KAAIC,UAAU,mBAAAL,CAAQ,GAAR,CAAd;AACA,KAAIM,OAAO,mBAAAN,CAAQ,GAAR,CAAX;AACA,KAAIO,QAAQ,mBAAAP,CAAQ,GAAR,CAAZ;;AAEA,KAAIQ,MAAMT,MAAMU,WAAN,CAAkB;AAAA;;AAC1BC,oBAAiB,2BAAW;AAC1B,YAAO;AACLC,cAAO,EADF;AAELC,gBAAS,KAFJ;AAGLC,iBAAU,EAHL;AAILC,gBAASP;AAJJ,MAAP;AAMD,IARyB;;AAU1BQ,iBAAc,sBAASC,KAAT,EAAgB;AAC5B,UAAKC,QAAL,CAAc;A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AKI,kBAAS,KAAKY,WALlB;AAMI,mBAAU,KAAKN,YANnB;AAOI,mBAAU,KAAKH,YAPnB;AAQI,mBAAU,KAAKE,KAAL,CAAWP,QARzB;AASI,sBAAY;AAThB,SAHF;AAeE;AAAA;AAAA;AAAA;AAAA,QAfF;AAgBE;AAAA;AAAA;AACG4B;AADH;AAhBF,MADF;AAsBD;AA/GyB,EAAlB,CAAV;;AAkHAxC,UAASuC,MAAT,CAAgB,oBAAC,GAAD,OAAhB,EAAwBI,SAASC,cAAT,CAAwB,aAAxB,CAAxB,E;;;;;;AC3HA;;AAEA;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;;AAED;AACA;;AAEA,wB;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,+HAA8H;;AAE9H;AACA;AACA;;AAEA;AACA;;AAEA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wB;;;;;;;AC3FA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,4BAA2B;AAC3B;AACA;AACA;AACA,6BAA4B,UAAU;;;;;;;ACnLtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAY;AACZ;AACA;;AAEA;;AAEA,oC;;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,cAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,0DAA0D;AACvE,eAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,UAAU;AACvB,cAAa,0BAA0B;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA,EAAC;;AAED,wC;;;;;;;AC9HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,WAAW;AACtB,YAAW,WAAW;AACtB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,cAAa,cAAc;AAC3B,cAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA,sBAAqB,4BAA4B;AACjD;AACA;AACA;;AAEA,oBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,EAAC;;AAED,wC;;;;;;;AChIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,cAAc;AAC3B,eAAc,kBAAkB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,sBAAqB,wBAAwB;AAC7C;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;;AAEA,yB;;;;;;;AChJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uC;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,UAAU;AACrB,aAAY,8BAA8B;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,wC;;;;;;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb,aAAY;AACZ;AACA;AACA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;AACA;;AAEA,uC;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,yBAAyB;AACpC,aAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAkB,aAAa;AAC/B;AACA;AACA;AACA;;AAEA,0B;;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sDAAqD;AACrD,MAAK;AACL;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA,2BAA0B;AAC1B;AACA;AACA;;AAEA,4B;;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA,gC;;;;;;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8CAA6C;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gC;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED,6C;;;;;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,8BAA6B,sBAAsB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd,eAAc;AACd;AACA,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,4B;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,eAAe;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,SAAS;AACtB,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,gBAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB,aAAY;AACZ;AACA;AACA;AACA;;AAEA,4B;;;;;;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,WAAW;AACtB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,wBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;;AAEA,+B;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,WAAW;AACtB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iC;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,cAAa;AACb,aAAY;AACZ,aAAY;AACZ,eAAc;AACd,gBAAe;AACf;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,EAAE;AACb,aAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA,8C;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,8CAA6C;AAC7C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa,OAAO;AACpB,eAAc,OAAO;AACrB;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,EAAE;AACf,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,EAAE;AACf,eAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,OAAO;AACpB,cAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP;AACA;AACA,2CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,EAAC;;AAED,wC;;;;;;;AChOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C;AAC5C,+BAA8B;AAC9B;AACA,iBAAgB;;AAEhB;AACA;AACA;AACA,aAAY;AACZ;AACA,sEAAqE;;AAErE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAmB,oDAAoD;AACvE;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA,8B;;;;;;;ACzOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,EAAE;AACb,aAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA,gD;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,uFAAsF,aAAa;AACnG;AACA;;AAEA;AACA;AACA;;AAEA;AACA,cAAa;AACb;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA,0B;;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,mD;;;;;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,EAAE;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,cAAc;AAC3B,cAAa,cAAc;AAC3B;AACA;AACA;AACA,oBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;;AAED,uC;;;;;;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAY,OAAO;AACnB;AACA;AACA;AACA,kBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,uBAAuB;AAClC;AACA,aAAY,GAAG;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA,YAAW,WAAW;AACtB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,8CAA8C;AACzD,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,WAAW;AACtB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY,WAAW;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,EAAE;AACb,aAAY,YAAY;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,YAAY;AACvB,YAAW,OAAO;AAClB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,eAAe;AAC1B,YAAW,OAAO;AAClB,YAAW,WAAW;AACtB,YAAW,0BAA0B;AACrC,YAAW,QAAQ;AACnB;AACA;AACA;AACA,wBAAuB;AACvB;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,eAAe;AAC1B,YAAW,OAAO;AAClB,YAAW,WAAW;AACtB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,eAAe;AAC1B,YAAW,WAAW;AACtB;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,YAAY;AACvB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ,kCAAkC;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,SAAS;AACtB;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,cAAa,eAAe;AAC5B,cAAa,aAAa;AAC1B,cAAa,WAAW;AACxB,cAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,eAAe;AAC5B,cAAa,WAAW;AACxB,eAAc,OAAO;AACrB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,cAAa,aAAa;AAC1B,cAAa,WAAW;AACxB,cAAa,QAAQ;AACrB,eAAc,eAAe;AAC7B;AACA;AACA;AACA;AACA;AACA,qLAAoL;;AAEpL;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,eAAe;AAC5B,cAAa,aAAa;AAC1B,cAAa,WAAW;AACxB,cAAa,UAAU;AACvB,eAAc,eAAe;AAC7B;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,aAAa;AAC1B,cAAa,WAAW;AACxB,cAAa,UAAU;AACvB,eAAc,eAAe;AAC7B;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,eAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,WAAW;AACxB,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oLAAmL;;AAEnL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,eAAc,YAAY;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,eAAc,WAAW;AACzB;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,EAAE;AACf,eAAc;AACd;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAa,eAAe;AAC5B,eAAc,OAAO;AACrB,eAAc,eAAe;AAC7B;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,2CAA0C;AAC1C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,EAAC;;AAED,6B;;;;;;;ACj1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC;;AAExC;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA,eAAc,QAAQ;AACtB;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,EAAC;;AAED;AACA;AACA;AACA,EAAC;;AAED,2C;;;;;;ACnUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,oCAAmC,gCAAgC;;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;;AAEA,iC;;;;;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,QAAQ;AACnB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAsB;AACtB;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,gBAAe,MAAM;AACrB;AACA;AACA;;AAEA;AACA,gBAAe,OAAO;AACtB;AACA;;AAEA,IAAG;;AAEH;;AAEA;;AAEA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB;AACA;AACA;;AAEA,yGAAwG;AACxG;;AAEA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,eAAc,UAAU;AACxB;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,eAAe;AAC5B,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,eAAc,EAAE;AAChB;AACA;AACA;AACA;AACA;AACA,oBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;;AAEA,iC;;;;;;;ACtRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA8B;;AAE9B;AACA;AACA;AACA,8BAA6B;;AAE7B;AACA;AACA;AACA,mCAAkC;;AAElC;AACA;AACA;AACA;AACA;AACA,cAAa,MAAM;AACnB;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,sC;;;;;;;AC3NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,eAAe;AAC1B,YAAW,QAAQ;AACnB,YAAW,SAAS;AACpB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,8BAA8B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,8BAA8B;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY,EAAE;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,eAAe;AAC1B,aAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;;AAEH;AACA;;AAEA,mC;;;;;;;ACzMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,QAAQ;AACnB,YAAW,SAAS;AACpB,YAAW,EAAE;AACb,YAAW,EAAE;AACb;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kC;;;;;;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA6B;AAC7B;AACA;AACA;AACA,aAAY,WAAW;AACvB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iC;;;;;;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,YAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA,qC;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA,yC;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,kC;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,0BAAyB,8BAA8B;AACvD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,yB;;;;;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,6CAA4C;AAC5C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mC;;;;;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,uC;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb,YAAW,EAAE;AACb,YAAW,cAAc;AACzB,YAAW,EAAE;AACb;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb;AACA,YAAW,EAAE;AACb,YAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA,oBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,wBAAuB;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA,oBAAmB,oBAAoB;AACvC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,YAAW,QAAQ;AACnB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA,+B;;;;;;;ACtPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,6BAA4B,QAAQ,oBAAoB,EAAE;AAC1D;AACA,IAAG;AACH;AACA;AACA;;AAEA,oC;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,8C;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,0BAA0B;AAC3C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,gBAAgB;AACjC;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,QAAQ;AACnB,YAAW,QAAQ;AACnB,YAAW,SAAS;AACpB,YAAW,EAAE;AACb,YAAW,SAAS;AACpB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAc,OAAO;AACrB;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,eAAc,OAAO;AACrB;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,SAAS;AACtB,cAAa,EAAE;AACf,cAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,SAAS;AACtB,cAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,SAAS;AACtB,cAAa,EAAE;AACf;AACA;AACA;AACA;AACA,IAAG;;AAEH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA,uC;;;;;;;AC7SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iC;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;;AAEA,mC;;;;;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA,cAAa,OAAO;AACpB,eAAc,OAAO;AACrB;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA,cAAa,OAAO;AACpB,cAAa,WAAW;AACxB,gBAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sC;;;;;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU,2BAA2B;AACrC;AACA;AACA;AACA;AACA;AACA,SAAQ,OAAO;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA,0B;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAa,eAAe;AAC5B,cAAa,OAAO;AACpB,cAAa,0DAA0D;AACvE,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,eAAe;AAC5B,cAAa,aAAa;AAC1B,cAAa,0BAA0B;AACvC,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,eAAe;AAC5B,cAAa,0BAA0B;AACvC;AACA;AACA;AACA;AACA;;AAEA;;AAEA,kC;;;;;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2B;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,iBAAiB;AAC1C;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,OAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAa,QAAQ;AACrB,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,eAAe;AAC5B,cAAa,OAAO;AACpB,cAAa,WAAW;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,eAAe;AAC5B,cAAa,OAAO;AACpB,cAAa,WAAW;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,6B;;;;;;;AC1FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,WAAW;AACxB,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;;AAEA,mC;;;;;;;AChQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,eAAe;AAC1B,YAAW,eAAe;AAC1B,aAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2DAA0D;AAC1D;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,+B;;;;;;;AC9NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;;AAED;;AAEA,gC;;;;;;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8B;;;;;;;ACtHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,4BAA4B;AACvC;AACA,aAAY,YAAY;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;;AAEH;;AAEA;AACA;AACA,eAAc,0BAA0B;AACxC;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,SAAS;AACtB,cAAa,OAAO;AACpB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB,cAAa,SAAS;AACtB;AACA,eAAc,EAAE;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX,UAAS;AACT;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,6BAA4B,gCAAgC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,2DAA0D;AAC1D;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,gCAAgC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,sDAAqD;AACrD;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,8B;;;;;;;ACtOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,8B;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,SAAS;AACpB,aAAY,QAAQ;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA,+B;;;;;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,YAAW,EAAE;AACb,aAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA,6B;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,EAAE;AACb,aAAY,QAAQ;AACpB;AACA;;AAEA;AACA;AACA;;AAEA,yB;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,SAAS;AACpB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,UAAU;AACrB,aAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,4C;;;;;;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW;AACX;AACA;;AAEA;AACA;AACA;AACA,cAAa,aAAa;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,0DAA0D;AACvE,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA,cAAa,OAAO;AACpB,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB;AACtB;AACA;AACA,IAAG;;AAEH;AACA;AACA,uEAAsE;AACtE;AACA;AACA,cAAa,OAAO;AACpB,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gJAA+I;AAC/I;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,0BAA0B;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,0BAA0B;AACvC,cAAa,aAAa;AAC1B,cAAa,aAAa;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,8BAA6B;AAC7B,kCAAiC,kBAAkB;AACnD;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,aAAa;AAC1B,cAAa,OAAO;AACpB,cAAa,QAAQ;AACrB,cAAa,QAAQ;AACrB,cAAa,0BAA0B;AACvC,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,0BAA0B;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD;AACzD;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,eAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAc,eAAe;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,EAAC;;AAED;;AAEA;;AAEA;;AAEA,0C;;;;;;;ACrrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,4C;;;;;;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,EAAC;;AAED,yC;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6C;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,QAAQ;AACnB,YAAW,QAAQ;AACnB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA,6C;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC;AAClC;AACA;AACA;AACA;AACA,IAAG;AACH,mCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;;AAEA,sC;;;;;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,aAAa;AACxB,aAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,aAAa;AACxB,aAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,UAAU;AACrB,aAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA,YAAW,eAAe;AAC1B,aAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uC;;;;;;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,0DAAyD;AACzD;AACA;AACA,wCAAuC;AACvC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iCAAgC;AAChC,iBAAgB;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,kBAAiB,iBAAiB;AAClC;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qC;;;;;;;AC1WA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;;AChGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,oCAAmC;AACnC;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,uBAAsB,sBAAsB;AAC5C,wBAAuB,6BAA6B;AACpD,MAAK;AACL;AACA,IAAG;AACH;AACA;AACA,uBAAsB,yBAAyB;AAC/C,wBAAuB,gCAAgC;AACvD,MAAK;AACL;AACA,IAAG;AACH;AACA;AACA,uBAAsB,2BAA2B;AACjD,wBAAuB,kCAAkC;AACzD,MAAK;AACL;AACA,IAAG;AACH;AACA;AACA,uBAAsB,4BAA4B;AAClD,wBAAuB,mCAAmC;AAC1D,MAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,eAAe;AAC1B,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,eAAe;AAC1B,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY,QAAQ;AACpB;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,cAAa,OAAO;AACpB,cAAa,eAAe;AAC5B,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,eAAc,EAAE;AAChB,YAAW;AACX;AACA;AACA;AACA;AACA;;AAEA,yC;;;;;;ACpZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mC;;;;;;;ACtIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;;AAEA;AACA,kBAAiB,eAAe;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC;;AAED;;AAEA,2C;;;;;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,yC;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA,4C;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,eAAc,QAAQ;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;;AAED;;AAEA;AACA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,8BAA6B;AAC7B;;AAEA;AACA;;AAEA;;AAEA,iC;;;;;;;ACnLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA,sC;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,gBAAgB;AAC9D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wB;;;;;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,uBAAsB,iBAAiB;AACvC,wBAAuB,wBAAwB;AAC/C,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,cAAa,OAAO;AACpB,cAAa,eAAe;AAC5B,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,eAAc,EAAE;AAChB,YAAW;AACX;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,MAAK;AACL;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,oC;;;;;;AChUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY,eAAe;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iC;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,qC;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uC;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC,6BAA6B,UAAU,0BAA0B,UAAU,uBAAuB,UAAU,8BAA8B,UAAU,0BAA0B,UAAU,0BAA0B,UAAU,+BAA+B;;AAEjS,0C;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,8BAA6B,qBAAqB;AAClD;AACA,IAAG;AACH;AACA,8BAA6B,qBAAqB;AAClD;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,eAAe;AAC5B,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,eAAc,EAAE;AAChB,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA,wC;;;;;;AC3HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA,sC;;;;;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA,mC;;;;;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,wC;;;;;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wC;;;;;;ACrOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,eAAc,WAAW;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6C;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,0BAA0B;AACrC,aAAY,YAAY;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8B;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC;;AAED;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA,+C;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,sBAAqB;;AAErB,uBAAsB,iBAAiB;AACvC,oBAAmB,cAAc;AACjC,mBAAkB,eAAe;;AAEjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uHAAsH;AACtH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0HAAyH;AACzH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,yBAAyB;AACxC;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qNAAoN,YAAY;AAChO;AACA;AACA;AACA;AACA;AACA,qOAAoO,+BAA+B;AACnQ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,EAAC;;AAED;AACA;AACA;;AAEA,qDAAoD;AACpD;AACA,yBAAwB;;AAExB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,0DAA0D;AACvE,cAAa,OAAO;AACpB,eAAc,OAAO;AACrB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC;AAClC;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,0DAA0D;AACvE,cAAa,OAAO;AACpB,eAAc,OAAO;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,0DAA0D;AACvE,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,eAAc,OAAO;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,wBAAuB,wBAAwB;AAC/C;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,aAAa;AAC1B,cAAa,0DAA0D;AACvE,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,0BAA0B;AACvC,cAAa,aAAa;AAC1B,cAAa,aAAa;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,0BAA0B;AACvC,cAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,uCAAsC,KAAK;AAC3C;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD;AACxD,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,0BAA0B;AACvC,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,sBAAsB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,EAAC;;AAED;;AAEA,oC;;;;;;;ACj8BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iC;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,YAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA,4B;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,6CAA4C;;AAE5C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,cAAa,OAAO;AACpB,cAAa,EAAE;AACf;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iCAAgC,0BAA0B;AAC1D,qBAAoB,SAAS;AAC7B;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAqE;AACrE;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,EAAC;;AAED,wC;;;;;;;AC9KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,8B;;;;;;AC1IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;;AAEA,oC;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA,2B;;;;;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,EAAE;AACb,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAsB;AACtB;;AAEA;AACA;AACA;AACA;AACA;;AAEA,sC;;;;;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;;AAEA,qC;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;;AAEA,4B;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,SAAS;AACpB,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oC;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,iC;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,uCAAsC;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gCAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gC;;;;;;;ACxJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA,cAAa,OAAO;AACpB,eAAc,EAAE;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA,cAAa,OAAO;AACpB,eAAc,EAAE;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA,cAAa,OAAO;AACpB,cAAa,eAAe;AAC5B;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA,mC;;;;;;;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR,4BAA2B;AAC3B,OAAM;AACN;AACA;AACA;AACA;AACA,8BAA6B,KAAK;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,2BAA0B;AAC1B,MAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,oBAAmB,2BAA2B;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA,oBAAmB,gCAAgC;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iC;;;;;;ACnWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,yCAAwC;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,QAAQ;AACnB,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gC;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,wBAAwB;AAC/C;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA,2BAA0B;AAC1B,IAAG;;AAEH;AACA,+BAA8B,2CAA2C;;AAEzE;AACA,iBAAgB;AAChB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,iC;;;;;;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,UAAU;AACrB,YAAW,GAAG;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,GAAG;AACd,YAAW,iBAAiB;AAC5B,YAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,GAAG;AACd,YAAW,UAAU;AACrB,YAAW,GAAG;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,GAAG;AACd,YAAW,iBAAiB;AAC5B,YAAW,EAAE;AACb,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,GAAG;AACd,aAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gC;;;;;;ACrLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,EAAE;AACb,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,EAAE;AACb,aAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;;AAEA;AACA,YAAW,GAAG;AACd,YAAW,QAAQ;AACnB,YAAW,UAAU;AACrB,YAAW,GAAG;AACd;AACA,aAAY,QAAQ;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,wBAAuB;AACvB;;AAEA;AACA,oBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2LAA2L,yCAAyC;AACpO;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,GAAG;AACd,YAAW,UAAU;AACrB,YAAW,GAAG;AACd,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,sC;;;;;;;AC5LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAiB,2BAA2B;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,YAAW,kBAAkB;AAC7B,YAAW,QAAQ;AACnB,YAAW,EAAE;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,sBAAsB;AACrC;AACA;AACA,gBAAe,oBAAoB;AACnC;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAoB;AACpB;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,iCAAgC;AAChC;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iC;;;;;;;AC3LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uCAAsC;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mC;;;;;;;AChHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAe,QAAQ;AACvB,iBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,QAAQ;AACvB,gBAAe,0BAA0B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAe,QAAQ;AACvB,gBAAe,0BAA0B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,eAAe;AAC9B,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,eAAe;AAC9B,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,gBAAe,eAAe;AAC9B,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,0BAA0B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,gBAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,kC;;;;;;;AC/eA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wKAAuK;AACvK;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,QAAQ;AACrB,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,QAAQ;AACrB,cAAa,QAAQ;AACrB,cAAa,0BAA0B;AACvC,cAAa,OAAO;AACpB,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,uC;;;;;;;ACzHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,YAAW,SAAS;AACpB,YAAW,gBAAgB;AAC3B,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,wKAAuK;AACvK;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kC;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;;AAEA;AACA;;AAEA,+B;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,EAAE;AACb,aAAY,gBAAgB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAM;AACN;AACA;AACA;;AAEA,+BAA8B;AAC9B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAiB,kCAAkC;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA,qC;;;;;;AClNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,eAAe;AAC5B,cAAa,OAAO;AACpB,cAAa,SAAS;AACtB,eAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,eAAe;AAC5B,cAAa,OAAO;AACpB,cAAa,SAAS;AACtB,eAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA,gC;;;;;;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,qBAAqB;AAChC,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6C;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iC;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,yBAAwB,eAAe;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA6B,KAAK;AAClC;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,QAAQ;AACrB,cAAa,QAAQ;AACrB,eAAc,QAAQ;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,QAAQ;AACrB,cAAa,QAAQ;AACrB,cAAa,0BAA0B;AACvC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,QAAQ;AACrB,cAAa,QAAQ;AACrB,cAAa,WAAW;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,0BAA0B;AACvC;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,sBAAqB,mBAAmB;AACxC;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,8CAA6C;AAC7C,IAAG;AACH;AACA;AACA;AACA;AACA,yCAAwC;AACxC,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,sCAAqC;AACrC,IAAG;AACH;AACA;AACA,IAAG;AACH,2BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA,6HAA4H;AAC5H;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+OAA8O;;AAE9O;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY,OAAO;AACnB;AACA;AACA;;AAEA;AACA;AACA,+NAA8N;AAC9N;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,SAAS;AACpB,aAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,SAAS;AACpB,aAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB,aAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAwF,aAAa;AACrG;AACA;;AAEA,uDAAsD;AACtD;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,OAAO;AACpB,cAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa,OAAO;AACpB,eAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA,6B;;;;;;;AClwBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,gBAAgB;AAC3B;AACA,YAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,wIAAuI;AACvI;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iC;;;;;;;ACzHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,WAAW;AACxB,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,UAAU;AACvB;AACA;AACA,0DAAyD;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA,uC;;;;;;;ACrHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc,UAAU;AACxB;AACA;AACA;AACA,cAAa,UAAU;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAc,cAAc;AAC5B;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA,eAAc,OAAO;AACrB;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,4C;;;;;;ACtJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA,0BAAyB;AACzB,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA,sC;;;;;;AC3HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,WAAW;AACtB,aAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,WAAW;AACtB,aAAY;AACZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,uBAAuB;AAClC,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,uBAAuB;AAClC,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAa,WAAW;AACxB;AACA;;AAEA;AACA,cAAa,uBAAuB;AACpC,cAAa,OAAO;AACpB;AACA;AACA;;AAEA,oC;;;;;;ACnNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,uBAAuB;AAClC,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,uBAAuB;AAClC,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,uBAAuB;AAClC,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,4C;;;;;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA,mC;;;;;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,uBAAsB,iBAAiB;AACvC,wBAAuB,wBAAwB;AAC/C,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4BAA2B,iBAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,WAAW;AACtB,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,cAAa,OAAO;AACpB,cAAa,eAAe;AAC5B,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,eAAc,EAAE;AAChB,YAAW;AACX;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA,oC;;;;;;ACxMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uC;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,uBAAsB,gBAAgB;AACtC,wBAAuB,uBAAuB;AAC9C;AACA,IAAG;AACH;AACA;AACA,uBAAsB,eAAe;AACrC,wBAAuB,sBAAsB;AAC7C;AACA,IAAG;AACH;AACA;AACA,uBAAsB,kBAAkB;AACxC,wBAAuB,yBAAyB;AAChD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,yBAAyB;AAC/C,wBAAuB,gCAAgC;AACvD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,gBAAgB;AACtC,wBAAuB,uBAAuB;AAC9C;AACA,IAAG;AACH;AACA;AACA,uBAAsB,sBAAsB;AAC5C,wBAAuB,6BAA6B;AACpD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,eAAe;AACrC,wBAAuB,sBAAsB;AAC7C;AACA,IAAG;AACH;AACA;AACA,uBAAsB,cAAc;AACpC,wBAAuB,qBAAqB;AAC5C;AACA,IAAG;AACH;AACA;AACA,uBAAsB,sBAAsB;AAC5C,wBAAuB,6BAA6B;AACpD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,eAAe;AACrC,wBAAuB,sBAAsB;AAC7C;AACA,IAAG;AACH;AACA;AACA,uBAAsB,kBAAkB;AACxC,wBAAuB,yBAAyB;AAChD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,oBAAoB;AAC1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AAChD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,kBAAkB;AACxC,wBAAuB,yBAAyB;AAChD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,iBAAiB;AACvC,wBAAuB,wBAAwB;AAC/C;AACA,IAAG;AACH;AACA;AACA,uBAAsB,kBAAkB;AACxC,wBAAuB,yBAAyB;AAChD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,qBAAqB;AAC3C,wBAAuB,4BAA4B;AACnD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,sBAAsB;AAC5C,wBAAuB,6BAA6B;AACpD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,mBAAmB;AACzC,wBAAuB,0BAA0B;AACjD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,oBAAoB;AAC1C,wBAAuB,2BAA2B;AAClD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,qBAAqB;AAC3C,wBAAuB,4BAA4B;AACnD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,uBAAuB;AAC7C,wBAAuB,8BAA8B;AACrD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,kBAAkB;AACxC,wBAAuB,yBAAyB;AAChD;AACA,IAAG;AACH;AACA;AACA,uBAAsB,gBAAgB;AACtC,wBAAuB,uBAAuB;AAC9C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,2BAA0B,gBAAgB;AAC1C;;AAEA;;AAEA;;AAEA;AACA,cAAa,OAAO;AACpB,cAAa,eAAe;AAC5B,cAAa,OAAO;AACpB,cAAa,OAAO;AACpB,eAAc,EAAE;AAChB,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,oC;;;;;;;AC1kBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA,0C;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA,sC;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA,yC;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,aAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,mC;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,aAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8B;;;;;;ACtGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA,qC;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA,sC;;;;;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;;AAEA;;AAEA,sC;;;;;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uC;;;;;;AC9HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;;AAEH;AACA;AACA,sEAAqE,aAAa;AAClF;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB;AACvB,wBAAuB;AACvB,qBAAoB;AACpB,qBAAoB;AACpB,qBAAoB;AACpB,2BAA0B;AAC1B;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;;AAEA,mC;;;;;;AC5OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,yBAAyB;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP,MAAK;AACL,IAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA,kBAAiB,yBAAyB;AAC1C;AACA,2BAA0B;;AAE1B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA,kBAAiB,yBAAyB;AAC1C;AACA,2BAA0B;AAC1B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB;;AAExB;AACA;AACA;AACA;AACA,oBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,2C;;;;;;ACxMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;;AAEA,iC;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,oC;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,2B;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,wD;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iC;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,YAAW,aAAa;AACxB,aAAY,OAAO;AACnB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,aAAa;AACxB,aAAY,OAAO;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,G;;;;;;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8C;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAc,MAAM;AACpB;AACA;AACA;AACA,IAAG;;AAEH;AACA,eAAc,OAAO;AACrB;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,kD;;;;;;ACtFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,wB;;;;;;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;;AAED,oC;;;;;;;AChLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,aAAa;AACxB,YAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,aAAa;AACxB,YAAW,EAAE;AACb,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gGAA+F;AAC/F;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,UAAU;AACrB,YAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8IAA6I;AAC7I;AACA,QAAO;AACP;AACA;AACA,uIAAsI;AACtI;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,aAAa;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;;AAEA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA,IAAG;;AAEH;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;;AAEA;;AAEA,wC;;;;;;;ACxRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,QAAQ;AACnB,YAAW,SAAS;AACpB,YAAW,EAAE;AACb,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,4B;;;;;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,QAAQ;AACnB,aAAY,eAAe;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA,4B;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;A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AM;AACjB,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,MAAM;AACjB,YAAW,EAAE;AACb,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,EAAE;AACb,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,MAAM;AACjB,cAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,qDAAoD;;AAEpD;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,oBAAoB;AAC/B,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,MAAM;AACjB,YAAW,QAAQ;AACnB,YAAW,uBAAuB;AAClC;AACA;AACA,YAAW,EAAE;AACb,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,6BAA6B,EAAE;AAC3F;AACA;AACA,oDAAmD,wBAAwB,EAAE;AAC7E;AACA;AACA;AACA,aAAY,SAAS,GAAG,SAAS,GAAG,SAAS;AAC7C,YAAW,SAAS,GAAG,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,MAAM;AACjB,YAAW,QAAQ;AACnB,YAAW,SAAS;AACpB,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;;;;;;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb,YAAW,EAAE;AACb,YAAW,OAAO;AAClB,cAAa,SAAS;AACtB;AACA;AACA;AACA,OAAM,8BAA8B;AACpC,OAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAI;AACJ;AACA;AACA,YAAW,4BAA4B;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb,YAAW,EAAE;AACb,YAAW,OAAO;AAClB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,EAAE;AACb,YAAW,KAAK;AAChB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,gBAAgB;AAC3B,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,MAAM;AACjB;AACA,YAAW,MAAM;AACjB;AACA,YAAW,EAAE;AACb,YAAW,OAAO;AAClB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,MAAM;AACjB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,wBAAuB;AACvB;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb,cAAa,QAAQ;AACrB;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA,IAAG,WAAW;AACd;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,MAAM;AACjB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb,cAAa,EAAE;AACf;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8EAA6E,aAAa,EAAE;;AAE5F;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb,YAAW,EAAE;AACb,YAAW,SAAS;AACpB,YAAW,SAAS;AACpB,YAAW,MAAM;AACjB,YAAW,MAAM;AACjB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AChNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB,YAAW,EAAE;AACb,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,SAAS;AACtB;AACA;AACA;AACA,OAAM,8BAA8B;AACpC,OAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,8BAA8B,GAAG,8BAA8B;AAC1E;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;ACvCApJ,QAAOC,OAAP,GAAiB,CACf,GADe,EAEf,SAFe,EAGf,SAHe,EAIf,SAJe,EAKf,OALe,EAMf,MANe,EAOf,OAPe,EAQf,MARe,EASf,KATe,EAUf,MAVe,EAWf,SAXe,EAYf,KAZe,EAaf,QAbe,EAcf,KAde,EAef,QAfe,EAgBf,QAhBe,EAiBf,OAjBe,EAkBf,SAlBe,EAmBf,UAnBe,EAoBf,OApBe,EAqBf,QArBe,EAsBf,SAtBe,EAuBf,SAvBe,EAwBf,UAxBe,EAyBf,SAzBe,EA0Bf,UA1Be,EA2Bf,UA3Be,EA4Bf,UA5Be,EA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AgvDf,WAhvDe,EAivDf,QAjvDe,EAkvDf,QAlvDe,EAmvDf,GAnvDe,EAovDf,QApvDe,EAqvDf,QArvDe,EAsvDf,SAtvDe,EAuvDf,MAvvDe,EAwvDf,KAxvDe,EAyvDf,QAzvDe,EA0vDf,QA1vDe,EA2vDf,SA3vDe,EA4vDf,GA5vDe,EA6vDf,QA7vDe,EA8vDf,SA9vDe,EA+vDf,QA/vDe,EAgwDf,QAhwDe,EAiwDf,SAjwDe,EAkwDf,SAlwDe,EAmwDf,QAnwDe,EAowDf,SApwDe,EAqwDf,QArwDe,EAswDf,QAtwDe,EAuwDf,QAvwDe,EAwwDf,GAxwDe,EAywDf,MAzwDe,EA0wDf,SA1wDe,EA2wDf,OA3wDe,EA4wDf,OA5wDe,EA6wDf,OA7wDe,EA8wDf,MA9wDe,EA+wDf,MA/wDe,EAgxDf,OAhxDe,EAixDf,MAjxDe,EAkxDf,OAlxDe,EAmxDf,OAnxDe,EAoxDf,QApxDe,EAqxDf,QArxDe,EAsxDf,MAtxDe,EAuxDf,SAvxDe,EAwxDf,KAxxDe,EAyxDf,MAzxDe,EA0xDf,MA1xDe,EA2xDf,KA3xDe,EA4xDf,MA5xDe,EA6xDf,MA7xDe,EA8xDf,MA9xDe,EA+xDf,MA/xDe,EAgyDf,MAhyDe,EAiyDf,MAjyDe,EAkyDf,OAlyDe,EAmyDfX,GAnyDe,CAmyDX,UAASZ,IAAT,EAAe;AACnB,UAAO;AACLD,SAAIC,IADC;AAELA,WAAMA;AAFD,IAAP;AAID,EAxyDgB,CAAjB,C","file":"./example/bundle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 06dcf4129200aace8100","var React = require('react')\nvar ReactDOM = require('react-dom')\nvar TokenInput = require('../index')\nvar ComboboxOption = require('../index').Option\n\nvar without = require('lodash-node/modern/arrays/without')\nvar uniq = require('lodash-node/modern/arrays/uniq')\nvar names = require('./names')\n\nvar App = React.createClass({\n getInitialState: function() {\n return {\n input: '',\n loading: false,\n selected: [],\n options: names\n };\n },\n\n handleChange: function(value) {\n this.setState({\n selected: value\n })\n },\n\n handleRemove: function(value) {\n var selectedOptions = uniq(without(this.state.selected,value))\n this.handleChange(selectedOptions)\n },\n\n handleSelect: function(value, combobox) {\n if(typeof value === 'string') {\n value = {id: value, name: value};\n }\n\n var selected = uniq(this.state.selected.concat([value]))\n this.setState({\n selected: selected,\n selectedToken: null\n })\n\n this.handleChange(selected)\n },\n\n handleInput: function(userInput) {\n this.setState({\n input: userInput,\n loading: true,\n options: []\n })\n setTimeout(function () {\n this.filterTags(this.state.input)\n this.setState({\n loading: false\n })\n }.bind(this), 500)\n },\n\n filterTags: function(userInput) {\n if (userInput === '')\n return this.setState({options: []});\n var filter = new RegExp('^'+userInput, 'i');\n var filteredNames = names.filter(function(state) {\n return filter.test(state.name); // || filter.test(state.id);\n }).filter(function(state) {\n return this.state.selected\n .map(function(value) { return value.name })\n .indexOf(state.name) === -1\n }.bind(this))\n this.setState({\n options: filteredNames\n });\n },\n\n renderComboboxOptions: function() {\n return this.state.options.map(function(name) {\n return (\n 1}\n >{name.name}\n );\n });\n },\n\n render: function() {\n var selectedNames = this.state.selected.map(function(tag) {\n return
  • {tag.name}
  • \n })\n\n var options = this.state.options.length ?\n this.renderComboboxOptions() : [];\n\n const loadingComponent = (\n \n )\n\n return (\n
    \n

    React TokenInput Example

    \n\n \n\n

    Selected

    \n
      \n {selectedNames}\n
    \n
    \n );\n }\n})\n\nReactDOM.render(, document.getElementById('application'))\n\n\n\n// WEBPACK FOOTER //\n// ./example/main.js","'use strict';\n\nmodule.exports = require('./lib/React');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/react.js\n// module id = 1\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule React\n */\n\n'use strict';\n\nvar ReactDOM = require('./ReactDOM');\nvar ReactDOMServer = require('./ReactDOMServer');\nvar ReactIsomorphic = require('./ReactIsomorphic');\n\nvar assign = require('./Object.assign');\nvar deprecated = require('./deprecated');\n\n// `version` will be added here by ReactIsomorphic.\nvar React = {};\n\nassign(React, ReactIsomorphic);\n\nassign(React, {\n // ReactDOM\n findDOMNode: deprecated('findDOMNode', 'ReactDOM', 'react-dom', ReactDOM, ReactDOM.findDOMNode),\n render: deprecated('render', 'ReactDOM', 'react-dom', ReactDOM, ReactDOM.render),\n unmountComponentAtNode: deprecated('unmountComponentAtNode', 'ReactDOM', 'react-dom', ReactDOM, ReactDOM.unmountComponentAtNode),\n\n // ReactDOMServer\n renderToString: deprecated('renderToString', 'ReactDOMServer', 'react-dom/server', ReactDOMServer, ReactDOMServer.renderToString),\n renderToStaticMarkup: deprecated('renderToStaticMarkup', 'ReactDOMServer', 'react-dom/server', ReactDOMServer, ReactDOMServer.renderToStaticMarkup)\n});\n\nReact.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOM;\nReact.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOMServer;\n\nmodule.exports = React;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/React.js\n// module id = 2\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactDOM\n */\n\n/* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/\n\n'use strict';\n\nvar ReactCurrentOwner = require('./ReactCurrentOwner');\nvar ReactDOMTextComponent = require('./ReactDOMTextComponent');\nvar ReactDefaultInjection = require('./ReactDefaultInjection');\nvar ReactInstanceHandles = require('./ReactInstanceHandles');\nvar ReactMount = require('./ReactMount');\nvar ReactPerf = require('./ReactPerf');\nvar ReactReconciler = require('./ReactReconciler');\nvar ReactUpdates = require('./ReactUpdates');\nvar ReactVersion = require('./ReactVersion');\n\nvar findDOMNode = require('./findDOMNode');\nvar renderSubtreeIntoContainer = require('./renderSubtreeIntoContainer');\nvar warning = require('fbjs/lib/warning');\n\nReactDefaultInjection.inject();\n\nvar render = ReactPerf.measure('React', 'render', ReactMount.render);\n\nvar React = {\n findDOMNode: findDOMNode,\n render: render,\n unmountComponentAtNode: ReactMount.unmountComponentAtNode,\n version: ReactVersion,\n\n /* eslint-disable camelcase */\n unstable_batchedUpdates: ReactUpdates.batchedUpdates,\n unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer\n};\n\n// Inject the runtime into a devtools global hook regardless of browser.\n// Allows for debugging when the hook is injected on the page.\n/* eslint-enable camelcase */\nif (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function') {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({\n CurrentOwner: ReactCurrentOwner,\n InstanceHandles: ReactInstanceHandles,\n Mount: ReactMount,\n Reconciler: ReactReconciler,\n TextComponent: ReactDOMTextComponent\n });\n}\n\nif (process.env.NODE_ENV !== 'production') {\n var ExecutionEnvironment = require('fbjs/lib/ExecutionEnvironment');\n if (ExecutionEnvironment.canUseDOM && window.top === window.self) {\n\n // First check if devtools is not installed\n if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {\n // If we're in Chrome or Firefox, provide a download link if not installed.\n if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {\n console.debug('Download the React DevTools for a better development experience: ' + 'https://fb.me/react-devtools');\n }\n }\n\n // If we're in IE8, check to see if we are in compatibility mode and provide\n // information on preventing compatibility mode\n var ieCompatibilityMode = document.documentMode && document.documentMode < 8;\n\n process.env.NODE_ENV !== 'production' ? warning(!ieCompatibilityMode, 'Internet Explorer is running in compatibility mode; please add the ' + 'following tag to your HTML to prevent this from happening: ' + '') : undefined;\n\n var expectedFeatures = [\n // shims\n Array.isArray, Array.prototype.every, Array.prototype.forEach, Array.prototype.indexOf, Array.prototype.map, Date.now, Function.prototype.bind, Object.keys, String.prototype.split, String.prototype.trim,\n\n // shams\n Object.create, Object.freeze];\n\n for (var i = 0; i < expectedFeatures.length; i++) {\n if (!expectedFeatures[i]) {\n console.error('One or more ES5 shim/shams expected by React are not available: ' + 'https://fb.me/react-warning-polyfills');\n break;\n }\n }\n }\n}\n\nmodule.exports = React;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactDOM.js\n// module id = 3\n// module chunks = 0","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/process/browser.js\n// module id = 4\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactCurrentOwner\n */\n\n'use strict';\n\n/**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\nvar ReactCurrentOwner = {\n\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n\n};\n\nmodule.exports = ReactCurrentOwner;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactCurrentOwner.js\n// module id = 5\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactDOMTextComponent\n * @typechecks static-only\n */\n\n'use strict';\n\nvar DOMChildrenOperations = require('./DOMChildrenOperations');\nvar DOMPropertyOperations = require('./DOMPropertyOperations');\nvar ReactComponentBrowserEnvironment = require('./ReactComponentBrowserEnvironment');\nvar ReactMount = require('./ReactMount');\n\nvar assign = require('./Object.assign');\nvar escapeTextContentForBrowser = require('./escapeTextContentForBrowser');\nvar setTextContent = require('./setTextContent');\nvar validateDOMNesting = require('./validateDOMNesting');\n\n/**\n * Text nodes violate a couple assumptions that React makes about components:\n *\n * - When mounting text into the DOM, adjacent text nodes are merged.\n * - Text nodes cannot be assigned a React root ID.\n *\n * This component is used to wrap strings in elements so that they can undergo\n * the same reconciliation that is applied to elements.\n *\n * TODO: Investigate representing React components in the DOM with text nodes.\n *\n * @class ReactDOMTextComponent\n * @extends ReactComponent\n * @internal\n */\nvar ReactDOMTextComponent = function (props) {\n // This constructor and its argument is currently used by mocks.\n};\n\nassign(ReactDOMTextComponent.prototype, {\n\n /**\n * @param {ReactText} text\n * @internal\n */\n construct: function (text) {\n // TODO: This is really a ReactText (ReactNode), not a ReactElement\n this._currentElement = text;\n this._stringText = '' + text;\n\n // Properties\n this._rootNodeID = null;\n this._mountIndex = 0;\n },\n\n /**\n * Creates the markup for this text node. This node is not intended to have\n * any features besides containing text content.\n *\n * @param {string} rootID DOM ID of the root node.\n * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction\n * @return {string} Markup for this text node.\n * @internal\n */\n mountComponent: function (rootID, transaction, context) {\n if (process.env.NODE_ENV !== 'production') {\n if (context[validateDOMNesting.ancestorInfoContextKey]) {\n validateDOMNesting('span', null, context[validateDOMNesting.ancestorInfoContextKey]);\n }\n }\n\n this._rootNodeID = rootID;\n if (transaction.useCreateElement) {\n var ownerDocument = context[ReactMount.ownerDocumentContextKey];\n var el = ownerDocument.createElement('span');\n DOMPropertyOperations.setAttributeForID(el, rootID);\n // Populate node cache\n ReactMount.getID(el);\n setTextContent(el, this._stringText);\n return el;\n } else {\n var escapedText = escapeTextContentForBrowser(this._stringText);\n\n if (transaction.renderToStaticMarkup) {\n // Normally we'd wrap this in a `span` for the reasons stated above, but\n // since this is a situation where React won't take over (static pages),\n // we can simply return the text as it is.\n return escapedText;\n }\n\n return '' + escapedText + '';\n }\n },\n\n /**\n * Updates this component by updating the text content.\n *\n * @param {ReactText} nextText The next text content\n * @param {ReactReconcileTransaction} transaction\n * @internal\n */\n receiveComponent: function (nextText, transaction) {\n if (nextText !== this._currentElement) {\n this._currentElement = nextText;\n var nextStringText = '' + nextText;\n if (nextStringText !== this._stringText) {\n // TODO: Save this as pending props and use performUpdateIfNecessary\n // and/or updateComponent to do the actual update for consistency with\n // other component types?\n this._stringText = nextStringText;\n var node = ReactMount.getNode(this._rootNodeID);\n DOMChildrenOperations.updateTextContent(node, nextStringText);\n }\n }\n },\n\n unmountComponent: function () {\n ReactComponentBrowserEnvironment.unmountIDFromEnvironment(this._rootNodeID);\n }\n\n});\n\nmodule.exports = ReactDOMTextComponent;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactDOMTextComponent.js\n// module id = 6\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule DOMChildrenOperations\n * @typechecks static-only\n */\n\n'use strict';\n\nvar Danger = require('./Danger');\nvar ReactMultiChildUpdateTypes = require('./ReactMultiChildUpdateTypes');\nvar ReactPerf = require('./ReactPerf');\n\nvar setInnerHTML = require('./setInnerHTML');\nvar setTextContent = require('./setTextContent');\nvar invariant = require('fbjs/lib/invariant');\n\n/**\n * Inserts `childNode` as a child of `parentNode` at the `index`.\n *\n * @param {DOMElement} parentNode Parent node in which to insert.\n * @param {DOMElement} childNode Child node to insert.\n * @param {number} index Index at which to insert the child.\n * @internal\n */\nfunction insertChildAt(parentNode, childNode, index) {\n // By exploiting arrays returning `undefined` for an undefined index, we can\n // rely exclusively on `insertBefore(node, null)` instead of also using\n // `appendChild(node)`. However, using `undefined` is not allowed by all\n // browsers so we must replace it with `null`.\n\n // fix render order error in safari\n // IE8 will throw error when index out of list size.\n var beforeChild = index >= parentNode.childNodes.length ? null : parentNode.childNodes.item(index);\n\n parentNode.insertBefore(childNode, beforeChild);\n}\n\n/**\n * Operations for updating with DOM children.\n */\nvar DOMChildrenOperations = {\n\n dangerouslyReplaceNodeWithMarkup: Danger.dangerouslyReplaceNodeWithMarkup,\n\n updateTextContent: setTextContent,\n\n /**\n * Updates a component's children by processing a series of updates. The\n * update configurations are each expected to have a `parentNode` property.\n *\n * @param {array} updates List of update configurations.\n * @param {array} markupList List of markup strings.\n * @internal\n */\n processUpdates: function (updates, markupList) {\n var update;\n // Mapping from parent IDs to initial child orderings.\n var initialChildren = null;\n // List of children that will be moved or removed.\n var updatedChildren = null;\n\n for (var i = 0; i < updates.length; i++) {\n update = updates[i];\n if (update.type === ReactMultiChildUpdateTypes.MOVE_EXISTING || update.type === ReactMultiChildUpdateTypes.REMOVE_NODE) {\n var updatedIndex = update.fromIndex;\n var updatedChild = update.parentNode.childNodes[updatedIndex];\n var parentID = update.parentID;\n\n !updatedChild ? process.env.NODE_ENV !== 'production' ? invariant(false, 'processUpdates(): Unable to find child %s of element. This ' + 'probably means the DOM was unexpectedly mutated (e.g., by the ' + 'browser), usually due to forgetting a when using tables, ' + 'nesting tags like
    ,

    , or , or using non-SVG elements ' + 'in an parent. Try inspecting the child nodes of the element ' + 'with React ID `%s`.', updatedIndex, parentID) : invariant(false) : undefined;\n\n initialChildren = initialChildren || {};\n initialChildren[parentID] = initialChildren[parentID] || [];\n initialChildren[parentID][updatedIndex] = updatedChild;\n\n updatedChildren = updatedChildren || [];\n updatedChildren.push(updatedChild);\n }\n }\n\n var renderedMarkup;\n // markupList is either a list of markup or just a list of elements\n if (markupList.length && typeof markupList[0] === 'string') {\n renderedMarkup = Danger.dangerouslyRenderMarkup(markupList);\n } else {\n renderedMarkup = markupList;\n }\n\n // Remove updated children first so that `toIndex` is consistent.\n if (updatedChildren) {\n for (var j = 0; j < updatedChildren.length; j++) {\n updatedChildren[j].parentNode.removeChild(updatedChildren[j]);\n }\n }\n\n for (var k = 0; k < updates.length; k++) {\n update = updates[k];\n switch (update.type) {\n case ReactMultiChildUpdateTypes.INSERT_MARKUP:\n insertChildAt(update.parentNode, renderedMarkup[update.markupIndex], update.toIndex);\n break;\n case ReactMultiChildUpdateTypes.MOVE_EXISTING:\n insertChildAt(update.parentNode, initialChildren[update.parentID][update.fromIndex], update.toIndex);\n break;\n case ReactMultiChildUpdateTypes.SET_MARKUP:\n setInnerHTML(update.parentNode, update.content);\n break;\n case ReactMultiChildUpdateTypes.TEXT_CONTENT:\n setTextContent(update.parentNode, update.content);\n break;\n case ReactMultiChildUpdateTypes.REMOVE_NODE:\n // Already removed by the for-loop above.\n break;\n }\n }\n }\n\n};\n\nReactPerf.measureMethods(DOMChildrenOperations, 'DOMChildrenOperations', {\n updateTextContent: 'updateTextContent'\n});\n\nmodule.exports = DOMChildrenOperations;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/DOMChildrenOperations.js\n// module id = 7\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule Danger\n * @typechecks static-only\n */\n\n'use strict';\n\nvar ExecutionEnvironment = require('fbjs/lib/ExecutionEnvironment');\n\nvar createNodesFromMarkup = require('fbjs/lib/createNodesFromMarkup');\nvar emptyFunction = require('fbjs/lib/emptyFunction');\nvar getMarkupWrap = require('fbjs/lib/getMarkupWrap');\nvar invariant = require('fbjs/lib/invariant');\n\nvar OPEN_TAG_NAME_EXP = /^(<[^ \\/>]+)/;\nvar RESULT_INDEX_ATTR = 'data-danger-index';\n\n/**\n * Extracts the `nodeName` from a string of markup.\n *\n * NOTE: Extracting the `nodeName` does not require a regular expression match\n * because we make assumptions about React-generated markup (i.e. there are no\n * spaces surrounding the opening tag and there is at least one attribute).\n *\n * @param {string} markup String of markup.\n * @return {string} Node name of the supplied markup.\n * @see http://jsperf.com/extract-nodename\n */\nfunction getNodeName(markup) {\n return markup.substring(1, markup.indexOf(' '));\n}\n\nvar Danger = {\n\n /**\n * Renders markup into an array of nodes. The markup is expected to render\n * into a list of root nodes. Also, the length of `resultList` and\n * `markupList` should be the same.\n *\n * @param {array} markupList List of markup strings to render.\n * @return {array} List of rendered nodes.\n * @internal\n */\n dangerouslyRenderMarkup: function (markupList) {\n !ExecutionEnvironment.canUseDOM ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyRenderMarkup(...): Cannot render markup in a worker ' + 'thread. Make sure `window` and `document` are available globally ' + 'before requiring React when unit testing or use ' + 'ReactDOMServer.renderToString for server rendering.') : invariant(false) : undefined;\n var nodeName;\n var markupByNodeName = {};\n // Group markup by `nodeName` if a wrap is necessary, else by '*'.\n for (var i = 0; i < markupList.length; i++) {\n !markupList[i] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'dangerouslyRenderMarkup(...): Missing markup.') : invariant(false) : undefined;\n nodeName = getNodeName(markupList[i]);\n nodeName = getMarkupWrap(nodeName) ? nodeName : '*';\n markupByNodeName[nodeName] = markupByNodeName[nodeName] || [];\n markupByNodeName[nodeName][i] = markupList[i];\n }\n var resultList = [];\n var resultListAssignmentCount = 0;\n for (nodeName in markupByNodeName) {\n if (!markupByNodeName.hasOwnProperty(nodeName)) {\n continue;\n }\n var markupListByNodeName = markupByNodeName[nodeName];\n\n // This for-in loop skips the holes of the sparse array. The order of\n // iteration should follow the order of assignment, which happens to match\n // numerical index order, but we don't rely on that.\n var resultIndex;\n for (resultIndex in markupListByNodeName) {\n if (markupListByNodeName.hasOwnProperty(resultIndex)) {\n var markup = markupListByNodeName[resultIndex];\n\n // Push the requested markup with an additional RESULT_INDEX_ATTR\n // attribute. If the markup does not start with a < character, it\n // will be discarded below (with an appropriate console.error).\n markupListByNodeName[resultIndex] = markup.replace(OPEN_TAG_NAME_EXP,\n // This index will be parsed back out below.\n '$1 ' + RESULT_INDEX_ATTR + '=\"' + resultIndex + '\" ');\n }\n }\n\n // Render each group of markup with similar wrapping `nodeName`.\n var renderNodes = createNodesFromMarkup(markupListByNodeName.join(''), emptyFunction // Do nothing special with ', '
    '];\nvar trWrap = [3, '', '
    '];\n\nvar svgWrap = [1, '', ''];\n\nvar markupWrap = {\n '*': [1, '?

    '],\n\n 'area': [1, '', ''],\n 'col': [2, '', '
    '],\n 'legend': [1, '
    ', '
    '],\n 'param': [1, '', ''],\n 'tr': [2, '', '
    '],\n\n 'optgroup': selectWrap,\n 'option': selectWrap,\n\n 'caption': tableWrap,\n 'colgroup': tableWrap,\n 'tbody': tableWrap,\n 'tfoot': tableWrap,\n 'thead': tableWrap,\n\n 'td': trWrap,\n 'th': trWrap\n};\n\n// Initialize the SVG elements since we know they'll always need to be wrapped\n// consistently. If they are created inside a
    they will be initialized in\n// the wrong namespace (and will not display).\nvar svgElements = ['circle', 'clipPath', 'defs', 'ellipse', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'text', 'tspan'];\nsvgElements.forEach(function (nodeName) {\n markupWrap[nodeName] = svgWrap;\n shouldWrap[nodeName] = true;\n});\n\n/**\n * Gets the markup wrap configuration for the supplied `nodeName`.\n *\n * NOTE: This lazily detects which wraps are necessary for the current browser.\n *\n * @param {string} nodeName Lowercase `nodeName`.\n * @return {?array} Markup wrap configuration, if applicable.\n */\nfunction getMarkupWrap(nodeName) {\n !!!dummyNode ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Markup wrapping node not initialized') : invariant(false) : undefined;\n if (!markupWrap.hasOwnProperty(nodeName)) {\n nodeName = '*';\n }\n if (!shouldWrap.hasOwnProperty(nodeName)) {\n if (nodeName === '*') {\n dummyNode.innerHTML = '';\n } else {\n dummyNode.innerHTML = '<' + nodeName + '>';\n }\n shouldWrap[nodeName] = !dummyNode.firstChild;\n }\n return shouldWrap[nodeName] ? markupWrap[nodeName] : null;\n}\n\nmodule.exports = getMarkupWrap;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/fbjs/lib/getMarkupWrap.js\n// module id = 14\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule emptyFunction\n */\n\n\"use strict\";\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nfunction emptyFunction() {}\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/fbjs/lib/emptyFunction.js\n// module id = 15\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactMultiChildUpdateTypes\n */\n\n'use strict';\n\nvar keyMirror = require('fbjs/lib/keyMirror');\n\n/**\n * When a component's children are updated, a series of update configuration\n * objects are created in order to batch and serialize the required changes.\n *\n * Enumerates all the possible types of update configurations.\n *\n * @internal\n */\nvar ReactMultiChildUpdateTypes = keyMirror({\n INSERT_MARKUP: null,\n MOVE_EXISTING: null,\n REMOVE_NODE: null,\n SET_MARKUP: null,\n TEXT_CONTENT: null\n});\n\nmodule.exports = ReactMultiChildUpdateTypes;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactMultiChildUpdateTypes.js\n// module id = 16\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule keyMirror\n * @typechecks static-only\n */\n\n'use strict';\n\nvar invariant = require('./invariant');\n\n/**\n * Constructs an enumeration with keys equal to their value.\n *\n * For example:\n *\n * var COLORS = keyMirror({blue: null, red: null});\n * var myColor = COLORS.blue;\n * var isColorValid = !!COLORS[myColor];\n *\n * The last line could not be performed if the values of the generated enum were\n * not equal to their keys.\n *\n * Input: {key1: val1, key2: val2}\n * Output: {key1: key1, key2: key2}\n *\n * @param {object} obj\n * @return {object}\n */\nvar keyMirror = function (obj) {\n var ret = {};\n var key;\n !(obj instanceof Object && !Array.isArray(obj)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : undefined;\n for (key in obj) {\n if (!obj.hasOwnProperty(key)) {\n continue;\n }\n ret[key] = key;\n }\n return ret;\n};\n\nmodule.exports = keyMirror;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/fbjs/lib/keyMirror.js\n// module id = 17\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactPerf\n * @typechecks static-only\n */\n\n'use strict';\n\n/**\n * ReactPerf is a general AOP system designed to measure performance. This\n * module only has the hooks: see ReactDefaultPerf for the analysis tool.\n */\nvar ReactPerf = {\n /**\n * Boolean to enable/disable measurement. Set to false by default to prevent\n * accidental logging and perf loss.\n */\n enableMeasure: false,\n\n /**\n * Holds onto the measure function in use. By default, don't measure\n * anything, but we'll override this if we inject a measure function.\n */\n storedMeasure: _noMeasure,\n\n /**\n * @param {object} object\n * @param {string} objectName\n * @param {object} methodNames\n */\n measureMethods: function (object, objectName, methodNames) {\n if (process.env.NODE_ENV !== 'production') {\n for (var key in methodNames) {\n if (!methodNames.hasOwnProperty(key)) {\n continue;\n }\n object[key] = ReactPerf.measure(objectName, methodNames[key], object[key]);\n }\n }\n },\n\n /**\n * Use this to wrap methods you want to measure. Zero overhead in production.\n *\n * @param {string} objName\n * @param {string} fnName\n * @param {function} func\n * @return {function}\n */\n measure: function (objName, fnName, func) {\n if (process.env.NODE_ENV !== 'production') {\n var measuredFunc = null;\n var wrapper = function () {\n if (ReactPerf.enableMeasure) {\n if (!measuredFunc) {\n measuredFunc = ReactPerf.storedMeasure(objName, fnName, func);\n }\n return measuredFunc.apply(this, arguments);\n }\n return func.apply(this, arguments);\n };\n wrapper.displayName = objName + '_' + fnName;\n return wrapper;\n }\n return func;\n },\n\n injection: {\n /**\n * @param {function} measure\n */\n injectMeasure: function (measure) {\n ReactPerf.storedMeasure = measure;\n }\n }\n};\n\n/**\n * Simply passes through the measured function, without measuring it.\n *\n * @param {string} objName\n * @param {string} fnName\n * @param {function} func\n * @return {function}\n */\nfunction _noMeasure(objName, fnName, func) {\n return func;\n}\n\nmodule.exports = ReactPerf;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactPerf.js\n// module id = 18\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule setInnerHTML\n */\n\n/* globals MSApp */\n\n'use strict';\n\nvar ExecutionEnvironment = require('fbjs/lib/ExecutionEnvironment');\n\nvar WHITESPACE_TEST = /^[ \\r\\n\\t\\f]/;\nvar NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \\r\\n\\t\\f\\/>]/;\n\n/**\n * Set the innerHTML property of a node, ensuring that whitespace is preserved\n * even in IE8.\n *\n * @param {DOMElement} node\n * @param {string} html\n * @internal\n */\nvar setInnerHTML = function (node, html) {\n node.innerHTML = html;\n};\n\n// Win8 apps: Allow all html to be inserted\nif (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {\n setInnerHTML = function (node, html) {\n MSApp.execUnsafeLocalFunction(function () {\n node.innerHTML = html;\n });\n };\n}\n\nif (ExecutionEnvironment.canUseDOM) {\n // IE8: When updating a just created node with innerHTML only leading\n // whitespace is removed. When updating an existing node with innerHTML\n // whitespace in root TextNodes is also collapsed.\n // @see quirksmode.org/bugreports/archives/2004/11/innerhtml_and_t.html\n\n // Feature detection; only IE8 is known to behave improperly like this.\n var testElement = document.createElement('div');\n testElement.innerHTML = ' ';\n if (testElement.innerHTML === '') {\n setInnerHTML = function (node, html) {\n // Magic theory: IE8 supposedly differentiates between added and updated\n // nodes when processing innerHTML, innerHTML on updated nodes suffers\n // from worse whitespace behavior. Re-adding a node like this triggers\n // the initial and more favorable whitespace behavior.\n // TODO: What to do on a detached node?\n if (node.parentNode) {\n node.parentNode.replaceChild(node, node);\n }\n\n // We also implement a workaround for non-visible tags disappearing into\n // thin air on IE8, this only happens if there is no visible text\n // in-front of the non-visible tags. Piggyback on the whitespace fix\n // and simply check if any non-visible tags appear in the source.\n if (WHITESPACE_TEST.test(html) || html[0] === '<' && NONVISIBLE_TEST.test(html)) {\n // Recover leading whitespace by temporarily prepending any character.\n // \\uFEFF has the potential advantage of being zero-width/invisible.\n // UglifyJS drops U+FEFF chars when parsing, so use String.fromCharCode\n // in hopes that this is preserved even if \"\\uFEFF\" is transformed to\n // the actual Unicode character (by Babel, for example).\n // https://github.com/mishoo/UglifyJS2/blob/v2.4.20/lib/parse.js#L216\n node.innerHTML = String.fromCharCode(0xFEFF) + html;\n\n // deleteData leaves an empty `TextNode` which offsets the index of all\n // children. Definitely want to avoid this.\n var textNode = node.firstChild;\n if (textNode.data.length === 1) {\n node.removeChild(textNode);\n } else {\n textNode.deleteData(0, 1);\n }\n } else {\n node.innerHTML = html;\n }\n };\n }\n}\n\nmodule.exports = setInnerHTML;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/setInnerHTML.js\n// module id = 19\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule setTextContent\n */\n\n'use strict';\n\nvar ExecutionEnvironment = require('fbjs/lib/ExecutionEnvironment');\nvar escapeTextContentForBrowser = require('./escapeTextContentForBrowser');\nvar setInnerHTML = require('./setInnerHTML');\n\n/**\n * Set the textContent property of a node, ensuring that whitespace is preserved\n * even in IE8. innerText is a poor substitute for textContent and, among many\n * issues, inserts
    instead of the literal newline chars. innerHTML behaves\n * as it should.\n *\n * @param {DOMElement} node\n * @param {string} text\n * @internal\n */\nvar setTextContent = function (node, text) {\n node.textContent = text;\n};\n\nif (ExecutionEnvironment.canUseDOM) {\n if (!('textContent' in document.documentElement)) {\n setTextContent = function (node, text) {\n setInnerHTML(node, escapeTextContentForBrowser(text));\n };\n }\n}\n\nmodule.exports = setTextContent;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/setTextContent.js\n// module id = 20\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule escapeTextContentForBrowser\n */\n\n'use strict';\n\nvar ESCAPE_LOOKUP = {\n '&': '&',\n '>': '>',\n '<': '<',\n '\"': '"',\n '\\'': '''\n};\n\nvar ESCAPE_REGEX = /[&><\"']/g;\n\nfunction escaper(match) {\n return ESCAPE_LOOKUP[match];\n}\n\n/**\n * Escapes text to prevent scripting attacks.\n *\n * @param {*} text Text value to escape.\n * @return {string} An escaped string.\n */\nfunction escapeTextContentForBrowser(text) {\n return ('' + text).replace(ESCAPE_REGEX, escaper);\n}\n\nmodule.exports = escapeTextContentForBrowser;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/escapeTextContentForBrowser.js\n// module id = 21\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule DOMPropertyOperations\n * @typechecks static-only\n */\n\n'use strict';\n\nvar DOMProperty = require('./DOMProperty');\nvar ReactPerf = require('./ReactPerf');\n\nvar quoteAttributeValueForBrowser = require('./quoteAttributeValueForBrowser');\nvar warning = require('fbjs/lib/warning');\n\n// Simplified subset\nvar VALID_ATTRIBUTE_NAME_REGEX = /^[a-zA-Z_][\\w\\.\\-]*$/;\nvar illegalAttributeNameCache = {};\nvar validatedAttributeNameCache = {};\n\nfunction isAttributeNameSafe(attributeName) {\n if (validatedAttributeNameCache.hasOwnProperty(attributeName)) {\n return true;\n }\n if (illegalAttributeNameCache.hasOwnProperty(attributeName)) {\n return false;\n }\n if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {\n validatedAttributeNameCache[attributeName] = true;\n return true;\n }\n illegalAttributeNameCache[attributeName] = true;\n process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid attribute name: `%s`', attributeName) : undefined;\n return false;\n}\n\nfunction shouldIgnoreValue(propertyInfo, value) {\n return value == null || propertyInfo.hasBooleanValue && !value || propertyInfo.hasNumericValue && isNaN(value) || propertyInfo.hasPositiveNumericValue && value < 1 || propertyInfo.hasOverloadedBooleanValue && value === false;\n}\n\nif (process.env.NODE_ENV !== 'production') {\n var reactProps = {\n children: true,\n dangerouslySetInnerHTML: true,\n key: true,\n ref: true\n };\n var warnedProperties = {};\n\n var warnUnknownProperty = function (name) {\n if (reactProps.hasOwnProperty(name) && reactProps[name] || warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {\n return;\n }\n\n warnedProperties[name] = true;\n var lowerCasedName = name.toLowerCase();\n\n // data-* attributes should be lowercase; suggest the lowercase version\n var standardName = DOMProperty.isCustomAttribute(lowerCasedName) ? lowerCasedName : DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;\n\n // For now, only warn when we have a suggested correction. This prevents\n // logging too much when using transferPropsTo.\n process.env.NODE_ENV !== 'production' ? warning(standardName == null, 'Unknown DOM property %s. Did you mean %s?', name, standardName) : undefined;\n };\n}\n\n/**\n * Operations for dealing with DOM properties.\n */\nvar DOMPropertyOperations = {\n\n /**\n * Creates markup for the ID property.\n *\n * @param {string} id Unescaped ID.\n * @return {string} Markup string.\n */\n createMarkupForID: function (id) {\n return DOMProperty.ID_ATTRIBUTE_NAME + '=' + quoteAttributeValueForBrowser(id);\n },\n\n setAttributeForID: function (node, id) {\n node.setAttribute(DOMProperty.ID_ATTRIBUTE_NAME, id);\n },\n\n /**\n * Creates markup for a property.\n *\n * @param {string} name\n * @param {*} value\n * @return {?string} Markup string, or null if the property was invalid.\n */\n createMarkupForProperty: function (name, value) {\n var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;\n if (propertyInfo) {\n if (shouldIgnoreValue(propertyInfo, value)) {\n return '';\n }\n var attributeName = propertyInfo.attributeName;\n if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) {\n return attributeName + '=\"\"';\n }\n return attributeName + '=' + quoteAttributeValueForBrowser(value);\n } else if (DOMProperty.isCustomAttribute(name)) {\n if (value == null) {\n return '';\n }\n return name + '=' + quoteAttributeValueForBrowser(value);\n } else if (process.env.NODE_ENV !== 'production') {\n warnUnknownProperty(name);\n }\n return null;\n },\n\n /**\n * Creates markup for a custom property.\n *\n * @param {string} name\n * @param {*} value\n * @return {string} Markup string, or empty string if the property was invalid.\n */\n createMarkupForCustomAttribute: function (name, value) {\n if (!isAttributeNameSafe(name) || value == null) {\n return '';\n }\n return name + '=' + quoteAttributeValueForBrowser(value);\n },\n\n /**\n * Sets the value for a property on a node.\n *\n * @param {DOMElement} node\n * @param {string} name\n * @param {*} value\n */\n setValueForProperty: function (node, name, value) {\n var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;\n if (propertyInfo) {\n var mutationMethod = propertyInfo.mutationMethod;\n if (mutationMethod) {\n mutationMethod(node, value);\n } else if (shouldIgnoreValue(propertyInfo, value)) {\n this.deleteValueForProperty(node, name);\n } else if (propertyInfo.mustUseAttribute) {\n var attributeName = propertyInfo.attributeName;\n var namespace = propertyInfo.attributeNamespace;\n // `setAttribute` with objects becomes only `[object]` in IE8/9,\n // ('' + value) makes it output the correct toString()-value.\n if (namespace) {\n node.setAttributeNS(namespace, attributeName, '' + value);\n } else if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) {\n node.setAttribute(attributeName, '');\n } else {\n node.setAttribute(attributeName, '' + value);\n }\n } else {\n var propName = propertyInfo.propertyName;\n // Must explicitly cast values for HAS_SIDE_EFFECTS-properties to the\n // property type before comparing; only `value` does and is string.\n if (!propertyInfo.hasSideEffects || '' + node[propName] !== '' + value) {\n // Contrary to `setAttribute`, object properties are properly\n // `toString`ed by IE8/9.\n node[propName] = value;\n }\n }\n } else if (DOMProperty.isCustomAttribute(name)) {\n DOMPropertyOperations.setValueForAttribute(node, name, value);\n } else if (process.env.NODE_ENV !== 'production') {\n warnUnknownProperty(name);\n }\n },\n\n setValueForAttribute: function (node, name, value) {\n if (!isAttributeNameSafe(name)) {\n return;\n }\n if (value == null) {\n node.removeAttribute(name);\n } else {\n node.setAttribute(name, '' + value);\n }\n },\n\n /**\n * Deletes the value for a property on a node.\n *\n * @param {DOMElement} node\n * @param {string} name\n */\n deleteValueForProperty: function (node, name) {\n var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;\n if (propertyInfo) {\n var mutationMethod = propertyInfo.mutationMethod;\n if (mutationMethod) {\n mutationMethod(node, undefined);\n } else if (propertyInfo.mustUseAttribute) {\n node.removeAttribute(propertyInfo.attributeName);\n } else {\n var propName = propertyInfo.propertyName;\n var defaultValue = DOMProperty.getDefaultValueForProperty(node.nodeName, propName);\n if (!propertyInfo.hasSideEffects || '' + node[propName] !== defaultValue) {\n node[propName] = defaultValue;\n }\n }\n } else if (DOMProperty.isCustomAttribute(name)) {\n node.removeAttribute(name);\n } else if (process.env.NODE_ENV !== 'production') {\n warnUnknownProperty(name);\n }\n }\n\n};\n\nReactPerf.measureMethods(DOMPropertyOperations, 'DOMPropertyOperations', {\n setValueForProperty: 'setValueForProperty',\n setValueForAttribute: 'setValueForAttribute',\n deleteValueForProperty: 'deleteValueForProperty'\n});\n\nmodule.exports = DOMPropertyOperations;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/DOMPropertyOperations.js\n// module id = 22\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule DOMProperty\n * @typechecks static-only\n */\n\n'use strict';\n\nvar invariant = require('fbjs/lib/invariant');\n\nfunction checkMask(value, bitmask) {\n return (value & bitmask) === bitmask;\n}\n\nvar DOMPropertyInjection = {\n /**\n * Mapping from normalized, camelcased property names to a configuration that\n * specifies how the associated DOM property should be accessed or rendered.\n */\n MUST_USE_ATTRIBUTE: 0x1,\n MUST_USE_PROPERTY: 0x2,\n HAS_SIDE_EFFECTS: 0x4,\n HAS_BOOLEAN_VALUE: 0x8,\n HAS_NUMERIC_VALUE: 0x10,\n HAS_POSITIVE_NUMERIC_VALUE: 0x20 | 0x10,\n HAS_OVERLOADED_BOOLEAN_VALUE: 0x40,\n\n /**\n * Inject some specialized knowledge about the DOM. This takes a config object\n * with the following properties:\n *\n * isCustomAttribute: function that given an attribute name will return true\n * if it can be inserted into the DOM verbatim. Useful for data-* or aria-*\n * attributes where it's impossible to enumerate all of the possible\n * attribute names,\n *\n * Properties: object mapping DOM property name to one of the\n * DOMPropertyInjection constants or null. If your attribute isn't in here,\n * it won't get written to the DOM.\n *\n * DOMAttributeNames: object mapping React attribute name to the DOM\n * attribute name. Attribute names not specified use the **lowercase**\n * normalized name.\n *\n * DOMAttributeNamespaces: object mapping React attribute name to the DOM\n * attribute namespace URL. (Attribute names not specified use no namespace.)\n *\n * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.\n * Property names not specified use the normalized name.\n *\n * DOMMutationMethods: Properties that require special mutation methods. If\n * `value` is undefined, the mutation method should unset the property.\n *\n * @param {object} domPropertyConfig the config as described above.\n */\n injectDOMPropertyConfig: function (domPropertyConfig) {\n var Injection = DOMPropertyInjection;\n var Properties = domPropertyConfig.Properties || {};\n var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {};\n var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {};\n var DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {};\n var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};\n\n if (domPropertyConfig.isCustomAttribute) {\n DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute);\n }\n\n for (var propName in Properties) {\n !!DOMProperty.properties.hasOwnProperty(propName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'injectDOMPropertyConfig(...): You\\'re trying to inject DOM property ' + '\\'%s\\' which has already been injected. You may be accidentally ' + 'injecting the same DOM property config twice, or you may be ' + 'injecting two configs that have conflicting property names.', propName) : invariant(false) : undefined;\n\n var lowerCased = propName.toLowerCase();\n var propConfig = Properties[propName];\n\n var propertyInfo = {\n attributeName: lowerCased,\n attributeNamespace: null,\n propertyName: propName,\n mutationMethod: null,\n\n mustUseAttribute: checkMask(propConfig, Injection.MUST_USE_ATTRIBUTE),\n mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),\n hasSideEffects: checkMask(propConfig, Injection.HAS_SIDE_EFFECTS),\n hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),\n hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),\n hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),\n hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)\n };\n\n !(!propertyInfo.mustUseAttribute || !propertyInfo.mustUseProperty) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'DOMProperty: Cannot require using both attribute and property: %s', propName) : invariant(false) : undefined;\n !(propertyInfo.mustUseProperty || !propertyInfo.hasSideEffects) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'DOMProperty: Properties that have side effects must use property: %s', propName) : invariant(false) : undefined;\n !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or ' + 'numeric value, but not a combination: %s', propName) : invariant(false) : undefined;\n\n if (process.env.NODE_ENV !== 'production') {\n DOMProperty.getPossibleStandardName[lowerCased] = propName;\n }\n\n if (DOMAttributeNames.hasOwnProperty(propName)) {\n var attributeName = DOMAttributeNames[propName];\n propertyInfo.attributeName = attributeName;\n if (process.env.NODE_ENV !== 'production') {\n DOMProperty.getPossibleStandardName[attributeName] = propName;\n }\n }\n\n if (DOMAttributeNamespaces.hasOwnProperty(propName)) {\n propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName];\n }\n\n if (DOMPropertyNames.hasOwnProperty(propName)) {\n propertyInfo.propertyName = DOMPropertyNames[propName];\n }\n\n if (DOMMutationMethods.hasOwnProperty(propName)) {\n propertyInfo.mutationMethod = DOMMutationMethods[propName];\n }\n\n DOMProperty.properties[propName] = propertyInfo;\n }\n }\n};\nvar defaultValueCache = {};\n\n/**\n * DOMProperty exports lookup objects that can be used like functions:\n *\n * > DOMProperty.isValid['id']\n * true\n * > DOMProperty.isValid['foobar']\n * undefined\n *\n * Although this may be confusing, it performs better in general.\n *\n * @see http://jsperf.com/key-exists\n * @see http://jsperf.com/key-missing\n */\nvar DOMProperty = {\n\n ID_ATTRIBUTE_NAME: 'data-reactid',\n\n /**\n * Map from property \"standard name\" to an object with info about how to set\n * the property in the DOM. Each object contains:\n *\n * attributeName:\n * Used when rendering markup or with `*Attribute()`.\n * attributeNamespace\n * propertyName:\n * Used on DOM node instances. (This includes properties that mutate due to\n * external factors.)\n * mutationMethod:\n * If non-null, used instead of the property or `setAttribute()` after\n * initial render.\n * mustUseAttribute:\n * Whether the property must be accessed and mutated using `*Attribute()`.\n * (This includes anything that fails ` in `.)\n * mustUseProperty:\n * Whether the property must be accessed and mutated as an object property.\n * hasSideEffects:\n * Whether or not setting a value causes side effects such as triggering\n * resources to be loaded or text selection changes. If true, we read from\n * the DOM before updating to ensure that the value is only set if it has\n * changed.\n * hasBooleanValue:\n * Whether the property should be removed when set to a falsey value.\n * hasNumericValue:\n * Whether the property must be numeric or parse as a numeric and should be\n * removed when set to a falsey value.\n * hasPositiveNumericValue:\n * Whether the property must be positive numeric or parse as a positive\n * numeric and should be removed when set to a falsey value.\n * hasOverloadedBooleanValue:\n * Whether the property can be used as a flag as well as with a value.\n * Removed when strictly equal to false; present without a value when\n * strictly equal to true; present with a value otherwise.\n */\n properties: {},\n\n /**\n * Mapping from lowercase property names to the properly cased version, used\n * to warn in the case of missing properties. Available only in __DEV__.\n * @type {Object}\n */\n getPossibleStandardName: process.env.NODE_ENV !== 'production' ? {} : null,\n\n /**\n * All of the isCustomAttribute() functions that have been injected.\n */\n _isCustomAttributeFunctions: [],\n\n /**\n * Checks whether a property name is a custom attribute.\n * @method\n */\n isCustomAttribute: function (attributeName) {\n for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) {\n var isCustomAttributeFn = DOMProperty._isCustomAttributeFunctions[i];\n if (isCustomAttributeFn(attributeName)) {\n return true;\n }\n }\n return false;\n },\n\n /**\n * Returns the default property value for a DOM property (i.e., not an\n * attribute). Most default values are '' or false, but not all. Worse yet,\n * some (in particular, `type`) vary depending on the type of element.\n *\n * TODO: Is it better to grab all the possible properties when creating an\n * element to avoid having to create the same element twice?\n */\n getDefaultValueForProperty: function (nodeName, prop) {\n var nodeDefaults = defaultValueCache[nodeName];\n var testElement;\n if (!nodeDefaults) {\n defaultValueCache[nodeName] = nodeDefaults = {};\n }\n if (!(prop in nodeDefaults)) {\n testElement = document.createElement(nodeName);\n nodeDefaults[prop] = testElement[prop];\n }\n return nodeDefaults[prop];\n },\n\n injection: DOMPropertyInjection\n};\n\nmodule.exports = DOMProperty;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/DOMProperty.js\n// module id = 23\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule quoteAttributeValueForBrowser\n */\n\n'use strict';\n\nvar escapeTextContentForBrowser = require('./escapeTextContentForBrowser');\n\n/**\n * Escapes attribute value to prevent scripting attacks.\n *\n * @param {*} value Value to escape.\n * @return {string} An escaped string.\n */\nfunction quoteAttributeValueForBrowser(value) {\n return '\"' + escapeTextContentForBrowser(value) + '\"';\n}\n\nmodule.exports = quoteAttributeValueForBrowser;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/quoteAttributeValueForBrowser.js\n// module id = 24\n// module chunks = 0","/**\n * Copyright 2014-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule warning\n */\n\n'use strict';\n\nvar emptyFunction = require('./emptyFunction');\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = emptyFunction;\n\nif (process.env.NODE_ENV !== 'production') {\n warning = function (condition, format) {\n for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\n\n if (!condition) {\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n }\n };\n}\n\nmodule.exports = warning;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/fbjs/lib/warning.js\n// module id = 25\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactComponentBrowserEnvironment\n */\n\n'use strict';\n\nvar ReactDOMIDOperations = require('./ReactDOMIDOperations');\nvar ReactMount = require('./ReactMount');\n\n/**\n * Abstracts away all functionality of the reconciler that requires knowledge of\n * the browser context. TODO: These callers should be refactored to avoid the\n * need for this injection.\n */\nvar ReactComponentBrowserEnvironment = {\n\n processChildrenUpdates: ReactDOMIDOperations.dangerouslyProcessChildrenUpdates,\n\n replaceNodeWithMarkupByID: ReactDOMIDOperations.dangerouslyReplaceNodeWithMarkupByID,\n\n /**\n * If a particular environment requires that some resources be cleaned up,\n * specify this in the injected Mixin. In the DOM, we would likely want to\n * purge any cached node ID lookups.\n *\n * @private\n */\n unmountIDFromEnvironment: function (rootNodeID) {\n ReactMount.purgeID(rootNodeID);\n }\n\n};\n\nmodule.exports = ReactComponentBrowserEnvironment;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactComponentBrowserEnvironment.js\n// module id = 26\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactDOMIDOperations\n * @typechecks static-only\n */\n\n'use strict';\n\nvar DOMChildrenOperations = require('./DOMChildrenOperations');\nvar DOMPropertyOperations = require('./DOMPropertyOperations');\nvar ReactMount = require('./ReactMount');\nvar ReactPerf = require('./ReactPerf');\n\nvar invariant = require('fbjs/lib/invariant');\n\n/**\n * Errors for properties that should not be updated with `updatePropertyByID()`.\n *\n * @type {object}\n * @private\n */\nvar INVALID_PROPERTY_ERRORS = {\n dangerouslySetInnerHTML: '`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.',\n style: '`style` must be set using `updateStylesByID()`.'\n};\n\n/**\n * Operations used to process updates to DOM nodes.\n */\nvar ReactDOMIDOperations = {\n\n /**\n * Updates a DOM node with new property values. This should only be used to\n * update DOM properties in `DOMProperty`.\n *\n * @param {string} id ID of the node to update.\n * @param {string} name A valid property name, see `DOMProperty`.\n * @param {*} value New value of the property.\n * @internal\n */\n updatePropertyByID: function (id, name, value) {\n var node = ReactMount.getNode(id);\n !!INVALID_PROPERTY_ERRORS.hasOwnProperty(name) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'updatePropertyByID(...): %s', INVALID_PROPERTY_ERRORS[name]) : invariant(false) : undefined;\n\n // If we're updating to null or undefined, we should remove the property\n // from the DOM node instead of inadvertantly setting to a string. This\n // brings us in line with the same behavior we have on initial render.\n if (value != null) {\n DOMPropertyOperations.setValueForProperty(node, name, value);\n } else {\n DOMPropertyOperations.deleteValueForProperty(node, name);\n }\n },\n\n /**\n * Replaces a DOM node that exists in the document with markup.\n *\n * @param {string} id ID of child to be replaced.\n * @param {string} markup Dangerous markup to inject in place of child.\n * @internal\n * @see {Danger.dangerouslyReplaceNodeWithMarkup}\n */\n dangerouslyReplaceNodeWithMarkupByID: function (id, markup) {\n var node = ReactMount.getNode(id);\n DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup(node, markup);\n },\n\n /**\n * Updates a component's children by processing a series of updates.\n *\n * @param {array} updates List of update configurations.\n * @param {array} markup List of markup strings.\n * @internal\n */\n dangerouslyProcessChildrenUpdates: function (updates, markup) {\n for (var i = 0; i < updates.length; i++) {\n updates[i].parentNode = ReactMount.getNode(updates[i].parentID);\n }\n DOMChildrenOperations.processUpdates(updates, markup);\n }\n};\n\nReactPerf.measureMethods(ReactDOMIDOperations, 'ReactDOMIDOperations', {\n dangerouslyReplaceNodeWithMarkupByID: 'dangerouslyReplaceNodeWithMarkupByID',\n dangerouslyProcessChildrenUpdates: 'dangerouslyProcessChildrenUpdates'\n});\n\nmodule.exports = ReactDOMIDOperations;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/react/lib/ReactDOMIDOperations.js\n// module id = 27\n// module chunks = 0","/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactMount\n */\n\n'use strict';\n\nvar DOMProperty = require('./DOMProperty');\nvar ReactBrowserEventEmitter = require('./ReactBrowserEventEmitter');\nvar ReactCurrentOwner = require('./ReactCurrentOwner');\nvar ReactDOMFeatureFlags = require('./ReactDOMFeatureFlags');\nvar ReactElement = require('./ReactElement');\nvar ReactEmptyComponentRegistry = require('./ReactEmptyComponentRegistry');\nvar ReactInstanceHandles = require('./ReactInstanceHandles');\nvar ReactInstanceMap = require('./ReactInstanceMap');\nvar ReactMarkupChecksum = require('./ReactMarkupChecksum');\nvar ReactPerf = require('./ReactPerf');\nvar ReactReconciler = require('./ReactReconciler');\nvar ReactUpdateQueue = require('./ReactUpdateQueue');\nvar ReactUpdates = require('./ReactUpdates');\n\nvar assign = require('./Object.assign');\nvar emptyObject = require('fbjs/lib/emptyObject');\nvar containsNode = require('fbjs/lib/containsNode');\nvar instantiateReactComponent = require('./instantiateReactComponent');\nvar invariant = require('fbjs/lib/invariant');\nvar setInnerHTML = require('./setInnerHTML');\nvar shouldUpdateReactComponent = require('./shouldUpdateReactComponent');\nvar validateDOMNesting = require('./validateDOMNesting');\nvar warning = require('fbjs/lib/warning');\n\nvar ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;\nvar nodeCache = {};\n\nvar ELEMENT_NODE_TYPE = 1;\nvar DOC_NODE_TYPE = 9;\nvar DOCUMENT_FRAGMENT_NODE_TYPE = 11;\n\nvar ownerDocumentContextKey = '__ReactMount_ownerDocument$' + Math.random().toString(36).slice(2);\n\n/** Mapping from reactRootID to React component instance. */\nvar instancesByReactRootID = {};\n\n/** Mapping from reactRootID to `container` nodes. */\nvar containersByReactRootID = {};\n\nif (process.env.NODE_ENV !== 'production') {\n /** __DEV__-only mapping from reactRootID to root elements. */\n var rootElementsByReactRootID = {};\n}\n\n// Used to store breadth-first search state in findComponentRoot.\nvar findComponentRootReusableArray = [];\n\n/**\n * Finds the index of the first character\n * that's not common between the two given strings.\n *\n * @return {number} the index of the character where the strings diverge\n */\nfunction firstDifferenceIndex(string1, string2) {\n var minLen = Math.min(string1.length, string2.length);\n for (var i = 0; i < minLen; i++) {\n if (string1.charAt(i) !== string2.charAt(i)) {\n return i;\n }\n }\n return string1.length === string2.length ? -1 : minLen;\n}\n\n/**\n * @param {DOMElement|DOMDocument} container DOM element that may contain\n * a React component\n * @return {?*} DOM element that may have the reactRoot ID, or null.\n */\nfunction getReactRootElementInContainer(container) {\n if (!container) {\n return null;\n }\n\n if (container.nodeType === DOC_NODE_TYPE) {\n return container.documentElement;\n } else {\n return container.firstChild;\n }\n}\n\n/**\n * @param {DOMElement} container DOM element that may contain a React component.\n * @return {?string} A \"reactRoot\" ID, if a React component is rendered.\n */\nfunction getReactRootID(container) {\n var rootElement = getReactRootElementInContainer(container);\n return rootElement && ReactMount.getID(rootElement);\n}\n\n/**\n * Accessing node[ATTR_NAME] or calling getAttribute(ATTR_NAME) on a form\n * element can return its control whose name or ID equals ATTR_NAME. All\n * DOM nodes support `getAttributeNode` but this can also get called on\n * other objects so just return '' if we're given something other than a\n * DOM node (such as window).\n *\n * @param {?DOMElement|DOMWindow|DOMDocument|DOMTextNode} node DOM node.\n * @return {string} ID of the supplied `domNode`.\n */\nfunction getID(node) {\n var id = internalGetID(node);\n if (id) {\n if (nodeCache.hasOwnProperty(id)) {\n var cached = nodeCache[id];\n if (cached !== node) {\n !!isValid(cached, id) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactMount: Two valid but unequal nodes with the same `%s`: %s', ATTR_NAME, id) : invariant(false) : undefined;\n\n nodeCache[id] = node;\n }\n } else {\n nodeCache[id] = node;\n }\n }\n\n return id;\n}\n\nfunction internalGetID(node) {\n // If node is something like a window, document, or text node, none of\n // which support attributes or a .getAttribute method, gracefully return\n // the empty string, as if the attribute were missing.\n return node && node.getAttribute && node.getAttribute(ATTR_NAME) || '';\n}\n\n/**\n * Sets the React-specific ID of the given node.\n *\n * @param {DOMElement} node The DOM node whose ID will be set.\n * @param {string} id The value of the ID attribute.\n */\nfunction setID(node, id) {\n var oldID = internalGetID(node);\n if (oldID !== id) {\n delete nodeCache[oldID];\n }\n node.setAttribute(ATTR_NAME, id);\n nodeCache[id] = node;\n}\n\n/**\n * Finds the node with the supplied React-generated DOM ID.\n *\n * @param {string} id A React-generated DOM ID.\n * @return {DOMElement} DOM node with the suppled `id`.\n * @internal\n */\nfunction getNode(id) {\n if (!nodeCache.hasOwnProperty(id) || !isValid(nodeCache[id], id)) {\n nodeCache[id] = ReactMount.findReactNodeByID(id);\n }\n return nodeCache[id];\n}\n\n/**\n * Finds the node with the supplied public React instance.\n *\n * @param {*} instance A public React instance.\n * @return {?DOMElement} DOM node with the suppled `id`.\n * @internal\n */\nfunction getNodeFromInstance(instance) {\n var id = ReactInstanceMap.get(instance)._rootNodeID;\n if (ReactEmptyComponentRegistry.isNullComponentID(id)) {\n return null;\n }\n if (!nodeCache.hasOwnProperty(id) || !isValid(nodeCache[id], id)) {\n nodeCache[id] = ReactMount.findReactNodeByID(id);\n }\n return nodeCache[id];\n}\n\n/**\n * A node is \"valid\" if it is contained by a currently mounted container.\n *\n * This means that the node does not have to be contained by a document in\n * order to be considered valid.\n *\n * @param {?DOMElement} node The candidate DOM node.\n * @param {string} id The expected ID of the node.\n * @return {boolean} Whether the node is contained by a mounted container.\n */\nfunction isValid(node, id) {\n if (node) {\n !(internalGetID(node) === id) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactMount: Unexpected modification of `%s`', ATTR_NAME) : invariant(false) : undefined;\n\n var container = ReactMount.findReactContainerForID(id);\n if (container && containsNode(container, node)) {\n return true;\n }\n }\n\n return false;\n}\n\n/**\n * Causes the cache to forget about one React-specific ID.\n *\n * @param {string} id The ID to forget.\n */\nfunction purgeID(id) {\n delete nodeCache[id];\n}\n\nvar deepestNodeSoFar = null;\nfunction findDeepestCachedAncestorImpl(ancestorID) {\n var ancestor = nodeCache[ancestorID];\n if (ancestor && isValid(ancestor, ancestorID)) {\n deepestNodeSoFar = ancestor;\n } else {\n // This node isn't populated in the cache, so presumably none of its\n // descendants are. Break out of the loop.\n return false;\n }\n}\n\n/**\n * Return the deepest cached node whose ID is a prefix of `targetID`.\n */\nfunction findDeepestCachedAncestor(targetID) {\n deepestNodeSoFar = null;\n ReactInstanceHandles.traverseAncestors(targetID, findDeepestCachedAncestorImpl);\n\n var foundNode = deepestNodeSoFar;\n deepestNodeSoFar = null;\n return foundNode;\n}\n\n/**\n * Mounts this component and inserts it into the DOM.\n *\n * @param {ReactComponent} componentInstance The instance to mount.\n * @param {string} rootID DOM ID of the root node.\n * @param {DOMElement} container DOM element to mount into.\n * @param {ReactReconcileTransaction} transaction\n * @param {boolean} shouldReuseMarkup If true, do not insert markup\n */\nfunction mountComponentIntoNode(componentInstance, rootID, container, transaction, shouldReuseMarkup, context) {\n if (ReactDOMFeatureFlags.useCreateElement) {\n context = assign({}, context);\n if (container.nodeType === DOC_NODE_TYPE) {\n context[ownerDocumentContextKey] = container;\n } else {\n context[ownerDocumentContextKey] = container.ownerDocument;\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n if (context === emptyObject) {\n context = {};\n }\n var tag = container.nodeName.toLowerCase();\n context[validateDOMNesting.ancestorInfoContextKey] = validateDOMNesting.updatedAncestorInfo(null, tag, null);\n }\n var markup = ReactReconciler.mountComponent(componentInstance, rootID, transaction, context);\n componentInstance._renderedComponent._topLevelWrapper = componentInstance;\n ReactMount._mountImageIntoNode(markup, container, shouldReuseMarkup, transaction);\n}\n\n/**\n * Batched mount.\n *\n * @param {ReactComponent} componentInstance The instance to mount.\n * @param {string} rootID DOM ID of the root node.\n * @param {DOMElement} container DOM element to mount into.\n * @param {boolean} shouldReuseMarkup If true, do not insert markup\n */\nfunction batchedMountComponentIntoNode(componentInstance, rootID, container, shouldReuseMarkup, context) {\n var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(\n /* forceHTML */shouldReuseMarkup);\n transaction.perform(mountComponentIntoNode, null, componentInstance, rootID, container, transaction, shouldReuseMarkup, context);\n ReactUpdates.ReactReconcileTransaction.release(transaction);\n}\n\n/**\n * Unmounts a component and removes it from the DOM.\n *\n * @param {ReactComponent} instance React component instance.\n * @param {DOMElement} container DOM element to unmount from.\n * @final\n * @internal\n * @see {ReactMount.unmountComponentAtNode}\n */\nfunction unmountComponentFromNode(instance, container) {\n ReactReconciler.unmountComponent(instance);\n\n if (container.nodeType === DOC_NODE_TYPE) {\n container = container.documentElement;\n }\n\n // http://jsperf.com/emptying-a-node\n while (container.lastChild) {\n container.removeChild(container.lastChild);\n }\n}\n\n/**\n * True if the supplied DOM node has a direct React-rendered child that is\n * not a React root element. Useful for warning in `render`,\n * `unmountComponentAtNode`, etc.\n *\n * @param {?DOMElement} node The candidate DOM node.\n * @return {boolean} True if the DOM element contains a direct child that was\n * rendered by React but is not a root element.\n * @internal\n */\nfunction hasNonRootReactChild(node) {\n var reactRootID = getReactRootID(node);\n return reactRootID ? reactRootID !== ReactInstanceHandles.getReactRootIDFromNodeID(reactRootID) : false;\n}\n\n/**\n * Returns the first (deepest) ancestor of a node which is rendered by this copy\n * of React.\n */\nfunction findFirstReactDOMImpl(node) {\n // This node might be from another React instance, so we make sure not to\n // examine the node cache here\n for (; node && node.parentNode !== node; node = node.parentNode) {\n if (node.nodeType !== 1) {\n // Not a DOMElement, therefore not a React component\n continue;\n }\n var nodeID = internalGetID(node);\n if (!nodeID) {\n continue;\n }\n var reactRootID = ReactInstanceHandles.getReactRootIDFromNodeID(nodeID);\n\n // If containersByReactRootID contains the container we find by crawling up\n // the tree, we know that this instance of React rendered the node.\n // nb. isValid's strategy (with containsNode) does not work because render\n // trees may be nested and we don't want a false positive in that case.\n var current = node;\n var lastID;\n do {\n lastID = internalGetID(current);\n current = current.parentNode;\n if (current == null) {\n // The passed-in node has been detached from the container it was\n // originally rendered into.\n return null;\n }\n } while (lastID !== reactRootID);\n\n if (current === containersByReactRootID[reactRootID]) {\n return node;\n }\n }\n return null;\n}\n\n/**\n * Temporary (?) hack so that we can store all top-level pending updates on\n * composites instead of having to worry about different types of components\n * here.\n */\nvar TopLevelWrapper = function () {};\nTopLevelWrapper.prototype.isReactComponent = {};\nif (process.env.NODE_ENV !== 'production') {\n TopLevelWrapper.displayName = 'TopLevelWrapper';\n}\nTopLevelWrapper.prototype.render = function () {\n // this.props is actually a ReactElement\n return this.props;\n};\n\n/**\n * Mounting is the process of initializing a React component by creating its\n * representative DOM elements and inserting them into a supplied `container`.\n * Any prior content inside `container` is destroyed in the process.\n *\n * ReactMount.render(\n * component,\n * document.getElementById('container')\n * );\n *\n *
    <-- Supplied `container`.\n *
    <-- Rendered reactRoot of React\n * // ... component.\n *
    \n *
    \n *\n * Inside of `container`, the first element rendered is the \"reactRoot\".\n */\nvar ReactMount = {\n\n TopLevelWrapper: TopLevelWrapper,\n\n /** Exposed for debugging purposes **/\n _instancesByReactRootID: instancesByReactRootID,\n\n /**\n * This is a hook provided to support rendering React components while\n * ensuring that the apparent scroll position of its `container` does not\n * change.\n *\n * @param {DOMElement} container The `container` being rendered into.\n * @param {function} renderCallback This must be called once to do the render.\n */\n scrollMonitor: function (container, renderCallback) {\n renderCallback();\n },\n\n /**\n * Take a component that's already mounted into the DOM and replace its props\n * @param {ReactComponent} prevComponent component instance already in the DOM\n * @param {ReactElement} nextElement component instance to render\n * @param {DOMElement} container container to render into\n * @param {?function} callback function triggered on completion\n */\n _updateRootComponent: function (prevComponent, nextElement, container, callback) {\n ReactMount.scrollMonitor(container, function () {\n ReactUpdateQueue.enqueueElementInternal(prevComponent, nextElement);\n if (callback) {\n ReactUpdateQueue.enqueueCallbackInternal(prevComponent, callback);\n }\n });\n\n if (process.env.NODE_ENV !== 'production') {\n // Record the root element in case it later gets transplanted.\n rootElementsByReactRootID[getReactRootID(container)] = getReactRootElementInContainer(container);\n }\n\n return prevComponent;\n },\n\n /**\n * Register a component into the instance map and starts scroll value\n * monitoring\n * @param {ReactComponent} nextComponent component instance to render\n * @param {DOMElement} container container to render into\n * @return {string} reactRoot ID prefix\n */\n _registerComponent: function (nextComponent, container) {\n !(container && (container.nodeType === ELEMENT_NODE_TYPE || container.nodeType === DOC_NODE_TYPE || container.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '_registerComponent(...): Target container is not a DOM element.') : invariant(false) : undefined;\n\n ReactBrowserEventEmitter.ensureScrollValueMonitoring();\n\n var reactRootID = ReactMount.registerContainer(container);\n instancesByReactRootID[reactRootID] = nextComponent;\n return reactRootID;\n },\n\n /**\n * Render a new component into the DOM.\n * @param {ReactElement} nextElement element to render\n * @param {DOMElement} container container to render into\n * @param {boolean} shouldReuseMarkup if we should skip the markup insertion\n * @return {ReactComponent} nextComponent\n */\n _renderNewRootComponent: function (nextElement, container, shouldReuseMarkup, context) {\n // Various parts of our code (such as ReactCompositeComponent's\n // _renderValidatedComponent) assume that calls to render aren't nested;\n // verify that that's the case.\n process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '_renderNewRootComponent(): Render methods should be a pure function ' + 'of props and state; triggering nested component updates from ' + 'render is not allowed. If necessary, trigger nested updates in ' + 'componentDidUpdate. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : undefined;\n\n var componentInstance = instantiateReactComponent(nextElement, null);\n var reactRootID = ReactMount._registerComponent(componentInstance, container);\n\n // The initial render is synchronous but any updates that happen during\n // rendering, in componentWillMount or componentDidMount, will be batched\n // according to the current batching strategy.\n\n ReactUpdates.batchedUpdates(batchedMountComponentIntoNode, componentInstance, reactRootID, container, shouldReuseMarkup, context);\n\n if (process.env.NODE_ENV !== 'production') {\n // Record the root element in case it later gets transplanted.\n rootElementsByReactRootID[reactRootID] = getReactRootElementInContainer(container);\n }\n\n return componentInstance;\n },\n\n /**\n * Renders a React component into the DOM in the supplied `container`.\n *\n * If the React component was previously rendered into `container`, this will\n * perform an update on it and only mutate the DOM as necessary to reflect the\n * latest React component.\n *\n * @param {ReactComponent} parentComponent The conceptual parent of this render tree.\n * @param {ReactElement} nextElement Component element to render.\n * @param {DOMElement} container DOM element to render into.\n * @param {?function} callback function triggered on completion\n * @return {ReactComponent} Component instance rendered in `container`.\n */\n renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) {\n !(parentComponent != null && parentComponent._reactInternalInstance != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'parentComponent must be a valid React Component') : invariant(false) : undefined;\n return ReactMount._renderSubtreeIntoContainer(parentComponent, nextElement, container, callback);\n },\n\n _renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) {\n !ReactElement.isValidElement(nextElement) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactDOM.render(): Invalid component element.%s', typeof nextElement === 'string' ? ' Instead of passing an element string, make sure to instantiate ' + 'it by passing it to React.createElement.' : typeof nextElement === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' :\n // Check if it quacks like an element\n nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : invariant(false) : undefined;\n\n process.env.NODE_ENV !== 'production' ? warning(!container || !container.tagName || container.tagName.toUpperCase() !== 'BODY', 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : undefined;\n\n var nextWrappedElement = new ReactElement(TopLevelWrapper, null, null, null, null, null, nextElement);\n\n var prevComponent = instancesByReactRootID[getReactRootID(container)];\n\n if (prevComponent) {\n var prevWrappedElement = prevComponent._currentElement;\n var prevElement = prevWrappedElement.props;\n if (shouldUpdateReactComponent(prevElement, nextElement)) {\n var publicInst = prevComponent._renderedComponent.getPublicInstance();\n var updatedCallback = callback && function () {\n callback.call(publicInst);\n };\n ReactMount._updateRootComponent(prevComponent, nextWrappedElement, container, updatedCallback);\n return publicInst;\n } else {\n ReactMount.unmountComponentAtNode(container);\n }\n }\n\n var reactRootElement = getReactRootElementInContainer(container);\n var containerHasReactMarkup = reactRootElement && !!internalGetID(reactRootElement);\n var containerHasNonRootReactChild = hasNonRootReactChild(container);\n\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== 'production' ? warning(!containerHasNonRootReactChild, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : undefined;\n\n if (!containerHasReactMarkup || reactRootElement.nextSibling) {\n var rootElementSibling = reactRootElement;\n while (rootElementSibling) {\n if (internalGetID(rootElementSibling)) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.') : undefined;\n break;\n }\n rootElementSibling = rootElementSibling.nextSibling;\n }\n }\n }\n\n var shouldReuseMarkup = containerHasReactMarkup && !prevComponent && !containerHasNonRootReactChild;\n var component = ReactMount._renderNewRootComponent(nextWrappedElement, container, shouldReuseMarkup, parentComponent != null ? parentComponent._reactInternalInstance._processChildContext(parentComponent._reactInternalInstance._context) : emptyObject)._renderedComponent.getPublicInstance();\n if (callback) {\n callback.call(component);\n }\n return component;\n },\n\n /**\n * Renders a React component into the DOM in the supplied `container`.\n *\n * If the React component was previously rendered into `container`, this will\n * perform an update on it and only mutate the DOM as necessary to reflect the\n * latest React component.\n *\n * @param {ReactElement} nextElement Component element to render.\n * @param {DOMElement} container DOM element to render into.\n * @param {?function} callback function triggered on completion\n * @return {ReactComponent} Component instance rendered in `container`.\n */\n render: function (nextElement, container, callback) {\n return ReactMount._renderSubtreeIntoContainer(null, nextElement, container, callback);\n },\n\n /**\n * Registers a container node into which React components will be rendered.\n * This also creates the \"reactRoot\" ID that will be assigned to the element\n * rendered within.\n *\n * @param {DOMElement} container DOM element to register as a container.\n * @return {string} The \"reactRoot\" ID of elements rendered within.\n */\n registerContainer: function (container) {\n var reactRootID = getReactRootID(container);\n if (reactRootID) {\n // If one exists, make sure it is a valid \"reactRoot\" ID.\n reactRootID = ReactInstanceHandles.getReactRootIDFromNodeID(reactRootID);\n }\n if (!reactRootID) {\n // No valid \"reactRoot\" ID found, create one.\n reactRootID = ReactInstanceHandles.createReactRootID();\n }\n containersByReactRootID[reactRootID] = container;\n return reactRootID;\n },\n\n /**\n * Unmounts and destroys the React component rendered in the `container`.\n *\n * @param {DOMElement} container DOM element containing a React component.\n * @return {boolean} True if a component was found in and unmounted from\n * `container`\n */\n unmountComponentAtNode: function (container) {\n // Various parts of our code (such as ReactCompositeComponent's\n // _renderValidatedComponent) assume that calls to render aren't nested;\n // verify that that's the case. (Strictly speaking, unmounting won't cause a\n // render but we still don't expect to be in a render call here.)\n process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, 'unmountComponentAtNode(): Render methods should be a pure function ' + 'of props and state; triggering nested component updates from render ' + 'is not allowed. If necessary, trigger nested updates in ' + 'componentDidUpdate. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : undefined;\n\n !(container && (container.nodeType === ELEMENT_NODE_TYPE || container.nodeType === DOC_NODE_TYPE || container.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : invariant(false) : undefined;\n\n var reactRootID = getReactRootID(container);\n var component = instancesByReactRootID[reactRootID];\n if (!component) {\n // Check if the node being unmounted was rendered by React, but isn't a\n // root node.\n var containerHasNonRootReactChild = hasNonRootReactChild(container);\n\n // Check if the container itself is a React root node.\n var containerID = internalGetID(container);\n var isContainerReactRoot = containerID && containerID === ReactInstanceHandles.getReactRootIDFromNodeID(containerID);\n\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== 'production' ? warning(!containerHasNonRootReactChild, 'unmountComponentAtNode(): The node you\\'re attempting to unmount ' + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : undefined;\n }\n\n return false;\n }\n ReactUpdates.batchedUpdates(unmountComponentFromNode, component, container);\n delete instancesByReactRootID[reactRootID];\n delete containersByReactRootID[reactRootID];\n if (process.env.NODE_ENV !== 'production') {\n delete rootElementsByReactRootID[reactRootID];\n }\n return true;\n },\n\n /**\n * Finds the container DOM element that contains React component to which the\n * supplied DOM `id` belongs.\n *\n * @param {string} id The ID of an element rendered by a React component.\n * @return {?DOMElement} DOM element that contains the `id`.\n */\n findReactContainerForID: function (id) {\n var reactRootID = ReactInstanceHandles.getReactRootIDFromNodeID(id);\n var container = containersByReactRootID[reactRootID];\n\n if (process.env.NODE_ENV !== 'production') {\n var rootElement = rootElementsByReactRootID[reactRootID];\n if (rootElement && rootElement.parentNode !== container) {\n process.env.NODE_ENV !== 'production' ? warning(\n // Call internalGetID here because getID calls isValid which calls\n // findReactContainerForID (this function).\n internalGetID(rootElement) === reactRootID, 'ReactMount: Root element ID differed from reactRootID.') : undefined;\n var containerChild = container.firstChild;\n if (containerChild && reactRootID === internalGetID(containerChild)) {\n // If the container has a new child with the same ID as the old\n // root element, then rootElementsByReactRootID[reactRootID] is\n // just stale and needs to be updated. The case that deserves a\n // warning is when the container is empty.\n rootElementsByReactRootID[reactRootID] = containerChild;\n } else {\n process.env.NODE_ENV !== 'production' ? warning(false, 'ReactMount: Root element has been removed from its original ' + 'container. New container: %s', rootElement.parentNode) : undefined;\n }\n }\n }\n\n return container;\n },\n\n /**\n * Finds an element rendered by React with the supplied ID.\n *\n * @param {string} id ID of a DOM node in the React component.\n * @return {DOMElement} Root DOM node of the React component.\n */\n findReactNodeByID: function (id) {\n var reactRoot = ReactMount.findReactContainerForID(id);\n return ReactMount.findComponentRoot(reactRoot, id);\n },\n\n /**\n * Traverses up the ancestors of the supplied node to find a node that is a\n * DOM representation of a React component rendered by this copy of React.\n *\n * @param {*} node\n * @return {?DOMEventTarget}\n * @internal\n */\n getFirstReactDOM: function (node) {\n return findFirstReactDOMImpl(node);\n },\n\n /**\n * Finds a node with the supplied `targetID` inside of the supplied\n * `ancestorNode`. Exploits the ID naming scheme to perform the search\n * quickly.\n *\n * @param {DOMEventTarget} ancestorNode Search from this root.\n * @pararm {string} targetID ID of the DOM representation of the component.\n * @return {DOMEventTarget} DOM node with the supplied `targetID`.\n * @internal\n */\n findComponentRoot: function (ancestorNode, targetID) {\n var firstChildren = findComponentRootReusableArray;\n var childIndex = 0;\n\n var deepestAncestor = findDeepestCachedAncestor(targetID) || ancestorNode;\n\n if (process.env.NODE_ENV !== 'production') {\n // This will throw on the next line; give an early warning\n process.env.NODE_ENV !== 'production' ? warning(deepestAncestor != null, 'React can\\'t find the root component node for data-reactid value ' + '`%s`. If you\\'re seeing this message, it probably means that ' + 'you\\'ve loaded two copies of React on the page. At this time, only ' + 'a single copy of React can be loaded at a time.', targetID) : undefined;\n }\n\n firstChildren[0] = deepestAncestor.firstChild;\n firstChildren.length = 1;\n\n while (childIndex < firstChildren.length) {\n var child = firstChildren[childIndex++];\n var targetChild;\n\n while (child) {\n var childID = ReactMount.getID(child);\n if (childID) {\n // Even if we find the node we're looking for, we finish looping\n // through its siblings to ensure they're cached so that we don't have\n // to revisit this node again. Otherwise, we make n^2 calls to getID\n // when visiting the many children of a single node in order.\n\n if (targetID === childID) {\n targetChild = child;\n } else if (ReactInstanceHandles.isAncestorIDOf(childID, targetID)) {\n // If we find a child whose ID is an ancestor of the given ID,\n // then we can be sure that we only want to search the subtree\n // rooted at this child, so we can throw out the rest of the\n // search state.\n firstChildren.length = childIndex = 0;\n firstChildren.push(child.firstChild);\n }\n } else {\n // If this child had no ID, then there's a chance that it was\n // injected automatically by the browser, as when a ``\n // element sprouts an extra `` child as a side effect of\n // `.innerHTML` parsing. Optimistically continue down this\n // branch, but not before examining the other siblings.\n firstChildren.push(child.firstChild);\n }\n\n child = child.nextSibling;\n }\n\n if (targetChild) {\n // Emptying firstChildren/findComponentRootReusableArray is\n // not necessary for correctness, but it helps the GC reclaim\n // any nodes that were left at the end of the search.\n firstChildren.length = 0;\n\n return targetChild;\n }\n }\n\n firstChildren.length = 0;\n\n !false ? process.env.NODE_ENV !== 'production' ? invariant(false, 'findComponentRoot(..., %s): Unable to find element. This probably ' + 'means the DOM was unexpectedly mutated (e.g., by the browser), ' + 'usually due to forgetting a when using tables, nesting tags ' + 'like ,

    , or , or using non-SVG elements in an ' + 'parent. ' + 'Try inspecting the child nodes of the element with React ID `%s`.', targetID, ReactMount.getID(ancestorNode)) : invariant(false) : undefined;\n },\n\n _mountImageIntoNode: function (markup, container, shouldReuseMarkup, transaction) {\n !(container && (container.nodeType === ELEMENT_NODE_TYPE || container.nodeType === DOC_NODE_TYPE || container.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mountComponentIntoNode(...): Target container is not valid.') : invariant(false) : undefined;\n\n if (shouldReuseMarkup) {\n var rootElement = getReactRootElementInContainer(container);\n if (ReactMarkupChecksum.canReuseMarkup(markup, rootElement)) {\n return;\n } else {\n var checksum = rootElement.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);\n rootElement.removeAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);\n\n var rootMarkup = rootElement.outerHTML;\n rootElement.setAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME, checksum);\n\n var normalizedMarkup = markup;\n if (process.env.NODE_ENV !== 'production') {\n // because rootMarkup is retrieved from the DOM, various normalizations\n // will have occurred which will not be present in `markup`. Here,\n // insert markup into a

    or