From 2e3c7a1aa5831d93a4e73edf39a877d9985045f0 Mon Sep 17 00:00:00 2001
From: Gabriel Csapo \uD83C\uDFAF A simple lcov server & cli parser \uD83C\uDFAF A simple lcov server & cli parser
'),d.setHtml(p),d.show(),s._signal('showGutterTooltip',d),s.on('mousewheel',o),t.$tooltipFollowsMouse)i(u);else{var g=u.domEvent.target,f=g.getBoundingClientRect(),h=d.getElement().style;h.left=f.right+'px',h.top=f.bottom+'px'}}function o(){c&&(c=clearTimeout(c)),p&&(d.hide(),p=null,s._signal('hideGutterTooltip',d),s.removeEventListener('mousewheel',o))}function i(t){d.setPosition(t.x,t.y)}var s=t.editor,l=s.renderer.$gutterLayer,d=new n(s.container);t.editor.setDefaultHandler('guttermousedown',function(n){if(s.isFocused()&&0==n.getButton()){var e=l.getRegion(n);if('foldWidgets'!=e){var r=n.getDocumentPosition().row,o=s.session.selection;if(n.getShiftKey())o.selectTo(r,0);else{if(2==n.domEvent.detail)return s.selectAll(),n.preventDefault();t.$clickSelection=s.selection.getLineRange(r)}return t.setState('selectByLines'),t.captureMouse(n),n.preventDefault()}}});var c,u,p;t.editor.setDefaultHandler('guttermousemove',function(n){var a=n.domEvent.target||n.domEvent.srcElement;if(r.hasCssClass(a,'ace_fold-widget'))return o();p&&t.$tooltipFollowsMouse&&i(n),u=n;c||(c=setTimeout(function(){c=null,u&&!t.isMousePressed?e():o()},50))}),a.addListener(s.renderer.$gutter,'mouseout',function(){u=null;!p||c||(c=setTimeout(function(){c=null,o()},50))}),s.on('changeSession',o)}}),ace.define('ace/mouse/mouse_event',['require','exports','module','ace/lib/event','ace/lib/useragent'],function(e,t){'use strict';var n=e('../lib/event'),r=e('../lib/useragent'),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor,t=e.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=r.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)}),ace.define('ace/mouse/dragdrop_handler',['require','exports','module','ace/lib/dom','ace/lib/event','ace/lib/useragent'],function(e,t){'use strict';function n(e){function t(e,t){var n=Date.now(),o=!t||e.row!=t.row,a=!t||e.column!=t.column;if(!B||o||a)b.$blockScrolling+=1,b.moveCursorToPosition(e),b.$blockScrolling-=1,B=n,$={x:A,y:E};else{var i=r($.x,$.y,A,E);i>p?B=null:n-B>=u&&(b.renderer.scrollCursorIntoView(),B=null)}}function n(e,t){var n=Date.now(),r=b.renderer.layerConfig.lineHeight,o=b.renderer.layerConfig.characterWidth,a=b.renderer.scroller.getBoundingClientRect(),i={x:{left:A-a.left,right:a.right-A},y:{top:E-a.top,bottom:a.bottom-E}},s=d(i.x.left,i.x.right),l=d(i.y.top,i.y.bottom),u={row:e.row,column:e.column};2>=s/o&&(u.column+=i.x.left
'),g.appendChild(a.createElement('div'));var m=function(e,t,n){if(0===t&&('esc'===n||'return'===n))return p.destroy(),{command:'null'}};p.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(p),e.off('changeSelection',p.destroy),e.off('changeSession',p.destroy),e.off('mouseup',p.destroy),e.off('change',p.destroy))},e.keyBinding.addKeyboardHandler(m),e.on('changeSelection',p.destroy),e.on('changeSession',p.destroy),e.on('mouseup',p.destroy),e.on('change',p.destroy),e.session.widgetManager.addLineWidget(p),p.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,0.5,{bottom:p.el.offsetHeight})},a.importCssString(' .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }','')}),ace.define('ace/ace',['require','exports','module','ace/lib/fixoldbrowsers','ace/lib/dom','ace/lib/event','ace/editor','ace/edit_session','ace/undomanager','ace/virtual_renderer','ace/worker/worker_client','ace/keyboard/hash_handler','ace/placeholder','ace/multi_select','ace/mode/folding/fold_mode','ace/theme/textmate','ace/ext/error_marker','ace/config'],function(e,t){'use strict';e('./lib/fixoldbrowsers');var r=e('./lib/dom'),o=e('./lib/event'),a=e('./editor').Editor,i=e('./edit_session').EditSession,s=e('./undomanager').UndoManager,l=e('./virtual_renderer').VirtualRenderer;e('./worker/worker_client'),e('./keyboard/hash_handler'),e('./placeholder'),e('./multi_select'),e('./mode/folding/fold_mode'),e('./theme/textmate'),e('./ext/error_marker'),t.config=e('./config'),t.acequire=e,t.define=n(11),t.edit=function(e){if('string'==typeof e){var n=e;if(e=document.getElementById(n),!e)throw new Error('ace.edit can\'t find div #'+n)}if(e&&e.env&&e.env.editor instanceof a)return e.env.editor;var i='';if(e&&/input|textarea/i.test(e.tagName)){var s=e;i=s.value,e=r.createElement('pre'),s.parentNode.replaceChild(e,s)}else e&&(i=r.getInnerText(e),e.innerHTML='');var d=t.createEditSession(i),c=new a(new l(e));c.setSession(d);var u={document:d,editor:c,onResize:c.resize.bind(c,null)};return s&&(u.textarea=s),o.addListener(window,'resize',u.onResize),c.on('destroy',function(){o.removeListener(window,'resize',u.onResize),u.editor.container.env=null}),c.container.env=c.env=u,c},t.createEditSession=function(e,t){var n=new i(e,t);return n.setUndoManager(new s),n},t.EditSession=i,t.UndoManager=s,t.version='1.2.6'}),function(){ace.acequire(['ace/ace'],function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])})}(),e.exports=window.ace.acequire('ace/ace')},function(e){e.exports=function(){throw new Error('define cannot be used indirect')}},function(e,t,n){(function(e,n){function r(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++nlcov-server
\n
\n
\n \n npm install -g lcov-server
\n
\n \n $ lcov-server
\n \n this will startup the lcov-server
\n $ tap test/**/*.js --coverage-report=text-lcov | lcov-server --upload https://localhost:8080lcov-server
\n
\n
\n \n npm install -g lcov-server
\n
\n \n $ lcov-server
\n \n this will startup the lcov-server
\n $ tap test/**/*.js --coverage-report=text-lcov | lcov-server --upload https://localhost:8080
'+i(t.message+'',!0)+'';throw t}}var p={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:d,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:d,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:d,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};p.bullet=/(?:[*+-]|\d+\.)/,p.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,p.item=l(p.item,'gm')(/bull/g,p.bullet)(),p.list=l(p.list)(/bull/g,p.bullet)('hr','\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))')('def','\\n+(?='+p.def.source+')')(),p.blockquote=l(p.blockquote)('def',p.def)(),p._tag='(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b',p.html=l(p.html)('comment',//)('closed',/<(tag)[\s\S]+?<\/\1>/)('closing',/
'+(n?e:i(e,!0))+'\n
\n':''+(n?e:i(e,!0))+'\n
'},o.prototype.blockquote=function(e){return'\n'+e+'\n'},o.prototype.html=function(e){return e},o.prototype.heading=function(e,t,n){return'
'+e+'
\n'},o.prototype.table=function(e,t){return''+e+'
'},o.prototype.br=function(){return this.options.xhtml?'