Build 589089stable
Module 158056
818 characters · in 52082.07941602b067c1b4.jsDependencies
Source Raw
function(t,e,r){"use strict";var o=r(439619),n=r(906046),i=r(315646),a=r(12161),s=r(741623),l=o("%WeakMap%",!0),p=n("WeakMap.prototype.get",!0),c=n("WeakMap.prototype.set",!0),u=n("WeakMap.prototype.has",!0),f=n("WeakMap.prototype.delete",!0);t.exports=l?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new s("Side channel does not contain "+i(t))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(t)return f(t,r)}else if(a&&e)return e.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&t?p(t,r):e&&e.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&t?u(t,r):!!e&&e.has(r)},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new l),c(t,r,o)):a&&(e||(e=a()),e.set(r,o))}};return r}:a}