Module 363364

680 characters · in 52082.07941602b067c1b4.js
Dependencies
Required by (1)
Lazily required by (0)none
Requires (2)
Lazily requires (0)none
Source Raw
function(t,e,r){"use strict";var o=r(315646),n=r(741623),i=function(t,e,r){for(var o,n=t;null!=(o=n.next);n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o},a=function(t,e){if(t){var r=i(t,e);return r&&r.value}},s=function(t,e,r){var o=i(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}},l=function(t,e){if(t)return i(t,e,!0)};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+o(t))},delete:function(e){var r=t&&t.next,o=l(t,e);return o&&r&&r===o&&(t=void 0),!!o},get:function(e){return a(t,e)},has:function(e){var r;return!!(r=t)&&!!i(r,e)},set:function(e,r){t||(t={next:void 0}),s(t,e,r)}};return e}}