PageSourceSearch

https://vrew.ai/try/assets/local-DvF2ypzV.js

js vrew.ai collected 2026-10-02 05:04:10 UTC 1,818 bytes, 2 lines download raw bytes

1import{H9 as O,ZU as b}from"./scene-B7kE8RMp.js";import{B as f,C as m,M as d,du as v,g as L}from"./styles-BqRY-fqL.js";import{g as C}from"./vendor-McMLrVo2.js";import"./json/_name_-D5nKX5TO.js";let p;const c=()=>p||(p=L("local.ts")),w={},u={},x=r=>/^logging./.test(r),R=()=>"logging-"+C.v4(),g={debug:(r,...e)=>x(r)?window.console.log(...e):c().debug(...e),info:(r,...e)=>x(r)?window.console.info(...e):c().info(...e),warn:(r,...e)=>c().warn(...e),error:(r,...e)=>c().error(...e)};let l=!1;const M=()=>l=!l,E=(r,e,o,n)=>{const{channel:s,future:t}=u[e]||{channel:"unknown",future:void 0};if(o?g.debug(e,"[<-IPC] ["+s+"]["+e+"] error="+JSON.stringify(o,null,2)):l&&g.debug(e,"[<-IPC] ["+s+"]["+e+"] result="+JSON.stringify(n,null,2)),!t){g.warn(e,"IpcError","No future for IPC["+e+"]");return}if(delete u[e],o){g.error("Got error during desktop IPC: "+d(o));const i=b(o.errorCode)??m.D_ERR_UNKNOWN_DESKTOP_ERROR,a=new f(i,{},v(o)??d(o));t.reject(a)}else t.resolve(n)},P=(r,e,o)=>{const{progressObserver:n}=u[e]||{};l&&g.debug(e,"[==IPC] ("+e+") data="+o),n&&n(o)},y=(r,e,o,n)=>{const{resultObserver:s}=u[e]||{};l&&g.debug(e,"[==IPC] ("+e+") result="+o+" isFinal="+n),s&&s(o,n)},S=async(r,e,o,n,s={})=>{if(window.api?.desktop!==!0)throw new f(m.C_LOGIC_ERROR,{},"ipc is only available in desktop environment");const t=window.api.ipc,i=x(r)?R():C.v4(),a=new O,I=a.promise();return u[i]={channel:r,future:a,progressObserver:o,resultObserver:n,options:s},l&&(s.silentArg?g.debug(r,"[IPC->] ("+r+":"+i+") args=..."):g.debug(r,"[IPC->] ("+r+":"+i+") args="+JSON.stringify(e,null,2))),!s.listenOnly&&t.send(r,i,e),s.customListener&&t.on(r,s.customListener),!w[r]&&!s.customListener&&(w[r]=!0,t.on(r,E),t.on(r+".progress",P),t.on(r+".result",y)),I};export{S as ipc,M as toggleIpcLog};
2//# sourceMappingURL=local-DvF2ypzV.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.