YUI.add("intl-base",function(a,n){var s=/[, ]/;a.mix(a.namespace("Intl"),{lookupBestLang:function(n,t){var r,e,i;for(a.Lang.isString(n)&&(n=n.split(s)),r=0;r<n.length;r+=1)if((e=n[r])&&"*"!==e)for(;0<e.length;){if(i=function(n){for(var r=0;r<t.length;r+=1)if(n.toLowerCase()===t[r].toLowerCase())return t[r]}(e))return i;if(!(0<=(i=e.lastIndexOf("-"))))break;e=e.substring(0,i),2<=i&&"-"===e.charAt(i-2)&&(e=e.substring(0,i-2))}return""}})},"patched-v3.18.7",{requires:["yui-base"]});