Module 232859

2,256 characters · in no known chunk
Dependencies
Required by (1)
Lazily required by (0)none
Requires (0)none
Lazily requires (0)none
Source Raw
function(e){e.exports=a,a.default=a,a.stable=c,a.stableStringify=c;var t="[...]",n="[Circular]",r=[],i=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,n,a){void 0===a&&(a=s()),l(e,"",0,[],void 0,0,a);try{o=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,_(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var o,u=r.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return o}function o(e,t,n,s){var a=Object.getOwnPropertyDescriptor(s,n);void 0!==a.get?a.configurable?(Object.defineProperty(s,n,{value:e}),r.push([s,n,t,a])):i.push([t,n,e]):(s[n]=e,r.push([s,n,t]))}function l(e,r,i,s,a,u,c){if(u+=1,"object"==typeof e&&null!==e){for(d=0;d<s.length;d++)if(s[d]===e)return void o(n,e,r,a);if(void 0!==c.depthLimit&&u>c.depthLimit||void 0!==c.edgesLimit&&i+1>c.edgesLimit)return void o(t,e,r,a);if(s.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,s,e,u,c);else{var d,_=Object.keys(e);for(d=0;d<_.length;d++){var f=_[d];l(e[f],f,d,s,e,u,c)}}s.pop()}}function u(e,t){return e<t?-1:+(e>t)}function c(e,t,n,a){void 0===a&&(a=s());var o,l=d(e,"",0,[],void 0,0,a)||e;try{o=0===i.length?JSON.stringify(l,t,n):JSON.stringify(l,_(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var u=r.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return o}function d(e,i,s,a,l,c,_){if(c+=1,"object"==typeof e&&null!==e){for(f=0;f<a.length;f++)if(a[f]===e)return void o(n,e,i,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==_.depthLimit&&c>_.depthLimit||void 0!==_.edgesLimit&&s+1>_.edgesLimit)return void o(t,e,i,l);if(a.push(e),Array.isArray(e))for(f=0;f<e.length;f++)d(e[f],f,f,a,e,c,_);else{var f,p={},h=Object.keys(e).sort(u);for(f=0;f<h.length;f++){var m=h[f];d(e[m],m,f,a,e,c,_),p[m]=e[m]}if(void 0===l)return p;r.push([l,i,e]),l[i]=p}a.pop()}}function _(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var s=i[r];if(s[1]===t&&s[0]===n){n=s[2],i.splice(r,1);break}}return e.call(this,t,n)}}}