/*! breq (browser-require) - v0.2.1 * https://github.com/JamesMGreene/breq * Copyright (c) 2015 James M. Greene; Licensed MIT */ !function(){"use strict";function getUriDir(a){return a?(a=a.split("#")[0].split("?")[0]).slice(0,a.lastIndexOf("/")+1):""}function getDocumentBaseURI(){var a,b=getUriDir(document.baseURI);return!b&&(a=document.getElementsByTagName("base")).length&&(a=a[0].href)&&(b=getUriDir(a)),b||getUriDir(window.location.href)}function arrayIndexOf(a,b){if(a&&a.length){if(a.indexOf)return a.indexOf(b);for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c}return-1}function dirname(a){return a&&a.slice(0,a.lastIndexOf("/")+1)||"/"}function getModuleSync(a){var b=__origin__+a,c=new XMLHttpRequest;if(c.open("GET",b,!1),c.send(null),c.status>=200&&c.status<400)return c.responseText;throw new Error("Module not found! URI: "+b)}function isNotPlainObject(a){var b={};for(var c in a)if(a.hasOwnProperty(c)&&!b.hasOwnProperty(c))return!0;return!1}function evaluateModule(__dirname,__filename,__parentModule__,__moduleScriptText__){var module={exports:{},id:__filename,filename:__filename,loaded:!1,parent:__parentModule__,children:[],require:null},exports=module.exports,require=module.require=new __Require__(__dirname,__filename,module);return eval(__moduleScriptText__),isNotPlainObject(exports)&&(module.exports=exports),module.loaded=!0,module}function __Require__(a,b,c){function d(a){var b=d.resolve(a),e=d.cache[b];if(null==e){var f=getModuleSync(b);e=evaluateModule(dirname(b),b,c,f),d.cache[b]=e}return null!=c&&-1===arrayIndexOf(c.children,e)&&c.children.push(e),e.exports}return d.resolve=function(b){if("string"!=typeof b)throw new TypeError("`path`was not a string");if(!b)throw new TypeError("`path`was an empty string");if("/"!==b.slice(0,1)&&"./"!==b.slice(0,2)&&"../"!==b.slice(0,3))throw new TypeError("`path`must be a relative path");for(var c=("/"===b.slice(0,1)?b:a+b).slice(1),d=c.split("/"),e=d.length;e--;)switch(d[e]){case"":case".":d.splice(e,1);break;case"..":if(0===e)throw new TypeError("`path`has an invalid parent dir traversal at the root position ");d.splice(--e,2)}return"/"+d.join("/")},d.cache=__requireCache__,d.main="undefined"!=typeof __mainModule__?__mainModule__:null,d}if(!window.location.protocol.match(/^https?:$/))throw new Error("`require` can only be used on HTTP/HTTPS");var __baseURI__=getDocumentBaseURI(),__origin__=__baseURI__.slice(0,__baseURI__.indexOf("/",__baseURI__.indexOf("://")+3)),__requireCache__={},__dirname=__baseURI__.slice(__baseURI__.indexOf("/",__baseURI__.indexOf("://")+3)),__filename=__dirname+window.location.pathname.slice(window.location.pathname.lastIndexOf("/")+1),__mainModule__=evaluateModule(__dirname,__filename,null,"");__mainModule__.require.main=__mainModule__,window.require=__mainModule__.require}();