UNPKG

cdk-turborepo-remote-cache

Version:
9 lines 3.67 MB
var sHe=Object.create;var a9=Object.defineProperty;var oHe=Object.getOwnPropertyDescriptor;var uHe=Object.getOwnPropertyNames;var lHe=Object.getPrototypeOf,cHe=Object.prototype.hasOwnProperty;var ue=(e,t)=>()=>(e&&(t=e(e=0)),t);var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ng=(e,t)=>{for(var r in t)a9(e,r,{get:t[r],enumerable:!0})},pie=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of uHe(t))!cHe.call(e,a)&&a!==r&&a9(e,a,{get:()=>t[a],enumerable:!(i=oHe(t,a))||i.enumerable});return e};var Pd=(e,t,r)=>(r=e!=null?sHe(lHe(e)):{},pie(t||!e||!e.__esModule?a9(r,"default",{value:e,enumerable:!0}):r,e)),vi=e=>pie(a9({},"__esModule",{value:!0}),e);var Dd={};Ng(Dd,{__assign:()=>iD,__asyncDelegator:()=>CHe,__asyncGenerator:()=>THe,__asyncValues:()=>RHe,__await:()=>s6,__awaiter:()=>_He,__classPrivateFieldGet:()=>DHe,__classPrivateFieldIn:()=>LHe,__classPrivateFieldSet:()=>OHe,__createBinding:()=>nD,__decorate:()=>dHe,__esDecorate:()=>mHe,__exportStar:()=>xHe,__extends:()=>pHe,__generator:()=>EHe,__importDefault:()=>PHe,__importStar:()=>NHe,__makeTemplateObject:()=>IHe,__metadata:()=>bHe,__param:()=>hHe,__propKey:()=>vHe,__read:()=>fie,__rest:()=>fHe,__runInitializers:()=>gHe,__setFunctionName:()=>yHe,__spread:()=>wHe,__spreadArray:()=>AHe,__spreadArrays:()=>SHe,__values:()=>aD});function pHe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");rD(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function fHe(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function dHe(e,t,r,i){var a=arguments.length,n=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(n=(a<3?s(n):a>3?s(t,r,n):s(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n}function hHe(e,t){return function(r,i){t(r,i,e)}}function mHe(e,t,r,i,a,n){function s(v){if(v!==void 0&&typeof v!="function")throw new TypeError("Function expected");return v}for(var o=i.kind,u=o==="getter"?"get":o==="setter"?"set":"value",l=!t&&e?i.static?e:e.prototype:null,c=t||(l?Object.getOwnPropertyDescriptor(l,i.name):{}),p,f=!1,d=r.length-1;d>=0;d--){var h={};for(var m in i)h[m]=m==="access"?{}:i[m];for(var m in i.access)h.access[m]=i.access[m];h.addInitializer=function(v){if(f)throw new TypeError("Cannot add initializers after decoration has completed");n.push(s(v||null))};var g=(0,r[d])(o==="accessor"?{get:c.get,set:c.set}:c[u],h);if(o==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(p=s(g.get))&&(c.get=p),(p=s(g.set))&&(c.set=p),(p=s(g.init))&&a.push(p)}else(p=s(g))&&(o==="field"?a.push(p):c[u]=p)}l&&Object.defineProperty(l,i.name,c),f=!0}function gHe(e,t,r){for(var i=arguments.length>2,a=0;a<t.length;a++)r=i?t[a].call(e,r):t[a].call(e);return i?r:void 0}function vHe(e){return typeof e=="symbol"?e:"".concat(e)}function yHe(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function bHe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function _He(e,t,r,i){function a(n){return n instanceof r?n:new r(function(s){s(n)})}return new(r||(r=Promise))(function(n,s){function o(c){try{l(i.next(c))}catch(p){s(p)}}function u(c){try{l(i.throw(c))}catch(p){s(p)}}function l(c){c.done?n(c.value):a(c.value).then(o,u)}l((i=i.apply(e,t||[])).next())})}function EHe(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(r=0)),r;)try{if(i=1,a&&(n=l[0]&2?a.return:l[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,l[1])).done)return n;switch(a=0,n&&(l=[l[0]&2,n.value]),l[0]){case 0:case 1:n=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){r.label=l[1];break}if(l[0]===6&&r.label<n[1]){r.label=n[1],n=l;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(l);break}n[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],a=0}finally{i=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function xHe(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&nD(t,e,r)}function aD(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function fie(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,n=[],s;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)n.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return n}function wHe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(fie(arguments[t]));return e}function SHe(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var i=Array(e),a=0,t=0;t<r;t++)for(var n=arguments[t],s=0,o=n.length;s<o;s++,a++)i[a]=n[s];return i}function AHe(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,n;i<a;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function s6(e){return this instanceof s6?(this.v=e,this):new s6(e)}function THe(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,t||[]),a,n=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(f){i[f]&&(a[f]=function(d){return new Promise(function(h,m){n.push([f,d,h,m])>1||o(f,d)})})}function o(f,d){try{u(i[f](d))}catch(h){p(n[0][3],h)}}function u(f){f.value instanceof s6?Promise.resolve(f.value.v).then(l,c):p(n[0][2],f)}function l(f){o("next",f)}function c(f){o("throw",f)}function p(f,d){f(d),n.shift(),n.length&&o(n[0][0],n[0][1])}}function CHe(e){var t,r;return t={},i("next"),i("throw",function(a){throw a}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(a,n){t[a]=e[a]?function(s){return(r=!r)?{value:s6(e[a](s)),done:!1}:n?n(s):s}:n}}function RHe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof aD=="function"?aD(e):e[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(n){r[n]=e[n]&&function(s){return new Promise(function(o,u){s=e[n](s),a(o,u,s.done,s.value)})}}function a(n,s,o,u){Promise.resolve(u).then(function(l){n({value:l,done:o})},s)}}function IHe(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function NHe(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&nD(t,e,r);return kHe(t,e),t}function PHe(e){return e&&e.__esModule?e:{default:e}}function DHe(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)}function OHe(e,t,r,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r}function LHe(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}var rD,iD,nD,kHe,Od=ue(()=>{rD=function(e,t){return rD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},rD(e,t)};iD=function(){return iD=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},iD.apply(this,arguments)};nD=Object.create?function(e,t,r,i){i===void 0&&(i=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,a)}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]};kHe=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}});var die=_((Cur,Pg)=>{"use strict";var qHe=e=>{let t=e.headers["content-encoding"]||e.headers["Content-Encoding"];return t&&t!=="identity"},BHe=(e,t)=>(typeof e.enforceBase64=="function"?e.enforceBase64:qHe)(t)===!0;Pg.exports=(e,t)=>{t=t||{},t.binaryMimeTypes=t.binaryMimeTypes||[],t.serializeLambdaArguments=t.serializeLambdaArguments!==void 0?t.serializeLambdaArguments:!1,t.decorateRequest=t.decorateRequest!==void 0?t.decorateRequest:!0,t.retainStage=t.retainStage!==void 0?t.retainStage:!1;let r={};return t.decorateRequest&&(t.decorationPropertyName=t.decorationPropertyName||"awsLambda",e.decorateRequest(t.decorationPropertyName,{getter:()=>({get event(){return r.event},get context(){return r.context}})})),(i,a,n)=>{r.event=i,r.context=a,t.callbackWaitsForEmptyEventLoop!==void 0&&(a.callbackWaitsForEmptyEventLoop=t.callbackWaitsForEmptyEventLoop),i.body=i.body||"";let s=i.httpMethod||(i.requestContext&&i.requestContext.http?i.requestContext.http.method:void 0),o=i.path||i.rawPath||"/";!t.retainStage&&i.requestContext&&i.requestContext.stage&&i.requestContext.resourcePath&&o.indexOf(`/${i.requestContext.stage}/`)===0&&i.requestContext.resourcePath.indexOf(`/${i.requestContext.stage}/`)!==0&&(o=o.substring(i.requestContext.stage.length+1));let u={};i.requestContext&&i.requestContext.elb?i.multiValueQueryStringParameters?Object.keys(i.multiValueQueryStringParameters).forEach(f=>{u[decodeURIComponent(f)]=i.multiValueQueryStringParameters[f].map(d=>decodeURIComponent(d))}):i.queryStringParameters&&Object.keys(i.queryStringParameters).forEach(f=>{u[decodeURIComponent(f)]=decodeURIComponent(i.queryStringParameters[f]),i.version==="2.0"&&typeof u[decodeURIComponent(f)]=="string"&&u[decodeURIComponent(f)].indexOf(",")>0&&(u[decodeURIComponent(f)]=u[decodeURIComponent(f)].split(","))}):(i.queryStringParameters&&i.version==="2.0"&&Object.keys(i.queryStringParameters).forEach(f=>{typeof i.queryStringParameters[f]=="string"&&i.queryStringParameters[f].indexOf(",")>0&&(i.queryStringParameters[f]=i.queryStringParameters[f].split(","))}),Object.assign(u,i.multiValueQueryStringParameters||i.queryStringParameters));let l=Object.assign({},i.headers);i.multiValueHeaders&&Object.keys(i.multiValueHeaders).forEach(f=>{i.multiValueHeaders[f].length>1&&(l[f]=i.multiValueHeaders[f])});let c=Buffer.from(i.body,i.isBase64Encoded?"base64":"utf8");i.body&&!l["Content-Length"]&&!l["content-length"]&&(l["content-length"]=Buffer.byteLength(c)),t.serializeLambdaArguments&&(i.body=void 0,l["x-apigateway-event"]=encodeURIComponent(JSON.stringify(i)),a&&(l["x-apigateway-context"]=encodeURIComponent(JSON.stringify(a)))),i.requestContext&&i.requestContext.requestId&&(l["x-request-id"]=l["x-request-id"]||i.requestContext.requestId),i.cookies&&i.cookies.length&&(l.cookie=i.cookies.join(";"));let p=new Promise(f=>{e.inject({method:s,url:o,query:u,payload:c,headers:l},(d,h)=>{if(r={},d)return console.error(d),f({statusCode:500,body:"",headers:{}});l["transfer-encoding"]==="chunked"&&delete l["transfer-encoding"],l["Transfer-Encoding"]==="chunked"&&delete l["Transfer-Encoding"];let m,g;Object.keys(h.headers).forEach(E=>{let w=E.toLowerCase()==="set-cookie",S=Array.isArray(h.headers[E]);S?w?(m=m||{},m[E]=h.headers[E]):h.headers[E]=h.headers[E].join(","):typeof h.headers[E]<"u"&&typeof h.headers[E]!="string"&&(h.headers[E]=h.headers[E].toString()),w&&(g=S?h.headers[E]:[h.headers[E]],(i.version==="2.0"||S)&&delete h.headers[E])});let v=(h.headers["content-type"]||h.headers["Content-Type"]||"").split(";")[0],y=t.binaryMimeTypes.indexOf(v)>-1||BHe(t,h),b={statusCode:h.statusCode,body:y?h.rawPayload.toString("base64"):h.payload,headers:h.headers,isBase64Encoded:y};g&&i.version==="2.0"&&(b.cookies=g),m&&(!i.version||i.version==="1.0")&&(b.multiValueHeaders=m),f(b)})});return n&&p.then(f=>n(null,f)).catch(n),p}};Pg.exports.default=Pg.exports;Pg.exports.awsLambdaFastify=Pg.exports});var mie=_((Rur,hie)=>{"use strict";function FHe(e){var t=new e,r=t;function i(){var n=t;return n.next?t=n.next:(t=new e,r=t),n.next=null,n}function a(n){r.next=n,r=n}return{get:i,release:a}}hie.exports=FHe});var oD=_((Iur,sD)=>{"use strict";var jHe=mie();function gie(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var i=jHe(MHe),a=null,n=null,s=0,o=null,u={push:m,drain:zu,saturated:zu,pause:c,paused:!1,concurrency:r,running:l,resume:d,idle:h,length:p,getQueue:f,unshift:g,empty:zu,kill:y,killAndDrain:b,error:E};return u;function l(){return s}function c(){u.paused=!0}function p(){for(var w=a,S=0;w;)w=w.next,S++;return S}function f(){for(var w=a,S=[];w;)S.push(w.value),w=w.next;return S}function d(){if(u.paused){u.paused=!1;for(var w=0;w<u.concurrency;w++)s++,v()}}function h(){return s===0&&u.length()===0}function m(w,S){var A=i.get();A.context=e,A.release=v,A.value=w,A.callback=S||zu,A.errorHandler=o,s===u.concurrency||u.paused?n?(n.next=A,n=A):(a=A,n=A,u.saturated()):(s++,t.call(e,A.value,A.worked))}function g(w,S){var A=i.get();A.context=e,A.release=v,A.value=w,A.callback=S||zu,s===u.concurrency||u.paused?a?(A.next=a,a=A):(a=A,n=A,u.saturated()):(s++,t.call(e,A.value,A.worked))}function v(w){w&&i.release(w);var S=a;S?u.paused?s--:(n===a&&(n=null),a=S.next,S.next=null,t.call(e,S.value,S.worked),n===null&&u.empty()):--s===0&&u.drain()}function y(){a=null,n=null,u.drain=zu}function b(){a=null,n=null,u.drain(),u.drain=zu}function E(w){o=w}}function zu(){}function MHe(){this.value=null,this.callback=zu,this.next=null,this.release=zu,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,i){var a=e.callback,n=e.errorHandler,s=e.value;e.value=null,e.callback=zu,e.errorHandler&&n(r,s),a.call(e.context,r,i),e.release(e)}}function UHe(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function i(c,p){t.call(this,c).then(function(f){p(null,f)},p)}var a=gie(e,i,r),n=a.push,s=a.unshift;return a.push=o,a.unshift=u,a.drained=l,a;function o(c){var p=new Promise(function(f,d){n(c,function(h,m){if(h){d(h);return}f(m)})});return p.catch(zu),p}function u(c){var p=new Promise(function(f,d){s(c,function(h,m){if(h){d(h);return}f(m)})});return p.catch(zu),p}function l(){if(a.idle())return new Promise(function(f){f()});var c=a.drain,p=new Promise(function(f){a.drain=function(){c(),f()}});return p}}sD.exports=gie;sD.exports.promise=UHe});var lD=_((kur,vie)=>{"use strict";var{inherits:$He,format:uD}=require("util");function Zm(e,t,r=Error){if(!e)throw new Error("Avvio error code must not be empty");if(!t)throw new Error("Avvio base error message must not be empty");function i(a,n,s){if(!new.target)return new i(a,n,s);Error.captureStackTrace(this,i),this.code=e,this.message=t,this.name="AvvioError",a&&n&&s?this.message=uD(t,a,n,s):a&&n?this.message=uD(t,a,n):a?this.message=uD(t,a):this.message=t}return i.prototype[Symbol.toStringTag]="Error",i.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},$He(i,r),i}vie.exports={createError:Zm,AVV_ERR_EXPOSE_ALREADY_DEFINED:Zm("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:Zm("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:Zm("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:Zm("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:Zm("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:Zm("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});var bie=_((Nur,yie)=>{yie.exports=function e(t,r,i){r===void 0&&(r=""),i||(i={});var a=function(u){var l={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};return i.unicode===!1?l[u]:u};typeof t=="string"&&(t={label:t});var n=t.nodes||[],s=(t.label||"").split(` `),o=` `+r+(n.length?a("\u2502"):" ")+" ";return r+s.join(o)+` `+n.map(function(u,l){var c=l===n.length-1,p=u.nodes&&u.nodes.length,f=r+(c?" ":a("\u2502"))+" ";return r+a(c?"\u2514":"\u251C")+a("\u2500")+a(p?"\u252C":"\u2500")+" "+e(u,f,i).slice(r.length+2)}).join("")}});var Aie=_((Pur,Sie)=>{"use strict";var zHe=bie(),_ie=Symbol("avvio.TimeTree.untrackNode"),cD=Symbol("avvio.TimeTree.trackNode"),Eie=Symbol("avvio.TimeTree.getParent"),xie=Symbol("avvio.TimeTree.getNode"),wie=Symbol("avvio.TimeTree.addNode"),pD=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[cD](t){this.tableId.set(t.id,t),this.tableLabel.has(t.label)?this.tableLabel.get(t.label).push(t):this.tableLabel.set(t.label,[t])}[_ie](t){this.tableId.delete(t.id);let r=this.tableLabel.get(t.label);if(r.id){this.tableLabel.delete(t.label);return}r.pop(),r.length===0&&this.tableLabel.delete(t.label)}[Eie](t){if(t===null)return this.root;let r=this.tableLabel.get(t);return r.id?r:r[r.length-1]}[xie](t){return this.tableId.get(t)}[wie](t,r,i){if(t===null)return this.root={id:"root",label:r,start:i,nodes:[]},this[cD](this.root),this.root.id;let n=this[Eie](t),s=`${r}-${Math.random()}`,o={id:s,parent:t,start:i,label:r,nodes:[]};return n.nodes.push(o),this[cD](o),s}start(t,r,i=Date.now()){return this[wie](t,r,i)}stop(t,r=Date.now()){let i=this[xie](t);i&&(i.stop=r,i.diff=i.stop-i.start||0,this[_ie](i))}toJSON(){return Object.assign({},this.root)}prittyPrint(){let t=i=>(i.label=`${i.label} ${i.diff} ms`,i.nodes.length>0&&(i.nodes=i.nodes.map(a=>t(a))),i),r=t(this.toJSON());return zHe(r)}};Sie.exports=pD});var Cie=_((Dur,Tie)=>{var Dg=1e3,Og=Dg*60,Lg=Og*60,Jm=Lg*24,VHe=Jm*7,HHe=Jm*365.25;Tie.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return GHe(e);if(r==="number"&&isFinite(e))return t.long?WHe(e):KHe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function GHe(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*HHe;case"weeks":case"week":case"w":return r*VHe;case"days":case"day":case"d":return r*Jm;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Lg;case"minutes":case"minute":case"mins":case"min":case"m":return r*Og;case"seconds":case"second":case"secs":case"sec":case"s":return r*Dg;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function KHe(e){var t=Math.abs(e);return t>=Jm?Math.round(e/Jm)+"d":t>=Lg?Math.round(e/Lg)+"h":t>=Og?Math.round(e/Og)+"m":t>=Dg?Math.round(e/Dg)+"s":e+"ms"}function WHe(e){var t=Math.abs(e);return t>=Jm?n9(e,t,Jm,"day"):t>=Lg?n9(e,t,Lg,"hour"):t>=Og?n9(e,t,Og,"minute"):t>=Dg?n9(e,t,Dg,"second"):e+" ms"}function n9(e,t,r,i){var a=t>=r*1.5;return Math.round(e/r)+" "+i+(a?"s":"")}});var fD=_((Our,Rie)=>{function YHe(e){r.debug=r,r.default=r,r.coerce=u,r.disable=n,r.enable=a,r.enabled=s,r.humanize=Cie(),r.destroy=l,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let p=0;for(let f=0;f<c.length;f++)p=(p<<5)-p+c.charCodeAt(f),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(c){let p,f=null,d,h;function m(...g){if(!m.enabled)return;let v=m,y=Number(new Date),b=y-(p||y);v.diff=b,v.prev=p,v.curr=y,p=y,g[0]=r.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let E=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,(S,A)=>{if(S==="%%")return"%";E++;let N=r.formatters[A];if(typeof N=="function"){let k=g[E];S=N.call(v,k),g.splice(E,1),E--}return S}),r.formatArgs.call(v,g),(v.log||r.log).apply(v,g)}return m.namespace=c,m.useColors=r.useColors(),m.color=r.selectColor(c),m.extend=i,m.destroy=r.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(c)),h),set:g=>{f=g}}),typeof r.init=="function"&&r.init(m),m}function i(c,p){let f=r(this.namespace+(typeof p>"u"?":":p)+c);return f.log=this.log,f}function a(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p,f=(typeof c=="string"?c:"").split(/[\s,]+/),d=f.length;for(p=0;p<d;p++)f[p]&&(c=f[p].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function n(){let c=[...r.names.map(o),...r.skips.map(o).map(p=>"-"+p)].join(",");return r.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let p,f;for(p=0,f=r.skips.length;p<f;p++)if(r.skips[p].test(c))return!1;for(p=0,f=r.names.length;p<f;p++)if(r.names[p].test(c))return!0;return!1}function o(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Rie.exports=YHe});var Iie=_((hu,s9)=>{hu.formatArgs=XHe;hu.save=ZHe;hu.load=JHe;hu.useColors=QHe;hu.storage=eGe();hu.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();hu.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function QHe(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function XHe(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+s9.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(r++,a==="%c"&&(i=r))}),e.splice(i,0,t)}hu.log=console.debug||console.log||(()=>{});function ZHe(e){try{e?hu.storage.setItem("debug",e):hu.storage.removeItem("debug")}catch{}}function JHe(){let e;try{e=hu.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function eGe(){try{return localStorage}catch{}}s9.exports=fD()(hu);var{formatters:tGe}=s9.exports;tGe.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Nie=_((Lur,kie)=>{"use strict";kie.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),a=t.indexOf("--");return i!==-1&&(a===-1||i<a)}});var mD=_((qur,Die)=>{"use strict";var rGe=require("os"),Pie=require("tty"),Vu=Nie(),{env:Bn}=process,Ld;Vu("no-color")||Vu("no-colors")||Vu("color=false")||Vu("color=never")?Ld=0:(Vu("color")||Vu("colors")||Vu("color=true")||Vu("color=always"))&&(Ld=1);"FORCE_COLOR"in Bn&&(Bn.FORCE_COLOR==="true"?Ld=1:Bn.FORCE_COLOR==="false"?Ld=0:Ld=Bn.FORCE_COLOR.length===0?1:Math.min(parseInt(Bn.FORCE_COLOR,10),3));function dD(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function hD(e,t){if(Ld===0)return 0;if(Vu("color=16m")||Vu("color=full")||Vu("color=truecolor"))return 3;if(Vu("color=256"))return 2;if(e&&!t&&Ld===void 0)return 0;let r=Ld||0;if(Bn.TERM==="dumb")return r;if(process.platform==="win32"){let i=rGe.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Bn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in Bn)||Bn.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Bn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Bn.TEAMCITY_VERSION)?1:0;if(Bn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Bn){let i=parseInt((Bn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Bn.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Bn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Bn.TERM)||"COLORTERM"in Bn?1:r}function iGe(e){let t=hD(e,e&&e.isTTY);return dD(t)}Die.exports={supportsColor:iGe,stdout:dD(hD(!0,Pie.isatty(1))),stderr:dD(hD(!0,Pie.isatty(2)))}});var Lie=_((cs,u9)=>{var aGe=require("tty"),o9=require("util");cs.init=pGe;cs.log=uGe;cs.formatArgs=sGe;cs.save=lGe;cs.load=cGe;cs.useColors=nGe;cs.destroy=o9.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");cs.colors=[6,2,3,4,5,1];try{let e=mD();e&&(e.stderr||e).level>=2&&(cs.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}cs.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(a,n)=>n.toUpperCase()),i=process.env[t];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[r]=i,e},{});function nGe(){return"colors"in cs.inspectOpts?!!cs.inspectOpts.colors:aGe.isatty(process.stderr.fd)}function sGe(e){let{namespace:t,useColors:r}=this;if(r){let i=this.color,a="\x1B[3"+(i<8?i:"8;5;"+i),n=` ${a};1m${t} \x1B[0m`;e[0]=n+e[0].split(` `).join(` `+n),e.push(a+"m+"+u9.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=oGe()+t+" "+e[0]}function oGe(){return cs.inspectOpts.hideDate?"":new Date().toISOString()+" "}function uGe(...e){return process.stderr.write(o9.format(...e)+` `)}function lGe(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function cGe(){return process.env.DEBUG}function pGe(e){e.inspectOpts={};let t=Object.keys(cs.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=cs.inspectOpts[t[r]]}u9.exports=fD()(cs);var{formatters:Oie}=u9.exports;Oie.o=function(e){return this.inspectOpts.colors=this.useColors,o9.inspect(e,this.inspectOpts).split(` `).map(t=>t.trim()).join(" ")};Oie.O=function(e){return this.inspectOpts.colors=this.useColors,o9.inspect(e,this.inspectOpts)}});var pf=_((Bur,gD)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?gD.exports=Iie():gD.exports=Lie()});var qie=_((Fur,bD)=>{"use strict";var fGe=oD(),dGe=require("events").EventEmitter,hGe=require("util").inherits,Fn=pf()("avvio"),{AVV_ERR_READY_TIMEOUT:mGe}=lD(),vD=Symbol.for("plugin-meta");function gGe(e,t){return e[vD]&&e[vD].name?e[vD].name:typeof t<"u"&&typeof t!="function"&&t.name?t.name:e.name?e.name:e.toString().split(` `).slice(0,2).map(r=>r.trim()).join(" -- ")}function vGe(){let e={};return e.promise=new Promise((t,r)=>{e.resolve=t,e.reject=r}),e}function qg(e,t,r,i,a){this.started=!1,this.func=t,this.opts=r,this.onFinish=null,this.parent=e,this.timeout=a===void 0?e._timeout:a,this.name=gGe(t,r),this.isAfter=i,this.q=fGe(e,yGe,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}hGe(qg,dGe);qg.prototype.exec=function(e,t){let r=this.func,i=!1,a=this.name;if(this.parent._error&&!this.isAfter){Fn("skipping loading of plugin as parent errored and it is not an after",a),process.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,r,this.opts)}catch(u){return Fn("override errored",a),t(u)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,Fn("exec",a);let n,s=u=>{if(i){Fn("loading complete",a);return}this._error=u,Fn(u?"exec errored":"exec completed",a),i=!0,n&&clearTimeout(n),t(u)};this.timeout>0&&(Fn("setting up timeout",a,this.timeout),n=setTimeout(function(){Fn("timed out",a),n=null;let u=new mGe(a);u.fn=r,s(u)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());let o=r(this.server,this.opts,s);o&&typeof o.then=="function"&&(Fn("exec: resolving promise",a),o.then(()=>process.nextTick(s),u=>process.nextTick(s,u)))};qg.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();let e=()=>{this.server.after((r,i)=>{this._error=r,this.q.pause(),r?(Fn("rejecting promise",this.name,r),this._promise.reject(r)):(Fn("resolving promise",this.name),this._promise.resolve()),this._promise=null,process.nextTick(i,r)}),this.q.resume()},t;return this._promise?t=Promise.resolve():(this._promise=vGe(),t=this._promise.promise,this.server?e():this.on("start",e)),t};qg.prototype.enqueue=function(e,t){Fn("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};qg.prototype.finish=function(e,t){Fn("finish",this.name,e);let r=()=>{this.loaded||(Fn("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),r();return}let i=()=>{if(Fn("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){let a=()=>{Fn("wrap"),queueMicrotask(i)};this._promise.resolve(),this._promise.promise.then(a,a),this._promise=null}else r();else Fn("delayed",this.name),this.q.drain=()=>{Fn("drain",this.name),this.q.drain=bGe,queueMicrotask(i)}};queueMicrotask(i),this.q.resume()};function yGe(e,t){let r=this;process.nextTick(yD.bind(r),e,t)}function yD(e,t){if(typeof e.func.then=="function"){e.func.then(i=>{typeof i.default=="function"&&(i=i.default),e.func=i,yD.call(this,e,t)},t);return}let r=this._current[0];this._current.unshift(e),e.exec(r&&r.server||this._server,i=>{e.finish(i,a=>{this._current.shift(),t(a)})})}function bGe(){}bD.exports=qg;bD.exports.loadPlugin=yD});var Uie=_((jur,SD)=>{"use strict";var Bie=oD(),_Ge=require("events").EventEmitter,EGe=require("util").inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:_D,AVV_ERR_CALLBACK_NOT_FN:o6,AVV_ERR_PLUGIN_NOT_VALID:xGe,AVV_ERR_ROOT_PLG_BOOTED:wGe,AVV_ERR_READY_TIMEOUT:SGe}=lD(),AGe=Aie(),wD=qie(),Bg=pf()("avvio"),l9=Symbol("kAvvio"),ED=Symbol("kThenifyDoNotWrap");function TGe(e,t,r){let i=t.expose||{},a=i.use||"use",n=i.after||"after",s=i.ready||"ready",o=i.onClose||"onClose",u=i.close||"close";if(e[a])throw new _D(a);if(e[n])throw new _D(n);if(e[s])throw new _D(s);e[a]=function(l,c){return r.use(l,c),this},Object.defineProperty(e,"then",{get:jie.bind(r)}),e[l9]=!0,e[n]=function(l){return typeof l!="function"?r._loadRegistered():(r.after(xD(l,this)),this)},e[s]=function(l){if(l&&typeof l!="function")throw new o6(s,typeof l);return r.ready(l?xD(l,this):void 0)},e[o]=function(l){if(typeof l!="function")throw new o6(o,typeof l);return r.onClose(NGe(l,this)),this},e[u]=function(l){if(l&&typeof l!="function")throw new o6(u,typeof l);return l?(r.close(xD(l,this)),this):r.close()}}function jn(e,t,r){if(typeof e=="function"&&arguments.length===1&&(r=e,t={},e=null),typeof t=="function"&&(r=t,t={}),t=t||{},!(this instanceof jn)){let i=new jn(e,t,r);return e&&TGe(e,t,i),i}t.autostart!==!1&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),r&&this.once("start",r),this.started=!1,this.booted=!1,this.pluginTree=new AGe,this._readyQ=Bie(this,Mie,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=Fie},this._closeQ=Bie(this,kGe,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=Fie},this._doStart=null,this._root=new wD(this,CGe.bind(this),t,!1,0),this._root.once("start",(i,a,n)=>{let s=this.pluginTree.start(null,a,n);this._root.once("loaded",(o,u,l)=>{this.pluginTree.stop(s,l)})}),wD.loadPlugin.call(this,this._root,i=>{Bg("root plugin ready");try{this.emit("preReady"),this._root=null}catch(a){i=i||this._error||a}if(i){if(this._error=i,this._readyQ.length()===0)throw i}else this.booted=!0;this._readyQ.resume()})}function CGe(e,t,r){this._doStart=r,t.autostart&&this.start()}EGe(jn,_Ge);jn.prototype.start=function(){return this.started=!0,process.nextTick(this._doStart),this};jn.prototype.override=function(e,t,r){return e};function RGe(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new xGe(typeof e);return e}jn.prototype[l9]=!0;jn.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};jn.prototype._loadRegistered=function(){let e=this._current[0];return!this.started&&!this.booted&&process.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(jn.prototype,"then",{get:jie});jn.prototype._addPlugin=function(e,t,r){if(e=RGe(e),t=t||{},this.booted)throw new wGe;let i=this._current[0],a=new wD(this,e,t,r);if(a.once("start",(n,s,o)=>{let u=this.pluginTree.start(i.name,s,o);a.once("loaded",(l,c,p)=>{this.pluginTree.stop(u,p)})}),i.loaded)throw new Error(a.name,i.name);return i.enqueue(a,n=>{n&&(this._error=n)}),a};jn.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(r,i,a){Mie.call(this,e,a)}return this};jn.prototype.onClose=function(e){if(typeof e!="function")throw new Error("not a function");e[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(e,t.bind(this));function t(r){r&&(this._error=r)}return this};jn.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new o6("close",typeof e)}else t=new Promise(function(r,i){e=function(a){if(a)return i(a);r()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),process.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};jn.prototype.ready=function(e){if(e){if(typeof e!="function")throw new o6("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,r)=>{this._readyQ.push(a),this.start();let i=this._current[0].server;function a(n,s,o){n?r(n):t(i),process.nextTick(o)}})};jn.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};jn.prototype.toJSON=function(){return this.pluginTree.toJSON()};function Fie(){}function jie(){if(this.booted){Bg("thenify returning null because we are already booted");return}if(this[ED]){this[ED]=!1;return}return Bg("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[ED]=!0,e(this._server)),t)}function Mie(e,t){let r=this._server,i=this._error,a;if(this._error=null,e.length===0)this._error=i,a=e(),a&&!a[l9]&&typeof a.then=="function"?a.then(()=>process.nextTick(t),n=>process.nextTick(t,n)):process.nextTick(t);else if(e.length===1)a=e(i),a&&!a[l9]&&typeof a.then=="function"?a.then(()=>process.nextTick(t),n=>process.nextTick(t,n)):process.nextTick(t);else if(this._timeout===0){let n=s=>{this._error=s,t(this._error)};e.length===2?e(i,n):e(i,r,n)}else IGe.call(this,e,i,r,t)}function IGe(e,t,r,i){let a=e.name;Bg("setting up ready timeout",a,this._timeout);let n=setTimeout(()=>{Bg("timed out",a),n=null;let o=new SGe(a);o.fn=e,this._error=o,i(o)},this._timeout);e.length===2?e(t,s.bind(this)):e(t,r,s.bind(this));function s(o){n&&(clearTimeout(n),this._error=o,i(this._error))}}function kGe(e,t){let r=this._server,i=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let a;i?a=e(r):a=e(this._error),a&&typeof a.then=="function"?(Bg("resolving close/onClose promise"),a.then(()=>process.nextTick(t),n=>process.nextTick(t,n))):process.nextTick(t)}else e.length===2?e(i?r:this._error,t):i?e(r,t):e(this._error,r,t)}function NGe(e,t){return r.bind(t);function r(i,a){let n;e.length===0?(n=e(),n&&n.then?n.then(function(){process.nextTick(a)},a):process.nextTick(a)):e.length===1?(n=e(this),n&&n.then?n.then(function(){process.nextTick(a)},a):process.nextTick(a)):e(this,a)}}function xD(e,t){return r.bind(t);function r(i,a){let n;e?e.length===0?(n=e(),n&&n.then?n.then(function(){process.nextTick(a,i)},a):process.nextTick(a,i)):e.length===1?(n=e(i),n&&n.then?n.then(function(){process.nextTick(a)},a):process.nextTick(a)):e.length===2?e(i,a):e(i,this,a):process.nextTick(a)}}SD.exports=jn;SD.exports.express=function(e){return jn(e,{expose:{use:"load"}})}});var Mn=_((Mur,$ie)=>{"use strict";var PGe={kAvvioBoot:Symbol("fastify.avvioBoot"),kChildren:Symbol("fastify.children"),kServerBindings:Symbol("fastify.serverBindings"),kBodyLimit:Symbol("fastify.bodyLimit"),kRoutePrefix:Symbol("fastify.routePrefix"),kLogLevel:Symbol("fastify.logLevel"),kLogSerializers:Symbol("fastify.logSerializers"),kHooks:Symbol("fastify.hooks"),kContentTypeParser:Symbol("fastify.contentTypeParser"),kState:Symbol("fastify.state"),kOptions:Symbol("fastify.options"),kDisableRequestLogging:Symbol("fastify.disableRequestLogging"),kPluginNameChain:Symbol("fastify.pluginNameChain"),kRouteContext:Symbol("fastify.context"),kPublicRouteContext:Symbol("fastify.routeOptions"),kSchemaController:Symbol("fastify.schemaController"),kSchemaHeaders:Symbol("headers-schema"),kSchemaParams:Symbol("params-schema"),kSchemaQuerystring:Symbol("querystring-schema"),kSchemaBody:Symbol("body-schema"),kSchemaResponse:Symbol("response-schema"),kSchemaErrorFormatter:Symbol("fastify.schemaErrorFormatter"),kSchemaVisited:Symbol("fastify.schemas.visited"),kRequest:Symbol("fastify.Request"),kRequestValidateFns:Symbol("fastify.request.cache.validateFns"),kRequestPayloadStream:Symbol("fastify.RequestPayloadStream"),kRequestAcceptVersion:Symbol("fastify.RequestAcceptVersion"),kFourOhFour:Symbol("fastify.404"),kCanSetNotFoundHandler:Symbol("fastify.canSetNotFoundHandler"),kFourOhFourLevelInstance:Symbol("fastify.404LogLevelInstance"),kFourOhFourContext:Symbol("fastify.404ContextKey"),kDefaultJsonParse:Symbol("fastify.defaultJSONParse"),kReply:Symbol("fastify.Reply"),kReplySerializer:Symbol("fastify.reply.serializer"),kReplyIsError:Symbol("fastify.reply.isError"),kReplyHeaders:Symbol("fastify.reply.headers"),kReplyTrailers:Symbol("fastify.reply.trailers"),kReplyHasStatusCode:Symbol("fastify.reply.hasStatusCode"),kReplyHijacked:Symbol("fastify.reply.hijacked"),kReplyStartTime:Symbol("fastify.reply.startTime"),kReplyNextErrorHandler:Symbol("fastify.reply.nextErrorHandler"),kReplyEndTime:Symbol("fastify.reply.endTime"),kReplyErrorHandlerCalled:Symbol("fastify.reply.errorHandlerCalled"),kReplyIsRunningOnErrorHook:Symbol("fastify.reply.isRunningOnErrorHook"),kReplySerializerDefault:Symbol("fastify.replySerializerDefault"),kReplySerializeWeakMap:Symbol("fastify.reply.cache.serializeFns"),kTestInternals:Symbol("fastify.testInternals"),kErrorHandler:Symbol("fastify.errorHandler"),kHasBeenDecorated:Symbol("fastify.hasBeenDecorated"),kKeepAliveConnections:Symbol("fastify.keepAliveConnections"),kRouteByFastify:Symbol("fastify.routeByFastify")};$ie.exports=PGe});var CD=_((Uur,c9)=>{"use strict";var{format:AD}=require("util");function TD(){let e={},t=new Map,r=Object.create(null);function i(n,s,o,{unlimited:u=!1}={}){if(!n)throw new Error("Warning name must not be empty");if(!s)throw new Error("Warning code must not be empty");if(!o)throw new Error("Warning message must not be empty");if(typeof u!="boolean")throw new Error("Warning opts.unlimited must be a boolean");if(s=s.toUpperCase(),e[s]!==void 0)throw new Error(`The code '${s}' already exist`);function l(c,p,f){let d;return c&&p&&f?d=AD(o,c,p,f):c&&p?d=AD(o,c,p):c?d=AD(o,c):d=o,{code:s,name:n,message:d}}return Object.assign(r,{unlimited:u}),t.set(s,u),e[s]=l,e[s]}function a(n,s,o,u){if(t.get(n)===!0&&r.unlimited===!1)return;if(e[n]===void 0)throw new Error(`The code '${n}' does not exist`);t.set(n,!0);let l=e[n](s,o,u);process.emitWarning(l.message,l.name,l.code)}return{create:i,emit:a,emitted:t}}c9.exports=TD;c9.exports.default=TD;c9.exports.processWarning=TD});var e0=_(($ur,zie)=>{"use strict";var $l=CD()();$l.create("FastifyDeprecation","FSTDEP005",'You are accessing the deprecated "request.connection" property. Use "request.socket" instead.');$l.create("FastifyDeprecation","FSTDEP006","You are decorating Request/Reply with a reference type. This reference is shared amongst all requests. Use onRequest hook instead. Property: %s");$l.create("FastifyDeprecation","FSTDEP007",'You are trying to set a HEAD route using "exposeHeadRoute" route flag when a sibling route is already set. See documentation for more info.');$l.create("FastifyDeprecation","FSTDEP008",'You are using route constraints via the route { version: "..." } option, use { constraints: { version: "..." } } option instead.');$l.create("FastifyDeprecation","FSTDEP009",'You are using a custom route versioning strategy via the server { versioning: "..." } option, use { constraints: { version: "..." } } option instead.');$l.create("FastifyDeprecation","FSTDEP010",'Modifying the "reply.sent" property is deprecated. Use the "reply.hijack()" method instead.');$l.create("FastifyDeprecation","FSTDEP011",'Variadic listen method is deprecated. Please use ".listen(optionsObject)" instead. The variadic signature will be removed in `fastify@5`.');$l.create("FastifyDeprecation","FSTDEP012",'Request#context property access is deprecated. Please use "Request#routeConfig" or "Request#routeSchema" instead for accessing Route settings. The "Request#context" will be removed in `fastify@5`.');$l.create("FastifyDeprecation","FSTDEP013",'Direct return of "trailers" function is deprecated. Please use "callback" or "async-await" for return value. The support of direct return will removed in `fastify@5`.');$l.create("FastifyDeprecation","FSTDEP014","You are trying to set/access the default route. This property is deprecated. Please, use setNotFoundHandler if you want to custom a 404 handler or the wildcard (*) to match all routes.");zie.exports=$l});var Vie=_((zur,p9)=>{"use strict";var{format:DGe}=require("util");function OGe(){return`${this.name} [${this.code}]: ${this.message}`}function RD(e,t,r=500,i=Error){if(!e)throw new Error("Fastify error code must not be empty");if(!t)throw new Error("Fastify error message must not be empty");e=e.toUpperCase(),!r&&(r=void 0);function a(...n){if(!new.target)return new a(...n);this.code=e,this.name="FastifyError",this.statusCode=r,this.message=DGe(t,...n),Error.stackTraceLimit!==0&&Error.captureStackTrace(this,a)}return a.prototype=Object.create(i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),a.prototype[Symbol.toStringTag]="Error",a.prototype.toString=OGe,a}p9.exports=RD;p9.exports.default=RD;p9.exports.createError=RD});var jo=_((Vur,f9)=>{"use strict";var qt=Vie(),Fg={FST_ERR_NOT_FOUND:qt("FST_ERR_NOT_FOUND","Not Found",404),FST_ERR_CTP_ALREADY_PRESENT:qt("FST_ERR_CTP_ALREADY_PRESENT","Content type parser '%s' already present."),FST_ERR_CTP_INVALID_TYPE:qt("FST_ERR_CTP_INVALID_TYPE","The content type should be a string or a RegExp",500,TypeError),FST_ERR_CTP_EMPTY_TYPE:qt("FST_ERR_CTP_EMPTY_TYPE","The content type cannot be an empty string",500,TypeError),FST_ERR_CTP_INVALID_HANDLER:qt("FST_ERR_CTP_INVALID_HANDLER","The content type handler should be a function",500,TypeError),FST_ERR_CTP_INVALID_PARSE_TYPE:qt("FST_ERR_CTP_INVALID_PARSE_TYPE","The body parser can only parse your data as 'string' or 'buffer', you asked '%s' which is not supported.",500,TypeError),FST_ERR_CTP_BODY_TOO_LARGE:qt("FST_ERR_CTP_BODY_TOO_LARGE","Request body is too large",413,RangeError),FST_ERR_CTP_INVALID_MEDIA_TYPE:qt("FST_ERR_CTP_INVALID_MEDIA_TYPE","Unsupported Media Type: %s",415),FST_ERR_CTP_INVALID_CONTENT_LENGTH:qt("FST_ERR_CTP_INVALID_CONTENT_LENGTH","Request body size did not match Content-Length",400,RangeError),FST_ERR_CTP_EMPTY_JSON_BODY:qt("FST_ERR_CTP_EMPTY_JSON_BODY","Body cannot be empty when content-type is set to 'application/json'",400),FST_ERR_DEC_ALREADY_PRESENT:qt("FST_ERR_DEC_ALREADY_PRESENT","The decorator '%s' has already been added!"),FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:qt("FST_ERR_DEC_DEPENDENCY_INVALID_TYPE","The dependencies of decorator '%s' must be of type Array."),FST_ERR_DEC_MISSING_DEPENDENCY:qt("FST_ERR_DEC_MISSING_DEPENDENCY","The decorator is missing dependency '%s'."),FST_ERR_DEC_AFTER_START:qt("FST_ERR_DEC_AFTER_START","The decorator '%s' has been added after start!"),FST_ERR_HOOK_INVALID_TYPE:qt("FST_ERR_HOOK_INVALID_TYPE","The hook name must be a string",500,TypeError),FST_ERR_HOOK_INVALID_HANDLER:qt("FST_ERR_HOOK_INVALID_HANDLER","%s hook should be a function, instead got %s",500,TypeError),FST_ERR_HOOK_INVALID_ASYNC_HANDLER:qt("FST_ERR_HOOK_INVALID_ASYNC_HANDLER","Async function has too many arguments. Async hooks should not use the 'done' argument.",500,TypeError),FST_ERR_MISSING_MIDDLEWARE:qt("FST_ERR_MISSING_MIDDLEWARE","You must register a plugin for handling middlewares, visit fastify.io/docs/latest/Reference/Middleware/ for more info.",500),FST_ERR_HOOK_TIMEOUT:qt("FST_ERR_HOOK_TIMEOUT","A callback for '%s' hook timed out. You may have forgotten to call 'done' function or to resolve a Promise"),FST_ERR_LOG_INVALID_DESTINATION:qt("FST_ERR_LOG_INVALID_DESTINATION","Cannot specify both logger.stream and logger.file options"),FST_ERR_REP_INVALID_PAYLOAD_TYPE:qt("FST_ERR_REP_INVALID_PAYLOAD_TYPE","Attempted to send payload of invalid type '%s'. Expected a string or Buffer.",500,TypeError),FST_ERR_REP_ALREADY_SENT:qt("FST_ERR_REP_ALREADY_SENT","Reply was already sent."),FST_ERR_REP_SENT_VALUE:qt("FST_ERR_REP_SENT_VALUE","The only possible value for reply.sent is true."),FST_ERR_SEND_INSIDE_ONERR:qt("FST_ERR_SEND_INSIDE_ONERR","You cannot use `send` inside the `onError` hook"),FST_ERR_SEND_UNDEFINED_ERR:qt("FST_ERR_SEND_UNDEFINED_ERR","Undefined error has occurred"),FST_ERR_BAD_STATUS_CODE:qt("FST_ERR_BAD_STATUS_CODE","Called reply with an invalid status code: %s"),FST_ERR_BAD_TRAILER_NAME:qt("FST_ERR_BAD_TRAILER_NAME","Called reply.trailer with an invalid header name: %s"),FST_ERR_BAD_TRAILER_VALUE:qt("FST_ERR_BAD_TRAILER_VALUE","Called reply.trailer('%s', fn) with an invalid type: %s. Expected a function."),FST_ERR_MISSING_SERIALIZATION_FN:qt("FST_ERR_MISSING_SERIALIZATION_FN",'Missing serialization function. Key "%s"'),FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:qt("FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN",'Missing serialization function. Key "%s:%s"'),FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:qt("FST_ERR_REQ_INVALID_VALIDATION_INVOCATION",'Invalid validation invocation. Missing validation function for HTTP part "%s" nor schema provided.'),FST_ERR_SCH_MISSING_ID:qt("FST_ERR_SCH_MISSING_ID","Missing schema $id property"),FST_ERR_SCH_ALREADY_PRESENT:qt("FST_ERR_SCH_ALREADY_PRESENT","Schema with id '%s' already declared!"),FST_ERR_SCH_CONTENT_MISSING_SCHEMA:qt("FST_ERR_SCH_CONTENT_MISSING_SCHEMA","Schema is missing for the content type '%s'"),FST_ERR_SCH_DUPLICATE:qt("FST_ERR_SCH_DUPLICATE","Schema with '%s' already present!"),FST_ERR_SCH_VALIDATION_BUILD:qt("FST_ERR_SCH_VALIDATION_BUILD","Failed building the validation schema for %s: %s, due to error %s"),FST_ERR_SCH_SERIALIZATION_BUILD:qt("FST_ERR_SCH_SERIALIZATION_BUILD","Failed building the serialization schema for %s: %s, due to error %s"),FST_ERR_HTTP2_INVALID_VERSION:qt("FST_ERR_HTTP2_INVALID_VERSION","HTTP2 is available only from node >= 8.8.1"),FST_ERR_INIT_OPTS_INVALID:qt("FST_ERR_INIT_OPTS_INVALID","Invalid initialization options: '%s'"),FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:q