YUI.add("datatype-date-format",function(u,e){var o=function(e,t,n){for(void 0===n&&(n=10),t+="";parseInt(e,10)<n&&1<n;n/=10)e=t+e;return e.toString()},s={formats:{a:function(e,t){return t.a[e.getDay()]},A:function(e,t){return t.A[e.getDay()]},b:function(e,t){return t.b[e.getMonth()]},B:function(e,t){return t.B[e.getMonth()]},C:function(e){return o(parseInt(e.getFullYear()/100,10),0)},d:["getDate","0"],e:["getDate"," "],E:"getDate",g:function(e){return o(parseInt(s.formats.G(e)%100,10),0)},G:function(e){var t=e.getFullYear(),n=parseInt(s.formats.V(e),10),e=parseInt(s.formats.W(e),10);return n<e?t++:0===e&&52<=n&&t--,t},H:["getHours","0"],I:function(e){e=e.getHours()%12;return o(0==e?12:e,0)},j:function(e){var t=new Date(e.getFullYear()+"/1/1 GMT"),e=new Date(e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" GMT"),e=parseInt((e-t)/6e4/60/24,10)+1;return o(e,0,100)},k:["getHours"," "],l:function(e){e=e.getHours()%12;return o(0==e?12:e," ")},m:function(e){return o(e.getMonth()+1,0)},M:["getMinutes","0"],p:function(e,t){return t.p[12<=e.getHours()?1:0]},P:function(e,t){return t.P[12<=e.getHours()?1:0]},s:function(e,t){return parseInt(e.getTime()/1e3,10)},S:["getSeconds","0"],u:function(e){e=e.getDay();return 0===e?7:e},U:function(e){var t=parseInt(s.formats.j(e),10),e=6-e.getDay(),t=parseInt((t+e)/7,10);return o(t,0)},V:function(e){var t=parseInt(s.formats.W(e),10),n=new Date(e.getFullYear()+"/1/1").getDay(),t=t+(4<n||n<=1?0:1);return 53===t&&new Date(e.getFullYear()+"/12/31").getDay()<4?t=1:0===t&&(t=s.formats.V(new Date(e.getFullYear()-1+"/12/31"))),o(t,0)},w:"getDay",W:function(e){var t=parseInt(s.formats.j(e),10),e=7-s.formats.u(e),t=parseInt((t+e)/7,10);return o(t,0,10)},y:function(e){return o(e.getFullYear()%100,0)},Y:"getFullYear",z:function(e){e=e.getTimezoneOffset();return(0<e?"-":"+")+o(parseInt(Math.abs(e/60),10),0)+o(Math.abs(e%60),0)},Z:function(e){var t=e.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");return t=4<t.length?s.formats.z(e):t},"%":function(e){return"%"}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"%I:%M:%S %p",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(r,e){var t,a,n;if(e=e||{},!u.Lang.isDate(r))return u.Lang.isValue(r)?r:"";for(t=e.format||"%Y-%m-%d",a=u.Intl.get("datatype-date-format"),n=function(e,t){var n=s.aggregates[t];return"locale"===n?a[t]:n},e=function(e,t){var n=s.formats[t];switch(u.Lang.type(n)){case"string":return r[n]();case"function":return n.call(r,r,a);case"array":if("string"===u.Lang.type(n[0]))return o(r[n[0]](),n[1]);default:return t}};t.match(/%[cDFhnrRtTxX]/);)t=t.replace(/%([cDFhnrRtTxX])/g,n);return e=t.replace(/%([aAbBCdeEgGHIjklmMpPsSuUVwWyYzZ%])/g,e),n=undefined,e}};u.mix(u.namespace("Date"),s),u.namespace("DataType"),u.DataType.Date=u.Date},"patched-v3.18.7",{lang:["ar","ar-JO","ca","ca-ES","da","da-DK","de","de-AT","de-DE","el","el-GR","en","en-AU","en-CA","en-GB","en-IE","en-IN","en-JO","en-MY","en-NZ","en-PH","en-SG","en-US","es","es-AR","es-BO","es-CL","es-CO","es-EC","es-ES","es-MX","es-PE","es-PY","es-US","es-UY","es-VE","fi","fi-FI","fr","fr-BE","fr-CA","fr-FR","hi","hi-IN","hu","id","id-ID","it","it-IT","ja","ja-JP","ko","ko-KR","ms","ms-MY","nb","nb-NO","nl","nl-BE","nl-NL","pl","pl-PL","pt","pt-BR","ro","ro-RO","ru","ru-RU","sv","sv-SE","th","th-TH","tr","tr-TR","vi","vi-VN","zh-Hans","zh-Hans-CN","zh-Hant","zh-Hant-HK","zh-Hant-TW"]});