aboutsummaryrefslogtreecommitdiff
path: root/bench/react-hello-world.node.js
diff options
context:
space:
mode:
authorGravatar Luca Casonato <hello@lcas.dev> 2022-07-06 02:11:30 +0200
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-07-05 17:13:52 -0700
commit8c1157be229137963d1dd513d389ae181db00821 (patch)
treeacf2e6059c9f56146e1f801f845a42524f67f9ee /bench/react-hello-world.node.js
parentf32153754c22afdefa436d633b0ccfb96a84b16c (diff)
downloadbun-8c1157be229137963d1dd513d389ae181db00821.tar.gz
bun-8c1157be229137963d1dd513d389ae181db00821.tar.zst
bun-8c1157be229137963d1dd513d389ae181db00821.zip
Disable response body auto compression in Deno
Allows for a more apples to apples comparison between runtimes
Diffstat (limited to 'bench/react-hello-world.node.js')
-rw-r--r--bench/react-hello-world.node.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/react-hello-world.node.js b/bench/react-hello-world.node.js
index ece401cb5..9227823c1 100644
--- a/bench/react-hello-world.node.js
+++ b/bench/react-hello-world.node.js
@@ -100,7 +100,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
Previous: %s
Incoming: %s`,qr,"["+o.join(", ")+"]","["+a.join(", ")+"]");for(var f=0;f<a.length&&f<o.length;f++)if(!ii(o[f],a[f]))return!1;return!0}function ul(){if($e>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function si(){return G===null?Vt===null?(Yt=!1,Vt=G=ul()):(Yt=!0,G=Vt):G.next===null?(Yt=!1,G=G.next=ul()):(Yt=!0,G=G.next),G}function cl(o,a){Ke=a,X=o,Ie=!1,Sr=0}function ui(o,a,f,d){for(;ot;)ot=!1,Sr=0,$e+=1,G=null,f=o(a,d);return ci(),f}function fl(){var o=Sr!==0;return o}function ci(){Ie=!1,Ke=null,X=null,ot=!1,Vt=null,$e=0,Gt=null,G=null}function fi(o){return Ie&&c("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Wn(o)}function yu(o){return qr="useContext",Xt(),Wn(o)}function Yo(o,a){return typeof a=="function"?a(o):a}function dl(o){return qr="useState",pl(Yo,o)}function pl(o,a,f){if(o!==Yo&&(qr="useReducer"),Ke=Xt(),G=si(),Yt){var d=G.queue,t=d.dispatch;if(Gt!==null){var r=Gt.get(d);if(r!==void 0){Gt.delete(d);var l=G.memoizedState,u=r;do{var p=u.action;Ie=!0,l=o(l,p),Ie=!1,u=u.next}while(u!==null);return G.memoizedState=l,[l,t]}}return[G.memoizedState,t]}else{Ie=!0;var g;o===Yo?g=typeof a=="function"?a():a:g=f!==void 0?f(a):a,Ie=!1,G.memoizedState=g;var y=G.queue={last:null,dispatch:null},w=y.dispatch=wu.bind(null,Ke,y);return[G.memoizedState,w]}}function hl(o,a){Ke=Xt(),G=si();var f=a===void 0?null:a;if(G!==null){var d=G.memoizedState;if(d!==null&&f!==null){var t=d[1];if(li(f,t))return d[0]}}Ie=!0;var r=o();return Ie=!1,G.memoizedState=[r,f],r}function bu(o){Ke=Xt(),G=si();var a=G.memoizedState;if(a===null){var f={current:o};return Object.seal(f),G.memoizedState=f,f}else return a}function Su(o,a){qr="useLayoutEffect",c("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function wu(o,a,f){if($e>=Kr)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(o===Ke){ot=!0;var d={action:f,next:null};Gt===null&&(Gt=new Map);var t=Gt.get(a);if(t===void 0)Gt.set(a,d);else{for(var r=t;r.next!==null;)r=r.next;r.next=d}}}function xu(o,a){return hl(function(){return o},a)}function ku(o,a,f){return Xt(),a(o._source)}function Tu(o,a,f){if(f===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return f()}function Cu(o){return Xt(),o}function Eu(){throw new Error("startTransition cannot be called during server rendering.")}function Go(){return Xt(),[!1,Eu]}function vl(){var o=X,a=No(o.treeContext),f=pi;if(f===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var d=Sr++;return wo(f,a,d)}function en(){}var di={readContext:fi,useContext:yu,useMemo:hl,useReducer:pl,useRef:bu,useState:dl,useInsertionEffect:en,useLayoutEffect:Su,useCallback:xu,useImperativeHandle:en,useEffect:en,useDebugValue:en,useDeferredValue:Cu,useTransition:Go,useId:vl,useMutableSource:ku,useSyncExternalStore:Tu},pi=null;function Xo(o){pi=o}function hi(o){try{var a="",f=o;do{switch(f.tag){case 0:a+=Nt(f.type,null,null);break;case 1:a+=Fo(f.type,null,null);break;case 2:a+=iu(f.type,null,null);break}f=f.parent}while(f);return a}catch(d){return`
Error generating stack: `+d.message+`
-`+d.stack}}var Vn=s.ReactCurrentDispatcher,Zt=s.ReactDebugCurrentFrame,Zo=0,wr=1,vi=2,gl=3,gi=4,tn=0,ml=1,rn=2,Yn=12800;function yl(o){return console.error(o),null}function Gn(){}function Ru(o,a,f,d,t,r,l,u,p){var g=[],y=new Set,w={destination:null,responseState:a,progressiveChunkSize:d===void 0?Yn:d,status:tn,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:y,pingedTasks:g,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:t===void 0?yl:t,onAllReady:r===void 0?Gn:r,onShellReady:l===void 0?Gn:l,onShellError:u===void 0?Gn:u,onFatalError:p===void 0?Gn:p},C=nn(w,0,null,f,!1,!1);C.parentFlushed=!0;var _=at(w,o,null,C,y,Oo,qa,oi);return g.push(_),w}function mi(o,a){var f=o.pingedTasks;f.push(a),f.length===1&&S(function(){return Kn(o)})}function Jo(o,a){return{id:Lr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null}}function at(o,a,f,d,t,r,l,u){o.allPendingTasks++,f===null?o.pendingRootTasks++:f.pendingTasks++;var p={node:a,ping:function(){return mi(o,p)},blockedBoundary:f,blockedSegment:d,abortSet:t,legacyContext:r,context:l,treeContext:u};return p.componentStack=null,t.add(p),p}function nn(o,a,f,d,t,r){return{status:Zo,id:-1,index:a,parentFlushed:!1,chunks:[],children:[],formatContext:d,boundary:f,lastPushedText:t,textEmbedded:r}}var Ne=null;function Qo(){return Ne===null||Ne.componentStack===null?"":hi(Ne.componentStack)}function Xn(o,a){o.componentStack={tag:0,parent:o.componentStack,type:a}}function Dt(o,a){o.componentStack={tag:1,parent:o.componentStack,type:a}}function Zn(o,a){o.componentStack={tag:2,parent:o.componentStack,type:a}}function mt(o){o.componentStack===null?c("Unexpectedly popped too many stack frames. This is a bug in React."):o.componentStack=o.componentStack.parent}var Ot=null;function on(o,a){{var f;typeof a=="string"?f=a:a&&typeof a.message=="string"?f=a.message:f=String(a);var d=Ot||Qo();Ot=null,o.errorMessage=f,o.errorComponentStack=d}}function Jn(o,a){var f=o.onError(a);if(f!=null&&typeof f!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof f+'" instead');return f}function Ko(o,a){var f=o.onShellError;f(a);var d=o.onFatalError;d(a),o.destination!==null?(o.status=rn,ct(o.destination,a)):(o.status=ml,o.fatalError=a)}function Iu(o,a,f){Xn(a,"Suspense");var d=a.blockedBoundary,t=a.blockedSegment,r=f.fallback,l=f.children,u=new Set,p=Jo(o,u),g=t.chunks.length,y=nn(o,g,p,t.formatContext,!1,!1);t.children.push(y),t.lastPushedText=!1;var w=nn(o,0,null,t.formatContext,!1,!1);w.parentFlushed=!0,a.blockedBoundary=p,a.blockedSegment=w;try{if(Ci(o,a,l),$t(w.chunks,o.responseState,w.lastPushedText,w.textEmbedded),w.status=wr,ra(p,w),p.pendingTasks===0){mt(a);return}}catch(_){w.status=gi,p.forceClientRender=!0,p.errorDigest=Jn(o,_),on(p,_)}finally{a.blockedBoundary=d,a.blockedSegment=t}var C=at(o,r,d,y,u,a.legacyContext,a.context,a.treeContext);C.componentStack=a.componentStack,o.pingedTasks.push(C),mt(a)}function bl(o,a,f,d){Xn(a,f);var t=a.blockedSegment,r=U(t.chunks,f,d,o.responseState,t.formatContext);t.lastPushedText=!1;var l=t.formatContext;t.formatContext=Mr(l,f,d),Ci(o,a,r),t.formatContext=l,z(t.chunks,f),t.lastPushedText=!1,mt(a)}function Sl(o){return o.prototype&&o.prototype.isReactComponent}function wl(o,a,f,d,t){var r={};cl(a,r);var l=f(d,t);return ui(f,d,l,t)}function yi(o,a,f,d,t){var r=f.render();f.props!==t&&(xi||c("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ne(d)||"a component"),xi=!0);{var l=d.childContextTypes;if(l!=null){var u=a.legacyContext,p=lu(f,d,u,l);a.legacyContext=p,Ue(o,a,r),a.legacyContext=u;return}}Ue(o,a,r)}function qo(o,a,f,d){Zn(a,f);var t=Xr(f,a.legacyContext),r=cu(f,d,t);sl(r,f,d,t),yi(o,a,r,f,d),mt(a)}var bi={},Qn={},Si={},wi={},xi=!1,ki=!1,xl=!1,kl=!1;function Tl(o,a,f,d){var t;if(t=Xr(f,a.legacyContext),Dt(a,f),f.prototype&&typeof f.prototype.render=="function"){var r=ne(f)||"Unknown";bi[r]||(c("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",r,r),bi[r]=!0)}var l=wl(o,a,f,d,t),u=fl();if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var p=ne(f)||"Unknown";Qn[p]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",p,p,p),Qn[p]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var g=ne(f)||"Unknown";Qn[g]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",g,g,g),Qn[g]=!0)}sl(l,f,d,t),yi(o,a,l,f,d)}else if(_u(f),u){var y=a.treeContext,w=1,C=0;a.treeContext=ai(y,w,C);try{Ue(o,a,l)}finally{a.treeContext=y}}else Ue(o,a,l);mt(a)}function _u(o){{if(o&&o.childContextTypes&&c("%s(...): childContextTypes cannot be defined on a function component.",o.displayName||o.name||"Component"),typeof o.getDerivedStateFromProps=="function"){var a=ne(o)||"Unknown";wi[a]||(c("%s: Function components do not support getDerivedStateFromProps.",a),wi[a]=!0)}if(typeof o.contextType=="object"&&o.contextType!==null){var f=ne(o)||"Unknown";Si[f]||(c("%s: Function components do not support contextType.",f),Si[f]=!0)}}}function Cl(o,a){if(o&&o.defaultProps){var f=ze({},a),d=o.defaultProps;for(var t in d)f[t]===void 0&&(f[t]=d[t]);return f}return a}function Pu(o,a,f,d,t){Dt(a,f.render);var r=wl(o,a,f.render,d,t),l=fl();if(l){var u=a.treeContext,p=1,g=0;a.treeContext=ai(u,p,g);try{Ue(o,a,r)}finally{a.treeContext=u}}else Ue(o,a,r);mt(a)}function Fu(o,a,f,d,t){var r=f.type,l=Cl(r,d);Pe(o,a,r,l,t)}function Au(o,a,f,d){f._context===void 0?f!==f.Consumer&&(kl||(kl=!0,c("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):f=f._context;var t=d.children;typeof t!="function"&&c("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var r=Wn(f),l=t(r);Ue(o,a,l)}function Ti(o,a,f,d){var t=f._context,r=d.value,l=d.children,u;u=a.context,a.context=su(t,r),Ue(o,a,l),a.context=Hn(t),u!==a.context&&c("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Du(o,a,f,d,t){Xn(a,"Lazy");var r=f._payload,l=f._init,u=l(r),p=Cl(u,d);Pe(o,a,u,p,t),mt(a)}function Pe(o,a,f,d,t){if(typeof f=="function")if(Sl(f)){qo(o,a,f,d);return}else{Tl(o,a,f,d);return}if(typeof f=="string"){bl(o,a,f,d);return}switch(f){case Qi:case ru:case Ro:case Io:case Wa:{Ue(o,a,d.children);return}case $r:{Xn(a,"SuspenseList"),Ue(o,a,d.children),mt(a);return}case tu:throw new Error("ReactDOMServer does not yet support scope components.");case On:{Iu(o,a,d);return}}if(typeof f=="object"&&f!==null)switch(f.$$typeof){case Dn:{Pu(o,a,f,d,t);return}case za:{Fu(o,a,f,d,t);return}case Fn:{Ti(o,a,f,d);return}case An:{Au(o,a,f,d);return}case _o:{Du(o,a,f,d);return}}var r="";throw(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).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."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(f==null?f:typeof f)+"."+r))}function Ou(o,a){typeof Symbol=="function"&&o[Symbol.toStringTag]==="Generator"&&(ki||c("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),ki=!0),o.entries===a&&(xl||c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),xl=!0)}function Ue(o,a,f){try{return Mu(o,a,f)}catch(d){throw typeof d=="object"&&d!==null&&typeof d.then=="function"||(Ot=Ot!==null?Ot:Qo()),d}}function Mu(o,a,f){if(a.node=f,typeof f=="object"&&f!==null){switch(f.$$typeof){case Ji:{var d=f,t=d.type,r=d.props,l=d.ref;Pe(o,a,t,r,l);return}case Ha:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case _o:{var u=f,p=u._payload,g=u._init,y;try{y=g(p)}catch(we){throw typeof we=="object"&&we!==null&&typeof we.then=="function"&&Xn(a,"Lazy"),we}Ue(o,a,y);return}}if(cr(f)){ea(o,a,f);return}var w=qi(f);if(w){Ou(f,w);var C=w.call(f);if(C){var _=C.next();if(!_.done){var O=[];do O.push(_.value),_=C.next();while(!_.done);ea(o,a,O);return}return}}var j=Object.prototype.toString.call(f);throw new Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}if(typeof f=="string"){var Z=a.blockedSegment;Z.lastPushedText=ht(a.blockedSegment.chunks,f,o.responseState,Z.lastPushedText);return}if(typeof f=="number"){var de=a.blockedSegment;de.lastPushedText=ht(a.blockedSegment.chunks,""+f,o.responseState,de.lastPushedText);return}typeof f=="function"&&c("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function ea(o,a,f){for(var d=f.length,t=0;t<d;t++){var r=a.treeContext;a.treeContext=ai(r,d,t);try{Ci(o,a,f[t])}finally{a.treeContext=r}}}function Lu(o,a,f){var d=a.blockedSegment,t=d.chunks.length,r=nn(o,t,null,d.formatContext,d.lastPushedText,!0);d.children.push(r),d.lastPushedText=!1;var l=at(o,a.node,a.blockedBoundary,r,a.abortSet,a.legacyContext,a.context,a.treeContext);a.componentStack!==null&&(l.componentStack=a.componentStack.parent);var u=l.ping;f.then(u,u)}function Ci(o,a,f){var d=a.blockedSegment.formatContext,t=a.legacyContext,r=a.context,l=null;l=a.componentStack;try{return Ue(o,a,f)}catch(u){if(ci(),typeof u=="object"&&u!==null&&typeof u.then=="function"){Lu(o,a,u),a.blockedSegment.formatContext=d,a.legacyContext=t,a.context=r,Lo(r),a.componentStack=l;return}else throw a.blockedSegment.formatContext=d,a.legacyContext=t,a.context=r,Lo(r),a.componentStack=l,u}}function El(o,a,f,d){var t=Jn(o,d);if(a===null?Ko(o,d):(a.pendingTasks--,a.forceClientRender||(a.forceClientRender=!0,a.errorDigest=t,on(a,d),a.parentFlushed&&o.clientRenderedBoundaries.push(a))),o.allPendingTasks--,o.allPendingTasks===0){var r=o.onAllReady;r()}}function ta(o){var a=this,f=o.blockedBoundary,d=o.blockedSegment;d.status=gl,Ri(a,f,d)}function Ei(o,a,f){var d=o.blockedBoundary,t=o.blockedSegment;if(t.status=gl,d===null)a.allPendingTasks--,a.status!==rn&&(a.status=rn,a.destination!==null&&xe(a.destination));else{if(d.pendingTasks--,!d.forceClientRender){d.forceClientRender=!0;var r=f===void 0?new Error("The render was aborted by the server without a reason."):f;d.errorDigest=a.onError(r);{var l="The server did not finish this Suspense boundary: ";r&&typeof r.message=="string"?r=l+r.message:r=l+String(r);var u=Ne;Ne=o;try{on(d,r)}finally{Ne=u}}d.parentFlushed&&a.clientRenderedBoundaries.push(d)}if(d.fallbackAbortableTasks.forEach(function(g){return Ei(g,a,f)}),d.fallbackAbortableTasks.clear(),a.allPendingTasks--,a.allPendingTasks===0){var p=a.onAllReady;p()}}}function ra(o,a){if(a.chunks.length===0&&a.children.length===1&&a.children[0].boundary===null){var f=a.children[0];f.id=a.id,f.parentFlushed=!0,f.status===wr&&ra(o,f)}else{var d=o.completedSegments;d.push(a)}}function Ri(o,a,f){if(a===null){if(f.parentFlushed){if(o.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");o.completedRootSegment=f}if(o.pendingRootTasks--,o.pendingRootTasks===0){o.onShellError=Gn;var d=o.onShellReady;d()}}else if(a.pendingTasks--,!a.forceClientRender){if(a.pendingTasks===0)f.parentFlushed&&f.status===wr&&ra(a,f),a.parentFlushed&&o.completedBoundaries.push(a),a.fallbackAbortableTasks.forEach(ta,o),a.fallbackAbortableTasks.clear();else if(f.parentFlushed&&f.status===wr){ra(a,f);var t=a.completedSegments;t.length===1&&a.parentFlushed&&o.partialBoundaries.push(a)}}if(o.allPendingTasks--,o.allPendingTasks===0){var r=o.onAllReady;r()}}function na(o,a){var f=a.blockedSegment;if(f.status===Zo){Lo(a.context);var d=null;d=Ne,Ne=a;try{Ue(o,a,a.node),$t(f.chunks,o.responseState,f.lastPushedText,f.textEmbedded),a.abortSet.delete(a),f.status=wr,Ri(o,a.blockedBoundary,f)}catch(r){if(ci(),typeof r=="object"&&r!==null&&typeof r.then=="function"){var t=a.ping;r.then(t,t)}else a.abortSet.delete(a),f.status=gi,El(o,a.blockedBoundary,f,r)}finally{Ne=d}}}function Kn(o){if(o.status!==rn){var a=ri(),f=Vn.current;Vn.current=di;var d;d=Zt.getCurrentStack,Zt.getCurrentStack=Qo;var t=pi;Xo(o.responseState);try{var r=o.pingedTasks,l;for(l=0;l<r.length;l++){var u=r[l];na(o,u)}r.splice(0,l),o.destination!==null&&eo(o,o.destination)}catch(p){Jn(o,p),Ko(o,p)}finally{Xo(t),Vn.current=f,Zt.getCurrentStack=d,f===di&&Lo(a)}}}function oa(o,a,f){switch(f.parentFlushed=!0,f.status){case Zo:{var d=f.id=o.nextSegmentId++;return f.lastPushedText=!1,f.textEmbedded=!1,ee(a,o.responseState,d)}case wr:{f.status=vi;for(var t=!0,r=f.chunks,l=0,u=f.children,p=0;p<u.length;p++){for(var g=u[p];l<g.index;l++)P(a,r[l]);t=qn(o,a,g)}for(;l<r.length-1;l++)P(a,r[l]);return l<r.length&&(t=W(a,r[l])),t}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function qn(o,a,f){var d=f.boundary;if(d===null)return oa(o,a,f);if(d.parentFlushed=!0,d.forceClientRender)return ms(a,o.responseState,d.errorDigest,d.errorMessage,d.errorComponentStack),oa(o,a,f),bs(a,o.responseState);if(d.pendingTasks>0){d.rootSegmentID=o.nextSegmentId++,d.completedSegments.length>0&&o.partialBoundaries.push(d);var t=d.id=Br(o.responseState);return Ni(a,o.responseState,t),oa(o,a,f),Vi(a,o.responseState)}else{if(d.byteSize>o.progressiveChunkSize)return d.rootSegmentID=o.nextSegmentId++,o.completedBoundaries.push(d),Ni(a,o.responseState,d.id),oa(o,a,f),Vi(a,o.responseState);gs(a,o.responseState);var r=d.completedSegments;if(r.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var l=r[0];return qn(o,a,l),ys(a,o.responseState)}}function Rl(o,a,f){return eu(a,o.responseState,f.id,f.errorDigest,f.errorMessage,f.errorComponentStack)}function Il(o,a,f){return Ws(a,o.responseState,f.formatContext,f.id),qn(o,a,f),zs(a,f.formatContext)}function Ii(o,a,f){for(var d=f.completedSegments,t=0;t<d.length;t++){var r=d[t];Pi(o,a,f,r)}return d.length=0,Gi(a,o.responseState,f.id,f.rootSegmentID)}function _i(o,a,f){for(var d=f.completedSegments,t=0;t<d.length;t++){var r=d[t];if(!Pi(o,a,f,r))return t++,d.splice(0,t),!1}return d.splice(0,t),!0}function Pi(o,a,f,d){if(d.status===vi)return!0;var t=d.id;if(t===-1){var r=d.id=f.rootSegmentID;if(r===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Il(o,a,d)}else return Il(o,a,d),La(a,o.responseState,t)}function eo(o,a){te();try{var f=o.completedRootSegment;f!==null&&o.pendingRootTasks===0&&(qn(o,a,f),o.completedRootSegment=null,Y(a,o.responseState));var d=o.clientRenderedBoundaries,t;for(t=0;t<d.length;t++){var r=d[t];if(!Rl(o,a,r)){o.destination=null,t++,d.splice(0,t);return}}d.splice(0,t);var l=o.completedBoundaries;for(t=0;t<l.length;t++){var u=l[t];if(!Ii(o,a,u)){o.destination=null,t++,l.splice(0,t);return}}l.splice(0,t),q(a),te(a);var p=o.partialBoundaries;for(t=0;t<p.length;t++){var g=p[t];if(!_i(o,a,g)){o.destination=null,t++,p.splice(0,t);return}}p.splice(0,t);var y=o.completedBoundaries;for(t=0;t<y.length;t++){var w=y[t];if(!Ii(o,a,w)){o.destination=null,t++,y.splice(0,t);return}}y.splice(0,t)}finally{q(a),E(a),o.allPendingTasks===0&&o.pingedTasks.length===0&&o.clientRenderedBoundaries.length===0&&o.completedBoundaries.length===0&&(o.abortableTasks.size!==0&&c("There was still abortable task at the root when we closed. This is a bug in React."),xe(a))}}function _l(o){S(function(){return Kn(o)})}function Pl(o,a){if(o.status===ml){o.status=rn,ct(a,o.fatalError);return}if(o.status!==rn&&o.destination===null){o.destination=a;try{eo(o,a)}catch(f){Jn(o,f),Ko(o,f)}}}function Fi(o,a){try{var f=o.abortableTasks;f.forEach(function(d){return Ei(d,o,a)}),f.clear(),o.destination!==null&&eo(o,o.destination)}catch(d){Jn(o,d),Ko(o,d)}}function Bu(o,a){return function(){return Pl(a,o)}}function Fl(o,a){return function(){return Fi(o,a)}}function Uu(o,a){return Ru(o,He(a?a.identifierPrefix:void 0,a?a.nonce:void 0,a?a.bootstrapScriptContent:void 0,a?a.bootstrapScripts:void 0,a?a.bootstrapModules:void 0),wn(a?a.namespaceURI:void 0),a?a.progressiveChunkSize:void 0,a?a.onError:void 0,a?a.onAllReady:void 0,a?a.onShellReady:void 0,a?a.onShellError:void 0,void 0)}function Al(o,a){var f=Uu(o,a),d=!1;return _l(f),{pipe:function(t){if(d)throw new Error("React currently only supports piping to one writable stream.");return d=!0,Pl(f,t),t.on("drain",Bu(t,f)),t.on("error",Fl(f,new Error("The destination stream errored while writing data."))),t.on("close",Fl(f,new Error("The destination stream closed early."))),t},abort:function(t){Fi(f,t)}}}Pc.renderToPipeableStream=Al,Pc.version=i}()});var zd=an(lo=>{"use strict";var io,Fc;process.env.NODE_ENV==="production"?(io=Wf(),Fc=jd()):(io=Hd(),Fc=Wd());lo.version=io.version;lo.renderToString=io.renderToString;lo.renderToStaticMarkup=io.renderToStaticMarkup;lo.renderToNodeStream=io.renderToNodeStream;lo.renderToStaticNodeStream=io.renderToStaticNodeStream;lo.renderToPipeableStream=Fc.renderToPipeableStream});var Nd=Dc(zd()),$i=Dc(ua()),Cv=require("http"),Ev=()=>$i.default.createElement("html",null,$i.default.createElement("body",null,$i.default.createElement("h1",null,"Hello World"))),$d=!1;Cv.createServer(function(e,n){let i=(0,Nd.renderToPipeableStream)($i.default.createElement(Ev,null),{onShellReady(){n.statusCode=$d?500:200,n.setHeader("Content-type","text/html"),i.pipe(n)},onShellError(s){n.statusCode=500,n.send('<!doctype html><p>Loading...</p><script src="clientrender.js"><\/script>')},onAllReady(){},onError(s){$d=!0,console.error(s)}})}).listen(9080);
+`+d.stack}}var Vn=s.ReactCurrentDispatcher,Zt=s.ReactDebugCurrentFrame,Zo=0,wr=1,vi=2,gl=3,gi=4,tn=0,ml=1,rn=2,Yn=12800;function yl(o){return console.error(o),null}function Gn(){}function Ru(o,a,f,d,t,r,l,u,p){var g=[],y=new Set,w={destination:null,responseState:a,progressiveChunkSize:d===void 0?Yn:d,status:tn,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:y,pingedTasks:g,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:t===void 0?yl:t,onAllReady:r===void 0?Gn:r,onShellReady:l===void 0?Gn:l,onShellError:u===void 0?Gn:u,onFatalError:p===void 0?Gn:p},C=nn(w,0,null,f,!1,!1);C.parentFlushed=!0;var _=at(w,o,null,C,y,Oo,qa,oi);return g.push(_),w}function mi(o,a){var f=o.pingedTasks;f.push(a),f.length===1&&S(function(){return Kn(o)})}function Jo(o,a){return{id:Lr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null}}function at(o,a,f,d,t,r,l,u){o.allPendingTasks++,f===null?o.pendingRootTasks++:f.pendingTasks++;var p={node:a,ping:function(){return mi(o,p)},blockedBoundary:f,blockedSegment:d,abortSet:t,legacyContext:r,context:l,treeContext:u};return p.componentStack=null,t.add(p),p}function nn(o,a,f,d,t,r){return{status:Zo,id:-1,index:a,parentFlushed:!1,chunks:[],children:[],formatContext:d,boundary:f,lastPushedText:t,textEmbedded:r}}var Ne=null;function Qo(){return Ne===null||Ne.componentStack===null?"":hi(Ne.componentStack)}function Xn(o,a){o.componentStack={tag:0,parent:o.componentStack,type:a}}function Dt(o,a){o.componentStack={tag:1,parent:o.componentStack,type:a}}function Zn(o,a){o.componentStack={tag:2,parent:o.componentStack,type:a}}function mt(o){o.componentStack===null?c("Unexpectedly popped too many stack frames. This is a bug in React."):o.componentStack=o.componentStack.parent}var Ot=null;function on(o,a){{var f;typeof a=="string"?f=a:a&&typeof a.message=="string"?f=a.message:f=String(a);var d=Ot||Qo();Ot=null,o.errorMessage=f,o.errorComponentStack=d}}function Jn(o,a){var f=o.onError(a);if(f!=null&&typeof f!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof f+'" instead');return f}function Ko(o,a){var f=o.onShellError;f(a);var d=o.onFatalError;d(a),o.destination!==null?(o.status=rn,ct(o.destination,a)):(o.status=ml,o.fatalError=a)}function Iu(o,a,f){Xn(a,"Suspense");var d=a.blockedBoundary,t=a.blockedSegment,r=f.fallback,l=f.children,u=new Set,p=Jo(o,u),g=t.chunks.length,y=nn(o,g,p,t.formatContext,!1,!1);t.children.push(y),t.lastPushedText=!1;var w=nn(o,0,null,t.formatContext,!1,!1);w.parentFlushed=!0,a.blockedBoundary=p,a.blockedSegment=w;try{if(Ci(o,a,l),$t(w.chunks,o.responseState,w.lastPushedText,w.textEmbedded),w.status=wr,ra(p,w),p.pendingTasks===0){mt(a);return}}catch(_){w.status=gi,p.forceClientRender=!0,p.errorDigest=Jn(o,_),on(p,_)}finally{a.blockedBoundary=d,a.blockedSegment=t}var C=at(o,r,d,y,u,a.legacyContext,a.context,a.treeContext);C.componentStack=a.componentStack,o.pingedTasks.push(C),mt(a)}function bl(o,a,f,d){Xn(a,f);var t=a.blockedSegment,r=U(t.chunks,f,d,o.responseState,t.formatContext);t.lastPushedText=!1;var l=t.formatContext;t.formatContext=Mr(l,f,d),Ci(o,a,r),t.formatContext=l,z(t.chunks,f),t.lastPushedText=!1,mt(a)}function Sl(o){return o.prototype&&o.prototype.isReactComponent}function wl(o,a,f,d,t){var r={};cl(a,r);var l=f(d,t);return ui(f,d,l,t)}function yi(o,a,f,d,t){var r=f.render();f.props!==t&&(xi||c("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ne(d)||"a component"),xi=!0);{var l=d.childContextTypes;if(l!=null){var u=a.legacyContext,p=lu(f,d,u,l);a.legacyContext=p,Ue(o,a,r),a.legacyContext=u;return}}Ue(o,a,r)}function qo(o,a,f,d){Zn(a,f);var t=Xr(f,a.legacyContext),r=cu(f,d,t);sl(r,f,d,t),yi(o,a,r,f,d),mt(a)}var bi={},Qn={},Si={},wi={},xi=!1,ki=!1,xl=!1,kl=!1;function Tl(o,a,f,d){var t;if(t=Xr(f,a.legacyContext),Dt(a,f),f.prototype&&typeof f.prototype.render=="function"){var r=ne(f)||"Unknown";bi[r]||(c("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",r,r),bi[r]=!0)}var l=wl(o,a,f,d,t),u=fl();if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var p=ne(f)||"Unknown";Qn[p]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",p,p,p),Qn[p]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var g=ne(f)||"Unknown";Qn[g]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",g,g,g),Qn[g]=!0)}sl(l,f,d,t),yi(o,a,l,f,d)}else if(_u(f),u){var y=a.treeContext,w=1,C=0;a.treeContext=ai(y,w,C);try{Ue(o,a,l)}finally{a.treeContext=y}}else Ue(o,a,l);mt(a)}function _u(o){{if(o&&o.childContextTypes&&c("%s(...): childContextTypes cannot be defined on a function component.",o.displayName||o.name||"Component"),typeof o.getDerivedStateFromProps=="function"){var a=ne(o)||"Unknown";wi[a]||(c("%s: Function components do not support getDerivedStateFromProps.",a),wi[a]=!0)}if(typeof o.contextType=="object"&&o.contextType!==null){var f=ne(o)||"Unknown";Si[f]||(c("%s: Function components do not support contextType.",f),Si[f]=!0)}}}function Cl(o,a){if(o&&o.defaultProps){var f=ze({},a),d=o.defaultProps;for(var t in d)f[t]===void 0&&(f[t]=d[t]);return f}return a}function Pu(o,a,f,d,t){Dt(a,f.render);var r=wl(o,a,f.render,d,t),l=fl();if(l){var u=a.treeContext,p=1,g=0;a.treeContext=ai(u,p,g);try{Ue(o,a,r)}finally{a.treeContext=u}}else Ue(o,a,r);mt(a)}function Fu(o,a,f,d,t){var r=f.type,l=Cl(r,d);Pe(o,a,r,l,t)}function Au(o,a,f,d){f._context===void 0?f!==f.Consumer&&(kl||(kl=!0,c("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):f=f._context;var t=d.children;typeof t!="function"&&c("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var r=Wn(f),l=t(r);Ue(o,a,l)}function Ti(o,a,f,d){var t=f._context,r=d.value,l=d.children,u;u=a.context,a.context=su(t,r),Ue(o,a,l),a.context=Hn(t),u!==a.context&&c("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Du(o,a,f,d,t){Xn(a,"Lazy");var r=f._payload,l=f._init,u=l(r),p=Cl(u,d);Pe(o,a,u,p,t),mt(a)}function Pe(o,a,f,d,t){if(typeof f=="function")if(Sl(f)){qo(o,a,f,d);return}else{Tl(o,a,f,d);return}if(typeof f=="string"){bl(o,a,f,d);return}switch(f){case Qi:case ru:case Ro:case Io:case Wa:{Ue(o,a,d.children);return}case $r:{Xn(a,"SuspenseList"),Ue(o,a,d.children),mt(a);return}case tu:throw new Error("ReactDOMServer does not yet support scope components.");case On:{Iu(o,a,d);return}}if(typeof f=="object"&&f!==null)switch(f.$$typeof){case Dn:{Pu(o,a,f,d,t);return}case za:{Fu(o,a,f,d,t);return}case Fn:{Ti(o,a,f,d);return}case An:{Au(o,a,f,d);return}case _o:{Du(o,a,f,d);return}}var r="";throw(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).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."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(f==null?f:typeof f)+"."+r))}function Ou(o,a){typeof Symbol=="function"&&o[Symbol.toStringTag]==="Generator"&&(ki||c("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),ki=!0),o.entries===a&&(xl||c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),xl=!0)}function Ue(o,a,f){try{return Mu(o,a,f)}catch(d){throw typeof d=="object"&&d!==null&&typeof d.then=="function"||(Ot=Ot!==null?Ot:Qo()),d}}function Mu(o,a,f){if(a.node=f,typeof f=="object"&&f!==null){switch(f.$$typeof){case Ji:{var d=f,t=d.type,r=d.props,l=d.ref;Pe(o,a,t,r,l);return}case Ha:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case _o:{var u=f,p=u._payload,g=u._init,y;try{y=g(p)}catch(we){throw typeof we=="object"&&we!==null&&typeof we.then=="function"&&Xn(a,"Lazy"),we}Ue(o,a,y);return}}if(cr(f)){ea(o,a,f);return}var w=qi(f);if(w){Ou(f,w);var C=w.call(f);if(C){var _=C.next();if(!_.done){var O=[];do O.push(_.value),_=C.next();while(!_.done);ea(o,a,O);return}return}}var j=Object.prototype.toString.call(f);throw new Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}if(typeof f=="string"){var Z=a.blockedSegment;Z.lastPushedText=ht(a.blockedSegment.chunks,f,o.responseState,Z.lastPushedText);return}if(typeof f=="number"){var de=a.blockedSegment;de.lastPushedText=ht(a.blockedSegment.chunks,""+f,o.responseState,de.lastPushedText);return}typeof f=="function"&&c("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function ea(o,a,f){for(var d=f.length,t=0;t<d;t++){var r=a.treeContext;a.treeContext=ai(r,d,t);try{Ci(o,a,f[t])}finally{a.treeContext=r}}}function Lu(o,a,f){var d=a.blockedSegment,t=d.chunks.length,r=nn(o,t,null,d.formatContext,d.lastPushedText,!0);d.children.push(r),d.lastPushedText=!1;var l=at(o,a.node,a.blockedBoundary,r,a.abortSet,a.legacyContext,a.context,a.treeContext);a.componentStack!==null&&(l.componentStack=a.componentStack.parent);var u=l.ping;f.then(u,u)}function Ci(o,a,f){var d=a.blockedSegment.formatContext,t=a.legacyContext,r=a.context,l=null;l=a.componentStack;try{return Ue(o,a,f)}catch(u){if(ci(),typeof u=="object"&&u!==null&&typeof u.then=="function"){Lu(o,a,u),a.blockedSegment.formatContext=d,a.legacyContext=t,a.context=r,Lo(r),a.componentStack=l;return}else throw a.blockedSegment.formatContext=d,a.legacyContext=t,a.context=r,Lo(r),a.componentStack=l,u}}function El(o,a,f,d){var t=Jn(o,d);if(a===null?Ko(o,d):(a.pendingTasks--,a.forceClientRender||(a.forceClientRender=!0,a.errorDigest=t,on(a,d),a.parentFlushed&&o.clientRenderedBoundaries.push(a))),o.allPendingTasks--,o.allPendingTasks===0){var r=o.onAllReady;r()}}function ta(o){var a=this,f=o.blockedBoundary,d=o.blockedSegment;d.status=gl,Ri(a,f,d)}function Ei(o,a,f){var d=o.blockedBoundary,t=o.blockedSegment;if(t.status=gl,d===null)a.allPendingTasks--,a.status!==rn&&(a.status=rn,a.destination!==null&&xe(a.destination));else{if(d.pendingTasks--,!d.forceClientRender){d.forceClientRender=!0;var r=f===void 0?new Error("The render was aborted by the server without a reason."):f;d.errorDigest=a.onError(r);{var l="The server did not finish this Suspense boundary: ";r&&typeof r.message=="string"?r=l+r.message:r=l+String(r);var u=Ne;Ne=o;try{on(d,r)}finally{Ne=u}}d.parentFlushed&&a.clientRenderedBoundaries.push(d)}if(d.fallbackAbortableTasks.forEach(function(g){return Ei(g,a,f)}),d.fallbackAbortableTasks.clear(),a.allPendingTasks--,a.allPendingTasks===0){var p=a.onAllReady;p()}}}function ra(o,a){if(a.chunks.length===0&&a.children.length===1&&a.children[0].boundary===null){var f=a.children[0];f.id=a.id,f.parentFlushed=!0,f.status===wr&&ra(o,f)}else{var d=o.completedSegments;d.push(a)}}function Ri(o,a,f){if(a===null){if(f.parentFlushed){if(o.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");o.completedRootSegment=f}if(o.pendingRootTasks--,o.pendingRootTasks===0){o.onShellError=Gn;var d=o.onShellReady;d()}}else if(a.pendingTasks--,!a.forceClientRender){if(a.pendingTasks===0)f.parentFlushed&&f.status===wr&&ra(a,f),a.parentFlushed&&o.completedBoundaries.push(a),a.fallbackAbortableTasks.forEach(ta,o),a.fallbackAbortableTasks.clear();else if(f.parentFlushed&&f.status===wr){ra(a,f);var t=a.completedSegments;t.length===1&&a.parentFlushed&&o.partialBoundaries.push(a)}}if(o.allPendingTasks--,o.allPendingTasks===0){var r=o.onAllReady;r()}}function na(o,a){var f=a.blockedSegment;if(f.status===Zo){Lo(a.context);var d=null;d=Ne,Ne=a;try{Ue(o,a,a.node),$t(f.chunks,o.responseState,f.lastPushedText,f.textEmbedded),a.abortSet.delete(a),f.status=wr,Ri(o,a.blockedBoundary,f)}catch(r){if(ci(),typeof r=="object"&&r!==null&&typeof r.then=="function"){var t=a.ping;r.then(t,t)}else a.abortSet.delete(a),f.status=gi,El(o,a.blockedBoundary,f,r)}finally{Ne=d}}}function Kn(o){if(o.status!==rn){var a=ri(),f=Vn.current;Vn.current=di;var d;d=Zt.getCurrentStack,Zt.getCurrentStack=Qo;var t=pi;Xo(o.responseState);try{var r=o.pingedTasks,l;for(l=0;l<r.length;l++){var u=r[l];na(o,u)}r.splice(0,l),o.destination!==null&&eo(o,o.destination)}catch(p){Jn(o,p),Ko(o,p)}finally{Xo(t),Vn.current=f,Zt.getCurrentStack=d,f===di&&Lo(a)}}}function oa(o,a,f){switch(f.parentFlushed=!0,f.status){case Zo:{var d=f.id=o.nextSegmentId++;return f.lastPushedText=!1,f.textEmbedded=!1,ee(a,o.responseState,d)}case wr:{f.status=vi;for(var t=!0,r=f.chunks,l=0,u=f.children,p=0;p<u.length;p++){for(var g=u[p];l<g.index;l++)P(a,r[l]);t=qn(o,a,g)}for(;l<r.length-1;l++)P(a,r[l]);return l<r.length&&(t=W(a,r[l])),t}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function qn(o,a,f){var d=f.boundary;if(d===null)return oa(o,a,f);if(d.parentFlushed=!0,d.forceClientRender)return ms(a,o.responseState,d.errorDigest,d.errorMessage,d.errorComponentStack),oa(o,a,f),bs(a,o.responseState);if(d.pendingTasks>0){d.rootSegmentID=o.nextSegmentId++,d.completedSegments.length>0&&o.partialBoundaries.push(d);var t=d.id=Br(o.responseState);return Ni(a,o.responseState,t),oa(o,a,f),Vi(a,o.responseState)}else{if(d.byteSize>o.progressiveChunkSize)return d.rootSegmentID=o.nextSegmentId++,o.completedBoundaries.push(d),Ni(a,o.responseState,d.id),oa(o,a,f),Vi(a,o.responseState);gs(a,o.responseState);var r=d.completedSegments;if(r.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var l=r[0];return qn(o,a,l),ys(a,o.responseState)}}function Rl(o,a,f){return eu(a,o.responseState,f.id,f.errorDigest,f.errorMessage,f.errorComponentStack)}function Il(o,a,f){return Ws(a,o.responseState,f.formatContext,f.id),qn(o,a,f),zs(a,f.formatContext)}function Ii(o,a,f){for(var d=f.completedSegments,t=0;t<d.length;t++){var r=d[t];Pi(o,a,f,r)}return d.length=0,Gi(a,o.responseState,f.id,f.rootSegmentID)}function _i(o,a,f){for(var d=f.completedSegments,t=0;t<d.length;t++){var r=d[t];if(!Pi(o,a,f,r))return t++,d.splice(0,t),!1}return d.splice(0,t),!0}function Pi(o,a,f,d){if(d.status===vi)return!0;var t=d.id;if(t===-1){var r=d.id=f.rootSegmentID;if(r===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Il(o,a,d)}else return Il(o,a,d),La(a,o.responseState,t)}function eo(o,a){te();try{var f=o.completedRootSegment;f!==null&&o.pendingRootTasks===0&&(qn(o,a,f),o.completedRootSegment=null,Y(a,o.responseState));var d=o.clientRenderedBoundaries,t;for(t=0;t<d.length;t++){var r=d[t];if(!Rl(o,a,r)){o.destination=null,t++,d.splice(0,t);return}}d.splice(0,t);var l=o.completedBoundaries;for(t=0;t<l.length;t++){var u=l[t];if(!Ii(o,a,u)){o.destination=null,t++,l.splice(0,t);return}}l.splice(0,t),q(a),te(a);var p=o.partialBoundaries;for(t=0;t<p.length;t++){var g=p[t];if(!_i(o,a,g)){o.destination=null,t++,p.splice(0,t);return}}p.splice(0,t);var y=o.completedBoundaries;for(t=0;t<y.length;t++){var w=y[t];if(!Ii(o,a,w)){o.destination=null,t++,y.splice(0,t);return}}y.splice(0,t)}finally{q(a),E(a),o.allPendingTasks===0&&o.pingedTasks.length===0&&o.clientRenderedBoundaries.length===0&&o.completedBoundaries.length===0&&(o.abortableTasks.size!==0&&c("There was still abortable task at the root when we closed. This is a bug in React."),xe(a))}}function _l(o){S(function(){return Kn(o)})}function Pl(o,a){if(o.status===ml){o.status=rn,ct(a,o.fatalError);return}if(o.status!==rn&&o.destination===null){o.destination=a;try{eo(o,a)}catch(f){Jn(o,f),Ko(o,f)}}}function Fi(o,a){try{var f=o.abortableTasks;f.forEach(function(d){return Ei(d,o,a)}),f.clear(),o.destination!==null&&eo(o,o.destination)}catch(d){Jn(o,d),Ko(o,d)}}function Bu(o,a){return function(){return Pl(a,o)}}function Fl(o,a){return function(){return Fi(o,a)}}function Uu(o,a){return Ru(o,He(a?a.identifierPrefix:void 0,a?a.nonce:void 0,a?a.bootstrapScriptContent:void 0,a?a.bootstrapScripts:void 0,a?a.bootstrapModules:void 0),wn(a?a.namespaceURI:void 0),a?a.progressiveChunkSize:void 0,a?a.onError:void 0,a?a.onAllReady:void 0,a?a.onShellReady:void 0,a?a.onShellError:void 0,void 0)}function Al(o,a){var f=Uu(o,a),d=!1;return _l(f),{pipe:function(t){if(d)throw new Error("React currently only supports piping to one writable stream.");return d=!0,Pl(f,t),t.on("drain",Bu(t,f)),t.on("error",Fl(f,new Error("The destination stream errored while writing data."))),t.on("close",Fl(f,new Error("The destination stream closed early."))),t},abort:function(t){Fi(f,t)}}}Pc.renderToPipeableStream=Al,Pc.version=i}()});var zd=an(lo=>{"use strict";var io,Fc;process.env.NODE_ENV==="production"?(io=Wf(),Fc=jd()):(io=Hd(),Fc=Wd());lo.version=io.version;lo.renderToString=io.renderToString;lo.renderToStaticMarkup=io.renderToStaticMarkup;lo.renderToNodeStream=io.renderToNodeStream;lo.renderToStaticNodeStream=io.renderToStaticNodeStream;lo.renderToPipeableStream=Fc.renderToPipeableStream});var Nd=Dc(zd()),$i=Dc(ua()),Cv=require("http"),Ev=()=>$i.default.createElement("html",null,$i.default.createElement("body",null,$i.default.createElement("h1",null,"Hello World"))),$d=!1;Cv.createServer(function(e,n){let i=(0,Nd.renderToPipeableStream)($i.default.createElement(Ev,null),{onShellReady(){n.statusCode=$d?500:200,n.setHeader("Content-type","text/html"),n.setHeader("Cache-Control","no-transform"),i.pipe(n)},onShellError(s){n.statusCode=500,n.send('<!doctype html><p>Loading...</p><script src="clientrender.js"><\/script>')},onAllReady(){},onError(s){$d=!0,console.error(s)}})}).listen(9080);
/**
* @license React
* react-dom-server-legacy.node.development.js