1/* CacheFile: /kernel/globalMisc/js/cookieConsent.min.js*/ 2function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"===_typeof(t)?t:String(t)}function _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var rawCookies=document.cookie,cookies={};rawCookies.split("; ").forEach(function(e){var t=e.split("=");cookies[t[0]]=t[1]});var CookieConsent=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"_getCookies",value:function(){var e={};return document.cookie.split("; ").forEach(function(t){var n=t.split("=");e[n[0]]=n[1]}),e}},{key:"checkConsent",value:function(){var t=e._getCookies(),n=e._parseCookie(t["e-consent"]);n.statistics&&e.enableScript("statistics",n),n.marketing&&e.enableScript("marketing",n),n.preferences&&e.enableScript("preferences",n)}},{key:"_parseCookie",value:function(e){return!!e&&JSON.parse(decodeURIComponent(e))}},{key:"isEnabled",value:function(t){var n=e._getCookies();return e._parseCookie(n["e-consent"])[t]}},{key:"saveConsent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e._getCookies(),i=e._parseCookie(r["e-consent"]);i.preferences=t,i.statistics=n,i.marketing=o,i.utc=Date.now();var c=new Date;c.setTime(Date.now()+31536e6),document.cookie="e-consent=".concat(encodeURIComponent(JSON.stringify(i)),";expires=").concat(c.toUTCString(),";path=/"),e.checkConsent()}},{key:"enableScript",value:function(e,t){var n=function(e){e.setAttribute("type","text/javascript");var t=e.cloneNode(!0);e.remove(),document.body.append(t)};function o(){document.querySelectorAll('script[type="text/plain"]').forEach(function(e){var o=e.getAttribute("data-consent-category");-1!==o.indexOf(",")&&(0===o.split(",").filter(function(e){return!0!==t[e]}).length&&n(e))})}document.querySelectorAll('script[data-consent-category="'+e+'"]').forEach(n),o(),window.addEventListener("load",function(){document.querySelectorAll('script[data-consent-category="'+e+'"]').forEach(n),o()}),document.addEventListener("DOMContentLoaded",function(){var t;(null!==(t=document.querySelector('[data-consent-id="'+e+'"]'))&&void 0!==t?t:{checked:!1}).checked=!0}),"statistics"===e&&window._paq&&(window._paq.push(["setConsentGiven"]),window._paq.push(["setCookieConsentGiven"]))}},{key:"createConsentCookie",value:function(){var e=new Date;e.setTime(e.getTime()+31536e6);var t="expires="+e.toUTCString();document.cookie="e-consent="+encodeURIComponent(JSON.stringify({id:null,ver:0,necessary:!0,preferences:!1,statistics:!1,marketing:!1,utc:null}))+"; "+t+";path=/"}}]),e}();Object.keys(cookies).indexOf("e-consent")>-1?CookieConsent.checkConsent():(CookieConsent.createConsentCookie(),CookieConsent.checkConsent());; 3 4
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.