YUI.add("autocomplete-filters-accentfold",function(t,e){var n=t.Text.AccentFold,o=t.Text.WordBreak,f=t.Array,u=t.Object;t.mix(t.namespace("AutoCompleteFilters"),{charMatchFold:function(t,e){var r;return t?(r=f.unique(n.fold(t).split("")),f.filter(e,function(t){var e=n.fold(t.text);return f.every(r,function(t){return-1!==e.indexOf(t)})})):e},phraseMatchFold:function(e,t){return e?(e=n.fold(e),f.filter(t,function(t){return-1!==n.fold(t.text).indexOf(e)})):t},startsWithFold:function(e,t){return e?(e=n.fold(e),f.filter(t,function(t){return 0===n.fold(t.text).indexOf(e)})):t},subWordMatchFold:function(t,e){var r;return t?(r=o.getUniqueWords(n.fold(t)),f.filter(e,function(t){var e=n.fold(t.text);return f.every(r,function(t){return-1!==e.indexOf(t)})})):e},wordMatchFold:function(t,e){var r;return t?(r=o.getUniqueWords(n.fold(t)),f.filter(e,function(t){var e=f.hash(o.getUniqueWords(n.fold(t.text)));return f.every(r,function(t){return u.owns(e,t)})})):e}})},"patched-v3.18.7",{requires:["array-extras","text-accentfold","text-wordbreak"]});