this.webpackChunk([2],Array(219).concat([function(t,n,a){"use strict";var o={};function r(t,n,a){a||(a=Error);var r=function(t){var a,o;function r(a,o,r){return t.call(this,function(t,a,o){return"string"==typeof n?n:n(t,a,o)}(a,o,r))||this}return o=t,(a=r).prototype=Object.create(o.prototype),a.prototype.constructor=a,a.__proto__=o,r}(a);r.prototype.name=a.name,r.prototype.code=t,o[t]=r}function e(t,n){if(Array.isArray(t)){var a=t.length;return t=t.map(function(t){return String(t)}),a>2?"one of ".concat(n," ").concat(t.slice(0,a-1).join(", "),", or ")+t[a-1]:2===a?"one of ".concat(n," ").concat(t[0]," or ").concat(t[1]):"of ".concat(n," ").concat(t[0])}return"of ".concat(n," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",function(t,n){return'The value "'+n+'" is invalid for option "'+t+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(t,n,a){var o,r,i,f;if("string"==typeof n&&(r="not ",n.substr(!i||i<0?0:+i,r.length)===r)?(o="must not be",n=n.replace(/^not /,"")):o="must be",function(t,n,a){return(void 0===a||a>t.length)&&(a=t.length),t.substring(a-n.length,a)===n}(t," argument"))f="The ".concat(t," ").concat(o," ").concat(e(n,"type"));else{var l=function(t,n,a){return"number"!=typeof a&&(a=0),!(a+n.length>t.length)&&-1!==t.indexOf(n,a)}(t,".")?"property":"argument";f='The "'.concat(t,'" ').concat(l," ").concat(o," ").concat(e(n,"type"))}return f+=". Received type ".concat(typeof a)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=o},function(t,n,a){"use strict";(function(n){var o=Object.keys||function(t){var n=[];for(var a in t)n.push(a);return n};t.exports=c;var r=a(239),e=a(243);a(13)(c,r);for(var i=o(e.prototype),f=0;f2?"one of ".concat(n," ").concat(t.slice(0,a-1).join(", "),", or ")+t[a-1]:2===a?"one of ".concat(n," ").concat(t[0]," or ").concat(t[1]):"of ".concat(n," ").concat(t[0])}return"of ".concat(n," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",function(t,n){return'The value "'+n+'" is invalid for option "'+t+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(t,n,a){var o,r,i,f;if("string"==typeof n&&(r="not ",n.substr(!i||i<0?0:+i,r.length)===r)?(o="must not be",n=n.replace(/^not /,"")):o="must be",function(t,n,a){return(void 0===a||a>t.length)&&(a=t.length),t.substring(a-n.length,a)===n}(t," argument"))f="The ".concat(t," ").concat(o," ").concat(e(n,"type"));else{var l=function(t,n,a){return"number"!=typeof a&&(a=0),!(a+n.length>t.length)&&-1!==t.indexOf(n,a)}(t,".")?"property":"argument";f='The "'.concat(t,'" ').concat(l," ").concat(o," ").concat(e(n,"type"))}return f+=". Received type ".concat(typeof a)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=o},function(t,n,a){"use strict";(function(n){var o=Object.keys||function(t){var n=[];for(var a in t)n.push(a);return n};t.exports=c;var r=a(248),e=a(252);a(13)(c,r);for(var i=o(e.prototype),f=0;f2?"one of ".concat(n," ").concat(t.slice(0,a-1).join(", "),", or ")+t[a-1]:2===a?"one of ".concat(n," ").concat(t[0]," or ").concat(t[1]):"of ".concat(n," ").concat(t[0])}return"of ".concat(n," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",function(t,n){return'The value "'+n+'" is invalid for option "'+t+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(t,n,a){var o,r,i,f;if("string"==typeof n&&(r="not ",n.substr(!i||i<0?0:+i,r.length)===r)?(o="must not be",n=n.replace(/^not /,"")):o="must be",function(t,n,a){return(void 0===a||a>t.length)&&(a=t.length),t.substring(a-n.length,a)===n}(t," argument"))f="The ".concat(t," ").concat(o," ").concat(e(n,"type"));else{var l=function(t,n,a){return"number"!=typeof a&&(a=0),!(a+n.length>t.length)&&-1!==t.indexOf(n,a)}(t,".")?"property":"argument";f='The "'.concat(t,'" ').concat(l," ").concat(o," ").concat(e(n,"type"))}return f+=". Received type ".concat(typeof a)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=o},function(t,n,a){"use strict";(function(n){var o=Object.keys||function(t){var n=[];for(var a in t)n.push(a);return n};t.exports=c;var r=a(254),e=a(258);a(13)(c,r);for(var i=o(e.prototype),f=0;f"+a.join("")+"":"/>")}},function(t,n,a){"use strict";var o=a(223).codes.ERR_STREAM_PREMATURE_CLOSE;function r(){}t.exports=function t(n,a,e){if("function"==typeof a)return t(n,null,a);a||(a={}),e=function(t){var n=!1;return function(){if(!n){n=!0;for(var a=arguments.length,o=new Array(a),r=0;r0)if("string"==typeof n||i.objectMode||Object.getPrototypeOf(n)===f.prototype||(n=function(t){return f.from(t)}(n)),o)i.endEmitted?t.emit("error",new x):j(t,i,n,!0);else if(i.ended)t.emit("error",new g);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!a?(n=i.decoder.write(n),i.objectMode||0!==n.length?j(t,i,n,!1):E(t,i)):j(t,i,n,!1)}else o||(i.reading=!1,E(t,i));return!i.ended&&(i.lengthn.highWaterMark&&(n.highWaterMark=function(t){return t>=_?t=_:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=n.length?t:n.ended?n.length:(n.needReadable=!0,0))}function B(t){var n=t._readableState;n.needReadable=!1,n.emittedReadable||(c("emitReadable",n.flowing),n.emittedReadable=!0,o.nextTick(R,t))}function R(t){var n=t._readableState;c("emitReadable_",n.destroyed,n.length,n.ended),n.destroyed||!n.length&&!n.ended||t.emit("readable"),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,L(t)}function E(t,n){n.readingMore||(n.readingMore=!0,o.nextTick(M,t,n))}function M(t,n){for(;!n.reading&&!n.ended&&(n.length0,n.resumeScheduled&&!n.paused?n.flowing=!0:t.listenerCount("data")>0&&t.resume()}function A(t){c("readable nexttick read 0"),t.read(0)}function O(t,n){c("resume",n.reading),n.reading||t.read(0),n.resumeScheduled=!1,t.emit("resume"),L(t),n.flowing&&!n.reading&&t.read(0)}function L(t){var n=t._readableState;for(c("flow",n.flowing);n.flowing&&null!==t.read(););}function C(t,n){return 0===n.length?null:(n.objectMode?a=n.buffer.shift():!t||t>=n.length?(a=n.decoder?n.buffer.join(""):1===n.buffer.length?n.buffer.first():n.buffer.concat(n.length),n.buffer.clear()):a=n.buffer.consume(t,n.decoder),a);var a}function D(t){var n=t._readableState;c("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,o.nextTick(I,n,t))}function I(t,n){c("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,n.readable=!1,n.emit("end"))}function F(t,n){for(var a=0,o=t.length;a=n.highWaterMark:n.length>0)||n.ended))return c("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?D(this):B(this),null;if(0===(t=N(t,n))&&n.ended)return 0===n.length&&D(this),null;var o,r=n.needReadable;return c("need readable",r),(0===n.length||n.length-t0?C(t,n):null)?(n.needReadable=!0,t=0):(n.length-=t,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),a!==t&&n.ended&&D(this)),null!==o&&this.emit("data",o),o},z.prototype._read=function(t){this.emit("error",new S("_read()"))},z.prototype.pipe=function(t,n){var a=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,c("pipe count=%d opts=%j",r.pipesCount,n);var i=(!n||!1!==n.end)&&t!==o.stdout&&t!==o.stderr?l:d;function f(n,o){c("onunpipe"),n===a&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,c("cleanup"),t.removeListener("close",h),t.removeListener("finish",v),t.removeListener("drain",s),t.removeListener("error",p),t.removeListener("unpipe",f),a.removeListener("end",l),a.removeListener("end",d),a.removeListener("data",u),m=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||s())}function l(){c("onend"),t.end()}r.endEmitted?o.nextTick(i):a.once("end",i),t.on("unpipe",f);var s=function(t){return function(){var n=t._readableState;c("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,0===n.awaitDrain&&e(t,"data")&&(n.flowing=!0,L(t))}}(a);t.on("drain",s);var m=!1;function u(n){c("ondata");var o=t.write(n);c("dest.write",o),!1===o&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==F(r.pipes,t))&&!m&&(c("false write response, pause",r.awaitDrain),r.awaitDrain++),a.pause())}function p(n){c("onerror",n),d(),t.removeListener("error",p),0===e(t,"error")&&t.emit("error",n)}function h(){t.removeListener("finish",v),d()}function v(){c("onfinish"),t.removeListener("close",h),d()}function d(){c("unpipe"),a.unpipe(t)}return a.on("data",u),function(t,n,a){if("function"==typeof t.prependListener)return t.prependListener(n,a);t._events&&t._events[n]?Array.isArray(t._events[n])?t._events[n].unshift(a):t._events[n]=[a,t._events[n]]:t.on(n,a)}(t,"error",p),t.once("close",h),t.once("finish",v),t.emit("pipe",a),r.flowing||(c("pipe resume"),a.resume()),t},z.prototype.unpipe=function(t){var n=this._readableState,a={hasUnpiped:!1};if(0===n.pipesCount)return this;if(1===n.pipesCount)return t&&t!==n.pipes?this:(t||(t=n.pipes),n.pipes=null,n.pipesCount=0,n.flowing=!1,t&&t.emit("unpipe",this,a),this);if(!t){var o=n.pipes,r=n.pipesCount;n.pipes=null,n.pipesCount=0,n.flowing=!1;for(var e=0;e0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,c("on readable",r.length,r.reading),r.length?B(this):r.reading||o.nextTick(A,this))),a},z.prototype.addListener=z.prototype.on,z.prototype.removeListener=function(t,n){var a=i.prototype.removeListener.call(this,t,n);return"readable"===t&&o.nextTick(T,this),a},z.prototype.removeAllListeners=function(t){var n=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||o.nextTick(T,this),n},z.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!t.readableListening,function(t,n){n.resumeScheduled||(n.resumeScheduled=!0,o.nextTick(O,t,n))}(this,t)),t.paused=!1,this},z.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},z.prototype.wrap=function(t){var n=this,a=this._readableState,o=!1;for(var r in t.on("end",function(){if(c("wrapped end"),a.decoder&&!a.ended){var t=a.decoder.end();t&&t.length&&n.push(t)}n.push(null)}),t.on("data",function(r){(c("wrapped data"),a.decoder&&(r=a.decoder.write(r)),a.objectMode&&null==r)||(a.objectMode||r&&r.length)&&(n.push(r)||(o=!0,t.pause()))}),t)void 0===this[r]&&"function"==typeof t[r]&&(this[r]=function(n){return function(){return t[n].apply(t,arguments)}}(r));for(var e=0;e-1))throw new w(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),z.prototype._write=function(t,n,a){a(new v("_write()"))},z.prototype._writev=null,z.prototype.end=function(t,n,a){var r=this._writableState;return"function"==typeof t?(a=t,t=null,n=null):"function"==typeof n&&(a=n,n=null),null!=t&&this.write(t,n),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,n,a){n.ending=!0,R(t,n),a&&(n.finished?o.nextTick(a):t.once("finish",a));n.ended=!0,t.writable=!1}(this,r,a),this},Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),z.prototype.destroy=m.destroy,z.prototype._undestroy=m.undestroy,z.prototype._destroy=function(t,n){n(t)}}).call(this,a(18),a(17))},function(t,n,a){"use strict";t.exports=s;var o=a(219).codes,r=o.ERR_METHOD_NOT_IMPLEMENTED,e=o.ERR_MULTIPLE_CALLBACK,i=o.ERR_TRANSFORM_ALREADY_TRANSFORMING,f=o.ERR_TRANSFORM_WITH_LENGTH_0,l=a(220);function c(t,n){var a=this._transformState;a.transforming=!1;var o=a.writecb;if(null===o)return this.emit("error",new e);a.writechunk=null,a.writecb=null,null!=n&&this.push(n),o(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length0)if("string"==typeof n||i.objectMode||Object.getPrototypeOf(n)===f.prototype||(n=function(t){return f.from(t)}(n)),o)i.endEmitted?t.emit("error",new x):j(t,i,n,!0);else if(i.ended)t.emit("error",new g);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!a?(n=i.decoder.write(n),i.objectMode||0!==n.length?j(t,i,n,!1):E(t,i)):j(t,i,n,!1)}else o||(i.reading=!1,E(t,i));return!i.ended&&(i.lengthn.highWaterMark&&(n.highWaterMark=function(t){return t>=_?t=_:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=n.length?t:n.ended?n.length:(n.needReadable=!0,0))}function B(t){var n=t._readableState;n.needReadable=!1,n.emittedReadable||(c("emitReadable",n.flowing),n.emittedReadable=!0,o.nextTick(R,t))}function R(t){var n=t._readableState;c("emitReadable_",n.destroyed,n.length,n.ended),n.destroyed||!n.length&&!n.ended||t.emit("readable"),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,L(t)}function E(t,n){n.readingMore||(n.readingMore=!0,o.nextTick(M,t,n))}function M(t,n){for(;!n.reading&&!n.ended&&(n.length0,n.resumeScheduled&&!n.paused?n.flowing=!0:t.listenerCount("data")>0&&t.resume()}function A(t){c("readable nexttick read 0"),t.read(0)}function O(t,n){c("resume",n.reading),n.reading||t.read(0),n.resumeScheduled=!1,t.emit("resume"),L(t),n.flowing&&!n.reading&&t.read(0)}function L(t){var n=t._readableState;for(c("flow",n.flowing);n.flowing&&null!==t.read(););}function C(t,n){return 0===n.length?null:(n.objectMode?a=n.buffer.shift():!t||t>=n.length?(a=n.decoder?n.buffer.join(""):1===n.buffer.length?n.buffer.first():n.buffer.concat(n.length),n.buffer.clear()):a=n.buffer.consume(t,n.decoder),a);var a}function D(t){var n=t._readableState;c("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,o.nextTick(I,n,t))}function I(t,n){c("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,n.readable=!1,n.emit("end"))}function F(t,n){for(var a=0,o=t.length;a=n.highWaterMark:n.length>0)||n.ended))return c("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?D(this):B(this),null;if(0===(t=N(t,n))&&n.ended)return 0===n.length&&D(this),null;var o,r=n.needReadable;return c("need readable",r),(0===n.length||n.length-t0?C(t,n):null)?(n.needReadable=!0,t=0):(n.length-=t,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),a!==t&&n.ended&&D(this)),null!==o&&this.emit("data",o),o},z.prototype._read=function(t){this.emit("error",new S("_read()"))},z.prototype.pipe=function(t,n){var a=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,c("pipe count=%d opts=%j",r.pipesCount,n);var i=(!n||!1!==n.end)&&t!==o.stdout&&t!==o.stderr?l:d;function f(n,o){c("onunpipe"),n===a&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,c("cleanup"),t.removeListener("close",h),t.removeListener("finish",v),t.removeListener("drain",s),t.removeListener("error",p),t.removeListener("unpipe",f),a.removeListener("end",l),a.removeListener("end",d),a.removeListener("data",u),m=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||s())}function l(){c("onend"),t.end()}r.endEmitted?o.nextTick(i):a.once("end",i),t.on("unpipe",f);var s=function(t){return function(){var n=t._readableState;c("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,0===n.awaitDrain&&e(t,"data")&&(n.flowing=!0,L(t))}}(a);t.on("drain",s);var m=!1;function u(n){c("ondata");var o=t.write(n);c("dest.write",o),!1===o&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==F(r.pipes,t))&&!m&&(c("false write response, pause",r.awaitDrain),r.awaitDrain++),a.pause())}function p(n){c("onerror",n),d(),t.removeListener("error",p),0===e(t,"error")&&t.emit("error",n)}function h(){t.removeListener("finish",v),d()}function v(){c("onfinish"),t.removeListener("close",h),d()}function d(){c("unpipe"),a.unpipe(t)}return a.on("data",u),function(t,n,a){if("function"==typeof t.prependListener)return t.prependListener(n,a);t._events&&t._events[n]?Array.isArray(t._events[n])?t._events[n].unshift(a):t._events[n]=[a,t._events[n]]:t.on(n,a)}(t,"error",p),t.once("close",h),t.once("finish",v),t.emit("pipe",a),r.flowing||(c("pipe resume"),a.resume()),t},z.prototype.unpipe=function(t){var n=this._readableState,a={hasUnpiped:!1};if(0===n.pipesCount)return this;if(1===n.pipesCount)return t&&t!==n.pipes?this:(t||(t=n.pipes),n.pipes=null,n.pipesCount=0,n.flowing=!1,t&&t.emit("unpipe",this,a),this);if(!t){var o=n.pipes,r=n.pipesCount;n.pipes=null,n.pipesCount=0,n.flowing=!1;for(var e=0;e0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,c("on readable",r.length,r.reading),r.length?B(this):r.reading||o.nextTick(A,this))),a},z.prototype.addListener=z.prototype.on,z.prototype.removeListener=function(t,n){var a=i.prototype.removeListener.call(this,t,n);return"readable"===t&&o.nextTick(T,this),a},z.prototype.removeAllListeners=function(t){var n=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||o.nextTick(T,this),n},z.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!t.readableListening,function(t,n){n.resumeScheduled||(n.resumeScheduled=!0,o.nextTick(O,t,n))}(this,t)),t.paused=!1,this},z.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},z.prototype.wrap=function(t){var n=this,a=this._readableState,o=!1;for(var r in t.on("end",function(){if(c("wrapped end"),a.decoder&&!a.ended){var t=a.decoder.end();t&&t.length&&n.push(t)}n.push(null)}),t.on("data",function(r){(c("wrapped data"),a.decoder&&(r=a.decoder.write(r)),a.objectMode&&null==r)||(a.objectMode||r&&r.length)&&(n.push(r)||(o=!0,t.pause()))}),t)void 0===this[r]&&"function"==typeof t[r]&&(this[r]=function(n){return function(){return t[n].apply(t,arguments)}}(r));for(var e=0;e-1))throw new w(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),z.prototype._write=function(t,n,a){a(new v("_write()"))},z.prototype._writev=null,z.prototype.end=function(t,n,a){var r=this._writableState;return"function"==typeof t?(a=t,t=null,n=null):"function"==typeof n&&(a=n,n=null),null!=t&&this.write(t,n),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,n,a){n.ending=!0,R(t,n),a&&(n.finished?o.nextTick(a):t.once("finish",a));n.ended=!0,t.writable=!1}(this,r,a),this},Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),z.prototype.destroy=m.destroy,z.prototype._undestroy=m.undestroy,z.prototype._destroy=function(t,n){n(t)}}).call(this,a(18),a(17))},function(t,n,a){"use strict";t.exports=s;var o=a(221).codes,r=o.ERR_METHOD_NOT_IMPLEMENTED,e=o.ERR_MULTIPLE_CALLBACK,i=o.ERR_TRANSFORM_ALREADY_TRANSFORMING,f=o.ERR_TRANSFORM_WITH_LENGTH_0,l=a(222);function c(t,n){var a=this._transformState;a.transforming=!1;var o=a.writecb;if(null===o)return this.emit("error",new e);a.writechunk=null,a.writecb=null,null!=n&&this.push(n),o(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length0)if("string"==typeof n||i.objectMode||Object.getPrototypeOf(n)===f.prototype||(n=function(t){return f.from(t)}(n)),o)i.endEmitted?t.emit("error",new x):j(t,i,n,!0);else if(i.ended)t.emit("error",new g);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!a?(n=i.decoder.write(n),i.objectMode||0!==n.length?j(t,i,n,!1):E(t,i)):j(t,i,n,!1)}else o||(i.reading=!1,E(t,i));return!i.ended&&(i.lengthn.highWaterMark&&(n.highWaterMark=function(t){return t>=_?t=_:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=n.length?t:n.ended?n.length:(n.needReadable=!0,0))}function B(t){var n=t._readableState;n.needReadable=!1,n.emittedReadable||(c("emitReadable",n.flowing),n.emittedReadable=!0,o.nextTick(R,t))}function R(t){var n=t._readableState;c("emitReadable_",n.destroyed,n.length,n.ended),n.destroyed||!n.length&&!n.ended||t.emit("readable"),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,L(t)}function E(t,n){n.readingMore||(n.readingMore=!0,o.nextTick(M,t,n))}function M(t,n){for(;!n.reading&&!n.ended&&(n.length0,n.resumeScheduled&&!n.paused?n.flowing=!0:t.listenerCount("data")>0&&t.resume()}function A(t){c("readable nexttick read 0"),t.read(0)}function O(t,n){c("resume",n.reading),n.reading||t.read(0),n.resumeScheduled=!1,t.emit("resume"),L(t),n.flowing&&!n.reading&&t.read(0)}function L(t){var n=t._readableState;for(c("flow",n.flowing);n.flowing&&null!==t.read(););}function C(t,n){return 0===n.length?null:(n.objectMode?a=n.buffer.shift():!t||t>=n.length?(a=n.decoder?n.buffer.join(""):1===n.buffer.length?n.buffer.first():n.buffer.concat(n.length),n.buffer.clear()):a=n.buffer.consume(t,n.decoder),a);var a}function D(t){var n=t._readableState;c("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,o.nextTick(I,n,t))}function I(t,n){c("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,n.readable=!1,n.emit("end"))}function F(t,n){for(var a=0,o=t.length;a=n.highWaterMark:n.length>0)||n.ended))return c("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?D(this):B(this),null;if(0===(t=N(t,n))&&n.ended)return 0===n.length&&D(this),null;var o,r=n.needReadable;return c("need readable",r),(0===n.length||n.length-t0?C(t,n):null)?(n.needReadable=!0,t=0):(n.length-=t,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),a!==t&&n.ended&&D(this)),null!==o&&this.emit("data",o),o},z.prototype._read=function(t){this.emit("error",new S("_read()"))},z.prototype.pipe=function(t,n){var a=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,c("pipe count=%d opts=%j",r.pipesCount,n);var i=(!n||!1!==n.end)&&t!==o.stdout&&t!==o.stderr?l:d;function f(n,o){c("onunpipe"),n===a&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,c("cleanup"),t.removeListener("close",h),t.removeListener("finish",v),t.removeListener("drain",s),t.removeListener("error",p),t.removeListener("unpipe",f),a.removeListener("end",l),a.removeListener("end",d),a.removeListener("data",u),m=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||s())}function l(){c("onend"),t.end()}r.endEmitted?o.nextTick(i):a.once("end",i),t.on("unpipe",f);var s=function(t){return function(){var n=t._readableState;c("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,0===n.awaitDrain&&e(t,"data")&&(n.flowing=!0,L(t))}}(a);t.on("drain",s);var m=!1;function u(n){c("ondata");var o=t.write(n);c("dest.write",o),!1===o&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==F(r.pipes,t))&&!m&&(c("false write response, pause",r.awaitDrain),r.awaitDrain++),a.pause())}function p(n){c("onerror",n),d(),t.removeListener("error",p),0===e(t,"error")&&t.emit("error",n)}function h(){t.removeListener("finish",v),d()}function v(){c("onfinish"),t.removeListener("close",h),d()}function d(){c("unpipe"),a.unpipe(t)}return a.on("data",u),function(t,n,a){if("function"==typeof t.prependListener)return t.prependListener(n,a);t._events&&t._events[n]?Array.isArray(t._events[n])?t._events[n].unshift(a):t._events[n]=[a,t._events[n]]:t.on(n,a)}(t,"error",p),t.once("close",h),t.once("finish",v),t.emit("pipe",a),r.flowing||(c("pipe resume"),a.resume()),t},z.prototype.unpipe=function(t){var n=this._readableState,a={hasUnpiped:!1};if(0===n.pipesCount)return this;if(1===n.pipesCount)return t&&t!==n.pipes?this:(t||(t=n.pipes),n.pipes=null,n.pipesCount=0,n.flowing=!1,t&&t.emit("unpipe",this,a),this);if(!t){var o=n.pipes,r=n.pipesCount;n.pipes=null,n.pipesCount=0,n.flowing=!1;for(var e=0;e0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,c("on readable",r.length,r.reading),r.length?B(this):r.reading||o.nextTick(A,this))),a},z.prototype.addListener=z.prototype.on,z.prototype.removeListener=function(t,n){var a=i.prototype.removeListener.call(this,t,n);return"readable"===t&&o.nextTick(T,this),a},z.prototype.removeAllListeners=function(t){var n=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||o.nextTick(T,this),n},z.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!t.readableListening,function(t,n){n.resumeScheduled||(n.resumeScheduled=!0,o.nextTick(O,t,n))}(this,t)),t.paused=!1,this},z.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},z.prototype.wrap=function(t){var n=this,a=this._readableState,o=!1;for(var r in t.on("end",function(){if(c("wrapped end"),a.decoder&&!a.ended){var t=a.decoder.end();t&&t.length&&n.push(t)}n.push(null)}),t.on("data",function(r){(c("wrapped data"),a.decoder&&(r=a.decoder.write(r)),a.objectMode&&null==r)||(a.objectMode||r&&r.length)&&(n.push(r)||(o=!0,t.pause()))}),t)void 0===this[r]&&"function"==typeof t[r]&&(this[r]=function(n){return function(){return t[n].apply(t,arguments)}}(r));for(var e=0;e-1))throw new w(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),z.prototype._write=function(t,n,a){a(new v("_write()"))},z.prototype._writev=null,z.prototype.end=function(t,n,a){var r=this._writableState;return"function"==typeof t?(a=t,t=null,n=null):"function"==typeof n&&(a=n,n=null),null!=t&&this.write(t,n),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,n,a){n.ending=!0,R(t,n),a&&(n.finished?o.nextTick(a):t.once("finish",a));n.ended=!0,t.writable=!1}(this,r,a),this},Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),z.prototype.destroy=m.destroy,z.prototype._undestroy=m.undestroy,z.prototype._destroy=function(t,n){n(t)}}).call(this,a(18),a(17))},function(t,n,a){"use strict";t.exports=s;var o=a(223).codes,r=o.ERR_METHOD_NOT_IMPLEMENTED,e=o.ERR_MULTIPLE_CALLBACK,i=o.ERR_TRANSFORM_ALREADY_TRANSFORMING,f=o.ERR_TRANSFORM_WITH_LENGTH_0,l=a(224);function c(t,n){var a=this._transformState;a.transforming=!1;var o=a.writecb;if(null===o)return this.emit("error",new e);a.writechunk=null,a.writecb=null,null!=n&&this.push(n),o(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length=t.length||a?e(a,r):t[o].apply(void 0,[].concat(r,n))}):e(null);r=!1}}).call(this,a(17))},function(t,n,a){"use strict";(function(n){var o=a(85),r=a(283),e=a(302),i=a(234),f=a(319),l=a(260),c=a(127);t.exports=function(t,a,l){"function"==typeof a&&(l=a,a=null);var c,s=("string"==typeof(c=a)?c={id:c}:c||(c={}),{id:o.ensure(c.id),attributes:c.attributes||{},createElement:c.createElement||i,objectMode:null!=c.objectMode&&c.objectMode,parser:{places:c.places,zero:c.zero,filetype:c.filetype},plotter:{units:c.units,backupUnits:c.backupUnits,nota:c.nota,backupNota:c.backupNota,optimizePaths:c.optimizePaths,plotAsOutline:c.plotAsOutline}}),m=null!=l,u=new f(s.id,s.attributes,s.createElement,s.objectMode),p=r(s.parser),h=e(s.plotter);if(u.parser=p,u.plotter=h,p.on("warning",function(t){u.emit("warning",t)}),h.on("warning",function(t){u.emit("warning",t)}),p.once("error",function(t){u.emit("error",t)}),h.once("error",function(t){u.emit("error",t)}),p.once("end",function(){u.filetype=p.format.filetype}),t.pipe?(t.setEncoding("utf8"),t.pipe(p)):n.nextTick(function(){p.write(t),p.end()}),p.pipe(h).pipe(u),m){var v="",d=function(){return l(null,v)};u.on("readable",function(){var t;do{t=u.read()||"",v+=t}while(t)}),u.once("end",d),u.once("error",function(t){return u.removeListener("end",d),l(t)})}return u},t.exports.render=l,t.exports.clone=c}).call(this,a(17))},function(t,n,a){"use strict";var o=a(226),r=a(284);t.exports=function(t){var n=(t=t||{}).places?function(t){if(Array.isArray(t)&&2===t.length&&o(t[0])&&o(t[1]))return t;throw new Error("places must be an array of two whole numbers")}(t.places):null,a=t.zero?function(t){if("T"===t||"L"===t)return t;throw new Error("zero suppression must be 'L' or 'T'")}(t.zero):null,e=t.filetype?function(t){if("gerber"===t||"drill"===t)return t;throw new Error('filetype must be "drill" or "gerber"')}(t.filetype):null;return new r(n,a,e)}},function(t,n,a){"use strict";var o=a(90).StringDecoder,r=a(13),e=a(285).Transform,i=a(293),f=a(294),l=a(295),c=a(300),s=a(301),m=a(247),u=function(t,n,a){e.call(this,{readableObjectMode:!0}),this._decoder=new o("utf8"),this._stash="",this._index=0,this._drillMode=m.DRILL,this._drillStash=[],this._syncResult=null,this.line=0,this.format={places:t,zero:n,filetype:a}};r(u,e),u.prototype._process=function(t,n){for(;this._index=65535?a(new Error("unable to determine filetype")):(this._stash+=t,a());this.format.filetype=o,this._index=0}t=this._stash+t,this._stash="",this._process(t,o),this._index=0,a()},u.prototype._flush=function(t){return"drill"===this.format.filetype&&c.flush(this),t&&t()},u.prototype._push=function(t){-1===t.line&&(t.line=this.line),(this._syncResult?this._syncResult:this).push(t)},u.prototype._warn=function(t){this.emit("warning",s(t,this.line))},u.prototype.parseSync=function(t){var n=i(t,this._index,6553500);return this.format.filetype=n,this._syncResult=[],this._process(t,n),this._flush(),this._syncResult},t.exports=u},function(t,n,a){(n=t.exports=a(239)).Stream=n,n.Readable=n,n.Writable=a(243),n.Duplex=a(220),n.Transform=a(244),n.PassThrough=a(291),n.finished=a(230),n.pipeline=a(292)},function(t,n){},function(t,n,a){"use strict";function o(t,n,a){return n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t}var r=a(44).Buffer,e=a(288).inspect,i=e&&e.custom||"inspect";t.exports=function(){function t(){this.head=null,this.tail=null,this.length=0}var n=t.prototype;return n.push=function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},n.unshift=function(t){var n={data:t,next:this.head};0===this.length&&(this.tail=n),this.head=n,++this.length},n.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},n.clear=function(){this.head=this.tail=null,this.length=0},n.join=function(t){if(0===this.length)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=t+n.data;return a},n.concat=function(t){if(0===this.length)return r.alloc(0);for(var n,a,o,e=r.allocUnsafe(t>>>0),i=this.head,f=0;i;)n=i.data,a=e,o=f,r.prototype.copy.call(n,a,o),f+=i.data.length,i=i.next;return e},n.consume=function(t,n){var a;return tr.length?r.length:t;if(e===r.length?o+=r:o+=r.slice(0,t),0===(t-=e)){e===r.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=r.slice(e));break}++a}return this.length-=a,o},n._getBuffer=function(t){var n=r.allocUnsafe(t),a=this.head,o=1;for(a.data.copy(n),t-=a.data.length;a=a.next;){var e=a.data,i=t>e.length?e.length:t;if(e.copy(n,n.length-t,0,i),0===(t-=i)){i===e.length?(++o,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=e.slice(i));break}++o}return this.length-=o,n},n[i]=function(t,n){return e(this,function(t){for(var n=1;n0,function(t){s||(s=t),t&&u.forEach(l),e||(u.forEach(l),m(s))})});return n.reduce(c)}},function(t,n,a){"use strict";t.exports=function(t,n,a){for(var o=Math.min(a-n,t.length),r=[],e=null,i=-1;!e&&++i=" "&&p<="~"&&s.push(p),m++,c=i&&(!f||l)}return{lines:u,read:m,block:c?s.join("").trim():"",rem:c?"":s.join("")}}},function(t,n,a){"use strict";var o=a(245),r=a(231),e=a(246),i=a(298),f=/^G0*([123])/,l=/^G3([67])/,c=/^G7([45])/,s=/^G7([01])/,m=/^G9([01])/,u=/^G0*4/,p=/^(?:G54)?D0*([1-9]\d+)/,h=/D0*([123])$/,v=/^(?:G0*[123])?((?:[XYIJ][+-]?\d+){1,4})(?:D0*[123])?$/,d=/^%MO(IN|MM)/,y=/^%FS([LT]?)([AI]?)(.*)X([0-7])([0-7])Y\4\5/,g=/^%LP([CD])/,S=/^%SR(?:X(\d+)Y(\d+)I([\d.]+)J([\d.]+))?/,x=/^%ADD0*(\d{2,})([A-Za-z_$][\w\-.]*)(?:,((?:X?[\d.]+)*))?/,w=/^%AM([A-Za-z_$][\w\-.]*)\*?(.*)/;t.exports=function(t,n){if(!u.test(n)){if("M02"===n)return t._push(o.done());if(l.test(n)){var a="6"===n.match(l)[1];return t._push(o.set("region",a))}if(c.test(n)){var k="4"===n.match(c)[1]?"s":"m";return t._push(o.set("arc",k))}if(d.test(n)){var b="IN"===n.match(d)[1]?"in":"mm";return t._push(o.set("units",b))}if(s.test(n)){var z="0"===n.match(s)[1]?"in":"mm";return t._push(o.set("backupUnits",z))}if(y.test(n)){var P=n.match(y),j=P[1],_=P[2],N=P[3],B=Number(P[4]),R=Number(P[5]),E=t.format;E.zero=E.zero||j,E.places||(E.places=[B,R]),E.zero?"T"===E.zero&&t._warn("trailing zero suppression has been deprecated"):(E.zero="L",t._warn("zero suppression missing from format; assuming leading")),N&&t._warn('unknown characters "'+N+'" in "'+n+'" were ignored');var M=1.5*Math.pow(10,-E.places[1]);return t._push(o.set("nota",_)),void t._push(o.set("epsilon",M))}if(m.test(n)){var T="0"===n.match(m)[1]?"A":"I";return t._push(o.set("backupNota",T))}if(g.test(n)){var A=n.match(g)[1];return t._push(o.level("polarity",A))}if(S.test(n)){var O=n.match(S),L=O[1]||1,C=O[2]||1,D=O[3]||0,I=O[4]||0,F={x:Number(L),y:Number(C),i:Number(D),j:Number(I)};return t._push(o.level("stepRep",F))}if(p.test(n)){var W=n.match(p)[1];return t._push(o.set("tool",W))}if(x.test(n))return function(t,n){var a,e,i,f={places:t.format.places},l=n.match(x),c=l[1],s=l[2],m=l[3]?l[3].split("X"):[];"C"===s?(a="circle",e=3):"R"===s?(a="rect",e=4):"O"===s?(a="obround",e=4):"P"===s?(a="poly",e=5):(a=s,e=0),"circle"===a?i=[r(m[0],f)]:"rect"===a||"obround"===a?i=[r(m[0],f),r(m[1],f)]:"poly"===a?(i=[r(m[0],f),Number(m[1]),0],m[2]&&(i[2]=Number(m[2]))):i=m.map(Number);var u=[];m[e-1]?u=[r(m[e-2],f),r(m[e-1],f)]:m[e-2]&&(u=[r(m[e-2],f)]);var p={shape:a,params:i,hole:u};return t._push(o.tool(c,p))}(t,n);if(w.test(n))return function(t,n){var a=n.match(w),r=a[1];r.match(/-/)&&t._warn("hyphens in macro name are illegal: "+r);var e=(a[2].length?a[2].split("*"):[]).filter(Boolean).map(function(n){return i(t,n)});return t._push(o.macro(r,e))}(t,n);if(!(h.test(n)||f.test(n)||v.test(n)))return t._warn('block "'+n+'" was not recognized and was ignored');var q,U=n.match(h),V=n.match(f),H=n.match(v);if(V&&(q="1"===V[1]?"i":"2"===V[1]?"cw":"ccw",t._push(o.set("mode",q))),U||H){var G=U?U[1]:"",Y=H?H[1]:"",$=e.parse(Y,t.format),K="last";"1"===G?K="int":"2"===G?K="move":"3"===G&&(K="flash"),t._push(o.op(K,$))}}}},function(t,n,a){(function(n){var a,o=1/0,r=9007199254740991,e=17976931348623157e292,i=NaN,f="[object Symbol]",l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,m=/^0o[0-7]+$/i,u="[\\ud800-\\udfff]",p="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",h="\\ud83c[\\udffb-\\udfff]",v="[^\\ud800-\\udfff]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",g="(?:"+p+"|"+h+")"+"?",S="[\\ufe0e\\ufe0f]?"+g+("(?:\\u200d(?:"+[v,d,y].join("|")+")[\\ufe0e\\ufe0f]?"+g+")*"),x="(?:"+[v+p+"?",p,d,y,u].join("|")+")",w=RegExp(h+"(?="+h+")|"+x+S,"g"),k=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),b=parseInt,z="object"==typeof n&&n&&n.Object===Object&&n,P="object"==typeof self&&self&&self.Object===Object&&self,j=z||P||Function("return this")(),_=(a="length",function(t){return null==t?void 0:t[a]});function N(t){return k.test(t)}function B(t){return N(t)?function(t){var n=w.lastIndex=0;for(;w.test(t);)n++;return n}(t):_(t)}function R(t){return N(t)?function(t){return t.match(w)||[]}(t):function(t){return t.split("")}(t)}var E=Object.prototype.toString,M=j.Symbol,T=Math.ceil,A=Math.floor,O=M?M.prototype:void 0,L=O?O.toString:void 0;function C(t,n){var a="";if(!t||n<1||n>r)return a;do{n%2&&(a+=t),(n=A(n/2))&&(t+=t)}while(n);return a}function D(t){if("string"==typeof t)return t;if(W(t))return L?L.call(t):"";var n=t+"";return"0"==n&&1/t==-o?"-0":n}function I(t,n,a){var o=t.length;return a=void 0===a?o:a,!n&&a>=o?t:function(t,n,a){var o=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(a=a>r?r:a)<0&&(a+=r),r=n>a?0:a-n>>>0,n>>>=0;for(var e=Array(r);++or)return a;do{n%2&&(a+=t),(n=A(n/2))&&(t+=t)}while(n);return a}function D(t){if("string"==typeof t)return t;if(W(t))return L?L.call(t):"";var n=t+"";return"0"==n&&1/t==-o?"-0":n}function I(t,n,a){var o=t.length;return a=void 0===a?o:a,!n&&a>=o?t:function(t,n,a){var o=-1,r=t.length;n<0&&(n=-n>r?0:r+n),(a=a>r?r:a)<0&&(a+=r),r=n>a?0:a-n>>>0,n>>>=0;for(var e=Array(r);++o=1e3)&&S(t))},flush:S}},function(t,n,a){"use strict";t.exports=function(t,n){return{message:t,line:n}}},function(t,n,a){"use strict";var o=a(303),r=function(t){if("A"===t||"I"===t)return t;throw new Error('notation must be "in" or "mm"')},e=function(t){if("in"===t||"mm"===t)return t;throw new Error('units must be "in" or "mm"')};t.exports=function(t){var n=(t=t||{}).units?e(t.units):null,a=t.backupUnits?e(t.backupUnits):null,i=t.nota?r(t.nota):null,f=t.backupNota?r(t.backupNota):null;return new o(n,a,i,f,t.optimizePaths,t.plotAsOutline)}},function(t,n,a){"use strict";var o=a(304).Transform,r=a(13),e=a(312),i=a(314),f=a(315),l=a(317),c=a(233),s=function(t,n,a,r,i,f){o.call(this,{readableObjectMode:!0,writableObjectMode:!0}),this.format={units:t,backupUnits:n||"in",nota:a,backupNota:r||"A"},this._formatLock={units:null!=t,backupUnits:null!=n,nota:null!=a,backupNota:null!=r},this._plotAsOutline=!0===f?11e-5:f,"in"===(t||this.format.backupUnits)&&(this._plotAsOutline=this._plotAsOutline/25.4),this._optimizePaths=i||f,this._line=0,this._done=!1,this._tool=null,this._outTool=null,this._tools={},this._macros={},this._pos=[0,0],this._box=c.new(),this._mode=null,this._arc=null,this._region=!1,this._path=new e(this._optimizePaths,this._plotAsOutline),this._epsilon=null,this._lastOp=null,this._stepRep=[]};r(s,o),s.prototype._finishPath=function(t){var n=this._path.traverse();if(this._path=new e(!t&&this._optimizePaths,this._plotAsOutline),n.length){var a=this._plotAsOutline?this._outTool:this._tool;this._region||1!==a.trace.length?this.push({type:"fill",path:n}):this.push({type:"stroke",width:a.trace[0],path:n})}},s.prototype._warn=function(t){this.emit("warning",i(t,this._line))},s.prototype._checkFormat=function(){this.format.units||(this.format.units=this.format.backupUnits,this._warn("units not set; using backup units: "+this.format.units)),this.format.nota||(this.format.nota=this.format.backupNota,this._warn("notation not set; using backup notation: "+this.format.nota))},s.prototype._updateBox=function(t){var n=this._stepRep.length;if(n){var a=c.repeat(t,this._stepRep[n-1]);this._box=c.add(this._box,a)}else this._box=c.add(this._box,t)},s.prototype._transform=function(t,n,a){var o,r=t.type;if(this._line=t.line,this._done)return this._warn("ignoring extra command recieved after done command"),a();if("op"===r){this._checkFormat();var e=t.op,i=t.coord;if("I"===this.nota){var c=this;i=Object.keys(i).reduce(function(t,n){var a=i[n];return t[n]="x"===n?c._pos[0]+a:"y"===n?c._pos[1]+a:a,t},{})}"last"===e&&(this._warn("modal operation commands are deprecated"),e=this._lastOp),"int"===e&&(null==this._mode&&(this._warn("no interpolation mode specified; assuming linear"),this._mode="i"),null!=this._arc||"cw"!==this._mode.slice(-2)||i.a||(this._warn("quadrant mode unspecified; assuming single quadrant"),this._arc="s")),this._plotAsOutline&&(this._outTool=this._tool);var s=l(e,i,this._pos,this._tool,this._mode,this._arc,this._region||this._plotAsOutline,this._path,this._epsilon,this);this._lastOp=e,this._pos=s.pos,this._updateBox(s.box)}else if("set"===r){var m=t.prop,u=t.value;"region"===m?(this._finishPath(u),this._region=u):"units"!==(o=m)&&"backupUnits"!==o&&"nota"!==o&&"backupNota"!==o||this._formatLock[m]?"tool"===m?this._region?this._warn("cannot change tool while region mode is on"):this._tools[u]?this._outTool||(this._finishPath(),this._tool=this._tools[u]):this._warn("tool "+u+" is not defined"):this["_"+m]=u:(this.format[m]=u,"units"!==m&&"nota"!==m||(this._formatLock[m]=!0))}else if("tool"===r){var p=t.code,h=t.tool;if(this._tools[p])return this._warn("tool "+p+" is already defined; ignoring new definition"),a();var v=f(h,this._macros),d={code:p,trace:[],pad:v.shape,flashed:!1,box:v.box};"circle"!==h.shape&&"rect"!==h.shape||0===h.hole.length&&(d.trace=h.params),this._outTool||(this._finishPath(),this._tools[p]=d,this._tool=d)}else if("macro"===r)this._macros[t.name]=t.blocks;else if("level"===r){var y=t.level,g=t.value;if(this._finishPath(),"polarity"===y)this.push({type:"polarity",polarity:"C"===g?"clear":"dark",box:this._box.slice(0)});else{var S=[];if(g.x>1||g.y>1)for(var x=0;x0?this.tail.next=n:this.head=n,this.tail=n,++this.length},n.unshift=function(t){var n={data:t,next:this.head};0===this.length&&(this.tail=n),this.head=n,++this.length},n.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},n.clear=function(){this.head=this.tail=null,this.length=0},n.join=function(t){if(0===this.length)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=t+n.data;return a},n.concat=function(t){if(0===this.length)return r.alloc(0);for(var n,a,o,e=r.allocUnsafe(t>>>0),i=this.head,f=0;i;)n=i.data,a=e,o=f,r.prototype.copy.call(n,a,o),f+=i.data.length,i=i.next;return e},n.consume=function(t,n){var a;return tr.length?r.length:t;if(e===r.length?o+=r:o+=r.slice(0,t),0===(t-=e)){e===r.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=r.slice(e));break}++a}return this.length-=a,o},n._getBuffer=function(t){var n=r.allocUnsafe(t),a=this.head,o=1;for(a.data.copy(n),t-=a.data.length;a=a.next;){var e=a.data,i=t>e.length?e.length:t;if(e.copy(n,n.length-t,0,i),0===(t-=i)){i===e.length?(++o,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=e.slice(i));break}++o}return this.length-=o,n},n[i]=function(t,n){return e(this,function(t){for(var n=1;n0,function(t){s||(s=t),t&&u.forEach(l),e||(u.forEach(l),m(s))})});return n.reduce(c)}},function(t,n,a){"use strict";var o=a(313),r=function(t,n){var a,o;for(o=0;or?0:r+a),(o=void 0===o||o>r?r:w(o))<0&&(o+=r),o=a>o?0:function(t){return t?(n=w(t),a=0,o=i,n==n&&(void 0!==o&&(n=n<=o?n:o),void 0!==a&&(n=n>=a?n:a)),n):0;var n,a,o}(o);a-1&&t%1==0&&t<=o}(t.length)&&!function(t){var n=S(t)?d.call(t):"";return n==f||n==l}(t)}(a)&&function(t,n){return!!(n=null==n?o:n)&&("number"==typeof t||h.test(t))&&t>-1&&t%1==0&&tn&&v.length0&&v.length=n?t:0},c=function(t,n,a,e,c,s,m,u,p,h){var v,d=a[2]||Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)),y=[],g=[],S=[];a[0]&&"s"===s?g.push(t[0]+a[0],t[0]-a[0]):g.push(t[0]+a[0]),a[1]&&"s"===s?S.push(t[1]+a[1],t[1]-a[1]):S.push(t[1]+a[1]);for(var x=0;x0;)s=e.pop(),f=Math.atan2(t[1]-s[1],t[0]-s[0]),l=Math.atan2(n[1]-s[1],n[0]-s[0]),"cw"===a?f=f>=l?f:f+i:l=l>=f?l:l+i,c=Math.abs(f-l),"s"===o?c<=r&&(m=s):m=s;if(null!=m)return f=(f=f>=0?f:f+i)=0?l:l+i)s||h===i)&&v.push([p[0]+n,p[1]]),((c=c>=r?c-r:c+f)>(s=s>=r?s-r:s+f)||h===i)&&v.push([p[0],p[1]+n]),((c=c>=r?c-r:c+f)>(s=s>=r?s-r:s+f)||h===i)&&v.push([p[0]-n,p[1]]),((c=c>=r?c-r:c+f)>(s=s>=r?s-r:s+f)||h===i)&&v.push([p[0],p[1]-n]),v.reduce(function(t,n){if(!a){var r=o.translate(e.box,n);return o.add(t,r)}return o.addPoint(t,n)},o.new())}(k,d,m,e,c)):h._warn("skipping impossible arc"),b},s=function(t,n,a,i,f,l,s,m,u,p){return s||0!==i.trace.length?"i"===f?s||1===i.trace.length?function(t,n,a,r,e){if(e.add({type:"line",start:t,end:n}),!r){var i=o.translate(a.box,t),f=o.translate(a.box,n);return o.add(i,f)}var l=o.new();return l=o.addPoint(l,t),l=o.addPoint(l,n)}(t,n,i,s,u):function(t,n,a,i,f){var l=a.trace[0]/2,c=a.trace[1]/2,s=Math.atan2(n[1]-t[1],n[0]-t[0]),m=t[0]-l,u=t[0]+l,p=t[1]-c,h=t[1]+c,v=n[0]-l,d=n[0]+l,y=n[1]-c,g=n[1]+c,S=[];return t[0]===n[0]&&t[1]===n[1]?S.push([m,p],[u,p],[u,h],[m,h]):s>=0&&s=r&&s<=e?S.push([u,p],[u,h],[d,g],[v,g],[v,y],[m,p]):s>=-e&&s<-r?S.push([u,h],[m,h],[v,g],[v,y],[d,y],[u,p]):S.push([m,h],[m,p],[v,y],[d,y],[d,g],[u,h]),S.forEach(function(t,n){var a=n]/;t.exports=function(t){var n,a=""+t,r=o.exec(a);if(!r)return a;var e="",i=0,f=0;for(i=r.index;i2-f){var s=c+"clear";this.layer=[u(s,r,this._element)],this._maskId=s,this._maskBox=this._blockBox.slice(0),this._mask=this._offsets.reduce(function(t,n){for(var a,o=1;o<=l;o++){a=1===f?o%2==1:o%2==0;var r={"xlink:href":"#"+c+o,x:m(n[0]),y:m(n[1])};a&&(r.fill="#fff",r.stroke="#fff"),t.push(i("use",r))}return t},[]),o=this._finishClearLayer()}this._offsets=t,a?this._blockMode=0:(this._blockMode=o?2:1,this._blockCount++,this._blockLayerCount=0,this._blockBox=n.every(e)?n:[0,0,0,0])},h.prototype._handleSize=function(t,n){if(t.every(e)){var a=m(t[0]),o=m(t[1]),r=m(t[2]-t[0]),i=m(t[3]-t[1]);this.viewBox=[a,o,r,i],this.width=r/1e3,this.height=i/1e3,this.units=n}},h.prototype._draw=function(t){this._blockMode?this._block.push(t):this._maskId?this._mask.push(t):this.layer.push(t)},t.exports=h},function(t,n,a){(n=t.exports=a(254)).Stream=n,n.Readable=n,n.Writable=a(258),n.Duplex=a(224),n.Transform=a(259),n.PassThrough=a(326),n.finished=a(235),n.pipeline=a(327)},function(t,n){},function(t,n,a){"use strict";function o(t,n,a){return n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t}var r=a(44).Buffer,e=a(323).inspect,i=e&&e.custom||"inspect";t.exports=function(){function t(){this.head=null,this.tail=null,this.length=0}var n=t.prototype;return n.push=function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},n.unshift=function(t){var n={data:t,next:this.head};0===this.length&&(this.tail=n),this.head=n,++this.length},n.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},n.clear=function(){this.head=this.tail=null,this.length=0},n.join=function(t){if(0===this.length)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=t+n.data;return a},n.concat=function(t){if(0===this.length)return r.alloc(0);for(var n,a,o,e=r.allocUnsafe(t>>>0),i=this.head,f=0;i;)n=i.data,a=e,o=f,r.prototype.copy.call(n,a,o),f+=i.data.length,i=i.next;return e},n.consume=function(t,n){var a;return tr.length?r.length:t;if(e===r.length?o+=r:o+=r.slice(0,t),0===(t-=e)){e===r.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=r.slice(e));break}++a}return this.length-=a,o},n._getBuffer=function(t){var n=r.allocUnsafe(t),a=this.head,o=1;for(a.data.copy(n),t-=a.data.length;a=a.next;){var e=a.data,i=t>e.length?e.length:t;if(e.copy(n,n.length-t,0,i),0===(t-=i)){i===e.length?(++o,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=e.slice(i));break}++o}return this.length-=o,n},n[i]=function(t,n){return e(this,function(t){for(var n=1;n0,function(t){s||(s=t),t&&u.forEach(l),e||(u.forEach(l),m(s))})});return n.reduce(c)}},function(t,n,a){"use strict";var o=a(228),r=o.shift,e=o.createMask,i=o.maskLayer,f=function(t,n,a){return{tag:t,attr:n,children:a||[]}},l=function(t,n,a,o){var e={cx:r(t),cy:r(n),r:r(a)};return null!=o&&(e["stroke-width"]=r(o),e.fill="none"),f("circle",e)},c=function(t,n,a,o,e){var i={x:r(t-o/2),y:r(n-e/2),width:r(o),height:r(e)};return a&&(i.rx=r(a),i.ry=r(a)),f("rect",i)},s=function(t){var n=t.map(function(t){return t.map(r).join(",")}).join(" ");return f("polygon",{points:n})};t.exports=function(t,n,a,o){var r=t+"_pad-"+n,m=r+"_",u=a.reduce(function(t,n,u){var p;switch(n.type){case"circle":p=l(n.cx,n.cy,n.r);break;case"ring":p=l(n.cx,n.cy,n.r,n.width);break;case"rect":p=c(n.cx,n.cy,n.r,n.width,n.height);break;case"poly":p=s(n.points);break;case"clip":var h=function(t,n,a,o,r){var e=t+"mask-"+n,i="url(#"+e+")",m=l(o.cx,o.cy,o.r,o.width),u=r("mask",{id:e,stroke:"#fff"},[r(m.tag,m.attr)]),p=a.map(function(t){var n="rect"===t.type?c(t.cx,t.cy,t.r,t.width,t.height):s(t.points);return r(n.tag,n.attr)});return{mask:u,layer:f("g",{mask:i},p)}}(m,u,n.shape,n.clip,o);t.masks.push(h.mask),p=h.layer;break;case"layer":if(t.count++,t.last=n.polarity,"clear"===n.polarity){var v=m+t.count;t.maskId=v,t.maskBox=n.box.slice(0),t.maskChildren=[],t.layers=[i(v,t.layers,o)]}else{var d=e(t.maskId,t.maskBox,t.maskChildren,o);t.masks.push(d)}}if(p){1===a.length&&(p.attr.id=r);var y=o(p.tag,p.attr,p.children);"dark"===t.last?t.layers.push(y):t.maskChildren.push(y)}return t},{count:0,last:"dark",layers:[],maskId:"",maskBox:[],maskChildren:[],masks:[]});return"clear"===u.last&&u.masks.push(e(u.maskId,u.maskBox,u.maskChildren,o)),a.length>1&&(u.layers=o("g",{id:r},u.layers)),u.masks.concat(u.layers)}},function(t,n,a){"use strict";var o=a(228).shift;t.exports=function(t,n,a,r,e){return e("use",{"xlink:href":"#"+t+"_pad-"+n,x:o(a),y:o(r)})}},function(t,n,a){"use strict";var o=a(228).shift,r=function(t,n){return("L"===t||"M"===t?"":"L ")+o(n[0])+" "+o(n[1])},e=function(t,n,a,i,f,l){if(0===a)return r(t,f);if(a===2*Math.PI){var c=[2*l[0]-f[0],2*l[1]-f[1]];return e(t,n,Math.PI,i,c,l)+" "+e("A",n,Math.PI,i,f,l)}var s="A"===t?"":"A ";return s+=(n=o(n))+" "+n+" 0 ",s+=a>Math.PI?"1 ":"0 ",s+="ccw"===i?"1 ":"0 ",s+=o(f[0])+" "+o(f[1])},i=function(t,n){var a,i,f=n.type,l=n.start,c=n.end;return a=t.last,i=l,(a[0]!==i[0]||a[1]!==i[1])&&(t.data+=(t.data?" ":"")+function(t){return"M "+o(t[0])+" "+o(t[1])}(l),t.lastCmd="M"),t.data+=" ","line"===f?(t.data+=r(t.lastCmd,c),t.lastCmd="L"):(t.data+=e(t.lastCmd,n.radius,n.sweep,n.dir,c,n.center),t.lastCmd="A"),t.last=c,t};t.exports=function(t,n,a){var r={d:t.reduce(i,{last:[],data:""}).data};return null!=n&&(r.fill="none",r["stroke-width"]=o(n)),a("path",r)}},function(t,n,a){"use strict";var o=a(151),r=a(0),e=a(91),i=a(261),f=a(336),l=a(337),c=a(338),s=[r.SIDE_TOP,r.SIDE_BOTTOM],m={version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:cc":"http://creativecommons.org/ns#","xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","xmlns:svg":"http://www.w3.org/2000/svg","xmlns:sodipodi":"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd","xmlns:inkscape":"http://www.inkscape.org/namespaces/inkscape","xmlns:xlink":"http://www.w3.org/1999/xlink","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":0,"fill-rule":"evenodd","clip-rule":"evenodd"},u=a(341);function p(t,n,a,o){var e={};if(a&&(e.mask="url(#"+a+")"),o&&(e["clip-path"]="url(#"+o+")"),n===r.SIDE_BOTTOM){var i=2*t[0]+t[2];e.transform="translate("+i+",0) scale(-1,1)"}return e}function h(t){return{transform:"translate(0,"+(2*t[1]+t[3])+") scale(1,-1)"}}t.exports=function(t,n){var a=f(n),r=l(t),v=a.id,d=a.color,y=a.attributes,g=a.useOutline,S=a.createElement,x=s.map(function(t){return c(S,v,t,r[t],r.drills,r.outline,g,!0)}),w=x.reduce(function(t,n){return e.add(t,n.box)},e.create());return 4!==w.length&&(w=[0,0,0,0]),x.reduce(function(t,n,a){var r=s[a],f=i.getStyleElement(S,v+"_",r,d),l=n.units,c=n.mechMaskId,g=n.outClipId,x=[f].concat(n.defs);x.push(S("radialGradient",{id:"BackgroundGradient"},[S("stop",{offset:"0%","stop-color":"white"}),S("stop",{offset:"100%","stop-color":"black","stop-opacity":"0"})]));var k=[S("g",p(w,r,c,g),n.layer)],b=[S("g",p(w,r),n.copies)],z=[S("g",p(w,r),[n.outline])],P=S("defs",{},x),j=S("g",h(w),k),_=S("g",h(w),b),N=S("g",h(w),z),B=o(m,{id:v+"_"+r,viewBox:e.asString(w),width:w[2]/1e3+l,height:w[3]/1e3+l},y),R=S("g",{id:"insns_group",transform:`translate(${w[0]-155e3}, ${w[1]-95e3})`},[u]),E=S("rect",{x:w[0],y:w[1],width:w[2],height:w[3],fill:"url(#BackgroundGradient)"}),M=S("g",{"inkscape:groupmode":"layer","inkscape:label":"Background","sodipodi:insensitive":!0,id:"inscape_layer_insns"},[E]),T=S("g",{"inkscape:groupmode":"layer","inkscape:label":"Instructions","sodipodi:insensitive":!0,id:"inscape_layer_insns"},[R]),A=S("g",{"inkscape:groupmode":"layer","inkscape:label":"Board Render","sodipodi:insensitive":!0,id:"inscape_layer_render"},[j]),O=S("g",{"inkscape:groupmode":"layer","inkscape:label":"Pads",id:"inscape_layer_pads"},[_]),L=S("g",{"inkscape:groupmode":"layer","inkscape:label":"Outline","sodipodi:insensitive":!0,id:"inscape_layer_outline"},[N]),C=S("g",{"inkscape:groupmode":"layer","inkscape:label":"Test Points",id:"inscape_layer_tps"},[]),D=S("g",{"inkscape:groupmode":"layer","inkscape:label":"Mounting Holes",id:"inscape_layer_mount"},[]),I=S("g",{"inkscape:groupmode":"layer","inkscape:label":"Grip Slots",id:"inscape_layer_grip"},[]);return t[r]={svg:S("svg",B,['',P,M,T,A,O,L,I,D,C]),attributes:B,defs:x,layer:k,viewBox:w,width:w[2]/1e3,height:w[3]/1e3,units:l},t},a)}},function(t,n,a){var o=a(333),r=a(334),e={};for(var i in o)o.hasOwnProperty(i)&&(e[o[i]]=i);var f=t.exports={to:{},get:{}};function l(t,n,a){return Math.min(Math.max(n,t),a)}function c(t){var n=t.toString(16).toUpperCase();return n.length<2?"0"+n:n}f.get=function(t){var n,a;switch(t.substring(0,3).toLowerCase()){case"hsl":n=f.get.hsl(t),a="hsl";break;case"hwb":n=f.get.hwb(t),a="hwb";break;default:n=f.get.rgb(t),a="rgb"}return n?{model:a,value:n}:null},f.get.rgb=function(t){if(!t)return null;var n,a,r,e=[0,0,0,1];if(n=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=n[2],n=n[1],a=0;a<3;a++){var i=2*a;e[a]=parseInt(n.slice(i,i+2),16)}r&&(e[3]=Math.round(parseInt(r,16)/255*100)/100)}else if(n=t.match(/^#([a-f0-9]{3,4})$/i)){for(r=(n=n[1])[3],a=0;a<3;a++)e[a]=parseInt(n[a]+n[a],16);r&&(e[3]=Math.round(parseInt(r+r,16)/255*100)/100)}else if(n=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(a=0;a<3;a++)e[a]=parseInt(n[a+1],0);n[4]&&(e[3]=parseFloat(n[4]))}else{if(!(n=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(n=t.match(/(\D+)/))?"transparent"===n[1]?[0,0,0,0]:(e=o[n[1]])?(e[3]=1,e):null:null;for(a=0;a<3;a++)e[a]=Math.round(2.55*parseFloat(n[a+1]));n[4]&&(e[3]=parseFloat(n[4]))}for(a=0;a<3;a++)e[a]=l(e[a],0,255);return e[3]=l(e[3],0,1),e},f.get.hsl=function(t){if(!t)return null;var n=t.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(n){var a=parseFloat(n[4]);return[(parseFloat(n[1])+360)%360,l(parseFloat(n[2]),0,100),l(parseFloat(n[3]),0,100),l(isNaN(a)?1:a,0,1)]}return null},f.get.hwb=function(t){if(!t)return null;var n=t.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(n){var a=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,l(parseFloat(n[2]),0,100),l(parseFloat(n[3]),0,100),l(isNaN(a)?1:a,0,1)]}return null},f.to.hex=function(){var t=r(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},f.to.rgb=function(){var t=r(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},f.to.rgb.percent=function(){var t=r(arguments),n=Math.round(t[0]/255*100),a=Math.round(t[1]/255*100),o=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+n+"%, "+a+"%, "+o+"%)":"rgba("+n+"%, "+a+"%, "+o+"%, "+t[3]+")"},f.to.hsl=function(){var t=r(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},f.to.hwb=function(){var t=r(arguments),n="";return t.length>=4&&1!==t[3]&&(n=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"},f.to.keyword=function(t){return e[t.slice(0,3)]}},function(t,n,a){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,n,a){"use strict";var o=a(335),r=Array.prototype.concat,e=Array.prototype.slice,i=t.exports=function(t){for(var n=[],a=0,i=t.length;a=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},function(t,n,a){"use strict";var o=a(261),r=a(85),e=a(234);t.exports=function(t){return"string"==typeof t?t={id:t}:t||(t={}),{id:r.ensure(t.id),color:o.getColor(t.color),attributes:t.attributes||{},useOutline:null==t.useOutline||t.useOutline,createElement:t.createElement||e}}},function(t,n,a){"use strict";var o=a(0);function r(t){return null!=t&&null!=t.type&&null!=t.side&&null!=t.converter&&null!=t.converter.layer&&t.converter.layer.length}function e(t,n){var a=n.type,r=n.side;return a===o.TYPE_DRILL?t.drills.push(n):a===o.TYPE_OUTLINE?t.outline=n:r===o.SIDE_TOP?t.top.push(n):r===o.SIDE_BOTTOM&&t.bottom.push(n),t}t.exports=function(t){return t.filter(r).reduce(e,{top:[],bottom:[],drills:[],outline:null})}},function(t,n,a){"use strict";var o=a(91),r=a(0),e=a(339);function i(t,n){var a,o;for(o=0;oh.mm?"in":"mm");var g,S,x=(c&&l?[l]:v).reduce(function(t,n){var a=n.converter.viewBox,r=n.converter.units;return r&&0!==a[2]&&0!==a[3]?o.add(t,o.scale(a,i(p,r))):t},o.create()),w=function(n){return function(a){var o=a.externalId,r=a.converter;o||(o=y(a.type),s.push(e(t,{id:o},r,i(p,r.units)))),n.push({type:a.type,id:o,makeCopy:function(n){return e(t,n,r,i(p,r.units))}})}};return a.forEach(w(m)),f.forEach(w(u)),l&&(l.externalId&&!c?g=l.externalId:(g=y(l.type),s.push(e(t,{id:g},l.converter,i(p,l.converter.units),c?"clipPath":"g")),S=function(n){return e(t,n,l.converter,i(p,l.converter.units))})),{defs:s,box:x,units:p,layerIds:m,drillIds:u,outlineId:g,copyOutline:S}}},function(t,n,a){"use strict";t.exports=function(t,n,a,o,r){var e=a.layer;return o&&1!==o&&(n.transform="scale("+o+","+o+")"),t(r||"g",n,e)}},function(t,n){t.exports='\n\n \n \n \n \n \n \n\n\n\n \n \n \n \n \n \n \n \n \n \n ✓ ✓ \n \n ✗ ✗ \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,a){"use strict";var o=a(151),r=a(280),e=a(281),i=a(282),f=a(331),l=a(0);function c(t,n){var a=l.validate(t),o=null;return t.converter||t.gerber?t.filename||t.type?t.filename||a.valid||(o="has invalid side/type ("+t.side+"/"+t.type+")"):o="is missing filename or side/type":o="is missing gerber source or cached converter",o?"layer "+n+" "+o:null}t.exports=function(t,n,a){var s;if("function"==typeof n&&(a=n,n=null),function(t){if(!Array.isArray(t))throw new Error("first argument should be an array of layers");var n=t.map(c).filter(Boolean).join(", ");if(n)throw new Error(n)}(t),null==a){if("function"!=typeof Promise)throw new Error("No callback specified and global Promise not found");s=new Promise(function(t,n){a=function(a,o){if(a)return n(a);t(o)}})}var m=l(t.map(function(t){return t.filename}).filter(Boolean));return e([function(n){var a=t.map(u);r(a,n)},function(t,a){var o=f(t,n);o.layers=t,a(null,o)}],function(t,n){if(t)return a(t);a(null,n)}),s;function u(t){return function(a){var r=function(t){var a=t.side,r=t.type;if(t.filename&&void 0===a&&void 0===r){var e=m[t.filename];a=e.side,r=e.type}var i=o(t.options);null==i.plotAsOutline&&r===l.TYPE_OUTLINE&&(i.plotAsOutline=!0);n&&null!=n.outlineGapFill&&i.plotAsOutline&&(i.plotAsOutline=n.outlineGapFill);return o(t,{side:a,type:r,options:i})}(t);if(r.converter)return a(null,r);var e=i(r.gerber,r.options,function(t){if(t)return a(t);r.converter=e,a(null,r)})}}}}])); //# sourceMappingURL=2.2860b24d78cee11b8d5e.worker.js.map