asset-rack
Version:
Static Web Framework for Nodejs
1 lines • 13.1 kB
JavaScript
(function(){var r=function(e,t){var n=r.resolve(e,t||"/"),o=r.modules[n];if(!o)throw Error("Failed to resolve module "+e+", tried "+n);var a=r.cache[n],i=a?a.exports:o();return i};r.paths=[],r.modules={},r.cache={},r.extensions=[".js",".coffee",".json"],r._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},r.resolve=function(){return function(e,t){function n(e){if(e=s.normalize(e),r.modules[e])return e;for(var t=0;r.extensions.length>t;t++){var n=r.extensions[t];if(r.modules[e+n])return e+n}}function o(e){e=e.replace(/\/+$/,"");var t=s.normalize(e+"/package.json");if(r.modules[t]){var o=r.modules[t](),a=o.browserify;if("object"==typeof a&&a.main){var i=n(s.resolve(e,a.main));if(i)return i}else if("string"==typeof a){var i=n(s.resolve(e,a));if(i)return i}else if(o.main){var i=n(s.resolve(e,o.main));if(i)return i}}return n(e+"/index")}function a(r,e){for(var t=i(e),a=0;t.length>a;a++){var s=t[a],u=n(s+"/"+r);if(u)return u;var c=o(s+"/"+r);if(c)return c}var u=n(r);return u?u:void 0}function i(r){var e;e="/"===r?[""]:s.normalize(r).split("/");for(var t=[],n=e.length-1;n>=0;n--)if("node_modules"!==e[n]){var o=e.slice(0,n+1).join("/")+"/node_modules";t.push(o)}return t}if(t||(t="/"),r._core[e])return e;var s=r.modules.path();t=s.resolve("/",t);var u=t||"/";if(e.match(/^(?:\.\.?\/|\/)/)){var c=n(s.resolve(u,e))||o(s.resolve(u,e));if(c)return c}var f=a(e,u);if(f)return f;throw Error("Cannot find module '"+e+"'")}}(),r.alias=function(e,t){var n=r.modules.path(),o=null;try{o=r.resolve(e+"/package.json","/")}catch(a){o=r.resolve(e,"/")}for(var i=n.dirname(o),s=(Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e})(r.modules),u=0;s.length>u;u++){var c=s[u];if(c.slice(0,i.length+1)===i+"/"){var f=c.slice(i.length);r.modules[t+f]=r.modules[i+f]}else c===i&&(r.modules[t]=r.modules[i])}},function(){var e={},t="undefined"!=typeof window?window:{},n=!1;r.define=function(o,a){!n&&r.modules.__browserify_process&&(e=r.modules.__browserify_process(),n=!0);var i=r._core[o]?"":r.modules.path().dirname(o),s=function(e){var t=r(e,i),n=r.cache[r.resolve(e,i)];return n&&null===n.parent&&(n.parent=u),t};s.resolve=function(e){return r.resolve(e,i)},s.modules=r.modules,s.define=r.define,s.cache=r.cache;var u={id:o,filename:o,exports:{},loaded:!1,parent:null};r.modules[o]=function(){return r.cache[o]=u,a.call(u.exports,s,u,u.exports,i,o,e,t),u.loaded=!0,u.exports}}}(),r.define("path",function(r,e,t,n,o,a){function i(r,e){for(var t=[],n=0;r.length>n;n++)e(r[n],n,r)&&t.push(r[n]);return t}function s(r,e){for(var t=0,n=r.length;n>=0;n--){var o=r[n];"."==o?r.splice(n,1):".."===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t--;t)r.unshift("..");return r}var u=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;t.resolve=function(){for(var r="",e=!1,t=arguments.length;t>=-1&&!e;t--){var n=t>=0?arguments[t]:a.cwd();"string"==typeof n&&n&&(r=n+"/"+r,e="/"===n.charAt(0))}return r=s(i(r.split("/"),function(r){return!!r}),!e).join("/"),(e?"/":"")+r||"."},t.normalize=function(r){var e="/"===r.charAt(0),t="/"===r.slice(-1);return r=s(i(r.split("/"),function(r){return!!r}),!e).join("/"),r||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},t.join=function(){var r=Array.prototype.slice.call(arguments,0);return t.normalize(i(r,function(r){return r&&"string"==typeof r}).join("/"))},t.dirname=function(r){var e=u.exec(r)[1]||"",t=!1;return e?1===e.length||t&&3>=e.length&&":"===e.charAt(1)?e:e.substring(0,e.length-1):"."},t.basename=function(r,e){var t=u.exec(r)[2]||"";return e&&t.substr(-1*e.length)===e&&(t=t.substr(0,t.length-e.length)),t},t.extname=function(r){return u.exec(r)[3]||""},t.relative=function(r,e){function n(r){for(var e=0;r.length>e&&""===r[e];e++);for(var t=r.length-1;t>=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=t.resolve(r).substr(1),e=t.resolve(e).substr(1);for(var o=n(r.split("/")),a=n(e.split("/")),i=Math.min(o.length,a.length),s=i,u=0;i>u;u++)if(o[u]!==a[u]){s=u;break}for(var c=[],u=s;o.length>u;u++)c.push("..");return c=c.concat(a.slice(s)),c.join("/")}}),r.define("__browserify_process",function(r,e,t,n,o,a){var a=e.exports={};a.nextTick=function(){var r="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(r)return function(r){return window.setImmediate(r)};if(e){var t=[];return window.addEventListener("message",function(r){if(r.source===window&&"browserify-tick"===r.data&&(r.stopPropagation(),t.length>0)){var e=t.shift();e()}},!0),function(r){t.push(r),window.postMessage("browserify-tick","*")}}return function(r){setTimeout(r,0)}}(),a.title="browser",a.browser=!0,a.env={},a.argv=[],a.binding=function(e){if("evals"===e)return r("vm");throw Error("No such module. (Possibly not yet loaded)")},function(){var e,t="/";a.cwd=function(){return t},a.chdir=function(n){e||(e=r("path")),t=e.resolve(n,t)}}()}),r.define("crypto",function(r,e){e.exports=r("crypto-browserify")}),r.define("/node_modules/crypto-browserify/package.json",function(r,e){e.exports={}}),r.define("/node_modules/crypto-browserify/index.js",function(r,e,t){function n(){var r=[].slice.call(arguments).join(" ");throw Error([r,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}var o=r("./sha"),a=r("./rng"),i=r("./md5"),s={sha1:{hex:o.hex_sha1,binary:o.b64_sha1,ascii:o.str_sha1},md5:{hex:i.hex_md5,binary:i.b64_md5,ascii:i.any_md5}};t.createHash=function(r){r=r||"sha1",s[r]||n("algorithm:",r,"is not yet supported");var e="",t=s[r];return{update:function(r){return e+=r,this},digest:function(o){o=o||"binary";var a;(a=t[o])||n("encoding:",o,"is not yet supported for algorithm",r);var i=a(e);return e=null,i}}},t.randomBytes=function(r,e){if(!e||!e.call)return a(r);try{e.call(this,void 0,a(r))}catch(t){e(t)}},["createCredentials","createHmac","createCypher","createCypheriv","createDecipher","createDecipheriv","createSign","createVerify","createDeffieHellman","pbkdf2"].forEach(function(r){t[r]=function(){n("sorry,",r,"is not implemented yet")}})}),r.define("/node_modules/crypto-browserify/sha.js",function(r,e,t){function n(r){return m(c(v(r),r.length*j))}function o(r){return y(c(v(r),r.length*j))}function a(r){return g(c(v(r),r.length*j))}function i(r,e){return m(h(r,e))}function s(r,e){return y(h(r,e))}function u(r,e){return g(h(r,e))}function c(r,e){r[e>>5]|=128<<24-e%32,r[(e+64>>9<<4)+15]=e;for(var t=Array(80),n=1732584193,o=-271733879,a=-1732584194,i=271733878,s=-1009589776,u=0;r.length>u;u+=16){for(var c=n,h=o,v=a,g=i,m=s,y=0;80>y;y++){t[y]=16>y?r[u+y]:p(t[y-3]^t[y-8]^t[y-14]^t[y-16],1);var w=d(d(p(n,5),f(y,o,a,i)),d(d(s,t[y]),l(y)));s=i,i=a,a=p(o,30),o=n,n=w}n=d(n,c),o=d(o,h),a=d(a,v),i=d(i,g),s=d(s,m)}return[n,o,a,i,s]}function f(r,e,t,n){return 20>r?e&t|~e&n:40>r?e^t^n:60>r?e&t|e&n|t&n:e^t^n}function l(r){return 20>r?1518500249:40>r?1859775393:60>r?-1894007588:-899497514}function h(r,e){var t=v(r);t.length>16&&(t=c(t,r.length*j));for(var n=Array(16),o=Array(16),a=0;16>a;a++)n[a]=909522486^t[a],o[a]=1549556828^t[a];var i=c(n.concat(v(e)),512+e.length*j);return c(o.concat(i),672)}function d(r,e){var t=(65535&r)+(65535&e),n=(r>>16)+(e>>16)+(t>>16);return n<<16|65535&t}function p(r,e){return r<<e|r>>>32-e}function v(r){for(var e=[],t=(1<<j)-1,n=0;r.length*j>n;n+=j)e[n>>5]|=(r.charCodeAt(n/j)&t)<<32-j-n%32;return e}function g(r){for(var e="",t=(1<<j)-1,n=0;32*r.length>n;n+=j)e+=String.fromCharCode(r[n>>5]>>>32-j-n%32&t);return e}function m(r){for(var e=w?"0123456789ABCDEF":"0123456789abcdef",t="",n=0;4*r.length>n;n++)t+=e.charAt(15&r[n>>2]>>8*(3-n%4)+4)+e.charAt(15&r[n>>2]>>8*(3-n%4));return t}function y(r){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="",n=0;4*r.length>n;n+=3)for(var o=(255&r[n>>2]>>8*(3-n%4))<<16|(255&r[n+1>>2]>>8*(3-(n+1)%4))<<8|255&r[n+2>>2]>>8*(3-(n+2)%4),a=0;4>a;a++)t+=8*n+6*a>32*r.length?b:e.charAt(63&o>>6*(3-a));return t}t.hex_sha1=n,t.b64_sha1=o,t.str_sha1=a,t.hex_hmac_sha1=i,t.b64_hmac_sha1=s,t.str_hmac_sha1=u;var w=0,b="",j=8}),r.define("/node_modules/crypto-browserify/rng.js",function(r,e){(function(){var r,t,n=this;if(r=function(r){for(var e,e,t=Array(r),n=0;r>n;n++)0==(3&n)&&(e=4294967296*Math.random()),t[n]=255&e>>>((3&n)<<3);return t},n.crypto&&crypto.getRandomValues){var o=new Uint32Array(4);t=function(r){var e=Array(r);crypto.getRandomValues(o);for(var t=0;r>t;t++)e[t]=255&o[t>>2]>>>8*(3&t);return e}}e.exports=t||r})()}),r.define("/node_modules/crypto-browserify/md5.js",function(r,e,t){function n(r){return s(i(f(r)))}function o(r){return u(i(f(r)))}function a(r,e){return c(i(f(r)),e)}function i(r){return h(d(l(r),8*r.length))}function s(r){try{}catch(e){j=0}for(var t,n=j?"0123456789ABCDEF":"0123456789abcdef",o="",a=0;r.length>a;a++)t=r.charCodeAt(a),o+=n.charAt(15&t>>>4)+n.charAt(15&t);return o}function u(r){try{}catch(e){A=""}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",o=r.length,a=0;o>a;a+=3)for(var i=r.charCodeAt(a)<<16|(o>a+1?r.charCodeAt(a+1)<<8:0)|(o>a+2?r.charCodeAt(a+2):0),s=0;4>s;s++)n+=8*a+6*s>8*r.length?A:t.charAt(63&i>>>6*(3-s));return n}function c(r,e){var t,n,o,a,i,s=e.length,u=Array(Math.ceil(r.length/2));for(t=0;u.length>t;t++)u[t]=r.charCodeAt(2*t)<<8|r.charCodeAt(2*t+1);var c=Math.ceil(8*r.length/(Math.log(e.length)/Math.log(2))),f=Array(c);for(n=0;c>n;n++){for(i=[],a=0,t=0;u.length>t;t++)a=(a<<16)+u[t],o=Math.floor(a/s),a-=o*s,(i.length>0||o>0)&&(i[i.length]=o);f[n]=a,u=i}var l="";for(t=f.length-1;t>=0;t--)l+=e.charAt(f[t]);return l}function f(r){for(var e,t,n="",o=-1;++o<r.length;)e=r.charCodeAt(o),t=r.length>o+1?r.charCodeAt(o+1):0,e>=55296&&56319>=e&&t>=56320&&57343>=t&&(e=65536+((1023&e)<<10)+(1023&t),o++),127>=e?n+=String.fromCharCode(e):2047>=e?n+=String.fromCharCode(192|31&e>>>6,128|63&e):65535>=e?n+=String.fromCharCode(224|15&e>>>12,128|63&e>>>6,128|63&e):2097151>=e&&(n+=String.fromCharCode(240|7&e>>>18,128|63&e>>>12,128|63&e>>>6,128|63&e));return n}function l(r){for(var e=Array(r.length>>2),t=0;e.length>t;t++)e[t]=0;for(var t=0;8*r.length>t;t+=8)e[t>>5]|=(255&r.charCodeAt(t/8))<<t%32;return e}function h(r){for(var e="",t=0;32*r.length>t;t+=8)e+=String.fromCharCode(255&r[t>>5]>>>t%32);return e}function d(r,e){r[e>>5]|=128<<e%32,r[(e+64>>>9<<4)+14]=e;for(var t=1732584193,n=-271733879,o=-1732584194,a=271733878,i=0;r.length>i;i+=16){var s=t,u=n,c=o,f=a;t=v(t,n,o,a,r[i+0],7,-680876936),a=v(a,t,n,o,r[i+1],12,-389564586),o=v(o,a,t,n,r[i+2],17,606105819),n=v(n,o,a,t,r[i+3],22,-1044525330),t=v(t,n,o,a,r[i+4],7,-176418897),a=v(a,t,n,o,r[i+5],12,1200080426),o=v(o,a,t,n,r[i+6],17,-1473231341),n=v(n,o,a,t,r[i+7],22,-45705983),t=v(t,n,o,a,r[i+8],7,1770035416),a=v(a,t,n,o,r[i+9],12,-1958414417),o=v(o,a,t,n,r[i+10],17,-42063),n=v(n,o,a,t,r[i+11],22,-1990404162),t=v(t,n,o,a,r[i+12],7,1804603682),a=v(a,t,n,o,r[i+13],12,-40341101),o=v(o,a,t,n,r[i+14],17,-1502002290),n=v(n,o,a,t,r[i+15],22,1236535329),t=g(t,n,o,a,r[i+1],5,-165796510),a=g(a,t,n,o,r[i+6],9,-1069501632),o=g(o,a,t,n,r[i+11],14,643717713),n=g(n,o,a,t,r[i+0],20,-373897302),t=g(t,n,o,a,r[i+5],5,-701558691),a=g(a,t,n,o,r[i+10],9,38016083),o=g(o,a,t,n,r[i+15],14,-660478335),n=g(n,o,a,t,r[i+4],20,-405537848),t=g(t,n,o,a,r[i+9],5,568446438),a=g(a,t,n,o,r[i+14],9,-1019803690),o=g(o,a,t,n,r[i+3],14,-187363961),n=g(n,o,a,t,r[i+8],20,1163531501),t=g(t,n,o,a,r[i+13],5,-1444681467),a=g(a,t,n,o,r[i+2],9,-51403784),o=g(o,a,t,n,r[i+7],14,1735328473),n=g(n,o,a,t,r[i+12],20,-1926607734),t=m(t,n,o,a,r[i+5],4,-378558),a=m(a,t,n,o,r[i+8],11,-2022574463),o=m(o,a,t,n,r[i+11],16,1839030562),n=m(n,o,a,t,r[i+14],23,-35309556),t=m(t,n,o,a,r[i+1],4,-1530992060),a=m(a,t,n,o,r[i+4],11,1272893353),o=m(o,a,t,n,r[i+7],16,-155497632),n=m(n,o,a,t,r[i+10],23,-1094730640),t=m(t,n,o,a,r[i+13],4,681279174),a=m(a,t,n,o,r[i+0],11,-358537222),o=m(o,a,t,n,r[i+3],16,-722521979),n=m(n,o,a,t,r[i+6],23,76029189),t=m(t,n,o,a,r[i+9],4,-640364487),a=m(a,t,n,o,r[i+12],11,-421815835),o=m(o,a,t,n,r[i+15],16,530742520),n=m(n,o,a,t,r[i+2],23,-995338651),t=y(t,n,o,a,r[i+0],6,-198630844),a=y(a,t,n,o,r[i+7],10,1126891415),o=y(o,a,t,n,r[i+14],15,-1416354905),n=y(n,o,a,t,r[i+5],21,-57434055),t=y(t,n,o,a,r[i+12],6,1700485571),a=y(a,t,n,o,r[i+3],10,-1894986606),o=y(o,a,t,n,r[i+10],15,-1051523),n=y(n,o,a,t,r[i+1],21,-2054922799),t=y(t,n,o,a,r[i+8],6,1873313359),a=y(a,t,n,o,r[i+15],10,-30611744),o=y(o,a,t,n,r[i+6],15,-1560198380),n=y(n,o,a,t,r[i+13],21,1309151649),t=y(t,n,o,a,r[i+4],6,-145523070),a=y(a,t,n,o,r[i+11],10,-1120210379),o=y(o,a,t,n,r[i+2],15,718787259),n=y(n,o,a,t,r[i+9],21,-343485551),t=w(t,s),n=w(n,u),o=w(o,c),a=w(a,f)}return[t,n,o,a]}function p(r,e,t,n,o,a){return w(b(w(w(e,r),w(n,a)),o),t)}function v(r,e,t,n,o,a,i){return p(e&t|~e&n,r,e,o,a,i)}function g(r,e,t,n,o,a,i){return p(e&n|t&~n,r,e,o,a,i)}function m(r,e,t,n,o,a,i){return p(e^t^n,r,e,o,a,i)}function y(r,e,t,n,o,a,i){return p(t^(e|~n),r,e,o,a,i)}function w(r,e){var t=(65535&r)+(65535&e),n=(r>>16)+(e>>16)+(t>>16);return n<<16|65535&t}function b(r,e){return r<<e|r>>>32-e}var j=0,A="";t.hex_md5=n,t.b64_md5=o,t.any_md5=a}),r.define("/app.coffee",function(r){(function(){var e,t,n;for(e=r("crypto"),t=n=0;12>=n;t=++n)window[t]=t}).call(this)}),r("/app.coffee")})();