import{o as u}from"./vendor-object-inspect.a19339a7.js";import{t as f}from"./vendor-es-errors.109e7893.js";var o=u,v=f,a=function(e,n,i){for(var t=e,r;(r=t.next)!=null;t=r)if(r.key===n)return t.next=r.next,i||(r.next=e.next,e.next=r),r},d=function(e,n){if(!!e){var i=a(e,n);return i&&i.value}},l=function(e,n,i){var t=a(e,n);t?t.value=i:e.next={key:n,next:e.next,value:i}},s=function(e,n){return e?!!a(e,n):!1},c=function(e,n){if(e)return a(e,n,!0)},h=function(){var n,i={assert:function(t){if(!i.has(t))throw new v("Side channel does not contain "+o(t))},delete:function(t){var r=c(n,t);return r&&n&&!n.next&&(n=void 0),!!r},get:function(t){return d(n,t)},has:function(t){return s(n,t)},set:function(t,r){n||(n={next:void 0}),l(n,t,r)}};return i};export{h as s};
