function n(t){try{if(typeof globalThis<"u"&&typeof globalThis.requestAnimationFrame=="function")return globalThis.requestAnimationFrame(t)}catch{}return globalThis.setTimeout(t,0)}function i(t){try{if(t==null)return;if(typeof globalThis<"u"&&typeof globalThis.cancelAnimationFrame=="function")return void globalThis.cancelAnimationFrame(t)}catch{}try{globalThis.clearTimeout(t)}catch{}}export{n as i,i as t};
