cargo-semver-checks/dist/index.js

29 lines
1.6 MiB
JavaScript
Raw Normal View History

(()=>{var __webpack_modules__={2544:function(e,t,r){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;Object.defineProperty(e,a,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=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))a(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.annotate=t.escapeProperty=t.escapeData=void 0;const s=n(r(2037));function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}t.escapeData=escapeData;function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}t.escapeProperty=escapeProperty;const o="::";function render(e,t,r){let a=o+e;if(r&&Object.keys(r).length>0){a+=" ";let e=true;for(const[t,i]of Object.entries(r)){if(i){if(e){e=false}else{a+=","}a+=`${t}=${escapeProperty(i)}`}}}a+=`${o}${escapeData(t)}`;return a}function annotate(e){let t;switch(e.annotation_level){case"notice":case"warning":t="warning";break;case"failure":t="error";break}const r=render(t,e.message,{file:e.path,line:e.start_line,col:e.start_column});process.stdout.write(r+s.EOL)}t.annotate=annotate},6014:function(e,t,r){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;Object.defineProperty(e,a,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=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))a(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.CheckReporter=void 0;const s=n(r(3706));class CheckReporter{constructor(e,t){this.client=e;this.checkName=t;this.checkId=undefined}async startCheck(e){const{owner:t,repo:r}=s.context.repo;const a=await this.client.checks.create({owner:t,repo:r,name:this.checkName,head_sha:s.context.sha,status:e?e:"in_progress"});this.checkId=a.data.id;return this.checkId}async finishCheck(e,t){const{owner:r,repo:a}=s.context.repo;await this.client.checks.update({owner:r,repo:a,name:this.checkName,check_run_id:this.checkId,status:"completed",conclusion:e,completed_at:(new Date).toISOString(),output:t});return}async cancelCheck(){const{owner:e,repo:t}=s.context.repo;await this.client.checks.update({owner:e,repo:t,name:this.checkName,check_run_id:this.checkId,status:"completed",conclusion:"cancelled",completed_at:(new Date).toISOString(),output:{title:this.checkName,summary:"Unhandled error",text:"Check was cancelled due to unhandled error. Check the Action logs for details."}});return}}t.CheckReporter=CheckReporter},9438:function(e,t,r){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;Object.defineProperty(e,a,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=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))a(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.Cargo=t.resolveVersion=void 0;const s=n(r(7436));const o=n(r(2186));const p
2023-01-09 00:46:08 +01:00
/*!
* async
* https://github.com/caolan/async
2023-01-09 00:46:08 +01:00
*
* Copyright 2010-2014 Caolan McMahon
* Released under the MIT license
*/
(function(){var t={};function noop(){}function identity(e){return e}function toBool(e){return!!e}function notId(e){return!e}var r;var a=typeof self==="object"&&self.self===self&&self||typeof global==="object"&&global.global===global&&global||this;if(a!=null){r=a.async}t.noConflict=function(){a.async=r;return t};function only_once(e){return function(){if(e===null)throw new Error("Callback was already called.");e.apply(this,arguments);e=null}}function _once(e){return function(){if(e===null)return;e.apply(this,arguments);e=null}}var i=Object.prototype.toString;var n=Array.isArray||function(e){return i.call(e)==="[object Array]"};var _isObject=function(e){var t=typeof e;return t==="function"||t==="object"&&!!e};function _isArrayLike(e){return n(e)||typeof e.length==="number"&&e.length>=0&&e.length%1===0}function _arrayEach(e,t){var r=-1,a=e.length;while(++r<a){t(e[r],r,e)}}function _map(e,t){var r=-1,a=e.length,i=Array(a);while(++r<a){i[r]=t(e[r],r,e)}return i}function _range(e){return _map(Array(e),(function(e,t){return t}))}function _reduce(e,t,r){_arrayEach(e,(function(e,a,i){r=t(r,e,a,i)}));return r}function _forEachOf(e,t){_arrayEach(s(e),(function(r){t(e[r],r)}))}function _indexOf(e,t){for(var r=0;r<e.length;r++){if(e[r]===t)return r}return-1}var s=Object.keys||function(e){var t=[];for(var r in e){if(e.hasOwnProperty(r)){t.push(r)}}return t};function _keyIterator(e){var t=-1;var r;var a;if(_isArrayLike(e)){r=e.length;return function next(){t++;return t<r?t:null}}else{a=s(e);r=a.length;return function next(){t++;return t<r?a[t]:null}}}function _restParam(e,t){t=t==null?e.length-1:+t;return function(){var r=Math.max(arguments.length-t,0);var a=Array(r);for(var i=0;i<r;i++){a[i]=arguments[i+t]}switch(t){case 0:return e.call(this,a);case 1:return e.call(this,arguments[0],a)}}}function _withoutIndex(e){return function(t,r,a){return e(t,a)}}var o=typeof setImmediate==="function"&&setImmediate;var p=o?function(e){o(e)}:function(e){setTimeout(e,0)};if(typeof process==="object"&&typeof process.nextTick==="function"){t.nextTick=process.nextTick}else{t.nextTick=p}t.setImmediate=o?p:t.nextTick;t.forEach=t.each=function(e,r,a){return t.eachOf(e,_withoutIndex(r),a)};t.forEachSeries=t.eachSeries=function(e,r,a){return t.eachOfSeries(e,_withoutIndex(r),a)};t.forEachLimit=t.eachLimit=function(e,t,r,a){return _eachOfLimit(t)(e,_withoutIndex(r),a)};t.forEachOf=t.eachOf=function(e,t,r){r=_once(r||noop);e=e||[];var a=_keyIterator(e);var i,n=0;while((i=a())!=null){n+=1;t(e[i],i,only_once(done))}if(n===0)r(null);function done(e){n--;if(e){r(e)}else if(i===null&&n<=0){r(null)}}};t.forEachOfSeries=t.eachOfSeries=function(e,r,a){a=_once(a||noop);e=e||[];var i=_keyIterator(e);var n=i();function iterate(){var s=true;if(n===null){return a(null)}r(e[n],n,only_once((function(e){if(e){a(e)}else{n=i();if(n===null){return a(null)}else{if(s){t.setImmediate(iterate)}else{iterate()}}}})));s=false}iterate()};t.forEachOfLimit=t.eachOfLimit=function(e,t,r,a){_eachOfLimit(t)(e,r,a)};function _eachOfLimit(e){return function(t,r,a){a=_once(a||noop);t=t||[];var i=_keyIterator(t);if(e<=0){return a(null)}var n=false;var s=0;var o=false;(function replenish(){if(n&&s<=0){return a(null)}while(s<e&&!o){var p=i();if(p===null){n=true;if(s<=0){a(null)}return}s+=1;r(t[p],p,only_once((function(e){s-=1;if(e){a(e);o=true}else{replenish()}})))}})()}}function doParallel(e){return function(r,a,i){return e(t.eachOf,r,a,i)}}function doParallelLimit(e){return function(t,r,a,i){return e(_eachOfLimit(r),t,a,i)}}function doSeries(e){return function(r,a,i){return e(t.eachOfSeries,r,a,i)}}function _asyncMap(e,t,r,a){a=_once(a||noop);t=t||[];var i=_isArrayLike(t)?[]:{};e(t,(function(e,t,a){r(e,(function(e,r){i[t]=r;a(e)}))}),(function(e){a(e,i)}))}t.map=doParallel(_asyncMap);t.mapSeries=doSeries(_asyncMap);t.mapLimit=doParallelLimit(_asyncMap);t.inject=t.foldl=t.reduce=function(e,r,a,i){t.eachOfSeries(e,(function(e,t,i){a(r,e,(function(e,t){r=t;i(e)}))}),(function(e){i(e,r)}))};t.foldr=t.reduceRight=function(e,r,a,i){var n=_map(e,identity).reverse();t.reduce(n,r,a,i)};t.transform=funct
2023-01-09 00:46:08 +01:00
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},7129:(e,t,r)=>{"use strict";const a=r(665);const i=Symbol("max");const n=Symbol("length");const s=Symbol("lengthCalculator");const o=Symbol("allowStale");const p=Symbol("maxAge");const l=Symbol("dispose");const c=Symbol("noDisposeOnSet");const d=Symbol("lruList");const u=Symbol("cache");const m=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[i]=e.max||Infinity;const r=e.length||naiveLength;this[s]=typeof r!=="function"?naiveLength:r;this[o]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[p]=e.maxAge||0;this[l]=e.dispose;this[c]=e.noDisposeOnSet||false;this[m]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||Infinity;trim(this)}get max(){return this[i]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[p]=e;trim(this)}get maxAge(){return this[p]}set lengthCalculator(e){if(typeof e!=="function")e=naiveLength;if(e!==this[s]){this[s]=e;this[n]=0;this[d].forEach((e=>{e.length=this[s](e.value,e.key);this[n]+=e.length}))}trim(this)}get lengthCalculator(){return this[s]}get length(){return this[n]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;r!==null;){const a=r.prev;forEachStep(this,e,r,t);r=a}}forEach(e,t){t=t||this;for(let r=this[d].head;r!==null;){const a=r.next;forEachStep(this,e,r,t);r=a}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){if(this[l]&&this[d]&&this[d].length){this[d].forEach((e=>this[l](e.key,e.value)))}this[u]=new Map;this[d]=new a;this[n]=0}dump(){return this[d].map((e=>isStale(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,r){r=r||this[p];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const a=r?Date.now():0;const o=this[s](t,e);if(this[u].has(e)){if(o>this[i]){del(this,this[u].get(e));return false}const s=this[u].get(e);const p=s.value;if(this[l]){if(!this[c])this[l](e,p.value)}p.now=a;p.maxAge=r;p.value=t;this[n]+=o-p.length;p.length=o;this.get(e);trim(this);return true}const m=new Entry(e,t,o,a,r);if(m.length>this[i]){if(this[l])this[l](e,t);return false}this[n]+=m.length;this[d].unshift(m);this[u].set(e,this[d].head);trim(this);return true}has(e){if(!this[u].has(e))return false;const t=this[u].get(e).value;return!isStale(this,t)}get(e){return get(this,e,true)}peek(e){return get(this,e,false)}pop(){const e=this[d].tail;if(!e)return null;del(this,e);return e.value}del(e){del(this,this[u].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const a=e[r];const i=a.e||0;if(i===0)this.set(a.k,a.v);else{const e=i-t;if(e>0){this.set(a.k,a.v,e)}}}}prune(){this[u].forEach(((e,t)=>get(this,t,false)))}}const get=(e,t,r)=>{const a=e[u].get(t);if(a){const t=a.value;if(isStale(e,t)){del(e,a);if(!e[o])return undefined}else{if(r){if(e[m])a.value.now=Date.now();e[d].unshiftNode(a)}}return t.value}};const isStale=(e,t)=>{if(!t||!t.maxAge&&!e[p])return false;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[p]&&r>e[p]};const trim=e=>{if(e[n]>e[i]){for(let t=e[d].tail;e[n]>e[i]&&t!==null;){const r=t.prev;del(e,t);t=r}}};const del=(e,t)=>{if(t){const r=t.value;if(e[l])e[l](r.key,r.value);e[n]-=r.length;e[u].delete(r.key);e[d].removeNode(t)}};class Entry{constructor(e,t,r,a,i){this.key=e;this.value=t;this.length
2023-01-09 00:46:08 +01:00
/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*/
e.exports=r(3765)},3583:(e,t,r)=>{"use strict";
2023-01-09 00:46:08 +01:00
/*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var a=r(7426);var i=r(1017).extname;var n=/^\s*([^;\s]*)(?:;|\s|$)/;var s=/^text\//i;t.charset=charset;t.charsets={lookup:charset};t.contentType=contentType;t.extension=extension;t.extensions=Object.create(null);t.lookup=lookup;t.types=Object.create(null);populateMaps(t.extensions,t.types);function charset(e){if(!e||typeof e!=="string"){return false}var t=n.exec(e);var r=t&&a[t[1].toLowerCase()];if(r&&r.charset){return r.charset}if(t&&s.test(t[1])){return"UTF-8"}return false}function contentType(e){if(!e||typeof e!=="string"){return false}var r=e.indexOf("/")===-1?t.lookup(e):e;if(!r){return false}if(r.indexOf("charset")===-1){var a=t.charset(r);if(a)r+="; charset="+a.toLowerCase()}return r}function extension(e){if(!e||typeof e!=="string"){return false}var r=n.exec(e);var a=r&&t.extensions[r[1].toLowerCase()];if(!a||!a.length){return false}return a[0]}function lookup(e){if(!e||typeof e!=="string"){return false}var r=i("x."+e).toLowerCase().substr(1);if(!r){return false}return t.types[r]||false}function populateMaps(e,t){var r=["nginx","apache",undefined,"iana"];Object.keys(a).forEach((function forEachMimeType(i){var n=a[i];var s=n.extensions;if(!s||!s.length){return}e[i]=s;for(var o=0;o<s.length;o++){var p=s[o];if(t[p]){var l=r.indexOf(a[t[p]].source);var c=r.indexOf(n.source);if(t[p]!=="application/octet-stream"&&(l>c||l===c&&t[p].substr(0,12)==="application/")){continue}}t[p]=i}}))}},3973:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var a=function(){try{return r(1017)}catch(e){}}()||{sep:"/"};minimatch.sep=a.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var n=r(3717);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var p=o+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var c="(?:(?!(?:\\/|^)\\.).)*?";var d=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var u=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,a,i){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,a,i){return t(r,a,ext(e,i))};r.Minimatch=function Minimatch(r,a){return new t.Minimatch(r,ext(e,a))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,a){return t.filter(r,ext(e,a))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,a){return t.makeRe(r,ext(e,a))};r.braceExpand=function braceExpand(r,a){return t.braceExpand(r,ext(e,a))};r.match=function(r,a,i){return t.match(r,a,ext(e,i))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&a.sep!=="/"){e=e.split(a.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(u)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);thi
2023-04-23 20:37:51 +02:00
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var fromCodePoint=function(){var r=16384;var a=[];var i;var n;var s=-1;var o=arguments.length;if(!o){return""}var p="";while(++s<o){var l=Number(arguments[s]);if(!isFinite(l)||l<0||l>1114111||t(l)!==l){throw RangeError("Invalid code point: "+l)}if(l<=65535){a.push(l)}else{l-=65536;i=(l>>10)+55296;n=l%1024+56320;a.push(i,n)}if(s+1===o||a.length>r){p+=e.apply(null,a);a.length=0}}return p};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:t)},5911:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var a=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var n=16;var s=t.re=[];var o=t.src=[];var p=t.tokens={};var l=0;function tok(e){p[e]=l++}tok("NUMERICIDENTIFIER");o[p.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");o[p.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");o[p.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");o[p.MAINVERSION]="("+o[p.NUMERICIDENTIFIER]+")\\."+"("+o[p.NUMERICIDENTIFIER]+")\\."+"("+o[p.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");o[p.MAINVERSIONLOOSE]="("+o[p.NUMERICIDENTIFIERLOOSE]+")\\."+"("+o[p.NUMERICIDENTIFIERLOOSE]+")\\."+"("+o[p.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");o[p.PRERELEASEIDENTIFIER]="(?:"+o[p.NUMERICIDENTIFIER]+"|"+o[p.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");o[p.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[p.NUMERICIDENTIFIERLOOSE]+"|"+o[p.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");o[p.PRERELEASE]="(?:-("+o[p.PRERELEASEIDENTIFIER]+"(?:\\."+o[p.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");o[p.PRERELEASELOOSE]="(?:-?("+o[p.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[p.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");o[p.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");o[p.BUILD]="(?:\\+("+o[p.BUILDIDENTIFIER]+"(?:\\."+o[p.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");o[p.FULLPLAIN]="v?"+o[p.MAINVERSION]+o[p.PRERELEASE]+"?"+o[p.BUILD]+"?";o[p.FULL]="^"+o[p.FULLPLAIN]+"$";tok("LOOSEPLAIN");o[p.LOOSEPLAIN]="[v=\\s]*"+o[p.MAINVERSIONLOOSE]+o[p.PRERELEASELOOSE]+"?"+o[p.BUILD]+"?";tok("LOOSE");o[p.LOOSE]="^"+o[p.LOOSEPLAIN]+"$";tok("GTLT");o[p.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");o[p.XRANGEIDENTIFIERLOOSE]=o[p.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");o[p.XRANGEIDENTIFIER]=o[p.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");o[p.XRANGEPLAIN]="[v=\\s]*("+o[p.XRANGEIDENTIFIER]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIER]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIER]+")"+"(?:"+o[p.PRERELEASE]+")?"+o[p.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");o[p.XRANGEPLAINLOOSE]="[v=\\s]*("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+o[p.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+o[p.PRERELEASELOOSE]+")?"+o[p.BUILD]+"?"+")?)?";tok("XRANGE");o[p.XRANGE]="^"+o[p.GTLT]+"\\s*"+o[p.XRANGEPLAIN]+"$";tok("XRANGELOOSE");o[p.XRANGELOOSE]="^"+o[p.GTLT]+"\\s*"+o[p.XRANGEPLAINLOOSE]+"$";tok("COERCE");o[p.COERCE]="(^|[^\\d])"+"(\\d{1,"+n+"})"+"(?:\\.(\\d{1,"+n+"}))?"+"(?:\\.(\\d{1,"+n+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");s[p.COERCERTL]=new RegExp(o[p.COERCE],"g");tok("LONETILDE");o[p.LONETILDE]="(?:~>?)";tok("TILDETRIM");o[p.TILDETRIM]="(\\s*)"+o[p.LONETILDE]+"\\s+";s[p.TILDETRIM]=new RegExp(o[p.TILDETRIM],"g");var c="$1~";tok("TILDE");o[p.TILDE]="^"+o[p.LONETILDE]+o[p.XRANGEPLAIN]+"$";tok("TILDELOOSE");o[p.TILDELOOSE]="^"+o[p.LONETILDE]+o[p.XRANGEPLAINLOOSE]+"$";tok("LONECARET");o[p.LONECARET]="(?:\\^)";tok("CARETTRIM");o[p.CARETTRIM]="(\\s*)"+o[p.LONECARET]+"\\s+";s[p.CARETTRIM]=new RegExp(o[p.CARETTRIM],"g");var d="$1^";tok("CARET");o[p.CARET]="^"+o[p.LONECARET]+o[p.XRANGEPLAIN