#1821·requirejs

[Error] Error: Mismatched anonymous define() module: #2228

Author: sashibraiCreated Nov 13, 2020Updated Sep 22, 2024

I am getting the huge js error in my project. We use the below libraries.

Cordova iso 6.1.0
RequireJS 2.1.16
KendoUi mobile v2015.1.408

We have started getting this error after upgrading the Cordova framework from 3.9.2 to 6.1.0.

Can someone please help.

[Error] Error: Mismatched anonymous define() module: function (){!function(e,t,n){function i(){}function o(e,t){if(t)return"'"+e.split("'").join("'").split('"').join('\"').replace(/\n/g,"\n").replace(/\r/g,"\r").replace(/\t/g,"\t")+"'";var n=e.charAt(0),i=e.substring(1);return"="===n?"+("+i+")+":":"===n?"+$kendoHtmlEncode("+i+")+":";"+e+";$kendoOutput+="}function r(e,t,n){return e+="",t=t||2,n=t-e.length,n?H[t].substring(0,n)+e:e}function a(e){var t=e.css(gt.support.transitions.css+"box-shadow")||e.css("box-shadow"),n=t?t.match(Tt)||[0,0,0,0,0]:[0,0,0,0,0],i=bt.max(+n[3],+(n[4]||0));return{left:-n[1]+i,right:+n[1]+i,bottom:+n[2]+i}}function s(t,n){var i,o,r,s,l,c,d,u,h=kt.browser,f="rtl"==t.css("direction");return t.parent().hasClass("k-animation-container")?(d=t.parent(".k-animation-container"),u=d[0].style,d.is(":hidden")&&d.show(),i=Ct.test(u.width)||Ct.test(u.height),i||d.css({width:t.outerWidth(),height:t.outerHeight(),boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"})):(o=a(t),r=t[0].style.width,s=t[0].style.height,l=Ct.test(r),c=Ct.test(s),h.opera&&(o.left=o.right=o.bottom=5),i=l||c,!l&&(!n||n&&r)&&(r=t.outerWidth()),!c&&(!n||n&&s)&&(s=t.outerHeight()),t.wrap(e(" ").addClass("k-animation-container").css({width:r,height:s,marginLeft:o.left*(f?1:-1),paddingLeft:o.left,paddingRight:o.right,paddingBottom:o.bottom})),i&&t.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})),h.msie&&bt.floor(h.version)<=7&&(t.css({zoom:1}),t.children(".k-menu").width(t.width())),t.parent()}function l(e){var t=1,n=arguments.length;for(t=1;n>t;t++)c(e,arguments[t]);return e}function c(e,t){var n,i,o,r,a,s=gt.data.ObservableArray,l=gt.data.LazyObservableArray,d=gt.data.DataSource,u=gt.data.HierarchicalDataSource;for(n in t)i=t[n],o=typeof i,r=o===Et&&null!==i?i.constructor:null,r&&r!==Array&&r!==s&&r!==l&&r!==d&&r!==u?i instanceof Date?e[n]=new Date(i.getTime()):M(i.clone)?e[n]=i.clone():(a=e[n],e[n]=typeof a===Et?a||{}:{},c(e[n],i)):o!==zt&&(e[n]=i);return e}function d(e,t,i){for(var o in t)if(t.hasOwnProperty(o)&&t[o].test(e))return o;return i!==n?i:e}function u(e){return e.replace(/([a-z][A-Z])/g,function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()})}function h(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function f(t,n){var i,o={};return document.defaultView&&document.defaultView.getComputedStyle?(i=document.defaultView.getComputedStyle(t,""),n&&e.each(n,function(e,t){o[t]=i.getPropertyValue(t)})):(i=t.currentStyle,n&&e.each(n,function(e,t){o[t]=i[h(t)]})),gt.size(o)||(o=i),o}function p(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&"toJSON"!=t&&n++;return n}function g(e,n,i){n||(n="offset");var o=en;return kt.browser.msie&&(kt.pointers||kt.msPointers)&&!i&&(o.top-=t.pageYOffset-document.documentElement.scrollTop,o.left-=t.pageXOffset-document.documentElement.scrollLeft),o}function m(e){var t={};return vt("string"==typeof e?e.split(" "):e,function(e){t[e]=this}),t}function v(e){return new gt.effects.Element(e)}function (e,t,n,i){return typeof e===Pt&&(M(t)&&(i=t,t=400,n=!1),M(n)&&(i=n,n=!1),typeof t===Bt&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:i}),mt({effects:{},duration:400,reverse:!1,init:wt,teardown:wt,hide:!1},e,{completeCallback:e.complete,complete:wt})}function y(t,n,i,o,r){for(var a,s=0,l=t.length;l>s;s++)a=e(t[s]),a.queue(function(){U.promise(a,(n,i,o,r))});return t}function w(e,t,n,i){return t&&(t=t.split(" "),vt(t,function(t,n){e.toggleClass(n,i)})),e}function b(e){return(""+e).replace(W,"&").replace(j,"<").replace($,">").replace(G,""").replace(q,"'")}function x(e,t){var i;return 0===t.indexOf("data")&&(t=t.substring(4),t=t.charAt(0).toLowerCase()+t.substring(1)),t=t.replace(nt,"-$1"),i=e.getAttribute("data-"+gt.ns+t),null===i?i=n:"null"===i?i=null:"true"===i?i=!0:"false"===i?i=!1:Dt.test(i)?i=parseFloat(i):et.test(i)&&!tt.test(i)&&(i=Function("return ("+i+")")()),i}function k(t,i){var o,r,a={};for(o in i)r=x(t,o),r!==n&&(J.test(o)&&(r=gt.template(e("#"+r).html())),a[o]=r);return a}function C(t,n){return e.contains(t,n)?-1:1}function S(){var t=e(this);return e.inArray(t.attr("data-"+gt.ns+"role"),["slider","rangeslider"])>-1||t.is(":visible")}function T(e,t){var n=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n?e.href||t:t)&&D(e)}function D(t){return!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")||e.expr.filters.hidden(this)}).length}function A(e,t){return new A.fn.init(e,t)}var P,M,E,I,B,z,L,F,R,O,N,H,V,U,W,j,G,q,$,Y,Q,X,K,Z,J,et,tt,nt,it,ot,rt,at,st,lt,ct,dt,ut,ht,ft,pt,gt=t.kendo=t.kendo||{cultures:{}},mt=e.extend,vt=e.each,_t=e.isArray,yt=e.proxy,wt=e.noop,bt=Math,xt=t.JSON||{},kt={},Ct=/%/,St=/{(\d+)(:[^}]+)?}/g,Tt=/(\d+(?:.?)\d*)px\s*(\d+(?:.?)\d*)px\s*(\d+(?:.?)\d*)px\s*(\d+)?/i,Dt=/^(+|-?)\d+(.?)\d*$/,At="function",Pt="string",Mt="number",Et="object",It="null",Bt="boolean",zt="undefined",Lt={},Ft={},Rt=[].slice,Ot=t.Globalize;gt.version="2015.1.408",i.extend=function(e){var t,n,i=function(){},o=this,r=e&&e.init?e.init:function(){o.apply(this,arguments)};i.prototype=o.prototype,n=r.fn=r.prototype=new i;for(t in e)n[t]=null!=e[t]&&e[t].constructor===Object?mt(!0,{},i.prototype[t],e[t]):e[t];return n.constructor=r,r.extend=o.extend,r},i.prototype._initOptions=function(e){this.options=l({},this.options,e)},M=gt.isFunction=function(e){return"function"==typeof e},E=function(){this._defaultPrevented=!0},I=function(){return this._defaultPrevented===!0},B=i.extend({init:function(){this._events={}},bind:function(e,t,i){var o,r,a,s,l,c=this,d=typeof e===Pt?[e]:e,u=typeof t===At;if(t===n){for(o in e)c.bind(o,e[o]);return c}for(o=0,r=d.length;r>o;o++)e=d[o],s=u?t:t[e],s&&(i&&(a=s,s=function(){c.unbind(e,s),a.apply(c,arguments)},s.original=a),l=c._events[e]=c._events[e]||[],l.push(s));return c},one:function(e,t){return this.bind(e,t,!0)},first:function(e,t){var n,i,o,r,a=this,s=typeof e===Pt?[e]:e,l=typeof t===At;for(n=0,i=s.length;i>n;n++)e=s[n],o=l?t:t[e],o&&(r=a._events[e]=a._events[e]||[],r.unshift(o));return a},trigger:function(e,t){var n,i,o=this,r=o.events[e];if(r){for(t=t||{},t.sender=o,t.defaultPrevented=!1,t.preventDefault=E,t.isDefaultPrevented=I,r=r.slice(),n=0,i=r.length;i>n;n++)r[n].call(o,t);return t.defaultPrevented===!0}return!1},unbind:function(e,t){var i,o=this,r=o.events[e];if(e===n)o.events={};else if(r)if(t)for(i=r.length-1;i>=0;i--)(r[i]===t||r[i].original===t)&&r.splice(i,1);else o.events[e]=[];return o}}),z=/^\w+/,L=/${([^}])}/g,F=/}/g,R=/CURLY/g,O=/#/g,N=/SHARP/g,H=["","0","00","000","0000"],P={paramName:"data",useWithBlock:!0,render:function(e,t){var n,i,o="";for(n=0,i=t.length;i>n;n++)o+=e(t[n]);return o},compile:function(e,t){var n,i,r,a=mt({},this,t),s=a.paramName,l=s.match(z)[0],c=a.useWithBlock,d="var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;";if(M(e))return e;for(d+=c?"with("+s+"){":"",d+="$kendoOutput=",i=e.replace(F,"CURLY").replace(L,"#=$kendoHtmlEncode($1)#").replace(R,"}").replace(O,"SHARP").split("#"),r=0;i.length>r;r++)d+=o(i[r],r%2===0);d+=c?";}":";",d+="return $kendoOutput;",d=d.replace(N,"#");try{return n=Function(l,d),n._slotCount=Math.floor(i.length/2),n}catch(u){throw Error(gt.format("Invalid template:'{0}' Generated code:'{1}'",e,d))}}},function(){function e(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,function(e){var t=s[e];return typeof t===Pt?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function t(r,a){var s,c,d,u,h,f,p=n,g=a[r];if(g&&typeof g===Et&&typeof g.toJSON===At&&(g=g.toJSON(r)),typeof o===At&&(g=o.call(a,r,g)),f=typeof g,f===Pt)return e(g);if(f===Mt)return isFinite(g)?g+"":It;if(f===Bt||f===It)return g+"";if(f===Et){if(!g)return It;if(n+=i,h=[],"[object Array]"===l.apply(g)){for(u=g.length,s=0;u>s;s++)h[s]=t(s,g)||It;return d=0===h.length?"[]":n?"[\n"+n+h.join(",\n"+n)+"\n"+p+"]":"["+h.join(",")+"]",n=p,d}if(o&&typeof o===Et)for(u=o.length,s=0;u>s;s++)typeof o[s]===Pt&&(c=o[s],d=t(c,g),d&&h.push(e(c)+(n?": ":":")+d));else for(c in g)Object.hasOwnProperty.call(g,c)&&(d=t(c,g),d&&h.push(e(c)+(n?": ":":")+d));return d=0===h.length?"{}":n?"{\n"+n+h.join(",\n"+n)+"\n"+p+"}":"{"+h.join(",")+"}",n=p,d}}var n,i,o,a=/["\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\b"," ":"\t","\n":"\n","\f":"\f","\r":"\r",'"':'"',"":"\"},l={}.toString;typeof Date.prototype.toJSON!==At&&(Date.prototype.toJSON=function(){var e=this;return isFinite(e.valueOf())?r(e.getUTCFullYear(),4)+"-"+r(e.getUTCMonth()+1)+"-"+r(e.getUTCDate())+"T"+r(e.getUTCHours())+":"+r(e.getUTCMinutes())+":"+r(e.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),typeof xt.stringify!==At&&(xt.stringify=function(e,r,a){var s;if(n="",i="",typeof a===Mt)for(s=0;a>s;s+=1)i+=" ";else typeof a===Pt&&(i=a);if(o=r,r&&typeof r!==At&&(typeof r!==Et||typeof r.length!==Mt))throw Error("JSON.stringify");return t("",{"":e})})}(),function(){function t(e){if(e){if(e.numberFormat)return e;if(typeof e===Pt){var t=gt.cultures;return t[e]||t[e.split("-")[0]]||null}return null}return null}function i(e){return e&&(e=t(e)),e||gt.cultures.current}function o(e){e.groupSizes=e.groupSize,e.percent.groupSizes=e.percent.groupSize,e.currency.groupSizes=e.currency.groupSize}function a(e,t,o){o=i(o);var a=o.calendars.standard,s=a.days,l=a.months;return t=a.patterns[t]||t,t.replace(d,function(t){var i,o,c;return"d"===t?o=e.getDate():"dd"===t?o=r(e.getDate()):"ddd"===t?o=s.namesAbbr[e.getDay()]:"dddd"===t?o=s.names[e.getDay()]:"M"===t?o=e.getMonth()+1:"MM"===t?o=r(e.getMonth()+1):"MMM"===t?o=l.namesAbbr[e.getMonth()]:"MMMM"===t?o=l.names[e.getMonth()]:"yy"===t?o=r(e.getFullYear()%100):"yyyy"===t?o=r(e.getFullYear(),4):"h"===t?o=e.getHours()%12||12:"hh"===t?o=r(e.getHours()%12||12):"H"===t?o=e.getHours():"HH"===t?o=r(e.getHours()):"m"===t?o=e.getMinutes():"mm"===t?o=r(e.getMinutes()):"s"===t?o=e.getSeconds():"ss"===t?o=r(e.getSeconds()):"f"===t?o=bt.floor(e.getMilliseconds()/100):"ff"===t?(o=e.getMilliseconds(),o>99&&(o=bt.floor(o/10)),o=r(o)):"fff"===t?o=r(e.getMilliseconds(),3):"tt"===t?o=e.getHours()<12?a.AM[0]:a.PM[0]:"zzz"===t?(i=e.getTimezoneOffset(),c=0>i,o=(""+bt.abs(i/60)).split(".")[0],i=bt.abs(i)-60o,o=(c?"+":"-")+r(o),o+=":"+r(i)):("zz"===t||"z"===t)&&(o=e.getTimezoneOffset()/60,c=0>o,o=(""+bt.abs(o)).split(".")[0],o=(c?"+":"-")+("zz"===t?r(o):o)),o!==n?o:t.slice(1,t.length-1)})}function s(e,t,o){o=i(o);var r,a,s,c,d,w,b,x,k,C,S,T,D,A,P,M,E,I,B,z,L,F,R,O=o.numberFormat,N=O.groupSize[0],H=O[m],V=O[g],U=O.decimals,W=O.pattern[0],j=[],G=0>e,q=p,$=p,Y=-1;if(e===n)return p;if(!isFinite(e))return e;if(!t)return o.name.length?e.toLocaleString():""+e;if(d=u.exec(t)){if(t=d[1].toLowerCase(),a="c"===t,s="p"===t,(a||s)&&(O=a?O.currency:O.percent,N=O.groupSize[0],H=O[m],V=O[g],U=O.decimals,r=O.symbol,W=O.pattern[G?0:1]),c=d[2],c&&(U=+c),"e"===t)return c?e.toExponential(U):e.toExponential();if(s&&(e*=100),e=l(e,U),G=0>e,e=e.split(g),w=e[0],b=e[1],G&&(w=w.substring(1)),$=w,x=w.length,x>=N)for($=p,C=0;x>C;C++)C>0&&(x-C)%N===0&&($+=H),$+=w.charAt(C);if(b&&($+=V+b),"n"===t&&!G)return $;for(e=p,C=0,S=W.length;S>C;C++)T=W.charAt(C),e+="n"===T?$:"$"===T||"%"===T?r:T;return e}if(G&&(e=-e),(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("")>-1)&&(t=t.replace(h,function(e){var t=e.charAt(0).replace("",""),n=e.slice(1).replace(t,"");return j.push(n),y})),t=t.split(";"),G&&t[1])t=t[1],A=!0;else if(0===e){if(t=t[2]||t[0],-1==t.indexOf(v)&&-1==t.indexOf())return t}else t=t[0];if(z=t.indexOf("%"),L=t.indexOf("$"),s=-1!=z,a=-1!=L,s&&(e*=100),a&&""===t[L-1]&&(t=t.split("").join(""),a=!1),(a||s)&&(O=a?O.currency:O.percent,N=O.groupSize[0],H=O[m],V=O[g],U=O.decimals,r=O.symbol),D=t.indexOf(m)>-1,D&&(t=t.replace(f,p)),P=t.indexOf(g),S=t.length,-1!=P?(b=(""+e).split("e"),b=b[1]?l(e,Math.abs(b[1])):b[0],b=b.split(g)[1]||p,E=t.lastIndexOf()-P,M=t.lastIndexOf(v)-P,I=E>-1,B=M>-1,C=b.length,I||B||(t=t.substring(0,P)+t.substring(P+1),S=t.length,P=-1,C=0),I&&E>M?C=E:M>E&&(B&&C>M?C=M:I&&E>C&&(C=E)),C>-1&&(e=l(e,C))):e=l(e),M=t.indexOf(v),F=E=t.indexOf(),Y=-1==M&&-1!=E?E:-1!=M&&-1==E?M:M>E?E:M,M=t.lastIndexOf(v),E=t.lastIndexOf(),R=-1==M&&-1!=E?E:-1!=M&&-1==E?M:M>E?M:E,Y==S&&(R=Y),-1!=Y){if($=(""+e).split(g),w=$[0],b=$[1]||p,x=w.length,k=b.length,G&&-1e>=0&&(G=!1),D)if(x===N&&P-F>x)w=H+w;else if(x>N){for($=p,C=0;x>C;C++)C>0&&(x-C)%N===0&&($+=H),$+=w.charAt(C);w=$}for(e=t.substring(0,Y),G&&!A&&(e+="-"),C=Y;S>C;C++){if(T=t.charAt(C),-1==P){if(x>R-C){e+=w;break}}else if(-1!=E&&C>E&&(q=p),x>=P-C&&P-C>-1&&(e+=w,C=P),P===C){e+=(b?V:p)+b,C+=R-P+1;continue}T===?(e+=T,q=T):T===v&&(e+=q)}if(R>=Y&&(e+=t.substring(R+1)),a||s){for($=p,C=0,S=e.length;S>C;C++)T=e.charAt(C),$+="$"===T||"%"===T?r:T;e=$}if(S=j.length)for(C=0;S>C;C++)e=e.replace(y,j[C])}return e}var l,c,d=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|zzz|zz|z|"[^"]"|'[^']'/g,u=/^(n|c|p|e)(\d)$/i,h=/(.)|(['][^'][']?)|(["][^"]["]?)/g,f=/,/g,p="",g=".",m=",",v="#",="0",y="??",w="en-US",b={}.toString;gt.cultures["en-US"]={name:w,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0,twoDigitYearMax:2029}}},gt.culture=function(e){var i,r=gt.cultures;return e===n?r.current:(i=t(e)||r[w],i.calendar=i.calendars.standard,r.current=i,Ot&&!Ot.load&&o(i.numberFormat),n)},gt.findCulture=t,gt.getCulture=i,gt.culture(w),l=function(e,t){return t=t||0,e=(""+e).split("e"),e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t))),e=(""+e).split("e"),e=+(e[0]+"e"+(e[1]?+e[1]-t:-t)),e.toFixed(t)},c=function(e,t,i){if(t){if("[object Date]"===b.call(e))return a(e,t,i);if(typeof e===Mt)return s(e,t,i)}return e!==n?e:""},Ot&&!Ot.load&&(c=function(t,n,i){return e.isPlainObject(i)&&(i=i.name),Ot.format(t,n,i)}),gt.format=function(e){var t=arguments;return e.replace(St,function(e,n,i){var o=t[parseInt(n,10)+1];return c(o,i?i.substring(1):"")})},gt._extractFormat=function(e){return"{0:"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},gt.activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},gt.round=l,gt.toString=c}(),function(){function t(e,t,n){return!(e>=t&&n>=e)}function i(e){return e.charAt(0)}function o(t){return e.map(t,i)}function r(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}function a(e){for(var t=0,n=e.length,i=[];n>t;t++)i[t]=(e[t]+"").toLowerCase();return i}function s(e){var t,n={};for(t in e)n[t]=a(e[t]);return n}function l(e,i,a){if(!e)return null;var l,c,d,u,p,g,m,,y,w,b,x,k,C=function(e){for(var t=0;i[F]===e;)t++,F++;return t>0&&(F-=1),t},S=function(t){var n=v[t]||RegExp("^\d{1,"+t+"}"),i=e.substr(R,t).match(n);return i?(i=i[0],R+=i.length,parseInt(i,10)):null},T=function(t,n){for(var i,o,r,a=0,s=t.length;s>a;a++)if(i=t[a],o=i.length,r=e.substr(R,o),n&&(r=r.toLowerCase()),r==i)return R+=o,a+1;return null},D=function(){var t=!1;return e.charAt(R)===i[F]&&(R++,t=!0),t},A=a.calendars.standard,P=null,M=null,E=null,I=null,B=null,z=null,L=null,F=0,R=0,O=!1,N=new Date,H=A.twoDigitYearMax||2029,V=N.getFullYear();for(i||(i="d"),u=A.patterns[i],u&&(i=u),i=i.split(""),d=i.length;d>F;F++)if(l=i[F],O)"'"===l?O=!1:D();else if("d"===l){if(c=C("d"),A.lowerDays||(A.lowerDays=s(A.days)),E=3>c?S(2):T(A.lowerDays[3==c?"namesAbbr":"names"],!0),null===E||t(E,1,31))return null}else if("M"===l){if(c=C("M"),A.lowerMonths||(A.lowerMonths=s(A.months)),M=3>c?S(2):T(A.lowerMonths[3==c?"namesAbbr":"names"],!0),null===M||t(M,1,12))return null;M-=1}else if("y"===l){if(c=C("y"),P=S(c),null===P)return null;2==c&&("string"==typeof H&&(H=V+parseInt(H,10)),P=V-V%100+P,P>H&&(P-=100))}else if("h"===l){if(C("h"),I=S(2),12==I&&(I=0),null===I||t(I,0,11))return null}else if("H"===l){if(C("H"),I=S(2),null===I||t(I,0,23))return null}else if("m"===l){if(C("m"),B=S(2),null===B||t(B,0,59))return null}else if("s"===l){if(C("s"),z=S(2),null===z||t(z,0,59))return null}else if("f"===l){if(c=C("f"),k=e.substr(R,c).match(v[3]),L=S(c),null!==L&&(k=k[0].length,3>k&&(L*=Math.pow(10,3-k)),c>3&&(L=parseInt((""+L).substring(0,3),10))),null===L||t(L,0,999))return null}else if("t"===l){if(c=C("t"),=A.AM,y=A.PM,1===c&&(=o(),y=o(y)),p=T(y),!p&&!T())return null}else if("z"===l){if(g=!0,c=C("z"),"Z"===e.substr(R,1)){D();continue}if(m=e.substr(R,6).match(c>2?f:h),!m)return null;if(m=m[0].split(":"),w=m[0],b=m[1],!b&&w.length>3&&(R=w.length-2,b=w.substring(R),w=w.substring(0,R)),w=parseInt(w,10),t(w,-12,13))return null;if(c>2&&(b=parseInt(b,10),isNaN(b)||t(b,0,59)))return null}else if("'"===l)O=!0,D();else if(!D())return null;return x=null!==I||null!==B||z||null,null===P&&null===M&&null===E&&x?(P=V,M=N.getMonth(),E=N.getDate()):(null===P&&(P=V),null===E&&(E=1)),p&&12>I&&(I+=12),g?(w&&(I+=-w),b&&(B+=-b),e=new Date(Date.UTC(P,M,E,I,B,z,L))):(e=new Date(P,M,E,I,B,z,L),r(e,I)),100>P&&e.setFullYear(P),e.getDate()!==E&&g===n?null:e}function c(e){var t="-"===e.substr(0,1)?-1:1;return e=e.substring(1),e=60parseInt(e.substr(0,2),10)+parseInt(e.substring(2),10),te}var d=/\u00A0/g,u=/[eE][-+]?[0-9]+/,h=/[+|-]\d{1,2}/,f=/[+|-]\d{1,2}:?\d{2}/,p=/^/Date((.?))/$/,g=/[+-]\d/,m=["G","g","d","F","D","y","m","T","t"],v={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},={}.toString;gt.parseDate=function(e,t,n){var i,o,r,a,s;if("[object Date]"===.call(e))return e;if(i=0,o=null,e&&0===e.indexOf("/D")&&(o=p.exec(e)))return o=o[1],s=g.exec(o.substring(1)),o=new Date(parseInt(o,10)),s&&(s=c(s[0]),o=gt.timezone.apply(o,0),o=gt.timezone.convert(o,0,-1s)),o;if(n=gt.getCulture(n),!t){for(t=[],a=n.calendar.patterns,r=m.length;r>i;i++)t[i]=a[m[i]];i=0,t=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","ddd MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.fffffffzzz","yyyy-MM-ddTHH:mm:ss.fffzzz","yyyy-MM-ddTHH:mm:sszzz","yyyy-MM-ddTHH:mm:ss.fffffff","yyyy-MM-ddTHH:mm:ss.fff","yyyy-MM-ddTHH:mmzzz","yyyy-MM-ddTHH:mmzz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"].concat(t)}for(t=_t(t)?t:[t],r=t.length;r>i;i++)if(o=l(e,t[i],n))return o;return o},gt.parseInt=function(e,t){var n=gt.parseFloat(e,t);return n&&(n=0|n),n},gt.parseFloat=function(e,t,n){if(!e&&0!==e)return null;if(typeof e===Mt)return e;e=""+e,t=gt.getCulture(t);var i,o,r=t.numberFormat,a=r.percent,s=r.currency,l=s.symbol,c=a.symbol,h=e.indexOf("-");return u.test(e)?(e=parseFloat(e.replace(r["."],".")),isNaN(e)&&(e=null),e):h>0?null:(h=h>-1,e.indexOf(l)>-1||n&&n.toLowerCase().indexOf("c")>-1?(r=s,i=r.pattern[0].replace("$",l).split("n"),e.indexOf(i[0])>-1&&e.indexOf(i[1])>-1&&(e=e.replace(i[0],"").replace(i[1],""),h=!0)):e.indexOf(c)>-1&&(o=!0,r=a,l=c),e=e.replace("-","").replace(l,"").replace(d," ").split(r[","]