text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("bluebird"),require("fs"),require("child_process"),require("crypto"),require("os"),require("path"),require("regenerator-runtime")):"function"==typeof define&&define.amd?define(["bluebird","fs","child_process","crypto","os","path","regenerator-runtime"],e):"object"==typeof exports?exports["electron-sudo"]=e(require("bluebird"),require("fs"),require("child_process"),require("crypto"),require("os"),require("path"),require("regenerator-runtime")):t["electron-sudo"]=e(t.bluebird,t.fs,t.child_process,t.crypto,t.os,t.path,t["regenerator-runtime"])}(this,function(t,e,n,r,u,o,i){return function(t){function e(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!1};return t[r].call(u.exports,u,u.exports,e),u.loaded=!0,u.exports}var n={};return e.m=t,e.c=n,e.p="./dist",e(0)}([function(t,e,n){t.exports=n(65)},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(32)("wks"),u=n(23),o=n(2).Symbol,i="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=i&&o[t]||(i?o:u)("Symbol."+t))};a.store=r},function(t,e,n){var r=n(2),u=n(1),o=n(11),i=n(10),a=n(9),c="prototype",s=function(t,e,n){var f,p,l,d=t&s.F,v=t&s.G,h=t&s.S,y=t&s.P,b=t&s.B,x=t&s.W,m=v?u:u[e]||(u[e]={}),w=m[c],_=v?r:h?r[e]:(r[e]||{})[c];v&&(n=e);for(f in n)p=!d&&_&&void 0!==_[f],p&&a(m,f)||(l=p?_[f]:n[f],m[f]=v&&"function"!=typeof _[f]?n[f]:b&&p?o(l,r):x&&_[f]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[c]=t[c],e}(l):y&&"function"==typeof l?o(Function.call,l):l,y&&((m.virtual||(m.virtual={}))[f]=l,t&s.R&&w&&!w[f]&&i(w,f,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(8);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(5),u=n(45),o=n(35),i=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),u)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(7),u=n(17);t.exports=n(6)?function(t,e,n){return r.f(t,e,u(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,u){return t.call(e,n,r,u)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(46),u=n(25);t.exports=function(t){return r(u(t))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports={}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(25);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(54),u=n(27);t.exports=Object.keys||function(t){return r(t,u)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7).f,u=n(9),o=n(3)("toStringTag");t.exports=function(t,e,n){t&&!u(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var u=n(74),o=r(u),i=n(73),a=r(i),c="function"==typeof a.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};e.default="function"==typeof a.default&&"symbol"===c(o.default)?function(t){return"undefined"==typeof t?"undefined":c(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"==typeof t?"undefined":c(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){var r=n(8),u=n(2).document,o=r(u)&&r(u.createElement);t.exports=function(t){return o?u.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=u(e),this.reject=u(n)}var u=n(19);t.exports.f=function(t){return new r(t)}},function(t,e,n){var r=n(5),u=n(102),o=n(27),i=n(31)("IE_PROTO"),a=function(){},c="prototype",s=function(){var t,e=n(26)("iframe"),r=o.length,u="<",i=">";for(e.style.display="none",n(44).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(u+"script"+i+"document.F=Object"+u+"/script"+i),t.close(),s=t.F;r--;)delete s[c][o[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[c]=r(t),n=new a,a[c]=null,n[i]=t):n=s(),void 0===e?n:u(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(32)("keys"),u=n(23);t.exports=function(t){return r[t]||(r[t]=u(t))}},function(t,e,n){var r=n(1),u=n(2),o="__core-js_shared__",i=u[o]||(u[o]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(16)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(33),u=Math.min;t.exports=function(t){return t>0?u(r(t),9007199254740991):0}},function(t,e,n){var r=n(8);t.exports=function(t,e){if(!r(t))return t;var n,u;if(e&&"function"==typeof(n=t.toString)&&!r(u=n.call(t)))return u;if("function"==typeof(n=t.valueOf)&&!r(u=n.call(t)))return u;if(!e&&"function"==typeof(n=t.toString)&&!r(u=n.call(t)))return u;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(2),u=n(1),o=n(16),i=n(37),a=n(7).f;t.exports=function(t){var e=u.Symbol||(u.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:i.f(t)})}},function(t,e,n){e.f=n(3)},function(t,e,n){"use strict";var r=n(108)(!0);n(49)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){t.exports={default:n(81),__esModule:!0}},function(t,e,n){t.exports={default:n(86),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var u=n(68),o=r(u);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o.default)(t)}},function(t,e,n){t.exports=n(128)},function(t,e,n){var r=n(14),u=n(3)("toStringTag"),o="Arguments"==r(function(){return arguments}()),i=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=i(e=Object(t),u))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){t.exports=!n(6)&&!n(12)(function(){return 7!=Object.defineProperty(n(26)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(15),u=n(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[u]===t)}},function(t,e,n){var r=n(5);t.exports=function(t,e,n,u){try{return u?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){"use strict";var r=n(16),u=n(4),o=n(57),i=n(10),a=n(15),c=n(97),s=n(22),f=n(53),p=n(3)("iterator"),l=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",h="values",y=function(){return this};t.exports=function(t,e,n,b,x,m,w){c(n,e,b);var _,g,k,S=function(t){if(!l&&t in E)return E[t];switch(t){case v:return function(){return new n(this,t)};case h:return function(){return new n(this,t)}}return function(){return new n(this,t)}},j=e+" Iterator",O=x==h,P=!1,E=t.prototype,M=E[p]||E[d]||x&&E[x],F=M||S(x),T=x?O?S("entries"):F:void 0,A="Array"==e?E.entries||M:M;if(A&&(k=f(A.call(new t)),k!==Object.prototype&&k.next&&(s(k,j,!0),r||"function"==typeof k[p]||i(k,p,y))),O&&M&&M.name!==h&&(P=!0,F=function(){return M.call(this)}),r&&!w||!l&&!P&&E[p]||i(E,p,F),a[e]=F,a[j]=y,x)if(_={values:O?F:S(h),keys:m?F:S(v),entries:T},w)for(g in _)g in E||o(E,g,_[g]);else u(u.P+u.F*(l||P),e,_);return _}},function(t,e,n){var r=n(3)("iterator"),u=!1;try{var o=[7][r]();o.return=function(){u=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!u)return!1;var n=!1;try{var o=[7],i=o[r]();i.next=function(){return{done:n=!0}},o[r]=function(){return i},t(o)}catch(t){}return n}},function(t,e,n){var r=n(21),u=n(17),o=n(13),i=n(35),a=n(9),c=n(45),s=Object.getOwnPropertyDescriptor;e.f=n(6)?s:function(t,e){if(t=o(t),e=i(e,!0),c)try{return s(t,e)}catch(t){}if(a(t,e))return u(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(54),u=n(27).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,u)}},function(t,e,n){var r=n(9),u=n(18),o=n(31)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=u(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(9),u=n(13),o=n(91)(!1),i=n(31)("IE_PROTO");t.exports=function(t,e){var n,a=u(t),c=0,s=[];for(n in a)n!=i&&r(a,n)&&s.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~o(s,n)||s.push(n));return s}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(5),u=n(8),o=n(28);t.exports=function(t,e){if(r(t),u(e)&&e.constructor===t)return e;var n=o.f(t),i=n.resolve;return i(e),n.promise}},function(t,e,n){t.exports=n(10)},function(t,e,n){var r=n(5),u=n(19),o=n(3)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||void 0==(n=r(i)[o])?e:u(n)}},function(t,e,n){var r,u,o,i=n(11),a=n(95),c=n(44),s=n(26),f=n(2),p=f.process,l=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,h=f.Dispatch,y=0,b={},x="onreadystatechange",m=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},w=function(t){m.call(t.data)};l&&d||(l=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++y]=function(){a("function"==typeof t?t:Function(t),e)},r(y),y},d=function(t){delete b[t]},"process"==n(14)(p)?r=function(t){p.nextTick(i(m,t,1))}:h&&h.now?r=function(t){h.now(i(m,t,1))}:v?(u=new v,o=u.port2,u.port1.onmessage=w,r=i(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",w,!1)):r=x in s("script")?function(t){c.appendChild(s("script"))[x]=function(){c.removeChild(this),m.call(t)}}:function(t){setTimeout(i(m,t,1),0)}),t.exports={set:l,clear:d}},function(t,e,n){var r=n(43),u=n(3)("iterator"),o=n(15);t.exports=n(1).getIteratorMethod=function(t){if(void 0!=t)return t[u]||t["@@iterator"]||o[r(t)]}},function(t,e){},function(t,e,n){n(112);for(var r=n(2),u=n(10),o=n(15),i=n(3)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var s=a[c],f=r[s],p=f&&f.prototype;p&&!p[i]&&u(p,i,s),o[s]=o.Array}},function(t,e){t.exports=require("bluebird")},function(t,e){t.exports=require("fs")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(66);e.default=function(){var t=process,e=t.platform;switch(e){case"darwin":return r.SudoerDarwin;case"win32":return r.SudoerWin32;case"linux":return r.SudoerLinux;default:throw new Error("Unsupported platform: "+e)}}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.SudoerWin32=e.SudoerLinux=e.SudoerDarwin=void 0;var u=n(39),o=r(u),i=n(41),a=r(i),c=n(42),s=r(c),f=n(40),p=r(f),l=n(63),d=n(71),v=r(d),h=n(79),y=r(h),b=n(78),x=r(b),m=n(24),w=r(m),_=n(75),g=r(_),k=n(76),S=r(k),j=n(126),O=n(64),P=n(127),E=n(125),M=n(67),F=process,T=F.platform,A=F.env,L=function(){function t(e){(0,g.default)(this,t),this.platform=T,this.options=e,this.cp=null,this.tmpdir=(0,j.tmpdir)()}return(0,S.default)(t,[{key:"hash",value:function t(e){var t=(0,E.createHash)("sha256");return t.update("electron-sudo"),t.update(this.options.name||""),t.update(e||new Buffer(0)),t.digest("hex").slice(-32)}},{key:"joinEnv",value:function(t){var e=t.env,n=[];if(e&&"object"==("undefined"==typeof e?"undefined":(0,w.default)(e)))for(var r in e)n.push(r.concat("=",e[r]));return n}},{key:"escapeDoubleQuotes",value:function(t){return t.replace(/"/g,'\\"')}},{key:"encloseDoubleQuotes",value:function(t){return t.replace(/(.+)/g,'"$1"')}},{key:"kill",value:function(t){}}]),t}(),D=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,g.default)(this,e);var n=(0,y.default)(this,(e.__proto__||(0,v.default)(e)).call(this,t));return n.options.name||(n.options.name="Electron"),n}return(0,x.default)(e,t),(0,S.default)(e,[{key:"copy",value:function(){function t(t,n){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e,n){var r=this;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(u,o){var i;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.escapeDoubleQuotes((0,P.normalize)(e)),n=r.escapeDoubleQuotes((0,P.normalize)(n)),t.prev=2,t.next=5,(0,M.exec)('/bin/cp -R -p "'+e+'" "'+n+'"');case 5:i=t.sent,u(i),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),o(t.t0);case 12:case"end":return t.stop()}},t,r,[[2,9]])}));return function(e,n){return t.apply(this,arguments)}}()));case 1:case"end":return t.stop()}},t,this)}));return t}()},{key:"remove",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e){var n,r=this;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this,t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(u,o){var i;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.startsWith(n.tmpdir)){t.next=2;break}throw new Error("Try to remove suspicious target: "+e+".");case 2:return e=r.escapeDoubleQuotes((0,P.normalize)(e)),t.prev=3,t.next=6,(0,M.exec)('rm -rf "'+e+'"');case 6:i=t.sent,u(i),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),o(t.t0);case 13:case"end":return t.stop()}},t,r,[[3,10]])}));return function(e,n){return t.apply(this,arguments)}}()));case 2:case"end":return t.stop()}},t,this)}));return t}()},{key:"reset",value:function(){function t(){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(){return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,M.exec)("/usr/bin/sudo -k");case 2:case"end":return t.stop()}},t,this)}));return t}()}]),e}(L),q=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,g.default)(this,e);var n=(0,y.default)(this,(e.__proto__||(0,v.default)(e)).call(this,t));if(t.icns&&"string"!=typeof t.icns)throw new Error("options.icns must be a string if provided.");if(t.icns&&0===t.icns.trim().length)throw new Error("options.icns must be a non-empty string if provided.");return n.up=!1,n}return(0,x.default)(e,t),(0,S.default)(e,[{key:"isValidName",value:function(t){return/^[a-z0-9 ]+$/i.test(t)&&t.trim().length>0&&t.length<70}},{key:"joinEnv",value:function(t){var e=t.env,n=[];if(e&&"object"==("undefined"==typeof e?"undefined":(0,w.default)(e)))for(var r in e)n.push(r.concat("=",e[r]));return n}},{key:"exec",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(u,o){var i,a,c,f;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=n,a=i.joinEnv(r),c=["/usr/bin/sudo -n",a.join(" "),"-s",e].join(" "),f=void 0,t.next=3,i.reset();case 3:return t.prev=3,t.next=6,(0,M.exec)(c,r);case 6:f=t.sent,u(f),t.next=24;break;case 10:return t.prev=10,t.t0=t.catch(3),t.prev=12,t.next=15,i.prompt();case 15:return t.next=17,(0,M.exec)(c,r);case 17:f=t.sent,u(f),t.next=24;break;case 21:t.prev=21,t.t1=t.catch(12),o(t.t1);case 24:case"end":return t.stop()}},t,n,[[3,10],[12,21]])}));return function(e,n){return t.apply(this,arguments)}}()));case 1:case"end":return t.stop()}},t,this)}));return t}()},{key:"spawn",value:function(){function t(t,n){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e,n){var r=this,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(o,i){var c,f,p;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=r,f="/usr/bin/sudo",p=void 0,t.next=3,c.reset();case 3:return t.next=5,c.prompt();case 5:p=(0,M.spawn)(f,["-n","-s","-E",[e].concat((0,a.default)(n)).join(" ")],u),p.on("error",function(){var t=(0,l.coroutine)(s.default.mark(function t(e){return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i(e);case 1:case"end":return t.stop()}},t,r)}));return function(e){return t.apply(this,arguments)}}()),c.cp=p,o(p);case 9:case"end":return t.stop()}},t,r)}));return function(e,n){return t.apply(this,arguments)}}()));case 1:case"end":return t.stop()}},t,this)}));return t}()},{key:"prompt",value:function(){function t(){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(){var e,n=this;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(r,u){var o,i,a,c;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.tmpdir){t.next=2;break}return t.abrupt("return",u(new Error("Requires os.tmpdir() to be defined.")));case 2:if(A.USER){t.next=4;break}return t.abrupt("return",u(new Error("Requires env['USER'] to be defined.")));case 4:return e.up=!0,t.next=7,e.readIcns();case 7:return o=t.sent,i=e.hash(o),a=(0,P.join)(__static+"/bin","applet.app"),c=(0,P.join)(e.tmpdir,i,e.options.name+".app"),t.prev=10,t.next=13,(0,M.mkdir)((0,P.dirname)(c));case 13:t.next=19;break;case 15:if(t.prev=15,t.t0=t.catch(10),"EEXIST"===t.t0.code){t.next=19;break}return t.abrupt("return",u(t.t0));case 19:return t.prev=19,t.next=22,e.copy(a,c);case 22:return t.next=24,e.icon(c);case 24:return t.next=26,e.propertyList(c);case 26:return t.next=28,e.open(c);case 28:return t.next=30,e.remove(c);case 30:t.next=35;break;case 32:return t.prev=32,t.t1=t.catch(19),t.abrupt("return",u(t.t1));case 35:return t.abrupt("return",r(i));case 36:case"end":return t.stop()}},t,n,[[10,15],[19,32]])}));return function(e,n){return t.apply(this,arguments)}}()));case 2:case"end":return t.stop()}},t,this)}));return t}()},{key:"icon",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e){var n,r=this;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this,t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(u,o){var i;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r.options.icns){t.next=2;break}return t.abrupt("return",u());case 2:return t.next=4,n.copy(r.options.icns,(0,P.join)(e,"Contents","Resources","applet.icns"));case 4:return i=t.sent,t.abrupt("return",u(i));case 6:case"end":return t.stop()}},t,r)}));return function(e,n){return t.apply(this,arguments)}}()));case 2:case"end":return t.stop()}},t,this)}));return t}()},{key:"open",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e){var n,r=this;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this,t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(u,o){var i;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.escapeDoubleQuotes((0,P.normalize)(e)),t.prev=1,t.next=4,(0,M.exec)('open -n -W "'+e+'"');case 4:return i=t.sent,t.abrupt("return",u(i));case 8:return t.prev=8,t.t0=t.catch(1),t.abrupt("return",o(t.t0));case 11:case"end":return t.stop()}},t,r,[[1,8]])}));return function(e,n){return t.apply(this,arguments)}}()));case 2:case"end":return t.stop()}},t,this)}));return t}()},{key:"readIcns",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e){var n=this;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(r,u){var o;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&"darwin"===T){t.next=2;break}return t.abrupt("return",r(new Buffer(0)));case 2:return t.prev=2,t.next=5,(0,M.readFile)(e);case 5:return o=t.sent,t.abrupt("return",r(o));case 9:return t.prev=9,t.t0=t.catch(2),t.abrupt("return",u(t.t0));case 12:case"end":return t.stop()}},t,n,[[2,9]])}));return function(e,n){return t.apply(this,arguments)}}()));case 1:case"end":return t.stop()}},t,this)}));return t}()},{key:"propertyList",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e){var n,r=this;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this,t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(u,o){var i,a,c,f;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.escapeDoubleQuotes((0,P.join)(e,"Contents","Info.plist")),a=n.escapeDoubleQuotes("CFBundleName"),c=n.options.name+" Password Prompt",!/'/.test(c)){t.next=3;break}return t.abrupt("return",o(new Error("Value should not contain single quotes.")));case 3:return t.next=5,(0,M.exec)('defaults write "'+i+'" "'+a+"\" '"+c+"'");case 5:return f=t.sent,t.abrupt("return",u(f));case 7:case"end":return t.stop()}},t,r)}));return function(e,n){return t.apply(this,arguments)}}()));case 2:case"end":return t.stop()}},t,this)}));return t}()}]),e}(D),I=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,g.default)(this,e);var n=(0,y.default)(this,(e.__proto__||(0,v.default)(e)).call(this,t));return n.binary=null,n.paths=["/usr/bin/gksudo","/usr/bin/pkexec","./bin/gksudo"],n}return(0,x.default)(e,t),(0,S.default)(e,[{key:"getBinary",value:function(){function t(){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(){var e=this;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p.default.all(this.paths.map(function(){var t=(0,l.coroutine)(s.default.mark(function t(n){var r;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,M.stat)(n);case 3:if(r=t.sent,!r){t.next=8;break}return t.abrupt("return",n);case 8:return t.abrupt("return",null);case 9:t.next=14;break;case 11:return t.prev=11,t.t0=t.catch(0),t.abrupt("return",null);case 14:case"end":return t.stop()}},t,e,[[0,11]])}));return function(e){return t.apply(this,arguments)}}()));case 2:return t.t0=function(t){return t},t.abrupt("return",t.sent.filter(t.t0)[0]);case 4:case"end":return t.stop()}},t,this)}));return t}()},{key:"exec",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(u,i){var a,c,f;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a=n,c=void 0,a.binary){t.next=5;break}return t.next=4,a.getBinary();case 4:a.binary=t.sent;case 5:return r.env||(r.env=process.env),r.env instanceof Object&&!r.env.DISPLAY&&(r.env=(0,o.default)(r.env,{DISPLAY:":0"})),f=void 0,/gksudo/i.test(a.binary)?f="--preserve-env --sudo-mode "+('--description="'+a.escapeDoubleQuotes(a.options.name)+'"'):/pkexec/i.test(a.binary)&&(f="--disable-internal-agent"),e=n.binary+" "+f+" "+e,t.prev=10,t.next=13,(0,M.exec)(e,r);case 13:return c=t.sent,t.abrupt("return",u(c));case 17:return t.prev=17,t.t0=t.catch(10),t.abrupt("return",i(t.t0));case 20:case"end":return t.stop()}},t,n,[[10,17]])}));return function(e,n){return t.apply(this,arguments)}}()));case 1:case"end":return t.stop()}},t,this)}));return t}()},{key:"spawn",value:function(){function t(t,n){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e,n){var r,u=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(c,f){var p,l;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r.binary){t.next=4;break}return t.next=3,r.getBinary();case 3:r.binary=t.sent;case 4:return i.env||(i.env=process.env),i.env instanceof Object&&!i.env.DISPLAY&&(i.env=(0,o.default)(i.env,{DISPLAY:":0"})),p=[],/gksudo/i.test(r.binary)?(p.push("--preserve-env"),p.push("--sudo-mode"),p.push('--description="'+r.escapeDoubleQuotes(r.options.name)+'"'),p.push("--sudo-mode")):/pkexec/i.test(r.binary)&&p.push("--disable-internal-agent"),p.push(e),p.push.apply(p,(0,a.default)(n)),t.prev=10,l=(0,M.spawn)(r.binary,p,i),t.abrupt("return",c(l));case 15:return t.prev=15,t.t0=t.catch(10),t.abrupt("return",f(t.t0));case 18:case"end":return t.stop()}},t,u,[[10,15]])}));return function(e,n){return t.apply(this,arguments)}}()));case 2:case"end":return t.stop()}},t,this)}));return t}()}]),e}(D),R=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,g.default)(this,e);var n=(0,y.default)(this,(e.__proto__||(0,v.default)(e)).call(this,t));return n.bundled="src\\bin\\elevate.exe",n.binary=null,n}return(0,x.default)(e,t),(0,S.default)(e,[{key:"writeBatch",value:function(){function t(t,n,r){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e,n,r){var u,o,i,a,c;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,M.exec)("echo %temp%");case 2:return u=t.sent.stdout.toString().replace(/\r\n$/,""),o=u+"\\batch-"+Math.random()+".bat",i=u+"\\output-"+Math.random(),a=this.joinEnv(r),c="setlocal enabledelayedexpansion\r\n",a.length&&(c+="set "+a.join("\r\nset ")+"\r\n"),c+=n&&n.length?e+" "+n.join(" "):e,t.next=11,(0,M.writeFile)(o,c+" > "+i+" 2>&1");case 11:return t.next=13,(0,M.writeFile)(i,"");case 13:return t.abrupt("return",{batch:o,output:i});case 14:case"end":return t.stop()}},t,this)}));return t}()},{key:"watchOutput",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e){var n,r,u;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this,t.next=3,(0,M.readFile)(e.files.output);case 3:return r=t.sent,e.stdout.emit("data",r),u=(0,O.watchFile)(e.files.output,{persistent:!0,interval:1},function(){var t=(0,O.createReadStream)(e.files.output,{start:u.last}),n=0;t.on("data",function(t){n+=t.length,e&&e.stdout.emit("data",t)}),t.on("close",function(){e.last+=n})}),e.last=r.length,e.on("exit",function(){n.clean(e)}),t.abrupt("return",e);case 9:case"end":return t.stop()}},t,this)}));return t}()},{key:"prepare",value:function(){function t(){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(){var e,n=this;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(r,u){var o,i;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.binary){t.next=2;break}return t.abrupt("return",r(e.binary));case 2:return o=(0,P.join)(n.tmpdir,"elevate.exe"),t.next=5,(0,M.stat)(o);case 5:if(t.sent){t.next=12;break}i=(0,O.createWriteStream)(o),(0,O.createReadStream)(e.bundled).pipe(i),i.on("close",function(){return e.binary=o,r(e.binary)}),i.on("error",function(t){return u(t)}),t.next=14;break;case 12:e.binary=o,r(e.binary);case 14:case"end":return t.stop()}},t,n)}));return function(e,n){return t.apply(this,arguments)}}()));case 2:case"end":return t.stop()}},t,this)}));return t}()},{key:"exec",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e){var n,r,u,o=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this,r=void 0,u=void 0,t.abrupt("return",new p.default(function(){var t=(0,l.coroutine)(s.default.mark(function t(a,c){return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,o.prepare();case 3:return t.next=5,n.writeBatch(e,[],i);case 5:return r=t.sent,e=n.encloseDoubleQuotes(n.binary)+" -wait "+r.batch,t.next=9,(0,M.exec)(e,i);case 9:return t.next=11,(0,M.readFile)(r.output);case 11:return u=t.sent,t.abrupt("return",a(u));case 15:return t.prev=15,t.t0=t.catch(0),t.abrupt("return",c(t.t0));case 18:case"end":return t.stop()}},t,o,[[0,15]])}));return function(e,n){return t.apply(this,arguments)}}()));case 2:case"end":return t.stop()}},t,this)}));return t}()},{key:"spawn",value:function(){function t(t,n){return e.apply(this,arguments)}var e=(0,l.coroutine)(s.default.mark(function t(e,n){var r,u,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.writeBatch(e,n,i);case 2:return r=t.sent,u=[],o=void 0,u.push("-wait"),u.push(r.batch),t.next=9,this.prepare();case 9:return o=(0,M.spawn)(this.binary,u,i,{wait:!1}),o.files=r,t.next=13,this.watchOutput(o);case 13:return t.abrupt("return",o);case 14:case"end":return t.stop()}},t,this)}));return t}()},{key:"clean",value:function(t){(0,O.unwatchFile)(t.files.output),(0,O.unlink)(t.files.batch),(0,O.unlink)(t.files.output);
  }}]),e}(L);e.SudoerDarwin=q,e.SudoerLinux=I,e.SudoerWin32=R},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t){return function(){var e=arguments;return new h.default(function(n,r){t.apply(void 0,Array.prototype.slice.call(e).concat([function(){arguments[0]instanceof Error?r(arguments[0]):n.apply(void 0,(0,d.default)(Array.prototype.slice.call(arguments,1)))}]))})}}function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=_.default.spawn(t,e,(0,c.default)({},n,{shell:!0}));return r.output={stdout:new Buffer(0),stderr:new Buffer(0)},r.stdout&&r.stdout.on("data",function(t){r.output.stdout=i(t,r.output.stdout)}),r.stderr&&r.stderr.on("data",function(t){r.output.stderr=i(t,r.output.stderr)}),r}function i(t,e){return t instanceof Buffer||(t=new Buffer(t,"utf8")),!e instanceof Buffer&&(e=new Buffer(0)),Buffer.concat([e,t])}Object.defineProperty(e,"__esModule",{value:!0}),e.open=e.stat=e.mkdir=e.exec=e.spawn=e.writeFile=e.readFile=void 0;var a=n(77),c=r(a),s=n(42),f=r(s),p=n(63),l=n(41),d=r(l),v=n(40),h=r(v),y=function(){var t=(0,p.coroutine)(f.default.mark(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new h.default(function(t,r){_.default.exec(e,n,function(e,n,u){return e?r(e):t({stdout:n,stderr:u})})}));case 1:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=(0,p.coroutine)(f.default.mark(function t(e){var n,r;return f.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=u(m.default.stat),t.prev=1,t.next=4,n(e);case 4:return r=t.sent,t.abrupt("return",r);case 8:return t.prev=8,t.t0=t.catch(1),t.abrupt("return",null);case 11:case"end":return t.stop()}},t,this,[[1,8]])}));return function(e){return t.apply(this,arguments)}}(),x=n(64),m=r(x),w=n(124),_=r(w),g=u(m.default.open),k=u(m.default.mkdir),S=u(m.default.readFile),j=u(m.default.writeFile);e.readFile=S,e.writeFile=j,e.spawn=o,e.exec=y,e.mkdir=k,e.stat=b,e.open=g},function(t,e,n){t.exports={default:n(80),__esModule:!0}},function(t,e,n){t.exports={default:n(82),__esModule:!0}},function(t,e,n){t.exports={default:n(83),__esModule:!0}},function(t,e,n){t.exports={default:n(84),__esModule:!0}},function(t,e,n){t.exports={default:n(85),__esModule:!0}},function(t,e,n){t.exports={default:n(87),__esModule:!0}},function(t,e,n){t.exports={default:n(88),__esModule:!0}},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var u=n(70),o=r(u);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var u=n(39),o=r(u);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var u=n(72),o=r(u),i=n(69),a=r(i),c=n(24),s=r(c);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":(0,s.default)(e)));t.prototype=(0,a.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var u=n(24),o=r(u);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){n(38),n(111),t.exports=n(1).Array.from},function(t,e,n){n(113),t.exports=n(1).Object.assign},function(t,e,n){n(114);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(115);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(116),t.exports=n(1).Object.getPrototypeOf},function(t,e,n){n(117),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){n(61),n(38),n(62),n(118),n(120),n(121),t.exports=n(1).Promise},function(t,e,n){n(119),n(61),n(122),n(123),t.exports=n(1).Symbol},function(t,e,n){n(38),n(62),t.exports=n(37).f("iterator")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(13),u=n(34),o=n(109);t.exports=function(t){return function(e,n,i){var a,c=r(e),s=u(c.length),f=o(i,s);if(t&&n!=n){for(;s>f;)if(a=c[f++],a!=a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(7),u=n(17);t.exports=function(t,e,n){e in t?r.f(t,e,u(0,n)):t[e]=n}},function(t,e,n){var r=n(20),u=n(30),o=n(21);t.exports=function(t){var e=r(t),n=u.f;if(n)for(var i,a=n(t),c=o.f,s=0;a.length>s;)c.call(t,i=a[s++])&&e.push(i);return e}},function(t,e,n){var r=n(11),u=n(48),o=n(47),i=n(5),a=n(34),c=n(60),s={},f={},e=t.exports=function(t,e,n,p,l){var d,v,h,y,b=l?function(){return t}:c(t),x=r(n,p,e?2:1),m=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(o(b)){for(d=a(t.length);d>m;m++)if(y=e?x(i(v=t[m])[0],v[1]):x(t[m]),y===s||y===f)return y}else for(h=b.call(t);!(v=h.next()).done;)if(y=u(h,x,v.value,e),y===s||y===f)return y};e.BREAK=s,e.RETURN=f},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(14);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(29),u=n(17),o=n(22),i={};n(10)(i,n(3)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(i,{next:u(1,n)}),o(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(23)("meta"),u=n(8),o=n(9),i=n(7).f,a=0,c=Object.isExtensible||function(){return!0},s=!n(12)(function(){return c(Object.preventExtensions({}))}),f=function(t){i(t,r,{value:{i:"O"+ ++a,w:{}}})},p=function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},l=function(t,e){if(!o(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},d=function(t){return s&&v.NEED&&c(t)&&!o(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:p,getWeak:l,onFreeze:d}},function(t,e,n){var r=n(2),u=n(59).set,o=r.MutationObserver||r.WebKitMutationObserver,i=r.process,a=r.Promise,c="process"==n(14)(i);t.exports=function(){var t,e,n,s=function(){var r,u;for(c&&(r=i.domain)&&r.exit();t;){u=t.fn,t=t.next;try{u()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){i.nextTick(s)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var f=a.resolve(void 0);n=function(){f.then(s)}}else n=function(){u.call(r,s)};else{var p=!0,l=document.createTextNode("");new o(s).observe(l,{characterData:!0}),n=function(){l.data=p=!p}}return function(r){var u={fn:r,next:void 0};e&&(e.next=u),t||(t=u,n()),e=u}}},function(t,e,n){"use strict";var r=n(6),u=n(20),o=n(30),i=n(21),a=n(18),c=n(46),s=Object.assign;t.exports=!s||n(12)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){for(var n=a(t),s=arguments.length,f=1,p=o.f,l=i.f;s>f;)for(var d,v=c(arguments[f++]),h=p?u(v).concat(p(v)):u(v),y=h.length,b=0;y>b;)d=h[b++],r&&!l.call(v,d)||(n[d]=v[d]);return n}:s},function(t,e,n){var r=n(7),u=n(5),o=n(20);t.exports=n(6)?Object.defineProperties:function(t,e){u(t);for(var n,i=o(e),a=i.length,c=0;a>c;)r.f(t,n=i[c++],e[n]);return t}},function(t,e,n){var r=n(13),u=n(52).f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return u(t)}catch(t){return i.slice()}};t.exports.f=function(t){return i&&"[object Window]"==o.call(t)?a(t):u(r(t))}},function(t,e,n){var r=n(4),u=n(1),o=n(12);t.exports=function(t,e){var n=(u.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",i)}},function(t,e,n){var r=n(10);t.exports=function(t,e,n){for(var u in e)n&&t[u]?t[u]=e[u]:r(t,u,e[u]);return t}},function(t,e,n){var r=n(8),u=n(5),o=function(t,e){if(u(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(11)(Function.call,n(51).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){"use strict";var r=n(2),u=n(1),o=n(7),i=n(6),a=n(3)("species");t.exports=function(t){var e="function"==typeof u[t]?u[t]:r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(33),u=n(25);t.exports=function(t){return function(e,n){var o,i,a=String(u(e)),c=r(n),s=a.length;return c<0||c>=s?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===s||(i=a.charCodeAt(c+1))<56320||i>57343?t?a.charAt(c):o:t?a.slice(c,c+2):(o-55296<<10)+(i-56320)+65536)}}},function(t,e,n){var r=n(33),u=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?u(t+e,0):o(t,e)}},function(t,e,n){var r=n(2),u=r.navigator;t.exports=u&&u.userAgent||""},function(t,e,n){"use strict";var r=n(11),u=n(4),o=n(18),i=n(48),a=n(47),c=n(34),s=n(92),f=n(60);u(u.S+u.F*!n(50)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,u,p,l=o(t),d="function"==typeof this?this:Array,v=arguments.length,h=v>1?arguments[1]:void 0,y=void 0!==h,b=0,x=f(l);if(y&&(h=r(h,v>2?arguments[2]:void 0,2)),void 0==x||d==Array&&a(x))for(e=c(l.length),n=new d(e);e>b;b++)s(n,b,y?h(l[b],b):l[b]);else for(p=x.call(l),n=new d;!(u=p.next()).done;b++)s(n,b,y?i(p,h,[u.value,b],!0):u.value);return n.length=b,n}})},function(t,e,n){"use strict";var r=n(89),u=n(98),o=n(15),i=n(13);t.exports=n(49)(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,u(1)):"keys"==e?u(0,n):"values"==e?u(0,t[n]):u(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(4);r(r.S+r.F,"Object",{assign:n(101)})},function(t,e,n){var r=n(4);r(r.S,"Object",{create:n(29)})},function(t,e,n){var r=n(4);r(r.S+r.F*!n(6),"Object",{defineProperty:n(7).f})},function(t,e,n){var r=n(18),u=n(53);n(104)("getPrototypeOf",function(){return function(t){return u(r(t))}})},function(t,e,n){var r=n(4);r(r.S,"Object",{setPrototypeOf:n(106).set})},function(t,e,n){"use strict";var r,u,o,i,a=n(16),c=n(2),s=n(11),f=n(43),p=n(4),l=n(8),d=n(19),v=n(90),h=n(94),y=n(58),b=n(59).set,x=n(100)(),m=n(28),w=n(55),_=n(110),g=n(56),k="Promise",S=c.TypeError,j=c.process,O=j&&j.versions,P=O&&O.v8||"",E=c[k],M="process"==f(j),F=function(){},T=u=m.f,A=!!function(){try{var t=E.resolve(1),e=(t.constructor={})[n(3)("species")]=function(t){t(F,F)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(F)instanceof e&&0!==P.indexOf("6.6")&&_.indexOf("Chrome/66")===-1}catch(t){}}(),L=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},D=function(t,e){if(!t._n){t._n=!0;var n=t._c;x(function(){for(var r=t._v,u=1==t._s,o=0,i=function(e){var n,o,i,a=u?e.ok:e.fail,c=e.resolve,s=e.reject,f=e.domain;try{a?(u||(2==t._h&&R(t),t._h=1),a===!0?n=r:(f&&f.enter(),n=a(r),f&&(f.exit(),i=!0)),n===e.promise?s(S("Promise-chain cycle")):(o=L(n))?o.call(n,c,s):c(n)):s(r)}catch(t){f&&!i&&f.exit(),s(t)}};n.length>o;)i(n[o++]);t._c=[],t._n=!1,e&&!t._h&&q(t)})}},q=function(t){b.call(c,function(){var e,n,r,u=t._v,o=I(t);if(o&&(e=w(function(){M?j.emit("unhandledRejection",u,t):(n=c.onunhandledrejection)?n({promise:t,reason:u}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",u)}),t._h=M||I(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},I=function(t){return 1!==t._h&&0===(t._a||t._c).length},R=function(t){b.call(c,function(){var e;M?j.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},C=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),D(e,!0))},B=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=L(t))?x(function(){var r={_w:n,_d:!1};try{e.call(t,s(B,r,1),s(C,r,1))}catch(t){C.call(r,t)}}):(n._v=t,n._s=1,D(n,!1))}catch(t){C.call({_w:n,_d:!1},t)}}};A||(E=function(t){v(this,E,k,"_h"),d(t),r.call(this);try{t(s(B,this,1),s(C,this,1))}catch(t){C.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(105)(E.prototype,{then:function(t,e){var n=T(y(this,E));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=M?j.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&D(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=s(B,t,1),this.reject=s(C,t,1)},m.f=T=function(t){return t===E||t===i?new o(t):u(t)}),p(p.G+p.W+p.F*!A,{Promise:E}),n(22)(E,k),n(107)(k),i=n(1)[k],p(p.S+p.F*!A,k,{reject:function(t){var e=T(this),n=e.reject;return n(t),e.promise}}),p(p.S+p.F*(a||!A),k,{resolve:function(t){return g(a&&this===i?E:this,t)}}),p(p.S+p.F*!(A&&n(50)(function(t){E.all(t).catch(F)})),k,{all:function(t){var e=this,n=T(e),r=n.resolve,u=n.reject,o=w(function(){var n=[],o=0,i=1;h(t,!1,function(t){var a=o++,c=!1;n.push(void 0),i++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--i||r(n))},u)}),--i||r(n)});return o.e&&u(o.v),n.promise},race:function(t){var e=this,n=T(e),r=n.reject,u=w(function(){h(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return u.e&&r(u.v),n.promise}})},function(t,e,n){"use strict";var r=n(2),u=n(9),o=n(6),i=n(4),a=n(57),c=n(99).KEY,s=n(12),f=n(32),p=n(22),l=n(23),d=n(3),v=n(37),h=n(36),y=n(93),b=n(96),x=n(5),m=n(8),w=n(18),_=n(13),g=n(35),k=n(17),S=n(29),j=n(103),O=n(51),P=n(30),E=n(7),M=n(20),F=O.f,T=E.f,A=j.f,L=r.Symbol,D=r.JSON,q=D&&D.stringify,I="prototype",R=d("_hidden"),C=d("toPrimitive"),B={}.propertyIsEnumerable,N=f("symbol-registry"),W=f("symbols"),Q=f("op-symbols"),G=Object[I],V="function"==typeof L&&!!P.f,z=r.QObject,U=!z||!z[I]||!z[I].findChild,H=o&&s(function(){return 7!=S(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=F(G,e);r&&delete G[e],T(t,e,n),r&&t!==G&&T(G,e,r)}:T,Y=function(t){var e=W[t]=S(L[I]);return e._k=t,e},K=V&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},J=function(t,e,n){return t===G&&J(Q,e,n),x(t),e=g(e,!0),x(n),u(W,e)?(n.enumerable?(u(t,R)&&t[R][e]&&(t[R][e]=!1),n=S(n,{enumerable:k(0,!1)})):(u(t,R)||T(t,R,k(1,{})),t[R][e]=!0),H(t,e,n)):T(t,e,n)},$=function(t,e){x(t);for(var n,r=y(e=_(e)),u=0,o=r.length;o>u;)J(t,n=r[u++],e[n]);return t},X=function(t,e){return void 0===e?S(t):$(S(t),e)},Z=function(t){var e=B.call(this,t=g(t,!0));return!(this===G&&u(W,t)&&!u(Q,t))&&(!(e||!u(this,t)||!u(W,t)||u(this,R)&&this[R][t])||e)},tt=function(t,e){if(t=_(t),e=g(e,!0),t!==G||!u(W,e)||u(Q,e)){var n=F(t,e);return!n||!u(W,e)||u(t,R)&&t[R][e]||(n.enumerable=!0),n}},et=function(t){for(var e,n=A(_(t)),r=[],o=0;n.length>o;)u(W,e=n[o++])||e==R||e==c||r.push(e);return r},nt=function(t){for(var e,n=t===G,r=A(n?Q:_(t)),o=[],i=0;r.length>i;)!u(W,e=r[i++])||n&&!u(G,e)||o.push(W[e]);return o};V||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(Q,n),u(this,R)&&u(this[R],t)&&(this[R][t]=!1),H(this,t,k(1,n))};return o&&U&&H(G,t,{configurable:!0,set:e}),Y(t)},a(L[I],"toString",function(){return this._k}),O.f=tt,E.f=J,n(52).f=j.f=et,n(21).f=Z,P.f=nt,o&&!n(16)&&a(G,"propertyIsEnumerable",Z,!0),v.f=function(t){return Y(d(t))}),i(i.G+i.W+i.F*!V,{Symbol:L});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ut=0;rt.length>ut;)d(rt[ut++]);for(var ot=M(d.store),it=0;ot.length>it;)h(ot[it++]);i(i.S+i.F*!V,"Symbol",{for:function(t){return u(N,t+="")?N[t]:N[t]=L(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),i(i.S+i.F*!V,"Object",{create:X,defineProperty:J,defineProperties:$,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var at=s(function(){P.f(1)});i(i.S+i.F*at,"Object",{getOwnPropertySymbols:function(t){return P.f(w(t))}}),D&&i(i.S+i.F*(!V||s(function(){var t=L();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],u=1;arguments.length>u;)r.push(arguments[u++]);if(n=e=r[1],(m(e)||void 0!==t)&&!K(t))return b(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,q.apply(D,r)}}),L[I][C]||n(10)(L[I],C,L[I].valueOf),p(L,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,e,n){"use strict";var r=n(4),u=n(1),o=n(2),i=n(58),a=n(56);r(r.P+r.R,"Promise",{finally:function(t){var e=i(this,u.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(4),u=n(28),o=n(55);r(r.S,"Promise",{try:function(t){var e=u.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){n(36)("asyncIterator")},function(t,e,n){n(36)("observable")},function(t,e){t.exports=require("child_process")},function(t,e){t.exports=require("crypto")},function(t,e){t.exports=require("os")},function(t,e){t.exports=require("path")},function(t,e){t.exports=require("regenerator-runtime")}])});