YUI.add("aui-datepicker-native",function(e,t){function v(){}var n=e.Lang,r="-",i="activeInput",s="change",o="container",u="date",a="nativeMask",f="nativeType",l="selectionChange",c="selector",h="touchstart",p="time",d="type";v.ATTRS={nativeMask:{validator:n.isString,value:"%Y-%m-%d"},nativeType:{validator:n.isString,value:"date"}},v.prototype={initializer:function(){var e=this;e.bindNativeUI()},bindNativeUI:function(){var t=this,n=t.get(o),r=t.get(c);t._eventHandles.push(n.delegate(h,e.bind("_onceUserInteraction",t),r),n.delegate(s,e.bind("_afterNativeSelectionChange",t),r))},clearSelection:function(){var e=this,t=e.get(i);t.val("")},deselectDates:function(){var e=this;e.clearSelection()},hide:function(){var e=this,t=e.get(i);t.blur()},show:function(){var e=this,t=e.get(i);t.focus()},selectDates:function(e){var t=this,r=t.get(i);n.isArray(e)&&(e=e[0]),n.isDate(e)&&r.val(t._formatDate(e))},useInputNode:function(e){var t=this,n=t.get(f),r=e.attr(d),s;t.set(i,e),t._isTypeSupported(r)||(s=t.getParsedDatesFromInputValue(),s&&e.val(t._formatDate(s[0]))),e.getAttribute(d)!==n&&e.setAttribute(d,n),t._fireSelectionChange()},_addFourDigitsYearPadding:function(t){return e.Lang.String.repeat("0",4-t.indexOf(r))+t},_afterNativeSelectionChange:function(e){var t=this,n=e.currentTarget.attr(d);t._isTypeSupported(n)&&t._fireSelectionChange()},_fireSelectionChange:function(){var e=this,t=e.get(i),n=e._parseDateFromString(t.val());e.fire(l,{newSelection:n?[n]:[]})},_formatDate:function(t){var n=this,r=n.get(a),i=n.get(f),s=e.Date.format(t,{format:r});return i===u&&(s=n._addFourDigitsYearPadding(s)),s},_isTypeSupported:function(e){switch(e.toLowerCase()){case u:case p:return!0;default:return!1}},_parseDateFromString:function(t){var n=this,r=n.get(a);return t?e.Date.parse(r,t):!1}},e.DatePickerNativeBase=v,e.DatePickerNative=e.Base.create("datepicker-native",e.Base,[e.DatePickerDelegate,e.DatePickerNativeBase])},"2.0.0",{requires:["aui-datepicker-delegate","aui-node-base","base","base-build"]});
