"use strict";Liferay.Loader.define("liferay!analytics-settings-web$side-channel@1.0.4/index",["module","exports","require","liferay!analytics-settings-web$get-intrinsic","liferay!analytics-settings-web$call-bind/callBound","liferay!analytics-settings-web$object-inspect"],(function(e,t,n){window;var i=n("liferay!analytics-settings-web$get-intrinsic"),a=n("liferay!analytics-settings-web$call-bind/callBound"),r=n("liferay!analytics-settings-web$object-inspect"),o=i("%TypeError%"),s=i("%WeakMap%",!0),f=i("%Map%",!0),c=a("WeakMap.prototype.get",!0),l=a("WeakMap.prototype.set",!0),u=a("WeakMap.prototype.has",!0),p=a("Map.prototype.get",!0),y=a("Map.prototype.set",!0),b=a("Map.prototype.has",!0),listGetNode=function(e,t){for(var n,i=e;null!==(n=i.next);i=n)if(n.key===t)return i.next=n.next,n.next=e.next,e.next=n,n};e.exports=function getSideChannel(){var e,t,n,i={assert:function(e){if(!i.has(e))throw new o("Side channel does not contain "+r(e))},get:function(i){if(s&&i&&("object"==typeof i||"function"==typeof i)){if(e)return c(e,i)}else if(f){if(t)return p(t,i)}else if(n)return function(e,t){var n=listGetNode(e,t);return n&&n.value}(n,i)},has:function(i){if(s&&i&&("object"==typeof i||"function"==typeof i)){if(e)return u(e,i)}else if(f){if(t)return b(t,i)}else if(n)return function(e,t){return!!listGetNode(e,t)}(n,i);return!1},set:function(i,a){s&&i&&("object"==typeof i||"function"==typeof i)?(e||(e=new s),l(e,i,a)):f?(t||(t=new f),y(t,i,a)):(n||(n={key:{},next:null}),function(e,t,n){var i=listGetNode(e,t);i?i.value=n:e.next={key:t,next:e.next,value:n}}(n,i,a))}};return i}}));
//# sourceMappingURL=index.js.map