import{__exports as n}from"../../../../../_virtual/scheduler.development.js";
/**
 * @license React
 * scheduler.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var e;function t(){return e||(e=1,t=n,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=!1,e=!1;function r(n,e){var t=n.length;n.push(e),function(n,e,t){for(var r=t;r>0;){var a=r-1>>>1,i=n[a];if(!(l(i,e)>0))return;n[a]=e,n[r]=i,r=a}}(n,e,t)}function a(n){return 0===n.length?null:n[0]}function i(n){if(0===n.length)return null;var e=n[0],t=n.pop();return t!==e&&(n[0]=t,function(n,e,t){for(var r=t,a=n.length,i=a>>>1;r<i;){var o=2*(r+1)-1,u=n[o],s=o+1,f=n[s];if(l(u,e)<0)s<a&&l(f,u)<0?(n[r]=f,n[s]=e,r=s):(n[r]=u,n[o]=e,r=o);else{if(!(s<a&&l(f,e)<0))return;n[r]=f,n[s]=e,r=s}}}(n,t,0)),e}function l(n,e){var t=n.sortIndex-e.sortIndex;return 0!==t?t:n.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var f=[],c=[],_=1,d=null,p=3,v=!1,b=!1,y=!1,O="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function T(n){for(var e=a(c);null!==e;){if(null===e.callback)i(c);else{if(!(e.startTime<=n))return;i(c),e.sortIndex=e.expirationTime,r(f,e)}e=a(c)}}function h(n){if(y=!1,T(n),!b)if(null!==a(f))b=!0,M(L);else{var e=a(c);null!==e&&R(h,e.startTime-n)}}function L(r,l){b=!1,y&&(y=!1,B()),v=!0;var o=p;try{if(!e)return function(e,r){var l=r;for(T(l),d=a(f);null!==d&&!n&&(!(d.expirationTime>l)||e&&!C());){var o=d.callback;if("function"==typeof o){d.callback=null,p=d.priorityLevel;var u=o(d.expirationTime<=l);l=t.unstable_now(),"function"==typeof u?d.callback=u:d===a(f)&&i(f),T(l)}else i(f);d=a(f)}if(null!==d)return!0;var s=a(c);return null!==s&&R(h,s.startTime-l),!1}(r,l)}finally{d=null,p=o,v=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w=!1,k=null,E=-1,I=5,x=-1;function C(){return!(t.unstable_now()-x<I)}var A,P=function(){if(null!==k){var n=t.unstable_now();x=n;var e=!0;try{e=k(!0,n)}finally{e?A():(w=!1,k=null)}}else w=!1};if("function"==typeof g)A=function(){g(P)};else if("undefined"!=typeof MessageChannel){var S=new MessageChannel,D=S.port2;S.port1.onmessage=P,A=function(){D.postMessage(null)}}else A=function(){O(P,0)};function M(n){k=n,w||(w=!0,A())}function R(n,e){E=O((function(){n(t.unstable_now())}),e)}function B(){m(E),E=-1}var V=function(){};t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(n){n.callback=null},t.unstable_continueExecution=function(){b||v||(b=!0,M(L))},t.unstable_forceFrameRate=function(n){n<0||n>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=n>0?Math.floor(1e3/n):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return a(f)},t.unstable_next=function(n){var e;switch(p){case 1:case 2:case 3:e=3;break;default:e=p}var t=p;p=e;try{return n()}finally{p=t}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(n,e){switch(n){case 1:case 2:case 3:case 4:case 5:break;default:n=3}var t=p;p=n;try{return e()}finally{p=t}},t.unstable_scheduleCallback=function(n,e,i){var l,o,u=t.unstable_now();if("object"==typeof i&&null!==i){var s=i.delay;l="number"==typeof s&&s>0?u+s:u}else l=u;switch(n){case 1:o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}var d=l+o,p={id:_++,callback:e,priorityLevel:n,startTime:l,expirationTime:d,sortIndex:-1};return l>u?(p.sortIndex=l,r(c,p),null===a(f)&&p===a(c)&&(y?B():y=!0,R(h,l-u))):(p.sortIndex=d,r(f,p),b||v||(b=!0,M(L))),p},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(n){var e=p;return function(){var t=p;p=e;try{return n.apply(this,arguments)}finally{p=t}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),n;var t}export{t as __require};
//# sourceMappingURL=scheduler.development.js.map
