MCPcopy Index your code
hub / github.com/SortableJS/react-sortablejs / k

Function k

docs/examples.42ccc30d.js:8–8  ·  view source on GitHub ↗
(e,t)

Source from the content-addressed store, hash-verified

6"use strict";module.exports=require("./cjs/react.production.min.js");
7},{"./cjs/react.production.min.js":"awqi"}],"IvPb":[function(require,module,exports) {
8"use strict";var e,t,n,r,o;if(Object.defineProperty(exports,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var a=null,l=null,i=function(){if(null!==a)try{var e=exports.unstable_now();a(!0,e),a=null}catch(t){throw setTimeout(i,0),t}},u=Date.now();exports.unstable_now=function(){return Date.now()-u},e=function(t){null!==a?setTimeout(e,0,t):(a=t,setTimeout(i,0))},t=function(e,t){l=setTimeout(e,t)},n=function(){clearTimeout(l)},r=function(){return!1},o=exports.unstable_forceFrameRate=function(){}}else{var s=window.performance,c=window.Date,f=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var b=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof s&&"function"==typeof s.now)exports.unstable_now=function(){return s.now()};else{var d=c.now();exports.unstable_now=function(){return c.now()-d}}var v=!1,x=null,w=-1,m=5,y=0;r=function(){return exports.unstable_now()>=y},o=function(){},exports.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):m=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,h=_.port2;_.port1.onmessage=function(){if(null!==x){var e=exports.unstable_now();y=e+m;try{x(!0,e)?h.postMessage(null):(v=!1,x=null)}catch(t){throw h.postMessage(null),t}}else v=!1},e=function(e){x=e,v||(v=!0,h.postMessage(null))},t=function(e,t){w=f(function(){e(exports.unstable_now())},t)},n=function(){p(w),w=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),o=e[r];if(!(void 0!==o&&0<M(o,t)))break e;e[r]=t,e[n]=o,n=r}}function T(e){return void 0===(e=e[0])?null:e}function g(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,l=e[a],i=a+1,u=e[i];if(void 0!==l&&0>M(l,n))void 0!==u&&0>M(u,l)?(e[r]=u,e[i]=n,r=i):(e[r]=l,e[a]=n,r=a);else{if(!(void 0!==u&&0>M(u,n)))break e;e[r]=u,e[i]=n,r=i}}}return t}return null}function M(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],F=[],I=1,C=null,A=3,L=!1,j=!1,q=!1;function D(e){for(var t=T(F);null!==t;){if(null===t.callback)g(F);else{if(!(t.startTime<=e))break;g(F),t.sortIndex=t.expirationTime,k(P,t)}t=T(F)}}function R(n){if(q=!1,D(n),!j)if(null!==T(P))j=!0,e(E);else{var r=T(F);null!==r&&t(R,r.startTime-n)}}function E(e,o){j=!1,q&&(q=!1,n()),L=!0;var a=A;try{for(D(o),C=T(P);null!==C&&(!(C.expirationTime>o)||e&&!r());){var l=C.callback;if(null!==l){C.callback=null,A=C.priorityLevel;var i=l(C.expirationTime<=o);o=exports.unstable_now(),"function"==typeof i?C.callback=i:C===T(P)&&g(P),D(o)}else g(P);C=T(P)}if(null!==C)var u=!0;else{var s=T(F);null!==s&&t(R,s.startTime-o),u=!1}return u}finally{C=null,A=a,L=!1}}function N(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=o;exports.unstable_ImmediatePriority=1,exports.unstable_UserBlockingPriority=2,exports.unstable_NormalPriority=3,exports.unstable_IdlePriority=5,exports.unstable_LowPriority=4,exports.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},exports.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},exports.unstable_scheduleCallback=function(r,o,a){var l=exports.unstable_now();if("object"==typeof a&&null!==a){var i=a.delay;i="number"==typeof i&&0<i?l+i:l,a="number"==typeof a.timeout?a.timeout:N(r)}else a=N(r),i=l;return r={id:I++,callback:o,priorityLevel:r,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>l?(r.sortIndex=i,k(F,r),null===T(P)&&r===T(F)&&(q?n():q=!0,t(R,i-l))):(r.sortIndex=a,k(P,r),j||L||(j=!0,e(E))),r},exports.unstable_cancelCallback=function(e){e.callback=null},exports.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}},exports.unstable_getCurrentPriorityLevel=function(){return A},exports.unstable_shouldYield=function(){var e=exports.unstable_now();D(e);var t=T(P);return t!==C&&null!==C&&null!==t&&null!==t.callback&&t.startTime<=e&&t.expirationTime<C.expirationTime||r()},exports.unstable_requestPaint=B,exports.unstable_continueExecution=function(){j||L||(j=!0,e(E))},exports.unstable_pauseExecution=function(){},exports.unstable_getFirstCallbackNode=function(){return T(P)},exports.unstable_Profiling=null;
9},{}],"MDSO":[function(require,module,exports) {
10"use strict";module.exports=require("./cjs/scheduler.production.min.js");
11},{"./cjs/scheduler.production.min.js":"IvPb"}],"i17t":[function(require,module,exports) {

Callers 6

DFunction · 0.85
zFunction · 0.85
neFunction · 0.85
KtFunction · 0.85
teFunction · 0.85

Calls 3

MFunction · 0.85
xFunction · 0.85
EFunction · 0.85

Tested by

no test coverage detected