@ola-893/agentpay-cli 0.1.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -2
- package/README.md +129 -20
- package/artifacts/agentpay_vault.wasm +0 -0
- package/artifacts/manifest.json +6 -0
- package/package.json +33 -8
- package/src/agent.mjs +61 -0
- package/src/agents.mjs +106 -0
- package/src/cli.mjs +239 -108
- package/src/config.mjs +8 -14
- package/src/copy-activity.mjs +56 -0
- package/src/copy-commands.mjs +220 -0
- package/src/copy-feed.mjs +278 -0
- package/src/copy-intents.mjs +83 -0
- package/src/copy-runtime.mjs +369 -0
- package/src/inference.mjs +69 -0
- package/src/install.mjs +9 -5
- package/src/mcp.mjs +15 -6
- package/src/repository-analysis.mjs +150 -0
- package/src/repository-service.mjs +17 -0
- package/src/settings.mjs +95 -0
- package/src/setup.mjs +73 -0
- package/src/ui.mjs +6 -1
- package/src/vault-money.mjs +69 -0
- package/ui/assets/index-Bl23n-ZK.js +331 -0
- package/ui/assets/{index-D7tPv-yG.css → index-BzAc-LMS.css} +1 -1
- package/ui/index.html +2 -2
- package/ui/near/testnet.json +741 -347
- package/ui/assets/index-B-PcdIha.js +0 -315
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))c(h);new MutationObserver(h=>{for(const p of h)if(p.type==="childList")for(const y of p.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function d(h){const p={};return h.integrity&&(p.integrity=h.integrity),h.referrerPolicy&&(p.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?p.credentials="include":h.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function c(h){if(h.ep)return;h.ep=!0;const p=d(h);fetch(h.href,p)}})();var Ju={exports:{}},Fl={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var mh;function Ly(){if(mh)return Fl;mh=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function d(c,h,p){var y=null;if(p!==void 0&&(y=""+p),h.key!==void 0&&(y=""+h.key),"key"in h){p={};for(var j in h)j!=="key"&&(p[j]=h[j])}else p=h;return h=p.ref,{$$typeof:i,type:c,key:y,ref:h!==void 0?h:null,props:p}}return Fl.Fragment=u,Fl.jsx=d,Fl.jsxs=d,Fl}var yh;function Hy(){return yh||(yh=1,Ju.exports=Ly()),Ju.exports}var r=Hy(),Iu={exports:{}},le={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var vh;function By(){if(vh)return le;vh=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),y=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),w=Symbol.iterator;function x(g){return g===null||typeof g!="object"?null:(g=w&&g[w]||g["@@iterator"],typeof g=="function"?g:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,_={};function Y(g,k,L){this.props=g,this.context=k,this.refs=_,this.updater=L||U}Y.prototype.isReactComponent={},Y.prototype.setState=function(g,k){if(typeof g!="object"&&typeof g!="function"&&g!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,g,k,"setState")},Y.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function W(){}W.prototype=Y.prototype;function X(g,k,L){this.props=g,this.context=k,this.refs=_,this.updater=L||U}var Z=X.prototype=new W;Z.constructor=X,H(Z,Y.prototype),Z.isPureReactComponent=!0;var xe=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},Ne=Object.prototype.hasOwnProperty;function de(g,k,L,V,$,fe){return L=fe.ref,{$$typeof:i,type:g,key:k,ref:L!==void 0?L:null,props:fe}}function Ue(g,k){return de(g.type,k,void 0,void 0,void 0,g.props)}function He(g){return typeof g=="object"&&g!==null&&g.$$typeof===i}function Xe(g){var k={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(L){return k[L]})}var ot=/\/+/g;function qe(g,k){return typeof g=="object"&&g!==null&&g.key!=null?Xe(""+g.key):k.toString(36)}function st(){}function pe(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(st,st):(g.status="pending",g.then(function(k){g.status==="pending"&&(g.status="fulfilled",g.value=k)},function(k){g.status==="pending"&&(g.status="rejected",g.reason=k)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function ye(g,k,L,V,$){var fe=typeof g;(fe==="undefined"||fe==="boolean")&&(g=null);var P=!1;if(g===null)P=!0;else switch(fe){case"bigint":case"string":case"number":P=!0;break;case"object":switch(g.$$typeof){case i:case u:P=!0;break;case C:return P=g._init,ye(P(g._payload),k,L,V,$)}}if(P)return $=$(g),P=V===""?"."+qe(g,0):V,xe($)?(L="",P!=null&&(L=P.replace(ot,"$&/")+"/"),ye($,k,L,"",function(ie){return ie})):$!=null&&(He($)&&($=Ue($,L+($.key==null||g&&g.key===$.key?"":(""+$.key).replace(ot,"$&/")+"/")+P)),k.push($)),1;P=0;var et=V===""?".":V+":";if(xe(g))for(var we=0;we<g.length;we++)V=g[we],fe=et+qe(V,we),P+=ye(V,k,L,fe,$);else if(we=x(g),typeof we=="function")for(g=we.call(g),we=0;!(V=g.next()).done;)V=V.value,fe=et+qe(V,we++),P+=ye(V,k,L,fe,$);else if(fe==="object"){if(typeof g.then=="function")return ye(pe(g),k,L,V,$);throw k=String(g),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return P}function O(g,k,L){if(g==null)return g;var V=[],$=0;return ye(g,V,"","",function(fe){return k.call(L,fe,$++)}),V}function G(g){if(g._status===-1){var k=g._result;k=k(),k.then(function(L){(g._status===0||g._status===-1)&&(g._status=1,g._result=L)},function(L){(g._status===0||g._status===-1)&&(g._status=2,g._result=L)}),g._status===-1&&(g._status=0,g._result=k)}if(g._status===1)return g._result.default;throw g._result}var K=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)};function me(){}return le.Children={map:O,forEach:function(g,k,L){O(g,function(){k.apply(this,arguments)},L)},count:function(g){var k=0;return O(g,function(){k++}),k},toArray:function(g){return O(g,function(k){return k})||[]},only:function(g){if(!He(g))throw Error("React.Children.only expected to receive a single React element child.");return g}},le.Component=Y,le.Fragment=d,le.Profiler=h,le.PureComponent=X,le.StrictMode=c,le.Suspense=S,le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,le.__COMPILER_RUNTIME={__proto__:null,c:function(g){return I.H.useMemoCache(g)}},le.cache=function(g){return function(){return g.apply(null,arguments)}},le.cloneElement=function(g,k,L){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var V=H({},g.props),$=g.key,fe=void 0;if(k!=null)for(P in k.ref!==void 0&&(fe=void 0),k.key!==void 0&&($=""+k.key),k)!Ne.call(k,P)||P==="key"||P==="__self"||P==="__source"||P==="ref"&&k.ref===void 0||(V[P]=k[P]);var P=arguments.length-2;if(P===1)V.children=L;else if(1<P){for(var et=Array(P),we=0;we<P;we++)et[we]=arguments[we+2];V.children=et}return de(g.type,$,void 0,void 0,fe,V)},le.createContext=function(g){return g={$$typeof:y,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:p,_context:g},g},le.createElement=function(g,k,L){var V,$={},fe=null;if(k!=null)for(V in k.key!==void 0&&(fe=""+k.key),k)Ne.call(k,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&($[V]=k[V]);var P=arguments.length-2;if(P===1)$.children=L;else if(1<P){for(var et=Array(P),we=0;we<P;we++)et[we]=arguments[we+2];$.children=et}if(g&&g.defaultProps)for(V in P=g.defaultProps,P)$[V]===void 0&&($[V]=P[V]);return de(g,fe,void 0,void 0,null,$)},le.createRef=function(){return{current:null}},le.forwardRef=function(g){return{$$typeof:j,render:g}},le.isValidElement=He,le.lazy=function(g){return{$$typeof:C,_payload:{_status:-1,_result:g},_init:G}},le.memo=function(g,k){return{$$typeof:v,type:g,compare:k===void 0?null:k}},le.startTransition=function(g){var k=I.T,L={};I.T=L;try{var V=g(),$=I.S;$!==null&&$(L,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(me,K)}catch(fe){K(fe)}finally{I.T=k}},le.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},le.use=function(g){return I.H.use(g)},le.useActionState=function(g,k,L){return I.H.useActionState(g,k,L)},le.useCallback=function(g,k){return I.H.useCallback(g,k)},le.useContext=function(g){return I.H.useContext(g)},le.useDebugValue=function(){},le.useDeferredValue=function(g,k){return I.H.useDeferredValue(g,k)},le.useEffect=function(g,k,L){var V=I.H;if(typeof L=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return V.useEffect(g,k)},le.useId=function(){return I.H.useId()},le.useImperativeHandle=function(g,k,L){return I.H.useImperativeHandle(g,k,L)},le.useInsertionEffect=function(g,k){return I.H.useInsertionEffect(g,k)},le.useLayoutEffect=function(g,k){return I.H.useLayoutEffect(g,k)},le.useMemo=function(g,k){return I.H.useMemo(g,k)},le.useOptimistic=function(g,k){return I.H.useOptimistic(g,k)},le.useReducer=function(g,k,L){return I.H.useReducer(g,k,L)},le.useRef=function(g){return I.H.useRef(g)},le.useState=function(g){return I.H.useState(g)},le.useSyncExternalStore=function(g,k,L){return I.H.useSyncExternalStore(g,k,L)},le.useTransition=function(){return I.H.useTransition()},le.version="19.1.1",le}var gh;function dc(){return gh||(gh=1,Iu.exports=By()),Iu.exports}var E=dc(),Wu={exports:{}},ei={},Pu={exports:{}},Fu={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var bh;function Yy(){return bh||(bh=1,function(i){function u(O,G){var K=O.length;O.push(G);e:for(;0<K;){var me=K-1>>>1,g=O[me];if(0<h(g,G))O[me]=G,O[K]=g,K=me;else break e}}function d(O){return O.length===0?null:O[0]}function c(O){if(O.length===0)return null;var G=O[0],K=O.pop();if(K!==G){O[0]=K;e:for(var me=0,g=O.length,k=g>>>1;me<k;){var L=2*(me+1)-1,V=O[L],$=L+1,fe=O[$];if(0>h(V,K))$<g&&0>h(fe,V)?(O[me]=fe,O[$]=K,me=$):(O[me]=V,O[L]=K,me=L);else if($<g&&0>h(fe,K))O[me]=fe,O[$]=K,me=$;else break e}}return G}function h(O,G){var K=O.sortIndex-G.sortIndex;return K!==0?K:O.id-G.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;i.unstable_now=function(){return p.now()}}else{var y=Date,j=y.now();i.unstable_now=function(){return y.now()-j}}var S=[],v=[],C=1,w=null,x=3,U=!1,H=!1,_=!1,Y=!1,W=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function xe(O){for(var G=d(v);G!==null;){if(G.callback===null)c(v);else if(G.startTime<=O)c(v),G.sortIndex=G.expirationTime,u(S,G);else break;G=d(v)}}function I(O){if(_=!1,xe(O),!H)if(d(S)!==null)H=!0,Ne||(Ne=!0,qe());else{var G=d(v);G!==null&&ye(I,G.startTime-O)}}var Ne=!1,de=-1,Ue=5,He=-1;function Xe(){return Y?!0:!(i.unstable_now()-He<Ue)}function ot(){if(Y=!1,Ne){var O=i.unstable_now();He=O;var G=!0;try{e:{H=!1,_&&(_=!1,X(de),de=-1),U=!0;var K=x;try{t:{for(xe(O),w=d(S);w!==null&&!(w.expirationTime>O&&Xe());){var me=w.callback;if(typeof me=="function"){w.callback=null,x=w.priorityLevel;var g=me(w.expirationTime<=O);if(O=i.unstable_now(),typeof g=="function"){w.callback=g,xe(O),G=!0;break t}w===d(S)&&c(S),xe(O)}else c(S);w=d(S)}if(w!==null)G=!0;else{var k=d(v);k!==null&&ye(I,k.startTime-O),G=!1}}break e}finally{w=null,x=K,U=!1}G=void 0}}finally{G?qe():Ne=!1}}}var qe;if(typeof Z=="function")qe=function(){Z(ot)};else if(typeof MessageChannel<"u"){var st=new MessageChannel,pe=st.port2;st.port1.onmessage=ot,qe=function(){pe.postMessage(null)}}else qe=function(){W(ot,0)};function ye(O,G){de=W(function(){O(i.unstable_now())},G)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(O){O.callback=null},i.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ue=0<O?Math.floor(1e3/O):5},i.unstable_getCurrentPriorityLevel=function(){return x},i.unstable_next=function(O){switch(x){case 1:case 2:case 3:var G=3;break;default:G=x}var K=x;x=G;try{return O()}finally{x=K}},i.unstable_requestPaint=function(){Y=!0},i.unstable_runWithPriority=function(O,G){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var K=x;x=O;try{return G()}finally{x=K}},i.unstable_scheduleCallback=function(O,G,K){var me=i.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?me+K:me):K=me,O){case 1:var g=-1;break;case 2:g=250;break;case 5:g=1073741823;break;case 4:g=1e4;break;default:g=5e3}return g=K+g,O={id:C++,callback:G,priorityLevel:O,startTime:K,expirationTime:g,sortIndex:-1},K>me?(O.sortIndex=K,u(v,O),d(S)===null&&O===d(v)&&(_?(X(de),de=-1):_=!0,ye(I,K-me))):(O.sortIndex=g,u(S,O),H||U||(H=!0,Ne||(Ne=!0,qe()))),O},i.unstable_shouldYield=Xe,i.unstable_wrapCallback=function(O){var G=x;return function(){var K=x;x=G;try{return O.apply(this,arguments)}finally{x=K}}}}(Fu)),Fu}var xh;function Gy(){return xh||(xh=1,Pu.exports=Yy()),Pu.exports}var ec={exports:{}},ct={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Sh;function Vy(){if(Sh)return ct;Sh=1;var i=dc();function u(S){var v="https://react.dev/errors/"+S;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)v+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+S+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var c={d:{f:d,r:function(){throw Error(u(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},h=Symbol.for("react.portal");function p(S,v,C){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:w==null?null:""+w,children:S,containerInfo:v,implementation:C}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(S,v){if(S==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ct.createPortal=function(S,v){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(u(299));return p(S,v,null,C)},ct.flushSync=function(S){var v=y.T,C=c.p;try{if(y.T=null,c.p=2,S)return S()}finally{y.T=v,c.p=C,c.d.f()}},ct.preconnect=function(S,v){typeof S=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(S,v))},ct.prefetchDNS=function(S){typeof S=="string"&&c.d.D(S)},ct.preinit=function(S,v){if(typeof S=="string"&&v&&typeof v.as=="string"){var C=v.as,w=j(C,v.crossOrigin),x=typeof v.integrity=="string"?v.integrity:void 0,U=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;C==="style"?c.d.S(S,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:w,integrity:x,fetchPriority:U}):C==="script"&&c.d.X(S,{crossOrigin:w,integrity:x,fetchPriority:U,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},ct.preinitModule=function(S,v){if(typeof S=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var C=j(v.as,v.crossOrigin);c.d.M(S,{crossOrigin:C,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(S)},ct.preload=function(S,v){if(typeof S=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var C=v.as,w=j(C,v.crossOrigin);c.d.L(S,C,{crossOrigin:w,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},ct.preloadModule=function(S,v){if(typeof S=="string")if(v){var C=j(v.as,v.crossOrigin);c.d.m(S,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:C,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(S)},ct.requestFormReset=function(S){c.d.r(S)},ct.unstable_batchedUpdates=function(S,v){return S(v)},ct.useFormState=function(S,v,C){return y.H.useFormState(S,v,C)},ct.useFormStatus=function(){return y.H.useHostTransitionStatus()},ct.version="19.1.1",ct}var Eh;function Xy(){if(Eh)return ec.exports;Eh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(u){console.error(u)}}return i(),ec.exports=Vy(),ec.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Rh;function Qy(){if(Rh)return ei;Rh=1;var i=Gy(),u=dc(),d=Xy();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function p(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function j(e){if(p(e)!==e)throw Error(c(188))}function S(e){var t=e.alternate;if(!t){if(t=p(e),t===null)throw Error(c(188));return t!==e?null:e}for(var a=e,n=t;;){var l=a.return;if(l===null)break;var s=l.alternate;if(s===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===s.child){for(s=l.child;s;){if(s===a)return j(l),e;if(s===n)return j(l),t;s=s.sibling}throw Error(c(188))}if(a.return!==n.return)a=l,n=s;else{for(var o=!1,f=l.child;f;){if(f===a){o=!0,a=l,n=s;break}if(f===n){o=!0,n=l,a=s;break}f=f.sibling}if(!o){for(f=s.child;f;){if(f===a){o=!0,a=s,n=l;break}if(f===n){o=!0,n=s,a=l;break}f=f.sibling}if(!o)throw Error(c(189))}}if(a.alternate!==n)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var C=Object.assign,w=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),X=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),Ne=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),He=Symbol.for("react.activity"),Xe=Symbol.for("react.memo_cache_sentinel"),ot=Symbol.iterator;function qe(e){return e===null||typeof e!="object"?null:(e=ot&&e[ot]||e["@@iterator"],typeof e=="function"?e:null)}var st=Symbol.for("react.client.reference");function pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===st?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case Y:return"Profiler";case _:return"StrictMode";case I:return"Suspense";case Ne:return"SuspenseList";case He:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case Z:return(e.displayName||"Context")+".Provider";case X:return(e._context.displayName||"Context")+".Consumer";case xe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case de:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case Ue:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var ye=Array.isArray,O=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},me=[],g=-1;function k(e){return{current:e}}function L(e){0>g||(e.current=me[g],me[g]=null,g--)}function V(e,t){g++,me[g]=e.current,e.current=t}var $=k(null),fe=k(null),P=k(null),et=k(null);function we(e,t){switch(V(P,t),V(fe,e),V($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vf(t),e=Xf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L($),V($,e)}function ie(){L($),L(fe),L(P)}function ne(e){e.memoizedState!==null&&V(et,e);var t=$.current,a=Xf(t,e.type);t!==a&&(V(fe,e),V($,a))}function Me(e){fe.current===e&&(L($),L(fe)),et.current===e&&(L(et),$l._currentValue=K)}var B=Object.prototype.hasOwnProperty,he=i.unstable_scheduleCallback,ke=i.unstable_cancelCallback,Ft=i.unstable_shouldYield,ea=i.unstable_requestPaint,tt=i.unstable_now,gp=i.unstable_getCurrentPriorityLevel,Sc=i.unstable_ImmediatePriority,Ec=i.unstable_UserBlockingPriority,si=i.unstable_NormalPriority,bp=i.unstable_LowPriority,Rc=i.unstable_IdlePriority,xp=i.log,Sp=i.unstable_setDisableYieldValue,al=null,gt=null;function xa(e){if(typeof xp=="function"&&Sp(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(al,e)}catch{}}var bt=Math.clz32?Math.clz32:wp,Ep=Math.log,Rp=Math.LN2;function wp(e){return e>>>=0,e===0?32:31-(Ep(e)/Rp|0)|0}var ri=256,ui=4194304;function Qa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ci(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var l=0,s=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var f=n&134217727;return f!==0?(n=f&~s,n!==0?l=Qa(n):(o&=f,o!==0?l=Qa(o):a||(a=f&~e,a!==0&&(l=Qa(a))))):(f=n&~s,f!==0?l=Qa(f):o!==0?l=Qa(o):a||(a=n&~e,a!==0&&(l=Qa(a)))),l===0?0:t!==0&&t!==l&&(t&s)===0&&(s=l&-l,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:l}function nl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function jp(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc(){var e=ri;return ri<<=1,(ri&4194048)===0&&(ri=256),e}function jc(){var e=ui;return ui<<=1,(ui&62914560)===0&&(ui=4194304),e}function Ls(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ll(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Cp(e,t,a,n,l,s){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var f=e.entanglements,m=e.expirationTimes,T=e.hiddenUpdates;for(a=o&~a;0<a;){var M=31-bt(a),q=1<<M;f[M]=0,m[M]=-1;var N=T[M];if(N!==null)for(T[M]=null,M=0;M<N.length;M++){var D=N[M];D!==null&&(D.lane&=-536870913)}a&=~q}n!==0&&Cc(e,n,0),s!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=s&~(o&~t))}function Cc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-bt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&4194090}function Ac(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-bt(a),l=1<<n;l&t|e[n]&t&&(e[n]|=t),a&=~l}}function Hs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Tc(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:ch(e.type))}function Ap(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var Sa=Math.random().toString(36).slice(2),rt="__reactFiber$"+Sa,ht="__reactProps$"+Sa,dn="__reactContainer$"+Sa,Ys="__reactEvents$"+Sa,Tp="__reactListeners$"+Sa,Np="__reactHandles$"+Sa,Nc="__reactResources$"+Sa,il="__reactMarker$"+Sa;function Gs(e){delete e[rt],delete e[ht],delete e[Ys],delete e[Tp],delete e[Np]}function fn(e){var t=e[rt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[dn]||a[rt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=$f(e);e!==null;){if(a=e[rt])return a;e=$f(e)}return t}e=a,a=e.parentNode}return null}function hn(e){if(e=e[rt]||e[dn]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function sl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function pn(e){var t=e[Nc];return t||(t=e[Nc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[il]=!0}var Dc=new Set,Oc={};function Za(e,t){mn(e,t),mn(e+"Capture",t)}function mn(e,t){for(Oc[e]=t,e=0;e<t.length;e++)Dc.add(t[e])}var Dp=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Uc={},Mc={};function Op(e){return B.call(Mc,e)?!0:B.call(Uc,e)?!1:Dp.test(e)?Mc[e]=!0:(Uc[e]=!0,!1)}function oi(e,t,a){if(Op(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function di(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ta(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}var Vs,_c;function yn(e){if(Vs===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Vs=t&&t[1]||"",_c=-1<a.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Vs+e+_c}var Xs=!1;function Qs(e,t){if(!e||Xs)return"";Xs=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(D){var N=D}Reflect.construct(e,[],q)}else{try{q.call()}catch(D){N=D}e.call(q.prototype)}}else{try{throw Error()}catch(D){N=D}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(D){if(D&&N&&typeof D.stack=="string")return[D.stack,N.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),o=s[0],f=s[1];if(o&&f){var m=o.split(`
|
|
44
|
-
`),T=f.split(`
|
|
45
|
-
`);for(l=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;if(n===m.length||l===T.length)for(n=m.length-1,l=T.length-1;1<=n&&0<=l&&m[n]!==T[l];)l--;for(;1<=n&&0<=l;n--,l--)if(m[n]!==T[l]){if(n!==1||l!==1)do if(n--,l--,0>l||m[n]!==T[l]){var M=`
|
|
46
|
-
`+m[n].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=n&&0<=l);break}}}finally{Xs=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?yn(a):""}function Up(e){switch(e.tag){case 26:case 27:case 5:return yn(e.type);case 16:return yn("Lazy");case 13:return yn("Suspense");case 19:return yn("SuspenseList");case 0:case 15:return Qs(e.type,!1);case 11:return Qs(e.type.render,!1);case 1:return Qs(e.type,!0);case 31:return yn("Activity");default:return""}}function zc(e){try{var t="";do t+=Up(e),e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}function Nt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mp(e){var t=qc(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var l=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fi(e){e._valueTracker||(e._valueTracker=Mp(e))}function kc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=qc(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function hi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _p=/[\n"\\]/g;function Dt(e){return e.replace(_p,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zs(e,t,a,n,l,s,o,f){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Ks(e,o,Nt(t)):a!=null?Ks(e,o,Nt(a)):n!=null&&e.removeAttribute("value"),l==null&&s!=null&&(e.defaultChecked=!!s),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+Nt(f):e.removeAttribute("name")}function Lc(e,t,a,n,l,s,o,f){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null))return;a=a!=null?""+Nt(a):"",t=t!=null?""+Nt(t):a,f||t===e.value||(e.value=t),e.defaultValue=t}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=f?e.checked:!!n,e.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o)}function Ks(e,t,a){t==="number"&&hi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function vn(e,t,a,n){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Nt(a),t=null,l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,n&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Hc(e,t,a){if(t!=null&&(t=""+Nt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Nt(a):""}function Bc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(c(92));if(ye(n)){if(1<n.length)throw Error(c(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Nt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n)}function gn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var zp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Yc(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||zp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Gc(e,t,a){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var l in t)n=t[l],t.hasOwnProperty(l)&&a[l]!==n&&Yc(e,l,n)}else for(var s in t)t.hasOwnProperty(s)&&Yc(e,s,t[s])}function $s(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),kp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function pi(e){return kp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Js=null;function Is(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bn=null,xn=null;function Vc(e){var t=hn(e);if(t&&(e=t.stateNode)){var a=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Dt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var l=n[ht]||null;if(!l)throw Error(c(90));Zs(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&kc(n)}break e;case"textarea":Hc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&vn(e,!!a.multiple,t,!1)}}}var Ws=!1;function Xc(e,t,a){if(Ws)return e(t,a);Ws=!0;try{var n=e(t);return n}finally{if(Ws=!1,(bn!==null||xn!==null)&&(Fi(),bn&&(t=bn,e=xn,xn=bn=null,Vc(t),e)))for(t=0;t<e.length;t++)Vc(e[t])}}function rl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[ht]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,t,typeof a));return a}var aa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ps=!1;if(aa)try{var ul={};Object.defineProperty(ul,"passive",{get:function(){Ps=!0}}),window.addEventListener("test",ul,ul),window.removeEventListener("test",ul,ul)}catch{Ps=!1}var Ea=null,Fs=null,mi=null;function Qc(){if(mi)return mi;var e,t=Fs,a=t.length,n,l="value"in Ea?Ea.value:Ea.textContent,s=l.length;for(e=0;e<a&&t[e]===l[e];e++);var o=a-e;for(n=1;n<=o&&t[a-n]===l[s-n];n++);return mi=l.slice(e,1<n?1-n:void 0)}function yi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vi(){return!0}function Zc(){return!1}function pt(e){function t(a,n,l,s,o){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(a=e[f],this[f]=a?a(s):s[f]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?vi:Zc,this.isPropagationStopped=Zc,this}return C(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=vi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=vi)},persist:function(){},isPersistent:vi}),t}var Ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gi=pt(Ka),cl=C({},Ka,{view:0,detail:0}),Lp=pt(cl),er,tr,ol,bi=C({},cl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ol&&(ol&&e.type==="mousemove"?(er=e.screenX-ol.screenX,tr=e.screenY-ol.screenY):tr=er=0,ol=e),er)},movementY:function(e){return"movementY"in e?e.movementY:tr}}),Kc=pt(bi),Hp=C({},bi,{dataTransfer:0}),Bp=pt(Hp),Yp=C({},cl,{relatedTarget:0}),ar=pt(Yp),Gp=C({},Ka,{animationName:0,elapsedTime:0,pseudoElement:0}),Vp=pt(Gp),Xp=C({},Ka,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qp=pt(Xp),Zp=C({},Ka,{data:0}),$c=pt(Zp),Kp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$p={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Jp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ip(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jp[e])?!!t[e]:!1}function nr(){return Ip}var Wp=C({},cl,{key:function(e){if(e.key){var t=Kp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$p[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nr,charCode:function(e){return e.type==="keypress"?yi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pp=pt(Wp),Fp=C({},bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jc=pt(Fp),em=C({},cl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nr}),tm=pt(em),am=C({},Ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),nm=pt(am),lm=C({},bi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),im=pt(lm),sm=C({},Ka,{newState:0,oldState:0}),rm=pt(sm),um=[9,13,27,32],lr=aa&&"CompositionEvent"in window,dl=null;aa&&"documentMode"in document&&(dl=document.documentMode);var cm=aa&&"TextEvent"in window&&!dl,Ic=aa&&(!lr||dl&&8<dl&&11>=dl),Wc=" ",Pc=!1;function Fc(e,t){switch(e){case"keyup":return um.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sn=!1;function om(e,t){switch(e){case"compositionend":return eo(t);case"keypress":return t.which!==32?null:(Pc=!0,Wc);case"textInput":return e=t.data,e===Wc&&Pc?null:e;default:return null}}function dm(e,t){if(Sn)return e==="compositionend"||!lr&&Fc(e,t)?(e=Qc(),mi=Fs=Ea=null,Sn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ic&&t.locale!=="ko"?null:t.data;default:return null}}var fm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function to(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fm[e.type]:t==="textarea"}function ao(e,t,a,n){bn?xn?xn.push(n):xn=[n]:bn=n,t=is(t,"onChange"),0<t.length&&(a=new gi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var fl=null,hl=null;function hm(e){Lf(e,0)}function xi(e){var t=sl(e);if(kc(t))return e}function no(e,t){if(e==="change")return t}var lo=!1;if(aa){var ir;if(aa){var sr="oninput"in document;if(!sr){var io=document.createElement("div");io.setAttribute("oninput","return;"),sr=typeof io.oninput=="function"}ir=sr}else ir=!1;lo=ir&&(!document.documentMode||9<document.documentMode)}function so(){fl&&(fl.detachEvent("onpropertychange",ro),hl=fl=null)}function ro(e){if(e.propertyName==="value"&&xi(hl)){var t=[];ao(t,hl,e,Is(e)),Xc(hm,t)}}function pm(e,t,a){e==="focusin"?(so(),fl=t,hl=a,fl.attachEvent("onpropertychange",ro)):e==="focusout"&&so()}function mm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xi(hl)}function ym(e,t){if(e==="click")return xi(t)}function vm(e,t){if(e==="input"||e==="change")return xi(t)}function gm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:gm;function pl(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var l=a[n];if(!B.call(t,l)||!xt(e[l],t[l]))return!1}return!0}function uo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function co(e,t){var a=uo(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=uo(a)}}function oo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=hi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=hi(e.document)}return t}function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var bm=aa&&"documentMode"in document&&11>=document.documentMode,En=null,ur=null,ml=null,cr=!1;function ho(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cr||En==null||En!==hi(n)||(n=En,"selectionStart"in n&&rr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ml&&pl(ml,n)||(ml=n,n=is(ur,"onSelect"),0<n.length&&(t=new gi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=En)))}function $a(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Rn={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionrun:$a("Transition","TransitionRun"),transitionstart:$a("Transition","TransitionStart"),transitioncancel:$a("Transition","TransitionCancel"),transitionend:$a("Transition","TransitionEnd")},or={},po={};aa&&(po=document.createElement("div").style,"AnimationEvent"in window||(delete Rn.animationend.animation,delete Rn.animationiteration.animation,delete Rn.animationstart.animation),"TransitionEvent"in window||delete Rn.transitionend.transition);function Ja(e){if(or[e])return or[e];if(!Rn[e])return e;var t=Rn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in po)return or[e]=t[a];return e}var mo=Ja("animationend"),yo=Ja("animationiteration"),vo=Ja("animationstart"),xm=Ja("transitionrun"),Sm=Ja("transitionstart"),Em=Ja("transitioncancel"),go=Ja("transitionend"),bo=new Map,dr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");dr.push("scrollEnd");function Gt(e,t){bo.set(e,t),Za(t,[e])}var xo=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var a=xo.get(e);return a!==void 0?a:(t={value:e,source:t,stack:zc(t)},xo.set(e,t),t)}return{value:e,source:t,stack:zc(t)}}var Ut=[],wn=0,fr=0;function Si(){for(var e=wn,t=fr=wn=0;t<e;){var a=Ut[t];Ut[t++]=null;var n=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var s=Ut[t];if(Ut[t++]=null,n!==null&&l!==null){var o=n.pending;o===null?l.next=l:(l.next=o.next,o.next=l),n.pending=l}s!==0&&So(a,l,s)}}function Ei(e,t,a,n){Ut[wn++]=e,Ut[wn++]=t,Ut[wn++]=a,Ut[wn++]=n,fr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function hr(e,t,a,n){return Ei(e,t,a,n),Ri(e)}function jn(e,t){return Ei(e,null,null,t),Ri(e)}function So(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var l=!1,s=e.return;s!==null;)s.childLanes|=a,n=s.alternate,n!==null&&(n.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(l=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,l&&t!==null&&(l=31-bt(a),e=s.hiddenUpdates,n=e[l],n===null?e[l]=[t]:n.push(t),t.lane=a|536870912),s):null}function Ri(e){if(50<Bl)throw Bl=0,bu=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Cn={};function Rm(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,a,n){return new Rm(e,t,a,n)}function pr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function na(e,t){var a=e.alternate;return a===null?(a=St(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Eo(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function wi(e,t,a,n,l,s){var o=0;if(n=e,typeof e=="function")pr(e)&&(o=1);else if(typeof e=="string")o=jy(e,a,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case He:return e=St(31,a,t,l),e.elementType=He,e.lanes=s,e;case H:return Ia(a.children,l,s,t);case _:o=8,l|=24;break;case Y:return e=St(12,a,t,l|2),e.elementType=Y,e.lanes=s,e;case I:return e=St(13,a,t,l),e.elementType=I,e.lanes=s,e;case Ne:return e=St(19,a,t,l),e.elementType=Ne,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:case Z:o=10;break e;case X:o=9;break e;case xe:o=11;break e;case de:o=14;break e;case Ue:o=16,n=null;break e}o=29,a=Error(c(130,e===null?"null":typeof e,"")),n=null}return t=St(o,a,t,l),t.elementType=e,t.type=n,t.lanes=s,t}function Ia(e,t,a,n){return e=St(7,e,n,t),e.lanes=a,e}function mr(e,t,a){return e=St(6,e,null,t),e.lanes=a,e}function yr(e,t,a){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var An=[],Tn=0,ji=null,Ci=0,Mt=[],_t=0,Wa=null,la=1,ia="";function Pa(e,t){An[Tn++]=Ci,An[Tn++]=ji,ji=e,Ci=t}function Ro(e,t,a){Mt[_t++]=la,Mt[_t++]=ia,Mt[_t++]=Wa,Wa=e;var n=la;e=ia;var l=32-bt(n)-1;n&=~(1<<l),a+=1;var s=32-bt(t)+l;if(30<s){var o=l-l%5;s=(n&(1<<o)-1).toString(32),n>>=o,l-=o,la=1<<32-bt(t)+l|a<<l|n,ia=s+e}else la=1<<s|a<<l|n,ia=e}function vr(e){e.return!==null&&(Pa(e,1),Ro(e,1,0))}function gr(e){for(;e===ji;)ji=An[--Tn],An[Tn]=null,Ci=An[--Tn],An[Tn]=null;for(;e===Wa;)Wa=Mt[--_t],Mt[_t]=null,ia=Mt[--_t],Mt[_t]=null,la=Mt[--_t],Mt[_t]=null}var dt=null,Be=null,Se=!1,Fa=null,Qt=!1,br=Error(c(519));function en(e){var t=Error(c(418,""));throw gl(Ot(t,e)),br}function wo(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[rt]=e,t[ht]=n,a){case"dialog":oe("cancel",t),oe("close",t);break;case"iframe":case"object":case"embed":oe("load",t);break;case"video":case"audio":for(a=0;a<Gl.length;a++)oe(Gl[a],t);break;case"source":oe("error",t);break;case"img":case"image":case"link":oe("error",t),oe("load",t);break;case"details":oe("toggle",t);break;case"input":oe("invalid",t),Lc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0),fi(t);break;case"select":oe("invalid",t);break;case"textarea":oe("invalid",t),Bc(t,n.value,n.defaultValue,n.children),fi(t)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||Gf(t.textContent,a)?(n.popover!=null&&(oe("beforetoggle",t),oe("toggle",t)),n.onScroll!=null&&oe("scroll",t),n.onScrollEnd!=null&&oe("scrollend",t),n.onClick!=null&&(t.onclick=ss),t=!0):t=!1,t||en(e)}function jo(e){for(dt=e.return;dt;)switch(dt.tag){case 5:case 13:Qt=!1;return;case 27:case 3:Qt=!0;return;default:dt=dt.return}}function yl(e){if(e!==dt)return!1;if(!Se)return jo(e),Se=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||zu(e.type,e.memoizedProps)),a=!a),a&&Be&&en(e),jo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Be=Xt(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Be=null}}else t===27?(t=Be,La(e.type)?(e=Hu,Hu=null,Be=e):Be=t):Be=dt?Xt(e.stateNode.nextSibling):null;return!0}function vl(){Be=dt=null,Se=!1}function Co(){var e=Fa;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),Fa=null),e}function gl(e){Fa===null?Fa=[e]:Fa.push(e)}var xr=k(null),tn=null,sa=null;function Ra(e,t,a){V(xr,t._currentValue),t._currentValue=a}function ra(e){e._currentValue=xr.current,L(xr)}function Sr(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Er(e,t,a,n){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var s=l.dependencies;if(s!==null){var o=l.child;s=s.firstContext;e:for(;s!==null;){var f=s;s=l;for(var m=0;m<t.length;m++)if(f.context===t[m]){s.lanes|=a,f=s.alternate,f!==null&&(f.lanes|=a),Sr(s.return,a,e),n||(o=null);break e}s=f.next}}else if(l.tag===18){if(o=l.return,o===null)throw Error(c(341));o.lanes|=a,s=o.alternate,s!==null&&(s.lanes|=a),Sr(o,a,e),o=null}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===e){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}}function bl(e,t,a,n){e=null;for(var l=t,s=!1;l!==null;){if(!s){if((l.flags&524288)!==0)s=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var o=l.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var f=l.type;xt(l.pendingProps.value,o.value)||(e!==null?e.push(f):e=[f])}}else if(l===et.current){if(o=l.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push($l):e=[$l])}l=l.return}e!==null&&Er(t,e,a,n),t.flags|=262144}function Ai(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function an(e){tn=e,sa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return Ao(tn,e)}function Ti(e,t){return tn===null&&an(e),Ao(e,t)}function Ao(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},sa===null){if(e===null)throw Error(c(308));sa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else sa=sa.next=t;return a}var wm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},jm=i.unstable_scheduleCallback,Cm=i.unstable_NormalPriority,Ke={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Rr(){return{controller:new wm,data:new Map,refCount:0}}function xl(e){e.refCount--,e.refCount===0&&jm(Cm,function(){e.controller.abort()})}var Sl=null,wr=0,Nn=0,Dn=null;function Am(e,t){if(Sl===null){var a=Sl=[];wr=0,Nn=Cu(),Dn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return wr++,t.then(To,To),t}function To(){if(--wr===0&&Sl!==null){Dn!==null&&(Dn.status="fulfilled");var e=Sl;Sl=null,Nn=0,Dn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Tm(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){for(n.status="rejected",n.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),n}var No=O.S;O.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Am(e,t),No!==null&&No(e,t)};var nn=k(null);function jr(){var e=nn.current;return e!==null?e:De.pooledCache}function Ni(e,t){t===null?V(nn,nn.current):V(nn,t.pool)}function Do(){var e=jr();return e===null?null:{parent:Ke._currentValue,pool:e}}var El=Error(c(460)),Oo=Error(c(474)),Di=Error(c(542)),Cr={then:function(){}};function Uo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Oi(){}function Mo(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Oi,Oi),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zo(e),e;default:if(typeof t.status=="string")t.then(Oi,Oi);else{if(e=De,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=n}},function(n){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zo(e),e}throw Rl=t,El}}var Rl=null;function _o(){if(Rl===null)throw Error(c(459));var e=Rl;return Rl=null,e}function zo(e){if(e===El||e===Di)throw Error(c(483))}var wa=!1;function Ar(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ca(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ee&2)!==0){var l=n.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),n.pending=t,t=Ri(e),So(e,null,a),t}return Ei(e,n,t,a),Ri(e)}function wl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Ac(e,a)}}function Nr(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var l=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?l=s=o:s=s.next=o,a=a.next}while(a!==null);s===null?l=s=t:s=s.next=t}else l=s=t;a={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:s,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Dr=!1;function jl(){if(Dr){var e=Dn;if(e!==null)throw e}}function Cl(e,t,a,n){Dr=!1;var l=e.updateQueue;wa=!1;var s=l.firstBaseUpdate,o=l.lastBaseUpdate,f=l.shared.pending;if(f!==null){l.shared.pending=null;var m=f,T=m.next;m.next=null,o===null?s=T:o.next=T,o=m;var M=e.alternate;M!==null&&(M=M.updateQueue,f=M.lastBaseUpdate,f!==o&&(f===null?M.firstBaseUpdate=T:f.next=T,M.lastBaseUpdate=m))}if(s!==null){var q=l.baseState;o=0,M=T=m=null,f=s;do{var N=f.lane&-536870913,D=N!==f.lane;if(D?(ve&N)===N:(n&N)===N){N!==0&&N===Nn&&(Dr=!0),M!==null&&(M=M.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var te=e,F=f;N=t;var Ae=a;switch(F.tag){case 1:if(te=F.payload,typeof te=="function"){q=te.call(Ae,q,N);break e}q=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=F.payload,N=typeof te=="function"?te.call(Ae,q,N):te,N==null)break e;q=C({},q,N);break e;case 2:wa=!0}}N=f.callback,N!==null&&(e.flags|=64,D&&(e.flags|=8192),D=l.callbacks,D===null?l.callbacks=[N]:D.push(N))}else D={lane:N,tag:f.tag,payload:f.payload,callback:f.callback,next:null},M===null?(T=M=D,m=q):M=M.next=D,o|=N;if(f=f.next,f===null){if(f=l.shared.pending,f===null)break;D=f,f=D.next,D.next=null,l.lastBaseUpdate=D,l.shared.pending=null}}while(!0);M===null&&(m=q),l.baseState=m,l.firstBaseUpdate=T,l.lastBaseUpdate=M,s===null&&(l.shared.lanes=0),_a|=o,e.lanes=o,e.memoizedState=q}}function qo(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function ko(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)qo(a[e],t)}var On=k(null),Ui=k(0);function Lo(e,t){e=pa,V(Ui,e),V(On,t),pa=e|t.baseLanes}function Or(){V(Ui,pa),V(On,On.current)}function Ur(){pa=Ui.current,L(On),L(Ui)}var Aa=0,se=null,je=null,Qe=null,Mi=!1,Un=!1,ln=!1,_i=0,Al=0,Mn=null,Nm=0;function Ge(){throw Error(c(321))}function Mr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!xt(e[a],t[a]))return!1;return!0}function _r(e,t,a,n,l,s){return Aa=s,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Sd:Ed,ln=!1,s=a(n,l),ln=!1,Un&&(s=Bo(t,a,n,l)),Ho(e),s}function Ho(e){O.H=Bi;var t=je!==null&&je.next!==null;if(Aa=0,Qe=je=se=null,Mi=!1,Al=0,Mn=null,t)throw Error(c(300));e===null||We||(e=e.dependencies,e!==null&&Ai(e)&&(We=!0))}function Bo(e,t,a,n){se=e;var l=0;do{if(Un&&(Mn=null),Al=0,Un=!1,25<=l)throw Error(c(301));if(l+=1,Qe=je=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}O.H=qm,s=t(a,n)}while(Un);return s}function Dm(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Tl(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(se.flags|=1024),t}function zr(){var e=_i!==0;return _i=0,e}function qr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function kr(e){if(Mi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Mi=!1}Aa=0,Qe=je=se=null,Un=!1,Al=_i=0,Mn=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?se.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ze(){if(je===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Qe===null?se.memoizedState:Qe.next;if(t!==null)Qe=t,je=e;else{if(e===null)throw se.alternate===null?Error(c(467)):Error(c(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Qe===null?se.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Lr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tl(e){var t=Al;return Al+=1,Mn===null&&(Mn=[]),e=Mo(Mn,e,t),t=se,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Sd:Ed),e}function zi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Tl(e);if(e.$$typeof===Z)return ut(e)}throw Error(c(438,String(e)))}function Hr(e){var t=null,a=se.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=se.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Lr(),se.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=Xe;return t.index++,a}function ua(e,t){return typeof t=="function"?t(e):t}function qi(e){var t=Ze();return Br(t,je,e)}function Br(e,t,a){var n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=a;var l=e.baseQueue,s=n.pending;if(s!==null){if(l!==null){var o=l.next;l.next=s.next,s.next=o}t.baseQueue=l=s,n.pending=null}if(s=e.baseState,l===null)e.memoizedState=s;else{t=l.next;var f=o=null,m=null,T=t,M=!1;do{var q=T.lane&-536870913;if(q!==T.lane?(ve&q)===q:(Aa&q)===q){var N=T.revertLane;if(N===0)m!==null&&(m=m.next={lane:0,revertLane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),q===Nn&&(M=!0);else if((Aa&N)===N){T=T.next,N===Nn&&(M=!0);continue}else q={lane:0,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},m===null?(f=m=q,o=s):m=m.next=q,se.lanes|=N,_a|=N;q=T.action,ln&&a(s,q),s=T.hasEagerState?T.eagerState:a(s,q)}else N={lane:q,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},m===null?(f=m=N,o=s):m=m.next=N,se.lanes|=q,_a|=q;T=T.next}while(T!==null&&T!==t);if(m===null?o=s:m.next=f,!xt(s,e.memoizedState)&&(We=!0,M&&(a=Dn,a!==null)))throw a;e.memoizedState=s,e.baseState=o,e.baseQueue=m,n.lastRenderedState=s}return l===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Yr(e){var t=Ze(),a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var n=a.dispatch,l=a.pending,s=t.memoizedState;if(l!==null){a.pending=null;var o=l=l.next;do s=e(s,o.action),o=o.next;while(o!==l);xt(s,t.memoizedState)||(We=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,n]}function Yo(e,t,a){var n=se,l=Ze(),s=Se;if(s){if(a===void 0)throw Error(c(407));a=a()}else a=t();var o=!xt((je||l).memoizedState,a);o&&(l.memoizedState=a,We=!0),l=l.queue;var f=Xo.bind(null,n,l,e);if(Nl(2048,8,f,[e]),l.getSnapshot!==t||o||Qe!==null&&Qe.memoizedState.tag&1){if(n.flags|=2048,_n(9,ki(),Vo.bind(null,n,l,a,t),null),De===null)throw Error(c(349));s||(Aa&124)!==0||Go(n,t,a)}return a}function Go(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=se.updateQueue,t===null?(t=Lr(),se.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Vo(e,t,a,n){t.value=a,t.getSnapshot=n,Qo(t)&&Zo(e)}function Xo(e,t,a){return a(function(){Qo(t)&&Zo(e)})}function Qo(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!xt(e,a)}catch{return!0}}function Zo(e){var t=jn(e,2);t!==null&&Ct(t,e,2)}function Gr(e){var t=mt();if(typeof e=="function"){var a=e;if(e=a(),ln){xa(!0);try{a()}finally{xa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e},t}function Ko(e,t,a,n){return e.baseState=a,Br(e,je,typeof n=="function"?n:ua)}function Om(e,t,a,n,l){if(Hi(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};O.T!==null?a(!0):s.isTransition=!1,n(s),a=t.pending,a===null?(s.next=t.pending=s,$o(t,s)):(s.next=a.next,t.pending=a.next=s)}}function $o(e,t){var a=t.action,n=t.payload,l=e.state;if(t.isTransition){var s=O.T,o={};O.T=o;try{var f=a(l,n),m=O.S;m!==null&&m(o,f),Jo(e,t,f)}catch(T){Vr(e,t,T)}finally{O.T=s}}else try{s=a(l,n),Jo(e,t,s)}catch(T){Vr(e,t,T)}}function Jo(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Io(e,t,n)},function(n){return Vr(e,t,n)}):Io(e,t,a)}function Io(e,t,a){t.status="fulfilled",t.value=a,Wo(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,$o(e,a)))}function Vr(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Wo(t),t=t.next;while(t!==n)}e.action=null}function Wo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Po(e,t){return t}function Fo(e,t){if(Se){var a=De.formState;if(a!==null){e:{var n=se;if(Se){if(Be){t:{for(var l=Be,s=Qt;l.nodeType!==8;){if(!s){l=null;break t}if(l=Xt(l.nextSibling),l===null){l=null;break t}}s=l.data,l=s==="F!"||s==="F"?l:null}if(l){Be=Xt(l.nextSibling),n=l.data==="F!";break e}}en(n)}n=!1}n&&(t=a[0])}}return a=mt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:t},a.queue=n,a=gd.bind(null,se,n),n.dispatch=a,n=Gr(!1),s=$r.bind(null,se,!1,n.queue),n=mt(),l={state:t,dispatch:null,action:e,pending:null},n.queue=l,a=Om.bind(null,se,l,s,a),l.dispatch=a,n.memoizedState=e,[t,a,!1]}function ed(e){var t=Ze();return td(t,je,e)}function td(e,t,a){if(t=Br(e,t,Po)[0],e=qi(ua)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Tl(t)}catch(o){throw o===El?Di:o}else n=t;t=Ze();var l=t.queue,s=l.dispatch;return a!==t.memoizedState&&(se.flags|=2048,_n(9,ki(),Um.bind(null,l,a),null)),[n,s,e]}function Um(e,t){e.action=t}function ad(e){var t=Ze(),a=je;if(a!==null)return td(t,a,e);Ze(),t=t.memoizedState,a=Ze();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function _n(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=se.updateQueue,t===null&&(t=Lr(),se.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function ki(){return{destroy:void 0,resource:void 0}}function nd(){return Ze().memoizedState}function Li(e,t,a,n){var l=mt();n=n===void 0?null:n,se.flags|=e,l.memoizedState=_n(1|t,ki(),a,n)}function Nl(e,t,a,n){var l=Ze();n=n===void 0?null:n;var s=l.memoizedState.inst;je!==null&&n!==null&&Mr(n,je.memoizedState.deps)?l.memoizedState=_n(t,s,a,n):(se.flags|=e,l.memoizedState=_n(1|t,s,a,n))}function ld(e,t){Li(8390656,8,e,t)}function id(e,t){Nl(2048,8,e,t)}function sd(e,t){return Nl(4,2,e,t)}function rd(e,t){return Nl(4,4,e,t)}function ud(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cd(e,t,a){a=a!=null?a.concat([e]):null,Nl(4,4,ud.bind(null,t,e),a)}function Xr(){}function od(e,t){var a=Ze();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Mr(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function dd(e,t){var a=Ze();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Mr(t,n[1]))return n[0];if(n=e(),ln){xa(!0);try{e()}finally{xa(!1)}}return a.memoizedState=[n,t],n}function Qr(e,t,a){return a===void 0||(Aa&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=mf(),se.lanes|=e,_a|=e,a)}function fd(e,t,a,n){return xt(a,t)?a:On.current!==null?(e=Qr(e,a,n),xt(e,t)||(We=!0),e):(Aa&42)===0?(We=!0,e.memoizedState=a):(e=mf(),se.lanes|=e,_a|=e,t)}function hd(e,t,a,n,l){var s=G.p;G.p=s!==0&&8>s?s:8;var o=O.T,f={};O.T=f,$r(e,!1,t,a);try{var m=l(),T=O.S;if(T!==null&&T(f,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var M=Tm(m,n);Dl(e,t,M,jt(e))}else Dl(e,t,n,jt(e))}catch(q){Dl(e,t,{then:function(){},status:"rejected",reason:q},jt())}finally{G.p=s,O.T=o}}function Mm(){}function Zr(e,t,a,n){if(e.tag!==5)throw Error(c(476));var l=pd(e).queue;hd(e,l,t,K,a===null?Mm:function(){return md(e),a(n)})}function pd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:K},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function md(e){var t=pd(e).next.queue;Dl(e,t,{},jt())}function Kr(){return ut($l)}function yd(){return Ze().memoizedState}function vd(){return Ze().memoizedState}function _m(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=jt();e=ja(a);var n=Ca(t,e,a);n!==null&&(Ct(n,t,a),wl(n,t,a)),t={cache:Rr()},e.payload=t;return}t=t.return}}function zm(e,t,a){var n=jt();a={lane:n,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Hi(e)?bd(t,a):(a=hr(e,t,a,n),a!==null&&(Ct(a,e,n),xd(a,t,n)))}function gd(e,t,a){var n=jt();Dl(e,t,a,n)}function Dl(e,t,a,n){var l={lane:n,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Hi(e))bd(t,l);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,f=s(o,a);if(l.hasEagerState=!0,l.eagerState=f,xt(f,o))return Ei(e,t,l,0),De===null&&Si(),!1}catch{}finally{}if(a=hr(e,t,l,n),a!==null)return Ct(a,e,n),xd(a,t,n),!0}return!1}function $r(e,t,a,n){if(n={lane:2,revertLane:Cu(),action:n,hasEagerState:!1,eagerState:null,next:null},Hi(e)){if(t)throw Error(c(479))}else t=hr(e,a,n,2),t!==null&&Ct(t,e,2)}function Hi(e){var t=e.alternate;return e===se||t!==null&&t===se}function bd(e,t){Un=Mi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function xd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Ac(e,a)}}var Bi={readContext:ut,use:zi,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge},Sd={readContext:ut,use:zi,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:ld,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Li(4194308,4,ud.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){Li(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var n=e();if(ln){xa(!0);try{e()}finally{xa(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=mt();if(a!==void 0){var l=a(t);if(ln){xa(!0);try{a(t)}finally{xa(!1)}}}else l=t;return n.memoizedState=n.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},n.queue=e,e=e.dispatch=zm.bind(null,se,e),[n.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Gr(e);var t=e.queue,a=gd.bind(null,se,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Xr,useDeferredValue:function(e,t){var a=mt();return Qr(a,e,t)},useTransition:function(){var e=Gr(!1);return e=hd.bind(null,se,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=se,l=mt();if(Se){if(a===void 0)throw Error(c(407));a=a()}else{if(a=t(),De===null)throw Error(c(349));(ve&124)!==0||Go(n,t,a)}l.memoizedState=a;var s={value:a,getSnapshot:t};return l.queue=s,ld(Xo.bind(null,n,s,e),[e]),n.flags|=2048,_n(9,ki(),Vo.bind(null,n,s,a,t),null),a},useId:function(){var e=mt(),t=De.identifierPrefix;if(Se){var a=ia,n=la;a=(n&~(1<<32-bt(n)-1)).toString(32)+a,t="«"+t+"R"+a,a=_i++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=Nm++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Kr,useFormState:Fo,useActionState:Fo,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=$r.bind(null,se,!0,a),a.dispatch=t,[e,t]},useMemoCache:Hr,useCacheRefresh:function(){return mt().memoizedState=_m.bind(null,se)}},Ed={readContext:ut,use:zi,useCallback:od,useContext:ut,useEffect:id,useImperativeHandle:cd,useInsertionEffect:sd,useLayoutEffect:rd,useMemo:dd,useReducer:qi,useRef:nd,useState:function(){return qi(ua)},useDebugValue:Xr,useDeferredValue:function(e,t){var a=Ze();return fd(a,je.memoizedState,e,t)},useTransition:function(){var e=qi(ua)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Tl(e),t]},useSyncExternalStore:Yo,useId:yd,useHostTransitionStatus:Kr,useFormState:ed,useActionState:ed,useOptimistic:function(e,t){var a=Ze();return Ko(a,je,e,t)},useMemoCache:Hr,useCacheRefresh:vd},qm={readContext:ut,use:zi,useCallback:od,useContext:ut,useEffect:id,useImperativeHandle:cd,useInsertionEffect:sd,useLayoutEffect:rd,useMemo:dd,useReducer:Yr,useRef:nd,useState:function(){return Yr(ua)},useDebugValue:Xr,useDeferredValue:function(e,t){var a=Ze();return je===null?Qr(a,e,t):fd(a,je.memoizedState,e,t)},useTransition:function(){var e=Yr(ua)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Tl(e),t]},useSyncExternalStore:Yo,useId:yd,useHostTransitionStatus:Kr,useFormState:ad,useActionState:ad,useOptimistic:function(e,t){var a=Ze();return je!==null?Ko(a,je,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Hr,useCacheRefresh:vd},zn=null,Ol=0;function Yi(e){var t=Ol;return Ol+=1,zn===null&&(zn=[]),Mo(zn,e,t)}function Ul(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Gi(e,t){throw t.$$typeof===w?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Rd(e){var t=e._init;return t(e._payload)}function wd(e){function t(R,b){if(e){var A=R.deletions;A===null?(R.deletions=[b],R.flags|=16):A.push(b)}}function a(R,b){if(!e)return null;for(;b!==null;)t(R,b),b=b.sibling;return null}function n(R){for(var b=new Map;R!==null;)R.key!==null?b.set(R.key,R):b.set(R.index,R),R=R.sibling;return b}function l(R,b){return R=na(R,b),R.index=0,R.sibling=null,R}function s(R,b,A){return R.index=A,e?(A=R.alternate,A!==null?(A=A.index,A<b?(R.flags|=67108866,b):A):(R.flags|=67108866,b)):(R.flags|=1048576,b)}function o(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function f(R,b,A,z){return b===null||b.tag!==6?(b=mr(A,R.mode,z),b.return=R,b):(b=l(b,A),b.return=R,b)}function m(R,b,A,z){var Q=A.type;return Q===H?M(R,b,A.props.children,z,A.key):b!==null&&(b.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Ue&&Rd(Q)===b.type)?(b=l(b,A.props),Ul(b,A),b.return=R,b):(b=wi(A.type,A.key,A.props,null,R.mode,z),Ul(b,A),b.return=R,b)}function T(R,b,A,z){return b===null||b.tag!==4||b.stateNode.containerInfo!==A.containerInfo||b.stateNode.implementation!==A.implementation?(b=yr(A,R.mode,z),b.return=R,b):(b=l(b,A.children||[]),b.return=R,b)}function M(R,b,A,z,Q){return b===null||b.tag!==7?(b=Ia(A,R.mode,z,Q),b.return=R,b):(b=l(b,A),b.return=R,b)}function q(R,b,A){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=mr(""+b,R.mode,A),b.return=R,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case x:return A=wi(b.type,b.key,b.props,null,R.mode,A),Ul(A,b),A.return=R,A;case U:return b=yr(b,R.mode,A),b.return=R,b;case Ue:var z=b._init;return b=z(b._payload),q(R,b,A)}if(ye(b)||qe(b))return b=Ia(b,R.mode,A,null),b.return=R,b;if(typeof b.then=="function")return q(R,Yi(b),A);if(b.$$typeof===Z)return q(R,Ti(R,b),A);Gi(R,b)}return null}function N(R,b,A,z){var Q=b!==null?b.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return Q!==null?null:f(R,b,""+A,z);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case x:return A.key===Q?m(R,b,A,z):null;case U:return A.key===Q?T(R,b,A,z):null;case Ue:return Q=A._init,A=Q(A._payload),N(R,b,A,z)}if(ye(A)||qe(A))return Q!==null?null:M(R,b,A,z,null);if(typeof A.then=="function")return N(R,b,Yi(A),z);if(A.$$typeof===Z)return N(R,b,Ti(R,A),z);Gi(R,A)}return null}function D(R,b,A,z,Q){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return R=R.get(A)||null,f(b,R,""+z,Q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case x:return R=R.get(z.key===null?A:z.key)||null,m(b,R,z,Q);case U:return R=R.get(z.key===null?A:z.key)||null,T(b,R,z,Q);case Ue:var re=z._init;return z=re(z._payload),D(R,b,A,z,Q)}if(ye(z)||qe(z))return R=R.get(A)||null,M(b,R,z,Q,null);if(typeof z.then=="function")return D(R,b,A,Yi(z),Q);if(z.$$typeof===Z)return D(R,b,A,Ti(b,z),Q);Gi(b,z)}return null}function te(R,b,A,z){for(var Q=null,re=null,J=b,ee=b=0,Fe=null;J!==null&&ee<A.length;ee++){J.index>ee?(Fe=J,J=null):Fe=J.sibling;var be=N(R,J,A[ee],z);if(be===null){J===null&&(J=Fe);break}e&&J&&be.alternate===null&&t(R,J),b=s(be,b,ee),re===null?Q=be:re.sibling=be,re=be,J=Fe}if(ee===A.length)return a(R,J),Se&&Pa(R,ee),Q;if(J===null){for(;ee<A.length;ee++)J=q(R,A[ee],z),J!==null&&(b=s(J,b,ee),re===null?Q=J:re.sibling=J,re=J);return Se&&Pa(R,ee),Q}for(J=n(J);ee<A.length;ee++)Fe=D(J,R,ee,A[ee],z),Fe!==null&&(e&&Fe.alternate!==null&&J.delete(Fe.key===null?ee:Fe.key),b=s(Fe,b,ee),re===null?Q=Fe:re.sibling=Fe,re=Fe);return e&&J.forEach(function(Va){return t(R,Va)}),Se&&Pa(R,ee),Q}function F(R,b,A,z){if(A==null)throw Error(c(151));for(var Q=null,re=null,J=b,ee=b=0,Fe=null,be=A.next();J!==null&&!be.done;ee++,be=A.next()){J.index>ee?(Fe=J,J=null):Fe=J.sibling;var Va=N(R,J,be.value,z);if(Va===null){J===null&&(J=Fe);break}e&&J&&Va.alternate===null&&t(R,J),b=s(Va,b,ee),re===null?Q=Va:re.sibling=Va,re=Va,J=Fe}if(be.done)return a(R,J),Se&&Pa(R,ee),Q;if(J===null){for(;!be.done;ee++,be=A.next())be=q(R,be.value,z),be!==null&&(b=s(be,b,ee),re===null?Q=be:re.sibling=be,re=be);return Se&&Pa(R,ee),Q}for(J=n(J);!be.done;ee++,be=A.next())be=D(J,R,ee,be.value,z),be!==null&&(e&&be.alternate!==null&&J.delete(be.key===null?ee:be.key),b=s(be,b,ee),re===null?Q=be:re.sibling=be,re=be);return e&&J.forEach(function(ky){return t(R,ky)}),Se&&Pa(R,ee),Q}function Ae(R,b,A,z){if(typeof A=="object"&&A!==null&&A.type===H&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case x:e:{for(var Q=A.key;b!==null;){if(b.key===Q){if(Q=A.type,Q===H){if(b.tag===7){a(R,b.sibling),z=l(b,A.props.children),z.return=R,R=z;break e}}else if(b.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Ue&&Rd(Q)===b.type){a(R,b.sibling),z=l(b,A.props),Ul(z,A),z.return=R,R=z;break e}a(R,b);break}else t(R,b);b=b.sibling}A.type===H?(z=Ia(A.props.children,R.mode,z,A.key),z.return=R,R=z):(z=wi(A.type,A.key,A.props,null,R.mode,z),Ul(z,A),z.return=R,R=z)}return o(R);case U:e:{for(Q=A.key;b!==null;){if(b.key===Q)if(b.tag===4&&b.stateNode.containerInfo===A.containerInfo&&b.stateNode.implementation===A.implementation){a(R,b.sibling),z=l(b,A.children||[]),z.return=R,R=z;break e}else{a(R,b);break}else t(R,b);b=b.sibling}z=yr(A,R.mode,z),z.return=R,R=z}return o(R);case Ue:return Q=A._init,A=Q(A._payload),Ae(R,b,A,z)}if(ye(A))return te(R,b,A,z);if(qe(A)){if(Q=qe(A),typeof Q!="function")throw Error(c(150));return A=Q.call(A),F(R,b,A,z)}if(typeof A.then=="function")return Ae(R,b,Yi(A),z);if(A.$$typeof===Z)return Ae(R,b,Ti(R,A),z);Gi(R,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,b!==null&&b.tag===6?(a(R,b.sibling),z=l(b,A),z.return=R,R=z):(a(R,b),z=mr(A,R.mode,z),z.return=R,R=z),o(R)):a(R,b)}return function(R,b,A,z){try{Ol=0;var Q=Ae(R,b,A,z);return zn=null,Q}catch(J){if(J===El||J===Di)throw J;var re=St(29,J,null,R.mode);return re.lanes=z,re.return=R,re}finally{}}}var qn=wd(!0),jd=wd(!1),zt=k(null),Zt=null;function Ta(e){var t=e.alternate;V($e,$e.current&1),V(zt,e),Zt===null&&(t===null||On.current!==null||t.memoizedState!==null)&&(Zt=e)}function Cd(e){if(e.tag===22){if(V($e,$e.current),V(zt,e),Zt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Zt=e)}}else Na()}function Na(){V($e,$e.current),V(zt,zt.current)}function ca(e){L(zt),Zt===e&&(Zt=null),L($e)}var $e=k(0);function Vi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Lu(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Jr(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:C({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ir={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=jt(),l=ja(n);l.payload=t,a!=null&&(l.callback=a),t=Ca(e,l,n),t!==null&&(Ct(t,e,n),wl(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=jt(),l=ja(n);l.tag=1,l.payload=t,a!=null&&(l.callback=a),t=Ca(e,l,n),t!==null&&(Ct(t,e,n),wl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=jt(),n=ja(a);n.tag=2,t!=null&&(n.callback=t),t=Ca(e,n,a),t!==null&&(Ct(t,e,a),wl(t,e,a))}};function Ad(e,t,a,n,l,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,o):t.prototype&&t.prototype.isPureReactComponent?!pl(a,n)||!pl(l,s):!0}function Td(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&Ir.enqueueReplaceState(t,t.state,null)}function sn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=C({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}var Xi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Nd(e){Xi(e)}function Dd(e){console.error(e)}function Od(e){Xi(e)}function Qi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Ud(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Wr(e,t,a){return a=ja(a),a.tag=3,a.payload={element:null},a.callback=function(){Qi(e,t)},a}function Md(e){return e=ja(e),e.tag=3,e}function _d(e,t,a,n){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var s=n.value;e.payload=function(){return l(s)},e.callback=function(){Ud(t,a,n)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Ud(t,a,n),typeof l!="function"&&(za===null?za=new Set([this]):za.add(this));var f=n.stack;this.componentDidCatch(n.value,{componentStack:f!==null?f:""})})}function km(e,t,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&bl(t,a,l,!0),a=zt.current,a!==null){switch(a.tag){case 13:return Zt===null?Su():a.alternate===null&&Ye===0&&(Ye=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===Cr?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Ru(e,n,l)),!1;case 22:return a.flags|=65536,n===Cr?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Ru(e,n,l)),!1}throw Error(c(435,a.tag))}return Ru(e,n,l),Su(),!1}if(Se)return t=zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,n!==br&&(e=Error(c(422),{cause:n}),gl(Ot(e,a)))):(n!==br&&(t=Error(c(423),{cause:n}),gl(Ot(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,n=Ot(n,a),l=Wr(e.stateNode,n,l),Nr(e,l),Ye!==4&&(Ye=2)),!1;var s=Error(c(520),{cause:n});if(s=Ot(s,a),Hl===null?Hl=[s]:Hl.push(s),Ye!==4&&(Ye=2),t===null)return!0;n=Ot(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=Wr(a.stateNode,n,e),Nr(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(za===null||!za.has(s))))return a.flags|=65536,l&=-l,a.lanes|=l,l=Md(l),_d(l,e,a,n),Nr(a,l),!1}a=a.return}while(a!==null);return!1}var zd=Error(c(461)),We=!1;function at(e,t,a,n){t.child=e===null?jd(t,null,a,n):qn(t,e.child,a,n)}function qd(e,t,a,n,l){a=a.render;var s=t.ref;if("ref"in n){var o={};for(var f in n)f!=="ref"&&(o[f]=n[f])}else o=n;return an(t),n=_r(e,t,a,o,s,l),f=zr(),e!==null&&!We?(qr(e,t,l),oa(e,t,l)):(Se&&f&&vr(t),t.flags|=1,at(e,t,n,l),t.child)}function kd(e,t,a,n,l){if(e===null){var s=a.type;return typeof s=="function"&&!pr(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,Ld(e,t,s,n,l)):(e=wi(a.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!iu(e,l)){var o=s.memoizedProps;if(a=a.compare,a=a!==null?a:pl,a(o,n)&&e.ref===t.ref)return oa(e,t,l)}return t.flags|=1,e=na(s,n),e.ref=t.ref,e.return=t,t.child=e}function Ld(e,t,a,n,l){if(e!==null){var s=e.memoizedProps;if(pl(s,n)&&e.ref===t.ref)if(We=!1,t.pendingProps=n=s,iu(e,l))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,oa(e,t,l)}return Pr(e,t,a,n,l)}function Hd(e,t,a){var n=t.pendingProps,l=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden"){if((t.flags&128)!==0){if(n=s!==null?s.baseLanes|a:a,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;t.childLanes=s&~n}else t.childLanes=0,t.child=null;return Bd(e,t,n,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ni(t,s!==null?s.cachePool:null),s!==null?Lo(t,s):Or(),Cd(t);else return t.lanes=t.childLanes=536870912,Bd(e,t,s!==null?s.baseLanes|a:a,a)}else s!==null?(Ni(t,s.cachePool),Lo(t,s),Na(),t.memoizedState=null):(e!==null&&Ni(t,null),Or(),Na());return at(e,t,l,a),t.child}function Bd(e,t,a,n){var l=jr();return l=l===null?null:{parent:Ke._currentValue,pool:l},t.memoizedState={baseLanes:a,cachePool:l},e!==null&&Ni(t,null),Or(),Cd(t),e!==null&&bl(e,t,n,!0),null}function Zi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Pr(e,t,a,n,l){return an(t),a=_r(e,t,a,n,void 0,l),n=zr(),e!==null&&!We?(qr(e,t,l),oa(e,t,l)):(Se&&n&&vr(t),t.flags|=1,at(e,t,a,l),t.child)}function Yd(e,t,a,n,l,s){return an(t),t.updateQueue=null,a=Bo(t,n,a,l),Ho(e),n=zr(),e!==null&&!We?(qr(e,t,s),oa(e,t,s)):(Se&&n&&vr(t),t.flags|=1,at(e,t,a,s),t.child)}function Gd(e,t,a,n,l){if(an(t),t.stateNode===null){var s=Cn,o=a.contextType;typeof o=="object"&&o!==null&&(s=ut(o)),s=new a(n,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Ir,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=n,s.state=t.memoizedState,s.refs={},Ar(t),o=a.contextType,s.context=typeof o=="object"&&o!==null?ut(o):Cn,s.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Jr(t,a,o,n),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(o=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),o!==s.state&&Ir.enqueueReplaceState(s,s.state,null),Cl(t,n,s,l),jl(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){s=t.stateNode;var f=t.memoizedProps,m=sn(a,f);s.props=m;var T=s.context,M=a.contextType;o=Cn,typeof M=="object"&&M!==null&&(o=ut(M));var q=a.getDerivedStateFromProps;M=typeof q=="function"||typeof s.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,M||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f||T!==o)&&Td(t,s,n,o),wa=!1;var N=t.memoizedState;s.state=N,Cl(t,n,s,l),jl(),T=t.memoizedState,f||N!==T||wa?(typeof q=="function"&&(Jr(t,a,q,n),T=t.memoizedState),(m=wa||Ad(t,a,m,n,N,T,o))?(M||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=T),s.props=n,s.state=T,s.context=o,n=m):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Tr(e,t),o=t.memoizedProps,M=sn(a,o),s.props=M,q=t.pendingProps,N=s.context,T=a.contextType,m=Cn,typeof T=="object"&&T!==null&&(m=ut(T)),f=a.getDerivedStateFromProps,(T=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==q||N!==m)&&Td(t,s,n,m),wa=!1,N=t.memoizedState,s.state=N,Cl(t,n,s,l),jl();var D=t.memoizedState;o!==q||N!==D||wa||e!==null&&e.dependencies!==null&&Ai(e.dependencies)?(typeof f=="function"&&(Jr(t,a,f,n),D=t.memoizedState),(M=wa||Ad(t,a,M,n,N,D,m)||e!==null&&e.dependencies!==null&&Ai(e.dependencies))?(T||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,D,m),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,D,m)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=D),s.props=n,s.state=D,s.context=m,n=M):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),n=!1)}return s=n,Zi(e,t),n=(t.flags&128)!==0,s||n?(s=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&n?(t.child=qn(t,e.child,null,l),t.child=qn(t,null,a,l)):at(e,t,a,l),t.memoizedState=s.state,e=t.child):e=oa(e,t,l),e}function Vd(e,t,a,n){return vl(),t.flags|=256,at(e,t,a,n),t.child}var Fr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function eu(e){return{baseLanes:e,cachePool:Do()}}function tu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=qt),e}function Xd(e,t,a){var n=t.pendingProps,l=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),o&&(l=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(l?Ta(t):Na(),Se){var f=Be,m;if(m=f){e:{for(m=f,f=Qt;m.nodeType!==8;){if(!f){f=null;break e}if(m=Xt(m.nextSibling),m===null){f=null;break e}}f=m}f!==null?(t.memoizedState={dehydrated:f,treeContext:Wa!==null?{id:la,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},m=St(18,null,null,0),m.stateNode=f,m.return=t,t.child=m,dt=t,Be=null,m=!0):m=!1}m||en(t)}if(f=t.memoizedState,f!==null&&(f=f.dehydrated,f!==null))return Lu(f)?t.lanes=32:t.lanes=536870912,null;ca(t)}return f=n.children,n=n.fallback,l?(Na(),l=t.mode,f=Ki({mode:"hidden",children:f},l),n=Ia(n,l,a,null),f.return=t,n.return=t,f.sibling=n,t.child=f,l=t.child,l.memoizedState=eu(a),l.childLanes=tu(e,o,a),t.memoizedState=Fr,n):(Ta(t),au(t,f))}if(m=e.memoizedState,m!==null&&(f=m.dehydrated,f!==null)){if(s)t.flags&256?(Ta(t),t.flags&=-257,t=nu(e,t,a)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),l=n.fallback,f=t.mode,n=Ki({mode:"visible",children:n.children},f),l=Ia(l,f,a,null),l.flags|=2,n.return=t,l.return=t,n.sibling=l,t.child=n,qn(t,e.child,null,a),n=t.child,n.memoizedState=eu(a),n.childLanes=tu(e,o,a),t.memoizedState=Fr,t=l);else if(Ta(t),Lu(f)){if(o=f.nextSibling&&f.nextSibling.dataset,o)var T=o.dgst;o=T,n=Error(c(419)),n.stack="",n.digest=o,gl({value:n,source:null,stack:null}),t=nu(e,t,a)}else if(We||bl(e,t,a,!1),o=(a&e.childLanes)!==0,We||o){if(o=De,o!==null&&(n=a&-a,n=(n&42)!==0?1:Hs(n),n=(n&(o.suspendedLanes|a))!==0?0:n,n!==0&&n!==m.retryLane))throw m.retryLane=n,jn(e,n),Ct(o,e,n),zd;f.data==="$?"||Su(),t=nu(e,t,a)}else f.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Be=Xt(f.nextSibling),dt=t,Se=!0,Fa=null,Qt=!1,e!==null&&(Mt[_t++]=la,Mt[_t++]=ia,Mt[_t++]=Wa,la=e.id,ia=e.overflow,Wa=t),t=au(t,n.children),t.flags|=4096);return t}return l?(Na(),l=n.fallback,f=t.mode,m=e.child,T=m.sibling,n=na(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,T!==null?l=na(T,l):(l=Ia(l,f,a,null),l.flags|=2),l.return=t,n.return=t,n.sibling=l,t.child=n,n=l,l=t.child,f=e.child.memoizedState,f===null?f=eu(a):(m=f.cachePool,m!==null?(T=Ke._currentValue,m=m.parent!==T?{parent:T,pool:T}:m):m=Do(),f={baseLanes:f.baseLanes|a,cachePool:m}),l.memoizedState=f,l.childLanes=tu(e,o,a),t.memoizedState=Fr,n):(Ta(t),a=e.child,e=a.sibling,a=na(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function au(e,t){return t=Ki({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ki(e,t){return e=St(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function nu(e,t,a){return qn(t,e.child,null,a),e=au(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Sr(e.return,t,a)}function lu(e,t,a,n,l){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=a,s.tailMode=l)}function Zd(e,t,a){var n=t.pendingProps,l=n.revealOrder,s=n.tail;if(at(e,t,n.children,a),n=$e.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qd(e,a,t);else if(e.tag===19)Qd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}switch(V($e,n),l){case"forwards":for(a=t.child,l=null;a!==null;)e=a.alternate,e!==null&&Vi(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),lu(t,!1,l,a,s);break;case"backwards":for(a=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Vi(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}lu(t,!0,a,null,s);break;case"together":lu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),_a|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(bl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,a=na(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=na(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function iu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ai(e)))}function Lm(e,t,a){switch(t.tag){case 3:we(t,t.stateNode.containerInfo),Ra(t,Ke,e.memoizedState.cache),vl();break;case 27:case 5:ne(t);break;case 4:we(t,t.stateNode.containerInfo);break;case 10:Ra(t,t.type,t.memoizedProps.value);break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Ta(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Xd(e,t,a):(Ta(t),e=oa(e,t,a),e!==null?e.sibling:null);Ta(t);break;case 19:var l=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(bl(e,t,a,!1),n=(a&t.childLanes)!==0),l){if(n)return Zd(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),V($e,$e.current),n)break;return null;case 22:case 23:return t.lanes=0,Hd(e,t,a);case 24:Ra(t,Ke,e.memoizedState.cache)}return oa(e,t,a)}function Kd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!iu(e,a)&&(t.flags&128)===0)return We=!1,Lm(e,t,a);We=(e.flags&131072)!==0}else We=!1,Se&&(t.flags&1048576)!==0&&Ro(t,Ci,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var n=t.elementType,l=n._init;if(n=l(n._payload),t.type=n,typeof n=="function")pr(n)?(e=sn(n,e),t.tag=1,t=Gd(null,t,n,e,a)):(t.tag=0,t=Pr(null,t,n,e,a));else{if(n!=null){if(l=n.$$typeof,l===xe){t.tag=11,t=qd(null,t,n,e,a);break e}else if(l===de){t.tag=14,t=kd(null,t,n,e,a);break e}}throw t=pe(n)||n,Error(c(306,t,""))}}return t;case 0:return Pr(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,l=sn(n,t.pendingProps),Gd(e,t,n,l,a);case 3:e:{if(we(t,t.stateNode.containerInfo),e===null)throw Error(c(387));n=t.pendingProps;var s=t.memoizedState;l=s.element,Tr(e,t),Cl(t,n,null,a);var o=t.memoizedState;if(n=o.cache,Ra(t,Ke,n),n!==s.cache&&Er(t,[Ke],a,!0),jl(),n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Vd(e,t,n,a);break e}else if(n!==l){l=Ot(Error(c(424)),t),gl(l),t=Vd(e,t,n,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Be=Xt(e.firstChild),dt=t,Se=!0,Fa=null,Qt=!0,a=jd(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(vl(),n===l){t=oa(e,t,a);break e}at(e,t,n,a)}t=t.child}return t;case 26:return Zi(e,t),e===null?(a=Pf(t.type,null,t.pendingProps,null))?t.memoizedState=a:Se||(a=t.type,e=t.pendingProps,n=rs(P.current).createElement(a),n[rt]=t,n[ht]=e,lt(n,a,e),Ie(n),t.stateNode=n):t.memoizedState=Pf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ne(t),e===null&&Se&&(n=t.stateNode=Jf(t.type,t.pendingProps,P.current),dt=t,Qt=!0,l=Be,La(t.type)?(Hu=l,Be=Xt(n.firstChild)):Be=l),at(e,t,t.pendingProps.children,a),Zi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((l=n=Be)&&(n=fy(n,t.type,t.pendingProps,Qt),n!==null?(t.stateNode=n,dt=t,Be=Xt(n.firstChild),Qt=!1,l=!0):l=!1),l||en(t)),ne(t),l=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,n=s.children,zu(l,s)?n=null:o!==null&&zu(l,o)&&(t.flags|=32),t.memoizedState!==null&&(l=_r(e,t,Dm,null,null,a),$l._currentValue=l),Zi(e,t),at(e,t,n,a),t.child;case 6:return e===null&&Se&&((e=a=Be)&&(a=hy(a,t.pendingProps,Qt),a!==null?(t.stateNode=a,dt=t,Be=null,e=!0):e=!1),e||en(t)),null;case 13:return Xd(e,t,a);case 4:return we(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=qn(t,null,n,a):at(e,t,n,a),t.child;case 11:return qd(e,t,t.type,t.pendingProps,a);case 7:return at(e,t,t.pendingProps,a),t.child;case 8:return at(e,t,t.pendingProps.children,a),t.child;case 12:return at(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Ra(t,t.type,n.value),at(e,t,n.children,a),t.child;case 9:return l=t.type._context,n=t.pendingProps.children,an(t),l=ut(l),n=n(l),t.flags|=1,at(e,t,n,a),t.child;case 14:return kd(e,t,t.type,t.pendingProps,a);case 15:return Ld(e,t,t.type,t.pendingProps,a);case 19:return Zd(e,t,a);case 31:return n=t.pendingProps,a=t.mode,n={mode:n.mode,children:n.children},e===null?(a=Ki(n,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=na(e.child,n),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return Hd(e,t,a);case 24:return an(t),n=ut(Ke),e===null?(l=jr(),l===null&&(l=De,s=Rr(),l.pooledCache=s,s.refCount++,s!==null&&(l.pooledCacheLanes|=a),l=s),t.memoizedState={parent:n,cache:l},Ar(t),Ra(t,Ke,l)):((e.lanes&a)!==0&&(Tr(e,t),Cl(t,null,null,a),jl()),l=e.memoizedState,s=t.memoizedState,l.parent!==n?(l={parent:n,cache:n},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Ra(t,Ke,n)):(n=s.cache,Ra(t,Ke,n),n!==l.cache&&Er(t,[Ke],a,!0))),at(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function da(e){e.flags|=4}function $d(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!nh(t)){if(t=zt.current,t!==null&&((ve&4194048)===ve?Zt!==null:(ve&62914560)!==ve&&(ve&536870912)===0||t!==Zt))throw Rl=Cr,Oo;e.flags|=8192}}function $i(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jc():536870912,e.lanes|=t,Bn|=t)}function Ml(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags&65011712,n|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags,n|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Hm(e,t,a){var n=t.pendingProps;switch(gr(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ra(Ke),ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(yl(t)?da(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Co())),Le(t),null;case 26:return a=t.memoizedState,e===null?(da(t),a!==null?(Le(t),$d(t,a)):(Le(t),t.flags&=-16777217)):a?a!==e.memoizedState?(da(t),Le(t),$d(t,a)):(Le(t),t.flags&=-16777217):(e.memoizedProps!==n&&da(t),Le(t),t.flags&=-16777217),null;case 27:Me(t),a=P.current;var l=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==n&&da(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return Le(t),null}e=$.current,yl(t)?wo(t):(e=Jf(l,n,a),t.stateNode=e,da(t))}return Le(t),null;case 5:if(Me(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&da(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return Le(t),null}if(e=$.current,yl(t))wo(t);else{switch(l=rs(P.current),e){case 1:e=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof n.is=="string"?l.createElement("select",{is:n.is}):l.createElement("select"),n.multiple?e.multiple=!0:n.size&&(e.size=n.size);break;default:e=typeof n.is=="string"?l.createElement(a,{is:n.is}):l.createElement(a)}}e[rt]=t,e[ht]=n;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=e;e:switch(lt(e,a,n),a){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&da(t)}}return Le(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&da(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(c(166));if(e=P.current,yl(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,l=dt,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}e[rt]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Gf(e.nodeValue,a)),e||en(t)}else e=rs(e).createTextNode(n),e[rt]=t,t.stateNode=e}return Le(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=yl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!l)throw Error(c(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(c(317));l[rt]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),l=!1}else l=Co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(ca(t),t):(ca(t),null)}if(ca(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=n!==null,e=e!==null&&e.memoizedState!==null,a){n=t.child,l=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(l=n.alternate.memoizedState.cachePool.pool);var s=null;n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==l&&(n.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),$i(t,t.updateQueue),Le(t),null;case 4:return ie(),e===null&&Du(t.stateNode.containerInfo),Le(t),null;case 10:return ra(t.type),Le(t),null;case 19:if(L($e),l=t.memoizedState,l===null)return Le(t),null;if(n=(t.flags&128)!==0,s=l.rendering,s===null)if(n)Ml(l,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Vi(e),s!==null){for(t.flags|=128,Ml(l,!1),e=s.updateQueue,t.updateQueue=e,$i(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Eo(a,e),a=a.sibling;return V($e,$e.current&1|2),t.child}e=e.sibling}l.tail!==null&&tt()>Wi&&(t.flags|=128,n=!0,Ml(l,!1),t.lanes=4194304)}else{if(!n)if(e=Vi(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,$i(t,e),Ml(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Se)return Le(t),null}else 2*tt()-l.renderingStartTime>Wi&&a!==536870912&&(t.flags|=128,n=!0,Ml(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=tt(),t.sibling=null,e=$e.current,V($e,n?e&1|2:e&1),t):(Le(t),null);case 22:case 23:return ca(t),Ur(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),a=t.updateQueue,a!==null&&$i(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&L(nn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ra(Ke),Le(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Bm(e,t){switch(gr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(Ke),ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Me(t),null;case 13:if(ca(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L($e),null;case 4:return ie(),null;case 10:return ra(t.type),null;case 22:case 23:return ca(t),Ur(),e!==null&&L(nn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(Ke),null;case 25:return null;default:return null}}function Jd(e,t){switch(gr(t),t.tag){case 3:ra(Ke),ie();break;case 26:case 27:case 5:Me(t);break;case 4:ie();break;case 13:ca(t);break;case 19:L($e);break;case 10:ra(t.type);break;case 22:case 23:ca(t),Ur(),e!==null&&L(nn);break;case 24:ra(Ke)}}function _l(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var l=n.next;a=l;do{if((a.tag&e)===e){n=void 0;var s=a.create,o=a.inst;n=s(),o.destroy=n}a=a.next}while(a!==l)}}catch(f){Te(t,t.return,f)}}function Da(e,t,a){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&e)===e){var o=n.inst,f=o.destroy;if(f!==void 0){o.destroy=void 0,l=t;var m=a,T=f;try{T()}catch(M){Te(l,m,M)}}}n=n.next}while(n!==s)}}catch(M){Te(t,t.return,M)}}function Id(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ko(t,a)}catch(n){Te(e,e.return,n)}}}function Wd(e,t,a){a.props=sn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Te(e,t,n)}}function zl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(l){Te(e,t,l)}}function Kt(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(l){Te(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){Te(e,t,l)}else a.current=null}function Pd(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(l){Te(e,e.return,l)}}function su(e,t,a){try{var n=e.stateNode;ry(n,e.type,a,t),n[ht]=t}catch(l){Te(e,e.return,l)}}function Fd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&La(e.type)||e.tag===4}function ru(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&La(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uu(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ss));else if(n!==4&&(n===27&&La(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(uu(e,t,a),e=e.sibling;e!==null;)uu(e,t,a),e=e.sibling}function Ji(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&La(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ji(e,t,a),e=e.sibling;e!==null;)Ji(e,t,a),e=e.sibling}function ef(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);lt(t,n,a),t[rt]=e,t[ht]=a}catch(s){Te(e,e.return,s)}}var fa=!1,Ve=!1,cu=!1,tf=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function Ym(e,t){if(e=e.containerInfo,Mu=hs,e=fo(e),rr(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var l=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var o=0,f=-1,m=-1,T=0,M=0,q=e,N=null;t:for(;;){for(var D;q!==a||l!==0&&q.nodeType!==3||(f=o+l),q!==s||n!==0&&q.nodeType!==3||(m=o+n),q.nodeType===3&&(o+=q.nodeValue.length),(D=q.firstChild)!==null;)N=q,q=D;for(;;){if(q===e)break t;if(N===a&&++T===l&&(f=o),N===s&&++M===n&&(m=o),(D=q.nextSibling)!==null)break;q=N,N=q.parentNode}q=D}a=f===-1||m===-1?null:{start:f,end:m}}else a=null}a=a||{start:0,end:0}}else a=null;for(_u={focusedElem:e,selectionRange:a},hs=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){switch(t=Pe,s=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,l=s.memoizedProps,s=s.memoizedState,n=a.stateNode;try{var te=sn(a.type,l,a.elementType===a.type);e=n.getSnapshotBeforeUpdate(te,s),n.__reactInternalSnapshotBeforeUpdate=e}catch(F){Te(a,a.return,F)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)ku(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ku(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}}function af(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Oa(e,a),n&4&&_l(5,a);break;case 1:if(Oa(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){Te(a,a.return,o)}else{var l=sn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Te(a,a.return,o)}}n&64&&Id(a),n&512&&zl(a,a.return);break;case 3:if(Oa(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{ko(e,t)}catch(o){Te(a,a.return,o)}}break;case 27:t===null&&n&4&&ef(a);case 26:case 5:Oa(e,a),t===null&&n&4&&Pd(a),n&512&&zl(a,a.return);break;case 12:Oa(e,a);break;case 13:Oa(e,a),n&4&&sf(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Im.bind(null,a),py(e,a))));break;case 22:if(n=a.memoizedState!==null||fa,!n){t=t!==null&&t.memoizedState!==null||Ve,l=fa;var s=Ve;fa=n,(Ve=t)&&!s?Ua(e,a,(a.subtreeFlags&8772)!==0):Oa(e,a),fa=l,Ve=s}break;case 30:break;default:Oa(e,a)}}function nf(e){var t=e.alternate;t!==null&&(e.alternate=null,nf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Gs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var _e=null,yt=!1;function ha(e,t,a){for(a=a.child;a!==null;)lf(e,t,a),a=a.sibling}function lf(e,t,a){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(al,a)}catch{}switch(a.tag){case 26:Ve||Kt(a,t),ha(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ve||Kt(a,t);var n=_e,l=yt;La(a.type)&&(_e=a.stateNode,yt=!1),ha(e,t,a),Xl(a.stateNode),_e=n,yt=l;break;case 5:Ve||Kt(a,t);case 6:if(n=_e,l=yt,_e=null,ha(e,t,a),_e=n,yt=l,_e!==null)if(yt)try{(_e.nodeType===9?_e.body:_e.nodeName==="HTML"?_e.ownerDocument.body:_e).removeChild(a.stateNode)}catch(s){Te(a,t,s)}else try{_e.removeChild(a.stateNode)}catch(s){Te(a,t,s)}break;case 18:_e!==null&&(yt?(e=_e,Kf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Pl(e)):Kf(_e,a.stateNode));break;case 4:n=_e,l=yt,_e=a.stateNode.containerInfo,yt=!0,ha(e,t,a),_e=n,yt=l;break;case 0:case 11:case 14:case 15:Ve||Da(2,a,t),Ve||Da(4,a,t),ha(e,t,a);break;case 1:Ve||(Kt(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Wd(a,t,n)),ha(e,t,a);break;case 21:ha(e,t,a);break;case 22:Ve=(n=Ve)||a.memoizedState!==null,ha(e,t,a),Ve=n;break;default:ha(e,t,a)}}function sf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pl(e)}catch(a){Te(t,t.return,a)}}function Gm(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tf),t;default:throw Error(c(435,e.tag))}}function ou(e,t){var a=Gm(e);t.forEach(function(n){var l=Wm.bind(null,e,n);a.has(n)||(a.add(n),n.then(l,l))})}function Et(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var l=a[n],s=e,o=t,f=o;e:for(;f!==null;){switch(f.tag){case 27:if(La(f.type)){_e=f.stateNode,yt=!1;break e}break;case 5:_e=f.stateNode,yt=!1;break e;case 3:case 4:_e=f.stateNode.containerInfo,yt=!0;break e}f=f.return}if(_e===null)throw Error(c(160));lf(s,o,l),_e=null,yt=!1,s=l.alternate,s!==null&&(s.return=null),l.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)rf(t,e),t=t.sibling}var Vt=null;function rf(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(t,e),Rt(e),n&4&&(Da(3,e,e.return),_l(3,e),Da(5,e,e.return));break;case 1:Et(t,e),Rt(e),n&512&&(Ve||a===null||Kt(a,a.return)),n&64&&fa&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var l=Vt;if(Et(t,e),Rt(e),n&512&&(Ve||a===null||Kt(a,a.return)),n&4){var s=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,l=l.ownerDocument||l;t:switch(n){case"title":s=l.getElementsByTagName("title")[0],(!s||s[il]||s[rt]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=l.createElement(n),l.head.insertBefore(s,l.querySelector("head > title"))),lt(s,n,a),s[rt]=e,Ie(s),n=s;break e;case"link":var o=th("link","href",l).get(n+(a.href||""));if(o){for(var f=0;f<o.length;f++)if(s=o[f],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(f,1);break t}}s=l.createElement(n),lt(s,n,a),l.head.appendChild(s);break;case"meta":if(o=th("meta","content",l).get(n+(a.content||""))){for(f=0;f<o.length;f++)if(s=o[f],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(f,1);break t}}s=l.createElement(n),lt(s,n,a),l.head.appendChild(s);break;default:throw Error(c(468,n))}s[rt]=e,Ie(s),n=s}e.stateNode=n}else ah(l,e.type,e.stateNode);else e.stateNode=eh(l,n,e.memoizedProps);else s!==n?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,n===null?ah(l,e.type,e.stateNode):eh(l,n,e.memoizedProps)):n===null&&e.stateNode!==null&&su(e,e.memoizedProps,a.memoizedProps)}break;case 27:Et(t,e),Rt(e),n&512&&(Ve||a===null||Kt(a,a.return)),a!==null&&n&4&&su(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Et(t,e),Rt(e),n&512&&(Ve||a===null||Kt(a,a.return)),e.flags&32){l=e.stateNode;try{gn(l,"")}catch(D){Te(e,e.return,D)}}n&4&&e.stateNode!=null&&(l=e.memoizedProps,su(e,l,a!==null?a.memoizedProps:l)),n&1024&&(cu=!0);break;case 6:if(Et(t,e),Rt(e),n&4){if(e.stateNode===null)throw Error(c(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(D){Te(e,e.return,D)}}break;case 3:if(os=null,l=Vt,Vt=us(t.containerInfo),Et(t,e),Vt=l,Rt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Pl(t.containerInfo)}catch(D){Te(e,e.return,D)}cu&&(cu=!1,uf(e));break;case 4:n=Vt,Vt=us(e.stateNode.containerInfo),Et(t,e),Rt(e),Vt=n;break;case 12:Et(t,e),Rt(e);break;case 13:Et(t,e),Rt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(yu=tt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ou(e,n)));break;case 22:l=e.memoizedState!==null;var m=a!==null&&a.memoizedState!==null,T=fa,M=Ve;if(fa=T||l,Ve=M||m,Et(t,e),Ve=M,fa=T,Rt(e),n&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(a===null||m||fa||Ve||rn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){m=a=t;try{if(s=m.stateNode,l)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{f=m.stateNode;var q=m.memoizedProps.style,N=q!=null&&q.hasOwnProperty("display")?q.display:null;f.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(D){Te(m,m.return,D)}}}else if(t.tag===6){if(a===null){m=t;try{m.stateNode.nodeValue=l?"":m.memoizedProps}catch(D){Te(m,m.return,D)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,ou(e,a))));break;case 19:Et(t,e),Rt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ou(e,n)));break;case 30:break;case 21:break;default:Et(t,e),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Fd(n)){a=n;break}n=n.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var l=a.stateNode,s=ru(e);Ji(e,s,l);break;case 5:var o=a.stateNode;a.flags&32&&(gn(o,""),a.flags&=-33);var f=ru(e);Ji(e,f,o);break;case 3:case 4:var m=a.stateNode.containerInfo,T=ru(e);uu(e,T,m);break;default:throw Error(c(161))}}catch(M){Te(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function uf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;uf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Oa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)af(e,t.alternate,t),t=t.sibling}function rn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Da(4,t,t.return),rn(t);break;case 1:Kt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Wd(t,t.return,a),rn(t);break;case 27:Xl(t.stateNode);case 26:case 5:Kt(t,t.return),rn(t);break;case 22:t.memoizedState===null&&rn(t);break;case 30:rn(t);break;default:rn(t)}e=e.sibling}}function Ua(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,l=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:Ua(l,s,a),_l(4,s);break;case 1:if(Ua(l,s,a),n=s,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(T){Te(n,n.return,T)}if(n=s,l=n.updateQueue,l!==null){var f=n.stateNode;try{var m=l.shared.hiddenCallbacks;if(m!==null)for(l.shared.hiddenCallbacks=null,l=0;l<m.length;l++)qo(m[l],f)}catch(T){Te(n,n.return,T)}}a&&o&64&&Id(s),zl(s,s.return);break;case 27:ef(s);case 26:case 5:Ua(l,s,a),a&&n===null&&o&4&&Pd(s),zl(s,s.return);break;case 12:Ua(l,s,a);break;case 13:Ua(l,s,a),a&&o&4&&sf(l,s);break;case 22:s.memoizedState===null&&Ua(l,s,a),zl(s,s.return);break;case 30:break;default:Ua(l,s,a)}t=t.sibling}}function du(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&xl(a))}function fu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xl(e))}function $t(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cf(e,t,a,n),t=t.sibling}function cf(e,t,a,n){var l=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,a,n),l&2048&&_l(9,t);break;case 1:$t(e,t,a,n);break;case 3:$t(e,t,a,n),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xl(e)));break;case 12:if(l&2048){$t(e,t,a,n),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,f=s.onPostCommit;typeof f=="function"&&f(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){Te(t,t.return,m)}}else $t(e,t,a,n);break;case 13:$t(e,t,a,n);break;case 23:break;case 22:s=t.stateNode,o=t.alternate,t.memoizedState!==null?s._visibility&2?$t(e,t,a,n):ql(e,t):s._visibility&2?$t(e,t,a,n):(s._visibility|=2,kn(e,t,a,n,(t.subtreeFlags&10256)!==0)),l&2048&&du(o,t);break;case 24:$t(e,t,a,n),l&2048&&fu(t.alternate,t);break;default:$t(e,t,a,n)}}function kn(e,t,a,n,l){for(l=l&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var s=e,o=t,f=a,m=n,T=o.flags;switch(o.tag){case 0:case 11:case 15:kn(s,o,f,m,l),_l(8,o);break;case 23:break;case 22:var M=o.stateNode;o.memoizedState!==null?M._visibility&2?kn(s,o,f,m,l):ql(s,o):(M._visibility|=2,kn(s,o,f,m,l)),l&&T&2048&&du(o.alternate,o);break;case 24:kn(s,o,f,m,l),l&&T&2048&&fu(o.alternate,o);break;default:kn(s,o,f,m,l)}t=t.sibling}}function ql(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,l=n.flags;switch(n.tag){case 22:ql(a,n),l&2048&&du(n.alternate,n);break;case 24:ql(a,n),l&2048&&fu(n.alternate,n);break;default:ql(a,n)}t=t.sibling}}var kl=8192;function Ln(e){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)of(e),e=e.sibling}function of(e){switch(e.tag){case 26:Ln(e),e.flags&kl&&e.memoizedState!==null&&Ay(Vt,e.memoizedState,e.memoizedProps);break;case 5:Ln(e);break;case 3:case 4:var t=Vt;Vt=us(e.stateNode.containerInfo),Ln(e),Vt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=kl,kl=16777216,Ln(e),kl=t):Ln(e));break;default:Ln(e)}}function df(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ll(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Pe=n,hf(n,e)}df(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ff(e),e=e.sibling}function ff(e){switch(e.tag){case 0:case 11:case 15:Ll(e),e.flags&2048&&Da(9,e,e.return);break;case 3:Ll(e);break;case 12:Ll(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ii(e)):Ll(e);break;default:Ll(e)}}function Ii(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Pe=n,hf(n,e)}df(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Da(8,t,t.return),Ii(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ii(t));break;default:Ii(t)}e=e.sibling}}function hf(e,t){for(;Pe!==null;){var a=Pe;switch(a.tag){case 0:case 11:case 15:Da(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:xl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Pe=n;else e:for(a=e;Pe!==null;){n=Pe;var l=n.sibling,s=n.return;if(nf(n),n===a){Pe=null;break e}if(l!==null){l.return=s,Pe=l;break e}Pe=s}}}var Vm={getCacheForType:function(e){var t=ut(Ke),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},Xm=typeof WeakMap=="function"?WeakMap:Map,Ee=0,De=null,ce=null,ve=0,Re=0,wt=null,Ma=!1,Hn=!1,hu=!1,pa=0,Ye=0,_a=0,un=0,pu=0,qt=0,Bn=0,Hl=null,vt=null,mu=!1,yu=0,Wi=1/0,Pi=null,za=null,nt=0,qa=null,Yn=null,Gn=0,vu=0,gu=null,pf=null,Bl=0,bu=null;function jt(){if((Ee&2)!==0&&ve!==0)return ve&-ve;if(O.T!==null){var e=Nn;return e!==0?e:Cu()}return Tc()}function mf(){qt===0&&(qt=(ve&536870912)===0||Se?wc():536870912);var e=zt.current;return e!==null&&(e.flags|=32),qt}function Ct(e,t,a){(e===De&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(Vn(e,0),ka(e,ve,qt,!1)),ll(e,a),((Ee&2)===0||e!==De)&&(e===De&&((Ee&2)===0&&(un|=a),Ye===4&&ka(e,ve,qt,!1)),Jt(e))}function yf(e,t,a){if((Ee&6)!==0)throw Error(c(327));var n=!a&&(t&124)===0&&(t&e.expiredLanes)===0||nl(e,t),l=n?Km(e,t):Eu(e,t,!0),s=n;do{if(l===0){Hn&&!n&&ka(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!Qm(a)){l=Eu(e,t,!1),s=!1;continue}if(l===2){if(s=t,e.errorRecoveryDisabledLanes&s)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var f=e;l=Hl;var m=f.current.memoizedState.isDehydrated;if(m&&(Vn(f,o).flags|=256),o=Eu(f,o,!1),o!==2){if(hu&&!m){f.errorRecoveryDisabledLanes|=s,un|=s,l=4;break e}s=vt,vt=l,s!==null&&(vt===null?vt=s:vt.push.apply(vt,s))}l=o}if(s=!1,l!==2)continue}}if(l===1){Vn(e,0),ka(e,t,0,!0);break}e:{switch(n=e,s=l,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:ka(n,t,qt,!Ma);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(l=yu+300-tt(),10<l)){if(ka(n,t,qt,!Ma),ci(n,0,!0)!==0)break e;n.timeoutHandle=Qf(vf.bind(null,n,a,vt,Pi,mu,t,qt,un,Bn,Ma,s,2,-0,0),l);break e}vf(n,a,vt,Pi,mu,t,qt,un,Bn,Ma,s,0,-0,0)}}break}while(!0);Jt(e)}function vf(e,t,a,n,l,s,o,f,m,T,M,q,N,D){if(e.timeoutHandle=-1,q=t.subtreeFlags,(q&8192||(q&16785408)===16785408)&&(Kl={stylesheets:null,count:0,unsuspend:Cy},of(t),q=Ty(),q!==null)){e.cancelPendingCommit=q(wf.bind(null,e,t,s,a,n,l,o,f,m,M,1,N,D)),ka(e,s,o,!T);return}wf(e,t,s,a,n,l,o,f,m)}function Qm(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var l=a[n],s=l.getSnapshot;l=l.value;try{if(!xt(s(),l))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ka(e,t,a,n){t&=~pu,t&=~un,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var l=t;0<l;){var s=31-bt(l),o=1<<s;n[s]=-1,l&=~o}a!==0&&Cc(e,a,t)}function Fi(){return(Ee&6)===0?(Yl(0),!1):!0}function xu(){if(ce!==null){if(Re===0)var e=ce.return;else e=ce,sa=tn=null,kr(e),zn=null,Ol=0,e=ce;for(;e!==null;)Jd(e.alternate,e),e=e.return;ce=null}}function Vn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,cy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xu(),De=e,ce=a=na(e.current,null),ve=t,Re=0,wt=null,Ma=!1,Hn=nl(e,t),hu=!1,Bn=qt=pu=un=_a=Ye=0,vt=Hl=null,mu=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-bt(n),s=1<<l;t|=e[l],n&=~s}return pa=t,Si(),a}function gf(e,t){se=null,O.H=Bi,t===El||t===Di?(t=_o(),Re=3):t===Oo?(t=_o(),Re=4):Re=t===zd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wt=t,ce===null&&(Ye=1,Qi(e,Ot(t,e.current)))}function bf(){var e=O.H;return O.H=Bi,e===null?Bi:e}function xf(){var e=O.A;return O.A=Vm,e}function Su(){Ye=4,Ma||(ve&4194048)!==ve&&zt.current!==null||(Hn=!0),(_a&134217727)===0&&(un&134217727)===0||De===null||ka(De,ve,qt,!1)}function Eu(e,t,a){var n=Ee;Ee|=2;var l=bf(),s=xf();(De!==e||ve!==t)&&(Pi=null,Vn(e,t)),t=!1;var o=Ye;e:do try{if(Re!==0&&ce!==null){var f=ce,m=wt;switch(Re){case 8:xu(),o=6;break e;case 3:case 2:case 9:case 6:zt.current===null&&(t=!0);var T=Re;if(Re=0,wt=null,Xn(e,f,m,T),a&&Hn){o=0;break e}break;default:T=Re,Re=0,wt=null,Xn(e,f,m,T)}}Zm(),o=Ye;break}catch(M){gf(e,M)}while(!0);return t&&e.shellSuspendCounter++,sa=tn=null,Ee=n,O.H=l,O.A=s,ce===null&&(De=null,ve=0,Si()),o}function Zm(){for(;ce!==null;)Sf(ce)}function Km(e,t){var a=Ee;Ee|=2;var n=bf(),l=xf();De!==e||ve!==t?(Pi=null,Wi=tt()+500,Vn(e,t)):Hn=nl(e,t);e:do try{if(Re!==0&&ce!==null){t=ce;var s=wt;t:switch(Re){case 1:Re=0,wt=null,Xn(e,t,s,1);break;case 2:case 9:if(Uo(s)){Re=0,wt=null,Ef(t);break}t=function(){Re!==2&&Re!==9||De!==e||(Re=7),Jt(e)},s.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:Uo(s)?(Re=0,wt=null,Ef(t)):(Re=0,wt=null,Xn(e,t,s,7));break;case 5:var o=null;switch(ce.tag){case 26:o=ce.memoizedState;case 5:case 27:var f=ce;if(!o||nh(o)){Re=0,wt=null;var m=f.sibling;if(m!==null)ce=m;else{var T=f.return;T!==null?(ce=T,es(T)):ce=null}break t}}Re=0,wt=null,Xn(e,t,s,5);break;case 6:Re=0,wt=null,Xn(e,t,s,6);break;case 8:xu(),Ye=6;break e;default:throw Error(c(462))}}$m();break}catch(M){gf(e,M)}while(!0);return sa=tn=null,O.H=n,O.A=l,Ee=a,ce!==null?0:(De=null,ve=0,Si(),Ye)}function $m(){for(;ce!==null&&!Ft();)Sf(ce)}function Sf(e){var t=Kd(e.alternate,e,pa);e.memoizedProps=e.pendingProps,t===null?es(e):ce=t}function Ef(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Yd(a,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=Yd(a,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:kr(t);default:Jd(a,t),t=ce=Eo(t,pa),t=Kd(a,t,pa)}e.memoizedProps=e.pendingProps,t===null?es(e):ce=t}function Xn(e,t,a,n){sa=tn=null,kr(t),zn=null,Ol=0;var l=t.return;try{if(km(e,l,t,a,ve)){Ye=1,Qi(e,Ot(a,e.current)),ce=null;return}}catch(s){if(l!==null)throw ce=l,s;Ye=1,Qi(e,Ot(a,e.current)),ce=null;return}t.flags&32768?(Se||n===1?e=!0:Hn||(ve&536870912)!==0?e=!1:(Ma=e=!0,(n===2||n===9||n===3||n===6)&&(n=zt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Rf(t,e)):es(t)}function es(e){var t=e;do{if((t.flags&32768)!==0){Rf(t,Ma);return}e=t.return;var a=Hm(t.alternate,t,pa);if(a!==null){ce=a;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);Ye===0&&(Ye=5)}function Rf(e,t){do{var a=Bm(e.alternate,e);if(a!==null){a.flags&=32767,ce=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=a}while(e!==null);Ye=6,ce=null}function wf(e,t,a,n,l,s,o,f,m){e.cancelPendingCommit=null;do ts();while(nt!==0);if((Ee&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=fr,Cp(e,a,s,o,f,m),e===De&&(ce=De=null,ve=0),Yn=t,qa=e,Gn=a,vu=s,gu=l,pf=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Pm(si,function(){return Nf(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=O.T,O.T=null,l=G.p,G.p=2,o=Ee,Ee|=4;try{Ym(e,t,a)}finally{Ee=o,G.p=l,O.T=n}}nt=1,jf(),Cf(),Af()}}function jf(){if(nt===1){nt=0;var e=qa,t=Yn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var n=G.p;G.p=2;var l=Ee;Ee|=4;try{rf(t,e);var s=_u,o=fo(e.containerInfo),f=s.focusedElem,m=s.selectionRange;if(o!==f&&f&&f.ownerDocument&&oo(f.ownerDocument.documentElement,f)){if(m!==null&&rr(f)){var T=m.start,M=m.end;if(M===void 0&&(M=T),"selectionStart"in f)f.selectionStart=T,f.selectionEnd=Math.min(M,f.value.length);else{var q=f.ownerDocument||document,N=q&&q.defaultView||window;if(N.getSelection){var D=N.getSelection(),te=f.textContent.length,F=Math.min(m.start,te),Ae=m.end===void 0?F:Math.min(m.end,te);!D.extend&&F>Ae&&(o=Ae,Ae=F,F=o);var R=co(f,F),b=co(f,Ae);if(R&&b&&(D.rangeCount!==1||D.anchorNode!==R.node||D.anchorOffset!==R.offset||D.focusNode!==b.node||D.focusOffset!==b.offset)){var A=q.createRange();A.setStart(R.node,R.offset),D.removeAllRanges(),F>Ae?(D.addRange(A),D.extend(b.node,b.offset)):(A.setEnd(b.node,b.offset),D.addRange(A))}}}}for(q=[],D=f;D=D.parentNode;)D.nodeType===1&&q.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<q.length;f++){var z=q[f];z.element.scrollLeft=z.left,z.element.scrollTop=z.top}}hs=!!Mu,_u=Mu=null}finally{Ee=l,G.p=n,O.T=a}}e.current=t,nt=2}}function Cf(){if(nt===2){nt=0;var e=qa,t=Yn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var n=G.p;G.p=2;var l=Ee;Ee|=4;try{af(e,t.alternate,t)}finally{Ee=l,G.p=n,O.T=a}}nt=3}}function Af(){if(nt===4||nt===3){nt=0,ea();var e=qa,t=Yn,a=Gn,n=pf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,Yn=qa=null,Tf(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(za=null),Bs(a),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(al,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=O.T,l=G.p,G.p=2,O.T=null;try{for(var s=e.onRecoverableError,o=0;o<n.length;o++){var f=n[o];s(f.value,{componentStack:f.stack})}}finally{O.T=t,G.p=l}}(Gn&3)!==0&&ts(),Jt(e),l=e.pendingLanes,(a&4194090)!==0&&(l&42)!==0?e===bu?Bl++:(Bl=0,bu=e):Bl=0,Yl(0)}}function Tf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xl(t)))}function ts(e){return jf(),Cf(),Af(),Nf()}function Nf(){if(nt!==5)return!1;var e=qa,t=vu;vu=0;var a=Bs(Gn),n=O.T,l=G.p;try{G.p=32>a?32:a,O.T=null,a=gu,gu=null;var s=qa,o=Gn;if(nt=0,Yn=qa=null,Gn=0,(Ee&6)!==0)throw Error(c(331));var f=Ee;if(Ee|=4,ff(s.current),cf(s,s.current,o,a),Ee=f,Yl(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(al,s)}catch{}return!0}finally{G.p=l,O.T=n,Tf(e,t)}}function Df(e,t,a){t=Ot(a,t),t=Wr(e.stateNode,t,2),e=Ca(e,t,2),e!==null&&(ll(e,2),Jt(e))}function Te(e,t,a){if(e.tag===3)Df(e,e,a);else for(;t!==null;){if(t.tag===3){Df(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(za===null||!za.has(n))){e=Ot(a,e),a=Md(2),n=Ca(t,a,2),n!==null&&(_d(a,n,t,e),ll(n,2),Jt(n));break}}t=t.return}}function Ru(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Xm;var l=new Set;n.set(t,l)}else l=n.get(t),l===void 0&&(l=new Set,n.set(t,l));l.has(a)||(hu=!0,l.add(a),e=Jm.bind(null,e,t,a),t.then(e,e))}function Jm(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,De===e&&(ve&a)===a&&(Ye===4||Ye===3&&(ve&62914560)===ve&&300>tt()-yu?(Ee&2)===0&&Vn(e,0):pu|=a,Bn===ve&&(Bn=0)),Jt(e)}function Of(e,t){t===0&&(t=jc()),e=jn(e,t),e!==null&&(ll(e,t),Jt(e))}function Im(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Of(e,a)}function Wm(e,t){var a=0;switch(e.tag){case 13:var n=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(t),Of(e,a)}function Pm(e,t){return he(e,t)}var as=null,Qn=null,wu=!1,ns=!1,ju=!1,cn=0;function Jt(e){e!==Qn&&e.next===null&&(Qn===null?as=Qn=e:Qn=Qn.next=e),ns=!0,wu||(wu=!0,ey())}function Yl(e,t){if(!ju&&ns){ju=!0;do for(var a=!1,n=as;n!==null;){if(e!==0){var l=n.pendingLanes;if(l===0)var s=0;else{var o=n.suspendedLanes,f=n.pingedLanes;s=(1<<31-bt(42|e)+1)-1,s&=l&~(o&~f),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,zf(n,s))}else s=ve,s=ci(n,n===De?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(s&3)===0||nl(n,s)||(a=!0,zf(n,s));n=n.next}while(a);ju=!1}}function Fm(){Uf()}function Uf(){ns=wu=!1;var e=0;cn!==0&&(uy()&&(e=cn),cn=0);for(var t=tt(),a=null,n=as;n!==null;){var l=n.next,s=Mf(n,t);s===0?(n.next=null,a===null?as=l:a.next=l,l===null&&(Qn=a)):(a=n,(e!==0||(s&3)!==0)&&(ns=!0)),n=l}Yl(e)}function Mf(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,l=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var o=31-bt(s),f=1<<o,m=l[o];m===-1?((f&a)===0||(f&n)!==0)&&(l[o]=jp(f,t)):m<=t&&(e.expiredLanes|=f),s&=~f}if(t=De,a=ve,a=ci(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&ke(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&ke(n),Bs(a)){case 2:case 8:a=Ec;break;case 32:a=si;break;case 268435456:a=Rc;break;default:a=si}return n=_f.bind(null,e),a=he(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&ke(n),e.callbackPriority=2,e.callbackNode=null,2}function _f(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ts()&&e.callbackNode!==a)return null;var n=ve;return n=ci(e,e===De?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(yf(e,n,t),Mf(e,tt()),e.callbackNode!=null&&e.callbackNode===a?_f.bind(null,e):null)}function zf(e,t){if(ts())return null;yf(e,t,!0)}function ey(){oy(function(){(Ee&6)!==0?he(Sc,Fm):Uf()})}function Cu(){return cn===0&&(cn=wc()),cn}function qf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:pi(""+e)}function kf(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function ty(e,t,a,n,l){if(t==="submit"&&a&&a.stateNode===l){var s=qf((l[ht]||null).action),o=n.submitter;o&&(t=(t=o[ht]||null)?qf(t.formAction):o.getAttribute("formAction"),t!==null&&(s=t,o=null));var f=new gi("action","action",null,n,l);e.push({event:f,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(cn!==0){var m=o?kf(l,o):new FormData(l);Zr(a,{pending:!0,data:m,method:l.method,action:s},null,m)}}else typeof s=="function"&&(f.preventDefault(),m=o?kf(l,o):new FormData(l),Zr(a,{pending:!0,data:m,method:l.method,action:s},s,m))},currentTarget:l}]})}}for(var Au=0;Au<dr.length;Au++){var Tu=dr[Au],ay=Tu.toLowerCase(),ny=Tu[0].toUpperCase()+Tu.slice(1);Gt(ay,"on"+ny)}Gt(mo,"onAnimationEnd"),Gt(yo,"onAnimationIteration"),Gt(vo,"onAnimationStart"),Gt("dblclick","onDoubleClick"),Gt("focusin","onFocus"),Gt("focusout","onBlur"),Gt(xm,"onTransitionRun"),Gt(Sm,"onTransitionStart"),Gt(Em,"onTransitionCancel"),Gt(go,"onTransitionEnd"),mn("onMouseEnter",["mouseout","mouseover"]),mn("onMouseLeave",["mouseout","mouseover"]),mn("onPointerEnter",["pointerout","pointerover"]),mn("onPointerLeave",["pointerout","pointerover"]),Za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Za("onBeforeInput",["compositionend","keypress","textInput","paste"]),Za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ly=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gl));function Lf(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],l=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var o=n.length-1;0<=o;o--){var f=n[o],m=f.instance,T=f.currentTarget;if(f=f.listener,m!==s&&l.isPropagationStopped())break e;s=f,l.currentTarget=T;try{s(l)}catch(M){Xi(M)}l.currentTarget=null,s=m}else for(o=0;o<n.length;o++){if(f=n[o],m=f.instance,T=f.currentTarget,f=f.listener,m!==s&&l.isPropagationStopped())break e;s=f,l.currentTarget=T;try{s(l)}catch(M){Xi(M)}l.currentTarget=null,s=m}}}}function oe(e,t){var a=t[Ys];a===void 0&&(a=t[Ys]=new Set);var n=e+"__bubble";a.has(n)||(Hf(t,e,2,!1),a.add(n))}function Nu(e,t,a){var n=0;t&&(n|=4),Hf(a,e,n,t)}var ls="_reactListening"+Math.random().toString(36).slice(2);function Du(e){if(!e[ls]){e[ls]=!0,Dc.forEach(function(a){a!=="selectionchange"&&(ly.has(a)||Nu(a,!1,e),Nu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ls]||(t[ls]=!0,Nu("selectionchange",!1,t))}}function Hf(e,t,a,n){switch(ch(t)){case 2:var l=Oy;break;case 8:l=Uy;break;default:l=Xu}a=l.bind(null,t,a,e),l=void 0,!Ps||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),n?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function Ou(e,t,a,n,l){var s=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var f=n.stateNode.containerInfo;if(f===l)break;if(o===4)for(o=n.return;o!==null;){var m=o.tag;if((m===3||m===4)&&o.stateNode.containerInfo===l)return;o=o.return}for(;f!==null;){if(o=fn(f),o===null)return;if(m=o.tag,m===5||m===6||m===26||m===27){n=s=o;continue e}f=f.parentNode}}n=n.return}Xc(function(){var T=s,M=Is(a),q=[];e:{var N=bo.get(e);if(N!==void 0){var D=gi,te=e;switch(e){case"keypress":if(yi(a)===0)break e;case"keydown":case"keyup":D=Pp;break;case"focusin":te="focus",D=ar;break;case"focusout":te="blur",D=ar;break;case"beforeblur":case"afterblur":D=ar;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Kc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=Bp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=tm;break;case mo:case yo:case vo:D=Vp;break;case go:D=nm;break;case"scroll":case"scrollend":D=Lp;break;case"wheel":D=im;break;case"copy":case"cut":case"paste":D=Qp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Jc;break;case"toggle":case"beforetoggle":D=rm}var F=(t&4)!==0,Ae=!F&&(e==="scroll"||e==="scrollend"),R=F?N!==null?N+"Capture":null:N;F=[];for(var b=T,A;b!==null;){var z=b;if(A=z.stateNode,z=z.tag,z!==5&&z!==26&&z!==27||A===null||R===null||(z=rl(b,R),z!=null&&F.push(Vl(b,z,A))),Ae)break;b=b.return}0<F.length&&(N=new D(N,te,null,a,M),q.push({event:N,listeners:F}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",N&&a!==Js&&(te=a.relatedTarget||a.fromElement)&&(fn(te)||te[dn]))break e;if((D||N)&&(N=M.window===M?M:(N=M.ownerDocument)?N.defaultView||N.parentWindow:window,D?(te=a.relatedTarget||a.toElement,D=T,te=te?fn(te):null,te!==null&&(Ae=p(te),F=te.tag,te!==Ae||F!==5&&F!==27&&F!==6)&&(te=null)):(D=null,te=T),D!==te)){if(F=Kc,z="onMouseLeave",R="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(F=Jc,z="onPointerLeave",R="onPointerEnter",b="pointer"),Ae=D==null?N:sl(D),A=te==null?N:sl(te),N=new F(z,b+"leave",D,a,M),N.target=Ae,N.relatedTarget=A,z=null,fn(M)===T&&(F=new F(R,b+"enter",te,a,M),F.target=A,F.relatedTarget=Ae,z=F),Ae=z,D&&te)t:{for(F=D,R=te,b=0,A=F;A;A=Zn(A))b++;for(A=0,z=R;z;z=Zn(z))A++;for(;0<b-A;)F=Zn(F),b--;for(;0<A-b;)R=Zn(R),A--;for(;b--;){if(F===R||R!==null&&F===R.alternate)break t;F=Zn(F),R=Zn(R)}F=null}else F=null;D!==null&&Bf(q,N,D,F,!1),te!==null&&Ae!==null&&Bf(q,Ae,te,F,!0)}}e:{if(N=T?sl(T):window,D=N.nodeName&&N.nodeName.toLowerCase(),D==="select"||D==="input"&&N.type==="file")var Q=no;else if(to(N))if(lo)Q=vm;else{Q=mm;var re=pm}else D=N.nodeName,!D||D.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?T&&$s(T.elementType)&&(Q=no):Q=ym;if(Q&&(Q=Q(e,T))){ao(q,Q,a,M);break e}re&&re(e,N,T),e==="focusout"&&T&&N.type==="number"&&T.memoizedProps.value!=null&&Ks(N,"number",N.value)}switch(re=T?sl(T):window,e){case"focusin":(to(re)||re.contentEditable==="true")&&(En=re,ur=T,ml=null);break;case"focusout":ml=ur=En=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,ho(q,a,M);break;case"selectionchange":if(bm)break;case"keydown":case"keyup":ho(q,a,M)}var J;if(lr)e:{switch(e){case"compositionstart":var ee="onCompositionStart";break e;case"compositionend":ee="onCompositionEnd";break e;case"compositionupdate":ee="onCompositionUpdate";break e}ee=void 0}else Sn?Fc(e,a)&&(ee="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ee="onCompositionStart");ee&&(Ic&&a.locale!=="ko"&&(Sn||ee!=="onCompositionStart"?ee==="onCompositionEnd"&&Sn&&(J=Qc()):(Ea=M,Fs="value"in Ea?Ea.value:Ea.textContent,Sn=!0)),re=is(T,ee),0<re.length&&(ee=new $c(ee,e,null,a,M),q.push({event:ee,listeners:re}),J?ee.data=J:(J=eo(a),J!==null&&(ee.data=J)))),(J=cm?om(e,a):dm(e,a))&&(ee=is(T,"onBeforeInput"),0<ee.length&&(re=new $c("onBeforeInput","beforeinput",null,a,M),q.push({event:re,listeners:ee}),re.data=J)),ty(q,e,T,a,M)}Lf(q,t)})}function Vl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function is(e,t){for(var a=t+"Capture",n=[];e!==null;){var l=e,s=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||s===null||(l=rl(e,a),l!=null&&n.unshift(Vl(e,l,s)),l=rl(e,t),l!=null&&n.push(Vl(e,l,s))),e.tag===3)return n;e=e.return}return[]}function Zn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bf(e,t,a,n,l){for(var s=t._reactName,o=[];a!==null&&a!==n;){var f=a,m=f.alternate,T=f.stateNode;if(f=f.tag,m!==null&&m===n)break;f!==5&&f!==26&&f!==27||T===null||(m=T,l?(T=rl(a,s),T!=null&&o.unshift(Vl(a,T,m))):l||(T=rl(a,s),T!=null&&o.push(Vl(a,T,m)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var iy=/\r\n?/g,sy=/\u0000|\uFFFD/g;function Yf(e){return(typeof e=="string"?e:""+e).replace(iy,`
|
|
49
|
-
`).replace(sy,"")}function Gf(e,t){return t=Yf(t),Yf(e)===t}function ss(){}function Ce(e,t,a,n,l,s){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||gn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&gn(e,""+n);break;case"className":di(e,"class",n);break;case"tabIndex":di(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":di(e,a,n);break;case"style":Gc(e,n,s);break;case"data":if(t!=="object"){di(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=pi(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(a==="formAction"?(t!=="input"&&Ce(e,t,"name",l.name,l,null),Ce(e,t,"formEncType",l.formEncType,l,null),Ce(e,t,"formMethod",l.formMethod,l,null),Ce(e,t,"formTarget",l.formTarget,l,null)):(Ce(e,t,"encType",l.encType,l,null),Ce(e,t,"method",l.method,l,null),Ce(e,t,"target",l.target,l,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=pi(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=ss);break;case"onScroll":n!=null&&oe("scroll",e);break;case"onScrollEnd":n!=null&&oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=pi(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":oe("beforetoggle",e),oe("toggle",e),oi(e,"popover",n);break;case"xlinkActuate":ta(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ta(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ta(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ta(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ta(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ta(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ta(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ta(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ta(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":oi(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=qp.get(a)||a,oi(e,a,n))}}function Uu(e,t,a,n,l,s){switch(a){case"style":Gc(e,n,s);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof n=="string"?gn(e,n):(typeof n=="number"||typeof n=="bigint")&&gn(e,""+n);break;case"onScroll":n!=null&&oe("scroll",e);break;case"onScrollEnd":n!=null&&oe("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ss);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Oc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),s=e[ht]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,l),typeof n=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,l);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):oi(e,a,n)}}}function lt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":oe("error",e),oe("load",e);var n=!1,l=!1,s;for(s in a)if(a.hasOwnProperty(s)){var o=a[s];if(o!=null)switch(s){case"src":n=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ce(e,t,s,o,a,null)}}l&&Ce(e,t,"srcSet",a.srcSet,a,null),n&&Ce(e,t,"src",a.src,a,null);return;case"input":oe("invalid",e);var f=s=o=l=null,m=null,T=null;for(n in a)if(a.hasOwnProperty(n)){var M=a[n];if(M!=null)switch(n){case"name":l=M;break;case"type":o=M;break;case"checked":m=M;break;case"defaultChecked":T=M;break;case"value":s=M;break;case"defaultValue":f=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,t));break;default:Ce(e,t,n,M,a,null)}}Lc(e,s,f,m,T,o,l,!1),fi(e);return;case"select":oe("invalid",e),n=o=s=null;for(l in a)if(a.hasOwnProperty(l)&&(f=a[l],f!=null))switch(l){case"value":s=f;break;case"defaultValue":o=f;break;case"multiple":n=f;default:Ce(e,t,l,f,a,null)}t=s,a=o,e.multiple=!!n,t!=null?vn(e,!!n,t,!1):a!=null&&vn(e,!!n,a,!0);return;case"textarea":oe("invalid",e),s=l=n=null;for(o in a)if(a.hasOwnProperty(o)&&(f=a[o],f!=null))switch(o){case"value":n=f;break;case"defaultValue":l=f;break;case"children":s=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(c(91));break;default:Ce(e,t,o,f,a,null)}Bc(e,n,l,s),fi(e);return;case"option":for(m in a)if(a.hasOwnProperty(m)&&(n=a[m],n!=null))switch(m){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Ce(e,t,m,n,a,null)}return;case"dialog":oe("beforetoggle",e),oe("toggle",e),oe("cancel",e),oe("close",e);break;case"iframe":case"object":oe("load",e);break;case"video":case"audio":for(n=0;n<Gl.length;n++)oe(Gl[n],e);break;case"image":oe("error",e),oe("load",e);break;case"details":oe("toggle",e);break;case"embed":case"source":case"link":oe("error",e),oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in a)if(a.hasOwnProperty(T)&&(n=a[T],n!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ce(e,t,T,n,a,null)}return;default:if($s(t)){for(M in a)a.hasOwnProperty(M)&&(n=a[M],n!==void 0&&Uu(e,t,M,n,a,void 0));return}}for(f in a)a.hasOwnProperty(f)&&(n=a[f],n!=null&&Ce(e,t,f,n,a,null))}function ry(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,s=null,o=null,f=null,m=null,T=null,M=null;for(D in a){var q=a[D];if(a.hasOwnProperty(D)&&q!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":m=q;default:n.hasOwnProperty(D)||Ce(e,t,D,null,n,q)}}for(var N in n){var D=n[N];if(q=a[N],n.hasOwnProperty(N)&&(D!=null||q!=null))switch(N){case"type":s=D;break;case"name":l=D;break;case"checked":T=D;break;case"defaultChecked":M=D;break;case"value":o=D;break;case"defaultValue":f=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(c(137,t));break;default:D!==q&&Ce(e,t,N,D,n,q)}}Zs(e,o,f,m,T,M,s,l);return;case"select":D=o=f=N=null;for(s in a)if(m=a[s],a.hasOwnProperty(s)&&m!=null)switch(s){case"value":break;case"multiple":D=m;default:n.hasOwnProperty(s)||Ce(e,t,s,null,n,m)}for(l in n)if(s=n[l],m=a[l],n.hasOwnProperty(l)&&(s!=null||m!=null))switch(l){case"value":N=s;break;case"defaultValue":f=s;break;case"multiple":o=s;default:s!==m&&Ce(e,t,l,s,n,m)}t=f,a=o,n=D,N!=null?vn(e,!!a,N,!1):!!n!=!!a&&(t!=null?vn(e,!!a,t,!0):vn(e,!!a,a?[]:"",!1));return;case"textarea":D=N=null;for(f in a)if(l=a[f],a.hasOwnProperty(f)&&l!=null&&!n.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Ce(e,t,f,null,n,l)}for(o in n)if(l=n[o],s=a[o],n.hasOwnProperty(o)&&(l!=null||s!=null))switch(o){case"value":N=l;break;case"defaultValue":D=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(c(91));break;default:l!==s&&Ce(e,t,o,l,n,s)}Hc(e,N,D);return;case"option":for(var te in a)if(N=a[te],a.hasOwnProperty(te)&&N!=null&&!n.hasOwnProperty(te))switch(te){case"selected":e.selected=!1;break;default:Ce(e,t,te,null,n,N)}for(m in n)if(N=n[m],D=a[m],n.hasOwnProperty(m)&&N!==D&&(N!=null||D!=null))switch(m){case"selected":e.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:Ce(e,t,m,N,n,D)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var F in a)N=a[F],a.hasOwnProperty(F)&&N!=null&&!n.hasOwnProperty(F)&&Ce(e,t,F,null,n,N);for(T in n)if(N=n[T],D=a[T],n.hasOwnProperty(T)&&N!==D&&(N!=null||D!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(c(137,t));break;default:Ce(e,t,T,N,n,D)}return;default:if($s(t)){for(var Ae in a)N=a[Ae],a.hasOwnProperty(Ae)&&N!==void 0&&!n.hasOwnProperty(Ae)&&Uu(e,t,Ae,void 0,n,N);for(M in n)N=n[M],D=a[M],!n.hasOwnProperty(M)||N===D||N===void 0&&D===void 0||Uu(e,t,M,N,n,D);return}}for(var R in a)N=a[R],a.hasOwnProperty(R)&&N!=null&&!n.hasOwnProperty(R)&&Ce(e,t,R,null,n,N);for(q in n)N=n[q],D=a[q],!n.hasOwnProperty(q)||N===D||N==null&&D==null||Ce(e,t,q,N,n,D)}var Mu=null,_u=null;function rs(e){return e.nodeType===9?e:e.ownerDocument}function Vf(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Xf(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function zu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qu=null;function uy(){var e=window.event;return e&&e.type==="popstate"?e===qu?!1:(qu=e,!0):(qu=null,!1)}var Qf=typeof setTimeout=="function"?setTimeout:void 0,cy=typeof clearTimeout=="function"?clearTimeout:void 0,Zf=typeof Promise=="function"?Promise:void 0,oy=typeof queueMicrotask=="function"?queueMicrotask:typeof Zf<"u"?function(e){return Zf.resolve(null).then(e).catch(dy)}:Qf;function dy(e){setTimeout(function(){throw e})}function La(e){return e==="head"}function Kf(e,t){var a=t,n=0,l=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(0<n&&8>n){a=n;var o=e.ownerDocument;if(a&1&&Xl(o.documentElement),a&2&&Xl(o.body),a&4)for(a=o.head,Xl(a),o=a.firstChild;o;){var f=o.nextSibling,m=o.nodeName;o[il]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&o.rel.toLowerCase()==="stylesheet"||a.removeChild(o),o=f}}if(l===0){e.removeChild(s),Pl(t);return}l--}else a==="$"||a==="$?"||a==="$!"?l++:n=a.charCodeAt(0)-48;else n=0;a=s}while(a);Pl(t)}function ku(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ku(a),Gs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function fy(e,t,a,n){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[il])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function hy(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Xt(e.nextSibling),e===null))return null;return e}function Lu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function py(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Xt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Hu=null;function $f(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Jf(e,t,a){switch(t=rs(a),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Xl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Gs(e)}var kt=new Map,If=new Set;function us(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ma=G.d;G.d={f:my,r:yy,D:vy,C:gy,L:by,m:xy,X:Ey,S:Sy,M:Ry};function my(){var e=ma.f(),t=Fi();return e||t}function yy(e){var t=hn(e);t!==null&&t.tag===5&&t.type==="form"?md(t):ma.r(e)}var Kn=typeof document>"u"?null:document;function Wf(e,t,a){var n=Kn;if(n&&typeof t=="string"&&t){var l=Dt(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),If.has(l)||(If.add(l),e={rel:e,crossOrigin:a,href:t},n.querySelector(l)===null&&(t=n.createElement("link"),lt(t,"link",e),Ie(t),n.head.appendChild(t)))}}function vy(e){ma.D(e),Wf("dns-prefetch",e,null)}function gy(e,t){ma.C(e,t),Wf("preconnect",e,t)}function by(e,t,a){ma.L(e,t,a);var n=Kn;if(n&&e&&t){var l='link[rel="preload"][as="'+Dt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Dt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Dt(a.imageSizes)+'"]')):l+='[href="'+Dt(e)+'"]';var s=l;switch(t){case"style":s=$n(e);break;case"script":s=Jn(e)}kt.has(s)||(e=C({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),kt.set(s,e),n.querySelector(l)!==null||t==="style"&&n.querySelector(Ql(s))||t==="script"&&n.querySelector(Zl(s))||(t=n.createElement("link"),lt(t,"link",e),Ie(t),n.head.appendChild(t)))}}function xy(e,t){ma.m(e,t);var a=Kn;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Dt(n)+'"][href="'+Dt(e)+'"]',s=l;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Jn(e)}if(!kt.has(s)&&(e=C({rel:"modulepreload",href:e},t),kt.set(s,e),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Zl(s)))return}n=a.createElement("link"),lt(n,"link",e),Ie(n),a.head.appendChild(n)}}}function Sy(e,t,a){ma.S(e,t,a);var n=Kn;if(n&&e){var l=pn(n).hoistableStyles,s=$n(e);t=t||"default";var o=l.get(s);if(!o){var f={loading:0,preload:null};if(o=n.querySelector(Ql(s)))f.loading=5;else{e=C({rel:"stylesheet",href:e,"data-precedence":t},a),(a=kt.get(s))&&Bu(e,a);var m=o=n.createElement("link");Ie(m),lt(m,"link",e),m._p=new Promise(function(T,M){m.onload=T,m.onerror=M}),m.addEventListener("load",function(){f.loading|=1}),m.addEventListener("error",function(){f.loading|=2}),f.loading|=4,cs(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:f},l.set(s,o)}}}function Ey(e,t){ma.X(e,t);var a=Kn;if(a&&e){var n=pn(a).hoistableScripts,l=Jn(e),s=n.get(l);s||(s=a.querySelector(Zl(l)),s||(e=C({src:e,async:!0},t),(t=kt.get(l))&&Yu(e,t),s=a.createElement("script"),Ie(s),lt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(l,s))}}function Ry(e,t){ma.M(e,t);var a=Kn;if(a&&e){var n=pn(a).hoistableScripts,l=Jn(e),s=n.get(l);s||(s=a.querySelector(Zl(l)),s||(e=C({src:e,async:!0,type:"module"},t),(t=kt.get(l))&&Yu(e,t),s=a.createElement("script"),Ie(s),lt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(l,s))}}function Pf(e,t,a,n){var l=(l=P.current)?us(l):null;if(!l)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=$n(a.href),a=pn(l).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=$n(a.href);var s=pn(l).hoistableStyles,o=s.get(e);if(o||(l=l.ownerDocument||l,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,o),(s=l.querySelector(Ql(e)))&&!s._p&&(o.instance=s,o.state.loading=5),kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},kt.set(e,a),s||wy(l,e,a,o.state))),t&&n===null)throw Error(c(528,""));return o}if(t&&n!==null)throw Error(c(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Jn(a),a=pn(l).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function $n(e){return'href="'+Dt(e)+'"'}function Ql(e){return'link[rel="stylesheet"]['+e+"]"}function Ff(e){return C({},e,{"data-precedence":e.precedence,precedence:null})}function wy(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),lt(t,"link",a),Ie(t),e.head.appendChild(t))}function Jn(e){return'[src="'+Dt(e)+'"]'}function Zl(e){return"script[async]"+e}function eh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Dt(a.href)+'"]');if(n)return t.instance=n,Ie(n),n;var l=C({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ie(n),lt(n,"style",l),cs(n,a.precedence,e),t.instance=n;case"stylesheet":l=$n(a.href);var s=e.querySelector(Ql(l));if(s)return t.state.loading|=4,t.instance=s,Ie(s),s;n=Ff(a),(l=kt.get(l))&&Bu(n,l),s=(e.ownerDocument||e).createElement("link"),Ie(s);var o=s;return o._p=new Promise(function(f,m){o.onload=f,o.onerror=m}),lt(s,"link",n),t.state.loading|=4,cs(s,a.precedence,e),t.instance=s;case"script":return s=Jn(a.src),(l=e.querySelector(Zl(s)))?(t.instance=l,Ie(l),l):(n=a,(l=kt.get(s))&&(n=C({},a),Yu(n,l)),e=e.ownerDocument||e,l=e.createElement("script"),Ie(l),lt(l,"link",n),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,cs(n,a.precedence,e));return t.instance}function cs(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,s=l,o=0;o<n.length;o++){var f=n[o];if(f.dataset.precedence===t)s=f;else if(s!==l)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Bu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Yu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var os=null;function th(e,t,a){if(os===null){var n=new Map,l=os=new Map;l.set(a,n)}else l=os,n=l.get(a),n||(n=new Map,l.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),l=0;l<a.length;l++){var s=a[l];if(!(s[il]||s[rt]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(t)||"";o=e+o;var f=n.get(o);f?f.push(s):n.set(o,[s])}}return n}function ah(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function jy(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function nh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Kl=null;function Cy(){}function Ay(e,t,a){if(Kl===null)throw Error(c(475));var n=Kl;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var l=$n(a.href),s=e.querySelector(Ql(l));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(n.count++,n=ds.bind(n),e.then(n,n)),t.state.loading|=4,t.instance=s,Ie(s);return}s=e.ownerDocument||e,a=Ff(a),(l=kt.get(l))&&Bu(a,l),s=s.createElement("link"),Ie(s);var o=s;o._p=new Promise(function(f,m){o.onload=f,o.onerror=m}),lt(s,"link",a),t.instance=s}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(n.count++,t=ds.bind(n),e.addEventListener("load",t),e.addEventListener("error",t))}}function Ty(){if(Kl===null)throw Error(c(475));var e=Kl;return e.stylesheets&&e.count===0&&Gu(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Gu(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function ds(){if(this.count--,this.count===0){if(this.stylesheets)Gu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var fs=null;function Gu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fs=new Map,t.forEach(Ny,e),fs=null,ds.call(e))}function Ny(e,t){if(!(t.state.loading&4)){var a=fs.get(e);if(a)var n=a.get(null);else{a=new Map,fs.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<l.length;s++){var o=l[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),n=o)}n&&a.set(null,n)}l=t.instance,o=l.getAttribute("data-precedence"),s=a.get(o)||n,s===n&&a.set(null,l),a.set(o,l),this.count++,n=ds.bind(this),l.addEventListener("load",n),l.addEventListener("error",n),s?s.parentNode.insertBefore(l,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var $l={$$typeof:Z,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Dy(e,t,a,n,l,s,o,f){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ls(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ls(0),this.hiddenUpdates=Ls(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map}function lh(e,t,a,n,l,s,o,f,m,T,M,q){return e=new Dy(e,t,a,o,f,m,T,q),t=1,s===!0&&(t|=24),s=St(3,null,null,t),e.current=s,s.stateNode=e,t=Rr(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:n,isDehydrated:a,cache:t},Ar(s),e}function ih(e){return e?(e=Cn,e):Cn}function sh(e,t,a,n,l,s){l=ih(l),n.context===null?n.context=l:n.pendingContext=l,n=ja(t),n.payload={element:a},s=s===void 0?null:s,s!==null&&(n.callback=s),a=Ca(e,n,t),a!==null&&(Ct(a,e,t),wl(a,e,t))}function rh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Vu(e,t){rh(e,t),(e=e.alternate)&&rh(e,t)}function uh(e){if(e.tag===13){var t=jn(e,67108864);t!==null&&Ct(t,e,67108864),Vu(e,67108864)}}var hs=!0;function Oy(e,t,a,n){var l=O.T;O.T=null;var s=G.p;try{G.p=2,Xu(e,t,a,n)}finally{G.p=s,O.T=l}}function Uy(e,t,a,n){var l=O.T;O.T=null;var s=G.p;try{G.p=8,Xu(e,t,a,n)}finally{G.p=s,O.T=l}}function Xu(e,t,a,n){if(hs){var l=Qu(n);if(l===null)Ou(e,t,n,ps,a),oh(e,n);else if(_y(l,e,t,a,n))n.stopPropagation();else if(oh(e,n),t&4&&-1<My.indexOf(e)){for(;l!==null;){var s=hn(l);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=Qa(s.pendingLanes);if(o!==0){var f=s;for(f.pendingLanes|=2,f.entangledLanes|=2;o;){var m=1<<31-bt(o);f.entanglements[1]|=m,o&=~m}Jt(s),(Ee&6)===0&&(Wi=tt()+500,Yl(0))}}break;case 13:f=jn(s,2),f!==null&&Ct(f,s,2),Fi(),Vu(s,2)}if(s=Qu(n),s===null&&Ou(e,t,n,ps,a),s===l)break;l=s}l!==null&&n.stopPropagation()}else Ou(e,t,n,null,a)}}function Qu(e){return e=Is(e),Zu(e)}var ps=null;function Zu(e){if(ps=null,e=fn(e),e!==null){var t=p(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=y(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ps=e,null}function ch(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gp()){case Sc:return 2;case Ec:return 8;case si:case bp:return 32;case Rc:return 268435456;default:return 32}default:return 32}}var Ku=!1,Ha=null,Ba=null,Ya=null,Jl=new Map,Il=new Map,Ga=[],My="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function oh(e,t){switch(e){case"focusin":case"focusout":Ha=null;break;case"dragenter":case"dragleave":Ba=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":Jl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Il.delete(t.pointerId)}}function Wl(e,t,a,n,l,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:s,targetContainers:[l]},t!==null&&(t=hn(t),t!==null&&uh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function _y(e,t,a,n,l){switch(t){case"focusin":return Ha=Wl(Ha,e,t,a,n,l),!0;case"dragenter":return Ba=Wl(Ba,e,t,a,n,l),!0;case"mouseover":return Ya=Wl(Ya,e,t,a,n,l),!0;case"pointerover":var s=l.pointerId;return Jl.set(s,Wl(Jl.get(s)||null,e,t,a,n,l)),!0;case"gotpointercapture":return s=l.pointerId,Il.set(s,Wl(Il.get(s)||null,e,t,a,n,l)),!0}return!1}function dh(e){var t=fn(e.target);if(t!==null){var a=p(t);if(a!==null){if(t=a.tag,t===13){if(t=y(a),t!==null){e.blockedOn=t,Ap(e.priority,function(){if(a.tag===13){var n=jt();n=Hs(n);var l=jn(a,n);l!==null&&Ct(l,a,n),Vu(a,n)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Qu(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Js=n,a.target.dispatchEvent(n),Js=null}else return t=hn(a),t!==null&&uh(t),e.blockedOn=a,!1;t.shift()}return!0}function fh(e,t,a){ms(e)&&a.delete(t)}function zy(){Ku=!1,Ha!==null&&ms(Ha)&&(Ha=null),Ba!==null&&ms(Ba)&&(Ba=null),Ya!==null&&ms(Ya)&&(Ya=null),Jl.forEach(fh),Il.forEach(fh)}function ys(e,t){e.blockedOn===t&&(e.blockedOn=null,Ku||(Ku=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zy)))}var vs=null;function hh(e){vs!==e&&(vs=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){vs===e&&(vs=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],l=e[t+2];if(typeof n!="function"){if(Zu(n||a)===null)continue;break}var s=hn(a);s!==null&&(e.splice(t,3),t-=3,Zr(s,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function Pl(e){function t(m){return ys(m,e)}Ha!==null&&ys(Ha,e),Ba!==null&&ys(Ba,e),Ya!==null&&ys(Ya,e),Jl.forEach(t),Il.forEach(t);for(var a=0;a<Ga.length;a++){var n=Ga[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ga.length&&(a=Ga[0],a.blockedOn===null);)dh(a),a.blockedOn===null&&Ga.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var l=a[n],s=a[n+1],o=l[ht]||null;if(typeof s=="function")o||hh(a);else if(o){var f=null;if(s&&s.hasAttribute("formAction")){if(l=s,o=s[ht]||null)f=o.formAction;else if(Zu(l)!==null)continue}else f=o.action;typeof f=="function"?a[n+1]=f:(a.splice(n,3),n-=3),hh(a)}}}function $u(e){this._internalRoot=e}gs.prototype.render=$u.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,n=jt();sh(a,n,e,t,null,null)},gs.prototype.unmount=$u.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sh(e.current,2,null,e,null,null),Fi(),t[dn]=null}};function gs(e){this._internalRoot=e}gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ga.length&&t!==0&&t<Ga[a].priority;a++);Ga.splice(a,0,e),a===0&&dh(e)}};var ph=u.version;if(ph!=="19.1.1")throw Error(c(527,ph,"19.1.1"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=S(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var qy={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bs.isDisabled&&bs.supportsFiber)try{al=bs.inject(qy),gt=bs}catch{}}return ei.createRoot=function(e,t){if(!h(e))throw Error(c(299));var a=!1,n="",l=Nd,s=Dd,o=Od,f=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(f=t.unstable_transitionCallbacks)),t=lh(e,1,!1,null,null,a,n,l,s,o,f,null),e[dn]=t.current,Du(e),new $u(t)},ei.hydrateRoot=function(e,t,a){if(!h(e))throw Error(c(299));var n=!1,l="",s=Nd,o=Dd,f=Od,m=null,T=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(f=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(m=a.unstable_transitionCallbacks),a.formState!==void 0&&(T=a.formState)),t=lh(e,1,!0,t,a??null,n,l,s,o,f,m,T),t.context=ih(null),a=t.current,n=jt(),n=Hs(n),l=ja(n),l.callback=null,Ca(a,l,n),a=n,t.current.lanes=a,ll(t,a),Jt(t),e[dn]=t.current,Du(e),new gs(t)},ei.version="19.1.1",ei}var wh;function Zy(){if(wh)return Wu.exports;wh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(u){console.error(u)}}return i(),Wu.exports=Qy(),Wu.exports}var Ky=Zy();/**
|
|
50
|
-
* react-router v7.12.0
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var jh="popstate";function $y(i={}){function u(c,h){let{pathname:p,search:y,hash:j}=c.location;return rc("",{pathname:p,search:y,hash:j},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function d(c,h){return typeof h=="string"?h:ni(h)}return Iy(u,d,null,i)}function ze(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function Bt(i,u){if(!i){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Jy(){return Math.random().toString(36).substring(2,10)}function Ch(i,u){return{usr:i.state,key:i.key,idx:u}}function rc(i,u,d=null,c){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof u=="string"?Fn(u):u,state:d,key:u&&u.key||c||Jy()}}function ni({pathname:i="/",search:u="",hash:d=""}){return u&&u!=="?"&&(i+=u.charAt(0)==="?"?u:"?"+u),d&&d!=="#"&&(i+=d.charAt(0)==="#"?d:"#"+d),i}function Fn(i){let u={};if(i){let d=i.indexOf("#");d>=0&&(u.hash=i.substring(d),i=i.substring(0,d));let c=i.indexOf("?");c>=0&&(u.search=i.substring(c),i=i.substring(0,c)),i&&(u.pathname=i)}return u}function Iy(i,u,d,c={}){let{window:h=document.defaultView,v5Compat:p=!1}=c,y=h.history,j="POP",S=null,v=C();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function C(){return(y.state||{idx:null}).idx}function w(){j="POP";let Y=C(),W=Y==null?null:Y-v;v=Y,S&&S({action:j,location:_.location,delta:W})}function x(Y,W){j="PUSH";let X=rc(_.location,Y,W);v=C()+1;let Z=Ch(X,v),xe=_.createHref(X);try{y.pushState(Z,"",xe)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;h.location.assign(xe)}p&&S&&S({action:j,location:_.location,delta:1})}function U(Y,W){j="REPLACE";let X=rc(_.location,Y,W);v=C();let Z=Ch(X,v),xe=_.createHref(X);y.replaceState(Z,"",xe),p&&S&&S({action:j,location:_.location,delta:0})}function H(Y){return Wy(Y)}let _={get action(){return j},get location(){return i(h,y)},listen(Y){if(S)throw new Error("A history only accepts one active listener");return h.addEventListener(jh,w),S=Y,()=>{h.removeEventListener(jh,w),S=null}},createHref(Y){return u(h,Y)},createURL:H,encodeLocation(Y){let W=H(Y);return{pathname:W.pathname,search:W.search,hash:W.hash}},push:x,replace:U,go(Y){return y.go(Y)}};return _}function Wy(i,u=!1){let d="http://localhost";typeof window<"u"&&(d=window.location.origin!=="null"?window.location.origin:window.location.href),ze(d,"No window.location.(origin|href) available to create URL");let c=typeof i=="string"?i:ni(i);return c=c.replace(/ $/,"%20"),!u&&c.startsWith("//")&&(c=d+c),new URL(c,d)}function Bh(i,u,d="/"){return Py(i,u,d,!1)}function Py(i,u,d,c){let h=typeof u=="string"?Fn(u):u,p=ba(h.pathname||"/",d);if(p==null)return null;let y=Yh(i);Fy(y);let j=null;for(let S=0;j==null&&S<y.length;++S){let v=ov(p);j=uv(y[S],v,c)}return j}function Yh(i,u=[],d=[],c="",h=!1){let p=(y,j,S=h,v)=>{let C={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:j,route:y};if(C.relativePath.startsWith("/")){if(!C.relativePath.startsWith(c)&&S)return;ze(C.relativePath.startsWith(c),`Absolute route path "${C.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),C.relativePath=C.relativePath.slice(c.length)}let w=va([c,C.relativePath]),x=d.concat(C);y.children&&y.children.length>0&&(ze(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${w}".`),Yh(y.children,u,x,w,S)),!(y.path==null&&!y.index)&&u.push({path:w,score:sv(w,y.index),routesMeta:x})};return i.forEach((y,j)=>{if(y.path===""||!y.path?.includes("?"))p(y,j);else for(let S of Gh(y.path))p(y,j,!0,S)}),u}function Gh(i){let u=i.split("/");if(u.length===0)return[];let[d,...c]=u,h=d.endsWith("?"),p=d.replace(/\?$/,"");if(c.length===0)return h?[p,""]:[p];let y=Gh(c.join("/")),j=[];return j.push(...y.map(S=>S===""?p:[p,S].join("/"))),h&&j.push(...y),j.map(S=>i.startsWith("/")&&S===""?"/":S)}function Fy(i){i.sort((u,d)=>u.score!==d.score?d.score-u.score:rv(u.routesMeta.map(c=>c.childrenIndex),d.routesMeta.map(c=>c.childrenIndex)))}var ev=/^:[\w-]+$/,tv=3,av=2,nv=1,lv=10,iv=-2,Ah=i=>i==="*";function sv(i,u){let d=i.split("/"),c=d.length;return d.some(Ah)&&(c+=iv),u&&(c+=av),d.filter(h=>!Ah(h)).reduce((h,p)=>h+(ev.test(p)?tv:p===""?nv:lv),c)}function rv(i,u){return i.length===u.length&&i.slice(0,-1).every((c,h)=>c===u[h])?i[i.length-1]-u[u.length-1]:0}function uv(i,u,d=!1){let{routesMeta:c}=i,h={},p="/",y=[];for(let j=0;j<c.length;++j){let S=c[j],v=j===c.length-1,C=p==="/"?u:u.slice(p.length)||"/",w=js({path:S.relativePath,caseSensitive:S.caseSensitive,end:v},C),x=S.route;if(!w&&v&&d&&!c[c.length-1].route.index&&(w=js({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},C)),!w)return null;Object.assign(h,w.params),y.push({params:h,pathname:va([p,w.pathname]),pathnameBase:pv(va([p,w.pathnameBase])),route:x}),w.pathnameBase!=="/"&&(p=va([p,w.pathnameBase]))}return y}function js(i,u){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[d,c]=cv(i.path,i.caseSensitive,i.end),h=u.match(d);if(!h)return null;let p=h[0],y=p.replace(/(.)\/+$/,"$1"),j=h.slice(1);return{params:c.reduce((v,{paramName:C,isOptional:w},x)=>{if(C==="*"){let H=j[x]||"";y=p.slice(0,p.length-H.length).replace(/(.)\/+$/,"$1")}const U=j[x];return w&&!U?v[C]=void 0:v[C]=(U||"").replace(/%2F/g,"/"),v},{}),pathname:p,pathnameBase:y,pattern:i}}function cv(i,u=!1,d=!0){Bt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let c=[],h="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,j,S)=>(c.push({paramName:j,isOptional:S!=null}),S?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(c.push({paramName:"*"}),h+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?h+="\\/*$":i!==""&&i!=="/"&&(h+="(?:(?=\\/|$))"),[new RegExp(h,u?void 0:"i"),c]}function ov(i){try{return i.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Bt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),i}}function ba(i,u){if(u==="/")return i;if(!i.toLowerCase().startsWith(u.toLowerCase()))return null;let d=u.endsWith("/")?u.length-1:u.length,c=i.charAt(d);return c&&c!=="/"?null:i.slice(d)||"/"}var Vh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dv=i=>Vh.test(i);function fv(i,u="/"){let{pathname:d,search:c="",hash:h=""}=typeof i=="string"?Fn(i):i,p;if(d)if(dv(d))p=d;else{if(d.includes("//")){let y=d;d=d.replace(/\/\/+/g,"/"),Bt(!1,`Pathnames cannot have embedded double slashes - normalizing ${y} -> ${d}`)}d.startsWith("/")?p=Th(d.substring(1),"/"):p=Th(d,u)}else p=u;return{pathname:p,search:mv(c),hash:yv(h)}}function Th(i,u){let d=u.replace(/\/+$/,"").split("/");return i.split("/").forEach(h=>{h===".."?d.length>1&&d.pop():h!=="."&&d.push(h)}),d.length>1?d.join("/"):"/"}function tc(i,u,d,c){return`Cannot include a '${i}' character in a manually specified \`to.${u}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${d}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function hv(i){return i.filter((u,d)=>d===0||u.route.path&&u.route.path.length>0)}function fc(i){let u=hv(i);return u.map((d,c)=>c===u.length-1?d.pathname:d.pathnameBase)}function hc(i,u,d,c=!1){let h;typeof i=="string"?h=Fn(i):(h={...i},ze(!h.pathname||!h.pathname.includes("?"),tc("?","pathname","search",h)),ze(!h.pathname||!h.pathname.includes("#"),tc("#","pathname","hash",h)),ze(!h.search||!h.search.includes("#"),tc("#","search","hash",h)));let p=i===""||h.pathname==="",y=p?"/":h.pathname,j;if(y==null)j=d;else{let w=u.length-1;if(!c&&y.startsWith("..")){let x=y.split("/");for(;x[0]==="..";)x.shift(),w-=1;h.pathname=x.join("/")}j=w>=0?u[w]:"/"}let S=fv(h,j),v=y&&y!=="/"&&y.endsWith("/"),C=(p||y===".")&&d.endsWith("/");return!S.pathname.endsWith("/")&&(v||C)&&(S.pathname+="/"),S}var va=i=>i.join("/").replace(/\/\/+/g,"/"),pv=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),mv=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,yv=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,vv=class{constructor(i,u,d,c=!1){this.status=i,this.statusText=u||"",this.internal=c,d instanceof Error?(this.data=d.toString(),this.error=d):this.data=d}};function gv(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function bv(i){return i.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Xh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Qh(i,u){let d=i;if(typeof d!="string"||!Vh.test(d))return{absoluteURL:void 0,isExternal:!1,to:d};let c=d,h=!1;if(Xh)try{let p=new URL(window.location.href),y=d.startsWith("//")?new URL(p.protocol+d):new URL(d),j=ba(y.pathname,u);y.origin===p.origin&&j!=null?d=j+y.search+y.hash:h=!0}catch{Bt(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:h,to:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Zh=["POST","PUT","PATCH","DELETE"];new Set(Zh);var xv=["GET",...Zh];new Set(xv);var el=E.createContext(null);el.displayName="DataRouter";var Ms=E.createContext(null);Ms.displayName="DataRouterState";var Sv=E.createContext(!1),Kh=E.createContext({isTransitioning:!1});Kh.displayName="ViewTransition";var Ev=E.createContext(new Map);Ev.displayName="Fetchers";var Rv=E.createContext(null);Rv.displayName="Await";var Tt=E.createContext(null);Tt.displayName="Navigation";var li=E.createContext(null);li.displayName="Location";var Yt=E.createContext({outlet:null,matches:[],isDataRoute:!1});Yt.displayName="Route";var pc=E.createContext(null);pc.displayName="RouteError";var $h="REACT_ROUTER_ERROR",wv="REDIRECT",jv="ROUTE_ERROR_RESPONSE";function Cv(i){if(i.startsWith(`${$h}:${wv}:{`))try{let u=JSON.parse(i.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function Av(i){if(i.startsWith(`${$h}:${jv}:{`))try{let u=JSON.parse(i.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new vv(u.status,u.statusText,u.data)}catch{}}function Tv(i,{relative:u}={}){ze(tl(),"useHref() may be used only in the context of a <Router> component.");let{basename:d,navigator:c}=E.useContext(Tt),{hash:h,pathname:p,search:y}=ii(i,{relative:u}),j=p;return d!=="/"&&(j=p==="/"?d:va([d,p])),c.createHref({pathname:j,search:y,hash:h})}function tl(){return E.useContext(li)!=null}function Pt(){return ze(tl(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(li).location}var Jh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ih(i){E.useContext(Tt).static||E.useLayoutEffect(i)}function Wh(){let{isDataRoute:i}=E.useContext(Yt);return i?Xv():Nv()}function Nv(){ze(tl(),"useNavigate() may be used only in the context of a <Router> component.");let i=E.useContext(el),{basename:u,navigator:d}=E.useContext(Tt),{matches:c}=E.useContext(Yt),{pathname:h}=Pt(),p=JSON.stringify(fc(c)),y=E.useRef(!1);return Ih(()=>{y.current=!0}),E.useCallback((S,v={})=>{if(Bt(y.current,Jh),!y.current)return;if(typeof S=="number"){d.go(S);return}let C=hc(S,JSON.parse(p),h,v.relative==="path");i==null&&u!=="/"&&(C.pathname=C.pathname==="/"?u:va([u,C.pathname])),(v.replace?d.replace:d.push)(C,v.state,v)},[u,d,p,h,i])}var Dv=E.createContext(null);function Ov(i){let u=E.useContext(Yt).outlet;return E.useMemo(()=>u&&E.createElement(Dv.Provider,{value:i},u),[u,i])}function Uv(){let{matches:i}=E.useContext(Yt),u=i[i.length-1];return u?u.params:{}}function ii(i,{relative:u}={}){let{matches:d}=E.useContext(Yt),{pathname:c}=Pt(),h=JSON.stringify(fc(d));return E.useMemo(()=>hc(i,JSON.parse(h),c,u==="path"),[i,h,c,u])}function Mv(i,u){return Ph(i,u)}function Ph(i,u,d,c,h){ze(tl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:p}=E.useContext(Tt),{matches:y}=E.useContext(Yt),j=y[y.length-1],S=j?j.params:{},v=j?j.pathname:"/",C=j?j.pathnameBase:"/",w=j&&j.route;{let X=w&&w.path||"";ep(v,!w||X.endsWith("*")||X.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${X}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${X}"> to <Route path="${X==="/"?"*":`${X}/*`}">.`)}let x=Pt(),U;if(u){let X=typeof u=="string"?Fn(u):u;ze(C==="/"||X.pathname?.startsWith(C),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${C}" but pathname "${X.pathname}" was given in the \`location\` prop.`),U=X}else U=x;let H=U.pathname||"/",_=H;if(C!=="/"){let X=C.replace(/^\//,"").split("/");_="/"+H.replace(/^\//,"").split("/").slice(X.length).join("/")}let Y=Bh(i,{pathname:_});Bt(w||Y!=null,`No routes matched location "${U.pathname}${U.search}${U.hash}" `),Bt(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.length-1].route.lazy!==void 0,`Matched leaf route at location "${U.pathname}${U.search}${U.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let W=Lv(Y&&Y.map(X=>Object.assign({},X,{params:Object.assign({},S,X.params),pathname:va([C,p.encodeLocation?p.encodeLocation(X.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathname]),pathnameBase:X.pathnameBase==="/"?C:va([C,p.encodeLocation?p.encodeLocation(X.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathnameBase])})),y,d,c,h);return u&&W?E.createElement(li.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...U},navigationType:"POP"}},W):W}function _v(){let i=Vv(),u=gv(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),d=i instanceof Error?i.stack:null,c="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:c},p={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:p},"ErrorBoundary")," or"," ",E.createElement("code",{style:p},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},u),d?E.createElement("pre",{style:h},d):null,y)}var zv=E.createElement(_v,null),Fh=class extends E.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,u){return u.location!==i.location||u.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:u.error,location:u.location,revalidation:i.revalidation||u.revalidation}}componentDidCatch(i,u){this.props.onError?this.props.onError(i,u):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const d=Av(i.digest);d&&(i=d)}let u=i!==void 0?E.createElement(Yt.Provider,{value:this.props.routeContext},E.createElement(pc.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?E.createElement(qv,{error:i},u):u}};Fh.contextType=Sv;var ac=new WeakMap;function qv({children:i,error:u}){let{basename:d}=E.useContext(Tt);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let c=Cv(u.digest);if(c){let h=ac.get(u);if(h)throw h;let p=Qh(c.location,d);if(Xh&&!ac.get(u))if(p.isExternal||c.reloadDocument)window.location.href=p.absoluteURL||p.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(p.to,{replace:c.replace}));throw ac.set(u,y),y}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p.absoluteURL||p.to}`})}}return i}function kv({routeContext:i,match:u,children:d}){let c=E.useContext(el);return c&&c.static&&c.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=u.route.id),E.createElement(Yt.Provider,{value:i},d)}function Lv(i,u=[],d=null,c=null,h=null){if(i==null){if(!d)return null;if(d.errors)i=d.matches;else if(u.length===0&&!d.initialized&&d.matches.length>0)i=d.matches;else return null}let p=i,y=d?.errors;if(y!=null){let C=p.findIndex(w=>w.route.id&&y?.[w.route.id]!==void 0);ze(C>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),p=p.slice(0,Math.min(p.length,C+1))}let j=!1,S=-1;if(d)for(let C=0;C<p.length;C++){let w=p[C];if((w.route.HydrateFallback||w.route.hydrateFallbackElement)&&(S=C),w.route.id){let{loaderData:x,errors:U}=d,H=w.route.loader&&!x.hasOwnProperty(w.route.id)&&(!U||U[w.route.id]===void 0);if(w.route.lazy||H){j=!0,S>=0?p=p.slice(0,S+1):p=[p[0]];break}}}let v=d&&c?(C,w)=>{c(C,{location:d.location,params:d.matches?.[0]?.params??{},unstable_pattern:bv(d.matches),errorInfo:w})}:void 0;return p.reduceRight((C,w,x)=>{let U,H=!1,_=null,Y=null;d&&(U=y&&w.route.id?y[w.route.id]:void 0,_=w.route.errorElement||zv,j&&(S<0&&x===0?(ep("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,Y=null):S===x&&(H=!0,Y=w.route.hydrateFallbackElement||null)));let W=u.concat(p.slice(0,x+1)),X=()=>{let Z;return U?Z=_:H?Z=Y:w.route.Component?Z=E.createElement(w.route.Component,null):w.route.element?Z=w.route.element:Z=C,E.createElement(kv,{match:w,routeContext:{outlet:C,matches:W,isDataRoute:d!=null},children:Z})};return d&&(w.route.ErrorBoundary||w.route.errorElement||x===0)?E.createElement(Fh,{location:d.location,revalidation:d.revalidation,component:_,error:U,children:X(),routeContext:{outlet:null,matches:W,isDataRoute:!0},onError:v}):X()},null)}function mc(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hv(i){let u=E.useContext(el);return ze(u,mc(i)),u}function Bv(i){let u=E.useContext(Ms);return ze(u,mc(i)),u}function Yv(i){let u=E.useContext(Yt);return ze(u,mc(i)),u}function yc(i){let u=Yv(i),d=u.matches[u.matches.length-1];return ze(d.route.id,`${i} can only be used on routes that contain a unique "id"`),d.route.id}function Gv(){return yc("useRouteId")}function Vv(){let i=E.useContext(pc),u=Bv("useRouteError"),d=yc("useRouteError");return i!==void 0?i:u.errors?.[d]}function Xv(){let{router:i}=Hv("useNavigate"),u=yc("useNavigate"),d=E.useRef(!1);return Ih(()=>{d.current=!0}),E.useCallback(async(h,p={})=>{Bt(d.current,Jh),d.current&&(typeof h=="number"?await i.navigate(h):await i.navigate(h,{fromRouteId:u,...p}))},[i,u])}var Nh={};function ep(i,u,d){!u&&!Nh[i]&&(Nh[i]=!0,Bt(!1,d))}E.memo(Qv);function Qv({routes:i,future:u,state:d,onError:c}){return Ph(i,void 0,d,c,u)}function Zv({to:i,replace:u,state:d,relative:c}){ze(tl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:h}=E.useContext(Tt);Bt(!h,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:p}=E.useContext(Yt),{pathname:y}=Pt(),j=Wh(),S=hc(i,fc(p),y,c==="path"),v=JSON.stringify(S);return E.useEffect(()=>{j(JSON.parse(v),{replace:u,state:d,relative:c})},[j,v,c,u,d]),null}function Kv(i){return Ov(i.context)}function ya(i){ze(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function $v({basename:i="/",children:u=null,location:d,navigationType:c="POP",navigator:h,static:p=!1,unstable_useTransitions:y}){ze(!tl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let j=i.replace(/^\/*/,"/"),S=E.useMemo(()=>({basename:j,navigator:h,static:p,unstable_useTransitions:y,future:{}}),[j,h,p,y]);typeof d=="string"&&(d=Fn(d));let{pathname:v="/",search:C="",hash:w="",state:x=null,key:U="default"}=d,H=E.useMemo(()=>{let _=ba(v,j);return _==null?null:{location:{pathname:_,search:C,hash:w,state:x,key:U},navigationType:c}},[j,v,C,w,x,U,c]);return Bt(H!=null,`<Router basename="${j}"> is not able to match the URL "${v}${C}${w}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:E.createElement(Tt.Provider,{value:S},E.createElement(li.Provider,{children:u,value:H}))}function Jv({children:i,location:u}){return Mv(uc(i),u)}function uc(i,u=[]){let d=[];return E.Children.forEach(i,(c,h)=>{if(!E.isValidElement(c))return;let p=[...u,h];if(c.type===E.Fragment){d.push.apply(d,uc(c.props.children,p));return}ze(c.type===ya,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ze(!c.props.index||!c.props.children,"An index route cannot have child routes.");let y={id:c.props.id||p.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(y.children=uc(c.props.children,p)),d.push(y)}),d}var Es="get",Rs="application/x-www-form-urlencoded";function _s(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Iv(i){return _s(i)&&i.tagName.toLowerCase()==="button"}function Wv(i){return _s(i)&&i.tagName.toLowerCase()==="form"}function Pv(i){return _s(i)&&i.tagName.toLowerCase()==="input"}function Fv(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function eg(i,u){return i.button===0&&(!u||u==="_self")&&!Fv(i)}var xs=null;function tg(){if(xs===null)try{new FormData(document.createElement("form"),0),xs=!1}catch{xs=!0}return xs}var ag=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nc(i){return i!=null&&!ag.has(i)?(Bt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Rs}"`),null):i}function ng(i,u){let d,c,h,p,y;if(Wv(i)){let j=i.getAttribute("action");c=j?ba(j,u):null,d=i.getAttribute("method")||Es,h=nc(i.getAttribute("enctype"))||Rs,p=new FormData(i)}else if(Iv(i)||Pv(i)&&(i.type==="submit"||i.type==="image")){let j=i.form;if(j==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let S=i.getAttribute("formaction")||j.getAttribute("action");if(c=S?ba(S,u):null,d=i.getAttribute("formmethod")||j.getAttribute("method")||Es,h=nc(i.getAttribute("formenctype"))||nc(j.getAttribute("enctype"))||Rs,p=new FormData(j,i),!tg()){let{name:v,type:C,value:w}=i;if(C==="image"){let x=v?`${v}.`:"";p.append(`${x}x`,"0"),p.append(`${x}y`,"0")}else v&&p.append(v,w)}}else{if(_s(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');d=Es,c=null,h=Rs,y=i}return p&&h==="text/plain"&&(y=p,p=void 0),{action:c,method:d.toLowerCase(),encType:h,formData:p,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function vc(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function lg(i,u,d,c){let h=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return d?h.pathname.endsWith("/")?h.pathname=`${h.pathname}_.${c}`:h.pathname=`${h.pathname}.${c}`:h.pathname==="/"?h.pathname=`_root.${c}`:u&&ba(h.pathname,u)==="/"?h.pathname=`${u.replace(/\/$/,"")}/_root.${c}`:h.pathname=`${h.pathname.replace(/\/$/,"")}.${c}`,h}async function ig(i,u){if(i.id in u)return u[i.id];try{let d=await import(i.module);return u[i.id]=d,d}catch(d){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(d),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sg(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function rg(i,u,d){let c=await Promise.all(i.map(async h=>{let p=u.routes[h.route.id];if(p){let y=await ig(p,d);return y.links?y.links():[]}return[]}));return dg(c.flat(1).filter(sg).filter(h=>h.rel==="stylesheet"||h.rel==="preload").map(h=>h.rel==="stylesheet"?{...h,rel:"prefetch",as:"style"}:{...h,rel:"prefetch"}))}function Dh(i,u,d,c,h,p){let y=(S,v)=>d[v]?S.route.id!==d[v].route.id:!0,j=(S,v)=>d[v].pathname!==S.pathname||d[v].route.path?.endsWith("*")&&d[v].params["*"]!==S.params["*"];return p==="assets"?u.filter((S,v)=>y(S,v)||j(S,v)):p==="data"?u.filter((S,v)=>{let C=c.routes[S.route.id];if(!C||!C.hasLoader)return!1;if(y(S,v)||j(S,v))return!0;if(S.route.shouldRevalidate){let w=S.route.shouldRevalidate({currentUrl:new URL(h.pathname+h.search+h.hash,window.origin),currentParams:d[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function ug(i,u,{includeHydrateFallback:d}={}){return cg(i.map(c=>{let h=u.routes[c.route.id];if(!h)return[];let p=[h.module];return h.clientActionModule&&(p=p.concat(h.clientActionModule)),h.clientLoaderModule&&(p=p.concat(h.clientLoaderModule)),d&&h.hydrateFallbackModule&&(p=p.concat(h.hydrateFallbackModule)),h.imports&&(p=p.concat(h.imports)),p}).flat(1))}function cg(i){return[...new Set(i)]}function og(i){let u={},d=Object.keys(i).sort();for(let c of d)u[c]=i[c];return u}function dg(i,u){let d=new Set;return new Set(u),i.reduce((c,h)=>{let p=JSON.stringify(og(h));return d.has(p)||(d.add(p),c.push({key:p,link:h})),c},[])}function tp(){let i=E.useContext(el);return vc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function fg(){let i=E.useContext(Ms);return vc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var gc=E.createContext(void 0);gc.displayName="FrameworkContext";function ap(){let i=E.useContext(gc);return vc(i,"You must render this element inside a <HydratedRouter> element"),i}function hg(i,u){let d=E.useContext(gc),[c,h]=E.useState(!1),[p,y]=E.useState(!1),{onFocus:j,onBlur:S,onMouseEnter:v,onMouseLeave:C,onTouchStart:w}=u,x=E.useRef(null);E.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let _=W=>{W.forEach(X=>{y(X.isIntersecting)})},Y=new IntersectionObserver(_,{threshold:.5});return x.current&&Y.observe(x.current),()=>{Y.disconnect()}}},[i]),E.useEffect(()=>{if(c){let _=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(_)}}},[c]);let U=()=>{h(!0)},H=()=>{h(!1),y(!1)};return d?i!=="intent"?[p,x,{}]:[p,x,{onFocus:ti(j,U),onBlur:ti(S,H),onMouseEnter:ti(v,U),onMouseLeave:ti(C,H),onTouchStart:ti(w,U)}]:[!1,x,{}]}function ti(i,u){return d=>{i&&i(d),d.defaultPrevented||u(d)}}function pg({page:i,...u}){let{router:d}=tp(),c=E.useMemo(()=>Bh(d.routes,i,d.basename),[d.routes,i,d.basename]);return c?E.createElement(yg,{page:i,matches:c,...u}):null}function mg(i){let{manifest:u,routeModules:d}=ap(),[c,h]=E.useState([]);return E.useEffect(()=>{let p=!1;return rg(i,u,d).then(y=>{p||h(y)}),()=>{p=!0}},[i,u,d]),c}function yg({page:i,matches:u,...d}){let c=Pt(),{future:h,manifest:p,routeModules:y}=ap(),{basename:j}=tp(),{loaderData:S,matches:v}=fg(),C=E.useMemo(()=>Dh(i,u,v,p,c,"data"),[i,u,v,p,c]),w=E.useMemo(()=>Dh(i,u,v,p,c,"assets"),[i,u,v,p,c]),x=E.useMemo(()=>{if(i===c.pathname+c.search+c.hash)return[];let _=new Set,Y=!1;if(u.forEach(X=>{let Z=p.routes[X.route.id];!Z||!Z.hasLoader||(!C.some(xe=>xe.route.id===X.route.id)&&X.route.id in S&&y[X.route.id]?.shouldRevalidate||Z.hasClientLoader?Y=!0:_.add(X.route.id))}),_.size===0)return[];let W=lg(i,j,h.unstable_trailingSlashAwareDataRequests,"data");return Y&&_.size>0&&W.searchParams.set("_routes",u.filter(X=>_.has(X.route.id)).map(X=>X.route.id).join(",")),[W.pathname+W.search]},[j,h.unstable_trailingSlashAwareDataRequests,S,c,p,C,u,i,y]),U=E.useMemo(()=>ug(w,p),[w,p]),H=mg(w);return E.createElement(E.Fragment,null,x.map(_=>E.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...d})),U.map(_=>E.createElement("link",{key:_,rel:"modulepreload",href:_,...d})),H.map(({key:_,link:Y})=>E.createElement("link",{key:_,nonce:d.nonce,...Y})))}function vg(...i){return u=>{i.forEach(d=>{typeof d=="function"?d(u):d!=null&&(d.current=u)})}}var gg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gg&&(window.__reactRouterVersion="7.12.0")}catch{}function bg({basename:i,children:u,unstable_useTransitions:d,window:c}){let h=E.useRef();h.current==null&&(h.current=$y({window:c,v5Compat:!0}));let p=h.current,[y,j]=E.useState({action:p.action,location:p.location}),S=E.useCallback(v=>{d===!1?j(v):E.startTransition(()=>j(v))},[d]);return E.useLayoutEffect(()=>p.listen(S),[p,S]),E.createElement($v,{basename:i,children:u,location:y.location,navigationType:y.action,navigator:p,unstable_useTransitions:d})}var np=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,it=E.forwardRef(function({onClick:u,discover:d="render",prefetch:c="none",relative:h,reloadDocument:p,replace:y,state:j,target:S,to:v,preventScrollReset:C,viewTransition:w,unstable_defaultShouldRevalidate:x,...U},H){let{basename:_,unstable_useTransitions:Y}=E.useContext(Tt),W=typeof v=="string"&&np.test(v),X=Qh(v,_);v=X.to;let Z=Tv(v,{relative:h}),[xe,I,Ne]=hg(c,U),de=Rg(v,{replace:y,state:j,target:S,preventScrollReset:C,relative:h,viewTransition:w,unstable_defaultShouldRevalidate:x,unstable_useTransitions:Y});function Ue(Xe){u&&u(Xe),Xe.defaultPrevented||de(Xe)}let He=E.createElement("a",{...U,...Ne,href:X.absoluteURL||Z,onClick:X.isExternal||p?u:Ue,ref:vg(H,I),target:S,"data-discover":!W&&d==="render"?"true":void 0});return xe&&!W?E.createElement(E.Fragment,null,He,E.createElement(pg,{page:Z})):He});it.displayName="Link";var xg=E.forwardRef(function({"aria-current":u="page",caseSensitive:d=!1,className:c="",end:h=!1,style:p,to:y,viewTransition:j,children:S,...v},C){let w=ii(y,{relative:v.relative}),x=Pt(),U=E.useContext(Ms),{navigator:H,basename:_}=E.useContext(Tt),Y=U!=null&&Tg(w)&&j===!0,W=H.encodeLocation?H.encodeLocation(w).pathname:w.pathname,X=x.pathname,Z=U&&U.navigation&&U.navigation.location?U.navigation.location.pathname:null;d||(X=X.toLowerCase(),Z=Z?Z.toLowerCase():null,W=W.toLowerCase()),Z&&_&&(Z=ba(Z,_)||Z);const xe=W!=="/"&&W.endsWith("/")?W.length-1:W.length;let I=X===W||!h&&X.startsWith(W)&&X.charAt(xe)==="/",Ne=Z!=null&&(Z===W||!h&&Z.startsWith(W)&&Z.charAt(W.length)==="/"),de={isActive:I,isPending:Ne,isTransitioning:Y},Ue=I?u:void 0,He;typeof c=="function"?He=c(de):He=[c,I?"active":null,Ne?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let Xe=typeof p=="function"?p(de):p;return E.createElement(it,{...v,"aria-current":Ue,className:He,ref:C,style:Xe,to:y,viewTransition:j},typeof S=="function"?S(de):S)});xg.displayName="NavLink";var Sg=E.forwardRef(({discover:i="render",fetcherKey:u,navigate:d,reloadDocument:c,replace:h,state:p,method:y=Es,action:j,onSubmit:S,relative:v,preventScrollReset:C,viewTransition:w,unstable_defaultShouldRevalidate:x,...U},H)=>{let{unstable_useTransitions:_}=E.useContext(Tt),Y=Cg(),W=Ag(j,{relative:v}),X=y.toLowerCase()==="get"?"get":"post",Z=typeof j=="string"&&np.test(j),xe=I=>{if(S&&S(I),I.defaultPrevented)return;I.preventDefault();let Ne=I.nativeEvent.submitter,de=Ne?.getAttribute("formmethod")||y,Ue=()=>Y(Ne||I.currentTarget,{fetcherKey:u,method:de,navigate:d,replace:h,state:p,relative:v,preventScrollReset:C,viewTransition:w,unstable_defaultShouldRevalidate:x});_&&d!==!1?E.startTransition(()=>Ue()):Ue()};return E.createElement("form",{ref:H,method:X,action:W,onSubmit:c?S:xe,...U,"data-discover":!Z&&i==="render"?"true":void 0})});Sg.displayName="Form";function Eg(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lp(i){let u=E.useContext(el);return ze(u,Eg(i)),u}function Rg(i,{target:u,replace:d,state:c,preventScrollReset:h,relative:p,viewTransition:y,unstable_defaultShouldRevalidate:j,unstable_useTransitions:S}={}){let v=Wh(),C=Pt(),w=ii(i,{relative:p});return E.useCallback(x=>{if(eg(x,u)){x.preventDefault();let U=d!==void 0?d:ni(C)===ni(w),H=()=>v(i,{replace:U,state:c,preventScrollReset:h,relative:p,viewTransition:y,unstable_defaultShouldRevalidate:j});S?E.startTransition(()=>H()):H()}},[C,v,w,d,c,u,i,h,p,y,j,S])}var wg=0,jg=()=>`__${String(++wg)}__`;function Cg(){let{router:i}=lp("useSubmit"),{basename:u}=E.useContext(Tt),d=Gv(),c=i.fetch,h=i.navigate;return E.useCallback(async(p,y={})=>{let{action:j,method:S,encType:v,formData:C,body:w}=ng(p,u);if(y.navigate===!1){let x=y.fetcherKey||jg();await c(x,d,y.action||j,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:C,body:w,formMethod:y.method||S,formEncType:y.encType||v,flushSync:y.flushSync})}else await h(y.action||j,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:C,body:w,formMethod:y.method||S,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:d,flushSync:y.flushSync,viewTransition:y.viewTransition})},[c,h,u,d])}function Ag(i,{relative:u}={}){let{basename:d}=E.useContext(Tt),c=E.useContext(Yt);ze(c,"useFormAction must be used inside a RouteContext");let[h]=c.matches.slice(-1),p={...ii(i||".",{relative:u})},y=Pt();if(i==null){p.search=y.search;let j=new URLSearchParams(p.search),S=j.getAll("index");if(S.some(C=>C==="")){j.delete("index"),S.filter(w=>w).forEach(w=>j.append("index",w));let C=j.toString();p.search=C?`?${C}`:""}}return(!i||i===".")&&h.route.index&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),d!=="/"&&(p.pathname=p.pathname==="/"?d:va([d,p.pathname])),ni(p)}function Tg(i,{relative:u}={}){let d=E.useContext(Kh);ze(d!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=lp("useViewTransitionState"),h=ii(i,{relative:u});if(!d.isTransitioning)return!1;let p=ba(d.currentLocation.pathname,c)||d.currentLocation.pathname,y=ba(d.nextLocation.pathname,c)||d.nextLocation.pathname;return js(h.pathname,y)!=null||js(h.pathname,p)!=null}/**
|
|
61
|
-
* @license lucide-react v0.468.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const Ng=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ip=(...i)=>i.filter((u,d,c)=>!!u&&u.trim()!==""&&c.indexOf(u)===d).join(" ").trim();/**
|
|
66
|
-
* @license lucide-react v0.468.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/var Dg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
71
|
-
* @license lucide-react v0.468.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const Og=E.forwardRef(({color:i="currentColor",size:u=24,strokeWidth:d=2,absoluteStrokeWidth:c,className:h="",children:p,iconNode:y,...j},S)=>E.createElement("svg",{ref:S,...Dg,width:u,height:u,stroke:i,strokeWidth:c?Number(d)*24/Number(u):d,className:ip("lucide",h),...j},[...y.map(([v,C])=>E.createElement(v,C)),...Array.isArray(p)?p:[p]]));/**
|
|
76
|
-
* @license lucide-react v0.468.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const ue=(i,u)=>{const d=E.forwardRef(({className:c,...h},p)=>E.createElement(Og,{ref:p,iconNode:u,className:ip(`lucide-${Ng(i)}`,c),...h}));return d.displayName=`${i}`,d};/**
|
|
81
|
-
* @license lucide-react v0.468.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const Ug=ue("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
86
|
-
* @license lucide-react v0.468.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const Mg=ue("ArrowDownLeft",[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]]);/**
|
|
91
|
-
* @license lucide-react v0.468.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const Cs=ue("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
96
|
-
* @license lucide-react v0.468.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const Wt=ue("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
|
|
101
|
-
* @license lucide-react v0.468.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const sp=ue("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
106
|
-
* @license lucide-react v0.468.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const rp=ue("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
111
|
-
* @license lucide-react v0.468.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const bc=ue("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
116
|
-
* @license lucide-react v0.468.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const _g=ue("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
121
|
-
* @license lucide-react v0.468.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const zg=ue("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
126
|
-
* @license lucide-react v0.468.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const qg=ue("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
131
|
-
* @license lucide-react v0.468.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const up=ue("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
136
|
-
* @license lucide-react v0.468.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const cp=ue("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
141
|
-
* @license lucide-react v0.468.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const kg=ue("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);/**
|
|
146
|
-
* @license lucide-react v0.468.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const Lg=ue("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
151
|
-
* @license lucide-react v0.468.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const Hg=ue("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
156
|
-
* @license lucide-react v0.468.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const xc=ue("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
161
|
-
* @license lucide-react v0.468.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const Bg=ue("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
|
|
166
|
-
* @license lucide-react v0.468.0 - ISC
|
|
167
|
-
*
|
|
168
|
-
* This source code is licensed under the ISC license.
|
|
169
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const Yg=ue("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
171
|
-
* @license lucide-react v0.468.0 - ISC
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the ISC license.
|
|
174
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const Gg=ue("FileJson",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);/**
|
|
176
|
-
* @license lucide-react v0.468.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const Vg=ue("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
181
|
-
* @license lucide-react v0.468.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const Xg=ue("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
186
|
-
* @license lucide-react v0.468.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const Qg=ue("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
|
|
191
|
-
* @license lucide-react v0.468.0 - ISC
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the ISC license.
|
|
194
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const Zg=ue("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
196
|
-
* @license lucide-react v0.468.0 - ISC
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the ISC license.
|
|
199
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/const op=ue("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/**
|
|
201
|
-
* @license lucide-react v0.468.0 - ISC
|
|
202
|
-
*
|
|
203
|
-
* This source code is licensed under the ISC license.
|
|
204
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/const Kg=ue("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
|
|
206
|
-
* @license lucide-react v0.468.0 - ISC
|
|
207
|
-
*
|
|
208
|
-
* This source code is licensed under the ISC license.
|
|
209
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
-
*/const dp=ue("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
211
|
-
* @license lucide-react v0.468.0 - ISC
|
|
212
|
-
*
|
|
213
|
-
* This source code is licensed under the ISC license.
|
|
214
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
-
*/const fp=ue("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
|
216
|
-
* @license lucide-react v0.468.0 - ISC
|
|
217
|
-
*
|
|
218
|
-
* This source code is licensed under the ISC license.
|
|
219
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
-
*/const hp=ue("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
221
|
-
* @license lucide-react v0.468.0 - ISC
|
|
222
|
-
*
|
|
223
|
-
* This source code is licensed under the ISC license.
|
|
224
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
-
*/const pp=ue("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
226
|
-
* @license lucide-react v0.468.0 - ISC
|
|
227
|
-
*
|
|
228
|
-
* This source code is licensed under the ISC license.
|
|
229
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
-
*/const Oh=ue("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
231
|
-
* @license lucide-react v0.468.0 - ISC
|
|
232
|
-
*
|
|
233
|
-
* This source code is licensed under the ISC license.
|
|
234
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
-
*/const ai=ue("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
236
|
-
* @license lucide-react v0.468.0 - ISC
|
|
237
|
-
*
|
|
238
|
-
* This source code is licensed under the ISC license.
|
|
239
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
-
*/const $g=ue("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);/**
|
|
241
|
-
* @license lucide-react v0.468.0 - ISC
|
|
242
|
-
*
|
|
243
|
-
* This source code is licensed under the ISC license.
|
|
244
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
-
*/const Pn=ue("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
246
|
-
* @license lucide-react v0.468.0 - ISC
|
|
247
|
-
*
|
|
248
|
-
* This source code is licensed under the ISC license.
|
|
249
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
-
*/const As=ue("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/**
|
|
251
|
-
* @license lucide-react v0.468.0 - ISC
|
|
252
|
-
*
|
|
253
|
-
* This source code is licensed under the ISC license.
|
|
254
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
-
*/const zs=ue("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/**
|
|
256
|
-
* @license lucide-react v0.468.0 - ISC
|
|
257
|
-
*
|
|
258
|
-
* This source code is licensed under the ISC license.
|
|
259
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
-
*/const Jg=ue("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
261
|
-
* @license lucide-react v0.468.0 - ISC
|
|
262
|
-
*
|
|
263
|
-
* This source code is licensed under the ISC license.
|
|
264
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
-
*/const Ig=ue("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
266
|
-
* @license lucide-react v0.468.0 - ISC
|
|
267
|
-
*
|
|
268
|
-
* This source code is licensed under the ISC license.
|
|
269
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
-
*/const lc=ue("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Wg=[{path:"/",icon:zs,label:"Workflow",shortLabel:"Workflow"},{path:"/docs",icon:sp,label:"Docs",shortLabel:"Docs"}],Pg=(i,u)=>i==="/"?u==="/"||u==="/cre":u===i||u.startsWith(`${i}/`);function Fg(){const{pathname:i}=Pt();return r.jsx("header",{className:"app-header",children:r.jsxs("div",{className:"app-header-inner",children:[r.jsxs(it,{to:"/","aria-label":"AgentPay home",className:"app-brand",children:[r.jsx("span",{"aria-hidden":"true",children:"A"}),"AgentPay"]}),r.jsx("nav",{"aria-label":"Main navigation",children:Wg.map(({path:u,label:d})=>r.jsx(it,{to:u,"aria-current":Pg(u,i)?"page":void 0,children:d},u))}),r.jsxs("div",{className:"app-network",children:[r.jsx("span",{children:i==="/legacy"||i.startsWith("/docs/cre")?"Sepolia archive":"NEAR"}),r.jsx("span",{children:"Test environment"})]})]})})}class e0 extends E.Component{constructor(u){super(u),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(u){return{hasError:!0,error:u}}componentDidCatch(u,d){this.setState({errorInfo:d}),console.error("ErrorBoundary caught an error:",u,d)}handleRetry=()=>{this.setState({hasError:!1,error:null,errorInfo:null}),this.props.onRetry&&this.props.onRetry()};render(){return this.state.hasError?this.props.fallback?this.props.fallback:r.jsx(t0,{error:this.state.error,onRetry:this.handleRetry,variant:this.props.variant}):this.props.children}}function t0({error:i,onRetry:u,variant:d="default"}){const c={default:{container:"card-glass p-6 md:p-8",Icon:Pn,title:"Something went wrong"},inline:{container:"p-4 rounded-xl bg-error-500/10 border border-error-500/20",Icon:Pn,title:"Error loading content"},fullscreen:{container:"min-h-[50vh] flex items-center justify-center",Icon:Jg,title:"Oops! Something broke"}},h=c[d]||c.default,p=h.Icon;return r.jsx("div",{className:h.container,children:r.jsxs("div",{className:`text-center ${d==="fullscreen"?"max-w-md mx-auto":""}`,children:[r.jsx("div",{className:"flex justify-center mb-4",children:r.jsx(p,{className:"w-12 h-12 text-warning-400"})}),r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:h.title}),r.jsx("p",{className:"text-sm text-white/60 mb-4",children:i?.message||"An unexpected error occurred. Please try again."}),r.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 justify-center",children:[r.jsxs("button",{onClick:u,className:"btn-primary min-h-[44px] touch-manipulation flex items-center justify-center gap-2",children:[r.jsx(hp,{className:"w-4 h-4"})," Try Again"]}),r.jsx("button",{onClick:()=>window.location.reload(),className:"btn-outline min-h-[44px] touch-manipulation",children:"Refresh Page"})]}),!1]})})}function a0(){const{pathname:i}=Pt(),u=E.useRef(i);return E.useEffect(()=>{const d=document.querySelector("main h1")?.textContent;document.title=d?`${d} · AgentPay`:"AgentPay — Deterministic payment guardrails",u.current!==i&&(window.scrollTo({top:0,behavior:"instant"}),document.getElementById("main-content")?.focus({preventScroll:!0}),u.current=i)},[i]),r.jsxs("div",{className:"min-h-screen",children:[r.jsx("a",{href:"#main-content",className:"skip-link",children:"Skip to content"}),r.jsx(Fg,{}),r.jsx("main",{id:"main-content",tabIndex:-1,className:"app-main",children:r.jsx(e0,{children:r.jsx(Kv,{})},i)}),i!=="/"&&i!=="/cre"&&r.jsxs("footer",{className:"app-footer mx-auto flex max-w-7xl flex-wrap items-center justify-between gap-3 px-4 pt-8 text-xs text-slate-400 sm:px-6 lg:px-8",children:[r.jsx("p",{children:"AgentPay · NEAR · Testnet tokens have no monetary value."}),r.jsx(it,{to:"/docs",className:"min-h-11 inline-flex items-center text-slate-300 hover:text-white",children:"Workflow & trust boundaries ↗"})]})]})}const n0=Object.freeze(["run.start","step.start","cre.result","api.reuse","fault","wallet.tx","audit.receipt","stream.opened","stream.closed","cleanup","run.end","error"]),Lt=i=>i&&typeof i=="object"&&!Array.isArray(i),Xa=i=>typeof i=="string"&&/^[0-9]+$/.test(i),ic=i=>typeof i=="string"&&/^0x[0-9a-f]{64}$/i.test(i);function mp(i){if(!Lt(i)||Object.keys(i).sort().join()!=="at,data,runId,schemaVersion,seq,type"||i.schemaVersion!==1||!n0.includes(i.type)||!/^[a-zA-Z0-9-]{8,100}$/.test(i.runId)||!Number.isSafeInteger(i.seq)||i.seq<1||typeof i.at!="string"||!Number.isFinite(Date.parse(i.at))||!Lt(i.data))throw new Error("Invalid run event envelope.");const u=i.data;if(JSON.stringify(i).length>2e5)throw new Error("Run event too large.");function d(c){if(typeof c=="string"&&/(?:^|\s)(?:\/Users\/|\/home\/|\/private\/|[A-Za-z]:\\)/.test(c))throw new Error("Absolute path in public event.");if(!(!c||typeof c!="object"))for(const[h,p]of Object.entries(c)){if(/^(?:apiKey|privateKey|secret|authorization|prompt|input|output|env)$/i.test(h))throw new Error("Private field in public event.");d(p)}}if(d(u),i.type==="run.start"&&(!["preview","pay"].includes(u.mode)||!Lt(u.profile)||typeof u.planner!="string"||!Lt(u.balances)))throw new Error("Invalid run start.");if(i.type==="run.start"&&i.data.contractPolicySignatures!==void 0&&typeof i.data.contractPolicySignatures!="boolean")throw new Error("Invalid contract enforcement marker.");if(i.type==="cre.result"&&(!["price","stream","spend"].includes(u.target)||typeof u.command!="string"||!["ALLOW","DENY","OPEN","CONTINUE","CLOSE","BLOCK","ERROR"].includes(u.decision)||typeof u.reason!="string"||typeof u.hostCheck!="boolean"||!Lt(u.observations)))throw new Error("Invalid CRE result.");if(i.type==="cre.result"){const c=u.observations,h=y=>Number.isSafeInteger(y)&&y>=0,p=y=>Lt(y)&&h(y.successfulRequests)&&h(y.failedRequests);if(u.target==="price"&&(!Xa(c.externalPriceUsd8)||!Xa(c.chainlinkPriceUsd8)||!h(c.observedAt)||!h(c.feedUpdatedAt)||!h(c.maxFeedAgeSeconds)||!h(c.maxDeviationBps)||!h(c.maxPegDeviationBps)||!Lt(c.request)||!Xa(c.request.amount)||!Xa(c.request.spendingCap)))throw new Error("Invalid price observations.");if(u.target==="stream"&&(!Lt(c.config)||!Xa(c.config.amountRaw)||!Xa(c.config.spendingCapRaw)||!h(c.config.durationSeconds)||c.config.durationSeconds===0||!Xa(c.config.maxRateRawPerSecond)||!h(c.config.observationBlock)||!h(c.config.maxFailedRequests)||!p(c.config.client)||!p(c.health)||typeof c.health.serviceAvailable!="boolean"))throw new Error("Invalid stream observations.");if(u.target==="spend"&&(!Lt(c.decision)||typeof c.decision.operation!="string"&&c.decision.operation!==void 0||!h(c.decision.riskScore)||c.decision.riskScore>100||c.intent!==void 0&&(!Lt(c.intent)||!Lt(c.intent.policy))))throw new Error("Invalid spend observations.")}for(const c of["configPath","transcriptPath"])if(u[c]!==void 0&&(typeof u[c]!="string"||!/^(?:\.local|docs)\/[a-zA-Z0-9_./-]+$/.test(u[c])||u[c].split("/").includes("..")))throw new Error("Unsafe artifact path.");if(i.type==="wallet.tx"&&(!["approval","open","close"].includes(u.kind)||!ic(u.hash)||!["submitting","confirmed"].includes(u.status)||u.explorerUrl!==`https://sepolia.etherscan.io/tx/${u.hash}`))throw new Error("Invalid wallet transaction.");if(i.type==="audit.receipt"&&(!ic(u.hash)||!ic(u.root)||!Number.isSafeInteger(u.count)||u.count<1))throw new Error("Invalid audit receipt.");if(i.type==="api.reuse"&&(![u.successfulRequests,u.failedRequests].every(c=>Number.isSafeInteger(c)&&c>=0)||!/^[1-9][0-9]*$/.test(u.streamId)))throw new Error("Invalid request counters.");if(i.type==="api.reuse"&&u.hostCheckedNoPaymentTransactions!==void 0&&(u.hostCheckedNoPaymentTransactions!==!0||!Number.isSafeInteger(u.walletNonceBefore)||u.walletNonceBefore<0||u.walletNonceAfter!==u.walletNonceBefore))throw new Error("Invalid request batch nonce evidence.");if(i.type==="run.end"&&(!["completed","denied","failed"].includes(u.status)||![u.fundedRaw,u.earnedRaw,u.refundedRaw].every(c=>Xa(c)||u.status==="failed"&&u.amountsVerified===!1&&c===null)||!Array.isArray(u.transactions)||!Lt(u.balances)))throw new Error("Invalid run summary.");if(i.type==="error"&&(typeof u.code!="string"||typeof u.message!="string"))throw new Error("Invalid error.");return i}function l0(i){if(!i.length||i[0].type!=="run.start"||i.at(-1).type!=="run.end")throw new Error("Incomplete run.");return i.forEach((u,d)=>{if(mp(u),u.seq!==d+1||u.runId!==i[0].runId||d<i.length-1&&u.type==="run.end")throw new Error("Run sequence mismatch.")}),i}function Uh(i={events:[],status:"idle"},u){if(mp(u),i.events.some(c=>c.runId===u.runId&&c.seq===u.seq))return i;if(i.events.length&&u.runId!==i.events[0].runId||u.seq!==i.events.length+1)throw new Error("Missing or mismatched run event.");if(i.summary)throw new Error("Event after run end.");const d=[...i.events,u];return{events:d,status:u.type==="run.end"?u.data.status:"running",start:d.find(c=>c.type==="run.start")?.data,summary:u.type==="run.end"?u.data:i.summary,requests:u.type==="api.reuse"?u.data:i.requests,stream:["stream.opened","stream.closed"].includes(u.type)?{...i.stream,...u.data}:i.stream,transactions:d.filter(c=>c.type==="wallet.tx").reduce((c,h)=>({...c,[h.data.hash]:h.data}),{}),receipts:d.filter(c=>c.type==="audit.receipt").map(c=>c.data)}}function ga(i,u){if(!Number.isInteger(u)||u<0||u>36)throw new Error("Invalid token decimals");if(!/^[0-9]+$/.test(String(i)))throw new Error("Invalid token units");const d=BigInt(i).toString().padStart(u+1,"0");if(u===0)return d;const c=d.slice(-u).replace(/0+$/,"");return d.slice(0,-u)+(c?`.${c}`:"")}const qs=i=>i?`${i.slice(0,6)}…${i.slice(-4)}`:"—";function Je(i){return i==null?"—":`${ga(i,6)} USDC`}function i0(i){if(i==null)return"—";if(!/^[0-9]+$/.test(String(i)))throw new Error("Invalid ETH units");const u=(BigInt(i)/100000000000000n).toString().padStart(5,"0");return`${u.slice(0,-4)}.${u.slice(-4)} ETH`}function s0(i){if(i.startsWith(".")&&(i="0"+i),!/^(?:0|[1-9][0-9]*)(?:\.[0-9]{0,6})?$/.test(i))throw new Error("Use up to 6 decimals.");const[u,d=""]=i.split(".");return(BigInt(u)*1000000n+BigInt(d.padEnd(6,"0"))).toString()}function Mh(i){if(i==null)return"—";const u=(BigInt(i)/1000n).toString().padStart(6,"0");return`${u.slice(0,-5)}.${u.slice(-5)}`}function _h(i,u){if(i==null||u==null||BigInt(u)<=0n)return"0%";const d=BigInt(i)*10000n/BigInt(u);return`${ga(d>10000n?10000n:d,2)}%`}function Ts(i){if(i.type==="cre.result"||i.type==="step.start"&&i.data.stage==="cre"){const u=i.data.target||(i.data.command?.includes("spend-settings")?"spend":i.data.command?.includes("staging-settings")?"price":i.data.command?.includes("stream-settings")?"stream":null);return u?u==="price"?["cre","agent"]:u==="spend"?["cre","wallet"]:["cre","escrow","service"]:["cre"]}return i.type==="wallet.tx"?i.data.kind==="approval"?["wallet"]:["wallet","escrow"]:["stream.opened","stream.closed"].includes(i.type)?["wallet","escrow","service"]:["api.reuse","fault"].includes(i.type)?["agent","service"]:i.type==="audit.receipt"?["wallet"]:i.type==="cleanup"?["wallet","escrow"]:["agent"]}function r0(i=[]){const u={status:"idle",mode:null,contractPolicySignatures:!1,decision:null,target:null,inputs:[],active:[],fundedRaw:null,earnedRaw:null,refundedRaw:null,closed:!1,settlementVerified:!1,cleanup:null,shutdownApproved:!1,interrupted:!1,errorCode:null,unverified:!1,notFunded:!1,successfulRequests:null,failedRequests:null,reuseTransactions:null,service:"unknown",faultStatus:null,transaction:null,transactions:[],auditReceipts:[],summary:null,packet:null,lastSeq:0,latestEvent:null},d=new Map,c=new Map;for(const h of i){const p=h.data;h.type==="run.start"&&(u.contractPolicySignatures=p.contractPolicySignatures===!0,u.mode=p.mode,p.mode==="preview"&&(u.successfulRequests=0,u.failedRequests=0)),u.status="running",u.lastSeq=h.seq,u.latestEvent=h,u.active=Ts(h),u.inputs=[],u.packet=null,h.type==="cre.result"&&((p.target!=="spend"||!u.decision||p.decision!=="ALLOW")&&(u.decision=p.decision,u.target=p.target),p.target==="stream"&&p.observations?.config?.phase==="shutdown"&&(u.shutdownApproved=p.decision==="CLOSE"&&p.reason==="CLIENT_SHUTDOWN"),u.inputs=p.target==="price"?["coinbase","feed"]:p.target==="stream"?["health","state"]:["state"],p.target==="stream"&&p.observations?.health&&(u.service=p.observations.health.serviceAvailable?"healthy":"outage")),h.type==="wallet.tx"&&(d.set(p.hash,p),u.transaction=p,u.packet=p),h.type==="stream.opened"&&(u.fundedRaw=p.fundedRaw),h.type==="stream.closed"&&(u.closed=!0,u.settlementVerified=!0,u.cleanup&&(u.cleanup="closed"),u.earnedRaw=p.earnedRaw,u.refundedRaw=p.refundedRaw),h.type==="cleanup"&&(u.cleanup=p.status),h.type==="error"&&(u.errorCode=p.code,u.interrupted=p.code==="INTERRUPTED"),h.type==="api.reuse"&&(u.successfulRequests=p.successfulRequests,u.failedRequests=p.failedRequests,u.reuseTransactions=p.hostCheckedNoPaymentTransactions===!0&&p.walletNonceBefore===p.walletNonceAfter?0:null),h.type==="fault"&&(u.service="outage",u.faultStatus=p.httpStatus??null),h.type==="audit.receipt"&&c.set(p.hash,p),h.type==="run.end"&&(u.status=p.status,u.summary=p,u.notFunded=p.cleanup==="not-funded"&&d.size===0&&u.fundedRaw==null,u.unverified=p.amountsVerified===!1&&!u.settlementVerified&&!u.notFunded,u.settlementVerified||(u.fundedRaw=u.unverified?null:p.fundedRaw,u.earnedRaw=u.unverified?null:u.notFunded?"0":p.earnedRaw,u.refundedRaw=u.unverified?null:u.notFunded?"0":p.refundedRaw),u.inputs=[],u.active=[])}return u.transactions=[...d.values()],u.auditReceipts=[...c.values()],u}function zh(i){const u=i.data;if(i.type==="run.start")return{title:"Run started",chip:u.mode==="pay"?"Pay":"Preview",metric:""};if(i.type==="run.end")return{title:`Run ${u.status}`,chip:"",metric:u.amountsVerified===!1?"Unverified":Je(u.fundedRaw)};if(i.type==="cre.result"){const d=u.observations;return{title:u.target==="price"?"Price safety":u.target==="spend"?"Spend review":d.config.phase==="admission"?"Stream admission":d.config.phase==="shutdown"?"Shutdown check":u.decision==="CLOSE"?u.reason==="SERVICE_UNAVAILABLE"?"Outage checkpoint":"Closure checkpoint":"Health checkpoint",chip:u.decision,metric:u.target==="price"?`${Mh(d.chainlinkPriceUsd8)} vs ${Mh(d.externalPriceUsd8)}`:u.target==="spend"?`Risk ${d.decision.riskScore}`:d.config.streamId!=="0"?`Stream #${d.config.streamId}`:Je(d.config.amountRaw)}}return i.type==="wallet.tx"?{title:`Wallet ${u.kind}`,chip:u.status==="confirmed"?"Confirmed":"Pending",metric:qs(u.hash)}:i.type==="api.reuse"?{title:"Session reused",chip:"API",metric:`${u.successfulRequests} calls`}:i.type==="fault"?{title:"Injected outage",chip:"Outage",metric:String(u.httpStatus)}:i.type==="stream.opened"?{title:"Escrow funded",chip:"Onchain",metric:Je(u.fundedRaw)}:i.type==="stream.closed"?{title:"Stream closed",chip:"CLOSE",metric:Je(u.refundedRaw)}:i.type==="audit.receipt"?{title:"Audit receipt",chip:"Onchain",metric:`${u.count} decisions`}:i.type==="cleanup"?{title:"Safety cleanup",chip:u.status==="closed"?"Closed":u.status==="attempting"?"Checking":"Attention",metric:`Stream #${u.streamId}`}:i.type==="error"?{title:u.code==="INTERRUPTED"?"Run interrupted":"Run error",chip:"ERROR",metric:u.code}:{title:u.stage==="cre"?"CRE evaluation":u.stage==="request"?`${u.tier} request`:"Agent planning",chip:"",metric:""}}function u0(i){const u=i.interrupted?"Run interrupted":"Run failed";if(i.closed&&i.settlementVerified)return{title:i.status==="failed"||i.errorCode?`${u} · stream closed`:"Stream closed and settled",detail:BigInt(i.refundedRaw)>0n?"Earned funds settled; unused escrow refunded.":"Deposit fully earned; no unused escrow remained.",tone:"allow"};const d=[...i.transactions].reverse().find(h=>h.status!=="confirmed");if(i.status==="failed"&&i.notFunded)return{title:["CRE_ACCOUNT_UNAVAILABLE","CRE_AUTH_REQUIRED"].includes(i.errorCode)?"CRE account check failed · no stream funded":"Run stopped before stream funding",detail:["CRE_ACCOUNT_UNAVAILABLE","CRE_AUTH_REQUIRED"].includes(i.errorCode)?"Check cre whoami in the local terminal. Reauthenticate with cre login only if needed, then retry when the account is reachable.":"No stream transaction was observed. Check the local CLI evidence before retrying.",tone:"warn"};if(i.cleanup==="needs-attention"||i.status==="failed")return{title:d?"Confirmation unresolved":i.cleanup==="needs-attention"?"Cleanup needs inspection":u,detail:d?"Inspect the signed transaction before retrying. Its final outcome is not confirmed here.":"Check the CLI evidence and stream state. An active stream may need separate operator recovery.",tone:"warn",hash:d?.hash};const c=[...i.transactions].reverse().find(h=>h.kind==="close");if(c)return{title:c.status==="confirmed"?"Close confirmed · checking settlement":"Closing stream",detail:c.status==="confirmed"?"Receipt confirmed; waiting for verified payout amounts.":"Close signed; waiting for confirmations. Escrow may accrue until the transaction is mined.",tone:"neutral",hash:c.hash};if(i.cleanup==="attempting")return{title:i.shutdownApproved?"Shutdown check passed":"Requesting shutdown approval",detail:"The policy process must approve and sign the exact stream closure before audited cancellation.",tone:"neutral"};if(i.summary&&i.status==="completed"&&i.mode==="preview")return{title:"Preview complete · no payment signed",detail:"Live model and CRE checks finished. Escrow was not funded; paid service access stayed locked.",tone:"allow"};if(i.summary&&i.status==="denied"&&i.fundedRaw==="0")return{title:"Policy stopped funding",detail:"CRE rejected the proposal before any stream was funded. Inspect the decision in the timeline.",tone:"warn"};if(i.status==="running"){const h=i.latestEvent,p=h?.data||{};if(d)return{title:d.kind==="approval"?"Approving USDC · awaiting confirmations":"Funding stream · awaiting confirmations",detail:"The wallet signed this transaction. Wait for the confirmed receipt before starting another run.",tone:"neutral",hash:d.hash};if(h?.type==="cre.result"&&p.target==="spend"&&p.decision==="ALLOW")return{title:"Spend review passed · anchoring audit receipts",detail:"The exact transaction passed dry-run and risk checks. Audit receipt verification must finish before wallet signing.",tone:"neutral"};if(h?.type==="audit.receipt")return{title:"Audit receipt confirmed",detail:"The local runner is verifying proofs and preparing the next safe step.",tone:"neutral"};if(h?.type==="step.start"&&p.stage==="cre")return{title:"Running local CRE checks",detail:"Reading external inputs and Sepolia state. The workflow result will appear in the timeline.",tone:"neutral"}}return null}function c0(i,u){const d=u.summary?.balances?.after?.agentBalanceRaw,c=u.start?.balances;return{usdcRaw:d??c?.payerUsdcRaw??i?.balances?.usdcRaw,ethRaw:c?.payerEthRaw??i?.balances?.ethRaw,usdcSource:d!=null?"at run end":c?"at run start":"observed at preflight",ethSource:c?"at run start; gas spend is not included":"observed at preflight"}}const Wn=i=>i.mode==="pay"?"funded":i.preset||"preview";function yp(i){const u=[...i].sort((h,p)=>Date.parse(p.capturedAt)-Date.parse(h.capturedAt)||p.id.localeCompare(h.id)),d=["funded","preview","tiny-cap","stale-feed"].map(h=>u.find(p=>Wn(p)===h)).filter(Boolean),c=new Set(d.map(h=>h.id));return{primary:d,history:u.filter(h=>!c.has(h.id))}}function o0(i){const u={funded:"Funded run",preview:"Preview (no txs)","tiny-cap":"Cap DENY","stale-feed":"Stale DENY"}[Wn(i)]||i.label;return`${new Date(i.capturedAt).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})} · ${u}`}const It=()=>({events:[],status:"idle"}),d0=!1;function f0(){const[i,u]=E.useState("recorded"),[d,c]=E.useState(null),[h,p]=E.useState([]),[y,j]=E.useState(""),[S,v]=E.useState(null),[C,w]=E.useState(null),[x,U]=E.useState(!1),[H,_]=E.useState(!1),[Y,W]=E.useState(It),[X,Z]=E.useState(!1),[xe,I]=E.useState(!1),[Ne,de]=E.useState(""),[Ue,He]=E.useState("Checking recorded evidence…"),[Xe,ot]=E.useState(null),qe=E.useRef(null),st=E.useRef(null),pe=()=>{clearInterval(st.current),st.current=null,I(!1)},ye=E.useRef(It()),O=E.useCallback(ie=>{ye.current=ie,W(ie)},[]),G=ie=>O(Uh(ye.current,ie));E.useEffect(()=>{const ie=new AbortController;return fetch("/runs/index.json",{signal:ie.signal,cache:"no-cache"}).then(ne=>{if(!ne.ok)throw new Error("Recorded run index unavailable.");return ne.json()}).then(ne=>{if(ne.schemaVersion!==1||!Array.isArray(ne.runs))throw new Error("Invalid recorded run index.");const{primary:Me,history:B}=yp(ne.runs),he=[...Me,...B];p(he),j(he[0]?.id||""),He(he.length?"Recorded evidence ready.":"No captured runs have been published yet.")}).catch(ne=>{ne.name!=="AbortError"&&de(ne.message)}),()=>{ie.abort(),qe.current?.close(),clearInterval(st.current)}},[]);const K=E.useCallback(async()=>{},[]);E.useEffect(()=>{},[K]),E.useEffect(()=>{if(i!=="recorded"||!y)return;const ie=new AbortController;let ne=!0;v(null),de(""),O(It());const Me=h.find(B=>B.id===y);if(Me)return fetch(`/runs/${Me.file}`,{signal:ie.signal,cache:"no-cache"}).then(async B=>{if(!B.ok)throw new Error("Recorded events unavailable.");const he=await B.text(),ke=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(he));if(Array.from(new Uint8Array(ke)).map(tt=>tt.toString(16).padStart(2,"0")).join("")!==Me.sha256)throw new Error("Recorded event hash mismatch.");const ea=l0(he.trim().split(`
|
|
271
|
-
`).map(tt=>JSON.parse(tt)));if(ea[0].runId!==Me.id)throw new Error("Recorded run ID mismatch.");ne&&(v({item:Me,events:ea}),w(ea[0].data.profile.policy))}).catch(B=>{ne&&B.name!=="AbortError"&&de(B.message)}),()=>{ne=!1,ie.abort(),clearInterval(st.current),I(!1)}},[i,y,h,O]),E.useEffect(()=>{i==="live"&&d&&w(d.profile.policy)},[i,d]);const me=i==="live"?d?.profile:S?.events[0].data.profile,g=Y.start||(i==="recorded"?S?.events[0].data:null),k=i==="live"?c0(d,Y):{usdcRaw:g?.balances.payerUsdcRaw,ethRaw:g?.balances.payerEthRaw},L=X||xe||Y.status==="running"&&i==="live";function V(ie){qe.current?.close(),pe(),u(ie),O(It()),de(""),U(!1),_(!1),ie==="live"&&d&&w(d.profile.policy)}function $(ie){qe.current?.close(),de(""),O(It()),ot(ie),Z(!0);const ne=new EventSource(`/api/runs/${ie}/events`);qe.current=ne,ne.onmessage=Me=>{try{const B=JSON.parse(Me.data);G(B),B.type==="run.end"&&(ne.close(),Z(!1))}catch{ne.close(),de("Invalid event stream. Inspect the local CLI before retrying."),Z(!1)}},ne.onerror=()=>{ne.close(),Z(!1),de("Event connection closed. The local run may still be active; reconnect to its timeline before starting another payment.")}}async function fe(ie){if(ie.preventDefault(),de(""),i==="recorded"){if(!S)return;if(xe){pe();return}let ne=Y.summary?0:Y.events.length;if(ne===0&&O(It()),window.matchMedia("(prefers-reduced-motion: reduce)").matches){let Me=It();for(const B of S.events)Me=Uh(Me,B);O(Me);return}I(!0),st.current=setInterval(()=>{if(ne>=S.events.length){pe();return}try{G(S.events[ne++])}catch{pe(),de("Recorded event sequence is invalid. Reload the captured evidence.")}},350);return}if(!(!C||!d)){Z(!0),O(It());try{const ne=await fetch("/api/runs",{method:"POST",headers:{"content-type":"application/json","x-agentpay-token":d.token},body:JSON.stringify({profileId:me.id,mode:x?"pay":"preview",confirmPay:H,policy:C}),signal:AbortSignal.timeout(9e4)}),Me=await ne.json();if(!ne.ok)throw new Error(Me.error);_(!1),$(Me.id)}catch(ne){de(ne.message||"Local run could not start. Check the server terminal."),Z(!1)}}}const P=ie=>{if(!ie)return null;if(i==="live")return Xe?`/api/runs/${Xe}/artifact?path=${encodeURIComponent(ie)}`:null;const ne=S?.item.artifacts[ie];return ne?`/runs/${S.item.id}/${ne}`:null};function et(){pe(),O(It())}function we(){if(pe(),!S)return;const ie=ye.current;if(ie.summary){O(It());return}const ne=S.events[ie.events.length];ne&&G(ne)}return{mode:i,agent:d,manifest:h,selected:y,setSelected:j,recording:S,policy:C,setPolicy:w,pay:x,setPay:U,confirmed:H,setConfirmed:_,run:Y,busy:X,playing:xe,error:Ne,connection:Ue,profile:me,info:g,balances:k,working:L,localDev:d0,connect:K,changeMode:V,listen:$,activeId:Xe,start:fe,artifact:P,restart:et,step:we}}function ks({value:i,label:u="Copy command",children:d,className:c="icon-button"}){const[h,p]=E.useState({value:null,state:"idle"}),y=h.value===i?h.state:"idle",j=E.useRef(null);E.useEffect(()=>()=>clearTimeout(j.current),[]);const S=async()=>{clearTimeout(j.current);try{await navigator.clipboard.writeText(i),p({value:i,state:"copied"})}catch{p({value:i,state:"failed"})}j.current=setTimeout(()=>p({value:i,state:"idle"}),4e3)};return r.jsxs("span",{className:"relative inline-flex shrink-0 flex-col items-end",children:[r.jsxs("button",{type:"button",className:c,onClick:S,"aria-label":y==="copied"?"Copied":u,title:u,children:[d,y==="copied"?r.jsx(bc,{size:16,"aria-hidden":"true"}):r.jsx(Hg,{size:16,"aria-hidden":"true"})]}),r.jsx("span",{role:"status",className:y==="failed"?"absolute right-0 top-full z-10 mt-1 w-52 rounded-lg border border-white/20 bg-slate-900 p-2 text-xs text-slate-200":"sr-only",children:y==="copied"?"Copied to clipboard.":y==="failed"?"Clipboard unavailable. Select and copy the text instead.":""})]})}function cc({value:i}){if(!i)return null;const u=["ALLOW","OPEN","CONTINUE","Closed"].includes(i)?"allow":["DENY","BLOCK","ERROR"].includes(i)?"deny":["CLOSE","Outage","Attention"].includes(i)?"warn":"neutral",d=u==="allow"?qg:u==="deny"?up:u==="warn"?Pn:cp;return r.jsxs("span",{className:`wf-badge wf-${u}`,children:[r.jsx(d,{size:12,"aria-hidden":"true"}),i]})}function Ns({value:i,label:u,full:d=!1,kind:c="address"}){return r.jsxs("div",{className:`wf-address ${d?"wf-address-full":""}`,children:[r.jsx("span",{title:i,children:d?i:qs(i)}),i&&r.jsxs(r.Fragment,{children:[r.jsx(ks,{value:i,label:`Copy ${u}`,className:"wf-icon"}),r.jsx("a",{className:"wf-icon",href:`https://sepolia.etherscan.io/${c}/${i}`,target:"_blank",rel:"noreferrer","aria-label":`View ${u} on Etherscan`,title:"Etherscan",children:r.jsx(Wt,{size:14})})]})]})}const qh=[["agent","Agent",rp,"Proposes paid work"],["wallet","Wallet",As,"Signs approved calls"],["escrow","Escrow",xc,"Accrues over time"],["service","Paid service",Xg,"Serves authenticated requests"]],h0=[["coinbase","Coinbase",Bg],["feed","Chainlink USDC/USD",fp],["health","Service health",Ug],["state","Stream state",xc]];function p0({state:i}){const u=i.fundedRaw!=null&&BigInt(i.fundedRaw)>0n;return r.jsxs("div",{className:"wf-gauge-wrap",title:i.unverified?"Amounts unverified":`${i.fundedRaw??"Unknown"} raw USDC funded`,children:[r.jsxs("div",{className:"wf-gauge",role:"img","aria-label":i.unverified?"Escrow amounts unverified":i.closed?`${Je(i.earnedRaw)} earned; ${Je(i.refundedRaw)} refunded`:u?`${Je(i.fundedRaw)} in escrow`:"Escrow not funded",children:[r.jsx("span",{style:{width:i.closed?_h(i.earnedRaw,i.fundedRaw):u?"100%":"0%"}}),i.closed&&r.jsx("span",{className:"wf-refund-bar",style:{width:_h(i.refundedRaw,i.fundedRaw)}})]}),r.jsx("small",{children:i.unverified?"Unverified":i.closed?"Settled":u?Je(i.fundedRaw):"Unfunded"})]})}function m0({state:i,highlight:u,onNode:d,onReplay:c,replayDisabled:h,mode:p,guarded:y}){const j=i.status==="idle",S=x=>u.length?u.includes(x):i.active.includes(x),v=i.successfulRequests==null?j?"0 calls":"Calls —":`${i.successfulRequests} calls${i.reuseTransactions===0?" · 0 txs":""}`,C=(x,U,H,_)=>r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"wf-node-tile",children:r.jsx(H,{size:30,"aria-hidden":"true"})}),r.jsxs("span",{className:"wf-node-copy",children:[r.jsx("strong",{children:U}),r.jsx("span",{className:"wf-node-caption",children:y&&x==="wallet"?"Submits approved calls":y&&x==="escrow"?"Verifies then accrues":_})]}),x==="escrow"&&r.jsx(p0,{state:i}),x==="service"&&i.service==="outage"&&r.jsxs(r.Fragment,{children:[r.jsx(cc,{value:"Outage"}),i.faultStatus!=null&&r.jsx("small",{children:i.faultStatus})]})]}),w=r.jsxs("button",{type:"button",className:`wf-hub ${S("cre")?"is-active":""}`,onClick:()=>d("cre"),"aria-label":"Find deterministic CRE policy results",children:[r.jsxs("span",{children:[r.jsx(zs,{size:18,"aria-hidden":"true"})," Chainlink CRE"]}),i.decision?r.jsx(cc,{value:i.decision}):r.jsx("small",{children:"Deterministic policy"})]});return r.jsxs("section",{className:"wf-surface wf-diagram","aria-label":"Deterministic CRE payment guardrails",children:[r.jsxs("p",{className:"sr-only",children:["Price feeds, service health and stream state feed CRE.",y?" A separate local policy signer signs the checked intent. The wallet submits it and the escrow verifies the policy signature before funding or closure. ":y===!1?" This historical path uses CLI policy checks before wallet signing; the escrow enforces accounting. ":" Enforcement details will appear with run evidence. ","API calls reuse a funded stream. Use diagram nodes to find their timeline events."]}),r.jsxs("div",{className:`wf-canvas ${j?"wf-ghost":""}`,children:[r.jsx("div",{className:"wf-inputs",children:h0.map(([x,U,H])=>r.jsxs("span",{className:i.inputs.includes(x)?"wf-input-pulse":"",children:[r.jsx(H,{size:13,"aria-hidden":"true"}),U]},`${x}-${i.lastSeq}`))}),r.jsxs("div",{className:"wf-desktop-diagram",children:[r.jsxs("svg",{viewBox:"0 0 800 480",preserveAspectRatio:"none","aria-hidden":"true",className:"wf-connections",children:[r.jsx("defs",{children:r.jsx("marker",{id:"wf-arrow",markerWidth:"7",markerHeight:"7",refX:"6",refY:"3.5",orient:"auto",children:r.jsx("path",{d:"M0,0 L7,3.5 L0,7",fill:"#64748b"})})}),[100,300,500,700].map(x=>r.jsx("path",{d:`M${x},52 Q${x},80 400,103`,className:"wf-input-edge"},x)),r.jsx("path",{d:"M365,161 Q290,173 300,221",className:"wf-supervision-edge"}),r.jsx("path",{d:"M420,161 Q485,177 500,221",className:"wf-supervision-edge"}),r.jsx("path",{d:"M454,142 Q700,145 700,221",className:"wf-supervision-edge"}),r.jsx("text",{x:"236",y:"194",children:y?"policy approval":"gates signing"}),r.jsx("text",{x:"467",y:"194",children:"reads state"}),r.jsx("text",{x:"649",y:"181",children:"probes health"}),r.jsx("path",{d:"M160,272 H240",className:"wf-main-edge"}),r.jsx("path",{d:"M360,272 H440",className:"wf-main-edge"}),r.jsx("text",{x:"400",y:"252",className:"wf-fund-label",children:"fund once"}),r.jsx("path",{d:"M560,272 H640",className:"wf-main-edge"}),r.jsx("text",{x:"600",y:"252",children:"earns per second"}),r.jsx("path",{d:"M100,368 C100,470 700,470 700,418",className:"wf-reuse-edge"}),i.closed&&!i.unverified&&r.jsxs(r.Fragment,{children:[r.jsxs("text",{x:"375",y:"402",className:"wf-settlement-label",children:["← ",Je(i.refundedRaw)]}),r.jsxs("text",{x:"600",y:"402",className:"wf-settlement-label",children:[Je(i.earnedRaw)," →"]})]}),i.packet&&r.jsx("circle",{r:"4",cx:"300",cy:"272",className:`wf-packet wf-packet-${i.packet.kind}`},i.lastSeq)]}),w,r.jsx("div",{className:"wf-nodes",children:qh.map(([x,U,H,_])=>r.jsx("button",{type:"button",className:`wf-node ${S(x)?"is-active":""} ${x==="service"&&i.service==="outage"?"is-outage":""}`,onClick:()=>d(x),"aria-label":`Find ${U} events`,children:C(x,U,H,_)},x))}),r.jsx("span",{className:"wf-call-count",title:j?"No run started; the call counter is reset to zero":"Successful calls reported by the CLI. Zero transactions is shown only when nonce evidence is present.",children:v},i.successfulRequests),i.transaction&&r.jsxs("a",{className:"wf-diagram-hash",href:i.transaction.explorerUrl,target:"_blank",rel:"noreferrer",title:`${i.transaction.kind}: ${i.transaction.status}`,children:[qs(i.transaction.hash)," ↗"]})]}),r.jsxs("div",{className:"wf-mobile-stepper",children:[w,r.jsx("ol",{children:qh.map(([x,U,H,_])=>r.jsxs("li",{children:[x==="escrow"&&r.jsx("p",{className:"wf-mobile-edge",children:"fund once"}),x==="service"&&r.jsx("p",{className:"wf-mobile-edge",children:"earns per second"}),r.jsx("button",{type:"button",className:`wf-node ${S(x)?"is-active":""} ${x==="service"&&i.service==="outage"?"is-outage":""}`,onClick:()=>d(x),children:C(x,U,H,_)})]},x))}),r.jsx("span",{className:"wf-mobile-calls",children:v}),i.closed&&!i.unverified&&r.jsxs("p",{children:[Je(i.earnedRaw)," earned ·"," ",Je(i.refundedRaw)," refunded"]})]}),j&&p==="recorded"&&r.jsx("div",{className:"wf-idle-action",children:r.jsx("button",{type:"button",className:"btn-primary",disabled:h,onClick:c,children:"Replay recorded run"})})]}),r.jsx("ol",{className:"wf-authorization","aria-label":"Payment authorization flow",children:(y?[["Policy signature","Separate signer approves intent"],["Wallet submission","Agent submits approved action"],["Contract verification","Escrow checks signature and bounds"]]:y===!1?[["CLI policy checks","Historical local enforcement"],["Wallet signing","CLI submits eligible action"],["Escrow accounting","Contract accrues and settles"]]:[["CRE policy checks","Evaluate fixed payment rules"],["Wallet submission","Follow the checked outcome"],["Enforcement details","Awaiting run evidence"]]).map(([x,U],H)=>r.jsxs("li",{children:[r.jsx("span",{"aria-hidden":"true",children:H+1}),r.jsxs("div",{children:[r.jsx("strong",{children:x}),r.jsx("small",{children:U})]})]},x))}),r.jsx("div",{className:"wf-trust",children:["CRE: local, deterministic","Wallet CLI gates signing",y?"Contract verifies local policy signatures":y===!1?"Recorded contract: CLI policy checks":"Enforcement awaits run events"].map(x=>r.jsxs(it,{to:"/docs/cre",title:"Read the trust boundaries",children:[r.jsx(op,{size:11,"aria-hidden":"true"}),x]},x))})]})}const In=Je;function y0(i){const u=i.data.observations;if(i.data.target==="price"){const d=BigInt(u.chainlinkPriceUsd8),c=BigInt(u.externalPriceUsd8),h=y=>y<0n?-y:y,p=(y,j)=>j>0n?`${ga(y*1000000n/j,2)} bps`:"Unavailable";return[["Coinbase",`$${ga(u.externalPriceUsd8,8)}`],["Chainlink",`$${ga(u.chainlinkPriceUsd8,8)}`],["Feed age / limit",`${u.observedAt-u.feedUpdatedAt}s / ${u.maxFeedAgeSeconds}s`],["Source disagreement / limit",`${p(h(c-d),d)} / ${u.maxDeviationBps} bps`],["Coinbase peg deviation / limit",`${p(h(c-100000000n),100000000n)} / ${u.maxPegDeviationBps} bps`],["Chainlink peg deviation / limit",`${p(h(d-100000000n),100000000n)} / ${u.maxPegDeviationBps} bps`],["Intent / cap",`${In(u.request.amount)} / ${In(u.request.spendingCap)}`]]}return i.data.target==="stream"?[["Read block",String(u.config.observationBlock)],["Provider health",u.health.serviceAvailable?"Available":"Unavailable"],["Client successes / failures",`${u.config.client.successfulRequests} / ${u.config.client.failedRequests}`],["Provider successes / failures",`${u.health.successfulRequests} / ${u.health.failedRequests}`],["Deposit / cap",`${In(u.config.amountRaw)} / ${In(u.config.spendingCapRaw)}`],["Rate / max",`${BigInt(u.config.amountRaw)/BigInt(u.config.durationSeconds)} / ${u.config.maxRateRawPerSecond} raw/s`],["Failure threshold",String(u.config.maxFailedRequests)]]:[["Simulation",u.simulation?.status||"Incomplete"],["Operation",u.decision.operation||"No operation authorized"],["Risk / maximum",`${u.decision.riskScore} / ${u.intent?.policy.maxRiskScore??"—"}`],["Observed USDC balance",In(u.chain?.balanceRaw)],["Review amount cap",In(u.intent?.policy.maxAmountRaw)],["Read block",String(u.observedBlock??"—")]]}function v0({currentEvent:i,events:u,artifact:d,advanced:c,setAdvanced:h,onHighlight:p,jump:y}){const j=E.useRef(null),S=u.at(-1);E.useEffect(()=>{const w=j.current;w&&(w.scrollTop=w.scrollHeight)},[S?.seq]),E.useEffect(()=>{if(!y)return;const w=document.getElementById(`wf-event-${y.seq}`);w?.scrollIntoView({block:"nearest",behavior:"instant"}),w?.querySelector("summary")?.focus({preventScroll:!0})},[y]);const v=i||S,C=v?zh(v):null;return r.jsxs("section",{className:"wf-surface wf-timeline","aria-label":"Execution timeline",children:[r.jsxs("div",{className:"wf-timeline-heading",children:[r.jsx("h2",{children:"Timeline"}),r.jsxs("label",{children:[r.jsx("input",{type:"checkbox",checked:c,onChange:w=>h(w.target.checked)})," ","Show advanced"]})]}),r.jsx("p",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:v?`Step ${v.seq}. ${C.title}. ${C.chip}. ${C.metric}.`:"Awaiting run events."}),r.jsxs("div",{className:"wf-timeline-feed",ref:j,children:[!u.length&&r.jsx("p",{className:"wf-empty",children:"Decisions appear here."}),u.map(w=>{const x=w.data,U=zh(w),H=w.type==="cre.result"?zs:w.type==="wallet.tx"?As:w.type==="fault"||w.type==="error"?Pn:w.type==="api.reuse"?fp:w.type.startsWith("stream.")?xc:rp;return r.jsxs("details",{className:"wf-event",id:`wf-event-${w.seq}`,onMouseEnter:()=>p(Ts(w)),onMouseLeave:()=>p([]),onFocus:()=>p(Ts(w)),onBlur:_=>{_.currentTarget.contains(_.relatedTarget)||p([])},children:[r.jsxs("summary",{children:[r.jsx("span",{className:"wf-step-number",children:String(w.seq).padStart(2,"0")}),r.jsx(H,{size:15,"aria-hidden":"true"}),r.jsx("span",{className:"wf-event-title",children:U.title}),r.jsx(cc,{value:U.chip}),r.jsx("span",{className:"wf-event-metric",children:U.metric}),r.jsx(_g,{size:13,className:"wf-chevron","aria-hidden":"true"})]}),r.jsxs("div",{className:"wf-event-detail",children:[r.jsxs("p",{className:"wf-detail-meta",children:[new Date(w.at).toLocaleString()," · ",w.type]}),w.type==="cre.result"&&r.jsxs(r.Fragment,{children:[r.jsxs("p",{children:[r.jsx("strong",{children:x.reason})," ·"," ",x.hostCheck?"Host validation passed":"Review incomplete; no spend authority"]}),r.jsx("dl",{children:y0(w).map(([_,Y])=>r.jsxs("div",{children:[r.jsx("dt",{children:_}),r.jsx("dd",{children:Y})]},_))}),r.jsxs("div",{className:"wf-command",children:[r.jsxs("code",{children:["cd cre",`
|
|
272
|
-
`,x.command]}),r.jsx(ks,{value:`cd cre
|
|
273
|
-
${x.command}`,label:"Copy CRE command",className:"wf-icon"})]}),r.jsx("div",{className:"wf-artifact-links",children:[[x.transcriptPath,"Original transcript"],[x.configPath,"Exact config"]].map(([_,Y])=>d(_)&&r.jsxs("a",{href:d(_),target:"_blank",rel:"noreferrer",children:[Y," ↗"]},Y))}),r.jsxs("details",{className:"wf-raw",children:[r.jsx("summary",{children:"Raw result"}),r.jsx("pre",{tabIndex:0,children:JSON.stringify(x.observations,null,2)})]})]}),w.type==="wallet.tx"&&r.jsxs(r.Fragment,{children:[r.jsx("p",{children:x.status==="confirmed"?"Confirmed transaction receipt.":"Signed locally; confirmation pending. Inspect this hash before retrying. A pending close does not establish settlement."}),r.jsx(Ns,{value:x.hash,label:`${x.kind} transaction`,kind:"tx",full:!0})]}),w.type==="audit.receipt"&&r.jsxs(r.Fragment,{children:[r.jsx(Ns,{value:x.hash,label:"audit receipt",kind:"tx",full:!0}),r.jsx("p",{children:"Operator-submitted hashes; separate receipt gas. May include earlier pending decisions."})]}),w.type!=="cre.result"&&w.type!=="wallet.tx"&&w.type!=="audit.receipt"&&r.jsx("pre",{tabIndex:0,children:JSON.stringify(x,null,2)})]})]},`${w.runId}-${w.seq}`)})]})]})}function g0({state:i}){const u=u0(i);return u?r.jsxs("div",{className:`wf-run-status wf-status-${u.tone}`,role:"status","aria-live":"polite","aria-atomic":"true",children:[r.jsx("strong",{children:u.title}),r.jsx("p",{children:u.detail}),u.hash&&r.jsxs("a",{href:`https://sepolia.etherscan.io/tx/${u.hash}`,target:"_blank",rel:"noreferrer",children:["Inspect transaction ",qs(u.hash)," ↗"]})]}):null}const b0={"tiny-cap":"Cap DENY","stale-feed":"Stale DENY"};function kh({raw:i,onChange:u,label:d,max:c,disabled:h}){const[p,y]=E.useState(()=>i?ga(i,6):""),[j,S]=E.useState(""),v=E.useRef(i),C=E.useRef(null);return E.useEffect(()=>{i!==v.current&&(y(i?ga(i,6):""),v.current=i,C.current?.setCustomValidity(""),S(""))},[i]),r.jsxs("label",{className:"wf-field",children:[d,r.jsx("input",{ref:C,inputMode:"decimal",type:"text",value:p,title:`${i||"Invalid"} raw units`,required:!0,onInvalid:w=>{const x=w.currentTarget.closest("details");x&&(x.open=!0)},disabled:h,onChange:w=>{const x=w.target.value;y(x);let U="";try{if(U=s0(x),BigInt(U)<1n||BigInt(U)>BigInt(c))throw new Error(`Use 0.000001–${ga(c,6)} USDC.`);w.target.setCustomValidity(""),S("")}catch(H){U="",w.target.setCustomValidity(H.message),S(H.message)}v.current=U,u(U)}}),j&&r.jsx("span",{className:"wf-field-error",role:"alert",children:j})]})}function x0({c:i}){const u=i.profile,d=i.mode==="recorded",c=i.working&&i.run.start?i.run.start.mode==="pay":i.pay,h=i.policy,{primary:p,history:y}=yp(i.manifest),j=i.manifest.find(x=>x.id===i.selected),S=i.agent?i.busy||i.agent.busy&&!i.run.summary?"busy":"ready":"offline",v=S==="ready"?"Local runner connected and ready":S==="busy"?"Local runner is busy":"Local runner not connected; start npm run dev:live",C=(x,U)=>i.setPolicy({...h,[x]:U}),w=d?!i.recording:i.working||!!(i.agent?.busy&&!i.run.summary)||!i.agent||!h?.depositCapRaw||!h?.maxRateRawPerSecond||i.pay&&!i.confirmed;return r.jsxs("aside",{className:"wf-surface wf-controls",children:[r.jsxs("div",{className:"wf-agent-heading",children:[r.jsx("h2",{children:u?.name||(d?"Agent profile":"Local agent")}),r.jsx("span",{className:"wf-local-chip",children:u?"Registered locally":"Loading"})]}),r.jsx(Ns,{value:u?.payer,label:"payer"}),r.jsxs("div",{className:"wf-balances",children:[r.jsxs("span",{title:`${i.balances?.usdcRaw??"Unknown"} raw units; ${d?"at recorded run start":i.balances?.usdcSource||"observed at preflight"}`,children:[Je(i.balances?.usdcRaw).replace(" USDC","")," ",r.jsx("small",{children:"test USDC"})]}),r.jsx("span",{title:`${i.balances?.ethRaw??"Unknown"} wei; ${d?"at recorded run start":i.balances?.ethSource||"observed at preflight"}`,children:i0(i.balances?.ethRaw)})]}),r.jsxs("details",{className:"wf-agent-details",children:[r.jsx("summary",{children:"Details"}),u&&r.jsxs("div",{children:[[["Recipient",u.recipient,"address"],["Token",u.token,"token"],["Escrow",u.escrow,"address"]].map(([x,U,H])=>r.jsxs("div",{children:[r.jsx("p",{children:x}),r.jsx(Ns,{value:U,label:x,kind:H,full:!0})]},x)),r.jsxs("p",{children:["Planner: ",d?i.info?.planner:i.agent?.planner]}),r.jsxs("p",{children:["Fixed quote: ",Je(u.quote.amountRaw)," /"," ",u.quote.durationSeconds,"s. Premium attempt and outage are the CLI scenario."]}),r.jsxs("p",{children:["USDC balance is"," ",d?"historical run-start observations":i.balances?.usdcSource||"observed at preflight",". ETH is a preflight/run-start observation, truncated to four decimals."]}),d&&r.jsx("pre",{tabIndex:0,children:JSON.stringify(u.policy,null,2)})]})]}),r.jsx("div",{className:"wf-mode",role:"group","aria-label":"Run mode",children:["recorded","live"].map(x=>r.jsx("button",{type:"button","aria-pressed":i.mode===x,disabled:i.busy,title:x==="live"?v:"Replay captured runs",onClick:()=>i.changeMode(x),children:x==="recorded"?"Recorded":r.jsxs(r.Fragment,{children:[r.jsx("span",{className:`wf-runner-dot is-${S}`,"aria-hidden":"true"})," ","Live",r.jsxs("span",{className:"sr-only",children:[" · Runner ",S]})]})},x))}),d?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"wf-scenarios wf-recorded-scenarios",role:"group","aria-label":"Recorded scenario",children:p.map(x=>r.jsx("button",{type:"button",title:x.label,"aria-pressed":!!(j&&Wn(j)===Wn(x)),disabled:i.playing,onClick:()=>i.setSelected(x.id),children:b0[x.preset]||(x.mode==="pay"?"Funded run":"Preview (no txs)")},x.id))}),y.length>0&&r.jsxs("label",{className:"wf-history",children:["Earlier captures",r.jsxs("select",{"aria-label":"Recording history",disabled:i.playing,value:y.some(x=>x.id===i.selected)?i.selected:"",onChange:x=>i.setSelected(x.target.value||p.find(U=>Wn(U)===Wn(j||p[0]))?.id||p[0].id),children:[r.jsx("option",{value:"",children:"Latest scenario recording"}),y.map(x=>r.jsx("option",{value:x.id,children:o0(x)},x.id))]})]}),r.jsx("p",{className:"wf-capture-date",children:i.recording?`Recorded ${new Date(i.recording.item.capturedAt).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}`:"Loading captures…"}),r.jsxs("div",{className:"wf-policy-used",children:[r.jsxs("h3",{children:[r.jsx(op,{size:12,"aria-hidden":"true"}),"Policy used"]}),r.jsx("dl",{children:[["Deposit cap",Je(h?.depositCapRaw)],["Max rate",h?`${ga(h.maxRateRawPerSecond,6)} USDC/s`:"—"],["Max feed age",h?h.maxFeedAgeSeconds%3600===0?`${h.maxFeedAgeSeconds/3600} h`:`${h.maxFeedAgeSeconds} s`:"—"],["Max failures",h?.maxFailedRequests??"—"]].map(([x,U])=>r.jsxs("div",{children:[r.jsx("dt",{title:x==="Max rate"?"Policy upper bound, not the stream's quoted rate":void 0,children:x}),r.jsx("dd",{children:U})]},x))})]})]}):i.agent?r.jsx(r.Fragment,{children:r.jsxs("form",{id:"wf-live-policy",onSubmit:i.start,className:"wf-policy-form",children:[r.jsxs("div",{className:"wf-policy-heading",children:[r.jsx("span",{children:"Policy"}),r.jsx("button",{type:"button",className:"wf-icon","aria-label":"Reset policy",disabled:i.working,onClick:()=>{i.setPolicy(i.agent.profile.policy),i.setConfirmed(!1)},children:r.jsx(pp,{size:14})})]}),r.jsx(kh,{raw:h?.depositCapRaw,onChange:x=>C("depositCapRaw",x),label:"Deposit cap · USDC",max:"100000",disabled:i.working}),r.jsx("div",{className:"wf-field-pair",children:[["maxFeedAgeSeconds","Feed age · seconds",60,86400],["maxFailedRequests","Failures",1,3]].map(([x,U,H,_])=>r.jsxs("label",{className:"wf-field",children:[U,r.jsx("input",{type:"number",min:H,max:_,step:"1",required:!0,disabled:i.working,value:h?.[x]??"",onChange:Y=>C(x,Y.target.value===""?"":Number(Y.target.value))})]},x))}),r.jsxs("details",{className:"wf-advanced-policy",children:[r.jsx("summary",{children:"Advanced"}),r.jsx(kh,{raw:h?.maxRateRawPerSecond,onChange:x=>C("maxRateRawPerSecond",x),label:"Max rate · USDC/s",max:"100",disabled:i.working}),r.jsx("div",{className:"wf-field-pair",children:[["maxPegDeviationBps","Peg · bps"],["maxDeviationBps","Disagreement · bps"]].map(([x,U])=>r.jsxs("label",{className:"wf-field",children:[U,r.jsx("input",{type:"number",onInvalid:H=>{H.currentTarget.closest("details").open=!0},min:"1",max:"100",step:"1",required:!0,disabled:i.working,value:h?.[x]??"",onChange:H=>C(x,Number(H.target.value))})]},x))})]}),r.jsxs("div",{className:"wf-scenarios",role:"group","aria-label":"Verified presets",children:[r.jsx("button",{type:"button",disabled:i.working,title:"9999 raw USDC cap against the fixed 10000 request",onClick:()=>i.setPolicy({...i.agent.profile.policy,depositCapRaw:"9999"}),children:"Tiny cap"}),r.jsx("button",{type:"button",disabled:i.working,title:"60 second limit; outcome depends on the observed feed age",onClick:()=>i.setPolicy({...i.agent.profile.policy,maxFeedAgeSeconds:60}),children:"Stale feed"})]}),r.jsxs("div",{className:"wf-mode",role:"group","aria-label":"Payment mode",children:[r.jsx("button",{type:"button","aria-pressed":!c,disabled:i.working,onClick:()=>{i.setPay(!1),i.setConfirmed(!1)},children:"Preview"}),r.jsx("button",{type:"button","aria-pressed":c,disabled:i.working||!i.agent.payEnabled||!i.agent.payReady,title:i.agent.payEnabled?i.agent.payReady?"Escrows 0.01 test USDC plus gas":"Needs 0.01 test USDC and 0.001 Sepolia ETH":"Server PAY_ENABLED=1 required",onClick:()=>{i.setPay(!0),i.setConfirmed(!1)},children:"Pay"})]}),c&&r.jsxs("label",{className:"wf-confirm",children:[r.jsx("input",{type:"checkbox",required:!0,disabled:i.working,checked:i.confirmed||i.working&&i.run.start?.mode==="pay",onChange:x=>i.setConfirmed(x.target.checked)}),"Authorize 0.01 test USDC + gas."]})]})}):r.jsxs("div",{className:"wf-offline",children:[r.jsx("p",{children:"Runner unavailable"}),r.jsxs("div",{className:"wf-command",children:[r.jsx("code",{children:"npm run dev:live"}),r.jsx(ks,{value:"npm run dev:live",className:"wf-icon"})]}),r.jsxs("div",{className:"wf-inline-actions",children:[r.jsx(it,{to:"/docs/setup",children:"Local setup ↗"}),i.localDev&&r.jsxs("button",{type:"button",onClick:i.connect,title:"Check local runner",children:[r.jsx(hp,{size:14})," Retry"]})]})]}),!d&&r.jsxs("button",{type:"submit",form:"wf-live-policy",className:"btn-primary wf-run-button",disabled:w,children:[r.jsx(dp,{size:15})," ",i.busy?i.run.events.length?"Running…":"Starting…":i.pay?"Run Pay":"Run Preview"]}),!d&&(i.activeId||i.agent?.activeRunId)&&r.jsx("button",{type:"button",className:"wf-reconnect",onClick:()=>i.listen(i.activeId||i.agent.activeRunId),children:"Reconnect timeline"})]})}function S0(){const i=f0();return r.jsx(E0,{c:i})}function E0({c:i}){const[u,d]=E.useState(!1),[c,h]=E.useState([]),[p,y]=E.useState(null),j=E.useMemo(()=>r0(i.run.events),[i.run.events]),S=i.run.events.filter((x,U,H)=>!["run.start","run.end"].includes(x.type)&&(x.type!=="wallet.tx"||!H.slice(U+1).some(_=>_.type==="wallet.tx"&&_.data.hash===x.data.hash))&&(u||x.type!=="audit.receipt"&&!(x.type==="cre.result"&&x.data.target==="spend")&&!(x.type==="step.start"&&x.data.command?.includes("spend-settings")))),v=()=>i.start({preventDefault(){}}),C=x=>{const U=S.findLast(H=>Ts(H).includes(x));h([x]),U&&y({seq:U.seq,nonce:Date.now()})},w=j.summary;return r.jsxs("div",{className:"wf-grid",children:[r.jsx(x0,{c:i}),r.jsxs("div",{className:"wf-main",children:[r.jsx(m0,{state:j,highlight:c,onNode:C,onReplay:v,replayDisabled:!i.recording,mode:i.mode,guarded:j.status==="idle"?i.info?i.info.contractPolicySignatures===!0:void 0:j.contractPolicySignatures}),r.jsxs("div",{className:"wf-playback",children:[r.jsx("span",{className:"wf-playback-label",children:i.mode==="recorded"?"Recorded replay":i.busy?"Live · running":i.agent?"Live · ready":"Live · offline"}),r.jsx("div",{children:i.mode==="recorded"&&r.jsxs(r.Fragment,{children:[r.jsx("button",{type:"button",className:"wf-icon",onClick:v,disabled:!i.recording,"aria-label":i.playing?"Pause replay":"Play replay",title:i.playing?"Pause":"Play",children:i.playing?r.jsx(Kg,{size:16}):r.jsx(dp,{size:16})}),r.jsx("button",{type:"button",className:"wf-icon",onClick:i.step,disabled:!i.recording||!!i.run.summary,"aria-label":"Step one event",title:"Step",children:r.jsx($g,{size:16})}),r.jsx("button",{type:"button",className:"wf-icon",onClick:i.restart,disabled:!i.recording||!i.run.events.length,"aria-label":"Restart replay",title:"Restart",children:r.jsx(pp,{size:15})})]})})]}),r.jsx(g0,{state:j}),r.jsx("div",{className:"wf-summary",role:"group","aria-label":"Run summary",children:w?j.unverified?r.jsx("span",{children:"Amounts unverified · inspect receipts."}):r.jsxs(r.Fragment,{children:[r.jsxs("span",{children:[Je(j.fundedRaw)," funded"]}),r.jsxs("span",{children:[Je(j.earnedRaw)," earned"]}),r.jsxs("span",{children:[Je(j.refundedRaw)," refunded"]}),r.jsxs("span",{title:`${j.transactions.length} payment lifecycle + ${j.auditReceipts.length} audit receipt transactions`,children:[j.transactions.length+j.auditReceipts.length," txs"]}),r.jsxs("span",{children:[j.successfulRequests??"—"," calls"]})]}):r.jsx("span",{children:i.run.events.length?`${i.run.events.length} events · ${j.decision||"Running"}`:i.busy?"Checking local runner and wallet…":"Waiting for events"})}),i.error&&(i.mode==="live"||!i.recording)&&r.jsx("p",{className:"wf-error",role:"alert",children:i.error}),r.jsx(v0,{currentEvent:i.run.events.at(-1),events:S,artifact:i.artifact,advanced:u,setAdvanced:d,onHighlight:h,jump:p}),r.jsx(it,{className:"wf-scope",to:"/docs/overview",title:"Unaudited Sepolia prototype; test USDC has no monetary value; not the full x402 protocol",children:"Unaudited · Not full x402 ↗"})]})]})}function R0(){return r.jsxs("div",{className:"workflow-page",children:[r.jsxs("div",{className:"workflow-title",children:[r.jsxs("div",{children:[r.jsx("h1",{children:"Fund once. Guard agent spending."}),r.jsx("p",{children:"CRE checks fixed rules. A separate signer approves the intent; the escrow verifies it."})]}),r.jsxs("a",{href:"https://github.com/ola-893/agentPay/tree/main/cre/payment-guard",target:"_blank",rel:"noreferrer",children:["Workflow source ",r.jsx(Wt,{size:14})]})]}),r.jsx(S0,{})]})}const ft="https://github.com/ola-893/agentPay/blob/main/",w0=[["overview","Overview"],["setup","Run locally"],["cre","CRE workflow"],["usdc","USDC & policy"],["cli","CLI demo"],["integration","SDK integration"],["troubleshooting","Troubleshooting"]],ae=i=>({type:"paragraph",text:i}),Ss=i=>({type:"list",items:i}),Ht=(i,u)=>({type:"code",label:i,text:u}),on=(i,u)=>({type:"table",headers:i,rows:u}),ge=(i,u)=>({title:i,blocks:u}),j0={overview:{title:"Agent intelligence. Deterministic payment guardrails.",intro:"The agent proposes work; local CRE checks fixed rules; a separate policy signer approves eligible lifecycle actions. The guarded contract verifies those approvals before the agent can fund or close a stream.",source:"docs/README.md",sections:[ge("Why AgentPay exists",[ae("A naive pay-per-call design makes an agent pay gas for each API request. With an illustrative $5–$50 gas cost per transaction, 1,000 payment transactions would cost $5,000–$50,000 before service fees. This is the N+1 payment problem that motivated AgentPay; these numbers illustrate the problem, not current gas prices."),ae("Inspired by HTTP 402 and x402, AgentPay escrows a deposit once and lets many authenticated API requests reuse a time-based payment stream. Earnings accrue per second without a transaction each second or each request. Opening, approval when needed, cancellation and audit receipts still use gas; the prototype does not claim a fixed net saving or full x402 compatibility.")]),ge("What CRE adds to streaming",[ae("A model can propose a new payment when a usable session already exists, keep paying an unavailable service, or suggest closing a useful stream too early. AgentPay separates those proposals from payment authority: the agent proposes work, CRE checks explicit rules against observations, and the CLI executes eligible actions. Session reuse belongs to the CLI and provider; CRE checks the matching stream at lifecycle checkpoints."),on(["Remaining problem","CRE's role","Result in the CLI"],[["A model's payment request can exceed the budget or target an unhealthy service.","Apply fixed rules to HTTP health observations, USDC/USD checks and Sepolia token/balance reads, with deposit and rate limits.","OPEN or DENY before funding; refresh expired decisions before signing."],["A prepaid stream keeps accruing when a provider stops responding.","At checkpoints, compare provider/client counters and read the matching stream's state.","CONTINUE for healthy service; CLOSE after the demonstrated outage. The wallet cancels and the contract pays earnings/refunds unused escrow."],["An autonomous wallet needs spend controls and an explanation for blocked actions.","Dry-run each business transaction, apply hard rules and a transparent risk heuristic, and persist every decision.","ALLOW, BLOCK and ERROR blobs; confirmed onchain inclusion for a spend approval before signing, with other decisions anchored in batches."]]),ae("CRE produces deterministic policy results in local simulation. The CLI validates results and a separate policy process signs OPEN/CLOSE approvals. AgentPayGuardedStream verifies their signatures, exact intent, nonce and expiry alongside escrow accounting. These guardrails reduce avoidable loss within this managed flow, rather than guarantee every payment is safe. The contract trusts the local policy signer rather than a DON. The October 25 funded recording uses this guarded contract; older captures identify CLI-only enforcement. Checkpoints are explicit CLI steps. Availability observations do not establish answer quality.")]),ge("Watch the workflow",[ae("The compact Workflow cockpit puts a local agent and mode controls beside an event-driven diagram. Coinbase, Chainlink USDC/USD, service health and stream state feed CRE; dashed edges show signing gates, chain reads and health probes. The agent-to-service arc shows request reuse. A funded gauge splits into earned and refunded amounts only when those observations arrive."),ae("Recorded mode is the hosted default and needs no credentials. Choose a scenario, then Play/Pause, Step or Restart. Its locked Policy used summary cannot change a replay. Expand a timeline row for observations, raw result, exact command and transcript; hover or keyboard-focus a row to highlight nodes, or click a node to find its latest visible event. Live mode shows cap, feed age and failure threshold first, with rate and peg/disagreement limits under Advanced. USDC inputs convert with integer math; raw units stay in tooltips. Spend reviews and audit receipts appear under Show advanced.")]),ge("Read the visual evidence honestly",[ae("The agent is registered locally by a profile file, not an onchain registry. Live local needs npm run dev:live, ignored root .env settings and an authenticated CRE CLI; wallet keys stay on the server. Hosted Live setup never contacts your localhost. Recorded labels carry their actual capture date, and balances are run-start observations, not current balances."),ae("CRE stays local. Current guarded streams require policy signatures for OPEN/CLOSE. The October 25 funded recording has policy-signature enforcement; October 22 captures use CLI-only checks. Neither authenticates a DON. Many authenticated API calls reuse a stream; health checks happen at explicit CLI checkpoints, not continuously. Local health endpoints and per-run configs are simulation shortcuts. A close only refunds unearned funds; detection and mining latency still accrue earnings."),ae("The one-line transaction count includes lifecycle and observed audit receipts, with the split in its tooltip. Receipts prove inclusion of operator-submitted hashes, not observation truth. An old capture without nonce evidence shows call counts without a fabricated zero-transactions badge. The gauge is not an animated earnings estimate. Reduced-motion replay applies state instantly. This is an unaudited Sepolia prototype, not full x402; test USDC has no monetary value.")]),ge("Choose your starting point",[on(["Page","What it does"],[["CRE Workflow","Explore the CRE diagram and execution dashboard. Replay captured runs, or use the local server to run the real CLI."],["Docs","Understand the deterministic payment guardrails, reproduce the CLI demo, and inspect policy and trust boundaries."]])]),ge("What is demonstrated",[ae("The checked-in CRE captures compile the workflow to WASM, fetch Coinbase USDC/USD, read the Chainlink USDC/USD feed and Circle token decimals at finalized blocks, evaluate policy, and generate a bounded report. The ALLOW request is 0.01 USDC against a 0.1 cap; DENY requests 0.2 USDC."),ae("Recorded mode verifies and replays actual CLI event files with their capture dates. Live local mode calls a loopback-only server, which launches the same CLI and streams its events. It is Preview by default; Pay needs server opt-in, sufficient test balances and explicit confirmation. The browser never uses a saved ALLOW as authority.")]),ge("Current scope",[Ss(["Ethereum Sepolia only; testnet USDC and tUSD have no monetary value.","CRE stays local. The AI CLI has verified Sepolia stream funding, ten-request reuse, closure/refund and audit receipt evidence. The Workflow dashboard can trigger this CLI through the local server or replay captured events; the hosted page never contacts a visitor’s localhost.","The CLI uses local CRE decisions. Current paid runs require a guarded escrow that verifies a separate local policy signature for funding and closure. Older legacy captures show CLI-only enforcement; current funded replay uses the guarded path.","The legacy gateway uses AgentPay-specific HTTP 402 headers. It does not implement the full current x402 transport/facilitator protocol.","This is an unaudited prototype."])])],related:[[ft+"docs/WORKFLOW_DASHBOARD.md","Dashboard modes and security"],[ft+"docs/EVENT_SCHEMA.md","CLI event schema"],["/docs/setup","Run locally"],["/docs/cre","Understand CRE"],["/docs/cli","Run the CLI demo"]]},setup:{title:"Run the app. Reproduce the evidence.",intro:"Start with the recorded dashboard; use CRE when you want to execute the workflow against live inputs.",source:"docs/getting-started/quick-start.md",sections:[ge("1. Open the frontend",[ae("Use Node.js 22 and npm. Run these commands from the repository root. Open the local URL printed by Vite; the port may change if another process is using it."),Ht("Terminal",`npm run install:all
|
|
274
|
-
npm run dev`),ae("Node 22 is the verified major version. No wallet, contract deployment, Bun, CRE login, or private key is required to view existing evidence or read the docs.")]),ge("Run the dashboard locally",[Ht("Terminal",`npm run install:cre
|
|
275
|
-
cre login
|
|
276
|
-
npm run dev:live`),ae("Configure the registered operator’s CLI credentials and separate local policy-key file first; a clean checkout can replay without those keys. The combined command binds Vite on 127.0.0.1:5317 and the run server on 127.0.0.1:5318. Stop an older Vite process on port 5317 first. Choose Live local and Run Preview. Tiny cap sets 9999 raw against the fixed 10000 request; Stale feed sets a 60-second age limit and depends on observed feed age."),ae("Pay is disabled unless the server starts with PAY_ENABLED=1, the wallet has at least 0.01 test USDC and 0.001 Sepolia ETH, and the user selects Pay and confirms the new run. The CLI independently limits escrow to 0.01 USDC. Stream and audit transactions use gas. The form exposes six existing bounded policy fields; the quote, parties and model are not user inputs.")]),ge("2. Run CRE with live inputs",[ae("Install the official CRE CLI and Bun. CI uses Bun 1.3.12. Authenticate the CLI, install the workflow dependencies, then dry-run both npm scenarios. No wallet funds or key are needed for these read-only runs."),Ht("Terminal",`npm run install:cre
|
|
277
|
-
cre login
|
|
278
|
-
npm run cre:dry-run
|
|
279
|
-
npm run cre:simulate
|
|
280
|
-
npm run cre:simulate -- --deny-budget`),ae("The dry run checks expected decisions and more than ten minutes of remaining feed freshness. Network/API/feed changes may deny a future run. Wait for healthy inputs instead of weakening policy to manufacture ALLOW.")]),ge("3. Refresh the frontend captures",[Ht("Terminal",`npm run cre:capture
|
|
281
|
-
npm run cre:capture -- --deny-budget`),ae("A successful capture writes the transcript and JSON to docs/evidence and the frontend JSON to vite-project/public/evidence. Previous captures are retained under content-addressed backups. CLI or expected-decision failures leave saved captures intact. Output writes are sequential; after an interrupted file write, restore the backup and run npm run docs:check to detect mixed copies. These commands do not broadcast.")]),ge("4. Verify local changes",[Ht("Terminal",`npm run docs:check
|
|
282
|
-
npm test
|
|
283
|
-
npm run build:sdk
|
|
284
|
-
npm run typecheck:cre
|
|
285
|
-
npm --prefix vite-project run lint
|
|
286
|
-
npm run build:web`),ae("Frontend output is vite-project/dist. Static hosting must route app URLs such as /docs/cre back to index.html; preserve the included SPA fallback.")])],related:[["/docs/troubleshooting","Resolve setup problems"],[ft+"docs/AI_AGENT_DEMO.md","Run the CLI demo"]]},cre:{title:"CRE checks fixed rules for the payment lifecycle.",intro:"The LLM proposes service requests; a separate policy process runs local CRE against external observations and chain state. It signs OPEN/CLOSE permits; the escrow verifies them. CONTINUE stays a local checkpoint. USDC price safety is one input to this guardrail.",source:"docs/WORKFLOW.md",sections:[ge("From cheaper payments to guarded commitments",[ae("Batching payments alone does not protect against a hallucinated payment instruction or stop accrual during an outage. The local CRE workflow reads a frozen provider-health snapshot over HTTP, compares client-observed counters, and reads the token, balance and matching Sepolia stream at an explicit block. Fixed rules check session identity, parties, deposit, duration and rate. The same configuration and observations produce the same policy result; no LLM judges whether the payment is eligible."),on(["Decision","Observed condition","What happens next"],[["OPEN","Admission is healthy and the proposal fits configured limits.","The CLI reviews the spend and obtains its audit receipt before the wallet funds escrow."],["CONTINUE","The funded stream matches the session and observed service health is acceptable.","More requests reuse the same stream without a new payment transaction."],["CLOSE","The demonstrated checkpoint observes an unavailable provider after injected failures.","The wallet cancels; the contract pays time-accrued earnings and refunds the unused deposit."],["DENY","The proposed stream exceeds the deposit/rate limit, or admission fails another policy condition.","The CLI refuses to fund it and retains the decision."]]),ae("The demo runs checkpoints explicitly; it is not a background watcher. The provider observations are part of this local demo's trust boundary. Earnings continue until cancellation is mined, including CRE and receipt latency. Service-health checks cannot retroactively refund earned time or judge the usefulness of an answer.")]),ge("Spend controls and a durable explanation",[ae("Before approval, creation or cancellation, a separate CRE spend review calls an RPC simulation API and reads Circle USDC state. Hard rules bind Sepolia, six-decimal units, targets/recipients, amount and duration. A versioned risk heuristic can block otherwise eligible spending; it is not a calibrated loss probability. Cancellation does not use quality risk to obstruct a refund."),ae("Every ALLOW, BLOCK or ERROR is saved as a content-addressed local blob. Before signing, a spend approval needs a confirmed Merkle inclusion receipt and a fresh successful simulation of the same transaction. Remaining policy decisions, including blocks, are anchored in batches. Receipts prove inclusion of operator-submitted hashes, not DON approval or the correctness of the underlying observation. Receipt transactions add gas, independently of request reuse.")]),ge("Run the deterministic guardrail demo",[Ht("Terminal",`npm run --silent demo:agent
|
|
287
|
-
npm run --silent demo:agent -- --pay`),ae("Preview makes real model and local CRE calls without signing. The paid run escrows 0.01 Circle test USDC, serves ten requests, demonstrates CONTINUE, injects three HTTP 503 failures, obtains CLOSE, cancels and verifies earnings/refund. Premium is denied. Configure the dedicated payer, funded model key, recipient, RPC and stream address in ignored root .env as described in the agent guide. Paid runs spend test ETH on stream and audit transactions."),ae("The October 22, 2026 run completed with 0.00072 USDC earned and 0.00928 refunded, plus seven decisions in three new audit transactions. Those time-dependent payout amounts are historical, not expected constants for a new run. Expired admission is renewed through new CRE price and stream checks, without extending the old 120-second admission window.")]),ge("The recorded price-safety step",[Ss(["A cron trigger starts the single sample payment intent every five minutes in the configured workflow. Simulation explicitly selects that trigger.","HTTPClient fetches Coinbase USDC/USD and aggregates quotes with median consensus.","EVMClient reads the Sepolia feed description, decimals and latestRoundData, plus Circle USDC decimals, at finalized blocks.","The policy rejects invalid/incomplete rounds, future or stale data, price disagreement, deviation from $1 and an amount above the cap.","CRE generates a report binding chain, receiver, request ID, agent, recipient, token, amount, expiry and approved/denied decision."])]),ge("Decisions and units",[on(["Scenario","Request","Cap","Expected reason"],[["Within budget","10000 = 0.01 USDC","100000 = 0.1 USDC","WITHIN_POLICY"],["Over budget","200000 = 0.2 USDC","100000 = 0.1 USDC","AMOUNT_EXCEEDS_POLICY"]]),ae("The DENY runner changes only the requested amount, from 0.01 to 0.2 USDC. It does not change the price checks or spending cap. Live unhealthy inputs may trigger an earlier denial; the runner then fails the expected-scenario check.")]),ge("Simulation output and contract checks",[ae("CRE runs locally through the CLI. The receiver is zero and publishReport is false; ALLOW and DENY are simulation results, not USDC transfers. Workflow deployment to Chainlink's network and the public DON-authorized payment test are outside scope. Previously deployed Sepolia guard and settlement contracts remain closed with a zero workflow ID. Their authorization, expiry and replay behavior is tested separately on a local chain."),ae("The ALLOW report’s maximum is the requested 10000 units (0.01 USDC), not the 100000-unit policy cap. Reports expire after 300 seconds in the sample. Request IDs are single-use, so a real intent needs a fresh ID and real parties. The fixed sample ID is for read-only reproduction.")]),ge("Optional simulation write",[ae("A separate AgentPaySimulationReceiver accepts the simulator’s mock forwarder with an explicit identity-skip opt-in. It is record-only and cannot authorize or settle payments. Production identity checks remain enabled. The write runner simulates by default; only explicit --broadcast sends a testnet report, and public publication claims require an independently verified RPC receipt and matching receiver event."),ae("Deployment and broadcast require a dedicated funded Sepolia wallet. Follow the repository recording guide for the operator steps; these steps have not been performed by the saved read-only evidence.")])],related:[["/docs/cli","Run the AI streaming demo"],["/docs/usdc","Read the USDC policy"],[ft+"docs/evidence/admission-fix/VERIFICATION.md","Verified stream and audit receipts"],[ft+"docs/SPEND_AUDIT.md","Spend review and receipt boundaries"],["/docs/integration","Settle through the SDK"],["https://github.com/ola-893/agentPay/blob/main/docs/deployment/guarded-usdc.md","Existing Sepolia contract record"]]},usdc:{title:"USDC payments. USDC/USD policy.",intro:"The token, decimals, chain, feed and API are bound together. Changing only the payment-token address is not a supported asset swap.",source:"docs/USDC_SEPOLIA.md",sections:[ge("Sepolia addresses",[on(["Setting","Value"],[["Chain ID","11155111"],["AgentPayGuardedStream (current escrow)","0x35f5F69A68D703d70e661b5a0fDe282B3c4dfA09"],["Circle USDC","0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"],["USDC decimals","6"],["Chainlink USDC/USD","0xA2F78ab2355fe2f984D808B5CeE7FD0A93D5270E"],["Price decimals","8"],["Coinbase endpoint","https://api.coinbase.com/v2/prices/USDC-USD/spot"]]),ae("The source-verification snapshot records the official Circle and Chainlink directory entries checked on 17 October 2026. The workflow also validates the pair description and token decimals onchain.")]),ge("Configure the current escrow",[Ht("Root .env (public address)","AGENTPAY_USDC_STREAM_ADDRESS=0x35f5F69A68D703d70e661b5a0fDe282B3c4dfA09"),ae("Current paid agent runs require this guarded escrow and its separate local policy signer. Older recorded runs retain their original contract addresses. The strict AgentPayGuard/Settlement and legacy tUSD contracts are separate paths.")]),ge("Exact integer scales",[ae("USDC amounts use six decimals: 0.01 USDC = 10000 raw units, 0.1 USDC = 100000 and 0.2 USDC = 200000. Prices use a separate eight-decimal scale: $1 = 100000000. The SDK pay method accepts bigint raw units; do not use parseEther for USDC."),Ht("TypeScript",`import { parseUnits, formatUnits } from 'ethers';
|
|
288
|
-
const amount = parseUnits('0.01', 6); // 10000n
|
|
289
|
-
const display = formatUnits(amount, 6); // '0.01'`)]),ge("Peg and freshness limits",[Ss(["Source disagreement must be at most 100 basis points (1%), relative to Chainlink’s quote.","Each source must independently stay within 100 basis points of $1, inclusive. Matching prices at $0.98 still fail with USDC_DEPEG.","The maximum feed age is 86400 seconds, matching the listed 24-hour heartbeat. This testnet setting does not promise immediate depeg detection.","Feed timestamps more than 60 seconds ahead of runtime, invalid answers or incomplete rounds are rejected."]),ae("Sepolia USDC has no monetary value and is not backed by real dollars. The USD quotes model payment-asset risk; they do not give test tokens a redemption value. Get test USDC from Circle’s faucet with Ethereum Sepolia selected.")])],related:[["https://developers.circle.com/stablecoins/usdc-contract-addresses","Circle contract addresses"],["https://faucet.circle.com/","Circle test USDC faucet"],["https://sepolia.etherscan.io/address/0x35f5F69A68D703d70e661b5a0fDe282B3c4dfA09","Current guarded escrow on Sepolia"],[ft+"docs/deployment/guarded-usdc-stream.json","Verified guarded deployment"],["https://docs.chain.link/data-feeds/price-feeds/addresses","Chainlink feed addresses"]]},cli:{title:"Run the agent with deterministic payment guardrails.",intro:"Let the model propose service requests while fixed CRE rules guard the managed payment flow. Run actual AI tool calls and local CRE workflows from the terminal; the browser presents their evidence.",source:"docs/AI_AGENT_DEMO.md",sections:[ge("Propose. Check. Execute.",[ae("Qwen or OpenAI proposes a tier and purpose; host-controlled quotes supply the payment parameters. Local CRE applies fixed admission, continuation and outage-closure rules to HTTP observations and Sepolia state. Model prose is not payment approval. Configure the model key, registered payer/recipient and guarded AGENTPAY_USDC_STREAM_ADDRESS in ignored root .env. Deployment creates separate policy/recovery keys in ignored operator files; they are never passed to the agent process."),Ht("sh",`npm run demo:agent
|
|
290
|
-
npm run demo:agent -- --pay`),ae("Preview evaluates OPEN and DENY without signing. With --pay, basic deposits 0.01 USDC over 1000 seconds, ten successful API requests reuse the stream, and an injected outage produces CRE CLOSE. The wallet cancels, paying time-accrued earnings and refunding unused funds. Premium proposes 0.2 against a 0.1 deposit cap and is denied. Each paid run is a new stream and spends test ETH gas. Default output follows numbered demo stages with USDC amounts, live oracle and health observations, Sepolia blocks, policy limits and clear decisions. Full CRE commands and transcript paths remain saved in the run evidence and appear with --verbose. Ctrl+C or SIGTERM stops at safe boundaries and requests a signed CRE CLIENT_SHUTDOWN closure; it waits for submitted transactions and records cleanup. If CRE/signing is unavailable, or the process is killed, inspect hashes and use npm run recover:guarded-stream -- --stream-id <id> for operator recovery; --close-stream <id> is legacy recovery, --verbose for full commands, paths, raw units, addresses, model details and evidence hashes, and --json for structured output. The CLI gates signing and the guarded contract independently requires local policy signatures for OPEN/CLOSE. The separate recovery owner can close without CRE; the agent cannot use that key. Older recordings use the earlier unguarded contract; the October 25 funded replay shows policy-signature enforcement. No CRE network deployment, DON authentication, AgentPaySettlement or full x402 is used.")]),ge("Spend reviews and audit receipts",[ae("Before each business transaction, the streaming CLI now runs a local CRE spend review with an RPC dry-run, raw-unit caps and risk gates. It persists ALLOW, BLOCK and ERROR records in durable local blobs. Paid execution requires a confirmed Merkle inclusion receipt before wallet signing; receipt gas is separate from payment lifecycle gas. The receipt contract anchors operator-submitted hashes, not DON approval or risk correctness."),Ht("sh",`npm run --silent demo:spend-review
|
|
291
|
-
npm run --silent demo:spend-review -- --anchor --resume`),ae("The first command signs no transaction. The second uses test ETH to anchor pending decisions without transferring USDC. The initial nine-decision capture includes a genuine stale-feed block. A later full live AI run on October 22 completed the audited stream lifecycle: ten requests, outage closure, 0.00072 USDC earned, 0.00928 refunded, and seven decisions in three new audit receipts. Legacy recovery cancellation needs CRE and audit receipts, but no model call. Guarded streams instead have an explicit operator-only recovery key, which bypasses CRE for recovery. Local blob files need durable storage and backups. Recorded mode only replays these events; Live local launches the CLI through the loopback server.")]),ge("ToolBuyer: trial quality before purchasing",[ae("The ToolBuyer CLI asks a local CRE workflow to buy task-specific trial answers, update uncertain quality estimates and stop when another trial costs more than its expected one-step benefit. It compares held-out results against cheapest, fixed-showcase and fixed-expert providers, counting every trial and service answer."),Ht("sh",`npm run --silent demo:toolbuyer
|
|
292
|
-
npm run --silent demo:toolbuyer -- --offline --seeds 17,29,43,71,97`),ae("Providers are synthetic and purchases debit benchmark credits, not USDC. Default mode makes real CRE HTTP and Sepolia budget reads; offline mode uses neither CRE nor the chain. No model API key or signing is required. The recorded selector beats cheapest/showcase but loses to the always-strong baseline. This browser page does not run the benchmark or show live results.")]),ge("Recorded success and recovery",[ae("The October 25 guarded recording served ten calls, consumed signed OPEN/CLOSE permits and paid 0.00132 USDC with 0.00868 refunded. A later retest failed CRE authentication after five calls; the separate operator recovered stream #2, paying 0.00216 and refunding 0.00784 USDC. These are dated observations, not future expected payouts or a promise that CRE is currently available."),ae("The guarded contract protects its escrow actions, not unrelated transfers from the agent wallet. A local policy signature authenticates the trusted operator signer; it does not prove DON execution or external-data truth. Policy and recovery keys share the trusted local host. New-wallet deployment onboarding is not automated: the helper refuses the committed deployment record.")]),ge("Strict SDK integration prerequisites",[ae("The GuardedPaymentClient SDK reference uses a different authority path: configured strict consumers and an authenticated unexpired report for the exact intent. The current public guard is closed and this project does not deploy a workflow to Chainlink. The SDK checks onchain authorization before approval and settlement; local simulation output cannot unlock it.")])],related:[["/docs/integration","SDK integration"],[ft+"docs/AI_AGENT_DEMO.md","AI purchasing CLI guide"],[ft+"docs/GUARDED_STREAMS.md","Onchain local policy signatures"],[ft+"docs/evidence/guarded-retest/VERIFICATION.md","Authentication failure and operator recovery"],[ft+"docs/TOOLBUYER.md","ToolBuyer mechanism and comparison"],[ft+"docs/SPEND_AUDIT.md","Spend audit and receipt evidence"]]},integration:{title:"Authorize first. Approve tokens second.",intro:"Use GuardedPaymentClient for CRE-controlled USDC settlement. It is distinct from the legacy AgentPaySDK stream client.",source:"docs/sdk/guarded-payment-client.md",sections:[ge("Use the local SDK",[ae("Save these integration fragments inside sdk/ (for example sdk/integration.ts), importing ./src and ethers from that directory. Supply the listed variables and place awaited calls inside an async agent function. The root and SDK install separate ethers copies; a root-created signer can fail TypeScript checks. For another application, align the SDK and signer’s ethers dependency before use. No published npm package is assumed."),Ht("TypeScript",`import { GuardedPaymentClient } from './src';
|
|
293
|
-
|
|
294
|
-
// signer, guardAddress, settlementAddress, recipient and
|
|
295
|
-
// requestId must come from your real Sepolia deployment.
|
|
296
|
-
const client = new GuardedPaymentClient(signer, {
|
|
297
|
-
guardAddress,
|
|
298
|
-
settlementAddress,
|
|
299
|
-
chainId: 11155111,
|
|
300
|
-
});
|
|
301
|
-
|
|
302
|
-
// AFTER the authenticated report is accepted onchain:
|
|
303
|
-
const receipt = await client.pay(
|
|
304
|
-
requestId,
|
|
305
|
-
recipient,
|
|
306
|
-
'0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
|
|
307
|
-
10000n, // 0.01 USDC
|
|
308
|
-
);
|
|
309
|
-
console.log(receipt.hash);`)]),ge("Checks performed by pay",[Ss(["Validate request ID, nonzero payment addresses, positive uint256 amount and connected signer.","Verify the signer’s chain and the settlement contract’s guard address.","Call guard.canPay for the exact request ID, signer, recipient, token and amount before approving tokens.","Approve the settlement contract if allowance is insufficient, wait for confirmation, then check canPay again.","Call settlement.settle and require a successful receipt. The contract consumes the authorization atomically; a failed transfer reverts consumption."])]),ge("Common authorization failures",[ae("Missing, denied, expired or consumed authorization fails before approval. Another signer, recipient, token, chain or destination cannot use the report. The payment amount must be positive and no greater than the report’s maximum; one smaller payment consumes the entire request, so leftover headroom is not reusable. A saved JSON capture, a raw ABI report body and a transaction hash are not spend authority."),ae("The current streaming gateway does not automatically recognize a guarded settlement receipt for API access. Add a separate authenticated receipt-to-service policy if integrating a paid API.")])],related:[["/docs/cli","Run the streaming CLI"],[ft+"DEPLOYMENT.md","Deploy the strict consumer"]]},troubleshooting:{title:"Find the next useful step.",intro:"Start with the state shown on screen or the exact CLI reason. Do not treat an empty balance, saved capture or mock receipt as proof of payment.",source:"docs/reference/troubleshooting.md",sections:[ge("Frontend",[on(["Symptom","Next step"],[["Evidence unavailable","Check the JSON exists in vite-project/public/evidence. Retry after restoring it, or capture both scenarios with CRE."],["Old agent, streams or dashboard URL","Those browser pages were removed. Use Workflow or Docs from navigation; run payment demos from the CLI guide."]])]),ge("CRE and settlement",[on(["Reason or symptom","Meaning"],[["Authentication / network error","Verify CRE login, account access and connectivity to CRE services, Coinbase and the configured Sepolia RPC."],["FEED_STALE / FEED_NEAR_EXPIRY","The feed or recording headroom is too old. Wait for a feed update and repeat the dry run."],["PRICE_DEVIATION / USDC_DEPEG","Live data violates the price policy. Inspect both sources; do not loosen thresholds for a capture."],["AMOUNT_EXCEEDS_POLICY","The raw amount exceeds the per-request cap. This is expected only for the budget-DENY scenario."],["CRE authorization missing / expired / consumed","Obtain a fresh authenticated report for the exact request tuple, then retry with its unused request ID."],["Direct transaction-hash payments disabled","The legacy gateway deliberately rejects hash-only proof. A guarded receipt needs its own authenticated API integration."]])]),ge("Known verification limits",[ae("Recorded mode requires no wallet or credentials and never runs CRE or sends a payment. Live local delegates to the real CLI; key handling and transaction signing stay server-side. A disconnected event feed does not cancel that child. Reconnect the active timeline and inspect receipts before retrying. Documentation checks validate saved evidence, not a new public payment.")])],related:[[ft+"docs/UI_UX_REVIEW.md","UI review"],[ft+"docs/CRE_SUBMISSION.md","Submission evidence"],[ft+"docs/DOCUMENTATION_AUDIT.md","Correctness audit and verification limits"]]}};function C0({to:i,children:u,className:d}){return i.startsWith("https://")?r.jsxs("a",{href:i,target:"_blank",rel:"noreferrer",className:d,children:[u,r.jsx(Wt,{size:15,"aria-hidden":"true"})]}):r.jsxs(it,{to:i,className:d,children:[u,r.jsx(Cs,{size:15,"aria-hidden":"true"})]})}function A0({block:i}){return i.type==="paragraph"?r.jsx("p",{className:"text-sm leading-7 text-slate-300 sm:text-base",children:i.text}):i.type==="list"?r.jsx("ol",{className:"list-decimal space-y-3 pl-5 text-sm leading-7 text-slate-300 sm:text-base",children:i.items.map(u=>r.jsx("li",{className:"pl-1",children:u},u))}):i.type==="table"?r.jsx("div",{className:"overflow-x-auto rounded-xl border border-white/10",role:"region","aria-label":`${i.headers.join(" and ")} reference table`,tabIndex:0,children:r.jsxs("table",{className:`w-full table-fixed text-left text-sm ${i.headers.length>2?"min-w-[560px]":""}`,children:[i.headers.length>2&&r.jsx("caption",{className:"caption-top px-3 py-2 text-left text-xs text-slate-400",children:"On small screens, scroll this table horizontally."}),r.jsx("thead",{className:"bg-white/5 text-slate-200",children:r.jsx("tr",{children:i.headers.map(u=>r.jsx("th",{scope:"col",className:"px-3 py-3 font-medium sm:px-4",children:u},u))})}),r.jsx("tbody",{children:i.rows.map((u,d)=>r.jsx("tr",{className:"border-t border-white/10",children:u.map((c,h)=>r.jsx("td",{className:"break-words px-3 py-3 align-top leading-6 text-slate-400 [overflow-wrap:anywhere] sm:px-4",children:c},h))},d))})]})}):i.type==="code"?r.jsxs("div",{className:"panel min-w-0 overflow-hidden",children:[r.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-white/10 px-4 py-1",children:[r.jsx("p",{className:"text-xs text-slate-400",children:i.label}),r.jsx(ks,{value:i.text,label:`Copy ${i.label} example`})]}),r.jsx("pre",{tabIndex:0,"aria-label":`${i.label} example`,className:"max-w-full overflow-auto p-4 text-xs leading-7 text-blue-200 sm:p-5 sm:text-sm",children:r.jsx("code",{children:i.text})})]}):null}function T0(){const{section:i="overview"}=Uv(),u=j0[i];return u?r.jsxs("div",{className:"grid items-start gap-7 lg:grid-cols-[210px_minmax(0,1fr)] lg:gap-12",children:[r.jsxs("aside",{className:"min-w-0 lg:sticky lg:top-28",children:[r.jsxs("p",{className:"flex items-center gap-2 text-sm font-semibold text-slate-200",children:[r.jsx(sp,{size:17,"aria-hidden":"true"}),"Documentation"]}),r.jsx("nav",{"aria-label":"Documentation sections",className:"mt-4 grid grid-cols-2 gap-2 lg:flex lg:flex-col",children:w0.map(([d,c])=>r.jsx(it,{to:`/docs/${d}`,"aria-current":i===d?"page":void 0,className:`flex min-h-11 items-center rounded-lg px-3 py-2.5 text-sm ${i===d?"bg-blue-500/15 text-blue-200":"text-slate-400 hover:bg-white/5 hover:text-white"}`,children:c},d))}),r.jsxs("a",{href:"https://docs.chain.link/cre",className:"mt-4 inline-flex min-h-11 items-center gap-1 text-sm text-blue-300",target:"_blank",rel:"noreferrer",children:["Chainlink CRE docs ",r.jsx(Wt,{size:15})]})]}),r.jsxs("article",{className:"min-w-0 max-w-3xl",children:[r.jsxs("header",{children:[r.jsxs("p",{className:"eyebrow flex items-center gap-2",children:[r.jsx(zs,{size:15,"aria-hidden":"true"}),"Build with AgentPay"]}),r.jsx("h1",{className:"page-title mt-3",children:u.title}),r.jsx("p",{className:"mt-4 text-lg leading-relaxed text-slate-300",children:u.intro}),r.jsxs("a",{href:`https://github.com/ola-893/agentPay/blob/main/${u.source}`,className:"mt-3 inline-flex min-h-11 items-center gap-2 text-xs text-blue-300",target:"_blank",rel:"noreferrer",children:[r.jsx(Vg,{size:14}),"Read this guide in the repository ",r.jsx(Wt,{size:14})]})]}),r.jsx("div",{className:"mt-5 space-y-9",children:u.sections.map(d=>r.jsxs("section",{className:"min-w-0 space-y-4",children:[r.jsx("h2",{className:"border-t border-white/10 pt-6 text-lg font-semibold text-slate-100",children:d.title}),d.blocks.map((c,h)=>r.jsx(A0,{block:c},h))]},d.title))}),r.jsxs("section",{className:"mt-9 border-t border-white/10 pt-6",children:[r.jsx("h2",{className:"text-sm font-semibold text-slate-300",children:"Continue reading"}),r.jsx("div",{className:"mt-3 flex flex-wrap gap-x-5 gap-y-2",children:u.related.map(([d,c])=>r.jsx(C0,{to:d,className:"inline-flex min-h-11 items-center gap-1 text-sm text-blue-300",children:c},d))})]})]})]}):r.jsxs("section",{className:"panel p-8",children:[r.jsx("h1",{className:"page-title",children:"Documentation not found"}),r.jsx(it,{to:"/docs",className:"btn-outline mt-6",children:"Open documentation overview"})]})}function At(i){if(i==null||!/^\d+$/.test(String(i)))return"—";const u=BigInt(i);return`${u/1000000n}.${String(u%1000000n).padStart(6,"0")}`}function ws(i,u=!1){return!i||!Number.isFinite(new Date(i).getTime())?"Time unavailable":new Intl.DateTimeFormat("en-GB",{...u?{}:{day:"2-digit",month:"short",year:"numeric"},hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:"UTC"}).format(new Date(i))+" UTC"}const Ds={started:"Agent started",proposal:"Service requested",policy:"Policy checkpoint",transaction:"NEAR transaction",request:"Paid API request",reuse_verified:"Session reuse verified",outage:"Provider outage injected",settled:"Session settled",model:"Model tool call",summary:"Model explanation",finished:"Run finished",error:"Run stopped",cleanup:"Cleanup completed",recovery_required:"Owner recovery required"},Os=i=>i?.sessionId||i?.stream?.session_id||i?.value?.session_id||"";function Us(i){return i.type==="policy"?(i.reason||"No reason recorded").replaceAll("_"," ").toLowerCase():i.type==="request"?`Request ${i.count} · HTTP ${i.status} · funded session`:i.type==="transaction"?`${i.action} · ${i.hash}`:i.type==="settled"?`${At(i.stream?.earned)} earned · ${At(i.stream?.refunded)} returned`:i.type==="reuse_verified"?`${i.successfulRequests} requests · ${i.extraPaymentTransactions} extra payment transactions`:i.type==="summary"?"Model-generated explanation · not a verified decision":i.type==="outage"?i.injected?"Injected sandbox fixture failure":"Provider observation":i.message||i.model||i.tier||i.agentMode||(i.type==="finished"?i.ok?"Completed":"Failed":"Execution observation")}function vp(i){return i.action==="PROVIDER_CLAIM"&&i.value===!1?{label:"PAYOUT FAILED",tone:"error"}:i.type==="error"||i.type==="recovery_required"||i.receiptFailures?.length||i.type==="finished"&&!i.ok?{label:i.type==="recovery_required"?"RECOVERY":"ERROR",tone:"error"}:i.decision==="DENY"?{label:"DENY",tone:"warn"}:i.type==="outage"?{label:"OUTAGE",tone:"warn"}:i.decision?{label:i.decision,tone:i.decision==="CLOSE"?"neutral":"success"}:i.type==="transaction"?{label:"CONFIRMED",tone:"success"}:i.type==="request"?{label:`HTTP ${i.status}`,tone:i.status>=400?"error":"neutral"}:i.type==="settled"?{label:"CLOSED",tone:"success"}:i.type==="reuse_verified"?{label:"VERIFIED",tone:"success"}:{label:i.type==="finished"?"COMPLETE":"RECORDED",tone:"neutral"}}function N0(i){const u=i?.events||[],d=i?.providerPayout;return!d?.hash||u.some(c=>c.hash===d.hash)?u:[...u,{...d,type:"transaction",action:"PROVIDER_CLAIM",sequence:"P",runId:i.runId,attachedReceipt:!0}]}function Lh(i,u,d){const c=d.trim().toLowerCase();return i.filter(h=>(u==="all"||u==="decisions"&&h.type==="policy"||u==="transactions"&&h.type==="transaction")&&(!c||[Ds[h.type],Us(h),Os(h),h.decision,h.reason,h.action,h.hash].filter(Boolean).join(" ").toLowerCase().includes(c)))}function D0(i,u){const d=i?.events||[],c=_=>[...d].reverse().find(_),h=c(_=>_.type==="settled")?.stream,p=c(_=>_.type==="transaction"&&_.action==="OPEN")?.value,y=c(_=>_.type==="recovery_required"),j=c(_=>_.type==="policy"&&_.decision==="CLOSE"),S=c(_=>_.type==="transaction"&&["CLOSE","CLEANUP_CLOSE"].includes(_.action)&&_.value?.closed_at&&!_.receiptFailures?.length),v=h||S?.value||p,C=y?"Recovery required":h||S?"Closed":u?.active_session?"Active":j?"Closure requested":p?"Opened · final state unavailable":"No session observed",w=c(_=>_.type==="policy"&&["SERVICE_UNAVAILABLE","SERVICE_HEALTHY"].includes(_.reason)),x=d.some(_=>_.type==="outage"&&_.injected),U=i?.providerPayout;let H="Not observed";return U?.value===!0&&!U.receiptFailures?.length?H="Paid · claim confirmed":U?.value===!1||U?.receiptFailures?.length?H="Payout failed · inspect receipt":U?.hash?H="Claim outcome unavailable":h&&Object.values(i?.results||{}).some(_=>_.sessionId===h.session_id&&_.providerPayment==="claimable")&&(H="Claimable at settlement"),{stream:v,settled:h,reuse:c(_=>_.type==="reuse_verified"),denied:c(_=>_.type==="policy"&&_.decision==="DENY"),session:C,health:w,injected:x,payoutState:H,serviceState:w?`${w.reason==="SERVICE_UNAVAILABLE"?"Unavailable":"Healthy"}${x?" · fixture":""}`:"Not observed"}}function O0(i,u){if(i.type!=="policy"||!i.quote)return[];const d=i.quote;return[{label:"Rate",observed:`${At(d.rate)} USDC / s`,bound:`${At(u?.max_rate)} USDC / s`,failed:i.reason==="RATE_LIMIT"},{label:"Duration",observed:d.duration_seconds==null?"—":`${d.duration_seconds} s`,bound:u?.max_duration_seconds==null?"—":`${u.max_duration_seconds} s`,failed:i.reason==="DURATION_LIMIT"}]}const sc=!window.__AGENTPAY_RECORDED_ONLY__&&["localhost","127.0.0.1","[::1]"].includes(window.location.hostname);function oc({label:i,tone:u="neutral"}){const d=u==="warn"?Pn:u==="error"?up:u==="success"?bc:cp;return r.jsxs("span",{className:`ap-badge ap-${u}`,children:[r.jsx(d,{size:12,"aria-hidden":"true"}),i]})}function Oe({label:i,children:u}){return r.jsxs("div",{className:"ap-field",children:[r.jsx("dt",{children:i}),r.jsx("dd",{children:u??"Not recorded"})]})}function U0({event:i,run:u,vault:d,network:c,onClose:h}){const p=E.useRef(null),y=E.useRef(null);E.useEffect(()=>{const U=document.activeElement,H=p.current,_=document.body.style.overflow;return document.body.style.overflow="hidden",H.showModal(),y.current?.focus(),()=>{H.close(),document.body.style.overflow=_,U instanceof HTMLElement&&U.isConnected&&U.focus()}},[]);const j=O0(i,d?.policy),S=i.permit||i.approval?.permit,v=vp(i),C=i.type==="transaction",w=u?.recordedAt?"Recorded evidence":"Live run evidence";function x(U){if(U.key!=="Tab")return;const H=[...p.current.querySelectorAll('button, a[href], input, select, textarea, summary, [tabindex]:not([tabindex="-1"])')].filter(W=>W.getClientRects().length>0&&!W.disabled),_=H[0],Y=H.at(-1);U.shiftKey&&document.activeElement===_?(U.preventDefault(),Y?.focus()):!U.shiftKey&&document.activeElement===Y&&(U.preventDefault(),_?.focus())}return r.jsx("dialog",{ref:p,className:"ap-drawer","aria-labelledby":"ap-evidence-title",onKeyDown:x,onCancel:h,onClick:U=>{U.target===U.currentTarget&&h()},children:r.jsxs("div",{className:"ap-drawer-inner",children:[r.jsxs("header",{className:"ap-drawer-header",children:[r.jsxs("div",{children:[r.jsx("span",{className:"ap-eyebrow",children:"DECISION & EXECUTION EVIDENCE"}),r.jsx("h2",{id:"ap-evidence-title",children:i.action==="PROVIDER_CLAIM"?"Provider claim":Ds[i.type]||i.type})]}),r.jsx("button",{ref:y,className:"ap-icon-button","aria-label":"Close evidence",onClick:h,children:r.jsx(Ig,{size:20})})]}),r.jsxs("div",{className:"ap-drawer-body",children:[r.jsx(oc,{...v}),r.jsx("p",{className:"ap-evidence-description",children:Us(i)}),r.jsxs("dl",{className:"ap-metadata",children:[r.jsxs(Oe,{label:"Source",children:[w," · ",c||"Network unavailable"]}),r.jsx(Oe,{label:"Observation",children:i.attachedReceipt?"Separate receipt attached to this capture; timestamp not recorded.":ws(i.at)}),r.jsx(Oe,{label:"Run",children:r.jsx("code",{children:u?.runId||i.runId||"Not recorded"})}),Os(i)&&r.jsx(Oe,{label:"Session",children:r.jsx("code",{children:Os(i)})}),i.reason&&r.jsx(Oe,{label:"Reason",children:r.jsx("code",{children:i.reason})})]}),j.length>0&&r.jsxs("section",{className:"ap-evidence-section",children:[r.jsx("h3",{children:"Observed input & vault limit"}),r.jsx("p",{children:"Compared with the vault snapshot included in this view."}),r.jsxs("div",{className:"ap-comparisons",children:[r.jsxs("div",{className:"ap-comparison ap-comparison-heading",children:[r.jsx("span",{children:"Rule"}),r.jsx("span",{children:"Offered"}),r.jsx("span",{children:"Snapshot limit"})]}),j.map(U=>r.jsxs("div",{className:`ap-comparison ${U.failed?"ap-comparison-failed":""}`,children:[r.jsx("strong",{children:U.label}),r.jsx("span",{children:U.observed}),r.jsx("span",{children:U.bound})]},U.label))]}),i.decision==="DENY"&&r.jsx("p",{className:"ap-explanation",children:"This proposal was denied. No payment transaction is attached to this decision."}),i.prices&&r.jsxs("p",{className:"ap-explanation",children:["Market check:"," ",i.prices.reason==="SANDBOX_FIXTURE_NO_MARKET_PRICE"?"Skipped for the sandbox fixture; no market-price attestation.":i.prices.reason||i.prices.decision]})]}),i.type==="policy"&&r.jsxs("section",{className:"ap-evidence-section",children:[r.jsx("h3",{children:"Policy authority"}),r.jsx("p",{children:"The standalone worker observes the service and signs approved lifecycle actions. The NEAR contract independently checks the permit and financial limits."}),S?r.jsx("pre",{children:JSON.stringify(S,null,2)}):r.jsx("p",{className:"ap-explanation",children:i.decision==="DENY"?"No permit issued for this denial.":"Permit fields are not included in this event. Inspect the original local intent artifact for nonce and expiry."})]}),C&&r.jsxs("section",{className:"ap-evidence-section",children:[r.jsx("h3",{children:i.action==="PROVIDER_CLAIM"?"Provider payout receipt":"NEAR execution receipt"}),r.jsxs("dl",{className:"ap-metadata",children:[r.jsx(Oe,{label:"Operation",children:i.action}),r.jsx(Oe,{label:"Signer",children:r.jsx("code",{children:i.signerId||"Not recorded"})}),r.jsx(Oe,{label:"Receiver",children:r.jsx("code",{children:i.receiverId||"Not recorded"})}),r.jsx(Oe,{label:"Transaction hash",children:c==="testnet"?r.jsxs("a",{href:`https://testnet.nearblocks.io/txns/${encodeURIComponent(i.hash)}`,target:"_blank",rel:"noreferrer",children:[i.hash,r.jsx(Yg,{size:12})]}):r.jsx("code",{children:i.hash})}),r.jsx(Oe,{label:"Execution receipts",children:i.receiptIds?.length??"Not recorded"})]}),c==="sandbox"&&r.jsx("p",{className:"ap-explanation",children:"Local sandbox transaction. Its receipt is included below; it has no public explorer link."}),i.action==="PROVIDER_CLAIM"&&r.jsx("p",{className:"ap-explanation",children:i.value===!0&&!i.receiptFailures?.length?"The provider's separate token payout completed successfully.":"Inspect the receipt outcome before retrying the provider payout."})]}),i.type==="settled"&&r.jsxs("section",{className:"ap-evidence-section",children:[r.jsx("h3",{children:"Settlement"}),r.jsxs("dl",{className:"ap-metadata",children:[r.jsxs(Oe,{label:"Funded",children:[At(i.stream?.deposit)," USDC"]}),r.jsxs(Oe,{label:"Earned",children:[At(i.stream?.earned)," USDC"]}),r.jsxs(Oe,{label:"Returned to vault",children:[At(i.stream?.refunded)," USDC"]})]}),r.jsx("p",{children:"Session closure credits earnings. The provider's claim is a separate transaction."})]}),i.type==="reuse_verified"&&r.jsxs("section",{className:"ap-evidence-section",children:[r.jsx("h3",{children:"Reuse verification"}),r.jsxs("dl",{className:"ap-metadata",children:[r.jsx(Oe,{label:"Successful requests",children:i.successfulRequests}),r.jsx(Oe,{label:"Extra payment transactions",children:i.extraPaymentTransactions}),r.jsx(Oe,{label:"Nonce before",children:i.nonceBefore}),r.jsx(Oe,{label:"Nonce after",children:i.nonceAfter})]})]}),i.type==="summary"&&r.jsxs("section",{className:"ap-evidence-section",children:[r.jsx("h3",{children:"Model explanation · unverified"}),r.jsx("p",{className:"ap-model-text",children:i.text})]}),i.type==="recovery_required"&&r.jsxs("section",{className:"ap-evidence-section",children:[r.jsx("h3",{children:"Owner recovery"}),r.jsx("p",{children:"Execution needs reconciliation before another wallet action. Inspect the local receipt and use the owner's supported recovery path."}),r.jsxs(it,{to:"/docs",onClick:h,children:["Read recovery and trust boundaries ",r.jsx(Cs,{size:14})]})]}),r.jsxs("details",{className:"ap-raw",children:[r.jsxs("summary",{children:[r.jsx(Lg,{size:14}),"Original event / receipt JSON"]}),r.jsx("pre",{children:JSON.stringify(i,null,2)})]}),i.eventHash&&r.jsxs("div",{className:"ap-journal-hash",children:[r.jsx("span",{children:"Journal event digest"}),r.jsx("code",{children:i.eventHash}),r.jsx("small",{children:"A journal digest identifies the saved observation. It does not independently attest HTTP inputs."})]})]})]})})}function M0(){const[i,u]=E.useState("recorded"),[d,c]=E.useState("scripted"),[h,p]=E.useState(null),[y,j]=E.useState(null),[S,v]=E.useState(""),[C,w]=E.useState(""),[x,U]=E.useState(null),[H,_]=E.useState(!0),[Y,W]=E.useState(!1),[X,Z]=E.useState("all"),[xe,I]=E.useState(""),[Ne,de]=E.useState(null),[Ue,He]=E.useState(null),Xe=E.useCallback(async B=>{_(!0),v("");try{const he=await fetch("/near/latest.json",{signal:B,cache:"no-store"});if(!he.ok)throw new Error("No recorded NEAR run is available. Capture one with npm run demo:capture.");const ke=await he.json();if(ke.schemaVersion!==1||!Array.isArray(ke.events)||!["sandbox","testnet"].includes(ke.network))throw new Error("The recorded run has an unsupported evidence format.");p(ke)}catch(he){he.name!=="AbortError"&&v(he.message)}finally{B?.aborted||_(!1)}},[]);E.useEffect(()=>{const B=new AbortController;return Xe(B.signal),()=>B.abort()},[Xe]);const ot=E.useCallback(async B=>{const he=await fetch("/api/near/state",{signal:B,cache:"no-store"});if(!he.ok||!he.headers.get("content-type")?.includes("application/json"))throw new Error("Local runner unavailable. Start npm run dev:live to connect.");const ke=await he.json();if(!ke.vault||!["sandbox","testnet"].includes(ke.network))throw new Error("Local runner returned an unsupported state.");B?.aborted||(j(ke),U(new Date().toISOString()),w(""))},[]);E.useEffect(()=>{if(i!=="live"||!sc)return;const B=new AbortController;let he;const ke=async()=>{try{await ot(B.signal)}catch(Ft){Ft.name!=="AbortError"&&w(Ft.message)}B.signal.aborted||(he=setTimeout(ke,1200))};return ke(),()=>{B.abort(),clearTimeout(he)}},[i,ot]);async function qe(){W(!0),w("");try{const B=await fetch("/api/near/run",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({csrf:y?.csrf,mode:d})}),he=await B.json();if(!B.ok)throw new Error(he.error||"The agent run could not start.");await ot()}catch(B){w(B.message)}finally{W(!1)}}function st(B){u(B),de(null),He(null),Z("all"),I("")}const pe=i==="live"?y?.run:h,ye=i==="live"?y?.vault:pe?.finalVault,O=pe?.events||[],G=i==="live"?y?.network:pe?.network,K=i==="live"&&(y?.running||Y),me=i==="live"?C:S,g=i==="live"?x:pe?.recordedAt,k=`${i}:${pe?.runId||O[0]?.runId||"idle"}`,L=D0(pe,ye),V=N0(pe),$=Lh(V,X,xe),fe=O.find(B=>B.type==="started"),P=L.stream,et=G==="sandbox"?"fixture USDC":G==="testnet"?"test USDC":"USDC",we=K?"Running":pe?.ok===!0?"Run complete":pe?.ok===!1?"Needs attention":i==="recorded"&&H?"Loading":"Awaiting run",ie=B=>{if(!B)return;const he={key:k,event:B};de(he),He(he)},ne=B=>[...O].reverse().find(B),Me=[{title:"Agent",subtitle:"Requests access",icon:lc,tag:fe?pe?.agentMode==="model"?"Model tool calls":"Scripted run":"Awaiting request",event:ne(B=>B.type==="proposal")},{title:"Policy",subtitle:"Observes & approves",icon:ai,tag:L.denied?"Guardrail applied":O.some(B=>B.type==="policy")?"Policy evaluated":"Awaiting check",event:L.denied||ne(B=>B.type==="policy")},{title:"NEAR vault",subtitle:"Enforces the limits",icon:As,tag:L.session,event:ne(B=>B.type==="transaction")},{title:"Paid API",subtitle:"Serves the session",icon:Qg,tag:L.reuse?`${L.reuse.successfulRequests} requests verified`:"Awaiting requests",event:L.reuse||ne(B=>B.type==="request")}];return r.jsxs("div",{className:"near-page ap-dashboard",children:[r.jsxs("header",{className:"ap-heading",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"ap-eyebrow",children:[r.jsx("span",{className:"ap-live-dot"}),"AGENTPAY / NEAR WORKSPACE"]}),r.jsxs("h1",{children:["Agent payments, ",r.jsx("span",{children:"under control."})]}),r.jsx("p",{children:"One funded session. Many API requests. A boundary on every payment."})]}),r.jsxs(it,{className:"ap-doc-link",to:"/docs",children:["How it works ",r.jsx(Wt,{size:15})]})]}),r.jsxs("section",{className:"ap-source-bar","aria-label":"Execution source",children:[r.jsxs("div",{className:"ap-source-tabs",role:"group","aria-label":"Execution source",children:[r.jsxs("button",{"aria-pressed":i==="recorded",onClick:()=>st("recorded"),children:[r.jsx(kg,{size:14}),"Recorded run"]}),r.jsxs("button",{"aria-pressed":i==="live",disabled:!sc,title:sc?void 0:"Live execution is available on the local dashboard.",onClick:()=>st("live"),children:[r.jsx(lc,{size:14}),"Live local"]})]}),r.jsxs("div",{className:"ap-source-info",children:[r.jsx("span",{className:"ap-network-label",children:G==="sandbox"?"NEAR Sandbox":G==="testnet"?"NEAR Testnet":"Network unavailable"}),r.jsxs("span",{children:[i==="recorded"?"Captured":me?"Last observed":"Observed"," ",g?ws(g):"—"]})]})]}),me&&r.jsxs("div",{className:"ap-notice",role:"alert",children:[r.jsx(Pn,{size:17}),r.jsxs("div",{children:[r.jsx("strong",{children:i==="live"?"Runner connection interrupted":"Recording unavailable"}),r.jsxs("p",{children:[me,i==="live"&&y?" Displayed values are the last successful snapshot.":""]})]}),i==="recorded"&&r.jsx("button",{onClick:()=>Xe(),children:"Retry"})]}),r.jsx("section",{className:"ap-money","aria-label":"Vault and selected session amounts",children:[{label:"Available vault funds",value:ye?.available,note:g?`Vault snapshot · ${i==="live"&&me?"stale":"observed"}`:"No vault snapshot",icon:As},{label:"Session funded",value:P?.deposit,note:P?.session_id||"No session observed",icon:Wt},{label:"Provider earned",value:L.settled?.earned??(P?.closed_at?P.earned:void 0),note:L.payoutState,icon:bc},{label:"Returned to vault",value:L.settled?.refunded??(P?.closed_at?P.refunded:void 0),note:L.settled||P?.closed_at?"Unused session funds":"Awaiting confirmed settlement",icon:Mg}].map(({label:B,value:he,note:ke,icon:Ft})=>r.jsxs("div",{className:"ap-money-card",children:[r.jsxs("div",{children:[r.jsx("span",{children:B}),r.jsx(Ft,{size:15,"aria-hidden":"true"})]}),r.jsx("strong",{children:At(he)}),r.jsx("small",{children:et}),r.jsx("p",{children:ke})]},B))}),r.jsx("p",{className:"ap-scope-note",children:"Available funds are vault-wide. Funded, earned and returned amounts refer to the selected session."}),r.jsxs("div",{className:"ap-workspace-grid",children:[r.jsxs("section",{className:"ap-panel ap-flow","aria-label":"Payment workflow",children:[r.jsxs("div",{className:"ap-panel-heading",children:[r.jsxs("div",{children:[r.jsx("span",{className:"ap-eyebrow",children:"PAYMENT WORKFLOW"}),r.jsx("h2",{children:"One session. Many requests."})]}),r.jsx(oc,{label:we,tone:K?"neutral":pe?.ok===!0?"success":pe?.ok===!1?"error":"neutral"})]}),r.jsxs("div",{className:"ap-flow-canvas",children:[r.jsx("div",{className:"ap-workflow-nodes",children:Me.map(({title:B,subtitle:he,icon:ke,tag:Ft,event:ea},tt)=>r.jsxs("div",{className:"ap-node-wrap",children:[r.jsxs("button",{className:`ap-node ${ea?"ap-node-observed":""}`,disabled:!ea,onClick:()=>ie(ea),"aria-label":`Inspect ${B} evidence`,children:[r.jsxs("span",{className:"ap-node-symbol",children:[r.jsx(ke,{size:25,strokeWidth:1.5}),r.jsxs("span",{children:["0",tt+1]})]}),r.jsx("strong",{children:B}),r.jsx("span",{className:"ap-node-subtitle",children:he}),r.jsx("span",{className:"ap-node-tag",children:Ft})]}),tt<Me.length-1&&r.jsx(Cs,{className:"ap-flow-arrow",size:19,"aria-hidden":"true"})]},B))}),r.jsxs("div",{className:"ap-flow-legends",children:[r.jsxs("span",{children:[r.jsx("i",{}),"Offchain policy observation"]}),r.jsxs("span",{children:[r.jsx(ai,{size:12}),"Onchain payment enforcement"]})]})]}),r.jsxs("div",{className:"ap-reuse-strip",children:[r.jsxs("div",{children:[r.jsx("strong",{children:L.reuse?.successfulRequests??"—"}),r.jsx("span",{children:"requests in one session"})]}),r.jsx("span",{className:"ap-reuse-divider"}),r.jsxs("div",{children:[r.jsx("strong",{children:L.reuse?.extraPaymentTransactions??"—"}),r.jsx("span",{children:"extra payment transactions"})]}),r.jsxs("button",{disabled:!L.reuse,onClick:()=>ie(L.reuse),children:["Inspect reuse ",r.jsx(Wt,{size:14})]})]}),r.jsx("div",{className:"ap-run-controls",children:i==="live"?r.jsxs(r.Fragment,{children:[r.jsxs("label",{children:["Agent execution",r.jsxs("select",{value:d,onChange:B=>c(B.target.value),disabled:K,children:[r.jsx("option",{value:"scripted",children:"Scripted demonstration"}),r.jsx("option",{value:"model",children:"AI tool calls · configured model"})]})]}),r.jsxs("button",{className:"ap-primary",disabled:!y||!!C||K,onClick:qe,children:[K?r.jsx(Zg,{size:15,className:"near-spin"}):r.jsx(lc,{size:15}),K?"Agent running…":"Run agent"]})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx("span",{className:"ap-run-mode",children:pe?.agentMode==="model"?"AI tool calls":pe?"Scripted demonstration":"Execution evidence"}),r.jsx("p",{children:pe?.runId?`Run ${pe.runId.slice(0,8)} · select a node to inspect its evidence`:"Capture a run with npm run demo:capture"})]}),r.jsxs("a",{className:"ap-secondary",href:"/near/latest.json",target:"_blank",rel:"noreferrer",children:[r.jsx(Gg,{size:14}),"Source recording"]})]})}),r.jsxs("p",{className:"ap-footnote",children:[L.injected?"This sandbox demonstration injects an outage after the requests. ":"","Earnings accrue by elapsed time until closure or the session cap."," ",G==="sandbox"?"Fixture tokens on an isolated NEAR node.":"Testnet tokens have no monetary value."]})]}),r.jsxs("aside",{className:"ap-panel ap-owner","aria-label":"Owner limits and authority",children:[r.jsxs("div",{className:"ap-panel-heading",children:[r.jsxs("div",{children:[r.jsx("span",{className:"ap-eyebrow",children:"OWNER GUARDRAILS"}),r.jsx("h2",{children:"Funds with boundaries."})]}),r.jsx(ai,{size:19})]}),r.jsxs("dl",{className:"ap-limit-list",children:[r.jsxs(Oe,{label:"Cumulative budget",children:[At(ye?.policy?.budget)," ",r.jsx("small",{children:"USDC"})]}),r.jsxs(Oe,{label:"Maximum session",children:[At(ye?.policy?.max_deposit)," ",r.jsx("small",{children:"USDC"})]}),r.jsxs(Oe,{label:"Maximum rate",children:[At(ye?.policy?.max_rate)," ",r.jsx("small",{children:"USDC / s"})]}),r.jsxs(Oe,{label:"Maximum duration",children:[ye?.policy?.max_duration_seconds??"—"," ",r.jsx("small",{children:"seconds"})]})]}),r.jsx("p",{className:"ap-owner-note",children:"Enforced by the vault contract. Cumulative spending authority has no automatic daily or monthly reset."}),r.jsxs("div",{className:"ap-authority",children:[r.jsxs("div",{children:[r.jsx(ai,{size:15}),r.jsx("strong",{children:"Restricted agent key"})]}),r.jsxs("p",{children:[r.jsx("code",{children:"open_stream"}),r.jsx("code",{children:"close_stream"})]}),r.jsx("small",{children:"The key's gas allowance is separate from the USDC budget. Its allowance value is not in this snapshot."})]}),r.jsxs("details",{className:"ap-authority-details",children:[r.jsxs("summary",{children:["Accounts & authority ",r.jsx(zg,{size:13})]}),r.jsxs("dl",{className:"ap-metadata",children:[r.jsx(Oe,{label:"Vault",children:r.jsx("code",{children:(i==="live"?y?.vaultId:pe?.vaultId)||"Not observed"})}),r.jsx(Oe,{label:"Owner",children:r.jsx("code",{children:ye?.owner_id||"Not observed"})}),r.jsx(Oe,{label:"Agent",children:r.jsx("code",{children:ye?.agent_id||"Not observed"})}),r.jsx(Oe,{label:"Approved providers",children:ye?.policy?.recipients?.join(", ")||"Not observed"}),r.jsx(Oe,{label:"Admission",children:ye?ye.paused?"Paused":"Enabled":"Not observed"})]}),r.jsx("p",{children:"The owner can configure, pause and recover. A separate policy key signs permits; the agent key alone cannot approve spending."})]})]})]}),r.jsxs("section",{className:"ap-operational","aria-label":"Separate service, session and payout states",children:[r.jsxs("div",{children:[r.jsx("span",{children:"Provider · last observation"}),r.jsx("strong",{className:L.health?.reason==="SERVICE_UNAVAILABLE"?"ap-text-warn":"",children:L.serviceState}),r.jsx("small",{children:L.health?ws(L.health.at,!0):"No health checkpoint recorded"})]}),r.jsxs("div",{children:[r.jsx("span",{children:"Session state"}),r.jsx("strong",{children:L.session}),r.jsx("small",{children:L.settled?"Confirmed settlement recorded":"State from execution evidence"})]}),r.jsxs("div",{children:[r.jsx("span",{children:"Provider payout"}),r.jsx("strong",{children:L.payoutState}),r.jsx("small",{children:"Separate from session closure"})]})]}),L.denied&&r.jsxs("button",{className:"ap-denial",onClick:()=>ie(L.denied),children:[r.jsx("span",{className:"ap-denial-icon",children:r.jsx(ai,{size:17})}),r.jsxs("div",{children:[r.jsxs("strong",{children:[L.denied.tier?`${L.denied.tier[0].toUpperCase()}${L.denied.tier.slice(1)} request denied`:"Request denied"," ",r.jsx("span",{children:"Guardrail applied"})]}),r.jsx("p",{children:L.denied.reason==="RATE_LIMIT"?`Offered rate ${At(L.denied.quote?.rate)} USDC / s exceeds the ${At(ye?.policy?.max_rate)} snapshot limit.`:Us(L.denied)})]}),r.jsxs("span",{className:"ap-denial-action",children:["Inspect decision ",r.jsx(Cs,{size:15})]})]}),r.jsxs("section",{className:"ap-panel ap-history","aria-label":"Execution history",children:[r.jsxs("div",{className:"ap-panel-heading",children:[r.jsxs("div",{children:[r.jsx("span",{className:"ap-eyebrow",children:"EXECUTION HISTORY"}),r.jsx("h2",{children:"The full trail, in context."})]}),r.jsxs("span",{className:"ap-event-count",children:[V.length," observations & receipts"]})]}),r.jsxs("div",{className:"ap-history-toolbar",children:[r.jsx("div",{className:"ap-history-tabs",role:"group","aria-label":"Filter execution history",children:[["all","All events"],["decisions","Decisions"],["transactions","Transactions"]].map(([B,he])=>r.jsxs("button",{"aria-pressed":X===B,onClick:()=>Z(B),children:[he,r.jsx("span",{children:Lh(V,B,"").length})]},B))}),r.jsxs("label",{className:"ap-history-search",children:[r.jsx(Oh,{size:14}),r.jsx("input",{"aria-label":"Search execution history",placeholder:"Search events or session…",value:xe,onChange:B=>I(B.target.value)})]})]}),r.jsxs("div",{className:"ap-history-columns","aria-hidden":"true",children:[r.jsx("span",{children:"EVENT / OBSERVATION"}),r.jsx("span",{children:"OUTCOME"}),r.jsx("span",{children:"SESSION / OPERATION"}),r.jsx("span",{children:"TIME · UTC"}),r.jsx("span",{})]}),$.length?r.jsx("ol",{className:"ap-history-list",children:$.map(B=>{const he=vp(B),ke=Ue?.key===k&&Ue.event.sequence===B.sequence;return r.jsx("li",{children:r.jsxs("button",{className:`ap-history-row ${ke?"ap-row-selected":""}`,onClick:()=>ie(B),"aria-label":`Inspect ${B.action==="PROVIDER_CLAIM"?"provider claim":Ds[B.type]||B.type} ${B.sequence}`,children:[r.jsxs("span",{className:"ap-row-event",children:[r.jsx("span",{className:"ap-event-number",children:typeof B.sequence=="number"?String(B.sequence).padStart(2,"0"):B.sequence}),r.jsxs("span",{children:[r.jsx("strong",{children:B.action==="PROVIDER_CLAIM"?"Provider claim":Ds[B.type]||B.type}),r.jsx("small",{children:Us(B)})]})]}),r.jsx(oc,{...he}),r.jsx("code",{className:"ap-row-session",children:Os(B)||B.action||"—"}),r.jsx("time",{dateTime:B.at,children:B.attachedReceipt?"Attached receipt":ws(B.at,!0).replace(" UTC","")}),r.jsx(Wt,{size:14,className:"ap-row-arrow"})]})},`${k}-${B.sequence}`)})}):r.jsxs("div",{className:"ap-empty",children:[r.jsx(Oh,{size:23}),r.jsx("strong",{children:V.length?"No matching events":i==="recorded"&&H?"Loading execution evidence…":"No run to inspect yet"}),r.jsx("p",{children:V.length?"Try another event, reason or session identifier.":i==="live"?"Connect the local runner and run the agent to build its execution trail.":"Generate recorded evidence with npm run demo:capture."}),V.length>0&&r.jsx("button",{onClick:()=>{Z("all"),I("")},children:"Reset all filters"})]}),r.jsxs("div",{className:"ap-history-footer",children:[r.jsxs("span",{children:[$.length," of ",V.length," entries · sequence preserves event order"]}),r.jsx("span",{children:pe?.runId?`Run ${pe.runId.slice(0,8)}`:"No run selected"})]})]}),r.jsxs("footer",{className:"ap-dashboard-footer",children:[r.jsxs("span",{children:["Native NEAR payments ·"," ",G==="sandbox"?"Sandbox fixture tokens":"Testnet tokens"," ","· No monetary value"]}),r.jsxs(it,{to:"/docs",children:["Architecture & trust boundaries ",r.jsx(Wt,{size:13})]})]}),Ne?.key===k&&r.jsx(U0,{event:Ne.event,run:pe,vault:ye,network:G,onClose:()=>de(null)})]})}function Hh(){return r.jsxs("article",{className:"near-page near-docs",children:[r.jsx("div",{className:"near-kicker",children:"AGENTPAY / DOCUMENTATION"}),r.jsx("h1",{children:"Agent payments with a human limit."}),r.jsx("p",{children:"AgentPay gives an AI agent a funded API session on NEAR. The owner controls the money and policy. The agent can request access, reuse its session and submit approved lifecycle actions."}),r.jsx("h2",{children:"The payment lifecycle"}),r.jsxs("ol",{children:[r.jsx("li",{children:"The owner deposits USDC into the vault and sets the budget, approved recipients, maximum rate and session duration."}),r.jsx("li",{children:"The agent encounters HTTP 402 and asks to buy access. A separate policy worker checks the provider, quote, available funds and payment rules."}),r.jsx("li",{children:"The worker signs the exact session intent. The agent’s restricted key submits it. The NEAR vault independently checks the signature, nonce, expiry and financial limits."}),r.jsx("li",{children:"The provider verifies a signed agent session against the active onchain stream. Many requests share that session without another payment transaction."}),r.jsx("li",{children:"On detected service failure, the worker approves closure. Earned funds become claimable by the provider; the unused amount returns to the vault."})]}),r.jsx("h2",{children:"Run it locally"}),r.jsx("pre",{children:r.jsx("code",{children:`npm run install:all
|
|
310
|
-
rustup target add wasm32-unknown-unknown
|
|
311
|
-
npm run build:near
|
|
312
|
-
npm run dev:live`})}),r.jsxs("p",{children:["Open ",r.jsx("code",{children:"http://127.0.0.1:5327"}),", choose Live local, and run the agent. This starts a real isolated NEAR blockchain and a local research API using a six-decimal test token. No wallet or model key is needed for the scripted demonstration."]}),r.jsx("pre",{children:r.jsx("code",{children:`npm run demo:agent -- --sandbox
|
|
313
|
-
npm run demo:agent -- --sandbox --ai
|
|
314
|
-
npm run test:near
|
|
315
|
-
npm run demo:capture`})}),r.jsx("p",{children:"The AI option uses your configured Qwen or OpenAI credentials from the ignored environment file. The model only selects a service tier. Quotes, recipients, amounts and signing stay with the host and policy worker."}),r.jsx("h2",{children:"What protects the funds"}),r.jsx("p",{children:"The agent key can call only the vault’s open and close methods. The contract checks the registered agent key and a distinct policy signature, then enforces approved recipients, one active session, per-session limits, cumulative spending, nonce and expiry. The owner can pause new sessions, change policy and recover an active stream."}),r.jsx("p",{children:"Function-call key allowance pays for gas. The USDC budget lives in the contract. A session’s full deposit counts against the remaining budget while active. The provider claims earnings after settlement, and failed token transfers restore the claim for retry."}),r.jsx("h2",{children:"Availability and trust"}),r.jsx("p",{children:"The policy worker and its HTTP observations remain trusted. A signature authenticates that worker; it does not prove API answer quality. Funds accrue by elapsed time until closure or the session cap. A stopped worker cannot cancel a stream automatically. Owner recovery and permissionless expiry settlement remain available."}),r.jsx("p",{children:"The owner and vault deployment keys are administrative authorities. The prototype does not claim protection against a compromised operator machine. Keys stay in local files with restricted permissions and never enter the browser."}),r.jsx("h2",{children:"Networks and evidence"}),r.jsx("p",{children:"Sandbox runs use an isolated NEAR node and an explicitly labeled token fixture. Testnet deployment uses Circle’s native test USDC. Recorded runs display their network and capture date; local transaction hashes have no public explorer. A testnet deployment and local sandbox are distinct evidence."}),r.jsxs("p",{children:["The repository’s ",r.jsx("code",{children:"docs/NEAR.md"})," includes testnet deployment, provider setup, recovery and the migration boundaries."," ",r.jsx("code",{children:"docs/HACKATHON_NEAR.md"})," identifies the inherited baseline and NEAR work."]}),r.jsx("h2",{children:"Migration history"}),r.jsx("p",{children:"AgentPay originally ran local Chainlink CRE simulations with Sepolia escrow. The active implementation uses native NEAR contracts and a standalone policy worker. Historical CRE code and evidence remain available for provenance."}),r.jsx("p",{children:r.jsx(it,{to:"/legacy",children:"View the historical CRE dashboard →"})}),r.jsx("p",{children:r.jsx(it,{to:"/",children:"Open the NEAR workflow →"})})]})}function _0(){return r.jsx(Jv,{children:r.jsxs(ya,{element:r.jsx(a0,{}),children:[r.jsx(ya,{index:!0,element:r.jsx(M0,{})}),r.jsx(ya,{path:"cre",element:r.jsx(Zv,{to:"/legacy",replace:!0})}),r.jsx(ya,{path:"legacy",element:r.jsx(R0,{})}),r.jsx(ya,{path:"docs",element:r.jsx(Hh,{})}),r.jsx(ya,{path:"docs/near",element:r.jsx(Hh,{})}),r.jsx(ya,{path:"docs/:section",element:r.jsx(T0,{})}),r.jsx(ya,{path:"*",element:r.jsxs("section",{className:"panel p-8 text-center",children:[r.jsx("p",{className:"eyebrow",children:"404 / Page not found"}),r.jsx("h1",{className:"page-title mt-3",children:"This page isn’t here."}),r.jsx("p",{className:"mt-3 text-slate-400",children:"Use the navigation or return to the workflow."}),r.jsx(it,{to:"/",className:"btn-primary mt-6",children:"Open NEAR workflow"})]})})]})})}Ky.createRoot(document.getElementById("root")).render(r.jsx(E.StrictMode,{children:r.jsx(bg,{children:r.jsx(_0,{})})}));
|