PageSourceSearch

https://assets.jiffy.com/packs/js/choicesjs-725a95492ad71a64.chunk.js

js jiffy.com collected 2026-10-03 21:42:58 UTC 98,411 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([["6605"],{151934(g){"u">typeof self&&self,g.exports=function(){var g=[function(g,y,_){var b=_(14)("wks"),S=_(13),O=_(3).Symbol,I="function"==typeof O;(g.exports=function(g){return b[g]||(b[g]=I&&O[g]||(I?O:S)("Symbol."+g))}).store=b},function(g,y,_){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var b,S=y.getRandomNumber=function(g,y){return Math.floor(Math.random()*(y-g)+g)},O=y.generateChars=function(g){for(var y="",_=0;_<g;_++)y+=S(0,36).toString(36);return y},I=(y.generateId=function(g,y){var _=g.id||g.name&&g.name+"-"+O(2)||O(4);return y+"-"+(_=_.replace(/(:|\.|\[|\]|,)/g,""))},y.getType=function(g){return Object.prototype.toString.call(g).slice(8,-1)}),C=y.isType=function(g,y){var _=I(y);return null!=y&&_===g},A=(y.isElement=function(g){return g instanceof Element},y.extend=function e(){for(var g={},y=arguments.length,_=0;_<y;_++){var b=arguments[_];C("Object",b)&&function(y){for(var _ in y)Object.prototype.hasOwnProperty.call(y,_)&&(C("Object",y[_])?g[_]=e(!0,g[_],y[_]):g[_]=y[_])}(b)}return g},y.wrap=function(g,y){return y=y||document.createElement("div"),g.nextSibling?g.parentNode.insertBefore(y,g.nextSibling):g.parentNode.appendChild(y),y.appendChild(g)},y.findAncestor=function(g,y){for(;(g=g.parentElement)&&!g.classList.contains(y););return g}
1,y.findAncestorByAttrName=function(g,y){for(var _=g;_;){if(_.hasAttribute(y))return _;_=_.parentElement}return null},y.getAdjacentEl=function(g,y){var _=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(g&&y){var b=Array.from(g.parentNode.parentNode.querySelectorAll(y));return b[b.indexOf(g)+(_>0?1:-1)]}},y.isScrolledIntoView=function(g,y){var _=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(g)return _>0?y.scrollTop+y.offsetHeight>=g.offsetTop+g.offsetHeight:g.offsetTop>=y.scrollTop},y.stripHTML=function(g){return g.replace(/&/g,"&amp;").replace(/>/g,"&rt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}),T=(b=document.createElement("div"),y.strToEl=function(g){var y=g.trim(),_=void 0;for(b.innerHTML=y,_=b.children[0];b.firstChild;)b.removeChild(b.firstChild);return _});y.calcWidthOfInput=function(g,y){var _=g.value||g.placeholder,b=g.offsetWidth;if(_){var S=T("<span>"+A(_)+"</span>");if(S.style.position="absolute",S.style.padding="0",S.style.top="-9999px",S.style.left="-9999px",S.style.width="auto",S.style.whiteSpace="pre",document.body.contains(g)&&window.getComputedStyle){var O=window.getComputedStyle(g);O&&(S.style.fontSize=O.fontSize,S.style.fontFamily=O.fontFamily,S.style.fontWeight=O.fontWeight,S.style.fontStyle=O.fontStyle,S.style.letterSpacing=O.letterSpacing,S.style.textTransform=O.textTransform,S.style.padding=O.padding)}document.body.appendChild(S),requestAnimationFrame(function(){_&&S.offsetWidth!==g.offsetWidth&&(b=S.offsetWidth+4),document.body.removeChild(S),y.call(void 0,b+"px")})}else y.call(void 0,b+"px")},y.sortByAlpha=function(g,y){var _=(g.label||g.value).toLowerCase(),b=(y.label||y.value).toLowerCase();return _<b?-1:+(_>b)},y.sortByScore=function(g,y){return g.score-y.score},y.dispatchEvent=function(g,y){var _=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,b=new CustomEvent(y,{detail:_,bubbles:!0,cancelable:!0});return g.dispatchEvent(b)},y.regexFilter=function(g,y){return!(!g||!y)&&RegExp(y.source,"i").test(g)},y.getWindowHeight=function(){var g=document.body,y=document.documentElement;return Math.max(g.scrollHeight,g.offsetHeight,y.clientHeight,y.scrollHeight,y.offsetHeight)},y.reduceToValues=function(g){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";return g.reduce(function(g,_){return g.push(_[y]),g},[])},y.fetchFromObject=function e(g,y){var _=y.indexOf(".");return _>-1?e(g[y.substring(0,_)],y.substr(_+1)):g[y]},y.isIE11=function(){return!(!navigator.userAgent.match(/Trident/)||!navigator.userAgent.match(/rv[ :]11/))},y.existsInArray=function(g,y){var _=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"value";return g.some(function(g){return C("String",y)?g[_]===y.trim():g[_]===y})},y.cloneObject=function(g){return JSON.parse(JSON.stringify(g))},y.doKeysMatch=function(g,y){var _=Object.keys(g).sort(),b=Object.keys(y).sort();return JSON.stringify(_)===JSON.stringify(b)}},function(g,y){var _=g.exports={version:"2.6.11"};"number"==typeof __e&&(__e=_)},function(g,y){var _=g.exports="u">typeof window&&window.Math==Math?window:"u">typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=_)},function(g,y,_){var b=_(7),S=_(12);g.exports=_(10)?function(g,y,_){return b.f(g,y,S(1,_))}:function(g,y,_){return g[y]=_,g}},function(g,y,_){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.SCROLLING_SPEED=y.KEY_CODES=y.ACTION_TYPES=y.EVENTS=y.DEFAULT_CONFIG=y.DEFAULT_CLASSNAMES=void 0;var b=_(1),S=y.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",hiddenState:"is-hidden",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"};y.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,regexFilter:null,shouldSort:!0,shouldSortItems:!1,sortFn:b.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prepe
1ndValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",addItemText:function(g){return'Press Enter to add <b>"'+(0,b.stripHTML)(g)+'"</b>'},maxItemText:function(g){return"Only "+g+" values can be added"},itemComparer:function(g,y){return g===y},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:S},y.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice"},y.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL"},y.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},y.SCROLLING_SPEED=4},function(g,y,_){var b=_(3),S=_(2),O=_(4),I=_(25),C=_(15),c=function(g,y,_){var A,T,w,k,x=g&c.F,L=g&c.G,P=g&c.S,D=g&c.P,j=g&c.B,M=L?b:P?b[y]||(b[y]={}):(b[y]||{}).prototype,N=L?S:S[y]||(S[y]={}),F=N.prototype||(N.prototype={});for(A in L&&(_=y),_)w=((T=!x&&M&&void 0!==M[A])?M:_)[A],k=j&&T?C(w,b):D&&"function"==typeof w?C(Function.call,w):w,M&&I(M,A,w,g&c.U),N[A]!=w&&O(N,A,k),D&&F[A]!=w&&(F[A]=w)};b.core=S,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,g.exports=c},function(g,y,_){var b=_(8),S=_(44),O=_(45),I=Object.defineProperty;y.f=_(10)?Object.defineProperty:function(g,y,_){if(b(g),y=O(y,!0),b(_),S)try{return I(g,y,_)}catch(g){}if("get"in _||"set"in _)throw TypeError("Accessors not supported!");return"value"in _&&(g[y]=_.value),g}},function(g,y,_){var b=_(9);g.exports=function(g){if(!b(g))throw TypeError(g+" is not an object!");return g}},function(g,y){g.exports=function(g){return"object"==typeof g?null!==g:"function"==typeof g}},function(g,y,_){g.exports=!_(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(g,y){var _={}.hasOwnProperty;g.exports=function(g,y){return _.call(g,y)}},function(g,y){g.exports=function(g,y){return{enumerable:!(1&g),configurable:!(2&g),writable:!(4&g),value:y}}},function(g,y){var _=0,b=Math.random();g.exports=function(g){return"Symbol(".concat(void 0===g?"":g,")_",(++_+b).toString(36))}},function(g,y,_){var b=_(2),S=_(3),O=S["__core-js_shared__"]||(S["__core-js_shared__"]={});(g.exports=function(g,y){return O[g]||(O[g]=void 0!==y?y:{})})("versions",[]).push({version:b.version,mode:_(26)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(g,y,_){var b=_(47);g.exports=function(g,y,_){if(b(g),void 0===y)return g;switch(_){case 1:return function(_){return g.call(y,_)};case 2:return function(_,b){return g.call(y,_,b)};case 3:return function(_,b,S){return g.call(y,_,b,S)}}return function(){return g.apply(y,arguments)}}},function(g,y){var _={}.toString;g.exports=function(g){return _.call(g).slice(8,-1)}},function(g,y,_){var b=_(18);g.exports=function(g){return Object(b(g))}},function(g,y){g.exports=function(g){if(void 0==g)throw TypeError("Can't call method on  "+g);return g}},function(g,y,_){var b=_(20),S=Math.min;g.exports=function(g){return g>0?S(b(g),0x1fffffffffffff):0}},function(g,y){var _=Math.ceil,b=Math.floor;g.exports=function(g){return isNaN(g*=1)?0:(g>0?b:_)(g)}},function(g,y){g.exports={}},function(g,y,_){var b=_(14)("keys"),S=_(13);g.exports=function(g){return b[g]||(b[g]=S(g))}},function(g,y){g.exports=function(g){try{return!!g()}catch(g){return!0}}},function(g,y,_){var b=_(9),S=_(3).document,O=b(S)&&b(S.createElement);g.exports=function(g){return O?S.createElement(g):{}}},function(g,y,_){var b=_(3),S=_(4),O=_(11),I=_(13)("src"),C=_(46),A=(""+C).split("toString");_(2).inspectSource=function(g){return C.call(g)},(g.exports=function(g,y,_,C){var T="function"==typeof _;T&&(O(_,"name")||S(_,"name",y)),g[y]!==_&&(T&&(O(_,I)||S(_,I,g[y]?""+g[y]:A.join(String(y)))),g===b?g[y]=_:C?g[y]?g[y]=_:S(g,y,_):(delete g[y],S(g,y,_)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[I]||C.call(this)})},function(g,y){g.exports=!1},function(g,y,_){var b=_(16);g.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return"String"==b(g)?g.split(""):Object(g)}},function(g,y,_){var b=_(0)("unscopables"),S=Array.prototype;void 0==S[b]&&_(4)(S,b,{}
1),g.exports=function(g){S[b][g]=!0}},function(g,y,_){var b=_(27),S=_(18);g.exports=function(g){return b(S(g))}},function(g,y,_){var b=_(29),S=_(19),O=_(61);g.exports=function(g){return function(y,_,I){var C,A=b(y),T=S(A.length),w=O(I,T);if(g&&_!=_){for(;T>w;)if((C=A[w++])!=C)return!0}else for(;T>w;w++)if((g||w in A)&&A[w]===_)return g||w||0;return!g&&-1}}},function(g,y){g.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(g,y,_){var b=_(7).f,S=_(11),O=_(0)("toStringTag");g.exports=function(g,y,_){g&&!S(g=_?g:g.prototype,O)&&b(g,O,{configurable:!0,value:y})}},function(g,y,_){"use strict";function i(g){var y=C.call(g,T),_=g[T];try{g[T]=void 0;var b=!0}catch(g){}var S=A.call(g);return b&&(y?g[T]=_:delete g[T]),S}function r(g){return k.call(g)}function o(g){return null==g?void 0===g?P:L:D&&D in Object(g)?w(g):x(g)}function s(g,y){return function(_){return g(y(_))}}function a(g){return null!=g&&"object"==typeof g}function c(g){if(!N(g)||j(g)!=F)return!1;var y=M(g);if(null===y)return!0;var _=V.call(y,"constructor")&&y.constructor;return"function"==typeof _&&_ instanceof _&&R.call(_)==H}function l(g,y,_){function i(){C===I&&(C=I.slice())}function r(){return O}function o(g){if("function"!=typeof g)throw Error("Expected listener to be a function.");var y=!0;return i(),C.push(g),function(){if(y){y=!1,i();var _=C.indexOf(g);C.splice(_,1)}}}function s(g){if(!B(g))throw Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===g.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(A)throw Error("Reducers may not dispatch actions.");try{A=!0,O=S(O,g)}finally{A=!1}for(var y=I=C,_=0;_<y.length;_++)(0,y[_])();return g}function a(g){if("function"!=typeof g)throw Error("Expected the nextReducer to be a function.");S=g,s({type:G.INIT})}function c(){var g,y=o;return(g={subscribe:function(g){function n(){g.next&&g.next(O)}if("object"!=typeof g)throw TypeError("Expected the observer to be an object.");return n(),{unsubscribe:y(n)}}})[Y.a]=function(){return this},g}if("function"==typeof y&&void 0===_&&(_=y,y=void 0),void 0!==_){if("function"!=typeof _)throw Error("Expected the enhancer to be a function.");return _(l)(g,y)}if("function"!=typeof g)throw Error("Expected the reducer to be a function.");var b,S=g,O=y,I=[],C=I,A=!1;return s({type:G.INIT}),(b={dispatch:s,subscribe:o,getState:r,replaceReducer:a})[Y.a]=c,b}function u(g,y){var _=y&&y.type;return"Given action "+(_&&'"'+_.toString()+'"'||"an action")+', reducer "'+g+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function h(g){Object.keys(g).forEach(function(y){var _=g[y];if(void 0===_(void 0,{type:G.INIT}))throw Error('Reducer "'+y+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===_(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw Error('Reducer "'+y+"\" returned undefined when probed with a random type. Don't try to handle "+G.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function d(g){for(var y=Object.keys(g),_={},b=0;b<y.length;b++){var S=y[b];"function"==typeof g[S]&&(_[S]=g[S])}var O=Object.keys(_),I=void 0;try{h(_)}catch(g){I=g}return function(){var g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},y=arguments[1];if(I)throw I;for(var b=!1,S={},C=0;C<O.length;C++){var A=O[C],T=_[A],w=g[A],k=T(w,y);if(void 0===k)throw Error(u(A,y));S[A]=k,b=b||k!==w}return b?S:g}}function f(g,y){return function(){return y(g.apply(void 0,arguments))}}function p(g,y){if("function"==typeof g)return f(g,y);if("object"!=typeof g||null===g)throw Error("bindActionCreators expected an object or a function, instead received "+(null===g?"null":typeof g)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var _=Object.keys(g),b={},S=0;S<_.length;S++){var O=_[S],I=g[O];"function"==typeof I&&(b[O]=f(I,y))}return b}function v(){for(var g=arguments.length,y=Array(g),_=0;_<g;_++)y[_]=arguments[_];return 0===y.length?function(g){return g}:1===y.length?y[0]:y.reduce(function(g,y){return function(){return g(y.apply(void 0,arguments))}})}function m(){for(var g=arguments.length,y=Array(g),_=0;_<g;_++)y[_]=arguments[_];return function(g){return function(_,b,S){var O=g(_,b,S),I=O.dispatch,C=[],A={getState:O.getState,dispatch:function(g){return I(g)}};return C=y.map(function(g){return g(A)}),I=v.apply(void 0,C)(O.dispatch),W({},O,{dispatch:I})}}}Object.defineProperty(y,"__esModule",{value:!0});var b=_(75),S="object"==typeof self&&self&&self.Object===Object&&self,O=(b.a||S||Function("return this")()).Symbol,I=Object.prototype,C=I.hasOwnProperty,A=I.toString,T=O?O.toStringTag:void 0,w=i,k=Object.prototype.toString,x=r,L="[object Null]",P="[object Undef
1ined]",D=O?O.toStringTag:void 0,j=o,M=s(Object.getPrototypeOf,Object),N=a,F="[object Object]",K=Object.prototype,R=Function.prototype.toString,V=K.hasOwnProperty,H=R.call(Object),B=c,Y=_(76),G={INIT:"@@redux/INIT"},W=Object.assign||function(g){for(var y=1;y<arguments.length;y++){var _=arguments[y];for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(g[b]=_[b])}return g};_.d(y,"createStore",function(){return l}),_.d(y,"combineReducers",function(){return d}),_.d(y,"bindActionCreators",function(){return p}),_.d(y,"applyMiddleware",function(){return m}),_.d(y,"compose",function(){return v})},function(g,y){var _;_=function(){return this}();try{_=_||Function("return this")()||(0,eval)("this")}catch(g){"object"==typeof window&&(_=window)}g.exports=_},function(g,y,_){"use strict";function i(g,y){if(!(g instanceof y))throw TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var b=function(){function e(g,y){for(var _=0;_<y.length;_++){var b=y[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,y,_){return y&&e(g.prototype,y),_&&e(g,_),g}}(),S=_(1);y.default=function(){function e(g){var y=g.element,_=g.classNames;if(i(this,e),Object.assign(this,{element:y,classNames:_}),!(0,S.isElement)(y))throw TypeError("Invalid element passed");this.isDisabled=!1}return b(e,[{key:"conceal",value:function(){this.element.classList.add(this.classNames.input),this.element.classList.add(this.classNames.hiddenState),this.element.tabIndex="-1";var g=this.element.getAttribute("style");g&&this.element.setAttribute("data-choice-orig-style",g),this.element.setAttribute("aria-hidden","true"),this.element.setAttribute("data-choice","active")}},{key:"reveal",value:function(){this.element.classList.remove(this.classNames.input),this.element.classList.remove(this.classNames.hiddenState),this.element.removeAttribute("tabindex");var g=this.element.getAttribute("data-choice-orig-style");g?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",g)):this.element.removeAttribute("style"),this.element.removeAttribute("aria-hidden"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value}},{key:"enable",value:function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1}},{key:"disable",value:function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0}},{key:"triggerEvent",value:function(g,y){(0,S.dispatchEvent)(this.element,g,y)}},{key:"value",get:function(){return this.element.value}}]),e}()},function(g,y,_){"use strict";function i(g,y,_){return y in g?Object.defineProperty(g,y,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[y]=_,g}Object.defineProperty(y,"__esModule",{value:!0}),y.TEMPLATES=void 0;var b,S=(b=_(90))&&b.__esModule?b:{default:b},O=_(1),I=y.TEMPLATES={containerOuter:function(g,y,_,b,S,I){var C=_?'role="listbox"':"",A="";return _&&S&&(C='role="combobox"',A='aria-autocomplete="list"'),(0,O.strToEl)('\n      <div\n        class="'+g.containerOuter+'"\n        data-type="'+I+'"\n        '+C+"\n        "+(b?'tabindex="0"':"")+"\n        "+A+'\n        aria-haspopup="true"\n        aria-expanded="false"\n        dir="'+y+'"\n        >\n      </div>\n    ')}
1,containerInner:function(g){return(0,O.strToEl)('\n      <div class="'+g.containerInner+'"></div>\n    ')},itemList:function(g,y){var _,b=(0,S.default)(g.list,(i(_={},g.listSingle,y),i(_,g.listItems,!y),_));return(0,O.strToEl)('\n      <div class="'+b+'"></div>\n    ')},placeholder:function(g,y){return(0,O.strToEl)('\n      <div class="'+g.placeholder+'">\n        '+y+"\n      </div>\n    ")},item:function(g,y,_){var b,I,C=y.active?'aria-selected="true"':"",A=y.disabled?'aria-disabled="true"':"",T=(0,S.default)(g.item,(i(I={},g.highlightedState,y.highlighted),i(I,g.itemSelectable,!y.highlighted),i(I,g.placeholder,y.placeholder),I));return _?(T=(0,S.default)(g.item,(i(b={},g.highlightedState,y.highlighted),i(b,g.itemSelectable,!y.disabled),i(b,g.placeholder,y.placeholder),b)),(0,O.strToEl)('\n        <div\n          class="'+T+'"\n          data-item\n          data-id="'+y.id+'"\n          data-value="'+y.value+'"\n          data-deletable\n          '+C+"\n          "+A+"\n          >\n          "+y.label+'\x3c!--\n       --\x3e<button\n            type="button"\n            class="'+g.button+'"\n            data-button\n            aria-label="Remove item: \''+y.value+"'\"\n            >\n            Remove item\n          </button>\n        </div>\n      ")):(0,O.strToEl)('\n      <div\n        class="'+T+'"\n        data-item\n        data-id="'+y.id+'"\n        data-value="'+y.value+'"\n        '+C+"\n        "+A+"\n        >\n        "+y.label+"\n      </div>\n    ")},choiceList:function(g,y){return(0,O.strToEl)('\n      <div\n        class="'+g.list+'"\n        dir="ltr"\n        role="listbox"\n        '+(y?"":'aria-multiselectable="true"')+"\n        >\n      </div>\n    ")},choiceGroup:function(g,y){var _=y.disabled?'aria-disabled="true"':"",b=(0,S.default)(g.group,i({},g.itemDisabled,y.disabled));return(0,O.strToEl)('\n      <div\n        class="'+b+'"\n        data-group\n        data-id="'+y.id+'"\n        data-value="'+y.value+'"\n        role="group"\n        '+_+'\n        >\n        <div class="'+g.groupHeading+'">'+y.value+"</div>\n      </div>\n    ")},choice:function(g,y,_){var b,I=y.groupId>0?'role="treeitem"':'role="option"',C=(0,S.default)(g.item,g.itemChoice,(i(b={},g.itemDisabled,y.disabled),i(b,g.itemSelectable,!y.disabled),i(b,g.placeholder,y.placeholder),b));return(0,O.strToEl)('\n      <div\n        class="'+C+'"\n        data-select-text="'+_+'"\n        data-choice\n        data-id="'+y.id+'"\n        data-value="'+y.value+'"\n        '+(y.disabled?'data-choice-disabled aria-disabled="true"':"data-choice-selectable")+'\n        id="'+y.elementId+'"\n        '+I+"\n        >\n        "+y.label+"\n      </div>\n    ")},input:function(g){var y=(0,S.default)(g.input,g.inputCloned);return(0,O.strToEl)('\n      <input\n        type="text"\n        class="'+y+'"\n        autocomplete="off"\n        autocapitalize="off"\n        spellcheck="false"\n        role="textbox"\n        aria-autocomplete="list"\n        >\n    ')},dropdown:function(g){var y=(0,S.default)(g.list,g.listDropdown);return(0,O.strToEl)('\n      <div\n        class="'+y+'"\n        aria-expanded="false"\n        >\n      </div>\n    ')},notice:function(g,y){var _,b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",I=(0,S.default)(g.item,g.itemChoice,(i(_={},g.noResults,"no-results"===b),i(_,g.noChoices,"no-choices"===b),_));return(0,O.strToEl)('\n      <div class="'+I+'">\n        '+y+"\n      </div>\n    ")},option:function(g){return(0,O.strToEl)('\n      <option value="'+g.value+'" '+(g.active?"selected":"")+" "+(g.disabled?"disabled":"")+">"+g.label+"</option>\n    ")}};y.default=I},function(g,y,_){g.exports=_(38)},function(g,y,_){"use strict";function i(g){return g&&g.__esModule?g:{default:g}}function r(g,y,_){return y in g?Object.defineProperty(g,y,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[y]=_,g}function o(g){if(Array.isArray(g)){for(var y=0,_=Array(g.length);y<g.length;y++)_[y]=g[y];return _}return Array.from(g)}function s(g,y){if(!(g instanceof y))throw TypeError("Cannot call a class as a function")}var b=function(){function e(g,y){for(var _=0;_<y.length;_++){var b=y[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.ke
1y,b)}}return function(g,y,_){return y&&e(g.prototype,y),_&&e(g,_),g}}(),S=i(_(39)),O=i(_(40));_(41);var I=i(_(74)),C=_(83),A=_(5),T=_(36),w=_(91),k=_(92),x=_(93),L=_(94),P=_(1),D=function(){function e(){var g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[data-choice]",y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s(this,e),(0,P.isType)("String",g)){var _=Array.from(document.querySelectorAll(g));if(_.length>1)return this._generateInstances(_,y)}this.config=O.default.all([A.DEFAULT_CONFIG,e.userDefaults,y],{arrayMerge:function(g,y){return[].concat(o(y))}}),(0,P.doKeysMatch)(this.config,A.DEFAULT_CONFIG)||console.warn("Unknown config option(s) passed"),["auto","always"].includes(this.config.renderSelectedChoices)||(this.config.renderSelectedChoices="auto");var b=(0,P.isType)("String",g)?document.querySelector(g):g;return b?(this._isTextElement="text"===b.type,this._isSelectOneElement="select-one"===b.type,this._isSelectMultipleElement="select-multiple"===b.type,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this._isTextElement?this.passedElement=new C.WrappedInput({element:b,classNames:this.config.classNames,delimiter:this.config.delimiter}):this._isSelectElement&&(this.passedElement=new C.WrappedSelect({element:b,classNames:this.config.classNames})),this.passedElement?(!0===this.config.shouldSortItems&&this._isSelectOneElement&&!this.config.silent&&console.warn("shouldSortElements: Type of passed element is 'select-one', falling back to fal
1se."),this.initialised=!1,this._store=new I.default(this.render),this._initialState={},this._currentState={},this._prevState={},this._currentValue="",this._canSearch=this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,P.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.element.getAttribute("dir")||"ltr",this._idNames={itemChoice:"item-choice"},this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&(this._presetItems=this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onAKey=this._onAKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),"active"===this.passedElement.element.getAttribute("data-choice")&&console.warn("Trying to initialise Choices on element already initialised"),void this.init()):console.error("Passed element was of an invalid type")):console.error("Could not find passed element or passed element was of an invalid type")}return b(e,[{key:"init",value:function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._initialState=(0,P.cloneObject)(this._store.state),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var g=this.config.callbackOnInit;g&&(0,P.isType)("Function",g)&&g.call(this)}}},{key:"destroy",value:function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this._isSelectElement&&(this.passedElement.options=this._presetChoices),this.clearStore(),this.config.templates=null,this.initialised=!1)}},{key:"enable",value:function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this}},{key:"disable",value:function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this}},{key:"highlightItem",value:function(g){var y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!g)return this;var _=g.id,b=g.groupId,S=void 0===b?-1:b,O=g.value,I=g.label,C=S>=0?this._store.getGroupById(S):null;return this._store.dispatch((0,k.highlightItem)(_,!0)),y&&this.passedElement.triggerEvent(A.EVENTS.highlightItem,{id:_,value:void 0===O?"":O,label:void 0===I?"":I,groupValue:C&&C.value?C.value:null}),this}},{key:"unhighlightItem",value:function(g){if(!g)return this;var y=g.id,_=g.groupId,b=void 0===_?-1:_,S=g.value,O=g.label,I=b>=0?this._store.getGroupById(b):null;return this._store.dispatch((0,k.highlightItem)(y,!1)),this.passedElement.triggerEvent(A.EVENTS.highlightItem,{id:y,value:void 0===S?"":S,label:void 0===O?"":O,groupValue:I&&I.value?I.value:null}),this}},{key:"highlightAll",value:function(){var g=this;return this._store.items.forEach(function(y){return g.highlightItem(y)}),this}},{key:"unhighlightAll",value:function(){var g=this;return this._store.items.forEach(function(y){return g.unhighlightItem(y)}),this}},{key:"removeActiveItemsByValue",value:function(g){var y=this;return this._store.activeItems.filter(function(y){return y.value===g}
1).forEach(function(g){return y._removeItem(g)}),this}},{key:"removeActiveItems",value:function(g){var y=this;return this._store.activeItems.filter(function(y){return y.id!==g}).forEach(function(g){return y._removeItem(g)}),this}},{key:"removeHighlightedItems",value:function(){var g=this,y=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._store.highlightedActiveItems.forEach(function(_){g._removeItem(_),y&&g._triggerChange(_.value)}),this}},{key:"showDropdown",value:function(g){var y=this;return this.dropdown.isActive||requestAnimationFrame(function(){y.dropdown.show(),y.containerOuter.open(y.dropdown.distanceFromTopWindow()),!g&&y._canSearch&&y.input.focus(),y.passedElement.triggerEvent(A.EVENTS.showDropdown,{})}),this}},{key:"hideDropdown",value:function(g){var y=this;return this.dropdown.isActive&&requestAnimationFrame(function(){y.dropdown.hide(),y.containerOuter.close(),!g&&y._canSearch&&(y.input.removeActiveDescendant(),y.input.blur()),y.passedElement.triggerEvent(A.EVENTS.hideDropdown,{})}),this}},{key:"toggleDropdown",value:function(){return this.dropdown.isActive?this.hideDropdown():this.showDropdown(),this}},{key:"getValue",value:function(){var g=arguments.length>0&&void 0!==arguments[0]&&arguments[0],y=this._store.activeItems.reduce(function(y,_){var b=g?_.value:_;return y.push(b),y},[]);return this._isSelectOneElement?y[0]:y}},{key:"setValue",value:function(g){var y=this;return this.initialised&&[].concat(o(g)).forEach(function(g){return y._setChoiceOrItem(g)}),this}},{key:"setChoiceByValue",value:function(g){var y=this;return!this.initialised||this._isTextElement||((0,P.isType)("Array",g)?g:[g]).forEach(function(g){return y._findAndSelectChoiceByValue(g)}),this}},{key:"setChoices",value:function(){var g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",_=this,b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",S=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this._isSelectElement&&g.length&&y&&(S&&this._clearChoices(),this.containerOuter.removeLoadingState(),g.forEach(function(g){g.choices?_._addGroup({group:g,id:g.id||null,valueKey:y,labelKey:b}):_._addChoice({value:g[y],label:g[b],isSelected:g.selected,isDisabled:g.disabled,customProperties:g.customProperties,placeholder:g.placeholder})})),this}},{key:"clearStore",value:function(){return this._store.dispatch((0,L.clearAll)()),this}},{key:"clearInput",value:function(){var g=!this._isSelectOneElement;return this.input.clear(g),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,w.activateChoices)(!0))),this}},{key:"ajax",value:function(g){var y=this;return this.initialised&&this._isSelectElement&&g&&(requestAnimationFrame(function(){return y._handleLoadingState(!0)}),g(this._ajaxCallback())),this}},{key:"_render",value:function(){this._currentState=this._store.state;var g=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,y=this._isSelectElement,_=this._currentState.items!==this._prevState.items;g&&(y&&this._renderChoices(),_&&this._renderItems(),this._prevState=this._currentState)}},{key:"_renderChoices",value:function(){var g=this,y=this._store,_=y.activeGroups,b=y.activeChoices,S=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame(function(){return g.choiceList.scrollToTop()}),_.length>=1&&!this._isSearching){var O=b.filter(function(g){return!0===g.placeholder&&-1===g.groupId});O.length>=1&&(S=this._createChoicesFragment(O,S)),S=this._createGroupsFragment(_,b,S)}else b.length>=1&&(S=this._createChoicesFragment(b,S));if(S.childNodes&&S.childNodes.length>0){var I=this._store.activeItems,C=this._canAddItem(I,this.input.value);C.response?(this.choiceList.append(S),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",C.notice))}else{var A=void 0,T=void 0;this._isSearching?(T=(0,P.isType)("Function",this.config.noResultsText)?this.config.noResultsText():this.config.noResultsText,A=this._getTemplate("notice",T,"no-results")):(T=(0,P.isType)("Function",this.config.noChoicesText)?this.config.noChoicesText():this.config.noChoicesText,A=this._getTemplate("notice",T,"no-choices")),this.choiceList.append(A)}}},{key:"_renderItems",value:function(){var g=this._store.activeItems||[];this.itemList.clear();var y=this._createItemsFragment(g);y.childNodes&&this.itemList.append(y)}},{key:"_createGroupsFragment",value:function(g,y,_){var b=this,S=_||document.createDocumentFragment();return this.config.shouldSort&&g.sort(this.config.sortFn),g.forEach(function(g){var _=y.filter(function(y){return b._isSelectOneElement?y.groupId===g.id:y.groupId===g.id&&("always"===b.config.render
1SelectedChoices||!y.selected)});if(_.length>=1){var O=b._getTemplate("choiceGroup",g);S.appendChild(O),b._createChoicesFragment(_,S,!0)}}),S}},{key:"_createChoicesFragment",value:function(g,y){var _=this,b=arguments.length>2&&void 0!==arguments[2]&&arguments[2],S=y||document.createDocumentFragment(),O=this.config,I=O.renderSelectedChoices,C=O.searchResultLimit,A=O.renderChoiceLimit,T=this._isSearching?P.sortByScore:this.config.sortFn,w=g;"auto"!==I||this._isSelectOneElement||(w=g.filter(function(g){return!g.selected}));var k=w.reduce(function(g,y){return y.placeholder?g.placeholderChoices.push(y):g.normalChoices.push(y),g},{placeholderChoices:[],normalChoices:[]}),x=k.placeholderChoices,L=k.normalChoices;(this.config.shouldSort||this._isSearching)&&L.sort(T);var D=w.length,j=[].concat(o(x),o(L));this._isSearching?D=C:A>0&&!b&&(D=A);for(var M=0;M<D;M+=1)j[M]&&function(g){if("auto"!==I||_._isSelectOneElement||!g.selected){var y=_._getTemplate("choice",g,_.config.itemSelectText);S.appendChild(y)}}(j[M]);return S}},{key:"_createItemsFragment",value:function(g){var y=this,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,b=this.config,S=b.shouldSortItems,O=b.sortFn,I=b.removeItemButton,C=_||document.createDocumentFragment();S&&!this._isSelectOneElement&&g.sort(O),this._isTextElement?this.passedElement.value=g:this.passedElement.options=g;var c=function(g){var _=y._getTemplate("item",g,I);C.appendChild(_)};return g.forEach(function(g){return c(g)}),C}},{key:"_triggerChange",value:function(g){null!=g&&this.passedElement.triggerEvent(A.EVENTS.change,{value:g})}},{key:"_selectPlaceholderChoice",value:function(){var g=this._store.placeholderChoice;g&&(this._addItem({value:g.value,label:g.label,choiceId:g.id,groupId:g.groupId,placeholder:g.placeholder}),this._triggerChange(g.value))}},{key:"_handleButtonAction",value:function(g,y){if(g&&y&&this.config.removeItems&&this.config.removeItemButton){var _=y.parentNode.getAttribute("data-id"),b=g.find(function(g){return g.id===parseInt(_,10)});this._removeItem(b),this._triggerChange(b.value),this._isSelectOneElement&&this._selectPlaceholderChoice()}}},{key:"_handleItemAction",value:function(g,y){var _=this,b=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(g&&y&&this.config.removeItems&&!this._isSelectOneElement){var S=y.getAttribute("data-id");g.forEach(function(g){g.id!==parseInt(S,10)||g.highlighted?!b&&g.highlighted&&_.unhighlightItem(g):_.highlightItem(g)}),this.input.focus()}}},{key:"_handleChoiceAction",value:function(g,y){if(g&&y){var _=y.getAttribute("data-id"),b=this._store.getChoiceById(_),S=g[0]&&g[0].keyCode?g[0].keyCode:null,O=this.dropdown.isActive;b.keyCode=S,this.passedElement.triggerEvent(A.EVENTS.choice,{choice:b}),b&&!b.selected&&!b.disabled&&this._canAddItem(g,b.value).response&&(this._addItem({value:b.value,label:b.label,choiceId:b.id,groupId:b.groupId,customProperties:b.customProperties,placeholder:b.placeholder,keyCode:b.keyCode}),this._triggerChange(b.value)),this.clearInput(),O&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},{key:"_handleBackspace",value:function(g){if(this.config.removeItems&&g){var y=g[g.length-1],_=g.some(function(g){return g.highlighted});this.config.editItems&&!_&&y?(this.input.value=y.value,this.input.setWidth(),this._removeItem(y),this._triggerChange(y.value)):(_||this.highlightItem(y,!1),this.removeHighlightedItems(!0))}}},{key:"_handleLoadingState",value:function(){var g=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],y=this.itemList.getChild("."+this.config.classNames.placeholder);g?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?y?y.innerHTML=this.config.loadingText:(y=this._getTemplate("placeholder",this.config.loadingText),this.itemList.append(y)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?y.innerHTML=this._placeholderValue||"":this.input.placeholder=this._placeholderValue||"")}},{key:"_handleSearch",value:function(g){if(g&&this.input.isFocussed){var y=this._store.choices,_=this.config,b=_.searchFloor,S=_.searchChoices,O=y.some(function(g){return!g.active});if(g&&g.length>=b){var I=S?this._searchChoices(g):0;this.passedElement.triggerEvent(A.EVENTS.search,{value:g,resultCount:I})}else O&&(this._isSearching=!1,this._store.dispatch((0,w.activateChoices)(!0)))}}},{key:"_canAddItem",value:function(g,y){var _=!0,b=(0,P.isType)("Function",this.config.addItemText)?this.config.addItemText(y):this.config.addItemText;if(!this._isSelectOneElement){var S=(0,P.existsInArray)(g,y);this.config.maxItemCount>0&&this.config.maxItemCount<=g.length&&(_=!1,b=(0,P.isType)("Function",this.config.maxItemText)?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),this.config.regexFilter&&this._isTextElement&&this.config.addItems&&_&&(_=(0,P.regexFilter)(y,this.config.regexFilter)),!this.config.duplicateItemsAllowed&&S&&_&&(_=!1,b=(0,P.isType)("Function",this.config.uniqueItemText)?this.config.uniqueItemText(y):this.config.uniqueItemText)}
1return{response:_,notice:b}}},{key:"_ajaxCallback",value:function(){var g=this;return function(y,_,b){if(y&&_){var S=(0,P.isType)("Object",y)?[y]:y;S&&(0,P.isType)("Array",S)&&S.length?(g._handleLoadingState(!1),S.forEach(function(y){y.choices?g._addGroup({group:y,id:y.id||null,valueKey:_,labelKey:b}):g._addChoice({value:(0,P.fetchFromObject)(y,_),label:(0,P.fetchFromObject)(y,b),isSelected:y.selected,isDisabled:y.disabled,customProperties:y.customProperties,placeholder:y.placeholder})}),g._isSelectOneElement&&g._selectPlaceholderChoice()):g._handleLoadingState(!1)}}}},{key:"_searchChoices",value:function(g){var y=(0,P.isType)("String",g)?g.trim():g,_=(0,P.isType)("String",this._currentValue)?this._currentValue.trim():this._currentValue;if(y.length<1&&y===_+" ")return 0;var b=this._store.searchableChoices,O=[].concat(o(this.config.searchFields)),I=Object.assign(this.config.fuseOptions,{keys:O}),C=new S.default(b,I).search(y);return this._currentValue=y,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,w.filterChoices)(C)),C.length}},{key:"_addEventListeners",value:function(){document.addEventListener("keyup",this._onKeyUp),document.addEventListener("keydown",this._onKeyDown),document.addEventListener("click",this._onClick),document.addEventListener("touchmove",this._onTouchMove),document.addEventListener("touchend",this._onTouchEnd),document.addEventListener("mousedown",this._onMouseDown),document.addEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus),this.containerOuter.element.addEventListener("blur",this._onBlur)),this.input.element.addEventListener("focus",this._onFocus),this.input.element.addEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset),this.input.addEventListeners()}},{key:"_removeEventListeners",value:function(){document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("keydown",this._onKeyDown),document.removeEventListener("click",this._onClick),document.removeEventListener("touchmove",this._onTouchMove),document.removeEventListener("touchend",this._onTouchEnd),document.removeEventListener("mousedown",this._onMouseDown),document.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()}},{key:"_onKeyDown",value:function(g){var y,_=g.target,b=g.keyCode,S=g.ctrlKey,O=g.metaKey;if(_===this.input.element||this.containerOuter.element.contains(_)){var I=this._store.activeItems,C=this.input.isFocussed,T=this.dropdown.isActive,w=this.itemList.hasChildren,k=String.fromCharCode(b),x=A.KEY_CODES.BACK_KEY,L=A.KEY_CODES.DELETE_KEY,P=A.KEY_CODES.ENTER_KEY,D=A.KEY_CODES.A_KEY,j=A.KEY_CODES.ESC_KEY,M=A.KEY_CODES.UP_KEY,N=A.KEY_CODES.DOWN_KEY,F=A.KEY_CODES.PAGE_UP_KEY,K=A.KEY_CODES.PAGE_DOWN_KEY,R=S||O;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(k)&&this.showDropdown();var V=(r(y={},D,this._onAKey),r(y,P,this._onEnterKey),r(y,j,this._onEscapeKey),r(y,M,this._onDirectionKey),r(y,F,this._onDirectionKey),r(y,N,this._onDirectionKey),r(y,K,this._onDirectionKey),r(y,L,this._onDeleteKey),r(y,x,this._onDeleteKey),y);V[b]&&V[b]({event:g,target:_,keyCode:b,metaKey:O,activeItems:I,hasFocusedInput:C,hasActiveDropdown:T,hasItems:w,hasCtrlDownKeyPressed:R})}}},{key:"_onKeyUp",value:function(g){var y=g.target,_=g.keyCode;if(y===this.input.element){var b=this.input.value,S=this._store.activeItems,O=this._canAddItem(S,b);if(this._isTextElement)if(b){if(O.notice){var I=this._getTemplate("notice",O.notice);this.dropdown.element.innerHTML=I.outerHTML}!0===O.response?this.showDropdown(!0):O.notice||this.hideDropdown(!0)}else this.hideDropdown(!0);else{var C=A.KEY_CODES.BACK_KEY,T=A.KEY_CODES.DELETE_KEY;_!==C&&_!==T||y.value?this._canSearch&&O.response&&this._handleSearch(this.input.value):!this._isTextElement&&this._isSearching&&(this._isSearching=!1,this._store.dispatch((0,w.activateChoices)(!0)))}this._canSearch=this.config.searchEnabled}}},{key:"_onAKey",value:function(g){var y=g.hasItems;g.hasCtrlDownKeyPressed&&y&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())}},{key:"_onEnterKey",value:function(g){var y=g.event,_=g.target,b=g.activeItems,S=g.hasActiveDropdown,O=A.KEY_CODES.ENTER_KEY;if(this._isTextElement&&_.value){var I=this.input.value;this._canAddItem(b,I).response&&(this.hideDropdown(!0),this._addItem({value:I}),this._triggerChange(I),this.clearInput())}if(_.hasAttribute("data-button")&&(this._handleButtonAction(b,_),y.preventDefault()),S){var C=this.dropdown.getChild("."+this.config.classNames.highlightedState);C&&(b[0]&&(b[0].keyCode=O),this._handleChoiceAction(b,C)),y.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),y.preventDefault())}},{key:"_onEscapeKey",value:function(g){g.hasActiveDropdown&&(this.hideDropdown(!0),this.containerOuter.focus())}},{key:"_onDirectionKey",value:function(g){var y=g.event,_=g.hasActiveDropdown,b=g.keyCode,
1S=g.metaKey,O=A.KEY_CODES.DOWN_KEY,I=A.KEY_CODES.PAGE_UP_KEY,C=A.KEY_CODES.PAGE_DOWN_KEY;if(_||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var T=b===O||b===C?1:-1,w=void 0;if(S||b===C||b===I)w=T>0?Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]")).pop():this.dropdown.element.querySelector("[data-choice-selectable]");else{var k=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);w=k?(0,P.getAdjacentEl)(k,"[data-choice-selectable]",T):this.dropdown.element.querySelector("[data-choice-selectable]")}w&&((0,P.isScrolledIntoView)(w,this.choiceList.element,T)||this.choiceList.scrollToChoice(w,T),this._highlightChoice(w)),y.preventDefault()}}},{key:"_onDeleteKey",value:function(g){var y=g.event,_=g.target,b=g.hasFocusedInput,S=g.activeItems;!b||_.value||this._isSelectOneElement||(this._handleBackspace(S),y.preventDefault())}},{key:"_onTouchMove",value:function(){!0===this._wasTap&&(this._wasTap=!1)}},{key:"_onTouchEnd",value:function(g){var y=g.target||g.touches[0].target;!0===this._wasTap&&this.containerOuter.element.contains(y)&&(y!==this.containerOuter.element&&y!==this.containerInner.element||this._isSelectOneElement||(this._isTextElement?this.input.focus():this.showDropdown()),g.stopPropagation()),this._wasTap=!0}},{key:"_onMouseDown",value:function(g){var y=g.target,_=g.shiftKey;if(this.choiceList.element.contains(y)&&(0,P.isIE11)()&&(this._isScrollingOnIe=!0),this.containerOuter.element.contains(y)&&y!==this.input.element){var b=this._store.activeItems,S=(0,P.findAncestorByAttrName)(y,"data-button"),O=(0,P.findAncestorByAttrName)(y,"data-item"),I=(0,P.findAncestorByAttrName)(y,"data-choice");S?this._handleButtonAction(b,S):O?this._handleItemAction(b,O,_):I&&this._handleChoiceAction(b,I),g.preventDefault()}}},{key:"_onMouseOver",value:function(g){var y=g.target;(y===this.dropdown||this.dropdown.element.contains(y))&&y.hasAttribute("data-choice")&&this._highlightChoice(y)}},{key:"_onClick",value:function(g){var y=g.target;this.containerOuter.element.contains(y)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&y!==this.input.element&&!this.dropdown.element.contains(y)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))}},{key:"_onFocus",value:function(g){var y=this,_=g.target;this.containerOuter.element.contains(_)&&({text:function(){_===y.input.element&&y.containerOuter.addFocusState()},"select-one":function(){y.containerOuter.addFocusState(),_===y.input.element&&y.showDropdown(!0)},"select-multiple":function(){_===y.input.element&&(y.showDropdown(!0),y.containerOuter.addFocusState())}})[this.passedElement.element.type]()}},{key:"_onBlur",value:function(g){var y=this,_=g.target;if(this.containerOuter.element.contains(_)&&!this._isScrollingOnIe){var b=this._store.activeItems.some(function(g){return g.highlighted});({text:function(){_===y.input.element&&(y.containerOuter.removeFocusState(),b&&y.unhighlightAll(),y.hideDropdown(!0))},"select-one":function(){y.containerOuter.removeFocusState(),_!==y.input.element&&(_!==y.containerOuter.element||y._canSearch)||y.hideDropdown(!0)},"select-multiple":function(){_===y.input.element&&(y.containerOuter.removeFocusState(),y.hideDropdown(!0),b&&y.unhighlightAll())}})[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()}},{key:"_onFormReset",value:function(){this._store.dispatch((0,L.resetTo)(this._initialState))}},{key:"_highlightChoice",value:function(){var g=this,y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,_=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(_.length){var b=y;Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState)).forEach(function(y){y.classList.remove(g.config.classNames.highlightedState),y.setAttribute("aria-selected","false")}),b?this._highlightPosition=_.indexOf(b):(b=_.length>this._highlightPosition?_[this._highlightPosition]:_[_.length-1])||(b=_[0]),b.classList.add(this.config.classNames.highlightedState),b.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(A.EVENTS.highlightChoice,{el:b}),this.dropdown.isActive&&(this.input.setActiveDescendant(b.id),this.containerOuter.setActiveDescendant(b.id))}}},{key:"_addItem",value:function(g){var y=g.value,_=g.label,b=g.choiceId,S=g.groupId,O=void 0===S?-1:S,I=g.customProperties,C=void 0===I?null:I,T=g.placeholder,w=g.keyCode,x=(0,P.isType)("String",y)?y.trim():y,L=void 0===w?null:w,D=this._store.items,j=(void 0===_?null:_)||x,M=parseInt(void 0===b?-1:b,10)||-1,N=O>=0?this._store.getGroupById(O):null,F=D?D.length+1:1;
1return this.config.prependValue&&(x=this.config.prependValue+x.toString()),this.config.appendValue&&(x+=this.config.appendValue.toString()),this._store.dispatch((0,k.addItem)({value:x,label:j,id:F,choiceId:M,groupId:O,customProperties:C,placeholder:void 0!==T&&T,keyCode:L})),this._isSelectOneElement&&this.removeActiveItems(F),this.passedElement.triggerEvent(A.EVENTS.addItem,{id:F,value:x,label:j,customProperties:C,groupValue:N&&N.value?N.value:void 0,keyCode:L}),this}},{key:"_removeItem",value:function(g){if(!g||!(0,P.isType)("Object",g))return this;var y=g.id,_=g.value,b=g.label,S=g.choiceId,O=g.groupId,I=O>=0?this._store.getGroupById(O):null;return this._store.dispatch((0,k.removeItem)(y,S)),I&&I.value?this.passedElement.triggerEvent(A.EVENTS.removeItem,{id:y,value:_,label:b,groupValue:I.value}):this.passedElement.triggerEvent(A.EVENTS.removeItem,{id:y,value:_,label:b}),this}},{key:"_addChoice",value:function(g){var y=g.value,_=g.label,b=g.isSelected,S=g.isDisabled,O=g.groupId,I=g.customProperties,C=void 0===I?null:I,A=g.placeholder,T=void 0!==A&&A,k=g.keyCode,x=void 0===k?null:k;if(null!=y){var L=this._store.choices,P=(void 0===_?null:_)||y,D=L?L.length+1:1,j=this._baseId+"-"+this._idNames.itemChoice+"-"+D;this._store.dispatch((0,w.addChoice)({value:y,label:P,id:D,groupId:void 0===O?-1:O,disabled:void 0!==S&&S,elementId:j,customProperties:C,placeholder:T,keyCode:x})),void 0!==b&&b&&this._addItem({value:y,label:P,choiceId:D,customProperties:C,placeholder:T,keyCode:x})}}},{key:"_clearChoices",value:function(){this._store.dispatch((0,w.clearChoices)())}},{key:"_addGroup",value:function(g){var y=this,_=g.group,b=g.id,S=g.valueKey,O=void 0===S?"value":S,I=g.labelKey,C=void 0===I?"label":I,A=(0,P.isType)("Object",_)?_.choices:Array.from(_.getElementsByTagName("OPTION")),T=b||Math.floor((new Date).valueOf()*Math.random()),w=!!_.disabled&&_.disabled;A?(this._store.dispatch((0,x.addGroup)(_.label,T,!0,w)),A.forEach(function(g){var _=g.disabled||g.parentNode&&g.parentNode.disabled;y._addChoice({value:g[O],label:(0,P.isType)("Object",g)?g[C]:g.innerHTML,isSelected:g.selected,isDisabled:_,groupId:T,customProperties:g.customProperties,placeholder:g.placeholder})})):this._store.dispatch((0,x.addGroup)(_.label,_.id,!1,_.disabled))}},{key:"_getTemplate",value:function(g){var y;if(!g)return null;for(var _=this.config,b=_.templates,S=_.classNames,O=arguments.length,I=Array(O>1?O-1:0),C=1;C<O;C++)I[C-1]=arguments[C];return(y=b[g]).call.apply(y,[this,S].concat(I))}},{key:"_createTemplates",value:function(){var g=this.config.callbackOnCreateTemplates,y={};g&&(0,P.isType)("Function",g)&&(y=g.call(this,P.strToEl)),this.config.templates=(0,P.extend)(T.TEMPLATES,y)}},{key:"_createElements",value:function(){this.containerOuter=new C.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new C.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new C.Input({element:this._getTemplate("input"),classNames:this.config.classNames,type:this.passedElement.element.type}),this.choiceList=new C.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new C.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new C.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})}},{key:"_createStructure",value:function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth(!0)),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement?this._addPredefinedChoices():this._isTextElement&&this._addPredefinedItems()}},{key:"_addPredefinedChoices",value:function(){var g=this,y=this.passedElement.optionGroups;if(this._highlightPosition=0,this._isSearching=!1,y&&y.length){var _=this.passedElement.placeholderOption;_&&"SELECT"===_.parentNode.tagName&&this._addChoice({value:_.value,label:_.innerHTML,isSelected:_.selected,isDisabled:_.disabled,placeholder:!0}
1),y.forEach(function(y){return g._addGroup({group:y,id:y.id||null})})}else{var b=this.passedElement.options,S=this.config.sortFn,O=this._presetChoices;b.forEach(function(g){O.push({value:g.value,label:g.innerHTML,selected:g.selected,disabled:g.disabled||g.parentNode.disabled,placeholder:g.hasAttribute("placeholder")})}),this.config.shouldSort&&O.sort(S);var I=O.some(function(g){return g.selected}),a=function(y,_){var b=y.value,S=y.label,O=y.customProperties,C=y.placeholder;if(g._isSelectElement)if(y.choices)g._addGroup({group:y,id:y.id||null});else{var A=g._isSelectOneElement&&!I&&0===_,T=!!A||y.selected,w=!A&&y.disabled;g._addChoice({value:b,label:S,isSelected:T,isDisabled:w,customProperties:O,placeholder:C})}else g._addChoice({value:b,label:S,isSelected:y.selected,isDisabled:y.disabled,customProperties:O,placeholder:C})};O.forEach(function(g,y){return a(g,y)})}}},{key:"_addPredefinedItems",value:function(){var g=this,t=function(y){var _=(0,P.getType)(y);"Object"===_&&y.value?g._addItem({value:y.value,label:y.label,choiceId:y.id,customProperties:y.customProperties,placeholder:y.placeholder}):"String"===_&&g._addItem({value:y})};this._presetItems.forEach(function(g){return t(g)})}},{key:"_setChoiceOrItem",value:function(g){var y=this;({object:function(){g.value&&(y._isTextElement?y._addItem({value:g.value,label:g.label,choiceId:g.id,customProperties:g.customProperties,placeholder:g.placeholder}):y._addChoice({value:g.value,label:g.label,isSelected:!0,isDisabled:!1,customProperties:g.customProperties,placeholder:g.placeholder}))},string:function(){y._isTextElement?y._addItem({value:g}):y._addChoice({value:g,label:g,isSelected:!0,isDisabled:!1})}})[(0,P.getType)(g).toLowerCase()]()}},{key:"_findAndSelectChoiceByValue",value:function(g){var y=this,_=this._store.choices.find(function(_){return y.config.itemComparer(_.value,g)});_&&!_.selected&&this._addItem({value:_.value,label:_.label,choiceId:_.id,groupId:_.groupId,customProperties:_.customProperties,placeholder:_.placeholder,keyCode:_.keyCode})}},{key:"_generateInstances",value:function(g,y){return g.reduce(function(g,_){return g.push(new e(_,y)),g},[this])}},{key:"_generatePlaceholderValue",value:function(){return!this._isSelectOneElement&&!!this.config.placeholder&&(this.config.placeholderValue||this.passedElement.element.getAttribute("placeholder"))}}]),e}();D.userDefaults={},g.exports=D},function(g,y,_){g.exports=function(){var g=[function(g,y,_){function i(g){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(g)}function r(g,y){for(var _=0;_<y.length;_++){var b=y[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}var b=_(1),S=_(7),O=S.get,I=(S.deepValue,S.isArray);g.exports=function(){var g,y;function e(g,y){var _=y.location,b=y.distance,S=y.threshold,I=y.maxPatternLength,C=y.caseSensitive,A=y.tokenSeparator,T=y.findAllMatches,w=y.minMatchCharLength,k=y.id,x=y.keys,L=void 0===x?[]:x,P=y.shouldSort,D=y.getFn,j=y.sortFn,M=void 0===j?function(g,y){return g.score-y.score}:j,N=y.tokenize,F=y.matchAllTokens,K=y.includeMatches,R=y.includeScore,V=y.verbose;!function(g,y){if(!(g instanceof y))throw TypeError("Cannot call a class as a function")}(this,e),this.options={location:void 0===_?0:_,distance:void 0===b?100:b,threshold:void 0===S?.6:S,maxPatternLength:void 0===I?32:I,isCaseSensitive:void 0!==C&&C,tokenSeparator:void 0===A?/ +/g:A,findAllMatches:void 0!==T&&T,minMatchCharLength:void 0===w?1:w,id:void 0===k?null:k,keys:L,includeMatches:void 0!==K&&K,includeScore:void 0!==R&&R,shouldSort:void 0===P||P,getFn:void 0===D?O:D,sortFn:M,verbose:void 0!==V&&V,tokenize:void 0!==N&&N,matchAllTokens:void 0!==F&&F},this.setCollection(g),this._processKeys(L)}return g=e,y=[{key:"setCollection",value:function(g){return this.list=g,g}},{key:"_processKeys",value:function(g){if(this._keyWeights={},this._keyNames=[],g.length&&"string"==typeof g[0])for(var y=0,_=g.length;y<_;y+=1){var b=g[y];this._keyWeights[b]=1,this._keyNames.push(b)}else{for(var S=null,O=null,I=0,C=0,A=g.length;C<A;C+=1){var T=g[C];if(!T.hasOwnProperty("name"))throw Error('Missing "name" property in key object');var w=T.name;if(this._keyNames.push(w),!T.hasOwnProperty("weight"))throw Error('Missing "weight" property in key object');var k=T.weight;if(k<0||k>1)throw Error('"weight" property in key must bein the range of [0, 1)');O=null==O?k:Math.max(O,k),S=null==S?k:Math.min(S,k),this._keyWeights[w]=k,I+=k}if(I>1)throw Error("Total of weights cannot exceed 1")}}},{key:"search",value:function(g){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(g,'"'));var _=this._prepareSearchers(g),b=_.tokenSearchers,S=_.fullSearcher,O=this._search(b,S
1);return this._computeScore(O),this.options.shouldSort&&this._sort(O),y.limit&&"number"==typeof y.limit&&(O=O.slice(0,y.limit)),this._format(O)}},{key:"_prepareSearchers",value:function(){var g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",y=[];if(this.options.tokenize)for(var _=g.split(this.options.tokenSeparator),S=0,O=_.length;S<O;S+=1)y.push(new b(_[S],this.options));return{tokenSearchers:y,fullSearcher:new b(g,this.options)}}},{key:"_search",value:function(){var g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],y=arguments.length>1?arguments[1]:void 0,_=this.list,b={},S=[];if("string"==typeof _[0]){for(var O=0,I=_.length;O<I;O+=1)this._analyze({key:"",value:_[O],record:O,index:O},{resultMap:b,results:S,tokenSearchers:g,fullSearcher:y});return S}for(var C=0,A=_.length;C<A;C+=1)for(var T=_[C],w=0,k=this._keyNames.length;w<k;w+=1){var x=this._keyNames[w];this._analyze({key:x,value:this.options.getFn(T,x),record:T,index:C},{resultMap:b,results:S,tokenSearchers:g,fullSearcher:y})}return S}},{key:"_analyze",value:function(g,y){var _=this,b=g.key,S=g.arrayIndex,O=g.value,C=g.record,A=g.index,T=y.tokenSearchers,w=void 0===T?[]:T,k=y.fullSearcher,x=y.resultMap,L=void 0===x?{}:x,P=y.results,D=void 0===P?[]:P;!function e(g,y,S,O){if(null!=y){if("string"==typeof y){var C=!1,A=-1,T=0;_._log("\nKey: ".concat(""===b?"--":b));var x=k.search(y);if(_._log('Full text: "'.concat(y,'", score: ').concat(x.score)),_.options.tokenize){for(var P=y.split(_.options.tokenSeparator),j=P.length,M=[],N=0,F=w.length;N<F;N+=1){var K=w[N];_._log('\nPattern: "'.concat(K.pattern,'"'));for(var R=!1,V=0;V<j;V+=1){var H=P[V],B=K.search(H),Y={};B.isMatch?(Y[H]=B.score,C=!0,R=!0,M.push(B.score)):(Y[H]=1,_.options.matchAllTokens||M.push(1)),_._log('Token: "'.concat(H,'", score: ').concat(Y[H]))}R&&(T+=1)}A=M[0];for(var G=M.length,W=1;W<G;W+=1)A+=M[W];A/=G,_._log("Token score average:",A)}var U=x.score;A>-1&&(U=(U+A)/2),_._log("Score average:",U);var q=!_.options.tokenize||!_.options.matchAllTokens||T>=w.length;if(_._log("\nCheck Matches: ".concat(q)),(C||x.isMatch)&&q){var z={key:b,arrayIndex:g,value:y,score:U};_.options.includeMatches&&(z.matchedIndices=x.matchedIndices);var J=L[O];J?J.output.push(z):(L[O]={item:S,output:[z]},D.push(L[O]))}}else if(I(y))for(var $=0,Z=y.length;$<Z;$+=1)e($,y[$],S,O)}}(void 0===S?-1:S,O,C,A)}},{key:"_computeScore",value:function(g){this._log("\n\nComputing score:\n");for(var y=this._keyWeights,_=!!Object.keys(y).length,b=0,S=g.length;b<S;b+=1){for(var O=g[b],I=O.output,C=I.length,A=1,T=0;T<C;T+=1){var w=I[T],k=w.key,x=_?y[k]:1;A*=Math.pow(0===w.score&&y&&y[k]>0?Number.EPSILON:w.score,x)}O.score=A,this._log(O)}}},{key:"_sort",value:function(g){this._log("\n\nSorting...."),g.sort(this.options.sortFn)}},{key:"_format",value:function(g){var y=[];if(this.options.verbose){var _=[];this._log("\n\nOutput:\n\n",JSON.stringify(g,function(g,y){if("object"===i(y)&&null!==y){if(-1!==_.indexOf(y))return;_.push(y)}return y},2)),_=null}var b=[];this.options.includeMatches&&b.push(function(g,y){var _=g.output;y.matches=[];for(var b=0,S=_.length;b<S;b+=1){var O=_[b];if(0!==O.matchedIndices.length){var I={indices:O.matchedIndices,value:O.value};O.key&&(I.key=O.key),O.hasOwnProperty("arrayIndex")&&O.arrayIndex>-1&&(I.arrayIndex=O.arrayIndex),y.matches.push(I)}}}),this.options.includeScore&&b.push(function(g,y){y.score=g.score});for(var S=0,O=g.length;S<O;S+=1){var I=g[S];if(this.options.id&&(I.item=this.options.getFn(I.item,this.options.id)[0]),b.length){for(var C={item:I.item},A=0,T=b.length;A<T;A+=1)b[A](I,C);y.push(C)}else y.push(I.item)}return y}},{key:"_log",value:function(){var g;this.options.verbose&&(g=console).log.apply(g,arguments)}}],r(g.prototype,y),e}()},function(g,y,_){function i(g,y){for(var _=0;_<y.length;_++){var b=y[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}var b=_(2),S=_(3),O=_(6);g.exports=function(){var g,y;function e(g,y){var _=y.location,b=y.distance,S=y.threshold,I=y.maxPatternLength,C=void 0===I?32:I,A=y.isCaseSensitive,T=void 0!==A&&A,w=y.tokenSeparator,k=y.findAllMatches,x=y.minMatchCharLength,L=y.includeMatches;!function(g,y){if(!(g instanceof y))throw TypeError("Cannot call a class as a function")}(this,e),this.options={location:void 0===_?0:_,distance:void 0===b?100:b,threshold:void 0===S?.6:S,maxPatternLength:C,isCaseSensitive:T,tokenSeparator:void 0===w?/ +/g:w,findAllMatches:void 0!==k&&k,includeMatches:void 0!==L&&L,minMatchCharLength:void 0===x?1:x},this.pattern=T?g:g.toLowerCase(),this.pattern.length<=C&&(this.patternAlphabet=O(this.pattern))}return g=e,y=[{key:"search",value:function(g){var y=this.options,_=y.isCaseSensitive,O=y.includeMatches;if(_||(g=g.toLowerCase()),this.pattern===g){var I={isMatch:!0,score:0};return O&&(I.matchedIndices=[[0,g.length-1]]),I}var C=this.options,A=C.maxPatternLength,T=C.tokenSeparator;if(this.pattern.length>A)return b(g,this.pattern,T);var w=this.options,k=w.location,x=w.distance,L=w.threshold,P=w.findAllMatches,D=w.minMatchCharLength;return S(g,this.pattern,this.patternAlphabet,{location:k,distance:x,threshold:L,findAllMatches:P,minMatchCharLength:D,includeMatches:O})}}],i(g.prototype,y),e}()},function(g,y){var _=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;g.exports=function(g,y){var b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,S=new RegExp(y.replace(_,"\\$&").replace(b,"|")),O=g.match(S),I=!!O,C=[];if(I)for(var A=0,T=O.length;A<T;A+=1){var w=O[A];C.push([g.indexOf(w),w.length-1])}return{score:I?.5:1,isMatch:I,matchedIndices:C}}},function(g,y,_){var b=_(4),S=_(5);g.exports=function(g,y,_,O){for(var I=O.location,C=O.distance,A=void 0===C?100:C,T=O.threshold,w=O.findAllMatches,k=void 0!==w&&w,x=O.minMatchCharLength,L=O.includeMatches,P=void 0===I?0:I,D=g.length,j=void 0===T?.6:T,M=g.indexOf(y,P),N=y.length,F=[],K=0;K<D;K+=1)F[K]=0;-1!==M&&(j=Math.min(b(y,{errors:0,currentLocation:M,expectedLocation:P,distance:A}),j),-1!==(M=g.lastIndexOf(y,P+N))&&(j=Math.min(b(y,{errors:0,currentLocation:M,expectedLocation:P,distance:A}),j))),M=-1;for(var R=[],V=1,H=N+D,B=1<<(N<=31?N-1:30),Y=0;Y<N;Y+=1){for(var G=0,W=H;G<W;)b(y,{errors:Y,currentLocation:P+W,expectedLocation:P,distance:A})<=j?G=W:H=W,W=Math.floor((H-G)/2+G);H=W;var U=Math.max(1,P-W+1),q=k?D:Math.min(P+W,D)+N,z=Array(q+2);z[q+1]=(1<<Y)-1;for(var J=q;J>=U;J-=1){var $=J-1,Z=_[g.charAt($)];if(Z&&(F[$]=1),z[J]=(z[J+1]<<1|1)&Z,0!==Y&&(z[J]|=(R[J+1]|R[J])<<1|1|R[J+1]),z[J]&B&&(V=b(y,{errors:Y,currentLocation:$,expectedLocation:P,distance:A}))<=j){if(j=V,(M=$)<=P)break;U=Math.max(1,2*P-M)}}if(b(y,{errors:Y+1,currentLocation:P,expectedLocation:P,distance:A})>j)break;R=z}var Q={isMatch:M>=0,score:0===V?.001:V};return void 0!==L&&L&&(Q.matchedIndices=S(F,void 0===x?1:x)),Q}},function(g,y){g.exports=function(g,y){var _=y.errors,b=y.currentLocation,S=y.expectedLocation,O=y.distance,I=void 0===O?100:O,C=(void 0===_?0:_)/g.length,A=Math.abs((void 0===S?0:S)-(void 0===b?0:b));return I?C+A/I:A?1:C}},function(g,y){g.exports=function(){for(var g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,_=[],b=-1,S=-1,O=0,I=g.length;O<I;O+=1){var C=g[O];C&&-1===b?b=O:C||-1===b||((S=O-1)-b+1>=y&&_.push([b,S]),b=-1)}return g[O-1]&&O-b>=y&&_.push([b,O-1]),_}},function(g,y){g.exports=function(g){for(var y={},_=g.length,b=0;b<_;b+=1)y[g.charAt(b)]=0;for(var S=0;S<_;S+=1)y[g.charAt(S)]|=1<<_-S-1;return y}},function(g,y){var n=function(g){return Array.isArray?Array.isArray(g):"[object Array]"===Object.prototype.toString.call(g)},i=function(g){return null==g?"":function(g){if("string"==typeof g)return g;var y=g+"";return"0"==y&&1/g==-1/0?"-0":y}(g)},r=function(g){return"string"==typeof g},o=function(g){return"number"==typeof g};g.exports={get:function(g,y){var _=[];return function e(g,y){if(y){var b=y.indexOf("."),S=y,O=null;-1!==b&&(S=y.slice(0,b),O=y.slice(b+1));var I=g[S];if(null!=I)if(!O&&(r(I)||o(I)))_.push(i(I));else if(n(I))for(var C=0,A=I.length;C<A;C+=1)e(I[C],O);else O&&e(I,O)}else _.push(g)}(g,y),_},isArray:n,isString:r,isNum:o,toString:i}}];function t(_){if(y[_])return y[_].exports;var b=y[_]={i:_,l:!1,exports:{}};return g[_].call(b.exports,b,b.exports,t),b.l=!0,b.exports}var y={};return t.m=g,t.c=y,t.d=function(g,y,_){t.o(g,y)||Object.defineProperty(g,y,{enumerable:!0,get:_})},t.r=function(g){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(g,"__esModule",{value:!0})},t.t=function(g,y){if(1&y&&(g=t(g)),8&y||4&y&&"object"==typeof g&&g&&g.__esModule)return g;var _=Object.create(null);if(t.r(_),Object.defineProperty(_,"default",{enumerable:!0,value:g}),2&y&&"string"!=typeof g)for(var b in g)t.d(_,b,(function(y){return g[y]}).bind(null,b));return _},t.n=function(g){var y=g&&g.__esModule?function(){return g.default}:function(){return g};return t.d(y,"a",y),y},t.o=function(g,y){return Object.prototype.hasOwnProperty.call(g,y)},t.p="",t(t.s=0)}()},function(g,y,_){"use strict";function i(g){return!!g&&"object"==typeof g}function r(g){var y=Object.prototype.toString.call(g);return"[object RegExp]"===y||"[object Date]"===y||o(g)}function o(g){return g.$$typeof===b}function s(g){return Array.isArray(g)?[]:{}}function a(g,y){return!1!==y.clone&&y.isMergeableObject(g)?u(s(g),g,y):g}function c(g,y,_){return g.concat(y).map(function(g){return a(g,_)})}function l(g,y,_){var b={};return _.isMergeableObject(g)&&Object.keys(g).forEach(function(y){b[y]=a(g[y],_)}),Object.keys(y).forEach(function(S){_.isMergeableObject(y[S])&&g[S]?b[S]=u(g[S],y[S],_):b[S]=a(y[S],_)}),b}function u(g,y,_){(_=_||{}
1).arrayMerge=_.arrayMerge||c,_.isMergeableObject=_.isMergeableObject||h;var b=Array.isArray(y);return b===Array.isArray(g)?b?_.arrayMerge(g,y,_):l(g,y,_):a(y,_)}Object.defineProperty(y,"__esModule",{value:!0});var h=function(g){return i(g)&&!r(g)},b="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;u.all=function(g,y){if(!Array.isArray(g))throw Error("first argument should be an array");return g.reduce(function(g,_){return u(g,_,y)},{})},y.default=u},function(g,y,_){"use strict";_(42),_(52),_(71),_(73)},function(g,y,_){_(43),g.exports=_(2).Array.find},function(g,y,_){"use strict";var b=_(6),S=_(48)(5),O=!0;"find"in[]&&[,].find(function(){O=!1}),b(b.P+b.F*O,"Array",{find:function(g){return S(this,g,arguments.length>1?arguments[1]:void 0)}}),_(28)("find")},function(g,y,_){g.exports=!_(10)&&!_(23)(function(){return 7!=Object.defineProperty(_(24)("div"),"a",{get:function(){return 7}}).a})},function(g,y,_){var b=_(9);g.exports=function(g,y){var _,S;if(!b(g))return g;if(y&&"function"==typeof(_=g.toString)&&!b(S=_.call(g))||"function"==typeof(_=g.valueOf)&&!b(S=_.call(g))||!y&&"function"==typeof(_=g.toString)&&!b(S=_.call(g)))return S;throw TypeError("Can't convert object to primitive value")}},function(g,y,_){g.exports=_(14)("native-function-to-string",Function.toString)},function(g,y){g.exports=function(g){if("function"!=typeof g)throw TypeError(g+" is not a function!");return g}},function(g,y,_){var b=_(15),S=_(27),O=_(17),I=_(19),C=_(49);g.exports=function(g,y){var _=1==g,A=2==g,T=3==g,w=4==g,k=6==g,x=5==g||k,L=y||C;return function(y,C,P){for(var D,j,M=O(y),N=S(M),F=b(C,P,3),K=I(N.length),R=0,V=_?L(y,K):A?L(y,0):void 0;K>R;R++)if((x||R in N)&&(j=F(D=N[R],R,M),g)){if(_)V[R]=j;else if(j)switch(g){case 3:return!0;case 5:return D;case 6:return R;case 2:V.push(D)}else if(w)return!1}return k?-1:T||w?w:V}}},function(g,y,_){var b=_(50);g.exports=function(g,y){return new(b(g))(y)}},function(g,y,_){var b=_(9),S=_(51),O=_(0)("species");g.exports=function(g){var y;return S(g)&&("function"==typeof(y=g.constructor)&&(y===Array||S(y.prototype))&&(y=void 0),b(y)&&null===(y=y[O])&&(y=void 0)),void 0===y?Array:y}},function(g,y,_){var b=_(16);g.exports=Array.isArray||function(g){return"Array"==b(g)}},function(g,y,_){_(53),_(64),g.exports=_(2).Array.from},function(g,y,_){"use strict";var b=_(54)(!0);_(55)(String,"String",function(g){this._t=String(g),this._i=0},function(){var g,y=this._t,_=this._i;return _>=y.length?{value:void 0,done:!0}:(g=b(y,_),this._i+=g.length,{value:g,done:!1})})},function(g,y,_){var b=_(20),S=_(18);g.exports=function(g){return function(y,_){var O,I,C=String(S(y)),A=b(_),T=C.length;return A<0||A>=T?g?"":void 0:(O=C.charCodeAt(A))<55296||O>56319||A+1===T||(I=C.charCodeAt(A+1))<56320||I>57343?g?C.charAt(A):O:g?C.slice(A,A+2):I-56320+(O-55296<<10)+65536}}},function(g,y,_){"use strict";var b=_(26),S=_(6),O=_(25),I=_(4),C=_(21),A=_(56),T=_(32),w=_(63),k=_(0)("iterator"),x=!([].keys&&"next"in[].keys()),f=function(){return this};g.exports=function(g,y,_,L,P,D,j){A(_,y,L);var M,N,F,E=function(g){if(!x&&g in H)return H[g];switch(g){case"keys":case"values":return function(){return new _(this,g)}}return function(){return new _(this,g)}},K=y+" Iterator",R="values"==P,V=!1,H=g.prototype,B=H[k]||H["@@iterator"]||P&&H[P],Y=B||E(P),G=P?R?E("entries"):Y:void 0,W="Array"==y&&H.entries||B;if(W&&(F=w(W.call(new g)))!==Object.prototype&&F.next&&(T(F,K,!0),b||"function"==typeof F[k]||I(F,k,f)),R&&B&&"values"!==B.name&&(V=!0,Y=function(){return B.call(this)}),(!b||j)&&(x||V||!H[k])&&I(H,k,Y),C[y]=Y,C[K]=f,P)if(M={values:R?Y:E("values"),keys:D?Y:E("keys"),entries:G},j)for(N in M)N in H||O(H,N,M[N]);else S(S.P+S.F*(x||V),y,M);return M}},function(g,y,_){"use strict";var b=_(57),S=_(12),O=_(32),I={};_(4)(I,_(0)("iterator"),function(){return this}),g.exports=function(g,y,_){g.prototype=b(I,{next:S(1,_)}),O(g,y+" Iterator")}},function(g,y,_){var b=_(8),S=_(58),O=_(31),I=_(22)("IE_PROTO"),a=function(){},c=function(){var g,y=_(24)("iframe"),b=O.length;for(y.style.display="none",_(62).appendChild(y),y.src="javascript:",(g=y.contentWindow.document).open(),g.write("<script>document.F=Object<\/script>"),g.close(),c=g.F;b--;)delete c.prototype[O[b]];return c()};g.exports=Object.create||function(g,y){var _;return null!==g?(a.prototype=b(g),_=new a,a.prototype=null,_[I]=g):_=c(),void 0===y?_:S(_,y)}},function(g,y,_){var b=_(7),S=_(8),O=_(59);g.exports=_(10)?Object.defineProperties:function(g,y){S(g);for(var _,I=O(y),C=I.length,A=0;C>A;
1)b.f(g,_=I[A++],y[_]);return g}},function(g,y,_){var b=_(60),S=_(31);g.exports=Object.keys||function(g){return b(g,S)}},function(g,y,_){var b=_(11),S=_(29),O=_(30)(!1),I=_(22)("IE_PROTO");g.exports=function(g,y){var _,C=S(g),A=0,T=[];for(_ in C)_!=I&&b(C,_)&&T.push(_);for(;y.length>A;)b(C,_=y[A++])&&(~O(T,_)||T.push(_));return T}},function(g,y,_){var b=_(20),S=Math.max,O=Math.min;g.exports=function(g,y){return(g=b(g))<0?S(g+y,0):O(g,y)}},function(g,y,_){var b=_(3).document;g.exports=b&&b.documentElement},function(g,y,_){var b=_(11),S=_(17),O=_(22)("IE_PROTO"),I=Object.prototype;g.exports=Object.getPrototypeOf||function(g){return b(g=S(g),O)?g[O]:"function"==typeof g.constructor&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?I:null}},function(g,y,_){"use strict";var b=_(15),S=_(6),O=_(17),I=_(65),C=_(66),A=_(19),T=_(67),w=_(68);S(S.S+!_(70)(function(g){Array.from(g)})*S.F,"Array",{from:function(g){var y,_,S,k,x=O(g),L="function"==typeof this?this:Array,P=arguments.length,D=P>1?arguments[1]:void 0,j=void 0!==D,M=0,N=w(x);if(j&&(D=b(D,P>2?arguments[2]:void 0,2)),void 0==N||L==Array&&C(N))for(_=new L(y=A(x.length));y>M;M++)T(_,M,j?D(x[M],M):x[M]);else for(k=N.call(x),_=new L;!(S=k.next()).done;M++)T(_,M,j?I(k,D,[S.value,M],!0):S.value);return _.length=M,_}})},function(g,y,_){var b=_(8);g.exports=function(g,y,_,S){try{return S?y(b(_)[0],_[1]):y(_)}catch(y){var O=g.return;throw void 0!==O&&b(O.call(g)),y}}},function(g,y,_){var b=_(21),S=_(0)("iterator"),O=Array.prototype;g.exports=function(g){return void 0!==g&&(b.Array===g||O[S]===g)}},function(g,y,_){"use strict";var b=_(7),S=_(12);g.exports=function(g,y,_){y in g?b.f(g,y,S(0,_)):g[y]=_}},function(g,y,_){var b=_(69),S=_(0)("iterator"),O=_(21);g.exports=_(2).getIteratorMethod=function(g){if(void 0!=g)return g[S]||g["@@iterator"]||O[b(g)]}},function(g,y,_){var b=_(16),S=_(0)("toStringTag"),O="Arguments"==b(function(){return arguments}()),s=function(g,y){try{return g[y]}catch(g){}};g.exports=function(g){var y,_,I;return void 0===g?"Undefined":null===g?"Null":"string"==typeof(_=s(y=Object(g),S))?_:O?b(y):"Object"==(I=b(y))&&"function"==typeof y.callee?"Arguments":I}},function(g,y,_){var b=_(0)("iterator"),S=!1;try{var O=[7][b]();O.return=function(){S=!0},Array.from(O,function(){throw 2})}catch(g){}g.exports=function(g,y){if(!y&&!S)return!1;var _=!1;try{var O=[7],I=O[b]();I.next=function(){return{done:_=!0}},O[b]=function(){return I},g(O)}catch(g){}return _}},function(g,y,_){_(72),g.exports=_(2).Array.includes},function(g,y,_){"use strict";var b=_(6),S=_(30)(!0);b(b.P,"Array",{includes:function(g){return S(this,g,arguments.length>1?arguments[1]:void 0)}}),_(28)("includes")},function(g,y){try{var _=new window.CustomEvent("test");if(_.preventDefault(),!0!==_.defaultPrevented)throw Error("Could not prevent default")}catch(g){var i=function(g,y){var _,b;return y=y||{bubbles:!1,cancelable:!1,detail:void 0},(_=document.createEvent("CustomEvent")).initCustomEvent(g,y.bubbles,y.cancelable,y.detail),b=_.preventDefault,_.preventDefault=function(){b.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(g){this.defaultPrevented=!0}},_};i.prototype=window.Event.prototype,window.CustomEvent=i}},function(g,y,_){"use strict";function i(g){if(Array.isArray(g)){for(var y=0,_=Array(g.length);y<g.length;y++)_[y]=g[y];return _}return Array.from(g)}function r(g,y){if(!(g instanceof y))throw TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var b,S=function(){function e(g,y){for(var _=0;_<y.length;_++){var b=y[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,y,_){return y&&e(g.prototype,y),_&&e(g,_),g}}(),O=_(33),I=(b=_(79))&&b.__esModule?b:{default:b};y.default=function(){function e(){r(this,e),this._store=(0,O.createStore)(I.default,window.devToolsExtension?window.devToolsExtension():void 0)}return S(e,[{key:"subscribe",value:function(g){this._store.subscribe(g)}},{key:"dispatch",value:function(g){this._store.dispatch(g)}},{key:"getChoiceById",value:function(g){return!!g&&this.activeChoices.find(function(y){return y.id===parseInt(g,10)})}},{key:"getGroupById",value:function(g){return this.groups.find(function(y){return y.id===parseInt(g,10)})}},{key:"state",get:function(){return this._store.getState()}},{key:"items",get:function(){return this.state.items}},{key:"activeItems",get:function(){return this.items.filter(function(g){return!0===g.active})}},{key:"highlightedActiveItems",get:function(){return this.items.filter(function(g){return g.active&&g.highlighted})}},{key:"choices",get:function(){return this.state.choices}},{key:"activeChoices",get:function(){return this.choices.filter(function(g){return!0===g.active})}},{key:"selectableChoices",get:function(){return this.choices.filter(function(g){return!0!==g.disabled})}},{key:"searchableChoices",get:function(){return this.selectableChoices.filter(function(g){return!0!==g.placeholder})}},{key:"placeholderChoice",get:function(){return[].concat(i(this.choices)).reverse().find(function(g){return!0===g.placeholder})}},{key:"groups",get:function(){return this.state.groups}},{key:"activeGroups",get:function(){var g=this.groups,y=this.choices;return g.filter(function(g){var _=!0===g.active&&!1===g.disabled,b=y.some(function(g){return!0===g.active&&!1===g.disabled});return _&&b},[])}}]),e}()},function(g,y,_){"use strict";(function(g){y.a="object"==typeof g&&g&&g.Object===Object&&g}).call(y,_(34))},function(g,y,_){"use strict";(function(g,b){var S,O=_(78);S="u">typeof self?self:"u">typeof window?window:void 0!==g?g:b,y.a=Object(O.a)(S)}).call(y,_(34),_(77)(g))},function(g,y){g.exports=function(g){if(!g.webpackPolyfill){var y=Object.create(g);y.children||(y.children=[]),Object.defineProperty(y,"loaded",{enumerable:!0,get:function(){return y.l}}),Object.defineProperty(y,"id",{enumerable:!0,get:function(){return y.i}}),Object.defineProperty(y,"exports",{enumerable:!0}),y.webpackPolyfill=1}return y}},function(g,y,_){"use strict";y.a=function(g){var y,_=g.Symbol;return"function"==typeof _?_.observable?y=_.observable:(y=_("observable"),_.observable=y):y="@@observable",y}},function(g,y,_){"use strict";function i(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(y,"__esModule",{value:!0});var b=_(33),S=i(_(80)),O=i(_(81)),I=i(_(82)),C=_(1),A=(0,b.combineReducers)({items:S.default,groups:O.default,choices:I.default});y.default=function(g,y){var _=g;if("CLEAR_ALL"===y.type)_=void 0;else if("RESET_TO"===y.type)return(0,C.cloneObject)(y.state);return A(_,y)}},function(g,y,_){"use strict";function i(g){if(Array.isArray(g)){for(var y=0,_=Array(g.length);y<g.length;y++)_[y]=g[y];return _}return Array.from(g)}function r(){var g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,y=arguments[1];switch(y.type){case"ADD_ITEM":return[].concat(i(g),[{id:y.id,choiceId:y.choiceId,groupId:y.groupId,value:y.value,label:y.label,active:!0,highlighted:!1,customProperties:y.customProperties,placeholder:y.placeholder||!1,keyCode:null}]).map(function(g){return g.highlighted=!1,g});case"REMOVE_ITEM":return g.map(function(g){return g.id===y.id&&(g.active=!1),g});case"HIGHLIGHT_ITEM":return g.map(function(g){return g.id===y.id&&(g.highlighted=y.highlighted),g});default:return g}}Object.defineProperty(y,"__esModule",{value:!0}),y.default=r;var b=y.defaultState=[]},function(g,y,_){"use strict";function i(g){if(Array.isArray(g)){for(var y=0,_=Array(g.length);y<g.length;y++)_[y]=g[y];return _}return Array.from(g)}function r(){var g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,y=arguments[1];switch(y.type){case"ADD_GROUP":return[].concat(i(g),[{id:y.id,value:y.value,active:y.active,disabled:y.disabled}]);case"CLEAR_CHOICES":return[];default:return g}}Object.defineProperty(y,"__esModule",{value:!0}),y.default=r;var b=y.defaultState=[]},function(g,y,_){"use strict";function i(g){if(Array.isArray(g)){for(var y=0,_=Array(g.length);y<g.length;y++)_[y]=g[y];return _}return Array.from(g)}function r(){var g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,y=arguments[1];switch(y.type){case"ADD_CHOICE":return[].concat(i(g),[{id:y.id,elementId:y.elementId,groupId:y.groupId,value:y.value,label:y.label||y.value,disabled:y.disabled||!1,selected:!1,active:!0,score:9999,customProperties:y.customProperties,placeholder:y.placeholder||!1,keyCode:null}]);case"ADD_ITEM":return y.activateOptions?g.map(function(g){return g.active=y.active,g}):y.choiceId>-1?g.map(function(g){return g.id===parseInt(y.choiceId,10)&&(g.selected=!0),g}):g;case"REMOVE_ITEM":return y.choiceId>-1?g.map(function(g){return g.id===parseInt(y.choiceId,10)&&(g.selected=!1),g}):g;case"FILTER_CHOICES":return g.map(function(g){return g.active=y.results.some(function(y){var _=y.item,b=y.score;return _.id===g.id&&(g.score=b,!0)}),g});case"ACTIVATE_CHOICES":return g.map(function(g){return g.active=y.active,g});case"CLEAR_CHOICES":return b;default:return g}}Object.defineProperty(y,"__esModule",{value:!0}),y.default=r;var b=y.defaultState=[]},function(g,y,_){"use strict";function i(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(y,"__esModule",{value:!0}),y.WrappedSelect=y.WrappedInput=y.List=y.Input=y.Container=y.Dropdown=void 0;var b=i(_(84)),S=i(_(85)),O=i(_(86)),I=i(_(87)),C=i(_(88)),A=i(_(89));y.Dropdown=b.default,y.Container=S.default,y.Input=O.default,y.List=I.default,y.WrappedInput=C.default,y.WrappedSelect=A.default},function(g,y,_){"use strict";function i(g,y){if(!(g instanceof y))throw TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var b=function(){function e(g,y){for(var _=0;_<y.length;_++){var b=y[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.ke
1y,b)}}return function(g,y,_){return y&&e(g.prototype,y),_&&e(g,_),g}}();y.default=function(){function e(g){var y=g.element,_=g.type,b=g.classNames;i(this,e),Object.assign(this,{element:y,type:_,classNames:b}),this.isActive=!1}return b(e,[{key:"distanceFromTopWindow",value:function(){return this.dimensions=this.element.getBoundingClientRect(),this.position=Math.ceil(this.dimensions.top+window.pageYOffset+this.element.offsetHeight),this.position}},{key:"getChild",value:function(g){return this.element.querySelector(g)}},{key:"show",value:function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this}},{key:"hide",value:function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this}}]),e}()},function(g,y,_){"use strict";function i(g,y){if(!(g instanceof y))throw TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var b=function(){function e(g,y){for(var _=0;_<y.length;_++){var b=y[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,y,_){return y&&e(g.prototype,y),_&&e(g,_),g}}(),S=_(1);y.default=function(){function e(g){var y=g.element,_=g.type,b=g.classNames,S=g.position;i(this,e),Object.assign(this,{element:y,classNames:b,type:_,position:S}),this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return b(e,[{key:"addEventListeners",value:function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)}},{key:"removeEventListeners",value:function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)}},{key:"shouldFlip",value:function(g){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,S.getWindowHeight)();if(void 0===g)return!1;var _=!1;return"auto"===this.position?_=g>=y:"top"===this.position&&(_=!0),_}},{key:"setActiveDescendant",value:function(g){this.element.setAttribute("aria-activedescendant",g)}},{key:"removeActiveDescendant",value:function(){this.element.removeAttribute("aria-activedescendant")}},{key:"open",value:function(g){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(g)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)}},{key:"close",value:function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)}},{key:"focus",value:function(){this.isFocussed||this.element.focus()}},{key:"addFocusState",value:function(){this.element.classList.add(this.classNames.focusState)}},{key:"removeFocusState",value:function(){this.element.classList.remove(this.classNames.focusState)}},{key:"enable",value:function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),"select-one"===this.type&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1}},{key:"disable",value:function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),"select-one"===this.type&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0}},{key:"wrap",value:function(g){(0,S.wrap)(g,this.element)}},{key:"unwrap",value:function(g){this.element.parentNode.insertBefore(g,this.element),this.element.parentNode.removeChild(this.element)}},{key:"addLoadingState",value:function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0}},{key:"removeLoadingState",value:function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1}},{key:"_onFocus",value:function(){this.isFocussed=!0}},{key:"_onBlur",value:function(){this.isFocussed=!1}}]),e}()},function(g,y,_){"use strict";function i(g,y){if(!(g instanceof y))throw TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var b=function(){function e(g,y){for(var _=0;_<y.length;_++){var b=y[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.ke
1y,b)}}return function(g,y,_){return y&&e(g.prototype,y),_&&e(g,_),g}}(),S=_(1);y.default=function(){function e(g){var y=g.element,_=g.type,b=g.classNames,S=g.placeholderValue;i(this,e),Object.assign(this,{element:y,type:_,classNames:b,placeholderValue:S}),this.element=y,this.classNames=b,this.isFocussed=this.element===document.activeElement,this.isDisabled=!1,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return b(e,[{key:"addEventListeners",value:function(){this.element.addEventListener("input",this._onInput),this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur),this.element.form&&this.element.form.addEventListener("reset",this._onFormReset)}},{key:"removeEventListeners",value:function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur),this.element.form&&this.element.form.removeEventListener("reset",this._onFormReset)}},{key:"enable",value:function(){this.element.removeAttribute("disabled"),this.isDisabled=!1}},{key:"disable",value:function(){this.element.setAttribute("disabled",""),this.isDisabled=!0}},{key:"focus",value:function(){this.isFocussed||this.element.focus()}},{key:"blur",value:function(){this.isFocussed&&this.element.blur()}},{key:"clear",value:function(){var g=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.element.value&&(this.element.value=""),g&&this.setWidth(),this}},{key:"setWidth",value:function(g){var y=this,n=function(g){y.element.style.width=g};if(this._placeholderValue){var _=this.element.value.length>=this._placeholderValue.length/1.25;(this.element.value&&_||g)&&this.calcWidth(n)}else this.calcWidth(n)}},{key:"calcWidth",value:function(g){return(0,S.calcWidthOfInput)(this.element,g)}},{key:"setActiveDescendant",value:function(g){this.element.setAttribute("aria-activedescendant",g)}},{key:"removeActiveDescendant",value:function(){this.element.removeAttribute("aria-activedescendant")}},{key:"_onInput",value:function(){"select-one"!==this.type&&this.setWidth()}},{key:"_onPaste",value:function(g){g.target===this.element&&this.preventPaste&&g.preventDefault()}},{key:"_onFocus",value:function(){this.isFocussed=!0}},{key:"_onBlur",value:function(){this.isFocussed=!1}},{key:"placeholder",set:function(g){this.element.placeholder=g}},{key:"value",set:function(g){this.element.value=""+g},get:function(){return(0,S.stripHTML)(this.element.value)}}]),e}()},function(g,y,_){"use strict";function i(g,y){if(!(g instanceof y))throw TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var b=function(){function e(g,y){for(var _=0;_<y.length;_++){var b=y[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,y,_){return y&&e(g.prototype,y),_&&e(g,_),g}}(),S=_(5);y.default=function(){function e(g){var y=g.element;i(this,e),Object.assign(this,{element:y}),this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight,this.hasChildren=!!this.element.children}return b(e,[{key:"clear",value:function(){this.element.innerHTML=""}},{key:"append",value:function(g){this.element.appendChild(g)}},{key:"getChild",value:function(g){return this.element.querySelector(g)}},{key:"scrollToTop",value:function(){this.element.scrollTop=0}},{key:"scrollToChoice",value:function(g,y){var _=this;if(g){var b=this.element.offsetHeight,S=g.offsetHeight,O=g.offsetTop+S,I=this.element.scrollTop+b,C=y>0?this.element.scrollTop+O-I:g.offsetTop;requestAnimationFrame(function(g){_._animateScroll(g,C,y)})}}},{key:"_scrollDown",value:function(g,y,_){var b=(_-g)/y;this.element.scrollTop=g+(b>1?b:1)}},{key:"_scrollUp",value:function(g,y,_){var b=(g-_)/y;this.element.scrollTop=g-(b>1?b:1)}},{key:"_animateScroll",value:function(g,y,_){var b=this,O=S.SCROLLING_SPEED,I=this.element.scrollTop,C=!1;_>0?(this._scrollDown(I,O,y),I<y&&(C=!0)):(this._scrollUp(I,O,y),I>y&&(C=!0)),C&&requestAnimationFrame(function(){b._animateScroll(g,y,_)})}}]),e}()},function(g,y,_){"use strict";function i(g,y){if(!(g instanceof y))throw TypeError("Cannot call a class as a function")}function r(g,y){if(!g)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&("object"==typeof y||"function"==typeof y)?y:g}function o(g,y){if("function"!=typeof y&&null!==y)throw TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}Object.defineProperty(y,"__esModule",{value:!0});var b,S=function(){function e(g,y){for(var _=0;_<y.length;_++){var b=y[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.ke
1y,b)}}return function(g,y,_){return y&&e(g.prototype,y),_&&e(g,_),g}}(),a=function e(g,y,_){null===g&&(g=Function.prototype);var b=Object.getOwnPropertyDescriptor(g,y);if(void 0===b){var S=Object.getPrototypeOf(g);return null===S?void 0:e(S,y,_)}if("value"in b)return b.value;var O=b.get;if(void 0!==O)return O.call(_)},O=(b=_(35))&&b.__esModule?b:{default:b},I=_(1);y.default=function(g){function t(g){var y=g.element,_=g.classNames,b=g.delimiter;i(this,t);var S=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{element:y,classNames:_}));return S.delimiter=b,S}return o(t,g),S(t,[{key:"value",set:function(g){var y=(0,I.reduceToValues)(g).join(this.delimiter);this.element.setAttribute("value",y),this.element.value=y},get:function(){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this)}}]),t}(O.default)},function(g,y,_){"use strict";function i(g){return g&&g.__esModule?g:{default:g}}function r(g,y){if(!(g instanceof y))throw TypeError("Cannot call a class as a function")}function o(g,y){if(!g)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&("object"==typeof y||"function"==typeof y)?y:g}function s(g,y){if("function"!=typeof y&&null!==y)throw TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}Object.defineProperty(y,"__esModule",{value:!0});var b=function(){function e(g,y){for(var _=0;_<y.length;_++){var b=y[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,y,_){return y&&e(g.prototype,y),_&&e(g,_),g}}(),S=i(_(35)),O=i(_(36));y.default=function(g){function t(g){var y=g.element,_=g.classNames;return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{element:y,classNames:_}))}return s(t,g),b(t,[{key:"appendDocFragment",value:function(g){this.element.innerHTML="",this.element.appendChild(g)}},{key:"placeholderOption",get:function(){return this.element.querySelector("option[placeholder]")}},{key:"optionGroups",get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))}},{key:"options",get:function(){return Array.from(this.element.options)},set:function(g){var y=document.createDocumentFragment(),n=function(g){var _=O.default.option(g);y.appendChild(_)};g.forEach(function(g){return n(g)}),this.appendDocFragment(y)}}]),t}(S.default)},function(g,y,_){var b;!function(){"use strict";function n(){for(var g=[],y=0;y<arguments.length;y++){var b=arguments[y];if(b){var S=typeof b;if("string"===S||"number"===S)g.push(b);else if(Array.isArray(b)&&b.length){var O=n.apply(null,b);O&&g.push(O)}else if("object"===S)for(var I in b)_.call(b,I)&&b[I]&&g.push(I)}}return g.join(" ")}var _={}.hasOwnProperty;void 0!==g&&g.exports?(n.default=n,g.exports=n):void 0!==(b=(function(){return n}).apply(y,[]))&&(g.exports=b)}()},function(g,y,_){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.clearChoices=y.activateChoices=y.filterChoices=y.addChoice=void 0;var b=_(5);y.addChoice=function(g){var y=g.value,_=g.label,S=g.id,O=g.groupId,I=g.disabled,C=g.elementId,A=g.customProperties,T=g.placeholder,w=g.keyCode;return{type:b.ACTION_TYPES.ADD_CHOICE,value:y,label:_,id:S,groupId:O,disabled:I,elementId:C,customProperties:A,placeholder:T,keyCode:w}},y.filterChoices=function(g){return{type:b.ACTION_TYPES.FILTER_CHOICES,results:g}},y.activateChoices=function(){var g=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:b.ACTION_TYPES.ACTIVATE_CHOICES,active:g}},y.clearChoices=function(){return{type:b.ACTION_TYPES.CLEAR_CHOICES}}},function(g,y,_){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.highlightItem=y.removeItem=y.addItem=void 0;var b=_(5);y.addItem=function(g){var y=g.value,_=g.label,S=g.id,O=g.choiceId,I=g.groupId,C=g.customProperties,A=g.placeholder,T=g.keyCode;return{type:b.ACTION_TYPES.ADD_ITEM,value:y,label:_,id:S,choiceId:O,groupId:I,customProperties:C,placeholder:A,keyCode:T}},y.removeItem=function(g,y){return{type:b.ACTION_TYPES.REMOVE_ITEM,id:g,choiceId:y}},y.highlightItem=function(g,y){return{type:b.ACTION_TYPES.HIGHLIGHT_ITEM,id:g,highlighted:y}}},function(g,y,_){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.addGroup=void 0;var b=_(5);y.addGroup=function(g,y,_,S){return{type:b.ACTION_TYPES.ADD_GROUP,value:g,id:y,active:_,disabled:S}}},function(g,y,_){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.clearAll=function(){return{type:"CLEAR_ALL"}},y.resetTo=function(g){return{type:"RESET_TO",state:g}}}];function t(_){if(y[_])return y[_].exports;var b=y[_]={i:_,l:!1,exports:{}};return g[_].call(b.exports,b,b.exports,t),b.l=!0,b.exports}var y={};return t.m=g,t.c=y,t.d=function(g,y,_){t.o(g,y)||Object.defineProperty(g,y,{configurable:!1,enumerable:!0,get:_})},t.n=function(g){var y=g&&g.__esModule?function(){return g.default}:function(){return g};return t.d(y,"a",y),y},t.o=function(g,y){return Object.prototype.hasOwnProperty.call(g,y)},t.p="/public/assets/scripts/",t(t.s=37)}()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.