miniprogram-ci 2.0.11 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +4 -0
  3. package/dist/@types/ci/build-apk.d.ts +54 -0
  4. package/dist/@types/ci/build-ipa.d.ts +46 -0
  5. package/dist/@types/ci/getcompiler.d.ts +3 -0
  6. package/dist/@types/ci/index.d.ts +4 -0
  7. package/dist/@types/ci/miniapp/androidCloudBuild.d.ts +36 -0
  8. package/dist/@types/ci/miniapp/archive.d.ts +27 -0
  9. package/dist/@types/ci/miniapp/checkBuildArgument.d.ts +21 -0
  10. package/dist/@types/ci/miniapp/iosCloudBuild.d.ts +36 -0
  11. package/dist/@types/ci/miniapp/iosLocalBuild.d.ts +13 -0
  12. package/dist/@types/ci/miniapp/iosTheme.d.ts +4 -0
  13. package/dist/@types/ci/miniapp/miniappPlugin.d.ts +33 -0
  14. package/dist/@types/ci/miniapp/sdkManager.d.ts +5 -0
  15. package/dist/@types/ci/miniapp/upload.d.ts +25 -0
  16. package/dist/@types/ci/miniappattr.d.ts +1 -0
  17. package/dist/@types/ci/upload.d.ts +1 -1
  18. package/dist/@types/ci/utils/ciRequest.d.ts +7 -0
  19. package/dist/@types/ci/utils/tools.d.ts +4 -0
  20. package/dist/@types/ci/utils/unpack.d.ts +3 -0
  21. package/dist/@types/ci/utils/wxvpkg/unpack/config.d.ts +40 -0
  22. package/dist/@types/ci/utils/wxvpkg/unpack/version0.d.ts +15 -0
  23. package/dist/@types/ci/utils/wxvpkg/unpack/version10.d.ts +18 -0
  24. package/dist/@types/ci/utils/wxvpkg/utils.d.ts +3 -0
  25. package/dist/@types/config/config.d.ts +1 -1
  26. package/dist/@types/config/url.config.d.ts +8 -0
  27. package/dist/@types/index.d.ts +3 -0
  28. package/dist/@types/modules/fullcompiler/app/app.d.ts +82 -0
  29. package/dist/@types/modules/fullcompiler/app/contactandlaunch/originalcontactbase64.d.ts +2 -0
  30. package/dist/@types/modules/fullcompiler/app/contactandlaunch/originallaunchbase64.d.ts +2 -0
  31. package/dist/@types/modules/fullcompiler/app/contactandlaunch/updateContactForSubpkg.d.ts +2 -0
  32. package/dist/@types/modules/fullcompiler/app/contactandlaunch/updatecontactandlaunch.d.ts +3 -0
  33. package/dist/@types/modules/index.d.ts +1 -2
  34. package/dist/@types/project/ciProject.d.ts +3 -0
  35. package/dist/@types/types/ci.d.ts +5 -0
  36. package/dist/@types/types/miniapp/index.d.ts +88 -0
  37. package/dist/@types/utils/locales/locales.d.ts +1 -0
  38. package/dist/@types/utils/locales/zh.d.ts +1 -0
  39. package/dist/@types/utils/miniAppI18N.d.ts +15 -0
  40. package/dist/@types/utils/miniappJson.d.ts +2 -0
  41. package/dist/@types/utils/report.d.ts +3 -1
  42. package/dist/@types/utils/request.d.ts +2 -0
  43. package/dist/@types/utils/tools.d.ts +1 -0
  44. package/dist/ci/android-miniapp-toolkit/dist/index.js +1 -0
  45. package/dist/ci/android-miniapp-toolkit/lib/apkcert.jar +0 -0
  46. package/dist/ci/android-miniapp-toolkit/lib/apksigner.jar +0 -0
  47. package/dist/ci/android-miniapp-toolkit/lib/libwinpthread-1.dll +0 -0
  48. package/dist/ci/android-miniapp-toolkit/lib/zipalign +0 -0
  49. package/dist/ci/android-miniapp-toolkit/lib/zipalign.exe +0 -0
  50. package/dist/ci/build-apk.js +1 -0
  51. package/dist/ci/build-ipa.js +1 -0
  52. package/dist/ci/getcompiler.js +1 -1
  53. package/dist/ci/index.js +1 -1
  54. package/dist/ci/miniapp/androidCloudBuild.js +1 -0
  55. package/dist/ci/miniapp/archive.js +1 -0
  56. package/dist/ci/miniapp/checkBuildArgument.js +1 -0
  57. package/dist/ci/miniapp/iosCloudBuild.js +1 -0
  58. package/dist/ci/miniapp/iosLocalBuild.js +1 -0
  59. package/dist/ci/miniapp/iosTheme.js +1 -0
  60. package/dist/ci/miniapp/miniappPlugin.js +1 -0
  61. package/dist/ci/miniapp/sdkManager.js +1 -0
  62. package/dist/ci/miniapp/upload.js +1 -0
  63. package/dist/ci/miniappattr.js +1 -0
  64. package/dist/ci/utils/ciRequest.js +1 -0
  65. package/dist/ci/utils/tools.js +1 -1
  66. package/dist/ci/utils/unpack.js +1 -0
  67. package/dist/ci/utils/wxvpkg/unpack/config.js +1 -0
  68. package/dist/ci/utils/wxvpkg/unpack/version0.js +1 -0
  69. package/dist/ci/utils/wxvpkg/unpack/version10.js +1 -0
  70. package/dist/ci/utils/wxvpkg/utils.js +1 -0
  71. package/dist/config/config.js +1 -1
  72. package/dist/config/url.config.js +1 -1
  73. package/dist/index.js +1 -1
  74. package/dist/modules/corecompiler/summer/graph/basegraph.js +1 -1
  75. package/dist/modules/corecompiler/summerCompiler.js +1 -1
  76. package/dist/modules/fullcompiler/app/app.js +1 -0
  77. package/dist/modules/fullcompiler/app/contactandlaunch/originalcontactbase64.js +1 -0
  78. package/dist/modules/fullcompiler/app/contactandlaunch/originallaunchbase64.js +1 -0
  79. package/dist/modules/fullcompiler/app/contactandlaunch/updateContactForSubpkg.js +1 -0
  80. package/dist/modules/fullcompiler/app/contactandlaunch/updatecontactandlaunch.js +1 -0
  81. package/dist/modules/nativecompiler/ios/buildCloud.js +1 -1
  82. package/dist/modules/nativecompiler/ios/index.js +1 -1
  83. package/dist/project/ciProject.js +1 -1
  84. package/dist/utils/locales/en.js +1 -1
  85. package/dist/utils/locales/zh.js +1 -1
  86. package/dist/utils/miniAppI18N.js +1 -0
  87. package/dist/utils/miniappJson.js +1 -1
  88. package/dist/utils/report.js +1 -1
  89. package/dist/utils/request.js +1 -1
  90. package/dist/utils/tools.js +1 -1
  91. package/dist/utils/zip.js +1 -1
  92. package/package.json +7 -5
@@ -0,0 +1 @@
1
+ (()=>{var __webpack_modules__={9285:function(e,t,r){"use strict";var n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r(8975));e.exports=n.default},8975:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=n(r(2993)),a=n(r(1194)),s=function(){function e(){}return e.readStream=function(e,t){return new i.default(t).connect(e)},e.Reader=i.default,e.Priority=a.default,e}();e.exports=s},1664:e=>{"use strict";var t=function(){function e(){this.date=null,this.pid=-1,this.tid=-1,this.priority=null,this.tag=null,this.message=null}return e.prototype.setDate=function(e){this.date=e},e.prototype.setPid=function(e){this.pid=e},e.prototype.setTid=function(e){this.tid=e},e.prototype.setPriority=function(e){this.priority=e},e.prototype.setTag=function(e){this.tag=e},e.prototype.setMessage=function(e){this.message=e},e.prototype.toBinary=function(){var e=20;e+=1,e+=this.tag.length,e+=1,e+=this.message.length,e+=1;var t=new Buffer(e),r=0;return t.writeUInt16LE(e-20,r),r+=4,t.writeInt32LE(this.pid,r),r+=4,t.writeInt32LE(this.tid,r),r+=4,t.writeInt32LE(Math.floor(this.date.getTime()/1e3),r),r+=4,t.writeInt32LE(this.date.getTime()%1e3*1e6,r),t[r+=4]=this.priority,r+=1,t.write(this.tag,r,this.tag.length),t[r+=this.tag.length]=0,r+=1,t.write(this.message,r,this.message.length),t[r+=this.message.length]=0,t},e}();e.exports=t},9821:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=r(4434),o=a(r(1664)),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buffer=new Buffer(0),t}return i(t,e),t.prototype.parse=function(e){for(this.buffer=Buffer.concat([this.buffer,e]);this.buffer.length>4;){var t=0,r=this.buffer.readUInt16LE(t);t+=2;var n=this.buffer.readUInt16LE(t);if((n<20||n>100)&&(n=20),t+=2,this.buffer.length<n+r)break;var i=new o.default;i.setPid(this.buffer.readInt32LE(t)),t+=4,i.setTid(this.buffer.readInt32LE(t)),t+=4;var a=this.buffer.readInt32LE(t);t+=4;var s=this.buffer.readInt32LE(t);i.setDate(new Date(1e3*a+s/1e6)),t+=4,t=n;var c=this.buffer.slice(t,t+r);t+=r,this.buffer=this.buffer.slice(t),this._processEntry(i,c)}this.buffer.length?this.emit("wait"):this.emit("drain")},t.prototype._processEntry=function(e,t){e.setPriority(t[0]);for(var r=1;r<t.length;){if(0===t[r])return e.setTag(t.slice(1,r).toString()),e.setMessage(t.slice(r+1,t.length-1).toString()),void this.emit("entry",e);r+=1}this.emit("error",new Error("Unprocessable entry data '".concat(t,"'")))},t}(s.EventEmitter);e.exports=c},1194:e=>{"use strict";var t={UNKNOWN:0,DEFAULT:1,VERBOSE:2,DEBUG:3,INFO:4,WARN:5,ERROR:6,FATAL:7,SILENT:8},r={0:"UNKNOWN",1:"DEFAULT",2:"VERBOSE",3:"DEBUG",4:"INFO",5:"WARN",6:"ERROR",7:"FATAL",8:"SILENT"},n={"?":t.UNKNOWN,V:t.VERBOSE,D:t.DEBUG,I:t.INFO,W:t.WARN,E:t.ERROR,F:t.FATAL,S:t.SILENT},i={0:"?",1:"?",2:"V",3:"D",4:"I",5:"W",6:"E",7:"F",8:"S"},a=function(){function e(){}return e.fromName=function(r){var n=t[r.toUpperCase()];return n||0===n?n:e.fromLetter(r)},e.toName=function(e){return r[e]},e.fromLetter=function(e){return n[e.toUpperCase()]},e.toLetter=function(e){return i[e]},e.UNKNOWN=t.UNKNOWN,e.DEFAULT=t.DEFAULT,e.VERBOSE=t.VERBOSE,e.DEBUG=t.DEBUG,e.INFO=t.INFO,e.WARN=t.WARN,e.ERROR=t.ERROR,e.FATAL=t.FATAL,e.SILENT=t.SILENT,e}();e.exports=a},2993:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=r(4434),o=a(r(9821)),c=a(r(6536)),u=a(r(1194)),l=function(e){function t(t){var r=e.call(this,t)||this;r.options=t,r.parser=new o.default,r.stream=null;var n={format:"binary",fixLineFeeds:!0,priority:u.default.DEBUG};if(r.options=Object.assign({},n,t),r.filters={all:-1,tags:{}},"binary"!==r.options.format)throw new Error("Unsupported format '".concat(r.options.format,"'"));return r}return i(t,e),t.prototype.exclude=function(e){return e===t.ANY?this.excludeAll():(this.filters.tags[e]=u.default.SILENT,this)},t.prototype.excludeAll=function(){return this.filters.all=u.default.SILENT,this},t.prototype.include=function(e,r){return void 0===r&&(r=this.options.priority),e===t.ANY?this.includeAll(r):(this.filters.tags[e]=this._priority(r),this)},t.prototype.includeAll=function(e){return void 0===e&&(e=this.options.priority),this.filters.all=this._priority(e),this},t.prototype.resetFilters=function(){return this.filters.all=-1,this.filters.tags={},this},t.prototype._hook=function(){var e=this;this.options.fixLineFeeds?this.stream.pipe(new c.default).on("data",(function(t){e.parser.parse(t)})):this.stream.on("data",(function(t){e.parser.parse(t)}));this.stream.on("error",(function(t){e.emit("error",t)})),this.stream.on("end",(function(){e.emit("end")})),this.stream.on("finish",(function(){e.emit("finish")})),this.parser.on("entry",(function(t){e._filter(t)&&e.emit("entry",t)})),this.parser.on("error",(function(t){e.emit("error",t)}))},t.prototype._filter=function(e){var t=e.tag in this.filters.tags?this.filters.tags[e.tag]:this.filters.all;return e.priority>=t},t.prototype._priority=function(e){return"number"==typeof e?e:u.default.fromName(e)},t.prototype.connect=function(e){return this.stream=e,this._hook(),this},t.prototype.end=function(){return this.stream.end(),this},t.ANY="*",t}(s.EventEmitter);e.exports=l},6536:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.savedR=null,t}return i(t,e),t.prototype._transform=function(e,t,r){var n=0,i=0;this.savedR&&(10!==e[0]&&this.push(this.savedR),this.savedR=null);for(var a=e.length-1;i<=a;){if(13===e[i]){if(i===a){this.savedR=e.slice(a);break}10===e[i+1]&&(this.push(e.slice(n,i)),n=i+1)}i+=1}i!==n&&this.push(e.slice(n,i)),r()},t}(r(2203).Transform);e.exports=a},1634:function(e,t,r){(function(){var t,n,i;t=r(407),n=r(4260),(i=function(){function e(){}return e.connect=function(e){return(new n).connect(e)},e.connectStream=function(e){return(new t).connect(e)},e}()).Connection=n,i.Client=t,e.exports=i}).call(this)},5606:function(e,t,r){(function(){var t,n={}.hasOwnProperty;t=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,e),t.prototype.send=function(){throw new Error("send is not implemented")},t.prototype.keyDown=function(e,t){return this.send("key down "+e,t),this},t.prototype.keyUp=function(e,t){return this.send("key up "+e,t),this},t.prototype.touchDown=function(e,t,r){return this.send("touch down "+e+" "+t,r),this},t.prototype.touchUp=function(e,t,r){return this.send("touch up "+e+" "+t,r),this},t.prototype.touchMove=function(e,t,r){return this.send("touch move "+e+" "+t,r),this},t.prototype.trackball=function(e,t,r){return this.send("trackball "+e+" "+t,r),this},t.prototype.flipOpen=function(e){return this.send("flip open",e),this},t.prototype.flipClose=function(e){return this.send("flip close",e),this},t.prototype.wake=function(e){return this.send("wake",e),this},t.prototype.tap=function(e,t,r){return this.send("tap "+e+" "+t,r),this},t.prototype.press=function(e,t){return this.send("press "+e,t),this},t.prototype.type=function(e,t){return-1===(e=e.replace(/"/g,'\\"')).indexOf(" ")?this.send("type "+e,t):this.send('type "'+e+'"',t),this},t.prototype.list=function(e){var t=this;return this.send("listvar",(function(r,n){return r?t(e(r)):r?e(r):e(null,n.split(/\s+/g))})),this},t.prototype.get=function(e,t){return this.send("getvar "+e,t),this},t.prototype.quit=function(e){return this.send("quit",e),this},t.prototype.done=function(e){return this.send("done",e),this},t.prototype.sleep=function(e,t){return this.send("sleep "+e,t),this},t.prototype.getAmCurrentAction=function(e){return this.get("am.current.action",e),this},t.prototype.getAmCurrentCategories=function(e){return this.get("am.current.categories",e),this},t.prototype.getAmCurrentCompClass=function(e){return this.get("am.current.comp.class",e),this},t.prototype.getAmCurrentCompPackage=function(e){return this.get("am.current.comp.package",e),this},t.prototype.getAmCurrentData=function(e){return this.get("am.current.data",e),this},t.prototype.getAmCurrentPackage=function(e){return this.get("am.current.package",e),this},t.prototype.getBuildBoard=function(e){return this.get("build.board",e),this},t.prototype.getBuildBrand=function(e){return this.get("build.brand",e),this},t.prototype.getBuildCpuAbi=function(e){return this.get("build.cpu_abi",e),this},t.prototype.getBuildDevice=function(e){return this.get("build.device",e),this},t.prototype.getBuildDisplay=function(e){return this.get("build.display",e),this},t.prototype.getBuildFingerprint=function(e){return this.get("build.fingerprint",e),this},t.prototype.getBuildHost=function(e){return this.get("build.host",e),this},t.prototype.getBuildId=function(e){return this.get("build.id",e),this},t.prototype.getBuildManufacturer=function(e){return this.get("build.manufacturer",e),this},t.prototype.getBuildModel=function(e){return this.get("build.model",e),this},t.prototype.getBuildProduct=function(e){return this.get("build.product",e),this},t.prototype.getBuildTags=function(e){return this.get("build.tags",e),this},t.prototype.getBuildType=function(e){return this.get("build.type",e),this},t.prototype.getBuildUser=function(e){return this.get("build.user",e),this},t.prototype.getBuildVersionCodename=function(e){return this.get("build.version.codename",e),this},t.prototype.getBuildVersionIncremental=function(e){return this.get("build.version.incremental",e),this},t.prototype.getBuildVersionRelease=function(e){return this.get("build.version.release",e),this},t.prototype.getBuildVersionSdk=function(e){return this.get("build.version.sdk",e),this},t.prototype.getClockMillis=function(e){return this.get("clock.millis",e),this},t.prototype.getClockRealtime=function(e){return this.get("clock.realtime",e),this},t.prototype.getClockUptime=function(e){return this.get("clock.uptime",e),this},t.prototype.getDisplayDensity=function(e){return this.get("display.density",e),this},t.prototype.getDisplayHeight=function(e){return this.get("display.height",e),this},t.prototype.getDisplayWidth=function(e){return this.get("display.width",e),this},t}(r(4434).EventEmitter),e.exports=t}).call(this)},407:function(e,t,r){(function(){var t,n,i,a,s,o,c={}.hasOwnProperty;t=r(5606),i=r(1755),r(178),o=r(1265),a=r(663),s=r(7471),n=function(e){function t(){this.commandQueue=new o,this.parser=new s,this.stream=null}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype._hook=function(){var e=this;this.stream.on("data",(function(t){return e.parser.parse(t)})),this.stream.on("error",(function(t){return e.emit("error",t)})),this.stream.on("end",(function(){return e.emit("end")})),this.stream.on("finish",(function(){return e.emit("finish")})),this.parser.on("reply",(function(t){return e._consume(t)})),this.parser.on("error",(function(t){return e.emit("error",t)}))},t.prototype._consume=function(e){var t;if(!(t=this.commandQueue.dequeue()))throw new Error("Command queue depleted, but replies still coming in");e.isError()?t.callback(e.toError(),null,t.command):t.callback(null,e.value,t.command)},t.prototype.connect=function(e){return this.stream=e,this._hook(),this},t.prototype.end=function(){return this.stream.end(),this},t.prototype.send=function(e,t){var r,n,a;if(Array.isArray(e)){for(n=0,a=e.length;n<a;n++)r=e[n],this.commandQueue.enqueue(new i(r,t));this.stream.write(e.join("\n")+"\n")}else this.commandQueue.enqueue(new i(e,t)),this.stream.write(e+"\n");return this},t.prototype.multi=function(){return new a(this)},t}(t),e.exports=n}).call(this)},1755:function(e){(function(){var t;t=function(e,t){this.command=e,this.callback=t,this.next=null},e.exports=t}).call(this)},4260:function(e,t,r){(function(){var t,n,i={}.hasOwnProperty;n=r(9278),t=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.connect=function(e){var r;return(r=n.connect(e)).setNoDelay(!0),t.__super__.connect.call(this,r)},t.prototype._hook=function(){var e=this;return this.stream.on("connect",(function(){return e.emit("connect")})),this.stream.on("close",(function(t){return e.emit("close",t)})),t.__super__._hook.call(this)},t}(r(407)),e.exports=t}).call(this)},663:function(e,t,r){(function(){var t,n,i,a={}.hasOwnProperty;t=r(5606),n=r(1755),i=function(e){function t(e){var t=this;this.monkey=e,this.commands=[],this.replies=[],this.errors=[],this.counter=0,this.sent=!1,this.callback=null,this.collector=function(e,r,n){return e&&t.errors.push(n+": "+e.message),t.replies.push(r),t.counter-=1,t._maybeFinish()}}return function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype._maybeFinish=function(){var e=this;0===this.counter&&(this.errors.length?setImmediate((function(){return e.callback(new Error(e.errors.join(", ")))})):setImmediate((function(){return e.callback(null,e.replies)})))},t.prototype._forbidReuse=function(){if(this.sent)throw new Error("Reuse not supported")},t.prototype.send=function(e){this._forbidReuse(),this.commands.push(new n(e,this.collector))},t.prototype.execute=function(e){var t,r,n,i,a;if(this._forbidReuse(),this.counter=this.commands.length,this.sent=!0,this.callback=e,0!==this.counter){for(r=[],n=0,i=(a=this.commands).length;n<i;n++)t=a[n],this.monkey.commandQueue.enqueue(t),r.push(t.command);r.push(""),this.commands=[],this.monkey.stream.write(r.join("\n"))}},t}(t),e.exports=i}).call(this)},7471:function(e,t,r){(function(){var t,n,i,a={}.hasOwnProperty;t=r(4434).EventEmitter,i=r(178),n=function(e){function t(e){this.column=0,this.buffer=new Buffer("")}return function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.parse=function(e){for(this.buffer=Buffer.concat([this.buffer,e]);this.column<this.buffer.length;)10===this.buffer[this.column]&&(this._parseLine(this.buffer.slice(0,this.column)),this.buffer=this.buffer.slice(this.column+1),this.column=0),this.column+=1;this.buffer.length?this.emit("wait"):this.emit("drain")},t.prototype._parseLine=function(e){switch(e[0]){case 79:2===e.length?this.emit("reply",new i(i.OK,null)):this.emit("reply",new i(i.OK,e.toString("ascii",3)));break;case 69:5===e.length?this.emit("reply",new i(i.ERROR,null)):this.emit("reply",new i(i.ERROR,e.toString("ascii",6)));break;default:this._complain(e)}},t.prototype._complain=function(e){this.emit("error",new SyntaxError("Unparseable line '"+e+"'"))},t}(t),e.exports=n}).call(this)},1265:function(e){(function(){var t;t=function(){function e(){this.head=null,this.tail=null}return e.prototype.enqueue=function(e){this.tail?this.tail.next=e:this.head=e,this.tail=e},e.prototype.dequeue=function(){var e;return(e=this.head)&&(e===this.tail&&(this.tail=null),this.head=e.next,e.next=null),e},e}(),e.exports=t}).call(this)},178:function(e){(function(){var t;t=function(){function e(e,t){this.type=e,this.value=t}return e.ERROR="ERROR",e.OK="OK",e.prototype.isError=function(){return this.type===e.ERROR},e.prototype.toError=function(){if(!this.isError())throw new Error("toError() cannot be called for non-errors");return new Error(this.value)},e}(),e.exports=t}).call(this)},8301:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyCodes=t.ShellCommand=t.DeviceClient=t.Client=t.Parser=t.Adb=t.default=void 0;var i=r(1821);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n(i).default}});var a=r(1821);Object.defineProperty(t,"Adb",{enumerable:!0,get:function(){return n(a).default}});var s=r(8247);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return n(s).default}});var o=r(3855);Object.defineProperty(t,"Client",{enumerable:!0,get:function(){return n(o).default}});var c=r(6089);Object.defineProperty(t,"DeviceClient",{enumerable:!0,get:function(){return n(c).default}});var u=r(3373);Object.defineProperty(t,"ShellCommand",{enumerable:!0,get:function(){return n(u).default}});var l=r(376);Object.defineProperty(t,"KeyCodes",{enumerable:!0,get:function(){return l.KeyCodes}})},1821:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(3855)),a=n(r(4808));class s{static createClient(e={}){const t={bin:e.bin,host:e.host||process.env.ADB_HOST,port:e.port||5037,timeout:e.timeout||0};if(!t.port){const e=parseInt(process.env.ADB_PORT||"5037",10);isNaN(e)||(t.port=e)}return new i.default(t)}}s.util=a.default,t.default=s},6089:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(1634)),a=n(r(9285)),s=n(r(5423)),o=n(r(8247)),c=n(r(8109)),u=r(2687),l=r(3227),p=r(4850),d=n(r(5753)),f=n(r(1007)),h=(0,d.default)("adb:client"),m=e=>-1!==e.message.indexOf("--user");t.default=class{constructor(e,t){this.client=e,this.serial=t}getSerialNo(){return this.connection().then((e=>new p.GetSerialNoCommand(e).execute(this.serial)))}getDevicePath(){return this.connection().then((e=>new p.GetDevicePathCommand(e).execute(this.serial)))}getState(){return this.connection().then((e=>new p.GetStateCommand(e).execute(this.serial)))}getProperties(){return this.transport().then((e=>new l.GetPropertiesCommand(e).execute()))}getFeatures(){return this.transport().then((e=>new l.GetFeaturesCommand(e).execute()))}getPackages(e){return this.transport().then((t=>new l.GetPackagesCommand(t).execute(e)))}getDHCPIpAddress(e="wlan0"){return this.getProperties().then((t=>{const r=t[`dhcp.${e}.ipaddress`];if(r)return r;throw Error(`Unable to find ipaddress for '${e}'`)}))}forward(e,t){return this.connection().then((r=>new p.ForwardCommand(r).execute(this.serial,e,t)))}listForwards(){return this.connection().then((e=>new p.ListForwardsCommand(e).execute(this.serial)))}reverse(e,t){return this.transport().then((r=>new l.ReverseCommand(r).execute(e,t)))}listReverses(){return this.transport().then((e=>new l.ListReversesCommand(e).execute()))}connection(){return this.client.connection()}transport(){return this.connection().then((e=>new u.HostTransportCommand(e).execute(this.serial).return(e)))}shell(e){return this.transport().then((t=>new l.ShellCommand(t).execute(e)))}reboot(){return this.transport().then((e=>new l.RebootCommand(e).execute()))}remount(){return this.transport().then((e=>new l.RemountCommand(e).execute()))}root(){return this.transport().then((e=>new l.RootCommand(e).execute()))}trackJdwp(){return this.transport().then((e=>new l.TrackJdwpCommand(e).execute()))}framebuffer(e="raw"){return this.transport().then((t=>new l.FrameBufferCommand(t).execute(e)))}screencap(){return this.transport().then((e=>new l.ScreencapCommand(e).execute().catch((e=>(h(`Emulating screencap command due to '${e}'`),this.framebuffer("png"))))))}openLocal(e){return this.transport().then((t=>new l.LocalCommand(t).execute(e)))}openLog(e){return this.transport().then((t=>new l.LogCommand(t).execute(e)))}openTcp(e,t){return this.transport().then((r=>new l.TcpCommand(r).execute(e,t)))}openMonkey(e=1080){const t=r=>this.openTcp(e).then((e=>i.default.connectStream(e))).catch((e=>{if(r-=1)return h(`Monkey can't be reached, trying ${r} more times`),f.default.delay(100).then((()=>t(r)));throw e}));return t(1).catch((()=>this.transport().then((t=>new l.MonkeyCommand(t).execute(e))).then((e=>t(20).then((t=>t.once("end",(()=>e.end()))))))))}openLogcat(e={}){return this.transport().then((t=>new l.LogcatCommand(t).execute(e))).then((e=>a.default.readStream(e,{fixLineFeeds:!1})))}openProcStat(){return this.syncService().then((e=>new c.default(e)))}clear(e){return this.transport().then((t=>new l.ClearCommand(t).execute(e)))}install(e){const t=s.default.temp("string"==typeof e?e:"_stream.apk");return this.push(e,t).then((e=>{let r,n;return new f.default(((i,a)=>{n=e=>a(e),r=()=>this.installRemote(t).then((e=>i(e))).catch(a),e.on("error",n),e.on("end",r)})).finally((()=>{e.removeListener("error",n),e.removeListener("end",r)}))}))}installRemote(e){return this.transport().then((t=>new l.InstallCommand(t).execute(e).finally((()=>this.shell(["rm","-f",e]).then((e=>new o.default(e).readAll())))).then((()=>!0))))}uninstall(e){return this.transport().then((t=>new l.UninstallCommand(t).execute(e)))}isInstalled(e){return this.transport().then((t=>new l.IsInstalledCommand(t).execute(e)))}startActivity(e){return this.transport().then((t=>new l.StartActivityCommand(t).execute(e))).catch(m,(()=>(e.user=void 0,this.startActivity(e))))}startService(e){return this.transport().then((t=>(e.user||null===e.user||(e.user=0),new l.StartServiceCommand(t).execute(e)))).catch(m,(()=>(e.user=void 0,this.startService(e))))}syncService(){return this.transport().then((e=>new l.SyncCommand(e).execute()))}stat(e){return this.syncService().then((t=>t.stat(e).finally((()=>t.end()))))}readdir(e){return this.syncService().then((t=>t.readdir(e).finally((()=>t.end()))))}pull(e){return this.syncService().then((t=>t.pull(e).on("end",(()=>t.end()))))}push(e,t,r){return this.syncService().then((n=>n.push(e,t,r).on("end",(()=>n.end()))))}tcpip(e=5555){return this.transport().then((t=>new l.TcpIpCommand(t).execute(e)))}usb(){return this.transport().then((e=>new l.UsbCommand(e).execute()))}waitBootComplete(){return this.transport().then((e=>new l.WaitBootCompleteCommand(e).execute()))}waitForDevice(){return this.connection().then((e=>new p.WaitForDeviceCommand(e).execute(this.serial)))}}},4450:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9547)),a=n(r(1007)),s=i.default.jsbn.BigInteger;class o{static parsePublicKey(e){return new a.default((function(t,r){const n=o.RE.exec(e);if(n){const e=Buffer.from(n[1],"base64"),r=n[2].trim();return t(o.readPublicKeyFromStruct(e,r))}return r(new Error("Unrecognizable public key format"))}))}static readPublicKeyFromStruct(e,t){if(!e.length)throw new Error("Invalid public key");let r=0;const n=4*e.readUInt32LE(r);if(r+=4,e.length!==8+n+n+4)throw new Error("Invalid public key");r+=4;const a=Buffer.alloc(n);e.copy(a,0,r,r+n),[].reverse.call(a),r+=n,r+=n;const o=e.readUInt32LE(r);if(3!==o&&65537!==o)throw new Error(`Invalid exponent ${o}, only 3 and 65537 are supported`);const c=new s(a.toString("hex"),16),u=new s(o.toString(),10),l=i.default.pki.rsa.setPublicKey(c,u),p=i.default.md.md5.create();p.update(e.toString("binary"));const d=l;return d.fingerprint=p.digest().toHex().match(/../g).join(":"),d.comment=t,d}}o.RE=/^((?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?)\0?( .*|)\s*$/,t.default=o},3855:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(4434),a=n(r(7788)),s=r(2687),o=n(r(9253)),c=n(r(6089));class u extends i.EventEmitter{constructor({host:e="127.0.0.1",port:t=5037,bin:r="adb",timeout:n=0}={port:5037}){super(),this.host=e,this.port=t,this.bin=r,this.timeout=n,this.options={host:e,port:t,bin:r,timeout:n}}createTcpUsbBridge(e,t){return new o.default(this,e,t)}connection(){const e=new a.default(this.options);return e.on("error",(e=>this.emit("error",e))),e.connect()}version(){return this.connection().then((e=>new s.HostVersionCommand(e).execute()))}connect(e,t=5555){if(-1!==e.indexOf(":")){const[r,n]=e.split(":",2);e=r;const i=parseInt(n,10);isNaN(i)||(t=i)}return this.connection().then((r=>new s.HostConnectCommand(r).execute(e,t)))}disconnect(e,t=5555){if(-1!==e.indexOf(":")){const[r,n]=e.split(":",2);e=r;const i=parseInt(n,10);isNaN(i)||(t=i)}return this.connection().then((r=>new s.HostDisconnectCommand(r).execute(e,t))).then((e=>new c.default(this,e)))}listDevices(){return this.connection().then((e=>new s.HostDevicesCommand(e).execute()))}listDevicesWithPaths(){return this.connection().then((e=>new s.HostDevicesWithPathsCommand(e).execute()))}trackDevices(){return this.connection().then((e=>new s.HostTrackDevicesCommand(e).execute()))}kill(){return this.connection().then((e=>new s.HostKillCommand(e).execute()))}getDevice(e){return new c.default(this,e)}}t.default=u},7571:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=(0,n(r(5753)).default)("adb:command"),s=/'/g,o=/([$`\\!"])/g;t.default=class{constructor(e){this.connection=e,this.parser=this.connection.parser,this.protocol=i.default}_send(e){const t=i.default.encodeData(e);return a.enabled&&a(`Send '${t}'`),this.connection.write(t),this}_escape(e){return"number"==typeof e?e:"'"+e.toString().replace(s,"'\"'\"'")+"'"}_escapeCompat(e){return"number"==typeof e?e:'"'+e.toString().replace(o,"\\$1")+'"'}}},2319:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(7571)),a=n(r(9112));class s extends i.default{execute(e,t,r){return this._send(`host-serial:${e}:forward:${t};${r}`),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return!0;case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}));case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},6603:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends a.default{execute(e){return this._send(`host-serial:${e}:get-devpath`),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.readValue().then((e=>e.toString()));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},5481:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(7571)),a=n(r(9112));class s extends i.default{execute(e){return this._send(`host-serial:${e}:get-state`),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return this.parser.readValue().then((e=>e.toString()));case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},4850:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WaitForDeviceCommand=t.ListForwardsCommand=t.GetStateCommand=t.GetSerialNoCommand=t.GetDevicePathCommand=t.ForwardCommand=void 0;var i=r(2319);Object.defineProperty(t,"ForwardCommand",{enumerable:!0,get:function(){return n(i).default}});var a=r(6603);Object.defineProperty(t,"GetDevicePathCommand",{enumerable:!0,get:function(){return n(a).default}});var s=r(6603);Object.defineProperty(t,"GetSerialNoCommand",{enumerable:!0,get:function(){return n(s).default}});var o=r(5481);Object.defineProperty(t,"GetStateCommand",{enumerable:!0,get:function(){return n(o).default}});var c=r(7682);Object.defineProperty(t,"ListForwardsCommand",{enumerable:!0,get:function(){return n(c).default}});var u=r(5343);Object.defineProperty(t,"WaitForDeviceCommand",{enumerable:!0,get:function(){return n(u).default}})},7682:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(7571)),a=n(r(9112));class s extends i.default{execute(e){return this._send(`host-serial:${e}:list-forward`),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return this.parser.readValue().then(this._parseForwards);case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}_parseForwards(e){return e.toString().split("\n").filter((e=>e)).map((e=>{const[t,r,n]=e.split(/\s+/);return{serial:t,local:r,remote:n}}))}}t.default=s},5343:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends a.default{execute(e){return this._send(`host-serial:${e}:wait-for-any-device`),this.parser.readAscii(4).then((t=>{switch(t){case i.default.OKAY:return this.parser.readAscii(4).then((t=>{switch(t){case i.default.OKAY:return e;case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(t,"OKAY or FAIL")}}));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(t,"OKAY or FAIL")}}))}}t.default=s},1102:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends a.default{execute(e){return this._send(`shell:pm clear ${e}`),this.parser.readAscii(4).then((t=>{switch(t){case i.default.OKAY:return this.parser.searchLine(/^(Success|Failed)$/).finally((()=>this.parser.end())).then((function(t){switch(t[0]){case"Success":return!0;case"Failed":throw new Error(`Package '${e}' could not be cleared`)}return!1}));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(t,"OKAY or FAIL")}}))}}t.default=s},9200:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(5317),a=n(r(5753)),s=n(r(5221)),o=n(r(9112)),c=n(r(7571)),u=(0,a.default)("adb:command:framebuffer");class l extends c.default{execute(e){return this._send("framebuffer:"),this.parser.readAscii(4).then((t=>{switch(t){case o.default.OKAY:return this.parser.readBytes(52).then((t=>{let r;const n=this._parseHeader(t);return"raw"===e?(r=this.parser.raw(),r.meta=n,r):(r=this._convert(n,e),r.meta=n,r)}));case o.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(t,"OKAY or FAIL")}}))}_convert(e,t,r){switch(u(`Converting raw framebuffer stream into ${t.toUpperCase()}`),e.format){case"rgb":case"rgba":break;default:u(`Silently transforming '${e.format}' into 'rgb' for \`gm\``);const t=new s.default(e);e.format="rgb",r=this.parser.raw().pipe(t)}const n=(0,i.spawn)("gm",["convert","-size",`${e.width}x${e.height}`,`${e.format}:-`,`${t}:-`]);return r&&r.pipe(n.stdin),n.stdout}_parseHeader(e){let t=0;const r=e.readUInt32LE(t);if(16===r)throw new Error("Old-style raw images are not supported");t+=4;const n=e.readUInt32LE(t);t+=4;const i=e.readUInt32LE(t);t+=4;const a=e.readUInt32LE(t);t+=4;const s=e.readUInt32LE(t);t+=4;const o=e.readUInt32LE(t);t+=4;const c=e.readUInt32LE(t);t+=4;const u=e.readUInt32LE(t);t+=4;const l=e.readUInt32LE(t);t+=4;const p=e.readUInt32LE(t);t+=4;const d=e.readUInt32LE(t);t+=4;const f=e.readUInt32LE(t);t+=4;const h=e.readUInt32LE(t);let m=0===u?"bgr":"rgb";return(32===n||h)&&(m+="a"),{version:r,bpp:n,size:i,width:a,height:s,red_offset:o,red_length:c,blue_offset:u,blue_length:l,green_offset:p,green_length:d,alpha_offset:f,alpha_length:h,format:m}}}t.default=l},9072:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(7571)),a=n(r(9112)),s=/^feature:(.*?)(?:=(.*?))?\r?$/gm;class o extends i.default{execute(){return this._send("shell:pm list features 2>/dev/null"),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return this.parser.readAll().then((e=>this._parseFeatures(e.toString())));case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}_parseFeatures(e){const t={};let r;for(;r=s.exec(e);)t[r[1]]=r[2]||!0;return t}}t.default=o},2782:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(7571)),a=n(r(9112));class s extends i.default{execute(e){return e?this._send(`shell:pm list packages ${e} 2>/dev/null`):this._send("shell:pm list packages 2>/dev/null"),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return this.parser.readAll().then((e=>this._parsePackages(e.toString())));case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}_parsePackages(e){const t=[],r=/^package:(.*?)\r?$/gm;for(;;){const n=r.exec(e);if(!n)break;t.push(n[1])}return t}}t.default=s},9138:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571)),s=/^\[([\s\S]*?)\]: \[([\s\S]*?)\]\r?$/gm;class o extends a.default{execute(){return this._send("shell:getprop"),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.readAll().then((e=>this._parseProperties(e.toString())));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}_parseProperties(e){const t={};let r;for(;r=s.exec(e);)t[r[1]]=r[2];return t}}t.default=o},3227:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WaitBootCompleteCommand=t.UsbCommand=t.UninstallCommand=t.TrackJdwpCommand=t.TcpIpCommand=t.TcpCommand=t.SyncCommand=t.StartServiceCommand=t.StartActivityCommand=t.ShellCommand=t.ScreencapCommand=t.RootCommand=t.ReverseCommand=t.RemountCommand=t.RebootCommand=t.MonkeyCommand=t.LogcatCommand=t.LogCommand=t.LocalCommand=t.ListReversesCommand=t.IsInstalledCommand=t.InstallCommand=t.GetPropertiesCommand=t.GetPackagesCommand=t.GetFeaturesCommand=t.FrameBufferCommand=t.ClearCommand=void 0;var i=r(1102);Object.defineProperty(t,"ClearCommand",{enumerable:!0,get:function(){return n(i).default}});var a=r(9200);Object.defineProperty(t,"FrameBufferCommand",{enumerable:!0,get:function(){return n(a).default}});var s=r(9072);Object.defineProperty(t,"GetFeaturesCommand",{enumerable:!0,get:function(){return n(s).default}});var o=r(2782);Object.defineProperty(t,"GetPackagesCommand",{enumerable:!0,get:function(){return n(o).default}});var c=r(9138);Object.defineProperty(t,"GetPropertiesCommand",{enumerable:!0,get:function(){return n(c).default}});var u=r(7656);Object.defineProperty(t,"InstallCommand",{enumerable:!0,get:function(){return n(u).default}});var l=r(7293);Object.defineProperty(t,"IsInstalledCommand",{enumerable:!0,get:function(){return n(l).default}});var p=r(8492);Object.defineProperty(t,"ListReversesCommand",{enumerable:!0,get:function(){return n(p).default}});var d=r(4936);Object.defineProperty(t,"LocalCommand",{enumerable:!0,get:function(){return n(d).default}});var f=r(1197);Object.defineProperty(t,"LogCommand",{enumerable:!0,get:function(){return n(f).default}});var h=r(6409);Object.defineProperty(t,"LogcatCommand",{enumerable:!0,get:function(){return n(h).default}});var m=r(2666);Object.defineProperty(t,"MonkeyCommand",{enumerable:!0,get:function(){return n(m).default}});var v=r(3138);Object.defineProperty(t,"RebootCommand",{enumerable:!0,get:function(){return n(v).default}});var g=r(3529);Object.defineProperty(t,"RemountCommand",{enumerable:!0,get:function(){return n(g).default}});var y=r(3297);Object.defineProperty(t,"ReverseCommand",{enumerable:!0,get:function(){return n(y).default}});var E=r(4039);Object.defineProperty(t,"RootCommand",{enumerable:!0,get:function(){return n(E).default}});var _=r(3283);Object.defineProperty(t,"ScreencapCommand",{enumerable:!0,get:function(){return n(_).default}});var b=r(3373);Object.defineProperty(t,"ShellCommand",{enumerable:!0,get:function(){return n(b).default}});var x=r(5058);Object.defineProperty(t,"StartActivityCommand",{enumerable:!0,get:function(){return n(x).default}});var C=r(6124);Object.defineProperty(t,"StartServiceCommand",{enumerable:!0,get:function(){return n(C).default}});var w=r(9632);Object.defineProperty(t,"SyncCommand",{enumerable:!0,get:function(){return n(w).default}});var S=r(3580);Object.defineProperty(t,"TcpCommand",{enumerable:!0,get:function(){return n(S).default}});var T=r(9761);Object.defineProperty(t,"TcpIpCommand",{enumerable:!0,get:function(){return n(T).default}});var A=r(8305);Object.defineProperty(t,"TrackJdwpCommand",{enumerable:!0,get:function(){return n(A).default}});var O=r(1765);Object.defineProperty(t,"UninstallCommand",{enumerable:!0,get:function(){return n(O).default}});var I=r(3002);Object.defineProperty(t,"UsbCommand",{enumerable:!0,get:function(){return n(I).default}});var D=r(945);Object.defineProperty(t,"WaitBootCompleteCommand",{enumerable:!0,get:function(){return n(D).default}})},7656:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571)),s=/^(Success|Failure \[(.*?)\]|Exception)(.*)$/;class o extends Error{constructor(e,t){super(e),this.code=t}}class c extends a.default{execute(e){return this._send(`shell:pm install -r ${this._escapeCompat(e)}`),this.parser.readAscii(4).then((t=>{switch(t){case i.default.OKAY:return this.parser.searchLine(s).then((t=>{if("Success"===t[1])return!0;if("Exception"===t[1])return this.parser.readLine().then((e=>{throw new o(e.toString(),"INSTALL_EXCEPTION")}));{const r=t[2];throw new o(`${e} could not be installed [${r}]`,r)}})).finally((()=>this.parser.readAll()));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(t,"OKAY or FAIL")}}))}}t.default=c},7293:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(8247)),s=n(r(7571));class o extends s.default{execute(e){return this._send(`shell:pm path ${e} 2>/dev/null`),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.readAscii(8).then((e=>"package:"===e||this.parser.unexpected(e,"'package:'"))).catch(a.default.PrematureEOFError,(function(){return!1}));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=o},8492:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends a.default{execute(){return this._send("reverse:list-forward"),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.readValue().then((e=>this._parseReverses(e)));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}_parseReverses(e){const t=[],r=e.toString().split("\n");for(let e=0,n=r.length;e<n;e++){const n=r[e];if(n){const[,e,r]=n.split(/\s+/);t.push({remote:e,local:r})}}return t}}t.default=s},4936:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends a.default{execute(e){return this._send(/:/.test(e)?e:`localfilesystem:${e}`),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.raw();case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},1197:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends a.default{execute(e){return this._send(`log:${e}`),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.raw();case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},6409:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(3120)),a=n(r(9112)),s=n(r(7571));class o extends s.default{execute(e={}){let t;return t="logcat -B *:I 2>/dev/null",e.clear&&(t=`logcat -c 2>/dev/null && ${t}`),this._send(`shell:echo && ${t}`),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return this.parser.raw().pipe(new i.default({autoDetect:!0}));case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=o},2666:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(1007)),a=n(r(9112)),s=n(r(7571));class o extends s.default{execute(e){return this._send(`shell:EXTERNAL_STORAGE=/data/local/tmp monkey --port ${e} -v`),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return this.parser.searchLine(/^:Monkey:/).timeout(1e3).then((()=>this.parser.raw())).catch(i.default.TimeoutError,(()=>this.parser.raw()));case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=o},3138:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends a.default{execute(){return this._send("reboot:"),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.readAll().return(!0);case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},3529:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends a.default{execute(){return this._send("remount:"),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return!0;case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},3297:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends a.default{execute(e,t){return this._send(`reverse:forward:${e};${t}`),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return!0;case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},4039:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571)),s=/restarting adbd as root/;class o extends a.default{execute(){return this._send("root:"),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.readAll().then((function(e){if(s.test(e.toString()))return!0;throw new Error(e.toString().trim())}));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=o},3283:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(3120)),a=n(r(9112)),s=n(r(8247)),o=n(r(7571));class c extends o.default{execute(){return this._send("shell:echo && screencap -p 2>/dev/null"),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:let t=new i.default;return this.parser.readBytes(1).then((e=>(t=new i.default({autoDetect:!0}),t.write(e),this.parser.raw().pipe(t)))).catch(s.default.PrematureEOFError,(()=>{throw Error("No support for the screencap command")}));case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=c},3373:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends a.default{execute(e){return Array.isArray(e)&&(e=e.map(this._escape).join(" ")),this._send(`shell:${e}`),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.raw();case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},5058:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=n(r(9112)),a=n(r(8247)),s=n(r(7571)),o=/^Error: (.*)$/,c={string:"s",null:"sn",bool:"z",int:"i",long:"l",float:"f",uri:"u",component:"cn"};class u extends s.default{execute(e){const t=this._intentArgs(e);return e.debug&&t.push("-D"),e.wait&&t.push("-W"),(e.user||0===e.user)&&t.push("--user",this._escape(e.user)),this._run("start",t)}_run(e,t){return this._send(`shell:am ${e} ${t.join(" ")}`),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.searchLine(o).finally((()=>this.parser.end())).then((function(e){throw new Error(e[1])})).catch(a.default.PrematureEOFError,(function(){return!0}));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}_intentArgs(e){const t=[];return e.extras&&t.push(...this._formatExtras(e.extras)),e.action&&t.push("-a",this._escape(e.action)),e.data&&t.push("-d",this._escape(e.data)),e.mimeType&&t.push("-t",this._escape(e.mimeType)),e.category&&(Array.isArray(e.category)?e.category.forEach((e=>t.push("-c",this._escape(e)))):t.push("-c",this._escape(e.category))),e.component&&t.push("-n",this._escape(e.component)),e.flags&&t.push("-f",this._escape(e.flags)),t}_formatExtras(e){return e?Array.isArray(e)?e.reduce(((e,t)=>e.concat(this._formatLongExtra(t))),[]):Object.keys(e).reduce(((t,r)=>t.concat(this._formatShortExtra(r,e[r]))),[]):[]}_formatShortExtra(e,t){let r={key:e,type:"",value:void 0};if(null===t)r.type="null";else{if(Array.isArray(t))throw new Error(`Refusing to format array value '${e}' using short syntax; empty array would cause unpredictable results due to unknown type. Please use long syntax instead.`);switch(typeof t){case"string":r.type="string",r.value=t;break;case"boolean":r.type="bool",r.value=t;break;case"number":r.type="int",r.value=t;break;case"object":r=t,r.key=e}}return this._formatLongExtra(r)}_formatLongExtra(e){const t=[];e.type||(e.type="string");const r=c[e.type];if(!r)throw new Error(`Unsupported type '${e.type}' for extra '${e.key}'`);return"null"===e.type?(t.push(`--e${r}`),t.push(this._escape(e.key))):Array.isArray(e.value)?(t.push(`--e${r}a`),t.push(this._escape(e.key)),t.push(this._escape(e.value.join(",")))):(t.push(`--e${r}`),t.push(this._escape(e.key)),t.push(this._escape(e.value))),t}}e.exports=u},6124:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(5058));class a extends i.default{execute(e){const t=this._intentArgs(e);return(e.user||0===e.user)&&t.push("--user",this._escape(e.user)),this._run("startservice",t)}}t.default=a},9632:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(5423)),s=n(r(7571));class o extends s.default{execute(){return this._send("sync:"),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return new a.default(this.connection);case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=o},3580:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends a.default{execute(e,t){return this._send(`tcp:${e}`+(t?`:${t}`:"")),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.raw();case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},9761:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571)),s=/restarting in/;class o extends a.default{execute(e){return this._send(`tcpip:${e}`),this.parser.readAscii(4).then((t=>{switch(t){case i.default.OKAY:return this.parser.readAll().then((function(t){if(s.test(t.toString()))return e;throw new Error(t.toString().trim())}));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(t,"OKAY or FAIL")}}))}}t.default=o},8305:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571)),s=n(r(777));class o extends a.default{execute(){return this._send("track-jdwp"),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return new s.default(this);case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=o},1765:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends Error{constructor(e){super(e)}}class o extends a.default{execute(e){return this._send(`shell:pm uninstall ${e}`),this.parser.readAscii(4).then((t=>{switch(t){case i.default.OKAY:return this.parser.searchLine(/^(Success|Failure.*|.*Unknown package:.*)$/).then((function(t){if("Success"===t[1])return!0;if(t[1].includes("DELETE_FAILED_DEVICE_POLICY_MANAGER")){const r=t[1];throw new s(`${e} could not be uninstalled [${r}]`)}return!0})).finally((()=>this.parser.readAll()));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(t,"OKAY or FAIL")}}))}}t.default=o},3002:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571)),s=/restarting in/;class o extends a.default{execute(){return this._send("usb:"),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.readAll().then((function(e){if(s.test(e.toString()))return!0;throw new Error(e.toString().trim())}));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=o},945:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7571));class s extends a.default{execute(){return this._send("shell:while getprop sys.boot_completed 2>/dev/null; do sleep 1; done"),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return this.parser.searchLine(/^1$/).finally((()=>this.parser.end())).then((()=>!0));case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},4061:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(7571)),a=n(r(9112)),s=/connected to|already connected/;class o extends i.default{execute(e,t){return this._send(`host:connect:${e}:${t}`),this.parser.readAscii(4).then((r=>{switch(r){case a.default.OKAY:return this.parser.readValue().then((function(r){if(s.test(r.toString()))return`${e}:${t}`;throw new Error(r.toString())}));case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(r,"OKAY or FAIL")}}))}}t.default=o},3100:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(7571)),a=n(r(9112));class s extends i.default{execute(){return this._send("host:devices"),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return this._readDevices();case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}_readDevices(){return this.parser.readValue().then(this._parseDevices)}_parseDevices(e){return e.toString("ascii").split("\n").filter((e=>e)).map((e=>{const[t,r]=e.split("\t");return{id:t,type:r}}))}}t.default=s},978:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(7571)),a=n(r(9112));class s extends i.default{execute(){return this._send("host:devices-l"),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return this._readDevices();case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}_readDevices(){return this.parser.readValue().then(this._parseDevices)}_parseDevices(e){return e.toString("ascii").split("\n").filter((e=>e)).map((e=>{const[t,r,n,i,a,s,o]=e.split(/\s+/);return{id:t,type:r,path:n,product:i,model:a,device:s,transportId:o}}))}}t.default=s},9545:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(7571)),a=n(r(9112)),s=/^$/,o=/^disconnected.*$/;class c extends i.default{execute(e,t){return this._send(`host:disconnect:${e}:${t}`),this.parser.readAscii(4).then((r=>{switch(r){case a.default.OKAY:return this.parser.readValue().then((function(r){if(s.test(r.toString())||o.test(r.toString()))return`${e}:${t}`;throw new Error(r.toString())}));case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(r,"OKAY or FAIL")}}))}}t.default=c},2687:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HostVersionCommand=t.HostTransportCommand=t.HostTrackDevicesCommand=t.HostKillCommand=t.HostDisconnectCommand=t.HostDevicesWithPathsCommand=t.HostDevicesCommand=t.HostConnectCommand=void 0;var i=r(4061);Object.defineProperty(t,"HostConnectCommand",{enumerable:!0,get:function(){return n(i).default}});var a=r(3100);Object.defineProperty(t,"HostDevicesCommand",{enumerable:!0,get:function(){return n(a).default}});var s=r(978);Object.defineProperty(t,"HostDevicesWithPathsCommand",{enumerable:!0,get:function(){return n(s).default}});var o=r(9545);Object.defineProperty(t,"HostDisconnectCommand",{enumerable:!0,get:function(){return n(o).default}});var c=r(4539);Object.defineProperty(t,"HostKillCommand",{enumerable:!0,get:function(){return n(c).default}});var u=r(3049);Object.defineProperty(t,"HostTrackDevicesCommand",{enumerable:!0,get:function(){return n(u).default}});var l=r(9410);Object.defineProperty(t,"HostTransportCommand",{enumerable:!0,get:function(){return n(l).default}});var p=r(9343);Object.defineProperty(t,"HostVersionCommand",{enumerable:!0,get:function(){return n(p).default}})},4539:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(7571)),a=n(r(9112));class s extends i.default{execute(){return this._send("host:kill"),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return!0;case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},3049:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(9112)),a=n(r(7594)),s=n(r(3100));class o extends s.default{execute(){return this._send("host:track-devices"),this.parser.readAscii(4).then((e=>{switch(e){case i.default.OKAY:return new a.default(this);case i.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=o},9410:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(7571)),a=n(r(9112));class s extends i.default{execute(e){return this._send(`host:transport:${e}`),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return!0;case a.default.FAIL:return this.parser.readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}}))}}t.default=s},9343:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(7571)),a=n(r(9112));class s extends i.default{execute(){return this._send("host:version"),this.parser.readAscii(4).then((e=>{switch(e){case a.default.OKAY:return this.parser.readValue().then((e=>this._parseVersion(e.toString())));case a.default.FAIL:return this.parser.readError();default:return this._parseVersion(e)}}))}_parseVersion(e){return parseInt(e,16)}}t.default=s},7788:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(r(9278)),c=r(4434),u=r(5317),l=s(r(8247)),p=s(r(4202)),d=s(r(5753)),f=s(r(1007)),h=(0,d.default)("adb:connection");class m extends c.EventEmitter{constructor(e){super(),this.options=e||{port:0},this.triedStarting=!1}connect(){return this.socket=o.connect(this.options),this.socket.setNoDelay(!0),this.parser=new l.default(this.socket),this.socket.on("connect",(()=>this.emit("connect"))),this.socket.on("end",(()=>this.emit("end"))),this.socket.on("drain",(()=>this.emit("drain"))),this.socket.on("timeout",(()=>this.emit("timeout"))),this.socket.on("close",(e=>this.emit("close",e))),new f.default(((e,t)=>{this.socket.once("connect",e),this.socket.once("error",t)})).catch((e=>{if("ECONNREFUSED"!==e.code||this.triedStarting)throw this.end(),e;return h("Connection was refused, let's try starting the server once"),this.triedStarting=!0,this.startServer().then((()=>this.connect()))})).then((()=>(this.socket&&this.socket.on("error",(e=>{this.socket&&1===this.socket.listenerCount("error")&&this.emit("error",e)})),this)))}getSocket(){return this.socket}end(){return this.socket&&this.socket.end(),this}write(e,t){return this.socket.write((0,p.default)(e),t),this}startServer(){let e=0;"port"in this.options&&(e=this.options.port);const t=e?["-P",String(e),"start-server"]:["start-server"];return h(`Starting ADB server via '${this.options.bin} ${t.join(" ")}'`),this._exec(t,{})}_exec(e,t){return h(`CLI: ${this.options.bin} ${e.join(" ")}`),f.default.promisify(u.execFile)(this.options.bin,e,t)}}t.default=m},4202:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t});const a=(this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t})(r(9896));let s;if(process.env.ADBKIT_DUMP){const e=a.createWriteStream("adbkit.dump");s=function(t){return e.write(t),t}}else s=e=>e;e.exports=s},5221:function(e,t,r){"use strict";const n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r(2613)),i=r(2203);class a extends i.Stream.Transform{constructor(e,t){super(t),this.meta=e,this._buffer=Buffer.from(""),n.default.ok(24===this.meta.bpp||32===this.meta.bpp,"Only 24-bit and 32-bit raw images with 8-bits per color are supported"),this._r_pos=this.meta.red_offset/8,this._g_pos=this.meta.green_offset/8,this._b_pos=this.meta.blue_offset/8,this._a_pos=this.meta.alpha_offset/8,this._pixel_bytes=this.meta.bpp/8}_transform(e,t,r){this._buffer.length?this._buffer=Buffer.concat([this._buffer,e],this._buffer.length+e.length):this._buffer=e;let n=0,i=0;const a=3===this._pixel_bytes?this._buffer:Buffer.alloc(Math.max(4,e.length/this._pixel_bytes*3));for(;this._buffer.length-n>=this._pixel_bytes;){const e=this._buffer[n+this._r_pos],t=this._buffer[n+this._g_pos],r=this._buffer[n+this._b_pos];a[i+0]=e,a[i+1]=t,a[i+2]=r,n+=this._pixel_bytes,i+=3}i&&(this.push(a.slice(0,i)),this._buffer=this._buffer.slice(n)),r()}}e.exports=a},777:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(4434),a=n(r(1007)),s=n(r(8247));class o extends i.EventEmitter{constructor(e){super(),this.command=e,this.pids=[],this.pidMap=Object.create(null),this.command=e,this.pids=[],this.pidMap=Object.create(null),this.reader=this.read().catch(s.default.PrematureEOFError,(()=>this.emit("end"))).catch(a.default.CancellationError,(()=>(this.command.connection.end(),this.emit("end")))).catch((e=>(this.command.connection.end(),this.emit("error",e),this.emit("end"))))}on(e,t){return super.on(e,t)}once(e,t){return super.once(e,t)}emit(e,...t){return super.emit(e,...t)}read(){return this.command.parser.readValue().then((e=>{const t=e.toString().split("\n"),r=t.pop();return r&&t.push(r),this.update(t)}))}update(e){const t={removed:[],added:[]},r=Object.create(null);for(let n=0,i=e.length;n<i;n++){const i=e[n];this.pidMap[i]||(t.added.push(i),this.emit("add",i),r[i]=i)}const n=this.pids;for(let e=0,i=n.length;e<i;e++){const i=n[e];r[i]||(t.removed.push(i),this.emit("remove",i))}return this.pids=e,this.pidMap=r,this.emit("changeSet",t,e),this}end(){return this.reader.cancel(),this}}t.default=o},376:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.KeyCodes=void 0,function(e){e[e.KEYCODE_UNKNOWN=0]="KEYCODE_UNKNOWN",e[e.KEYCODE_SOFT_LEFT=1]="KEYCODE_SOFT_LEFT",e[e.KEYCODE_SOFT_RIGHT=2]="KEYCODE_SOFT_RIGHT",e[e.KEYCODE_HOME=3]="KEYCODE_HOME",e[e.KEYCODE_BACK=4]="KEYCODE_BACK",e[e.KEYCODE_CALL=5]="KEYCODE_CALL",e[e.KEYCODE_ENDCALL=6]="KEYCODE_ENDCALL",e[e.KEYCODE_0=7]="KEYCODE_0",e[e.KEYCODE_1=8]="KEYCODE_1",e[e.KEYCODE_2=9]="KEYCODE_2",e[e.KEYCODE_3=10]="KEYCODE_3",e[e.KEYCODE_4=11]="KEYCODE_4",e[e.KEYCODE_5=12]="KEYCODE_5",e[e.KEYCODE_6=13]="KEYCODE_6",e[e.KEYCODE_7=14]="KEYCODE_7",e[e.KEYCODE_8=15]="KEYCODE_8",e[e.KEYCODE_9=16]="KEYCODE_9",e[e.KEYCODE_STAR=17]="KEYCODE_STAR",e[e.KEYCODE_POUND=18]="KEYCODE_POUND",e[e.KEYCODE_DPAD_UP=19]="KEYCODE_DPAD_UP",e[e.KEYCODE_DPAD_DOWN=20]="KEYCODE_DPAD_DOWN",e[e.KEYCODE_DPAD_LEFT=21]="KEYCODE_DPAD_LEFT",e[e.KEYCODE_DPAD_RIGHT=22]="KEYCODE_DPAD_RIGHT",e[e.KEYCODE_DPAD_CENTER=23]="KEYCODE_DPAD_CENTER",e[e.KEYCODE_VOLUME_UP=24]="KEYCODE_VOLUME_UP",e[e.KEYCODE_VOLUME_DOWN=25]="KEYCODE_VOLUME_DOWN",e[e.KEYCODE_POWER=26]="KEYCODE_POWER",e[e.KEYCODE_CAMERA=27]="KEYCODE_CAMERA",e[e.KEYCODE_CLEAR=28]="KEYCODE_CLEAR",e[e.KEYCODE_A=29]="KEYCODE_A",e[e.KEYCODE_B=30]="KEYCODE_B",e[e.KEYCODE_C=31]="KEYCODE_C",e[e.KEYCODE_D=32]="KEYCODE_D",e[e.KEYCODE_E=33]="KEYCODE_E",e[e.KEYCODE_F=34]="KEYCODE_F",e[e.KEYCODE_G=35]="KEYCODE_G",e[e.KEYCODE_H=36]="KEYCODE_H",e[e.KEYCODE_I=37]="KEYCODE_I",e[e.KEYCODE_J=38]="KEYCODE_J",e[e.KEYCODE_K=39]="KEYCODE_K",e[e.KEYCODE_L=40]="KEYCODE_L",e[e.KEYCODE_M=41]="KEYCODE_M",e[e.KEYCODE_N=42]="KEYCODE_N",e[e.KEYCODE_O=43]="KEYCODE_O",e[e.KEYCODE_P=44]="KEYCODE_P",e[e.KEYCODE_Q=45]="KEYCODE_Q",e[e.KEYCODE_R=46]="KEYCODE_R",e[e.KEYCODE_S=47]="KEYCODE_S",e[e.KEYCODE_T=48]="KEYCODE_T",e[e.KEYCODE_U=49]="KEYCODE_U",e[e.KEYCODE_V=50]="KEYCODE_V",e[e.KEYCODE_W=51]="KEYCODE_W",e[e.KEYCODE_X=52]="KEYCODE_X",e[e.KEYCODE_Y=53]="KEYCODE_Y",e[e.KEYCODE_Z=54]="KEYCODE_Z",e[e.KEYCODE_COMMA=55]="KEYCODE_COMMA",e[e.KEYCODE_PERIOD=56]="KEYCODE_PERIOD",e[e.KEYCODE_ALT_LEFT=57]="KEYCODE_ALT_LEFT",e[e.KEYCODE_ALT_RIGHT=58]="KEYCODE_ALT_RIGHT",e[e.KEYCODE_SHIFT_LEFT=59]="KEYCODE_SHIFT_LEFT",e[e.KEYCODE_SHIFT_RIGHT=60]="KEYCODE_SHIFT_RIGHT",e[e.KEYCODE_TAB=61]="KEYCODE_TAB",e[e.KEYCODE_SPACE=62]="KEYCODE_SPACE",e[e.KEYCODE_SYM=63]="KEYCODE_SYM",e[e.KEYCODE_EXPLORER=64]="KEYCODE_EXPLORER",e[e.KEYCODE_ENVELOPE=65]="KEYCODE_ENVELOPE",e[e.KEYCODE_ENTER=66]="KEYCODE_ENTER",e[e.KEYCODE_DEL=67]="KEYCODE_DEL",e[e.KEYCODE_GRAVE=68]="KEYCODE_GRAVE",e[e.KEYCODE_MINUS=69]="KEYCODE_MINUS",e[e.KEYCODE_EQUALS=70]="KEYCODE_EQUALS",e[e.KEYCODE_LEFT_BRACKET=71]="KEYCODE_LEFT_BRACKET",e[e.KEYCODE_RIGHT_BRACKET=72]="KEYCODE_RIGHT_BRACKET",e[e.KEYCODE_BACKSLASH=73]="KEYCODE_BACKSLASH",e[e.KEYCODE_SEMICOLON=74]="KEYCODE_SEMICOLON",e[e.KEYCODE_APOSTROPHE=75]="KEYCODE_APOSTROPHE",e[e.KEYCODE_SLASH=76]="KEYCODE_SLASH",e[e.KEYCODE_AT=77]="KEYCODE_AT",e[e.KEYCODE_NUM=78]="KEYCODE_NUM",e[e.KEYCODE_HEADSETHOOK=79]="KEYCODE_HEADSETHOOK",e[e.KEYCODE_FOCUS=80]="KEYCODE_FOCUS",e[e.KEYCODE_PLUS=81]="KEYCODE_PLUS",e[e.KEYCODE_MENU=82]="KEYCODE_MENU",e[e.KEYCODE_NOTIFICATION=83]="KEYCODE_NOTIFICATION",e[e.KEYCODE_SEARCH=84]="KEYCODE_SEARCH",e[e.KEYCODE_MEDIA_PLAY_PAUSE=85]="KEYCODE_MEDIA_PLAY_PAUSE",e[e.KEYCODE_MEDIA_STOP=86]="KEYCODE_MEDIA_STOP",e[e.KEYCODE_MEDIA_NEXT=87]="KEYCODE_MEDIA_NEXT",e[e.KEYCODE_MEDIA_PREVIOUS=88]="KEYCODE_MEDIA_PREVIOUS",e[e.KEYCODE_MEDIA_REWIND=89]="KEYCODE_MEDIA_REWIND",e[e.KEYCODE_MEDIA_FAST_FORWARD=90]="KEYCODE_MEDIA_FAST_FORWARD",e[e.KEYCODE_MUTE=91]="KEYCODE_MUTE",e[e.KEYCODE_PAGE_UP=92]="KEYCODE_PAGE_UP",e[e.KEYCODE_PAGE_DOWN=93]="KEYCODE_PAGE_DOWN",e[e.KEYCODE_PICTSYMBOLS=94]="KEYCODE_PICTSYMBOLS",e[e.KEYCODE_SWITCH_CHARSET=95]="KEYCODE_SWITCH_CHARSET",e[e.KEYCODE_BUTTON_A=96]="KEYCODE_BUTTON_A",e[e.KEYCODE_BUTTON_B=97]="KEYCODE_BUTTON_B",e[e.KEYCODE_BUTTON_C=98]="KEYCODE_BUTTON_C",e[e.KEYCODE_BUTTON_X=99]="KEYCODE_BUTTON_X",e[e.KEYCODE_BUTTON_Y=100]="KEYCODE_BUTTON_Y",e[e.KEYCODE_BUTTON_Z=101]="KEYCODE_BUTTON_Z",e[e.KEYCODE_BUTTON_L1=102]="KEYCODE_BUTTON_L1",e[e.KEYCODE_BUTTON_R1=103]="KEYCODE_BUTTON_R1",e[e.KEYCODE_BUTTON_L2=104]="KEYCODE_BUTTON_L2",e[e.KEYCODE_BUTTON_R2=105]="KEYCODE_BUTTON_R2",e[e.KEYCODE_BUTTON_THUMBL=106]="KEYCODE_BUTTON_THUMBL",e[e.KEYCODE_BUTTON_THUMBR=107]="KEYCODE_BUTTON_THUMBR",e[e.KEYCODE_BUTTON_START=108]="KEYCODE_BUTTON_START",e[e.KEYCODE_BUTTON_SELECT=109]="KEYCODE_BUTTON_SELECT",e[e.KEYCODE_BUTTON_MODE=110]="KEYCODE_BUTTON_MODE",e[e.KEYCODE_ESCAPE=111]="KEYCODE_ESCAPE",e[e.KEYCODE_FORWARD_DEL=112]="KEYCODE_FORWARD_DEL",e[e.KEYCODE_CTRL_LEFT=113]="KEYCODE_CTRL_LEFT",e[e.KEYCODE_CTRL_RIGHT=114]="KEYCODE_CTRL_RIGHT",e[e.KEYCODE_CAPS_LOCK=115]="KEYCODE_CAPS_LOCK",e[e.KEYCODE_SCROLL_LOCK=116]="KEYCODE_SCROLL_LOCK",e[e.KEYCODE_META_LEFT=117]="KEYCODE_META_LEFT",e[e.KEYCODE_META_RIGHT=118]="KEYCODE_META_RIGHT",e[e.KEYCODE_FUNCTION=119]="KEYCODE_FUNCTION",e[e.KEYCODE_SYSRQ=120]="KEYCODE_SYSRQ",e[e.KEYCODE_BREAK=121]="KEYCODE_BREAK",e[e.KEYCODE_MOVE_HOME=122]="KEYCODE_MOVE_HOME",e[e.KEYCODE_MOVE_END=123]="KEYCODE_MOVE_END",e[e.KEYCODE_INSERT=124]="KEYCODE_INSERT",e[e.KEYCODE_FORWARD=125]="KEYCODE_FORWARD",e[e.KEYCODE_MEDIA_PLAY=126]="KEYCODE_MEDIA_PLAY",e[e.KEYCODE_MEDIA_PAUSE=127]="KEYCODE_MEDIA_PAUSE",e[e.KEYCODE_MEDIA_CLOSE=128]="KEYCODE_MEDIA_CLOSE",e[e.KEYCODE_MEDIA_EJECT=129]="KEYCODE_MEDIA_EJECT",e[e.KEYCODE_MEDIA_RECORD=130]="KEYCODE_MEDIA_RECORD",e[e.KEYCODE_F1=131]="KEYCODE_F1",e[e.KEYCODE_F2=132]="KEYCODE_F2",e[e.KEYCODE_F3=133]="KEYCODE_F3",e[e.KEYCODE_F4=134]="KEYCODE_F4",e[e.KEYCODE_F5=135]="KEYCODE_F5",e[e.KEYCODE_F6=136]="KEYCODE_F6",e[e.KEYCODE_F7=137]="KEYCODE_F7",e[e.KEYCODE_F8=138]="KEYCODE_F8",e[e.KEYCODE_F9=139]="KEYCODE_F9",e[e.KEYCODE_F10=140]="KEYCODE_F10",e[e.KEYCODE_F11=141]="KEYCODE_F11",e[e.KEYCODE_F12=142]="KEYCODE_F12",e[e.KEYCODE_NUM_LOCK=143]="KEYCODE_NUM_LOCK",e[e.KEYCODE_NUMPAD_0=144]="KEYCODE_NUMPAD_0",e[e.KEYCODE_NUMPAD_1=145]="KEYCODE_NUMPAD_1",e[e.KEYCODE_NUMPAD_2=146]="KEYCODE_NUMPAD_2",e[e.KEYCODE_NUMPAD_3=147]="KEYCODE_NUMPAD_3",e[e.KEYCODE_NUMPAD_4=148]="KEYCODE_NUMPAD_4",e[e.KEYCODE_NUMPAD_5=149]="KEYCODE_NUMPAD_5",e[e.KEYCODE_NUMPAD_6=150]="KEYCODE_NUMPAD_6",e[e.KEYCODE_NUMPAD_7=151]="KEYCODE_NUMPAD_7",e[e.KEYCODE_NUMPAD_8=152]="KEYCODE_NUMPAD_8",e[e.KEYCODE_NUMPAD_9=153]="KEYCODE_NUMPAD_9",e[e.KEYCODE_NUMPAD_DIVIDE=154]="KEYCODE_NUMPAD_DIVIDE",e[e.KEYCODE_NUMPAD_MULTIPLY=155]="KEYCODE_NUMPAD_MULTIPLY",e[e.KEYCODE_NUMPAD_SUBTRACT=156]="KEYCODE_NUMPAD_SUBTRACT",e[e.KEYCODE_NUMPAD_ADD=157]="KEYCODE_NUMPAD_ADD",e[e.KEYCODE_NUMPAD_DOT=158]="KEYCODE_NUMPAD_DOT",e[e.KEYCODE_NUMPAD_COMMA=159]="KEYCODE_NUMPAD_COMMA",e[e.KEYCODE_NUMPAD_ENTER=160]="KEYCODE_NUMPAD_ENTER",e[e.KEYCODE_NUMPAD_EQUALS=161]="KEYCODE_NUMPAD_EQUALS",e[e.KEYCODE_NUMPAD_LEFT_PAREN=162]="KEYCODE_NUMPAD_LEFT_PAREN",e[e.KEYCODE_NUMPAD_RIGHT_PAREN=163]="KEYCODE_NUMPAD_RIGHT_PAREN",e[e.KEYCODE_VOLUME_MUTE=164]="KEYCODE_VOLUME_MUTE",e[e.KEYCODE_INFO=165]="KEYCODE_INFO",e[e.KEYCODE_CHANNEL_UP=166]="KEYCODE_CHANNEL_UP",e[e.KEYCODE_CHANNEL_DOWN=167]="KEYCODE_CHANNEL_DOWN",e[e.KEYCODE_ZOOM_IN=168]="KEYCODE_ZOOM_IN",e[e.KEYCODE_ZOOM_OUT=169]="KEYCODE_ZOOM_OUT",e[e.KEYCODE_TV=170]="KEYCODE_TV",e[e.KEYCODE_WINDOW=171]="KEYCODE_WINDOW",e[e.KEYCODE_GUIDE=172]="KEYCODE_GUIDE",e[e.KEYCODE_DVR=173]="KEYCODE_DVR",e[e.KEYCODE_BOOKMARK=174]="KEYCODE_BOOKMARK",e[e.KEYCODE_CAPTIONS=175]="KEYCODE_CAPTIONS",e[e.KEYCODE_SETTINGS=176]="KEYCODE_SETTINGS",e[e.KEYCODE_TV_POWER=177]="KEYCODE_TV_POWER",e[e.KEYCODE_TV_INPUT=178]="KEYCODE_TV_INPUT",e[e.KEYCODE_STB_POWER=179]="KEYCODE_STB_POWER",e[e.KEYCODE_STB_INPUT=180]="KEYCODE_STB_INPUT",e[e.KEYCODE_AVR_POWER=181]="KEYCODE_AVR_POWER",e[e.KEYCODE_AVR_INPUT=182]="KEYCODE_AVR_INPUT",e[e.KEYCODE_PROG_RED=183]="KEYCODE_PROG_RED",e[e.KEYCODE_PROG_GREEN=184]="KEYCODE_PROG_GREEN",e[e.KEYCODE_PROG_YELLOW=185]="KEYCODE_PROG_YELLOW",e[e.KEYCODE_PROG_BLUE=186]="KEYCODE_PROG_BLUE",e[e.KEYCODE_APP_SWITCH=187]="KEYCODE_APP_SWITCH",e[e.KEYCODE_BUTTON_1=188]="KEYCODE_BUTTON_1",e[e.KEYCODE_BUTTON_2=189]="KEYCODE_BUTTON_2",e[e.KEYCODE_BUTTON_3=190]="KEYCODE_BUTTON_3",e[e.KEYCODE_BUTTON_4=191]="KEYCODE_BUTTON_4",e[e.KEYCODE_BUTTON_5=192]="KEYCODE_BUTTON_5",e[e.KEYCODE_BUTTON_6=193]="KEYCODE_BUTTON_6",e[e.KEYCODE_BUTTON_7=194]="KEYCODE_BUTTON_7",e[e.KEYCODE_BUTTON_8=195]="KEYCODE_BUTTON_8",e[e.KEYCODE_BUTTON_9=196]="KEYCODE_BUTTON_9",e[e.KEYCODE_BUTTON_10=197]="KEYCODE_BUTTON_10",e[e.KEYCODE_BUTTON_11=198]="KEYCODE_BUTTON_11",e[e.KEYCODE_BUTTON_12=199]="KEYCODE_BUTTON_12",e[e.KEYCODE_BUTTON_13=200]="KEYCODE_BUTTON_13",e[e.KEYCODE_BUTTON_14=201]="KEYCODE_BUTTON_14",e[e.KEYCODE_BUTTON_15=202]="KEYCODE_BUTTON_15",e[e.KEYCODE_BUTTON_16=203]="KEYCODE_BUTTON_16",e[e.KEYCODE_LANGUAGE_SWITCH=204]="KEYCODE_LANGUAGE_SWITCH",e[e.KEYCODE_MANNER_MODE=205]="KEYCODE_MANNER_MODE",e[e.KEYCODE_3D_MODE=206]="KEYCODE_3D_MODE",e[e.KEYCODE_CONTACTS=207]="KEYCODE_CONTACTS",e[e.KEYCODE_CALENDAR=208]="KEYCODE_CALENDAR",e[e.KEYCODE_MUSIC=209]="KEYCODE_MUSIC",e[e.KEYCODE_CALCULATOR=210]="KEYCODE_CALCULATOR",e[e.KEYCODE_ZENKAKU_HANKAKU=211]="KEYCODE_ZENKAKU_HANKAKU",e[e.KEYCODE_EISU=212]="KEYCODE_EISU",e[e.KEYCODE_MUHENKAN=213]="KEYCODE_MUHENKAN",e[e.KEYCODE_HENKAN=214]="KEYCODE_HENKAN",e[e.KEYCODE_KATAKANA_HIRAGANA=215]="KEYCODE_KATAKANA_HIRAGANA",e[e.KEYCODE_YEN=216]="KEYCODE_YEN",e[e.KEYCODE_RO=217]="KEYCODE_RO",e[e.KEYCODE_KANA=218]="KEYCODE_KANA",e[e.KEYCODE_ASSIST=219]="KEYCODE_ASSIST",e[e.KEYCODE_BRIGHTNESS_DOWN=220]="KEYCODE_BRIGHTNESS_DOWN",e[e.KEYCODE_BRIGHTNESS_UP=221]="KEYCODE_BRIGHTNESS_UP",e[e.KEYCODE_MEDIA_AUDIO_TRACK=222]="KEYCODE_MEDIA_AUDIO_TRACK",e[e.KEYCODE_SLEEP=223]="KEYCODE_SLEEP",e[e.KEYCODE_WAKEUP=224]="KEYCODE_WAKEUP",e[e.KEYCODE_PAIRING=225]="KEYCODE_PAIRING",e[e.KEYCODE_MEDIA_TOP_MENU=226]="KEYCODE_MEDIA_TOP_MENU",e[e.KEYCODE_11=227]="KEYCODE_11",e[e.KEYCODE_12=228]="KEYCODE_12",e[e.KEYCODE_LAST_CHANNEL=229]="KEYCODE_LAST_CHANNEL",e[e.KEYCODE_TV_DATA_SERVICE=230]="KEYCODE_TV_DATA_SERVICE",e[e.KEYCODE_VOICE_ASSIST=231]="KEYCODE_VOICE_ASSIST",e[e.KEYCODE_TV_RADIO_SERVICE=232]="KEYCODE_TV_RADIO_SERVICE",e[e.KEYCODE_TV_TELETEXT=233]="KEYCODE_TV_TELETEXT",e[e.KEYCODE_TV_NUMBER_ENTRY=234]="KEYCODE_TV_NUMBER_ENTRY",e[e.KEYCODE_TV_TERRESTRIAL_ANALOG=235]="KEYCODE_TV_TERRESTRIAL_ANALOG",e[e.KEYCODE_TV_TERRESTRIAL_DIGITAL=236]="KEYCODE_TV_TERRESTRIAL_DIGITAL",e[e.KEYCODE_TV_SATELLITE=237]="KEYCODE_TV_SATELLITE",e[e.KEYCODE_TV_SATELLITE_BS=238]="KEYCODE_TV_SATELLITE_BS",e[e.KEYCODE_TV_SATELLITE_CS=239]="KEYCODE_TV_SATELLITE_CS",e[e.KEYCODE_TV_SATELLITE_SERVICE=240]="KEYCODE_TV_SATELLITE_SERVICE",e[e.KEYCODE_TV_NETWORK=241]="KEYCODE_TV_NETWORK",e[e.KEYCODE_TV_ANTENNA_CABLE=242]="KEYCODE_TV_ANTENNA_CABLE",e[e.KEYCODE_TV_INPUT_HDMI_1=243]="KEYCODE_TV_INPUT_HDMI_1",e[e.KEYCODE_TV_INPUT_HDMI_2=244]="KEYCODE_TV_INPUT_HDMI_2",e[e.KEYCODE_TV_INPUT_HDMI_3=245]="KEYCODE_TV_INPUT_HDMI_3",e[e.KEYCODE_TV_INPUT_HDMI_4=246]="KEYCODE_TV_INPUT_HDMI_4",e[e.KEYCODE_TV_INPUT_COMPOSITE_1=247]="KEYCODE_TV_INPUT_COMPOSITE_1",e[e.KEYCODE_TV_INPUT_COMPOSITE_2=248]="KEYCODE_TV_INPUT_COMPOSITE_2",e[e.KEYCODE_TV_INPUT_COMPONENT_1=249]="KEYCODE_TV_INPUT_COMPONENT_1",e[e.KEYCODE_TV_INPUT_COMPONENT_2=250]="KEYCODE_TV_INPUT_COMPONENT_2",e[e.KEYCODE_TV_INPUT_VGA_1=251]="KEYCODE_TV_INPUT_VGA_1",e[e.KEYCODE_TV_AUDIO_DESCRIPTION=252]="KEYCODE_TV_AUDIO_DESCRIPTION",e[e.KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP=253]="KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP",e[e.KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN=254]="KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN",e[e.KEYCODE_TV_ZOOM_MODE=255]="KEYCODE_TV_ZOOM_MODE",e[e.KEYCODE_TV_CONTENTS_MENU=256]="KEYCODE_TV_CONTENTS_MENU",e[e.KEYCODE_TV_MEDIA_CONTEXT_MENU=257]="KEYCODE_TV_MEDIA_CONTEXT_MENU",e[e.KEYCODE_TV_TIMER_PROGRAMMING=258]="KEYCODE_TV_TIMER_PROGRAMMING",e[e.KEYCODE_HELP=259]="KEYCODE_HELP",e[e.KEYCODE_NAVIGATE_PREVIOUS=260]="KEYCODE_NAVIGATE_PREVIOUS",e[e.KEYCODE_NAVIGATE_NEXT=261]="KEYCODE_NAVIGATE_NEXT",e[e.KEYCODE_NAVIGATE_IN=262]="KEYCODE_NAVIGATE_IN",e[e.KEYCODE_NAVIGATE_OUT=263]="KEYCODE_NAVIGATE_OUT",e[e.KEYCODE_STEM_PRIMARY=264]="KEYCODE_STEM_PRIMARY",e[e.KEYCODE_STEM_1=265]="KEYCODE_STEM_1",e[e.KEYCODE_STEM_2=266]="KEYCODE_STEM_2",e[e.KEYCODE_STEM_3=267]="KEYCODE_STEM_3",e[e.KEYCODE_DPAD_UP_LEFT=268]="KEYCODE_DPAD_UP_LEFT",e[e.KEYCODE_DPAD_DOWN_LEFT=269]="KEYCODE_DPAD_DOWN_LEFT",e[e.KEYCODE_DPAD_UP_RIGHT=270]="KEYCODE_DPAD_UP_RIGHT",e[e.KEYCODE_DPAD_DOWN_RIGHT=271]="KEYCODE_DPAD_DOWN_RIGHT",e[e.KEYCODE_MEDIA_SKIP_FORWARD=272]="KEYCODE_MEDIA_SKIP_FORWARD",e[e.KEYCODE_MEDIA_SKIP_BACKWARD=273]="KEYCODE_MEDIA_SKIP_BACKWARD",e[e.KEYCODE_MEDIA_STEP_FORWARD=274]="KEYCODE_MEDIA_STEP_FORWARD",e[e.KEYCODE_MEDIA_STEP_BACKWARD=275]="KEYCODE_MEDIA_STEP_BACKWARD",e[e.KEYCODE_SOFT_SLEEP=276]="KEYCODE_SOFT_SLEEP",e[e.KEYCODE_CUT=277]="KEYCODE_CUT",e[e.KEYCODE_COPY=278]="KEYCODE_COPY",e[e.KEYCODE_PASTE=279]="KEYCODE_PASTE",e[e.KEYCODE_SYSTEM_NAVIGATION_UP=280]="KEYCODE_SYSTEM_NAVIGATION_UP",e[e.KEYCODE_SYSTEM_NAVIGATION_DOWN=281]="KEYCODE_SYSTEM_NAVIGATION_DOWN",e[e.KEYCODE_SYSTEM_NAVIGATION_LEFT=282]="KEYCODE_SYSTEM_NAVIGATION_LEFT",e[e.KEYCODE_SYSTEM_NAVIGATION_RIGHT=283]="KEYCODE_SYSTEM_NAVIGATION_RIGHT",e[e.KEYCODE_ALL_APPS=284]="KEYCODE_ALL_APPS",e[e.KEYCODE_REFRESH=285]="KEYCODE_REFRESH",e[e.KEYCODE_THUMBS_UP=286]="KEYCODE_THUMBS_UP",e[e.KEYCODE_THUMBS_DOWN=287]="KEYCODE_THUMBS_DOWN",e[e.KEYCODE_PROFILE_SWITCH=288]="KEYCODE_PROFILE_SWITCH"}(r||(t.KeyCodes=r={}))},3120:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(2203));class a extends i.default.Transform{constructor(e={}){super(e),this.autoDetect=e.autoDetect||!1,this.transformNeeded=!0,this.skipBytes=0}_nullTransform(e,t,r){this.push(e),r()}_transform(e,t,r){if(this.autoDetect&&(10===e[0]?(this.transformNeeded=!1,this.skipBytes=1):this.skipBytes=2,this.autoDetect=!1),this.skipBytes){const t=Math.min(e.length,this.skipBytes);e=e.slice(t),this.skipBytes-=t}if(!e.length)return r();if(!this.transformNeeded)return this._nullTransform(e,t,r);let n=0,i=0;this.savedR&&(10!==e[0]&&this.push(this.savedR),this.savedR=void 0);const a=e.length-1;for(;i<=a;){if(13===e[i]){if(i===a){this.savedR=e.slice(a);break}10===e[i+1]&&(this.push(e.slice(n,i)),n=i+1)}i+=1}i!==n&&this.push(e.slice(n,i)),r()}_flush(e){this.savedR&&this.push(this.savedR),e()}}t.default=a},8247:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(1007)),a=n(r(9112));class s extends Error{constructor(e){super(`Failure: '${e}'`),Object.setPrototypeOf(this,s.prototype),this.name="FailError",Error.captureStackTrace(this,s)}}class o extends Error{constructor(e){super(`Premature end of stream, needed ${e} more bytes`),Object.setPrototypeOf(this,o.prototype),this.name="PrematureEOFError",this.missingBytes=e,Error.captureStackTrace(this,o)}}class c extends Error{constructor(e,t){super(`Unexpected '${e}', was expecting ${t}`),this.unexpected=e,this.expected=t,Object.setPrototypeOf(this,c.prototype),this.name="UnexpectedDataError",Error.captureStackTrace(this,c)}}class u extends Error{constructor(){super("Socket timeout reached."),Object.setPrototypeOf(this,u.prototype),this.name="TimeoutError",Error.captureStackTrace(this,u)}}i.default.config({cancellation:!0});class l{constructor(e){this.stream=e,this.ended=!1}end(){if(this.ended)return i.default.resolve(!0);let e,t,r,n;return new i.default(((i,a,s)=>{e=()=>{for(;this.stream.read(););},t=function(e){return a(e)},r=()=>(this.ended=!0,i(!0)),n=()=>(this.stream.end(),a(new l.TimeoutError)),this.stream.on("readable",e),this.stream.on("error",t),this.stream.on("end",r),this.stream.on("timeout",n),this.stream.read(0),this.stream.end(),s((()=>{}))})).finally((()=>{this.stream.removeListener("readable",e),this.stream.removeListener("error",t),this.stream.removeListener("end",r),this.stream.removeListener("timeout",n)}))}raw(){return this.stream}readAll(){let e,t,r,n,a=Buffer.alloc(0);return new i.default(((i,s,o)=>{e=()=>{let e;for(;e=this.stream.read();)a=Buffer.concat([a,e]);if(this.ended)return i(a)},t=function(e){return s(e)},r=()=>(this.ended=!0,i(a)),n=()=>(this.stream.end(),s(new l.TimeoutError)),this.stream.on("readable",e),this.stream.on("error",t),this.stream.on("end",r),this.stream.on("timeout",n),e(),o((()=>{}))})).finally((()=>{this.stream.removeListener("readable",e),this.stream.removeListener("error",t),this.stream.removeListener("end",r),this.stream.removeListener("timeout",n)}))}readAscii(e){return this.readBytes(e).then((e=>e.toString("ascii")))}readBytes(e){let t,r,n,a;return new i.default(((i,s)=>{t=()=>{if(!e)return i(Buffer.alloc(0));{const t=this.stream.read(e);if(t&&0===(e-=t.length))return i(t);if(this.ended)return s(new l.PrematureEOFError(e))}},n=()=>(this.ended=!0,s(new l.PrematureEOFError(e))),a=()=>(this.stream.end(),s(new l.TimeoutError)),r=e=>s(e),this.stream.on("readable",t),this.stream.on("error",r),this.stream.on("end",n),this.stream.on("timeout",a),t()})).finally((()=>{this.stream.removeListener("readable",t),this.stream.removeListener("error",r),this.stream.removeListener("end",n),this.stream.removeListener("timeout",a)}))}readByteFlow(e,t){let r,n,a,s;return new i.default(((i,o)=>{r=()=>{if(!e)return i();{let r;for(;r=this.stream.read(e)||this.stream.read();)if(e-=r.length,t.write(r),0===e)return i();if(this.ended)return o(new l.PrematureEOFError(e))}},a=()=>(this.ended=!0,o(new l.PrematureEOFError(e))),n=function(e){return o(e)},s=()=>(this.stream.end(),o(new l.TimeoutError)),this.stream.on("readable",r),this.stream.on("error",n),this.stream.on("end",a),this.stream.on("timeout",s),r()})).finally((()=>{this.stream.removeListener("readable",r),this.stream.removeListener("error",n),this.stream.removeListener("end",a),this.stream.removeListener("timeout",s)}))}readError(){return this.readValue().then((function(e){throw new l.FailError(e.toString())}))}readValue(){return this.readAscii(4).then((e=>{const t=a.default.decodeLength(e);return this.readBytes(t)}))}readUntil(e){let t=Buffer.alloc(0);const r=()=>this.readBytes(1).then((function(n){return n[0]===e?t:(t=Buffer.concat([t,n]),r())}));return r()}searchLine(e){return this.readLine().then((t=>{const r=e.exec(t.toString());return r||this.searchLine(e)}))}readLine(){return this.readUntil(10).then((function(e){return 13===e[e.length-1]?e.slice(0,-1):e}))}unexpected(e,t){return i.default.reject(new l.UnexpectedDataError(e,t))}}l.FailError=s,l.PrematureEOFError=o,l.UnexpectedDataError=c,l.TimeoutError=u,t.default=l},8109:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=r(4434),a=n(r(8247)),s=n(r(1007)),o=/^cpu[0-9]+ .*$/gm,c=/\ +/g;class u extends i.EventEmitter{constructor(e){super(),this.sync=e,this.interval=1e3,this.stats=this._emptyStats(),this._ignore={},this._timer=setInterval((()=>this.update()),this.interval),this.update()}end(){clearInterval(this._timer),this.sync&&(this.sync.end(),this.sync=void 0)}update(){if(!this.sync)throw Error("Closed");return new a.default(this.sync.pull("/proc/stat")).readAll().then((e=>this._parse(e.toString()))).catch((e=>(this._error(e),s.default.reject(e))))}_parse(e){let t,r;const n=this._emptyStats();for(;t=o.exec(e);){const e=t[0],i=e.split(c),a=i.shift();if(this._ignore[a]===e)continue;let s=0;for(let e=0,t=i.length;e<t;e++)r=i[e],s+=+r;n.cpus[a]={line:e,user:+i[0]||0,nice:+i[1]||0,system:+i[2]||0,idle:+i[3]||0,iowait:+i[4]||0,irq:+i[5]||0,softirq:+i[6]||0,steal:+i[7]||0,guest:+i[8]||0,guestnice:+i[9]||0,total:s}}return this._set(n)}_set(e){const t={};let r=!1;const n=e.cpus;for(const i in n){const a=n[i],s=this.stats.cpus[i];if(!s)continue;const o=a.total-s.total;if(o>0){r=!0;const e=100/o;t[i]={user:Math.floor(e*(a.user-s.user)),nice:Math.floor(e*(a.nice-s.nice)),system:Math.floor(e*(a.system-s.system)),idle:Math.floor(e*(a.idle-s.idle)),iowait:Math.floor(e*(a.iowait-s.iowait)),irq:Math.floor(e*(a.irq-s.irq)),softirq:Math.floor(e*(a.softirq-s.softirq)),steal:Math.floor(e*(a.steal-s.steal)),guest:Math.floor(e*(a.guest-s.guest)),guestnice:Math.floor(e*(a.guestnice-s.guestnice)),total:100}}else this._ignore[i]=a.line,delete e.cpus[i]}return r&&this.emit("load",t),this.stats=e}_error(e){return this.emit("error",e)}_emptyStats(){return{cpus:{}}}}e.exports=u},9112:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{static decodeLength(e){return parseInt(e,16)}static encodeLength(e){return e.toString(16).padStart(4,"0").toUpperCase()}static encodeData(e){Buffer.isBuffer(e)||(e=Buffer.from(e));const t=r.encodeLength(e.length);return Buffer.concat([Buffer.from(t),e])}}r.OKAY="OKAY",r.FAIL="FAIL",r.STAT="STAT",r.STA2="STA2",r.LIST="LIST",r.DENT="DENT",r.RECV="RECV",r.DATA="DATA",r.DONE="DONE",r.SEND="SEND",r.QUIT="QUIT",t.default=r},5423:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(r(9896)),c=a(r(6928)),u=s(r(1007)),l=r(4434),p=s(r(5753)),d=s(r(8247)),f=s(r(9112)),h=s(r(6467)),m=s(r(4496)),v=s(r(5129)),g=s(r(8310)),y=(0,p.default)("adb:sync");class E extends l.EventEmitter{static temp(e){return`/data/local/tmp/${c.basename(e)}`}constructor(e){super(),this.connection=e,this.parser=this.connection.parser}stat(e,t){return this._sendCommandWithArg(f.default.STAT,e),this.parser.readAscii(4).then((t=>{switch(t){case f.default.STAT:return this.parser.readBytes(12).then((t=>{const r=t.readUInt32LE(0),n=t.readUInt32LE(4),i=t.readUInt32LE(8);return 0===r?this._enoent(e):new h.default(r,BigInt(n),i)}));case f.default.FAIL:return this._readError();default:return this.parser.unexpected(t,"STAT or FAIL")}})).nodeify(t)}sta2(e,t){return this._sendCommandWithArg(f.default.STA2,e),this.parser.readAscii(4).then((t=>{switch(t){case f.default.STA2:return this.parser.readBytes(68).then((t=>{const r=t.readUInt32LE(20),n=t.readBigUInt64LE(36),i=t.readBigUInt64LE(52);return 0===r?this._enoent(e):new h.default(r,n,Number(i))}));case f.default.FAIL:return this._readError();default:return this.parser.unexpected(t,"STA2 or FAIL")}})).nodeify(t)}readdir(e,t){const r=[],n=()=>this.parser.readAscii(4).then((e=>{switch(e){case f.default.DENT:return this.parser.readBytes(16).then((e=>{const t=e.readUInt32LE(0),i=e.readUInt32LE(4),a=e.readUInt32LE(8),s=e.readUInt32LE(12);return this.parser.readBytes(s).then((function(e){const s=e.toString();return"."!==s&&".."!==s&&r.push(new m.default(s,t,i,a)),n()}))}));case f.default.DONE:return this.parser.readBytes(16).then((function(){return r}));case f.default.FAIL:return this._readError();default:return this.parser.unexpected(e,"DENT, DONE or FAIL")}}));return this._sendCommandWithArg(f.default.LIST,e),n().nodeify(t)}push(e,t,r){return"string"==typeof e?this.pushFile(e,t,r):this.pushStream(e,t,r)}pushFile(e,t,r=420){return r||(r=420),this.pushStream(o.createReadStream(e),t,r)}pushStream(e,t,r=420){return r|=h.default.S_IFREG,this._sendCommandWithArg(f.default.SEND,`${t},${r}`),this._writeData(e,Math.floor(Date.now()/1e3))}pull(e){return this._sendCommandWithArg(f.default.RECV,`${e}`),this._readData()}end(){return this.connection.end(),this}tempFile(e){return E.temp(e)}_writeData(e,t){const r=new v.default,n=(()=>{let n,i,a,s,o=u.default.defer();const c=u.default.resolve();a=()=>{c.then((()=>(this._sendCommandWithLength(f.default.DONE,t),o.resolve())))},e.on("end",a);const l=()=>{o=u.default.defer();const e=()=>{o.resolve()};return this.connection.on("drain",e),o.promise.finally((()=>this.connection.removeListener("drain",e)))},p=()=>r.pop(),d=()=>{let t;return(t=e.read(65536)||e.read())?(this._sendCommandWithLength(f.default.DATA,t.length),r.push(t.length),this.connection.write(t,p)?d():l().then(d)):u.default.resolve()};return n=()=>c.then(d),e.on("readable",n),s=e=>o.reject(e),e.on("error",s),i=t=>{e.destroy(t),this.connection.end(),o.reject(t)},this.connection.on("error",i),o.promise.finally((()=>(e.removeListener("end",a),e.removeListener("readable",n),e.removeListener("error",s),this.connection.removeListener("error",i),c.cancel())))})().catch(u.default.CancellationError,(()=>this.connection.end())).catch((function(e){return r.emit("error",e),i.cancel()})),i=(()=>this.parser.readAscii(4).then((e=>{switch(e){case f.default.OKAY:return this.parser.readBytes(4).then((function(){return!0}));case f.default.FAIL:return this._readError();default:return this.parser.unexpected(e,"OKAY or FAIL")}})))().catch(u.default.CancellationError,(()=>!0)).catch((e=>(r.emit("error",e),n.cancel()))).finally((()=>r.end()));return r.on("cancel",(()=>{n.cancel(),i.cancel()})),r}_readData(){const e=new g.default,t=t=>{e.removeListener("cancel",i);let r=e.end();return t?t():r},r=()=>this.parser.readAscii(4).then((n=>{switch(n){case f.default.DATA:return this.parser.readBytes(4).then((t=>{const n=t.readUInt32LE(0);return this.parser.readByteFlow(n,e).then((()=>{r()}))}));case f.default.DONE:return this.parser.readBytes(4).then((function(){return t()}));case f.default.FAIL:return t((()=>this._readError()));default:return t((()=>this.parser.unexpected(n,"DATA, DONE or FAIL")))}})),n=r().catch(u.default.CancellationError,(()=>this.connection.end())).catch((t=>e.emit("error",t))),i=()=>n.cancel();return e.on("cancel",i),e}_readError(){return this.parser.readBytes(4).then((e=>this.parser.readBytes(e.readUInt32LE(0)).then((e=>u.default.reject(new d.default.FailError(e.toString())))))).finally((()=>this.parser.end()))}_sendCommandWithLength(e,t){e!==f.default.DATA&&y(e);const r=Buffer.alloc(e.length+4);return r.write(e,0,e.length),r.writeUInt32LE(t,e.length),this.connection.write(r)}_sendCommandWithArg(e,t){y(`${e} ${t}`);const r=Buffer.byteLength(t,"utf-8"),n=Buffer.alloc(e.length+4+r);let i=0;return n.write(e,i,e.length),i+=e.length,n.writeUInt32LE(r,i),i+=4,n.write(t,i),this.connection.write(n)}_enoent(e){const t=new Error(`ENOENT, no such file or directory '${e}'`);return t.errno=34,t.code="ENOENT",t.path=e,u.default.reject(t)}}t.default=E},4496:function(e,t,r){"use strict";const n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r(6467));class i extends n.default{constructor(e,t,r,n){super(t,BigInt(r),n),this.name=e}toString(){return this.name}}e.exports=i},8310:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2203);class i extends n.Stream.PassThrough{constructor(){super(...arguments),this.stats={bytesTransferred:0}}cancel(){return this.emit("cancel")}write(e,t,r){return this.stats.bytesTransferred+=e.length,this.emit("progress",this.stats),"function"==typeof t?super.write(e,t):super.write(e,t,r)}}t.default=i},5129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4434);class i extends n.EventEmitter{constructor(){super(...arguments),this._stack=[],this.stats={bytesTransferred:0}}cancel(){return this.emit("cancel")}push(e){return this._stack.push(e)}pop(){const e=this._stack.pop();return e&&(this.stats.bytesTransferred+=e),this.emit("progress",this.stats)}end(){return this.emit("end")}}t.default=i},6467:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const s=a(r(9896));class o extends s.Stats{constructor(e,t,r){super(),this.mode=Number(e),this.size=Number(t),this.sizeBig=t,this.mtime=new Date(1e3*r)}}o.S_IFMT=61440,o.S_IFSOCK=49152,o.S_IFLNK=40960,o.S_IFREG=32768,o.S_IFBLK=24576,o.S_IFDIR=16384,o.S_IFCHR=8192,o.S_IFIFO=4096,o.S_ISUID=2048,o.S_ISGID=1024,o.S_ISVTX=512,o.S_IRWXU=448,o.S_IRUSR=256,o.S_IWUSR=128,o.S_IXUSR=64,o.S_IRWXG=56,o.S_IRGRP=32,t.default=o},642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{static checksum(e){let t=0;if(e)for(let r=0,n=e.length;r<n;r++){t+=e[r]}return t}static magic(e){return(4294967295^e)>>>0}static assemble(e,t,n,i){if(i){const a=Buffer.alloc(24+i.length);return a.writeUInt32LE(e,0),a.writeUInt32LE(t,4),a.writeUInt32LE(n,8),a.writeUInt32LE(i.length,12),a.writeUInt32LE(r.checksum(i),16),a.writeUInt32LE(r.magic(e),20),i.copy(a,24),a}{const i=Buffer.alloc(24);return i.writeUInt32LE(e,0),i.writeUInt32LE(t,4),i.writeUInt32LE(n,8),i.writeUInt32LE(0,12),i.writeUInt32LE(0,16),i.writeUInt32LE(r.magic(e),20),i}}static swap32(e){const t=Buffer.alloc(4);return t.writeUInt32LE(e,0),t.readUInt32BE(0)}constructor(e,t,r,n,i,a,s){this.command=e,this.arg0=t,this.arg1=r,this.length=n,this.check=i,this.magic=a,this.data=s}verifyChecksum(){return 0===this.check||this.check===r.checksum(this.data)}verifyMagic(){return this.magic===r.magic(this.command)}getType(){switch(this.command){case r.A_SYNC:return"SYNC";case r.A_CNXN:return"CNXN";case r.A_OPEN:return"OPEN";case r.A_OKAY:return"OKAY";case r.A_CLSE:return"CLSE";case r.A_WRTE:return"WRTE";case r.A_AUTH:return"AUTH";default:throw new Error("Unknown command {@command}")}}toString(){return`${this.getType()} arg0=${this.arg0} arg1=${this.arg1} length=${this.length}`}}r.A_SYNC=1129208147,r.A_CNXN=1314410051,r.A_OPEN=1313165391,r.A_OKAY=1497451343,r.A_CLSE=1163086915,r.A_WRTE=1163154007,r.A_AUTH=1213486401,t.default=r},8861:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(4434),a=n(r(642));class s extends Error{constructor(e){super(),this.packet=e,Object.setPrototypeOf(this,s.prototype),this.name="ChecksumError",this.message="Checksum mismatch",Error.captureStackTrace(this,c.ChecksumError)}}class o extends Error{constructor(e){super(),this.packet=e,Object.setPrototypeOf(this,o.prototype),this.name="MagicError",this.message="Magic value mismatch",Error.captureStackTrace(this,c.MagicError)}}class c extends i.EventEmitter{constructor(e){super(),this.stream=e,this.inBody=!1,this.stream.on("readable",this._tryRead.bind(this)),this.stream.on("error",(e=>this.emit("error",e))),this.stream.on("end",(()=>this.emit("end"))),setImmediate(this._tryRead.bind(this))}_tryRead(){for(;this._appendChunk();)for(;this.buffer;)if(this.inBody){if(!(this.buffer.length>=this.packet.length))break;if(this.packet.data=this._consume(this.packet.length),!this.packet.verifyChecksum())return void this.emit("error",new c.ChecksumError(this.packet));this.emit("packet",this.packet),this.inBody=!1}else{if(!(this.buffer.length>=24))break;const e=this._consume(24);if(this.packet=new a.default(e.readUInt32LE(0),e.readUInt32LE(4),e.readUInt32LE(8),e.readUInt32LE(12),e.readUInt32LE(16),e.readUInt32LE(20),Buffer.alloc(0)),!this.packet.verifyMagic())return void this.emit("error",new c.MagicError(this.packet));0===this.packet.length?this.emit("packet",this.packet):this.inBody=!0}}_appendChunk(){const e=this.stream.read();return e?this.buffer?this.buffer=Buffer.concat([this.buffer,e],this.buffer.length+e.length):this.buffer=e:null}_consume(e){const t=this.buffer.slice(0,e);return this.buffer=e===this.buffer.length?null:this.buffer.slice(e),t}}c.ChecksumError=s,c.MagicError=o,t.default=c},8029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e,t=1){this.max=e,this.min=t,this.now=this.min}next(){return this.now<this.max||(this.now=this.min),++this.now}}},9253:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=a(r(9278)),c=s(r(2355)),u=r(4434);class l extends u.EventEmitter{constructor(e,t,r){super(),this.client=e,this.serial=t,this.options=r,this.connections=[],this.server=o.createServer({allowHalfOpen:!0}),this.server.on("error",(e=>this.emit("error",e))),this.server.on("listening",(()=>this.emit("listening"))),this.server.on("close",(()=>this.emit("close"))),this.server.on("connection",(e=>{const t=new c.default(this.client,this.serial,e,this.options);return this.connections.push(t),t.on("error",(e=>this.emit("error",e))),t.once("end",(()=>this.connections=this.connections.filter((function(e){return e!==t})))),this.emit("connection",t)}))}listen(...e){return this.server.listen(...e),this}close(){return this.server.close(),this}end(){const e=this.connections;for(let t=0,r=e.length;t<r;t++)e[t].end();return this}}t.default=l},2723:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(5753)),a=r(4434),s=n(r(642)),o=n(r(1007)),c=n(r(9112)),u=(0,i.default)("adb:tcpusb:service");class l extends Error{constructor(e){super(),this.packet=e,Object.setPrototypeOf(this,l.prototype),this.name="PrematurePacketError",this.message="Premature packet",Error.captureStackTrace(this,d.PrematurePacketError)}}class p extends Error{constructor(){super(),Object.setPrototypeOf(this,p.prototype),this.name="LateTransportError",this.message="Late transport",Error.captureStackTrace(this,d.LateTransportError)}}class d extends a.EventEmitter{constructor(e,t,r,n,i){super(),this.client=e,this.serial=t,this.localId=r,this.remoteId=n,this.socket=i,this.opened=!1,this.ended=!1,this.needAck=!1}end(){if(this.transport&&this.transport.end(),this.ended)return this;u("O:A_CLSE");const e=this.opened?this.localId:0;try{this.socket.write(s.default.assemble(s.default.A_CLSE,e,this.remoteId,null))}catch(e){}return this.transport=null,this.ended=!0,this.emit("end"),this}handle(e){return o.default.try((()=>{switch(e.command){case s.default.A_OPEN:return this._handleOpenPacket(e);case s.default.A_OKAY:return this._handleOkayPacket(e);case s.default.A_WRTE:return this._handleWritePacket(e);case s.default.A_CLSE:return this._handleClosePacket(e);default:throw new Error(`Unexpected packet ${e.command}`)}})).catch((e=>(this.emit("error",e),this.end())))}_handleOpenPacket(e){return u("I:A_OPEN",e),this.client.getDevice(this.serial).transport().then((t=>{if(this.transport=t,this.ended)throw new p;return this.transport.write(c.default.encodeData(e.data.slice(0,-1))),this.transport.parser.readAscii(4).then((e=>{switch(e){case c.default.OKAY:return u("O:A_OKAY"),this.socket.write(s.default.assemble(s.default.A_OKAY,this.localId,this.remoteId,null)),this.opened=!0;case c.default.FAIL:return this.transport.parser.readError();default:return this.transport.parser.unexpected(e,"OKAY or FAIL")}}))})).then((()=>new o.default(((e,t)=>(this.transport.socket.on("readable",(()=>this._tryPush())).on("end",e).on("error",t),this._tryPush()))))).finally((()=>this.end()))}_handleOkayPacket(e){if(u("I:A_OKAY",e),!this.ended){if(!this.transport)throw new d.PrematurePacketError(e);return this.needAck=!1,this._tryPush()}}_handleWritePacket(e){if(u("I:A_WRTE",e),!this.ended){if(!this.transport)throw new d.PrematurePacketError(e);return this.transport&&e.data&&this.transport.write(e.data),u("O:A_OKAY"),this.socket.write(s.default.assemble(s.default.A_OKAY,this.localId,this.remoteId,null))}}_handleClosePacket(e){if(u("I:A_CLSE",e),!this.ended){if(!this.transport)throw new d.PrematurePacketError(e);return this.end()}}_tryPush(){if(this.needAck||this.ended)return;const e=this._readChunk(this.transport.socket);return e?(u("O:A_WRTE"),this.socket.write(s.default.assemble(s.default.A_WRTE,this.localId,this.remoteId,e)),this.needAck=!0):void 0}_readChunk(e){return e.read(this.socket.maxPayload)||e.read()}}d.PrematurePacketError=l,d.LateTransportError=p,t.default=d},9093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this.remotes=Object.create(null),this.count=0}end(){const e=this.remotes;for(const t in e){e[t].end()}this.remotes=Object.create(null),this.count=0}insert(e,t){if(this.remotes[e])throw new Error(`Remote ID ${e} is already being used`);return this.count+=1,this.remotes[e]=t}get(e){return this.remotes[e]||null}remove(e){let t;return(t=this.remotes[e])?(delete this.remotes[e],this.count-=1,t):null}}},2355:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(4434),c=a(r(6982)),u=s(r(5753)),l=s(r(1007)),p=s(r(8861)),d=s(r(8029)),f=s(r(642)),h=s(r(4450)),m=s(r(9093)),v=s(r(2723)),g=(0,u.default)("adb:tcpusb:socket"),y=4294967295;class E extends Error{constructor(e){super(e),Object.setPrototypeOf(this,E.prototype),this.name="AuthError",Error.captureStackTrace(this,b.AuthError)}}class _ extends Error{constructor(){super("Unauthorized access"),Object.setPrototypeOf(this,_.prototype),this.name="UnauthorizedError",Error.captureStackTrace(this,b.UnauthorizedError)}}class b extends o.EventEmitter{constructor(e,t,r,n={}){let i;super(),this.client=e,this.serial=t,this.socket=r,this.options=n,this.ended=!1,this.authorized=!1,this.syncToken=new d.default(y),this.remoteId=new d.default(y),this.services=new m.default,this.version=1,this.maxPayload=4096,(i=this.options).auth||(i.auth=()=>l.default.resolve(!0)),this.socket.setNoDelay(!0),this.reader=new p.default(this.socket).on("packet",this._handle.bind(this)).on("error",(e=>(g(`PacketReader error: ${e.message}`),this.end()))).on("end",this.end.bind(this)),this.remoteAddress=this.socket.remoteAddress,this.token=void 0,this.signature=void 0}end(){return this.ended||(this.services.end(),this.socket.end(),this.ended=!0,this.emit("end")),this}_error(e){return this.emit("error",e),this.end()}_handle(e){return this.ended?l.default.resolve(!1):(this.emit("userActivity",e),l.default.try((()=>{switch(e.command){case f.default.A_SYNC:return l.default.resolve(this._handleSyncPacket());case f.default.A_CNXN:return this._handleConnectionPacket(e);case f.default.A_OPEN:return this._handleOpenPacket(e).then((e=>!!e));case f.default.A_OKAY:case f.default.A_WRTE:case f.default.A_CLSE:return this._forwardServicePacket(e).then((e=>!!e));case f.default.A_AUTH:return this._handleAuthPacket(e);default:throw new Error(`Unknown command ${e.command}`)}})).catch(b.AuthError,(()=>(this.end(),!1))).catch(b.UnauthorizedError,(()=>(this.end(),!1))).catch((e=>(this._error(e),!1))))}_handleSyncPacket(){return g("I:A_SYNC"),g("O:A_SYNC"),this.write(f.default.assemble(f.default.A_SYNC,1,this.syncToken.next()))}_handleConnectionPacket(e){return g("I:A_CNXN",e),this.version=f.default.swap32(e.arg0),this.maxPayload=Math.min(65535,e.arg1),this._createToken().then((e=>(this.token=e,g(`Created challenge '${this.token.toString("base64")}'`),g("O:A_AUTH"),this.write(f.default.assemble(f.default.A_AUTH,1,0,this.token)))))}_handleAuthPacket(e){switch(g("I:A_AUTH",e),e.arg0){case 2:e.data&&g(`Received signature '${e.data.toString("base64")}'`),this.signature||(this.signature=e.data),g("O:A_AUTH");const t=this.write(f.default.assemble(f.default.A_AUTH,1,0,this.token));return l.default.resolve(t);case 3:if(!this.signature)throw new b.AuthError("Public key sent before signature");if(!e.data||e.data.length<2)throw new b.AuthError("Empty RSA public key");return g(`Received RSA public key '${e.data.toString("base64")}'`),h.default.parsePublicKey(this._skipNull(e.data).toString()).then((e=>{const t=this.token.toString("binary"),r=this.signature.toString("binary");if(!e.verify(t,r))throw g("Signature mismatch"),new b.AuthError("Signature mismatch");return g("Signature verified"),e})).then((e=>{if(this.options.auth)return this.options.auth(e).catch((()=>{throw g("Connection rejected by user-defined auth handler"),new b.AuthError("Rejected by user-defined handler")}))})).then((()=>this._deviceId())).then((e=>(this.authorized=!0,g("O:A_CNXN"),this.write(f.default.assemble(f.default.A_CNXN,f.default.swap32(this.version),this.maxPayload,e)))));default:throw new Error(`Unknown authentication method ${e.arg0}`)}}_handleOpenPacket(e){if(!this.authorized)throw new b.UnauthorizedError;const t=e.arg0,r=this.remoteId.next();if(!(e.data&&e.data.length>=2))throw new Error("Empty service name");const n=this._skipNull(e.data);g(`Calling ${n}`);const i=new v.default(this.client,this.serial,r,t,this);return new l.default(((t,n)=>(i.on("error",n),i.on("end",t),this.services.insert(r,i),g(`Handling ${this.services.count} services simultaneously`),i.handle(e)))).catch((()=>!0)).finally((()=>(this.services.remove(r),g(`Handling ${this.services.count} services simultaneously`),i.end())))}_forwardServicePacket(e){if(!this.authorized)throw new b.UnauthorizedError;const t=e.arg1,r=this.services.get(t);return r?r.handle(e):(g("Received a packet to a service that may have been closed already"),Promise.resolve(!1))}write(e){return!this.ended&&this.socket.write(e)}_createToken(){return l.default.promisify(c.randomBytes)(20)}_skipNull(e){return e.slice(0,-1)}_deviceId(){return g("Loading device properties to form a standard device ID"),this.client.getDevice(this.serial).getProperties().then((function(e){const t=function(){const t=["ro.product.name","ro.product.model","ro.product.device"],r=[];for(let n=0,i=t.length;n<i;n++){const i=t[n];r.push(`${i}=${e[i]};`)}return r}().join("");return Buffer.from(`device::${t}\0`)}))}}b.AuthError=E,b.UnauthorizedError=_,t.default=b},7594:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(1007)),a=n(r(8247)),s=r(4434);class o extends s.EventEmitter{constructor(e){super(),this.command=e,this.deviceList=[],this.deviceMap={},this.reader=this.read().catch(i.default.CancellationError,(()=>!0)).catch(a.default.PrematureEOFError,(()=>{throw new Error("Connection closed")})).catch((e=>this.emit("error",e))).finally((()=>{this.command.parser.end().then((()=>this.emit("end")))}))}read(){return this.command._readDevices().then((e=>(this.update(e),this.read())))}update(e){const t={removed:[],changed:[],added:[]},r={};for(let n=0,i=e.length;n<i;n++){const i=e[n],a=this.deviceMap[i.id];a?a.type!==i.type&&(t.changed.push(i),this.emit("change",i,a)):(t.added.push(i),this.emit("add",i)),r[i.id]=i}const n=this.deviceList;for(let e=0,i=n.length;e<i;e++){const i=n[e];r[i.id]||(t.removed.push(i),this.emit("remove",i))}return this.emit("changeSet",t),this.deviceList=e,this.deviceMap=r,this}end(){return this.reader.cancel(),this}}t.default=o},4808:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(8247)),a=n(r(4450));t.default=class{static readAll(e,t){return new i.default(e).readAll().nodeify(t)}static parsePublicKey(e,t){return a.default.parsePublicKey(e).nodeify(t)}}},7250:(e,t,r)=>{function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.setopts=function(e,t,r){r||(r={});if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0);e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||i,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(l))}(e,r),e.changedCwd=!1;var s=process.cwd();n(r,"cwd")?(e.cwd=a.resolve(r.cwd),e.changedCwd=e.cwd!==s):e.cwd=s;e.root=r.root||a.resolve(e.cwd,"/"),e.root=a.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=o(e.cwd)?e.cwd:p(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,r.allowWindowsEscape=!1,e.minimatch=new c(t,r),e.options=e.minimatch.options},t.ownProp=n,t.makeAbs=p,t.finish=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(a&&0!==Object.keys(a).length){var s=Object.keys(a);t?r.push.apply(r,s):s.forEach((function(e){r[e]=!0}))}else if(e.nonull){var o=e.minimatch.globSet[n];t?r.push(o):r[o]=!0}}t||(r=Object.keys(r));e.nosort||(r=r.sort(u));if(e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((function(t){var r=!/\/$/.test(t),n=e.cache[t]||e.cache[p(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((function(t){return!d(e,t)})));e.found=r},t.mark=function(e,t){var r=p(e,t),n=e.cache[r],i=t;if(n){var a="DIR"===n||Array.isArray(n),s="/"===t.slice(-1);if(a&&!s?i+="/":!a&&s&&(i=i.slice(0,-1)),i!==t){var o=p(e,i);e.statCache[o]=e.statCache[r],e.cache[o]=e.cache[r]}}return i},t.isIgnored=d,t.childrenIgnored=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};var i=r(9896),a=r(6928),s=r(4027),o=r(2641),c=s.Minimatch;function u(e,t){return e.localeCompare(t,"en")}function l(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new c(r,{dot:!0})}return{matcher:new c(e,{dot:!0}),gmatcher:t}}function p(e,t){var r=t;return r="/"===t.charAt(0)?a.join(e.root,t):o(t)||""===t?t:e.changedCwd?a.resolve(e.cwd,t):a.resolve(t),"win32"===process.platform&&(r=r.replace(/\\/g,"/")),r}function d(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}},4717:(e,t,r)=>{e.exports=y;var n=r(1455),i=r(4027),a=(i.Minimatch,r(2017)),s=r(4434).EventEmitter,o=r(6928),c=r(2613),u=r(2641),l=r(1472),p=r(7250),d=p.setopts,f=p.ownProp,h=r(3423),m=(r(9023),p.childrenIgnored),v=p.isIgnored,g=r(3519);function y(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return l(e,t)}return new _(e,t,r)}y.sync=l;var E=y.GlobSync=l.GlobSync;function _(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new E(e,t)}if(!(this instanceof _))return new _(e,t,r);d(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=g(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return o();for(var a=!0,s=0;s<n;s++)this._process(this.minimatch.set[s],s,!1,o);function o(){--i._processing,i._processing<=0&&(a?process.nextTick((function(){i._finish()})):i._finish())}a=!1}y.glob=y,y.hasMagic=function(e,t){var r=function(e,t){if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}({},t);r.noprocess=!0;var n=new _(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},y.Glob=_,a(_,s),_.prototype._finish=function(){if(c(this instanceof _),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this),this.emit("end",this.found)}},_.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},_.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var i=Object.keys(r),a=this,s=i.length;if(0===s)return t();var o=this.matches[e]=Object.create(null);i.forEach((function(r,i){r=a._makeAbs(r),n.realpath(r,a.realpathCache,(function(n,i){n?"stat"===n.syscall?o[r]=!0:a.emit("error",n):o[i]=!0,0==--s&&(a.matches[e]=o,t())}))}))},_.prototype._mark=function(e){return p.mark(this,e)},_.prototype._makeAbs=function(e){return p.makeAbs(this,e)},_.prototype.abort=function(){this.aborted=!0,this.emit("abort")},_.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},_.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},_.prototype._process=function(e,t,r,n){if(c(this instanceof _),c("function"==typeof n),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,r,n]);else{for(var a,s=0;"string"==typeof e[s];)s++;switch(s){case e.length:return void this._processSimple(e.join("/"),t,n);case 0:a=null;break;default:a=e.slice(0,s).join("/")}var o,l=e.slice(s);null===a?o=".":u(a)||u(e.map((function(e){return"string"==typeof e?e:"[*]"})).join("/"))?(a&&u(a)||(a="/"+a),o=a):o=a;var p=this._makeAbs(o);if(m(this,o))return n();l[0]===i.GLOBSTAR?this._processGlobStar(a,o,p,l,t,r,n):this._processReaddir(a,o,p,l,t,r,n)}},_.prototype._processReaddir=function(e,t,r,n,i,a,s){var o=this;this._readdir(r,a,(function(c,u){return o._processReaddir2(e,t,r,n,i,a,u,s)}))},_.prototype._processReaddir2=function(e,t,r,n,i,a,s,c){if(!s)return c();for(var u=n[0],l=!!this.minimatch.negate,p=u._glob,d=this.dot||"."===p.charAt(0),f=[],h=0;h<s.length;h++){if("."!==(v=s[h]).charAt(0)||d)(l&&!e?!v.match(u):v.match(u))&&f.push(v)}var m=f.length;if(0===m)return c();if(1===n.length&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(h=0;h<m;h++){var v=f[h];e&&(v="/"!==e?e+"/"+v:e+v),"/"!==v.charAt(0)||this.nomount||(v=o.join(this.root,v)),this._emitMatch(i,v)}return c()}n.shift();for(h=0;h<m;h++){v=f[h];e&&(v="/"!==e?e+"/"+v:e+v),this._process([v].concat(n),i,a,c)}c()},_.prototype._emitMatch=function(e,t){if(!this.aborted&&!v(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var r=u(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}},_.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=h("lstat\0"+e,(function(n,i){if(n&&"ENOENT"===n.code)return t();var a=i&&i.isSymbolicLink();r.symlinks[e]=a,a||!i||i.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&r.fs.lstat(e,n)}},_.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=h("readdir\0"+e+"\0"+t,r))){if(t&&!f(this.symlinks,e))return this._readdirInGlobStar(e,r);if(f(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}this.fs.readdir(e,function(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}(this,e,r))}},_.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}},_.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},_.prototype._processGlobStar=function(e,t,r,n,i,a,s){var o=this;this._readdir(r,a,(function(c,u){o._processGlobStar2(e,t,r,n,i,a,u,s)}))},_.prototype._processGlobStar2=function(e,t,r,n,i,a,s,o){if(!s)return o();var c=n.slice(1),u=e?[e]:[],l=u.concat(c);this._process(l,i,!1,o);var p=this.symlinks[r],d=s.length;if(p&&a)return o();for(var f=0;f<d;f++){if("."!==s[f].charAt(0)||this.dot){var h=u.concat(s[f],c);this._process(h,i,!0,o);var m=u.concat(s[f],n);this._process(m,i,!0,o)}}o()},_.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(i,a){n._processSimple2(e,t,i,a,r)}))},_.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&u(e)&&!this.nomount){var a=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=o.join(this.root,e):(e=o.resolve(this.root,e),a&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()},_.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&f(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var a=this.statCache[r];if(void 0!==a){if(!1===a)return t(null,a);var s=a.isDirectory()?"DIR":"FILE";return n&&"FILE"===s?t():t(null,s,a)}var o=this,c=h("stat\0"+r,(function(n,i){if(i&&i.isSymbolicLink())return o.fs.stat(r,(function(n,a){n?o._stat2(e,r,null,i,t):o._stat2(e,r,n,a,t)}));o._stat2(e,r,n,i,t)}));c&&o.fs.lstat(r,c)},_.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var a="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,a&&"FILE"===s?i():i(null,s,n)}},1472:(e,t,r)=>{e.exports=f,f.GlobSync=h;var n=r(1455),i=r(4027),a=(i.Minimatch,r(4717).Glob,r(9023),r(6928)),s=r(2613),o=r(2641),c=r(7250),u=c.setopts,l=c.ownProp,p=c.childrenIgnored,d=c.isIgnored;function f(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new h(e,t).found}function h(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof h))return new h(e,t);if(u(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}h.prototype._finish=function(){if(s.ok(this instanceof h),this.realpath){var e=this;this.matches.forEach((function(t,r){var i=e.matches[r]=Object.create(null);for(var a in t)try{a=e._makeAbs(a),i[n.realpathSync(a,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;i[e._makeAbs(a)]=!0}}))}c.finish(this)},h.prototype._process=function(e,t,r){s.ok(this instanceof h);for(var n,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return void this._processSimple(e.join("/"),t);case 0:n=null;break;default:n=e.slice(0,a).join("/")}var c,u=e.slice(a);null===n?c=".":o(n)||o(e.map((function(e){return"string"==typeof e?e:"[*]"})).join("/"))?(n&&o(n)||(n="/"+n),c=n):c=n;var l=this._makeAbs(c);p(this,c)||(u[0]===i.GLOBSTAR?this._processGlobStar(n,c,l,u,t,r):this._processReaddir(n,c,l,u,t,r))},h.prototype._processReaddir=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(o){for(var c=n[0],u=!!this.minimatch.negate,l=c._glob,p=this.dot||"."===l.charAt(0),d=[],f=0;f<o.length;f++){if("."!==(v=o[f]).charAt(0)||p)(u&&!e?!v.match(c):v.match(c))&&d.push(v)}var h=d.length;if(0!==h)if(1!==n.length||this.mark||this.stat){n.shift();for(f=0;f<h;f++){var m;v=d[f];m=e?[e,v]:[v],this._process(m.concat(n),i,s)}}else{this.matches[i]||(this.matches[i]=Object.create(null));for(var f=0;f<h;f++){var v=d[f];e&&(v="/"!==e.slice(-1)?e+"/"+v:e+v),"/"!==v.charAt(0)||this.nomount||(v=a.join(this.root,v)),this._emitMatch(i,v)}}}},h.prototype._emitMatch=function(e,t){if(!d(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},h.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=this.fs.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},h.prototype._readdir=function(e,t){if(t&&!l(this.symlinks,e))return this._readdirInGlobStar(e);if(l(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},h.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},h.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},h.prototype._processGlobStar=function(e,t,r,n,i,a){var s=this._readdir(r,a);if(s){var o=n.slice(1),c=e?[e]:[],u=c.concat(o);this._process(u,i,!1);var l=s.length;if(!this.symlinks[r]||!a)for(var p=0;p<l;p++){if("."!==s[p].charAt(0)||this.dot){var d=c.concat(s[p],o);this._process(d,i,!0);var f=c.concat(s[p],n);this._process(f,i,!0)}}}},h.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),r){if(e&&o(e)&&!this.nomount){var n=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=a.join(this.root,e):(e=a.resolve(this.root,e),n&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},h.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&l(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var a;try{a=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(a&&a.isSymbolicLink())try{i=this.fs.statSync(t)}catch(e){i=a}else i=a}this.statCache[t]=i;n=!0;return i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},h.prototype._mark=function(e){return c.mark(this,e)},h.prototype._makeAbs=function(e){return c.makeAbs(this,e)}},4317:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pack=t.unpack=void 0;const n=r(4717),i=r(8113),a=r(7918),s=r(6724);t.unpack=async function(e){let t;return t=s.isStr(e)?await s.fs.readFile(e):e,a.default(t)},t.pack=async function(e){let t;return t=s.isStr(e)?await function(e){return e=s.normalizePath(e),e=s.rtrim(e," /"),new Promise(((t,r)=>{const i=[];n(`${e}/**/*`,{nodir:!0},(async(n,a)=>{if(n)return r(n);for(let t=0,r=a.length;t<r;t++){const r=a[t];i[t]={path:r.replace(e,""),data:await s.fs.readFile(r)}}t(i)}))}))}(e):e,i.default(t)}},8113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){const t=[new Buffer(1),new Buffer(4),new Buffer(4),new Buffer(4),new Buffer(1)];t[0].writeUIntLE(190,0,1),t[1].writeInt32BE(0,0),t[4].writeUIntLE(237,0,1);const r=e.length,n=[],i=[];e.forEach((({path:e,data:t})=>{n.push(new Buffer(e)),i.push(t)}));let a=18+12*r+Buffer.concat(n).length;const s=n.map(((e,t)=>{const r=new Buffer(4);r.writeInt32BE(e.length,0);const n=i[t].length,s=new Buffer(4);s.writeInt32BE(a,0),a+=n;const o=new Buffer(4);return o.writeInt32BE(n,0),Buffer.concat([r,e,s,o])})),o=new Buffer(4);o.writeInt32BE(r,0),s.unshift(o);const c=Buffer.concat(s),u=Buffer.concat(i);t[2].writeInt32BE(c.length,0),t[3].writeInt32BE(u.length,0);const l=Buffer.concat(t);return Buffer.concat([l,c,u])}},7918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7644),i=r(7395),a={0:n.default,10:i.default};t.default=function(e){const t=function(e){let t=e.slice(1,5).readInt32BE(0);if(1===t){const r=e.slice(13,14);14!==r[0]&&237!==r[0]||(t=0)}return t}(e),r=a[t];if(!r)throw new Error(`wxvpkg unrecognized version: ${t}`);return r(e)}},7644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){try{const t=function(e){const t=function(e){return e.slice(14,18).readInt32BE(0)}(e),r=[];let n=18;for(let i=0;i<t;i++){const t=e.slice(n,n+4).readInt32BE(0);n+=4;const i=e.slice(n,n+t).toString();n+=t;const a=e.slice(n,n+4).readInt32BE(0);n+=4;const s=e.slice(n,n+4).readInt32BE(0);n+=4,r.push({name:i,offset:a,length:s})}return r}(e),r=[];for(const n of t){const{name:t,offset:i,length:a}=n;r.push({path:t,data:e.slice(i,i+a)})}return r}catch(e){throw new Error(`unpack wxvpkg catch error ${e}`)}}},7395:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){try{const t=function(e){const t=function(e){return e.slice(18,22).readInt32BE(0)}(e),r=[];let n=22;for(let i=0;i<t;i++){const t=e.slice(n,n+4).readInt32BE(0);n+=4;const i=e.slice(n,n+t).toString();n+=t;const a=e.slice(n,n+1).readIntBE(0,1,!1);n+=1;const s=e.slice(n,n+2).readIntBE(0,2,!1);n+=2;const o=e.slice(n,n+4).readInt32BE(0);n+=4;const c=e.slice(n,n+4).readInt32BE(0);n+=4,r.push({name:i,encType:a,mode:s,offset:o,length:c})}return r}(e),r=[],n=18+function(e){return e.slice(5,9).readInt32BE(0)}(e)+function(e){return e.slice(9,13).readInt32BE(0)}(e);for(const i of t){const{name:t,offset:a,length:s}=i;r.push({path:t,data:e.slice(a+n,a+n+s)})}return r}catch(e){throw new Error(`unpack wxvpkg catch error ${e}`)}}},6724:(e,t,r)=>{"use strict";var n,i,a={},s=a.inherits=function(e){e=function(e,n){if(t)return e.prototype=t(n.prototype);r.prototype=n.prototype,e.prototype=new r};var t=Object.create;function r(){}return e}({}),o=a.has=(i=Object.prototype.hasOwnProperty,function(e,t){return i.call(e,t)}),c=a.slice=function(e,t,r){var n=e.length;t=null==t?0:t<0?Math.max(n+t,0):Math.min(t,n),r=null==r?n:r<0?Math.max(n+r,0):Math.min(r,n);for(var i=[];t<r;)i.push(e[t++]);return i},u=a.isObj=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}return function(t){var r=e(t);return!!t&&("function"===r||"object"===r)}}(),l=a.nextTick=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}return"object"===("undefined"==typeof process?"undefined":e(process))&&process.nextTick?process.nextTick:"function"==typeof setImmediate?function(e){setImmediate(t(e))}:function(e){setTimeout(t(e),0)}}(),p=a.noop=function(){},d=a.allKeys=function(e){var t,r=[];for(t in e)r.push(t);return r},f=a.before=(n={},n=function(e,t){var r;return function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},n),h=a.restArgs=function(e){return e=function(e,t){return t=null==t?e.length-1:+t,function(){var r,n=Math.max(arguments.length-t,0),i=new Array(n);for(r=0;r<n;r++)i[r]=arguments[r+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var a=new Array(t+1);for(r=0;r<t;r++)a[r]=arguments[r];return a[t]=i,e.apply(this,a)}},e}({}),m=a.bind=h((function(e,t,r){return h((function(n){return e.apply(t,r.concat(n))}))})),v=a.isUndef=function(e){return void 0===e},g=a.optimizeCb=function(e){return e=function(e,t,r){if(v(t))return e;switch(null==r?3:r){case 1:return function(r){return e.call(t,r)};case 3:return function(r,n,i){return e.call(t,r,n,i)};case 4:return function(r,n,i,a){return e.call(t,r,n,i,a)}}return function(){return e.apply(t,arguments)}},e}({}),y=(a.types={},a.identity=function(e){return e}),E=a.objToStr=function(){var e=Object.prototype.toString;return function(t){return e.call(t)}}(),_=a.isArr=Array.isArray||function(e){return"[object Array]"===E(e)},b=a.castPath=function(e){e=function(e,n){if(_(e))return e;if(n&&o(n,e))return[e];var i=[];return e.replace(t,(function(e,t,n,a){i.push(n?a.replace(r,"$1"):t||e)})),i};var t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g;return e}({}),x=a.safeGet=function(e,t){var r;for(r=(t=b(t,e)).shift();!v(r);){if(null==(e=e[r]))return;r=t.shift()}return e},C=a.isFn=function(e){var t=E(e);return"[object Function]"===t||"[object GeneratorFunction]"===t},w=a.isMiniProgram="undefined"!=typeof wx&&C(wx.openLocation),S=a.isNum=function(e){return"[object Number]"===E(e)},T=a.isArrLike=function(){var e=Math.pow(2,53)-1;return function(t){if(!t)return!1;var r=t.length;return S(r)&&r>=0&&r<=e&&!C(t)}}(),A=a.isBrowser=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}return"object"===("undefined"==typeof window?"undefined":e(window))&&"object"===("undefined"==typeof document?"undefined":e(document))&&9===document.nodeType}(),O=a.root=A?window:global,I=a.detectMocha=function(e){e=function(){for(var e=0,r=t.length;e<r;e++){var n=t[e];if("function"!=typeof O[n])return!1}return!0};var t=["afterEach","after","beforeEach","before","describe","it"];return e}({}),D=a.keys=Object.keys&&!I()?Object.keys:function(e){var t,r=[];for(t in e)o(e,t)&&r.push(t);return r},N=a.each=function(e,t,r){var n,i;if(t=g(t,r),T(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var a=D(e);for(n=0,i=a.length;n<i;n++)t(e[a[n]],a[n],e)}return e},k=a.createAssigner=function(e){return e=function(e,t){return function(r){return N(arguments,(function(n,i){if(0!==i){var a=e(n);N(a,(function(e){t&&!v(r[e])||(r[e]=n[e])}))}})),r}},e}({}),B=a.extend=k(d),L=a.extendOwn=k(D),R=a.isMatch=function(e,t){var r=D(t),n=r.length;if(null==e)return!n;e=Object(e);for(var i=0;i<n;i++){var a=r[i];if(t[a]!==e[a]||!(a in e))return!1}return!0},P=a.isStr=function(e){return"[object String]"===E(e)},j=a.matcher=function(e){return e=L({},e),function(t){return R(t,e)}},U=a.safeCb=function(e,t,r){return null==e?y:C(e)?g(e,t,r):u(e)?j(e):function(e){return function(t){return null==t?void 0:t[e]}}},F=a.map=function(e,t,r){t=U(t,r);for(var n=!T(e)&&D(e),i=(n||e).length,a=Array(i),s=0;s<i;s++){var o=n?n[s]:s;a[s]=t(e[o],o,e)}return a},K=a.toArr=function(e){return e?_(e)?e:T(e)&&!P(e)?F(e):[e]:[]},M=a.Class=function(e){var t=(e=function(e,r){return t.extend(e,r)}).Base=function e(t,r,n){n=n||{};var i,a=r.className||x(r,"initialize.name")||"";return delete r.className,i=w?function(){var e=K(arguments);return this.initialize&&this.initialize.apply(this,e)||this}:new Function("toArr","return function "+a+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(K),s(i,t),i.prototype.constructor=i,i.extend=function(t,r){return e(i,t,r)},i.inherits=function(e){s(i,e)},i.methods=function(e){return B(i.prototype,e),i},i.statics=function(e){return B(i,e),i},i.methods(r).statics(n),i}(Object,{className:"Base",callSuper:function(e,t,r){return e.prototype[t].apply(this,r)},toString:function(){return this.constructor.name}});return e}({}),V=a.some=function(e,t,r){t=U(t,r);for(var n=!T(e)&&D(e),i=(n||e).length,a=0;a<i;a++){var s=n?n[a]:a;if(t(e[s],s,e))return!0}return!1};a.normalizePath=function(e){e=function(e){return e.replace(t,"/")};var t=/[\\/]+/g;return e}({});var Y=a.partial=function(e){return e=h((function(e,t){return function(){var r=[];return r=(r=r.concat(t)).concat(K(arguments)),e.apply(this,r)}})),e}({}),G=a.once=Y(f,2),H=a.Emitter=function(e){return e=M({initialize:function(){this._events=this._events||{}},on:function(e,t){return this._events[e]=this._events[e]||[],this._events[e].push(t),this},off:function(e,t){if(o(this._events,e))return this._events[e].splice(this._events[e].indexOf(t),1),this},once:function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return this.on(e,G(t)),this})),emit:function(e){if(o(this._events,e)){var t=c(arguments,1);return N(this._events[e],(function(e){e.apply(this,t)}),this),this}}},{mixin:function(t){N(["on","off","once","emit"],(function(r){t[r]=e.prototype[r]})),t._events=t._events||{}}}),e}({}),z=a.State=function(e){return e=H.extend({className:"State",initialize:function(e,t){this.callSuper(H,"initialize"),this.current=e;var r=this;N(t,(function(e,t){r[t]=function(e,t){var r=K(t.from),n=t.to;return function(){var t=K(arguments);t.unshift(e),V(r,(function(e){return this.current===e}),this)?(this.current=n,this.emit.apply(this,t)):this.emit("error",new Error(this.current+" => "+n+" error"),e)}}(t,e)}))},is:function(e){return this.current===e}}),e}({}),q=a.Promise=function(e){var t=e=M({initialize:function(e){if(!u(this))throw new TypeError("Promises must be constructed via new");if(!C(e))throw new TypeError(e+" is not a function");var t=this;function r(e){t._value=e}this._state=new z("pending",{fulfill:{from:"pending",to:"fulfilled"},reject:{from:"pending",to:"rejected"},adopt:{from:"pending",to:"adopted"}}).on("fulfill",r).on("reject",r).on("adopt",r),this._handled=!1,this._value=void 0,this._deferreds=[],o(e,this)},catch:function(e){return this.then(null,e)},then:function(e,n){var i=new t(p);return s(this,new r(e,n,i)),i}},{all:function(e){var r=K(e);return new t((function(e,t){if(0===r.length)return e([]);var n=r.length;function i(a,s){try{if(s&&(u(s)||C(s))){var o=s.then;if(C(o))return void o.call(s,(function(e){i(a,e)}),t)}r[a]=s,0==--n&&e(r)}catch(e){t(e)}}for(var a=0;a<r.length;a++)i(a,r[a])}))},resolve:function(e){return e&&u(e)&&e.constructor===t?e:new t((function(t){t(e)}))},reject:function(e){return new t((function(t,r){r(e)}))},race:function(e){return new t((function(t,r){for(var n=0,i=e.length;n<i;n++)e[n].then(t,r)}))}}),r=M({initialize:function(e,t,r){this.onFulfilled=C(e)?e:null,this.onRejected=C(t)?t:null,this.promise=r}});function n(e,t){e._state.reject(t),a(e)}function i(e,r){try{if(r===e)throw new TypeError("A promise cannot be resolved with itself");if(r&&(u(r)||C(r))){var i=r.then;if(r instanceof t)return e._state.adopt(r),a(e);if(C(i))return o(m(i,r),e)}e._state.fulfill(r),a(e)}catch(t){n(e,t)}}function a(e){for(var t=0,r=e._deferreds.length;t<r;t++)s(e,e._deferreds[t]);e._deferreds=null}function s(e,t){for(;e._state.is("adopted");)e=e._value;if(e._state.is("pending"))return e._deferreds.push(t);e._handled=!0,l((function(){var r,a=e._state.is("fulfilled"),s=a?t.onFulfilled:t.onRejected;if(null===s)return(a?i:n)(t.promise,e._value);try{r=s(e._value)}catch(e){return n(t.promise,e)}i(t.promise,r)}))}function o(e,t){var r=!1;try{e((function(e){r||(r=!0,i(t,e))}),(function(e){r||(r=!0,n(t,e))}))}catch(e){if(r)return;r=!0,n(t,e)}}return e}({}),W=a.promisify=function(e){return e=function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t,r){return h((function(n){return new e.Promise((function(e,i){n.push(h((function(t,n){return t?i(t):r?void e(n):e(n[0])}))),t.apply(this,n)}))}))})),e.Promise=O.Promise||q,e}({});a.fs=function(e){var t=r(9896);return N(["access","appendFile","chmod","chown","close","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","link","lstat","mkdir","mkdtemp","open","read","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","write","writeFile"],(function(r){e[r]=W(t[r])})),e.exists=function(){var r=K(arguments);return new e.Promise((function(e){r.push(e),t.exists.apply(null,r)}))},e.Promise=O.Promise||q,e}({}),a.rtrim=function(){var e=/\s+$/;return function(t,r){if(null==r)return t.replace(e,"");for(var n,i,a=t.length-1,s=r.length,o=!0;o&&a>=0;)for(o=!1,n=-1,i=t.charAt(a);++n<s;)if(i===r[n]){o=!0,a--;break}return a>=0?t.substring(0,a+1):""}}(),e.exports=a},283:(e,t,r)=>{const n=r(4070),i=r(6928),a=r(16),s=r(7224),o=(...e)=>n.findLast(e,(e=>"boolean"==typeof e)),c=(...e)=>n.findLast(e,(e=>"string"==typeof e)),u={noSort:!1,readEntries:!1,method:n.Constants.NONE,fs:null};e.exports=function(e,t){let r=null;const l=Object.assign(Object.create(null),u);e&&"object"==typeof e&&(e instanceof Uint8Array||(Object.assign(l,e),e=l.input?l.input:void 0,l.input&&delete l.input),Buffer.isBuffer(e)&&(r=e,l.method=n.Constants.BUFFER,e=void 0)),Object.assign(l,t);const p=new n(l);if("object"==typeof l.decoder&&"function"==typeof l.decoder.encode&&"function"==typeof l.decoder.decode||(l.decoder=n.decoder),e&&"string"==typeof e){if(!p.fs.existsSync(e))throw n.Errors.INVALID_FILENAME();l.method=n.Constants.FILE,l.filename=e,r=p.fs.readFileSync(e)}const d=new s(r,l),{canonical:f,sanitize:h,zipnamefix:m}=n;function v(e){var t;if(e&&d&&("string"==typeof e&&(t=d.getEntry(i.posix.normalize(e))),"object"==typeof e&&void 0!==e.entryName&&void 0!==e.header&&(t=d.getEntry(e.entryName)),t))return t;return null}function g(e){const{join:t,normalize:r,sep:n}=i.posix;return t(".",r(n+e.split("\\").join(n)+n))}function y(e){return e instanceof RegExp?(t=e,function(e){return t.test(e)}):"function"!=typeof e?()=>!0:e;var t}const E=(e,t)=>{let r=t.slice(-1);return r=r===p.sep?p.sep:"",i.relative(e,t)+r};return{readFile:function(e,t){var r=v(e);return r&&r.getData(t)||null},childCount:function(e){const t=v(e);if(t)return d.getChildCount(t)},readFileAsync:function(e,t){var r=v(e);r?r.getDataAsync(t):t(null,"getEntry failed for:"+e)},readAsText:function(e,t){var r=v(e);if(r){var n=r.getData();if(n&&n.length)return n.toString(t||"utf8")}return""},readAsTextAsync:function(e,t,r){var n=v(e);n?n.getDataAsync((function(e,n){n?t(e,n):e&&e.length?t(e.toString(r||"utf8")):t("")})):t("")},deleteFile:function(e,t=!0){var r=v(e);r&&d.deleteFile(r.entryName,t)},deleteEntry:function(e){var t=v(e);t&&d.deleteEntry(t.entryName)},addZipComment:function(e){d.comment=e},getZipComment:function(){return d.comment||""},addZipEntryComment:function(e,t){var r=v(e);r&&(r.comment=t)},getZipEntryComment:function(e){var t=v(e);return t&&t.comment||""},updateFile:function(e,t){var r=v(e);r&&r.setData(t)},addLocalFile:function(e,t,r,a){if(!p.fs.existsSync(e))throw n.Errors.FILE_NOT_FOUND(e);{t=t?g(t):"";const n=i.win32.basename(i.win32.normalize(e));t+=r||n;const s=p.fs.statSync(e),o=s.isFile()?p.fs.readFileSync(e):Buffer.alloc(0);s.isDirectory()&&(t+=p.sep),this.addFile(t,o,a,s)}},addLocalFileAsync:function(e,t){e="object"==typeof e?e:{localPath:e};const r=i.resolve(e.localPath),{comment:n}=e;let{zipPath:a,zipName:s}=e;const o=this;p.fs.stat(r,(function(e,c){if(e)return t(e,!1);a=a?g(a):"";const u=i.win32.basename(i.win32.normalize(r));if(a+=s||u,c.isFile())p.fs.readFile(r,(function(e,r){return e?t(e,!1):(o.addFile(a,r,n,c),setImmediate(t,void 0,!0))}));else if(c.isDirectory())return a+=p.sep,o.addFile(a,Buffer.alloc(0),n,c),setImmediate(t,void 0,!0)}))},addLocalFolder:function(e,t,r){if(r=y(r),t=t?g(t):"",e=i.normalize(e),!p.fs.existsSync(e))throw n.Errors.FILE_NOT_FOUND(e);{const n=p.findFiles(e),a=this;if(n.length)for(const s of n){const n=i.join(t,E(e,s));r(n)&&a.addLocalFile(s,i.dirname(n))}}},addLocalFolderAsync:function(e,t,r,a){a=y(a),r=r?g(r):"",e=i.normalize(e);var s=this;p.fs.open(e,"r",(function(i){if(i&&"ENOENT"===i.code)t(void 0,n.Errors.FILE_NOT_FOUND(e));else if(i)t(void 0,i);else{var o=p.findFiles(e),c=-1,u=function(){if((c+=1)<o.length){var n=o[c],i=E(e,n).split("\\").join("/");i=i.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),a(i)?p.fs.stat(n,(function(e,a){e&&t(void 0,e),a.isFile()?p.fs.readFile(n,(function(e,n){e?t(void 0,e):(s.addFile(r+i,n,"",a),u())})):(s.addFile(r+i+"/",Buffer.alloc(0),"",a),u())})):process.nextTick((()=>{u()}))}else t(!0,void 0)};u()}}))},addLocalFolderAsync2:function(e,t){const r=this;e="object"==typeof e?e:{localPath:e},localPath=i.resolve(g(e.localPath));let{zipPath:a,filter:s,namefix:o}=e;var c;s instanceof RegExp?(c=s,s=function(e){return c.test(e)}):"function"!=typeof s&&(s=function(){return!0}),a=a?g(a):"","latin1"==o&&(o=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"")),"function"!=typeof o&&(o=e=>e);const u=e=>i.join(a,o(E(localPath,e))),l=e=>i.win32.basename(i.win32.normalize(o(e)));p.fs.open(localPath,"r",(function(e){e&&"ENOENT"===e.code?t(void 0,n.Errors.FILE_NOT_FOUND(localPath)):e?t(void 0,e):p.findFilesAsync(localPath,(function(e,n){if(e)return t(e);(n=n.filter((e=>s(u(e))))).length||t(void 0,!1),setImmediate(n.reverse().reduce((function(e,t){return function(n,a){if(n||!1===a)return setImmediate(e,n,!1);r.addLocalFileAsync({localPath:t,zipPath:i.dirname(u(t)),zipName:l(t)},e)}}),t))}))}))},addLocalFolderPromise:function(e,t){return new Promise(((r,n)=>{this.addLocalFolderAsync2(Object.assign({localPath:e},t),((e,t)=>{e&&n(e),t&&r(this)}))}))},addFile:function(e,t,r,n){let i=v(e=m(e));const s=null!=i;s||(i=new a(l),i.entryName=e),i.comment=r||"";const o="object"==typeof n&&n instanceof p.fs.Stats;o&&(i.header.time=n.mtime);var c=i.isDirectory?16:0;let u=i.isDirectory?16384:32768;return u|=o?4095&n.mode:"number"==typeof n?4095&n:i.isDirectory?493:420,c=(c|u<<16)>>>0,i.attr=c,i.setData(t),s||d.setEntry(i),i},getEntries:function(e){return d.password=e,d?d.entries:[]},getEntry:function(e){return v(e)},getEntryCount:function(){return d.getEntryCount()},forEach:function(e){return d.forEach(e)},extractEntryTo:function(e,t,r,a,s,u){a=o(!1,a),s=o(!1,s),r=o(!0,r),u=c(s,u);var l=v(e);if(!l)throw n.Errors.NO_ENTRY();var m=f(l.entryName),g=h(t,u&&!l.isDirectory?u:r?m:i.basename(m));if(l.isDirectory)return d.getEntryChildren(l).forEach((function(e){if(e.isDirectory)return;var o=e.getData();if(!o)throw n.Errors.CANT_EXTRACT_FILE();var c=f(e.entryName),u=h(t,r?c:i.basename(c));const l=s?e.header.fileAttr:void 0;p.writeFileTo(u,o,a,l)})),!0;var y=l.getData(d.password);if(!y)throw n.Errors.CANT_EXTRACT_FILE();if(p.fs.existsSync(g)&&!a)throw n.Errors.CANT_OVERRIDE();const E=s?e.header.fileAttr:void 0;return p.writeFileTo(g,y,a,E),!0},test:function(e){if(!d)return!1;for(var t in d.entries)try{if(t.isDirectory)continue;if(!d.entries[t].getData(e))return!1}catch(e){return!1}return!0},extractAllTo:function(e,t,r,i){if(r=o(!1,r),i=c(r,i),t=o(!1,t),!d)throw n.Errors.NO_ZIP();d.entries.forEach((function(a){var s=h(e,f(a.entryName));if(a.isDirectory)return void p.makeDir(s);var o=a.getData(i);if(!o)throw n.Errors.CANT_EXTRACT_FILE();const c=r?a.header.fileAttr:void 0;p.writeFileTo(s,o,t,c);try{p.fs.utimesSync(s,a.header.time,a.header.time)}catch(e){throw n.Errors.CANT_EXTRACT_FILE()}}))},extractAllToAsync:function(e,t,r,a){if(a=((...e)=>n.findLast(e,(e=>"function"==typeof e)))(t,r,a),r=o(!1,r),t=o(!1,t),!a)return new Promise(((n,i)=>{this.extractAllToAsync(e,t,r,(function(e){e?i(e):n(this)}))}));if(!d)return void a(n.Errors.NO_ZIP());e=i.resolve(e);const s=t=>h(e,i.normalize(f(t.entryName))),c=(e,t)=>new Error(e+': "'+t+'"'),u=[],l=[];d.entries.forEach((e=>{e.isDirectory?u.push(e):l.push(e)}));for(const e of u){const t=s(e),n=r?e.header.fileAttr:void 0;try{p.makeDir(t),n&&p.fs.chmodSync(t,n),p.fs.utimesSync(t,e.header.time,e.header.time)}catch(e){a(c("Unable to create folder",t))}}l.reverse().reduce((function(a,s){return function(o){if(o)a(o);else{const o=i.normalize(f(s.entryName)),u=h(e,o);s.getDataAsync((function(e,i){if(i)a(i);else if(e){const n=r?s.header.fileAttr:void 0;p.writeFileToAsync(u,e,t,n,(function(e){e||a(c("Unable to write file",u)),p.fs.utimes(u,s.header.time,s.header.time,(function(e){e?a(c("Unable to set times",u)):a()}))}))}else a(n.Errors.CANT_EXTRACT_FILE())}))}}}),a)()},writeZip:function(e,t){if(1===arguments.length&&"function"==typeof e&&(t=e,e=""),!e&&l.filename&&(e=l.filename),e){var r=d.compressToBuffer();if(r){var n=p.writeFileTo(e,r,!0);"function"==typeof t&&t(n?null:new Error("failed"),"")}}},writeZipPromise:function(e,t){const{overwrite:r,perm:n}=Object.assign({overwrite:!0},t);return new Promise(((t,i)=>{!e&&l.filename&&(e=l.filename),e||i("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then((a=>{p.writeFileToAsync(e,a,r,n,(e=>e?t(e):i("ADM-ZIP: Wasn't able to write zip file")))}),i)}))},toBufferPromise:function(){return new Promise(((e,t)=>{d.toAsyncBuffer(e,t)}))},toBuffer:function(e,t,r,n){return"function"==typeof e?(d.toAsyncBuffer(e,t,r,n),null):d.compressToBuffer()}}}},8593:(e,t,r)=>{var n=r(4070),i=n.Constants;e.exports=function(){var e=20,t=10,r=0,a=0,s=0,o=0,c=0,u=0,l=0,p=0,d=0,f=0,h=0,m=0,v=0;e|=n.isWin?2560:768,r|=i.FLG_EFS;const g={extraLen:0},y=e=>Math.max(0,e)>>>0;return s=n.fromDate2DOS(new Date),{get made(){return e},set made(t){e=t},get version(){return t},set version(e){t=e},get flags(){return r},set flags(e){r=e},get flags_efs(){return(r&i.FLG_EFS)>0},set flags_efs(e){e?r|=i.FLG_EFS:r&=~i.FLG_EFS},get flags_desc(){return(r&i.FLG_DESC)>0},set flags_desc(e){e?r|=i.FLG_DESC:r&=~i.FLG_DESC},get method(){return a},set method(e){switch(e){case i.STORED:this.version=10;case i.DEFLATED:default:this.version=20}a=e},get time(){return n.fromDOS2Date(this.timeval)},set time(e){this.timeval=n.fromDate2DOS(e)},get timeval(){return s},set timeval(e){s=y(e)},get timeHighByte(){return e=s>>>8,255&Math.max(0,e);var e},get crc(){return o},set crc(e){o=y(e)},get compressedSize(){return c},set compressedSize(e){c=y(e)},get size(){return u},set size(e){u=y(e)},get fileNameLength(){return l},set fileNameLength(e){l=e},get extraLength(){return p},set extraLength(e){p=e},get extraLocalLength(){return g.extraLen},set extraLocalLength(e){g.extraLen=e},get commentLength(){return d},set commentLength(e){d=e},get diskNumStart(){return f},set diskNumStart(e){f=y(e)},get inAttr(){return h},set inAttr(e){h=y(e)},get attr(){return m},set attr(e){m=y(e)},get fileAttr(){return(m||0)>>16&4095},get offset(){return v},set offset(e){v=y(e)},get encrypted(){return(r&i.FLG_ENC)===i.FLG_ENC},get centralHeaderSize(){return i.CENHDR+l+p+d},get realDataOffset(){return v+i.LOCHDR+g.fnameLen+g.extraLen},get localHeader(){return g},loadLocalHeaderFromBinary:function(e){var t=e.slice(v,v+i.LOCHDR);if(t.readUInt32LE(0)!==i.LOCSIG)throw n.Errors.INVALID_LOC();g.version=t.readUInt16LE(i.LOCVER),g.flags=t.readUInt16LE(i.LOCFLG),g.method=t.readUInt16LE(i.LOCHOW),g.time=t.readUInt32LE(i.LOCTIM),g.crc=t.readUInt32LE(i.LOCCRC),g.compressedSize=t.readUInt32LE(i.LOCSIZ),g.size=t.readUInt32LE(i.LOCLEN),g.fnameLen=t.readUInt16LE(i.LOCNAM),g.extraLen=t.readUInt16LE(i.LOCEXT);const r=v+i.LOCHDR+g.fnameLen,a=r+g.extraLen;return e.slice(r,a)},loadFromBinary:function(g){if(g.length!==i.CENHDR||g.readUInt32LE(0)!==i.CENSIG)throw n.Errors.INVALID_CEN();e=g.readUInt16LE(i.CENVEM),t=g.readUInt16LE(i.CENVER),r=g.readUInt16LE(i.CENFLG),a=g.readUInt16LE(i.CENHOW),s=g.readUInt32LE(i.CENTIM),o=g.readUInt32LE(i.CENCRC),c=g.readUInt32LE(i.CENSIZ),u=g.readUInt32LE(i.CENLEN),l=g.readUInt16LE(i.CENNAM),p=g.readUInt16LE(i.CENEXT),d=g.readUInt16LE(i.CENCOM),f=g.readUInt16LE(i.CENDSK),h=g.readUInt16LE(i.CENATT),m=g.readUInt32LE(i.CENATX),v=g.readUInt32LE(i.CENOFF)},localHeaderToBinary:function(){var e=Buffer.alloc(i.LOCHDR);return e.writeUInt32LE(i.LOCSIG,0),e.writeUInt16LE(t,i.LOCVER),e.writeUInt16LE(r,i.LOCFLG),e.writeUInt16LE(a,i.LOCHOW),e.writeUInt32LE(s,i.LOCTIM),e.writeUInt32LE(o,i.LOCCRC),e.writeUInt32LE(c,i.LOCSIZ),e.writeUInt32LE(u,i.LOCLEN),e.writeUInt16LE(l,i.LOCNAM),e.writeUInt16LE(g.extraLen,i.LOCEXT),e},centralHeaderToBinary:function(){var n=Buffer.alloc(i.CENHDR+l+p+d);return n.writeUInt32LE(i.CENSIG,0),n.writeUInt16LE(e,i.CENVEM),n.writeUInt16LE(t,i.CENVER),n.writeUInt16LE(r,i.CENFLG),n.writeUInt16LE(a,i.CENHOW),n.writeUInt32LE(s,i.CENTIM),n.writeUInt32LE(o,i.CENCRC),n.writeUInt32LE(c,i.CENSIZ),n.writeUInt32LE(u,i.CENLEN),n.writeUInt16LE(l,i.CENNAM),n.writeUInt16LE(p,i.CENEXT),n.writeUInt16LE(d,i.CENCOM),n.writeUInt16LE(f,i.CENDSK),n.writeUInt16LE(h,i.CENATT),n.writeUInt32LE(m,i.CENATX),n.writeUInt32LE(v,i.CENOFF),n},toJSON:function(){const s=function(e){return e+" bytes"};return{made:e,version:t,flags:r,method:n.methodToString(a),time:this.time,crc:"0x"+o.toString(16).toUpperCase(),compressedSize:s(c),size:s(u),fileNameLength:s(l),extraLength:s(p),commentLength:s(d),diskNumStart:f,inAttr:h,attr:m,offset:v,centralHeaderSize:s(i.CENHDR+l+p+d)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}},6780:(e,t,r)=>{t.EntryHeader=r(8593),t.MainHeader=r(2138)},2138:(e,t,r)=>{var n=r(4070),i=n.Constants;e.exports=function(){var e=0,t=0,r=0,a=0,s=0;return{get diskEntries(){return e},set diskEntries(r){e=t=r},get totalEntries(){return t},set totalEntries(r){t=e=r},get size(){return r},set size(e){r=e},get offset(){return a},set offset(e){a=e},get commentLength(){return s},set commentLength(e){s=e},get mainHeaderSize(){return i.ENDHDR+s},loadFromBinary:function(o){if((o.length!==i.ENDHDR||o.readUInt32LE(0)!==i.ENDSIG)&&(o.length<i.ZIP64HDR||o.readUInt32LE(0)!==i.ZIP64SIG))throw n.Errors.INVALID_END();o.readUInt32LE(0)===i.ENDSIG?(e=o.readUInt16LE(i.ENDSUB),t=o.readUInt16LE(i.ENDTOT),r=o.readUInt32LE(i.ENDSIZ),a=o.readUInt32LE(i.ENDOFF),s=o.readUInt16LE(i.ENDCOM)):(e=n.readBigUInt64LE(o,i.ZIP64SUB),t=n.readBigUInt64LE(o,i.ZIP64TOT),r=n.readBigUInt64LE(o,i.ZIP64SIZE),a=n.readBigUInt64LE(o,i.ZIP64OFF),s=0)},toBinary:function(){var n=Buffer.alloc(i.ENDHDR+s);return n.writeUInt32LE(i.ENDSIG,0),n.writeUInt32LE(0,4),n.writeUInt16LE(e,i.ENDSUB),n.writeUInt16LE(t,i.ENDTOT),n.writeUInt32LE(r,i.ENDSIZ),n.writeUInt32LE(a,i.ENDOFF),n.writeUInt16LE(s,i.ENDCOM),n.fill(" ",i.ENDHDR),n},toJSON:function(){return{diskEntries:e,totalEntries:t,size:r+" bytes",offset:function(e,t){let r=e.toString(16).toUpperCase();for(;r.length<t;)r="0"+r;return"0x"+r}(a,4),commentLength:s}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}},3601:(e,t,r)=>{e.exports=function(e){var t=r(3106),n={chunkSize:1024*(parseInt(e.length/1024)+1)};return{deflate:function(){return t.deflateRawSync(e,n)},deflateAsync:function(r){var i=t.createDeflateRaw(n),a=[],s=0;i.on("data",(function(e){a.push(e),s+=e.length})),i.on("end",(function(){var e=Buffer.alloc(s),t=0;e.fill(0);for(var n=0;n<a.length;n++){var i=a[n];i.copy(e,t),t+=i.length}r&&r(e)})),i.end(e)}}}},5776:(e,t,r)=>{t.Deflater=r(3601),t.Inflater=r(5821),t.ZipCrypto=r(4014)},5821:(e,t,r)=>{const n=+(process.versions?process.versions.node:"").split(".")[0]||0;e.exports=function(e,t){var i=r(3106);const a=n>=15&&t>0?{maxOutputLength:t}:{};return{inflate:function(){return i.inflateRawSync(e,a)},inflateAsync:function(t){var r=i.createInflateRaw(a),n=[],s=0;r.on("data",(function(e){n.push(e),s+=e.length})),r.on("end",(function(){var e=Buffer.alloc(s),r=0;e.fill(0);for(var i=0;i<n.length;i++){var a=n[i];a.copy(e,r),r+=a.length}t&&t(e)})),r.end(e)}}}},4014:(e,t,r)=>{"use strict";const{randomFillSync:n}=r(6982),i=r(1243),a=new Uint32Array(256).map(((e,t)=>{for(let e=0;e<8;e++)1&t?t=t>>>1^3988292384:t>>>=1;return t>>>0})),s=(e,t)=>Math.imul(e,t)>>>0,o=(e,t)=>a[255&(e^t)]^e>>>8,c=()=>"function"==typeof n?n(Buffer.alloc(12)):c.node();c.node=()=>{const e=Buffer.alloc(12),t=e.length;for(let r=0;r<t;r++)e[r]=256*Math.random()&255;return e};const u={genSalt:c};function l(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let e=0;e<t.length;e++)this.updateKeys(t[e])}l.prototype.updateKeys=function(e){const t=this.keys;return t[0]=o(t[0],e),t[1]+=255&t[0],t[1]=s(t[1],134775813)+1,t[2]=o(t[2],t[1]>>>24),e},l.prototype.next=function(){const e=(2|this.keys[2])>>>0;return s(e,1^e)>>8&255},e.exports={decrypt:function(e,t,r){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const n=function(e){const t=new l(e);return function(e){const r=Buffer.alloc(e.length);let n=0;for(let i of e)r[n++]=t.updateKeys(i^t.next());return r}}(r),a=n(e.slice(0,12)),s=8&~t.flags?t.crc>>>24:t.timeHighByte;if(a[11]!==s)throw i.WRONG_PASSWORD();return n(e.slice(12))},encrypt:function(e,t,r,n=!1){null==e&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const i=function(e){const t=new l(e);return function(e,r,n=0){r||(r=Buffer.alloc(e.length));for(let i of e){const e=t.next();r[n++]=i^e,t.updateKeys(i)}return r}}(r),a=u.genSalt();a[11]=t.crc>>>24&255,n&&(a[10]=t.crc>>>16&255);const s=Buffer.alloc(e.length+12);return i(a,s),i(e,s,12)},_salter:function(e){Buffer.isBuffer(e)&&e.length>=12?u.genSalt=function(){return e.slice(0,12)}:u.genSalt="node"===e?c.node:c}}},1383:e=>{e.exports={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24}},8698:e=>{e.exports={efs:!0,encode:e=>Buffer.from(e,"utf8"),decode:e=>e.toString("utf8")}},1243:(e,t)=>{const r={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",DESCRIPTOR_NOT_EXIST:"No descriptor present",DESCRIPTOR_UNKNOWN:"Unknown descriptor format",DESCRIPTOR_FAULTY:"Descriptor data is malformed",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed {0}",FILE_IN_THE_WAY:"There is a file in the way: {0}",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",DISK_ENTRY_TOO_LARGE:"Number of disk entries is too large",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:'File not found: "{0}"',NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found",INVALID_PASS_PARAM:"Incompatible password parameter",WRONG_PASSWORD:"Wrong Password",COMMENT_TOO_LONG:"Comment is too long",EXTRA_FIELD_PARSE_ERROR:"Extra field parsing error"};function n(e){return function(...t){return t.length&&(e=e.replace(/\{(\d)\}/g,((e,r)=>t[r]||""))),new Error("ADM-ZIP: "+e)}}for(const e of Object.keys(r))t[e]=n(r[e])},7819:(e,t,r)=>{const n=r(6928);e.exports=function(e,{fs:t}){var r=e||"",i={directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0},a=null;return r&&t.existsSync(r)?(a=t.statSync(r),i.directory=a.isDirectory(),i.mtime=a.mtime,i.atime=a.atime,i.executable=!!(73&a.mode),i.readonly=!(128&a.mode),i.hidden="."===n.basename(r)[0]):console.warn("Invalid path: "+r),{get directory(){return i.directory},get readOnly(){return i.readonly},get hidden(){return i.hidden},get mtime(){return i.mtime},get atime(){return i.atime},get executable(){return i.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:r,isDirectory:i.directory,isReadOnly:i.readonly,isHidden:i.hidden,isExecutable:i.executable,mTime:i.mtime,aTime:i.atime}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}},4070:(e,t,r)=>{e.exports=r(1527),e.exports.Constants=r(1383),e.exports.Errors=r(1243),e.exports.FileAttr=r(7819),e.exports.decoder=r(8698)},1527:(e,t,r)=>{const n=r(9896),i=r(6928),a=r(1383),s=r(1243),o="object"==typeof process&&"win32"===process.platform,c=e=>"object"==typeof e&&null!==e,u=new Uint32Array(256).map(((e,t)=>{for(let e=0;e<8;e++)1&t?t=3988292384^t>>>1:t>>>=1;return t>>>0}));function l(e){this.sep=i.sep,this.fs=n,c(e)&&c(e.fs)&&"function"==typeof e.fs.statSync&&(this.fs=e.fs)}e.exports=l,l.prototype.makeDir=function(e){const t=this;!function(e){let r=e.split(t.sep)[0];e.split(t.sep).forEach((function(e){if(e&&":"!==e.substr(-1,1)){var n;r+=t.sep+e;try{n=t.fs.statSync(r)}catch(e){t.fs.mkdirSync(r)}if(n&&n.isFile())throw s.FILE_IN_THE_WAY(`"${r}"`)}}))}(e)},l.prototype.writeFileTo=function(e,t,r,n){const a=this;if(a.fs.existsSync(e)){if(!r)return!1;if(a.fs.statSync(e).isDirectory())return!1}var s,o=i.dirname(e);a.fs.existsSync(o)||a.makeDir(o);try{s=a.fs.openSync(e,"w",438)}catch(t){a.fs.chmodSync(e,438),s=a.fs.openSync(e,"w",438)}if(s)try{a.fs.writeSync(s,t,0,t.length,0)}finally{a.fs.closeSync(s)}return a.fs.chmodSync(e,n||438),!0},l.prototype.writeFileToAsync=function(e,t,r,n,a){"function"==typeof n&&(a=n,n=void 0);const s=this;s.fs.exists(e,(function(o){if(o&&!r)return a(!1);s.fs.stat(e,(function(r,c){if(o&&c.isDirectory())return a(!1);var u=i.dirname(e);s.fs.exists(u,(function(r){r||s.makeDir(u),s.fs.open(e,"w",438,(function(r,i){r?s.fs.chmod(e,438,(function(){s.fs.open(e,"w",438,(function(r,i){s.fs.write(i,t,0,t.length,0,(function(){s.fs.close(i,(function(){s.fs.chmod(e,n||438,(function(){a(!0)}))}))}))}))})):i?s.fs.write(i,t,0,t.length,0,(function(){s.fs.close(i,(function(){s.fs.chmod(e,n||438,(function(){a(!0)}))}))})):s.fs.chmod(e,n||438,(function(){a(!0)}))}))}))}))}))},l.prototype.findFiles=function(e){const t=this;return function e(r,n,a){"boolean"==typeof n&&(a=n,n=void 0);let s=[];return t.fs.readdirSync(r).forEach((function(o){const c=i.join(r,o),u=t.fs.statSync(c);n&&!n.test(c)||s.push(i.normalize(c)+(u.isDirectory()?t.sep:"")),u.isDirectory()&&a&&(s=s.concat(e(c,n,a)))})),s}(e,void 0,!0)},l.prototype.findFilesAsync=function(e,t){const r=this;let n=[];r.fs.readdir(e,(function(a,s){if(a)return t(a);let o=s.length;if(!o)return t(null,n);s.forEach((function(a){a=i.join(e,a),r.fs.stat(a,(function(e,s){if(e)return t(e);s&&(n.push(i.normalize(a)+(s.isDirectory()?r.sep:"")),s.isDirectory()?r.findFilesAsync(a,(function(e,r){if(e)return t(e);n=n.concat(r),--o||t(null,n)})):--o||t(null,n))}))}))}))},l.prototype.getAttributes=function(){},l.prototype.setAttributes=function(){},l.crc32update=function(e,t){return u[255&(e^t)]^e>>>8},l.crc32=function(e){"string"==typeof e&&(e=Buffer.from(e,"utf8"));let t=e.length,r=-1;for(let n=0;n<t;)r=l.crc32update(r,e[n++]);return~r>>>0},l.methodToString=function(e){switch(e){case a.STORED:return"STORED ("+e+")";case a.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}},l.canonical=function(e){if(!e)return"";const t=i.posix.normalize("/"+e.split("\\").join("/"));return i.join(".",t)},l.zipnamefix=function(e){if(!e)return"";const t=i.posix.normalize("/"+e.split("\\").join("/"));return i.posix.join(".",t)},l.findLast=function(e,t){if(!Array.isArray(e))throw new TypeError("arr is not array");for(let r=(e.length>>>0)-1;r>=0;r--)if(t(e[r],r,e))return e[r]},l.sanitize=function(e,t){e=i.resolve(i.normalize(e));for(var r=t.split("/"),n=0,a=r.length;n<a;n++){var s=i.normalize(i.join(e,r.slice(n,a).join(i.sep)));if(0===s.indexOf(e))return s}return i.normalize(i.join(e,i.basename(t)))},l.toBuffer=function(e,t){return Buffer.isBuffer(e)?e:e instanceof Uint8Array?Buffer.from(e):"string"==typeof e?t(e):Buffer.alloc(0)},l.readBigUInt64LE=function(e,t){var r=Buffer.from(e.slice(t,t+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)},l.fromDOS2Date=function(e){return new Date(1980+(e>>25&127),Math.max((e>>21&15)-1,0),Math.max(e>>16&31,1),e>>11&31,e>>5&63,(31&e)<<1)},l.fromDate2DOS=function(e){let t=0,r=0;return e.getFullYear()>1979&&(t=(e.getFullYear()-1980&127)<<9|e.getMonth()+1<<5|e.getDate(),r=e.getHours()<<11|e.getMinutes()<<5|e.getSeconds()>>1),t<<16|r},l.isWin=o,l.crcTable=u},16:(e,t,r)=>{var n=r(4070),i=r(6780),a=n.Constants,s=r(5776);e.exports=function(e,t){var r=new i.EntryHeader,o=Buffer.alloc(0),c=Buffer.alloc(0),u=!1,l=null,p=Buffer.alloc(0),d=Buffer.alloc(0),f=!0;const h=e,m="object"==typeof h.decoder?h.decoder:n.decoder;function v(){return t&&t instanceof Uint8Array?(d=r.loadLocalHeaderFromBinary(t),t.slice(r.realDataOffset,r.realDataOffset+r.compressedSize)):Buffer.alloc(0)}function g(e){if(r.flags_desc){const i={},s=r.realDataOffset+r.compressedSize;if(t.readUInt32LE(s)==a.LOCSIG||t.readUInt32LE(s)==a.CENSIG)throw n.Errors.DESCRIPTOR_NOT_EXIST();if(t.readUInt32LE(s)==a.EXTSIG)i.crc=t.readUInt32LE(s+a.EXTCRC),i.compressedSize=t.readUInt32LE(s+a.EXTSIZ),i.size=t.readUInt32LE(s+a.EXTLEN);else{if(19280!==t.readUInt16LE(s+12))throw n.Errors.DESCRIPTOR_UNKNOWN();i.crc=t.readUInt32LE(s+a.EXTCRC-4),i.compressedSize=t.readUInt32LE(s+a.EXTSIZ-4),i.size=t.readUInt32LE(s+a.EXTLEN-4)}if(i.compressedSize!==r.compressedSize||i.size!==r.size||i.crc!==r.crc)throw n.Errors.DESCRIPTOR_FAULTY();if(n.crc32(e)!==i.crc)return!1}else if(n.crc32(e)!==r.localHeader.crc)return!1;return!0}function y(e,t,i){if(void 0===t&&"string"==typeof e&&(i=e,e=void 0),u)return e&&t&&t(Buffer.alloc(0),n.Errors.DIRECTORY_CONTENT_ERROR()),Buffer.alloc(0);var a=v();if(0===a.length)return e&&t&&t(a),a;if(r.encrypted){if("string"!=typeof i&&!Buffer.isBuffer(i))throw n.Errors.INVALID_PASS_PARAM();a=s.ZipCrypto.decrypt(a,r,i)}var c=Buffer.alloc(r.size);switch(r.method){case n.Constants.STORED:if(a.copy(c),g(c))return e&&t&&t(c),c;throw e&&t&&t(c,n.Errors.BAD_CRC()),n.Errors.BAD_CRC();case n.Constants.DEFLATED:var l=new s.Inflater(a,r.size);if(!e){if(l.inflate(c).copy(c,0),!g(c))throw n.Errors.BAD_CRC(`"${m.decode(o)}"`);return c}l.inflateAsync((function(e){e.copy(e,0),t&&(g(e)?t(e):t(e,n.Errors.BAD_CRC()))}));break;default:throw e&&t&&t(Buffer.alloc(0),n.Errors.UNKNOWN_METHOD()),n.Errors.UNKNOWN_METHOD()}}function E(e,i){if((!l||!l.length)&&Buffer.isBuffer(t))return e&&i&&i(v()),v();if(l.length&&!u){var a;switch(r.method){case n.Constants.STORED:return r.compressedSize=r.size,a=Buffer.alloc(l.length),l.copy(a),e&&i&&i(a),a;default:case n.Constants.DEFLATED:var o=new s.Deflater(l);if(!e){var c=o.deflate();return r.compressedSize=c.length,c}o.deflateAsync((function(e){a=Buffer.alloc(e.length),r.compressedSize=e.length,e.copy(a),i&&i(a)})),o=null}}else{if(!e||!i)return Buffer.alloc(0);i(Buffer.alloc(0))}}function _(e,t){return(e.readUInt32LE(t+4)<<4)+e.readUInt32LE(t)}function b(e){var t,n,i,s;e.length>=a.EF_ZIP64_SCOMP&&(t=_(e,a.EF_ZIP64_SUNCOMP),r.size===a.EF_ZIP64_OR_32&&(r.size=t)),e.length>=a.EF_ZIP64_RHO&&(n=_(e,a.EF_ZIP64_SCOMP),r.compressedSize===a.EF_ZIP64_OR_32&&(r.compressedSize=n)),e.length>=a.EF_ZIP64_DSN&&(i=_(e,a.EF_ZIP64_RHO),r.offset===a.EF_ZIP64_OR_32&&(r.offset=i)),e.length>=a.EF_ZIP64_DSN+4&&(s=e.readUInt32LE(a.EF_ZIP64_DSN),r.diskNumStart===a.EF_ZIP64_OR_16&&(r.diskNumStart=s))}return f=!!m.hasOwnProperty("efs")&&m.efs,{get entryName(){return m.decode(o)},get rawEntryName(){return o},set entryName(e){var t=(o=n.toBuffer(e,m.encode))[o.length-1];u=47===t||92===t,r.fileNameLength=o.length},get efs(){return"function"==typeof f?f(this.entryName):f},get extra(){return p},set extra(e){p=e,r.extraLength=e.length,function(e){try{for(var t,r,i,s=0;s+4<e.length;)t=e.readUInt16LE(s),s+=2,r=e.readUInt16LE(s),s+=2,i=e.slice(s,s+r),s+=r,a.ID_ZIP64===t&&b(i)}catch(e){throw n.Errors.EXTRA_FIELD_PARSE_ERROR()}}(e)},get comment(){return m.decode(c)},set comment(e){if(c=n.toBuffer(e,m.encode),r.commentLength=c.length,c.length>65535)throw n.Errors.COMMENT_TOO_LONG()},get name(){var e=m.decode(o);return u?e.substr(e.length-1).split("/").pop():e.split("/").pop()},get isDirectory(){return u},getCompressedData:function(){return E(!1,null)},getCompressedDataAsync:function(e){E(!0,e)},setData:function(e){l=n.toBuffer(e,n.decoder.encode),!u&&l.length?(r.size=l.length,r.method=n.Constants.DEFLATED,r.crc=n.crc32(e),r.changed=!0):r.method=n.Constants.STORED},getData:function(e){return r.changed?l:y(!1,null,e)},getDataAsync:function(e,t){r.changed?e(l):y(!0,e,t)},set attr(e){r.attr=e},get attr(){return r.attr},set header(e){r.loadFromBinary(e)},get header(){return r},packCentralHeader:function(){r.flags_efs=this.efs,r.extraLength=p.length;var e=r.centralHeaderToBinary(),t=n.Constants.CENHDR;return o.copy(e,t),t+=o.length,p.copy(e,t),t+=r.extraLength,c.copy(e,t),e},packLocalHeader:function(){let e=0;r.flags_efs=this.efs,r.extraLocalLength=d.length;const t=r.localHeaderToBinary(),n=Buffer.alloc(t.length+o.length+r.extraLocalLength);return t.copy(n,e),e+=t.length,o.copy(n,e),e+=o.length,d.copy(n,e),e+=d.length,n},toJSON:function(){const e=function(e){return"<"+(e&&e.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:r.toJSON(),compressedData:e(t),data:e(l)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}},7224:(e,t,r)=>{const n=r(16),i=r(6780),a=r(4070);e.exports=function(e,t){var r=[],s={},o=Buffer.alloc(0),c=new i.MainHeader,u=!1;const l=new Set,p=t,{noSort:d,decoder:f}=p;function h(){if(u=!0,s={},c.diskEntries>(e.length-c.offset)/a.Constants.CENHDR)throw a.Errors.DISK_ENTRY_TOO_LARGE();r=new Array(c.diskEntries);for(var t=c.offset,i=0;i<r.length;i++){var o=t,d=new n(p,e);d.header=e.slice(o,o+=a.Constants.CENHDR),d.entryName=e.slice(o,o+=d.header.fileNameLength),d.header.extraLength&&(d.extra=e.slice(o,o+=d.header.extraLength)),d.header.commentLength&&(d.comment=e.slice(o,o+d.header.commentLength)),t+=d.header.centralHeaderSize,r[i]=d,s[d.entryName]=d}l.clear(),function(){const e=new Set;for(const t of Object.keys(s)){const r=t.split("/");if(r.pop(),r.length)for(let t=0;t<r.length;t++){const n=r.slice(0,t+1).join("/")+"/";e.add(n)}}for(const t of e)if(!(t in s)){const e=new n(p);e.entryName=t,e.attr=16,e.temporary=!0,r.push(e),s[e.entryName]=e,l.add(e)}}()}function m(){r.length>1&&!d&&r.sort(((e,t)=>e.entryName.toLowerCase().localeCompare(t.entryName.toLowerCase())))}return e?function(t){var r=e.length-a.Constants.ENDHDR,n=Math.max(0,r-65535),i=n,s=e.length,u=-1,l=0;"boolean"==typeof p.trailingSpace&&p.trailingSpace&&(n=0);for(;r>=i;r--)if(80===e[r])if(e.readUInt32LE(r)!==a.Constants.ENDSIG)if(e.readUInt32LE(r)!==a.Constants.END64SIG){if(e.readUInt32LE(r)===a.Constants.ZIP64SIG){u=r,s=r+a.readBigUInt64LE(e,r+a.Constants.ZIP64SIZE)+a.Constants.ZIP64LEAD;break}}else i=n;else u=r,l=r,s=r+a.Constants.ENDHDR,i=r-a.Constants.END64HDR;if(-1==u)throw a.Errors.INVALID_FORMAT();c.loadFromBinary(e.slice(u,s)),c.commentLength&&(o=e.slice(l+a.Constants.ENDHDR));t&&h()}(p.readEntries):u=!0,{get entries(){return u||h(),r.filter((e=>!l.has(e)))},get comment(){return f.decode(o)},set comment(e){o=a.toBuffer(e,f.encode),c.commentLength=o.length},getEntryCount:function(){return u?r.length:c.diskEntries},forEach:function(e){this.entries.forEach(e)},getEntry:function(e){return u||h(),s[e]||null},setEntry:function(e){u||h(),r.push(e),s[e.entryName]=e,c.totalEntries=r.length},deleteFile:function(e,t=!0){u||h();const r=s[e];this.getEntryChildren(r,t).map((e=>e.entryName)).forEach(this.deleteEntry)},deleteEntry:function(e){u||h();const t=s[e],n=r.indexOf(t);n>=0&&(r.splice(n,1),delete s[e],c.totalEntries=r.length)},getEntryChildren:function(e,t=!0){if(u||h(),"object"==typeof e){if(e.isDirectory&&t){const t=[],n=e.entryName;for(const e of r)e.entryName.startsWith(n)&&t.push(e);return t}return[e]}return[]},getChildCount:function(e){if(e&&e.isDirectory){const t=this.getEntryChildren(e);return t.includes(e)?t.length-1:t.length}return 0},compressToBuffer:function(){u||h(),m();const t=[],r=[];let n=0,i=0;c.size=0,c.offset=0;let s=0;for(const e of this.entries){const a=e.getCompressedData();e.header.offset=i;const o=e.packLocalHeader(),u=o.length+a.length;i+=u,t.push(o),t.push(a);const l=e.packCentralHeader();r.push(l),c.size+=l.length,n+=u+l.length,s++}n+=c.mainHeaderSize,c.offset=i,c.totalEntries=s,i=0;const l=Buffer.alloc(n);for(const e of t)e.copy(l,i),i+=e.length;for(const e of r)e.copy(l,i),i+=e.length;const p=c.toBinary();return o&&o.copy(p,a.Constants.ENDHDR),p.copy(l,i),e=l,u=!1,l},toAsyncBuffer:function(t,r,n,i){try{u||h(),m();const r=[],s=[];let l=0,p=0,d=0;c.size=0,c.offset=0;const f=function(h){if(h.length>0){const e=h.shift(),t=e.entryName+e.extra.toString();n&&n(t),e.getCompressedDataAsync((function(n){i&&i(t),e.header.offset=p;const a=e.packLocalHeader(),o=a.length+n.length;p+=o,r.push(a),r.push(n);const u=e.packCentralHeader();s.push(u),c.size+=u.length,l+=o+u.length,d++,f(h)}))}else{l+=c.mainHeaderSize,c.offset=p,c.totalEntries=d,p=0;const n=Buffer.alloc(l);r.forEach((function(e){e.copy(n,p),p+=e.length})),s.forEach((function(e){e.copy(n,p),p+=e.length}));const i=c.toBinary();o&&o.copy(i,a.Constants.ENDHDR),i.copy(n,p),e=n,u=!1,t(n)}};f(Array.from(this.entries))}catch(e){r(e)}}}}},1873:(e,t,r)=>{e.exports={parallel:r(8798),serial:r(2081),serialOrdered:r(28)}},4555:e=>{function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}}},2313:(e,t,r)=>{var n=r(405);e.exports=function(e){var t=!1;return n((function(){t=!0})),function(r,i){t?e(r,i):n((function(){e(r,i)}))}}},405:e=>{e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},8051:(e,t,r)=>{var n=r(2313),i=r(4555);e.exports=function(e,t,r,a){var s=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[s]=function(e,t,r,i){var a;a=2==e.length?e(r,n(i)):e(r,t,n(i));return a}(t,s,e[s],(function(e,t){s in r.jobs&&(delete r.jobs[s],e?i(r):r.results[s]=t,a(e,r.results))}))}},9500:e=>{e.exports=function(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};t&&n.keyedList.sort(r?t:function(r,n){return t(e[r],e[n])});return n}},6276:(e,t,r)=>{var n=r(4555),i=r(2313);e.exports=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,n(this),i(e)(null,this.results)}},8798:(e,t,r)=>{var n=r(8051),i=r(9500),a=r(6276);e.exports=function(e,t,r){var s=i(e);for(;s.index<(s.keyedList||e).length;)n(e,t,s,(function(e,t){e?r(e,t):0!==Object.keys(s.jobs).length||r(null,s.results)})),s.index++;return a.bind(s,r)}},2081:(e,t,r)=>{var n=r(28);e.exports=function(e,t,r){return n(e,t,null,r)}},28:(e,t,r)=>{var n=r(8051),i=r(9500),a=r(6276);function s(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,r,s){var o=i(e,r);return n(e,t,o,(function r(i,a){i?s(i,a):(o.index++,o.index<(o.keyedList||e).length?n(e,t,o,r):s(null,o.results))})),a.bind(o,s)},e.exports.ascending=s,e.exports.descending=function(e,t){return-1*s(e,t)}},8505:e=>{"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var a=n(e,t,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,a,s,o,c=r.indexOf(e),u=r.indexOf(t,c+1),l=c;if(c>=0&&u>0){if(e===t)return[c,u];for(n=[],a=r.length;l>=0&&!o;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?o=[n.pop(),u]:((i=n.pop())<a&&(a=i,s=u),u=r.indexOf(t,l+1)),l=c<u&&c>=0?c:u;n.length&&(o=[a,s])}return o}e.exports=t,t.range=n},7988:e=>{"use strict";e.exports=function(e){var t=e._SomePromiseArray;function r(e){var r=new t(e),n=r.promise();return r.setHowMany(1),r.setUnwrap(),r.init(),n}e.any=function(e){return r(e)},e.prototype.any=function(){return r(this)}}},8210:(e,t,r)=>{"use strict";var n;try{throw new Error}catch(e){n=e}var i=r(1065),a=r(9937);function s(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new a(16),this._normalQueue=new a(16),this._haveDrainedQueues=!1;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=i}function o(e){for(;e.length()>0;)c(e)}function c(e){var t=e.shift();if("function"!=typeof t)t._settlePromises();else{var r=e.shift(),n=e.shift();t.call(r,n)}}s.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},s.prototype.hasCustomScheduler=function(){return this._customScheduler},s.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},s.prototype.fatalError=function(e,t){t?(process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),process.exit(2)):this.throwLater(e)},s.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout((function(){e(t)}),0);else try{this._schedule((function(){e(t)}))}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},s.prototype.invokeLater=function(e,t,r){this._lateQueue.push(e,t,r),this._queueTick()},s.prototype.invoke=function(e,t,r){this._normalQueue.push(e,t,r),this._queueTick()},s.prototype.settlePromises=function(e){this._normalQueue._pushOne(e),this._queueTick()},s.prototype._drainQueues=function(){o(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,o(this._lateQueue)},s.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},s.prototype._reset=function(){this._isTickUsed=!1},e.exports=s,e.exports.firstLineError=n},4271:e=>{"use strict";e.exports=function(e,t,r,n){var i=!1,a=function(e,t){this._reject(t)},s=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(a,a,null,this,e)},o=function(e,t){50397184&this._bitField||this._resolveCallback(t.target)},c=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(a){i||(i=!0,e.prototype._propagateFrom=n.propagateFromFunction(),e.prototype._boundValue=n.boundValueFunction());var u=r(a),l=new e(t);l._propagateFrom(this,1);var p=this._target();if(l._setBoundTo(u),u instanceof e){var d={promiseRejectionQueued:!1,promise:l,target:p,bindingPromise:u};p._then(t,s,void 0,l,d),u._then(o,c,void 0,l,d),l._setOnCancel(u)}else l._resolveCallback(p);return l},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return!(2097152&~this._bitField)},e.bind=function(t,r){return e.resolve(r).bind(t)}}},1007:(e,t,r)=>{"use strict";var n;"undefined"!=typeof Promise&&(n=Promise);var i=r(9979)();i.noConflict=function(){try{Promise===i&&(Promise=n)}catch(e){}return i},e.exports=i},1675:(e,t,r)=>{"use strict";var n=Object.create;if(n){var i=n(null),a=n(null);i[" size"]=a[" size"]=0}e.exports=function(e){var t,n,s=r(2208),o=s.canEvaluate,c=s.isIdentifier,u=function(e){return new Function("ensureMethod"," \n return function(obj) { \n 'use strict' \n var len = this.length; \n ensureMethod(obj, 'methodName'); \n switch(len) { \n case 1: return obj.methodName(this[0]); \n case 2: return obj.methodName(this[0], this[1]); \n case 3: return obj.methodName(this[0], this[1], this[2]); \n case 0: return obj.methodName(); \n default: \n return obj.methodName.apply(obj, this); \n } \n }; \n ".replace(/methodName/g,e))(d)},l=function(e){return new Function("obj"," \n 'use strict'; \n return obj.propertyName; \n ".replace("propertyName",e))},p=function(e,t,r){var n=r[e];if("function"!=typeof n){if(!c(e))return null;if(n=t(e),r[e]=n,r[" size"]++,r[" size"]>512){for(var i=Object.keys(r),a=0;a<256;++a)delete r[i[a]];r[" size"]=i.length-256}}return n};function d(t,r){var n;if(null!=t&&(n=t[r]),"function"!=typeof n){var i="Object "+s.classString(t)+" has no method '"+s.toString(r)+"'";throw new e.TypeError(i)}return n}function f(e){return d(e,this.pop()).apply(e,this)}function h(e){return e[this]}function m(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}t=function(e){return p(e,u,i)},n=function(e){return p(e,l,a)},e.prototype.call=function(e){for(var r=arguments.length,n=new Array(Math.max(r-1,0)),i=1;i<r;++i)n[i-1]=arguments[i];if(o){var a=t(e);if(null!==a)return this._then(a,void 0,void 0,n,void 0)}return n.push(e),this._then(f,void 0,void 0,n,void 0)},e.prototype.get=function(e){var t;if("number"==typeof e)t=m;else if(o){var r=n(e);t=null!==r?r:h}else t=h;return this._then(t,void 0,void 0,e,void 0)}}},2994:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i){var a=r(2208),s=a.tryCatch,o=a.errorObj,c=e._async;e.prototype.break=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var r=e._cancellationParent;if(null==r||!r._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=r}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(e,t){if(a.isArray(e))for(var r=0;r<e.length;++r)this._doInvokeOnCancel(e[r],t);else if(void 0!==e)if("function"==typeof e){if(!t){var n=s(e).call(this._boundValue());n===o&&(this._attachExtraTrace(n.e),c.throwLater(n.e))}}else e._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),c.invoke(this._doInvokeOnCancel,this,e)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},1674:(e,t,r)=>{"use strict";e.exports=function(e){var t=r(2208),n=r(7585).keys,i=t.tryCatch,a=t.errorObj;return function(r,s,o){return function(c){var u=o._boundValue();e:for(var l=0;l<r.length;++l){var p=r[l];if(p===Error||null!=p&&p.prototype instanceof Error){if(c instanceof p)return i(s).call(u,c)}else if("function"==typeof p){var d=i(p).call(u,c);if(d===a)return d;if(d)return i(s).call(u,c)}else if(t.isObject(c)){for(var f=n(p),h=0;h<f.length;++h){var m=f[h];if(p[m]!=c[m])continue e}return i(s).call(u,c)}}return e}}}},297:e=>{"use strict";e.exports=function(e){var t=!1,r=[];function n(){this._trace=new n.CapturedTrace(i())}function i(){var e=r.length-1;if(e>=0)return r[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},n.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,r.push(this._trace))},n.prototype._popContext=function(){if(void 0!==this._trace){var e=r.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},n.CapturedTrace=null,n.create=function(){if(t)return new n},n.deactivateLongStackTraces=function(){},n.activateLongStackTraces=function(){var r=e.prototype._pushContext,a=e.prototype._popContext,s=e._peekContext,o=e.prototype._peekContext,c=e.prototype._promiseCreated;n.deactivateLongStackTraces=function(){e.prototype._pushContext=r,e.prototype._popContext=a,e._peekContext=s,e.prototype._peekContext=o,e.prototype._promiseCreated=c,t=!1},t=!0,e.prototype._pushContext=n.prototype._pushContext,e.prototype._popContext=n.prototype._popContext,e._peekContext=e.prototype._peekContext=i,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},n}},6636:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i){var a,s,o,c,u=e._async,l=r(403).Warning,p=r(2208),d=r(7585),f=p.canAttachTrace,h=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,m=/\((?:timers\.js):\d+:\d+\)/,v=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,g=null,y=null,E=!1,_=!(0==p.env("BLUEBIRD_DEBUG")||!p.env("BLUEBIRD_DEBUG")&&"development"!==p.env("NODE_ENV")),b=!(0==p.env("BLUEBIRD_WARNINGS")||!_&&!p.env("BLUEBIRD_WARNINGS")),x=!(0==p.env("BLUEBIRD_LONG_STACK_TRACES")||!_&&!p.env("BLUEBIRD_LONG_STACK_TRACES")),C=0!=p.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(b||!!p.env("BLUEBIRD_W_FORGOTTEN_RETURN"));!function(){var t=[];function r(){for(var e=0;e<t.length;++e)t[e]._notifyUnhandledRejection();n()}function n(){t.length=0}c=function(e){t.push(e),setTimeout(r,1)},d.defineProperty(e,"_unhandledRejectionCheck",{value:r}),d.defineProperty(e,"_unhandledRejectionClear",{value:n})}(),e.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},e.prototype._ensurePossibleRejectionHandled=function(){524288&this._bitField||(this._setRejectionIsUnhandled(),c(this))},e.prototype._notifyUnhandledRejectionIsHandled=function(){q("rejectionHandled",a,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},e.prototype._returnedNonUndefined=function(){return!!(268435456&this._bitField)},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),q("unhandledRejection",s,e,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},e.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},e.prototype._warn=function(e,t,r){return Y(e,t,r||this)},e.onPossiblyUnhandledRejection=function(t){var r=e._getContext();s=p.contextBind(r,t)},e.onUnhandledRejectionHandled=function(t){var r=e._getContext();a=p.contextBind(r,t)};var w=function(){};e.longStackTraces=function(){if(u.haveItemsQueued()&&!te.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!te.longStackTraces&&$()){var r=e.prototype._captureStackTrace,n=e.prototype._attachExtraTrace,i=e.prototype._dereferenceTrace;te.longStackTraces=!0,w=function(){if(u.haveItemsQueued()&&!te.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");e.prototype._captureStackTrace=r,e.prototype._attachExtraTrace=n,e.prototype._dereferenceTrace=i,t.deactivateLongStackTraces(),te.longStackTraces=!1},e.prototype._captureStackTrace=K,e.prototype._attachExtraTrace=M,e.prototype._dereferenceTrace=V,t.activateLongStackTraces()}},e.hasLongStackTraces=function(){return te.longStackTraces&&$()};var S={unhandledrejection:{before:function(){var e=p.global.onunhandledrejection;return p.global.onunhandledrejection=null,e},after:function(e){p.global.onunhandledrejection=e}},rejectionhandled:{before:function(){var e=p.global.onrejectionhandled;return p.global.onrejectionhandled=null,e},after:function(e){p.global.onrejectionhandled=e}}},T=function(){var e=function(e,t){if(!e)return!p.global.dispatchEvent(t);var r;try{return r=e.before(),!p.global.dispatchEvent(t)}finally{e.after(r)}};try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return p.global.dispatchEvent(t),function(t,r){t=t.toLowerCase();var n=new CustomEvent(t,{detail:r,cancelable:!0});return d.defineProperty(n,"promise",{value:r.promise}),d.defineProperty(n,"reason",{value:r.reason}),e(S[t],n)}}if("function"==typeof Event){t=new Event("CustomEvent");return p.global.dispatchEvent(t),function(t,r){t=t.toLowerCase();var n=new Event(t,{cancelable:!0});return n.detail=r,d.defineProperty(n,"promise",{value:r.promise}),d.defineProperty(n,"reason",{value:r.reason}),e(S[t],n)}}return(t=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),p.global.dispatchEvent(t),function(t,r){t=t.toLowerCase();var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!0,r),e(S[t],n)}}catch(e){}return function(){return!1}}(),A=p.isNode?function(){return process.emit.apply(process,arguments)}:p.global?function(e){var t="on"+e.toLowerCase(),r=p.global[t];return!!r&&(r.apply(p.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function O(e,t){return{promise:t}}var I={promiseCreated:O,promiseFulfilled:O,promiseRejected:O,promiseResolved:O,promiseCancelled:O,promiseChained:function(e,t,r){return{promise:t,child:r}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,r){return{reason:t,promise:r}},rejectionHandled:O},D=function(e){var t=!1;try{t=A.apply(null,arguments)}catch(e){u.throwLater(e),t=!0}var r=!1;try{r=T(e,I[e].apply(null,arguments))}catch(e){u.throwLater(e),r=!0}return r||t};function N(){return!1}function k(e,t,r){var n=this;try{e(t,r,(function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+p.toString(e));n._attachCancellationCallback(e)}))}catch(e){return e}}function B(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?p.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function L(){return this._onCancelField}function R(e){this._onCancelField=e}function P(){this._cancellationParent=void 0,this._onCancelField=void 0}function j(e,t){if(1&t){this._cancellationParent=e;var r=e._branchesRemainingToCancel;void 0===r&&(r=0),e._branchesRemainingToCancel=r+1}2&t&&e._isBound()&&this._setBoundTo(e._boundTo)}e.config=function(t){if("longStackTraces"in(t=Object(t))&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&w()),"warnings"in t){var r=t.warnings;te.warnings=!!r,C=te.warnings,p.isObject(r)&&"wForgottenReturn"in r&&(C=!!r.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!te.cancellation){if(u.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=P,e.prototype._propagateFrom=j,e.prototype._onCancel=L,e.prototype._setOnCancel=R,e.prototype._attachCancellationCallback=B,e.prototype._execute=k,U=j,te.cancellation=!0}if("monitoring"in t&&(t.monitoring&&!te.monitoring?(te.monitoring=!0,e.prototype._fireEvent=D):!t.monitoring&&te.monitoring&&(te.monitoring=!1,e.prototype._fireEvent=N)),"asyncHooks"in t&&p.nodeSupportsAsyncResource){var a=te.asyncHooks,s=!!t.asyncHooks;a!==s&&(te.asyncHooks=s,s?n():i())}return e},e.prototype._fireEvent=N,e.prototype._execute=function(e,t,r){try{e(t,r)}catch(e){return e}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(e){},e.prototype._attachCancellationCallback=function(e){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._dereferenceTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(e,t){};var U=function(e,t){2&t&&e._isBound()&&this._setBoundTo(e._boundTo)};function F(){var t=this._boundTo;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function K(){this._trace=new J(this._peekContext())}function M(e,t){if(f(e)){var r=this._trace;if(void 0!==r&&t&&(r=r._parent),void 0!==r)r.attachExtraTrace(e);else if(!e.__stackCleaned__){var n=H(e);p.notEnumerableProp(e,"stack",n.message+"\n"+n.stack.join("\n")),p.notEnumerableProp(e,"__stackCleaned__",!0)}}}function V(){this._trace=void 0}function Y(t,r,n){if(te.warnings){var i,a=new l(t);if(r)n._attachExtraTrace(a);else if(te.longStackTraces&&(i=e._peekContext()))i.attachExtraTrace(a);else{var s=H(a);a.stack=s.message+"\n"+s.stack.join("\n")}D("warning",a)||z(a,"",!0)}}function G(e){for(var t=[],r=0;r<e.length;++r){var n=e[r],i=" (No stack trace)"===n||g.test(n),a=i&&Q(n);i&&!a&&(E&&" "!==n.charAt(0)&&(n=" "+n),t.push(n))}return t}function H(e){var t=e.stack,r=e.toString();return t="string"==typeof t&&t.length>0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),r=0;r<t.length;++r){var n=t[r];if(" (No stack trace)"===n||g.test(n))break}return r>0&&"SyntaxError"!=e.name&&(t=t.slice(r)),t}(e):[" (No stack trace)"],{message:r,stack:"SyntaxError"==e.name?t:G(t)}}function z(e,t,r){if("undefined"!=typeof console){var n;if(p.isObject(e)){var i=e.stack;n=t+y(i,e)}else n=t+String(e);"function"==typeof o?o(n,r):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(n)}}function q(e,t,r,n){var i=!1;try{"function"==typeof t&&(i=!0,"rejectionHandled"===e?t(n):t(r,n))}catch(e){u.throwLater(e)}"unhandledRejection"===e?D(e,r,n)||i||z(r,"Unhandled rejection "):D(e,n)}function W(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"==typeof e.toString?e.toString():p.toString(e);if(/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+function(e){var t=41;if(e.length<t)return e;return e.substr(0,t-3)+"..."}(t)+">, no stack trace)"}function $(){return"function"==typeof ee}var Q=function(){return!1},X=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Z(e){var t=e.match(X);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function J(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);ee(this,J),t>32&&this.uncycle()}p.inherits(J,Error),t.CapturedTrace=J,J.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],r={},n=0,i=this;void 0!==i;++n)t.push(i),i=i._parent;for(n=(e=this._length=n)-1;n>=0;--n){var a=t[n].stack;void 0===r[a]&&(r[a]=n)}for(n=0;n<e;++n){var s=r[t[n].stack];if(void 0!==s&&s!==n){s>0&&(t[s-1]._parent=void 0,t[s-1]._length=1),t[n]._parent=void 0,t[n]._length=1;var o=n>0?t[n-1]:this;s<e-1?(o._parent=t[s+1],o._parent.uncycle(),o._length=o._parent._length+1):(o._parent=void 0,o._length=1);for(var c=o._length+1,u=n-2;u>=0;--u)t[u]._length=c,c++;return}}}},J.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=H(e),r=t.message,n=[t.stack],i=this;void 0!==i;)n.push(G(i.stack.split("\n"))),i=i._parent;!function(e){for(var t=e[0],r=1;r<e.length;++r){for(var n=e[r],i=t.length-1,a=t[i],s=-1,o=n.length-1;o>=0;--o)if(n[o]===a){s=o;break}for(o=s;o>=0;--o){var c=n[o];if(t[i]!==c)break;t.pop(),i--}t=n}}(n),function(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}(n),p.notEnumerableProp(e,"stack",function(e,t){for(var r=0;r<t.length-1;++r)t[r].push("From previous event:"),t[r]=t[r].join("\n");return r<t.length&&(t[r]=t[r].join("\n")),e+"\n"+t.join("\n")}(r,n)),p.notEnumerableProp(e,"__stackCleaned__",!0)}};var ee=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():W(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,g=e,y=t;var r=Error.captureStackTrace;return Q=function(e){return h.test(e)},function(e,t){Error.stackTraceLimit+=6,r(e,t),Error.stackTraceLimit-=6}}var n,i=new Error;if("string"==typeof i.stack&&i.stack.split("\n")[0].indexOf("stackDetection@")>=0)return g=/@/,y=t,E=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(e){n="stack"in e}return!("stack"in i)&&n&&"number"==typeof Error.stackTraceLimit?(g=e,y=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}):(y=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?W(t):t.toString()},null)}();"undefined"!=typeof console&&void 0!==console.warn&&(o=function(e){console.warn(e)},p.isNode&&process.stderr.isTTY?o=function(e,t){var r=t?"":"";console.warn(r+e+"\n")}:p.isNode||"string"!=typeof(new Error).stack||(o=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var te={warnings:b,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return x&&e.longStackTraces(),{asyncHooks:function(){return te.asyncHooks},longStackTraces:function(){return te.longStackTraces},warnings:function(){return te.warnings},cancellation:function(){return te.cancellation},monitoring:function(){return te.monitoring},propagateFromFunction:function(){return U},boundValueFunction:function(){return F},checkForgottenReturns:function(e,t,r,n,i){if(void 0===e&&null!==t&&C){if(void 0!==i&&i._returnedNonUndefined())return;if(!(65535&n._bitField))return;r&&(r+=" ");var a="",s="";if(t._trace){for(var o=t._trace.stack.split("\n"),c=G(o),u=c.length-1;u>=0;--u){var l=c[u];if(!m.test(l)){var p=l.match(v);p&&(a="at "+p[1]+":"+p[2]+":"+p[3]+" ");break}}if(c.length>0){var d=c[0];for(u=0;u<o.length;++u)if(o[u]===d){u>0&&(s="\n"+o[u-1]);break}}}var f="a promise was created in a "+r+"handler "+a+"but was not returned from it, see http://goo.gl/rRqMUw"+s;n._warn(f,!0,t)}},setBounds:function(e,t){if($()){for(var r,n,i=(e.stack||"").split("\n"),a=(t.stack||"").split("\n"),s=-1,o=-1,c=0;c<i.length;++c){if(u=Z(i[c])){r=u.fileName,s=u.line;break}}for(c=0;c<a.length;++c){var u;if(u=Z(a[c])){n=u.fileName,o=u.line;break}}s<0||o<0||!r||!n||r!==n||s>=o||(Q=function(e){if(h.test(e))return!0;var t=Z(e);return!!(t&&t.fileName===r&&s<=t.line&&t.line<=o)})}},warn:Y,deprecated:function(e,t){var r=e+" is deprecated and will be removed in a future version.";return t&&(r+=" Use "+t+" instead."),Y(r)},CapturedTrace:J,fireDomEvent:T,fireGlobalEvent:A}}},4393:e=>{"use strict";e.exports=function(e){function t(){return this.value}function r(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(r){return r instanceof e&&r.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:r},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(r,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,r,void 0,{reason:e},void 0);var t=arguments[1];return this.caught(e,(function(){throw t}))},e.prototype.catchReturn=function(r){if(arguments.length<=1)return r instanceof e&&r.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:r},void 0);var n=arguments[1];n instanceof e&&n.suppressUnhandledRejections();return this.caught(r,(function(){return n}))}}},3425:e=>{"use strict";e.exports=function(e,t){var r=e.reduce,n=e.all;function i(){return n(this)}e.prototype.each=function(e){return r(this,e,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return r(this,e,t,t)},e.each=function(e,n){return r(e,n,t,0)._then(i,void 0,void 0,e,void 0)},e.mapSeries=function(e,n){return r(e,n,t,t)}}},403:(e,t,r)=>{"use strict";var n,i,a=r(7585),s=a.freeze,o=r(2208),c=o.inherits,u=o.notEnumerableProp;function l(e,t){function r(n){if(!(this instanceof r))return new r(n);u(this,"message","string"==typeof n?n:t),u(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return c(r,Error),r}var p=l("Warning","warning"),d=l("CancellationError","cancellation error"),f=l("TimeoutError","timeout error"),h=l("AggregateError","aggregate error");try{n=TypeError,i=RangeError}catch(e){n=l("TypeError","type error"),i=l("RangeError","range error")}for(var m="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),v=0;v<m.length;++v)"function"==typeof Array.prototype[m[v]]&&(h.prototype[m[v]]=Array.prototype[m[v]]);a.defineProperty(h.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),h.prototype.isOperational=!0;var g=0;function y(e){if(!(this instanceof y))return new y(e);u(this,"name","OperationalError"),u(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(u(this,"message",e.message),u(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}h.prototype.toString=function(){var e=Array(4*g+1).join(" "),t="\n"+e+"AggregateError of:\n";g++,e=Array(4*g+1).join(" ");for(var r=0;r<this.length;++r){for(var n=this[r]===this?"[Circular AggregateError]":this[r]+"",i=n.split("\n"),a=0;a<i.length;++a)i[a]=e+i[a];t+=(n=i.join("\n"))+"\n"}return g--,t},c(y,Error);var E=Error.__BluebirdErrorTypes__;E||(E=s({CancellationError:d,TimeoutError:f,OperationalError:y,RejectionError:y,AggregateError:h}),a.defineProperty(Error,"__BluebirdErrorTypes__",{value:E,writable:!1,enumerable:!1,configurable:!1})),e.exports={Error,TypeError:n,RangeError:i,CancellationError:E.CancellationError,OperationalError:E.OperationalError,TimeoutError:E.TimeoutError,AggregateError:E.AggregateError,Warning:p}},7585:e=>{var t=function(){"use strict";return void 0===this}();if(t)e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:t,propertyIsWritable:function(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return!(r&&!r.writable&&!r.set)}};else{var r={}.hasOwnProperty,n={}.toString,i={}.constructor.prototype,a=function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(n);return t};e.exports={isArray:function(e){try{return"[object Array]"===n.call(e)}catch(e){return!1}},keys:a,names:a,defineProperty:function(e,t,r){return e[t]=r.value,e},getDescriptor:function(e,t){return{value:e[t]}},freeze:function(e){return e},getPrototypeOf:function(e){try{return Object(e).constructor.prototype}catch(e){return i}},isES5:t,propertyIsWritable:function(){return!0}}}},2730:e=>{"use strict";e.exports=function(e,t){var r=e.map;e.prototype.filter=function(e,n){return r(this,e,n,t)},e.filter=function(e,n,i){return r(e,n,i,t)}}},401:(e,t,r)=>{"use strict";e.exports=function(e,t,n){var i=r(2208),a=e.CancellationError,s=i.errorObj,o=r(1674)(n);function c(e,t,r){this.promise=e,this.type=t,this.handler=r,this.called=!1,this.cancelPromise=null}function u(e){this.finallyHandler=e}function l(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function p(){return f.call(this,this.promise._target()._settledValue())}function d(e){if(!l(this,e))return s.e=e,s}function f(r){var i=this.promise,o=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?o.call(i._boundValue()):o.call(i._boundValue(),r);if(c===n)return c;if(void 0!==c){i._setReturnedNonUndefined();var f=t(c,i);if(f instanceof e){if(null!=this.cancelPromise){if(f._isCancelled()){var h=new a("late cancellation observer");return i._attachExtraTrace(h),s.e=h,s}f.isPending()&&f._attachCancellationCallback(new u(this))}return f._then(p,d,void 0,this,void 0)}}}return i.isRejected()?(l(this),s.e=r,s):(l(this),r)}return c.prototype.isFinallyHandler=function(){return 0===this.type},u.prototype._resultCancelled=function(){l(this.finallyHandler)},e.prototype._passThrough=function(e,t,r,n){return"function"!=typeof e?this.then():this._then(r,n,void 0,new c(this,t,e),void 0)},e.prototype.lastly=e.prototype.finally=function(e){return this._passThrough(e,0,f,f)},e.prototype.tap=function(e){return this._passThrough(e,1,f)},e.prototype.tapCatch=function(t){var r=arguments.length;if(1===r)return this._passThrough(t,1,void 0,f);var n,a=new Array(r-1),s=0;for(n=0;n<r-1;++n){var c=arguments[n];if(!i.isObject(c))return e.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+i.classString(c)));a[s++]=c}a.length=s;var u=arguments[n];return this._passThrough(o(a,u,this),1,void 0,f)},c}},5734:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i,a,s){var o=r(403).TypeError,c=r(2208),u=c.errorObj,l=c.tryCatch,p=[];function d(t,r,i,a){if(s.cancellation()){var o=new e(n),c=this._finallyPromise=new e(n);this._promise=o.lastly((function(){return c})),o._captureStackTrace(),o._setOnCancel(this)}else{(this._promise=new e(n))._captureStackTrace()}this._stack=a,this._generatorFunction=t,this._receiver=r,this._generator=void 0,this._yieldHandlers="function"==typeof i?[i].concat(p):p,this._yieldedPromise=null,this._cancellationPhase=!1}c.inherits(d,a),d.prototype._isResolved=function(){return null===this._promise},d.prototype._cleanup=function(){this._promise=this._generator=null,s.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},d.prototype._promiseCancelled=function(){if(!this._isResolved()){var t;if(void 0!==this._generator.return)this._promise._pushContext(),t=l(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var r=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=r,this._promise._attachExtraTrace(r),this._promise._pushContext(),t=l(this._generator.throw).call(this._generator,r),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(t)}},d.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=l(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},d.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=l(this._generator.throw).call(this._generator,e);this._promise._popContext(),this._continue(t)},d.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null,t.cancel()}},d.prototype.promise=function(){return this._promise},d.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},d.prototype._continue=function(t){var r=this._promise;if(t===u)return this._cleanup(),this._cancellationPhase?r.cancel():r._rejectCallback(t.e,!1);var n=t.value;if(!0===t.done)return this._cleanup(),this._cancellationPhase?r.cancel():r._resolveCallback(n);var a=i(n,this._promise);if(a instanceof e||(a=function(t,r,n){for(var a=0;a<r.length;++a){n._pushContext();var s=l(r[a])(t);if(n._popContext(),s===u){n._pushContext();var o=e.reject(u.e);return n._popContext(),o}var c=i(s,n);if(c instanceof e)return c}return null}(a,this._yieldHandlers,this._promise),null!==a)){var s=(a=a._target())._bitField;50397184&s?33554432&s?e._async.invoke(this._promiseFulfilled,this,a._value()):16777216&s?e._async.invoke(this._promiseRejected,this,a._reason()):this._promiseCancelled():(this._yieldedPromise=a,a._proxy(this,null))}else this._promiseRejected(new o("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(n))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},e.coroutine=function(e,t){if("function"!=typeof e)throw new o("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=Object(t).yieldHandler,n=d,i=(new Error).stack;return function(){var t=e.apply(this,arguments),a=new n(void 0,void 0,r,i),s=a.promise();return a._generator=t,a._promiseFulfilled(void 0),s}},e.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new o("expecting a function but got "+c.classString(e));p.push(e)},e.spawn=function(r){if(s.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof r)return t("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=new d(r,this),i=n.promise();return n._run(e.spawn),i}}},6564:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i,a){var s,o=r(2208),c=o.canEvaluate,u=o.tryCatch,l=o.errorObj;if(c){for(var p=function(e){return new Function("value","holder"," \n 'use strict'; \n holder.pIndex = value; \n holder.checkFulfillment(this); \n ".replace(/Index/g,e))},d=function(e){return new Function("promise","holder"," \n 'use strict'; \n holder.pIndex = promise; \n ".replace(/Index/g,e))},f=function(t){for(var r=new Array(t),n=0;n<r.length;++n)r[n]="this.p"+(n+1);var i=r.join(" = ")+" = null;",s="var promise;\n"+r.map((function(e){return" \n promise = "+e+"; \n if (promise instanceof Promise) { \n promise.cancel(); \n } \n "})).join("\n"),o=r.join(", "),c="Holder$"+t,p="return function(tryCatch, errorObj, Promise, async) { \n 'use strict'; \n function [TheName](fn) { \n [TheProperties] \n this.fn = fn; \n this.asyncNeeded = true; \n this.now = 0; \n } \n \n [TheName].prototype._callFunction = function(promise) { \n promise._pushContext(); \n var ret = tryCatch(this.fn)([ThePassedArguments]); \n promise._popContext(); \n if (ret === errorObj) { \n promise._rejectCallback(ret.e, false); \n } else { \n promise._resolveCallback(ret); \n } \n }; \n \n [TheName].prototype.checkFulfillment = function(promise) { \n var now = ++this.now; \n if (now === [TheTotal]) { \n if (this.asyncNeeded) { \n async.invoke(this._callFunction, this, promise); \n } else { \n this._callFunction(promise); \n } \n \n } \n }; \n \n [TheName].prototype._resultCancelled = function() { \n [CancellationCode] \n }; \n \n return [TheName]; \n }(tryCatch, errorObj, Promise, async); \n ";return p=p.replace(/\[TheName\]/g,c).replace(/\[TheTotal\]/g,t).replace(/\[ThePassedArguments\]/g,o).replace(/\[TheProperties\]/g,i).replace(/\[CancellationCode\]/g,s),new Function("tryCatch","errorObj","Promise","async",p)(u,l,e,a)},h=[],m=[],v=[],g=0;g<8;++g)h.push(f(g+1)),m.push(p(g+1)),v.push(d(g+1));s=function(e){this._reject(e)}}e.join=function(){var r,a=arguments.length-1;if(a>0&&"function"==typeof arguments[a]&&(r=arguments[a],a<=8&&c)){(b=new e(i))._captureStackTrace();for(var u=new(0,h[a-1])(r),l=m,p=0;p<a;++p){var d=n(arguments[p],b);if(d instanceof e){var f=(d=d._target())._bitField;50397184&f?33554432&f?l[p].call(b,d._value(),u):16777216&f?b._reject(d._reason()):b._cancel():(d._then(l[p],s,void 0,b,u),v[p](d,u),u.asyncNeeded=!1)}else l[p].call(b,d,u)}if(!b._isFateSealed()){if(u.asyncNeeded){var g=e._getContext();u.fn=o.contextBind(g,u.fn)}b._setAsyncGuaranteed(),b._setOnCancel(u)}return b}for(var y=arguments.length,E=new Array(y),_=0;_<y;++_)E[_]=arguments[_];r&&E.pop();var b=new t(E).promise();return void 0!==r?b.spread(r):b}}},5956:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i,a,s){var o=r(2208),c=o.tryCatch,u=o.errorObj,l=e._async;function p(t,r,n,i){this.constructor$(t),this._promise._captureStackTrace();var s=e._getContext();if(this._callback=o.contextBind(s,r),this._preservedValues=i===a?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],l.invoke(this._asyncInit,this,void 0),o.isArray(t))for(var c=0;c<t.length;++c){var u=t[c];u instanceof e&&u.suppressUnhandledRejections()}}function d(t,r,i,a){if("function"!=typeof r)return n("expecting a function but got "+o.classString(r));var s=0;if(void 0!==i){if("object"!=typeof i||null===i)return e.reject(new TypeError("options argument must be an object but it is "+o.classString(i)));if("number"!=typeof i.concurrency)return e.reject(new TypeError("'concurrency' must be a number but it is "+o.classString(i.concurrency)));s=i.concurrency}return new p(t,r,s="number"==typeof s&&isFinite(s)&&s>=1?s:0,a).promise()}o.inherits(p,t),p.prototype._asyncInit=function(){this._init$(void 0,-2)},p.prototype._init=function(){},p.prototype._promiseFulfilled=function(t,r){var n=this._values,a=this.length(),o=this._preservedValues,l=this._limit;if(r<0){if(n[r=-1*r-1]=t,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return n[r]=t,this._queue.push(r),!1;null!==o&&(o[r]=t);var p=this._promise,d=this._callback,f=p._boundValue();p._pushContext();var h=c(d).call(f,t,r,a),m=p._popContext();if(s.checkForgottenReturns(h,m,null!==o?"Promise.filter":"Promise.map",p),h===u)return this._reject(h.e),!0;var v=i(h,this._promise);if(v instanceof e){var g=(v=v._target())._bitField;if(!(50397184&g))return l>=1&&this._inFlight++,n[r]=v,v._proxy(this,-1*(r+1)),!1;if(!(33554432&g))return 16777216&g?(this._reject(v._reason()),!0):(this._cancel(),!0);h=v._value()}n[r]=h}return++this._totalResolved>=a&&(null!==o?this._filter(n,o):this._resolve(n),!0)},p.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,r=this._values;e.length>0&&this._inFlight<t;){if(this._isResolved())return;var n=e.pop();this._promiseFulfilled(r[n],n)}},p.prototype._filter=function(e,t){for(var r=t.length,n=new Array(r),i=0,a=0;a<r;++a)e[a]&&(n[i++]=t[a]);n.length=i,this._resolve(n)},p.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(e,t){return d(this,e,t,null)},e.map=function(e,t,r,n){return d(e,t,r,n)}}},6241:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i,a){var s=r(2208),o=s.tryCatch;e.method=function(r){if("function"!=typeof r)throw new e.TypeError("expecting a function but got "+s.classString(r));return function(){var n=new e(t);n._captureStackTrace(),n._pushContext();var i=o(r).apply(this,arguments),s=n._popContext();return a.checkForgottenReturns(i,s,"Promise.method",n),n._resolveFromSyncValue(i),n}},e.attempt=e.try=function(r){if("function"!=typeof r)return i("expecting a function but got "+s.classString(r));var n,c=new e(t);if(c._captureStackTrace(),c._pushContext(),arguments.length>1){a.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],l=arguments[2];n=s.isArray(u)?o(r).apply(l,u):o(r).call(l,u)}else n=o(r)();var p=c._popContext();return a.checkForgottenReturns(n,p,"Promise.try",c),c._resolveFromSyncValue(n),c},e.prototype._resolveFromSyncValue=function(e){e===s.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},1231:(e,t,r)=>{"use strict";var n=r(2208),i=n.maybeWrapAsError,a=r(403).OperationalError,s=r(7585);var o=/^(?:name|message|stack|cause)$/;function c(e){var t;if(function(e){return e instanceof Error&&s.getPrototypeOf(e)===Error.prototype}(e)){(t=new a(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var r=s.keys(e),i=0;i<r.length;++i){var c=r[i];o.test(c)||(t[c]=e[c])}return t}return n.markAsOriginatingFromRejection(e),e}e.exports=function(e,t){return function(r,n){if(null!==e){if(r){var a=c(i(r));e._attachExtraTrace(a),e._reject(a)}else if(t){for(var s=arguments.length,o=new Array(Math.max(s-1,0)),u=1;u<s;++u)o[u-1]=arguments[u];e._fulfill(o)}else e._fulfill(n);e=null}}}},6340:(e,t,r)=>{"use strict";e.exports=function(e){var t=r(2208),n=e._async,i=t.tryCatch,a=t.errorObj;function s(e,r){if(!t.isArray(e))return o.call(this,e,r);var s=i(r).apply(this._boundValue(),[null].concat(e));s===a&&n.throwLater(s.e)}function o(e,t){var r=this._boundValue(),s=void 0===e?i(t).call(r,null):i(t).call(r,null,e);s===a&&n.throwLater(s.e)}function c(e,t){if(!e){var r=new Error(e+"");r.cause=e,e=r}var s=i(t).call(this._boundValue(),e);s===a&&n.throwLater(s.e)}e.prototype.asCallback=e.prototype.nodeify=function(e,t){if("function"==typeof e){var r=o;void 0!==t&&Object(t).spread&&(r=s),this._then(r,c,void 0,this,e)}return this}}},9979:(e,t,r)=>{"use strict";e.exports=function(){var t=function(){return new g("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},n=function(){return new k.PromiseInspection(this._target())},i=function(e){return k.reject(new g(e))};function a(){}var s={},o=r(2208);o.setReflectHandler(n);var c=function(){var e=process.domain;return void 0===e?null:e},u=function(){return{domain:c(),async:null}},l=o.isNode&&o.nodeSupportsAsyncResource?r(290).AsyncResource:null,p=function(){return{domain:c(),async:new l("Bluebird::Promise")}},d=o.isNode?u:function(){return null};o.notEnumerableProp(k,"_getContext",d);var f=r(7585),h=r(8210),m=new h;f.defineProperty(k,"_async",{value:m});var v=r(403),g=k.TypeError=v.TypeError;k.RangeError=v.RangeError;var y=k.CancellationError=v.CancellationError;k.TimeoutError=v.TimeoutError,k.OperationalError=v.OperationalError,k.RejectionError=v.OperationalError,k.AggregateError=v.AggregateError;var E=function(){},_={},b={},x=r(8974)(k,E),C=r(2661)(k,E,x,i,a),w=r(297)(k),S=w.create,T=r(6636)(k,w,(function(){d=p,o.notEnumerableProp(k,"_getContext",p)}),(function(){d=u,o.notEnumerableProp(k,"_getContext",u)})),A=(T.CapturedTrace,r(401)(k,x,b)),O=r(1674)(b),I=r(1231),D=o.errorObj,N=o.tryCatch;function k(e){e!==E&&function(e,t){if(null==e||e.constructor!==k)throw new g("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof t)throw new g("expecting a function but got "+o.classString(t))}(this,e),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(e),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function B(e){this.promise._resolveCallback(e)}function L(e){this.promise._rejectCallback(e,!1)}function R(e){var t=new k(E);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return k.prototype.toString=function(){return"[object Promise]"},k.prototype.caught=k.prototype.catch=function(e){var t=arguments.length;if(t>1){var r,n=new Array(t-1),a=0;for(r=0;r<t-1;++r){var s=arguments[r];if(!o.isObject(s))return i("Catch statement predicate: expecting an object but got "+o.classString(s));n[a++]=s}if(n.length=a,"function"!=typeof(e=arguments[r]))throw new g("The last argument to .catch() must be a function, got "+o.toString(e));return this.then(void 0,O(n,e,this))}return this.then(void 0,e)},k.prototype.reflect=function(){return this._then(n,n,void 0,this,void 0)},k.prototype.then=function(e,t){if(T.warnings()&&arguments.length>0&&"function"!=typeof e&&"function"!=typeof t){var r=".then() only accepts functions but was passed: "+o.classString(e);arguments.length>1&&(r+=", "+o.classString(t)),this._warn(r)}return this._then(e,t,void 0,void 0,void 0)},k.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},k.prototype.spread=function(e){return"function"!=typeof e?i("expecting a function but got "+o.classString(e)):this.all()._then(e,void 0,void 0,_,void 0)},k.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},k.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new C(this).promise()},k.prototype.error=function(e){return this.caught(o.originatesFromRejection,e)},k.getNewLibraryCopy=e.exports,k.is=function(e){return e instanceof k},k.fromNode=k.fromCallback=function(e){var t=new k(E);t._captureStackTrace();var r=arguments.length>1&&!!Object(arguments[1]).multiArgs,n=N(e)(I(t,r));return n===D&&t._rejectCallback(n.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},k.all=function(e){return new C(e).promise()},k.cast=function(e){var t=x(e);return t instanceof k||((t=new k(E))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},k.resolve=k.fulfilled=k.cast,k.reject=k.rejected=function(e){var t=new k(E);return t._captureStackTrace(),t._rejectCallback(e,!0),t},k.setScheduler=function(e){if("function"!=typeof e)throw new g("expecting a function but got "+o.classString(e));return m.setScheduler(e)},k.prototype._then=function(e,t,r,n,i){var a=void 0!==i,s=a?i:new k(E),c=this._target(),u=c._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===n&&2097152&this._bitField&&(n=50397184&u?this._boundValue():c===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var l=d();if(50397184&u){var p,f,h=c._settlePromiseCtx;33554432&u?(f=c._rejectionHandler0,p=e):16777216&u?(f=c._fulfillmentHandler0,p=t,c._unsetRejectionIsUnhandled()):(h=c._settlePromiseLateCancellationObserver,f=new y("late cancellation observer"),c._attachExtraTrace(f),p=t),m.invoke(h,c,{handler:o.contextBind(l,p),promise:s,receiver:n,value:f})}else c._addCallbacks(e,t,s,n,l);return s},k.prototype._length=function(){return 65535&this._bitField},k.prototype._isFateSealed=function(){return!!(117506048&this._bitField)},k.prototype._isFollowing=function(){return!(67108864&~this._bitField)},k.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},k.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},k.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},k.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},k.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},k.prototype._isFinal=function(){return(4194304&this._bitField)>0},k.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},k.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},k.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},k.prototype._setAsyncGuaranteed=function(){if(!m.hasCustomScheduler()){var e=this._bitField;this._bitField=e|(536870912&e)>>2^134217728}},k.prototype._setNoAsyncGuarantee=function(){this._bitField=-134217729&this._bitField|536870912},k.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==s)return void 0===t&&this._isBound()?this._boundValue():t},k.prototype._promiseAt=function(e){return this[4*e-4+2]},k.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},k.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},k.prototype._boundValue=function(){},k.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,r=e._rejectionHandler0,n=e._promise0,i=e._receiverAt(0);void 0===i&&(i=s),this._addCallbacks(t,r,n,i,null)},k.prototype._migrateCallbackAt=function(e,t){var r=e._fulfillmentHandlerAt(t),n=e._rejectionHandlerAt(t),i=e._promiseAt(t),a=e._receiverAt(t);void 0===a&&(a=s),this._addCallbacks(r,n,i,a,null)},k.prototype._addCallbacks=function(e,t,r,n,i){var a=this._length();if(a>=65531&&(a=0,this._setLength(0)),0===a)this._promise0=r,this._receiver0=n,"function"==typeof e&&(this._fulfillmentHandler0=o.contextBind(i,e)),"function"==typeof t&&(this._rejectionHandler0=o.contextBind(i,t));else{var s=4*a-4;this[s+2]=r,this[s+3]=n,"function"==typeof e&&(this[s+0]=o.contextBind(i,e)),"function"==typeof t&&(this[s+1]=o.contextBind(i,t))}return this._setLength(a+1),a},k.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},k.prototype._resolveCallback=function(e,r){if(!(117506048&this._bitField)){if(e===this)return this._rejectCallback(t(),!1);var n=x(e,this);if(!(n instanceof k))return this._fulfill(e);r&&this._propagateFrom(n,2);var i=n._target();if(i!==this){var a=i._bitField;if(50397184&a)if(33554432&a)this._fulfill(i._value());else if(16777216&a)this._reject(i._reason());else{var s=new y("late cancellation observer");i._attachExtraTrace(s),this._reject(s)}else{var o=this._length();o>0&&i._migrateCallback0(this);for(var c=1;c<o;++c)i._migrateCallbackAt(this,c);this._setFollowing(),this._setLength(0),this._setFollowee(n)}}else this._reject(t())}},k.prototype._rejectCallback=function(e,t,r){var n=o.ensureErrorObject(e),i=n===e;if(!i&&!r&&T.warnings()){var a="a promise was rejected with a non-error: "+o.classString(e);this._warn(a,!0)}this._attachExtraTrace(n,!!t&&i),this._reject(e)},k.prototype._resolveFromExecutor=function(e){if(e!==E){var t=this;this._captureStackTrace(),this._pushContext();var r=!0,n=this._execute(e,(function(e){t._resolveCallback(e)}),(function(e){t._rejectCallback(e,r)}));r=!1,this._popContext(),void 0!==n&&t._rejectCallback(n,!0)}},k.prototype._settlePromiseFromHandler=function(e,t,r,n){var i=n._bitField;if(!(65536&i)){var a;n._pushContext(),t===_?r&&"number"==typeof r.length?a=N(e).apply(this._boundValue(),r):(a=D).e=new g("cannot .spread() a non-array: "+o.classString(r)):a=N(e).call(t,r);var s=n._popContext();65536&(i=n._bitField)||(a===b?n._reject(r):a===D?n._rejectCallback(a.e,!1):(T.checkForgottenReturns(a,s,"",n,this),n._resolveCallback(a)))}},k.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},k.prototype._followee=function(){return this._rejectionHandler0},k.prototype._setFollowee=function(e){this._rejectionHandler0=e},k.prototype._settlePromise=function(e,t,r,i){var s=e instanceof k,o=this._bitField,c=!!(134217728&o);65536&o?(s&&e._invokeInternalOnCancel(),r instanceof A&&r.isFinallyHandler()?(r.cancelPromise=e,N(t).call(r,i)===D&&e._reject(D.e)):t===n?e._fulfill(n.call(r)):r instanceof a?r._promiseCancelled(e):s||e instanceof C?e._cancel():r.cancel()):"function"==typeof t?s?(c&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,r,i,e)):t.call(r,i,e):r instanceof a?r._isResolved()||(33554432&o?r._promiseFulfilled(i,e):r._promiseRejected(i,e)):s&&(c&&e._setAsyncGuaranteed(),33554432&o?e._fulfill(i):e._reject(i))},k.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,r=e.promise,n=e.receiver,i=e.value;"function"==typeof t?r instanceof k?this._settlePromiseFromHandler(t,n,i,r):t.call(n,i,r):r instanceof k&&r._reject(i)},k.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},k.prototype._settlePromise0=function(e,t,r){var n=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(n,e,i,t)},k.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},k.prototype._fulfill=function(e){var r=this._bitField;if(!((117506048&r)>>>16)){if(e===this){var n=t();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&r)>0&&(134217728&r?this._settlePromises():m.settlePromises(this),this._dereferenceTrace())}},k.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return m.fatalError(e,o.isNode);(65535&t)>0?m.settlePromises(this):this._ensurePossibleRejectionHandled()}},k.prototype._fulfillPromises=function(e,t){for(var r=1;r<e;r++){var n=this._fulfillmentHandlerAt(r),i=this._promiseAt(r),a=this._receiverAt(r);this._clearCallbackDataAtIndex(r),this._settlePromise(i,n,a,t)}},k.prototype._rejectPromises=function(e,t){for(var r=1;r<e;r++){var n=this._rejectionHandlerAt(r),i=this._promiseAt(r),a=this._receiverAt(r);this._clearCallbackDataAtIndex(r),this._settlePromise(i,n,a,t)}},k.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(16842752&e){var r=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,r,e),this._rejectPromises(t,r)}else{var n=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,n,e),this._fulfillPromises(t,n)}this._setLength(0)}this._clearCancellationData()},k.prototype._settledValue=function(){var e=this._bitField;return 33554432&e?this._rejectionHandler0:16777216&e?this._fulfillmentHandler0:void 0},"undefined"!=typeof Symbol&&Symbol.toStringTag&&f.defineProperty(k.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),k.defer=k.pending=function(){return T.deprecated("Promise.defer","new Promise"),{promise:new k(E),resolve:B,reject:L}},o.notEnumerableProp(k,"_makeSelfResolutionError",t),r(6241)(k,E,x,i,T),r(4271)(k,E,x,T),r(2994)(k,C,i,T),r(4393)(k),r(4900)(k),r(6564)(k,C,x,E,m),k.Promise=k,k.version="3.7.2",r(1675)(k),r(5734)(k,i,E,x,a,T),r(5956)(k,C,i,x,E,T),r(6340)(k),r(5818)(k,E),r(4416)(k,C,x,i),r(3381)(k,E,x,i),r(8722)(k,C,i,x,E,T),r(9047)(k,C,T),r(7784)(k,C,i),r(6406)(k,E,T),r(6178)(k,i,x,S,E,T),r(7988)(k),r(3425)(k,E),r(2730)(k,E),o.toFastProperties(k),o.toFastProperties(k.prototype),R({a:1}),R({b:2}),R({c:3}),R(1),R((function(){})),R(void 0),R(!1),R(new k(E)),T.setBounds(h.firstLineError,o.lastLineError),k}},2661:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i,a){var s=r(2208);s.isArray;function o(r){var n=this._promise=new e(t);r instanceof e&&(n._propagateFrom(r,3),r.suppressUnhandledRejections()),n._setOnCancel(this),this._values=r,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return s.inherits(o,a),o.prototype.length=function(){return this._length},o.prototype.promise=function(){return this._promise},o.prototype._init=function t(r,a){var o=n(this._values,this._promise);if(o instanceof e){var c=(o=o._target())._bitField;if(this._values=o,!(50397184&c))return this._promise._setAsyncGuaranteed(),o._then(t,this._reject,void 0,this,a);if(!(33554432&c))return 16777216&c?this._reject(o._reason()):this._cancel();o=o._value()}if(null!==(o=s.asArray(o)))0!==o.length?this._iterate(o):-5===a?this._resolveEmptyArray():this._resolve(function(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}(a));else{var u=i("expecting an array or an iterable object but got "+s.classString(o)).reason();this._promise._rejectCallback(u,!1)}},o.prototype._iterate=function(t){var r=this.getActualLength(t.length);this._length=r,this._values=this.shouldCopyValues()?new Array(r):this._values;for(var i=this._promise,a=!1,s=null,o=0;o<r;++o){var c=n(t[o],i);s=c instanceof e?(c=c._target())._bitField:null,a?null!==s&&c.suppressUnhandledRejections():null!==s?50397184&s?a=33554432&s?this._promiseFulfilled(c._value(),o):16777216&s?this._promiseRejected(c._reason(),o):this._promiseCancelled(o):(c._proxy(this,o),this._values[o]=c):a=this._promiseFulfilled(c,o)}a||i._setAsyncGuaranteed()},o.prototype._isResolved=function(){return null===this._values},o.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},o.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},o.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},o.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseCancelled=function(){return this._cancel(),!0},o.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},o.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var r=0;r<t.length;++r)t[r]instanceof e&&t[r].cancel()}},o.prototype.shouldCopyValues=function(){return!0},o.prototype.getActualLength=function(e){return e},o}},5818:(e,t,r)=>{"use strict";e.exports=function(e,t){var n={},i=r(2208),a=r(1231),s=i.withAppended,o=i.maybeWrapAsError,c=i.canEvaluate,u=r(403).TypeError,l={__isPromisified__:!0},p=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),d=function(e){return i.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function f(e){return!p.test(e)}function h(e){try{return!0===e.__isPromisified__}catch(e){return!1}}function m(e,t,r){var n=i.getDataPropertyOrDefault(e,t+r,l);return!!n&&h(n)}function v(e,t,r,n){for(var a=i.inheritedDataKeys(e),s=[],o=0;o<a.length;++o){var c=a[o],l=e[c],p=n===d||d(c,l,e);"function"!=typeof l||h(l)||m(e,c,t)||!n(c,l,e,p)||s.push(c,l)}return function(e,t,r){for(var n=0;n<e.length;n+=2){var i=e[n];if(r.test(i))for(var a=i.replace(r,""),s=0;s<e.length;s+=2)if(e[s]===a)throw new u("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}(s,t,r),s}var g;g=function(r,c,u,l,p,d){var f=Math.max(0,function(e){return"number"==typeof e.length?Math.max(Math.min(e.length,1024),0):0}(l)-1),h=function(e){for(var t=[e],r=Math.max(0,e-1-3),n=e-1;n>=r;--n)t.push(n);for(n=e+1;n<=3;++n)t.push(n);return t}(f),m="string"==typeof r||c===n;function v(e){var t,r=(t=e,i.filledRange(t,"_arg","")).join(", "),n=e>0?", ":"";return(m?"ret = callback.call(this, {{args}}, nodeback); break;\n":void 0===c?"ret = callback({{args}}, nodeback); break;\n":"ret = callback.call(receiver, {{args}}, nodeback); break;\n").replace("{{args}}",r).replace(", ",n)}var g="string"==typeof r?"this != null ? this['"+r+"'] : fn":"fn",y="'use strict'; \n var ret = function (Parameters) { \n 'use strict'; \n var len = arguments.length; \n var promise = new Promise(INTERNAL); \n promise._captureStackTrace(); \n var nodeback = nodebackForPromise(promise, "+d+"); \n var ret; \n var callback = tryCatch([GetFunctionCode]); \n switch(len) { \n [CodeForSwitchCase] \n } \n if (ret === errorObj) { \n promise._rejectCallback(maybeWrapAsError(ret.e), true, true);\n } \n if (!promise._isFateSealed()) promise._setAsyncGuaranteed(); \n return promise; \n }; \n notEnumerableProp(ret, '__isPromisified__', true); \n return ret; \n ".replace("[CodeForSwitchCase]",function(){for(var e="",t=0;t<h.length;++t)e+="case "+h[t]+":"+v(h[t]);return e+=" \n default: \n var args = new Array(len + 1); \n var i = 0; \n for (var i = 0; i < len; ++i) { \n args[i] = arguments[i]; \n } \n args[i] = nodeback; \n [CodeForCall] \n break; \n ".replace("[CodeForCall]",m?"ret = callback.apply(this, args);\n":"ret = callback.apply(receiver, args);\n")}()).replace("[GetFunctionCode]",g);return y=y.replace("Parameters",function(e){return i.filledRange(Math.max(e,3),"_arg","")}(f)),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",y)(e,l,c,s,o,a,i.tryCatch,i.errorObj,i.notEnumerableProp,t)};var y=c?g:function(r,c,u,l,p,d){var f=function(){return this}(),h=r;function m(){var i=c;c===n&&(i=this);var u=new e(t);u._captureStackTrace();var l="string"==typeof h&&this!==f?this[h]:r,p=a(u,d);try{l.apply(i,s(arguments,p))}catch(e){u._rejectCallback(o(e),!0,!0)}return u._isFateSealed()||u._setAsyncGuaranteed(),u}return"string"==typeof h&&(r=l),i.notEnumerableProp(m,"__isPromisified__",!0),m};function E(e,t,r,a,s){for(var o=new RegExp(t.replace(/([$])/,"\\$")+"$"),c=v(e,t,o,r),u=0,l=c.length;u<l;u+=2){var p=c[u],d=c[u+1],f=p+t;if(a===y)e[f]=y(p,n,p,d,t,s);else{var h=a(d,(function(){return y(p,n,p,d,t,s)}));i.notEnumerableProp(h,"__isPromisified__",!0),e[f]=h}}return i.toFastProperties(e),e}e.promisify=function(e,t){if("function"!=typeof e)throw new u("expecting a function but got "+i.classString(e));if(h(e))return e;var r=function(e,t,r){return y(e,t,void 0,e,null,r)}(e,void 0===(t=Object(t)).context?n:t.context,!!t.multiArgs);return i.copyDescriptors(e,r,f),r},e.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!=typeof e)throw new u("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var r=!!(t=Object(t)).multiArgs,n=t.suffix;"string"!=typeof n&&(n="Async");var a=t.filter;"function"!=typeof a&&(a=d);var s=t.promisifier;if("function"!=typeof s&&(s=y),!i.isIdentifier(n))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var o=i.inheritedDataKeys(e),c=0;c<o.length;++c){var l=e[o[c]];"constructor"!==o[c]&&i.isClass(l)&&(E(l.prototype,n,a,s,r),E(l,n,a,s,r))}return E(e,n,a,s,r)}}},4416:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i){var a,s=r(2208),o=s.isObject,c=r(7585);"function"==typeof Map&&(a=Map);var u=function(){var e=0,t=0;function r(r,n){this[e]=r,this[e+t]=n,e++}return function(n){t=n.size,e=0;var i=new Array(2*n.size);return n.forEach(r,i),i}}();function l(e){var t,r=!1;if(void 0!==a&&e instanceof a)t=u(e),r=!0;else{var n=c.keys(e),i=n.length;t=new Array(2*i);for(var s=0;s<i;++s){var o=n[s];t[s]=e[o],t[s+i]=o}}this.constructor$(t),this._isMap=r,this._init$(void 0,r?-6:-3)}function p(t){var r,a=n(t);return o(a)?(r=a instanceof e?a._then(e.props,void 0,void 0,void 0,void 0):new l(a).promise(),a instanceof e&&r._propagateFrom(a,2),r):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}s.inherits(l,t),l.prototype._init=function(){},l.prototype._promiseFulfilled=function(e,t){if(this._values[t]=e,++this._totalResolved>=this._length){var r;if(this._isMap)r=function(e){for(var t=new a,r=e.length/2|0,n=0;n<r;++n){var i=e[r+n],s=e[n];t.set(i,s)}return t}(this._values);else{r={};for(var n=this.length(),i=0,s=this.length();i<s;++i)r[this._values[i+n]]=this._values[i]}return this._resolve(r),!0}return!1},l.prototype.shouldCopyValues=function(){return!1},l.prototype.getActualLength=function(e){return e>>1},e.prototype.props=function(){return p(this)},e.props=function(e){return p(e)}}},9937:e=>{"use strict";function t(e){this._capacity=e,this._length=0,this._front=0}t.prototype._willBeOverCapacity=function(e){return this._capacity<e},t.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1),this[this._front+t&this._capacity-1]=e,this._length=t+1},t.prototype.push=function(e,t,r){var n=this.length()+3;if(this._willBeOverCapacity(n))return this._pushOne(e),this._pushOne(t),void this._pushOne(r);var i=this._front+n-3;this._checkCapacity(n);var a=this._capacity-1;this[i+0&a]=e,this[i+1&a]=t,this[i+2&a]=r,this._length=n},t.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},t.prototype.length=function(){return this._length},t.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},t.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e,function(e,t,r,n,i){for(var a=0;a<i;++a)r[a+n]=e[a+t],e[a+t]=void 0}(this,0,this,t,this._front+this._length&t-1)},e.exports=t},3381:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i){var a=r(2208);function s(r,o){var c,u=n(r);if(u instanceof e)return(c=u).then((function(e){return s(e,c)}));if(null===(r=a.asArray(r)))return i("expecting an array or an iterable object but got "+a.classString(r));var l=new e(t);void 0!==o&&l._propagateFrom(o,3);for(var p=l._fulfill,d=l._reject,f=0,h=r.length;f<h;++f){var m=r[f];(void 0!==m||f in r)&&e.cast(m)._then(p,d,void 0,l,null)}return l}e.race=function(e){return s(e,void 0)},e.prototype.race=function(){return s(this,void 0)}}},8722:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i,a,s){var o=r(2208),c=o.tryCatch;function u(t,r,n,i){this.constructor$(t);var s=e._getContext();this._fn=o.contextBind(s,r),void 0!==n&&(n=e.resolve(n))._attachCancellationCallback(this),this._initialValue=n,this._currentCancellable=null,this._eachValues=i===a?Array(this._length):0===i?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function l(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function p(e,t,r,i){return"function"!=typeof t?n("expecting a function but got "+o.classString(t)):new u(e,t,r,i).promise()}function d(t){this.accum=t,this.array._gotAccum(t);var r=i(this.value,this.array._promise);return r instanceof e?(this.array._currentCancellable=r,r._then(f,void 0,void 0,this,void 0)):f.call(this,r)}function f(t){var r,n=this.array,i=n._promise,a=c(n._fn);i._pushContext(),(r=void 0!==n._eachValues?a.call(i._boundValue(),t,this.index,this.length):a.call(i._boundValue(),this.accum,t,this.index,this.length))instanceof e&&(n._currentCancellable=r);var o=i._popContext();return s.checkForgottenReturns(r,o,void 0!==n._eachValues?"Promise.each":"Promise.reduce",i),r}o.inherits(u,t),u.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==a&&this._eachValues.push(e)},u.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},u.prototype._init=function(){},u.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},u.prototype.shouldCopyValues=function(){return!1},u.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},u.prototype._resultCancelled=function(t){if(t===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel())},u.prototype._iterate=function(t){var r,n;this._values=t;var i=t.length;void 0!==this._initialValue?(r=this._initialValue,n=0):(r=e.resolve(t[0]),n=1),this._currentCancellable=r;for(var a=n;a<i;++a){var s=t[a];s instanceof e&&s.suppressUnhandledRejections()}if(!r.isRejected())for(;n<i;++n){var o={accum:null,value:t[n],index:n,length:i,array:this};r=r._then(d,void 0,void 0,o,void 0),127&n||r._setNoAsyncGuarantee()}void 0!==this._eachValues&&(r=r._then(this._eachComplete,void 0,void 0,this,void 0)),r._then(l,l,void 0,r,this)},e.prototype.reduce=function(e,t){return p(this,e,t,null)},e.reduce=function(e,t,r,n){return p(e,t,r,n)}}},1065:(e,t,r)=>{"use strict";var n,i=r(2208),a=i.getNativePromise();if(i.isNode&&"undefined"==typeof MutationObserver){var s=global.setImmediate,o=process.nextTick;n=i.isRecentNode?function(e){s.call(global,e)}:function(e){o.call(process,e)}}else if("function"==typeof a&&"function"==typeof a.resolve){var c=a.resolve();n=function(e){c.then(e)}}else n="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)||!("classList"in document.documentElement)?"undefined"!=typeof setImmediate?function(e){setImmediate(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}:function(){var e=document.createElement("div"),t={attributes:!0},r=!1,n=document.createElement("div");new MutationObserver((function(){e.classList.toggle("foo"),r=!1})).observe(n,t);return function(i){var a=new MutationObserver((function(){a.disconnect(),i()}));a.observe(e,t),r||(r=!0,n.classList.toggle("foo"))}}();e.exports=n},9047:(e,t,r)=>{"use strict";e.exports=function(e,t,n){var i=e.PromiseInspection;function a(e){this.constructor$(e)}r(2208).inherits(a,t),a.prototype._promiseResolved=function(e,t){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseFulfilled=function(e,t){var r=new i;return r._bitField=33554432,r._settledValueField=e,this._promiseResolved(t,r)},a.prototype._promiseRejected=function(e,t){var r=new i;return r._bitField=16777216,r._settledValueField=e,this._promiseResolved(t,r)},e.settle=function(e){return n.deprecated(".settle()",".reflect()"),new a(e).promise()},e.allSettled=function(e){return new a(e).promise()},e.prototype.settle=function(){return e.settle(this)}}},7784:(e,t,r)=>{"use strict";e.exports=function(e,t,n){var i=r(2208),a=r(403).RangeError,s=r(403).AggregateError,o=i.isArray,c={};function u(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function l(e,t){if((0|t)!==t||t<0)return n("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var r=new u(e),i=r.promise();return r.setHowMany(t),r.init(),i}i.inherits(u,t),u.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=o(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(e){this._howMany=e},u.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},u.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new s,t=this.length();t<this._values.length;++t)this._values[t]!==c&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(e){this._values.push(e)},u.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new a(t)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(e,t){return l(e,t)},e.prototype.some=function(e){return l(this,e)},e._SomePromiseArray=u}},4900:e=>{"use strict";e.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var r=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},n=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return!!(33554432&this._bitField)},a=t.prototype.isRejected=function(){return!!(16777216&this._bitField)},s=t.prototype.isPending=function(){return!(50397184&this._bitField)},o=t.prototype.isResolved=function(){return!!(50331648&this._bitField)};t.prototype.isCancelled=function(){return!!(8454144&this._bitField)},e.prototype.__isCancelled=function(){return!(65536&~this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return!!(8454144&this._target()._bitField)},e.prototype.isPending=function(){return s.call(this._target())},e.prototype.isRejected=function(){return a.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return o.call(this._target())},e.prototype.value=function(){return r.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),n.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},8974:(e,t,r)=>{"use strict";e.exports=function(e,t){var n=r(2208),i=n.errorObj,a=n.isObject;var s={}.hasOwnProperty;return function(r,o){if(a(r)){if(r instanceof e)return r;var c=function(e){try{return function(e){return e.then}(e)}catch(e){return i.e=e,i}}(r);if(c===i){o&&o._pushContext();var u=e.reject(c.e);return o&&o._popContext(),u}if("function"==typeof c){if(function(e){try{return s.call(e,"_promise0")}catch(e){return!1}}(r)){u=new e(t);return r._then(u._fulfill,u._reject,void 0,u,null),u}return function(r,a,s){var o=new e(t),c=o;s&&s._pushContext();o._captureStackTrace(),s&&s._popContext();var u=!0,l=n.tryCatch(a).call(r,p,d);u=!1,o&&l===i&&(o._rejectCallback(l.e,!0,!0),o=null);function p(e){o&&(o._resolveCallback(e),o=null)}function d(e){o&&(o._rejectCallback(e,u,!0),o=null)}return c}(r,c,o)}}return r}}},6406:(e,t,r)=>{"use strict";e.exports=function(e,t,n){var i=r(2208),a=e.TimeoutError;function s(e){this.handle=e}s.prototype._resultCancelled=function(){clearTimeout(this.handle)};var o=function(e){return c(+this).thenReturn(e)},c=e.delay=function(r,i){var a,c;return void 0!==i?(a=e.resolve(i)._then(o,null,null,r,void 0),n.cancellation()&&i instanceof e&&a._setOnCancel(i)):(a=new e(t),c=setTimeout((function(){a._fulfill()}),+r),n.cancellation()&&a._setOnCancel(new s(c)),a._captureStackTrace()),a._setAsyncGuaranteed(),a};e.prototype.delay=function(e){return c(e,this)};function u(e){return clearTimeout(this.handle),e}function l(e){throw clearTimeout(this.handle),e}e.prototype.timeout=function(e,t){var r,o;e=+e;var c=new s(setTimeout((function(){r.isPending()&&function(e,t,r){var n;n="string"!=typeof t?t instanceof Error?t:new a("operation timed out"):new a(t),i.markAsOriginatingFromRejection(n),e._attachExtraTrace(n),e._reject(n),null!=r&&r.cancel()}(r,t,o)}),e));return n.cancellation()?(o=this.then(),(r=o._then(u,l,void 0,c,void 0))._setOnCancel(c)):r=this._then(u,l,void 0,c,void 0),r}}},6178:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i,a,s){var o=r(2208),c=r(403).TypeError,u=r(2208).inherits,l=o.errorObj,p=o.tryCatch,d={};function f(e){setTimeout((function(){throw e}),0)}function h(t,r){var i=0,s=t.length,o=new e(a);return function a(){if(i>=s)return o._fulfill();var c=function(e){var t=n(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}(t[i++]);if(c instanceof e&&c._isDisposable()){try{c=n(c._getDisposer().tryDispose(r),t.promise)}catch(e){return f(e)}if(c instanceof e)return c._then(a,f,null,null,null)}a()}(),o}function m(e,t,r){this._data=e,this._promise=t,this._context=r}function v(e,t,r){this.constructor$(e,t,r)}function g(e){return m.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function y(e){this.length=e,this.promise=null,this[e-1]=null}m.prototype.data=function(){return this._data},m.prototype.promise=function(){return this._promise},m.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():d},m.prototype.tryDispose=function(e){var t=this.resource(),r=this._context;void 0!==r&&r._pushContext();var n=t!==d?this.doDispose(t,e):null;return void 0!==r&&r._popContext(),this._promise._unsetDisposable(),this._data=null,n},m.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},u(v,m),v.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},y.prototype._resultCancelled=function(){for(var t=this.length,r=0;r<t;++r){var n=this[r];n instanceof e&&n.cancel()}},e.using=function(){var r=arguments.length;if(r<2)return t("you must pass at least 2 arguments to Promise.using");var i,a=arguments[r-1];if("function"!=typeof a)return t("expecting a function but got "+o.classString(a));var c=!0;2===r&&Array.isArray(arguments[0])?(r=(i=arguments[0]).length,c=!1):(i=arguments,r--);for(var u=new y(r),d=0;d<r;++d){var f=i[d];if(m.isDisposer(f)){var v=f;(f=f.promise())._setDisposable(v)}else{var E=n(f);E instanceof e&&(f=E._then(g,null,null,{resources:u,index:d},void 0))}u[d]=f}var _=new Array(u.length);for(d=0;d<_.length;++d)_[d]=e.resolve(u[d]).reflect();var b=e.all(_).then((function(e){for(var t=0;t<e.length;++t){var r=e[t];if(r.isRejected())return l.e=r.error(),l;if(!r.isFulfilled())return void b.cancel();e[t]=r.value()}x._pushContext(),a=p(a);var n=c?a.apply(void 0,e):a(e),i=x._popContext();return s.checkForgottenReturns(n,i,"Promise.using",x),n})),x=b.lastly((function(){var t=new e.PromiseInspection(b);return h(u,t)}));return u.promise=x,x._setOnCancel(u),x},e.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},e.prototype._isDisposable=function(){return(131072&this._bitField)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(e){if("function"==typeof e)return new v(e,this,i());throw new c}}},2208:function(e,t,r){"use strict";var n=r(7585),i="undefined"==typeof navigator,a={e:{}},s,o="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0!==this?this:null;function c(){try{var e=s;return s=null,e.apply(this,arguments)}catch(e){return a.e=e,a}}function u(e){return s=e,c}var l=function(e,t){var r={}.hasOwnProperty;function n(){for(var n in this.constructor=e,this.constructor$=t,t.prototype)r.call(t.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=t.prototype[n])}return n.prototype=t.prototype,e.prototype=new n,e.prototype};function p(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function d(e){return"function"==typeof e||"object"==typeof e&&null!==e}function f(e){return p(e)?new Error(S(e)):e}function h(e,t){var r,n=e.length,i=new Array(n+1);for(r=0;r<n;++r)i[r]=e[r];return i[r]=t,i}function m(e,t,r){if(!n.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var i=Object.getOwnPropertyDescriptor(e,t);return null!=i?null==i.get&&null==i.set?i.value:r:void 0}function v(e,t,r){if(p(e))return e;var i={value:r,configurable:!0,enumerable:!1,writable:!0};return n.defineProperty(e,t,i),e}function g(e){throw e}var y=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var r=0;r<e.length;++r)if(e[r]===t)return!0;return!1};if(n.isES5){var r=Object.getOwnPropertyNames;return function(e){for(var i=[],a=Object.create(null);null!=e&&!t(e);){var s;try{s=r(e)}catch(e){return i}for(var o=0;o<s.length;++o){var c=s[o];if(!a[c]){a[c]=!0;var u=Object.getOwnPropertyDescriptor(e,c);null!=u&&null==u.get&&null==u.set&&i.push(c)}}e=n.getPrototypeOf(e)}return i}}var i={}.hasOwnProperty;return function(r){if(t(r))return[];var n=[];e:for(var a in r)if(i.call(r,a))n.push(a);else{for(var s=0;s<e.length;++s)if(i.call(e[s],a))continue e;n.push(a)}return n}}(),E=/this\s*\.\s*\S+\s*=/;function _(e){try{if("function"==typeof e){var t=n.names(e.prototype),r=n.isES5&&t.length>1,i=t.length>0&&!(1===t.length&&"constructor"===t[0]),a=E.test(e+"")&&n.names(e).length>0;if(r||i||a)return!0}return!1}catch(e){return!1}}function b(e){function t(){}t.prototype=e;var r=new t;function n(){return typeof r.foo}return n(),n(),e}var x=/^[a-z$_][a-z$_0-9]*$/i;function C(e){return x.test(e)}function w(e,t,r){for(var n=new Array(e),i=0;i<e;++i)n[i]=t+i+r;return n}function S(e){try{return e+""}catch(e){return"[no string representation]"}}function T(e){return e instanceof Error||null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name}function A(e){try{v(e,"isOperational",!0)}catch(e){}}function O(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)}function I(e){return T(e)&&n.propertyIsWritable(e,"stack")}var D="stack"in new Error?function(e){return I(e)?e:new Error(S(e))}:function(e){if(I(e))return e;try{throw new Error(S(e))}catch(e){return e}};function N(e){return{}.toString.call(e)}function k(e,t,r){for(var i=n.names(e),a=0;a<i.length;++a){var s=i[a];if(r(s))try{n.defineProperty(t,s,n.getDescriptor(e,s))}catch(e){}}}var B=function(e){return n.isArray(e)?e:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var L="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,r=[],n=e[Symbol.iterator]();!(t=n.next()).done;)r.push(t.value);return r};B=function(e){return n.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?L(e):null}}var R="undefined"!=typeof process&&"[object process]"===N(process).toLowerCase(),P="undefined"!=typeof process&&void 0!==process.env,j;function U(e){return P?process.env[e]:void 0}function F(){if("function"==typeof Promise)try{if("[object Promise]"===N(new Promise((function(){}))))return Promise}catch(e){}}function K(e,t){if(null===e||"function"!=typeof t||t===j)return t;null!==e.domain&&(t=e.domain.bind(t));var r=e.async;if(null!==r){var n=t;t=function(){for(var e=arguments.length+2,t=new Array(e),i=2;i<e;++i)t[i]=arguments[i-2];return t[0]=n,t[1]=this,r.runInAsyncScope.apply(r,t)}}return t}var M={setReflectHandler:function(e){j=e},isClass:_,isIdentifier:C,inheritedDataKeys:y,getDataPropertyOrDefault:m,thrower:g,isArray:n.isArray,asArray:B,notEnumerableProp:v,isPrimitive:p,isObject:d,isError:T,canEvaluate:i,errorObj:a,tryCatch:u,inherits:l,withAppended:h,maybeWrapAsError:f,toFastProperties:b,filledRange:w,toString:S,canAttachTrace:I,ensureErrorObject:D,originatesFromRejection:O,markAsOriginatingFromRejection:A,classString:N,copyDescriptors:k,isNode:R,hasEnvVariables:P,env:U,global:o,getNativePromise:F,contextBind:K},V;M.isRecentNode=M.isNode&&(process.versions&&process.versions.node?V=process.versions.node.split(".").map(Number):process.version&&(V=process.version.split(".").map(Number)),0===V[0]&&V[1]>10||V[0]>0),M.nodeSupportsAsyncResource=M.isNode&&function(){var e=!1;try{e="function"==typeof r(290).AsyncResource.prototype.runInAsyncScope}catch(t){e=!1}return e}(),M.isNode&&M.toFastProperties(process);try{throw new Error}catch(e){M.lastLineError=e}e.exports=M},8928:(e,t,r)=>{var n=r(9818),i=r(8505);e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return g(function(e){return e.split("\\\\").join(a).split("\\{").join(s).split("\\}").join(o).split("\\,").join(c).split("\\.").join(u)}(e),!0).map(p)};var a="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function p(e){return e.split(a).join("\\").split(s).join("{").split(o).join("}").split(c).join(",").split(u).join(".")}function d(e){if(!e)return[""];var t=[],r=i("{","}",e);if(!r)return e.split(",");var n=r.pre,a=r.body,s=r.post,o=n.split(",");o[o.length-1]+="{"+a+"}";var c=d(s);return s.length&&(o[o.length-1]+=c.shift(),o.push.apply(o,c)),t.push.apply(t,o),t}function f(e){return"{"+e+"}"}function h(e){return/^-?0\d/.test(e)}function m(e,t){return e<=t}function v(e,t){return e>=t}function g(e,t){var r=[],a=i("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var s,c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),p=c||u,y=a.body.indexOf(",")>=0;if(!p&&!y)return a.post.match(/,.*\}/)?g(e=a.pre+"{"+a.body+o+a.post):[e];if(p)s=a.body.split(/\.\./);else if(1===(s=d(a.body)).length&&1===(s=g(s[0],!1).map(f)).length)return(b=a.post.length?g(a.post,!1):[""]).map((function(e){return a.pre+s[0]+e}));var E,_=a.pre,b=a.post.length?g(a.post,!1):[""];if(p){var x=l(s[0]),C=l(s[1]),w=Math.max(s[0].length,s[1].length),S=3==s.length?Math.abs(l(s[2])):1,T=m;C<x&&(S*=-1,T=v);var A=s.some(h);E=[];for(var O=x;T(O,C);O+=S){var I;if(u)"\\"===(I=String.fromCharCode(O))&&(I="");else if(I=String(O),A){var D=w-I.length;if(D>0){var N=new Array(D+1).join("0");I=O<0?"-"+N+I.slice(1):N+I}}E.push(I)}}else E=n(s,(function(e){return g(e,!1)}));for(var k=0;k<E.length;k++)for(var B=0;B<b.length;B++){var L=_+E[k]+b[B];(!t||p||L)&&r.push(L)}return r}},801:(e,t,r)=>{var n=r(9023),i=r(2203).Stream,a=r(8069);function s(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=s,n.inherits(s,i),s.create=function(e){var t=new this;for(var r in e=e||{})t[r]=e[r];return t},s.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},s.prototype.append=function(e){if(s.isStreamLike(e)){if(!(e instanceof a)){var t=a.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},s.prototype.pipe=function(e,t){return i.prototype.pipe.call(this,e,t),this.resume(),e},s.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},s.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){s.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},s.prototype._pipeNext=function(e){if(this._currentStream=e,s.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},s.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))},s.prototype.write=function(e){this.emit("data",e)},s.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},s.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},s.prototype.end=function(){this._reset(),this.emit("end")},s.prototype.destroy=function(){this._reset(),this.emit("close")},s.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},s.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},s.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){t.dataSize&&(e.dataSize+=t.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},s.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},9818:e=>{e.exports=function(e,r){for(var n=[],i=0;i<e.length;i++){var a=r(e[i],i);t(a)?n.push.apply(n,a):n.push(a)}return n};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},4993:(e,t,r)=>{"use strict";const n=r(5317),i=r(2014),a=r(3436);function s(e,t,r){const s=i(e,t,r),o=n.spawn(s.command,s.args,s.options);return a.hookChildProcess(o,s),o}e.exports=s,e.exports.spawn=s,e.exports.sync=function(e,t,r){const s=i(e,t,r),o=n.spawnSync(s.command,s.args,s.options);return o.error=o.error||a.verifyENOENTSync(o.status,s),o},e.exports._parse=i,e.exports._enoent=a},3436:e=>{"use strict";const t="win32"===process.platform;function r(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function n(e,n){return t&&1===e&&!n.file?r(n.original,"spawn"):null}e.exports={hookChildProcess:function(e,r){if(!t)return;const i=e.emit;e.emit=function(t,a){if("exit"===t){const t=n(a,r);if(t)return i.call(e,"error",t)}return i.apply(e,arguments)}},verifyENOENT:n,verifyENOENTSync:function(e,n){return t&&1===e&&!n.file?r(n.original,"spawnSync"):null},notFoundError:r}},2014:(e,t,r)=>{"use strict";const n=r(6928),i=r(9045),a=r(4483),s=r(9182),o="win32"===process.platform,c=/\.(?:com|exe)$/i,u=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function l(e){if(!o)return e;const t=function(e){e.file=i(e);const t=e.file&&s(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}(e),r=!c.test(t);if(e.options.forceShell||r){const r=u.test(t);e.command=n.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map((e=>a.argument(e,r)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}e.exports=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:l(n)}},4483:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e=e.replace(t,"^$1")},e.exports.argument=function(e,r){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(t,"^$1"),r&&(e=e.replace(t,"^$1")),e}},9182:(e,t,r)=>{"use strict";const n=r(9896),i=r(1395);e.exports=function(e){const t=Buffer.alloc(150);let r;try{r=n.openSync(e,"r"),n.readSync(r,t,0,150,0),n.closeSync(r)}catch(e){}return i(t.toString())}},9045:(e,t,r)=>{"use strict";const n=r(6928),i=r(6911),a=r(9376);function s(e,t){const r=e.options.env||process.env,s=process.cwd(),o=null!=e.options.cwd,c=o&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch(e){}let u;try{u=i.sync(e.command,{path:r[a({env:r})],pathExt:t?n.delimiter:void 0})}catch(e){}finally{c&&process.chdir(s)}return u&&(u=n.resolve(o?e.options.cwd:"",u)),u}e.exports=function(e){return s(e)||s(e,!0)}},7833:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(736)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,a,s=null;function o(...e){if(!o.enabled)return;const n=o,i=Number(new Date),a=i-(r||i);n.diff=a,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";s++;const a=t.formatters[i];if("function"==typeof a){const t=e[s];r=a.call(n,t),e.splice(s,1),s--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,a=t.enabled(e)),a),set:e=>{s=e}}),"function"==typeof t.init&&t.init(o),o}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},5753:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(7833):e.exports=r(6033)},6033:(e,t,r)=>{const n=r(2018),i=r(9023);t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),a=` ${i};1m${n} `;r[0]=a+r[0].split("\n").join("\n"+a),r.push(i+"m+"+e.exports.humanize(this.diff)+"")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r(7687);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=r(736)(t);const{formatters:a}=e.exports;a.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},a.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},8069:(e,t,r)=>{var n=r(2203).Stream,i=r(9023);function a(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=a,i.inherits(a,n),a.create=function(e,t){var r=new this;for(var n in t=t||{})r[n]=t[n];r.source=e;var i=e.emit;return e.emit=function(){return r._handleEmit(arguments),i.apply(e,arguments)},e.on("error",(function(){})),r.pauseStream&&e.pause(),r},Object.defineProperty(a.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),a.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},a.prototype.resume=function(){this._released||this.release(),this.source.resume()},a.prototype.pause=function(){this.source.pause()},a.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},a.prototype.pipe=function(){var e=n.prototype.pipe.apply(this,arguments);return this.resume(),e},a.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},a.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},10:(e,t)=>{t.DEFAULT_PARSER="sax"},5520:(e,t,r)=>{var n=r(9173).n,i=r(6082),a=r(896).u,s={},o=new RegExp("('[^']*'|\"[^\"]*\"|::|//?|\\.\\.|\\(\\)|[/.*:\\[\\]\\(\\)@=])|((?:\\{[^}]+\\})?[^/\\[\\]\\(\\)@=\\s]+)|\\s+","g"),c=i.findall.bind(null,o);var u={"":function(e,t){var r=t[0];return function(e,t){var n,i,a=[];for(n=0,i=t.length;n<i;n++)t[n]._children.forEach((function(e){e.tag===r&&a.push(e)}));return a}},"*":function(e,t){return function(e,t){var r,n,i=[];for(r=0,n=t.length;r<n;r++)t[r]._children.forEach((function(e){i.push(e)}));return i}},".":function(e,t){return function(e,t){var r,n,i,a=[];for(r=0,n=t.length;r<n;r++)i=t[r],a.push(i);return a}},"..":function(e,t){return function(e,t){var r,n,i,a=[],s=e.parent_map;for(s||(e.parent_map=s={},e.root.iter(null,(function(e){e._children.forEach((function(t){s[t]=e}))}))),r=0,n=t.length;r<n;r++)i=t[r],s.hasOwnProperty(i)&&a.push(s[i]);return a}},"//":function(e,t){var r;if("*"===(t=e())[1])r="*";else{if(t[1])throw new a(t);r=t[0]||""}return function(e,t){var n,i,a,s=[];for(n=0,i=t.length;n<i;n++)(a=t[n]).iter(r,(function(e){e!==a&&s.push(e)}));return s}},"[":function(e,t){var r,n,i,s;if("@"===(t=e())[1]){if((t=e())[1])throw new a(t,"Invalid attribute predicate");if(n=t[0],"]"===(t=e())[1])s=function(e,t){var r,i,a,s=[];for(r=0,i=t.length;r<i;r++)(a=t[r]).get(n)&&s.push(a);return s};else if("="===t[1]){if('"'!==(i=e()[1])[0]&&"'"!==i[i.length-1])throw new a(t,"Ivalid comparison target");i=i.slice(1,i.length-1),t=e(),s=function(e,t){var r,a,s,o=[];for(r=0,a=t.length;r<a;r++)(s=t[r]).get(n)===i&&o.push(s);return o}}if("]"!==t[1])throw new a(t,"Invalid attribute predicate")}else{if(t[1])throw new a(null,"Invalid predicate");if(r=t[0]||"","]"!==(t=e())[1])throw new a(t,"Invalid node predicate");s=function(e,t){var n,i,a,s=[];for(n=0,i=t.length;n<i;n++)(a=t[n]).find(r)&&s.push(a);return s}}return s}};function l(e){this.parent_map=null,this.root=e}function p(e,t){var r,i,o,p,d,f,h,m;if(s.hasOwnProperty(t))r=s[t];else{if(Object.keys(s).length>100&&(s={}),"/"===t.charAt(0))throw new a(null,"Cannot use absolute path on element");function v(){return i.shift()}for(i=c(t),r=[],d=v();;){var g=d[1]||"";if(!(f=u[g](v,d)))throw new a(null,n("Invalid path: %s",t));if(r.push(f),!(d=v()))break;if("/"===d[1]&&(d=v()),!d)break}s[t]=r}for(i=[e],m=new l(e),o=0,p=r.length;o<p;o++)h=r[o],i=h(m,i);return i||[]}t.find=function(e,t){var r=p(e,t);return r&&r.length>0?r[0]:null},t.findall=p,t.findtext=function(e,t,r){var n=p(e,t);return n&&n.length>0?n[0].text:r}},9491:(e,t,r)=>{var n=r(9173).n,i=r(6082),a=r(5520),s=r(1488).G,o=r(2024).b,c=r(10),u=0;function l(e,t){this._id=u++,this.tag=e,this.attrib={},this.text=null,this.tail=null,this._children=[],t&&(this.attrib=i.merge(this.attrib,t))}function p(e){var t=new l(p);return e&&(t.text=e),t}function d(e){var t=new l(d);return e&&(t.text=e),t}function f(e,t){var r=new l(f);return r.text=e,t&&(r.text=r.text+" "+t),r}function h(e,t){t&&(e=n("{%s}%s",e,t)),this.text=e}function m(e){this._root=e}l.prototype.toString=function(){return n("<Element %s at %s>",this.tag,this._id)},l.prototype.makeelement=function(e,t){return new l(e,t)},l.prototype.len=function(){return this._children.length},l.prototype.getItem=function(e){return this._children[e]},l.prototype.setItem=function(e,t){this._children[e]=t},l.prototype.delItem=function(e){this._children.splice(e,1)},l.prototype.getSlice=function(e,t){return this._children.slice(e,t)},l.prototype.setSlice=function(e,t,r){var n,i=0;for(n=e;n<t;n++,i++)this._children[n]=r[i]},l.prototype.delSlice=function(e,t){this._children.splice(e,t-e)},l.prototype.append=function(e){this._children.push(e)},l.prototype.extend=function(e){this._children.concat(e)},l.prototype.insert=function(e,t){this._children[e]=t},l.prototype.remove=function(e){this._children=this._children.filter((function(t){return t._id!==e._id}))},l.prototype.getchildren=function(){return this._children},l.prototype.find=function(e){return a.find(this,e)},l.prototype.findtext=function(e,t){return a.findtext(this,e,t)},l.prototype.findall=function(e,t){return a.findall(this,e,t)},l.prototype.clear=function(){this.attrib={},this._children=[],this.text=null,this.tail=null},l.prototype.get=function(e,t){return void 0!==this.attrib[e]?this.attrib[e]:t},l.prototype.set=function(e,t){this.attrib[e]=t},l.prototype.keys=function(){return Object.keys(this.attrib)},l.prototype.items=function(){return i.items(this.attrib)},l.prototype.iter=function(e,t){var r;for("*"===e&&(e=null),null!==e&&this.tag!==e||t(this),r=0;r<this._children.length;r++)this._children[r].iter(e,(function(e){t(e)}))},l.prototype.itertext=function(e){this.iter(null,(function(t){t.text&&e(t.text),t.tail&&e(t.tail)}))},h.prototype.toString=function(){return this.text},m.prototype.getroot=function(){return this._root},m.prototype._setroot=function(e){this._root=e},m.prototype.parse=function(e,t){return t||(t=new((t=o(c.DEFAULT_PARSER)).XMLParser)(new s)),t.feed(e),this._root=t.close(),this._root},m.prototype.iter=function(e,t){this._root.iter(e,t)},m.prototype.find=function(e){return this._root.find(e)},m.prototype.findtext=function(e,t){return this._root.findtext(e,t)},m.prototype.findall=function(e){return this._root.findall(e)},m.prototype.write=function(e){var t=[];if(!1!==(e=i.merge({encoding:"utf-8",xml_declaration:null,default_namespace:null,method:"xml"},e)).xml_declaration&&t.push("<?xml version='1.0' encoding='"+e.encoding+"'?>\n"),"text"===e.method)_serialize_text(t,self._root,encoding);else{var r,a,s,o,c=function(e,t,r){var i={},a={};r&&(a[r]="");function s(e){if("{"===e[0]){var t=e.substring(1).split("}",2),s=t[0],o=t[1],c=a[s];void 0===c&&(void 0===(c=v[s])&&(c="ns"+Object.keys(a).length),"xml"!==c&&(a[s]=c)),i[e]=c?n("%s:%s",c,o):o}else{if(r)throw new Error("cannot use non-qualified names with default_namespace option");i[e]=e}}return e.iter(null,(function(e){var t=e.tag,r=e.text,n=e.items();if(t instanceof h&&void 0===i[t.text])s(t.text);else if("string"==typeof t)s(t);else if(null!==t&&t!==p&&t!==d&&t!==f)throw new Error("Invalid tag type for serialization: "+t);r instanceof h&&void 0===i[r.text]&&s(r.text),n.forEach((function(e){var t=e[0],r=e[1];t instanceof h&&(t=t.text),void 0===i[t]&&s(t),r instanceof h&&void 0===i[r.text]&&s(r.text)}))})),[i,a]}(this._root,e.encoding,e.default_namespace);if(r=c[0],a=c[1],e.hasOwnProperty("indent")?(s=0,o=new Array(e.indent+1).join(" ")):s=!1,"xml"!==e.method)throw new Error("unknown serialization method "+e.method);b((function(e){t.push(e)}),this._root,e.encoding,r,a,s,o)}return t.join("")};var v={"http://www.w3.org/XML/1998/namespace":"xml","http://www.w3.org/1999/xhtml":"html","http://www.w3.org/1999/02/22-rdf-syntax-ns#":"rdf","http://schemas.xmlsoap.org/wsdl/":"wsdl","http://www.w3.org/2001/XMLSchema":"xs","http://www.w3.org/2001/XMLSchema-instance":"xsi","http://purl.org/dc/elements/1.1/":"dc"};function g(e,t,r,n){return e&&(e=(e=(e=(e=e.toString()).replace(/&/g,"&amp;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;"),n||(e=(e=e.replace(/\n/g,"&#xA;")).replace(/\r/g,"&#xD;")),r&&(e=e.replace(/"/g,"&quot;"))),e}function y(e,t){return g(e,0,!0)}function E(e,t){return g(e,0,!1)}function _(e,t){return g(e,0,!1,!0)}function b(e,t,r,a,s,o,c){var u,l=t.tag,m=t.text,v=o||0===o;e(Array(o+1).join(c)),l===p?e(n("\x3c!--%s--\x3e",E(m))):l===f?e(n("<?%s?>",E(m))):l===d?e(n("<![CDATA[%s]]>",m=m||"")):void 0===(l=a[l])?(m&&e(_(m)),t.iter((function(t){b(e,t,r,a,null,!!v&&o+1,c)}))):(e("<"+l),((u=t.items())||s)&&(u.sort(),u.forEach((function(t){var r=t[0],i=t[1];r instanceof h&&(r=r.text),i=i instanceof h?a[i.text]:y(i),e(n(' %s="%s"',a[r],i))})),s&&((u=i.items(s)).sort((function(e,t){return e[1]<t[1]})),u.forEach((function(t){var r=t[1],i=t[0];r&&(r=":"+r),e(n(' xmlns%s="%s"',r,y(i)))})))),m||t.len()?(m&&m.toString().match(/^\s*$/)&&(m=null),e(">"),!m&&v&&e("\n"),m&&e(_(m)),t._children.forEach((function(t){b(e,t,r,a,null,!!v&&o+1,c)})),!m&&o&&e(Array(o+1).join(c)),e("</"+l+">")):e(" />")),v&&e("\n")}t.PI=f,t.Comment=p,t.CData=d,t.ProcessingInstruction=f,t.SubElement=function(e,t,r){var n=e.makeelement(t,r);return e.append(n),n},t.QName=h,t.ElementTree=m,t.ElementPath=a,t.Element=function(e,t){return new l(e,t)},t.XML=function(e){return(new m).parse(e)},t.parse=function(e,t){var r=new m;return r.parse(e,t),r},t.register_namespace=function(e,t){if(/ns\d+$/.test(e))throw new Error("Prefix format reserved for internal use");v.hasOwnProperty(t)&&v[t]===e&&delete v[t],v[t]=e},t.tostring=function(e,t){return new m(e).write(t)}},896:(e,t,r)=>{var n=r(9023),i=r(9173).n;function a(e,t){t=t||i("Syntax Error at token %s",e.toString()),this.token=e,this.message=t,Error.call(this,t)}n.inherits(a,Error),t.u=a},2024:(e,t,r)=>{r(9023);var n=r(6848);t.b=function(e){if("sax"===e)return n.sax;throw new Error("Invalid parser: "+e)}},6848:(e,t,r)=>{t.sax=r(4336)},4336:(e,t,r)=>{r(9023);var n=r(4043),i=r(1488).G;function a(e){this.parser=n.parser(!0),this.target=e||new i,this.parser.onopentag=this._handleOpenTag.bind(this),this.parser.ontext=this._handleText.bind(this),this.parser.oncdata=this._handleCdata.bind(this),this.parser.ondoctype=this._handleDoctype.bind(this),this.parser.oncomment=this._handleComment.bind(this),this.parser.onclosetag=this._handleCloseTag.bind(this),this.parser.onerror=this._handleError.bind(this)}a.prototype._handleOpenTag=function(e){this.target.start(e.name,e.attributes)},a.prototype._handleText=function(e){this.target.data(e)},a.prototype._handleCdata=function(e){this.target.data(e)},a.prototype._handleDoctype=function(e){},a.prototype._handleComment=function(e){},a.prototype._handleCloseTag=function(e){this.target.end(e)},a.prototype._handleError=function(e){throw e},a.prototype.feed=function(e){this.parser.write(e)},a.prototype.close=function(){return this.parser.close(),this.target.close()},t.XMLParser=a},9173:(e,t)=>{var r={},n={"'":"\\'","\n":"\\n"};t.n=function(e,t){return r[e]||function(e){var t,i=e,a=0,s=1,o="return '";for(t=0;t<e.length;t++)if("%"===e[t])switch(e[t+1]){case"s":o+=e.slice(a,t)+"' + arguments["+s+"] + '",a=t+2,s++;break;case"j":o+=e.slice(a,t)+"' + JSON.stringify(arguments["+s+"]) + '",a=t+2,s++;break;case"%":o+=e.slice(a,t+1),a=t+2,t++}else n[e[t]]&&(o+=e.slice(a,t)+n[e[t]],a=t+1);o+=e.slice(a)+"';",r[i]=new Function(o)}(e),r[e].apply(null,arguments)}},1488:(e,t,r)=>{function n(e){this._data=[],this._elem=[],this._last=null,this._tail=null,e||(e=r(9491).Element),this._factory=e}n.prototype.close=function(){return this._last},n.prototype._flush=function(){if(this._data){if(null!==this._last){var e=this._data.join("");this._tail?this._last.tail=e:this._last.text=e}this._data=[]}},n.prototype.data=function(e){this._data.push(e)},n.prototype.start=function(e,t){this._flush();var r=this._factory(e,t);this._last=r,this._elem.length&&this._elem[this._elem.length-1].append(r),this._elem.push(r),this._tail=null},n.prototype.end=function(e){if(this._flush(),this._last=this._elem.pop(),this._last.tag!==e)throw new Error("end tag mismatch");return this._tail=1,this._last},t.G=n},6082:(e,t)=>{t.items=function(e,t){t=t||null;var r,n,i=[];for(r in e)!e.hasOwnProperty(r)||(n=t,t&&0!==t.length&&t.indexOf(n))||i.push([r,e[r]]);return i},t.findall=function(e,t){for(var r,n=[];r=e.exec(t);)n.push(r);return n},t.merge=function(e,t){var r,n={};for(r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}},7507:(e,t,r)=>{var n;e.exports=function(){if(!n){try{n=r(5753)("follow-redirects")}catch(e){}"function"!=typeof n&&(n=function(){})}n.apply(null,arguments)}},3164:(e,t,r)=>{var n,i,a,s=r(7016),o=s.URL,c=r(8611),u=r(5692),l=r(2203).Writable,p=r(2613),d=r(7507);n="undefined"!=typeof process,i="undefined"!=typeof window&&"undefined"!=typeof document,a=B(Error.captureStackTrace),n||!i&&a||console.warn("The follow-redirects package should be excluded from browser builds.");var f=!1;try{p(new o(""))}catch(e){f="ERR_INVALID_URL"===e.code}var h=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],m=["abort","aborted","connect","error","socket","timeout"],v=Object.create(null);m.forEach((function(e){v[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var g=D("ERR_INVALID_URL","Invalid URL",TypeError),y=D("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),E=D("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",y),_=D("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),b=D("ERR_STREAM_WRITE_AFTER_END","write after end"),x=l.prototype.destroy||S;function C(e,t){l.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){try{r._processResponse(e)}catch(e){r.emit("error",e instanceof y?e:new y({cause:e}))}},this._performRequest()}function w(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var i=n+":",a=r[i]=e[n],s=t[n]=Object.create(a);Object.defineProperties(s,{request:{value:function(e,n,a){var s;return s=e,o&&s instanceof o?e=O(e):k(e)?e=O(T(e)):(a=n,n=A(e),e={protocol:i}),B(n)&&(a=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,k(n.host)||k(n.hostname)||(n.hostname="::1"),p.equal(n.protocol,i,"protocol mismatch"),d("options",n),new C(n,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=s.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function S(){}function T(e){var t;if(f)t=new o(e);else if(!k((t=A(s.parse(e))).protocol))throw new g({input:e});return t}function A(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new g({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new g({input:e.href||e});return e}function O(e,t){var r=t||{};for(var n of h)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),""!==r.port&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function I(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function D(e,t,r){function n(r){B(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function N(e,t){for(var r of m)e.removeListener(r,v[r]);e.on("error",S),e.destroy(t)}function k(e){return"string"==typeof e||e instanceof String}function B(e){return"function"==typeof e}C.prototype=Object.create(l.prototype),C.prototype.abort=function(){N(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},C.prototype.destroy=function(e){return N(this._currentRequest,e),x.call(this,e),this},C.prototype.write=function(e,t,r){if(this._ending)throw new b;if(!k(e)&&("object"!=typeof(n=e)||!("length"in n)))throw new TypeError("data should be a string, Buffer or Uint8Array");var n;B(t)&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new _),this.abort()):r&&r()},C.prototype.end=function(e,t,r){if(B(e)?(r=e,e=t=null):B(t)&&(r=t,t=null),e){var n=this,i=this._currentRequest;this.write(e,t,(function(){n._ended=!0,i.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},C.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},C.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},C.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),a()}),e),n(t)}function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",a),r.removeListener("error",a),r.removeListener("response",a),r.removeListener("close",a),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",a),this.on("error",a),this.on("response",a),this.on("close",a),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){C.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(C.prototype,e,{get:function(){return this._currentRequest[e]}})})),C.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},C.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var i of(n._redirectable=this,m))n.on(i,v[i]);if(this._currentUrl=/^\//.test(this._options.path)?s.format(this._options):this._options.path,this._isRedirect){var a=0,o=this,c=this._requestBodyBuffers;!function e(t){if(n===o._currentRequest)if(t)o.emit("error",t);else if(a<c.length){var r=c[a++];n.finished||n.write(r.data,r.encoding,e)}else o._ended&&n.end()}()}},C.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r,n=e.headers.location;if(!n||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(N(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new E;var i=this._options.beforeRedirect;i&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var a=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],I(/^content-/i,this._options.headers));var c,u,l=I(/^host$/i,this._options.headers),h=T(this._currentUrl),m=l||h.host,v=/^\w+:/.test(n)?this._currentUrl:s.format(Object.assign(h,{host:m})),g=(c=n,u=v,f?new o(c,u):T(s.resolve(u,c)));if(d("redirecting to",g.href),this._isRedirect=!0,O(g,this._options),(g.protocol!==h.protocol&&"https:"!==g.protocol||g.host!==m&&!function(e,t){p(k(e)&&k(t));var r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(g.host,m))&&I(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),B(i)){var y={headers:e.headers,statusCode:t},_={url:v,method:a,headers:r};i(this._options,y,_),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=w({http:c,https:u}),e.exports.wrap=w},737:(e,t,r)=>{var n=r(801),i=r(9023),a=r(6928),s=r(8611),o=r(5692),c=r(7016).parse,u=r(9896),l=r(2203).Stream,p=r(6049),d=r(1873),f=r(1362);function h(e){if(!(this instanceof h))return new h(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],n.call(this),e=e||{})this[t]=e[t]}e.exports=h,i.inherits(h,n),h.LINE_BREAK="\r\n",h.DEFAULT_CONTENT_TYPE="application/octet-stream",h.prototype.append=function(e,t,r){"string"==typeof(r=r||{})&&(r={filename:r});var a=n.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),i.isArray(t))this._error(new Error("Arrays are not supported."));else{var s=this._multiPartHeader(e,t,r),o=this._multiPartFooter();a(s),a(t),a(o),this._trackLength(s,t,r)}},h.prototype._trackLength=function(e,t,r){var n=0;null!=r.knownLength?n+=+r.knownLength:Buffer.isBuffer(t)?n=t.length:"string"==typeof t&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+h.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion")||t instanceof l)&&(r.knownLength||this._valuesToMeasure.push(t))},h.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):u.stat(e.path,(function(r,n){var i;r?t(r):(i=n.size-(e.start?e.start:0),t(null,i))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(r){e.pause(),t(null,+r.headers["content-length"])})),e.resume()):t("Unknown stream")},h.prototype._multiPartHeader=function(e,t,r){if("string"==typeof r.header)return r.header;var n,i=this._getContentDisposition(t,r),a=this._getContentType(t,r),s="",o={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(a||[])};for(var c in"object"==typeof r.header&&f(o,r.header),o)o.hasOwnProperty(c)&&null!=(n=o[c])&&(Array.isArray(n)||(n=[n]),n.length&&(s+=c+": "+n.join("; ")+h.LINE_BREAK));return"--"+this.getBoundary()+h.LINE_BREAK+s+h.LINE_BREAK},h.prototype._getContentDisposition=function(e,t){var r,n;return"string"==typeof t.filepath?r=a.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?r=a.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(r=a.basename(e.client._httpMessage.path||"")),r&&(n='filename="'+r+'"'),n},h.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e.name&&(r=p.lookup(e.name)),!r&&e.path&&(r=p.lookup(e.path)),!r&&e.readable&&e.hasOwnProperty("httpVersion")&&(r=e.headers["content-type"]),r||!t.filepath&&!t.filename||(r=p.lookup(t.filepath||t.filename)),r||"object"!=typeof e||(r=h.DEFAULT_CONTENT_TYPE),r},h.prototype._multiPartFooter=function(){return function(e){var t=h.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},h.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+h.LINE_BREAK},h.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(r[t.toLowerCase()]=e[t]);return r},h.prototype.setBoundary=function(e){this._boundary=e},h.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},h.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)"function"!=typeof this._streams[r]&&(e=Buffer.isBuffer(this._streams[r])?Buffer.concat([e,this._streams[r]]):Buffer.concat([e,Buffer.from(this._streams[r])]),"string"==typeof this._streams[r]&&this._streams[r].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(h.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},h.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},h.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},h.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},h.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?d.parallel(this._valuesToMeasure,this._lengthRetriever,(function(r,n){r?e(r):(n.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},h.prototype.submit=function(e,t){var r,n,i={method:"post"};return"string"==typeof e?(e=c(e),n=f({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(n=f(e,i)).port||(n.port="https:"==n.protocol?443:80),n.headers=this.getHeaders(e.headers),r="https:"==n.protocol?o.request(n):s.request(n),this.getLength(function(e,n){if(e&&"Unknown stream"!==e)this._error(e);else if(n&&r.setHeader("Content-Length",n),this.pipe(r),t){var i,a=function(e,n){return r.removeListener("error",a),r.removeListener("response",i),t.call(this,e,n)};i=a.bind(this,null),r.on("error",a),r.on("response",i)}}.bind(this)),r},h.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},h.prototype.toString=function(){return"[object FormData]"}},1362:e=>{e.exports=function(e,t){return Object.keys(t).forEach((function(r){e[r]=e[r]||t[r]})),e}},3876:(e,t,r)=>{"use strict";const n=r(3735),i=r(6928),a=r(3798).mkdirsSync,s=r(7211).utimesMillisSync,o=r(6462);function c(e,t,r,a){const s=(a.dereference?n.statSync:n.lstatSync)(t);if(s.isDirectory())return function(e,t,r,i,a){return t?p(r,i,a):function(e,t,r,i){return n.mkdirSync(r),p(t,r,i),l(r,e)}(e.mode,r,i,a)}(s,e,t,r,a);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return function(e,t,r,i,a){return t?function(e,t,r,i){if(i.overwrite)return n.unlinkSync(r),u(e,t,r,i);if(i.errorOnExist)throw new Error(`'${r}' already exists`)}(e,r,i,a):u(e,r,i,a)}(s,e,t,r,a);if(s.isSymbolicLink())return function(e,t,r,a){let s=n.readlinkSync(t);a.dereference&&(s=i.resolve(process.cwd(),s));if(e){let e;try{e=n.readlinkSync(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlinkSync(s,r);throw e}if(a.dereference&&(e=i.resolve(process.cwd(),e)),o.isSrcSubdir(s,e))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`);if(o.isSrcSubdir(e,s))throw new Error(`Cannot overwrite '${e}' with '${s}'.`);return function(e,t){return n.unlinkSync(t),n.symlinkSync(e,t)}(s,r)}return n.symlinkSync(s,r)}(e,t,r,a);if(s.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(s.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function u(e,t,r,i){return n.copyFileSync(t,r),i.preserveTimestamps&&function(e,t,r){(function(e){return!(128&e)})(e)&&function(e,t){l(e,128|t)}(r,e);(function(e,t){const r=n.statSync(e);s(t,r.atime,r.mtime)})(t,r)}(e.mode,t,r),l(r,e.mode)}function l(e,t){return n.chmodSync(e,t)}function p(e,t,r){n.readdirSync(e).forEach((n=>function(e,t,r,n){const a=i.join(t,e),s=i.join(r,e);if(n.filter&&!n.filter(a,s))return;const{destStat:u}=o.checkPathsSync(a,s,"copy",n);return c(u,a,s,n)}(n,e,t,r)))}e.exports=function(e,t,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:s,destStat:u}=o.checkPathsSync(e,t,"copy",r);if(o.checkParentPathsSync(e,s,t,"copy"),r.filter&&!r.filter(e,t))return;const l=i.dirname(t);return n.existsSync(l)||a(l),c(u,e,t,r)}},4994:(e,t,r)=>{"use strict";const n=r(8737),i=r(6928),{mkdirs:a}=r(3798),{pathExists:s}=r(9288),{utimesMillis:o}=r(7211),c=r(6462);async function u(e,t,r){return!r.filter||r.filter(e,t)}async function l(e,t,r,a){const s=a.dereference?n.stat:n.lstat,o=await s(t);if(o.isDirectory())return async function(e,t,r,a,s){t||await n.mkdir(a);const o=await n.readdir(r);await Promise.all(o.map((async e=>{const t=i.join(r,e),n=i.join(a,e);if(!await u(t,n,s))return;const{destStat:o}=await c.checkPaths(t,n,"copy",s);return l(o,t,n,s)}))),t||await n.chmod(a,e.mode)}(o,e,t,r,a);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return async function(e,t,r,i,a){if(!t)return p(e,r,i,a);if(a.overwrite)return await n.unlink(i),p(e,r,i,a);if(a.errorOnExist)throw new Error(`'${i}' already exists`)}(o,e,t,r,a);if(o.isSymbolicLink())return async function(e,t,r,a){let s=await n.readlink(t);a.dereference&&(s=i.resolve(process.cwd(),s));if(!e)return n.symlink(s,r);let o=null;try{o=await n.readlink(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return n.symlink(s,r);throw e}a.dereference&&(o=i.resolve(process.cwd(),o));if(c.isSrcSubdir(s,o))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${o}'.`);if(c.isSrcSubdir(o,s))throw new Error(`Cannot overwrite '${o}' with '${s}'.`);return await n.unlink(r),n.symlink(s,r)}(e,t,r,a);if(o.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(o.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}async function p(e,t,r,i){if(await n.copyFile(t,r),i.preserveTimestamps){128&e.mode||await function(e,t){return n.chmod(e,128|t)}(r,e.mode);const i=await n.stat(t);await o(r,i.atime,i.mtime)}return n.chmod(r,e.mode)}e.exports=async function(e,t,r={}){"function"==typeof r&&(r={filter:r}),r.clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:n,destStat:o}=await c.checkPaths(e,t,"copy",r);if(await c.checkParentPaths(e,n,t,"copy"),!await u(e,t,r))return;const p=i.dirname(t);await s(p)||await a(p),await l(o,e,t,r)}},4423:(e,t,r)=>{"use strict";const n=r(1236).fromPromise;e.exports={copy:n(r(4994)),copySync:r(3876)}},2591:(e,t,r)=>{"use strict";const n=r(1236).fromPromise,i=r(8737),a=r(6928),s=r(3798),o=r(5422),c=n((async function(e){let t;try{t=await i.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(t.map((t=>o.remove(a.join(e,t)))))}));function u(e){let t;try{t=i.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach((t=>{t=a.join(e,t),o.removeSync(t)}))}e.exports={emptyDirSync:u,emptydirSync:u,emptyDir:c,emptydir:c}},9616:(e,t,r)=>{"use strict";const n=r(1236).fromPromise,i=r(6928),a=r(8737),s=r(3798);e.exports={createFile:n((async function(e){let t;try{t=await a.stat(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);let n=null;try{n=await a.stat(r)}catch(t){if("ENOENT"===t.code)return await s.mkdirs(r),void await a.writeFile(e,"");throw t}n.isDirectory()?await a.writeFile(e,""):await a.readdir(r)})),createFileSync:function(e){let t;try{t=a.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{a.statSync(r).isDirectory()||a.readdirSync(r)}catch(e){if(!e||"ENOENT"!==e.code)throw e;s.mkdirsSync(r)}a.writeFileSync(e,"")}}},6288:(e,t,r)=>{"use strict";const{createFile:n,createFileSync:i}=r(9616),{createLink:a,createLinkSync:s}=r(1522),{createSymlink:o,createSymlinkSync:c}=r(5291);e.exports={createFile:n,createFileSync:i,ensureFile:n,ensureFileSync:i,createLink:a,createLinkSync:s,ensureLink:a,ensureLinkSync:s,createSymlink:o,createSymlinkSync:c,ensureSymlink:o,ensureSymlinkSync:c}},1522:(e,t,r)=>{"use strict";const n=r(1236).fromPromise,i=r(6928),a=r(8737),s=r(3798),{pathExists:o}=r(9288),{areIdentical:c}=r(6462);e.exports={createLink:n((async function(e,t){let r,n;try{r=await a.lstat(t)}catch{}try{n=await a.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}if(r&&c(n,r))return;const u=i.dirname(t);await o(u)||await s.mkdirs(u),await a.link(e,t)})),createLinkSync:function(e,t){let r;try{r=a.lstatSync(t)}catch{}try{const t=a.lstatSync(e);if(r&&c(t,r))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=i.dirname(t);return a.existsSync(n)||s.mkdirsSync(n),a.linkSync(e,t)}}},3838:(e,t,r)=>{"use strict";const n=r(6928),i=r(8737),{pathExists:a}=r(9288),s=r(1236).fromPromise;e.exports={symlinkPaths:s((async function(e,t){if(n.isAbsolute(e)){try{await i.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:e}}const r=n.dirname(t),s=n.join(r,e);if(await a(s))return{toCwd:s,toDst:e};try{await i.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:n.relative(r,e)}})),symlinkPathsSync:function(e,t){if(n.isAbsolute(e)){if(!i.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}const r=n.dirname(t),a=n.join(r,e);if(i.existsSync(a))return{toCwd:a,toDst:e};if(!i.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(r,e)}}}},7064:(e,t,r)=>{"use strict";const n=r(8737),i=r(1236).fromPromise;e.exports={symlinkType:i((async function(e,t){if(t)return t;let r;try{r=await n.lstat(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(e,t){if(t)return t;let r;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}},5291:(e,t,r)=>{"use strict";const n=r(1236).fromPromise,i=r(6928),a=r(8737),{mkdirs:s,mkdirsSync:o}=r(3798),{symlinkPaths:c,symlinkPathsSync:u}=r(3838),{symlinkType:l,symlinkTypeSync:p}=r(7064),{pathExists:d}=r(9288),{areIdentical:f}=r(6462);e.exports={createSymlink:n((async function(e,t,r){let n;try{n=await a.lstat(t)}catch{}if(n&&n.isSymbolicLink()){const[r,n]=await Promise.all([a.stat(e),a.stat(t)]);if(f(r,n))return}const o=await c(e,t);e=o.toDst;const u=await l(o.toCwd,r),p=i.dirname(t);return await d(p)||await s(p),a.symlink(e,t,u)})),createSymlinkSync:function(e,t,r){let n;try{n=a.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const r=a.statSync(e),n=a.statSync(t);if(f(r,n))return}const s=u(e,t);e=s.toDst,r=p(s.toCwd,r);const c=i.dirname(t);return a.existsSync(c)||o(c),a.symlinkSync(e,t,r)}}},8737:(e,t,r)=>{"use strict";const n=r(1236).fromCallback,i=r(3735),a=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof i[e]));Object.assign(t,i),a.forEach((e=>{t[e]=n(i[e])})),t.exists=function(e,t){return"function"==typeof t?i.exists(e,t):new Promise((t=>i.exists(e,t)))},t.read=function(e,t,r,n,a,s){return"function"==typeof s?i.read(e,t,r,n,a,s):new Promise(((s,o)=>{i.read(e,t,r,n,a,((e,t,r)=>{if(e)return o(e);s({bytesRead:t,buffer:r})}))}))},t.write=function(e,t,...r){return"function"==typeof r[r.length-1]?i.write(e,t,...r):new Promise(((n,a)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return a(e);n({bytesWritten:t,buffer:r})}))}))},t.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?i.readv(e,t,...r):new Promise(((n,a)=>{i.readv(e,t,...r,((e,t,r)=>{if(e)return a(e);n({bytesRead:t,buffers:r})}))}))},t.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?i.writev(e,t,...r):new Promise(((n,a)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return a(e);n({bytesWritten:t,buffers:r})}))}))},"function"==typeof i.realpath.native?t.realpath.native=n(i.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")},1605:(e,t,r)=>{"use strict";e.exports={...r(8737),...r(4423),...r(2591),...r(6288),...r(3376),...r(3798),...r(4836),...r(7024),...r(9288),...r(5422)}},3376:(e,t,r)=>{"use strict";const n=r(1236).fromPromise,i=r(2934);i.outputJson=n(r(6426)),i.outputJsonSync=r(2188),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,e.exports=i},2934:(e,t,r)=>{"use strict";const n=r(2909);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},2188:(e,t,r)=>{"use strict";const{stringify:n}=r(1144),{outputFileSync:i}=r(7024);e.exports=function(e,t,r){const a=n(t,r);i(e,a,r)}},6426:(e,t,r)=>{"use strict";const{stringify:n}=r(1144),{outputFile:i}=r(7024);e.exports=async function(e,t,r={}){const a=n(t,r);await i(e,a,r)}},3798:(e,t,r)=>{"use strict";const n=r(1236).fromPromise,{makeDir:i,makeDirSync:a}=r(8916),s=n(i);e.exports={mkdirs:s,mkdirsSync:a,mkdirp:s,mkdirpSync:a,ensureDir:s,ensureDirSync:a}},8916:(e,t,r)=>{"use strict";const n=r(8737),{checkPath:i}=r(7111),a=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(i(e),n.mkdir(e,{mode:a(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(i(e),n.mkdirSync(e,{mode:a(t),recursive:!0}))},7111:(e,t,r)=>{"use strict";const n=r(6928);e.exports.checkPath=function(e){if("win32"===process.platform){if(/[<>:"|?*]/.test(e.replace(n.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}}},4836:(e,t,r)=>{"use strict";const n=r(1236).fromPromise;e.exports={move:n(r(3314)),moveSync:r(6244)}},6244:(e,t,r)=>{"use strict";const n=r(3735),i=r(6928),a=r(4423).copySync,s=r(5422).removeSync,o=r(3798).mkdirpSync,c=r(6462);function u(e,t,r){try{n.renameSync(e,t)}catch(n){if("EXDEV"!==n.code)throw n;return function(e,t,r){const n={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return a(e,t,n),s(e)}(e,t,r)}}e.exports=function(e,t,r){const a=(r=r||{}).overwrite||r.clobber||!1,{srcStat:l,isChangingCase:p=!1}=c.checkPathsSync(e,t,"move",r);return c.checkParentPathsSync(e,l,t,"move"),function(e){const t=i.dirname(e);return i.parse(t).root===t}(t)||o(i.dirname(t)),function(e,t,r,i){if(i)return u(e,t,r);if(r)return s(t),u(e,t,r);if(n.existsSync(t))throw new Error("dest already exists.");return u(e,t,r)}(e,t,a,p)}},3314:(e,t,r)=>{"use strict";const n=r(8737),i=r(6928),{copy:a}=r(4423),{remove:s}=r(5422),{mkdirp:o}=r(3798),{pathExists:c}=r(9288),u=r(6462);e.exports=async function(e,t,r={}){const l=r.overwrite||r.clobber||!1,{srcStat:p,isChangingCase:d=!1}=await u.checkPaths(e,t,"move",r);await u.checkParentPaths(e,p,t,"move");const f=i.dirname(t);return i.parse(f).root!==f&&await o(f),async function(e,t,r,i){if(!i)if(r)await s(t);else if(await c(t))throw new Error("dest already exists.");try{await n.rename(e,t)}catch(n){if("EXDEV"!==n.code)throw n;await async function(e,t,r){const n={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return await a(e,t,n),s(e)}(e,t,r)}}(e,t,l,d)}},7024:(e,t,r)=>{"use strict";const n=r(1236).fromPromise,i=r(8737),a=r(6928),s=r(3798),o=r(9288).pathExists;e.exports={outputFile:n((async function(e,t,r="utf-8"){const n=a.dirname(e);return await o(n)||await s.mkdirs(n),i.writeFile(e,t,r)})),outputFileSync:function(e,...t){const r=a.dirname(e);i.existsSync(r)||s.mkdirsSync(r),i.writeFileSync(e,...t)}}},9288:(e,t,r)=>{"use strict";const n=r(1236).fromPromise,i=r(8737);e.exports={pathExists:n((function(e){return i.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:i.existsSync}},5422:(e,t,r)=>{"use strict";const n=r(3735),i=r(1236).fromCallback;e.exports={remove:i((function(e,t){n.rm(e,{recursive:!0,force:!0},t)})),removeSync:function(e){n.rmSync(e,{recursive:!0,force:!0})}}},6462:(e,t,r)=>{"use strict";const n=r(8737),i=r(6928),a=r(1236).fromPromise;function s(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function o(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e)),n=i.resolve(t).split(i.sep).filter((e=>e));return r.every(((e,t)=>n[t]===e))}function c(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:a((async function(e,t,r,a){const{srcStat:u,destStat:l}=await function(e,t,r){const i=r.dereference?e=>n.stat(e,{bigint:!0}):e=>n.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}(e,t,a);if(l){if(s(u,l)){const n=i.basename(e),a=i.basename(t);if("move"===r&&n!==a&&n.toLowerCase()===a.toLowerCase())return{srcStat:u,destStat:l,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(u.isDirectory()&&!l.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!u.isDirectory()&&l.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(u.isDirectory()&&o(e,t))throw new Error(c(e,t,r));return{srcStat:u,destStat:l}})),checkPathsSync:function(e,t,r,a){const{srcStat:u,destStat:l}=function(e,t,r){let i;const a=r.dereference?e=>n.statSync(e,{bigint:!0}):e=>n.lstatSync(e,{bigint:!0}),s=a(e);try{i=a(t)}catch(e){if("ENOENT"===e.code)return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:i}}(e,t,a);if(l){if(s(u,l)){const n=i.basename(e),a=i.basename(t);if("move"===r&&n!==a&&n.toLowerCase()===a.toLowerCase())return{srcStat:u,destStat:l,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(u.isDirectory()&&!l.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!u.isDirectory()&&l.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(u.isDirectory()&&o(e,t))throw new Error(c(e,t,r));return{srcStat:u,destStat:l}},checkParentPaths:a((async function e(t,r,a,o){const u=i.resolve(i.dirname(t)),l=i.resolve(i.dirname(a));if(l===u||l===i.parse(l).root)return;let p;try{p=await n.stat(l,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(s(r,p))throw new Error(c(t,a,o));return e(t,r,l,o)})),checkParentPathsSync:function e(t,r,a,o){const u=i.resolve(i.dirname(t)),l=i.resolve(i.dirname(a));if(l===u||l===i.parse(l).root)return;let p;try{p=n.statSync(l,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(s(r,p))throw new Error(c(t,a,o));return e(t,r,l,o)},isSrcSubdir:o,areIdentical:s}},7211:(e,t,r)=>{"use strict";const n=r(8737),i=r(1236).fromPromise;e.exports={utimesMillis:i((async function(e,t,r){const i=await n.open(e,"r+");let a=null;try{await n.futimes(i,t,r)}finally{try{await n.close(i)}catch(e){a=e}}if(a)throw a})),utimesMillisSync:function(e,t,r){const i=n.openSync(e,"r+");return n.futimesSync(i,t,r),n.closeSync(i)}}},1455:(e,t,r)=>{e.exports=l,l.realpath=l,l.sync=p,l.realpathSync=p,l.monkeypatch=function(){n.realpath=l,n.realpathSync=p},l.unmonkeypatch=function(){n.realpath=i,n.realpathSync=a};var n=r(9896),i=n.realpath,a=n.realpathSync,s=process.version,o=/^v[0-5]\./.test(s),c=r(6674);function u(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function l(e,t,r){if(o)return i(e,t,r);"function"==typeof t&&(r=t,t=null),i(e,t,(function(n,i){u(n)?c.realpath(e,t,r):r(n,i)}))}function p(e,t){if(o)return a(e,t);try{return a(e,t)}catch(r){if(u(r))return c.realpathSync(e,t);throw r}}},6674:(e,t,r)=>{var n=r(6928),i="win32"===process.platform,a=r(9896),s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function o(e){return"function"==typeof e?e:function(){var e;if(s){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}n.normalize;if(i)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(i)var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else u=/^[\/]*/;t.realpathSync=function(e,t){if(e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,s,o,l,p=e,d={},f={};function h(){var t=u.exec(e);r=t[0].length,s=t[0],o=t[0],l="",i&&!f[o]&&(a.lstatSync(o),f[o]=!0)}for(h();r<e.length;){c.lastIndex=r;var m=c.exec(e);if(l=s,s+=m[0],o=l+m[1],r=c.lastIndex,!(f[o]||t&&t[o]===o)){var v;if(t&&Object.prototype.hasOwnProperty.call(t,o))v=t[o];else{var g=a.lstatSync(o);if(!g.isSymbolicLink()){f[o]=!0,t&&(t[o]=o);continue}var y=null;if(!i){var E=g.dev.toString(32)+":"+g.ino.toString(32);d.hasOwnProperty(E)&&(y=d[E])}null===y&&(a.statSync(o),y=a.readlinkSync(o)),v=n.resolve(l,y),t&&(t[o]=v),i||(d[E]=y)}e=n.resolve(v,e.slice(r)),h()}}return t&&(t[p]=e),e},t.realpath=function(e,t,r){if("function"!=typeof r&&(r=o(t),t=null),e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(r.bind(null,null,t[e]));var s,l,p,d,f=e,h={},m={};function v(){var t=u.exec(e);s=t[0].length,l=t[0],p=t[0],d="",i&&!m[p]?a.lstat(p,(function(e){if(e)return r(e);m[p]=!0,g()})):process.nextTick(g)}function g(){if(s>=e.length)return t&&(t[f]=e),r(null,e);c.lastIndex=s;var n=c.exec(e);return d=l,l+=n[0],p=d+n[1],s=c.lastIndex,m[p]||t&&t[p]===p?process.nextTick(g):t&&Object.prototype.hasOwnProperty.call(t,p)?_(t[p]):a.lstat(p,y)}function y(e,n){if(e)return r(e);if(!n.isSymbolicLink())return m[p]=!0,t&&(t[p]=p),process.nextTick(g);if(!i){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(h.hasOwnProperty(s))return E(null,h[s],p)}a.stat(p,(function(e){if(e)return r(e);a.readlink(p,(function(e,t){i||(h[s]=t),E(e,t)}))}))}function E(e,i,a){if(e)return r(e);var s=n.resolve(d,i);t&&(t[a]=s),_(s)}function _(t){e=n.resolve(t,e.slice(s)),v()}v()}},5635:(e,t,r)=>{"use strict";const{PassThrough:n}=r(2203);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const i="buffer"===r;let a=!1;t?a=!(r||i):r=r||"utf8",i&&(r=null);const s=new n({objectMode:a});r&&s.setEncoding(r);let o=0;const c=[];return s.on("data",(e=>{c.push(e),a?o=c.length:o+=e.length})),s.getBufferedValue=()=>t?c:i?Buffer.concat(c,o):c.join(""),s.getBufferedLength=()=>o,s}},4594:(e,t,r)=>{"use strict";const{constants:n}=r(181),i=r(2203),{promisify:a}=r(9023),s=r(5635),o=a(i.pipeline);class c extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function u(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,i=s(t);return await new Promise(((t,a)=>{const s=e=>{e&&i.getBufferedLength()<=n.MAX_LENGTH&&(e.bufferedData=i.getBufferedValue()),a(e)};(async()=>{try{await o(e,i),t()}catch(e){s(e)}})(),i.on("data",(()=>{i.getBufferedLength()>r&&s(new c)}))})),i.getBufferedValue()}e.exports=u,e.exports.buffer=(e,t)=>u(e,{...t,encoding:"buffer"}),e.exports.array=(e,t)=>u(e,{...t,array:!0}),e.exports.MaxBufferError=c},1198:(e,t,r)=>{function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.setopts=function(e,t,r){r||(r={});if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.windowsPathsNoEscape=!!r.windowsPathsNoEscape||!1===r.allowWindowsEscape,e.windowsPathsNoEscape&&(t=t.replace(/\\/g,"/"));e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0);e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||i,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(l))}(e,r),e.changedCwd=!1;var s=process.cwd();n(r,"cwd")?(e.cwd=a.resolve(r.cwd),e.changedCwd=e.cwd!==s):e.cwd=a.resolve(s);e.root=r.root||a.resolve(e.cwd,"/"),e.root=a.resolve(e.root),e.cwdAbs=o(e.cwd)?e.cwd:p(e,e.cwd),e.nomount=!!r.nomount,"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/"),e.cwd=e.cwd.replace(/\\/g,"/"),e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));r.nonegate=!0,r.nocomment=!0,e.minimatch=new c(t,r),e.options=e.minimatch.options},t.ownProp=n,t.makeAbs=p,t.finish=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(a&&0!==Object.keys(a).length){var s=Object.keys(a);t?r.push.apply(r,s):s.forEach((function(e){r[e]=!0}))}else if(e.nonull){var o=e.minimatch.globSet[n];t?r.push(o):r[o]=!0}}t||(r=Object.keys(r));e.nosort||(r=r.sort(u));if(e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((function(t){var r=!/\/$/.test(t),n=e.cache[t]||e.cache[p(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((function(t){return!d(e,t)})));e.found=r},t.mark=function(e,t){var r=p(e,t),n=e.cache[r],i=t;if(n){var a="DIR"===n||Array.isArray(n),s="/"===t.slice(-1);if(a&&!s?i+="/":!a&&s&&(i=i.slice(0,-1)),i!==t){var o=p(e,i);e.statCache[o]=e.statCache[r],e.cache[o]=e.cache[r]}}return i},t.isIgnored=d,t.childrenIgnored=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};var i=r(9896),a=r(6928),s=r(577),o=r(6928).isAbsolute,c=s.Minimatch;function u(e,t){return e.localeCompare(t,"en")}function l(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new c(r,{dot:!0})}return{matcher:new c(e,{dot:!0}),gmatcher:t}}function p(e,t){var r=t;return r="/"===t.charAt(0)?a.join(e.root,t):o(t)||""===t?t:e.changedCwd?a.resolve(e.cwd,t):a.resolve(t),"win32"===process.platform&&(r=r.replace(/\\/g,"/")),r}function d(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}},3577:(e,t,r)=>{e.exports=y;var n=r(1455),i=r(577),a=(i.Minimatch,r(2017)),s=r(4434).EventEmitter,o=r(6928),c=r(2613),u=r(6928).isAbsolute,l=r(4700),p=r(1198),d=p.setopts,f=p.ownProp,h=r(3423),m=(r(9023),p.childrenIgnored),v=p.isIgnored,g=r(3519);function y(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return l(e,t)}return new _(e,t,r)}y.sync=l;var E=y.GlobSync=l.GlobSync;function _(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new E(e,t)}if(!(this instanceof _))return new _(e,t,r);d(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=g(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return o();for(var a=!0,s=0;s<n;s++)this._process(this.minimatch.set[s],s,!1,o);function o(){--i._processing,i._processing<=0&&(a?process.nextTick((function(){i._finish()})):i._finish())}a=!1}y.glob=y,y.hasMagic=function(e,t){var r=function(e,t){if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}({},t);r.noprocess=!0;var n=new _(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},y.Glob=_,a(_,s),_.prototype._finish=function(){if(c(this instanceof _),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this),this.emit("end",this.found)}},_.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},_.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var i=Object.keys(r),a=this,s=i.length;if(0===s)return t();var o=this.matches[e]=Object.create(null);i.forEach((function(r,i){r=a._makeAbs(r),n.realpath(r,a.realpathCache,(function(n,i){n?"stat"===n.syscall?o[r]=!0:a.emit("error",n):o[i]=!0,0==--s&&(a.matches[e]=o,t())}))}))},_.prototype._mark=function(e){return p.mark(this,e)},_.prototype._makeAbs=function(e){return p.makeAbs(this,e)},_.prototype.abort=function(){this.aborted=!0,this.emit("abort")},_.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},_.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},_.prototype._process=function(e,t,r,n){if(c(this instanceof _),c("function"==typeof n),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,r,n]);else{for(var a,s=0;"string"==typeof e[s];)s++;switch(s){case e.length:return void this._processSimple(e.join("/"),t,n);case 0:a=null;break;default:a=e.slice(0,s).join("/")}var o,l=e.slice(s);null===a?o=".":u(a)||u(e.map((function(e){return"string"==typeof e?e:"[*]"})).join("/"))?(a&&u(a)||(a="/"+a),o=a):o=a;var p=this._makeAbs(o);if(m(this,o))return n();l[0]===i.GLOBSTAR?this._processGlobStar(a,o,p,l,t,r,n):this._processReaddir(a,o,p,l,t,r,n)}},_.prototype._processReaddir=function(e,t,r,n,i,a,s){var o=this;this._readdir(r,a,(function(c,u){return o._processReaddir2(e,t,r,n,i,a,u,s)}))},_.prototype._processReaddir2=function(e,t,r,n,i,a,s,c){if(!s)return c();for(var u=n[0],l=!!this.minimatch.negate,p=u._glob,d=this.dot||"."===p.charAt(0),f=[],h=0;h<s.length;h++){if("."!==(v=s[h]).charAt(0)||d)(l&&!e?!v.match(u):v.match(u))&&f.push(v)}var m=f.length;if(0===m)return c();if(1===n.length&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(h=0;h<m;h++){var v=f[h];e&&(v="/"!==e?e+"/"+v:e+v),"/"!==v.charAt(0)||this.nomount||(v=o.join(this.root,v)),this._emitMatch(i,v)}return c()}n.shift();for(h=0;h<m;h++){v=f[h];e&&(v="/"!==e?e+"/"+v:e+v),this._process([v].concat(n),i,a,c)}c()},_.prototype._emitMatch=function(e,t){if(!this.aborted&&!v(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var r=u(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}},_.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=h("lstat\0"+e,(function(n,i){if(n&&"ENOENT"===n.code)return t();var a=i&&i.isSymbolicLink();r.symlinks[e]=a,a||!i||i.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&r.fs.lstat(e,n)}},_.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=h("readdir\0"+e+"\0"+t,r))){if(t&&!f(this.symlinks,e))return this._readdirInGlobStar(e,r);if(f(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}this.fs.readdir(e,function(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}(this,e,r))}},_.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}},_.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},_.prototype._processGlobStar=function(e,t,r,n,i,a,s){var o=this;this._readdir(r,a,(function(c,u){o._processGlobStar2(e,t,r,n,i,a,u,s)}))},_.prototype._processGlobStar2=function(e,t,r,n,i,a,s,o){if(!s)return o();var c=n.slice(1),u=e?[e]:[],l=u.concat(c);this._process(l,i,!1,o);var p=this.symlinks[r],d=s.length;if(p&&a)return o();for(var f=0;f<d;f++){if("."!==s[f].charAt(0)||this.dot){var h=u.concat(s[f],c);this._process(h,i,!0,o);var m=u.concat(s[f],n);this._process(m,i,!0,o)}}o()},_.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(i,a){n._processSimple2(e,t,i,a,r)}))},_.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&u(e)&&!this.nomount){var a=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=o.join(this.root,e):(e=o.resolve(this.root,e),a&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()},_.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&f(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var a=this.statCache[r];if(void 0!==a){if(!1===a)return t(null,a);var s=a.isDirectory()?"DIR":"FILE";return n&&"FILE"===s?t():t(null,s,a)}var o=this,c=h("stat\0"+r,(function(n,i){if(i&&i.isSymbolicLink())return o.fs.stat(r,(function(n,a){n?o._stat2(e,r,null,i,t):o._stat2(e,r,n,a,t)}));o._stat2(e,r,n,i,t)}));c&&o.fs.lstat(r,c)},_.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var a="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,a&&"FILE"===s?i():i(null,s,n)}},8422:(e,t,r)=>{var n=r(8505);e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return v(function(e){return e.split("\\\\").join(i).split("\\{").join(a).split("\\}").join(s).split("\\,").join(o).split("\\.").join(c)}(e),!0).map(l)};var i="\0SLASH"+Math.random()+"\0",a="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function l(e){return e.split(i).join("\\").split(a).join("{").split(s).join("}").split(o).join(",").split(c).join(".")}function p(e){if(!e)return[""];var t=[],r=n("{","}",e);if(!r)return e.split(",");var i=r.pre,a=r.body,s=r.post,o=i.split(",");o[o.length-1]+="{"+a+"}";var c=p(s);return s.length&&(o[o.length-1]+=c.shift(),o.push.apply(o,c)),t.push.apply(t,o),t}function d(e){return"{"+e+"}"}function f(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function m(e,t){return e>=t}function v(e,t){var r=[],i=n("{","}",e);if(!i)return[e];var a=i.pre,o=i.post.length?v(i.post,!1):[""];if(/\$$/.test(i.pre))for(var c=0;c<o.length;c++){var l=a+"{"+i.body+"}"+o[c];r.push(l)}else{var g,y,E=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),_=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),b=E||_,x=i.body.indexOf(",")>=0;if(!b&&!x)return i.post.match(/,.*\}/)?v(e=i.pre+"{"+i.body+s+i.post):[e];if(b)g=i.body.split(/\.\./);else if(1===(g=p(i.body)).length&&1===(g=v(g[0],!1).map(d)).length)return o.map((function(e){return i.pre+g[0]+e}));if(b){var C=u(g[0]),w=u(g[1]),S=Math.max(g[0].length,g[1].length),T=3==g.length?Math.abs(u(g[2])):1,A=h;w<C&&(T*=-1,A=m);var O=g.some(f);y=[];for(var I=C;A(I,w);I+=T){var D;if(_)"\\"===(D=String.fromCharCode(I))&&(D="");else if(D=String(I),O){var N=S-D.length;if(N>0){var k=new Array(N+1).join("0");D=I<0?"-"+k+D.slice(1):k+D}}y.push(D)}}else{y=[];for(var B=0;B<g.length;B++)y.push.apply(y,v(g[B],!1))}for(B=0;B<y.length;B++)for(c=0;c<o.length;c++){l=a+y[B]+o[c];(!t||b||l)&&r.push(l)}}return r}},9530:e=>{const t="object"==typeof process&&process&&"win32"===process.platform;e.exports=t?{sep:"\\"}:{sep:"/"}},577:(e,t,r)=>{const n=e.exports=(e,t,r={})=>(v(t),!(!r.nocomment&&"#"===t.charAt(0))&&new E(t,r).match(e));e.exports=n;const i=r(9530);n.sep=i.sep;const a=Symbol("globstar **");n.GLOBSTAR=a;const s=r(8422),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},c="[^/]",u=c+"*?",l=e=>e.split("").reduce(((e,t)=>(e[t]=!0,e)),{}),p=l("().*{}+?[]^$\\!"),d=l("[.("),f=/\/+/;n.filter=(e,t={})=>(r,i,a)=>n(r,e,t);const h=(e,t={})=>{const r={};return Object.keys(e).forEach((t=>r[t]=e[t])),Object.keys(t).forEach((e=>r[e]=t[e])),r};n.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return n;const t=n,r=(r,n,i)=>t(r,n,h(e,i));return(r.Minimatch=class extends t.Minimatch{constructor(t,r){super(t,h(e,r))}}).defaults=r=>t.defaults(h(e,r)).Minimatch,r.filter=(r,n)=>t.filter(r,h(e,n)),r.defaults=r=>t.defaults(h(e,r)),r.makeRe=(r,n)=>t.makeRe(r,h(e,n)),r.braceExpand=(r,n)=>t.braceExpand(r,h(e,n)),r.match=(r,n,i)=>t.match(r,n,h(e,i)),r},n.braceExpand=(e,t)=>m(e,t);const m=(e,t={})=>(v(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:s(e)),v=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},g=Symbol("subparse");n.makeRe=(e,t)=>new E(e,t||{}).makeRe(),n.match=(e,t,r={})=>{const n=new E(t,r);return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e};const y=e=>e.replace(/[[\]\\]/g,"\\$&");class E{constructor(e,t){v(e),t||(t={}),this.options=t,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();let r=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,r),r=this.globParts=r.map((e=>e.split(f))),this.debug(this.pattern,r),r=r.map(((e,t,r)=>e.map(this.parse,this))),this.debug(this.pattern,r),r=r.filter((e=>-1===e.indexOf(!1))),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=!1,r=0;for(let n=0;n<e.length&&"!"===e.charAt(n);n++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t}matchOne(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,s=0,o=e.length,c=t.length;i<o&&s<c;i++,s++){this.debug("matchOne loop");var u,l=t[s],p=e[i];if(this.debug(t,l,p),!1===l)return!1;if(l===a){this.debug("GLOBSTAR",[t,l,p]);var d=i,f=s+1;if(f===c){for(this.debug("** at the end");i<o;i++)if("."===e[i]||".."===e[i]||!n.dot&&"."===e[i].charAt(0))return!1;return!0}for(;d<o;){var h=e[d];if(this.debug("\nglobstar while",e,d,t,f,h),this.matchOne(e.slice(d),t.slice(f),r))return this.debug("globstar found match!",d,o,h),!0;if("."===h||".."===h||!n.dot&&"."===h.charAt(0)){this.debug("dot detected!",e,d,t,f);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",e,d,t,f),d!==o))}if("string"==typeof l?(u=p===l,this.debug("string match",l,p,u)):(u=p.match(l),this.debug("pattern match",l,p,u)),!u)return!1}if(i===o&&s===c)return!0;if(i===o)return r;if(s===c)return i===o-1&&""===e[i];throw new Error("wtf?")}braceExpand(){return m(this.pattern,this.options)}parse(e,t){v(e);const r=this.options;if("**"===e){if(!r.noglobstar)return a;e="*"}if(""===e)return"";let n="",i=!1,s=!1;const l=[],f=[];let h,m,E,_,b=!1,x=-1,C=-1,w="."===e.charAt(0),S=r.dot||w;const T=e=>"."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",A=()=>{if(h){switch(h){case"*":n+=u,i=!0;break;case"?":n+=c,i=!0;break;default:n+="\\"+h}this.debug("clearStateChar %j %j",h,n),h=!1}};for(let t,a=0;a<e.length&&(t=e.charAt(a));a++)if(this.debug("%s\t%s %s %j",e,a,n,t),s){if("/"===t)return!1;p[t]&&(n+="\\"),n+=t,s=!1}else switch(t){case"/":return!1;case"\\":if(b&&"-"===e.charAt(a+1)){n+=t;continue}A(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,a,n,t),b){this.debug(" in class"),"!"===t&&a===C+1&&(t="^"),n+=t;continue}this.debug("call clearStateChar %j",h),A(),h=t,r.noext&&A();continue;case"(":{if(b){n+="(";continue}if(!h){n+="\\(";continue}const t={type:h,start:a-1,reStart:n.length,open:o[h].open,close:o[h].close};this.debug(this.pattern,"\t",t),l.push(t),n+=t.open,0===t.start&&"!"!==t.type&&(w=!0,n+=T(e.slice(a+1))),this.debug("plType %j %j",h,n),h=!1;continue}case")":{const e=l[l.length-1];if(b||!e){n+="\\)";continue}l.pop(),A(),i=!0,E=e,n+=E.close,"!"===E.type&&f.push(Object.assign(E,{reEnd:n.length}));continue}case"|":{const t=l[l.length-1];if(b||!t){n+="\\|";continue}A(),n+="|",0===t.start&&"!"!==t.type&&(w=!0,n+=T(e.slice(a+1)));continue}case"[":if(A(),b){n+="\\"+t;continue}b=!0,C=a,x=n.length,n+=t;continue;case"]":if(a===C+1||!b){n+="\\"+t;continue}m=e.substring(C+1,a);try{RegExp("["+y(m.replace(/\\([^-\]])/g,"$1"))+"]"),n+=t}catch(e){n=n.substring(0,x)+"(?:$.)"}i=!0,b=!1;continue;default:A(),!p[t]||"^"===t&&b||(n+="\\"),n+=t}for(b&&(m=e.slice(C+1),_=this.parse(m,g),n=n.substring(0,x)+"\\["+_[0],i=i||_[1]),E=l.pop();E;E=l.pop()){let e;e=n.slice(E.reStart+E.open.length),this.debug("setting tail",n,E),e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>(r||(r="\\"),t+t+r+"|"))),this.debug("tail=%j\n %s",e,e,E,n);const t="*"===E.type?u:"?"===E.type?c:"\\"+E.type;i=!0,n=n.slice(0,E.reStart)+t+"\\("+e}A(),s&&(n+="\\\\");const O=d[n.charAt(0)];for(let e=f.length-1;e>-1;e--){const r=f[e],i=n.slice(0,r.reStart),a=n.slice(r.reStart,r.reEnd-8);let s=n.slice(r.reEnd);const o=n.slice(r.reEnd-8,r.reEnd)+s,c=i.split(")").length,u=i.split("(").length-c;let l=s;for(let e=0;e<u;e++)l=l.replace(/\)[+*?]?/,"");s=l;n=i+a+s+(""===s&&t!==g?"(?:$|\\/)":"")+o}if(""!==n&&i&&(n="(?=.)"+n),O&&(n=(w?"":S?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)")+n),t===g)return[n,i];if(r.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return(e=>e.replace(/\\(.)/g,"$1"))(e);const I=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",I),{_glob:e,_src:n})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const t=this.options,r=t.noglobstar?u:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"";let i=e.map((e=>(e=e.map((e=>"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===a?a:e._src)).reduce(((e,t)=>(e[e.length-1]===a&&t===a||e.push(t),e)),[]),e.forEach(((t,n)=>{t===a&&e[n-1]!==a&&(0===n?e.length>1?e[n+1]="(?:\\/|"+r+"\\/)?"+e[n+1]:e[n]=r:n===e.length-1?e[n-1]+="(?:\\/|"+r+")?":(e[n-1]+="(?:\\/|\\/"+r+"\\/)"+e[n+1],e[n+1]=a))})),e.filter((e=>e!==a)).join("/")))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const r=this.options;"/"!==i.sep&&(e=e.split(i.sep).join("/")),e=e.split(f),this.debug(this.pattern,"split",e);const n=this.set;let a;this.debug(this.pattern,"set",n);for(let t=e.length-1;t>=0&&(a=e[t],!a);t--);for(let i=0;i<n.length;i++){const s=n[i];let o=e;r.matchBase&&1===s.length&&(o=[a]);if(this.matchOne(o,s,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(e){return n.defaults(e).Minimatch}}n.Minimatch=E},4700:(e,t,r)=>{e.exports=f,f.GlobSync=h;var n=r(1455),i=r(577),a=(i.Minimatch,r(3577).Glob,r(9023),r(6928)),s=r(2613),o=r(6928).isAbsolute,c=r(1198),u=c.setopts,l=c.ownProp,p=c.childrenIgnored,d=c.isIgnored;function f(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new h(e,t).found}function h(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof h))return new h(e,t);if(u(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}h.prototype._finish=function(){if(s.ok(this instanceof h),this.realpath){var e=this;this.matches.forEach((function(t,r){var i=e.matches[r]=Object.create(null);for(var a in t)try{a=e._makeAbs(a),i[n.realpathSync(a,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;i[e._makeAbs(a)]=!0}}))}c.finish(this)},h.prototype._process=function(e,t,r){s.ok(this instanceof h);for(var n,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return void this._processSimple(e.join("/"),t);case 0:n=null;break;default:n=e.slice(0,a).join("/")}var c,u=e.slice(a);null===n?c=".":o(n)||o(e.map((function(e){return"string"==typeof e?e:"[*]"})).join("/"))?(n&&o(n)||(n="/"+n),c=n):c=n;var l=this._makeAbs(c);p(this,c)||(u[0]===i.GLOBSTAR?this._processGlobStar(n,c,l,u,t,r):this._processReaddir(n,c,l,u,t,r))},h.prototype._processReaddir=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(o){for(var c=n[0],u=!!this.minimatch.negate,l=c._glob,p=this.dot||"."===l.charAt(0),d=[],f=0;f<o.length;f++){if("."!==(v=o[f]).charAt(0)||p)(u&&!e?!v.match(c):v.match(c))&&d.push(v)}var h=d.length;if(0!==h)if(1!==n.length||this.mark||this.stat){n.shift();for(f=0;f<h;f++){var m;v=d[f];m=e?[e,v]:[v],this._process(m.concat(n),i,s)}}else{this.matches[i]||(this.matches[i]=Object.create(null));for(var f=0;f<h;f++){var v=d[f];e&&(v="/"!==e.slice(-1)?e+"/"+v:e+v),"/"!==v.charAt(0)||this.nomount||(v=a.join(this.root,v)),this._emitMatch(i,v)}}}},h.prototype._emitMatch=function(e,t){if(!d(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},h.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=this.fs.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},h.prototype._readdir=function(e,t){if(t&&!l(this.symlinks,e))return this._readdirInGlobStar(e);if(l(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},h.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},h.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},h.prototype._processGlobStar=function(e,t,r,n,i,a){var s=this._readdir(r,a);if(s){var o=n.slice(1),c=e?[e]:[],u=c.concat(o);this._process(u,i,!1);var l=s.length;if(!this.symlinks[r]||!a)for(var p=0;p<l;p++){if("."!==s[p].charAt(0)||this.dot){var d=c.concat(s[p],o);this._process(d,i,!0);var f=c.concat(s[p],n);this._process(f,i,!0)}}}},h.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),r){if(e&&o(e)&&!this.nomount){var n=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=a.join(this.root,e):(e=a.resolve(this.root,e),n&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},h.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&l(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var a;try{a=this.fs.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(a&&a.isSymbolicLink())try{i=this.fs.statSync(t)}catch(e){i=a}else i=a}this.statCache[t]=i;n=!0;return i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},h.prototype._mark=function(e){return c.mark(this,e)},h.prototype._makeAbs=function(e){return c.makeAbs(this,e)}},1283:e=>{"use strict";e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var r={__proto__:t(e)};else r=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})),r};var t=Object.getPrototypeOf||function(e){return e.__proto__}},3735:(e,t,r)=>{var n,i,a=r(9896),s=r(9106),o=r(1995),c=r(1283),u=r(9023);function l(e,t){Object.defineProperty(e,n,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),i=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",i="___graceful-fs.previous");var p,d=function(){};if(u.debuglog?d=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=u.format.apply(u,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!a[n]){var f=global[n]||[];l(a,f),a.close=function(e){function t(t,r){return e.call(a,t,(function(e){e||v(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,i,{value:e}),t}(a.close),a.closeSync=function(e){function t(t){e.apply(a,arguments),v()}return Object.defineProperty(t,i,{value:e}),t}(a.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(a[n]),r(2613).equal(a[n].length,0)}))}function h(e){s(e),e.gracefulify=h,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i,a){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):m([e,[r,n,i],t,a||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,a,s){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof a&&a.apply(this,arguments):m([e,[t,n,i,a],r,s||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,a,s){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof a&&a.apply(this,arguments):m([e,[t,r,i,a],n,s||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,a,s){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof a&&a.apply(this,arguments):m([e,[t,r,n,a],i,s||Date.now(),Date.now()])}))}(e,t,r,n)});var a=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=c.test(process.version)?function(e,t,r,n){return a(e,i(e,t,r,n))}:function(e,t,r,n){return a(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,r,i){return function(a,s){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?(s&&s.sort&&s.sort(),"function"==typeof r&&r.call(this,a,s)):m([n,[e,t,r],a,i||Date.now(),Date.now()])}}};var c=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var u=o(e);v=u.ReadStream,g=u.WriteStream}var l=e.ReadStream;l&&(v.prototype=Object.create(l.prototype),v.prototype.open=function(){var e=this;E(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var p=e.WriteStream;p&&(g.prototype=Object.create(p.prototype),g.prototype.open=function(){var e=this;E(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return v},set:function(e){v=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0});var d=v;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var f=g;function v(e,t){return this instanceof v?(l.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function g(e,t){return this instanceof g?(p.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var y=e.open;function E(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,a){return y(t,r,n,(function(s,o){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof i&&i.apply(this,arguments):m([e,[t,r,n,i],s,a||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=E,e}function m(e){d("ENQUEUE",e[0].name,e[1]),a[n].push(e),g()}function v(){for(var e=Date.now(),t=0;t<a[n].length;++t)a[n][t].length>2&&(a[n][t][3]=e,a[n][t][4]=e);g()}function g(){if(clearTimeout(p),p=void 0,0!==a[n].length){var e=a[n].shift(),t=e[0],r=e[1],i=e[2],s=e[3],o=e[4];if(void 0===s)d("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-s>=6e4){d("TIMEOUT",t.name,r);var c=r.pop();"function"==typeof c&&c.call(null,i)}else{var u=Date.now()-o,l=Math.max(o-s,1);u>=Math.min(1.2*l,100)?(d("RETRY",t.name,r),t.apply(null,r.concat([s]))):a[n].push(e)}void 0===p&&(p=setTimeout(g,0))}}global[n]||l(global,a[n]),e.exports=h(c(a)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched&&(e.exports=h(a),a.__patched=!0)},1995:(e,t,r)=>{var n=r(2203).Stream;e.exports=function(e){return{ReadStream:function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this);var a=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};for(var s=Object.keys(i),o=0,c=s.length;o<c;o++){var u=s[o];this[u]=i[u]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){a._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return a.emit("error",e),void(a.readable=!1);a.fd=t,a.emit("open",t),a._read()}))},WriteStream:function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var a=Object.keys(i),s=0,o=a.length;s<o;s++){var c=a[s];this[c]=i[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},9106:(e,t,r)=>{var n=r(9140),i=process.cwd,a=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return a||(a=i.call(process)),a};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var o=process.chdir;process.chdir=function(e){a=null,o.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,o)}e.exports=function(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){t?i&&i(t):e.fchmod(n,r,(function(t){e.close(n,(function(e){i&&i(t||e)}))}))}))},e.lchmodSync=function(t,r){var i,a=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),s=!0;try{i=e.fchmodSync(a,r),s=!1}finally{if(s)try{e.closeSync(a)}catch(e){}else e.closeSync(a)}return i}}(e);e.lutimes||function(e){n.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,i,a){e.open(t,n.O_SYMLINK,(function(t,n){t?a&&a(t):e.futimes(n,r,i,(function(t){e.close(n,(function(e){a&&a(t||e)}))}))}))},e.lutimesSync=function(t,r,i){var a,s=e.openSync(t,n.O_SYMLINK),o=!0;try{a=e.futimesSync(s,r,i),o=!1}finally{if(o)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return a}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===s&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var a=Date.now(),s=0;t(r,n,(function o(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-a<6e4)return setTimeout((function(){e.stat(n,(function(e,a){e&&"ENOENT"===e.code?t(r,n,o):i(c)}))}),s),void(s<100&&(s+=10));i&&i(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename));function t(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){u(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!u(e))throw e}}:t}function i(t){return t?function(r,n,i,a){return t.call(e,r,n,i,(function(e){u(e)&&(e=null),a&&a.apply(this,arguments)}))}:t}function a(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!u(e))throw e}}:t}function o(t){return t?function(r,n,i){function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,a):t.call(e,r,a)}:t}function c(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function u(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,a,s,o){var c;if(o&&"function"==typeof o){var u=0;c=function(l,p,d){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,r,n,i,a,s,c);o.apply(this,arguments)}}return t.call(e,r,n,i,a,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(l=e.readSync,function(t,r,n,i,a){for(var s=0;;)try{return l.call(e,t,r,n,i,a)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}});var l}},5884:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)}},3423:(e,t,r)=>{var n=r(6587),i=Object.create(null),a=r(3519);e.exports=n((function(e,t){return i[e]?(i[e].push(t),null):(i[e]=[t],function(e){return a((function t(){var r=i[e],n=r.length,a=function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}(arguments);try{for(var s=0;s<n;s++)r[s].apply(null,a)}finally{r.length>n?(r.splice(0,n),process.nextTick((function(){t.apply(null,a)}))):delete i[e]}}))}(e))}))},2017:(e,t,r)=>{try{var n=r(9023);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r(6698)}},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},1147:(e,t,r)=>{var n;r(9896);function i(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,n){i(e,t||{},(function(e,t){e?n(e):r(t)}))}))}n(e,t||{},(function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}n="win32"===process.platform||global.TESTING_WINDOWS?r(8057):r(7715),e.exports=i,i.sync=function(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},7715:(e,t,r)=>{e.exports=i,i.sync=function(e,t){return a(n.statSync(e),t)};var n=r(9896);function i(e,t,r){n.stat(e,(function(e,n){r(e,!e&&a(n,t))}))}function a(e,t){return e.isFile()&&function(e,t){var r=e.mode,n=e.uid,i=e.gid,a=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),o=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),l=o|c;return r&u||r&c&&i===s||r&o&&n===a||r&l&&0===a}(e,t)}},8057:(e,t,r)=>{e.exports=a,a.sync=function(e,t){return i(n.statSync(e),e,t)};var n=r(9896);function i(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}(t,r)}function a(e,t,r){n.stat(e,(function(n,a){r(n,!n&&i(a,e,t))}))}},2909:(e,t,r)=>{let n;try{n=r(3735)}catch(e){n=r(9896)}const i=r(1236),{stringify:a,stripBom:s}=r(1144);const o={readFile:i.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,a=!("throws"in t)||t.throws;let o,c=await i.fromCallback(r.readFile)(e,t);c=s(c);try{o=JSON.parse(c,t?t.reviver:null)}catch(t){if(a)throw t.message=`${e}: ${t.message}`,t;return null}return o})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const r=t.fs||n,i=!("throws"in t)||t.throws;try{let n=r.readFileSync(e,t);return n=s(n),JSON.parse(n,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:i.fromPromise((async function(e,t,r={}){const s=r.fs||n,o=a(t,r);await i.fromCallback(s.writeFile)(e,o,r)})),writeFileSync:function(e,t,r={}){const i=r.fs||n,s=a(t,r);return i.writeFileSync(e,s,r)}};e.exports=o},1144:e=>{e.exports={stringify:function(e,{EOL:t="\n",finalEOL:r=!0,replacer:n=null,spaces:i}={}){const a=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+a},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},2717:(e,t,r)=>{var n=r(8105),i=r(769),a=r(8009),s=r(6186),o=r(4460);var c=(t=function(e,t){return c.extend(e,t)}).Base=function e(t,r,c){c=c||{};var u=r.className||s(r,"initialize.name")||"";delete r.className;var l=function(){var e=i(arguments);return this.initialize&&this.initialize.apply(this,e)||this};if(!o)try{l=new Function("toArr","return function "+u+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(i)}catch(e){}return a(l,t),l.prototype.constructor=l,l.extend=function(t,r){return e(l,t,r)},l.inherits=function(e){a(l,e)},l.methods=function(e){return n(l.prototype,e),l},l.statics=function(e){return n(l,e),l},l.methods(r).statics(c),l}(Object,{className:"Base",callSuper:function(e,t,r){return e.prototype[t].apply(this,r)},toString:function(){return this.constructor.name}});e.exports=t},4079:(e,t,r)=>{var n=r(2717),i=r(3145),a=r(6186),s=r(3957),o=r(8971),c=r(6097),u=r(1738),l=r(6493);t=n({className:"Validator",initialize:function(e){this._options=e,this._optKeys=i(e)},validate:function(e){e=e||{};for(var t=this._options,r=this._optKeys,n=0,i=r.length;n<i;n++){var s=r[n],o=this._validateVal(a(e,s),t[s],s);if(!0!==o)return o}return!0},_validateVal:function(e,r,n){var a=t.plugins;if(s(r))return r(e);for(var o=i(r),c=0,u=o.length;c<u;c++){var l=o[c],p=r[l],d=!0;s(p)&&(d=p(e,n));var f=a[l];if(f&&(d=f(e,n,p)),!0!==d)return d}return!0}},{plugins:{required:function(e,t,r){return!r||!o(e)||t+" is required"},number:function(e,t,r){return!(r&&!o(e)&&!c(e))||t+" should be a number"},boolean:function(e,t,r){return!(r&&!o(e)&&!l(e))||t+" should be a boolean"},string:function(e,t,r){return!(r&&!o(e)&&!u(e))||t+" should be a string"},regexp:function(e,t,r){return!(u(e)&&!r.test(e))||t+" should match given regexp "+r.toString()}},addPlugin:function(e,r){t.plugins[e]=r}}),e.exports=t},7514:(e,t,r)=>{var n=r(3145),i=r(5427),a=r(438),s=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.prototype,c=void 0===r||r,u=t.unenumerable,l=void 0!==u&&u,p=t.symbol,d=void 0!==p&&p,f=[];if((l||d)&&s){var h=n;l&&s&&(h=s);do{f=f.concat(h(e)),d&&o&&(f=f.concat(o(e)))}while(c&&(e=i(e))&&e!==Object.prototype);f=a(f)}else if(c)for(var m in e)f.push(m);else f=n(e);return f},e.exports=t},6949:(e,t,r)=>{var n=r(365),i=r(6214);t=function(e,t){if(i(e))return e;if(t&&n(t,e))return[e];var r=[];return e.replace(a,(function(e,t,n,i){r.push(n?i.replace(s,"$1"):t||e)})),r};var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g;e.exports=t},6513:(e,t,r)=>{var n=r(9760);t=function(e){if(!n(e))return{};if(i)return i(e);function t(){}return t.prototype=e,new t};var i=Object.create;e.exports=t},6307:(e,t,r)=>{var n=r(8971),i=r(9100);t=function(e,t){return function(r){return i(arguments,(function(a,s){if(0!==s){var o=e(a);i(o,(function(e){t&&!n(r[e])||(r[e]=a[e])}))}})),r}},e.exports=t},5651:(e,t,r)=>{t=r(6307)(r(7514),!0),e.exports=t},5004:(e,t,r)=>{var n=r(1909),i=r(621);t=function(e){function t(t){return e.indexOf(t)>-1}if(!e&&n&&(e=navigator.userAgent),e){if(e=e.toLowerCase(),t("windows phone"))return"windows phone";if(t("win"))return"windows";if(t("android"))return"android";if(t("ipad")||t("iphone")||t("ipod"))return"ios";if(t("mac"))return"os x";if(t("linux"))return"linux"}else if(i){var r=process,a=r.platform,s=r.env;if("win32"===a||"cygwin"===s.OSTYPE||"msys"===s.OSTYPE)return"windows";if("darwin"===a)return"os x";if("linux"===a)return"linux"}return"unknown"},e.exports=t},9100:(e,t,r)=>{var n=r(5793),i=r(3145),a=r(6459);t=function(e,t,r){var s,o;if(t=a(t,r),n(e))for(s=0,o=e.length;s<o;s++)t(e[s],s,e);else{var c=i(e);for(s=0,o=c.length;s<o;s++)t(e[c[s]],c[s],e)}return e},e.exports=t},1580:(e,t)=>{t=function(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r},e.exports=t},5207:(e,t)=>{t=function(e){return e.replace(/\W/g,"\\$&")},e.exports=t},8105:(e,t,r)=>{t=r(6307)(r(7514)),e.exports=t},3089:(e,t,r)=>{var n=r(3145);t=r(6307)(n),e.exports=t},992:(e,t,r)=>{function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,s,o=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a=r(2989),s=r(373),o=r(3957);t=function(e){"uint8array"!==a(e)&&(e=new Uint8Array(e));for(var t=0,r=c.length;t<r;t++){var i=n(c[t],3),l=i[0],p=i[1],d=i[2];if(o(p)){if(p(e))return{ext:l,mime:s(l)}}else if(u(e,p,d))return{ext:l,mime:s(l)}}};var c=[["jpg",[255,216,255]],["png",[137,80,78,71,13,10,26,10]],["gif",[71,73,70]],["webp",[87,69,66,80],8],["bmp",[66,77]],["gz",[31,139,8]],["zip",function(e){return u(e,[80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3])}],["rar",function(e){return u(e,[82,97,114,33,26,7])&&(0===e[6]||1===e[6])}],["pdf",[37,80,68,70]],["exe",[77,90]]];function u(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=0,i=t.length;n<i;n++)if(e[r+n]!==t[n])return!1;return!0}e.exports=t},2571:(e,t,r)=>{var n=r(5693),i=r(9100);t=function(e,t,r){var a=[];return t=n(t,r),i(e,(function(e,r,n){t(e,r,n)&&a.push(e)})),a},e.exports=t},5427:(e,t,r)=>{var n=r(9760),i=r(3957),a=Object.getPrototypeOf,s={}.constructor;t=function(e){if(n(e)){if(a)return a(e);var t=e.__proto__;return t||null===t?t:i(e.constructor)?e.constructor.prototype:e instanceof s?s.prototype:void 0}},e.exports=t},365:(e,t)=>{var r=Object.prototype.hasOwnProperty;t=function(e,t){return r.call(e,t)},e.exports=t},2455:(e,t)=>{t=function(e){return e},e.exports=t},8009:(e,t,r)=>{var n=r(6513);t=function(e,t){e.prototype=n(t.prototype)},e.exports=t},5132:(e,t,r)=>{var n=r(3974);t=function(e){return"[object Arguments]"===n(e)},e.exports=t},6214:(e,t,r)=>{var n=r(3974);t=Array.isArray?Array.isArray:function(e){return"[object Array]"===n(e)},e.exports=t},5793:(e,t,r)=>{var n=r(6097),i=r(3957),a=Math.pow(2,53)-1;t=function(e){if(!e)return!1;var t=e.length;return n(t)&&t>=0&&t<=a&&!i(e)},e.exports=t},6493:(e,t)=>{t=function(e){return!0===e||!1===e},e.exports=t},1909:(e,t)=>{t="object"==typeof window&&"object"==typeof document&&9===document.nodeType,e.exports=t},3159:(e,t,r)=>{var n=r(3957);t=function(e){return null!=e&&(!!e._isBuffer||e.constructor&&n(e.constructor.isBuffer)&&e.constructor.isBuffer(e))},e.exports=t},9464:(e,t,r)=>{var n=r(5793),i=r(6214),a=r(1738),s=r(5132),o=r(3145);t=function(e){return null==e||(n(e)&&(i(e)||a(e)||s(e))?0===e.length:0===o(e).length)},e.exports=t},3957:(e,t,r)=>{var n=r(3974);t=function(e){var t=n(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||"[object AsyncFunction]"===t},e.exports=t},2884:(e,t,r)=>{var n=r(6097);t=function(e){return n(e)&&e%1==0},e.exports=t},7468:(e,t,r)=>{var n=r(3145);t=function(e,t){var r=n(t),i=r.length;if(null==e)return!i;e=Object(e);for(var a=0;a<i;a++){var s=r[a];if(t[s]!==e[s]||!(s in e))return!1}return!0},e.exports=t},4460:(e,t,r)=>{var n=r(3957);t="undefined"!=typeof wx&&n(wx.openLocation),e.exports=t},1932:(e,t,r)=>{var n=r(6097);t=function(e){return n(e)&&e!==+e},e.exports=t},621:(e,t,r)=>{var n=r(3974);t="undefined"!=typeof process&&"[object process]"===n(process),e.exports=t},6097:(e,t,r)=>{var n=r(3974);t=function(e){return"[object Number]"===n(e)},e.exports=t},9760:(e,t)=>{t=function(e){var t=typeof e;return!!e&&("function"===t||"object"===t)},e.exports=t},8265:(e,t)=>{t=function(e){return!r.test(e)};var r=/^([a-z]+:)?[\\/]/i;e.exports=t},1738:(e,t,r)=>{var n=r(3974);t=function(e){return"[object String]"===n(e)},e.exports=t},8971:(e,t)=>{t=function(e){return void 0===e},e.exports=t},4888:(e,t,r)=>{t="windows"===r(5004)(),e.exports=t},3145:(e,t,r)=>{var n=r(365);t=Object.keys?Object.keys:function(e){var t=[];for(var r in e)n(e,r)&&t.push(r);return t},e.exports=t},3497:(e,t)=>{t=function(e){var t=e?e.length:0;if(t)return e[t-1]},e.exports=t},96:(e,t,r)=>{var n=r(2561);t=function(e){return n(e).toLocaleLowerCase()},e.exports=t},5333:(e,t)=>{var r=/^\s+/;t=function(e,t){if(null==t)return e.trimLeft?e.trimLeft():e.replace(r,"");for(var n,i,a=0,s=e.length,o=t.length,c=!0;c&&a<s;)for(c=!1,n=-1,i=e.charAt(a);++n<o;)if(i===t[n]){c=!0,a++;break}return a>=s?"":e.substr(a,s)},e.exports=t},3915:(e,t,r)=>{var n=r(5693),i=r(3145),a=r(5793);t=function(e,t,r){t=n(t,r);for(var s=!a(e)&&i(e),o=(s||e).length,c=Array(o),u=0;u<o;u++){var l=s?s[u]:u;c[u]=t(e[l],l,e)}return c},e.exports=t},199:(e,t,r)=>{var n=r(3089),i=r(7468);t=function(e){return e=n({},e),function(t){return i(t,e)}},e.exports=t},373:(e,t,r)=>{var n=r(9100),i={"image/jpeg":["jpeg","jpg"],"image/png":["png"],"image/gif":["gif"],"image/webp":["webp"],"image/tiff":["tif","tiff"],"image/bmp":["bmp"],"image/vnd.adobe.photoshop":["psd"],"image/svg+xml":["svg"],"audio/mp4":["m4a","mp4a"],"audio/midi":["midi"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["ogg"],"audio/wav":["wav"],"video/mp4":["mp4","mp4v","mpg4"],"video/x-matroska":["mkv"],"video/webm":["webm"],"video/x-msvideo":["avi"],"video/quicktime":["qt","mov"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/3gpp":["3gp","3gpp"],"text/css":["css"],"text/html":["html","htm","shtml"],"text/yaml":["yaml","yml"],"text/csv":["csv"],"text/markdown":["markdown","md"],"text/plain":["txt","text","conf","log","ini"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"application/zip":["zip"],"application/x-tar":["tar"],"application/x-rar-compressed":["rar"],"application/gzip":["gz"],"application/x-7z-compressed":["7z"],"application/octet-stream":["bin","so","exe","dll","dmg","iso","msi"],"application/epub+zip":["epub"],"application/javascript":["js"],"application/json":["json"],"application/msword":["doc","docx","dot","dotx"],"application/vnd.ms-excel":["xls","xlsx","xla","xlt"],"application/vnd.ms-powerpoint":["ppt","pptx","pps","pot"],"application/pdf":["pdf"],"application/wasm":["wasm"],"application/xml":["xml"],"application/xml-dtd":["dtd"]},a={};n(i,(function(e,t){n(e,(function(e){a[e]=t}))})),t=function(e){return(function(e){return e.indexOf("/")>-1}(e)?function(e){if(i[e])return i[e][0]}(e):function(e){return a[e]}(e))||void 0},e.exports=t},4037:(e,t)=>{t=function(e){return e.replace(r,"/")};var r=/[\\/]+/g;e.exports=t},3974:(e,t)=>{var r=Object.prototype.toString;t=function(e){return r.call(e)},e.exports=t},6459:(e,t,r)=>{var n=r(8971);t=function(e,t,r){if(n(t))return e;switch(null==r?3:r){case 1:return function(r){return e.call(t,r)};case 3:return function(r,n,i){return e.call(t,r,n,i)};case 4:return function(r,n,i,a){return e.call(t,r,n,i,a)}}return function(){return e.apply(t,arguments)}},e.exports=t},3169:(e,t,r)=>{var n=r(2510),i=r(5169);t=function(e,t){return n((function(r){return new i.Promise((function(i,a){r.push(n((function(e,r){return e?a(e):t?void i(r):i(r[0])}))),e.apply(this,r)}))}))},e.exports=t},500:(e,t,r)=>{var n=r(6214),i=r(6186);t=function(e){return n(e)?function(t){return i(t,e)}:(t=e,function(e){return null==e?void 0:e[t]});var t},e.exports=t},6774:(e,t)=>{t=function(e,t,r){null==t&&(t=e,e=0);var n=Math.random();return r||e%1||t%1?Math.min(e+n*(t-e+parseFloat("1e-"+((n+"").length-1))),t):e+Math.floor(n*(t-e+1))},e.exports=t},7731:(module,exports,__webpack_require__)=>{var random=__webpack_require__(6774),isBrowser=__webpack_require__(1909),isNode=__webpack_require__(621),crypto;exports=function(e){for(var t=new Uint8Array(e),r=0;r<e;r++)t[r]=random(0,255);return t},isBrowser?(crypto=window.crypto||window.msCrypto,crypto&&(exports=function(e){var t=new Uint8Array(e);return crypto.getRandomValues(t),t})):isNode&&(crypto=eval("require")("crypto"),exports=function(e){return crypto.randomBytes(e)}),module.exports=exports},8887:(e,t,r)=>{var n=r(7731);t=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ModuleSymbhasOwnPr-0123456789ABCDEFGHIJKLNQRTUVWXYZ_cfgijkpqtvxz",r="",i=t.length,a=n(e);0<e--;)r+=t[a[e]%i];return r},e.exports=t},894:(e,t,r)=>{var n=r(5207);t=function(e,t,r){return e.replace(new RegExp(n(t),"g"),r)},e.exports=t},2510:(e,t)=>{t=function(e,t){return t=null==t?e.length-1:+t,function(){var r,n=Math.max(arguments.length-t,0),i=new Array(n);for(r=0;r<n;r++)i[r]=arguments[r+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var a=new Array(t+1);for(r=0;r<t;r++)a[r]=arguments[r];return a[t]=i,e.apply(this,a)}},e.exports=t},5169:(e,t,r)=>{t=r(1909)?window:global,e.exports=t},9651:(e,t)=>{t=function(e,t){if(null==t){if(e.trimRight)return e.trimRight();t=" \r\n\t\f\v"}for(var r,n,i=e.length-1,a=t.length,s=!0;s&&i>=0;)for(s=!1,r=-1,n=e.charAt(i);++r<a;)if(n===t[r]){s=!0,i--;break}return i>=0?e.substring(0,i+1):""},e.exports=t},5693:(e,t,r)=>{var n=r(3957),i=r(9760),a=r(6214),s=r(6459),o=r(199),c=r(2455),u=r(500);t=function(e,t,r){return null==e?c:n(e)?s(e,t,r):i(e)&&!a(e)?o(e):u(e)},e.exports=t},6186:(e,t,r)=>{var n=r(8971),i=r(6949);t=function(e,t){var r;for(r=(t=i(t,e)).shift();!n(r);){if(null==(e=e[r]))return;r=t.shift()}return e},e.exports=t},2162:(e,t)=>{t=function(e){var t=e.match(r);return{dir:t[1],name:t[2],ext:t[3]}};var r=/^([\s\S]*?)((?:\.{1,2}|[^\\/]+?|)(\.[^./\\]*|))(?:[\\/]*)$/;e.exports=t},1009:(e,t)=>{t=function(e,t){return 0===e.indexOf(t)},e.exports=t},769:(e,t,r)=>{var n=r(5793),i=r(3915),a=r(6214),s=r(1738);t=function(e){return e?a(e)?e:n(e)&&!s(e)?i(e):[e]:[]},e.exports=t},2561:(e,t)=>{t=function(e){return null==e?"":e.toString()},e.exports=t},9405:(e,t,r)=>{var n=r(5333),i=r(9651);t=function(e,t){return null==t&&e.trim?e.trim():n(i(e,t),t)},e.exports=t},2989:(e,t,r)=>{var n=r(3974),i=r(1932),a=r(96),s=r(3159);t=function(e){var t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return null===e&&(t="Null"),void 0===e&&(t="Undefined"),i(e)&&(t="NaN"),s(e)&&(t="Buffer"),t||(t=n(e).match(o))&&(t=t[1]),t?r?a(t):t:""};var o=/^\[object\s+(.*?)]$/;e.exports=t},438:(e,t,r)=>{var n=r(2571);function i(e,t){return e===t}t=function(e,t){return t=t||i,n(e,(function(e,r,n){for(var i=n.length;++r<i;)if(t(e,n[r]))return!1;return!0}))},e.exports=t},7882:(e,t,r)=>{"use strict";const{PassThrough:n}=r(2203);e.exports=function(){var e=[],t=new n({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=function(){return 0==e.length},t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(n){return Array.isArray(n)?(n.forEach(r),this):(e.push(n),n.once("end",i.bind(null,n)),n.once("error",t.emit.bind(t,"error")),n.pipe(t,{end:!1}),this)}function i(r){!(e=e.filter((function(e){return e!==r}))).length&&t.readable&&t.end()}}},7598:(e,t,r)=>{e.exports=r(1813)},6049:(e,t,r)=>{"use strict";var n,i,a,s=r(7598),o=r(6928).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,u=/^text\//i;function l(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),r=t&&s[t[1].toLowerCase()];return r&&r.charset?r.charset:!(!t||!u.test(t[1]))&&"UTF-8"}t.charset=l,t.charsets={lookup:l},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var r=-1===e.indexOf("/")?t.lookup(e):e;if(!r)return!1;if(-1===r.indexOf("charset")){var n=t.charset(r);n&&(r+="; charset="+n.toLowerCase())}return r},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var r=c.exec(e),n=r&&t.extensions[r[1].toLowerCase()];if(!n||!n.length)return!1;return n[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var r=o("x."+e).toLowerCase().substr(1);if(!r)return!1;return t.types[r]||!1},t.types=Object.create(null),n=t.extensions,i=t.types,a=["nginx","apache",void 0,"iana"],Object.keys(s).forEach((function(e){var t=s[e],r=t.extensions;if(r&&r.length){n[e]=r;for(var o=0;o<r.length;o++){var c=r[o];if(i[c]){var u=a.indexOf(s[i[c]].source),l=a.indexOf(t.source);if("application/octet-stream"!==i[c]&&(u>l||u===l&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}}))},4027:(e,t,r)=>{e.exports=d,d.Minimatch=f;var n=function(){try{return r(6928)}catch(e){}}()||{sep:"/"};d.sep=n.sep;var i=d.GLOBSTAR=f.GLOBSTAR={},a=r(8928),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},o="[^/]",c=o+"*?",u="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var l=/\/+/;function p(e,t){t=t||{};var r={};return Object.keys(e).forEach((function(t){r[t]=e[t]})),Object.keys(t).forEach((function(e){r[e]=t[e]})),r}function d(e,t,r){return m(t),r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&new f(t,r).match(e)}function f(e,t){if(!(this instanceof f))return new f(e,t);m(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||"/"===n.sep||(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}function h(e,t){return t||(t=this instanceof f?this.options:{}),e=void 0===e?this.pattern:e,m(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:a(e)}d.filter=function(e,t){return t=t||{},function(r,n,i){return d(r,e,t)}},d.defaults=function(e){if(!e||"object"!=typeof e||!Object.keys(e).length)return d;var t=d,r=function(r,n,i){return t(r,n,p(e,i))};return(r.Minimatch=function(r,n){return new t.Minimatch(r,p(e,n))}).defaults=function(r){return t.defaults(p(e,r)).Minimatch},r.filter=function(r,n){return t.filter(r,p(e,n))},r.defaults=function(r){return t.defaults(p(e,r))},r.makeRe=function(r,n){return t.makeRe(r,p(e,n))},r.braceExpand=function(r,n){return t.braceExpand(r,p(e,n))},r.match=function(r,n,i){return t.match(r,n,p(e,i))},r},f.defaults=function(e){return d.defaults(e).Minimatch},f.prototype.debug=function(){},f.prototype.make=function(){var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)});this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(l)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r},f.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var i=0,a=e.length;i<a&&"!"===e.charAt(i);i++)t=!t,n++;n&&(this.pattern=e.substr(n));this.negate=t},d.braceExpand=function(e,t){return h(e,t)},f.prototype.braceExpand=h;var m=function(e){if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};f.prototype.parse=function(e,t){m(e);var r=this.options;if("**"===e){if(!r.noglobstar)return i;e="*"}if(""===e)return"";var n,a="",l=!!r.nocase,p=!1,d=[],f=[],h=!1,g=-1,y=-1,E="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",_=this;function b(){if(n){switch(n){case"*":a+=c,l=!0;break;case"?":a+=o,l=!0;break;default:a+="\\"+n}_.debug("clearStateChar %j %j",n,a),n=!1}}for(var x,C=0,w=e.length;C<w&&(x=e.charAt(C));C++)if(this.debug("%s\t%s %s %j",e,C,a,x),p&&u[x])a+="\\"+x,p=!1;else switch(x){case"/":return!1;case"\\":b(),p=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,C,a,x),h){this.debug(" in class"),"!"===x&&C===y+1&&(x="^"),a+=x;continue}_.debug("call clearStateChar %j",n),b(),n=x,r.noext&&b();continue;case"(":if(h){a+="(";continue}if(!n){a+="\\(";continue}d.push({type:n,start:C-1,reStart:a.length,open:s[n].open,close:s[n].close}),a+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,a),n=!1;continue;case")":if(h||!d.length){a+="\\)";continue}b(),l=!0;var S=d.pop();a+=S.close,"!"===S.type&&f.push(S),S.reEnd=a.length;continue;case"|":if(h||!d.length||p){a+="\\|",p=!1;continue}b(),a+="|";continue;case"[":if(b(),h){a+="\\"+x;continue}h=!0,y=C,g=a.length,a+=x;continue;case"]":if(C===y+1||!h){a+="\\"+x,p=!1;continue}var T=e.substring(y+1,C);try{RegExp("["+T+"]")}catch(e){var A=this.parse(T,v);a=a.substr(0,g)+"\\["+A[0]+"\\]",l=l||A[1],h=!1;continue}l=!0,h=!1,a+=x;continue;default:b(),p?p=!1:!u[x]||"^"===x&&h||(a+="\\"),a+=x}h&&(T=e.substr(y+1),A=this.parse(T,v),a=a.substr(0,g)+"\\["+A[0],l=l||A[1]);for(S=d.pop();S;S=d.pop()){var O=a.slice(S.reStart+S.open.length);this.debug("setting tail",a,S),O=O.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){return r||(r="\\"),t+t+r+"|"})),this.debug("tail=%j\n %s",O,O,S,a);var I="*"===S.type?c:"?"===S.type?o:"\\"+S.type;l=!0,a=a.slice(0,S.reStart)+I+"\\("+O}b(),p&&(a+="\\\\");var D=!1;switch(a.charAt(0)){case"[":case".":case"(":D=!0}for(var N=f.length-1;N>-1;N--){var k=f[N],B=a.slice(0,k.reStart),L=a.slice(k.reStart,k.reEnd-8),R=a.slice(k.reEnd-8,k.reEnd),P=a.slice(k.reEnd);R+=P;var j=B.split("(").length-1,U=P;for(C=0;C<j;C++)U=U.replace(/\)[+*?]?/,"");var F="";""===(P=U)&&t!==v&&(F="$"),a=B+L+P+F+R}""!==a&&l&&(a="(?=.)"+a);D&&(a=E+a);if(t===v)return[a,l];if(!l)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var K=r.nocase?"i":"";try{var M=new RegExp("^"+a+"$",K)}catch(e){return new RegExp("$.")}return M._glob=e,M._src=a,M};var v={};d.makeRe=function(e,t){return new f(e,t||{}).makeRe()},f.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?c:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",a=e.map((function(e){return e.map((function(e){return e===i?r:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");a="^(?:"+a+")$",this.negate&&(a="^(?!"+a+").*$");try{this.regexp=new RegExp(a,n)}catch(e){this.regexp=!1}return this.regexp},d.match=function(e,t,r){var n=new f(t,r=r||{});return e=e.filter((function(e){return n.match(e)})),n.options.nonull&&!e.length&&e.push(t),e},f.prototype.match=function(e,t){if(void 0===t&&(t=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==n.sep&&(e=e.split(n.sep).join("/")),e=e.split(l),this.debug(this.pattern,"split",e);var i,a,s=this.set;for(this.debug(this.pattern,"set",s),a=e.length-1;a>=0&&!(i=e[a]);a--);for(a=0;a<s.length;a++){var o=s[a],c=e;if(r.matchBase&&1===o.length&&(c=[i]),this.matchOne(c,o,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},f.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var a=0,s=0,o=e.length,c=t.length;a<o&&s<c;a++,s++){this.debug("matchOne loop");var u,l=t[s],p=e[a];if(this.debug(t,l,p),!1===l)return!1;if(l===i){this.debug("GLOBSTAR",[t,l,p]);var d=a,f=s+1;if(f===c){for(this.debug("** at the end");a<o;a++)if("."===e[a]||".."===e[a]||!n.dot&&"."===e[a].charAt(0))return!1;return!0}for(;d<o;){var h=e[d];if(this.debug("\nglobstar while",e,d,t,f,h),this.matchOne(e.slice(d),t.slice(f),r))return this.debug("globstar found match!",d,o,h),!0;if("."===h||".."===h||!n.dot&&"."===h.charAt(0)){this.debug("dot detected!",e,d,t,f);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",e,d,t,f),d!==o))}if("string"==typeof l?(u=p===l,this.debug("string match",l,p,u)):(u=p.match(l),this.debug("pattern match",l,p,u)),!u)return!1}if(a===o&&s===c)return!0;if(a===o)return r;if(s===c)return a===o-1&&""===e[a];throw new Error("wtf?")}},6585:e=>{var t=1e3,r=60*t,n=60*r,i=24*n,a=7*i,s=365.25*i;function o(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!o)return;var c=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var a=Math.abs(e);if(a>=i)return o(e,a,i,"day");if(a>=n)return o(e,a,n,"hour");if(a>=r)return o(e,a,r,"minute");if(a>=t)return o(e,a,t,"second");return e+" ms"}(e):function(e){var a=Math.abs(e);if(a>=i)return Math.round(e/i)+"d";if(a>=n)return Math.round(e/n)+"h";if(a>=r)return Math.round(e/r)+"m";if(a>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9504:(e,t,r)=>{var n=r(276);function i(e,t){n.cipher.registerAlgorithm(e,(function(){return new n.aes.Algorithm(e,t)}))}r(3900),r(6370),r(7619),e.exports=n.aes=n.aes||{},n.aes.startEncrypting=function(e,t,r,n){var i=m({key:e,output:r,decrypt:!1,mode:n});return i.start(t),i},n.aes.createEncryptionCipher=function(e,t){return m({key:e,output:null,decrypt:!1,mode:t})},n.aes.startDecrypting=function(e,t,r,n){var i=m({key:e,output:r,decrypt:!0,mode:n});return i.start(t),i},n.aes.createDecryptionCipher=function(e,t){return m({key:e,output:null,decrypt:!0,mode:t})},n.aes.Algorithm=function(e,t){l||d();var r=this;r.name=e,r.mode=new t({blockSize:16,cipher:{encrypt:function(e,t){return h(r._w,e,t,!1)},decrypt:function(e,t){return h(r._w,e,t,!0)}}}),r._init=!1},n.aes.Algorithm.prototype.initialize=function(e){if(!this._init){var t,r=e.key;if("string"!=typeof r||16!==r.length&&24!==r.length&&32!==r.length){if(n.util.isArray(r)&&(16===r.length||24===r.length||32===r.length)){t=r,r=n.util.createBuffer();for(var i=0;i<t.length;++i)r.putByte(t[i])}}else r=n.util.createBuffer(r);if(!n.util.isArray(r)){t=r,r=[];var a=t.length();if(16===a||24===a||32===a){a>>>=2;for(i=0;i<a;++i)r.push(t.getInt32())}}if(!n.util.isArray(r)||4!==r.length&&6!==r.length&&8!==r.length)throw new Error("Invalid key parameter.");var s=this.mode.name,o=-1!==["CFB","OFB","CTR","GCM"].indexOf(s);this._w=f(r,e.decrypt&&!o),this._init=!0}},n.aes._expandKey=function(e,t){return l||d(),f(e,t)},n.aes._updateBlock=h,i("AES-ECB",n.cipher.modes.ecb),i("AES-CBC",n.cipher.modes.cbc),i("AES-CFB",n.cipher.modes.cfb),i("AES-OFB",n.cipher.modes.ofb),i("AES-CTR",n.cipher.modes.ctr),i("AES-GCM",n.cipher.modes.gcm);var a,s,o,c,u,l=!1,p=4;function d(){l=!0,o=[0,1,2,4,8,16,32,64,128,27,54];for(var e=new Array(256),t=0;t<128;++t)e[t]=t<<1,e[t+128]=t+128<<1^283;a=new Array(256),s=new Array(256),c=new Array(4),u=new Array(4);for(t=0;t<4;++t)c[t]=new Array(256),u[t]=new Array(256);var r,n,i,p,d,f,h,m=0,v=0;for(t=0;t<256;++t){p=(p=v^v<<1^v<<2^v<<3^v<<4)>>8^255&p^99,a[m]=p,s[p]=m,f=(d=e[p])<<24^p<<16^p<<8^p^d,h=((r=e[m])^(n=e[r])^(i=e[n]))<<24^(m^i)<<16^(m^n^i)<<8^m^r^i;for(var g=0;g<4;++g)c[g][m]=f,u[g][p]=h,f=f<<24|f>>>8,h=h<<24|h>>>8;0===m?m=v=1:(m=r^e[e[e[r^i]]],v^=e[e[v]])}}function f(e,t){for(var r,n=e.slice(0),i=1,s=n.length,c=p*(s+6+1),l=s;l<c;++l)r=n[l-1],l%s==0?(r=a[r>>>16&255]<<24^a[r>>>8&255]<<16^a[255&r]<<8^a[r>>>24]^o[i]<<24,i++):s>6&&l%s==4&&(r=a[r>>>24]<<24^a[r>>>16&255]<<16^a[r>>>8&255]<<8^a[255&r]),n[l]=n[l-s]^r;if(t){for(var d,f=u[0],h=u[1],m=u[2],v=u[3],g=n.slice(0),y=(l=0,(c=n.length)-p);l<c;l+=p,y-=p)if(0===l||l===c-p)g[l]=n[y],g[l+1]=n[y+3],g[l+2]=n[y+2],g[l+3]=n[y+1];else for(var E=0;E<p;++E)d=n[y+E],g[l+(3&-E)]=f[a[d>>>24]]^h[a[d>>>16&255]]^m[a[d>>>8&255]]^v[a[255&d]];n=g}return n}function h(e,t,r,n){var i,o,l,p,d,f,h,m,v,g,y,E,_=e.length/4-1;n?(i=u[0],o=u[1],l=u[2],p=u[3],d=s):(i=c[0],o=c[1],l=c[2],p=c[3],d=a),f=t[0]^e[0],h=t[n?3:1]^e[1],m=t[2]^e[2],v=t[n?1:3]^e[3];for(var b=3,x=1;x<_;++x)g=i[f>>>24]^o[h>>>16&255]^l[m>>>8&255]^p[255&v]^e[++b],y=i[h>>>24]^o[m>>>16&255]^l[v>>>8&255]^p[255&f]^e[++b],E=i[m>>>24]^o[v>>>16&255]^l[f>>>8&255]^p[255&h]^e[++b],v=i[v>>>24]^o[f>>>16&255]^l[h>>>8&255]^p[255&m]^e[++b],f=g,h=y,m=E;r[0]=d[f>>>24]<<24^d[h>>>16&255]<<16^d[m>>>8&255]<<8^d[255&v]^e[++b],r[n?3:1]=d[h>>>24]<<24^d[m>>>16&255]<<16^d[v>>>8&255]<<8^d[255&f]^e[++b],r[2]=d[m>>>24]<<24^d[v>>>16&255]<<16^d[f>>>8&255]<<8^d[255&h]^e[++b],r[n?1:3]=d[v>>>24]<<24^d[f>>>16&255]<<16^d[h>>>8&255]<<8^d[255&m]^e[++b]}function m(e){var t,r="AES-"+((e=e||{}).mode||"CBC").toUpperCase(),i=(t=e.decrypt?n.cipher.createDecipher(r,e.key):n.cipher.createCipher(r,e.key)).start;return t.start=function(e,r){var a=null;r instanceof n.util.ByteBuffer&&(a=r,r={}),(r=r||{}).output=a,r.iv=e,i.call(t,r)},t}},8678:(e,t,r)=>{var n=r(276);r(9504),r(3986);var i=e.exports=n.tls;function a(e,t,r){var a=t.entity===n.tls.ConnectionEnd.client;e.read.cipherState={init:!1,cipher:n.cipher.createDecipher("AES-CBC",a?r.keys.server_write_key:r.keys.client_write_key),iv:a?r.keys.server_write_IV:r.keys.client_write_IV},e.write.cipherState={init:!1,cipher:n.cipher.createCipher("AES-CBC",a?r.keys.client_write_key:r.keys.server_write_key),iv:a?r.keys.client_write_IV:r.keys.server_write_IV},e.read.cipherFunction=u,e.write.cipherFunction=s,e.read.macLength=e.write.macLength=r.mac_length,e.read.macFunction=e.write.macFunction=i.hmac_sha1}function s(e,t){var r,a=!1,s=t.macFunction(t.macKey,t.sequenceNumber,e);e.fragment.putBytes(s),t.updateSequenceNumber(),r=e.version.minor===i.Versions.TLS_1_0.minor?t.cipherState.init?null:t.cipherState.iv:n.random.getBytesSync(16),t.cipherState.init=!0;var c=t.cipherState.cipher;return c.start({iv:r}),e.version.minor>=i.Versions.TLS_1_1.minor&&c.output.putBytes(r),c.update(e.fragment),c.finish(o)&&(e.fragment=c.output,e.length=e.fragment.length(),a=!0),a}function o(e,t,r){if(!r){var n=e-t.length()%e;t.fillWithByte(n-1,n)}return!0}function c(e,t,r){var n=!0;if(r){for(var i=t.length(),a=t.last(),s=i-1-a;s<i-1;++s)n=n&&t.at(s)==a;n&&t.truncate(a+1)}return n}function u(e,t){var r,a=!1;r=e.version.minor===i.Versions.TLS_1_0.minor?t.cipherState.init?null:t.cipherState.iv:e.fragment.getBytes(16),t.cipherState.init=!0;var s=t.cipherState.cipher;s.start({iv:r}),s.update(e.fragment),a=s.finish(c);var o=t.macLength,u=n.random.getBytesSync(o),l=s.output.length();l>=o?(e.fragment=s.output.getBytes(l-o),u=s.output.getBytes(o)):e.fragment=s.output.getBytes(),e.fragment=n.util.createBuffer(e.fragment),e.length=e.fragment.length();var p=t.macFunction(t.macKey,t.sequenceNumber,e);return t.updateSequenceNumber(),a=function(e,t,r){var i=n.hmac.create();return i.start("SHA1",e),i.update(t),t=i.digest().getBytes(),i.start(null,null),i.update(r),r=i.digest().getBytes(),t===r}(t.macKey,u,p)&&a,a}i.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=i.BulkCipherAlgorithm.aes,e.cipher_type=i.CipherType.block,e.enc_key_length=16,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=i.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:a},i.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=i.BulkCipherAlgorithm.aes,e.cipher_type=i.CipherType.block,e.enc_key_length=32,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=i.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:a}},4309:(e,t,r)=>{var n=r(276);r(2746);var i=n.asn1;t.privateKeyValidator={name:"PrivateKeyInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},t.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:i.Class.UNIVERSAL,type:i.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]}},2746:(e,t,r)=>{var n=r(276);r(7619),r(6418);var i=e.exports=n.asn1=n.asn1||{};function a(e,t,r){if(r>t){var n=new Error("Too few bytes to parse DER.");throw n.available=e.length(),n.remaining=t,n.requested=r,n}}i.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},i.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},i.create=function(e,t,r,a,s){if(n.util.isArray(a)){for(var o=[],c=0;c<a.length;++c)void 0!==a[c]&&o.push(a[c]);a=o}var u={tagClass:e,type:t,constructed:r,composed:r||n.util.isArray(a),value:a};return s&&"bitStringContents"in s&&(u.bitStringContents=s.bitStringContents,u.original=i.copy(u)),u},i.copy=function(e,t){var r;if(n.util.isArray(e)){r=[];for(var a=0;a<e.length;++a)r.push(i.copy(e[a],t));return r}return"string"==typeof e?e:(r={tagClass:e.tagClass,type:e.type,constructed:e.constructed,composed:e.composed,value:i.copy(e.value,t)},t&&!t.excludeBitStringContents&&(r.bitStringContents=e.bitStringContents),r)},i.equals=function(e,t,r){if(n.util.isArray(e)){if(!n.util.isArray(t))return!1;if(e.length!==t.length)return!1;for(var a=0;a<e.length;++a)if(!i.equals(e[a],t[a]))return!1;return!0}if(typeof e!=typeof t)return!1;if("string"==typeof e)return e===t;var s=e.tagClass===t.tagClass&&e.type===t.type&&e.constructed===t.constructed&&e.composed===t.composed&&i.equals(e.value,t.value);return r&&r.includeBitStringContents&&(s=s&&e.bitStringContents===t.bitStringContents),s},i.getBerValueLength=function(e){var t=e.getByte();if(128!==t)return 128&t?e.getInt((127&t)<<3):t};function s(e,t,r,n){var o;a(e,t,2);var c=e.getByte();t--;var u=192&c,l=31&c;o=e.length();var p,d,f=function(e,t){var r=e.getByte();if(t--,128!==r){var n;if(128&r){var i=127&r;a(e,t,i),n=e.getInt(i<<3)}else n=r;if(n<0)throw new Error("Negative length: "+n);return n}}(e,t);if(t-=o-e.length(),void 0!==f&&f>t){if(n.strict){var h=new Error("Too few bytes to read ASN.1 value.");throw h.available=e.length(),h.remaining=t,h.requested=f,h}f=t}var m=!(32&~c);if(m)if(p=[],void 0===f)for(;;){if(a(e,t,2),e.bytes(2)===String.fromCharCode(0,0)){e.getBytes(2),t-=2;break}o=e.length(),p.push(s(e,t,r+1,n)),t-=o-e.length()}else for(;f>0;)o=e.length(),p.push(s(e,f,r+1,n)),t-=o-e.length(),f-=o-e.length();if(void 0===p&&u===i.Class.UNIVERSAL&&l===i.Type.BITSTRING&&(d=e.bytes(f)),void 0===p&&n.decodeBitStrings&&u===i.Class.UNIVERSAL&&l===i.Type.BITSTRING&&f>1){var v=e.read,g=t,y=0;if(l===i.Type.BITSTRING&&(a(e,t,1),y=e.getByte(),t--),0===y)try{o=e.length();var E=s(e,t,r+1,{strict:!0,decodeBitStrings:!0}),_=o-e.length();t-=_,l==i.Type.BITSTRING&&_++;var b=E.tagClass;_!==f||b!==i.Class.UNIVERSAL&&b!==i.Class.CONTEXT_SPECIFIC||(p=[E])}catch(e){}void 0===p&&(e.read=v,t=g)}if(void 0===p){if(void 0===f){if(n.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");f=t}if(l===i.Type.BMPSTRING)for(p="";f>0;f-=2)a(e,t,2),p+=String.fromCharCode(e.getInt16()),t-=2;else p=e.getBytes(f),t-=f}var x=void 0===d?null:{bitStringContents:d};return i.create(u,l,m,p,x)}i.fromDer=function(e,t){void 0===t&&(t={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),"boolean"==typeof t&&(t={strict:t,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in t||(t.strict=!0),"parseAllBytes"in t||(t.parseAllBytes=!0),"decodeBitStrings"in t||(t.decodeBitStrings=!0),"string"==typeof e&&(e=n.util.createBuffer(e));var r=e.length(),i=s(e,e.length(),0,t);if(t.parseAllBytes&&0!==e.length()){var a=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw a.byteCount=r,a.remaining=e.length(),a}return i},i.toDer=function(e){var t=n.util.createBuffer(),r=e.tagClass|e.type,a=n.util.createBuffer(),s=!1;if("bitStringContents"in e&&(s=!0,e.original&&(s=i.equals(e,e.original))),s)a.putBytes(e.bitStringContents);else if(e.composed){e.constructed?r|=32:a.putByte(0);for(var o=0;o<e.value.length;++o)void 0!==e.value[o]&&a.putBuffer(i.toDer(e.value[o]))}else if(e.type===i.Type.BMPSTRING)for(o=0;o<e.value.length;++o)a.putInt16(e.value.charCodeAt(o));else!(e.type===i.Type.INTEGER&&e.value.length>1)||(0!==e.value.charCodeAt(0)||128&e.value.charCodeAt(1))&&(255!==e.value.charCodeAt(0)||128&~e.value.charCodeAt(1))?a.putBytes(e.value):a.putBytes(e.value.substr(1));if(t.putByte(r),a.length()<=127)t.putByte(127&a.length());else{var c=a.length(),u="";do{u+=String.fromCharCode(255&c),c>>>=8}while(c>0);t.putByte(128|u.length);for(o=u.length-1;o>=0;--o)t.putByte(u.charCodeAt(o))}return t.putBuffer(a),t},i.oidToDer=function(e){var t,r,i,a,s=e.split("."),o=n.util.createBuffer();o.putByte(40*parseInt(s[0],10)+parseInt(s[1],10));for(var c=2;c<s.length;++c){t=!0,r=[],i=parseInt(s[c],10);do{a=127&i,i>>>=7,t||(a|=128),r.push(a),t=!1}while(i>0);for(var u=r.length-1;u>=0;--u)o.putByte(r[u])}return o},i.derToOid=function(e){var t;"string"==typeof e&&(e=n.util.createBuffer(e));var r=e.getByte();t=Math.floor(r/40)+"."+r%40;for(var i=0;e.length()>0;)i<<=7,128&(r=e.getByte())?i+=127&r:(t+="."+(i+r),i=0);return t},i.utcTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,2),10);r=r>=50?1900+r:2e3+r;var n=parseInt(e.substr(2,2),10)-1,i=parseInt(e.substr(4,2),10),a=parseInt(e.substr(6,2),10),s=parseInt(e.substr(8,2),10),o=0;if(e.length>11){var c=e.charAt(10),u=10;"+"!==c&&"-"!==c&&(o=parseInt(e.substr(10,2),10),u+=2)}if(t.setUTCFullYear(r,n,i),t.setUTCHours(a,s,o,0),u&&("+"===(c=e.charAt(u))||"-"===c)){var l=60*parseInt(e.substr(u+1,2),10)+parseInt(e.substr(u+4,2),10);l*=6e4,"+"===c?t.setTime(+t-l):t.setTime(+t+l)}return t},i.generalizedTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,4),10),n=parseInt(e.substr(4,2),10)-1,i=parseInt(e.substr(6,2),10),a=parseInt(e.substr(8,2),10),s=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),c=0,u=0,l=!1;"Z"===e.charAt(e.length-1)&&(l=!0);var p=e.length-5,d=e.charAt(p);"+"!==d&&"-"!==d||(u=60*parseInt(e.substr(p+1,2),10)+parseInt(e.substr(p+4,2),10),u*=6e4,"+"===d&&(u*=-1),l=!0);return"."===e.charAt(14)&&(c=1e3*parseFloat(e.substr(14),10)),l?(t.setUTCFullYear(r,n,i),t.setUTCHours(a,s,o,c),t.setTime(+t+u)):(t.setFullYear(r,n,i),t.setHours(a,s,o,c)),t},i.dateToUtcTime=function(e){if("string"==typeof e)return e;var t="",r=[];r.push((""+e.getUTCFullYear()).substr(2)),r.push(""+(e.getUTCMonth()+1)),r.push(""+e.getUTCDate()),r.push(""+e.getUTCHours()),r.push(""+e.getUTCMinutes()),r.push(""+e.getUTCSeconds());for(var n=0;n<r.length;++n)r[n].length<2&&(t+="0"),t+=r[n];return t+="Z"},i.dateToGeneralizedTime=function(e){if("string"==typeof e)return e;var t="",r=[];r.push(""+e.getUTCFullYear()),r.push(""+(e.getUTCMonth()+1)),r.push(""+e.getUTCDate()),r.push(""+e.getUTCHours()),r.push(""+e.getUTCMinutes()),r.push(""+e.getUTCSeconds());for(var n=0;n<r.length;++n)r[n].length<2&&(t+="0"),t+=r[n];return t+="Z"},i.integerToDer=function(e){var t=n.util.createBuffer();if(e>=-128&&e<128)return t.putSignedInt(e,8);if(e>=-32768&&e<32768)return t.putSignedInt(e,16);if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24);if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32);var r=new Error("Integer too large; max is 32-bits.");throw r.integer=e,r},i.derToInteger=function(e){"string"==typeof e&&(e=n.util.createBuffer(e));var t=8*e.length();if(t>32)throw new Error("Integer too large; max is 32-bits.");return e.getSignedInt(t)},i.validate=function(e,t,r,a){var s=!1;if(e.tagClass!==t.tagClass&&void 0!==t.tagClass||e.type!==t.type&&void 0!==t.type)a&&(e.tagClass!==t.tagClass&&a.push("["+t.name+'] Expected tag class "'+t.tagClass+'", got "'+e.tagClass+'"'),e.type!==t.type&&a.push("["+t.name+'] Expected type "'+t.type+'", got "'+e.type+'"'));else if(e.constructed===t.constructed||void 0===t.constructed){if(s=!0,t.value&&n.util.isArray(t.value))for(var o=0,c=0;s&&c<t.value.length;++c)s=t.value[c].optional||!1,e.value[o]&&((s=i.validate(e.value[o],t.value[c],r,a))?++o:t.value[c].optional&&(s=!0)),!s&&a&&a.push("["+t.name+'] Tag class "'+t.tagClass+'", type "'+t.type+'" expected value length "'+t.value.length+'", got "'+e.value.length+'"');if(s&&r)if(t.capture&&(r[t.capture]=e.value),t.captureAsn1&&(r[t.captureAsn1]=e),t.captureBitStringContents&&"bitStringContents"in e&&(r[t.captureBitStringContents]=e.bitStringContents),t.captureBitStringValue&&"bitStringContents"in e)if(e.bitStringContents.length<2)r[t.captureBitStringValue]="";else{if(0!==e.bitStringContents.charCodeAt(0))throw new Error("captureBitStringValue only supported for zero unused bits");r[t.captureBitStringValue]=e.bitStringContents.slice(1)}}else a&&a.push("["+t.name+'] Expected constructed "'+t.constructed+'", got "'+e.constructed+'"');return s};var o=/[^\\u0000-\\u00ff]/;i.prettyPrint=function(e,t,r){var a="";r=r||2,(t=t||0)>0&&(a+="\n");for(var s="",c=0;c<t*r;++c)s+=" ";switch(a+=s+"Tag: ",e.tagClass){case i.Class.UNIVERSAL:a+="Universal:";break;case i.Class.APPLICATION:a+="Application:";break;case i.Class.CONTEXT_SPECIFIC:a+="Context-Specific:";break;case i.Class.PRIVATE:a+="Private:"}if(e.tagClass===i.Class.UNIVERSAL)switch(a+=e.type,e.type){case i.Type.NONE:a+=" (None)";break;case i.Type.BOOLEAN:a+=" (Boolean)";break;case i.Type.INTEGER:a+=" (Integer)";break;case i.Type.BITSTRING:a+=" (Bit string)";break;case i.Type.OCTETSTRING:a+=" (Octet string)";break;case i.Type.NULL:a+=" (Null)";break;case i.Type.OID:a+=" (Object Identifier)";break;case i.Type.ODESC:a+=" (Object Descriptor)";break;case i.Type.EXTERNAL:a+=" (External or Instance of)";break;case i.Type.REAL:a+=" (Real)";break;case i.Type.ENUMERATED:a+=" (Enumerated)";break;case i.Type.EMBEDDED:a+=" (Embedded PDV)";break;case i.Type.UTF8:a+=" (UTF8)";break;case i.Type.ROID:a+=" (Relative Object Identifier)";break;case i.Type.SEQUENCE:a+=" (Sequence)";break;case i.Type.SET:a+=" (Set)";break;case i.Type.PRINTABLESTRING:a+=" (Printable String)";break;case i.Type.IA5String:a+=" (IA5String (ASCII))";break;case i.Type.UTCTIME:a+=" (UTC time)";break;case i.Type.GENERALIZEDTIME:a+=" (Generalized time)";break;case i.Type.BMPSTRING:a+=" (BMP String)"}else a+=e.type;if(a+="\n",a+=s+"Constructed: "+e.constructed+"\n",e.composed){var u=0,l="";for(c=0;c<e.value.length;++c)void 0!==e.value[c]&&(u+=1,l+=i.prettyPrint(e.value[c],t+1,r),c+1<e.value.length&&(l+=","));a+=s+"Sub values: "+u+l}else{if(a+=s+"Value: ",e.type===i.Type.OID){var p=i.derToOid(e.value);a+=p,n.pki&&n.pki.oids&&p in n.pki.oids&&(a+=" ("+n.pki.oids[p]+") ")}if(e.type===i.Type.INTEGER)try{a+=i.derToInteger(e.value)}catch(t){a+="0x"+n.util.bytesToHex(e.value)}else if(e.type===i.Type.BITSTRING){if(e.value.length>1?a+="0x"+n.util.bytesToHex(e.value.slice(1)):a+="(none)",e.value.length>0){var d=e.value.charCodeAt(0);1==d?a+=" (1 unused bit shown)":d>1&&(a+=" ("+d+" unused bits shown)")}}else if(e.type===i.Type.OCTETSTRING)o.test(e.value)||(a+="("+e.value+") "),a+="0x"+n.util.bytesToHex(e.value);else if(e.type===i.Type.UTF8)try{a+=n.util.decodeUtf8(e.value)}catch(t){if("URI malformed"!==t.message)throw t;a+="0x"+n.util.bytesToHex(e.value)+" (malformed UTF8)"}else e.type===i.Type.PRINTABLESTRING||e.type===i.Type.IA5String?a+=e.value:o.test(e.value)?a+="0x"+n.util.bytesToHex(e.value):0===e.value.length?a+="[null]":a+=e.value}return a}},4058:e=>{var t={};e.exports=t;var r={};t.encode=function(e,t,r){if("string"!=typeof t)throw new TypeError('"alphabet" must be a string.');if(void 0!==r&&"number"!=typeof r)throw new TypeError('"maxline" must be a number.');var n="";if(e instanceof Uint8Array){var i=0,a=t.length,s=t.charAt(0),o=[0];for(i=0;i<e.length;++i){for(var c=0,u=e[i];c<o.length;++c)u+=o[c]<<8,o[c]=u%a,u=u/a|0;for(;u>0;)o.push(u%a),u=u/a|0}for(i=0;0===e[i]&&i<e.length-1;++i)n+=s;for(i=o.length-1;i>=0;--i)n+=t[o[i]]}else n=function(e,t){var r=0,n=t.length,i=t.charAt(0),a=[0];for(r=0;r<e.length();++r){for(var s=0,o=e.at(r);s<a.length;++s)o+=a[s]<<8,a[s]=o%n,o=o/n|0;for(;o>0;)a.push(o%n),o=o/n|0}var c="";for(r=0;0===e.at(r)&&r<e.length()-1;++r)c+=i;for(r=a.length-1;r>=0;--r)c+=t[a[r]];return c}(e,t);if(r){var l=new RegExp(".{1,"+r+"}","g");n=n.match(l).join("\r\n")}return n},t.decode=function(e,t){if("string"!=typeof e)throw new TypeError('"input" must be a string.');if("string"!=typeof t)throw new TypeError('"alphabet" must be a string.');var n=r[t];if(!n){n=r[t]=[];for(var i=0;i<t.length;++i)n[t.charCodeAt(i)]=i}e=e.replace(/\s/g,"");var a=t.length,s=t.charAt(0),o=[0];for(i=0;i<e.length;i++){var c=n[e.charCodeAt(i)];if(void 0===c)return;for(var u=0,l=c;u<o.length;++u)l+=o[u]*a,o[u]=255&l,l>>=8;for(;l>0;)o.push(255&l),l>>=8}for(var p=0;e[p]===s&&p<e.length-1;++p)o.push(0);return"undefined"!=typeof Buffer?Buffer.from(o.reverse()):new Uint8Array(o.reverse())}},3900:(e,t,r)=>{var n=r(276);r(7619),e.exports=n.cipher=n.cipher||{},n.cipher.algorithms=n.cipher.algorithms||{},n.cipher.createCipher=function(e,t){var r=e;if("string"==typeof r&&(r=n.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+e);return new n.cipher.BlockCipher({algorithm:r,key:t,decrypt:!1})},n.cipher.createDecipher=function(e,t){var r=e;if("string"==typeof r&&(r=n.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+e);return new n.cipher.BlockCipher({algorithm:r,key:t,decrypt:!0})},n.cipher.registerAlgorithm=function(e,t){e=e.toUpperCase(),n.cipher.algorithms[e]=t},n.cipher.getAlgorithm=function(e){return(e=e.toUpperCase())in n.cipher.algorithms?n.cipher.algorithms[e]:null};var i=n.cipher.BlockCipher=function(e){this.algorithm=e.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=e.decrypt,this.algorithm.initialize(e)};i.prototype.start=function(e){e=e||{};var t={};for(var r in e)t[r]=e[r];t.decrypt=this._decrypt,this._finish=!1,this._input=n.util.createBuffer(),this.output=e.output||n.util.createBuffer(),this.mode.start(t)},i.prototype.update=function(e){for(e&&this._input.putBuffer(e);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},i.prototype.finish=function(e){!e||"ECB"!==this.mode.name&&"CBC"!==this.mode.name||(this.mode.pad=function(t){return e(this.blockSize,t,!1)},this.mode.unpad=function(t){return e(this.blockSize,t,!0)});var t={};return t.decrypt=this._decrypt,t.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,t))&&(this._finish=!0,this.update(),!(this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,t))&&!(this.mode.afterFinish&&!this.mode.afterFinish(this.output,t)))}},6370:(e,t,r)=>{var n=r(276);r(7619),n.cipher=n.cipher||{};var i=e.exports=n.cipher.modes=n.cipher.modes||{};function a(e,t){if("string"==typeof e&&(e=n.util.createBuffer(e)),n.util.isArray(e)&&e.length>4){var r=e;e=n.util.createBuffer();for(var i=0;i<r.length;++i)e.putByte(r[i])}if(e.length()<t)throw new Error("Invalid IV length; got "+e.length()+" bytes and expected "+t+" bytes.");if(!n.util.isArray(e)){var a=[],s=t/4;for(i=0;i<s;++i)a.push(e.getInt32());e=a}return e}function s(e){e[e.length-1]=e[e.length-1]+1&4294967295}function o(e){return[e/4294967296|0,4294967295&e]}i.ecb=function(e){e=e||{},this.name="ECB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},i.ecb.prototype.start=function(e){},i.ecb.prototype.encrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(n=0;n<this._ints;++n)t.putInt32(this._outBlock[n])},i.ecb.prototype.decrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(n=0;n<this._ints;++n)t.putInt32(this._outBlock[n])},i.ecb.prototype.pad=function(e,t){var r=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(r,r),!0},i.ecb.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var r=e.length(),n=e.at(r-1);return!(n>this.blockSize<<2)&&(e.truncate(n),!0)},i.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},i.cbc.prototype.start=function(e){if(null===e.iv){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else{if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=a(e.iv,this.blockSize),this._prev=this._iv.slice(0)}},i.cbc.prototype.encrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=this._prev[n]^e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(n=0;n<this._ints;++n)t.putInt32(this._outBlock[n]);this._prev=this._outBlock},i.cbc.prototype.decrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(n=0;n<this._ints;++n)t.putInt32(this._prev[n]^this._outBlock[n]);this._prev=this._inBlock.slice(0)},i.cbc.prototype.pad=function(e,t){var r=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(r,r),!0},i.cbc.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var r=e.length(),n=e.at(r-1);return!(n>this.blockSize<<2)&&(e.truncate(n),!0)},i.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=a(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.cfb.prototype.encrypt=function(e,t,r){var n=e.length();if(0===n)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i<this._ints;++i)this._inBlock[i]=e.getInt32()^this._outBlock[i],t.putInt32(this._inBlock[i]);else{var a=(this.blockSize-n)%this.blockSize;a>0&&(a=this.blockSize-a),this._partialOutput.clear();for(i=0;i<this._ints;++i)this._partialBlock[i]=e.getInt32()^this._outBlock[i],this._partialOutput.putInt32(this._partialBlock[i]);if(a>0)e.read-=this.blockSize;else for(i=0;i<this._ints;++i)this._inBlock[i]=this._partialBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),a>0&&!r)return t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=a,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.cfb.prototype.decrypt=function(e,t,r){var n=e.length();if(0===n)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i<this._ints;++i)this._inBlock[i]=e.getInt32(),t.putInt32(this._inBlock[i]^this._outBlock[i]);else{var a=(this.blockSize-n)%this.blockSize;a>0&&(a=this.blockSize-a),this._partialOutput.clear();for(i=0;i<this._ints;++i)this._partialBlock[i]=e.getInt32(),this._partialOutput.putInt32(this._partialBlock[i]^this._outBlock[i]);if(a>0)e.read-=this.blockSize;else for(i=0;i<this._ints;++i)this._inBlock[i]=this._partialBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),a>0&&!r)return t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=a,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=a(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.ofb.prototype.encrypt=function(e,t,r){var n=e.length();if(0===e.length())return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i<this._ints;++i)t.putInt32(e.getInt32()^this._outBlock[i]),this._inBlock[i]=this._outBlock[i];else{var a=(this.blockSize-n)%this.blockSize;a>0&&(a=this.blockSize-a),this._partialOutput.clear();for(i=0;i<this._ints;++i)this._partialOutput.putInt32(e.getInt32()^this._outBlock[i]);if(a>0)e.read-=this.blockSize;else for(i=0;i<this._ints;++i)this._inBlock[i]=this._outBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),a>0&&!r)return t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=a,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}},i.ofb.prototype.decrypt=i.ofb.prototype.encrypt,i.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0},i.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=a(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},i.ctr.prototype.encrypt=function(e,t,r){var n=e.length();if(0===n)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize)for(var i=0;i<this._ints;++i)t.putInt32(e.getInt32()^this._outBlock[i]);else{var a=(this.blockSize-n)%this.blockSize;a>0&&(a=this.blockSize-a),this._partialOutput.clear();for(i=0;i<this._ints;++i)this._partialOutput.putInt32(e.getInt32()^this._outBlock[i]);if(a>0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),a>0&&!r)return t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=a,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}s(this._inBlock)},i.ctr.prototype.decrypt=i.ctr.prototype.encrypt,i.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=n.util.createBuffer(),this._partialBytes=0,this._R=3774873600},i.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");var t,r=n.util.createBuffer(e.iv);if(this._cipherLength=0,t="additionalData"in e?n.util.createBuffer(e.additionalData):n.util.createBuffer(),this._tagLength="tagLength"in e?e.tagLength:128,this._tag=null,e.decrypt&&(this._tag=n.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var i=r.length();if(12===i)this._j0=[r.getInt32(),r.getInt32(),r.getInt32(),1];else{for(this._j0=[0,0,0,0];r.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(o(8*i)))}this._inBlock=this._j0.slice(0),s(this._inBlock),this._partialBytes=0,t=n.util.createBuffer(t),this._aDataLength=o(8*t.length());var a=t.length()%this.blockSize;for(a&&t.fillWithByte(0,this.blockSize-a),this._s=[0,0,0,0];t.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()])},i.gcm.prototype.encrypt=function(e,t,r){var n=e.length();if(0===n)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&n>=this.blockSize){for(var i=0;i<this._ints;++i)t.putInt32(this._outBlock[i]^=e.getInt32());this._cipherLength+=this.blockSize}else{var a=(this.blockSize-n)%this.blockSize;a>0&&(a=this.blockSize-a),this._partialOutput.clear();for(i=0;i<this._ints;++i)this._partialOutput.putInt32(e.getInt32()^this._outBlock[i]);if(a<=0||r){if(r){var o=n%this.blockSize;this._cipherLength+=o,this._partialOutput.truncate(this.blockSize-o)}else this._cipherLength+=this.blockSize;for(i=0;i<this._ints;++i)this._outBlock[i]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),a>0&&!r)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=a,!0;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),s(this._inBlock)},i.gcm.prototype.decrypt=function(e,t,r){var n=e.length();if(n<this.blockSize&&!(r&&n>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),s(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var i=0;i<this._ints;++i)t.putInt32(this._outBlock[i]^this._hashBlock[i]);n<this.blockSize?this._cipherLength+=n%this.blockSize:this._cipherLength+=this.blockSize},i.gcm.prototype.afterFinish=function(e,t){var r=!0;t.decrypt&&t.overflow&&e.truncate(this.blockSize-t.overflow),this.tag=n.util.createBuffer();var i=this._aDataLength.concat(o(8*this._cipherLength));this._s=this.ghash(this._hashSubkey,this._s,i);var a=[];this.cipher.encrypt(this._j0,a);for(var s=0;s<this._ints;++s)this.tag.putInt32(this._s[s]^a[s]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),t.decrypt&&this.tag.bytes()!==this._tag&&(r=!1),r},i.gcm.prototype.multiply=function(e,t){for(var r=[0,0,0,0],n=t.slice(0),i=0;i<128;++i){e[i/32|0]&1<<31-i%32&&(r[0]^=n[0],r[1]^=n[1],r[2]^=n[2],r[3]^=n[3]),this.pow(n,n)}return r},i.gcm.prototype.pow=function(e,t){for(var r=1&e[3],n=3;n>0;--n)t[n]=e[n]>>>1|(1&e[n-1])<<31;t[0]=e[0]>>>1,r&&(t[0]^=this._R)},i.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],r=0;r<32;++r){var n=e[r/8|0]>>>4*(7-r%8)&15,i=this._m[r][n];t[0]^=i[0],t[1]^=i[1],t[2]^=i[2],t[3]^=i[3]}return t},i.gcm.prototype.ghash=function(e,t,r){return t[0]^=r[0],t[1]^=r[1],t[2]^=r[2],t[3]^=r[3],this.tableMultiply(t)},i.gcm.prototype.generateHashTable=function(e,t){for(var r=8/t,n=4*r,i=16*r,a=new Array(i),s=0;s<i;++s){var o=[0,0,0,0],c=(n-1-s%n)*t;o[s/n|0]=1<<t-1<<c,a[s]=this.generateSubHashTable(this.multiply(o,e),t)}return a},i.gcm.prototype.generateSubHashTable=function(e,t){var r=1<<t,n=r>>>1,i=new Array(r);i[n]=e.slice(0);for(var a=n>>>1;a>0;)this.pow(i[2*a],i[a]=[]),a>>=1;for(a=2;a<n;){for(var s=1;s<a;++s){var o=i[a],c=i[s];i[a+s]=[o[0]^c[0],o[1]^c[1],o[2]^c[2],o[3]^c[3]]}a*=2}for(i[0]=[0,0,0,0],a=n+1;a<r;++a){var u=i[a^n];i[a]=[e[0]^u[0],e[1]^u[1],e[2]^u[2],e[3]^u[3]]}return i}},9095:(e,t,r)=>{var n=r(276);function i(e,t){n.cipher.registerAlgorithm(e,(function(){return new n.des.Algorithm(e,t)}))}r(3900),r(6370),r(7619),e.exports=n.des=n.des||{},n.des.startEncrypting=function(e,t,r,n){var i=h({key:e,output:r,decrypt:!1,mode:n||(null===t?"ECB":"CBC")});return i.start(t),i},n.des.createEncryptionCipher=function(e,t){return h({key:e,output:null,decrypt:!1,mode:t})},n.des.startDecrypting=function(e,t,r,n){var i=h({key:e,output:r,decrypt:!0,mode:n||(null===t?"ECB":"CBC")});return i.start(t),i},n.des.createDecryptionCipher=function(e,t){return h({key:e,output:null,decrypt:!0,mode:t})},n.des.Algorithm=function(e,t){var r=this;r.name=e,r.mode=new t({blockSize:8,cipher:{encrypt:function(e,t){return f(r._keys,e,t,!1)},decrypt:function(e,t){return f(r._keys,e,t,!0)}}}),r._init=!1},n.des.Algorithm.prototype.initialize=function(e){if(!this._init){var t=n.util.createBuffer(e.key);if(0===this.name.indexOf("3DES")&&24!==t.length())throw new Error("Invalid Triple-DES key size: "+8*t.length());this._keys=function(e){for(var t,r=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],n=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],i=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],a=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],o=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],c=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],u=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],l=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],p=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],d=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],f=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],h=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],m=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],v=e.length()>8?3:1,g=[],y=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],E=0,_=0;_<v;_++){var b=e.getInt32(),x=e.getInt32();b^=(t=252645135&(b>>>4^x))<<4,b^=t=65535&((x^=t)>>>-16^b),b^=(t=858993459&(b>>>2^(x^=t<<-16)))<<2,b^=t=65535&((x^=t)>>>-16^b),b^=(t=1431655765&(b>>>1^(x^=t<<-16)))<<1,b^=t=16711935&((x^=t)>>>8^b),t=(b^=(t=1431655765&(b>>>1^(x^=t<<8)))<<1)<<8|(x^=t)>>>20&240,b=x<<24|x<<8&16711680|x>>>8&65280|x>>>24&240,x=t;for(var C=0;C<y.length;++C){y[C]?(b=b<<2|b>>>26,x=x<<2|x>>>26):(b=b<<1|b>>>27,x=x<<1|x>>>27),x&=-15;var w=r[(b&=-15)>>>28]|n[b>>>24&15]|i[b>>>20&15]|a[b>>>16&15]|s[b>>>12&15]|o[b>>>8&15]|c[b>>>4&15],S=u[x>>>28]|l[x>>>24&15]|p[x>>>20&15]|d[x>>>16&15]|f[x>>>12&15]|h[x>>>8&15]|m[x>>>4&15];t=65535&(S>>>16^w),g[E++]=w^t,g[E++]=S^t<<16}}return g}(t),this._init=!0}},i("DES-ECB",n.cipher.modes.ecb),i("DES-CBC",n.cipher.modes.cbc),i("DES-CFB",n.cipher.modes.cfb),i("DES-OFB",n.cipher.modes.ofb),i("DES-CTR",n.cipher.modes.ctr),i("3DES-ECB",n.cipher.modes.ecb),i("3DES-CBC",n.cipher.modes.cbc),i("3DES-CFB",n.cipher.modes.cfb),i("3DES-OFB",n.cipher.modes.ofb),i("3DES-CTR",n.cipher.modes.ctr);var a=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],s=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],o=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],c=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],u=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],l=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],p=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],d=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function f(e,t,r,n){var i,f,h=32===e.length?3:9;i=3===h?n?[30,-2,-2]:[0,32,2]:n?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var m=t[0],v=t[1];m^=(f=252645135&(m>>>4^v))<<4,m^=(f=65535&(m>>>16^(v^=f)))<<16,m^=f=858993459&((v^=f)>>>2^m),m^=f=16711935&((v^=f<<2)>>>8^m),m=(m^=(f=1431655765&(m>>>1^(v^=f<<8)))<<1)<<1|m>>>31,v=(v^=f)<<1|v>>>31;for(var g=0;g<h;g+=3){for(var y=i[g+1],E=i[g+2],_=i[g];_!=y;_+=E){var b=v^e[_],x=(v>>>4|v<<28)^e[_+1];f=m,m=v,v=f^(s[b>>>24&63]|c[b>>>16&63]|l[b>>>8&63]|d[63&b]|a[x>>>24&63]|o[x>>>16&63]|u[x>>>8&63]|p[63&x])}f=m,m=v,v=f}v=v>>>1|v<<31,v^=f=1431655765&((m=m>>>1|m<<31)>>>1^v),v^=(f=16711935&(v>>>8^(m^=f<<1)))<<8,v^=(f=858993459&(v>>>2^(m^=f)))<<2,v^=f=65535&((m^=f)>>>16^v),v^=f=252645135&((m^=f<<16)>>>4^v),m^=f<<4,r[0]=m,r[1]=v}function h(e){var t,r="DES-"+((e=e||{}).mode||"CBC").toUpperCase(),i=(t=e.decrypt?n.cipher.createDecipher(r,e.key):n.cipher.createCipher(r,e.key)).start;return t.start=function(e,r){var a=null;r instanceof n.util.ByteBuffer&&(a=r,r={}),(r=r||{}).output=a,r.iv=e,i.call(t,r)},t}},2926:(e,t,r)=>{var n=r(276);r(3736),r(9356),r(4694),r(7619);var i=r(4309),a=i.publicKeyValidator,s=i.privateKeyValidator;if(void 0===o)var o=n.jsbn.BigInteger;var c=n.util.ByteBuffer,u="undefined"==typeof Buffer?Uint8Array:Buffer;n.pki=n.pki||{},e.exports=n.pki.ed25519=n.ed25519=n.ed25519||{};var l=n.ed25519;function p(e){var t=e.message;if(t instanceof Uint8Array||t instanceof u)return t;var r=e.encoding;if(void 0===t){if(!e.md)throw new TypeError('"options.message" or "options.md" not specified.');t=e.md.digest().getBytes(),r="binary"}if("string"==typeof t&&!r)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if("string"==typeof t){if("undefined"!=typeof Buffer)return Buffer.from(t,r);t=new c(t,r)}else if(!(t instanceof c))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var n=new u(t.length()),i=0;i<n.length;++i)n[i]=t.at(i);return n}l.constants={},l.constants.PUBLIC_KEY_BYTE_LENGTH=32,l.constants.PRIVATE_KEY_BYTE_LENGTH=64,l.constants.SEED_BYTE_LENGTH=32,l.constants.SIGN_BYTE_LENGTH=64,l.constants.HASH_BYTE_LENGTH=64,l.generateKeyPair=function(e){var t=(e=e||{}).seed;if(void 0===t)t=n.random.getBytesSync(l.constants.SEED_BYTE_LENGTH);else if("string"==typeof t){if(t.length!==l.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+l.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(t instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');t=p({message:t,encoding:"binary"});for(var r=new u(l.constants.PUBLIC_KEY_BYTE_LENGTH),i=new u(l.constants.PRIVATE_KEY_BYTE_LENGTH),a=0;a<32;++a)i[a]=t[a];return function(e,t){var r,n=[R(),R(),R(),R()],i=_(t,32);for(i[0]&=248,i[31]&=127,i[31]|=64,N(n,i),S(e,n),r=0;r<32;++r)t[r+32]=e[r]}(r,i),{publicKey:r,privateKey:i}},l.privateKeyFromAsn1=function(e){var t={},r=[];if(!n.asn1.validate(e,s,t,r)){var i=new Error("Invalid Key.");throw i.errors=r,i}var a=n.asn1.derToOid(t.privateKeyOid),o=n.oids.EdDSA25519;if(a!==o)throw new Error('Invalid OID "'+a+'"; OID must be "'+o+'".');var c=t.privateKey;return{privateKeyBytes:p({message:n.asn1.fromDer(c).value,encoding:"binary"})}},l.publicKeyFromAsn1=function(e){var t={},r=[];if(!n.asn1.validate(e,a,t,r)){var i=new Error("Invalid Key.");throw i.errors=r,i}var s=n.asn1.derToOid(t.publicKeyOid),o=n.oids.EdDSA25519;if(s!==o)throw new Error('Invalid OID "'+s+'"; OID must be "'+o+'".');var c=t.ed25519PublicKey;if(c.length!==l.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return p({message:c,encoding:"binary"})},l.publicKeyFromPrivateKey=function(e){var t=p({message:(e=e||{}).privateKey,encoding:"binary"});if(t.length!==l.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+l.constants.PRIVATE_KEY_BYTE_LENGTH);for(var r=new u(l.constants.PUBLIC_KEY_BYTE_LENGTH),n=0;n<r.length;++n)r[n]=t[32+n];return r},l.sign=function(e){var t=p(e=e||{}),r=p({message:e.privateKey,encoding:"binary"});if(r.length===l.constants.SEED_BYTE_LENGTH)r=l.generateKeyPair({seed:r}).privateKey;else if(r.length!==l.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+l.constants.SEED_BYTE_LENGTH+" or "+l.constants.PRIVATE_KEY_BYTE_LENGTH);var n=new u(l.constants.SIGN_BYTE_LENGTH+t.length);!function(e,t,r,n){var i,a,s=new Float64Array(64),o=[R(),R(),R(),R()],c=_(n,32);c[0]&=248,c[31]&=127,c[31]|=64;var u=r+64;for(i=0;i<r;++i)e[64+i]=t[i];for(i=0;i<32;++i)e[32+i]=c[32+i];var l=_(e.subarray(32),r+32);for(x(l),N(o,l),S(e,o),i=32;i<64;++i)e[i]=n[i];var p=_(e,r+64);for(x(p),i=32;i<64;++i)s[i]=0;for(i=0;i<32;++i)s[i]=l[i];for(i=0;i<32;++i)for(a=0;a<32;a++)s[i+a]+=p[i]*c[a];b(e.subarray(32),s)}(n,t,t.length,r);for(var i=new u(l.constants.SIGN_BYTE_LENGTH),a=0;a<i.length;++a)i[a]=n[a];return i},l.verify=function(e){var t=p(e=e||{});if(void 0===e.signature)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var r=p({message:e.signature,encoding:"binary"});if(r.length!==l.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+l.constants.SIGN_BYTE_LENGTH);var n=p({message:e.publicKey,encoding:"binary"});if(n.length!==l.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+l.constants.PUBLIC_KEY_BYTE_LENGTH);var i,a=new u(l.constants.SIGN_BYTE_LENGTH+t.length),s=new u(l.constants.SIGN_BYTE_LENGTH+t.length);for(i=0;i<l.constants.SIGN_BYTE_LENGTH;++i)a[i]=r[i];for(i=0;i<t.length;++i)a[i+l.constants.SIGN_BYTE_LENGTH]=t[i];return function(e,t,r,n){var i,a=new u(32),s=[R(),R(),R(),R()],o=[R(),R(),R(),R()];if(r<64)return-1;if(function(e,t){var r=R(),n=R(),i=R(),a=R(),s=R(),o=R(),c=R();k(e[2],f),function(e,t){var r;for(r=0;r<16;++r)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(e[1],t),U(i,e[1]),F(a,i,h),j(i,i,e[2]),P(a,e[2],a),U(s,a),U(o,s),F(c,o,s),F(r,c,i),F(r,r,a),function(e,t){var r,n=R();for(r=0;r<16;++r)n[r]=t[r];for(r=250;r>=0;--r)U(n,n),1!==r&&F(n,n,t);for(r=0;r<16;++r)e[r]=n[r]}(r,r),F(r,r,i),F(r,r,a),F(r,r,a),F(e[0],r,a),U(n,e[0]),F(n,n,a),A(n,i)&&F(e[0],e[0],E);if(U(n,e[0]),F(n,n,a),A(n,i))return-1;I(e[0])===t[31]>>7&&j(e[0],d,e[0]);return F(e[3],e[0],e[1]),0}(o,n))return-1;for(i=0;i<r;++i)e[i]=t[i];for(i=0;i<32;++i)e[i+32]=n[i];var c=_(e,r);if(x(c),D(s,o,c),N(o,t.subarray(32)),C(s,o),S(a,s),r-=64,O(t,0,a,0)){for(i=0;i<r;++i)e[i]=0;return-1}for(i=0;i<r;++i)e[i]=t[i+64];return r}(s,a,a.length,n)>=0};var d=R(),f=R([1]),h=R([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),m=R([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),v=R([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),g=R([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),y=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),E=R([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function _(e,t){var r=n.md.sha512.create(),i=new c(e);r.update(i.getBytes(t),"binary");var a=r.digest().getBytes();if("undefined"!=typeof Buffer)return Buffer.from(a,"binary");for(var s=new u(l.constants.HASH_BYTE_LENGTH),o=0;o<64;++o)s[o]=a.charCodeAt(o);return s}function b(e,t){var r,n,i,a;for(n=63;n>=32;--n){for(r=0,i=n-32,a=n-12;i<a;++i)t[i]+=r-16*t[n]*y[i-(n-32)],r=t[i]+128>>8,t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;++i)t[i]+=r-(t[31]>>4)*y[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;++i)t[i]-=r*y[i];for(n=0;n<32;++n)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function x(e){for(var t=new Float64Array(64),r=0;r<64;++r)t[r]=e[r],e[r]=0;b(e,t)}function C(e,t){var r=R(),n=R(),i=R(),a=R(),s=R(),o=R(),c=R(),u=R(),l=R();j(r,e[1],e[0]),j(l,t[1],t[0]),F(r,r,l),P(n,e[0],e[1]),P(l,t[0],t[1]),F(n,n,l),F(i,e[3],t[3]),F(i,i,m),F(a,e[2],t[2]),P(a,a,a),j(s,n,r),j(o,a,i),P(c,a,i),P(u,n,r),F(e[0],s,o),F(e[1],u,c),F(e[2],c,o),F(e[3],s,u)}function w(e,t,r){for(var n=0;n<4;++n)L(e[n],t[n],r)}function S(e,t){var r=R(),n=R(),i=R();!function(e,t){var r,n=R();for(r=0;r<16;++r)n[r]=t[r];for(r=253;r>=0;--r)U(n,n),2!==r&&4!==r&&F(n,n,t);for(r=0;r<16;++r)e[r]=n[r]}(i,t[2]),F(r,t[0],i),F(n,t[1],i),T(e,n),e[31]^=I(r)<<7}function T(e,t){var r,n,i,a=R(),s=R();for(r=0;r<16;++r)s[r]=t[r];for(B(s),B(s),B(s),n=0;n<2;++n){for(a[0]=s[0]-65517,r=1;r<15;++r)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,L(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function A(e,t){var r=new u(32),n=new u(32);return T(r,e),T(n,t),O(r,0,n,0)}function O(e,t,r,n){return function(e,t,r,n,i){var a,s=0;for(a=0;a<i;++a)s|=e[t+a]^r[n+a];return(1&s-1>>>8)-1}(e,t,r,n,32)}function I(e){var t=new u(32);return T(t,e),1&t[0]}function D(e,t,r){var n,i;for(k(e[0],d),k(e[1],f),k(e[2],f),k(e[3],d),i=255;i>=0;--i)w(e,t,n=r[i/8|0]>>(7&i)&1),C(t,e),C(e,e),w(e,t,n)}function N(e,t){var r=[R(),R(),R(),R()];k(r[0],v),k(r[1],g),k(r[2],f),F(r[3],v,g),D(e,r,t)}function k(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function B(e){var t,r,n=1;for(t=0;t<16;++t)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function L(e,t,r){for(var n,i=~(r-1),a=0;a<16;++a)n=i&(e[a]^t[a]),e[a]^=n,t[a]^=n}function R(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;++t)r[t]=e[t];return r}function P(e,t,r){for(var n=0;n<16;++n)e[n]=t[n]+r[n]}function j(e,t,r){for(var n=0;n<16;++n)e[n]=t[n]-r[n]}function U(e,t){F(e,t,t)}function F(e,t,r){var n,i,a=0,s=0,o=0,c=0,u=0,l=0,p=0,d=0,f=0,h=0,m=0,v=0,g=0,y=0,E=0,_=0,b=0,x=0,C=0,w=0,S=0,T=0,A=0,O=0,I=0,D=0,N=0,k=0,B=0,L=0,R=0,P=r[0],j=r[1],U=r[2],F=r[3],K=r[4],M=r[5],V=r[6],Y=r[7],G=r[8],H=r[9],z=r[10],q=r[11],W=r[12],$=r[13],Q=r[14],X=r[15];a+=(n=t[0])*P,s+=n*j,o+=n*U,c+=n*F,u+=n*K,l+=n*M,p+=n*V,d+=n*Y,f+=n*G,h+=n*H,m+=n*z,v+=n*q,g+=n*W,y+=n*$,E+=n*Q,_+=n*X,s+=(n=t[1])*P,o+=n*j,c+=n*U,u+=n*F,l+=n*K,p+=n*M,d+=n*V,f+=n*Y,h+=n*G,m+=n*H,v+=n*z,g+=n*q,y+=n*W,E+=n*$,_+=n*Q,b+=n*X,o+=(n=t[2])*P,c+=n*j,u+=n*U,l+=n*F,p+=n*K,d+=n*M,f+=n*V,h+=n*Y,m+=n*G,v+=n*H,g+=n*z,y+=n*q,E+=n*W,_+=n*$,b+=n*Q,x+=n*X,c+=(n=t[3])*P,u+=n*j,l+=n*U,p+=n*F,d+=n*K,f+=n*M,h+=n*V,m+=n*Y,v+=n*G,g+=n*H,y+=n*z,E+=n*q,_+=n*W,b+=n*$,x+=n*Q,C+=n*X,u+=(n=t[4])*P,l+=n*j,p+=n*U,d+=n*F,f+=n*K,h+=n*M,m+=n*V,v+=n*Y,g+=n*G,y+=n*H,E+=n*z,_+=n*q,b+=n*W,x+=n*$,C+=n*Q,w+=n*X,l+=(n=t[5])*P,p+=n*j,d+=n*U,f+=n*F,h+=n*K,m+=n*M,v+=n*V,g+=n*Y,y+=n*G,E+=n*H,_+=n*z,b+=n*q,x+=n*W,C+=n*$,w+=n*Q,S+=n*X,p+=(n=t[6])*P,d+=n*j,f+=n*U,h+=n*F,m+=n*K,v+=n*M,g+=n*V,y+=n*Y,E+=n*G,_+=n*H,b+=n*z,x+=n*q,C+=n*W,w+=n*$,S+=n*Q,T+=n*X,d+=(n=t[7])*P,f+=n*j,h+=n*U,m+=n*F,v+=n*K,g+=n*M,y+=n*V,E+=n*Y,_+=n*G,b+=n*H,x+=n*z,C+=n*q,w+=n*W,S+=n*$,T+=n*Q,A+=n*X,f+=(n=t[8])*P,h+=n*j,m+=n*U,v+=n*F,g+=n*K,y+=n*M,E+=n*V,_+=n*Y,b+=n*G,x+=n*H,C+=n*z,w+=n*q,S+=n*W,T+=n*$,A+=n*Q,O+=n*X,h+=(n=t[9])*P,m+=n*j,v+=n*U,g+=n*F,y+=n*K,E+=n*M,_+=n*V,b+=n*Y,x+=n*G,C+=n*H,w+=n*z,S+=n*q,T+=n*W,A+=n*$,O+=n*Q,I+=n*X,m+=(n=t[10])*P,v+=n*j,g+=n*U,y+=n*F,E+=n*K,_+=n*M,b+=n*V,x+=n*Y,C+=n*G,w+=n*H,S+=n*z,T+=n*q,A+=n*W,O+=n*$,I+=n*Q,D+=n*X,v+=(n=t[11])*P,g+=n*j,y+=n*U,E+=n*F,_+=n*K,b+=n*M,x+=n*V,C+=n*Y,w+=n*G,S+=n*H,T+=n*z,A+=n*q,O+=n*W,I+=n*$,D+=n*Q,N+=n*X,g+=(n=t[12])*P,y+=n*j,E+=n*U,_+=n*F,b+=n*K,x+=n*M,C+=n*V,w+=n*Y,S+=n*G,T+=n*H,A+=n*z,O+=n*q,I+=n*W,D+=n*$,N+=n*Q,k+=n*X,y+=(n=t[13])*P,E+=n*j,_+=n*U,b+=n*F,x+=n*K,C+=n*M,w+=n*V,S+=n*Y,T+=n*G,A+=n*H,O+=n*z,I+=n*q,D+=n*W,N+=n*$,k+=n*Q,B+=n*X,E+=(n=t[14])*P,_+=n*j,b+=n*U,x+=n*F,C+=n*K,w+=n*M,S+=n*V,T+=n*Y,A+=n*G,O+=n*H,I+=n*z,D+=n*q,N+=n*W,k+=n*$,B+=n*Q,L+=n*X,_+=(n=t[15])*P,s+=38*(x+=n*U),o+=38*(C+=n*F),c+=38*(w+=n*K),u+=38*(S+=n*M),l+=38*(T+=n*V),p+=38*(A+=n*Y),d+=38*(O+=n*G),f+=38*(I+=n*H),h+=38*(D+=n*z),m+=38*(N+=n*q),v+=38*(k+=n*W),g+=38*(B+=n*$),y+=38*(L+=n*Q),E+=38*(R+=n*X),a=(n=(a+=38*(b+=n*j))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=o+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),E=(n=E+i+65535)-65536*(i=Math.floor(n/65536)),_=(n=_+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=(a+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=o+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),E=(n=E+i+65535)-65536*(i=Math.floor(n/65536)),_=(n=_+i+65535)-65536*(i=Math.floor(n/65536)),a+=i-1+37*(i-1),e[0]=a,e[1]=s,e[2]=o,e[3]=c,e[4]=u,e[5]=l,e[6]=p,e[7]=d,e[8]=f,e[9]=h,e[10]=m,e[11]=v,e[12]=g,e[13]=y,e[14]=E,e[15]=_}},276:e=>{e.exports={options:{usePureJavaScript:!1}}},1696:(e,t,r)=>{var n=r(276);r(8106),r(7619),(e.exports=n.hmac=n.hmac||{}).create=function(){var e=null,t=null,r=null,i=null,a={start:function(a,s){if(null!==a)if("string"==typeof a){if(!((a=a.toLowerCase())in n.md.algorithms))throw new Error('Unknown hash algorithm "'+a+'"');t=n.md.algorithms[a].create()}else t=a;if(null===s)s=e;else{if("string"==typeof s)s=n.util.createBuffer(s);else if(n.util.isArray(s)){var o=s;s=n.util.createBuffer();for(var c=0;c<o.length;++c)s.putByte(o[c])}var u=s.length();u>t.blockLength&&(t.start(),t.update(s.bytes()),s=t.digest()),r=n.util.createBuffer(),i=n.util.createBuffer(),u=s.length();for(c=0;c<u;++c){o=s.at(c);r.putByte(54^o),i.putByte(92^o)}if(u<t.blockLength)for(o=t.blockLength-u,c=0;c<o;++c)r.putByte(54),i.putByte(92);e=s,r=r.bytes(),i=i.bytes()}t.start(),t.update(r)},update:function(e){t.update(e)},getMac:function(){var e=t.digest().bytes();return t.start(),t.update(i),t.update(e),t.digest()}};return a.digest=a.getMac,a}},9547:(e,t,r)=>{e.exports=r(276),r(9504),r(8678),r(2746),r(3900),r(9095),r(2926),r(1696),r(3432),r(2045),r(1355),r(5250),r(3254),r(2385),r(7501),r(5071),r(1724),r(9255),r(268),r(3878),r(1417),r(9356),r(5124),r(149),r(3986),r(7619)},3736:(e,t,r)=>{var n,i=r(276);e.exports=i.jsbn=i.jsbn||{};function a(e,t,r){this.data=[],null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function s(){return new a(null)}function o(e,t,r,n,i,a){for(var s=16383&t,o=t>>14;--a>=0;){var c=16383&this.data[e],u=this.data[e++]>>14,l=o*c+u*s;i=((c=s*c+((16383&l)<<14)+r.data[n]+i)>>28)+(l>>14)+o*u,r.data[n++]=268435455&c}return i}i.jsbn.BigInteger=a,"undefined"==typeof navigator?(a.prototype.am=o,n=28):"Microsoft Internet Explorer"==navigator.appName?(a.prototype.am=function(e,t,r,n,i,a){for(var s=32767&t,o=t>>15;--a>=0;){var c=32767&this.data[e],u=this.data[e++]>>15,l=o*c+u*s;i=((c=s*c+((32767&l)<<15)+r.data[n]+(1073741823&i))>>>30)+(l>>>15)+o*u+(i>>>30),r.data[n++]=1073741823&c}return i},n=30):"Netscape"!=navigator.appName?(a.prototype.am=function(e,t,r,n,i,a){for(;--a>=0;){var s=t*this.data[e++]+r.data[n]+i;i=Math.floor(s/67108864),r.data[n++]=67108863&s}return i},n=26):(a.prototype.am=o,n=28),a.prototype.DB=n,a.prototype.DM=(1<<n)-1,a.prototype.DV=1<<n;a.prototype.FV=Math.pow(2,52),a.prototype.F1=52-n,a.prototype.F2=2*n-52;var c,u,l="0123456789abcdefghijklmnopqrstuvwxyz",p=new Array;for(c="0".charCodeAt(0),u=0;u<=9;++u)p[c++]=u;for(c="a".charCodeAt(0),u=10;u<36;++u)p[c++]=u;for(c="A".charCodeAt(0),u=10;u<36;++u)p[c++]=u;function d(e){return l.charAt(e)}function f(e,t){var r=p[e.charCodeAt(t)];return null==r?-1:r}function h(e){var t=s();return t.fromInt(e),t}function m(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function v(e){this.m=e}function g(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function y(e,t){return e&t}function E(e,t){return e|t}function _(e,t){return e^t}function b(e,t){return e&~t}function x(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}function C(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function w(){}function S(e){return e}function T(e){this.r2=s(),this.q3=s(),a.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}v.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},v.prototype.revert=function(e){return e},v.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},v.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},v.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},g.prototype.convert=function(e){var t=s();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(a.ZERO)>0&&this.m.subTo(t,t),t},g.prototype.revert=function(e){var t=s();return e.copyTo(t),this.reduce(t),t},g.prototype.reduce=function(e){for(;e.t<=this.mt2;)e.data[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e.data[t],n=r*this.mpl+((r*this.mph+(e.data[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e.data[r]+=this.m.am(0,n,e,t,0,this.m.t);e.data[r]>=e.DV;)e.data[r]-=e.DV,e.data[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},g.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},g.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},a.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e.data[t]=this.data[t];e.t=this.t,e.s=this.s},a.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0},a.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(e,t);r=2}this.t=0,this.s=0;for(var n=e.length,i=!1,s=0;--n>=0;){var o=8==r?255&e[n]:f(e,n);o<0?"-"==e.charAt(n)&&(i=!0):(i=!1,0==s?this.data[this.t++]=o:s+r>this.DB?(this.data[this.t-1]|=(o&(1<<this.DB-s)-1)<<s,this.data[this.t++]=o>>this.DB-s):this.data[this.t-1]|=o<<s,(s+=r)>=this.DB&&(s-=this.DB))}8==r&&128&e[0]&&(this.s=-1,s>0&&(this.data[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&a.ZERO.subTo(this,this)},a.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this.data[this.t-1]==e;)--this.t},a.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t.data[r+e]=this.data[r];for(r=e-1;r>=0;--r)t.data[r]=0;t.t=this.t+e,t.s=this.s},a.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t.data[r-e]=this.data[r];t.t=Math.max(this.t-e,0),t.s=this.s},a.prototype.lShiftTo=function(e,t){var r,n=e%this.DB,i=this.DB-n,a=(1<<i)-1,s=Math.floor(e/this.DB),o=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)t.data[r+s+1]=this.data[r]>>i|o,o=(this.data[r]&a)<<n;for(r=s-1;r>=0;--r)t.data[r]=0;t.data[s]=o,t.t=this.t+s+1,t.s=this.s,t.clamp()},a.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var n=e%this.DB,i=this.DB-n,a=(1<<n)-1;t.data[0]=this.data[r]>>n;for(var s=r+1;s<this.t;++s)t.data[s-r-1]|=(this.data[s]&a)<<i,t.data[s-r]=this.data[s]>>n;n>0&&(t.data[this.t-r-1]|=(this.s&a)<<i),t.t=this.t-r,t.clamp()}},a.prototype.subTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this.data[r]-e.data[r],t.data[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;r<this.t;)n+=this.data[r],t.data[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n-=e.data[r],t.data[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t.data[r++]=this.DV+n:n>0&&(t.data[r++]=n),t.t=r,t.clamp()},a.prototype.multiplyTo=function(e,t){var r=this.abs(),n=e.abs(),i=r.t;for(t.t=i+n.t;--i>=0;)t.data[i]=0;for(i=0;i<n.t;++i)t.data[i+r.t]=r.am(0,n.data[i],t,i,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&a.ZERO.subTo(t,t)},a.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e.data[r]=0;for(r=0;r<t.t-1;++r){var n=t.am(r,t.data[r],e,2*r,0,1);(e.data[r+t.t]+=t.am(r+1,2*t.data[r],e,2*r+1,n,t.t-r-1))>=t.DV&&(e.data[r+t.t]-=t.DV,e.data[r+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(r,t.data[r],e,2*r,0,1)),e.s=0,e.clamp()},a.prototype.divRemTo=function(e,t,r){var n=e.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t)return null!=t&&t.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=s());var o=s(),c=this.s,u=e.s,l=this.DB-m(n.data[n.t-1]);l>0?(n.lShiftTo(l,o),i.lShiftTo(l,r)):(n.copyTo(o),i.copyTo(r));var p=o.t,d=o.data[p-1];if(0!=d){var f=d*(1<<this.F1)+(p>1?o.data[p-2]>>this.F2:0),h=this.FV/f,v=(1<<this.F1)/f,g=1<<this.F2,y=r.t,E=y-p,_=null==t?s():t;for(o.dlShiftTo(E,_),r.compareTo(_)>=0&&(r.data[r.t++]=1,r.subTo(_,r)),a.ONE.dlShiftTo(p,_),_.subTo(o,o);o.t<p;)o.data[o.t++]=0;for(;--E>=0;){var b=r.data[--y]==d?this.DM:Math.floor(r.data[y]*h+(r.data[y-1]+g)*v);if((r.data[y]+=o.am(0,b,r,E,0,p))<b)for(o.dlShiftTo(E,_),r.subTo(_,r);r.data[y]<--b;)r.subTo(_,r)}null!=t&&(r.drShiftTo(p,t),c!=u&&a.ZERO.subTo(t,t)),r.t=p,r.clamp(),l>0&&r.rShiftTo(l,r),c<0&&a.ZERO.subTo(r,r)}}},a.prototype.invDigit=function(){if(this.t<1)return 0;var e=this.data[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},a.prototype.isEven=function(){return 0==(this.t>0?1&this.data[0]:this.s)},a.prototype.exp=function(e,t){if(e>4294967295||e<1)return a.ONE;var r=s(),n=s(),i=t.convert(this),o=m(e)-1;for(i.copyTo(r);--o>=0;)if(t.sqrTo(r,n),(e&1<<o)>0)t.mulTo(n,i,r);else{var c=r;r=n,n=c}return t.revert(r)},a.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,n=(1<<t)-1,i=!1,a="",s=this.t,o=this.DB-s*this.DB%t;if(s-- >0)for(o<this.DB&&(r=this.data[s]>>o)>0&&(i=!0,a=d(r));s>=0;)o<t?(r=(this.data[s]&(1<<o)-1)<<t-o,r|=this.data[--s]>>(o+=this.DB-t)):(r=this.data[s]>>(o-=t)&n,o<=0&&(o+=this.DB,--s)),r>0&&(i=!0),i&&(a+=d(r));return i?a:"0"},a.prototype.negate=function(){var e=s();return a.ZERO.subTo(this,e),e},a.prototype.abs=function(){return this.s<0?this.negate():this},a.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this.data[r]-e.data[r]))return t;return 0},a.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+m(this.data[this.t-1]^this.s&this.DM)},a.prototype.mod=function(e){var t=s();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(a.ZERO)>0&&e.subTo(t,t),t},a.prototype.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new v(t):new g(t),this.exp(e,r)},a.ZERO=h(0),a.ONE=h(1),w.prototype.convert=S,w.prototype.revert=S,w.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},w.prototype.sqrTo=function(e,t){e.squareTo(t)},T.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=s();return e.copyTo(t),this.reduce(t),t},T.prototype.revert=function(e){return e},T.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},T.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},T.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var A=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],O=(1<<26)/A[A.length-1];a.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},a.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),n=h(r),i=s(),a=s(),o="";for(this.divRemTo(n,i,a);i.signum()>0;)o=(r+a.intValue()).toString(e).substr(1)+o,i.divRemTo(n,i,a);return a.intValue().toString(e)+o},a.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),n=Math.pow(t,r),i=!1,s=0,o=0,c=0;c<e.length;++c){var u=f(e,c);u<0?"-"==e.charAt(c)&&0==this.signum()&&(i=!0):(o=t*o+u,++s>=r&&(this.dMultiply(n),this.dAddOffset(o,0),s=0,o=0))}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(o,0)),i&&a.ZERO.subTo(this,this)},a.prototype.fromNumber=function(e,t,r){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(a.ONE.shiftLeft(e-1),E,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(a.ONE.shiftLeft(e-1),this);else{var n=new Array,i=7&e;n.length=1+(e>>3),t.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}},a.prototype.bitwiseTo=function(e,t,r){var n,i,a=Math.min(e.t,this.t);for(n=0;n<a;++n)r.data[n]=t(this.data[n],e.data[n]);if(e.t<this.t){for(i=e.s&this.DM,n=a;n<this.t;++n)r.data[n]=t(this.data[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=a;n<e.t;++n)r.data[n]=t(i,e.data[n]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},a.prototype.changeBit=function(e,t){var r=a.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},a.prototype.addTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this.data[r]+e.data[r],t.data[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n+=e.s;r<this.t;)n+=this.data[r],t.data[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n+=e.data[r],t.data[r++]=n&this.DM,n>>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t.data[r++]=n:n<-1&&(t.data[r++]=this.DV+n),t.t=r,t.clamp()},a.prototype.dMultiply=function(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},a.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this.data[this.t++]=0;for(this.data[t]+=e;this.data[t]>=this.DV;)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}},a.prototype.multiplyLowerTo=function(e,t,r){var n,i=Math.min(this.t+e.t,t);for(r.s=0,r.t=i;i>0;)r.data[--i]=0;for(n=r.t-this.t;i<n;++i)r.data[i+this.t]=this.am(0,e.data[i],r,i,0,this.t);for(n=Math.min(e.t,t);i<n;++i)this.am(0,e.data[i],r,i,0,t-i);r.clamp()},a.prototype.multiplyUpperTo=function(e,t,r){--t;var n=r.t=this.t+e.t-t;for(r.s=0;--n>=0;)r.data[n]=0;for(n=Math.max(t-this.t,0);n<e.t;++n)r.data[this.t+n-t]=this.am(t-n,e.data[n],r,0,0,this.t+n-t);r.clamp(),r.drShiftTo(1,r)},a.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(0==t)r=this.data[0]%e;else for(var n=this.t-1;n>=0;--n)r=(t*r+this.data[n])%e;return r},a.prototype.millerRabin=function(e){var t=this.subtract(a.ONE),r=t.getLowestSetBit();if(r<=0)return!1;for(var n,i=t.shiftRight(r),s={nextBytes:function(e){for(var t=0;t<e.length;++t)e[t]=Math.floor(256*Math.random())}},o=0;o<e;++o){do{n=new a(this.bitLength(),s)}while(n.compareTo(a.ONE)<=0||n.compareTo(t)>=0);var c=n.modPow(i,this);if(0!=c.compareTo(a.ONE)&&0!=c.compareTo(t)){for(var u=1;u++<r&&0!=c.compareTo(t);)if(0==(c=c.modPowInt(2,this)).compareTo(a.ONE))return!1;if(0!=c.compareTo(t))return!1}}return!0},a.prototype.clone=function(){var e=s();return this.copyTo(e),e},a.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this.data[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this.data[0];if(0==this.t)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]},a.prototype.byteValue=function(){return 0==this.t?this.s:this.data[0]<<24>>24},a.prototype.shortValue=function(){return 0==this.t?this.s:this.data[0]<<16>>16},a.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this.data[0]<=0?0:1},a.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var r,n=this.DB-e*this.DB%8,i=0;if(e-- >0)for(n<this.DB&&(r=this.data[e]>>n)!=(this.s&this.DM)>>n&&(t[i++]=r|this.s<<this.DB-n);e>=0;)n<8?(r=(this.data[e]&(1<<n)-1)<<8-n,r|=this.data[--e]>>(n+=this.DB-8)):(r=this.data[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),128&r&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t},a.prototype.equals=function(e){return 0==this.compareTo(e)},a.prototype.min=function(e){return this.compareTo(e)<0?this:e},a.prototype.max=function(e){return this.compareTo(e)>0?this:e},a.prototype.and=function(e){var t=s();return this.bitwiseTo(e,y,t),t},a.prototype.or=function(e){var t=s();return this.bitwiseTo(e,E,t),t},a.prototype.xor=function(e){var t=s();return this.bitwiseTo(e,_,t),t},a.prototype.andNot=function(e){var t=s();return this.bitwiseTo(e,b,t),t},a.prototype.not=function(){for(var e=s(),t=0;t<this.t;++t)e.data[t]=this.DM&~this.data[t];return e.t=this.t,e.s=~this.s,e},a.prototype.shiftLeft=function(e){var t=s();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},a.prototype.shiftRight=function(e){var t=s();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},a.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this.data[e])return e*this.DB+x(this.data[e]);return this.s<0?this.t*this.DB:-1},a.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=C(this.data[r]^t);return e},a.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this.data[t]&1<<e%this.DB)},a.prototype.setBit=function(e){return this.changeBit(e,E)},a.prototype.clearBit=function(e){return this.changeBit(e,b)},a.prototype.flipBit=function(e){return this.changeBit(e,_)},a.prototype.add=function(e){var t=s();return this.addTo(e,t),t},a.prototype.subtract=function(e){var t=s();return this.subTo(e,t),t},a.prototype.multiply=function(e){var t=s();return this.multiplyTo(e,t),t},a.prototype.divide=function(e){var t=s();return this.divRemTo(e,t,null),t},a.prototype.remainder=function(e){var t=s();return this.divRemTo(e,null,t),t},a.prototype.divideAndRemainder=function(e){var t=s(),r=s();return this.divRemTo(e,t,r),new Array(t,r)},a.prototype.modPow=function(e,t){var r,n,i=e.bitLength(),a=h(1);if(i<=0)return a;r=i<18?1:i<48?3:i<144?4:i<768?5:6,n=i<8?new v(t):t.isEven()?new T(t):new g(t);var o=new Array,c=3,u=r-1,l=(1<<r)-1;if(o[1]=n.convert(this),r>1){var p=s();for(n.sqrTo(o[1],p);c<=l;)o[c]=s(),n.mulTo(p,o[c-2],o[c]),c+=2}var d,f,y=e.t-1,E=!0,_=s();for(i=m(e.data[y])-1;y>=0;){for(i>=u?d=e.data[y]>>i-u&l:(d=(e.data[y]&(1<<i+1)-1)<<u-i,y>0&&(d|=e.data[y-1]>>this.DB+i-u)),c=r;!(1&d);)d>>=1,--c;if((i-=c)<0&&(i+=this.DB,--y),E)o[d].copyTo(a),E=!1;else{for(;c>1;)n.sqrTo(a,_),n.sqrTo(_,a),c-=2;c>0?n.sqrTo(a,_):(f=a,a=_,_=f),n.mulTo(_,o[d],a)}for(;y>=0&&!(e.data[y]&1<<i);)n.sqrTo(a,_),f=a,a=_,_=f,--i<0&&(i=this.DB-1,--y)}return n.revert(a)},a.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return a.ZERO;for(var r=e.clone(),n=this.clone(),i=h(1),s=h(0),o=h(0),c=h(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(i.isEven()&&s.isEven()||(i.addTo(this,i),s.subTo(e,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;n.isEven();)n.rShiftTo(1,n),t?(o.isEven()&&c.isEven()||(o.addTo(this,o),c.subTo(e,c)),o.rShiftTo(1,o)):c.isEven()||c.subTo(e,c),c.rShiftTo(1,c);r.compareTo(n)>=0?(r.subTo(n,r),t&&i.subTo(o,i),s.subTo(c,s)):(n.subTo(r,n),t&&o.subTo(i,o),c.subTo(s,c))}return 0!=n.compareTo(a.ONE)?a.ZERO:c.compareTo(e)>=0?c.subtract(e):c.signum()<0?(c.addTo(e,c),c.signum()<0?c.add(e):c):c},a.prototype.pow=function(e){return this.exp(e,new w)},a.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var n=t;t=r,r=n}var i=t.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)return t;for(i<a&&(a=i),a>0&&(t.rShiftTo(a,t),r.rShiftTo(a,r));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return a>0&&r.lShiftTo(a,r),r},a.prototype.isProbablePrime=function(e){var t,r=this.abs();if(1==r.t&&r.data[0]<=A[A.length-1]){for(t=0;t<A.length;++t)if(r.data[0]==A[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<A.length;){for(var n=A[t],i=t+1;i<A.length&&n<O;)n*=A[i++];for(n=r.modInt(n);t<i;)if(n%A[t++]==0)return!1}return r.millerRabin(e)}},3432:(e,t,r)=>{var n=r(276);r(7619),r(9356),r(3736),e.exports=n.kem=n.kem||{};var i=n.jsbn.BigInteger;function a(e,t,r,i){e.generate=function(e,a){for(var s=new n.util.ByteBuffer,o=Math.ceil(a/i)+r,c=new n.util.ByteBuffer,u=r;u<o;++u){c.putInt32(u),t.start(),t.update(e+c.getBytes());var l=t.digest();s.putBytes(l.getBytes(i))}return s.truncate(s.length()-a),s.getBytes()}}n.kem.rsa={},n.kem.rsa.create=function(e,t){var r=(t=t||{}).prng||n.random,a={encrypt:function(t,a){var s,o=Math.ceil(t.n.bitLength()/8);do{s=new i(n.util.bytesToHex(r.getBytesSync(o)),16).mod(t.n)}while(s.compareTo(i.ONE)<=0);var c=o-(s=n.util.hexToBytes(s.toString(16))).length;return c>0&&(s=n.util.fillString(String.fromCharCode(0),c)+s),{encapsulation:t.encrypt(s,"NONE"),key:e.generate(s,a)}},decrypt:function(t,r,n){var i=t.decrypt(r,"NONE");return e.generate(i,n)}};return a},n.kem.kdf1=function(e,t){a(this,e,0,t||e.digestLength)},n.kem.kdf2=function(e,t){a(this,e,1,t||e.digestLength)}},2045:(e,t,r)=>{var n=r(276);r(7619),e.exports=n.log=n.log||{},n.log.levels=["none","error","warning","info","debug","verbose","max"];var i={},a=[],s=null;n.log.LEVEL_LOCKED=2,n.log.NO_LEVEL_CHECK=4,n.log.INTERPOLATE=8;for(var o=0;o<n.log.levels.length;++o){var c=n.log.levels[o];i[c]={index:o,name:c.toUpperCase()}}n.log.logMessage=function(e){for(var t=i[e.level].index,r=0;r<a.length;++r){var s=a[r];if(s.flags&n.log.NO_LEVEL_CHECK)s.f(e);else t<=i[s.level].index&&s.f(s,e)}},n.log.prepareStandard=function(e){"standard"in e||(e.standard=i[e.level].name+" ["+e.category+"] "+e.message)},n.log.prepareFull=function(e){if(!("full"in e)){var t=[e.message];t=t.concat([]||0),e.full=n.util.format.apply(this,t)}},n.log.prepareStandardFull=function(e){"standardFull"in e||(n.log.prepareStandard(e),e.standardFull=e.standard)};var u=["error","warning","info","debug","verbose"];for(o=0;o<u.length;++o)!function(e){n.log[e]=function(t,r){var i=Array.prototype.slice.call(arguments).slice(2),a={timestamp:new Date,level:e,category:t,message:r,arguments:i};n.log.logMessage(a)}}(u[o]);if(n.log.makeLogger=function(e){var t={flags:0,f:e};return n.log.setLevel(t,"none"),t},n.log.setLevel=function(e,t){var r=!1;if(e&&!(e.flags&n.log.LEVEL_LOCKED))for(var i=0;i<n.log.levels.length;++i){if(t==n.log.levels[i]){e.level=t,r=!0;break}}return r},n.log.lock=function(e,t){void 0===t||t?e.flags|=n.log.LEVEL_LOCKED:e.flags&=~n.log.LEVEL_LOCKED},n.log.addLogger=function(e){a.push(e)},"undefined"!=typeof console&&"log"in console){var l;if(console.error&&console.warn&&console.info&&console.debug){var p={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},d=function(e,t){n.log.prepareStandard(t);var r=p[t.level],i=[t.standard];i=i.concat(t.arguments.slice()),r.apply(console,i)};l=n.log.makeLogger(d)}else{d=function(e,t){n.log.prepareStandardFull(t),console.log(t.standardFull)};l=n.log.makeLogger(d)}n.log.setLevel(l,"debug"),n.log.addLogger(l),s=l}else console={log:function(){}};if(null!==s&&"undefined"!=typeof window&&window.location){var f=new URL(window.location.href).searchParams;if(f.has("console.level")&&n.log.setLevel(s,f.get("console.level").slice(-1)[0]),f.has("console.lock"))"true"==f.get("console.lock").slice(-1)[0]&&n.log.lock(s)}n.log.consoleLogger=s},1355:(e,t,r)=>{e.exports=r(8106),r(1267),r(1598),r(172),r(4694)},8106:(e,t,r)=>{var n=r(276);e.exports=n.md=n.md||{},n.md.algorithms=n.md.algorithms||{}},1267:(e,t,r)=>{var n=r(276);r(8106),r(7619);var i=e.exports=n.md5=n.md5||{};n.md.md5=n.md.algorithms.md5=i,i.create=function(){u||function(){a=String.fromCharCode(128),a+=n.util.fillString(String.fromCharCode(0),64),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],o=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],c=new Array(64);for(var e=0;e<64;++e)c[e]=Math.floor(4294967296*Math.abs(Math.sin(e+1)));u=!0}();var e=null,t=n.util.createBuffer(),r=new Array(16),i={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){i.messageLength=0,i.fullMessageLength=i.messageLength64=[];for(var r=i.messageLengthSize/4,a=0;a<r;++a)i.fullMessageLength.push(0);return t=n.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},i}};return i.start(),i.update=function(a,s){"utf8"===s&&(a=n.util.encodeUtf8(a));var o=a.length;i.messageLength+=o,o=[o/4294967296>>>0,o>>>0];for(var c=i.fullMessageLength.length-1;c>=0;--c)i.fullMessageLength[c]+=o[1],o[1]=o[0]+(i.fullMessageLength[c]/4294967296>>>0),i.fullMessageLength[c]=i.fullMessageLength[c]>>>0,o[0]=o[1]/4294967296>>>0;return t.putBytes(a),l(e,r,t),(t.read>2048||0===t.length())&&t.compact(),i},i.digest=function(){var s=n.util.createBuffer();s.putBytes(t.bytes());var o=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize&i.blockLength-1;s.putBytes(a.substr(0,i.blockLength-o));for(var c,u=0,p=i.fullMessageLength.length-1;p>=0;--p)u=(c=8*i.fullMessageLength[p]+u)/4294967296>>>0,s.putInt32Le(c>>>0);var d={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3};l(d,r,s);var f=n.util.createBuffer();return f.putInt32Le(d.h0),f.putInt32Le(d.h1),f.putInt32Le(d.h2),f.putInt32Le(d.h3),f},i};var a=null,s=null,o=null,c=null,u=!1;function l(e,t,r){for(var n,i,a,u,l,p,d,f=r.length();f>=64;){for(i=e.h0,a=e.h1,u=e.h2,l=e.h3,d=0;d<16;++d)t[d]=r.getInt32Le(),n=i+(l^a&(u^l))+c[d]+t[d],i=l,l=u,u=a,a+=n<<(p=o[d])|n>>>32-p;for(;d<32;++d)n=i+(u^l&(a^u))+c[d]+t[s[d]],i=l,l=u,u=a,a+=n<<(p=o[d])|n>>>32-p;for(;d<48;++d)n=i+(a^u^l)+c[d]+t[s[d]],i=l,l=u,u=a,a+=n<<(p=o[d])|n>>>32-p;for(;d<64;++d)n=i+(u^(a|~l))+c[d]+t[s[d]],i=l,l=u,u=a,a+=n<<(p=o[d])|n>>>32-p;e.h0=e.h0+i|0,e.h1=e.h1+a|0,e.h2=e.h2+u|0,e.h3=e.h3+l|0,f-=64}}},1373:(e,t,r)=>{var n=r(276);r(5250),e.exports=n.mgf=n.mgf||{},n.mgf.mgf1=n.mgf1},5250:(e,t,r)=>{var n=r(276);r(7619),n.mgf=n.mgf||{},(e.exports=n.mgf.mgf1=n.mgf1=n.mgf1||{}).create=function(e){return{generate:function(t,r){for(var i=new n.util.ByteBuffer,a=Math.ceil(r/e.digestLength),s=0;s<a;s++){var o=new n.util.ByteBuffer;o.putInt32(s),e.start(),e.update(t+o.getBytes()),i.putBuffer(e.digest())}return i.truncate(i.length()-r),i.getBytes()}}}},6418:(e,t,r)=>{var n=r(276);n.pki=n.pki||{};var i=e.exports=n.pki.oids=n.oids=n.oids||{};function a(e,t){i[e]=t,i[t]=e}function s(e,t){i[e]=t}a("1.2.840.113549.1.1.1","rsaEncryption"),a("1.2.840.113549.1.1.4","md5WithRSAEncryption"),a("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),a("1.2.840.113549.1.1.7","RSAES-OAEP"),a("1.2.840.113549.1.1.8","mgf1"),a("1.2.840.113549.1.1.9","pSpecified"),a("1.2.840.113549.1.1.10","RSASSA-PSS"),a("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),a("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),a("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),a("1.3.101.112","EdDSA25519"),a("1.2.840.10040.4.3","dsa-with-sha1"),a("1.3.14.3.2.7","desCBC"),a("1.3.14.3.2.26","sha1"),a("1.3.14.3.2.29","sha1WithRSASignature"),a("2.16.840.1.101.3.4.2.1","sha256"),a("2.16.840.1.101.3.4.2.2","sha384"),a("2.16.840.1.101.3.4.2.3","sha512"),a("2.16.840.1.101.3.4.2.4","sha224"),a("2.16.840.1.101.3.4.2.5","sha512-224"),a("2.16.840.1.101.3.4.2.6","sha512-256"),a("1.2.840.113549.2.2","md2"),a("1.2.840.113549.2.5","md5"),a("1.2.840.113549.1.7.1","data"),a("1.2.840.113549.1.7.2","signedData"),a("1.2.840.113549.1.7.3","envelopedData"),a("1.2.840.113549.1.7.4","signedAndEnvelopedData"),a("1.2.840.113549.1.7.5","digestedData"),a("1.2.840.113549.1.7.6","encryptedData"),a("1.2.840.113549.1.9.1","emailAddress"),a("1.2.840.113549.1.9.2","unstructuredName"),a("1.2.840.113549.1.9.3","contentType"),a("1.2.840.113549.1.9.4","messageDigest"),a("1.2.840.113549.1.9.5","signingTime"),a("1.2.840.113549.1.9.6","counterSignature"),a("1.2.840.113549.1.9.7","challengePassword"),a("1.2.840.113549.1.9.8","unstructuredAddress"),a("1.2.840.113549.1.9.14","extensionRequest"),a("1.2.840.113549.1.9.20","friendlyName"),a("1.2.840.113549.1.9.21","localKeyId"),a("1.2.840.113549.1.9.22.1","x509Certificate"),a("1.2.840.113549.1.12.10.1.1","keyBag"),a("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),a("1.2.840.113549.1.12.10.1.3","certBag"),a("1.2.840.113549.1.12.10.1.4","crlBag"),a("1.2.840.113549.1.12.10.1.5","secretBag"),a("1.2.840.113549.1.12.10.1.6","safeContentsBag"),a("1.2.840.113549.1.5.13","pkcs5PBES2"),a("1.2.840.113549.1.5.12","pkcs5PBKDF2"),a("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),a("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),a("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),a("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),a("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),a("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),a("1.2.840.113549.2.7","hmacWithSHA1"),a("1.2.840.113549.2.8","hmacWithSHA224"),a("1.2.840.113549.2.9","hmacWithSHA256"),a("1.2.840.113549.2.10","hmacWithSHA384"),a("1.2.840.113549.2.11","hmacWithSHA512"),a("1.2.840.113549.3.7","des-EDE3-CBC"),a("2.16.840.1.101.3.4.1.2","aes128-CBC"),a("2.16.840.1.101.3.4.1.22","aes192-CBC"),a("2.16.840.1.101.3.4.1.42","aes256-CBC"),a("2.5.4.3","commonName"),a("2.5.4.4","surname"),a("2.5.4.5","serialNumber"),a("2.5.4.6","countryName"),a("2.5.4.7","localityName"),a("2.5.4.8","stateOrProvinceName"),a("2.5.4.9","streetAddress"),a("2.5.4.10","organizationName"),a("2.5.4.11","organizationalUnitName"),a("2.5.4.12","title"),a("2.5.4.13","description"),a("2.5.4.15","businessCategory"),a("2.5.4.17","postalCode"),a("2.5.4.42","givenName"),a("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName"),a("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName"),a("2.16.840.1.113730.1.1","nsCertType"),a("2.16.840.1.113730.1.13","nsComment"),s("2.5.29.1","authorityKeyIdentifier"),s("2.5.29.2","keyAttributes"),s("2.5.29.3","certificatePolicies"),s("2.5.29.4","keyUsageRestriction"),s("2.5.29.5","policyMapping"),s("2.5.29.6","subtreesConstraint"),s("2.5.29.7","subjectAltName"),s("2.5.29.8","issuerAltName"),s("2.5.29.9","subjectDirectoryAttributes"),s("2.5.29.10","basicConstraints"),s("2.5.29.11","nameConstraints"),s("2.5.29.12","policyConstraints"),s("2.5.29.13","basicConstraints"),a("2.5.29.14","subjectKeyIdentifier"),a("2.5.29.15","keyUsage"),s("2.5.29.16","privateKeyUsagePeriod"),a("2.5.29.17","subjectAltName"),a("2.5.29.18","issuerAltName"),a("2.5.29.19","basicConstraints"),s("2.5.29.20","cRLNumber"),s("2.5.29.21","cRLReason"),s("2.5.29.22","expirationDate"),s("2.5.29.23","instructionCode"),s("2.5.29.24","invalidityDate"),s("2.5.29.25","cRLDistributionPoints"),s("2.5.29.26","issuingDistributionPoint"),s("2.5.29.27","deltaCRLIndicator"),s("2.5.29.28","issuingDistributionPoint"),s("2.5.29.29","certificateIssuer"),s("2.5.29.30","nameConstraints"),a("2.5.29.31","cRLDistributionPoints"),a("2.5.29.32","certificatePolicies"),s("2.5.29.33","policyMappings"),s("2.5.29.34","policyConstraints"),a("2.5.29.35","authorityKeyIdentifier"),s("2.5.29.36","policyConstraints"),a("2.5.29.37","extKeyUsage"),s("2.5.29.46","freshestCRL"),s("2.5.29.54","inhibitAnyPolicy"),a("1.3.6.1.4.1.11129.2.4.2","timestampList"),a("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),a("1.3.6.1.5.5.7.3.1","serverAuth"),a("1.3.6.1.5.5.7.3.2","clientAuth"),a("1.3.6.1.5.5.7.3.3","codeSigning"),a("1.3.6.1.5.5.7.3.4","emailProtection"),a("1.3.6.1.5.5.7.3.8","timeStamping")},2698:(e,t,r)=>{var n=r(276);if(r(9504),r(2746),r(9095),r(8106),r(6418),r(3254),r(2385),r(9356),r(5124),r(5805),r(7619),void 0===i)var i=n.jsbn.BigInteger;var a=n.asn1,s=n.pki=n.pki||{};e.exports=s.pbe=n.pbe=n.pbe||{};var o=s.oids,c={name:"EncryptedPrivateKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},u={name:"PBES2Algorithms",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},l={name:"pkcs-12PbeParams",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:!1,capture:"iterations"}]};function p(e,t){return e.start().update(t).digest().getBytes()}function d(e){var t;if(e){if(!(t=s.oids[a.derToOid(e)])){var r=new Error("Unsupported PRF OID.");throw r.oid=e,r.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],r}}else t="hmacWithSHA1";return f(t)}function f(e){var t=n.md;switch(e){case"hmacWithSHA224":t=n.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":e=e.substr(8).toLowerCase();break;default:var r=new Error("Unsupported PRF algorithm.");throw r.algorithm=e,r.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],r}if(!t||!(e in t))throw new Error("Unknown hash algorithm: "+e);return t[e].create()}s.encryptPrivateKeyInfo=function(e,t,r){(r=r||{}).saltSize=r.saltSize||8,r.count=r.count||2048,r.algorithm=r.algorithm||"aes128",r.prfAlgorithm=r.prfAlgorithm||"sha1";var i,c,u,l=n.random.getBytesSync(r.saltSize),p=r.count,d=a.integerToDer(p);if(0===r.algorithm.indexOf("aes")||"des"===r.algorithm){var h,m,v;switch(r.algorithm){case"aes128":i=16,h=16,m=o["aes128-CBC"],v=n.aes.createEncryptionCipher;break;case"aes192":i=24,h=16,m=o["aes192-CBC"],v=n.aes.createEncryptionCipher;break;case"aes256":i=32,h=16,m=o["aes256-CBC"],v=n.aes.createEncryptionCipher;break;case"des":i=8,h=8,m=o.desCBC,v=n.des.createEncryptionCipher;break;default:throw(x=new Error("Cannot encrypt private key. Unknown encryption algorithm.")).algorithm=r.algorithm,x}var g="hmacWith"+r.prfAlgorithm.toUpperCase(),y=f(g),E=n.pkcs5.pbkdf2(t,l,p,i,y),_=n.random.getBytesSync(h);(C=v(E)).start(_),C.update(a.toDer(e)),C.finish(),u=C.output.getBytes();var b=function(e,t,r,i){var o=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,e),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,t.getBytes())]);"hmacWithSHA1"!==i&&o.value.push(a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,n.util.hexToBytes(r.toString(16))),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(s.oids[i]).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,!1,"")]));return o}(l,d,i,g);c=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(o.pkcs5PBES2).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(o.pkcs5PBKDF2).getBytes()),b]),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(m).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,_)])])])}else{var x;if("3des"!==r.algorithm)throw(x=new Error("Cannot encrypt private key. Unknown encryption algorithm.")).algorithm=r.algorithm,x;i=24;var C,w=new n.util.ByteBuffer(l);E=s.pbe.generatePkcs12Key(t,w,1,p,i),_=s.pbe.generatePkcs12Key(t,w,2,p,i);(C=n.des.createEncryptionCipher(E)).start(_),C.update(a.toDer(e)),C.finish(),u=C.output.getBytes(),c=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OID,!1,a.oidToDer(o["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,l),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,!1,d.getBytes())])])}return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,!0,[c,a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,!1,u)])},s.decryptPrivateKeyInfo=function(e,t){var r=null,i={},o=[];if(!a.validate(e,c,i,o)){var u=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw u.errors=o,u}var l=a.derToOid(i.encryptionOid),p=s.pbe.getCipher(l,i.encryptionParams,t),d=n.util.createBuffer(i.encryptedData);return p.update(d),p.finish()&&(r=a.fromDer(p.output)),r},s.encryptedPrivateKeyToPem=function(e,t){var r={type:"ENCRYPTED PRIVATE KEY",body:a.toDer(e).getBytes()};return n.pem.encode(r,{maxline:t})},s.encryptedPrivateKeyFromPem=function(e){var t=n.pem.decode(e)[0];if("ENCRYPTED PRIVATE KEY"!==t.type){var r=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw r.headerType=t.type,r}if(t.procType&&"ENCRYPTED"===t.procType.type)throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return a.fromDer(t.body)},s.encryptRsaPrivateKey=function(e,t,r){if(!(r=r||{}).legacy){var i=s.wrapRsaPrivateKey(s.privateKeyToAsn1(e));return i=s.encryptPrivateKeyInfo(i,t,r),s.encryptedPrivateKeyToPem(i)}var o,c,u,l;switch(r.algorithm){case"aes128":o="AES-128-CBC",u=16,c=n.random.getBytesSync(16),l=n.aes.createEncryptionCipher;break;case"aes192":o="AES-192-CBC",u=24,c=n.random.getBytesSync(16),l=n.aes.createEncryptionCipher;break;case"aes256":o="AES-256-CBC",u=32,c=n.random.getBytesSync(16),l=n.aes.createEncryptionCipher;break;case"3des":o="DES-EDE3-CBC",u=24,c=n.random.getBytesSync(8),l=n.des.createEncryptionCipher;break;case"des":o="DES-CBC",u=8,c=n.random.getBytesSync(8),l=n.des.createEncryptionCipher;break;default:var p=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+r.algorithm+'".');throw p.algorithm=r.algorithm,p}var d=l(n.pbe.opensslDeriveBytes(t,c.substr(0,8),u));d.start(c),d.update(a.toDer(s.privateKeyToAsn1(e))),d.finish();var f={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:o,parameters:n.util.bytesToHex(c).toUpperCase()},body:d.output.getBytes()};return n.pem.encode(f)},s.decryptRsaPrivateKey=function(e,t){var r=null,i=n.pem.decode(e)[0];if("ENCRYPTED PRIVATE KEY"!==i.type&&"PRIVATE KEY"!==i.type&&"RSA PRIVATE KEY"!==i.type)throw(u=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".')).headerType=u,u;if(i.procType&&"ENCRYPTED"===i.procType.type){var o,c;switch(i.dekInfo.algorithm){case"DES-CBC":o=8,c=n.des.createDecryptionCipher;break;case"DES-EDE3-CBC":o=24,c=n.des.createDecryptionCipher;break;case"AES-128-CBC":o=16,c=n.aes.createDecryptionCipher;break;case"AES-192-CBC":o=24,c=n.aes.createDecryptionCipher;break;case"AES-256-CBC":o=32,c=n.aes.createDecryptionCipher;break;case"RC2-40-CBC":o=5,c=function(e){return n.rc2.createDecryptionCipher(e,40)};break;case"RC2-64-CBC":o=8,c=function(e){return n.rc2.createDecryptionCipher(e,64)};break;case"RC2-128-CBC":o=16,c=function(e){return n.rc2.createDecryptionCipher(e,128)};break;default:var u;throw(u=new Error('Could not decrypt private key; unsupported encryption algorithm "'+i.dekInfo.algorithm+'".')).algorithm=i.dekInfo.algorithm,u}var l=n.util.hexToBytes(i.dekInfo.parameters),p=c(n.pbe.opensslDeriveBytes(t,l.substr(0,8),o));if(p.start(l),p.update(n.util.createBuffer(i.body)),!p.finish())return r;r=p.output.getBytes()}else r=i.body;return null!==(r="ENCRYPTED PRIVATE KEY"===i.type?s.decryptPrivateKeyInfo(a.fromDer(r),t):a.fromDer(r))&&(r=s.privateKeyFromAsn1(r)),r},s.pbe.generatePkcs12Key=function(e,t,r,i,a,s){var o,c;if(null==s){if(!("sha1"in n.md))throw new Error('"sha1" hash algorithm unavailable.');s=n.md.sha1.create()}var u=s.digestLength,l=s.blockLength,p=new n.util.ByteBuffer,d=new n.util.ByteBuffer;if(null!=e){for(c=0;c<e.length;c++)d.putInt16(e.charCodeAt(c));d.putInt16(0)}var f=d.length(),h=t.length(),m=new n.util.ByteBuffer;m.fillWithByte(r,l);var v=l*Math.ceil(h/l),g=new n.util.ByteBuffer;for(c=0;c<v;c++)g.putByte(t.at(c%h));var y=l*Math.ceil(f/l),E=new n.util.ByteBuffer;for(c=0;c<y;c++)E.putByte(d.at(c%f));var _=g;_.putBuffer(E);for(var b=Math.ceil(a/u),x=1;x<=b;x++){var C=new n.util.ByteBuffer;C.putBytes(m.bytes()),C.putBytes(_.bytes());for(var w=0;w<i;w++)s.start(),s.update(C.getBytes()),C=s.digest();var S=new n.util.ByteBuffer;for(c=0;c<l;c++)S.putByte(C.at(c%u));var T=Math.ceil(h/l)+Math.ceil(f/l),A=new n.util.ByteBuffer;for(o=0;o<T;o++){var O=new n.util.ByteBuffer(_.getBytes(l)),I=511;for(c=S.length()-1;c>=0;c--)I>>=8,I+=S.at(c)+O.at(c),O.setAt(c,255&I);A.putBuffer(O)}_=A,p.putBuffer(C)}return p.truncate(p.length()-a),p},s.pbe.getCipher=function(e,t,r){switch(e){case s.oids.pkcs5PBES2:return s.pbe.getCipherForPBES2(e,t,r);case s.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case s.oids["pbewithSHAAnd40BitRC2-CBC"]:return s.pbe.getCipherForPKCS12PBE(e,t,r);default:var n=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw n.oid=e,n.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],n}},s.pbe.getCipherForPBES2=function(e,t,r){var i,o={},c=[];if(!a.validate(t,u,o,c))throw(i=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=c,i;if((e=a.derToOid(o.kdfOid))!==s.oids.pkcs5PBKDF2)throw(i=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.")).oid=e,i.supportedOids=["pkcs5PBKDF2"],i;if((e=a.derToOid(o.encOid))!==s.oids["aes128-CBC"]&&e!==s.oids["aes192-CBC"]&&e!==s.oids["aes256-CBC"]&&e!==s.oids["des-EDE3-CBC"]&&e!==s.oids.desCBC)throw(i=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.")).oid=e,i.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],i;var l,p,f=o.kdfSalt,h=n.util.createBuffer(o.kdfIterationCount);switch(h=h.getInt(h.length()<<3),s.oids[e]){case"aes128-CBC":l=16,p=n.aes.createDecryptionCipher;break;case"aes192-CBC":l=24,p=n.aes.createDecryptionCipher;break;case"aes256-CBC":l=32,p=n.aes.createDecryptionCipher;break;case"des-EDE3-CBC":l=24,p=n.des.createDecryptionCipher;break;case"desCBC":l=8,p=n.des.createDecryptionCipher}var m=d(o.prfOid),v=n.pkcs5.pbkdf2(r,f,h,l,m),g=o.encIv,y=p(v);return y.start(g),y},s.pbe.getCipherForPKCS12PBE=function(e,t,r){var i={},o=[];if(!a.validate(t,l,i,o))throw(m=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=o,m;var c,u,p,f=n.util.createBuffer(i.salt),h=n.util.createBuffer(i.iterations);switch(h=h.getInt(h.length()<<3),e){case s.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:c=24,u=8,p=n.des.startDecrypting;break;case s.oids["pbewithSHAAnd40BitRC2-CBC"]:c=5,u=8,p=function(e,t){var r=n.rc2.createDecryptionCipher(e,40);return r.start(t,null),r};break;default:var m;throw(m=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.")).oid=e,m}var v=d(i.prfOid),g=s.pbe.generatePkcs12Key(r,f,1,h,c,v);return v.start(),p(g,s.pbe.generatePkcs12Key(r,f,2,h,u,v))},s.pbe.opensslDeriveBytes=function(e,t,r,i){if(null==i){if(!("md5"in n.md))throw new Error('"md5" hash algorithm unavailable.');i=n.md.md5.create()}null===t&&(t="");for(var a=[p(i,e+t)],s=16,o=1;s<r;++o,s+=16)a.push(p(i,a[o-1]+e+t));return a.join("").substr(0,r)}},3254:(e,t,r)=>{var n=r(276);r(1696),r(8106),r(7619);var i,a=n.pkcs5=n.pkcs5||{};n.util.isNodejs&&!n.options.usePureJavaScript&&(i=r(6982)),e.exports=n.pbkdf2=a.pbkdf2=function(e,t,r,a,s,o){if("function"==typeof s&&(o=s,s=null),n.util.isNodejs&&!n.options.usePureJavaScript&&i.pbkdf2&&(null===s||"object"!=typeof s)&&(i.pbkdf2Sync.length>4||!s||"sha1"===s))return"string"!=typeof s&&(s="sha1"),e=Buffer.from(e,"binary"),t=Buffer.from(t,"binary"),o?4===i.pbkdf2Sync.length?i.pbkdf2(e,t,r,a,(function(e,t){if(e)return o(e);o(null,t.toString("binary"))})):i.pbkdf2(e,t,r,a,s,(function(e,t){if(e)return o(e);o(null,t.toString("binary"))})):4===i.pbkdf2Sync.length?i.pbkdf2Sync(e,t,r,a).toString("binary"):i.pbkdf2Sync(e,t,r,a,s).toString("binary");if(null==s&&(s="sha1"),"string"==typeof s){if(!(s in n.md.algorithms))throw new Error("Unknown hash algorithm: "+s);s=n.md[s].create()}var c=s.digestLength;if(a>4294967295*c){var u=new Error("Derived key is too long.");if(o)return o(u);throw u}var l=Math.ceil(a/c),p=a-(l-1)*c,d=n.hmac.create();d.start(s,e);var f,h,m,v="";if(!o){for(var g=1;g<=l;++g){d.start(null,null),d.update(t),d.update(n.util.int32ToBytes(g)),f=m=d.digest().getBytes();for(var y=2;y<=r;++y)d.start(null,null),d.update(m),h=d.digest().getBytes(),f=n.util.xorBytes(f,h,c),m=h;v+=g<l?f:f.substr(0,p)}return v}g=1;function E(){if(g>l)return o(null,v);d.start(null,null),d.update(t),d.update(n.util.int32ToBytes(g)),f=m=d.digest().getBytes(),y=2,_()}function _(){if(y<=r)return d.start(null,null),d.update(m),h=d.digest().getBytes(),f=n.util.xorBytes(f,h,c),m=h,++y,n.util.setImmediate(_);v+=g<l?f:f.substr(0,p),++g,E()}E()}},2385:(e,t,r)=>{var n=r(276);r(7619);var i=e.exports=n.pem=n.pem||{};function a(e){for(var t=e.name+": ",r=[],n=function(e,t){return" "+t},i=0;i<e.values.length;++i)r.push(e.values[i].replace(/^(\S+\r\n)/,n));t+=r.join(",")+"\r\n";var a=0,s=-1;for(i=0;i<t.length;++i,++a)if(a>65&&-1!==s){var o=t[s];","===o?(++s,t=t.substr(0,s)+"\r\n "+t.substr(s)):t=t.substr(0,s)+"\r\n"+o+t.substr(s+1),a=i-s-1,s=-1,++i}else" "!==t[i]&&"\t"!==t[i]&&","!==t[i]||(s=i);return t}function s(e){return e.replace(/^\s+/,"")}i.encode=function(e,t){t=t||{};var r,i="-----BEGIN "+e.type+"-----\r\n";if(e.procType&&(i+=a(r={name:"Proc-Type",values:[String(e.procType.version),e.procType.type]})),e.contentDomain&&(i+=a(r={name:"Content-Domain",values:[e.contentDomain]})),e.dekInfo&&(r={name:"DEK-Info",values:[e.dekInfo.algorithm]},e.dekInfo.parameters&&r.values.push(e.dekInfo.parameters),i+=a(r)),e.headers)for(var s=0;s<e.headers.length;++s)i+=a(e.headers[s]);return e.procType&&(i+="\r\n"),i+=n.util.encode64(e.body,t.maxline||64)+"\r\n",i+="-----END "+e.type+"-----\r\n"},i.decode=function(e){for(var t,r=[],i=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,a=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,o=/\r?\n/;t=i.exec(e);){var c=t[1];"NEW CERTIFICATE REQUEST"===c&&(c="CERTIFICATE REQUEST");var u={type:c,procType:null,contentDomain:null,dekInfo:null,headers:[],body:n.util.decode64(t[3])};if(r.push(u),t[2]){for(var l=t[2].split(o),p=0;t&&p<l.length;){for(var d=l[p].replace(/\s+$/,""),f=p+1;f<l.length;++f){var h=l[f];if(!/\s/.test(h[0]))break;d+=h,p=f}if(t=d.match(a)){for(var m={name:t[1],values:[]},v=t[2].split(","),g=0;g<v.length;++g)m.values.push(s(v[g]));if(u.procType)if(u.contentDomain||"Content-Domain"!==m.name)if(u.dekInfo||"DEK-Info"!==m.name)u.headers.push(m);else{if(0===m.values.length)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');u.dekInfo={algorithm:v[0],parameters:v[1]||null}}else u.contentDomain=v[0]||"";else{if("Proc-Type"!==m.name)throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(2!==m.values.length)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');u.procType={version:v[0],type:v[1]}}}++p}if("ENCRYPTED"===u.procType&&!u.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(0===r.length)throw new Error("Invalid PEM formatted message.");return r}},7501:(e,t,r)=>{var n=r(276);r(7619),r(9356),r(1598);var i=e.exports=n.pkcs1=n.pkcs1||{};function a(e,t,r){r||(r=n.md.sha1.create());for(var i="",a=Math.ceil(t/r.digestLength),s=0;s<a;++s){var o=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,255&s);r.start(),r.update(e+o),i+=r.digest().getBytes()}return i.substring(0,t)}i.encode_rsa_oaep=function(e,t,r){var i,s,o,c;"string"==typeof r?(i=r,s=arguments[3]||void 0,o=arguments[4]||void 0):r&&(i=r.label||void 0,s=r.seed||void 0,o=r.md||void 0,r.mgf1&&r.mgf1.md&&(c=r.mgf1.md)),o?o.start():o=n.md.sha1.create(),c||(c=o);var u=Math.ceil(e.n.bitLength()/8),l=u-2*o.digestLength-2;if(t.length>l)throw(v=new Error("RSAES-OAEP input message length is too long.")).length=t.length,v.maxLength=l,v;i||(i=""),o.update(i,"raw");for(var p=o.digest(),d="",f=l-t.length,h=0;h<f;h++)d+="\0";var m=p.getBytes()+d+""+t;if(s){if(s.length!==o.digestLength){var v;throw(v=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.")).seedLength=s.length,v.digestLength=o.digestLength,v}}else s=n.random.getBytes(o.digestLength);var g=a(s,u-o.digestLength-1,c),y=n.util.xorBytes(m,g,m.length),E=a(y,o.digestLength,c);return"\0"+n.util.xorBytes(s,E,s.length)+y},i.decode_rsa_oaep=function(e,t,r){var i,s,o;"string"==typeof r?(i=r,s=arguments[3]||void 0):r&&(i=r.label||void 0,s=r.md||void 0,r.mgf1&&r.mgf1.md&&(o=r.mgf1.md));var c=Math.ceil(e.n.bitLength()/8);if(t.length!==c)throw(g=new Error("RSAES-OAEP encoded message length is invalid.")).length=t.length,g.expectedLength=c,g;if(void 0===s?s=n.md.sha1.create():s.start(),o||(o=s),c<2*s.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");i||(i=""),s.update(i,"raw");for(var u=s.digest().getBytes(),l=t.charAt(0),p=t.substring(1,s.digestLength+1),d=t.substring(1+s.digestLength),f=a(d,s.digestLength,o),h=a(n.util.xorBytes(p,f,p.length),c-s.digestLength-1,o),m=n.util.xorBytes(d,h,d.length),v=m.substring(0,s.digestLength),g="\0"!==l,y=0;y<s.digestLength;++y)g|=u.charAt(y)!==v.charAt(y);for(var E=1,_=s.digestLength,b=s.digestLength;b<m.length;b++){var x=m.charCodeAt(b);g|=x&(E?65534:0),_+=E&=1&x^1}if(g||1!==m.charCodeAt(_))throw new Error("Invalid RSAES-OAEP padding.");return m.substring(_+1)}},5071:(e,t,r)=>{var n=r(276);r(2746),r(1696),r(6418),r(9954),r(2698),r(9356),r(5805),r(1598),r(7619),r(6011);var i=n.asn1,a=n.pki,s=e.exports=n.pkcs12=n.pkcs12||{},o={name:"ContentInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:i.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},c={name:"PFX",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"version"},o,{name:"PFX.macData",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:i.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:i.Class.UNIVERSAL,type:i.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:i.Class.UNIVERSAL,type:i.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},u={name:"SafeBag",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:i.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:i.Class.UNIVERSAL,type:i.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},l={name:"Attribute",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:i.Class.UNIVERSAL,type:i.Type.SET,constructed:!0,capture:"values"}]},p={name:"CertBag",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:i.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:i.Class.UNIVERSAL,type:i.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function d(e,t,r,n){for(var i=[],a=0;a<e.length;a++)for(var s=0;s<e[a].safeBags.length;s++){var o=e[a].safeBags[s];void 0!==n&&o.type!==n||(null!==t?void 0!==o.attributes[t]&&o.attributes[t].indexOf(r)>=0&&i.push(o):i.push(o))}return i}function f(e){if(e.composed||e.constructed){for(var t=n.util.createBuffer(),r=0;r<e.value.length;++r)t.putBytes(e.value[r].value);e.composed=e.constructed=!1,e.value=t.getBytes()}return e}function h(e,t){var r={},s=[];if(!i.validate(e,n.pkcs7.asn1.encryptedDataValidator,r,s))throw(o=new Error("Cannot read EncryptedContentInfo.")).errors=s,o;var o,c=i.derToOid(r.contentType);if(c!==a.oids.data)throw(o=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.")).oid=c,o;c=i.derToOid(r.encAlgorithm);var u=a.pbe.getCipher(c,r.encParameter,t),l=f(r.encryptedContentAsn1),p=n.util.createBuffer(l.value);if(u.update(p),!u.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return u.output.getBytes()}function m(e,t,r){if(!t&&0===e.length)return[];if((e=i.fromDer(e,t)).tagClass!==i.Class.UNIVERSAL||e.type!==i.Type.SEQUENCE||!0!==e.constructed)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var n=[],s=0;s<e.value.length;s++){var o=e.value[s],c={},l=[];if(!i.validate(o,u,c,l))throw(g=new Error("Cannot read SafeBag.")).errors=l,g;var d,f,h={type:i.derToOid(c.bagId),attributes:v(c.bagAttributes)};n.push(h);var m=c.bagValue.value[0];switch(h.type){case a.oids.pkcs8ShroudedKeyBag:if(null===(m=a.decryptPrivateKeyInfo(m,r)))throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case a.oids.keyBag:try{h.key=a.privateKeyFromAsn1(m)}catch(e){h.key=null,h.asn1=m}continue;case a.oids.certBag:d=p,f=function(){if(i.derToOid(c.certId)!==a.oids.x509Certificate){var e=new Error("Unsupported certificate type, only X.509 supported.");throw e.oid=i.derToOid(c.certId),e}var r=i.fromDer(c.cert,t);try{h.cert=a.certificateFromAsn1(r,!0)}catch(e){h.cert=null,h.asn1=r}};break;default:var g;throw(g=new Error("Unsupported PKCS#12 SafeBag type.")).oid=h.type,g}if(void 0!==d&&!i.validate(m,d,c,l))throw(g=new Error("Cannot read PKCS#12 "+d.name)).errors=l,g;f()}return n}function v(e){var t={};if(void 0!==e)for(var r=0;r<e.length;++r){var n={},s=[];if(!i.validate(e[r],l,n,s)){var o=new Error("Cannot read PKCS#12 BagAttribute.");throw o.errors=s,o}var c=i.derToOid(n.oid);if(void 0!==a.oids[c]){t[a.oids[c]]=[];for(var u=0;u<n.values.length;++u)t[a.oids[c]].push(n.values[u].value)}}return t}s.pkcs12FromAsn1=function(e,t,r){"string"==typeof t?(r=t,t=!0):void 0===t&&(t=!0);var u={};if(!i.validate(e,c,u,[]))throw(l=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.")).errors=l,l;var l,p={version:u.version.charCodeAt(0),safeContents:[],getBags:function(e){var t,r={};return"localKeyId"in e?t=e.localKeyId:"localKeyIdHex"in e&&(t=n.util.hexToBytes(e.localKeyIdHex)),void 0===t&&!("friendlyName"in e)&&"bagType"in e&&(r[e.bagType]=d(p.safeContents,null,null,e.bagType)),void 0!==t&&(r.localKeyId=d(p.safeContents,"localKeyId",t,e.bagType)),"friendlyName"in e&&(r.friendlyName=d(p.safeContents,"friendlyName",e.friendlyName,e.bagType)),r},getBagsByFriendlyName:function(e,t){return d(p.safeContents,"friendlyName",e,t)},getBagsByLocalKeyId:function(e,t){return d(p.safeContents,"localKeyId",e,t)}};if(3!==u.version.charCodeAt(0))throw(l=new Error("PKCS#12 PFX of version other than 3 not supported.")).version=u.version.charCodeAt(0),l;if(i.derToOid(u.contentType)!==a.oids.data)throw(l=new Error("Only PKCS#12 PFX in password integrity mode supported.")).oid=i.derToOid(u.contentType),l;var v=u.content.value[0];if(v.tagClass!==i.Class.UNIVERSAL||v.type!==i.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(v=f(v),u.mac){var g=null,y=0,E=i.derToOid(u.macAlgorithm);switch(E){case a.oids.sha1:g=n.md.sha1.create(),y=20;break;case a.oids.sha256:g=n.md.sha256.create(),y=32;break;case a.oids.sha384:g=n.md.sha384.create(),y=48;break;case a.oids.sha512:g=n.md.sha512.create(),y=64;break;case a.oids.md5:g=n.md.md5.create(),y=16}if(null===g)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+E);var _=new n.util.ByteBuffer(u.macSalt),b="macIterations"in u?parseInt(n.util.bytesToHex(u.macIterations),16):1,x=s.generateKey(r,_,3,b,y,g),C=n.hmac.create();if(C.start(g,x),C.update(v.value),C.getMac().getBytes()!==u.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}return function(e,t,r,n){if(t=i.fromDer(t,r),t.tagClass!==i.Class.UNIVERSAL||t.type!==i.Type.SEQUENCE||!0!==t.constructed)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var s=0;s<t.value.length;s++){var c=t.value[s],u={},l=[];if(!i.validate(c,o,u,l))throw(g=new Error("Cannot read ContentInfo.")).errors=l,g;var p={encrypted:!1},d=null,v=u.content.value[0];switch(i.derToOid(u.contentType)){case a.oids.data:if(v.tagClass!==i.Class.UNIVERSAL||v.type!==i.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");d=f(v).value;break;case a.oids.encryptedData:d=h(v,n),p.encrypted=!0;break;default:var g;throw(g=new Error("Unsupported PKCS#12 contentType.")).contentType=i.derToOid(u.contentType),g}p.safeBags=m(d,r,n),e.safeContents.push(p)}}(p,v.value,t,r),p},s.toPkcs12Asn1=function(e,t,r,o){(o=o||{}).saltSize=o.saltSize||8,o.count=o.count||2048,o.algorithm=o.algorithm||o.encAlgorithm||"aes128","useMac"in o||(o.useMac=!0),"localKeyId"in o||(o.localKeyId=null),"generateLocalKeyId"in o||(o.generateLocalKeyId=!0);var c,u=o.localKeyId;if(null!==u)u=n.util.hexToBytes(u);else if(o.generateLocalKeyId)if(t){var l=n.util.isArray(t)?t[0]:t;"string"==typeof l&&(l=a.certificateFromPem(l)),(A=n.md.sha1.create()).update(i.toDer(a.certificateToAsn1(l)).getBytes()),u=A.digest().getBytes()}else u=n.random.getBytes(20);var p=[];null!==u&&p.push(i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.localKeyId).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SET,!0,[i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,u)])])),"friendlyName"in o&&p.push(i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.friendlyName).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SET,!0,[i.create(i.Class.UNIVERSAL,i.Type.BMPSTRING,!1,o.friendlyName)])])),p.length>0&&(c=i.create(i.Class.UNIVERSAL,i.Type.SET,!0,p));var d=[],f=[];null!==t&&(f=n.util.isArray(t)?t:[t]);for(var h=[],m=0;m<f.length;++m){"string"==typeof(t=f[m])&&(t=a.certificateFromPem(t));var v=0===m?c:void 0,g=a.certificateToAsn1(t),y=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.certBag).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.x509Certificate).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,i.toDer(g).getBytes())])])]),v]);h.push(y)}if(h.length>0){var E=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,h),_=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.data).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,i.toDer(E).getBytes())])]);d.push(_)}var b=null;if(null!==e){var x=a.wrapRsaPrivateKey(a.privateKeyToAsn1(e));b=null===r?i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.keyBag).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[x]),c]):i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.pkcs8ShroudedKeyBag).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[a.encryptPrivateKeyInfo(x,r,o)]),c]);var C=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[b]),w=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.data).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,i.toDer(C).getBytes())])]);d.push(w)}var S,T=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,d);if(o.useMac){var A=n.md.sha1.create(),O=new n.util.ByteBuffer(n.random.getBytes(o.saltSize)),I=o.count,D=(e=s.generateKey(r,O,3,I,20),n.hmac.create());D.start(A,e),D.update(i.toDer(T).getBytes());var N=D.getMac();S=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.sha1).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.NULL,!1,"")]),i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,N.getBytes())]),i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,O.getBytes()),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(I).getBytes())])}return i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(3).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(a.oids.data).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,i.toDer(T).getBytes())])]),S])},s.generateKey=n.pbe.generatePkcs12Key},1724:(e,t,r)=>{var n=r(276);r(9504),r(2746),r(9095),r(6418),r(2385),r(9954),r(9356),r(7619),r(6011);var i=n.asn1,a=e.exports=n.pkcs7=n.pkcs7||{};function s(e){var t={},r=[];if(!i.validate(e,a.asn1.recipientInfoValidator,t,r)){var s=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw s.errors=r,s}return{version:t.version.charCodeAt(0),issuer:n.pki.RDNAttributesAsArray(t.issuer),serialNumber:n.util.createBuffer(t.serial).toHex(),encryptedContent:{algorithm:i.derToOid(t.encAlgorithm),parameter:t.encParameter?t.encParameter.value:void 0,content:t.encKey}}}function o(e){for(var t,r=[],a=0;a<e.length;++a)r.push((t=e[a],i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(t.version).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[n.pki.distinguishedNameToAsn1({attributes:t.issuer}),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,n.util.hexToBytes(t.serialNumber))]),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(t.encryptedContent.algorithm).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.NULL,!1,"")]),i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,t.encryptedContent.content)])));return r}function c(e){var t=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(e.version).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[n.pki.distinguishedNameToAsn1({attributes:e.issuer}),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,n.util.hexToBytes(e.serialNumber))]),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.digestAlgorithm).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.NULL,!1,"")])]);if(e.authenticatedAttributesAsn1&&t.value.push(e.authenticatedAttributesAsn1),t.value.push(i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.signatureAlgorithm).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.NULL,!1,"")])),t.value.push(i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,e.signature)),e.unauthenticatedAttributes.length>0){for(var r=i.create(i.Class.CONTEXT_SPECIFIC,1,!0,[]),a=0;a<e.unauthenticatedAttributes.length;++a){var s=e.unauthenticatedAttributes[a];r.values.push(u(s))}t.value.push(r)}return t}function u(e){var t;if(e.type===n.pki.oids.contentType)t=i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.value).getBytes());else if(e.type===n.pki.oids.messageDigest)t=i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,e.value.bytes());else if(e.type===n.pki.oids.signingTime){var r=new Date("1950-01-01T00:00:00Z"),a=new Date("2050-01-01T00:00:00Z"),s=e.value;if("string"==typeof s){var o=Date.parse(s);s=isNaN(o)?13===s.length?i.utcTimeToDate(s):i.generalizedTimeToDate(s):new Date(o)}t=s>=r&&s<a?i.create(i.Class.UNIVERSAL,i.Type.UTCTIME,!1,i.dateToUtcTime(s)):i.create(i.Class.UNIVERSAL,i.Type.GENERALIZEDTIME,!1,i.dateToGeneralizedTime(s))}return i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.type).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SET,!0,[t])])}function l(e,t,r){var a={};if(!i.validate(t,r,a,[])){var s=new Error("Cannot read PKCS#7 message. ASN.1 object is not a supported PKCS#7 message.");throw s.errors=s,s}if(i.derToOid(a.contentType)!==n.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(a.encryptedContent){var o="";if(n.util.isArray(a.encryptedContent))for(var c=0;c<a.encryptedContent.length;++c){if(a.encryptedContent[c].type!==i.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");o+=a.encryptedContent[c].value}else o=a.encryptedContent;e.encryptedContent={algorithm:i.derToOid(a.encAlgorithm),parameter:n.util.createBuffer(a.encParameter.value),content:n.util.createBuffer(o)}}if(a.content){o="";if(n.util.isArray(a.content))for(c=0;c<a.content.length;++c){if(a.content[c].type!==i.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");o+=a.content[c].value}else o=a.content;e.content=n.util.createBuffer(o)}return e.version=a.version.charCodeAt(0),e.rawCapture=a,a}function p(e){if(void 0===e.encryptedContent.key)throw new Error("Symmetric key not available.");if(void 0===e.content){var t;switch(e.encryptedContent.algorithm){case n.pki.oids["aes128-CBC"]:case n.pki.oids["aes192-CBC"]:case n.pki.oids["aes256-CBC"]:t=n.aes.createDecryptionCipher(e.encryptedContent.key);break;case n.pki.oids.desCBC:case n.pki.oids["des-EDE3-CBC"]:t=n.des.createDecryptionCipher(e.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+e.encryptedContent.algorithm)}if(t.start(e.encryptedContent.parameter),t.update(e.encryptedContent.content),!t.finish())throw new Error("Symmetric decryption failed.");e.content=t.output}}a.messageFromPem=function(e){var t=n.pem.decode(e)[0];if("PKCS7"!==t.type){var r=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw r.headerType=t.type,r}if(t.procType&&"ENCRYPTED"===t.procType.type)throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var s=i.fromDer(t.body);return a.messageFromAsn1(s)},a.messageToPem=function(e,t){var r={type:"PKCS7",body:i.toDer(e.toAsn1()).getBytes()};return n.pem.encode(r,{maxline:t})},a.messageFromAsn1=function(e){var t={},r=[];if(!i.validate(e,a.asn1.contentInfoValidator,t,r)){var s=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw s.errors=r,s}var o,c=i.derToOid(t.contentType);switch(c){case n.pki.oids.envelopedData:o=a.createEnvelopedData();break;case n.pki.oids.encryptedData:o=a.createEncryptedData();break;case n.pki.oids.signedData:o=a.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+c+" is not (yet) supported.")}return o.fromAsn1(t.content.value[0]),o},a.createSignedData=function(){var e=null;return e={type:n.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(t){if(l(e,t,a.asn1.signedDataValidator),e.certificates=[],e.crls=[],e.digestAlgorithmIdentifiers=[],e.contentInfo=null,e.signerInfos=[],e.rawCapture.certificates)for(var r=e.rawCapture.certificates.value,i=0;i<r.length;++i)e.certificates.push(n.pki.certificateFromAsn1(r[i]))},toAsn1:function(){e.contentInfo||e.sign();for(var t=[],r=0;r<e.certificates.length;++r)t.push(n.pki.certificateToAsn1(e.certificates[r]));var a=[],s=i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(e.version).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SET,!0,e.digestAlgorithmIdentifiers),e.contentInfo])]);return t.length>0&&s.value[0].value.push(i.create(i.Class.CONTEXT_SPECIFIC,0,!0,t)),a.length>0&&s.value[0].value.push(i.create(i.Class.CONTEXT_SPECIFIC,1,!0,a)),s.value[0].value.push(i.create(i.Class.UNIVERSAL,i.Type.SET,!0,e.signerInfos)),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.type).getBytes()),s])},addSigner:function(t){var r=t.issuer,i=t.serialNumber;if(t.certificate){var a=t.certificate;"string"==typeof a&&(a=n.pki.certificateFromPem(a)),r=a.issuer.attributes,i=a.serialNumber}var s=t.key;if(!s)throw new Error("Could not add PKCS#7 signer; no private key specified.");"string"==typeof s&&(s=n.pki.privateKeyFromPem(s));var o=t.digestAlgorithm||n.pki.oids.sha1;switch(o){case n.pki.oids.sha1:case n.pki.oids.sha256:case n.pki.oids.sha384:case n.pki.oids.sha512:case n.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+o)}var c=t.authenticatedAttributes||[];if(c.length>0){for(var u=!1,l=!1,p=0;p<c.length;++p){var d=c[p];if(u||d.type!==n.pki.oids.contentType){if(l||d.type!==n.pki.oids.messageDigest);else if(l=!0,u)break}else if(u=!0,l)break}if(!u||!l)throw new Error("Invalid signer.authenticatedAttributes. If signer.authenticatedAttributes is specified, then it must contain at least two attributes, PKCS #9 content-type and PKCS #9 message-digest.")}e.signers.push({key:s,version:1,issuer:r,serialNumber:i,digestAlgorithm:o,signatureAlgorithm:n.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:c,unauthenticatedAttributes:[]})},sign:function(t){var r;(t=t||{},"object"!=typeof e.content||null===e.contentInfo)&&(e.contentInfo=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(n.pki.oids.data).getBytes())]),"content"in e&&(e.content instanceof n.util.ByteBuffer?r=e.content.bytes():"string"==typeof e.content&&(r=n.util.encodeUtf8(e.content)),t.detached?e.detachedContent=i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,r):e.contentInfo.value.push(i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,r)]))));0!==e.signers.length&&function(t){var r;r=e.detachedContent?e.detachedContent:(r=e.contentInfo.value[1]).value[0];if(!r)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var a=i.derToOid(e.contentInfo.value[0].value),s=i.toDer(r);for(var o in s.getByte(),i.getBerValueLength(s),s=s.getBytes(),t)t[o].start().update(s);for(var l=new Date,p=0;p<e.signers.length;++p){var d=e.signers[p];if(0===d.authenticatedAttributes.length){if(a!==n.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{d.authenticatedAttributesAsn1=i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var f=i.create(i.Class.UNIVERSAL,i.Type.SET,!0,[]),h=0;h<d.authenticatedAttributes.length;++h){var m=d.authenticatedAttributes[h];m.type===n.pki.oids.messageDigest?m.value=t[d.digestAlgorithm].digest():m.type===n.pki.oids.signingTime&&(m.value||(m.value=l)),f.value.push(u(m)),d.authenticatedAttributesAsn1.value.push(u(m))}s=i.toDer(f).getBytes(),d.md.start().update(s)}d.signature=d.key.sign(d.md,"RSASSA-PKCS1-V1_5")}e.signerInfos=function(e){for(var t=[],r=0;r<e.length;++r)t.push(c(e[r]));return t}(e.signers)}(function(){for(var t={},r=0;r<e.signers.length;++r){var a=e.signers[r];(s=a.digestAlgorithm)in t||(t[s]=n.md[n.pki.oids[s]].create()),0===a.authenticatedAttributes.length?a.md=t[s]:a.md=n.md[n.pki.oids[s]].create()}for(var s in e.digestAlgorithmIdentifiers=[],t)e.digestAlgorithmIdentifiers.push(i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(s).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.NULL,!1,"")]));return t}())},verify:function(){throw new Error("PKCS#7 signature verification not yet implemented.")},addCertificate:function(t){"string"==typeof t&&(t=n.pki.certificateFromPem(t)),e.certificates.push(t)},addCertificateRevokationList:function(e){throw new Error("PKCS#7 CRL support not yet implemented.")}}},a.createEncryptedData=function(){var e=null;return e={type:n.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:n.pki.oids["aes256-CBC"]},fromAsn1:function(t){l(e,t,a.asn1.encryptedDataValidator)},decrypt:function(t){void 0!==t&&(e.encryptedContent.key=t),p(e)}}},a.createEnvelopedData=function(){var e=null;return e={type:n.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:n.pki.oids["aes256-CBC"]},fromAsn1:function(t){var r=l(e,t,a.asn1.envelopedDataValidator);e.recipients=function(e){for(var t=[],r=0;r<e.length;++r)t.push(s(e[r]));return t}(r.recipientInfos.value)},toAsn1:function(){return i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.type).getBytes()),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(e.version).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SET,!0,o(e.recipients)),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,(t=e.encryptedContent,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(n.pki.oids.data).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(t.algorithm).getBytes()),t.parameter?i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,t.parameter.getBytes()):void 0]),i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,t.content.getBytes())])]))])])]);var t},findRecipient:function(t){for(var r=t.issuer.attributes,n=0;n<e.recipients.length;++n){var i=e.recipients[n],a=i.issuer;if(i.serialNumber===t.serialNumber&&a.length===r.length){for(var s=!0,o=0;o<r.length;++o)if(a[o].type!==r[o].type||a[o].value!==r[o].value){s=!1;break}if(s)return i}}return null},decrypt:function(t,r){if(void 0===e.encryptedContent.key&&void 0!==t&&void 0!==r)switch(t.encryptedContent.algorithm){case n.pki.oids.rsaEncryption:case n.pki.oids.desCBC:var i=r.decrypt(t.encryptedContent.content);e.encryptedContent.key=n.util.createBuffer(i);break;default:throw new Error("Unsupported asymmetric cipher, OID "+t.encryptedContent.algorithm)}p(e)},addRecipient:function(t){e.recipients.push({version:0,issuer:t.issuer.attributes,serialNumber:t.serialNumber,encryptedContent:{algorithm:n.pki.oids.rsaEncryption,key:t.publicKey}})},encrypt:function(t,r){if(void 0===e.encryptedContent.content){var i,a,s;switch(r=r||e.encryptedContent.algorithm,t=t||e.encryptedContent.key,r){case n.pki.oids["aes128-CBC"]:i=16,a=16,s=n.aes.createEncryptionCipher;break;case n.pki.oids["aes192-CBC"]:i=24,a=16,s=n.aes.createEncryptionCipher;break;case n.pki.oids["aes256-CBC"]:i=32,a=16,s=n.aes.createEncryptionCipher;break;case n.pki.oids["des-EDE3-CBC"]:i=24,a=8,s=n.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+r)}if(void 0===t)t=n.util.createBuffer(n.random.getBytes(i));else if(t.length()!=i)throw new Error("Symmetric key has wrong length; got "+t.length()+" bytes, expected "+i+".");e.encryptedContent.algorithm=r,e.encryptedContent.key=t,e.encryptedContent.parameter=n.util.createBuffer(n.random.getBytes(a));var o=s(t);if(o.start(e.encryptedContent.parameter.copy()),o.update(e.content),!o.finish())throw new Error("Symmetric encryption failed.");e.encryptedContent.content=o.output}for(var c=0;c<e.recipients.length;++c){var u=e.recipients[c];if(void 0===u.encryptedContent.content){if(u.encryptedContent.algorithm!==n.pki.oids.rsaEncryption)throw new Error("Unsupported asymmetric cipher, OID "+u.encryptedContent.algorithm);u.encryptedContent.content=u.encryptedContent.key.encrypt(e.encryptedContent.key.data)}}}}}},9954:(e,t,r)=>{var n=r(276);r(2746),r(7619);var i=n.asn1,a=e.exports=n.pkcs7asn1=n.pkcs7asn1||{};n.pkcs7=n.pkcs7||{},n.pkcs7.asn1=a;var s={name:"ContentInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:i.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};a.contentInfoValidator=s;var o={name:"EncryptedContentInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:i.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:i.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};a.envelopedDataValidator={name:"EnvelopedData",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:i.Class.UNIVERSAL,type:i.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(o)},a.encryptedDataValidator={name:"EncryptedData",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"version"}].concat(o)};var c={name:"SignerInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:i.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:i.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:i.Class.UNIVERSAL,type:i.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:i.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};a.signedDataValidator={name:"SignedData",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:i.Class.UNIVERSAL,type:i.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},s,{name:"SignedData.Certificates",tagClass:i.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:i.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:i.Class.UNIVERSAL,type:i.Type.SET,capture:"signerInfos",optional:!0,value:[c]}]},a.recipientInfoValidator={name:"RecipientInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:i.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:i.Class.UNIVERSAL,type:i.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]}},9255:(e,t,r)=>{var n=r(276);r(2746),r(6418),r(2698),r(2385),r(3254),r(5071),r(1417),r(5805),r(7619),r(6011);var i=n.asn1,a=e.exports=n.pki=n.pki||{};a.pemToDer=function(e){var t=n.pem.decode(e)[0];if(t.procType&&"ENCRYPTED"===t.procType.type)throw new Error("Could not convert PEM to DER; PEM is encrypted.");return n.util.createBuffer(t.body)},a.privateKeyFromPem=function(e){var t=n.pem.decode(e)[0];if("PRIVATE KEY"!==t.type&&"RSA PRIVATE KEY"!==t.type){var r=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw r.headerType=t.type,r}if(t.procType&&"ENCRYPTED"===t.procType.type)throw new Error("Could not convert private key from PEM; PEM is encrypted.");var s=i.fromDer(t.body);return a.privateKeyFromAsn1(s)},a.privateKeyToPem=function(e,t){var r={type:"RSA PRIVATE KEY",body:i.toDer(a.privateKeyToAsn1(e)).getBytes()};return n.pem.encode(r,{maxline:t})},a.privateKeyInfoToPem=function(e,t){var r={type:"PRIVATE KEY",body:i.toDer(e).getBytes()};return n.pem.encode(r,{maxline:t})}},268:(e,t,r)=>{var n=r(276);r(7619),r(3736),r(9356),function(){if(n.prime)e.exports=n.prime;else{var t=e.exports=n.prime=n.prime||{},r=n.jsbn.BigInteger,i=[6,4,2,4,2,4,6,2],a=new r(null);a.fromInt(30);var s=function(e,t){return e|t};t.generateProbablePrime=function(e,t,i){"function"==typeof t&&(i=t,t={});var a=(t=t||{}).algorithm||"PRIMEINC";"string"==typeof a&&(a={name:a}),a.options=a.options||{};var s=t.prng||n.random,c={nextBytes:function(e){for(var t=s.getBytesSync(e.length),r=0;r<e.length;++r)e[r]=t.charCodeAt(r)}};if("PRIMEINC"===a.name)return function(e,t,i,a){if("workers"in i)return function(e,t,i,a){if("undefined"==typeof Worker)return o(e,t,i,a);var s=u(e,t),c=i.workers,l=i.workLoad||100,p=30*l/8,d=i.workerScript||"forge/prime.worker.js";if(-1===c)return n.util.estimateCores((function(e,t){e&&(t=2),c=t-1,f()}));function f(){c=Math.max(1,c);for(var n=[],i=0;i<c;++i)n[i]=new Worker(d);for(i=0;i<c;++i)n[i].addEventListener("message",f);var o=!1;function f(i){if(!o){0;var c=i.data;if(c.found){for(var d=0;d<n.length;++d)n[d].terminate();return o=!0,a(null,new r(c.prime,16))}s.bitLength()>e&&(s=u(e,t));var f=s.toString(16);i.target.postMessage({hex:f,workLoad:l}),s.dAddOffset(p,0)}}}f()}(e,t,i,a);return o(e,t,i,a)}(e,c,a.options,i);throw new Error("Invalid prime generation algorithm: "+a.name)}}function o(e,t,r,n){var i=u(e,t),a=function(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}(i.bitLength());"millerRabinTests"in r&&(a=r.millerRabinTests);var s=10;"maxBlockTime"in r&&(s=r.maxBlockTime),c(i,e,t,0,a,s,n)}function c(e,t,r,a,s,o,l){var p=+new Date;do{if(e.bitLength()>t&&(e=u(t,r)),e.isProbablePrime(s))return l(null,e);e.dAddOffset(i[a++%8],0)}while(o<0||+new Date-p<o);n.util.setImmediate((function(){c(e,t,r,a,s,o,l)}))}function u(e,t){var n=new r(e,t),i=e-1;return n.testBit(i)||n.bitwiseTo(r.ONE.shiftLeft(i),s,n),n.dAddOffset(31-n.mod(a).byteValue(),0),n}}()},3878:(e,t,r)=>{var n=r(276);r(7619);var i=null;!n.util.isNodejs||n.options.usePureJavaScript||process.versions["node-webkit"]||(i=r(6982)),(e.exports=n.prng=n.prng||{}).create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},r=e.md,a=new Array(32),s=0;s<32;++s)a[s]=r.create();function o(){if(t.pools[0].messageLength>=32)return c();var e=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(e)),c()}function c(){t.reseeds=4294967295===t.reseeds?0:t.reseeds+1;var e=t.plugin.md.create();e.update(t.keyBytes);for(var r=1,n=0;n<32;++n)t.reseeds%r==0&&(e.update(t.pools[n].digest().getBytes()),t.pools[n].start()),r<<=1;t.keyBytes=e.digest().getBytes(),e.start(),e.update(t.keyBytes);var i=e.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(i),t.generated=0}function u(e){var t=null,r=n.util.globalScope,i=r.crypto||r.msCrypto;i&&i.getRandomValues&&(t=function(e){return i.getRandomValues(e)});var a=n.util.createBuffer();if(t)for(;a.length()<e;){var s=Math.max(1,Math.min(e-a.length(),65536)/4),o=new Uint32Array(Math.floor(s));try{t(o);for(var c=0;c<o.length;++c)a.putInt32(o[c])}catch(e){if(!("undefined"!=typeof QuotaExceededError&&e instanceof QuotaExceededError))throw e}}if(a.length()<e)for(var u,l,p,d=Math.floor(65536*Math.random());a.length()<e;){l=16807*(65535&d),l+=(32767&(u=16807*(d>>16)))<<16,d=4294967295&(l=(2147483647&(l+=u>>15))+(l>>31));for(c=0;c<3;++c)p=d>>>(c<<3),p^=Math.floor(256*Math.random()),a.putByte(255&p)}return a.getBytes(e)}return t.pools=a,t.pool=0,t.generate=function(e,r){if(!r)return t.generateSync(e);var i=t.plugin.cipher,a=t.plugin.increment,s=t.plugin.formatKey,o=t.plugin.formatSeed,u=n.util.createBuffer();t.key=null,function l(p){if(p)return r(p);if(u.length()>=e)return r(null,u.getBytes(e));t.generated>1048575&&(t.key=null);if(null===t.key)return n.util.nextTick((function(){!function(e){if(t.pools[0].messageLength>=32)return c(),e();var r=32-t.pools[0].messageLength<<5;t.seedFile(r,(function(r,n){if(r)return e(r);t.collect(n),c(),e()}))}(l)}));var d=i(t.key,t.seed);t.generated+=d.length,u.putBytes(d),t.key=s(i(t.key,a(t.seed))),t.seed=o(i(t.key,t.seed)),n.util.setImmediate(l)}()},t.generateSync=function(e){var r=t.plugin.cipher,i=t.plugin.increment,a=t.plugin.formatKey,s=t.plugin.formatSeed;t.key=null;for(var c=n.util.createBuffer();c.length()<e;){t.generated>1048575&&(t.key=null),null===t.key&&o();var u=r(t.key,t.seed);t.generated+=u.length,c.putBytes(u),t.key=a(r(t.key,i(t.seed))),t.seed=s(r(t.key,t.seed))}return c.getBytes(e)},i?(t.seedFile=function(e,t){i.randomBytes(e,(function(e,r){if(e)return t(e);t(null,r.toString())}))},t.seedFileSync=function(e){return i.randomBytes(e).toString()}):(t.seedFile=function(e,t){try{t(null,u(e))}catch(e){t(e)}},t.seedFileSync=u),t.collect=function(e){for(var r=e.length,n=0;n<r;++n)t.pools[t.pool].update(e.substr(n,1)),t.pool=31===t.pool?0:t.pool+1},t.collectInt=function(e,r){for(var n="",i=0;i<r;i+=8)n+=String.fromCharCode(e>>i&255);t.collect(n)},t.registerWorker=function(e){if(e===self)t.seedFile=function(e,t){self.addEventListener("message",(function e(r){var n=r.data;n.forge&&n.forge.prng&&(self.removeEventListener("message",e),t(n.forge.prng.err,n.forge.prng.bytes))})),self.postMessage({forge:{prng:{needed:e}}})};else{e.addEventListener("message",(function(r){var n=r.data;n.forge&&n.forge.prng&&t.seedFile(n.forge.prng.needed,(function(t,r){e.postMessage({forge:{prng:{err:t,bytes:r}}})}))}))}},t}},1417:(e,t,r)=>{var n=r(276);r(9356),r(7619),(e.exports=n.pss=n.pss||{}).create=function(e){3===arguments.length&&(e={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var t,r=e.md,i=e.mgf,a=r.digestLength,s=e.salt||null;if("string"==typeof s&&(s=n.util.createBuffer(s)),"saltLength"in e)t=e.saltLength;else{if(null===s)throw new Error("Salt length not specified or specific salt not given.");t=s.length()}if(null!==s&&s.length()!==t)throw new Error("Given salt length does not match length of given salt.");var o=e.prng||n.random,c={encode:function(e,c){var u,l,p=c-1,d=Math.ceil(p/8),f=e.digest().getBytes();if(d<a+t+2)throw new Error("Message is too long to encrypt.");l=null===s?o.getBytesSync(t):s.bytes();var h=new n.util.ByteBuffer;h.fillWithByte(0,8),h.putBytes(f),h.putBytes(l),r.start(),r.update(h.getBytes());var m=r.digest().getBytes(),v=new n.util.ByteBuffer;v.fillWithByte(0,d-t-a-2),v.putByte(1),v.putBytes(l);var g=v.getBytes(),y=d-a-1,E=i.generate(m,y),_="";for(u=0;u<y;u++)_+=String.fromCharCode(g.charCodeAt(u)^E.charCodeAt(u));var b=65280>>8*d-p&255;return(_=String.fromCharCode(_.charCodeAt(0)&~b)+_.substr(1))+m+String.fromCharCode(188)},verify:function(e,s,o){var c,u=o-1,l=Math.ceil(u/8);if(s=s.substr(-l),l<a+t+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(188!==s.charCodeAt(l-1))throw new Error("Encoded message does not end in 0xBC.");var p=l-a-1,d=s.substr(0,p),f=s.substr(p,a),h=65280>>8*l-u&255;if(d.charCodeAt(0)&h)throw new Error("Bits beyond keysize not zero as expected.");var m=i.generate(f,p),v="";for(c=0;c<p;c++)v+=String.fromCharCode(d.charCodeAt(c)^m.charCodeAt(c));v=String.fromCharCode(v.charCodeAt(0)&~h)+v.substr(1);var g=l-a-t-2;for(c=0;c<g;c++)if(0!==v.charCodeAt(c))throw new Error("Leftmost octets not zero as expected");if(1!==v.charCodeAt(g))throw new Error("Inconsistent PSS signature, 0x01 marker not found");var y=v.substr(-t),E=new n.util.ByteBuffer;return E.fillWithByte(0,8),E.putBytes(e),E.putBytes(y),r.start(),r.update(E.getBytes()),f===r.digest().getBytes()}};return c}},9356:(e,t,r)=>{var n=r(276);r(9504),r(172),r(3878),r(7619),n.random&&n.random.getBytes?e.exports=n.random:function(t){var r={},i=new Array(4),a=n.util.createBuffer();function s(){var e=n.prng.create(r);return e.getBytes=function(t,r){return e.generate(t,r)},e.getBytesSync=function(t){return e.generate(t)},e}r.formatKey=function(e){var t=n.util.createBuffer(e);return(e=new Array(4))[0]=t.getInt32(),e[1]=t.getInt32(),e[2]=t.getInt32(),e[3]=t.getInt32(),n.aes._expandKey(e,!1)},r.formatSeed=function(e){var t=n.util.createBuffer(e);return(e=new Array(4))[0]=t.getInt32(),e[1]=t.getInt32(),e[2]=t.getInt32(),e[3]=t.getInt32(),e},r.cipher=function(e,t){return n.aes._updateBlock(e,t,i,!1),a.putInt32(i[0]),a.putInt32(i[1]),a.putInt32(i[2]),a.putInt32(i[3]),a.getBytes()},r.increment=function(e){return++e[3],e},r.md=n.md.sha256;var o=s(),c=null,u=n.util.globalScope,l=u.crypto||u.msCrypto;if(l&&l.getRandomValues&&(c=function(e){return l.getRandomValues(e)}),n.options.usePureJavaScript||!n.util.isNodejs&&!c){if("undefined"==typeof window||window.document,o.collectInt(+new Date,32),"undefined"!=typeof navigator){var p="";for(var d in navigator)try{"string"==typeof navigator[d]&&(p+=navigator[d])}catch(e){}o.collect(p),p=null}t&&(t().mousemove((function(e){o.collectInt(e.clientX,16),o.collectInt(e.clientY,16)})),t().keypress((function(e){o.collectInt(e.charCode,8)})))}if(n.random)for(var d in o)n.random[d]=o[d];else n.random=o;n.random.createInstance=s,e.exports=n.random}("undefined"!=typeof jQuery?jQuery:null)},5124:(e,t,r)=>{var n=r(276);r(7619);var i=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],a=[1,2,3,5],s=function(e,t){return e<<t&65535|(65535&e)>>16-t},o=function(e,t){return(65535&e)>>t|e<<16-t&65535};e.exports=n.rc2=n.rc2||{},n.rc2.expandKey=function(e,t){"string"==typeof e&&(e=n.util.createBuffer(e)),t=t||128;var r,a=e,s=e.length(),o=t,c=Math.ceil(o/8),u=255>>(7&o);for(r=s;r<128;r++)a.putByte(i[a.at(r-1)+a.at(r-s)&255]);for(a.setAt(128-c,i[a.at(128-c)&u]),r=127-c;r>=0;r--)a.setAt(r,i[a.at(r+1)^a.at(r+c)]);return a};var c=function(e,t,r){var i,c,u,l,p=!1,d=null,f=null,h=null,m=[];for(e=n.rc2.expandKey(e,t),u=0;u<64;u++)m.push(e.getInt16Le());r?(i=function(e){for(u=0;u<4;u++)e[u]+=m[l]+(e[(u+3)%4]&e[(u+2)%4])+(~e[(u+3)%4]&e[(u+1)%4]),e[u]=s(e[u],a[u]),l++},c=function(e){for(u=0;u<4;u++)e[u]+=m[63&e[(u+3)%4]]}):(i=function(e){for(u=3;u>=0;u--)e[u]=o(e[u],a[u]),e[u]-=m[l]+(e[(u+3)%4]&e[(u+2)%4])+(~e[(u+3)%4]&e[(u+1)%4]),l--},c=function(e){for(u=3;u>=0;u--)e[u]-=m[63&e[(u+3)%4]]});var v=function(e){var t=[];for(u=0;u<4;u++){var n=d.getInt16Le();null!==h&&(r?n^=h.getInt16Le():h.putInt16Le(n)),t.push(65535&n)}l=r?0:63;for(var i=0;i<e.length;i++)for(var a=0;a<e[i][0];a++)e[i][1](t);for(u=0;u<4;u++)null!==h&&(r?h.putInt16Le(t[u]):t[u]^=h.getInt16Le()),f.putInt16Le(t[u])},g=null;return g={start:function(e,t){e&&"string"==typeof e&&(e=n.util.createBuffer(e)),p=!1,d=n.util.createBuffer(),f=t||new n.util.createBuffer,h=e,g.output=f},update:function(e){for(p||d.putBuffer(e);d.length()>=8;)v([[5,i],[1,c],[6,i],[1,c],[5,i]])},finish:function(e){var t=!0;if(r)if(e)t=e(8,d,!r);else{var n=8===d.length()?8:8-d.length();d.fillWithByte(n,n)}if(t&&(p=!0,g.update()),!r&&(t=0===d.length()))if(e)t=e(8,f,!r);else{var i=f.length(),a=f.at(i-1);a>i?t=!1:f.truncate(a)}return t}}};n.rc2.startEncrypting=function(e,t,r){var i=n.rc2.createEncryptionCipher(e,128);return i.start(t,r),i},n.rc2.createEncryptionCipher=function(e,t){return c(e,t,!0)},n.rc2.startDecrypting=function(e,t,r){var i=n.rc2.createDecryptionCipher(e,128);return i.start(t,r),i},n.rc2.createDecryptionCipher=function(e,t){return c(e,t,!1)}},5805:(e,t,r)=>{var n=r(276);if(r(2746),r(3736),r(6418),r(7501),r(268),r(9356),r(7619),void 0===i)var i=n.jsbn.BigInteger;var a=n.util.isNodejs?r(6982):null,s=n.asn1,o=n.util;n.pki=n.pki||{},e.exports=n.pki.rsa=n.rsa=n.rsa||{};var c=n.pki,u=[6,4,2,4,2,4,6,2],l={name:"PrivateKeyInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},p={name:"RSAPrivateKey",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},d={name:"RSAPublicKey",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},f=n.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:s.Class.UNIVERSAL,type:s.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},h={name:"DigestInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:s.Class.UNIVERSAL,type:s.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:s.Class.UNIVERSAL,type:s.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},m=function(e){var t;if(!(e.algorithm in c.oids)){var r=new Error("Unknown message digest algorithm.");throw r.algorithm=e.algorithm,r}t=c.oids[e.algorithm];var n=s.oidToDer(t).getBytes(),i=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,!0,[]),a=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,!0,[]);a.value.push(s.create(s.Class.UNIVERSAL,s.Type.OID,!1,n)),a.value.push(s.create(s.Class.UNIVERSAL,s.Type.NULL,!1,""));var o=s.create(s.Class.UNIVERSAL,s.Type.OCTETSTRING,!1,e.digest().getBytes());return i.value.push(a),i.value.push(o),s.toDer(i).getBytes()},v=function(e,t,r){if(r)return e.modPow(t.e,t.n);if(!t.p||!t.q)return e.modPow(t.d,t.n);var a;t.dP||(t.dP=t.d.mod(t.p.subtract(i.ONE))),t.dQ||(t.dQ=t.d.mod(t.q.subtract(i.ONE))),t.qInv||(t.qInv=t.q.modInverse(t.p));do{a=new i(n.util.bytesToHex(n.random.getBytes(t.n.bitLength()/8)),16)}while(a.compareTo(t.n)>=0||!a.gcd(t.n).equals(i.ONE));for(var s=(e=e.multiply(a.modPow(t.e,t.n)).mod(t.n)).mod(t.p).modPow(t.dP,t.p),o=e.mod(t.q).modPow(t.dQ,t.q);s.compareTo(o)<0;)s=s.add(t.p);var c=s.subtract(o).multiply(t.qInv).mod(t.p).multiply(t.q).add(o);return c=c.multiply(a.modInverse(t.n)).mod(t.n)};function g(e,t,r){var i=n.util.createBuffer(),a=Math.ceil(t.n.bitLength()/8);if(e.length>a-11){var s=new Error("Message is too long for PKCS#1 v1.5 padding.");throw s.length=e.length,s.max=a-11,s}i.putByte(0),i.putByte(r);var o,c=a-3-e.length;if(0===r||1===r){o=0===r?0:255;for(var u=0;u<c;++u)i.putByte(o)}else for(;c>0;){var l=0,p=n.random.getBytes(c);for(u=0;u<c;++u)0===(o=p.charCodeAt(u))?++l:i.putByte(o);c=l}return i.putByte(0),i.putBytes(e),i}function y(e,t,r,i){var a=Math.ceil(t.n.bitLength()/8),s=n.util.createBuffer(e),o=s.getByte(),c=s.getByte();if(0!==o||r&&0!==c&&1!==c||!r&&2!=c||r&&0===c&&void 0===i)throw new Error("Encryption block is invalid.");var u=0;if(0===c){u=a-3-i;for(var l=0;l<u;++l)if(0!==s.getByte())throw new Error("Encryption block is invalid.")}else if(1===c)for(u=0;s.length()>1;){if(255!==s.getByte()){--s.read;break}++u}else if(2===c)for(u=0;s.length()>1;){if(0===s.getByte()){--s.read;break}++u}if(0!==s.getByte()||u!==a-3-s.length())throw new Error("Encryption block is invalid.");return s.getBytes()}function E(e){var t=e.toString(16);t[0]>="8"&&(t="00"+t);var r=n.util.hexToBytes(t);return!(r.length>1)||(0!==r.charCodeAt(0)||128&r.charCodeAt(1))&&(255!==r.charCodeAt(0)||128&~r.charCodeAt(1))?r:r.substr(1)}function _(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function b(e){return n.util.isNodejs&&"function"==typeof a[e]}function x(e){return void 0!==o.globalScope&&"object"==typeof o.globalScope.crypto&&"object"==typeof o.globalScope.crypto.subtle&&"function"==typeof o.globalScope.crypto.subtle[e]}function C(e){return void 0!==o.globalScope&&"object"==typeof o.globalScope.msCrypto&&"object"==typeof o.globalScope.msCrypto.subtle&&"function"==typeof o.globalScope.msCrypto.subtle[e]}function w(e){for(var t=n.util.hexToBytes(e.toString(16)),r=new Uint8Array(t.length),i=0;i<t.length;++i)r[i]=t.charCodeAt(i);return r}c.rsa.encrypt=function(e,t,r){var a,s=r,o=Math.ceil(t.n.bitLength()/8);!1!==r&&!0!==r?(s=2===r,a=g(e,t,r)):(a=n.util.createBuffer()).putBytes(e);for(var c=new i(a.toHex(),16),u=v(c,t,s).toString(16),l=n.util.createBuffer(),p=o-Math.ceil(u.length/2);p>0;)l.putByte(0),--p;return l.putBytes(n.util.hexToBytes(u)),l.getBytes()},c.rsa.decrypt=function(e,t,r,a){var s=Math.ceil(t.n.bitLength()/8);if(e.length!==s){var o=new Error("Encrypted message length is invalid.");throw o.length=e.length,o.expected=s,o}var c=new i(n.util.createBuffer(e).toHex(),16);if(c.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.");for(var u=v(c,t,r).toString(16),l=n.util.createBuffer(),p=s-Math.ceil(u.length/2);p>0;)l.putByte(0),--p;return l.putBytes(n.util.hexToBytes(u)),!1!==a?y(l.getBytes(),t,r):l.getBytes()},c.rsa.createKeyPairGenerationState=function(e,t,r){"string"==typeof e&&(e=parseInt(e,10)),e=e||2048;var a,s=(r=r||{}).prng||n.random,o={nextBytes:function(e){for(var t=s.getBytesSync(e.length),r=0;r<e.length;++r)e[r]=t.charCodeAt(r)}},c=r.algorithm||"PRIMEINC";if("PRIMEINC"!==c)throw new Error("Invalid key generation algorithm: "+c);return(a={algorithm:c,state:0,bits:e,rng:o,eInt:t||65537,e:new i(null),p:null,q:null,qBits:e>>1,pBits:e-(e>>1),pqState:0,num:null,keys:null}).e.fromInt(a.eInt),a},c.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC");var r=new i(null);r.fromInt(30);for(var n,a=0,s=function(e,t){return e|t},o=+new Date,l=0;null===e.keys&&(t<=0||l<t);){if(0===e.state){var p=null===e.p?e.pBits:e.qBits,d=p-1;0===e.pqState?(e.num=new i(p,e.rng),e.num.testBit(d)||e.num.bitwiseTo(i.ONE.shiftLeft(d),s,e.num),e.num.dAddOffset(31-e.num.mod(r).byteValue(),0),a=0,++e.pqState):1===e.pqState?e.num.bitLength()>p?e.pqState=0:e.num.isProbablePrime(_(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(u[a++%8],0):2===e.pqState?e.pqState=0===e.num.subtract(i.ONE).gcd(e.e).compareTo(i.ONE)?3:0:3===e.pqState&&(e.pqState=0,null===e.p?e.p=e.num:e.q=e.num,null!==e.p&&null!==e.q&&++e.state,e.num=null)}else if(1===e.state)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state;else if(2===e.state)e.p1=e.p.subtract(i.ONE),e.q1=e.q.subtract(i.ONE),e.phi=e.p1.multiply(e.q1),++e.state;else if(3===e.state)0===e.phi.gcd(e.e).compareTo(i.ONE)?++e.state:(e.p=null,e.q=null,e.state=0);else if(4===e.state)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0);else if(5===e.state){var f=e.e.modInverse(e.phi);e.keys={privateKey:c.rsa.setPrivateKey(e.n,e.e,f,e.p,e.q,f.mod(e.p1),f.mod(e.q1),e.q.modInverse(e.p)),publicKey:c.rsa.setPublicKey(e.n,e.e)}}l+=(n=+new Date)-o,o=n}return null!==e.keys},c.rsa.generateKeyPair=function(e,t,r,u){if(1===arguments.length?"object"==typeof e?(r=e,e=void 0):"function"==typeof e&&(u=e,e=void 0):2===arguments.length?"number"==typeof e?"function"==typeof t?(u=t,t=void 0):"number"!=typeof t&&(r=t,t=void 0):(r=e,u=t,e=void 0,t=void 0):3===arguments.length&&("number"==typeof t?"function"==typeof r&&(u=r,r=void 0):(u=r,r=t,t=void 0)),r=r||{},void 0===e&&(e=r.bits||2048),void 0===t&&(t=r.e||65537),!n.options.usePureJavaScript&&!r.prng&&e>=256&&e<=16384&&(65537===t||3===t))if(u){if(b("generateKeyPair"))return a.generateKeyPair("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},(function(e,t,r){if(e)return u(e);u(null,{privateKey:c.privateKeyFromPem(r),publicKey:c.publicKeyFromPem(t)})}));if(x("generateKey")&&x("exportKey"))return o.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:w(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then((function(e){return o.globalScope.crypto.subtle.exportKey("pkcs8",e.privateKey)})).then(void 0,(function(e){u(e)})).then((function(e){if(e){var t=c.privateKeyFromAsn1(s.fromDer(n.util.createBuffer(e)));u(null,{privateKey:t,publicKey:c.setRsaPublicKey(t.n,t.e)})}}));if(C("generateKey")&&C("exportKey")){var l=o.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:w(t),hash:{name:"SHA-256"}},!0,["sign","verify"]);return l.oncomplete=function(e){var t=e.target.result,r=o.globalScope.msCrypto.subtle.exportKey("pkcs8",t.privateKey);r.oncomplete=function(e){var t=e.target.result,r=c.privateKeyFromAsn1(s.fromDer(n.util.createBuffer(t)));u(null,{privateKey:r,publicKey:c.setRsaPublicKey(r.n,r.e)})},r.onerror=function(e){u(e)}},void(l.onerror=function(e){u(e)})}}else if(b("generateKeyPairSync")){var p=a.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:c.privateKeyFromPem(p.privateKey),publicKey:c.publicKeyFromPem(p.publicKey)}}var d=c.rsa.createKeyPairGenerationState(e,t,r);if(!u)return c.rsa.stepKeyPairGenerationState(d,0),d.keys;!function(e,t,r){"function"==typeof t&&(r=t,t={});t=t||{};var a={algorithm:{name:t.algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}};"prng"in t&&(a.prng=t.prng);function s(){o(e.pBits,(function(t,n){return t?r(t):(e.p=n,null!==e.q?u(t,e.q):void o(e.qBits,u))}))}function o(e,t){n.prime.generateProbablePrime(e,a,t)}function u(t,n){if(t)return r(t);if(e.q=n,e.p.compareTo(e.q)<0){var a=e.p;e.p=e.q,e.q=a}if(0!==e.p.subtract(i.ONE).gcd(e.e).compareTo(i.ONE))return e.p=null,void s();if(0!==e.q.subtract(i.ONE).gcd(e.e).compareTo(i.ONE))return e.q=null,void o(e.qBits,u);if(e.p1=e.p.subtract(i.ONE),e.q1=e.q.subtract(i.ONE),e.phi=e.p1.multiply(e.q1),0!==e.phi.gcd(e.e).compareTo(i.ONE))return e.p=e.q=null,void s();if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits)return e.q=null,void o(e.qBits,u);var l=e.e.modInverse(e.phi);e.keys={privateKey:c.rsa.setPrivateKey(e.n,e.e,l,e.p,e.q,l.mod(e.p1),l.mod(e.q1),e.q.modInverse(e.p)),publicKey:c.rsa.setPublicKey(e.n,e.e)},r(null,e.keys)}s()}(d,r,u)},c.setRsaPublicKey=c.rsa.setPublicKey=function(e,t){var r={n:e,e:t,encrypt:function(e,t,i){if("string"==typeof t?t=t.toUpperCase():void 0===t&&(t="RSAES-PKCS1-V1_5"),"RSAES-PKCS1-V1_5"===t)t={encode:function(e,t,r){return g(e,t,2).getBytes()}};else if("RSA-OAEP"===t||"RSAES-OAEP"===t)t={encode:function(e,t){return n.pkcs1.encode_rsa_oaep(t,e,i)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(t))t={encode:function(e){return e}};else if("string"==typeof t)throw new Error('Unsupported encryption scheme: "'+t+'".');var a=t.encode(e,r,!0);return c.rsa.encrypt(a,r,!0)},verify:function(e,t,i,a){"string"==typeof i?i=i.toUpperCase():void 0===i&&(i="RSASSA-PKCS1-V1_5"),void 0===a&&(a={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in a||(a._parseAllDigestBytes=!0),"RSASSA-PKCS1-V1_5"===i?i={verify:function(e,t){t=y(t,r,!0);var i=s.fromDer(t,{parseAllBytes:a._parseAllDigestBytes}),o={},c=[];if(!s.validate(i,h,o,c))throw(u=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.")).errors=c,u;var u,l=s.derToOid(o.algorithmIdentifier);if(l!==n.oids.md2&&l!==n.oids.md5&&l!==n.oids.sha1&&l!==n.oids.sha224&&l!==n.oids.sha256&&l!==n.oids.sha384&&l!==n.oids.sha512&&l!==n.oids["sha512-224"]&&l!==n.oids["sha512-256"])throw(u=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.")).oid=l,u;if((l===n.oids.md2||l===n.oids.md5)&&!("parameters"in o))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters.");return e===o.digest}}:"NONE"!==i&&"NULL"!==i&&null!==i||(i={verify:function(e,t){return e===(t=y(t,r,!0))}});var o=c.rsa.decrypt(t,r,!0,!1);return i.verify(e,o,r.n.bitLength())}};return r},c.setRsaPrivateKey=c.rsa.setPrivateKey=function(e,t,r,i,a,s,o,u){var l={n:e,e:t,d:r,p:i,q:a,dP:s,dQ:o,qInv:u,decrypt:function(e,t,r){"string"==typeof t?t=t.toUpperCase():void 0===t&&(t="RSAES-PKCS1-V1_5");var i=c.rsa.decrypt(e,l,!1,!1);if("RSAES-PKCS1-V1_5"===t)t={decode:y};else if("RSA-OAEP"===t||"RSAES-OAEP"===t)t={decode:function(e,t){return n.pkcs1.decode_rsa_oaep(t,e,r)}};else{if(-1===["RAW","NONE","NULL",null].indexOf(t))throw new Error('Unsupported encryption scheme: "'+t+'".');t={decode:function(e){return e}}}return t.decode(i,l,!1)},sign:function(e,t){var r=!1;"string"==typeof t&&(t=t.toUpperCase()),void 0===t||"RSASSA-PKCS1-V1_5"===t?(t={encode:m},r=1):"NONE"!==t&&"NULL"!==t&&null!==t||(t={encode:function(){return e}},r=1);var n=t.encode(e,l.n.bitLength());return c.rsa.encrypt(n,l,r)}};return l},c.wrapRsaPrivateKey=function(e){return s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,!0,[s.create(s.Class.UNIVERSAL,s.Type.INTEGER,!1,s.integerToDer(0).getBytes()),s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,!0,[s.create(s.Class.UNIVERSAL,s.Type.OID,!1,s.oidToDer(c.oids.rsaEncryption).getBytes()),s.create(s.Class.UNIVERSAL,s.Type.NULL,!1,"")]),s.create(s.Class.UNIVERSAL,s.Type.OCTETSTRING,!1,s.toDer(e).getBytes())])},c.privateKeyFromAsn1=function(e){var t,r,a,o,u,d,f,h,m={},v=[];if(s.validate(e,l,m,v)&&(e=s.fromDer(n.util.createBuffer(m.privateKey))),m={},v=[],!s.validate(e,p,m,v)){var g=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw g.errors=v,g}return t=n.util.createBuffer(m.privateKeyModulus).toHex(),r=n.util.createBuffer(m.privateKeyPublicExponent).toHex(),a=n.util.createBuffer(m.privateKeyPrivateExponent).toHex(),o=n.util.createBuffer(m.privateKeyPrime1).toHex(),u=n.util.createBuffer(m.privateKeyPrime2).toHex(),d=n.util.createBuffer(m.privateKeyExponent1).toHex(),f=n.util.createBuffer(m.privateKeyExponent2).toHex(),h=n.util.createBuffer(m.privateKeyCoefficient).toHex(),c.setRsaPrivateKey(new i(t,16),new i(r,16),new i(a,16),new i(o,16),new i(u,16),new i(d,16),new i(f,16),new i(h,16))},c.privateKeyToAsn1=c.privateKeyToRSAPrivateKey=function(e){return s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,!0,[s.create(s.Class.UNIVERSAL,s.Type.INTEGER,!1,s.integerToDer(0).getBytes()),s.create(s.Class.UNIVERSAL,s.Type.INTEGER,!1,E(e.n)),s.create(s.Class.UNIVERSAL,s.Type.INTEGER,!1,E(e.e)),s.create(s.Class.UNIVERSAL,s.Type.INTEGER,!1,E(e.d)),s.create(s.Class.UNIVERSAL,s.Type.INTEGER,!1,E(e.p)),s.create(s.Class.UNIVERSAL,s.Type.INTEGER,!1,E(e.q)),s.create(s.Class.UNIVERSAL,s.Type.INTEGER,!1,E(e.dP)),s.create(s.Class.UNIVERSAL,s.Type.INTEGER,!1,E(e.dQ)),s.create(s.Class.UNIVERSAL,s.Type.INTEGER,!1,E(e.qInv))])},c.publicKeyFromAsn1=function(e){var t={},r=[];if(s.validate(e,f,t,r)){var a,o=s.derToOid(t.publicKeyOid);if(o!==c.oids.rsaEncryption)throw(a=new Error("Cannot read public key. Unknown OID.")).oid=o,a;e=t.rsaPublicKey}if(r=[],!s.validate(e,d,t,r))throw(a=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.")).errors=r,a;var u=n.util.createBuffer(t.publicKeyModulus).toHex(),l=n.util.createBuffer(t.publicKeyExponent).toHex();return c.setRsaPublicKey(new i(u,16),new i(l,16))},c.publicKeyToAsn1=c.publicKeyToSubjectPublicKeyInfo=function(e){return s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,!0,[s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,!0,[s.create(s.Class.UNIVERSAL,s.Type.OID,!1,s.oidToDer(c.oids.rsaEncryption).getBytes()),s.create(s.Class.UNIVERSAL,s.Type.NULL,!1,"")]),s.create(s.Class.UNIVERSAL,s.Type.BITSTRING,!1,[c.publicKeyToRSAPublicKey(e)])])},c.publicKeyToRSAPublicKey=function(e){return s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,!0,[s.create(s.Class.UNIVERSAL,s.Type.INTEGER,!1,E(e.n)),s.create(s.Class.UNIVERSAL,s.Type.INTEGER,!1,E(e.e))])}},1598:(e,t,r)=>{var n=r(276);r(8106),r(7619);var i=e.exports=n.sha1=n.sha1||{};n.md.sha1=n.md.algorithms.sha1=i,i.create=function(){s||(a=String.fromCharCode(128),a+=n.util.fillString(String.fromCharCode(0),64),s=!0);var e=null,t=n.util.createBuffer(),r=new Array(80),i={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){i.messageLength=0,i.fullMessageLength=i.messageLength64=[];for(var r=i.messageLengthSize/4,a=0;a<r;++a)i.fullMessageLength.push(0);return t=n.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},i}};return i.start(),i.update=function(a,s){"utf8"===s&&(a=n.util.encodeUtf8(a));var c=a.length;i.messageLength+=c,c=[c/4294967296>>>0,c>>>0];for(var u=i.fullMessageLength.length-1;u>=0;--u)i.fullMessageLength[u]+=c[1],c[1]=c[0]+(i.fullMessageLength[u]/4294967296>>>0),i.fullMessageLength[u]=i.fullMessageLength[u]>>>0,c[0]=c[1]/4294967296>>>0;return t.putBytes(a),o(e,r,t),(t.read>2048||0===t.length())&&t.compact(),i},i.digest=function(){var s=n.util.createBuffer();s.putBytes(t.bytes());var c,u=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize&i.blockLength-1;s.putBytes(a.substr(0,i.blockLength-u));for(var l=8*i.fullMessageLength[0],p=0;p<i.fullMessageLength.length-1;++p)l+=(c=8*i.fullMessageLength[p+1])/4294967296>>>0,s.putInt32(l>>>0),l=c>>>0;s.putInt32(l);var d={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};o(d,r,s);var f=n.util.createBuffer();return f.putInt32(d.h0),f.putInt32(d.h1),f.putInt32(d.h2),f.putInt32(d.h3),f.putInt32(d.h4),f},i};var a=null,s=!1;function o(e,t,r){for(var n,i,a,s,o,c,u,l=r.length();l>=64;){for(i=e.h0,a=e.h1,s=e.h2,o=e.h3,c=e.h4,u=0;u<16;++u)n=r.getInt32(),t[u]=n,n=(i<<5|i>>>27)+(o^a&(s^o))+c+1518500249+n,c=o,o=s,s=(a<<30|a>>>2)>>>0,a=i,i=n;for(;u<20;++u)n=(n=t[u-3]^t[u-8]^t[u-14]^t[u-16])<<1|n>>>31,t[u]=n,n=(i<<5|i>>>27)+(o^a&(s^o))+c+1518500249+n,c=o,o=s,s=(a<<30|a>>>2)>>>0,a=i,i=n;for(;u<32;++u)n=(n=t[u-3]^t[u-8]^t[u-14]^t[u-16])<<1|n>>>31,t[u]=n,n=(i<<5|i>>>27)+(a^s^o)+c+1859775393+n,c=o,o=s,s=(a<<30|a>>>2)>>>0,a=i,i=n;for(;u<40;++u)n=(n=t[u-6]^t[u-16]^t[u-28]^t[u-32])<<2|n>>>30,t[u]=n,n=(i<<5|i>>>27)+(a^s^o)+c+1859775393+n,c=o,o=s,s=(a<<30|a>>>2)>>>0,a=i,i=n;for(;u<60;++u)n=(n=t[u-6]^t[u-16]^t[u-28]^t[u-32])<<2|n>>>30,t[u]=n,n=(i<<5|i>>>27)+(a&s|o&(a^s))+c+2400959708+n,c=o,o=s,s=(a<<30|a>>>2)>>>0,a=i,i=n;for(;u<80;++u)n=(n=t[u-6]^t[u-16]^t[u-28]^t[u-32])<<2|n>>>30,t[u]=n,n=(i<<5|i>>>27)+(a^s^o)+c+3395469782+n,c=o,o=s,s=(a<<30|a>>>2)>>>0,a=i,i=n;e.h0=e.h0+i|0,e.h1=e.h1+a|0,e.h2=e.h2+s|0,e.h3=e.h3+o|0,e.h4=e.h4+c|0,l-=64}}},172:(e,t,r)=>{var n=r(276);r(8106),r(7619);var i=e.exports=n.sha256=n.sha256||{};n.md.sha256=n.md.algorithms.sha256=i,i.create=function(){s||(a=String.fromCharCode(128),a+=n.util.fillString(String.fromCharCode(0),64),o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=!0);var e=null,t=n.util.createBuffer(),r=new Array(64),i={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){i.messageLength=0,i.fullMessageLength=i.messageLength64=[];for(var r=i.messageLengthSize/4,a=0;a<r;++a)i.fullMessageLength.push(0);return t=n.util.createBuffer(),e={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},i}};return i.start(),i.update=function(a,s){"utf8"===s&&(a=n.util.encodeUtf8(a));var o=a.length;i.messageLength+=o,o=[o/4294967296>>>0,o>>>0];for(var u=i.fullMessageLength.length-1;u>=0;--u)i.fullMessageLength[u]+=o[1],o[1]=o[0]+(i.fullMessageLength[u]/4294967296>>>0),i.fullMessageLength[u]=i.fullMessageLength[u]>>>0,o[0]=o[1]/4294967296>>>0;return t.putBytes(a),c(e,r,t),(t.read>2048||0===t.length())&&t.compact(),i},i.digest=function(){var s=n.util.createBuffer();s.putBytes(t.bytes());var o,u=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize&i.blockLength-1;s.putBytes(a.substr(0,i.blockLength-u));for(var l=8*i.fullMessageLength[0],p=0;p<i.fullMessageLength.length-1;++p)l+=(o=8*i.fullMessageLength[p+1])/4294967296>>>0,s.putInt32(l>>>0),l=o>>>0;s.putInt32(l);var d={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};c(d,r,s);var f=n.util.createBuffer();return f.putInt32(d.h0),f.putInt32(d.h1),f.putInt32(d.h2),f.putInt32(d.h3),f.putInt32(d.h4),f.putInt32(d.h5),f.putInt32(d.h6),f.putInt32(d.h7),f},i};var a=null,s=!1,o=null;function c(e,t,r){for(var n,i,a,s,c,u,l,p,d,f,h,m,v,g=r.length();g>=64;){for(c=0;c<16;++c)t[c]=r.getInt32();for(;c<64;++c)n=((n=t[c-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,i=((i=t[c-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,t[c]=n+t[c-7]+i+t[c-16]|0;for(u=e.h0,l=e.h1,p=e.h2,d=e.h3,f=e.h4,h=e.h5,m=e.h6,v=e.h7,c=0;c<64;++c)a=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),s=u&l|p&(u^l),n=v+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(m^f&(h^m))+o[c]+t[c],v=m,m=h,h=f,f=d+n>>>0,d=p,p=l,l=u,u=n+(i=a+s)>>>0;e.h0=e.h0+u|0,e.h1=e.h1+l|0,e.h2=e.h2+p|0,e.h3=e.h3+d|0,e.h4=e.h4+f|0,e.h5=e.h5+h|0,e.h6=e.h6+m|0,e.h7=e.h7+v|0,g-=64}}},4694:(e,t,r)=>{var n=r(276);r(8106),r(7619);var i=e.exports=n.sha512=n.sha512||{};n.md.sha512=n.md.algorithms.sha512=i;var a=n.sha384=n.sha512.sha384=n.sha512.sha384||{};a.create=function(){return i.create("SHA-384")},n.md.sha384=n.md.algorithms.sha384=a,n.sha512.sha256=n.sha512.sha256||{create:function(){return i.create("SHA-512/256")}},n.md["sha512/256"]=n.md.algorithms["sha512/256"]=n.sha512.sha256,n.sha512.sha224=n.sha512.sha224||{create:function(){return i.create("SHA-512/224")}},n.md["sha512/224"]=n.md.algorithms["sha512/224"]=n.sha512.sha224,i.create=function(e){if(o||(s=String.fromCharCode(128),s+=n.util.fillString(String.fromCharCode(0),128),c=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458],[4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823],[1695183700,2343527390],[1986661051,1014477480],[2177026350,1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815,1125592928],[2227730452,2716904306],[2361852424,442776044],[2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468],[1816402316,1246189591]],(u={})["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],u["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],u["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],u["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],o=!0),void 0===e&&(e="SHA-512"),!(e in u))throw new Error("Invalid SHA-512 algorithm: "+e);for(var t=u[e],r=null,i=n.util.createBuffer(),a=new Array(80),p=0;p<80;++p)a[p]=new Array(2);var d=64;switch(e){case"SHA-384":d=48;break;case"SHA-512/256":d=32;break;case"SHA-512/224":d=28}var f={algorithm:e.replace("-","").toLowerCase(),blockLength:128,digestLength:d,messageLength:0,fullMessageLength:null,messageLengthSize:16,start:function(){f.messageLength=0,f.fullMessageLength=f.messageLength128=[];for(var e=f.messageLengthSize/4,a=0;a<e;++a)f.fullMessageLength.push(0);i=n.util.createBuffer(),r=new Array(t.length);for(a=0;a<t.length;++a)r[a]=t[a].slice(0);return f}};return f.start(),f.update=function(e,t){"utf8"===t&&(e=n.util.encodeUtf8(e));var s=e.length;f.messageLength+=s,s=[s/4294967296>>>0,s>>>0];for(var o=f.fullMessageLength.length-1;o>=0;--o)f.fullMessageLength[o]+=s[1],s[1]=s[0]+(f.fullMessageLength[o]/4294967296>>>0),f.fullMessageLength[o]=f.fullMessageLength[o]>>>0,s[0]=s[1]/4294967296>>>0;return i.putBytes(e),l(r,a,i),(i.read>2048||0===i.length())&&i.compact(),f},f.digest=function(){var t=n.util.createBuffer();t.putBytes(i.bytes());var o,c=f.fullMessageLength[f.fullMessageLength.length-1]+f.messageLengthSize&f.blockLength-1;t.putBytes(s.substr(0,f.blockLength-c));for(var u=8*f.fullMessageLength[0],p=0;p<f.fullMessageLength.length-1;++p)u+=(o=8*f.fullMessageLength[p+1])/4294967296>>>0,t.putInt32(u>>>0),u=o>>>0;t.putInt32(u);var d=new Array(r.length);for(p=0;p<r.length;++p)d[p]=r[p].slice(0);l(d,a,t);var h,m=n.util.createBuffer();h="SHA-512"===e?d.length:"SHA-384"===e?d.length-2:d.length-4;for(p=0;p<h;++p)m.putInt32(d[p][0]),p===h-1&&"SHA-512/224"===e||m.putInt32(d[p][1]);return m},f};var s=null,o=!1,c=null,u=null;function l(e,t,r){for(var n,i,a,s,o,u,l,p,d,f,h,m,v,g,y,E,_,b,x,C,w,S,T,A,O,I,D,N,k,B,L,R,P,j=r.length();j>=128;){for(D=0;D<16;++D)t[D][0]=r.getInt32()>>>0,t[D][1]=r.getInt32()>>>0;for(;D<80;++D)n=(((N=(B=t[D-2])[0])>>>19|(k=B[1])<<13)^(k>>>29|N<<3)^N>>>6)>>>0,i=((N<<13|k>>>19)^(k<<3|N>>>29)^(N<<26|k>>>6))>>>0,a=(((N=(R=t[D-15])[0])>>>1|(k=R[1])<<31)^(N>>>8|k<<24)^N>>>7)>>>0,s=((N<<31|k>>>1)^(N<<24|k>>>8)^(N<<25|k>>>7))>>>0,L=t[D-7],P=t[D-16],k=i+L[1]+s+P[1],t[D][0]=n+L[0]+a+P[0]+(k/4294967296>>>0)>>>0,t[D][1]=k>>>0;for(h=e[0][0],m=e[0][1],v=e[1][0],g=e[1][1],y=e[2][0],E=e[2][1],_=e[3][0],b=e[3][1],x=e[4][0],C=e[4][1],w=e[5][0],S=e[5][1],T=e[6][0],A=e[6][1],O=e[7][0],I=e[7][1],D=0;D<80;++D)l=((x>>>14|C<<18)^(x>>>18|C<<14)^(C>>>9|x<<23))>>>0,p=(T^x&(w^T))>>>0,o=((h>>>28|m<<4)^(m>>>2|h<<30)^(m>>>7|h<<25))>>>0,u=((h<<4|m>>>28)^(m<<30|h>>>2)^(m<<25|h>>>7))>>>0,d=(h&v|y&(h^v))>>>0,f=(m&g|E&(m^g))>>>0,k=I+(((x<<18|C>>>14)^(x<<14|C>>>18)^(C<<23|x>>>9))>>>0)+((A^C&(S^A))>>>0)+c[D][1]+t[D][1],n=O+l+p+c[D][0]+t[D][0]+(k/4294967296>>>0)>>>0,i=k>>>0,a=o+d+((k=u+f)/4294967296>>>0)>>>0,s=k>>>0,O=T,I=A,T=w,A=S,w=x,S=C,x=_+n+((k=b+i)/4294967296>>>0)>>>0,C=k>>>0,_=y,b=E,y=v,E=g,v=h,g=m,h=n+a+((k=i+s)/4294967296>>>0)>>>0,m=k>>>0;k=e[0][1]+m,e[0][0]=e[0][0]+h+(k/4294967296>>>0)>>>0,e[0][1]=k>>>0,k=e[1][1]+g,e[1][0]=e[1][0]+v+(k/4294967296>>>0)>>>0,e[1][1]=k>>>0,k=e[2][1]+E,e[2][0]=e[2][0]+y+(k/4294967296>>>0)>>>0,e[2][1]=k>>>0,k=e[3][1]+b,e[3][0]=e[3][0]+_+(k/4294967296>>>0)>>>0,e[3][1]=k>>>0,k=e[4][1]+C,e[4][0]=e[4][0]+x+(k/4294967296>>>0)>>>0,e[4][1]=k>>>0,k=e[5][1]+S,e[5][0]=e[5][0]+w+(k/4294967296>>>0)>>>0,e[5][1]=k>>>0,k=e[6][1]+A,e[6][0]=e[6][0]+T+(k/4294967296>>>0)>>>0,e[6][1]=k>>>0,k=e[7][1]+I,e[7][0]=e[7][0]+O+(k/4294967296>>>0)>>>0,e[7][1]=k>>>0,j-=128}}},149:(e,t,r)=>{var n=r(276);r(9504),r(1696),r(1267),r(1598),r(7619);var i=e.exports=n.ssh=n.ssh||{};function a(e,t){var r=t.toString(16);r[0]>="8"&&(r="00"+r);var i=n.util.hexToBytes(r);e.putInt32(i.length),e.putBytes(i)}function s(e,t){e.putInt32(t.length),e.putString(t)}function o(){for(var e=n.md.sha1.create(),t=arguments.length,r=0;r<t;++r)e.update(arguments[r]);return e.digest()}i.privateKeyToPutty=function(e,t,r){var i="ssh-rsa",c=""===(t=t||"")?"none":"aes256-cbc",u="PuTTY-User-Key-File-2: "+i+"\r\n";u+="Encryption: "+c+"\r\n",u+="Comment: "+(r=r||"")+"\r\n";var l=n.util.createBuffer();s(l,i),a(l,e.e),a(l,e.n);var p=n.util.encode64(l.bytes(),64),d=Math.floor(p.length/66)+1;u+="Public-Lines: "+d+"\r\n",u+=p;var f,h=n.util.createBuffer();if(a(h,e.d),a(h,e.p),a(h,e.q),a(h,e.qInv),t){var m=h.length()+16-1;m-=m%16;var v=o(h.bytes());v.truncate(v.length()-m+h.length()),h.putBuffer(v);var g=n.util.createBuffer();g.putBuffer(o("\0\0\0\0",t)),g.putBuffer(o("\0\0\0",t));var y=n.aes.createEncryptionCipher(g.truncate(8),"CBC");y.start(n.util.createBuffer().fillWithByte(0,16)),y.update(h.copy()),y.finish();var E=y.output;E.truncate(16),f=n.util.encode64(E.bytes(),64)}else f=n.util.encode64(h.bytes(),64);u+="\r\nPrivate-Lines: "+(d=Math.floor(f.length/66)+1)+"\r\n",u+=f;var _=o("putty-private-key-file-mac-key",t),b=n.util.createBuffer();s(b,i),s(b,c),s(b,r),b.putInt32(l.length()),b.putBuffer(l),b.putInt32(h.length()),b.putBuffer(h);var x=n.hmac.create();return x.start("sha1",_),x.update(b.bytes()),u+="\r\nPrivate-MAC: "+x.digest().toHex()+"\r\n"},i.publicKeyToOpenSSH=function(e,t){var r="ssh-rsa";t=t||"";var i=n.util.createBuffer();return s(i,r),a(i,e.e),a(i,e.n),r+" "+n.util.encode64(i.bytes())+" "+t},i.privateKeyToOpenSSH=function(e,t){return t?n.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):n.pki.privateKeyToPem(e)},i.getPublicKeyFingerprint=function(e,t){var r=(t=t||{}).md||n.md.md5.create(),i=n.util.createBuffer();s(i,"ssh-rsa"),a(i,e.e),a(i,e.n),r.start(),r.update(i.getBytes());var o=r.digest();if("hex"===t.encoding){var c=o.toHex();return t.delimiter?c.match(/.{2}/g).join(t.delimiter):c}if("binary"===t.encoding)return o.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".');return o}},3986:(e,t,r)=>{var n=r(276);r(2746),r(1696),r(1267),r(2385),r(9255),r(9356),r(1598),r(7619);var i=function(e,t,r,i){var a=n.util.createBuffer(),s=e.length>>1,o=s+(1&e.length),c=e.substr(0,o),u=e.substr(s,o),l=n.util.createBuffer(),p=n.hmac.create();r=t+r;var d=Math.ceil(i/16),f=Math.ceil(i/20);p.start("MD5",c);var h=n.util.createBuffer();l.putBytes(r);for(var m=0;m<d;++m)p.start(null,null),p.update(l.getBytes()),l.putBuffer(p.digest()),p.start(null,null),p.update(l.bytes()+r),h.putBuffer(p.digest());p.start("SHA1",u);var v=n.util.createBuffer();l.clear(),l.putBytes(r);for(m=0;m<f;++m)p.start(null,null),p.update(l.getBytes()),l.putBuffer(p.digest()),p.start(null,null),p.update(l.bytes()+r),v.putBuffer(p.digest());return a.putBytes(n.util.xorBytes(h.getBytes(),v.getBytes(),i)),a},a=function(e,t,r){var i=!1;try{var a=e.deflate(t.fragment.getBytes());t.fragment=n.util.createBuffer(a),t.length=a.length,i=!0}catch(e){}return i},s=function(e,t,r){var i=!1;try{var a=e.inflate(t.fragment.getBytes());t.fragment=n.util.createBuffer(a),t.length=a.length,i=!0}catch(e){}return i},o=function(e,t){var r=0;switch(t){case 1:r=e.getByte();break;case 2:r=e.getInt16();break;case 3:r=e.getInt24();break;case 4:r=e.getInt32()}return n.util.createBuffer(e.getBytes(r))},c=function(e,t,r){e.putInt(r.length(),t<<3),e.putBuffer(r)},u={Versions:{TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}}};u.SupportedVersions=[u.Versions.TLS_1_1,u.Versions.TLS_1_0],u.Version=u.SupportedVersions[0],u.MaxFragment=15360,u.ConnectionEnd={server:0,client:1},u.PRFAlgorithm={tls_prf_sha256:0},u.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2},u.CipherType={stream:0,block:1,aead:2},u.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4},u.CompressionMethod={none:0,deflate:1},u.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24},u.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20},u.Alert={},u.Alert.Level={warning:1,fatal:2},u.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100},u.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2},u.CipherSuites={},u.getCipherSuite=function(e){var t=null;for(var r in u.CipherSuites){var n=u.CipherSuites[r];if(n.id[0]===e.charCodeAt(0)&&n.id[1]===e.charCodeAt(1)){t=n;break}}return t},u.handleUnexpected=function(e,t){!e.open&&e.entity===u.ConnectionEnd.client||e.error(e,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.unexpected_message}})},u.handleHelloRequest=function(e,t,r){!e.handshaking&&e.handshakes>0&&(u.queue(e,u.createAlert(e,{level:u.Alert.Level.warning,description:u.Alert.Description.no_renegotiation})),u.flush(e)),e.process()},u.parseHelloMessage=function(e,t,r){var i=null,a=e.entity===u.ConnectionEnd.client;if(r<38)e.error(e,{message:a?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.illegal_parameter}});else{var s=t.fragment,c=s.length();if(i={version:{major:s.getByte(),minor:s.getByte()},random:n.util.createBuffer(s.getBytes(32)),session_id:o(s,1),extensions:[]},a?(i.cipher_suite=s.getBytes(2),i.compression_method=s.getByte()):(i.cipher_suites=o(s,2),i.compression_methods=o(s,1)),(c=r-(c-s.length()))>0){for(var l=o(s,2);l.length()>0;)i.extensions.push({type:[l.getByte(),l.getByte()],data:o(l,2)});if(!a)for(var p=0;p<i.extensions.length;++p){var d=i.extensions[p];if(0===d.type[0]&&0===d.type[1])for(var f=o(d.data,2);f.length()>0;){if(0!==f.getByte())break;e.session.extensions.server_name.serverNameList.push(o(f,2).getBytes())}}}if(e.session.version&&(i.version.major!==e.session.version.major||i.version.minor!==e.session.version.minor))return e.error(e,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.protocol_version}});if(a)e.session.cipherSuite=u.getCipherSuite(i.cipher_suite);else for(var h=n.util.createBuffer(i.cipher_suites.bytes());h.length()>0&&(e.session.cipherSuite=u.getCipherSuite(h.getBytes(2)),null===e.session.cipherSuite););if(null===e.session.cipherSuite)return e.error(e,{message:"No cipher suites in common.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.handshake_failure},cipherSuite:n.util.bytesToHex(i.cipher_suite)});e.session.compressionMethod=a?i.compression_method:u.CompressionMethod.none}return i},u.createSecurityParameters=function(e,t){var r=e.entity===u.ConnectionEnd.client,n=t.random.bytes(),i=r?e.session.sp.client_random:n,a=r?n:u.createRandom().getBytes();e.session.sp={entity:e.entity,prf_algorithm:u.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:i,server_random:a}},u.handleServerHello=function(e,t,r){var n=u.parseHelloMessage(e,t,r);if(!e.fail){if(!(n.version.minor<=e.version.minor))return e.error(e,{message:"Incompatible TLS version.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.protocol_version}});e.version.minor=n.version.minor,e.session.version=e.version;var i=n.session_id.bytes();i.length>0&&i===e.session.id?(e.expect=h,e.session.resuming=!0,e.session.sp.server_random=n.random.bytes()):(e.expect=l,e.session.resuming=!1,u.createSecurityParameters(e,n)),e.session.id=i,e.process()}},u.handleClientHello=function(e,t,r){var i=u.parseHelloMessage(e,t,r);if(!e.fail){var a=i.session_id.bytes(),s=null;if(e.sessionCache&&(null===(s=e.sessionCache.getSession(a))?a="":(s.version.major!==i.version.major||s.version.minor>i.version.minor)&&(s=null,a="")),0===a.length&&(a=n.random.getBytes(32)),e.session.id=a,e.session.clientHelloVersion=i.version,e.session.sp={},s)e.version=e.session.version=s.version,e.session.sp=s.sp;else{for(var o,c=1;c<u.SupportedVersions.length&&!((o=u.SupportedVersions[c]).minor<=i.version.minor);++c);e.version={major:o.major,minor:o.minor},e.session.version=e.version}null!==s?(e.expect=b,e.session.resuming=!0,e.session.sp.client_random=i.random.bytes()):(e.expect=!1!==e.verifyClient?y:E,e.session.resuming=!1,u.createSecurityParameters(e,i)),e.open=!0,u.queue(e,u.createRecord(e,{type:u.ContentType.handshake,data:u.createServerHello(e)})),e.session.resuming?(u.queue(e,u.createRecord(e,{type:u.ContentType.change_cipher_spec,data:u.createChangeCipherSpec()})),e.state.pending=u.createConnectionState(e),e.state.current.write=e.state.pending.write,u.queue(e,u.createRecord(e,{type:u.ContentType.handshake,data:u.createFinished(e)}))):(u.queue(e,u.createRecord(e,{type:u.ContentType.handshake,data:u.createCertificate(e)})),e.fail||(u.queue(e,u.createRecord(e,{type:u.ContentType.handshake,data:u.createServerKeyExchange(e)})),!1!==e.verifyClient&&u.queue(e,u.createRecord(e,{type:u.ContentType.handshake,data:u.createCertificateRequest(e)})),u.queue(e,u.createRecord(e,{type:u.ContentType.handshake,data:u.createServerHelloDone(e)})))),u.flush(e),e.process()}},u.handleCertificate=function(e,t,r){if(r<3)return e.error(e,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.illegal_parameter}});var i,a,s=t.fragment,c={certificate_list:o(s,3)},l=[];try{for(;c.certificate_list.length()>0;)i=o(c.certificate_list,3),a=n.asn1.fromDer(i),i=n.pki.certificateFromAsn1(a,!0),l.push(i)}catch(t){return e.error(e,{message:"Could not parse certificate list.",cause:t,send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.bad_certificate}})}var d=e.entity===u.ConnectionEnd.client;!d&&!0!==e.verifyClient||0!==l.length?0===l.length?e.expect=d?p:E:(d?e.session.serverCertificate=l[0]:e.session.clientCertificate=l[0],u.verifyCertificateChain(e,l)&&(e.expect=d?p:E)):e.error(e,{message:d?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.illegal_parameter}}),e.process()},u.handleServerKeyExchange=function(e,t,r){if(r>0)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.unsupported_certificate}});e.expect=d,e.process()},u.handleClientKeyExchange=function(e,t,r){if(r<48)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.unsupported_certificate}});var i=t.fragment,a={enc_pre_master_secret:o(i,2).getBytes()},s=null;if(e.getPrivateKey)try{s=e.getPrivateKey(e,e.session.serverCertificate),s=n.pki.privateKeyFromPem(s)}catch(t){e.error(e,{message:"Could not get private key.",cause:t,send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.internal_error}})}if(null===s)return e.error(e,{message:"No private key set.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.internal_error}});try{var c=e.session.sp;c.pre_master_secret=s.decrypt(a.enc_pre_master_secret);var l=e.session.clientHelloVersion;if(l.major!==c.pre_master_secret.charCodeAt(0)||l.minor!==c.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch(e){c.pre_master_secret=n.random.getBytes(48)}e.expect=b,null!==e.session.clientCertificate&&(e.expect=_),e.process()},u.handleCertificateRequest=function(e,t,r){if(r<3)return e.error(e,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.illegal_parameter}});var n=t.fragment,i={certificate_types:o(n,1),certificate_authorities:o(n,2)};e.session.certificateRequest=i,e.expect=f,e.process()},u.handleCertificateVerify=function(e,t,r){if(r<2)return e.error(e,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.illegal_parameter}});var i=t.fragment;i.read-=4;var a=i.bytes();i.read+=4;var s={signature:o(i,2).getBytes()},c=n.util.createBuffer();c.putBuffer(e.session.md5.digest()),c.putBuffer(e.session.sha1.digest()),c=c.getBytes();try{if(!e.session.clientCertificate.publicKey.verify(c,s.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");e.session.md5.update(a),e.session.sha1.update(a)}catch(t){return e.error(e,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.handshake_failure}})}e.expect=b,e.process()},u.handleServerHelloDone=function(e,t,r){if(r>0)return e.error(e,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.record_overflow}});if(null===e.serverCertificate){var i={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.insufficient_security}},a=e.verify(e,i.alert.description,0,[]);if(!0!==a)return(a||0===a)&&("object"!=typeof a||n.util.isArray(a)?"number"==typeof a&&(i.alert.description=a):(a.message&&(i.message=a.message),a.alert&&(i.alert.description=a.alert))),e.error(e,i)}null!==e.session.certificateRequest&&(t=u.createRecord(e,{type:u.ContentType.handshake,data:u.createCertificate(e)}),u.queue(e,t)),t=u.createRecord(e,{type:u.ContentType.handshake,data:u.createClientKeyExchange(e)}),u.queue(e,t),e.expect=g;var s=function(e,t){null!==e.session.certificateRequest&&null!==e.session.clientCertificate&&u.queue(e,u.createRecord(e,{type:u.ContentType.handshake,data:u.createCertificateVerify(e,t)})),u.queue(e,u.createRecord(e,{type:u.ContentType.change_cipher_spec,data:u.createChangeCipherSpec()})),e.state.pending=u.createConnectionState(e),e.state.current.write=e.state.pending.write,u.queue(e,u.createRecord(e,{type:u.ContentType.handshake,data:u.createFinished(e)})),e.expect=h,u.flush(e),e.process()};if(null===e.session.certificateRequest||null===e.session.clientCertificate)return s(e,null);u.getClientSignature(e,s)},u.handleChangeCipherSpec=function(e,t){if(1!==t.fragment.getByte())return e.error(e,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.illegal_parameter}});var r=e.entity===u.ConnectionEnd.client;(e.session.resuming&&r||!e.session.resuming&&!r)&&(e.state.pending=u.createConnectionState(e)),e.state.current.read=e.state.pending.read,(!e.session.resuming&&r||e.session.resuming&&!r)&&(e.state.pending=null),e.expect=r?m:x,e.process()},u.handleFinished=function(e,t,r){var a=t.fragment;a.read-=4;var s=a.bytes();a.read+=4;var o=t.fragment.getBytes();(a=n.util.createBuffer()).putBuffer(e.session.md5.digest()),a.putBuffer(e.session.sha1.digest());var c=e.entity===u.ConnectionEnd.client,l=c?"server finished":"client finished",p=e.session.sp;if((a=i(p.master_secret,l,a.getBytes(),12)).getBytes()!==o)return e.error(e,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.decrypt_error}});e.session.md5.update(s),e.session.sha1.update(s),(e.session.resuming&&c||!e.session.resuming&&!c)&&(u.queue(e,u.createRecord(e,{type:u.ContentType.change_cipher_spec,data:u.createChangeCipherSpec()})),e.state.current.write=e.state.pending.write,e.state.pending=null,u.queue(e,u.createRecord(e,{type:u.ContentType.handshake,data:u.createFinished(e)}))),e.expect=c?v:C,e.handshaking=!1,++e.handshakes,e.peerCertificate=c?e.session.serverCertificate:e.session.clientCertificate,u.flush(e),e.isConnected=!0,e.connected(e),e.process()},u.handleAlert=function(e,t){var r,n=t.fragment,i={level:n.getByte(),description:n.getByte()};switch(i.description){case u.Alert.Description.close_notify:r="Connection closed.";break;case u.Alert.Description.unexpected_message:r="Unexpected message.";break;case u.Alert.Description.bad_record_mac:r="Bad record MAC.";break;case u.Alert.Description.decryption_failed:r="Decryption failed.";break;case u.Alert.Description.record_overflow:r="Record overflow.";break;case u.Alert.Description.decompression_failure:r="Decompression failed.";break;case u.Alert.Description.handshake_failure:r="Handshake failure.";break;case u.Alert.Description.bad_certificate:r="Bad certificate.";break;case u.Alert.Description.unsupported_certificate:r="Unsupported certificate.";break;case u.Alert.Description.certificate_revoked:r="Certificate revoked.";break;case u.Alert.Description.certificate_expired:r="Certificate expired.";break;case u.Alert.Description.certificate_unknown:r="Certificate unknown.";break;case u.Alert.Description.illegal_parameter:r="Illegal parameter.";break;case u.Alert.Description.unknown_ca:r="Unknown certificate authority.";break;case u.Alert.Description.access_denied:r="Access denied.";break;case u.Alert.Description.decode_error:r="Decode error.";break;case u.Alert.Description.decrypt_error:r="Decrypt error.";break;case u.Alert.Description.export_restriction:r="Export restriction.";break;case u.Alert.Description.protocol_version:r="Unsupported protocol version.";break;case u.Alert.Description.insufficient_security:r="Insufficient security.";break;case u.Alert.Description.internal_error:r="Internal error.";break;case u.Alert.Description.user_canceled:r="User canceled.";break;case u.Alert.Description.no_renegotiation:r="Renegotiation not supported.";break;default:r="Unknown error."}if(i.description===u.Alert.Description.close_notify)return e.close();e.error(e,{message:r,send:!1,origin:e.entity===u.ConnectionEnd.client?"server":"client",alert:i}),e.process()},u.handleHandshake=function(e,t){var r=t.fragment,i=r.getByte(),a=r.getInt24();if(a>r.length())return e.fragmented=t,t.fragment=n.util.createBuffer(),r.read-=4,e.process();e.fragmented=null,r.read-=4;var s=r.bytes(a+4);r.read+=4,i in U[e.entity][e.expect]?(e.entity!==u.ConnectionEnd.server||e.open||e.fail||(e.handshaking=!0,e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:n.md.md5.create(),sha1:n.md.sha1.create()}),i!==u.HandshakeType.hello_request&&i!==u.HandshakeType.certificate_verify&&i!==u.HandshakeType.finished&&(e.session.md5.update(s),e.session.sha1.update(s)),U[e.entity][e.expect][i](e,t,a)):u.handleUnexpected(e,t)},u.handleApplicationData=function(e,t){e.data.putBuffer(t.fragment),e.dataReady(e),e.process()},u.handleHeartbeat=function(e,t){var r=t.fragment,i=r.getByte(),a=r.getInt16(),s=r.getBytes(a);if(i===u.HeartbeatMessageType.heartbeat_request){if(e.handshaking||a>s.length)return e.process();u.queue(e,u.createRecord(e,{type:u.ContentType.heartbeat,data:u.createHeartbeat(u.HeartbeatMessageType.heartbeat_response,s)})),u.flush(e)}else if(i===u.HeartbeatMessageType.heartbeat_response){if(s!==e.expectedHeartbeatPayload)return e.process();e.heartbeatReceived&&e.heartbeatReceived(e,n.util.createBuffer(s))}e.process()};var l=1,p=2,d=3,f=4,h=5,m=6,v=7,g=8,y=1,E=2,_=3,b=4,x=5,C=6,w=u.handleUnexpected,S=u.handleChangeCipherSpec,T=u.handleAlert,A=u.handleHandshake,O=u.handleApplicationData,I=u.handleHeartbeat,D=[];D[u.ConnectionEnd.client]=[[w,T,A,w,I],[w,T,A,w,I],[w,T,A,w,I],[w,T,A,w,I],[w,T,A,w,I],[S,T,w,w,I],[w,T,A,w,I],[w,T,A,O,I],[w,T,A,w,I]],D[u.ConnectionEnd.server]=[[w,T,A,w,I],[w,T,A,w,I],[w,T,A,w,I],[w,T,A,w,I],[S,T,w,w,I],[w,T,A,w,I],[w,T,A,O,I],[w,T,A,w,I]];var N=u.handleHelloRequest,k=u.handleServerHello,B=u.handleCertificate,L=u.handleServerKeyExchange,R=u.handleCertificateRequest,P=u.handleServerHelloDone,j=u.handleFinished,U=[];U[u.ConnectionEnd.client]=[[w,w,k,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[N,w,w,w,w,w,w,w,w,w,w,B,L,R,P,w,w,w,w,w,w],[N,w,w,w,w,w,w,w,w,w,w,w,L,R,P,w,w,w,w,w,w],[N,w,w,w,w,w,w,w,w,w,w,w,w,R,P,w,w,w,w,w,w],[N,w,w,w,w,w,w,w,w,w,w,w,w,w,P,w,w,w,w,w,w],[N,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[N,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,j],[N,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[N,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w]];var F=u.handleClientHello,K=u.handleClientKeyExchange,M=u.handleCertificateVerify;U[u.ConnectionEnd.server]=[[w,F,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,B,w,w,w,w,w,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,K,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,M,w,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,j],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w]],u.generateKeys=function(e,t){var r=i,n=t.client_random+t.server_random;e.session.resuming||(t.master_secret=r(t.pre_master_secret,"master secret",n,48).bytes(),t.pre_master_secret=null),n=t.server_random+t.client_random;var a=2*t.mac_key_length+2*t.enc_key_length,s=e.version.major===u.Versions.TLS_1_0.major&&e.version.minor===u.Versions.TLS_1_0.minor;s&&(a+=2*t.fixed_iv_length);var o=r(t.master_secret,"key expansion",n,a),c={client_write_MAC_key:o.getBytes(t.mac_key_length),server_write_MAC_key:o.getBytes(t.mac_key_length),client_write_key:o.getBytes(t.enc_key_length),server_write_key:o.getBytes(t.enc_key_length)};return s&&(c.client_write_IV=o.getBytes(t.fixed_iv_length),c.server_write_IV=o.getBytes(t.fixed_iv_length)),c},u.createConnectionState=function(e){var t=e.entity===u.ConnectionEnd.client,r=function(){var e={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(e){return!0},compressionState:null,compressFunction:function(e){return!0},updateSequenceNumber:function(){4294967295===e.sequenceNumber[1]?(e.sequenceNumber[1]=0,++e.sequenceNumber[0]):++e.sequenceNumber[1]}};return e},n={read:r(),write:r()};if(n.read.update=function(e,t){return n.read.cipherFunction(t,n.read)?n.read.compressFunction(e,t,n.read)||e.error(e,{message:"Could not decompress record.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.decompression_failure}}):e.error(e,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.bad_record_mac}}),!e.fail},n.write.update=function(e,t){return n.write.compressFunction(e,t,n.write)?n.write.cipherFunction(t,n.write)||e.error(e,{message:"Could not encrypt record.",send:!1,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.internal_error}}):e.error(e,{message:"Could not compress record.",send:!1,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.internal_error}}),!e.fail},e.session){var i=e.session.sp;switch(e.session.cipherSuite.initSecurityParameters(i),i.keys=u.generateKeys(e,i),n.read.macKey=t?i.keys.server_write_MAC_key:i.keys.client_write_MAC_key,n.write.macKey=t?i.keys.client_write_MAC_key:i.keys.server_write_MAC_key,e.session.cipherSuite.initConnectionState(n,e,i),i.compression_algorithm){case u.CompressionMethod.none:break;case u.CompressionMethod.deflate:n.read.compressFunction=s,n.write.compressFunction=a;break;default:throw new Error("Unsupported compression algorithm.")}}return n},u.createRandom=function(){var e=new Date,t=+e+6e4*e.getTimezoneOffset(),r=n.util.createBuffer();return r.putInt32(t),r.putBytes(n.random.getBytes(28)),r},u.createRecord=function(e,t){return t.data?{type:t.type,version:{major:e.version.major,minor:e.version.minor},length:t.data.length(),fragment:t.data}:null},u.createAlert=function(e,t){var r=n.util.createBuffer();return r.putByte(t.level),r.putByte(t.description),u.createRecord(e,{type:u.ContentType.alert,data:r})},u.createClientHello=function(e){e.session.clientHelloVersion={major:e.version.major,minor:e.version.minor};for(var t=n.util.createBuffer(),r=0;r<e.cipherSuites.length;++r){var i=e.cipherSuites[r];t.putByte(i.id[0]),t.putByte(i.id[1])}var a=t.length(),s=n.util.createBuffer();s.putByte(u.CompressionMethod.none);var o=s.length(),l=n.util.createBuffer();if(e.virtualHost){var p=n.util.createBuffer();p.putByte(0),p.putByte(0);var d=n.util.createBuffer();d.putByte(0),c(d,2,n.util.createBuffer(e.virtualHost));var f=n.util.createBuffer();c(f,2,d),c(p,2,f),l.putBuffer(p)}var h=l.length();h>0&&(h+=2);var m=e.session.id,v=m.length+1+2+4+28+2+a+1+o+h,g=n.util.createBuffer();return g.putByte(u.HandshakeType.client_hello),g.putInt24(v),g.putByte(e.version.major),g.putByte(e.version.minor),g.putBytes(e.session.sp.client_random),c(g,1,n.util.createBuffer(m)),c(g,2,t),c(g,1,s),h>0&&c(g,2,l),g},u.createServerHello=function(e){var t=e.session.id,r=t.length+1+2+4+28+2+1,i=n.util.createBuffer();return i.putByte(u.HandshakeType.server_hello),i.putInt24(r),i.putByte(e.version.major),i.putByte(e.version.minor),i.putBytes(e.session.sp.server_random),c(i,1,n.util.createBuffer(t)),i.putByte(e.session.cipherSuite.id[0]),i.putByte(e.session.cipherSuite.id[1]),i.putByte(e.session.compressionMethod),i},u.createCertificate=function(e){var t,r=e.entity===u.ConnectionEnd.client,i=null;e.getCertificate&&(t=r?e.session.certificateRequest:e.session.extensions.server_name.serverNameList,i=e.getCertificate(e,t));var a=n.util.createBuffer();if(null!==i)try{n.util.isArray(i)||(i=[i]);for(var s=null,o=0;o<i.length;++o){var l=n.pem.decode(i[o])[0];if("CERTIFICATE"!==l.type&&"X509 CERTIFICATE"!==l.type&&"TRUSTED CERTIFICATE"!==l.type){var p=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw p.headerType=l.type,p}if(l.procType&&"ENCRYPTED"===l.procType.type)throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var d=n.util.createBuffer(l.body);null===s&&(s=n.asn1.fromDer(d.bytes(),!1));var f=n.util.createBuffer();c(f,3,d),a.putBuffer(f)}i=n.pki.certificateFromAsn1(s),r?e.session.clientCertificate=i:e.session.serverCertificate=i}catch(t){return e.error(e,{message:"Could not send certificate list.",cause:t,send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.bad_certificate}})}var h=3+a.length(),m=n.util.createBuffer();return m.putByte(u.HandshakeType.certificate),m.putInt24(h),c(m,3,a),m},u.createClientKeyExchange=function(e){var t=n.util.createBuffer();t.putByte(e.session.clientHelloVersion.major),t.putByte(e.session.clientHelloVersion.minor),t.putBytes(n.random.getBytes(46));var r=e.session.sp;r.pre_master_secret=t.getBytes();var i=(t=e.session.serverCertificate.publicKey.encrypt(r.pre_master_secret)).length+2,a=n.util.createBuffer();return a.putByte(u.HandshakeType.client_key_exchange),a.putInt24(i),a.putInt16(t.length),a.putBytes(t),a},u.createServerKeyExchange=function(e){var t=n.util.createBuffer();return t},u.getClientSignature=function(e,t){var r=n.util.createBuffer();r.putBuffer(e.session.md5.digest()),r.putBuffer(e.session.sha1.digest()),r=r.getBytes(),e.getSignature=e.getSignature||function(e,t,r){var i=null;if(e.getPrivateKey)try{i=e.getPrivateKey(e,e.session.clientCertificate),i=n.pki.privateKeyFromPem(i)}catch(t){e.error(e,{message:"Could not get private key.",cause:t,send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.internal_error}})}null===i?e.error(e,{message:"No private key set.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.internal_error}}):t=i.sign(t,null),r(e,t)},e.getSignature(e,r,t)},u.createCertificateVerify=function(e,t){var r=t.length+2,i=n.util.createBuffer();return i.putByte(u.HandshakeType.certificate_verify),i.putInt24(r),i.putInt16(t.length),i.putBytes(t),i},u.createCertificateRequest=function(e){var t=n.util.createBuffer();t.putByte(1);var r=n.util.createBuffer();for(var i in e.caStore.certs){var a=e.caStore.certs[i],s=n.pki.distinguishedNameToAsn1(a.subject),o=n.asn1.toDer(s);r.putInt16(o.length()),r.putBuffer(o)}var l=1+t.length()+2+r.length(),p=n.util.createBuffer();return p.putByte(u.HandshakeType.certificate_request),p.putInt24(l),c(p,1,t),c(p,2,r),p},u.createServerHelloDone=function(e){var t=n.util.createBuffer();return t.putByte(u.HandshakeType.server_hello_done),t.putInt24(0),t},u.createChangeCipherSpec=function(){var e=n.util.createBuffer();return e.putByte(1),e},u.createFinished=function(e){var t=n.util.createBuffer();t.putBuffer(e.session.md5.digest()),t.putBuffer(e.session.sha1.digest());var r=e.entity===u.ConnectionEnd.client,a=e.session.sp,s=r?"client finished":"server finished";t=i(a.master_secret,s,t.getBytes(),12);var o=n.util.createBuffer();return o.putByte(u.HandshakeType.finished),o.putInt24(t.length()),o.putBuffer(t),o},u.createHeartbeat=function(e,t,r){void 0===r&&(r=t.length);var i=n.util.createBuffer();i.putByte(e),i.putInt16(r),i.putBytes(t);var a=i.length(),s=Math.max(16,a-r-3);return i.putBytes(n.random.getBytes(s)),i},u.queue=function(e,t){if(t&&(0!==t.fragment.length()||t.type!==u.ContentType.handshake&&t.type!==u.ContentType.alert&&t.type!==u.ContentType.change_cipher_spec)){if(t.type===u.ContentType.handshake){var r=t.fragment.bytes();e.session.md5.update(r),e.session.sha1.update(r),r=null}var i;if(t.fragment.length()<=u.MaxFragment)i=[t];else{i=[];for(var a=t.fragment.bytes();a.length>u.MaxFragment;)i.push(u.createRecord(e,{type:t.type,data:n.util.createBuffer(a.slice(0,u.MaxFragment))})),a=a.slice(u.MaxFragment);a.length>0&&i.push(u.createRecord(e,{type:t.type,data:n.util.createBuffer(a)}))}for(var s=0;s<i.length&&!e.fail;++s){var o=i[s];e.state.current.write.update(e,o)&&e.records.push(o)}}},u.flush=function(e){for(var t=0;t<e.records.length;++t){var r=e.records[t];e.tlsData.putByte(r.type),e.tlsData.putByte(r.version.major),e.tlsData.putByte(r.version.minor),e.tlsData.putInt16(r.fragment.length()),e.tlsData.putBuffer(e.records[t].fragment)}return e.records=[],e.tlsDataReady(e)};var V=function(e){switch(e){case!0:return!0;case n.pki.certificateError.bad_certificate:return u.Alert.Description.bad_certificate;case n.pki.certificateError.unsupported_certificate:return u.Alert.Description.unsupported_certificate;case n.pki.certificateError.certificate_revoked:return u.Alert.Description.certificate_revoked;case n.pki.certificateError.certificate_expired:return u.Alert.Description.certificate_expired;case n.pki.certificateError.certificate_unknown:return u.Alert.Description.certificate_unknown;case n.pki.certificateError.unknown_ca:return u.Alert.Description.unknown_ca;default:return u.Alert.Description.bad_certificate}};for(var Y in u.verifyCertificateChain=function(e,t){try{var r={};for(var i in e.verifyOptions)r[i]=e.verifyOptions[i];r.verify=function(t,r,i){V(t);var a=e.verify(e,t,r,i);if(!0!==a){if("object"==typeof a&&!n.util.isArray(a)){var s=new Error("The application rejected the certificate.");throw s.send=!0,s.alert={level:u.Alert.Level.fatal,description:u.Alert.Description.bad_certificate},a.message&&(s.message=a.message),a.alert&&(s.alert.description=a.alert),s}a!==t&&(a=function(e){switch(e){case!0:return!0;case u.Alert.Description.bad_certificate:return n.pki.certificateError.bad_certificate;case u.Alert.Description.unsupported_certificate:return n.pki.certificateError.unsupported_certificate;case u.Alert.Description.certificate_revoked:return n.pki.certificateError.certificate_revoked;case u.Alert.Description.certificate_expired:return n.pki.certificateError.certificate_expired;case u.Alert.Description.certificate_unknown:return n.pki.certificateError.certificate_unknown;case u.Alert.Description.unknown_ca:return n.pki.certificateError.unknown_ca;default:return n.pki.certificateError.bad_certificate}}(a))}return a},n.pki.verifyCertificateChain(e.caStore,t,r)}catch(t){var a=t;("object"!=typeof a||n.util.isArray(a))&&(a={send:!0,alert:{level:u.Alert.Level.fatal,description:V(t)}}),"send"in a||(a.send=!0),"alert"in a||(a.alert={level:u.Alert.Level.fatal,description:V(a.error)}),e.error(e,a)}return!e.fail},u.createSessionCache=function(e,t){var r=null;if(e&&e.getSession&&e.setSession&&e.order)r=e;else{for(var i in(r={}).cache=e||{},r.capacity=Math.max(t||100,1),r.order=[],e)r.order.length<=t?r.order.push(i):delete e[i];r.getSession=function(e){var t=null,i=null;if(e?i=n.util.bytesToHex(e):r.order.length>0&&(i=r.order[0]),null!==i&&i in r.cache)for(var a in t=r.cache[i],delete r.cache[i],r.order)if(r.order[a]===i){r.order.splice(a,1);break}return t},r.setSession=function(e,t){if(r.order.length===r.capacity){var i=r.order.shift();delete r.cache[i]}i=n.util.bytesToHex(e);r.order.push(i),r.cache[i]=t}}return r},u.createConnection=function(e){var t=null;t=e.caStore?n.util.isArray(e.caStore)?n.pki.createCaStore(e.caStore):e.caStore:n.pki.createCaStore();var r=e.cipherSuites||null;if(null===r)for(var i in r=[],u.CipherSuites)r.push(u.CipherSuites[i]);var a=e.server?u.ConnectionEnd.server:u.ConnectionEnd.client,s=e.sessionCache?u.createSessionCache(e.sessionCache):null,o={version:{major:u.Version.major,minor:u.Version.minor},entity:a,sessionId:e.sessionId,caStore:t,sessionCache:s,cipherSuites:r,connected:e.connected,virtualHost:e.virtualHost||null,verifyClient:e.verifyClient||!1,verify:e.verify||function(e,t,r,n){return t},verifyOptions:e.verifyOptions||{},getCertificate:e.getCertificate||null,getPrivateKey:e.getPrivateKey||null,getSignature:e.getSignature||null,input:n.util.createBuffer(),tlsData:n.util.createBuffer(),data:n.util.createBuffer(),tlsDataReady:e.tlsDataReady,dataReady:e.dataReady,heartbeatReceived:e.heartbeatReceived,closed:e.closed,error:function(t,r){r.origin=r.origin||(t.entity===u.ConnectionEnd.client?"client":"server"),r.send&&(u.queue(t,u.createAlert(t,r.alert)),u.flush(t));var n=!1!==r.fatal;n&&(t.fail=!0),e.error(t,r),n&&t.close(!1)},deflate:e.deflate||null,inflate:e.inflate||null,reset:function(e){o.version={major:u.Version.major,minor:u.Version.minor},o.record=null,o.session=null,o.peerCertificate=null,o.state={pending:null,current:null},o.expect=(o.entity,u.ConnectionEnd.client,0),o.fragmented=null,o.records=[],o.open=!1,o.handshakes=0,o.handshaking=!1,o.isConnected=!1,o.fail=!(e||void 0===e),o.input.clear(),o.tlsData.clear(),o.data.clear(),o.state.current=u.createConnectionState(o)}};o.reset();return o.handshake=function(e){if(o.entity!==u.ConnectionEnd.client)o.error(o,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(o.handshaking)o.error(o,{message:"Handshake already in progress.",fatal:!1});else{o.fail&&!o.open&&0===o.handshakes&&(o.fail=!1),o.handshaking=!0;var t=null;(e=e||"").length>0&&(o.sessionCache&&(t=o.sessionCache.getSession(e)),null===t&&(e="")),0===e.length&&o.sessionCache&&null!==(t=o.sessionCache.getSession())&&(e=t.id),o.session={id:e,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:n.md.md5.create(),sha1:n.md.sha1.create()},t&&(o.version=t.version,o.session.sp=t.sp),o.session.sp.client_random=u.createRandom().getBytes(),o.open=!0,u.queue(o,u.createRecord(o,{type:u.ContentType.handshake,data:u.createClientHello(o)})),u.flush(o)}},o.process=function(e){var t=0;return e&&o.input.putBytes(e),o.fail||(null!==o.record&&o.record.ready&&o.record.fragment.isEmpty()&&(o.record=null),null===o.record&&(t=function(e){var t=0,r=e.input,i=r.length();if(i<5)t=5-i;else{e.record={type:r.getByte(),version:{major:r.getByte(),minor:r.getByte()},length:r.getInt16(),fragment:n.util.createBuffer(),ready:!1};var a=e.record.version.major===e.version.major;a&&e.session&&e.session.version&&(a=e.record.version.minor===e.version.minor),a||e.error(e,{message:"Incompatible TLS version.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.protocol_version}})}return t}(o)),o.fail||null===o.record||o.record.ready||(t=function(e){var t=0,r=e.input,n=r.length();return n<e.record.length?t=e.record.length-n:(e.record.fragment.putBytes(r.getBytes(e.record.length)),r.compact(),e.state.current.read.update(e,e.record)&&(null!==e.fragmented&&(e.fragmented.type===e.record.type?(e.fragmented.fragment.putBuffer(e.record.fragment),e.record=e.fragmented):e.error(e,{message:"Invalid fragmented record.",send:!0,alert:{level:u.Alert.Level.fatal,description:u.Alert.Description.unexpected_message}})),e.record.ready=!0)),t}(o)),!o.fail&&null!==o.record&&o.record.ready&&function(e,t){var r=t.type-u.ContentType.change_cipher_spec,n=D[e.entity][e.expect];r in n?n[r](e,t):u.handleUnexpected(e,t)}(o,o.record)),t},o.prepare=function(e){return u.queue(o,u.createRecord(o,{type:u.ContentType.application_data,data:n.util.createBuffer(e)})),u.flush(o)},o.prepareHeartbeatRequest=function(e,t){return e instanceof n.util.ByteBuffer&&(e=e.bytes()),void 0===t&&(t=e.length),o.expectedHeartbeatPayload=e,u.queue(o,u.createRecord(o,{type:u.ContentType.heartbeat,data:u.createHeartbeat(u.HeartbeatMessageType.heartbeat_request,e,t)})),u.flush(o)},o.close=function(e){if(!o.fail&&o.sessionCache&&o.session){var t={id:o.session.id,version:o.session.version,sp:o.session.sp};t.sp.keys=null,o.sessionCache.setSession(t.id,t)}o.open&&(o.open=!1,o.input.clear(),(o.isConnected||o.handshaking)&&(o.isConnected=o.handshaking=!1,u.queue(o,u.createAlert(o,{level:u.Alert.Level.warning,description:u.Alert.Description.close_notify})),u.flush(o)),o.closed(o)),o.reset(e)},o},e.exports=n.tls=n.tls||{},u)"function"!=typeof u[Y]&&(n.tls[Y]=u[Y]);n.tls.prf_tls1=i,n.tls.hmac_sha1=function(e,t,r){var i=n.hmac.create();i.start("SHA1",e);var a=n.util.createBuffer();return a.putInt32(t[0]),a.putInt32(t[1]),a.putByte(r.type),a.putByte(r.version.major),a.putByte(r.version.minor),a.putInt16(r.length),a.putBytes(r.fragment.bytes()),i.update(a.getBytes()),i.digest().getBytes()},n.tls.createSessionCache=u.createSessionCache,n.tls.createConnection=u.createConnection},7619:(e,t,r)=>{var n=r(276),i=r(4058),a=e.exports=n.util=n.util||{};function s(e){if(8!==e&&16!==e&&24!==e&&32!==e)throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}function o(e){if(this.data="",this.read=0,"string"==typeof e)this.data=e;else if(a.isArrayBuffer(e)||a.isArrayBufferView(e))if("undefined"!=typeof Buffer&&e instanceof Buffer)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch(e){for(var r=0;r<t.length;++r)this.putByte(t[r])}}else(e instanceof o||"object"==typeof e&&"string"==typeof e.data&&"number"==typeof e.read)&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}!function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser)return a.nextTick=process.nextTick,void("function"==typeof setImmediate?a.setImmediate=setImmediate:a.setImmediate=a.nextTick);if("function"==typeof setImmediate)return a.setImmediate=function(){return setImmediate.apply(void 0,arguments)},void(a.nextTick=function(e){return setImmediate(e)});if(a.setImmediate=function(e){setTimeout(e,0)},"undefined"!=typeof window&&"function"==typeof window.postMessage){var e="forge.setImmediate",t=[];a.setImmediate=function(r){t.push(r),1===t.length&&window.postMessage(e,"*")},window.addEventListener("message",(function(r){if(r.source===window&&r.data===e){r.stopPropagation();var n=t.slice();t.length=0,n.forEach((function(e){e()}))}}),!0)}if("undefined"!=typeof MutationObserver){var r=Date.now(),n=!0,i=document.createElement("div");t=[];new MutationObserver((function(){var e=t.slice();t.length=0,e.forEach((function(e){e()}))})).observe(i,{attributes:!0});var s=a.setImmediate;a.setImmediate=function(e){Date.now()-r>15?(r=Date.now(),s(e)):(t.push(e),1===t.length&&i.setAttribute("a",n=!n))}}a.nextTick=a.setImmediate}(),a.isNodejs="undefined"!=typeof process&&process.versions&&process.versions.node,a.globalScope=a.isNodejs?global:"undefined"==typeof self?window:self,a.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a.isArrayBuffer=function(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer},a.isArrayBufferView=function(e){return e&&a.isArrayBuffer(e.buffer)&&void 0!==e.byteLength},a.ByteBuffer=o,a.ByteStringBuffer=o;a.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},a.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},a.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},a.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},a.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var r=this.data;t>0;)1&t&&(r+=e),(t>>>=1)>0&&(e+=e);return this.data=r,this._optimizeConstructedString(t),this},a.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},a.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(a.encodeUtf8(e))},a.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},a.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},a.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},a.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255))},a.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},a.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},a.ByteStringBuffer.prototype.putInt=function(e,t){s(t);var r="";do{t-=8,r+=String.fromCharCode(e>>t&255)}while(t>0);return this.putBytes(r)},a.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},a.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},a.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},a.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e},a.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},a.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},a.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},a.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},a.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e},a.ByteStringBuffer.prototype.getInt=function(e){s(e);var t=0;do{t=(t<<8)+this.data.charCodeAt(this.read++),e-=8}while(e>0);return t},a.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},a.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},a.ByteStringBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},a.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},a.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},a.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},a.ByteStringBuffer.prototype.copy=function(){var e=a.createBuffer(this.data);return e.read=this.read,e},a.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},a.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},a.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},a.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var r=this.data.charCodeAt(t);r<16&&(e+="0"),e+=r.toString(16)}return e},a.ByteStringBuffer.prototype.toString=function(){return a.decodeUtf8(this.bytes())},a.DataBuffer=function(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var r=a.isArrayBuffer(e),n=a.isArrayBufferView(e);if(r||n)return this.data=r?new DataView(e):new DataView(e.buffer,e.byteOffset,e.byteLength),void(this.write="writeOffset"in t?t.writeOffset:this.data.byteLength);this.data=new DataView(new ArrayBuffer(0)),this.write=0,null!=e&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)},a.DataBuffer.prototype.length=function(){return this.write-this.read},a.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},a.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),n=new Uint8Array(this.length()+t);return n.set(r),this.data=new DataView(n.buffer),this},a.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},a.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var r=0;r<t;++r)this.data.setUint8(e);return this},a.DataBuffer.prototype.putBytes=function(e,t){if(a.isArrayBufferView(e)){var r=(n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)).byteLength-n.byteOffset;return this.accommodate(r),new Uint8Array(this.data.buffer,this.write).set(n),this.write+=r,this}if(a.isArrayBuffer(e)){var n=new Uint8Array(e);return this.accommodate(n.byteLength),new Uint8Array(this.data.buffer).set(n,this.write),this.write+=n.byteLength,this}if(e instanceof a.DataBuffer||"object"==typeof e&&"number"==typeof e.read&&"number"==typeof e.write&&a.isArrayBufferView(e.data)){n=new Uint8Array(e.data.byteLength,e.read,e.length());return this.accommodate(n.byteLength),new Uint8Array(e.data.byteLength,this.write).set(n),this.write+=n.byteLength,this}if(e instanceof a.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary","string"==typeof e){var i;if("hex"===t)return this.accommodate(Math.ceil(e.length/2)),i=new Uint8Array(this.data.buffer,this.write),this.write+=a.binary.hex.decode(e,i,this.write),this;if("base64"===t)return this.accommodate(3*Math.ceil(e.length/4)),i=new Uint8Array(this.data.buffer,this.write),this.write+=a.binary.base64.decode(e,i,this.write),this;if("utf8"===t&&(e=a.encodeUtf8(e),t="binary"),"binary"===t||"raw"===t)return this.accommodate(e.length),i=new Uint8Array(this.data.buffer,this.write),this.write+=a.binary.raw.decode(i),this;if("utf16"===t)return this.accommodate(2*e.length),i=new Uint16Array(this.data.buffer,this.write),this.write+=a.text.utf16.encode(i),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)},a.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this},a.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")},a.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this},a.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},a.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},a.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},a.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},a.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},a.DataBuffer.prototype.putInt=function(e,t){s(t),this.accommodate(t/8);do{t-=8,this.data.setInt8(this.write++,e>>t&255)}while(t>0);return this},a.DataBuffer.prototype.putSignedInt=function(e,t){return s(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)},a.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},a.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e},a.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e},a.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e},a.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e},a.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e},a.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e},a.DataBuffer.prototype.getInt=function(e){s(e);var t=0;do{t=(t<<8)+this.data.getInt8(this.read++),e-=8}while(e>0);return t},a.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},a.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},a.DataBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},a.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},a.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},a.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},a.DataBuffer.prototype.copy=function(){return new a.DataBuffer(this)},a.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},a.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},a.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},a.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var r=this.data.getUint8(t);r<16&&(e+="0"),e+=r.toString(16)}return e},a.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if("binary"===(e=e||"utf8")||"raw"===e)return a.binary.raw.encode(t);if("hex"===e)return a.binary.hex.encode(t);if("base64"===e)return a.binary.base64.encode(t);if("utf8"===e)return a.text.utf8.decode(t);if("utf16"===e)return a.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)},a.createBuffer=function(e,t){return t=t||"raw",void 0!==e&&"utf8"===t&&(e=a.encodeUtf8(e)),new a.ByteBuffer(e)},a.fillString=function(e,t){for(var r="";t>0;)1&t&&(r+=e),(t>>>=1)>0&&(e+=e);return r},a.xorBytes=function(e,t,r){for(var n="",i="",a="",s=0,o=0;r>0;--r,++s)i=e.charCodeAt(s)^t.charCodeAt(s),o>=10&&(n+=a,a="",o=0),a+=String.fromCharCode(i),++o;return n+=a},a.hexToBytes=function(e){var t="",r=0;for(!0&e.length&&(r=1,t+=String.fromCharCode(parseInt(e[0],16)));r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.substr(r,2),16));return t},a.bytesToHex=function(e){return a.createBuffer(e).toHex()},a.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)};var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],l="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";a.encode64=function(e,t){for(var r,n,i,a="",s="",o=0;o<e.length;)r=e.charCodeAt(o++),n=e.charCodeAt(o++),i=e.charCodeAt(o++),a+=c.charAt(r>>2),a+=c.charAt((3&r)<<4|n>>4),isNaN(n)?a+="==":(a+=c.charAt((15&n)<<2|i>>6),a+=isNaN(i)?"=":c.charAt(63&i)),t&&a.length>t&&(s+=a.substr(0,t)+"\r\n",a=a.substr(t));return s+=a},a.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t,r,n,i,a="",s=0;s<e.length;)t=u[e.charCodeAt(s++)-43],r=u[e.charCodeAt(s++)-43],n=u[e.charCodeAt(s++)-43],i=u[e.charCodeAt(s++)-43],a+=String.fromCharCode(t<<2|r>>4),64!==n&&(a+=String.fromCharCode((15&r)<<4|n>>2),64!==i&&(a+=String.fromCharCode((3&n)<<6|i)));return a},a.encodeUtf8=function(e){return unescape(encodeURIComponent(e))},a.decodeUtf8=function(e){return decodeURIComponent(escape(e))},a.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:i.encode,decode:i.decode}},a.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)},a.binary.raw.decode=function(e,t,r){var n=t;n||(n=new Uint8Array(e.length));for(var i=r=r||0,a=0;a<e.length;++a)n[i++]=e.charCodeAt(a);return t?i-r:n},a.binary.hex.encode=a.bytesToHex,a.binary.hex.decode=function(e,t,r){var n=t;n||(n=new Uint8Array(Math.ceil(e.length/2)));var i=0,a=r=r||0;for(1&e.length&&(i=1,n[a++]=parseInt(e[0],16));i<e.length;i+=2)n[a++]=parseInt(e.substr(i,2),16);return t?a-r:n},a.binary.base64.encode=function(e,t){for(var r,n,i,a="",s="",o=0;o<e.byteLength;)r=e[o++],n=e[o++],i=e[o++],a+=c.charAt(r>>2),a+=c.charAt((3&r)<<4|n>>4),isNaN(n)?a+="==":(a+=c.charAt((15&n)<<2|i>>6),a+=isNaN(i)?"=":c.charAt(63&i)),t&&a.length>t&&(s+=a.substr(0,t)+"\r\n",a=a.substr(t));return s+=a},a.binary.base64.decode=function(e,t,r){var n,i,a,s,o=t;o||(o=new Uint8Array(3*Math.ceil(e.length/4))),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var c=0,l=r=r||0;c<e.length;)n=u[e.charCodeAt(c++)-43],i=u[e.charCodeAt(c++)-43],a=u[e.charCodeAt(c++)-43],s=u[e.charCodeAt(c++)-43],o[l++]=n<<2|i>>4,64!==a&&(o[l++]=(15&i)<<4|a>>2,64!==s&&(o[l++]=(3&a)<<6|s));return t?l-r:o.subarray(0,l)},a.binary.base58.encode=function(e,t){return a.binary.baseN.encode(e,l,t)},a.binary.base58.decode=function(e,t){return a.binary.baseN.decode(e,l,t)},a.text={utf8:{},utf16:{}},a.text.utf8.encode=function(e,t,r){e=a.encodeUtf8(e);var n=t;n||(n=new Uint8Array(e.length));for(var i=r=r||0,s=0;s<e.length;++s)n[i++]=e.charCodeAt(s);return t?i-r:n},a.text.utf8.decode=function(e){return a.decodeUtf8(String.fromCharCode.apply(null,e))},a.text.utf16.encode=function(e,t,r){var n=t;n||(n=new Uint8Array(2*e.length));for(var i=new Uint16Array(n.buffer),a=r=r||0,s=r,o=0;o<e.length;++o)i[s++]=e.charCodeAt(o),a+=2;return t?a-r:n},a.text.utf16.decode=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))},a.deflate=function(e,t,r){if(t=a.decode64(e.deflate(a.encode64(t)).rval),r){var n=2;32&t.charCodeAt(1)&&(n=6),t=t.substring(n,t.length-4)}return t},a.inflate=function(e,t,r){var n=e.inflate(a.encode64(t)).rval;return null===n?null:a.decode64(n)};var p=function(e,t,r){if(!e)throw new Error("WebStorage not available.");var n;if(null===r?n=e.removeItem(t):(r=a.encode64(JSON.stringify(r)),n=e.setItem(t,r)),void 0!==n&&!0!==n.rval){var i=new Error(n.error.message);throw i.id=n.error.id,i.name=n.error.name,i}},d=function(e,t){if(!e)throw new Error("WebStorage not available.");var r=e.getItem(t);if(e.init)if(null===r.rval){if(r.error){var n=new Error(r.error.message);throw n.id=r.error.id,n.name=r.error.name,n}r=null}else r=r.rval;return null!==r&&(r=JSON.parse(a.decode64(r))),r},f=function(e,t,r,n){var i=d(e,t);null===i&&(i={}),i[r]=n,p(e,t,i)},h=function(e,t,r){var n=d(e,t);return null!==n&&(n=r in n?n[r]:null),n},m=function(e,t,r){var n=d(e,t);if(null!==n&&r in n){delete n[r];var i=!0;for(var a in n){i=!1;break}i&&(n=null),p(e,t,n)}},v=function(e,t){p(e,t,null)},g=function(e,t,r){var n,i=null;void 0===r&&(r=["web","flash"]);var a=!1,s=null;for(var o in r){n=r[o];try{if("flash"===n||"both"===n){if(null===t[0])throw new Error("Flash local storage not available.");i=e.apply(this,t),a="flash"===n}"web"!==n&&"both"!==n||(t[0]=localStorage,i=e.apply(this,t),a=!0)}catch(e){s=e}if(a)break}if(!a)throw s;return i};a.setItem=function(e,t,r,n,i){g(f,arguments,i)},a.getItem=function(e,t,r,n){return g(h,arguments,n)},a.removeItem=function(e,t,r,n){g(m,arguments,n)},a.clearItems=function(e,t,r){g(v,arguments,r)},a.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},a.format=function(e){for(var t,r,n=/%./g,i=0,a=[],s=0;t=n.exec(e);){(r=e.substring(s,n.lastIndex-2)).length>0&&a.push(r),s=n.lastIndex;var o=t[0][1];switch(o){case"s":case"o":i<arguments.length?a.push(arguments[1+i++]):a.push("<?>");break;case"%":a.push("%");break;default:a.push("<%"+o+"?>")}}return a.push(e.substring(s)),a.join("")},a.formatNumber=function(e,t,r,n){var i=e,a=isNaN(t=Math.abs(t))?2:t,s=void 0===r?",":r,o=void 0===n?".":n,c=i<0?"-":"",u=parseInt(i=Math.abs(+i||0).toFixed(a),10)+"",l=u.length>3?u.length%3:0;return c+(l?u.substr(0,l)+o:"")+u.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+o)+(a?s+Math.abs(i-u).toFixed(a).slice(2):"")},a.formatSize=function(e){return e=e>=1073741824?a.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?a.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?a.formatNumber(e/1024,0)+" KiB":a.formatNumber(e,0)+" bytes"},a.bytesFromIP=function(e){return-1!==e.indexOf(".")?a.bytesFromIPv4(e):-1!==e.indexOf(":")?a.bytesFromIPv6(e):null},a.bytesFromIPv4=function(e){if(4!==(e=e.split(".")).length)return null;for(var t=a.createBuffer(),r=0;r<e.length;++r){var n=parseInt(e[r],10);if(isNaN(n))return null;t.putByte(n)}return t.getBytes()},a.bytesFromIPv6=function(e){for(var t=0,r=2*(8-(e=e.split(":").filter((function(e){return 0===e.length&&++t,!0}))).length+t),n=a.createBuffer(),i=0;i<8;++i)if(e[i]&&0!==e[i].length){var s=a.hexToBytes(e[i]);s.length<2&&n.putByte(0),n.putBytes(s)}else n.fillWithByte(0,r),r=0;return n.getBytes()},a.bytesToIP=function(e){return 4===e.length?a.bytesToIPv4(e):16===e.length?a.bytesToIPv6(e):null},a.bytesToIPv4=function(e){if(4!==e.length)return null;for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t.join(".")},a.bytesToIPv6=function(e){if(16!==e.length)return null;for(var t=[],r=[],n=0,i=0;i<e.length;i+=2){for(var s=a.bytesToHex(e[i]+e[i+1]);"0"===s[0]&&"0"!==s;)s=s.substr(1);if("0"===s){var o=r[r.length-1],c=t.length;o&&c===o.end+1?(o.end=c,o.end-o.start>r[n].end-r[n].start&&(n=r.length-1)):r.push({start:c,end:c})}t.push(s)}if(r.length>0){var u=r[n];u.end-u.start>0&&(t.splice(u.start,u.end-u.start+1,""),0===u.start&&t.unshift(""),7===u.end&&t.push(""))}return t.join(":")},a.estimateCores=function(e,t){if("function"==typeof e&&(t=e,e={}),e=e||{},"cores"in a&&!e.update)return t(null,a.cores);if("undefined"!=typeof navigator&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return a.cores=navigator.hardwareConcurrency,t(null,a.cores);if("undefined"==typeof Worker)return a.cores=1,t(null,a.cores);if("undefined"==typeof Blob)return a.cores=2,t(null,a.cores);var r=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",(function(e){for(var t=Date.now(),r=t+4;Date.now()<r;);self.postMessage({st:t,et:r})}))}.toString(),")()"],{type:"application/javascript"}));!function e(n,i,s){if(0===i){var o=Math.floor(n.reduce((function(e,t){return e+t}),0)/n.length);return a.cores=Math.max(1,o),URL.revokeObjectURL(r),t(null,a.cores)}!function(e,t){for(var n=[],i=[],a=0;a<e;++a){var s=new Worker(r);s.addEventListener("message",(function(r){if(i.push(r.data),i.length===e){for(var a=0;a<e;++a)n[a].terminate();t(null,i)}})),n.push(s)}for(a=0;a<e;++a)n[a].postMessage(a)}(s,(function(t,r){n.push(function(e,t){for(var r=[],n=0;n<e;++n)for(var i=t[n],a=r[n]=[],s=0;s<e;++s)if(n!==s){var o=t[s];(i.st>o.st&&i.st<o.et||o.st>i.st&&o.st<i.et)&&a.push(s)}return r.reduce((function(e,t){return Math.max(e,t.length)}),0)}(s,r)),e(n,i-1,s)}))}([],5,16)}},6011:(e,t,r)=>{var n=r(276);r(9504),r(2746),r(9095),r(8106),r(1373),r(6418),r(2385),r(1417),r(5805),r(7619);var i=n.asn1,a=e.exports=n.pki=n.pki||{},s=a.oids,o={};o.CN=s.commonName,o.commonName="CN",o.C=s.countryName,o.countryName="C",o.L=s.localityName,o.localityName="L",o.ST=s.stateOrProvinceName,o.stateOrProvinceName="ST",o.O=s.organizationName,o.organizationName="O",o.OU=s.organizationalUnitName,o.organizationalUnitName="OU",o.E=s.emailAddress,o.emailAddress="E";var c=n.pki.rsa.publicKeyValidator,u={name:"Certificate",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:i.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:i.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:i.Class.UNIVERSAL,type:i.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:i.Class.UNIVERSAL,type:i.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:i.Class.UNIVERSAL,type:i.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:i.Class.UNIVERSAL,type:i.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},c,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:i.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:i.Class.UNIVERSAL,type:i.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:i.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:i.Class.UNIVERSAL,type:i.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:i.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:i.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:i.Class.UNIVERSAL,type:i.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},l={name:"rsapss",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:i.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:i.Class.UNIVERSAL,type:i.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:i.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:i.Class.UNIVERSAL,type:i.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:i.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:i.Class.UNIVERSAL,type:i.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:i.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:i.Class.UNIVERSAL,type:i.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},p={name:"CertificationRequestInfo",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:i.Class.UNIVERSAL,type:i.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},c,{name:"CertificationRequestInfo.attributes",tagClass:i.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:i.Class.UNIVERSAL,type:i.Type.SET,constructed:!0}]}]}]},d={name:"CertificationRequest",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[p,{name:"CertificationRequest.signatureAlgorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:i.Class.UNIVERSAL,type:i.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:i.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:i.Class.UNIVERSAL,type:i.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};function f(e,t){"string"==typeof t&&(t={shortName:t});for(var r,n=null,i=0;null===n&&i<e.attributes.length;++i)r=e.attributes[i],(t.type&&t.type===r.type||t.name&&t.name===r.name||t.shortName&&t.shortName===r.shortName)&&(n=r);return n}a.RDNAttributesAsArray=function(e,t){for(var r,n,a,c=[],u=0;u<e.value.length;++u){r=e.value[u];for(var l=0;l<r.value.length;++l)a={},n=r.value[l],a.type=i.derToOid(n.value[0].value),a.value=n.value[1].value,a.valueTagClass=n.value[1].type,a.type in s&&(a.name=s[a.type],a.name in o&&(a.shortName=o[a.name])),t&&(t.update(a.type),t.update(a.value)),c.push(a)}return c},a.CRIAttributesAsArray=function(e){for(var t=[],r=0;r<e.length;++r)for(var n=e[r],c=i.derToOid(n.value[0].value),u=n.value[1].value,l=0;l<u.length;++l){var p={};if(p.type=c,p.value=u[l].value,p.valueTagClass=u[l].type,p.type in s&&(p.name=s[p.type],p.name in o&&(p.shortName=o[p.name])),p.type===s.extensionRequest){p.extensions=[];for(var d=0;d<p.value.length;++d)p.extensions.push(a.certificateExtensionFromAsn1(p.value[d]))}t.push(p)}return t};var h=function(e,t,r){var n={};if(e!==s["RSASSA-PSS"])return n;r&&(n={hash:{algorithmOid:s.sha1},mgf:{algorithmOid:s.mgf1,hash:{algorithmOid:s.sha1}},saltLength:20});var a={},o=[];if(!i.validate(t,l,a,o)){var c=new Error("Cannot read RSASSA-PSS parameter block.");throw c.errors=o,c}return void 0!==a.hashOid&&(n.hash=n.hash||{},n.hash.algorithmOid=i.derToOid(a.hashOid)),void 0!==a.maskGenOid&&(n.mgf=n.mgf||{},n.mgf.algorithmOid=i.derToOid(a.maskGenOid),n.mgf.hash=n.mgf.hash||{},n.mgf.hash.algorithmOid=i.derToOid(a.maskGenHashOid)),void 0!==a.saltLength&&(n.saltLength=a.saltLength.charCodeAt(0)),n},m=function(e){switch(s[e.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return n.md.sha1.create();case"md5WithRSAEncryption":return n.md.md5.create();case"sha256WithRSAEncryption":case"RSASSA-PSS":return n.md.sha256.create();case"sha384WithRSAEncryption":return n.md.sha384.create();case"sha512WithRSAEncryption":return n.md.sha512.create();default:var t=new Error("Could not compute "+e.type+" digest. Unknown signature OID.");throw t.signatureOid=e.signatureOid,t}},v=function(e){var t,r=e.certificate;switch(r.signatureOid){case s.sha1WithRSAEncryption:case s.sha1WithRSASignature:break;case s["RSASSA-PSS"]:var i,a,o;if(void 0===(i=s[r.signatureParameters.mgf.hash.algorithmOid])||void 0===n.md[i])throw(o=new Error("Unsupported MGF hash function.")).oid=r.signatureParameters.mgf.hash.algorithmOid,o.name=i,o;if(void 0===(a=s[r.signatureParameters.mgf.algorithmOid])||void 0===n.mgf[a])throw(o=new Error("Unsupported MGF function.")).oid=r.signatureParameters.mgf.algorithmOid,o.name=a,o;if(a=n.mgf[a].create(n.md[i].create()),void 0===(i=s[r.signatureParameters.hash.algorithmOid])||void 0===n.md[i])throw(o=new Error("Unsupported RSASSA-PSS hash function.")).oid=r.signatureParameters.hash.algorithmOid,o.name=i,o;t=n.pss.create(n.md[i].create(),a,r.signatureParameters.saltLength)}return r.publicKey.verify(e.md.digest().getBytes(),e.signature,t)};function g(e){for(var t,r,a=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[]),s=e.attributes,o=0;o<s.length;++o){var c=(t=s[o]).value,u=i.Type.PRINTABLESTRING;"valueTagClass"in t&&(u=t.valueTagClass)===i.Type.UTF8&&(c=n.util.encodeUtf8(c)),r=i.create(i.Class.UNIVERSAL,i.Type.SET,!0,[i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(t.type).getBytes()),i.create(i.Class.UNIVERSAL,u,!1,c)])]),a.value.push(r)}return a}function y(e){for(var t,r=0;r<e.length;++r){if(void 0===(t=e[r]).name&&(t.type&&t.type in a.oids?t.name=a.oids[t.type]:t.shortName&&t.shortName in o&&(t.name=a.oids[o[t.shortName]])),void 0===t.type){if(!t.name||!(t.name in a.oids))throw(c=new Error("Attribute type not specified.")).attribute=t,c;t.type=a.oids[t.name]}if(void 0===t.shortName&&t.name&&t.name in o&&(t.shortName=o[t.name]),t.type===s.extensionRequest&&(t.valueConstructed=!0,t.valueTagClass=i.Type.SEQUENCE,!t.value&&t.extensions)){t.value=[];for(var n=0;n<t.extensions.length;++n)t.value.push(a.certificateExtensionToAsn1(E(t.extensions[n])))}var c;if(void 0===t.value)throw(c=new Error("Attribute value not specified.")).attribute=t,c}}function E(e,t){if(t=t||{},void 0===e.name&&e.id&&e.id in a.oids&&(e.name=a.oids[e.id]),void 0===e.id){if(!e.name||!(e.name in a.oids))throw(b=new Error("Extension ID not specified.")).extension=e,b;e.id=a.oids[e.name]}if(void 0!==e.value)return e;if("keyUsage"===e.name){var r=0,o=0,c=0;e.digitalSignature&&(o|=128,r=7),e.nonRepudiation&&(o|=64,r=6),e.keyEncipherment&&(o|=32,r=5),e.dataEncipherment&&(o|=16,r=4),e.keyAgreement&&(o|=8,r=3),e.keyCertSign&&(o|=4,r=2),e.cRLSign&&(o|=2,r=1),e.encipherOnly&&(o|=1,r=0),e.decipherOnly&&(c|=128,r=7);var u=String.fromCharCode(r);0!==c?u+=String.fromCharCode(o)+String.fromCharCode(c):0!==o&&(u+=String.fromCharCode(o)),e.value=i.create(i.Class.UNIVERSAL,i.Type.BITSTRING,!1,u)}else if("basicConstraints"===e.name)e.value=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[]),e.cA&&e.value.value.push(i.create(i.Class.UNIVERSAL,i.Type.BOOLEAN,!1,String.fromCharCode(255))),"pathLenConstraint"in e&&e.value.value.push(i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(e.pathLenConstraint).getBytes()));else if("extKeyUsage"===e.name){e.value=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[]);var l=e.value.value;for(var p in e)!0===e[p]&&(p in s?l.push(i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(s[p]).getBytes())):-1!==p.indexOf(".")&&l.push(i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(p).getBytes())))}else if("nsCertType"===e.name){r=0,o=0;e.client&&(o|=128,r=7),e.server&&(o|=64,r=6),e.email&&(o|=32,r=5),e.objsign&&(o|=16,r=4),e.reserved&&(o|=8,r=3),e.sslCA&&(o|=4,r=2),e.emailCA&&(o|=2,r=1),e.objCA&&(o|=1,r=0);u=String.fromCharCode(r);0!==o&&(u+=String.fromCharCode(o)),e.value=i.create(i.Class.UNIVERSAL,i.Type.BITSTRING,!1,u)}else if("subjectAltName"===e.name||"issuerAltName"===e.name){e.value=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[]);for(var d=0;d<e.altNames.length;++d){u=(y=e.altNames[d]).value;if(7===y.type&&y.ip){if(null===(u=n.util.bytesFromIP(y.ip)))throw(b=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.')).extension=e,b}else 8===y.type&&(u=y.oid?i.oidToDer(i.oidToDer(y.oid)):i.oidToDer(u));e.value.value.push(i.create(i.Class.CONTEXT_SPECIFIC,y.type,!1,u))}}else if("nsComment"===e.name&&t.cert){if(!/^[\x00-\x7F]*$/.test(e.comment)||e.comment.length<1||e.comment.length>128)throw new Error('Invalid "nsComment" content.');e.value=i.create(i.Class.UNIVERSAL,i.Type.IA5STRING,!1,e.comment)}else if("subjectKeyIdentifier"===e.name&&t.cert){var f=t.cert.generateSubjectKeyIdentifier();e.subjectKeyIdentifier=f.toHex(),e.value=i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,f.getBytes())}else if("authorityKeyIdentifier"===e.name&&t.cert){e.value=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[]);l=e.value.value;if(e.keyIdentifier){var h=!0===e.keyIdentifier?t.cert.generateSubjectKeyIdentifier().getBytes():e.keyIdentifier;l.push(i.create(i.Class.CONTEXT_SPECIFIC,0,!1,h))}if(e.authorityCertIssuer){var m=[i.create(i.Class.CONTEXT_SPECIFIC,4,!0,[g(!0===e.authorityCertIssuer?t.cert.issuer:e.authorityCertIssuer)])];l.push(i.create(i.Class.CONTEXT_SPECIFIC,1,!0,m))}if(e.serialNumber){var v=n.util.hexToBytes(!0===e.serialNumber?t.cert.serialNumber:e.serialNumber);l.push(i.create(i.Class.CONTEXT_SPECIFIC,2,!1,v))}}else if("cRLDistributionPoints"===e.name){e.value=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[]);l=e.value.value;var y,E=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[]),_=i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[]);for(d=0;d<e.altNames.length;++d){u=(y=e.altNames[d]).value;if(7===y.type&&y.ip){if(null===(u=n.util.bytesFromIP(y.ip)))throw(b=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.')).extension=e,b}else 8===y.type&&(u=y.oid?i.oidToDer(i.oidToDer(y.oid)):i.oidToDer(u));_.value.push(i.create(i.Class.CONTEXT_SPECIFIC,y.type,!1,u))}E.value.push(i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[_])),l.push(E)}var b;if(void 0===e.value)throw(b=new Error("Extension value not specified.")).extension=e,b;return e}function _(e,t){if(e===s["RSASSA-PSS"]){var r=[];return void 0!==t.hash.algorithmOid&&r.push(i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(t.hash.algorithmOid).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.NULL,!1,"")])])),void 0!==t.mgf.algorithmOid&&r.push(i.create(i.Class.CONTEXT_SPECIFIC,1,!0,[i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(t.mgf.algorithmOid).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(t.mgf.hash.algorithmOid).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.NULL,!1,"")])])])),void 0!==t.saltLength&&r.push(i.create(i.Class.CONTEXT_SPECIFIC,2,!0,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(t.saltLength).getBytes())])),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,r)}return i.create(i.Class.UNIVERSAL,i.Type.NULL,!1,"")}function b(e){var t=i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[]);if(0===e.attributes.length)return t;for(var r=e.attributes,a=0;a<r.length;++a){var s=r[a],o=s.value,c=i.Type.UTF8;"valueTagClass"in s&&(c=s.valueTagClass),c===i.Type.UTF8&&(o=n.util.encodeUtf8(o));var u=!1;"valueConstructed"in s&&(u=s.valueConstructed);var l=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(s.type).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SET,!0,[i.create(i.Class.UNIVERSAL,c,u,o)])]);t.value.push(l)}return t}a.certificateFromPem=function(e,t,r){var s=n.pem.decode(e)[0];if("CERTIFICATE"!==s.type&&"X509 CERTIFICATE"!==s.type&&"TRUSTED CERTIFICATE"!==s.type){var o=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw o.headerType=s.type,o}if(s.procType&&"ENCRYPTED"===s.procType.type)throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var c=i.fromDer(s.body,r);return a.certificateFromAsn1(c,t)},a.certificateToPem=function(e,t){var r={type:"CERTIFICATE",body:i.toDer(a.certificateToAsn1(e)).getBytes()};return n.pem.encode(r,{maxline:t})},a.publicKeyFromPem=function(e){var t=n.pem.decode(e)[0];if("PUBLIC KEY"!==t.type&&"RSA PUBLIC KEY"!==t.type){var r=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw r.headerType=t.type,r}if(t.procType&&"ENCRYPTED"===t.procType.type)throw new Error("Could not convert public key from PEM; PEM is encrypted.");var s=i.fromDer(t.body);return a.publicKeyFromAsn1(s)},a.publicKeyToPem=function(e,t){var r={type:"PUBLIC KEY",body:i.toDer(a.publicKeyToAsn1(e)).getBytes()};return n.pem.encode(r,{maxline:t})},a.publicKeyToRSAPublicKeyPem=function(e,t){var r={type:"RSA PUBLIC KEY",body:i.toDer(a.publicKeyToRSAPublicKey(e)).getBytes()};return n.pem.encode(r,{maxline:t})},a.getPublicKeyFingerprint=function(e,t){var r,s=(t=t||{}).md||n.md.sha1.create();switch(t.type||"RSAPublicKey"){case"RSAPublicKey":r=i.toDer(a.publicKeyToRSAPublicKey(e)).getBytes();break;case"SubjectPublicKeyInfo":r=i.toDer(a.publicKeyToAsn1(e)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+t.type+'".')}s.start(),s.update(r);var o=s.digest();if("hex"===t.encoding){var c=o.toHex();return t.delimiter?c.match(/.{2}/g).join(t.delimiter):c}if("binary"===t.encoding)return o.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".');return o},a.certificationRequestFromPem=function(e,t,r){var s=n.pem.decode(e)[0];if("CERTIFICATE REQUEST"!==s.type){var o=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw o.headerType=s.type,o}if(s.procType&&"ENCRYPTED"===s.procType.type)throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var c=i.fromDer(s.body,r);return a.certificationRequestFromAsn1(c,t)},a.certificationRequestToPem=function(e,t){var r={type:"CERTIFICATE REQUEST",body:i.toDer(a.certificationRequestToAsn1(e)).getBytes()};return n.pem.encode(r,{maxline:t})},a.createCertificate=function(){var e={version:2,serialNumber:"00",signatureOid:null,signature:null,siginfo:{}};return e.siginfo.algorithmOid=null,e.validity={},e.validity.notBefore=new Date,e.validity.notAfter=new Date,e.issuer={},e.issuer.getField=function(t){return f(e.issuer,t)},e.issuer.addField=function(t){y([t]),e.issuer.attributes.push(t)},e.issuer.attributes=[],e.issuer.hash=null,e.subject={},e.subject.getField=function(t){return f(e.subject,t)},e.subject.addField=function(t){y([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.extensions=[],e.publicKey=null,e.md=null,e.setSubject=function(t,r){y(t),e.subject.attributes=t,delete e.subject.uniqueId,r&&(e.subject.uniqueId=r),e.subject.hash=null},e.setIssuer=function(t,r){y(t),e.issuer.attributes=t,delete e.issuer.uniqueId,r&&(e.issuer.uniqueId=r),e.issuer.hash=null},e.setExtensions=function(t){for(var r=0;r<t.length;++r)E(t[r],{cert:e});e.extensions=t},e.getExtension=function(t){"string"==typeof t&&(t={name:t});for(var r,n=null,i=0;null===n&&i<e.extensions.length;++i)r=e.extensions[i],(t.id&&r.id===t.id||t.name&&r.name===t.name)&&(n=r);return n},e.sign=function(t,r){e.md=r||n.md.sha1.create();var o=s[e.md.algorithm+"WithRSAEncryption"];if(!o){var c=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw c.algorithm=e.md.algorithm,c}e.signatureOid=e.siginfo.algorithmOid=o,e.tbsCertificate=a.getTBSCertificate(e);var u=i.toDer(e.tbsCertificate);e.md.update(u.getBytes()),e.signature=t.sign(e.md)},e.verify=function(t){var r=!1;if(!e.issued(t)){var n=t.issuer,s=e.subject,o=new Error("The parent certificate did not issue the given child certificate; the child certificate's issuer does not match the parent's subject.");throw o.expectedIssuer=s.attributes,o.actualIssuer=n.attributes,o}var c=t.md;if(null===c){c=m({signatureOid:t.signatureOid,type:"certificate"});var u=t.tbsCertificate||a.getTBSCertificate(t),l=i.toDer(u);c.update(l.getBytes())}return null!==c&&(r=v({certificate:e,md:c,signature:t.signature})),r},e.isIssuer=function(t){var r=!1,n=e.issuer,i=t.subject;if(n.hash&&i.hash)r=n.hash===i.hash;else if(n.attributes.length===i.attributes.length){var a,s;r=!0;for(var o=0;r&&o<n.attributes.length;++o)a=n.attributes[o],s=i.attributes[o],a.type===s.type&&a.value===s.value||(r=!1)}return r},e.issued=function(t){return t.isIssuer(e)},e.generateSubjectKeyIdentifier=function(){return a.getPublicKeyFingerprint(e.publicKey,{type:"RSAPublicKey"})},e.verifySubjectKeyIdentifier=function(){for(var t=s.subjectKeyIdentifier,r=0;r<e.extensions.length;++r){var i=e.extensions[r];if(i.id===t){var a=e.generateSubjectKeyIdentifier().getBytes();return n.util.hexToBytes(i.subjectKeyIdentifier)===a}}return!1},e},a.certificateFromAsn1=function(e,t){var r={},s=[];if(!i.validate(e,u,r,s)){var o=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw o.errors=s,o}if(i.derToOid(r.publicKeyOid)!==a.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var c=a.createCertificate();c.version=r.certVersion?r.certVersion.charCodeAt(0):0;var l=n.util.createBuffer(r.certSerialNumber);c.serialNumber=l.toHex(),c.signatureOid=n.asn1.derToOid(r.certSignatureOid),c.signatureParameters=h(c.signatureOid,r.certSignatureParams,!0),c.siginfo.algorithmOid=n.asn1.derToOid(r.certinfoSignatureOid),c.siginfo.parameters=h(c.siginfo.algorithmOid,r.certinfoSignatureParams,!1),c.signature=r.certSignature;var p=[];if(void 0!==r.certValidity1UTCTime&&p.push(i.utcTimeToDate(r.certValidity1UTCTime)),void 0!==r.certValidity2GeneralizedTime&&p.push(i.generalizedTimeToDate(r.certValidity2GeneralizedTime)),void 0!==r.certValidity3UTCTime&&p.push(i.utcTimeToDate(r.certValidity3UTCTime)),void 0!==r.certValidity4GeneralizedTime&&p.push(i.generalizedTimeToDate(r.certValidity4GeneralizedTime)),p.length>2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(p.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(c.validity.notBefore=p[0],c.validity.notAfter=p[1],c.tbsCertificate=r.tbsCertificate,t){c.md=m({signatureOid:c.signatureOid,type:"certificate"});var d=i.toDer(c.tbsCertificate);c.md.update(d.getBytes())}var v=n.md.sha1.create(),g=i.toDer(r.certIssuer);v.update(g.getBytes()),c.issuer.getField=function(e){return f(c.issuer,e)},c.issuer.addField=function(e){y([e]),c.issuer.attributes.push(e)},c.issuer.attributes=a.RDNAttributesAsArray(r.certIssuer),r.certIssuerUniqueId&&(c.issuer.uniqueId=r.certIssuerUniqueId),c.issuer.hash=v.digest().toHex();var E=n.md.sha1.create(),_=i.toDer(r.certSubject);return E.update(_.getBytes()),c.subject.getField=function(e){return f(c.subject,e)},c.subject.addField=function(e){y([e]),c.subject.attributes.push(e)},c.subject.attributes=a.RDNAttributesAsArray(r.certSubject),r.certSubjectUniqueId&&(c.subject.uniqueId=r.certSubjectUniqueId),c.subject.hash=E.digest().toHex(),r.certExtensions?c.extensions=a.certificateExtensionsFromAsn1(r.certExtensions):c.extensions=[],c.publicKey=a.publicKeyFromAsn1(r.subjectPublicKeyInfo),c},a.certificateExtensionsFromAsn1=function(e){for(var t=[],r=0;r<e.value.length;++r)for(var n=e.value[r],i=0;i<n.value.length;++i)t.push(a.certificateExtensionFromAsn1(n.value[i]));return t},a.certificateExtensionFromAsn1=function(e){var t={};if(t.id=i.derToOid(e.value[0].value),t.critical=!1,e.value[1].type===i.Type.BOOLEAN?(t.critical=0!==e.value[1].value.charCodeAt(0),t.value=e.value[2].value):t.value=e.value[1].value,t.id in s)if(t.name=s[t.id],"keyUsage"===t.name){var r=0,a=0;(c=i.fromDer(t.value)).value.length>1&&(r=c.value.charCodeAt(1),a=c.value.length>2?c.value.charCodeAt(2):0),t.digitalSignature=!(128&~r),t.nonRepudiation=!(64&~r),t.keyEncipherment=!(32&~r),t.dataEncipherment=!(16&~r),t.keyAgreement=!(8&~r),t.keyCertSign=!(4&~r),t.cRLSign=!(2&~r),t.encipherOnly=!(1&~r),t.decipherOnly=!(128&~a)}else if("basicConstraints"===t.name){(c=i.fromDer(t.value)).value.length>0&&c.value[0].type===i.Type.BOOLEAN?t.cA=0!==c.value[0].value.charCodeAt(0):t.cA=!1;var o=null;c.value.length>0&&c.value[0].type===i.Type.INTEGER?o=c.value[0].value:c.value.length>1&&(o=c.value[1].value),null!==o&&(t.pathLenConstraint=i.derToInteger(o))}else if("extKeyUsage"===t.name)for(var c=i.fromDer(t.value),u=0;u<c.value.length;++u){var l=i.derToOid(c.value[u].value);l in s?t[s[l]]=!0:t[l]=!0}else if("nsCertType"===t.name){r=0;(c=i.fromDer(t.value)).value.length>1&&(r=c.value.charCodeAt(1)),t.client=!(128&~r),t.server=!(64&~r),t.email=!(32&~r),t.objsign=!(16&~r),t.reserved=!(8&~r),t.sslCA=!(4&~r),t.emailCA=!(2&~r),t.objCA=!(1&~r)}else if("subjectAltName"===t.name||"issuerAltName"===t.name){var p;t.altNames=[];c=i.fromDer(t.value);for(var d=0;d<c.value.length;++d){var f={type:(p=c.value[d]).type,value:p.value};switch(t.altNames.push(f),p.type){case 1:case 2:case 6:break;case 7:f.ip=n.util.bytesToIP(p.value);break;case 8:f.oid=i.derToOid(p.value)}}}else if("subjectKeyIdentifier"===t.name){c=i.fromDer(t.value);t.subjectKeyIdentifier=n.util.bytesToHex(c.value)}return t},a.certificationRequestFromAsn1=function(e,t){var r={},s=[];if(!i.validate(e,d,r,s)){var o=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw o.errors=s,o}if(i.derToOid(r.publicKeyOid)!==a.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var c=a.createCertificationRequest();if(c.version=r.csrVersion?r.csrVersion.charCodeAt(0):0,c.signatureOid=n.asn1.derToOid(r.csrSignatureOid),c.signatureParameters=h(c.signatureOid,r.csrSignatureParams,!0),c.siginfo.algorithmOid=n.asn1.derToOid(r.csrSignatureOid),c.siginfo.parameters=h(c.siginfo.algorithmOid,r.csrSignatureParams,!1),c.signature=r.csrSignature,c.certificationRequestInfo=r.certificationRequestInfo,t){c.md=m({signatureOid:c.signatureOid,type:"certification request"});var u=i.toDer(c.certificationRequestInfo);c.md.update(u.getBytes())}var l=n.md.sha1.create();return c.subject.getField=function(e){return f(c.subject,e)},c.subject.addField=function(e){y([e]),c.subject.attributes.push(e)},c.subject.attributes=a.RDNAttributesAsArray(r.certificationRequestInfoSubject,l),c.subject.hash=l.digest().toHex(),c.publicKey=a.publicKeyFromAsn1(r.subjectPublicKeyInfo),c.getAttribute=function(e){return f(c,e)},c.addAttribute=function(e){y([e]),c.attributes.push(e)},c.attributes=a.CRIAttributesAsArray(r.certificationRequestInfoAttributes||[]),c},a.createCertificationRequest=function(){var e={version:0,signatureOid:null,signature:null,siginfo:{}};return e.siginfo.algorithmOid=null,e.subject={},e.subject.getField=function(t){return f(e.subject,t)},e.subject.addField=function(t){y([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.publicKey=null,e.attributes=[],e.getAttribute=function(t){return f(e,t)},e.addAttribute=function(t){y([t]),e.attributes.push(t)},e.md=null,e.setSubject=function(t){y(t),e.subject.attributes=t,e.subject.hash=null},e.setAttributes=function(t){y(t),e.attributes=t},e.sign=function(t,r){e.md=r||n.md.sha1.create();var o=s[e.md.algorithm+"WithRSAEncryption"];if(!o){var c=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw c.algorithm=e.md.algorithm,c}e.signatureOid=e.siginfo.algorithmOid=o,e.certificationRequestInfo=a.getCertificationRequestInfo(e);var u=i.toDer(e.certificationRequestInfo);e.md.update(u.getBytes()),e.signature=t.sign(e.md)},e.verify=function(){var t=!1,r=e.md;if(null===r){r=m({signatureOid:e.signatureOid,type:"certification request"});var n=e.certificationRequestInfo||a.getCertificationRequestInfo(e),s=i.toDer(n);r.update(s.getBytes())}return null!==r&&(t=v({certificate:e,md:r,signature:e.signature})),t},e};var x=new Date("1950-01-01T00:00:00Z"),C=new Date("2050-01-01T00:00:00Z");function w(e){return e>=x&&e<C?i.create(i.Class.UNIVERSAL,i.Type.UTCTIME,!1,i.dateToUtcTime(e)):i.create(i.Class.UNIVERSAL,i.Type.GENERALIZEDTIME,!1,i.dateToGeneralizedTime(e))}a.getTBSCertificate=function(e){var t=w(e.validity.notBefore),r=w(e.validity.notAfter),s=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.CONTEXT_SPECIFIC,0,!0,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(e.version).getBytes())]),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,n.util.hexToBytes(e.serialNumber)),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.siginfo.algorithmOid).getBytes()),_(e.siginfo.algorithmOid,e.siginfo.parameters)]),g(e.issuer),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[t,r]),g(e.subject),a.publicKeyToAsn1(e.publicKey)]);return e.issuer.uniqueId&&s.value.push(i.create(i.Class.CONTEXT_SPECIFIC,1,!0,[i.create(i.Class.UNIVERSAL,i.Type.BITSTRING,!1,String.fromCharCode(0)+e.issuer.uniqueId)])),e.subject.uniqueId&&s.value.push(i.create(i.Class.CONTEXT_SPECIFIC,2,!0,[i.create(i.Class.UNIVERSAL,i.Type.BITSTRING,!1,String.fromCharCode(0)+e.subject.uniqueId)])),e.extensions.length>0&&s.value.push(a.certificateExtensionsToAsn1(e.extensions)),s},a.getCertificationRequestInfo=function(e){return i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,!1,i.integerToDer(e.version).getBytes()),g(e.subject),a.publicKeyToAsn1(e.publicKey),b(e)])},a.distinguishedNameToAsn1=function(e){return g(e)},a.certificateToAsn1=function(e){var t=e.tbsCertificate||a.getTBSCertificate(e);return i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[t,i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.signatureOid).getBytes()),_(e.signatureOid,e.signatureParameters)]),i.create(i.Class.UNIVERSAL,i.Type.BITSTRING,!1,String.fromCharCode(0)+e.signature)])},a.certificateExtensionsToAsn1=function(e){var t=i.create(i.Class.CONTEXT_SPECIFIC,3,!0,[]),r=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[]);t.value.push(r);for(var n=0;n<e.length;++n)r.value.push(a.certificateExtensionToAsn1(e[n]));return t},a.certificateExtensionToAsn1=function(e){var t=i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[]);t.value.push(i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.id).getBytes())),e.critical&&t.value.push(i.create(i.Class.UNIVERSAL,i.Type.BOOLEAN,!1,String.fromCharCode(255)));var r=e.value;return"string"!=typeof e.value&&(r=i.toDer(r).getBytes()),t.value.push(i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,!1,r)),t},a.certificationRequestToAsn1=function(e){var t=e.certificationRequestInfo||a.getCertificationRequestInfo(e);return i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[t,i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,!0,[i.create(i.Class.UNIVERSAL,i.Type.OID,!1,i.oidToDer(e.signatureOid).getBytes()),_(e.signatureOid,e.signatureParameters)]),i.create(i.Class.UNIVERSAL,i.Type.BITSTRING,!1,String.fromCharCode(0)+e.signature)])},a.createCaStore=function(e){var t={certs:{}};function r(e){return s(e),t.certs[e.hash]||null}function s(e){if(!e.hash){var t=n.md.sha1.create();e.attributes=a.RDNAttributesAsArray(g(e),t),e.hash=t.digest().toHex()}}if(t.getIssuer=function(e){return r(e.issuer)},t.addCertificate=function(e){if("string"==typeof e&&(e=n.pki.certificateFromPem(e)),s(e.subject),!t.hasCertificate(e))if(e.subject.hash in t.certs){var r=t.certs[e.subject.hash];n.util.isArray(r)||(r=[r]),r.push(e),t.certs[e.subject.hash]=r}else t.certs[e.subject.hash]=e},t.hasCertificate=function(e){"string"==typeof e&&(e=n.pki.certificateFromPem(e));var t=r(e.subject);if(!t)return!1;n.util.isArray(t)||(t=[t]);for(var s=i.toDer(a.certificateToAsn1(e)).getBytes(),o=0;o<t.length;++o){if(s===i.toDer(a.certificateToAsn1(t[o])).getBytes())return!0}return!1},t.listAllCertificates=function(){var e=[];for(var r in t.certs)if(t.certs.hasOwnProperty(r)){var i=t.certs[r];if(n.util.isArray(i))for(var a=0;a<i.length;++a)e.push(i[a]);else e.push(i)}return e},t.removeCertificate=function(e){var o;if("string"==typeof e&&(e=n.pki.certificateFromPem(e)),s(e.subject),!t.hasCertificate(e))return null;var c=r(e.subject);if(!n.util.isArray(c))return o=t.certs[e.subject.hash],delete t.certs[e.subject.hash],o;for(var u=i.toDer(a.certificateToAsn1(e)).getBytes(),l=0;l<c.length;++l){u===i.toDer(a.certificateToAsn1(c[l])).getBytes()&&(o=c[l],c.splice(l,1))}return 0===c.length&&delete t.certs[e.subject.hash],o},e)for(var o=0;o<e.length;++o){var c=e[o];t.addCertificate(c)}return t},a.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"},a.verifyCertificateChain=function(e,t,r){"function"==typeof r&&(r={verify:r}),r=r||{};var i=(t=t.slice(0)).slice(0),s=r.validityCheckDate;void 0===s&&(s=new Date);var o=!0,c=null,u=0;do{var l=t.shift(),p=null,d=!1;if(s&&(s<l.validity.notBefore||s>l.validity.notAfter)&&(c={message:"Certificate is not valid yet or has expired.",error:a.certificateError.certificate_expired,notBefore:l.validity.notBefore,notAfter:l.validity.notAfter,now:s}),null===c){if(null===(p=t[0]||e.getIssuer(l))&&l.isIssuer(l)&&(d=!0,p=l),p){var f=p;n.util.isArray(f)||(f=[f]);for(var h=!1;!h&&f.length>0;){p=f.shift();try{h=p.verify(l)}catch(e){}}h||(c={message:"Certificate signature is invalid.",error:a.certificateError.bad_certificate})}null!==c||p&&!d||e.hasCertificate(l)||(c={message:"Certificate is not trusted.",error:a.certificateError.unknown_ca})}if(null===c&&p&&!l.isIssuer(p)&&(c={message:"Certificate issuer is invalid.",error:a.certificateError.bad_certificate}),null===c)for(var m={keyUsage:!0,basicConstraints:!0},v=0;null===c&&v<l.extensions.length;++v){var g=l.extensions[v];g.critical&&!(g.name in m)&&(c={message:"Certificate has an unsupported critical extension.",error:a.certificateError.unsupported_certificate})}if(null===c&&(!o||0===t.length&&(!p||d))){var y=l.getExtension("basicConstraints"),E=l.getExtension("keyUsage");if(null!==E&&(E.keyCertSign&&null!==y||(c={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:a.certificateError.bad_certificate})),null!==c||null===y||y.cA||(c={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:a.certificateError.bad_certificate}),null===c&&null!==E&&"pathLenConstraint"in y)u-1>y.pathLenConstraint&&(c={message:"Certificate basicConstraints pathLenConstraint violated.",error:a.certificateError.bad_certificate})}var _=null===c||c.error,b=r.verify?r.verify(_,u,i):_;if(!0!==b)throw!0===_&&(c={message:"The application rejected the certificate.",error:a.certificateError.bad_certificate}),(b||0===b)&&("object"!=typeof b||n.util.isArray(b)?"string"==typeof b&&(c.error=b):(b.message&&(c.message=b.message),b.error&&(c.error=b.error))),c;c=null,o=!1,++u}while(t.length>0);return!0}},3519:(e,t,r)=>{var n=r(6587);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function a(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=n(i),e.exports.strict=n(a),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return a(this)},configurable:!0})}))},2641:e=>{"use strict";function t(e){return"/"===e.charAt(0)}function r(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}e.exports="win32"===process.platform?r:t,e.exports.posix=t,e.exports.win32=r},9376:e=>{"use strict";const t=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};e.exports=t,e.exports.default=t},6504:(e,t,r)=>{"use strict";var n=r(7016).parse,i={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},a=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function s(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}t.getProxyForUrl=function(e){var t="string"==typeof e?n(e):e||{},r=t.protocol,o=t.host,c=t.port;if("string"!=typeof o||!o||"string"!=typeof r)return"";if(r=r.split(":",1)[0],!function(e,t){var r=(s("npm_config_no_proxy")||s("no_proxy")).toLowerCase();if(!r)return!0;if("*"===r)return!1;return r.split(/[,\s]/).every((function(r){if(!r)return!0;var n=r.match(/^(.+):(\d+)$/),i=n?n[1]:r,s=n?parseInt(n[2]):0;return!(!s||s===t)||(/^[.*]/.test(i)?("*"===i.charAt(0)&&(i=i.slice(1)),!a.call(e,i)):e!==i)}))}(o=o.replace(/:\d*$/,""),c=parseInt(c)||i[r]||0))return"";var u=s("npm_config_"+r+"_proxy")||s(r+"_proxy")||s("npm_config_proxy")||s("all_proxy");return u&&-1===u.indexOf("://")&&(u=r+"://"+u),u}},4043:(e,t,r)=>{!function(e){e.parser=function(e,t){return new i(e,t)},e.SAXParser=i,e.SAXStream=s,e.createStream=function(e,t){return new s(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(t,r){if(!(this instanceof i))return new i(t,r);var a=this;!function(e){for(var t=0,r=n.length;t<r;t++)e[n[t]]=""}(a),a.q=a.c="",a.bufferCheckPosition=e.MAX_BUFFER_LENGTH,a.opt=r||{},a.opt.lowercase=a.opt.lowercase||a.opt.lowercasetags,a.looseCase=a.opt.lowercase?"toLowerCase":"toUpperCase",a.tags=[],a.closed=a.closedRoot=a.sawRoot=!1,a.tag=a.error=null,a.strict=!!t,a.noscript=!(!t&&!a.opt.noscript),a.state=A.BEGIN,a.strictEntities=a.opt.strictEntities,a.ENTITIES=a.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),a.attribList=[],a.opt.xmlns&&(a.ns=Object.create(v)),a.trackPosition=!1!==a.opt.position,a.trackPosition&&(a.position=a.line=a.column=0),I(a,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}),i.prototype={end:function(){L(this)},write:function(t){var r=this;if(this.error)throw this.error;if(r.closed)return B(r,"Cannot write after close. Assign an onready handler.");if(null===t)return L(r);var i=0,a="";for(;a=t.charAt(i++),r.c=a,a;)switch(r.trackPosition&&(r.position++,"\n"===a?(r.line++,r.column=0):r.column++),r.state){case A.BEGIN:if(r.state=A.BEGIN_WHITESPACE,"\ufeff"===a)continue;V(r,a);continue;case A.BEGIN_WHITESPACE:V(r,a);continue;case A.TEXT:if(r.sawRoot&&!r.closedRoot){for(var s=i-1;a&&"<"!==a&&"&"!==a;)(a=t.charAt(i++))&&r.trackPosition&&(r.position++,"\n"===a?(r.line++,r.column=0):r.column++);r.textNode+=t.substring(s,i-1)}"<"!==a||r.sawRoot&&r.closedRoot&&!r.strict?(!C(o,a)||r.sawRoot&&!r.closedRoot||R(r,"Text data outside of root node."),"&"===a?r.state=A.TEXT_ENTITY:r.textNode+=a):(r.state=A.OPEN_WAKA,r.startTagPosition=r.position);continue;case A.SCRIPT:"<"===a?r.state=A.SCRIPT_ENDING:r.script+=a;continue;case A.SCRIPT_ENDING:"/"===a?r.state=A.CLOSE_TAG:(r.script+="<"+a,r.state=A.SCRIPT);continue;case A.OPEN_WAKA:if("!"===a)r.state=A.SGML_DECL,r.sgmlDecl="";else if(x(o,a));else if(x(g,a))r.state=A.OPEN_TAG,r.tagName=a;else if("/"===a)r.state=A.CLOSE_TAG,r.tagName="";else if("?"===a)r.state=A.PROC_INST,r.procInstName=r.procInstBody="";else{if(R(r,"Unencoded <"),r.startTagPosition+1<r.position){var c=r.position-r.startTagPosition;a=new Array(c).join(" ")+a}r.textNode+="<"+a,r.state=A.TEXT}continue;case A.SGML_DECL:(r.sgmlDecl+a).toUpperCase()===d?(D(r,"onopencdata"),r.state=A.CDATA,r.sgmlDecl="",r.cdata=""):r.sgmlDecl+a==="--"?(r.state=A.COMMENT,r.comment="",r.sgmlDecl=""):(r.sgmlDecl+a).toUpperCase()===f?(r.state=A.DOCTYPE,(r.doctype||r.sawRoot)&&R(r,"Inappropriately located doctype declaration"),r.doctype="",r.sgmlDecl=""):">"===a?(D(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=A.TEXT):x(l,a)?(r.state=A.SGML_DECL_QUOTED,r.sgmlDecl+=a):r.sgmlDecl+=a;continue;case A.SGML_DECL_QUOTED:a===r.q&&(r.state=A.SGML_DECL,r.q=""),r.sgmlDecl+=a;continue;case A.DOCTYPE:">"===a?(r.state=A.TEXT,D(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=a,"["===a?r.state=A.DOCTYPE_DTD:x(l,a)&&(r.state=A.DOCTYPE_QUOTED,r.q=a));continue;case A.DOCTYPE_QUOTED:r.doctype+=a,a===r.q&&(r.q="",r.state=A.DOCTYPE);continue;case A.DOCTYPE_DTD:r.doctype+=a,"]"===a?r.state=A.DOCTYPE:x(l,a)&&(r.state=A.DOCTYPE_DTD_QUOTED,r.q=a);continue;case A.DOCTYPE_DTD_QUOTED:r.doctype+=a,a===r.q&&(r.state=A.DOCTYPE_DTD,r.q="");continue;case A.COMMENT:"-"===a?r.state=A.COMMENT_ENDING:r.comment+=a;continue;case A.COMMENT_ENDING:"-"===a?(r.state=A.COMMENT_ENDED,r.comment=k(r.opt,r.comment),r.comment&&D(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+a,r.state=A.COMMENT);continue;case A.COMMENT_ENDED:">"!==a?(R(r,"Malformed comment"),r.comment+="--"+a,r.state=A.COMMENT):r.state=A.TEXT;continue;case A.CDATA:"]"===a?r.state=A.CDATA_ENDING:r.cdata+=a;continue;case A.CDATA_ENDING:"]"===a?r.state=A.CDATA_ENDING_2:(r.cdata+="]"+a,r.state=A.CDATA);continue;case A.CDATA_ENDING_2:">"===a?(r.cdata&&D(r,"oncdata",r.cdata),D(r,"onclosecdata"),r.cdata="",r.state=A.TEXT):"]"===a?r.cdata+="]":(r.cdata+="]]"+a,r.state=A.CDATA);continue;case A.PROC_INST:"?"===a?r.state=A.PROC_INST_ENDING:x(o,a)?r.state=A.PROC_INST_BODY:r.procInstName+=a;continue;case A.PROC_INST_BODY:if(!r.procInstBody&&x(o,a))continue;"?"===a?r.state=A.PROC_INST_ENDING:r.procInstBody+=a;continue;case A.PROC_INST_ENDING:">"===a?(D(r,"onprocessinginstruction",{name:r.procInstName,body:r.procInstBody}),r.procInstName=r.procInstBody="",r.state=A.TEXT):(r.procInstBody+="?"+a,r.state=A.PROC_INST_BODY);continue;case A.OPEN_TAG:x(y,a)?r.tagName+=a:(P(r),">"===a?F(r):"/"===a?r.state=A.OPEN_TAG_SLASH:(C(o,a)&&R(r,"Invalid character in tag name"),r.state=A.ATTRIB));continue;case A.OPEN_TAG_SLASH:">"===a?(F(r,!0),K(r)):(R(r,"Forward-slash in opening tag not followed by >"),r.state=A.ATTRIB);continue;case A.ATTRIB:if(x(o,a))continue;">"===a?F(r):"/"===a?r.state=A.OPEN_TAG_SLASH:x(g,a)?(r.attribName=a,r.attribValue="",r.state=A.ATTRIB_NAME):R(r,"Invalid attribute name");continue;case A.ATTRIB_NAME:"="===a?r.state=A.ATTRIB_VALUE:">"===a?(R(r,"Attribute without value"),r.attribValue=r.attribName,U(r),F(r)):x(o,a)?r.state=A.ATTRIB_NAME_SAW_WHITE:x(y,a)?r.attribName+=a:R(r,"Invalid attribute name");continue;case A.ATTRIB_NAME_SAW_WHITE:if("="===a)r.state=A.ATTRIB_VALUE;else{if(x(o,a))continue;R(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",D(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",">"===a?F(r):x(g,a)?(r.attribName=a,r.state=A.ATTRIB_NAME):(R(r,"Invalid attribute name"),r.state=A.ATTRIB)}continue;case A.ATTRIB_VALUE:if(x(o,a))continue;x(l,a)?(r.q=a,r.state=A.ATTRIB_VALUE_QUOTED):(R(r,"Unquoted attribute value"),r.state=A.ATTRIB_VALUE_UNQUOTED,r.attribValue=a);continue;case A.ATTRIB_VALUE_QUOTED:if(a!==r.q){"&"===a?r.state=A.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=a;continue}U(r),r.q="",r.state=A.ATTRIB_VALUE_CLOSED;continue;case A.ATTRIB_VALUE_CLOSED:x(o,a)?r.state=A.ATTRIB:">"===a?F(r):"/"===a?r.state=A.OPEN_TAG_SLASH:x(g,a)?(R(r,"No whitespace between attributes"),r.attribName=a,r.attribValue="",r.state=A.ATTRIB_NAME):R(r,"Invalid attribute name");continue;case A.ATTRIB_VALUE_UNQUOTED:if(C(p,a)){"&"===a?r.state=A.ATTRIB_VALUE_ENTITY_U:r.attribValue+=a;continue}U(r),">"===a?F(r):r.state=A.ATTRIB;continue;case A.CLOSE_TAG:if(r.tagName)">"===a?K(r):x(y,a)?r.tagName+=a:r.script?(r.script+="</"+r.tagName,r.tagName="",r.state=A.SCRIPT):(C(o,a)&&R(r,"Invalid tagname in closing tag"),r.state=A.CLOSE_TAG_SAW_WHITE);else{if(x(o,a))continue;C(g,a)?r.script?(r.script+="</"+a,r.state=A.SCRIPT):R(r,"Invalid tagname in closing tag."):r.tagName=a}continue;case A.CLOSE_TAG_SAW_WHITE:if(x(o,a))continue;">"===a?K(r):R(r,"Invalid characters in closing tag");continue;case A.TEXT_ENTITY:case A.ATTRIB_VALUE_ENTITY_Q:case A.ATTRIB_VALUE_ENTITY_U:var u,h;switch(r.state){case A.TEXT_ENTITY:u=A.TEXT,h="textNode";break;case A.ATTRIB_VALUE_ENTITY_Q:u=A.ATTRIB_VALUE_QUOTED,h="attribValue";break;case A.ATTRIB_VALUE_ENTITY_U:u=A.ATTRIB_VALUE_UNQUOTED,h="attribValue"}";"===a?(r[h]+=M(r),r.entity="",r.state=u):x(r.entity.length?_:E,a)?r.entity+=a:(R(r,"Invalid character in entity name"),r[h]+="&"+r.entity+a,r.entity="",r.state=u);continue;default:throw new Error(r,"Unknown state: "+r.state)}r.position>=r.bufferCheckPosition&&function(t){for(var r=Math.max(e.MAX_BUFFER_LENGTH,10),i=0,a=0,s=n.length;a<s;a++){var o=t[n[a]].length;if(o>r)switch(n[a]){case"textNode":N(t);break;case"cdata":D(t,"oncdata",t.cdata),t.cdata="";break;case"script":D(t,"onscript",t.script),t.script="";break;default:B(t,"Max buffer length exceeded: "+n[a])}i=Math.max(i,o)}var c=e.MAX_BUFFER_LENGTH-i;t.bufferCheckPosition=c+t.position}(r);return r},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;N(e=this),""!==e.cdata&&(D(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(D(e,"onscript",e.script),e.script="")}};try{t=r(2203).Stream}catch(e){t=function(){}}var a=e.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function s(e,r){if(!(this instanceof s))return new s(e,r);t.apply(this),this._parser=new i(e,r),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(e){n.emit("error",e),n._parser.error=null},this._decoder=null,a.forEach((function(e){Object.defineProperty(n,"on"+e,{get:function(){return n._parser["on"+e]},set:function(t){if(!t)return n.removeAllListeners(e),n._parser["on"+e]=t,t;n.on(e,t)},enumerable:!0,configurable:!1})}))}s.prototype=Object.create(t.prototype,{constructor:{value:s}}),s.prototype.write=function(e){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e)){if(!this._decoder){var t=r(3193).StringDecoder;this._decoder=new t("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},s.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},s.prototype.on=function(e,r){var n=this;return n._parser["on"+e]||-1===a.indexOf(e)||(n._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),n.emit.apply(n,t)}),t.prototype.on.call(n,e,r)};var o="\r\n\t ",c="0124356789",u="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",l="'\"",p=o+">",d="[CDATA[",f="DOCTYPE",h="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",v={xml:h,xmlns:m};o=b(o),c=b(c),u=b(u);var g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,_=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;function b(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}function x(e,t){return function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}(e)?!!t.match(e):e[t]}function C(e,t){return!x(e,t)}l=b(l),p=b(p);var w,S,T,A=0;for(var O in e.STATE={BEGIN:A++,BEGIN_WHITESPACE:A++,TEXT:A++,TEXT_ENTITY:A++,OPEN_WAKA:A++,SGML_DECL:A++,SGML_DECL_QUOTED:A++,DOCTYPE:A++,DOCTYPE_QUOTED:A++,DOCTYPE_DTD:A++,DOCTYPE_DTD_QUOTED:A++,COMMENT_STARTING:A++,COMMENT:A++,COMMENT_ENDING:A++,COMMENT_ENDED:A++,CDATA:A++,CDATA_ENDING:A++,CDATA_ENDING_2:A++,PROC_INST:A++,PROC_INST_BODY:A++,PROC_INST_ENDING:A++,OPEN_TAG:A++,OPEN_TAG_SLASH:A++,ATTRIB:A++,ATTRIB_NAME:A++,ATTRIB_NAME_SAW_WHITE:A++,ATTRIB_VALUE:A++,ATTRIB_VALUE_QUOTED:A++,ATTRIB_VALUE_CLOSED:A++,ATTRIB_VALUE_UNQUOTED:A++,ATTRIB_VALUE_ENTITY_Q:A++,ATTRIB_VALUE_ENTITY_U:A++,CLOSE_TAG:A++,CLOSE_TAG_SAW_WHITE:A++,SCRIPT:A++,SCRIPT_ENDING:A++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(t){var r=e.ENTITIES[t],n="number"==typeof r?String.fromCharCode(r):r;e.ENTITIES[t]=n})),e.STATE)e.STATE[e.STATE[O]]=O;function I(e,t,r){e[t]&&e[t](r)}function D(e,t,r){e.textNode&&N(e),I(e,t,r)}function N(e){e.textNode=k(e.opt,e.textNode),e.textNode&&I(e,"ontext",e.textNode),e.textNode=""}function k(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function B(e,t){return N(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,I(e,"onerror",t),e}function L(e){return e.sawRoot&&!e.closedRoot&&R(e,"Unclosed root tag"),e.state!==A.BEGIN&&e.state!==A.BEGIN_WHITESPACE&&e.state!==A.TEXT&&B(e,"Unexpected end"),N(e),e.c="",e.closed=!0,I(e,"onend"),i.call(e,e.strict,e.opt),e}function R(e,t){if("object"!=typeof e||!(e instanceof i))throw new Error("bad call to strictFail");e.strict&&B(e,t)}function P(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0}function j(e,t){var r=e.indexOf(":")<0?["",e]:e.split(":"),n=r[0],i=r[1];return t&&"xmlns"===e&&(n="xmlns",i=""),{prefix:n,local:i}}function U(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=j(e.attribName,!0),r=t.prefix,n=t.local;if("xmlns"===r)if("xml"===n&&e.attribValue!==h)R(e,"xml: prefix must be bound to "+h+"\nActual: "+e.attribValue);else if("xmlns"===n&&e.attribValue!==m)R(e,"xmlns: prefix must be bound to "+m+"\nActual: "+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.ns&&(i.ns=Object.create(a.ns)),i.ns[n]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,D(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function F(e,t){if(e.opt.xmlns){var r=e.tag,n=j(e.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(R(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=n.prefix);var i=e.tags[e.tags.length-1]||e;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach((function(t){D(e,"onopennamespace",{prefix:t,uri:r.ns[t]})}));for(var a=0,s=e.attribList.length;a<s;a++){var o=e.attribList[a],c=o[0],u=o[1],l=j(c,!0),p=l.prefix,d=l.local,f=""===p?"":r.ns[p]||"",h={name:c,value:u,prefix:p,local:d,uri:f};p&&"xmlns"!==p&&!f&&(R(e,"Unbound namespace prefix: "+JSON.stringify(p)),h.uri=p),e.tag.attributes[c]=h,D(e,"onattribute",h)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),D(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=A.TEXT:e.state=A.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function K(e){if(!e.tagName)return R(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=A.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=A.SCRIPT);D(e,"onscript",e.script),e.script=""}var t=e.tags.length,r=e.tagName;e.strict||(r=r[e.looseCase]());for(var n=r;t--;){if(e.tags[t].name===n)break;R(e,"Unexpected close tag")}if(t<0)return R(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=A.TEXT);e.tagName=r;for(var i=e.tags.length;i-- >t;){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,D(e,"onclosetag",e.tagName);var s={};for(var o in a.ns)s[o]=a.ns[o];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==c.ns&&Object.keys(a.ns).forEach((function(t){var r=a.ns[t];D(e,"onclosenamespace",{prefix:t,uri:r})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=A.TEXT}function M(e){var t,r=e.entity,n=r.toLowerCase(),i="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:("#"===(r=n).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),i=(t=parseInt(r,16)).toString(16)):(r=r.slice(1),i=(t=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),i.toLowerCase()!==r?(R(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function V(e,t){"<"===t?(e.state=A.OPEN_WAKA,e.startTagPosition=e.position):C(o,t)&&(R(e,"Non-whitespace before first tag."),e.textNode=t,e.state=A.TEXT)}A=e.STATE,String.fromCodePoint||(w=String.fromCharCode,S=Math.floor,T=function(){var e,t,r=[],n=-1,i=arguments.length;if(!i)return"";for(var a="";++n<i;){var s=Number(arguments[n]);if(!isFinite(s)||s<0||s>1114111||S(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(e=55296+((s-=65536)>>10),t=s%1024+56320,r.push(e,t)),(n+1===i||r.length>16384)&&(a+=w.apply(null,r),r.length=0)}return a},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:T,configurable:!0,writable:!0}):String.fromCodePoint=T)}(t)},1395:(e,t,r)=>{"use strict";const n=r(7521);e.exports=(e="")=>{const t=e.match(n);if(!t)return null;const[r,i]=t[0].replace(/#! ?/,"").split(" "),a=r.split("/").pop();return"env"===a?i:i?`${a} ${i}`:a}},7521:e=>{"use strict";e.exports=/^#!(.*)/},9468:(e,t,r)=>{var n=global.process;const i=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(i(n)){var a,s=r(2613),o=r(7205),c=/^win/i.test(n.platform),u=r(4434);"function"!=typeof u&&(u=u.EventEmitter),n.__signal_exit_emitter__?a=n.__signal_exit_emitter__:((a=n.__signal_exit_emitter__=new u).count=0,a.emitted={}),a.infinite||(a.setMaxListeners(1/0),a.infinite=!0),e.exports=function(e,t){if(!i(global.process))return function(){};s.equal(typeof e,"function","a callback must be provided for exit handler"),!1===f&&h();var r="exit";t&&t.alwaysLast&&(r="afterexit");return a.on(r,e),function(){a.removeListener(r,e),0===a.listeners("exit").length&&0===a.listeners("afterexit").length&&l()}};var l=function(){f&&i(global.process)&&(f=!1,o.forEach((function(e){try{n.removeListener(e,d[e])}catch(e){}})),n.emit=g,n.reallyExit=m,a.count-=1)};e.exports.unload=l;var p=function(e,t,r){a.emitted[e]||(a.emitted[e]=!0,a.emit(e,t,r))},d={};o.forEach((function(e){d[e]=function(){i(global.process)&&(n.listeners(e).length===a.count&&(l(),p("exit",null,e),p("afterexit",null,e),c&&"SIGHUP"===e&&(e="SIGINT"),n.kill(n.pid,e)))}})),e.exports.signals=function(){return o};var f=!1,h=function(){!f&&i(global.process)&&(f=!0,a.count+=1,o=o.filter((function(e){try{return n.on(e,d[e]),!0}catch(e){return!1}})),n.emit=y,n.reallyExit=v)};e.exports.load=h;var m=n.reallyExit,v=function(e){i(global.process)&&(n.exitCode=e||0,p("exit",n.exitCode,null),p("afterexit",n.exitCode,null),m.call(n,n.exitCode))},g=n.emit,y=function(e,t){if("exit"===e&&i(global.process)){void 0!==t&&(n.exitCode=t);var r=g.apply(this,arguments);return p("exit",n.exitCode,null),p("afterexit",n.exitCode,null),r}return g.apply(this,arguments)}}else e.exports=function(){return function(){}}},7205:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},7687:(e,t,r)=>{"use strict";const n=r(857),i=r(5884),a=process.env;let s;function o(e){const t=function(e){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;const t=s?1:0;if("win32"===process.platform){const e=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in a))||"codeship"===a.CI_NAME?1:t;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:(a.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in a&&(s=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),e.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}},633:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.clear=t.run=t.install=t.shell=t.reverse=t.uninstall=t.devices=t.getAdbClient=void 0;var s,o=a(r(8301)),c=a(r(3497)),u=a(r(4888)),l=a(r(6928)),p=a(r(1605)),d=a(r(9329)),f=r(7746);function h(){return n(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return s?[2,s]:[4,v()];case 1:return e=t.sent(),[2,s=o.default.createClient({bin:e})]}}))}))}function m(e,t){return n(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return[4,h()];case 1:return[4,r.sent().getDevice(e)];case 2:return[4,r.sent().install(t)];case 3:return r.sent(),[2]}}))}))}function v(){return n(this,void 0,void 0,(function(){var e,t,r,n,a,s;return i(this,(function(i){switch(i.label){case 0:return e="http://dldir1.qq.com/WechatWebDev/donut/android/adb/adb-1.0.36_".concat(u.default?"windows":"osx",".zip"),t=(0,c.default)(e.split("/")),r=l.default.resolve(__dirname,"../adb"),n=l.default.resolve(r,t),a="".concat(n.replace(".zip",""),"/").concat(u.default?"adb.exe":"adb"),u.default?[3,4]:[4,p.default.exists(a)];case 1:return i.sent()?[4,p.default.stat(a)]:[3,4];case 2:return i.sent().mode&p.default.constants.X_OK?[3,4]:[4,p.default.rmdir(r,{recursive:!0})];case 3:i.sent(),i.label=4;case 4:return[4,p.default.exists(a)];case 5:return i.sent()?[2,a]:[4,p.default.ensureDir(r)];case 6:return i.sent(),[4,d.default.get(e,{responseType:"arraybuffer",adapter:"http"})];case 7:return s=i.sent(),[4,p.default.writeFile(n,s.data)];case 8:return i.sent(),[4,(0,f.unzip)(n,r)];case 9:return i.sent(),[4,p.default.unlink(n)];case 10:return i.sent(),[2,a]}}))}))}t.getAdbClient=h,t.devices=function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,h()];case 1:return[4,e.sent().listDevices()];case 2:return[2,e.sent()]}}))}))},t.uninstall=function(e,t){return n(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return[4,h()];case 1:return[4,r.sent().getDevice(e)];case 2:return[4,r.sent().uninstall(t)];case 3:return r.sent(),[2]}}))}))},t.reverse=function(e,t,r){return n(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,h()];case 1:return[4,n.sent().getDevice(e)];case 2:return[4,n.sent().reverse(t,r)];case 3:return[2,n.sent()]}}))}))},t.shell=function(e,t){return n(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,h()];case 1:return[4,n.sent().getDevice(e)];case 2:return r=n.sent(),[2,new Promise((function(e,n){r.shell(t).then(o.default.util.readAll).then((function(t){e(t)}),(function(e){n(e)}))}))]}}))}))},t.install=m,t.run=function(e,t){return n(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,h()];case 1:return[4,n.sent().getDevice(e)];case 2:return r=n.sent(),t.apkPath?[4,m(e,t.apkPath)]:[3,4];case 3:n.sent(),n.label=4;case 4:return[4,r.startActivity({component:"".concat(t.packageName,"/").concat(t.activity)})];case 5:return n.sent(),[2]}}))}))},t.clear=function(e,t){return n(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return[4,h()];case 1:return[4,r.sent().getDevice(e)];case 2:return[4,r.sent().clear(t)];case 3:return r.sent(),[2]}}))}))}},7724:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.cert=void 0;var s=a(r(6928)),o=a(r(5651)),c=r(7746),u=r(5860),l=a(r(9100)),p=a(r(9405)),d=a(r(1009)),f=a(r(894)),h=a(r(96));t.cert=function(e,t){return void 0===t&&(t={}),n(this,void 0,void 0,(function(){var r,n,a,m,v,g;return i(this,(function(i){switch(i.label){case 0:return(0,o.default)(t,{logger:console}),[4,(0,c.ensureJdk)()];case 1:return r=i.sent(),n=s.default.resolve(__dirname,"../lib/apkcert.jar"),a=["-jar",n,e],[4,(0,u.execa)("".concat(r,"/java"),a)];case 2:return m=i.sent().stdout,v={signature:"",publicKey:""},g=m.split("\n"),(0,l.default)(g,(function(e){if(e=(0,p.default)(e),(0,d.default)(e,"MD5 Fingerprint:")){var t=(0,p.default)(e.split(":")[1]);v.signature=(0,h.default)((0,f.default)(t," ",""))}else(0,d.default)(e,"Modulus:")&&(v.publicKey=(0,p.default)(e.split(":")[1]))})),[2,v]}}))}))}},7028:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.checkdonutbetaUrl=t.PLUGIN_PACKAGE_NAME_PREFIX=t.DEFAULT_PLUGIN_AAR_VERSION=t.DEFAULT_PLUGIN_SDK_VERSION=t.PLUGIN_TPL_PATH=t.TPL_PATH=t.ROOT=t.DEFAULT_SDK_VERSION_V2=t.DEFAULT_SDK_VERSION=t.DEFAULT_PACKAGE_NAME=void 0;var i=n(r(6928));t.DEFAULT_PACKAGE_NAME="com.tencent.weauth",t.DEFAULT_SDK_VERSION="0.9.5",t.DEFAULT_SDK_VERSION_V2="1.1.3",t.ROOT=i.default.resolve(__dirname,"../"),t.TPL_PATH=i.default.join(t.ROOT,"template"),t.PLUGIN_TPL_PATH=i.default.join(t.ROOT,"template-plugin"),t.DEFAULT_PLUGIN_SDK_VERSION="1.0.2",t.DEFAULT_PLUGIN_AAR_VERSION="0.0.1",t.PLUGIN_PACKAGE_NAME_PREFIX="com.donut";t.checkdonutbetaUrl="".concat("https://servicewechat.com/","wxa-dev-logic/checkdonutbeta")},158:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))},c=this&&this.__generator||function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.create=void 0;var l=u(r(5651)),p=u(r(1605)),d=u(r(6928)),f=s(r(7028)),h=u(r(8887)),m=u(r(438)),v=r(2023),g=r(7746),y=r(8330);function E(e,t,r){return o(this,void 0,void 0,(function(){var t,n,i,a,s;return c(this,(function(o){switch(o.label){case 0:return t=r.logger,n=d.default.join(e,"app"),t.debug("Copying android template project to ".concat(e)),i=d.default.join(f.TPL_PATH,"base"),[4,p.default.copy(i,e)];case 1:return o.sent(),a=d.default.join(n,"src/main/res"),s=d.default.join(f.TPL_PATH,"res"),[4,p.default.copy(s,a)];case 2:return o.sent(),[4,p.default.chmod(d.default.join(e,"gradlew"),493)];case 3:return o.sent(),[2]}}))}))}function _(e,t,i){return o(this,void 0,void 0,(function(){var a,s,o;return c(this,(function(c){switch(c.label){case 0:return a=i.logger,s=d.default.join(e,"miniapp.json"),o={},p.default.existsSync(s)&&(o=p.default.readJSONSync(s)),[4,(0,g.writeAsJson)(s,n(n({},o),{toolkitVersion:r(8330).version,sdkVersion:t.sdkVersion||f.DEFAULT_SDK_VERSION,enableVConsole:"open",appMenuEnable:t.appMenuEnable}))];case 1:return c.sent(),a.log("Android project created with ".concat(y.name,"@").concat(y.version)),[2]}}))}))}function b(e){return o(this,void 0,void 0,(function(){var t,r,n,i;return c(this,(function(a){switch(a.label){case 0:for(t=d.default.join(e,"app/dictionary.txt"),r=[],n=0;n<100;n++)r.push((0,h.default)(5));return i=(0,m.default)(r).join("\n"),[4,p.default.writeFile(t,i)];case 1:return a.sent(),[2]}}))}))}t.create=function(e,t,r){return o(this,void 0,void 0,(function(){var n;return c(this,(function(i){switch(i.label){case 0:return(0,l.default)(r,{skipCheck:!1,logger:console}),r.skipOldUserCheck||!r.configPath?[3,2]:[4,(0,g.isOldUser)(r.configPath)];case 1:if(!i.sent())throw new Error("此版本的该功能已停止维护,请升级最新工具并重新「升级多端项目」");i.label=2;case 2:return[4,(0,g.normalizeConfig)(t,e,r.configPath)];case 3:return t=i.sent(),n=r.logger,[4,E(e,t,r)];case 4:return i.sent(),[4,_(e,t,r)];case 5:return i.sent(),[4,b(e)];case 6:return i.sent(),[4,(0,v.update)(e,t,r)];case 7:return i.sent(),n.log("Android project created with ".concat(y.name,"@").concat(y.version)),[2]}}))}))}},3950:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))},c=this&&this.__generator||function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.createNativePlugin=void 0;var l=u(r(5651)),p=u(r(8105)),d=u(r(1605)),f=u(r(6928)),h=s(r(7028)),m=r(6439),v=r(7746),g=r(8330);function y(e,t,r){return o(this,void 0,void 0,(function(){var t,n,i,a,s;return c(this,(function(o){switch(o.label){case 0:return t=r.logger,n=f.default.join(e,"app"),t.debug("Copying android template project to ".concat(e)),i=f.default.join(h.PLUGIN_TPL_PATH,"base"),[4,d.default.copy(i,e)];case 1:return o.sent(),a=f.default.join(n,"src/main/res"),s=f.default.join(h.PLUGIN_TPL_PATH,"res"),[4,d.default.copy(s,a)];case 2:return o.sent(),[4,d.default.chmod(f.default.join(e,"gradlew"),493)];case 3:return o.sent(),[2]}}))}))}function E(e,t,i){return o(this,void 0,void 0,(function(){var a,s,o;return c(this,(function(c){switch(c.label){case 0:return a=i.logger,s=f.default.join(e,"miniapp.json"),o={},d.default.existsSync(s)&&(o=d.default.readJSONSync(s)),[4,(0,v.writeAsJson)(s,n(n({},o),{toolkitVersion:r(8330).version,sdkVersion:h.DEFAULT_PLUGIN_SDK_VERSION,enableVConsole:"open",appMenuEnable:t.appMenuEnable}))];case 1:return c.sent(),a.log("Android plugin project created with ".concat(g.name,"@").concat(g.version)),[2]}}))}))}function _(e,t,r){return o(this,void 0,void 0,(function(){var i,a,s;return c(this,(function(o){switch(o.label){case 0:return i=r.logger,a=f.default.join(e,"miniapp.plugin.json"),s={},d.default.existsSync(a)&&(s=d.default.readJSONSync(a)),r.pluginId,[4,(0,v.writeAsJson)(a,n(n({},s),{pluginVersion:t.pluginVersion||h.DEFAULT_PLUGIN_AAR_VERSION,debugSaaAVersion:h.DEFAULT_PLUGIN_SDK_VERSION,devtoolsResourceUrl:""}))];case 1:return o.sent(),i.log("Android plugin project created with ".concat(g.name,"@").concat(g.version)),[2]}}))}))}t.createNativePlugin=function(e,t,r){return o(this,void 0,void 0,(function(){var n,i;return c(this,(function(a){switch(a.label){case 0:return(0,l.default)(r,{skipCheck:!1,logger:console}),[4,(0,v.normalizeConfig)(t,e,r.configPath)];case 1:return t=a.sent(),n=r.pluginId,(0,p.default)(t,{pluginPackageName:t.pluginPackageName||"".concat(h.PLUGIN_PACKAGE_NAME_PREFIX,".").concat(n)}),i=r.logger,[4,y(e,t,r)];case 2:return a.sent(),[4,E(e,t,r)];case 3:return a.sent(),[4,_(e,t,r)];case 4:return a.sent(),[4,(0,m.updateNativePlugin)(e,t,r)];case 5:return a.sent(),i.log("Android plugin project created with ".concat(g.name,"@").concat(g.version)),[2]}}))}))}},4810:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))},c=this&&this.__generator||function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.createV2=void 0;var l=u(r(1605)),p=u(r(6928)),d=s(r(7028)),f=r(7746),h=u(r(9329));function m(e){return o(this,void 0,void 0,(function(){var t,i,a,s,o;return c(this,(function(c){switch(c.label){case 0:return t=p.default.join(e,"project.miniapp.json"),i={},l.default.existsSync(t)&&(i=l.default.readJSONSync(t)),a=i["mini-android"]||{},[4,v()];case 1:return s=c.sent(),[4,(0,f.writeAsJson)(t,n(n({},i),(o={},o["mini-android"]=n(n({},a),{toolkitVersion:r(8330).version,sdkVersion:a.sdkVersion||s,enableVConsole:"open"}),o)))];case 2:return c.sent(),[2]}}))}))}function v(){var e;return o(this,void 0,void 0,(function(){var t;return c(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,h.default.get("http://dldir1.qq.com/WechatWebDev/donut/android-sdk-version-v2.json")];case 1:return t=r.sent(),[2,(null===(e=t.data)||void 0===e?void 0:e.defaultVersion)||d.DEFAULT_SDK_VERSION_V2];case 2:return r.sent(),[2,d.DEFAULT_SDK_VERSION_V2];case 3:return[2]}}))}))}t.createV2=function(e){return o(this,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,m(e)];case 1:return t.sent(),[2]}}))}))}},5259:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.genkey=void 0;var s=a(r(5651)),o=a(r(9100)),c=a(r(2561)),u=r(7746),l=r(5860);t.genkey=function(e,t){return n(this,void 0,void 0,(function(){var r,n,a,p;return i(this,(function(i){switch(i.label){case 0:return(0,s.default)(t,{logger:console}),[4,(0,u.ensureJdk)()];case 1:return r=i.sent(),n=["-genkey","-keyalg","RSA","-keysize","2048","-keystore",e],a={CN:t.commonName,OU:t.organizationUnit,O:t.organizationName,L:t.localityName,S:t.stateName,C:t.country||"CN"},p=[],(0,o.default)(a,(function(e,t){e&&p.push("".concat(t,"=").concat(e))})),n.push("-alias",t.alias),n.push("-storepass",t.storePass),n.push("-keypass",t.keyPass),n.push("-validity",(0,c.default)(t.validity)),n.push("-dname",p.join(",")),[4,(0,l.execa)("".concat(r,"/keytool"),n)];case 2:return i.sent(),[2]}}))}))}},8156:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};t.__esModule=!0,i(r(158),t),i(r(2023),t),i(r(5363),t),i(r(1859),t),i(r(7724),t),i(r(5259),t),i(r(633),t),i(r(4810),t),i(r(4343),t),i(r(3950),t),i(r(6439),t)},5363:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.pack=void 0;var u=c(r(5651)),l=a(r(4317)),p=c(r(9464)),d=c(r(9405)),f=c(r(3145)),h=c(r(6186)),m=c(r(6928)),v=c(r(1580)),g=c(r(8265)),y=c(r(1738)),E=c(r(2162)),_=c(r(1605)),b=r(7746),x=c(r(3169)),C=c(r(3106)),w=c(r(4079)),S=c(r(992)),T=c(r(3577)),A=(0,x.default)(C.default.gzip);function O(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,s,c,u,l,h,v,y;return o(this,(function(o){switch(o.label){case 0:if((0,p.default)(e.icons))return[2];n=e.icons,i=(0,f.default)(n),a=0,s=i.length,o.label=1;case 1:return a<s?(c=i[a],u=n[c],""!==(0,d.default)(u)?[3,2]:(delete n[c],[3,4])):[3,5];case 2:return(0,g.default)(u)&&(u=m.default.resolve(r,u)),l=(0,E.default)(u).ext,h="res/icons/".concat(c).concat(l),[4,_.default.readFile(u)];case 3:if(v=o.sent(),".png"===l&&(!(y=(0,S.default)(v))||"png"!==y.ext))throw new Error("".concat(u," is not a png file"));t.push({path:"/".concat(h),data:v}),n[c]=h,o.label=4;case 4:return a++,[3,1];case 5:return[2]}}))}))}function I(e,t,r,n){return s(this,void 0,void 0,(function(){function i(e,n,i){return s(this,void 0,void 0,(function(){var s,c,u,l;return o(this,(function(o){switch(o.label){case 0:return""!==(0,d.default)(n)?[3,1]:(delete n[e],[3,3]);case 1:return(0,g.default)(n)&&(n=m.default.resolve(r,n)),_.default.existsSync(n)?(s=(0,E.default)(n).ext,c="res/splashscreen".concat(i||"","/").concat(e).concat(s),[4,_.default.readFile(n)]):[3,3];case 2:if(u=o.sent(),".png"===s&&(!(l=(0,S.default)(u))||"png"!==l.ext))throw new Error("".concat(n," is not a png file"));t.push({path:"/".concat(c),data:u}),void 0===i&&(a[e]=c),o.label=3;case 3:return[2]}}))}))}var a,c,u,l,h,v,y,b,x,C,w=this;return o(this,(function(t){switch(t.label){case 0:if((0,p.default)(e.splashscreen))return[2];if(a=e.splashscreen,c=(0,f.default)(a),u=!1,c.forEach((function(e){a[e]&&a[e].startsWith("%")&&a[e].endsWith("%")&&(u=!0)})),!u||!n)return[3,1];if(l=m.default.resolve(r,"miniapp/android/i18nInfo.json"),_.default.existsSync(l)){h=_.default.readFileSync(l,"utf8");try{v=JSON.parse(h)}catch(e){console.error("parse error"),v={}}c.forEach((function(e){return s(w,void 0,void 0,(function(){var t,r,n,s,c,u,l,p;return o(this,(function(o){switch(o.label){case 0:if(!a[e].startsWith("%")||!a[e].endsWith("%"))return[3,5];for(n in r=[],t=v)r.push(n);s=0,o.label=1;case 1:return s<r.length?(n=r[s])in t?(u="base"===(c=n)?"":"-b+".concat(c.replace(/-/g,"+")),l=a[e].slice(1,a[e].length-1),(p=v[c].android[l])?[4,i(e,p,u)]:[3,3]):[3,3]:[3,4];case 2:o.sent(),o.label=3;case 3:return s++,[3,1];case 4:return[3,7];case 5:return[4,i(e,a[e])];case 6:o.sent(),o.label=7;case 7:return[2]}}))}))}))}return[3,5];case 1:y=0,b=c.length,t.label=2;case 2:return y<b?(x=c[y],C=a[x],[4,i(x,C)]):[3,5];case 3:t.sent(),t.label=4;case 4:return y++,[3,2];case 5:return[2]}}))}))}function D(e,t,r,n){return s(this,void 0,void 0,(function(){function i(i,a,c){return s(this,void 0,void 0,(function(){var s,u,l,p,f,v,E,b,x,C,w,S,T,A,O,I,D,N;return o(this,(function(o){switch(o.label){case 0:if(s=(0,h.default)(e,"privacy.".concat(i)),"template"!==i||!n)return[3,6];if(u="miniapp/android/i18nInfo.json",!_.default.existsSync(m.default.resolve(r,u)))return[3,6];l={},p=_.default.readFileSync(m.default.resolve(r,u),"utf8");try{l=JSON.parse(p)}catch(e){console.error("parse error"),l={}}if(!(s&&s.startsWith("%")&&s.endsWith("%")))return[3,5];for(b in f=s.slice(1,s.length-1),E=[],v=l)E.push(b);x=0,o.label=1;case 1:return x<E.length?(b=E[x])in v&&(w=l[C=b].android[f])?((0,g.default)(w)&&(w=m.default.resolve(r,w)),_.default.existsSync(w)?(l[C].android[f]="miniapp-privacy-templates/".concat(C,".json"),A="res/miniapp-privacy-templates/".concat(C,".json"),T=(S=t).push,D={path:"/".concat(A)},[4,_.default.readFile(w)]):(console.error("no such file or directory, open '".concat(w,"'")),[3,3])):[3,3]:[3,4];case 2:T.apply(S,[(D.data=o.sent(),D)]),o.label=3;case 3:return x++,[3,1];case 4:return t.push({path:"/res/i18nInfo.json",data:Buffer.from(JSON.stringify(l))}),[2];case 5:t.push({path:"/res/i18nInfo.json",data:Buffer.from(JSON.stringify(l))}),o.label=6;case 6:return s&&(0,y.default)(s)?""!==(0,d.default)(s)?[3,7]:(delete e.privacy[i],[3,9]):[2];case 7:return(0,g.default)(s)&&(s=m.default.resolve(r,s)),A=a,c&&(A=a+m.default.extname(s)),I=(O=t).push,N={path:"/".concat(A)},[4,_.default.readFile(s)];case 8:I.apply(O,[(N.data=o.sent(),N)]),e.privacy[i]=A,o.label=9;case 9:return[2]}}))}))}return o(this,(function(e){switch(e.label){case 0:return[4,i("template","res/miniapp-privacy.json",!1)];case 1:return e.sent(),[4,i("contentViewImage","res/drawable/privacy_content_view_image",!0)];case 2:return e.sent(),[4,i("cancelButtonImage","res/drawable/privacy_cancel_button_image",!0)];case 3:return e.sent(),[4,i("confirmButtonImage","res/drawable/privacy_confirm_button_image",!0)];case 4:return e.sent(),[2]}}))}))}function N(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,s,c;return o(this,(function(o){switch(o.label){case 0:return(n=(0,h.default)(e,"tpush.configs"))&&(0,y.default)(n)?""!==(0,d.default)(n)?[3,1]:(delete e.tpush,[3,3]):[2];case 1:return(0,g.default)(n)&&(n=m.default.resolve(r,n)),i="res/tpns-configs.json",s=(a=t).push,c={path:"/".concat(i)},[4,_.default.readFile(n)];case 2:s.apply(a,[(c.data=o.sent(),c)]),e.tpush.configs=i,o.label=3;case 3:return[2]}}))}))}function k(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,s,c,u,l,p;return o(this,(function(d){switch(d.label){case 0:if(!(n=(0,h.default)(e,"resourcePath"))||!(0,y.default)(n))return[2];if((0,g.default)(n)&&(n=m.default.resolve(r,n)),!_.default.statSync(n).isDirectory())return[2];i=T.default.sync("**/**",{nodir:!0,cwd:n}),a=["app/src","app/build.gradle"],s="res/nativeResources",c=function(e){var r,i,c;return o(this,(function(o){switch(o.label){case 0:return console.log("nativeResources file:",e),a.some((function(t){return e.startsWith(t)}))?(console.log("nativeResources file is black:",e),[2,"continue"]):(r=m.default.resolve(n,e),[4,_.default.readFile(r)]);case 1:return i=o.sent(),c="".concat(s,"/").concat(e),t.push({path:"/".concat(c),data:i}),[2]}}))},u=0,l=i,d.label=1;case 1:return u<l.length?(p=l[u],[5,c(p)]):[3,4];case 2:d.sent(),d.label=3;case 3:return u++,[3,1];case 4:return e.resourcePath=s,[2]}}))}))}function B(e,t,r,n){return s(this,void 0,void 0,(function(){var e,t,i,a,s,c;return o(this,(function(o){switch(o.label){case 0:if(!n||0===n.length)return[2];e=0,t=n,o.label=1;case 1:if(!(e<t.length))return[3,6];if(i=t[e],a=(0,h.default)(i,"pluginConfigPath"),s=a,!a||!(0,y.default)(a))return[3,5];(0,g.default)(a)&&(a=m.default.resolve(r,a)),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,(0,b.readAsJson)(a)];case 3:return c=o.sent(),i.pluginConfig=c,[3,5];case 4:throw o.sent(),new Error("plugin config file(".concat(s,") is not a json file"));case 5:return e++,[3,1];case 6:return[2]}}))}))}t.pack=function(e){var t;return s(this,void 0,void 0,(function(){var r,n,i,a,s,c;return o(this,(function(o){switch(o.label){case 0:return(0,u.default)(e,{logger:console,aab:!1}),r=e.configPath,(0,v.default)(r,".json")&&(r=(0,E.default)(r).dir),[4,(0,b.readAsJson)(m.default.resolve(r,"project.miniapp.json"))];case 1:return delete(n=o.sent())["mini-ios"],function(e,t){var r=new w.default({versionCode:{required:!0,positiveInteger:!0,lessThan:21e8},"mini-android.sdkVersion":{required:!0}}).validate(e);if(!0!==r)throw new Error(r);if((0,h.default)(e,"mini-android.usePluginSdk.tpush")&&!(0,h.default)(e,"mini-android.tpush.configs"))throw new Error("tpns-configs.json is not set in project.miniapp.json");if(e.i18nFilePath){var n=m.default.resolve(t,"miniapp/android/i18nInfo.json");if(!_.default.existsSync(n))throw new Error("miniapp/android/i18nInfo.json not found, please upgrade wechatdevtools to the latest version or unset i18nFilePath in project.miniapp.json")}}(n,r),i=n["mini-android"],(0,u.default)(i,{archivePath:"app/src/main/assets/SaaA_embed/",useExtendedSdk:{},icons:{},splashscreen:{}}),(0,u.default)(i.useExtendedSdk,{media:!0,bluetooth:!1,network:!1,scanner:!1,xweb:!1,xwebEmbed:!1,skyline:!1,install:!0,open:!0,test:!1}),i.aab=e.aab,[4,O(i,a=[],r)];case 2:return o.sent(),[4,I(i,a,r,n.i18nFilePath)];case 3:return o.sent(),[4,D(i,a,r,n.i18nFilePath)];case 4:return o.sent(),[4,N(i,a,r)];case 5:return o.sent(),[4,k(i,a,r)];case 6:return o.sent(),s=(null===(t=n["mini-plugin"])||void 0===t?void 0:t.android)||[],Array.isArray(s)&&s.length>0?[4,B(i,a,r,s)]:[3,8];case 7:o.sent(),o.label=8;case 8:return a.push({path:"/project.miniapp.json",data:Buffer.from(JSON.stringify(n,null,2))}),[4,l.pack(a)];case 9:return c=o.sent(),[4,A(c)];case 10:return[2,o.sent()]}}))}))}},1859:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.signV1=t.sign=void 0;var u=c(r(6928)),l=c(r(5651)),p=c(r(8105)),d=c(r(4888)),f=c(r(1605)),h=a(r(7028)),m=r(5860),v=r(7746);t.sign=function(e,t){return void 0===t&&(t={}),s(this,void 0,void 0,(function(){var r,n,i,a,s,c;return o(this,(function(o){switch(o.label){case 0:return(0,l.default)(t,{logger:console}),t.keyStore?(0,l.default)(t,{storePass:"",keyPass:"",keyAlias:""}):(0,p.default)(t,{keyStore:u.default.join(h.TPL_PATH,"base/compile/debug.keystore"),storePass:"android",keyPass:"android",keyAlias:"androiddebugkey"}),[4,(0,v.ensureJdk)()];case 1:return r=o.sent(),n=u.default.resolve(__dirname,"../lib/zipalign".concat(d.default?".exe":"")),d.default?[3,3]:[4,f.default.chmod(n,493)];case 2:o.sent(),o.label=3;case 3:return i="".concat(e,".aligned"),a=["-f","-v","4",e,i],[4,(0,m.execa)(n,a)];case 4:return o.sent(),s=u.default.resolve(__dirname,"../lib/apksigner.jar"),(c=["-jar",s,"sign"]).push("--ks",t.keyStore),c.push("--ks-pass","pass:".concat(t.storePass)),c.push("--key-pass","pass:".concat(t.keyPass)),c.push("--ks-key-alias",t.keyAlias),c.push("--out",t.output||e),c.push(i),[4,(0,m.execa)("".concat(r,"/java"),c)];case 5:return o.sent(),[4,f.default.unlink(i)];case 6:return o.sent(),[2]}}))}))},t.signV1=function(e,t){return void 0===t&&(t={}),s(this,void 0,void 0,(function(){var r,n;return o(this,(function(i){switch(i.label){case 0:return(0,l.default)(t,{logger:console}),t.keyStore?(0,l.default)(t,{storePass:"",keyPass:"",keyAlias:""}):(0,p.default)(t,{keyStore:u.default.join(h.TPL_PATH,"base/compile/debug.keystore"),storePass:"android",keyPass:"android",keyAlias:"androiddebugkey"}),[4,(0,v.ensureJdk)()];case 1:return r=i.sent(),(n=["-sigalg","SHA1withRSA","-digestalg","SHA1"]).push("--keystore",t.keyStore),n.push("--storepass",t.storePass),n.push("--keypass",t.keyPass),n.push("--signedjar",t.output||e),n.push(e,t.keyAlias),[4,(0,m.execa)("".concat(r,"/jarsigner"),n)];case 2:return i.sent(),[2]}}))}))}},2023:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.update=void 0;var u=c(r(8105)),l=c(r(6928)),p=c(r(9464)),d=c(r(2162)),f=c(r(5651)),h=c(r(1009)),m=r(7746),v=c(r(1605)),g=a(r(7028)),y=c(r(4037)),E=c(r(3169)),_=c(r(6186)),b=(0,E.default)(r(3577)),x={open:"open",close:"close",undefined:void 0};function C(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,s,c,u,p,d,f,h,g,y,E,b,x,C;return o(this,(function(w){switch(w.label){case 0:if(!t.i18nFilePath)return[2];if(n=r.miniProgramProjectPath,i=l.default.resolve(n,"res/i18nInfo.json"),a="miniapp-privacy-templates",s=l.default.resolve(n,"res/".concat(a)),c=l.default.join(e,"app/src/main/res"),u=l.default.join(e,"app/src/main/assets"),!v.default.existsSync(i))throw Error("i18n file not found");p=(0,_.default)(t,"privacy.template"),d="",p&&(d=p.startsWith("%")&&p.endsWith("%")?p:p.slice(p.lastIndexOf("/")+1)),v.default.existsSync(s)&&d.startsWith("%")&&d.endsWith("%")&&(f=d.slice(d.indexOf("%")+1,d.length-1),v.default.mkdirSync(l.default.join(u,a),{recursive:!0}),v.default.writeFileSync(l.default.join(u,"".concat(a,"/").concat(f,".txt")),""),v.default.copy(s,l.default.join(u,a))),h=v.default.readFileSync(i,"utf8");try{g=JSON.parse(h)}catch(e){console.error("parse error"),g={}}for(x in y=function(e){var t,r,n,i,a,s,u;return o(this,(function(o){switch(o.label){case 0:return t="values"+("base"===e?"":"-b+".concat(e.replace(/-/g,"+"))),r=l.default.join(c,t),n=l.default.join(r,"strings.xml"),v.default.existsSync(r)||v.default.mkdirSync(r,{recursive:!0}),v.default.existsSync(n)||v.default.writeFileSync(n,'<?xml version="1.0" encoding="utf-8"?>\n <resources> \n </resources>'),[4,(0,m.parseElementTree)(n)];case 1:for(u in i=o.sent(),a=i.getroot(),s=new Map,g[e].android)s.set(u,g[e].android[u]);return s.forEach((function(e,t){var r=a.find(".//string[@name='".concat(t,"']"));r&&a.remove(r);var n=(0,m.createElement)("string",{name:t},(0,m.escapeQuotes)(e));a._children.push(n)})),[4,(0,m.writeElementTree)(n,i)];case 2:return o.sent(),[2]}}))},b=[],E=g)b.push(x);C=0,w.label=1;case 1:return C<b.length?(x=b[C])in E?[5,y(x)]:[3,3]:[3,4];case 2:w.sent(),w.label=3;case 3:return C++,[3,1];case 4:return[2]}}))}))}function w(e,t,r){var n;return s(this,void 0,void 0,(function(){var i,a,s,c,d,f,h,v;return o(this,(function(o){switch(o.label){case 0:return i=l.default.join(e,"miniapp.json"),[4,(0,m.readAsJson)(i)];case 1:return a=o.sent(),s=t.enableVConsole,c=t.privacy,d=Number(t.targetSdkVersion),f=Number(t.minSdkVersion),(0,u.default)(a,{sdkKey:t.sdkKey,sdkKeySecret:t.sdkKeySecret,packageName:r.packageName,miniModuleId:r.miniModuleId,useExtendedSdk:t.useExtendedSdk,version:t.version,versionCode:t.versionCode,appMenuEnable:t.appMenuEnable,usePluginSdk:t.usePluginSdk,map:t.map,scheme:(null===(n=null==t?void 0:t.schemes)||void 0===n?void 0:n.scheme)||"__placeholder__",targetSdkVersion:d>29?d:29,minSdkVersion:f>21?f:21,manifestPlaceholders:t.manifestPlaceholders||{}}),s&&(0,u.default)(a,{enableVConsole:x[s]}),c&&(0,u.default)(a,{privacyPopup:null==c?void 0:c.enable,privacyViewOnlySupport:null==c?void 0:c.enableViewOnly}),t.sdkVersion&&(0,u.default)(a,{sdkVersion:t.sdkVersion}),(0,u.default)(a,{splashscreen:!(0,p.default)(t.splashscreen)}),t.nativePlugins?(h={},v=[],t.nativePlugins.forEach((function(e){e.open&&e.pluginId&&(h[e.pluginId]=e.pluginVersion,v.push(e))})),(0,u.default)(a,{useNativePlugin:h,nativePlugins:v})):(0,u.default)(a,{useNativePlugin:{},nativePlugins:[]}),[4,(0,m.writeAsJson)(i,a)];case 2:return o.sent(),[2]}}))}))}function S(e,t,r){var n;return s(this,void 0,void 0,(function(){var i,a,s,c,u,p,d,f,h,E,_,x,C,w,S,T,A,O,I,D,N,k,B,L,R,P,j,U,F,K,M,V,Y;return o(this,(function(o){switch(o.label){case 0:return i=l.default.join(e,"miniapp.json"),[4,(0,m.readAsJson)(i)];case 1:return a=o.sent(),s=a.packageName,c=a.miniModuleId,u=r.packageName,p=void 0===u?t.packageName:u,d=r.miniModuleId,f=void 0===d?t.miniModuleId:d,h=r.logger,E=l.default.join(e,"app"),_=l.default.join(E,"src/main/java"),x=(p||s||g.DEFAULT_PACKAGE_NAME).replace(/\./g,l.default.sep),C=l.default.join(_,x),p&&!s||s!==p?(v.default.emptyDirSync(_),w=l.default.join(g.TPL_PATH,"java"),[4,v.default.copy(w,C)]):[3,9];case 2:return o.sent(),h.log("copy tplJavaPath"),[4,b("**/*.+(kt)",{cwd:C})];case 3:A=o.sent(),S=0,T=A,o.label=4;case 4:return S<T.length?(k=T[S],B=l.default.join(C,k),[4,(0,m.replaceFileContent)(B,(M={__PACKAGE__:p},M[s]=p,M))]):[3,7];case 5:o.sent(),o.label=6;case 6:return S++,[3,4];case 7:return[4,(0,m.replaceFileContent)(l.default.join(E,"src/main/AndroidManifest.xml"),(V={__PACKAGE__:p},V[s]=p,V))];case 8:o.sent(),o.label=9;case 9:return!f||c&&c===f?[3,14]:[4,b("**/*.+(kt)",{cwd:C})];case 10:A=o.sent(),O=l.default.join(E,"src/main/assets"),I=(0,y.default)(l.default.relative(O,t.archivePath)),D=0,N=A,o.label=11;case 11:return D<N.length?(k=N[D],B=l.default.join(C,k),[4,(0,m.replaceFileContent)(B,(Y={__MODULE_ID__:f,__MODULE_PATH__:I},Y[c]=f,Y))]):[3,14];case 12:o.sent(),o.label=13;case 13:return D++,[3,11];case 14:return(L=t.sdkVersion)?(R=1===(0,m.compareVersion)(L,"1.0.2"),P=1===(0,m.compareVersion)(L,"1.0.7"),j=1===(0,m.compareVersion)(L,"1.3.26"),U=1===(0,m.compareVersion)(L,"1.1.10"),F=l.default.join(C,"DemoApplication.kt"),[4,v.default.readFile(F,"utf-8")]):[2];case 15:return K=(K=o.sent()).replace("appMenuEnable = BuildConfig.APP_MENU_ENABLE","/* __APP_MENU_ENABLE__ */"),R&&(K=K.replace(/\/\* __APP_MENU_ENABLE__ \*\//g,"appMenuEnable = BuildConfig.APP_MENU_ENABLE")),P&&(K=K.replace(/\/\* __APP_SCHEME__ \*\//g,"scheme = BuildConfig.SCHEME")),U&&(null===(n=null==t?void 0:t.privacy)||void 0===n?void 0:n.enableViewOnly)&&(K=K.replace(/\/\* __PRIVACY_VIEW_ONLY_SUPPORT__ \*\//g,"privacyPopupCancelWithoutKill = BuildConfig.PRIVACY_VIEW_ONLY_SUPPORT")),j&&(K=K.replace(/\/\* __NATIVE_PLUGIN_RUN_ON_CREATE__ \*\//g,"api.runWhenApplicationOnCreate(this)")),[4,v.default.writeFile(F,K,"utf-8")];case 16:return o.sent(),[2]}}))}))}function T(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a;return o(this,(function(s){switch(s.label){case 0:return n=l.default.join(e,"app/src/main/res/values/strings.xml"),[4,(0,m.parseElementTree)(n)];case 1:return i=s.sent(),i.getroot().find("string[@name='app_name']").text=t.name,(a=i.getroot().find("string[@name='wxa_brand_hint_donut']"))&&(r.enableRemoveWatermark?a.text="":a.text="Powered By Donut"),[4,(0,m.writeElementTree)(n,i)];case 2:return s.sent(),[2]}}))}))}function A(e,t,r){return s(this,void 0,void 0,(function(){function n(e){return s(this,void 0,void 0,(function(){var t,r,n,s,u,p,f;return o(this,(function(o){switch(o.label){case 0:return t=l.default.resolve(a,"mipmap-".concat(e)),[4,v.default.ensureDir(t)];case 1:return o.sent(),[4,v.default.readdir(t)];case 2:if(!(null==(r=o.sent())?void 0:r.length))return[3,6];n=0,s=r.length,o.label=3;case 3:return n<s?(u=r[n],(0,h.default)(u,"ic_launcher")?[4,v.default.unlink(l.default.resolve(t,u))]:[3,5]):[3,6];case 4:o.sent(),o.label=5;case 5:return n++,[3,3];case 6:return(p=c[e])?(i.debug("Update icon ".concat(e,": ").concat(p)),[4,v.default.exists(p)]):[3,9];case 7:return o.sent()?(f=(0,d.default)(p).ext,[4,v.default.copy(p,l.default.resolve(t,"ic_launcher".concat(f)))]):[3,9];case 8:o.sent(),o.label=9;case 9:return[2]}}))}))}var i,a,c;return o(this,(function(s){switch(s.label){case 0:return i=r.logger,a=l.default.join(e,"app/src/main/res"),c=t.icons,(0,p.default)(c)&&(c.xxxhdpi=l.default.join(g.TPL_PATH,"res/mipmap-xxxhdpi/ic_launcher.png")),[4,n("hdpi")];case 1:return s.sent(),[4,n("xhdpi")];case 2:return s.sent(),[4,n("xxhdpi")];case 3:return s.sent(),[4,n("xxxhdpi")];case 4:return s.sent(),[2]}}))}))}function O(e,t,r){return s(this,void 0,void 0,(function(){function n(e){return s(this,void 0,void 0,(function(){var t,r,n,i;return o(this,(function(a){switch(a.label){case 0:return[4,v.default.readdir(e)];case 1:if(!(t=a.sent()).length)return[3,5];r=0,n=t.length,a.label=2;case 2:return r<n?(i=t[r],(0,h.default)(i,"splashscreen")?[4,v.default.unlink(l.default.resolve(e,i))]:[3,4]):[3,5];case 3:a.sent(),a.label=4;case 4:return r++,[3,2];case 5:return[2]}}))}))}function i(e,t,r){return s(this,void 0,void 0,(function(){var i,a,s;return o(this,(function(o){switch(o.label){case 0:return i=l.default.resolve(u,"drawable".concat(t,"-").concat(e)),a=l.default.resolve(m,r),[4,v.default.ensureDir(i)];case 1:return o.sent(),[4,n(i)];case 2:return o.sent(),[4,v.default.exists(r)];case 3:return o.sent()?(s=(0,d.default)(r).ext,[4,v.default.copy(r,l.default.resolve(i,"splashscreen".concat(s)))]):[3,5];case 4:o.sent(),o.label=5;case 5:return[4,v.default.exists(a)];case 6:return o.sent()?(s=(0,d.default)(a).ext,[4,v.default.copy(a,l.default.resolve(i,"splashscreen".concat(s)))]):[3,8];case 7:o.sent(),o.label=8;case 8:return[2]}}))}))}function a(e){return s(this,void 0,void 0,(function(){var t,r,i;return o(this,(function(a){switch(a.label){case 0:return t=l.default.resolve(u,"drawable-".concat(e)),[4,v.default.ensureDir(t)];case 1:return a.sent(),[4,n(t)];case 2:return a.sent(),(r=f[e])?(c.debug("Update splashscreen ".concat(e,": ").concat(r)),[4,v.default.exists(r)]):[3,5];case 3:return a.sent()?(i=(0,d.default)(r).ext,[4,v.default.copy(r,l.default.resolve(t,"splashscreen".concat(i)))]):[3,5];case 4:a.sent(),a.label=5;case 5:return[2]}}))}))}var c,u,f,m,y,E,_,b,x,C,w=this;return o(this,(function(n){switch(n.label){case 0:if(c=r.logger,u=l.default.join(e,"app/src/main/res"),f=t.splashscreen,m=r.miniProgramProjectPath,E=!1,(y=["hdpi","xhdpi","xxhdpi"]).forEach((function(e){var t=f[e];f[e]&&f[e].includes("/")&&(t=f[e].slice(f[e].lastIndexOf("/")+1)),t&&t.startsWith("%")&&t.endsWith("%")&&(E=!0)})),(_=(0,p.default)(f))&&(f.hdpi=l.default.join(g.TPL_PATH,"res/drawable-hdpi/splashscreen.xml")),!E||!t.i18nFilePath)return[3,1];try{if(b=l.default.resolve(m,"res/i18nInfo.json"),v.default.existsSync(b)){x=v.default.readFileSync(b,"utf8");try{C=JSON.parse(x)}catch(e){console.error("parse error"),C={}}y.forEach((function(e){return s(w,void 0,void 0,(function(){var t,r,n,s,c,u,l,p,h,m;return o(this,(function(o){switch(o.label){case 0:if(t=f[e],f[e]&&f[e].includes("/")&&(t=f[e].slice(f[e].lastIndexOf("/")+1)),!(t&&t.startsWith("%")&&t.endsWith("%")))return[3,5];for(s in n=[],r=C)n.push(s);c=0,o.label=1;case 1:return c<n.length?(s=n[c])in r?(l="base"===(u=s)?"":"-b+".concat(u.replace(/-/g,"+")),p=t.slice(1,t.length-1),h=C[u].android[p],(m="res/splashscreen".concat(l||"","/").concat(e).concat((0,d.default)(h).ext))?[4,i(e,l,m)]:[3,3]):[3,3]:[3,4];case 2:o.sent(),o.label=3;case 3:return c++,[3,1];case 4:return[3,7];case 5:return[4,a(e)];case 6:o.sent(),o.label=7;case 7:return[2]}}))}))}))}}catch(e){throw Error("niuniuniu2".concat(e.toString()))}return[3,5];case 1:return[4,a("hdpi")];case 2:return n.sent(),[4,a("xhdpi")];case 3:return n.sent(),[4,a("xxhdpi")];case 4:n.sent(),n.label=5;case 5:return _&&delete f.hdpi,[2]}}))}))}function I(e,t,r){return s(this,void 0,void 0,(function(){function n(e,t){v.default.readdirSync(e).forEach((function(r){l.default.parse(r).name===t&&v.default.unlinkSync(l.default.join(e,r))}))}function i(r,i,c){return s(this,void 0,void 0,(function(){var s,u,p,d,f;return o(this,(function(o){switch(o.label){case 0:return s=t.privacy||{},u=s[c]&&l.default.extname(s[c]),a.debug("Privacy extname: ".concat(c," ").concat(u)),u?(p=l.default.join(e,r),d=l.default.normalize(l.default.join(p,i+u)),v.default.existsSync(d),s[c]?(f=s[c],a.debug("Update ensure ".concat(p)),v.default.ensureDirSync(p),a.debug("Update updatePrivacy ".concat(p,": ").concat(f)),v.default.existsSync(f)?(n(p,i),[4,v.default.copy(f,d)]):[3,2]):(n(p,i),[2])):[2];case 1:return o.sent(),a.debug("".concat(c," finishCopy : ").concat(f," -> ").concat(d)),[3,3];case 2:a.debug("".concat(c," not exists : ").concat(f)),o.label=3;case 3:return[2]}}))}))}var a;return o(this,(function(e){switch(e.label){case 0:return a=r.logger,[4,i("app/src/main/assets","miniapp-privacy","template")];case 1:return e.sent(),[4,i("app/src/main/res/drawable","privacy_content_view_image","contentViewImage")];case 2:return e.sent(),[4,i("app/src/main/res/drawable","privacy_cancel_button_image","cancelButtonImage")];case 3:return e.sent(),[4,i("app/src/main/res/drawable","privacy_confirm_button_image","confirmButtonImage")];case 4:return e.sent(),[2]}}))}))}t.update=function(e,t,r){return s(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,(0,m.normalizeConfig)(t,e,r.configPath)];case 1:return t=n.sent(),(0,f.default)(r,{logger:console}),[4,C(e,t,r)];case 2:return n.sent(),[4,S(e,t,r)];case 3:return n.sent(),[4,T(e,t,r)];case 4:return n.sent(),[4,A(e,t,r)];case 5:return n.sent(),[4,O(e,t,r)];case 6:return n.sent(),[4,I(e,t,r)];case 7:return n.sent(),[4,w(e,t,r)];case 8:return n.sent(),[4,N(e,t,r)];case 9:return n.sent(),[4,B(e,t,r)];case 10:return n.sent(),[4,L(e,t,r)];case 11:return n.sent(),[4,k(e,t,r)];case 12:return n.sent(),[4,R(e,t)];case 13:return n.sent(),[4,P(e,t,r)];case 14:return n.sent(),[2]}}))}))};var D=["ACCESS_COARSE_LOCATION","ACCESS_FINE_LOCATION","CAMERA","POST_NOTIFICATIONS","READ_CONTACTS","READ_PHONE_STATE","RECORD_AUDIO","READ_MEDIA_IMAGES","READ_MEDIA_VIDEO","READ_MEDIA_AUDIO","MODIFY_AUDIO_SETTINGS"];function N(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,s,c,u,p,d,f,h,m,g,y,E,_,b,x;return o(this,(function(C){switch(C.label){case 0:if(n=r.logger,i=l.default.join(e,"app/src/main/assets"),a=l.default.normalize(l.default.join(i,"miniapp-permission.json")),s=t.privateDescriptions||{},c=Object.keys(s),u=!1,c.forEach((function(e){s[e].startsWith("%")&&s[e].endsWith("%")&&(u=!0)})),!u||!t.i18nFilePath)return[3,5];if(p=r.miniProgramProjectPath,d=l.default.resolve(p,"res/i18nInfo.json"),f="miniapp-permission-templates",!v.default.existsSync(d))return[3,5];h=v.default.readFileSync(d,"utf8");try{m=JSON.parse(h)}catch(e){console.error("parse error"),m={}}for(_ in g=function(e){var t;return o(this,(function(r){switch(r.label){case 0:return t={runtimePermissions:{}},c.forEach((function(r){if(s[r].startsWith("%")&&s[r].endsWith("%")){var n=s[r].slice(1,s[r].length-1);t.runtimePermissions["android.permission.".concat(r)]=m[e].android[n]}else t.runtimePermissions["android.permission.".concat(r)]=s[r]})),v.default.ensureDirSync(i),n.debug("Update updatePrivacy ".concat(i)),v.default.mkdirSync(l.default.join(i,f),{recursive:!0}),[4,v.default.writeFile(l.default.normalize(l.default.join(i,"".concat(f,"/").concat(e,".json"))),JSON.stringify(t,null,2),"utf8")];case 1:return r.sent(),[2]}}))},E=[],y=m)E.push(_);b=0,C.label=1;case 1:return b<E.length?(_=E[b])in y?[5,g(_)]:[3,3]:[3,4];case 2:C.sent(),C.label=3;case 3:return b++,[3,1];case 4:return[2];case 5:return x={runtimePermissions:{}},c.forEach((function(e){x.runtimePermissions["android.permission.".concat(e)]=s[e]})),v.default.ensureDirSync(i),n.debug("Update updatePrivacy ".concat(i)),[4,v.default.writeFile(a,JSON.stringify(x,null,2),"utf8")];case 6:return C.sent(),[2]}}))}))}function k(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,s;return o(this,(function(o){switch(o.label){case 0:return n=r.logger,i=l.default.join(e,"app/src/main/assets"),a=l.default.normalize(l.default.join(i,"miniapp-gdt.json")),s=t.gdt||{},v.default.ensureDirSync(i),n.debug("Update updateGdtConfig ".concat(i)),[4,v.default.writeFile(a,JSON.stringify(s,null,2),"utf8")];case 1:return o.sent(),[2]}}))}))}function B(e,t,r){var n,i;return s(this,void 0,void 0,(function(){var a,s,c,u,p,d,f,h,g,y,E,_,b,x,C,w,S,T,A,O,I,N,k,B,L,R,P,j,U,F,K;return o(this,(function(o){switch(o.label){case 0:return a=r.logger,s=l.default.join(e,"app/src/main/AndroidManifest.xml"),[4,(0,m.parseElementTree)(s)];case 1:for(c=o.sent(),u=t.privateDescriptions||{},p=t.uselessPermissions||[],d=c.getroot(),f=0,h=D;f<h.length;f++)E=h[f],_=c.getroot().find(".//uses-permission[@android:name='android.permission.".concat(E,"']")),u[E]?_||(a.debug("ready to add permission ".concat(E)),k=(0,m.createElement)("uses-permission",{"android:name":"android.permission.".concat(E)}),B=d.findall("uses-permission"),L=B.length,a.debug("ready to add permission ".concat(E," to ").concat(L,"...")),d._children.splice(L+1,0,k)):_&&(a.debug("ready to remove permission ".concat(E)),c.getroot().remove(_));for(g=0,y=p;g<y.length;g++)E=y[g],u[E]?a.debug("cannot remove permission ".concat(E,", because it has description")):((_=c.getroot().find(".//uses-permission[@android:name='android.permission.".concat(E,"']")))&&(a.debug("ready to remove permission ".concat(E)),c.getroot().remove(_)),a.debug("ready to add permission ".concat(E)),k=(0,m.createElement)("uses-permission",{"android:name":"android.permission.".concat(E),"tools:node":"remove"}),B=d.findall("uses-permission"),L=B.length,a.debug("ready to add permission ".concat(E," to ").concat(L,"...")),d._children.splice(L+1,0,k));if((0,m.compareVersion)(t.sdkVersion,"1.1.7")>0&&(_=c.getroot().find(".//uses-permission[@android:name='android.permission.REQUEST_INSTALL_PACKAGES']"))&&c.getroot().remove(_),b=d.find("application"),t["mini-android"].channel&&(x=t["mini-android"].channel,C=(0,m.createElement)("meta-data",{"android:name":x.name,"android:value":x.value}),b._children.splice(0,0,C)),w=d.find("./application/activity[@android:name='.ui.MainActivity']"),S=c.getroot().find(".//uses-permission[@android:name='android.permission.READ_EXTERNAL_STORAGE']"),T=r.miniProgramProjectPath,A=l.default.resolve(T,"res/i18nInfo.json"),v.default.existsSync(A)){O=v.default.readFileSync(A,"utf8"),v.default.existsSync(A),I=void 0;try{I=JSON.parse(O)}catch(e){console.error("parse error"),I={}}if(t.i18nFilePath&&t.name&&t.name.startsWith("%")&&t.name.endsWith("%")){if(!I.base.android.name)throw Error("'name' field not found in base.json file");b.attrib["android:label"]="@string/".concat(t.name.slice(1,t.name.length-1)),(N=b.attrib["tools:replace"])&&""!==N?N.includes("android:label")||(b.attrib["tools:replace"]=N+",android:label"):b.attrib["tools:replace"]="android:label"}}return w&&t["mini-android"].openMimeTypes&&(S||(k=(0,m.createElement)("uses-permission",{"android:name":"android.permission.READ_EXTERNAL_STORAGE"}),B=d.findall("uses-permission"),L=B.length,d._children.splice(L+1,0,k)),R=t["mini-android"].openMimeTypes,P=(0,m.createElement)("action",{"android:name":"android.intent.action.VIEW"}),j=(0,m.createElement)("category",{"android:name":"android.intent.category.DEFAULT"}),U=(0,m.createElement)("category",{"android:name":"android.intent.category.BROWSABLE"}),R.forEach((function(e){var t=(0,m.createElement)("data",{"android:scheme":"content","android:mimeType":e}),r=(0,m.createElement)("intent-filter",{});r._children.push(P),r._children.push(j),r._children.push(U),r._children.push(t),w._children.push(r)}))),F=d.find("./application/meta-data[@android:name='TencentMapSDK']"),(null===(n=null==t?void 0:t.usePluginSdk)||void 0===n?void 0:n.map)&&(null===(i=null==t?void 0:t.map)||void 0===i?void 0:i.qmapAPIKey)?F||(K=(0,m.createElement)("meta-data",{"android:name":"TencentMapSDK","android:value":"${qmapAPIKey}","tools:replace":"android:value"}),b._children.splice(0,0,K)):F&&(a.debug("ready to remove qmapAPIKey"),b.remove(F)),[4,(0,m.writeElementTree)(s,c)];case 2:return o.sent(),[2]}}))}))}function L(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,s,c,u;return o(this,(function(o){switch(o.label){case 0:return n=r.logger,i=l.default.join(e,"app"),a=l.default.normalize(l.default.join(i,"tpns-configs.json")),s=v.default.existsSync(a),(c=t.tpush||{}).configs?(u=c.configs,n.debug("Update updateTpush ".concat(i,": ").concat(u)),v.default.ensureDirSync(i),n.debug("Update updateTpush ".concat(i,": ").concat(u)),v.default.existsSync(u)?(s&&v.default.unlinkSync(a),[4,v.default.copy(u,a)]):[3,2]):(n.debug("no updateTpush ".concat(a)),s&&v.default.unlinkSync(a),[2]);case 1:o.sent(),o.label=2;case 2:return[2]}}))}))}function R(e,t){return s(this,void 0,void 0,(function(){var r,n,i;return o(this,(function(a){switch(a.label){case 0:return r=l.default.join(e,"app/src/main/assets"),n=[],t["mini-android"].channel&&(i=t["mini-android"].channel,n.push({name:i.name,value:i.value})),[4,v.default.writeFile(l.default.join(r,"miniapp-custom-meta-data.json"),JSON.stringify(n),"utf-8")];case 1:return a.sent(),[2]}}))}))}function P(e,t,r){return s(this,void 0,void 0,(function(){function n(t,r){return s(this,void 0,void 0,(function(){var n,s,c,u;return o(this,(function(o){switch(o.label){case 0:return n="".concat(a,"/").concat(t),s=v.default.statSync(n),v.default.existsSync(n)&&s.isDirectory()?(c=v.default.readdirSync(n),u=[],c.forEach((function(t){var a=l.default.join(n,t),s=l.default.join(e,r,t);v.default.statSync(a).isFile()&&(u.push(v.default.copy(a,s)),i.debug("ready copy ".concat(a,": ").concat(s)))})),[4,Promise.all(u)]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))}var i,a;return o(this,(function(e){switch(e.label){case 0:return(i=r.logger).debug("updateResource resourcePathZip"),(a=t.resourcePath)?(i.debug("nativeResourcesPath: ".concat(a)),[4,n("app","app")]):(i.debug("no nativeResourcesPath"),[2]);case 1:return e.sent(),[4,n("assets","app/src/main/assets")];case 2:return e.sent(),[2]}}))}))}},6439:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.updateNativePlugin=void 0;var u=c(r(8105)),l=c(r(6928)),p=c(r(9464)),d=c(r(5651)),f=r(7746),h=c(r(1605)),m=a(r(7028)),v=c(r(4037)),g=(0,c(r(3169)).default)(r(3577)),y={open:"open",close:"close",undefined:void 0};function E(e,t,r){var n;return s(this,void 0,void 0,(function(){var i,a,s,c,d;return o(this,(function(o){switch(o.label){case 0:return i=l.default.join(e,"miniapp.json"),[4,(0,f.readAsJson)(i)];case 1:return a=o.sent(),s=t.enableVConsole,c=t.privacy,d=Number(t.targetSdkVersion),(0,u.default)(a,{sdkKey:t.sdkKey,sdkKeySecret:t.sdkKeySecret,packageName:r.packageName,miniModuleId:r.miniModuleId,useExtendedSdk:{},version:t.version,versionCode:t.versionCode,appMenuEnable:t.appMenuEnable,usePluginSdk:{},map:t.map,scheme:(null===(n=null==t?void 0:t.schemes)||void 0===n?void 0:n.scheme)||"__placeholder__",targetSdkVersion:d>29?d:29}),s&&(0,u.default)(a,{enableVConsole:y[s]}),c&&(0,u.default)(a,{privacyPopup:null==c?void 0:c.enable}),t.sdkVersion&&(0,u.default)(a,{sdkVersion:t.sdkVersion}),(0,u.default)(a,{splashscreen:!(0,p.default)(t.splashscreen)}),[4,(0,f.writeAsJson)(i,a)];case 2:return o.sent(),[2]}}))}))}function _(e,t,r){return s(this,void 0,void 0,(function(){var n,i;return o(this,(function(a){switch(a.label){case 0:return n=l.default.join(e,"miniapp.plugin.json"),[4,(0,f.readAsJson)(n)];case 1:return i=a.sent(),(0,u.default)(i,{pluginId:r.pluginId,pluginPackageName:t.pluginPackageName}),[4,(0,f.writeAsJson)(n,i)];case 2:return a.sent(),[2]}}))}))}function b(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,s,c,u,p,d,y,E,_,b,x,C,w,S,T,A,O,I,D,N,k,B,L,R,P,j,U,F;return o(this,(function(o){switch(o.label){case 0:return n=l.default.join(e,"miniapp.json"),[4,(0,f.readAsJson)(n)];case 1:return i=o.sent(),a=i.packageName,s=i.miniModuleId,c=r.packageName,u=void 0===c?t.packageName:c,p=r.miniModuleId,d=void 0===p?t.miniModuleId:p,y=l.default.join(e,"app"),E=l.default.join(y,"src/main/java"),_=(u||a||m.DEFAULT_PACKAGE_NAME).replace(/\./g,l.default.sep),b=l.default.join(E,_),console.warn("javaPath:",b),u&&!a||a!==u?(h.default.emptyDirSync(E),x=l.default.join(m.PLUGIN_TPL_PATH,"java"),[4,h.default.copy(x,b)]):[3,9];case 2:return o.sent(),[4,g("**/*.+(kt)",{cwd:b})];case 3:S=o.sent(),C=0,w=S,o.label=4;case 4:return C<w.length?(D=w[C],N=l.default.join(b,D),[4,(0,f.replaceFileContent)(N,(j={__PACKAGE__:u},j[a]=u,j))]):[3,7];case 5:o.sent(),o.label=6;case 6:return C++,[3,4];case 7:return[4,(0,f.replaceFileContent)(l.default.join(y,"src/main/AndroidManifest.xml"),(U={__PACKAGE__:u},U[a]=u,U))];case 8:o.sent(),o.label=9;case 9:return!d||s&&s===d?[3,14]:[4,g("**/*.+(kt)",{cwd:b})];case 10:S=o.sent(),T=l.default.join(y,"src/main/assets"),A=(0,v.default)(l.default.relative(T,t.archivePath)),O=0,I=S,o.label=11;case 11:return O<I.length?(D=I[O],N=l.default.join(b,D),[4,(0,f.replaceFileContent)(N,(F={__MODULE_ID__:d,__MODULE_PATH__:A},F[s]=d,F))]):[3,14];case 12:o.sent(),o.label=13;case 13:return O++,[3,11];case 14:return(k=t.sdkVersion)?(B=1===(0,f.compareVersion)(k,"1.0.2"),L=1===(0,f.compareVersion)(k,"1.0.7"),R=l.default.join(b,"DemoApplication.kt"),[4,h.default.readFile(R,"utf-8")]):[2];case 15:return P=(P=o.sent()).replace("appMenuEnable = BuildConfig.APP_MENU_ENABLE","/* __APP_MENU_ENABLE__ */"),B&&(P=P.replace(/\/\* __APP_MENU_ENABLE__ \*\//g,"appMenuEnable = BuildConfig.APP_MENU_ENABLE")),L&&(P=P.replace(/\/\* __APP_SCHEME__ \*\//g,"scheme = BuildConfig.SCHEME")),[4,h.default.writeFile(R,P,"utf-8")];case 16:return o.sent(),[2]}}))}))}function x(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,s,c,u,p,d,v,y,E,_,b,x,C,w,S,T,A,O,I,D,N,k,B,L;return o(this,(function(o){switch(o.label){case 0:return n=l.default.join(e,"miniapp.plugin.json"),[4,(0,f.readAsJson)(n)];case 1:return i=o.sent(),a=i.pluginId,s=i.pluginPackageName,c=r.pluginId,u=void 0===c?t.pluginId:c,p=r.pluginPackageName,d=void 0===p?t.pluginPackageName:p,v=l.default.join(e,"plugin"),y=l.default.join(v,"src/main/java"),E=(d||s).replace(/\./g,l.default.sep),_=l.default.join(y,E),console.warn("pluginJavaPath:",_),d&&!s||s!==d?(h.default.emptyDirSync(y),b=l.default.join(m.PLUGIN_TPL_PATH,"javaplugin"),[4,h.default.copy(b,_)]):[3,11];case 2:return o.sent(),[4,g("**/*.+(kt)",{cwd:_})];case 3:x=o.sent(),C=0,w=x,o.label=4;case 4:return C<w.length?(O=w[C],I=l.default.join(_,O),[4,(0,f.replaceFileContent)(I,(D={__PLUGIN_PACKAGE__:d},D[s]=d,D))]):[3,7];case 5:o.sent(),o.label=6;case 6:return C++,[3,4];case 7:return[4,(0,f.replaceFileContent)(l.default.join(v,"src/main/AndroidManifest.xml"),(N={__PLUGIN_PACKAGE__:d},N[s]=d,N))];case 8:return o.sent(),[4,(0,f.replaceFileContent)(l.default.join(v,"src/main/resources/META-INF/services/com.tencent.luggage.wxa.SaaA.plugin.NativePluginInterface"),(k={__PLUGIN_PACKAGE__:d},k[s]=d,k))];case 9:return o.sent(),[4,(0,f.replaceFileContent)(l.default.join(v,"proguard-rules.pro"),(B={__PLUGIN_PACKAGE__:d},B[s]=d,B))];case 10:o.sent(),o.label=11;case 11:return console.error("//",u,a),!u||a&&a===u?[3,16]:[4,g("**/*.+(properties)",{cwd:v})];case 12:S=o.sent(),T=0,A=S,o.label=13;case 13:return T<A.length?(O=A[T],I=l.default.join(v,O),[4,(0,f.replaceFileContent)(I,(L={__PLUGIN_ID__:u},L[a]=u,L))]):[3,16];case 14:o.sent(),o.label=15;case 15:return T++,[3,13];case 16:return[2]}}))}))}function C(e,t){return s(this,void 0,void 0,(function(){var r,n;return o(this,(function(i){switch(i.label){case 0:return r=l.default.join(e,"app/src/main/res/values/strings.xml"),[4,(0,f.parseElementTree)(r)];case 1:return n=i.sent(),n.getroot().find("string[@name='app_name']").text=t.name,[4,(0,f.writeElementTree)(r,n)];case 2:return i.sent(),[2]}}))}))}t.updateNativePlugin=function(e,t,r){return s(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,(0,f.normalizeConfig)(t,e,r.configPath)];case 1:return t=n.sent(),(0,d.default)(r,{logger:console}),[4,b(e,t,r)];case 2:return n.sent(),[4,x(e,t,r)];case 3:return n.sent(),[4,C(e,t)];case 4:return n.sent(),[4,E(e,t,r)];case 5:return n.sent(),[4,_(e,t,r)];case 6:return n.sent(),[2]}}))}))}},4343:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}};t.__esModule=!0,t.updateV2=void 0,t.updateV2=function(e){return r(this,void 0,void 0,(function(){return n(this,(function(e){return[2]}))}))}},7746:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return s(t,e),t},c=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))},u=this&&this.__generator||function(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.escapeQuotes=t.ensureJdk=t.compareVersion=t.isOldUser=t.unzip=t.createErr=t.createElement=t.writeElementTree=t.parseElementTree=t.writeAsJson=t.readAsJson=t.normalizeConfig=t.replaceFileContent=void 0;var p=l(r(1605)),d=l(r(894)),f=l(r(9405)),h=l(r(9100)),m=l(r(5651)),v=l(r(8105)),g=l(r(1580)),y=l(r(8265)),E=l(r(9491)),_=l(r(6928)),b=l(r(283)),x=l(r(9329)),C=l(r(9464)),w=l(r(2162)),S=l(r(4888)),T=l(r(3497)),A=l(r(4079)),O=o(r(7028)),I=r(7028),D=l(r(2884));function N(e){return c(this,void 0,void 0,(function(){var t,r;return u(this,(function(n){switch(n.label){case 0:return r=(t=JSON).parse,[4,p.default.readFile(e,"utf8")];case 1:return[2,r.apply(t,[n.sent()])]}}))}))}t.replaceFileContent=function(e,t){return c(this,void 0,void 0,(function(){var r;return u(this,(function(n){switch(n.label){case 0:return[4,p.default.readFile(e,"utf8")];case 1:return r=n.sent(),(0,h.default)(t,(function(e,t){r=(0,d.default)(r,t,e)})),[4,p.default.writeFile(e,r,"utf8")];case 2:return n.sent(),[2]}}))}))},t.normalizeConfig=function(e,t,r){var n,i;return void 0===r&&(r=""),c(this,void 0,void 0,(function(){var a,s,o,c,l,p,d,E,b,x;return u(this,(function(u){switch(u.label){case 0:return"string"!=typeof e?[3,2]:(r=e,[4,N(e)]);case 1:e=u.sent(),u.label=2;case 2:return(0,g.default)(r,".json")&&(r=(0,w.default)(r||"").dir),e["mini-android"]&&(0,v.default)(e,e["mini-android"]),(null===(n=e["mini-plugin"])||void 0===n?void 0:n.android)&&(a=null===(i=e["mini-plugin"])||void 0===i?void 0:i.android,Array.isArray(a)&&(0,v.default)(e,{nativePlugins:a})),(0,m.default)(e,{sdkKey:"",sdkKeySecret:"",versionCode:100,packageName:O.DEFAULT_PACKAGE_NAME,useExtendedSdk:{},icons:{},splashscreen:{},privacy:{},privateDescriptions:{},appMenuEnable:!0}),(0,m.default)(e.privacy,{enable:!1,template:""}),(0,m.default)(e.useExtendedSdk,{media:!0,bluetooth:!1,network:!1,scanner:!1,xweb:!1,xwebEmbed:!1,skyline:!1,install:!0,open:!0,test:!1}),R(e.sdkVersion,"1.1.8")<0&&(e.useExtendedSdk.install=!1),R(e.sdkVersion,"1.3.11")<0&&(e.useExtendedSdk.open=!1),console.error("archivePath",e.archivePath,t),(0,y.default)(e.archivePath)&&(e.archivePath=_.default.resolve(t,e.archivePath)),s=e.icons,(0,C.default)(s)||(0,h.default)(s,(function(e,t){""===(0,f.default)(e)?delete s[t]:(0,y.default)(e)&&(s[t]=_.default.resolve(r,e))})),o=e.splashscreen,(0,C.default)(o)||(0,h.default)(o,(function(e,t){""===(0,f.default)(e)?delete o[t]:(0,y.default)(e)&&(o[t]=_.default.resolve(r,e))})),c=e.privacy,l=c.template||"",""!==(0,f.default)(l)&&(0,y.default)(l)&&(c.template=_.default.resolve(r,l)),p=c.contentViewImage||"",""!==(0,f.default)(p)&&(0,y.default)(p)&&(c.contentViewImage=_.default.resolve(r,p)),d=c.cancelButtonImage||"",""!==(0,f.default)(d)&&(0,y.default)(d)&&(c.cancelButtonImage=_.default.resolve(r,d)),E=c.confirmButtonImage||"",""!==(0,f.default)(E)&&(0,y.default)(E)&&(c.confirmButtonImage=_.default.resolve(r,E)),b=e.tpush||{},x=b.configs||"",""!==(0,f.default)(x)&&(0,y.default)(x)&&(b.configs=_.default.resolve(r,x)),e.resourcePath&&""!==(0,f.default)(e.resourcePath)&&(0,y.default)(e.resourcePath)&&(e.resourcePath=_.default.resolve(r,e.resourcePath)),[2,e]}}))}))},t.readAsJson=N,t.writeAsJson=function(e,t){return c(this,void 0,void 0,(function(){return u(this,(function(r){switch(r.label){case 0:return[4,p.default.writeFile(e,JSON.stringify(t,null,2),"utf8")];case 1:return[2,r.sent()]}}))}))},t.parseElementTree=function(e){return c(this,void 0,void 0,(function(){var t,r;return u(this,(function(n){switch(n.label){case 0:return r=(t=E.default).parse,[4,p.default.readFile(e,"utf8")];case 1:return[2,r.apply(t,[n.sent()])]}}))}))},t.writeElementTree=function(e,t){return c(this,void 0,void 0,(function(){return u(this,(function(r){switch(r.label){case 0:return[4,p.default.writeFile(e,t.write({indent:4}),"utf8")];case 1:return r.sent(),[2]}}))}))},t.createElement=function(e,t,r){var n=E.default.Element(e);return(0,h.default)(t,(function(e,t){n.attrib[t]=e})),r&&(n.text=r),n};var k=function(e){function t(t,r){var n=e.call(this,r)||this;return n.name=t,n}return i(t,e),t}(Error);function B(e,t){return c(this,void 0,void 0,(function(){var r;return u(this,(function(n){return r=new b.default(e),[2,new Promise((function(e,n){r.extractAllToAsync(t,!0,!0,(function(t){if(t)return n(t);e(null)}))}))]}))}))}function L(e){return c(this,void 0,void 0,(function(){var t;return u(this,(function(r){switch(r.label){case 0:return t=_.default.join(e,"project.config.json"),[4,p.default.exists(t)];case 1:if(!r.sent())throw new Error("获取不到appId");return[4,p.default.readJSON(t)];case 2:return[2,r.sent().appid]}}))}))}function R(e,t){e=e.split("."),t=t.split(".");for(var r=Math.max(e.length,t.length);e.length<r;)e.push("0");for(;t.length<r;)t.push("0");for(var n=0;n<r;n++){var i=parseInt(e[n]),a=parseInt(t[n]);if(i>a)return 1;if(i<a)return-1}return 0}t.createErr=function(e){var t="";if("needCreate"===e)t="You need to recreate android project.";else t="unknown error";return new k(e,t)},t.unzip=B,t.isOldUser=function(e){return c(this,void 0,void 0,(function(){var t;return u(this,(function(r){switch(r.label){case 0:return[4,L(e)];case 1:return t=r.sent(),[4,x.default.get("".concat(I.checkdonutbetaUrl,"?appid=").concat(t))];case 2:return[2,r.sent().data.is_old]}}))}))},t.compareVersion=R,t.ensureJdk=function(){return c(this,void 0,void 0,(function(){var e,t,r,n,i,a,s;return u(this,(function(o){switch(o.label){case 0:return e="http://dldir1.qq.com/WechatWebDev/donut/android/jdk/jdk-11.0.18_".concat(S.default?"windows":"osx","-x64_0.1.0.zip"),t=(0,T.default)(e.split("/")),r=_.default.resolve(__dirname,"../jdk"),n=_.default.resolve(r,t),i="".concat(n.replace(".zip",""),"/bin"),S.default?[3,4]:(a=_.default.resolve(i,"java"),[4,p.default.exists(a)]);case 1:return o.sent()?[4,p.default.stat(a)]:[3,4];case 2:return o.sent().mode&p.default.constants.X_OK?[3,4]:[4,p.default.rmdir(r,{recursive:!0})];case 3:o.sent(),o.label=4;case 4:return[4,p.default.exists(i)];case 5:return o.sent()?[2,i]:[4,p.default.ensureDir(r)];case 6:return o.sent(),[4,x.default.get(e,{responseType:"arraybuffer",adapter:"http"})];case 7:return s=o.sent(),[4,p.default.writeFile(n,s.data)];case 8:return o.sent(),[4,B(n,r)];case 9:return o.sent(),[4,p.default.unlink(n)];case 10:return o.sent(),[2,i]}}))}))},t.escapeQuotes=function(e){return e.replace(/'/g,"\\'").replace(/"/g,'\\"')},A.default.addPlugin("positiveInteger",(function(e,t){return!!((0,D.default)(e)&&e>0)||"".concat(t," should be a positive integer")})),A.default.addPlugin("lessThan",(function(e,t,r){return e<r||"".concat(t," should be less than ").concat(r)}))},1236:(e,t)=>{"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((r,n)=>{t.push(((e,t)=>null!=e?n(e):r(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if("function"!=typeof r)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>r(null,e)),r)}),"name",{value:e.name})}},6911:(e,t,r)=>{const n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=r(6928),a=n?";":":",s=r(1147),o=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),c=(e,t)=>{const r=t.colon||a,i=e.match(/\//)||n&&e.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],s=n?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=n?s.split(r):[""];return n&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:s}},u=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:a,pathExtExe:u}=c(e,t),l=[],p=r=>new Promise(((a,s)=>{if(r===n.length)return t.all&&l.length?a(l):s(o(e));const c=n[r],u=/^".*"$/.test(c)?c.slice(1,-1):c,p=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;a(d(f,r,0))})),d=(e,r,n)=>new Promise(((i,o)=>{if(n===a.length)return i(p(r+1));const c=a[n];s(e+c,{pathExt:u},((a,s)=>{if(!a&&s){if(!t.all)return i(e+c);l.push(e+c)}return i(d(e,r,n+1))}))}));return r?p(0).then((e=>r(null,e)),r):p(0)};e.exports=u,u.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:a}=c(e,t),u=[];for(let o=0;o<r.length;o++){const c=r[o],l=/^".*"$/.test(c)?c.slice(1,-1):c,p=i.join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let e=0;e<n.length;e++){const r=d+n[e];try{if(s.sync(r,{pathExt:a})){if(!t.all)return r;u.push(r)}}catch(e){}}}if(t.all&&u.length)return u;if(t.nothrow)return null;throw o(e)}},6587:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}},2613:e=>{"use strict";e.exports=require("assert")},290:e=>{"use strict";e.exports=require("async_hooks")},181:e=>{"use strict";e.exports=require("buffer")},5317:e=>{"use strict";e.exports=require("child_process")},9140:e=>{"use strict";e.exports=require("constants")},6982:e=>{"use strict";e.exports=require("crypto")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},9278:e=>{"use strict";e.exports=require("net")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},2203:e=>{"use strict";e.exports=require("stream")},3193:e=>{"use strict";e.exports=require("string_decoder")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},3106:e=>{"use strict";e.exports=require("zlib")},9329:(e,t,r)=>{"use strict";const n=r(737),i=r(7016),a=r(6504),s=r(8611),o=r(5692),c=r(9023),u=r(3164),l=r(3106),p=r(2203),d=r(4434);function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const h=f(n),m=f(i),v=f(s),g=f(o),y=f(c),E=f(u),_=f(l),b=f(p);function x(e,t){return function(){return e.apply(t,arguments)}}const{toString:C}=Object.prototype,{getPrototypeOf:w}=Object,S=(T=Object.create(null),e=>{const t=C.call(e);return T[t]||(T[t]=t.slice(8,-1).toLowerCase())});var T;const A=e=>(e=e.toLowerCase(),t=>S(t)===e),O=e=>t=>typeof t===e,{isArray:I}=Array,D=O("undefined");const N=A("ArrayBuffer");const k=O("string"),B=O("function"),L=O("number"),R=e=>null!==e&&"object"==typeof e,P=e=>{if("object"!==S(e))return!1;const t=w(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},j=A("Date"),U=A("File"),F=A("Blob"),K=A("FileList"),M=A("URLSearchParams"),[V,Y,G,H]=["ReadableStream","Request","Response","Headers"].map(A);function z(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),I(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function q(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,$=e=>!D(e)&&e!==W;const Q=(X="undefined"!=typeof Uint8Array&&w(Uint8Array),e=>X&&e instanceof X);var X;const Z=A("HTMLFormElement"),J=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ee=A("RegExp"),te=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};z(r,((r,i)=>{let a;!1!==(a=t(r,i,e))&&(n[i]=a||r)})),Object.defineProperties(e,n)},re="abcdefghijklmnopqrstuvwxyz",ne="0123456789",ie={DIGIT:ne,ALPHA:re,ALPHA_DIGIT:re+re.toUpperCase()+ne};const ae=A("AsyncFunction"),se=(oe="function"==typeof setImmediate,ce=B(W.postMessage),oe?setImmediate:ce?(ue=`axios@${Math.random()}`,le=[],W.addEventListener("message",(({source:e,data:t})=>{e===W&&t===ue&&le.length&&le.shift()()}),!1),e=>{le.push(e),W.postMessage(ue,"*")}):e=>setTimeout(e));var oe,ce,ue,le;const pe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(W):"undefined"!=typeof process&&process.nextTick||se,de={isArray:I,isArrayBuffer:N,isBuffer:function(e){return null!==e&&!D(e)&&null!==e.constructor&&!D(e.constructor)&&B(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||B(e.append)&&("formdata"===(t=S(e))||"object"===t&&B(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&N(e.buffer),t},isString:k,isNumber:L,isBoolean:e=>!0===e||!1===e,isObject:R,isPlainObject:P,isReadableStream:V,isRequest:Y,isResponse:G,isHeaders:H,isUndefined:D,isDate:j,isFile:U,isBlob:F,isRegExp:ee,isFunction:B,isStream:e=>R(e)&&B(e.pipe),isURLSearchParams:M,isTypedArray:Q,isFileList:K,forEach:z,merge:function e(){const{caseless:t}=$(this)&&this||{},r={},n=(n,i)=>{const a=t&&q(r,i)||i;P(r[a])&&P(n)?r[a]=e(r[a],n):P(n)?r[a]=e({},n):I(n)?r[a]=n.slice():r[a]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&z(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(z(t,((t,n)=>{r&&B(t)?e[n]=x(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,a,s;const o={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],n&&!n(s,e,t)||o[s]||(t[s]=e[s],o[s]=!0);e=!1!==r&&w(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:S,kindOfTest:A,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(I(e))return e;let t=e.length;if(!L(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:Z,hasOwnProperty:J,hasOwnProp:J,reduceDescriptors:te,freezeMethods:e=>{te(e,((t,r)=>{if(B(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];B(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return I(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:q,global:W,isContextDefined:$,ALPHABET:ie,generateString:(e=16,t=ie.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&B(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(R(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=I(e)?[]:{};return z(e,((e,t)=>{const a=r(e,n+1);!D(a)&&(i[t]=a)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:ae,isThenable:e=>e&&(R(e)||B(e))&&B(e.then)&&B(e.catch),setImmediate:se,asap:pe};function fe(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}de.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.status}}});const he=fe.prototype,me={};function ve(e){return de.isPlainObject(e)||de.isArray(e)}function ge(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function ye(e,t,r){return e?e.concat(t).map((function(e,t){return e=ge(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{me[e]={value:e}})),Object.defineProperties(fe,me),Object.defineProperty(he,"isAxiosError",{value:!0}),fe.from=(e,t,r,n,i,a)=>{const s=Object.create(he);return de.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),fe.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const Ee=de.toFlatObject(de,{},null,(function(e){return/^is[A-Z]/.test(e)}));function _e(e,t,r){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new(h.default||FormData);const n=(r=de.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!de.isUndefined(t[e])}))).metaTokens,i=r.visitor||u,a=r.dots,s=r.indexes,o=(r.Blob||"undefined"!=typeof Blob&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(de.isDate(e))return e.toISOString();if(!o&&de.isBlob(e))throw new fe("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(e)||de.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,i){let o=e;if(e&&!i&&"object"==typeof e)if(de.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(de.isArray(e)&&function(e){return de.isArray(e)&&!e.some(ve)}(e)||(de.isFileList(e)||de.endsWith(r,"[]"))&&(o=de.toArray(e)))return r=ge(r),o.forEach((function(e,n){!de.isUndefined(e)&&null!==e&&t.append(!0===s?ye([r],n,a):null===s?r:r+"[]",c(e))})),!1;return!!ve(e)||(t.append(ye(i,r,a),c(e)),!1)}const l=[],p=Object.assign(Ee,{defaultVisitor:u,convertValue:c,isVisitable:ve});if(!de.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!de.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),de.forEach(r,(function(r,a){!0===(!(de.isUndefined(r)||null===r)&&i.call(t,r,de.isString(a)?a.trim():a,n,p))&&e(r,n?n.concat(a):[a])})),l.pop()}}(e),t}function be(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function xe(e,t){this._pairs=[],e&&_e(e,this,t)}const Ce=xe.prototype;function we(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Se(e,t,r){if(!t)return e;const n=r&&r.encode||we,i=r&&r.serialize;let a;if(a=i?i(t,r):de.isURLSearchParams(t)?t.toString():new xe(t,r).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}Ce.append=function(e,t){this._pairs.push([e,t])},Ce.toString=function(e){const t=e?function(t){return e.call(this,t,be)}:be;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Te=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){de.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oe={isNode:!0,classes:{URLSearchParams:m.default.URLSearchParams,FormData:h.default,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]},Ie="undefined"!=typeof window&&"undefined"!=typeof document,De="object"==typeof navigator&&navigator||void 0,Ne=Ie&&(!De||["ReactNative","NativeScript","NS"].indexOf(De.product)<0),ke="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Be=Ie&&window.location.href||"http://localhost",Le={...Object.freeze({__proto__:null,hasBrowserEnv:Ie,hasStandardBrowserWebWorkerEnv:ke,hasStandardBrowserEnv:Ne,navigator:De,origin:Be}),...Oe};function Re(e){function t(e,r,n,i){let a=e[i++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),o=i>=e.length;if(a=!a&&de.isArray(n)?n.length:a,o)return de.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!s;n[a]&&de.isObject(n[a])||(n[a]=[]);return t(e,r,n[a],i)&&de.isArray(n[a])&&(n[a]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}(n[a])),!s}if(de.isFormData(e)&&de.isFunction(e.entries)){const r={};return de.forEachEntry(e,((e,n)=>{t(function(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const Pe={transitional:Ae,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=de.isObject(e);i&&de.isHTMLForm(e)&&(e=new FormData(e));if(de.isFormData(e))return n?JSON.stringify(Re(e)):e;if(de.isArrayBuffer(e)||de.isBuffer(e)||de.isStream(e)||de.isFile(e)||de.isBlob(e)||de.isReadableStream(e))return e;if(de.isArrayBufferView(e))return e.buffer;if(de.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return _e(e,new Le.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return Le.isNode&&de.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=de.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return _e(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e,t,r){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Pe.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(de.isResponse(e)||de.isReadableStream(e))return e;if(e&&de.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw fe.from(e,fe.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Le.classes.FormData,Blob:Le.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],(e=>{Pe.headers[e]={}}));const je=Pe,Ue=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fe=Symbol("internals");function Ke(e){return e&&String(e).trim().toLowerCase()}function Me(e){return!1===e||null==e?e:de.isArray(e)?e.map(Me):String(e)}function Ve(e,t,r,n,i){return de.isFunction(n)?n.call(this,t,r):(i&&(t=r),de.isString(t)?de.isString(n)?-1!==t.indexOf(n):de.isRegExp(n)?n.test(t):void 0:void 0)}class Ye{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=Ke(t);if(!i)throw new Error("header name must be a non-empty string");const a=de.findKey(n,i);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=Me(e))}const a=(e,t)=>de.forEach(e,((e,r)=>i(e,r,t)));if(de.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(de.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&Ue[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(de.isHeaders(e))for(const[t,n]of e.entries())i(n,t,r);else null!=e&&i(t,e,r);return this}get(e,t){if(e=Ke(e)){const r=de.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(de.isFunction(t))return t.call(this,e,r);if(de.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ke(e)){const r=de.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ve(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=Ke(e)){const i=de.findKey(r,e);!i||t&&!Ve(0,r[i],i,t)||(delete r[i],n=!0)}}return de.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!Ve(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return de.forEach(this,((n,i)=>{const a=de.findKey(r,i);if(a)return t[a]=Me(n),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();s!==i&&delete t[i],t[s]=Me(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return de.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&de.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[Fe]=this[Fe]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Ke(e);t[n]||(!function(e,t){const r=de.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return de.isArray(e)?e.forEach(n):n(e),this}}Ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),de.reduceDescriptors(Ye.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),de.freezeMethods(Ye);const Ge=Ye;function He(e,t){const r=this||je,n=t||r,i=Ge.from(n.headers);let a=n.data;return de.forEach(e,(function(e){a=e.call(r,a,i.normalize(),t?t.status:void 0)})),i.normalize(),a}function ze(e){return!(!e||!e.__CANCEL__)}function qe(e,t,r){fe.call(this,null==e?"canceled":e,fe.ERR_CANCELED,t,r),this.name="CanceledError"}function We(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new fe("Request failed with status code "+r.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function $e(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}de.inherits(qe,fe,{__CANCEL__:!0});const Qe="1.7.7";function Xe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const Ze=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const Je=Symbol("internals");class et extends b.default.Transform{constructor(e){super({readableHighWaterMark:(e=de.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!de.isUndefined(t[e])))).chunkSize});const t=this[Je]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))}))}_read(e){const t=this[Je];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,r){const n=this[Je],i=n.maxRate,a=this.readableHighWaterMark,s=n.timeWindow,o=i/(1e3/s),c=!1!==n.minChunkSize?Math.max(n.minChunkSize,.01*o):0,u=(e,t)=>{const r=Buffer.byteLength(e);n.bytesSeen+=r,n.bytes+=r,n.isCaptured&&this.emit("progress",n.bytesSeen),this.push(e)?process.nextTick(t):n.onReadCallback=()=>{n.onReadCallback=null,process.nextTick(t)}},l=(e,t)=>{const r=Buffer.byteLength(e);let l,p=null,d=a,f=0;if(i){const e=Date.now();(!n.ts||(f=e-n.ts)>=s)&&(n.ts=e,l=o-n.bytes,n.bytes=l<0?-l:0,f=0),l=o-n.bytes}if(i){if(l<=0)return setTimeout((()=>{t(null,e)}),s-f);l<d&&(d=l)}d&&r>d&&r-d>c&&(p=e.subarray(d),e=e.subarray(0,d)),u(e,p?()=>{process.nextTick(t,null,p)}:t)};l(e,(function e(t,n){if(t)return r(t);n?l(n,e):r(null)}))}}const tt=et,{asyncIterator:rt}=Symbol,nt=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[rt]?yield*e[rt]():yield e},it=de.ALPHABET.ALPHA_DIGIT+"-_",at=new c.TextEncoder,st="\r\n",ot=at.encode(st);class ct{constructor(e,t){const{escapeName:r}=this.constructor,n=de.isString(t);let i=`Content-Disposition: form-data; name="${r(e)}"${!n&&t.name?`; filename="${r(t.name)}"`:""}${st}`;n?t=at.encode(String(t).replace(/\r?\n|\r\n?/g,st)):i+=`Content-Type: ${t.type||"application/octet-stream"}${st}`,this.headers=at.encode(i+st),this.contentLength=n?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;de.isTypedArray(e)?yield e:yield*nt(e),yield ot}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}const ut=(e,t,r)=>{const{tag:n="form-data-boundary",size:i=25,boundary:a=n+"-"+de.generateString(i,it)}=r||{};if(!de.isFormData(e))throw TypeError("FormData instance required");if(a.length<1||a.length>70)throw Error("boundary must be 10-70 characters long");const s=at.encode("--"+a+st),o=at.encode("--"+a+"--"+st+st);let c=o.byteLength;const u=Array.from(e.entries()).map((([e,t])=>{const r=new ct(e,t);return c+=r.size,r}));c+=s.byteLength*u.length,c=de.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${a}`};return Number.isFinite(c)&&(l["Content-Length"]=c),t&&t(l),p.Readable.from(async function*(){for(const e of u)yield s,yield*e.encode();yield o}())};class lt extends b.default.Transform{__transform(e,t,r){this.push(e),r()}_transform(e,t,r){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,r)}}const pt=lt,dt=(e,t)=>de.isAsyncFn(e)?function(...r){const n=r.pop();e.apply(this,r).then((e=>{try{t?n(null,...t(e)):n(null,e)}catch(e){n(e)}}),n)}:e;const ft=(e,t,r=3)=>{let n=0;const i=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,a=0,s=0;return t=void 0!==t?t:1e3,function(o){const c=Date.now(),u=n[s];i||(i=c),r[a]=o,n[a]=c;let l=s,p=0;for(;l!==a;)p+=r[l++],l%=e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),c-i<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let r,n,i=0,a=1e3/t;const s=(t,a=Date.now())=>{i=a,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),o=t-i;o>=a?s(e,t):(r=e,n||(n=setTimeout((()=>{n=null,s(r)}),a-o)))},()=>r&&s(r)]}((r=>{const a=r.loaded,s=r.lengthComputable?r.total:void 0,o=a-n,c=i(o);n=a;e({loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:c||void 0,estimated:c&&s&&a<=s?(s-a)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),r)},ht=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},mt=e=>(...t)=>de.asap((()=>e(...t))),vt={flush:_.default.constants.Z_SYNC_FLUSH,finishFlush:_.default.constants.Z_SYNC_FLUSH},gt={flush:_.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:_.default.constants.BROTLI_OPERATION_FLUSH},yt=de.isFunction(_.default.createBrotliDecompress),{http:Et,https:_t}=E.default,bt=/https:?/,xt=Le.protocols.map((e=>e+":")),Ct=(e,[t,r])=>(e.on("end",r).on("error",r),t);function wt(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function St(e,t,r){let n=t;if(!n&&!1!==n){const e=a.getProxyForUrl(r);e&&(n=new URL(e))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));const t=Buffer.from(n.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=n.hostname||n.host;e.hostname=t,e.host=t,e.port=n.port,e.path=r,n.protocol&&(e.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}e.beforeRedirects.proxy=function(e){St(e,t,e.href)}}const Tt="undefined"!=typeof process&&"process"===de.kindOf(process),At=(e,t)=>(({address:e,family:t})=>{if(!de.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(de.isObject(e)?e:{address:e,family:t}),Ot=Tt&&function(e){return t=async function(t,r,n){let{data:i,lookup:a,family:s}=e;const{responseType:o,responseEncoding:c}=e,u=e.method.toUpperCase();let l,p,f=!1;if(a){const e=dt(a,(e=>de.isArray(e)?e:[e]));a=(t,r,n)=>{e(t,r,((e,t,i)=>{if(e)return n(e);const a=de.isArray(t)?t.map((e=>At(e))):[At(t,i)];r.all?n(e,a):n(e,a[0].address,a[0].family)}))}}const h=new d.EventEmitter,m=()=>{e.cancelToken&&e.cancelToken.unsubscribe(E),e.signal&&e.signal.removeEventListener("abort",E),h.removeAllListeners()};function E(t){h.emit("abort",!t||t.type?new qe(null,e,p):t)}n(((e,t)=>{l=!0,t&&(f=!0,m())})),h.once("abort",r),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(E),e.signal&&(e.signal.aborted?E():e.signal.addEventListener("abort",E)));const x=$e(e.baseURL,e.url),C=new URL(x,Le.hasBrowserEnv?Le.origin:void 0),w=C.protocol||xt[0];if("data:"===w){let n;if("GET"!==u)return We(t,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{n=function(e,t,r){const n=r&&r.Blob||Le.classes.Blob,i=Xe(e);if(void 0===t&&n&&(t=!0),"data"===i){e=i.length?e.slice(i.length+1):e;const r=Ze.exec(e);if(!r)throw new fe("Invalid URL",fe.ERR_INVALID_URL);const a=r[1],s=r[2],o=r[3],c=Buffer.from(decodeURIComponent(o),s?"base64":"utf8");if(t){if(!n)throw new fe("Blob is not supported",fe.ERR_NOT_SUPPORT);return new n([c],{type:a})}return c}throw new fe("Unsupported protocol "+i,fe.ERR_NOT_SUPPORT)}(e.url,"blob"===o,{Blob:e.env&&e.env.Blob})}catch(t){throw fe.from(t,fe.ERR_BAD_REQUEST,e)}return"text"===o?(n=n.toString(c),c&&"utf8"!==c||(n=de.stripBOM(n))):"stream"===o&&(n=b.default.Readable.from(n)),We(t,r,{data:n,status:200,statusText:"OK",headers:new Ge,config:e})}if(-1===xt.indexOf(w))return r(new fe("Unsupported protocol "+w,fe.ERR_BAD_REQUEST,e));const S=Ge.from(e.headers).normalize();S.set("User-Agent","axios/"+Qe,!1);const{onUploadProgress:T,onDownloadProgress:A}=e,O=e.maxRate;let I,D;if(de.isSpecCompliantForm(i)){const e=S.getContentType(/boundary=([-_\w\d]{10,70})/i);i=ut(i,(e=>{S.set(e)}),{tag:`axios-${Qe}-boundary`,boundary:e&&e[1]||void 0})}else if(de.isFormData(i)&&de.isFunction(i.getHeaders)){if(S.set(i.getHeaders()),!S.hasContentLength())try{const e=await y.default.promisify(i.getLength).call(i);Number.isFinite(e)&&e>=0&&S.setContentLength(e)}catch(e){}}else if(de.isBlob(i))i.size&&S.setContentType(i.type||"application/octet-stream"),S.setContentLength(i.size||0),i=b.default.Readable.from(nt(i));else if(i&&!de.isStream(i)){if(Buffer.isBuffer(i));else if(de.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else{if(!de.isString(i))return r(new fe("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",fe.ERR_BAD_REQUEST,e));i=Buffer.from(i,"utf-8")}if(S.setContentLength(i.length,!1),e.maxBodyLength>-1&&i.length>e.maxBodyLength)return r(new fe("Request body larger than maxBodyLength limit",fe.ERR_BAD_REQUEST,e))}const N=de.toFiniteNumber(S.getContentLength());let k,B;de.isArray(O)?(I=O[0],D=O[1]):I=D=O,i&&(T||I)&&(de.isStream(i)||(i=b.default.Readable.from(i,{objectMode:!1})),i=b.default.pipeline([i,new tt({maxRate:de.toFiniteNumber(I)})],de.noop),T&&i.on("progress",Ct(i,ht(N,ft(mt(T),!1,3))))),e.auth&&(k=(e.auth.username||"")+":"+(e.auth.password||"")),!k&&C.username&&(k=C.username+":"+C.password),k&&S.delete("authorization");try{B=Se(C.pathname+C.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const n=new Error(t.message);return n.config=e,n.url=e.url,n.exists=!0,r(n)}S.set("Accept-Encoding","gzip, compress, deflate"+(yt?", br":""),!1);const L={path:B,method:u,headers:S.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:k,protocol:w,family:s,beforeRedirect:wt,beforeRedirects:{}};let R;!de.isUndefined(a)&&(L.lookup=a),e.socketPath?L.socketPath=e.socketPath:(L.hostname=C.hostname.startsWith("[")?C.hostname.slice(1,-1):C.hostname,L.port=C.port,St(L,e.proxy,w+"//"+C.hostname+(C.port?":"+C.port:"")+L.path));const P=bt.test(L.protocol);if(L.agent=P?e.httpsAgent:e.httpAgent,e.transport?R=e.transport:0===e.maxRedirects?R=P?g.default:v.default:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirects.config=e.beforeRedirect),R=P?_t:Et),e.maxBodyLength>-1?L.maxBodyLength=e.maxBodyLength:L.maxBodyLength=1/0,e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser),p=R.request(L,(function(n){if(p.destroyed)return;const i=[n],a=+n.headers["content-length"];if(A||D){const e=new tt({maxRate:de.toFiniteNumber(D)});A&&e.on("progress",Ct(e,ht(a,ft(mt(A),!0,3)))),i.push(e)}let s=n;const l=n.req||p;if(!1!==e.decompress&&n.headers["content-encoding"])switch("HEAD"!==u&&204!==n.statusCode||delete n.headers["content-encoding"],(n.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":i.push(_.default.createUnzip(vt)),delete n.headers["content-encoding"];break;case"deflate":i.push(new pt),i.push(_.default.createUnzip(vt)),delete n.headers["content-encoding"];break;case"br":yt&&(i.push(_.default.createBrotliDecompress(gt)),delete n.headers["content-encoding"])}s=i.length>1?b.default.pipeline(i,de.noop):i[0];const d=b.default.finished(s,(()=>{d(),m()})),v={status:n.statusCode,statusText:n.statusMessage,headers:new Ge(n.headers),config:e,request:l};if("stream"===o)v.data=s,We(t,r,v);else{const n=[];let i=0;s.on("data",(function(t){n.push(t),i+=t.length,e.maxContentLength>-1&&i>e.maxContentLength&&(f=!0,s.destroy(),r(new fe("maxContentLength size of "+e.maxContentLength+" exceeded",fe.ERR_BAD_RESPONSE,e,l)))})),s.on("aborted",(function(){if(f)return;const t=new fe("maxContentLength size of "+e.maxContentLength+" exceeded",fe.ERR_BAD_RESPONSE,e,l);s.destroy(t),r(t)})),s.on("error",(function(t){p.destroyed||r(fe.from(t,null,e,l))})),s.on("end",(function(){try{let e=1===n.length?n[0]:Buffer.concat(n);"arraybuffer"!==o&&(e=e.toString(c),c&&"utf8"!==c||(e=de.stripBOM(e))),v.data=e}catch(t){return r(fe.from(t,null,e,v.request,v))}We(t,r,v)}))}h.once("abort",(e=>{s.destroyed||(s.emit("error",e),s.destroy())}))})),h.once("abort",(e=>{r(e),p.destroy(e)})),p.on("error",(function(t){r(fe.from(t,null,e,p))})),p.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void r(new fe("error trying to parse `config.timeout` to int",fe.ERR_BAD_OPTION_VALUE,e,p));p.setTimeout(t,(function(){if(l)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||Ae;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new fe(t,n.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,p)),E()}))}if(de.isStream(i)){let t=!1,r=!1;i.on("end",(()=>{t=!0})),i.once("error",(e=>{r=!0,p.destroy(e)})),i.on("close",(()=>{t||r||E(new qe("Request stream has been aborted",e,p))})),i.pipe(p)}else p.end(i)},new Promise(((e,r)=>{let n,i;const a=(e,t)=>{i||(i=!0,n&&n(e,t))},s=e=>{a(e,!0),r(e)};t((t=>{a(t),e(t)}),s,(e=>n=e)).catch(s)}));var t},It=Le.hasStandardBrowserEnv?function(){const e=Le.navigator&&/(msie|trident)/i.test(Le.navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=de.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},Dt=Le.hasStandardBrowserEnv?{write(e,t,r,n,i,a){const s=[e+"="+encodeURIComponent(t)];de.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),de.isString(n)&&s.push("path="+n),de.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}},Nt=e=>e instanceof Ge?{...e}:e;function kt(e,t){t=t||{};const r={};function n(e,t,r){return de.isPlainObject(e)&&de.isPlainObject(t)?de.merge.call({caseless:r},e,t):de.isPlainObject(t)?de.merge({},t):de.isArray(t)?t.slice():t}function i(e,t,r){return de.isUndefined(t)?de.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function a(e,t){if(!de.isUndefined(t))return n(void 0,t)}function s(e,t){return de.isUndefined(t)?de.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function o(r,i,a){return a in t?n(r,i):a in e?n(void 0,r):void 0}const c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(e,t)=>i(Nt(e),Nt(t),!0)};return de.forEach(Object.keys(Object.assign({},e,t)),(function(n){const a=c[n]||i,s=a(e[n],t[n],n);de.isUndefined(s)&&a!==o||(r[n]=s)})),r}const Bt=e=>{const t=kt({},e);let r,{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:s,headers:o,auth:c}=t;if(t.headers=o=Ge.from(o),t.url=Se($e(t.baseURL,t.url),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),de.isFormData(n))if(Le.hasStandardBrowserEnv||Le.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(!1!==(r=o.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}if(Le.hasStandardBrowserEnv&&(i&&de.isFunction(i)&&(i=i(t)),i||!1!==i&&It(t.url))){const e=a&&s&&Dt.read(s);e&&o.set(a,e)}return t},Lt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Bt(e);let i=n.data;const a=Ge.from(n.headers).normalize();let s,o,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=n;function h(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function v(){if(!m)return;const n=Ge.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());We((function(e){t(e),h()}),(function(e){r(e),h()}),{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(r(new fe("Request aborted",fe.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new fe("Network Error",fe.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||Ae;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new fe(t,i.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,m)),m=null},void 0===i&&a.setContentType(null),"setRequestHeader"in m&&de.forEach(a.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),de.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),p&&"json"!==p&&(m.responseType=n.responseType),f&&([c,l]=ft(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([o,u]=ft(d),m.upload.addEventListener("progress",o),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new qe(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const g=Xe(n.url);g&&-1===Le.protocols.indexOf(g)?r(new fe("Unsupported protocol "+g+":",fe.ERR_BAD_REQUEST,e)):m.send(i||null)}))},Rt=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const i=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof fe?t:new qe(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,i(new fe(`timeout ${t} of ms exceeded`,fe.ETIMEDOUT))}),t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:o}=n;return o.unsubscribe=()=>de.asap(s),o}},Pt=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},jt=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Ut=(e,t,r,n)=>{const i=async function*(e,t){for await(const r of jt(e))yield*Pt(r,t)}(e,t);let a,s=0,o=e=>{a||(a=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return o(),void e.close();let a=n.byteLength;if(r){let e=s+=a;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw o(e),e}},cancel:e=>(o(e),i.return())},{highWaterMark:2})},Ft="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Kt=Ft&&"function"==typeof ReadableStream,Mt=Ft&&("function"==typeof TextEncoder?(Vt=new TextEncoder,e=>Vt.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Vt;const Yt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Gt=Kt&&Yt((()=>{let e=!1;const t=new Request(Le.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ht=Kt&&Yt((()=>de.isReadableStream(new Response("").body))),zt={stream:Ht&&(e=>e.body)};var qt;Ft&&(qt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!zt[e]&&(zt[e]=de.isFunction(qt[e])?t=>t[e]():(t,r)=>{throw new fe(`Response type '${e}' is not supported`,fe.ERR_NOT_SUPPORT,r)})})));const Wt=async(e,t)=>{const r=de.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(de.isBlob(e))return e.size;if(de.isSpecCompliantForm(e)){const t=new Request(Le.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return de.isArrayBufferView(e)||de.isArrayBuffer(e)?e.byteLength:(de.isURLSearchParams(e)&&(e+=""),de.isString(e)?(await Mt(e)).byteLength:void 0)})(t):r},$t=Ft&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:a,timeout:s,onDownloadProgress:o,onUploadProgress:c,responseType:u,headers:l,withCredentials:p="same-origin",fetchOptions:d}=Bt(e);u=u?(u+"").toLowerCase():"text";let f,h=Rt([i,a&&a.toAbortSignal()],s);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(c&&Gt&&"get"!==r&&"head"!==r&&0!==(v=await Wt(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(de.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=ht(v,ft(mt(c)));n=Ut(r.body,65536,e,t)}}de.isString(p)||(p=p?"include":"omit");const i="credentials"in Request.prototype;f=new Request(t,{...d,signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:i?p:void 0});let a=await fetch(f);const s=Ht&&("stream"===u||"response"===u);if(Ht&&(o||s&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=a[t]}));const t=de.toFiniteNumber(a.headers.get("content-length")),[r,n]=o&&ht(t,ft(mt(o),!0))||[];a=new Response(Ut(a.body,65536,r,(()=>{n&&n(),m&&m()})),e)}u=u||"text";let g=await zt[de.findKey(zt,u)||"text"](a,e);return!s&&m&&m(),await new Promise(((t,r)=>{We(t,r,{data:g,headers:Ge.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new fe("Network Error",fe.ERR_NETWORK,e,f),{cause:t.cause||t});throw fe.from(t,t&&t.code,e,f)}}),Qt={http:Ot,xhr:Lt,fetch:$t};de.forEach(Qt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Xt=e=>`- ${e}`,Zt=e=>de.isFunction(e)||null===e||!1===e,Jt=e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let a=0;a<t;a++){let t;if(r=e[a],n=r,!Zt(r)&&(n=Qt[(t=String(r)).toLowerCase()],void 0===n))throw new fe(`Unknown adapter '${t}'`);if(n)break;i[t||"#"+a]=n}if(!n){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new fe("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xt).join("\n"):" "+Xt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function er(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qe(null,e)}function tr(e){er(e),e.headers=Ge.from(e.headers),e.data=He.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Jt(e.adapter||je.adapter)(e).then((function(t){return er(e),t.data=He.call(e,e.transformResponse,t),t.headers=Ge.from(t.headers),t}),(function(t){return ze(t)||(er(e),t&&t.response&&(t.response.data=He.call(e,e.transformResponse,t.response),t.response.headers=Ge.from(t.response.headers))),Promise.reject(t)}))}const rr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{rr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const nr={};rr.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,a)=>{if(!1===e)throw new fe(n(i," has been removed"+(t?" in "+t:"")),fe.ERR_DEPRECATED);return t&&!nr[i]&&(nr[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}};const ir={assertOptions:function(e,t,r){if("object"!=typeof e)throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],s=t[a];if(s){const t=e[a],r=void 0===t||s(t,a,e);if(!0!==r)throw new fe("option "+a+" must be "+r,fe.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new fe("Unknown option "+a,fe.ERR_BAD_OPTION)}},validators:rr},ar=ir.validators;class sr{constructor(e){this.defaults=e,this.interceptors={request:new Te,response:new Te}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=kt(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&ir.assertOptions(r,{silentJSONParsing:ar.transitional(ar.boolean),forcedJSONParsing:ar.transitional(ar.boolean),clarifyTimeoutError:ar.transitional(ar.boolean)},!1),null!=n&&(de.isFunction(n)?t.paramsSerializer={serialize:n}:ir.assertOptions(n,{encode:ar.function,serialize:ar.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&de.merge(i.common,i[t.method]);i&&de.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Ge.concat(a,i);const s=[];let o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,p=0;if(!o){const e=[tr.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=s.length;let d=t;for(p=0;p<l;){const e=s[p++],t=s[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=tr.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=c.length;p<l;)u=u.then(c[p++],c[p++]);return u}getUri(e){return Se($e((e=kt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}de.forEach(["delete","get","head","options"],(function(e){sr.prototype[e]=function(t,r){return this.request(kt(r||{},{method:e,url:t,data:(r||{}).data}))}})),de.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,i){return this.request(kt(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}sr.prototype[e]=t(),sr.prototype[e+"Form"]=t(!0)}));const or=sr;class cr{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new qe(e,n,i),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new cr((function(t){e=t})),cancel:e}}}const ur=cr;const lr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(lr).forEach((([e,t])=>{lr[t]=e}));const pr=lr;const dr=function e(t){const r=new or(t),n=x(or.prototype.request,r);return de.extend(n,or.prototype,r,{allOwnKeys:!0}),de.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(kt(t,r))},n}(je);dr.Axios=or,dr.CanceledError=qe,dr.CancelToken=ur,dr.isCancel=ze,dr.VERSION=Qe,dr.toFormData=_e,dr.AxiosError=fe,dr.Cancel=dr.CanceledError,dr.all=function(e){return Promise.all(e)},dr.spread=function(e){return function(t){return e.apply(null,t)}},dr.isAxiosError=function(e){return de.isObject(e)&&!0===e.isAxiosError},dr.mergeConfig=kt,dr.AxiosHeaders=Ge,dr.formToJSON=e=>Re(de.isHTMLForm(e)?new FormData(e):e),dr.getAdapter=Jt,dr.HttpStatusCode=pr,dr.default=dr,e.exports=dr},5860:(e,t,r)=>{"use strict";r.r(t),r.d(t,{$:()=>Ne,execa:()=>Ae,execaCommand:()=>ke,execaCommandSync:()=>Be,execaNode:()=>Le,execaSync:()=>Oe});const n=require("node:buffer"),i=require("node:path"),a=require("node:child_process"),s=require("node:process");var o=r(4993);const c=require("node:url");function u(e={}){const{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}const l=(e,t)=>{let r;for(;r!==t;)e.push(i.join(t,"node_modules/.bin")),r=t,t=i.resolve(t,"..")},p=(e,t,r)=>{const n=t instanceof URL?(0,c.fileURLToPath)(t):t;e.push(i.resolve(r,n,".."))},d=({env:e=s.env,...t}={})=>{const r=u({env:e={...e}});return t.path=e[r],e[r]=(({cwd:e=s.cwd(),path:t=s.env[u()],preferLocal:r=!0,execPath:n=s.execPath,addExecPath:a=!0}={})=>{const o=e instanceof URL?(0,c.fileURLToPath)(e):e,d=i.resolve(o),f=[];return r&&l(f,d),a&&p(f,n,d),[...f,t].join(i.delimiter)})(t),e},f=(e,t,r,n)=>{if("length"===r||"prototype"===r)return;if("arguments"===r||"caller"===r)return;const i=Object.getOwnPropertyDescriptor(e,r),a=Object.getOwnPropertyDescriptor(t,r);!h(i,a)&&n||Object.defineProperty(e,r,a)},h=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},m=(e,t)=>`/* Wrapped ${e}*/\n${t}`,v=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),g=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");function y(e,t,{ignoreNonConfigurable:r=!1}={}){const{name:n}=e;for(const n of Reflect.ownKeys(t))f(e,t,n,r);return((e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)})(e,t),((e,t,r)=>{const n=""===r?"":`with ${r.trim()}() `,i=m.bind(null,n,t.toString());Object.defineProperty(i,"name",g),Object.defineProperty(e,"toString",{...v,value:i})})(e,t,n),e}const E=new WeakMap,_=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,n=0;const i=e.displayName||e.name||"<anonymous>",a=function(...s){if(E.set(a,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw new Error(`Function \`${i}\` can only be called once`);return r};return y(a,e),E.set(a,n),a};_.callCount=e=>{if(!E.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return E.get(e)};const b=_,x=require("node:os"),C=(e,t)=>({name:`SIGRT${t+1}`,number:w+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),w=34,S=64,T=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],A=()=>{const e=(()=>{const e=S-w+1;return Array.from({length:e},C)})();return[...T,...e].map(O)},O=({name:e,number:t,description:r,action:n,forced:i=!1,standard:a})=>{const{signals:{[e]:s}}=x.constants,o=void 0!==s;return{name:e,number:o?s:t,description:r,supported:o,action:n,forced:i,standard:a}},I=({name:e,number:t,description:r,supported:n,action:i,forced:a,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:a,standard:s}],D=(()=>{const e=A();return Object.fromEntries(e.map(I))})(),N=(e,t)=>{const r=k(e,t);if(void 0===r)return{};const{name:n,description:i,supported:a,action:s,forced:o,standard:c}=r;return{[e]:{name:n,number:e,description:i,supported:a,action:s,forced:o,standard:c}}},k=(e,t)=>{const r=t.find((({name:t})=>x.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))},B=((()=>{const e=A(),t=S+1,r=Array.from({length:t},((t,r)=>N(r,e)));Object.assign({},...r)})(),({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:a,command:o,escapedCommand:c,timedOut:u,isCanceled:l,killed:p,parsed:{options:{timeout:d,cwd:f=s.cwd()}}})=>{a=null===a?void 0:a;const h=void 0===(i=null===i?void 0:i)?void 0:D[i].description,m=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:a,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${i})`:void 0!==a?`failed with exit code ${a}`:"failed")({timedOut:u,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:h,exitCode:a,isCanceled:l}),v=`Command ${m}: ${o}`,g="[object Error]"===Object.prototype.toString.call(n),y=g?`${v}\n${n.message}`:v,E=[y,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=new Error(E),n.shortMessage=y,n.command=o,n.escapedCommand=c,n.exitCode=a,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=f,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=Boolean(u),n.isCanceled=l,n.killed=p&&!u,n}),L=["stdin","stdout","stderr"],R=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return L.map((t=>e[t]));if((e=>L.some((t=>void 0!==e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${L.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const r=Math.max(t.length,L.length);return Array.from({length:r},((e,r)=>t[r]))},P=e=>{const t=R(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var j=r(9468);const U=(e,t="SIGTERM",r={})=>{const n=e(t);return F(e,t,r,n),n},F=(e,t,r,n)=>{if(!K(t,r,n))return;const i=V(r),a=setTimeout((()=>{e("SIGKILL")}),i);a.unref&&a.unref()},K=(e,{forceKillAfterTimeout:t},r)=>M(e)&&!1!==t&&r,M=e=>e===x.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),V=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},Y=(e,t)=>{e.kill()&&(t.isCanceled=!0)},G=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(0===t||void 0===t)return n;let i;const a=new Promise(((n,a)=>{i=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,a)}),t)})),s=n.finally((()=>{clearTimeout(i)}));return Promise.race([a,s])},H=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},z=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;const i=j((()=>{e.kill()}));return n.finally((()=>{i()}))},q=require("node:fs");function W(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function $(e){return W(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}const Q=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,q.createWriteStream)(r)),e;if($(r))return e[t].pipe(r),e;if(!(e=>e instanceof a.ChildProcess&&"function"==typeof e.then)(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!$(r.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r},X=e=>{null!==e.stdout&&(e.pipeStdout=Q.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=Q.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=Q.bind(void 0,e,"all"))};var Z=r(4594),J=r(7882);const ee=e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},te=e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(ee(e),(0,q.readFileSync)(t)))(e);if(W(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},re=(e,t)=>{const r=(({input:e,inputFile:t})=>"string"!=typeof t?e:(ee(e),(0,q.createReadStream)(t)))(t);void 0!==r&&(W(r)?r.pipe(e.stdin):e.stdin.end(r))},ne=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const r=J();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},ie=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t}catch(e){return e.bufferedData}}},ae=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?Z(e,{encoding:t,maxBuffer:n}):Z.buffer(e,{maxBuffer:n})},se=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:a},s)=>{const o=ae(e,{encoding:n,buffer:i,maxBuffer:a}),c=ae(t,{encoding:n,buffer:i,maxBuffer:a}),u=ae(r,{encoding:n,buffer:i,maxBuffer:2*a});try{return await Promise.all([s,o,c,u])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},ie(e,o),ie(t,c),ie(r,u)])}},oe=(async()=>{})().constructor.prototype,ce=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(oe,e)])),ue=(e,t)=>{for(const[r,n]of ce){const i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}},le=e=>new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))})),pe=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],de=/^[\w.-]+$/,fe=/"/g,he=(e,t)=>pe(e,t).join(" "),me=(e,t)=>pe(e,t).map((e=>(e=>"string"!=typeof e||de.test(e)?e:`"${e.replace(fe,'\\"')}"`)(e))).join(" "),ve=/ +/g,ge=e=>{const t=[];for(const r of e.trim().split(ve)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t},ye=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if("object"===t&&null!==e&&!(e instanceof a.ChildProcess)&&"stdout"in e){const t=typeof e.stdout;if("string"===t)return e.stdout;if(n.Buffer.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${t}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},Ee=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],_e=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{const a=i??e.raw[n],s=a.split(ve).filter(Boolean),o=Ee(r,s,a.startsWith(" "));if(n===t.length)return o;const c=t[n],u=Array.isArray(c)?c.map((e=>ye(e))):[ye(c)];return Ee(o,u,a.endsWith(" "))},be=(e,t)=>{let r=[];for(const[n,i]of e.entries())r=_e({templates:e,expressions:t,tokens:r,index:n,template:i});return r},xe=(0,require("node:util").debuglog)("execa").enabled,Ce=(e,t)=>String(e).padStart(t,"0"),we=(e,{verbose:t})=>{t&&s.stderr.write(`[${(()=>{const e=new Date;return`${Ce(e.getHours(),2)}:${Ce(e.getMinutes(),2)}:${Ce(e.getSeconds(),2)}.${Ce(e.getMilliseconds(),3)}`})()}] ${e}\n`)},Se=(e,t,r={})=>{const n=o._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||s.cwd(),execPath:s.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:xe,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{const a=t?{...s.env,...e}:e;return r?d({env:a,cwd:n,execPath:i}):a})(r),r.stdio=R(r),"win32"===s.platform&&"cmd"===i.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},Te=(e,t,r)=>"string"==typeof t||n.Buffer.isBuffer(t)?e.stripFinalNewline?function(e){const t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}(t):t:void 0===r?void 0:"";function Ae(e,t,r){const n=Se(e,t,r),i=he(e,t),s=me(e,t);let o;we(s,n.options),H(n.options);try{o=a.spawn(n.file,n.args,n.options)}catch(e){const t=new a.ChildProcess,r=Promise.reject(B({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return ue(t,r),t}const c=le(o),u=G(o,n.options,c),l=z(o,n.options,u),p={isCanceled:!1};o.kill=U.bind(null,o.kill.bind(o)),o.cancel=Y.bind(null,o,p);const d=b((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,u,d]=await se(o,n.options,l),f=Te(n.options,c),h=Te(n.options,u),m=Te(n.options,d);if(e||0!==t||null!==r){const c=B({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:i,escapedCommand:s,parsed:n,timedOut:a,isCanceled:p.isCanceled||!!n.options.signal&&n.options.signal.aborted,killed:o.killed});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return re(o,n.options),o.all=ne(o,n.options),X(o),ue(o,d),o}function Oe(e,t,r){const n=Se(e,t,r),i=he(e,t),s=me(e,t);we(s,n.options);const o=te(n.options);let c;try{c=a.spawnSync(n.file,n.args,{...n.options,input:o})}catch(e){throw B({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const u=Te(n.options,c.stdout,c.error),l=Te(n.options,c.stderr,c.error);if(c.error||0!==c.status||null!==c.signal){const e=B({stdout:u,stderr:l,error:c.error,signal:c.signal,exitCode:c.status,command:i,escapedCommand:s,parsed:n,timedOut:c.error&&"ETIMEDOUT"===c.error.code,isCanceled:!1,killed:null!==c.signal});if(!n.options.reject)return e;throw e}return{command:i,escapedCommand:s,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}const Ie=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},De=(e={})=>({preferLocal:!0,...Ie(e),...e});const Ne=function e(t){function r(r,...n){if(!Array.isArray(r))return e({...t,...r});const[i,...a]=be(r,n);return Ae(i,a,De(t))}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");const[n,...i]=be(e,r);return Oe(n,i,De(t))},r}();function ke(e,t){const[r,...n]=ge(e);return Ae(r,n,t)}function Be(e,t){const[r,...n]=ge(e);return Oe(r,n,t)}function Le(e,t,r={}){t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=P(r),i=s.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:a=s.execPath,nodeOptions:o=i}=r;return Ae(a,[...o,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}},1813:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"@tencent/android-miniapp-toolkit","version":"0.10.0","description":"Android miniapp toolkit","main":"dist/index.js","files":["dist","template/**","template-plugin/**","lib/**"],"scripts":{"ci":"npm run format && npm run build","dev":"webpack --mode=development --watch","build":"webpack --mode=production","format":"prettier \\"src/**/*.ts\\" \\"*.{js,json}\\" \\"test/*.{js,json}\\" \\"scripts/**/*.mjs\\" --write","lint":"eslint \\"src/**/*.ts\\"","jdk":"zx ./scripts/jdk.mjs","test:create":"node ./test/create.js","test:update":"node ./test/update.js","test:pack":"node ./test/pack.js","test:run":"node ./test/run.js","test:genkey":"node ./test/genkey.js","test:clear":"node ./test/clear.js","test:sign":"node ./test/sign.js","test:cert":"node ./test/cert.js","test:create-plugin":"node ./test/createPlugin.js"},"repository":{"type":"git","url":"https://git.woa.com/redhoodsu/android-miniapp.git"},"author":"redhoodsu","license":"ISC","devDependencies":{"@devicefarmer/adbkit":"^3.2.5","@tencent/eslint-config-tencent":"^1.0.4","@tencent/wxapkg":"^0.3.2","@types/fs-extra":"^11.0.1","@typescript-eslint/eslint-plugin":"^5.48.0","@typescript-eslint/parser":"^5.48.0","adm-zip":"^0.5.10","axios":"^1.4.0","elementtree":"^0.1.7","eslint":"^8.31.0","eslint-plugin-prettier":"^4.2.1","execa":"^7.1.1","fs-extra":"^11.1.0","glob":"^8.0.3","licia":"^1.41.0","original-fs":"^1.2.0","prettier":"^2.8.1","ts-loader":"^9.4.2","typescript":"^4.9.4","webpack":"^5.75.0","webpack-cli":"^5.0.1","zx":"^7.2.2"}}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(8156);module.exports=__webpack_exports__})();