chromatic
Version:
Automate visual testing across browsers. Gather UI feedback. Versioned documentation.
1,027 lines • 815 kB
JavaScript
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d8f24fd5-64b6-55f4-a8f7-ed726389243f")}catch(e){}}();
const e=require(`./chunk-gGpyby2o.cjs`),t=require(`./v1-BPL0QeOt.cjs`),n=require(`./meow-CbdXCBsh.cjs`),r=require(`./noPackageJson-zIsQeKSL.cjs`),i=require(`./getStorybookProjectRoot-DlbLndZv.cjs`),a=require(`./build-DavbdcXs.cjs`),o=require(`./execa-hX7byVra.cjs`),s=require(`./jsonfile-DqcxOh7-.cjs`),c=require(`./getFileHashes-D6WuRXoP.cjs`),l=require(`./strip-ansi-Dt6nD8-T.cjs`),u=require(`./log-ECzXUtHc.cjs`),d=require(`./lib-DLrkMuxc.cjs`),f=require(`./trimStatsFile-D1y8hOPr.cjs`),p=require(`./validateStorybookVersion-CvDPKNxk.cjs`);let m=require(`fs`),h=require(`path`);h=e.a(h);let g=require(`os`),v=require(`crypto`),y=require(`semver`);y=e.a(y);let b=require(`util`),x=require(`node:util`),S=require(`node:child_process`);S=e.a(S,1);let C=require(`node:fs`),w=require(`node:os`);w=e.a(w,1);let T=require(`node:path`);T=e.a(T,1);let E=require(`node:readline`);E=e.a(E,1);let D=require(`node:process`);D=e.a(D,1);let O=require(`node:url`),k=require(`node:buffer`),A=require(`node:timers/promises`),j=require(`node:tty`),M=require(`readline`);var N=e.t(((e,t)=>{let n=Symbol(`@@any-observable/REGISTRATION`),r;t.exports=(e,t)=>(i,a={})=>{let o=a.global!==!1;if(o&&!r&&(r=e[n]),r&&i&&r.implementation!==i)throw Error(`any-observable already defined as \`${r.implementation}\`. You can only register an implementation before the first call to \`require('any-observable')\` and an implementation cannot be changed`);return r||(r=i&&a.Observable?{Observable:a.Observable,implementation:i}:t(i),o&&(e[n]=r)),r}})),P=e.t(((e,t)=>{t.exports=N()(global,n);function n(e){let t;if(e===`global.Observable`)t={Observable:global.Observable,implementation:`global.Observable`};else if(e){let n=require(e);t={Observable:n.Observable||n.default||n,implementation:e}}else t=r();if(!t)throw Error("Cannot find any-observable implementation nor `global.Observable`. You must install polyfill or call `require('any-observable/register') with your preferred implementation, for example, `require('any-observable/register')('rxjs')` on app load prior to any `require('any-observable').");return t}function r(){for(let e of[`rxjs`,`zen-observable`])try{return n(e)}catch{}}})),F=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Observable=void 0;function t(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}var i=function(){return typeof Symbol==`function`},a=function(e){return i()&&!!Symbol[e]},o=function(e){return a(e)?Symbol[e]:`@@`+e};i()&&!a(`observable`)&&(Symbol.observable=Symbol(`observable`));var s=o(`iterator`),c=o(`observable`),l=o(`species`);function u(e,t){var n=e[t];if(n!=null){if(typeof n!=`function`)throw TypeError(n+` is not a function`);return n}}function d(e){var t=e.constructor;return t!==void 0&&(t=t[l],t===null&&(t=void 0)),t===void 0?C:t}function f(e){return e instanceof C}function p(e){p.log?p.log(e):setTimeout(function(){throw e})}function m(e){Promise.resolve().then(function(){try{e()}catch(e){p(e)}})}function h(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,t))try{if(typeof t==`function`)t();else{var n=u(t,`unsubscribe`);n&&n.call(t)}}catch(e){p(e)}}function g(e){e._observer=void 0,e._queue=void 0,e._state=`closed`}function v(e){var t=e._queue;if(t){e._queue=void 0,e._state=`ready`;for(var n=0;n<t.length&&(y(e,t[n].type,t[n].value),e._state!==`closed`);++n);}}function y(e,t,n){e._state=`running`;var r=e._observer;try{var i=u(r,t);switch(t){case`next`:i&&i.call(r,n);break;case`error`:if(g(e),i)i.call(r,n);else throw n;break;case`complete`:g(e),i&&i.call(r);break}}catch(e){p(e)}e._state===`closed`?h(e):e._state===`running`&&(e._state=`ready`)}function b(e,t,n){if(e._state!==`closed`){if(e._state===`buffering`){e._queue.push({type:t,value:n});return}if(e._state!==`ready`){e._state=`buffering`,e._queue=[{type:t,value:n}],m(function(){return v(e)});return}y(e,t,n)}}var x=function(){function e(n,r){t(this,e),this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state=`initializing`;var i=new S(this);try{this._cleanup=r.call(void 0,i)}catch(e){i.error(e)}this._state===`initializing`&&(this._state=`ready`)}return r(e,[{key:`unsubscribe`,value:function(){this._state!==`closed`&&(g(this),h(this))}},{key:`closed`,get:function(){return this._state===`closed`}}]),e}(),S=function(){function e(n){t(this,e),this._subscription=n}return r(e,[{key:`next`,value:function(e){b(this._subscription,`next`,e)}},{key:`error`,value:function(e){b(this._subscription,`error`,e)}},{key:`complete`,value:function(){b(this._subscription,`complete`)}},{key:`closed`,get:function(){return this._subscription._state===`closed`}}]),e}(),C=function(){function e(n){if(t(this,e),!(this instanceof e))throw TypeError(`Observable cannot be called as a function`);if(typeof n!=`function`)throw TypeError(`Observable initializer must be a function`);this._subscriber=n}return r(e,[{key:`subscribe`,value:function(e){return(typeof e!=`object`||!e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new x(e,this._subscriber)}},{key:`forEach`,value:function(e){var t=this;return new Promise(function(n,r){if(typeof e!=`function`){r(TypeError(e+` is not a function`));return}function i(){a.unsubscribe(),n()}var a=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),a.unsubscribe()}},error:r,complete:n})})}},{key:`map`,value:function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);return new(d(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})}},{key:`filter`,value:function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);return new(d(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})}},{key:`reduce`,value:function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);var n=d(this),r=arguments.length>1,i=!1,a=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError(`Cannot reduce an empty sequence`));n.next(a),n.complete()}})})}},{key:`concat`,value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=d(this);return new i(function(t){var r,a=0;function o(e){r=e.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===n.length?(r=void 0,t.complete()):o(i.from(n[a++]))}})}return o(e),function(){r&&=(r.unsubscribe(),void 0)}})}},{key:`flatMap`,value:function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);var n=d(this);return new n(function(r){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var a=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){r.error(e)},complete:function(){o()}});function o(){a.closed&&i.length===0&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),a.unsubscribe()}})}},{key:c,value:function(){return this}}],[{key:`from`,value:function(t){var n=typeof this==`function`?this:e;if(t==null)throw TypeError(t+` is not an object`);var r=u(t,c);if(r){var i=r.call(t);if(Object(i)!==i)throw TypeError(i+` is not an object`);return f(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(a(`iterator`)&&(r=u(t,s),r))return new n(function(e){m(function(){if(!e.closed){var n=!0,i=!1,a=void 0;try{for(var o=r.call(t)[Symbol.iterator](),s;!(n=(s=o.next()).done);n=!0){var c=s.value;if(e.next(c),e.closed)return}}catch(e){i=!0,a=e}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}e.complete()}})});if(Array.isArray(t))return new n(function(e){m(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw TypeError(t+` is not observable`)}},{key:`of`,value:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return new(typeof this==`function`?this:e)(function(e){m(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})}},{key:l,get:function(){return this}}]),e}();e.Observable=C,i()&&Object.defineProperty(C,Symbol(`extensions`),{value:{symbol:c,hostReportError:p},configurable:!0})})),I=e.t(((e,t)=>{t.exports=F().Observable}));P()(`zen-observable`,{Observable:I()});var L=e.t(((e,t)=>{let n=(e,t,n)=>new Promise((r,i)=>{if(n=Object.assign({concurrency:1/0},n),typeof t!=`function`)throw TypeError(`Mapper function is required`);let{concurrency:a}=n;if(!(typeof a==`number`&&a>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${a}\` (${typeof a})`);let o=[],s=e[Symbol.iterator](),c=!1,l=!1,u=0,d=0,f=()=>{if(c)return;let e=s.next(),n=d;if(d++,e.done){l=!0,u===0&&r(o);return}u++,Promise.resolve(e.value).then(e=>t(e,n)).then(e=>{o[n]=e,u--,f()},e=>{c=!0,i(e)})};for(let e=0;e<a&&(f(),!l);e++);});t.exports=n,t.exports.default=n})),R=e.t(((e,t)=>{t.exports=n,t.exports.default=n;function n(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&typeof e.then==`function`}})),ee=e.t(((e,t)=>{t.exports=P()().Observable})),z=e.t(((e,t)=>{let n=ee();function r(e,t,n){let r=e===!1?!1:e||t;if(n&&!r||r&&typeof r!=`string`)throw TypeError(t+`Event must be a string.`);return r}t.exports=(e,t)=>{t||={};let i=!1,a=[],o=t.await,s=r(t.dataEvent,`data`,!0),c=r(t.errorEvent,`error`),l=r(t.endEvent,`end`);function u(){i=!0,a.forEach(t=>{e.removeListener(s,t)}),a=null}let d=new Promise((t,n)=>{function r(e){o?o.then(t):t(e)}l?e.once(l,r):o&&r(),c&&e.once(c,n),o&&o.catch(n)}).catch(e=>{throw u(),e}).then(e=>(u(),e));return new n(t=>{if(d.then(t.complete.bind(t)).catch(t.error.bind(t)),i)return null;let n=e=>{t.next(e)};return e.on(s,n),a.push(n),()=>{if(e.removeListener(s,n),i)return;let t=a.indexOf(n);t!==-1&&a.splice(t,1)}})}})),B=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return typeof e==`function`}e.isFunction=t})),V=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=!1;e.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e?console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at:
`+Error().stack):t&&console.log(`RxJS: Back to a better error behavior. Thank you. <3`),t=e},get useDeprecatedSynchronousErrorHandling(){return t}}})),te=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){setTimeout(function(){throw e},0)}e.hostReportError=t})),ne=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=V(),n=te();e.empty={closed:!0,next:function(e){},error:function(e){if(t.config.useDeprecatedSynchronousErrorHandling)throw e;n.hostReportError(e)},complete:function(){}}})),H=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isArray=(function(){return Array.isArray||(function(e){return e&&typeof e.length==`number`})})()})),re=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return typeof e==`object`&&!!e}e.isObject=t})),ie=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnsubscriptionError=(function(){function e(e){return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription:
`+e.map(function(e,t){return t+1+`) `+e.toString()}).join(`
`):``,this.name=`UnsubscriptionError`,this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})()})),U=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=H(),n=re(),r=B(),i=ie();e.Subscription=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var o;if(!this.closed){var s=this,c=s._parentOrParents,l=s._ctorUnsubscribe,u=s._unsubscribe,d=s._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,c instanceof e)c.remove(this);else if(c!==null)for(var f=0;f<c.length;++f)c[f].remove(this);if(r.isFunction(u)){l&&(this._unsubscribe=void 0);try{u.call(this)}catch(e){o=e instanceof i.UnsubscriptionError?a(e.errors):[e]}}if(t.isArray(d))for(var f=-1,p=d.length;++f<p;){var m=d[f];if(n.isObject(m))try{m.unsubscribe()}catch(e){o||=[],e instanceof i.UnsubscriptionError?o=o.concat(a(e.errors)):o.push(e)}}if(o)throw new i.UnsubscriptionError(o)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case`function`:n=new e(t);case`object`:if(n===this||n.closed||typeof n.unsubscribe!=`function`)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;n=new e,n._subscriptions=[r]}break;default:throw Error(`unrecognized teardown `+t+` added to Subscription.`)}var i=n._parentOrParents;if(i===null)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else if(i.indexOf(this)===-1)i.push(this);else return n;var a=this._subscriptions;return a===null?this._subscriptions=[n]:a.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);n!==-1&&t.splice(n,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function a(e){return e.reduce(function(e,t){return e.concat(t instanceof i.UnsubscriptionError?t.errors:t)},[])}})),ae=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.rxSubscriber=(function(){return typeof Symbol==`function`?Symbol(`rxSubscriber`):`@@rxSubscriber_`+Math.random()})(),e.$$rxSubscriber=e.rxSubscriber})),oe=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=B(),r=ne(),i=U(),a=ae(),o=V(),s=te(),c=function(e){t(n,e);function n(t,i,a){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=r.empty;break;case 1:if(!t){o.destination=r.empty;break}if(typeof t==`object`){t instanceof n?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(o)):(o.syncErrorThrowable=!0,o.destination=new l(o,t));break}default:o.syncErrorThrowable=!0,o.destination=new l(o,t,i,a);break}return o}return n.prototype[a.rxSubscriber]=function(){return this},n.create=function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},n}(i.Subscription);e.Subscriber=c;var l=function(e){t(i,e);function i(t,i,a,o){var s=e.call(this)||this;s._parentSubscriber=t;var c,l=s;return n.isFunction(i)?c=i:i&&(c=i.next,a=i.error,o=i.complete,i!==r.empty&&(l=Object.create(i),n.isFunction(l.unsubscribe)&&s.add(l.unsubscribe.bind(l)),l.unsubscribe=s.unsubscribe.bind(s))),s._context=l,s._next=c,s._error=a,s._complete=o,s}return i.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;!o.config.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable?this.__tryOrUnsub(this._next,e):this.__tryOrSetError(t,this._next,e)&&this.unsubscribe()}},i.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=o.config.useDeprecatedSynchronousErrorHandling;if(this._error)!n||!t.syncErrorThrowable?(this.__tryOrUnsub(this._error,e),this.unsubscribe()):(this.__tryOrSetError(t,this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):s.hostReportError(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;s.hostReportError(e)}}},i.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};!o.config.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable?(this.__tryOrUnsub(n),this.unsubscribe()):(this.__tryOrSetError(t,n),this.unsubscribe())}else this.unsubscribe()}},i.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),o.config.useDeprecatedSynchronousErrorHandling)throw e;s.hostReportError(e)}},i.prototype.__tryOrSetError=function(e,t,n){if(!o.config.useDeprecatedSynchronousErrorHandling)throw Error(`bad call`);try{t.call(this._context,n)}catch(t){return o.config.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(s.hostReportError(t),!0)}return!1},i.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},i}(c);e.SafeSubscriber=l})),se=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=oe();function n(e){for(;e;){var n=e,r=n.closed,i=n.destination,a=n.isStopped;if(r||a)return!1;e=i&&i instanceof t.Subscriber?i:null}return!0}e.canReportError=n})),ce=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=oe(),n=ae(),r=ne();function i(e,i,a){if(e){if(e instanceof t.Subscriber)return e;if(e[n.rxSubscriber])return e[n.rxSubscriber]()}return!e&&!i&&!a?new t.Subscriber(r.empty):new t.Subscriber(e,i,a)}e.toSubscriber=i})),le=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.observable=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})()})),ue=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return e}e.identity=t})),de=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=ue();function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)}e.pipe=n;function r(e){return e.length===0?t.identity:e.length===1?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}e.pipeFromArray=r})),W=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=se(),n=ce(),r=le(),i=de(),a=V();e.Observable=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,r){var i=this.operator,o=n.toSubscriber(e,t,r);if(i?o.add(i.call(o,this.source)):o.add(this.source||a.config.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),a.config.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){a.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),t.canReportError(e)?e.error(n):console.warn(n)}},e.prototype.forEach=function(e,t){var n=this;return t=o(t),new t(function(t,r){var i=n.subscribe(function(t){try{e(t)}catch(e){r(e),i&&i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[r.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?this:i.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return e=o(e),new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function o(e){if(e||=a.config.Promise||Promise,!e)throw Error(`no Promise impl found`);return e}})),fe=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ObjectUnsubscribedError=(function(){function e(){return Error.call(this),this.message=`object unsubscribed`,this.name=`ObjectUnsubscribedError`,this}return e.prototype=Object.create(Error.prototype),e})()})),pe=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.SubjectSubscription=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,!(!t||t.length===0||e.isStopped||e.closed)){var n=t.indexOf(this.subscriber);n!==-1&&t.splice(n,1)}}},n}(U().Subscription)})),me=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=W(),r=oe(),i=U(),a=fe(),o=pe(),s=ae(),c=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.destination=t,n}return n}(r.Subscriber);e.SubjectSubscriber=c;var l=function(e){t(r,e);function r(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype[s.rxSubscriber]=function(){return new c(this)},r.prototype.lift=function(e){var t=new u(this,this);return t.operator=e,t},r.prototype.next=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},r.prototype.error=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},r.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},r.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},r.prototype._trySubscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return e.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),i.Subscription.EMPTY):this.isStopped?(e.complete(),i.Subscription.EMPTY):(this.observers.push(e),new o.SubjectSubscription(this,e))},r.prototype.asObservable=function(){var e=new n.Observable;return e.source=this,e},r.create=function(e,t){return new u(e,t)},r}(n.Observable);e.Subject=l;var u=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return n.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},n.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},n.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},n.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):i.Subscription.EMPTY},n}(l);e.AnonymousSubject=u})),he=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=oe();function r(){return function(e){return e.lift(new i(e))}}e.refCount=r;var i=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new a(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),a=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return n.prototype._unsubscribe=function(){var e=this.connectable;if(!e){this.connection=null;return}this.connectable=null;var t=e._refCount;if(t<=0){this.connection=null;return}if(e._refCount=t-1,t>1){this.connection=null;return}var n=this.connection,r=e._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()},n}(n.Subscriber)})),ge=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=me(),r=W(),i=oe(),a=U(),o=he(),s=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return n.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},n.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},n.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,e=this._connection=new a.Subscription,e.add(this.source.subscribe(new c(this.getSubject(),this))),e.closed&&(this._connection=null,e=a.Subscription.EMPTY)),e},n.prototype.refCount=function(){return o.refCount()(this)},n}(r.Observable);e.ConnectableObservable=s,e.connectableObservableDescriptor=(function(){var e=s.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();var c=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return n.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},n.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},n.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},n}(n.SubjectSubscriber);(function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new l(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e})();var l=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return n.prototype._unsubscribe=function(){var e=this.connectable;if(!e){this.connection=null;return}this.connectable=null;var t=e._refCount;if(t<=0){this.connection=null;return}if(e._refCount=t-1,t>1){this.connection=null;return}var n=this.connection,r=e._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()},n}(i.Subscriber)})),_e=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=oe(),r=U(),i=W(),a=me();function o(e,t,n,r){return function(i){return i.lift(new s(e,t,n,r))}}e.groupBy=o;var s=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),c=function(e){t(n,e);function n(t,n,r,i,a){var o=e.call(this,t)||this;return o.keySelector=n,o.elementSelector=r,o.durationSelector=i,o.subjectSelector=a,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return n.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){this.error(e);return}this._group(e,t)},n.prototype._group=function(e,t){var n=this.groups;n||=this.groups=new Map;var r=n.get(t),i;if(this.elementSelector)try{i=this.elementSelector(e)}catch(e){this.error(e)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new a.Subject,n.set(t,r);var o=new u(t,r,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new u(t,r))}catch(e){this.error(e);return}this.add(s.subscribe(new l(t,r,this)))}}r.closed||r.next(i)},n.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)},n.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},n.prototype.removeGroup=function(e){this.groups.delete(e)},n.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&e.prototype.unsubscribe.call(this))},n}(n.Subscriber),l=function(e){t(n,e);function n(t,n,r){var i=e.call(this,n)||this;return i.key=t,i.group=n,i.parent=r,i}return n.prototype._next=function(e){this.complete()},n.prototype._unsubscribe=function(){var e=this,t=e.parent,n=e.key;this.key=this.parent=null,t&&t.removeGroup(n)},n}(n.Subscriber),u=function(e){t(n,e);function n(t,n,r){var i=e.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=r,i}return n.prototype._subscribe=function(e){var t=new r.Subscription,n=this,i=n.refCountSubscription,a=n.groupSubject;return i&&!i.closed&&t.add(new d(i)),t.add(a.subscribe(e)),t},n}(i.Observable);e.GroupedObservable=u;var d=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return n.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(e.prototype.unsubscribe.call(this),--t.count,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},n}(r.Subscription)})),ve=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=me(),r=fe();e.BehaviorSubject=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n._value=t,n}return Object.defineProperty(n.prototype,`value`,{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.ObjectUnsubscribedError;return this._value},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(n.Subject)})),ye=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.Action=function(e){t(n,e);function n(t,n){return e.call(this)||this}return n.prototype.schedule=function(e,t){return t===void 0&&(t=0),this},n}(U().Subscription)})),be=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return n.prototype.schedule=function(e,t){if(t===void 0&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},n.prototype.requestAsyncId=function(e,t,n){return n===void 0&&(n=0),setInterval(e.flush.bind(e,this),n)},n.prototype.recycleAsyncId=function(e,t,n){if(n===void 0&&(n=0),n!==null&&this.delay===n&&this.pending===!1)return t;clearInterval(t)},n.prototype.execute=function(e,t){if(this.closed)return Error(`executing a cancelled action`);this.pending=!1;var n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||Error(e)}if(n)return this.unsubscribe(),r},n.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,r!==-1&&n.splice(r,1),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},n}(ye().Action)})),xe=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.QueueAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},n.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},n.prototype.requestAsyncId=function(t,n,r){return r===void 0&&(r=0),r!==null&&r>0||r===null&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},n}(be().AsyncAction)})),Se=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Scheduler=function(){function e(t,n){n===void 0&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}()})),Ce=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=Se();e.AsyncScheduler=function(e){t(r,e);function r(t,i){i===void 0&&(i=n.Scheduler.now);var a=e.call(this,t,function(){return r.delegate&&r.delegate!==a?r.delegate.now():i()})||this;return a.actions=[],a.active=!1,a.scheduled=void 0,a}return r.prototype.schedule=function(t,n,i){return n===void 0&&(n=0),r.delegate&&r.delegate!==this?r.delegate.schedule(t,n,i):e.prototype.schedule.call(this,t,n,i)},r.prototype.flush=function(e){var t=this.actions;if(this.active){t.push(e);return}var n;this.active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}},r}(n.Scheduler)})),we=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.QueueScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(Ce().AsyncScheduler)})),Te=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=xe();e.queueScheduler=new(we()).QueueScheduler(t.QueueAction),e.queue=e.queueScheduler})),Ee=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W();e.EMPTY=new t.Observable(function(e){return e.complete()});function n(t){return t?r(t):e.EMPTY}e.empty=n;function r(e){return new t.Observable(function(t){return e.schedule(function(){return t.complete()})})}})),De=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return e&&typeof e.schedule==`function`}e.isScheduler=t})),Oe=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.subscribeToArray=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}}})),ke=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=U();function r(e,r){return new t.Observable(function(t){var i=new n.Subscription,a=0;return i.add(r.schedule(function(){if(a===e.length){t.complete();return}t.next(e[a++]),t.closed||i.add(this.schedule())})),i})}e.scheduleArray=r})),Ae=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=Oe(),r=ke();function i(e,i){return i?r.scheduleArray(e,i):new t.Observable(n.subscribeToArray(e))}e.fromArray=i})),je=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=De(),n=Ae(),r=ke();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var a=e[e.length-1];return t.isScheduler(a)?(e.pop(),r.scheduleArray(e,a)):n.fromArray(e)}e.of=i})),Me=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W();function n(e,n){return n?new t.Observable(function(t){return n.schedule(r,0,{error:e,subscriber:t})}):new t.Observable(function(t){return t.error(e)})}e.throwError=n;function r(e){var t=e.error;e.subscriber.error(t)}})),Ne=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Ee(),n=je(),r=Me();(function(e){e.NEXT=`N`,e.ERROR=`E`,e.COMPLETE=`C`})(e.NotificationKind||={}),e.Notification=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue=e===`N`}return e.prototype.observe=function(e){switch(this.kind){case`N`:return e.next&&e.next(this.value);case`E`:return e.error&&e.error(this.error);case`C`:return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case`N`:return e&&e(this.value);case`E`:return t&&t(this.error);case`C`:return n&&n()}},e.prototype.accept=function(e,t,n){return e&&typeof e.next==`function`?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case`N`:return n.of(this.value);case`E`:return r.throwError(this.error);case`C`:return t.empty()}throw Error(`unexpected notification kind value`)},e.createNext=function(t){return t===void 0?e.undefinedValueNotification:new e(`N`,t)},e.createError=function(t){return new e(`E`,void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e(`C`),e.undefinedValueNotification=new e(`N`,void 0),e}()})),Pe=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=oe(),r=Ne();function i(e,t){return t===void 0&&(t=0),function(n){return n.lift(new a(e,t))}}e.observeOn=i;var a=function(){function e(e,t){t===void 0&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new o(e,this.scheduler,this.delay))},e}();e.ObserveOnOperator=a;var o=function(e){t(n,e);function n(t,n,r){r===void 0&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return n.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},n.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new s(e,this.destination)))},n.prototype._next=function(e){this.scheduleMessage(r.Notification.createNext(e))},n.prototype._error=function(e){this.scheduleMessage(r.Notification.createError(e)),this.unsubscribe()},n.prototype._complete=function(){this.scheduleMessage(r.Notification.createComplete()),this.unsubscribe()},n}(n.Subscriber);e.ObserveOnSubscriber=o;var s=function(){function e(e,t){this.notification=e,this.destination=t}return e}();e.ObserveOnMessage=s})),Fe=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=me(),r=Te(),i=U(),a=Pe(),o=fe(),s=pe();e.ReplaySubject=function(e){t(n,e);function n(t,n,r){t===void 0&&(t=1/0),n===void 0&&(n=1/0);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===1/0?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return n.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,t)},n.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new c(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},n.prototype._subscribe=function(e){var t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,c=n.length,l;if(this.closed)throw new o.ObjectUnsubscribedError;if(this.isStopped||this.hasError?l=i.Subscription.EMPTY:(this.observers.push(e),l=new s.SubjectSubscription(this,e)),r&&e.add(e=new a.ObserveOnSubscriber(e,r)),t)for(var u=0;u<c&&!e.closed;u++)e.next(n[u]);else for(var u=0;u<c&&!e.closed;u++)e.next(n[u].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),l},n.prototype._getNow=function(){return(this.scheduler||r.queue).now()},n.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,a=0;a<i&&!(e-r[a].time<n);)a++;return i>t&&(a=Math.max(a,i-t)),a>0&&r.splice(0,a),r},n}(n.Subject);var c=function(){function e(e,t){this.time=e,this.value=t}return e}()})),Ie=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=me(),r=U();e.AsyncSubject=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return n.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),r.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),r.Subscription.EMPTY):e.prototype._subscribe.call(this,t)},n.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},n.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},n.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},n}(n.Subject)})),Le=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=1,n=(function(){return Promise.resolve()})(),r={};function i(e){return e in r?(delete r[e],!0):!1}e.Immediate={setImmediate:function(e){var a=t++;return r[a]=!0,n.then(function(){return i(a)&&e()}),a},clearImmediate:function(e){i(e)}},e.TestTools={pending:function(){return Object.keys(r).length}}})),Re=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=Le();e.AsapAction=function(e){t(r,e);function r(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t.scheduled||=n.Immediate.setImmediate(t.flush.bind(t,null)))},r.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,i);t.actions.length===0&&(n.Immediate.clearImmediate(r),t.scheduled=void 0)},r}(be().AsyncAction)})),ze=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsapScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t=this.actions,n,r=-1,i=t.length;e||=t.shift();do if(n=e.execute(e.state,e.delay))break;while(++r<i&&(e=t.shift()));if(this.active=!1,n){for(;++r<i&&(e=t.shift());)e.unsubscribe();throw n}},n}(Ce().AsyncScheduler)})),Be=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Re();e.asapScheduler=new(ze()).AsapScheduler(t.AsapAction),e.asap=e.asapScheduler})),Ve=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=be();e.asyncScheduler=new(Ce()).AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler})),He=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AnimationFrameAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.requestAsyncId=function(t,n,r){return r===void 0&&(r=0),r!==null&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||=requestAnimationFrame(function(){return t.flush(null)}))},n.prototype.recycleAsyncId=function(t,n,r){if(r===void 0&&(r=0),r!==null&&r>0||r===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);t.actions.length===0&&(cancelAnimationFrame(n),t.scheduled=void 0)},n}(be().AsyncAction)})),Ue=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AnimationFrameScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t=this.actions,n,r=-1,i=t.length;e||=t.shift();do if(n=e.execute(e.state,e.delay))break;while(++r<i&&(e=t.shift()));if(this.active=!1,n){for(;++r<i&&(e=t.shift());)e.unsubscribe();throw n}},n}(Ce().AsyncScheduler)})),We=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=He();e.animationFrameScheduler=new(Ue()).AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler})),Ge=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=be();e.VirtualTimeScheduler=function(e){t(n,e);function n(t,n){t===void 0&&(t=r),n===void 0&&(n=1/0);var i=e.call(this,t,function(){return i.frame})||this;return i.maxFrames=n,i.frame=0,i.index=-1,i}return n.prototype.flush=function(){for(var e=this,t=e.actions,n=e.maxFrames,r,i;(i=t[0])&&i.delay<=n&&(t.shift(),this.frame=i.delay,!(r=i.execute(i.state,i.delay))););if(r){for(;i=t.shift();)i.unsubscribe();throw r}},n.frameTimeFactor=10,n}(Ce().AsyncScheduler);var r=function(e){t(n,e);function n(t,n,r){r===void 0&&(r=t.index+=1);var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=r,i.active=!0,i.index=t.index=r,i}return n.prototype.schedule=function(t,r){if(r===void 0&&(r=0),!this.id)return e.prototype.schedule.call(this,t,r);this.active=!1;var i=new n(this.scheduler,this.work);return this.add(i),i.schedule(t,r)},n.prototype.requestAsyncId=function(e,t,r){r===void 0&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(n.sortActions),!0},n.prototype.recycleAsyncId=function(e,t,n){n===void 0&&(n=0)},n.prototype._execute=function(t,n){if(this.active===!0)return e.prototype._execute.call(this,t,n)},n.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},n}(n.AsyncAction);e.VirtualAction=r})),Ke=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(){}e.noop=t})),qe=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W();function n(e){return!!e&&(e instanceof t.Observable||typeof e.lift==`function`&&typeof e.subscribe==`function`)}e.isObservable=n})),Je=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ArgumentOutOfRangeError=(function(){function e(){return Error.call(this),this.message=`argument out of range`,this.name=`ArgumentOutOfRangeError`,this}return e.prototype=Object.create(Error.prototype),e})()})),Ye=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EmptyError=(function(){function e(){return Error.call(this),this.message=`no elements in sequence`,this.name=`EmptyError`,this}return e.prototype=Object.create(Error.prototype),e})()})),Xe=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TimeoutError=(function(){function e(){return Error.call(this),this.message=`Timeout has occurred`,this.name=`TimeoutError`,this}return e.prototype=Object.create(Error.prototype),e})()})),Ze=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=oe();function r(e,t){return function(n){if(typeof e!=`function`)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(e,t))}}e.map=r;var i=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},e}();e.MapOperator=i;var a=function(e){t(n,e);function n(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return n.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}this.destination.next(t)},n}(n.Subscriber)})),Qe=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=Ie(),r=Ze(),i=se(),a=H(),o=De();function s(e,l,u){if(l)if(o.isScheduler(l))u=l;else return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(e,u).apply(void 0,t).pipe(r.map(function(e){return a.isArray(e)?l.apply(void 0,e):l(e)}))};return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var o=this,s,l={context:o,subject:s,callbackFunc:e,scheduler:u};return new t.Observable(function(t){if(u){var a={args:r,subscriber:t,params:l};return u.schedule(c,0,a)}else{if(!s){s=new n.AsyncSubject;var d=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];s.next(e.length<=1?e[0]:e),s.complete()};try{e.apply(o,r.concat([d]))}catch(e){i.canReportError(s)?s.error(e):console.warn(e)}}return s.subscribe(t)}})}}e.bindCallback=s;function c(e){var t=this,r=e.args,i=e.subscriber,a=e.params,o=a.callbackFunc,s=a.context,c=a.scheduler,u=a.subject;if(!u){u=a.subject=new n.AsyncSubject;var d=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length<=1?e[0]:e;t.add(c.schedule(l,0,{value:r,subject:u}))};try{o.apply(s,r.concat([d]))}catch(e){u.error(e)}}this.add(u.subscribe(i))}function l(e){var t=e.value,n=e.subject;n.next(t),n.complete()}})),$e=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=Ie(),r=Ze(),i=se(),a=De(),o=H();function s(e,l,u){if(l)if(a.isScheduler(l))u=l;else return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(e,u).apply(void 0,t).pipe(r.map(function(e){return o.isArray(e)?l.apply(void 0,e):l(e)}))};return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var o={subject:void 0,args:r,callbackFunc:e,scheduler:u,context:this};return new t.Observable(function(t){var a=o.context,s=o.subject;if(u)return u.schedule(c,0,{params:o,subscriber:t,context:a});if(!s){s=o.subject=new n.AsyncSubject;var l=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.shift();if(n){s.error(n);return}s.next(e.length<=1?e[0]:e),s.complete()};try{e.apply(a,r.concat([l]))}catch(e){i.canReportError(s)?s.error(e):console.warn(e)}}return s.subscribe(t)})}}e.bindNodeCallback=s;function c(e){var t=this,r=e.params,i=e.subscriber,a=e.context,o=r.callbackFunc,s=r.args,c=r.scheduler,d=r.subject;if(!d){d=r.subject=new n.AsyncSubject;var f=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.shift();if(r)t.add(c.schedule(u,0,{err:r,subject:d}));else{var i=e.length<=1?e[0]:e;t.add(c.schedule(l,0,{value:i,subject:d}))}};try{o.apply(a,s.concat([f]))}catch(e){this.add(c.schedule(u,0,{err:e,subject:d}))}}this.add(d.subscribe(i))}function l(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function u(e){var t=e.err;e.subject.error(t)}})),et=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.OuterSubscriber=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},n.prototype.notifyError=function(e,t){this.destination.error(e)},n.prototype.notifyComplete=function(e){this.destination.complete()},n}(oe().Subscriber)})),tt=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.InnerSubscriber=function(e){t(n,e);function n(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return n.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},n.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},n.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},n}(oe().Subscriber)})),nt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=te();e.subscribeToPromise=function(e){return function(n){return e.then(function(e){n.closed||(n.next(e),n.complete())},function(e){return n.error(e)}).then(null,t.hostReportError),n}}})),rt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(){return typeof Symbol!=`function`||!Symbol.iterator?`@@iterator`:Symbol.iterator}e.getSymbolIterator=t,e.iterator=t(),e.$$iterator=e.iterator})),it=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=rt();e.subscribeToIterable=function(e){return function(n){var r=e[t.iterator]();do{var i=void 0;try{i=r.next()}catch(e){return n.error(e),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}while(!0);return typeof r.return==`function`&&n.add(function(){r.return&&r.return()}),n}}})),at=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=le();e.subscribeToObservable=function(e){return function(n){var r=e[t.observable]();if(typeof r.subscribe!=`function`)throw TypeError(`Provided object does not correctly implement Symbol.observable`);return r.subscribe(n)}}})),ot=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isArrayLike=(function(e){return e&&typeof e.length==`number`&&typeof e!=`function`})})),st=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return!!e&&typeof e.subscribe!=`function`&&typeof e.then==`function`}e.isPromise=t})),ct=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Oe(),n=nt(),r=it(),i=at(),a=ot(),o=st(),s=re(),c=rt(),l=le();e.subscribeTo=function(e){if(e&&typeof e[l.observable]==`function`)return i.subscribeToObservable(e);if(a.isArrayLike(e))return t.subscribeToArray(e);if(o.isPromise(e))return n.subscribeToPromise(e);if(e&&typeof e[c.iterator]==`function`)return r.subscribeToIterable(e);var u=`You provided `+(s.isObject(e)?`an invalid object`:`'`+e+`'`)+` where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw TypeError(u)}})),lt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=tt(),n=ct(),r=W();function i(e,i,a,o,s){if(s===void 0&&(s=new t.InnerSubscriber(e,a,o)),!s.closed)return i instanceof r.Observable?i.subscribe(s):n.subscribeTo(i)(s)}e.subscribeToResult=i})),ut=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=De(),r=H(),i=et(),a=lt(),o=Ae(),s={};function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=void 0,a=void 0;return n.isScheduler(e[e.length-1])&&(a=e.pop()),typeof e[e.length-1]==`function`&&(i=e.pop()),e.length===1&&r.isArray(e[0])&&(e=e[0]),o.fromArray(e,a).lift(new l(i))}e.combineLatest=c;var l=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.resultSelector))},e}();e.CombineLatestOperator=l;var u=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return n.prototype._next=function(e){this.values.push(s),this.observables.push(e)},n.prototype._complete=function(){var e=this.observables,t=e.length;if(t===0)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(a.subscribeToResult(this,r,void 0,n))}}},n.prototype.notifyComplete=function(e){--this.active===0&&this.destination.complete()},n.prototype.notifyNext=function(e,t,n){var r=this.values,i=r[n],a=this.toRespond?i===s?--this.toRespond:this.toRespond:0;r[n]=t,a===0&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},n.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},n}(i.OuterSubscriber);e.CombineLatestSubscriber=u})),dt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=U(),r=le();function i(e,i){return new t.Observable(function(t){var a=new n.Subscription;return a.add(i.schedule(function(){var n=e[r.observable]();a.add(n.subscribe({next:function(e){a.add(i.schedule(function(){return t.next(e)}))},error:function(e){a.add(i.schedule(function(){return t.error(e)}))},complete:function(){a.add(i.schedule(function(){return t.complete()}))}}))})),a})}e.scheduleObservable=i})),ft=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=U();function r(e,r){return new t.Observable(function(t){var i=new n.Subscription;return i.add(r.schedule(function(){return e.then(function(e){i.add(r.schedule(function(){t.next(e),i.add(r.schedule(function(){return t.complete()}))}))},function(e){i.add(r.schedule(function(){return t.error(e)}))})})),i})}e.schedulePromise=r})),pt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=U(),r=rt();function i(e,i){if(!e)throw Error(`Iterable cannot be null`);return new t.Observable(function(t){var a=new n.Subscription,o;return a.add(function(){o&&typeof o.return==`function`&&o.return()}),a.add(i.schedule(function(){o=e[r.iterator](),a.add(i.schedule(function(){if(!t.closed){var e,n;try{var r=o.next();e=r.value,n=r.done}catch(e){t.error(e);return}n?t.complete():(t.next(e),this.schedule())}}))})),a})}e.scheduleIterable=i})),mt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=le();function n(e){return e&&typeof e[t.observable]==`function`}e.isInteropObservable=n})),ht=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=rt();function n(e){return e&&typeof e[t.iterator]==`function`}e.isIterable=n})),gt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=dt(),n=ft(),r=ke(),i=pt(),a=mt(),o=st(),s=ot(),c=ht();function l(e,l){if(e!=null){if(a.isInteropObservable(e))return t.scheduleObservable(e,l);if(o.isPromise(e))return n.schedulePromise(e,l);if(s.isArrayLike(e))return r.scheduleArray(e,l);if(c.isIterable(e)||typeof e==`string`)return i.scheduleIterable(e,l)}throw TypeError((e!==null&&typeof e||e)+` is not observable`)}e.scheduled=l})),_t=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=ct(),r=gt();function i(e,i){return i?r.scheduled(e,i):e instanceof t.Observable?e:new t.Observable(n.subscribeTo(e))}e.from=i})),vt=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=oe(),r=W(),i=ct();e.SimpleInnerSubscriber=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.parent=t,n}return n.prototype._next=function(e){this.parent.notifyNext(e)},n.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},n.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},n}(n.Subscriber),e.ComplexInnerSubscriber=function(e){t(n,e);function n(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i}return n.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this)},n.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},n.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},n}(n.Subscriber),e.SimpleOuterSubscriber=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.notifyNext=function(e){this.destination.next(e)},n.prototype.notifyError=function(e){this.destination.error(e)},n.prototype.notifyComplete=function(){this.destination.complete()},n}(n.Subscriber),e.ComplexOuterSubscriber=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.notifyNext=function(e,t,n,r){this.destination.next(t)},n.prototype.notifyError=function(e){this.destination.error(e)},n.prototype.notifyComplete=function(e){this.destination.complete()},n}(n.Subscriber);function a(e,t){if(!t.closed){if(e instanceof r.Observable)return e.subscribe(t);var n;try{n=i.subscribeTo(e)(t)}catch(e){t.error(e)}return n}}e.innerSubscribe=a})),yt=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=Ze(),r=_t(),i=vt();function a(e,t,i){return i===void 0&&(i=1/0),typeof t==`function`?function(o){return o.pipe(a(function(i,a){return r.from(e(i,a)).pipe(n.map(function(e,n){return t(i,e,a,n)}))},i))}:(typeof t==`number`&&(i=t),function(t){return t.lift(new o(e,i))})}e.mergeMap=a;var o=function(){function e(e,t){t===void 0&&(t=1/0),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.concurrent))},e}();e.MergeMapOperator=o;var s=function(e){t(n,e);function n(t,n,r){r===void 0&&(r=1/0);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return n.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},n.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.active++,this._innerSub(t)},n.prototype._innerSub=function(e){var t=new i.SimpleInnerSubscriber(this),n=this.destination;n.add(t);var r=i.innerSubscribe(e,t);r!==t&&n.add(r)},n.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&this.destination.complete(),this.unsubscribe()},n.prototype.notifyNext=function(e){this.destination.next(e)},n.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},n}(i.SimpleOuterSubscriber);e.MergeMapSubscriber=s,e.flatMap=a})),bt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=yt(),n=ue();function r(e){return e===void 0&&(e=1/0),t.mergeMap(n.identity,e)}e.mergeAll=r})),xt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=bt();function n(){return t.mergeAll(1)}e.concatAll=n})),St=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=je(),n=xt();function r(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return n.concatAll()(t.of.apply(void 0,e))}e.concat=r})),Ct=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=_t(),r=Ee();function i(e){return new t.Observable(function(t){var i;try{i=e()}catch(e){t.error(e);return}return(i?n.from(i):r.empty()).subscribe(t)})}e.defer=i})),wt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=H(),r=Ze(),i=re(),a=_t();function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length===1){var a=e[0];if(n.isArray(a))return s(a,null);if(i.isObject(a)&&Object.getPrototypeOf(a)===Object.prototype){var o=Object.keys(a);return s(o.map(function(e){return a[e]}),o)}}if(typeof e[e.length-1]==`function`){var c=e.pop();return e=e.length===1&&n.isArray(e[0])?e[0]:e,s(e,null).pipe(r.map(function(e){return c.apply(void 0,e)}))}return s(e,null)}e.forkJoin=o;function s(e,n){return new t.Observable(function(t){var r=e.length;if(r===0){t.complete();return}for(var i=Array(r),o=0,s=0,c=function(c){var l=a.from(e[c]),u=!1;t.add(l.subscribe({next:function(e){u||(u=!0,s++),i[c]=e},error:function(e){return t.error(e)},complete:function(){o++,(o===r||!u)&&(s===r&&t.next(n?n.reduce(function(e,t,n){return e[t]=i[n],e},{}):i),t.complete())}}))},l=0;l<r;l++)c(l)})}})),Tt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=H(),r=B(),i=Ze();(function(){return Object.prototype.toString})();function a(e,s,c,l){return r.isFunction(c)&&(l=c,c=void 0),l?a(e,s,c).pipe(i.map(function(e){return n.isArray(e)?l.apply(void 0,e):l(e)})):new t.Observable(function(t){function n(e){arguments.length>1?t.next(Array.prototype.slice.call(arguments)):t.next(e)}o(e,s,n,t,c)})}e.fromEvent=a;function o(e,t,n,r,i){var a;if(l(e)){var u=e;e.addEventListener(t,n,i),a=function(){return u.removeEventListener(t,n,i)}}else if(c(e)){var d=e;e.on(t,n),a=function(){return d.off(t,n)}}else if(s(e)){var f=e;e.addListener(t,n),a=function(){return f.removeListener(t,n)}}else if(e&&e.length)for(var p=0,m=e.length;p<m;p++)o(e[p],t,n,r,i);else throw TypeError(`Invalid event target`);r.add(a)}function s(e){return e&&typeof e.addListener==`function`&&typeof e.removeListener==`function`}function c(e){return e&&typeof e.on==`function`&&typeof e.off==`function`}function l(e){return e&&typeof e.addEventListener==`function`&&typeof e.removeEventListener==`function`}})),Et=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=H(),r=B(),i=Ze();function a(e,o,s){return s?a(e,o).pipe(i.map(function(e){return n.isArray(e)?s.apply(void 0,e):s(e)})):new t.Observable(function(t){var n=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(e.length===1?e[0]:e)},i;try{i=e(n)}catch(e){t.error(e);return}if(r.isFunction(o))return function(){return o(n,i)}})}e.fromEventPattern=a})),Dt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=ue(),r=De();function i(e,i,o,s,c){var l,u;if(arguments.length==1){var d=e;u=d.initialState,i=d.condition,o=d.iterate,l=d.resultSelector||n.identity,c=d.scheduler}else s===void 0||r.isScheduler(s)?(u=e,l=n.identity,c=s):(u=e,l=s);return new t.Observable(function(e){var t=u;if(c)return c.schedule(a,0,{subscriber:e,iterate:o,condition:i,resultSelector:l,state:t});do{if(i){var n=void 0;try{n=i(t)}catch(t){e.error(t);return}if(!n){e.complete();break}}var r=void 0;try{r=l(t)}catch(t){e.error(t);return}if(e.next(r),e.closed)break;try{t=o(t)}catch(t){e.error(t);return}}while(!0)})}e.generate=i;function a(e){var t=e.subscriber,n=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){t.error(e);return}else e.needIterate=!0;if(n){var r=void 0;try{r=n(e.state)}catch(e){t.error(e);return}if(!r){t.complete();return}if(t.closed)return}var i;try{i=e.resultSelector(e.state)}catch(e){t.error(e);return}if(!t.closed&&(t.next(i),!t.closed))return this.schedule(e)}}})),Ot=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Ct(),n=Ee();function r(e,r,i){return r===void 0&&(r=n.EMPTY),i===void 0&&(i=n.EMPTY),t.defer(function(){return e()?r:i})}e.iif=r})),kt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=H();function n(e){return!t.isArray(e)&&e-parseFloat(e)+1>=0}e.isNumeric=n})),At=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=Ve(),r=kt();function i(e,i){return e===void 0&&(e=0),i===void 0&&(i=n.async),(!r.isNumeric(e)||e<0)&&(e=0),(!i||typeof i.schedule!=`function`)&&(i=n.async),new t.Observable(function(t){return t.add(i.schedule(a,e,{subscriber:t,counter:0,period:e})),t})}e.interval=i;function a(e){var t=e.subscriber,n=e.counter,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}})),jt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=De(),r=bt(),i=Ae();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];var o=1/0,s=null,c=e[e.length-1];return n.isScheduler(c)?(s=e.pop(),e.length>1&&typeof e[e.length-1]==`number`&&(o=e.pop())):typeof c==`number`&&(o=e.pop()),s===null&&e.length===1&&e[0]instanceof t.Observable?e[0]:r.mergeAll(o)(i.fromArray(e,s))}e.merge=a})),Mt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=Ke();e.NEVER=new t.Observable(n.noop);function r(){return e.NEVER}e.never=r})),Nt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=_t(),r=H(),i=Ee();function a(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];if(e.length===0)return i.EMPTY;var s=e[0],c=e.slice(1);return e.length===1&&r.isArray(s)?a.apply(void 0,s):new t.Observable(function(e){var t=function(){return e.add(a.apply(void 0,c).subscribe(e))};return n.from(s).subscribe({next:function(t){e.next(t)},error:t,complete:t})})}e.onErrorResumeNext=a})),Pt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=U();function r(e,r){return r?new t.Observable(function(t){var a=Object.keys(e),o=new n.Subscription;return o.add(r.schedule(i,0,{keys:a,index:0,subscriber:t,subscription:o,obj:e})),o}):new t.Observable(function(t){for(var n=Object.keys(e),r=0;r<n.length&&!t.closed;r++){var i=n[r];e.hasOwnProperty(i)&&t.next([i,e[i]])}t.complete()})}e.pairs=r;function i(e){var t=e.keys,n=e.index,r=e.subscriber,i=e.subscription,a=e.obj;if(!r.closed)if(n<t.length){var o=t[n];r.next([o,a[o]]),i.add(this.schedule({keys:t,index:n+1,subscriber:r,subscription:i,obj:a}))}else r.complete()}e.dispatch=i})),Ft=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}e.not=t})),It=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=oe();function r(e,t){return function(n){return n.lift(new i(e,t))}}e.filter=r;var i=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))},e}(),a=function(e){t(n,e);function n(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return n.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}t&&this.destination.next(e)},n}(n.Subscriber)})),Lt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Ft(),n=ct(),r=It(),i=W();function a(e,a,o){return[r.filter(a,o)(new i.Observable(n.subscribeTo(e))),r.filter(t.not(a,o))(new i.Observable(n.subscribeTo(e)))]}e.partition=a})),Rt=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=H(),r=Ae(),i=et(),a=lt();function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length===1)if(n.isArray(e[0]))e=e[0];else return e[0];return r.fromArray(e,void 0).lift(new s)}e.race=o;var s=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new c(e))},e}();e.RaceOperator=s;var c=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return n.prototype._next=function(e){this.observables.push(e)},n.prototype._complete=function(){var e=this.observables,t=e.length;if(t===0)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var r=e[n],i=a.subscribeToResult(this,r,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},n.prototype.notifyNext=function(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(t)},n}(i.OuterSubscriber);e.RaceSubscriber=c})),zt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W();function n(e,n,i){return e===void 0&&(e=0),new t.Observable(function(t){n===void 0&&(n=e,e=0);var a=0,o=e;if(i)return i.schedule(r,0,{index:a,count:n,start:e,subscriber:t});do{if(a++>=n){t.complete();break}if(t.next(o++),t.closed)break}while(!0)})}e.range=n;function r(e){var t=e.start,n=e.index,r=e.count,i=e.subscriber;if(n>=r){i.complete();return}i.next(t),!i.closed&&(e.index=n+1,e.start=t+1,this.schedule(e))}e.dispatch=r})),Bt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=Ve(),r=kt(),i=De();function a(e,a,s){e===void 0&&(e=0);var c=-1;return r.isNumeric(a)?c=Number(a)<1&&1||Number(a):i.isScheduler(a)&&(s=a),i.isScheduler(s)||(s=n.async),new t.Observable(function(t){var n=r.isNumeric(e)?e:+e-s.now();return s.schedule(o,n,{index:0,period:c,subscriber:t})})}e.timer=a;function o(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(n===-1)return r.complete();e.index=t+1,this.schedule(e,n)}}})),Vt=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=W(),n=_t(),r=Ee();function i(e,i){return new t.Observable(function(t){var a;try{a=e()}catch(e){t.error(e);return}var o;try{o=i(a)}catch(e){t.error(e);return}var s=(o?n.from(o):r.EMPTY).subscribe(t);return function(){s.unsubscribe(),a&&a.unsubscribe()}})}e.using=i})),Ht=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=Ae(),r=H(),i=oe(),a=rt(),o=vt();function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1];return typeof r==`function`&&e.pop(),n.fromArray(e,void 0).lift(new c(r))}e.zip=s;var c=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.resultSelector))},e}();e.ZipOperator=c;var l=function(e){t(n,e);function n(t,n,r){r===void 0&&(r=Object.create(null));var i=e.call(this,t)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector=typeof n==`function`?n:void 0,i}return n.prototype._next=function(e){var t=this.iterators;r.isArray(e)?t.push(new d(e)):typeof e[a.iterator]==`function`?t.push(new u(e[a.iterator]())):t.push(new f(this.destination,this,e))},n.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),t===0){this.destination.complete();return}this.active=t;for(var n=0;n<t;n++){var r=e[n];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}},n.prototype.notifyInactive=function(){this.active--,this.active===0&&this.destination.complete()},n.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,r=0;r<t;r++){var i=e[r];if(typeof i.hasValue==`function`&&!i.hasValue())return}for(var a=!1,o=[],r=0;r<t;r++){var i=e[r],s=i.next();if(i.hasCompleted()&&(a=!0),s.done){n.complete();return}o.push(s.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),a&&n.complete()},n.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},n}(i.Subscriber);e.ZipSubscriber=l;var u=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return!!(e&&e.done)},e}(),d=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[a.iterator]=function(){return this},e.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),f=function(e){t(n,e);function n(t,n,r){var i=e.call(this,t)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return n.prototype[a.iterator]=function(){return this},n.prototype.next=function(){var e=this.buffer;return e.length===0&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},n.prototype.hasValue=function(){return this.buffer.length>0},n.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},n.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},n.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},n.prototype.subscribe=function(){return o.innerSubscribe(this.observable,new o.SimpleInnerSubscriber(this))},n}(o.SimpleOuterSubscriber)})),Ut=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Observable=W().Observable,e.ConnectableObservable=ge().ConnectableObservable,e.GroupedObservable=_e().GroupedObservable,e.observable=le().observable,e.Subject=me().Subject,e.BehaviorSubject=ve().BehaviorSubject,e.ReplaySubject=Fe().ReplaySubject,e.AsyncSubject=Ie().AsyncSubject;var t=Be();e.asap=t.asap,e.asapScheduler=t.asapScheduler;var n=Ve();e.async=n.async,e.asyncScheduler=n.asyncScheduler;var r=Te();e.queue=r.queue,e.queueScheduler=r.queueScheduler;var i=We();e.animationFrame=i.animationFrame,e.animationFrameScheduler=i.animationFrameScheduler;var a=Ge();e.VirtualTimeScheduler=a.VirtualTimeScheduler,e.VirtualAction=a.VirtualAction,e.Scheduler=Se().Scheduler,e.Subscription=U().Subscription,e.Subscriber=oe().Subscriber;var o=Ne();e.Notification=o.Notification,e.NotificationKind=o.NotificationKind,e.pipe=de().pipe,e.noop=Ke().noop,e.identity=ue().identity,e.isObservable=qe().isObservable,e.ArgumentOutOfRangeError=Je().ArgumentOutOfRangeError,e.EmptyError=Ye().EmptyError,e.ObjectUnsubscribedError=fe().ObjectUnsubscribedError,e.UnsubscriptionError=ie().UnsubscriptionError,e.TimeoutError=Xe().TimeoutError,e.bindCallback=Qe().bindCallback,e.bindNodeCallback=$e().bindNodeCallback,e.combineLatest=ut().combineLatest,e.concat=St().concat,e.defer=Ct().defer,e.empty=Ee().empty,e.forkJoin=wt().forkJoin,e.from=_t().from,e.fromEvent=Tt().fromEvent,e.fromEventPattern=Et().fromEventPattern,e.generate=Dt().generate,e.iif=Ot().iif,e.interval=At().interval,e.merge=jt().merge,e.never=Mt().never,e.of=je().of,e.onErrorResumeNext=Nt().onErrorResumeNext,e.pairs=Pt().pairs,e.partition=Lt().partition,e.race=Rt().race,e.range=zt().range,e.throwError=Me().throwError,e.timer=Bt().timer,e.using=Vt().using,e.zip=Ht().zip,e.scheduled=gt().scheduled,e.EMPTY=Ee().EMPTY,e.NEVER=Mt().NEVER,e.config=V().config})),Wt=e.t(((e,t)=>{t.exports=class{static get nonTTY(){return!0}render(){}end(){}}})),Gt=e.t(((e,t)=>{var n=/[|\\{}()[\]^$+*?.]/g;t.exports=function(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(n,`\\$&`)}})),Kt=e.t(((e,t)=>{let n=Gt(),r=process.platform,i={tick:`✔`,cross:`✖`,star:`★`,square:`▇`,squareSmall:`◻`,squareSmallFilled:`◼`,play:`▶`,circle:`◯`,circleFilled:`◉`,circleDotted:`◌`,circleDouble:`◎`,circleCircle:`ⓞ`,circleCross:`ⓧ`,circlePipe:`Ⓘ`,circleQuestionMark:`?⃝`,bullet:`●`,dot:`․`,line:`─`,ellipsis:`…`,pointer:`❯`,pointerSmall:`›`,info:`ℹ`,warning:`⚠`,hamburger:`☰`,smiley:`㋡`,mustache:`෴`,heart:`♥`,arrowUp:`↑`,arrowDown:`↓`,arrowLeft:`←`,arrowRight:`→`,radioOn:`◉`,radioOff:`◯`,checkboxOn:`☒`,checkboxOff:`☐`,checkboxCircleOn:`ⓧ`,checkboxCircleOff:`Ⓘ`,questionMarkPrefix:`?⃝`,oneHalf:`½`,oneThird:`⅓`,oneQuarter:`¼`,oneFifth:`⅕`,oneSixth:`⅙`,oneSeventh:`⅐`,oneEighth:`⅛`,oneNinth:`⅑`,oneTenth:`⅒`,twoThirds:`⅔`,twoFifths:`⅖`,threeQuarters:`¾`,threeFifths:`⅗`,threeEighths:`⅜`,fourFifths:`⅘`,fiveSixths:`⅚`,fiveEighths:`⅝`,sevenEighths:`⅞`},a={tick:`√`,cross:`×`,star:`*`,square:`█`,squareSmall:`[ ]`,squareSmallFilled:`[█]`,play:`►`,circle:`( )`,circleFilled:`(*)`,circleDotted:`( )`,circleDouble:`( )`,circleCircle:`(○)`,circleCross:`(×)`,circlePipe:`(│)`,circleQuestionMark:`(?)`,bullet:`*`,dot:`.`,line:`─`,ellipsis:`...`,pointer:`>`,pointerSmall:`»`,info:`i`,warning:`‼`,hamburger:`≡`,smiley:`☺`,mustache:`┌─┐`,heart:i.heart,arrowUp:i.arrowUp,arrowDown:i.arrowDown,arrowLeft:i.arrowLeft,arrowRight:i.arrowRight,radioOn:`(*)`,radioOff:`( )`,checkboxOn:`[×]`,checkboxOff:`[ ]`,checkboxCircleOn:`(×)`,checkboxCircleOff:`( )`,questionMarkPrefix:`?`,oneHalf:`1/2`,oneThird:`1/3`,oneQuarter:`1/4`,oneFifth:`1/5`,oneSixth:`1/6`,oneSeventh:`1/7`,oneEighth:`1/8`,oneNinth:`1/9`,oneTenth:`1/10`,twoThirds:`2/3`,twoFifths:`2/5`,threeQuarters:`3/4`,threeFifths:`3/5`,threeEighths:`3/8`,fourFifths:`4/5`,fiveSixths:`5/6`,fiveEighths:`5/8`,sevenEighths:`7/8`};r===`linux`&&(i.questionMarkPrefix=`?`);let o=r===`win32`?a:i;t.exports=Object.assign(e=>(o===i||Object.keys(i).forEach(t=>{i[t]!==o[t]&&(e=e.replace(new RegExp(n(i[t]),`g`),o[t]))}),e),o)})),qt=e.t(((e,t)=>{t.exports=(e,t)=>{for(let n of Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e}})),Jt=e.t(((e,t)=>{let n=qt();t.exports=(e,t)=>{if(t===!0)throw TypeError(`The second argument is now an options object`);if(typeof e!=`function`)throw TypeError(`Expected a function`);t||={};let r,i=!1,a=e.displayName||e.name||`<anonymous>`,o=function(){if(i){if(t.throw===!0)throw Error(`Function \`${a}\` can only be called once`);return r}return i=!0,r=e.apply(this,arguments),e=null,r};return n(o,e),o}})),Yt=e.t(((e,t)=>{t.exports=[`SIGABRT`,`SIGALRM`,`SIGHUP`,`SIGINT`,`SIGTERM`],process.platform!==`win32`&&t.exports.push(`SIGVTALRM`,`SIGXCPU`,`SIGXFSZ`,`SIGUSR2`,`SIGTRAP`,`SIGSYS`,`SIGQUIT`,`SIGIOT`),process.platform===`linux`&&t.exports.push(`SIGIO`,`SIGPOLL`,`SIGPWR`,`SIGSTKFLT`,`SIGUNUSED`)})),Xt=e.t(((e,t)=>{var n=global.process;let r=function(e){return e&&typeof e==`object`&&typeof e.removeListener==`function`&&typeof e.emit==`function`&&typeof e.reallyExit==`function`&&typeof e.listeners==`function`&&typeof e.kill==`function`&&typeof e.pid==`number`&&typeof e.on==`function`};if(!r(n))t.exports=function(){return function(){}};else{var i=require(`assert`),a=Yt(),o=/^win/i.test(n.platform),s=require(`events`);typeof s!=`function`&&(s=s.EventEmitter);var c;n.__signal_exit_emitter__?c=n.__signal_exit_emitter__:(c=n.__signal_exit_emitter__=new s,c.count=0,c.emitted={}),c.infinite||(c.setMaxListeners(1/0),c.infinite=!0),t.exports=function(e,t){if(!r(global.process))return function(){};i.equal(typeof e,`function`,`a callback must be provided for exit handler`),f===!1&&p();var n=`exit`;return t&&t.alwaysLast&&(n=`afterexit`),c.on(n,e),function(){c.removeListener(n,e),c.listeners(`exit`).length===0&&c.listeners(`afterexit`).length===0&&l()}};var l=function(){!f||!r(global.process)||(f=!1,a.forEach(function(e){try{n.removeListener(e,d[e])}catch{}}),n.emit=g,n.reallyExit=m,--c.count)};t.exports.unload=l;var u=function(e,t,n){c.emitted[e]||(c.emitted[e]=!0,c.emit(e,t,n))},d={};a.forEach(function(e){d[e]=function(){r(global.process)&&n.listeners(e).length===c.count&&(l(),u(`exit`,null,e),u(`afterexit`,null,e),o&&e===`SIGHUP`&&(e=`SIGINT`),n.kill(n.pid,e))}}),t.exports.signals=function(){return a};var f=!1,p=function(){f||!r(global.process)||(f=!0,c.count+=1,a=a.filter(function(e){try{return n.on(e,d[e]),!0}catch{return!1}}),n.emit=v,n.reallyExit=h)};t.exports.load=p;var m=n.reallyExit,h=function(e){r(global.process)&&(n.exitCode=e||0,u(`exit`,n.exitCode,null),u(`afterexit`,n.exitCode,null),m.call(n,n.exitCode))},g=n.emit,v=function(e,t){if(e===`exit`&&r(global.process)){t!==void 0&&(n.exitCode=t);var i=g.apply(this,arguments);return u(`exit`,n.exitCode,null),u(`afterexit`,n.exitCode,null),i}else return g.apply(this,arguments)}}})),Zt=e.t(((e,t)=>{let n=Jt(),r=Xt();t.exports=n(()=>{r(()=>{process.stderr.write(`\x1B[?25h`)},{alwaysLast:!0})})})),Qt=e.t((e=>{let t=Zt(),n=!1;e.show=e=>{let t=e||process.stderr;t.isTTY&&(n=!1,t.write(`\x1B[?25h`))},e.hide=e=>{let r=e||process.stderr;r.isTTY&&(t(),n=!0,r.write(`\x1B[?25l`))},e.toggle=(t,r)=>{t!==void 0&&(n=t),n?e.show(r):e.hide(r)}})),$t=e.t(((e,t)=>{t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}})),en=e.t(((e,t)=>{var n=$t(),r={};for(var i in n)n.hasOwnProperty(i)&&(r[n[i]]=i);var a=t.exports={rgb:{channels:3,labels:`rgb`},hsl:{channels:3,labels:`hsl`},hsv:{channels:3,labels:`hsv`},hwb:{channels:3,labels:`hwb`},cmyk:{channels:4,labels:`cmyk`},xyz:{channels:3,labels:`xyz`},lab:{channels:3,labels:`lab`},lch:{channels:3,labels:`lch`},hex:{channels:1,labels:[`hex`]},keyword:{channels:1,labels:[`keyword`]},ansi16:{channels:1,labels:[`ansi16`]},ansi256:{channels:1,labels:[`ansi256`]},hcg:{channels:3,labels:[`h`,`c`,`g`]},apple:{channels:3,labels:[`r16`,`g16`,`b16`]},gray:{channels:1,labels:[`gray`]}};for(var o in a)if(a.hasOwnProperty(o)){if(!(`channels`in a[o]))throw Error(`missing channels property: `+o);if(!(`labels`in a[o]))throw Error(`missing channel labels property: `+o);if(a[o].labels.length!==a[o].channels)throw Error(`channel and label counts mismatch: `+o);var s=a[o].channels,c=a[o].labels;delete a[o].channels,delete a[o].labels,Object.defineProperty(a[o],`channels`,{value:s}),Object.defineProperty(a[o],`labels`,{value:c})}a.rgb.hsl=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c,l;return a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(s*60,360),s<0&&(s+=360),l=(i+a)/2,c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,c*100,l*100]},a.rgb.hsv=function(e){var t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+1/2};return u===0?i=a=0:(a=u/l,t=d(o),n=d(s),r=d(c),o===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&--i),[i*360,a*100,l*100]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2],i=a.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,o*100,r*100]},a.rgb.cmyk=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i,a,o,s=Math.min(1-t,1-n,1-r);return i=(1-t-s)/(1-s)||0,a=(1-n-s)/(1-s)||0,o=(1-r-s)/(1-s)||0,[i*100,a*100,o*100,s*100]};function l(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}a.rgb.keyword=function(e){var t=r[e];if(t)return t;var i=1/0,a;for(var o in n)if(n.hasOwnProperty(o)){var s=n[o],c=l(e,s);c<i&&(i=c,a=o)}return a},a.keyword.rgb=function(e){return n[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;var i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,o=t*.0193+n*.1192+r*.9505;return[i*100,a*100,o*100]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2],o,s,c;return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,o=116*r-16,s=500*(n-r),c=200*(r-i),[o,s,c]},a.hsl.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a,o,s,c;if(n===0)return c=r*255,[c,c,c];a=r<.5?r*(1+n):r+n-r*n,i=2*r-a,s=[0,0,0];for(var l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,c=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l]=c*255;return s},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01),o,s;return r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a,s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n),[t,o*100,s*100]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},a.hsv.hsl=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o,s=(2-n)*r;return a=(2-n)*i,o=n*i,o/=a<=1?a:2-a,o||=0,s/=2,[t,o*100,s*100]},a.hwb.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a,o,s,c;i>1&&(n/=i,r/=i),a=Math.floor(6*t),o=1-r,s=6*t-a,a&1&&(s=1-s),c=n+s*(o-n);var l,u,d;switch(a){default:case 6:case 0:l=o,u=c,d=n;break;case 1:l=c,u=o,d=n;break;case 2:l=n,u=o,d=c;break;case 3:l=n,u=c,d=o;break;case 4:l=c,u=n,d=o;break;case 5:l=o,u=n,d=c;break}return[l*255,u*255,d*255]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[a*255,o*255,s*255]},a.xyz.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,o=t*.0557+n*-.204+r*1.057;return i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2],i,a,o;return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=116*n-16,a=500*(t-n),o=200*(n-r),[i,a,o]},a.lab.xyz=function(e){var t=e[0],n=e[1],r=e[2],i,a=(t+16)/116,o;i=n/500+a,o=a-r/200;var s=a**3,c=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},a.lab.lch=function(e){var t=e[0],n=e[1],r=e[2],i=Math.atan2(r,n)*360/2/Math.PI,a;return i<0&&(i+=360),a=Math.sqrt(n*n+r*r),[t,a,i]},a.lch.lab=function(e){var t=e[0],n=e[1],r=e[2],i,a,o=r/360*2*Math.PI;return i=n*Math.cos(o),a=n*Math.sin(o),[t,i,a]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return i===2&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var n=(~~(e>50)+1)*.5;return[(t&1)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var n;return[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return`000000`.substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];t[0].length===3&&(n=n.split(``).map(function(e){return e+e}).join(``));var r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},a.rgb.hcg=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s=o<1?a/(1-o):0,c=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o+4;return c/=6,c%=1,[c*360,o*100,s*100]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return r=n<.5?2*t*n:2*t*(1-n),r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];var i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}})),tn=e.t(((e,t)=>{var n=en();function r(){for(var e={},t=Object.keys(n),r=t.length,i=0;i<r;i++)e[t[i]]={distance:-1,parent:null};return e}function i(e){var t=r(),i=[e];for(t[e].distance=0;i.length;)for(var a=i.pop(),o=Object.keys(n[a]),s=o.length,c=0;c<s;c++){var l=o[c],u=t[l];u.distance===-1&&(u.distance=t[a].distance+1,u.parent=a,i.unshift(l))}return t}function a(e,t){return function(n){return t(e(n))}}function o(e,t){for(var r=[t[e].parent,e],i=n[t[e].parent][e],o=t[e].parent;t[o].parent;)r.unshift(t[o].parent),i=a(n[t[o].parent][o],i),o=t[o].parent;return i.conversion=r,i}t.exports=function(e){for(var t=i(e),n={},r=Object.keys(t),a=r.length,s=0;s<a;s++){var c=r[s];t[c].parent!==null&&(n[c]=o(c,t))}return n}})),nn=e.t(((e,t)=>{var n=en(),r=tn(),i={},a=Object.keys(n);function o(e){var t=function(t){return t==null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function s(e){var t=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if(typeof n==`object`)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return`conversion`in e&&(t.conversion=e.conversion),t}a.forEach(function(e){i[e]={},Object.defineProperty(i[e],`channels`,{value:n[e].channels}),Object.defineProperty(i[e],`labels`,{value:n[e].labels});var t=r(e);Object.keys(t).forEach(function(n){var r=t[n];i[e][n]=s(r),i[e][n].raw=o(r)})}),t.exports=i})),rn=e.t(((e,t)=>{let n=nn(),r=(e,t)=>function(){return`\u001B[${e.apply(n,arguments)+t}m`},i=(e,t)=>function(){let r=e.apply(n,arguments);return`\u001B[${38+t};5;${r}m`},a=(e,t)=>function(){let r=e.apply(n,arguments);return`\u001B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function o(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let n of Object.keys(t)){let r=t[n];for(let n of Object.keys(r)){let i=r[n];t[n]={open:`\u001B[${i[0]}m`,close:`\u001B[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1])}Object.defineProperty(t,n,{value:r,enumerable:!1}),Object.defineProperty(t,`codes`,{value:e,enumerable:!1})}let o=e=>e,s=(e,t,n)=>[e,t,n];t.color.close=`\x1B[39m`,t.bgColor.close=`\x1B[49m`,t.color.ansi={ansi:r(o,0)},t.color.ansi256={ansi256:i(o,0)},t.color.ansi16m={rgb:a(s,0)},t.bgColor.ansi={ansi:r(o,10)},t.bgColor.ansi256={ansi256:i(o,10)},t.bgColor.ansi16m={rgb:a(s,10)};for(let e of Object.keys(n)){if(typeof n[e]!=`object`)continue;let o=n[e];e===`ansi16`&&(e=`ansi`),`ansi16`in o&&(t.color.ansi[e]=r(o.ansi16,0),t.bgColor.ansi[e]=r(o.ansi16,10)),`ansi256`in o&&(t.color.ansi256[e]=i(o.ansi256,0),t.bgColor.ansi256[e]=i(o.ansi256,10)),`rgb`in o&&(t.color.ansi16m[e]=a(o.rgb,0),t.bgColor.ansi16m[e]=a(o.rgb,10))}return t}Object.defineProperty(t,`exports`,{enumerable:!0,get:o})})),an=e.t(((e,t)=>{t.exports=(e,t)=>{t||=process.argv;let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1?!0:r<i)}})),on=e.t(((e,t)=>{let n=require(`os`),r=an(),i=process.env,a;r(`no-color`)||r(`no-colors`)||r(`color=false`)?a=!1:(r(`color`)||r(`colors`)||r(`color=true`)||r(`color=always`))&&(a=!0),`FORCE_COLOR`in i&&(a=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function o(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function s(e){if(a===!1)return 0;if(r(`color=16m`)||r(`color=full`)||r(`color=truecolor`))return 3;if(r(`color=256`))return 2;if(e&&!e.isTTY&&a!==!0)return 0;let t=+!!a;if(process.platform===`win32`){let 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 i)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`].some(e=>e in i)||i.CI_NAME===`codeship`?1:t;if(`TEAMCITY_VERSION`in i)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION);if(i.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in i){let e=parseInt((i.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(i.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||`COLORTERM`in i?1:(i.TERM,t)}function c(e){return o(s(e))}t.exports={supportsColor:c,stdout:c(process.stdout),stderr:c(process.stderr)}})),sn=e.t(((e,t)=>{let n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([[`n`,`
`],[`r`,`\r`],[`t`,` `],[`b`,`\b`],[`f`,`\f`],[`v`,`\v`],[`0`,`\0`],[`\\`,`\\`],[`e`,`\x1B`],[`a`,`\x07`]]);function s(e){return e[0]===`u`&&e.length===5||e[0]===`x`&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):o.get(e)||e}function c(e,t){let n=[],r=t.trim().split(/\s*,\s*/g),o;for(let t of r)if(!isNaN(t))n.push(Number(t));else if(o=t.match(i))n.push(o[2].replace(a,(e,t,n)=>t?s(t):n));else throw Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);return n}function l(e){r.lastIndex=0;let t=[],n;for(;(n=r.exec(e))!==null;){let e=n[1];if(n[2]){let r=c(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function u(e,t){let n={};for(let e of t)for(let t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(let e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw Error(`Unknown Chalk style: ${e}`);r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}t.exports=(e,t)=>{let r=[],i=[],a=[];if(t.replace(n,(t,n,o,c,d,f)=>{if(n)a.push(s(n));else if(c){let t=a.join(``);a=[],i.push(r.length===0?t:u(e,r)(t)),r.push({inverse:o,styles:l(c)})}else if(d){if(r.length===0)throw Error(`Found extraneous } in Chalk template literal`);i.push(u(e,r)(a.join(``))),a=[],r.pop()}else a.push(f)}),i.push(a.join(``)),r.length>0){let e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?``:`s`} (\`}\`)`;throw Error(e)}return i.join(``)}})),cn=e.t(((e,t)=>{let n=Gt(),r=rn(),i=on().stdout,a=sn(),o=process.platform===`win32`&&!(process.env.TERM||``).toLowerCase().startsWith(`xterm`),s=[`ansi`,`ansi`,`ansi256`,`ansi16m`],c=new Set([`gray`]),l=Object.create(null);function u(e,t){t||={};let n=i?i.level:0;e.level=t.level===void 0?n:t.level,e.enabled=`enabled`in t?t.enabled:e.level>0}function d(e){if(!this||!(this instanceof d)||this.template){let t={};return u(t,e),t.template=function(){let e=[].slice.call(arguments);return h.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,d.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=d,t.template}u(this,e)}o&&(r.blue.open=`\x1B[94m`);for(let e of Object.keys(r))r[e].closeRe=new RegExp(n(r[e].close),`g`),l[e]={get(){let t=r[e];return p.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};l.visible={get(){return p.call(this,this._styles||[],!0,`visible`)}},r.color.closeRe=new RegExp(n(r.color.close),`g`);for(let e of Object.keys(r.color.ansi))c.has(e)||(l[e]={get(){let t=this.level;return function(){let n={open:r.color[s[t]][e].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return p.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});r.bgColor.closeRe=new RegExp(n(r.bgColor.close),`g`);for(let e of Object.keys(r.bgColor.ansi)){if(c.has(e))continue;let t=`bg`+e[0].toUpperCase()+e.slice(1);l[t]={get(){let t=this.level;return function(){let n={open:r.bgColor[s[t]][e].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return p.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}let f=Object.defineProperties(()=>{},l);function p(e,t,n){let r=function(){return m.apply(r,arguments)};r._styles=e,r._empty=t;let i=this;return Object.defineProperty(r,`level`,{enumerable:!0,get(){return i.level},set(e){i.level=e}}),Object.defineProperty(r,`enabled`,{enumerable:!0,get(){return i.enabled},set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||n===`gray`||n===`grey`,r.__proto__=f,r}function m(){let e=arguments,t=e.length,n=String(arguments[0]);if(t===0)return``;if(t>1)for(let r=1;r<t;r++)n+=` `+e[r];if(!this.enabled||this.level<=0||!n)return this._empty?``:n;let i=r.dim.open;o&&this.hasGrey&&(r.dim.open=``);for(let e of this._styles.slice().reverse())n=e.open+n.replace(e.closeRe,e.open)+e.close,n=n.replace(/\r?\n/g,`${e.close}$&${e.open}`);return r.dim.open=i,n}function h(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(` `);let n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e<t.length;e++)r.push(String(n[e-1]).replace(/[{}\\]/g,`\\$&`)),r.push(String(t.raw[e]));return a(e,r.join(``))}Object.defineProperties(d.prototype,l),t.exports=d(),t.exports.supportsColor=i,t.exports.default=t.exports})),ln=e.t(((e,t)=>{var n=6e4;t.exports=function(e){var t=new Date(e.getTime()),r=t.getTimezoneOffset();t.setSeconds(0,0);var i=t.getTime()%n;return r*n+i}})),un=e.t(((e,t)=>{function n(e){return e instanceof Date}t.exports=n})),dn=e.t(((e,t)=>{var n=ln(),r=un(),i=36e5,a=6e4,o=2,s=/[T ]/,c=/:/,l=/^(\d{2})$/,u=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],d=/^(\d{4})/,f=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],p=/^-(\d{2})$/,m=/^-?(\d{3})$/,h=/^-?(\d{2})-?(\d{2})$/,g=/^-?W(\d{2})$/,v=/^-?W(\d{2})-?(\d{1})$/,y=/^(\d{2}([.,]\d*)?)$/,b=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,x=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,S=/([Z+-].*)$/,C=/^(Z)$/,w=/^([+-])(\d{2})$/,T=/^([+-])(\d{2}):?(\d{2})$/;function E(e,t){if(r(e))return new Date(e.getTime());if(typeof e!=`string`)return new Date(e);var i=(t||{}).additionalDigits;i=i==null?o:Number(i);var s=D(e),c=O(s.date,i),l=c.year,u=c.restDateString,d=k(u,l);if(d){var f=d.getTime(),p=0,m;if(s.time&&(p=A(s.time)),s.timezone)m=j(s.timezone)*a;else{var h=f+p,g=new Date(h);m=n(g);var v=new Date(h);v.setDate(g.getDate()+1);var y=n(v)-n(g);y>0&&(m+=y)}return new Date(f+p+m)}else return new Date(e)}function D(e){var t={},n=e.split(s),r;if(c.test(n[0])?(t.date=null,r=n[0]):(t.date=n[0],r=n[1]),r){var i=S.exec(r);i?(t.time=r.replace(i[1],``),t.timezone=i[1]):t.time=r}return t}function O(e,t){var n=u[t],r=f[t],i=d.exec(e)||r.exec(e);if(i){var a=i[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(i=l.exec(e)||n.exec(e),i){var o=i[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}return{year:null}}function k(e,t){if(t===null)return null;var n,r,i,a;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=p.exec(e),n)return r=new Date(0),i=parseInt(n[1],10)-1,r.setUTCFullYear(t,i),r;if(n=m.exec(e),n){r=new Date(0);var o=parseInt(n[1],10);return r.setUTCFullYear(t,0,o),r}if(n=h.exec(e),n){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return r.setUTCFullYear(t,i,s),r}if(n=g.exec(e),n)return a=parseInt(n[1],10)-1,M(t,a);if(n=v.exec(e),n){a=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return M(t,a,c)}return null}function A(e){var t=y.exec(e),n,r;if(t)return n=parseFloat(t[1].replace(`,`,`.`)),n%24*i;if(t=b.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(`,`,`.`)),n%24*i+r*a;if(t=x.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(`,`,`.`));return n%24*i+r*a+o*1e3}return null}function j(e){var t=C.exec(e),n;return t?0:(t=w.exec(e),t?(n=parseInt(t[2],10)*60,t[1]===`+`?-n:n):(t=T.exec(e),t?(n=parseInt(t[2],10)*60+parseInt(t[3],10),t[1]===`+`?-n:n):0))}function M(e,t,n){t||=0,n||=0;var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,a=t*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}t.exports=E})),fn=e.t(((e,t)=>{var n=dn();function r(e){var t=n(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}t.exports=r})),pn=e.t(((e,t)=>{var n=dn();function r(e){var t=n(e);return t.setHours(0,0,0,0),t}t.exports=r})),mn=e.t(((e,t)=>{var n=pn(),r=6e4,i=864e5;function a(e,t){var a=n(e),o=n(t),s=a.getTime()-a.getTimezoneOffset()*r,c=o.getTime()-o.getTimezoneOffset()*r;return Math.round((s-c)/i)}t.exports=a})),hn=e.t(((e,t)=>{var n=dn(),r=fn(),i=mn();function a(e){var t=n(e);return i(t,r(t))+1}t.exports=a})),gn=e.t(((e,t)=>{var n=dn();function r(e,t){var r=t&&Number(t.weekStartsOn)||0,i=n(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}t.exports=r})),_n=e.t(((e,t)=>{var n=gn();function r(e){return n(e,{weekStartsOn:1})}t.exports=r})),vn=e.t(((e,t)=>{var n=dn(),r=_n();function i(e){var t=n(e),i=t.getFullYear(),a=new Date(0);a.setFullYear(i+1,0,4),a.setHours(0,0,0,0);var o=r(a),s=new Date(0);s.setFullYear(i,0,4),s.setHours(0,0,0,0);var c=r(s);return t.getTime()>=o.getTime()?i+1:t.getTime()>=c.getTime()?i:i-1}t.exports=i})),yn=e.t(((e,t)=>{var n=vn(),r=_n();function i(e){var t=n(e),i=new Date(0);return i.setFullYear(t,0,4),i.setHours(0,0,0,0),r(i)}t.exports=i})),bn=e.t(((e,t)=>{var n=dn(),r=_n(),i=yn(),a=6048e5;function o(e){var t=n(e),o=r(t).getTime()-i(t).getTime();return Math.round(o/a)+1}t.exports=o})),xn=e.t(((e,t)=>{var n=un();function r(e){if(n(e))return!isNaN(e);throw TypeError(toString.call(e)+` is not an instance of Date`)}t.exports=r})),Sn=e.t(((e,t)=>{function n(){var e={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}};function t(t,n,r){r||={};var i=typeof e[t]==`string`?e[t]:n===1?e[t].one:e[t].other.replace(`{{count}}`,n);return r.addSuffix?r.comparison>0?`in `+i:i+` ago`:i}return{localize:t}}t.exports=n})),Cn=e.t(((e,t)=>{var n=`M.MM.Q.D.DD.DDD.DDDD.d.E.W.WW.YY.YYYY.GG.GGGG.H.HH.h.hh.m.mm.s.ss.S.SS.SSS.Z.ZZ.X.x`.split(`.`);function r(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);var i=n.concat(t).sort().reverse();return RegExp(`(\\[[^\\[]*\\])|(\\\\)?(`+i.join(`|`)+`|.)`,`g`)}t.exports=r})),wn=e.t(((e,t)=>{var n=Cn();function r(){var e=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],t=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],r=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],a=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],o=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],s=[`AM`,`PM`],c=[`am`,`pm`],l=[`a.m.`,`p.m.`],u={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return r[e.getDay()]},ddd:function(e){return a[e.getDay()]},dddd:function(e){return o[e.getDay()]},A:function(e){return e.getHours()/12>=1?s[1]:s[0]},a:function(e){return e.getHours()/12>=1?c[1]:c[0]},aa:function(e){return e.getHours()/12>=1?l[1]:l[0]}};return[`M`,`D`,`DDD`,`d`,`Q`,`W`].forEach(function(e){u[e+`o`]=function(t,n){return i(n[e](t))}}),{formatters:u,formattingTokensRegExp:n(u)}}function i(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+`st`;case 2:return e+`nd`;case 3:return e+`rd`}return e+`th`}t.exports=r})),Tn=e.t(((e,t)=>{var n=Sn(),r=wn();t.exports={distanceInWords:n(),format:r()}})),En=e.t(((e,t)=>{var n=hn(),r=bn(),i=vn(),a=dn(),o=xn(),s=Tn();function c(e,t,n){var r=t?String(t):`YYYY-MM-DDTHH:mm:ss.SSSZ`,i=(n||{}).locale,c=s.format.formatters,l=s.format.formattingTokensRegExp;i&&i.format&&i.format.formatters&&(c=i.format.formatters,i.format.formattingTokensRegExp&&(l=i.format.formattingTokensRegExp));var d=a(e);return o(d)?u(r,c,l)(d):`Invalid Date`}var l={M:function(e){return e.getMonth()+1},MM:function(e){return p(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return p(e.getDate(),2)},DDD:function(e){return n(e)},DDDD:function(e){return p(n(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return r(e)},WW:function(e){return p(r(e),2)},YY:function(e){return p(e.getFullYear(),4).substr(2)},YYYY:function(e){return p(e.getFullYear(),4)},GG:function(e){return String(i(e)).substr(2)},GGGG:function(e){return i(e)},H:function(e){return e.getHours()},HH:function(e){return p(e.getHours(),2)},h:function(e){var t=e.getHours();return t===0?12:t>12?t%12:t},hh:function(e){return p(l.h(e),2)},m:function(e){return e.getMinutes()},mm:function(e){return p(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return p(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return p(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return p(e.getMilliseconds(),3)},Z:function(e){return f(e.getTimezoneOffset(),`:`)},ZZ:function(e){return f(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function u(e,t,n){var r=e.match(n),i=r.length,a,o;for(a=0;a<i;a++)o=t[r[a]]||l[r[a]],o?r[a]=o:r[a]=d(r[a]);return function(e){for(var t=``,n=0;n<i;n++)r[n]instanceof Function?t+=r[n](e,l):t+=r[n];return t}}function d(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|]$/g,``):e.replace(/\\/g,``)}function f(e,t){t||=``;var n=e>0?`-`:`+`,r=Math.abs(e),i=Math.floor(r/60),a=r%60;return n+p(i,2)+t+p(a,2)}function p(e,t){for(var n=Math.abs(e).toString();n.length<t;)n=`0`+n;return n}t.exports=c})),Dn=e.t((e=>{let t=cn(),n=En();e.log=(e,r)=>{if(e.dateFormat===!1){console.log(r);return}let i=n(new Date,e.dateFormat);console.log(t.dim(`[${i}]`)+` ${r}`)}})),On=e.t(((e,t)=>{let n=Kt(),r=Qt(),i=Dn(),a=(e,t,r)=>{let a=i.log.bind(void 0,r);if(t.type===`STATE`){let t=e.isPending()?`started`:e.state;a(`${e.title} [${t}]`),e.isSkipped()&&e.output&&a(`${n.arrowRight} ${e.output}`)}else t.type===`DATA`?a(`${n.arrowRight} ${t.data}`):t.type===`TITLE`&&a(`${e.title} [title changed]`)},o=(e,t)=>{for(let n of e)n.subscribe(e=>{if(e.type===`SUBTASKS`){o(n.subtasks,t);return}a(n,e,t)},e=>{console.log(e)})};t.exports=class{constructor(e,t){this._tasks=e,this._options=Object.assign({dateFormat:`HH:mm:ss`},t)}static get nonTTY(){return!0}render(){r.hide(),o(this._tasks,this._options)}end(){r.show()}}})),kn=e.t(((e,t)=>{let n=t.exports,r=process.env.TERM_PROGRAM===`Apple_Terminal`;n.cursorTo=(e,t)=>{if(typeof e!=`number`)throw TypeError("The `x` argument is required");return typeof t==`number`?`\x1B[`+(t+1)+`;`+(e+1)+`H`:`\x1B[`+(e+1)+`G`},n.cursorMove=(e,t)=>{if(typeof e!=`number`)throw TypeError("The `x` argument is required");let n=``;return e<0?n+=`\x1B[`+-e+`D`:e>0&&(n+=`\x1B[`+e+`C`),t<0?n+=`\x1B[`+-t+`A`:t>0&&(n+=`\x1B[`+t+`B`),n},n.cursorUp=e=>`\x1B[`+(typeof e==`number`?e:1)+`A`,n.cursorDown=e=>`\x1B[`+(typeof e==`number`?e:1)+`B`,n.cursorForward=e=>`\x1B[`+(typeof e==`number`?e:1)+`C`,n.cursorBackward=e=>`\x1B[`+(typeof e==`number`?e:1)+`D`,n.cursorLeft=`\x1B[G`,n.cursorSavePosition=`\x1B[`+(r?`7`:`s`),n.cursorRestorePosition=`\x1B[`+(r?`8`:`u`),n.cursorGetPosition=`\x1B[6n`,n.cursorNextLine=`\x1B[E`,n.cursorPrevLine=`\x1B[F`,n.cursorHide=`\x1B[?25l`,n.cursorShow=`\x1B[?25h`,n.eraseLines=e=>{let t=``;for(let r=0;r<e;r++)t+=n.eraseLine+(r<e-1?n.cursorUp():``);return e&&(t+=n.cursorLeft),t},n.eraseEndLine=`\x1B[K`,n.eraseStartLine=`\x1B[1K`,n.eraseLine=`\x1B[2K`,n.eraseDown=`\x1B[J`,n.eraseUp=`\x1B[1J`,n.eraseScreen=`\x1B[2J`,n.scrollUp=`\x1B[S`,n.scrollDown=`\x1B[T`,n.clearScreen=`\x1Bc`,n.clearTerminal=process.platform===`win32`?`${n.eraseScreen}[0f`:`${n.eraseScreen}[3J[H`,n.beep=`\x07`,n.link=(e,t)=>[`\x1B]`,`8`,`;`,`;`,t,`\x07`,e,`\x1B]`,`8`,`;`,`;`,`\x07`].join(``),n.image=(e,t)=>{t||={};let n=`\x1B]1337;File=inline=1`;return t.width&&(n+=`;width=${t.width}`),t.height&&(n+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(n+=`;preserveAspectRatio=0`),n+`:`+e.toString(`base64`)+`\x07`},n.iTerm={},n.iTerm.setCwd=e=>`\x1B]50;CurrentDir=`+(e||process.cwd())+`\x07`})),An=e.t(((e,t)=>{t.exports=()=>{let e=[`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[a-zA-Z\\d]*)*)?\\u0007)`,`(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))`].join(`|`);return new RegExp(e,`g`)}})),jn=e.t(((e,t)=>{let n=An();t.exports=e=>typeof e==`string`?e.replace(n(),``):e})),Mn=e.t(((e,t)=>{t.exports=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)})),Nn=e.t(((e,t)=>{let n=jn(),r=Mn();t.exports=e=>{if(typeof e!=`string`||e.length===0)return 0;e=n(e);let t=0;for(let n=0;n<e.length;n++){let i=e.codePointAt(n);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&n++,t+=r(i)?2:1)}return t}})),Pn=e.t(((e,t)=>{let n=Nn(),r=jn(),i=new Set([`\x1B`,``]),a=new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[90,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49]]),o=e=>`${i.values().next().value}[${e}m`,s=e=>e.split(` `).map(e=>n(e)),c=(e,t,a)=>{let o=Array.from(t),s=!1,c=n(r(e[e.length-1]));for(let t of o.entries()){let r=t[0],l=t[1],u=n(l);if(c+u<=a?e[e.length-1]+=l:(e.push(l),c=0),i.has(l))s=!0;else if(s&&l===`m`){s=!1;continue}s||(c+=u,c===a&&r<o.length-1&&(e.push(``),c=0))}!c&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},l=(e,t,r)=>{let l=r||{};if(e.trim()===``)return l.trim===!1?e:e.trim();let u=``,d=``,f,p=s(e),m=e.split(` `),h=[``];for(let e of Array.from(m).entries()){let r=e[0],i=e[1];h[h.length-1]=l.trim===!1?h[h.length-1]:h[h.length-1].trim();let a=n(h[h.length-1]);if((a||i===``)&&(a===t&&l.wordWrap===!1&&(h.push(``),a=0),h[h.length-1]+=` `,a++),p[r]>t&&l.hard){a&&h.push(``),c(h,i,t);continue}if(a+p[r]>t&&a>0){if(l.wordWrap===!1&&a<t){c(h,i,t);continue}h.push(``)}if(a+p[r]>t&&l.wordWrap===!1){c(h,i,t);continue}h[h.length-1]+=i}u=h.map(e=>l.trim===!1?e:e.trim()).join(`
`);for(let e of Array.from(u).entries()){let t=e[0],n=e[1];if(d+=n,i.has(n)){let e=parseFloat(/\d[^m]*/.exec(u.slice(t,t+4)));f=e===39?null:e}let r=a.get(Number(f));f&&r&&(u[t+1]===`
`?d+=o(r):n===`
`&&(d+=o(f)))}return d};t.exports=(e,t,n)=>String(e).normalize().split(`
`).map(e=>l(e,t,n)).join(`
`)})),Fn=e.t(((e,t)=>{let n=kn(),r=Qt(),i=Pn(),a=e=>{let t=e.columns;return t?process.platform===`win32`?t-1:t:80},o=(e,t)=>{t=Object.assign({showCursor:!1},t);let o=0,s=function(){t.showCursor||r.hide();let s=[].join.call(arguments,` `)+`
`;s=i(s,a(e),{trim:!1,hard:!0,wordWrap:!1}),e.write(n.eraseLines(o)+s),o=s.split(`
`).length};return s.clear=()=>{e.write(n.eraseLines(o)),o=0},s.done=()=>{o=0,t.showCursor||r.show()},s};t.exports=o(process.stdout),t.exports.stderr=o(process.stderr),t.exports.create=o})),In=e.t(((e,t)=>{function n(){var e={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return e.colors.grey=e.colors.gray,Object.keys(e).forEach(function(t){var n=e[t];Object.keys(n).forEach(function(t){var r=n[t];e[t]=n[t]={open:`\x1B[`+r[0]+`m`,close:`\x1B[`+r[1]+`m`}}),Object.defineProperty(e,t,{value:n,enumerable:!1})}),e}Object.defineProperty(t,`exports`,{enumerable:!0,get:n})})),Ln=e.t(((e,t)=>{t.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g}})),Rn=e.t(((e,t)=>{var n=Ln()();t.exports=function(e){return typeof e==`string`?e.replace(n,``):e}})),zn=e.t(((e,t)=>{var n=Ln(),r=new RegExp(n().source);t.exports=r.test.bind(r)})),Bn=e.t(((e,t)=>{var n=process.argv,r=n.indexOf(`--`),i=function(e){e=`--`+e;var t=n.indexOf(e);return t!==-1&&(r===-1?!0:t<r)};t.exports=(function(){return`FORCE_COLOR`in process.env?!0:i(`no-color`)||i(`no-colors`)||i(`color=false`)?!1:i(`color`)||i(`colors`)||i(`color=true`)||i(`color=always`)?!0:process.stdout&&!process.stdout.isTTY?!1:process.platform===`win32`||`COLORTERM`in process.env?!0:process.env.TERM===`dumb`?!1:!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)})()})),Vn=e.t(((e,t)=>{var n=Gt(),r=In(),i=Rn(),a=zn(),o=Bn(),s=Object.defineProperties,c=process.platform===`win32`&&!/^xterm/i.test(process.env.TERM);function l(e){this.enabled=!e||e.enabled===void 0?o:e.enabled}c&&(r.blue.open=`\x1B[94m`);var u=(function(){var e={};return Object.keys(r).forEach(function(t){r[t].closeRe=new RegExp(n(r[t].close),`g`),e[t]={get:function(){return f.call(this,this._styles.concat(t))}}}),e})(),d=s(function(){},u);function f(e){var t=function(){return p.apply(t,arguments)};return t._styles=e,t.enabled=this.enabled,t.__proto__=d,t}function p(){var e=arguments,t=e.length,n=t!==0&&String(arguments[0]);if(t>1)for(var i=1;i<t;i++)n+=` `+e[i];if(!this.enabled||!n)return n;var a=this._styles,o=a.length,s=r.dim.open;for(c&&(a.indexOf(`gray`)!==-1||a.indexOf(`grey`)!==-1)&&(r.dim.open=``);o--;){var l=r[a[o]];n=l.open+n.replace(l.closeRe,l.open)+l.close}return r.dim.open=s,n}function m(){var e={};return Object.keys(u).forEach(function(t){e[t]={get:function(){return f.call(this,[t])}}}),e}s(l.prototype,m()),t.exports=new l,t.exports.styles=r,t.exports.hasColor=a,t.exports.stripColor=i,t.exports.supportsColor=o})),Hn=e.t(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),Un=e.t(((e,t)=>{var n=Hn(),r=Gt(),i=process.platform,a={tick:`✔`,cross:`✖`,star:`★`,square:`▇`,squareSmall:`◻`,squareSmallFilled:`◼`,play:`▶`,circle:`◯`,circleFilled:`◉`,circleDotted:`◌`,circleDouble:`◎`,circleCircle:`ⓞ`,circleCross:`ⓧ`,circlePipe:`Ⓘ`,circleQuestionMark:`?⃝`,bullet:`●`,dot:`․`,line:`─`,ellipsis:`…`,pointer:`❯`,pointerSmall:`›`,info:`ℹ`,warning:`⚠`,hamburger:`☰`,smiley:`㋡`,mustache:`෴`,heart:`♥`,arrowUp:`↑`,arrowDown:`↓`,arrowLeft:`←`,arrowRight:`→`,radioOn:`◉`,radioOff:`◯`,checkboxOn:`☒`,checkboxOff:`☐`,checkboxCircleOn:`ⓧ`,checkboxCircleOff:`Ⓘ`,questionMarkPrefix:`?⃝`,oneHalf:`½`,oneThird:`⅓`,oneQuarter:`¼`,oneFifth:`⅕`,oneSixth:`⅙`,oneSeventh:`⅐`,oneEighth:`⅛`,oneNinth:`⅑`,oneTenth:`⅒`,twoThirds:`⅔`,twoFifths:`⅖`,threeQuarters:`¾`,threeFifths:`⅗`,threeEighths:`⅜`,fourFifths:`⅘`,fiveSixths:`⅚`,fiveEighths:`⅝`,sevenEighths:`⅞`},o={tick:`√`,cross:`×`,star:`*`,square:`█`,squareSmall:`[ ]`,squareSmallFilled:`[█]`,play:`►`,circle:`( )`,circleFilled:`(*)`,circleDotted:`( )`,circleDouble:`( )`,circleCircle:`(○)`,circleCross:`(×)`,circlePipe:`(│)`,circleQuestionMark:`(?)`,bullet:`*`,dot:`.`,line:`─`,ellipsis:`...`,pointer:`>`,pointerSmall:`»`,info:`i`,warning:`‼`,hamburger:`≡`,smiley:`☺`,mustache:`┌─┐`,heart:a.heart,arrowUp:a.arrowUp,arrowDown:a.arrowDown,arrowLeft:a.arrowLeft,arrowRight:a.arrowRight,radioOn:`(*)`,radioOff:`( )`,checkboxOn:`[×]`,checkboxOff:`[ ]`,checkboxCircleOn:`(×)`,checkboxCircleOff:`( )`,questionMarkPrefix:`?`,oneHalf:`1/2`,oneThird:`1/3`,oneQuarter:`1/4`,oneFifth:`1/5`,oneSixth:`1/6`,oneSeventh:`1/7`,oneEighth:`1/8`,oneNinth:`1/9`,oneTenth:`1/10`,twoThirds:`2/3`,twoFifths:`2/5`,threeQuarters:`3/4`,threeFifths:`3/5`,threeEighths:`3/8`,fourFifths:`4/5`,fiveSixths:`5/6`,fiveEighths:`5/8`,sevenEighths:`7/8`};i===`linux`&&(a.questionMarkPrefix=`?`);var s=i===`win32`?o:a;t.exports=n(function(e){return s===a||Object.keys(a).forEach(function(t){a[t]!==s[t]&&(e=e.replace(new RegExp(r(a[t]),`g`),s[t]))}),e},s)})),Wn=e.t(((e,t)=>{t.exports=(e,t,n)=>{let r=typeof n==`object`?Object.assign({indent:` `},n):{indent:n||` `};if(t=t===void 0?1:t,typeof e!=`string`)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!=`number`)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!=`string`)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let i=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(i,r.indent.repeat(t))}})),Gn=e.t(((e,t)=>{var n=[`\x1B`,``],r=39,i={0:0,1:22,2:22,3:23,4:24,7:27,8:28,9:29,30:39,31:39,32:39,33:39,34:39,35:39,36:39,37:39,90:39,40:49,41:49,42:49,43:49,44:49,45:49,46:49,47:49};function a(e){return n[0]+`[`+e+`m`}t.exports=function(e,t,o){o||=e.length;for(var s=!1,c,l=0,u=``,d=0;d<e.length;d++){var f=!1,p=e[d];if(n.indexOf(p)!==-1){s=!0;var m=/[0-9][^m]*/.exec(e.slice(d,d+4));c=m===r?null:m}else s&&p===`m`&&(s=!1,f=!0);if(!s&&!f&&++l,l>t&&l<=o)u+=p;else if(l===t&&c!==void 0&&c!==r)u+=a(c);else if(l>=o){c!==void 0&&(u+=a(i[c]||r));break}}return u}})),Kn=e.t(((e,t)=>{var n=Ln()();t.exports=function(e){return typeof e==`string`?e.replace(n,``):e}})),qn=e.t(((e,t)=>{t.exports=function(e,t){if(e==null)throw TypeError();e=String(e);var n=e.length,r=t?Number(t):0;if(Number.isNaN(r)&&(r=0),!(r<0||r>=n)){var i=e.charCodeAt(r);if(i>=55296&&i<=56319&&n>r+1){var a=e.charCodeAt(r+1);if(a>=56320&&a<=57343)return(i-55296)*1024+a-56320+65536}return i}}})),Jn=e.t(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),Yn=e.t(((e,t)=>{var n=Jn();t.exports=function(e){return n(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)}})),Xn=e.t(((e,t)=>{var n=Kn(),r=qn(),i=Yn();t.exports=function(e){if(typeof e!=`string`||e.length===0)return 0;var t=0;e=n(e);for(var a=0;a<e.length;a++){var o=r(e,a);o<=31||o>=127&&o<=159||(o>=65536&&a++,i(o)?t+=2:t++)}return t}})),Zn=e.t(((e,t)=>{var n=Gn(),r=Xn();t.exports=function(e,t,i){i||={};var a=i.position||`end`,o=`…`;if(typeof e!=`string`)throw TypeError("Expected `input` to be a string, got "+typeof e);if(typeof t!=`number`)throw TypeError("Expected `columns` to be a number, got "+typeof t);if(t<1)return``;if(t===1)return o;var s=r(e);if(s<=t)return e;if(a===`start`)return o+n(e,s-t+1,s);if(a===`middle`){var c=Math.floor(t/2);return n(e,0,c)+o+n(e,s-(t-c)+1,s)}else if(a===`end`)return n(e,0,t-1)+o;throw Error("Expected `options.position` to be either `start`, `middle` or `end`, got "+a)}})),Qn=e.t(((e,t)=>{var n=Vn(),r={info:n.blue(`ℹ`),success:n.green(`✔`),warning:n.yellow(`⚠`),error:n.red(`✖`)},i={info:n.blue(`i`),success:n.green(`√`),warning:n.yellow(`‼`),error:n.red(`×`)};t.exports=process.platform===`win32`?i:r})),$n=e.t(((e,t)=>{var n=process.platform===`win32`?[`-`,`\\`,`|`,`/`]:[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];t.exports=function(){var e=0;return function(){return n[e=++e%n.length]}},t.exports.frames=n})),er=e.t((e=>{let t=Vn(),n=Qn(),r=Un(),i=$n(),a=t.yellow(r.pointer),o=t.yellow(r.arrowDown);e.isDefined=e=>e!=null,e.getSymbol=(e,r)=>(e.spinner||=i(),e.isPending()?r.showSubtasks!==!1&&e.subtasks.length>0?a:t.yellow(e.spinner()):e.isCompleted()?n.success:e.hasFailed()?e.subtasks.length>0?a:n.error:e.isSkipped()?o:` `)})),tr=e.t(((e,t)=>{let n=Fn(),r=Vn(),i=Un(),a=Wn(),o=Zn(),s=Rn(),c=er(),l=(e,t,n)=>{n||=0;let u=[];for(let d of e)if(d.isEnabled()){let e=d.isSkipped()?` ${r.dim(`[skipped]`)}`:``;if(u.push(a(` ${c.getSymbol(d,t)} ${d.title}${e}`,n,` `)),(d.isPending()||d.isSkipped()||d.hasFailed())&&c.isDefined(d.output)){let e=d.output;if(typeof e==`string`&&(e=s(e.trim().split(`
`).filter(Boolean).pop()),e===``&&(e=void 0)),c.isDefined(e)){let t=a(`${i.arrowRight} ${e}`,n,` `);u.push(` ${r.gray(o(t,process.stdout.columns-3))}`)}}(d.isPending()||d.hasFailed()||t.collapse===!1)&&(d.hasFailed()||t.showSubtasks!==!1)&&d.subtasks.length>0&&(u=u.concat(l(d.subtasks,t,n+1)))}return u.join(`
`)},u=(e,t)=>{n(l(e,t))};t.exports=class{constructor(e,t){this._tasks=e,this._options=Object.assign({showSubtasks:!0,collapse:!0,clearOutput:!1},t)}render(){this._id||=setInterval(()=>{u(this._tasks,this._options)},100)}end(e){this._id&&=(clearInterval(this._id),void 0),u(this._tasks,this._options),this._options.clearOutput&&e===void 0?n.clear():n.done()}}})),nr=e.t((e=>{let t={silent:Wt(),verbose:On(),default:tr()},n=e=>process.stdout.isTTY===!0||e.nonTTY===!0,r=e=>typeof e==`string`?t[e]||t.default:typeof e==`function`?e:t.default;e.getRenderer=(e,i)=>{let a=r(e);return n(a)||(a=r(i),(!a||!n(a))&&(a=t.verbose)),a}})),rr=e.t(((e,t)=>{let n={PENDING:0,COMPLETED:1,FAILED:2,SKIPPED:3};n.toString=e=>{switch(e){case n.PENDING:return`pending`;case n.COMPLETED:return`completed`;case n.FAILED:return`failed`;case n.SKIPPED:return`skipped`;default:return`unknown`}},t.exports=n})),ir=e.t(((e,t)=>{var n=t.exports=function(e){return typeof e==`object`&&!!e&&typeof e.pipe==`function`};n.writable=function(e){return n(e)&&e.writable!==!1&&typeof e._write==`function`&&typeof e._writableState==`object`},n.readable=function(e){return n(e)&&e.readable!==!1&&typeof e._read==`function`&&typeof e._readableState==`object`},n.duplex=function(e){return n.writable(e)&&n.readable(e)},n.transform=function(e){return n.duplex(e)&&typeof e._transform==`function`&&typeof e._transformState==`object`}})),ar=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){var t,n=e.Symbol;return typeof n==`function`?n.observable?t=n.observable:(t=n(`observable`),n.observable=t):t=`@@observable`,t}})),or=e.t(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0});var n=r(ar());function r(e){return e&&e.__esModule?e:{default:e}}var i=typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:t===void 0?Function(`return this`)():t;e.default=(0,n.default)(i)})),sr=e.t(((e,t)=>{let n=or().default;t.exports=e=>!!(e&&e[n]&&e===e[n]())})),cr=e.t((e=>{let t=ir(),n=typeof Symbol==`function`&&Symbol.observable||`@@observable`,r=e=>!!(e&&e[n]&&e===e[n]())||sr()(e);e.isListr=e=>!!(e&&e.setRenderer&&e.add&&e.run),e.isObservable=e=>r(e),e.isStream=e=>t(e)&&!r(e)})),lr=e.t(((e,t)=>{t.exports=class extends Error{constructor(e){super(e),this.name=`ListrError`}}})),ur=e.t(((e,t)=>{let n=R(),r=z(),i=Ut().Subject,a=nr(),o=rr(),s=cr(),c=lr(),l=()=>!1;t.exports=class extends i{constructor(e,t,n){if(super(),!t)throw TypeError(`Expected a task`);if(typeof t.title!=`string`)throw TypeError(`Expected property \`title\` to be of type \`string\`, got \`${typeof t.title}\``);if(typeof t.task!=`function`)throw TypeError(`Expected property \`task\` to be of type \`function\`, got \`${typeof t.task}\``);if(t.skip&&typeof t.skip!=`function`)throw TypeError(`Expected property \`skip\` to be of type \`function\`, got \`${typeof t.skip}\``);if(t.enabled&&typeof t.enabled!=`function`)throw TypeError(`Expected property \`enabled\` to be of type \`function\`, got \`${typeof t.enabled}\``);this._listr=e,this._options=n||{},this._subtasks=[],this._enabledFn=t.enabled,this._isEnabled=!0,this.output=void 0,this.title=t.title,this.skip=t.skip||l,this.task=t.task}get subtasks(){return this._subtasks}set state(e){this._state=e,this.next({type:`STATE`})}get state(){return o.toString(this._state)}check(e){if(this._state===void 0&&this._enabledFn){let t=this._enabledFn(e);this._isEnabled!==t&&(this._isEnabled=t,this.next({type:`ENABLED`,data:t}))}}hasSubtasks(){return this._subtasks.length>0}isPending(){return this._state===o.PENDING}isSkipped(){return this._state===o.SKIPPED}isCompleted(){return this._state===o.COMPLETED}isEnabled(){return this._isEnabled}hasFailed(){return this._state===o.FAILED}run(e,t){let i=t=>s.isListr(t)?(t._options=Object.assign(this._options,t._options),t.exitOnError=t._options.exitOnError,t.setRenderer(a.getRenderer(`silent`)),this._subtasks=t.tasks,this.next({type:`SUBTASKS`}),t.run(e)):(s.isStream(t)&&(t=r(t)),s.isObservable(t)&&(t=new Promise((e,n)=>{t.subscribe({next:e=>{this.output=e,this.next({type:`DATA`,data:e})},error:n,complete:e})})),n(t)?t.then(i):t);return Promise.resolve().then(()=>(this.state=o.PENDING,this.skip(e))).then(n=>{if(n){typeof n==`string`&&(this.output=n),this.state=o.SKIPPED;return}return i(this.task(e,t))}).then(()=>{this.isPending()&&(this.state=o.COMPLETED)}).catch(e=>{if(this.state=o.FAILED,e instanceof c){t.report(e);return}if(this.hasSubtasks()||(this.output=e.message),this.next({type:`DATA`,data:e.message}),t.report(e),this._listr.exitOnError!==!1)throw e}).then(()=>{this.complete()})}}})),dr=e.t(((e,t)=>{let n=rr(),r=lr();t.exports=class{constructor(e,t){this._task=e,this._errors=t}set title(e){this._task.title=e,this._task.next({type:`TITLE`,data:e})}set output(e){this._task.output=e,this._task.next({type:`DATA`,data:e})}get title(){return this._task.title}report(e){if(e instanceof r)for(let t of e.errors)this._errors.push(t);else this._errors.push(e)}skip(e){if(e&&typeof e!=`string`)throw TypeError(`Expected \`message\` to be of type \`string\`, got \`${typeof e}\``);e&&(this._task.output=e),this._task.state=n.SKIPPED}run(e){return this._task.run(e,this)}}})),fr=e.t(((e,t)=>{let n=L(),r=ur(),i=dr(),a=nr(),o=lr(),s=(e,t,n)=>e.isEnabled()?new i(e,n).run(t):Promise.resolve();t.exports=class{constructor(e,t){if(e&&!Array.isArray(e)&&typeof e==`object`){if(typeof e.title==`string`&&typeof e.task==`function`)throw TypeError(`Expected an array of tasks or an options object, got a task object`);t=e,e=[]}if(e&&!Array.isArray(e))throw TypeError(`Expected an array of tasks`);this._options=Object.assign({showSubtasks:!0,concurrent:!1,renderer:`default`,nonTTYRenderer:`verbose`},t),this._tasks=[],this.concurrency=1,this._options.concurrent===!0?this.concurrency=1/0:typeof this._options.concurrent==`number`&&(this.concurrency=this._options.concurrent),this._RendererClass=a.getRenderer(this._options.renderer,this._options.nonTTYRenderer),this.exitOnError=this._options.exitOnError,this.add(e||[])}_checkAll(e){for(let t of this._tasks)t.check(e)}get tasks(){return this._tasks}setRenderer(e){this._RendererClass=a.getRenderer(e)}add(e){let t=Array.isArray(e)?e:[e];for(let e of t)this._tasks.push(new r(this,e,this._options));return this}render(){return this._renderer||=new this._RendererClass(this._tasks,this._options),this._renderer.render()}run(e){this.render(),e||=Object.create(null);let t=[];return this._checkAll(e),n(this._tasks,n=>(this._checkAll(e),s(n,e,t)),{concurrency:this.concurrency}).then(()=>{if(t.length>0){let e=new o(`Something went wrong`);throw e.errors=t,e}return this._renderer.end(),e}).catch(t=>{throw t.context=e,this._renderer.end(t),t})}}})),pr=e.a(fr());t.E();var mr=e.a(i.X()),hr=class{constructor(e,t,n){if(!t)throw Error("Option `endpoint` required.");this.endpoint=t,this.client=new i.Y(e,n),this.headers={"Content-Type":`application/json`}}setAuthorization(e){this.headers.Authorization=`Bearer ${e}`}async runQuery(e,t,{endpoint:n=this.endpoint,headers:r={},retries:i=2}={}){return(0,mr.default)(async a=>{let{data:o,errors:s}=await this.client.fetch(n,{body:JSON.stringify({query:e,variables:t}),headers:{...this.headers,...r},method:`post`},{retries:i}).then(e=>e.json()).catch(a);if(!s)return o;if(!Array.isArray(s))return a(s);this.client.log.debug({errors:s},`GraphQL errors`);for(let e of s){if(e.extensions&&e.extensions.code===`RETRYABLE_ERROR_CODE`)throw e;e.name=e.name||`GraphQLError`,e.at=`${e.path.join(`.`)} ${e.locations.map(e=>`${e.line}:${e.column}`).join(`, `)}`}return a(s.length===1?s[0]:s)},{retries:i})}};async function gr(e,t){return e.http=new i.Y(e),e.client=new hr(e,`${e.env.CHROMATIC_INDEX_URL}/graphql`,{headers:{"x-chromatic-session-id":e.sessionId,"x-chromatic-cli-version":e.pkg.version,"apollographql-client-name":`chromatic-cli`,"apollographql-client-version":e.pkg.version},retries:3}),e.configuration=await a.s(t),e.configuration.gitTimeout&&e.configuration.gitTimeout!==20&&e.log.debug(`git timeout was set to ${e.configuration.gitTimeout}, which is different than the default 20 seconds`),e}var _r={detect({env:e}){return!!e.APPVEYOR},configuration({env:e}){let t=e.APPVEYOR_PULL_REQUEST_NUMBER,n=!!t;return{name:`Appveyor`,service:`appveyor`,commit:e.APPVEYOR_REPO_COMMIT,tag:e.APPVEYOR_REPO_TAG_NAME,build:e.APPVEYOR_BUILD_NUMBER,buildUrl:`https://ci.appveyor.com/project/${e.APPVEYOR_PROJECT_SLUG}/build/${e.APPVEYOR_BUILD_VERSION}`,branch:e.APPVEYOR_REPO_BRANCH,job:e.APPVEYOR_JOB_NUMBER,jobUrl:`https://ci.appveyor.com/project/${e.APPVEYOR_PROJECT_SLUG}/build/job/${e.APPVEYOR_JOB_ID}`,pr:t,isPr:n,prBranch:e.APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH,slug:e.APPVEYOR_REPO_NAME,root:e.APPVEYOR_BUILD_FOLDER}}};function vr(e){return(/\d+(?!.*\d+)/.exec(e)||[])[0]}function yr(e){return e?/^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(e)[1]:void 0}var br={detect({env:e}){return!!e.BUILD_BUILDURI},configuration({env:e}){let t=e.SYSTEM_PULLREQUEST_PULLREQUESTID,n=!!t;return{name:`Azure Pipelines`,service:`azurePipelines`,commit:e.BUILD_SOURCEVERSION,build:e.BUILD_BUILDNUMBER,branch:yr(n?e.SYSTEM_PULLREQUEST_TARGETBRANCH:e.BUILD_SOURCEBRANCH),pr:t,isPr:n,prBranch:yr(n?e.SYSTEM_PULLREQUEST_SOURCEBRANCH:void 0),root:e.BUILD_REPOSITORY_LOCALPATH}}},xr={detect({env:e}){return!!e.bamboo_agentId},configuration({env:e}){return{name:`Bamboo`,service:`bamboo`,commit:e.bamboo_planRepository_1_revision,build:e.bamboo_buildNumber,buildUrl:e.bamboo_buildResultsUrl,branch:e.bamboo_planRepository_1_branchName,job:e.bamboo_buildKey,root:e.bamboo_build_working_directory}}},Sr={detect({env:e}){return!!e.BITBUCKET_BUILD_NUMBER},configuration({env:e}){return{name:`Bitbucket Pipelines`,service:`bitbucket`,commit:e.BITBUCKET_COMMIT,tag:e.BITBUCKET_TAG,build:e.BITBUCKET_BUILD_NUMBER,buildUrl:`https://bitbucket.org/${e.BITBUCKET_REPO_FULL_NAME}/addon/pipelines/home#!/results/${e.BITBUCKET_BUILD_NUMBER}`,branch:e.BITBUCKET_BRANCH,slug:e.BITBUCKET_REPO_FULL_NAME,root:e.BITBUCKET_CLONE_DIR}}},Cr={detect({env:e}){return!!e.BITRISE_IO},configuration({env:e}){let t=e.BITRISE_PULL_REQUEST===`false`?void 0:e.BITRISE_PULL_REQUEST,n=!!t;return{name:`Bitrise`,service:`bitrise`,commit:e.BITRISE_GIT_COMMIT,tag:e.BITRISE_GIT_TAG,build:e.BITRISE_BUILD_NUMBER,buildUrl:e.BITRISE_BUILD_URL,branch:n?e.BITRISEIO_GIT_BRANCH_DEST:e.BITRISE_GIT_BRANCH,pr:t,isPr:n,prBranch:n?e.BITRISE_GIT_BRANCH:void 0,slug:e.BITRISE_APP_SLUG}}},wr={detect({env:e}){return!!e.BUDDY_WORKSPACE_ID},configuration({env:e}){let t=vr(e.BUDDY_EXECUTION_PULL_REQUEST_ID),n=!!t;return{name:`Buddy`,service:`buddy`,commit:e.BUDDY_EXECUTION_REVISION,tag:e.BUDDY_EXECUTION_TAG,build:e.BUDDY_EXECUTION_ID,buildUrl:e.BUDDY_EXECUTION_URL,branch:n?e.BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH:e.BUDDY_EXECUTION_BRANCH,pr:t,isPr:n,slug:e.BUDDY_REPO_SLUG}}},Tr=e.a(o.i(),1);function Er(e){let t=typeof e==`string`?`
`:10,n=typeof e==`string`?`\r`:13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}function Dr(e={}){let{env:t=process.env,platform:n=process.platform}=e;return n===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`}const Or=({cwd:e=D.default.cwd(),path:t=D.default.env[Dr()],preferLocal:n=!0,execPath:r=D.default.execPath,addExecPath:i=!0}={})=>{let a=e instanceof URL?(0,O.fileURLToPath)(e):e,o=T.default.resolve(a),s=[];return n&&kr(s,o),i&&Ar(s,r,o),[...s,t].join(T.default.delimiter)},kr=(e,t)=>{let n;for(;n!==t;)e.push(T.default.join(t,`node_modules/.bin`)),n=t,t=T.default.resolve(t,`..`)},Ar=(e,t,n)=>{let r=t instanceof URL?(0,O.fileURLToPath)(t):t;e.push(T.default.resolve(n,r,`..`))},jr=({env:e=D.default.env,...t}={})=>{e={...e};let n=Dr({env:e});return t.path=e[n],e[n]=Or(t),e},Mr=(e,t,n,r)=>{if(n===`length`||n===`prototype`||n===`arguments`||n===`caller`)return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);!Nr(i,a)&&r||Object.defineProperty(e,n,a)},Nr=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Pr=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},Fr=(e,t)=>`/* Wrapped ${e}*/\n${t}`,Ir=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),Lr=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),Rr=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=Fr.bind(null,r,t.toString());Object.defineProperty(i,`name`,Lr),Object.defineProperty(e,`toString`,{...Ir,value:i})};function zr(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(t))Mr(e,t,r,n);return Pr(e,t),Rr(e,t,r),e}const Br=new WeakMap,Vr=(e,t={})=>{if(typeof e!=`function`)throw TypeError(`Expected a function`);let n,r=0,i=e.displayName||e.name||`<anonymous>`,a=function(...o){if(Br.set(a,++r),r===1)n=e.apply(this,o),e=null;else if(t.throw===!0)throw Error(`Function \`${i}\` can only be called once`);return n};return zr(a,e),Br.set(a,r),a};Vr.callCount=e=>{if(!Br.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Br.get(e)};const Hr=()=>{let e=64-Wr+1;return Array.from({length:e},Ur)},Ur=(e,t)=>({name:`SIGRT${t+1}`,number:Wr+t,action:`terminate`,description:`Application-specific signal (realtime)`,standard:`posix`}),Wr=34,Gr=[{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`}],Kr=()=>{let e=Hr();return[...Gr,...e].map(qr)},qr=({name:e,number:t,description:n,action:r,forced:i=!1,standard:a})=>{let{signals:{[e]:o}}=w.constants,s=o!==void 0;return{name:e,number:s?o:t,description:n,supported:s,action:r,forced:i,standard:a}},Jr=()=>{let e=Kr();return Object.fromEntries(e.map(Yr))},Yr=({name:e,number:t,description:n,supported:r,action:i,forced:a,standard:o})=>[e,{name:e,number:t,description:n,supported:r,action:i,forced:a,standard:o}],Xr=Jr(),Zr=()=>{let e=Kr(),t=Array.from({length:65},(t,n)=>Qr(n,e));return Object.assign({},...t)},Qr=(e,t)=>{let n=$r(e,t);if(n===void 0)return{};let{name:r,description:i,supported:a,action:o,forced:s,standard:c}=n;return{[e]:{name:r,number:e,description:i,supported:a,action:o,forced:s,standard:c}}},$r=(e,t)=>{let n=t.find(({name:t})=>w.constants.signals[t]===e);return n===void 0?t.find(t=>t.number===e):n};Zr();const ei=({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:i,exitCode:a,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?`was canceled`:n===void 0?r===void 0?a===void 0?`failed`:`failed with exit code ${a}`:`was killed with ${r} (${i})`:`failed with ${n}`,ti=({stdout:e,stderr:t,all:n,error:r,signal:i,exitCode:a,command:o,escapedCommand:s,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d,cwd:f=D.default.cwd()}}})=>{a=a===null?void 0:a,i=i===null?void 0:i;let p=i===void 0?void 0:Xr[i].description,m=`Command ${ei({timedOut:c,timeout:d,errorCode:r&&r.code,signal:i,signalDescription:p,exitCode:a,isCanceled:l})}: ${o}`,h=Object.prototype.toString.call(r)===`[object Error]`,g=h?`${m}\n${r.message}`:m,v=[g,t,e].filter(Boolean).join(`
`);return h?(r.originalMessage=r.message,r.message=v):r=Error(v),r.shortMessage=g,r.command=o,r.escapedCommand=s,r.exitCode=a,r.signal=i,r.signalDescription=p,r.stdout=e,r.stderr=t,r.cwd=f,n!==void 0&&(r.all=n),`bufferedData`in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!c,r.isCanceled=l,r.killed=u&&!c,r},ni=[`stdin`,`stdout`,`stderr`],ri=e=>ni.some(t=>e[t]!==void 0),ii=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return ni.map(t=>e[t]);if(ri(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${ni.map(e=>`\`${e}\``).join(`, `)}`);if(typeof t==`string`)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let n=Math.max(t.length,ni.length);return Array.from({length:n},(e,n)=>t[n])},ai=(e,t=`SIGTERM`,n={})=>{let r=e(t);return oi(e,t,n,r),r},oi=(e,t,n,r)=>{if(!si(t,n,r))return;let i=li(n),a=setTimeout(()=>{e(`SIGKILL`)},i);a.unref&&a.unref()},si=(e,{forceKillAfterTimeout:t},n)=>ci(e)&&t!==!1&&n,ci=e=>e===w.default.constants.signals.SIGTERM||typeof e==`string`&&e.toUpperCase()===`SIGTERM`,li=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},ui=(e,t)=>{e.kill()&&(t.isCanceled=!0)},di=(e,t,n)=>{e.kill(t),n(Object.assign(Error(`Timed out`),{timedOut:!0,signal:t}))},fi=(e,{timeout:t,killSignal:n=`SIGTERM`},r)=>{if(t===0||t===void 0)return r;let i,a=new Promise((r,a)=>{i=setTimeout(()=>{di(e,n,a)},t)}),o=r.finally(()=>{clearTimeout(i)});return Promise.race([a,o])},pi=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},mi=async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;let i=o.r(()=>{e.kill()});return r.finally(()=>{i()})};function hi(e){return typeof e==`object`&&!!e&&typeof e.pipe==`function`}function gi(e){return hi(e)&&e.writable!==!1&&typeof e._write==`function`&&typeof e._writableState==`object`}const _i=e=>e instanceof S.ChildProcess&&typeof e.then==`function`,vi=(e,t,n)=>{if(typeof n==`string`)return e[t].pipe((0,C.createWriteStream)(n)),e;if(gi(n))return e[t].pipe(n),e;if(!_i(n))throw TypeError(`The second argument must be a string, a stream or an Execa child process.`);if(!gi(n.stdin))throw TypeError(`The target child process's stdin must be available.`);return e[t].pipe(n.stdin),n},yi=e=>{e.stdout!==null&&(e.pipeStdout=vi.bind(void 0,e,`stdout`)),e.stderr!==null&&(e.pipeStderr=vi.bind(void 0,e,`stderr`)),e.all!==void 0&&(e.pipeAll=vi.bind(void 0,e,`all`))},bi=async(e,{init:t,convertChunk:n,getSize:r,truncateChunk:i,addChunk:a,getFinalChunk:o,finalize:s},{maxBuffer:c=1/0}={})=>{if(!wi(e))throw Error(`The first argument must be a Readable, a ReadableStream, or an async iterable.`);let l=t();l.length=0;try{for await(let t of e)Si({convertedChunk:n[Ti(t)](t,l),state:l,getSize:r,truncateChunk:i,addChunk:a,maxBuffer:c});return xi({state:l,convertChunk:n,getSize:r,truncateChunk:i,addChunk:a,getFinalChunk:o,maxBuffer:c}),s(l)}catch(e){throw e.bufferedData=s(l),e}},xi=({state:e,getSize:t,truncateChunk:n,addChunk:r,getFinalChunk:i,maxBuffer:a})=>{let o=i(e);o!==void 0&&Si({convertedChunk:o,state:e,getSize:t,truncateChunk:n,addChunk:r,maxBuffer:a})},Si=({convertedChunk:e,state:t,getSize:n,truncateChunk:r,addChunk:i,maxBuffer:a})=>{let o=n(e),s=t.length+o;if(s<=a){Ci(e,t,i,s);return}let c=r(e,a-t.length);throw c!==void 0&&Ci(c,t,i,a),new Di},Ci=(e,t,n,r)=>{t.contents=n(e,t,r),t.length=r},wi=e=>typeof e==`object`&&!!e&&typeof e[Symbol.asyncIterator]==`function`,Ti=e=>{let t=typeof e;if(t===`string`)return`string`;if(t!==`object`||e===null)return`others`;if(globalThis.Buffer?.isBuffer(e))return`buffer`;let n=Ei.call(e);return n===`[object ArrayBuffer]`?`arrayBuffer`:n===`[object DataView]`?`dataView`:Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&Ei.call(e.buffer)===`[object ArrayBuffer]`?`typedArray`:`others`},{toString:Ei}=Object.prototype;var Di=class extends Error{name=`MaxBufferError`;constructor(){super(`maxBuffer exceeded`)}};const Oi=e=>e,ki=()=>void 0,Ai=({contents:e})=>e,ji=e=>{throw Error(`Streams in object mode are not supported: ${String(e)}`)},Mi=e=>e.length;async function Ni(e,t){return bi(e,qi,t)}const Pi=()=>({contents:new ArrayBuffer(0)}),Fi=e=>Ii.encode(e),Ii=new TextEncoder,Li=e=>new Uint8Array(e),Ri=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),zi=(e,t)=>e.slice(0,t),Bi=(e,{contents:t,length:n},r)=>{let i=Ki()?Hi(t,r):Vi(t,r);return new Uint8Array(i).set(e,n),i},Vi=(e,t)=>{if(t<=e.byteLength)return e;let n=new ArrayBuffer(Ui(t));return new Uint8Array(n).set(new Uint8Array(e),0),n},Hi=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;let n=new ArrayBuffer(t,{maxByteLength:Ui(t)});return new Uint8Array(n).set(new Uint8Array(e),0),n},Ui=e=>Wi**Math.ceil(Math.log(e)/Math.log(Wi)),Wi=2,Gi=({contents:e,length:t})=>Ki()?e:e.slice(0,t),Ki=()=>`resize`in ArrayBuffer.prototype,qi={init:Pi,convertChunk:{string:Fi,buffer:Li,arrayBuffer:Li,dataView:Ri,typedArray:Ri,others:ji},getSize:Mi,truncateChunk:zi,addChunk:Bi,getFinalChunk:ki,finalize:Gi};async function Ji(e,t){if(!(`Buffer`in globalThis))throw Error(`getStreamAsBuffer() is only supported in Node.js`);try{return Yi(await Ni(e,t))}catch(e){throw e.bufferedData!==void 0&&(e.bufferedData=Yi(e.bufferedData)),e}}const Yi=e=>globalThis.Buffer.from(e);async function Xi(e,t){return bi(e,$i,t)}const Zi=()=>({contents:``,textDecoder:new TextDecoder}),Qi=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),$i={init:Zi,convertChunk:{string:Oi,buffer:Qi,arrayBuffer:Qi,dataView:Qi,typedArray:Qi,others:ji},getSize:Mi,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t})=>t+e,getFinalChunk:({textDecoder:e})=>{let t=e.decode();return t===``?void 0:t},finalize:Ai};var ea=e.t(((e,t)=>{let{PassThrough:n}=require(`stream`);t.exports=function(){var e=[],t=new n({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=i,t.on(`unpipe`,a),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`,a.bind(null,n)),n.once(`error`,t.emit.bind(t,`error`)),n.pipe(t,{end:!1}),this)}function i(){return e.length==0}function a(n){e=e.filter(function(e){return e!==n}),!e.length&&t.readable&&t.end()}}})),ta=e.a(ea(),1);const na=e=>{if(e!==void 0)throw TypeError("The `input` and `inputFile` options cannot be both set.")},ra=({input:e,inputFile:t})=>typeof t==`string`?(na(e),(0,C.readFileSync)(t)):e,ia=e=>{let t=ra(e);if(hi(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t},aa=({input:e,inputFile:t})=>typeof t==`string`?(na(e),(0,C.createReadStream)(t)):e,oa=(e,t)=>{let n=aa(t);n!==void 0&&(hi(n)?n.pipe(e.stdin):e.stdin.end(n))},sa=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let n=(0,ta.default)();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},ca=async(e,t)=>{if(!(!e||t===void 0)){await(0,A.setTimeout)(0),e.destroy();try{return await t}catch(e){return e.bufferedData}}},la=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(!(!e||!n))return t===`utf8`||t===`utf-8`?Xi(e,{maxBuffer:r}):t===null||t===`buffer`?Ji(e,{maxBuffer:r}):ua(e,r,t)},ua=async(e,t,n)=>(await Ji(e,{maxBuffer:t})).toString(n),da=async({stdout:e,stderr:t,all:n},{encoding:r,buffer:i,maxBuffer:a},o)=>{let s=la(e,{encoding:r,buffer:i,maxBuffer:a}),c=la(t,{encoding:r,buffer:i,maxBuffer:a}),l=la(n,{encoding:r,buffer:i,maxBuffer:a*2});try{return await Promise.all([o,s,c,l])}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},ca(e,s),ca(t,c),ca(n,l)])}},fa=(async()=>{})().constructor.prototype,pa=[`then`,`catch`,`finally`].map(e=>[e,Reflect.getOwnPropertyDescriptor(fa,e)]),ma=(e,t)=>{for(let[n,r]of pa){let i=typeof t==`function`?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:i})}},ha=e=>new Promise((t,n)=>{e.on(`exit`,(e,n)=>{t({exitCode:e,signal:n})}),e.on(`error`,e=>{n(e)}),e.stdin&&e.stdin.on(`error`,e=>{n(e)})}),ga=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],_a=/^[\w.-]+$/,va=e=>typeof e!=`string`||_a.test(e)?e:`"${e.replaceAll(`"`,`\\"`)}"`,ya=(e,t)=>ga(e,t).join(` `),ba=(e,t)=>ga(e,t).map(e=>va(e)).join(` `),xa=/ +/g,Sa=e=>{let t=typeof e;if(t===`string`)return e;if(t===`number`)return String(e);if(t===`object`&&e!==null&&!(e instanceof S.ChildProcess)&&`stdout`in e){let t=typeof e.stdout;if(t===`string`)return e.stdout;if(k.Buffer.isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`)}throw TypeError(`Unexpected "${t}" in template expression`)},Ca=(e,t,n)=>n||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],wa=({templates:e,expressions:t,tokens:n,index:r,template:i})=>{let a=i??e.raw[r],o=Ca(n,a.split(xa).filter(Boolean),a.startsWith(` `));if(r===t.length)return o;let s=t[r];return Ca(o,Array.isArray(s)?s.map(e=>Sa(e)):[Sa(s)],a.endsWith(` `))},Ta=(e,t)=>{let n=[];for(let[r,i]of e.entries())n=wa({templates:e,expressions:t,tokens:n,index:r,template:i});return n},Ea=(0,x.debuglog)(`execa`).enabled,Da=(e,t)=>String(e).padStart(t,`0`),Oa=()=>{let e=new Date;return`${Da(e.getHours(),2)}:${Da(e.getMinutes(),2)}:${Da(e.getSeconds(),2)}.${Da(e.getMilliseconds(),3)}`},ka=(e,{verbose:t})=>{t&&D.default.stderr.write(`[${Oa()}] ${e}\n`)},Aa=({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:i})=>{let a=t?{...D.default.env,...e}:e;return n?jr({env:a,cwd:r,execPath:i}):a},ja=(e,t,n={})=>{let r=Tr.default._parse(e,t,n);return e=r.command,t=r.args,n=r.options,n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||D.default.cwd(),execPath:D.default.execPath,encoding:`utf8`,reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Ea,...n},n.env=Aa(n),n.stdio=ii(n),D.default.platform===`win32`&&T.default.basename(e,`.exe`)===`cmd`&&t.unshift(`/q`),{file:e,args:t,options:n,parsed:r}},Ma=(e,t,n)=>typeof t!=`string`&&!k.Buffer.isBuffer(t)?n===void 0?void 0:``:e.stripFinalNewline?Er(t):t;function Na(e,t,n){let r=ja(e,t,n),i=ya(e,t),a=ba(e,t);ka(a,r.options),pi(r.options);let o;try{o=S.default.spawn(r.file,r.args,r.options)}catch(e){let t=new S.default.ChildProcess;return ma(t,Promise.reject(ti({error:e,stdout:``,stderr:``,all:``,command:i,escapedCommand:a,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}))),t}let s=ha(o),c=fi(o,r.options,s),l=mi(o,r.options,c),u={isCanceled:!1};o.kill=ai.bind(null,o.kill.bind(o)),o.cancel=ui.bind(null,o,u);let d=Vr(async()=>{let[{error:e,exitCode:t,signal:n,timedOut:s},c,d,f]=await da(o,r.options,l),p=Ma(r.options,c),m=Ma(r.options,d),h=Ma(r.options,f);if(e||t!==0||n!==null){let c=ti({error:e,exitCode:t,signal:n,stdout:p,stderr:m,all:h,command:i,escapedCommand:a,parsed:r,timedOut:s,isCanceled:u.isCanceled||(r.options.signal?r.options.signal.aborted:!1),killed:o.killed});if(!r.options.reject)return c;throw c}return{command:i,escapedCommand:a,exitCode:0,stdout:p,stderr:m,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return oa(o,r.options),o.all=sa(o,r.options),yi(o),ma(o,d),o}function Pa(e,t,n){let r=ja(e,t,n),i=ya(e,t),a=ba(e,t);ka(a,r.options);let o=ia(r.options),s;try{s=S.default.spawnSync(r.file,r.args,{...r.options,input:o})}catch(e){throw ti({error:e,stdout:``,stderr:``,all:``,command:i,escapedCommand:a,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}let c=Ma(r.options,s.stdout,s.error),l=Ma(r.options,s.stderr,s.error);if(s.error||s.status!==0||s.signal!==null){let e=ti({stdout:c,stderr:l,error:s.error,signal:s.signal,exitCode:s.status,command:i,escapedCommand:a,parsed:r,timedOut:s.error&&s.error.code===`ETIMEDOUT`,isCanceled:!1,killed:s.signal!==null});if(!r.options.reject)return e;throw e}return{command:i,escapedCommand:a,exitCode:0,stdout:c,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}const Fa=({input:e,inputFile:t,stdio:n})=>e===void 0&&t===void 0&&n===void 0?{stdin:`inherit`}:{},Ia=(e={})=>({preferLocal:!0,...Fa(e),...e});function La(e){function t(t,...n){if(!Array.isArray(t))return La({...e,...t});let[r,...i]=Ta(t,n);return Na(r,i,Ia(e))}return t.sync=(t,...n)=>{if(!Array.isArray(t))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...i]=Ta(t,n);return Pa(r,i,Ia(e))},t}La();function Ra(e){try{return Pa(`git`,[`rev-parse`,`HEAD`],e).stdout}catch{return}}function za(e){try{let t=Pa(`git`,[`rev-parse`,`--abbrev-ref`,`HEAD`],e).stdout;if(t===`HEAD`){let t=Pa(`git`,[`show`,`-s`,`--pretty=%d`,`HEAD`],e).stdout.replace(/^\(|\)$/g,``).split(`, `).find(e=>e.startsWith(`origin/`));return t?t.match(/^origin\/(?<branch>.+)/)[1]:void 0}return t}catch{return}}const Ba=/^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/,Va=/^\/(.*)\.git$/;function Ha(e){if(e){if(e.match(Ba))return e.replace(Ba,`$1`);try{return new URL(e).pathname.replace(Va,`$1`)}catch{return}}}var Ua={detect({env:e}){return!!e.BUILDKITE},configuration({env:e}){let t=e.BUILDKITE_PULL_REQUEST===`false`?void 0:e.BUILDKITE_PULL_REQUEST,n=!!t;return{name:`Buildkite`,service:`buildkite`,build:e.BUILDKITE_BUILD_NUMBER,buildUrl:e.BUILDKITE_BUILD_URL,commit:e.BUILDKITE_COMMIT,tag:e.BUILDKITE_TAG,branch:n?e.BUILDKITE_PULL_REQUEST_BASE_BRANCH:e.BUILDKITE_BRANCH,slug:Ha(e.BUILDKITE_REPO),pr:t,isPr:n,prBranch:n?e.BUILDKITE_BRANCH:void 0,root:e.BUILDKITE_BUILD_CHECKOUT_PATH}}},Wa={detect({env:e}){return!!e.CIRCLECI},configuration({env:e}){let t=e.CIRCLE_PR_NUMBER||vr(e.CIRCLE_PULL_REQUEST||e.CI_PULL_REQUEST),n=!!t;return{name:`CircleCI`,service:`circleci`,build:e.CIRCLE_BUILD_NUM,buildUrl:e.CIRCLE_BUILD_URL,job:`${e.CIRCLE_BUILD_NUM}.${e.CIRCLE_NODE_INDEX}`,commit:e.CIRCLE_SHA1,tag:e.CIRCLE_TAG,branch:n?void 0:e.CIRCLE_BRANCH,pr:t,isPr:n,prBranch:n?e.CIRCLE_BRANCH:void 0,slug:`${e.CIRCLE_PROJECT_USERNAME}/${e.CIRCLE_PROJECT_REPONAME}`}}};const Ga=`https://cirrus-ci.com`;var Ka={detect({env:e}){return!!e.CIRRUS_CI},configuration({env:e}){let t=e.CIRRUS_PR,n=!!t;return{name:`Cirrus CI`,service:`cirrus`,commit:e.CIRRUS_CHANGE_IN_REPO,tag:e.CIRRUS_TAG,build:e.CIRRUS_BUILD_ID,buildUrl:`${Ga}/build/${e.CIRRUS_BUILD_ID}`,job:e.CIRRUS_TASK_ID,jobUrl:`${Ga}/task/${e.CIRRUS_TASK_ID}`,branch:n?e.CIRRUS_BASE_BRANCH:e.CIRRUS_BRANCH,pr:t,isPr:n,prBranch:n?e.CIRRUS_BRANCH:void 0,slug:e.CIRRUS_REPO_FULL_NAME,root:e.CIRRUS_WORKING_DIR}}},qa={detect({env:e}){return e.CF_PAGES===`1`},configuration({env:e}){return{name:`Cloudflare Pages`,service:`cloudflarePages`,commit:e.CF_PAGES_COMMIT_SHA,branch:e.CF_PAGES_BRANCH,root:e.PWD}}},Ja={detect({env:e}){return!!e.CODEBUILD_BUILD_ID},configuration({env:e,cwd:t}){return{name:`AWS CodeBuild`,service:`codebuild`,commit:Ra({env:e,cwd:t}),build:e.CODEBUILD_BUILD_ID,branch:za({env:e,cwd:t}),buildUrl:`https://console.aws.amazon.com/codebuild/home?region=${e.AWS_REGION}#/builds/${e.CODEBUILD_BUILD_ID}/view/new`,root:e.PWD}}},Ya={detect({env:e}){return!!e.CF_BUILD_ID},configuration({env:e}){let t=e.CF_PULL_REQUEST_NUMBER,n=!!t;return{name:`Codefresh`,service:`codefresh`,commit:e.CF_REVISION,build:e.CF_BUILD_ID,buildUrl:e.CF_BUILD_URL,branch:n?e.CF_PULL_REQUEST_TARGET:e.CF_BRANCH,pr:t,isPr:n,prBranch:n?e.CF_BRANCH:void 0,slug:`${e.CF_REPO_OWNER}/${e.CF_REPO_NAME}`,root:e.CF_VOLUME_PATH}}},Xa={detect({env:e}){return e.CI_NAME&&e.CI_NAME===`codeship`},configuration({env:e}){return{name:`Codeship`,service:`codeship`,build:e.CI_BUILD_NUMBER,buildUrl:e.CI_BUILD_URL,commit:e.CI_COMMIT_ID,branch:e.CI_BRANCH,slug:e.CI_REPO_NAME}}},Za={detect({env:e}){return!!e.DRONE},configuration({env:e}){let t=e.DRONE_BUILD_EVENT===`pull_request`;return{name:`Drone`,service:`drone`,commit:e.DRONE_COMMIT_SHA,tag:e.DRONE_TAG,build:e.DRONE_BUILD_NUMBER,buildUrl:e.DRONE_BUILD_LINK,branch:t?e.DRONE_TARGET_BRANCH:e.DRONE_BRANCH,job:e.DRONE_JOB_NUMBER,jobUrl:e.DRONE_BUILD_LINK,pr:e.DRONE_PULL_REQUEST,isPr:t,prBranch:t?e.DRONE_SOURCE_BRANCH:void 0,slug:`${e.DRONE_REPO_OWNER}/${e.DRONE_REPO_NAME}`,root:e.DRONE_WORKSPACE}}},Qa={configuration(e){return{commit:Ra(e),branch:za(e)}}};const $a=({env:e})=>{try{let t=e.GITHUB_EVENT_PATH?JSON.parse((0,C.readFileSync)(e.GITHUB_EVENT_PATH,`utf-8`)):void 0;if(t&&t.pull_request)return{branch:t.pull_request.base?yr(t.pull_request.base.ref):void 0,pr:t.pull_request.number}}catch{}return{pr:void 0,branch:void 0}},eo=e=>{let t=e.GITHUB_EVENT_PATH?JSON.parse((0,C.readFileSync)(e.GITHUB_EVENT_PATH,`utf-8`)):void 0;return t&&t.pull_request?t.pull_request.number:void 0};var to={detect({env:e}){return!!e.GITHUB_ACTIONS},configuration({env:e,cwd:t}){let n=e.GITHUB_EVENT_NAME===`pull_request`||e.GITHUB_EVENT_NAME===`pull_request_target`,r=yr(e.GITHUB_EVENT_NAME===`pull_request_target`?`refs/pull/${eo(e)}/merge`:e.GITHUB_REF);return{name:`GitHub Actions`,service:`github`,commit:e.GITHUB_SHA,build:e.GITHUB_RUN_ID,buildUrl:`${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`,isPr:n,branch:r,prBranch:n?r:void 0,slug:e.GITHUB_REPOSITORY,root:e.GITHUB_WORKSPACE,...n?$a({env:e,cwd:t}):void 0}}},no={detect({env:e}){return!!e.GITLAB_CI},configuration({env:e}){let t=e.CI_MERGE_REQUEST_ID,n=!!t;return{name:`GitLab CI/CD`,service:`gitlab`,commit:e.CI_COMMIT_SHA,tag:e.CI_COMMIT_TAG,build:e.CI_PIPELINE_ID,buildUrl:`${e.CI_PROJECT_URL}/pipelines/${e.CI_PIPELINE_ID}`,job:e.CI_JOB_ID,jobUrl:`${e.CI_PROJECT_URL}/-/jobs/${e.CI_JOB_ID}`,branch:n?e.CI_MERGE_REQUEST_TARGET_BRANCH_NAME:e.CI_COMMIT_REF_NAME,pr:t,isPr:n,prBranch:e.CI_MERGE_REQUEST_SOURCE_BRANCH_NAME,slug:e.CI_PROJECT_PATH,root:e.CI_PROJECT_DIR}}},ro={detect({env:e}){return!!e.JENKINS_URL},configuration({env:e,cwd:t}){let n=e.ghprbPullId||e.gitlabMergeRequestId||e.CHANGE_ID,r=!!n,i=e.GIT_LOCAL_BRANCH||e.GIT_BRANCH||e.gitlabBranch||e.BRANCH_NAME;return{name:`Jenkins`,service:`jenkins`,commit:e.ghprbActualCommit||e.GIT_COMMIT||Ra({env:e,cwd:t}),branch:r?e.ghprbTargetBranch||e.gitlabTargetBranch:i,build:e.BUILD_NUMBER,buildUrl:e.BUILD_URL,root:e.WORKSPACE,pr:n,isPr:r,prBranch:r?e.ghprbSourceBranch||e.gitlabSourceBranch||i:void 0}}},io={detect({env:e}){return e.NETLIFY===`true`},configuration({env:e}){let t=e.PULL_REQUEST===`true`;return{name:`Netlify`,service:`netlify`,commit:e.COMMIT_REF,build:e.DEPLOY_ID,buildUrl:`https://app.netlify.com/sites/${e.SITE_NAME}/deploys/${e.DEPLOY_ID}`,branch:t?void 0:e.HEAD,pr:e.REVIEW_ID,isPr:t,prBranch:t?e.HEAD:void 0,slug:e.REPOSITORY_URL.match(/[^/:]+\/[^/]+?$/)[0],root:e.PWD}}},ao={detect({env:e}){return!!e.DISTELLI_APPNAME},configuration({env:e}){return{name:`Puppet`,service:`puppet`,build:e.DISTELLI_BUILDNUM,buildUrl:e.DISTELLI_RELEASE,commit:e.DISTELLI_RELREVISION,branch:e.DISTELLI_RELBRANCH,root:e.DISTELLI_INSTALLHOME}}},oo={detect({env:e}){return!!e.SAILCI},configuration({env:e}){let t=e.SAIL_PULL_REQUEST_NUMBER,n=!!t;return{name:`Sail CI`,service:`sail`,commit:e.SAIL_COMMIT_SHA,branch:n?void 0:e.SAIL_COMMIT_BRANCH,pr:t,isPr:n,slug:`${e.SAIL_REPO_OWNER}/${e.SAIL_REPO_NAME}`,root:e.SAIL_CLONE_DIR}}},so={detect({env:e}){return!!e.SCREWDRIVER},configuration({env:e}){let t=e.SD_PULL_REQUEST,n=!!t;return{name:`Screwdriver.cd`,service:`screwdriver`,branch:n?e.PR_BASE_BRANCH_NAME:e.GIT_BRANCH,prBranch:n?e.PR_BRANCH_NAME:void 0,commit:e.SD_BUILD_SHA,build:e.SD_BUILD_ID,buildUrl:e.SD_UI_BUILD_URL,job:e.SD_JOB_ID,pr:t,isPr:n,slug:e.SD_PIPELINE_NAME,root:e.SD_ROOT_DIR}}},co={detect({env:e}){return!!e.SCRUTINIZER},configuration({env:e}){let t=e.SCRUTINIZER_PR_NUMBER,n=!!t;return{name:`Scrutinizer`,service:`scrutinizer`,commit:e.SCRUTINIZER_SHA1,build:e.SCRUTINIZER_INSPECTION_UUID,branch:e.SCRUTINIZER_BRANCH,pr:t,isPr:n,prBranch:e.SCRUTINIZER_PR_SOURCE_BRANCH}}},lo={detect({env:e}){return!!e.SEMAPHORE},configuration({env:e,cwd:t}){let n=e.SEMAPHORE_GIT_PR_NUMBER||e.PULL_REQUEST_NUMBER,r=!!n;return{name:`Semaphore`,service:`semaphore`,commit:e.SEMAPHORE_GIT_SHA||Ra({env:e,cwd:t}),tag:e.SEMAPHORE_GIT_TAG_NAME,build:e.SEMAPHORE_JOB_ID||e.SEMAPHORE_BUILD_NUMBER,branch:e.SEMAPHORE_GIT_BRANCH||(r?void 0:e.BRANCH_NAME),pr:n,isPr:r,prBranch:e.SEMAPHORE_GIT_PR_BRANCH||(r?e.BRANCH_NAME:void 0),slug:e.SEMAPHORE_GIT_REPO_SLUG||e.SEMAPHORE_REPO_SLUG,root:e.SEMAPHORE_GIT_DIR||e.SEMAPHORE_PROJECT_DIR}}},uo={detect({env:e}){return!!e.SHIPPABLE},configuration({env:e}){let t=e.IS_PULL_REQUEST===`true`?e.PULL_REQUEST:void 0,n=!!t;return{name:`Shippable`,service:`shippable`,commit:e.COMMIT,tag:e.GIT_TAG_NAME,build:e.BUILD_NUMBER,buildUrl:e.BUILD_URL,branch:n?e.BASE_BRANCH:e.BRANCH,job:e.JOB_NUMBER,pr:t,isPr:n,prBranch:n?e.HEAD_BRANCH:void 0,slug:e.SHIPPABLE_REPO_SLUG,root:e.SHIPPABLE_BUILD_DIR}}},fo=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.of=e.PropertiesFile=void 0;var t=n(require(`fs`));function n(e){return e&&e.__esModule?e:{default:e}}var r=class{constructor(...e){this.objs={},e.length&&this.of.apply(this,e)}makeKeys(e){if(e&&e.indexOf(`#`)!==0){let t=[`=`,`:`].map(t=>e.indexOf(t)).filter(e=>e>-1),n=Math.min(...t),r=e.substring(0,n).trim(),i=e.substring(n+1).trim();if(this.objs.hasOwnProperty(r))if(Array.isArray(this.objs[r]))this.objs[r].push(i);else{let e=this.objs[r];this.objs[r]=[e,i]}else{let e=i.replace(/"/g,`\\"`).replace(/\\:/g,`:`).replace(/\\=/g,`=`);this.objs[r]=unescape(JSON.parse(`"`+e+`"`))}}}addFile(e){let n=t.default.readFileSync(e,`utf-8`).split(/\r?\n/),r=this;for(let e=0;e<n.length;e++){let t=n[e];for(;t.substring(t.length-1)===`\\`;){t=t.slice(0,-1);let r=n[e+1];t+=r.trim(),e++}r.makeKeys(t)}}of(...e){for(let t=0;t<e.length;t++)this.addFile(e[t])}get(e,t){if(this.objs.hasOwnProperty(e))if(Array.isArray(this.objs[e])){let t=[];for(let n=0;n<this.objs[e].length;n++)t[n]=this.interpolate(this.objs[e][n]);return t}else return this.objs[e]===void 0?``:this.interpolate(this.objs[e]);return t}getLast(e,t){if(this.objs.hasOwnProperty(e))if(Array.isArray(this.objs[e])){var n=this.objs[e].length;return this.interpolate(this.objs[e][n-1])}else return this.objs[e]===void 0?``:this.interpolate(this.objs[e]);return t}getFirst(e,t){return this.objs.hasOwnProperty(e)?Array.isArray(this.objs[e])?this.interpolate(this.objs[e][0]):this.objs[e]===void 0?``:this.interpolate(this.objs[e]):t}getInt(e,t){let n=this.getLast(e);return n?parseInt(n,10):t}getFloat(e,t){let n=this.getLast(e);return n?parseFloat(n):t}getBoolean(e,t){function n(e){return!/^(false|0)$/i.test(e)&&!!e}let r=this.getLast(e);return r?n(r):t||!1}set(e,t){this.objs[e]=t}interpolate(e){let t=this;return e.replace(/\\\\/g,`\\`).replace(/\$\{([A-Za-z0-9\.\-\_]*)\}/g,function(e){return t.getLast(e.substring(2,e.length-1))})}getKeys(){let e=[];for(let t in this.objs)e.push(t);return e}getMatchingKeys(e){let t=[];for(let n in this.objs)n.search(e)!==-1&&t.push(n);return t}reset(){this.objs={}}};e.PropertiesFile=r,e.of=function(...e){let t=new r;return t.of.apply(t,e),t}})),po=e.a(fo(),1);const mo={root:`teamcity.build.workingDir`,branch:`teamcity.build.branch`},ho=e=>{try{return po.default.of(e)}catch{return}},go=({env:e,cwd:t})=>{let n=e.TEAMCITY_BUILD_PROPERTIES_FILE?ho(e.TEAMCITY_BUILD_PROPERTIES_FILE):void 0,r=n?n.get(`teamcity.configuration.properties.file`):void 0,i=r&&ho(r);return Object.fromEntries(Object.keys(mo).map(r=>[r,(n?n.get(mo[r]):void 0)||(i?i.get(mo[r]):void 0)||(r===`branch`?za({env:e,cwd:t}):void 0)]))},_o={appveyor:_r,azurePipelines:br,bamboo:xr,bitbucket:Sr,bitrise:Cr,buddy:wr,buildkite:Ua,circleci:Wa,cirrus:Ka,cloudflarePages:qa,codebuild:Ja,codefresh:Ya,codeship:Xa,drone:Za,github:to,gitlab:no,jenkins:ro,netlify:io,puppet:ao,sail:oo,screwdriver:so,scrutinizer:co,semaphore:lo,shippable:uo,teamcity:{detect({env:e}){return!!e.TEAMCITY_VERSION},configuration({env:e,cwd:t}){return{name:`TeamCity`,service:`teamcity`,commit:e.BUILD_VCS_NUMBER,build:e.BUILD_NUMBER,slug:e.TEAMCITY_BUILDCONF_NAME,...go({env:e,cwd:t})}}},travis:{detect({env:e}){return!!e.TRAVIS},configuration({env:e}){let t=e.TRAVIS_PULL_REQUEST===`false`?void 0:e.TRAVIS_PULL_REQUEST,n=!!t;return{name:`Travis CI`,service:`travis`,commit:e.TRAVIS_COMMIT,tag:e.TRAVIS_TAG,build:e.TRAVIS_BUILD_NUMBER,buildUrl:e.TRAVIS_BUILD_WEB_URL,branch:e.TRAVIS_BRANCH,job:e.TRAVIS_JOB_NUMBER,jobUrl:e.TRAVIS_JOB_WEB_URL,pr:t,isPr:n,prBranch:e.TRAVIS_PULL_REQUEST_BRANCH,slug:e.TRAVIS_REPO_SLUG,root:e.TRAVIS_BUILD_DIR}}},vela:{detect({env:e}){return!!e.VELA},configuration({env:e}){let t=e.VELA_BUILD_EVENT===`pull_request`;return{name:`Vela`,service:`vela`,branch:t?e.VELA_PULL_REQUEST_TARGET:e.VELA_BUILD_BRANCH,commit:e.VELA_BUILD_COMMIT,tag:e.VELA_BUILD_TAG,build:e.VELA_BUILD_NUMBER,buildUrl:e.VELA_BUILD_LINK,job:void 0,jobUrl:void 0,isPr:t,pr:e.VELA_BUILD_PULL_REQUEST,prBranch:e.VELA_PULL_REQUEST_SOURCE,slug:e.VELA_REPO_FULL_NAME,root:e.VELA_BUILD_WORKSPACE}}},vercel:{detect({env:e}){return!!e.VERCEL||!!e.NOW_GITHUB_DEPLOYMENT},configuration({env:e}){let t=`Vercel`,n=`vercel`;return e.VERCEL?{name:t,service:n,commit:e.VERCEL_GIT_COMMIT_SHA,branch:e.VERCEL_GIT_COMMIT_REF,slug:`${e.VERCEL_GIT_REPO_OWNER}/${e.VERCEL_GIT_REPO_SLUG}`}:{name:t,service:n,commit:e.NOW_GITHUB_COMMIT_SHA,branch:e.NOW_GITHUB_COMMIT_REF,slug:`${e.NOW_GITHUB_ORG}/${e.NOW_GITHUB_REPO}`}}},wercker:{detect({env:e}){return!!e.WERCKER_MAIN_PIPELINE_STARTED},configuration({env:e}){return{name:`Wercker`,service:`wercker`,commit:e.WERCKER_GIT_COMMIT,build:e.WERCKER_MAIN_PIPELINE_STARTED,buildUrl:e.WERCKER_RUN_URL,branch:e.WERCKER_GIT_BRANCH,slug:`${e.WERCKER_GIT_OWNER}/${e.WERCKER_GIT_REPOSITORY}`,root:e.WERCKER_ROOT}}},woodpecker:{detect({env:e}){return e.CI&&e.CI===`woodpecker`},configuration({env:e}){let t=e.CI_PIPELINE_EVENT===`pull_request`;return{name:`Woodpecker CI`,service:`woodpecker`,commit:e.CI_COMMIT_SHA,tag:e.CI_COMMIT_TAG,build:e.CI_PIPELINE_NUMBER,buildUrl:e.CI_PIPELINE_URL,branch:t?e.CI_COMMIT_TARGET_BRANCH:e.CI_COMMIT_BRANCH,job:e.CI_STEP_NUMBER,jobUrl:e.CI_STEP_URL,pr:e.CI_COMMIT_PULL_REQUEST,isPr:t,prBranch:t?e.CI_COMMIT_SOURCE_BRANCH:void 0,slug:`${e.CI_REPO_OWNER}/${e.CI_REPO_NAME}`,root:e.CI_WORKSPACE}}},jetbrainsSpace:{detect({env:e}){return!!e.JB_SPACE_EXECUTION_NUMBER},configuration({env:e}){let t=e.JB_SPACE_PROJECT_KEY,n=e.JB_SPACE_GIT_REPOSITORY_NAME;return{name:`JetBrains Space`,service:`jetbrainsSpace`,commit:e.JB_SPACE_GIT_REVISION,build:e.JB_SPACE_EXECUTION_NUMBER,branch:yr(e.JB_SPACE_GIT_BRANCH),slug:t&&n?`${t.toLowerCase()}/${n}`:void 0}}}};var vo=({env:e=process.env,cwd:t=process.cwd()}={})=>{for(let n of Object.keys(_o))if(_o[n].detect({env:e,cwd:t}))return{isCi:!0,..._o[n].configuration({env:e,cwd:t})};return{isCi:!!e.CI,...Qa.configuration({env:e,cwd:t})}},G=e.a(n.l()),K=n.c(),yo=()=>(0,K.dedent)(G.default`
${n.i} {bold Cross-fork PR builds unsupported in custom GitHub workflows}
GitHub actions triggered by a fork do not report their repository owner, so cannot be properly linked to a pull request in Chromatic.
Consider using the official Chromatic GitHub Action, or set CHROMATIC_BRANCH to include the forked repository owner (e.g. owner:branch).
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/github-actions`)}
`),bo=(e=!1)=>e?(0,K.dedent)(G.default`
${n.i} {bold Found only one commit}
This typically means you have ran into one of the following scenarios:
- You've checked out a shallow copy of the Git repository, which {bold actions/checkout} does by default.
In order for Chromatic to correctly determine baseline commits, we need access to the full Git history graph.
With {bold actions/checkout}, you can enable this by setting 'fetch-depth: 0'.
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/github-actions`)}
- You've only made a single commit so far.
Please make at least one additional commit in order for Chromatic to be able to detect what's changed.
`):(0,K.dedent)(G.default`
${n.i} {bold Found only one commit}
This typically means you have ran into one of the following scenarios:
- You've checked out a shallow copy of the Git repository, which some CI systems do by default.
In order for Chromatic to correctly determine baseline commits, we need access to the full Git history graph.
Refer to your CI provider's documentation for details.
- You've only made a single commit so far.
Please make at least one additional commit in order for Chromatic to be able to detect what's changed.
`),xo=({GITHUB_EVENT_NAME:e})=>(0,K.dedent)(G.default`
${n.i} {bold Missing GitHub environment variable}
\`GITHUB_EVENT_NAME\` environment variable is set to '${e}', but \`GITHUB_SHA\` and \`GITHUB_HEAD_REF\` are not both set.
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/github-actions`)}
`),So=({TRAVIS_EVENT_TYPE:e})=>(0,K.dedent)(G.default`
${n.i} {bold Missing Travis environment variable}
\`TRAVIS_EVENT_TYPE\` environment variable set to '${e}', but
\`TRAVIS_PULL_REQUEST_SHA\` and \`TRAVIS_PULL_REQUEST_BRANCH\` are not both set.
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/travisci/`)}
`),Co=()=>(0,K.dedent)(G.default`
${n.a} {bold Use our GitHub Action}
It appears you are using a GitHub Actions workflow, but are not using the official GitHub Action for Chromatic.
Find it at ${i.J(`https://github.com/marketplace/actions/publish-to-chromatic`)}
`),wo=({ref:e,sha:t,env:r})=>e?(0,K.dedent)(G.default`
${n.s} {bold Branch '${e}' does not exist}
We tried to retrieve its latest commit but couldn't find it in your Git history.
Falling back to ${t.slice(0,7)}, but commit details (date, author) will be missing.
We will not be able to retain baselines from builds created by the Visual Tests addon.
Pull request status updates likely won't work properly.
Please use our official GitHub Action or forward the pull_request event info to us.
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/github-actions`)}
`):r?(0,K.dedent)(G.default`
${n.s} {bold Commit ${t.slice(0,7)} does not exist}
We tried to retrieve the commit details but couldn't find it in your Git history.
Check your {bold ${r}} environment variable.
Using it anyway, but commit details (date, author) will be missing.
We will not be able to retain baselines from builds created by the Visual Tests addon.
`):(0,K.dedent)(G.default`
${n.s} {bold Commit ${t.slice(0,7)} does not exist}
We tried to retrieve the commit details but couldn't find it in your Git history.
Using it anyway, but commit details (date, author) will be missing.
We will not be able to retain baselines from builds created by the Visual Tests addon.
`),To=()=>(0,K.dedent)(G.default`
${n.s} {bold Running on a Travis PR build from an internal branch}
It is recommended to run Chromatic on the push builds from Travis where possible.
We advise turning on push builds and disabling Chromatic for internal PR builds.
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/travisci/`)}
`);const Eo=/^origin\//,Do=e=>e&&e!==`HEAD`?e:!1;function Oo(e){try{return vo()}catch(t){return e.debug(`Error while parsing CI environment variables`,t),{}}}async function ko(e,{branchName:t,patchBaseRef:n,ci:r}={}){let{log:a}=e,o=await i.y(e),s=Do(t)||Do(n)||await i.m(e),c,{TRAVIS_COMMIT:l,TRAVIS_EVENT_TYPE:u,TRAVIS_PULL_REQUEST_SLUG:d,TRAVIS_REPO_SLUG:f,TRAVIS_PULL_REQUEST_SHA:p,TRAVIS_PULL_REQUEST_BRANCH:m,GITHUB_ACTIONS:h,GITHUB_EVENT_NAME:g,GITHUB_REPOSITORY:v,GITHUB_BASE_REF:y,GITHUB_HEAD_REF:b,GITHUB_SHA:x,CHROMATIC_SHA:S,CHROMATIC_BRANCH:C,CHROMATIC_PULL_REQUEST_SHA:w,CHROMATIC_SLUG:T}=process.env,{isCi:E,service:D,prBranch:O,branch:k,commit:A,slug:j}=Oo(a),M=S&&C,N=u===`pull_request`,P=h===`true`,F=g===`pull_request`;if(!await i.M(e)){let e=bo(P);if(E)throw Error(e);a.warn(e)}if(M)o=await i.y(e,S).catch(e=>(a.warn(wo({sha:S,env:`CHROMATIC_SHA`})),a.debug(e),{commit:S,committedAt:Date.now()})),w&&(o.mergeCommit=w),s=C,c=T;else if(N){if(d===f&&a.warn(To()),!p||!m)throw Error(So({TRAVIS_EVENT_TYPE:u}));o=await i.y(e,p).catch(e=>(a.warn(wo({sha:p,env:`TRAVIS_PULL_REQUEST_SHA`})),a.debug(e),{commit:p,committedAt:Date.now()})),l&&(o.mergeCommit=l),s=m,c=d}else if(F){if(a.info(Co()),!b||!x)throw Error(xo({GITHUB_EVENT_NAME:g}));if(y===b)throw Error(yo());o=await i.y(e,b).catch(e=>(a.warn(wo({ref:b,sha:x,env:`GITHUB_HEAD_REF`})),a.debug(e),{commit:x,committedAt:Date.now()})),o.mergeCommit=x,s=b,c=v}let I=process.env.CHROMATIC_ACTION?`chromaui/action`:D;c||=j,Do(s)||(o=await i.y(e,A).catch(e=>(a.warn(wo({sha:A})),a.debug(e),{commit:A,committedAt:Date.now()})),s=Do(O)||Do(k)||Do(process.env.HEAD)||Do(process.env.GERRIT_BRANCH)||Do(process.env.GITHUB_REF)||Do(process.env.CI_BRANCH)||`HEAD`);let L=E||!!r||!!process.env.CI||!!process.env.REPOSITORY_URL||!!process.env.GITHUB_REPOSITORY;return!t&&!M&&Eo.test(s)&&(a.warn(`Ignoring 'origin/' prefix in branch name.`),s=s.replace(Eo,``)),a.debug(`git info: ${JSON.stringify({commit:o,branch:s,slug:c,fromCI:L,ciService:I})}`),{...o,branch:s,slug:c,fromCI:L,ciService:I}}var Ao=e.t(((e,t)=>{t.exports=function(e){try{return e()}catch{}}})),jo=e.t(((e,t)=>{t.exports=l,l.sync=u;var n=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,r=require(`path`),i=n?`;`:`:`,a=o.a();function s(e){var t=Error(`not found: `+e);return t.code=`ENOENT`,t}function c(e,t){var r=t.colon||i,a=t.path||process.env.PATH||``,o=[``];a=a.split(r);var s=``;return n&&(a.unshift(process.cwd()),s=t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`,o=s.split(r),e.indexOf(`.`)!==-1&&o[0]!==``&&o.unshift(``)),(e.match(/\//)||n&&e.match(/\\/))&&(a=[``]),{env:a,ext:o,extExe:s}}function l(e,t,n){typeof t==`function`&&(n=t,t={});var i=c(e,t),o=i.env,l=i.ext,u=i.extExe,d=[];(function i(c,f){if(c===f)return t.all&&d.length?n(null,d):n(s(e));var p=o[c];p.charAt(0)===`"`&&p.slice(-1)===`"`&&(p=p.slice(1,-1));var m=r.join(p,e);!p&&/^\.[\\\/]/.test(e)&&(m=e.slice(0,2)+m),(function e(r,o){if(r===o)return i(c+1,f);var s=l[r];a(m+s,{pathExt:u},function(i,a){if(!i&&a)if(t.all)d.push(m+s);else return n(null,m+s);return e(r+1,o)})})(0,l.length)})(0,o.length)}function u(e,t){t||={};for(var n=c(e,t),i=n.env,o=n.ext,l=n.extExe,u=[],d=0,f=i.length;d<f;d++){var p=i[d];p.charAt(0)===`"`&&p.slice(-1)===`"`&&(p=p.slice(1,-1));var m=r.join(p,e);!p&&/^\.[\\\/]/.test(e)&&(m=e.slice(0,2)+m);for(var h=0,g=o.length;h<g;h++){var v=m+o[h],y;try{if(y=a.sync(v,{pathExt:l}),y)if(t.all)u.push(v);else return v}catch{}}}if(t.all&&u.length)return u;if(t.nothrow)return null;throw s(e)}})),Mo=e.t(((e,t)=>{t.exports=e=>{e||={};let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`}})),No=e.t(((e,t)=>{let n=require(`path`),r=jo(),i=Mo()();function a(e,t){let a=process.cwd(),o=e.options.cwd!=null,s=o&&process.chdir!==void 0;if(s)try{process.chdir(e.options.cwd)}catch{}let c;try{c=r.sync(e.command,{path:(e.options.env||process.env)[i],pathExt:t?n.delimiter:void 0})}catch{}finally{s&&process.chdir(a)}return c&&=n.resolve(o?e.options.cwd:``,c),c}function o(e){return a(e)||a(e,!0)}t.exports=o})),Po=e.t(((e,t)=>{let n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),Fo=e.t(((e,t)=>{t.exports=/^#!.*/})),Io=e.t(((e,t)=>{var n=Fo();t.exports=function(e){var t=e.match(n);if(!t)return null;var r=t[0].replace(/#! ?/,``).split(` `),i=r[0].split(`/`).pop(),a=r[1];return i===`env`?a:i+(a?` `+a:``)}})),Lo=e.t(((e,t)=>{let n=require(`fs`),r=Io();function i(e){let t;Buffer.alloc?t=Buffer.alloc(150):(t=new Buffer(150),t.fill(0));let i;try{i=n.openSync(e,`r`),n.readSync(i,t,0,150,0),n.closeSync(i)}catch{}return r(t.toString())}t.exports=i})),Ro=e.t(((e,t)=>{let n=require(`path`),r=Ao(),i=No(),a=Po(),o=Lo(),s=require(`semver`),c=process.platform===`win32`,l=/\.(?:com|exe)$/i,u=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i,d=r(()=>s.satisfies(process.version,`^4.8.0 || ^5.7.0 || >= 6.0.0`,!0))||!1;function f(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function p(e){if(!c)return e;let t=f(e),r=!l.test(t);if(e.options.forceShell||r){let 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)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function m(e){if(d)return e;let t=[e.command].concat(e.args).join(` `);return c?(e.command=typeof e.options.shell==`string`?e.options.shell:process.env.comspec||`cmd.exe`,e.args=[`/d`,`/s`,`/c`,`"${t}"`],e.options.windowsVerbatimArguments=!0):(typeof e.options.shell==`string`?e.command=e.options.shell:process.platform===`android`?e.command=`/system/bin/sh`:e.command=`/bin/sh`,e.args=[`-c`,t]),e}function h(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?m(r):p(r)}t.exports=h})),zo=e.t(((e,t)=>{let n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t,`spawn`);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),Bo=e.t(((e,t)=>{let n=require(`child_process`),r=Ro(),i=zo();function a(e,t,a){let o=r(e,t,a),s=n.spawn(o.command,o.args,o.options);return i.hookChildProcess(s,o),s}function o(e,t,a){let o=r(e,t,a),s=n.spawnSync(o.command,o.args,o.options);return s.error=s.error||i.verifyENOENTSync(s.status,o),s}t.exports=a,t.exports.spawn=a,t.exports.sync=o,t.exports._parse=r,t.exports._enoent=i})),Vo=e.t(((e,t)=>{let n=(e,...t)=>new Promise(n=>{n(e(...t))});t.exports=n,t.exports.default=n})),Ho=e.t(((e,t)=>{let n=Vo(),r=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,i=()=>{r--,t.length>0&&t.shift()()},a=(e,t,...a)=>{r++;let o=n(e,...a);t(o),o.then(i,i)},o=(n,i,...o)=>{r<e?a(n,i,...o):t.push(a.bind(null,n,i,...o))},s=(e,...t)=>new Promise(n=>o(e,n,...t));return Object.defineProperties(s,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),s};t.exports=r,t.exports.default=r})),Uo=e.t(((e,t)=>{let n=Ho();var r=class extends Error{constructor(e){super(),this.value=e}};let i=async(e,t)=>t(await e),a=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new r(t[0]);return!1},o=async(e,t,o)=>{o={concurrency:1/0,preserveOrder:!0,...o};let s=n(o.concurrency),c=[...e].map(e=>[e,s(i,e,t)]),l=n(o.preserveOrder?1:1/0);try{await Promise.all(c.map(e=>l(a,e)))}catch(e){if(e instanceof r)return e.value;throw e}};t.exports=o,t.exports.default=o})),Wo=e.t(((e,t)=>{let n=require(`path`),r=require(`fs`),{promisify:i}=require(`util`),a=Uo(),o=i(r.stat),s=i(r.lstat),c={directory:`isDirectory`,file:`isFile`};function l({type:e}){if(!(e in c))throw Error(`Invalid type specified: ${e}`)}let u=(e,t)=>e===void 0||t[c[e]]();t.exports=async(e,t)=>{t={cwd:process.cwd(),type:`file`,allowSymlinks:!0,...t},l(t);let r=t.allowSymlinks?o:s;return a(e,async e=>{try{let i=await r(n.resolve(t.cwd,e));return u(t.type,i)}catch{return!1}},t)},t.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:`file`,...t},l(t);let i=t.allowSymlinks?r.statSync:r.lstatSync;for(let r of e)try{let e=i(n.resolve(t.cwd,r));if(u(t.type,e))return r}catch{}}})),Go=e.t(((e,t)=>{let n=require(`fs`),{promisify:r}=require(`util`),i=r(n.access);t.exports=async e=>{try{return await i(e),!0}catch{return!1}},t.exports.sync=e=>{try{return n.accessSync(e),!0}catch{return!1}}})),Ko=e.t(((e,t)=>{let n=require(`path`),r=Wo(),i=Go(),a=Symbol(`findUp.stop`);t.exports=async(e,t={})=>{let i=n.resolve(t.cwd||``),{root:o}=n.parse(i),s=[].concat(e),c=async t=>{if(typeof e!=`function`)return r(s,t);let n=await e(t.cwd);return typeof n==`string`?r([n],t):n};for(;;){let e=await c({...t,cwd:i});if(e===a)return;if(e)return n.resolve(i,e);if(i===o)return;i=n.dirname(i)}},t.exports.sync=(e,t={})=>{let i=n.resolve(t.cwd||``),{root:o}=n.parse(i),s=[].concat(e),c=t=>{if(typeof e!=`function`)return r.sync(s,t);let n=e(t.cwd);return typeof n==`string`?r.sync([n],t):n};for(;;){let e=c({...t,cwd:i});if(e===a)return;if(e)return n.resolve(i,e);if(i===o)return;i=n.dirname(i)}},t.exports.exists=i,t.exports.sync.exists=i.sync,t.exports.stop=a})),qo=e.t(((e,t)=>{let n=require(`path`),r=Ko(),i=async e=>{let t=await r(`package.json`,{cwd:e});return t&&n.dirname(t)};t.exports=i,t.exports.default=i,t.exports.sync=e=>{let t=r.sync(`package.json`,{cwd:e});return t&&n.dirname(t)}})),Jo=e.t(((e,t)=>{let n=require(`fs`),r=require(`path`),i=Bo(),a=qo(),o,s,c;function l(){o=void 0,s=void 0,c=void 0}function u(){if(o!==void 0)return o;try{let e=i.sync(`yarn`,[`--version`]);o=!!(e.stdout&&e.stdout.toString().trim())}catch{o=!1}return o}function d(){if(s!==void 0)return s;try{let e=i.sync(`npm`,[`--version`]);s=!!(e.stdout&&e.stdout.toString().trim())}catch{s=!1}return s}function f(){if(c!==void 0)return c;let e=a.sync();if(e){let t=r.join(e,`package-lock.json`),i=r.join(e,`yarn.lock`);try{return n.statSync(i),c=`yarn`,c}catch{}try{return n.statSync(t),c=`npm`,c}catch{}}return u()?`yarn`:`npm`}function p(...e){return e.unshift(f()),i(...e)}function m(...e){return e.unshift(f()),i.sync(...e)}f.hasYarn=u,f.hasNpm=d,f.spawn=p,f.spawn.sync=m,f.clearCache=l,t.exports=f}))(),Yo=(e,t,r=!1)=>{let i=r?`yarn upgrade chromatic --latest`:`npm install chromatic@latest --save-dev`;return(0,K.dedent)(G.default`
${n.s} {bold Using outdated package}
You are using an outdated version of the Chromatic CLI (v${e.pkg.version}).
A new major version is available (v${t}).
Run {bold ${i}} to upgrade.
`)};function Xo(e,t={}){return new Promise((n,r)=>{let i=``,a=``,o=(0,Jo.spawn)(e,t);o.stdout?.on(`data`,e=>{i+=e}),o.stderr?.on(`data`,e=>{a+=e}),o.on(`error`,r),o.on(`close`,e=>{e===0?n(i.trim()):r(Error(a))})})}const Zo=e=>new Promise((t,n)=>setTimeout(()=>n(Error(`Timed out after ${e}ms`)),e)),Qo=(e,t)=>Promise.race([e,Zo(t)]);async function $o(e){if(e.options.skipUpdateCheck===!0){e.log.info(`Skipping update check`);return}if(!y.default.valid(e.pkg.version)){e.log.warn(`Invalid semver version in package.json: ${e.pkg.version}`);return}let n;try{let t=await Xo([`config`,`get`,`registry`]).catch(()=>`https://registry.npmjs.org/`);[`https://registry.npmjs.org/`,`https://registry.yarnpkg.com`].includes(t)||e.log.info(`Using custom npm registry: ${t}`);let r=new URL(e.pkg.name,t).href,{"dist-tags":i={}}=await(await Qo(e.http.fetch(r),5e3)).json();if(!y.default.valid(i.latest)){e.log.warn(`Invalid dist-tag 'latest' returned from registry; skipping update check`);return}n=i.latest}catch(n){es(n)&&t.A(n),e.log.warn(`Could not retrieve package info from registry; skipping update check`),e.log.warn(n);return}y.default.major(e.pkg.version)<y.default.major(n)&&e.log.warn(Yo(e,n,(0,Jo.hasYarn)()))}function es(e){if(!(e instanceof Error))return!1;let t=e instanceof TypeError&&e.message.includes(`Invalid URL`),n=e.message.includes(`HTTPClient failed to fetch`);return!(t||n)}var ts=(e,t)=>(0,K.dedent)(G.default`
${n.s} {bold Unsupported Node.js version}
You are running Node.js {bold v${e}}, but Chromatic supports {bold ${t}}.
Chromatic may not work as expected. Please upgrade Node.js to a supported version based on Node's release schedule:
${i.J(`https://github.com/nodejs/release#release-schedule`)}
`);function ns(e,t){t&&((0,y.satisfies)(process.versions.node,t)||e.warn(ts(process.versions.node,t)))}var rs=e.t(((e,t)=>{let n=process.stdin,r=process.stdout,i={prompt:u,confirm:d,multiline:f};function a(e){"use strict";let t={},n=0;return new Promise(function(r,a){function o(e){let r=e.key,a=e.msg,o=i[e.fn];if(!r)throw Error("A value for `key` must be defined for question "+n);if(!a)throw Error("A value for `msg` must be defined for question "+n);if(!o)throw Error('A value for `fn` must be "prompt", "confirm", or "multiline" for question '+n);o&&o(a,r,t).then(function(){s()})}function s(){if(n<e.length){var i=e[n];n++,o(i)}else r(t)}s()})}function o(e,t){"use strict";return new Promise(function(i){if(r.write(e),n.setEncoding(`utf8`),t){let e=[];r.write(`
`),n.on(`data`,function(t){t==`
`||t==`\r
`?(n.pause(),n.removeAllListeners(`data`),i(e.join(`
`)),e=null):e.push(t.slice(0,-1))}).resume()}else n.once(`data`,function(e){n.pause(),i(e.slice(0,-1))}).resume()})}function s(e){"use strict";return o(e,!1).then(function(e){return/^y|yes|ok|true$/i.test(e)})}function c(e){"use strict";return o(e,!0)}function l(e,t,n,r){"use strict";return n||={},r(e).then(function(e){return n[t]=e,n})}function u(e,t,n){return l(e,t,n,o)}function d(e,t,n){return l(e,t,n,s)}function f(e,t,n){return l(e,t,n,c)}t.exports={ask:a,confirm:s,multiline:c,prompt:o}})),is=e.a(s.t()),as=rs(),os=e=>(0,K.dedent)(G.default`
${n.o} {bold Added script '${e}' to package.json}
You can now run it here or in CI with 'npm run ${e}' or 'yarn ${e}'.
${n.a} Your project token was added to the script via the {bold --project-token} flag.
If you're running Chromatic via continuous integration, we recommend setting
the {bold CHROMATIC_PROJECT_TOKEN} environment variable in your CI environment.
You can then remove the {bold --project-token} from your package.json script.
`),ss=(e,t)=>(0,K.dedent)(G.default`
${n.a} No problem. You can add it to your package.json yourself like so:
{dim ${K.dedent`
"scripts": {
"${e}": "${t}"
}
`}}
`),cs=e=>(0,K.dedent)(G.default`
${n.s} {bold No '${e}' script found in your package.json}
Would you like me to add it for you? [y/N]
`);const{writeFile:ls}=is.default,us=`chromatic`,ds=e=>e[us]||Object.values(e).find(e=>e.startsWith(us));async function fs(e){let{log:t,options:n,packageJson:r,packagePath:i}=e;if(n.interactive)try{let{readme:e,_id:a,...o}=r;if(o.scripts||={},ds(o.scripts))return;let s=`npx chromatic ${n.originalArgv.join(` `)}`;t.info(``),await(0,as.confirm)(cs(us))?(o.scripts[us]=s,await ls(i,o,{spaces:2}),t.info(``),t.info(os(us))):(t.info(``),t.info(ss(us,s)))}catch(e){t.warn(e)}}function q(e){return e.playwright||e.cypress||e.vitest}function ps(e){return(0,v.createHash)(`md5`).update(e.trim().toLowerCase()).digest(`hex`)}var ms=(e,t)=>(0,K.dedent)(G.default`
${n.i} Invalid {bold ${e}}
This option can only be used in conjunction with {bold ${t}}
`),hs=()=>(0,K.dedent)(G.default`
${n.i} Invalid value to {bold --patch-build}
The two branches cannot be identical.
`),gs=e=>(0,K.dedent)(G.default`
${n.i} Incompatible options: ${e.map(e=>G.default.bold(e)).join(`, `)}
These options cannot be used together.
`),_s=()=>(0,K.dedent)(G.default`
${n.i} Invalid {bold --only-story-names}
Value must be provided in the form {bold 'Path/To/MyStory'}.
Globbing is supported, for example: 'Pages/**'
`),vs=(e,t)=>(0,K.dedent)(G.default`
${n.i} Invalid value for {bold --branch-name} and/or {bold --repository-slug}
The branch owner name prefix '${e}' does not match the repository owner '${t}'.
`),ys=e=>(0,K.dedent)(G.default`
${n.i} {bold Invalid package.json}
Found invalid package.json at {bold ${e}}
Make sure this is a valid Node.js package file, is readable, and contains a {bold "scripts"} block.
`),bs=()=>(0,K.dedent)(G.default`
${n.i} Invalid value for {bold --patch-build}
This option expects two branch names like {bold headbranch...basebranch}
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/branching-and-baselines/#what-happens-when-the-merge-base-build-isnt-found-patch-builds`)}
`),xs=()=>(0,K.dedent)(G.default`
${n.i} Invalid value for {bold --junit-report}
If you pass a file path, make sure it ends with '.xml'
`),Ss=()=>(0,K.dedent)(G.default`
${n.i} Invalid value for {bold --repository-slug}
The value must be in the format {bold ownerName/repositoryName}
You can typically find this in the URL of your repository.
`),Cs=e=>(0,K.dedent)(G.default`
${n.i} You can only use one of {bold ${e.join(`, `)}}
`),ws=()=>(0,K.dedent)(G.default`
${n.i} {bold Missing project token}
Sign in to ${i.J(`https://www.chromatic.com/start`)} and create a new project,
or find your project token on the Manage screen in an existing project.
Set your project token as the {bold CHROMATIC_PROJECT_TOKEN} environment variable
or pass the {bold --project-token} command line option.
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/quickstart/`)}
`);const Ts=e=>`--${e.replaceAll(/[A-Z]/g,`-$&`).toLowerCase()}`;var Es=({flag:e,replacement:t})=>(0,K.dedent)(G.default`
${n.s} {bold Using deprecated option: ${Ts(e)}}
This option is ${t?G.default`superceded by {bold ${Ts(t)}}`:`deprecated`} and may be removed in a future release.
Refer to the changelog for more information: ${i.J(`https://github.com/chromaui/chromatic-cli/blob/main/CHANGELOG.md`)}
`);const Ds=`chromatic.log`,Os=`chromatic-diagnostics.json`,ks=`chromatic-build-{buildNumber}.xml`,As=`build-storybook.log`,js=e=>Array.isArray(e)?e.at(-1):e,Ms=e=>e?Array.isArray(e)?e:[e]:[],Ns=e=>e===``?!0:e,Ps=(e,t)=>e===``?t:e,Fs=(e,t)=>[``,!0,void 0].includes(e)?t:e,Is=e=>{let t=e.filter(Boolean);return t.length>0?t:void 0},Ls=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>t!==void 0)),Rs=(e,t)=>{switch(typeof e){case`boolean`:return e?t:void 0;case`string`:return e||t;default:return}},zs=e=>{let{argv:t,env:n,flags:r,extraOptions:i,configuration:a,log:o}=e,s={projectToken:n.CHROMATIC_PROJECT_TOKEN,fromCI:!!process.env.CI,inAction:!1,dryRun:!1,debug:!1,autoAcceptChanges:!1,exitZeroOnChanges:!1,exitOnceUploaded:!1,diagnosticsFile:void 0,fileHashing:!0,interactive:!1,isLocalBuild:!1,originalArgv:t,onlyChanged:void 0,onlyStoryFiles:void 0,onlyStoryNames:void 0,untraced:void 0,externals:void 0,traceChanged:void 0,list:void 0,logFile:void 0,skip:void 0,forceRebuild:void 0,junitReport:void 0,zip:void 0,skipUpdateCheck:void 0,ignoreLastBuildOnBranch:void 0,preserveMissingSpecs:void 0,buildScriptName:void 0,buildCommand:void 0,playwright:void 0,cypress:void 0,vitest:void 0,outputDir:void 0,storybookBuildDir:void 0,storybookBaseDir:void 0,storybookConfigDir:void 0,storybookLogFile:void 0,ownerName:void 0,repositorySlug:void 0,branchName:void 0,patchHeadRef:void 0,patchBaseRef:void 0,uploadMetadata:void 0},[c,l]=(r.patchBuild||``).split(`...`).filter(Boolean),[u,d]=(r.branchName||``).split(`:`).reverse(),[f,p,...m]=r.repositorySlug?.split(`/`)||[],g=Ls({projectToken:js(r.projectToken),onlyChanged:Ns(r.onlyChanged),onlyStoryFiles:Is(Ms(r.onlyStoryFiles)),onlyStoryNames:Is(Ms(r.onlyStoryNames)),untraced:Is(Ms(r.untraced)),externals:Is(Ms(r.externals)),traceChanged:Ns(r.traceChanged),list:r.list,logFile:Ps(r.logFile,Ds),fromCI:r.ci,skip:Ns(r.skip),dryRun:r.dryRun,fileHashing:r.fileHashing,forceRebuild:Ns(r.forceRebuild),debug:r.debug,diagnosticsFile:Rs(r.diagnosticsFile,Os),junitReport:Ps(r.junitReport,ks),zip:r.zip,skipUpdateCheck:r.skipUpdateCheck,autoAcceptChanges:Ns(r.autoAcceptChanges),exitZeroOnChanges:Ns(r.exitZeroOnChanges),exitOnceUploaded:Ns(r.exitOnceUploaded),ignoreLastBuildOnBranch:r.ignoreLastBuildOnBranch,preserveMissingSpecs:r.preserveMissing,buildScriptName:r.buildScriptName,buildCommand:r.buildCommand,playwright:Ns(r.playwright),cypress:Ns(r.cypress),vitest:Ns(r.vitest),outputDir:js(r.outputDir),storybookBuildDir:js(r.storybookBuildDir),storybookBaseDir:r.storybookBaseDir,storybookConfigDir:r.storybookConfigDir,storybookLogFile:r.playwright||r.cypress||r.vitest?Fs(r.storybookLogFile,`build-archive.log`):Fs(r.storybookLogFile,As),ownerName:d||f,repositorySlug:r.repositorySlug,branchName:u,patchHeadRef:c,patchBaseRef:l,uploadMetadata:r.uploadMetadata}),{logFile:v,diagnosticsFile:y,junitReport:b,storybookLogFile:x,...S}=a||{},C=Ls({...S,logFile:Rs(v,Ds),diagnosticsFile:Rs(y,Os),junitReport:Rs(b,ks),storybookLogFile:Rs(x,As)}),w={...s,...C,...g,...i,interactive:!process.env.CI&&!r.ci&&!r.debug&&!!r.interactive&&!!process.stdout.isTTY&&process.env.NODE_ENV!==`test`};if(w.debug&&(o.setLevel(`debug`),o.setInteractive(!1)),w.persistLogFile=typeof w.logFile==`string`||!!w.debug,w.logFile??=Ds,w.persistDiagnosticsFile=typeof w.diagnosticsFile==`string`||!!w.debug,(w.debug||w.uploadMetadata)&&(w.diagnosticsFile=w.diagnosticsFile??`chromatic-diagnostics.json`),f&&(!p||m.length>0))throw Error(Ss());if(d&&f&&d!==f)throw Error(vs(d,f));if(r.patchBuild){if(!w.patchHeadRef||!w.patchBaseRef)throw Error(bs());if(w.patchHeadRef===w.patchBaseRef)throw Error(hs())}if(w.onlyStoryNames?.some(e=>!/[\w*]\/[\w*]/.test(e)))throw Error(_s());let T={storybookBuildDir:`--storybook-build-dir`,playwright:`--playwright`,cypress:`--cypress`,vitest:`--vitest`},E=Object.keys(T).filter(e=>!!w[e]);if(E.length>1)throw Error(Cs(E.map(e=>T[e])));if(w.onlyChanged&&w.onlyStoryFiles)throw Error(Cs([`--only-changed`,`--only-story-files`]));if(w.onlyChanged&&w.onlyStoryNames)throw Error(Cs([`--only-changed`,`--only-story-names`]));if(w.onlyStoryNames&&w.onlyStoryFiles)throw Error(Cs([`--only-story-files`,`--only-story-names`]));if(w.untraced&&!w.onlyChanged)throw Error(ms(`--untraced`,`--only-changed`));if(w.externals&&!w.onlyChanged)throw Error(ms(`--externals`,`--only-changed`));if(w.traceChanged&&!w.onlyChanged)throw Error(ms(`--trace-changed`,`--only-changed`));if(w.junitReport&&w.exitOnceUploaded)throw Error(gs([`--junit-report`,`--exit-once-uploaded`]));if(w.buildScriptName&&w.buildCommand)throw Error(gs([`--build-script-name`,`--build-command`]));if(w.buildCommand&&!w.outputDir)throw Error(ms(`--build-command`,`--output-dir`));if(typeof w.junitReport==`string`&&h.default.extname(w.junitReport)!==`.xml`)throw Error(xs());return w};function Bs(e,t=zs(e)){let{flags:n,log:r,packageJson:i,packagePath:a}=e,{storybookBuildDir:o}=t,{buildScriptName:s}=t;if(!t.projectToken&&!t.userToken)throw Error(ws());let c=t;return n.preserveMissing&&(r.info(``),r.info(Es({flag:`preserveMissing`}))),o||t.buildCommand||q(c)?c:((typeof i!=`object`||typeof i.scripts!=`object`)&&(r.error(ys(a)),process.exit(252)),s=Vs(i.scripts,s),{...c,buildScriptName:s})}function Vs(e={},t){if(t)return t;if(e[`build-storybook`])return`build-storybook`;let[n]=Object.entries(e).find(([,e])=>e.startsWith(`build-storybook`))||[];return n??`build-storybook`}var Hs=e.a(tr()),Us=class{static{this.nonTTY=!1}constructor(e,t){this.tasks=e,this.options=t,this.updateRenderer=new Hs.default(e,t)}render(){this.updateRenderer.render();for(let e of this.tasks){let t;e.subscribe(n=>{n.type===`TITLE`&&this.options.log.file(`${e.title}`),n.type===`DATA`&&n.data&&t!==n.data&&(t=n.data,this.options.log.file(` → ${n.data}`))})}}end(){this.updateRenderer.end()}},Ws=e.a(t.T());function Gs(e,t){return typeof t==`string`&&t.length>0?(0,Ws.default)(t,{bash:!0})(e):!!t}var Ks=class{static{this.nonTTY=!0}constructor(e,t){this.tasks=e,this.options=t}render(){for(let e of this.tasks){let t;e.subscribe(n=>{n.type===`TITLE`&&this.options.log.info(`${e.title}`),n.type===`DATA`&&n.data&&t!==n.data&&(t=n.data,this.options.log.info(` → ${n.data}`))})}}end(){}},qs=e.a(n.t()),Js=`18.6.0`,Ys={name:`chromatic`,version:Js,description:`Automate visual testing across browsers. Gather UI feedback. Versioned documentation.`,keywords:[`storybook-addon`,`storybook`,`addon`,`test`,`popular`],homepage:`https://www.chromatic.com`,bugs:{url:`https://github.com/chromaui/chromatic-cli`,email:`support@chromatic.com`},repository:{type:`git`,url:`git+https://github.com/chromaui/chromatic-cli.git`},license:`MIT`,author:{name:`Chromatic`,email:`support@chromatic.com`},exports:{".":{types:`./isChromatic.d.ts`,require:`./isChromatic.js`,import:`./isChromatic.mjs`},"./node":{types:`./dist/node.d.cts`,require:`./dist/node.cjs`,node:`./dist/node.cjs`},"./isChromatic":{types:`./isChromatic.d.ts`,require:`./isChromatic.js`,import:`./isChromatic.mjs`},"./package.json":`./package.json`},main:`isChromatic.js`,module:`isChromatic.mjs`,typesVersions:{"*":{"*":[`./isChromatic.d.ts`],isChromatic:[`./isChromatic.d.ts`],node:[`dist/node.d.cts`]}},bin:{chroma:`dist/bin.cjs`,chromatic:`dist/bin.cjs`,"chromatic-cli":`dist/bin.cjs`},files:[`dist/*.cjs`,`dist/node.d.cts`,`isChromatic.js`,`isChromatic.mjs`,`isChromatic.d.ts`],resolutions:{"any-observable":`^0.5.1`,"es-toolkit":`1.46.0`,lodash:`4.17.21`,"@types/minimatch":`5.1.2`},dependenciesMeta:{"@sentry/cli":{built:!0},esbuild:{built:!0}},dependencies:{semver:`^7.3.5`},devDependencies:{"@actions/core":`^1.10.0`,"@actions/github":`^5.0.0`,"@antfu/ni":`^0.21.5`,"@auto-it/slack":`^11.1.6`,"@clack/prompts":`^1.4.0`,"@discoveryjs/json-ext":`^0.5.7`,"@eslint-community/eslint-plugin-eslint-comments":`^4.3.0`,"@expo/config-plugins":`55.0.8`,"@expo/config-types":`55.0.5`,"@sentry/cli":`^2.37.0`,"@sentry/node":`^8.30.0`,"@snyk/dep-graph":`^2.9.0`,"@storybook/addon-docs":`^10.3.4`,"@storybook/builder-vite":`^10.3.4`,"@storybook/html-vite":`^10.3.4`,"@storybook/linter-config":`^4.0.0`,"@storybook/react-vite":`^10.3.4`,"@tsconfig/node16":`^16.1.1`,"@types/adm-zip":`^0.5.8`,"@types/archiver":`^5.3.1`,"@types/async-retry":`^1.4.3`,"@types/cross-spawn":`^6.0.2`,"@types/fs-extra":`^9.0.13`,"@types/jsonfile":`^6.0.1`,"@types/listr":`^0.14.4`,"@types/mime-types":`^2.1.4`,"@types/node":`18.x`,"@types/path-browserify":`^1`,"@types/picomatch":`^2.3.0`,"@types/progress-stream":`^2.0.2`,"@types/prompts":`^2.4.9`,"@types/semver":`^7.3.9`,"@types/ws":`^8`,"@typescript-eslint/eslint-plugin":`^8.5.8`,"@typescript-eslint/parser":`^8.5.8`,"@vitest/coverage-v8":`^4.1.2`,"adm-zip":`^0.5.17`,"ansi-html":`0.0.9`,"any-observable":`^0.5.1`,archiver:`^5.3.0`,"async-retry":`^1.3.3`,auto:`^11.0.5`,boxen:`^7.1.1`,chalk:`^4.1.2`,"clean-package":`^2.2.0`,cpy:`^8.1.2`,"cross-env":`^7.0.3`,"cross-spawn":`^7.0.2`,debug:`^4.3.2`,dotenv:`^16.4.5`,"env-ci":`^11.1.0`,eslint:`^9.39.4`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-import":`^2.32.0`,"eslint-plugin-jsdoc":`^62.4.1`,"eslint-plugin-json":`^4.0.1`,"eslint-plugin-no-secrets":`^2.2.1`,"eslint-plugin-prettier":`^5.5.5`,"eslint-plugin-react":`^7.37.5`,"eslint-plugin-security":`^3.0.1`,"eslint-plugin-simple-import-sort":`^12.1.1`,"eslint-plugin-sort-class-members":`^1.21.0`,"eslint-plugin-storybook":`^10.3.4`,"eslint-plugin-unicorn":`^59.0.1`,esm:`^3.2.25`,execa:`^9.6.0`,"fake-tag":`^2.0.0`,filesize:`^10.1.0`,"find-up":`^7.0.0`,"formdata-node":`^6.0.3`,"fs-extra":`^10.0.0`,globals:`^15.3.0`,"https-proxy-agent":`^7.0.2`,husky:`^7.0.0`,jiti:`^2.7.0`,json5:`^2.2.3`,jsonfile:`^6.0.1`,"junit-report-builder":`3.1.0`,listr:`0.14.3`,"listr-update-renderer":`^0.5.0`,meow:`^9.0.0`,"mime-types":`^2.1.35`,"mock-fs":`^5.1.2`,"no-proxy":`^1.0.3`,"node-ask":`^1.0.1`,"node-fetch":`3.2.10`,"npm-run-all":`^4.0.2`,observable:`^2.1.4`,"os-browserify":`^0.3.0`,"p-limit":`3.1.0`,"path-browserify":`^1.0.1`,picocolors:`^1.1.1`,picomatch:`2.2.2`,"pkg-up":`^3.1.0`,pluralize:`^8.0.0`,prettier:`^3.2.5`,"progress-stream":`^2.0.0`,prompts:`^2.4.2`,"prop-types":`^15.7.2`,react:`^17.0.2`,"react-dom":`^17.0.2`,"read-package-up":`^11.0.0`,"snyk-nodejs-lockfile-parser":`^1.58.18`,"snyk-nodejs-plugin":`^1.4.3`,"sort-package-json":`1.50.0`,storybook:`^10.3.4`,"string-argv":`^0.3.1`,"strip-ansi":`^7.1.0`,"tmp-promise":`3.0.2`,"ts-dedent":`^1.0.0`,"ts-loader":`^9.2.5`,tsdown:`^0.21.8`,typescript:`^5.2.2`,"typescript-eslint":`^8.5.8`,"util-deprecate":`^1.0.2`,uuid:`^8.3.2`,vite:`^8.0.3`,"vite-tsconfig-paths":`^5.1.4`,vitest:`^4.1.2`,"why-is-node-running":`^2.1.2`,"wrap-ansi":`^10.0.0`,ws:`^8.18.2`,"xxhash-wasm":`^1.0.2`,"yarn-or-npm":`^3.0.1`,"zen-observable":`^0.8.15`,zod:`^3.22.2`},peerDependencies:{"@chromatic-com/cypress":`^0.*.* || ^1.0.0`,"@chromatic-com/playwright":`^0.*.* || ^1.0.0`,"@chromatic-com/vitest":`^0.*.* || ^1.0.0`},peerDependenciesMeta:{"@chromatic-com/cypress":{optional:!0},"@chromatic-com/playwright":{optional:!0},"@chromatic-com/vitest":{optional:!0}},publishConfig:{access:`public`,registry:`https://registry.npmjs.org/`},engines:{node:`>=22.0.0`},docs:`https://www.chromatic.com/docs/cli`,storybook:{icon:`https://user-images.githubusercontent.com/263385/101995175-2e087800-3c96-11eb-9a33-9860a1c3ce62.gif`,displayName:`Chromatic`}};function Xs(e){let{input:t,flags:n,help:r}=(0,qs.default)(`
Chromatic CLI
https://www.chromatic.com/docs/cli
Usage
$ chromatic --project-token <token>
Required options
--project-token, -t <token> The unique code for your project. Alternatively, set CHROMATIC_PROJECT_TOKEN.
Storybook options
--build-script-name, -b [name] The npm script that builds your Storybook we should take snapshots against. Use this if your Storybook build script is named differently. [build-storybook]
--build-command <command> The command that builds your Storybook we should take snapshots against. Use this if your Storybook build command does not exist in "scripts" of your package.json (like using NX). Requires --output-dir.
--output-dir, -o <dirname> Relative path to target directory for building your Storybook, in case you want to preserve it. Otherwise a temporary directory is used if possible.
--storybook-build-dir, -d <dirname> If you have already built your Storybook, provide the path to the static build directory.
Chromatic options
--auto-accept-changes [branch] If there are any changes to the build, automatically accept them. Only for [branch], if specified. Globs are supported via picomatch.
--branch-name <branch> Override the branch name. Only meant to be used for unsupported CI integrations and fixing cross-fork PR comparisons. Also accepts <owner>:<branch> format.
--ci Mark this build as a CI build. Alternatively, set the 'CI' environment variable (present in most CI systems). This option implies --no-interactive.
--config-file, -c <path> Path to a configuration file containing the options listed in JSON format. Uses "chromatic.config.json" by default.
--exit-once-uploaded [branch] Exit with 0 once the built version has been published to Chromatic. Only for [branch], if specified. Globs are supported via picomatch.
--exit-zero-on-changes [branch] If all snapshots render but there are visual changes, exit with code 0 rather than the usual exit code 1. Only for [branch], if specified. Globs are supported via picomatch.
--externals <filepath> Disable TurboSnap when any of these files have changed since the baseline build. Globs are supported via picomatch. This flag can be specified multiple times. Requires --only-changed.
--ignore-last-build-on-branch <branch> Do not use the last build on this branch as a baseline if it is no longer in history (i.e. branch was rebased). Globs are supported via picomatch.
--only-changed [branch] Enables TurboSnap: Only run stories affected by files changed since the baseline build. Only for [branch], if specified. Globs are supported via picomatch. All other snapshots will be inherited from the prior commit.
--only-story-files <filepath> Only run a single story or a subset of stories by their filename(s). Specify the full path to the story file relative to the root of your Storybook project. Globs are supported via picomatch. This flag can be specified multiple times.
--only-story-names <storypath> Only run a single story or a subset of stories. Story paths typically look like "Path/To/Story". Globs are supported via picomatch. This flag can be specified multiple times.
--patch-build <headbranch...basebranch> Create a patch build to fix a missing PR comparison.
--repository-slug <slug> Override the repository slug. Only meant to be used for unsupported CI integrations and fixing cross-fork PR comparisons. Format: <ownerName>/<repoName>.
--skip [branch] Skip Chromatic tests, but mark the commit as passing. Avoids blocking PRs due to required merge checks. Only for [branch], if specified. Globs are supported via picomatch.
--storybook-base-dir <dirname> Relative path from repository root to Storybook project root. Use with --only-changed and --storybook-build-dir when running Chromatic from a different directory than your Storybook.
--storybook-config-dir <dirname> Relative path from where you run Chromatic to your Storybook config directory ('.storybook'). Use with --only-changed and --storybook-build-dir when using a custom --config-dir (-c) flag for Storybook. [.storybook]
--untraced <filepath> Disregard these files and their dependencies when tracing dependent stories for TurboSnap. Globs are supported via picomatch. This flag can be specified multiple times. Requires --only-changed.
--zip Publish your Storybook to Chromatic as a single zip file instead of individual content files.
--skip-update-check Skip checking for available Chromatic package update.
Debug options
--debug Output verbose debugging information. This option implies --no-interactive, --diagnostics-file, --log-file.
--diagnostics-file [filepath] Write process context information to a JSON file. Disable via --no-diagnostics-file. [chromatic-diagnostics.json]
--dry-run Run without actually publishing to Chromatic.
--force-rebuild [branch] Do not skip build when a rebuild is detected. Only for [branch], if specified. Globs are supported via picomatch.
--junit-report [filepath] Write build results to a JUnit XML file. {buildNumber} will be replaced with the actual build number. [chromatic-build-{buildNumber}.xml]
--list List available stories. This requires running a full build.
--log-file [filepath] Write log output to a file. Disable via --no-log-file. [chromatic.log]
--log-level <level> One of "silent", "error", "warn", "info", "debug". Defaults to "info".
--log-prefix <prefix> Prefix for each log line. Defaults to current timestamp except in interactive mode. Set to "" to disable.
--no-file-hashing Disable file hashing. This will cause all files to be uploaded on every build.
--no-interactive Don't ask interactive questions about your setup and don't overwrite output. Always true in non-TTY environments.
--storybook-log-file [filepath] Write Storybook build output to a file. Disable via --no-storybook-log-file. [storybook-build.log]
--trace-changed [mode] Print dependency trace for changed files to affected story files. Set to "expanded" to list individual modules. Requires --only-changed.
--upload-metadata Upload Chromatic metadata files as part of the published Storybook. Includes diagnostics and log files, among others. This option enables --diagnostics-file, --log-file and --storybook-log-file, unless explicitly disabled via the 'no-' prefix. Defaults to enabled when running with TurboSnap.
Deprecated options
--preserve-missing Treat missing stories as unchanged rather than deleted when comparing to the baseline.
`,{argv:e,booleanDefault:void 0,description:!1,pkg:{},version:Js,flags:{projectToken:{type:`string`,alias:`t`,isMultiple:!0},buildScriptName:{type:`string`,alias:`b`},buildCommand:{type:`string`},outputDir:{type:`string`,alias:`o`,isMultiple:!0},storybookBuildDir:{type:`string`,alias:`d`,isMultiple:!0},autoAcceptChanges:{type:`string`},branchName:{type:`string`},ci:{type:`boolean`},configFile:{type:`string`,alias:`c`},exitOnceUploaded:{type:`string`},exitZeroOnChanges:{type:`string`},externals:{type:`string`,isMultiple:!0},ignoreLastBuildOnBranch:{type:`string`},onlyChanged:{type:`string`},onlyStoryFiles:{type:`string`,isMultiple:!0},onlyStoryNames:{type:`string`,isMultiple:!0},patchBuild:{type:`string`},repositorySlug:{type:`string`},skip:{type:`string`},storybookBaseDir:{type:`string`},storybookConfigDir:{type:`string`},untraced:{type:`string`,isMultiple:!0},zip:{type:`boolean`},debug:{type:`boolean`},diagnosticsFile:{type:`string`},dryRun:{type:`boolean`},fileHashing:{type:`boolean`,default:!0},forceRebuild:{type:`string`},interactive:{type:`boolean`,default:!0},junitReport:{type:`string`},list:{type:`boolean`},logFile:{type:`string`},logLevel:{type:`string`,choices:[`silent`,`error`,`warn`,`info`,`debug`]},logPrefix:{type:`string`},storybookLogFile:{type:`string`},traceChanged:{type:`string`},uploadMetadata:{type:`boolean`},preserveMissing:{type:`boolean`}}});return{argv:e,input:t,flags:n,help:r,pkg:Ys}}
/**
* filesize
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 10.1.6
*/
var Zs=e.t((e=>{let t=`bits`,n=`bytes`,r=`jedec`,i={symbol:{iec:{bits:[`bit`,`Kibit`,`Mibit`,`Gibit`,`Tibit`,`Pibit`,`Eibit`,`Zibit`,`Yibit`],bytes:[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`]},jedec:{bits:[`bit`,`Kbit`,`Mbit`,`Gbit`,`Tbit`,`Pbit`,`Ebit`,`Zbit`,`Ybit`],bytes:[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`]}},fullform:{iec:[``,`kibi`,`mebi`,`gibi`,`tebi`,`pebi`,`exbi`,`zebi`,`yobi`],jedec:[``,`kilo`,`mega`,`giga`,`tera`,`peta`,`exa`,`zetta`,`yotta`]}};function a(e,{bits:a=!1,pad:o=!1,base:s=-1,round:c=2,locale:l=``,localeOptions:u={},separator:d=``,spacer:f=` `,symbols:p={},standard:m=``,output:h=`string`,fullform:g=!1,fullforms:v=[],exponent:y=-1,roundingMethod:b=`round`,precision:x=0}={}){let S=y,C=Number(e),w=[],T=0,E=``;m===`si`?(s=10,m=r):m===`iec`||m===r?s=2:s===2?m=`iec`:(s=10,m=r);let D=s===10?1e3:1024,O=g===!0,k=C<0,A=Math[b];if(typeof e!=`bigint`&&isNaN(e))throw TypeError(`Invalid number`);if(typeof A!=`function`)throw TypeError(`Invalid rounding method`);if(k&&(C=-C),(S===-1||isNaN(S))&&(S=Math.floor(Math.log(C)/Math.log(D)),S<0&&(S=0)),S>8&&(x>0&&(x+=8-S),S=8),h===`exponent`)return S;if(C===0)w[0]=0,E=w[1]=i.symbol[m][a?t:n][S];else{T=C/(s===2?2**(S*10):1e3**S),a&&(T*=8,T>=D&&S<8&&(T/=D,S++));let e=10**(S>0?c:0);w[0]=A(T*e)/e,w[0]===D&&S<8&&y===-1&&(w[0]=1,S++),E=w[1]=s===10&&S===1?a?`kbit`:`kB`:i.symbol[m][a?t:n][S]}if(k&&(w[0]=-w[0]),x>0&&(w[0]=w[0].toPrecision(x)),w[1]=p[w[1]]||w[1],l===!0?w[0]=w[0].toLocaleString():l.length>0?w[0]=w[0].toLocaleString(l,u):d.length>0&&(w[0]=w[0].toString().replace(`.`,d)),o&&c>0){let e=w[0].toString(),t=d||(e.match(/(\D)/g)||[]).pop()||`.`,n=e.toString().split(t),r=n[1]||``,i=r.length,a=c-i;w[0]=`${n[0]}${t}${r.padEnd(i+a,`0`)}`}return O&&(w[1]=v[S]?v[S]:i.fullform[m][S]+(a?`bit`:`byte`)+(w[0]===1?``:`s`)),h===`array`?w:h===`object`?{value:w[0],symbol:w[1],exponent:S,unit:E}:w.join(f)}e.filesize=a})),Qs=e.a(i.K()),$s=Zs(),ec=({announcedBuild:e,build:t},n,r=new Date)=>`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Build ${e.number} metadata files</title>
<style>
body {
-webkit-font-smoothing: antialiased;
font-family: 'Nunito Sans', sans-serif;
font-size: 14px;
line-height: 1;
background: #F6F9FC;
color: #5C6870;
margin: 20px;
}
h1 {
margin: 0 0 6px 0;
color: #2E3438;
font-size: 28px;
font-weight: 700;
}
ul {
margin: 1em 2em;
padding: 0;
line-height: 1.7;
}
a {
display: inline-block;
color: #029cfd;
text-decoration: none;
font-weight: bold;
}
a:hover {
text-decoration: underline;
}
svg {
width: 20px;
height: 20px;
}
path {
fill: currentColor;
}
</style>
<link rel="stylesheet" data-href="https://fonts.googleapis.com/css?family=Nunito+Sans:400,700&display=swap"/>
</head>
<body>
<h1>Build ${e.number} ${t?`<a href="${t.webUrl}"><svg viewBox="0 0 1024 1024"><path d="M743.52 529.234c5.616-5.616 83.048-83.046 88.462-88.46 30.944-32.778 47.97-75.636 47.97-120.792 0-47.048-18.304-91.26-51.542-124.484-33.228-33.22-77.43-51.516-124.458-51.516-45.024 0-87.792 16.94-120.536 47.72l-104.458 104.456c-30.792 32.738-47.734 75.512-47.734 120.548 0 41.916 14.576 81.544 41.248 113.196 3.264 3.876 6.666 7.664 10.292 11.29 4.258 4.258 8.704 8.262 13.304 12.022 0.054 0.080 0.096 0.152 0.148 0.232 9.572 7.308 15.778 18.804 15.778 31.776 0 22.094-17.914 40-40.004 40-8.542 0-16.442-2.696-22.938-7.26-2.746-1.93-20.622-17.43-30.35-28.050-0.008-0.010-0.018-0.018-0.026-0.028-4.992-5.432-13.234-15.23-18.552-22.65s-16.556-25.872-17.036-26.736c-0.7-1.262-2.974-5.526-3.422-6.39-0.69-1.334-6.118-12.67-6.114-12.67-14.342-31.96-22.332-67.4-22.332-104.728 0-60.826 21.198-116.648 56.58-160.544 0.252-0.314 4.61-5.594 6.594-7.866 0.304-0.35 5.038-5.636 7.16-7.874 0.252-0.268 105.86-105.874 106.128-106.126 45.902-43.584 107.958-70.314 176.264-70.314 141.382 0 255.998 114.5 255.998 256 0 68.516-26.882 130.688-70.652 176.61-0.144 0.148-109.854 109.546-112.090 111.528-0.958 0.848-5.072 4.352-5.072 4.352-6.448 5.434-13.132 10.592-20.1 15.378 0.412-6.836 0.644-13.702 0.644-20.6 0-26.46-3.108-52.206-8.918-76.918l-0.236-1.102zM616.144 767.82c35.382-43.896 56.58-99.718 56.58-160.544 0-37.328-7.99-72.768-22.332-104.728 0.004 0 0.006-0.002 0.010-0.004-0.258-0.576-0.538-1.14-0.8-1.714-0.686-1.498-2.894-6.112-3.296-6.93-0.668-1.344-2.952-5.732-3.386-6.604-3.48-6.982-8.708-15.126-9.49-16.366-0.498-0.792-0.996-1.58-1.502-2.364-0.834-1.29-15.364-22.066-26.656-34.466-0.008-0.010-0.018-0.018-0.026-0.028-7.056-8.448-24.932-24.198-30.35-28.050-6.47-4.602-14.396-7.26-22.938-7.26-22.090 0-40.004 17.906-40.004 40 0 12.97 6.206 24.466 15.778 31.776 0.052 0.080 0.094 0.152 0.148 0.232 4.602 3.76 20.334 19.434 23.598 23.31 26.672 31.65 41.248 71.28 41.248 113.196 0 45.038-16.944 87.81-47.734 120.548l-104.458 104.456c-32.742 30.782-75.512 47.72-120.536 47.72-47.028 0-91.228-18.294-124.458-51.516-33.236-33.224-51.542-77.436-51.542-124.484 0-45.154 17.028-88.014 47.97-120.792 5.414-5.414 40.812-40.812 68.958-68.958 7.176-7.176 13.888-13.886 19.504-19.502v-0.002c-0.356-1.562-0.246-1.096-0.246-1.096-5.81-24.712-8.918-50.458-8.918-76.918 0-6.898 0.232-13.764 0.644-20.6-6.966 4.788-20.1 15.33-20.1 15.33-0.734 0.62-9.518 8.388-11.68 10.45-0.16 0.154-105.338 105.33-105.482 105.478-43.77 45.922-70.652 108.094-70.652 176.61 0 141.5 114.616 256 255.998 256 68.306 0 130.362-26.73 176.264-70.314 0.27-0.254 105.876-105.86 106.128-106.126 0.004-0.002 13.506-15.426 13.758-15.74z"></path></svg></a>`:``} </h1>
<span>Metadata files</span>
<ul>
${n.map(({targetPath:e,contentLength:t})=>{let n=e.replace(/^\.chromatic\//,``);return`<li><a href="${n}">${n}</a> <small>(${(0,$s.filesize)(t)})</small></li>`}).join(``)}
</ul>
<small>Generated on ${r.toLocaleString(`en`,{timeStyle:`medium`,dateStyle:`full`,hourCycle:`h24`,timeZone:`UTC`})} UTC</small>
</body>
</html>`,J=e.a(t.x()),tc=(e,t)=>{let r=(0,J.default)(`metadata file`,t.length,!0),a=`- ${t.map(e=>e.targetPath.replace(/^\.chromatic\//,``)).join(`
- `)}`;return G.default`${n.a} Uploading {bold ${r}} to ${i.J(e)}\n${a}`};const nc=({fileCount:e,maxFileCount:t})=>(0,K.dedent)(G.default`
${n.i} {bold Attempted to upload too many files}
You're not allowed to upload more than ${t} files per build.
Your Storybook contains ${e} files. This is a very high number.
Do you have files in a static/public directory that shouldn't be there?
Contact customer support if you need to increase this limit.
`),rc=({filePaths:e,maxFileSize:t})=>(0,K.dedent)(G.default`
${n.i} {bold Attempted to exceed maximum file size}
You're attempting to upload files that exceed the maximum file size of ${(0,$s.filesize)(t)}.
Contact customer support if you need to increase this limit.
- ${e.map(e=>e).join(`
- `)}
`);function ic({target:e},t=!1){let r=ac(e.targetPath)===e.targetPath?`The file may have been modified during the upload process.`:`It seems the file path may contain illegal characters.`,i=(0,K.dedent)(G.default`
${n.i} Failed to upload {bold ${e.localPath}} to {bold ${e.targetPath}}
${r}
${t?``:G.default`Enable the {bold debug} option to get more information.`}
`);return t?i+JSON.stringify(e,void 0,2):i}function ac(e){return e.split(`/`).map(e=>encodeURIComponent(e)).join(`/`)}var oc=e.t(((e,t)=>{t.exports=typeof process==`object`&&process&&process.platform===`win32`?{sep:`\\`}:{sep:`/`}})),sc=e.t(((e,t)=>{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i<a&&(a=i,o=l),l=n.indexOf(t,u+1)),u=c<l&&c>=0?c:l;r.length&&(s=[a,o])}return s}})),cc=e.t(((e,t)=>{var n=sc();t.exports=f;var r=`\0SLASH`+Math.random()+`\0`,i=`\0OPEN`+Math.random()+`\0`,a=`\0CLOSE`+Math.random()+`\0`,o=`\0COMMA`+Math.random()+`\0`,s=`\0PERIOD`+Math.random()+`\0`;function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function l(e){return e.split(`\\\\`).join(r).split(`\\{`).join(i).split(`\\}`).join(a).split(`\\,`).join(o).split(`\\.`).join(s)}function u(e){return e.split(r).join(`\\`).split(i).join(`{`).split(a).join(`}`).split(o).join(`,`).split(s).join(`.`)}function d(e){if(!e)return[``];var t=[],r=n(`{`,`}`,e);if(!r)return e.split(`,`);var i=r.pre,a=r.body,o=r.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=d(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function f(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(l(e),n,!0).map(u)}function p(e){return`{`+e+`}`}function m(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function g(e,t){return e>=t}function v(e,t,r){var i=[],o=n(`{`,`}`,e);if(!o)return[e];var s=o.pre,l=o.post.length?v(o.post,t,!1):[``];if(/\$$/.test(o.pre))for(var u=0;u<l.length&&u<t;u++){var f=s+`{`+o.body+`}`+l[u];i.push(f)}else{var y=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),b=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),x=y||b,S=o.body.indexOf(`,`)>=0;if(!x&&!S)return o.post.match(/,(?!,).*\}/)?(e=o.pre+`{`+o.body+a+o.post,v(e,t,!0)):[e];var C;if(x)C=o.body.split(/\.\./);else if(C=d(o.body),C.length===1&&(C=v(C[0],t,!1).map(p),C.length===1))return l.map(function(e){return o.pre+C[0]+e});var w;if(x){var T=c(C[0]),E=c(C[1]),D=Math.max(C[0].length,C[1].length),O=C.length==3?Math.max(Math.abs(c(C[2])),1):1,k=h;E<T&&(O*=-1,k=g);var A=C.some(m);w=[];for(var j=T;k(j,E);j+=O){var M;if(b)M=String.fromCharCode(j),M===`\\`&&(M=``);else if(M=String(j),A){var N=D-M.length;if(N>0){var P=Array(N+1).join(`0`);M=j<0?`-`+P+M.slice(1):P+M}}w.push(M)}}else{w=[];for(var F=0;F<C.length;F++)w.push.apply(w,v(C[F],t,!1))}for(var F=0;F<w.length;F++)for(var u=0;u<l.length&&i.length<t;u++){var f=s+w[F]+l[u];(!r||x||f)&&i.push(f)}}return i}})),lc=e.t(((e,t)=>{let n=t.exports=(e,t,n={})=>(h(t),!n.nocomment&&t.charAt(0)===`#`?!1:new S(t,n).match(e));t.exports=n;let r=oc();n.sep=r.sep;let i=Symbol(`globstar **`);n.GLOBSTAR=i;let a=cc(),o={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},s=`[^/]`,c=s+`*?`,l=e=>e.split(``).reduce((e,t)=>(e[t]=!0,e),{}),u=l(`().*{}+?[]^$\\!`),d=l(`[.(`),f=/\/+/;n.filter=(e,t={})=>(r,i,a)=>n(r,e,t);let p=(e,t={})=>{let n={};return Object.keys(e).forEach(t=>n[t]=e[t]),Object.keys(t).forEach(e=>n[e]=t[e]),n};n.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return n;let t=n,r=(n,r,i)=>t(n,r,p(e,i));return r.Minimatch=class extends t.Minimatch{constructor(t,n){super(t,p(e,n))}},r.Minimatch.defaults=n=>t.defaults(p(e,n)).Minimatch,r.filter=(n,r)=>t.filter(n,p(e,r)),r.defaults=n=>t.defaults(p(e,n)),r.makeRe=(n,r)=>t.makeRe(n,p(e,r)),r.braceExpand=(n,r)=>t.braceExpand(n,p(e,r)),r.match=(n,r,i)=>t.match(n,r,p(e,i)),r},n.braceExpand=(e,t)=>m(e,t);let m=(e,t={})=>(h(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:a(e)),h=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},g=Symbol(`subparse`);n.makeRe=(e,t)=>new S(e,t||{}).makeRe(),n.match=(e,t,n={})=>{let r=new S(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};let v=e=>e.replace(/\\(.)/g,`$1`),y=e=>e.replace(/\\([^-\]])/g,`$1`),b=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),x=e=>e.replace(/[[\]\\]/g,`\\$&`);var S=class{constructor(e,t){h(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,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(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let n=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,n),n=this.globParts=n.map(e=>e.split(f)),this.debug(this.pattern,n),n=n.map((e,t,n)=>e.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(e=>e.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n){return t.indexOf(i)===-1?this._matchOne(e,t,n,0,0):this._matchGlobstar(e,t,n,0,0)}_matchGlobstar(e,t,n,r,a){let o=-1;for(let e=a;e<t.length;e++)if(t[e]===i){o=e;break}let s=-1;for(let e=t.length-1;e>=0;e--)if(t[e]===i){s=e;break}let c=t.slice(a,o),l=n?t.slice(o+1):t.slice(o+1,s),u=n?[]:t.slice(s+1);if(c.length){let t=e.slice(r,r+c.length);if(!this._matchOne(t,c,n,0,0))return!1;r+=c.length}let d=0;if(u.length){if(u.length+r>e.length)return!1;let t=e.length-u.length;if(this._matchOne(e,u,n,t,0))d=u.length;else{if(e[e.length-1]!==``||r+u.length===e.length||!this._matchOne(e,u,n,t-1,0))return!1;d=u.length+1}}if(!l.length){let t=!!d;for(let n=r;n<e.length-d;n++){let r=String(e[n]);if(t=!0,r===`.`||r===`..`||!this.options.dot&&r.charAt(0)===`.`)return!1}return n||t}let f=[[[],0]],p=f[0],m=0,h=[0];for(let e of l)e===i?(h.push(m),p=[[],0],f.push(p)):(p[0].push(e),m++);let g=f.length-1,v=e.length-d;for(let e of f)e[1]=v-(h[g--]+e[0].length);return!!this._matchGlobStarBodySections(e,f,r,0,n,0,!!d)}_matchGlobStarBodySections(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.charAt(0)===`.`)return!1}return o}let[c,l]=s;for(;n<=l;){if(this._matchOne(e.slice(0,n+c.length),c,i,n,0)&&a<this.maxGlobstarRecursion){let s=this._matchGlobStarBodySections(e,t,n+c.length,r+1,i,a+1,o);if(s!==!1)return s}let s=e[n];if(s===`.`||s===`..`||!this.options.dot&&s.charAt(0)===`.`)return!1;n++}return i||null}_matchOne(e,t,n,r,a){let o,s,c,l;for(o=r,s=a,c=e.length,l=t.length;o<c&&s<l;o++,s++){this.debug(`matchOne loop`);let n=t[s],r=e[o];if(this.debug(t,n,r),n===!1||n===i)return!1;let a;if(typeof n==`string`?(a=r===n,this.debug(`string match`,n,r,a)):(a=r.match(n),this.debug(`pattern match`,n,r,a)),!a)return!1}if(o===c&&s===l)return!0;if(o===c)return n;if(s===l)return o===c-1&&e[o]===``;throw Error(`wtf?`)}braceExpand(){return m(this.pattern,this.options)}parse(e,t){h(e);let n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return i;if(e===``)return``;let r=``,a=!1,l=!1,f=[],p=[],m,b=!1,S=-1,C=-1,w,T,E,D=e.charAt(0)===`.`,O=n.dot||D,k=()=>D?``:O?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,A=e=>e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,j=()=>{if(m){switch(m){case`*`:r+=c,a=!0;break;case`?`:r+=s,a=!0;break;default:r+=`\\`+m;break}this.debug(`clearStateChar %j %j`,m,r),m=!1}};for(let t=0,i;t<e.length&&(i=e.charAt(t));t++){if(this.debug(`%s %s %s %j`,e,t,r,i),l){if(i===`/`)return!1;u[i]&&(r+=`\\`),r+=i,l=!1;continue}switch(i){case`/`:return!1;case`\\`:if(b&&e.charAt(t+1)===`-`){r+=i;continue}j(),l=!0;continue;case`?`:case`*`:case`+`:case`@`:case`!`:if(this.debug(`%s %s %s %j <-- stateChar`,e,t,r,i),b){this.debug(` in class`),i===`!`&&t===C+1&&(i=`^`),r+=i;continue}if(i===`*`&&m===`*`)continue;this.debug(`call clearStateChar %j`,m),j(),m=i,n.noext&&j();continue;case`(`:{if(b){r+=`(`;continue}if(!m){r+=`\\(`;continue}let n={type:m,start:t-1,reStart:r.length,open:o[m].open,close:o[m].close};this.debug(this.pattern,` `,n),f.push(n),r+=n.open,n.start===0&&n.type!==`!`&&(D=!0,r+=A(e.slice(t+1))),this.debug(`plType %j %j`,m,r),m=!1;continue}case`)`:{let e=f[f.length-1];if(b||!e){r+=`\\)`;continue}f.pop(),j(),a=!0,T=e,r+=T.close,T.type===`!`&&p.push(Object.assign(T,{reEnd:r.length}));continue}case`|`:{let n=f[f.length-1];if(b||!n){r+=`\\|`;continue}j(),r+=`|`,n.start===0&&n.type!==`!`&&(D=!0,r+=A(e.slice(t+1)));continue}case`[`:if(j(),b){r+=`\\`+i;continue}b=!0,C=t,S=r.length,r+=i;continue;case`]`:if(t===C+1||!b){r+=`\\`+i;continue}w=e.substring(C+1,t);try{RegExp(`[`+x(y(w))+`]`),r+=i}catch{r=r.substring(0,S)+`(?:$.)`}a=!0,b=!1;continue;default:j(),u[i]&&!(i===`^`&&b)&&(r+=`\\`),r+=i;break}}for(b&&(w=e.slice(C+1),E=this.parse(w,g),r=r.substring(0,S)+`\\[`+E[0],a||=E[1]),T=f.pop();T;T=f.pop()){let e;e=r.slice(T.reStart+T.open.length),this.debug(`setting tail`,r,T),e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,(e,t,n)=>(n||=`\\`,t+t+n+`|`)),this.debug(`tail=%j
%s`,e,e,T,r);let t=T.type===`*`?c:T.type===`?`?s:`\\`+T.type;a=!0,r=r.slice(0,T.reStart)+t+`\\(`+e}j(),l&&(r+=`\\\\`);let M=d[r.charAt(0)];for(let e=p.length-1;e>-1;e--){let n=p[e],i=r.slice(0,n.reStart),a=r.slice(n.reStart,n.reEnd-8),o=r.slice(n.reEnd),s=r.slice(n.reEnd-8,n.reEnd)+o,c=i.split(`)`).length,l=i.split(`(`).length-c,u=o;for(let e=0;e<l;e++)u=u.replace(/\)[+*?]?/,``);o=u;let d=o===``&&t!==g?`(?:$|\\/)`:``;r=i+a+o+d+s}if(r!==``&&a&&(r=`(?=.)`+r),M&&(r=k()+r),t===g)return[r,a];if(n.nocase&&!a&&(a=e.toUpperCase()!==e.toLowerCase()),!a)return v(e);let N=n.nocase?`i`:``;try{return Object.assign(RegExp(`^`+r+`$`,N),{_glob:e,_src:r})}catch{return RegExp(`$.`)}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?c:t.dot?`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`:`(?:(?!(?:\\/|^)\\.).)*?`,r=t.nocase?`i`:``,a=e.map(e=>(e=e.map(e=>typeof e==`string`?b(e):e===i?i:e._src).reduce((e,t)=>(e[e.length-1]===i&&t===i||e.push(t),e),[]),e.forEach((t,r)=>{t!==i||e[r-1]===i||(r===0?e.length>1?e[r+1]=`(?:\\/|`+n+`\\/)?`+e[r+1]:e[r]=n:r===e.length-1?e[r-1]+=`(?:\\/|`+n+`)?`:(e[r-1]+=`(?:\\/|\\/`+n+`\\/)`+e[r+1],e[r+1]=i))}),e.filter(e=>e!==i).join(`/`))).join(`|`);a=`^(?:`+a+`)$`,this.negate&&(a=`^(?!`+a+`).*$`);try{this.regexp=new RegExp(a,r)}catch{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;let n=this.options;r.sep!==`/`&&(e=e.split(r.sep).join(`/`)),e=e.split(f),this.debug(this.pattern,`split`,e);let i=this.set;this.debug(this.pattern,`set`,i);let a;for(let t=e.length-1;t>=0&&(a=e[t],!a);t--);for(let r=0;r<i.length;r++){let o=i[r],s=e;if(n.matchBase&&o.length===1&&(s=[a]),this.matchOne(s,o,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return n.defaults(e).Minimatch}};n.Minimatch=S})),uc=e.t(((e,t)=>{t.exports=f;let n=require(`fs`),{EventEmitter:r}=require(`events`),{Minimatch:i}=lc(),{resolve:a}=require(`path`);function o(e,t){return new Promise((r,i)=>{n.readdir(e,{withFileTypes:!0},(e,n)=>{if(e)switch(e.code){case`ENOTDIR`:t?i(e):r([]);break;case`ENOTSUP`:case`ENOENT`:case`ENAMETOOLONG`:case`UNKNOWN`:r([]);break;default:i(e);break}else r(n)})})}function s(e,t){return new Promise((r,i)=>{(t?n.stat:n.lstat)(e,(n,i)=>{if(n)switch(n.code){case`ENOENT`:r(t?s(e,!1):null);break;default:r(null);break}else r(i)})})}async function*c(e,t,n,r,i,a){let l=await o(t+e,a);for(let a of l){let o=a.name;o===void 0&&(o=a,r=!0);let l=e+`/`+o,u=l.slice(1),d=t+`/`+u,f=null;(r||n)&&(f=await s(d,n)),!f&&a.name!==void 0&&(f=a),f===null&&(f={isDirectory:()=>!1}),f.isDirectory()?i(u)||(yield{relative:u,absolute:d,stats:f},yield*c(l,t,n,r,i,!1)):yield{relative:u,absolute:d,stats:f}}}async function*l(e,t,n,r){yield*c(``,e,t,n,r,!0)}function u(e){return{pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}var d=class extends r{constructor(e,t,n){if(super(),typeof t==`function`&&(n=t,t=null),this.options=u(t||{}),this.matchers=[],this.options.pattern){let e=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=e.map(e=>new i(e,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let e=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=e.map(e=>new i(e,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let e=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=e.map(e=>new i(e,{dot:!0}))}this.iterator=l(a(e||`.`),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on(`match`,e=>this._matches.push(this.options.absolute?e.absolute:e.relative)),this.on(`error`,e=>n(e)),this.on(`end`,()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(t=>t.match(e))}_fileMatches(e,t){let n=e+(t?`/`:``);return(this.matchers.length===0||this.matchers.some(e=>e.match(n)))&&!this.ignoreMatchers.some(e=>e.match(n))&&(!this.options.nodir||!t)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit(`end`);else{let t=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,t)){let n=e.value.relative,r=e.value.absolute;this.options.mark&&t&&(n+=`/`,r+=`/`),this.options.stat?this.emit(`match`,{relative:n,absolute:r,stat:e.value.stats}):this.emit(`match`,{relative:n,absolute:r})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit(`error`,e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function f(e,t,n){return new d(e,t,n)}f.ReaddirGlob=d})),dc=e.t(((e,t)=>{typeof process>`u`||!process.version||process.version.indexOf(`v0.`)===0||process.version.indexOf(`v1.`)===0&&process.version.indexOf(`v1.8.`)!==0?t.exports={nextTick:n}:t.exports=process;function n(e,t,n,r){if(typeof e!=`function`)throw TypeError(`"callback" argument must be a function`);var i=arguments.length,a,o;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,n)});case 4:return process.nextTick(function(){e.call(null,t,n,r)});default:for(a=Array(i-1),o=0;o<a.length;)a[o++]=arguments[o];return process.nextTick(function(){e.apply(null,a)})}}})),fc=e.t(((e,t)=>{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}})),pc=e.t(((e,t)=>{t.exports=require(`stream`)})),mc=e.t(((e,t)=>{var n=require(`buffer`),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),hc=e.t((e=>{function t(e){return Array.isArray?Array.isArray(e):h(e)===`[object Array]`}e.isArray=t;function n(e){return typeof e==`boolean`}e.isBoolean=n;function r(e){return e===null}e.isNull=r;function i(e){return e==null}e.isNullOrUndefined=i;function a(e){return typeof e==`number`}e.isNumber=a;function o(e){return typeof e==`string`}e.isString=o;function s(e){return typeof e==`symbol`}e.isSymbol=s;function c(e){return e===void 0}e.isUndefined=c;function l(e){return h(e)===`[object RegExp]`}e.isRegExp=l;function u(e){return typeof e==`object`&&!!e}e.isObject=u;function d(e){return h(e)===`[object Date]`}e.isDate=d;function f(e){return h(e)===`[object Error]`||e instanceof Error}e.isError=f;function p(e){return typeof e==`function`}e.isFunction=p;function m(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0}e.isPrimitive=m,e.isBuffer=require(`buffer`).Buffer.isBuffer;function h(e){return Object.prototype.toString.call(e)}})),gc=e.t(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),Y=e.t(((e,t)=>{try{var n=require(`util`);if(typeof n.inherits!=`function`)throw``;t.exports=n.inherits}catch{t.exports=gc()}})),_c=e.t(((e,t)=>{function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var r=mc().Buffer,i=require(`util`);function a(e,t,n){e.copy(t,n)}t.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(this.length===0)return r.alloc(0);for(var t=r.allocUnsafe(e>>>0),n=this.head,i=0;n;)a(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+` `+e})})),vc=e.t(((e,t)=>{var n=dc();function r(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(a,r,e)):n.nextTick(a,r,e):t&&t(e)}),this)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit(`error`,t)}t.exports={destroy:r,undestroy:i}})),yc=e.t(((e,t)=>{t.exports=require(`util`).deprecate})),bc=e.t(((e,t)=>{var n=dc();t.exports=v;function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){F(t,e)}}var i=!process.browser&&[`v0.10`,`v0.9.`].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick,a;v.WritableState=h;var o=Object.create(hc());o.inherits=Y();var s={deprecate:yc()},c=pc(),l=mc().Buffer,u=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function d(e){return l.from(e)}function f(e){return l.isBuffer(e)||e instanceof u}var p=vc();o.inherits(v,c);function m(){}function h(e,t){a||=xc(),e||={};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,o=e.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:n&&(o||o===0)?this.highWaterMark=o:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=e.decodeStrings===!1;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){E(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}h.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(h.prototype,`buffer`,{get:s.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var g;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return g.call(this,e)?!0:this===v?e&&e._writableState instanceof h:!1}})):g=function(e){return e instanceof this};function v(e){if(a||=xc(),!g.call(v,this)&&!(this instanceof a))return new v(e);this._writableState=new h(e,this),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),c.call(this)}v.prototype.pipe=function(){this.emit(`error`,Error(`Cannot pipe, not readable`))};function y(e,t){var r=Error(`write after end`);e.emit(`error`,r),n.nextTick(t,r)}function b(e,t,r,i){var a=!0,o=!1;return r===null?o=TypeError(`May not write null values to stream`):typeof r!=`string`&&r!==void 0&&!t.objectMode&&(o=TypeError(`Invalid non-string/buffer chunk`)),o&&(e.emit(`error`,o),n.nextTick(i,o),a=!1),a}v.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&f(e);return a&&!l.isBuffer(e)&&(e=d(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=m),r.ended?y(this,n):(a||b(this,r,e,n))&&(r.pendingcb++,i=S(this,r,a,e,t,n)),i},v.prototype.cork=function(){var e=this._writableState;e.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&k(this,e))},v.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw TypeError(`Unknown encoding: `+e);return this._writableState.defaultEncoding=e,this};function x(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=l.from(t,n)),t}Object.defineProperty(v.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S(e,t,n,r,i,a){if(!n){var o=x(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else C(e,t,!1,s,r,i,a);return c}function C(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function w(e,t,r,i,a){--t.pendingcb,r?(n.nextTick(a,i),n.nextTick(N,e,t),e._writableState.errorEmitted=!0,e.emit(`error`,i)):(a(i),e._writableState.errorEmitted=!0,e.emit(`error`,i),N(e,t))}function T(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function E(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if(T(n),t)w(e,n,r,t,a);else{var o=A(n);!o&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&k(e,n),r?i(D,e,n,o,a):D(e,n,o,a)}}function D(e,t,n,r){n||O(e,t),t.pendingcb--,r(),N(e,t)}function O(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function k(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,a=Array(i),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)a[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;a.allBuffers=c,C(e,t,!0,t.length,a,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,d=n.callback;if(C(e,t,!1,t.objectMode?1:l.length,l,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}v.prototype._write=function(e,t,n){n(Error(`_write() is not implemented`))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var r=this._writableState;typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||P(this,r,n)};function A(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function j(e,t){e._final(function(n){t.pendingcb--,n&&e.emit(`error`,n),t.prefinished=!0,e.emit(`prefinish`),N(e,t)})}function M(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`?(t.pendingcb++,t.finalCalled=!0,n.nextTick(j,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function N(e,t){var n=A(t);return n&&(M(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`))),n}function P(e,t,r){t.ending=!0,N(e,t),r&&(t.finished?n.nextTick(r):e.once(`finish`,r)),t.ended=!0,e.writable=!1}function F(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(v.prototype,`destroyed`,{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=p.destroy,v.prototype._undestroy=p.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}})),xc=e.t(((e,t)=>{var n=dc(),r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=u;var i=Object.create(hc());i.inherits=Y();var a=Cc(),o=bc();i.inherits(u,a);for(var s=r(o.prototype),c=0;c<s.length;c++){var l=s[c];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),o.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once(`end`,d)}Object.defineProperty(u.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,`destroyed`,{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),u.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}})),Sc=e.t((e=>{var t=mc().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):``}})),Cc=e.t(((e,t)=>{var n=dc();t.exports=x;var r=fc(),i;x.ReadableState=b,require(`events`).EventEmitter;var a=function(e,t){return e.listeners(t).length},o=pc(),s=mc().Buffer,c=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function l(e){return s.from(e)}function u(e){return s.isBuffer(e)||e instanceof c}var d=Object.create(hc());d.inherits=Y();var f=require(`util`),p=void 0;p=f&&f.debuglog?f.debuglog(`stream`):function(){};var m=_c(),h=vc(),g;d.inherits(x,o);var v=[`error`,`close`,`destroy`,`pause`,`resume`];function y(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):r(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function b(e,t){i||=xc(),e||={};var n=t instanceof i;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,a=e.readableHighWaterMark,o=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(g||=Sc().StringDecoder,this.decoder=new g(e.encoding),this.encoding=e.encoding)}function x(e){if(i||=xc(),!(this instanceof x))return new x(e);this._readableState=new b(e,this),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),o.call(this)}Object.defineProperty(x.prototype,`destroyed`,{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=h.destroy,x.prototype._undestroy=h.undestroy,x.prototype._destroy=function(e,t){this.push(null),t(e)},x.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=s.from(e,t),t=``),r=!0),S(this,e,t,!1,r)},x.prototype.unshift=function(e){return S(this,e,null,!0,!1)};function S(e,t,n,r,i){var a=e._readableState;if(t===null)a.reading=!1,k(e,a);else{var o;i||(o=w(a,t)),o?e.emit(`error`,o):a.objectMode||t&&t.length>0?(typeof t!=`string`&&!a.objectMode&&Object.getPrototypeOf(t)!==s.prototype&&(t=l(t)),r?a.endEmitted?e.emit(`error`,Error(`stream.unshift() after end event`)):C(e,a,t,!0):a.ended?e.emit(`error`,Error(`stream.push() after EOF`)):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||t.length!==0?C(e,a,t,!1):M(e,a)):C(e,a,t,!1))):r||(a.reading=!1)}return T(a)}function C(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(e.emit(`data`,n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&A(e)),M(e,t)}function w(e,t){var n;return!u(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=TypeError(`Invalid non-string/buffer chunk`)),n}function T(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}x.prototype.isPaused=function(){return this._readableState.flowing===!1},x.prototype.setEncoding=function(e){return g||=Sc().StringDecoder,this._readableState.decoder=new g(e),this._readableState.encoding=e,this};var E=8388608;function D(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function O(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=D(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}x.prototype.read=function(e){p(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?te(this):A(this),null;if(e=O(e,t),e===0&&t.ended)return t.length===0&&te(this),null;var r=t.needReadable;p(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,p(`length less than watermark`,r)),t.ended||t.reading?(r=!1,p(`reading or ended`,r)):r&&(p(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=O(n,t)));var i=e>0?ee(e,t):null;return i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&te(this)),i!==null&&this.emit(`data`,i),i};function k(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,A(e)}}function A(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p(`emitReadable`,t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(j,e):j(e))}function j(e){p(`emit readable`),e.emit(`readable`),R(e)}function M(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(N,e,t))}function N(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p(`maybeReadMore read 0`),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}x.prototype._read=function(e){this.emit(`error`,Error(`_read() is not implemented`))},x.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,p(`pipe count=%d opts=%j`,i.pipesCount,t);var o=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr?c:b;i.endEmitted?n.nextTick(o):r.once(`end`,o),e.on(`unpipe`,s);function s(e,t){p(`onunpipe`),e===r&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,d())}function c(){p(`onend`),e.end()}var l=P(r);e.on(`drain`,l);var u=!1;function d(){p(`cleanup`),e.removeListener(`close`,g),e.removeListener(`finish`,v),e.removeListener(`drain`,l),e.removeListener(`error`,h),e.removeListener(`unpipe`,s),r.removeListener(`end`,c),r.removeListener(`end`,b),r.removeListener(`data`,m),u=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}var f=!1;r.on(`data`,m);function m(t){p(`ondata`),f=!1,!1===e.write(t)&&!f&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&H(i.pipes,e)!==-1)&&!u&&(p(`false write response, pause`,i.awaitDrain),i.awaitDrain++,f=!0),r.pause())}function h(t){p(`onerror`,t),b(),e.removeListener(`error`,h),a(e,`error`)===0&&e.emit(`error`,t)}y(e,`error`,h);function g(){e.removeListener(`finish`,v),b()}e.once(`close`,g);function v(){p(`onfinish`),e.removeListener(`close`,g),b()}e.once(`finish`,v);function b(){p(`unpipe`),r.unpipe(e)}return e.emit(`pipe`,r),i.flowing||(p(`pipe resume`),r.resume()),e};function P(e){return function(){var t=e._readableState;p(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&a(e,`data`)&&(t.flowing=!0,R(e))}}x.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=H(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n),this)},x.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t);if(e===`data`)this._readableState.flowing!==!1&&this.resume();else if(e===`readable`){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&A(this):n.nextTick(F,this))}return r},x.prototype.addListener=x.prototype.on;function F(e){p(`readable nexttick read 0`),e.read(0)}x.prototype.resume=function(){var e=this._readableState;return e.flowing||(p(`resume`),e.flowing=!0,I(this,e)),this};function I(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(L,e,t))}function L(e,t){t.reading||(p(`resume read 0`),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit(`resume`),R(e),t.flowing&&!t.reading&&e.read(0)}x.prototype.pause=function(){return p(`call pause flowing=%j`,this._readableState.flowing),!1!==this._readableState.flowing&&(p(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this};function R(e){var t=e._readableState;for(p(`flow`,t.flowing);t.flowing&&e.read()!==null;);}x.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(p(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){p(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<v.length;a++)e.on(v[a],this.emit.bind(this,v[a]));return this._read=function(t){p(`wrapped _read`,t),r&&(r=!1,e.resume())},this},Object.defineProperty(x.prototype,`readableHighWaterMark`,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),x._fromList=ee;function ee(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=z(e,t.buffer,t.decoder),n}function z(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?B(e,t):V(e,t),r}function B(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),e-=o,e===0){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}function V(e,t){var n=s.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),e-=o,e===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}function te(e){var t=e._readableState;if(t.length>0)throw Error(`"endReadable()" called on non-empty stream`);t.endEmitted||(t.ended=!0,n.nextTick(ne,t,e))}function ne(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`))}function H(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}})),wc=e.t(((e,t)=>{t.exports=a;var n=xc(),r=Object.create(hc());r.inherits=Y(),r.inherits(a,n);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit(`error`,Error(`write callback called multiple times`));n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,o)}function o(){var e=this;typeof this._flush==`function`?this._flush(function(t,n){s(e,t,n)}):s(this,null,null)}a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw Error(`_transform() is not implemented`)},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit(`close`)})};function s(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw Error(`Calling transform done when ws.length != 0`);if(e._transformState.transforming)throw Error(`Calling transform done when still transforming`);return e.push(null)}})),Tc=e.t(((e,t)=>{t.exports=i;var n=wc(),r=Object.create(hc());r.inherits=Y(),r.inherits(i,n);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}i.prototype._transform=function(e,t,n){n(null,e)}})),Ec=e.t(((e,t)=>{var n=require(`stream`);process.env.READABLE_STREAM===`disable`&&n?(t.exports=n,e=t.exports=n.Readable,e.Readable=n.Readable,e.Writable=n.Writable,e.Duplex=n.Duplex,e.Transform=n.Transform,e.PassThrough=n.PassThrough,e.Stream=n):(e=t.exports=Cc(),e.Stream=n||e,e.Readable=e,e.Writable=bc(),e.Duplex=xc(),e.Transform=wc(),e.PassThrough=Tc())})),Dc=e.t(((e,t)=>{t.exports=Ec().PassThrough})),Oc=e.t(((e,t)=>{var n=require(`util`),r=Dc();t.exports={Readable:a,Writable:o},n.inherits(a,r),n.inherits(o,r);function i(e,t,n){e[t]=function(){return delete e[t],n.apply(this,arguments),this[t].apply(this,arguments)}}function a(e,t){if(!(this instanceof a))return new a(e,t);r.call(this,t),i(this,`_read`,function(){var n=e.call(this,t),r=this.emit.bind(this,`error`);n.on(`error`,r),n.pipe(this)}),this.emit(`readable`)}function o(e,t){if(!(this instanceof o))return new o(e,t);r.call(this,t),i(this,`_write`,function(){var n=e.call(this,t),r=this.emit.bind(this,`error`);n.on(`error`,r),this.pipe(n)}),this.emit(`writable`)}})),kc=e.t(((e,t)=>{
/*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
*
* Copyright (c) 2014-2018, Jon Schlinkert.
* Released under the MIT License.
*/
t.exports=function(e,t){if(typeof e!=`string`)throw TypeError(`expected path to be a string`);if(e===`\\`||e===`/`)return`/`;var n=e.length;if(n<=1)return e;var r=``;if(n>4&&e[3]===`\\`){var i=e[2];(i===`?`||i===`.`)&&e.slice(0,2)===`\\\\`&&(e=e.slice(2),r=`//`)}var a=e.split(/[/\\]+/);return t!==!1&&a[a.length-1]===``&&a.pop(),r+a.join(`/`)}})),Ac=e.t(((e,t)=>{var n=9007199254740991,r=`[object Arguments]`,i=`[object Function]`,a=`[object GeneratorFunction]`,o=/^(?:0|[1-9]\d*)$/;function s(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function c(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var l=Object.prototype,u=l.hasOwnProperty,d=l.toString,f=l.propertyIsEnumerable,p=Math.max;function m(e,t){var n=O(e)||D(e)?c(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||u.call(e,a))&&!(i&&(a==`length`||S(a,r)))&&n.push(a);return n}function h(e,t,n,r){return e===void 0||E(e,l[n])&&!u.call(r,n)?t:e}function g(e,t,n){var r=e[t];(!(u.call(e,t)&&E(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function v(e){if(!N(e))return T(e);var t=w(e),n=[];for(var r in e)r==`constructor`&&(t||!u.call(e,r))||n.push(r);return n}function y(e,t){return t=p(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=p(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];r=-1;for(var o=Array(t+1);++r<t;)o[r]=n[r];return o[t]=a,s(e,this,o)}}function b(e,t,n,r){n||={};for(var i=-1,a=t.length;++i<a;){var o=t[i],s=r?r(n[o],e[o],o,n,e):void 0;g(n,o,s===void 0?e[o]:s)}return n}function x(e){return y(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&C(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function S(e,t){return t??=n,!!t&&(typeof e==`number`||o.test(e))&&e>-1&&e%1==0&&e<t}function C(e,t,n){if(!N(n))return!1;var r=typeof t;return(r==`number`?k(n)&&S(t,n.length):r==`string`&&t in n)?E(n[t],e):!1}function w(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||l)}function T(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}function E(e,t){return e===t||e!==e&&t!==t}function D(e){return A(e)&&u.call(e,`callee`)&&(!f.call(e,`callee`)||d.call(e)==r)}var O=Array.isArray;function k(e){return e!=null&&M(e.length)&&!j(e)}function A(e){return P(e)&&k(e)}function j(e){var t=N(e)?d.call(e):``;return t==i||t==a}function M(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}function N(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function P(e){return!!e&&typeof e==`object`}var F=x(function(e,t,n,r){b(t,L(t),e,r)}),I=y(function(e){return e.push(void 0,h),s(F,void 0,e)});function L(e){return k(e)?m(e,!0):v(e)}t.exports=I})),jc=e.t(((e,t)=>{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}})),Mc=e.t(((e,t)=>{t.exports=require(`stream`)})),Nc=e.t(((e,t)=>{function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var r=mc().Buffer,i=require(`util`);function a(e,t,n){e.copy(t,n)}t.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(this.length===0)return r.alloc(0);for(var t=r.allocUnsafe(e>>>0),n=this.head,i=0;n;)a(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+` `+e})})),Pc=e.t(((e,t)=>{var n=dc();function r(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(a,r,e)):n.nextTick(a,r,e):t&&t(e)}),this)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit(`error`,t)}t.exports={destroy:r,undestroy:i}})),Fc=e.t(((e,t)=>{var n=dc();t.exports=v;function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){F(t,e)}}var i=!process.browser&&[`v0.10`,`v0.9.`].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick,a;v.WritableState=h;var o=Object.create(hc());o.inherits=Y();var s={deprecate:yc()},c=Mc(),l=mc().Buffer,u=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function d(e){return l.from(e)}function f(e){return l.isBuffer(e)||e instanceof u}var p=Pc();o.inherits(v,c);function m(){}function h(e,t){a||=Ic(),e||={};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,o=e.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:n&&(o||o===0)?this.highWaterMark=o:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=e.decodeStrings===!1;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){E(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}h.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(h.prototype,`buffer`,{get:s.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var g;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return g.call(this,e)?!0:this===v?e&&e._writableState instanceof h:!1}})):g=function(e){return e instanceof this};function v(e){if(a||=Ic(),!g.call(v,this)&&!(this instanceof a))return new v(e);this._writableState=new h(e,this),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),c.call(this)}v.prototype.pipe=function(){this.emit(`error`,Error(`Cannot pipe, not readable`))};function y(e,t){var r=Error(`write after end`);e.emit(`error`,r),n.nextTick(t,r)}function b(e,t,r,i){var a=!0,o=!1;return r===null?o=TypeError(`May not write null values to stream`):typeof r!=`string`&&r!==void 0&&!t.objectMode&&(o=TypeError(`Invalid non-string/buffer chunk`)),o&&(e.emit(`error`,o),n.nextTick(i,o),a=!1),a}v.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&f(e);return a&&!l.isBuffer(e)&&(e=d(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=m),r.ended?y(this,n):(a||b(this,r,e,n))&&(r.pendingcb++,i=S(this,r,a,e,t,n)),i},v.prototype.cork=function(){var e=this._writableState;e.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&k(this,e))},v.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw TypeError(`Unknown encoding: `+e);return this._writableState.defaultEncoding=e,this};function x(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=l.from(t,n)),t}Object.defineProperty(v.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S(e,t,n,r,i,a){if(!n){var o=x(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else C(e,t,!1,s,r,i,a);return c}function C(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function w(e,t,r,i,a){--t.pendingcb,r?(n.nextTick(a,i),n.nextTick(N,e,t),e._writableState.errorEmitted=!0,e.emit(`error`,i)):(a(i),e._writableState.errorEmitted=!0,e.emit(`error`,i),N(e,t))}function T(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function E(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if(T(n),t)w(e,n,r,t,a);else{var o=A(n);!o&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&k(e,n),r?i(D,e,n,o,a):D(e,n,o,a)}}function D(e,t,n,r){n||O(e,t),t.pendingcb--,r(),N(e,t)}function O(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function k(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,a=Array(i),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)a[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;a.allBuffers=c,C(e,t,!0,t.length,a,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,d=n.callback;if(C(e,t,!1,t.objectMode?1:l.length,l,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}v.prototype._write=function(e,t,n){n(Error(`_write() is not implemented`))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var r=this._writableState;typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||P(this,r,n)};function A(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function j(e,t){e._final(function(n){t.pendingcb--,n&&e.emit(`error`,n),t.prefinished=!0,e.emit(`prefinish`),N(e,t)})}function M(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`?(t.pendingcb++,t.finalCalled=!0,n.nextTick(j,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function N(e,t){var n=A(t);return n&&(M(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`))),n}function P(e,t,r){t.ending=!0,N(e,t),r&&(t.finished?n.nextTick(r):e.once(`finish`,r)),t.ended=!0,e.writable=!1}function F(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(v.prototype,`destroyed`,{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=p.destroy,v.prototype._undestroy=p.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}})),Ic=e.t(((e,t)=>{var n=dc(),r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=u;var i=Object.create(hc());i.inherits=Y();var a=Rc(),o=Fc();i.inherits(u,a);for(var s=r(o.prototype),c=0;c<s.length;c++){var l=s[c];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),o.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once(`end`,d)}Object.defineProperty(u.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,`destroyed`,{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),u.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}})),Lc=e.t((e=>{var t=mc().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):``}})),Rc=e.t(((e,t)=>{var n=dc();t.exports=x;var r=jc(),i;x.ReadableState=b,require(`events`).EventEmitter;var a=function(e,t){return e.listeners(t).length},o=Mc(),s=mc().Buffer,c=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function l(e){return s.from(e)}function u(e){return s.isBuffer(e)||e instanceof c}var d=Object.create(hc());d.inherits=Y();var f=require(`util`),p=void 0;p=f&&f.debuglog?f.debuglog(`stream`):function(){};var m=Nc(),h=Pc(),g;d.inherits(x,o);var v=[`error`,`close`,`destroy`,`pause`,`resume`];function y(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):r(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function b(e,t){i||=Ic(),e||={};var n=t instanceof i;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,a=e.readableHighWaterMark,o=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(g||=Lc().StringDecoder,this.decoder=new g(e.encoding),this.encoding=e.encoding)}function x(e){if(i||=Ic(),!(this instanceof x))return new x(e);this._readableState=new b(e,this),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),o.call(this)}Object.defineProperty(x.prototype,`destroyed`,{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=h.destroy,x.prototype._undestroy=h.undestroy,x.prototype._destroy=function(e,t){this.push(null),t(e)},x.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=s.from(e,t),t=``),r=!0),S(this,e,t,!1,r)},x.prototype.unshift=function(e){return S(this,e,null,!0,!1)};function S(e,t,n,r,i){var a=e._readableState;if(t===null)a.reading=!1,k(e,a);else{var o;i||(o=w(a,t)),o?e.emit(`error`,o):a.objectMode||t&&t.length>0?(typeof t!=`string`&&!a.objectMode&&Object.getPrototypeOf(t)!==s.prototype&&(t=l(t)),r?a.endEmitted?e.emit(`error`,Error(`stream.unshift() after end event`)):C(e,a,t,!0):a.ended?e.emit(`error`,Error(`stream.push() after EOF`)):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||t.length!==0?C(e,a,t,!1):M(e,a)):C(e,a,t,!1))):r||(a.reading=!1)}return T(a)}function C(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(e.emit(`data`,n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&A(e)),M(e,t)}function w(e,t){var n;return!u(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=TypeError(`Invalid non-string/buffer chunk`)),n}function T(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}x.prototype.isPaused=function(){return this._readableState.flowing===!1},x.prototype.setEncoding=function(e){return g||=Lc().StringDecoder,this._readableState.decoder=new g(e),this._readableState.encoding=e,this};var E=8388608;function D(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function O(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=D(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}x.prototype.read=function(e){p(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?te(this):A(this),null;if(e=O(e,t),e===0&&t.ended)return t.length===0&&te(this),null;var r=t.needReadable;p(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,p(`length less than watermark`,r)),t.ended||t.reading?(r=!1,p(`reading or ended`,r)):r&&(p(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=O(n,t)));var i=e>0?ee(e,t):null;return i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&te(this)),i!==null&&this.emit(`data`,i),i};function k(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,A(e)}}function A(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p(`emitReadable`,t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(j,e):j(e))}function j(e){p(`emit readable`),e.emit(`readable`),R(e)}function M(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(N,e,t))}function N(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p(`maybeReadMore read 0`),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}x.prototype._read=function(e){this.emit(`error`,Error(`_read() is not implemented`))},x.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,p(`pipe count=%d opts=%j`,i.pipesCount,t);var o=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr?c:b;i.endEmitted?n.nextTick(o):r.once(`end`,o),e.on(`unpipe`,s);function s(e,t){p(`onunpipe`),e===r&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,d())}function c(){p(`onend`),e.end()}var l=P(r);e.on(`drain`,l);var u=!1;function d(){p(`cleanup`),e.removeListener(`close`,g),e.removeListener(`finish`,v),e.removeListener(`drain`,l),e.removeListener(`error`,h),e.removeListener(`unpipe`,s),r.removeListener(`end`,c),r.removeListener(`end`,b),r.removeListener(`data`,m),u=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}var f=!1;r.on(`data`,m);function m(t){p(`ondata`),f=!1,!1===e.write(t)&&!f&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&H(i.pipes,e)!==-1)&&!u&&(p(`false write response, pause`,i.awaitDrain),i.awaitDrain++,f=!0),r.pause())}function h(t){p(`onerror`,t),b(),e.removeListener(`error`,h),a(e,`error`)===0&&e.emit(`error`,t)}y(e,`error`,h);function g(){e.removeListener(`finish`,v),b()}e.once(`close`,g);function v(){p(`onfinish`),e.removeListener(`close`,g),b()}e.once(`finish`,v);function b(){p(`unpipe`),r.unpipe(e)}return e.emit(`pipe`,r),i.flowing||(p(`pipe resume`),r.resume()),e};function P(e){return function(){var t=e._readableState;p(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&a(e,`data`)&&(t.flowing=!0,R(e))}}x.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=H(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n),this)},x.prototype.on=function(e,t){var r=o.prototype.on.call(this,e,t);if(e===`data`)this._readableState.flowing!==!1&&this.resume();else if(e===`readable`){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&A(this):n.nextTick(F,this))}return r},x.prototype.addListener=x.prototype.on;function F(e){p(`readable nexttick read 0`),e.read(0)}x.prototype.resume=function(){var e=this._readableState;return e.flowing||(p(`resume`),e.flowing=!0,I(this,e)),this};function I(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(L,e,t))}function L(e,t){t.reading||(p(`resume read 0`),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit(`resume`),R(e),t.flowing&&!t.reading&&e.read(0)}x.prototype.pause=function(){return p(`call pause flowing=%j`,this._readableState.flowing),!1!==this._readableState.flowing&&(p(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this};function R(e){var t=e._readableState;for(p(`flow`,t.flowing);t.flowing&&e.read()!==null;);}x.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(p(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){p(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<v.length;a++)e.on(v[a],this.emit.bind(this,v[a]));return this._read=function(t){p(`wrapped _read`,t),r&&(r=!1,e.resume())},this},Object.defineProperty(x.prototype,`readableHighWaterMark`,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),x._fromList=ee;function ee(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=z(e,t.buffer,t.decoder),n}function z(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?B(e,t):V(e,t),r}function B(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),e-=o,e===0){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}function V(e,t){var n=s.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),e-=o,e===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}function te(e){var t=e._readableState;if(t.length>0)throw Error(`"endReadable()" called on non-empty stream`);t.endEmitted||(t.ended=!0,n.nextTick(ne,t,e))}function ne(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`))}function H(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}})),zc=e.t(((e,t)=>{t.exports=a;var n=Ic(),r=Object.create(hc());r.inherits=Y(),r.inherits(a,n);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit(`error`,Error(`write callback called multiple times`));n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,o)}function o(){var e=this;typeof this._flush==`function`?this._flush(function(t,n){s(e,t,n)}):s(this,null,null)}a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw Error(`_transform() is not implemented`)},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit(`close`)})};function s(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw Error(`Calling transform done when ws.length != 0`);if(e._transformState.transforming)throw Error(`Calling transform done when still transforming`);return e.push(null)}})),Bc=e.t(((e,t)=>{t.exports=i;var n=zc(),r=Object.create(hc());r.inherits=Y(),r.inherits(i,n);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}i.prototype._transform=function(e,t,n){n(null,e)}})),Vc=e.t(((e,t)=>{var n=require(`stream`);process.env.READABLE_STREAM===`disable`&&n?(t.exports=n,e=t.exports=n.Readable,e.Readable=n.Readable,e.Writable=n.Writable,e.Duplex=n.Duplex,e.Transform=n.Transform,e.PassThrough=n.PassThrough,e.Stream=n):(e=t.exports=Rc(),e.Stream=n||e,e.Readable=e,e.Writable=Fc(),e.Duplex=Ic(),e.Transform=zc(),e.PassThrough=Bc())})),Hc=e.t(((e,t)=>{var n=9007199254740991,r=`[object Arguments]`,i=`[object Function]`,a=`[object GeneratorFunction]`,o=typeof global==`object`&&global&&global.Object===Object&&global,s=typeof self==`object`&&self&&self.Object===Object&&self,c=o||s||Function(`return this`)();function l(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var u=Object.prototype,d=u.hasOwnProperty,f=u.toString,p=c.Symbol,m=u.propertyIsEnumerable,h=p?p.isConcatSpreadable:void 0;function g(e,t,n,r,i){var a=-1,o=e.length;for(n||=v,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?g(s,t-1,n,r,i):l(i,s):r||(i[i.length]=s)}return i}function v(e){return x(e)||b(e)||!!(h&&e&&e[h])}function y(e){return e&&e.length?g(e,1):[]}function b(e){return C(e)&&d.call(e,`callee`)&&(!m.call(e,`callee`)||f.call(e)==r)}var x=Array.isArray;function S(e){return e!=null&&T(e.length)&&!w(e)}function C(e){return D(e)&&S(e)}function w(e){var t=E(e)?f.call(e):``;return t==i||t==a}function T(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}function E(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function D(e){return!!e&&typeof e==`object`}t.exports=y})),Uc=e.t(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=9007199254740991,a=`[object Arguments]`,o=`[object Function]`,s=`[object GeneratorFunction]`,c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)();function p(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function m(e,t){return!!(e&&e.length)&&b(e,t,0)>-1}function h(e,t,n){for(var r=-1,i=e?e.length:0;++r<i;)if(n(t,e[r]))return!0;return!1}function g(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function v(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function y(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function b(e,t,n){if(t!==t)return y(e,x,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function x(e){return e!==e}function S(e){return function(t){return e(t)}}function C(e,t){return e.has(t)}function w(e,t){return e?.[t]}function T(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}var E=Array.prototype,D=Function.prototype,O=Object.prototype,k=f[`__core-js_shared__`],A=function(){var e=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),j=D.toString,M=O.hasOwnProperty,N=O.toString,P=RegExp(`^`+j.call(M).replace(c,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),F=f.Symbol,I=O.propertyIsEnumerable,L=E.splice,R=F?F.isConcatSpreadable:void 0,ee=Math.max,z=we(f,`Map`),B=we(Object,`create`);function V(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function te(){this.__data__=B?B(null):{}}function ne(e){return this.has(e)&&delete this.__data__[e]}function H(e){var t=this.__data__;if(B){var n=t[e];return n===r?void 0:n}return M.call(t,e)?t[e]:void 0}function re(e){var t=this.__data__;return B?t[e]!==void 0:M.call(t,e)}function ie(e,t){var n=this.__data__;return n[e]=B&&t===void 0?r:t,this}V.prototype.clear=te,V.prototype.delete=ne,V.prototype.get=H,V.prototype.has=re,V.prototype.set=ie;function U(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ae(){this.__data__=[]}function oe(e){var t=this.__data__,n=ve(t,e);return n<0?!1:(n==t.length-1?t.pop():L.call(t,n,1),!0)}function se(e){var t=this.__data__,n=ve(t,e);return n<0?void 0:t[n][1]}function ce(e){return ve(this.__data__,e)>-1}function le(e,t){var n=this.__data__,r=ve(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}U.prototype.clear=ae,U.prototype.delete=oe,U.prototype.get=se,U.prototype.has=ce,U.prototype.set=le;function ue(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function de(){this.__data__={hash:new V,map:new(z||U),string:new V}}function W(e){return Ce(this,e).delete(e)}function fe(e){return Ce(this,e).get(e)}function pe(e){return Ce(this,e).has(e)}function me(e,t){return Ce(this,e).set(e,t),this}ue.prototype.clear=de,ue.prototype.delete=W,ue.prototype.get=fe,ue.prototype.has=pe,ue.prototype.set=me;function he(e){var t=-1,n=e?e.length:0;for(this.__data__=new ue;++t<n;)this.add(e[t])}function ge(e){return this.__data__.set(e,r),this}function _e(e){return this.__data__.has(e)}he.prototype.add=he.prototype.push=ge,he.prototype.has=_e;function ve(e,t){for(var n=e.length;n--;)if(Ae(e[n][0],t))return n;return-1}function ye(e,t,r,i){var a=-1,o=m,s=!0,c=e.length,l=[],u=t.length;if(!c)return l;r&&(t=g(t,S(r))),i?(o=h,s=!1):t.length>=n&&(o=C,s=!1,t=new he(t));outer:for(;++a<c;){var d=e[a],f=r?r(d):d;if(d=i||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue outer;l.push(d)}else o(t,f,i)||l.push(d)}return l}function be(e,t,n,r,i){var a=-1,o=e.length;for(n||=Te,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?be(s,t-1,n,r,i):v(i,s):r||(i[i.length]=s)}return i}function xe(e){return!Le(e)||De(e)?!1:(Fe(e)||T(e)?P:l).test(Oe(e))}function Se(e,t){return t=ee(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=ee(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];r=-1;for(var o=Array(t+1);++r<t;)o[r]=n[r];return o[t]=a,p(e,this,o)}}function Ce(e,t){var n=e.__data__;return Ee(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function we(e,t){var n=w(e,t);return xe(n)?n:void 0}function Te(e){return Me(e)||je(e)||!!(R&&e&&e[R])}function Ee(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function De(e){return!!A&&A in e}function Oe(e){if(e!=null){try{return j.call(e)}catch{}try{return e+``}catch{}}return``}var ke=Se(function(e,t){return Pe(e)?ye(e,be(t,1,Pe,!0)):[]});function Ae(e,t){return e===t||e!==e&&t!==t}function je(e){return Pe(e)&&M.call(e,`callee`)&&(!I.call(e,`callee`)||N.call(e)==a)}var Me=Array.isArray;function Ne(e){return e!=null&&Ie(e.length)&&!Fe(e)}function Pe(e){return Re(e)&&Ne(e)}function Fe(e){var t=Le(e)?N.call(e):``;return t==o||t==s}function Ie(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=i}function Le(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Re(e){return!!e&&typeof e==`object`}t.exports=ke})),Wc=e.t(((e,t)=>{var n=`[object Object]`;function r(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function i(e,t){return function(n){return e(t(n))}}var a=Function.prototype,o=Object.prototype,s=a.toString,c=o.hasOwnProperty,l=s.call(Object),u=o.toString,d=i(Object.getPrototypeOf,Object);function f(e){return!!e&&typeof e==`object`}function p(e){if(!f(e)||u.call(e)!=n||r(e))return!1;var t=d(e);if(t===null)return!0;var i=c.call(t,`constructor`)&&t.constructor;return typeof i==`function`&&i instanceof i&&s.call(i)==l}t.exports=p})),Gc=e.t((e=>{var t=require(`path`),n=process.platform===`win32`,r=require(`fs`),i=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(){var e;if(i){var t=Error();e=n}else e=r;return e;function n(e){e&&(t.message=e.message,e=t,r(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)}}}}function o(e){return typeof e==`function`?e:a()}if(t.normalize,n)var s=/(.*?)(?:[\/\\]+|$)/g;else var s=/(.*?)(?:[\/]+|$)/g;if(n)var c=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var c=/^[\/]*/;e.realpathSync=function(e,i){if(e=t.resolve(e),i&&Object.prototype.hasOwnProperty.call(i,e))return i[e];var a=e,o={},l={},u,d,f,p;m();function m(){var t=c.exec(e);u=t[0].length,d=t[0],f=t[0],p=``,n&&!l[f]&&(r.lstatSync(f),l[f]=!0)}for(;u<e.length;){s.lastIndex=u;var h=s.exec(e);if(p=d,d+=h[0],f=p+h[1],u=s.lastIndex,!(l[f]||i&&i[f]===f)){var g;if(i&&Object.prototype.hasOwnProperty.call(i,f))g=i[f];else{var v=r.lstatSync(f);if(!v.isSymbolicLink()){l[f]=!0,i&&(i[f]=f);continue}var y=null;if(!n){var b=v.dev.toString(32)+`:`+v.ino.toString(32);o.hasOwnProperty(b)&&(y=o[b])}y===null&&(r.statSync(f),y=r.readlinkSync(f)),g=t.resolve(p,y),i&&(i[f]=g),n||(o[b]=y)}e=t.resolve(g,e.slice(u)),m()}}return i&&(i[a]=e),e},e.realpath=function(e,i,a){if(typeof a!=`function`&&(a=o(i),i=null),e=t.resolve(e),i&&Object.prototype.hasOwnProperty.call(i,e))return process.nextTick(a.bind(null,null,i[e]));var l=e,u={},d={},f,p,m,h;g();function g(){var t=c.exec(e);f=t[0].length,p=t[0],m=t[0],h=``,n&&!d[m]?r.lstat(m,function(e){if(e)return a(e);d[m]=!0,v()}):process.nextTick(v)}function v(){if(f>=e.length)return i&&(i[l]=e),a(null,e);s.lastIndex=f;var t=s.exec(e);return h=p,p+=t[0],m=h+t[1],f=s.lastIndex,d[m]||i&&i[m]===m?process.nextTick(v):i&&Object.prototype.hasOwnProperty.call(i,m)?x(i[m]):r.lstat(m,y)}function y(e,t){if(e)return a(e);if(!t.isSymbolicLink())return d[m]=!0,i&&(i[m]=m),process.nextTick(v);if(!n){var o=t.dev.toString(32)+`:`+t.ino.toString(32);if(u.hasOwnProperty(o))return b(null,u[o],m)}r.stat(m,function(e){if(e)return a(e);r.readlink(m,function(e,t){n||(u[o]=t),b(e,t)})})}function b(e,n,r){if(e)return a(e);var o=t.resolve(h,n);i&&(i[r]=o),x(o)}function x(n){e=t.resolve(n,e.slice(f)),g()}}})),Kc=e.t(((e,t)=>{t.exports=l,l.realpath=l,l.sync=u,l.realpathSync=u,l.monkeypatch=d,l.unmonkeypatch=f;var n=require(`fs`),r=n.realpath,i=n.realpathSync,a=process.version,o=/^v[0-5]\./.test(a),s=Gc();function c(e){return e&&e.syscall===`realpath`&&(e.code===`ELOOP`||e.code===`ENOMEM`||e.code===`ENAMETOOLONG`)}function l(e,t,n){if(o)return r(e,t,n);typeof t==`function`&&(n=t,t=null),r(e,t,function(r,i){c(r)?s.realpath(e,t,n):n(r,i)})}function u(e,t){if(o)return i(e,t);try{return i(e,t)}catch(n){if(c(n))return s.realpathSync(e,t);throw n}}function d(){n.realpath=l,n.realpathSync=u}function f(){n.realpath=r,n.realpathSync=i}})),qc=e.t(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i<e.length;i++){var a=t(e[i],i);n(a)?r.push.apply(r,a):r.push(a)}return r};var n=Array.isArray||function(e){return Object.prototype.toString.call(e)===`[object Array]`}})),Jc=e.t(((e,t)=>{var n=qc(),r=sc();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),y(u(e),n,!0).map(d)}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function v(e,t){return e>=t}function y(e,t,i){var a=[],s=r(`{`,`}`,e);if(!s||/\$$/.test(s.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,p=s.body.indexOf(`,`)>=0;if(!d&&!p)return s.post.match(/,(?!,).*\}/)?(e=s.pre+`{`+s.body+o+s.post,y(e,t,!0)):[e];var b;if(d)b=s.body.split(/\.\./);else if(b=f(s.body),b.length===1&&(b=y(b[0],t,!1).map(m),b.length===1)){var x=s.post.length?y(s.post,t,!1):[``];return x.map(function(e){return s.pre+b[0]+e})}var S=s.pre,x=s.post.length?y(s.post,t,!1):[``],C;if(d){var w=l(b[0]),T=l(b[1]),E=Math.max(b[0].length,b[1].length),D=b.length==3?Math.max(Math.abs(l(b[2])),1):1,O=g;T<w&&(D*=-1,O=v);var k=b.some(h);C=[];for(var A=w;O(A,T);A+=D){var j;if(u)j=String.fromCharCode(A),j===`\\`&&(j=``);else if(j=String(A),k){var M=E-j.length;if(M>0){var N=Array(M+1).join(`0`);j=A<0?`-`+N+j.slice(1):N+j}}C.push(j)}}else C=n(b,function(e){return y(e,t,!1)});for(var P=0;P<C.length;P++)for(var F=0;F<x.length&&a.length<t;F++){var I=S+C[P]+x[F];(!i||d||I)&&a.push(I)}return a}})),Yc=e.t(((e,t)=>{t.exports=h,h.Minimatch=g;var n=function(){try{return require(`path`)}catch{}}()||{sep:`/`};h.sep=n.sep;var r=h.GLOBSTAR=g.GLOBSTAR={},i=Jc(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;h.filter=p;function p(e,t){return t||={},function(n,r,i){return h(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}h.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return h;var t=h,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},g.defaults=function(e){return h.defaults(e).Minimatch};function h(e,t,n){return S(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new g(t,n).match(e)}function g(e,t){if(!(this instanceof g))return new g(e,t);S(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}g.prototype.debug=function(){},g.prototype.make=v;function v(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}g.prototype.parseNegate=y;function y(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;i<a&&e.charAt(i)===`!`;i++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}}h.braceExpand=function(e,t){return b(e,t)},g.prototype.braceExpand=b;function b(e,t){return t||=this instanceof g?this.options:{},e=e===void 0?this.pattern:e,S(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:i(e)}var x=1024*64,S=function(e){if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>x)throw TypeError(`pattern is too long`)};g.prototype.parse=w;var C={};function w(e,t){S(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,v=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,y=this;function b(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}y.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var x=0,w=e.length,T;x<w&&(T=e.charAt(x));x++){if(this.debug(`%s %s %s %j`,e,x,i,T),l&&u[T]){i+=`\\`+T,l=!1;continue}switch(T){case`/`:return!1;case`\\`:b(),l=!0;continue;case`?`:case`*`:case`+`:case`@`:case`!`:if(this.debug(`%s %s %s %j <-- stateChar`,e,x,i,T),m){this.debug(` in class`),T===`!`&&x===g+1&&(T=`^`),i+=T;continue}if(T===`*`&&p===`*`)continue;y.debug(`call clearStateChar %j`,p),b(),p=T,n.noext&&b();continue;case`(`:if(m){i+=`(`;continue}if(!p){i+=`\\(`;continue}d.push({type:p,start:x-1,reStart:i.length,open:a[p].open,close:a[p].close}),i+=p===`!`?`(?:(?!(?:`:`(?:`,this.debug(`plType %j %j`,p,i),p=!1;continue;case`)`:if(m||!d.length){i+=`\\)`;continue}b(),c=!0;var D=d.pop();i+=D.close,D.type===`!`&&f.push(D),D.reEnd=i.length;continue;case`|`:if(m||!d.length||l){i+=`\\|`,l=!1;continue}b(),i+=`|`;continue;case`[`:if(b(),m){i+=`\\`+T;continue}m=!0,g=x,h=i.length,i+=T;continue;case`]`:if(x===g+1||!m){i+=`\\`+T,l=!1;continue}var O=e.substring(g+1,x);try{RegExp(`[`+O+`]`)}catch{var k=this.parse(O,C);i=i.substr(0,h)+`\\[`+k[0]+`\\]`,c||=k[1],m=!1;continue}c=!0,m=!1,i+=T;continue;default:b(),l?l=!1:u[T]&&!(T===`^`&&m)&&(i+=`\\`),i+=T}}for(m&&(O=e.substr(g+1),k=this.parse(O,C),i=i.substr(0,h)+`\\[`+k[0],c||=k[1]),D=d.pop();D;D=d.pop()){var A=i.slice(D.reStart+D.open.length);this.debug(`setting tail`,i,D),A=A.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,n){return n||=`\\`,t+t+n+`|`}),this.debug(`tail=%j
%s`,A,A,D,i);var j=D.type===`*`?s:D.type===`?`?o:`\\`+D.type;c=!0,i=i.slice(0,D.reStart)+j+`\\(`+A}b(),l&&(i+=`\\\\`);var M=!1;switch(i.charAt(0)){case`[`:case`.`:case`(`:M=!0}for(var N=f.length-1;N>-1;N--){var P=f[N],F=i.slice(0,P.reStart),I=i.slice(P.reStart,P.reEnd-8),L=i.slice(P.reEnd-8,P.reEnd),R=i.slice(P.reEnd);L+=R;var ee=F.split(`(`).length-1,z=R;for(x=0;x<ee;x++)z=z.replace(/\)[+*?]?/,``);R=z;var B=``;R===``&&t!==C&&(B=`$`),i=F+I+R+B+L}if(i!==``&&c&&(i=`(?=.)`+i),M&&(i=v+i),t===C)return[i,c];if(!c)return E(e);var V=n.nocase?`i`:``;try{var te=RegExp(`^`+i+`$`,V)}catch{return RegExp(`$.`)}return te._glob=e,te._src=i,te}h.makeRe=function(e,t){return new g(e,t||{}).makeRe()},g.prototype.makeRe=T;function T(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?s:t.dot?c:l,i=t.nocase?`i`:``,a=e.map(function(e){return e.map(function(e){return e===r?n:typeof e==`string`?D(e):e._src}).join(`\\/`)}).join(`|`);a=`^(?:`+a+`)$`,this.negate&&(a=`^(?!`+a+`).*$`);try{this.regexp=new RegExp(a,i)}catch{this.regexp=!1}return this.regexp}h.match=function(e,t,n){n||={};var r=new g(t,n);return e=e.filter(function(e){return r.match(e)}),r.options.nonull&&!e.length&&e.push(t),e},g.prototype.match=function(e,t){if(t===void 0&&(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(f),this.debug(this.pattern,`split`,e);var i=this.set;this.debug(this.pattern,`set`,i);var a,o;for(o=e.length-1;o>=0&&(a=e[o],!a);o--);for(o=0;o<i.length;o++){var s=i[o],c=e;if(r.matchBase&&s.length===1&&(c=[a]),this.matchOne(c,s,t))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate},g.prototype.matchOne=function(e,t,n){return t.indexOf(r)===-1?this._matchOne(e,t,n,0,0):this._matchGlobstar(e,t,n,0,0)},g.prototype._matchGlobstar=function(e,t,n,i,a){var o,s=-1;for(o=a;o<t.length;o++)if(t[o]===r){s=o;break}var c=-1;for(o=t.length-1;o>=0;o--)if(t[o]===r){c=o;break}var l=t.slice(a,s),u=n?t.slice(s+1):t.slice(s+1,c),d=n?[]:t.slice(c+1);if(l.length){var f=e.slice(i,i+l.length);if(!this._matchOne(f,l,n,0,0))return!1;i+=l.length}var p=0;if(d.length){if(d.length+i>e.length)return!1;var m=e.length-d.length;if(this._matchOne(e,d,n,m,0))p=d.length;else{if(e[e.length-1]!==``||i+d.length===e.length||(m--,!this._matchOne(e,d,n,m,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(o=i;o<e.length-p;o++){var g=String(e[o]);if(h=!0,g===`.`||g===`..`||!this.options.dot&&g.charAt(0)===`.`)return!1}return n||h}for(var v=[[[],0]],y=v[0],b=0,x=[0],S=0;S<u.length;S++){var C=u[S];C===r?(x.push(b),y=[[],0],v.push(y)):(y[0].push(C),b++)}for(var w=v.length-1,T=e.length-p,E=0;E<v.length;E++)v[E][1]=T-(x[w--]+v[E][0].length);return!!this._matchGlobStarBodySections(e,v,i,0,n,0,!!p)},g.prototype._matchGlobStarBodySections=function(e,t,n,r,i,a,o){var s=t[r];if(!s){for(var c=n;c<e.length;c++){o=!0;var l=e[c];if(l===`.`||l===`..`||!this.options.dot&&l.charAt(0)===`.`)return!1}return o}for(var u=s[0],d=s[1];n<=d;){if(this._matchOne(e.slice(0,n+u.length),u,i,n,0)&&a<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(e,t,n+u.length,r+1,i,a+1,o);if(f!==!1)return f}var l=e[n];if(l===`.`||l===`..`||!this.options.dot&&l.charAt(0)===`.`)return!1;n++}return i||null},g.prototype._matchOne=function(e,t,n,i,a){var o,s,c,l;for(o=i,s=a,c=e.length,l=t.length;o<c&&s<l;o++,s++){this.debug(`matchOne loop`);var u=t[s],d=e[o];if(this.debug(t,u,d),u===!1||u===r)return!1;var f;if(typeof u==`string`?(f=d===u,this.debug(`string match`,u,d,f)):(f=d.match(u),this.debug(`pattern match`,u,d,f)),!f)return!1}if(o===c&&s===l)return!0;if(o===c)return n;if(s===l)return o===c-1&&e[o]===``;throw Error(`wtf?`)};function E(e){return e.replace(/\\(.)/g,`$1`)}function D(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`)}})),Xc=e.t(((e,t)=>{function n(e){return e.charAt(0)===`/`}function r(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),n=t[1]||``,r=!!(n&&n.charAt(1)!==`:`);return!!(t[2]||r)}t.exports=process.platform===`win32`?r:n,t.exports.posix=n,t.exports.win32=r})),Zc=e.t((e=>{e.setopts=u,e.ownProp=t,e.makeAbs=p,e.finish=d,e.mark=f,e.isIgnored=m,e.childrenIgnored=h;function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=require(`fs`),r=require(`path`),i=Yc(),a=Xc(),o=i.Minimatch;function s(e,t){return e.localeCompare(t,`en`)}function c(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(l))}function l(e){var t=null;return e.slice(-3)===`/**`&&(t=new o(e.replace(/(\/\*\*)+$/,``),{dot:!0})),{matcher:new o(e,{dot:!0}),gmatcher:t}}function u(e,i,s){if(s||={},s.matchBase&&i.indexOf(`/`)===-1){if(s.noglobstar)throw Error(`base matching requires globstar`);i=`**/`+i}e.silent=!!s.silent,e.pattern=i,e.strict=s.strict!==!1,e.realpath=!!s.realpath,e.realpathCache=s.realpathCache||Object.create(null),e.follow=!!s.follow,e.dot=!!s.dot,e.mark=!!s.mark,e.nodir=!!s.nodir,e.nodir&&(e.mark=!0),e.sync=!!s.sync,e.nounique=!!s.nounique,e.nonull=!!s.nonull,e.nosort=!!s.nosort,e.nocase=!!s.nocase,e.stat=!!s.stat,e.noprocess=!!s.noprocess,e.absolute=!!s.absolute,e.fs=s.fs||n,e.maxLength=s.maxLength||1/0,e.cache=s.cache||Object.create(null),e.statCache=s.statCache||Object.create(null),e.symlinks=s.symlinks||Object.create(null),c(e,s),e.changedCwd=!1;var l=process.cwd();t(s,`cwd`)?(e.cwd=r.resolve(s.cwd),e.changedCwd=e.cwd!==l):e.cwd=l,e.root=s.root||r.resolve(e.cwd,`/`),e.root=r.resolve(e.root),process.platform===`win32`&&(e.root=e.root.replace(/\\/g,`/`)),e.cwdAbs=a(e.cwd)?e.cwd:p(e,e.cwd),process.platform===`win32`&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,`/`)),e.nomount=!!s.nomount,s.nonegate=!0,s.nocomment=!0,s.allowWindowsEscape=!1,e.minimatch=new o(i,s),e.options=e.minimatch.options}function d(e){for(var t=e.nounique,n=t?[]:Object.create(null),r=0,i=e.matches.length;r<i;r++){var a=e.matches[r];if(!a||Object.keys(a).length===0){if(e.nonull){var o=e.minimatch.globSet[r];t?n.push(o):n[o]=!0}}else{var c=Object.keys(a);t?n.push.apply(n,c):c.forEach(function(e){n[e]=!0})}}if(t||(n=Object.keys(n)),e.nosort||(n=n.sort(s)),e.mark){for(var r=0;r<n.length;r++)n[r]=e._mark(n[r]);e.nodir&&(n=n.filter(function(t){var n=!/\/$/.test(t),r=e.cache[t]||e.cache[p(e,t)];return n&&r&&(n=r!==`DIR`&&!Array.isArray(r)),n}))}e.ignore.length&&(n=n.filter(function(t){return!m(e,t)})),e.found=n}function f(e,t){var n=p(e,t),r=e.cache[n],i=t;if(r){var a=r===`DIR`||Array.isArray(r),o=t.slice(-1)===`/`;if(a&&!o?i+=`/`:!a&&o&&(i=i.slice(0,-1)),i!==t){var s=p(e,i);e.statCache[s]=e.statCache[n],e.cache[s]=e.cache[n]}}return i}function p(e,t){var n=t;return n=t.charAt(0)===`/`?r.join(e.root,t):a(t)||t===``?t:e.changedCwd?r.resolve(e.cwd,t):r.resolve(t),process.platform===`win32`&&(n=n.replace(/\\/g,`/`)),n}function m(e,t){return e.ignore.length?e.ignore.some(function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))}):!1}function h(e,t){return e.ignore.length?e.ignore.some(function(e){return!!(e.gmatcher&&e.gmatcher.match(t))}):!1}})),Qc=e.t(((e,t)=>{t.exports=f,f.GlobSync=p;var n=Kc(),r=Yc();r.Minimatch,el().Glob,require(`util`);var i=require(`path`),a=require(`assert`),o=Xc(),s=Zc(),c=s.setopts,l=s.ownProp,u=s.childrenIgnored,d=s.isIgnored;function f(e,t){if(typeof t==`function`||arguments.length===3)throw TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);return new p(e,t).found}function p(e,t){if(!e)throw Error(`must provide pattern`);if(typeof t==`function`||arguments.length===3)throw TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof p))return new p(e,t);if(c(this,e,t),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=Array(n);for(var r=0;r<n;r++)this._process(this.minimatch.set[r],r,!1);this._finish()}p.prototype._finish=function(){if(a.ok(this instanceof p),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);var o=n.realpathSync(a,e.realpathCache);i[o]=!0}catch(t){if(t.syscall===`stat`)i[e._makeAbs(a)]=!0;else throw t}})}s.finish(this)},p.prototype._process=function(e,t,n){a.ok(this instanceof p);for(var i=0;typeof e[i]==`string`;)i++;var s;switch(i){case e.length:this._processSimple(e.join(`/`),t);return;case 0:s=null;break;default:s=e.slice(0,i).join(`/`);break}var c=e.slice(i),l;s===null?l=`.`:((o(s)||o(e.map(function(e){return typeof e==`string`?e:`[*]`}).join(`/`)))&&(!s||!o(s))&&(s=`/`+s),l=s);var d=this._makeAbs(l);u(this,l)||(c[0]===r.GLOBSTAR?this._processGlobStar(s,l,d,c,t,n):this._processReaddir(s,l,d,c,t,n))},p.prototype._processReaddir=function(e,t,n,r,a,o){var s=this._readdir(n,o);if(s){for(var c=r[0],l=!!this.minimatch.negate,u=c._glob,d=this.dot||u.charAt(0)===`.`,f=[],p=0;p<s.length;p++){var m=s[p];(m.charAt(0)!==`.`||d)&&(l&&!e?!m.match(c):m.match(c))&&f.push(m)}var h=f.length;if(h!==0){if(r.length===1&&!this.mark&&!this.stat){this.matches[a]||(this.matches[a]=Object.create(null));for(var p=0;p<h;p++){var m=f[p];e&&(m=e.slice(-1)===`/`?e+m:e+`/`+m),m.charAt(0)===`/`&&!this.nomount&&(m=i.join(this.root,m)),this._emitMatch(a,m)}return}r.shift();for(var p=0;p<h;p++){var m=f[p],g=e?[e,m]:[m];this._process(g.concat(r),a,o)}}}},p.prototype._emitMatch=function(e,t){if(!d(this,t)){var n=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=n),!this.matches[e][t]){if(this.nodir){var r=this.cache[n];if(r===`DIR`||Array.isArray(r))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},p.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,n;try{n=this.fs.lstatSync(e)}catch(e){if(e.code===`ENOENT`)return null}var r=n&&n.isSymbolicLink();return this.symlinks[e]=r,!r&&n&&!n.isDirectory()?this.cache[e]=`FILE`:t=this._readdir(e,!1),t},p.prototype._readdir=function(e,t){if(t&&!l(this.symlinks,e))return this._readdirInGlobStar(e);if(l(this.cache,e)){var n=this.cache[e];if(!n||n===`FILE`)return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},p.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var r=t[n];r=e===`/`?e+r:e+`/`+r,this.cache[r]=!0}return this.cache[e]=t,t},p.prototype._readdirError=function(e,t){switch(t.code){case`ENOTSUP`:case`ENOTDIR`:var n=this._makeAbs(e);if(this.cache[n]=`FILE`,n===this.cwdAbs){var r=Error(t.code+` invalid cwd `+this.cwd);throw r.path=this.cwd,r.code=t.code,r}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);break}},p.prototype._processGlobStar=function(e,t,n,r,i,a){var o=this._readdir(n,a);if(o){var s=r.slice(1),c=e?[e]:[],l=c.concat(s);this._process(l,i,!1);var u=o.length;if(!(this.symlinks[n]&&a)){for(var d=0;d<u;d++)if(!(o[d].charAt(0)===`.`&&!this.dot)){var f=c.concat(o[d],s);this._process(f,i,!0);var p=c.concat(o[d],r);this._process(p,i,!0)}}}},p.prototype._processSimple=function(e,t){var n=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),n){if(e&&o(e)&&!this.nomount){var r=/[\/\\]$/.test(e);e.charAt(0)===`/`?e=i.join(this.root,e):(e=i.resolve(this.root,e),r&&(e+=`/`))}process.platform===`win32`&&(e=e.replace(/\\/g,`/`)),this._emitMatch(t,e)}},p.prototype._stat=function(e){var t=this._makeAbs(e),n=e.slice(-1)===`/`;if(e.length>this.maxLength)return!1;if(!this.stat&&l(this.cache,t)){var r=this.cache[t];if(Array.isArray(r)&&(r=`DIR`),!n||r===`DIR`)return r;if(n&&r===`FILE`)return!1}var i=this.statCache[t];if(!i){var a;try{a=this.fs.lstatSync(t)}catch(e){if(e&&(e.code===`ENOENT`||e.code===`ENOTDIR`))return this.statCache[t]=!1,!1}if(a&&a.isSymbolicLink())try{i=this.fs.statSync(t)}catch{i=a}else i=a}this.statCache[t]=i;var r=!0;return i&&(r=i.isDirectory()?`DIR`:`FILE`),this.cache[t]=this.cache[t]||r,n&&r===`FILE`?!1:r},p.prototype._mark=function(e){return s.mark(this,e)},p.prototype._makeAbs=function(e){return s.makeAbs(this,e)}})),$c=e.t(((e,n)=>{var r=t.v(),i=Object.create(null),a=t._();n.exports=r(o);function o(e,t){return i[e]?(i[e].push(t),null):(i[e]=[t],s(e))}function s(e){return a(function t(){var n=i[e],r=n.length,a=c(arguments);try{for(var o=0;o<r;o++)n[o].apply(null,a)}finally{n.length>r?(n.splice(0,r),process.nextTick(function(){t.apply(null,a)})):delete i[e]}})}function c(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r]=e[r];return n}})),el=e.t(((e,n)=>{n.exports=y;var r=Kc(),i=Yc();i.Minimatch;var a=Y(),o=require(`events`).EventEmitter,s=require(`path`),c=require(`assert`),l=Xc(),u=Qc(),d=Zc(),f=d.setopts,p=d.ownProp,m=$c();require(`util`);var h=d.childrenIgnored,g=d.isIgnored,v=t._();function y(e,t,n){if(typeof t==`function`&&(n=t,t={}),t||={},t.sync){if(n)throw TypeError(`callback provided to sync glob`);return u(e,t)}return new S(e,t,n)}y.sync=u;var b=y.GlobSync=u.GlobSync;y.glob=y;function x(e,t){if(typeof t!=`object`||!t)return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}y.hasMagic=function(e,t){var n=x({},t);n.noprocess=!0;var r=new S(e,n).minimatch.set;if(!e)return!1;if(r.length>1)return!0;for(var i=0;i<r[0].length;i++)if(typeof r[0][i]!=`string`)return!0;return!1},y.Glob=S,a(S,o);function S(e,t,n){if(typeof t==`function`&&(n=t,t=null),t&&t.sync){if(n)throw TypeError(`callback provided to sync glob`);return new b(e,t)}if(!(this instanceof S))return new S(e,t,n);f(this,e,t),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=Array(r),typeof n==`function`&&(n=v(n),this.on(`error`,n),this.on(`end`,function(e){n(null,e)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(r===0)return s();for(var a=!0,o=0;o<r;o++)this._process(this.minimatch.set[o],o,!1,s);a=!1;function s(){--i._processing,i._processing<=0&&(a?process.nextTick(function(){i._finish()}):i._finish())}}S.prototype._finish=function(){if(c(this instanceof S),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this),this.emit(`end`,this.found)}},S.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var e=this.matches.length;if(e===0)return this._finish();for(var t=this,n=0;n<this.matches.length;n++)this._realpathSet(n,r);function r(){--e===0&&t._finish()}},S.prototype._realpathSet=function(e,t){var n=this.matches[e];if(!n)return t();var i=Object.keys(n),a=this,o=i.length;if(o===0)return t();var s=this.matches[e]=Object.create(null);i.forEach(function(n,i){n=a._makeAbs(n),r.realpath(n,a.realpathCache,function(r,i){r?r.syscall===`stat`?s[n]=!0:a.emit(`error`,r):s[i]=!0,--o===0&&(a.matches[e]=s,t())})})},S.prototype._mark=function(e){return d.mark(this,e)},S.prototype._makeAbs=function(e){return d.makeAbs(this,e)},S.prototype.abort=function(){this.aborted=!0,this.emit(`abort`)},S.prototype.pause=function(){this.paused||(this.paused=!0,this.emit(`pause`))},S.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 n=e[t];this._emitMatch(n[0],n[1])}}if(this._processQueue.length){var r=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<r.length;t++){var i=r[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},S.prototype._process=function(e,t,n,r){if(c(this instanceof S),c(typeof r==`function`),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([e,t,n,r]);return}for(var a=0;typeof e[a]==`string`;)a++;var o;switch(a){case e.length:this._processSimple(e.join(`/`),t,r);return;case 0:o=null;break;default:o=e.slice(0,a).join(`/`);break}var s=e.slice(a),u;o===null?u=`.`:((l(o)||l(e.map(function(e){return typeof e==`string`?e:`[*]`}).join(`/`)))&&(!o||!l(o))&&(o=`/`+o),u=o);var d=this._makeAbs(u);if(h(this,u))return r();s[0]===i.GLOBSTAR?this._processGlobStar(o,u,d,s,t,n,r):this._processReaddir(o,u,d,s,t,n,r)}},S.prototype._processReaddir=function(e,t,n,r,i,a,o){var s=this;this._readdir(n,a,function(c,l){return s._processReaddir2(e,t,n,r,i,a,l,o)})},S.prototype._processReaddir2=function(e,t,n,r,i,a,o,c){if(!o)return c();for(var l=r[0],u=!!this.minimatch.negate,d=l._glob,f=this.dot||d.charAt(0)===`.`,p=[],m=0;m<o.length;m++){var h=o[m];(h.charAt(0)!==`.`||f)&&(u&&!e?!h.match(l):h.match(l))&&p.push(h)}var g=p.length;if(g===0)return c();if(r.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var m=0;m<g;m++){var h=p[m];e&&(h=e===`/`?e+h:e+`/`+h),h.charAt(0)===`/`&&!this.nomount&&(h=s.join(this.root,h)),this._emitMatch(i,h)}return c()}r.shift();for(var m=0;m<g;m++){var h=p[m];e&&(h=e===`/`?e+h:e+`/`+h),this._process([h].concat(r),i,a,c)}c()},S.prototype._emitMatch=function(e,t){if(!this.aborted&&!g(this,t)){if(this.paused){this._emitQueue.push([e,t]);return}var n=l(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=n),!this.matches[e][t]){if(this.nodir){var r=this.cache[n];if(r===`DIR`||Array.isArray(r))return}this.matches[e][t]=!0;var i=this.statCache[n];i&&this.emit(`stat`,t,i),this.emit(`match`,t)}}},S.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,!1,t);var n=`lstat\0`+e,r=this,i=m(n,a);i&&r.fs.lstat(e,i);function a(n,i){if(n&&n.code===`ENOENT`)return t();var a=i&&i.isSymbolicLink();r.symlinks[e]=a,!a&&i&&!i.isDirectory()?(r.cache[e]=`FILE`,t()):r._readdir(e,!1,t)}},S.prototype._readdir=function(e,t,n){if(!this.aborted&&(n=m(`readdir\0`+e+`\0`+t,n),n)){if(t&&!p(this.symlinks,e))return this._readdirInGlobStar(e,n);if(p(this.cache,e)){var r=this.cache[e];if(!r||r===`FILE`)return n();if(Array.isArray(r))return n(null,r)}this.fs.readdir(e,C(this,e,n))}};function C(e,t,n){return function(r,i){r?e._readdirError(t,r,n):e._readdirEntries(t,i,n)}}S.prototype._readdirEntries=function(e,t,n){if(!this.aborted){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var i=t[r];i=e===`/`?e+i:e+`/`+i,this.cache[i]=!0}return this.cache[e]=t,n(null,t)}},S.prototype._readdirError=function(e,t,n){if(!this.aborted){switch(t.code){case`ENOTSUP`:case`ENOTDIR`:var r=this._makeAbs(e);if(this.cache[r]=`FILE`,r===this.cwdAbs){var i=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);break}return n()}},S.prototype._processGlobStar=function(e,t,n,r,i,a,o){var s=this;this._readdir(n,a,function(c,l){s._processGlobStar2(e,t,n,r,i,a,l,o)})},S.prototype._processGlobStar2=function(e,t,n,r,i,a,o,s){if(!o)return s();var c=r.slice(1),l=e?[e]:[],u=l.concat(c);this._process(u,i,!1,s);var d=this.symlinks[n],f=o.length;if(d&&a)return s();for(var p=0;p<f;p++)if(!(o[p].charAt(0)===`.`&&!this.dot)){var m=l.concat(o[p],c);this._process(m,i,!0,s);var h=l.concat(o[p],r);this._process(h,i,!0,s)}s()},S.prototype._processSimple=function(e,t,n){var r=this;this._stat(e,function(i,a){r._processSimple2(e,t,i,a,n)})},S.prototype._processSimple2=function(e,t,n,r,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!r)return i();if(e&&l(e)&&!this.nomount){var a=/[\/\\]$/.test(e);e.charAt(0)===`/`?e=s.join(this.root,e):(e=s.resolve(this.root,e),a&&(e+=`/`))}process.platform===`win32`&&(e=e.replace(/\\/g,`/`)),this._emitMatch(t,e),i()},S.prototype._stat=function(e,t){var n=this._makeAbs(e),r=e.slice(-1)===`/`;if(e.length>this.maxLength)return t();if(!this.stat&&p(this.cache,n)){var i=this.cache[n];if(Array.isArray(i)&&(i=`DIR`),!r||i===`DIR`)return t(null,i);if(r&&i===`FILE`)return t()}var a=this.statCache[n];if(a!==void 0){if(a===!1)return t(null,a);var o=a.isDirectory()?`DIR`:`FILE`;return r&&o===`FILE`?t():t(null,o,a)}var s=this,c=m(`stat\0`+n,l);c&&s.fs.lstat(n,c);function l(r,i){if(i&&i.isSymbolicLink())return s.fs.stat(n,function(r,a){r?s._stat2(e,n,null,i,t):s._stat2(e,n,r,a,t)});s._stat2(e,n,r,i,t)}},S.prototype._stat2=function(e,t,n,r,i){if(n&&(n.code===`ENOENT`||n.code===`ENOTDIR`))return this.statCache[t]=!1,i();var a=e.slice(-1)===`/`;if(this.statCache[t]=r,t.slice(-1)===`/`&&r&&!r.isDirectory())return i(null,!1,r);var o=!0;return r&&(o=r.isDirectory()?`DIR`:`FILE`),this.cache[t]=this.cache[t]||o,a&&o===`FILE`?i():i(null,o,r)}})),tl=e.t(((e,n)=>{var r=s.i(),i=require(`path`),a=Hc(),o=Uc(),c=t.y(),l=Wc(),u=el(),d=n.exports={},f=/[\/\\]/g,p=function(e,t){var n=[];return a(e).forEach(function(e){var r=e.indexOf(`!`)===0;r&&(e=e.slice(1));var i=t(e);n=r?o(n,i):c(n,i)}),n};d.exists=function(){var e=i.join.apply(i,arguments);return r.existsSync(e)},d.expand=function(...e){var t=l(e[0])?e.shift():{},n=Array.isArray(e[0])?e[0]:e;if(n.length===0)return[];var a=p(n,function(e){return u.sync(e,t)});return t.filter&&(a=a.filter(function(e){e=i.join(t.cwd||``,e);try{return typeof t.filter==`function`?t.filter(e):r.statSync(e)[t.filter]()}catch{return!1}})),a},d.expandMapping=function(e,t,n){n=Object.assign({rename:function(e,t){return i.join(e||``,t)}},n);var r=[],a={};return d.expand(n,e).forEach(function(e){var o=e;n.flatten&&(o=i.basename(o)),n.ext&&(o=o.replace(/(\.[^\/]*)?$/,n.ext));var s=n.rename(t,o,n);n.cwd&&(e=i.join(n.cwd,e)),s=s.replace(f,`/`),e=e.replace(f,`/`),a[s]?a[s].src.push(e):(r.push({src:[e],dest:s}),a[s]=r[r.length-1])}),r},d.normalizeFilesArray=function(e){var t=[];return e.forEach(function(e){(`src`in e||`dest`in e)&&t.push(e)}),t.length===0?[]:(t=_(t).chain().forEach(function(e){!(`src`in e)||!e.src||(Array.isArray(e.src)?e.src=a(e.src):e.src=[e.src])}).map(function(e){var t=Object.assign({},e);if(delete t.src,delete t.dest,e.expand)return d.expandMapping(e.src,e.dest,t).map(function(t){var n=Object.assign({},e);return n.orig=Object.assign({},e),n.src=t.src,n.dest=t.dest,[`expand`,`cwd`,`flatten`,`rename`,`ext`].forEach(function(e){delete n[e]}),n});var n=Object.assign({},e);return n.orig=Object.assign({},e),`src`in n&&Object.defineProperty(n,`src`,{enumerable:!0,get:function n(){var r;return`result`in n||(r=e.src,r=Array.isArray(r)?a(r):[r],n.result=d.expand(t,r)),n.result}}),`dest`in n&&(n.dest=e.dest),n}).flatten().value(),t)}})),nl=e.t(((e,t)=>{var n=s.i(),r=require(`path`);require(`util`);var i=Oc(),a=kc(),o=Ac(),c=require(`stream`).Stream,l=Vc().PassThrough,u=t.exports={};u.file=tl(),u.collectStream=function(e,t){var n=[],r=0;e.on(`error`,t),e.on(`data`,function(e){n.push(e),r+=e.length}),e.on(`end`,function(){var e=new Buffer(r),i=0;n.forEach(function(t){t.copy(e,i),i+=t.length}),t(null,e)})},u.dateify=function(e){return e||=new Date,e=e instanceof Date?e:typeof e==`string`?new Date(e):new Date,e},u.defaults=function(e,t,n){var r=arguments;return r[0]=r[0]||{},o(...r)},u.isStream=function(e){return e instanceof c},u.lazyReadStream=function(e){return new i.Readable(function(){return n.createReadStream(e)})},u.normalizeInputSource=function(e){if(e===null)return new Buffer(0);if(typeof e==`string`)return new Buffer(e);if(u.isStream(e)&&!e._readableState){var t=new l;return e.pipe(t),t}return e},u.sanitizePath=function(e){return a(e,!1).replace(/^\w+:/,``).replace(/^(\.\.\/|\/)+/,``)},u.trailingSlashIt=function(e){return e.slice(-1)===`/`?e:e+`/`},u.unixifyPath=function(e){return a(e,!1).replace(/^\w+:/,``)},u.walkdir=function(e,t,i){var a=[];typeof t==`function`&&(i=t,t=e),n.readdir(e,function(o,s){var c=0,l,d;if(o)return i(o);(function o(){if(l=s[c++],!l)return i(null,a);d=r.join(e,l),n.stat(d,function(e,n){a.push({path:d,relative:r.relative(t,d).replace(/\\/g,`/`),stats:n}),n&&n.isDirectory()?u.walkdir(d,t,function(e,t){t.forEach(function(e){a.push(e)}),o()}):o()})})()})}})),rl=e.t(((e,t)=>{
/**
* Archiver Core
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var n=require(`util`);let r={ABORTED:`archive was aborted`,DIRECTORYDIRPATHREQUIRED:`diretory dirpath argument must be a non-empty string value`,DIRECTORYFUNCTIONINVALIDDATA:`invalid data returned by directory custom data function`,ENTRYNAMEREQUIRED:`entry name must be a non-empty string value`,FILEFILEPATHREQUIRED:`file filepath argument must be a non-empty string value`,FINALIZING:`archive already finalizing`,QUEUECLOSED:`queue closed`,NOENDMETHOD:`no suitable finalize/end method defined by module`,DIRECTORYNOTSUPPORTED:`support for directory entries not defined by module`,FORMATSET:`archive format already set`,INPUTSTEAMBUFFERREQUIRED:`input source must be valid Stream or Buffer instance`,MODULESET:`module already set`,SYMLINKNOTSUPPORTED:`support for symlink entries not defined by module`,SYMLINKFILEPATHREQUIRED:`symlink filepath argument must be a non-empty string value`,SYMLINKTARGETREQUIRED:`symlink target argument must be a non-empty string value`,ENTRYNOTSUPPORTED:`entry not supported`};function i(e,t){Error.captureStackTrace(this,this.constructor),this.message=r[e]||e,this.code=e,this.data=t}n.inherits(i,Error),e=t.exports=i})),il=e.t(((e,t)=>{t.exports=require(`stream`)})),al=e.t(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]==null?{}:arguments[t];t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function c(e){var t=l(e,`string`);return typeof t==`symbol`?t:String(t)}function l(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var u=require(`buffer`).Buffer,d=require(`util`).inspect,f=d&&d.custom||`inspect`;function p(e,t,n){u.prototype.copy.call(e,t,n)}t.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return s(e,[{key:`push`,value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:`first`,value:function(){return this.head.data}},{key:`_getString`,value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),ol=e.t(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),sl=e.t(((e,t)=>{let n={};function r(e,t,r){r||=Error;function i(e,n,r){return typeof t==`string`?t:t(e,n,r)}class a extends r{constructor(e,t,n){super(i(e,t,n))}}a.prototype.name=r.name,a.prototype.code=e,n[e]=a}function i(e,t){if(Array.isArray(e)){let n=e.length;return e=e.map(e=>String(e)),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function a(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function o(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function s(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}r(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),r(`ERR_INVALID_ARG_TYPE`,function(e,t,n){let r;typeof t==`string`&&a(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;let c;return c=o(e,` argument`)?`The ${e} ${r} ${i(t,`type`)}`:`The "${e}" ${s(e,`.`)?`property`:`argument`} ${r} ${i(t,`type`)}`,c+=`. Received type ${typeof n}`,c},TypeError),r(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),r(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),r(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),r(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),r(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),r(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),r(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),r(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),r(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),r(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=n})),cl=e.t(((e,t)=>{var n=sl().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),ll=e.t(((e,t)=>{t.exports=E;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){te(t,e)}}var r;E.WritableState=w;var i={deprecate:yc()},a=il(),o=require(`buffer`).Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=ol(),d=cl().getHighWaterMark,f=sl().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,v=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,b=f.ERR_STREAM_WRITE_AFTER_END,x=f.ERR_UNKNOWN_ENCODING,S=u.errorOrDestroy;Y()(E,a);function C(){}function w(e,t,i){r||=ul(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){P(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(w.prototype,`buffer`,{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var T;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(T=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return T.call(this,e)?!0:this===E?e&&e._writableState instanceof w:!1}})):T=function(e){return e instanceof this};function E(e){r||=ul();var t=this instanceof r;if(!t&&!T.call(E,this))return new E(e);this._writableState=new w(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}E.prototype.pipe=function(){S(this,new g)};function D(e,t){var n=new b;S(e,n),process.nextTick(t,n)}function O(e,t,n,r){var i;return n===null?i=new y:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(S(e,i),process.nextTick(r,i),!1):!0}E.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=C),r.ending?D(this,n):(a||O(this,r,e,n))&&(r.pendingcb++,i=A(this,r,a,e,t,n)),i},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&L(this,e))},E.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function k(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(E.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function A(e,t,n,r,i,a){if(!n){var o=k(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else j(e,t,!1,s,r,i,a);return c}function j(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v(`write`)):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function M(e,t,n,r,i){--t.pendingcb,n?(process.nextTick(i,r),process.nextTick(B,e,t),e._writableState.errorEmitted=!0,S(e,r)):(i(r),e._writableState.errorEmitted=!0,S(e,r),B(e,t))}function N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function P(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(typeof i!=`function`)throw new h;if(N(n),t)M(e,n,r,t,i);else{var a=R(n)||e.destroyed;!a&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&L(e,n),r?process.nextTick(F,e,n,a,i):F(e,n,a,i)}}function F(e,t,n,r){n||I(e,t),t.pendingcb--,r(),B(e,t)}function I(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function L(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)a[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;a.allBuffers=c,j(e,t,!0,t.length,a,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(j(e,t,!1,t.objectMode?1:l.length,l,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}E.prototype._write=function(e,t,n){n(new m(`_write()`))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var r=this._writableState;return typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||V(this,r,n),this},Object.defineProperty(E.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}});function R(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function ee(e,t){e._final(function(n){t.pendingcb--,n&&S(e,n),t.prefinished=!0,e.emit(`prefinish`),B(e,t)})}function z(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(ee,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function B(e,t){var n=R(t);if(n&&(z(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function V(e,t,n){t.ending=!0,B(e,t),n&&(t.finished?process.nextTick(n):e.once(`finish`,n)),t.ended=!0,e.writable=!1}function te(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(E.prototype,`destroyed`,{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=u.destroy,E.prototype._undestroy=u.undestroy,E.prototype._destroy=function(e,t){t(e)}})),ul=e.t(((e,t)=>{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=gl(),i=ll();Y()(c,r);for(var a=n(i.prototype),o=0;o<a.length;o++){var s=a[o];c.prototype[s]||(c.prototype[s]=i.prototype[s])}function c(e){if(!(this instanceof c))return new c(e);r.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(`end`,l)))}Object.defineProperty(c.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||process.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(c.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})})),dl=e.t(((e,t)=>{
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var n=require(`buffer`),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),fl=e.t((e=>{var t=dl().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):``}})),pl=e.t(((e,t)=>{var n=sl().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},v=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?v():e.on(`request`,v)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,v),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),ml=e.t(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=pl(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function v(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var y=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(v(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),y);t.exports=function(e){var t,n=Object.create(b,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),hl=e.t(((e,t)=>{function n(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function r(e){return function(){var t=this,r=arguments;return new Promise(function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,c,`next`,e)}function c(e){n(o,i,a,s,c,`throw`,e)}s(void 0)})}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?i(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t,n){return t=s(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=c(e,`string`);return typeof t==`symbol`?t:String(t)}function c(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var l=sl().codes.ERR_INVALID_ARG_TYPE;function u(e,t,n){var i;if(t&&typeof t.next==`function`)i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new l(`iterable`,[`Iterable`],t);var o=new e(a({objectMode:!0},n)),s=!1;o._read=function(){s||(s=!0,c())};function c(){return u.apply(this,arguments)}function u(){return u=r(function*(){try{var e=yield i.next(),t=e.value;e.done?o.push(null):o.push(yield t)?c():s=!1}catch(e){o.destroy(e)}}),u.apply(this,arguments)}return o}t.exports=u})),gl=e.t(((e,t)=>{t.exports=D;var n;D.ReadableState=E,require(`events`).EventEmitter;var r=function(e,t){return e.listeners(t).length},i=il(),a=require(`buffer`).Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=require(`util`),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=al(),f=ol(),p=cl().getHighWaterMark,m=sl().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,b,x,S;Y()(D,i);var C=f.errorOrDestroy,w=[`error`,`close`,`destroy`,`pause`,`resume`];function T(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function E(e,t,r){n||=ul(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(b||=fl().StringDecoder,this.decoder=new b(e.encoding),this.encoding=e.encoding)}function D(e){if(n||=ul(),!(this instanceof D))return new D(e);var t=this instanceof n;this._readableState=new E(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(D.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),D.prototype.destroy=f.destroy,D.prototype._undestroy=f.undestroy,D.prototype._destroy=function(e,t){t(e)},D.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),O(this,e,t,!1,r)},D.prototype.unshift=function(e){return O(this,e,null,!0,!1)};function O(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,P(e,o);else{var c;if(i||(c=A(o,t)),c)C(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?C(e,new y):k(e,o,t,!0);else if(o.ended)C(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?k(e,o,t,!1):L(e,o)):k(e,o,t,!1);else r||(o.reading=!1,L(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function k(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&F(e)),L(e,t)}function A(e,t){var n;return!c(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=new h(`chunk`,[`string`,`Buffer`,`Uint8Array`],t)),n}D.prototype.isPaused=function(){return this._readableState.flowing===!1},D.prototype.setEncoding=function(e){b||=fl().StringDecoder;var t=new b(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r=``;n!==null;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),r!==``&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var j=1073741824;function M(e){return e>=j?e=j:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function N(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=M(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}D.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?re(this):F(this),null;if(e=N(e,t),e===0&&t.ended)return t.length===0&&re(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,u(`length less than watermark`,r)),t.ended||t.reading?(r=!1,u(`reading or ended`,r)):r&&(u(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=N(n,t)));var i=e>0?H(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&re(this)),i!==null&&this.emit(`data`,i),i};function P(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?F(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}}function F(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(I,e))}function I(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ne(e)}function L(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var n=t.length;if(u(`maybeReadMore read 0`),e.read(0),n===t.length)break}t.readingMore=!1}D.prototype._read=function(e){C(this,new v(`_read()`))},D.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,u(`pipe count=%d opts=%j`,i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr?s:g;i.endEmitted?process.nextTick(a):n.once(`end`,a),e.on(`unpipe`,o);function o(e,t){u(`onunpipe`),e===n&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,d())}function s(){u(`onend`),e.end()}var c=ee(n);e.on(`drain`,c);var l=!1;function d(){u(`cleanup`),e.removeListener(`close`,m),e.removeListener(`finish`,h),e.removeListener(`drain`,c),e.removeListener(`error`,p),e.removeListener(`unpipe`,o),n.removeListener(`end`,s),n.removeListener(`end`,g),n.removeListener(`data`,f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}n.on(`data`,f);function f(t){u(`ondata`);var r=e.write(t);u(`dest.write`,r),r===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&U(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&C(e,t)}T(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function ee(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,ne(e))}}D.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=U(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n),this)},D.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t),r=this._readableState;return e===`data`?(r.readableListening=this.listenerCount(`readable`)>0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?F(this):r.reading||process.nextTick(B,this)),n},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(z,this),n},D.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(z,this),t};function z(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function B(e){u(`readable nexttick read 0`),e.read(0)}D.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,V(this,e)),e.paused=!1,this};function V(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(te,e,t))}function te(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),ne(e),t.flowing&&!t.reading&&e.read(0)}D.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function ne(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}D.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<w.length;a++)e.on(w[a],this.emit.bind(this,w[a]));return this._read=function(t){u(`wrapped _read`,t),r&&(r=!1,e.resume())},this},typeof Symbol==`function`&&(D.prototype[Symbol.asyncIterator]=function(){return x===void 0&&(x=ml()),x(this)}),Object.defineProperty(D.prototype,`readableHighWaterMark`,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(D.prototype,`readableBuffer`,{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(D.prototype,`readableFlowing`,{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),D._fromList=H,Object.defineProperty(D.prototype,`readableLength`,{enumerable:!1,get:function(){return this._readableState.length}});function H(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function re(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(ie,t,e))}function ie(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(D.from=function(e,t){return S===void 0&&(S=hl()),S(D,e,t)});function U(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}})),_l=e.t(((e,t)=>{t.exports=l;var n=sl().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=ul();Y()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);s.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,u)}function u(){var e=this;typeof this._flush==`function`&&!this._readableState.destroyed?this._flush(function(t,n){d(e,t,n)}):d(this,null,null)}l.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new r(`_transform()`))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},l.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})};function d(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw new o;if(e._transformState.transforming)throw new a;return e.push(null)}})),vl=e.t(((e,t)=>{t.exports=r;var n=_l();Y()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),yl=e.t(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=sl().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=pl()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a(`streams`);var i,o=t.map(function(e,n){var a=n<t.length-1;return l(e,a,n>0,function(e){i||=e,e&&o.forEach(u),!a&&(o.forEach(u),r(i))})});return t.reduce(d)}t.exports=p})),bl=e.t(((e,t)=>{var n=require(`stream`);process.env.READABLE_STREAM===`disable`&&n?(t.exports=n.Readable,Object.assign(t.exports,n),t.exports.Stream=n):(e=t.exports=gl(),e.Stream=n||e,e.Readable=e,e.Writable=ll(),e.Duplex=ul(),e.Transform=_l(),e.PassThrough=vl(),e.finished=pl(),e.pipeline=yl())})),xl=e.t(((e,n)=>{
/**
* Archiver Core
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var r=require(`fs`),i=uc(),a=t.b(),o=require(`path`),s=nl(),c=require(`util`).inherits,l=rl(),u=bl().Transform,d=process.platform===`win32`,f=function(e,t){if(!(this instanceof f))return new f(e,t);typeof e!=`string`&&(t=e,e=`zip`),t=this.options=s.defaults(t,{highWaterMark:1024*1024,statConcurrency:4}),u.call(this,t),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=a.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=a.queue(this._onStatQueueTask.bind(this),t.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};c(f,u),f.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()},f.prototype._append=function(e,t){t||={};var n={source:null,filepath:e};t.name||=e,t.sourcePath=e,n.data=t,this._entriesCount++,t.stats&&t.stats instanceof r.Stats?(n=this._updateQueueTaskWithStats(n,t.stats),n&&(t.stats.size&&(this._fsEntriesTotalBytes+=t.stats.size),this._queue.push(n))):this._statQueue.push(n)},f.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)},f.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1},f.prototype._moduleAppend=function(e,t,n){if(this._state.aborted){n();return}this._module.append(e,t,function(e){if(this._task=null,this._state.aborted){this._shutdown();return}if(e){this.emit(`error`,e),setImmediate(n);return}this.emit(`entry`,t),this._entriesProcessedCount++,t.stats&&t.stats.size&&(this._fsEntriesProcessedBytes+=t.stats.size),this.emit(`progress`,{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(n)}.bind(this))},f.prototype._moduleFinalize=function(){typeof this._module.finalize==`function`?this._module.finalize():typeof this._module.end==`function`?this._module.end():this.emit(`error`,new l(`NOENDMETHOD`))},f.prototype._modulePipe=function(){this._module.on(`error`,this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0},f.prototype._moduleSupports=function(e){return!this._module.supports||!this._module.supports[e]?!1:this._module.supports[e]},f.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1},f.prototype._normalizeEntryData=function(e,t){e=s.defaults(e,{type:`file`,name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),t&&e.stats===!1&&(e.stats=t);var n=e.type===`directory`;return e.name&&(typeof e.prefix==`string`&&e.prefix!==``&&(e.name=e.prefix+`/`+e.name,e.prefix=null),e.name=s.sanitizePath(e.name),e.type!==`symlink`&&e.name.slice(-1)===`/`?(n=!0,e.type=`directory`):n&&(e.name+=`/`)),typeof e.mode==`number`?d?e.mode&=511:e.mode&=4095:e.stats&&e.mode===null?(d?e.mode=e.stats.mode&511:e.mode=e.stats.mode&4095,d&&n&&(e.mode=493)):e.mode===null&&(e.mode=n?493:420),e.stats&&e.date===null?e.date=e.stats.mtime:e.date=s.dateify(e.date),e},f.prototype._onModuleError=function(e){this.emit(`error`,e)},f.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()},f.prototype._onQueueTask=function(e,t){var n=()=>{e.data.callback&&e.data.callback(),t()};if(this._state.finalizing||this._state.finalized||this._state.aborted){n();return}this._task=e,this._moduleAppend(e.source,e.data,n)},f.prototype._onStatQueueTask=function(e,t){if(this._state.finalizing||this._state.finalized||this._state.aborted){t();return}r.lstat(e.filepath,function(n,r){if(this._state.aborted){setImmediate(t);return}if(n){this._entriesCount--,this.emit(`warning`,n),setImmediate(t);return}e=this._updateQueueTaskWithStats(e,r),e&&(r.size&&(this._fsEntriesTotalBytes+=r.size),this._queue.push(e)),setImmediate(t)}.bind(this))},f.prototype._shutdown=function(){this._moduleUnpipe(),this.end()},f.prototype._transform=function(e,t,n){e&&(this._pointer+=e.length),n(null,e)},f.prototype._updateQueueTaskWithStats=function(e,t){if(t.isFile())e.data.type=`file`,e.data.sourceType=`stream`,e.source=s.lazyReadStream(e.filepath);else if(t.isDirectory()&&this._moduleSupports(`directory`))e.data.name=s.trailingSlashIt(e.data.name),e.data.type=`directory`,e.data.sourcePath=s.trailingSlashIt(e.filepath),e.data.sourceType=`buffer`,e.source=Buffer.concat([]);else if(t.isSymbolicLink()&&this._moduleSupports(`symlink`)){var n=r.readlinkSync(e.filepath),i=o.dirname(e.filepath);e.data.type=`symlink`,e.data.linkname=o.relative(i,o.resolve(i,n)),e.data.sourceType=`buffer`,e.source=Buffer.concat([])}else return t.isDirectory()?this.emit(`warning`,new l(`DIRECTORYNOTSUPPORTED`,e.data)):t.isSymbolicLink()?this.emit(`warning`,new l(`SYMLINKNOTSUPPORTED`,e.data)):this.emit(`warning`,new l(`ENTRYNOTSUPPORTED`,e.data)),null;return e.data=this._normalizeEntryData(e.data,t),e},f.prototype.abort=function(){return this._state.aborted||this._state.finalized||this._abort(),this},f.prototype.append=function(e,t){if(this._state.finalize||this._state.aborted)return this.emit(`error`,new l(`QUEUECLOSED`)),this;if(t=this._normalizeEntryData(t),typeof t.name!=`string`||t.name.length===0)return this.emit(`error`,new l(`ENTRYNAMEREQUIRED`)),this;if(t.type===`directory`&&!this._moduleSupports(`directory`))return this.emit(`error`,new l(`DIRECTORYNOTSUPPORTED`,{name:t.name})),this;if(e=s.normalizeInputSource(e),Buffer.isBuffer(e))t.sourceType=`buffer`;else if(s.isStream(e))t.sourceType=`stream`;else return this.emit(`error`,new l(`INPUTSTEAMBUFFERREQUIRED`,{name:t.name})),this;return this._entriesCount++,this._queue.push({data:t,source:e}),this},f.prototype.directory=function(e,t,n){if(this._state.finalize||this._state.aborted)return this.emit(`error`,new l(`QUEUECLOSED`)),this;if(typeof e!=`string`||e.length===0)return this.emit(`error`,new l(`DIRECTORYDIRPATHREQUIRED`)),this;this._pending++,t===!1?t=``:typeof t!=`string`&&(t=e);var r=!1;typeof n==`function`?(r=n,n={}):typeof n!=`object`&&(n={});var a={stat:!0,dot:!0};function o(){this._pending--,this._maybeFinalize()}function s(e){this.emit(`error`,e)}function c(i){u.pause();var a=!1,o=Object.assign({},n);o.name=i.relative,o.prefix=t,o.stats=i.stat,o.callback=u.resume.bind(u);try{if(r){if(o=r(o),o===!1)a=!0;else if(typeof o!=`object`)throw new l(`DIRECTORYFUNCTIONINVALIDDATA`,{dirpath:e})}}catch(e){this.emit(`error`,e);return}if(a){u.resume();return}this._append(i.absolute,o)}var u=i(e,a);return u.on(`error`,s.bind(this)),u.on(`match`,c.bind(this)),u.on(`end`,o.bind(this)),this},f.prototype.file=function(e,t){return this._state.finalize||this._state.aborted?(this.emit(`error`,new l(`QUEUECLOSED`)),this):typeof e!=`string`||e.length===0?(this.emit(`error`,new l(`FILEFILEPATHREQUIRED`)),this):(this._append(e,t),this)},f.prototype.glob=function(e,t,n){this._pending++,t=s.defaults(t,{stat:!0,pattern:e});function r(){this._pending--,this._maybeFinalize()}function a(e){this.emit(`error`,e)}function o(e){c.pause();var t=Object.assign({},n);t.callback=c.resume.bind(c),t.stats=e.stat,t.name=e.relative,this._append(e.absolute,t)}var c=i(t.cwd||`.`,t);return c.on(`error`,a.bind(this)),c.on(`match`,o.bind(this)),c.on(`end`,r.bind(this)),this},f.prototype.finalize=function(){if(this._state.aborted){var e=new l(`ABORTED`);return this.emit(`error`,e),Promise.reject(e)}if(this._state.finalize){var t=new l(`FINALIZING`);return this.emit(`error`,t),Promise.reject(t)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var n=this;return new Promise(function(e,t){var r;n._module.on(`end`,function(){r||e()}),n._module.on(`error`,function(e){r=!0,t(e)})})},f.prototype.setFormat=function(e){return this._format?(this.emit(`error`,new l(`FORMATSET`)),this):(this._format=e,this)},f.prototype.setModule=function(e){return this._state.aborted?(this.emit(`error`,new l(`ABORTED`)),this):this._state.module?(this.emit(`error`,new l(`MODULESET`)),this):(this._module=e,this._modulePipe(),this)},f.prototype.symlink=function(e,t,n){if(this._state.finalize||this._state.aborted)return this.emit(`error`,new l(`QUEUECLOSED`)),this;if(typeof e!=`string`||e.length===0)return this.emit(`error`,new l(`SYMLINKFILEPATHREQUIRED`)),this;if(typeof t!=`string`||t.length===0)return this.emit(`error`,new l(`SYMLINKTARGETREQUIRED`,{filepath:e})),this;if(!this._moduleSupports(`symlink`))return this.emit(`error`,new l(`SYMLINKNOTSUPPORTED`,{filepath:e})),this;var r={};return r.type=`symlink`,r.name=e.replace(/\\/g,`/`),r.linkname=t.replace(/\\/g,`/`),r.sourceType=`buffer`,typeof n==`number`&&(r.mode=n),this._entriesCount++,this._queue.push({data:r,source:Buffer.concat([])}),this},f.prototype.pointer=function(){return this._pointer},f.prototype.use=function(e){return this._streams.push(e),this},n.exports=f})),Sl=e.t(((e,t)=>{var n=t.exports=function(){};n.prototype.getName=function(){},n.prototype.getSize=function(){},n.prototype.getLastModifiedDate=function(){},n.prototype.isDirectory=function(){}})),Cl=e.t(((e,t)=>{var n=t.exports={};n.dateToDos=function(e,t){t||=!1;var n=t?e.getFullYear():e.getUTCFullYear();if(n<1980)return 2162688;if(n>=2044)return 2141175677;var r={year:n,month:t?e.getMonth():e.getUTCMonth(),date:t?e.getDate():e.getUTCDate(),hours:t?e.getHours():e.getUTCHours(),minutes:t?e.getMinutes():e.getUTCMinutes(),seconds:t?e.getSeconds():e.getUTCSeconds()};return r.year-1980<<25|r.month+1<<21|r.date<<16|r.hours<<11|r.minutes<<5|r.seconds/2},n.dosToDate=function(e){return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1)},n.fromDosTime=function(e){return n.dosToDate(e.readUInt32LE(0))},n.getEightBytes=function(e){var t=Buffer.alloc(8);return t.writeUInt32LE(e%4294967296,0),t.writeUInt32LE(e/4294967296|0,4),t},n.getShortBytes=function(e){var t=Buffer.alloc(2);return t.writeUInt16LE((e&65535)>>>0,0),t},n.getShortBytesValue=function(e,t){return e.readUInt16LE(t)},n.getLongBytes=function(e){var t=Buffer.alloc(4);return t.writeUInt32LE((e&4294967295)>>>0,0),t},n.getLongBytesValue=function(e,t){return e.readUInt32LE(t)},n.toDosTime=function(e){return n.getLongBytes(n.dateToDos(e))}})),wl=e.t(((e,t)=>{var n=Cl(),r=8,i=1,a=4,o=2,s=64,c=2048,l=t.exports=function(){return this instanceof l?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new l};l.prototype.encode=function(){return n.getShortBytes((this.descriptor?r:0)|(this.utf8?c:0)|(this.encryption?i:0)|(this.strongEncryption?s:0))},l.prototype.parse=function(e,t){var u=n.getShortBytesValue(e,t),d=new l;return d.useDataDescriptor((u&r)!==0),d.useUTF8ForNames((u&c)!==0),d.useStrongEncryption((u&s)!==0),d.useEncryption((u&i)!==0),d.setSlidingDictionarySize((u&o)===0?4096:8192),d.setNumberOfShannonFanoTrees((u&a)===0?2:3),d},l.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e},l.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees},l.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e},l.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize},l.prototype.useDataDescriptor=function(e){this.descriptor=e},l.prototype.usesDataDescriptor=function(){return this.descriptor},l.prototype.useEncryption=function(e){this.encryption=e},l.prototype.usesEncryption=function(){return this.encryption},l.prototype.useStrongEncryption=function(e){this.strongEncryption=e},l.prototype.usesStrongEncryption=function(){return this.strongEncryption},l.prototype.useUTF8ForNames=function(e){this.utf8=e},l.prototype.usesUTF8ForNames=function(){return this.utf8}})),Tl=e.t(((e,t)=>{t.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}})),El=e.t(((e,t)=>{t.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from([,,]),LONG:4,LONG_ZERO:Buffer.from([,,,,]),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}})),Dl=e.t(((e,t)=>{var n=require(`util`).inherits,r=kc(),i=Sl(),a=wl(),o=Tl(),s=El(),c=Cl(),l=t.exports=function(e){if(!(this instanceof l))return new l(e);i.call(this),this.platform=s.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new a,this.crc=0,this.time=-1,this.minver=s.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,e&&this.setName(e)};n(l,i),l.prototype.getCentralDirectoryExtra=function(){return this.getExtra()},l.prototype.getComment=function(){return this.comment===null?``:this.comment},l.prototype.getCompressedSize=function(){return this.csize},l.prototype.getCrc=function(){return this.crc},l.prototype.getExternalAttributes=function(){return this.exattr},l.prototype.getExtra=function(){return this.extra===null?s.EMPTY:this.extra},l.prototype.getGeneralPurposeBit=function(){return this.gpb},l.prototype.getInternalAttributes=function(){return this.inattr},l.prototype.getLastModifiedDate=function(){return this.getTime()},l.prototype.getLocalFileDataExtra=function(){return this.getExtra()},l.prototype.getMethod=function(){return this.method},l.prototype.getName=function(){return this.name},l.prototype.getPlatform=function(){return this.platform},l.prototype.getSize=function(){return this.size},l.prototype.getTime=function(){return this.time===-1?-1:c.dosToDate(this.time)},l.prototype.getTimeDos=function(){return this.time===-1?0:this.time},l.prototype.getUnixMode=function(){return this.platform===s.PLATFORM_UNIX?this.getExternalAttributes()>>s.SHORT_SHIFT&s.SHORT_MASK:0},l.prototype.getVersionNeededToExtract=function(){return this.minver},l.prototype.setComment=function(e){Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=e},l.prototype.setCompressedSize=function(e){if(e<0)throw Error(`invalid entry compressed size`);this.csize=e},l.prototype.setCrc=function(e){if(e<0)throw Error(`invalid entry crc32`);this.crc=e},l.prototype.setExternalAttributes=function(e){this.exattr=e>>>0},l.prototype.setExtra=function(e){this.extra=e},l.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof a))throw Error(`invalid entry GeneralPurposeBit`);this.gpb=e},l.prototype.setInternalAttributes=function(e){this.inattr=e},l.prototype.setMethod=function(e){if(e<0)throw Error(`invalid entry compression method`);this.method=e},l.prototype.setName=function(e,t=!1){e=r(e,!1).replace(/^\w+:/,``).replace(/^(\.\.\/|\/)+/,``),t&&(e=`/${e}`),Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=e},l.prototype.setPlatform=function(e){this.platform=e},l.prototype.setSize=function(e){if(e<0)throw Error(`invalid entry size`);this.size=e},l.prototype.setTime=function(e,t){if(!(e instanceof Date))throw Error(`invalid entry time`);this.time=c.dateToDos(e,t)},l.prototype.setUnixMode=function(e){e|=this.isDirectory()?s.S_IFDIR:s.S_IFREG;var t=0;t|=e<<s.SHORT_SHIFT|(this.isDirectory()?s.S_DOS_D:s.S_DOS_A),this.setExternalAttributes(t),this.mode=e&s.MODE_MASK,this.platform=s.PLATFORM_UNIX},l.prototype.setVersionNeededToExtract=function(e){this.minver=e},l.prototype.isDirectory=function(){return this.getName().slice(-1)===`/`},l.prototype.isUnixSymlink=function(){return(this.getUnixMode()&o.FILE_TYPE_FLAG)===o.LINK_FLAG},l.prototype.isZip64=function(){return this.csize>s.ZIP64_MAGIC||this.size>s.ZIP64_MAGIC}})),Ol=e.t(((e,t)=>{var n=require(`stream`).Stream,r=bl().PassThrough,i=t.exports={};i.isStream=function(e){return e instanceof n},i.normalizeInputSource=function(e){if(e===null)return Buffer.alloc(0);if(typeof e==`string`)return Buffer.from(e);if(i.isStream(e)&&!e._readableState){var t=new r;return e.pipe(t),t}return e}})),kl=e.t(((e,t)=>{var n=require(`util`).inherits,r=bl().Transform,i=Sl(),a=Ol(),o=t.exports=function(e){if(!(this instanceof o))return new o(e);r.call(this,e),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};n(o,r),o.prototype._appendBuffer=function(e,t,n){},o.prototype._appendStream=function(e,t,n){},o.prototype._emitErrorCallback=function(e){e&&this.emit(`error`,e)},o.prototype._finish=function(e){},o.prototype._normalizeEntry=function(e){},o.prototype._transform=function(e,t,n){n(null,e)},o.prototype.entry=function(e,t,n){if(t||=null,typeof n!=`function`&&(n=this._emitErrorCallback.bind(this)),!(e instanceof i)){n(Error(`not a valid instance of ArchiveEntry`));return}if(this._archive.finish||this._archive.finished){n(Error(`unacceptable entry after finish`));return}if(this._archive.processing){n(Error(`already processing an entry`));return}if(this._archive.processing=!0,this._normalizeEntry(e),this._entry=e,t=a.normalizeInputSource(t),Buffer.isBuffer(t))this._appendBuffer(e,t,n);else if(a.isStream(t))this._appendStream(e,t,n);else{this._archive.processing=!1,n(Error(`input source must be valid Stream or Buffer instance`));return}return this},o.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()},o.prototype.getBytesWritten=function(){return this.offset},o.prototype.write=function(e,t){return e&&(this.offset+=e.length),r.prototype.write.call(this,e,t)}})),Al=e.t(((e,t)=>{var n=require(`buffer`).Buffer,r=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<`u`&&(r=new Int32Array(r));function i(e){if(n.isBuffer(e))return e;var t=typeof n.alloc==`function`&&typeof n.from==`function`;if(typeof e==`number`)return t?n.alloc(e):new n(e);if(typeof e==`string`)return t?n.from(e):new n(e);throw Error(`input must be buffer, number, or string, received `+typeof e)}function a(e){var t=i(4);return t.writeInt32BE(e,0),t}function o(e,t){e=i(e),n.isBuffer(t)&&(t=t.readUInt32BE(0));for(var a=~~t^-1,o=0;o<e.length;o++)a=r[(a^e[o])&255]^a>>>8;return a^-1}function s(){return a(o.apply(null,arguments))}s.signed=function(){return o.apply(null,arguments)},s.unsigned=function(){return o.apply(null,arguments)>>>0},t.exports=s})),jl=e.t((e=>{(function(t){typeof DO_NOT_EXPORT_CRC>`u`?typeof e==`object`?t(e):typeof define==`function`&&define.amd?define(function(){var e={};return t(e),e}):t({}):t({})})(function(e){e.version=`1.2.2`;function t(){for(var e=0,t=Array(256),n=0;n!=256;++n)e=n,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,t[n]=e;return typeof Int32Array<`u`?new Int32Array(t):t}var n=t();function r(e){var t=0,n=0,r=0,i=typeof Int32Array<`u`?new Int32Array(4096):Array(4096);for(r=0;r!=256;++r)i[r]=e[r];for(r=0;r!=256;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[n&255];var a=[];for(r=1;r!=16;++r)a[r-1]=typeof Int32Array<`u`?i.subarray(r*256,r*256+256):i.slice(r*256,r*256+256);return a}var i=r(n),a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],v=i[12],y=i[13],b=i[14];function x(e,t){for(var r=t^-1,i=0,a=e.length;i<a;)r=r>>>8^n[(r^e.charCodeAt(i++))&255];return~r}function S(e,t){for(var r=t^-1,i=e.length-15,x=0;x<i;)r=b[e[x++]^r&255]^y[e[x++]^r>>8&255]^v[e[x++]^r>>16&255]^g[e[x++]^r>>>24]^h[e[x++]]^m[e[x++]]^p[e[x++]]^f[e[x++]]^d[e[x++]]^u[e[x++]]^l[e[x++]]^c[e[x++]]^s[e[x++]]^o[e[x++]]^a[e[x++]]^n[e[x++]];for(i+=15;x<i;)r=r>>>8^n[(r^e[x++])&255];return~r}function C(e,t){for(var r=t^-1,i=0,a=e.length,o=0,s=0;i<a;)o=e.charCodeAt(i++),o<128?r=r>>>8^n[(r^o)&255]:o<2048?(r=r>>>8^n[(r^(192|o>>6&31))&255],r=r>>>8^n[(r^(128|o&63))&255]):o>=55296&&o<57344?(o=(o&1023)+64,s=e.charCodeAt(i++)&1023,r=r>>>8^n[(r^(240|o>>8&7))&255],r=r>>>8^n[(r^(128|o>>2&63))&255],r=r>>>8^n[(r^(128|s>>6&15|(o&3)<<4))&255],r=r>>>8^n[(r^(128|s&63))&255]):(r=r>>>8^n[(r^(224|o>>12&15))&255],r=r>>>8^n[(r^(128|o>>6&63))&255],r=r>>>8^n[(r^(128|o&63))&255]);return~r}e.table=n,e.bstr=x,e.buf=S,e.str=C})})),Ml=e.t(((e,t)=>{let{Transform:n}=bl(),r=jl();t.exports=class extends n{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,t,n){e&&(this.checksum=r.buf(e,this.checksum)>>>0,this.rawSize+=e.length),n(null,e)}digest(e){let t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest(`hex`).toUpperCase()}size(){return this.rawSize}}})),Nl=e.t(((e,t)=>{let{DeflateRaw:n}=require(`zlib`),r=jl();t.exports=class extends n{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,t){return e&&(this.compressedSize+=e.length),super.push(e,t)}_transform(e,t,n){e&&(this.checksum=r.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,t,n)}digest(e){let t=Buffer.allocUnsafe(4);return t.writeUInt32BE(this.checksum>>>0,0),e?t.toString(e):t}hex(){return this.digest(`hex`).toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}}})),Pl=e.t(((e,t)=>{t.exports={CRC32Stream:Ml(),DeflateCRC32Stream:Nl()}})),Fl=e.t(((e,t)=>{var n=require(`util`).inherits,r=Al(),{CRC32Stream:i}=Pl(),{DeflateCRC32Stream:a}=Pl(),o=kl();Dl(),wl();var s=El();Ol();var c=Cl(),l=t.exports=function(e){if(!(this instanceof l))return new l(e);e=this.options=this._defaults(e),o.call(this,e),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:``,finish:!1,finished:!1,processing:!1,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};n(l,o),l.prototype._afterAppend=function(e){this._entries.push(e),e.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(e),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},l.prototype._appendBuffer=function(e,t,n){t.length===0&&e.setMethod(s.METHOD_STORED);var i=e.getMethod();if(i===s.METHOD_STORED&&(e.setSize(t.length),e.setCompressedSize(t.length),e.setCrc(r.unsigned(t))),this._writeLocalFileHeader(e),i===s.METHOD_STORED){this.write(t),this._afterAppend(e),n(null,e);return}else if(i===s.METHOD_DEFLATED){this._smartStream(e,n).end(t);return}else{n(Error(`compression method `+i+` not implemented`));return}},l.prototype._appendStream=function(e,t,n){e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(s.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(e);var r=this._smartStream(e,n);t.once(`error`,function(e){r.emit(`error`,e),r.end()}),t.pipe(r)},l.prototype._defaults=function(e){return typeof e!=`object`&&(e={}),typeof e.zlib!=`object`&&(e.zlib={}),typeof e.zlib.level!=`number`&&(e.zlib.level=s.ZLIB_BEST_SPEED),e.forceZip64=!!e.forceZip64,e.forceLocalTime=!!e.forceLocalTime,e},l.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},l.prototype._normalizeEntry=function(e){e.getMethod()===-1&&e.setMethod(s.METHOD_DEFLATED),e.getMethod()===s.METHOD_DEFLATED&&(e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(s.MIN_VERSION_DATA_DESCRIPTOR)),e.getTime()===-1&&e.setTime(new Date,this._archive.forceLocalTime),e._offsets={file:0,data:0,contents:0}},l.prototype._smartStream=function(e,t){var n=e.getMethod()===s.METHOD_DEFLATED?new a(this.options.zlib):new i,r=null;function o(){var i=n.digest().readUInt32BE(0);e.setCrc(i),e.setSize(n.size()),e.setCompressedSize(n.size(!0)),this._afterAppend(e),t(r,e)}return n.once(`end`,o.bind(this)),n.once(`error`,function(e){r=e}),n.pipe(this,{end:!1}),n},l.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length,t=this._archive.centralLength,n=this._archive.centralOffset;this.isZip64()&&(e=s.ZIP64_MAGIC_SHORT,t=s.ZIP64_MAGIC,n=s.ZIP64_MAGIC),this.write(c.getLongBytes(s.SIG_EOCD)),this.write(s.SHORT_ZERO),this.write(s.SHORT_ZERO),this.write(c.getShortBytes(e)),this.write(c.getShortBytes(e)),this.write(c.getLongBytes(t)),this.write(c.getLongBytes(n));var r=this.getComment(),i=Buffer.byteLength(r);this.write(c.getShortBytes(i)),this.write(r)},l.prototype._writeCentralDirectoryZip64=function(){this.write(c.getLongBytes(s.SIG_ZIP64_EOCD)),this.write(c.getEightBytes(44)),this.write(c.getShortBytes(s.MIN_VERSION_ZIP64)),this.write(c.getShortBytes(s.MIN_VERSION_ZIP64)),this.write(s.LONG_ZERO),this.write(s.LONG_ZERO),this.write(c.getEightBytes(this._entries.length)),this.write(c.getEightBytes(this._entries.length)),this.write(c.getEightBytes(this._archive.centralLength)),this.write(c.getEightBytes(this._archive.centralOffset)),this.write(c.getLongBytes(s.SIG_ZIP64_EOCD_LOC)),this.write(s.LONG_ZERO),this.write(c.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(c.getLongBytes(1))},l.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit(),n=e.getMethod(),r=e._offsets,i=e.getSize(),a=e.getCompressedSize();if(e.isZip64()||r.file>s.ZIP64_MAGIC){i=s.ZIP64_MAGIC,a=s.ZIP64_MAGIC,e.setVersionNeededToExtract(s.MIN_VERSION_ZIP64);var o=Buffer.concat([c.getShortBytes(s.ZIP64_EXTRA_ID),c.getShortBytes(24),c.getEightBytes(e.getSize()),c.getEightBytes(e.getCompressedSize()),c.getEightBytes(r.file)],28);e.setExtra(o)}this.write(c.getLongBytes(s.SIG_CFH)),this.write(c.getShortBytes(e.getPlatform()<<8|s.VERSION_MADEBY)),this.write(c.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(c.getShortBytes(n)),this.write(c.getLongBytes(e.getTimeDos())),this.write(c.getLongBytes(e.getCrc())),this.write(c.getLongBytes(a)),this.write(c.getLongBytes(i));var l=e.getName(),u=e.getComment(),d=e.getCentralDirectoryExtra();t.usesUTF8ForNames()&&(l=Buffer.from(l),u=Buffer.from(u)),this.write(c.getShortBytes(l.length)),this.write(c.getShortBytes(d.length)),this.write(c.getShortBytes(u.length)),this.write(s.SHORT_ZERO),this.write(c.getShortBytes(e.getInternalAttributes())),this.write(c.getLongBytes(e.getExternalAttributes())),r.file>s.ZIP64_MAGIC?this.write(c.getLongBytes(s.ZIP64_MAGIC)):this.write(c.getLongBytes(r.file)),this.write(l),this.write(d),this.write(u)},l.prototype._writeDataDescriptor=function(e){this.write(c.getLongBytes(s.SIG_DD)),this.write(c.getLongBytes(e.getCrc())),e.isZip64()?(this.write(c.getEightBytes(e.getCompressedSize())),this.write(c.getEightBytes(e.getSize()))):(this.write(c.getLongBytes(e.getCompressedSize())),this.write(c.getLongBytes(e.getSize())))},l.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit(),n=e.getMethod(),r=e.getName(),i=e.getLocalFileDataExtra();e.isZip64()&&(t.useDataDescriptor(!0),e.setVersionNeededToExtract(s.MIN_VERSION_ZIP64)),t.usesUTF8ForNames()&&(r=Buffer.from(r)),e._offsets.file=this.offset,this.write(c.getLongBytes(s.SIG_LFH)),this.write(c.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(c.getShortBytes(n)),this.write(c.getLongBytes(e.getTimeDos())),e._offsets.data=this.offset,t.usesDataDescriptor()?(this.write(s.LONG_ZERO),this.write(s.LONG_ZERO),this.write(s.LONG_ZERO)):(this.write(c.getLongBytes(e.getCrc())),this.write(c.getLongBytes(e.getCompressedSize())),this.write(c.getLongBytes(e.getSize()))),this.write(c.getShortBytes(r.length)),this.write(c.getShortBytes(i.length)),this.write(r),this.write(i),e._offsets.contents=this.offset},l.prototype.getComment=function(e){return this._archive.comment===null?``:this._archive.comment},l.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>s.ZIP64_MAGIC_SHORT||this._archive.centralLength>s.ZIP64_MAGIC||this._archive.centralOffset>s.ZIP64_MAGIC},l.prototype.setComment=function(e){this._archive.comment=e}})),Il=e.t(((e,t)=>{t.exports={ArchiveEntry:Sl(),ZipArchiveEntry:Dl(),ArchiveOutputStream:kl(),ZipArchiveOutputStream:Fl()}})),Ll=e.t(((e,n)=>{var r=s.i(),i=require(`path`),a=Hc(),o=Uc(),c=t.y(),l=Wc(),u=el(),d=n.exports={},f=/[\/\\]/g,p=function(e,t){var n=[];return a(e).forEach(function(e){var r=e.indexOf(`!`)===0;r&&(e=e.slice(1));var i=t(e);n=r?o(n,i):c(n,i)}),n};d.exists=function(){var e=i.join.apply(i,arguments);return r.existsSync(e)},d.expand=function(...e){var t=l(e[0])?e.shift():{},n=Array.isArray(e[0])?e[0]:e;if(n.length===0)return[];var a=p(n,function(e){return u.sync(e,t)});return t.filter&&(a=a.filter(function(e){e=i.join(t.cwd||``,e);try{return typeof t.filter==`function`?t.filter(e):r.statSync(e)[t.filter]()}catch{return!1}})),a},d.expandMapping=function(e,t,n){n=Object.assign({rename:function(e,t){return i.join(e||``,t)}},n);var r=[],a={};return d.expand(n,e).forEach(function(e){var o=e;n.flatten&&(o=i.basename(o)),n.ext&&(o=o.replace(/(\.[^\/]*)?$/,n.ext));var s=n.rename(t,o,n);n.cwd&&(e=i.join(n.cwd,e)),s=s.replace(f,`/`),e=e.replace(f,`/`),a[s]?a[s].src.push(e):(r.push({src:[e],dest:s}),a[s]=r[r.length-1])}),r},d.normalizeFilesArray=function(e){var t=[];return e.forEach(function(e){(`src`in e||`dest`in e)&&t.push(e)}),t.length===0?[]:(t=_(t).chain().forEach(function(e){!(`src`in e)||!e.src||(Array.isArray(e.src)?e.src=a(e.src):e.src=[e.src])}).map(function(e){var t=Object.assign({},e);if(delete t.src,delete t.dest,e.expand)return d.expandMapping(e.src,e.dest,t).map(function(t){var n=Object.assign({},e);return n.orig=Object.assign({},e),n.src=t.src,n.dest=t.dest,[`expand`,`cwd`,`flatten`,`rename`,`ext`].forEach(function(e){delete n[e]}),n});var n=Object.assign({},e);return n.orig=Object.assign({},e),`src`in n&&Object.defineProperty(n,`src`,{enumerable:!0,get:function n(){var r;return`result`in n||(r=e.src,r=Array.isArray(r)?a(r):[r],n.result=d.expand(t,r)),n.result}}),`dest`in n&&(n.dest=e.dest),n}).flatten().value(),t)}})),Rl=e.t(((e,t)=>{var n=s.i(),r=require(`path`),i=Oc(),a=kc(),o=Ac(),c=require(`stream`).Stream,l=bl().PassThrough,u=t.exports={};u.file=Ll(),u.collectStream=function(e,t){var n=[],r=0;e.on(`error`,t),e.on(`data`,function(e){n.push(e),r+=e.length}),e.on(`end`,function(){var e=Buffer.alloc(r),i=0;n.forEach(function(t){t.copy(e,i),i+=t.length}),t(null,e)})},u.dateify=function(e){return e||=new Date,e=e instanceof Date?e:typeof e==`string`?new Date(e):new Date,e},u.defaults=function(e,t,n){var r=arguments;return r[0]=r[0]||{},o(...r)},u.isStream=function(e){return e instanceof c},u.lazyReadStream=function(e){return new i.Readable(function(){return n.createReadStream(e)})},u.normalizeInputSource=function(e){return e===null?Buffer.alloc(0):typeof e==`string`?Buffer.from(e):u.isStream(e)?e.pipe(new l):e},u.sanitizePath=function(e){return a(e,!1).replace(/^\w+:/,``).replace(/^(\.\.\/|\/)+/,``)},u.trailingSlashIt=function(e){return e.slice(-1)===`/`?e:e+`/`},u.unixifyPath=function(e){return a(e,!1).replace(/^\w+:/,``)},u.walkdir=function(e,t,i){var a=[];typeof t==`function`&&(i=t,t=e),n.readdir(e,function(o,s){var c=0,l,d;if(o)return i(o);(function o(){if(l=s[c++],!l)return i(null,a);d=r.join(e,l),n.stat(d,function(e,n){a.push({path:d,relative:r.relative(t,d).replace(/\\/g,`/`),stats:n}),n&&n.isDirectory()?u.walkdir(d,t,function(e,t){t.forEach(function(e){a.push(e)}),o()}):o()})})()})}})),zl=e.t(((e,t)=>{
/**
* ZipStream
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
* @copyright (c) 2014 Chris Talkington, contributors.
*/
var n=require(`util`).inherits,r=Il().ZipArchiveOutputStream,i=Il().ZipArchiveEntry,a=Rl(),o=t.exports=function(e){if(!(this instanceof o))return new o(e);e=this.options=e||{},e.zlib=e.zlib||{},r.call(this,e),typeof e.level==`number`&&e.level>=0&&(e.zlib.level=e.level,delete e.level),!e.forceZip64&&typeof e.zlib.level==`number`&&e.zlib.level===0&&(e.store=!0),e.namePrependSlash=e.namePrependSlash||!1,e.comment&&e.comment.length>0&&this.setComment(e.comment)};n(o,r),o.prototype._normalizeFileData=function(e){e=a.defaults(e,{type:`file`,name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:``});var t=e.type===`directory`,n=e.type===`symlink`;return e.name&&(e.name=a.sanitizePath(e.name),!n&&e.name.slice(-1)===`/`?(t=!0,e.type=`directory`):t&&(e.name+=`/`)),(t||n)&&(e.store=!0),e.date=a.dateify(e.date),e},o.prototype.entry=function(e,t,n){if(typeof n!=`function`&&(n=this._emitErrorCallback.bind(this)),t=this._normalizeFileData(t),t.type!==`file`&&t.type!==`directory`&&t.type!==`symlink`){n(Error(t.type+` entries not currently supported`));return}if(typeof t.name!=`string`||t.name.length===0){n(Error(`entry name must be a non-empty string value`));return}if(t.type===`symlink`&&typeof t.linkname!=`string`){n(Error(`entry linkname must be a non-empty string value when type equals symlink`));return}var a=new i(t.name);return a.setTime(t.date,this.options.forceLocalTime),t.namePrependSlash&&a.setName(t.name,!0),t.store&&a.setMethod(0),t.comment.length>0&&a.setComment(t.comment),t.type===`symlink`&&typeof t.mode!=`number`&&(t.mode=40960),typeof t.mode==`number`&&(t.type===`symlink`&&(t.mode|=40960),a.setUnixMode(t.mode)),t.type===`symlink`&&typeof t.linkname==`string`&&(e=Buffer.from(t.linkname)),r.prototype.entry.call(this,a,e,n)},o.prototype.finalize=function(){this.finish()}})),Bl=e.t(((e,t)=>{
/**
* ZIP Format Plugin
*
* @module plugins/zip
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var n=zl(),r=nl(),i=function(e){if(!(this instanceof i))return new i(e);e=this.options=r.defaults(e,{comment:``,forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new n(e)};i.prototype.append=function(e,t,n){this.engine.entry(e,t,n)},i.prototype.finalize=function(){this.engine.finalize()},i.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},i.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)},i.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)},t.exports=i})),Vl=e.t(((e,t)=>{let{Buffer:n}=require(`buffer`),r=Symbol.for(`BufferList`);function i(e){if(!(this instanceof i))return new i(e);i._init.call(this,e)}i._init=function(e){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},i.prototype._new=function(e){return new i(e)},i.prototype._offset=function(e){if(e===0)return[0,0];let t=0;for(let n=0;n<this._bufs.length;n++){let r=t+this._bufs[n].length;if(e<r||n===this._bufs.length-1)return[n,e-t];t=r}},i.prototype._reverseOffset=function(e){let t=e[0],n=e[1];for(let e=0;e<t;e++)n+=this._bufs[e].length;return n},i.prototype.get=function(e){if(e>this.length||e<0)return;let t=this._offset(e);return this._bufs[t[0]][t[1]]},i.prototype.slice=function(e,t){return typeof e==`number`&&e<0&&(e+=this.length),typeof t==`number`&&t<0&&(t+=this.length),this.copy(null,0,e,t)},i.prototype.copy=function(e,t,r,i){if((typeof r!=`number`||r<0)&&(r=0),(typeof i!=`number`||i>this.length)&&(i=this.length),r>=this.length||i<=0)return e||n.alloc(0);let a=!!e,o=this._offset(r),s=i-r,c=s,l=a&&t||0,u=o[1];if(r===0&&i===this.length){if(!a)return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length);for(let t=0;t<this._bufs.length;t++)this._bufs[t].copy(e,l),l+=this._bufs[t].length;return e}if(c<=this._bufs[o[0]].length-u)return a?this._bufs[o[0]].copy(e,t,u,u+c):this._bufs[o[0]].slice(u,u+c);a||(e=n.allocUnsafe(s));for(let t=o[0];t<this._bufs.length;t++){let n=this._bufs[t].length-u;if(c>n)this._bufs[t].copy(e,l,u),l+=n;else{this._bufs[t].copy(e,l,u,u+c),l+=n;break}c-=n,u&&=0}return e.length>l?e.slice(0,l):e},i.prototype.shallowSlice=function(e,t){if(e||=0,t=typeof t==`number`?t:this.length,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();let n=this._offset(e),r=this._offset(t),i=this._bufs.slice(n[0],r[0]+1);return r[1]===0?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),n[1]!==0&&(i[0]=i[0].slice(n[1])),this._new(i)},i.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},i.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this},i.prototype.duplicate=function(){let e=this._new();for(let t=0;t<this._bufs.length;t++)e.append(this._bufs[t]);return e},i.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(n.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let t=0;t<e.length;t++)this.append(e[t]);else if(this._isBufferList(e))for(let t=0;t<e._bufs.length;t++)this.append(e._bufs[t]);else typeof e==`number`&&(e=e.toString()),this._appendBuffer(n.from(e));return this},i.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},i.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t==`string`&&(r=t,t=void 0),typeof e==`function`||Array.isArray(e))throw TypeError(`The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.`);if(typeof e==`number`?e=n.from([e]):typeof e==`string`?e=n.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=n.from(e.buffer,e.byteOffset,e.byteLength):n.isBuffer(e)||(e=n.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let i=this._offset(t),a=i[0],o=i[1];for(;a<this._bufs.length;a++){let t=this._bufs[a];for(;o<t.length;)if(t.length-o>=e.length){let n=t.indexOf(e,o);if(n!==-1)return this._reverseOffset([a,n]);o=t.length-e.length+1}else{let t=this._reverseOffset([a,o]);if(this._match(t,e))return t;o++}o=0}return-1},i.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let n=0;n<t.length;n++)if(this.get(e+n)!==t[n])return!1;return!0},(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(t){e[t]===null?i.prototype[t]=function(e,n){return this.slice(e,e+n)[t](0,n)}:i.prototype[t]=function(n=0){return this.slice(n,n+e[t])[t](0)}})(t)})(),i.prototype._isBufferList=function(e){return e instanceof i||i.isBufferList(e)},i.isBufferList=function(e){return e!=null&&e[r]},t.exports=i})),Hl=e.t(((e,t)=>{let n=bl().Duplex,r=Y(),i=Vl();function a(e){if(!(this instanceof a))return new a(e);if(typeof e==`function`){this._callback=e;let t=function(e){this._callback&&=(this._callback(e),null)}.bind(this);this.on(`pipe`,function(e){e.on(`error`,t)}),this.on(`unpipe`,function(e){e.removeListener(`error`,t)}),e=null}i._init.call(this,e),n.call(this)}r(a,n),Object.assign(a.prototype,i.prototype),a.prototype._new=function(e){return new a(e)},a.prototype._write=function(e,t,n){this._appendBuffer(e),typeof n==`function`&&n()},a.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},a.prototype.end=function(e){n.prototype.end.call(this,e),this._callback&&=(this._callback(null,this.slice()),null)},a.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e)},a.prototype._isBufferList=function(e){return e instanceof a||e instanceof i||a.isBufferList(e)},a.isBufferList=i.isBufferList,t.exports=a,t.exports.BufferListStream=a,t.exports.BufferList=i})),Ul=e.t((e=>{var t=Buffer.alloc,n=`0000000000000000000`,r=`7777777777777777777`,i=48,a=Buffer.from(`ustar\0`,`binary`),o=Buffer.from(`00`,`binary`),s=Buffer.from(`ustar `,`binary`),c=Buffer.from(` \0`,`binary`),l=4095,u=257,d=263,f=function(e,t,n){return typeof e==`number`?(e=~~e,e>=t?t:e>=0||(e+=t,e>=0)?e:0):n},p=function(e){switch(e){case 0:return`file`;case 1:return`link`;case 2:return`symlink`;case 3:return`character-device`;case 4:return`block-device`;case 5:return`directory`;case 6:return`fifo`;case 7:return`contiguous-file`;case 72:return`pax-header`;case 55:return`pax-global-header`;case 27:return`gnu-long-link-path`;case 28:case 30:return`gnu-long-path`}return null},m=function(e){switch(e){case`file`:return 0;case`link`:return 1;case`symlink`:return 2;case`character-device`:return 3;case`block-device`:return 4;case`directory`:return 5;case`fifo`:return 6;case`contiguous-file`:return 7;case`pax-header`:return 72}return 0},h=function(e,t,n,r){for(;n<r;n++)if(e[n]===t)return n;return r},g=function(e){for(var t=256,n=0;n<148;n++)t+=e[n];for(var r=156;r<512;r++)t+=e[r];return t},v=function(e,t){return e=e.toString(8),e.length>t?r.slice(0,t)+` `:n.slice(0,t-e.length)+e+` `};function y(e){var t;if(e[0]===128)t=!0;else if(e[0]===255)t=!1;else return null;for(var n=[],r=e.length-1;r>0;r--){var i=e[r];t?n.push(i):n.push(255-i)}var a=0,o=n.length;for(r=0;r<o;r++)a+=n[r]*256**r;return t?a:-1*a}var b=function(e,t,n){if(e=e.slice(t,t+n),t=0,e[t]&128)return y(e);for(;t<e.length&&e[t]===32;)t++;for(var r=f(h(e,32,t,e.length),e.length,e.length);t<r&&e[t]===0;)t++;return r===t?0:parseInt(e.slice(t,r).toString(),8)},x=function(e,t,n,r){return e.slice(t,h(e,0,t,t+n)).toString(r)},S=function(e){var t=Buffer.byteLength(e),n=Math.floor(Math.log(t)/Math.log(10))+1;return t+n>=10**n&&n++,t+n+e};e.decodeLongPath=function(e,t){return x(e,0,e.length,t)},e.encodePax=function(e){var t=``;e.name&&(t+=S(` path=`+e.name+`
`)),e.linkname&&(t+=S(` linkpath=`+e.linkname+`
`));var n=e.pax;if(n)for(var r in n)t+=S(` `+r+`=`+n[r]+`
`);return Buffer.from(t)},e.decodePax=function(e){for(var t={};e.length;){for(var n=0;n<e.length&&e[n]!==32;)n++;var r=parseInt(e.slice(0,n).toString(),10);if(!r)return t;var i=e.slice(n+1,r-1).toString(),a=i.indexOf(`=`);if(a===-1)return t;t[i.slice(0,a)]=i.slice(a+1),e=e.slice(r)}return t},e.encode=function(e){var n=t(512),r=e.name,s=``;if(e.typeflag===5&&r[r.length-1]!==`/`&&(r+=`/`),Buffer.byteLength(r)!==r.length)return null;for(;Buffer.byteLength(r)>100;){var c=r.indexOf(`/`);if(c===-1)return null;s+=s?`/`+r.slice(0,c):r.slice(0,c),r=r.slice(c+1)}return Buffer.byteLength(r)>100||Buffer.byteLength(s)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(n.write(r),n.write(v(e.mode&l,6),100),n.write(v(e.uid,6),108),n.write(v(e.gid,6),116),n.write(v(e.size,11),124),n.write(v(e.mtime.getTime()/1e3|0,11),136),n[156]=i+m(e.type),e.linkname&&n.write(e.linkname,157),a.copy(n,u),o.copy(n,d),e.uname&&n.write(e.uname,265),e.gname&&n.write(e.gname,297),n.write(v(e.devmajor||0,6),329),n.write(v(e.devminor||0,6),337),s&&n.write(s,345),n.write(v(g(n),6),148),n)},e.decode=function(e,t,n){var r=e[156]===0?0:e[156]-i,o=x(e,0,100,t),l=b(e,100,8),f=b(e,108,8),m=b(e,116,8),h=b(e,124,12),v=b(e,136,12),y=p(r),S=e[157]===0?null:x(e,157,100,t),C=x(e,265,32),w=x(e,297,32),T=b(e,329,8),E=b(e,337,8),D=g(e);if(D===256)return null;if(D!==b(e,148,8))throw Error(`Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?`);if(a.compare(e,u,u+6)===0)e[345]&&(o=x(e,345,155,t)+`/`+o);else if(!(s.compare(e,u,u+6)===0&&c.compare(e,d,d+2)===0)&&!n)throw Error(`Invalid tar header: unknown format.`);return r===0&&o&&o[o.length-1]===`/`&&(r=5),{name:o,mode:l,uid:f,gid:m,size:h,mtime:new Date(1e3*v),type:y,linkname:S,uname:C,gname:w,devmajor:T,devminor:E}}})),Wl=e.t(((e,t)=>{var n=require(`util`),r=Hl(),i=Ul(),a=bl().Writable,o=bl().PassThrough,s=function(){},c=function(e){return e&=511,e&&512-e},l=function(e,t){var n=new d(e,t);return n.end(),n},u=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e},d=function(e,t){this._parent=e,this.offset=t,o.call(this,{autoDestroy:!1})};n.inherits(d,o),d.prototype.destroy=function(e){this._parent.destroy(e)};var f=function(e){if(!(this instanceof f))return new f(e);a.call(this,e),e||={},this._offset=0,this._buffer=r(),this._missing=0,this._partial=!1,this._onparse=s,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,n=t._buffer,o=function(){t._continue()},p=function(e){if(t._locked=!1,e)return t.destroy(e);t._stream||o()},m=function(){t._stream=null;var e=c(t._header.size);e?t._parse(e,h):t._parse(512,x),t._locked||o()},h=function(){t._buffer.consume(c(t._header.size)),t._parse(512,x),o()},g=function(){var e=t._header.size;t._paxGlobal=i.decodePax(n.slice(0,e)),n.consume(e),m()},v=function(){var e=t._header.size;t._pax=i.decodePax(n.slice(0,e)),t._paxGlobal&&(t._pax=Object.assign({},t._paxGlobal,t._pax)),n.consume(e),m()},y=function(){var r=t._header.size;this._gnuLongPath=i.decodeLongPath(n.slice(0,r),e.filenameEncoding),n.consume(r),m()},b=function(){var r=t._header.size;this._gnuLongLinkPath=i.decodeLongPath(n.slice(0,r),e.filenameEncoding),n.consume(r),m()},x=function(){var r=t._offset,a;try{a=t._header=i.decode(n.slice(0,512),e.filenameEncoding,e.allowUnknownFormat)}catch(e){t.emit(`error`,e)}if(n.consume(512),!a){t._parse(512,x),o();return}if(a.type===`gnu-long-path`){t._parse(a.size,y),o();return}if(a.type===`gnu-long-link-path`){t._parse(a.size,b),o();return}if(a.type===`pax-global-header`){t._parse(a.size,g),o();return}if(a.type===`pax-header`){t._parse(a.size,v),o();return}if(t._gnuLongPath&&=(a.name=t._gnuLongPath,null),t._gnuLongLinkPath&&=(a.linkname=t._gnuLongLinkPath,null),t._pax&&=(t._header=a=u(a,t._pax),null),t._locked=!0,!a.size||a.type===`directory`){t._parse(512,x),t.emit(`entry`,a,l(t,r),p);return}t._stream=new d(t,r),t.emit(`entry`,a,t._stream,p),t._parse(a.size,m),o()};this._onheader=x,this._parse(512,x)};n.inherits(f,a),f.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit(`error`,e),this.emit(`close`),this._stream&&this._stream.emit(`close`))},f.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)},f.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=s,this._overflow?this._write(this._overflow,void 0,e):e()}},f.prototype._write=function(e,t,n){if(!this._destroyed){var r=this._stream,i=this._buffer,a=this._missing;if(e.length&&(this._partial=!0),e.length<a)return this._missing-=e.length,this._overflow=null,r?r.write(e,n):(i.append(e),n());this._cb=n,this._missing=0;var o=null;e.length>a&&(o=e.slice(a),e=e.slice(0,a)),r?r.end(e):i.append(e),this._overflow=o,this._onparse()}},f.prototype._final=function(e){if(this._partial)return this.destroy(Error(`Unexpected end of data`));e()},t.exports=f})),Gl=e.t(((e,t)=>{t.exports=require(`fs`).constants||require(`constants`)})),Kl=e.t(((e,n)=>{var r=Gl(),i=t.g(),a=Y(),o=Buffer.alloc,s=bl().Readable,c=bl().Writable,l=require(`string_decoder`).StringDecoder,u=Ul(),d=493,f=420,p=o(1024),m=function(){},h=function(e,t){t&=511,t&&e.push(p.slice(0,512-t))};function g(e){switch(e&r.S_IFMT){case r.S_IFBLK:return`block-device`;case r.S_IFCHR:return`character-device`;case r.S_IFDIR:return`directory`;case r.S_IFIFO:return`fifo`;case r.S_IFLNK:return`symlink`}return`file`}var v=function(e){c.call(this),this.written=0,this._to=e,this._destroyed=!1};a(v,c),v.prototype._write=function(e,t,n){if(this.written+=e.length,this._to.push(e))return n();this._to._drain=n},v.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit(`close`))};var y=function(){c.call(this),this.linkname=``,this._decoder=new l(`utf-8`),this._destroyed=!1};a(y,c),y.prototype._write=function(e,t,n){this.linkname+=this._decoder.write(e),n()},y.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit(`close`))};var b=function(){c.call(this),this._destroyed=!1};a(b,c),b.prototype._write=function(e,t,n){n(Error(`No body allowed for this entry`))},b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit(`close`))};var x=function(e){if(!(this instanceof x))return new x(e);s.call(this,e),this._drain=m,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};a(x,s),x.prototype.entry=function(e,t,n){if(this._stream)throw Error(`already piping an entry`);if(!(this._finalized||this._destroyed)){typeof t==`function`&&(n=t,t=null),n||=m;var r=this;if((!e.size||e.type===`symlink`)&&(e.size=0),e.type||=g(e.mode),e.mode||=e.type===`directory`?d:f,e.uid||=0,e.gid||=0,e.mtime||=new Date,typeof t==`string`&&(t=Buffer.from(t)),Buffer.isBuffer(t)){e.size=t.length,this._encode(e);var a=this.push(t);return h(r,e.size),a?process.nextTick(n):this._drain=n,new b}if(e.type===`symlink`&&!e.linkname){var o=new y;return i(o,function(t){if(t)return r.destroy(),n(t);e.linkname=o.linkname,r._encode(e),n()}),o}if(this._encode(e),e.type!==`file`&&e.type!==`contiguous-file`)return process.nextTick(n),new b;var s=new v(this);return this._stream=s,i(s,function(t){if(r._stream=null,t)return r.destroy(),n(t);if(s.written!==e.size)return r.destroy(),n(Error(`size mismatch`));h(r,e.size),r._finalizing&&r.finalize(),n()}),s}},x.prototype.finalize=function(){if(this._stream){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(p),this.push(null))},x.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit(`error`,e),this.emit(`close`),this._stream&&this._stream.destroy&&this._stream.destroy())},x.prototype._encode=function(e){if(!e.pax){var t=u.encode(e);if(t){this.push(t);return}}this._encodePax(e)},x.prototype._encodePax=function(e){var t=u.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:`PaxHeader`,mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:`pax-header`,linkname:e.linkname&&`PaxHeader`,uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(u.encode(n)),this.push(t),h(this,t.length),n.size=e.size,n.type=e.type,this.push(u.encode(n))},x.prototype._read=function(e){var t=this._drain;this._drain=m,t()},n.exports=x})),ql=e.t((e=>{e.extract=Wl(),e.pack=Kl()})),Jl=e.t(((e,t)=>{
/**
* TAR Format Plugin
*
* @module plugins/tar
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var n=require(`zlib`),r=ql(),i=nl(),a=function(e){if(!(this instanceof a))return new a(e);e=this.options=i.defaults(e,{gzip:!1}),typeof e.gzipOptions!=`object`&&(e.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=r.pack(e),this.compressor=!1,e.gzip&&(this.compressor=n.createGzip(e.gzipOptions),this.compressor.on(`error`,this._onCompressorError.bind(this)))};a.prototype._onCompressorError=function(e){this.engine.emit(`error`,e)},a.prototype.append=function(e,t,n){var r=this;t.mtime=t.date;function a(e,i){if(e){n(e);return}r.engine.entry(t,i,function(e){n(e,t)})}if(t.sourceType===`buffer`)a(null,e);else if(t.sourceType===`stream`&&t.stats){t.size=t.stats.size;var o=r.engine.entry(t,function(e){n(e,t)});e.pipe(o)}else t.sourceType===`stream`&&i.collectStream(e,a)},a.prototype.finalize=function(){this.engine.finalize()},a.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},a.prototype.pipe=function(e,t){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t):this.engine.pipe.apply(this.engine,arguments)},a.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)},t.exports=a})),Yl=e.t(((e,t)=>{
/**
* JSON Format Plugin
*
* @module plugins/json
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var n=require(`util`).inherits,r=bl().Transform,i=Al(),a=nl(),o=function(e){if(!(this instanceof o))return new o(e);e=this.options=a.defaults(e,{}),r.call(this,e),this.supports={directory:!0,symlink:!0},this.files=[]};n(o,r),o.prototype._transform=function(e,t,n){n(null,e)},o.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e)},o.prototype.append=function(e,t,n){var r=this;t.crc32=0;function o(e,a){if(e){n(e);return}t.size=a.length||0,t.crc32=i.unsigned(a),r.files.push(t),n(null,t)}t.sourceType===`buffer`?o(null,e):t.sourceType===`stream`&&a.collectStream(e,o)},o.prototype.finalize=function(){this._writeStringified(),this.end()},t.exports=o})),Xl=e.t(((e,t)=>{
/**
* Archiver Vending
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
var n=xl(),r={},i=function(e,t){return i.create(e,t)};i.create=function(e,t){if(r[e]){var i=new n(e,t);return i.setFormat(e),i.setModule(new r[e](t)),i}else throw Error(`create(`+e+`): format not registered`)},i.registerFormat=function(e,t){if(r[e])throw Error(`register(`+e+`): format already registered`);if(typeof t!=`function`)throw Error(`register(`+e+`): format module invalid`);if(typeof t.prototype.append!=`function`||typeof t.prototype.finalize!=`function`)throw Error(`register(`+e+`): format module missing methods`);r[e]=t},i.isRegisteredFormat=function(e){return!!r[e]},i.registerFormat(`zip`,Bl()),i.registerFormat(`tar`,Jl()),i.registerFormat(`json`,Yl()),t.exports=i})),Zl=e.a(Xl());async function Ql(e,t){let n=(0,Zl.default)(`zip`,{zlib:{level:9}}),r=await(0,Qs.file)({postfix:`.zip`}),i=(0,m.createWriteStream)(``,{fd:r.fd});return new Promise((a,o)=>{i.on(`close`,()=>{a({path:r.path,size:n.pointer()})}),n.on(`warning`,t=>{e.log.debug({err:t},`Received warning when creating zip file`)}),n.on(`error`,e=>{o(e)}),n.pipe(i);for(let{localPath:r,targetPath:i}of t)e.log.debug(`Adding to zip archive: ${i}`),n.append((0,m.createReadStream)(r),{name:i});e.log.debug(`Finalizing zip archive`),n.finalize().catch(e=>o(e))})}var $l=(e,t,n)=>{if(!t.has(e))throw TypeError(`Cannot `+n)},X=(e,t,n)=>($l(e,t,`read from private field`),n?n.call(e):t.get(e)),eu=(e,t,n)=>{if(t.has(e))throw TypeError(`Cannot add the same private member more than once`);t instanceof WeakSet?t.add(e):t.set(e,n)},tu=(e,t,n,r)=>($l(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),nu=(e,t,n)=>($l(e,t,`access private method`),n),Z=e=>typeof e==`function`,ru=e=>typeof e==`object`&&!!e&&!Array.isArray(e),iu=e=>ru(e)&&Z(e[Symbol.asyncIterator]),au=65536;async function*ou(e){if(e.byteLength<=au){yield e;return}let t=0;for(;t<e.byteLength;){let n=Math.min(e.byteLength-t,au),r=e.buffer.slice(t,t+n);t+=r.byteLength,yield new Uint8Array(r)}}async function*su(e){let t=e.getReader();for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}async function*cu(e){for await(let t of e)yield*ou(t)}var lu=e=>{if(iu(e))return cu(e);if(Z(e.getReader))return cu(su(e));throw TypeError(`Unsupported data source: Expected either ReadableStream or async iterable.`)};async function*uu(e){let t=0;for(;t!==e.size;){let n=await e.slice(t,Math.min(e.size,t+au)).arrayBuffer();t+=n.byteLength,yield new Uint8Array(n)}}async function*du(e,t=!1){for(let n of e)ArrayBuffer.isView(n)?t?yield*ou(n):yield n:Z(n.stream)?yield*lu(n.stream()):yield*uu(n)}function*fu(e,t,n=0,r){r??=t;let i=n<0?Math.max(t+n,0):Math.min(n,t),a=r<0?Math.max(t+r,0):Math.min(r,t),o=Math.max(a-i,0),s=0;for(let t of e){if(s>=o)break;let e=ArrayBuffer.isView(t)?t.byteLength:t.size;if(i&&e<=i)i-=e,a-=e;else{let n;ArrayBuffer.isView(t)?(n=t.subarray(i,Math.min(e,a)),s+=n.byteLength):(n=t.slice(i,Math.min(e,a)),s+=n.size),a-=e,i=0,yield n}}}var pu,mu,hu,gu=class e{constructor(t=[],n={}){if(eu(this,pu,[]),eu(this,mu,``),eu(this,hu,0),n??={},typeof t!=`object`||!t)throw TypeError(`Failed to construct 'Blob': The provided value cannot be converted to a sequence.`);if(!Z(t[Symbol.iterator]))throw TypeError(`Failed to construct 'Blob': The object must have a callable @@iterator property.`);if(typeof n!=`object`&&!Z(n))throw TypeError(`Failed to construct 'Blob': parameter 2 cannot convert to dictionary.`);let r=new TextEncoder;for(let n of t){let t;t=ArrayBuffer.isView(n)?new Uint8Array(n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)):n instanceof ArrayBuffer?new Uint8Array(n.slice(0)):n instanceof e?n:r.encode(String(n)),tu(this,hu,X(this,hu)+(ArrayBuffer.isView(t)?t.byteLength:t.size)),X(this,pu).push(t)}let i=n.type===void 0?``:String(n.type);tu(this,mu,/^[\x20-\x7E]*$/.test(i)?i:``)}static[Symbol.hasInstance](e){return!!(e&&typeof e==`object`&&Z(e.constructor)&&(Z(e.stream)||Z(e.arrayBuffer))&&/^(Blob|File)$/.test(e[Symbol.toStringTag]))}get type(){return X(this,mu)}get size(){return X(this,hu)}slice(t,n,r){return new e(fu(X(this,pu),this.size,t,n),{type:r})}async text(){let e=new TextDecoder,t=``;for await(let n of du(X(this,pu)))t+=e.decode(n,{stream:!0});return t+=e.decode(),t}async arrayBuffer(){let e=new Uint8Array(this.size),t=0;for await(let n of du(X(this,pu)))e.set(n,t),t+=n.length;return e.buffer}stream(){let e=du(X(this,pu),!0);return new ReadableStream({async pull(t){let{value:n,done:r}=await e.next();if(r)return queueMicrotask(()=>t.close());t.enqueue(n)},async cancel(){await e.return()}})}get[Symbol.toStringTag](){return`Blob`}};pu=new WeakMap,mu=new WeakMap,hu=new WeakMap;var _u=gu;Object.defineProperties(_u.prototype,{type:{enumerable:!0},size:{enumerable:!0},slice:{enumerable:!0},stream:{enumerable:!0},text:{enumerable:!0},arrayBuffer:{enumerable:!0}});var vu=e=>e instanceof _u,yu,bu,xu=class extends _u{constructor(e,t,n={}){if(super(e,n),eu(this,yu,void 0),eu(this,bu,0),arguments.length<2)throw TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);tu(this,yu,String(t));let r=n.lastModified===void 0?Date.now():Number(n.lastModified);Number.isNaN(r)||tu(this,bu,r)}static[Symbol.hasInstance](e){return e instanceof _u&&e[Symbol.toStringTag]===`File`&&typeof e.name==`string`}get name(){return X(this,yu)}get webkitRelativePath(){return``}get lastModified(){return X(this,bu)}get[Symbol.toStringTag](){return`File`}};yu=new WeakMap,bu=new WeakMap;var Su=e=>e instanceof xu,Cu,wu,Tu,Eu=class{constructor(){eu(this,wu),eu(this,Cu,new Map)}static[Symbol.hasInstance](e){if(!e)return!1;let t=e;return!!(Z(t.constructor)&&t[Symbol.toStringTag]===`FormData`&&Z(t.append)&&Z(t.set)&&Z(t.get)&&Z(t.getAll)&&Z(t.has)&&Z(t.delete)&&Z(t.entries)&&Z(t.values)&&Z(t.keys)&&Z(t[Symbol.iterator])&&Z(t.forEach))}append(e,t,n){nu(this,wu,Tu).call(this,{name:e,fileName:n,append:!0,rawValue:t,argsLength:arguments.length})}set(e,t,n){nu(this,wu,Tu).call(this,{name:e,fileName:n,append:!1,rawValue:t,argsLength:arguments.length})}get(e){let t=X(this,Cu).get(String(e));return t?t[0]:null}getAll(e){let t=X(this,Cu).get(String(e));return t?t.slice():[]}has(e){return X(this,Cu).has(String(e))}delete(e){X(this,Cu).delete(String(e))}*keys(){for(let e of X(this,Cu).keys())yield e}*entries(){for(let e of this.keys()){let t=this.getAll(e);for(let n of t)yield[e,n]}}*values(){for(let[,e]of this)yield e}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[n,r]of this)e.call(t,r,n,this)}get[Symbol.toStringTag](){return`FormData`}};Cu=new WeakMap,wu=new WeakSet,Tu=function({name:e,rawValue:t,append:n,fileName:r,argsLength:i}){let a=n?`append`:`set`;if(i<2)throw TypeError(`Failed to execute '${a}' on 'FormData': 2 arguments required, but only ${i} present.`);e=String(e);let o;if(Su(t))o=r===void 0?t:new xu([t],r,{type:t.type,lastModified:t.lastModified});else if(vu(t))o=new xu([t],r===void 0?`blob`:r,{type:t.type});else if(r)throw TypeError(`Failed to execute '${a}' on 'FormData': parameter 2 is not of type 'Blob'.`);else o=String(t);let s=X(this,Cu).get(e);if(!s){X(this,Cu).set(e,[o]);return}if(!n){X(this,Cu).set(e,[o]);return}s.push(o)};
/*! Based on fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> & David Frank */
var Du=e.a(i.q());let Ou;var ku=class{static{Ou=Symbol.toStringTag}constructor(e,t,n){this[Ou]=`Blob`,this.size=t,this.readStream=(0,m.createReadStream)(e),this.readStream.on(`data`,e=>n(e.length))}stream(){return this.readStream}};async function Au(e,t,n){let{experimental_abortSignal:r}=e.options,i=(0,Du.default)(10),a=0;await Promise.all(t.map(({contentLength:t,filePath:o,formAction:s,formFields:c,localPath:l})=>{let u=0;return e.log.debug(`Uploading ${o} (${(0,$s.filesize)(t)}) to ${s}`),i(()=>(0,mr.default)(async i=>{if(r?.aborted)return i(r.reason||Error(`Aborted`));let d=new ku(l,t,e=>{u+=e,a+=e,n?.(a)}),f=new Eu;for(let[e,t]of Object.entries(c))f.append(e,t);f.append(`file`,d);try{await e.http.fetch(s,{body:f,method:`POST`,signal:r},{retries:0}),e.log.debug(`Uploaded ${o} (${(0,$s.filesize)(t)})`)}catch{throw Error(l)}},{retries:e.env.CHROMATIC_RETRIES,onRetry:t=>{a-=u,u=0,e.log.debug(`Retrying upload for %s, %O`,l,t),n?.(a)}}))}))}async function ju(e,t,n){let{experimental_abortSignal:r}=e.options,{contentLength:i,filePath:a,formAction:o,formFields:s,localPath:c}=t,l=0;return e.log.debug(`Uploading ${a} (${(0,$s.filesize)(i)})`),(0,mr.default)(async t=>{if(r?.aborted)return t(r.reason||Error(`Aborted`));let u=new ku(c,i,e=>{l+=e,n?.(l)}),d=new Eu;for(let[e,t]of Object.entries(s))d.append(e,t);d.append(`file`,u);let f=await e.http.fetch(o,{body:d,method:`POST`,signal:r},{retries:0});if(!f.ok)throw e.log.debug(`Uploading ${c} failed: %O`,f),Error(c);e.log.debug(`Uploaded ${a} (${(0,$s.filesize)(i)})`)},{retries:e.env.CHROMATIC_RETRIES,onRetry:t=>{l=0,e.log.debug(`Retrying upload for %s, %O`,c,t),n(l)}})}function Mu(e,t=[]){let n=t.includes(`android`),r=t.includes(`ios`);return e.filter(e=>!!(e.targetPath===`manifest.json`||n&&e.targetPath===`storybook.apk`||r&&e.targetPath.startsWith(`storybook.app`)))}async function Nu(e,n,r={}){let i=[],a=0,o=0,s=`UNUSED`;e.turboSnap&&(s=e.turboSnap.bailReason?`BAILED`:`APPLIED`);let c=[],l,u=e.announcedBuild?.browsers||[],d=e.isReactNativeApp?Mu(n,u):n,f=[];for(let[e,t]of d.entries()){let n=Math.floor(e/1e3);f[n]||(f[n]=[]),f[n].push(t)}for(let[n,u]of f.entries()){e.log.debug(`Running uploadBuild batch ${n+1} / ${f.length}`);let{uploadBuild:d}=await e.client.runQuery(`
mutation UploadBuildMutation(
$buildId: ObjID!
$files: [FileUploadInput!]!
$zip: Boolean
$onlyStoryFiles: [String!]
$turboSnapStatus: TurboSnapStatus
) {
uploadBuild(
buildId: $buildId
files: $files
zip: $zip
onlyStoryFiles: $onlyStoryFiles
turboSnapStatus: $turboSnapStatus
) {
info {
sentinelUrls
targets {
contentType
fileKey
filePath
formAction
formFields
}
zipTarget {
contentType
fileKey
filePath
formAction
formFields
}
}
build {
id
status
ancestorBuilds {
status
webUrl
snapshotCount
}
}
userErrors {
__typename
... on UserError {
message
}
... on MaxFileCountExceededError {
maxFileCount
fileCount
}
... on MaxFileSizeExceededError {
maxFileSize
filePaths
}
}
}
}
`,{buildId:e.announcedBuild.id,files:u.map(({contentHash:e,contentLength:t,targetPath:n})=>({contentHash:e,contentLength:t,filePath:n})),zip:e.options.zip,onlyStoryFiles:e.onlyStoryFiles,turboSnapStatus:s});if(d.userErrors.length>0){for(let t of d.userErrors)t.__typename===`MaxFileCountExceededError`?e.log.error(nc(t)):t.__typename===`MaxFileSizeExceededError`?e.log.error(rc(t)):e.log.error(t.message);return r.onError?.(Error(`Upload rejected due to user error`)),{sentinelUrls:i,uploadedBytes:a,uploadedFiles:o}}if(d.build?.status===`SKIPPED`)return e.log.debug(`Build ${d.build.id} skipped via TurboSnap, not uploading build files`),await e.client.runQuery(`
mutation PrepareBuild(
$buildId: ObjID!
$runtimeSpecs: [RuntimeSpecInput!]!
$skipped: Boolean
) {
prepareBuild(id: $buildId, runtimeSpecs: $runtimeSpecs, skipped: $skipped)
}
`,{buildId:d.build.id,runtimeSpecs:[],skipped:!0},{retries:3}).catch(n=>{e.log.error(`Failed to prepare skipped build ${d.build?.id}, continuing`,n),t.A(n)}),{sentinelUrls:i,uploadedBytes:a,uploadedFiles:o,skippedByTurboSnap:!0,ancestorBuild:d.build.ancestorBuilds?.[0]};i.push(...d.info?.sentinelUrls||[]),c.push(...d.info?.targets.map(e=>({...u.find(t=>t.targetPath===e.filePath),...e}))||[]),d.info?.zipTarget&&(l=d.info.zipTarget)}if(c.length===0)return e.log.debug(`No new files to upload, continuing`),{sentinelUrls:i,uploadedBytes:a,uploadedFiles:o};let p=c.reduce((e,{contentLength:t})=>e+t,0);if(l)try{let{path:t,size:n}=await Ql(e,c),s=p&&(p-n)/p;return e.log.debug(`Compression reduced upload size by ${Math.round(s*100)}%`),await ju(e,{...l,contentLength:n,localPath:t},e=>r.onProgress?.(e,n)),a+=n,o+=c.length,{sentinelUrls:i,uploadedBytes:a,uploadedFiles:o}}catch(t){e.log.debug({err:t},`Error uploading zip, falling back to uploading individual files`)}try{await Au(e,c,e=>r.onProgress?.(e,p)),a+=p,o+=c.length}catch(t){let n=c.find(e=>e.localPath===t.message);n&&e.log.error(ic({target:n},e.log.getLevel()===`debug`)),r.onError?.(t,n?.localPath)}return{sentinelUrls:i,uploadedBytes:a,uploadedFiles:o}}async function Pu(e,t){let{uploadMetadata:n}=await e.client.runQuery(`
mutation UploadMetadataMutation($buildId: ObjID!, $files: [FileUploadInput!]!) {
uploadMetadata(buildId: $buildId, files: $files) {
info {
targets {
contentType
fileKey
filePath
formAction
formFields
}
}
userErrors {
... on UserError {
message
}
}
}
}
`,{buildId:e.announcedBuild.id,files:t.map(({contentHash:e,contentLength:t,targetPath:n})=>({contentHash:e,contentLength:t,filePath:n}))});n.info&&await Au(e,n.info.targets.map(e=>({...t.find(t=>t.targetPath===e.filePath),...e}))),n.userErrors.length>0&&n.userErrors.map(t=>e.log.warn(t.message))}const Fu=e=>new Promise(t=>(0,m.stat)(e,(e,n)=>t(e?0:n.size)));async function Iu(e){if(!e.announcedBuild){e.log.warn(`No build announced, skipping metadata upload.`);return}try{return await Lu(e,async()=>{let t=[e.options.logFile,e.options.diagnosticsFile,e.options.storybookLogFile,await c.o(e.options.storybookConfigDir,c.r).catch(()=>void 0),await c.o(e.options.storybookConfigDir,c.i).catch(()=>void 0),e.fileInfo?.statsPath&&await f.t([e.fileInfo.statsPath])].filter(e=>!!e),n=(await Promise.all(t.map(async e=>{let t=await Fu(e),n=`.chromatic/${h.default.basename(e)}`;return t&&{contentLength:t,localPath:e,targetPath:n}}))).filter(e=>!!e).sort((e,t)=>e.targetPath.localeCompare(t.targetPath,`en`,{numeric:!0}));if(n.length===0){e.log.warn(`No metadata files found, skipping metadata upload.`);return}await(0,Qs.withFile)(async({path:t})=>{let r=ec(e,n);(0,m.writeFileSync)(t,r),n.push({contentLength:r.length,localPath:t,targetPath:`.chromatic/index.html`});let i=`${e.build.storybookUrl}.chromatic/`;e.log.info(tc(i,n)),await Pu(e,n)})})}catch(n){e.log.debug(`Failed to upload metadata files to Chromatic`,n),t.A(n,{fingerprint:[`UploadMetadataFilesError`]})}}async function Lu(e,t){e.log.pause();try{return await t()}finally{e.log.resume()}}var Ru=(e,t)=>G.default`${n.a} Wrote ${t} report to {bold ${e}}`;const{writeFile:zu}=is.default;async function Bu(e){if(e.options.diagnosticsFile)try{(0,m.mkdirSync)(h.default.dirname(e.options.diagnosticsFile),{recursive:!0}),await zu(e.options.diagnosticsFile,Hu(e),{spaces:2}),e.log.info(Ru(e.options.diagnosticsFile,`Chromatic diagnostics`))}catch(t){e.log.error(t)}}function Vu(e){if(e.options.diagnosticsFile)try{(0,m.rmSync)(e.options.diagnosticsFile,{force:!0})}catch(t){e.log.error(t)}}function Hu(e){let{argv:n,client:r,env:i,help:a,http:o,log:s,pkg:c,title:l,...u}=e,d=t.p(u,`projectToken`,`reportToken`,`userToken`);return Object.fromEntries(Object.keys(d).sort((e,t)=>e.localeCompare(t)).map(e=>[e,d[e]]))}var Uu=e.a(n.f());const Wu={success:Uu.default.green,error:Uu.default.red,warning:Uu.default.yellow,info:Uu.default.cyan,debug:Uu.default.gray,cta:Uu.default.cyan,muted:Uu.default.dim},Gu=(()=>{let e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return t=>{let n=0;for(e.lastIndex=0;e.test(t);)n+=1;return t.length-n}})(),Ku=e=>e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510,qu=e=>e===8987||e===9001||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141,Ju=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,Yu=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,Xu=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/uy,Zu=/\t{1,1000}/y,Qu=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/uy,$u=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,ed=/\p{M}+/gu,td={limit:1/0,ellipsis:``},nd=(e,t={},n={})=>{let r=t.limit??1/0,i=t.ellipsis??``,a=t?.ellipsisWidth??(i?nd(i,td,n).width:0),o=n.controlWidth??0,s=n.tabWidth??8,c=n.emojiWidth??2,l=n.regularWidth??1,u=n.wideWidth??2,d=[[$u,l],[Ju,0],[Yu,o],[Zu,s],[Qu,c],[Xu,u]],f=0,p=0,m=e.length,h=0,g=!1,v=m,y=Math.max(0,r-a),b=0,x=0,S=0,C=0;outer:for(;;){if(x>b||p>=m&&p>f){let t=e.slice(b,x)||e.slice(f,p);h=0;for(let e of t.replaceAll(ed,``)){let t=e.codePointAt(0)||0;if(C=Ku(t)?2:qu(t)?u:l,S+C>y&&(v=Math.min(v,Math.max(b,f)+h)),S+C>r){g=!0;break outer}h+=e.length,S+=C}b=x=0}if(p>=m)break outer;for(let t=0,n=d.length;t<n;t++){let[n,i]=d[t];if(n.lastIndex=p,n.test(e)){if(h=n===Xu?Gu(e.slice(p,n.lastIndex)):n===Qu?1:n.lastIndex-p,C=h*i,S+C>y&&(v=Math.min(v,p+Math.floor((y-S)/i))),S+C>r){g=!0;break outer}S+=C,b=f,x=p,p=f=n.lastIndex;continue outer}}p+=1}return{width:g?y:S,index:g?v:m,truncated:g,ellipsed:g&&r>=a}},rd={limit:1/0,ellipsis:``,ellipsisWidth:0},id=(e,t={})=>nd(e,rd,t).width,ad=`]8;;`,od=RegExp(`(?:\\[(?<code>\\d+)m|\\${ad}(?<uri>.*))`,`y`),sd=e=>{if(e>=30&&e<=37||e>=90&&e<=97)return 39;if(e>=40&&e<=47||e>=100&&e<=107)return 49;if(e===1||e===2)return 22;if(e===3)return 23;if(e===4)return 24;if(e===7)return 27;if(e===8)return 28;if(e===9)return 29;if(e===0)return 0},cd=e=>`[${e}m`,ld=e=>`${ad}${e}`,ud=(e,t,n)=>{let r=t[Symbol.iterator](),i=!1,a=!1,o=e.at(-1),s=o===void 0?0:id(o),c=r.next(),l=r.next(),u=0;for(;!c.done;){let o=c.value,d=id(o);s+d<=n?e[e.length-1]+=o:(e.push(o),s=0),(o===`\x1B`||o===``)&&(i=!0,a=t.startsWith(ad,u+1)),i?a?o===`\x07`&&(i=!1,a=!1):o===`m`&&(i=!1):(s+=d,s===n&&!l.done&&(e.push(``),s=0)),c=l,l=r.next(),u+=o.length}o=e.at(-1),!s&&o!==void 0&&o.length&&e.length>1&&(e[e.length-2]+=e.pop())},dd=e=>{let t=e.split(` `),n=t.length;for(;n&&!id(t[n-1]);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},fd=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,i,a,o=e.split(` `),s=[``],c=0;for(let e=0;e<o.length;e++){let r=o[e];if(n.trim!==!1){let e=s.at(-1)??``,t=e.trimStart();e.length!==t.length&&(s[s.length-1]=t,c=id(t))}e!==0&&(c>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(``),c=0),(c||n.trim===!1)&&(s[s.length-1]+=` `,c++));let i=id(r);if(n.hard&&i>t){let e=t-c,n=1+Math.floor((i-e-1)/t);Math.floor((i-1)/t)<n&&s.push(``),ud(s,r,t),c=id(s.at(-1)??``);continue}if(c+i>t&&c&&i){if(n.wordWrap===!1&&c<t){ud(s,r,t),c=id(s.at(-1)??``);continue}s.push(``),c=0}if(c+i>t&&n.wordWrap===!1){ud(s,r,t),c=id(s.at(-1)??``);continue}s[s.length-1]+=r,c+=i}n.trim!==!1&&(s=s.map(e=>dd(e)));let l=s.join(`
`),u=!1;for(let e=0;e<l.length;e++){let t=l[e];if(r+=t,u)u=!1;else if(u=t>=`\ud800`&&t<=`\udbff`,u)continue;if(t===`\x1B`||t===``){od.lastIndex=e+1;let t=od.exec(l)?.groups;if(t?.code!==void 0){let e=Number.parseFloat(t.code);i=e===39?void 0:e}else t?.uri!==void 0&&(a=t.uri.length===0?void 0:t.uri)}if(l[e+1]===`
`){a&&(r+=ld(``));let e=i?sd(i):void 0;i&&e&&(r+=cd(e))}else t===`
`&&(i&&sd(i)&&(r+=cd(i)),a&&(r+=ld(a)))}return r},pd=/\r?\n/;function md(e,t,n){return String(e).normalize().split(pd).map(e=>fd(e,t,n)).join(`
`)}var hd=r.o();function gd(e,t,n){if(!n.some(e=>!e.disabled))return e;let r=e+t,i=Math.max(n.length-1,0),a=r<0?i:r>i?0:r;return n[a].disabled?gd(a,t<0?-1:1,n):a}const _d={actions:new Set([`up`,`down`,`left`,`right`,`space`,`enter`,`cancel`]),aliases:new Map([[`k`,`up`],[`j`,`down`],[`h`,`left`],[`l`,`right`],[``,`cancel`],[`escape`,`cancel`]]),messages:{cancel:`Canceled`,error:`Something went wrong`},withGuide:!0,date:{monthNames:[...[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]],messages:{required:`Please enter a valid date`,invalidMonth:`There are only 12 months in a year`,invalidDay:(e,t)=>`There are only ${e} days in ${t}`,afterMin:e=>`Date must be on or after ${e.toISOString().slice(0,10)}`,beforeMax:e=>`Date must be on or before ${e.toISOString().slice(0,10)}`}}};function vd(e,t){if(typeof e==`string`)return _d.aliases.get(e)===t;for(let n of e)if(n!==void 0&&vd(n,t))return!0;return!1}const yd=globalThis.process.platform.startsWith(`win`);function bd({input:e=D.stdin,output:t=D.stdout,overwrite:n=!0,hideCursor:r=!0}={}){let i=E.createInterface({input:e,output:t,prompt:``,tabSize:1});E.emitKeypressEvents(e,i),e instanceof j.ReadStream&&e.isTTY&&e.setRawMode(!0);let a=(i,{name:o,sequence:s})=>{if(vd([String(i),o,s],`cancel`)){r&&t.write(hd.cursor.show),process.exit(0);return}if(!n)return;let c=o===`return`?0:-1,l=o===`return`?-1:0;E.moveCursor(t,c,l,()=>{E.clearLine(t,1,()=>{e.once(`keypress`,a)})})};return r&&t.write(hd.cursor.hide),e.once(`keypress`,a),()=>{e.off(`keypress`,a),r&&t.write(hd.cursor.show),e instanceof j.ReadStream&&e.isTTY&&!yd&&e.setRawMode(!1),i.terminal=!1,i.close()}}const xd=e=>`columns`in e&&typeof e.columns==`number`?e.columns:80;function Sd(){return D.default.platform===`win32`?!!D.default.env.CI||!!D.default.env.WT_SESSION||!!D.default.env.TERMINUS_SUBLIME||D.default.env.ConEmuTask===`{cmd::Cmder}`||D.default.env.TERM_PROGRAM===`Terminus-Sublime`||D.default.env.TERM_PROGRAM===`vscode`||D.default.env.TERM===`xterm-256color`||D.default.env.TERM===`alacritty`||D.default.env.TERMINAL_EMULATOR===`JetBrains-JediTerm`:D.default.env.TERM!==`linux`}const Cd=Sd(),wd=()=>process.env.CI===`true`,Td=e=>e.isTTY===!0,Ed=(e,t)=>Cd?e:t,Dd=Ed(`■`,`x`),Od=Ed(`▲`,`x`),kd=Ed(`◇`,`o`),Ad=Ed(`┌`,`T`),jd=Ed(`│`,`|`),Md=Ed(`●`,`•`),Nd=Ed(`◆`,`*`),Pd=Ed(`▲`,`!`),Fd=Ed(`■`,`x`),Id={message:(e=[],{symbol:t=(0,x.styleText)(`gray`,jd),secondarySymbol:n=(0,x.styleText)(`gray`,jd),output:r=process.stdout,spacing:i=1,withGuide:a}={})=>{let o=[],s=a??_d.withGuide,c=s?n:``,l=s?`${t} `:``,u=s?`${n} `:``;for(let e=0;e<i;e++)o.push(c);let d=Array.isArray(e)?e:e.split(`
`);if(d.length>0){let[e,...r]=d;e.length>0?o.push(`${l}${e}`):o.push(s?t:``);for(let e of r)e.length>0?o.push(`${u}${e}`):o.push(s?n:``)}r.write(`${o.join(`
`)}
`)},info:(e,t)=>{Id.message(e,{...t,symbol:(0,x.styleText)(`blue`,Md)})},success:(e,t)=>{Id.message(e,{...t,symbol:(0,x.styleText)(`green`,Nd)})},step:(e,t)=>{Id.message(e,{...t,symbol:(0,x.styleText)(`green`,kd)})},warn:(e,t)=>{Id.message(e,{...t,symbol:(0,x.styleText)(`yellow`,Pd)})},warning:(e,t)=>{Id.warn(e,t)},error:(e,t)=>{Id.message(e,{...t,symbol:(0,x.styleText)(`red`,Fd)})}},Ld=(e=``,t)=>{let n=t?.output??process.stdout,r=t?.withGuide??_d.withGuide?`${(0,x.styleText)(`gray`,Ad)} `:``;n.write(`${r}${e}
`)},Rd=e=>(0,x.styleText)(`magenta`,e),zd=({indicator:e=`dots`,onCancel:t,output:n=process.stdout,cancelMessage:r,errorMessage:i,frames:a=Cd?[`◒`,`◐`,`◓`,`◑`]:[`•`,`o`,`O`,`0`],delay:o=Cd?80:120,signal:s,...c}={})=>{let l=wd(),u,d,f=!1,p=!1,m=``,h,g=performance.now(),v=xd(n),y=c?.styleFrame??Rd,b=e=>{let n=e>1?i??_d.messages.error:r??_d.messages.cancel;p=e===1,f&&(j(n,e),p&&typeof t==`function`&&t())},S=()=>b(2),C=()=>b(1),w=()=>{process.on(`uncaughtExceptionMonitor`,S),process.on(`unhandledRejection`,S),process.on(`SIGINT`,C),process.on(`SIGTERM`,C),process.on(`exit`,b),s&&s.addEventListener(`abort`,C)},T=()=>{process.removeListener(`uncaughtExceptionMonitor`,S),process.removeListener(`unhandledRejection`,S),process.removeListener(`SIGINT`,C),process.removeListener(`SIGTERM`,C),process.removeListener(`exit`,b),s&&s.removeEventListener(`abort`,C)},E=()=>{if(h===void 0)return;l&&n.write(`
`);let e=md(h,v,{hard:!0,trim:!1}).split(`
`);e.length>1&&n.write(hd.cursor.up(e.length-1)),n.write(hd.cursor.to(0)),n.write(hd.erase.down())},D=e=>e.replace(/\.+$/,``),O=e=>{let t=(performance.now()-e)/1e3,n=Math.floor(t/60),r=Math.floor(t%60);return n>0?`[${n}m ${r}s]`:`[${r}s]`},k=c.withGuide??_d.withGuide,A=(t=``)=>{f=!0,u=bd({output:n}),m=D(t),g=performance.now(),k&&n.write(`${(0,x.styleText)(`gray`,jd)}
`);let r=0,i=0;w(),d=setInterval(()=>{if(l&&m===h)return;E(),h=m;let t=y(a[r]),o;if(l)o=`${t} ${m}...`;else if(e===`timer`)o=`${t} ${m} ${O(g)}`;else{let e=`.`.repeat(Math.floor(i)).slice(0,3);o=`${t} ${m}${e}`}let s=md(o,v,{hard:!0,trim:!1});n.write(s),r=r+1<a.length?r+1:0,i=i<4?i+.125:0},o)},j=(t=``,r=0,i=!1)=>{if(!f)return;f=!1,clearInterval(d),E();let a=r===0?(0,x.styleText)(`green`,kd):r===1?(0,x.styleText)(`red`,Dd):(0,x.styleText)(`red`,Od);m=t??m,i||(e===`timer`?n.write(`${a} ${m} ${O(g)}
`):n.write(`${a} ${m}
`)),T(),u()};return{start:A,stop:(e=``)=>j(e,0),message:(e=``)=>{m=D(e??m)},cancel:(e=``)=>j(e,1),error:(e=``)=>j(e,2),clear:()=>j(``,0,!0),get isCancelled(){return p}}},Bd={light:Ed(`─`,`-`),heavy:Ed(`━`,`=`),block:Ed(`█`,`#`)};function Vd({style:e=`heavy`,max:t=100,size:n=40,...r}={}){let i=zd(r),a=0,o=``,s=Math.max(1,t),c=Math.max(1,n),l=e=>{switch(e){case`initial`:case`active`:return e=>(0,x.styleText)(`magenta`,e);case`error`:case`cancel`:return e=>(0,x.styleText)(`red`,e);case`submit`:return e=>(0,x.styleText)(`green`,e);default:return e=>(0,x.styleText)(`magenta`,e)}},u=(t,n)=>{let r=Math.floor(a/s*c);return`${l(t)(Bd[e].repeat(r))}${(0,x.styleText)(`dim`,Bd[e].repeat(c-r))} ${n}`},d=(e=``)=>{o=e,i.start(u(`initial`,e))},f=(e=1,t)=>{a=Math.min(s,e+a),i.message(u(`active`,t??o)),o=t??o};return{start:d,stop:i.stop,cancel:i.cancel,error:i.error,clear:i.clear,advance:f,isCancelled:i.isCancelled,message:e=>f(0,e)}}const Hd=`${(0,x.styleText)(`gray`,jd)} `,Ud={message:async(e,{symbol:t=(0,x.styleText)(`gray`,jd)}={})=>{process.stdout.write(`${(0,x.styleText)(`gray`,jd)}
${t} `);let n=3;for await(let t of e){t=t.replace(/\n/g,`
${Hd}`),t.includes(`
`)&&(n=3+(0,x.stripVTControlCharacters)(t.slice(t.lastIndexOf(`
`))).length);let e=(0,x.stripVTControlCharacters)(t).length;n+e<process.stdout.columns?(n+=e,process.stdout.write(t)):(process.stdout.write(`
${Hd}${t.trimStart()}`),n=3+(0,x.stripVTControlCharacters)(t.trimStart()).length)}process.stdout.write(`
`)},info:e=>Ud.message(e,{symbol:(0,x.styleText)(`blue`,Md)}),success:e=>Ud.message(e,{symbol:(0,x.styleText)(`green`,Nd)}),step:e=>Ud.message(e,{symbol:(0,x.styleText)(`green`,kd)}),warn:e=>Ud.message(e,{symbol:(0,x.styleText)(`yellow`,Pd)}),warning:e=>Ud.warn(e),error:e=>Ud.message(e,{symbol:(0,x.styleText)(`red`,Fd)})},Wd=e=>e.replace(/\x1b\[(?:\d+;)*\d*[ABCDEFGHfJKSTsu]|\x1b\[(s|u)/g,``),Gd=e=>{let t=e.output??process.stdout,n=xd(t),r=(0,x.styleText)(`gray`,jd),i=e.spacing??1,a=e.retainLog===!0,o=!wd()&&Td(t);t.write(`${r}
`),t.write(`${(0,x.styleText)(`green`,kd)} ${e.title}
`);for(let e=0;e<i;e++)t.write(`${r}
`);let s=[{value:``,full:``}],c=!1,l=e=>{if(s.length===0)return;let r=0;e&&(r+=i+2);for(let e of s){let{value:t,result:i}=e,a=i?.message??t;if(a.length===0)continue;i===void 0&&e.header!==void 0&&e.header!==``&&(a+=`
${e.header}`);let o=a.split(`
`).reduce((e,t)=>t===``?e+1:e+Math.ceil((t.length+3)/n),0);r+=o}r>0&&(r+=1,t.write(hd.erase.lines(r)))},u=(e,n,a)=>{let o=a?`${e.full}
${e.value}`:e.value;e.header!==void 0&&e.header!==``&&Id.message(e.header.split(`
`).map(e=>(0,x.styleText)(`bold`,e)),{output:t,secondarySymbol:r,symbol:r,spacing:0}),Id.message(o.split(`
`).map(e=>(0,x.styleText)(`dim`,e)),{output:t,secondarySymbol:r,symbol:r,spacing:n??i})},d=()=>{for(let e of s){let{header:t,value:n,full:r}=e;(t===void 0||t.length===0)&&n.length===0||u(e,void 0,a===!0&&r.length>0)}},f=(t,n,r)=>{if(l(!1),(r?.raw!==!0||!c)&&t.value!==``&&(t.value+=`
`),t.value+=Wd(n),c=r?.raw===!0,e.limit!==void 0){let n=t.value.split(`
`),r=n.length-e.limit;if(r>0){let e=n.splice(0,r);a&&(t.full+=(t.full===``?``:`
`)+e.join(`
`))}t.value=n.join(`
`)}o&&p()},p=()=>{for(let e of s)e.result?e.result.status===`error`?Id.error(e.result.message,{output:t,secondarySymbol:r,spacing:0}):Id.success(e.result.message,{output:t,secondarySymbol:r,spacing:0}):e.value!==``&&u(e,0)},m=(e,t)=>{l(!1),e.result=t,o&&p()};return{message(e,t){f(s[0],e,t)},group(e){let t={header:e,value:``,full:``};return s.push(t),{message(e,n){f(t,e,n)},error(e){m(t,{status:`error`,message:e})},success(e){m(t,{status:`success`,message:e})}}},error(e,n){l(!0),Id.error(e,{output:t,secondarySymbol:r,spacing:1}),n?.showLog!==!1&&d(),s.splice(1,s.length-1),s[0].value=``,s[0].full=``},success(e,n){l(!0),Id.success(e,{output:t,secondarySymbol:r,spacing:1}),n?.showLog===!0&&d(),s.splice(1,s.length-1),s[0].value=``,s[0].full=``}}},Kd=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],qd=[12288,12288,65281,65376,65504,65510],Jd=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],Yd=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=i*2;if(t<e[a])r=i-1;else if(t>e[a+1])n=i+1;else return!0}return!1},Xd=19968,[Zd,Qd]=$d(Jd);function $d(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(Xd>=i&&Xd<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}const ef=e=>e<161||e>1114109?!1:Yd(Kd,e),tf=e=>e<12288||e>65510?!1:Yd(qd,e),nf=e=>e>=Zd&&e<=Qd?!0:e<4352||e>262141?!1:Yd(Jd,e);function rf(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}function af(e,{ambiguousAsWide:t=!1}={}){return rf(e),tf(e)||nf(e)||t&&ef(e)?2:1}const of=new Intl.Segmenter,sf=/^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Mark}|\p{Surrogate})+$/v,cf=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v,lf=/^\p{RGI_Emoji}$/v,uf=/^[\d#*]\u20E3$/,df=/\p{Extended_Pictographic}/gu;function ff(e){if(e.length>50)return!1;if(uf.test(e))return!0;if(e.includes(``)){let t=e.match(df);return t!==null&&t.length>=2}return!1}function pf(e){return e.replace(cf,``)}function mf(e){return sf.test(e)}function hf(e){return e>=4352&&e<=4447||e>=43360&&e<=43388}function gf(e){return e>=4448&&e<=4519||e>=55216&&e<=55238}function _f(e){return e>=4520&&e<=4607||e>=55243&&e<=55291}function vf(e){return hf(e)||gf(e)||_f(e)}function yf(e,t){let n=[];for(let t of e)sf.test(t)||n.push(t.codePointAt(0));if(n.length===0)return;let r=0;for(let e=0;e<n.length;e++){let i=n[e];if(!vf(i)){if(r===0)return;for(let i=e;i<n.length;i++)r+=af(n[i],t);return r}if(hf(i)&&gf(n[e+1])){r+=2,e+=_f(n[e+2])?2:1;continue}r+=af(i,t)}return r}function bf(e,t){let n=0,r=!0;for(let i of e){if(r){r=!1;continue}i>=``&&i<=``&&(n+=af(i.codePointAt(0),t))}return n}function xf(e,t={}){if(typeof e!=`string`||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t,i=e;if(!r&&(i.includes(`\x1B`)||i.includes(``))&&(i=l.t(i)),i.length===0)return 0;if(/^[\u0020-\u007E]*$/.test(i))return i.length;let a=0,o={ambiguousAsWide:!n};for(let{segment:e}of of.segment(i)){if(mf(e))continue;if(lf.test(e)||ff(e)){a+=2;continue}let t=pf(e),n=yf(t,o);if(n!==void 0){a+=n;continue}let r=t.codePointAt(0);a+=af(r,o),a+=bf(t,o)}return a}const Sf=(e=0)=>t=>`\u001B[${t+e}m`,Cf=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,wf=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,Q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Q.modifier);const Tf=Object.keys(Q.color),Ef=Object.keys(Q.bgColor);[...Tf,...Ef];function Df(){let e=new Map;for(let[t,n]of Object.entries(Q)){for(let[t,r]of Object.entries(n))Q[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=Q[t],e.set(r[0],r[1]);Object.defineProperty(Q,t,{value:n,enumerable:!1})}return Object.defineProperty(Q,`codes`,{value:e,enumerable:!1}),Q.color.close=`\x1B[39m`,Q.bgColor.close=`\x1B[49m`,Q.color.ansi=Sf(),Q.color.ansi256=Cf(),Q.color.ansi16m=wf(),Q.bgColor.ansi=Sf(10),Q.bgColor.ansi256=Cf(10),Q.bgColor.ansi16m=wf(10),Object.defineProperties(Q,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>Q.rgbToAnsi256(...Q.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>Q.ansi256ToAnsi(Q.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>Q.ansi256ToAnsi(Q.hexToAnsi256(e)),enumerable:!1}}),Q}const Of=Df(),kf=new Set([`\x1B`,``]),Af=`]8;;`,jf=RegExp(`^\\u001B(?:\\[(?<sgr>[0-9;]*)m|${Af}(?<uri>[^\\u0007\\u001B]*)(?:\\u0007|\\u001B\\\\))`),Mf=RegExp(`^\\u009B(?<sgr>[0-9;]*)m`),Nf=new Set(Of.codes.values());Nf.delete(0);const Pf=new Intl.Segmenter,Ff=e=>Array.from(Pf.segment(e),({segment:e})=>e),If=e=>`[${e}m`,Lf=e=>`${Af}${e}`,Rf=e=>{let t=e.split(`;`).map(e=>e===``?0:Number.parseInt(e,10)),n=[];for(let e=0;e<t.length;e++){let r=t[e];if(Number.isFinite(r)){if(r===38||r===48||r===58){if(e+1>=t.length)break;let i=t[e+1];if(i===5&&Number.isFinite(t[e+2])){n.push([r,i,t[e+2]]),e+=2;continue}let a=t[e+2],o=t[e+3],s=t[e+4];if(i===2&&Number.isFinite(a)&&Number.isFinite(o)&&Number.isFinite(s)){n.push([r,i,a,o,s]),e+=4;continue}break}n.push([r])}}return n},zf=(e,t)=>{let n=e.findIndex(e=>e.family===t);n!==-1&&e.splice(n,1)},Bf=(e,t)=>{zf(e,t.family),e.push(t)},Vf=(e,t)=>{for(let n=e.length-1;n>=0;n--){let r=e[n];r.family.startsWith(`modifier-`)&&r.close===t&&e.splice(n,1)}},Hf=(e,t)=>{if(e>=30&&e<=37||e>=90&&e<=97||e===38&&t.length>1)return{family:`foreground`,open:t.join(`;`),close:39};if(e>=40&&e<=47||e>=100&&e<=107||e===48&&t.length>1)return{family:`background`,open:t.join(`;`),close:49};if(e===58&&t.length>1)return{family:`underlineColor`,open:t.join(`;`),close:59}},Uf=(e,t)=>e===0?(t.length=0,!0):e===39?(zf(t,`foreground`),!0):e===49?(zf(t,`background`),!0):e===59?(zf(t,`underlineColor`),!0):Nf.has(e)?(Vf(t,e),!0):!1,Wf=(e,t)=>{let[n]=e;if(Uf(n,t))return;let r=Hf(n,e);if(r){Bf(t,r);return}let i=Of.codes.get(n);i!==void 0&&i!==0&&Bf(t,{family:`modifier-${n}`,open:e.join(`;`),close:i})},Gf=(e,t)=>{for(let n of Rf(e))Wf(n,t)},Kf=(e,t)=>{for(let n of Rf(e)){let[e]=n;Uf(e,t)}},qf=(e,t)=>{let n=e;for(;n.length>0;){if(n.startsWith(`\x1B`)&&n[1]!==`\\`){let e=jf.exec(n);if(!e)break;e.groups.sgr!==void 0&&Kf(e.groups.sgr,t),n=n.slice(e[0].length);continue}if(n.startsWith(``)){let e=Mf.exec(n);if(!e||e.groups.sgr===void 0)break;Kf(e.groups.sgr,t),n=n.slice(e[0].length);continue}break}},Jf=e=>[...e].reverse().map(e=>If(e.close)).join(``),Yf=e=>e.map(e=>If(e.open)).join(``),Xf=e=>e.split(` `).map(e=>xf(e)),Zf=(e,t,n)=>{let r=Ff(t),i=!1,a=!1,o=xf(l.t(e.at(-1)));for(let[t,s]of r.entries()){let c=xf(s);if(o+c<=n?e[e.length-1]+=s:(e.push(s),o=0),kf.has(s)&&!(a&&s===`\x1B`&&r[t+1]===`\\`)&&(i=!0,a=r.slice(t+1,t+1+4).join(``)===Af),i){a?(s===`\x07`||s===`\\`&&t>0&&r[t-1]===`\x1B`)&&(i=!1,a=!1):s===`m`&&(i=!1);continue}o+=c,o===n&&t<r.length-1&&(e.push(``),o=0)}!o&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Qf=e=>{let t=e.split(` `),n=t.length;for(;n>0&&!(xf(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},$f=e=>{if(!e.includes(` `))return e;let t=e.split(` `),n=0,r=``;for(let[e,i]of t.entries())if(r+=i,n+=xf(i),e<t.length-1){let e=8-n%8;r+=` `.repeat(e),n+=e}return r},ep=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,i,a=[],o=Xf(e),s=[``];for(let[r,i]of e.split(` `).entries()){n.trim!==!1&&(s[s.length-1]=s.at(-1).trimStart());let e=xf(s.at(-1));if(r!==0&&(e>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(``),e=0),(e>0||n.trim===!1)&&(s[s.length-1]+=` `,e++)),n.hard&&n.wordWrap!==!1&&o[r]>t){let n=t-e,a=1+Math.floor((o[r]-n-1)/t);Math.floor((o[r]-1)/t)<a&&s.push(``),Zf(s,i,t);continue}if(e+o[r]>t&&e>0&&o[r]>0){if(n.wordWrap===!1&&e<t){Zf(s,i,t);continue}s.push(``)}if(e+o[r]>t&&n.wordWrap===!1){Zf(s,i,t);continue}s[s.length-1]+=i}n.trim!==!1&&(s=s.map(e=>Qf(e)));let c=s.join(`
`),l=Ff(c),u=0;for(let[e,t]of l.entries()){if(r+=t,t===`\x1B`&&l[e+1]!==`\\`){let{groups:e}=jf.exec(c.slice(u))||{groups:{}};e.sgr===void 0?e.uri!==void 0&&(i=e.uri.length===0?void 0:e.uri):Gf(e.sgr,a)}else if(t===``){let{groups:e}=Mf.exec(c.slice(u))||{groups:{}};e.sgr!==void 0&&Gf(e.sgr,a)}if(l[e+1]===`
`)i&&(r+=Lf(``)),r+=Jf(a);else if(t===`
`){let e=[...a];qf(c.slice(u+1),e),r+=Yf(e),i&&(r+=Lf(i))}u+=t.length}return r};function tp(e,t,n){return String(e).normalize().replaceAll(`\r
`,`
`).split(`
`).map(e=>ep($f(e),t,n)).join(`
`)}const np=/\u001B\[[0-9;]*m|\u001B\]8;;[^\u0007]*\u0007|\u001B\]8;;\u0007/g,rp=/(https?:\/\/[^\s\u0000-\u001F\u007F]+)/g,ip=`\x1B]8;;`,ap=`${ip}`;function op(){try{return process.stdout.columns||80}catch{return 80}}function sp(){try{let e=(process.env.TERM_PROGRAM||``).trim(),t=(process.env.TERM_PROGRAM_VERSION||``).trim();switch(e){case`iTerm.app`:if(t){let[e,n]=t.split(`.`).map(Number);return e>3||e===3&&n>=1}return!0;case`Apple_Terminal`:return!1;default:return!0}}catch{return!1}}function cp(e){return e.replaceAll(np,``)}function lp(e){return cp(e).length}function up(e,t){let n=t?.maxLineWidth??op(),r=Math.floor(op()*.8),i=sp();return e.replaceAll(rp,(a,o,s)=>{if(!i||dp(e,s))return a;let c=n-lp(fp(e,s)),l=t?.maxUrlLength??r,u=Math.min(l,r,c);return(o.length<=20||u<20)&&(u=o.length),o.length>u?`${ip}${o}${o.slice(0,Math.max(0,u-3))+`...`}${ap}`:`${ip}${o}${o}${ap}`})}function dp(e,t){let n=0;for(;;){let r=e.indexOf(ip,n);if(r===-1)return!1;let i=e.indexOf(ap,r);if(i===-1){n=r+1;continue}if(t>=r&&t<i+ap.length)return!0;n=i+1}}function fp(e,t){let n=e.slice(0,Math.max(0,t)),r=n.lastIndexOf(`
`);return r===-1?n:n.slice(Math.max(0,r+1))}function pp(e,t){let n=t||op(),r=Math.max(n-10,40),i=Math.min(r,80);return tp(up(e,{maxLineWidth:i}),i,{hard:!0})}const mp=(e,t)=>{Ld(e,{output:t})},hp=(e,t)=>{Id.message(pp(e),{output:t})};function gp({pkg:e},t){mp(`Chromatic CLI v${e.version}`,t),hp(Wu.muted(e.docs),t)}var _p=({projectId:e})=>(0,K.dedent)(G.default`
${n.i} Invalid project ID: ${e}
You may not sufficient permissions to create builds on this project, or it may not exist.
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/quickstart/`)}
`),vp=({projectToken:e})=>(0,K.dedent)(G.default`
${n.i} Invalid {bold --project-token} '${e}'
You can find your project token on the Manage screen in your Chromatic project.
Sign in to Chromatic at ${i.J(`https://www.chromatic.com/start`)}
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/quickstart/`)}
`);const yp=async(e,t)=>{switch(t.mode){case`cli`:{let{cliToken:n}=await e.client.runQuery(`
mutation CreateCLITokenMutation($projectId: String!) {
cliToken: createCLIToken(projectId: $projectId)
}
`,{projectId:t.projectId},{endpoint:`${e.env.CHROMATIC_INDEX_URL}/api`,headers:{Authorization:`Bearer ${t.userToken}`}});return n}case`app`:{let{appToken:n}=await e.client.runQuery(`
mutation CreateAppTokenMutation($projectToken: String!) {
appToken: createAppToken(code: $projectToken)
}
`,{projectToken:t.projectToken});return n}default:return t}},bp=async(e,t)=>{try{let n=await yp(e,t);e.client.setAuthorization(n)}catch(e){let n=e[0]?.message;throw n?.match(`Must login`)||n?.match(`No Access`)?Error(_p({projectId:t.mode===`cli`?t.projectId:``})):n?.match(`No app with code`)?Error(vp({projectToken:t.projectToken})):e}let n=!1;try{let{app:t}=await e.client.runQuery(`
query CLIAppInfo {
app {
features {
isReactNativeApp
}
}
}
`,{});n=t?.features?.isReactNativeApp??!1}catch{e.log.warn(`Failed to fetch app info; assuming web storybook for build script check.`)}return{kind:`continue`,output:{isReactNativeApp:n}}},xp=(e,t)=>{e.isReactNativeApp=t.isReactNativeApp},Sp=e=>{let{projectId:t,projectToken:n,userToken:r}=e.options;if(t&&r)return{mode:`cli`,projectId:t,userToken:r,projectToken:n};if(!n)throw Error(ws());return{mode:`app`,projectToken:n}},Cp=e=>`*`.repeat(e.length-4)+e.slice(-4),wp=e=>e.includes(`dev`)?` [dev]`:e.includes(`staging`)?` [staging]`:``,Tp=e=>({status:`pending`,title:`Authenticating with Chromatic${wp(e.env.CHROMATIC_INDEX_URL)}`,output:`Connecting to ${e.env.CHROMATIC_INDEX_URL}`}),Ep=e=>({status:`success`,title:`Authenticated with Chromatic${wp(e.env.CHROMATIC_INDEX_URL)}`,output:e.options.projectToken?`Using project token '${Cp(e.options.projectToken)}'`:`Using project ID '${e.options.projectId}' and user token`}),Dp=e=>({log:e.log,client:e.client,http:e.http,env:e.env,options:e.options,runtime:e.runtime,analytics:e.analytics,pkg:e.pkg,sessionId:e.sessionId,packageJson:e.packageJson,report:()=>{}});async function Op(e,t,n,r){switch(r.kind){case`continue`:await e.applyOutput?.(t,r.output),e.transitions?.success&&Pp(e.transitions.success,!0)(t,n);return;case`partial`:if(await e.applyPartial?.(t,r.output),e.transitions?.partial){let{title:i,output:a}=e.transitions.partial(t,r.output);Mp(i,a)(t,n)}t.skip=!0;return;case`skip`:t.skip=!0;return;case`skip-self`:return;default:}}async function kp(e,t,n){t.options.experimental_abortSignal?.throwIfAborted(),e.transitions?.pending&&Pp(e.transitions.pending)(t,n);let r=e.extractInput(t,n);await Op(e,t,n,await e.run(Dp(t),r))}async function Ap(e,t,n){for(let r of e.steps)t.options.experimental_abortSignal?.throwIfAborted(),await r(t,n)}function jp(e){let{name:t,title:n,skip:r,enabled:i}=e;return{title:n,skip:r,enabled:i,task:async(r,i)=>{r.task=t,r.title=n,r.startedAt=Number.isInteger(r.now)?r.now:Date.now(),r.options.experimental_onTaskStart?.({...r}),await(`run`in e?kp(e,r,i):Ap(e,r,i)),r.options.experimental_onTaskComplete?.({...r})}}}const Mp=(e,t)=>(n,r)=>{let i=typeof e==`function`?e(n,r):e,a=typeof t==`function`?t(n,r):t;r.title=a?`${i}\n${G.default.dim(` → ${a}`)}`:i},Np=e=>(t,n)=>{n.output=typeof e==`function`?e(t,n):e},Pp=(e,t=!1)=>(n,r)=>{let{title:i,output:a}=e(n);Mp(i,t?a:void 0)(n,r),!t&&a&&Np(a)(n,r)},Fp=e=>{let t=Number.isInteger(e.now)?e.now:Date.now(),n=e.startedAt||0,r=Math.round((t-n)/1e3),i=(0,J.default)(`second`,Math.floor(r%60),!0);if(r<60)return i;let a=(0,J.default)(`minute`,Math.floor(r/60),!0);return r%60?`${a} ${i}`:a};async function Ip(e,n,r){if(e.skip){e.log.debug(`Skipping task '${n.name}' due to upstream skip`);return}e.task=n.name,e.title=n.title,e.startedAt=Number.isInteger(e.now)?e.now:Date.now(),e.options.experimental_abortSignal?.throwIfAborted(),e.options.experimental_onTaskStart?.({...e});let i=n.transitions.pending(e);r.start(i);try{let t=n.extractInput(e),i={...Dp(e),report:Lp(e,r)};await Rp(e,n,await n.run(i,t),r)}catch(a){throw a instanceof t.S&&t.w(e,a.exitCode,a.userError),r.fail(zp(e,n,a,i.title)),a}e.options.experimental_onTaskComplete?.({...e})}function Lp(e,t){return n=>{n.title!==void 0&&(e.title=n.title),n.build!==void 0&&(e.build=n.build),t.update({title:e.title,output:n.output,progress:n.progress}),n.progress&&e.options.experimental_onTaskProgress?.({...e},n.progress)}}async function Rp(e,t,n,r){switch(n.kind){case`continue`:{await t.applyOutput?.(e,n.output);let i=t.transitions.success(e,n.output);e.title=i.title,r.succeed(i);return}case`partial`:{await t.applyPartial?.(e,n.output);let i=t.transitions.partial?.(e,n.output)??t.transitions.success(e);e.title=i.title,r.succeed(i),e.skip=!0;return}case`skip`:r.succeed({...t.transitions.pending(e),output:n.reason}),e.skip=!0;return;case`skip-self`:{let i=t.transitions.skipped?.(e)??{...t.transitions.pending(e),output:n.reason};e.title=i.title,r.succeed(i);return}default:}}function zp(e,t,n,r){return t.transitions.failure?.(e,n)??Bp(r,n)}function Bp(e,t){return{status:`error`,title:`${e} failed`,output:t.message}}function Vp(e){return pp(e.output?e.title+`
`+Wu.muted(e.output):e.title)}function Hp(e){let t;return{start:n=>{t=Gd({title:n.title,spacing:0,output:e}),n.output&&t.message(pp(n.output))},update:e=>{t.message(pp(e.output||e.title))},succeed:e=>{t.success(Vp(e))},fail:e=>{t.error(pp(e.title),{showLog:!1})}}}function Up(e,t){let n=n=>r=>{for(let i of e)try{i[n](r)}catch(e){try{t(e,n)}catch{}}};return{start:n(`start`),update:n(`update`),succeed:n(`succeed`),fail:n(`fail`)}}function Wp(e){let t,n=n=>{!n.output||n.output===t||(t=n.output,e(` → ${n.output}`))},r=t=>{e(t.title),n(t)};return{start:r,update:n,succeed:r,fail:r}}function Gp(e,t){return Up(e.options.interactive?[t(),Wp(e.log.file)]:[Wp(e.log.info)],(t,n)=>e.log.file(`renderer ${n} hook threw`,t))}async function Kp(e){await Ip(e,{name:`auth`,title:`Authenticate`,transitions:{pending:Tp,success:Ep},extractInput:Sp,run:bp,applyOutput:xp},Gp(e,Hp))}const qp=()=>({status:`pending`,title:`Building your React Native Storybook`,output:`Building`}),Jp=()=>({status:`updating`,title:`Generating story manifest`,output:`Generating manifest.json file for React Native build`}),Yp=e=>({status:`updating`,title:`Building your React Native Storybook`,output:e?.androidBuildCommand?`Running command: ${e.androidBuildCommand}`:`Building Android`}),Xp=e=>({status:`updating`,title:`Building your React Native Storybook`,output:e?.iosBuildCommand?`Running command: ${e.iosBuildCommand}`:`Building iOS`}),Zp=e=>({status:`success`,title:`React Native Storybook built in ${Fp(e)}`,output:e.options.storybookBuildDir?`Using prebuilt React Native assets at ${e.options.storybookBuildDir}`:`View build log at ${e.reactNativeBuildLogFile}`}),Qp=()=>({status:`skipped`,title:`Build React Native Storybook [skipped]`,output:`Using prebuilt React Native assets`}),$p=()=>({status:`error`,title:`Building your React Native Storybook`,output:`Unable to build for React Native, your project does not include any supported platforms`}),em=({options:e,buildCommand:t,buildLogFile:r,runtimeMetadata:a},{message:o},s)=>{let{buildScriptName:c,buildCommand:l}=e,u=s?.split(g.EOL).filter(e=>e&&!e.startsWith(`<s>`))||[],d=c||l;return[(0,K.dedent)(G.default`
The CLI tried to run your {bold ${d}} script, but the command failed. This indicates a problem with your Storybook. Here's what to do:
- Check the Storybook build log printed below.
- Run ${c?G.default`{bold npm run ${d}} or {bold yarn ${d}}`:G.default`{bold ${d}}`} yourself and make sure it outputs a valid Storybook by opening the generated {bold index.html} in your browser.
- Review the build-storybook CLI options at ${i.J(`https://storybook.js.org/docs/api/cli-options#build`)}
`),o,G.default`${n.a} Build command:\n{dim ${t}}`,G.default`${n.a} Runtime metadata:\n{dim ${JSON.stringify(a,void 0,2)}}`,G.default`${n.a} Storybook build output:\n{dim ${r}}`,u.join(`
`)].join(`
`)},tm=({reactNativeBuildLogFile:e,runtimeMetadata:t},{message:r},i)=>[(0,K.dedent)(G.default`
The CLI tried to build your React Native app, but failed. This may indicate a problem with your Storybook. Here's what to do:
- Check the React Native build log.
- Run the build steps in the log yourself and make sure it outputs a valid APK/APP.
`),r,G.default`${n.a} Runtime metadata:\n{dim ${JSON.stringify(t,void 0,2)}}`,G.default`${n.a} Build log:\n{dim ${e}}`,i].join(`
`);async function nm(e,t){return new Promise((n,r)=>{let i=[],a=(0,M.createInterface)({input:(0,m.createReadStream)(e),crlfDelay:1/0});a.on(`line`,e=>{i.push(e),i.length>t&&i.shift()}),a.on(`close`,()=>n(i.join(`
`))),a.on(`error`,r)})}const rm=async(e,t,n,r)=>{e.log.debug(`Running React Native build command:`,n);try{let[e,...i]=o.n(n);await a.r(e,i,{env:{CHROMATIC_ARTIFACT_DIRECTORY:t}},r)}catch(e){throw Error(`React Native build command failed: ${n}\n${e.message}`)}},im=e=>(e??[]).filter(e=>e===`ios`||e===`android`),am=async(e,t,n)=>{let{title:r,output:i}=Yp(e.options.reactNative);e.report({title:r,output:i});let{androidBuildCommand:o,androidBuildArchitectures:s}=e.options.reactNative??{};e.log.debug({androidBuildCommand:o},`Running Android build`),o?(s?.length&&e.log.debug(`androidBuildArchitectures is ignored when androidBuildCommand is set`),await rm(e,t,o,n)):await a.t(h.default.join(t,`storybook.apk`),n,s)},om=async(e,t,n)=>{let{title:r,output:i}=Xp(e.options.reactNative);e.report({title:r,output:i});let{iosBuildCommand:o}=e.options.reactNative??{};e.log.debug({iosBuildCommand:o},`Running iOS build`),o?await rm(e,t,o,n):await a.n((await a.i()).name,h.default.join(t,`storybook.app`),n)},sm=async(e,n)=>{let r=im(n.browsers),i=r.includes(`android`),o=r.includes(`ios`);if(!i&&!o)throw e.log.debug(`No supported platforms found for React Native build:`,r),new t.S($p().output,{exitCode:t.C.NPM_BUILD_STORYBOOK_FAILED,userError:!0});(0,m.mkdirSync)(h.default.join(n.sourceDir,`.chromatic`),{recursive:!0});let s=h.default.join(n.sourceDir,`.chromatic`,`react-native-build.log`),c=await a.o(s);try{i&&await am(e,n.sourceDir,c),o&&await om(e,n.sourceDir,c),await new Promise(e=>c.end(e))}catch(r){await new Promise(e=>c.end(e));let i=await nm(s,20);throw e.log.error(tm({reactNativeBuildLogFile:s,runtimeMetadata:n.runtimeMetadata},r,i)),new t.S(`Build failed, see logs at ${s}`,{exitCode:t.C.NPM_BUILD_STORYBOOK_FAILED,userError:!0})}return{reactNativeBuildLogFile:s}},cm=async(e,t)=>(e.log.debug(`Generating manifest.json file for React Native build`),await p.n(e,{sourceDir:t.sourceDir})),lm={CLI_STORYBOOK_BUILD_FAILED:`CLI_STORYBOOK_BUILD_FAILED`};function um(e){let t=e.match(/:\d+(?::\d+)?$/)?.[0]??``,n=(t?e.slice(0,-t.length):e).match(/[^/\\]+$/)?.[0]??``;return n?`<path>/${n}${t}`:`<path>${t}`}function dm(e){return e?e.slice(0,8e3).replaceAll(/(["`]).*?\1/g,`<redacted>`).replaceAll(/[\w.+-]+@[\w.-]+\.[A-Za-z]{2,}/g,`<email>`).replaceAll(/~\w*\/[^\s)]+|\/[^\s)]+|[A-Za-z]:\\[^\s)]+/g,um):``}var fm=({dependencyName:e,flag:t,workingDir:r})=>(0,K.dedent)(G.default`
${n.i} Failed to import \`${e}\`, is it installed in \`package.json\`?
${n.a} To run \`chromatic --${t}\` you must have \`${e}\` installed.
${r?`\n${n.a} Chromatic looked in \`${r}\`. If that's not the right directory, you might need to set the \`workingDir\` option to the action.`:``}
`);const pm=`build-archive-storybook`,mm=e=>!e.startsWith(`--`)&&e.includes(` `)?JSON.stringify(e):e,hm=((e,t)=>({npm:`npm exec -- {0}`,yarn:`yarn {0}`,"yarn@berry":`yarn {0}`,pnpm:`pnpm exec {0}`,"pnpm@6":`pnpm exec {0}`,bun:`bun run {0}`})[e].replace(`{0}`,t.map(e=>mm(e)).join(` `)).trim());async function gm(e,n,i){if(e.options.inAction)return await r.n(hm,[pm,...i],{programmatic:!0});let a=`@chromatic-com/${n}`;try{return[`node`,require.resolve(`${a}/bin/${pm}`),...i].join(` `)}catch(r){throw r.code===`MODULE_NOT_FOUND`?(e.log.error(fm({dependencyName:a,flag:n})),new t.S(fm({dependencyName:a,flag:n}),{exitCode:t.C.MISSING_DEPENDENCY,userError:!0})):r}}var _m=({flag:e,errorMessage:t})=>(0,K.dedent)(G.default`
${n.i} Failed to run \`chromatic --${e}\`:
${t}
`);function vm(e){return e.playwright?`playwright`:e.vitest?`vitest`:`cypress`}function ym(e){return[`command not found`,`[\\W]?${pm}[\\W]? not found`,`code E404`,`exit code 127`,`command failed.*${pm}.*$`].some(t=>new RegExp(t,`gi`).test(e))}function bm(e,n,r){let i=vm(r),a=e.message;if(ym(a)){let e=`@chromatic-com/${i}`;return{exitCode:t.C.MISSING_DEPENDENCY,message:fm({dependencyName:e,flag:i,workingDir:n})}}return{exitCode:t.C.E2E_BUILD_FAILED,message:_m({flag:i,errorMessage:a})}}function xm(e,n,r,i,a){if(q(e.options)){let i=bm(r,process.cwd(),e.options);throw Sm(e,n,i.exitCode===t.C.MISSING_DEPENDENCY?`e2e_missing_dependency`:`e2e_build_failed`,r),e.log.error(i.message),new t.S(`Command failed: ${n.buildCommand}`,{exitCode:i.exitCode,userError:!0})}a?.aborted&&(Sm(e,n,`aborted`,r),a.throwIfAborted()),Sm(e,n,`storybook_build_failed`,r);let o=i&&(0,m.readFileSync)(i,`utf8`);throw e.log.error(em({options:e.options,buildCommand:n.buildCommand,buildLogFile:i,runtimeMetadata:n.runtimeMetadata},r,o)),new t.S(`Command failed: ${n.buildCommand}`,{exitCode:t.C.NPM_BUILD_STORYBOOK_FAILED,userError:!0})}function Sm(e,n,r,i){try{e.analytics?.trackEvent(lm.CLI_STORYBOOK_BUILD_FAILED,{errorCategory:r,stackTrace:dm(i?.stack),buildCommand:n.buildCommand,source:`cli`,cliVersion:e.pkg?.version,storybookVersion:n.storybook?.version,isCI:!!process.env.CI,ciService:n.git?.ciService,gitUserEmailHash:n.git?.gitUserEmail?ps(n.git.gitUserEmail):void 0})}catch(e){t.A(e)}}const Cm=async(e,t)=>{let n,r;e.options.storybookLogFile&&(r=h.default.resolve(e.options.storybookLogFile),n=await a.o(r));let{experimental_abortSignal:o}=e.options;try{if(e.log.debug(`Running build command:`,t.buildCommand),e.log.debug(`Runtime metadata:`,JSON.stringify(t.runtimeMetadata,void 0,2)),!t.buildCommand)throw Error(`No build command configured`);await i.I(t.buildCommand,{stdio:[void 0,n,void 0],preferLocal:!1,cancelSignal:o,timeout:e.env.STORYBOOK_BUILD_TIMEOUT,env:{CI:`1`,NODE_ENV:e.env.STORYBOOK_NODE_ENV||`production`,STORYBOOK_INVOKED_BY:`chromatic`,CHROMATIC_PROJECT_ID:t.projectId}})}catch(n){xm(e,t,n,r,o)}finally{n?.end()}return{buildLogFile:r}},wm=async()=>r.n(r.r,[],{programmatic:!0}),Tm=async e=>r.n(r.a,e,{programmatic:!0}),Em=async e=>{if(!e)throw Error(`No package manager provided`);let t=`${e} --version`,{stdout:n}=await i.I(t);if(n===void 0)throw Error(`Unexpected missing output for command: '${t}'`);let[r]=n.toString().trim().split(`
`,1);return r.trim().replace(/^v/,``)},Dm=e=>e?.version?y.default.gte(y.default.coerce(e.version)||`0.0.0`,`6.2.0`):!0,Om=e=>e?.version&&y.default.gte(y.default.coerce(e.version)||`0.0.0`,`8.5.0`)?`--stats-json`:`--webpack-stats-json`,km=async(e,t)=>{let n=t.flags?.buildCommand||e.options.buildCommand,r=[];if(n||r.push(`--output-dir=${t.sourceDir}`),t.changedFiles&&(Dm(t.storybook)?r.push(`${Om(t.storybook)}=${t.sourceDir}`):e.log.warn(`Storybook version 6.2.0 or later is required to use the --only-changed flag`)),n)return`${n} ${r.join(` `)}`;if(q(e.options))return gm(e,vm(e.options),r);if(!e.options.buildScriptName)throw Error(`Unable to determine build script`);return Tm([e.options.buildScriptName,...r])},Am=async(e,t)=>t.sourceDir?t.sourceDir:e.options.outputDir?e.options.outputDir:t.storybook?.version&&y.default.lt(t.storybook.version,`5.0.0`)?`storybook-static`:(await Qs.default.dir({unsafeCleanup:!0,prefix:`chromatic-`})).path;async function jm(e,t){let{storybookBuildDir:n}=e.options;if(n&&(0,m.existsSync)(h.default.resolve(n,`manifest.json`)))return{kind:`continue`,output:{sourceDir:n,skippedWithPrebuilt:!0}};let r=await Am({options:e.options},{sourceDir:n??t.sourceDir,storybook:t.storybook}),i;n||(i=(await sm({options:e.options,log:e.log,report:e.report},{sourceDir:r,browsers:t.browsers,runtimeMetadata:t.runtimeMetadata})).reactNativeBuildLogFile);let{title:a,output:o}=Jp();return e.report({title:a,output:o}),await cm({options:e.options,log:e.log},{sourceDir:r}),{kind:`continue`,output:{sourceDir:r,skippedWithPrebuilt:!1,reactNativeBuildLogFile:i}}}async function Mm(e,t){let{storybookBuildDir:n}=e.options;if(n)return{kind:`continue`,output:{sourceDir:n,skippedWithPrebuilt:!0}};let r=await Am({options:e.options},{sourceDir:t.sourceDir,storybook:t.storybook}),i=await km({options:e.options,log:e.log},{sourceDir:r,flags:t.flags,storybook:t.storybook,changedFiles:t.git.changedFiles});e.report({output:`Running command: ${i}`});let{buildLogFile:a}=await Cm({options:e.options,log:e.log,env:e.env,analytics:e.analytics,pkg:e.pkg},{buildCommand:i,projectId:t.projectId,runtimeMetadata:t.runtimeMetadata,storybook:t.storybook,git:t.git});return{kind:`continue`,output:{sourceDir:r,skippedWithPrebuilt:!1,buildCommand:i,buildLogFile:a}}}async function Nm(e,t){return t.isReactNativeApp?jm(e,t):Mm(e,t)}const Pm=e=>({isReactNativeApp:!!e.isReactNativeApp,sourceDir:e.sourceDir,storybook:e.storybook,flags:e.flags,browsers:e.announcedBuild?.browsers,projectId:e.announcedBuild?.app?.id,runtimeMetadata:e.runtimeMetadata,git:e.git}),Fm=(e,t)=>{e.sourceDir=t.sourceDir,t.buildCommand&&(e.buildCommand=t.buildCommand),t.buildLogFile&&(e.buildLogFile=t.buildLogFile),t.reactNativeBuildLogFile&&(e.reactNativeBuildLogFile=t.reactNativeBuildLogFile)},$=e=>q(e.options)?`test suite`:`Storybook`,Im=e=>e.charAt(0).toUpperCase()+e.slice(1),Lm=e=>({status:`initial`,title:`Build ${$(e)}`}),Rm=e=>({status:`pending`,title:`Building your ${$(e)}`,output:e.buildCommand?`Running command: ${e.buildCommand}`:void 0}),zm=e=>({status:`success`,title:`${Im($(e))} built in ${Fp(e)}`,output:`View build log at ${e.buildLogFile}`}),Bm=e=>({status:`skipped`,title:`Build ${$(e)} [skipped]`,output:`Using prebuilt ${$(e)} at ${e.options.storybookBuildDir}`});function Vm(e){let t;return{start:n=>{t=zd({output:e}),t.start(n.title)},update:e=>{t.message(pp(e.output||e.title))},succeed:n=>{t.clear(),Id.success(Vp(n),{output:e,spacing:0})},fail:n=>{t.clear(),Id.error(pp(n.title),{output:e,spacing:0})}}}async function Hm(e){await Ip(e,{name:`build`,title:Lm(e).title,transitions:{pending:e=>e.isReactNativeApp?qp():Rm(e),success:(e,t)=>e.isReactNativeApp?t?.skippedWithPrebuilt?Qp():Zp(e):t?.skippedWithPrebuilt?Bm(e):zm(e)},extractInput:Pm,run:Nm,applyOutput:Fm},Gp(e,Vm))}var Um=e.t(((e,t)=>{t.exports=function(){var e=arguments;return e[0].reduce(function(t,n,r){return t+=n,r+1 in e&&(t+=e[r+1]),t},``)}})),Wm=e.a(Um());function Gm({options:e},t){return e.isLocalBuild?{localBuildEmailHash:ps(t.gitUserEmail||``)}:t.committerEmail?{localBuildEmailHash:ps(t.committerEmail)}:{isLocalBuild:!1}}const Km=Wm.default`
query BaselineCommitsQuery(
$branch: String!
$parentCommits: [String!]!
$localBuilds: LocalBuildsSpecifierInput!
) {
app {
baselineBuilds(branch: $branch, parentCommits: $parentCommits, localBuilds: $localBuilds) {
id
number
status(legacy: false)
commit
committedAt
uncommittedHash
isLocalBuild
changeCount
}
}
}
`;async function qm(e,{branch:t,parentCommits:n,git:r}){let{app:i}=await e.client.runQuery(Km,{branch:t,parentCommits:n,localBuilds:Gm(e,r)});return i.baselineBuilds}const Jm=Wm.default`
query AncestorBuildsQuery($buildNumber: Int!, $skip: Int!, $limit: Int!) {
app {
build(number: $buildNumber) {
ancestorBuilds(skip: $skip, limit: $limit) {
id
number
commit
uncommittedHash
isLocalBuild
}
}
}
}
`;async function Ym(e,t,{page:n=10,limit:r=80}={}){let a=0;for(;a<r;){let o;try{({app:o}=await e.client.runQuery(Jm,{buildNumber:t,skip:a,limit:Math.min(n,r-a)}))}catch(e){throw i.G(e)?new i.U({cause:e}):new i.W({cause:e})}let s=await Promise.all(o.build.ancestorBuilds.map(async t=>[t,await i.u(e,t.commit)])),c=s.find(([e,t])=>!(e.isLocalBuild&&e.uncommittedHash)&&t);if(c)return c[0];if(s.length<n)return;a+=n}}async function Xm(e,t){try{if(t.isLocalBuild&&t.uncommittedHash)throw new i.z(t.commit);return{changedFiles:await i.h(e,t.commit)||[]}}catch(n){if(e.log.debug(`Got error fetching commit for #${t.number}(${t.commit}): ${n.message}`),n instanceof i.L||n instanceof i.z){let n=await Ym(e,t.number);if(n)return e.log.debug(`Found replacement build for #${t.number}(${t.commit}): #${n.number}(${n.commit})`),{changedFiles:await i.h(e,n.commit)||[],replacementBuild:n};e.log.debug(`Couldn't find replacement for #${t.number}(${t.commit})`)}throw n}}const Zm=Wm.default`
query FirstCommittedAtQuery($branch: String!, $localBuilds: LocalBuildsSpecifierInput!) {
app {
firstBuild(sortByCommittedAt: true, localBuilds: $localBuilds) {
committedAt
}
lastBuild(branch: $branch, sortByCommittedAt: true, localBuilds: $localBuilds) {
commit
committedAt
}
}
}
`,Qm=Wm.default`
query HasBuildsWithCommitsQuery($commits: [String!]!, $localBuilds: LocalBuildsSpecifierInput!) {
app {
hasBuildsWithCommits(commits: $commits, localBuilds: $localBuilds)
}
}
`,$m=Wm.default`
query MergeCommitsQuery($mergeInfoList: [MergedInfoInput]!) {
app {
mergedPullRequests(mergeInfoList: $mergeInfoList) {
mergeCommitSha
lastHeadBuild {
commit
}
}
}
}
`;function eh(e){return e.map(e=>e.trim()).join(` `)}async function th(e,t,{firstCommittedAtSeconds:n,commitsWithBuilds:r,commitsWithoutBuilds:a}){let o=((await i.F(e,`git rev-list HEAD \
${n?`--since ${n}`:``} \
-n ${t+a.length} --not ${eh(r)}`))?.split(`
`).filter(Boolean))?.filter(e=>!r.includes(e));return{visitedCommitsWithoutBuilds:o,candidateCommits:o?.filter(e=>!a.includes(e)).slice(0,t)}}async function nh(e,t,n,{firstCommittedAtSeconds:r,commitsWithBuilds:i,commitsWithoutBuilds:a}){let{options:o,client:s,log:c}=e;c.debug(`step: checking ${n} up to ${r}`),c.debug(`step: commitsWithBuilds: ${i}`),c.debug(`step: commitsWithoutBuilds: ${a}`);let{candidateCommits:l,visitedCommitsWithoutBuilds:u}=await th({options:o,log:c},n,{firstCommittedAtSeconds:r,commitsWithBuilds:i,commitsWithoutBuilds:a});c.debug(`step: candidateCommits: ${l}, visitedCommitsWithoutBuilds: ${u}`);let d=l?.filter(e=>t.shallowBoundaryCommits?.includes(e));if(d?.length&&c.debug({hitBoundaries:d},`step: reached shallow boundary commit(s) during walk`),!l?.length)return c.debug(`step: no candidateCommits; we are done`),{commitsWithBuilds:i,visitedCommitsWithoutBuilds:u};let{app:{hasBuildsWithCommits:f}}=await s.runQuery(Qm,{commits:l,localBuilds:Gm({options:o},t)});c.debug(`step: newCommitsWithBuilds: ${f}`);let p=l?.filter(e=>!f.includes(e));return nh(e,t,n*2,{firstCommittedAtSeconds:r,commitsWithBuilds:[...i,...f],commitsWithoutBuilds:[...a,...p||[]]})}async function rh(e,t){if(t.length===0)return t;let n=t.map(e=>`"${e}^@"`);return(await i.F(e,`git rev-list ${eh(t)} --not ${eh(n)}`))?.split(`
`).filter(Boolean)}async function ih(e,{git:t,ignoreLastBuildOnBranch:n=!1}){let{options:r,client:a,log:o}=e,{branch:s,committedAt:c}=t,{app:l}=await a.runQuery(Zm,{branch:s,localBuilds:Gm({options:r},t)},{retries:5}),{firstBuild:u,lastBuild:d}=l;if(o.debug(`App firstBuild: %o, lastBuild: %o`,u,d),!u)return o.debug(`App has no builds, returning []`),{ancestorCommits:[],visitedCommits:[]};let f=[],p=[];if(s!==`HEAD`&&!n&&d&&d.committedAt<=c)if(await i.u(e,d.commit))o.debug(`Adding last branch build commit ${d.commit} to commits with builds`),f.push(d.commit);else{let e=t.shallowBoundaryCommits?.includes(d.commit);o.debug(`Last branch build commit ${d.commit} not in index${e?` (shallow boundary)`:``}, blindly appending to parents`),p.push(d.commit)}let{commitsWithBuilds:m,visitedCommitsWithoutBuilds:h}=await nh(e,t,20,{firstCommittedAtSeconds:u.committedAt&&u.committedAt/1e3,commitsWithBuilds:f,commitsWithoutBuilds:[]}),g=h?.map(e=>({commit:e,baseRefName:s})),{app:{mergedPullRequests:v}}=await a.runQuery($m,{mergeInfoList:g?.slice(0,100)},{retries:5}),y=new Set;for(let n of v){let r=n.lastHeadBuild?.commit;if(r){if(await i.u(e,r))o.debug(`Adding merged PR build commit ${r} to commits with builds`),m.push(r);else{let e=t.shallowBoundaryCommits?.includes(r);o.debug(`Merged PR build commit ${r} not in index${e?` (shallow boundary)`:``}, blindly appending to parents`),p.push(r)}n.mergeCommitSha&&y.add(n.mergeCommitSha)}}o.debug(`Final commitsWithBuilds: ${m}`);let b=await rh({log:o},m),x=[...p,...b||[]],S=[...new Set([...h??[],...m])],C=new Set(m),w=(await i.j(e,S)).map(({commit:e,parentCommits:n,isProbableSquashMerge:r})=>({commit:e,parentCommits:n,hasBuild:C.has(e),isMergePoint:[...y].some(t=>e.startsWith(t)),isProbableSquashMerge:r,isShallowBoundary:!!t.shallowBoundaryCommits?.includes(e)}));return o.debug(`visitedCommits: total=${S.length}, withBuilds=${C.size}, mergePoints=${y.size}`),{ancestorCommits:x,visitedCommits:w}}const ah=new Set([`react-router`,`react-router-dom`,`remix`,`@tanstack/react-router`,`expo-router`,`@reach/router`,`react-easy-router`,`@remix-run/router`,`wouter`,`wouter-preact`,`preact-router`,`vue-router`,`unplugin-vue-router`,`@angular/router`,`@solidjs/router`,`next`,`react-scripts`,`gatsby`,`nuxt`,`@sveltejs/kit`]);function oh(e){return Object.keys(e?.dependencies??{}).some(e=>ah.has(e))}var sh=()=>`${(0,K.dedent)(G.default`
${n.i} {bold Failed to find the current git user's email}
We were unable to find your git email so this local build
will not belong to you and will not affect your future baselines.
Read more: ${i.J(`https://www.chromatic.com/docs/visual-tests-addon/#what-are-local-builds-and-how-are-they-different-from-builds`)}
In order to associate your local changes with later CI builds, you
need to configure git with the email address you'll commit with.
You can do this with \`git config --global user.email YOUR_EMAIL\`.
Once you've done so, please run this build again.
`)}`;const ch=({commit:e,branch:t,parentCommits:n,changedFiles:r},{ownerName:i},a={})=>{let o=a.bailReason?`; TurboSnap disabled`:``,s=i?`${i}:${t}`:t,c=`Commit '${e.slice(0,7)}' on branch '${s}'`;return n?.length?(c+=`; found ${(0,J.default)(`parent build`,n.length,!0)}`,r&&(c+=` and ${(0,J.default)(`changed file`,r.length,!0)}`),`${c}${o}`):`${c}; no ancestor found${o}`},lh=()=>({status:`pending`,title:`Retrieving git information`}),uh=e=>({status:`updating`,title:`Skipping build`,output:`Skipping build for commit ${e.commit.slice(0,7)}`}),dh=e=>({status:`success`,title:`Skipping build`,output:`Skipped build for commit ${e.git.commit.slice(0,7)} due to --skip`}),fh=()=>({status:`error`,title:`Skipping build`,output:`Failed to skip build`}),ph=()=>({status:`success`,title:`Skipping build`,output:`Skipping rebuild of an already fully passed/accepted build`}),mh=e=>({status:`success`,title:`Retrieved git information`,output:ch(e.git,e.options,e.turboSnap)});var hh=()=>(0,K.dedent)(G.default`
${n.a} {bold ${ph().output}}
A build for the same commit as the last build on the branch is considered a rebuild.
If the last build is passed or accepted, the rebuild is skipped because it shouldn't change anything.
You can override this using the {bold --force-rebuild} flag.
`);function gh(e){return e.commit.slice(0,7)}var _h=({replacedBuild:e,replacementBuild:t})=>(0,K.dedent)(G.default`
${n.a} {bold Missing commit detected}
When detecting git changes for TurboSnap, we couldn't find the commit (${gh(e)}) for the most recent build (#${e.number}).
To avoid re-snapshotting stories we know haven't changed, we copied from the most recent build (#${t.number}) that did have a commit (${gh(t)}) instead.
`),vh=e=>{let t=e.length===1?`file`:`${e.length} files`,r=e.map(e=>G.default.bold(e));return(0,K.dedent)(G.default`
${n.s} {bold TurboSnap disabled due to matching --externals}
Found ${t} with changes: ${e.length===1?r[0]:G.default`\n{dim →} ${r.join(G.default`\n{dim →} `)}`}
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/turbosnap#how-it-works`)}
`)},yh=()=>(0,K.dedent)(G.default`
${n.s} {bold TurboSnap disabled due to missing git history}
Could not retrieve changed files since baseline commit(s).
This typically happens after rebasing, force pushing, or when running against an ephemeral merge commit.
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/turbosnap#how-it-works`)}
`),bh=()=>(0,K.dedent)(G.default`
${n.s} {bold TurboSnap disabled due to rebuild}
You appear to be rerunning an earlier build, because the baseline build has the same commit and branch name.
Comparing against the same commit would yield zero changed files, so we would end up running a build with no snapshots.
That's probably not what you want when rerunning a build, so we're just going to run a full build instead.
`),xh=()=>(0,K.dedent)(G.default`
${n.s} Removing unknown owner prefix from branch name.
You may wish to set the branch directly to avoid incorrect values.
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/faq/override-branch-name/`)}
`);const Sh=/^undefined:/;async function Ch(e,n){let{log:r,client:a,options:o,runtime:s,packageJson:c,report:l}=e,{branchName:u,ownerName:d,repositorySlug:f,patchBaseRef:p,fromCI:m,interactive:h,isLocalBuild:g,skip:v,ignoreLastBuildOnBranch:y,onlyChanged:b,externals:x,untraced:S}=n,C=await i.A({log:r,options:o}),w=await ko({log:r,options:o},{branchName:u,patchBaseRef:p,ci:m}),T={version:C,gitUserEmail:await i.k({log:r,options:o}).catch(e=>{r.debug(`Failed to retrieve Git user email`,e)}),uncommittedHash:await i.D({log:r,options:o}).catch(e=>{r.warn(`Failed to retrieve uncommitted files hash`,e)}),rootPath:await i.C({log:r,options:o}),...w},E={};try{E={hasRouter:oh(c),creationDate:await i.S({log:r,options:o}),storybookCreationDate:await i.E({log:r,options:o}),numberOfCommitters:await i.x({log:r,options:o}),numberOfAppFiles:await i.b({log:r,options:o},[`page`,`screen`],[`js`,`jsx`,`ts`,`tsx`])}}catch(e){r.debug(`Failed to gather project metadata`,e)}if(g&&!T.gitUserEmail)throw Error(sh());if(!T.slug)try{T.slug=await i.T({log:r,options:o})}catch(e){r.debug(`Failed to retrieve Git repository slug`,e)}d?(T.branch=T.branch.replace(/[^:]+:/,``),T.slug=f||T.slug?.replace(/[^/]+/,d)):Sh.test(T.branch)&&(r.warn(xh()),T.branch=T.branch.replace(Sh,``));let[D,O]=await Promise.all([i._({log:r,options:o}).catch(e=>{r.debug({err:e},`Failed to detect clone depth`)}),i.v({log:r,options:o}).catch(e=>{r.debug({err:e},`Failed to detect clone filter`)})]),k=D===`shallow`?await i.w({log:r,options:o}).catch(e=>(r.debug({err:e},`Failed to retrieve shallow boundary commits`),[])):[];r.debug(`Git clone type: ${JSON.stringify({cloneDepth:D,cloneFilter:O,shallowBoundaryCommitCount:k.length,firstShallowBoundaryCommits:k.slice(0,50)})}`),T.cloneDepth=D,T.cloneFilter=O,k.length>0&&(T.shallowBoundaryCommits=k);let{branch:A,commit:j,slug:M}=T;if(T.matchesBranch=e=>Gs(A,e),T.matchesBranch(v)){let{title:e,output:t}=uh(T);if(l({title:e,output:t}),await a.runQuery(`
mutation SkipBuildMutation($commit: String!, $branch: String, $slug: String) {
skipBuild(commit: $commit, branch: $branch, slug: $slug)
}
`,{commit:j,branch:A,slug:M}))return{kind:`partial`,output:{phase:`skip-commit`,git:T,projectMetadata:E},reason:`skipped-for-commit`};throw Error(fh().output)}let{ancestorCommits:N,visitedCommits:P}=await ih({log:r,client:a,options:o},{git:T,ignoreLastBuildOnBranch:T.matchesBranch(y||!1)});T.parentCommits=N,T.visitedCommits=P,r.debug(`Found parentCommits: ${N.join(`, `)}`);let F=await a.runQuery(`
query LastBuildQuery($commit: String!, $branch: String!) {
app {
isOnboarding
lastBuild(ref: $commit, branch: $branch) {
id
status(legacy: false)
storybookUrl
webUrl
specCount
componentCount
testCount
changeCount
errorCount: testCount(statuses: [BROKEN])
actualTestCount: testCount(statuses: [IN_PROGRESS])
actualCaptureCount
inheritedCaptureCount
interactionTestFailuresCount
}
}
}
`,{commit:j,branch:A}),I=F.app.isOnboarding,L;if(N.length===1&&N[0]===j){let e=F?.app?.lastBuild;if(e&&(L=e.id,[`PASSED`,`ACCEPTED`].includes(e.status)&&!T.matchesBranch(I?!0:s.forceRebuild)))return r.info(hh()),{kind:`partial`,output:{phase:`rebuild-noop`,git:T,projectMetadata:E,isOnboarding:I,rebuildForBuildId:L,rebuildForBuild:F.app.lastBuild,storybookUrl:F.app.lastBuild.storybookUrl,setForceRebuild:I},reason:`rebuild-noop`}}let R=T.matchesBranch(b)?{}:void 0,ee;if(R){if(N.length===0)return R.bailReason={noAncestorBuild:!0},{kind:`continue`,output:{git:T,projectMetadata:E,isOnboarding:I,turboSnap:R,build:ee,setForceRebuild:I,rebuildForBuildId:L}};if(L)return R.bailReason={rebuild:!0},r.warn(bh()),{kind:`continue`,output:{git:T,projectMetadata:E,isOnboarding:I,turboSnap:R,build:ee,setForceRebuild:I,rebuildForBuildId:L}};let e=await qm({options:o,client:a},{branch:A,parentCommits:N,git:T});T.baselineCommits=e.map(e=>e.commit),r.debug(`Found baselineCommits: ${T.baselineCommits.join(`, `)}`),ee=e.sort((e,t)=>t.committedAt-e.committedAt)[0];try{let n=await Promise.all(e.map(async e=>({build:e,...await Xm({log:r,client:a},e)})));T.changedFiles=[...new Set(n.flatMap(({changedFiles:e})=>e))];let i=S??[];if(T.packageMetadataChanges=n.flatMap(({build:e,changedFiles:n,replacementBuild:r})=>{let a=n.filter(e=>!i.some(n=>t.f(n,e))).filter(e=>t.u(e));return a.length>0?[{changedFiles:a,commit:r?.commit??e.commit}]:[]}),T.replacementBuildIds=n.filter(e=>!!e.replacementBuild).map(({build:e,replacementBuild:t})=>(r.info(``),r.info(_h({replacedBuild:e,replacementBuild:t})),[e.id,t.id])),!h){let e=T.changedFiles.length>0?`:\n${T.changedFiles.map(e=>` ${e}`).join(`
`)}`:``;r.info(`Found ${T.changedFiles.length} changed files${e}`)}}catch(e){let{bailSubreason:n}=t.i(e);R.bailReason={invalidChangedFiles:!0,bailSubreason:n,sentryEventId:t.o(e,{bailSubreason:n,bailPath:`gitInfo.invalidChangedFiles`})},T.changedFiles=void 0,T.replacementBuildIds=void 0,r.warn(yh()),r.debug(e)}if(x&&T.changedFiles&&T.changedFiles.length>0)for(let e of x){let n=T.changedFiles.filter(n=>t.f(e,n));if(n.length>0){R.bailReason={changedExternalFiles:n},r.warn(vh(n)),T.changedFiles=void 0,T.replacementBuildIds=void 0;break}}}return{kind:`continue`,output:{git:T,projectMetadata:E,isOnboarding:I,turboSnap:R,build:ee,setForceRebuild:I,rebuildForBuildId:L}}}const wh=e=>({branchName:e.options.branchName,ownerName:e.options.ownerName,repositorySlug:e.options.repositorySlug,patchBaseRef:e.options.patchBaseRef,fromCI:e.options.fromCI,interactive:e.options.interactive,isLocalBuild:e.options.isLocalBuild,skip:e.options.skip,ignoreLastBuildOnBranch:e.options.ignoreLastBuildOnBranch,onlyChanged:e.options.onlyChanged,externals:e.options.externals,untraced:e.options.untraced}),Th=(e,t)=>{e.git=t.git,e.projectMetadata=t.projectMetadata,e.isOnboarding=t.isOnboarding,t.turboSnap&&(e.turboSnap=t.turboSnap),t.build&&(e.build=t.build),t.rebuildForBuildId&&(e.rebuildForBuildId=t.rebuildForBuildId),t.setForceRebuild&&(e.runtime.forceRebuild=!0)},Eh=(e,n)=>{e.git=n.git,e.projectMetadata=n.projectMetadata,t.w(e,t.C.OK),n.phase===`rebuild-noop`&&(e.isOnboarding=n.isOnboarding,e.rebuildForBuildId=n.rebuildForBuildId,e.rebuildForBuild=n.rebuildForBuild,e.storybookUrl=n.storybookUrl,n.setForceRebuild&&(e.runtime.forceRebuild=!0))};async function Dh(e){await Ip(e,{name:`gitInfo`,title:`Retrieve git information`,transitions:{pending:lh,success:mh,partial:(e,t)=>t.phase===`skip-commit`?dh(e):ph()},extractInput:wh,run:Ch,applyOutput:Th,applyPartial:Eh},Gp(e,Hp))}var Oh=class{constructor({client:e,logger:t}){this.pending=[],this.client=e,this.logger=t}trackEvent(e,n){this.logger.debug(`[analytics] trackEvent: ${e}`,JSON.stringify(n));let r={event:e,properties:n},i=this.client.runQuery(`
mutation TrackCLITelemetryEvent($input: TrackCLITelemetryEventInput!) {
trackCLITelemetryEvent(input: $input)
}
`,{input:r},{retries:0}).catch(e=>{this.logger.debug(`[analytics] trackEvent failed`,e),t.A(e)});this.pending.push(i)}async shutdown(){this.logger.debug(`[analytics] shutdown: flushing ${this.pending.length} pending event(s)`);let e,t=new Promise(t=>{e=setTimeout(()=>{this.logger.debug(`[analytics] shutdown timed out before all events flushed`),t()},5e3)});await Promise.race([Promise.all(this.pending).then(()=>{this.logger.debug(`[analytics] shutdown: finished flushing pending events`)}),t]),e&&clearTimeout(e)}},kh=class{constructor(e){this.logger=e}trackEvent(e,t){this.logger.debug(`[analytics] trackEvent: ${e}`,JSON.stringify(t))}async shutdown(){this.logger.debug(`[analytics] shutdown`)}};function Ah(e){return[`CHROMATIC_DISABLE_ANALYTICS`,`CHROMATIC_DISABLE_TELEMETRY`,`DO_NOT_TRACK`].some(e=>jh(process.env[e]))?(e.log.debug(`[analytics] disabled via environment variable, using log-only client`),new kh(e.log)):(e.log.debug(`[analytics] initializing Index analytics client`),new Oh({client:e.client,logger:e.log}))}function jh(e){return[`1`,`true`,`yes`].includes((e||``).toLowerCase())}var Mh=()=>(0,K.dedent)(G.default`
${n.i} {bold TurboSnap is not supported for Storybook React Native projects.}
Remove the {bold \`--only-changed\`} flag and re-run the command to continue.
`);const Nh=`https://www.chromatic.com/docs/quickstart/#why-do-i-see-build-x-is-based-on-a-commit-without-ancestor-builds`;var Ph=({announcedBuild:e,turboSnap:t})=>t?(0,K.dedent)(G.default`
${n.s} {bold TurboSnap disabled due to missing ancestor build}
An ancestor is required to determine which files have changed since the last Chromatic build.
This usually happens when rebasing, force-pushing, squash-merging or running against an ephemeral merge commit.
${n.a} Read more at ${i.J(Nh)}
`):(0,K.dedent)(G.default`
${n.s} {bold No ancestor build found}
Build ${e.number} is based on a commit without ancestor builds, which is unusual.
This usually happens when rebasing, force-pushing, squash-merging or running against an ephemeral merge commit.
${n.a} Read more at ${i.J(Nh)}
`);const Fh=(e,t)=>{let{patchBaseRef:n,patchHeadRef:r,preserveMissingSpecs:a,isLocalBuild:o}=e.options,{version:s,matchesBranch:c,changedFiles:l,changedDependencyNames:u,replacementBuildIds:d,committedAt:f,baselineCommits:p,packageMetadataChanges:m,gitUserEmail:h,rootPath:g,visitedCommits:v,cloneFilter:y,cloneDepth:b,shallowBoundaryCommits:x,...S}=t.git,{rebuildForBuildId:C,turboSnap:w}=t;return{autoAcceptChanges:c?.(e.options.autoAcceptChanges),patchBaseRef:n,patchHeadRef:r,preserveMissingSpecs:a,...h&&{gitUserEmailHash:ps(h)},...S,committedAt:new Date(f),ciVariables:t.environment,isLocalBuild:o,needsBaselines:!!w&&!w.bailReason,packageVersion:e.pkg.version,...t.runtimeMetadata,rebuildForBuildId:C,storybookAddons:t.storybook.addons,storybookRefs:t.storybook.refs,storybookVersion:t.storybook.version,projectMetadata:{...t.projectMetadata,storybookBaseDir:i.n(g??process.cwd(),t.storybook.projectRoot)||`.`}}},Ih=async(e,n)=>{let r=Fh(e,n),{announceBuild:i}=await e.client.runQuery(`
mutation AnnounceBuildMutation($input: AnnounceBuildInput!) {
announceBuild(input: $input) {
id
number
browsers
# no need for legacy:false on AnnouncedBuild.status
status
autoAcceptChanges
reportToken
features {
uiTests
uiReview
isReactNativeApp
}
app {
id
turboSnapAvailability
isOnboarding
}
}
}
`,{input:r},{retries:3});return t.F(`app_id`,i.app.id),t.P(`build`,{id:i.id}),i},Lh=e=>{let t={};for(let[n,r]of Object.entries(process.env))r&&e.env.ENVIRONMENT_WHITELIST.some(e=>n.match(e))&&(t[n]=r);return e.log.debug(`Got environment:\n${JSON.stringify(t,void 0,2)}`),t},Rh=async e=>{let n={nodePlatform:process.platform,nodeVersion:process.versions.node};try{let e=await wm();if(!e)throw Error(`Failed to determine package manager`);n.packageManager=e,t.F(`packageManager`,e);let r=await Em(e);n.packageManagerVersion=r,t.F(`packageManagerVersion`,r)}catch(t){e.log.debug(`Failed to fully determine runtime metadata: ${t.message}`)}return n};async function zh(e,t){let n=Lh(e),r=await Rh(e);return{kind:`continue`,output:{environment:n,runtimeMetadata:r,announcedBuild:await Ih(e,{...t.partialAnnounceBuildInput,environment:n,runtimeMetadata:r})}}}const Bh=e=>({partialAnnounceBuildInput:{git:e.git,turboSnap:e.turboSnap,rebuildForBuildId:e.rebuildForBuildId,storybook:e.storybook,projectMetadata:e.projectMetadata}}),Vh=async(e,t)=>{if(e.environment=t.environment,e.runtimeMetadata=t.runtimeMetadata,e.announcedBuild=t.announcedBuild,e.isOnboarding=e.isOnboarding||t.announcedBuild.app.isOnboarding,e.isReactNativeApp=t.announcedBuild.features?.isReactNativeApp??!1,e.turboSnap&&t.announcedBuild.app.turboSnapAvailability===`UNAVAILABLE`&&(e.turboSnap.unavailable=!0),e.analytics=Ah(e),e.isReactNativeApp&&await p.t(e),e.turboSnap&&e.isReactNativeApp)throw Error(Mh());!e.isOnboarding&&(!e.git.parentCommits||e.git.parentCommits.length===0)&&e.log.warn(Ph(e))},Hh={status:`initial`,title:`Initialize build`},Uh=()=>({status:`pending`,title:`Initializing build`}),Wh=e=>({status:`success`,title:`Initialized build`,output:`Build ${e.announcedBuild.number} initialized`});async function Gh(e){await Ip(e,{name:`initialize`,title:Hh.title,transitions:{pending:Uh,success:Wh},extractInput:Bh,run:zh,applyOutput:Vh},Gp(e,Hp))}const Kh=e=>({status:`initial`,title:`Prepare your built ${$(e)}`}),qh=e=>({status:`pending`,title:`Prepare your built ${$(e)}`,output:`Validating ${$(e)} files`}),Jh=(e,t)=>{let n=`Invalid ${$(e)} build at ${e.sourceDir}`;return e.buildLogFile&&(n+=` (check the build log)`),t&&(n+=`: ${t.message}`),{status:`error`,title:`Preparing your built ${$(e)}`,output:n}},Yh=e=>({status:`error`,title:`Preparing your built React Native Storybook`,output:`Your storybook.apk contains native libraries but does not include x86_64 support. Chromatic only supports x86_64.`}),Xh=(e,t=[])=>{let n=[];if(t.length>0){let e=t.includes(`storybook.apk`),r=t.includes(`storybook.app`),i=t.filter(e=>e!==`storybook.apk`&&e!==`storybook.app`);if(n.push(`Missing files:`),e&&r?n.push(`→ This build is missing the storybook.app (iOS) and storybook.apk (Android) files required for React Native Storybook.`,` Please ensure that the files are present in the output directory and named correctly before running the CLI.`):e?n.push(`→ This build is missing the storybook.apk file required for React Native Storybook for Android.`,` Please ensure that the file is present in the output directory and named correctly before running the CLI.`):r&&n.push(`→ This build is missing the storybook.app file required for React Native Storybook for iOS.`,` Please ensure that the file is present in the output directory and named correctly before running the CLI.`),i.length>0)for(let e of i)n.push(` → ${e}`)}return n.push(``,`Invalid React Native Storybook build in directory ${h.default.resolve(e.sourceDir)}`),{status:`error`,title:`Preparing your built React Native Storybook`,output:n.join(`
`)}},Zh=e=>{let t=(0,J.default)(`file`,e.git.changedFiles?.length,!0);return{status:`updating`,title:`Retrieving ${q(e.options)?`test`:`story`} files affected by recent changes`,output:`Traversing dependencies for ${t} that changed since the last build`}},Qh=e=>{let{changedPackageFiles:n,changedStorybookFiles:r,changedStaticFiles:i}=e.turboSnap?.bailReason||{},a=n||r||i,o=a?.every(e=>t.l(e))?`dependency `:``,[s,...c]=a||[],l=(0,J.default)(`sibling`,c.length,!0),u=`Found a ${o}change in ${s}`;return c.length===1&&(u+=` or its sibling`),c.length>1&&(u+=` or one of its ${l}`),{status:`updating`,title:`TurboSnap disabled`,output:u}},$h=e=>{let t=q(e.options)?`test`:`story`,n=(0,J.default)(`${t} file`,e.onlyStoryFiles?.length,!0);return{status:`updating`,title:`Retrieved ${t} files affected by recent changes`,output:`Found ${n} affected by recent changes`}},eg=e=>({status:`updating`,title:`Prepare your built ${$(e)}`,output:`Calculating file hashes`}),tg=e=>({status:`success`,title:`Preparation complete`,output:`${$(e)} files validated and prepared for upload`});async function ng(e,t){if(!e.options.fileHashing)return{};e.report(eg({options:e.options}));try{let n=Date.now(),r=await c.t({files:t.fileInfo.paths,directory:t.sourceDir,concurrency:e.env.CHROMATIC_HASH_CONCURRENCY});return e.log.debug(`Calculated file hashes in ${Date.now()-n}ms`),{hashes:r}}catch(t){return e.log.warn(`Failed to calculate file hashes`),e.log.debug(t),{}}}async function rg(e){if(!e.turboSnap||e.turboSnap.unavailable||!e.git.changedFiles)return{status:`skipped`};if(!e.fileInfo?.statsPath){let n=e.storybook?.version&&y.default.gte(y.default.coerce(e.storybook.version)||`0.0.0`,`8.0.0`);throw Error(t.r({legacy:!n}))}return t.t(e)}const ig=/([$()*+?[\]^])/g;async function ag(e,n){let r=n.turboSnapContext;if(!r.turboSnap||r.turboSnap.unavailable||!r.git.changedFiles)return{};e.report(Zh({git:r.git,options:e.options}));try{let n=await rg(r);if(n.status===`skipped`)return{};if(r.turboSnap=n.turboSnap,n.status===`bailed`)return e.report(Qh({turboSnap:n.turboSnap})),{};r.untracedFiles=n.untracedFiles,n.changedDependencyNames&&(r.git.changedDependencyNames=n.changedDependencyNames);let i=Object.keys(n.onlyStoryFiles).map(e=>e.replaceAll(ig,String.raw`\$1`));return e.options.interactive||(e.options.traceChanged||e.log.info(`Found affected story files:\n${Object.entries(n.onlyStoryFiles).flatMap(([e,t])=>t.map(t=>` ${t} [${e}]`)).join(`
`)}`),n.untracedFiles.length>0&&e.log.info(`Encountered ${n.untracedFiles.length} untraced files:\n${t.c(n.untracedFiles)}`)),e.report($h({options:e.options,onlyStoryFiles:i})),{onlyStoryFiles:i}}catch(n){if(!e.options.interactive){let{statsPath:t}=r.fileInfo??{},{changedFiles:i}=r.git;e.log.info(`Failed to retrieve dependent story files`,{statsPath:t,changedFiles:i,err:n})}throw t.m(n,`Could not retrieve dependent story files.\n${n.message}`)}}var og=e.t(((e,t)=>{t.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}})),sg=e.t((e=>{let t={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,n)=>t[n]||``)),Error(`ADM-ZIP: `+e)}}for(let r of Object.keys(t))e[r]=n(t[r])})),cg=e.t(((e,t)=>{let n=require(`fs`),r=require(`path`),i=og(),a=sg(),o=typeof process==`object`&&process.platform===`win32`,s=e=>typeof e==`object`&&!!e,c=new Uint32Array(256).map((e,t)=>{for(let e=0;e<8;e++)t&1?t=3988292384^t>>>1:t>>>=1;return t>>>0});function l(e){this.sep=r.sep,this.fs=n,s(e)&&s(e.fs)&&typeof e.fs.statSync==`function`&&(this.fs=e.fs)}t.exports=l,l.prototype.makeDir=function(e){let t=this;function n(e){let n=e.split(t.sep)[0];e.split(t.sep).forEach(function(e){if(!(!e||e.substr(-1,1)===`:`)){n+=t.sep+e;var r;try{r=t.fs.statSync(n)}catch(e){if(e.message&&e.message.startsWith(`ENOENT`))t.fs.mkdirSync(n);else throw e}if(r&&r.isFile())throw a.FILE_IN_THE_WAY(`"${n}"`)}})}n(e)},l.prototype.writeFileTo=function(e,t,n,i){let a=this;if(a.fs.existsSync(e)&&(!n||a.fs.statSync(e).isDirectory()))return!1;var o=r.dirname(e);a.fs.existsSync(o)||a.makeDir(o);var s;try{s=a.fs.openSync(e,`w`,438)}catch{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,i||438),!0},l.prototype.writeFileToAsync=function(e,t,n,i,a){typeof i==`function`&&(a=i,i=void 0);let o=this;o.fs.exists(e,function(s){if(s&&!n)return a(!1);o.fs.stat(e,function(n,c){if(s&&c.isDirectory())return a(!1);var l=r.dirname(e);o.fs.exists(l,function(n){n||o.makeDir(l),o.fs.open(e,`w`,438,function(n,r){n?o.fs.chmod(e,438,function(){o.fs.open(e,`w`,438,function(n,r){o.fs.write(r,t,0,t.length,0,function(){o.fs.close(r,function(){o.fs.chmod(e,i||438,function(){a(!0)})})})})}):r?o.fs.write(r,t,0,t.length,0,function(){o.fs.close(r,function(){o.fs.chmod(e,i||438,function(){a(!0)})})}):o.fs.chmod(e,i||438,function(){a(!0)})})})})})},l.prototype.findFiles=function(e){let t=this;function n(e,i,a){typeof i==`boolean`&&(a=i,i=void 0);let o=[];return t.fs.readdirSync(e).forEach(function(s){let c=r.join(e,s),l=t.fs.statSync(c);(!i||i.test(c))&&o.push(r.normalize(c)+(l.isDirectory()?t.sep:``)),l.isDirectory()&&a&&(o=o.concat(n(c,i,a)))}),o}return n(e,void 0,!0)},l.prototype.findFilesAsync=function(e,t){let n=this,i=[];n.fs.readdir(e,function(a,o){if(a)return t(a);let s=o.length;if(!s)return t(null,i);o.forEach(function(a){a=r.join(e,a),n.fs.stat(a,function(e,o){if(e)return t(e);o&&(i.push(r.normalize(a)+(o.isDirectory()?n.sep:``)),o.isDirectory()?n.findFilesAsync(a,function(e,n){if(e)return t(e);i=i.concat(n),--s||t(null,i)}):--s||t(null,i))})})})},l.prototype.getAttributes=function(){},l.prototype.setAttributes=function(){},l.crc32update=function(e,t){return c[(e^t)&255]^e>>>8},l.crc32=function(e){typeof e==`string`&&(e=Buffer.from(e,`utf8`));let t=e.length,n=-1;for(let r=0;r<t;)n=l.crc32update(n,e[r++]);return~n>>>0},l.methodToString=function(e){switch(e){case i.STORED:return`STORED (`+e+`)`;case i.DEFLATED:return`DEFLATED (`+e+`)`;default:return`UNSUPPORTED (`+e+`)`}},l.canonical=function(e){if(!e)return``;let t=r.posix.normalize(`/`+e.split(`\\`).join(`/`));return r.join(`.`,t)},l.zipnamefix=function(e){if(!e)return``;let t=r.posix.normalize(`/`+e.split(`\\`).join(`/`));return r.posix.join(`.`,t)},l.findLast=function(e,t){if(!Array.isArray(e))throw TypeError(`arr is not array`);let n=e.length>>>0;for(let r=n-1;r>=0;r--)if(t(e[r],r,e))return e[r]},l.sanitize=function(e,t){e=r.resolve(r.normalize(e));for(var n=t.split(`/`),i=0,a=n.length;i<a;i++){var o=r.normalize(r.join(e,n.slice(i,a).join(r.sep)));if(o.indexOf(e)===0)return o}return r.normalize(r.join(e,r.basename(t)))},l.toBuffer=function(e,t){return Buffer.isBuffer(e)?e:e instanceof Uint8Array?Buffer.from(e):typeof e==`string`?t(e):Buffer.alloc(0)},l.readBigUInt64LE=function(e,t){let n=e.readUInt32LE(t);return e.readUInt32LE(t+4)*4294967296+n},l.fromDOS2Date=function(e){return new Date((e>>25&127)+1980,Math.max((e>>21&15)-1,0),Math.max(e>>16&31,1),e>>11&31,e>>5&63,(e&31)<<1)},l.fromDate2DOS=function(e){let t=0,n=0;return e.getFullYear()>1979&&(t=(e.getFullYear()-1980&127)<<9|e.getMonth()+1<<5|e.getDate(),n=e.getHours()<<11|e.getMinutes()<<5|e.getSeconds()>>1),t<<16|n},l.isWin=o,l.crcTable=c})),lg=e.t(((e,t)=>{let n=require(`path`);t.exports=function(e,{fs:t}){var r=e||``,i=o(),a=null;function o(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}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)!=0,i.readonly=(128&a.mode)==0,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,` `)}}}})),ug=e.t(((e,t)=>{t.exports={efs:!0,encode:e=>Buffer.from(e,`utf8`),decode:e=>e.toString(`utf8`)}})),dg=e.t(((e,t)=>{t.exports=cg(),t.exports.Constants=og(),t.exports.Errors=sg(),t.exports.FileAttr=lg(),t.exports.decoder=ug()})),fg=e.t(((e,t)=>{var n=dg(),r=n.Constants;t.exports=function(){var e=20,t=10,i=0,a=0,o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0;e|=n.isWin?2560:768,i|=r.FLG_EFS;let v={extraLen:0},y=e=>Math.max(0,e)>>>0,b=e=>Math.max(0,e)&255;return o=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 i},set flags(e){i=e},get flags_efs(){return(i&r.FLG_EFS)>0},set flags_efs(e){e?i|=r.FLG_EFS:i&=~r.FLG_EFS},get flags_desc(){return(i&r.FLG_DESC)>0},set flags_desc(e){e?i|=r.FLG_DESC:i&=~r.FLG_DESC},get method(){return a},set method(e){switch(e){case r.STORED:this.version=10;case r.DEFLATED:default:this.version=20}a=e},get time(){return n.fromDOS2Date(this.timeval)},set time(e){e=new Date(e),this.timeval=n.fromDate2DOS(e)},get timeval(){return o},set timeval(e){o=y(e)},get timeHighByte(){return b(o>>>8)},get crc(){return s},set crc(e){s=y(e)},get compressedSize(){return c},set compressedSize(e){c=y(e)},get size(){return l},set size(e){l=y(e)},get fileNameLength(){return u},set fileNameLength(e){u=e},get extraLength(){return d},set extraLength(e){d=e},get extraLocalLength(){return v.extraLen},set extraLocalLength(e){v.extraLen=e},get commentLength(){return f},set commentLength(e){f=e},get diskNumStart(){return p},set diskNumStart(e){p=y(e)},get inAttr(){return m},set inAttr(e){m=y(e)},get attr(){return h},set attr(e){h=y(e)},get fileAttr(){return(h||0)>>16&4095},get offset(){return g},set offset(e){g=y(e)},get encrypted(){return(i&r.FLG_ENC)===r.FLG_ENC},get centralHeaderSize(){return r.CENHDR+u+d+f},get realDataOffset(){return g+r.LOCHDR+v.fnameLen+v.extraLen},get localHeader(){return v},loadLocalHeaderFromBinary:function(e){var t=e.slice(g,g+r.LOCHDR);if(t.readUInt32LE(0)!==r.LOCSIG)throw n.Errors.INVALID_LOC();v.version=t.readUInt16LE(r.LOCVER),v.flags=t.readUInt16LE(r.LOCFLG),v.flags_desc=(v.flags&r.FLG_DESC)>0,v.method=t.readUInt16LE(r.LOCHOW),v.time=t.readUInt32LE(r.LOCTIM),v.crc=t.readUInt32LE(r.LOCCRC),v.compressedSize=t.readUInt32LE(r.LOCSIZ),v.size=t.readUInt32LE(r.LOCLEN),v.fnameLen=t.readUInt16LE(r.LOCNAM),v.extraLen=t.readUInt16LE(r.LOCEXT);let i=g+r.LOCHDR+v.fnameLen,a=i+v.extraLen;return e.slice(i,a)},loadFromBinary:function(v){if(v.length!==r.CENHDR||v.readUInt32LE(0)!==r.CENSIG)throw n.Errors.INVALID_CEN();e=v.readUInt16LE(r.CENVEM),t=v.readUInt16LE(r.CENVER),i=v.readUInt16LE(r.CENFLG),a=v.readUInt16LE(r.CENHOW),o=v.readUInt32LE(r.CENTIM),s=v.readUInt32LE(r.CENCRC),c=v.readUInt32LE(r.CENSIZ),l=v.readUInt32LE(r.CENLEN),u=v.readUInt16LE(r.CENNAM),d=v.readUInt16LE(r.CENEXT),f=v.readUInt16LE(r.CENCOM),p=v.readUInt16LE(r.CENDSK),m=v.readUInt16LE(r.CENATT),h=v.readUInt32LE(r.CENATX),g=v.readUInt32LE(r.CENOFF)},localHeaderToBinary:function(){var e=Buffer.alloc(r.LOCHDR);return e.writeUInt32LE(r.LOCSIG,0),e.writeUInt16LE(t,r.LOCVER),e.writeUInt16LE(i,r.LOCFLG),e.writeUInt16LE(a,r.LOCHOW),e.writeUInt32LE(o,r.LOCTIM),e.writeUInt32LE(s,r.LOCCRC),e.writeUInt32LE(c,r.LOCSIZ),e.writeUInt32LE(l,r.LOCLEN),e.writeUInt16LE(u,r.LOCNAM),e.writeUInt16LE(v.extraLen,r.LOCEXT),e},centralHeaderToBinary:function(){var n=Buffer.alloc(r.CENHDR+u+d+f);return n.writeUInt32LE(r.CENSIG,0),n.writeUInt16LE(e,r.CENVEM),n.writeUInt16LE(t,r.CENVER),n.writeUInt16LE(i,r.CENFLG),n.writeUInt16LE(a,r.CENHOW),n.writeUInt32LE(o,r.CENTIM),n.writeUInt32LE(s,r.CENCRC),n.writeUInt32LE(c,r.CENSIZ),n.writeUInt32LE(l,r.CENLEN),n.writeUInt16LE(u,r.CENNAM),n.writeUInt16LE(d,r.CENEXT),n.writeUInt16LE(f,r.CENCOM),n.writeUInt16LE(p,r.CENDSK),n.writeUInt16LE(m,r.CENATT),n.writeUInt32LE(h,r.CENATX),n.writeUInt32LE(g,r.CENOFF),n},toJSON:function(){let o=function(e){return e+` bytes`};return{made:e,version:t,flags:i,method:n.methodToString(a),time:this.time,crc:`0x`+s.toString(16).toUpperCase(),compressedSize:o(c),size:o(l),fileNameLength:o(u),extraLength:o(d),commentLength:o(f),diskNumStart:p,inAttr:m,attr:h,offset:g,centralHeaderSize:o(r.CENHDR+u+d+f)}},toString:function(){return JSON.stringify(this.toJSON(),null,` `)}}}})),pg=e.t(((e,t)=>{var n=dg(),r=n.Constants;t.exports=function(){var e=0,t=0,i=0,a=0,o=0;return{get diskEntries(){return e},set diskEntries(n){e=t=n},get totalEntries(){return t},set totalEntries(n){t=e=n},get size(){return i},set size(e){i=e},get offset(){return a},set offset(e){a=e},get commentLength(){return o},set commentLength(e){o=e},get mainHeaderSize(){return r.ENDHDR+o},loadFromBinary:function(s){if((s.length!==r.ENDHDR||s.readUInt32LE(0)!==r.ENDSIG)&&(s.length<r.ZIP64HDR||s.readUInt32LE(0)!==r.ZIP64SIG))throw n.Errors.INVALID_END();s.readUInt32LE(0)===r.ENDSIG?(e=s.readUInt16LE(r.ENDSUB),t=s.readUInt16LE(r.ENDTOT),i=s.readUInt32LE(r.ENDSIZ),a=s.readUInt32LE(r.ENDOFF),o=s.readUInt16LE(r.ENDCOM)):(e=n.readBigUInt64LE(s,r.ZIP64SUB),t=n.readBigUInt64LE(s,r.ZIP64TOT),i=n.readBigUInt64LE(s,r.ZIP64SIZE),a=n.readBigUInt64LE(s,r.ZIP64OFF),o=0)},toBinary:function(){var n=Buffer.alloc(r.ENDHDR+o);return n.writeUInt32LE(r.ENDSIG,0),n.writeUInt32LE(0,4),n.writeUInt16LE(e,r.ENDSUB),n.writeUInt16LE(t,r.ENDTOT),n.writeUInt32LE(i,r.ENDSIZ),n.writeUInt32LE(a,r.ENDOFF),n.writeUInt16LE(o,r.ENDCOM),n.fill(` `,r.ENDHDR),n},toJSON:function(){return{diskEntries:e,totalEntries:t,size:i+` bytes`,offset:function(e,t){let n=e.toString(16).toUpperCase();for(;n.length<t;)n=`0`+n;return`0x`+n}(a,4),commentLength:o}},toString:function(){return JSON.stringify(this.toJSON(),null,` `)}}}})),mg=e.t((e=>{e.EntryHeader=fg(),e.MainHeader=pg()})),hg=e.t(((e,t)=>{t.exports=function(e){var t=require(`zlib`),n={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,n)},deflateAsync:function(r){var i=t.createDeflateRaw(n),a=[],o=0;i.on(`data`,function(e){a.push(e),o+=e.length}),i.on(`end`,function(){var e=Buffer.alloc(o),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)}}}})),gg=e.t(((e,t)=>{let n=+(process.versions?process.versions.node:``).split(`.`)[0]||0;t.exports=function(e,t){var r=require(`zlib`);let i=n>=15&&t>0?{maxOutputLength:t}:{};return{inflate:function(){return r.inflateRawSync(e,i)},inflateAsync:function(t){var n=r.createInflateRaw(i),a=[],o=0;n.on(`data`,function(e){a.push(e),o+=e.length}),n.on(`end`,function(){var e=Buffer.alloc(o),n=0;e.fill(0);for(var r=0;r<a.length;r++){var i=a[r];i.copy(e,n),n+=i.length}t&&t(e)}),n.end(e)}}}})),_g=e.t(((e,t)=>{let{randomFillSync:n}=require(`crypto`),r=sg(),i=new Uint32Array(256).map((e,t)=>{for(let e=0;e<8;e++)t&1?t=t>>>1^3988292384:t>>>=1;return t>>>0}),a=(e,t)=>Math.imul(e,t)>>>0,o=(e,t)=>i[(e^t)&255]^e>>>8,s=()=>typeof n==`function`?n(Buffer.alloc(12)):s.node();s.node=()=>{let e=Buffer.alloc(12),t=e.length;for(let n=0;n<t;n++)e[n]=Math.random()*256&255;return e};let c={genSalt:s};function l(e){let 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){let t=this.keys;return t[0]=o(t[0],e),t[1]+=t[0]&255,t[1]=a(t[1],134775813)+1,t[2]=o(t[2],t[1]>>>24),e},l.prototype.next=function(){let e=(this.keys[2]|2)>>>0;return a(e,e^1)>>8&255};function u(e){let t=new l(e);return function(e){let n=Buffer.alloc(e.length),r=0;for(let i of e)n[r++]=t.updateKeys(i^t.next());return n}}function d(e){let t=new l(e);return function(e,n,r=0){n||=Buffer.alloc(e.length);for(let i of e){let e=t.next();n[r++]=i^e,t.updateKeys(i)}return n}}function f(e,t,n){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);let i=u(n),a=i(e.slice(0,12)),o=(t.flags&8)==8?t.timeHighByte:t.crc>>>24;if(a[11]!==o)throw r.WRONG_PASSWORD();return i(e.slice(12))}function p(e){Buffer.isBuffer(e)&&e.length>=12?c.genSalt=function(){return e.slice(0,12)}:e===`node`?c.genSalt=s.node:c.genSalt=s}function m(e,t,n,r=!1){e??=Buffer.alloc(0),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));let i=d(n),a=c.genSalt();a[11]=t.crc>>>24&255,r&&(a[10]=t.crc>>>16&255);let o=Buffer.alloc(e.length+12);return i(a,o),i(e,o,12)}t.exports={decrypt:f,encrypt:m,_salter:p}})),vg=e.t((e=>{e.Deflater=hg(),e.Inflater=gg(),e.ZipCrypto=_g()})),yg=e.t(((e,t)=>{var n=dg(),r=mg(),i=n.Constants,a=vg();t.exports=function(e,t){var o=new r.EntryHeader,s=Buffer.alloc(0),c=Buffer.alloc(0),l=!1,u=null,d=Buffer.alloc(0),f=Buffer.alloc(0),p=!0;let m=e,h=typeof m.decoder==`object`?m.decoder:n.decoder;p=h.hasOwnProperty(`efs`)?h.efs:!1;function g(){return!t||!(t instanceof Uint8Array)?Buffer.alloc(0):(f=o.loadLocalHeaderFromBinary(t),t.slice(o.realDataOffset,o.realDataOffset+o.compressedSize))}function v(e){if(!o.flags_desc&&!o.localHeader.flags_desc){if(n.crc32(e)!==o.localHeader.crc)return!1}else{let r={},a=o.realDataOffset+o.compressedSize;if(t.readUInt32LE(a)==i.LOCSIG||t.readUInt32LE(a)==i.CENSIG)throw n.Errors.DESCRIPTOR_NOT_EXIST();if(t.readUInt32LE(a)==i.EXTSIG)r.crc=t.readUInt32LE(a+i.EXTCRC),r.compressedSize=t.readUInt32LE(a+i.EXTSIZ),r.size=t.readUInt32LE(a+i.EXTLEN);else if(t.readUInt16LE(a+12)===19280)r.crc=t.readUInt32LE(a+i.EXTCRC-4),r.compressedSize=t.readUInt32LE(a+i.EXTSIZ-4),r.size=t.readUInt32LE(a+i.EXTLEN-4);else throw n.Errors.DESCRIPTOR_UNKNOWN();if(r.compressedSize!==o.compressedSize||r.size!==o.size||r.crc!==o.crc)throw n.Errors.DESCRIPTOR_FAULTY();if(n.crc32(e)!==r.crc)return!1}return!0}function y(e,t,r){if(t===void 0&&typeof e==`string`&&(r=e,e=void 0),l)return e&&t&&t(Buffer.alloc(0),n.Errors.DIRECTORY_CONTENT_ERROR()),Buffer.alloc(0);var i=g();if(i.length===0)return e&&t&&t(i),i;if(o.encrypted){if(typeof r!=`string`&&!Buffer.isBuffer(r))throw n.Errors.INVALID_PASS_PARAM();i=a.ZipCrypto.decrypt(i,o,r)}var c=Buffer.alloc(o.size);switch(o.method){case n.Constants.STORED:if(i.copy(c),v(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 u=new a.Inflater(i,o.size);if(e)u.inflateAsync(function(e){e.copy(e,0),t&&(v(e)?t(e):t(e,n.Errors.BAD_CRC()))});else{if(u.inflate(c).copy(c,0),!v(c))throw n.Errors.BAD_CRC(`"${h.decode(s)}"`);return c}break;default:throw e&&t&&t(Buffer.alloc(0),n.Errors.UNKNOWN_METHOD()),n.Errors.UNKNOWN_METHOD()}}function b(e,r){if((!u||!u.length)&&Buffer.isBuffer(t))return e&&r&&r(g()),g();if(u.length&&!l){var i;switch(o.method){case n.Constants.STORED:return o.compressedSize=o.size,i=Buffer.alloc(u.length),u.copy(i),e&&r&&r(i),i;default:case n.Constants.DEFLATED:var s=new a.Deflater(u);if(e)s.deflateAsync(function(e){i=Buffer.alloc(e.length),o.compressedSize=e.length,e.copy(i),r&&r(i)});else{var c=s.deflate();return o.compressedSize=c.length,c}s=null;break}}else if(e&&r)r(Buffer.alloc(0));else return Buffer.alloc(0)}function x(e,t){return n.readBigUInt64LE(e,t)}function S(e){try{for(var t=0,r,a,o;t+4<e.length;)r=e.readUInt16LE(t),t+=2,a=e.readUInt16LE(t),t+=2,o=e.slice(t,t+a),t+=a,i.ID_ZIP64===r&&C(o)}catch{throw n.Errors.EXTRA_FIELD_PARSE_ERROR()}}function C(e){var t,n,r,a;e.length>=i.EF_ZIP64_SCOMP&&(t=x(e,i.EF_ZIP64_SUNCOMP),o.size===i.EF_ZIP64_OR_32&&(o.size=t)),e.length>=i.EF_ZIP64_RHO&&(n=x(e,i.EF_ZIP64_SCOMP),o.compressedSize===i.EF_ZIP64_OR_32&&(o.compressedSize=n)),e.length>=i.EF_ZIP64_DSN&&(r=x(e,i.EF_ZIP64_RHO),o.offset===i.EF_ZIP64_OR_32&&(o.offset=r)),e.length>=i.EF_ZIP64_DSN+4&&(a=e.readUInt32LE(i.EF_ZIP64_DSN),o.diskNumStart===i.EF_ZIP64_OR_16&&(o.diskNumStart=a))}return{get entryName(){return h.decode(s)},get rawEntryName(){return s},set entryName(e){s=n.toBuffer(e,h.encode);var t=s[s.length-1];l=t===47||t===92,o.fileNameLength=s.length},get efs(){return typeof p==`function`?p(this.entryName):p},get extra(){return d},set extra(e){d=e,o.extraLength=e.length,S(e)},get comment(){return h.decode(c)},set comment(e){if(c=n.toBuffer(e,h.encode),o.commentLength=c.length,c.length>65535)throw n.Errors.COMMENT_TOO_LONG()},get name(){var e=h.decode(s);return l?e.substr(e.length-1).split(`/`).pop():e.split(`/`).pop()},get isDirectory(){return l},getCompressedData:function(){return b(!1,null)},getCompressedDataAsync:function(e){b(!0,e)},setData:function(e){u=n.toBuffer(e,n.decoder.encode),!l&&u.length?(o.size=u.length,o.method=n.Constants.DEFLATED,o.crc=n.crc32(e),o.changed=!0):o.method=n.Constants.STORED},getData:function(e){return o.changed?u:y(!1,null,e)},getDataAsync:function(e,t){o.changed?e(u):y(!0,e,t)},set attr(e){o.attr=e},get attr(){return o.attr},set header(e){o.loadFromBinary(e)},get header(){return o},packCentralHeader:function(){o.flags_efs=this.efs,o.extraLength=d.length;var e=o.centralHeaderToBinary(),t=n.Constants.CENHDR;return s.copy(e,t),t+=s.length,d.copy(e,t),t+=o.extraLength,c.copy(e,t),e},packLocalHeader:function(){let e=0;o.flags_efs=this.efs,o.extraLocalLength=f.length;let t=o.localHeaderToBinary(),n=Buffer.alloc(t.length+s.length+o.extraLocalLength);return t.copy(n,e),e+=t.length,s.copy(n,e),e+=s.length,f.copy(n,e),e+=f.length,n},toJSON:function(){let e=function(e){return`<`+(e&&e.length+` bytes buffer`||`null`)+`>`};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:o.toJSON(),compressedData:e(t),data:e(u)}},toString:function(){return JSON.stringify(this.toJSON(),null,` `)}}}})),bg=e.t(((e,t)=>{let n=yg(),r=mg(),i=dg();t.exports=function(e,t){var a=[],o={},s=Buffer.alloc(0),c=new r.MainHeader,l=!1;let u=new Set,d=t,{noSort:f,decoder:p}=d;e?g(d.readEntries):l=!0;function m(){let e=new Set;for(let t of Object.keys(o)){let n=t.split(`/`);if(n.pop(),n.length)for(let t=0;t<n.length;t++){let r=n.slice(0,t+1).join(`/`)+`/`;e.add(r)}}for(let t of e)if(!(t in o)){let e=new n(d);e.entryName=t,e.attr=16,e.temporary=!0,a.push(e),o[e.entryName]=e,u.add(e)}}function h(){if(l=!0,o={},c.diskEntries>(e.length-c.offset)/i.Constants.CENHDR)throw i.Errors.DISK_ENTRY_TOO_LARGE();a=Array(c.diskEntries);for(var t=c.offset,r=0;r<a.length;r++){var s=t,f=new n(d,e);f.header=e.slice(s,s+=i.Constants.CENHDR),f.entryName=e.slice(s,s+=f.header.fileNameLength),f.header.extraLength&&(f.extra=e.slice(s,s+=f.header.extraLength)),f.header.commentLength&&(f.comment=e.slice(s,s+f.header.commentLength)),t+=f.header.centralHeaderSize,a[r]=f,o[f.entryName]=f}u.clear(),m()}function g(t){var n=e.length-i.Constants.ENDHDR,r=Math.max(0,n-65535),a=r,o=e.length,l=-1,u=0;for(typeof d.trailingSpace==`boolean`&&d.trailingSpace&&(r=0);n>=a;n--)if(e[n]===80){if(e.readUInt32LE(n)===i.Constants.ENDSIG){l=n,u=n,o=n+i.Constants.ENDHDR,a=n-i.Constants.END64HDR;continue}if(e.readUInt32LE(n)===i.Constants.END64SIG){a=r;continue}if(e.readUInt32LE(n)===i.Constants.ZIP64SIG){l=n,o=n+i.readBigUInt64LE(e,n+i.Constants.ZIP64SIZE)+i.Constants.ZIP64LEAD;break}}if(l==-1)throw i.Errors.INVALID_FORMAT();c.loadFromBinary(e.slice(l,o)),c.commentLength&&(s=e.slice(u+i.Constants.ENDHDR)),t&&h()}function v(){a.length>1&&!f&&a.sort((e,t)=>e.entryName.toLowerCase().localeCompare(t.entryName.toLowerCase()))}return{get entries(){return l||h(),a.filter(e=>!u.has(e))},get comment(){return p.decode(s)},set comment(e){s=i.toBuffer(e,p.encode),c.commentLength=s.length},getEntryCount:function(){return l?a.length:c.diskEntries},forEach:function(e){this.entries.forEach(e)},getEntry:function(e){return l||h(),o[e]||null},setEntry:function(e){l||h(),a.push(e),o[e.entryName]=e,c.totalEntries=a.length},deleteFile:function(e,t=!0){l||h();let n=o[e];this.getEntryChildren(n,t).map(e=>e.entryName).forEach(this.deleteEntry)},deleteEntry:function(e){l||h();let t=o[e],n=a.indexOf(t);n>=0&&(a.splice(n,1),delete o[e],c.totalEntries=a.length)},getEntryChildren:function(e,t=!0){if(l||h(),typeof e==`object`)if(e.isDirectory&&t){let t=[],n=e.entryName;for(let e of a)e.entryName.startsWith(n)&&t.push(e);return t}else return[e];return[]},getChildCount:function(e){if(e&&e.isDirectory){let t=this.getEntryChildren(e);return t.includes(e)?t.length-1:t.length}return 0},compressToBuffer:function(){l||h(),v();let t=[],n=[],r=0,a=0;c.size=0,c.offset=0;let o=0;for(let e of this.entries){let i=e.getCompressedData();e.header.offset=a;let s=e.packLocalHeader(),l=s.length+i.length;a+=l,t.push(s),t.push(i);let u=e.packCentralHeader();n.push(u),c.size+=u.length,r+=l+u.length,o++}r+=c.mainHeaderSize,c.offset=a,c.totalEntries=o,a=0;let u=Buffer.alloc(r);for(let e of t)e.copy(u,a),a+=e.length;for(let e of n)e.copy(u,a),a+=e.length;let d=c.toBinary();return s&&s.copy(d,i.Constants.ENDHDR),d.copy(u,a),e=u,l=!1,u},toAsyncBuffer:function(t,n,r,a){try{l||h(),v();let n=[],o=[],u=0,d=0,f=0;c.size=0,c.offset=0;let p=function(m){if(m.length>0){let e=m.shift(),t=e.entryName+e.extra.toString();r&&r(t),e.getCompressedDataAsync(function(r){a&&a(t),e.header.offset=d;let i=e.packLocalHeader(),s=i.length+r.length;d+=s,n.push(i),n.push(r);let l=e.packCentralHeader();o.push(l),c.size+=l.length,u+=s+l.length,f++,p(m)})}else{u+=c.mainHeaderSize,c.offset=d,c.totalEntries=f,d=0;let r=Buffer.alloc(u);n.forEach(function(e){e.copy(r,d),d+=e.length}),o.forEach(function(e){e.copy(r,d),d+=e.length});let a=c.toBinary();s&&s.copy(a,i.Constants.ENDHDR),a.copy(r,d),e=r,l=!1,t(r)}};p(Array.from(this.entries))}catch(e){n(e)}}}}})),xg=e.t(((e,t)=>{let n=dg(),r=require(`path`),i=yg(),a=bg(),o=(...e)=>n.findLast(e,e=>typeof e==`boolean`),s=(...e)=>n.findLast(e,e=>typeof e==`string`),c=(...e)=>n.findLast(e,e=>typeof e==`function`),l={noSort:!1,readEntries:!1,method:n.Constants.NONE,fs:null};t.exports=function(e,t){let u=null,d=Object.assign(Object.create(null),l);e&&typeof e==`object`&&(e instanceof Uint8Array||(Object.assign(d,e),e=d.input?d.input:void 0,d.input&&delete d.input),Buffer.isBuffer(e)&&(u=e,d.method=n.Constants.BUFFER,e=void 0)),Object.assign(d,t);let f=new n(d);if((typeof d.decoder!=`object`||typeof d.decoder.encode!=`function`||typeof d.decoder.decode!=`function`)&&(d.decoder=n.decoder),e&&typeof e==`string`)if(f.fs.existsSync(e))d.method=n.Constants.FILE,d.filename=e,u=f.fs.readFileSync(e);else throw n.Errors.INVALID_FILENAME();let p=new a(u,d),{canonical:m,sanitize:h,zipnamefix:g}=n;function v(e){if(e&&p){var t;if(typeof e==`string`&&(t=p.getEntry(r.posix.normalize(e))),typeof e==`object`&&e.entryName!==void 0&&e.header!==void 0&&(t=p.getEntry(e.entryName)),t)return t}return null}function y(e){let{join:t,normalize:n,sep:i}=r.posix;return t(r.isAbsolute(e)?`/`:`.`,n(i+e.split(`\\`).join(i)+i))}function b(e){return e instanceof RegExp?(function(e){return function(t){return e.test(t)}})(e):typeof e==`function`?e:()=>!0}let x=(e,t)=>{let n=t.slice(-1);return n=n===f.sep?f.sep:``,r.relative(e,t)+n};return{readFile:function(e,t){var n=v(e);return n&&n.getData(t)||null},childCount:function(e){let t=v(e);if(t)return p.getChildCount(t)},readFileAsync:function(e,t){var n=v(e);n?n.getDataAsync(t):t(null,`getEntry failed for:`+e)},readAsText:function(e,t){var n=v(e);if(n){var r=n.getData();if(r&&r.length)return r.toString(t||`utf8`)}return``},readAsTextAsync:function(e,t,n){var r=v(e);r?r.getDataAsync(function(e,r){if(r){t(e,r);return}e&&e.length?t(e.toString(n||`utf8`)):t(``)}):t(``)},deleteFile:function(e,t=!0){var n=v(e);n&&p.deleteFile(n.entryName,t)},deleteEntry:function(e){var t=v(e);t&&p.deleteEntry(t.entryName)},addZipComment:function(e){p.comment=e},getZipComment:function(){return p.comment||``},addZipEntryComment:function(e,t){var n=v(e);n&&(n.comment=t)},getZipEntryComment:function(e){var t=v(e);return t&&t.comment||``},updateFile:function(e,t){var n=v(e);n&&n.setData(t)},addLocalFile:function(e,t,i,a){if(f.fs.existsSync(e)){t=t?y(t):``;let n=r.win32.basename(r.win32.normalize(e));t+=i||n;let o=f.fs.statSync(e),s=o.isFile()?f.fs.readFileSync(e):Buffer.alloc(0);o.isDirectory()&&(t+=f.sep),this.addFile(t,s,a,o)}else throw n.Errors.FILE_NOT_FOUND(e)},addLocalFileAsync:function(e,t){e=typeof e==`object`?e:{localPath:e};let n=r.resolve(e.localPath),{comment:i}=e,{zipPath:a,zipName:o}=e,s=this;f.fs.stat(n,function(e,c){if(e)return t(e,!1);a=a?y(a):``;let l=r.win32.basename(r.win32.normalize(n));if(a+=o||l,c.isFile())f.fs.readFile(n,function(e,n){return e?t(e,!1):(s.addFile(a,n,i,c),setImmediate(t,void 0,!0))});else if(c.isDirectory())return a+=f.sep,s.addFile(a,Buffer.alloc(0),i,c),setImmediate(t,void 0,!0)})},addLocalFolder:function(e,t,i){if(i=b(i),t=t?y(t):``,e=r.normalize(e),f.fs.existsSync(e)){let n=f.findFiles(e),a=this;if(n.length)for(let o of n){let n=r.join(t,x(e,o));i(n)&&a.addLocalFile(o,r.dirname(n))}}else throw n.Errors.FILE_NOT_FOUND(e)},addLocalFolderAsync:function(e,t,i,a){a=b(a),i=i?y(i):``,e=r.normalize(e);var o=this;f.fs.open(e,`r`,function(r){if(r&&r.code===`ENOENT`)t(void 0,n.Errors.FILE_NOT_FOUND(e));else if(r)t(void 0,r);else{var s=f.findFiles(e),c=-1,l=function(){if(c+=1,c<s.length){var n=s[c],r=x(e,n).split(`\\`).join(`/`);r=r.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/[^\x20-\x7E]/g,``),a(r)?f.fs.stat(n,function(e,a){e&&t(void 0,e),a.isFile()?f.fs.readFile(n,function(e,n){e?t(void 0,e):(o.addFile(i+r,n,``,a),l())}):(o.addFile(i+r+`/`,Buffer.alloc(0),``,a),l())}):process.nextTick(()=>{l()})}else t(!0,void 0)};l()}})},addLocalFolderAsync2:function(e,t){let i=this;e=typeof e==`object`?e:{localPath:e},localPath=r.resolve(y(e.localPath));let{zipPath:a,filter:o,namefix:s}=e;o instanceof RegExp?o=(function(e){return function(t){return e.test(t)}})(o):typeof o!=`function`&&(o=function(){return!0}),a=a?y(a):``,s==`latin1`&&(s=e=>e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/[^\x20-\x7E]/g,``)),typeof s!=`function`&&(s=e=>e);let c=e=>r.join(a,s(x(localPath,e))),l=e=>r.win32.basename(r.win32.normalize(s(e)));f.fs.open(localPath,`r`,function(e){e&&e.code===`ENOENT`?t(void 0,n.Errors.FILE_NOT_FOUND(localPath)):e?t(void 0,e):f.findFilesAsync(localPath,function(e,n){if(e)return t(e);n=n.filter(e=>o(c(e))),n.length||t(void 0,!1),setImmediate(n.reverse().reduce(function(e,t){return function(n,a){if(n||a===!1)return setImmediate(e,n,!1);i.addLocalFileAsync({localPath:t,zipPath:r.dirname(c(t)),zipName:l(t)},e)}},t))})})},addLocalFolderPromise:function(e,t){return new Promise((n,r)=>{this.addLocalFolderAsync2(Object.assign({localPath:e},t),(e,t)=>{e&&r(e),t&&n(this)})})},addFile:function(e,t,n,r){e=g(e);let a=v(e),o=a!=null;o||(a=new i(d),a.entryName=e),a.comment=n||``;let s=typeof r==`object`&&r instanceof f.fs.Stats;s&&(a.header.time=r.mtime);var c=a.isDirectory?16:0;let l=a.isDirectory?16384:32768;return s?l|=4095&r.mode:typeof r==`number`?l|=4095&r:l|=a.isDirectory?493:420,c=(c|l<<16)>>>0,a.attr=c,a.setData(t),o||p.setEntry(a),a},getEntries:function(e){return p.password=e,p?p.entries:[]},getEntry:function(e){return v(e)},getEntryCount:function(){return p.getEntryCount()},forEach:function(e){return p.forEach(e)},extractEntryTo:function(e,t,i,a,c,l){a=o(!1,a),c=o(!1,c),i=o(!0,i),l=s(c,l);var u=v(e);if(!u)throw n.Errors.NO_ENTRY();var d=m(u.entryName),g=h(t,l&&!u.isDirectory?l:i?d:r.basename(d));if(u.isDirectory)return p.getEntryChildren(u).forEach(function(e){if(e.isDirectory)return;var o=e.getData();if(!o)throw n.Errors.CANT_EXTRACT_FILE();var s=m(e.entryName),l=h(t,i?s:r.basename(s));let u=c?e.header.fileAttr:void 0;f.writeFileTo(l,o,a,u)}),!0;var y=u.getData(p.password);if(!y)throw n.Errors.CANT_EXTRACT_FILE();if(f.fs.existsSync(g)&&!a)throw n.Errors.CANT_OVERRIDE();let b=c?e.header.fileAttr:void 0;return f.writeFileTo(g,y,a,b),!0},test:function(e){if(!p)return!1;for(var t in p.entries)try{if(t.isDirectory)continue;if(!p.entries[t].getData(e))return!1}catch{return!1}return!0},extractAllTo:function(e,t,r,i){if(r=o(!1,r),i=s(r,i),t=o(!1,t),!p)throw n.Errors.NO_ZIP();p.entries.forEach(function(a){var o=h(e,m(a.entryName));if(a.isDirectory){f.makeDir(o);return}var s=a.getData(i);if(!s)throw n.Errors.CANT_EXTRACT_FILE();let c=r?a.header.fileAttr:void 0;f.writeFileTo(o,s,t,c);try{f.fs.utimesSync(o,a.header.time,a.header.time)}catch{throw n.Errors.CANT_EXTRACT_FILE()}})},extractAllToAsync:function(e,t,i,a){if(a=c(t,i,a),i=o(!1,i),t=o(!1,t),!a)return new Promise((n,r)=>{this.extractAllToAsync(e,t,i,function(e){e?r(e):n(this)})});if(!p){a(n.Errors.NO_ZIP());return}e=r.resolve(e);let s=t=>h(e,r.normalize(m(t.entryName))),l=(e,t)=>Error(e+`: "`+t+`"`),u=[],d=[];p.entries.forEach(e=>{e.isDirectory?u.push(e):d.push(e)});for(let e of u){let t=s(e),n=i?e.header.fileAttr:void 0;try{f.makeDir(t),n&&f.fs.chmodSync(t,n),f.fs.utimesSync(t,e.header.time,e.header.time)}catch{a(l(`Unable to create folder`,t))}}d.reverse().reduce(function(a,o){return function(s){if(s)a(s);else{let s=r.normalize(m(o.entryName)),c=h(e,s);o.getDataAsync(function(e,r){if(r)a(r);else if(!e)a(n.Errors.CANT_EXTRACT_FILE());else{let n=i?o.header.fileAttr:void 0;f.writeFileToAsync(c,e,t,n,function(e){e||a(l(`Unable to write file`,c)),f.fs.utimes(c,o.header.time,o.header.time,function(e){e?a(l(`Unable to set times`,c)):a()})})}})}}},a)()},writeZip:function(e,t){if(arguments.length===1&&typeof e==`function`&&(t=e,e=``),!e&&d.filename&&(e=d.filename),e){var n=p.compressToBuffer();if(n){var r=f.writeFileTo(e,n,!0);typeof t==`function`&&t(r?null:Error(`failed`),``)}}},writeZipPromise:function(e,t){let{overwrite:n,perm:r}=Object.assign({overwrite:!0},t);return new Promise((t,i)=>{!e&&d.filename&&(e=d.filename),e||i(`ADM-ZIP: ZIP File Name Missing`),this.toBufferPromise().then(a=>{f.writeFileToAsync(e,a,n,r,e=>e?t(e):i(`ADM-ZIP: Wasn't able to write zip file`))},i)})},toBufferPromise:function(){return new Promise((e,t)=>{p.toAsyncBuffer(e,t)})},toBuffer:function(e,t,n,r){return typeof e==`function`?(p.toAsyncBuffer(e,t,n,r),null):p.compressToBuffer()}}}})),Sg=e.a(xg());async function Cg(e){if(!e.browsers?.includes(`android`))return;let t=new Sg.default(h.default.join(e.sourceDir,`storybook.apk`)).getEntries(),n=new Set;for(let e of t){let t=e.entryName.match(/^lib\/([^/]+)\//);t&&n.add(t[1])}if(n.size>0&&!n.has(`x86_64`))throw Error(Yh().output)}const wg=(e,t)=>{if(!t)return``;if(t.includes(`npm run `))return(0,K.dedent)(G.default`
It appears you're using {bold "npm run"} which is known to cause this problem.
You can fix this by invoking {bold build-storybook} from your {bold "${e}"} script directly.
`);let n=/(^| )build-storybook( |;|&&)/.test(t),r=/build-storybook.*(&&|;)/.test(t);return n&&r?(0,K.dedent)(G.default`
This happens if {bold build-storybook} is not the last command in the script (e.g. you're using {bold &&} or {bold ;} to chain commands).
You should use an npm {bold post*} script instead of command chaining.
`):``};var Tg=({sourceDir:e,options:t,packageJson:r},i)=>{let{buildScriptName:a}=t;return(0,K.dedent)(G.default`
${n.s} {bold Unexpected build directory}
The CLI tried to build your Storybook at {bold ${e}}
but instead it was built at {bold ${i}}
Make sure your {bold "${a}"} script forwards the {bold --output-dir (-o)} flag to the {bold build-storybook} CLI.
${wg(a,r.scripts&&a&&r.scripts[a])}
`).trim()};function Eg(e,t,n,r=`.`){if(r===`.chromatic`)return[];try{return(0,m.readdirSync)(h.default.join(t,r)).flatMap(i=>{let a=h.default.join(r,i),o=(0,m.statSync)(h.default.join(t,a));return o.isDirectory()?Eg(e,t,n,a):[{pathname:a,contentLength:o.size}]})}catch(r){throw e.log.debug(r),Error(Jh({sourceDir:t,buildLogFile:n,options:e.options},r).output)}}function Dg(e){let t=(0,b.stripVTControlCharacters)(e).split(`
`);for(let e=t.length-1;e>=0;--e){let n=t[e].lastIndexOf(`Output directory:`);if(n===-1)continue;let r=t[e].slice(n+17).trim();if(r)return r;for(let n=e+1;n<t.length;n+=1){let e=t[n].replace(/^[\s\u2500-\u257F]+/u,``).trim();if(e)return e}}}function Og(e,t,n){let r=Eg(e,t,n).map(e=>({...e,knownAs:i.r(e.pathname)})),a=r.map(({contentLength:e})=>e).reduce((e,t)=>e+t,0),o=[],s=``;for(let{knownAs:e}of r)e.endsWith(`preview-stats.json`)?s=h.default.join(t,e):e.endsWith(`manager-stats.json`)||o.push(e);return{lengths:r,paths:o,statsPath:s,total:a}}const kg=({paths:e,total:t})=>{let n=[`iframe.html`,`index.html`].filter(t=>!e.includes(t));return{valid:t>0&&n.length===0,missingFiles:n}},Ag=({paths:e,total:t},n=[])=>{let r=n.includes(`android`),i=n.includes(`ios`),a=[];return!r&&!i?{valid:!1,missingFiles:a}:(e.includes(`manifest.json`)||a.push(`manifest.json`),r&&!e.includes(`storybook.apk`)&&a.push(`storybook.apk`),i&&!e.some(e=>e.startsWith(`storybook.app/`))&&a.push(`storybook.app`),{valid:t>0&&a.length===0,missingFiles:a})};async function jg(e,t){let n=t.isReactNativeApp?Ag:kg,{browsers:r,buildLogFile:i}=t,{sourceDir:a}=t,o=Og(e,a,i);if(!n(o,r).valid&&i)try{let t=Dg((0,m.readFileSync)(i,`utf8`));t&&t!==a&&(e.log.warn(Tg({sourceDir:a,options:e.options,packageJson:e.packageJson},t)),a=t,o=Og(e,a,i))}catch(t){e.log.debug(t)}let s=n(o,r);if(!s.valid)throw Error(t.isReactNativeApp?Xh({sourceDir:a},s.missingFiles).output:Jh({sourceDir:a,buildLogFile:i,options:e.options}).output);return{fileInfo:o,sourceDir:a}}async function Mg(e,t){let{fileInfo:n,sourceDir:r}=await jg(e,{isReactNativeApp:t.isReactNativeApp,sourceDir:t.sourceDir,buildLogFile:t.buildLogFile,browsers:t.browsers});await Cg({sourceDir:r,browsers:t.browsers}),t.turboSnapContext.fileInfo=n;let{onlyStoryFiles:i}=await ag(e,{turboSnapContext:t.turboSnapContext}),{hashes:a}=await ng(e,{fileInfo:n,sourceDir:r});return a&&(n.hashes=a),{kind:`continue`,output:{fileInfo:n,sourceDir:r,onlyStoryFiles:i}}}const Ng=e=>({isReactNativeApp:!!e.isReactNativeApp,sourceDir:e.sourceDir,buildLogFile:e.buildLogFile,browsers:e.announcedBuild?.browsers,turboSnapContext:e}),Pg=(e,t)=>{e.fileInfo=t.fileInfo,e.sourceDir=t.sourceDir,t.onlyStoryFiles&&(e.onlyStoryFiles=t.onlyStoryFiles)};async function Fg(e){await Ip(e,{name:`prepare`,title:Kh(e).title,transitions:{pending:qh,success:tg,failure:(e,t)=>Bp(e.isReactNativeApp?`Prepare your built React Native Storybook`:qh(e).title,t)},extractInput:Ng,run:Mg,applyOutput:Pg},Gp(e,Hp))}async function Ig(){let e=await r.n(r.i,[],{programmatic:!0});if(!e)throw Error(`Unable to determine the package manager install command`);return i.I(e,{timeout:600*1e3})}var Lg=({patchHeadRef:e,patchBaseRef:t})=>(0,K.dedent)(G.default`
${n.i} {bold Failed to retrieve the merge base}
Are you sure the head branch is a descendant (i.e. fork) of the base branch?
Try running this command yourself: {bold git merge-base ${e} ${t}}
${n.a} Read more at ${i.J(`https://www.chromatic.com/docs/branching-and-baselines#how-is-merge-base-calculated`)}
`),Rg=()=>(0,K.dedent)(G.default`
${n.i} {bold Workspace not clean}
The git working directory must be clean before running a patch build.
Use {bold git stash --include-untracked --keep-index} to stash changes before you continue.
`),zg=e=>G.default`${n.i} {bold Workspace not up-to-date with remote}\n${e}`;const Bg=()=>({status:`pending`,title:`Restoring your workspace`,output:`Discarding changes and restoring head location`}),Vg=()=>({status:`success`,title:`Restored your workspace`});async function Hg(e){e.log.info(Bg().output),await i.d(e),await i.l(e),await Ig(),await i.d(e),e.log.info(Vg().title)}const Ug=e=>({patchHeadRef:e.options.patchHeadRef,patchBaseRef:e.options.patchBaseRef}),Wg=async(e,n)=>{let{patchHeadRef:r,patchBaseRef:a}=n;if(!await i.N(e))throw e.log.error(Rg()),new t.S(`Working directory is not clean`,{exitCode:t.C.GIT_NOT_CLEAN,userError:!0});if(!await i.P(e))throw e.log.error(zg(await i.O(e))),new t.S(`Workspace not up-to-date with remote`,{exitCode:t.C.GIT_OUT_OF_DATE,userError:!0});e.report({output:`Looking up the git merge base for '${r}' on '${a}'`});let o=await i.p(e,r,a);if(!o)throw e.log.error(Lg(e.options)),new t.S(`Could not find a merge base`,{exitCode:t.C.GIT_NO_MERGE_BASE,userError:!0});e.report({output:`Checking out merge base commit '${o.slice(0,7)}'`}),await i.s(e,o),e.report({output:`Installing dependencies`});try{await Ig()}catch(n){throw e.log.error(n),await Hg(e),new t.S(`Failed to install dependencies`,{exitCode:t.C.NPM_INSTALL_FAILED})}return{kind:`continue`,output:{mergeBase:o}}},Gg=(e,t)=>{e.mergeBase=t.mergeBase},Kg={status:`initial`,title:`Prepare workspace`},qg=()=>({status:`pending`,title:`Preparing your workspace`,output:`Ensuring your git workspace is clean and up-to-date`}),Jg=e=>({status:`success`,title:`Prepared your workspace`,output:`Checked out commit '${e.mergeBase?.slice(0,7)}' on '${e.options.patchBaseRef}'`});async function Yg(e){await Ip(e,{name:`prepareWorkspace`,title:Kg.title,transitions:{pending:qg,success:Jg},extractInput:Ug,run:Wg,applyOutput:Gg},Gp(e,Hp))}var Xg=e.t(((e,t)=>{let n=[`nodebuffer`,`arraybuffer`,`fragments`],r=typeof Blob<`u`;r&&n.push(`blob`),t.exports={BINARY_TYPES:n,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,hasBlob:r,kForOnEventAttribute:Symbol(`kIsForOnEventAttribute`),kListener:Symbol(`kListener`),kStatusCode:Symbol(`status-code`),kWebSocket:Symbol(`websocket`),NOOP:()=>{}}})),Zg=e.t(((e,t)=>{let{EMPTY_BUFFER:n}=Xg(),r=Buffer[Symbol.species];function i(e,t){if(e.length===0)return n;if(e.length===1)return e[0];let i=Buffer.allocUnsafe(t),a=0;for(let t=0;t<e.length;t++){let n=e[t];i.set(n,a),a+=n.length}return a<t?new r(i.buffer,i.byteOffset,a):i}function a(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[a]^t[a&3]}function o(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}function s(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function c(e){if(c.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new r(e):ArrayBuffer.isView(e)?t=new r(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),c.readOnly=!1),t}if(t.exports={concat:i,mask:a,toArrayBuffer:s,toBuffer:c,unmask:o},!process.env.WS_NO_BUFFER_UTIL)try{let e=require(`bufferutil`);t.exports.mask=function(t,n,r,i,o){o<48?a(t,n,r,i,o):e.mask(t,n,r,i,o)},t.exports.unmask=function(t,n){t.length<32?o(t,n):e.unmask(t,n)}}catch{}})),Qg=e.t(((e,t)=>{let n=Symbol(`kDone`),r=Symbol(`kRun`);t.exports=class{constructor(e){this[n]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[n])}}}})),$g=e.t(((e,t)=>{let n=require(`zlib`),r=Zg(),i=Qg(),{kStatusCode:a}=Xg(),o=Buffer[Symbol.species],s=Buffer.from([0,0,255,255]),c=Symbol(`permessage-deflate`),l=Symbol(`total-length`),u=Symbol(`callback`),d=Symbol(`buffers`),f=Symbol(`error`),p;t.exports=class{constructor(e){this._options=e||{},this._threshold=this._options.threshold===void 0?1024:this._options.threshold,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,p||=new i(this._options.concurrencyLimit===void 0?10:this._options.concurrencyLimit)}static get extensionName(){return`permessage-deflate`}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits??(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&=(this._inflate.close(),null),this._deflate){let e=this._deflate[u];this._deflate.close(),this._deflate=null,e&&e(Error(`The deflate stream was closed while data was being processed`))}}acceptAsServer(e){let t=this._options,n=e.find(e=>!(t.serverNoContextTakeover===!1&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==`number`&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==`number`&&!e.client_max_window_bits));if(!n)throw Error(`None of the extension offers can be accepted`);return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof t.serverMaxWindowBits==`number`&&(n.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits==`number`?n.client_max_window_bits=t.clientMaxWindowBits:(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error(`Unexpected parameter "client_no_context_takeover"`);if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits==`number`&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==`number`&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error(`Unexpected or invalid parameter "client_max_window_bits"`);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(n=n[0],t===`client_max_window_bits`){if(n!==!0){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else if(t===`server_max_window_bits`){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(t===`client_no_context_takeover`||t===`server_no_context_takeover`){if(n!==!0)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=n})}),e}decompress(e,t,n){p.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){p.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,i){let a=this._isServer?`client`:`server`;if(!this._inflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:n.Z_DEFAULT_WINDOWBITS;this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[c]=this,this._inflate[l]=0,this._inflate[d]=[],this._inflate.on(`error`,g),this._inflate.on(`data`,h)}this._inflate[u]=i,this._inflate.write(e),t&&this._inflate.write(s),this._inflate.flush(()=>{let e=this._inflate[f];if(e){this._inflate.close(),this._inflate=null,i(e);return}let n=r.concat(this._inflate[d],this._inflate[l]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[l]=0,this._inflate[d]=[],t&&this.params[`${a}_no_context_takeover`]&&this._inflate.reset()),i(null,n)})}_compress(e,t,i){let a=this._isServer?`server`:`client`;if(!this._deflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:n.Z_DEFAULT_WINDOWBITS;this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[l]=0,this._deflate[d]=[],this._deflate.on(`data`,m)}this._deflate[u]=i,this._deflate.write(e),this._deflate.flush(n.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=r.concat(this._deflate[d],this._deflate[l]);t&&(e=new o(e.buffer,e.byteOffset,e.length-4)),this._deflate[u]=null,this._deflate[l]=0,this._deflate[d]=[],t&&this.params[`${a}_no_context_takeover`]&&this._deflate.reset(),i(null,e)})}};function m(e){this[d].push(e),this[l]+=e.length}function h(e){if(this[l]+=e.length,this[c]._maxPayload<1||this[l]<=this[c]._maxPayload){this[d].push(e);return}this[f]=RangeError(`Max payload size exceeded`),this[f].code=`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`,this[f][a]=1009,this.removeListener(`data`,h),this.reset()}function g(e){if(this[c]._inflate=null,this[f]){this[u](this[f]);return}e[a]=1007,this[u](e)}})),e_=e.t(((e,t)=>{let{isUtf8:n}=require(`buffer`),{hasBlob:r}=Xg(),i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function a(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function o(e){let t=e.length,n=0;for(;n<t;)if(!(e[n]&128))n++;else if((e[n]&224)==192){if(n+1===t||(e[n+1]&192)!=128||(e[n]&254)==192)return!1;n+=2}else if((e[n]&240)==224){if(n+2>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||e[n]===224&&(e[n+1]&224)==128||e[n]===237&&(e[n+1]&224)==160)return!1;n+=3}else if((e[n]&248)==240){if(n+3>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||(e[n+3]&192)!=128||e[n]===240&&(e[n+1]&240)==128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}function s(e){return r&&typeof e==`object`&&typeof e.arrayBuffer==`function`&&typeof e.type==`string`&&typeof e.stream==`function`&&(e[Symbol.toStringTag]===`Blob`||e[Symbol.toStringTag]===`File`)}if(t.exports={isBlob:s,isValidStatusCode:a,isValidUTF8:o,tokenChars:i},n)t.exports.isValidUTF8=function(e){return e.length<24?o(e):n(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=require(`utf-8-validate`);t.exports.isValidUTF8=function(t){return t.length<32?o(t):e(t)}}catch{}})),t_=e.t(((e,t)=>{let{Writable:n}=require(`stream`),r=$g(),{BINARY_TYPES:i,EMPTY_BUFFER:a,kStatusCode:o,kWebSocket:s}=Xg(),{concat:c,toArrayBuffer:l,unmask:u}=Zg(),{isValidStatusCode:d,isValidUTF8:f}=e_(),p=Buffer[Symbol.species];t.exports=class extends n{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents===void 0?!0:e.allowSynchronousEvents,this._binaryType=e.binaryType||i[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[s]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(this._opcode===8&&this._state==0)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let t=this._buffers[0];return this._buffers[0]=new p(t.buffer,t.byteOffset+e,t.length-e),new p(t.buffer,t.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new p(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if(t[0]&48){e(this.createError(RangeError,`RSV2 and RSV3 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_2_3`));return}let n=(t[0]&64)==64;if(n&&!this._extensions[r.extensionName]){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._fin=(t[0]&128)==128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(!this._fragmented){e(this.createError(RangeError,`invalid opcode 0`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){e(this.createError(RangeError,`FIN must be set`,!0,1002,`WS_ERR_EXPECTED_FIN`));return}if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,`WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH`));return}}else{e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)==128,this._isServer){if(!this._masked){e(this.createError(RangeError,`MASK must be set`,!0,1002,`WS_ERR_EXPECTED_MASK`));return}}else if(this._masked){e(this.createError(RangeError,`MASK must be clear`,!0,1002,`WS_ERR_UNEXPECTED_MASK`));return}this._payloadLength===126?this._state=1:this._payloadLength===127?this._state=2:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);if(n>2**21-1){e(this.createError(RangeError,`Unsupported WebSocket frame: payload length > 2^53 - 1`,!1,1009,`WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH`));return}this._payloadLength=n*2**32+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._masked?this._state=3:this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(e){let t=a;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&u(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=5,this.decompress(t,e);return}t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}decompress(e,t){this._extensions[r.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){t(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._fragments.push(n)}this.dataMessage(t),this._state===0&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=0;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let r;r=this._binaryType===`nodebuffer`?c(n,t):this._binaryType===`arraybuffer`?l(c(n,t)):this._binaryType===`blob`?new Blob(n):n,this._allowSynchronousEvents?(this.emit(`message`,r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!0),this._state=0,this.startLoop(e)}))}else{let r=c(n,t);if(!this._skipUTF8Validation&&!f(r)){e(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._state===5||this._allowSynchronousEvents?(this.emit(`message`,r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit(`conclude`,1005,a),this.end();else{let n=e.readUInt16BE(0);if(!d(n)){t(this.createError(RangeError,`invalid status code ${n}`,!0,1002,`WS_ERR_INVALID_CLOSE_CODE`));return}let r=new p(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!f(r)){t(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._loop=!1,this.emit(`conclude`,n,r),this.end()}this._state=0;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0,this.startLoop(t)}))}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=i,a[o]=r,a}}})),n_=e.t(((e,t)=>{let{Duplex:n}=require(`stream`),{randomFillSync:r}=require(`crypto`),i=$g(),{EMPTY_BUFFER:a,kWebSocket:o,NOOP:s}=Xg(),{isBlob:c,isValidStatusCode:l}=e_(),{mask:u,toBuffer:d}=Zg(),f=Symbol(`kByteLength`),p=Buffer.alloc(4),m=8*1024,h,g=m;t.exports=class e{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=s,this[o]=void 0}static frame(e,t){let n,i=!1,a=2,o=!1;t.mask&&(n=t.maskBuffer||p,t.generateMask?t.generateMask(n):(g===m&&(h===void 0&&(h=Buffer.alloc(m)),r(h,0,m),g=0),n[0]=h[g++],n[1]=h[g++],n[2]=h[g++],n[3]=h[g++]),o=(n[0]|n[1]|n[2]|n[3])===0,a=6);let s;typeof e==`string`?(!t.mask||o)&&t[f]!==void 0?s=t[f]:(e=Buffer.from(e),s=e.length):(s=e.length,i=t.mask&&t.readOnly&&!o);let c=s;s>=65536?(a+=8,c=127):s>125&&(a+=2,c=126);let l=Buffer.allocUnsafe(i?s+a:a);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=c,c===126?l.writeUInt16BE(s,2):c===127&&(l[2]=l[3]=0,l.writeUIntBE(s,4,6)),!t.mask||(l[1]|=128,l[a-4]=n[0],l[a-3]=n[1],l[a-2]=n[2],l[a-1]=n[3],o)?[l,e]:i?(u(e,n,l,a,s),[l]):(u(e,n,e,0,s),[l,e])}close(t,n,r,i){let o;if(t===void 0)o=a;else if(typeof t!=`number`||!l(t))throw TypeError(`First argument must be a valid error code number`);else if(n===void 0||!n.length)o=Buffer.allocUnsafe(2),o.writeUInt16BE(t,0);else{let e=Buffer.byteLength(n);if(e>123)throw RangeError(`The message must not be greater than 123 bytes`);o=Buffer.allocUnsafe(2+e),o.writeUInt16BE(t,0),typeof n==`string`?o.write(n,2):o.set(n,2)}let s={[f]:o.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state===0?this.sendFrame(e.frame(o,s),i):this.enqueue([this.dispatch,o,!1,s,i])}ping(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):c(t)?(i=t.size,a=!1):(t=d(t),i=t.length,a=d.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[f]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};c(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}pong(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):c(t)?(i=t.size,a=!1):(t=d(t),i=t.length,a=d.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[f]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};c(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}send(e,t,n){let r=this._extensions[i.extensionName],a=t.binary?2:1,o=t.compress,s,l;typeof e==`string`?(s=Buffer.byteLength(e),l=!1):c(e)?(s=e.size,l=!1):(e=d(e),s=e.length,l=d.readOnly),this._firstFragment?(this._firstFragment=!1,o&&r&&r.params[r._isServer?`server_no_context_takeover`:`client_no_context_takeover`]&&(o=s>=r._threshold),this._compress=o):(o=!1,a=0),t.fin&&(this._firstFragment=!0);let u={[f]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:l,rsv1:o};c(e)?this._state===0?this.getBlobData(e,this._compress,u,n):this.enqueue([this.getBlobData,e,this._compress,u,n]):this._state===0?this.dispatch(e,this._compress,u,n):this.enqueue([this.dispatch,e,this._compress,u,n])}getBlobData(t,n,r,i){this._bufferedBytes+=r[f],this._state=2,t.arrayBuffer().then(t=>{if(this._socket.destroyed){let e=Error(`The socket was closed while the blob was being read`);process.nextTick(v,this,e,i);return}this._bufferedBytes-=r[f];let a=d(t);n?this.dispatch(a,n,r,i):(this._state=0,this.sendFrame(e.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(y,this,e,i)})}dispatch(t,n,r,a){if(!n){this.sendFrame(e.frame(t,r),a);return}let o=this._extensions[i.extensionName];this._bufferedBytes+=r[f],this._state=1,o.compress(t,r.fin,(t,n)=>{if(this._socket.destroyed){let e=Error(`The socket was closed while data was being compressed`);v(this,e,a);return}this._bufferedBytes-=r[f],this._state=0,r.readOnly=!1,this.sendFrame(e.frame(n,r),a),this.dequeue()})}dequeue(){for(;this._state===0&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][f],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][f],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};function v(e,t,n){typeof n==`function`&&n(t);for(let n=0;n<e._queue.length;n++){let r=e._queue[n],i=r[r.length-1];typeof i==`function`&&i(t)}}function y(e,t,n){v(e,t,n),e.onerror(t)}})),r_=e.t(((e,t)=>{let{kForOnEventAttribute:n,kListener:r}=Xg(),i=Symbol(`kCode`),a=Symbol(`kData`),o=Symbol(`kError`),s=Symbol(`kMessage`),c=Symbol(`kReason`),l=Symbol(`kTarget`),u=Symbol(`kType`),d=Symbol(`kWasClean`);var f=class{constructor(e){this[l]=null,this[u]=e}get target(){return this[l]}get type(){return this[u]}};Object.defineProperty(f.prototype,`target`,{enumerable:!0}),Object.defineProperty(f.prototype,`type`,{enumerable:!0});var p=class extends f{constructor(e,t={}){super(e),this[i]=t.code===void 0?0:t.code,this[c]=t.reason===void 0?``:t.reason,this[d]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[i]}get reason(){return this[c]}get wasClean(){return this[d]}};Object.defineProperty(p.prototype,`code`,{enumerable:!0}),Object.defineProperty(p.prototype,`reason`,{enumerable:!0}),Object.defineProperty(p.prototype,`wasClean`,{enumerable:!0});var m=class extends f{constructor(e,t={}){super(e),this[o]=t.error===void 0?null:t.error,this[s]=t.message===void 0?``:t.message}get error(){return this[o]}get message(){return this[s]}};Object.defineProperty(m.prototype,`error`,{enumerable:!0}),Object.defineProperty(m.prototype,`message`,{enumerable:!0});var h=class extends f{constructor(e,t={}){super(e),this[a]=t.data===void 0?null:t.data}get data(){return this[a]}};Object.defineProperty(h.prototype,`data`,{enumerable:!0}),t.exports={CloseEvent:p,ErrorEvent:m,Event:f,EventTarget:{addEventListener(e,t,i={}){for(let a of this.listeners(e))if(!i[n]&&a[r]===t&&!a[n])return;let a;if(e===`message`)a=function(e,n){let r=new h(`message`,{data:n?e:e.toString()});r[l]=this,g(t,this,r)};else if(e===`close`)a=function(e,n){let r=new p(`close`,{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[l]=this,g(t,this,r)};else if(e===`error`)a=function(e){let n=new m(`error`,{error:e,message:e.message});n[l]=this,g(t,this,n)};else if(e===`open`)a=function(){let e=new f(`open`);e[l]=this,g(t,this,e)};else return;a[n]=!!i[n],a[r]=t,i.once?this.once(e,a):this.on(e,a)},removeEventListener(e,t){for(let i of this.listeners(e))if(i[r]===t&&!i[n]){this.removeListener(e,i);break}}},MessageEvent:h};function g(e,t,n){typeof e==`object`&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}})),i_=e.t(((e,t)=>{let{tokenChars:n}=e_();function r(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function i(e){let t=Object.create(null),i=Object.create(null),a=!1,o=!1,s=!1,c,l,u=-1,d=-1,f=-1,p=0;for(;p<e.length;p++)if(d=e.charCodeAt(p),c===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(p!==0&&(d===32||d===9))f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);d===44?(r(t,n,i),i=Object.create(null)):c=n,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);else if(l===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(d===32||d===9)f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p),r(i,e.slice(u,f),!0),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),u=f=-1}else if(d===61&&u!==-1&&f===-1)l=e.slice(u,p),u=f=-1;else throw SyntaxError(`Unexpected character at index ${p}`);else if(o){if(n[d]!==1)throw SyntaxError(`Unexpected character at index ${p}`);u===-1?u=p:a||=!0,o=!1}else if(s)if(n[d]===1)u===-1&&(u=p);else if(d===34&&u!==-1)s=!1,f=p;else if(d===92)o=!0;else throw SyntaxError(`Unexpected character at index ${p}`);else if(d===34&&e.charCodeAt(p-1)===61)s=!0;else if(f===-1&&n[d]===1)u===-1&&(u=p);else if(u!==-1&&(d===32||d===9))f===-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);a&&=(n=n.replace(/\\/g,``),!1),r(i,l,n),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),l=void 0,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);if(u===-1||s||d===32||d===9)throw SyntaxError(`Unexpected end of input`);f===-1&&(f=p);let m=e.slice(u,f);return c===void 0?r(t,m,i):(l===void 0?r(i,m,!0):a?r(i,l,m.replace(/\\/g,``)):r(i,l,m),r(t,c,i)),t}function a(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>e===!0?t:`${t}=${e}`).join(`; `)})).join(`; `)).join(`, `)}).join(`, `)}t.exports={format:a,parse:i}})),a_=e.t(((e,t)=>{let n=require(`events`),r=require(`https`),i=require(`http`),a=require(`net`),o=require(`tls`),{randomBytes:s,createHash:c}=require(`crypto`),{Duplex:l,Readable:u}=require(`stream`),{URL:d}=require(`url`),f=$g(),p=t_(),m=n_(),{isBlob:h}=e_(),{BINARY_TYPES:g,CLOSE_TIMEOUT:v,EMPTY_BUFFER:y,GUID:b,kForOnEventAttribute:x,kListener:S,kStatusCode:C,kWebSocket:w,NOOP:T}=Xg(),{EventTarget:{addEventListener:E,removeEventListener:D}}=r_(),{format:O,parse:k}=i_(),{toBuffer:A}=Zg(),j=Symbol(`kAborted`),M=[8,13],N=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`],P=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;var F=class e extends n{constructor(t,n,r){super(),this._binaryType=g[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=y,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol=``,this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t===null?(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0):(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,n===void 0?n=[]:Array.isArray(n)||(typeof n==`object`&&n?(r=n,n=[]):n=[n]),I(this,t,n,r))}get binaryType(){return this._binaryType}set binaryType(e){g.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,n,r){let i=new p({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),a=new m(t,this._extensions,r.generateMask);this._receiver=i,this._sender=a,this._socket=t,i[w]=this,a[w]=this,t[w]=this,i.on(`conclude`,V),i.on(`drain`,te),i.on(`error`,ne),i.on(`message`,re),i.on(`ping`,ie),i.on(`pong`,U),a.onerror=oe,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),n.length>0&&t.unshift(n),t.on(`close`,ce),t.on(`data`,le),t.on(`end`,ue),t.on(`error`,de),this._readyState=e.OPEN,this.emit(`open`)}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage);return}this._extensions[f.extensionName]&&this._extensions[f.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage)}close(t,n){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){z(this,this._req,`WebSocket was closed before the connection was established`);return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(t,n,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),se(this)}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause())}ping(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){B(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.ping(t||y,n,r)}pong(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){B(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.pong(t||y,n,r)}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof n==`function`&&(r=n,n={}),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){B(this,t,r);return}let i={binary:typeof t!=`string`,mask:!this._isServer,compress:!0,fin:!0,...n};this._extensions[f.extensionName]||(i.compress=!1),this._sender.send(t||y,i,r)}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){z(this,this._req,`WebSocket was closed before the connection was established`);return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy())}}};Object.defineProperty(F,`CONNECTING`,{enumerable:!0,value:N.indexOf(`CONNECTING`)}),Object.defineProperty(F.prototype,`CONNECTING`,{enumerable:!0,value:N.indexOf(`CONNECTING`)}),Object.defineProperty(F,`OPEN`,{enumerable:!0,value:N.indexOf(`OPEN`)}),Object.defineProperty(F.prototype,`OPEN`,{enumerable:!0,value:N.indexOf(`OPEN`)}),Object.defineProperty(F,`CLOSING`,{enumerable:!0,value:N.indexOf(`CLOSING`)}),Object.defineProperty(F.prototype,`CLOSING`,{enumerable:!0,value:N.indexOf(`CLOSING`)}),Object.defineProperty(F,`CLOSED`,{enumerable:!0,value:N.indexOf(`CLOSED`)}),Object.defineProperty(F.prototype,`CLOSED`,{enumerable:!0,value:N.indexOf(`CLOSED`)}),[`binaryType`,`bufferedAmount`,`extensions`,`isPaused`,`protocol`,`readyState`,`url`].forEach(e=>{Object.defineProperty(F.prototype,e,{enumerable:!0})}),[`open`,`error`,`close`,`message`].forEach(e=>{Object.defineProperty(F.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[x])return t[S];return null},set(t){for(let t of this.listeners(e))if(t[x]){this.removeListener(e,t);break}typeof t==`function`&&this.addEventListener(e,t,{[x]:!0})}})}),F.prototype.addEventListener=E,F.prototype.removeEventListener=D,t.exports=F;function I(e,t,n,a){let o={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:v,protocolVersion:M[1],maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...a,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:`GET`,host:void 0,path:void 0,port:void 0};if(e._autoPong=o.autoPong,e._closeTimeout=o.closeTimeout,!M.includes(o.protocolVersion))throw RangeError(`Unsupported protocol version: ${o.protocolVersion} (supported versions: ${M.join(`, `)})`);let l;if(t instanceof d)l=t;else try{l=new d(t)}catch{throw SyntaxError(`Invalid URL: ${t}`)}l.protocol===`http:`?l.protocol=`ws:`:l.protocol===`https:`&&(l.protocol=`wss:`),e._url=l.href;let u=l.protocol===`wss:`,p=l.protocol===`ws+unix:`,m;if(l.protocol!==`ws:`&&!u&&!p?m=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:p&&!l.pathname?m=`The URL's pathname is empty`:l.hash&&(m=`The URL contains a fragment identifier`),m){let t=SyntaxError(m);if(e._redirects===0)throw t;L(e,t);return}let h=u?443:80,g=s(16).toString(`base64`),y=u?r.request:i.request,x=new Set,S;if(o.createConnection=o.createConnection||(u?ee:R),o.defaultPort=o.defaultPort||h,o.port=l.port||h,o.host=l.hostname.startsWith(`[`)?l.hostname.slice(1,-1):l.hostname,o.headers={...o.headers,"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":g,Connection:`Upgrade`,Upgrade:`websocket`},o.path=l.pathname+l.search,o.timeout=o.handshakeTimeout,o.perMessageDeflate&&(S=new f({...o.perMessageDeflate,isServer:!1,maxPayload:o.maxPayload}),o.headers[`Sec-WebSocket-Extensions`]=O({[f.extensionName]:S.offer()})),n.length){for(let e of n){if(typeof e!=`string`||!P.test(e)||x.has(e))throw SyntaxError(`An invalid or duplicated subprotocol was specified`);x.add(e)}o.headers[`Sec-WebSocket-Protocol`]=n.join(`,`)}if(o.origin&&(o.protocolVersion<13?o.headers[`Sec-WebSocket-Origin`]=o.origin:o.headers.Origin=o.origin),(l.username||l.password)&&(o.auth=`${l.username}:${l.password}`),p){let e=o.path.split(`:`);o.socketPath=e[0],o.path=e[1]}let C;if(o.followRedirects){if(e._redirects===0){e._originalIpc=p,e._originalSecure=u,e._originalHostOrSocketPath=p?o.socketPath:l.host;let t=a&&a.headers;if(a={...a,headers:{}},t)for(let[e,n]of Object.entries(t))a.headers[e.toLowerCase()]=n}else if(e.listenerCount(`redirect`)===0){let t=p?e._originalIpc?o.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:l.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!u)&&(delete o.headers.authorization,delete o.headers.cookie,t||delete o.headers.host,o.auth=void 0)}o.auth&&!a.headers.authorization&&(a.headers.authorization=`Basic `+Buffer.from(o.auth).toString(`base64`)),C=e._req=y(o),e._redirects&&e.emit(`redirect`,e.url,C)}else C=e._req=y(o);o.timeout&&C.on(`timeout`,()=>{z(e,C,`Opening handshake has timed out`)}),C.on(`error`,t=>{C===null||C[j]||(C=e._req=null,L(e,t))}),C.on(`response`,r=>{let i=r.headers.location,s=r.statusCode;if(i&&o.followRedirects&&s>=300&&s<400){if(++e._redirects>o.maxRedirects){z(e,C,`Maximum redirects exceeded`);return}C.abort();let r;try{r=new d(i,t)}catch{L(e,SyntaxError(`Invalid URL: ${i}`));return}I(e,r,n,a)}else e.emit(`unexpected-response`,C,r)||z(e,C,`Unexpected server response: ${r.statusCode}`)}),C.on(`upgrade`,(t,n,r)=>{if(e.emit(`upgrade`,t),e.readyState!==F.CONNECTING)return;C=e._req=null;let i=t.headers.upgrade;if(i===void 0||i.toLowerCase()!==`websocket`){z(e,n,`Invalid Upgrade header`);return}let a=c(`sha1`).update(g+b).digest(`base64`);if(t.headers[`sec-websocket-accept`]!==a){z(e,n,`Invalid Sec-WebSocket-Accept header`);return}let s=t.headers[`sec-websocket-protocol`],l;if(s===void 0?x.size&&(l=`Server sent no subprotocol`):x.size?x.has(s)||(l=`Server sent an invalid subprotocol`):l=`Server sent a subprotocol but none was requested`,l){z(e,n,l);return}s&&(e._protocol=s);let u=t.headers[`sec-websocket-extensions`];if(u!==void 0){if(!S){z(e,n,`Server sent a Sec-WebSocket-Extensions header but no extension was requested`);return}let t;try{t=k(u)}catch{z(e,n,`Invalid Sec-WebSocket-Extensions header`);return}let r=Object.keys(t);if(r.length!==1||r[0]!==f.extensionName){z(e,n,`Server indicated an extension that was not requested`);return}try{S.accept(t[f.extensionName])}catch{z(e,n,`Invalid Sec-WebSocket-Extensions header`);return}e._extensions[f.extensionName]=S}e.setSocket(n,r,{allowSynchronousEvents:o.allowSynchronousEvents,generateMask:o.generateMask,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}),o.finishRequest?o.finishRequest(C,e):C.end()}function L(e,t){e._readyState=F.CLOSING,e._errorEmitted=!0,e.emit(`error`,t),e.emitClose()}function R(e){return e.path=e.socketPath,a.connect(e)}function ee(e){return e.path=void 0,!e.servername&&e.servername!==``&&(e.servername=a.isIP(e.host)?``:e.host),o.connect(e)}function z(e,t,n){e._readyState=F.CLOSING;let r=Error(n);Error.captureStackTrace(r,z),t.setHeader?(t[j]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(L,e,r)):(t.destroy(r),t.once(`error`,e.emit.bind(e,`error`)),t.once(`close`,e.emitClose.bind(e)))}function B(e,t,n){if(t){let n=h(t)?t.size:A(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){let t=Error(`WebSocket is not open: readyState ${e.readyState} (${N[e.readyState]})`);process.nextTick(n,t)}}function V(e,t){let n=this[w];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,n._socket[w]!==void 0&&(n._socket.removeListener(`data`,le),process.nextTick(ae,n._socket),e===1005?n.close():n.close(e,t))}function te(){let e=this[w];e.isPaused||e._socket.resume()}function ne(e){let t=this[w];t._socket[w]!==void 0&&(t._socket.removeListener(`data`,le),process.nextTick(ae,t._socket),t.close(e[C])),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e))}function H(){this[w].emitClose()}function re(e,t){this[w].emit(`message`,e,t)}function ie(e){let t=this[w];t._autoPong&&t.pong(e,!this._isServer,T),t.emit(`ping`,e)}function U(e){this[w].emit(`pong`,e)}function ae(e){e.resume()}function oe(e){let t=this[w];t.readyState!==F.CLOSED&&(t.readyState===F.OPEN&&(t._readyState=F.CLOSING,se(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e)))}function se(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),e._closeTimeout)}function ce(){let e=this[w];if(this.removeListener(`close`,ce),this.removeListener(`data`,le),this.removeListener(`end`,ue),e._readyState=F.CLOSING,!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&this._readableState.length!==0){let t=this.read(this._readableState.length);e._receiver.write(t)}e._receiver.end(),this[w]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on(`error`,H),e._receiver.on(`finish`,H))}function le(e){this[w]._receiver.write(e)||this.pause()}function ue(){let e=this[w];e._readyState=F.CLOSING,e._receiver.end(),this.end()}function de(){let e=this[w];this.removeListener(`error`,de),this.on(`error`,T),e&&(e._readyState=F.CLOSING,this.destroy())}})),o_=e.t(((e,t)=>{a_();let{Duplex:n}=require(`stream`);function r(e){e.emit(`close`)}function i(){!this.destroyed&&this._writableState.finished&&this.destroy()}function a(e){this.removeListener(`error`,a),this.destroy(),this.listenerCount(`error`)===0&&this.emit(`error`,e)}function o(e,t){let o=!0,s=new n({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on(`message`,function(t,n){let r=!n&&s._readableState.objectMode?t.toString():t;s.push(r)||e.pause()}),e.once(`error`,function(e){s.destroyed||(o=!1,s.destroy(e))}),e.once(`close`,function(){s.destroyed||s.push(null)}),s._destroy=function(t,n){if(e.readyState===e.CLOSED){n(t),process.nextTick(r,s);return}let i=!1;e.once(`error`,function(e){i=!0,n(e)}),e.once(`close`,function(){i||n(t),process.nextTick(r,s)}),o&&e.terminate()},s._final=function(t){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._final(t)});return}e._socket!==null&&(e._socket._writableState.finished?(t(),s._readableState.endEmitted&&s.destroy()):(e._socket.once(`finish`,function(){t()}),e.close()))},s._read=function(){e.isPaused&&e.resume()},s._write=function(t,n,r){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._write(t,n,r)});return}e.send(t,r)},s.on(`end`,i),s.on(`error`,a),s}t.exports=o})),s_=e.t(((e,t)=>{let{tokenChars:n}=e_();function r(e){let t=new Set,r=-1,i=-1,a=0;for(;a<e.length;a++){let o=e.charCodeAt(a);if(i===-1&&n[o]===1)r===-1&&(r=a);else if(a!==0&&(o===32||o===9))i===-1&&r!==-1&&(i=a);else if(o===44){if(r===-1)throw SyntaxError(`Unexpected character at index ${a}`);i===-1&&(i=a);let n=e.slice(r,i);if(t.has(n))throw SyntaxError(`The "${n}" subprotocol is duplicated`);t.add(n),r=i=-1}else throw SyntaxError(`Unexpected character at index ${a}`)}if(r===-1||i!==-1)throw SyntaxError(`Unexpected end of input`);let o=e.slice(r,a);if(t.has(o))throw SyntaxError(`The "${o}" subprotocol is duplicated`);return t.add(o),t}t.exports={parse:r}})),c_=e.t(((e,t)=>{let n=require(`events`),r=require(`http`),{Duplex:i}=require(`stream`),{createHash:a}=require(`crypto`),o=i_(),s=$g(),c=s_(),l=a_(),{CLOSE_TIMEOUT:u,GUID:d,kWebSocket:f}=Xg(),p=/^[+/0-9A-Za-z]{22}==$/;t.exports=class extends n{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:u,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:l,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw TypeError(`One and only one of the "port", "server", or "noServer" options must be specified`);if(e.port==null?e.server&&(this._server=e.server):(this._server=r.createServer((e,t)=>{let n=r.STATUS_CODES[426];t.writeHead(426,{"Content-Length":n.length,"Content-Type":`text/plain`}),t.end(n)}),this._server.listen(e.port,e.host,e.backlog,t)),this._server){let e=this.emit.bind(this,`connection`);this._removeListeners=m(this._server,{listening:this.emit.bind(this,`listening`),error:this.emit.bind(this,`error`),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw Error(`The server is operating in "noServer" mode`);return this._server?this._server.address():null}close(e){if(this._state===2){e&&this.once(`close`,()=>{e(Error(`The server is not running`))}),process.nextTick(h,this);return}if(e&&this.once(`close`,e),this._state!==1)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(h,this);else{let e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{h(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf(`?`);if((t===-1?e.url:e.url.slice(0,t))!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on(`error`,g);let i=e.headers[`sec-websocket-key`],a=e.headers.upgrade,l=+e.headers[`sec-websocket-version`];if(e.method!==`GET`){y(this,e,t,405,`Invalid HTTP method`);return}if(a===void 0||a.toLowerCase()!==`websocket`){y(this,e,t,400,`Invalid Upgrade header`);return}if(i===void 0||!p.test(i)){y(this,e,t,400,`Missing or invalid Sec-WebSocket-Key header`);return}if(l!==13&&l!==8){y(this,e,t,400,`Missing or invalid Sec-WebSocket-Version header`,{"Sec-WebSocket-Version":`13, 8`});return}if(!this.shouldHandle(e)){v(t,400);return}let u=e.headers[`sec-websocket-protocol`],d=new Set;if(u!==void 0)try{d=c.parse(u)}catch{y(this,e,t,400,`Invalid Sec-WebSocket-Protocol header`);return}let f=e.headers[`sec-websocket-extensions`],m={};if(this.options.perMessageDeflate&&f!==void 0){let n=new s({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let e=o.parse(f);e[s.extensionName]&&(n.accept(e[s.extensionName]),m[s.extensionName]=n)}catch{y(this,e,t,400,`Invalid or unacceptable Sec-WebSocket-Extensions header`);return}}if(this.options.verifyClient){let a={origin:e.headers[`${l===8?`sec-websocket-origin`:`origin`}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(a,(a,o,s,c)=>{if(!a)return v(t,o||401,s,c);this.completeUpgrade(m,i,d,e,t,n,r)});return}if(!this.options.verifyClient(a))return v(t,401)}this.completeUpgrade(m,i,d,e,t,n,r)}completeUpgrade(e,t,n,r,i,c,l){if(!i.readable||!i.writable)return i.destroy();if(i[f])throw Error(`server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration`);if(this._state>0)return v(i,503);let u=[`HTTP/1.1 101 Switching Protocols`,`Upgrade: websocket`,`Connection: Upgrade`,`Sec-WebSocket-Accept: ${a(`sha1`).update(t+d).digest(`base64`)}`],p=new this.options.WebSocket(null,void 0,this.options);if(n.size){let e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(u.push(`Sec-WebSocket-Protocol: ${e}`),p._protocol=e)}if(e[s.extensionName]){let t=e[s.extensionName].params,n=o.format({[s.extensionName]:[t]});u.push(`Sec-WebSocket-Extensions: ${n}`),p._extensions=e}this.emit(`headers`,u,r),i.write(u.concat(`\r
`).join(`\r
`)),i.removeListener(`error`,g),p.setSocket(i,c,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(p),p.on(`close`,()=>{this.clients.delete(p),this._shouldEmitClose&&!this.clients.size&&process.nextTick(h,this)})),l(p,r)}};function m(e,t){for(let n of Object.keys(t))e.on(n,t[n]);return function(){for(let n of Object.keys(t))e.removeListener(n,t[n])}}function h(e){e._state=2,e.emit(`close`)}function g(){this.destroy()}function v(e,t,n,i){n||=r.STATUS_CODES[t],i={Connection:`close`,"Content-Type":`text/html`,"Content-Length":Buffer.byteLength(n),...i},e.once(`finish`,e.destroy),e.end(`HTTP/1.1 ${t} ${r.STATUS_CODES[t]}\r\n`+Object.keys(i).map(e=>`${e}: ${i[e]}`).join(`\r
`)+`\r
\r
`+n)}function y(e,t,n,r,i,a){if(e.listenerCount(`wsClientError`)){let r=Error(i);Error.captureStackTrace(r,y),e.emit(`wsClientError`,r,n,t)}else v(n,r,i,a)}}));o_(),i_(),$g(),t_(),n_(),s_();var l_=e.a(a_(),1);c_();var u_=l_.default;const d_=1e3,f_=`Build complete`,p_=a.l({completedAt:a.c().positive().optional(),inProgressCount:a.c().min(0),status:a.u()});var m_=class extends Error{constructor(e,t,n,r){super(e),this.statusCode=t,this.reason=n,this.originalError=r,this.name=`NotifyServiceError`}},h_=class extends m_{constructor(e,t,n,r){super(e,t,n,r),this.name=`NotifyConnectionError`}},g_=class extends m_{constructor(e,t,n,r){super(e,t,n,r),this.name=`NotifyServiceMessageTimeoutError`}},__=class extends m_{constructor(e,t,n,r){super(e,t,n,r),this.name=`NotifyServiceAuthenticationError`}};async function v_({notifyServiceUrl:e,buildId:t,progressMessageCallback:n,log:r,headers:i}){let a=`${e}/build/${t}`,o=new u_(a,{handshakeTimeout:4e3,headers:i});return await new Promise((e,t)=>{o.on(`open`,()=>{r.debug(`notify service handshake successful at ${a}`)}),o.on(`unexpected-response`,(e,n)=>{let i=n.statusCode;switch(r.debug(`notify service unexpected response: ${i}`),i){case 400:t(new __(`Invalid build ID`,i));break;case 401:t(new __(`Unauthorized request`,i));break;case 403:t(new __(`Access denied to build`,i));break;case 404:t(new __(`Build not found`,i));break;default:t(new m_(`Unexpected response from notify service`,i))}}),o.on(`close`,(n,i)=>{let a=i.toString();r.debug(`notify service connection closed with code ${n}: ${a}`),n===d_&&a===f_&&e(),i.toString().includes(`408 Request Timeout`)&&t(new g_(`Timed out waiting for message from notify service`,408,i.toString())),n===1006&&t(new h_(`Failed to connect to notify service`,n,a)),t(new m_(`Notify service connection closed unexpectedly`,n,a))}),o.on(`error`,e=>{let n=e.code;(n===`ECONNREFUSED`||n===`ENOTFOUND`||n===`ETIMEDOUT`||n===`HPE_INVALID_CONSTANT`||e.message&&e.message.includes(`Opening handshake has timed out`))&&t(new h_(`Failed to connect to notify service`,n,void 0,e)),t(new m_(`Notify service error occurred`,n,void 0,e))}),o.on(`message`,i=>{try{let t=p_.parse(JSON.parse(i.toString()));n&&n(t),t.completedAt&&(r.debug(`notify service: build complete`),o.close(d_,f_),e())}catch(e){t(new m_(`Unexpected error handling notify service message`,void 0,void 0,e))}})})}var y_=({build:e,exitCode:t,isOnboarding:r})=>{let a=r?e.app.setupUrl:e.webUrl,o=[];return e.changeCount>0&&o.push(G.default`${n.i} {bold Found ${(0,J.default)(`visual changes`,e.changeCount,!0)}}`),e.accessibilityChangeCount>0&&o.push(G.default`${n.i} {bold Found ${(0,J.default)(`accessibility changes`,e.accessibilityChangeCount,!0)}}`),(0,K.dedent)(G.default`
${o.join(`
`)}
Review the changes at ${i.J(a)}
${n.a} For CI/CD use cases, this command failed with exit code ${t}
Pass {bold --exit-zero-on-changes} to succeed this command regardless of changes.
Pass {bold --auto-accept-changes} to succeed and automatically accept any changes.
`)},b_=({build:e,exitCode:t,isOnboarding:r})=>{let{errorCount:a,interactionTestFailuresCount:o,webUrl:s}=e,c=o>0,l=a-o>0,u=(0,J.default)(`failed test`,o,!0),d;return d=c&&l?`Encountered ${(0,J.default)(`build error`,a-o,!0)} and ${u}`:c?`Encountered ${u}`:`Encountered ${(0,J.default)(`build error`,a,!0)}`,(0,K.dedent)(G.default`
${n.i} {bold ${d}}: failing with exit code ${t}
${n.a} Review the errors at ${i.J(r?e.app.setupUrl:s)}
`)};const x_=e=>q(e.options)?`test suite`:`stories`,S_=e=>({status:`initial`,title:`Test your ${x_(e)}`}),C_=e=>({status:`skipped`,title:`Test your ${x_(e)}`,output:`Skipped due to --dry-run`}),w_=({build:e})=>({tests:(0,J.default)(`test`,e.actualTestCount,!0),errors:(0,J.default)(`component error`,e.errorCount,!0),e2eErrors:(0,J.default)(`test error`,e.errorCount,!0),changes:(0,J.default)(`change`,e.changeCount,!0),stories:(0,J.default)(`story`,e.specCount,!0),e2eTests:(0,J.default)(`test`,e.specCount,!0),components:(0,J.default)(`component`,e.componentCount,!0),skips:(0,J.default)(`test`,e.testCount-e.actualTestCount,!0),snapshots:(0,J.default)(`snapshot`,e.actualCaptureCount,!0)}),T_=(e,{cursor:t=0,label:n=``}={})=>{let{build:r,options:i,onlyStoryFiles:a}=e;if(!r)return{status:`pending`,title:`Test your ${q(i)?`test suite`:`stories`}`,output:`This may take a few minutes`};if(r.actualTestCount===0)return{status:`pending`,title:`Finalizing build`,output:a?`All tests skipped`:`No tests run`};let{errors:o,e2eErrors:s,tests:c,skips:l}=w_(e),u=i.onlyStoryNames?` for stories matching ${i.onlyStoryNames.map(e=>`'${e}'`).join(`, `)}`:``,d=a?` affected by recent changes`:``,f=r.testCount>r.actualTestCount?` (skipping ${l})`:``,p=Math.min(t,r.actualTestCount),m=Math.round(p/r.actualTestCount*100),h=`${p}/${r.actualTestCount}`,g=``;return r.errorCount&&(g=q(e.options)?`(${s}) `:`(${o}) `),{status:`pending`,title:`Running ${c}${u}${d}${f}`,output:t?`${m}% ${h} ${g} ${n}`:`This may take a few minutes`}},E_=e=>{let{snapshots:t,components:n,stories:r,e2eTests:i}=w_(e),a=q(e.options)?`Tested ${i}; captured ${t} in ${Fp(e)}`:`Tested ${r} across ${n}; captured ${t} in ${Fp(e)}`;return{status:`success`,title:`Build ${e.build.number} passed!`,output:a}},D_=e=>{let{snapshots:t,components:n,stories:r,e2eTests:i}=w_(e),a=q(e.options)?`Tested ${i}; captured ${t} in ${Fp(e)}`:`Tested ${r} across ${n}; captured ${t} in ${Fp(e)}`;return{status:`success`,title:e.build.autoAcceptChanges?`Build ${e.build.number} auto-accepted`:`Build ${e.build.number} completed`,output:a}},O_=e=>{let{snapshots:t,components:n,stories:r,e2eTests:i,errors:a,e2eErrors:o}=w_(e),s=q(e.options)?`Tested ${i}; captured ${t} and found ${o}`:`Tested ${r} across ${n}; captured ${t} and found ${a}`;return{status:`error`,title:`Build ${e.build.number} failed after ${Fp(e)}`,output:s}},k_=e=>({status:`error`,title:`Build ${e.build.number} failed due to system error`,output:`Please try again, or contact us if the problem persists`}),A_=e=>({status:`error`,title:`Build ${e.build.number} canceled`,output:`Someone canceled the build before it completed`}),j_=e=>({status:`skipped`,title:`Test your ${x_(e)}`,output:e.isPublishOnly?`No UI tests or UI review enabled`:`Skipped due to ${e.options.list?`--list`:`--exit-once-uploaded`}`}),M_=e=>{switch(e.build.status){case`PASSED`:return E_(e);case`BROKEN`:return O_(e);case`FAILED`:return k_(e);case`CANCELLED`:return A_(e);default:return D_(e)}};var N_=e=>{let{snapshots:t,components:r,stories:a,e2eTests:o}=w_({build:e.build}),s=(e.build.changeCount||0)+(e.build.accessibilityChangeCount||0);if(e.isOnboarding)return(0,K.dedent)(G.default`
${n.o} {bold Build passed. Welcome to Chromatic!}
${q(e.options)?`We found ${o} and took ${t}.`:`We found ${r} with ${a} and took ${t}.`}
${n.a} Please continue setup at ${i.J(e.build.app.setupUrl)}
`);let c=[];return e.build.changeCount>0&&c.push((0,J.default)(`visual changes`,e.build.changeCount,!0)),e.build.accessibilityChangeCount>0&&c.push((0,J.default)(`accessibility changes`,e.build.accessibilityChangeCount,!0)),e.build.autoAcceptChanges&&s>0?(0,K.dedent)(G.default`
${n.o} {bold Build ${e.build.number} passed!}
Auto-accepted ${(0,J.default)(`changes`,s,!0)}.
${n.a} View build details at ${i.J(e.build.webUrl)}
`):(0,K.dedent)(G.default`
${n.o} {bold Build ${e.build.number} passed!}
${s>0?c.join(` and `):`No changes`} ${(0,J.default)(`was`,s,!1)} found in this build.
${n.a} View build details at ${i.J(e.build.webUrl)}
`)};const P_={github:`GitHub`,gitlab:`GitLab`,bitbucket:`Bitbucket`};var F_=e=>(0,K.dedent)(G.default`
${n.a} {bold Speed up Continuous Integration}
Your project is linked to ${P_[e]} so Chromatic will report results there.
This means you can add the option \`with: exitOnceUploaded: true\` to your workflow to skip waiting for build results.
Read more here: ${i.J(`https://www.chromatic.com/docs/configure/`)}
`);async function I_(e,n){let{client:r,log:i,env:a,options:o}=e,{skipSnapshots:s,uploadedBytes:c,matchesBranch:l,onlyStoryFiles:u}=n;if(s||o.dryRun)return{kind:`skip-self`};let d=n.build,{app:f,number:p,tests:m,testCount:h,actualTestCount:g,reportToken:v}=d;f.repository&&c&&!o.junitReport&&i.info(F_(f.repository.provider));let y=o.interactive&&h===g&&m?.map(({spec:e,parameters:t,mode:n})=>{let r=n.name||`[${t.viewport}px]`,i=t.viewportIsDefault?``:r;return`${e.component.displayName} › ${e.name} ${i}`}),b=t.h(({cursor:t,label:n})=>{e.report({output:T_({build:d,options:o,onlyStoryFiles:u},{cursor:t,label:n}).output,progress:{progress:t,total:g,unit:`snapshots`},build:d})},o.interactive?a.CHROMATIC_POLL_INTERVAL:a.CHROMATIC_OUTPUT_INTERVAL),x=e=>{if(g>0){let{inProgressCount:t=0}=e,n=g-t+1;b({cursor:n,label:y&&y[n-1]||``})}},S=async()=>{let e={headers:{Authorization:`Bearer ${v}`}},n=await r.runQuery(`
query SnapshotBuildQuery($number: Int!) {
app {
build(number: $number) {
id
status(legacy: false)
autoAcceptChanges
inProgressCount: testCount(statuses: [IN_PROGRESS])
testCount
changeCount
errorCount: testCount(statuses: [BROKEN])
completedAt
}
}
}
`,{number:p},e);return d={...d,...n.app.build},d.completedAt?d:(x(d),await t.s(a.CHROMATIC_POLL_INTERVAL),S())};g>0&&await L_(e,d.id,x,v);let C=await S();switch(C.status){case`PASSED`:return{kind:`continue`,output:{exitCode:t.C.OK,userError:!1,log:`passed`,build:C}};case`ACCEPTED`:case`PENDING`:case`DENIED`:return C.autoAcceptChanges||o?.exitZeroOnChanges===`true`||l?.(o?.exitZeroOnChanges||!1)?{kind:`continue`,output:{exitCode:t.C.OK,userError:!1,log:`passed`,build:C}}:{kind:`continue`,output:{exitCode:t.C.BUILD_HAS_CHANGES,userError:!0,log:`changes`,build:C}};case`BROKEN`:return{kind:`continue`,output:{exitCode:t.C.BUILD_HAS_ERRORS,userError:!0,log:`errors`,build:C}};case`FAILED`:return{kind:`continue`,output:{exitCode:t.C.BUILD_FAILED,userError:!1,build:C}};case`CANCELLED`:return{kind:`continue`,output:{exitCode:t.C.BUILD_WAS_CANCELED,userError:!0,build:C}};default:throw Error(`Unexpected build status: ${C.status}`)}}async function L_(e,n,r,i){let{env:a,log:o}=e;try{await v_({notifyServiceUrl:a.CHROMATIC_NOTIFY_SERVICE_URL,buildId:n,progressMessageCallback:r,log:o,headers:{Authorization:`Bearer ${i}`}})}catch(e){t.A(e),e instanceof h_?o.debug(`Failed to connect to notify service, falling back to polling: code: ${e.statusCode}, original error: ${e.originalError?.message}`):e instanceof g_?o.debug(`Timed out waiting for message from notify service, falling back to polling`):e instanceof __?o.debug(`Error authenticating with notify service: ${e.statusCode} ${e.message}`):e instanceof m_?o.debug(`Error getting updates from notify service: ${e.message} code: ${e.statusCode}, reason: ${e.reason}, original error: ${e.originalError?.message}`):o.error(`Unexpected error from notify service: ${e.message}`)}}const R_=e=>({build:e.build,skipSnapshots:e.skipSnapshots,uploadedBytes:e.uploadedBytes,matchesBranch:e.git.matchesBranch,onlyStoryFiles:e.onlyStoryFiles}),z_=(e,n)=>{switch(e.build=n.build,t.w(e,n.exitCode,n.userError),n.log){case`passed`:e.log.info(N_(e));return;case`changes`:e.log.error(y_(e));return;case`errors`:e.log.error(b_(e));return;default:return}};function B_(e){let t,n,r=0;return{start:i=>{r=0,t=Gd({title:i.title,spacing:0,output:e}),n=Vd({output:e,style:`heavy`,max:100,withGuide:!1}),n.start(`0%`)},update:e=>{let t=e.output||e.title;if(!e.progress){n.message(t);return}let i=V_(e.progress);n.advance(i-r,t),r=i},succeed:e=>{n.clear(),t.success(Vp(e))},fail:e=>{n.clear(),t.error(pp(e.title),{showLog:!1})}}}function V_({progress:e,total:t}){return t<=0?0:Math.max(0,Math.min(100,Math.round(e/t*100)))}async function H_(e){await Ip(e,{name:`snapshot`,title:S_(e).title,transitions:{pending:T_,success:M_,skipped:e=>e.skipSnapshots?j_(e):C_(e)},extractInput:R_,run:I_,applyOutput:z_},Gp(e,B_))}var U_=d.t();const W_=e=>{let{builder:t,storybookPackages:n,storybookVersion:r}=e,i=typeof t==`string`?t:t?.name;return i?{name:i,packageVersion:n?.[c.l[i]]?.version}:{name:`webpack4`,packageVersion:r}},G_=async e=>{let t=await(0,is.readFile)(e),n=Object.keys(c.c).find(e=>c.c[e]===t.framework.name||e===t.framework.name),r=W_(t);return{version:t.storybookPackages&&n?t.storybookPackages[n].version:``,builder:r}};async function K_(e,t){let n=await q_(e,t),r=e.options.storybookBuildDir&&h.default.resolve(e.options.storybookBuildDir,`project.json`);if(!r||!(0,U_.pathExistsSync)(r))return await J_(n,e,t);try{let i=await G_(r);return await J_({...n,...i},e,t)}catch(r){return e.log.debug(r),await J_(n,e,t)}}async function q_(e,t){try{return await c.s(e,t)}catch(t){return e.log.debug(t),{}}}async function J_(e,t,n){return{...e,projectRoot:n,configDir:e.configDir??await c.a(t,n),staticDirs:e.staticDirs??[]}}var Y_=e=>(0,K.dedent)(G.default`
${n.i} {bold Build script not found}
The CLI didn't find a script called {bold "${e}"} in your {bold package.json}.
Make sure you set the {bold --build-script-name} option to the value of the script name that builds your Storybook.
`);const X_=e=>({gitRootPath:e.git?.rootPath,isReactNativeApp:e.isReactNativeApp??!1}),Z_=async(e,t)=>{if(!t.isReactNativeApp&&!e.options.storybookBuildDir&&!e.options.buildCommand&&!q(e.options)){let{buildScriptName:t}=e.options,n=e.packageJson.scripts??{};if(!t||!n[t])throw Error(Y_(t??``))}return{kind:`continue`,output:{storybook:await K_(e,i.t({storybookBaseDir:e.options.storybookBaseDir,gitRootPath:t.gitRootPath}))}}},Q_=(e,{storybook:n})=>{e.storybook=n,n.version&&t.F(`storybookVersion`,n.version);let{projectRoot:r,configDir:i,staticDirs:a,...o}=n;t.P(`storybook`,o)},$_=e=>({status:`initial`,title:`Collect ${$(e)} metadata`}),ev=e=>({status:`pending`,title:`Collecting ${$(e)} metadata`}),tv=e=>({status:`success`,title:`Collected ${$(e)} metadata`,output:`Build metadata gathered`});async function nv(e){await Ip(e,{name:`storybookInfo`,title:$_(e).title,transitions:{pending:ev,success:tv},extractInput:X_,run:Z_,applyOutput:Q_},Gp(e,Hp))}async function rv(e,{name:t,url:n}){let{experimental_abortSignal:r}=e.options;return e.log.debug(`Waiting for '${t}' sentinel file to appear at ${n}`),(0,mr.default)(async i=>{if(r?.aborted)return i(r.reason||Error(`Aborted`));try{let a=await(await e.http.fetch(n,{signal:r},{retries:0,noLogErrorBody:!0})).text();if(a!==`OK`)return e.log.debug(`Sentinel file '${t}' not OK, got '${a}'.`),i(Error(`Sentinel file '${t}' not OK.`));e.log.debug(`Sentinel file '${t}' OK.`)}catch(n){let{message:r,response:a={}}=n;if(a.status===403)return i(Error(`Provided signature expired.`));if(a.status===404)throw Error(`Sentinel file '${t}' not present.`);return e.log.getLevel()===`debug`&&e.log.debug(await a.text()),i(Error(r))}},{retries:185,minTimeout:1e3,maxTimeout:1e3})}const iv={PENDING:`The pending status will be carried over from the most recent ancestor build that has unreviewed changes.`,PASSED:`The passed status will be carried over from the most recent ancestor build.`,ACCEPTED:`The accepted status will be carried over from the most recent ancestor build.`,DENIED:`The denied status will be carried over from the most recent ancestor build.`};var av=({ancestorBuild:e})=>{let t=[G.default`${n.o} {bold This build was skipped and will not be displayed in Chromatic.}`],r=e&&iv[e.status];return e&&r&&t.push(r,`${n.a} View ancestor build details at ${i.J(e.webUrl)}`),`${(0,K.dedent)(G.default`${t.join(`
`)}`)}\n`},ov=({build:e,options:t,skip:r,skipSnapshots:i,ancestorBuild:a})=>{if(r)return(0,K.dedent)(G.default`
${n.o} {bold TurboSnap enabled}
Bypassed ${a?(0,J.default)(`snapshot`,a.snapshotCount,!0):`snapshots`} because no frontend files were changed.
`);let o=(0,J.default)(`snapshot`,e.actualCaptureCount,!0),s=(0,J.default)(`TurboSnap`,e.inheritedCaptureCount,!0);return!t.interactive||i?(0,K.dedent)(G.default`
${n.o} {bold TurboSnap enabled}
Capturing ${o}, copying ${s}.
`):(0,K.dedent)(G.default`
${n.o} {bold TurboSnap enabled}
Captured ${o}, copied ${s}.
`)},sv=()=>(0,K.dedent)(G.default`
${n.s} {bold Deduplication failed, falling back to uploading all files}
An error occurred while waiting for the server to deduplicate files.
Retrying the upload without deduplication.
`);const cv=e=>({status:`initial`,title:`Publish your built ${$(e)}`}),lv=e=>({status:`skipped`,title:`Publish your built ${$(e)}`,output:`Skipped due to --dry-run`}),uv=(e,t)=>{let n=`Invalid ${$(e)} build at ${e.sourceDir}`;return e.buildLogFile&&(n+=` (check the build log)`),t&&(n+=`: ${t.message}`),{status:`error`,title:`Publishing your built ${$(e)}`,output:n}},dv=e=>({status:`pending`,title:`Publishing your built ${$(e)}`,output:`Starting publish`}),fv=(e,{percentage:t})=>({status:`pending`,title:`Publishing your built ${$(e)}`,output:`${t}%`}),pv=e=>({status:`pending`,title:`Publishing your built ${$(e)}`,output:`Finalizing upload`}),mv=e=>{let t=(0,J.default)(`file`,e.uploadedFiles,!0),n=(0,$s.filesize)(e.uploadedBytes||0),r=e.fileInfo?.paths.length&&e.uploadedFiles&&e.fileInfo.paths.length>e.uploadedFiles?`, skipped ${(0,J.default)(`file`,e.fileInfo.paths.length-e.uploadedFiles,!0)}`:``;return{status:`success`,title:e.uploadedBytes?`Publish complete in ${Fp(e)}`:`Publish complete`,output:e.uploadedBytes?`Uploaded ${t} (${n})${r}`:`No new files to upload`}},hv=(e,{path:t})=>({status:`error`,title:`Publishing your built ${$(e)}`,output:`Failed to upload ${t}`}),gv=(e,t)=>{let n=e.fileInfo?.paths.map(n=>({...t&&e.fileInfo?.hashes&&{contentHash:e.fileInfo.hashes[n]},contentLength:e.fileInfo?.lengths.find(({knownAs:e})=>e===n)?.contentLength??-1,localPath:h.default.join(e.sourceDir,n),targetPath:n}));if(!n)throw Error(uv(e).output);return n},_v=async(e,n,r)=>{let{sentinelUrls:i,uploadedBytes:a,uploadedFiles:o,skippedByTurboSnap:s,ancestorBuild:c}=await Nu(n,r,{onProgress:t.h((t,r)=>{let i=Math.round(t/r*100);e.report({output:fv(n,{percentage:i}).output,progress:{progress:t,total:r,unit:`bytes`}})},n.options.interactive?100:n.env.CHROMATIC_OUTPUT_INTERVAL),onError:(e,t)=>{throw t===e.message?Error(hv(n,{path:t}).output):e}});if(s||i.length===0)return{sentinelUrls:i,uploadedBytes:a,uploadedFiles:o,skippedByTurboSnap:s,ancestorBuild:c};e.report({output:pv(n).output});let l=Object.fromEntries(i.map(e=>{let{host:t,pathname:n}=new URL(e);return[t+n,{name:n.split(`/`).at(-1)||``,url:e}]}));return await Promise.all(Object.values(l).map(e=>rv(n,e))),{sentinelUrls:i,uploadedBytes:a,uploadedFiles:o}},vv=(e,t,n)=>(e.log.info(ov({...t,skip:!0,ancestorBuild:n})),e.log.info(av({ancestorBuild:n})),{kind:`skip`});async function yv(e,t){let n=t.uploadContext;if(n.options.dryRun)return{kind:`skip-self`};try{let t=await _v(e,n,gv(n,!0));return t.skippedByTurboSnap?vv(e,n,t.ancestorBuild):{kind:`continue`,output:t}}catch{e.log.warn(sv());let t=await _v(e,n,gv(n,!1));return t.skippedByTurboSnap?vv(e,n,t.ancestorBuild):{kind:`continue`,output:t}}}const bv=e=>({uploadContext:e}),xv=(e,t)=>{e.sentinelUrls=t.sentinelUrls,e.uploadedBytes=t.uploadedBytes,e.uploadedFiles=t.uploadedFiles};async function Sv(e){await Ip(e,{name:`upload`,title:cv(e).title,transitions:{pending:dv,success:mv,skipped:lv,failure:(e,t)=>Bp(e.isReactNativeApp?`Publishing your built React Native Storybook`:dv(e).title,t)},extractInput:bv,run:yv,applyOutput:xv},Gp(e,B_))}const Cv=e=>({status:`initial`,title:`Verify your ${$(e)}`}),wv=e=>({status:`skipped`,title:`Verify your ${$(e)}`,output:`Skipped due to --dry-run`}),Tv=e=>({status:`pending`,title:`Verifying your ${$(e)}`,output:`This may take a few minutes`}),Ev=e=>({status:`error`,title:`Verifying your ${$(e)}`,output:`Failed to publish build`}),Dv=e=>({status:`pending`,title:`Starting partial build`,output:e.options.onlyStoryFiles?`Snapshots will be limited to story files matching ${e.options.onlyStoryFiles.map(e=>`'${e}'`).join(`, `)}`:`Snapshots will be limited to ${e.onlyStoryFiles?.length} story files affected by recent changes`}),Ov=e=>({status:`pending`,title:`Starting partial build`,output:`Snapshots will be limited to ${q(e.options)?`tests`:`stories`} matching ${e.options.onlyStoryNames?.map(e=>`'${e}'`).join(`, `)}`}),kv=(e,t)=>{let n=t.filter(e=>!e.completedAt).length,r=(0,J.default)(`upgrade build`,t.length,!0);return{status:`pending`,title:`Verifying your ${$(e)}`,output:`Waiting for ${n}/${r} to complete`}},Av=e=>({status:`success`,title:e.isPublishOnly?`Published your ${$(e)}`:`Started build ${e.build.number}`,output:e.isOnboarding?`Continue setup at ${e.build.app.setupUrl}`:`View build details at ${e.build.webUrl}`}),jv=async(e,n)=>{let{client:r}=e,{announcedBuild:i,replacementBuildIds:a,turboSnap:o}=n,{id:s,reportToken:c}=i,{onlyStoryNames:l,onlyStoryFiles:u=n.onlyStoryFiles}=n.options,d,f=`UNUSED`;o&&(d=o.bailReason,f=o.bailReason?`BAILED`:`APPLIED`);let{publishBuild:p}=await r.runQuery(`
mutation PublishBuildMutation($id: ID!, $input: PublishBuildInput!) {
publishBuild(id: $id, input: $input) {
# no need for legacy:false on PublishedBuild.status
status
storybookUrl
}
}
`,{id:s,input:{...u&&{onlyStoryFiles:u},...l&&{onlyStoryNames:[l].flat()},...a&&{replacementBuildIds:a},...d&&{turboSnapBailReason:d},turboSnapStatus:f}},{headers:{Authorization:`Bearer ${c}`},retries:3});if(p.status===`FAILED`)throw new t.S(Ev(n).output,{exitCode:t.C.BUILD_FAILED});return{announcedBuild:{...i,...p},storybookUrl:p.storybookUrl}};var Mv=(e,{failureReason:t,storybookUrl:r})=>`${(0,K.dedent)(G.default`
${n.i} {bold Failed to extract stories from your Storybook}
This is usually a problem with your published Storybook, not with Chromatic.
Build and open your Storybook locally and check the browser console for errors.${e.isReactNativeApp?``:`\n Visit your published Storybook at ${i.J(r)}`}
The following error was encountered while running your Storybook:
`)}\n\n${t.trim()}`;const Nv=({spec:e})=>G.default`{dim → }${e.component.name}/${e.name}`;var Pv=e=>(0,K.dedent)(G.default`
{bold Listing available stories:}
${e.map(e=>Nv(e)).join(`
`)}
${n.a} Use {bold --only-story-names} to run a build for a specific component or story.
Globs are supported, for example: {bold --only-story-names "${e[0].spec.component.name}/**"}
`),Fv=e=>{if(!e.storybookUrl)throw Error(`No Storybook URL provided`);let t=[G.default`${n.o} {bold ${Im($(e))} published}`];if(e.build.componentCount&&e.build.specCount){let{components:n,stories:r,e2eTests:i}=w_({build:e.build});t.push(q(e.options)?`We found ${i}.`:`We found ${n} with ${r}.`)}return e.isReactNativeApp||t.push(`${n.a} View your ${$(e)} at ${i.J(e.storybookUrl)}`),(0,K.dedent)(G.default`${t.join(`
`)}`)},Iv=({billingUrl:e})=>(0,K.dedent)(G.default`
${n.s} {bold Build limited}
Visit ${i.J(e)} to verify your billing details.
`),Lv=({billingUrl:e})=>(0,K.dedent)(G.default`
${n.s} {bold Payment required}
This build is limited because your account has a payment past due.
Visit ${i.J(e)} to update your billing details.
`),Rv=({billingUrl:e})=>(0,K.dedent)(G.default`
${n.s} {bold Snapshot quota reached}
This build is limited because your account is out of snapshots for the month.
Visit ${i.J(e)} to upgrade your plan.
`),zv=({build:e})=>(0,K.dedent)(G.default`
${n.s} {bold TurboSnap not available for your account}
To ensure your project is fully setup and baselines are properly established,
TurboSnap is not available until at least 10 builds are created from CI.
${n.a} Review your TurboSnap availability on the Manage screen:
${i.J(e.app.manageUrl)}
`);const Bv=async(e,n)=>{let{client:r,env:i,log:a,report:o}=e,{announcedBuild:s,storybookUrl:c,turboSnap:l,matchesBranch:u}=n,{list:d,onlyStoryNames:f,onlyStoryFiles:p=n.onlyStoryFiles}=n.options;p&&o(Dv(n)),f&&o(Ov(n));let m=n.build,h=Date.now(),g=async()=>{let{number:e,reportToken:l}=s,u={number:e},d={headers:{Authorization:`Bearer ${l}`}},{app:{build:f}}=await r.runQuery(`
query StartedBuildQuery($number: Int!) {
app {
build(number: $number) {
startedAt
failureReason
upgradeBuilds {
completedAt
}
}
}
}
`,u,d);if(f.failureReason)throw a.warn(Mv(n,{failureReason:f.failureReason,storybookUrl:c})),new t.S(Ev(n).output,{exitCode:t.C.STORYBOOK_BROKEN,userError:!0});if(!f.startedAt){if(f.upgradeBuilds?.some(e=>!e.completedAt))o({output:kv(n,f.upgradeBuilds).output}),h=Date.now()+i.CHROMATIC_POLL_INTERVAL;else if(Date.now()-h>i.STORYBOOK_VERIFY_TIMEOUT)throw new t.S(`Build verification timed out`,{exitCode:t.C.VERIFICATION_TIMEOUT});await t.s(i.CHROMATIC_POLL_INTERVAL),await g();return}let{app:{build:p}}=await r.runQuery(`
query VerifyBuildQuery($number: Int!) {
app {
build(number: $number) {
id
number
status(legacy: false)
specCount
componentCount
testCount
changeCount
errorCount: testCount(statuses: [BROKEN])
actualTestCount: testCount(statuses: [IN_PROGRESS])
actualCaptureCount
inheritedCaptureCount
interactionTestFailuresCount
webUrl
browsers {
browser
}
features {
uiTests
uiReview
isReactNativeApp
}
autoAcceptChanges
turboSnapEnabled
wasLimited
app {
manageUrl
setupUrl
account {
exceededThreshold
paymentRequired
billingUrl
}
repository {
provider
}
}
tests {
spec {
name
component {
name
displayName
}
}
parameters {
viewport
viewportIsDefault
}
mode {
name
}
}
}
}
}
`,u,d);m={...s,...m,...p}};await Promise.race([g(),new Promise((e,t)=>setTimeout(t,i.CHROMATIC_UPGRADE_TIMEOUT,Error(`Timed out waiting for upgrade builds to complete`)))]);let v=!m.features?.uiReview&&!m.features?.uiTests;d&&m.tests&&a.info(Pv(m.tests)),l&&(l.unavailable?a.warn(zv({build:m})):m.turboSnapEnabled&&a.info(ov({build:m,options:n.options})));let y;if(m.wasLimited){let{account:e}=m.app;e?.exceededThreshold?(a.warn(Rv(e)),y={code:t.C.ACCOUNT_QUOTA_REACHED,userError:!0}):e?.paymentRequired?(a.warn(Lv(e)),y={code:t.C.ACCOUNT_PAYMENT_REQUIRED,userError:!0}):(e&&a.warn(Iv(e)),y={code:t.C.BUILD_WAS_LIMITED,userError:!0})}m&&c&&a.info(Fv({storybookUrl:c,build:m,options:n.options,isReactNativeApp:n.isReactNativeApp}));let b=!!(d||v||u?.(n.options.exitOnceUploaded));return{build:m,isPublishOnly:v,skipSnapshots:b,limitExitCode:y}};async function Vv(e,t){if(e.options.dryRun)return{kind:`skip-self`};let{announcedBuild:n,storybookUrl:r}=await jv(e,{announcedBuild:t.announcedBuild,options:t.options,replacementBuildIds:t.replacementBuildIds,onlyStoryFiles:t.onlyStoryFiles,turboSnap:t.turboSnap}),{build:i,isPublishOnly:a,skipSnapshots:o,limitExitCode:s}=await Bv(e,{announcedBuild:n,build:t.build,storybookUrl:r,options:t.options,onlyStoryFiles:t.onlyStoryFiles,matchesBranch:t.matchesBranch,turboSnap:t.turboSnap,isReactNativeApp:t.isReactNativeApp});return{kind:`continue`,output:{announcedBuild:n,storybookUrl:r,build:i,isPublishOnly:a,skipSnapshots:o,limitExitCode:s}}}const Hv=e=>({announcedBuild:e.announcedBuild,build:e.build,replacementBuildIds:e.git.replacementBuildIds,options:e.options,onlyStoryFiles:e.onlyStoryFiles,matchesBranch:e.git.matchesBranch,turboSnap:e.turboSnap,isReactNativeApp:e.isReactNativeApp}),Uv=(e,n)=>{e.announcedBuild=n.announcedBuild,e.storybookUrl=n.storybookUrl,e.build=n.build,e.isPublishOnly=n.isPublishOnly,n.limitExitCode&&t.w(e,n.limitExitCode.code,n.limitExitCode.userError),n.skipSnapshots&&(t.w(e,t.C.OK),e.skipSnapshots=!0)};async function Wv(e){await Ip(e,{name:`verify`,title:Cv(e).title,transitions:{pending:Tv,success:Av,skipped:wv},extractInput:Hv,run:Vv,applyOutput:Uv},Gp(e,Vm))}var Gv=e.t(((e,t)=>{let n=require(`fs`),r=require(`path`),{promisify:i}=require(`util`),a=require(`semver`).satisfies(process.version,`>=10.12.0`),o=e=>{if(process.platform===`win32`&&/[<>:"|?*]/.test(e.replace(r.parse(e).root,``))){let t=Error(`Path contains invalid characters: ${e}`);throw t.code=`EINVAL`,t}},s=e=>({mode:511,fs:n,...e}),c=e=>{let t=Error(`operation not permitted, mkdir '${e}'`);return t.code=`EPERM`,t.errno=-4048,t.path=e,t.syscall=`mkdir`,t};t.exports=async(e,t)=>{o(e),t=s(t);let l=i(t.fs.mkdir),u=i(t.fs.stat);if(a&&t.fs.mkdir===n.mkdir){let n=r.resolve(e);return await l(n,{mode:t.mode,recursive:!0}),n}let d=async e=>{try{return await l(e,t.mode),e}catch(t){if(t.code===`EPERM`)throw t;if(t.code===`ENOENT`){if(r.dirname(e)===e)throw c(e);if(t.message.includes(`null bytes`))throw t;return await d(r.dirname(e)),d(e)}try{if(!(await u(e)).isDirectory())throw Error(`The path is not a directory`)}catch{throw t}return e}};return d(r.resolve(e))},t.exports.sync=(e,t)=>{if(o(e),t=s(t),a&&t.fs.mkdirSync===n.mkdirSync){let i=r.resolve(e);return n.mkdirSync(i,{mode:t.mode,recursive:!0}),i}let i=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(n){if(n.code===`EPERM`)throw n;if(n.code===`ENOENT`){if(r.dirname(e)===e)throw c(e);if(n.message.includes(`null bytes`))throw n;return i(r.dirname(e)),i(e)}try{if(!t.fs.statSync(e).isDirectory())throw Error(`The path is not a directory`)}catch{throw n}}return e};return i(r.resolve(e))}})),Kv=e.t(((e,t)=>{function n(e,t){for(var n=e.toString();n.length<t;)n=`0`+n;return n}function r(e){return n(e,2)}function i(e){var t=Math.abs(e),n=String(Math.floor(t/60)),r=String(t%60);return n=(`0`+n).slice(-2),r=(`0`+r).slice(-2),e===0?`Z`:(e<0?`+`:`-`)+n+`:`+r}function a(e,a){typeof e!=`string`&&(a=e,e=t.exports.ISO8601_FORMAT),a||=t.exports.now();var o=r(a.getDate()),s=r(a.getMonth()+1),c=r(a.getFullYear()),l=r(c.substring(2,4)),u=e.indexOf(`yyyy`)>-1?c:l,d=r(a.getHours()),f=r(a.getMinutes()),p=r(a.getSeconds()),m=n(a.getMilliseconds(),3),h=i(a.getTimezoneOffset());return e.replace(/dd/g,o).replace(/MM/g,s).replace(/y{1,4}/g,u).replace(/hh/g,d).replace(/mm/g,f).replace(/ss/g,p).replace(/SSS/g,m).replace(/O/g,h)}function o(e,t,n,r){e[`set`+(r?``:`UTC`)+t](n)}function s(e,n,r){var i=e.indexOf(`O`)<0,a=[{pattern:/y{1,4}/,regexp:`\\d{1,4}`,fn:function(e,t){o(e,`FullYear`,t,i)}},{pattern:/MM/,regexp:`\\d{1,2}`,fn:function(e,t){o(e,`Month`,t-1,i)}},{pattern:/dd/,regexp:`\\d{1,2}`,fn:function(e,t){o(e,`Date`,t,i)}},{pattern:/hh/,regexp:`\\d{1,2}`,fn:function(e,t){o(e,`Hours`,t,i)}},{pattern:/mm/,regexp:`\\d\\d`,fn:function(e,t){o(e,`Minutes`,t,i)}},{pattern:/ss/,regexp:`\\d\\d`,fn:function(e,t){o(e,`Seconds`,t,i)}},{pattern:/SSS/,regexp:`\\d\\d\\d`,fn:function(e,t){o(e,`Milliseconds`,t,i)}},{pattern:/O/,regexp:`[+-]\\d{1,2}:?\\d{2}?|Z`,fn:function(e,t){t=t===`Z`?0:t.replace(`:`,``);var n=Math.abs(t),r=(t>0?-1:1)*(n%100+Math.floor(n/100)*60);e.setUTCMinutes(e.getUTCMinutes()+r)}}],s=a.reduce(function(e,t){return t.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,`(`+t.regexp+`)`)):t.index=-1,e},{regexp:e,index:[]}),c=a.filter(function(e){return e.index>-1});c.sort(function(e,t){return e.index-t.index});var l=new RegExp(s.regexp).exec(n);if(l){var u=r||t.exports.now();return c.forEach(function(e,t){e.fn(u,l[t+1])}),u}throw Error(`String '`+n+`' could not be parsed as '`+e+`'`)}function c(e,t,n){if(!e)throw Error(`pattern must be supplied`);return s(e,t,n)}function l(){return new Date}t.exports=a,t.exports.asString=a,t.exports.parse=c,t.exports.now=l,t.exports.ISO8601_FORMAT=`yyyy-MM-ddThh:mm:ss.SSS`,t.exports.ISO8601_WITH_TZ_OFFSET_FORMAT=`yyyy-MM-ddThh:mm:ss.SSSO`,t.exports.DATETIME_FORMAT=`dd MM yyyy hh:mm:ss.SSS`,t.exports.ABSOLUTETIME_FORMAT=`hh:mm:ss.SSS`})),qv=e.t(((e,n)=>{var r=t.a(),i=Kv().asString;function a(e){this._factory=e,this._attributes={},this._testCases=[],this._properties=[]}a.prototype.name=function(e){return this._attributes.name=e,this},a.prototype.time=function(e){return this._attributes.time=e,this},a.prototype.timestamp=function(e){return r.isDate(e)?this._attributes.timestamp=i(`yyyy-MM-ddThh:mm:ss`,e):this._attributes.timestamp=e,this},a.prototype.property=function(e,t){return this._properties.push({name:e,value:t}),this},a.prototype.testCase=function(){var e=this._factory.newTestCase();return this._testCases.push(e),e},a.prototype.getFailureCount=function(){return this._sumTestCaseCounts(function(e){return e.getFailureCount()})},a.prototype.getErrorCount=function(){return this._sumTestCaseCounts(function(e){return e.getErrorCount()})},a.prototype.getSkippedCount=function(){return this._sumTestCaseCounts(function(e){return e.getSkippedCount()})},a.prototype._sumTestCaseCounts=function(e){var t=r.map(this._testCases,e);return r.sum(t)},a.prototype.build=function(e){this._attributes.tests=this._testCases.length,this._attributes.failures=this.getFailureCount(),this._attributes.errors=this.getErrorCount(),this._attributes.skipped=this.getSkippedCount();var t=e.ele(`testsuite`,this._attributes);if(this._properties.length){var n=t.ele(`properties`);r.forEach(this._properties,function(e){n.ele(`property`,{name:e.name,value:e.value})})}r.forEach(this._testCases,function(e){e.build(t)})},n.exports=a})),Jv=e.t(((e,n)=>{var r=t.a();function i(){this._error=!1,this._failure=!1,this._skipped=!1,this._standardOutput=void 0,this._standardError=void 0,this._stacktrace=void 0,this._attributes={},this._errorAttributes={},this._failureAttributes={},this._errorAttachment=void 0,this._errorContent=void 0,this._properties=[]}i.prototype.className=function(e){return this._attributes.classname=e,this},i.prototype.name=function(e){return this._attributes.name=e,this},i.prototype.time=function(e){return this._attributes.time=e,this},i.prototype.file=function(e){return this._attributes.file=e,this},i.prototype.failure=function(e,t){return this._failure=!0,e&&(this._failureAttributes.message=e),t&&(this._failureAttributes.type=t),this},i.prototype.error=function(e,t,n){return this._error=!0,e&&(this._errorAttributes.message=e),t&&(this._errorAttributes.type=t),n&&(this._errorContent=n),this},i.prototype.stacktrace=function(e){return this._failure=!0,this._stacktrace=e,this},i.prototype.skipped=function(){return this._skipped=!0,this},i.prototype.standardOutput=function(e){return this._standardOutput=e,this},i.prototype.standardError=function(e){return this._standardError=e,this},i.prototype.getFailureCount=function(){return Number(this._failure)},i.prototype.getErrorCount=function(){return Number(this._error)},i.prototype.getSkippedCount=function(){return Number(this._skipped)},i.prototype.errorAttachment=function(e){return this._errorAttachment=e,this},i.prototype.property=function(e,t){return this._properties.push({name:e,value:t}),this},i.prototype.build=function(e){var t=e.ele(`testcase`,this._attributes);if(this._properties.length){var n=t.ele(`properties`);r.forEach(this._properties,function(e){n.ele(`property`,{name:e.name,value:e.value})})}if(this._failure){var i=t.ele(`failure`,this._failureAttributes);this._stacktrace&&i.cdata(this._stacktrace)}if(this._error){var a=t.ele(`error`,this._errorAttributes);this._errorContent&&a.cdata(this._errorContent)}this._skipped&&t.ele(`skipped`),this._standardOutput&&t.ele(`system-out`).cdata(this._standardOutput);var o;this._standardError&&(o=t.ele(`system-err`).cdata(this._standardError),this._errorAttachment&&o.txt(`[[ATTACHMENT|`+this._errorAttachment+`]]`))},n.exports=i})),Yv=e.t(((e,n)=>{var r=t.a(),i=a.a(),o=require(`path`),s=Gv(),c=require(`fs`);qv(),Jv();function l(e){this._factory=e,this._testSuitesAndCases=[]}l.prototype.writeTo=function(e){s.sync(o.dirname(e)),c.writeFileSync(e,this.build(),`utf8`)},l.prototype.build=function(){var e=i.create(`testsuites`,{encoding:`UTF-8`,invalidCharReplacement:``});return r.forEach(this._testSuitesAndCases,function(t){t.build(e)}),e.end({pretty:!0})},l.prototype.testSuite=function(){var e=this._factory.newTestSuite();return this._testSuitesAndCases.push(e),e},l.prototype.testCase=function(){var e=this._factory.newTestCase();return this._testSuitesAndCases.push(e),e},l.prototype.newBuilder=function(){return this._factory.newBuilder()},n.exports=l})),Xv=e.t(((e,t)=>{var n=Yv(),r=qv(),i=Jv();function a(){}a.prototype.newBuilder=function(){return new n(this)},a.prototype.newTestSuite=function(){return new r(this)},a.prototype.newTestCase=function(){return new i(this)},t.exports=a})),Zv=e.t(((e,t)=>{t.exports=new(Xv())().newBuilder()})),Qv=e.a(Zv());const $v={status:`initial`,title:`Generate build report`},ey=()=>({status:`pending`,title:`Generating build report`,output:`Collecting build information`}),ty=e=>({status:`success`,title:`Generated build report`,output:`View report at ${e.reportPath}`}),ny=async e=>{let{log:t}=e,{junitReport:n}=e.options,{number:r}=e.build,i=typeof n==`boolean`&&n?`chromatic-build-{buildNumber}.xml`:n;if(!i){t.debug(`junit report not configured, skipping`);return}e.reportPath=h.default.resolve(i.replaceAll(`{buildNumber}`,String(r)));let a=await ry(e),o=(a.completedAt||Date.now())-a.createdAt,s=Qv.default.testSuite().name(`Chromatic build ${a.number}`).time(Math.round(o/1e3)).timestamp(new Date(a.createdAt).toISOString()).property(`buildNumber`,a.number).property(`buildStatus`,a.status).property(`buildUrl`,a.webUrl).property(`storybookUrl`,a.storybookUrl);for(let e of a.tests)iy(s,e);Qv.default.writeTo(e.reportPath),t.info(Ru(e.reportPath,`JUnit XML`))},ry=async e=>{let t=1e3,n=0,r=[];for(;;){let{app:{build:i}}=await e.client.runQuery(`
query ReportQuery($buildNumber: Int!, $skip: Int, $limit: Int) {
app {
build(number: $buildNumber) {
number
status(legacy: false)
storybookUrl
webUrl
createdAt
completedAt
tests(skip: $skip, limit: $limit) {
status
result
spec {
name
component {
name
displayName
}
}
parameters {
viewport
viewportIsDefault
}
mode {
name
}
}
}
}
}
`,{buildNumber:e.build.number,skip:n,limit:t},{headers:{Authorization:`Bearer ${e.build.reportToken}`}});if(r.push(...i.tests),i.tests.length<t)return{...i,tests:r};n+=t}},iy=(e,t)=>{let{status:n,result:r,spec:i,parameters:a,mode:o}=t,s=o.name||`[${a.viewport}px]`,c=a.viewportIsDefault?``:s,l=e.testCase().className(i.component.name.replaceAll(/[/|]/g,`.`));switch(l.property(`result`,n).name(`${i.name} ${c}`),n){case`FAILED`:l.error(`Server error while taking snapshot, please try again`,n);break;case`BROKEN`:l.error(`Snapshot is broken due to an error in your Storybook`,n);break;case`DENIED`:l.failure(`Snapshot was denied by a user`,n);break;case`PENDING`:l.failure(`Snapshot contains visual changes and must be reviewed`,n);break;default:[`SKIPPED`,`PRESERVED`].includes(r)&&l.skipped()}};function ay(e){return jp({name:`report`,title:$v.title,skip:e=>e.skip,steps:[Pp(ey),ny,Pp(ty,!0)]})}var oy=e.t(((e,t)=>{t.exports={"application/1d-interleaved-parityfec":{source:`iana`},"application/3gpdash-qoe-report+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/3gpp-ims+xml":{source:`iana`,compressible:!0},"application/3gpphal+json":{source:`iana`,compressible:!0},"application/3gpphalforms+json":{source:`iana`,compressible:!0},"application/a2l":{source:`iana`},"application/ace+cbor":{source:`iana`},"application/activemessage":{source:`iana`},"application/activity+json":{source:`iana`,compressible:!0},"application/alto-costmap+json":{source:`iana`,compressible:!0},"application/alto-costmapfilter+json":{source:`iana`,compressible:!0},"application/alto-directory+json":{source:`iana`,compressible:!0},"application/alto-endpointcost+json":{source:`iana`,compressible:!0},"application/alto-endpointcostparams+json":{source:`iana`,compressible:!0},"application/alto-endpointprop+json":{source:`iana`,compressible:!0},"application/alto-endpointpropparams+json":{source:`iana`,compressible:!0},"application/alto-error+json":{source:`iana`,compressible:!0},"application/alto-networkmap+json":{source:`iana`,compressible:!0},"application/alto-networkmapfilter+json":{source:`iana`,compressible:!0},"application/alto-updatestreamcontrol+json":{source:`iana`,compressible:!0},"application/alto-updatestreamparams+json":{source:`iana`,compressible:!0},"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:!0,extensions:[`atom`]},"application/atomcat+xml":{source:`iana`,compressible:!0,extensions:[`atomcat`]},"application/atomdeleted+xml":{source:`iana`,compressible:!0,extensions:[`atomdeleted`]},"application/atomicmail":{source:`iana`},"application/atomsvc+xml":{source:`iana`,compressible:!0,extensions:[`atomsvc`]},"application/atsc-dwd+xml":{source:`iana`,compressible:!0,extensions:[`dwd`]},"application/atsc-dynamic-event-message":{source:`iana`},"application/atsc-held+xml":{source:`iana`,compressible:!0,extensions:[`held`]},"application/atsc-rdt+json":{source:`iana`,compressible:!0},"application/atsc-rsat+xml":{source:`iana`,compressible:!0,extensions:[`rsat`]},"application/atxml":{source:`iana`},"application/auth-policy+xml":{source:`iana`,compressible:!0},"application/bacnet-xdd+zip":{source:`iana`,compressible:!1},"application/batch-smtp":{source:`iana`},"application/bdoc":{compressible:!1,extensions:[`bdoc`]},"application/beep+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/calendar+json":{source:`iana`,compressible:!0},"application/calendar+xml":{source:`iana`,compressible:!0,extensions:[`xcs`]},"application/call-completion":{source:`iana`},"application/cals-1840":{source:`iana`},"application/captive+json":{source:`iana`,compressible:!0},"application/cbor":{source:`iana`},"application/cbor-seq":{source:`iana`},"application/cccex":{source:`iana`},"application/ccmp+xml":{source:`iana`,compressible:!0},"application/ccxml+xml":{source:`iana`,compressible:!0,extensions:[`ccxml`]},"application/cdfx+xml":{source:`iana`,compressible:!0,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:!0},"application/cellml+xml":{source:`iana`,compressible:!0},"application/cfw":{source:`iana`},"application/city+json":{source:`iana`,compressible:!0},"application/clr":{source:`iana`},"application/clue+xml":{source:`iana`,compressible:!0},"application/clue_info+xml":{source:`iana`,compressible:!0},"application/cms":{source:`iana`},"application/cnrp+xml":{source:`iana`,compressible:!0},"application/coap-group+json":{source:`iana`,compressible:!0},"application/coap-payload":{source:`iana`},"application/commonground":{source:`iana`},"application/conference-info+xml":{source:`iana`,compressible:!0},"application/cose":{source:`iana`},"application/cose-key":{source:`iana`},"application/cose-key-set":{source:`iana`},"application/cpl+xml":{source:`iana`,compressible:!0,extensions:[`cpl`]},"application/csrattrs":{source:`iana`},"application/csta+xml":{source:`iana`,compressible:!0},"application/cstadata+xml":{source:`iana`,compressible:!0},"application/csvm+json":{source:`iana`,compressible:!0},"application/cu-seeme":{source:`apache`,extensions:[`cu`]},"application/cwt":{source:`iana`},"application/cybercash":{source:`iana`},"application/dart":{compressible:!0},"application/dash+xml":{source:`iana`,compressible:!0,extensions:[`mpd`]},"application/dash-patch+xml":{source:`iana`,compressible:!0,extensions:[`mpp`]},"application/dashdelta":{source:`iana`},"application/davmount+xml":{source:`iana`,compressible:!0,extensions:[`davmount`]},"application/dca-rft":{source:`iana`},"application/dcd":{source:`iana`},"application/dec-dx":{source:`iana`},"application/dialog-info+xml":{source:`iana`,compressible:!0},"application/dicom":{source:`iana`},"application/dicom+json":{source:`iana`,compressible:!0},"application/dicom+xml":{source:`iana`,compressible:!0},"application/dii":{source:`iana`},"application/dit":{source:`iana`},"application/dns":{source:`iana`},"application/dns+json":{source:`iana`,compressible:!0},"application/dns-message":{source:`iana`},"application/docbook+xml":{source:`apache`,compressible:!0,extensions:[`dbk`]},"application/dots+cbor":{source:`iana`},"application/dskpp+xml":{source:`iana`,compressible:!0},"application/dssc+der":{source:`iana`,extensions:[`dssc`]},"application/dssc+xml":{source:`iana`,compressible:!0,extensions:[`xdssc`]},"application/dvcs":{source:`iana`},"application/ecmascript":{source:`iana`,compressible:!0,extensions:[`es`,`ecma`]},"application/edi-consent":{source:`iana`},"application/edi-x12":{source:`iana`,compressible:!1},"application/edifact":{source:`iana`,compressible:!1},"application/efi":{source:`iana`},"application/elm+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/elm+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.cap+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/emergencycalldata.comment+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.control+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.ecall.msd":{source:`iana`},"application/emergencycalldata.providerinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.veds+xml":{source:`iana`,compressible:!0},"application/emma+xml":{source:`iana`,compressible:!0,extensions:[`emma`]},"application/emotionml+xml":{source:`iana`,compressible:!0,extensions:[`emotionml`]},"application/encaprtp":{source:`iana`},"application/epp+xml":{source:`iana`,compressible:!0},"application/epub+zip":{source:`iana`,compressible:!1,extensions:[`epub`]},"application/eshop":{source:`iana`},"application/exi":{source:`iana`,extensions:[`exi`]},"application/expect-ct-report+json":{source:`iana`,compressible:!0},"application/express":{source:`iana`,extensions:[`exp`]},"application/fastinfoset":{source:`iana`},"application/fastsoap":{source:`iana`},"application/fdt+xml":{source:`iana`,compressible:!0,extensions:[`fdt`]},"application/fhir+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fhir+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"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:!1},"application/framework-attributes+xml":{source:`iana`,compressible:!0},"application/geo+json":{source:`iana`,compressible:!0,extensions:[`geojson`]},"application/geo+json-seq":{source:`iana`},"application/geopackage+sqlite3":{source:`iana`},"application/geoxacml+xml":{source:`iana`,compressible:!0},"application/gltf-buffer":{source:`iana`},"application/gml+xml":{source:`iana`,compressible:!0,extensions:[`gml`]},"application/gpx+xml":{source:`apache`,compressible:!0,extensions:[`gpx`]},"application/gxf":{source:`apache`,extensions:[`gxf`]},"application/gzip":{source:`iana`,compressible:!1,extensions:[`gz`]},"application/h224":{source:`iana`},"application/held+xml":{source:`iana`,compressible:!0},"application/hjson":{extensions:[`hjson`]},"application/http":{source:`iana`},"application/hyperstudio":{source:`iana`,extensions:[`stk`]},"application/ibe-key-request+xml":{source:`iana`,compressible:!0},"application/ibe-pkg-reply+xml":{source:`iana`,compressible:!0},"application/ibe-pp-data":{source:`iana`},"application/iges":{source:`iana`},"application/im-iscomposing+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"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:!0,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:!0,extensions:[`its`]},"application/java-archive":{source:`apache`,compressible:!1,extensions:[`jar`,`war`,`ear`]},"application/java-serialized-object":{source:`apache`,compressible:!1,extensions:[`ser`]},"application/java-vm":{source:`apache`,compressible:!1,extensions:[`class`]},"application/javascript":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`js`,`mjs`]},"application/jf2feed+json":{source:`iana`,compressible:!0},"application/jose":{source:`iana`},"application/jose+json":{source:`iana`,compressible:!0},"application/jrd+json":{source:`iana`,compressible:!0},"application/jscalendar+json":{source:`iana`,compressible:!0},"application/json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`json`,`map`]},"application/json-patch+json":{source:`iana`,compressible:!0},"application/json-seq":{source:`iana`},"application/json5":{extensions:[`json5`]},"application/jsonml+json":{source:`apache`,compressible:!0,extensions:[`jsonml`]},"application/jwk+json":{source:`iana`,compressible:!0},"application/jwk-set+json":{source:`iana`,compressible:!0},"application/jwt":{source:`iana`},"application/kpml-request+xml":{source:`iana`,compressible:!0},"application/kpml-response+xml":{source:`iana`,compressible:!0},"application/ld+json":{source:`iana`,compressible:!0,extensions:[`jsonld`]},"application/lgr+xml":{source:`iana`,compressible:!0,extensions:[`lgr`]},"application/link-format":{source:`iana`},"application/load-control+xml":{source:`iana`,compressible:!0},"application/lost+xml":{source:`iana`,compressible:!0,extensions:[`lostxml`]},"application/lostsync+xml":{source:`iana`,compressible:!0},"application/lpf+zip":{source:`iana`,compressible:!1},"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:!0,extensions:[`mads`]},"application/manifest+json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`webmanifest`]},"application/marc":{source:`iana`,extensions:[`mrc`]},"application/marcxml+xml":{source:`iana`,compressible:!0,extensions:[`mrcx`]},"application/mathematica":{source:`iana`,extensions:[`ma`,`nb`,`mb`]},"application/mathml+xml":{source:`iana`,compressible:!0,extensions:[`mathml`]},"application/mathml-content+xml":{source:`iana`,compressible:!0},"application/mathml-presentation+xml":{source:`iana`,compressible:!0},"application/mbms-associated-procedure-description+xml":{source:`iana`,compressible:!0},"application/mbms-deregister+xml":{source:`iana`,compressible:!0},"application/mbms-envelope+xml":{source:`iana`,compressible:!0},"application/mbms-msk+xml":{source:`iana`,compressible:!0},"application/mbms-msk-response+xml":{source:`iana`,compressible:!0},"application/mbms-protection-description+xml":{source:`iana`,compressible:!0},"application/mbms-reception-report+xml":{source:`iana`,compressible:!0},"application/mbms-register+xml":{source:`iana`,compressible:!0},"application/mbms-register-response+xml":{source:`iana`,compressible:!0},"application/mbms-schedule+xml":{source:`iana`,compressible:!0},"application/mbms-user-service-description+xml":{source:`iana`,compressible:!0},"application/mbox":{source:`iana`,extensions:[`mbox`]},"application/media-policy-dataset+xml":{source:`iana`,compressible:!0,extensions:[`mpf`]},"application/media_control+xml":{source:`iana`,compressible:!0},"application/mediaservercontrol+xml":{source:`iana`,compressible:!0,extensions:[`mscml`]},"application/merge-patch+json":{source:`iana`,compressible:!0},"application/metalink+xml":{source:`apache`,compressible:!0,extensions:[`metalink`]},"application/metalink4+xml":{source:`iana`,compressible:!0,extensions:[`meta4`]},"application/mets+xml":{source:`iana`,compressible:!0,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:!0,extensions:[`maei`]},"application/mmt-usd+xml":{source:`iana`,compressible:!0,extensions:[`musd`]},"application/mods+xml":{source:`iana`,compressible:!0,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:!0},"application/mrb-publish+xml":{source:`iana`,compressible:!0},"application/msc-ivr+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msc-mixer+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msword":{source:`iana`,compressible:!1,extensions:[`doc`,`dot`]},"application/mud+json":{source:`iana`,compressible:!0},"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:!0},"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:!1,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:!0},"application/odx":{source:`iana`},"application/oebps-package+xml":{source:`iana`,compressible:!0,extensions:[`opf`]},"application/ogg":{source:`iana`,compressible:!1,extensions:[`ogx`]},"application/omdoc+xml":{source:`apache`,compressible:!0,extensions:[`omdoc`]},"application/onenote":{source:`apache`,extensions:[`onetoc`,`onetoc2`,`onetmp`,`onepkg`]},"application/opc-nodeset+xml":{source:`iana`,compressible:!0},"application/oscore":{source:`iana`},"application/oxps":{source:`iana`,extensions:[`oxps`]},"application/p21":{source:`iana`},"application/p21+zip":{source:`iana`,compressible:!1},"application/p2p-overlay+xml":{source:`iana`,compressible:!0,extensions:[`relo`]},"application/parityfec":{source:`iana`},"application/passport":{source:`iana`},"application/patch-ops-error+xml":{source:`iana`,compressible:!0,extensions:[`xer`]},"application/pdf":{source:`iana`,compressible:!1,extensions:[`pdf`]},"application/pdx":{source:`iana`},"application/pem-certificate-chain":{source:`iana`},"application/pgp-encrypted":{source:`iana`,compressible:!1,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:!0},"application/pidf-diff+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"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:!0,extensions:[`pls`]},"application/poc-settings+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/postscript":{source:`iana`,compressible:!0,extensions:[`ai`,`eps`,`ps`]},"application/ppsp-tracker+json":{source:`iana`,compressible:!0},"application/problem+json":{source:`iana`,compressible:!0},"application/problem+xml":{source:`iana`,compressible:!0},"application/provenance+xml":{source:`iana`,compressible:!0,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:!1},"application/prs.nprend":{source:`iana`},"application/prs.plucker":{source:`iana`},"application/prs.rdf-xml-crypt":{source:`iana`},"application/prs.xsf+xml":{source:`iana`,compressible:!0},"application/pskc+xml":{source:`iana`,compressible:!0,extensions:[`pskcxml`]},"application/pvd+json":{source:`iana`,compressible:!0},"application/qsig":{source:`iana`},"application/raml+yaml":{compressible:!0,extensions:[`raml`]},"application/raptorfec":{source:`iana`},"application/rdap+json":{source:`iana`,compressible:!0},"application/rdf+xml":{source:`iana`,compressible:!0,extensions:[`rdf`,`owl`]},"application/reginfo+xml":{source:`iana`,compressible:!0,extensions:[`rif`]},"application/relax-ng-compact-syntax":{source:`iana`,extensions:[`rnc`]},"application/remote-printing":{source:`iana`},"application/reputon+json":{source:`iana`,compressible:!0},"application/resource-lists+xml":{source:`iana`,compressible:!0,extensions:[`rl`]},"application/resource-lists-diff+xml":{source:`iana`,compressible:!0,extensions:[`rld`]},"application/rfc+xml":{source:`iana`,compressible:!0},"application/riscos":{source:`iana`},"application/rlmi+xml":{source:`iana`,compressible:!0},"application/rls-services+xml":{source:`iana`,compressible:!0,extensions:[`rs`]},"application/route-apd+xml":{source:`iana`,compressible:!0,extensions:[`rapd`]},"application/route-s-tsid+xml":{source:`iana`,compressible:!0,extensions:[`sls`]},"application/route-usd+xml":{source:`iana`,compressible:!0,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:!0,extensions:[`rsd`]},"application/rss+xml":{source:`apache`,compressible:!0,extensions:[`rss`]},"application/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"application/rtploopback":{source:`iana`},"application/rtx":{source:`iana`},"application/samlassertion+xml":{source:`iana`,compressible:!0},"application/samlmetadata+xml":{source:`iana`,compressible:!0},"application/sarif+json":{source:`iana`,compressible:!0},"application/sarif-external-properties+json":{source:`iana`,compressible:!0},"application/sbe":{source:`iana`},"application/sbml+xml":{source:`iana`,compressible:!0,extensions:[`sbml`]},"application/scaip+xml":{source:`iana`,compressible:!0},"application/scim+json":{source:`iana`,compressible:!0},"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:!0},"application/senml+xml":{source:`iana`,compressible:!0,extensions:[`senmlx`]},"application/senml-etch+cbor":{source:`iana`},"application/senml-etch+json":{source:`iana`,compressible:!0},"application/senml-exi":{source:`iana`},"application/sensml+cbor":{source:`iana`},"application/sensml+json":{source:`iana`,compressible:!0},"application/sensml+xml":{source:`iana`,compressible:!0,extensions:[`sensmlx`]},"application/sensml-exi":{source:`iana`},"application/sep+xml":{source:`iana`,compressible:!0},"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:!0,extensions:[`shf`]},"application/sieve":{source:`iana`,extensions:[`siv`,`sieve`]},"application/simple-filter+xml":{source:`iana`,compressible:!0},"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:!0,extensions:[`smi`,`smil`]},"application/smpte336m":{source:`iana`},"application/soap+fastinfoset":{source:`iana`},"application/soap+xml":{source:`iana`,compressible:!0},"application/sparql-query":{source:`iana`,extensions:[`rq`]},"application/sparql-results+xml":{source:`iana`,compressible:!0,extensions:[`srx`]},"application/spdx+json":{source:`iana`,compressible:!0},"application/spirits-event+xml":{source:`iana`,compressible:!0},"application/sql":{source:`iana`},"application/srgs":{source:`iana`,extensions:[`gram`]},"application/srgs+xml":{source:`iana`,compressible:!0,extensions:[`grxml`]},"application/sru+xml":{source:`iana`,compressible:!0,extensions:[`sru`]},"application/ssdl+xml":{source:`apache`,compressible:!0,extensions:[`ssdl`]},"application/ssml+xml":{source:`iana`,compressible:!0,extensions:[`ssml`]},"application/stix+json":{source:`iana`,compressible:!0},"application/swid+xml":{source:`iana`,compressible:!0,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:!0},"application/taxii+json":{source:`iana`,compressible:!0},"application/td+json":{source:`iana`,compressible:!0},"application/tei+xml":{source:`iana`,compressible:!0,extensions:[`tei`,`teicorpus`]},"application/tetra_isi":{source:`iana`},"application/thraud+xml":{source:`iana`,compressible:!0,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:!0},"application/tnauthlist":{source:`iana`},"application/token-introspection+jwt":{source:`iana`},"application/toml":{compressible:!0,extensions:[`toml`]},"application/trickle-ice-sdpfrag":{source:`iana`},"application/trig":{source:`iana`,extensions:[`trig`]},"application/ttml+xml":{source:`iana`,compressible:!0,extensions:[`ttml`]},"application/tve-trigger":{source:`iana`},"application/tzif":{source:`iana`},"application/tzif-leap":{source:`iana`},"application/ubjson":{compressible:!1,extensions:[`ubj`]},"application/ulpfec":{source:`iana`},"application/urc-grpsheet+xml":{source:`iana`,compressible:!0},"application/urc-ressheet+xml":{source:`iana`,compressible:!0,extensions:[`rsheet`]},"application/urc-targetdesc+xml":{source:`iana`,compressible:!0,extensions:[`td`]},"application/urc-uisocketdesc+xml":{source:`iana`,compressible:!0},"application/vcard+json":{source:`iana`,compressible:!0},"application/vcard+xml":{source:`iana`,compressible:!0},"application/vemmi":{source:`iana`},"application/vividence.scriptfile":{source:`apache`},"application/vnd.1000minds.decision-model+xml":{source:`iana`,compressible:!0,extensions:[`1km`]},"application/vnd.3gpp-prose+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:`iana`,compressible:!0},"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:!0},"application/vnd.3gpp.bsf+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gmop+xml":{source:`iana`,compressible:!0},"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:!0},"application/vnd.3gpp.mcdata-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:`iana`},"application/vnd.3gpp.mcdata-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:`iana`},"application/vnd.3gpp.mcdata-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:`iana`,compressible:!0},"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:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ussd+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:`iana`,compressible:!0},"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:!1,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:!0,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:!0},"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:!0},"application/vnd.android.ota":{source:`iana`},"application/vnd.android.package-archive":{source:`apache`,compressible:!1,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:!0},"application/vnd.aplextor.warrp+json":{source:`iana`,compressible:!0},"application/vnd.apothekende.reservation+json":{source:`iana`,compressible:!0},"application/vnd.apple.installer+xml":{source:`iana`,compressible:!0,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:!1,extensions:[`pkpass`]},"application/vnd.arastra.swi":{source:`iana`},"application/vnd.aristanetworks.swi":{source:`iana`,extensions:[`swi`]},"application/vnd.artisan+json":{source:`iana`,compressible:!0},"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:!0},"application/vnd.avistar+xml":{source:`iana`,compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:`iana`,compressible:!0,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:!0},"application/vnd.bekitzur-stech+json":{source:`iana`,compressible:!0},"application/vnd.bint.med-content":{source:`iana`},"application/vnd.biopax.rdf+xml":{source:`iana`,compressible:!0},"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:!0},"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:!0},"application/vnd.cendio.thinlinc.clientconf":{source:`iana`},"application/vnd.century-systems.tcp_stream":{source:`iana`},"application/vnd.chemdraw+xml":{source:`iana`,compressible:!0,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:!0,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:!0},"application/vnd.collection.doc+json":{source:`iana`,compressible:!0},"application/vnd.collection.next+json":{source:`iana`,compressible:!0},"application/vnd.comicbook+zip":{source:`iana`,compressible:!1},"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:!0},"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:!0,extensions:[`wbs`]},"application/vnd.cryptii.pipe+json":{source:`iana`,compressible:!0},"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:!0},"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:!0},"application/vnd.cybank":{source:`iana`},"application/vnd.cyclonedx+json":{source:`iana`,compressible:!0},"application/vnd.cyclonedx+xml":{source:`iana`,compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:`iana`,compressible:!1},"application/vnd.d3m-dataset":{source:`iana`},"application/vnd.d3m-problem":{source:`iana`},"application/vnd.dart":{source:`iana`,compressible:!0,extensions:[`dart`]},"application/vnd.data-vision.rdz":{source:`iana`,extensions:[`rdz`]},"application/vnd.datapackage+json":{source:`iana`,compressible:!0},"application/vnd.dataresource+json":{source:`iana`,compressible:!0},"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:!0,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:!0},"application/vnd.dna":{source:`iana`,extensions:[`dna`]},"application/vnd.document+json":{source:`iana`,compressible:!0},"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:!0},"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:!0},"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:!0},"application/vnd.dvb.notif-container+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-init+xml":{source:`iana`,compressible:!0},"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:!0},"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:!0},"application/vnd.enliven":{source:`iana`,extensions:[`nml`]},"application/vnd.enphase.envoy":{source:`iana`},"application/vnd.eprints.data+xml":{source:`iana`,compressible:!0},"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:!1},"application/vnd.eszigno3+xml":{source:`iana`,compressible:!0,extensions:[`es3`,`et3`]},"application/vnd.etsi.aoc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.asic-e+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.asic-s+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.cug+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mcid+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mheg5":{source:`iana`},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.pstn+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.sci+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.simservs+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.timestamp-token":{source:`iana`},"application/vnd.etsi.tsl+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.tsl.der":{source:`iana`},"application/vnd.eu.kasparian.car+json":{source:`iana`,compressible:!0},"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:!1},"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:!1},"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:!1},"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:!0},"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:!0},"application/vnd.fuzzysheet":{source:`iana`,extensions:[`fzs`]},"application/vnd.genomatix.tuxedo":{source:`iana`,extensions:[`txd`]},"application/vnd.gentics.grd+json":{source:`iana`,compressible:!0},"application/vnd.geo+json":{source:`iana`,compressible:!0},"application/vnd.geocube+xml":{source:`iana`,compressible:!0},"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:!1,extensions:[`gdoc`]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:[`gslides`]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:[`gsheet`]},"application/vnd.google-earth.kml+xml":{source:`iana`,compressible:!0,extensions:[`kml`]},"application/vnd.google-earth.kmz":{source:`iana`,compressible:!1,extensions:[`kmz`]},"application/vnd.gov.sk.e-form+xml":{source:`iana`,compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:`iana`,compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:`iana`,compressible:!0},"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:!0},"application/vnd.hal+xml":{source:`iana`,compressible:!0,extensions:[`hal`]},"application/vnd.handheld-entertainment+xml":{source:`iana`,compressible:!0,extensions:[`zmm`]},"application/vnd.hbci":{source:`iana`,extensions:[`hbci`]},"application/vnd.hc+json":{source:`iana`,compressible:!0},"application/vnd.hcl-bireports":{source:`iana`},"application/vnd.hdt":{source:`iana`},"application/vnd.heroku+json":{source:`iana`,compressible:!0},"application/vnd.hhe.lesson-player":{source:`iana`,extensions:[`les`]},"application/vnd.hl7cda+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hl7v2+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"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:!0},"application/vnd.hyper-item+json":{source:`iana`,compressible:!0},"application/vnd.hyperdrive+json":{source:`iana`,compressible:!0},"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:!1},"application/vnd.imagemeter.image+zip":{source:`iana`,compressible:!1},"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:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:`iana`,compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:`iana`,compressible:!0},"application/vnd.informix-visionary":{source:`iana`},"application/vnd.infotech.project":{source:`iana`},"application/vnd.infotech.project+xml":{source:`iana`,compressible:!0},"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:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:`iana`,compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:`iana`,extensions:[`rcprofile`]},"application/vnd.irepository.package+xml":{source:`iana`,compressible:!0,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:!1},"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:!0},"application/vnd.las.las+xml":{source:`iana`,compressible:!0,extensions:[`lasxml`]},"application/vnd.laszip":{source:`iana`},"application/vnd.leap+json":{source:`iana`,compressible:!0},"application/vnd.liberty-request+xml":{source:`iana`,compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:`iana`,extensions:[`lbd`]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:`iana`,compressible:!0,extensions:[`lbe`]},"application/vnd.logipipe.circuit+zip":{source:`iana`,compressible:!1},"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:!0},"application/vnd.marlin.drm.conftoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.license+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.mdcf":{source:`iana`},"application/vnd.mason+json":{source:`iana`,compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:`iana`,compressible:!1},"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:!0},"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:!0},"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:!0,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:!1,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:!0,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:!0},"application/vnd.ms-officetheme":{source:`iana`,extensions:[`thmx`]},"application/vnd.ms-opentype":{source:`apache`,compressible:!0},"application/vnd.ms-outlook":{compressible:!1,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:!0},"application/vnd.ms-powerpoint":{source:`iana`,compressible:!1,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:!0},"application/vnd.ms-printing.printticket+xml":{source:`apache`,compressible:!0},"application/vnd.ms-printschematicket+xml":{source:`iana`,compressible:!0},"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:!1,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:!0},"application/vnd.ncd.control":{source:`iana`},"application/vnd.ncd.reference":{source:`iana`},"application/vnd.nearst.inv+json":{source:`iana`,compressible:!0},"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:!0},"application/vnd.nokia.iptv.config+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:`iana`},"application/vnd.nokia.landmark+wbxml":{source:`iana`},"application/vnd.nokia.landmark+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:`iana`,compressible:!0,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:!0},"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:!1,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:!1,extensions:[`odp`]},"application/vnd.oasis.opendocument.presentation-template":{source:`iana`,extensions:[`otp`]},"application/vnd.oasis.opendocument.spreadsheet":{source:`iana`,compressible:!1,extensions:[`ods`]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:`iana`,extensions:[`ots`]},"application/vnd.oasis.opendocument.text":{source:`iana`,compressible:!1,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:!0},"application/vnd.oftn.l10n+json":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:`iana`},"application/vnd.oipf.dae.svg+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.pae.gem":{source:`iana`},"application/vnd.oipf.spdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.spdlist+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.userprofile+xml":{source:`iana`,compressible:!0},"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:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.ltkm":{source:`iana`},"application/vnd.oma.bcast.notification+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:`iana`},"application/vnd.oma.bcast.sgboot":{source:`iana`},"application/vnd.oma.bcast.sgdd+xml":{source:`iana`,compressible:!0},"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:!0},"application/vnd.oma.bcast.sprov+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.stkm":{source:`iana`},"application/vnd.oma.cab-address-book+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:`iana`,compressible:!0},"application/vnd.oma.dcd":{source:`iana`},"application/vnd.oma.dcdc":{source:`iana`},"application/vnd.oma.dd2+xml":{source:`iana`,compressible:!0,extensions:[`dd2`]},"application/vnd.oma.drm.risd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:`iana`},"application/vnd.oma.lwm2m+json":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:`iana`},"application/vnd.oma.pal+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.groups+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.push":{source:`iana`},"application/vnd.oma.scidm.messages+xml":{source:`iana`,compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:`iana`,compressible:!0},"application/vnd.omads-email+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-file+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-folder+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"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:!0,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:!0,extensions:[`osm`]},"application/vnd.opentimestamps.ots":{source:`iana`},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:`iana`,compressible:!1,extensions:[`pptx`]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:`iana`,extensions:[`sldx`]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:`iana`,extensions:[`ppsx`]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:`iana`,extensions:[`potx`]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:`iana`,compressible:!1,extensions:[`xlsx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:`iana`,extensions:[`xltx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:`iana`},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:`iana`,compressible:!1,extensions:[`docx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:`iana`,extensions:[`dotx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:`iana`,compressible:!0},"application/vnd.oracle.resource+json":{source:`iana`,compressible:!0},"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:!0},"application/vnd.oxli.countgraph":{source:`iana`},"application/vnd.pagerduty+json":{source:`iana`,compressible:!0},"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:!0},"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:!0},"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:!0},"application/vnd.radisys.msml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:`iana`,compressible:!0},"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:!0,extensions:[`musicxml`]},"application/vnd.renlearn.rlprint":{source:`iana`},"application/vnd.resilient.logic":{source:`iana`},"application/vnd.restful+json":{source:`iana`,compressible:!0},"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:!0,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:!0},"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:!0},"application/vnd.shopkick+json":{source:`iana`,compressible:!0},"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:!0},"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:!0,extensions:[`fo`]},"application/vnd.software602.filler.form-xml-zip":{source:`iana`},"application/vnd.solent.sdkm+xml":{source:`iana`,compressible:!0,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:!0,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:!0},"application/vnd.syft+json":{source:`iana`,compressible:!0},"application/vnd.symbian.install":{source:`apache`,extensions:[`sis`,`sisx`]},"application/vnd.syncml+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,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:!0,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:!0,extensions:[`ddf`]},"application/vnd.syncml.dmtnds+wbxml":{source:`iana`},"application/vnd.syncml.dmtnds+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.syncml.ds.notification":{source:`iana`},"application/vnd.tableschema+json":{source:`iana`,compressible:!0},"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:!0},"application/vnd.tmd.mediaflex.api+xml":{source:`iana`,compressible:!0},"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:!0,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:!0},"application/vnd.verimatrix.vcas":{source:`iana`},"application/vnd.veritone.aion+json":{source:`iana`,compressible:!0},"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:!0},"application/vnd.wv.ssp+xml":{source:`iana`,compressible:!0},"application/vnd.xacml+json":{source:`iana`,compressible:!0},"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:!0},"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:!0,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:!0,extensions:[`zaz`]},"application/voicexml+xml":{source:`iana`,compressible:!0,extensions:[`vxml`]},"application/voucher-cms+json":{source:`iana`,compressible:!0},"application/vq-rtcpxr":{source:`iana`},"application/wasm":{source:`iana`,compressible:!0,extensions:[`wasm`]},"application/watcherinfo+xml":{source:`iana`,compressible:!0,extensions:[`wif`]},"application/webpush-options+json":{source:`iana`,compressible:!0},"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:!0,extensions:[`wsdl`]},"application/wspolicy+xml":{source:`iana`,compressible:!0,extensions:[`wspolicy`]},"application/x-7z-compressed":{source:`apache`,compressible:!1,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:!1,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:!1,extensions:[`bdoc`]},"application/x-bittorrent":{source:`apache`,extensions:[`torrent`]},"application/x-blorb":{source:`apache`,extensions:[`blb`,`blorb`]},"application/x-bzip":{source:`apache`,compressible:!1,extensions:[`bz`]},"application/x-bzip2":{source:`apache`,compressible:!1,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:!1},"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:!0,extensions:[`ncx`]},"application/x-dtbook+xml":{source:`apache`,compressible:!0,extensions:[`dtb`]},"application/x-dtbresource+xml":{source:`apache`,compressible:!0,extensions:[`res`]},"application/x-dvi":{source:`apache`,compressible:!1,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:!0,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:!1,extensions:[`jnlp`]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:[`kdbx`]},"application/x-latex":{source:`apache`,compressible:!1,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:!1},"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:!0,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:!1,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:!1,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:!0,extensions:[`sh`]},"application/x-shar":{source:`apache`,extensions:[`shar`]},"application/x-shockwave-flash":{source:`apache`,compressible:!1,extensions:[`swf`]},"application/x-silverlight-app":{source:`apache`,extensions:[`xap`]},"application/x-sql":{source:`apache`,extensions:[`sql`]},"application/x-stuffit":{source:`apache`,compressible:!1,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:!0,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:!0,extensions:[`hdd`]},"application/x-virtualbox-ova":{compressible:!0,extensions:[`ova`]},"application/x-virtualbox-ovf":{compressible:!0,extensions:[`ovf`]},"application/x-virtualbox-vbox":{compressible:!0,extensions:[`vbox`]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:[`vbox-extpack`]},"application/x-virtualbox-vdi":{compressible:!0,extensions:[`vdi`]},"application/x-virtualbox-vhd":{compressible:!0,extensions:[`vhd`]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:[`vmdk`]},"application/x-wais-source":{source:`apache`,extensions:[`src`]},"application/x-web-app-manifest+json":{compressible:!0,extensions:[`webapp`]},"application/x-www-form-urlencoded":{source:`iana`,compressible:!0},"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:!0,extensions:[`xlf`]},"application/x-xpinstall":{source:`apache`,compressible:!1,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:!0},"application/xaml+xml":{source:`apache`,compressible:!0,extensions:[`xaml`]},"application/xcap-att+xml":{source:`iana`,compressible:!0,extensions:[`xav`]},"application/xcap-caps+xml":{source:`iana`,compressible:!0,extensions:[`xca`]},"application/xcap-diff+xml":{source:`iana`,compressible:!0,extensions:[`xdf`]},"application/xcap-el+xml":{source:`iana`,compressible:!0,extensions:[`xel`]},"application/xcap-error+xml":{source:`iana`,compressible:!0},"application/xcap-ns+xml":{source:`iana`,compressible:!0,extensions:[`xns`]},"application/xcon-conference-info+xml":{source:`iana`,compressible:!0},"application/xcon-conference-info-diff+xml":{source:`iana`,compressible:!0},"application/xenc+xml":{source:`iana`,compressible:!0,extensions:[`xenc`]},"application/xhtml+xml":{source:`iana`,compressible:!0,extensions:[`xhtml`,`xht`]},"application/xhtml-voice+xml":{source:`apache`,compressible:!0},"application/xliff+xml":{source:`iana`,compressible:!0,extensions:[`xlf`]},"application/xml":{source:`iana`,compressible:!0,extensions:[`xml`,`xsl`,`xsd`,`rng`]},"application/xml-dtd":{source:`iana`,compressible:!0,extensions:[`dtd`]},"application/xml-external-parsed-entity":{source:`iana`},"application/xml-patch+xml":{source:`iana`,compressible:!0},"application/xmpp+xml":{source:`iana`,compressible:!0},"application/xop+xml":{source:`iana`,compressible:!0,extensions:[`xop`]},"application/xproc+xml":{source:`apache`,compressible:!0,extensions:[`xpl`]},"application/xslt+xml":{source:`iana`,compressible:!0,extensions:[`xsl`,`xslt`]},"application/xspf+xml":{source:`apache`,compressible:!0,extensions:[`xspf`]},"application/xv+xml":{source:`iana`,compressible:!0,extensions:[`mxml`,`xhvml`,`xvml`,`xvm`]},"application/yang":{source:`iana`,extensions:[`yang`]},"application/yang-data+json":{source:`iana`,compressible:!0},"application/yang-data+xml":{source:`iana`,compressible:!0},"application/yang-patch+json":{source:`iana`,compressible:!0},"application/yang-patch+xml":{source:`iana`,compressible:!0},"application/yin+xml":{source:`iana`,compressible:!0,extensions:[`yin`]},"application/zip":{source:`iana`,compressible:!1,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:!1,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:!1,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:!1},"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:!1,extensions:[`mp3`]},"audio/mp4":{source:`iana`,compressible:!1,extensions:[`m4a`,`mp4a`]},"audio/mp4a-latm":{source:`iana`},"audio/mpa":{source:`iana`},"audio/mpa-robust":{source:`iana`},"audio/mpeg":{source:`iana`,compressible:!1,extensions:[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`]},"audio/mpeg4-generic":{source:`iana`},"audio/musepack":{source:`apache`},"audio/ogg":{source:`iana`,compressible:!1,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:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:`iana`},"audio/vnd.vmx.cvsd":{source:`iana`},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:`iana`,compressible:!1},"audio/vorbis-config":{source:`iana`},"audio/wav":{compressible:!1,extensions:[`wav`]},"audio/wave":{compressible:!1,extensions:[`wav`]},"audio/webm":{source:`apache`,compressible:!1,extensions:[`weba`]},"audio/x-aac":{source:`apache`,compressible:!1,extensions:[`aac`]},"audio/x-aiff":{source:`apache`,extensions:[`aif`,`aiff`,`aifc`]},"audio/x-caf":{source:`apache`,compressible:!1,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:!0,extensions:[`otf`]},"font/sfnt":{source:`iana`},"font/ttf":{source:`iana`,compressible:!0,extensions:[`ttf`]},"font/woff":{source:`iana`,extensions:[`woff`]},"font/woff2":{source:`iana`,extensions:[`woff2`]},"image/aces":{source:`iana`,extensions:[`exr`]},"image/apng":{compressible:!1,extensions:[`apng`]},"image/avci":{source:`iana`,extensions:[`avci`]},"image/avcs":{source:`iana`,extensions:[`avcs`]},"image/avif":{source:`iana`,compressible:!1,extensions:[`avif`]},"image/bmp":{source:`iana`,compressible:!0,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:!1,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:!1,extensions:[`jp2`,`jpg2`]},"image/jpeg":{source:`iana`,compressible:!1,extensions:[`jpeg`,`jpg`,`jpe`]},"image/jph":{source:`iana`,extensions:[`jph`]},"image/jphc":{source:`iana`,extensions:[`jhc`]},"image/jpm":{source:`iana`,compressible:!1,extensions:[`jpm`]},"image/jpx":{source:`iana`,compressible:!1,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:!1},"image/png":{source:`iana`,compressible:!1,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:!0,extensions:[`svg`,`svgz`]},"image/t38":{source:`iana`,extensions:[`t38`]},"image/tiff":{source:`iana`,compressible:!1,extensions:[`tif`,`tiff`]},"image/tiff-fx":{source:`iana`,extensions:[`tfx`]},"image/vnd.adobe.photoshop":{source:`iana`,compressible:!0,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:!0,extensions:[`ico`]},"image/vnd.mix":{source:`iana`},"image/vnd.mozilla.apng":{source:`iana`},"image/vnd.ms-dds":{compressible:!0,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:!0,extensions:[`ico`]},"image/x-jng":{source:`nginx`,extensions:[`jng`]},"image/x-mrsid-image":{source:`apache`,extensions:[`sid`]},"image/x-ms-bmp":{source:`nginx`,compressible:!0,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:!1},"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:!1},"message/imdn+xml":{source:`iana`,compressible:!0},"message/news":{source:`iana`},"message/partial":{source:`iana`,compressible:!1},"message/rfc822":{source:`iana`,compressible:!0,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:!0,extensions:[`gltf`]},"model/gltf-binary":{source:`iana`,compressible:!0,extensions:[`glb`]},"model/iges":{source:`iana`,compressible:!1,extensions:[`igs`,`iges`]},"model/mesh":{source:`iana`,compressible:!1,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:!0,extensions:[`stpx`]},"model/step+zip":{source:`iana`,compressible:!1,extensions:[`stpz`]},"model/step-xml+zip":{source:`iana`,compressible:!1,extensions:[`stpxz`]},"model/stl":{source:`iana`,extensions:[`stl`]},"model/vnd.collada+xml":{source:`iana`,compressible:!0,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:!0},"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:!1,extensions:[`usdz`]},"model/vnd.valve.source.compiled-map":{source:`iana`,extensions:[`bsp`]},"model/vnd.vtu":{source:`iana`,extensions:[`vtu`]},"model/vrml":{source:`iana`,compressible:!1,extensions:[`wrl`,`vrml`]},"model/x3d+binary":{source:`apache`,compressible:!1,extensions:[`x3db`,`x3dbz`]},"model/x3d+fastinfoset":{source:`iana`,extensions:[`x3db`]},"model/x3d+vrml":{source:`apache`,compressible:!1,extensions:[`x3dv`,`x3dvz`]},"model/x3d+xml":{source:`iana`,compressible:!0,extensions:[`x3d`,`x3dz`]},"model/x3d-vrml":{source:`iana`,extensions:[`x3dv`]},"multipart/alternative":{source:`iana`,compressible:!1},"multipart/appledouble":{source:`iana`},"multipart/byteranges":{source:`iana`},"multipart/digest":{source:`iana`},"multipart/encrypted":{source:`iana`,compressible:!1},"multipart/form-data":{source:`iana`,compressible:!1},"multipart/header-set":{source:`iana`},"multipart/mixed":{source:`iana`},"multipart/multilingual":{source:`iana`},"multipart/parallel":{source:`iana`},"multipart/related":{source:`iana`,compressible:!1},"multipart/report":{source:`iana`},"multipart/signed":{source:`iana`,compressible:!1},"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:!0,extensions:[`appcache`,`manifest`]},"text/calendar":{source:`iana`,extensions:[`ics`,`ifb`]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"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:!0,extensions:[`css`]},"text/csv":{source:`iana`,compressible:!0,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:!0,extensions:[`html`,`htm`,`shtml`]},"text/jade":{extensions:[`jade`]},"text/javascript":{source:`iana`,compressible:!0},"text/jcr-cnd":{source:`iana`},"text/jsx":{compressible:!0,extensions:[`jsx`]},"text/less":{compressible:!0,extensions:[`less`]},"text/markdown":{source:`iana`,compressible:!0,extensions:[`markdown`,`md`]},"text/mathml":{source:`nginx`,extensions:[`mml`]},"text/mdx":{compressible:!0,extensions:[`mdx`]},"text/mizar":{source:`iana`},"text/n3":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`n3`]},"text/parameters":{source:`iana`,charset:`UTF-8`},"text/parityfec":{source:`iana`},"text/plain":{source:`iana`,compressible:!0,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:!0,extensions:[`rtx`]},"text/rtf":{source:`iana`,compressible:!0,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:!0,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:!0,extensions:[`uri`,`uris`,`urls`]},"text/vcard":{source:`iana`,compressible:!0,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:!0,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:!0},"text/x-handlebars-template":{extensions:[`hbs`]},"text/x-java-source":{source:`apache`,extensions:[`java`]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:[`lua`]},"text/x-markdown":{compressible:!0,extensions:[`mkd`]},"text/x-nfo":{source:`apache`,extensions:[`nfo`]},"text/x-opml":{source:`apache`,extensions:[`opml`]},"text/x-org":{compressible:!0,extensions:[`org`]},"text/x-pascal":{source:`apache`,extensions:[`p`,`pas`]},"text/x-processing":{compressible:!0,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:!0,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:!0,extensions:[`xml`]},"text/xml-external-parsed-entity":{source:`iana`},"text/yaml":{compressible:!0,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:!1,extensions:[`mp4`,`mp4v`,`mpg4`]},"video/mp4v-es":{source:`iana`},"video/mpeg":{source:`iana`,compressible:!1,extensions:[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`]},"video/mpeg4-generic":{source:`iana`},"video/mpv":{source:`iana`},"video/nv":{source:`iana`},"video/ogg":{source:`iana`,compressible:!1,extensions:[`ogv`]},"video/parityfec":{source:`iana`},"video/pointer":{source:`iana`},"video/quicktime":{source:`iana`,compressible:!1,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:!1,extensions:[`webm`]},"video/x-f4v":{source:`apache`,extensions:[`f4v`]},"video/x-fli":{source:`apache`,extensions:[`fli`]},"video/x-flv":{source:`apache`,compressible:!1,extensions:[`flv`]},"video/x-m4v":{source:`apache`,extensions:[`m4v`]},"video/x-matroska":{source:`apache`,compressible:!1,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:!1,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:!0},"x-shader/x-vertex":{compressible:!0}}})),sy=e.t(((e,t)=>{
/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*/
t.exports=oy()})),cy=e.t((e=>{var t=sy(),n=require(`path`).extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,i=/^text\//i;e.charset=a,e.charsets={lookup:a},e.contentType=o,e.extension=s,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),l(e.extensions,e.types);function a(e){if(!e||typeof e!=`string`)return!1;var n=r.exec(e),a=n&&t[n[1].toLowerCase()];return a&&a.charset?a.charset:n&&i.test(n[1])?`UTF-8`:!1}function o(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function s(t){if(!t||typeof t!=`string`)return!1;var n=r.exec(t),i=n&&e.extensions[n[1].toLowerCase()];return!i||!i.length?!1:i[0]}function c(t){if(!t||typeof t!=`string`)return!1;var r=n(`x.`+t).toLowerCase().substr(1);return r&&e.types[r]||!1}function l(e,n){var r=[`nginx`,`apache`,void 0,`iana`];Object.keys(t).forEach(function(i){var a=t[i],o=a.extensions;if(!(!o||!o.length)){e[i]=o;for(var s=0;s<o.length;s++){var c=o[s];if(n[c]){var l=r.indexOf(t[n[c]].source),u=r.indexOf(a.source);if(n[c]!==`application/octet-stream`&&(l>u||l===u&&n[c].substr(0,12)===`application/`))continue}n[c]=i}}})}}))();const ly=e=>({status:`initial`,title:`Upload your Storybook for sharing`}),uy=e=>({status:`pending`,title:`Uploading your Storybook for sharing`,output:`Starting upload`}),dy=e=>({status:`success`,title:`Storybook uploaded for sharing`}),fy=async e=>{let{paths:n=[],lengths:r=[]}=e.fileInfo??{};if(!e.share)throw Error(`Missing share context`);if(!n.includes(`index.html`))throw Error(`Missing index.html — cannot publish without an entry point`);let{formAction:i,formFields:a,keyPrefix:o}=e.share.target,s=new Map(r.map(({knownAs:e,contentLength:t})=>[e,t])),c=t=>{let n=(0,cy.contentType)(h.default.extname(t))||`application/octet-stream`;return{filePath:t,formAction:i,formFields:{...a,key:`${o}/${t}`,"Content-Type":n},contentType:n,fileKey:``,targetPath:t,localPath:h.default.join(e.sourceDir,t),contentLength:s.get(t)??0}},l=[],u,d=0;for(let e of n){let t=c(e);d+=t.contentLength,e===`index.html`?u=t:l.push(t)}let f=0,p=0,m=-1,g=t.h(t=>{p=Math.max(p,t);let n=f+p;n!==m&&(m=n,e.options.experimental_onTaskProgress?.({...e},{progress:n,total:d,unit:`bytes`}))},e.env.CHROMATIC_SHARE_PROGRESS_INTERVAL);await Au(e,l,g),f+=p,p=0,u&&await Au(e,[u],g)};function py(e){return jp({name:`share`,title:ly(e).title,steps:[Pp(uy),fy,Pp(dy,!0)]})}const my=[py];function hy(e){return(e.options.junitReport?[ay]:[]).map(t=>t(e))}const gy=e=>{e.activity&&e.activity.end()};var _y=()=>(0,K.dedent)(G.default`
${n.i} {bold Build canceled}
The build was canceled before it completed.
`);function vy(e,n,r=new Date().toISOString()){let{flags:a,extraOptions:o,configuration:s,sessionId:c,pkg:u,packageJson:d}=e,{scripts:f={}}=d,p=i.J(u.bugs.email),m=i.J(u.docs),h=[n].flat(),{git:g,storybook:v,runtimeMetadata:y,exitCode:b,exitCodeKey:x,announcedBuild:S,build:C=S,buildCommand:w}=e,T=t.p({timestamp:r,sessionId:c,gitVersion:g?.version,gitBranch:g?.branch,gitSlug:g?.slug,fromCI:g?.fromCI,ciService:g?.ciService,nodePlatform:process?.platform,nodeVersion:process?.versions?.node,...y,packageName:u.name,packageVersion:u.version,...v?{storybook:v}:{},flags:a,...o&&{extraOptions:o},...s&&{configuration:s},...`options`in e&&e.options?.isLocalBuild?{isLocalBuild:e.options.isLocalBuild}:{},...`options`in e&&e.options?.buildScriptName?{buildScript:f[e.options.buildScriptName]}:{},...w&&{buildCommand:w},exitCode:b,exitCodeKey:x,errorType:h.map(e=>e.name).join(`
`),errorMessage:l.t(h[0].message.split(`
`)[0].trim()),...C&&{build:yy(C)}},`projectToken`,`reportToken`,`userToken`),E=h.map(e=>e.stack).filter(Boolean);return[h.map(e=>e.message).join(`
`),E.length>0?G.default`{dim → View the full ${(0,J.default)(`stacktrace`,E.length)} below}\n`:``,(0,K.dedent)(G.default`
If you need help, please chat with us at ${m} for the fastest response.
You can also email the team at ${p} if chat is not an option.
Please provide us with the above CLI output and the following info:
`),G.default`{bold ${JSON.stringify(T,void 0,2)}}`,E.length>0?G.default`\n{dim ${E.join(`
`)}}`:``].join(`
`)}function yy({id:e,number:t,storybookUrl:n=void 0,webUrl:r=void 0}){return{id:e,number:t,...n&&{storybookUrl:n},...r&&{webUrl:r}}}function by({title:e},{error:r,response:a,statusCode:o}={}){let s=r?G.default`\n{dim → ${r.message||r.toString()}}`:``,c=a&&a.statusText?` ${a.statusText}`:``,l=o?G.default`\n{dim → Status: ${o}${c}}`:``;return(0,K.dedent)(G.default`
${n.i} {bold Failed to ${t.d(e)}}
Could not connect to the Chromatic API. Check your internet connection or try again later.
Service status updates are provided at ${i.J(`https://status.chromatic.com`)}
${s}${l}
`)}const xy=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`;function Sy({title:e},{message:t,extensions:r}){let a=t?G.default`\n{dim → ${r&&r.code?`${r.code}: ${t}`:t}}`:``;return(0,K.dedent)(G.default`
${n.i} {bold Failed to ${xy(e)}}
Error communicating with the Chromatic API. Check if your Chromatic client is up-to-date.
Service status updates are provided at ${i.J(`https://status.chromatic.com`)}
${a}
`)}var Cy=({options:e,buildLogFile:t})=>{let{buildScriptName:r}=e;return(0,K.dedent)(G.default`
${n.i} {bold Cannot run a build with no stories}
Your statically built Storybook exposes no stories. This indicates a problem with your Storybook. Here's what to do:
- Check the build log at {bold ${t}}
- Run {bold npm run ${r}} or {bold yarn ${r}} yourself and make sure it outputs a valid Storybook by opening the generated {bold index.html} in your browser.
- Make sure you haven't accidently ignored all stories. See ${i.J(`https://www.chromatic.com/docs/disable-snapshots/`)} for details.
`)};function wy({runtimeErrors:e=[],runtimeWarnings:t=[]}){let r=[...e,...t].map(e=>e.message||e.toString()),i=[...e,...t].map(e=>e.stack).filter(Boolean),a=i.length>0?G.default`\n{dim → View the full ${(0,J.default)(`stacktrace`,i.length)} below}`:``,o=e.length,s=t.length,c=[o&&(0,J.default)(`runtime error`,o,!0),o&&s&&`and`,s&&(0,J.default)(`warning`,s,!0)].filter(Boolean).join(` `),l=(0,K.dedent)(G.default`
If you want to continue despite runtime errors, you can pass the
{bold --allow-console-errors} flag, but this is not recommended.`),u=(0,K.dedent)(G.default`
You should probably fix these warnings, but we'll continue anyway.`);return(0,K.dedent)(G.default`
${o?n.i:n.s} {bold Detected ${c} in your Storybook}
${r.join(`
`)}${a}
This is usually a problem with your Storybook, not with Chromatic.
Run your Storybook locally and check your browser console for errors.
${o?l:u}
${i.length>0?G.default`\n{dim ${i.join(`
`)}}`:``}
`)}function Ty({title:e},t){return[G.default`${n.i} {bold Failed to ${Ey(e)}}`,t.message].join(`
`)}function Ey(e){return`${e.charAt(0).toLowerCase()}${e.slice(1)}`}var Dy=({pkg:e})=>(0,K.dedent)(G.default`
{bold Chromatic CLI v${e.version}}
{dim ${e.docs}}
`),Oy=()=>(0,K.dedent)(G.default`
${n.s} {bold Skipping Chromatic build locally because --skip is enabled, but no project token was available, so no build was reported to Chromatic. This may leave the Chromatic GitHub checks pending.}
`);async function ky(e,t){if(!e.share?.shareId)throw Error(`Missing share ID in context`);let{confirmStorybookShare:n}=await e.client.runQuery(`
mutation ConfirmShare($shareId: ID!, $status: ShareStatus!) {
confirmStorybookShare(shareId: $shareId, status: $status) {
status
daysToExpire
}
}
`,{shareId:e.share.shareId,status:t},{endpoint:`${e.env.CHROMATIC_INDEX_URL}/api`,headers:{Authorization:`Bearer ${e.options.userToken}`}});return n}async function Ay(e){let{uploadStorybookShare:t}=await e.client.runQuery(`
mutation UploadShareMutation {
uploadStorybookShare {
shareId
shareUrl
target {
formAction
formFields
keyPrefix
}
}
}
`,{},{endpoint:`${e.env.CHROMATIC_INDEX_URL}/api`,headers:{Authorization:`Bearer ${e.options.userToken}`}});return t}async function jy(e){let{onUrl:t,onError:n}=e,r;try{r=await Py(e)}catch(e){if(n)return n(e),{shareUrl:``};throw e}try{r.share=await Ay(r),r.git={branch:``,commit:``,committedAt:0,fromCI:!1},t?.(r.share.shareUrl);let e=await My(r);return{shareUrl:r.share.shareUrl,daysToExpire:e}}catch(e){if(n)return n(e),{shareUrl:r.share?.shareUrl??``};throw e}}async function My(e){let t=`complete`,n;try{await Fy(e)}catch(r){t=e.options.experimental_abortSignal?.aborted?`cancelled`:`error`,n=r}let r=await Ny(e,t);if(n)throw n;return r}async function Ny(e,t){try{let{daysToExpire:n}=await ky(e,t);return n}catch(n){e.log.warn(`Failed to confirm share status (${t}): ${n.message}`);return}}async function Py(e){let{userToken:n,onProgress:i,abortSignal:a,logFile:o}=e,s={userToken:n,...a&&{experimental_abortSignal:a},...i&&{experimental_onTaskProgress:(e,t)=>{i(t.progress,t.total)}}},l={...Xs([]),extraOptions:s},d=u.t(l.flags,s),f=await r.s({cwd:process.cwd(),normalize:!1});if(!f)throw Error(`No package.json found`);let{path:p,packageJson:m}=f,h={...l,flags:{...l.flags,interactive:!1},packagePath:p,packageJson:m,env:c.u(),log:d,sessionId:t.D()};h=await gr(h);let g=h;return g.options=Bs(h),g.options.logFile=o,g.log.setLogFile(g.options.logFile),g.runtime={forceRebuild:g.options.forceRebuild},g}async function Fy(e){let t={log:e.log,renderer:Ks};try{await Hm(e),await Fg(e),await new pr.default(my.map(t=>t(e)),t).run(e),e.log.debug(`Tasks completed`)}finally{gy(e),e.log.flush()}}t.E();async function Iy({argv:e=[],flags:n,options:i}){let a={...Xs(e),...n&&{flags:n},...i&&{extraOptions:i}},{sessionId:o=t.D(),env:s=c.u(),log:l=u.t(a.flags,a.extraOptions)}=i||{};ns(l,a.pkg.engines?.node);let d=await r.s({cwd:process.cwd(),normalize:!1});d||(l.error(r.t()),process.exit(253));let{path:f,packageJson:p}=d,m={...a,packagePath:f,packageJson:p,env:s,log:l,sessionId:o};return await Ly(m),{code:m.exitCode,url:m.build?.webUrl??m.rebuildForBuild?.webUrl,buildUrl:m.build?.webUrl??m.rebuildForBuild?.webUrl,storybookUrl:m.build?.storybookUrl||m.storybookUrl,specCount:m.build?.specCount??m.rebuildForBuild?.specCount,componentCount:m.build?.componentCount??m.rebuildForBuild?.componentCount,testCount:m.build?.testCount??m.rebuildForBuild?.testCount,changeCount:m.build?.changeCount??m.rebuildForBuild?.changeCount,errorCount:m.build?.errorCount??m.rebuildForBuild?.errorCount,interactionTestFailuresCount:m.build?.interactionTestFailuresCount??m.rebuildForBuild?.interactionTestFailuresCount,actualTestCount:m.build?.actualTestCount??m.rebuildForBuild?.actualTestCount,actualCaptureCount:m.build?.actualCaptureCount??m.rebuildForBuild?.actualCaptureCount,inheritedCaptureCount:m.build?.inheritedCaptureCount??m.rebuildForBuild?.inheritedCaptureCount}}async function Ly(e){let n=n=>{e.log.info(``),e.log.error(vy(e,[n].flat())),e.extraOptions?.experimental_onTaskError?.(e,{formattedError:vy(e,[n].flat()),originalError:n}),t.w(e,t.C.INVALID_OPTIONS,!0)},r;try{e=await gr(e,e.extraOptions?.configFile||e.flags.configFile);let n=zs(e);if(n.interactive?(gp(e),e.log.file(Dy(e))):e.log.info(Dy(e)),await Hy(e,n)){e.log.warn(Oy()),t.w(e,t.C.OK);return}r=e,r.options=Bs(r,n),r.runtime={forceRebuild:r.options.forceRebuild},r.log.setLogFile(r.options.logFile),t.w(r,t.C.OK)}catch(e){return n(e)}await Promise.all([Wy(r),$o(r)]).catch(e=>{t.A(e),n(e)}),zy(r)&&(r.options.diagnosticsFile??=Os,await Bu(r)),By(r)&&(r.options.uploadMetadata===void 0&&Vy(r)&&r.log.info(`Uploading metadata files automatically because TurboSnap was enabled`),await Iu(r)),Ry(r),!q(r.options)&&[0,1].includes(r.exitCode)&&await fs(r)}function Ry(e){e.options.logFile&&!e.options.persistLogFile&&e.log.removeLogFile(),e.options.diagnosticsFile&&!e.options.persistDiagnosticsFile&&Vu(e)}function zy(e){return!!e.options.diagnosticsFile||By(e)}function By(e){return e.build?.storybookUrl?e.options.uploadMetadata??Vy(e):!1}function Vy(e){return!!e.turboSnap}async function Hy(e,t){if(!t.skip||t.projectToken||t.projectId&&t.userToken)return!1;let n=await Uy(e,t);return!(!n||!Gs(n,t.skip))}async function Uy(e,t){try{let{branch:n}=await ko(e,{branchName:t.branchName,patchBaseRef:t.patchBaseRef,ci:t.fromCI});return n}catch(t){return e.log.debug(`Failed to determine branch while handling --skip without a project token`,t),!1}}async function Wy(e){try{try{let t={log:e.log,renderer:Ks};e.options.interactive&&(t.renderer=Us,e.log.queue()),e.options.patchHeadRef&&e.options.patchBaseRef&&await Yg(e),await Kp(e),await Dh(e),await nv(e),await Gh(e),await Hm(e),await Fg(e),await Sv(e),await Wv(e),await H_(e),await new pr.default(hy(e),t).run(e),e.log.debug(`Tasks completed`)}catch(n){throw t.A(n),gy(e),n.code===`ECONNREFUSED`||n.name===`StatusCodeError`?(t.w(e,t.C.FETCH_ERROR),t.m(n,by(e,n))):n.name===`GraphQLError`?(t.w(e,t.C.GRAPHQL_ERROR),t.m(n,Sy(e,n))):n.message.startsWith(`Cannot run a build with no stories`)?(t.w(e,t.C.BUILD_NO_STORIES),t.m(n,Cy(e))):e.options.experimental_abortSignal?.aborted?(t.w(e,t.C.BUILD_WAS_CANCELED,!0),t.m(n,_y())):t.m(n,Ty(e,n))}finally{if(e.mergeBase)try{await Hg(e)}catch(n){t.A(n),e.log.error(`Failed to restore your workspace to its original branch: ${n.message}`)}let{runtimeErrors:n,runtimeWarnings:r}=e;(n&&n.length>0||r&&r.length>0)&&(e.log.info(``),e.log.error(wy(e))),e.log.flush();try{await e.analytics?.shutdown()}catch(e){t.A(e)}}}catch(n){let r=[n].flat(),i=vy(e,r);e.options.experimental_onTaskError?.(e,{formattedError:i,originalError:r[0]}),e.userError||(e.log.info(``),e.log.error(i)),e.exitCode||t.w(e,t.C.UNKNOWN_ERROR)}}async function Gy(e){let t;try{t=await i.T(e)}catch{t=``}let n=await i.m(e)||``,r=await i.y(e),a=await i.k(e)||``,o=ps(a),s=await i.C(e)||``,[c,l,...u]=t?t.split(`/`):[],d=!!c&&!!l&&u.length===0,f=await i.D(e)||``,p=await i._(e),m=await i.v(e);return{slug:d?t:``,branch:n,...r,uncommittedHash:f,userEmail:a,userEmailHash:o,repositoryRootDir:s,cloneDepth:p,cloneFilter:m}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return jy}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return By}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Iy}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Ly}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Gy}});
//# sourceMappingURL=node-src-g_vKlWCV.cjs.map
//# debugId=d8f24fd5-64b6-55f4-a8f7-ed726389243f