Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

budo

Package Overview
Dependencies
Maintainers
2
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

budo - npm Package Compare versions

Comparing version 11.3.2 to 11.4.0

2

build/bundled-livereload-client.js

@@ -1,1 +0,1 @@

!function(){function t(e,r,n){function o(i,s){if(!r[i]){if(!e[i]){var u="function"==typeof require&&require;if(!s&&u)return u(i,!0);if(a)return a(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var h=r[i]={exports:{}};e[i][0].call(h.exports,function(t){var r=e[i][1][t];return o(r||t)},h,h.exports,t,e,r,n)}return r[i].exports}for(var a="function"==typeof require&&require,i=0;i<n.length;i++)o(n[i]);return o}return t}()({1:[function(t,e,r){function n(){window.location.reload(!0)}var o=t("reload-css"),a=t("./error-popup");e.exports=function(){function t(){return m&&v?void console.warn("[budo] LiveReload disconnected. You may need to generate and trust a self-signed certificate, see here:\nhttps://github.com/mattdesl/budo/blob/master/docs/command-line-usage.md#ssl-on-ios"):v?void console.warn("[budo] LiveReload disconnected. Please reload the page to retry."):c>=u?void console.warn("[budo] LiveReload disconnected, exceeded retry count. Please reload the page to retry."):(h||(h=!0,console.warn("[budo] LiveReload disconnected, retrying...")),c++,clearTimeout(i),void(i=setTimeout(e,s)))}function e(){g&&(g.onclose=function(){},g.close()),g=r()}function r(){var e=v?"wss://":"ws://",r=e+d+"/livereload",i=new window.WebSocket(r);return i.onmessage=function(t){var e;try{e=JSON.parse(t.data)}catch(e){return void console.warn("Error parsing LiveReload server data: "+t.data)}"reload"===e.event?/^\.?css$/i.test(e.ext)?o(e.url):n():"error-popup"===e.event&&(e.message?a.show(e.message):a.hide()),b.forEach(function(t){t(e)})},i.onclose=function(e){1e3!==e.code&&1001!==e.code&&t()},i.onopen=function(){h&&(h=!1,c=0,console.warn("[budo] LiveReload reconnected.")),y.length&&1===i.readyState&&(y.forEach(function(t){i.send(t)}),y.length=0)},i.onerror=function(){return!1},i}var i,s=1e3,u=50,c=0,h=!1,l=document.location.protocol,f=document.location.hostname,p=document.location.port,d=f+":"+p,m=/(iOS|iPhone|iPad|iPod)/i.test(navigator.userAgent),v=/^https:/i.test(l),y=[],g=r(),b=[];return{send:function(t){t=JSON.stringify(t),g&&1===g.readyState?g.send(t):y.push(t)},listen:function(t){if("function"!=typeof t)throw new TypeError("cb must be a function!");b.push(t)},reloadPage:n,reloadCSS:o}}(),window["budo-livereload"]=e.exports},{"./error-popup":2,"reload-css":7}],2:[function(t,e,r){function n(){i&&i.parentNode&&i.parentNode.removeChild(i),s&&s.parentNode&&s.parentNode.removeChild(s),i=null,s=null}function o(t){if(s)return void(s.textContent=t);var e=document.createElement("div"),r=document.createElement("pre");r.textContent=t,a(e,{position:"fixed",top:"0",left:"0",width:"100%",zIndex:"100000000",padding:"0",margin:"0","box-sizing":"border-box",background:"transparent",display:"block",overflow:"initial"}),a(r,{padding:"20px",overflow:"initial",zIndex:"100000000","box-sizing":"border-box",background:"#fff",display:"block","font-size":"12px","font-weight":"normal","font-family":"monospace","word-wrap":"break-word","white-space":"pre-wrap",color:"#ff0000",margin:"10px",border:"1px dashed hsla(0, 0%, 50%, 0.25)",borderRadius:"5px",boxShadow:"0px 10px 20px rgba(0, 0, 0, 0.2)"}),e.appendChild(r),document.body.appendChild(e),s=r,i=e}function a(t,e){for(var r in e)e.hasOwnProperty(r)&&(t.style[r]=e[r]);return e}var i,s;e.exports.hide=n,e.exports.show=o},{}],3:[function(t,e,r){(function(t){!function(n){function o(t){throw new RangeError(U[t])}function a(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function i(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(E,"."),n+a(t.split("."),e).join(".")}function s(t){for(var e,r,n=[],o=0,a=t.length;o<a;)e=t.charCodeAt(o++),e>=55296&&e<=56319&&o<a?(r=t.charCodeAt(o++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--)):n.push(e);return n}function u(t){return a(t,function(t){var e="";return t>65535&&(t-=65536,e+=F(t>>>10&1023|55296),t=56320|1023&t),e+=F(t)}).join("")}function c(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:j}function h(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function l(t,e,r){var n=0;for(t=r?P(t/I):t>>1,t+=P(t/e);t>L*C>>1;n+=j)t=P(t/L);return P(n+(L+1)*t/(t+A))}function f(t){var e,r,n,a,i,s,h,f,p,d,m=[],v=t.length,y=0,g=S,b=q;for(r=t.lastIndexOf(N),r<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&o("not-basic"),m.push(t.charCodeAt(n));for(a=r>0?r+1:0;a<v;){for(i=y,s=1,h=j;a>=v&&o("invalid-input"),f=c(t.charCodeAt(a++)),(f>=j||f>P((x-y)/s))&&o("overflow"),y+=f*s,p=h<=b?O:h>=b+C?C:h-b,!(f<p);h+=j)d=j-p,s>P(x/d)&&o("overflow"),s*=d;e=m.length+1,b=l(y-i,e,0==i),P(y/e)>x-g&&o("overflow"),g+=P(y/e),y%=e,m.splice(y++,0,g)}return u(m)}function p(t){var e,r,n,a,i,u,c,f,p,d,m,v,y,g,b,w=[];for(t=s(t),v=t.length,e=S,r=0,i=q,u=0;u<v;++u)(m=t[u])<128&&w.push(F(m));for(n=a=w.length,a&&w.push(N);n<v;){for(c=x,u=0;u<v;++u)(m=t[u])>=e&&m<c&&(c=m);for(y=n+1,c-e>P((x-r)/y)&&o("overflow"),r+=(c-e)*y,e=c,u=0;u<v;++u)if(m=t[u],m<e&&++r>x&&o("overflow"),m==e){for(f=r,p=j;d=p<=i?O:p>=i+C?C:p-i,!(f<d);p+=j)b=f-d,g=j-d,w.push(F(h(d+b%g,0))),f=P(b/g);w.push(F(h(f,0))),i=l(r,y,n==a),r=0,++n}++r,++e}return w.join("")}function d(t){return i(t,function(t){return R.test(t)?f(t.slice(4).toLowerCase()):t})}function m(t){return i(t,function(t){return k.test(t)?"xn--"+p(t):t})}var v="object"==typeof r&&r&&!r.nodeType&&r,y="object"==typeof e&&e&&!e.nodeType&&e,g="object"==typeof t&&t;g.global!==g&&g.window!==g&&g.self!==g||(n=g);var b,w,x=2147483647,j=36,O=1,C=26,A=38,I=700,q=72,S=128,N="-",R=/^xn--/,k=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,U={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=j-O,P=Math.floor,F=String.fromCharCode;if(b={version:"1.4.1",ucs2:{decode:s,encode:u},decode:f,encode:p,toASCII:m,toUnicode:d},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return b});else if(v&&y)if(e.exports==v)y.exports=b;else for(w in b)b.hasOwnProperty(w)&&(v[w]=b[w]);else n.punycode=b}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.exports=function(t,e,r,a){e=e||"&",r=r||"=";var i={};if("string"!=typeof t||0===t.length)return i;var s=/\+/g;t=t.split(e);var u=1e3;a&&"number"==typeof a.maxKeys&&(u=a.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var h=0;h<c;++h){var l,f,p,d,m=t[h].replace(s,"%20"),v=m.indexOf(r);v>=0?(l=m.substr(0,v),f=m.substr(v+1)):(l=m,f=""),p=decodeURIComponent(l),d=decodeURIComponent(f),n(i,p)?o(i[p])?i[p].push(d):i[p]=[i[p],d]:i[p]=d}return i};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],5:[function(t,e,r){"use strict";function n(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var o=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(t,e,r,s){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?n(i(t),function(i){var s=encodeURIComponent(o(i))+r;return a(t[i])?n(t[i],function(t){return s+encodeURIComponent(o(t))}).join(e):s+encodeURIComponent(o(t[i]))}).join(e):s?encodeURIComponent(o(s))+r+encodeURIComponent(o(t)):""};var a=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},{}],6:[function(t,e,r){"use strict";r.decode=r.parse=t("./decode"),r.encode=r.stringify=t("./encode")},{"./decode":4,"./encode":5}],7:[function(t,e,r){function n(t){return t.busted||(t.rule=h(t.rule,t.index)),t.busted=!0,t}function o(t,e){var r=t.getAttribute("href"),n=t.cloneNode(!1);n.href=p(r);var o=t.parentNode;return o.lastChild===t?o.appendChild(n):o.insertBefore(n,t.nextSibling),n.onload=function(){t.parentNode&&t.parentNode.removeChild(t),e&&e()},n}function a(t,e){if(u(t))return!1;if("LINK"===t.tagName){if(!t.getAttribute("href"))return!1;if(e&&!i(t))return!1}return!0}function i(t){var e=t.getAttribute("href");if(!e||"stylesheet"!==t.getAttribute("rel"))return!1;var r=m.parse(e);return(!r.protocol||r.protocol===window.document.location.protocol)&&(!r.host||v.indexOf(r.host.toLowerCase())>=0)}function s(t){var e=[];return t.forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),e}function u(t){return"print"===t.getAttribute("media")}function c(t){return Array.prototype.slice.call(document.getElementsByTagName(t))}function h(t,e){var r=t.parentStyleSheet,n=p(t.href),o="";try{o=t.media.length?Array.prototype.join.call(t.media,", "):""}catch(t){}var a='@import url("'+n+'") '+o+";";return r.insertRule(a,e),r.deleteRule(e+1),r.cssRules[e]}function l(t){for(var e=t;e.parentImport;)e=e.parentImport;return e}function f(t,e,r,n,o){if(e){var a;try{a=e.cssRules}catch(t){}if(a&&0!==a.length)for(var i=0;i<a.length;i++){var s=a[i];if(s.type===window.CSSRule.IMPORT_RULE){var u=s.parentStyleSheet.href||document.location.href,c=m.resolve(u,s.href),h=m.key(c,n),l={index:i,rule:s,parentImport:o,key:h,href:s.href};r.push(l),f(t,s.styleSheet,r,n,l)}}}}function p(t){var e=m.parse(t),r=d.parse(e.search);return r._livereload=String(Date.now()),e.query=void 0,e.search=d.stringify(r),m.format(e)}var d=t("query-string"),m=t("./lib/url"),v=function(){var t=["localhost","127.0.0.1"].map(function(t){return t+":"+window.document.location.port});return"localhost"!==window.document.location.hostname&&(t=t.concat([window.document.location.host])),t.map(function(t){return t.toLowerCase()})}();e.exports=function(t,e){var r=!0;e&&!1===e.local&&(r=!1);var i=document.location.pathname,u=document.querySelector("base");if(u){i=u.getAttribute("href");var h=m.parse(i);h.pathname="/",h.hash=null,h.query=null,h.search=null,i=m.format(h)}var p=["link","style"].map(c).reduce(function(t,e){return t.concat(e)},[]).filter(function(t){return a(t,r)}).map(function(t){var e={element:t},r=t.getAttribute("href");return"LINK"===t.tagName&&r&&(e.key=m.key(r,i)),e}),d=[];p.forEach(function(t){f(t,t.element.sheet,d,i)});var v=t?m.key(t,i):null,y=d;v&&(y=y.filter(function(t){return t.key===v})),y=y.map(l),y=s(y).reverse(),y.forEach(n),p.filter(function(t){var e=!v||t.key===v;return"LINK"===t.element.tagName&&e}).forEach(function(t){t.element=o(t.element)})}},{"./lib/url":8,"query-string":10}],8:[function(t,e,r){var n=t("url");e.exports.resolve=n.resolve.bind(n),e.exports.format=n.format.bind(n),e.exports.parse=function(t){return 0===t.indexOf("//")&&(t=document.location.protocol+t),n.parse(t)},e.exports.key=function(t,e){var r=n.parse(t);return t=n.format({pathname:(r.pathname||"").replace(/\/+$/,"/")}),n.resolve(e||document.location.pathname,t)}},{url:12}],9:[function(t,e,r){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,u=n(t),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var h in r)a.call(r,h)&&(u[h]=r[h]);if(o){s=o(r);for(var l=0;l<s.length;l++)i.call(r,s[l])&&(u[s[l]]=r[s[l]])}}return u}},{}],10:[function(t,e,r){"use strict";function n(t){switch(t.arrayFormat){case"index":return function(e,r,n){return null===r?[a(e,t),"[",n,"]"].join(""):[a(e,t),"[",a(n,t),"]=",a(r,t)].join("")};case"bracket":return function(e,r){return null===r?a(e,t):[a(e,t),"[]=",a(r,t)].join("")};default:return function(e,r){return null===r?a(e,t):[a(e,t),"=",a(r,t)].join("")}}}function o(t){var e;switch(t.arrayFormat){case"index":return function(t,r,n){if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e)return void(n[t]=r);void 0===n[t]&&(n[t]={}),n[t][e[1]]=r};case"bracket":return function(t,r,n){return e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0===n[t]?void(n[t]=[r]):void(n[t]=[].concat(n[t],r)):void(n[t]=r)};default:return function(t,e,r){if(void 0===r[t])return void(r[t]=e);r[t]=[].concat(r[t],e)}}}function a(t,e){return e.encode?e.strict?s(t):encodeURIComponent(t):t}function i(t){return Array.isArray(t)?t.sort():"object"==typeof t?i(Object.keys(t)).sort(function(t,e){return Number(t)-Number(e)}).map(function(e){return t[e]}):t}var s=t("strict-uri-encode"),u=t("object-assign");r.extract=function(t){return t.split("?")[1]||""},r.parse=function(t,e){e=u({arrayFormat:"none"},e);var r=o(e),n=Object.create(null);return"string"!=typeof t?n:(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),o=e.shift(),a=e.length>0?e.join("="):void 0;a=void 0===a?null:decodeURIComponent(a),r(decodeURIComponent(o),a,n)}),Object.keys(n).sort().reduce(function(t,e){var r=n[e];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?t[e]=i(r):t[e]=r,t},Object.create(null))):n},r.stringify=function(t,e){e=u({encode:!0,strict:!0,arrayFormat:"none"},e);var r=n(e);return t?Object.keys(t).sort().map(function(n){var o=t[n];if(void 0===o)return"";if(null===o)return a(n,e);if(Array.isArray(o)){var i=[];return o.slice().forEach(function(t){void 0!==t&&i.push(r(n,t,i.length))}),i.join("&")}return a(n,e)+"="+a(o,e)}).filter(function(t){return t.length>0}).join("&"):""}},{"object-assign":9,"strict-uri-encode":11}],11:[function(t,e,r){"use strict";e.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},{}],12:[function(t,e,r){"use strict";function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(t,e,r){if(t&&c.isObject(t)&&t instanceof n)return t;var o=new n;return o.parse(t,e,r),o}function a(t){return c.isString(t)&&(t=o(t)),t instanceof n?t.format():n.prototype.format.call(t)}function i(t,e){return o(t,!1,!0).resolve(e)}function s(t,e){return t?o(t,!1,!0).resolveObject(e):e}var u=t("punycode"),c=t("./util");r.parse=o,r.resolve=i,r.resolveObject=s,r.format=a,r.Url=n;var h=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n","\t"],d=["{","}","|","\\","^","`"].concat(p),m=["'"].concat(d),v=["%","/","?",";","#"].concat(m),y=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},x={javascript:!0,"javascript:":!0},j={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=t("querystring");n.prototype.parse=function(t,e,r){if(!c.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=-1!==n&&n<t.indexOf("#")?"?":"#",a=t.split(o),i=/\\/g;a[0]=a[0].replace(i,"/"),t=a.join(o);var s=t;if(s=s.trim(),!r&&1===t.split("#").length){var l=f.exec(s);if(l)return this.path=s,this.href=s,this.pathname=l[1],l[2]?(this.search=l[2],this.query=e?O.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var p=h.exec(s);if(p){p=p[0];var d=p.toLowerCase();this.protocol=d,s=s.substr(p.length)}if(r||p||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var C="//"===s.substr(0,2);!C||p&&x[p]||(s=s.substr(2),this.slashes=!0)}if(!x[p]&&(C||p&&!j[p])){for(var A=-1,I=0;I<y.length;I++){var q=s.indexOf(y[I]);-1!==q&&(-1===A||q<A)&&(A=q)}var S,N;N=-1===A?s.lastIndexOf("@"):s.lastIndexOf("@",A),-1!==N&&(S=s.slice(0,N),s=s.slice(N+1),this.auth=decodeURIComponent(S)),A=-1;for(var I=0;I<v.length;I++){var q=s.indexOf(v[I]);-1!==q&&(-1===A||q<A)&&(A=q)}-1===A&&(A=s.length),this.host=s.slice(0,A),s=s.slice(A),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var k=this.hostname.split(/\./),I=0,E=k.length;I<E;I++){var U=k[I];if(U&&!U.match(g)){for(var L="",P=0,F=U.length;P<F;P++)U.charCodeAt(P)>127?L+="x":L+=U[P];if(!L.match(g)){var T=k.slice(0,I),$=k.slice(I+1),z=U.match(b);z&&(T.push(z[1]),$.unshift(z[2])),$.length&&(s="/"+$.join(".")+s),this.hostname=T.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=u.toASCII(this.hostname));var _=this.port?":"+this.port:"",K=this.hostname||"";this.host=K+_,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!w[d])for(var I=0,E=m.length;I<E;I++){var B=m[I];if(-1!==s.indexOf(B)){var D=encodeURIComponent(B);D===B&&(D=escape(B)),s=s.split(B).join(D)}}var M=s.indexOf("#");-1!==M&&(this.hash=s.substr(M),s=s.slice(0,M));var H=s.indexOf("?");if(-1!==H?(this.search=s.substr(H),this.query=s.substr(H+1),e&&(this.query=O.parse(this.query)),s=s.slice(0,H)):e&&(this.search="",this.query={}),s&&(this.pathname=s),j[d]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var _=this.pathname||"",J=this.search||"";this.path=_+J}return this.href=this.format(),this},n.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&c.isObject(this.query)&&Object.keys(this.query).length&&(a=O.stringify(this.query));var i=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||j[e])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),i&&"?"!==i.charAt(0)&&(i="?"+i),r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),i=i.replace("#","%23"),e+o+r+i+n},n.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},n.prototype.resolveObject=function(t){if(c.isString(t)){var e=new n;e.parse(t,!1,!0),t=e}for(var r=new n,o=Object.keys(this),a=0;a<o.length;a++){var i=o[a];r[i]=this[i]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),u=0;u<s.length;u++){var h=s[u];"protocol"!==h&&(r[h]=t[h])}return j[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!j[t.protocol]){for(var l=Object.keys(t),f=0;f<l.length;f++){var p=l[f];r[p]=t[p]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||x[t.protocol])r.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var m=r.pathname||"",v=r.search||"";r.path=m+v}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),g=t.host||t.pathname&&"/"===t.pathname.charAt(0),b=g||y||r.host&&t.pathname,w=b,O=r.pathname&&r.pathname.split("/")||[],d=t.pathname&&t.pathname.split("/")||[],C=r.protocol&&!j[r.protocol];if(C&&(r.hostname="",r.port=null,r.host&&(""===O[0]?O[0]=r.host:O.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),b=b&&(""===d[0]||""===O[0])),g)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,O=d;else if(d.length)O||(O=[]),O.pop(),O=O.concat(d),r.search=t.search,r.query=t.query;else if(!c.isNullOrUndefined(t.search)){if(C){r.hostname=r.host=O.shift();var A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return r.search=t.search,r.query=t.query,c.isNull(r.pathname)&&c.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!O.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=O.slice(-1)[0],q=(r.host||t.host||O.length>1)&&("."===I||".."===I)||""===I,S=0,N=O.length;N>=0;N--)I=O[N],"."===I?O.splice(N,1):".."===I?(O.splice(N,1),S++):S&&(O.splice(N,1),S--);if(!b&&!w)for(;S--;S)O.unshift("..");!b||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),q&&"/"!==O.join("/").substr(-1)&&O.push("");var R=""===O[0]||O[0]&&"/"===O[0].charAt(0);if(C){r.hostname=r.host=R?"":O.length?O.shift():"";var A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return b=b||r.host&&O.length,b&&!R&&O.unshift(""),O.length?r.pathname=O.join("/"):(r.pathname=null,r.path=null),c.isNull(r.pathname)&&c.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var t=this.host,e=l.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{"./util":13,punycode:3,querystring:6}],13:[function(t,e,r){"use strict";e.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}]},{},[1]);
!function(){function t(e,r,n){function o(i,s){if(!r[i]){if(!e[i]){var c="function"==typeof require&&require;if(!s&&c)return c(i,!0);if(a)return a(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[i]={exports:{}};e[i][0].call(h.exports,function(t){var r=e[i][1][t];return o(r||t)},h,h.exports,t,e,r,n)}return r[i].exports}for(var a="function"==typeof require&&require,i=0;i<n.length;i++)o(n[i]);return o}return t}()({1:[function(t,e,r){function n(){window.location.reload(!0)}var o=t("reload-css"),a=t("./error-popup");e.exports=function(){function t(){return m&&v?void console.warn("[budo] LiveReload disconnected. You may need to generate and trust a self-signed certificate, see here:\nhttps://github.com/mattdesl/budo/blob/master/docs/command-line-usage.md#ssl-on-ios"):v?void console.warn("[budo] LiveReload disconnected. Please reload the page to retry."):u>=c?void console.warn("[budo] LiveReload disconnected, exceeded retry count. Please reload the page to retry."):(h||(h=!0,console.warn("[budo] LiveReload disconnected, retrying...")),u++,clearTimeout(i),void(i=setTimeout(e,s)))}function e(){g&&(g.onclose=function(){},g.close()),g=r()}function r(){var e=v?"wss://":"ws://",r=e+d+"/livereload",i=new window.WebSocket(r);return i.onmessage=function(t){var e;try{e=JSON.parse(t.data)}catch(e){return void console.warn("Error parsing LiveReload server data: "+t.data)}"reload"===e.event?/^\.?css$/i.test(e.ext)?o(e.url):n():"error-popup"===e.event&&(e.message?a.show(e.message):a.hide()),b.forEach(function(t){t(e)})},i.onclose=function(e){1e3!==e.code&&1001!==e.code&&t()},i.onopen=function(){h&&(h=!1,u=0,console.warn("[budo] LiveReload reconnected.")),y.length&&1===i.readyState&&(y.forEach(function(t){i.send(t)}),y.length=0)},i.onerror=function(){return!1},i}var i,s=1e3,c=50,u=0,h=!1,l=document.location.protocol,f=document.location.hostname,p=document.location.port,d=f+":"+p,m=/(iOS|iPhone|iPad|iPod)/i.test(navigator.userAgent),v=/^https:/i.test(l),y=[],g=r(),b=[];return{send:function(t){t=JSON.stringify(t),g&&1===g.readyState?g.send(t):y.push(t)},listen:function(t){if("function"!=typeof t)throw new TypeError("cb must be a function!");b.push(t)},showError:function(t){a.show(t)},clearError:function(){a.hide()},reloadPage:n,reloadCSS:o}}(),window["budo-livereload"]=e.exports},{"./error-popup":2,"reload-css":7}],2:[function(t,e,r){function n(){i&&i.parentNode&&i.parentNode.removeChild(i),s&&s.parentNode&&s.parentNode.removeChild(s),i=null,s=null}function o(t){if(s)return void(s.textContent=t);var e=document.createElement("div"),r=document.createElement("pre");r.textContent=t,a(e,{position:"fixed",top:"0",left:"0",width:"100%",zIndex:"100000000",padding:"0",margin:"0","box-sizing":"border-box",background:"transparent",display:"block",overflow:"initial"}),a(r,{padding:"20px",overflow:"initial",zIndex:"100000000","box-sizing":"border-box",background:"#fff",display:"block","font-size":"12px","font-weight":"normal","font-family":"monospace","word-wrap":"break-word","white-space":"pre-wrap",color:"#ff0000",margin:"10px",border:"1px dashed hsla(0, 0%, 50%, 0.25)",borderRadius:"5px",boxShadow:"0px 10px 20px rgba(0, 0, 0, 0.2)"}),e.appendChild(r),document.body.appendChild(e),s=r,i=e}function a(t,e){for(var r in e)e.hasOwnProperty(r)&&(t.style[r]=e[r]);return e}var i,s;e.exports.hide=n,e.exports.show=o},{}],3:[function(t,e,r){(function(t){!function(n){function o(t){throw new RangeError(U[t])}function a(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function i(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(E,"."),n+a(t.split("."),e).join(".")}function s(t){for(var e,r,n=[],o=0,a=t.length;o<a;)e=t.charCodeAt(o++),e>=55296&&e<=56319&&o<a?(r=t.charCodeAt(o++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--)):n.push(e);return n}function c(t){return a(t,function(t){var e="";return t>65535&&(t-=65536,e+=F(t>>>10&1023|55296),t=56320|1023&t),e+=F(t)}).join("")}function u(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:j}function h(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function l(t,e,r){var n=0;for(t=r?P(t/I):t>>1,t+=P(t/e);t>L*C>>1;n+=j)t=P(t/L);return P(n+(L+1)*t/(t+A))}function f(t){var e,r,n,a,i,s,h,f,p,d,m=[],v=t.length,y=0,g=S,b=q;for(r=t.lastIndexOf(N),r<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&o("not-basic"),m.push(t.charCodeAt(n));for(a=r>0?r+1:0;a<v;){for(i=y,s=1,h=j;a>=v&&o("invalid-input"),f=u(t.charCodeAt(a++)),(f>=j||f>P((x-y)/s))&&o("overflow"),y+=f*s,p=h<=b?O:h>=b+C?C:h-b,!(f<p);h+=j)d=j-p,s>P(x/d)&&o("overflow"),s*=d;e=m.length+1,b=l(y-i,e,0==i),P(y/e)>x-g&&o("overflow"),g+=P(y/e),y%=e,m.splice(y++,0,g)}return c(m)}function p(t){var e,r,n,a,i,c,u,f,p,d,m,v,y,g,b,w=[];for(t=s(t),v=t.length,e=S,r=0,i=q,c=0;c<v;++c)(m=t[c])<128&&w.push(F(m));for(n=a=w.length,a&&w.push(N);n<v;){for(u=x,c=0;c<v;++c)(m=t[c])>=e&&m<u&&(u=m);for(y=n+1,u-e>P((x-r)/y)&&o("overflow"),r+=(u-e)*y,e=u,c=0;c<v;++c)if(m=t[c],m<e&&++r>x&&o("overflow"),m==e){for(f=r,p=j;d=p<=i?O:p>=i+C?C:p-i,!(f<d);p+=j)b=f-d,g=j-d,w.push(F(h(d+b%g,0))),f=P(b/g);w.push(F(h(f,0))),i=l(r,y,n==a),r=0,++n}++r,++e}return w.join("")}function d(t){return i(t,function(t){return R.test(t)?f(t.slice(4).toLowerCase()):t})}function m(t){return i(t,function(t){return k.test(t)?"xn--"+p(t):t})}var v="object"==typeof r&&r&&!r.nodeType&&r,y="object"==typeof e&&e&&!e.nodeType&&e,g="object"==typeof t&&t;g.global!==g&&g.window!==g&&g.self!==g||(n=g);var b,w,x=2147483647,j=36,O=1,C=26,A=38,I=700,q=72,S=128,N="-",R=/^xn--/,k=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,U={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=j-O,P=Math.floor,F=String.fromCharCode;if(b={version:"1.4.1",ucs2:{decode:s,encode:c},decode:f,encode:p,toASCII:m,toUnicode:d},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return b});else if(v&&y)if(e.exports==v)y.exports=b;else for(w in b)b.hasOwnProperty(w)&&(v[w]=b[w]);else n.punycode=b}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.exports=function(t,e,r,a){e=e||"&",r=r||"=";var i={};if("string"!=typeof t||0===t.length)return i;var s=/\+/g;t=t.split(e);var c=1e3;a&&"number"==typeof a.maxKeys&&(c=a.maxKeys);var u=t.length;c>0&&u>c&&(u=c);for(var h=0;h<u;++h){var l,f,p,d,m=t[h].replace(s,"%20"),v=m.indexOf(r);v>=0?(l=m.substr(0,v),f=m.substr(v+1)):(l=m,f=""),p=decodeURIComponent(l),d=decodeURIComponent(f),n(i,p)?o(i[p])?i[p].push(d):i[p]=[i[p],d]:i[p]=d}return i};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],5:[function(t,e,r){"use strict";function n(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var o=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(t,e,r,s){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?n(i(t),function(i){var s=encodeURIComponent(o(i))+r;return a(t[i])?n(t[i],function(t){return s+encodeURIComponent(o(t))}).join(e):s+encodeURIComponent(o(t[i]))}).join(e):s?encodeURIComponent(o(s))+r+encodeURIComponent(o(t)):""};var a=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},{}],6:[function(t,e,r){"use strict";r.decode=r.parse=t("./decode"),r.encode=r.stringify=t("./encode")},{"./decode":4,"./encode":5}],7:[function(t,e,r){function n(t){return t.busted||(t.rule=h(t.rule,t.index)),t.busted=!0,t}function o(t,e){var r=t.getAttribute("href"),n=t.cloneNode(!1);n.href=p(r);var o=t.parentNode;return o.lastChild===t?o.appendChild(n):o.insertBefore(n,t.nextSibling),n.onload=function(){t.parentNode&&t.parentNode.removeChild(t),e&&e()},n}function a(t,e){if(c(t))return!1;if("LINK"===t.tagName){if(!t.getAttribute("href"))return!1;if(e&&!i(t))return!1}return!0}function i(t){var e=t.getAttribute("href");if(!e||"stylesheet"!==t.getAttribute("rel"))return!1;var r=m.parse(e);return(!r.protocol||r.protocol===window.document.location.protocol)&&(!r.host||v.indexOf(r.host.toLowerCase())>=0)}function s(t){var e=[];return t.forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),e}function c(t){return"print"===t.getAttribute("media")}function u(t){return Array.prototype.slice.call(document.getElementsByTagName(t))}function h(t,e){var r=t.parentStyleSheet,n=p(t.href),o="";try{o=t.media.length?Array.prototype.join.call(t.media,", "):""}catch(t){}var a='@import url("'+n+'") '+o+";";return r.insertRule(a,e),r.deleteRule(e+1),r.cssRules[e]}function l(t){for(var e=t;e.parentImport;)e=e.parentImport;return e}function f(t,e,r,n,o){if(e){var a;try{a=e.cssRules}catch(t){}if(a&&0!==a.length)for(var i=0;i<a.length;i++){var s=a[i];if(s.type===window.CSSRule.IMPORT_RULE){var c=s.parentStyleSheet.href||document.location.href,u=m.resolve(c,s.href),h=m.key(u,n),l={index:i,rule:s,parentImport:o,key:h,href:s.href};r.push(l),f(t,s.styleSheet,r,n,l)}}}}function p(t){var e=m.parse(t),r=d.parse(e.search);return r._livereload=String(Date.now()),e.query=void 0,e.search=d.stringify(r),m.format(e)}var d=t("query-string"),m=t("./lib/url"),v=function(){var t=["localhost","127.0.0.1"].map(function(t){return t+":"+window.document.location.port});return"localhost"!==window.document.location.hostname&&(t=t.concat([window.document.location.host])),t.map(function(t){return t.toLowerCase()})}();e.exports=function(t,e){var r=!0;e&&!1===e.local&&(r=!1);var i=document.location.pathname,c=document.querySelector("base");if(c){i=c.getAttribute("href");var h=m.parse(i);h.pathname="/",h.hash=null,h.query=null,h.search=null,i=m.format(h)}var p=["link","style"].map(u).reduce(function(t,e){return t.concat(e)},[]).filter(function(t){return a(t,r)}).map(function(t){var e={element:t},r=t.getAttribute("href");return"LINK"===t.tagName&&r&&(e.key=m.key(r,i)),e}),d=[];p.forEach(function(t){f(t,t.element.sheet,d,i)});var v=t?m.key(t,i):null,y=d;v&&(y=y.filter(function(t){return t.key===v})),y=y.map(l),y=s(y).reverse(),y.forEach(n),p.filter(function(t){var e=!v||t.key===v;return"LINK"===t.element.tagName&&e}).forEach(function(t){t.element=o(t.element)})}},{"./lib/url":8,"query-string":10}],8:[function(t,e,r){var n=t("url");e.exports.resolve=n.resolve.bind(n),e.exports.format=n.format.bind(n),e.exports.parse=function(t){return 0===t.indexOf("//")&&(t=document.location.protocol+t),n.parse(t)},e.exports.key=function(t,e){var r=n.parse(t);return t=n.format({pathname:(r.pathname||"").replace(/\/+$/,"/")}),n.resolve(e||document.location.pathname,t)}},{url:12}],9:[function(t,e,r){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,c=n(t),u=1;u<arguments.length;u++){r=Object(arguments[u]);for(var h in r)a.call(r,h)&&(c[h]=r[h]);if(o){s=o(r);for(var l=0;l<s.length;l++)i.call(r,s[l])&&(c[s[l]]=r[s[l]])}}return c}},{}],10:[function(t,e,r){"use strict";function n(t){switch(t.arrayFormat){case"index":return function(e,r,n){return null===r?[a(e,t),"[",n,"]"].join(""):[a(e,t),"[",a(n,t),"]=",a(r,t)].join("")};case"bracket":return function(e,r){return null===r?a(e,t):[a(e,t),"[]=",a(r,t)].join("")};default:return function(e,r){return null===r?a(e,t):[a(e,t),"=",a(r,t)].join("")}}}function o(t){var e;switch(t.arrayFormat){case"index":return function(t,r,n){if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e)return void(n[t]=r);void 0===n[t]&&(n[t]={}),n[t][e[1]]=r};case"bracket":return function(t,r,n){return e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0===n[t]?void(n[t]=[r]):void(n[t]=[].concat(n[t],r)):void(n[t]=r)};default:return function(t,e,r){if(void 0===r[t])return void(r[t]=e);r[t]=[].concat(r[t],e)}}}function a(t,e){return e.encode?e.strict?s(t):encodeURIComponent(t):t}function i(t){return Array.isArray(t)?t.sort():"object"==typeof t?i(Object.keys(t)).sort(function(t,e){return Number(t)-Number(e)}).map(function(e){return t[e]}):t}var s=t("strict-uri-encode"),c=t("object-assign");r.extract=function(t){return t.split("?")[1]||""},r.parse=function(t,e){e=c({arrayFormat:"none"},e);var r=o(e),n=Object.create(null);return"string"!=typeof t?n:(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),o=e.shift(),a=e.length>0?e.join("="):void 0;a=void 0===a?null:decodeURIComponent(a),r(decodeURIComponent(o),a,n)}),Object.keys(n).sort().reduce(function(t,e){var r=n[e];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?t[e]=i(r):t[e]=r,t},Object.create(null))):n},r.stringify=function(t,e){e=c({encode:!0,strict:!0,arrayFormat:"none"},e);var r=n(e);return t?Object.keys(t).sort().map(function(n){var o=t[n];if(void 0===o)return"";if(null===o)return a(n,e);if(Array.isArray(o)){var i=[];return o.slice().forEach(function(t){void 0!==t&&i.push(r(n,t,i.length))}),i.join("&")}return a(n,e)+"="+a(o,e)}).filter(function(t){return t.length>0}).join("&"):""}},{"object-assign":9,"strict-uri-encode":11}],11:[function(t,e,r){"use strict";e.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},{}],12:[function(t,e,r){"use strict";function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(t,e,r){if(t&&u.isObject(t)&&t instanceof n)return t;var o=new n;return o.parse(t,e,r),o}function a(t){return u.isString(t)&&(t=o(t)),t instanceof n?t.format():n.prototype.format.call(t)}function i(t,e){return o(t,!1,!0).resolve(e)}function s(t,e){return t?o(t,!1,!0).resolveObject(e):e}var c=t("punycode"),u=t("./util");r.parse=o,r.resolve=i,r.resolveObject=s,r.format=a,r.Url=n;var h=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n","\t"],d=["{","}","|","\\","^","`"].concat(p),m=["'"].concat(d),v=["%","/","?",";","#"].concat(m),y=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},x={javascript:!0,"javascript:":!0},j={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=t("querystring");n.prototype.parse=function(t,e,r){if(!u.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=-1!==n&&n<t.indexOf("#")?"?":"#",a=t.split(o),i=/\\/g;a[0]=a[0].replace(i,"/"),t=a.join(o);var s=t;if(s=s.trim(),!r&&1===t.split("#").length){var l=f.exec(s);if(l)return this.path=s,this.href=s,this.pathname=l[1],l[2]?(this.search=l[2],this.query=e?O.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var p=h.exec(s);if(p){p=p[0];var d=p.toLowerCase();this.protocol=d,s=s.substr(p.length)}if(r||p||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var C="//"===s.substr(0,2);!C||p&&x[p]||(s=s.substr(2),this.slashes=!0)}if(!x[p]&&(C||p&&!j[p])){for(var A=-1,I=0;I<y.length;I++){var q=s.indexOf(y[I]);-1!==q&&(-1===A||q<A)&&(A=q)}var S,N;N=-1===A?s.lastIndexOf("@"):s.lastIndexOf("@",A),-1!==N&&(S=s.slice(0,N),s=s.slice(N+1),this.auth=decodeURIComponent(S)),A=-1;for(var I=0;I<v.length;I++){var q=s.indexOf(v[I]);-1!==q&&(-1===A||q<A)&&(A=q)}-1===A&&(A=s.length),this.host=s.slice(0,A),s=s.slice(A),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var k=this.hostname.split(/\./),I=0,E=k.length;I<E;I++){var U=k[I];if(U&&!U.match(g)){for(var L="",P=0,F=U.length;P<F;P++)U.charCodeAt(P)>127?L+="x":L+=U[P];if(!L.match(g)){var T=k.slice(0,I),$=k.slice(I+1),z=U.match(b);z&&(T.push(z[1]),$.unshift(z[2])),$.length&&(s="/"+$.join(".")+s),this.hostname=T.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=c.toASCII(this.hostname));var _=this.port?":"+this.port:"",K=this.hostname||"";this.host=K+_,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!w[d])for(var I=0,E=m.length;I<E;I++){var B=m[I];if(-1!==s.indexOf(B)){var D=encodeURIComponent(B);D===B&&(D=escape(B)),s=s.split(B).join(D)}}var M=s.indexOf("#");-1!==M&&(this.hash=s.substr(M),s=s.slice(0,M));var H=s.indexOf("?");if(-1!==H?(this.search=s.substr(H),this.query=s.substr(H+1),e&&(this.query=O.parse(this.query)),s=s.slice(0,H)):e&&(this.search="",this.query={}),s&&(this.pathname=s),j[d]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var _=this.pathname||"",J=this.search||"";this.path=_+J}return this.href=this.format(),this},n.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&u.isObject(this.query)&&Object.keys(this.query).length&&(a=O.stringify(this.query));var i=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||j[e])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),i&&"?"!==i.charAt(0)&&(i="?"+i),r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),i=i.replace("#","%23"),e+o+r+i+n},n.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},n.prototype.resolveObject=function(t){if(u.isString(t)){var e=new n;e.parse(t,!1,!0),t=e}for(var r=new n,o=Object.keys(this),a=0;a<o.length;a++){var i=o[a];r[i]=this[i]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),c=0;c<s.length;c++){var h=s[c];"protocol"!==h&&(r[h]=t[h])}return j[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!j[t.protocol]){for(var l=Object.keys(t),f=0;f<l.length;f++){var p=l[f];r[p]=t[p]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||x[t.protocol])r.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var m=r.pathname||"",v=r.search||"";r.path=m+v}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),g=t.host||t.pathname&&"/"===t.pathname.charAt(0),b=g||y||r.host&&t.pathname,w=b,O=r.pathname&&r.pathname.split("/")||[],d=t.pathname&&t.pathname.split("/")||[],C=r.protocol&&!j[r.protocol];if(C&&(r.hostname="",r.port=null,r.host&&(""===O[0]?O[0]=r.host:O.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),b=b&&(""===d[0]||""===O[0])),g)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,O=d;else if(d.length)O||(O=[]),O.pop(),O=O.concat(d),r.search=t.search,r.query=t.query;else if(!u.isNullOrUndefined(t.search)){if(C){r.hostname=r.host=O.shift();var A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return r.search=t.search,r.query=t.query,u.isNull(r.pathname)&&u.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!O.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=O.slice(-1)[0],q=(r.host||t.host||O.length>1)&&("."===I||".."===I)||""===I,S=0,N=O.length;N>=0;N--)I=O[N],"."===I?O.splice(N,1):".."===I?(O.splice(N,1),S++):S&&(O.splice(N,1),S--);if(!b&&!w)for(;S--;S)O.unshift("..");!b||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),q&&"/"!==O.join("/").substr(-1)&&O.push("");var R=""===O[0]||O[0]&&"/"===O[0].charAt(0);if(C){r.hostname=r.host=R?"":O.length?O.shift():"";var A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return b=b||r.host&&O.length,b&&!R&&O.unshift(""),O.length?r.pathname=O.join("/"):(r.pathname=null,r.path=null),u.isNull(r.pathname)&&u.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var t=this.host,e=l.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{"./util":13,punycode:3,querystring:6}],13:[function(t,e,r){"use strict";e.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}]},{},[1]);

@@ -43,2 +43,8 @@ var reloadCSS = require('reload-css')

},
showError: function (message) {
errorPopup.show(message)
},
clearError: function () {
errorPopup.hide()
},
reloadPage: reloadPage,

@@ -45,0 +51,0 @@ reloadCSS: reloadCSS

{
"name": "budo",
"version": "11.3.2",
"version": "11.4.0",
"description": "a browserify server for rapid prototyping",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc