var O=function(v,f){f||(f={}),typeof f=="function"&&(f={cmp:f});var s=typeof f.cycles=="boolean"?f.cycles:!1,l=f.cmp&&function(u){return function(r){return function(i,t){var c={key:i,value:r[i]},n={key:t,value:r[t]};return u(c,n)}}}(f.cmp),e=[];return function u(r){if(r&&r.toJSON&&typeof r.toJSON=="function"&&(r=r.toJSON()),r===void 0)return;if(typeof r=="number")return isFinite(r)?""+r:"null";if(typeof r!="object")return JSON.stringify(r);var i,t;if(Array.isArray(r)){for(t="[",i=0;i