import "core-js/modules/es.symbol"; import "core-js/modules/es.symbol.description"; import "core-js/modules/es.symbol.iterator"; import "core-js/modules/es.array.iterator"; import "core-js/modules/es.object.to-string"; import "core-js/modules/es.regexp.exec"; import "core-js/modules/es.regexp.to-string"; import "core-js/modules/es.string.iterator"; import "core-js/modules/es.string.match"; import "core-js/modules/web.dom-collections.iterator"; import "core-js/modules/web.timers"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } // https://gist.github.com/paulirish/1579671 /* eslint-disable no-restricted-globals */ var lastTime = 0; var vendors = ['ms', 'moz', 'webkit', 'o']; var _requestAnimationFrame = window.requestAnimationFrame; var _cancelAnimationFrame = window.cancelAnimationFrame; for (var x = 0; x < vendors.length && !_requestAnimationFrame; ++x) { _requestAnimationFrame = window["".concat(vendors[x], "RequestAnimationFrame")]; _cancelAnimationFrame = window["".concat(vendors[x], "CancelAnimationFrame")] || window["".concat(vendors[x], "CancelRequestAnimationFrame")]; } if (!_requestAnimationFrame) { _requestAnimationFrame = function _requestAnimationFrame(callback) { var currTime = new Date().getTime(); var timeToCall = Math.max(0, 16 - (currTime - lastTime)); var id = window.setTimeout(function () { callback(currTime + timeToCall); }, timeToCall); lastTime = currTime + timeToCall; return id; }; } if (!_cancelAnimationFrame) { _cancelAnimationFrame = function _cancelAnimationFrame(id) { clearTimeout(id); }; } /** * Polyfill for requestAnimationFrame * * @param {Function} callback * @returns {Number} */ export function requestAnimationFrame(callback) { return _requestAnimationFrame.call(window, callback); } export function isClassListSupported() { return !!document.documentElement.classList; } export function isTextContentSupported() { return !!document.createTextNode('test').textContent; } export function isGetComputedStyleSupported() { return !!window.getComputedStyle; } /** * Polyfill for cancelAnimationFrame * * @param {Number} id */ export function cancelAnimationFrame(id) { _cancelAnimationFrame.call(window, id); } export function isTouchSupported() { return 'ontouchstart' in window; } /** * Checks if browser is support web components natively * * @returns {Boolean} */ export function isWebComponentSupportedNatively() { var test = document.createElement('div'); return !!(test.createShadowRoot && test.createShadowRoot.toString().match(/\[native code\]/)); } var _hasCaptionProblem; function detectCaptionProblem() { var TABLE = document.createElement('TABLE'); TABLE.style.borderSpacing = '0'; TABLE.style.borderWidth = '0'; TABLE.style.padding = '0'; var TBODY = document.createElement('TBODY'); TABLE.appendChild(TBODY); TBODY.appendChild(document.createElement('TR')); TBODY.firstChild.appendChild(document.createElement('TD')); TBODY.firstChild.firstChild.innerHTML = '