| 12 |
- import{r as t}from"./get-intrinsic.Bbe5x-9b.js";import{r as e}from"./call-bound.22gFUC2Q.js";import{r as o}from"./object-inspect.DvQZIv3_.js";import{r}from"./side-channel-map.DNHQ53lO.js";import{r as n}from"./es-errors.DTEWvbA_.js";var a,f;function p(){if(f)return a;f=1;var p=t(),i=e(),s=o(),c=r(),u=n(),m=p("%WeakMap%",!0),y=i("WeakMap.prototype.get",!0),j=i("WeakMap.prototype.set",!0),l=i("WeakMap.prototype.has",!0),d=i("WeakMap.prototype.delete",!0);return a=m?
- /** @type {Exclude<import('.'), false>} */function(){var t,e,o={assert:function(t){if(!o.has(t))throw new u("Side channel does not contain "+s(t))},delete:function(o){if(m&&o&&("object"==typeof o||"function"==typeof o)){if(t)return d(t,o)}else if(c&&e)return e.delete(o);return!1},get:function(o){return m&&o&&("object"==typeof o||"function"==typeof o)&&t?y(t,o):e&&e.get(o)},has:function(o){return m&&o&&("object"==typeof o||"function"==typeof o)&&t?l(t,o):!!e&&e.has(o)},set:function(o,r){m&&o&&("object"==typeof o||"function"==typeof o)?(t||(t=new m),j(t,o,r)):c&&(e||(e=c()),e.set(o,r))}};return o}:c}export{p as r};
|