importglobalfrom'./global.js';/** * A shim for the requestAnimationFrame which falls back to the setTimeout if * first one is not supported. * * @returns {number} Requests' identifier. */exportdefault(()=>{if(typeofrequestAnimationFrame==='function'){// It's required to use a bounded function because IE sometimes throws// an "Invalid calling object" error if rAF is invoked without the global// object on the left hand side.returnrequestAnimationFrame.bind(global);}returncallback=>setTimeout(()=>callback(Date.now()),1000/60);})();