jupyterhub/theme/static/js/admin-react.js

2 lines
301 KiB
JavaScript
Raw Normal View History

2023-01-20 13:01:31 +00:00
/*! For license information please see admin-react.js.LICENSE.txt */
(()=>{var e,t,n={737:(e,t,n)=>{"use strict";var r=n(294),a=n(935),o=r.createContext(null),i=function(e){e()},u=function(){return i},l={notify:function(){},get:function(){return[]}};function c(e,t){var n,r=l;function a(){i.onStateChange&&i.onStateChange()}function o(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){var e=u(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,a=n={callback:e,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){r&&null!==t&&(r=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}())}var i={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=l)},getListeners:function(){return r}};return i}var s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;const f=function(e){var t=e.store,n=e.context,a=e.children,i=(0,r.useMemo)((function(){var e=c(t);return{store:t,subscription:e}}),[t]),u=(0,r.useMemo)((function(){return t.getState()}),[t]);s((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,u]);var l=n||o;return r.createElement(l.Provider,{value:i},a)};function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function p(){return(0,r.useContext)(o)}function h(e){void 0===e&&(e=o);var t=e===o?p:function(){return(0,r.useContext)(e)};return function(){return t().store}}n(679),n(864);var v=h();function m(e){void 0===e&&(e=o);var t=e===o?v:h(e);return function(){return t().dispatch}}var y=m(),g=function(e,t){return e===t};function b(e){void 0===e&&(e=o);var t=e===o?p:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=g);var a=t(),o=function(e,t,n,a){var o,i=(0,r.useReducer)((function(e){return e+1}),0)[1],u=(0,r.useMemo)((function(){return c(n,a)}),[n,a]),l=(0,r.useRef)(),f=(0,r.useRef)(),d=(0,r.useRef)(),p=(0,r.useRef)(),h=n.getState();try{if(e!==f.current||h!==d.current||l.current){var v=e(h);o=void 0!==p.current&&t(v,p.current)?p.current:v}else o=p.current}catch(e){throw l.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),e}return s((function(){f.current=e,d.current=h,p.current=o,l.current=void 0})),s((function(){function e(){try{var e=n.getState();if(e===d.current)return;var r=f.current(e);if(t(r,p.current))return;p.current=r,d.current=e}catch(e){l.current=e}i()}return u.onStateChange=e,u.trySubscribe(),e(),function(){return u.tryUnsubscribe()}}),[n,u]),o}(e,n,a.store,a.subscription);return(0,r.useDebugValue)(o),o}}var w,_=b();function E(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}w=a.unstable_batchedUpdates,i=w;var x="function"==typeof Symbol&&Symbol.observable||"@@observable",k=function(){return Math.random().toString(36).substring(7).split("").join(".")},S={INIT:"@@redux/INIT"+k(),REPLACE:"@@redux/REPLACE"+k(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+k()}};function C(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}function O(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,N(e,t)}n(766);n(790),n(121);Object.prototype.hasOwnProperty,Object.keys,r.Component;var P,T=function(){for(var e=ar