import{a as v,c as x}from"./3f2064fa9a9acc842de50ad820610f4b.js";import{p as g}from"./b219361e0fbeb026eb7c1e25f4f4c763.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 a=w(),c=Math.max(0,F-(a-p));p=c+a,setTimeout((function(){var e=t.slice(0);t.length=0;for(var a=0;a<e.length;a++)if(!e[a].cancelled)try{e[a].callback(p)}catch(c){setTimeout((function(){throw c}),0)}}),Math.round(c))}return t.push({handle:++u,callback:e,cancelled:!1}),u},l=function(e){for(var a=0;a<t.length;a++)t[a].handle===e&&(t[a].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};