!function(t){this.webpackChunk=function(e,n){for(var o in n)t[o]=n[o];for(;e.length;)r[e.pop()]=1};var e={},r={1:1};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.e=function(t){var e=[];return e.push(Promise.resolve().then(function(){r[t]||importScripts(n.p+""+t+".2860b24d78cee11b8d5e.worker.js")})),Promise.all(e)},n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=213)}([function(t,e,r){"use strict";var n=r(130),o=r(131),i=r(189),a=r(190),u=r(132);t.exports=function(t){"string"==typeof t&&(t=[t]);var e=o(t,a),r=i(e);return t.reduce(function(t,n){var o=function(t,e,r){var n=t.filter(function(t){return t.filename===e});return n.find(function(t){return t.cad===r})||n[0]||null}(e,n,r);return t[n]=o?{type:o.type,side:o.side}:{type:null,side:null},t},{})},t.exports.validate=function(t){return{valid:u.some(function(e){return e.side===t.side&&e.type===t.type}),side:u.some(function(e){return e.side===t.side})?t.side:null,type:u.some(function(e){return e.type===t.type})?t.type:null}},t.exports.getAllLayers=function(){return u.map(function(t){return{type:t.type,side:t.side}}).filter(function(t){return null!==t.type})},Object.keys(n).forEach(function(e){t.exports[e]=n[e]})},function(t,e,r){var n=r(2),o=r(46).f,i=r(12),a=r(15),u=r(67),s=r(94),c=r(72);t.exports=function(t,e){var r,f,l,h,p,d=t.target,y=t.global,v=t.stat;if(r=y?n:v?n[d]||u(d,{}):(n[d]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=o(r,f))&&p.value:r[f],!c(y?f:d+(v?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;s(h,l)}(t.sham||l&&l.sham)&&i(h,"sham",!0),a(r,f,h,t)}}},function(t,e,r){(function(e){var r="object",n=function(t){return t&&t.Math==Math&&t};t.exports=n(typeof globalThis==r&&globalThis)||n(typeof window==r&&window)||n(typeof self==r&&self)||n(typeof e==r&&e)||Function("return this")()}).call(this,r(18))},function(t,e,r){var n=r(2),o=r(33),i=r(51),a=r(97),u=n.Symbol,s=o("wks");t.exports=function(t){return s[t]||(s[t]=a&&u[t]||(a?u:i)("Symbol."+t))}},function(t,e,r){"use strict";var n=r(140);r.d(e,"CREATE_BOARD",function(){return n.a}),r.d(e,"CREATE_BOARD_FROM_URL",function(){return n.b}),r.d(e,"DELETE_ALL_BOARDS",function(){return n.c}),r.d(e,"DELETE_BOARD",function(){return n.d}),r.d(e,"GET_BOARD",function(){return n.e}),r.d(e,"GET_BOARD_PACKAGE",function(){return n.f}),r.d(e,"UPDATE_BOARD",function(){return n.g}),r.d(e,"allBoardsDeleted",function(){return n.h}),r.d(e,"boardDeleted",function(){return n.i}),r.d(e,"boardPackaged",function(){return n.j}),r.d(e,"boardRendered",function(){return n.k}),r.d(e,"boardUpdated",function(){return n.l}),r.d(e,"workerErrored",function(){return n.m}),r.d(e,"workerInitialized",function(){return n.n});r(141),r(142)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(5);t.exports=!n(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(7),o=r(92),i=r(9),a=r(49),u=Object.defineProperty;e.f=n?u:function(t,e,r){if(i(t),e=a(e,!0),i(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(6);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,r){"use strict";r.d(e,"createDatabase",function(){return c}),r.d(e,"saveBoard",function(){return l}),r.d(e,"getBoard",function(){return p}),r.d(e,"getBoards",function(){return y}),r.d(e,"findBoardByUrl",function(){return g}),r.d(e,"deleteBoard",function(){return b}),r.d(e,"deleteAllBoards",function(){return w});r(45),r(53),r(54),r(57),r(173),r(81),r(112),r(74),r(27),r(83),r(60),r(28),r(61),r(62),r(84),r(21),r(113),r(39),r(114),r(40),r(41),r(56);var n=r(143);r(124);function o(){return(o=Object.assign||function(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function u(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,s,"next",t)}function s(t){u(i,n,o,a,s,"throw",t)}a(void 0)})}}function c(){return f.apply(this,arguments)}function f(){return(f=s(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.e(3).then(r.bind(null,214)).then(function(t){var e=new(0,t.default)("BoardDatabase");return e.version(1).stores({boards:"id, &sourceUrl",layers:"id, sourceId",sources:"id"}),e}));case 1:case"end":return t.stop()}},t)}))).apply(this,arguments)}function l(t,e){return h.apply(this,arguments)}function h(){return(h=s(regeneratorRuntime.mark(function t(e,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.transaction("rw",e.boards,e.layers,e.sources,s(regeneratorRuntime.mark(function t(){var n,o,i,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.layers,o=a(r,["layers"]),i=o.layerIds.map(function(t){var e=n[t];e.source;return a(e,["source"])}),u=o.layerIds.map(function(t){var e=n[t];return{id:e.sourceId,contents:e.source}}),e.sources.bulkPut(u),e.layers.bulkPut(i),t.abrupt("return",e.boards.put(o));case 6:case"end":return t.stop()}},t)}))));case 1:case"end":return t.stop()}},t)}))).apply(this,arguments)}function p(t,e){return d.apply(this,arguments)}function d(){return(d=s(regeneratorRuntime.mark(function t(e,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.transaction("r",e.boards,e.layers,e.sources,s(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.boards.get(r).then(function(t){if(!t)throw new n.a("board ".concat(r," not found"));return A(e,t)}));case 1:case"end":return t.stop()}},t)}))));case 1:case"end":return t.stop()}},t)}))).apply(this,arguments)}function y(t){return v.apply(this,arguments)}function v(){return(v=s(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.boards.toArray().then(function(t){return t.map(function(t){return{id:t.id,name:t.name,options:t.options,thumbnail:t.thumbnail}})}));case 1:case"end":return t.stop()}},t)}))).apply(this,arguments)}function g(t,e){return m.apply(this,arguments)}function m(){return(m=s(regeneratorRuntime.mark(function t(e,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.transaction("r",e.boards,e.layers,e.sources,s(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.boards.get({sourceUrl:r}).then(function(t){return t?A(e,t):Promise.resolve(null)}));case 1:case"end":return t.stop()}},t)}))));case 1:case"end":return t.stop()}},t)}))).apply(this,arguments)}function b(t,e){return _.apply(this,arguments)}function _(){return(_=s(regeneratorRuntime.mark(function t(e,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.transaction("rw",e.boards,e.layers,e.sources,function(){return p(e,r).then(function(t){var n=Object.values(t.layers).map(function(t){return t.sourceId});e.boards.delete(r),e.layers.bulkDelete(t.layerIds).then(function(){return e.layers.orderBy("sourceId").uniqueKeys()}).then(function(t){var r=n.filter(function(e){return!t.includes(e)});e.sources.bulkDelete(r)})})}));case 1:case"end":return t.stop()}},t)}))).apply(this,arguments)}function w(t){return E.apply(this,arguments)}function E(){return(E=s(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.transaction("rw",e.boards,e.layers,e.sources,function(){e.sources.clear(),e.layers.clear(),e.boards.clear()}));case 1:case"end":return t.stop()}},t)}))).apply(this,arguments)}function A(t,e){return x.apply(this,arguments)}function x(){return(x=s(regeneratorRuntime.mark(function t(e,r){var n,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.layers.where("id").anyOf(r.layerIds).toArray(),a=n.then(function(t){return e.sources.where("id").anyOf(t.map(function(t){return t.sourceId})).toArray()}),t.abrupt("return",Promise.all([n,a]).then(function(t){var e=i(t,2),n=e[0],a=e[1],u=n.reduce(function(t,e){var r,n,i,u=a.find(function(t){return t.id===e.sourceId});return u?o({},t,(r={},n=e.id,i=o({},e,{source:u.contents}),n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r)):t},{});return o({},r,{layers:u})}));case 3:case"end":return t.stop()}},t)}))).apply(this,arguments)}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(7),o=r(8),i=r(32);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){var n=r(47),o=r(48);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(2),o=r(33),i=r(12),a=r(11),u=r(67),s=r(93),c=r(24),f=c.get,l=c.enforce,h=String(s).split("toString");o("inspectSource",function(t){return s.call(t)}),(t.exports=function(t,e,r,o){var s=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,f=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof e||a(r,"name")||i(r,"name",e),l(r).source=h.join("string"==typeof e?e:"")),t!==n?(s?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=r:i(t,e,r)):c?t[e]=r:u(e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&f(this).source||s.call(this)})},function(t,e,r){var n=r(48);t.exports=function(t){return Object(n(t))}},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var s,c=[],f=!1,l=-1;function h(){f&&s&&(f=!1,s.length?c=s.concat(c):l=-1,c.length&&p())}function p(){if(!f){var t=u(h);f=!0;for(var e=c.length;e;){for(s=c,c=[];++l1)for(var r=1;r0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(15),o=r(162),i=Object.prototype;o!==i.toString&&n(i,"toString",o,{unsafe:!0})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,r){"use strict";var n=r(63),o=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=l;var i=r(42);i.inherits=r(13);var a=r(135),u=r(86);i.inherits(l,a);for(var s=o(u.prototype),c=0;cdocument.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l.prototype[i[r]];return l()};t.exports=Object.create||function(t,e){var r;return null!==t?(f.prototype=n(t),r=new f,f.prototype=null,r[c]=t):r=l(),void 0===e?r:o(r,e)},a[c]=!0},function(t,e,r){"use strict";var n=r(14),o=r(75),i=r(38),a=r(24),u=r(76),s=a.set,c=a.getterFor("Array Iterator");t.exports=u(Array,"Array",function(t,e){s(this,{type:"Array Iterator",target:n(t),index:0,kind:e})},function(){var t=c(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,r){var n=r(7),o=r(8).f,i=Function.prototype,a=i.toString,u=/^\s*function ([^ (]*)/;!n||"name"in i||o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(u)[1]}catch(t){return""}}})},function(t,e,r){var n=r(44),o=n.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a),i(o,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){(e=t.exports=r(135)).Stream=e,e.Readable=e,e.Writable=r(86),e.Duplex=r(23),e.Transform=r(138),e.PassThrough=r(199)},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(2),o=r(67),i=r(34),a=n["__core-js_shared__"]||o("__core-js_shared__",{});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.1.3",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e){t.exports={}},function(t,e,r){var n=r(8).f,o=r(11),i=r(3)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(19);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e){t.exports={}},function(t,e,r){"use strict";var n,o,i,a=r(1),u=r(34),s=r(2),c=r(73),f=r(104),l=r(36),h=r(105),p=r(6),d=r(22),y=r(79),v=r(19),g=r(80),m=r(106),b=r(167),_=r(107).set,w=r(168),E=r(169),A=r(170),x=r(109),O=r(171),S=r(108),C=r(24),R=r(72),D=r(3)("species"),L="Promise",T=C.get,k=C.set,P=C.getterFor(L),j=s.Promise,I=s.TypeError,M=s.document,B=s.process,G=s.fetch,U=B&&B.versions,N=U&&U.v8||"",Y=x.f,F=Y,K="process"==v(B),W=!!(M&&M.createEvent&&s.dispatchEvent),q=R(L,function(){var t=j.resolve(1),e=function(){},r=(t.constructor={})[D]=function(t){t(e,e)};return!((K||"function"==typeof PromiseRejectionEvent)&&(!u||t.finally)&&t.then(e)instanceof r&&0!==N.indexOf("6.6")&&-1===S.indexOf("Chrome/66"))}),z=q||!m(function(t){j.all(t).catch(function(){})}),$=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},H=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;w(function(){for(var o=e.value,i=1==e.state,a=0,u=function(r){var n,a,u,s=i?r.ok:r.fail,c=r.resolve,f=r.reject,l=r.domain;try{s?(i||(2===e.rejection&&X(t,e),e.rejection=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),u=!0)),n===r.promise?f(I("Promise-chain cycle")):(a=$(n))?a.call(n,c,f):c(n)):f(o)}catch(t){l&&!u&&l.exit(),f(t)}};n.length>a;)u(n[a++]);e.reactions=[],e.notified=!1,r&&!e.rejection&&Q(t,e)})}},V=function(t,e,r){var n,o;W?((n=M.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),s.dispatchEvent(n)):n={promise:e,reason:r},(o=s["on"+t])?o(n):"unhandledrejection"===t&&A("Unhandled promise rejection",r)},Q=function(t,e){_.call(s,function(){var r,n=e.value;if(J(e)&&(r=O(function(){K?B.emit("unhandledRejection",n,t):V("unhandledrejection",t,n)}),e.rejection=K||J(e)?2:1,r.error))throw r.value})},J=function(t){return 1!==t.rejection&&!t.parent},X=function(t,e){_.call(s,function(){K?B.emit("rejectionHandled",t):V("rejectionhandled",t,e.value)})},Z=function(t,e,r,n){return function(o){t(e,r,o,n)}},tt=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,H(t,e,!0))},et=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw I("Promise can't be resolved itself");var o=$(r);o?w(function(){var n={done:!1};try{o.call(r,Z(et,t,n,e),Z(tt,t,n,e))}catch(r){tt(t,n,r,e)}}):(e.value=r,e.state=1,H(t,e,!1))}catch(r){tt(t,{done:!1},r,e)}}};q&&(j=function(t){y(this,j,L),d(t),n.call(this);var e=T(this);try{t(Z(et,this,e),Z(tt,this,e))}catch(t){tt(this,e,t)}},(n=function(t){k(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(j.prototype,{then:function(t,e){var r=P(this),n=Y(b(this,j));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=K?B.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&H(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n,e=T(t);this.promise=t,this.resolve=Z(et,t,e),this.reject=Z(tt,t,e)},x.f=Y=function(t){return t===j||t===i?new o(t):F(t)},u||"function"!=typeof G||a({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return E(j,G.apply(s,arguments))}})),a({global:!0,wrap:!0,forced:q},{Promise:j}),l(j,L,!1,!0),h(L),i=c.Promise,a({target:L,stat:!0,forced:q},{reject:function(t){var e=Y(this);return e.reject.call(void 0,t),e.promise}}),a({target:L,stat:!0,forced:u||q},{resolve:function(t){return E(u&&this===i?j:this,t)}}),a({target:L,stat:!0,forced:z},{all:function(t){var e=this,r=Y(e),n=r.resolve,o=r.reject,i=O(function(){var r=d(e.resolve),i=[],a=0,u=1;g(t,function(t){var s=a++,c=!1;i.push(void 0),u++,r.call(e,t).then(function(t){c||(c=!0,i[s]=t,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Y(e),n=r.reject,o=O(function(){var o=d(e.resolve);g(t,function(t){o.call(e,t).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}})},function(t,e,r){"use strict";var n=r(172),o=r(24),i=r(76),a=o.set,u=o.getterFor("String Iterator");i(String,"String",function(t){a(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=u(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o,!0),e.index+=t.length,{value:t,done:!1})})},function(t,e,r){var n=r(2),o=r(110),i=r(27),a=r(12),u=r(3),s=u("iterator"),c=u("toStringTag"),f=i.values;for(var l in o){var h=n[l],p=h&&h.prototype;if(p){if(p[s]!==f)try{a(p,s,f)}catch(t){p[s]=f}if(p[c]||a(p,c,l),o[l])for(var d in i)if(p[d]!==i[d])try{a(p,d,i[d])}catch(t){p[d]=i[d]}}}},function(t,e,r){(function(t){function r(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===r(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===r(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===r(t)},e.isError=function(t){return"[object Error]"===r(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,r(44).Buffer)},function(t,e,r){"use strict";r.d(e,"b",function(){return o}),r.d(e,"a",function(){return i});r(134),r(60),r(21),r(39);var n=r(88);function o(t,e){return t.reduce(function(t,r){return t.then(function(t){return Promise.resolve(e(r)).then(function(e){return t.concat(e)})})},Promise.resolve([]))}function i(t,e){return Object(n.basename)(t,e?Object(n.extname)(t):"")}},function(t,e,r){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var n=r(192),o=r(193),i=r(133);function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function d(t,e){if(s.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(t).length;default:if(n)return Y(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,r);case"utf8":case"utf-8":return S(this,e,r);case"ascii":return R(this,e,r);case"latin1":case"binary":return D(this,e,r);case"base64":return O(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,o){var i,a=1,u=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,u/=2,s/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var f=-1;for(i=r;iu&&(r=u-s),i=r;i>=0;i--){for(var l=!0,h=0;ho&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function O(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function S(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o239?4:c>223?3:c>191?2:1;if(o+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(i=t[o+1]))&&(s=(31&c)<<6|63&i)>127&&(f=s);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(f=s);break;case 4:i=t[o+1],a=t[o+2],u=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(f=s)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=l}return function(t){var e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},s.prototype.compare=function(t,e,r,n,o){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),u=Math.min(i,a),c=this.slice(n,o),f=t.slice(e,r),l=0;lo)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return _(this,t,e,r);case"ascii":return w(this,t,e,r);case"latin1":case"binary":return E(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function R(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;on)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,r,n,o,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function j(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o>>8*(n?o:1-o)}function I(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o>>8*(n?o:3-o)&255}function M(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function B(t,e,r,n,i){return i||M(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function G(t,e,r,n,i){return i||M(t,0,r,8),o.write(t,e,r,n,52,8),r+8}s.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(o*=256);)n+=this[t+--e]*o;return n},s.prototype.readUInt8=function(t,e){return e||k(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return e||k(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return e||k(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return e||k(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return e||k(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||k(t,e,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||k(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return e||k(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){e||k(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){e||k(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return e||k(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return e||k(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return e||k(t,4,this.length),o.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return e||k(t,4,this.length),o.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return e||k(t,8,this.length),o.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return e||k(t,8,this.length),o.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+o]=t/i&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):I(this,t,e,!0),e+4},s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);P(this,t,e,r,o-1,-o)}var i=0,a=1,u=0;for(this[e]=255&t;++i>0)-u&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);P(this,t,e,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===u&&0!==this[e+i+1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):I(this,t,e,!0),e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},s.prototype.writeFloatLE=function(t,e,r){return B(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return B(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return G(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return G(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function F(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}}).call(this,r(18))},function(t,e,r){"use strict";var n=r(1),o=r(2),i=r(11),a=r(97),u=r(7),s=r(34),c=r(15),f=r(35),l=r(5),h=r(33),p=r(36),d=r(51),y=r(3),v=r(98),g=r(99),m=r(157),b=r(37),_=r(9),w=r(6),E=r(16),A=r(14),x=r(49),O=r(32),S=r(26),C=r(68),R=r(159),D=r(46),L=r(8),T=r(31),k=r(12),P=r(25),j=r(52),I=r(50),M=r(24),B=I("hidden"),G=M.set,U=M.getterFor("Symbol"),N=D.f,Y=L.f,F=R.f,K=o.Symbol,W=o.JSON,q=W&&W.stringify,z=y("toPrimitive"),$=T.f,H=h("symbol-registry"),V=h("symbols"),Q=h("op-symbols"),J=h("wks"),X=Object.prototype,Z=o.QObject,tt=!Z||!Z.prototype||!Z.prototype.findChild,et=u&&l(function(){return 7!=S(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=N(X,e);n&&delete X[e],Y(t,e,r),n&&t!==X&&Y(X,e,n)}:Y,rt=function(t,e){var r=V[t]=S(K.prototype);return G(r,{type:"Symbol",tag:t,description:e}),u||(r.description=e),r},nt=a&&"symbol"==typeof K.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof K},ot=function(t,e,r){return t===X&&ot(Q,e,r),_(t),e=x(e,!0),_(r),i(V,e)?(r.enumerable?(i(t,B)&&t[B][e]&&(t[B][e]=!1),r=S(r,{enumerable:O(0,!1)})):(i(t,B)||Y(t,B,O(1,{})),t[B][e]=!0),et(t,e,r)):Y(t,e,r)},it=function(t,e){_(t);for(var r,n=m(e=A(e)),o=0,i=n.length;i>o;)ot(t,r=n[o++],e[r]);return t},at=function(t){var e=$.call(this,t=x(t,!0));return!(this===X&&i(V,t)&&!i(Q,t))&&(!(e||!i(this,t)||!i(V,t)||i(this,B)&&this[B][t])||e)},ut=function(t,e){if(t=A(t),e=x(e,!0),t!==X||!i(V,e)||i(Q,e)){var r=N(t,e);return!r||!i(V,e)||i(t,B)&&t[B][e]||(r.enumerable=!0),r}},st=function(t){for(var e,r=F(A(t)),n=[],o=0;r.length>o;)i(V,e=r[o++])||i(f,e)||n.push(e);return n},ct=function(t){for(var e,r=t===X,n=F(r?Q:A(t)),o=[],a=0;n.length>a;)!i(V,e=n[a++])||r&&!i(X,e)||o.push(V[e]);return o};a||(c((K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor");var t=void 0===arguments[0]?void 0:String(arguments[0]),e=d(t),r=function(t){this===X&&r.call(Q,t),i(this,B)&&i(this[B],e)&&(this[B][e]=!1),et(this,e,O(1,t))};return u&&tt&&et(X,e,{configurable:!0,set:r}),rt(e,t)}).prototype,"toString",function(){return U(this).tag}),T.f=at,L.f=ot,D.f=ut,C.f=R.f=st,j.f=ct,u&&(Y(K.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),s||c(X,"propertyIsEnumerable",at,{unsafe:!0})),v.f=function(t){return rt(y(t),t)}),n({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:K});for(var ft=P(J),lt=0;ft.length>lt;)g(ft[lt++]);n({target:"Symbol",stat:!0,forced:!a},{for:function(t){return i(H,t+="")?H[t]:H[t]=K(t)},keyFor:function(t){if(!nt(t))throw TypeError(t+" is not a symbol");for(var e in H)if(H[e]===t)return e},useSetter:function(){tt=!0},useSimple:function(){tt=!1}}),n({target:"Object",stat:!0,forced:!a,sham:!u},{create:function(t,e){return void 0===e?S(t):it(S(t),e)},defineProperty:ot,defineProperties:it,getOwnPropertyDescriptor:ut}),n({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:st,getOwnPropertySymbols:ct}),n({target:"Object",stat:!0,forced:l(function(){j.f(1)})},{getOwnPropertySymbols:function(t){return j.f(E(t))}}),W&&n({target:"JSON",stat:!0,forced:!a||l(function(){var t=K();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))})},{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(w(e)||void 0!==t)&&!nt(t))return b(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!nt(e))return e}),n[1]=e,q.apply(W,n)}}),K.prototype[z]||k(K.prototype,z,K.prototype.valueOf),p(K,"Symbol"),f[B]=!0},function(t,e,r){var n=r(7),o=r(31),i=r(32),a=r(14),u=r(49),s=r(11),c=r(92),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=u(e,!0),c)try{return f(t,e)}catch(t){}if(s(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,r){var n=r(5),o=r(19),i="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(6);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(33),o=r(51),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){"use strict";var n=r(1),o=r(7),i=r(2),a=r(11),u=r(6),s=r(8).f,c=r(94),f=i.Symbol;if(o&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};c(h,f);var p=h.prototype=f.prototype;p.constructor=h;var d=p.toString,y="Symbol(test)"==String(f("test")),v=/^Symbol\((.*)\)[^)]+$/;s(p,"description",{configurable:!0,get:function(){var t=u(this)?this.valueOf():this,e=d.call(t);if(a(l,t))return"";var r=y?e.slice(7,-1):e.replace(v,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(t,e,r){r(99)("iterator")},function(t,e,r){var n=r(22);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return D()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=x(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=c(t,e,r);if("normal"===s.type){if(n=r.done?p:l,s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",l="suspendedYield",h="executing",p="completed",d={};function y(){}function v(){}function g(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,_=b&&b(b(R([])));_&&_!==r&&n.call(_,i)&&(m=_);var w=g.prototype=y.prototype=Object.create(m);function E(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function A(t){var e;this._invoke=function(r,o){function i(){return new Promise(function(e,i){!function e(r,o,i,a){var u=c(t[r],t,o);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(f).then(function(t){s.value=t,i(s)},function(t){return e("throw",t,i,a)})}a(u.arg)}(r,o,e,i)})}return e=e?e.then(i,i):i()}}function x(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=c(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function R(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";var n=r(1),o=r(58),i=r(59),a=o(2);n({target:"Array",proto:!0,forced:!i("filter")},{filter:function(t){return a(this,t,arguments[1])}})},function(t,e,r){var n=r(55),o=r(47),i=r(16),a=r(20),u=r(111);t.exports=function(t,e){var r=1==t,s=2==t,c=3==t,f=4==t,l=6==t,h=5==t||l,p=e||u;return function(e,u,d){for(var y,v,g=i(e),m=o(g),b=n(u,d,3),_=a(m.length),w=0,E=r?p(e,_):s?p(e,0):void 0;_>w;w++)if((h||w in m)&&(v=b(y=m[w],w,g),t))if(r)E[w]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return w;case 2:E.push(y)}else if(f)return!1;return l?-1:c||f?f:E}}},function(t,e,r){var n=r(5),o=r(3)("species");t.exports=function(t){return!n(function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(t,e,r){"use strict";var n=r(1),o=r(174);n({target:"Array",proto:!0,forced:r(82)("reduce")},{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,r){var n=r(1),o=r(175);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,r){var n=r(1),o=r(7);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:r(8).f})},function(t,e,r){"use strict";(function(e){!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,o){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,a,u=arguments.length;switch(u){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,r)});case 3:return e.nextTick(function(){t.call(null,r,n)});case 4:return e.nextTick(function(){t.call(null,r,n,o)});default:for(i=new Array(u-1),a=0;a0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,u=s,console&&console.warn&&console.warn(u)}return t}function l(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=function(){for(var t=[],e=0;e0&&(a=e[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=o[t];if(void 0===s)return!1;if("function"==typeof s)i(s,this,e);else{var c=s.length,f=d(s,c);for(r=0;r=0;i--)if(r[i]===e||r[i].listener===e){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},u.prototype.listeners=function(t){return h(this,t,!0)},u.prototype.rawListeners=function(t){return h(this,t,!1)},u.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},u.prototype.listenerCount=p,u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(t,e,r){var n=r(2),o=r(6),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,r){var n=r(2),o=r(12);t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(95),o=r(71).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(14),o=r(20),i=r(96);t.exports=function(t){return function(e,r,a){var u,s=n(e),c=o(s.length),f=i(a,c);if(t&&r!=r){for(;c>f;)if((u=s[f++])!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===r)return t||f||0;return!t&&-1}}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,r){var n=r(5),o=/#|\.prototype\./,i=function(t,e){var r=u[a(t)];return r==c||r!=s&&("function"==typeof e?n(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},s=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},function(t,e,r){t.exports=r(2)},function(t,e,r){r(1)({target:"Array",stat:!0},{isArray:r(37)})},function(t,e,r){var n=r(3),o=r(26),i=r(12),a=n("unscopables"),u=Array.prototype;null==u[a]&&i(u,a,o(null)),t.exports=function(t){u[a][t]=!0}},function(t,e,r){"use strict";var n=r(1),o=r(160),i=r(77),a=r(78),u=r(36),s=r(12),c=r(15),f=r(3),l=r(34),h=r(38),p=r(101),d=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,v=f("iterator"),g=function(){return this};t.exports=function(t,e,r,f,p,m,b){o(r,e,f);var _,w,E,A=function(t){if(t===p&&R)return R;if(!y&&t in S)return S[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},x=e+" Iterator",O=!1,S=t.prototype,C=S[v]||S["@@iterator"]||p&&S[p],R=!y&&C||A(p),D="Array"==e&&S.entries||C;if(D&&(_=i(D.call(new t)),d!==Object.prototype&&_.next&&(l||i(_)===d||(a?a(_,d):"function"!=typeof _[v]&&s(_,v,g)),u(_,x,!0,!0),l&&(h[x]=g))),"values"==p&&C&&"values"!==C.name&&(O=!0,R=function(){return C.call(this)}),l&&!b||S[v]===R||s(S,v,R),h[e]=R,p)if(w={values:A("values"),keys:m?R:A("keys"),entries:A("entries")},b)for(E in w)!y&&!O&&E in S||c(S,E,w[E]);else n({target:e,proto:!0,forced:y||O},w);return w}},function(t,e,r){var n=r(11),o=r(16),i=r(50),a=r(102),u=i("IE_PROTO"),s=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),n(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,r){var n=r(161);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,o){return n(r,o),e?t.call(r,o):r.__proto__=o,r}}():void 0)},function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},function(t,e,r){var n=r(9),o=r(164),i=r(20),a=r(55),u=r(165),s=r(166),c={};(t.exports=function(t,e,r,f,l){var h,p,d,y,v,g=a(e,r,f?2:1);if(l)h=t;else{if("function"!=typeof(p=u(t)))throw TypeError("Target is not iterable");if(o(p)){for(d=0,y=i(t.length);y>d;d++)if((f?g(n(v=t[d])[0],v[1]):g(t[d]))===c)return c;return}h=p.call(t)}for(;!(v=h.next()).done;)if(s(h,g,v.value,f)===c)return c}).BREAK=c},function(t,e,r){"use strict";var n=r(1),o=r(69),i=r(75),a=o(!0);n({target:"Array",proto:!0},{includes:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(t,e,r){"use strict";var n=r(5);t.exports=function(t,e){var r=[][t];return!r||!n(function(){r.call(null,e||function(){throw 1},1)})}},function(t,e,r){"use strict";var n=r(1),o=r(58),i=r(59),a=o(1);n({target:"Array",proto:!0,forced:!i("map")},{map:function(t){return a(this,t,arguments[1])}})},function(t,e,r){var n=r(1),o=r(16),i=r(25);n({target:"Object",stat:!0,forced:r(5)(function(){i(1)})},{keys:function(t){return i(o(t))}})},function(t,e,r){"use strict";var n="_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",o="-0123456789"+n,i=new RegExp("^[^"+n+"]|[^\\"+o+"]","g"),a=12;function u(t){return t=t||a,c(1,n)+c(t-1,o)}function s(t){return t.replace(i,"_")}function c(t,e){for(var r=e.length,n="";t>0;)t--,n+=e[Math.floor(Math.random()*r)];return n}t.exports={random:u,sanitize:s,ensure:function(t,e){return"string"==typeof t?s(t):u(e)}}},function(t,e,r){"use strict";(function(e,n,o){var i=r(63);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var o=n.callback;e.pendingcb--,o(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=m;var u,s=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?n:i.nextTick;m.WritableState=g;var c=r(42);c.inherits=r(13);var f={deprecate:r(150)},l=r(136),h=r(29).Buffer,p=o.Uint8Array||function(){};var d,y=r(137);function v(){}function g(t,e){u=u||r(23),t=t||{};var n=e instanceof u;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var o=t.highWaterMark,c=t.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(c||0===c)?c:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===t.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,o=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,o){--e.pendingcb,r?(i.nextTick(o,n),i.nextTick(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(o(n),t._writableState.errorEmitted=!0,t.emit("error",n),x(t,e))}(t,r,n,e,o);else{var a=E(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(t,r),n?s(_,t,r,a,o):_(t,r,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function m(t){if(u=u||r(23),!(d.call(m,this)||this instanceof u))return new m(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function b(t,e,r,n,o,i,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(o,e.onwrite):t._write(o,i,e.onwrite),e.sync=!1}function _(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),x(t,e)}function w(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,o=new Array(n),i=e.corkedRequestsFree;i.entry=r;for(var u=0,s=!0;r;)o[u]=r,r.isBuf||(s=!1),r=r.next,u+=1;o.allBuffers=s,b(t,e,!0,e.length,o,"",i.finish),e.pendingcb++,e.lastBufferedRequest=null,i.next?(e.corkedRequestsFree=i.next,i.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(b(t,e,!1,e.objectMode?1:c.length,c,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function E(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function A(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),x(t,e)})}function x(t,e){var r=E(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(A,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}c.inherits(m,l),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!d.call(this,t)||this===m&&(t&&t._writableState instanceof g)}})):d=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,r){var n,o=this._writableState,a=!1,u=!o.objectMode&&(n=t,h.isBuffer(n)||n instanceof p);return u&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),"function"==typeof e&&(r=e,e=null),u?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof r&&(r=v),o.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),i.nextTick(e,r)}(this,r):(u||function(t,e,r,n){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),i.nextTick(n,a),o=!1),o}(this,o,t,r))&&(o.pendingcb++,a=function(t,e,r,n,o,i){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=h.from(e,r));return e}(e,n,o);n!==a&&(r=!0,o="buffer",n=a)}var u=e.objectMode?1:n.length;e.length+=u;var s=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,x(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=y.destroy,m.prototype._undestroy=y.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r(17),r(152).setImmediate,r(18))},function(t,e,r){(function(e){var n=r(139),o=r(209),i=r(210),a=function(){},u=/^v?\.0/.test(e.version),s=function(t){return"function"==typeof t},c=function(t,e,r,c){c=n(c);var f=!1;t.on("close",function(){f=!0}),o(t,{readable:e,writable:r},function(t){if(t)return c(t);f=!0,c()});var l=!1;return function(e){if(!f&&!l)return l=!0,function(t){return!!u&&(!!i&&((t instanceof(i.ReadStream||a)||t instanceof(i.WriteStream||a))&&s(t.close)))}(t)?t.close(a):function(t){return t.setHeader&&s(t.abort)}(t)?t.abort():s(t.destroy)?t.destroy():void c(e||new Error("stream was destroyed"))}},f=function(t){t()},l=function(t,e){return t.pipe(e)};t.exports=function(){var t,e=Array.prototype.slice.call(arguments),r=s(e[e.length-1]||a)&&e.pop()||a;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var n=e.map(function(o,i){var a=i0,function(e){t||(t=e),e&&n.forEach(f),a||(n.forEach(f),r(t))})});return e.reduce(l)}}).call(this,r(17))},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n=-1&&!o;i--){var a=i>=0?arguments[i]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,o="/"===a.charAt(0))}return(o?"/":"")+(e=r(n(e.split("/"),function(t){return!!t}),!o).join("/"))||"."},e.normalize=function(t){var i=e.isAbsolute(t),a="/"===o(t,-1);return(t=r(n(t.split("/"),function(t){return!!t}),!i).join("/"))||i||(t="."),t&&a&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var o=n(t.split("/")),i=n(r.split("/")),a=Math.min(o.length,i.length),u=a,s=0;s=1;--i)if(47===(e=t.charCodeAt(i))){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var r=function(t){"string"!=typeof t&&(t+="");var e,r=0,n=-1,o=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!o){r=e+1;break}}else-1===n&&(o=!1,n=e+1);return-1===n?"":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,r=0,n=-1,o=!0,i=0,a=t.length-1;a>=0;--a){var u=t.charCodeAt(a);if(47!==u)-1===n&&(o=!1,n=a+1),46===u?-1===e?e=a:1!==i&&(i=1):-1!==e&&(i=-1);else if(!o){r=a+1;break}}return-1===e||-1===n||0===i||1===i&&e===n-1&&e===r+1?"":t.slice(e,n)};var o="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(17))},function(t,e,r){"use strict";t.exports=r(211)},function(t,e,r){"use strict";var n=r(29).Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=s,this.end=c,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=f,this.end=l,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function u(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function s(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function f(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.StringDecoder=i,i.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return o>0&&(t.lastNeed=o-1),o;if(--n=0)return o>0&&(t.lastNeed=o-2),o;if(--n=0)return o>0&&(2===o?o=0:t.lastNeed=o-3),o;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,r){"use strict";t.exports={create:function(){return[]},add:function(t,e){if(!t.length)return e;if(!e.length)return t;var r=Math.min(t[0],e[0]),n=Math.min(t[1],e[1]);return[r,n,Math.max(t[0]+t[2],e[0]+e[2])-r,Math.max(t[1]+t[3],e[1]+e[3])-n]},scale:function(t,e){return t.map(function(t){return t*e})},rect:function(t){return{x:(t=t&&t.length?t:[0,0,0,0])[0],y:t[1],width:t[2],height:t[3]}},asString:function(t){return(t=t&&t.length?t:[0,0,0,0]).join(" ")}}},function(t,e,r){var n=r(7),o=r(5),i=r(66);t.exports=!n&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(33);t.exports=n("native-function-to-string",Function.toString)},function(t,e,r){var n=r(11),o=r(156),i=r(46),a=r(8);t.exports=function(t,e){for(var r=o(e),u=a.f,s=i.f,c=0;cs;)n(i,r=e[s++])&&(~u(c,r)||c.push(r));return c}},function(t,e,r){var n=r(70),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},function(t,e,r){var n=r(5);t.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(t,e,r){e.f=r(3)},function(t,e,r){var n=r(73),o=r(11),i=r(98),a=r(8).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},function(t,e,r){var n=r(2).document;t.exports=n&&n.documentElement},function(t,e,r){"use strict";var n,o,i,a=r(77),u=r(12),s=r(11),c=r(3),f=r(34),l=c("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(n=o):h=!0),null==n&&(n={}),f||s(n,l)||u(n,l,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(t,e,r){var n=r(5);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,r){var n=r(19),o=r(3)("toStringTag"),i="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:i?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,r){var n=r(15);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},function(t,e,r){"use strict";var n=r(163),o=r(8),i=r(3),a=r(7),u=i("species");t.exports=function(t){var e=n(t),r=o.f;a&&e&&!e[u]&&r(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(3)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},function(t,e,r){var n,o,i,a=r(2),u=r(5),s=r(19),c=r(55),f=r(100),l=r(66),h=a.location,p=a.setImmediate,d=a.clearImmediate,y=a.process,v=a.MessageChannel,g=a.Dispatch,m=0,b={},_=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},w=function(t){return function(){_(t)}},E=function(t){_(t.data)},A=function(t){a.postMessage(t+"",h.protocol+"//"+h.host)};p&&d||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return b[++m]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(m),m},d=function(t){delete b[t]},"process"==s(y)?n=function(t){y.nextTick(w(t))}:g&&g.now?n=function(t){g.now(w(t))}:v?(i=(o=new v).port2,o.port1.onmessage=E,n=c(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||u(A)?n="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),_(t)}}:function(t){setTimeout(w(t),0)}:(n=A,a.addEventListener("message",E,!1))),t.exports={set:p,clear:d}},function(t,e,r){var n=r(2).navigator;t.exports=n&&n.userAgent||""},function(t,e,r){"use strict";var n=r(22),o=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new o(t)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){var n=r(6),o=r(37),i=r(3)("species");t.exports=function(t,e){var r;return o(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){"use strict";var n=r(1),o=r(82),i=r(69)(!1),a=[].indexOf,u=!!a&&1/[1].indexOf(1,-0)<0,s=o("indexOf");n({target:"Array",proto:!0,forced:u||s},{indexOf:function(t){return u?a.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,r){var n=r(1),o=r(176);n({target:"Object",stat:!0},{values:function(t){return o(t)}})},function(t,e,r){"use strict";var n=r(1),o=r(115);n({target:"String",proto:!0,forced:!r(116)("includes")},{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(177),o=r(48);t.exports=function(t,e,r){if(n(e))throw TypeError("String.prototype."+r+" doesn't accept regex");return String(o(t))}},function(t,e,r){var n=r(3)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,r){var n=r(15),o=Date.prototype,i=o.toString,a=o.getTime;new Date(NaN)+""!="Invalid Date"&&n(o,"toString",function(){var t=a.call(this);return t==t?i.call(this):"Invalid Date"})},function(t,e,r){"use strict";var n=r(22),o=r(6),i=[].slice,a={},u=function(t,e,r){if(!(e in a)){for(var n=[],o=0;o1?arguments[1]:void 0,n=o(e.length),a=void 0===r?n:s(o(r),n),c=String(t);return u?u.call(e,c,a):e.slice(a-c.length,a)===c}})},function(t,e,r){"use strict";var n=["id","attributes","defs","layer","viewBox","width","height","units"];t.exports=function(t){return n.reduce(function(e,r){return null!=t[r]&&(e[r]=t[r]),e},{})}},function(t,e,r){"use strict";var n=r(1),o=r(129);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,r){"use strict";var n=r(58),o=r(82),i=n(0),a=o("forEach");t.exports=a?function(t){return i(this,t,arguments[1])}:[].forEach},function(t,e,r){"use strict";t.exports={TYPE_COPPER:"copper",TYPE_SOLDERMASK:"soldermask",TYPE_SILKSCREEN:"silkscreen",TYPE_SOLDERPASTE:"solderpaste",TYPE_DRILL:"drill",TYPE_OUTLINE:"outline",TYPE_DRAWING:"drawing",SIDE_TOP:"top",SIDE_BOTTOM:"bottom",SIDE_INNER:"inner",SIDE_ALL:"all",_CAD_KICAD:"kicad",_CAD_ALTIUM:"altium",_CAD_ALLEGRO:"allegro",_CAD_EAGLE:"eagle",_CAD_EAGLE_LEGACY:"eagle-legacy",_CAD_EAGLE_OSHPARK:"eagle-oshpark",_CAD_EAGLE_PCBNG:"eagle-pcbng",_CAD_GEDA_PCB:"geda-pcb",_CAD_ORCAD:"orcad",_CAD_DIPTRACE:"diptrace"}},function(t,e,r){"use strict";t.exports=function(t,e){return t.reduce(function(t,r){return t.concat(e(r))},[])}},function(t,e,r){"use strict";var n=r(130);t.exports=[{type:null,side:null,matchers:[{ext:"gpi",cad:[n._CAD_EAGLE,n._CAD_EAGLE_LEGACY,n._CAD_EAGLE_OSHPARK,n._CAD_EAGLE_PCBNG]},{ext:"dri",cad:[n._CAD_EAGLE,n._CAD_EAGLE_LEGACY,n._CAD_EAGLE_OSHPARK,n._CAD_EAGLE_PCBNG]},{ext:"csv",cad:null},{match:/pnp_bom/,cad:n._CAD_EAGLE_PCBNG}]},{type:n.TYPE_COPPER,side:n.SIDE_TOP,matchers:[{ext:"cmp",cad:n._CAD_EAGLE_LEGACY},{ext:"top",cad:[n._CAD_EAGLE_LEGACY,n._CAD_ORCAD]},{ext:"gtl",cad:[n._CAD_KICAD,n._CAD_ALTIUM]},{ext:"toplayer\\.ger",cad:n._CAD_EAGLE_OSHPARK},{match:/top\.\w+$/,cad:[n._CAD_GEDA_PCB,n._CAD_DIPTRACE]},{match:/f[._]cu/,cad:n._CAD_KICAD},{match:/copper_top/,cad:n._CAD_EAGLE},{match:/top_copper/,cad:n._CAD_EAGLE_PCBNG},{match:/top copper/,cad:null}]},{type:n.TYPE_SOLDERMASK,side:n.SIDE_TOP,matchers:[{ext:"stc",cad:n._CAD_EAGLE_LEGACY},{ext:"tsm",cad:n._CAD_EAGLE_LEGACY},{ext:"gts",cad:[n._CAD_KICAD,n._CAD_ALTIUM]},{ext:"smt",cad:n._CAD_ORCAD},{ext:"topsoldermask\\.ger",cad:n._CAD_EAGLE_OSHPARK},{match:/topmask\.\w+$/,cad:[n._CAD_GEDA_PCB,n._CAD_DIPTRACE]},{match:/f[._]mask/,cad:n._CAD_KICAD},{match:/soldermask_top/,cad:n._CAD_EAGLE},{match:/top_mask/,cad:n._CAD_EAGLE_PCBNG},{match:/top solder resist/,cad:null}]},{type:n.TYPE_SILKSCREEN,side:n.SIDE_TOP,matchers:[{ext:"plc",cad:n._CAD_EAGLE_LEGACY},{ext:"tsk",cad:n._CAD_EAGLE_LEGACY},{ext:"gto",cad:[n._CAD_KICAD,n._CAD_ALTIUM]},{ext:"sst",cad:n._CAD_ORCAD},{ext:"topsilkscreen\\.ger",cad:n._CAD_EAGLE_OSHPARK},{match:/topsilk\.\w+$/,cad:[n._CAD_GEDA_PCB,n._CAD_DIPTRACE]},{match:/f[._]silks/,cad:n._CAD_KICAD},{match:/silkscreen_top/,cad:n._CAD_EAGLE},{match:/top_silk/,cad:n._CAD_EAGLE_PCBNG},{match:/top silk screen/,cad:null}]},{type:n.TYPE_SOLDERPASTE,side:n.SIDE_TOP,matchers:[{ext:"crc",cad:n._CAD_EAGLE_LEGACY},{ext:"tsp",cad:n._CAD_EAGLE_LEGACY},{ext:"gtp",cad:[n._CAD_KICAD,n._CAD_ALTIUM]},{ext:"spt",cad:n._CAD_ORCAD},{ext:"tcream\\.ger",cad:n._CAD_EAGLE_OSHPARK},{match:/toppaste\.\w+$/,cad:[n._CAD_GEDA_PCB,n._CAD_DIPTRACE]},{match:/f[._]paste/,cad:n._CAD_KICAD},{match:/solderpaste_top/,cad:n._CAD_EAGLE},{match:/top_paste/,cad:n._CAD_EAGLE_PCBNG}]},{type:n.TYPE_COPPER,side:n.SIDE_BOTTOM,matchers:[{ext:"sol",cad:n._CAD_EAGLE_LEGACY},{ext:"bot",cad:[n._CAD_EAGLE_LEGACY,n._CAD_ORCAD]},{ext:"gbl",cad:[n._CAD_KICAD,n._CAD_ALTIUM]},{ext:"bottomlayer\\.ger",cad:n._CAD_EAGLE_OSHPARK},{match:/bottom\.\w+$/,cad:[n._CAD_GEDA_PCB,n._CAD_DIPTRACE]},{match:/b[._]cu/,cad:n._CAD_KICAD},{match:/copper_bottom/,cad:n._CAD_EAGLE},{match:/bottom_copper/,cad:n._CAD_EAGLE_PCBNG},{match:/bottom copper/,cad:null}]},{type:n.TYPE_SOLDERMASK,side:n.SIDE_BOTTOM,matchers:[{ext:"sts",cad:n._CAD_EAGLE_LEGACY},{ext:"bsm",cad:n._CAD_EAGLE_LEGACY},{ext:"gbs",cad:[n._CAD_KICAD,n._CAD_ALTIUM]},{ext:"smb",cad:n._CAD_ORCAD},{ext:"bottomsoldermask\\.ger",cad:n._CAD_EAGLE_OSHPARK},{match:/bottommask\.\w+$/,cad:[n._CAD_GEDA_PCB,n._CAD_DIPTRACE]},{match:/b[._]mask/,cad:n._CAD_KICAD},{match:/soldermask_bottom/,cad:n._CAD_EAGLE},{match:/bottom_mask/,cad:n._CAD_EAGLE_PCBNG},{match:/bottom solder resist/,cad:null}]},{type:n.TYPE_SILKSCREEN,side:n.SIDE_BOTTOM,matchers:[{ext:"pls",cad:n._CAD_EAGLE_LEGACY},{ext:"bsk",cad:n._CAD_EAGLE_LEGACY},{ext:"gbo",cad:[n._CAD_KICAD,n._CAD_ALTIUM]},{ext:"ssb",cad:n._CAD_ORCAD},{ext:"bottomsilkscreen\\.ger",cad:n._CAD_EAGLE_OSHPARK},{match:/bottomsilk\.\w+$/,cad:[n._CAD_GEDA_PCB,n._CAD_DIPTRACE]},{match:/b[._]silks/,cad:n._CAD_KICAD},{match:/silkscreen_bottom/,cad:n._CAD_EAGLE},{match:/bottom_silk/,cad:n._CAD_EAGLE_PCBNG},{match:/bottom silk screen/,cad:null}]},{type:n.TYPE_SOLDERPASTE,side:n.SIDE_BOTTOM,matchers:[{ext:"crs",cad:n._CAD_EAGLE_LEGACY},{ext:"bsp",cad:n._CAD_EAGLE_LEGACY},{ext:"gbp",cad:[n._CAD_KICAD,n._CAD_ALTIUM]},{ext:"spb",cad:n._CAD_ORCAD},{ext:"bcream\\.ger",cad:n._CAD_EAGLE_OSHPARK},{match:/bottompaste\.\w+$/,cad:[n._CAD_GEDA_PCB,n._CAD_DIPTRACE]},{match:/b[._]paste/,cad:n._CAD_KICAD},{match:/solderpaste_bottom/,cad:n._CAD_EAGLE},{match:/bottom_paste/,cad:n._CAD_EAGLE_PCBNG}]},{type:n.TYPE_COPPER,side:n.SIDE_INNER,matchers:[{ext:"ly\\d+",cad:n._CAD_EAGLE_LEGACY},{ext:"gp?\\d+",cad:[n._CAD_KICAD,n._CAD_ALTIUM]},{ext:"in\\d+",cad:n._CAD_ORCAD},{ext:"internalplane\\d+\\.ger",cad:n._CAD_EAGLE_OSHPARK},{match:/in(?:ner)?\d+[._]cu/,cad:n._CAD_KICAD},{match:/inner/,cad:n._CAD_DIPTRACE}]},{type:n.TYPE_OUTLINE,side:n.SIDE_ALL,matchers:[{ext:"dim",cad:n._CAD_EAGLE_LEGACY},{ext:"mil",cad:n._CAD_EAGLE_LEGACY},{ext:"gml",cad:n._CAD_EAGLE_LEGACY},{ext:"gm\\d+",cad:[n._CAD_KICAD,n._CAD_ALTIUM]},{ext:"gko",cad:n._CAD_ALTIUM},{ext:"fab",cad:n._CAD_ORCAD},{ext:"drd",cad:n._CAD_ORCAD},{match:/outline/,cad:[n._CAD_GEDA_PCB,n._CAD_EAGLE_PCBNG]},{match:/boardoutline/,cad:[n._CAD_EAGLE_OSHPARK,n._CAD_DIPTRACE]},{match:/edge[._]cuts/,cad:n._CAD_KICAD},{match:/profile/,cad:n._CAD_EAGLE},{match:/mechanical \d+/,cad:null}]},{type:n.TYPE_DRILL,side:n.SIDE_ALL,matchers:[{ext:"txt",cad:[n._CAD_EAGLE_LEGACY,n._CAD_ALTIUM]},{ext:"xln",cad:[n._CAD_EAGLE,n._CAD_EAGLE_LEGACY,n._CAD_EAGLE_OSHPARK]},{ext:"exc",cad:n._CAD_EAGLE_LEGACY},{ext:"drd",cad:n._CAD_EAGLE_LEGACY},{ext:"drl",cad:[n._CAD_KICAD,n._CAD_DIPTRACE]},{ext:"tap",cad:n._CAD_ORCAD},{ext:"npt",cad:n._CAD_ORCAD},{ext:"plated-drill\\.cnc",cad:n._CAD_GEDA_PCB},{match:/fab/,cad:n._CAD_GEDA_PCB},{match:/npth/,cad:n._CAD_KICAD},{match:"/drill/",cad:n._CAD_EAGLE_PCBNG}]},{type:n.TYPE_DRAWING,side:null,matchers:[{ext:"pos",cad:n._CAD_KICAD},{ext:"art",cad:n._CAD_ALLEGRO},{ext:"gbr",cad:null},{ext:"gbx",cad:null},{ext:"ger",cad:null},{ext:"pho",cad:null}]}]},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";var n=r(1),o=r(5),i=r(37),a=r(6),u=r(16),s=r(20),c=r(125),f=r(111),l=r(59),h=r(3)("isConcatSpreadable"),p=!o(function(){var t=[];return t[h]=!1,t.concat()[0]!==t}),d=l("concat"),y=function(t){if(!a(t))return!1;var e=t[h];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,forced:!p||!d},{concat:function(t){var e,r,n,o,i,a=u(this),l=f(a,0),h=0;for(e=-1,n=arguments.length;e9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(l,h++,i)}return l.length=h,l}})},function(t,e,r){"use strict";(function(e,n){var o=r(63);t.exports=b;var i,a=r(133);b.ReadableState=m;r(65).EventEmitter;var u=function(t,e){return t.listeners(e).length},s=r(136),c=r(29).Buffer,f=e.Uint8Array||function(){};var l=r(42);l.inherits=r(13);var h=r(195),p=void 0;p=h&&h.debuglog?h.debuglog("stream"):function(){};var d,y=r(196),v=r(137);l.inherits(b,s);var g=["error","close","destroy","pause","resume"];function m(t,e){t=t||{};var n=e instanceof(i=i||r(23));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,a=t.readableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(a||0===a)?a:u,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=r(90).StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function b(t){if(i=i||r(23),!(this instanceof b))return new b(t);this._readableState=new m(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function _(t,e,r,n,o){var i,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,x(t)}(t,a)):(o||(i=function(t,e){var r;n=e,c.isBuffer(n)||n instanceof f||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,e)),i?t.emit("error",i):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):S(t,a)):w(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=E?t=E:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function x(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(p("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?o.nextTick(O,t):O(t))}function O(t){p("emit readable"),t.emit("readable"),L(t)}function S(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(C,t,e))}function C(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;ti.length?i.length:t;if(a===i.length?o+=i:o+=i.slice(0,t),0===(t-=a)){a===i.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=i.slice(a));break}++n}return e.length-=n,o}(t,e):function(t,e){var r=c.allocUnsafe(t),n=e.head,o=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var i=n.data,a=t>i.length?i.length:t;if(i.copy(r,r.length-t,0,a),0===(t-=a)){a===i.length?(++o,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=i.slice(a));break}++o}return e.length-=o,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function k(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,o.nextTick(P,e,t))}function P(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function j(t,e){for(var r=0,n=t.length;r=e.highWaterMark||e.ended))return p("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?k(this):x(this),null;if(0===(t=A(t,e))&&e.ended)return 0===e.length&&k(this),null;var n,o=e.needReadable;return p("need readable",o),(0===e.length||e.length-t0?T(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&k(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,p("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?f:b;function c(e,n){p("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p("cleanup"),t.removeListener("close",g),t.removeListener("finish",m),t.removeListener("drain",l),t.removeListener("error",v),t.removeListener("unpipe",c),r.removeListener("end",f),r.removeListener("end",b),r.removeListener("data",y),h=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}function f(){p("onend"),t.end()}i.endEmitted?o.nextTick(s):r.once("end",s),t.on("unpipe",c);var l=function(t){return function(){var e=t._readableState;p("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&u(t,"data")&&(e.flowing=!0,L(t))}}(r);t.on("drain",l);var h=!1;var d=!1;function y(e){p("ondata"),d=!1,!1!==t.write(e)||d||((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==j(i.pipes,t))&&!h&&(p("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,d=!0),r.pause())}function v(e){p("onerror",e),b(),t.removeListener("error",v),0===u(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",m),b()}function m(){p("onfinish"),t.removeListener("close",g),b()}function b(){p("unpipe"),r.unpipe(t)}return r.on("data",y),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",v),t.once("close",g),t.once("finish",m),t.emit("pipe",r),i.flowing||(p("pipe resume"),r.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i=Number.MAX_SAFE_INTEGER);r++)e+=t.charCodeAt(r);return e}(a.seed);else{if(void 0!==a.seed&&null!==a.seed)throw new TypeError("The seed value must be an integer or string");t=null}var f,l;if(null!==a.count&&void 0!==a.count){for(var h=a.count,p=[],d=0;dp.length;)t&&a.seed&&(a.seed+=1),p.push(n(a));return a.count=h,p}return function(t,e){switch(e.format){case"hsvArray":return t;case"hslArray":return c(t);case"hsl":var r=c(t);return"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)";case"hsla":var n=c(t),o=e.alpha||Math.random();return"hsla("+n[0]+", "+n[1]+"%, "+n[2]+"%, "+o+")";case"rgbArray":return u(t);case"rgb":return"rgb("+u(t).join(", ")+")";case"rgba":var i=u(t);o=e.alpha||Math.random();return"rgba("+i.join(", ")+", "+o+")";default:return function(t){var e=u(t);function r(t){var e=t.toString(16);return 1==e.length?"0"+e:e}return"#"+r(e[0])+r(e[1])+r(e[2])}(t)}}([f=function(t){if(r.length>0){var n=i(l=function(t){if(isNaN(t)){if("string"==typeof t)if(e[t]){var r=e[t];if(r.hueRange)return r.hueRange}else if(t.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){return o(s(t)[0]).hueRange}}else{var n=parseInt(t);if(n<360&&n>0)return o(t).hueRange}return[0,360]}(t.hue)),a=(l[1]-l[0])/r.length,u=parseInt((n-l[0])/a);!0===r[u]?u=(u+2)%r.length:r[u]=!0;var c=(l[0]+u*a)%359,f=(l[0]+(u+1)*a)%359;return(n=i(l=[c,f]))<0&&(n=360+n),n}var l=function(t){if("number"==typeof parseInt(t)){var r=parseInt(t);if(r<360&&r>0)return[r,r]}if("string"==typeof t)if(e[t]){var n=e[t];if(n.hueRange)return n.hueRange}else if(t.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var o=s(t)[0];return[o,o]}return[0,360]}(t.hue);return(n=i(l))<0&&(n=360+n),n}(a),l=function(t,e){if("monochrome"===e.hue)return 0;if("random"===e.luminosity)return i([0,100]);var r=function(t){return o(t).saturationRange}(t),n=r[0],a=r[1];switch(e.luminosity){case"bright":n=55;break;case"dark":n=a-10;break;case"light":a=55}return i([n,a])}(f,a),function(t,e,r){var n=function(t,e){for(var r=o(t).lowerBounds,n=0;n=i&&e<=u){var c=(s-a)/(u-i);return c*e+(a-c*i)}}return 0}(t,e),a=100;switch(r.luminosity){case"dark":a=n+20;break;case"light":n=(a+n)/2;break;case"random":n=0,a=100}return i([n,a])}(f,l,a)],a)};function o(t){for(var r in t>=334&&t<=360&&(t-=360),e){var n=e[r];if(n.hueRange&&t>=n.hueRange[0]&&t<=n.hueRange[1])return e[r]}return"Color not found"}function i(e){if(null===t){var r=Math.random();return r+=.618033988749895,r%=1,Math.floor(e[0]+r*(e[1]+1-e[0]))}var n=e[1]||1,o=e[0]||0,i=(t=(9301*t+49297)%233280)/233280;return Math.floor(o+i*(n-o))}function a(t,r,n){var o=n[0][0],i=n[n.length-1][0],a=n[n.length-1][1],u=n[0][1];e[t]={hueRange:r,lowerBounds:n,saturationRange:[o,i],brightnessRange:[a,u]}}function u(t){var e=t[0];0===e&&(e=1),360===e&&(e=359),e/=360;var r=t[1]/100,n=t[2]/100,o=Math.floor(6*e),i=6*e-o,a=n*(1-r),u=n*(1-i*r),s=n*(1-(1-i)*r),c=256,f=256,l=256;switch(o){case 0:c=n,f=s,l=a;break;case 1:c=u,f=n,l=a;break;case 2:c=a,f=n,l=s;break;case 3:c=a,f=u,l=n;break;case 4:c=s,f=a,l=n;break;case 5:c=n,f=a,l=u}return[Math.floor(255*c),Math.floor(255*f),Math.floor(255*l)]}function s(t){t=3===(t=t.replace(/^#/,"")).length?t.replace(/(.)/g,"$1$1"):t;var e=parseInt(t.substr(0,2),16)/255,r=parseInt(t.substr(2,2),16)/255,n=parseInt(t.substr(4,2),16)/255,o=Math.max(e,r,n),i=o-Math.min(e,r,n),a=o?i/o:0;switch(o){case e:return[(r-n)/i%6*60||0,a,o];case r:return[60*((n-e)/i+2)||0,a,o];case n:return[60*((e-r)/i+4)||0,a,o]}}function c(t){var e=t[0],r=t[1]/100,n=t[2]/100,o=(2-r)*n;return[e,Math.round(r*n/(o<1?o:2-o)*1e4)/100,o/2*100]}return n}(),t&&t.exports&&(e=t.exports=r),e.randomColor=r}).call(this,r(187)(t))},function(t,e,r){const n=r(188),o={whitespace:/\s+/g,urlHexPairs:/%[\dA-F]{2}/g,quotes:/"/g};function i(t){switch(t){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return t.toLowerCase()}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string, but received "+typeof t);var e,r;return 65279===t.charCodeAt(0)&&(t=t.slice(1)),"data:image/svg+xml,"+function(t){return encodeURIComponent(t).replace(o.urlHexPairs,i)}((r=t,e=r.trim().replace(o.whitespace," "),Object.keys(n).forEach(function(t,r){n[t].test(e)&&(e=e.replace(n[t],t))}),e).replace(o.quotes,"'"))}},function(t,e,r){var n=r(200),o=r(201);t.exports=function(t,e){var r=(e=e||{}).offset||0,i=e.chunkSize||1048576,a=new FileReader(t),u=n(function(e,n){if(r>=t.size)return n(null,null);a.onloadend=function(t){var e=t.target.result;e instanceof ArrayBuffer&&(e=o(new Uint8Array(t.target.result))),n(null,e)};var u=r+i,s=t.slice(r,u);a.readAsArrayBuffer(s),r=u});return u.name=t.name,u.size=t.size,u.type=t.type,u.lastModified=t.lastModified,a.onerror=function(t){u.destroy(t)},u}},function(t,e,r){"use strict";var n=r(13),o=r(203),i=r(29).Buffer,a=new Array(16);function u(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(t,e){return t<>>32-e}function c(t,e,r,n,o,i,a){return s(t+(e&r|~e&n)+o+i|0,a)+e|0}function f(t,e,r,n,o,i,a){return s(t+(e&n|r&~n)+o+i|0,a)+e|0}function l(t,e,r,n,o,i,a){return s(t+(e^r^n)+o+i|0,a)+e|0}function h(t,e,r,n,o,i,a){return s(t+(r^(e|~n))+o+i|0,a)+e|0}n(u,o),u.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,o=this._c,i=this._d;r=c(r,n,o,i,t[0],3614090360,7),i=c(i,r,n,o,t[1],3905402710,12),o=c(o,i,r,n,t[2],606105819,17),n=c(n,o,i,r,t[3],3250441966,22),r=c(r,n,o,i,t[4],4118548399,7),i=c(i,r,n,o,t[5],1200080426,12),o=c(o,i,r,n,t[6],2821735955,17),n=c(n,o,i,r,t[7],4249261313,22),r=c(r,n,o,i,t[8],1770035416,7),i=c(i,r,n,o,t[9],2336552879,12),o=c(o,i,r,n,t[10],4294925233,17),n=c(n,o,i,r,t[11],2304563134,22),r=c(r,n,o,i,t[12],1804603682,7),i=c(i,r,n,o,t[13],4254626195,12),o=c(o,i,r,n,t[14],2792965006,17),r=f(r,n=c(n,o,i,r,t[15],1236535329,22),o,i,t[1],4129170786,5),i=f(i,r,n,o,t[6],3225465664,9),o=f(o,i,r,n,t[11],643717713,14),n=f(n,o,i,r,t[0],3921069994,20),r=f(r,n,o,i,t[5],3593408605,5),i=f(i,r,n,o,t[10],38016083,9),o=f(o,i,r,n,t[15],3634488961,14),n=f(n,o,i,r,t[4],3889429448,20),r=f(r,n,o,i,t[9],568446438,5),i=f(i,r,n,o,t[14],3275163606,9),o=f(o,i,r,n,t[3],4107603335,14),n=f(n,o,i,r,t[8],1163531501,20),r=f(r,n,o,i,t[13],2850285829,5),i=f(i,r,n,o,t[2],4243563512,9),o=f(o,i,r,n,t[7],1735328473,14),r=l(r,n=f(n,o,i,r,t[12],2368359562,20),o,i,t[5],4294588738,4),i=l(i,r,n,o,t[8],2272392833,11),o=l(o,i,r,n,t[11],1839030562,16),n=l(n,o,i,r,t[14],4259657740,23),r=l(r,n,o,i,t[1],2763975236,4),i=l(i,r,n,o,t[4],1272893353,11),o=l(o,i,r,n,t[7],4139469664,16),n=l(n,o,i,r,t[10],3200236656,23),r=l(r,n,o,i,t[13],681279174,4),i=l(i,r,n,o,t[0],3936430074,11),o=l(o,i,r,n,t[3],3572445317,16),n=l(n,o,i,r,t[6],76029189,23),r=l(r,n,o,i,t[9],3654602809,4),i=l(i,r,n,o,t[12],3873151461,11),o=l(o,i,r,n,t[15],530742520,16),r=h(r,n=l(n,o,i,r,t[2],3299628645,23),o,i,t[0],4096336452,6),i=h(i,r,n,o,t[7],1126891415,10),o=h(o,i,r,n,t[14],2878612391,15),n=h(n,o,i,r,t[5],4237533241,21),r=h(r,n,o,i,t[12],1700485571,6),i=h(i,r,n,o,t[3],2399980690,10),o=h(o,i,r,n,t[10],4293915773,15),n=h(n,o,i,r,t[1],2240044497,21),r=h(r,n,o,i,t[8],1873313359,6),i=h(i,r,n,o,t[15],4264355552,10),o=h(o,i,r,n,t[6],2734768916,15),n=h(n,o,i,r,t[13],1309151649,21),r=h(r,n,o,i,t[4],4149444226,6),i=h(i,r,n,o,t[11],3174756917,10),o=h(o,i,r,n,t[2],718787259,15),n=h(n,o,i,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+o|0,this._d=this._d+i|0},u.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=i.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=u},function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(18))},function(t,e){t.exports=function(){for(var t={},e=0;e=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r(198),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(18))},function(t,e,r){t.exports=o;var n=r(65).EventEmitter;function o(){n.call(this)}r(13)(o,n),o.Readable=r(30),o.Writable=r(204),o.Duplex=r(205),o.Transform=r(206),o.PassThrough=r(207),o.Stream=o,o.prototype.pipe=function(t,e){var r=this;function o(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",u),r.on("close",s));var a=!1;function u(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(f(),0===n.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",o),t.removeListener("drain",i),r.removeListener("end",u),r.removeListener("close",s),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),t.removeListener("close",f)}return r.on("error",c),t.on("error",c),r.on("end",f),r.on("close",f),t.on("close",f),t.emit("pipe",r),t}},,function(t,e,r){var n=r(2),o=r(93),i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(o.call(i))},function(t,e,r){var n=r(2),o=r(68),i=r(52),a=r(9),u=n.Reflect;t.exports=u&&u.ownKeys||function(t){var e=o.f(a(t)),r=i.f;return r?e.concat(r(t)):e}},function(t,e,r){var n=r(25),o=r(52),i=r(31);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var a,u=r(t),s=i.f,c=0;u.length>c;)s.call(t,a=u[c++])&&e.push(a);return e}},function(t,e,r){var n=r(7),o=r(8),i=r(9),a=r(25);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=a(e),u=n.length,s=0;u>s;)o.f(t,r=n[s++],e[r]);return t}},function(t,e,r){var n=r(14),o=r(68).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(n(t))}},function(t,e,r){"use strict";var n=r(101).IteratorPrototype,o=r(26),i=r(32),a=r(36),u=r(38),s=function(){return this};t.exports=function(t,e,r){var c=e+" Iterator";return t.prototype=o(n,{next:i(1,r)}),a(t,c,!1,!0),u[c]=s,t}},function(t,e,r){var n=r(6),o=r(9);t.exports=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}},function(t,e,r){"use strict";var n=r(103),o={};o[r(3)("toStringTag")]="z",t.exports="[object z]"!==String(o)?function(){return"[object "+n(this)+"]"}:o.toString},function(t,e,r){var n=r(73),o=r(2),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t])||i(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},function(t,e,r){var n=r(3),o=r(38),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},function(t,e,r){var n=r(103),o=r(38),i=r(3)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e,r){var n=r(9);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},function(t,e,r){var n=r(9),o=r(22),i=r(3)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[i])?e:o(r)}},function(t,e,r){var n,o,i,a,u,s,c,f=r(2),l=r(46).f,h=r(19),p=r(107).set,d=r(108),y=f.MutationObserver||f.WebKitMutationObserver,v=f.process,g=f.Promise,m="process"==h(v),b=l(f,"queueMicrotask"),_=b&&b.value;_||(n=function(){var t,e;for(m&&(t=v.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},m?a=function(){v.nextTick(n)}:y&&!/(iphone|ipod|ipad).*applewebkit/i.test(d)?(u=!0,s=document.createTextNode(""),new y(n).observe(s,{characterData:!0}),a=function(){s.data=u=!u}):g&&g.resolve?(c=g.resolve(void 0),a=function(){c.then(n)}):a=function(){p.call(f,n)}),t.exports=_||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},function(t,e,r){var n=r(9),o=r(6),i=r(109);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){var n=r(2);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){var n=r(70),o=r(48);t.exports=function(t,e,r){var i,a,u=String(o(t)),s=n(e),c=u.length;return s<0||s>=c?r?"":void 0:(i=u.charCodeAt(s))<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?r?u.charAt(s):i:r?u.slice(s,s+2):a-56320+(i-55296<<10)+65536}},function(t,e,r){"use strict";var n=r(1),o=r(58),i=r(75),a=o(5),u=!0;"find"in[]&&Array(1).find(function(){u=!1}),n({target:"Array",proto:!0,forced:u},{find:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(t,e,r){var n=r(22),o=r(16),i=r(47),a=r(20);t.exports=function(t,e,r,u,s){n(e);var c=o(t),f=i(c),l=a(c.length),h=s?l-1:0,p=s?-1:1;if(r<2)for(;;){if(h in f){u=f[h],h+=p;break}if(h+=p,s?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;s?h>=0:l>h;h+=p)h in f&&(u=e(u,f[h],h,c));return u}},function(t,e,r){"use strict";var n=r(7),o=r(5),i=r(25),a=r(52),u=r(31),s=r(16),c=r(47),f=Object.assign;t.exports=!f||o(function(){var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){e[t]=t}),7!=f({},t)[r]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")})?function(t,e){for(var r=s(t),o=arguments.length,f=1,l=a.f,h=u.f;o>f;)for(var p,d=c(arguments[f++]),y=l?i(d).concat(l(d)):i(d),v=y.length,g=0;v>g;)p=y[g++],n&&!h.call(d,p)||(r[p]=d[p]);return r}:f},function(t,e,r){var n=r(7),o=r(25),i=r(14),a=r(31).f;t.exports=function(t,e){for(var r,u=i(t),s=o(u),c=s.length,f=0,l=[];c>f;)r=s[f++],n&&!a.call(u,r)||l.push(e?[r,u[r]]:u[r]);return l}},function(t,e,r){var n=r(6),o=r(19),i=r(3)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,r){r(1)({target:"Function",proto:!0},{bind:r(118)})},function(t,e,r){"use strict";var n=r(180),o=r(183);t.exports=n("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},o,!0)},function(t,e,r){"use strict";var n=r(1),o=r(2),i=r(72),a=r(15),u=r(119),s=r(80),c=r(79),f=r(6),l=r(5),h=r(106),p=r(36),d=r(182);t.exports=function(t,e,r,y,v){var g=o[t],m=g&&g.prototype,b=g,_=y?"set":"add",w={},E=function(t){var e=m[t];a(m,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(v&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(v&&!f(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(i(t,"function"!=typeof g||!(v||m.forEach&&!l(function(){(new g).entries().next()}))))b=r.getConstructor(e,t,y,_),u.REQUIRED=!0;else if(i(t,!0)){var A=new b,x=A[_](v?{}:-0,1)!=A,O=l(function(){A.has(1)}),S=h(function(t){new g(t)}),C=!v&&l(function(){for(var t=new g,e=5;e--;)t[_](e,e);return!t.has(-0)});S||((b=e(function(e,r){c(e,b,t);var n=d(new g,e,b);return null!=r&&s(r,n[_],n,y),n})).prototype=m,m.constructor=b),(O||C)&&(E("delete"),E("has"),y&&E("get")),(C||x)&&E(_),v&&m.clear&&delete m.clear}return w[t]=b,n({global:!0,forced:b!=g},w),p(b,t),v||r.setStrong(b,t,y),b}},function(t,e,r){var n=r(5);t.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,e,r){var n=r(6),o=r(78);t.exports=function(t,e,r){var i,a=e.constructor;return a!==r&&"function"==typeof a&&(i=a.prototype)!==r.prototype&&n(i)&&o&&o(t,i),t}},function(t,e,r){"use strict";var n=r(8).f,o=r(26),i=r(104),a=r(55),u=r(79),s=r(80),c=r(76),f=r(105),l=r(7),h=r(119).fastKey,p=r(24),d=p.set,y=p.getterFor;t.exports={getConstructor:function(t,e,r,c){var f=t(function(t,n){u(t,f,e),d(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=n&&s(n,t[c],t,r)}),p=y(e),v=function(t,e,r){var n,o,i=p(t),a=g(t,e);return a?a.value=r:(i.last=a={index:o=h(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),l?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},g=function(t,e){var r,n=p(t),o=h(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return i(f.prototype,{clear:function(){for(var t=p(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=p(this),r=g(this,t);if(r){var n=r.next,o=r.previous;delete e.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),e.first==r&&(e.first=n),e.last==r&&(e.last=o),l?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=p(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(f.prototype,r?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return v(this,0===t?0:t,e)}}:{add:function(t){return v(this,t=0===t?0:t,t)}}),l&&n(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,r){var n=e+" Iterator",o=y(e),i=y(n);c(t,e,function(t,e){d(this,{type:n,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),f(e)}}},function(t,e,r){var n=r(1),o=r(2),i=r(26),a=r(22),u=r(9),s=r(6),c=r(5),f=r(118),l=(o.Reflect||{}).construct,h=c(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),p=!c(function(){l(function(){})}),d=h||p;n({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(t,e){a(t),u(e);var r=arguments.length<3?t:a(arguments[2]);if(p&&!h)return l(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(f.apply(t,n))}var o=r.prototype,c=i(s(o)?o:Object.prototype),d=Function.apply.call(t,c,e);return s(d)?d:c}})},function(t,e,r){"use strict";var n=r(9);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,r){"use strict";var n=r(1),o=r(6),i=r(37),a=r(96),u=r(20),s=r(14),c=r(125),f=r(59),l=r(3)("species"),h=[].slice,p=Math.max;n({target:"Array",proto:!0,forced:!f("slice")},{slice:function(t,e){var r,n,f,d=s(this),y=u(d.length),v=a(t,y),g=a(void 0===e?y:e,y);if(i(d)&&("function"!=typeof(r=d.constructor)||r!==Array&&!i(r.prototype)?o(r)&&null===(r=r[l])&&(r=void 0):r=void 0,r===Array||void 0===r))return h.call(d,v,g);for(n=new(void 0===r?Array:r)(p(g-v,0)),f=0;vt.max?{max:n,name:r}:t},{max:0,name:null}).name}},function(t,e,r){"use strict";var n=r(151),o=r(191);t.exports=function(t){return o.map(function(e){return e.match.test(t)?n(e,{filename:t}):null}).filter(Boolean)}},function(t,e,r){"use strict";var n=r(131),o=r(132);t.exports=n(o,function(t){return n(t.matchers,function(e){var r=e.ext?new RegExp("\\."+e.ext+"$","i"):new RegExp(e.match,"i");return[].concat(e.cad).map(function(e){return{type:t.type,side:t.side,match:r,cad:e}})})})},function(t,e,r){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){for(var e,r=c(t),n=r[0],a=r[1],u=new i(function(t,e,r){return 3*(e+r)/4-r}(0,n,a)),s=0,f=a>0?n-4:n,l=0;l>16&255,u[s++]=e>>8&255,u[s++]=255&e;2===a&&(e=o[t.charCodeAt(l)]<<2|o[t.charCodeAt(l+1)]>>4,u[s++]=255&e);1===a&&(e=o[t.charCodeAt(l)]<<10|o[t.charCodeAt(l+1)]<<4|o[t.charCodeAt(l+2)]>>2,u[s++]=e>>8&255,u[s++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],a=0,u=r-o;au?u:a+16383));1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,s=a.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,r){for(var o,i,a=[],u=e;u>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,o){var i,a,u=8*o-n-1,s=(1<>1,f=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=u;f>0;i=256*i+t[e+l],l+=h,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=c}return(p?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,u,s,c=8*i-o-1,f=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+l>=1?h/s:h*Math.pow(2,1-l))*s>=2&&(a++,s/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*s-1)*Math.pow(2,o),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&u,p+=d,u/=256,o-=8);for(a=a<0;t[r+p]=255&a,p+=d,a/=256,c-=8);t[r+p-d]|=128*y}},function(t,e,r){var n=r(2),o=r(110),i=r(129),a=r(12);for(var u in o){var s=n[u],c=s&&s.prototype;if(c&&c.forEach!==i)try{a(c,"forEach",i)}catch(t){c.forEach=i}}},function(t,e){},function(t,e,r){"use strict";var n=r(29).Buffer,o=r(197);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.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}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var e,r,o,i=n.allocUnsafe(t>>>0),a=this.head,u=0;a;)e=a.data,r=i,o=u,e.copy(r,o),u+=a.data.length,a=a.next;return i},t}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,o,i,a,u,s=1,c={},f=!1,l=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick(function(){d(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},n=function(t){i.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(o=l.documentElement,n=function(t){var e=l.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):n=function(t){setTimeout(d,0,t)}:(a="setImmediate$"+Math.random()+"$",u=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",u,!1):t.attachEvent("onmessage",u),n=function(e){t.postMessage(a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r=this._blockSize;){for(var i=this._blockOffset;i0;++a)this._length[a]+=u,(u=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*u);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i},function(t,e,r){t.exports=r(86)},function(t,e,r){t.exports=r(23)},function(t,e,r){t.exports=r(30).Transform},function(t,e,r){t.exports=r(30).PassThrough},function(t,e){t.exports=function t(e,r){if(e&&r)return t(e)(r);if("function"!=typeof e)throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){n[t]=e[t]});return n;function n(){for(var t=new Array(arguments.length),r=0;rk.length&&k.push(t)}function I(t,e,r){return null==t?0:function t(e,r,n,o){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return n(o,e,""===r?"."+M(e,0):r),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c0}).map(function(t){return Object(_.a)(t.filename||"",!0)}))||x;return e.endsWith(".")?e.slice(0,-1):e}function W(t){return{useOutline:t.useOutline,outlineGapFill:t.outlineGapFill||11e-5,color:t.color}}function q(t){return{id:t.id,attributes:{class:"w-100 h-100"},outlineGapFill:t.options.outlineGapFill,useOutline:t.options.useOutline,color:t.options.color}}function z(t,e){var r=function(t){var e=t.layers.reduce(function(t,e){return"mm"===e.converter.units?w({},t,{mm:t.mm+1}):"in"===e.converter.units?w({},t,{in:t.in+1}):t},{mm:0,in:0});return e.in>e.mm?"in":"mm"}(t);return t.layers.reduce(function(t,n){var o=n.options.id,i=n.converter.units,a=e.layers[o],u=1;return"mm"===i&&"in"===r?u=S:"in"===i&&"mm"===r&&(u=C),a&&t.push({id:a.id,side:a.side,type:a.type,color:a.color,filename:a.filename,converter:d()(n.converter),initialOptions:a.initialOptions,scale:u}),t},[])}function $(t,e){var r={};return t.type===m.TYPE_DRILL?r=e.drillOptions:t.type&&(r=e.gerberOptions),{id:t.id,places:r.coordinateFormat,zero:r.zeroSuppression,units:r.units}}var H=r(4);function V(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Q(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function J(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){Q(i,n,o,a,u,"next",t)}function u(t){Q(i,n,o,a,u,"throw",t)}a(void 0)})}}var X,Z=self;Object(n.createDatabase)().then(function(t){return X=t,Object(n.getBoards)(X)}).then(function(t){return Z.postMessage(Object(H.workerInitialized)(t))}),Z.onmessage=function(t){var e,r=t.data;switch(r.type){case H.CREATE_BOARD_FROM_URL:var o=r.payload;e=Promise.all([Object(n.findBoardByUrl)(X,o),L(o)]).then(function(){var t=J(regeneratorRuntime.mark(function t(e){var r,i,a,u,s,c,f,l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=V(e,2),i=r[0],a=V(r[1],2),u=a[0],s=a[1],(c=M(u)).sourceUrl=o,i?(c=B(c,i),f=k(c).then(function(t){var e=V(t,2),r=e[0],o=U(e[1],c);return c=G(c,r),Z.postMessage(Object(H.boardRendered)(o)),Object(n.saveBoard)(X,c)})):(l=U(s,c),Z.postMessage(Object(H.boardRendered)(l)),f=Object(n.saveBoard)(X,c)),t.abrupt("return",f.then(function(){return Z.postMessage(Object(H.boardUpdated)(c))}));case 5:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());break;case H.CREATE_BOARD:e=function(t){return D.apply(this,arguments)}(r.payload).then(function(){var t=J(regeneratorRuntime.mark(function t(e){var r,o,i,a,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=V(e,2),o=r[0],i=r[1],a=M(o),u=U(i,a),Z.postMessage(Object(H.boardRendered)(u)),t.abrupt("return",Object(n.saveBoard)(X,a).then(function(){return Z.postMessage(Object(H.boardUpdated)(a))}));case 5:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());break;case H.GET_BOARD:var i=r.payload;e=Object(n.getBoard)(X,i).then(function(){var t=J(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",k(e).then(function(t){var r=U(V(t,2)[1],e);Z.postMessage(Object(H.boardRendered)(r))}));case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());break;case H.GET_BOARD_PACKAGE:var a=r.payload;e=Object(n.getBoard)(X,a).then(function(){var t=J(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",k(e).then(function(t){return j(V(t,1)[0])}).then(function(t){return Z.postMessage(Object(H.boardPackaged)(e.name,t))}));case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());break;case H.UPDATE_BOARD:var u=r.payload,s=u.id,c=u.update;e=Object(n.getBoard)(X,s).then(function(){var t=J(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=B(e,c),t.abrupt("return",k(r).then(function(){var t=J(regeneratorRuntime.mark(function t(e){var o,i,a,u,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=V(e,2),i=o[0],a=o[1],u=U(a,r),s=G(r,i),Z.postMessage(Object(H.boardRendered)(u)),t.abrupt("return",Object(n.saveBoard)(X,s).then(function(){return Z.postMessage(Object(H.boardUpdated)(s))}));case 5:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()));case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());break;case H.DELETE_BOARD:var f=r.payload;e=Object(n.deleteBoard)(X,f).then(function(){return Z.postMessage(Object(H.boardDeleted)(f))});break;case H.DELETE_ALL_BOARDS:e=Object(n.deleteAllBoards)(X).then(function(){return Z.postMessage(Object(H.allBoardsDeleted)())})}e&&e.catch(function(t){return Z.postMessage(Object(H.workerErrored)(r,t))})};e.default=o.RenderWorker}]); //# sourceMappingURL=2860b24d78cee11b8d5e.worker.js.map