YUI.add("highlight-base",function(a,e){var i=a.Array,o=a.Escape,l=a.Text.WordBreak,g=a.Lang.isArray,h={},r="(&[^;\\s]*)?",E={_REGEX:r+"(%needles)",_REPLACER:function(e,r,t){return r&&!/\s/.test(t)?e:E._TEMPLATE.replace(/\{s\}/g,t)},_START_REGEX:"^"+r+"(%needles)",_TEMPLATE:'<b class="'+a.ClassNameManager.getClassName("highlight")+'">{s}</b>',all:function(e,r,t){for(var a,s=[],n=!1!==(t=t||h).escapeHTML,i=t.startsWith?E._START_REGEX:E._REGEX,l=t.replacer||E._REPLACER,c=0,u=(r=g(r)?r:[r]).length;c<u;++c)(a=r[c])&&s.push(o.regex(n?o.html(a):a));return n&&(e=o.html(e)),s.length?e.replace(new RegExp(i.replace("%needles",s.join("|")),t.caseSensitive?"g":"gi"),l):e},allCase:function(e,r,t){return E.all(e,r,a.merge(t||h,{caseSensitive:!0}))},start:function(e,r,t){return E.all(e,r,a.merge(t||h,{startsWith:!0}))},startCase:function(e,r){return E.start(e,r,{caseSensitive:!0})},words:function(e,r,t){var a,s=E._TEMPLATE,n=!!(t=t||h).caseSensitive;return r=i.hash(g(r)?r:l.getUniqueWords(r,{ignoreCase:!n})),a=t.mapper||function(e,r){return r.hasOwnProperty(n?e:e.toLowerCase())?s.replace(/\{s\}/g,o.html(e)):o.html(e)},t=l.getWords(e,{includePunctuation:!0,includeWhitespace:!0}),i.map(t,function(e){return a(e,r)}).join("")},wordsCase:function(e,r){return E.words(e,r,{caseSensitive:!0})}};a.Highlight=E},"patched-v3.18.7",{requires:["array-extras","classnamemanager","escape","text-wordbreak"]});