YUI.add("json-stringify-shim",function(u,e){var f,o,n=u.Lang,j=n.isFunction,x=n.isObject,S=n.isArray,a=Object.prototype.toString,r="undefined",p="object",m="null",y="string",N="number",O="boolean",J="date",t={undefined:r,string:y,"[object String]":y,number:N,"[object Number]":N,"boolean":O,"[object Boolean]":O,"[object Date]":J,"[object RegExp]":p},w="\n",i='"',c=/[\x00-\x07\x0b\x0e-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,g=[[/\\/g,"\\\\"],[/\"/g,'\\"'],[/\x08/g,"\\b"],[/\x09/g,"\\t"],[/\x0a/g,"\\n"],[/\x0c/g,"\\f"],[/\x0d/g,"\\r"]],s=g.length,l={};function v(e){var n=typeof e;return t[n]||t[a.call(e)]||(n===p?e?p:m:r)}function d(e){return l[e]||(l[e]="\\u"+("0000"+(+e.charCodeAt(0)).toString(16)).slice(-4),f[e]=0),++f[e]===o&&(g.push([new RegExp(e,"g"),l[e]]),s=g.length),l[e]}function E(e){for(var n,r=0;r<s;r++)n=g[r],e=e.replace(n[0],n[1]);return i+e.replace(c,d)+i}function A(e,n){return e.replace(/^/gm,n)}u.JSON.stringify=function(e,g,s){if(e===undefined)return undefined;var n,r,t,l=j(g)?g:null,i=a.call(s).match(/String|Number/)||[],d=u.JSON.dateToString,h=[];if(f={},o=u.JSON.charCacheThreshold,g=!l&&S(g)?g:undefined){for(n={},r=0,t=g.length;r<t;++r)n[g[r]]=!0;g=n}return s="Number"===i[0]?new Array(Math.min(Math.max(0,s),10)+1).join(" "):(s||"").slice(0,10),function b(e,n){var r,t,i,u,f=e[n],o=v(f),a=[],c=s?": ":":";switch(x(f)&&j(f.toJSON)?f=f.toJSON(n):o===J&&(f=d(f)),o=(f=j(l)?l.call(e,n,f):f)!==e[n]?v(f):o){case J:case p:break;case y:return E(f);case N:return isFinite(f)?f+"":m;case O:return f+"";case m:return m;default:return undefined}for(r=h.length-1;0<=r;--r)if(h[r]===f)throw new Error("JSON.stringify. Cyclical reference");if(n=S(f),h.push(f),n)for(r=f.length-1;0<=r;--r)a[r]=b(f,r)||m;else for(i in r=0,t=g||f)t.hasOwnProperty(i)&&(u=b(f,i))&&(a[r++]=E(i)+c+u);return h.pop(),s&&a.length?n?"[\n"+A(a.join(",\n"),s)+w+"]":"{\n"+A(a.join(",\n"),s)+w+"}":n?"["+a.join(",")+"]":"{"+a.join(",")+"}"}({"":e},"")},u.JSON.stringify.isShim=!0},"patched-v3.18.7",{requires:["json-stringify"]});