@yukino.js/yukino 0.0.21-dev → 0.0.21
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/dist/{chunk-EQABLL4S.js → chunk-CEP5W4VW.js} +1 -1
- package/dist/{chunk-7WP7SERS.js → chunk-ENUOAMFA.js} +1 -1
- package/dist/{chunk-P6K7EQHF.js → chunk-FCZRCSNM.js} +1 -1
- package/dist/{chunk-2N7OIUQW.js → chunk-XXTMMEVY.js} +2 -2
- package/dist/lib/{chunk-XVXFUSSS.js → chunk-ZNDE6BQM.js} +1 -1
- package/dist/lib/index.js +2 -2
- package/dist/lib/{providers-2NPR2VR4.js → providers-RONNZOUT.js} +1 -1
- package/dist/{main-OMIZDIYB.js → main-V4RKN5MY.js} +2 -2
- package/dist/main.js +2 -2
- package/dist/{providers-G5SKN22T.js → providers-NYJNJO7D.js} +1 -1
- package/dist/{server-ESDMJACZ.js → server-7QJH5UCM.js} +1 -1
- package/dist/{server-Z742CQSK.js → server-XFB4HEJU.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __yukinoCreateRequire } from "node:module";
|
|
3
3
|
const require = __yukinoCreateRequire(import.meta.url);
|
|
4
|
-
import{$ as m_,$a as U0,A as XC,Aa as B0,Ab as ev,B as Ks,Ba as mg,Bb as tv,C as p_,Ca as S0,D as zl,Da as j0,E as ag,Ea as dg,F as VC,Fa as gg,G as Ql,Ga as z0,H as e0,Ha as fg,I as t0,Ia as bg,J as ig,Ja as hg,K as rg,Ka as _g,L as wu,La as yg,M as Ys,Ma as Ag,Na as g_,O as n0,Oa as kg,P as a0,Pa as Cu,Q as u_,Qa as f_,R as og,Ra as Q0,Sa as T0,T as i0,Ta as N0,U as r0,Ua as b_,V as cg,Va as R0,W as o0,Wa as F0,X as s0,Xa as D0,Y as c0,Ya as L0,Z as l0,Za as M0,_ as p0,_a as Xs,a as yu,aa as u0,b as Au,ba as m0,bb as O0,c as ao,ca as d0,cb as vu,d as tr,da as g0,db as Vs,e as qC,ea as f0,eb as ec,f as UC,fa as Tl,fb as wg,g as ku,ga as Nl,gb as tc,h as ZC,ha as b0,hb as Eu,ia as h0,ib as xg,ja as lg,jb as Cg,k as eg,ka as d_,kb as vg,l as GC,la as _0,lb as Eg,ma as pg,mb as Z0,n as PC,na as ug,nb as Ig,o as WC,oa as y0,ob as h_,p as tg,pa as A0,pb as G0,q as s_,qa as xu,qb as P0,r as c_,ra as k0,rb as W0,s as HC,sa as w0,sb as H0,t as l_,ta as x0,tb as K0,u as Jo,ua as C0,ub as $g,v as ng,va as v0,vb as Y0,w as jl,wa as E0,wb as J0,x as KC,xb as Bg,y as YC,ya as I0,yb as X0,z as JC,za as $0,zb as V0}from"./chunk-2N7OIUQW.js";import{Oa as q0,Pa as Js,k as sg}from"./chunk-57IGGFHK.js";import{A as Ws,B as Hs,D as OC,d as wC,e as Xd,f as fu,i as $C,k as a_,o as bu,q as er,r as no,s as TC,t as NC,u as RC,v as FC,w as DC,y as o_,z as LC}from"./chunk-5D3QKHYQ.js";import{a as MC,c as HT}from"./chunk-VU3JWAJR.js";import"./chunk-WKTO7XPO.js";import{Bc as Xt,Ec as Ps,Gc as Yo,Ma as r_,Na as BC,Oa as hu,Pa as wr,a as xC,e as CC,i as vC,l as EC,m as IC,pc as SC,rc as jC,w as i_,wc as On,xc as _u,yc as zC,zc as QC}from"./chunk-5AOJ5ZSQ.js";import"./chunk-KEPFYD6K.js";import"./chunk-N7ARR77W.js";import"./chunk-27PD4NBA.js";import{w as Vd}from"./chunk-WLJL66O5.js";import{g as kC}from"./chunk-7WP7SERS.js";import{a as Jd}from"./chunk-EQABLL4S.js";import{B as Va}from"./chunk-QSKJBSCI.js";import{c as gu}from"./chunk-VM4YKTHC.js";import{a as n_,c as Tn,d as AC,e as O}from"./chunk-7MKA3SHV.js";var mv=Tn(_t=>{"use strict";var A_=Symbol.for("react.transitional.element"),KT=Symbol.for("react.portal"),YT=Symbol.for("react.fragment"),JT=Symbol.for("react.strict_mode"),XT=Symbol.for("react.profiler"),VT=Symbol.for("react.consumer"),eN=Symbol.for("react.context"),tN=Symbol.for("react.forward_ref"),nN=Symbol.for("react.suspense"),aN=Symbol.for("react.memo"),ov=Symbol.for("react.lazy"),iN=Symbol.for("react.activity"),nv=Symbol.iterator;function rN(e){return e===null||typeof e!="object"?null:(e=nv&&e[nv]||e["@@iterator"],typeof e=="function"?e:null)}var sv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cv=Object.assign,lv={};function Fl(e,t,n){this.props=e,this.context=t,this.refs=lv,this.updater=n||sv}Fl.prototype.isReactComponent={};Fl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Fl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pv(){}pv.prototype=Fl.prototype;function k_(e,t,n){this.props=e,this.context=t,this.refs=lv,this.updater=n||sv}var w_=k_.prototype=new pv;w_.constructor=k_;cv(w_,Fl.prototype);w_.isPureReactComponent=!0;var av=Array.isArray;function y_(){}var kn={H:null,A:null,T:null,S:null},uv=Object.prototype.hasOwnProperty;function x_(e,t,n){var a=n.ref;return{$$typeof:A_,type:e,key:t,ref:a!==void 0?a:null,props:n}}function oN(e,t){return x_(e.type,t,e.props)}function C_(e){return typeof e=="object"&&e!==null&&e.$$typeof===A_}function sN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var iv=/\/+/g;function __(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sN(""+e.key):t.toString(36)}function cN(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(y_,y_):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Rl(e,t,n,a,r){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case A_:case KT:c=!0;break;case ov:return c=e._init,Rl(c(e._payload),t,n,a,r)}}if(c)return r=r(e),c=a===""?"."+__(e,0):a,av(r)?(n="",c!=null&&(n=c.replace(iv,"$&/")+"/"),Rl(r,t,n,"",function(d){return d})):r!=null&&(C_(r)&&(r=oN(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(iv,"$&/")+"/")+c)),t.push(r)),1;c=0;var p=a===""?".":a+":";if(av(e))for(var u=0;u<e.length;u++)a=e[u],s=p+__(a,u),c+=Rl(a,t,n,s,r);else if(u=rN(e),typeof u=="function")for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=p+__(a,u++),c+=Rl(a,t,n,s,r);else if(s==="object"){if(typeof e.then=="function")return Rl(cN(e),t,n,a,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function Sg(e,t,n){if(e==null)return e;var a=[],r=0;return Rl(e,a,"","",function(s){return t.call(n,s,r++)}),a}function lN(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var rv=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)},pN={map:Sg,forEach:function(e,t,n){Sg(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Sg(e,function(){t++}),t},toArray:function(e){return Sg(e,function(t){return t})||[]},only:function(e){if(!C_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};_t.Activity=iN;_t.Children=pN;_t.Component=Fl;_t.Fragment=YT;_t.Profiler=XT;_t.PureComponent=k_;_t.StrictMode=JT;_t.Suspense=nN;_t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=kn;_t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return kn.H.useMemoCache(e)}};_t.cache=function(e){return function(){return e.apply(null,arguments)}};_t.cacheSignal=function(){return null};_t.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=cv({},e.props),r=e.key;if(t!=null)for(s in t.key!==void 0&&(r=""+t.key),t)!uv.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(a[s]=t[s]);var s=arguments.length-2;if(s===1)a.children=n;else if(1<s){for(var c=Array(s),p=0;p<s;p++)c[p]=arguments[p+2];a.children=c}return x_(e.type,r,a)};_t.createContext=function(e){return e={$$typeof:eN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:VT,_context:e},e};_t.createElement=function(e,t,n){var a,r={},s=null;if(t!=null)for(a in t.key!==void 0&&(s=""+t.key),t)uv.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(r[a]=t[a]);var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){for(var p=Array(c),u=0;u<c;u++)p[u]=arguments[u+2];r.children=p}if(e&&e.defaultProps)for(a in c=e.defaultProps,c)r[a]===void 0&&(r[a]=c[a]);return x_(e,s,r)};_t.createRef=function(){return{current:null}};_t.forwardRef=function(e){return{$$typeof:tN,render:e}};_t.isValidElement=C_;_t.lazy=function(e){return{$$typeof:ov,_payload:{_status:-1,_result:e},_init:lN}};_t.memo=function(e,t){return{$$typeof:aN,type:e,compare:t===void 0?null:t}};_t.startTransition=function(e){var t=kn.T,n={};kn.T=n;try{var a=e(),r=kn.S;r!==null&&r(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(y_,rv)}catch(s){rv(s)}finally{t!==null&&n.types!==null&&(t.types=n.types),kn.T=t}};_t.unstable_useCacheRefresh=function(){return kn.H.useCacheRefresh()};_t.use=function(e){return kn.H.use(e)};_t.useActionState=function(e,t,n){return kn.H.useActionState(e,t,n)};_t.useCallback=function(e,t){return kn.H.useCallback(e,t)};_t.useContext=function(e){return kn.H.useContext(e)};_t.useDebugValue=function(){};_t.useDeferredValue=function(e,t){return kn.H.useDeferredValue(e,t)};_t.useEffect=function(e,t){return kn.H.useEffect(e,t)};_t.useEffectEvent=function(e){return kn.H.useEffectEvent(e)};_t.useId=function(){return kn.H.useId()};_t.useImperativeHandle=function(e,t,n){return kn.H.useImperativeHandle(e,t,n)};_t.useInsertionEffect=function(e,t){return kn.H.useInsertionEffect(e,t)};_t.useLayoutEffect=function(e,t){return kn.H.useLayoutEffect(e,t)};_t.useMemo=function(e,t){return kn.H.useMemo(e,t)};_t.useOptimistic=function(e,t){return kn.H.useOptimistic(e,t)};_t.useReducer=function(e,t,n){return kn.H.useReducer(e,t,n)};_t.useRef=function(e){return kn.H.useRef(e)};_t.useState=function(e){return kn.H.useState(e)};_t.useSyncExternalStore=function(e,t,n){return kn.H.useSyncExternalStore(e,t,n)};_t.useTransition=function(){return kn.H.useTransition()};_t.version="19.2.7"});var De=Tn((bP,dv)=>{"use strict";dv.exports=mv()});var vv=Tn((WP,Tg)=>{"use strict";Tg.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Tg.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Tg.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var S_=Tn((HP,Zl)=>{"use strict";var Cn=global.process,ac=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};ac(Cn)?(Ev=n_("assert"),Ul=vv(),Iv=/^win/i.test(Cn.platform),Bu=n_("events"),typeof Bu!="function"&&(Bu=Bu.EventEmitter),Cn.__signal_exit_emitter__?va=Cn.__signal_exit_emitter__:(va=Cn.__signal_exit_emitter__=new Bu,va.count=0,va.emitted={}),va.infinite||(va.setMaxListeners(1/0),va.infinite=!0),Zl.exports=function(e,t){if(!ac(global.process))return function(){};Ev.equal(typeof e,"function","a callback must be provided for exit handler"),Ol===!1&&$_();var n="exit";t&&t.alwaysLast&&(n="afterexit");var a=function(){va.removeListener(n,e),va.listeners("exit").length===0&&va.listeners("afterexit").length===0&&Ng()};return va.on(n,e),a},Ng=function(){!Ol||!ac(global.process)||(Ol=!1,Ul.forEach(function(t){try{Cn.removeListener(t,Rg[t])}catch{}}),Cn.emit=Fg,Cn.reallyExit=B_,va.count-=1)},Zl.exports.unload=Ng,ic=function(t,n,a){va.emitted[t]||(va.emitted[t]=!0,va.emit(t,n,a))},Rg={},Ul.forEach(function(e){Rg[e]=function(){if(ac(global.process)){var n=Cn.listeners(e);n.length===va.count&&(Ng(),ic("exit",null,e),ic("afterexit",null,e),Iv&&e==="SIGHUP"&&(e="SIGINT"),Cn.kill(Cn.pid,e))}}}),Zl.exports.signals=function(){return Ul},Ol=!1,$_=function(){Ol||!ac(global.process)||(Ol=!0,va.count+=1,Ul=Ul.filter(function(t){try{return Cn.on(t,Rg[t]),!0}catch{return!1}}),Cn.emit=Bv,Cn.reallyExit=$v)},Zl.exports.load=$_,B_=Cn.reallyExit,$v=function(t){ac(global.process)&&(Cn.exitCode=t||0,ic("exit",Cn.exitCode,null),ic("afterexit",Cn.exitCode,null),B_.call(Cn,Cn.exitCode))},Fg=Cn.emit,Bv=function(t,n){if(t==="exit"&&ac(global.process)){n!==void 0&&(Cn.exitCode=n);var a=Fg.apply(this,arguments);return ic("exit",Cn.exitCode,null),ic("afterexit",Cn.exitCode,null),a}else return Fg.apply(this,arguments)}):Zl.exports=function(){return function(){}};var Ev,Ul,Iv,Bu,va,Ng,ic,Rg,Ol,$_,B_,$v,Fg,Bv});var Qv=Tn(Xo=>{"use strict";Xo.ConcurrentRoot=1;Xo.ContinuousEventPriority=8;Xo.DefaultEventPriority=32;Xo.DiscreteEventPriority=2;Xo.IdleEventPriority=268435456;Xo.LegacyRoot=0;Xo.NoEventPriority=0});var Dg=Tn((XP,Tv)=>{"use strict";Tv.exports=Qv()});var L1=Tn(En=>{"use strict";function X_(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,r=e[a];if(0<Zg(r,t))e[a]=t,e[n]=r,n=a;else break e}}function xr(e){return e.length===0?null:e[0]}function Pg(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length,s=r>>>1;a<s;){var c=2*(a+1)-1,p=e[c],u=c+1,d=e[u];if(0>Zg(p,n))u<r&&0>Zg(d,p)?(e[a]=d,e[u]=n,a=u):(e[a]=p,e[c]=n,a=c);else if(u<r&&0>Zg(d,n))e[a]=d,e[u]=n,a=u;else break e}}return t}function Zg(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}En.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(S1=performance,En.unstable_now=function(){return S1.now()}):(K_=Date,j1=K_.now(),En.unstable_now=function(){return K_.now()-j1});var S1,K_,j1,so=[],Vo=[],PR=1,Fi=null,Za=3,V_=!1,Nu=!1,Ru=!1,ey=!1,T1=typeof setTimeout=="function"?setTimeout:null,N1=typeof clearTimeout=="function"?clearTimeout:null,z1=typeof setImmediate<"u"?setImmediate:null;function Gg(e){for(var t=xr(Vo);t!==null;){if(t.callback===null)Pg(Vo);else if(t.startTime<=e)Pg(Vo),t.sortIndex=t.expirationTime,X_(so,t);else break;t=xr(Vo)}}function ty(e){if(Ru=!1,Gg(e),!Nu)if(xr(so)!==null)Nu=!0,Xl||(Xl=!0,Jl());else{var t=xr(Vo);t!==null&&ny(ty,t.startTime-e)}}var Xl=!1,Fu=-1,R1=5,F1=-1;function D1(){return ey?!0:!(En.unstable_now()-F1<R1)}function Y_(){if(ey=!1,Xl){var e=En.unstable_now();F1=e;var t=!0;try{e:{Nu=!1,Ru&&(Ru=!1,N1(Fu),Fu=-1),V_=!0;var n=Za;try{t:{for(Gg(e),Fi=xr(so);Fi!==null&&!(Fi.expirationTime>e&&D1());){var a=Fi.callback;if(typeof a=="function"){Fi.callback=null,Za=Fi.priorityLevel;var r=a(Fi.expirationTime<=e);if(e=En.unstable_now(),typeof r=="function"){Fi.callback=r,Gg(e),t=!0;break t}Fi===xr(so)&&Pg(so),Gg(e)}else Pg(so);Fi=xr(so)}if(Fi!==null)t=!0;else{var s=xr(Vo);s!==null&&ny(ty,s.startTime-e),t=!1}}break e}finally{Fi=null,Za=n,V_=!1}t=void 0}}finally{t?Jl():Xl=!1}}}var Jl;typeof z1=="function"?Jl=function(){z1(Y_)}:typeof MessageChannel<"u"?(J_=new MessageChannel,Q1=J_.port2,J_.port1.onmessage=Y_,Jl=function(){Q1.postMessage(null)}):Jl=function(){T1(Y_,0)};var J_,Q1;function ny(e,t){Fu=T1(function(){e(En.unstable_now())},t)}En.unstable_IdlePriority=5;En.unstable_ImmediatePriority=1;En.unstable_LowPriority=4;En.unstable_NormalPriority=3;En.unstable_Profiling=null;En.unstable_UserBlockingPriority=2;En.unstable_cancelCallback=function(e){e.callback=null};En.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R1=0<e?Math.floor(1e3/e):5};En.unstable_getCurrentPriorityLevel=function(){return Za};En.unstable_next=function(e){switch(Za){case 1:case 2:case 3:var t=3;break;default:t=Za}var n=Za;Za=t;try{return e()}finally{Za=n}};En.unstable_requestPaint=function(){ey=!0};En.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Za;Za=e;try{return t()}finally{Za=n}};En.unstable_scheduleCallback=function(e,t,n){var a=En.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?a+n:a):n=a,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=n+r,e={id:PR++,callback:t,priorityLevel:e,startTime:n,expirationTime:r,sortIndex:-1},n>a?(e.sortIndex=n,X_(Vo,e),xr(so)===null&&e===xr(Vo)&&(Ru?(N1(Fu),Fu=-1):Ru=!0,ny(ty,n-a))):(e.sortIndex=r,X_(so,e),Nu||V_||(Nu=!0,Xl||(Xl=!0,Jl()))),e};En.unstable_shouldYield=D1;En.unstable_wrapCallback=function(e){var t=Za;return function(){var n=Za;Za=t;try{return e.apply(this,arguments)}finally{Za=n}}}});var ay=Tn((OW,M1)=>{"use strict";M1.exports=L1()});var q1=Tn((ZW,Du)=>{"use strict";Du.exports=function(e){function t(i,o,l,m){return new Vz(i,o,l,m)}function n(){}function a(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(i){var o=i,l=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(l=o.return),i=o.return;while(i)}return o.tag===3?l:null}function s(i){if(r(i)!==i)throw Error(a(188))}function c(i){var o=i.alternate;if(!o){if(o=r(i),o===null)throw Error(a(188));return o!==i?null:i}for(var l=i,m=o;;){var f=l.return;if(f===null)break;var h=f.alternate;if(h===null){if(m=f.return,m!==null){l=m;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===l)return s(f),i;if(h===m)return s(f),o;h=h.sibling}throw Error(a(188))}if(l.return!==m.return)l=f,m=h;else{for(var C=!1,Q=f.child;Q;){if(Q===l){C=!0,l=f,m=h;break}if(Q===m){C=!0,m=f,l=h;break}Q=Q.sibling}if(!C){for(Q=h.child;Q;){if(Q===l){C=!0,l=h,m=f;break}if(Q===m){C=!0,m=h,l=f;break}Q=Q.sibling}if(!C)throw Error(a(189))}}if(l.alternate!==m)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?i:o}function p(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=p(i),o!==null)return o;i=i.sibling}return null}function u(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(i.tag!==4&&(o=u(i),o!==null))return o;i=i.sibling}return null}function d(i){return i===null||typeof i!="object"?null:(i=Lx&&i[Lx]||i["@@iterator"],typeof i=="function"?i:null)}function g(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===iQ?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case ul:return"Fragment";case wh:return"Profiler";case Fx:return"StrictMode";case Ch:return"Suspense";case vh:return"SuspenseList";case Ih:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case pl:return"Portal";case Lo:return i.displayName||"Context";case Dx:return(i._context.displayName||"Context")+".Consumer";case xh:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Eh:return o=i.displayName||null,o!==null?o:g(i.type)||"Memo";case Mo:o=i._payload,i=i._init;try{return g(i(o))}catch{}}return null}function b(i){return{current:i}}function _(i){0>gl||(i.current=Qh[gl],Qh[gl]=null,gl--)}function y(i,o){gl++,Qh[gl]=i.current,i.current=o}function A(i){return i>>>=0,i===0?32:31-(zT(i)/QT|0)|0}function k(i){var o=i&42;if(o!==0)return o;switch(i&-i){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:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function v(i,o,l){var m=i.pendingLanes;if(m===0)return 0;var f=0,h=i.suspendedLanes,C=i.pingedLanes;i=i.warmLanes;var Q=m&134217727;return Q!==0?(m=Q&~h,m!==0?f=k(m):(C&=Q,C!==0?f=k(C):l||(l=Q&~i,l!==0&&(f=k(l))))):(Q=m&~h,Q!==0?f=k(Q):C!==0?f=k(C):l||(l=m&~i,l!==0&&(f=k(l)))),f===0?0:o!==0&&o!==f&&(o&h)===0&&(h=f&-f,l=o&-o,h>=l||h===32&&(l&4194048)!==0)?o:f}function I(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function $(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 B(){var i=zd;return zd<<=1,(zd&62914560)===0&&(zd=4194304),i}function N(i){for(var o=[],l=0;31>l;l++)o.push(i);return o}function j(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function D(i,o,l,m,f,h){var C=i.pendingLanes;i.pendingLanes=l,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=l,i.entangledLanes&=l,i.errorRecoveryDisabledLanes&=l,i.shellSuspendCounter=0;var Q=i.entanglements,G=i.expirationTimes,pe=i.hiddenUpdates;for(l=C&~l;0<l;){var Se=31-_i(l),ye=1<<Se;Q[Se]=0,G[Se]=-1;var Le=pe[Se];if(Le!==null)for(pe[Se]=null,Se=0;Se<Le.length;Se++){var ht=Le[Se];ht!==null&&(ht.lane&=-536870913)}l&=~ye}m!==0&&oe(i,m,0),h!==0&&f===0&&i.tag!==0&&(i.suspendedLanes|=h&~(C&~o))}function oe(i,o,l){i.pendingLanes|=o,i.suspendedLanes&=~o;var m=31-_i(o);i.entangledLanes|=o,i.entanglements[m]=i.entanglements[m]|1073741824|l&261930}function J(i,o){var l=i.entangledLanes|=o;for(i=i.entanglements;l;){var m=31-_i(l),f=1<<m;f&o|i[m]&o&&(i[m]|=o),l&=~f}}function ie(i,o){var l=o&-o;return l=(l&42)!==0?1:re(l),(l&(i.suspendedLanes|o))!==0?0:l}function re(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function ue(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function Y(i){if(typeof DT=="function"&<(i),yi&&typeof yi.setStrictMode=="function")try{yi.setStrictMode(nu,i)}catch{}}function qe(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}function we(i){if(Rh===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);Rh=o&&o[1]||"",uC=-1<l.stack.indexOf(`
|
|
4
|
+
import{$ as m_,$a as U0,A as XC,Aa as B0,Ab as ev,B as Ks,Ba as mg,Bb as tv,C as p_,Ca as S0,D as zl,Da as j0,E as ag,Ea as dg,F as VC,Fa as gg,G as Ql,Ga as z0,H as e0,Ha as fg,I as t0,Ia as bg,J as ig,Ja as hg,K as rg,Ka as _g,L as wu,La as yg,M as Ys,Ma as Ag,Na as g_,O as n0,Oa as kg,P as a0,Pa as Cu,Q as u_,Qa as f_,R as og,Ra as Q0,Sa as T0,T as i0,Ta as N0,U as r0,Ua as b_,V as cg,Va as R0,W as o0,Wa as F0,X as s0,Xa as D0,Y as c0,Ya as L0,Z as l0,Za as M0,_ as p0,_a as Xs,a as yu,aa as u0,b as Au,ba as m0,bb as O0,c as ao,ca as d0,cb as vu,d as tr,da as g0,db as Vs,e as qC,ea as f0,eb as ec,f as UC,fa as Tl,fb as wg,g as ku,ga as Nl,gb as tc,h as ZC,ha as b0,hb as Eu,ia as h0,ib as xg,ja as lg,jb as Cg,k as eg,ka as d_,kb as vg,l as GC,la as _0,lb as Eg,ma as pg,mb as Z0,n as PC,na as ug,nb as Ig,o as WC,oa as y0,ob as h_,p as tg,pa as A0,pb as G0,q as s_,qa as xu,qb as P0,r as c_,ra as k0,rb as W0,s as HC,sa as w0,sb as H0,t as l_,ta as x0,tb as K0,u as Jo,ua as C0,ub as $g,v as ng,va as v0,vb as Y0,w as jl,wa as E0,wb as J0,x as KC,xb as Bg,y as YC,ya as I0,yb as X0,z as JC,za as $0,zb as V0}from"./chunk-XXTMMEVY.js";import{Oa as q0,Pa as Js,k as sg}from"./chunk-57IGGFHK.js";import{A as Ws,B as Hs,D as OC,d as wC,e as Xd,f as fu,i as $C,k as a_,o as bu,q as er,r as no,s as TC,t as NC,u as RC,v as FC,w as DC,y as o_,z as LC}from"./chunk-5D3QKHYQ.js";import{a as MC,c as HT}from"./chunk-VU3JWAJR.js";import"./chunk-WKTO7XPO.js";import{Bc as Xt,Ec as Ps,Gc as Yo,Ma as r_,Na as BC,Oa as hu,Pa as wr,a as xC,e as CC,i as vC,l as EC,m as IC,pc as SC,rc as jC,w as i_,wc as On,xc as _u,yc as zC,zc as QC}from"./chunk-5AOJ5ZSQ.js";import"./chunk-KEPFYD6K.js";import"./chunk-N7ARR77W.js";import"./chunk-27PD4NBA.js";import{w as Vd}from"./chunk-WLJL66O5.js";import{g as kC}from"./chunk-ENUOAMFA.js";import{a as Jd}from"./chunk-CEP5W4VW.js";import{B as Va}from"./chunk-QSKJBSCI.js";import{c as gu}from"./chunk-VM4YKTHC.js";import{a as n_,c as Tn,d as AC,e as O}from"./chunk-7MKA3SHV.js";var mv=Tn(_t=>{"use strict";var A_=Symbol.for("react.transitional.element"),KT=Symbol.for("react.portal"),YT=Symbol.for("react.fragment"),JT=Symbol.for("react.strict_mode"),XT=Symbol.for("react.profiler"),VT=Symbol.for("react.consumer"),eN=Symbol.for("react.context"),tN=Symbol.for("react.forward_ref"),nN=Symbol.for("react.suspense"),aN=Symbol.for("react.memo"),ov=Symbol.for("react.lazy"),iN=Symbol.for("react.activity"),nv=Symbol.iterator;function rN(e){return e===null||typeof e!="object"?null:(e=nv&&e[nv]||e["@@iterator"],typeof e=="function"?e:null)}var sv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cv=Object.assign,lv={};function Fl(e,t,n){this.props=e,this.context=t,this.refs=lv,this.updater=n||sv}Fl.prototype.isReactComponent={};Fl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Fl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pv(){}pv.prototype=Fl.prototype;function k_(e,t,n){this.props=e,this.context=t,this.refs=lv,this.updater=n||sv}var w_=k_.prototype=new pv;w_.constructor=k_;cv(w_,Fl.prototype);w_.isPureReactComponent=!0;var av=Array.isArray;function y_(){}var kn={H:null,A:null,T:null,S:null},uv=Object.prototype.hasOwnProperty;function x_(e,t,n){var a=n.ref;return{$$typeof:A_,type:e,key:t,ref:a!==void 0?a:null,props:n}}function oN(e,t){return x_(e.type,t,e.props)}function C_(e){return typeof e=="object"&&e!==null&&e.$$typeof===A_}function sN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var iv=/\/+/g;function __(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sN(""+e.key):t.toString(36)}function cN(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(y_,y_):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Rl(e,t,n,a,r){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case A_:case KT:c=!0;break;case ov:return c=e._init,Rl(c(e._payload),t,n,a,r)}}if(c)return r=r(e),c=a===""?"."+__(e,0):a,av(r)?(n="",c!=null&&(n=c.replace(iv,"$&/")+"/"),Rl(r,t,n,"",function(d){return d})):r!=null&&(C_(r)&&(r=oN(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(iv,"$&/")+"/")+c)),t.push(r)),1;c=0;var p=a===""?".":a+":";if(av(e))for(var u=0;u<e.length;u++)a=e[u],s=p+__(a,u),c+=Rl(a,t,n,s,r);else if(u=rN(e),typeof u=="function")for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=p+__(a,u++),c+=Rl(a,t,n,s,r);else if(s==="object"){if(typeof e.then=="function")return Rl(cN(e),t,n,a,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function Sg(e,t,n){if(e==null)return e;var a=[],r=0;return Rl(e,a,"","",function(s){return t.call(n,s,r++)}),a}function lN(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var rv=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)},pN={map:Sg,forEach:function(e,t,n){Sg(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Sg(e,function(){t++}),t},toArray:function(e){return Sg(e,function(t){return t})||[]},only:function(e){if(!C_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};_t.Activity=iN;_t.Children=pN;_t.Component=Fl;_t.Fragment=YT;_t.Profiler=XT;_t.PureComponent=k_;_t.StrictMode=JT;_t.Suspense=nN;_t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=kn;_t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return kn.H.useMemoCache(e)}};_t.cache=function(e){return function(){return e.apply(null,arguments)}};_t.cacheSignal=function(){return null};_t.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=cv({},e.props),r=e.key;if(t!=null)for(s in t.key!==void 0&&(r=""+t.key),t)!uv.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(a[s]=t[s]);var s=arguments.length-2;if(s===1)a.children=n;else if(1<s){for(var c=Array(s),p=0;p<s;p++)c[p]=arguments[p+2];a.children=c}return x_(e.type,r,a)};_t.createContext=function(e){return e={$$typeof:eN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:VT,_context:e},e};_t.createElement=function(e,t,n){var a,r={},s=null;if(t!=null)for(a in t.key!==void 0&&(s=""+t.key),t)uv.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(r[a]=t[a]);var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){for(var p=Array(c),u=0;u<c;u++)p[u]=arguments[u+2];r.children=p}if(e&&e.defaultProps)for(a in c=e.defaultProps,c)r[a]===void 0&&(r[a]=c[a]);return x_(e,s,r)};_t.createRef=function(){return{current:null}};_t.forwardRef=function(e){return{$$typeof:tN,render:e}};_t.isValidElement=C_;_t.lazy=function(e){return{$$typeof:ov,_payload:{_status:-1,_result:e},_init:lN}};_t.memo=function(e,t){return{$$typeof:aN,type:e,compare:t===void 0?null:t}};_t.startTransition=function(e){var t=kn.T,n={};kn.T=n;try{var a=e(),r=kn.S;r!==null&&r(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(y_,rv)}catch(s){rv(s)}finally{t!==null&&n.types!==null&&(t.types=n.types),kn.T=t}};_t.unstable_useCacheRefresh=function(){return kn.H.useCacheRefresh()};_t.use=function(e){return kn.H.use(e)};_t.useActionState=function(e,t,n){return kn.H.useActionState(e,t,n)};_t.useCallback=function(e,t){return kn.H.useCallback(e,t)};_t.useContext=function(e){return kn.H.useContext(e)};_t.useDebugValue=function(){};_t.useDeferredValue=function(e,t){return kn.H.useDeferredValue(e,t)};_t.useEffect=function(e,t){return kn.H.useEffect(e,t)};_t.useEffectEvent=function(e){return kn.H.useEffectEvent(e)};_t.useId=function(){return kn.H.useId()};_t.useImperativeHandle=function(e,t,n){return kn.H.useImperativeHandle(e,t,n)};_t.useInsertionEffect=function(e,t){return kn.H.useInsertionEffect(e,t)};_t.useLayoutEffect=function(e,t){return kn.H.useLayoutEffect(e,t)};_t.useMemo=function(e,t){return kn.H.useMemo(e,t)};_t.useOptimistic=function(e,t){return kn.H.useOptimistic(e,t)};_t.useReducer=function(e,t,n){return kn.H.useReducer(e,t,n)};_t.useRef=function(e){return kn.H.useRef(e)};_t.useState=function(e){return kn.H.useState(e)};_t.useSyncExternalStore=function(e,t,n){return kn.H.useSyncExternalStore(e,t,n)};_t.useTransition=function(){return kn.H.useTransition()};_t.version="19.2.7"});var De=Tn((bP,dv)=>{"use strict";dv.exports=mv()});var vv=Tn((WP,Tg)=>{"use strict";Tg.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Tg.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Tg.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var S_=Tn((HP,Zl)=>{"use strict";var Cn=global.process,ac=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};ac(Cn)?(Ev=n_("assert"),Ul=vv(),Iv=/^win/i.test(Cn.platform),Bu=n_("events"),typeof Bu!="function"&&(Bu=Bu.EventEmitter),Cn.__signal_exit_emitter__?va=Cn.__signal_exit_emitter__:(va=Cn.__signal_exit_emitter__=new Bu,va.count=0,va.emitted={}),va.infinite||(va.setMaxListeners(1/0),va.infinite=!0),Zl.exports=function(e,t){if(!ac(global.process))return function(){};Ev.equal(typeof e,"function","a callback must be provided for exit handler"),Ol===!1&&$_();var n="exit";t&&t.alwaysLast&&(n="afterexit");var a=function(){va.removeListener(n,e),va.listeners("exit").length===0&&va.listeners("afterexit").length===0&&Ng()};return va.on(n,e),a},Ng=function(){!Ol||!ac(global.process)||(Ol=!1,Ul.forEach(function(t){try{Cn.removeListener(t,Rg[t])}catch{}}),Cn.emit=Fg,Cn.reallyExit=B_,va.count-=1)},Zl.exports.unload=Ng,ic=function(t,n,a){va.emitted[t]||(va.emitted[t]=!0,va.emit(t,n,a))},Rg={},Ul.forEach(function(e){Rg[e]=function(){if(ac(global.process)){var n=Cn.listeners(e);n.length===va.count&&(Ng(),ic("exit",null,e),ic("afterexit",null,e),Iv&&e==="SIGHUP"&&(e="SIGINT"),Cn.kill(Cn.pid,e))}}}),Zl.exports.signals=function(){return Ul},Ol=!1,$_=function(){Ol||!ac(global.process)||(Ol=!0,va.count+=1,Ul=Ul.filter(function(t){try{return Cn.on(t,Rg[t]),!0}catch{return!1}}),Cn.emit=Bv,Cn.reallyExit=$v)},Zl.exports.load=$_,B_=Cn.reallyExit,$v=function(t){ac(global.process)&&(Cn.exitCode=t||0,ic("exit",Cn.exitCode,null),ic("afterexit",Cn.exitCode,null),B_.call(Cn,Cn.exitCode))},Fg=Cn.emit,Bv=function(t,n){if(t==="exit"&&ac(global.process)){n!==void 0&&(Cn.exitCode=n);var a=Fg.apply(this,arguments);return ic("exit",Cn.exitCode,null),ic("afterexit",Cn.exitCode,null),a}else return Fg.apply(this,arguments)}):Zl.exports=function(){return function(){}};var Ev,Ul,Iv,Bu,va,Ng,ic,Rg,Ol,$_,B_,$v,Fg,Bv});var Qv=Tn(Xo=>{"use strict";Xo.ConcurrentRoot=1;Xo.ContinuousEventPriority=8;Xo.DefaultEventPriority=32;Xo.DiscreteEventPriority=2;Xo.IdleEventPriority=268435456;Xo.LegacyRoot=0;Xo.NoEventPriority=0});var Dg=Tn((XP,Tv)=>{"use strict";Tv.exports=Qv()});var L1=Tn(En=>{"use strict";function X_(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,r=e[a];if(0<Zg(r,t))e[a]=t,e[n]=r,n=a;else break e}}function xr(e){return e.length===0?null:e[0]}function Pg(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length,s=r>>>1;a<s;){var c=2*(a+1)-1,p=e[c],u=c+1,d=e[u];if(0>Zg(p,n))u<r&&0>Zg(d,p)?(e[a]=d,e[u]=n,a=u):(e[a]=p,e[c]=n,a=c);else if(u<r&&0>Zg(d,n))e[a]=d,e[u]=n,a=u;else break e}}return t}function Zg(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}En.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(S1=performance,En.unstable_now=function(){return S1.now()}):(K_=Date,j1=K_.now(),En.unstable_now=function(){return K_.now()-j1});var S1,K_,j1,so=[],Vo=[],PR=1,Fi=null,Za=3,V_=!1,Nu=!1,Ru=!1,ey=!1,T1=typeof setTimeout=="function"?setTimeout:null,N1=typeof clearTimeout=="function"?clearTimeout:null,z1=typeof setImmediate<"u"?setImmediate:null;function Gg(e){for(var t=xr(Vo);t!==null;){if(t.callback===null)Pg(Vo);else if(t.startTime<=e)Pg(Vo),t.sortIndex=t.expirationTime,X_(so,t);else break;t=xr(Vo)}}function ty(e){if(Ru=!1,Gg(e),!Nu)if(xr(so)!==null)Nu=!0,Xl||(Xl=!0,Jl());else{var t=xr(Vo);t!==null&&ny(ty,t.startTime-e)}}var Xl=!1,Fu=-1,R1=5,F1=-1;function D1(){return ey?!0:!(En.unstable_now()-F1<R1)}function Y_(){if(ey=!1,Xl){var e=En.unstable_now();F1=e;var t=!0;try{e:{Nu=!1,Ru&&(Ru=!1,N1(Fu),Fu=-1),V_=!0;var n=Za;try{t:{for(Gg(e),Fi=xr(so);Fi!==null&&!(Fi.expirationTime>e&&D1());){var a=Fi.callback;if(typeof a=="function"){Fi.callback=null,Za=Fi.priorityLevel;var r=a(Fi.expirationTime<=e);if(e=En.unstable_now(),typeof r=="function"){Fi.callback=r,Gg(e),t=!0;break t}Fi===xr(so)&&Pg(so),Gg(e)}else Pg(so);Fi=xr(so)}if(Fi!==null)t=!0;else{var s=xr(Vo);s!==null&&ny(ty,s.startTime-e),t=!1}}break e}finally{Fi=null,Za=n,V_=!1}t=void 0}}finally{t?Jl():Xl=!1}}}var Jl;typeof z1=="function"?Jl=function(){z1(Y_)}:typeof MessageChannel<"u"?(J_=new MessageChannel,Q1=J_.port2,J_.port1.onmessage=Y_,Jl=function(){Q1.postMessage(null)}):Jl=function(){T1(Y_,0)};var J_,Q1;function ny(e,t){Fu=T1(function(){e(En.unstable_now())},t)}En.unstable_IdlePriority=5;En.unstable_ImmediatePriority=1;En.unstable_LowPriority=4;En.unstable_NormalPriority=3;En.unstable_Profiling=null;En.unstable_UserBlockingPriority=2;En.unstable_cancelCallback=function(e){e.callback=null};En.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R1=0<e?Math.floor(1e3/e):5};En.unstable_getCurrentPriorityLevel=function(){return Za};En.unstable_next=function(e){switch(Za){case 1:case 2:case 3:var t=3;break;default:t=Za}var n=Za;Za=t;try{return e()}finally{Za=n}};En.unstable_requestPaint=function(){ey=!0};En.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Za;Za=e;try{return t()}finally{Za=n}};En.unstable_scheduleCallback=function(e,t,n){var a=En.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?a+n:a):n=a,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=n+r,e={id:PR++,callback:t,priorityLevel:e,startTime:n,expirationTime:r,sortIndex:-1},n>a?(e.sortIndex=n,X_(Vo,e),xr(so)===null&&e===xr(Vo)&&(Ru?(N1(Fu),Fu=-1):Ru=!0,ny(ty,n-a))):(e.sortIndex=r,X_(so,e),Nu||V_||(Nu=!0,Xl||(Xl=!0,Jl()))),e};En.unstable_shouldYield=D1;En.unstable_wrapCallback=function(e){var t=Za;return function(){var n=Za;Za=t;try{return e.apply(this,arguments)}finally{Za=n}}}});var ay=Tn((OW,M1)=>{"use strict";M1.exports=L1()});var q1=Tn((ZW,Du)=>{"use strict";Du.exports=function(e){function t(i,o,l,m){return new Vz(i,o,l,m)}function n(){}function a(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(i){var o=i,l=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(l=o.return),i=o.return;while(i)}return o.tag===3?l:null}function s(i){if(r(i)!==i)throw Error(a(188))}function c(i){var o=i.alternate;if(!o){if(o=r(i),o===null)throw Error(a(188));return o!==i?null:i}for(var l=i,m=o;;){var f=l.return;if(f===null)break;var h=f.alternate;if(h===null){if(m=f.return,m!==null){l=m;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===l)return s(f),i;if(h===m)return s(f),o;h=h.sibling}throw Error(a(188))}if(l.return!==m.return)l=f,m=h;else{for(var C=!1,Q=f.child;Q;){if(Q===l){C=!0,l=f,m=h;break}if(Q===m){C=!0,m=f,l=h;break}Q=Q.sibling}if(!C){for(Q=h.child;Q;){if(Q===l){C=!0,l=h,m=f;break}if(Q===m){C=!0,m=h,l=f;break}Q=Q.sibling}if(!C)throw Error(a(189))}}if(l.alternate!==m)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?i:o}function p(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=p(i),o!==null)return o;i=i.sibling}return null}function u(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(i.tag!==4&&(o=u(i),o!==null))return o;i=i.sibling}return null}function d(i){return i===null||typeof i!="object"?null:(i=Lx&&i[Lx]||i["@@iterator"],typeof i=="function"?i:null)}function g(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===iQ?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case ul:return"Fragment";case wh:return"Profiler";case Fx:return"StrictMode";case Ch:return"Suspense";case vh:return"SuspenseList";case Ih:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case pl:return"Portal";case Lo:return i.displayName||"Context";case Dx:return(i._context.displayName||"Context")+".Consumer";case xh:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Eh:return o=i.displayName||null,o!==null?o:g(i.type)||"Memo";case Mo:o=i._payload,i=i._init;try{return g(i(o))}catch{}}return null}function b(i){return{current:i}}function _(i){0>gl||(i.current=Qh[gl],Qh[gl]=null,gl--)}function y(i,o){gl++,Qh[gl]=i.current,i.current=o}function A(i){return i>>>=0,i===0?32:31-(zT(i)/QT|0)|0}function k(i){var o=i&42;if(o!==0)return o;switch(i&-i){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:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function v(i,o,l){var m=i.pendingLanes;if(m===0)return 0;var f=0,h=i.suspendedLanes,C=i.pingedLanes;i=i.warmLanes;var Q=m&134217727;return Q!==0?(m=Q&~h,m!==0?f=k(m):(C&=Q,C!==0?f=k(C):l||(l=Q&~i,l!==0&&(f=k(l))))):(Q=m&~h,Q!==0?f=k(Q):C!==0?f=k(C):l||(l=m&~i,l!==0&&(f=k(l)))),f===0?0:o!==0&&o!==f&&(o&h)===0&&(h=f&-f,l=o&-o,h>=l||h===32&&(l&4194048)!==0)?o:f}function I(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function $(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 B(){var i=zd;return zd<<=1,(zd&62914560)===0&&(zd=4194304),i}function N(i){for(var o=[],l=0;31>l;l++)o.push(i);return o}function j(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function D(i,o,l,m,f,h){var C=i.pendingLanes;i.pendingLanes=l,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=l,i.entangledLanes&=l,i.errorRecoveryDisabledLanes&=l,i.shellSuspendCounter=0;var Q=i.entanglements,G=i.expirationTimes,pe=i.hiddenUpdates;for(l=C&~l;0<l;){var Se=31-_i(l),ye=1<<Se;Q[Se]=0,G[Se]=-1;var Le=pe[Se];if(Le!==null)for(pe[Se]=null,Se=0;Se<Le.length;Se++){var ht=Le[Se];ht!==null&&(ht.lane&=-536870913)}l&=~ye}m!==0&&oe(i,m,0),h!==0&&f===0&&i.tag!==0&&(i.suspendedLanes|=h&~(C&~o))}function oe(i,o,l){i.pendingLanes|=o,i.suspendedLanes&=~o;var m=31-_i(o);i.entangledLanes|=o,i.entanglements[m]=i.entanglements[m]|1073741824|l&261930}function J(i,o){var l=i.entangledLanes|=o;for(i=i.entanglements;l;){var m=31-_i(l),f=1<<m;f&o|i[m]&o&&(i[m]|=o),l&=~f}}function ie(i,o){var l=o&-o;return l=(l&42)!==0?1:re(l),(l&(i.suspendedLanes|o))!==0?0:l}function re(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function ue(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function Y(i){if(typeof DT=="function"&<(i),yi&&typeof yi.setStrictMode=="function")try{yi.setStrictMode(nu,i)}catch{}}function qe(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}function we(i){if(Rh===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);Rh=o&&o[1]||"",uC=-1<l.stack.indexOf(`
|
|
5
5
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
6
6
|
`+Rh+i+uC}function V(i,o){if(!i||Fh)return"";Fh=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(o){var ye=function(){throw Error()};if(Object.defineProperty(ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ye,[])}catch(ht){var Le=ht}Reflect.construct(i,[],ye)}else{try{ye.call()}catch(ht){Le=ht}i.call(ye.prototype)}}else{try{throw Error()}catch(ht){Le=ht}(ye=i())&&typeof ye.catch=="function"&&ye.catch(function(){})}}catch(ht){if(ht&&Le&&typeof ht.stack=="string")return[ht.stack,Le.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=m.DetermineComponentFrameRoot(),C=h[0],Q=h[1];if(C&&Q){var G=C.split(`
|
|
7
7
|
`),pe=Q.split(`
|
|
@@ -427,7 +427,7 @@ ${Be}`}])}catch{W(be=>[...be,{role:"system",content:"Not a git repository or git
|
|
|
427
427
|
`)].join(`
|
|
428
428
|
`)}function Lz(e,{columns:t=process.stdout.columns||80,color:n=process.stdout.isTTY,endedAt:a=Date.now()}={}){let r=Math.max(1,Math.floor(t)),s=r>2?1:0,c=r-s*2,p=new ip({level:n?3:0}),u=p.hex(E.borderMuted)("\u2500".repeat(r)),g=vo(Dz(e,a),c).split(`
|
|
429
429
|
`).map(y=>y?" ".repeat(s)+y:""),b=e.latestVersion?bc(p.hex(E.warning)(`New Yukino version v${e.latestVersion} is available. Run `)+p.bold.hex(E.accent)("yukino update"),c).map(y=>" ".repeat(s)+y):[],_=[u,...g,u,...b].join(`
|
|
430
|
-
`);return n?_:On(_)}import{Transform as aP}from"stream";import{StringDecoder as iP}from"string_decoder";function rP(e,t){let n=Math.min(e.length,t.length-1);for(let a=n;a>0;a--)if(e.endsWith(t.slice(0,a)))return a;return 0}var th=class extends aP{constructor(n){super();this.source=n;this.initialRawMode=n.isRaw,this.stdin=new Proxy(n,{get:(a,r)=>{let s=r in this?this:a,c=Reflect.get(s,r,s);return typeof c=="function"?c.bind(s):c}}),n.isTTY&&n.setRawMode&&n.setRawMode(!0),n.pipe(this)}source;stdin;initialRawMode;pending="";pasting=!1;decoder=new iP("utf8");escapeTimer;_transform(n,a,r){clearTimeout(this.escapeTimer),this.pending+=this.decoder.write(n);let s="";for(;this.pending;){if(!this.pasting&&this.pending.startsWith(fm)){let b=/\x07|\x1b\\/.exec(this.pending);if(!b)break;let _=b.index+b[0].length;this.emit("terminal-response",this.pending.slice(0,_)),this.pending=this.pending.slice(_);continue}if(!this.pasting&&this.pending.startsWith(up)){let b=this.pending.indexOf("n",up.length);if(b<0)break;this.emit("terminal-response",this.pending.slice(0,b+1)),this.pending=this.pending.slice(b+1);continue}let u=this.pasting?Df:Ff;if(this.pending.startsWith(u)){this.pasting=!this.pasting,s+=u,this.pending=this.pending.slice(u.length);continue}if(this.pasting){let b=this.pending.indexOf(Df);if(b>=0){s+=this.pending.slice(0,b),this.pending=this.pending.slice(b);continue}let _=rP(this.pending,Df),y=this.pending.length-_;s+=this.pending.slice(0,y),this.pending=this.pending.slice(y);break}let d=this.pending.indexOf("\x1B");if(d>0){s+=this.pending.slice(0,d),this.pending=this.pending.slice(d);continue}if(d<0){s+=this.pending,this.pending="";break}if([fm,up,Ff].some(b=>b.startsWith(this.pending)))break;s+=this.pending[0],this.pending=this.pending.slice(1)}s&&this.push(s);let c=[fm,up,Ff],p=this.pending!=="\x1B"&&c.some(u=>u.startsWith(this.pending));this.pending&&!this.pasting&&!p&&!this.pending.startsWith(fm)&&!this.pending.startsWith(up)&&(this.escapeTimer=setTimeout(()=>{this.push(this.pending),this.pending=""},25)),r()}dispose(){if(clearTimeout(this.escapeTimer),this.source.unpipe(this),this.destroy(),this.source.isTTY&&this.source.setRawMode)try{this.source.setRawMode(this.initialRawMode)}catch{}}};function Zw(e){if(!/^[0-9a-f]+$/iu.test(e))return;let t=16**e.length-1;return t>0?Math.round(Number.parseInt(e,16)/t*255):void 0}function oP(e){let t=/\x1b\[\?997;(1|2)n/u.exec(e);return t?.[1]==="2"?"light":t?.[1]==="1"?"dark":void 0}function sP(e){let n=/\x1b\]11;([^\x07\x1b]*)(?:\x07|\x1b\\)/iu.exec(e)?.[1]?.trim();if(!n)return;if(/^#[0-9a-f]{6}$/iu.test(n))return{r:Number.parseInt(n.slice(1,3),16),g:Number.parseInt(n.slice(3,5),16),b:Number.parseInt(n.slice(5,7),16)};let a=n.replace(/^rgba?:/iu,"").split("/");if(a.length<3)return;let r=Zw(a[0]??""),s=Zw(a[1]??""),c=Zw(a[2]??"");return r===void 0||s===void 0||c===void 0?void 0:{r,g:s,b:c}}function Gw(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function Mz({r:e,g:t,b:n}){return .2126*Gw(e)+.7152*Gw(t)+.0722*Gw(n)>=.5?"light":"dark"}function cP(e){let t=[{r:0,g:0,b:0},{r:128,g:0,b:0},{r:0,g:128,b:0},{r:128,g:128,b:0},{r:0,g:0,b:128},{r:128,g:0,b:128},{r:0,g:128,b:128},{r:192,g:192,b:192},{r:128,g:128,b:128},{r:255,g:0,b:0},{r:0,g:255,b:0},{r:255,g:255,b:0},{r:0,g:0,b:255},{r:255,g:0,b:255},{r:0,g:255,b:255},{r:255,g:255,b:255}];if(e<16)return t[e]??t[0];if(e>=232){let r=8+(e-232)*10;return{r,g:r,b:r}}let n=e-16,a=[0,95,135,175,215,255];return{r:a[Math.floor(n/36)]??0,g:a[Math.floor(n%36/6)]??0,b:a[n%6]??0}}function lP(e=process.env){let t=e.COLORFGBG?.split(";").findLast(n=>/^\d+$/u.test(n.trim()));if(t)return Mz(cP(Number.parseInt(t,10)))}async function qz(e,{theme:t="auto",timeoutMs:n=100}={}){if(t!=="auto")return t;let a=lP();return a||(!e.stdin.isTTY||!process.stdout.isTTY?"dark":new Promise(s=>{let c,p=!1,u=b=>{p||(p=!0,clearTimeout(g),e.off("terminal-response",d),s(b))},d=b=>{let _=oP(b);if(_){u(_);return}let y=sP(b);y&&(c=Mz(y))},g=setTimeout(()=>{u(c??"dark")},n);try{e.on("terminal-response",d),process.stdout.write("\x1B[?996n\x1B]11;?\x07")}catch{u("dark")}}))}var Uz=O(Ze(),1);async function pP(e){await yu(),Au("a2a");try{let{runA2aServer:t}=await import("./server-
|
|
430
|
+
`);return n?_:On(_)}import{Transform as aP}from"stream";import{StringDecoder as iP}from"string_decoder";function rP(e,t){let n=Math.min(e.length,t.length-1);for(let a=n;a>0;a--)if(e.endsWith(t.slice(0,a)))return a;return 0}var th=class extends aP{constructor(n){super();this.source=n;this.initialRawMode=n.isRaw,this.stdin=new Proxy(n,{get:(a,r)=>{let s=r in this?this:a,c=Reflect.get(s,r,s);return typeof c=="function"?c.bind(s):c}}),n.isTTY&&n.setRawMode&&n.setRawMode(!0),n.pipe(this)}source;stdin;initialRawMode;pending="";pasting=!1;decoder=new iP("utf8");escapeTimer;_transform(n,a,r){clearTimeout(this.escapeTimer),this.pending+=this.decoder.write(n);let s="";for(;this.pending;){if(!this.pasting&&this.pending.startsWith(fm)){let b=/\x07|\x1b\\/.exec(this.pending);if(!b)break;let _=b.index+b[0].length;this.emit("terminal-response",this.pending.slice(0,_)),this.pending=this.pending.slice(_);continue}if(!this.pasting&&this.pending.startsWith(up)){let b=this.pending.indexOf("n",up.length);if(b<0)break;this.emit("terminal-response",this.pending.slice(0,b+1)),this.pending=this.pending.slice(b+1);continue}let u=this.pasting?Df:Ff;if(this.pending.startsWith(u)){this.pasting=!this.pasting,s+=u,this.pending=this.pending.slice(u.length);continue}if(this.pasting){let b=this.pending.indexOf(Df);if(b>=0){s+=this.pending.slice(0,b),this.pending=this.pending.slice(b);continue}let _=rP(this.pending,Df),y=this.pending.length-_;s+=this.pending.slice(0,y),this.pending=this.pending.slice(y);break}let d=this.pending.indexOf("\x1B");if(d>0){s+=this.pending.slice(0,d),this.pending=this.pending.slice(d);continue}if(d<0){s+=this.pending,this.pending="";break}if([fm,up,Ff].some(b=>b.startsWith(this.pending)))break;s+=this.pending[0],this.pending=this.pending.slice(1)}s&&this.push(s);let c=[fm,up,Ff],p=this.pending!=="\x1B"&&c.some(u=>u.startsWith(this.pending));this.pending&&!this.pasting&&!p&&!this.pending.startsWith(fm)&&!this.pending.startsWith(up)&&(this.escapeTimer=setTimeout(()=>{this.push(this.pending),this.pending=""},25)),r()}dispose(){if(clearTimeout(this.escapeTimer),this.source.unpipe(this),this.destroy(),this.source.isTTY&&this.source.setRawMode)try{this.source.setRawMode(this.initialRawMode)}catch{}}};function Zw(e){if(!/^[0-9a-f]+$/iu.test(e))return;let t=16**e.length-1;return t>0?Math.round(Number.parseInt(e,16)/t*255):void 0}function oP(e){let t=/\x1b\[\?997;(1|2)n/u.exec(e);return t?.[1]==="2"?"light":t?.[1]==="1"?"dark":void 0}function sP(e){let n=/\x1b\]11;([^\x07\x1b]*)(?:\x07|\x1b\\)/iu.exec(e)?.[1]?.trim();if(!n)return;if(/^#[0-9a-f]{6}$/iu.test(n))return{r:Number.parseInt(n.slice(1,3),16),g:Number.parseInt(n.slice(3,5),16),b:Number.parseInt(n.slice(5,7),16)};let a=n.replace(/^rgba?:/iu,"").split("/");if(a.length<3)return;let r=Zw(a[0]??""),s=Zw(a[1]??""),c=Zw(a[2]??"");return r===void 0||s===void 0||c===void 0?void 0:{r,g:s,b:c}}function Gw(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function Mz({r:e,g:t,b:n}){return .2126*Gw(e)+.7152*Gw(t)+.0722*Gw(n)>=.5?"light":"dark"}function cP(e){let t=[{r:0,g:0,b:0},{r:128,g:0,b:0},{r:0,g:128,b:0},{r:128,g:128,b:0},{r:0,g:0,b:128},{r:128,g:0,b:128},{r:0,g:128,b:128},{r:192,g:192,b:192},{r:128,g:128,b:128},{r:255,g:0,b:0},{r:0,g:255,b:0},{r:255,g:255,b:0},{r:0,g:0,b:255},{r:255,g:0,b:255},{r:0,g:255,b:255},{r:255,g:255,b:255}];if(e<16)return t[e]??t[0];if(e>=232){let r=8+(e-232)*10;return{r,g:r,b:r}}let n=e-16,a=[0,95,135,175,215,255];return{r:a[Math.floor(n/36)]??0,g:a[Math.floor(n%36/6)]??0,b:a[n%6]??0}}function lP(e=process.env){let t=e.COLORFGBG?.split(";").findLast(n=>/^\d+$/u.test(n.trim()));if(t)return Mz(cP(Number.parseInt(t,10)))}async function qz(e,{theme:t="auto",timeoutMs:n=100}={}){if(t!=="auto")return t;let a=lP();return a||(!e.stdin.isTTY||!process.stdout.isTTY?"dark":new Promise(s=>{let c,p=!1,u=b=>{p||(p=!0,clearTimeout(g),e.off("terminal-response",d),s(b))},d=b=>{let _=oP(b);if(_){u(_);return}let y=sP(b);y&&(c=Mz(y))},g=setTimeout(()=>{u(c??"dark")},n);try{e.on("terminal-response",d),process.stdout.write("\x1B[?996n\x1B]11;?\x07")}catch{u("dark")}}))}var Uz=O(Ze(),1);async function pP(e){await yu(),Au("a2a");try{let{runA2aServer:t}=await import("./server-7QJH5UCM.js");await t(e)}finally{await tr()}}async function uP(e){await yu(),Au("print");try{await o$(e)}catch(t){ao(t,"print"),console.error(`Error: ${Xt(t)}`),process.exitCode=1}finally{await tr()}}async function mP(e){await yu();let t;try{t=Ws(Hs(void 0,{allowEmptyProviders:!0}),process.cwd())}catch(r){ao(r,"config"),console.error(`Error: ${Xt(r)}`),await tr(),process.exitCode=1;return}Au("remote");let{RemoteServer:n}=await import("./server-XFB4HEJU.js");r_({sessionId:Jo(),mode:"remote",stdout:!0});let a=new n({providers:t.providers,defaultProvider:t.default_provider,mcpServers:t.mcp_servers,mcpLoading:t.mcp_loading,hookConfigs:t.hooks,sandboxConfig:t.sandbox,addr:e.address,enableCoordinatorMode:t.enable_coordinator_mode??!1,memoryEnabled:o_(t)});qC(async r=>{try{await a.stop()}catch{}Bf(r)});try{await a.run()}catch(r){ao(r,"remote"),console.error(`Remote server error: ${Xt(r)}`),await tr(),process.exitCode=1}}async function dP(e){await yu();let t;try{t=Ws(Hs(void 0,{allowEmptyProviders:!0}),process.cwd())}catch(s){ao(s,"config"),console.error(`Error: ${Xt(s)}`),await tr(),process.exitCode=1;return}Au("terminal"),r_({sessionId:Jo(),mode:"terminal"});let n=new th(process.stdin),a,r;try{tj(await qz(n,{theme:t.theme})),a=Sj(),process.stdout.isTTY&&process.stdout.write("\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l");let s={providers:t.providers,permissionMode:t.permission_mode,mcpServers:t.mcp_servers,mcpLoading:t.mcp_loading,hooks:t.hooks,sandboxConfig:t.sandbox,enableCoordinatorMode:t.enable_coordinator_mode,memoryEnabled:o_(t),defaultProvider:t.default_provider},c=(0,Uz.jsx)(Fz,{...s,resume:e.resume,onExitSummary:u=>{r=u}});await Ky(c,{exitOnCtrlC:!1,stdin:n.stdin}).waitUntilExit()}finally{a?.(),n.dispose()}r&&process.stdout.write(`
|
|
431
431
|
${Lz(r)}
|
|
432
432
|
`),await tr()}async function gP(e){switch(LC(),l$(),e.kind){case"a2a":{await pP(e.address);return}case"print":{await uP(e);return}case"remote":{await mP(e);return}case"ui":{await dP(e);return}}}async function Hfe(e){try{await gP(e),Bf(process.exitCode??0)}catch(t){ao(t,"main"),If("main",t),hu.fatal({err:t},"unhandled runtime error"),await tr(),process.exit(-1)}}export{Hfe as runMode};
|
|
433
433
|
/*! Bundled license information:
|
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __yukinoCreateRequire } from "node:module";
|
|
3
3
|
const require = __yukinoCreateRequire(import.meta.url);
|
|
4
|
-
import{a as g,b as $,c as U,d as v,e as S,f as R}from"./chunk-
|
|
4
|
+
import{a as g,b as $,c as U,d as v,e as S,f as R}from"./chunk-ENUOAMFA.js";import{a as c}from"./chunk-CEP5W4VW.js";import{B as y}from"./chunk-QSKJBSCI.js";import"./chunk-7MKA3SHV.js";import{realpathSync as _}from"fs";import{fileURLToPath as H}from"url";import{execFile as N,spawn as I}from"child_process";import{readFileSync as L,realpathSync as A}from"fs";import{dirname as f,isAbsolute as F,join as W,relative as G,sep as Y}from"path";import{fileURLToPath as j}from"url";function P(e,t,n=process.platform){return n!=="win32"?{command:e,args:t}:{command:"powershell.exe",args:["-NoProfile","-NonInteractive","-Command",`$ErrorActionPreference = 'Stop'; [Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false); & ${[e,...t].map(u=>`'${u.replaceAll("'","''")}'`).join(" ")}; exit $LASTEXITCODE`]}}function D(){let e=f(j(import.meta.url));for(;;){try{let n=JSON.parse(L(W(e,"package.json"),"utf8"));if(y.object({name:y.string()}).safeParse(n).data?.name===g)return e}catch{}let t=f(e);if(t===e)throw new Error(U);e=t}}function V(e,t){try{let n=G(A(t),A(e));return n!==""&&n!==".."&&!n.startsWith(`..${Y}`)&&!F(n)}catch{return!1}}async function b(e,t=D()){let n=t.replaceAll("\\","/").toLowerCase(),i=/\/(?:\.pnpm|pnpm)\//u.test(n)?"pnpm":/\/(?:\.yarn|yarn)\//u.test(n)?"yarn":"npm",u=P(i,i==="yarn"?["global","dir"]:["root","-g"]),d="";try{d=await new Promise((m,o)=>{N(u.command,u.args,{encoding:"utf8",timeout:1e4,windowsHide:!0},(r,s)=>{r?o(new Error(r.message,{cause:r})):m(s.trim())})})}catch{}let p=f(f(t)),l=i==="npm"&&n.endsWith(`/lib/node_modules/${g}`)?f(f(p)):void 0,h=[d,...l?[p]:[]];if(i==="pnpm"&&d&&h.push(f(d)),!h.some(m=>m&&V(t,m)))throw new Error(v);return{command:i,args:[...i==="yarn"?["global","add"]:["install","-g"],...l?["--prefix",l]:[],`${g}@${e}`,`--registry=${$}`]}}async function O(e){let t=P(e.command,e.args);await new Promise((n,i)=>{let u=I(t.command,t.args,{stdio:"inherit"});u.once("error",i),u.once("close",(d,p)=>{d===0?n():i(new Error(p?`${e.command} was terminated by ${p}.`:`${e.command} exited with code ${d??"unknown"}.`))})})}async function M(e){try{let t=await R({tag:e});if(!S(t,c)){console.log(`Yukino is already up to date (v${c}).`);return}let n=await b(t);console.log(`Updating Yukino from v${c} to v${t} with ${n.command}...`),await O(n),console.log(`Updated Yukino from v${c} to v${t}.`)}catch(t){console.error(`Update failed: ${t instanceof Error?t.message:String(t)}`),process.exitCode=1}}var z=`Yukino is a terminal-based AI coding agent.
|
|
5
5
|
|
|
6
6
|
Usage: yukino [options]
|
|
7
7
|
|
|
@@ -37,4 +37,4 @@ Examples:
|
|
|
37
37
|
yukino update
|
|
38
38
|
yukino update --tag=canary`,w={remote:"--remote",a2a:"--a2a"},a=class extends Error{},C="-p requires a prompt argument immediately after it; use '-p -- <prompt>' when the prompt starts with '-'",x="Run 'yukino --help' for usage.";function K(e){if(e!=="text"&&e!=="stream-json")throw new a(`--output-format requires 'text' or 'stream-json' (got '${e??"nothing"}')`);return e}function Q(e){let t;for(let n=0;n<e.length;n++){let i=e[n];if(i==="--help"||i==="-h")return{kind:"help",topic:"update"};if(i==="--tag"){let d=e[n+1];if(d===void 0||d.startsWith("-"))throw new a(`Option '--tag' requires a value.
|
|
39
39
|
${E}`);t=d,n+=1;continue}if(i.startsWith("--tag=")){t=i.slice(6);continue}let u=i.startsWith("-")?`Unknown option '${i}'.`:`Unexpected argument '${i}'.`;throw new a(`${u}
|
|
40
|
-
${E}`)}return t===void 0?{kind:"update"}:{kind:"update",tag:t}}function X(e){if(e[0]==="update")return Q(e.slice(1));let t,n,i,u,d=!1,p=()=>t?w[t.kind]:n!==void 0?"-p":i!==void 0?"--resume":u===void 0?void 0:"--output-format",l=o=>{let r=p();if(r===o)throw new a(`Option '${o}' was already specified.`);if(r)throw new a(`${o} cannot be combined with ${r}.`)},h=o=>{if(t)throw new a(`--resume cannot be combined with ${w[t.kind]}.`);if(n!==void 0)throw new a("--resume cannot be combined with -p.");i=o},m=o=>{let r=e[o+1];return r!==void 0&&!r.startsWith("-")?[r,o+1]:[void 0,o]};for(let o=0;o<e.length;o++){let r=e[o];if(d)throw new a(`Unexpected argument "${r}". ${x}`);if(r==="--"){d=!0;continue}if(r==="--help"||r==="-h")return{kind:"help"};if(r==="--version"||r==="-v")return{kind:"version"};switch(r){case"-p":{if(t)throw new a(`-p cannot be combined with ${w[t.kind]}.`);if(n!==void 0)throw new a("Option '-p' was already specified.");if(i!==void 0)throw new a("-p cannot be combined with --resume.");if(e[o+1]==="--"){let s=e[o+2];if(!s?.trim())throw new a(C);n=s,d=!0,o+=2}else{let s=e[o+1];if(!s?.trim()||s.startsWith("-"))throw new a(C);n=s,o+=1}continue}case"--output-format":{if(t)throw new a(`--output-format cannot be combined with ${w[t.kind]}.`);u=K(e[o+1]),o+=1;continue}case"--resume":{let s=e[o+1];s!==void 0&&!s.startsWith("-")?(h(s),o+=1):h(!0);continue}case"--remote":{l(r);let[s,k]=m(o);t={kind:"remote",address:s??"18888"},o=k;continue}case"--a2a":{l(r);let[s,k]=m(o);t=s===void 0?{kind:"a2a"}:{kind:"a2a",address:s},o=k;continue}default:{if(r.startsWith("--resume=")){h(r.slice(9)||!0);continue}throw new a(r.startsWith("-")?`Unknown option "${r}". ${x}`:`Unexpected argument "${r}". ${x}`)}}}if(u!==void 0&&n===void 0)throw new a("--output-format requires -p.");return n!==void 0?{kind:"print",prompt:n,outputFormat:u??"text"}:t||(i===void 0?{kind:"ui"}:{kind:"ui",resume:i})}async function B(){let e;try{e=X(process.argv.slice(2))}catch(t){if(!(t instanceof a))throw t;console.error(`Error: ${t.message}`),process.exitCode=1;return}switch(e.kind){case"help":{console.log(e.topic==="update"?J:z);return}case"version":{console.log(c);return}case"update":{await M(e.tag);return}default:{let{runMode:t}=await import("./main-
|
|
40
|
+
${E}`)}return t===void 0?{kind:"update"}:{kind:"update",tag:t}}function X(e){if(e[0]==="update")return Q(e.slice(1));let t,n,i,u,d=!1,p=()=>t?w[t.kind]:n!==void 0?"-p":i!==void 0?"--resume":u===void 0?void 0:"--output-format",l=o=>{let r=p();if(r===o)throw new a(`Option '${o}' was already specified.`);if(r)throw new a(`${o} cannot be combined with ${r}.`)},h=o=>{if(t)throw new a(`--resume cannot be combined with ${w[t.kind]}.`);if(n!==void 0)throw new a("--resume cannot be combined with -p.");i=o},m=o=>{let r=e[o+1];return r!==void 0&&!r.startsWith("-")?[r,o+1]:[void 0,o]};for(let o=0;o<e.length;o++){let r=e[o];if(d)throw new a(`Unexpected argument "${r}". ${x}`);if(r==="--"){d=!0;continue}if(r==="--help"||r==="-h")return{kind:"help"};if(r==="--version"||r==="-v")return{kind:"version"};switch(r){case"-p":{if(t)throw new a(`-p cannot be combined with ${w[t.kind]}.`);if(n!==void 0)throw new a("Option '-p' was already specified.");if(i!==void 0)throw new a("-p cannot be combined with --resume.");if(e[o+1]==="--"){let s=e[o+2];if(!s?.trim())throw new a(C);n=s,d=!0,o+=2}else{let s=e[o+1];if(!s?.trim()||s.startsWith("-"))throw new a(C);n=s,o+=1}continue}case"--output-format":{if(t)throw new a(`--output-format cannot be combined with ${w[t.kind]}.`);u=K(e[o+1]),o+=1;continue}case"--resume":{let s=e[o+1];s!==void 0&&!s.startsWith("-")?(h(s),o+=1):h(!0);continue}case"--remote":{l(r);let[s,k]=m(o);t={kind:"remote",address:s??"18888"},o=k;continue}case"--a2a":{l(r);let[s,k]=m(o);t=s===void 0?{kind:"a2a"}:{kind:"a2a",address:s},o=k;continue}default:{if(r.startsWith("--resume=")){h(r.slice(9)||!0);continue}throw new a(r.startsWith("-")?`Unknown option "${r}". ${x}`:`Unexpected argument "${r}". ${x}`)}}}if(u!==void 0&&n===void 0)throw new a("--output-format requires -p.");return n!==void 0?{kind:"print",prompt:n,outputFormat:u??"text"}:t||(i===void 0?{kind:"ui"}:{kind:"ui",resume:i})}async function B(){let e;try{e=X(process.argv.slice(2))}catch(t){if(!(t instanceof a))throw t;console.error(`Error: ${t.message}`),process.exitCode=1;return}switch(e.kind){case"help":{console.log(e.topic==="update"?J:z);return}case"version":{console.log(c);return}case"update":{await M(e.tag);return}default:{let{runMode:t}=await import("./main-V4RKN5MY.js");await t(e)}}}function Z(){let e=process.argv[1];if(!e)return!1;try{return _(e)===_(H(import.meta.url))}catch{return!1}}Z()&&await B();export{z as CLI_HELP,a as CliUsageError,J as UPDATE_HELP,X as parseCliArgs};
|