recently-published
Version:
A simple CLI tool to get the most recently published versions of a package on npm or see which install package versions were most recently published.
39 lines (30 loc) • 56 kB
JavaScript
#!/usr/bin/env node
var Vn=Object.create;var Wt=Object.defineProperty;var Nn=Object.getOwnPropertyDescriptor;var Ln=Object.getOwnPropertyNames;var Wn=Object.getPrototypeOf,Un=Object.prototype.hasOwnProperty;var xe=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var Yn=(n,o,l,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let d of Ln(o))!Un.call(n,d)&&d!==l&&Wt(n,d,{get:()=>o[d],enumerable:!(s=Nn(o,d))||s.enumerable});return n};var Ke=(n,o,l)=>(l=n!=null?Vn(Wn(n)):{},Yn(o||!n||!n.__esModule?Wt(l,"default",{value:n,enumerable:!0}):l,n));var un=xe(C=>{"use strict";var Je=Symbol.for("react.element"),Gn=Symbol.for("react.portal"),Xn=Symbol.for("react.fragment"),Qn=Symbol.for("react.strict_mode"),Zn=Symbol.for("react.profiler"),eo=Symbol.for("react.provider"),ro=Symbol.for("react.context"),to=Symbol.for("react.forward_ref"),no=Symbol.for("react.suspense"),oo=Symbol.for("react.memo"),ao=Symbol.for("react.lazy"),Gt=Symbol.iterator;function io(n){return n===null||typeof n!="object"?null:(n=Gt&&n[Gt]||n["@@iterator"],typeof n=="function"?n:null)}var Zt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},en=Object.assign,rn={};function je(n,o,l){this.props=n,this.context=o,this.refs=rn,this.updater=l||Zt}je.prototype.isReactComponent={};je.prototype.setState=function(n,o){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,o,"setState")};je.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function tn(){}tn.prototype=je.prototype;function ut(n,o,l){this.props=n,this.context=o,this.refs=rn,this.updater=l||Zt}var lt=ut.prototype=new tn;lt.constructor=ut;en(lt,je.prototype);lt.isPureReactComponent=!0;var Xt=Array.isArray,nn=Object.prototype.hasOwnProperty,ct={current:null},on={key:!0,ref:!0,__self:!0,__source:!0};function an(n,o,l){var s,d={},v=null,b=null;if(o!=null)for(s in o.ref!==void 0&&(b=o.ref),o.key!==void 0&&(v=""+o.key),o)nn.call(o,s)&&!on.hasOwnProperty(s)&&(d[s]=o[s]);var _=arguments.length-2;if(_===1)d.children=l;else if(1<_){for(var y=Array(_),x=0;x<_;x++)y[x]=arguments[x+2];d.children=y}if(n&&n.defaultProps)for(s in _=n.defaultProps,_)d[s]===void 0&&(d[s]=_[s]);return{$$typeof:Je,type:n,key:v,ref:b,props:d,_owner:ct.current}}function so(n,o){return{$$typeof:Je,type:n.type,key:o,ref:n.ref,props:n.props,_owner:n._owner}}function ft(n){return typeof n=="object"&&n!==null&&n.$$typeof===Je}function uo(n){var o={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(l){return o[l]})}var Qt=/\/+/g;function st(n,o){return typeof n=="object"&&n!==null&&n.key!=null?uo(""+n.key):o.toString(36)}function kr(n,o,l,s,d){var v=typeof n;(v==="undefined"||v==="boolean")&&(n=null);var b=!1;if(n===null)b=!0;else switch(v){case"string":case"number":b=!0;break;case"object":switch(n.$$typeof){case Je:case Gn:b=!0}}if(b)return b=n,d=d(b),n=s===""?"."+st(b,0):s,Xt(d)?(l="",n!=null&&(l=n.replace(Qt,"$&/")+"/"),kr(d,o,l,"",function(x){return x})):d!=null&&(ft(d)&&(d=so(d,l+(!d.key||b&&b.key===d.key?"":(""+d.key).replace(Qt,"$&/")+"/")+n)),o.push(d)),1;if(b=0,s=s===""?".":s+":",Xt(n))for(var _=0;_<n.length;_++){v=n[_];var y=s+st(v,_);b+=kr(v,o,l,y,d)}else if(y=io(n),typeof y=="function")for(n=y.call(n),_=0;!(v=n.next()).done;)v=v.value,y=s+st(v,_++),b+=kr(v,o,l,y,d);else if(v==="object")throw o=String(n),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return b}function wr(n,o,l){if(n==null)return n;var s=[],d=0;return kr(n,s,"","",function(v){return o.call(l,v,d++)}),s}function lo(n){if(n._status===-1){var o=n._result;o=o(),o.then(function(l){(n._status===0||n._status===-1)&&(n._status=1,n._result=l)},function(l){(n._status===0||n._status===-1)&&(n._status=2,n._result=l)}),n._status===-1&&(n._status=0,n._result=o)}if(n._status===1)return n._result.default;throw n._result}var K={current:null},Sr={transition:null},co={ReactCurrentDispatcher:K,ReactCurrentBatchConfig:Sr,ReactCurrentOwner:ct};function sn(){throw Error("act(...) is not supported in production builds of React.")}C.Children={map:wr,forEach:function(n,o,l){wr(n,function(){o.apply(this,arguments)},l)},count:function(n){var o=0;return wr(n,function(){o++}),o},toArray:function(n){return wr(n,function(o){return o})||[]},only:function(n){if(!ft(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};C.Component=je;C.Fragment=Xn;C.Profiler=Zn;C.PureComponent=ut;C.StrictMode=Qn;C.Suspense=no;C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=co;C.act=sn;C.cloneElement=function(n,o,l){if(n==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var s=en({},n.props),d=n.key,v=n.ref,b=n._owner;if(o!=null){if(o.ref!==void 0&&(v=o.ref,b=ct.current),o.key!==void 0&&(d=""+o.key),n.type&&n.type.defaultProps)var _=n.type.defaultProps;for(y in o)nn.call(o,y)&&!on.hasOwnProperty(y)&&(s[y]=o[y]===void 0&&_!==void 0?_[y]:o[y])}var y=arguments.length-2;if(y===1)s.children=l;else if(1<y){_=Array(y);for(var x=0;x<y;x++)_[x]=arguments[x+2];s.children=_}return{$$typeof:Je,type:n.type,key:d,ref:v,props:s,_owner:b}};C.createContext=function(n){return n={$$typeof:ro,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},n.Provider={$$typeof:eo,_context:n},n.Consumer=n};C.createElement=an;C.createFactory=function(n){var o=an.bind(null,n);return o.type=n,o};C.createRef=function(){return{current:null}};C.forwardRef=function(n){return{$$typeof:to,render:n}};C.isValidElement=ft;C.lazy=function(n){return{$$typeof:ao,_payload:{_status:-1,_result:n},_init:lo}};C.memo=function(n,o){return{$$typeof:oo,type:n,compare:o===void 0?null:o}};C.startTransition=function(n){var o=Sr.transition;Sr.transition={};try{n()}finally{Sr.transition=o}};C.unstable_act=sn;C.useCallback=function(n,o){return K.current.useCallback(n,o)};C.useContext=function(n){return K.current.useContext(n)};C.useDebugValue=function(){};C.useDeferredValue=function(n){return K.current.useDeferredValue(n)};C.useEffect=function(n,o){return K.current.useEffect(n,o)};C.useId=function(){return K.current.useId()};C.useImperativeHandle=function(n,o,l){return K.current.useImperativeHandle(n,o,l)};C.useInsertionEffect=function(n,o){return K.current.useInsertionEffect(n,o)};C.useLayoutEffect=function(n,o){return K.current.useLayoutEffect(n,o)};C.useMemo=function(n,o){return K.current.useMemo(n,o)};C.useReducer=function(n,o,l){return K.current.useReducer(n,o,l)};C.useRef=function(n){return K.current.useRef(n)};C.useState=function(n){return K.current.useState(n)};C.useSyncExternalStore=function(n,o,l){return K.current.useSyncExternalStore(n,o,l)};C.useTransition=function(){return K.current.useTransition()};C.version="18.3.1"});var ln=xe((P,Or)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.3.1",o=Symbol.for("react.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),_=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Ae=Symbol.for("react.offscreen"),$e=Symbol.iterator,Ar="@@iterator";function Qe(e){if(e===null||typeof e!="object")return null;var t=$e&&e[$e]||e[Ar];return typeof t=="function"?t:null}var ne={current:null},A={transition:null},L={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Q={current:null},fe={},he=null;function Ze(e){he=e}fe.setExtraStackFrame=function(e){he=e},fe.getCurrentStack=null,fe.getStackAddendum=function(){var e="";he&&(e+=he);var t=fe.getCurrentStack;return t&&(e+=t()||""),e};var $r=!1,er=!1,Ir=!1,Fr=!1,rr=!1,W={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:A,ReactCurrentOwner:Q};W.ReactDebugCurrentFrame=fe,W.ReactCurrentActQueue=L;function J(e){{for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];Ie("warn",e,a)}}function E(e){{for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];Ie("error",e,a)}}function Ie(e,t,a){{var i=W.ReactDebugCurrentFrame,c=i.getStackAddendum();c!==""&&(t+="%s",a=a.concat([c]));var h=a.map(function(p){return String(p)});h.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,h)}}var Fe={};function me(e,t){{var a=e.constructor,i=a&&(a.displayName||a.name)||"ReactClass",c=i+"."+t;if(Fe[c])return;E("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,i),Fe[c]=!0}}var Me={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,a){me(e,"forceUpdate")},enqueueReplaceState:function(e,t,a,i){me(e,"replaceState")},enqueueSetState:function(e,t,a,i){me(e,"setState")}},X=Object.assign,ge={};Object.freeze(ge);function re(e,t,a){this.props=e,this.context=t,this.refs=ge,this.updater=a||Me}re.prototype.isReactComponent={},re.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},re.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var be={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Mr=function(e,t){Object.defineProperty(re.prototype,e,{get:function(){J("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var Ve in be)be.hasOwnProperty(Ve)&&Mr(Ve,be[Ve])}function _e(){}_e.prototype=re.prototype;function de(e,t,a){this.props=e,this.context=t,this.refs=ge,this.updater=a||Me}var ie=de.prototype=new _e;ie.constructor=de,X(ie,re.prototype),ie.isPureReactComponent=!0;function Ne(){var e={current:null};return Object.seal(e),e}var Ee=Array.isArray;function Re(e){return Ee(e)}function tr(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,a=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Vr(e){try{return nr(e),!1}catch{return!0}}function nr(e){return""+e}function oe(e){if(Vr(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tr(e)),nr(e)}function pe(e,t,a){var i=e.displayName;if(i)return i;var c=t.displayName||t.name||"";return c!==""?a+"("+c+")":a}function Le(e){return e.displayName||"Context"}function Z(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case s:return"Fragment";case l:return"Portal";case v:return"Profiler";case d:return"StrictMode";case x:return"Suspense";case N:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return Le(t)+".Consumer";case b:var a=e;return Le(a._context)+".Provider";case y:return pe(e,e.render,"ForwardRef");case V:var i=e.displayName||null;return i!==null?i:Z(e.type)||"Memo";case H:{var c=e,h=c._payload,p=c._init;try{return Z(p(h))}catch{return null}}}return null}var te=Object.prototype.hasOwnProperty,or={key:!0,ref:!0,__self:!0,__source:!0},ar,Ce,We;We={};function ir(e){if(te.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Ue(e){if(te.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function sr(e,t){var a=function(){ar||(ar=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}function ve(e,t){var a=function(){Ce||(Ce=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}function Nr(e){if(typeof e.ref=="string"&&Q.current&&e.__self&&Q.current.stateNode!==e.__self){var t=Z(Q.current.type);We[t]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),We[t]=!0)}}var Pe=function(e,t,a,i,c,h,p){var g={$$typeof:o,type:e,key:t,ref:a,props:p,_owner:h};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function ur(e,t,a){var i,c={},h=null,p=null,g=null,w=null;if(t!=null){ir(t)&&(p=t.ref,Nr(t)),Ue(t)&&(oe(t.key),h=""+t.key),g=t.__self===void 0?null:t.__self,w=t.__source===void 0?null:t.__source;for(i in t)te.call(t,i)&&!or.hasOwnProperty(i)&&(c[i]=t[i])}var O=arguments.length-2;if(O===1)c.children=a;else if(O>1){for(var j=Array(O),D=0;D<O;D++)j[D]=arguments[D+2];Object.freeze&&Object.freeze(j),c.children=j}if(e&&e.defaultProps){var I=e.defaultProps;for(i in I)c[i]===void 0&&(c[i]=I[i])}if(h||p){var M=typeof e=="function"?e.displayName||e.name||"Unknown":e;h&&sr(c,M),p&&ve(c,M)}return Pe(e,h,p,g,w,Q.current,c)}function Ye(e,t){var a=Pe(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return a}function Lr(e,t,a){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i,c=X({},e.props),h=e.key,p=e.ref,g=e._self,w=e._source,O=e._owner;if(t!=null){ir(t)&&(p=t.ref,O=Q.current),Ue(t)&&(oe(t.key),h=""+t.key);var j;e.type&&e.type.defaultProps&&(j=e.type.defaultProps);for(i in t)te.call(t,i)&&!or.hasOwnProperty(i)&&(t[i]===void 0&&j!==void 0?c[i]=j[i]:c[i]=t[i])}var D=arguments.length-2;if(D===1)c.children=a;else if(D>1){for(var I=Array(D),M=0;M<D;M++)I[M]=arguments[M+2];c.children=I}return Pe(e.type,h,p,g,w,O,c)}function se(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}var lr=".",Wr=":";function Ur(e){var t=/[=:]/g,a={"=":"=0",":":"=2"},i=e.replace(t,function(c){return a[c]});return"$"+i}var cr=!1,Yr=/\/+/g;function Te(e){return e.replace(Yr,"$&/")}function we(e,t){return typeof e=="object"&&e!==null&&e.key!=null?(oe(e.key),Ur(""+e.key)):t.toString(36)}function ee(e,t,a,i,c){var h=typeof e;(h==="undefined"||h==="boolean")&&(e=null);var p=!1;if(e===null)p=!0;else switch(h){case"string":case"number":p=!0;break;case"object":switch(e.$$typeof){case o:case l:p=!0}}if(p){var g=e,w=c(g),O=i===""?lr+we(g,0):i;if(Re(w)){var j="";O!=null&&(j=Te(O)+"/"),ee(w,t,j,"",function(Mn){return Mn})}else w!=null&&(se(w)&&(w.key&&(!g||g.key!==w.key)&&oe(w.key),w=Ye(w,a+(w.key&&(!g||g.key!==w.key)?Te(""+w.key)+"/":"")+O)),t.push(w));return 1}var D,I,M=0,Y=i===""?lr:i+Wr;if(Re(e))for(var Tr=0;Tr<e.length;Tr++)D=e[Tr],I=Y+we(D,Tr),M+=ee(D,t,a,I,c);else{var tt=Qe(e);if(typeof tt=="function"){var Vt=e;tt===Vt.entries&&(cr||J("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),cr=!0);for(var In=tt.call(Vt),Nt,Fn=0;!(Nt=In.next()).done;)D=Nt.value,I=Y+we(D,Fn++),M+=ee(D,t,a,I,c)}else if(h==="object"){var Lt=String(e);throw new Error("Objects are not valid as a React child (found: "+(Lt==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":Lt)+"). If you meant to render a collection of children, use an array instead.")}}return M}function ue(e,t,a){if(e==null)return e;var i=[],c=0;return ee(e,i,"","",function(h){return t.call(a,h,c++)}),i}function Be(e){var t=0;return ue(e,function(){t++}),t}function fr(e,t,a){ue(e,function(){t.apply(this,arguments)},a)}function Br(e){return ue(e,function(t){return t})||[]}function dr(e){if(!se(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function zr(e){var t={$$typeof:_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:b,_context:t};var a=!1,i=!1,c=!1;{var h={$$typeof:_,_context:t};Object.defineProperties(h,{Provider:{get:function(){return i||(i=!0,E("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(p){t.Provider=p}},_currentValue:{get:function(){return t._currentValue},set:function(p){t._currentValue=p}},_currentValue2:{get:function(){return t._currentValue2},set:function(p){t._currentValue2=p}},_threadCount:{get:function(){return t._threadCount},set:function(p){t._threadCount=p}},Consumer:{get:function(){return a||(a=!0,E("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(p){c||(J("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",p),c=!0)}}}),t.Consumer=h}return t._currentRenderer=null,t._currentRenderer2=null,t}var le=-1,ke=0,pr=1,Kr=2;function vr(e){if(e._status===le){var t=e._result,a=t();if(a.then(function(h){if(e._status===ke||e._status===le){var p=e;p._status=pr,p._result=h}},function(h){if(e._status===ke||e._status===le){var p=e;p._status=Kr,p._result=h}}),e._status===le){var i=e;i._status=ke,i._result=a}}if(e._status===pr){var c=e._result;return c===void 0&&E(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,c),"default"in c||E(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,c),c.default}else throw e._result}function yr(e){var t={_status:le,_result:e},a={$$typeof:H,_payload:t,_init:vr};{var i,c;Object.defineProperties(a,{defaultProps:{configurable:!0,get:function(){return i},set:function(h){E("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),i=h,Object.defineProperty(a,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return c},set:function(h){E("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),c=h,Object.defineProperty(a,"propTypes",{enumerable:!0})}}})}return a}function Hr(e){e!=null&&e.$$typeof===V?E("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?E("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&E("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&E("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var t={$$typeof:y,render:e};{var a;Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return a},set:function(i){a=i,!e.name&&!e.displayName&&(e.displayName=i)}})}return t}var hr;hr=Symbol.for("react.module.reference");function mr(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===v||rr||e===d||e===x||e===N||Fr||e===Ae||$r||er||Ir||typeof e=="object"&&e!==null&&(e.$$typeof===H||e.$$typeof===V||e.$$typeof===b||e.$$typeof===_||e.$$typeof===y||e.$$typeof===hr||e.getModuleId!==void 0))}function Jr(e,t){mr(e)||E("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var a={$$typeof:V,type:e,compare:t===void 0?null:t};{var i;Object.defineProperty(a,"displayName",{enumerable:!1,configurable:!0,get:function(){return i},set:function(c){i=c,!e.name&&!e.displayName&&(e.displayName=c)}})}return a}function r(){var e=ne.current;return e===null&&E(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function u(e){var t=r();if(e._context!==void 0){var a=e._context;a.Consumer===e?E("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):a.Provider===e&&E("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)}function f(e){var t=r();return t.useState(e)}function m(e,t,a){var i=r();return i.useReducer(e,t,a)}function k(e){var t=r();return t.useRef(e)}function S(e,t){var a=r();return a.useEffect(e,t)}function T(e,t){var a=r();return a.useInsertionEffect(e,t)}function R(e,t){var a=r();return a.useLayoutEffect(e,t)}function U(e,t){var a=r();return a.useCallback(e,t)}function $(e,t){var a=r();return a.useMemo(e,t)}function F(e,t,a){var i=r();return i.useImperativeHandle(e,t,a)}function q(e,t){{var a=r();return a.useDebugValue(e,t)}}function ce(){var e=r();return e.useTransition()}function ae(e){var t=r();return t.useDeferredValue(e)}function B(){var e=r();return e.useId()}function ze(e,t,a){var i=r();return i.useSyncExternalStore(e,t,a)}var ye=0,gr,gt,bt,_t,Et,Rt,Ct;function Pt(){}Pt.__reactDisabledLog=!0;function mn(){{if(ye===0){gr=console.log,gt=console.info,bt=console.warn,_t=console.error,Et=console.group,Rt=console.groupCollapsed,Ct=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Pt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ye++}}function gn(){{if(ye--,ye===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:X({},e,{value:gr}),info:X({},e,{value:gt}),warn:X({},e,{value:bt}),error:X({},e,{value:_t}),group:X({},e,{value:Et}),groupCollapsed:X({},e,{value:Rt}),groupEnd:X({},e,{value:Ct})})}ye<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qr=W.ReactCurrentDispatcher,Gr;function br(e,t,a){{if(Gr===void 0)try{throw Error()}catch(c){var i=c.stack.trim().match(/\n( *(at )?)/);Gr=i&&i[1]||""}return`
`+Gr+e}}var Xr=!1,_r;{var bn=typeof WeakMap=="function"?WeakMap:Map;_r=new bn}function Tt(e,t){if(!e||Xr)return"";{var a=_r.get(e);if(a!==void 0)return a}var i;Xr=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=qr.current,qr.current=null,mn();try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(Y){i=Y}Reflect.construct(e,[],p)}else{try{p.call()}catch(Y){i=Y}e.call(p.prototype)}}else{try{throw Error()}catch(Y){i=Y}e()}}catch(Y){if(Y&&i&&typeof Y.stack=="string"){for(var g=Y.stack.split(`
`),w=i.stack.split(`
`),O=g.length-1,j=w.length-1;O>=1&&j>=0&&g[O]!==w[j];)j--;for(;O>=1&&j>=0;O--,j--)if(g[O]!==w[j]){if(O!==1||j!==1)do if(O--,j--,j<0||g[O]!==w[j]){var D=`
`+g[O].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),typeof e=="function"&&_r.set(e,D),D}while(O>=1&&j>=0);break}}}finally{Xr=!1,qr.current=h,gn(),Error.prepareStackTrace=c}var I=e?e.displayName||e.name:"",M=I?br(I):"";return typeof e=="function"&&_r.set(e,M),M}function _n(e,t,a){return Tt(e,!1)}function En(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Er(e,t,a){if(e==null)return"";if(typeof e=="function")return Tt(e,En(e));if(typeof e=="string")return br(e);switch(e){case x:return br("Suspense");case N:return br("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return _n(e.render);case V:return Er(e.type,t,a);case H:{var i=e,c=i._payload,h=i._init;try{return Er(h(c),t,a)}catch{}}}return""}var wt={},kt=W.ReactDebugCurrentFrame;function Rr(e){if(e){var t=e._owner,a=Er(e.type,e._source,t?t.type:null);kt.setExtraStackFrame(a)}else kt.setExtraStackFrame(null)}function Rn(e,t,a,i,c){{var h=Function.call.bind(te);for(var p in e)if(h(e,p)){var g=void 0;try{if(typeof e[p]!="function"){var w=Error((i||"React class")+": "+a+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}g=e[p](t,p,i,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(O){g=O}g&&!(g instanceof Error)&&(Rr(c),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",a,p,typeof g),Rr(null)),g instanceof Error&&!(g.message in wt)&&(wt[g.message]=!0,Rr(c),E("Failed %s type: %s",a,g.message),Rr(null))}}}function Se(e){if(e){var t=e._owner,a=Er(e.type,e._source,t?t.type:null);Ze(a)}else Ze(null)}var Qr;Qr=!1;function St(){if(Q.current){var e=Z(Q.current.type);if(e)return`
Check the render method of \``+e+"`."}return""}function Cn(e){if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
Check your code at `+t+":"+a+"."}return""}function Pn(e){return e!=null?Cn(e.__source):""}var Ot={};function Tn(e){var t=St();if(!t){var a=typeof e=="string"?e:e.displayName||e.name;a&&(t=`
Check the top-level render call using <`+a+">.")}return t}function xt(e,t){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var a=Tn(t);if(!Ot[a]){Ot[a]=!0;var i="";e&&e._owner&&e._owner!==Q.current&&(i=" It was passed a child from "+Z(e._owner.type)+"."),Se(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,i),Se(null)}}}function jt(e,t){if(typeof e=="object"){if(Re(e))for(var a=0;a<e.length;a++){var i=e[a];se(i)&&xt(i,t)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var c=Qe(e);if(typeof c=="function"&&c!==e.entries)for(var h=c.call(e),p;!(p=h.next()).done;)se(p.value)&&xt(p.value,t)}}}function Dt(e){{var t=e.type;if(t==null||typeof t=="string")return;var a;if(typeof t=="function")a=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===y||t.$$typeof===V))a=t.propTypes;else return;if(a){var i=Z(t);Rn(a,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!Qr){Qr=!0;var c=Z(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",c||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wn(e){{for(var t=Object.keys(e.props),a=0;a<t.length;a++){var i=t[a];if(i!=="children"&&i!=="key"){Se(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),Se(null);break}}e.ref!==null&&(Se(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Se(null))}}function At(e,t,a){var i=mr(e);if(!i){var c="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var h=Pn(t);h?c+=h:c+=St();var p;e===null?p="null":Re(e)?p="array":e!==void 0&&e.$$typeof===o?(p="<"+(Z(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):p=typeof e,E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",p,c)}var g=ur.apply(this,arguments);if(g==null)return g;if(i)for(var w=2;w<arguments.length;w++)jt(arguments[w],e);return e===s?wn(g):Dt(g),g}var $t=!1;function kn(e){var t=At.bind(null,e);return t.type=e,$t||($t=!0,J("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return J("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}function Sn(e,t,a){for(var i=Lr.apply(this,arguments),c=2;c<arguments.length;c++)jt(arguments[c],i.type);return Dt(i),i}function On(e,t){var a=A.transition;A.transition={};var i=A.transition;A.transition._updatedFibers=new Set;try{e()}finally{if(A.transition=a,a===null&&i._updatedFibers){var c=i._updatedFibers.size;c>10&&J("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),i._updatedFibers.clear()}}}var It=!1,Cr=null;function xn(e){if(Cr===null)try{var t=("require"+Math.random()).slice(0,7),a=Or&&Or[t];Cr=a.call(Or,"timers").setImmediate}catch{Cr=function(c){It===!1&&(It=!0,typeof MessageChannel>"u"&&E("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var h=new MessageChannel;h.port1.onmessage=c,h.port2.postMessage(void 0)}}return Cr(e)}var Oe=0,Ft=!1;function Mt(e){{var t=Oe;Oe++,L.current===null&&(L.current=[]);var a=L.isBatchingLegacy,i;try{if(L.isBatchingLegacy=!0,i=e(),!a&&L.didScheduleLegacyUpdate){var c=L.current;c!==null&&(L.didScheduleLegacyUpdate=!1,rt(c))}}catch(I){throw Pr(t),I}finally{L.isBatchingLegacy=a}if(i!==null&&typeof i=="object"&&typeof i.then=="function"){var h=i,p=!1,g={then:function(I,M){p=!0,h.then(function(Y){Pr(t),Oe===0?Zr(Y,I,M):I(Y)},function(Y){Pr(t),M(Y)})}};return!Ft&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){p||(Ft=!0,E("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),g}else{var w=i;if(Pr(t),Oe===0){var O=L.current;O!==null&&(rt(O),L.current=null);var j={then:function(I,M){L.current===null?(L.current=[],Zr(w,I,M)):I(w)}};return j}else{var D={then:function(I,M){I(w)}};return D}}}}function Pr(e){e!==Oe-1&&E("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Oe=e}function Zr(e,t,a){{var i=L.current;if(i!==null)try{rt(i),xn(function(){i.length===0?(L.current=null,t(e)):Zr(e,t,a)})}catch(c){a(c)}else t(e)}}var et=!1;function rt(e){if(!et){et=!0;var t=0;try{for(;t<e.length;t++){var a=e[t];do a=a(!0);while(a!==null)}e.length=0}catch(i){throw e=e.slice(t+1),i}finally{et=!1}}}var jn=At,Dn=Sn,An=kn,$n={map:ue,forEach:fr,count:Be,toArray:Br,only:dr};P.Children=$n,P.Component=re,P.Fragment=s,P.Profiler=v,P.PureComponent=de,P.StrictMode=d,P.Suspense=x,P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,P.act=Mt,P.cloneElement=Dn,P.createContext=zr,P.createElement=jn,P.createFactory=An,P.createRef=Ne,P.forwardRef=Hr,P.isValidElement=se,P.lazy=yr,P.memo=Jr,P.startTransition=On,P.unstable_act=Mt,P.useCallback=U,P.useContext=u,P.useDebugValue=q,P.useDeferredValue=ae,P.useEffect=S,P.useId=B,P.useImperativeHandle=F,P.useInsertionEffect=T,P.useLayoutEffect=R,P.useMemo=$,P.useReducer=m,P.useRef=k,P.useState=f,P.useSyncExternalStore=ze,P.useTransition=ce,P.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()});var xr=xe((Vo,dt)=>{"use strict";process.env.NODE_ENV==="production"?dt.exports=un():dt.exports=ln()});var fn=xe(jr=>{"use strict";var fo=xr(),po=Symbol.for("react.element"),vo=Symbol.for("react.fragment"),yo=Object.prototype.hasOwnProperty,ho=fo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mo={key:!0,ref:!0,__self:!0,__source:!0};function cn(n,o,l){var s,d={},v=null,b=null;l!==void 0&&(v=""+l),o.key!==void 0&&(v=""+o.key),o.ref!==void 0&&(b=o.ref);for(s in o)yo.call(o,s)&&!mo.hasOwnProperty(s)&&(d[s]=o[s]);if(n&&n.defaultProps)for(s in o=n.defaultProps,o)d[s]===void 0&&(d[s]=o[s]);return{$$typeof:po,type:n,key:v,ref:b,props:d,_owner:ho.current}}jr.Fragment=vo;jr.jsx=cn;jr.jsxs=cn});var dn=xe(Dr=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var n=xr(),o=Symbol.for("react.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),_=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Ae=Symbol.for("react.offscreen"),$e=Symbol.iterator,Ar="@@iterator";function Qe(r){if(r===null||typeof r!="object")return null;var u=$e&&r[$e]||r[Ar];return typeof u=="function"?u:null}var ne=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(r){{for(var u=arguments.length,f=new Array(u>1?u-1:0),m=1;m<u;m++)f[m-1]=arguments[m];L("error",r,f)}}function L(r,u,f){{var m=ne.ReactDebugCurrentFrame,k=m.getStackAddendum();k!==""&&(u+="%s",f=f.concat([k]));var S=f.map(function(T){return String(T)});S.unshift("Warning: "+u),Function.prototype.apply.call(console[r],console,S)}}var Q=!1,fe=!1,he=!1,Ze=!1,$r=!1,er;er=Symbol.for("react.module.reference");function Ir(r){return!!(typeof r=="string"||typeof r=="function"||r===s||r===v||$r||r===d||r===x||r===N||Ze||r===Ae||Q||fe||he||typeof r=="object"&&r!==null&&(r.$$typeof===H||r.$$typeof===V||r.$$typeof===b||r.$$typeof===_||r.$$typeof===y||r.$$typeof===er||r.getModuleId!==void 0))}function Fr(r,u,f){var m=r.displayName;if(m)return m;var k=u.displayName||u.name||"";return k!==""?f+"("+k+")":f}function rr(r){return r.displayName||"Context"}function W(r){if(r==null)return null;if(typeof r.tag=="number"&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case s:return"Fragment";case l:return"Portal";case v:return"Profiler";case d:return"StrictMode";case x:return"Suspense";case N:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case _:var u=r;return rr(u)+".Consumer";case b:var f=r;return rr(f._context)+".Provider";case y:return Fr(r,r.render,"ForwardRef");case V:var m=r.displayName||null;return m!==null?m:W(r.type)||"Memo";case H:{var k=r,S=k._payload,T=k._init;try{return W(T(S))}catch{return null}}}return null}var J=Object.assign,E=0,Ie,Fe,me,Me,X,ge,re;function be(){}be.__reactDisabledLog=!0;function Mr(){{if(E===0){Ie=console.log,Fe=console.info,me=console.warn,Me=console.error,X=console.group,ge=console.groupCollapsed,re=console.groupEnd;var r={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}E++}}function Ve(){{if(E--,E===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},r,{value:Ie}),info:J({},r,{value:Fe}),warn:J({},r,{value:me}),error:J({},r,{value:Me}),group:J({},r,{value:X}),groupCollapsed:J({},r,{value:ge}),groupEnd:J({},r,{value:re})})}E<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=ne.ReactCurrentDispatcher,de;function ie(r,u,f){{if(de===void 0)try{throw Error()}catch(k){var m=k.stack.trim().match(/\n( *(at )?)/);de=m&&m[1]||""}return`
`+de+r}}var Ne=!1,Ee;{var Re=typeof WeakMap=="function"?WeakMap:Map;Ee=new Re}function tr(r,u){if(!r||Ne)return"";{var f=Ee.get(r);if(f!==void 0)return f}var m;Ne=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=_e.current,_e.current=null,Mr();try{if(u){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(B){m=B}Reflect.construct(r,[],T)}else{try{T.call()}catch(B){m=B}r.call(T.prototype)}}else{try{throw Error()}catch(B){m=B}r()}}catch(B){if(B&&m&&typeof B.stack=="string"){for(var R=B.stack.split(`
`),U=m.stack.split(`
`),$=R.length-1,F=U.length-1;$>=1&&F>=0&&R[$]!==U[F];)F--;for(;$>=1&&F>=0;$--,F--)if(R[$]!==U[F]){if($!==1||F!==1)do if($--,F--,F<0||R[$]!==U[F]){var q=`
`+R[$].replace(" at new "," at ");return r.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",r.displayName)),typeof r=="function"&&Ee.set(r,q),q}while($>=1&&F>=0);break}}}finally{Ne=!1,_e.current=S,Ve(),Error.prepareStackTrace=k}var ce=r?r.displayName||r.name:"",ae=ce?ie(ce):"";return typeof r=="function"&&Ee.set(r,ae),ae}function Vr(r,u,f){return tr(r,!1)}function nr(r){var u=r.prototype;return!!(u&&u.isReactComponent)}function oe(r,u,f){if(r==null)return"";if(typeof r=="function")return tr(r,nr(r));if(typeof r=="string")return ie(r);switch(r){case x:return ie("Suspense");case N:return ie("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case y:return Vr(r.render);case V:return oe(r.type,u,f);case H:{var m=r,k=m._payload,S=m._init;try{return oe(S(k),u,f)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,Le={},Z=ne.ReactDebugCurrentFrame;function te(r){if(r){var u=r._owner,f=oe(r.type,r._source,u?u.type:null);Z.setExtraStackFrame(f)}else Z.setExtraStackFrame(null)}function or(r,u,f,m,k){{var S=Function.call.bind(pe);for(var T in r)if(S(r,T)){var R=void 0;try{if(typeof r[T]!="function"){var U=Error((m||"React class")+": "+f+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw U.name="Invariant Violation",U}R=r[T](u,T,m,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($){R=$}R&&!(R instanceof Error)&&(te(k),A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",f,T,typeof R),te(null)),R instanceof Error&&!(R.message in Le)&&(Le[R.message]=!0,te(k),A("Failed %s type: %s",f,R.message),te(null))}}}var ar=Array.isArray;function Ce(r){return ar(r)}function We(r){{var u=typeof Symbol=="function"&&Symbol.toStringTag,f=u&&r[Symbol.toStringTag]||r.constructor.name||"Object";return f}}function ir(r){try{return Ue(r),!1}catch{return!0}}function Ue(r){return""+r}function sr(r){if(ir(r))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",We(r)),Ue(r)}var ve=ne.ReactCurrentOwner,Nr={key:!0,ref:!0,__self:!0,__source:!0},Pe,ur,Ye;Ye={};function Lr(r){if(pe.call(r,"ref")){var u=Object.getOwnPropertyDescriptor(r,"ref").get;if(u&&u.isReactWarning)return!1}return r.ref!==void 0}function se(r){if(pe.call(r,"key")){var u=Object.getOwnPropertyDescriptor(r,"key").get;if(u&&u.isReactWarning)return!1}return r.key!==void 0}function lr(r,u){if(typeof r.ref=="string"&&ve.current&&u&&ve.current.stateNode!==u){var f=W(ve.current.type);Ye[f]||(A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',W(ve.current.type),r.ref),Ye[f]=!0)}}function Wr(r,u){{var f=function(){Pe||(Pe=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};f.isReactWarning=!0,Object.defineProperty(r,"key",{get:f,configurable:!0})}}function Ur(r,u){{var f=function(){ur||(ur=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};f.isReactWarning=!0,Object.defineProperty(r,"ref",{get:f,configurable:!0})}}var cr=function(r,u,f,m,k,S,T){var R={$$typeof:o,type:r,key:u,ref:f,props:T,_owner:S};return R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(R,"_self",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.defineProperty(R,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R};function Yr(r,u,f,m,k){{var S,T={},R=null,U=null;f!==void 0&&(sr(f),R=""+f),se(u)&&(sr(u.key),R=""+u.key),Lr(u)&&(U=u.ref,lr(u,k));for(S in u)pe.call(u,S)&&!Nr.hasOwnProperty(S)&&(T[S]=u[S]);if(r&&r.defaultProps){var $=r.defaultProps;for(S in $)T[S]===void 0&&(T[S]=$[S])}if(R||U){var F=typeof r=="function"?r.displayName||r.name||"Unknown":r;R&&Wr(T,F),U&&Ur(T,F)}return cr(r,R,U,k,m,ve.current,T)}}var Te=ne.ReactCurrentOwner,we=ne.ReactDebugCurrentFrame;function ee(r){if(r){var u=r._owner,f=oe(r.type,r._source,u?u.type:null);we.setExtraStackFrame(f)}else we.setExtraStackFrame(null)}var ue;ue=!1;function Be(r){return typeof r=="object"&&r!==null&&r.$$typeof===o}function fr(){{if(Te.current){var r=W(Te.current.type);if(r)return`
Check the render method of \``+r+"`."}return""}}function Br(r){{if(r!==void 0){var u=r.fileName.replace(/^.*[\\\/]/,""),f=r.lineNumber;return`
Check your code at `+u+":"+f+"."}return""}}var dr={};function zr(r){{var u=fr();if(!u){var f=typeof r=="string"?r:r.displayName||r.name;f&&(u=`
Check the top-level render call using <`+f+">.")}return u}}function le(r,u){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var f=zr(u);if(dr[f])return;dr[f]=!0;var m="";r&&r._owner&&r._owner!==Te.current&&(m=" It was passed a child from "+W(r._owner.type)+"."),ee(r),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,m),ee(null)}}function ke(r,u){{if(typeof r!="object")return;if(Ce(r))for(var f=0;f<r.length;f++){var m=r[f];Be(m)&&le(m,u)}else if(Be(r))r._store&&(r._store.validated=!0);else if(r){var k=Qe(r);if(typeof k=="function"&&k!==r.entries)for(var S=k.call(r),T;!(T=S.next()).done;)Be(T.value)&&le(T.value,u)}}}function pr(r){{var u=r.type;if(u==null||typeof u=="string")return;var f;if(typeof u=="function")f=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===y||u.$$typeof===V))f=u.propTypes;else return;if(f){var m=W(u);or(f,r.props,"prop",m,r)}else if(u.PropTypes!==void 0&&!ue){ue=!0;var k=W(u);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Kr(r){{for(var u=Object.keys(r.props),f=0;f<u.length;f++){var m=u[f];if(m!=="children"&&m!=="key"){ee(r),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m),ee(null);break}}r.ref!==null&&(ee(r),A("Invalid attribute `ref` supplied to `React.Fragment`."),ee(null))}}var vr={};function yr(r,u,f,m,k,S){{var T=Ir(r);if(!T){var R="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var U=Br(k);U?R+=U:R+=fr();var $;r===null?$="null":Ce(r)?$="array":r!==void 0&&r.$$typeof===o?($="<"+(W(r.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):$=typeof r,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$,R)}var F=Yr(r,u,f,k,S);if(F==null)return F;if(T){var q=u.children;if(q!==void 0)if(m)if(Ce(q)){for(var ce=0;ce<q.length;ce++)ke(q[ce],r);Object.freeze&&Object.freeze(q)}else A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ke(q,r)}if(pe.call(u,"key")){var ae=W(r),B=Object.keys(u).filter(function(gr){return gr!=="key"}),ze=B.length>0?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}";if(!vr[ae+ze]){var ye=B.length>0?"{"+B.join(": ..., ")+": ...}":"{}";A(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,ze,ae,ye,ae),vr[ae+ze]=!0}}return r===s?Kr(F):pr(F),F}}function Hr(r,u,f){return yr(r,u,f,!0)}function hr(r,u,f){return yr(r,u,f,!1)}var mr=hr,Jr=Hr;Dr.Fragment=s,Dr.jsx=mr,Dr.jsxs=Jr}()});var qe=xe((Wo,pt)=>{"use strict";process.env.NODE_ENV==="production"?pt.exports=fn():pt.exports=dn()});import{Command as To}from"commander";var Yt="recently-published";var Bt="0.9.2";import Hn from"semver/functions/parse.js";import Jn from"validate-npm-package-name";import zn from"node:util";import{exec as Kn}from"child_process";var He=zn.promisify(Kn);async function zt(n,o,l){let s=[];for(let d=0;d<n.length;d+=o){let v=d+o>n.length?n.length:d+o,b=await Promise.all(n.slice(d,v).map(l));s=[...s,...b]}return s}var Kt=async n=>{try{let{stdout:o}=await He(`npm view ${n} time --json`),l=JSON.parse(o);return delete l.created,delete l.modified,Object.entries(l).map(([s,d])=>({version:s,...Hn(s),publishDate:new Date(d)}))}catch(o){console.error(o.message),process.exit(1)}},Ht=async()=>{try{let{stdout:n}=await He("npm list --json"),o=JSON.parse(n);if(!o.dependencies)throw new Error("No installed packages found in this directory");return Object.entries(o.dependencies).map(([l,s])=>({name:l,...s}))}catch(n){console.error(n.message),process.exit(1)}},Jt=n=>{if(n===void 0)return!0;let o=Jn(n);return!(!o.validForNewPackages&&!o.validForOldPackages)};import{compare as qn}from"semver";var nt=(n,o)=>o.display==="all"?n:n.slice(0,parseInt(o.display)),qt=(n,o)=>o.excludePrerelease?n.filter(l=>Array.isArray(l.prerelease)&&l.prerelease.length==0):n,ot=n=>n.sort((o,l)=>{let s=l.publishDate.getTime()-o.publishDate.getTime();return s===0?qn(l.version,o.version):s});function at(n){let l=Math.floor((new Date().getTime()-n.getTime())/1e3),s=Math.floor(l/31536e3);return s>1?`${s} years ago`:(s=Math.floor(l/2592e3),s>1?`${s} months ago`:(s=Math.floor(l/86400),s>1?`${s} days ago`:(s=Math.floor(l/3600),s>1?`${s} hours ago`:(s=Math.floor(l/60),s>1?`${s} minutes ago`:`${Math.floor(l)} seconds ago`))))}function it(n){let o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][n.getDay()],d=o[n.getMonth()],v=n.getDate(),b=n.getFullYear(),_=n.getHours(),y=n.getMinutes().toString().padStart(2,"0"),x=_>=12?"PM":"AM";return _=_%12||12,`${s} ${d} ${v} ${b} ${_}:${y} ${x}`}var pn=Ke(xr(),1),z=Ke(qe(),1);import{Box as vt,Text as yt}from"ink";import{sha1 as go}from"object-hash";var De=class extends pn.default.Component{getConfig(){return{data:this.props.data,columns:this.props.columns||this.getDataKeys(),padding:this.props.padding||1,header:this.props.header||bo,cell:this.props.cell||_o,skeleton:this.props.skeleton||Eo}}getDataKeys(){let o=new Set;for(let l of this.props.data)for(let s in l)o.add(s);return Array.from(o)}getColumn