3
0
Fork 0
mirror of https://gitea.com/docker/metadata-action.git synced 2024-11-22 12:09:32 +01:00
docker-metadata/dist/index.js

66 lines
1.6 MiB
JavaScript
Raw Normal View History

require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(p,o,a){"use strict";var t=this&&this.__createBinding||(Object.create?function(p,o,a,t){if(t===undefined)t=a;Object.defineProperty(p,t,{enumerable:true,get:function(){return o[a]}})}:function(p,o,a,t){if(t===undefined)t=a;p[t]=o[a]});var b=this&&this.__setModuleDefault||(Object.create?function(p,o){Object.defineProperty(p,"default",{enumerable:true,value:o})}:function(p,o){p["default"]=o});var d=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var o={};if(p!=null)for(var a in p)if(a!=="default"&&Object.hasOwnProperty.call(p,a))t(o,p,a);b(o,p);return o};Object.defineProperty(o,"__esModule",{value:true});o.issue=o.issueCommand=void 0;const M=d(a(2037));const r=a(5278);function issueCommand(p,o,a){const t=new Command(p,o,a);process.stdout.write(t.toString()+M.EOL)}o.issueCommand=issueCommand;function issue(p,o=""){issueCommand(p,{},o)}o.issue=issue;const z="::";class Command{constructor(p,o,a){if(!p){p="missing.command"}this.command=p;this.properties=o;this.message=a}toString(){let p=z+this.command;if(this.properties&&Object.keys(this.properties).length>0){p+=" ";let o=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const t=this.properties[a];if(t){if(o){o=false}else{p+=","}p+=`${a}=${escapeProperty(t)}`}}}}p+=`${z}${escapeData(this.message)}`;return p}}function escapeData(p){return r.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(p){return r.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(p,o,a){"use strict";var t=this&&this.__createBinding||(Object.create?function(p,o,a,t){if(t===undefined)t=a;Object.defineProperty(p,t,{enumerable:true,get:function(){return o[a]}})}:function(p,o,a,t){if(t===undefined)t=a;p[t]=o[a]});var b=this&&this.__setModuleDefault||(Object.create?function(p,o){Object.defineProperty(p,"default",{enumerable:true,value:o})}:function(p,o){p["default"]=o});var d=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var o={};if(p!=null)for(var a in p)if(a!=="default"&&Object.hasOwnProperty.call(p,a))t(o,p,a);b(o,p);return o};var M=this&&this.__awaiter||function(p,o,a,t){function adopt(p){return p instanceof a?p:new a((function(o){o(p)}))}return new(a||(a=Promise))((function(a,b){function fulfilled(p){try{step(t.next(p))}catch(p){b(p)}}function rejected(p){try{step(t["throw"](p))}catch(p){b(p)}}function step(p){p.done?a(p.value):adopt(p.value).then(fulfilled,rejected)}step((t=t.apply(p,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:true});o.getIDToken=o.getState=o.saveState=o.group=o.endGroup=o.startGroup=o.info=o.notice=o.warning=o.error=o.debug=o.isDebug=o.setFailed=o.setCommandEcho=o.setOutput=o.getBooleanInput=o.getMultilineInput=o.getInput=o.addPath=o.setSecret=o.exportVariable=o.ExitCode=void 0;const r=a(7351);const z=a(717);const c=a(5278);const i=d(a(2037));const O=d(a(1017));const u=a(8041);var l;(function(p){p[p["Success"]=0]="Success";p[p["Failure"]=1]="Failure"})(l=o.ExitCode||(o.ExitCode={}));function exportVariable(p,o){const a=c.toCommandValue(o);process.env[p]=a;const t=process.env["GITHUB_ENV"]||"";if(t){return z.issueFileCommand("ENV",z.prepareKeyValueMessage(p,o))}r.issueCommand("set-env",{name:p},a)}o.exportVariable=exportVariable;function setSecret(p){r.issueCommand("add-mask",{},p)}o.setSecret=setSecret;function addPath(p){const o=process.env["GITHUB_PATH"]||"";if(o){z.issueFileCommand("PATH",p)}else{r.issueCommand("add-path",{},p)}process.env["PATH"]=`${p}${O.delimiter}${process.env["PATH"]}`}o.addPath=addPath;function getInput(p,o){const a=process.env[`INPUT_${p.replace(/ /g,"_").toUpperCase()}`]||"";if(o&&o.required&&!a){throw new Error(`Input required and not supplied: ${p}`)}if(o&&o.trimWhitespace===false){return a}return a.trim()}o.getInput=getInput;function getMultilineInput(p,o){const a=getInput(p,o).split("\n").filter((p=>p!==""));if(o&&o.trimWhitespace===false){return a}return a.map((p=
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function isObject(p){return Object.prototype.toString.call(p)==="[object Object]"}function isPlainObject(p){var o,a;if(isObject(p)===false)return false;o=p.constructor;if(o===undefined)return true;a=o.prototype;if(isObject(a)===false)return false;if(a.hasOwnProperty("isPrototypeOf")===false){return false}return true}o.isPlainObject=isPlainObject},7129:(p,o,a)=>{"use strict";const t=a(665);const b=Symbol("max");const d=Symbol("length");const M=Symbol("lengthCalculator");const r=Symbol("allowStale");const z=Symbol("maxAge");const c=Symbol("dispose");const i=Symbol("noDisposeOnSet");const O=Symbol("lruList");const u=Symbol("cache");const l=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(p){if(typeof p==="number")p={max:p};if(!p)p={};if(p.max&&(typeof p.max!=="number"||p.max<0))throw new TypeError("max must be a non-negative number");const o=this[b]=p.max||Infinity;const a=p.length||naiveLength;this[M]=typeof a!=="function"?naiveLength:a;this[r]=p.stale||false;if(p.maxAge&&typeof p.maxAge!=="number")throw new TypeError("maxAge must be a number");this[z]=p.maxAge||0;this[c]=p.dispose;this[i]=p.noDisposeOnSet||false;this[l]=p.updateAgeOnGet||false;this.reset()}set max(p){if(typeof p!=="number"||p<0)throw new TypeError("max must be a non-negative number");this[b]=p||Infinity;trim(this)}get max(){return this[b]}set allowStale(p){this[r]=!!p}get allowStale(){return this[r]}set maxAge(p){if(typeof p!=="number")throw new TypeError("maxAge must be a non-negative number");this[z]=p;trim(this)}get maxAge(){return this[z]}set lengthCalculator(p){if(typeof p!=="function")p=naiveLength;if(p!==this[M]){this[M]=p;this[d]=0;this[O].forEach((p=>{p.length=this[M](p.value,p.key);this[d]+=p.length}))}trim(this)}get lengthCalculator(){return this[M]}get length(){return this[d]}get itemCount(){return this[O].length}rforEach(p,o){o=o||this;for(let a=this[O].tail;a!==null;){const t=a.prev;forEachStep(this,p,a,o);a=t}}forEach(p,o){o=o||this;for(let a=this[O].head;a!==null;){const t=a.next;forEachStep(this,p,a,o);a=t}}keys(){return this[O].toArray().map((p=>p.key))}values(){return this[O].toArray().map((p=>p.value))}reset(){if(this[c]&&this[O]&&this[O].length){this[O].forEach((p=>this[c](p.key,p.value)))}this[u]=new Map;this[O]=new t;this[d]=0}dump(){return this[O].map((p=>isStale(this,p)?false:{k:p.key,v:p.value,e:p.now+(p.maxAge||0)})).toArray().filter((p=>p))}dumpLru(){return this[O]}set(p,o,a){a=a||this[z];if(a&&typeof a!=="number")throw new TypeError("maxAge must be a number");const t=a?Date.now():0;const r=this[M](o,p);if(this[u].has(p)){if(r>this[b]){del(this,this[u].get(p));return false}const M=this[u].get(p);const z=M.value;if(this[c]){if(!this[i])this[c](p,z.value)}z.now=t;z.maxAge=a;z.value=o;this[d]+=r-z.length;z.length=r;this.get(p);trim(this);return true}const l=new Entry(p,o,r,t,a);if(l.length>this[b]){if(this[c])this[c](p,o);return false}this[d]+=l.length;this[O].unshift(l);this[u].set(p,this[O].head);trim(this);return true}has(p){if(!this[u].has(p))return false;const o=this[u].get(p).value;return!isStale(this,o)}get(p){return get(this,p,true)}peek(p){return get(this,p,false)}pop(){const p=this[O].tail;if(!p)return null;del(this,p);return p.value}del(p){del(this,this[u].get(p))}load(p){this.reset();const o=Date.now();for(let a=p.length-1;a>=0;a--){const t=p[a];const b=t.e||0;if(b===0)this.set(t.k,t.v);else{const p=b-o;if(p>0){this.set(t.k,t.v,p)}}}}prune(){this[u].forEach(((p,o)=>get(this,o,false)))}}const get=(p,o,a)=>{const t=p[u].get(o);if(t){const o=t.value;if(isStale(p,o)){del(p,t);if(!p[r])return undefined}else{if(a){if(p[l])t.value.now=Date.now();p[O].unshiftNode(t)}}return o.value}};const isStale=(p,o)=>{if(!o||!o.maxAge&&!p[z])return false;const a=Date.now()-o.now;return o.maxAge?a>o.maxAge:p[z]&&a>p[z]};const trim=p=>{if(p[d]>p[b]){for(let o=p[O].tail;p[d]>p[b]&&o!==null;){const a=o.prev;del(p,o);o=a}}};const del=(p,o)=>{if(o){const a=o.value;if(p[c])p[c](a.key,a.value);p[d]-=a.length;p[u].delete(a.key);p[O].removeNode(o)}};class Entry{constructor(p,o,a,t,b){this.key=p;this.value=o;this.length
//! moment-timezone.js
//! version : 0.5.40
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(o,t){"use strict";if(true&&p.exports){p.exports=t(a(9623))}else if(typeof define==="function"&&define.amd){define(["moment"],t)}else{t(o.moment)}})(this,(function(p){"use strict";if(p.version===undefined&&p.default){p=p.default}var o="0.5.40",a={},t={},b={},d={},M={},r;if(!p||typeof p.version!=="string"){logError("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/")}var z=p.version.split("."),c=+z[0],i=+z[1];if(c<2||c===2&&i<6){logError("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+p.version+". See momentjs.com")}function charCodeToInt(p){if(p>96){return p-87}else if(p>64){return p-29}return p-48}function unpackBase60(p){var o=0,a=p.split("."),t=a[0],b=a[1]||"",d=1,M,r=0,z=1;if(p.charCodeAt(0)===45){o=1;z=-1}for(o;o<t.length;o++){M=charCodeToInt(t.charCodeAt(o));r=60*r+M}for(o=0;o<b.length;o++){d=d/60;M=charCodeToInt(b.charCodeAt(o));r+=M*d}return r*z}function arrayToInt(p){for(var o=0;o<p.length;o++){p[o]=unpackBase60(p[o])}}function intToUntil(p,o){for(var a=0;a<o;a++){p[a]=Math.round((p[a-1]||0)+p[a]*6e4)}p[o-1]=Infinity}function mapIndices(p,o){var a=[],t;for(t=0;t<o.length;t++){a[t]=p[o[t]]}return a}function unpack(p){var o=p.split("|"),a=o[2].split(" "),t=o[3].split(""),b=o[4].split(" ");arrayToInt(a);arrayToInt(t);arrayToInt(b);intToUntil(b,t.length);return{name:o[0],abbrs:mapIndices(o[1].split(" "),t),offsets:mapIndices(a,t),untils:b,population:o[5]|0}}function Zone(p){if(p){this._set(unpack(p))}}Zone.prototype={_set:function(p){this.name=p.name;this.abbrs=p.abbrs;this.untils=p.untils;this.offsets=p.offsets;this.population=p.population},_index:function(p){var o=+p,a=this.untils,t;for(t=0;t<a.length;t++){if(o<a[t]){return t}}},countries:function(){var p=this.name;return Object.keys(b).filter((function(o){return b[o].zones.indexOf(p)!==-1}))},parse:function(p){var o=+p,a=this.offsets,t=this.untils,b=t.length-1,d,M,r,z;for(z=0;z<b;z++){d=a[z];M=a[z+1];r=a[z?z-1:z];if(d<M&&tz.moveAmbiguousForward){d=M}else if(d>r&&tz.moveInvalidForward){d=r}if(o<t[z]-d*6e4){return a[z]}}return a[b]},abbr:function(p){return this.abbrs[this._index(p)]},offset:function(p){logError("zone.offset has been deprecated in favor of zone.utcOffset");return this.offsets[this._index(p)]},utcOffset:function(p){return this.offsets[this._index(p)]}};function Country(p,o){this.name=p;this.zones=o}function OffsetAt(p){var o=p.toTimeString();var a=o.match(/\([a-z ]+\)/i);if(a&&a[0]){a=a[0].match(/[A-Z]/g);a=a?a.join(""):undefined}else{a=o.match(/[A-Z]{3,5}/g);a=a?a[0]:undefined}if(a==="GMT"){a=undefined}this.at=+p;this.abbr=a;this.offset=p.getTimezoneOffset()}function ZoneScore(p){this.zone=p;this.offsetScore=0;this.abbrScore=0}ZoneScore.prototype.scoreOffsetAt=function(p){this.offsetScore+=Math.abs(this.zone.utcOffset(p.at)-p.offset);if(this.zone.abbr(p.at).replace(/[^A-Z]/g,"")!==p.abbr){this.abbrScore++}};function findChange(p,o){var a,t;while(t=((o.at-p.at)/12e4|0)*6e4){a=new OffsetAt(new Date(p.at+t));if(a.offset===p.offset){p=a}else{o=a}}return p}function userOffsets(){var p=(new Date).getFullYear()-2,o=new OffsetAt(new Date(p,0,1)),a=[o],t,b,d;for(d=1;d<48;d++){b=new OffsetAt(new Date(p,d,1));if(b.offset!==o.offset){t=findChange(o,b);a.push(t);a.push(new OffsetAt(new Date(t.at+6e4)))}o=b}for(d=0;d<4;d++){a.push(new OffsetAt(new Date(p+d,0,1)));a.push(new OffsetAt(new Date(p+d,6,1)))}return a}function sortZoneScores(p,o){if(p.offsetScore!==o.offsetScore){return p.offsetScore-o.offsetScore}if(p.abbrScore!==o.abbrScore){return p.abbrScore-o.abbrScore}if(p.zone.population!==o.zone.population){return o.zone.population-p.zone.population}return o.zone.name.localeCompare(p.zone.name)}function addToGuesses(p,o){var a,t;arrayToInt(o);for(a=0;a<o.length;a++){t=o[a];M[t]=M[t]||{};M[t][p]=true}}function guessesForUserOffsets(p){var o=p.length,a={},t=[],b,r,z;for(b=0;b<o;b++){z=M[p[b].offset]||{};for(r in z){if(z.hasOwnProperty(r)){a[r]=true}}}for(b in a){if(a.hasOwnProperty(b)){t.push(d[b])}}return t}function rebuildGuess(){try{var p=Intl.DateTimeFormat().resolvedOptions().timeZon
//! moment.js
//! version : 2.29.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(o,a){true?p.exports=a():0})(this,(function(){"use strict";var o;function hooks(){return o.apply(null,arguments)}function setHookCallback(p){o=p}function isArray(p){return p instanceof Array||Object.prototype.toString.call(p)==="[object Array]"}function isObject(p){return p!=null&&Object.prototype.toString.call(p)==="[object Object]"}function hasOwnProp(p,o){return Object.prototype.hasOwnProperty.call(p,o)}function isObjectEmpty(p){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(p).length===0}else{var o;for(o in p){if(hasOwnProp(p,o)){return false}}return true}}function isUndefined(p){return p===void 0}function isNumber(p){return typeof p==="number"||Object.prototype.toString.call(p)==="[object Number]"}function isDate(p){return p instanceof Date||Object.prototype.toString.call(p)==="[object Date]"}function map(p,o){var a=[],t,b=p.length;for(t=0;t<b;++t){a.push(o(p[t],t))}return a}function extend(p,o){for(var a in o){if(hasOwnProp(o,a)){p[a]=o[a]}}if(hasOwnProp(o,"toString")){p.toString=o.toString}if(hasOwnProp(o,"valueOf")){p.valueOf=o.valueOf}return p}function createUTC(p,o,a,t){return createLocalOrUTC(p,o,a,t,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(p){if(p._pf==null){p._pf=defaultParsingFlags()}return p._pf}var a;if(Array.prototype.some){a=Array.prototype.some}else{a=function(p){var o=Object(this),a=o.length>>>0,t;for(t=0;t<a;t++){if(t in o&&p.call(this,o[t],t,o)){return true}}return false}}function isValid(p){if(p._isValid==null){var o=getParsingFlags(p),t=a.call(o.parsedDateParts,(function(p){return p!=null})),b=!isNaN(p._d.getTime())&&o.overflow<0&&!o.empty&&!o.invalidEra&&!o.invalidMonth&&!o.invalidWeekday&&!o.weekdayMismatch&&!o.nullInput&&!o.invalidFormat&&!o.userInvalidated&&(!o.meridiem||o.meridiem&&t);if(p._strict){b=b&&o.charsLeftOver===0&&o.unusedTokens.length===0&&o.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(p)){p._isValid=b}else{return b}}return p._isValid}function createInvalid(p){var o=createUTC(NaN);if(p!=null){extend(getParsingFlags(o),p)}else{getParsingFlags(o).userInvalidated=true}return o}var t=hooks.momentProperties=[],b=false;function copyConfig(p,o){var a,b,d,M=t.length;if(!isUndefined(o._isAMomentObject)){p._isAMomentObject=o._isAMomentObject}if(!isUndefined(o._i)){p._i=o._i}if(!isUndefined(o._f)){p._f=o._f}if(!isUndefined(o._l)){p._l=o._l}if(!isUndefined(o._strict)){p._strict=o._strict}if(!isUndefined(o._tzm)){p._tzm=o._tzm}if(!isUndefined(o._isUTC)){p._isUTC=o._isUTC}if(!isUndefined(o._offset)){p._offset=o._offset}if(!isUndefined(o._pf)){p._pf=getParsingFlags(o)}if(!isUndefined(o._locale)){p._locale=o._locale}if(M>0){for(a=0;a<M;a++){b=t[a];d=o[b];if(!isUndefined(d)){p[b]=d}}}return p}function Moment(p){copyConfig(this,p);this._d=new Date(p._d!=null?p._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(b===false){b=true;hooks.updateOffset(this);b=false}}function isMoment(p){return p instanceof Moment||p!=null&&p._isAMomentObject!=null}function warn(p){if(hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+p)}}function deprecate(p,o){var a=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,p)}if(a){var t=[],b,d,M,r=arguments.length;for(d=0;d<r;d++){b="";if(typeof arguments[d]==="object"){b+="\n["+d+"] ";for(M in arguments[0]){if(hasOwnProp(arguments[0],M)){b+=M+": "+arguments[0][M]+", "}}b=b.slice(0,-2)}else{b=arguments[d]}t.push(b)}warn(p+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack);a=false}return o.apply(this,arguments)}),o)}var d={};function deprecateSimple(p,o){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(p,o)}if(!d[p]){warn(o);d[p]=true}}hooks.suppressDeprecationWarnings=false;hooks.depr
//! moment.js
hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=He;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=He;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},467:(p,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:true});function _interopDefault(p){return p&&typeof p==="object"&&"default"in p?p["default"]:p}var t=_interopDefault(a(2781));var b=_interopDefault(a(3685));var d=_interopDefault(a(7310));var M=_interopDefault(a(3323));var r=_interopDefault(a(5687));var z=_interopDefault(a(9796));const c=t.Readable;const i=Symbol("buffer");const O=Symbol("type");class Blob{constructor(){this[O]="";const p=arguments[0];const o=arguments[1];const a=[];let t=0;if(p){const o=p;const b=Number(o.length);for(let p=0;p<b;p++){const b=o[p];let d;if(b instanceof Buffer){d=b}else if(ArrayBuffer.isView(b)){d=Buffer.from(b.buffer,b.byteOffset,b.byteLength)}else if(b instanceof ArrayBuffer){d=Buffer.from(b)}else if(b instanceof Blob){d=b[i]}else{d=Buffer.from(typeof b==="string"?b:String(b))}t+=d.length;a.push(d)}}this[i]=Buffer.concat(a);let b=o&&o.type!==undefined&&String(o.type).toLowerCase();if(b&&!/[^\u0020-\u007E]/.test(b)){this[O]=b}}get size(){return this[i].length}get type(){return this[O]}text(){return Promise.resolve(this[i].toString())}arrayBuffer(){const p=this[i];const o=p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength);return Promise.resolve(o)}stream(){const p=new c;p._read=function(){};p.push(this[i]);p.push(null);return p}toString(){return"[object Blob]"}slice(){const p=this.size;const o=arguments[0];const a=arguments[1];let t,b;if(o===undefined){t=0}else if(o<0){t=Math.max(p+o,0)}else{t=Math.min(o,p)}if(a===undefined){b=p}else if(a<0){b=Math.max(p+a,0)}else{b=Math.min(a,p)}const d=Math.max(b-t,0);const M=this[i];const r=M.slice(t,t+d);const z=new Blob([],{type:arguments[2]});z[i]=r;return z}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(p,o,a){Error.call(this,p);this.message=p;this.type=o;if(a){this.code=this.errno=a.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let u;try{u=a(2877).convert}catch(p){}const l=Symbol("Body internals");const A=t.PassThrough;function Body(p){var o=this;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},b=a.size;let d=b===undefined?0:b;var M=a.timeout;let r=M===undefined?0:M;if(p==null){p=null}else if(isURLSearchParams(p)){p=Buffer.from(p.toString())}else if(isBlob(p));else if(Buffer.isBuffer(p));else if(Object.prototype.toString.call(p)==="[object ArrayBuffer]"){p=Buffer.from(p)}else if(ArrayBuffer.isView(p)){p=Buffer.from(p.buffer,p.byteOffset,p.byteLength)}else if(p instanceof t);else{p=Buffer.from(String(p))}this[l]={body:p,disturbed:false,error:null};this.size=d;this.timeout=r;if(p instanceof t){p.on("error",(function(p){const a=p.name==="AbortError"?p:new FetchError(`Invalid response body while tryi
/*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*/var c=function _default(p){var o="xregexp";var a=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;var t=p.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,a],"g",{conjunction:"or"});function deanchor(p){var o=/^(?:\(\?:\))*\^/;var a=/\$(?:\(\?:\))*$/;if(o.test(p)&&a.test(p)&&a.test(p.replace(/\\[\s\S]/g,""))){return p.replace(o,"").replace(a,"")}return p}function asXRegExp(a,t){var b=t?"x":"";return p.isRegExp(a)?a[o]&&a[o].captureNames?a:p(a.source,b):p(a,b)}function interpolate(o){return o instanceof RegExp?o:p.escape(o)}function reduceToSubpatternsObject(p,o,a){p["subpattern".concat(a)]=o;return p}function embedSubpatternAfter(p,o,a){var t=o<a.length-1;return p+(t?"{{subpattern".concat(o,"}}"):"")}p.tag=function(o){return function(a){var t,b;for(var d=arguments.length,M=new Array(d>1?d-1:0),c=1;c<d;c++){M[c-1]=arguments[c]}var i=(0,z["default"])(t=(0,r["default"])(M).call(M,interpolate)).call(t,reduceToSubpatternsObject,{});var O=(0,r["default"])(b=a.raw).call(b,embedSubpatternAfter).join("");return p.build(O,i,o)}};p.build=function(b,r,z){z=z||"";var c=(0,M["default"])(z).call(z,"x");var i=/^\(\?([\w$]+)\)/.exec(b);if(i){z=p._clipDuplicates(z+i[1])}var O={};for(var u in r){if(r.hasOwnProperty(u)){var l=asXRegExp(r[u],c);O[u]={pattern:deanchor(l.source),names:l[o].captureNames||[]}}}var A=asXRegExp(b,c);var q=0;var m;var W=0;var h=[0];var R=A[o].captureNames||[];var g=A.source.replace(t,(function(p,o,t,b,M){var r=o||t;var z;var c;var i;if(r){var u;if(!O.hasOwnProperty(r)){throw new ReferenceError("Undefined property ".concat(p))}if(o){z=R[W];h[++W]=++q;c="(?<".concat(z||r,">")}else{c="(?:"}m=q;var l=O[r].pattern.replace(a,(function(p,o,a){if(o){z=O[r].names[q-m];++q;if(z){return"(?<".concat(z,">")}}else if(a){i=+a-1;return O[r].names[i]?"\\k<".concat(O[r].names[i],">"):"\\".concat(+a+m)}return p}));return(0,d["default"])(u="".concat(c)).call(u,l,")")}if(b){z=R[W];h[++W]=++q;if(z){return"(?<".concat(z,">")}}else if(M){i=+M-1;return R[i]?"\\k<".concat(R[i],">"):"\\".concat(h[+M])}return p}));return p(g,z)}};o["default"]=c;p.exports=o.default},4811:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(9188));var M=t(a(466));var r=t(a(6611));
/*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*/var z=function _default(p){function row(p,o,a,t){return{name:p,value:o,start:a,end:t}}p.matchRecursive=function(o,a,t,b,z){b=b||"";z=z||{};var c=(0,r["default"])(b).call(b,"g");var i=(0,r["default"])(b).call(b,"y");var O=b.replace(/y/g,"");var u=z,l=u.escapeChar;var A=z.valueNames;var q=[];var m=0;var W=0;var h=0;var R=0;var g;var v;var L;var _;var N;a=p(a,O);t=p(t,O);if(l){var w,B;if(l.length>1){throw new Error("Cannot use more than one escape character")}l=p.escape(l);N=new RegExp((0,M["default"])(w=(0,M["default"])(B="(?:".concat(l,"[\\S\\s]|(?:(?!")).call(B,p.union([a,t],"",{conjunction:"or"}).source,")[^")).call(w,l,"])+)+"),b.replace(/[^imu]+/g,""))}while(true){if(l){h+=(p.exec(o,N,h,"sticky")||[""])[0].length}L=p.exec(o,a,h);_=p.exec(o,t,h);if(L&&_){if(L.index<=_.index){_=null}else{L=null}}if(L||_){W=(L||_).index;h=W+(L||_)[0].length}else if(!m){break}if(i&&!m&&W>R){break}if(L){if(!m){g=W;v=h}++m}else if(_&&m){if(!--m){if(A){if(A[0]&&g>R){q.push(row(A[0],(0,d["default"])(o).call(o,R,g),R,g))}if(A[1]){q.push(row(A[1],(0,d["default"])(o).call(o,g,v),g,v))}if(A[2]){q.push(row(A[2],(0,d["default"])(o).call(o,v,W),v,W))}if(A[3]){q.push(row(A[3],(0,d["default"])(o).call(o,W,h),W,h))}}else{q.push((0,d["default"])(o).call(o,v,W))}R=h;if(!c){break}}}else{throw new Error("Unbalanced delimiter found in string")}if(W===h){++h}}if(c&&!i&&A&&A[0]&&o.length>R){q.push(row(A[0],(0,d["default"])(o).call(o,R),R,o.length))}return q}};o["default"]=z;p.exports=o.default},3110:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(2038));var M=t(a(5401));var r=t(a(9640));var z=t(a(7652));var c=t(a(3361));var i=t(a(9188));var O=t(a(6611));var u=t(a(466));var l=t(a(669));function _createForOfIteratorHelper(p,o){var a;if(typeof z["default"]==="undefined"||(0,r["default"])(p)==null){if((0,M["default"])(p)||(a=_unsupportedIterableToArray(p))||o&&p&&typeof p.length==="number"){if(a)p=a;var t=0;var b=function F(){};return{s:b,n:function n(){if(t>=p.length)return{done:true};return{done:false,value:p[t++]}},e:function e(p){throw p},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,i=false,O;return{s:function s(){a=(0,d["default"])(p)},n:function n(){var p=a.next();c=p.done;return p},e:function e(p){i=true;O=p},f:function f(){try{if(!c&&a["return"]!=null)a["return"]()}finally{if(i)throw O}}}}function _unsupportedIterableToArray(p,o){var a;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,o);var t=(0,i["default"])(a=Object.prototype.toString.call(p)).call(a,8,-1);if(t==="Object"&&p.constructor)t=p.constructor.name;if(t==="Map"||t==="Set")return(0,c["default"])(p);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(p,o)}function _arrayLikeToArray(p,o){if(o==null||o>p.length)o=p.length;for(var a=0,t=new Array(o);a<o;a++){t[a]=p[a]}return t}
/*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*/var A=function _default(p){var o={};var a=p._dec;var t=p._hex;var b=p._pad4;function normalize(p){return p.replace(/[- _]+/g,"").toLowerCase()}function charCode(p){var o=/^\\[xu](.+)/.exec(p);return o?a(o[1]):p.charCodeAt(p[0]==="\\"?1:0)}function invertBmp(o){var a="";var d=-1;(0,l["default"])(p).call(p,o,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(p){var o=charCode(p[1]);if(o>d+1){a+="\\u".concat(b(t(d+1)));if(o>d+2){a+="-\\u".concat(b(t(o-1)))}}d=charCode(p[2]||p[1])}));if(d<65535){a+="\\u".concat(b(t(d+1)));if(d<65534){a+="-\\uFFFF"}}return a}function cacheInvertedBmp(p){var a="b!";return o[p][a]||(o[p][a]=invertBmp(o[p].bmp))}function buildAstral(p,a){var t=o[p];var b="";if(t.bmp&&!t.isBmpLast){var d;b=(0,u["default"])(d="[".concat(t.bmp,"]")).call(d,t.astral?"|":"")}if(t.astral){b+=t.astral}if(t.isBmpLast&&t.bmp){var M;b+=(0,u["default"])(M="".concat(t.astral?"|":"","[")).call(M,t.bmp,"]")}return a?"(?:(?!".concat(b,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-￿]))"):"(?:".concat(b,")")}function cacheAstral(p,a){var t=a?"a!":"a=";return o[p][t]||(o[p][t]=buildAstral(p,a))}p.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(p,a,t){var b="Invalid double negation ";var d="Unknown Unicode token ";var M="Unicode token missing data ";var r="Astral mode required for Unicode token ";var z="Astral mode does not support Unicode tokens within character classes";var c=p[1]==="P"||!!p[2];var i=(0,O["default"])(t).call(t,"A");var l=normalize(p[4]||p[3]);var A=o[l];if(p[1]==="P"&&p[2]){throw new SyntaxError(b+p[0])}if(!o.hasOwnProperty(l)){throw new SyntaxError(d+p[0])}if(A.inverseOf){l=normalize(A.inverseOf);if(!o.hasOwnProperty(l)){var q;throw new ReferenceError((0,u["default"])(q="".concat(M+p[0]," -> ")).call(q,A.inverseOf))}A=o[l];c=!c}if(!(A.bmp||i)){throw new SyntaxError(r+p[0])}if(i){if(a==="class"){throw new SyntaxError(z)}return cacheAstral(l,c)}return a==="class"?c?cacheInvertedBmp(l):A.bmp:"".concat((c?"[^":"[")+A.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"});p.addUnicodeData=function(a){var t="Unicode token requires name";var b="Unicode token has no character data ";var d=_createForOfIteratorHelper(a),M;try{for(d.s();!(M=d.n()).done;){var r=M.value;if(!r.name){throw new Error(t)}if(!(r.inverseOf||r.bmp||r.astral)){throw new Error(b+r.name)}o[normalize(r.name)]=r;if(r.alias){o[normalize(r.alias)]=r}}}catch(p){d.e(p)}finally{d.f()}p.cache.flush("patterns")};p._getUnicodeProperty=function(p){var a=normalize(p);return o[a]}};o["default"]=A;p.exports=o.default},4686:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(5826));
/*!
* XRegExp Unicode Blocks 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var M=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks")}p.addUnicodeData(d["default"])};o["default"]=M;p.exports=o.default},1996:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(8537));
/*!
* XRegExp Unicode Categories 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var M=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Categories")}p.addUnicodeData(d["default"])};o["default"]=M;p.exports=o.default},9250:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(616));
/*!
* XRegExp Unicode Properties 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var M=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Properties")}var o=d["default"];o.push({name:"Assigned",inverseOf:"Cn"});p.addUnicodeData(o)};o["default"]=M;p.exports=o.default},5715:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(2524));
/*!
* XRegExp Unicode Scripts 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var M=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts")}p.addUnicodeData(d["default"])};o["default"]=M;p.exports=o.default},7750:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(8612));var M=t(a(380));var r=t(a(4811));var z=t(a(3110));var c=t(a(4686));var i=t(a(1996));var O=t(a(9250));var u=t(a(5715));(0,M["default"])(d["default"]);(0,r["default"])(d["default"]);(0,z["default"])(d["default"]);(0,c["default"])(d["default"]);(0,i["default"])(d["default"]);(0,O["default"])(d["default"]);(0,u["default"])(d["default"]);var l=d["default"];o["default"]=l;p.exports=o.default},8612:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(2038));var M=t(a(5401));var r=t(a(9640));var z=t(a(7652));var c=t(a(3361));var i=t(a(466));var O=t(a(3781));var u=t(a(6761));var l=t(a(8135));var A=t(a(669));var q=t(a(6611));var m=t(a(1308));var W=t(a(9188));var h=t(a(8979));var R=t(a(3046));function _createForOfIteratorHelper(p,o){var a;if(typeof z["default"]==="undefined"||(0,r["default"])(p)==null){if((0,M["default"])(p)||(a=_unsupportedIterableToArray(p))||o&&p&&typeof p.length==="number"){if(a)p=a;var t=0;var b=function F(){};return{s:b,n:function n(){if(t>=p.length)return{done:true};return{done:false,value:p[t++]}},e:function e(p){throw p},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,i=false,O;return{s:function s(){a=(0,d["default"])(p)},n:function n(){var p=a.next();c=p.done;return p},e:function e(p){i=true;O=p},f:function f(){try{if(!c&&a["return"]!=null)a["return"]()}finally{if(i)throw O}}}}function _unsupportedIterableToArray(p,o){var a;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,o);var t=(0,W["default"])(a=Object.prototype.toString.call(p)).call(a,8,-1);if(t==="Object"&&p.constructor)t=p.constructor.name;if(t==="Map"||t==="Set")return(0,c["default"])(p);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(p,o)}function _arrayLikeToArray(p,o){if(o==null||o>p.length)o=p.length;for(var a=0,t=new Array(o);a<o;a++){t[a]=p[a]}return t}
/*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*/var g="xregexp";var v={astral:false,namespacing:false};var L={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var _={};var N={};var w={};var B=[];var T="default";var y="class";var E={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/};var S=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var X=L.exec.call(/()??/,"")[1]===undefined;var k=(0,R["default"])(/x/)!==undefined;var P={},C=P.toString;function hasNativeFlag(p){var o=true;try{new RegExp("",p);if(p==="y"){var a=function(){return"gy"}();var t=".a".replace(new RegExp("a",a),".")==="..";if(t){o=false}}}catch(p){o=false}return o}var D=hasNativeFlag("u");var x=hasNativeFlag("y");var I={g:true,i:true,m:true,u:D,y:x};function augment(p,o,a,t,b){var d;p[g]={captureNames:o};if(b){return p}if(p.__proto__){p.__proto__=XRegExp.prototype}else{for(var M in XRegExp.prototype){p[M]=XRegExp.prototype[M]}}p[g].source=a;p[g].flags=t?(0,h["default"])(d=t.split("")).call(d).join(""):t;return p}function clipDuplicates(p){return L.replace.call(p,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(p,o){var a;if(!XRegExp.isRegExp(p)){throw new TypeError("Type RegExp expected")}var t=p[g]||{};var b=getNativeFlags(p);var d="";var M="";var r=null;var z=null;o=o||{};if(o.removeG){M+="g"}if(o.removeY){M+="y"}if(M){b=L.replace.call(b,new RegExp("[".concat(M,"]+"),"g"),"")}if(o.addG){d+="g"}if(o.addY){d+="y"}if(d){b=clipDuplicates(b+d)}if(!o.isInternalOnly){if(t.source!==undefined){r=t.source}if((0,R["default"])(t)!=null){z=d?clipDuplicates((0,R["default"])(t)+d):(0,R["default"])(t)}}p=augment(new RegExp(o.source||p.source,b),hasNamedCapture(p)?(0,W["default"])(a=t.captureNames).call(a,0):null,r,z,o.isInternalOnly);return p}function dec(p){return(0,m["default"])(p,16)}function getContextualTokenSeparator(p,o,a){if(p.input[p.index-1]==="("||p.input[p.index+p[0].length]===")"||p.input[p.index-1]==="|"||p.input[p.index+p[0].length]==="|"||p.index<1||p.index+p[0].length>=p.input.length||L.test.call(/^\(\?[:=!]/,p.input.substr(p.index-3,3))||isQuantifierNext(p.input,p.index+p[0].length,a)){return""}return"(?:)"}function getNativeFlags(p){return k?(0,R["default"])(p):L.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(p))[1]}function hasNamedCapture(p){return!!(p[g]&&p[g].captureNames)}function hex(p){return(0,m["default"])(p,10).toString(16)}function isQuantifierNext(p,o,a){var t="\\(\\?#[^)]*\\)";var b="#[^#\\n]*";var d="[?*+]|{\\d+(?:,\\d*)?}";return L.test.call((0,q["default"])(a).call(a,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,W["default"])(p).call(p,o))}function isType(p,o){return C.call(p)==="[object ".concat(o,"]")}function pad4(p){while(p.length<4){p="0".concat(p)}return p}function prepareFlags(p,o){if(clipDuplicates(o)!==o){throw new SyntaxError("Invalid duplicate regex flag ".concat(o))}p=L.replace.call(p,/^\(\?([\w$]+)\)/,(function(p,a){if(L.test.call(/[gy]/,a)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(p))}o=clipDuplicates(o+a);return""}));var a=_createForOfIteratorHelper(o),t;try{for(a.s();!(t=a.n()).done;){var b=t.value;if(!I[b]){throw new SyntaxError("Unknown regex flag ".concat(b))}}}catch(p){a.e(p)}finally{a.f()}return{pattern:p,flags:o}}function prepareOptions(p){var o={};if(isType(p,"String")){(0,A["default"])(XRegExp).call(XRegExp,p,/[^\s,]+/,(function(p){o[p]=true}));return o}return p}function registerFlag(p){if(!/^[\w$]$/.test(p)){throw new Error("Flag must be a single character A-Za-z0-9_$")}I[p]=true}function runTokens(p,o,a,t,b){var d=B.length;var M=p[a];var r=null;var z;var c;while(d--){c=B[d];if(c.leadChar&&c.leadChar!==M||c.scope!==t&&c.scope!=="all"||c.flag&&!(0,q["default"])(o).call(o,c.flag)){continue}z=XRegExp.exec(p,c.regex,a,"sticky");i
//# sourceMappingURL=index.js.map