
'use strict';require('earlgrey-runtime/6');let $targ$0;let $targ$1;let m$0;let main$0;let events$0;let EventEmitter$0;let electron$0;let ipc__minus__renderer$0;let browser$0;let document$0;let elements$0;let _BucheElement$0;let source$0;let StreamSource$0;let dispatch$0;let RootDispatcher$0;let registry$0;let PluginManager$0;let buche__minus__tools$0;let plugins$0;let stdin__minus__buffer$0;events$0=require("events");EventEmitter$0=getProperty(events$0,"EventEmitter","events");electron$0=require("electron");ipc__minus__renderer$0=getProperty(electron$0,"ipcRenderer","electron");browser$0=require("earlgrey-runtime/std/browser");document$0=getProperty(browser$0,"document","browser");elements$0=require("./elements");_BucheElement$0=getProperty(elements$0,"BucheElement","elements");source$0=require("./source");StreamSource$0=getProperty(source$0,"StreamSource","source");dispatch$0=require("./dispatch");RootDispatcher$0=getProperty(dispatch$0,"RootDispatcher","dispatch");registry$0=require("./registry");PluginManager$0=getProperty(registry$0,"PluginManager","registry");buche__minus__tools$0=require("buche-tools");if((typeof(Buche)==="undefined")){$targ$0=undefined;(global["Buche"]=$targ$0);(void 0);}if((typeof(BucheElement)==="undefined")){$targ$1=undefined;(global["BucheElement"]=$targ$1);(void 0);}BucheElement=_BucheElement$0;Buche=buche__minus__tools$0;plugins$0=PluginManager$0("~/.config/buche/");m$0=null;$0:for(m$0 of ["code-snippet","buche-log","buche-tabs","buche-input","buche-null","buche-data","buche-table"]){let $1$0;let p$0;let plugin__minus__name$0;plugin__minus__name$0=m$0;$1$0=require(("./plugins/"+plugin__minus__name$0));p$0=$1$0;plugins$0.import(p$0);}stdin__minus__buffer$0=(new EventEmitter$0());ipc__minus__renderer$0.on("data",(function(event$0,data$0,origin$0){return stdin__minus__buffer$0.emit("data",data$0,origin$0);}));ipc__minus__renderer$0.on("end",(function(event$1,data$1){return stdin__minus__buffer$0.emit("end");}));ipc__minus__renderer$0.send("ready");main$0=(function main(){let accum$0;let mount__minus__content$0;let stream$0;let dispatcher$0;let $targ$2;mount__minus__content$0=document$0.getElementById("buche-mount-content");stream$0=StreamSource$0(stdin__minus__buffer$0,((accum$0=({})),(accum$0["write"]=(function write(x$0){return ipc__minus__renderer$0.send("data",x$0);})),accum$0));dispatcher$0=RootDispatcher$0(stream$0,mount__minus__content$0,plugins$0);$targ$2=dispatcher$0;(document$0["dispatcher"]=$targ$2);return dispatcher$0.run();});main$0();
//# sourceMappingURL=client.js.map

