text: !function(a,b){if("function"==typeof define&&define.amd)define(["moment"],b);else if("object"==typeof exports)try{module.exports=b(require("moment"))}catch(c){module.exports=b}a&&(a.momentJDateFormatParserSetup=a.moment?b(a.moment):b)}(this,function(a){function b(a){if(!a)throw new Error("Moment JDateFormatParser Plugin - Cannot find moment.js instance.");a.fn.__translateJavaFormat=g,a.fn.toMomentFormatString=function(a){if(!c[a]){for(var b="",d=/[^']+|('[^']*')/g,f="";f=d.exec(a);)f=f[0],b+=f.match(/'(.*?)'/)?"["+f.substring(1,f.length-1)+"]":g(f,e);c[a]=b}return c[a]},a.fn.formatWithJDF=function(a){return this.format(this.toMomentFormatString(a))},a.fn.toJDFString=function(a){return d[a]||(d[a]=g(a,f)),d[a]}}var c={},d={},e={d:"D",dd:"DD",y:"YYYY",yy:"YY",yyy:"YYYY",yyyy:"YYYY",a:"a",A:"A",M:"M",MM:"MM",MMM:"MMM",MMMM:"MMMM",h:"h",hh:"hh",H:"H",HH:"HH",m:"m",mm:"mm",s:"s",ss:"ss",S:"SSS",SS:"SSS",SSS:"SSS",E:"ddd",EE:"ddd",EEE:"ddd",EEEE:"dddd",EEEEE:"dddd",EEEEEE:"dddd",D:"DDD",w:"W",ww:"WW",z:"z",zzzz:"Z",Z:"ZZ",X:"ZZ",XX:"ZZ",XXX:"Z",u:"E"},f={D:"d",DD:"dd",YY:"yy",YYY:"yyyy",YYYY:"yyyy",a:"a",A:"a",M:"M",MM:"MM",MMM:"MMM",MMMM:"MMMM",h:"h",hh:"hh",H:"H",HH:"HH",m:"m",mm:"mm",s:"s",ss:"ss",S:"S",SS:"S",SSS:"S",ddd:"E",dddd:"EEEE",DDD:"D",W:"w",WW:"ww",z:"z",Z:"XXX",E:"u"},g=function(a,b){for(var c=a.length,d=0,e=-1,f=null,g="",i="";c>d;d++)g=a.charAt(d),(null===f||f!==g)&&(i=h(a,b,e,d,i),e=d),f=g;return h(a,b,e,d,i)},h=function(a,b,c,d,e){if(-1!==c){var f=a.substring(c,d);b[f]&&(f=b[f]),e+=f}return e};return b(a),b});