atoms.stringify_ios.js Maven / Gradle / Ivy
The newest version!
function(){return function(){var h=!0,k=!1,l=this;
function n(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==
b&&"undefined"==typeof a.call)return"object";return b};function p(a){var b=0;a=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split(".");for(var c="2.3".replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),m=Math.max(a.length,c.length),d=0;0==b&&d(0==g[1].length?
0:parseInt(g[1],10))?1:0)||((0==f[2].length)<(0==g[2].length)?-1:(0==f[2].length)>(0==g[2].length)?1:0)||(f[2]g[2]?1:0)}while(0==b)}};function q(){return l.navigator?l.navigator.userAgent:null};var r,s,t,u,v,w,x;x=w=v=u=t=s=r=k;var y=q();y&&(-1!=y.indexOf("Firefox")?r=h:-1!=y.indexOf("Camino")?s=h:-1!=y.indexOf("iPhone")||-1!=y.indexOf("iPod")?t=h:-1!=y.indexOf("iPad")?u=h:-1!=y.indexOf("Android")?v=h:-1!=y.indexOf("Chrome")?w=h:-1!=y.indexOf("Safari")&&(x=h));var z=r,A=s,B=t,C=u,D=v,E=w,F=x;function G(a){return(a=a.exec(q()))?a[1]:""}var H=function(){if(z)return G(/Firefox\/([0-9.]+)/);if(E)return G(/Chrome\/([0-9.]+)/);if(F)return G(/Version\/([0-9.]+)/);if(B||C){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(q());if(a)return a[1]+"."+a[2]}else{if(D)return(a=G(/Android\s+([0-9.]+)/))?a:G(/Version\/([0-9.]+)/);if(A)return G(/Camino\/([0-9.]+)/)}return""}();var I;if(D){var J=/Android\s+([0-9\.]+)/.exec(q());I=J?J[1]:"0"}else I="0";var N=I;D&&(D?p(N):p(H));function O(a){this.a=a}
function P(a,b,c){switch(typeof b){case "string":Q(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(null==b){c.push("null");break}if("array"==n(b)){var m=b.length;c.push("[");for(var d="",e=0;eb?d+="000":256>b?d+="00":4096>b&&(d+="0");return R[a]=d+b.toString(16)}),'"')};function T(a,b){var c=[];P(new O(b),a,c);return c.join("")}var U=["_"],V=l;!(U[0]in V)&&V.execScript&&V.execScript("var "+U[0]);for(var W;U.length&&(W=U.shift());)!U.length&&void 0!==T?V[W]=T:V=V[W]?V[W]:V[W]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}