/*! For license information please see bloodhound.js.LICENSE.txt */ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("jQuery"));else if("function"==typeof define&&define.amd)define(["jQuery"],e);else{var r="object"==typeof exports?e(require("jQuery")):e(t.jQuery);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,(function(t){return function(){var e={5469:function(t,e,r){var n,i,o;o=this,n=[r(1145)],i=function(t){return o.Bloodhound=(e=t,r=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:e.isArray,isFunction:e.isFunction,isObject:e.isPlainObject,isUndefined:function(t){return void 0===t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(t){return t instanceof e},toStr:function(t){return r.isUndefined(t)||null===t?"":t+""},bind:e.proxy,each:function(t,r){e.each(t,(function(t,e){return r(e,t)}))},map:e.map,filter:e.grep,every:function(t,r){var n=!0;return t?(e.each(t,(function(e,i){if(!(n=r.call(null,i,e,t)))return!1})),!!n):n},some:function(t,r){var n=!1;return t?(e.each(t,(function(e,i){if(n=r.call(null,i,e,t))return!1})),!!n):n},mixin:e.extend,identity:function(t){return t},clone:function(t){return e.extend(!0,{},t)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function(t){return e.isFunction(t)?t:function(){return String(t)}},defer:function(t){setTimeout(t,0)},debounce:function(t,e,r){var n,i;return function(){var o,s,u=this,c=arguments;return o=function(){n=null,r||(i=t.apply(u,c))},s=r&&!n,clearTimeout(n),n=setTimeout(o,e),s&&(i=t.apply(u,c)),i}},throttle:function(t,e){var r,n,i,o,s,u;return s=0,u=function(){s=new Date,i=null,o=t.apply(r,n)},function(){var c=new Date,a=e-(c-s);return r=this,n=arguments,a<=0?(clearTimeout(i),i=null,s=c,o=t.apply(r,n)):i||(i=setTimeout(u,a)),o}},stringify:function(t){return r.isString(t)?t:JSON.stringify(t)},noop:function(){}}}(),n="0.11.1",i=function(){"use strict";return{nonword:e,whitespace:t,obj:{nonword:n(e),whitespace:n(t)}};function t(t){return(t=r.toStr(t))?t.split(/\s+/):[]}function e(t){return(t=r.toStr(t))?t.split(/\W+/):[]}function n(t){return function(e){return e=r.isArray(e)?e:[].slice.call(arguments,0),function(n){var i=[];return r.each(e,(function(e){i=i.concat(t(r.toStr(n[e])))})),i}}}}(),s=function(){"use strict";function t(t){this.maxSize=r.isNumber(t)?t:100,this.reset(),this.maxSize<=0&&(this.set=this.get=e.noop)}function n(){this.head=this.tail=null}function i(t,e){this.key=t,this.val=e,this.prev=this.next=null}return r.mixin(t.prototype,{set:function(t,e){var r,n=this.list.tail;this.size>=this.maxSize&&(this.list.remove(n),delete this.hash[n.key],this.size--),(r=this.hash[t])?(r.val=e,this.list.moveToFront(r)):(r=new i(t,e),this.list.add(r),this.hash[t]=r,this.size++)},get:function(t){var e=this.hash[t];if(e)return this.list.moveToFront(e),e.val},reset:function(){this.size=0,this.hash={},this.list=new n}}),r.mixin(n.prototype,{add:function(t){this.head&&(t.next=this.head,this.head.prev=t),this.head=t,this.tail=this.tail||t},remove:function(t){t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev},moveToFront:function(t){this.remove(t),this.add(t)}}),t}(),u=function(){"use strict";var t;try{(t=window.localStorage).setItem("~~~","!"),t.removeItem("~~~")}catch(e){t=null}function n(e,n){this.prefix=["__",e,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+r.escapeRegExChars(this.prefix)),this.ls=n||t,!this.ls&&this._noop()}return r.mixin(n.prototype,{_prefix:function(t){return this.prefix+t},_ttlKey:function(t){return this._prefix(t)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=r.noop},_safeSet:function(t,e){try{this.ls.setItem(t,e)}catch(t){"QuotaExceededError"===t.name&&(this.clear(),this._noop())}},get:function(t){return this.isExpired(t)&&this.remove(t),s(this.ls.getItem(this._prefix(t)))},set:function(t,e,n){return r.isNumber(n)?this._safeSet(this._ttlKey(t),o(i()+n)):this.ls.removeItem(this._ttlKey(t)),this._safeSet(this._prefix(t),o(e))},remove:function(t){return this.ls.removeItem(this._ttlKey(t)),this.ls.removeItem(this._prefix(t)),this},clear:function(){var e,r=function(e){var r,n,i=[],o=t.length;for(r=0;re)}}),n;function i(){return(new Date).getTime()}function o(t){return JSON.stringify(r.isUndefined(t)?null:t)}function s(t){return e.parseJSON(t)}}(),c=function(){"use strict";var t=0,n={},i=6,o=new s(10);function u(t){t=t||{},this.cancelled=!1,this.lastReq=null,this._send=t.transport,this._get=t.limiter?t.limiter(this._get):this._get,this._cache=!1===t.cache?new s(0):o}return u.setMaxPendingRequests=function(t){i=t},u.resetCache=function(){o.reset()},r.mixin(u.prototype,{_fingerprint:function(t){return(t=t||{}).url+t.type+e.param(t.data||{})},_get:function(e,r){var o,s,u=this;function c(t){r(null,t),u._cache.set(o,t)}function a(){r(!0)}o=this._fingerprint(e),this.cancelled||o!==this.lastReq||((s=n[o])?s.done(c).fail(a):te[n]||(i.push(t[r]),r++),n++);return i}(o,u):u})),o?r.map(function(t){for(var e={},r=[],n=0,i=t.length;n