import{a as v,c as x}from"./51906e5c9dad68cb425ca7479d3b81cf.js";import{p as g}from"./fe4e18e29009d663925eb20d2e1da2d1.js";for(var m={exports:{}},w=g,r=typeof window>"u"?x:window,s=["moz","webkit"],e="AnimationFrame",o=r["request"+e],l=r["cancel"+e]||r["cancelRequest"+e],c=0;!o&&c<s.length;c++)o=r[s[c]+"Request"+e],l=r[s[c]+"Cancel"+e]||r[s[c]+"CancelRequest"+e];if(!o||!l){var p=0,u=0,t=[],F=1e3/60;o=function(e){if(0===t.length){var c=w(),r=Math.max(0,F-(c-p));p=r+c,setTimeout((function(){var e=t.slice(0);t.length=0;for(var c=0;c<e.length;c++)if(!e[c].cancelled)try{e[c].callback(p)}catch(r){setTimeout((function(){throw r}),0)}}),Math.round(r))}return t.push({handle:++u,callback:e,cancelled:!1}),u},l=function(e){for(var c=0;c<t.length;c++)t[c].handle===e&&(t[c].cancelled=!0)}}m.exports=function(e){return o.call(r,e)},m.exports.cancel=function(){l.apply(r,arguments)},m.exports.polyfill=function(e){e||(e=r),e.requestAnimationFrame=o,e.cancelAnimationFrame=l};var y=m.exports;const C=v(y);export{C as r};