Files
bake-action/dist/index.js

136 lines
3.2 MiB
JavaScript
Raw Normal View History

import './sourcemap-register.cjs';import{createRequire as e}from"module";var t={23311:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,r,n,s,i,o){this.method=e;this.requestHeaders=t;this.requests=r;this.headers=n;this.response=s;this.status=i;this.trailers=o}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:r,trailers:n}}))}}t.ClientStreamingCall=ClientStreamingCall},69499:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var r;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(r=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=r.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==r.PENDING)throw new Error(`cannot resolve ${r[this.state].toLowerCase()}`);this._resolve(e);this._state=r.RESOLVED}reject(e){if(this.state!==r.PENDING)throw new Error(`cannot reject ${r[this.state].toLowerCase()}`);this._reject(e);this._state=r.REJECTED}resolvePending(e){if(this._state===r.PENDING)this.resolve(e)}rejectPending(e){if(this._state===r.PENDING)this.reject(e)}}t.Deferred=Deferred},40800:function(e,t){var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,r,n,s,i,o){this.method=e;this.requestHeaders=t;this.requests=r;this.headers=n;this.responses=s;this.status=i;this.trailers=o}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return r(this,void 0,void 0,(function*(){let[e,t,r]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:r}}))}}t.DuplexStreamingCall=DuplexStreamingCall},76762:(e,t,r)=>{var n;n={value:true};var s=r(42554);Object.defineProperty(t,"C0",{enumerable:true,get:function(){return s.ServiceType}});var i=r(83402);n={enumerable:true,get:function(){return i.readMethodOptions}};n={enumerable:true,get:function(){return i.readMethodOption}};n={enumerable:true,get:function(){return i.readServiceOption}};var o=r(50422);n={enumerable:true,get:function(){return o.RpcError}};var a=r(63474);n={enumerable:true,get:function(){return a.mergeRpcOptions}};var c=r(58788);n={enumerable:true,get:function(){return c.RpcOutputStreamController}};var l=r(37816);n={enumerable:true,get:function(){return l.TestTransport}};var u=r(69499);n={enumerable:true,get:function(){return u.Deferred}};n={enumerable:true,get:function(){return u.DeferredState}};var d=r(40800);n={enumerable:true,get:function(){return d.DuplexStreamingCall}};var h=r(23311);n={enumerable:true,get:function(){return h.ClientStreamingCall}};var f=r(22715);n={enumerable:true,get:function(){return f.Serv
/**
* Archiver Vending
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
2026-03-04 10:35:11 +00:00
var n=r(50549);var s={};var vending=function(e,t){return vending.create(e,t)};vending.create=function(e,t){if(s[e]){var r=new n(e,t);r.setFormat(e);r.setModule(new s[e](t));return r}else{throw new Error("create("+e+"): format not registered")}};vending.registerFormat=function(e,t){if(s[e]){throw new Error("register("+e+"): format already registered")}if(typeof t!=="function"){throw new Error("register("+e+"): format module invalid")}if(typeof t.prototype.append!=="function"||typeof t.prototype.finalize!=="function"){throw new Error("register("+e+"): format module missing methods")}s[e]=t};vending.isRegisteredFormat=function(e){if(s[e]){return true}return false};vending.registerFormat("zip",r(22836));vending.registerFormat("tar",r(10396));vending.registerFormat("json",r(54693));e.exports=vending},50549:(e,t,r)=>{
/**
* Archiver Core
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
2026-03-04 10:35:11 +00:00
var n=r(79896);var s=r(51364);var i=r(97329);var o=r(16928);var a=r(53296);var c=r(39023).inherits;var l=r(13110);var u=r(29963).Transform;var d=process.platform==="win32";var Archiver=function(e,t){if(!(this instanceof Archiver)){return new Archiver(e,t)}if(typeof e!=="string"){t=e;e="zip"}t=this.options=a.defaults(t,{highWaterMark:1024*1024,statConcurrency:4});u.call(this,t);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=i.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=i.queue(this._onStatQueueTask.bind(this),t.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};c(Archiver,u);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(e,t){t=t||{};var r={source:null,filepath:e};if(!t.name){t.name=e}t.sourcePath=e;r.data=t;this._entriesCount++;if(t.stats&&t.stats instanceof n.Stats){r=this._updateQueueTaskWithStats(r,t.stats);if(r){if(t.stats.size){this._fsEntriesTotalBytes+=t.stats.size}this._queue.push(r)}}else{this._statQueue.push(r)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(e,t,r){if(this._state.aborted){r();return}this._module.append(e,t,function(e){this._task=null;if(this._state.aborted){this._shutdown();return}if(e){this.emit("error",e);setImmediate(r);return}this.emit("entry",t);this._entriesProcessedCount++;if(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(r)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new l("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(e){if(!this._module.supports||!this._module.supports[e]){return false}return this._module.supports[e]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(e,t){e=a.defaults(e,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(t&&e.stats===false){e.stats=t}var r=e.type==="directory";if(e.name){if(typeof e.prefix==="string"&&""!==e.prefix){e.name=e.prefix+"/"+e.name;e.prefix=null}e.name=a.sanitizePath(e.name);if(e.type!=="symlink"&&e.name.slice(-1)==="/"){r=true;e.type="directory"}else if(r){e.name+="/"}}if(typeof e.mode==="number"){if(d){e.mode&=511}else{e.mode&=4095}}else if(e.stats&&e.mode===null){if(d){e.mode=e.stats.mode&511}else{e.mode=e.stats.mode&4095}if(d&&r){e.mode=493}}else if(e.mode===null){e.mode=r?493:420}if(e.stats&&e.date===null){e.date=e.stats.mtime}else{e.date=a.dateify(e.date)}return e};Archiver.prototype._onModuleError=function(e){this.emit("error",e)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this.
/**
* Archiver Core
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*/
2026-03-04 10:35:11 +00:00
var n=r(39023);const s={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 ArchiverError(e,t){Error.captureStackTrace(this,this.constructor);this.message=s[e]||e;this.code=e;this.data=t}n.inherits(ArchiverError,Error);t=e.exports=ArchiverError},54693:(e,t,r)=>{
/**
* 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.
*/
2026-03-04 10:35:11 +00:00
var n=r(39023).inherits;var s=r(29963).Transform;var i=r(84928);var o=r(53296);var Json=function(e){if(!(this instanceof Json)){return new Json(e)}e=this.options=o.defaults(e,{});s.call(this,e);this.supports={directory:true,symlink:true};this.files=[]};n(Json,s);Json.prototype._transform=function(e,t,r){r(null,e)};Json.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e)};Json.prototype.append=function(e,t,r){var n=this;t.crc32=0;function onend(e,s){if(e){r(e);return}t.size=s.length||0;t.crc32=i.unsigned(s);n.files.push(t);r(null,t)}if(t.sourceType==="buffer"){onend(null,e)}else if(t.sourceType==="stream"){o.collectStream(e,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};e.exports=Json},10396:(e,t,r)=>{
/**
* 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.
*/
2026-03-04 10:35:11 +00:00
var n=r(43106);var s=r(56118);var i=r(53296);var Tar=function(e){if(!(this instanceof Tar)){return new Tar(e)}e=this.options=i.defaults(e,{gzip:false});if(typeof e.gzipOptions!=="object"){e.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=s.pack(e);this.compressor=false;if(e.gzip){this.compressor=n.createGzip(e.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(e){this.engine.emit("error",e)};Tar.prototype.append=function(e,t,r){var n=this;t.mtime=t.date;function append(e,s){if(e){r(e);return}n.engine.entry(t,s,(function(e){r(e,t)}))}if(t.sourceType==="buffer"){append(null,e)}else if(t.sourceType==="stream"&&t.stats){t.size=t.stats.size;var s=n.engine.entry(t,(function(e){r(e,t)}));e.pipe(s)}else if(t.sourceType==="stream"){i.collectStream(e,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(e,t){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};e.exports=Tar},22836:(e,t,r)=>{
/**
* 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=r(41622);var s=r(53296);var Zip=function(e){if(!(this instanceof Zip)){return new Zip(e)}e=this.options=s.defaults(e,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new n(e)};Zip.prototype.append=function(e,t,r){this.engine.entry(e,t,r)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};e.exports=Zip},97329:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";function apply(e,...t){return(...r)=>e(...t,...r)}function initialParams(e){return function(...t){var r=t.pop();return e.call(this,t,r)}}var t=typeof queueMicrotask==="function"&&queueMicrotask;var r=typeof setImmediate==="function"&&setImmediate;var n=typeof process==="object"&&typeof process.nextTick==="function";function fallback(e){setTimeout(e,0)}function wrap(e){return(t,...r)=>e((()=>t(...r)))}var s;if(t){s=queueMicrotask}else if(r){s=setImmediate}else if(n){s=process.nextTick}else{s=fallback}var i=wrap(s);function asyncify(e){if(isAsync(e)){return function(...t){const r=t.pop();const n=e.apply(this,t);return handlePromise(n,r)}}return initialParams((function(t,r){var n;try{n=e.apply(this,t)}catch(e){return r(e)}if(n&&typeof n.then==="function"){return handlePromise(n,r)}else{r(null,n)}}))}function handlePromise(e,t){return e.then((e=>{invokeCallback(t,null,e)}),(e=>{invokeCallback(t,e&&(e instanceof Error||e.message)?e:new Error(e))}))}function invokeCallback(e,t,r){try{e(t,r)}catch(e){i((e=>{throw e}),e)}}function isAsync(e){return e[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(e){return typeof e[Symbol.asyncIterator]==="function"}function wrapAsync(e){if(typeof e!=="function")throw new Error("expected a function");return isAsync(e)?asyncify(e):e}function awaitify(e,t){if(!t)t=e.length;if(!t)throw new Error("arity is undefined");function awaitable(...r){if(typeof r[t-1]==="function"){return e.apply(this,r)}return new Promise(((n,s)=>{r[t-1]=(e,...t)=>{if(e)return s(e);n(t.length>1?t:t[0])};e.apply(this,r)}))}return awaitable}function applyEach$1(e){return function applyEach(t,...r){const n=awaitify((function(n){var s=this;return e(t,((e,t)=>{wrapAsync(e).apply(s,r.concat(t))}),n)}));return n}}function _asyncMap(e,t,r,n){t=t||[];var s=[];var i=0;var o=wrapAsync(r);return e(t,((e,t,r)=>{var n=i++;o(e,((e,t)=>{s[n]=t;r(e)}))}),(e=>{n(e,s)}))}function isArrayLike(e){return e&&typeof e.length==="number"&&e.length>=0&&e.length%1===0}const o={};var a=o;function once(e){function wrapper(...t){if(e===null)return;var r=e;e=null;r.apply(this,t)}Object.assign(wrapper,e);return wrapper}function getIterator(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}function createArrayIterator(e){var t=-1;var r=e.length;return function next(){return++t<r?{value:e[t],key:t}:null}}function createES2015Iterator(e){var t=-1;return function next(){var r=e.next();if(r.done)return null;t++;return{value:r.value,key:t}}}function createObjectIterator(e){var t=e?Object.keys(e):[];var r=-1;var n=t.length;return function next(){var s=t[++r];if(s==="__proto__"){return next()}return r<n?{value:e[s],key:s}:null}}function createIterator(e){if(isArrayLike(e)){return createArrayIterator(e)}var t=getIterator(e);return t?createES2015Iterator(t):createObjectIterator(e)}function onlyOnce(e){return function(...t){if(e===null)throw new Error("Callback was already called.");var r=e;e=null;r.apply(this,t)}}function asyncEachOfLimit(e,t,r,n){let s=false;let i=false;let o=false;let c=0;let l=0;function replenish(){if(c>=t||o||s)return;o=true;e.next().then((({value:e,done:t})=>{if(i||s)return;o=false;if(t){s=true;if(c<=0){n(null)}return}c++;r(e,l,iterateeCallback);l++;replenish()})).catch(handleError)}function iterateeCallback(e,t){c-=1;if(i)return;if(e)return h
/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
var r;(function(e){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){e(t)}else{}}else{e(r={})}})((function(e){e.version="1.2.2";function signed_crc_table(){var e=0,t=new Array(256);for(var r=0;r!=256;++r){e=r;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[r]=e}return typeof Int32Array!=="undefined"?new Int32Array(t):t}var t=signed_crc_table();function slice_by_16_tables(e){var t=0,r=0,n=0,s=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(n=0;n!=256;++n)s[n]=e[n];for(n=0;n!=256;++n){r=e[n];for(t=256+n;t<4096;t+=256)r=s[t]=r>>>8^e[r&255]}var i=[];for(n=1;n!=16;++n)i[n-1]=typeof Int32Array!=="undefined"?s.subarray(n*256,n*256+256):s.slice(n*256,n*256+256);return i}var r=slice_by_16_tables(t);var n=r[0],s=r[1],i=r[2],o=r[3],a=r[4];var c=r[5],l=r[6],u=r[7],d=r[8],h=r[9];var f=r[10],p=r[11],g=r[12],A=r[13],y=r[14];function crc32_bstr(e,r){var n=r^-1;for(var s=0,i=e.length;s<i;)n=n>>>8^t[(n^e.charCodeAt(s++))&255];return~n}function crc32_buf(e,r){var b=r^-1,w=e.length-15,C=0;for(;C<w;)b=y[e[C++]^b&255]^A[e[C++]^b>>8&255]^g[e[C++]^b>>16&255]^p[e[C++]^b>>>24]^f[e[C++]]^h[e[C++]]^d[e[C++]]^u[e[C++]]^l[e[C++]]^c[e[C++]]^a[e[C++]]^o[e[C++]]^i[e[C++]]^s[e[C++]]^n[e[C++]]^t[e[C++]];w+=15;while(C<w)b=b>>>8^t[(b^e[C++])&255];return~b}function crc32_str(e,r){var n=r^-1;for(var s=0,i=e.length,o=0,a=0;s<i;){o=e.charCodeAt(s++);if(o<128){n=n>>>8^t[(n^o)&255]}else if(o<2048){n=n>>>8^t[(n^(192|o>>6&31))&255];n=n>>>8^t[(n^(128|o&63))&255]}else if(o>=55296&&o<57344){o=(o&1023)+64;a=e.charCodeAt(s++)&1023;n=n>>>8^t[(n^(240|o>>8&7))&255];n=n>>>8^t[(n^(128|o>>2&63))&255];n=n>>>8^t[(n^(128|a>>6&15|(o&3)<<4))&255];n=n>>>8^t[(n^(128|a&63))&255]}else{n=n>>>8^t[(n^(224|o>>12&15))&255];n=n>>>8^t[(n^(128|o>>6&63))&255];n=n>>>8^t[(n^(128|o&63))&255]}}return~n}e.table=t;e.bstr=crc32_bstr;e.buf=crc32_buf;e.str=crc32_str}))},3662:(e,t,r)=>{const{Transform:n}=r(29963);const s=r(84891);class CRC32Stream extends n{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(e,t,r){if(e){this.checksum=s.buf(e,this.checksum)>>>0;this.rawSize+=e.length}r(null,e)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}e.exports=CRC32Stream},76252:(e,t,r)=>{const{DeflateRaw:n}=r(43106);const s=r(84891);class DeflateCRC32Stream 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){if(e){this.compressedSize+=e.length}return super.push(e,t)}_transform(e,t,r){if(e){this.checksum=s.buf(e,this.checksum)>>>0;this.rawSize+=e.length}super._transform(e,t,r)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(e=false){if(e){return this.compressedSize}else{return this.rawSize}}}e.exports=DeflateCRC32Stream},82770:(e,t,r)=>{e.exports={CRC32Stream:r(3662),DeflateCRC32Stream:r(76252)}},6110:(e,t,r)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC3
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* @copyright 2015 Toru Nagashima. All rights reserved.
* See LICENSE file in root directory for full license.
*/
Object.defineProperty(t,"__esModule",{value:true});const r=new WeakMap;const n=new WeakMap;function pd(e){const t=r.get(e);console.assert(t!=null,"'this' is expected an Event object, but got",e);return t}function setCancelFlag(e){if(e.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}return}if(!e.event.cancelable){return}e.canceled=true;if(typeof e.event.preventDefault==="function"){e.event.preventDefault()}}function Event(e,t){r.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:t.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const n=Object.keys(t);for(let e=0;e<n.length;++e){const t=n[e];if(!(t in this)){Object.defineProperty(this,t,defineRedirectDescriptor(t))}}}Event.prototype={get type(){return pd(this).event.type},get target(){return pd(this).eventTarget},get currentTarget(){return pd(this).currentTarget},composedPath(){const e=pd(this).currentTarget;if(e==null){return[]}return[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return pd(this).eventPhase},stopPropagation(){const e=pd(this);e.stopped=true;if(typeof e.event.stopPropagation==="function"){e.event.stopPropagation()}},stopImmediatePropagation(){const e=pd(this);e.stopped=true;e.immediateStopped=true;if(typeof e.event.stopImmediatePropagation==="function"){e.event.stopImmediatePropagation()}},get bubbles(){return Boolean(pd(this).event.bubbles)},get cancelable(){return Boolean(pd(this).event.cancelable)},preventDefault(){setCancelFlag(pd(this))},get defaultPrevented(){return pd(this).canceled},get composed(){return Boolean(pd(this).event.composed)},get timeStamp(){return pd(this).timeStamp},get srcElement(){return pd(this).eventTarget},get cancelBubble(){return pd(this).stopped},set cancelBubble(e){if(!e){return}const t=pd(this);t.stopped=true;if(typeof t.event.cancelBubble==="boolean"){t.event.cancelBubble=true}},get returnValue(){return!pd(this).canceled},set returnValue(e){if(!e){setCancelFlag(pd(this))}},initEvent(){}};Object.defineProperty(Event.prototype,"constructor",{value:Event,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.Event!=="undefined"){Object.setPrototypeOf(Event.prototype,window.Event.prototype);n.set(window.Event.prototype,Event)}function defineRedirectDescriptor(e){return{get(){return pd(this).event[e]},set(t){pd(this).event[e]=t},configurable:true,enumerable:true}}function defineCallDescriptor(e){return{value(){const t=pd(this).event;return t[e].apply(t,arguments)},configurable:true,enumerable:true}}function defineWrapper(e,t){const r=Object.keys(t);if(r.length===0){return e}function CustomEvent(t,r){e.call(this,t,r)}CustomEvent.prototype=Object.create(e.prototype,{constructor:{value:CustomEvent,configurable:true,writable:true}});for(let n=0;n<r.length;++n){const s=r[n];if(!(s in e.prototype)){const e=Object.getOwnPropertyDescriptor(t,s);const r=typeof e.value==="function";Object.defineProperty(CustomEvent.prototype,s,r?defineCallDescriptor(s):defineRedirectDescriptor(s))}}return CustomEvent}function getWrapper(e){if(e==null||e===Object.prototype){return Event}let t=n.get(e);if(t==null){t=defineWrapper(getWrapper(Object.getPrototypeOf(e)),e);n.set(e,t)}return t}function wrapEvent(e,t){const r=getWrapper(Object.getPrototypeOf(t));return new r(e,t)}function isStopped(e){return pd(e).immediateStopped}function setEventPhase(e,t){pd(e).eventPhase=t}function setCurrentTarget(e,t){pd(e).currentTarget=t}function setPassiveListener(e,t){pd(e).passiveListener=t}const s=new WeakMap;const i=1;const o=2;const a=3;function isObject(e){return e!==null&&typeof e==="object"}function getListeners(e){const t=s.get(e);if(t==null){throw new TypeError("'this' is expected an EventTarget object, but got another value.")}return t}function defineEventAttributeDescripto
2026-03-04 10:35:11 +00:00
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */(function(r){var n=true&&t;var s=true&&e&&e.exports==n&&e;var i=typeof global=="object"&&global;if(i.global===i||i.window===i){r=i}var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var a=/[\x01-\x7F]/g;var c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;var l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g;var u={"­":"shy","":"zwnj","":"zwj","":"lrm","":"ic","":"it","":"af","":"rlm","":"ZeroWidthSpace","":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine","":"puncsp","":"MediumSpace","":"thinsp","":"hairsp","":"emsp13","":"ensp","":"emsp14","":"emsp","":"numsp"," ":"nbsp","":"ThickSpace","‾":"oline",_:"lowbar","":"dash","":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·
/**
* @preserve
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
*
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
* @see http://github.com/homebrewing/brauhaus-diff
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*/
(function(){var t;function MurmurHash3(e,r){var n=this instanceof MurmurHash3?this:t;n.reset(r);if(typeof e==="string"&&e.length>0){n.hash(e)}if(n!==this){return n}}MurmurHash3.prototype.hash=function(e){var t,r,n,s,i;i=e.length;this.len+=i;r=this.k1;n=0;switch(this.rem){case 0:r^=i>n?e.charCodeAt(n++)&65535:0;case 1:r^=i>n?(e.charCodeAt(n++)&65535)<<8:0;case 2:r^=i>n?(e.charCodeAt(n++)&65535)<<16:0;case 3:r^=i>n?(e.charCodeAt(n)&255)<<24:0;r^=i>n?(e.charCodeAt(n++)&65280)>>8:0}this.rem=i+this.rem&3;i-=this.rem;if(i>0){t=this.h1;while(1){r=r*11601+(r&65535)*3432906752&4294967295;r=r<<15|r>>>17;r=r*13715+(r&65535)*461832192&4294967295;t^=r;t=t<<13|t>>>19;t=t*5+3864292196&4294967295;if(n>=i){break}r=e.charCodeAt(n++)&65535^(e.charCodeAt(n++)&65535)<<8^(e.charCodeAt(n++)&65535)<<16;s=e.charCodeAt(n++);r^=(s&255)<<24^(s&65280)>>8}r=0;switch(this.rem){case 3:r^=(e.charCodeAt(n+2)&65535)<<16;case 2:r^=(e.charCodeAt(n+1)&65535)<<8;case 1:r^=e.charCodeAt(n)&65535}this.h1=t}this.k1=r;return this};MurmurHash3.prototype.result=function(){var e,t;e=this.k1;t=this.h1;if(e>0){e=e*11601+(e&65535)*3432906752&4294967295;e=e<<15|e>>>17;e=e*13715+(e&65535)*461832192&4294967295;t^=e}t^=this.len;t^=t>>>16;t=t*51819+(t&65535)*2246770688&4294967295;t^=t>>>13;t=t*44597+(t&65535)*3266445312&4294967295;t^=t>>>16;return t>>>0};MurmurHash3.prototype.reset=function(e){this.h1=typeof e==="number"?e:0;this.rem=this.k1=this.len=0;return this};t=new MurmurHash3;if(true){e.exports=MurmurHash3}else{}})()},39598:(e,t,r)=>{try{var n=r(39023);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(26589)}},26589:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},68850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.AddressError=void 0;class AddressError extends Error{constructor(e,t){super(e);this.name="AddressError";if(t!==null){this.parseMessage=t}}}t.AddressError=AddressError},45864:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isCorrect=t.isInSubnet=void 0;function isInSubnet(e){if(this.subnetMask<e.subnetMask){return false}if(this.mask(e.subnetMask)===e.mask()){return true}return false}t.isInSubnet=isInSubnet;function isCorrect(e){return function(){if(this.addressMinusSuffix!==this.correctForm()){return false}if(this.subnetMask===e&&!this.parsedSubnet){return true}return this.parsedSubnet===String(this.subnetMask)}}t.isCorrect=isCorrect},79253:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.v6=t.AddressError=t.Address6=t.Address4=void 0;const o=r(17946);Object.defineProperty(t,"Address4",{enumerable:true,get:function(){return o.Address4}});const a=r(38096);Object.defineProperty(t,"Address6",{enumerable:true,get:function(){return a.Address6}});const c=r(68850);Object.defineProperty(t,"AddressError",{enumerable:true,get:function(){return c.AddressError}});const l=i(r(20339));t.v6={helpers:l}},17946:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s
/**
* @license
* Copyright (c) 2010-2012 Mikeal Rogers
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an "AS
* IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/if(new o.URL(e.url).hostname!==a.hostname){e.headers.delete("authorization");e.headers.delete("cookie")}if(t.status===303||e.method==="POST"&&[301,302].includes(t.status)){n.method="GET";n.body=null;e.headers.delete("content-length")}n.headers={};e.headers.forEach(((e,t)=>{n.headers[t]=e}));n.counter=++e.counter;const c=new s(o.format(a),n);return{request:c,options:n}};const fetch=async(e,t)=>{const r=a.storable(e,t)?await c(e,t):await l(e,t);if(!["GET","HEAD"].includes(e.method)&&r.status>=200&&r.status<=399){await c.invalidate(e,t)}if(!canFollowRedirect(e,r,t)){return r}const n=getRedirect(e,r,t);return fetch(n.request,n.options)};e.exports=fetch},39310:(e,t,r)=>{const{FetchError:n,Headers:s,Request:i,Response:o}=r(88483);const a=r(99824);const c=r(67242);const makeFetchHappen=(e,t)=>{const r=a(t);const n=new i(e,r);return c(n,r)};makeFetchHappen.defaults=(e,t={},r=makeFetchHappen)=>{if(typeof e==="object"){t=e;e=null}const defaultedFetch=(n,s={})=>{const i=n||e;const o={...t,...s,headers:{...t.headers,...s.headers}};return r(i,o)};defaultedFetch.defaults=(e,t={})=>makeFetchHappen.defaults(e,t,defaultedFetch);return defaultedFetch};e.exports=makeFetchHappen;e.exports.FetchError=n;e.exports.Headers=s;e.exports.Request=i;e.exports.Response=o},99824:(e,t,r)=>{const n=r(72250);const s=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"];const configureOptions=e=>{const{strictSSL:t,...r}={...e};r.method=r.method?r.method.toUpperCase():"GET";if(t===undefined||t===null){r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0"}else{r.rejectUnauthorized=t!==false}if(!r.retry){r.retry={retries:0}}else if(typeof r.retry==="string"){const e=parseInt(r.retry,10);if(isFinite(e)){r.retry={retries:e}}else{r.retry={retries:0}}}else if(typeof r.retry==="number"){r.retry={retries:r.retry}}else{r.retry={retries:0,...r.retry}}r.dns={ttl:5*60*1e3,lookup:n.lookup,...r.dns};r.cache=r.cache||"default";if(r.cache==="default"){const e=Object.keys(r.headers||{}).some((e=>s.includes(e.toLowerCase())));if(e){r.cache="no-store"}}r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[];if(r.cacheManager&&!r.cachePath){r.cachePath=r.cacheManager}return r};e.exports=configureOptions},22314:(e,t,r)=>{const n=r(52899);class CachingMinipassPipeline extends n{#a=[];#c=new Map;constructor(e,...t){super();this.#a=e.events;if(t.length){this.push(...t)}}on(e,t){if(this.#a.includes(e)&&this.#c.has(e)){return t(...this.#c.get(e))}return super.on(e,t)}emit(e,...t){if(this.#a.includes(e)){this.#c.set(e,t)}return super.emit(e,...t)}}e.exports=CachingMinipassPipeline},20766:(e,t,r)=>{const{Minipass:n}=r(78275);const s=r(88483);const{promiseRetry:i}=r(49498);const o=r(68951);const{log:a}=r(26687);const{redact:c}=r(4027);const l=r(22314);const{getAgent:u}=r(57995);const d=r(96734);const h=`${d.name}/${d.version} (+https://npm.im/${d.name})`;const f=["ECONNRESET","ECONNREFUSED","EADDRINUSE","ETIMEDOUT","ECONNECTIONTIMEOUT","EIDLETIMEOUT","ERESPONSETIMEOUT","ETRANSFERTIMEOUT"];const p=["request-timeout"];const remoteFetch=(e,t)=>{const r=u(e.url,{...t,signal:undefined});if(!e.headers.has("connection")){e.headers.set("connection",r?"keep-alive":"close")}if(!e.headers.has("user-agent")){e.headers.set("user-agent",h)}const d={...t,agent:r,redirect:"manual"};return i((async(r,i)=>{const u=new s.Request(e,d);const h=c(u.url);try{let e=await s(u,d);if(d.integrity&&e.status===200){const t=o.integrityStream({algorithms:d.algorithms,integrity:d.integrity,size:d.size});const r=new l({events:["integrity","size"]},e.body,t);t.on("integrity",(e=>r.emit("integrity",e)));t.on("size",(e=>r.emit("size",e)));e=new s.Response(r,e);e.body.hasIntegrityEmitter=true}e.headers.set("x-fetch-attempts",i);const c=n.isStream(u.body);const f=u.method!=="POST"&&!c&&([408,420,429].includes(e.status)||e.status>=500);if(f){if(typeof t.onRetry==="function"){t.onRetry(e)}a.http("fetch",`${u.method} ${h} attempt ${i} failed with ${e.status}`);return r(e)}return e}catch(e){const n=e.code==="EPROMISERETRY"?e.retried.code:e.code;const o=e.retried instanceof s.Respon
/*!
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
2026-03-04 10:35:11 +00:00
var n=r(79168);var s=r(25111);var i=r(56008);var o=r(53672);e.exports=Negotiator;e.exports.Negotiator=Negotiator;function Negotiator(e){if(!(this instanceof Negotiator)){return new Negotiator(e)}this.request=e}Negotiator.prototype.charset=function charset(e){var t=this.charsets(e);return t&&t[0]};Negotiator.prototype.charsets=function charsets(e){return n(this.request.headers["accept-charset"],e)};Negotiator.prototype.encoding=function encoding(e,t){var r=this.encodings(e,t);return r&&r[0]};Negotiator.prototype.encodings=function encodings(e,t){var r=t||{};return s(this.request.headers["accept-encoding"],e,r.preferred)};Negotiator.prototype.language=function language(e){var t=this.languages(e);return t&&t[0]};Negotiator.prototype.languages=function languages(e){return i(this.request.headers["accept-language"],e)};Negotiator.prototype.mediaType=function mediaType(e){var t=this.mediaTypes(e);return t&&t[0]};Negotiator.prototype.mediaTypes=function mediaTypes(e){return o(this.request.headers.accept,e)};Negotiator.prototype.preferredCharset=Negotiator.prototype.charset;Negotiator.prototype.preferredCharsets=Negotiator.prototype.charsets;Negotiator.prototype.preferredEncoding=Negotiator.prototype.encoding;Negotiator.prototype.preferredEncodings=Negotiator.prototype.encodings;Negotiator.prototype.preferredLanguage=Negotiator.prototype.language;Negotiator.prototype.preferredLanguages=Negotiator.prototype.languages;Negotiator.prototype.preferredMediaType=Negotiator.prototype.mediaType;Negotiator.prototype.preferredMediaTypes=Negotiator.prototype.mediaTypes},79168:e=>{e.exports=preferredCharsets;e.exports.preferredCharsets=preferredCharsets;var t=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptCharset(e){var t=e.split(",");for(var r=0,n=0;r<t.length;r++){var s=parseCharset(t[r].trim(),r);if(s){t[n++]=s}}t.length=n;return t}function parseCharset(e,r){var n=t.exec(e);if(!n)return null;var s=n[1];var i=1;if(n[2]){var o=n[2].split(";");for(var a=0;a<o.length;a++){var c=o[a].trim().split("=");if(c[0]==="q"){i=parseFloat(c[1]);break}}}return{charset:s,q:i,i:r}}function getCharsetPriority(e,t,r){var n={o:-1,q:0,s:0};for(var s=0;s<t.length;s++){var i=specify(e,t[s],r);if(i&&(n.s-i.s||n.q-i.q||n.o-i.o)<0){n=i}}return n}function specify(e,t,r){var n=0;if(t.charset.toLowerCase()===e.toLowerCase()){n|=1}else if(t.charset!=="*"){return null}return{i:r,o:t.i,q:t.q,s:n}}function preferredCharsets(e,t){var r=parseAcceptCharset(e===undefined?"*":e||"");if(!t){return r.filter(isQuality).sort(compareSpecs).map(getFullCharset)}var n=t.map((function getPriority(e,t){return getCharsetPriority(e,r,t)}));return n.filter(isQuality).sort(compareSpecs).map((function getCharset(e){return t[n.indexOf(e)]}))}function compareSpecs(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function getFullCharset(e){return e.charset}function isQuality(e){return e.q>0}},25111:e=>{e.exports=preferredEncodings;e.exports.preferredEncodings=preferredEncodings;var t=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function parseAcceptEncoding(e){var t=e.split(",");var r=false;var n=1;for(var s=0,i=0;s<t.length;s++){var o=parseEncoding(t[s].trim(),s);if(o){t[i++]=o;r=r||specify("identity",o);n=Math.min(n,o.q||1)}}if(!r){t[i++]={encoding:"identity",q:n,i:s}}t.length=i;return t}function parseEncoding(e,r){var n=t.exec(e);if(!n)return null;var s=n[1];var i=1;if(n[2]){var o=n[2].split(";");for(var a=0;a<o.length;a++){var c=o[a].trim().split("=");if(c[0]==="q"){i=parseFloat(c[1]);break}}}return{encoding:s,q:i,i:r}}function getEncodingPriority(e,t,r){var n={encoding:e,o:-1,q:0,s:0};for(var s=0;s<t.length;s++){var i=specify(e,t[s],r);if(i&&(n.s-i.s||n.q-i.q||n.o-i.o)<0){n=i}}return n}function specify(e,t,r){var n=0;if(t.encoding.toLowerCase()===e.toLowerCase()){n|=1}else if(t.encoding!=="*"){return null}return{encoding:e,i:r,o:t.i,q:t.q,s:n}}function preferredEncodings(e,t,r){var n=parseAcceptEncoding(e||"");var s=r?function comparator(e,t){if(e.q!==t.q){return t.q-e.q}var n=r.indexOf(e.encoding);var s=r.indexOf(t.encoding);if(n===-1&&s===-1){return t.s-e.s||e.o-t.o||e.i-t.i}if(n!==-1&&s!==-1){retur
/*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
*
* Copyright (c) 2014-2018, Jon Schlinkert.
* Released under the MIT License.
*/
e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("expected path to be a string")}if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var s=e[2];if((s==="?"||s===".")&&e.slice(0,2)==="\\\\"){e=e.slice(2);n="//"}}var i=e.split(/[/\\]+/);if(t!==false&&i[i.length-1]===""){i.pop()}return n+i.join("/")}},26687:e=>{const t=Symbol("proc-log.meta");e.exports={META:t,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function end(){return process.emit("time","end",e)}if(typeof t==="function"){const e=t();if(e&&e.finally){return e.finally(end)}end();return e}return end},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(...e){let t;if(typeof e[0]==="function"){t=e.shift()}process.emit("input","start",...e);function end(){return process.emit("input","end",...e)}if(typeof t==="function"){const e=t();if(e&&e.finally){return e.finally(end)}end();return e}return end},end:function(...e){return process.emit("input","end",...e)},read:function(...e){let t,r;const n=new Promise(((e,n)=>{t=e;r=n}));process.emit("input","read",t,r,...e);return n}}}},41564:e=>{if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,r,n){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var s=arguments.length;var i,o;switch(s){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function afterTickOne(){e.call(null,t)}));case 3:return process.nextTick((function afterTickTwo(){e.call(null,t,r)}));case 4:return process.nextTick((function afterTickThree(){e.call(null,t,r,n)}));default:i=new Array(s-1);o=0;while(o<i.length){i[o++]=arguments[o]}return process.nextTick((function afterTick(){e.apply(null,i)}))}}},7945:e=>{e.exports=global.process},5506:(e,t,r)=>{e.exports=typeof process!=="undefined"&&typeof process.nextTick==="function"?process.nextTick.bind(process):r(36828)},36828:e=>{e.exports=typeof queueMicrotask==="function"?queueMicrotask:e=>Promise.resolve().then(e)},80652:(e,t,r)=>{const{SymbolDispose:n}=r(50999);const{AbortError:s,codes:i}=r(69220);const{isNodeStream:o,isWebStream:a,kControllerErrorFunction:c}=r(83426);const l=r(36815);const{ERR_INVALID_ARG_TYPE:u}=i;let d;const validateAbortSignal=(e,t)=>{if(typeof e!=="object"||!("aborted"in e)){throw new u(t,"AbortSignal",e)}};e.exports.addAbortSignal=function addAbortSignal(t,r){validateAbortSignal(t,"signal");if(!o(r)&&!a(r)){throw new u("stream",["ReadableStream","WritableStream","Stream"],r)}return e.exports.addAbortSignalNoValidat
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*/const s=r(79896);const i=r(70857);const o=r(16928);const a=r(76982);const c={fs:s.constants,os:i.constants};const l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",u=/XXXXXX/,d=3,h=(c.O_CREAT||c.fs.O_CREAT)|(c.O_EXCL||c.fs.O_EXCL)|(c.O_RDWR||c.fs.O_RDWR),f=i.platform()==="win32",p=c.EBADF||c.os.errno.EBADF,g=c.ENOENT||c.os.errno.ENOENT,A=448,y=384,b="exit",w=[],C=s.rmdirSync.bind(s);let S=false;function rimraf(e,t){return s.rm(e,{recursive:true},t)}function FN_RIMRAF_SYNC(e){return s.rmSync(e,{recursive:true})}function tmpName(e,t){const r=_parseArguments(e,t),n=r[0],i=r[1];_assertAndSanitizeOptions(n,(function(e,t){if(e)return i(e);let r=t.tries;(function _getUniqueName(){try{const e=_generateTmpName(t);s.stat(e,(function(t){if(!t){if(r-- >0)return _getUniqueName();return i(new Error("Could not get a unique tmp filename, max tries reached "+e))}i(null,e)}))}catch(e){i(e)}})()}))}function tmpNameSync(e){const t=_parseArguments(e),r=t[0];const n=_assertAndSanitizeOptionsSync(r);let i=n.tries;do{const e=_generateTmpName(n);try{s.statSync(e)}catch(t){return e}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,t){const r=_parseArguments(e,t),n=r[0],i=r[1];tmpName(n,(function _tmpNameCreated(e,t){if(e)return i(e);s.open(t,h,n.mode||y,(function _fileCreated(e,r){if(e)return i(e);if(n.discardDescriptor){return s.close(r,(function _discardCallback(e){return i(e,t,undefined,_prepareTmpFileRemoveCallback(t,-1,n,false))}))}else{const e=n.discardDescriptor||n.detachDescriptor;i(null,t,r,_prepareTmpFileRemoveCallback(t,e?-1:r,n,false))}}))}))}function fileSync(e){const t=_parseArguments(e),r=t[0];const n=r.discardDescriptor||r.detachDescriptor;const i=tmpNameSync(r);let o=s.openSync(i,h,r.mode||y);if(r.discardDescriptor){s.closeSync(o);o=undefined}return{name:i,fd:o,removeCallback:_prepareTmpFileRemoveCallback(i,n?-1:o,r,true)}}function dir(e,t){const r=_parseArguments(e,t),n=r[0],i=r[1];tmpName(n,(function _tmpNameCreated(e,t){if(e)return i(e);s.mkdir(t,n.mode||A,(function _dirCreated(e){if(e)return i(e);i(null,t,_prepareTmpDirRemoveCallback(t,n,false))}))}))}function dirSync(e){const t=_parseArguments(e),r=t[0];const n=tmpNameSync(r);s.mkdirSync(n,r.mode||A);return{name:n,removeCallback:_prepareTmpDirRemoveCallback(n,r,true)}}function _removeFileAsync(e,t){const _handler=function(e){if(e&&!_isENOENT(e)){return t(e)}t()};if(0<=e[0])s.close(e[0],(function(){s.unlink(e[1],_handler)}));else s.unlink(e[1],_handler)}function _removeFileSync(e){let t=null;try{if(0<=e[0])s.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throw e}finally{try{s.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))t=e}}if(t!==null){throw t}}function _prepareTmpFileRemoveCallback(e,t,r,n){const s=_prepareRemoveCallback(_removeFileSync,[t,e],n);const i=_prepareRemoveCallback(_removeFileAsync,[t,e],n,s);if(!r.keep)w.unshift(s);return n?s:i}function _prepareTmpDirRemoveCallback(e,t,r){const n=t.unsafeCleanup?rimraf:s.rmdir.bind(s);const i=t.unsafeCleanup?FN_RIMRAF_SYNC:C;const o=_prepareRemoveCallback(i,e,r);const a=_prepareRemoveCallback(n,e,r,o);if(!t.keep)w.unshift(o);return r?o:a}function _prepareRemoveCallback(e,t,r,n){let s=false;return function _cleanupCallback(i){if(!s){const o=n||_cleanupCallback;const a=w.indexOf(o);if(a>=0)w.splice(a,1);s=true;if(r||e===C||e===FN_RIMRAF_SYNC){return e(t)}else{return e(t,i||function(){})}}}}function _garbageCollector(){if(!S)return;while(w.length){try{w[0]()}catch(e){}}}function _randomChars(e){let t=[],r=null;try{r=a.randomBytes(e)}catch(t){r=a.pseudoRandomBytes(e)}for(let n=0;n<e;n++){t.push(l[r[n]%l.length])}return t.join("")}function _isUndefined(e){return typeof e==="undefined"}function _parseArguments(e,t){if(typeof e==="function"){return[{},e]}if(_isUndefined(e)){return[{},t]}const r={};for(const t of Object.getOwnPropertyNames(e)){r[t]=e[t]}return[r,t]}function _resolvePath(e,t,r){const n=o.isAbsolute(e)?e:o.join(t,e);s.stat(n,(function(e){if(e){s.realpath(o.dirname(n),(function(e,t){if(e)return r(e);r(null,o.join(t,o.basename(n)))}))}else{s
/**
* @license
* Copyright (c) 2010-2012 Mikeal Rogers
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an "AS
* IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/if(new o.URL(e.url).hostname!==a.hostname){e.headers.delete("authorization");e.headers.delete("cookie")}if(t.status===303||e.method==="POST"&&[301,302].includes(t.status)){n.method="GET";n.body=null;e.headers.delete("content-length")}n.headers={};e.headers.forEach(((e,t)=>{n.headers[t]=e}));n.counter=++e.counter;const c=new s(o.format(a),n);return{request:c,options:n}};const fetch=async(e,t)=>{const r=a.storable(e,t)?await c(e,t):await l(e,t);if(!["GET","HEAD"].includes(e.method)&&r.status>=200&&r.status<=399){await c.invalidate(e,t)}if(!canFollowRedirect(e,r,t)){return r}const n=getRedirect(e,r,t);return fetch(n.request,n.options)};e.exports=fetch},26661:(e,t,r)=>{const{FetchError:n,Headers:s,Request:i,Response:o}=r(88483);const a=r(87380);const c=r(58197);const makeFetchHappen=(e,t)=>{const r=a(t);const n=new i(e,r);return c(n,r)};makeFetchHappen.defaults=(e,t={},r=makeFetchHappen)=>{if(typeof e==="object"){t=e;e=null}const defaultedFetch=(n,s={})=>{const i=n||e;const o={...t,...s,headers:{...t.headers,...s.headers}};return r(i,o)};defaultedFetch.defaults=(e,t={})=>makeFetchHappen.defaults(e,t,defaultedFetch);return defaultedFetch};e.exports=makeFetchHappen;e.exports.FetchError=n;e.exports.Headers=s;e.exports.Request=i;e.exports.Response=o},87380:(e,t,r)=>{const n=r(72250);const s=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"];const configureOptions=e=>{const{strictSSL:t,...r}={...e};r.method=r.method?r.method.toUpperCase():"GET";if(t===undefined||t===null){r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0"}else{r.rejectUnauthorized=t!==false}if(!r.retry){r.retry={retries:0}}else if(typeof r.retry==="string"){const e=parseInt(r.retry,10);if(isFinite(e)){r.retry={retries:e}}else{r.retry={retries:0}}}else if(typeof r.retry==="number"){r.retry={retries:r.retry}}else{r.retry={retries:0,...r.retry}}r.dns={ttl:5*60*1e3,lookup:n.lookup,...r.dns};r.cache=r.cache||"default";if(r.cache==="default"){const e=Object.keys(r.headers||{}).some((e=>s.includes(e.toLowerCase())));if(e){r.cache="no-store"}}r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[];if(r.cacheManager&&!r.cachePath){r.cachePath=r.cacheManager}return r};e.exports=configureOptions},78551:(e,t,r)=>{const n=r(52899);class CachingMinipassPipeline extends n{#a=[];#c=new Map;constructor(e,...t){super();this.#a=e.events;if(t.length){this.push(...t)}}on(e,t){if(this.#a.includes(e)&&this.#c.has(e)){return t(...this.#c.get(e))}return super.on(e,t)}emit(e,...t){if(this.#a.includes(e)){this.#c.set(e,t)}return super.emit(e,...t)}}e.exports=CachingMinipassPipeline},72171:(e,t,r)=>{const{Minipass:n}=r(78275);const s=r(88483);const{promiseRetry:i}=r(49498);const o=r(68951);const{log:a}=r(26687);const c=r(78551);const{getAgent:l}=r(57995);const u=r(22973);const d=`${u.name}/${u.version} (+https://npm.im/${u.name})`;const h=["ECONNRESET","ECONNREFUSED","EADDRINUSE","ETIMEDOUT","ECONNECTIONTIMEOUT","EIDLETIMEOUT","ERESPONSETIMEOUT","ETRANSFERTIMEOUT"];const f=["request-timeout"];const remoteFetch=(e,t)=>{const r=l(e.url,{...t,signal:undefined});if(!e.headers.has("connection")){e.headers.set("connection",r?"keep-alive":"close")}if(!e.headers.has("user-agent")){e.headers.set("user-agent",d)}const u={...t,agent:r,redirect:"manual"};return i((async(r,i)=>{const l=new s.Request(e,u);try{let e=await s(l,u);if(u.integrity&&e.status===200){const t=o.integrityStream({algorithms:u.algorithms,integrity:u.integrity,size:u.size});const r=new c({events:["integrity","size"]},e.body,t);t.on("integrity",(e=>r.emit("integrity",e)));t.on("size",(e=>r.emit("size",e)));e=new s.Response(r,e);e.body.hasIntegrityEmitter=true}e.headers.set("x-fetch-attempts",i);const d=n.isStream(l.body);const h=l.method!=="POST"&&!d&&([408,420,429].includes(e.status)||e.status>=500);if(h){if(typeof t.onRetry==="function"){t.onRetry(e)}a.http("fetch",`${l.method} ${l.url} attempt ${i} failed with ${e.status}`);return r(e)}return e}catch(e){const n=e.code==="EPROMISERETRY"?e.retried.code:e.code;const o=e.retried instanceof s.Response||h.includes(n)&&f.includes(e.type)
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const n=[];const s=new Uint8Array([13,10]);u=0;let i=false;for(const[t,o]of e){if(typeof o==="string"){const e=v.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(o)}\r\n`);n.push(e);u+=e.byteLength}else{const e=v.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(o.name?`; filename="${escape(o.name)}"`:"")+"\r\n"+`Content-Type: ${o.type||"application/octet-stream"}\r\n\r\n`);n.push(e,o,s);if(typeof o.size==="number"){u+=e.byteLength+o.size+s.byteLength}else{i=true}}}const o=v.encode(`--${t}--\r\n`);n.push(o);u+=o.byteLength;if(i){u=null}l=e;c=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};d=`multipart/form-data; boundary=${t}`}else if(i(e)){l=e;u=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(n.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}r=e instanceof ReadableStream?e:s(e)}if(typeof l==="string"||n.isBuffer(l)){u=Buffer.byteLength(l)}if(c!=null){let t;r=new ReadableStream({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){const{value:n,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!y(r)){const t=new Uint8Array(n);if(t.byteLength){e.enqueue(t)}}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}const h={stream:r,source:l,length:u};return[h,d]}function safelyExtractBody(e,t=false){if(e instanceof ReadableStream){A(!n.isDisturbed(e),"The body has already been consumed.");A(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e,t){const[r,n]=t.stream.tee();t.stream=r;return{stream:n,length:t.length,source:t.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return consumeBody(this,(e=>{let t=bodyMimeType(this);if(t===null){t=""}else if(t){t=C(t)}return new g([e],{type:t})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,d,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const t=bodyMimeType(this);if(t!==null){switch(t.essence){case"multipart/form-data":{const r=S(e,t);if(r==="failure"){throw new TypeError("Failed to parse body as FormData.")}const n=new h;n[f]=r;return n}case"application/x-www-form-urlencoded":{const t=new URLSearchParams(e.toString());const r=new h;for(const[e,n]of t){r.append(e,n)}return r}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,t,r){p.brandCheck(e,r);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[f]);const n=c();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[f].body==null){successSteps(Buffer.allocUnsafe(0));return n.promise}await l(e[f].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){const t=e[f].body;return t!=null&&(t.stream.locked||n.isDisturbed(t.stream))}function parseJSONFromBytes(e){return JSON.parse(d(e))}function bodyMimeType(e){const t=e[f].headersList;const r=u(t);if(r==="failure"){return null}return r}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:_,hasFinalizationRegistry:B,bodyUnusable:bodyUnusable}},4495:e=>{const t=["GET","HEAD","POST"];const r=new Set(t);const n=[101,204,205,304];const s=[301,302,303,307,308];const i=new Set(s);const o=["1","7","9","11","13","15","17","19","
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */a[o-4]=r[0];a[o-3]=r[1];a[o-2]=r[2];a[o-1]=r[3];a[1]=i;if(i===126){a.writeUInt16BE(s,2)}else if(i===127){a[2]=a[3]=0;a.writeUIntBE(s,4,6)}a[1]|=128;for(let e=0;e<s;++e){a[o+e]=t[e]^r[e&3]}return a}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},19469:(e,t,r)=>{const{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:s}=r(38522);const{isValidClientWindowBits:i}=r(98625);const{MessageSizeExceededError:o}=r(68707);const a=Buffer.from([0,0,255,255]);const c=Symbol("kBuffer");const l=Symbol("kLength");const u=4*1024*1024;class PerMessageDeflate{#ce;#e={};#M=false;#le=null;constructor(e){this.#e.serverNoContextTakeover=e.has("server_no_context_takeover");this.#e.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,r){if(this.#M){r(new o);return}if(!this.#ce){let e=s;if(this.#e.serverMaxWindowBits){if(!i(this.#e.serverMaxWindowBits)){r(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#e.serverMaxWindowBits)}try{this.#ce=n({windowBits:e})}catch(e){r(e);return}this.#ce[c]=[];this.#ce[l]=0;this.#ce.on("data",(e=>{if(this.#M){return}this.#ce[l]+=e.length;if(this.#ce[l]>u){this.#M=true;this.#ce.removeAllListeners();this.#ce.destroy();this.#ce=null;if(this.#le){const e=this.#le;this.#le=null;e(new o)}return}this.#ce[c].push(e)}));this.#ce.on("error",(e=>{this.#ce=null;r(e)}))}this.#le=r;this.#ce.write(e);if(t){this.#ce.write(a)}this.#ce.flush((()=>{if(this.#M||!this.#ce){return}const e=Buffer.concat(this.#ce[c],this.#ce[l]);this.#ce[c].length=0;this.#ce[l]=0;this.#le=null;r(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},81652:(e,t,r)=>{const{Writable:n}=r(57075);const s=r(34589);const{parserStates:i,opcodes:o,states:a,emptyBuffer:c,sentCloseFrameState:l}=r(20736);const{kReadyState:u,kSentClose:d,kResponse:h,kReceivedClose:f}=r(61216);const{channels:p}=r(42414);const{isValidStatusCode:g,isValidOpcode:A,failWebsocketConnection:y,websocketMessageReceived:b,utf8Decode:w,isControlFrame:C,isTextBinaryFrame:S,isContinuationFrame:I}=r(98625);const{WebsocketFrameSend:v}=r(3264);const{closeWebSocketConnection:B}=r(86897);const{PerMessageDeflate:_}=r(19469);class ByteParser extends n{#ue=[];#de=0;#he=false;#O=i.INFO;#fe={};#pe=[];#ge;constructor(e,t){super();this.ws=e;this.#ge=t==null?new Map:t;if(this.#ge.has("permessage-deflate")){this.#ge.set("permessage-deflate",new _(t))}}_write(e,t,r){this.#ue.push(e);this.#de+=e.length;this.#he=true;this.run(r)}run(e){while(this.#he){if(this.#O===i.INFO){if(this.#de<2){return e()}const t=this.consume(2);const r=(t[0]&128)!==0;const n=t[0]&15;const s=(t[1]&128)===128;const a=!r&&n!==o.CONTINUATION;const c=t[1]&127;const l=t[0]&64;const u=t[0]&32;const d=t[0]&16;if(!A(n)){y(this.ws,"Invalid opcode received");return e()}if(s){y(this.ws,"Frame cannot be masked");return e()}if(l!==0&&!this.#ge.has("permessage-deflate")){y(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){y(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!S(n)){y(this.ws,"Invalid frame type was fragmented.");return}if(S(n)&&this.#pe.length>0){y(this.ws,"Expected continuation frame");return}if(this.#fe.fragmented&&a){y(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&C(n)){y(this.ws,"Control frame either too large or fragmented");return}if(I(n)&&this.#pe.length===0&&!this.#fe.compressed){y(this.ws,"Unexpected continuation frame");return}if(c<=125){this.#fe.payloadLength=c;this.#O=i.READ_DATA}else if(c===126){this.#O=i.PAYLOADLENGTH_16}else if(c===127){this.#O=i.PAYLOADLENGTH_64}if(S(n)){this.#fe.binaryType=n;this.#fe.compressed=l!==0}this.#fe.opcode=n;this.#fe.masked=s;this.#fe.fin=r;this.#fe.fragmented=a}else if(this.#O===i.PAYLOADLENGTH_16){if(this.#de<2){return e()}const t=this.consume(2);this.#fe.payloadLength=t.readUInt16BE(0);this.#O=i.READ_DATA}else if(this.#O===i.PAYLOADLENGTH_64){if(this.#de<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);const n=t.readUInt32BE(4);if(r!==0||n>2**31-1){y(this.ws,"Received payload length > 2^31 bytes.");return}this.#fe.payloadLength=n;this.
/**
* ZipStream
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
* @copyright (c) 2014 Chris Talkington, contributors.
*/
var n=r(39023).inherits;var s=r(47544).ZipArchiveOutputStream;var i=r(47544).ZipArchiveEntry;var o=r(53296);var a=e.exports=function(e){if(!(this instanceof a)){return new a(e)}e=this.options=e||{};e.zlib=e.zlib||{};s.call(this,e);if(typeof e.level==="number"&&e.level>=0){e.zlib.level=e.level;delete e.level}if(!e.forceZip64&&typeof e.zlib.level==="number"&&e.zlib.level===0){e.store=true}e.namePrependSlash=e.namePrependSlash||false;if(e.comment&&e.comment.length>0){this.setComment(e.comment)}};n(a,s);a.prototype._normalizeFileData=function(e){e=o.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";var r=e.type==="symlink";if(e.name){e.name=o.sanitizePath(e.name);if(!r&&e.name.slice(-1)==="/"){t=true;e.type="directory"}else if(t){e.name+="/"}}if(t||r){e.store=true}e.date=o.dateify(e.date);return e};a.prototype.entry=function(e,t,r){if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}t=this._normalizeFileData(t);if(t.type!=="file"&&t.type!=="directory"&&t.type!=="symlink"){r(new Error(t.type+" entries not currently supported"));return}if(typeof t.name!=="string"||t.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(t.type==="symlink"&&typeof t.linkname!=="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var n=new i(t.name);n.setTime(t.date,this.options.forceLocalTime);if(t.namePrependSlash){n.setName(t.name,true)}if(t.store){n.setMethod(0)}if(t.comment.length>0){n.setComment(t.comment)}if(t.type==="symlink"&&typeof t.mode!=="number"){t.mode=40960}if(typeof t.mode==="number"){if(t.type==="symlink"){t.mode|=40960}n.setUnixMode(t.mode)}if(t.type==="symlink"&&typeof t.linkname==="string"){e=Buffer.from(t.linkname)}return s.prototype.entry.call(this,n,e,r)};a.prototype.finalize=function(){this.finish()}},42613:t=>{t.exports=e(import.meta.url)("assert")},20181:t=>{t.exports=e(import.meta.url)("buffer")},49140:t=>{t.exports=e(import.meta.url)("constants")},76982:t=>{t.exports=e(import.meta.url)("crypto")},72250:t=>{t.exports=e(import.meta.url)("dns")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},91943:t=>{t.exports=e(import.meta.url)("fs/promises")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},34589:t=>{t.exports=e(import.meta.url)("node:assert")},16698:t=>{t.exports=e(import.meta.url)("node:async_hooks")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},37540:t=>{t.exports=e(import.meta.url)("node:console")},77598:t=>{t.exports=e(import.meta.url)("node:crypto")},53053:t=>{t.exports=e(import.meta.url)("node:diagnostics_channel")},40610:t=>{t.exports=e(import.meta.url)("node:dns")},78474:t=>{t.exports=e(import.meta.url)("node:events")},73024:t=>{t.exports=e(import.meta.url)("node:fs")},51455:t=>{t.exports=e(import.meta.url)("node:fs/promises")},37067:t=>{t.exports=e(import.meta.url)("node:http")},32467:t=>{t.exports=e(import.meta.url)("node:http2")},77030:t=>{t.exports=e(import.meta.url)("node:net")},76760:t=>{t.exports=e(import.meta.url)("node:path")},643:t=>{t.exports=e(import.meta.url)("node:perf_hooks")},41792:t=>{t.exports=e(import.meta.url)("node:querystring")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},46193:t=>{t.exports=e(import.meta.url)("node:string_decoder")},41692:t=>{t.exports=e(import.meta.url)("node:tls")},73136:t=>{t.exports=e(import.meta.url)("node:url")},57975:t=>{t.exports=e(import.meta.url)("node:util")},73429:t=>{t.exports=e(import.meta.url)("node:util/types")},75919:t=>{t.exports=e(import.meta.url)("node:worker_threads")},38522:t=>{t.exports=e(import.meta.url)("node:zlib")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},2203:t=>{t.exports=e(import.meta.url)("stream")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var wp="10.0.8";var Cp={headers:{"user-agent":`octokit-request.js/${wp} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var noop=()=>"";async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSONStringify(e.body):e.body;const i=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let o;try{o=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:i,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=o.status;const c=o.url;const l={};for(const[e,t]of o.headers){l[e]=t}const u={url:c,status:a,headers:l,data:""};if("deprecation"in l){const t=l.link&&l.link.match(/<([^<>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return u}if(e.method==="HEAD"){if(a<400){return u}throw new RequestError(o.statusText,a,{response:u,request:e})}if(a===304){u.data=await getResponseData(o);throw new RequestError("Not modified",a,{response:u,request:e})}if(a>=400){u.data=await getResponseData(o);throw new RequestError(toErrorMessage(u.data),a,{response:u,request:e})}u.data=n?await getResponseData(o):o.body;return u}async function getResponseData(e){const t=e.headers.get("content-type");if(!t){return e.text().catch(noop)}const r=(0,lp.xL)(t);if(isJSONResponse(r)){let t="";try{t=await e.text();return JSONParse(t)}catch(e){return t}}else if(r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"){return e.text().catch(noop)}else{return e.arrayBuffer().catch((
/* v8 ignore next -- @preserve */
()=>new ArrayBuffer(0)))}}function isJSONResponse(e){return e.type==="application/json"||e.type==="application/scim+json"}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var Sp=dist_bundle_withDefaults(ap,Cp);
/* v8 ignore next -- @preserve */
/* v8 ignore else -- @preserve */var Ip="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var vp=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Bp=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var _p=["query","method","url"];var Tp=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!_p.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Bp.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const i=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(Tp.test(i)){s.url=i.replace(Tp,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new vp(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var Rp=graphql_dist_bundle_withDefaults(Sp,{headers:{"user-agent":`octokit-graphql.js/${Ip} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var Np="(?:[a-zA-Z0-9_-]+)";var xp="\\.";var kp=new RegExp(`^${Np}${xp}${Np}${xp}${Np}$`);var Op=kp.test.bind(kp);async function auth(e){const t=Op(e);const r=e.startsWith("v1.")||e.startsWith("ghs_");const n=e.startsWith("ghu_");const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var Dp=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const Qp="7.0.6";const dist_src_noop=()=>{};const Pp=console.warn.bind(console);const Lp=console.error.bind(console);function createLogger(e={}){if(typeof e.debug!=="function"){e.debug=dist_src_noop}if(typeof e.info!=="function"){e.info=dist_src_noop}if(typeof e.warn!=="function"){e.warn=Pp}if(typeof e.error!=="function"){e.error=Lp}return e}const Mp=`octokit-core.js/${Qp} ${getUserAgent()}`;class Octokit{static VERSION=Qp;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new rp.Collection;const r={baseUrl:Sp.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Mp}`:Mp;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=Sp.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=createLogger(e.log);this.hook=t;if(!e.a
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
function isNothing(e){return typeof e==="undefined"||e===null}function js_yaml_isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function js_yaml_extend(e,t){var r,n,s,i;if(t){i=Object.keys(t);for(r=0,n=i.length;r<n;r+=1){s=i[r];e[s]=t[s]}}return e}function repeat(e,t){var r="",n;for(n=0;n<t;n+=1){r+=e}return r}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Xg=isNothing;var em=js_yaml_isObject;var tm=toArray;var nm=repeat;var sm=isNegativeZero;var im=js_yaml_extend;var om={isNothing:Xg,isObject:em,toArray:tm,repeat:nm,isNegativeZero:sm,extend:im};function formatError(e,t){var r="",n=e.reason||"(unknown reason)";if(!e.mark)return n;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return n+" "+r}function YAMLException$1(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException$1.prototype=Object.create(Error.prototype);YAMLException$1.prototype.constructor=YAMLException$1;YAMLException$1.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};var am=YAMLException$1;function getLine(e,t,r,n,s){var i="";var o="";var a=Math.floor(s/2)-1;if(n-t>a){i=" ... ";t=n-a+i.length}if(r-n>a){o=" ...";r=n+a-o.length}return{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function js_yaml_padStart(e,t){return om.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var r=/\r?\n|\r|\0/g;var n=[0];var s=[];var i;var o=-1;while(i=r.exec(e.buffer)){s.push(i.index);n.push(i.index+i[0].length);if(e.position<=i.index&&o<0){o=n.length-2}}if(o<0)o=n.length-1;var a="",c,l;var u=Math.min(e.line+t.linesAfter,s.length).toString().length;var d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore;c++){if(o-c<0)break;l=getLine(e.buffer,n[o-c],s[o-c],e.position-(n[o]-n[o-c]),d);a=om.repeat(" ",t.indent)+js_yaml_padStart((e.line-c+1).toString(),u)+" | "+l.str+"\n"+a}l=getLine(e.buffer,n[o],s[o],e.position,d);a+=om.repeat(" ",t.indent)+js_yaml_padStart((e.line+1).toString(),u)+" | "+l.str+"\n";a+=om.repeat("-",t.indent+u+3+l.pos)+"^"+"\n";for(c=1;c<=t.linesAfter;c++){if(o+c>=s.length)break;l=getLine(e.buffer,n[o+c],s[o+c],e.position-(n[o]-n[o+c]),d);a+=om.repeat(" ",t.indent)+js_yaml_padStart((e.line+c+1).toString(),u)+" | "+l.str+"\n"}return a.replace(/\n$/,"")}var cm=makeSnippet;var lm=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var um=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type$1(e,t){t=t||{};Object.keys(t).forEach((function(t){if(lm.indexOf(t)===-1){throw new am('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(um.indexOf(this.kind)===-1){throw new am('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}var dm=Type$1;function compileList(e,t){var r=[];e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t=n}}));r[t]=e}));return r}function compileMap(){var
//# sourceMappingURL=index.js.map