YUI.add("autocomplete-highlighters",function(n,t){var i=n.Array,s=n.Highlight,r=n.mix(n.namespace("AutoCompleteHighlighters"),{charMatch:function(t,e,r){var a=i.unique((r?t:t.toLowerCase()).split(""));return i.map(e,function(t){return s.all(t.text,a,{caseSensitive:r})})},charMatchCase:function(t,e){return r.charMatch(t,e,!0)},phraseMatch:function(e,t,r){return i.map(t,function(t){return s.all(t.text,[e],{caseSensitive:r})})},phraseMatchCase:function(t,e){return r.phraseMatch(t,e,!0)},startsWith:function(e,t,r){return i.map(t,function(t){return s.all(t.text,[e],{caseSensitive:r,startsWith:!0})})},startsWithCase:function(t,e){return r.startsWith(t,e,!0)},subWordMatch:function(t,e,r){var a=n.Text.WordBreak.getUniqueWords(t,{ignoreCase:!r});return i.map(e,function(t){return s.all(t.text,a,{caseSensitive:r})})},subWordMatchCase:function(t,e){return r.subWordMatch(t,e,!0)},wordMatch:function(e,t,r){return i.map(t,function(t){return s.words(t.text,e,{caseSensitive:r})})},wordMatchCase:function(t,e){return r.wordMatch(t,e,!0)}})},"patched-v3.18.7",{requires:["array-extras","highlight-base"]});