
'use strict';require('earlgrey-runtime/6');let $targ$0;let $targ$1;let html$0;let stringify$0;let format__minus__buche__minus__exception$0;html$0=require("earlgrey-runtime/std/html");stringify$0=(function stringify(v$0,a$0,b$0){let rval$0;rval$0=false;try{rval$0=JSON.stringify(v$0,a$0,b$0);rval$0;}catch(excv$0){let e$0;e$0=excv$0;rval$0=("ERROR: "+e$0.message);rval$0;}return rval$0;});format__minus__buche__minus__exception$0=(function formatBucheException(){let command$0;let err$0;let prefix$0;let t0$0;let m$0$0;m$0$0=arguments;t0$0=m$0$0.length;if(((t0$0>=2)&&(t0$0<=3))){command$0=m$0$0[0];err$0=m$0$0[1];if((2>=t0$0)){prefix$0="";}else{prefix$0=m$0$0[2];}return ({"command":"log","parent":"/buche/errors","format":"html","content":html$0(ENode(["box-tabs",".buche-error-report"],({}),[ENode(["tab-entry"],({"active":true}),[ENode(["tab-label"],({}),"Error"),ENode(["tab-pane"],({}),[prefix$0,err$0.message])]),ENode(["tab-entry"],({}),[ENode(["tab-label"],({}),"Command"),ENode(["tab-pane"],({}),ENode(["pre"],({}),stringify$0(command$0,null,2)))]),ENode(["tab-entry"],({}),[ENode(["tab-label"],({}),"Traceback"),ENode(["tab-pane"],({}),ENode(["pre"],({}),err$0.stack))])]))});}else{return ___match_error(m$0$0,"(command, err, prefix=\"\")");}});$targ$0=stringify$0;(exports["stringify"]=$targ$0);$targ$1=format__minus__buche__minus__exception$0;(exports["formatBucheException"]=$targ$1);(void 0);
//# sourceMappingURL=util.js.map

