metadata-action/dist/index.js

74 lines
1.8 MiB
JavaScript
Raw Normal View History

require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(p,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(p,r,a,i){if(i===undefined)i=a;Object.defineProperty(p,i,{enumerable:true,get:function(){return r[a]}})}:function(p,r,a,i){if(i===undefined)i=a;p[i]=r[a]});var d=this&&this.__setModuleDefault||(Object.create?function(p,r){Object.defineProperty(p,"default",{enumerable:true,value:r})}:function(p,r){p["default"]=r});var c=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var r={};if(p!=null)for(var a in p)if(a!=="default"&&Object.hasOwnProperty.call(p,a))i(r,p,a);d(r,p);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const b=c(a(2037));const M=a(5278);function issueCommand(p,r,a){const i=new Command(p,r,a);process.stdout.write(i.toString()+b.EOL)}r.issueCommand=issueCommand;function issue(p,r=""){issueCommand(p,{},r)}r.issue=issue;const z="::";class Command{constructor(p,r,a){if(!p){p="missing.command"}this.command=p;this.properties=r;this.message=a}toString(){let p=z+this.command;if(this.properties&&Object.keys(this.properties).length>0){p+=" ";let r=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const i=this.properties[a];if(i){if(r){r=false}else{p+=","}p+=`${a}=${escapeProperty(i)}`}}}}p+=`${z}${escapeData(this.message)}`;return p}}function escapeData(p){return M.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(p){return M.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(p,r,a){"use strict";var i=this&&this.__createBinding||(Object.create?function(p,r,a,i){if(i===undefined)i=a;Object.defineProperty(p,i,{enumerable:true,get:function(){return r[a]}})}:function(p,r,a,i){if(i===undefined)i=a;p[i]=r[a]});var d=this&&this.__setModuleDefault||(Object.create?function(p,r){Object.defineProperty(p,"default",{enumerable:true,value:r})}:function(p,r){p["default"]=r});var c=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var r={};if(p!=null)for(var a in p)if(a!=="default"&&Object.hasOwnProperty.call(p,a))i(r,p,a);d(r,p);return r};var b=this&&this.__awaiter||function(p,r,a,i){function adopt(p){return p instanceof a?p:new a((function(r){r(p)}))}return new(a||(a=Promise))((function(a,d){function fulfilled(p){try{step(i.next(p))}catch(p){d(p)}}function rejected(p){try{step(i["throw"](p))}catch(p){d(p)}}function step(p){p.done?a(p.value):adopt(p.value).then(fulfilled,rejected)}step((i=i.apply(p,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getIDToken=r.getState=r.saveState=r.group=r.endGroup=r.startGroup=r.info=r.notice=r.warning=r.error=r.debug=r.isDebug=r.setFailed=r.setCommandEcho=r.setOutput=r.getBooleanInput=r.getMultilineInput=r.getInput=r.addPath=r.setSecret=r.exportVariable=r.ExitCode=void 0;const M=a(7351);const z=a(717);const u=a(5278);const O=c(a(2037));const l=c(a(1017));const A=a(8041);var m;(function(p){p[p["Success"]=0]="Success";p[p["Failure"]=1]="Failure"})(m=r.ExitCode||(r.ExitCode={}));function exportVariable(p,r){const a=u.toCommandValue(r);process.env[p]=a;const i=process.env["GITHUB_ENV"]||"";if(i){return z.issueFileCommand("ENV",z.prepareKeyValueMessage(p,r))}M.issueCommand("set-env",{name:p},a)}r.exportVariable=exportVariable;function setSecret(p){M.issueCommand("add-mask",{},p)}r.setSecret=setSecret;function addPath(p){const r=process.env["GITHUB_PATH"]||"";if(r){z.issueFileCommand("PATH",p)}else{M.issueCommand("add-path",{},p)}process.env["PATH"]=`${p}${l.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(p,r){const a=process.env[`INPUT_${p.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!a){throw new Error(`Input required and not supplied: ${p}`)}if(r&&r.trimWhitespace===false){return a}return a.trim()}r.getInput=getInput;function getMultilineInput(p,r){const a=getInput(p,r).split("\n").filter((p=>p!==""));if(r&&r.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 r,a;if(isObject(p)===false)return false;r=p.constructor;if(r===undefined)return true;a=r.prototype;if(isObject(a)===false)return false;if(a.hasOwnProperty("isPrototypeOf")===false){return false}return true}r.isPlainObject=isPlainObject},4329:p=>{"use strict";function e(p){this.message=p}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(p){var r=String(p).replace(/=+$/,"");if(r.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var a,i,d=0,c=0,b="";i=r.charAt(c++);~i&&(a=d%4?64*a+i:i,d++%4)?b+=String.fromCharCode(255&a>>(-2*d&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return b};function t(p){var a=p.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw"Illegal base64url string!"}try{return function(p){return decodeURIComponent(r(p).replace(/(.)/g,(function(p,r){var a=r.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a})))}(a)}catch(p){return r(a)}}function n(p){this.message=p}function o(p,r){if("string"!=typeof p)throw new n("Invalid token specified");var a=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(p.split(".")[a]))}catch(p){throw new n("Invalid token specified: "+p.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";const a=o;a.default=o,a.InvalidTokenError=n,p.exports=a},7129:(p,r,a)=>{"use strict";const i=a(665);const d=Symbol("max");const c=Symbol("length");const b=Symbol("lengthCalculator");const M=Symbol("allowStale");const z=Symbol("maxAge");const u=Symbol("dispose");const O=Symbol("noDisposeOnSet");const l=Symbol("lruList");const A=Symbol("cache");const m=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 r=this[d]=p.max||Infinity;const a=p.length||naiveLength;this[b]=typeof a!=="function"?naiveLength:a;this[M]=p.stale||false;if(p.maxAge&&typeof p.maxAge!=="number")throw new TypeError("maxAge must be a number");this[z]=p.maxAge||0;this[u]=p.dispose;this[O]=p.noDisposeOnSet||false;this[m]=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[d]=p||Infinity;trim(this)}get max(){return this[d]}set allowStale(p){this[M]=!!p}get allowStale(){return this[M]}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[b]){this[b]=p;this[c]=0;this[l].forEach((p=>{p.length=this[b](p.value,p.key);this[c]+=p.length}))}trim(this)}get lengthCalculator(){return this[b]}get length(){return this[c]}get itemCount(){return this[l].length}rforEach(p,r){r=r||this;for(let a=this[l].tail;a!==null;){const i=a.prev;forEachStep(this,p,a,r);a=i}}forEach(p,r){r=r||this;for(let a=this[l].head;a!==null;){const i=a.next;forEachStep(this,p,a,r);a=i}}keys(){return this[l].toArray().map((p=>p.key))}values(){return this[l].toArray().map((p=>p.value))}reset(){if(this[u]&&this[l]&&this[l].length){this[l].forEach((p=>this[u](p.key,p.value)))}this[A]=new Map;this[l]=new i;this[c]=0}dump(){return this[l].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[l]}set(p,r,a){a=a||this[z];if(a&&typeof a!=="number")throw new TypeError("maxAge must be a number");const i=a?Date.now():0;const M=this[b](r,p);if(this[A].has(p)){if(M>this[d]){del(this,this[A].get(p));return false}const b=this[A].get(p);const z=b.value;if(this[u]){if(!this[O])this[u](p,z.value)}z.now=i;z.maxAge=a;z.value=r;this[c]+=M-z.length;z.length=M;this.get(p);trim(this);return true}const m=new Entr
//! moment-timezone.js
//! version : 0.5.43
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(r,i){"use strict";if(true&&p.exports){p.exports=i(a(9623))}else if(typeof define==="function"&&define.amd){define(["moment"],i)}else{i(r.moment)}})(this,(function(p){"use strict";if(p.version===undefined&&p.default){p=p.default}var r="0.5.43",a={},i={},d={},c={},b={},M;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("."),u=+z[0],O=+z[1];if(u<2||u===2&&O<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 r=0,a=p.split("."),i=a[0],d=a[1]||"",c=1,b,M=0,z=1;if(p.charCodeAt(0)===45){r=1;z=-1}for(r;r<i.length;r++){b=charCodeToInt(i.charCodeAt(r));M=60*M+b}for(r=0;r<d.length;r++){c=c/60;b=charCodeToInt(d.charCodeAt(r));M+=b*c}return M*z}function arrayToInt(p){for(var r=0;r<p.length;r++){p[r]=unpackBase60(p[r])}}function intToUntil(p,r){for(var a=0;a<r;a++){p[a]=Math.round((p[a-1]||0)+p[a]*6e4)}p[r-1]=Infinity}function mapIndices(p,r){var a=[],i;for(i=0;i<r.length;i++){a[i]=p[r[i]]}return a}function unpack(p){var r=p.split("|"),a=r[2].split(" "),i=r[3].split(""),d=r[4].split(" ");arrayToInt(a);arrayToInt(i);arrayToInt(d);intToUntil(d,i.length);return{name:r[0],abbrs:mapIndices(r[1].split(" "),i),offsets:mapIndices(a,i),untils:d,population:r[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 r=+p,a=this.untils,i;for(i=0;i<a.length;i++){if(r<a[i]){return i}}},countries:function(){var p=this.name;return Object.keys(d).filter((function(r){return d[r].zones.indexOf(p)!==-1}))},parse:function(p){var r=+p,a=this.offsets,i=this.untils,d=i.length-1,c,b,M,z;for(z=0;z<d;z++){c=a[z];b=a[z+1];M=a[z?z-1:z];if(c<b&&tz.moveAmbiguousForward){c=b}else if(c>M&&tz.moveInvalidForward){c=M}if(r<i[z]-c*6e4){return a[z]}}return a[d]},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,r){this.name=p;this.zones=r}function OffsetAt(p){var r=p.toTimeString();var a=r.match(/\([a-z ]+\)/i);if(a&&a[0]){a=a[0].match(/[A-Z]/g);a=a?a.join(""):undefined}else{a=r.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,r){var a,i;while(i=((r.at-p.at)/12e4|0)*6e4){a=new OffsetAt(new Date(p.at+i));if(a.offset===p.offset){p=a}else{r=a}}return p}function userOffsets(){var p=(new Date).getFullYear()-2,r=new OffsetAt(new Date(p,0,1)),a=[r],i,d,c;for(c=1;c<48;c++){d=new OffsetAt(new Date(p,c,1));if(d.offset!==r.offset){i=findChange(r,d);a.push(i);a.push(new OffsetAt(new Date(i.at+6e4)))}r=d}for(c=0;c<4;c++){a.push(new OffsetAt(new Date(p+c,0,1)));a.push(new OffsetAt(new Date(p+c,6,1)))}return a}function sortZoneScores(p,r){if(p.offsetScore!==r.offsetScore){return p.offsetScore-r.offsetScore}if(p.abbrScore!==r.abbrScore){return p.abbrScore-r.abbrScore}if(p.zone.population!==r.zone.population){return r.zone.population-p.zone.population}return r.zone.name.localeCompare(p.zone.name)}function addToGuesses(p,r){var a,i;arrayToInt(r);for(a=0;a<r.length;a++){i=r[a];b[i]=b[i]||{};b[i][p]=true}}function guessesForUserOffsets(p){var r=p.length,a={},i=[],d,M,z;for(d=0;d<r;d++){z=b[p[d].offset]||{};for(M in z){if(z.hasOwnProperty(M)){a[M]=true}}}for(d in a){if(a.hasOwnProperty(d)){i.push(c[d])}}return i}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(r,a){true?p.exports=a():0})(this,(function(){"use strict";var r;function hooks(){return r.apply(null,arguments)}function setHookCallback(p){r=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,r){return Object.prototype.hasOwnProperty.call(p,r)}function isObjectEmpty(p){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(p).length===0}else{var r;for(r in p){if(hasOwnProp(p,r)){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,r){var a=[],i,d=p.length;for(i=0;i<d;++i){a.push(r(p[i],i))}return a}function extend(p,r){for(var a in r){if(hasOwnProp(r,a)){p[a]=r[a]}}if(hasOwnProp(r,"toString")){p.toString=r.toString}if(hasOwnProp(r,"valueOf")){p.valueOf=r.valueOf}return p}function createUTC(p,r,a,i){return createLocalOrUTC(p,r,a,i,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 r=Object(this),a=r.length>>>0,i;for(i=0;i<a;i++){if(i in r&&p.call(this,r[i],i,r)){return true}}return false}}function isValid(p){if(p._isValid==null){var r=getParsingFlags(p),i=a.call(r.parsedDateParts,(function(p){return p!=null})),d=!isNaN(p._d.getTime())&&r.overflow<0&&!r.empty&&!r.invalidEra&&!r.invalidMonth&&!r.invalidWeekday&&!r.weekdayMismatch&&!r.nullInput&&!r.invalidFormat&&!r.userInvalidated&&(!r.meridiem||r.meridiem&&i);if(p._strict){d=d&&r.charsLeftOver===0&&r.unusedTokens.length===0&&r.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(p)){p._isValid=d}else{return d}}return p._isValid}function createInvalid(p){var r=createUTC(NaN);if(p!=null){extend(getParsingFlags(r),p)}else{getParsingFlags(r).userInvalidated=true}return r}var i=hooks.momentProperties=[],d=false;function copyConfig(p,r){var a,d,c,b=i.length;if(!isUndefined(r._isAMomentObject)){p._isAMomentObject=r._isAMomentObject}if(!isUndefined(r._i)){p._i=r._i}if(!isUndefined(r._f)){p._f=r._f}if(!isUndefined(r._l)){p._l=r._l}if(!isUndefined(r._strict)){p._strict=r._strict}if(!isUndefined(r._tzm)){p._tzm=r._tzm}if(!isUndefined(r._isUTC)){p._isUTC=r._isUTC}if(!isUndefined(r._offset)){p._offset=r._offset}if(!isUndefined(r._pf)){p._pf=getParsingFlags(r)}if(!isUndefined(r._locale)){p._locale=r._locale}if(b>0){for(a=0;a<b;a++){d=i[a];c=r[d];if(!isUndefined(c)){p[d]=c}}}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(d===false){d=true;hooks.updateOffset(this);d=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,r){var a=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,p)}if(a){var i=[],d,c,b,M=arguments.length;for(c=0;c<M;c++){d="";if(typeof arguments[c]==="object"){d+="\n["+c+"] ";for(b in arguments[0]){if(hasOwnProp(arguments[0],b)){d+=b+": "+arguments[0][b]+", "}}d=d.slice(0,-2)}else{d=arguments[c]}i.push(d)}warn(p+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack);a=false}return r.apply(this,arguments)}),r)}var c={};function deprecateSimple(p,r){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(p,r)}if(!c[p]){warn(r);c[p]=true}}hooks.suppressDeprecationWarnings=false;hooks.depr
//! moment.js
hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=Ye;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=Ye;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,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function _interopDefault(p){return p&&typeof p==="object"&&"default"in p?p["default"]:p}var i=_interopDefault(a(2781));var d=_interopDefault(a(3685));var c=_interopDefault(a(7310));var b=_interopDefault(a(8665));var M=_interopDefault(a(5687));var z=_interopDefault(a(9796));const u=i.Readable;const O=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const p=arguments[0];const r=arguments[1];const a=[];let i=0;if(p){const r=p;const d=Number(r.length);for(let p=0;p<d;p++){const d=r[p];let c;if(d instanceof Buffer){c=d}else if(ArrayBuffer.isView(d)){c=Buffer.from(d.buffer,d.byteOffset,d.byteLength)}else if(d instanceof ArrayBuffer){c=Buffer.from(d)}else if(d instanceof Blob){c=d[O]}else{c=Buffer.from(typeof d==="string"?d:String(d))}i+=c.length;a.push(c)}}this[O]=Buffer.concat(a);let d=r&&r.type!==undefined&&String(r.type).toLowerCase();if(d&&!/[^\u0020-\u007E]/.test(d)){this[l]=d}}get size(){return this[O].length}get type(){return this[l]}text(){return Promise.resolve(this[O].toString())}arrayBuffer(){const p=this[O];const r=p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength);return Promise.resolve(r)}stream(){const p=new u;p._read=function(){};p.push(this[O]);p.push(null);return p}toString(){return"[object Blob]"}slice(){const p=this.size;const r=arguments[0];const a=arguments[1];let i,d;if(r===undefined){i=0}else if(r<0){i=Math.max(p+r,0)}else{i=Math.min(r,p)}if(a===undefined){d=p}else if(a<0){d=Math.max(p+a,0)}else{d=Math.min(a,p)}const c=Math.max(d-i,0);const b=this[O];const M=b.slice(i,i+c);const z=new Blob([],{type:arguments[2]});z[O]=M;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,r,a){Error.call(this,p);this.message=p;this.type=r;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 A;try{A=a(2877).convert}catch(p){}const m=Symbol("Body internals");const q=i.PassThrough;function Body(p){var r=this;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},d=a.size;let c=d===undefined?0:d;var b=a.timeout;let M=b===undefined?0:b;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 i);else{p=Buffer.from(String(p))}this[m]={body:p,disturbed:false,error:null};this.size=c;this.timeout=M;if(p instanceof i){p.on("error",(function(p){const a=p.name==="AbortError"?p:new FetchError(`Invalid response body while tryi
/*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*/
const i=a(7147);const d=a(2037);const c=a(1017);const b=a(6113);const M={fs:i.constants,os:d.constants};const z=a(4959);const u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",O=/XXXXXX/,l=3,A=(M.O_CREAT||M.fs.O_CREAT)|(M.O_EXCL||M.fs.O_EXCL)|(M.O_RDWR||M.fs.O_RDWR),m=d.platform()==="win32",q=M.EBADF||M.os.errno.EBADF,h=M.ENOENT||M.os.errno.ENOENT,W=448,g=384,v="exit",R=[],_=i.rmdirSync.bind(i),L=z.sync;let w=false;function tmpName(p,r){const a=_parseArguments(p,r),d=a[0],c=a[1];try{_assertAndSanitizeOptions(d)}catch(p){return c(p)}let b=d.tries;(function _getUniqueName(){try{const p=_generateTmpName(d);i.stat(p,(function(r){if(!r){if(b-- >0)return _getUniqueName();return c(new Error("Could not get a unique tmp filename, max tries reached "+p))}c(null,p)}))}catch(p){c(p)}})()}function tmpNameSync(p){const r=_parseArguments(p),a=r[0];_assertAndSanitizeOptions(a);let d=a.tries;do{const p=_generateTmpName(a);try{i.statSync(p)}catch(r){return p}}while(d-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(p,r){const a=_parseArguments(p,r),d=a[0],c=a[1];tmpName(d,(function _tmpNameCreated(p,r){if(p)return c(p);i.open(r,A,d.mode||g,(function _fileCreated(p,a){if(p)return c(p);if(d.discardDescriptor){return i.close(a,(function _discardCallback(p){return c(p,r,undefined,_prepareTmpFileRemoveCallback(r,-1,d,false))}))}else{const p=d.discardDescriptor||d.detachDescriptor;c(null,r,a,_prepareTmpFileRemoveCallback(r,p?-1:a,d,false))}}))}))}function fileSync(p){const r=_parseArguments(p),a=r[0];const d=a.discardDescriptor||a.detachDescriptor;const c=tmpNameSync(a);var b=i.openSync(c,A,a.mode||g);if(a.discardDescriptor){i.closeSync(b);b=undefined}return{name:c,fd:b,removeCallback:_prepareTmpFileRemoveCallback(c,d?-1:b,a,true)}}function dir(p,r){const a=_parseArguments(p,r),d=a[0],c=a[1];tmpName(d,(function _tmpNameCreated(p,r){if(p)return c(p);i.mkdir(r,d.mode||W,(function _dirCreated(p){if(p)return c(p);c(null,r,_prepareTmpDirRemoveCallback(r,d,false))}))}))}function dirSync(p){const r=_parseArguments(p),a=r[0];const d=tmpNameSync(a);i.mkdirSync(d,a.mode||W);return{name:d,removeCallback:_prepareTmpDirRemoveCallback(d,a,true)}}function _removeFileAsync(p,r){const _handler=function(p){if(p&&!_isENOENT(p)){return r(p)}r()};if(0<=p[0])i.close(p[0],(function(){i.unlink(p[1],_handler)}));else i.unlink(p[1],_handler)}function _removeFileSync(p){let r=null;try{if(0<=p[0])i.closeSync(p[0])}catch(p){if(!_isEBADF(p)&&!_isENOENT(p))throw p}finally{try{i.unlinkSync(p[1])}catch(p){if(!_isENOENT(p))r=p}}if(r!==null){throw r}}function _prepareTmpFileRemoveCallback(p,r,a,i){const d=_prepareRemoveCallback(_removeFileSync,[r,p],i);const c=_prepareRemoveCallback(_removeFileAsync,[r,p],i,d);if(!a.keep)R.unshift(d);return i?d:c}function _prepareTmpDirRemoveCallback(p,r,a){const d=r.unsafeCleanup?z:i.rmdir.bind(i);const c=r.unsafeCleanup?L:_;const b=_prepareRemoveCallback(c,p,a);const M=_prepareRemoveCallback(d,p,a,b);if(!r.keep)R.unshift(b);return a?b:M}function _prepareRemoveCallback(p,r,a,i){let d=false;return function _cleanupCallback(c){if(!d){const b=i||_cleanupCallback;const M=R.indexOf(b);if(M>=0)R.splice(M,1);d=true;if(a||p===_||p===L){return p(r)}else{return p(r,c||function(){})}}}}function _garbageCollector(){if(!w)return;while(R.length){try{R[0]()}catch(p){}}}function _randomChars(p){let r=[],a=null;try{a=b.randomBytes(p)}catch(r){a=b.pseudoRandomBytes(p)}for(var i=0;i<p;i++){r.push(u[a[i]%u.length])}return r.join("")}function _isBlank(p){return p===null||_isUndefined(p)||!p.trim()}function _isUndefined(p){return typeof p==="undefined"}function _parseArguments(p,r){if(typeof p==="function"){return[{},p]}if(_isUndefined(p)){return[{},r]}const a={};for(const r of Object.getOwnPropertyNames(p)){a[r]=p[r]}return[a,r]}function _generateTmpName(p){const r=p.tmpdir;if(!_isUndefined(p.name))return c.join(r,p.dir,p.name);if(!_isUndefined(p.template))return c.join(r,p.dir,p.template).replace(O,_randomChars(6));const a=[p.prefix?p.prefix:"tmp","-",process.pid,"-",_randomChars(12),p.postfix?"-"+p.po
/*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*/var u=function _default(p){var r="xregexp";var a=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;var i=p.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,a],"g",{conjunction:"or"});function deanchor(p){var r=/^(?:\(\?:\))*\^/;var a=/\$(?:\(\?:\))*$/;if(r.test(p)&&a.test(p)&&a.test(p.replace(/\\[\s\S]/g,""))){return p.replace(r,"").replace(a,"")}return p}function asXRegExp(a,i){var d=i?"x":"";return p.isRegExp(a)?a[r]&&a[r].captureNames?a:p(a.source,d):p(a,d)}function interpolate(r){return r instanceof RegExp?r:p.escape(r)}function reduceToSubpatternsObject(p,r,a){p["subpattern".concat(a)]=r;return p}function embedSubpatternAfter(p,r,a){var i=r<a.length-1;return p+(i?"{{subpattern".concat(r,"}}"):"")}p.tag=function(r){return function(a){var i,d;for(var c=arguments.length,b=new Array(c>1?c-1:0),u=1;u<c;u++){b[u-1]=arguments[u]}var O=(0,z["default"])(i=(0,M["default"])(b).call(b,interpolate)).call(i,reduceToSubpatternsObject,{});var l=(0,M["default"])(d=a.raw).call(d,embedSubpatternAfter).join("");return p.build(l,O,r)}};p.build=function(d,M,z){z=z||"";var u=(0,b["default"])(z).call(z,"x");var O=/^\(\?([\w$]+)\)/.exec(d);if(O){z=p._clipDuplicates(z+O[1])}var l={};for(var A in M){if(M.hasOwnProperty(A)){var m=asXRegExp(M[A],u);l[A]={pattern:deanchor(m.source),names:m[r].captureNames||[]}}}var q=asXRegExp(d,u);var h=0;var W;var g=0;var v=[0];var R=q[r].captureNames||[];var _=q.source.replace(i,(function(p,r,i,d,b){var M=r||i;var z;var u;var O;if(M){var A;if(!l.hasOwnProperty(M)){throw new ReferenceError("Undefined property ".concat(p))}if(r){z=R[g];v[++g]=++h;u="(?<".concat(z||M,">")}else{u="(?:"}W=h;var m=l[M].pattern.replace(a,(function(p,r,a){if(r){z=l[M].names[h-W];++h;if(z){return"(?<".concat(z,">")}}else if(a){O=+a-1;return l[M].names[O]?"\\k<".concat(l[M].names[O],">"):"\\".concat(+a+W)}return p}));return(0,c["default"])(A="".concat(u)).call(A,m,")")}if(d){z=R[g];v[++g]=++h;if(z){return"(?<".concat(z,">")}}else if(b){O=+b-1;return R[O]?"\\k<".concat(R[O],">"):"\\".concat(v[+b])}return p}));return p(_,z)}};r["default"]=u;p.exports=r.default},4811:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(a(9188));var b=i(a(466));var M=i(a(6611));
/*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*/var z=function _default(p){function row(p,r,a,i){return{name:p,value:r,start:a,end:i}}p.matchRecursive=function(r,a,i,d,z){d=d||"";z=z||{};var u=(0,M["default"])(d).call(d,"g");var O=(0,M["default"])(d).call(d,"y");var l=d.replace(/y/g,"");var A=z,m=A.escapeChar;var q=z.valueNames;var h=[];var W=0;var g=0;var v=0;var R=0;var _;var L;var w;var E;var T;a=p(a,l);i=p(i,l);if(m){var N,y;if(m.length>1){throw new Error("Cannot use more than one escape character")}m=p.escape(m);T=new RegExp((0,b["default"])(N=(0,b["default"])(y="(?:".concat(m,"[\\S\\s]|(?:(?!")).call(y,p.union([a,i],"",{conjunction:"or"}).source,")[^")).call(N,m,"])+)+"),d.replace(/[^imu]+/g,""))}while(true){if(m){v+=(p.exec(r,T,v,"sticky")||[""])[0].length}w=p.exec(r,a,v);E=p.exec(r,i,v);if(w&&E){if(w.index<=E.index){E=null}else{w=null}}if(w||E){g=(w||E).index;v=g+(w||E)[0].length}else if(!W){break}if(O&&!W&&g>R){break}if(w){if(!W){_=g;L=v}++W}else if(E&&W){if(!--W){if(q){if(q[0]&&_>R){h.push(row(q[0],(0,c["default"])(r).call(r,R,_),R,_))}if(q[1]){h.push(row(q[1],(0,c["default"])(r).call(r,_,L),_,L))}if(q[2]){h.push(row(q[2],(0,c["default"])(r).call(r,L,g),L,g))}if(q[3]){h.push(row(q[3],(0,c["default"])(r).call(r,g,v),g,v))}}else{h.push((0,c["default"])(r).call(r,L,g))}R=v;if(!u){break}}}else{throw new Error("Unbalanced delimiter found in string")}if(g===v){++v}}if(u&&!O&&q&&q[0]&&r.length>R){h.push(row(q[0],(0,c["default"])(r).call(r,R),R,r.length))}return h}};r["default"]=z;p.exports=r.default},3110:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(a(2038));var b=i(a(5401));var M=i(a(9640));var z=i(a(7652));var u=i(a(3361));var O=i(a(9188));var l=i(a(6611));var A=i(a(466));var m=i(a(669));function _createForOfIteratorHelper(p,r){var a;if(typeof z["default"]==="undefined"||(0,M["default"])(p)==null){if((0,b["default"])(p)||(a=_unsupportedIterableToArray(p))||r&&p&&typeof p.length==="number"){if(a)p=a;var i=0;var d=function F(){};return{s:d,n:function n(){if(i>=p.length)return{done:true};return{done:false,value:p[i++]}},e:function e(p){throw p},f:d}}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 u=true,O=false,l;return{s:function s(){a=(0,c["default"])(p)},n:function n(){var p=a.next();u=p.done;return p},e:function e(p){O=true;l=p},f:function f(){try{if(!u&&a["return"]!=null)a["return"]()}finally{if(O)throw l}}}}function _unsupportedIterableToArray(p,r){var a;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,r);var i=(0,O["default"])(a=Object.prototype.toString.call(p)).call(a,8,-1);if(i==="Object"&&p.constructor)i=p.constructor.name;if(i==="Map"||i==="Set")return(0,u["default"])(p);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(p,r)}function _arrayLikeToArray(p,r){if(r==null||r>p.length)r=p.length;for(var a=0,i=new Array(r);a<r;a++){i[a]=p[a]}return i}
/*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*/var q=function _default(p){var r={};var a=p._dec;var i=p._hex;var d=p._pad4;function normalize(p){return p.replace(/[- _]+/g,"").toLowerCase()}function charCode(p){var r=/^\\[xu](.+)/.exec(p);return r?a(r[1]):p.charCodeAt(p[0]==="\\"?1:0)}function invertBmp(r){var a="";var c=-1;(0,m["default"])(p).call(p,r,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(p){var r=charCode(p[1]);if(r>c+1){a+="\\u".concat(d(i(c+1)));if(r>c+2){a+="-\\u".concat(d(i(r-1)))}}c=charCode(p[2]||p[1])}));if(c<65535){a+="\\u".concat(d(i(c+1)));if(c<65534){a+="-\\uFFFF"}}return a}function cacheInvertedBmp(p){var a="b!";return r[p][a]||(r[p][a]=invertBmp(r[p].bmp))}function buildAstral(p,a){var i=r[p];var d="";if(i.bmp&&!i.isBmpLast){var c;d=(0,A["default"])(c="[".concat(i.bmp,"]")).call(c,i.astral?"|":"")}if(i.astral){d+=i.astral}if(i.isBmpLast&&i.bmp){var b;d+=(0,A["default"])(b="".concat(i.astral?"|":"","[")).call(b,i.bmp,"]")}return a?"(?:(?!".concat(d,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-￿]))"):"(?:".concat(d,")")}function cacheAstral(p,a){var i=a?"a!":"a=";return r[p][i]||(r[p][i]=buildAstral(p,a))}p.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(p,a,i){var d="Invalid double negation ";var c="Unknown Unicode token ";var b="Unicode token missing data ";var M="Astral mode required for Unicode token ";var z="Astral mode does not support Unicode tokens within character classes";var u=p[1]==="P"||!!p[2];var O=(0,l["default"])(i).call(i,"A");var m=normalize(p[4]||p[3]);var q=r[m];if(p[1]==="P"&&p[2]){throw new SyntaxError(d+p[0])}if(!r.hasOwnProperty(m)){throw new SyntaxError(c+p[0])}if(q.inverseOf){m=normalize(q.inverseOf);if(!r.hasOwnProperty(m)){var h;throw new ReferenceError((0,A["default"])(h="".concat(b+p[0]," -> ")).call(h,q.inverseOf))}q=r[m];u=!u}if(!(q.bmp||O)){throw new SyntaxError(M+p[0])}if(O){if(a==="class"){throw new SyntaxError(z)}return cacheAstral(m,u)}return a==="class"?u?cacheInvertedBmp(m):q.bmp:"".concat((u?"[^":"[")+q.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"});p.addUnicodeData=function(a){var i="Unicode token requires name";var d="Unicode token has no character data ";var c=_createForOfIteratorHelper(a),b;try{for(c.s();!(b=c.n()).done;){var M=b.value;if(!M.name){throw new Error(i)}if(!(M.inverseOf||M.bmp||M.astral)){throw new Error(d+M.name)}r[normalize(M.name)]=M;if(M.alias){r[normalize(M.alias)]=M}}}catch(p){c.e(p)}finally{c.f()}p.cache.flush("patterns")};p._getUnicodeProperty=function(p){var a=normalize(p);return r[a]}};r["default"]=q;p.exports=r.default},4686:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(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 b=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks")}p.addUnicodeData(c["default"])};r["default"]=b;p.exports=r.default},1996:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(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 b=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Categories")}p.addUnicodeData(c["default"])};r["default"]=b;p.exports=r.default},9250:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(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 b=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Properties")}var r=c["default"];r.push({name:"Assigned",inverseOf:"Cn"});p.addUnicodeData(r)};r["default"]=b;p.exports=r.default},5715:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(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 b=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts")}p.addUnicodeData(c["default"])};r["default"]=b;p.exports=r.default},7750:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(a(8612));var b=i(a(380));var M=i(a(4811));var z=i(a(3110));var u=i(a(4686));var O=i(a(1996));var l=i(a(9250));var A=i(a(5715));(0,b["default"])(c["default"]);(0,M["default"])(c["default"]);(0,z["default"])(c["default"]);(0,u["default"])(c["default"]);(0,O["default"])(c["default"]);(0,l["default"])(c["default"]);(0,A["default"])(c["default"]);var m=c["default"];r["default"]=m;p.exports=r.default},8612:(p,r,a)=>{"use strict";var i=a(515);var d=a(4218);d(r,"__esModule",{value:true});r["default"]=void 0;var c=i(a(2038));var b=i(a(5401));var M=i(a(9640));var z=i(a(7652));var u=i(a(3361));var O=i(a(466));var l=i(a(3781));var A=i(a(6761));var m=i(a(8135));var q=i(a(669));var h=i(a(6611));var W=i(a(1308));var g=i(a(9188));var v=i(a(8979));var R=i(a(3046));function _createForOfIteratorHelper(p,r){var a;if(typeof z["default"]==="undefined"||(0,M["default"])(p)==null){if((0,b["default"])(p)||(a=_unsupportedIterableToArray(p))||r&&p&&typeof p.length==="number"){if(a)p=a;var i=0;var d=function F(){};return{s:d,n:function n(){if(i>=p.length)return{done:true};return{done:false,value:p[i++]}},e:function e(p){throw p},f:d}}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 u=true,O=false,l;return{s:function s(){a=(0,c["default"])(p)},n:function n(){var p=a.next();u=p.done;return p},e:function e(p){O=true;l=p},f:function f(){try{if(!u&&a["return"]!=null)a["return"]()}finally{if(O)throw l}}}}function _unsupportedIterableToArray(p,r){var a;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,r);var i=(0,g["default"])(a=Object.prototype.toString.call(p)).call(a,8,-1);if(i==="Object"&&p.constructor)i=p.constructor.name;if(i==="Map"||i==="Set")return(0,u["default"])(p);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(p,r)}function _arrayLikeToArray(p,r){if(r==null||r>p.length)r=p.length;for(var a=0,i=new Array(r);a<r;a++){i[a]=p[a]}return i}
/*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*/var _="xregexp";var L={astral:false,namespacing:false};var w={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var E={};var T={};var N={};var y=[];var S="default";var B="class";var k={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 P=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var X=w.exec.call(/()??/,"")[1]===undefined;var C=(0,R["default"])(/x/)!==undefined;var D={},x=D.toString;function hasNativeFlag(p){var r=true;try{new RegExp("",p);if(p==="y"){var a=function(){return"gy"}();var i=".a".replace(new RegExp("a",a),".")==="..";if(i){r=false}}}catch(p){r=false}return r}var I=hasNativeFlag("u");var G=hasNativeFlag("y");var U={g:true,i:true,m:true,u:I,y:G};function augment(p,r,a,i,d){var c;p[_]={captureNames:r};if(d){return p}if(p.__proto__){p.__proto__=XRegExp.prototype}else{for(var b in XRegExp.prototype){p[b]=XRegExp.prototype[b]}}p[_].source=a;p[_].flags=i?(0,v["default"])(c=i.split("")).call(c).join(""):i;return p}function clipDuplicates(p){return w.replace.call(p,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(p,r){var a;if(!XRegExp.isRegExp(p)){throw new TypeError("Type RegExp expected")}var i=p[_]||{};var d=getNativeFlags(p);var c="";var b="";var M=null;var z=null;r=r||{};if(r.removeG){b+="g"}if(r.removeY){b+="y"}if(b){d=w.replace.call(d,new RegExp("[".concat(b,"]+"),"g"),"")}if(r.addG){c+="g"}if(r.addY){c+="y"}if(c){d=clipDuplicates(d+c)}if(!r.isInternalOnly){if(i.source!==undefined){M=i.source}if((0,R["default"])(i)!=null){z=c?clipDuplicates((0,R["default"])(i)+c):(0,R["default"])(i)}}p=augment(new RegExp(r.source||p.source,d),hasNamedCapture(p)?(0,g["default"])(a=i.captureNames).call(a,0):null,M,z,r.isInternalOnly);return p}function dec(p){return(0,W["default"])(p,16)}function getContextualTokenSeparator(p,r,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||w.test.call(/^\(\?[:=!]/,p.input.substr(p.index-3,3))||isQuantifierNext(p.input,p.index+p[0].length,a)){return""}return"(?:)"}function getNativeFlags(p){return C?(0,R["default"])(p):w.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(p))[1]}function hasNamedCapture(p){return!!(p[_]&&p[_].captureNames)}function hex(p){return(0,W["default"])(p,10).toString(16)}function isQuantifierNext(p,r,a){var i="\\(\\?#[^)]*\\)";var d="#[^#\\n]*";var c="[?*+]|{\\d+(?:,\\d*)?}";return w.test.call((0,h["default"])(a).call(a,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,g["default"])(p).call(p,r))}function isType(p,r){return x.call(p)==="[object ".concat(r,"]")}function pad4(p){while(p.length<4){p="0".concat(p)}return p}function prepareFlags(p,r){if(clipDuplicates(r)!==r){throw new SyntaxError("Invalid duplicate regex flag ".concat(r))}p=w.replace.call(p,/^\(\?([\w$]+)\)/,(function(p,a){if(w.test.call(/[gy]/,a)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(p))}r=clipDuplicates(r+a);return""}));var a=_createForOfIteratorHelper(r),i;try{for(a.s();!(i=a.n()).done;){var d=i.value;if(!U[d]){throw new SyntaxError("Unknown regex flag ".concat(d))}}}catch(p){a.e(p)}finally{a.f()}return{pattern:p,flags:r}}function prepareOptions(p){var r={};if(isType(p,"String")){(0,q["default"])(XRegExp).call(XRegExp,p,/[^\s,]+/,(function(p){r[p]=true}));return r}return p}function registerFlag(p){if(!/^[\w$]$/.test(p)){throw new Error("Flag must be a single character A-Za-z0-9_$")}U[p]=true}function runTokens(p,r,a,i,d){var c=y.length;var b=p[a];var M=null;var z;var u;while(c--){u=y[c];if(u.leadChar&&u.leadChar!==b||u.scope!==i&&u.scope!=="all"||u.flag&&!(0,h["default"])(r).call(r,u.flag)){continue}z=XRegExp.exec(p,u.regex,a,"sticky");i
//# sourceMappingURL=index.js.map