Skip to content

Instantly share code, notes, and snippets.

@kirbysayshi
Created March 18, 2014 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirbysayshi/9622558 to your computer and use it in GitHub Desktop.
Save kirbysayshi/9622558 to your computer and use it in GitHub Desktop.
requirebin sketch
var vash = require('vash');
var test = require('tape');
var tbc = require('tap-browser-color')();
test('can handle windows CLRF', function(t) {
var orig = '<p>one two \r\n three \r\n @model.what</p>';
var tpl = vash.compile(orig);
var model = { what: 'what' };
t.equal(tpl(model), '<p>one two \n three \n what</p>');
t.end();
})
require=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);throw Error("Cannot find module '"+s+"'")}var h=n[s]={exports:{}};t[s][0].call(h.exports,function(e){var n=t[s][1][e];return i(n?n:e)},h,h.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;r.length>s;s++)i(r[s]);return i}({1:[function(){},{}],2:[function(e,t){var n=t.exports={};n.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;if((t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.binding=function(){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw Error("process.chdir is not supported")}},{}],3:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;e.length>r;r++)t(e[r],r,e)&&n.push(e[r]);return n}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return i.exec(e).slice(1)};n.resolve=function(){for(var n="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(n=s+"/"+n,i="/"===s.charAt(0))}return n=t(r(n.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(e){var i=n.isAbsolute(e),o="/"===s(e,-1);return e=t(r(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;e.length>t&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),o=r(t.split("/")),s=Math.min(i.length,o.length),a=s,u=0;s>u;u++)if(i[u]!==o[u]){a=u;break}for(var h=[],u=a;i.length>u;u++)h.push("..");return h=h.concat(o.slice(a)),h.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=o(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=o(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return o(e)[3]};var s="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return 0>t&&(t=e.length+t),e.substr(t,n)}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":2}],LIlkRh:[function(e,t){(function(e){"function"==typeof define&&define.amd?define(e):"object"==typeof t&&t.exports?t.exports=e:window.vash=e})(function(n){function r(e){this.input=this.originalInput=e.replace(/^\uFEFF/,"").replace(/\r\n|\r/g,"\n"),this.lineno=1,this.charno=0}function i(e,t){this.options=t||{},this.tokens=e,this.ast=H(z),this.prevTokens=[],this.inCommentLine=!1}function o(e,t,n){this.ast=e,this.originalMarkup=t||"",this.options=n||{},this.reQuote=/(['"])/gi,this.reEscapedQuote=/\\+(["'])/gi,this.reLineBreak=/\r?\n/gi,this.reHelpersName=/HELPERSNAME/g,this.reModelName=/MODELNAME/g,this.reOriginalMarkup=/ORIGINALMARKUP/g,this.buffer=[]}var s=n,a="AT",u="ASSIGN_OPERATOR",h="AT_COLON",l="AT_STAR_CLOSE",c="AT_STAR_OPEN",f="BACKSLASH",p="BRACE_CLOSE",d="BRACE_OPEN",g="CONTENT",m="DOUBLE_QUOTE",v="EMAIL",y="ESCAPED_QUOTE",b="FORWARD_SLASH",w="FUNCTION",E="HARD_PAREN_CLOSE",_="HARD_PAREN_OPEN",k="HTML_TAG_CLOSE",x="HTML_TAG_OPEN",A="HTML_TAG_VOID_OPEN",L="HTML_TAG_VOID_CLOSE",S="IDENTIFIER",M="KEYWORD",j="LOGICAL",I="NEWLINE",N="NUMERIC_CONTENT",T="OPERATOR",C="PAREN_CLOSE",O="PAREN_OPEN",R="PERIOD",B="SINGLE_QUOTE",D="TEXT_TAG_CLOSE",P="TEXT_TAG_OPEN",U="WHITESPACE",q={};q[c]=l,q[d]=p,q[m]=m,q[_]=E,q[O]=C,q[B]=B,q[h]=I,q[b]=b;var F=[v,/^([a-zA-Z0-9.%]+@[a-zA-Z0-9.\-]+\.(?:ca|co\.uk|com|edu|net|org))\b/,c,/^(@\*)/,l,/^(\*@)/,h,/^(@\:)/,a,/^(@)/,O,/^(\()/,C,/^(\))/,_,/^(\[)/,E,/^(\])/,d,/^(\{)/,p,/^(\})/,P,/^(<text>)/,D,/^(<\/text>)/,x,function(){var e=/^(<[a-zA-Z@]+?[^>]*?["a-zA-Z]*>)/,t=/([a-zA-Z0-9.%]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,4})\b/,n=/^(<[a-zA-Z@]+(?:\s+\S+)*\s*\/>)/,r=this.scan(n,A)||this.scan(e,x);return r&&(this.spewIf(r,t),this.spewIf(r,/(@)/),this.spewIf(r,/(\/\s*>)/)),r},k,/^(<\/[^>@\b]+?>)/,L,/^(\/\s*>)/,R,/^(\.)/,I,function(){var e=this.scan(/^(\n)/,I);return e&&(this.lineno++,this.charno=0),e},U,/^(\s)/,w,/^(function)(?![\d\w])/,M,/^(case|catch|do|else|finally|for|function|goto|if|instanceof|return|switch|try|typeof|var|while|with)(?![\d\w])/,S,/^([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)/,b,/^(\/)/,T,/^(===|!==|==|!==|>>>|<<|>>|>=|<=|>|<|\+|-|\/|\*|\^|%|\:|\?)/,u,/^(\|=|\^=|&=|>>>=|>>=|<<=|-=|\+=|%=|\/=|\*=|=)/,j,/^(&&|\|\||&|\||\^)/,y,/^(\\+['"])/,f,/^(\\)/,m,/^(\")/,B,/^(\')/,N,/^([0-9]+)/,g,/^([^\s})@.]+?)/];r.prototype={scan:function(e,t){var n,r;return(n=e.exec(this.input))?(this.input=this.input.substr(n[1].length),r={type:t,line:this.lineno,chr:this.charno,val:n[1]||"",toString:function(){return"["+this.type+" ("+this.line+","+this.chr+"): "+this.val+"]"}},this.charno+=n[0].length,r):void 0},spewIf:function(e,t){var n,r,i;return e&&(n=t.exec(e.val),n&&(r=e.val.indexOf(n[1]),i=e.val.substring(r),this.input=i+this.input,this.charno-=i.length,e.val=e.val.substring(0,r))),e},advance:function(){var e,t,n;for(e=0;F.length>e;e+=2)if(t=F[e+1],t.displayName=F[e],"function"==typeof t&&(n=t.call(this)),"function"==typeof t.exec&&(n=this.scan(t,F[e])),n)return n}};var H=function(e){return new H.fn.init(e)};H.prototype.init=function(e){"string"==typeof e&&(this.mode=e),this.maxCheck()},H.fn=H.prototype.init.prototype=H.prototype,H.fn.vquery="yep",H.fn.constructor=H,H.fn.length=0,H.fn.parent=null,H.fn.mode=null,H.fn.tagName=null,H.fn.tagVoid=null,H.fn.beget=function(e,t){var n=H(e);return n.parent=this,this.push(n),t&&(n.tagName=t),this.maxCheck(),n},H.fn.closest=function(e,t){for(var n=this;n&&n.tagName!==t&&n.parent;)n=n.parent;return n},H.fn.pushFlatten=function(e){for(var t,n=e;1===n.length&&n[0].vquery;)n=n[0];if(n.mode!==z)this.push(n);else for(t=0;n.length>t;t++)this.push(n[t]);return this.maxCheck(),this},H.fn.push=function(e){return H.isArray(e)?(e.vquery&&e.forEach(function(e){e.parent=this},this),Array.prototype.push.apply(this,e)):(e.vquery&&(e.parent=this),Array.prototype.push.call(this,e)),this.maxCheck(),this.length},H.fn.root=function(){for(var e=this;e&&e.parent&&(e=e.parent););return e},H.fn.toTreeString=function(){function e(r){var i,o;for(t.push(Array(n).join(" |")+" +"+r.mode+" "+(r.tagName||"")),n+=1,i=r.slice();o=i.shift();)o.vquery===H.fn.vquery?e(o):t.push(Array(n).join(" |")+" "+(o?(""+o).replace(/(\r|\n)/g,""):"[empty]"));n-=1,t.push(Array(n).join(" |")+" -"+r.mode+" "+(r.tagName||""))}var t=[],n=1;return e(this),t.join("\n")},H.fn.maxCheck=function(){if(this.length>=H.maxSize){var e=Error();throw e.message="Maximum number of elements exceeded.\nThis is typically caused by an unmatched character or tag. Parse tree follows:\n"+this.toTreeString(),e.name="vQueryDepthException",e}},H.maxSize=1e5,H.fn.flatten=function(){var e;return this.reduce(function t(n,r,i,o){return r.vquery?(n.push({type:"META",val:"START"+r.mode,tagName:r.tagName}),e=r.reduce(t,n),e.push({type:"META",val:"END"+r.mode,tagName:r.tagName}),e):(r.mode=o.mode,n.push(r),n)},[])},H.reconstitute=function(e){return e.reduce(function(e,t){return"META"===t.type?e=e.parent:(t.mode!==e.mode&&(e=e.beget(t.mode,t.tagName)),e.push(t)),e},H(z))},H.isArray=function(e){return"[object Array]"==Object.prototype.toString.call(e)},H.extend=function(e){var t,n,r;for(n=1;arguments.length>n;n++){t=arguments[n];for(r in t)e[r]=t[r]}return e},H.takeMethodsFromArray=function(){for(var e,t=["pop","push","reverse","shift","sort","splice","unshift","concat","join","slice","indexOf","lastIndexOf","filter","forEach","every","map","some","reduce","reduceRight"],n=[],r=0;t.length>r;r++){if(e=t[r],"function"!=typeof n[e])throw Error("Vash requires ES5 array iteration methods, missing: "+e);H.fn[e]||function(e){H.fn[e]=function(){return n[e].apply(this,Array.prototype.slice.call(arguments,0))}}(e)}},H.takeMethodsFromArray();var z="PROGRAM",W="MARKUP",G="BLOCK",$="EXPRESSION";i.prototype={parse:function(){for(var e;this.prevTokens.push(e),e=this.tokens.pop();)this.options.debugParser&&console.log(this.ast&&this.ast.mode,e.type,""+e,e.val),(this.ast.mode===z||null===this.ast.mode)&&(this.ast=this.ast.beget(this.options.initialMode||W),this.options.initialMode===$&&(this.ast=this.ast.beget($))),this.ast.mode!==W?this.ast.mode!==G?this.ast.mode!==$||this.handleEXP(e):this.handleBLK(e):this.handleMKP(e);return this.ast=this.ast.root(),this.options.debugParser&&!this.options.initialMode&&(console.log(""+this.ast),console.log(this.ast.toTreeString())),this.ast},exceptionFactory:function(e,t,n){return"UNMATCHED"==t&&(e.name="UnmatchedCharacterError",this.ast=this.ast.root(),n&&(e.message="Unmatched "+n.type+" at line "+n.line+", character "+n.chr+". Value: "+n.val+"\n "+this.ast.toTreeString(),e.lineNumber=n.line)),e},advanceUntilNot:function(e){for(var t,n,r=[];(n=this.tokens[this.tokens.length-1])&&n.type===e;)t=this.tokens.pop(),r.push(t);return r},advanceUntilMatched:function(e,t,n,r,i){for(var o=e,s=null,a=0,u=0,h=[];o&&(o.type===t?s&&s.type!==r&&t!==n||!s?a++:t===n&&s.type!==r&&u++:o.type===n&&(u++,s&&s.type===i&&u--),h.push(o),a!==u);)if(s=o,o=this.tokens.pop(),!o)throw this.exceptionFactory(Error(),"UNMATCHED",e);return h.reverse()},subParse:function(e,t,n){var r,o,s,u=H.extend({},this.options);u.initialMode=t,r=this.advanceUntilMatched(e,e.type,q[e.type],null,a),r.pop(),o=r.shift(),n||this.ast.push(e),s=new i(r,u),s.parse(),n&&(s.ast[0].unshift(e),s.ast[0].push(o)),this.ast.pushFlatten(s.ast),n||this.ast.push(o)},handleMKP:function(e){var t,n=this.tokens[this.tokens.length-1],r=this.tokens[this.tokens.length-2],i=null;switch(e.type){case c:this.advanceUntilMatched(e,c,l,a,a);break;case a:if(n)switch(this.options.saveAT&&this.ast.push(e),n.type){case O:case S:0===this.ast.length&&(this.ast=this.ast.parent,this.ast.pop()),this.ast=this.ast.beget($);break;case M:case w:case d:0===this.ast.length&&(this.ast=this.ast.parent,this.ast.pop()),this.ast=this.ast.beget(G);break;case a:case h:n.type="CONTENT",this.ast.push(this.tokens.pop());break;default:this.ast.push(this.tokens.pop())}break;case P:case x:case A:i=e.val.match(/^<([^\/ >]+)/i),null===i&&n&&n.type===a&&r&&(i=r.val.match(/(.*)/)),this.ast.tagName?this.ast=this.ast.beget(W,i[1]):this.ast.tagName=i[1],e.type===A&&(this.ast.tagVoid=this.ast.tagName),(A===e.type||x===e.type||this.options.saveTextTag)&&this.ast.push(e);break;case D:case k:i=e.val.match(/^<\/([^>]+)/i),null===i&&n&&n.type===a&&r&&(i=r.val.match(/(.*)/)),t=this.ast.closest(W,i[1]),null===t||t.tagName!==i[1]||(this.ast=t),(k===e.type||this.options.saveTextTag)&&this.ast.push(e),this.ast.parent&&this.ast.parent.mode===G&&(this.ast=this.ast.parent);break;case L:this.ast.tagVoid?(this.ast.push(e),this.ast=this.ast.parent):this.tokens.push(e);break;case f:e.val+="\\",this.ast.push(e);break;default:this.ast.push(e)}},handleBLK:function(e){var t,n,r=this.tokens[this.tokens.length-1];switch(e.type){case a:r.type===a||this.inCommentLine?(r.type=g,this.ast.push(r),this.tokens.pop()):(this.tokens.push(e),this.ast=this.ast.beget(W));break;case c:this.advanceUntilMatched(e,c,l,a,a);break;case h:this.subParse(e,W,!0);break;case P:case D:case A:case x:case k:this.ast=this.ast.beget(W),this.tokens.push(e);break;case b:case B:case m:e.type===b&&r&&r.type===b&&(this.inCommentLine=!0),this.inCommentLine?this.ast.push(e):(n=this.advanceUntilMatched(e,e.type,q[e.type],f,f).map(function(e){return e.type===a&&(e.type=g),e}),this.ast.pushFlatten(n.reverse()));break;case I:this.inCommentLine&&(this.inCommentLine=!1),this.ast.push(e);break;case d:case O:t=this.options.favorText&&e.type===d?W:G,this.subParse(e,t),n=this.advanceUntilNot(U),r=this.tokens[this.tokens.length-1],r&&r.type!==M&&r.type!==w&&r.type!==d&&e.type!==O?(this.tokens.push.apply(this.tokens,n.reverse()),this.ast=this.ast.parent):this.ast.push(n);break;default:this.ast.push(e)}},handleEXP:function(e){var t,n,r=null;switch(e.type){case M:case w:this.ast=this.ast.beget(G),this.tokens.push(e);break;case U:case j:case u:case T:case N:this.ast.parent&&this.ast.parent.mode===$?this.ast.push(e):(this.ast=this.ast.parent,this.tokens.push(e));break;case S:this.ast.push(e);break;case B:case m:this.ast.parent&&this.ast.parent.mode===$?(t=this.advanceUntilMatched(e,e.type,q[e.type],f,f),this.ast.pushFlatten(t.reverse())):(this.ast=this.ast.parent,this.tokens.push(e));break;case _:case O:if(n=this.prevTokens[this.prevTokens.length-1],r=this.tokens[this.tokens.length-1],e.type===_&&r.type===E){this.tokens.push(e),this.ast=this.ast.parent;break}this.subParse(e,$),r=this.tokens[this.tokens.length-1],(n&&n.type===a||r&&r.type===S)&&(this.ast=this.ast.parent);break;case d:this.tokens.push(e),this.ast=this.ast.beget(G);break;case R:r=this.tokens[this.tokens.length-1],r&&(r.type===S||r.type===M||r.type===w||r.type===R||this.ast.parent&&this.ast.parent.mode===$)?this.ast.push(e):(this.ast=this.ast.parent,this.tokens.push(e));break;default:this.ast.parent&&this.ast.parent.mode!==$?(this.ast=this.ast.parent,this.tokens.push(e)):this.ast.push(e)}}};var K=o.prototype;K.insertDebugVars=function(e){this.options.debug&&this.buffer.push(this.options.helpersName+".vl = "+e.line+", ",this.options.helpersName+".vc = "+e.chr+"; \n")},K.visitMarkupTok=function(e){this.insertDebugVars(e),this.buffer.push("MKP("+e.val.replace(this.reEscapedQuote,"\\\\$1").replace(this.reQuote,"\\$1").replace(this.reLineBreak,"\\n")+")MKP")},K.visitBlockTok=function(e){this.buffer.push(e.val)},K.visitExpressionTok=function(e,t,n,r){var i="",o="",s=t.parent&&t.parent.mode!==$;this.options.htmlEscape!==!1&&(s&&0===n&&r&&(i+=this.options.helpersName+".escape("),s&&n===t.length-1&&r&&(o+=").toHtmlString()")),s&&0===n&&(this.insertDebugVars(e),i="__vbuffer.push("+i),s&&n===t.length-1&&(o+="); \n"),this.buffer.push(i+e.val+o),s&&n===t.length-1&&this.insertDebugVars(e)},K.visitNode=function(e){var t,n,r,i=e.slice(0);for(e.mode===$&&e.parent&&e.parent.mode!==$&&(t=e.filter(o.findNonExp).length),n=0;i.length>n;n++)r=i[n],r.type&&r.type===a||r.type===h||(r.vquery?this.visitNode(r):e.mode===W?this.visitMarkupTok(r,e,n):e.mode===G?this.visitBlockTok(r,e,n):e.mode===$&&this.visitExpressionTok(r,e,n,t>0?!1:!0))},K.escapeForDebug=function(e){return e.replace(this.reLineBreak,"!LB!").replace(this.reQuote,"\\$1").replace(this.reEscapedQuote,"\\$1")},K.replaceDevTokens=function(e){return e.replace(this.reHelpersName,this.options.helpersName).replace(this.reModelName,this.options.modelName)},K.addHead=function(e){var t=this.options,n=""+(t.debug?"try { \n":"")+"var __vbuffer = HELPERSNAME.buffer; \n"+"HELPERSNAME.options = __vopts; \n"+"MODELNAME = MODELNAME || {}; \n"+(t.useWith?"with( MODELNAME ){ \n":"");return n=this.replaceDevTokens(n),n+e},K.addHelperHead=function(e){var t=this.options,n=""+(t.debug?"try { \n":"")+"var __vbuffer = this.buffer; \n"+"var MODELNAME = this.model; \n"+"var HELPERSNAME = this; \n";return n=this.replaceDevTokens(n),n+e},K.addFoot=function(e){var t=this.options,n=""+(t.simple?'return HELPERSNAME.buffer.join(""); \n':"(__vopts && __vopts.onRenderEnd && __vopts.onRenderEnd(null, HELPERSNAME)); \nreturn (__vopts && __vopts.asContext) \n ? HELPERSNAME \n : HELPERSNAME.toString(); \n")+(t.useWith?"} \n":"")+(t.debug?'} catch( e ){ \n HELPERSNAME.reportError( e, HELPERSNAME.vl, HELPERSNAME.vc, "ORIGINALMARKUP" ); \n} \n':"");return n=this.replaceDevTokens(n).replace(this.reOriginalMarkup,this.escapeForDebug(this.originalMarkup)),e+n},K.addHelperFoot=function(e){var t=this.options,n=""+(t.debug?'} catch( e ){ \n HELPERSNAME.reportError( e, HELPERSNAME.vl, HELPERSNAME.vc, "ORIGINALMARKUP" ); \n} \n':"");return n=this.replaceDevTokens(n).replace(this.reOriginalMarkup,this.escapeForDebug(this.originalMarkup)),e+n},K.generate=function(){var e=this.options;this.buffer.length=0,this.visitNode(this.ast);var t=this.buffer.join("").split(")MKPMKP(").join("").split("MKP(").join("__vbuffer.push('").split(")MKP").join("'); \n");return e.asHelper?(t=this.addHelperHead(t),t=this.addHelperFoot(t)):(t=this.addHead(t),t=this.addFoot(t)),e.debugCompiler&&(console.log(t),console.log(e)),this.cmpFunc=s.link(t,e),this.cmpFunc},o.noop=function(){},o.findNonExp=function(e){return e.vquery&&e.mode===$?e.filter(o.findNonExp).length>0:e.vquery&&e.mode!==$?!0:!1},n.config={useWith:!1,modelName:"model",helpersName:"html",htmlEscape:!0,debug:!0,debugParser:!1,debugCompiler:!1,simple:!1,favorText:!1,externs:["window","document"],saveTextTag:!1,saveAT:!1},n.compile=function(e,t){if(""===e||"string"!=typeof e)throw Error("Empty or non-string cannot be compiled");var s,a,u,h,l,c=[];for(t=H.extend({},n.config,t||{}),s=new r(e);a=s.advance();)c.push(a);return c.reverse(),u=new i(c,t),u.parse(),h=new o(u.ast,e,t),l=h.generate()};var V=(Array.prototype.slice,/vash\.helpers\.([^= ]+?)\s*=\s*function([^(]*?)\(([^)]*?)\)\s*{/),Z=/\}$/,Q=/^\/\/\s*@\s*batch\s*=\s*(.*?)$/,J=function(e,t,n,r){var i=t.split(/[\n\r]/g),o={},s="";return i.forEach(function(t){var i=e.exec(t),a=i?n.apply(i,i):null;a&&(s=a,o[s]=[]),a&&!r||!t||o[s].push(t)}),Object.keys(o).forEach(function(e){o[e]=o[e].join("\n")}),o},X=function(e,t,n){var r="helper"===e?V:Q,i=J(r,t,function(e,t){return t.replace(/^\s+|\s+$/,"")},"helper"===e?!0:!1);return i&&(Object.keys(i).forEach(function(t){i[t]="helper"===e?Y(i[t],n):s.compile("@{"+i[t]+"}",n)}),i.toClientString=function(){return Object.keys(i).reduce(function(e,t){return"toClientString"===t?e:e+i[t].toClientString()+"\n"},"")}),i},Y=function(e,t){t=t||{};var n=e.replace(/^[\s\n\r]+|[\s\n\r]+$/,"").match(V),r=n[3].split(",").map(function(e){return e.replace(" ","")}),i=n[1],o=e.replace(V,"").replace(Z,"");return o="@{"+o+"}",t.args=r,t.asHelper=i,s.compile(o,t)};return n.compileHelper=X.bind(null,"helper"),n.compileBatch=n.batch=X.bind(null,"batch"),n.VLexer=r,n.VParser=i,n.VCompiler=o,n.vQuery=H,function(){function e(e,t){return"function"==typeof t&&(t={onRenderEnd:t}),e&&e.onRenderEnd&&(t=t||{},t.onRenderEnd||(t.onRenderEnd=e.onRenderEnd),delete e.onRenderEnd),t||(t={}),t}s=s===void 0?{}:s,s.compile||("function"==typeof define&&define.amd?define(function(){return s}):"object"==typeof t&&t.exports?t.exports=s:window.vash=s);var n=s.helpers,r=function(e){this.buffer=new u,this.model=e,this.options=null,this.vl=0,this.vc=0};s.helpers=n=r.prototype={constructor:r,config:{},tplcache:{}},n.toString=n.toHtmlString=function(){return this.buffer._vo.join("")};var i=/[&<>"'`]/g,o=function(e){return a[e]},a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};n.raw=function(e){var t=function(){return e};return e=null!=e?e:"",{toHtmlString:t,toString:t}},n.escape=function(e){var t=function(){return e};return e=null!=e?e:"","function"!=typeof e.toHtmlString?(e=(""+e).replace(i,o),{toHtmlString:t,toString:t}):e};var u=function(){this._vo=[]};u.prototype.mark=function(e){var t=new h(this,e);return t.markedIndex=this._vo.length,this._vo.push(t.uid),t},u.prototype.fromMark=function(e){var t=e.findInBuffer();return t>-1?(e.destroy(),this._vo.splice(t,this._vo.length)):[]},u.prototype.spliceMark=function(e){var t=e.findInBuffer();return t>-1?(e.destroy(),arguments[0]=t,this._vo.splice.apply(this._vo,arguments)):[]},u.prototype.empty=function(){return this._vo.splice(0,this._vo.length)},u.prototype.push=function(e){return this._vo.push(e)},u.prototype.pushConcat=function(e){var t;t=Array.isArray(e)?e:arguments.length>1?Array.prototype.slice.call(arguments):[e];for(var n=0;t.length>n;n++)this._vo.push(t[n]);return this.__vo},u.prototype.indexOf=function(e){for(var t=0;this._vo.length>t;t++)if(e.test&&this._vo[t].search(e)>-1||this._vo[t]==e)return t;return-1},u.prototype.lastIndexOf=function(e){for(var t=this._vo.length;--t>=0;)if(e.test&&this._vo[t].search(e)>-1||this._vo[t]==e)return t;return-1},u.prototype.splice=function(){return this._vo.splice.apply(this._vo,arguments)},u.prototype.index=function(e){return this._vo[e]},u.prototype.flush=function(){return this.empty().join("")},u.prototype.toString=u.prototype.toHtmlString=function(){return this._vo.join("")};var h=s.Mark=function(e,t){this.uid="[VASHMARK-"+~~(1e7*Math.random())+(t?":"+t:"")+"]",this.markedIndex=0,this.buffer=e,this.destroyed=!1},l=/\[VASHMARK\-\d{1,8}(?::[\s\S]+?)?]/g;h.uidLike=function(e){return(e||"").search(l)>-1},h.prototype.destroy=function(){var e=this.findInBuffer();e>-1&&(this.buffer.splice(e,1),this.markedIndex=-1),this.destroyed=!0},h.prototype.findInBuffer=function(){return this.destroyed?-1:this.markedIndex&&this.buffer.index(this.markedIndex)===this.uid?this.markedIndex:this.markedIndex=this.buffer.indexOf(this.uid)},n.constructor.reportError=function(e,t,n,r,i){i=i||"!LB!";var o=r.split(i),s=0===t&&0===n?o.length-1:3,a=Math.max(0,t-s),u=Math.min(o.length,t+s),h=o.slice(a,u).map(function(e,n){var r=n+a+1;return(r===t?" > ":" ")+(10>r?" ":"")+r+" | "+e}).join("\n");throw e.vashlineno=t,e.vashcharno=n,e.message="Problem while rendering template at line "+t+", character "+n+".\nOriginal message: "+e.message+"."+"\nContext: \n\n"+h+"\n\n",e},n.reportError=function(){this.constructor.reportError.apply(this,arguments)},s.link=function(t,i){var o,a;if(i.args||(i.args=[i.modelName,i.helpersName,"__vopts","vash"]),"string"==typeof t){o=t;try{a=i.args.slice(),a.push(t),t=Function.apply(null,a)}catch(u){n.reportError(u,0,0,o,/\n/)}}t.options={simple:i.simple,modelName:i.modelName,helpersName:i.helpersName};var h;return i.asHelper?(t.options.args=i.args,t.options.asHelper=i.asHelper,h=function(){return t.apply(this,c.call(arguments))},n[i.asHelper]=h):h=function(n,o){if(i.simple){var a={buffer:[],escape:r.prototype.escape,raw:r.prototype.raw};return t(n,a,o,s)}return o=e(n,o),t(n,o&&o.context||new r(n),o,s)},h.toString=function(){return""+t},h._toString=function(){return Function.prototype.toString.call(h)},h.toClientString=function(){return"vash.link( "+(""+t)+", "+JSON.stringify(t.options)+" )"},h};var c=Array.prototype.slice;s.lookup=function(e,t){var n=s.helpers.tplcache[e];if(!n)throw Error("Could not find template: "+e);return t?n(t):n},s.install=function(e,t){var n=s.helpers.tplcache;if("string"==typeof t){if(!s.compile)throw Error("vash.install(path, [string]) is not available in the standalone runtime.");t=s.compile(t)}else if("object"==typeof e)return t=e,Object.keys(t).forEach(function(e){n[e]=t[e]}),n;return n[e]=t},s.uninstall=function(e){var t=s.helpers.tplcache,n=!1;return"string"==typeof e?delete t[e]:(Object.keys(t).forEach(function(r){t[r]===e&&(n=delete t[r])}),n)}}(),function(){var e=s.helpers;e.trim=function(e){return e.replace(/^\s*|\s*$/g,"")},e.config.highlighter=null,e.highlight=function(t,n){var r=this.buffer.mark();n();var i=this.buffer.fromMark(r);this.buffer.push("<pre><code>"),e.config.highlighter?this.buffer.push(e.config.highlighter(t,i.join("")).value):this.buffer.push(i),this.buffer.push("</code></pre>")}}(),function(){if("undefined"==typeof window)var t=e("fs"),n=e("path");var r=s.helpers;r.config.browser=!1,s.loadFile=function(e,i,o){i=H.extend({},s.config,i||{});var a,u=r.config.browser;!u&&i.settings&&i.settings.views&&(e=n.normalize(e),-1===e.indexOf(n.normalize(i.settings.views))&&(e=n.join(i.settings.views,e)),n.extname(e)||(e+="."+(i.settings["view engine"]||"vash")));try{a=i.cache||u?r.tplcache[e]||(r.tplcache[e]=s.compile(t.readFileSync(e,"utf8"))):s.compile(t.readFileSync(e,"utf8")),o&&o(null,a)}catch(h){o&&o(h,null)}},s.renderFile=function(e,t,n){s.loadFile(e,t,function(e,r){var i=t.onRenderEnd;n(e,!e&&r(t,function(e,t){t.finishLayout(),i&&i(e,t)}))})},r._ensureLayoutProps=function(){this.appends=this.appends||{},this.prepends=this.prepends||{},this.blocks=this.blocks||{},this.blockMarks=this.blockMarks||{}},r.finishLayout=function(){this._ensureLayoutProps();var e,t,n,r,i,o,s,a,u=this;for(e in this.blockMarks)t=this.blockMarks[e],r=this.prepends[e],n=this.blocks[e],i=this.appends[e],o=t.pop(),s=this.buffer.mark(),r&&r.forEach(function(e){u.buffer.pushConcat(e)}),block=n.pop(),block&&this.buffer.pushConcat(block),i&&i.forEach(function(e){u.buffer.pushConcat(e)}),a=this.buffer.fromMark(s).join(""),this.buffer.spliceMark(o,0,a);for(e in this.blockMarks)this.blockMarks[e].forEach(function(e){e.destroy()});return delete this.blockMarks,delete this.prepends,delete this.blocks,delete this.appends,""+this},r.extend=function(e,t){var n=this,r=(this.buffer,this.model);this._ensureLayoutProps(),s.loadFile(e,this.model,function(e,r){var i=n.buffer.mark();t(n.model),n.buffer.fromMark(i),n.isExtending=!0,r(n.model,{context:n}),n.isExtending=!1}),this.model=r},r.include=function(e,t){var n=this,r=(this.buffer,this.model);s.loadFile(e,this.model,function(e,r){r(t||n.model,{context:n})}),this.model=r},r.block=function(e,t){this._ensureLayoutProps();var n,r,i=this.blockMarks[e]||(this.blockMarks[e]=[]),o=this.blocks[e]||(this.blocks[e]=[]);t&&(n=this.buffer.mark(),t(this.model),r=this.buffer.fromMark(n),r.length&&!this.isExtending&&o.push(r),r.length&&this.isExtending&&o.unshift(r)),i.push(this.buffer.mark("block-"+e))},r._handlePrependAppend=function(e,t,n){this._ensureLayoutProps();var r,i=this.buffer.mark(),o=this[e],s=o[t]||(o[t]=[]);n(this.model),r=this.buffer.fromMark(i),s.push(r)},r.append=function(e,t){this._handlePrependAppend("appends",e,t)},r.prepend=function(e,t){this._handlePrependAppend("prepends",e,t)}}(),n.__express=n.renderFile,n}({version:"0.7.9-7"}))},{fs:1,path:3}],vash:[function(e,t){t.exports=e("LIlkRh")},{}]},{},[]),require=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);throw Error("Cannot find module '"+s+"'")}var h=n[s]={exports:{}};t[s][0].call(h.exports,function(e){var n=t[s][1][e];return i(n?n:e)},h,h.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;r.length>s;s++)i(r[s]);return i}({1:[function(e,t,n){function r(e,t,n){if(!(this instanceof r))return new r(e,t,n);var i=typeof e;if("base64"===t&&"string"===i)for(e=M(e);0!==e.length%4;)e+="=";var o;if("number"===i)o=N(e);else if("string"===i)o=r.byteLength(e,t);else{if("object"!==i)throw Error("First argument needs to be a number, array or string.");o=N(e.length)}var s;r._useTypedArrays?s=j(new Uint8Array(o)):(s=this,s.length=o,s._isBuffer=!0);var a;if(r._useTypedArrays&&"function"==typeof Uint8Array&&e instanceof Uint8Array)s._set(e);else if(C(e))for(a=0;o>a;a++)s[a]=r.isBuffer(e)?e.readUInt8(a):e[a];else if("string"===i)s.write(e,0,t);else if("number"===i&&!r._useTypedArrays&&!n)for(a=0;o>a;a++)s[a]=0;return s}function i(e,t,n,i){n=Number(n)||0;var o=e.length-n;i?(i=Number(i),i>o&&(i=o)):i=o;var s=t.length;W(0===s%2,"Invalid hex string"),i>s/2&&(i=s/2);for(var a=0;i>a;a++){var u=parseInt(t.substr(2*a,2),16);W(!isNaN(u),"Invalid hex string"),e[n+a]=u}return r._charsWritten=2*a,a}function o(e,t,n,i){var o=r._charsWritten=U(R(t),e,n,i);return o}function s(e,t,n,i){var o=r._charsWritten=U(B(t),e,n,i);return o}function a(e,t,n,r){return s(e,t,n,r)}function u(e,t,n,i){var o=r._charsWritten=U(P(t),e,n,i);return o}function h(e,t,n,i){var o=r._charsWritten=U(D(t),e,n,i);return o}function l(e,t,n){return 0===t&&n===e.length?G.fromByteArray(e):G.fromByteArray(e.slice(t,n))}function c(e,t,n){var r="",i="";n=Math.min(e.length,n);for(var o=t;n>o;o++)127>=e[o]?(r+=q(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return r+q(i)}function f(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;i++)r+=String.fromCharCode(e[i]);return r}function p(e,t,n){return f(e,t,n)}function d(e,t,n){var r=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=t;n>o;o++)i+=O(e[o]);return i}function g(e,t,n){for(var r=e.slice(t,n),i="",o=0;r.length>o;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function m(e,t,n,r){r||(W("boolean"==typeof n,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(e.length>t+1,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o;return n?(o=e[t],i>t+1&&(o|=e[t+1]<<8)):(o=e[t]<<8,i>t+1&&(o|=e[t+1])),o}}function v(e,t,n,r){r||(W("boolean"==typeof n,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(e.length>t+3,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o;return n?(i>t+2&&(o=e[t+2]<<16),i>t+1&&(o|=e[t+1]<<8),o|=e[t],i>t+3&&(o+=e[t+3]<<24>>>0)):(i>t+1&&(o=e[t+1]<<16),i>t+2&&(o|=e[t+2]<<8),i>t+3&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}}function y(e,t,n,r){r||(W("boolean"==typeof n,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(e.length>t+1,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o=m(e,t,n,!0),s=32768&o;return s?-1*(65535-o+1):o}}function b(e,t,n,r){r||(W("boolean"==typeof n,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(e.length>t+3,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o=v(e,t,n,!0),s=2147483648&o;return s?-1*(4294967295-o+1):o}}function w(e,t,n,r){return r||(W("boolean"==typeof n,"missing or invalid endian"),W(e.length>t+3,"Trying to read beyond buffer length")),$.read(e,t,n,23,4)}function E(e,t,n,r){return r||(W("boolean"==typeof n,"missing or invalid endian"),W(e.length>t+7,"Trying to read beyond buffer length")),$.read(e,t,n,52,8)}function _(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(e.length>n+1,"trying to write beyond buffer length"),F(t,65535));var o=e.length;if(!(n>=o))for(var s=0,a=Math.min(o-n,2);a>s;s++)e[n+s]=(t&255<<8*(r?s:1-s))>>>8*(r?s:1-s)}function k(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(e.length>n+3,"trying to write beyond buffer length"),F(t,4294967295));var o=e.length;if(!(n>=o))for(var s=0,a=Math.min(o-n,4);a>s;s++)e[n+s]=255&t>>>8*(r?s:3-s)}function x(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(e.length>n+1,"Trying to write beyond buffer length"),H(t,32767,-32768));var o=e.length;n>=o||(t>=0?_(e,t,n,r,i):_(e,65535+t+1,n,r,i))}function A(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(e.length>n+3,"Trying to write beyond buffer length"),H(t,2147483647,-2147483648));var o=e.length;n>=o||(t>=0?k(e,t,n,r,i):k(e,4294967295+t+1,n,r,i))}function L(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(e.length>n+3,"Trying to write beyond buffer length"),z(t,3.4028234663852886e38,-3.4028234663852886e38));var o=e.length;n>=o||$.write(e,t,n,r,23,4)}function S(e,t,n,r,i){i||(W(void 0!==t&&null!==t,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==n&&null!==n,"missing offset"),W(e.length>n+7,"Trying to write beyond buffer length"),z(t,1.7976931348623157e308,-1.7976931348623157e308));
var o=e.length;n>=o||$.write(e,t,n,r,52,8)}function M(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function j(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=K.get,e.set=K.set,e.write=K.write,e.toString=K.toString,e.toLocaleString=K.toString,e.toJSON=K.toJSON,e.copy=K.copy,e.slice=K.slice,e.readUInt8=K.readUInt8,e.readUInt16LE=K.readUInt16LE,e.readUInt16BE=K.readUInt16BE,e.readUInt32LE=K.readUInt32LE,e.readUInt32BE=K.readUInt32BE,e.readInt8=K.readInt8,e.readInt16LE=K.readInt16LE,e.readInt16BE=K.readInt16BE,e.readInt32LE=K.readInt32LE,e.readInt32BE=K.readInt32BE,e.readFloatLE=K.readFloatLE,e.readFloatBE=K.readFloatBE,e.readDoubleLE=K.readDoubleLE,e.readDoubleBE=K.readDoubleBE,e.writeUInt8=K.writeUInt8,e.writeUInt16LE=K.writeUInt16LE,e.writeUInt16BE=K.writeUInt16BE,e.writeUInt32LE=K.writeUInt32LE,e.writeUInt32BE=K.writeUInt32BE,e.writeInt8=K.writeInt8,e.writeInt16LE=K.writeInt16LE,e.writeInt16BE=K.writeInt16BE,e.writeInt32LE=K.writeInt32LE,e.writeInt32BE=K.writeInt32BE,e.writeFloatLE=K.writeFloatLE,e.writeFloatBE=K.writeFloatBE,e.writeDoubleLE=K.writeDoubleLE,e.writeDoubleBE=K.writeDoubleBE,e.fill=K.fill,e.inspect=K.inspect,e.toArrayBuffer=K.toArrayBuffer,e}function I(e,t,n){return"number"!=typeof e?n:(e=~~e,e>=t?t:e>=0?e:(e+=t,e>=0?e:0))}function N(e){return e=~~Math.ceil(+e),0>e?0:e}function T(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function C(e){return T(e)||r.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}function O(e){return 16>e?"0"+e.toString(16):e.toString(16)}function R(e){for(var t=[],n=0;e.length>n;n++){var r=e.charCodeAt(n);if(127>=r)t.push(e.charCodeAt(n));else{var i=n;r>=55296&&57343>=r&&n++;for(var o=encodeURIComponent(e.slice(i,n+1)).substr(1).split("%"),s=0;o.length>s;s++)t.push(parseInt(o[s],16))}}return t}function B(e){for(var t=[],n=0;e.length>n;n++)t.push(255&e.charCodeAt(n));return t}function D(e){for(var t,n,r,i=[],o=0;e.length>o;o++)t=e.charCodeAt(o),n=t>>8,r=t%256,i.push(r),i.push(n);return i}function P(e){return G.toByteArray(e)}function U(e,t,n,r){for(var i=0;r>i&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function q(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}function F(e,t){W("number"==typeof e,"cannot write a non-number as a number"),W(e>=0,"specified a negative value for writing an unsigned value"),W(t>=e,"value is larger than maximum value for type"),W(Math.floor(e)===e,"value has a fractional component")}function H(e,t,n){W("number"==typeof e,"cannot write a non-number as a number"),W(t>=e,"value larger than maximum allowed value"),W(e>=n,"value smaller than minimum allowed value"),W(Math.floor(e)===e,"value has a fractional component")}function z(e,t,n){W("number"==typeof e,"cannot write a non-number as a number"),W(t>=e,"value larger than maximum allowed value"),W(e>=n,"value smaller than minimum allowed value")}function W(e,t){if(!e)throw Error(t||"Failed assertion")}var G=e("base64-js"),$=e("ieee754");n.Buffer=r,n.SlowBuffer=r,n.INSPECT_MAX_BYTES=50,r.poolSize=8192,r._useTypedArrays=function(){if("undefined"==typeof Uint8Array||"undefined"==typeof ArrayBuffer)return!1;try{var e=new Uint8Array(0);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(t){return!1}}(),r.isEncoding=function(e){switch((e+"").toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.isBuffer=function(e){return!(null===e||void 0===e||!e._isBuffer)},r.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=R(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=P(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw Error("Unknown encoding")}return n},r.concat=function(e,t){if(W(T(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new r(0);if(1===e.length)return e[0];var n;if("number"!=typeof t)for(t=0,n=0;e.length>n;n++)t+=e[n].length;var i=new r(t),o=0;for(n=0;e.length>n;n++){var s=e[n];s.copy(i,o),o+=s.length}return i},r.prototype.write=function(e,t,n,r){if(isFinite(t))isFinite(n)||(r=n,n=void 0);else{var l=r;r=t,t=n,n=l}t=Number(t)||0;var c=this.length-t;n?(n=Number(n),n>c&&(n=c)):n=c,r=((r||"utf8")+"").toLowerCase();var f;switch(r){case"hex":f=i(this,e,t,n);break;case"utf8":case"utf-8":f=o(this,e,t,n);break;case"ascii":f=s(this,e,t,n);break;case"binary":f=a(this,e,t,n);break;case"base64":f=u(this,e,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":f=h(this,e,t,n);break;default:throw Error("Unknown encoding")}return f},r.prototype.toString=function(e,t,n){var r=this;if(e=((e||"utf8")+"").toLowerCase(),t=Number(t)||0,n=void 0!==n?Number(n):n=r.length,n===t)return"";var i;switch(e){case"hex":i=d(r,t,n);break;case"utf8":case"utf-8":i=c(r,t,n);break;case"ascii":i=f(r,t,n);break;case"binary":i=p(r,t,n);break;case"base64":i=l(r,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=g(r,t,n);break;default:throw Error("Unknown encoding")}return i},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},r.prototype.copy=function(e,t,n,r){var i=this;if(n||(n=0),r||0===r||(r=this.length),t||(t=0),r!==n&&0!==e.length&&0!==i.length){W(r>=n,"sourceEnd < sourceStart"),W(t>=0&&e.length>t,"targetStart out of bounds"),W(n>=0&&i.length>n,"sourceStart out of bounds"),W(r>=0&&i.length>=r,"sourceEnd out of bounds"),r>this.length&&(r=this.length),r-n>e.length-t&&(r=e.length-t+n);for(var o=0;r-n>o;o++)e[o+t]=this[o+n]}},r.prototype.slice=function(e,t){var n=this.length;if(e=I(e,n,0),t=I(t,n,n),r._useTypedArrays)return j(this.subarray(e,t));for(var i=t-e,o=new r(i,void 0,!0),s=0;i>s;s++)o[s]=this[s+e];return o},r.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},r.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},r.prototype.readUInt8=function(e,t){return t||(W(void 0!==e&&null!==e,"missing offset"),W(this.length>e,"Trying to read beyond buffer length")),e>=this.length?void 0:this[e]},r.prototype.readUInt16LE=function(e,t){return m(this,e,!0,t)},r.prototype.readUInt16BE=function(e,t){return m(this,e,!1,t)},r.prototype.readUInt32LE=function(e,t){return v(this,e,!0,t)},r.prototype.readUInt32BE=function(e,t){return v(this,e,!1,t)},r.prototype.readInt8=function(e,t){if(t||(W(void 0!==e&&null!==e,"missing offset"),W(this.length>e,"Trying to read beyond buffer length")),!(e>=this.length)){var n=128&this[e];return n?-1*(255-this[e]+1):this[e]}},r.prototype.readInt16LE=function(e,t){return y(this,e,!0,t)},r.prototype.readInt16BE=function(e,t){return y(this,e,!1,t)},r.prototype.readInt32LE=function(e,t){return b(this,e,!0,t)},r.prototype.readInt32BE=function(e,t){return b(this,e,!1,t)},r.prototype.readFloatLE=function(e,t){return w(this,e,!0,t)},r.prototype.readFloatBE=function(e,t){return w(this,e,!1,t)},r.prototype.readDoubleLE=function(e,t){return E(this,e,!0,t)},r.prototype.readDoubleBE=function(e,t){return E(this,e,!1,t)},r.prototype.writeUInt8=function(e,t,n){n||(W(void 0!==e&&null!==e,"missing value"),W(void 0!==t&&null!==t,"missing offset"),W(this.length>t,"trying to write beyond buffer length"),F(e,255)),t>=this.length||(this[t]=e)},r.prototype.writeUInt16LE=function(e,t,n){_(this,e,t,!0,n)},r.prototype.writeUInt16BE=function(e,t,n){_(this,e,t,!1,n)},r.prototype.writeUInt32LE=function(e,t,n){k(this,e,t,!0,n)},r.prototype.writeUInt32BE=function(e,t,n){k(this,e,t,!1,n)},r.prototype.writeInt8=function(e,t,n){n||(W(void 0!==e&&null!==e,"missing value"),W(void 0!==t&&null!==t,"missing offset"),W(this.length>t,"Trying to write beyond buffer length"),H(e,127,-128)),t>=this.length||(e>=0?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},r.prototype.writeInt16LE=function(e,t,n){x(this,e,t,!0,n)},r.prototype.writeInt16BE=function(e,t,n){x(this,e,t,!1,n)},r.prototype.writeInt32LE=function(e,t,n){A(this,e,t,!0,n)},r.prototype.writeInt32BE=function(e,t,n){A(this,e,t,!1,n)},r.prototype.writeFloatLE=function(e,t,n){L(this,e,t,!0,n)},r.prototype.writeFloatBE=function(e,t,n){L(this,e,t,!1,n)},r.prototype.writeDoubleLE=function(e,t,n){S(this,e,t,!0,n)},r.prototype.writeDoubleBE=function(e,t,n){S(this,e,t,!1,n)},r.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),"string"==typeof e&&(e=e.charCodeAt(0)),W("number"==typeof e&&!isNaN(e),"value is not a number"),W(n>=t,"end < start"),n!==t&&0!==this.length){W(t>=0&&this.length>t,"start out of bounds"),W(n>=0&&this.length>=n,"end out of bounds");for(var r=t;n>r;r++)this[r]=e}},r.prototype.inspect=function(){for(var e=[],t=this.length,r=0;t>r;r++)if(e[r]=O(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},r.prototype.toArrayBuffer=function(){if("function"==typeof Uint8Array){if(r._useTypedArrays)return new r(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;n>t;t+=1)e[t]=this[t];return e.buffer}throw Error("Buffer.toArrayBuffer not supported in this browser")};var K=r.prototype},{"base64-js":2,ieee754:3}],2:[function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(){"use strict";function e(e){var t=e.charCodeAt(0);return t===s?62:t===a?63:u>t?-1:u+10>t?t-u+26+26:l+26>t?t-l:h+26>t?t-h+26:void 0}function r(t){function n(e){h[c++]=e}var r,i,s,a,u,h;if(t.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var l=t.length;u="="===t.charAt(l-2)?2:"="===t.charAt(l-1)?1:0,h=new o(3*t.length/4-u),s=u>0?t.length-4:t.length;var c=0;for(r=0,i=0;s>r;r+=4,i+=3)a=e(t.charAt(r))<<18|e(t.charAt(r+1))<<12|e(t.charAt(r+2))<<6|e(t.charAt(r+3)),n((16711680&a)>>16),n((65280&a)>>8),n(255&a);return 2===u?(a=e(t.charAt(r))<<2|e(t.charAt(r+1))>>4,n(255&a)):1===u&&(a=e(t.charAt(r))<<10|e(t.charAt(r+1))<<4|e(t.charAt(r+2))>>2,n(255&a>>8),n(255&a)),h}function i(e){function t(e){return n.charAt(e)}function r(e){return t(63&e>>18)+t(63&e>>12)+t(63&e>>6)+t(63&e)}var i,o,s,a=e.length%3,u="";for(i=0,s=e.length-a;s>i;i+=3)o=(e[i]<<16)+(e[i+1]<<8)+e[i+2],u+=r(o);switch(a){case 1:o=e[e.length-1],u+=t(o>>2),u+=t(63&o<<4),u+="==";break;case 2:o=(e[e.length-2]<<8)+e[e.length-1],u+=t(o>>10),u+=t(63&o>>4),u+=t(63&o<<2),u+="="}return u}var o="undefined"!=typeof Uint8Array?Uint8Array:Array;"0".charCodeAt(0);var s="+".charCodeAt(0),a="/".charCodeAt(0),u="0".charCodeAt(0),h="a".charCodeAt(0),l="A".charCodeAt(0);t.exports.toByteArray=r,t.exports.fromByteArray=i})()},{}],3:[function(e,t,n){n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,h=u>>1,l=-7,c=n?i-1:0,f=n?-1:1,p=e[t+c];for(c+=f,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+e[t+c],c+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+c],c+=f,l-=8);if(0===o)o=1-h;else{if(o===u)return s?0/0:1/0*(p?-1:1);s+=Math.pow(2,r),o-=h}return(p?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,a,u,h=8*o-i-1,l=(1<<h)-1,c=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),1>t*(u=Math.pow(2,-s))&&(s--,u*=2),t+=s+c>=1?f/u:f*Math.pow(2,1-c),t*u>=2&&(s++,u/=2),s+c>=l?(a=0,s=l):s+c>=1?(a=(t*u-1)*Math.pow(2,i),s+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;e[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,h+=i;h>0;e[n+p]=255&s,p+=d,s/=256,h-=8);e[n+p-d]|=128*g}},{}],4:[function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!i(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,i,a,u,h;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length))throw t=arguments[1],t instanceof Error?t:TypeError('Uncaught, unspecified "error" event.');if(n=this._events[e],s(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(i=arguments.length,a=Array(i-1),u=1;i>u;u++)a[u-1]=arguments[u];n.apply(this,a)}else if(o(n)){for(i=arguments.length,a=Array(i-1),u=1;i>u;u++)a[u-1]=arguments[u];for(h=n.slice(),i=h.length,u=0;i>u;u++)h[u].apply(this,a)}return!0},n.prototype.addListener=function(e,t){var i;if(!r(t))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned){var i;i=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,i&&i>0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),console.trace())}return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,s,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],s=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(a=s;a-->0;)if(n[a]===t||n[a].listener&&n[a].listener===t){i=a;break}if(0>i)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.listenerCount=function(e,t){var n;return n=e._events&&e._events[t]?r(e._events[t])?1:e._events[t].length:0}},{}],5:[function(e,t){t.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],6:[function(e,t){var n=t.exports={};n.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;if((t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.binding=function(){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw Error("process.chdir is not supported")}},{}],7:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;e.length>r;r++)t(e[r],r,e)&&n.push(e[r]);return n}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return i.exec(e).slice(1)};n.resolve=function(){for(var n="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(n=s+"/"+n,i="/"===s.charAt(0))}return n=t(r(n.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(e){var i=n.isAbsolute(e),o="/"===s(e,-1);return e=t(r(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;e.length>t&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),o=r(t.split("/")),s=Math.min(i.length,o.length),a=s,u=0;s>u;u++)if(i[u]!==o[u]){a=u;break}for(var h=[],u=a;i.length>u;u++)h.push("..");return h=h.concat(o.slice(a)),h.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=o(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=o(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return o(e)[3]};var s="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return 0>t&&(t=e.length+t),e.substr(t,n)}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6}],8:[function(e,t){function n(e){return this instanceof n?(s.call(this,e),a.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",r),void 0):new n(e)}function r(){if(!this.allowHalfOpen&&!this._writableState.ended){var e=this;o(function(){e.end()})}}t.exports=n;var i=e("inherits"),o=e("process/browser.js").nextTick,s=e("./readable.js"),a=e("./writable.js");i(n,s),n.prototype.write=a.prototype.write,n.prototype.end=a.prototype.end,n.prototype._write=a.prototype._write},{"./readable.js":12,"./writable.js":14,inherits:5,"process/browser.js":10}],9:[function(e,t){function n(){r.call(this)}t.exports=n;var r=e("events").EventEmitter,i=e("inherits");i(n,r),n.Readable=e("./readable.js"),n.Writable=e("./writable.js"),n.Duplex=e("./duplex.js"),n.Transform=e("./transform.js"),n.PassThrough=e("./passthrough.js"),n.Stream=n,n.prototype.pipe=function(e,t){function n(t){e.writable&&!1===e.write(t)&&h.pause&&h.pause()}function i(){h.readable&&h.resume&&h.resume()}function o(){l||(l=!0,e.end())}function s(){l||(l=!0,"function"==typeof e.destroy&&e.destroy())}function a(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){h.removeListener("data",n),e.removeListener("drain",i),h.removeListener("end",o),h.removeListener("close",s),h.removeListener("error",a),e.removeListener("error",a),h.removeListener("end",u),h.removeListener("close",u),e.removeListener("close",u)}var h=this;h.on("data",n),e.on("drain",i),e._isStdio||t&&t.end===!1||(h.on("end",o),h.on("close",s));var l=!1;return h.on("error",a),e.on("error",a),h.on("end",u),h.on("close",u),e.on("close",u),e.emit("pipe",h),e}},{"./duplex.js":8,"./passthrough.js":11,"./readable.js":12,"./transform.js":13,"./writable.js":14,events:4,inherits:5}],10:[function(e,t){t.exports=e(6)},{}],11:[function(e,t){function n(e){return this instanceof n?(r.call(this,e),void 0):new n(e)}t.exports=n;var r=e("./transform.js"),i=e("inherits");i(n,r),n.prototype._transform=function(e,t,n){n(null,e)}},{"./transform.js":13,inherits:5}],12:[function(e,t){(function(n){function r(t){t=t||{};var n=t.highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(k||(k=e("string_decoder").StringDecoder),this.decoder=new k(t.encoding),this.encoding=t.encoding)}function i(e){return this instanceof i?(this._readableState=new r(e,this),this.readable=!0,A.call(this),void 0):new i(e)}function o(e,t,n,r,i){var o=h(t,n);if(o)e.emit("error",o);else if(null===n||void 0===n)t.reading=!1,t.ended||l(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var a=Error("stream.unshift() after end event");e.emit("error",a)}else!t.decoder||i||r||(n=t.decoder.write(n)),t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):(t.reading=!1,t.buffer.push(n)),t.needReadable&&c(e),p(e,t);else i||(t.reading=!1);return s(t)}function s(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function a(e){if(e>=j)e=j;else{e--;for(var t=1;32>t;t<<=1)e|=e>>t;e++}return e}function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||null===e?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:0>=e?0:(e>t.highWaterMark&&(t.highWaterMark=a(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function h(e,t){var n=null;return L.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||n||(n=new TypeError("Invalid non-string/buffer chunk")),n}function l(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?c(e):w(e)}function c(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?S(function(){f(e)}):f(e))}function f(e){e.emit("readable")}function p(e,t){t.readingMore||(t.readingMore=!0,S(function(){d(e,t)}))}function d(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function g(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&m(e)}}function m(e){function t(e){var t=e.write(n);!1===t&&r.awaitDrain++}var n,r=e._readableState;for(r.awaitDrain=0;r.pipesCount&&null!==(n=e.read());)if(1===r.pipesCount?t(r.pipes,0,null):E(r.pipes,t),e.emit("data",n),r.awaitDrain>0)return;return 0===r.pipesCount?(r.flowing=!1,x.listenerCount(e,"data")>0&&y(e),void 0):(r.ranOut=!0,void 0)}function v(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function y(e,t){var n=e._readableState;if(n.flowing)throw Error("Cannot switch to old mode now.");var r=t||!1,i=!1;e.readable=!0,e.pipe=A.prototype.pipe,e.on=e.addListener=A.prototype.on,e.on("readable",function(){i=!0;for(var t;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)}),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,i?S(function(){e.emit("readable")}):this.read(0),this.emit("resume")},e.emit("readable")}function b(e,t){var n,r=t.buffer,i=t.length,o=!!t.decoder,s=!!t.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(s)n=r.shift();else if(!e||e>=i)n=o?r.join(""):L.concat(r,i),r.length=0;else if(r[0].length>e){var a=r[0];n=a.slice(0,e),r[0]=a.slice(e)}else if(e===r[0].length)n=r.shift();else{n=o?"":new L(e);for(var u=0,h=0,l=r.length;l>h&&e>u;h++){var a=r[0],c=Math.min(e-u,a.length);o?n+=a.slice(0,c):a.copy(n,u,0,c),a.length>c?r[0]=a.slice(c):r.shift(),u+=c}}return n}function w(e){var t=e._readableState;if(t.length>0)throw Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,S(function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}))}function E(e,t){for(var n=0,r=e.length;r>n;n++)t(e[n],n)}function _(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1}t.exports=i,i.ReadableState=r;var k,x=e("events").EventEmitter,A=e("./index.js"),L=e("buffer").Buffer,S=e("process/browser.js").nextTick,M=e("inherits");M(i,A),i.prototype.push=function(e,t){var n=this._readableState;return"string"!=typeof e||n.objectMode||(t=t||n.defaultEncoding,t!==n.encoding&&(e=new L(e,t),t="")),o(this,n,e,t,!1)},i.prototype.unshift=function(e){var t=this._readableState;return o(this,t,e,"",!0)},i.prototype.setEncoding=function(t){k||(k=e("string_decoder").StringDecoder),this._readableState.decoder=new k(t),this._readableState.encoding=t};var j=8388608;i.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return c(this),null;if(e=u(e,t),0===e&&t.ended)return 0===t.length&&w(this),null;var r=t.needReadable;t.length-e<=t.highWaterMark&&(r=!0),(t.ended||t.reading)&&(r=!1),r&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),r&&!t.reading&&(e=u(n,t));var i;return i=e>0?b(e,t):null,null===i&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&w(this),i},i.prototype._read=function(){this.emit("error",Error("not implemented"))},i.prototype.pipe=function(e,t){function r(e){e===l&&o()}function i(){e.end()}function o(){e.removeListener("close",a),e.removeListener("finish",u),e.removeListener("drain",d),e.removeListener("error",s),e.removeListener("unpipe",r),l.removeListener("end",i),l.removeListener("end",o),(!e._writableState||e._writableState.needDrain)&&d()}function s(t){h(),0===y&&0===x.listenerCount(e,"error")&&e.emit("error",t)}function a(){e.removeListener("finish",u),h()}function u(){e.removeListener("close",a),h()}function h(){l.unpipe(e)}var l=this,c=this._readableState;switch(c.pipesCount){case 0:c.pipes=e;break;case 1:c.pipes=[c.pipes,e];break;default:c.pipes.push(e)}c.pipesCount+=1;var f=(!t||t.end!==!1)&&e!==n.stdout&&e!==n.stderr,p=f?i:o;c.endEmitted?S(p):l.once("end",p),e.on("unpipe",r);var d=g(l);e.on("drain",d);var y=x.listenerCount(e,"error");return e.once("error",s),e.once("close",a),e.once("finish",u),e.emit("pipe",l),c.flowing||(this.on("readable",v),c.flowing=!0,S(function(){m(l)})),e},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",v),t.flowing=!1;for(var i=0;r>i;i++)n[i].emit("unpipe",this);return this}var i=_(t.pipes,e);return-1===i?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},i.prototype.on=function(e,t){var n=A.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||y(this),"readable"===e&&this.readable){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&c(this,r):this.read(0))}return n},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){y(this),this.read(0),this.emit("resume")},i.prototype.pause=function(){y(this,!0),this.emit("pause")},i.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;e.on("end",function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){if(t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)){var o=r.push(i);o||(n=!0,e.pause())}});for(var i in e)"function"==typeof e[i]&&this[i]===void 0&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return E(o,function(t){e.on(t,function(e){return r.emit.apply(r,t,e)})}),r._read=function(){n&&(n=!1,e.resume())},r},i._fromList=b}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"./index.js":9,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,buffer:1,events:4,inherits:5,"process/browser.js":10,string_decoder:15}],13:[function(e,t){function n(e,t){this.afterTransform=function(e,n){return r(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function r(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}function i(e){if(!(this instanceof i))return new i(e);s.call(this,e),this._transformState=new n(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(e){o(t,e)}):o(t)})}function o(e,t){if(t)return e.emit("error",t);var n=e._writableState;e._readableState;var r=e._transformState;if(n.length)throw Error("calling transform done when ws.length != 0");if(r.transforming)throw Error("calling transform done when still transforming");return e.push(null)}t.exports=i;var s=e("./duplex.js"),a=e("inherits");a(i,s),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},i.prototype._transform=function(){throw Error("not implemented")},i.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},i.prototype._read=function(){var e=this._transformState;e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0}},{"./duplex.js":8,inherits:5}],14:[function(e,t){function n(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function r(e,t){e=e||{};var n=e.highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var r=e.decodeStrings===!1;this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){f(t,e)},this.writecb=null,this.writelen=0,this.buffer=[]}function i(e){return this instanceof i||this instanceof _.Duplex?(this._writableState=new r(e,this),this.writable=!0,_.call(this),void 0):new i(e)}function o(e,t,n){var r=Error("write after end");e.emit("error",r),k(function(){n(r)})}function s(e,t,n,r){var i=!0;if(!x.isBuffer(n)&&"string"!=typeof n&&null!==n&&void 0!==n&&!t.objectMode){var o=new TypeError("Invalid non-string/buffer chunk");e.emit("error",o),k(function(){r(o)}),i=!1}return i}function a(e,t,n){return e.objectMode||e.decodeStrings===!1||"string"!=typeof t||(t=new x(t,n)),t}function u(e,t,r,i,o){r=a(t,r,i);
var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;return t.needDrain=!u,t.writing?t.buffer.push(new n(r,i,o)):h(e,t,s,r,i,o),u}function h(e,t,n,r,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1}function l(e,t,n,r,i){n?k(function(){i(r)}):i(r),e.emit("error",r)}function c(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function f(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(c(n),t)l(e,n,r,t,i);else{var o=m(e,n);o||n.bufferProcessing||!n.buffer.length||g(e,n),r?k(function(){p(e,n,o,i)}):p(e,n,o,i)}}function p(e,t,n,r){n||d(e,t),r(),n&&v(e,t)}function d(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function g(e,t){t.bufferProcessing=!0;for(var n=0;t.buffer.length>n;n++){var r=t.buffer[n],i=r.chunk,o=r.encoding,s=r.callback,a=t.objectMode?1:i.length;if(h(e,t,a,i,o,s),t.writing){n++;break}}t.bufferProcessing=!1,t.buffer.length>n?t.buffer=t.buffer.slice(n):t.buffer.length=0}function m(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function v(e,t){var n=m(e,t);return n&&(t.finished=!0,e.emit("finish")),n}function y(e,t,n){t.ending=!0,v(e,t),n&&(t.finished?k(n):e.once("finish",n)),t.ended=!0}t.exports=i,i.WritableState=r;var b="undefined"!=typeof Uint8Array?function(e){return e instanceof Uint8Array}:function(e){return e&&e.constructor&&"Uint8Array"===e.constructor.name},w="undefined"!=typeof ArrayBuffer?function(e){return e instanceof ArrayBuffer}:function(e){return e&&e.constructor&&"ArrayBuffer"===e.constructor.name},E=e("inherits"),_=e("./index.js"),k=e("process/browser.js").nextTick,x=e("buffer").Buffer;E(i,_),i.prototype.pipe=function(){this.emit("error",Error("Cannot pipe. Not readable."))},i.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return"function"==typeof t&&(n=t,t=null),!x.isBuffer(e)&&b(e)&&(e=new x(e)),w(e)&&"undefined"!=typeof Uint8Array&&(e=new x(new Uint8Array(e))),x.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=function(){}),r.ended?o(this,r,n):s(this,r,e,n)&&(i=u(this,r,e,t,n)),i},i.prototype._write=function(e,t,n){n(Error("not implemented"))},i.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),e!==void 0&&null!==e&&this.write(e,t),r.ending||r.finished||y(this,r,n)}},{"./index.js":9,buffer:1,inherits:5,"process/browser.js":10}],15:[function(e,t,n){function r(e){if(e&&!a.isEncoding(e))throw Error("Unknown encoding: "+e)}function i(e){return e.toString(this.encoding)}function o(e){var t=this.charReceived=e.length%2;return this.charLength=t?2:0,t}function s(e){var t=this.charReceived=e.length%3;return this.charLength=t?3:0,t}var a=e("buffer").Buffer,u=n.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),r(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return this.write=i,void 0}this.charBuffer=new a(6),this.charReceived=0,this.charLength=0};u.prototype.write=function(e){for(var t="",n=0;this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,n,r),this.charReceived+=r-n,n=r,this.charReceived<this.charLength)return"";t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var i=t.charCodeAt(t.length-1);if(!(i>=55296&&56319>=i)){if(this.charReceived=this.charLength=0,r==e.length)return t;e=e.slice(r,e.length);break}this.charLength+=this.surrogateSize,t=""}var o=this.detectIncompleteChar(e),s=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-o,s),this.charReceived=o,s-=o),t+=e.toString(this.encoding,0,s);var s=t.length-1,i=t.charCodeAt(s);if(i>=55296&&56319>=i){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),this.charBuffer.write(t.charAt(t.length-1),this.encoding),t.substring(0,s)}return t},u.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&6==n>>5){this.charLength=2;break}if(2>=t&&14==n>>4){this.charLength=3;break}if(3>=t&&30==n>>3){this.charLength=4;break}}return t},u.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},{buffer:1}],16:[function(e,t){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],17:[function(e,t,n){(function(t,r){function i(e,t){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(t)?r.showHidden=t:t&&n._extend(r,t),E(r.showHidden)&&(r.showHidden=!1),E(r.depth)&&(r.depth=2),E(r.colors)&&(r.colors=!1),E(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),u(r,e,r.depth)}function o(e,t){var n=i.styles[t];return n?"["+i.colors[n][0]+"m"+e+"["+i.colors[n][1]+"m":e}function s(e){return e}function a(e){var t={};return e.forEach(function(e){t[e]=!0}),t}function u(e,t,r){if(e.customInspect&&t&&L(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return b(i)||(i=u(e,i,r)),i}var o=h(e,t);if(o)return o;var s=Object.keys(t),g=a(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),A(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return l(t);if(0===s.length){if(L(t)){var m=t.name?": "+t.name:"";return e.stylize("[Function"+m+"]","special")}if(_(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(x(t))return e.stylize(Date.prototype.toString.call(t),"date");if(A(t))return l(t)}var v="",y=!1,w=["{","}"];if(d(t)&&(y=!0,w=["[","]"]),L(t)){var E=t.name?": "+t.name:"";v=" [Function"+E+"]"}if(_(t)&&(v=" "+RegExp.prototype.toString.call(t)),x(t)&&(v=" "+Date.prototype.toUTCString.call(t)),A(t)&&(v=" "+l(t)),0===s.length&&(!y||0==t.length))return w[0]+v+w[1];if(0>r)return _(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var k;return k=y?c(e,t,r,g,s):s.map(function(n){return f(e,t,r,g,n,y)}),e.seen.pop(),p(k,v,w)}function h(e,t){if(E(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function c(e,t,n,r,i){for(var o=[],s=0,a=t.length;a>s;++s)N(t,s+"")?o.push(f(e,t,n,r,s+"",!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(f(e,t,n,r,i,!0))}),o}function f(e,t,n,r,i,o){var s,a,h;if(h=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},h.get?a=h.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):h.set&&(a=e.stylize("[Setter]","special")),N(r,i)||(s="["+i+"]"),a||(0>e.seen.indexOf(h.value)?(a=m(n)?u(e,h.value,null):u(e,h.value,n-1),a.indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),E(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e,t,n){var r=0,i=e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function d(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return null==e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function E(e){return void 0===e}function _(e){return k(e)&&"[object RegExp]"===M(e)}function k(e){return"object"==typeof e&&null!==e}function x(e){return k(e)&&"[object Date]"===M(e)}function A(e){return k(e)&&("[object Error]"===M(e)||e instanceof Error)}function L(e){return"function"==typeof e}function S(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||e===void 0}function M(e){return Object.prototype.toString.call(e)}function j(e){return 10>e?"0"+e.toString(10):e.toString(10)}function I(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var T=/%[sdj%]/g;n.format=function(e){if(!b(e)){for(var t=[],n=0;arguments.length>n;n++)t.push(i(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,s=(e+"").replace(T,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return r[n++]+"";case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),a=r[n];o>n;a=r[++n])s+=m(a)||!k(a)?" "+a:" "+i(a);return s},n.deprecate=function(e,i){function o(){if(!s){if(t.throwDeprecation)throw Error(i);t.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}if(E(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(t.noDeprecation===!0)return e;var s=!1;return o};var C,O={};n.debuglog=function(e){if(E(C)&&(C=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!O[e])if(RegExp("\\b"+e+"\\b","i").test(C)){var r=t.pid;O[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else O[e]=function(){};return O[e]},n.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=d,n.isBoolean=g,n.isNull=m,n.isNullOrUndefined=v,n.isNumber=y,n.isString=b,n.isSymbol=w,n.isUndefined=E,n.isRegExp=_,n.isObject=k,n.isDate=x,n.isError=A,n.isFunction=L,n.isPrimitive=S,n.isBuffer=e("./support/isBuffer");var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",I(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!k(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":16,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,inherits:5}],tape:[function(e,t){t.exports=e("ttTIws")},{}],ttTIws:[function(e,t,n){(function(r){function i(e){e||(e={});var t=o({autoclose:s(e.autoclose,!1)}),n=t.createStream({objectMode:e.objectMode}),i=n.pipe(e.stream||a());c&&i.on("error",function(){t._exitCode=1});var u=!1;if(n.on("end",function(){u=!0}),e.exit===!1)return t;if(!c||!f)return t;var h;return r.on("uncaughtException",function(e){if(!e||"EPIPE"!==e.code||"EPIPE"!==e.errno||"write"!==e.syscall)throw h=e,e}),r.on("exit",function(e){if(!h){if(!u)for(var n=t._results._only,i=0;t._tests.length>i;i++){var o=t._tests[i];n&&o.name!==n||o._exit()}t.close(),r.exit(e||t._exitCode)}}),t}function o(e){e||(e={});var t=h();e.autoclose!==!1&&t.once("done",function(){t.close()});var n=function(e,r,i){var o=new u(e,r,i);return n._tests.push(o),function s(e){e.on("test",function(e){s(e)}),e.on("result",function(e){e.ok||(n._exitCode=1)})}(o),t.push(o),o};n._results=t,n._tests=[],n.createStream=function(e){return t.createStream(e)};var r=!1;return n.only=function(e){if(r)throw Error("there can only be one only test");return t.only(e),r=!0,n.apply(null,arguments)},n._exitCode=0,n.close=function(){t.close()},n}var s=e("defined"),a=e("./lib/default_stream"),u=e("./lib/test"),h=e("./lib/results"),l=e("through"),c=r!==void 0&&r&&"function"==typeof r.on,f=r!==void 0&&r&&"function"==typeof r.exit;"undefined"!=typeof setImmediate?setImmediate:r.nextTick,n=t.exports=function(){function e(e){return e||(e={}),e.autoclose=!c,t||(t=i(e)),t}var t,n=function(){return e().apply(this,arguments)};return n.only=function(){return e().only.apply(this,arguments)},n.createStream=function(n){if(n||(n={}),!t){var r=l();return e({stream:r,objectMode:n.objectMode}),r}return t.createStream(n)},n}(),n.createHarness=o,n.Test=u,n.test=n}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"./lib/default_stream":20,"./lib/results":21,"./lib/test":22,"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,defined:26,through:30}],20:[function(e,t){var n=e("through");t.exports=function(){function e(e){for(var n=0;e.length>n;n++){var i="string"==typeof e?e.charAt(n):String.fromCharCode(e[n]);"\n"===i?t():r+=i}}function t(){try{console.log(r)}catch(e){i.emit("error",e)}r=""}var r="",i=n(e,t);return i}},{through:30}],21:[function(e,t){(function(n){function r(){return this instanceof r?(this.count=0,this.fail=0,this.pass=0,this._stream=h(),this.tests=[],void 0):new r}function i(e,t){var n="";if(n+=(e.ok?"ok ":"not ok ")+t,n+=e.name?" "+(""+e.name).replace(/\s+/g," "):"",e.skip?n+=" # SKIP":e.todo&&(n+=" # TODO"),n+="\n",e.ok)return n;var r=" ",i=r+" ";if(n+=r+"---\n",n+=i+"operator: "+e.operator+"\n",s(e,"expected")||s(e,"actual")){var o=c(e.expected),a=c(e.actual);Math.max(o.length,a.length)>65?(n+=i+"expected:\n"+i+" "+o+"\n",n+=i+"actual:\n"+i+" "+a+"\n"):(n+=i+"expected: "+o+"\n",n+=i+"actual: "+a+"\n")}if(e.at&&(n+=i+"at: "+e.at+"\n"),"error"===e.operator&&e.actual&&e.actual.stack){var u=(e.actual.stack+"").split("\n");n+=i+"stack:\n",n+=i+" "+u[0]+"\n";for(var h=1;u.length>h;h++)n+=i+u[h]+"\n"}return n+=r+"...\n"}function o(e){if(!e._only)return e.tests.shift();do{var t=e.tests.shift();if(t&&e._only===t.name)return t}while(0!==e.tests.length)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var a=e("events").EventEmitter,u=e("inherits"),h=e("through"),l=e("resumer"),c=e("object-inspect"),f="undefined"!=typeof setImmediate?setImmediate:n.nextTick;t.exports=r,u(r,a),r.prototype.createStream=function(e){e||(e={});var t,n=this,r=0;return e.objectMode?(t=h(),n.on("_push",function i(e,n){n||(n={});var o=r++;e.once("prerun",function(){var r={type:"test",name:e.name,id:o};n.parent&&(r.parent=n.parent),t.queue(r)}),e.on("test",function(e){i(e,{parent:o})}),e.on("result",function(e){e.test=o,e.type="assert",t.queue(e)}),e.on("end",function(){t.queue({type:"end",test:o})})}),n.on("done",function(){t.queue(null)})):(t=l(),t.queue("TAP version 13\n"),n._stream.pipe(t)),f(function s(){for(var e;e=o(n);)if(e.run(),!e.ended)return e.once("end",function(){f(s)});n.emit("done")}),t},r.prototype.push=function(e){var t=this;t.tests.push(e),t._watch(e),t.emit("_push",e)},r.prototype.only=function(e){this._only&&(self.count++,self.fail++,write("not ok "+self.count+" already called .only()\n")),this._only=e},r.prototype._watch=function(e){var t=this,n=function(e){t._stream.queue(e)};e.once("prerun",function(){n("# "+e.name+"\n")}),e.on("result",function(e){return"string"==typeof e?(n("# "+e+"\n"),void 0):(n(i(e,t.count+1)),t.count++,e.ok?t.pass++:t.fail++,void 0)}),e.on("test",function(e){t._watch(e)})},r.prototype.close=function(){var e=this;e.closed&&e._stream.emit("error",Error("ALREADY CLOSED")),e.closed=!0;var t=function(t){e._stream.queue(t)};t("\n1.."+e.count+"\n"),t("# tests "+e.count+"\n"),t("# pass "+e.pass+"\n"),e.fail?t("# fail "+e.fail+"\n"):t("\n# ok\n"),e._stream.queue(null)}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,events:4,inherits:27,"object-inspect":28,resumer:29,through:30}],22:[function(e,t){(function(n,r){function i(){for(var e,t=this,n="(anonymous)",r={},o=0;arguments.length>o;o++)switch(typeof arguments[o]){case"string":n=arguments[o];break;case"object":r=arguments[o]||r;break;case"function":e=arguments[o]}this.readable=!0,this.name=n||"(anonymous)",this.assertCount=0,this.pendingCount=0,this._skip=r.skip||!1,this._plan=void 0,this._cb=e,this._progeny=[],this._ok=!0,this.end=function(){return i.prototype.end.apply(t,arguments)}}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e("stream");var s=e("deep-equal"),a=e("defined"),u=e("path"),h=e("util").inherits,l=e("events").EventEmitter;t.exports=i;var c="undefined"!=typeof setImmediate?setImmediate:n.nextTick;h(i,l),i.prototype.run=function(){if(!this._cb||this._skip)return this._end();this.emit("prerun");try{this._cb(this)}catch(e){return this.error(e),this._end(),void 0}this.emit("run")},i.prototype.test=function(e,t,n){var r=this,o=new i(e,t,n);this._progeny.push(o),this.pendingCount++,this.emit("test",o),o.on("prerun",function(){r.assertCount++}),r._pendingAsserts()||c(function(){r._end()}),c(function(){r._plan||r.pendingCount!=r._progeny.length||r._end()})},i.prototype.comment=function(e){this.emit("result",e.trim().replace(/^#\s*/,""))},i.prototype.plan=function(e){this._plan=e,this.emit("plan",e)},i.prototype.end=function(e){arguments.length>=1&&this.ifError(e),this.calledEnd&&this.fail(".end() called twice"),this.calledEnd=!0,this._end()},i.prototype._end=function(){var e=this;if(this._progeny.length){var t=this._progeny.shift();return t.on("end",function(){e._end()}),t.run(),void 0}this.ended||this.emit("end");var n=this._pendingAsserts();!this._planError&&void 0!==this._plan&&n&&(this._planError=!0,this.fail("plan != count",{expected:this._plan,actual:this.assertCount})),this.ended=!0},i.prototype._exit=function(){void 0===this._plan||this._planError||this.assertCount===this._plan?this.ended||this.fail("test exited without ending",{exiting:!0}):(this._planError=!0,this.fail("plan != count",{expected:this._plan,actual:this.assertCount,exiting:!0}))},i.prototype._pendingAsserts=function(){return void 0===this._plan?1:this._plan-(this._progeny.length+this.assertCount)},i.prototype._assert=function(e,t){var n=this,i=t.extra||{},s={id:n.assertCount++,ok:Boolean(e),skip:a(i.skip,t.skip),name:a(i.message,t.message,"(unnamed assert)"),operator:a(i.operator,t.operator)};(o(t,"actual")||o(i,"actual"))&&(s.actual=a(i.actual,t.actual)),(o(t,"expected")||o(i,"expected"))&&(s.expected=a(i.expected,t.expected)),this._ok=Boolean(this._ok&&e),e||(s.error=a(i.error,t.error,Error(s.name)));for(var h=Error("exception"),l=(h.stack||"").split("\n"),f=u.dirname(r)+"/",p=0;l.length>p;p++){var d=/^\s*\bat\s+(.+)/.exec(l[p]);if(d){var g=d[1].split(/\s+/),m=/(\/[^:\s]+:(\d+)(?::(\d+))?)/.exec(g[1]);if((m||(m=/(\/[^:\s]+:(\d+)(?::(\d+))?)/.exec(g[3])))&&m[1].slice(0,f.length)!==f){s.functionName=g[0],s.file=m[1],s.line=Number(m[2]),m[3]&&(s.column=m[3]),s.at=d[1];break}}}n.emit("result",s);var v=n._pendingAsserts();v||(i.exiting?n._end():c(function(){n._end()})),!n._planError&&0>v&&(n._planError=!0,n.fail("plan != count",{expected:n._plan,actual:n._plan-v}))},i.prototype.fail=function(e,t){this._assert(!1,{message:e,operator:"fail",extra:t})},i.prototype.pass=function(e,t){this._assert(!0,{message:e,operator:"pass",extra:t})},i.prototype.skip=function(e,t){this._assert(!0,{message:e,operator:"skip",skip:!0,extra:t})},i.prototype.ok=i.prototype["true"]=i.prototype.assert=function(e,t,n){this._assert(e,{message:t,operator:"ok",expected:!0,actual:e,extra:n})},i.prototype.notOk=i.prototype["false"]=i.prototype.notok=function(e,t,n){this._assert(!e,{message:t,operator:"notOk",expected:!1,actual:e,extra:n})},i.prototype.error=i.prototype.ifError=i.prototype.ifErr=i.prototype.iferror=function(e,t,n){this._assert(!e,{message:a(t,e+""),operator:"error",actual:e,extra:n})},i.prototype.equal=i.prototype.equals=i.prototype.isEqual=i.prototype.is=i.prototype.strictEqual=i.prototype.strictEquals=function(e,t,n,r){this._assert(e===t,{message:a(n,"should be equal"),operator:"equal",actual:e,expected:t,extra:r})},i.prototype.notEqual=i.prototype.notEquals=i.prototype.notStrictEqual=i.prototype.notStrictEquals=i.prototype.isNotEqual=i.prototype.isNot=i.prototype.not=i.prototype.doesNotEqual=i.prototype.isInequal=function(e,t,n,r){this._assert(e!==t,{message:a(n,"should not be equal"),operator:"notEqual",actual:e,notExpected:t,extra:r})},i.prototype.deepEqual=i.prototype.deepEquals=i.prototype.isEquivalent=i.prototype.same=function(e,t,n,r){this._assert(s(e,t,{strict:!0}),{message:a(n,"should be equivalent"),operator:"deepEqual",actual:e,expected:t,extra:r})},i.prototype.deepLooseEqual=i.prototype.looseEqual=i.prototype.looseEquals=function(e,t,n,r){this._assert(s(e,t),{message:a(n,"should be equivalent"),operator:"deepLooseEqual",actual:e,expected:t,extra:r})},i.prototype.notDeepEqual=i.prototype.notEquivalent=i.prototype.notDeeply=i.prototype.notSame=i.prototype.isNotDeepEqual=i.prototype.isNotDeeply=i.prototype.isNotEquivalent=i.prototype.isInequivalent=function(e,t,n,r){this._assert(!s(e,t,{strict:!0}),{message:a(n,"should not be equivalent"),operator:"notDeepEqual",actual:e,notExpected:t,extra:r})},i.prototype.notDeepLooseEqual=i.prototype.notLooseEqual=i.prototype.notLooseEquals=function(e,t,n,r){this._assert(s(e,t),{message:a(n,"should be equivalent"),operator:"notDeepLooseEqual",actual:e,expected:t,extra:r})},i.prototype["throws"]=function(e,t,n,r){"string"==typeof t&&(n=t,t=void 0);var i=void 0;try{e()}catch(o){i={error:o};var s=o.message;delete o.message,o.message=s}var u=i;t instanceof RegExp&&(u=t.test(i&&i.error),t+=""),this._assert(u,{message:a(n,"should throw"),operator:"throws",actual:i&&i.error,expected:t,error:!u&&i&&i.error,extra:r})},i.prototype.doesNotThrow=function(e,t,n,r){"string"==typeof t&&(n=t,t=void 0);var i=void 0;try{e()}catch(o){i={error:o}}this._assert(!i,{message:a(n,"should not throw"),operator:"throws",actual:i&&i.error,expected:t,error:i&&i.error,extra:r})}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"/lib")},{"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,"deep-equal":23,defined:26,events:4,path:7,stream:9,util:17}],23:[function(e,t){function n(e){return null===e||void 0===e}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length?"function"!=typeof e.copy||"function"!=typeof e.slice?!1:e.length>0&&"number"!=typeof e[0]?!1:!0:!1}function i(e,t,i){var h,l;if(n(e)||n(t))return!1;if(e.prototype!==t.prototype)return!1;if(a(e))return a(t)?(e=o.call(e),t=o.call(t),u(e,t,i)):!1;if(r(e)){if(!r(t))return!1;if(e.length!==t.length)return!1;for(h=0;e.length>h;h++)if(e[h]!==t[h])return!1;return!0}try{var c=s(e),f=s(t)}catch(p){return!1}if(c.length!=f.length)return!1;for(c.sort(),f.sort(),h=c.length-1;h>=0;h--)if(c[h]!=f[h])return!1;for(h=c.length-1;h>=0;h--)if(l=c[h],!u(e[l],t[l],i))return!1;return!0}var o=Array.prototype.slice,s=e("./lib/keys.js"),a=e("./lib/is_arguments.js"),u=t.exports=function(e,t,n){return n||(n={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:i(e,t,n)}},{"./lib/is_arguments.js":24,"./lib/keys.js":25}],24:[function(e,t,n){function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();n=t.exports=o?r:i,n.supported=r,n.unsupported=i},{}],25:[function(e,t,n){function r(e){var t=[];for(var n in e)t.push(n);return t}n=t.exports="function"==typeof Object.keys?Object.keys:r,n.shim=r},{}],26:[function(e,t){t.exports=function(){for(var e=0;arguments.length>e;e++)if(void 0!==arguments[e])return arguments[e]}},{}],27:[function(e,t){t.exports=e(5)},{}],28:[function(e,t){function n(e){return(e+"").replace(/"/g,"&quot;")}function r(e){return"[object Array]"==={}.toString.call(e)}function i(e){return"[object Date]"==={}.toString.call(e)}function o(e){return"[object RegExp]"==={}.toString.call(e)}function s(e,t){return{}.hasOwnProperty?{}.hasOwnProperty.call(e,t):t in e}function a(e){if(e.name)return e.name;var t=(""+e).match(/^function\s*([\w$]+)/);return t?t[1]:void 0}function u(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1}function h(e){return e&&"object"==typeof e?"undefined"!=typeof HTMLElement?e instanceof HTMLElement:"string"==typeof e.nodeName&&"function"==typeof e.getAttribute:!1}t.exports=function l(e,t,c,f){function p(e,n){return n&&(f=f.slice(),f.push(n)),l(e,t,c+1,f)}t||(t={});var d=void 0===t.depth?5:t.depth;if(void 0===c&&(c=0),c>d&&d>0)return"...";if(void 0===f)f=[];else if(u(f,e)>=0)return"[Circular]";if("string"==typeof e)return"'"+e.replace(/(['\\])/g,"\\$1")+"'";if("function"==typeof e){var g=a(e);return"[Function"+(g?": "+g:"")+"]"}if(null===e)return"null";if(h(e)){for(var m="<"+(e.nodeName+"").toLowerCase(),v=e.attributes||[],y=0;v.length>y;y++)m+=" "+v[y].name+'="'+n(v[y].value)+'"';return m+=">",e.childNodes&&e.childNodes.length&&(m+="..."),m+="</"+(e.tagName+"").toLowerCase()+">"}if(r(e)){if(0===e.length)return"[]";for(var b=Array(e.length),y=0;e.length>y;y++)b[y]=s(e,y)?p(e[y],e):"";return"[ "+b.join(", ")+" ]"}if("object"==typeof e&&"function"==typeof e.inspect)return e.inspect();if("object"!=typeof e||i(e)||o(e))return e+"";var b=[],w=[];for(var E in e)s(e,E)&&w.push(E);w.sort();for(var y=0;w.length>y;y++){var E=w[y];/[^\w$]/.test(E)?b.push(p(E)+": "+p(e[E],e)):b.push(E+": "+p(e[E],e))}return 0===b.length?"{}":"{ "+b.join(", ")+" }"}},{}],29:[function(e,t){(function(n){var r=e("through"),i="undefined"!=typeof setImmediate?setImmediate:n.nextTick;t.exports=function(e,t){var n=r(e,t);n.pause();var o=n.resume,s=n.pause,a=!1;return n.pause=function(){return a=!0,s.apply(this,arguments)},n.resume=function(){return a=!1,o.apply(this,arguments)},i(function(){a||n.resume()}),n}}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,through:30}],30:[function(e,t,n){(function(r){function i(e,t,n){function i(){for(;h.length&&!c.paused;){var e=h.shift();if(null===e)return c.emit("end");c.emit("data",e)}}function s(){c.writable=!1,t.call(c),!c.readable&&c.autoDestroy&&c.destroy()}e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var a=!1,u=!1,h=[],l=!1,c=new o;return c.readable=c.writable=!0,c.paused=!1,c.autoDestroy=!(n&&n.autoDestroy===!1),c.write=function(t){return e.call(this,t),!c.paused},c.queue=c.push=function(e){return l?c:(null==e&&(l=!0),h.push(e),i(),c)},c.on("end",function(){c.readable=!1,!c.writable&&c.autoDestroy&&r.nextTick(function(){c.destroy()})}),c.end=function(e){return a?void 0:(a=!0,arguments.length&&c.write(e),s(),c)},c.destroy=function(){return u?void 0:(u=!0,a=!0,h.length=0,c.writable=c.readable=!1,c.emit("close"),c)},c.pause=function(){return c.paused?void 0:(c.paused=!0,c)},c.resume=function(){return c.paused&&(c.paused=!1,c.emit("resume")),i(),c.paused||c.emit("drain"),c},c}var o=e("stream");n=t.exports=i,i.through=i}).call(this,e("/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"/home/admin/browserify-cdn/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,stream:9}]},{},[]),require=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);throw Error("Cannot find module '"+s+"'")}var h=n[s]={exports:{}};t[s][0].call(h.exports,function(e){var n=t[s][1][e];return i(n?n:e)},h,h.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;r.length>s;s++)i(r[s]);return i}({oAq0Vd:[function(e,t){function n(e){return"string"!=typeof e&&(e+=""),0===e.indexOf("ok")?(s+=1,void 0):0===e.indexOf("not ok")?(o+=1,void 0):void 0}function r(){var e=document.body.style;e.backgroundColor=o>0?i.FAILING:s>0&&0===o?i.PASSING:i.PENDING}t.exports=function(){var e=console.log,t=document.body.appendChild(document.createElement("pre"));return r(),console.log=function(i){n(i),r(),e.apply(console,arguments),t.innerHTML+=i+"\n"},function(){console.log=e}};var i=t.exports.colors={PENDING:"#FCD62A",FAILING:"#F28E82",PASSING:"#8ECA6C"},o=0,s=0},{}],"tap-browser-color":[function(e,t){t.exports=e("oAq0Vd")},{}]},{},[]);var vash=require("vash"),test=require("tape"),tbc=require("tap-browser-color")();test("can handle windows CLRF",function(e){var t="<p>one two \r\n three \r\n @model.what</p>",n=vash.compile(t),r={what:"what"};e.equal(n(r),"<p>one two \n three \n what</p>"),e.end()});
{
"name": "requirebin-sketch",
"version": "1.0.0",
"dependencies": {
"vash": "0.7.9-7",
"tape": "2.10.2",
"tap-browser-color": "0.1.2"
}
}
<style type='text/css'>html, body { margin: 0; padding: 0; border: 0; }
body, html { height: 100%; width: 100%; }</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment