moreShopAdmin/build/admin/assets/raf.4a8e4708.js

2 lines
1014 B
JavaScript

import{n as g}from"./@babel.80d29b7b.js";import{r as R}from"./performance-now.36ef0a90.js";var l={exports:{}},d;function A(){if(d)return l.exports;d=1;for(var v=R(),n=typeof window>"u"?g:window,i=["moz","webkit"],t="AnimationFrame",o=n["request"+t],c=n["cancel"+t]||n["cancelRequest"+t],f=0;!o&&f<i.length;f++)o=n[i[f]+"Request"+t],c=n[i[f]+"Cancel"+t]||n[i[f]+"CancelRequest"+t];if(!o||!c){var m=0,p=0,e=[],x=1e3/60;o=function(r){if(e.length===0){var a=v(),h=Math.max(0,x-(a-m));m=h+a,setTimeout(function(){var u=e.slice(0);e.length=0;for(var s=0;s<u.length;s++)if(!u[s].cancelled)try{u[s].callback(m)}catch(w){setTimeout(function(){throw w},0)}},Math.round(h))}return e.push({handle:++p,callback:r,cancelled:!1}),p},c=function(r){for(var a=0;a<e.length;a++)e[a].handle===r&&(e[a].cancelled=!0)}}return l.exports=function(r){return o.call(n,r)},l.exports.cancel=function(){c.apply(n,arguments)},l.exports.polyfill=function(r){r||(r=n),r.requestAnimationFrame=o,r.cancelAnimationFrame=c},l.exports}export{A as r};