(function(){function a(a,b,g,h,k){if(!a){var m,n,k=getLocaleSymbols(k);h||(h="date");if("both"==h||"date"==h)switch(b||(b="default"),b){case "full":m=k.getFullDatePatternString();break;case "long":m=k.getLongDatePatternString();break;default:m=k.getMediumDatePatternString();break;case "default":case "short":m=k.getShortDatePatternString()}if("both"==h||"time"==h)switch(g||(g="default"),g){case "full":n=k.getFullTimePatternString();break;case "long":n=k.getLongTimePatternString();break;default:n=k.getMediumTimePatternString();
break;case "default":case "short":n=k.getShortTimePatternString()}m&&n?a=m+" "+n:m?a=m:n&&(a=n)}return a}function b(a,b){var g=b.getAttribute(a);null!=g&&b.isAttributeElBound(a)&&(g=adf.mf.el.getLocalValue(g));return null===g?void 0:g}amx.createNumberConverter=function(a,e){if(TrNumberConverter){var g=b("type",a),h=b("integerOnly",a),k=b("groupingUsed",a),m=b("currencyCode",a),n=b("currencySymbol",a),o=b("maxFractionDigits",a),q=b("maxIntegerDigits",a),s=b("minFractionDigits",a),t=b("minIntegerDigits",
a);g||(g="number");h&&(h="true"==h,!0===h&&(s=o="0"));k&&(k="true"==k);var u=new TrNumberConverter(null,g,null,null,h,k,m,n,o,q,s,t);return{getAsString:function(a){try{adf.mf.internal.perf.start("amx.createDateTimeConverter.converter.getAsString");adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.INFO,"getAsString","MSG_CONVERTING",a);var b;b="undefined"===typeof a||null===a||""===a?"":"undefined"!==typeof a[".null"]&&a[".null"]?"":$.isNumeric(a)?u.getAsString(a,e):a;adf.mf.log.logInfoResource("AMXInfoBundle",
adf.mf.log.level.INFO,"getAsString","MSG_CONVERTED",a,b);return b}catch(d){return adf.mf.internal.amx.errorHandlerImpl(null,d),""}finally{adf.mf.internal.perf.stop("amx.createDateTimeConverter.converter.getAsString")}},getAsObject:function(a){try{adf.mf.internal.perf.start("amx.createDateTimeConverter.converter.getAsObject");adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.INFO,"getAsObject","MSG_CONVERTING",a);var b;if("undefined"===typeof a||null===a)b="";else if(b=u.getAsObject(a,e),
"undefined"===typeof b||null===b)b="";adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.INFO,"getAsObject","MSG_CONVERTED",a,b);return b}catch(d){return adf.mf.internal.amx.errorHandlerImpl(null,d),""}finally{adf.mf.internal.perf.stop("amx.createDateTimeConverter.converter.getAsObject")}}}}};amx.createDateTimeConverter=function(d,e){if(TrDateTimeConverter){var g=b("pattern",d),h=b("type",d),k=b("dateStyle",d),m=b("timeStyle",d),g=a(g,k,m,h,null),n=new TrDateTimeConverter(g,null,null,h,null);
return{getAsString:function(a){try{adf.mf.internal.perf.start("amx.createDateTimeConverter.converter.getAsString");adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.INFO,"getAsString","MSG_CONVERTING",a);var b;if("undefined"===typeof a||null===a||""===a)b="";else if("undefined"!==typeof a[".null"]&&a[".null"])b="";else if("string"==typeof a){var d=adf.mf.internal.converters.dateParser.parse(a);b=isNaN(d)?a:n.getAsString(new Date(d),e)}else a instanceof Date?b=n.getAsString(a,e):"undefined"!==
typeof a[".type"]&&"java.util.Date"==a[".type"]?(a=new Date(a.time),b=n.getAsString(a,e)):b=a;adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.INFO,"getAsString","MSG_CONVERTED",a,b);return b}catch(g){return adf.mf.internal.amx.errorHandlerImpl(null,g),""}finally{adf.mf.internal.perf.stop("amx.createDateTimeConverter.converter.getAsString")}},getAsObject:function(a){try{adf.mf.internal.perf.start("amx.createDateTimeConverter.converter.getAsObject");adf.mf.log.logInfoResource("AMXInfoBundle",
adf.mf.log.level.INFO,"getAsObject","MSG_CONVERTING",a);var b;if("undefined"===typeof a||null===a)b="";else if(b=n.getAsObject(a,e),"undefined"===typeof b||null===b)b="";adf.mf.log.logInfoResource("AMXInfoBundle",adf.mf.log.level.INFO,"getAsObject","MSG_CONVERTED",a,b);return b}catch(d){return adf.mf.internal.amx.errorHandlerImpl(null,d),""}finally{adf.mf.internal.perf.stop("amx.createDateTimeConverter.converter.getAsObject")}}}}}})();