(function () { var hasFeature = (function(){return window.CustomElementRegistry instanceof Function})(); if (hasFeature) return; var isView = typeof window !== 'undefined'; var currentURL = isView ? document.currentScript.src : (self.location + ''); var origin = currentURL.split('/').slice(0, 3).join('/'); var paths = [ "/@webcomponents/webcomponentsjs@2.8.0/custom-elements-es5-adapter.js", "/@webcomponents/webcomponentsjs@2.8.0/webcomponents-bundle.js" ]; if (!isView) return paths.forEach(function (path) { self.importScripts(origin + path); }); var tags = paths.map(function (path) { const URL = origin + path; return URL.match(/\.css$/i) ? '' : ''; }); document.write(tags.join('\n')); })();