diff --git a/0821.json b/0821.json
index c7732359..0b14ee6a 100644
--- a/0821.json
+++ b/0821.json
@@ -41,7 +41,7 @@
{"key":"苹果","name":"苹果┃无广","type":3,"api":"csp_LiteApple","searchable":1,"quickSearch":1,"changeable":1},
{"key":"白嫖","name":"白飘┃无广","type":3,"api":"csp_BaiPiao","playerType":2,"searchable":1,"quickSearch":1,"changeable":1,"ext": "https://www.baipiaoys.com:9092/"},
{"key":"视觉","name":"视觉┃直连","type":3,"api":"csp_Xinsj","timeout":15,"searchable":1,"quickSearch":1,"changeable":1,"ext":"https://www.80yy3.com/"},
-{"key":"厂长","name":"厂长┃无广","type":3,"api":"csp_Czsapp","timeout":15,"playerType":2,"searchable":1,"quickSearch":1,"changeable":1,"ext": "https://www.cz233.com/"},
+{"key":"厂长","name":"厂长┃无广","type":3,"api":"csp_Czsapp","timeout":15,"playerType":2,"searchable":1,"quickSearch":1,"changeable":1,"ext": "https://www.czys.top/"},
{"key":"七七","name":"七七┃秒播","type":3,"api":"csp_Kunyu77","timeout":15,"searchable":1,"quickSearch":1,"changeable":1},
{"key":"南瓜","name":"南瓜┃App","type":3,"api":"csp_NanGua","timeout":15,"playerType":2,"searchable":1,"quickSearch":1,"changeable":1},
{"key":"低端","name":"低端┃外剧","type":3,"api":"csp_Ddrk","playerType":"2","searchable":1,"quickSearch":1,"changeable":1},
diff --git a/0825.json b/0825.json
index 6227a602..48b8ee4f 100644
--- a/0825.json
+++ b/0825.json
@@ -1,5 +1,5 @@
{
-"spider":"./jar/pg.jar;md5;39762f095f1442f6519b52b08b9e325d",
+"spider":"./jar/pg.jar;md5;7220fdfda5e9dbc5521baf2b25d8706c",
"lives":[{"name":"初秋语•综合","type":0,"url":"./list.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo":"https://epg.112114.xyz/logo/{name}.png"},
{"name":"Ray•综合","type":0,"url":"https://github.moeyy.xyz/https://raw.githubusercontent.com/dxawi/0/main/tvlive.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo":"https://epg.112114.xyz/logo/{name}.png"},
{"name":"俊于•综合","type":0,"url":"http://home.jundie.top:81/Cat/tv/live.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo": "https://epg.112114.xyz/logo/{name}.png"},
@@ -17,7 +17,7 @@
{"key": "JustLive","name": "JustLive","type": 3,"api": "csp_JustLive","searchable": 1,"changeable": 0},
{"key":"lf_js_lf_live","name":"直播","type":3,"api":"./lib/lf_live_min.js","style":{ "type":"oval"},"searchable":1,"changeable":0,"quickSearch":1,"filterable":1,"ext":"./js/lf_live.txt"},
{ "key": "Ikanbot", "name": "爱看", "type": 3, "api": "csp_Ikanbot", "searchable": 1, "quickSearch": 1, "filterable": 1, "changeable": 1 , "ext":"https://v.ikanbot.com$$$proxy"},
-{"key":"榜一短剧","name":"短剧","type":3,"api":"csp_XBPQ","jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048","ext":{"分类":"逆袭短剧$1#甜宠短剧$3#虐恋短剧$5#穿越短剧$7#重生短剧$9#都市短剧$11#现代言情短剧$13#古装短剧$15#古代言情短剧$17#战神短剧$19#神医短剧$21#神豪短剧$23#超能短剧$25#萌宝短剧$27#复仇短剧$29#脑洞短剧$31#赘婿短剧$33#玄幻短剧$35#热血短剧$37#其他短剧$39","分类url":"https://duanjuu.com/vodshow/{cateId}--------{catePg}---.html;;m"}},
+{"key":"榜一短剧","name":"短剧","type":3,"api":"csp_XBPQ","jar":"./jar/XBPQ.jar;md5;1fe7efed80f9bad449138694852bd28f","ext":{"分类":"逆袭短剧$1#甜宠短剧$3#虐恋短剧$5#穿越短剧$7#重生短剧$9#都市短剧$11#现代言情短剧$13#古装短剧$15#古代言情短剧$17#战神短剧$19#神医短剧$21#神豪短剧$23#超能短剧$25#萌宝短剧$27#复仇短剧$29#脑洞短剧$31#赘婿短剧$33#玄幻短剧$35#热血短剧$37#其他短剧$39","分类url":"https://duanjuu.com/vodshow/{cateId}--------{catePg}---.html;;m"}},
{"key":"Local","name":"本地","type":3,"api":"csp_Local","quickSearch":1, "changeable":1, "filterable":1, "timeout":60, "ext":"null$$$null$$$1"},
{"key":"看球","name":"看球","type":3,"api":"csp_Kanqiu","searchable":1,"changeable":0,"style":{"type":"list"}},
@@ -109,7 +109,7 @@
"播放数组": "下载地址&&",
"播放列表": "
<&&"
},
-"jar": "./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048"
+"jar": "./jar/XBPQ.jar;md5;1fe7efed80f9bad449138694852bd28f"
},
{
"key": "rarbt",
@@ -134,9 +134,9 @@
"分类": "电影$movie#电视剧$Series#动漫$cartoon#综艺$variety",
"分类url": "https://www.rarbt.fun/vod/show/area/{area}/class/{class}/id/{cateId}/page/{catePg}/lang/{lang}/letter/{letter}/year/{year}.html"
},
- "jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048"
+ "jar":"./jar/XBPQ.jar;md5;1fe7efed80f9bad449138694852bd28f"
},
-{"key":"XBPQ_文才","name":"文才","type":3,"api":"csp_XBPQ", "jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048",
+{"key":"XBPQ_文才","name":"文才","type":3,"api":"csp_XBPQ", "jar":"./jar/XBPQ.jar;md5;1fe7efed80f9bad449138694852bd28f",
"ext":{"分类": "国产剧&短剧&国产动漫&日韩动漫&欧美动漫&喜剧片&爱情片&恐怖片&战争片&科幻片&动作片&综艺&欧美剧&港台剧&日韩剧",
"分类值": "14&42&75&76&77&22&26&36&25&30&23&69&15&16&62",
"分类url": "https://api.zeqaht.com/api.php/provide/vod/?ac=list&ac=detail&t={cateId}&pg={catePg}",
@@ -171,14 +171,14 @@
"免嗅": "0"
}
},
-{"key":"XBPQ_BaiPiao","name":"白嫖","type":3,"api":"csp_XBPQ", "jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048",
+{"key":"XBPQ_BaiPiao","name":"白嫖","type":3,"api":"csp_XBPQ", "jar":"./jar/XBPQ.jar;md5;1fe7efed80f9bad449138694852bd28f",
"ext": {
"地区":"[替换:大陆>>中国大陆#香港>>中国香港#台湾>>中国台湾]",
"分类": "电影$1#电视剧$2#动漫$3#短剧$4#综艺$5",
"分类url": "https://www.baipiaoys.com:9092/show/area/{area}/by/{by}/class/{class}/id/{cateId}/page/{catePg}/year/{year}.html"
}
},
-{"key":"XBPQ_黑狐影院","name":"黑狐","type":3,"api":"csp_XBPQ", "jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048",
+{"key":"XBPQ_黑狐影院","name":"黑狐","type":3,"api":"csp_XBPQ", "jar":"./jar/XBPQ.jar;md5;1fe7efed80f9bad449138694852bd28f",
"ext": {
"站名": "黑狐影院",
"主页url": "http://fagmn.com",
@@ -215,7 +215,7 @@
{
"key":"XBPQ_电影先生",
"name": "电影先生",
-"jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048",
+"jar":"./jar/XBPQ.jar;md5;1fe7efed80f9bad449138694852bd28f",
"type": 3,
"api": "csp_XBPQ",
"ext": {
@@ -233,7 +233,7 @@
"分类": "电影$dianying#电视剧$dianshiju#动漫$dongman#综艺$zongyi"
}
},
-{"key": "XBPQ_麻衣影院","name":"麻衣","type":3,"api":"csp_XBPQ","searchable":1,"quickSearch":1,"filterable":1,"jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048",
+{"key": "XBPQ_麻衣影院","name":"麻衣","type":3,"api":"csp_XBPQ","searchable":1,"quickSearch":1,"filterable":1,"jar":"./jar/XBPQ.jar;md5;1fe7efed80f9bad449138694852bd28f",
"ext": {"分类url":"https://www.huanyuxing.com/s/{cateId}/area/{area}/class/{class}/page/{catePg}/year/{year}.html","分类":"电影$id-a#电视剧$id-b#动漫$id-c#综艺$id-d"}
},
{
@@ -247,7 +247,7 @@
},
"quickSearch": 0,
"api": "csp_XBPQ",
- "jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048",
+ "jar":"./jar/XBPQ.jar;md5;1fe7efed80f9bad449138694852bd28f",
"ext": {
"主页url": "https://www.xsmp3.com",
"数组二次截取": "&&()=>(e||t((e={exports:{}}).exports,e),e.exports),_A=(t,e)=>{for(var n in e)M6(t,n,{get:e[n],enumerable:!0})},EA=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of nte(e))!ite.call(t,i)&&i!==n&&M6(t,i,{get:()=>e[i],enumerable:!(r=tte(e,i))||r.enumerable});return t};var Xr=(t,e,n)=>(n=t!=null?ete(rte(t)):{},EA(e||!t||!t.__esModule?M6(n,"default",{value:t,enumerable:!0}):n,t)),lte=t=>EA(M6({},"__esModule",{value:!0}),t);var wA=k((NOe,bA)=>{"use strict";function ste(t){var e=new t,n=e;function r(){var l=e;return l.next?e=l.next:(e=new t,n=e),l.next=null,l}function i(l){n.next=l,n=l}return{get:r,release:i}}bA.exports=ste});var Nd=k((COe,Od)=>{"use strict";var ate=wA();function SA(t,e,n){if(typeof t=="function"&&(n=e,e=t,t=null),!(n>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r=ate(ote),i=null,l=null,s=0,a=null,o={push:_,drain:Jl,saturated:Jl,pause:c,paused:!1,get concurrency(){return n},set concurrency(x){if(!(x>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(n=x,!o.paused)for(;i&&s=n||o.paused?l?(l.next=N,l=N):(i=N,l=N,o.saturated()):(s++,e.call(t,N.value,N.worked))}function S(x,O){var N=r.get();N.context=t,N.release=w,N.value=x,N.callback=O||Jl,N.errorHandler=a,s>=n||o.paused?i?(N.next=i,i=N):(i=N,l=N,o.saturated()):(s++,e.call(t,N.value,N.worked))}function w(x){x&&r.release(x);var O=i;O&&s<=n?o.paused?s--:(l===i&&(l=null),i=O.next,O.next=null,e.call(t,O.value,O.worked),l===null&&o.empty()):--s===0&&o.drain()}function E(){i=null,l=null,o.drain=Jl}function g(){i=null,l=null,o.drain(),o.drain=Jl}function v(x){a=x}}function Jl(){}function ote(){this.value=null,this.callback=Jl,this.next=null,this.release=Jl,this.context=null,this.errorHandler=null;var t=this;this.worked=function(n,r){var i=t.callback,l=t.errorHandler,s=t.value;t.value=null,t.callback=Jl,t.errorHandler&&l(n,s),i.call(t.context,n,r),t.release(t)}}function ute(t,e,n){typeof t=="function"&&(n=e,e=t,t=null);function r(c,f){e.call(this,c).then(function(m){f(null,m)},f)}var i=SA(t,r,n),l=i.push,s=i.unshift;return i.push=a,i.unshift=o,i.drained=u,i;function a(c){var f=new Promise(function(m,d){l(c,function(y,_){if(y){d(y);return}m(_)})});return f.catch(Jl),f}function o(c){var f=new Promise(function(m,d){s(c,function(y,_){if(y){d(y);return}m(_)})});return f.catch(Jl),f}function u(){if(i.idle())return new Promise(function(m){m()});var c=i.drain,f=new Promise(function(m){i.drain=function(){c(),m()}});return f}}Od.exports=SA;Od.exports.promise=ute});var Rd=k((ROe,TA)=>{"use strict";var{inherits:cte,format:Cd}=require("util");function po(t,e,n=Error){if(!t)throw new Error("Avvio error code must not be empty");if(!e)throw new Error("Avvio base error message must not be empty");function r(i,l,s){if(!new.target)return new r(i,l,s);Error.captureStackTrace(this,r),this.code=t,this.message=e,this.name="AvvioError",i&&l&&s?this.message=Cd(e,i,l,s):i&&l?this.message=Cd(e,i,l):i?this.message=Cd(e,i):this.message=e}return r.prototype[Symbol.toStringTag]="Error",r.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},cte(r,n),r}TA.exports={createError:po,AVV_ERR_EXPOSE_ALREADY_DEFINED:po("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:po("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:po("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:po("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:po("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:po("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 AA=k((IOe,xA)=>{xA.exports=function t(e,n,r){n===void 0&&(n=""),r||(r={});var i=function(o){var u={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};return r.unicode===!1?u[o]:o};typeof e=="string"&&(e={label:e});var l=e.nodes||[],s=(e.label||"").split(`
+var pte=Object.create;var B6=Object.defineProperty;var fte=Object.getOwnPropertyDescriptor;var dte=Object.getOwnPropertyNames;var hte=Object.getPrototypeOf,mte=Object.prototype.hasOwnProperty;var k=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),TA=(t,e)=>{for(var n in e)B6(t,n,{get:e[n],enumerable:!0})},xA=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of dte(e))!mte.call(t,i)&&i!==n&&B6(t,i,{get:()=>e[i],enumerable:!(r=fte(e,i))||r.enumerable});return t};var Yr=(t,e,n)=>(n=t!=null?pte(hte(t)):{},xA(e||!t||!t.__esModule?B6(n,"default",{value:t,enumerable:!0}):n,t)),yte=t=>xA(B6({},"__esModule",{value:!0}),t);var OA=k((BOe,AA)=>{"use strict";function gte(t){var e=new t,n=e;function r(){var l=e;return l.next?e=l.next:(e=new t,n=e),l.next=null,l}function i(l){n.next=l,n=l}return{get:r,release:i}}AA.exports=gte});var Id=k((HOe,Rd)=>{"use strict";var vte=OA();function NA(t,e,n){if(typeof t=="function"&&(n=e,e=t,t=null),!(n>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r=vte(_te),i=null,l=null,s=0,a=null,o={push:_,drain:Kl,saturated:Kl,pause:c,paused:!1,get concurrency(){return n},set concurrency(x){if(!(x>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(n=x,!o.paused)for(;i&&s=n||o.paused?l?(l.next=N,l=N):(i=N,l=N,o.saturated()):(s++,e.call(t,N.value,N.worked))}function S(x,O){var N=r.get();N.context=t,N.release=w,N.value=x,N.callback=O||Kl,N.errorHandler=a,s>=n||o.paused?i?(N.next=i,i=N):(i=N,l=N,o.saturated()):(s++,e.call(t,N.value,N.worked))}function w(x){x&&r.release(x);var O=i;O&&s<=n?o.paused?s--:(l===i&&(l=null),i=O.next,O.next=null,e.call(t,O.value,O.worked),l===null&&o.empty()):--s===0&&o.drain()}function E(){i=null,l=null,o.drain=Kl}function g(){i=null,l=null,o.drain(),o.drain=Kl}function v(x){a=x}}function Kl(){}function _te(){this.value=null,this.callback=Kl,this.next=null,this.release=Kl,this.context=null,this.errorHandler=null;var t=this;this.worked=function(n,r){var i=t.callback,l=t.errorHandler,s=t.value;t.value=null,t.callback=Kl,t.errorHandler&&l(n,s),i.call(t.context,n,r),t.release(t)}}function Ete(t,e,n){typeof t=="function"&&(n=e,e=t,t=null);function r(c,f){e.call(this,c).then(function(m){f(null,m)},f)}var i=NA(t,r,n),l=i.push,s=i.unshift;return i.push=a,i.unshift=o,i.drained=u,i;function a(c){var f=new Promise(function(m,d){l(c,function(y,_){if(y){d(y);return}m(_)})});return f.catch(Kl),f}function o(c){var f=new Promise(function(m,d){s(c,function(y,_){if(y){d(y);return}m(_)})});return f.catch(Kl),f}function u(){if(i.idle())return new Promise(function(m){m()});var c=i.drain,f=new Promise(function(m){i.drain=function(){c(),m()}});return f}}Rd.exports=NA;Rd.exports.promise=Ete});var Dd=k((VOe,CA)=>{"use strict";var{inherits:bte,format:kd}=require("util");function m3(t,e,n=Error){if(!t)throw new Error("Avvio error code must not be empty");if(!e)throw new Error("Avvio base error message must not be empty");function r(i,l,s){if(!new.target)return new r(i,l,s);Error.captureStackTrace(this,r),this.code=t,this.message=e,this.name="AvvioError",i&&l&&s?this.message=kd(e,i,l,s):i&&l?this.message=kd(e,i,l):i?this.message=kd(e,i):this.message=e}return r.prototype[Symbol.toStringTag]="Error",r.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},bte(r,n),r}CA.exports={createError:m3,AVV_ERR_EXPOSE_ALREADY_DEFINED:m3("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:m3("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:m3("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:m3("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:m3("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:m3("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 IA=k((qOe,RA)=>{RA.exports=function t(e,n,r){n===void 0&&(n=""),r||(r={});var i=function(o){var u={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};return r.unicode===!1?u[o]:o};typeof e=="string"&&(e={label:e});var l=e.nodes||[],s=(e.label||"").split(`
`),a=`
`+n+(l.length?i("\u2502"):" ")+" ";return n+s.join(a)+`
-`+l.map(function(o,u){var c=u===l.length-1,f=o.nodes&&o.nodes.length,m=n+(c?" ":i("\u2502"))+" ";return n+i(c?"\u2514":"\u251C")+i("\u2500")+i(f?"\u252C":"\u2500")+" "+t(o,m,r).slice(n.length+2)}).join("")}});var kA=k((kOe,IA)=>{"use strict";var pte=AA(),OA=Symbol("avvio.TimeTree.untrackNode"),Id=Symbol("avvio.TimeTree.trackNode"),NA=Symbol("avvio.TimeTree.getParent"),CA=Symbol("avvio.TimeTree.getNode"),RA=Symbol("avvio.TimeTree.addNode"),kd=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[Id](e){this.tableId.set(e.id,e),this.tableLabel.has(e.label)?this.tableLabel.get(e.label).push(e):this.tableLabel.set(e.label,[e])}[OA](e){this.tableId.delete(e.id);let n=this.tableLabel.get(e.label);if(n.id){this.tableLabel.delete(e.label);return}n.pop(),n.length===0&&this.tableLabel.delete(e.label)}[NA](e){if(e===null)return this.root;let n=this.tableLabel.get(e);return n.id?n:n[n.length-1]}[CA](e){return this.tableId.get(e)}[RA](e,n,r){if(e===null)return this.root={id:"root",label:n,start:r,nodes:[]},this[Id](this.root),this.root.id;let l=this[NA](e),s=`${n}-${Math.random()}`,a={id:s,parent:e,start:r,label:n,nodes:[]};return l.nodes.push(a),this[Id](a),s}start(e,n,r=Date.now()){return this[RA](e,n,r)}stop(e,n=Date.now()){let r=this[CA](e);r&&(r.stop=n,r.diff=r.stop-r.start||0,this[OA](r))}toJSON(){return Object.assign({},this.root)}prittyPrint(){let e=r=>(r.label=`${r.label} ${r.diff} ms`,r.nodes.length>0&&(r.nodes=r.nodes.map(i=>e(i))),r),n=e(this.toJSON());return pte(n)}};IA.exports=kd});var PA=k((DOe,DA)=>{var Fu=1e3,ju=Fu*60,Uu=ju*60,fo=Uu*24,fte=fo*7,dte=fo*365.25;DA.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return hte(t);if(n==="number"&&isFinite(t))return e.long?yte(t):mte(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function hte(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*dte;case"weeks":case"week":case"w":return n*fte;case"days":case"day":case"d":return n*fo;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Uu;case"minutes":case"minute":case"mins":case"min":case"m":return n*ju;case"seconds":case"second":case"secs":case"sec":case"s":return n*Fu;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function mte(t){var e=Math.abs(t);return e>=fo?Math.round(t/fo)+"d":e>=Uu?Math.round(t/Uu)+"h":e>=ju?Math.round(t/ju)+"m":e>=Fu?Math.round(t/Fu)+"s":t+"ms"}function yte(t){var e=Math.abs(t);return e>=fo?$6(t,e,fo,"day"):e>=Uu?$6(t,e,Uu,"hour"):e>=ju?$6(t,e,ju,"minute"):e>=Fu?$6(t,e,Fu,"second"):t+" ms"}function $6(t,e,n,r){var i=e>=n*1.5;return Math.round(t/n)+" "+r+(i?"s":"")}});var Dd=k((POe,LA)=>{function gte(t){n.debug=n,n.default=n,n.coerce=o,n.disable=l,n.enable=i,n.enabled=s,n.humanize=PA(),n.destroy=u,Object.keys(t).forEach(c=>{n[c]=t[c]}),n.names=[],n.skips=[],n.formatters={};function e(c){let f=0;for(let m=0;m{if(O==="%%")return"%";v++;let R=n.formatters[N];if(typeof R=="function"){let U=S[v];O=R.call(w,U),S.splice(v,1),v--}return O}),n.formatArgs.call(w,S),(w.log||n.log).apply(w,S)}return _.namespace=c,_.useColors=n.useColors(),_.color=n.selectColor(c),_.extend=r,_.destroy=n.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(d!==n.namespaces&&(d=n.namespaces,y=n.enabled(c)),y),set:S=>{m=S}}),typeof n.init=="function"&&n.init(_),_}function r(c,f){let m=n(this.namespace+(typeof f>"u"?":":f)+c);return m.log=this.log,m}function i(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let f,m=(typeof c=="string"?c:"").split(/[\s,]+/),d=m.length;for(f=0;f"-"+f)].join(",");return n.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let f,m;for(f=0,m=n.skips.length;f{Il.formatArgs=_te;Il.save=Ete;Il.load=bte;Il.useColors=vte;Il.storage=wte();Il.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();Il.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 vte(){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 _te(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+B6.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(n++,i==="%c"&&(r=n))}),t.splice(r,0,e)}Il.log=console.debug||console.log||(()=>{});function Ete(t){try{t?Il.storage.setItem("debug",t):Il.storage.removeItem("debug")}catch{}}function bte(){let t;try{t=Il.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function wte(){try{return localStorage}catch{}}B6.exports=Dd()(Il);var{formatters:Ste}=B6.exports;Ste.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var UA=k((LOe,jA)=>{"use strict";jA.exports=(t,e)=>{e=e||process.argv;let n=t.startsWith("-")?"":t.length===1?"-":"--",r=e.indexOf(n+t),i=e.indexOf("--");return r!==-1&&(i===-1?!0:r{"use strict";var Tte=require("os"),ms=UA(),Di=process.env,Mu;ms("no-color")||ms("no-colors")||ms("color=false")?Mu=!1:(ms("color")||ms("colors")||ms("color=true")||ms("color=always"))&&(Mu=!0);"FORCE_COLOR"in Di&&(Mu=Di.FORCE_COLOR.length===0||parseInt(Di.FORCE_COLOR,10)!==0);function xte(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Ate(t){if(Mu===!1)return 0;if(ms("color=16m")||ms("color=full")||ms("color=truecolor"))return 3;if(ms("color=256"))return 2;if(t&&!t.isTTY&&Mu!==!0)return 0;let e=Mu?1:0;if(process.platform==="win32"){let n=Tte.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Di)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in Di)||Di.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Di)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Di.TEAMCITY_VERSION)?1:0;if(Di.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Di){let n=parseInt((Di.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Di.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Di.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Di.TERM)||"COLORTERM"in Di?1:(Di.TERM==="dumb",e)}function Pd(t){let e=Ate(t);return xte(e)}MA.exports={supportsColor:Pd,stdout:Pd(process.stdout),stderr:Pd(process.stderr)}});var HA=k((bi,V6)=>{var Ote=require("tty"),H6=require("util");bi.init=Pte;bi.log=Ite;bi.formatArgs=Cte;bi.save=kte;bi.load=Dte;bi.useColors=Nte;bi.destroy=H6.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");bi.colors=[6,2,3,4,5,1];try{let t=$A();t&&(t.stderr||t).level>=2&&(bi.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{}bi.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let n=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,l)=>l.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),t[n]=r,t},{});function Nte(){return"colors"in bi.inspectOpts?!!bi.inspectOpts.colors:Ote.isatty(process.stderr.fd)}function Cte(t){let{namespace:e,useColors:n}=this;if(n){let r=this.color,i="\x1B[3"+(r<8?r:"8;5;"+r),l=` ${i};1m${e} \x1B[0m`;t[0]=l+t[0].split(`
+`+l.map(function(o,u){var c=u===l.length-1,f=o.nodes&&o.nodes.length,m=n+(c?" ":i("\u2502"))+" ";return n+i(c?"\u2514":"\u251C")+i("\u2500")+i(f?"\u252C":"\u2500")+" "+t(o,m,r).slice(n.length+2)}).join("")}});var jA=k((zOe,FA)=>{"use strict";var wte=IA(),kA=Symbol("avvio.TimeTree.untrackNode"),Pd=Symbol("avvio.TimeTree.trackNode"),DA=Symbol("avvio.TimeTree.getParent"),PA=Symbol("avvio.TimeTree.getNode"),LA=Symbol("avvio.TimeTree.addNode"),Ld=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[Pd](e){this.tableId.set(e.id,e),this.tableLabel.has(e.label)?this.tableLabel.get(e.label).push(e):this.tableLabel.set(e.label,[e])}[kA](e){this.tableId.delete(e.id);let n=this.tableLabel.get(e.label);if(n.id){this.tableLabel.delete(e.label);return}n.pop(),n.length===0&&this.tableLabel.delete(e.label)}[DA](e){if(e===null)return this.root;let n=this.tableLabel.get(e);return n.id?n:n[n.length-1]}[PA](e){return this.tableId.get(e)}[LA](e,n,r){if(e===null)return this.root={id:"root",label:n,start:r,nodes:[]},this[Pd](this.root),this.root.id;let l=this[DA](e),s=`${n}-${Math.random()}`,a={id:s,parent:e,start:r,label:n,nodes:[]};return l.nodes.push(a),this[Pd](a),s}start(e,n,r=Date.now()){return this[LA](e,n,r)}stop(e,n=Date.now()){let r=this[PA](e);r&&(r.stop=n,r.diff=r.stop-r.start||0,this[kA](r))}toJSON(){return Object.assign({},this.root)}prittyPrint(){let e=r=>(r.label=`${r.label} ${r.diff} ms`,r.nodes.length>0&&(r.nodes=r.nodes.map(i=>e(i))),r),n=e(this.toJSON());return wte(n)}};FA.exports=Ld});var MA=k((GOe,UA)=>{var Mu=1e3,$u=Mu*60,Bu=$u*60,y3=Bu*24,Ste=y3*7,Tte=y3*365.25;UA.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return xte(t);if(n==="number"&&isFinite(t))return e.long?Ote(t):Ate(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function xte(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*Tte;case"weeks":case"week":case"w":return n*Ste;case"days":case"day":case"d":return n*y3;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Bu;case"minutes":case"minute":case"mins":case"min":case"m":return n*$u;case"seconds":case"second":case"secs":case"sec":case"s":return n*Mu;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function Ate(t){var e=Math.abs(t);return e>=y3?Math.round(t/y3)+"d":e>=Bu?Math.round(t/Bu)+"h":e>=$u?Math.round(t/$u)+"m":e>=Mu?Math.round(t/Mu)+"s":t+"ms"}function Ote(t){var e=Math.abs(t);return e>=y3?H6(t,e,y3,"day"):e>=Bu?H6(t,e,Bu,"hour"):e>=$u?H6(t,e,$u,"minute"):e>=Mu?H6(t,e,Mu,"second"):t+" ms"}function H6(t,e,n,r){var i=e>=n*1.5;return Math.round(t/n)+" "+r+(i?"s":"")}});var Fd=k((JOe,$A)=>{function Nte(t){n.debug=n,n.default=n,n.coerce=o,n.disable=l,n.enable=i,n.enabled=s,n.humanize=MA(),n.destroy=u,Object.keys(t).forEach(c=>{n[c]=t[c]}),n.names=[],n.skips=[],n.formatters={};function e(c){let f=0;for(let m=0;m{if(O==="%%")return"%";v++;let R=n.formatters[N];if(typeof R=="function"){let U=S[v];O=R.call(w,U),S.splice(v,1),v--}return O}),n.formatArgs.call(w,S),(w.log||n.log).apply(w,S)}return _.namespace=c,_.useColors=n.useColors(),_.color=n.selectColor(c),_.extend=r,_.destroy=n.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(d!==n.namespaces&&(d=n.namespaces,y=n.enabled(c)),y),set:S=>{m=S}}),typeof n.init=="function"&&n.init(_),_}function r(c,f){let m=n(this.namespace+(typeof f>"u"?":":f)+c);return m.log=this.log,m}function i(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let f,m=(typeof c=="string"?c:"").split(/[\s,]+/),d=m.length;for(f=0;f"-"+f)].join(",");return n.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let f,m;for(f=0,m=n.skips.length;f{kl.formatArgs=Rte;kl.save=Ite;kl.load=kte;kl.useColors=Cte;kl.storage=Dte();kl.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();kl.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 Cte(){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 Rte(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+V6.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(n++,i==="%c"&&(r=n))}),t.splice(r,0,e)}kl.log=console.debug||console.log||(()=>{});function Ite(t){try{t?kl.storage.setItem("debug",t):kl.storage.removeItem("debug")}catch{}}function kte(){let t;try{t=kl.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Dte(){try{return localStorage}catch{}}V6.exports=Fd()(kl);var{formatters:Pte}=V6.exports;Pte.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var VA=k((KOe,HA)=>{"use strict";HA.exports=(t,e)=>{e=e||process.argv;let n=t.startsWith("-")?"":t.length===1?"-":"--",r=e.indexOf(n+t),i=e.indexOf("--");return r!==-1&&(i===-1?!0:r{"use strict";var Lte=require("os"),ys=VA(),Fi=process.env,Hu;ys("no-color")||ys("no-colors")||ys("color=false")?Hu=!1:(ys("color")||ys("colors")||ys("color=true")||ys("color=always"))&&(Hu=!0);"FORCE_COLOR"in Fi&&(Hu=Fi.FORCE_COLOR.length===0||parseInt(Fi.FORCE_COLOR,10)!==0);function Fte(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function jte(t){if(Hu===!1)return 0;if(ys("color=16m")||ys("color=full")||ys("color=truecolor"))return 3;if(ys("color=256"))return 2;if(t&&!t.isTTY&&Hu!==!0)return 0;let e=Hu?1:0;if(process.platform==="win32"){let n=Lte.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Fi)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in Fi)||Fi.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Fi)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Fi.TEAMCITY_VERSION)?1:0;if(Fi.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Fi){let n=parseInt((Fi.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Fi.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Fi.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Fi.TERM)||"COLORTERM"in Fi?1:(Fi.TERM==="dumb",e)}function jd(t){let e=jte(t);return Fte(e)}qA.exports={supportsColor:jd,stdout:jd(process.stdout),stderr:jd(process.stderr)}});var JA=k((Ti,z6)=>{var Ute=require("tty"),q6=require("util");Ti.init=zte;Ti.log=Hte;Ti.formatArgs=$te;Ti.save=Vte;Ti.load=qte;Ti.useColors=Mte;Ti.destroy=q6.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Ti.colors=[6,2,3,4,5,1];try{let t=zA();t&&(t.stderr||t).level>=2&&(Ti.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{}Ti.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let n=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,l)=>l.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),t[n]=r,t},{});function Mte(){return"colors"in Ti.inspectOpts?!!Ti.inspectOpts.colors:Ute.isatty(process.stderr.fd)}function $te(t){let{namespace:e,useColors:n}=this;if(n){let r=this.color,i="\x1B[3"+(r<8?r:"8;5;"+r),l=` ${i};1m${e} \x1B[0m`;t[0]=l+t[0].split(`
`).join(`
-`+l),t.push(i+"m+"+V6.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Rte()+e+" "+t[0]}function Rte(){return bi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ite(...t){return process.stderr.write(H6.format(...t)+`
-`)}function kte(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Dte(){return process.env.DEBUG}function Pte(t){t.inspectOpts={};let e=Object.keys(bi.inspectOpts);for(let n=0;ne.trim()).join(" ")};BA.O=function(t){return this.inspectOpts.colors=this.useColors,H6.inspect(t,this.inspectOpts)}});var q6=k((jOe,Ld)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ld.exports=FA():Ld.exports=HA()});var VA=k((UOe,Ud)=>{"use strict";var Lte=Nd(),Fte=require("events").EventEmitter,jte=require("util").inherits,ui=q6()("avvio"),{AVV_ERR_READY_TIMEOUT:Ute}=Rd(),Fd=Symbol.for("plugin-meta");function Mte(t,e){return t[Fd]&&t[Fd].name?t[Fd].name:typeof e<"u"&&typeof e!="function"&&e.name?e.name:t.name?t.name:t.toString().split(`
-`).slice(0,2).map(n=>n.trim()).join(" -- ")}function $te(){let t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}function $u(t,e,n,r,i){this.started=!1,this.func=e,this.opts=n,this.onFinish=null,this.parent=t,this.timeout=i===void 0?t._timeout:i,this.name=Mte(e,n),this.isAfter=r,this.q=Lte(t,Bte,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}jte($u,Fte);$u.prototype.exec=function(t,e){let n=this.func,r=!1,i=this.name;if(this.parent._error&&!this.isAfter){ui("skipping loading of plugin as parent errored and it is not an after",i),process.nextTick(e);return}if(this.isAfter)this.server=t;else try{this.server=this.parent.override(t,n,this.opts)}catch(o){return ui("override errored",i),e(o)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,ui("exec",i);let l,s=o=>{if(r){ui("loading complete",i);return}this._error=o,ui(o?"exec errored":"exec completed",i),r=!0,l&&clearTimeout(l),e(o)};this.timeout>0&&(ui("setting up timeout",i,this.timeout),l=setTimeout(function(){ui("timed out",i),l=null;let o=new Ute(i);o.fn=n,s(o)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());let a=n(this.server,this.opts,s);a&&typeof a.then=="function"&&(ui("exec: resolving promise",i),a.then(()=>process.nextTick(s),o=>process.nextTick(s,o)))};$u.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();let t=()=>{this.server.after((n,r)=>{this._error=n,this.q.pause(),n?(ui("rejecting promise",this.name,n),this._promise.reject(n)):(ui("resolving promise",this.name),this._promise.resolve()),this._promise=null,process.nextTick(r,n)}),this.q.resume()},e;return this._promise?e=Promise.resolve():(this._promise=$te(),e=this._promise.promise,this.server?t():this.on("start",t)),e};$u.prototype.enqueue=function(t,e){ui("enqueue",this.name,t.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(t,e)};$u.prototype.finish=function(t,e){ui("finish",this.name,t);let n=()=>{this.loaded||(ui("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,e(t))};if(t){this._promise&&(this._promise.reject(t),this._promise=null),n();return}let r=()=>{if(ui("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){let i=()=>{ui("wrap"),queueMicrotask(r)};this._promise.resolve(),this._promise.promise.then(i,i),this._promise=null}else n();else ui("delayed",this.name),this.q.drain=()=>{ui("drain",this.name),this.q.drain=Hte,queueMicrotask(r)}};queueMicrotask(r),this.q.resume()};function Bte(t,e){let n=this;process.nextTick(jd.bind(n),t,e)}function jd(t,e){if(typeof t.func.then=="function"){t.func.then(r=>{typeof r.default=="function"&&(r=r.default),t.func=r,jd.call(this,t,e)},e);return}let n=this._current[0];this._current.unshift(t),t.exec(n&&n.server||this._server,r=>{t.finish(r,i=>{this._current.shift(),e(i)})})}function Hte(){}Ud.exports=$u;Ud.exports.loadPlugin=jd});var KA=k((MOe,Vd)=>{"use strict";var qA=Nd(),Vte=require("events").EventEmitter,qte=require("util").inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Md,AVV_ERR_CALLBACK_NOT_FN:t4,AVV_ERR_PLUGIN_NOT_VALID:zte,AVV_ERR_ROOT_PLG_BOOTED:Gte,AVV_ERR_READY_TIMEOUT:Jte}=Rd(),Kte=kA(),Hd=VA(),Bu=q6()("avvio"),z6=Symbol("kAvvio"),$d=Symbol("kThenifyDoNotWrap");function Xte(t,e,n){let r=e.expose||{},i=r.use||"use",l=r.after||"after",s=r.ready||"ready",a=r.onClose||"onClose",o=r.close||"close";if(t[i])throw new Md(i);if(t[l])throw new Md(l);if(t[s])throw new Md(s);t[i]=function(u,c){return n.use(u,c),this},Object.defineProperty(t,"then",{get:GA.bind(n)}),t[z6]=!0,t[l]=function(u){return typeof u!="function"?n._loadRegistered():(n.after(Bd(u,this)),this)},t[s]=function(u){if(u&&typeof u!="function")throw new t4(s,typeof u);return n.ready(u?Bd(u,this):void 0)},t[a]=function(u){if(typeof u!="function")throw new t4(a,typeof u);return n.onClose(ene(u,this)),this},t[o]=function(u){if(u&&typeof u!="function")throw new t4(o,typeof u);return u?(n.close(Bd(u,this)),this):n.close()}}function ci(t,e,n){if(typeof t=="function"&&arguments.length===1&&(n=t,e={},t=null),typeof e=="function"&&(n=e,e={}),e=e||{},!(this instanceof ci)){let r=new ci(t,e,n);return t&&Xte(t,e,r),r}e.autostart!==!1&&(e.autostart=!0),t=t||this,this._timeout=Number(e.timeout)||0,this._server=t,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new Kte,this._readyQ=qA(this,JA,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=zA},this._closeQ=qA(this,Zte,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=zA},this._doStart=null,this._root=new Hd(this,Wte.bind(this),e,!1,0),this._root.once("start",(r,i,l)=>{let s=this.pluginTree.start(null,i,l);this._root.once("loaded",(a,o,u)=>{this.pluginTree.stop(s,u)})}),Hd.loadPlugin.call(this,this._root,r=>{Bu("root plugin ready");try{this.emit("preReady"),this._root=null}catch(i){r=r||this._error||i}if(r){if(this._error=r,this._readyQ.length()===0)throw r}else this.booted=!0;this._readyQ.resume()})}function Wte(t,e,n){this._doStart=n,e.autostart&&this.start()}qte(ci,Vte);ci.prototype.start=function(){return this.started=!0,process.nextTick(this._doStart),this};ci.prototype.override=function(t,e,n){return t};function Yte(t){if(t&&typeof t=="object"&&typeof t.default=="function"&&(t=t.default),!(t&&(typeof t=="function"||typeof t.then=="function")))throw new zte(typeof t);return t}ci.prototype[z6]=!0;ci.prototype.use=function(t,e){return this._lastUsed=this._addPlugin(t,e,!1),this};ci.prototype._loadRegistered=function(){let t=this._current[0];return!this.started&&!this.booted&&process.nextTick(()=>this._root.q.resume()),t?t.loadedSoFar():Promise.resolve()};Object.defineProperty(ci.prototype,"then",{get:GA});ci.prototype._addPlugin=function(t,e,n){if(t=Yte(t),e=e||{},this.booted)throw new Gte;let r=this._current[0],i=new Hd(this,t,e,n);if(i.once("start",(l,s,a)=>{let o=this.pluginTree.start(r.name,s,a);i.once("loaded",(u,c,f)=>{this.pluginTree.stop(o,f)})}),r.loaded)throw new Error(i.name,r.name);return r.enqueue(i,l=>{l&&(this._error=l)}),i};ci.prototype.after=function(t){if(!t)return this._loadRegistered();this._addPlugin(e.bind(this),{},!0);function e(n,r,i){JA.call(this,t,i)}return this};ci.prototype.onClose=function(t){if(typeof t!="function")throw new Error("not a function");t[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(t,e.bind(this));function e(n){n&&(this._error=n)}return this};ci.prototype.close=function(t){let e;if(t){if(typeof t!="function")throw new t4("close",typeof t)}else e=new Promise(function(n,r){t=function(i){if(i)return r(i);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(t),process.nextTick(this._closeQ.resume.bind(this._closeQ))}),e};ci.prototype.ready=function(t){if(t){if(typeof t!="function")throw new t4("ready",typeof t);this._readyQ.push(t),queueMicrotask(this.start.bind(this));return}return new Promise((e,n)=>{this._readyQ.push(i),this.start();let r=this._current[0].server;function i(l,s,a){l?n(l):e(r),process.nextTick(a)}})};ci.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};ci.prototype.toJSON=function(){return this.pluginTree.toJSON()};function zA(){}function GA(){if(this.booted){Bu("thenify returning null because we are already booted");return}if(this[$d]){this[$d]=!1;return}return Bu("thenify"),(t,e)=>this._loadRegistered().then(()=>(this[$d]=!0,t(this._server)),e)}function JA(t,e){let n=this._server,r=this._error,i;if(this._error=null,t.length===0)this._error=r,i=t(),i&&!i[z6]&&typeof i.then=="function"?i.then(()=>process.nextTick(e),l=>process.nextTick(e,l)):process.nextTick(e);else if(t.length===1)i=t(r),i&&!i[z6]&&typeof i.then=="function"?i.then(()=>process.nextTick(e),l=>process.nextTick(e,l)):process.nextTick(e);else if(this._timeout===0){let l=s=>{this._error=s,e(this._error)};t.length===2?t(r,l):t(r,n,l)}else Qte.call(this,t,r,n,e)}function Qte(t,e,n,r){let i=t.name;Bu("setting up ready timeout",i,this._timeout);let l=setTimeout(()=>{Bu("timed out",i),l=null;let a=new Jte(i);a.fn=t,this._error=a,r(a)},this._timeout);t.length===2?t(e,s.bind(this)):t(e,n,s.bind(this));function s(a){l&&(clearTimeout(l),this._error=a,r(this._error))}}function Zte(t,e){let n=this._server,r=t[this._isOnCloseHandlerKey];if(t.length===0||t.length===1){let i;r?i=t(n):i=t(this._error),i&&typeof i.then=="function"?(Bu("resolving close/onClose promise"),i.then(()=>process.nextTick(e),l=>process.nextTick(e,l))):process.nextTick(e)}else t.length===2?t(r?n:this._error,e):r?t(n,e):t(this._error,n,e)}function ene(t,e){return n.bind(e);function n(r,i){let l;t.length===0?(l=t(),l&&l.then?l.then(function(){process.nextTick(i)},i):process.nextTick(i)):t.length===1?(l=t(this),l&&l.then?l.then(function(){process.nextTick(i)},i):process.nextTick(i)):t(this,i)}}function Bd(t,e){return n.bind(e);function n(r,i){let l;t?t.length===0?(l=t(),l&&l.then?l.then(function(){process.nextTick(i,r)},i):process.nextTick(i,r)):t.length===1?(l=t(r),l&&l.then?l.then(function(){process.nextTick(i)},i):process.nextTick(i)):t.length===2?t(r,i):t(r,this,i):process.nextTick(i)}}Vd.exports=ci;Vd.exports.express=function(t){return ci(t,{expose:{use:"load"}})}});var pi=k(($Oe,XA)=>{"use strict";var tne={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"),kGenReqId:Symbol("fastify.genReqId"),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"),kRequestPayloadStream:Symbol("fastify.RequestPayloadStream"),kRequestAcceptVersion:Symbol("fastify.RequestAcceptVersion"),kRequestCacheValidateFns:Symbol("fastify.request.cache.validateFns"),kRequestOriginalUrl:Symbol("fastify.request.originalUrl"),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"),kReplyCacheSerializeFns:Symbol("fastify.reply.cache.serializeFns"),kTestInternals:Symbol("fastify.testInternals"),kErrorHandler:Symbol("fastify.errorHandler"),kChildLoggerFactory:Symbol("fastify.childLoggerFactory"),kHasBeenDecorated:Symbol("fastify.hasBeenDecorated"),kKeepAliveConnections:Symbol("fastify.keepAliveConnections"),kRouteByFastify:Symbol("fastify.routeByFastify")};XA.exports=tne});var YA=k((BOe,G6)=>{"use strict";var{format:qd}=require("node:util");function nne(t){return WA({...t,name:"DeprecationWarning"})}function WA({name:t,code:e,message:n,unlimited:r=!1}={}){if(!t)throw new Error("Warning name must not be empty");if(!e)throw new Error("Warning code must not be empty");if(!n)throw new Error("Warning message must not be empty");if(typeof r!="boolean")throw new Error("Warning opts.unlimited must be a boolean");e=e.toUpperCase();let i={[t]:function(s,a,o){l.emitted===!0&&l.unlimited!==!0||(l.emitted=!0,process.emitWarning(l.format(s,a,o),l.name,l.code))}};r&&(i={[t]:function(s,a,o){l.emitted=!0,process.emitWarning(l.format(s,a,o),l.name,l.code)}});let l=i[t];return l.emitted=!1,l.message=n,l.unlimited=r,l.code=e,l.format=function(s,a,o){let u;return s&&a&&o?u=qd(n,s,a,o):s&&a?u=qd(n,s,a):s?u=qd(n,s):u=n,u},l}var zd={createWarning:WA,createDeprecation:nne};G6.exports=zd;G6.exports.default=zd;G6.exports.processWarning=zd});var La=k((HOe,ZA)=>{"use strict";var{createDeprecation:Pi,createWarning:QA}=YA(),rne=Pi({code:"FSTDEP005",message:'You are accessing the deprecated "request.connection" property. Use "request.socket" instead.'}),ine=Pi({code:"FSTDEP006",message:"You are decorating Request/Reply with a reference type. This reference is shared amongst all requests. Use onRequest hook instead. Property: %s"}),lne=Pi({code:"FSTDEP007",message:'You are trying to set a HEAD route using "exposeHeadRoute" route flag when a sibling route is already set. See documentation for more info.'}),sne=Pi({code:"FSTDEP008",message:'You are using route constraints via the route { version: "..." } option, use { constraints: { version: "..." } } option instead.'}),ane=Pi({code:"FSTDEP009",message:'You are using a custom route versioning strategy via the server { versioning: "..." } option, use { constraints: { version: "..." } } option instead.'}),one=Pi({code:"FSTDEP010",message:'Modifying the "reply.sent" property is deprecated. Use the "reply.hijack()" method instead.'}),une=Pi({code:"FSTDEP011",message:'Variadic listen method is deprecated. Please use ".listen(optionsObject)" instead. The variadic signature will be removed in `fastify@5`.'}),cne=Pi({code:"FSTDEP012",message:'request.context property access is deprecated. Please use "request.routeOptions.config" or "request.routeOptions.schema" instead for accessing Route settings. The "request.context" will be removed in `fastify@5`.'}),pne=Pi({code:"FSTDEP013",message:'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`.'}),fne=Pi({code:"FSTDEP014",message:"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."}),dne=Pi({code:"FSTDEP015",message:'You are accessing the deprecated "request.routeSchema" property. Use "request.routeOptions.schema" instead. Property "req.routeSchema" will be removed in `fastify@5`.'}),hne=Pi({code:"FSTDEP016",message:'You are accessing the deprecated "request.routeConfig" property. Use "request.routeOptions.config" instead. Property "req.routeConfig" will be removed in `fastify@5`.'}),mne=Pi({code:"FSTDEP017",message:'You are accessing the deprecated "request.routerPath" property. Use "request.routeOptions.url" instead. Property "req.routerPath" will be removed in `fastify@5`.'}),yne=Pi({code:"FSTDEP018",message:'You are accessing the deprecated "request.routerMethod" property. Use "request.routeOptions.method" instead. Property "req.routerMethod" will be removed in `fastify@5`.'}),gne=Pi({code:"FSTDEP019",message:'reply.context property access is deprecated. Please use "request.routeOptions.config" or "request.routeOptions.schema" instead for accessing Route settings. The "reply.context" will be removed in `fastify@5`.'}),vne=Pi({code:"FSTDEP020",message:'You are using the deprecated "reply.getResponseTime()"" method. Use the "request.elapsedTime" property instead. Method "reply.getResponseTime()" will be removed in `fastify@5`.'}),_ne=QA({name:"FastifyWarning",code:"FSTWRN001",message:"The %s schema for %s: %s is missing. This may indicate the schema is not well specified.",unlimited:!0}),Ene=QA({name:"FastifyWarning",code:"FSTWRN002",message:"The %s plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`",unlimited:!0});ZA.exports={FSTDEP005:rne,FSTDEP006:ine,FSTDEP007:lne,FSTDEP008:sne,FSTDEP009:ane,FSTDEP010:one,FSTDEP011:une,FSTDEP012:cne,FSTDEP013:pne,FSTDEP014:fne,FSTDEP015:dne,FSTDEP016:hne,FSTDEP017:mne,FSTDEP018:yne,FSTDEP019:gne,FSTDEP020:vne,FSTWRN001:_ne,FSTWRN002:Ene}});var eO=k((VOe,J6)=>{"use strict";var{format:bne}=require("node:util");function wne(){return`${this.name} [${this.code}]: ${this.message}`}function Gd(t,e,n=500,r=Error){if(!t)throw new Error("Fastify error code must not be empty");if(!e)throw new Error("Fastify error message must not be empty");t=t.toUpperCase(),!n&&(n=void 0);function i(...l){if(!new.target)return new i(...l);this.code=t,this.name="FastifyError",this.statusCode=n;let s=l.length-1;s!==-1&&l[s]&&typeof l[s]=="object"&&"cause"in l[s]&&(this.cause=l.pop().cause),this.message=bne(e,...l),Error.stackTraceLimit!==0&&Error.captureStackTrace(this,i)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),i.prototype[Symbol.toStringTag]="Error",i.prototype.toString=wne,i}J6.exports=Gd;J6.exports.default=Gd;J6.exports.createError=Gd});var Li=k((qOe,K6)=>{"use strict";var Ce=eO(),Hu={FST_ERR_NOT_FOUND:Ce("FST_ERR_NOT_FOUND","Not Found",404),FST_ERR_OPTIONS_NOT_OBJ:Ce("FST_ERR_OPTIONS_NOT_OBJ","Options must be an object",500,TypeError),FST_ERR_QSP_NOT_FN:Ce("FST_ERR_QSP_NOT_FN","querystringParser option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:Ce("FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN","schemaController.bucket option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:Ce("FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN","schemaErrorFormatter option should be a non async function. Instead got '%s'.",500,TypeError),FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:Ce("FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ","ajv.customOptions option should be an object, instead got '%s'",500,TypeError),FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:Ce("FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR","ajv.plugins option should be an array, instead got '%s'",500,TypeError),FST_ERR_VERSION_CONSTRAINT_NOT_STR:Ce("FST_ERR_VERSION_CONSTRAINT_NOT_STR","Version constraint should be a string.",500,TypeError),FST_ERR_VALIDATION:Ce("FST_ERR_VALIDATION","%s",400),FST_ERR_LISTEN_OPTIONS_INVALID:Ce("FST_ERR_LISTEN_OPTIONS_INVALID","Invalid listen options: '%s'",500,TypeError),FST_ERR_CTP_ALREADY_PRESENT:Ce("FST_ERR_CTP_ALREADY_PRESENT","Content type parser '%s' already present."),FST_ERR_CTP_INVALID_TYPE:Ce("FST_ERR_CTP_INVALID_TYPE","The content type should be a string or a RegExp",500,TypeError),FST_ERR_CTP_EMPTY_TYPE:Ce("FST_ERR_CTP_EMPTY_TYPE","The content type cannot be an empty string",500,TypeError),FST_ERR_CTP_INVALID_HANDLER:Ce("FST_ERR_CTP_INVALID_HANDLER","The content type handler should be a function",500,TypeError),FST_ERR_CTP_INVALID_PARSE_TYPE:Ce("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:Ce("FST_ERR_CTP_BODY_TOO_LARGE","Request body is too large",413,RangeError),FST_ERR_CTP_INVALID_MEDIA_TYPE:Ce("FST_ERR_CTP_INVALID_MEDIA_TYPE","Unsupported Media Type: %s",415),FST_ERR_CTP_INVALID_CONTENT_LENGTH:Ce("FST_ERR_CTP_INVALID_CONTENT_LENGTH","Request body size did not match Content-Length",400,RangeError),FST_ERR_CTP_EMPTY_JSON_BODY:Ce("FST_ERR_CTP_EMPTY_JSON_BODY","Body cannot be empty when content-type is set to 'application/json'",400),FST_ERR_CTP_INSTANCE_ALREADY_STARTED:Ce("FST_ERR_CTP_INSTANCE_ALREADY_STARTED",'Cannot call "%s" when fastify instance is already started!',400),FST_ERR_DEC_ALREADY_PRESENT:Ce("FST_ERR_DEC_ALREADY_PRESENT","The decorator '%s' has already been added!"),FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:Ce("FST_ERR_DEC_DEPENDENCY_INVALID_TYPE","The dependencies of decorator '%s' must be of type Array.",500,TypeError),FST_ERR_DEC_MISSING_DEPENDENCY:Ce("FST_ERR_DEC_MISSING_DEPENDENCY","The decorator is missing dependency '%s'."),FST_ERR_DEC_AFTER_START:Ce("FST_ERR_DEC_AFTER_START","The decorator '%s' has been added after start!"),FST_ERR_HOOK_INVALID_TYPE:Ce("FST_ERR_HOOK_INVALID_TYPE","The hook name must be a string",500,TypeError),FST_ERR_HOOK_INVALID_HANDLER:Ce("FST_ERR_HOOK_INVALID_HANDLER","%s hook should be a function, instead got %s",500,TypeError),FST_ERR_HOOK_INVALID_ASYNC_HANDLER:Ce("FST_ERR_HOOK_INVALID_ASYNC_HANDLER","Async function has too many arguments. Async hooks should not use the 'done' argument.",500,TypeError),FST_ERR_HOOK_NOT_SUPPORTED:Ce("FST_ERR_HOOK_NOT_SUPPORTED","%s hook not supported!",500,TypeError),FST_ERR_MISSING_MIDDLEWARE:Ce("FST_ERR_MISSING_MIDDLEWARE","You must register a plugin for handling middlewares, visit fastify.dev/docs/latest/Reference/Middleware/ for more info.",500),FST_ERR_HOOK_TIMEOUT:Ce("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:Ce("FST_ERR_LOG_INVALID_DESTINATION","Cannot specify both logger.stream and logger.file options"),FST_ERR_LOG_INVALID_LOGGER:Ce("FST_ERR_LOG_INVALID_LOGGER","Invalid logger object provided. The logger instance should have these functions(s): '%s'.",500,TypeError),FST_ERR_REP_INVALID_PAYLOAD_TYPE:Ce("FST_ERR_REP_INVALID_PAYLOAD_TYPE","Attempted to send payload of invalid type '%s'. Expected a string or Buffer.",500,TypeError),FST_ERR_REP_RESPONSE_BODY_CONSUMED:Ce("FST_ERR_REP_RESPONSE_BODY_CONSUMED","Response.body is already consumed."),FST_ERR_REP_ALREADY_SENT:Ce("FST_ERR_REP_ALREADY_SENT",'Reply was already sent, did you forget to "return reply" in "%s" (%s)?'),FST_ERR_REP_SENT_VALUE:Ce("FST_ERR_REP_SENT_VALUE","The only possible value for reply.sent is true.",500,TypeError),FST_ERR_SEND_INSIDE_ONERR:Ce("FST_ERR_SEND_INSIDE_ONERR","You cannot use `send` inside the `onError` hook"),FST_ERR_SEND_UNDEFINED_ERR:Ce("FST_ERR_SEND_UNDEFINED_ERR","Undefined error has occurred"),FST_ERR_BAD_STATUS_CODE:Ce("FST_ERR_BAD_STATUS_CODE","Called reply with an invalid status code: %s"),FST_ERR_BAD_TRAILER_NAME:Ce("FST_ERR_BAD_TRAILER_NAME","Called reply.trailer with an invalid header name: %s"),FST_ERR_BAD_TRAILER_VALUE:Ce("FST_ERR_BAD_TRAILER_VALUE","Called reply.trailer('%s', fn) with an invalid type: %s. Expected a function."),FST_ERR_FAILED_ERROR_SERIALIZATION:Ce("FST_ERR_FAILED_ERROR_SERIALIZATION","Failed to serialize an error. Error: %s. Original error: %s"),FST_ERR_MISSING_SERIALIZATION_FN:Ce("FST_ERR_MISSING_SERIALIZATION_FN",'Missing serialization function. Key "%s"'),FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:Ce("FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN",'Missing serialization function. Key "%s:%s"'),FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:Ce("FST_ERR_REQ_INVALID_VALIDATION_INVOCATION",'Invalid validation invocation. Missing validation function for HTTP part "%s" nor schema provided.'),FST_ERR_SCH_MISSING_ID:Ce("FST_ERR_SCH_MISSING_ID","Missing schema $id property"),FST_ERR_SCH_ALREADY_PRESENT:Ce("FST_ERR_SCH_ALREADY_PRESENT","Schema with id '%s' already declared!"),FST_ERR_SCH_CONTENT_MISSING_SCHEMA:Ce("FST_ERR_SCH_CONTENT_MISSING_SCHEMA","Schema is missing for the content type '%s'"),FST_ERR_SCH_DUPLICATE:Ce("FST_ERR_SCH_DUPLICATE","Schema with '%s' already present!"),FST_ERR_SCH_VALIDATION_BUILD:Ce("FST_ERR_SCH_VALIDATION_BUILD","Failed building the validation schema for %s: %s, due to error %s"),FST_ERR_SCH_SERIALIZATION_BUILD:Ce("FST_ERR_SCH_SERIALIZATION_BUILD","Failed building the serialization schema for %s: %s, due to error %s"),FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:Ce("FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX",'response schemas should be nested under a valid status code, e.g { 2xx: { type: "object" } }'),FST_ERR_HTTP2_INVALID_VERSION:Ce("FST_ERR_HTTP2_INVALID_VERSION","HTTP2 is available only from node >= 8.8.1"),FST_ERR_INIT_OPTS_INVALID:Ce("FST_ERR_INIT_OPTS_INVALID","Invalid initialization options: '%s'"),FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:Ce("FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE","Cannot set forceCloseConnections to 'idle' as your HTTP server does not support closeIdleConnections method"),FST_ERR_DUPLICATED_ROUTE:Ce("FST_ERR_DUPLICATED_ROUTE","Method '%s' already declared for route '%s'"),FST_ERR_BAD_URL:Ce("FST_ERR_BAD_URL","'%s' is not a valid url component",400,URIError),FST_ERR_ASYNC_CONSTRAINT:Ce("FST_ERR_ASYNC_CONSTRAINT","Unexpected error from async constraint",500),FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:Ce("FST_ERR_DEFAULT_ROUTE_INVALID_TYPE","The defaultRoute type should be a function",500,TypeError),FST_ERR_INVALID_URL:Ce("FST_ERR_INVALID_URL","URL must be a string. Received '%s'",400,TypeError),FST_ERR_ROUTE_OPTIONS_NOT_OBJ:Ce("FST_ERR_ROUTE_OPTIONS_NOT_OBJ",'Options for "%s:%s" route must be an object',500,TypeError),FST_ERR_ROUTE_DUPLICATED_HANDLER:Ce("FST_ERR_ROUTE_DUPLICATED_HANDLER",'Duplicate handler for "%s:%s" route is not allowed!',500),FST_ERR_ROUTE_HANDLER_NOT_FN:Ce("FST_ERR_ROUTE_HANDLER_NOT_FN","Error Handler for %s:%s route, if defined, must be a function",500,TypeError),FST_ERR_ROUTE_MISSING_HANDLER:Ce("FST_ERR_ROUTE_MISSING_HANDLER",'Missing handler function for "%s:%s" route.',500),FST_ERR_ROUTE_METHOD_INVALID:Ce("FST_ERR_ROUTE_METHOD_INVALID","Provided method is invalid!",500,TypeError),FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:Ce("FST_ERR_ROUTE_METHOD_NOT_SUPPORTED","%s method is not supported.",500),FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:Ce("FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED","Body validation schema for %s:%s route is not supported!",500),FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:Ce("FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT","'bodyLimit' option must be an integer > 0. Got '%s'",500,TypeError),FST_ERR_ROUTE_REWRITE_NOT_STR:Ce("FST_ERR_ROUTE_REWRITE_NOT_STR",'Rewrite url for "%s" needs to be of type "string" but received "%s"',500,TypeError),FST_ERR_REOPENED_CLOSE_SERVER:Ce("FST_ERR_REOPENED_CLOSE_SERVER","Fastify has already been closed and cannot be reopened"),FST_ERR_REOPENED_SERVER:Ce("FST_ERR_REOPENED_SERVER","Fastify is already listening"),FST_ERR_INSTANCE_ALREADY_LISTENING:Ce("FST_ERR_INSTANCE_ALREADY_LISTENING","Fastify instance is already listening. %s"),FST_ERR_PLUGIN_VERSION_MISMATCH:Ce("FST_ERR_PLUGIN_VERSION_MISMATCH","fastify-plugin: %s - expected '%s' fastify version, '%s' is installed"),FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:Ce("FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE","The decorator '%s'%s is not present in %s"),FST_ERR_PLUGIN_CALLBACK_NOT_FN:Ce("FST_ERR_PLUGIN_CALLBACK_NOT_FN","fastify-plugin: %s",500,TypeError),FST_ERR_PLUGIN_NOT_VALID:Ce("FST_ERR_PLUGIN_NOT_VALID","fastify-plugin: %s"),FST_ERR_ROOT_PLG_BOOTED:Ce("FST_ERR_ROOT_PLG_BOOTED","fastify-plugin: %s"),FST_ERR_PARENT_PLUGIN_BOOTED:Ce("FST_ERR_PARENT_PLUGIN_BOOTED","fastify-plugin: %s"),FST_ERR_PLUGIN_TIMEOUT:Ce("FST_ERR_PLUGIN_TIMEOUT","fastify-plugin: %s")};function Sne(t,e){return e.cause=t,e}K6.exports=Hu;K6.exports.appendStackTrace=Sne;K6.exports.AVVIO_ERRORS_MAP={AVV_ERR_CALLBACK_NOT_FN:Hu.FST_ERR_PLUGIN_CALLBACK_NOT_FN,AVV_ERR_PLUGIN_NOT_VALID:Hu.FST_ERR_PLUGIN_NOT_VALID,AVV_ERR_ROOT_PLG_BOOTED:Hu.FST_ERR_ROOT_PLG_BOOTED,AVV_ERR_PARENT_PLG_LOADED:Hu.FST_ERR_PARENT_PLUGIN_BOOTED,AVV_ERR_READY_TIMEOUT:Hu.FST_ERR_PLUGIN_TIMEOUT}});var h2=k((zOe,uO)=>{"use strict";var Tne=["onRoute","onRegister","onReady","onListen","preClose","onClose"],iO=["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError","onRequestAbort"],xne=iO.concat(Tne),{FST_ERR_HOOK_INVALID_TYPE:Ane,FST_ERR_HOOK_INVALID_HANDLER:One,FST_ERR_SEND_UNDEFINED_ERR:X6,FST_ERR_HOOK_TIMEOUT:Nne,FST_ERR_HOOK_NOT_SUPPORTED:Cne,AVVIO_ERRORS_MAP:tO,appendStackTrace:nO}=Li(),{kChildren:n4,kHooks:lO,kRequestPayloadStream:rO}=pi();function r4(){this.onRequest=[],this.preParsing=[],this.preValidation=[],this.preSerialization=[],this.preHandler=[],this.onResponse=[],this.onSend=[],this.onError=[],this.onRoute=[],this.onRegister=[],this.onReady=[],this.onListen=[],this.onTimeout=[],this.onRequestAbort=[],this.preClose=[]}r4.prototype=Object.create(null);r4.prototype.validate=function(t,e){if(typeof t!="string")throw new Ane;if(Array.isArray(this[t])===!1)throw new Cne(t);if(typeof e!="function")throw new One(t,Object.prototype.toString.call(e))};r4.prototype.add=function(t,e){this.validate(t,e),this[t].push(e)};function Rne(t){let e=new r4;return e.onRequest=t.onRequest.slice(),e.preParsing=t.preParsing.slice(),e.preValidation=t.preValidation.slice(),e.preSerialization=t.preSerialization.slice(),e.preHandler=t.preHandler.slice(),e.onSend=t.onSend.slice(),e.onResponse=t.onResponse.slice(),e.onError=t.onError.slice(),e.onRoute=t.onRoute.slice(),e.onRegister=t.onRegister.slice(),e.onTimeout=t.onTimeout.slice(),e.onRequestAbort=t.onRequestAbort.slice(),e.onReady=[],e.onListen=[],e.preClose=[],e}function sO(t,e,n,r){let i=n[lO][t],l=0,s=0;o();function a(c){if(c){c.code==="AVV_ERR_READY_TIMEOUT"?c=nO(c,new Nne(t)):c=tO[c.code]!=null?nO(c,new tO[c.code](c.message)):c,r(c);return}r()}function o(c){if(c){a(c);return}if(l===i.length&&s===n[n4].length){l===0&&s===0?a():e(function(m,d){a(m),d(m)});return}if(l===i.length&&s{"use strict";var $ne=require("node:http"),Bne=require("node:https"),Hne=require("node:dns"),{FSTDEP011:cO}=La(),{kState:Fi,kOptions:Vne,kServerBindings:qne}=pi(),{onListenHookRunner:W6}=h2(),{FST_ERR_HTTP2_INVALID_VERSION:zne,FST_ERR_REOPENED_CLOSE_SERVER:dO,FST_ERR_REOPENED_SERVER:hO,FST_ERR_LISTEN_OPTIONS_INVALID:Gne}=Li();Kd.exports.createServer=Jne;Kd.exports.compileValidateHTTPVersion=Xne;function mO(t){return`Server listening at ${t}`}function Jne(t,e){let n=gO(t,e);function r(i,...l){let s=l.slice(-1).pop(),a=Object.prototype.toString.call(arguments[0]);if(arguments.length===0)i=Jd([]);else if(arguments.length>0&&a!=="[object Object]"&&a!=="[object Function]")cO(),i=Jd(Array.from(arguments)),s=i.cb;else if(l.length>1){cO();let u=i.path?[i.path]:[i.port??0,i.host??"localhost"];Object.assign(i,Jd([...u,...l]))}else i.cb=s;if(i.signal){if(typeof i.signal.on!="function"&&typeof i.signal.addEventListener!="function")throw new Gne("Invalid options.signal");if(i.signal.aborted)this.close();else{let u=()=>{this.close()};i.signal.addEventListener("abort",u,{once:!0})}}let o;if(i.path==null?o=i.host??"localhost":o=i.host,Object.prototype.hasOwnProperty.call(i,"host")===!1&&(i.host=o),o==="localhost"?i.cb=(u,c)=>{if(u){s(u,c);return}pO.call(this,n,e,t,i,()=>{this[Fi].listening=!0,s(null,c),W6(this)})}:i.cb=(u,c)=>{if(u){s(u,c);return}this[Fi].listening=!0,s(null,c),W6(this)},s===void 0)return Kne.call(this,n,i).then(c=>new Promise((f,m)=>{o==="localhost"?pO.call(this,n,e,t,i,()=>{this[Fi].listening=!0,f(c),W6(this)}):(f(c),W6(this))}));this.ready(yO.call(this,n,i))}return{server:n,listen:r}}function pO(t,e,n,r,i){this[Fi].listening=!1,Hne.lookup(r.host,{all:!0},(l,s)=>{if(l){i();return}let a=t.listening&&n.serverFactory,o=0,u=0;if(!a){let f=t.address();for(let m of s)if(m.address!==f.address){o++;let d=Object.assign({},r,{host:m.address,port:f.port,cb:S=>{u++,S||this[qne].push(y),u===o&&i()}}),y=gO(n,e),_=()=>{y.close(()=>{}),n.forceCloseConnections==="idle"?y.closeIdleConnections():typeof y.closeAllConnections=="function"&&n.forceCloseConnections&&y.closeAllConnections()};y.on("upgrade",t.emit.bind(t,"upgrade")),t.on("unref",_),t.on("close",_),t.on("error",_),this[Fi].listening=!1,yO.call(this,y,d)()}}if(o===0){i();return}let c=t.unref;t.unref=function(){c.call(t),t.emit("unref")}})}function yO(t,e){let n=r=>{if(t.removeListener("error",n),r)this[Fi].listening=!1,e.cb(r,null);else{let i=vO.call(this,t,e.listenTextResolver||mO);e.cb(null,i)}};return r=>{if(r!=null)return e.cb(r);if(this[Fi].listening&&this[Fi].closing)return e.cb(new dO,null);if(this[Fi].listening)return e.cb(new hO,null);t.once("error",n),this[Fi].closing||(t.listen(e,n),this[Fi].listening=!0)}}function Kne(t,e){return this[Fi].listening&&this[Fi].closing?Promise.reject(new dO):this[Fi].listening?Promise.reject(new hO):this.ready().then(()=>{let n,r=new Promise((l,s)=>{n=a=>{this[Fi].listening=!1,s(a)},t.once("error",n)}),i=new Promise((l,s)=>{t.listen(e,()=>{t.removeListener("error",n),l(vO.call(this,t,e.listenTextResolver||mO))}),this[Fi].listening=!0});return Promise.race([r,i])})}function Xne(t){let e=!1,n=new Map;return t.serverFactory&&(e=!0),t.http2?(n.set("2.0",!0),t.https&&t.https.allowHTTP1===!0&&(n.set("1.1",!0),n.set("1.0",!0))):(n.set("1.1",!0),n.set("1.0",!0)),function(i){return e||n.has(i)}}function gO(t,e){let n=null,r=t.https===!0?{}:t.https;return t.serverFactory?n=t.serverFactory(e,t):t.http2?(typeof r=="object"?n=fO().createSecureServer(r,e):n=fO().createServer(e),n.on("session",Yne(t.http2SessionTimeout))):(r?n=Bne.createServer(r,e):n=$ne.createServer(t.http,e),n.keepAliveTimeout=t.keepAliveTimeout,n.requestTimeout=t.requestTimeout,t.maxRequestsPerSocket>0&&(n.maxRequestsPerSocket=t.maxRequestsPerSocket)),t.serverFactory||n.setTimeout(t.connectionTimeout),n}function Jd(t){if(t.length===0)return{port:0,host:"localhost"};let n={cb:typeof t[t.length-1]=="function"?t.pop():void 0},r=t[0],i=t.length,l=t[i-1];return typeof r=="string"&&isNaN(r)?(n.path=r,n.backlog=i>1?l:void 0):(n.port=i>=1&&Number.isInteger(r)?r:Wne(r),n.host=i>=2&&t[1]?t[1]:"localhost",n.backlog=i>=3?t[2]:void 0),n}function Wne(t){let e=Number(t);return e>=0&&!Number.isNaN(e)&&Number.isInteger(e)?e:0}function vO(t,e){let n=t.address(),r=typeof n=="string";r||(n.address.indexOf(":")===-1?n=n.address+":"+n.port:n="["+n.address+"]:"+n.port),n=(r?"":"http"+(this[Vne].https?"s":"")+"://")+n;let i=e(n);return this.log.info(i),n}function fO(){try{return require("node:http2")}catch{throw new zne}}function Yne(t){return function(e){e.setTimeout(t,Qne)}}function Qne(){this.close()}});var Qd=k((JOe,bO)=>{"use strict";var{kSchemaHeaders:Z6,kSchemaParams:Xd,kSchemaQuerystring:Wd,kSchemaBody:Yd,kSchemaResponse:EO}=pi(),Zne=/^[1-5]{1}[0-9]{2}$|^[1-5]xx$|^default$/,{FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:ere}=Li(),{FSTWRN001:Y6}=La();function tre(t,e){if(!t.schema||!t.schema.response)return;let{method:n,url:r}=t.config||{};t[EO]=Object.keys(t.schema.response).reduce(function(i,l){let s=t.schema.response[l];if(l=l.toLowerCase(),!Zne.exec(l))throw new ere;if(s.content){let a={};for(let o of Object.keys(s.content)){let u=s.content[o].schema;a[o]=e({schema:u,url:r,method:n,httpStatus:l,contentType:o})}i[l]=a}else i[l]=e({schema:s,url:r,method:n,httpStatus:l});return i},{})}function nre(t,e,n){let{schema:r}=t;if(!r)return;let{method:i,url:l}=t.config||{},s=r.headers;if(s&&(n||Object.getPrototypeOf(s)!==Object.prototype))t[Z6]=e({schema:s,method:i,url:l,httpPart:"headers"});else if(s){let a={};Object.keys(s).forEach(o=>{a[o]=s[o]}),a.required instanceof Array&&(a.required=a.required.map(o=>o.toLowerCase())),s.properties&&(a.properties={},Object.keys(s.properties).forEach(o=>{a.properties[o.toLowerCase()]=s.properties[o]})),t[Z6]=e({schema:a,method:i,url:l,httpPart:"headers"})}else Object.prototype.hasOwnProperty.call(r,"headers")&&Y6("headers",i,l);r.body?t[Yd]=e({schema:r.body,method:i,url:l,httpPart:"body"}):Object.prototype.hasOwnProperty.call(r,"body")&&Y6("body",i,l),r.querystring?t[Wd]=e({schema:r.querystring,method:i,url:l,httpPart:"querystring"}):Object.prototype.hasOwnProperty.call(r,"querystring")&&Y6("querystring",i,l),r.params?t[Xd]=e({schema:r.params,method:i,url:l,httpPart:"params"}):Object.prototype.hasOwnProperty.call(r,"params")&&Y6("params",i,l)}function Q6(t,e,n){let r=e[n]===void 0,i=t&&t(r?null:e[n]);if(i?.then)return i.then(s=>l(s)).catch(s=>s);return l(i);function l(s){return s===!1?t.errors:s&&s.error?s.error:(s&&s.value&&(e[n]=s.value),!1)}}function e8(t,e,n){let r=n===void 0;if(r||!n.skipParams){let l=Q6(t[Xd],e,"params");if(l)return typeof l.then!="function"?m2(l,"params",t.schemaErrorFormatter):rre(l,t,e)}if(r||!n.skipBody){let l=Q6(t[Yd],e,"body");if(l)return typeof l.then!="function"?m2(l,"body",t.schemaErrorFormatter):ire(l,t,e)}if(r||!n.skipQuery){let l=Q6(t[Wd],e,"query");if(l)return typeof l.then!="function"?m2(l,"querystring",t.schemaErrorFormatter):lre(l,t,e)}let i=Q6(t[Z6],e,"headers");return i?typeof i.then!="function"?m2(i,"headers",t.schemaErrorFormatter):sre(i,t,e):!1}function rre(t,e,n){return t.then(r=>r?m2(r,"params",e.schemaErrorFormatter):e8(e,n,{skipParams:!0}))}function ire(t,e,n){return t.then(r=>r?m2(r,"body",e.schemaErrorFormatter):e8(e,n,{skipParams:!0,skipBody:!0}))}function lre(t,e,n){return t.then(r=>r?m2(r,"querystring",e.schemaErrorFormatter):e8(e,n,{skipParams:!0,skipBody:!0,skipQuery:!0}))}function sre(t,e,n){return t.then(r=>r?m2(r,"headers",e.schemaErrorFormatter):!1)}function m2(t,e,n){if(t instanceof Error)return t.statusCode=t.statusCode||400,t.code=t.code||"FST_ERR_VALIDATION",t.validationContext=t.validationContext||e,t;let r=n(t,e);return r.statusCode=r.statusCode||400,r.code=r.code||"FST_ERR_VALIDATION",r.validation=t,r.validationContext=e,r}bO.exports={symbols:{bodySchema:Yd,querystringSchema:Wd,responseSchema:EO,paramsSchema:Xd,headersSchema:Z6},compileSchemasForValidation:nre,compileSchemasForSerialization:tre,validate:e8}});var Zd=k((KOe,SO)=>{"use strict";var{kReplyIsError:wO,kReplyHijacked:are}=pi();function ore(t,e){t.then(function(n){if(e[are]!==!0&&(n!==void 0||e.sent===!1&&e.raw.headersSent===!1&&e.request.raw.aborted===!1))try{e.send(n)}catch(r){e[wO]=!0,e.send(r)}},function(n){if(e.sent===!0){e.log.error({err:n},"Promise errored, but reply.sent = true was set");return}e[wO]=!0;try{e.send(n)}catch(r){e.send(r)}})}SO.exports=ore});var rh=k((XOe,nh)=>{"use strict";var{validate:ure}=Qd(),{preValidationHookRunner:cre,preHandlerHookRunner:pre}=h2(),fre=Zd(),{kReplyIsError:t8,kRouteContext:g2}=pi();function dre(t,e,n){if(n.sent===!0)return;if(t!=null){n[t8]=!0,n.send(t);return}let r=e.raw.method,i=e.headers,l=e[g2];if(r==="GET"||r==="HEAD"){y2(e,n);return}let s=i["content-type"];if(r==="POST"||r==="PUT"||r==="PATCH"||r==="TRACE"||r==="SEARCH"){s===void 0?i["transfer-encoding"]===void 0&&(i["content-length"]==="0"||i["content-length"]===void 0)?y2(e,n):l.contentTypeParser.run("",y2,e,n):l.contentTypeParser.run(s,y2,e,n);return}if(r==="OPTIONS"||r==="DELETE"){s!==void 0&&(i["transfer-encoding"]!==void 0||i["content-length"]!==void 0)?l.contentTypeParser.run(s,y2,e,n):y2(e,n);return}y2(e,n)}function y2(t,e){try{t[g2].preValidation!==null?cre(t[g2].preValidation,t,e,eh):eh(null,t,e)}catch(n){eh(n,t,e)}}function eh(t,e,n){if(n.sent===!0)return;if(t!=null){n[t8]=!0,n.send(t);return}let r=ure(n[g2],e);if(r&&typeof r.then=="function"||!1){let l=TO.bind(null,e,n);r.then(l,l)}else TO(e,n,r)}function TO(t,e,n){if(n){if(e[g2].attachValidation===!1){e.send(n);return}e.request.validationError=n}t[g2].preHandler!==null?pre(t[g2].preHandler,t,e,th):th(null,t,e)}function th(t,e,n){if(n.sent)return;if(t!=null){n[t8]=!0,n.send(t);return}let r;try{r=e[g2].handler(e,n)}catch(i){n[t8]=!0,n.send(i);return}r!==void 0&&(r!==null&&typeof r.then=="function"?fre(r,n):n.send(r))}nh.exports=dre;nh.exports[Symbol.for("internals")]={handler:y2,preHandlerCallback:th}});var AO=k((WOe,xO)=>{"use strict";function qu(){}var hre={fatal:qu,error:qu,warn:qu,info:qu,debug:qu,trace:qu};Object.defineProperty(xO,"exports",{get(){return Object.create(hre)}})});var lh=k((YOe,CO)=>{"use strict";var l4=t=>t&&typeof t.message=="string",ih=t=>{if(!t)return;let e=t.cause;if(typeof e=="function"){let n=t.cause();return l4(n)?n:void 0}else return l4(e)?e:void 0},OO=(t,e)=>{if(!l4(t))return"";let n=t.stack||"";if(e.has(t))return n+`
-causes have become circular...`;let r=ih(t);return r?(e.add(t),n+`
-caused by: `+OO(r,e)):n},mre=t=>OO(t,new Set),NO=(t,e,n)=>{if(!l4(t))return"";let r=n?"":t.message||"";if(e.has(t))return r+": ...";let i=ih(t);if(i){e.add(t);let l=typeof t.cause=="function";return r+(l?"":": ")+NO(i,e,l)}else return r},yre=t=>NO(t,new Set);CO.exports={isErrorLike:l4,getErrorCause:ih,stackWithCauses:mre,messageWithCauses:yre}});var sh=k((QOe,IO)=>{"use strict";var gre=Symbol("circular-ref-tag"),n8=Symbol("pino-raw-err-ref"),RO=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},aggregateErrors:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[n8]},set:function(t){this[n8]=t}}});Object.defineProperty(RO,n8,{writable:!0,value:{}});IO.exports={pinoErrProto:RO,pinoErrorSymbols:{seen:gre,rawSymbol:n8}}});var PO=k((ZOe,DO)=>{"use strict";DO.exports=oh;var{messageWithCauses:vre,stackWithCauses:_re,isErrorLike:kO}=lh(),{pinoErrProto:Ere,pinoErrorSymbols:bre}=sh(),{seen:ah}=bre,{toString:wre}=Object.prototype;function oh(t){if(!kO(t))return t;t[ah]=void 0;let e=Object.create(Ere);e.type=wre.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=vre(t),e.stack=_re(t),Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(n=>oh(n)));for(let n in t)if(e[n]===void 0){let r=t[n];kO(r)?n!=="cause"&&!Object.prototype.hasOwnProperty.call(r,ah)&&(e[n]=oh(r)):e[n]=r}return delete t[ah],e.raw=t,e}});var FO=k((eNe,LO)=>{"use strict";LO.exports=i8;var{isErrorLike:uh}=lh(),{pinoErrProto:Sre,pinoErrorSymbols:Tre}=sh(),{seen:r8}=Tre,{toString:xre}=Object.prototype;function i8(t){if(!uh(t))return t;t[r8]=void 0;let e=Object.create(Sre);e.type=xre.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=t.message,e.stack=t.stack,Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(n=>i8(n))),uh(t.cause)&&!Object.prototype.hasOwnProperty.call(t.cause,r8)&&(e.cause=i8(t.cause));for(let n in t)if(e[n]===void 0){let r=t[n];uh(r)?Object.prototype.hasOwnProperty.call(r,r8)||(e[n]=i8(r)):e[n]=r}return delete t[r8],e.raw=t,e}});var $O=k((tNe,MO)=>{"use strict";MO.exports={mapHttpRequest:Are,reqSerializer:UO};var ch=Symbol("pino-raw-req-ref"),jO=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[ch]},set:function(t){this[ch]=t}}});Object.defineProperty(jO,ch,{writable:!0,value:{}});function UO(t){let e=t.info||t.socket,n=Object.create(jO);if(n.id=typeof t.id=="function"?t.id():t.id||(t.info?t.info.id:void 0),n.method=t.method,t.originalUrl)n.url=t.originalUrl;else{let r=t.path;n.url=typeof r=="string"?r:t.url?t.url.path||t.url:void 0}return t.query&&(n.query=t.query),t.params&&(n.params=t.params),n.headers=t.headers,n.remoteAddress=e&&e.remoteAddress,n.remotePort=e&&e.remotePort,n.raw=t.raw||t,n}function Are(t){return{req:UO(t)}}});var qO=k((nNe,VO)=>{"use strict";VO.exports={mapHttpResponse:Ore,resSerializer:HO};var ph=Symbol("pino-raw-res-ref"),BO=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[ph]},set:function(t){this[ph]=t}}});Object.defineProperty(BO,ph,{writable:!0,value:{}});function HO(t){let e=Object.create(BO);return e.statusCode=t.headersSent?t.statusCode:null,e.headers=t.getHeaders?t.getHeaders():t._headers,e.raw=t,e}function Ore(t){return{res:HO(t)}}});var dh=k((rNe,zO)=>{"use strict";var fh=PO(),Nre=FO(),l8=$O(),s8=qO();zO.exports={err:fh,errWithCause:Nre,mapHttpRequest:l8.mapHttpRequest,mapHttpResponse:s8.mapHttpResponse,req:l8.reqSerializer,res:s8.resSerializer,wrapErrorSerializer:function(e){return e===fh?e:function(r){return e(fh(r))}},wrapRequestSerializer:function(e){return e===l8.reqSerializer?e:function(r){return e(l8.reqSerializer(r))}},wrapResponseSerializer:function(e){return e===s8.resSerializer?e:function(r){return e(s8.resSerializer(r))}}}});var hh=k((iNe,GO)=>{"use strict";function Cre(t,e){return e}GO.exports=function(){let e=Error.prepareStackTrace;Error.prepareStackTrace=Cre;let n=new Error().stack;if(Error.prepareStackTrace=e,!Array.isArray(n))return;let r=n.slice(2),i=[];for(let l of r)l&&i.push(l.getFileName());return i}});var KO=k((lNe,JO)=>{"use strict";JO.exports=Rre;function Rre(t={}){let{ERR_PATHS_MUST_BE_STRINGS:e=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:n=r=>`fast-redact \u2013 Invalid path (${r})`}=t;return function({paths:i}){i.forEach(l=>{if(typeof l!="string")throw Error(e());try{if(/〇/.test(l))throw Error();let s=(l[0]==="["?"":".")+l.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").replace(/\[\*\]/g,"[\u3007]");if(/\n|\r|;/.test(s)||/\/\*/.test(s))throw Error();Function(`
+`+l),t.push(i+"m+"+z6.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Bte()+e+" "+t[0]}function Bte(){return Ti.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Hte(...t){return process.stderr.write(q6.format(...t)+`
+`)}function Vte(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function qte(){return process.env.DEBUG}function zte(t){t.inspectOpts={};let e=Object.keys(Ti.inspectOpts);for(let n=0;ne.trim()).join(" ")};GA.O=function(t){return this.inspectOpts.colors=this.useColors,q6.inspect(t,this.inspectOpts)}});var G6=k((WOe,Ud)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ud.exports=BA():Ud.exports=JA()});var KA=k((YOe,Bd)=>{"use strict";var Gte=Id(),Jte=require("events").EventEmitter,Kte=require("util").inherits,pi=G6()("avvio"),{AVV_ERR_READY_TIMEOUT:Xte}=Dd(),Md=Symbol.for("plugin-meta");function Wte(t,e){return t[Md]&&t[Md].name?t[Md].name:typeof e<"u"&&typeof e!="function"&&e.name?e.name:t.name?t.name:t.toString().split(`
+`).slice(0,2).map(n=>n.trim()).join(" -- ")}function Yte(){let t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}function Vu(t,e,n,r,i){this.started=!1,this.func=e,this.opts=n,this.onFinish=null,this.parent=t,this.timeout=i===void 0?t._timeout:i,this.name=Wte(e,n),this.isAfter=r,this.q=Gte(t,Qte,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}Kte(Vu,Jte);Vu.prototype.exec=function(t,e){let n=this.func,r=!1,i=this.name;if(this.parent._error&&!this.isAfter){pi("skipping loading of plugin as parent errored and it is not an after",i),process.nextTick(e);return}if(this.isAfter)this.server=t;else try{this.server=this.parent.override(t,n,this.opts)}catch(o){return pi("override errored",i),e(o)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,pi("exec",i);let l,s=o=>{if(r){pi("loading complete",i);return}this._error=o,pi(o?"exec errored":"exec completed",i),r=!0,l&&clearTimeout(l),e(o)};this.timeout>0&&(pi("setting up timeout",i,this.timeout),l=setTimeout(function(){pi("timed out",i),l=null;let o=new Xte(i);o.fn=n,s(o)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());let a=n(this.server,this.opts,s);a&&typeof a.then=="function"&&(pi("exec: resolving promise",i),a.then(()=>process.nextTick(s),o=>process.nextTick(s,o)))};Vu.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();let t=()=>{this.server.after((n,r)=>{this._error=n,this.q.pause(),n?(pi("rejecting promise",this.name,n),this._promise.reject(n)):(pi("resolving promise",this.name),this._promise.resolve()),this._promise=null,process.nextTick(r,n)}),this.q.resume()},e;return this._promise?e=Promise.resolve():(this._promise=Yte(),e=this._promise.promise,this.server?t():this.on("start",t)),e};Vu.prototype.enqueue=function(t,e){pi("enqueue",this.name,t.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(t,e)};Vu.prototype.finish=function(t,e){pi("finish",this.name,t);let n=()=>{this.loaded||(pi("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,e(t))};if(t){this._promise&&(this._promise.reject(t),this._promise=null),n();return}let r=()=>{if(pi("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){let i=()=>{pi("wrap"),queueMicrotask(r)};this._promise.resolve(),this._promise.promise.then(i,i),this._promise=null}else n();else pi("delayed",this.name),this.q.drain=()=>{pi("drain",this.name),this.q.drain=Zte,queueMicrotask(r)}};queueMicrotask(r),this.q.resume()};function Qte(t,e){let n=this;process.nextTick($d.bind(n),t,e)}function $d(t,e){if(typeof t.func.then=="function"){t.func.then(r=>{typeof r.default=="function"&&(r=r.default),t.func=r,$d.call(this,t,e)},e);return}let n=this._current[0];this._current.unshift(t),t.exec(n&&n.server||this._server,r=>{t.finish(r,i=>{this._current.shift(),e(i)})})}function Zte(){}Bd.exports=Vu;Bd.exports.loadPlugin=$d});var ZA=k((QOe,Gd)=>{"use strict";var XA=Id(),ene=require("events").EventEmitter,tne=require("util").inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Hd,AVV_ERR_CALLBACK_NOT_FN:r4,AVV_ERR_PLUGIN_NOT_VALID:nne,AVV_ERR_ROOT_PLG_BOOTED:rne,AVV_ERR_READY_TIMEOUT:ine}=Dd(),lne=jA(),zd=KA(),qu=G6()("avvio"),J6=Symbol("kAvvio"),Vd=Symbol("kThenifyDoNotWrap");function sne(t,e,n){let r=e.expose||{},i=r.use||"use",l=r.after||"after",s=r.ready||"ready",a=r.onClose||"onClose",o=r.close||"close";if(t[i])throw new Hd(i);if(t[l])throw new Hd(l);if(t[s])throw new Hd(s);t[i]=function(u,c){return n.use(u,c),this},Object.defineProperty(t,"then",{get:YA.bind(n)}),t[J6]=!0,t[l]=function(u){return typeof u!="function"?n._loadRegistered():(n.after(qd(u,this)),this)},t[s]=function(u){if(u&&typeof u!="function")throw new r4(s,typeof u);return n.ready(u?qd(u,this):void 0)},t[a]=function(u){if(typeof u!="function")throw new r4(a,typeof u);return n.onClose(pne(u,this)),this},t[o]=function(u){if(u&&typeof u!="function")throw new r4(o,typeof u);return u?(n.close(qd(u,this)),this):n.close()}}function fi(t,e,n){if(typeof t=="function"&&arguments.length===1&&(n=t,e={},t=null),typeof e=="function"&&(n=e,e={}),e=e||{},!(this instanceof fi)){let r=new fi(t,e,n);return t&&sne(t,e,r),r}e.autostart!==!1&&(e.autostart=!0),t=t||this,this._timeout=Number(e.timeout)||0,this._server=t,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new lne,this._readyQ=XA(this,QA,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=WA},this._closeQ=XA(this,cne,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=WA},this._doStart=null,this._root=new zd(this,ane.bind(this),e,!1,0),this._root.once("start",(r,i,l)=>{let s=this.pluginTree.start(null,i,l);this._root.once("loaded",(a,o,u)=>{this.pluginTree.stop(s,u)})}),zd.loadPlugin.call(this,this._root,r=>{qu("root plugin ready");try{this.emit("preReady"),this._root=null}catch(i){r=r||this._error||i}if(r){if(this._error=r,this._readyQ.length()===0)throw r}else this.booted=!0;this._readyQ.resume()})}function ane(t,e,n){this._doStart=n,e.autostart&&this.start()}tne(fi,ene);fi.prototype.start=function(){return this.started=!0,process.nextTick(this._doStart),this};fi.prototype.override=function(t,e,n){return t};function one(t){if(t&&typeof t=="object"&&typeof t.default=="function"&&(t=t.default),!(t&&(typeof t=="function"||typeof t.then=="function")))throw new nne(typeof t);return t}fi.prototype[J6]=!0;fi.prototype.use=function(t,e){return this._lastUsed=this._addPlugin(t,e,!1),this};fi.prototype._loadRegistered=function(){let t=this._current[0];return!this.started&&!this.booted&&process.nextTick(()=>this._root.q.resume()),t?t.loadedSoFar():Promise.resolve()};Object.defineProperty(fi.prototype,"then",{get:YA});fi.prototype._addPlugin=function(t,e,n){if(t=one(t),e=e||{},this.booted)throw new rne;let r=this._current[0],i=new zd(this,t,e,n);if(i.once("start",(l,s,a)=>{let o=this.pluginTree.start(r.name,s,a);i.once("loaded",(u,c,f)=>{this.pluginTree.stop(o,f)})}),r.loaded)throw new Error(i.name,r.name);return r.enqueue(i,l=>{l&&(this._error=l)}),i};fi.prototype.after=function(t){if(!t)return this._loadRegistered();this._addPlugin(e.bind(this),{},!0);function e(n,r,i){QA.call(this,t,i)}return this};fi.prototype.onClose=function(t){if(typeof t!="function")throw new Error("not a function");t[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(t,e.bind(this));function e(n){n&&(this._error=n)}return this};fi.prototype.close=function(t){let e;if(t){if(typeof t!="function")throw new r4("close",typeof t)}else e=new Promise(function(n,r){t=function(i){if(i)return r(i);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(t),process.nextTick(this._closeQ.resume.bind(this._closeQ))}),e};fi.prototype.ready=function(t){if(t){if(typeof t!="function")throw new r4("ready",typeof t);this._readyQ.push(t),queueMicrotask(this.start.bind(this));return}return new Promise((e,n)=>{this._readyQ.push(i),this.start();let r=this._current[0].server;function i(l,s,a){l?n(l):e(r),process.nextTick(a)}})};fi.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};fi.prototype.toJSON=function(){return this.pluginTree.toJSON()};function WA(){}function YA(){if(this.booted){qu("thenify returning null because we are already booted");return}if(this[Vd]){this[Vd]=!1;return}return qu("thenify"),(t,e)=>this._loadRegistered().then(()=>(this[Vd]=!0,t(this._server)),e)}function QA(t,e){let n=this._server,r=this._error,i;if(this._error=null,t.length===0)this._error=r,i=t(),i&&!i[J6]&&typeof i.then=="function"?i.then(()=>process.nextTick(e),l=>process.nextTick(e,l)):process.nextTick(e);else if(t.length===1)i=t(r),i&&!i[J6]&&typeof i.then=="function"?i.then(()=>process.nextTick(e),l=>process.nextTick(e,l)):process.nextTick(e);else if(this._timeout===0){let l=s=>{this._error=s,e(this._error)};t.length===2?t(r,l):t(r,n,l)}else une.call(this,t,r,n,e)}function une(t,e,n,r){let i=t.name;qu("setting up ready timeout",i,this._timeout);let l=setTimeout(()=>{qu("timed out",i),l=null;let a=new ine(i);a.fn=t,this._error=a,r(a)},this._timeout);t.length===2?t(e,s.bind(this)):t(e,n,s.bind(this));function s(a){l&&(clearTimeout(l),this._error=a,r(this._error))}}function cne(t,e){let n=this._server,r=t[this._isOnCloseHandlerKey];if(t.length===0||t.length===1){let i;r?i=t(n):i=t(this._error),i&&typeof i.then=="function"?(qu("resolving close/onClose promise"),i.then(()=>process.nextTick(e),l=>process.nextTick(e,l))):process.nextTick(e)}else t.length===2?t(r?n:this._error,e):r?t(n,e):t(this._error,n,e)}function pne(t,e){return n.bind(e);function n(r,i){let l;t.length===0?(l=t(),l&&l.then?l.then(function(){process.nextTick(i)},i):process.nextTick(i)):t.length===1?(l=t(this),l&&l.then?l.then(function(){process.nextTick(i)},i):process.nextTick(i)):t(this,i)}}function qd(t,e){return n.bind(e);function n(r,i){let l;t?t.length===0?(l=t(),l&&l.then?l.then(function(){process.nextTick(i,r)},i):process.nextTick(i,r)):t.length===1?(l=t(r),l&&l.then?l.then(function(){process.nextTick(i)},i):process.nextTick(i)):t.length===2?t(r,i):t(r,this,i):process.nextTick(i)}}Gd.exports=fi;Gd.exports.express=function(t){return fi(t,{expose:{use:"load"}})}});var di=k((ZOe,eO)=>{"use strict";var fne={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"),kGenReqId:Symbol("fastify.genReqId"),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"),kRequestPayloadStream:Symbol("fastify.RequestPayloadStream"),kRequestAcceptVersion:Symbol("fastify.RequestAcceptVersion"),kRequestCacheValidateFns:Symbol("fastify.request.cache.validateFns"),kRequestOriginalUrl:Symbol("fastify.request.originalUrl"),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"),kReplyCacheSerializeFns:Symbol("fastify.reply.cache.serializeFns"),kTestInternals:Symbol("fastify.testInternals"),kErrorHandler:Symbol("fastify.errorHandler"),kChildLoggerFactory:Symbol("fastify.childLoggerFactory"),kHasBeenDecorated:Symbol("fastify.hasBeenDecorated"),kKeepAliveConnections:Symbol("fastify.keepAliveConnections"),kRouteByFastify:Symbol("fastify.routeByFastify")};eO.exports=fne});var nO=k((eNe,K6)=>{"use strict";var{format:Jd}=require("node:util");function dne(t){return tO({...t,name:"DeprecationWarning"})}function tO({name:t,code:e,message:n,unlimited:r=!1}={}){if(!t)throw new Error("Warning name must not be empty");if(!e)throw new Error("Warning code must not be empty");if(!n)throw new Error("Warning message must not be empty");if(typeof r!="boolean")throw new Error("Warning opts.unlimited must be a boolean");e=e.toUpperCase();let i={[t]:function(s,a,o){l.emitted===!0&&l.unlimited!==!0||(l.emitted=!0,process.emitWarning(l.format(s,a,o),l.name,l.code))}};r&&(i={[t]:function(s,a,o){l.emitted=!0,process.emitWarning(l.format(s,a,o),l.name,l.code)}});let l=i[t];return l.emitted=!1,l.message=n,l.unlimited=r,l.code=e,l.format=function(s,a,o){let u;return s&&a&&o?u=Jd(n,s,a,o):s&&a?u=Jd(n,s,a):s?u=Jd(n,s):u=n,u},l}var Kd={createWarning:tO,createDeprecation:dne};K6.exports=Kd;K6.exports.default=Kd;K6.exports.processWarning=Kd});var Fa=k((tNe,iO)=>{"use strict";var{createDeprecation:ji,createWarning:rO}=nO(),hne=ji({code:"FSTDEP005",message:'You are accessing the deprecated "request.connection" property. Use "request.socket" instead.'}),mne=ji({code:"FSTDEP006",message:"You are decorating Request/Reply with a reference type. This reference is shared amongst all requests. Use onRequest hook instead. Property: %s"}),yne=ji({code:"FSTDEP007",message:'You are trying to set a HEAD route using "exposeHeadRoute" route flag when a sibling route is already set. See documentation for more info.'}),gne=ji({code:"FSTDEP008",message:'You are using route constraints via the route { version: "..." } option, use { constraints: { version: "..." } } option instead.'}),vne=ji({code:"FSTDEP009",message:'You are using a custom route versioning strategy via the server { versioning: "..." } option, use { constraints: { version: "..." } } option instead.'}),_ne=ji({code:"FSTDEP010",message:'Modifying the "reply.sent" property is deprecated. Use the "reply.hijack()" method instead.'}),Ene=ji({code:"FSTDEP011",message:'Variadic listen method is deprecated. Please use ".listen(optionsObject)" instead. The variadic signature will be removed in `fastify@5`.'}),bne=ji({code:"FSTDEP012",message:'request.context property access is deprecated. Please use "request.routeOptions.config" or "request.routeOptions.schema" instead for accessing Route settings. The "request.context" will be removed in `fastify@5`.'}),wne=ji({code:"FSTDEP013",message:'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`.'}),Sne=ji({code:"FSTDEP014",message:"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."}),Tne=ji({code:"FSTDEP015",message:'You are accessing the deprecated "request.routeSchema" property. Use "request.routeOptions.schema" instead. Property "req.routeSchema" will be removed in `fastify@5`.'}),xne=ji({code:"FSTDEP016",message:'You are accessing the deprecated "request.routeConfig" property. Use "request.routeOptions.config" instead. Property "req.routeConfig" will be removed in `fastify@5`.'}),Ane=ji({code:"FSTDEP017",message:'You are accessing the deprecated "request.routerPath" property. Use "request.routeOptions.url" instead. Property "req.routerPath" will be removed in `fastify@5`.'}),One=ji({code:"FSTDEP018",message:'You are accessing the deprecated "request.routerMethod" property. Use "request.routeOptions.method" instead. Property "req.routerMethod" will be removed in `fastify@5`.'}),Nne=ji({code:"FSTDEP019",message:'reply.context property access is deprecated. Please use "request.routeOptions.config" or "request.routeOptions.schema" instead for accessing Route settings. The "reply.context" will be removed in `fastify@5`.'}),Cne=ji({code:"FSTDEP020",message:'You are using the deprecated "reply.getResponseTime()"" method. Use the "request.elapsedTime" property instead. Method "reply.getResponseTime()" will be removed in `fastify@5`.'}),Rne=rO({name:"FastifyWarning",code:"FSTWRN001",message:"The %s schema for %s: %s is missing. This may indicate the schema is not well specified.",unlimited:!0}),Ine=rO({name:"FastifyWarning",code:"FSTWRN002",message:"The %s plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`",unlimited:!0});iO.exports={FSTDEP005:hne,FSTDEP006:mne,FSTDEP007:yne,FSTDEP008:gne,FSTDEP009:vne,FSTDEP010:_ne,FSTDEP011:Ene,FSTDEP012:bne,FSTDEP013:wne,FSTDEP014:Sne,FSTDEP015:Tne,FSTDEP016:xne,FSTDEP017:Ane,FSTDEP018:One,FSTDEP019:Nne,FSTDEP020:Cne,FSTWRN001:Rne,FSTWRN002:Ine}});var lO=k((nNe,X6)=>{"use strict";var{format:kne}=require("node:util");function Dne(){return`${this.name} [${this.code}]: ${this.message}`}function Xd(t,e,n=500,r=Error){if(!t)throw new Error("Fastify error code must not be empty");if(!e)throw new Error("Fastify error message must not be empty");t=t.toUpperCase(),!n&&(n=void 0);function i(...l){if(!new.target)return new i(...l);this.code=t,this.name="FastifyError",this.statusCode=n;let s=l.length-1;s!==-1&&l[s]&&typeof l[s]=="object"&&"cause"in l[s]&&(this.cause=l.pop().cause),this.message=kne(e,...l),Error.stackTraceLimit!==0&&Error.captureStackTrace(this,i)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),i.prototype[Symbol.toStringTag]="Error",i.prototype.toString=Dne,i}X6.exports=Xd;X6.exports.default=Xd;X6.exports.createError=Xd});var Ui=k((rNe,W6)=>{"use strict";var Ce=lO(),zu={FST_ERR_NOT_FOUND:Ce("FST_ERR_NOT_FOUND","Not Found",404),FST_ERR_OPTIONS_NOT_OBJ:Ce("FST_ERR_OPTIONS_NOT_OBJ","Options must be an object",500,TypeError),FST_ERR_QSP_NOT_FN:Ce("FST_ERR_QSP_NOT_FN","querystringParser option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:Ce("FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN","schemaController.bucket option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:Ce("FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN","schemaErrorFormatter option should be a non async function. Instead got '%s'.",500,TypeError),FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:Ce("FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ","ajv.customOptions option should be an object, instead got '%s'",500,TypeError),FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:Ce("FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR","ajv.plugins option should be an array, instead got '%s'",500,TypeError),FST_ERR_VERSION_CONSTRAINT_NOT_STR:Ce("FST_ERR_VERSION_CONSTRAINT_NOT_STR","Version constraint should be a string.",500,TypeError),FST_ERR_VALIDATION:Ce("FST_ERR_VALIDATION","%s",400),FST_ERR_LISTEN_OPTIONS_INVALID:Ce("FST_ERR_LISTEN_OPTIONS_INVALID","Invalid listen options: '%s'",500,TypeError),FST_ERR_CTP_ALREADY_PRESENT:Ce("FST_ERR_CTP_ALREADY_PRESENT","Content type parser '%s' already present."),FST_ERR_CTP_INVALID_TYPE:Ce("FST_ERR_CTP_INVALID_TYPE","The content type should be a string or a RegExp",500,TypeError),FST_ERR_CTP_EMPTY_TYPE:Ce("FST_ERR_CTP_EMPTY_TYPE","The content type cannot be an empty string",500,TypeError),FST_ERR_CTP_INVALID_HANDLER:Ce("FST_ERR_CTP_INVALID_HANDLER","The content type handler should be a function",500,TypeError),FST_ERR_CTP_INVALID_PARSE_TYPE:Ce("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:Ce("FST_ERR_CTP_BODY_TOO_LARGE","Request body is too large",413,RangeError),FST_ERR_CTP_INVALID_MEDIA_TYPE:Ce("FST_ERR_CTP_INVALID_MEDIA_TYPE","Unsupported Media Type: %s",415),FST_ERR_CTP_INVALID_CONTENT_LENGTH:Ce("FST_ERR_CTP_INVALID_CONTENT_LENGTH","Request body size did not match Content-Length",400,RangeError),FST_ERR_CTP_EMPTY_JSON_BODY:Ce("FST_ERR_CTP_EMPTY_JSON_BODY","Body cannot be empty when content-type is set to 'application/json'",400),FST_ERR_CTP_INSTANCE_ALREADY_STARTED:Ce("FST_ERR_CTP_INSTANCE_ALREADY_STARTED",'Cannot call "%s" when fastify instance is already started!',400),FST_ERR_DEC_ALREADY_PRESENT:Ce("FST_ERR_DEC_ALREADY_PRESENT","The decorator '%s' has already been added!"),FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:Ce("FST_ERR_DEC_DEPENDENCY_INVALID_TYPE","The dependencies of decorator '%s' must be of type Array.",500,TypeError),FST_ERR_DEC_MISSING_DEPENDENCY:Ce("FST_ERR_DEC_MISSING_DEPENDENCY","The decorator is missing dependency '%s'."),FST_ERR_DEC_AFTER_START:Ce("FST_ERR_DEC_AFTER_START","The decorator '%s' has been added after start!"),FST_ERR_HOOK_INVALID_TYPE:Ce("FST_ERR_HOOK_INVALID_TYPE","The hook name must be a string",500,TypeError),FST_ERR_HOOK_INVALID_HANDLER:Ce("FST_ERR_HOOK_INVALID_HANDLER","%s hook should be a function, instead got %s",500,TypeError),FST_ERR_HOOK_INVALID_ASYNC_HANDLER:Ce("FST_ERR_HOOK_INVALID_ASYNC_HANDLER","Async function has too many arguments. Async hooks should not use the 'done' argument.",500,TypeError),FST_ERR_HOOK_NOT_SUPPORTED:Ce("FST_ERR_HOOK_NOT_SUPPORTED","%s hook not supported!",500,TypeError),FST_ERR_MISSING_MIDDLEWARE:Ce("FST_ERR_MISSING_MIDDLEWARE","You must register a plugin for handling middlewares, visit fastify.dev/docs/latest/Reference/Middleware/ for more info.",500),FST_ERR_HOOK_TIMEOUT:Ce("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:Ce("FST_ERR_LOG_INVALID_DESTINATION","Cannot specify both logger.stream and logger.file options"),FST_ERR_LOG_INVALID_LOGGER:Ce("FST_ERR_LOG_INVALID_LOGGER","Invalid logger object provided. The logger instance should have these functions(s): '%s'.",500,TypeError),FST_ERR_REP_INVALID_PAYLOAD_TYPE:Ce("FST_ERR_REP_INVALID_PAYLOAD_TYPE","Attempted to send payload of invalid type '%s'. Expected a string or Buffer.",500,TypeError),FST_ERR_REP_RESPONSE_BODY_CONSUMED:Ce("FST_ERR_REP_RESPONSE_BODY_CONSUMED","Response.body is already consumed."),FST_ERR_REP_ALREADY_SENT:Ce("FST_ERR_REP_ALREADY_SENT",'Reply was already sent, did you forget to "return reply" in "%s" (%s)?'),FST_ERR_REP_SENT_VALUE:Ce("FST_ERR_REP_SENT_VALUE","The only possible value for reply.sent is true.",500,TypeError),FST_ERR_SEND_INSIDE_ONERR:Ce("FST_ERR_SEND_INSIDE_ONERR","You cannot use `send` inside the `onError` hook"),FST_ERR_SEND_UNDEFINED_ERR:Ce("FST_ERR_SEND_UNDEFINED_ERR","Undefined error has occurred"),FST_ERR_BAD_STATUS_CODE:Ce("FST_ERR_BAD_STATUS_CODE","Called reply with an invalid status code: %s"),FST_ERR_BAD_TRAILER_NAME:Ce("FST_ERR_BAD_TRAILER_NAME","Called reply.trailer with an invalid header name: %s"),FST_ERR_BAD_TRAILER_VALUE:Ce("FST_ERR_BAD_TRAILER_VALUE","Called reply.trailer('%s', fn) with an invalid type: %s. Expected a function."),FST_ERR_FAILED_ERROR_SERIALIZATION:Ce("FST_ERR_FAILED_ERROR_SERIALIZATION","Failed to serialize an error. Error: %s. Original error: %s"),FST_ERR_MISSING_SERIALIZATION_FN:Ce("FST_ERR_MISSING_SERIALIZATION_FN",'Missing serialization function. Key "%s"'),FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:Ce("FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN",'Missing serialization function. Key "%s:%s"'),FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:Ce("FST_ERR_REQ_INVALID_VALIDATION_INVOCATION",'Invalid validation invocation. Missing validation function for HTTP part "%s" nor schema provided.'),FST_ERR_SCH_MISSING_ID:Ce("FST_ERR_SCH_MISSING_ID","Missing schema $id property"),FST_ERR_SCH_ALREADY_PRESENT:Ce("FST_ERR_SCH_ALREADY_PRESENT","Schema with id '%s' already declared!"),FST_ERR_SCH_CONTENT_MISSING_SCHEMA:Ce("FST_ERR_SCH_CONTENT_MISSING_SCHEMA","Schema is missing for the content type '%s'"),FST_ERR_SCH_DUPLICATE:Ce("FST_ERR_SCH_DUPLICATE","Schema with '%s' already present!"),FST_ERR_SCH_VALIDATION_BUILD:Ce("FST_ERR_SCH_VALIDATION_BUILD","Failed building the validation schema for %s: %s, due to error %s"),FST_ERR_SCH_SERIALIZATION_BUILD:Ce("FST_ERR_SCH_SERIALIZATION_BUILD","Failed building the serialization schema for %s: %s, due to error %s"),FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:Ce("FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX",'response schemas should be nested under a valid status code, e.g { 2xx: { type: "object" } }'),FST_ERR_HTTP2_INVALID_VERSION:Ce("FST_ERR_HTTP2_INVALID_VERSION","HTTP2 is available only from node >= 8.8.1"),FST_ERR_INIT_OPTS_INVALID:Ce("FST_ERR_INIT_OPTS_INVALID","Invalid initialization options: '%s'"),FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:Ce("FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE","Cannot set forceCloseConnections to 'idle' as your HTTP server does not support closeIdleConnections method"),FST_ERR_DUPLICATED_ROUTE:Ce("FST_ERR_DUPLICATED_ROUTE","Method '%s' already declared for route '%s'"),FST_ERR_BAD_URL:Ce("FST_ERR_BAD_URL","'%s' is not a valid url component",400,URIError),FST_ERR_ASYNC_CONSTRAINT:Ce("FST_ERR_ASYNC_CONSTRAINT","Unexpected error from async constraint",500),FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:Ce("FST_ERR_DEFAULT_ROUTE_INVALID_TYPE","The defaultRoute type should be a function",500,TypeError),FST_ERR_INVALID_URL:Ce("FST_ERR_INVALID_URL","URL must be a string. Received '%s'",400,TypeError),FST_ERR_ROUTE_OPTIONS_NOT_OBJ:Ce("FST_ERR_ROUTE_OPTIONS_NOT_OBJ",'Options for "%s:%s" route must be an object',500,TypeError),FST_ERR_ROUTE_DUPLICATED_HANDLER:Ce("FST_ERR_ROUTE_DUPLICATED_HANDLER",'Duplicate handler for "%s:%s" route is not allowed!',500),FST_ERR_ROUTE_HANDLER_NOT_FN:Ce("FST_ERR_ROUTE_HANDLER_NOT_FN","Error Handler for %s:%s route, if defined, must be a function",500,TypeError),FST_ERR_ROUTE_MISSING_HANDLER:Ce("FST_ERR_ROUTE_MISSING_HANDLER",'Missing handler function for "%s:%s" route.',500),FST_ERR_ROUTE_METHOD_INVALID:Ce("FST_ERR_ROUTE_METHOD_INVALID","Provided method is invalid!",500,TypeError),FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:Ce("FST_ERR_ROUTE_METHOD_NOT_SUPPORTED","%s method is not supported.",500),FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:Ce("FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED","Body validation schema for %s:%s route is not supported!",500),FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:Ce("FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT","'bodyLimit' option must be an integer > 0. Got '%s'",500,TypeError),FST_ERR_ROUTE_REWRITE_NOT_STR:Ce("FST_ERR_ROUTE_REWRITE_NOT_STR",'Rewrite url for "%s" needs to be of type "string" but received "%s"',500,TypeError),FST_ERR_REOPENED_CLOSE_SERVER:Ce("FST_ERR_REOPENED_CLOSE_SERVER","Fastify has already been closed and cannot be reopened"),FST_ERR_REOPENED_SERVER:Ce("FST_ERR_REOPENED_SERVER","Fastify is already listening"),FST_ERR_INSTANCE_ALREADY_LISTENING:Ce("FST_ERR_INSTANCE_ALREADY_LISTENING","Fastify instance is already listening. %s"),FST_ERR_PLUGIN_VERSION_MISMATCH:Ce("FST_ERR_PLUGIN_VERSION_MISMATCH","fastify-plugin: %s - expected '%s' fastify version, '%s' is installed"),FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:Ce("FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE","The decorator '%s'%s is not present in %s"),FST_ERR_PLUGIN_CALLBACK_NOT_FN:Ce("FST_ERR_PLUGIN_CALLBACK_NOT_FN","fastify-plugin: %s",500,TypeError),FST_ERR_PLUGIN_NOT_VALID:Ce("FST_ERR_PLUGIN_NOT_VALID","fastify-plugin: %s"),FST_ERR_ROOT_PLG_BOOTED:Ce("FST_ERR_ROOT_PLG_BOOTED","fastify-plugin: %s"),FST_ERR_PARENT_PLUGIN_BOOTED:Ce("FST_ERR_PARENT_PLUGIN_BOOTED","fastify-plugin: %s"),FST_ERR_PLUGIN_TIMEOUT:Ce("FST_ERR_PLUGIN_TIMEOUT","fastify-plugin: %s")};function Pne(t,e){return e.cause=t,e}W6.exports=zu;W6.exports.appendStackTrace=Pne;W6.exports.AVVIO_ERRORS_MAP={AVV_ERR_CALLBACK_NOT_FN:zu.FST_ERR_PLUGIN_CALLBACK_NOT_FN,AVV_ERR_PLUGIN_NOT_VALID:zu.FST_ERR_PLUGIN_NOT_VALID,AVV_ERR_ROOT_PLG_BOOTED:zu.FST_ERR_ROOT_PLG_BOOTED,AVV_ERR_PARENT_PLG_LOADED:zu.FST_ERR_PARENT_PLUGIN_BOOTED,AVV_ERR_READY_TIMEOUT:zu.FST_ERR_PLUGIN_TIMEOUT}});var m2=k((iNe,hO)=>{"use strict";var Lne=["onRoute","onRegister","onReady","onListen","preClose","onClose"],uO=["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError","onRequestAbort"],Fne=uO.concat(Lne),{FST_ERR_HOOK_INVALID_TYPE:jne,FST_ERR_HOOK_INVALID_HANDLER:Une,FST_ERR_SEND_UNDEFINED_ERR:Y6,FST_ERR_HOOK_TIMEOUT:Mne,FST_ERR_HOOK_NOT_SUPPORTED:$ne,AVVIO_ERRORS_MAP:sO,appendStackTrace:aO}=Ui(),{kChildren:i4,kHooks:cO,kRequestPayloadStream:oO}=di();function l4(){this.onRequest=[],this.preParsing=[],this.preValidation=[],this.preSerialization=[],this.preHandler=[],this.onResponse=[],this.onSend=[],this.onError=[],this.onRoute=[],this.onRegister=[],this.onReady=[],this.onListen=[],this.onTimeout=[],this.onRequestAbort=[],this.preClose=[]}l4.prototype=Object.create(null);l4.prototype.validate=function(t,e){if(typeof t!="string")throw new jne;if(Array.isArray(this[t])===!1)throw new $ne(t);if(typeof e!="function")throw new Une(t,Object.prototype.toString.call(e))};l4.prototype.add=function(t,e){this.validate(t,e),this[t].push(e)};function Bne(t){let e=new l4;return e.onRequest=t.onRequest.slice(),e.preParsing=t.preParsing.slice(),e.preValidation=t.preValidation.slice(),e.preSerialization=t.preSerialization.slice(),e.preHandler=t.preHandler.slice(),e.onSend=t.onSend.slice(),e.onResponse=t.onResponse.slice(),e.onError=t.onError.slice(),e.onRoute=t.onRoute.slice(),e.onRegister=t.onRegister.slice(),e.onTimeout=t.onTimeout.slice(),e.onRequestAbort=t.onRequestAbort.slice(),e.onReady=[],e.onListen=[],e.preClose=[],e}function pO(t,e,n,r){let i=n[cO][t],l=0,s=0;o();function a(c){if(c){c.code==="AVV_ERR_READY_TIMEOUT"?c=aO(c,new Mne(t)):c=sO[c.code]!=null?aO(c,new sO[c.code](c.message)):c,r(c);return}r()}function o(c){if(c){a(c);return}if(l===i.length&&s===n[i4].length){l===0&&s===0?a():e(function(m,d){a(m),d(m)});return}if(l===i.length&&s{"use strict";var Yne=require("node:http"),Qne=require("node:https"),Zne=require("node:dns"),{FSTDEP011:mO}=Fa(),{kState:Mi,kOptions:ere,kServerBindings:tre}=di(),{onListenHookRunner:Q6}=m2(),{FST_ERR_HTTP2_INVALID_VERSION:nre,FST_ERR_REOPENED_CLOSE_SERVER:vO,FST_ERR_REOPENED_SERVER:_O,FST_ERR_LISTEN_OPTIONS_INVALID:rre}=Ui();Yd.exports.createServer=ire;Yd.exports.compileValidateHTTPVersion=sre;function EO(t){return`Server listening at ${t}`}function ire(t,e){let n=wO(t,e);function r(i,...l){let s=l.slice(-1).pop(),a=Object.prototype.toString.call(arguments[0]);if(arguments.length===0)i=Wd([]);else if(arguments.length>0&&a!=="[object Object]"&&a!=="[object Function]")mO(),i=Wd(Array.from(arguments)),s=i.cb;else if(l.length>1){mO();let u=i.path?[i.path]:[i.port??0,i.host??"localhost"];Object.assign(i,Wd([...u,...l]))}else i.cb=s;if(i.signal){if(typeof i.signal.on!="function"&&typeof i.signal.addEventListener!="function")throw new rre("Invalid options.signal");if(i.signal.aborted)this.close();else{let u=()=>{this.close()};i.signal.addEventListener("abort",u,{once:!0})}}let o;if(i.path==null?o=i.host??"localhost":o=i.host,Object.prototype.hasOwnProperty.call(i,"host")===!1&&(i.host=o),o==="localhost"?i.cb=(u,c)=>{if(u){s(u,c);return}yO.call(this,n,e,t,i,()=>{this[Mi].listening=!0,s(null,c),Q6(this)})}:i.cb=(u,c)=>{if(u){s(u,c);return}this[Mi].listening=!0,s(null,c),Q6(this)},s===void 0)return lre.call(this,n,i).then(c=>new Promise((f,m)=>{o==="localhost"?yO.call(this,n,e,t,i,()=>{this[Mi].listening=!0,f(c),Q6(this)}):(f(c),Q6(this))}));this.ready(bO.call(this,n,i))}return{server:n,listen:r}}function yO(t,e,n,r,i){this[Mi].listening=!1,Zne.lookup(r.host,{all:!0},(l,s)=>{if(l){i();return}let a=t.listening&&n.serverFactory,o=0,u=0;if(!a){let f=t.address();for(let m of s)if(m.address!==f.address){o++;let d=Object.assign({},r,{host:m.address,port:f.port,cb:S=>{u++,S||this[tre].push(y),u===o&&i()}}),y=wO(n,e),_=()=>{y.close(()=>{}),n.forceCloseConnections==="idle"?y.closeIdleConnections():typeof y.closeAllConnections=="function"&&n.forceCloseConnections&&y.closeAllConnections()};y.on("upgrade",t.emit.bind(t,"upgrade")),t.on("unref",_),t.on("close",_),t.on("error",_),this[Mi].listening=!1,bO.call(this,y,d)()}}if(o===0){i();return}let c=t.unref;t.unref=function(){c.call(t),t.emit("unref")}})}function bO(t,e){let n=r=>{if(t.removeListener("error",n),r)this[Mi].listening=!1,e.cb(r,null);else{let i=SO.call(this,t,e.listenTextResolver||EO);e.cb(null,i)}};return r=>{if(r!=null)return e.cb(r);if(this[Mi].listening&&this[Mi].closing)return e.cb(new vO,null);if(this[Mi].listening)return e.cb(new _O,null);t.once("error",n),this[Mi].closing||(t.listen(e,n),this[Mi].listening=!0)}}function lre(t,e){return this[Mi].listening&&this[Mi].closing?Promise.reject(new vO):this[Mi].listening?Promise.reject(new _O):this.ready().then(()=>{let n,r=new Promise((l,s)=>{n=a=>{this[Mi].listening=!1,s(a)},t.once("error",n)}),i=new Promise((l,s)=>{t.listen(e,()=>{t.removeListener("error",n),l(SO.call(this,t,e.listenTextResolver||EO))}),this[Mi].listening=!0});return Promise.race([r,i])})}function sre(t){let e=!1,n=new Map;return t.serverFactory&&(e=!0),t.http2?(n.set("2.0",!0),t.https&&t.https.allowHTTP1===!0&&(n.set("1.1",!0),n.set("1.0",!0))):(n.set("1.1",!0),n.set("1.0",!0)),function(i){return e||n.has(i)}}function wO(t,e){let n=null,r=t.https===!0?{}:t.https;return t.serverFactory?n=t.serverFactory(e,t):t.http2?(typeof r=="object"?n=gO().createSecureServer(r,e):n=gO().createServer(e),n.on("session",ore(t.http2SessionTimeout))):(r?n=Qne.createServer(r,e):n=Yne.createServer(t.http,e),n.keepAliveTimeout=t.keepAliveTimeout,n.requestTimeout=t.requestTimeout,t.maxRequestsPerSocket>0&&(n.maxRequestsPerSocket=t.maxRequestsPerSocket)),t.serverFactory||n.setTimeout(t.connectionTimeout),n}function Wd(t){if(t.length===0)return{port:0,host:"localhost"};let n={cb:typeof t[t.length-1]=="function"?t.pop():void 0},r=t[0],i=t.length,l=t[i-1];return typeof r=="string"&&isNaN(r)?(n.path=r,n.backlog=i>1?l:void 0):(n.port=i>=1&&Number.isInteger(r)?r:are(r),n.host=i>=2&&t[1]?t[1]:"localhost",n.backlog=i>=3?t[2]:void 0),n}function are(t){let e=Number(t);return e>=0&&!Number.isNaN(e)&&Number.isInteger(e)?e:0}function SO(t,e){let n=t.address(),r=typeof n=="string";r||(n.address.indexOf(":")===-1?n=n.address+":"+n.port:n="["+n.address+"]:"+n.port),n=(r?"":"http"+(this[ere].https?"s":"")+"://")+n;let i=e(n);return this.log.info(i),n}function gO(){try{return require("node:http2")}catch{throw new nre}}function ore(t){return function(e){e.setTimeout(t,ure)}}function ure(){this.close()}});var th=k((sNe,AO)=>{"use strict";var{kSchemaHeaders:t8,kSchemaParams:Qd,kSchemaQuerystring:Zd,kSchemaBody:eh,kSchemaResponse:xO}=di(),cre=/^[1-5]{1}[0-9]{2}$|^[1-5]xx$|^default$/,{FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:pre}=Ui(),{FSTWRN001:Z6}=Fa();function fre(t,e){if(!t.schema||!t.schema.response)return;let{method:n,url:r}=t.config||{};t[xO]=Object.keys(t.schema.response).reduce(function(i,l){let s=t.schema.response[l];if(l=l.toLowerCase(),!cre.exec(l))throw new pre;if(s.content){let a={};for(let o of Object.keys(s.content)){let u=s.content[o].schema;a[o]=e({schema:u,url:r,method:n,httpStatus:l,contentType:o})}i[l]=a}else i[l]=e({schema:s,url:r,method:n,httpStatus:l});return i},{})}function dre(t,e,n){let{schema:r}=t;if(!r)return;let{method:i,url:l}=t.config||{},s=r.headers;if(s&&(n||Object.getPrototypeOf(s)!==Object.prototype))t[t8]=e({schema:s,method:i,url:l,httpPart:"headers"});else if(s){let a={};Object.keys(s).forEach(o=>{a[o]=s[o]}),a.required instanceof Array&&(a.required=a.required.map(o=>o.toLowerCase())),s.properties&&(a.properties={},Object.keys(s.properties).forEach(o=>{a.properties[o.toLowerCase()]=s.properties[o]})),t[t8]=e({schema:a,method:i,url:l,httpPart:"headers"})}else Object.prototype.hasOwnProperty.call(r,"headers")&&Z6("headers",i,l);r.body?t[eh]=e({schema:r.body,method:i,url:l,httpPart:"body"}):Object.prototype.hasOwnProperty.call(r,"body")&&Z6("body",i,l),r.querystring?t[Zd]=e({schema:r.querystring,method:i,url:l,httpPart:"querystring"}):Object.prototype.hasOwnProperty.call(r,"querystring")&&Z6("querystring",i,l),r.params?t[Qd]=e({schema:r.params,method:i,url:l,httpPart:"params"}):Object.prototype.hasOwnProperty.call(r,"params")&&Z6("params",i,l)}function e8(t,e,n){let r=e[n]===void 0,i=t&&t(r?null:e[n]);if(i?.then)return i.then(s=>l(s)).catch(s=>s);return l(i);function l(s){return s===!1?t.errors:s&&s.error?s.error:(s&&s.value&&(e[n]=s.value),!1)}}function n8(t,e,n){let r=n===void 0;if(r||!n.skipParams){let l=e8(t[Qd],e,"params");if(l)return typeof l.then!="function"?y2(l,"params",t.schemaErrorFormatter):hre(l,t,e)}if(r||!n.skipBody){let l=e8(t[eh],e,"body");if(l)return typeof l.then!="function"?y2(l,"body",t.schemaErrorFormatter):mre(l,t,e)}if(r||!n.skipQuery){let l=e8(t[Zd],e,"query");if(l)return typeof l.then!="function"?y2(l,"querystring",t.schemaErrorFormatter):yre(l,t,e)}let i=e8(t[t8],e,"headers");return i?typeof i.then!="function"?y2(i,"headers",t.schemaErrorFormatter):gre(i,t,e):!1}function hre(t,e,n){return t.then(r=>r?y2(r,"params",e.schemaErrorFormatter):n8(e,n,{skipParams:!0}))}function mre(t,e,n){return t.then(r=>r?y2(r,"body",e.schemaErrorFormatter):n8(e,n,{skipParams:!0,skipBody:!0}))}function yre(t,e,n){return t.then(r=>r?y2(r,"querystring",e.schemaErrorFormatter):n8(e,n,{skipParams:!0,skipBody:!0,skipQuery:!0}))}function gre(t,e,n){return t.then(r=>r?y2(r,"headers",e.schemaErrorFormatter):!1)}function y2(t,e,n){if(t instanceof Error)return t.statusCode=t.statusCode||400,t.code=t.code||"FST_ERR_VALIDATION",t.validationContext=t.validationContext||e,t;let r=n(t,e);return r.statusCode=r.statusCode||400,r.code=r.code||"FST_ERR_VALIDATION",r.validation=t,r.validationContext=e,r}AO.exports={symbols:{bodySchema:eh,querystringSchema:Zd,responseSchema:xO,paramsSchema:Qd,headersSchema:t8},compileSchemasForValidation:dre,compileSchemasForSerialization:fre,validate:n8}});var nh=k((aNe,NO)=>{"use strict";var{kReplyIsError:OO,kReplyHijacked:vre}=di();function _re(t,e){t.then(function(n){if(e[vre]!==!0&&(n!==void 0||e.sent===!1&&e.raw.headersSent===!1&&e.request.raw.aborted===!1))try{e.send(n)}catch(r){e[OO]=!0,e.send(r)}},function(n){if(e.sent===!0){e.log.error({err:n},"Promise errored, but reply.sent = true was set");return}e[OO]=!0;try{e.send(n)}catch(r){e.send(r)}})}NO.exports=_re});var sh=k((oNe,lh)=>{"use strict";var{validate:Ere}=th(),{preValidationHookRunner:bre,preHandlerHookRunner:wre}=m2(),Sre=nh(),{kReplyIsError:r8,kRouteContext:v2}=di();function Tre(t,e,n){if(n.sent===!0)return;if(t!=null){n[r8]=!0,n.send(t);return}let r=e.raw.method,i=e.headers,l=e[v2];if(r==="GET"||r==="HEAD"){g2(e,n);return}let s=i["content-type"];if(r==="POST"||r==="PUT"||r==="PATCH"||r==="TRACE"||r==="SEARCH"){s===void 0?i["transfer-encoding"]===void 0&&(i["content-length"]==="0"||i["content-length"]===void 0)?g2(e,n):l.contentTypeParser.run("",g2,e,n):l.contentTypeParser.run(s,g2,e,n);return}if(r==="OPTIONS"||r==="DELETE"){s!==void 0&&(i["transfer-encoding"]!==void 0||i["content-length"]!==void 0)?l.contentTypeParser.run(s,g2,e,n):g2(e,n);return}g2(e,n)}function g2(t,e){try{t[v2].preValidation!==null?bre(t[v2].preValidation,t,e,rh):rh(null,t,e)}catch(n){rh(n,t,e)}}function rh(t,e,n){if(n.sent===!0)return;if(t!=null){n[r8]=!0,n.send(t);return}let r=Ere(n[v2],e);if(r&&typeof r.then=="function"||!1){let l=CO.bind(null,e,n);r.then(l,l)}else CO(e,n,r)}function CO(t,e,n){if(n){if(e[v2].attachValidation===!1){e.send(n);return}e.request.validationError=n}t[v2].preHandler!==null?wre(t[v2].preHandler,t,e,ih):ih(null,t,e)}function ih(t,e,n){if(n.sent)return;if(t!=null){n[r8]=!0,n.send(t);return}let r;try{r=e[v2].handler(e,n)}catch(i){n[r8]=!0,n.send(i);return}r!==void 0&&(r!==null&&typeof r.then=="function"?Sre(r,n):n.send(r))}lh.exports=Tre;lh.exports[Symbol.for("internals")]={handler:g2,preHandlerCallback:ih}});var IO=k((uNe,RO)=>{"use strict";function Ju(){}var xre={fatal:Ju,error:Ju,warn:Ju,info:Ju,debug:Ju,trace:Ju};Object.defineProperty(RO,"exports",{get(){return Object.create(xre)}})});var oh=k((cNe,PO)=>{"use strict";var a4=t=>t&&typeof t.message=="string",ah=t=>{if(!t)return;let e=t.cause;if(typeof e=="function"){let n=t.cause();return a4(n)?n:void 0}else return a4(e)?e:void 0},kO=(t,e)=>{if(!a4(t))return"";let n=t.stack||"";if(e.has(t))return n+`
+causes have become circular...`;let r=ah(t);return r?(e.add(t),n+`
+caused by: `+kO(r,e)):n},Are=t=>kO(t,new Set),DO=(t,e,n)=>{if(!a4(t))return"";let r=n?"":t.message||"";if(e.has(t))return r+": ...";let i=ah(t);if(i){e.add(t);let l=typeof t.cause=="function";return r+(l?"":": ")+DO(i,e,l)}else return r},Ore=t=>DO(t,new Set);PO.exports={isErrorLike:a4,getErrorCause:ah,stackWithCauses:Are,messageWithCauses:Ore}});var uh=k((pNe,FO)=>{"use strict";var Nre=Symbol("circular-ref-tag"),i8=Symbol("pino-raw-err-ref"),LO=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},aggregateErrors:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[i8]},set:function(t){this[i8]=t}}});Object.defineProperty(LO,i8,{writable:!0,value:{}});FO.exports={pinoErrProto:LO,pinoErrorSymbols:{seen:Nre,rawSymbol:i8}}});var MO=k((fNe,UO)=>{"use strict";UO.exports=ph;var{messageWithCauses:Cre,stackWithCauses:Rre,isErrorLike:jO}=oh(),{pinoErrProto:Ire,pinoErrorSymbols:kre}=uh(),{seen:ch}=kre,{toString:Dre}=Object.prototype;function ph(t){if(!jO(t))return t;t[ch]=void 0;let e=Object.create(Ire);e.type=Dre.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=Cre(t),e.stack=Rre(t),Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(n=>ph(n)));for(let n in t)if(e[n]===void 0){let r=t[n];jO(r)?n!=="cause"&&!Object.prototype.hasOwnProperty.call(r,ch)&&(e[n]=ph(r)):e[n]=r}return delete t[ch],e.raw=t,e}});var BO=k((dNe,$O)=>{"use strict";$O.exports=s8;var{isErrorLike:fh}=oh(),{pinoErrProto:Pre,pinoErrorSymbols:Lre}=uh(),{seen:l8}=Lre,{toString:Fre}=Object.prototype;function s8(t){if(!fh(t))return t;t[l8]=void 0;let e=Object.create(Pre);e.type=Fre.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=t.message,e.stack=t.stack,Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(n=>s8(n))),fh(t.cause)&&!Object.prototype.hasOwnProperty.call(t.cause,l8)&&(e.cause=s8(t.cause));for(let n in t)if(e[n]===void 0){let r=t[n];fh(r)?Object.prototype.hasOwnProperty.call(r,l8)||(e[n]=s8(r)):e[n]=r}return delete t[l8],e.raw=t,e}});var zO=k((hNe,qO)=>{"use strict";qO.exports={mapHttpRequest:jre,reqSerializer:VO};var dh=Symbol("pino-raw-req-ref"),HO=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[dh]},set:function(t){this[dh]=t}}});Object.defineProperty(HO,dh,{writable:!0,value:{}});function VO(t){let e=t.info||t.socket,n=Object.create(HO);if(n.id=typeof t.id=="function"?t.id():t.id||(t.info?t.info.id:void 0),n.method=t.method,t.originalUrl)n.url=t.originalUrl;else{let r=t.path;n.url=typeof r=="string"?r:t.url?t.url.path||t.url:void 0}return t.query&&(n.query=t.query),t.params&&(n.params=t.params),n.headers=t.headers,n.remoteAddress=e&&e.remoteAddress,n.remotePort=e&&e.remotePort,n.raw=t.raw||t,n}function jre(t){return{req:VO(t)}}});var XO=k((mNe,KO)=>{"use strict";KO.exports={mapHttpResponse:Ure,resSerializer:JO};var hh=Symbol("pino-raw-res-ref"),GO=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[hh]},set:function(t){this[hh]=t}}});Object.defineProperty(GO,hh,{writable:!0,value:{}});function JO(t){let e=Object.create(GO);return e.statusCode=t.headersSent?t.statusCode:null,e.headers=t.getHeaders?t.getHeaders():t._headers,e.raw=t,e}function Ure(t){return{res:JO(t)}}});var yh=k((yNe,WO)=>{"use strict";var mh=MO(),Mre=BO(),a8=zO(),o8=XO();WO.exports={err:mh,errWithCause:Mre,mapHttpRequest:a8.mapHttpRequest,mapHttpResponse:o8.mapHttpResponse,req:a8.reqSerializer,res:o8.resSerializer,wrapErrorSerializer:function(e){return e===mh?e:function(r){return e(mh(r))}},wrapRequestSerializer:function(e){return e===a8.reqSerializer?e:function(r){return e(a8.reqSerializer(r))}},wrapResponseSerializer:function(e){return e===o8.resSerializer?e:function(r){return e(o8.resSerializer(r))}}}});var gh=k((gNe,YO)=>{"use strict";function $re(t,e){return e}YO.exports=function(){let e=Error.prepareStackTrace;Error.prepareStackTrace=$re;let n=new Error().stack;if(Error.prepareStackTrace=e,!Array.isArray(n))return;let r=n.slice(2),i=[];for(let l of r)l&&i.push(l.getFileName());return i}});var ZO=k((vNe,QO)=>{"use strict";QO.exports=Bre;function Bre(t={}){let{ERR_PATHS_MUST_BE_STRINGS:e=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:n=r=>`fast-redact \u2013 Invalid path (${r})`}=t;return function({paths:i}){i.forEach(l=>{if(typeof l!="string")throw Error(e());try{if(/〇/.test(l))throw Error();let s=(l[0]==="["?"":".")+l.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").replace(/\[\*\]/g,"[\u3007]");if(/\n|\r|;/.test(s)||/\/\*/.test(s))throw Error();Function(`
'use strict'
const o = new Proxy({}, { get: () => o, set: () => { throw Error() } });
const \u3007 = null;
o${s}
- if ([o${s}].length !== 1) throw Error()`)()}catch{throw Error(n(l))}})}}});var a8=k((sNe,XO)=>{"use strict";XO.exports=/[^.[\]]+|\[((?:.)*?)\]/g});var YO=k((aNe,WO)=>{"use strict";var Ire=a8();WO.exports=kre;function kre({paths:t}){let e=[];var n=0;let r=t.reduce(function(i,l,s){var a=l.match(Ire).map(c=>c.replace(/'|"|`/g,""));let o=l[0]==="[";a=a.map(c=>c[0]==="["?c.substr(1,c.length-2):c);let u=a.indexOf("*");if(u>-1){let c=a.slice(0,u),f=c.join("."),m=a.slice(u+1,a.length),d=m.length>0;n++,e.push({before:c,beforeStr:f,after:m,nested:d})}else i[l]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(l),leadingBracket:o};return i},{});return{wildcards:e,wcLen:n,secret:r}}});var ZO=k((oNe,QO)=>{"use strict";var Dre=a8();QO.exports=Pre;function Pre({secret:t,serialize:e,wcLen:n,strict:r,isCensorFct:i,censorFctTakesPath:l},s){let a=Function("o",`
+ if ([o${s}].length !== 1) throw Error()`)()}catch{throw Error(n(l))}})}}});var u8=k((_Ne,eN)=>{"use strict";eN.exports=/[^.[\]]+|\[((?:.)*?)\]/g});var nN=k((ENe,tN)=>{"use strict";var Hre=u8();tN.exports=Vre;function Vre({paths:t}){let e=[];var n=0;let r=t.reduce(function(i,l,s){var a=l.match(Hre).map(c=>c.replace(/'|"|`/g,""));let o=l[0]==="[";a=a.map(c=>c[0]==="["?c.substr(1,c.length-2):c);let u=a.indexOf("*");if(u>-1){let c=a.slice(0,u),f=c.join("."),m=a.slice(u+1,a.length),d=m.length>0;n++,e.push({before:c,beforeStr:f,after:m,nested:d})}else i[l]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(l),leadingBracket:o};return i},{});return{wildcards:e,wcLen:n,secret:r}}});var iN=k((bNe,rN)=>{"use strict";var qre=u8();rN.exports=zre;function zre({secret:t,serialize:e,wcLen:n,strict:r,isCensorFct:i,censorFctTakesPath:l},s){let a=Function("o",`
if (typeof o !== 'object' || o == null) {
- ${Ure(r,e)}
+ ${Xre(r,e)}
}
const { censor, secret } = this
- ${Lre(t,i,l)}
+ ${Gre(t,i,l)}
this.compileRestore()
- ${Fre(n>0,i,l)}
- ${jre(e)}
- `).bind(s);return e===!1&&(a.restore=o=>s.restore(o)),a}function Lre(t,e,n){return Object.keys(t).map(r=>{let{escPath:i,leadingBracket:l,path:s}=t[r],a=l?1:0,o=l?"":".",u=[];for(var c;(c=Dre.exec(r))!==null;){let[,y]=c,{index:_,input:S}=c;_>a&&u.push(S.substring(0,_-(y?0:1)))}var f=u.map(y=>`o${o}${y}`).join(" && ");f.length===0?f+=`o${o}${r} != null`:f+=` && o${o}${r} != null`;let m=`
+ ${Jre(n>0,i,l)}
+ ${Kre(e)}
+ `).bind(s);return e===!1&&(a.restore=o=>s.restore(o)),a}function Gre(t,e,n){return Object.keys(t).map(r=>{let{escPath:i,leadingBracket:l,path:s}=t[r],a=l?1:0,o=l?"":".",u=[];for(var c;(c=qre.exec(r))!==null;){let[,y]=c,{index:_,input:S}=c;_>a&&u.push(S.substring(0,_-(y?0:1)))}var f=u.map(y=>`o${o}${y}`).join(" && ");f.length===0?f+=`o${o}${r} != null`:f+=` && o${o}${r} != null`;let m=`
switch (true) {
${u.reverse().map(y=>`
case o${o}${y} === censor:
@@ -43,7 +43,7 @@ caused by: `+OO(r,e)):n},mre=t=>OO(t,new Set),NO=(t,e,n)=>{if(!l4(t))return"";le
}
}
`}).join(`
-`)}function Fre(t,e,n){return t===!0?`
+`)}function Jre(t,e,n){return t===!0?`
{
const { wildcards, wcLen, groupRedact, nestedRedact } = this
for (var i = 0; i < wcLen; i++) {
@@ -54,16 +54,16 @@ caused by: `+OO(r,e)):n},mre=t=>OO(t,new Set),NO=(t,e,n)=>{if(!l4(t))return"";le
} else secret[beforeStr] = groupRedact(o, before, censor, ${e}, ${n})
}
}
- `:""}function jre(t){return t===!1?"return o":`
+ `:""}function Kre(t){return t===!1?"return o":`
var s = this.serialize(o)
this.restore(o)
return s
- `}function Ure(t,e){return t===!0?"throw Error('fast-redact: primitives cannot be redacted')":e===!1?"return o":"return this.serialize(o)"}});var yh=k((uNe,nN)=>{"use strict";nN.exports={groupRedact:$re,groupRestore:Mre,nestedRedact:Hre,nestedRestore:Bre};function Mre({keys:t,values:e,target:n}){if(n==null)return;let r=t.length;for(var i=0;i0;s--)l=l[r[s]];l[r[0]]=i}}function Hre(t,e,n,r,i,l,s){let a=eN(e,n);if(a==null)return;let o=Object.keys(a),u=o.length;for(var c=0;c{"use strict";var{groupRestore:zre,nestedRestore:Gre}=yh();rN.exports=Jre;function Jre({secret:t,wcLen:e}){return function(){if(this.restore)return;let r=Object.keys(t),i=Kre(t,r),l=e>0,s=l?{secret:t,groupRestore:zre,nestedRestore:Gre}:{secret:t};this.restore=Function("o",Xre(i,r,l)).bind(s)}}function Kre(t,e){return e.map(n=>{let{circle:r,escPath:i,leadingBracket:l}=t[n],a=r?`o.${r} = secret[${i}].val`:`o${l?"":"."}${n} = secret[${i}].val`,o=`secret[${i}].val = undefined`;return`
+ `}function Xre(t,e){return t===!0?"throw Error('fast-redact: primitives cannot be redacted')":e===!1?"return o":"return this.serialize(o)"}});var _h=k((wNe,aN)=>{"use strict";aN.exports={groupRedact:Yre,groupRestore:Wre,nestedRedact:Zre,nestedRestore:Qre};function Wre({keys:t,values:e,target:n}){if(n==null)return;let r=t.length;for(var i=0;i0;s--)l=l[r[s]];l[r[0]]=i}}function Zre(t,e,n,r,i,l,s){let a=lN(e,n);if(a==null)return;let o=Object.keys(a),u=o.length;for(var c=0;c{"use strict";var{groupRestore:nie,nestedRestore:rie}=_h();oN.exports=iie;function iie({secret:t,wcLen:e}){return function(){if(this.restore)return;let r=Object.keys(t),i=lie(t,r),l=e>0,s=l?{secret:t,groupRestore:nie,nestedRestore:rie}:{secret:t};this.restore=Function("o",sie(i,r,l)).bind(s)}}function lie(t,e){return e.map(n=>{let{circle:r,escPath:i,leadingBracket:l}=t[n],a=r?`o.${r} = secret[${i}].val`:`o${l?"":"."}${n} = secret[${i}].val`,o=`secret[${i}].val = undefined`;return`
if (secret[${i}].val !== undefined) {
try { ${a} } catch (e) {}
${o}
}
- `}).join("")}function Xre(t,e,n){return`
+ `}).join("")}function sie(t,e,n){return`
const secret = this.secret
${n===!0?`
const keys = Object.keys(secret)
@@ -78,34 +78,34 @@ caused by: `+OO(r,e)):n},mre=t=>OO(t,new Set),NO=(t,e,n)=>{if(!l4(t))return"";le
`:""}
${t}
return o
- `}});var sN=k((pNe,lN)=>{"use strict";lN.exports=Wre;function Wre(t){let{secret:e,censor:n,compileRestore:r,serialize:i,groupRedact:l,nestedRedact:s,wildcards:a,wcLen:o}=t,u=[{secret:e,censor:n,compileRestore:r}];return i!==!1&&u.push({serialize:i}),o>0&&u.push({groupRedact:l,nestedRedact:s,wildcards:a,wcLen:o}),Object.assign(...u)}});var uN=k((fNe,oN)=>{"use strict";var aN=KO(),Yre=YO(),Qre=ZO(),Zre=iN(),{groupRedact:eie,nestedRedact:tie}=yh(),nie=sN(),rie=a8(),iie=aN(),gh=t=>t;gh.restore=gh;var lie="[REDACTED]";vh.rx=rie;vh.validator=aN;oN.exports=vh;function vh(t={}){let e=Array.from(new Set(t.paths||[])),n="serialize"in t&&(t.serialize===!1||typeof t.serialize=="function")?t.serialize:JSON.stringify,r=t.remove;if(r===!0&&n!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let i=r===!0?void 0:"censor"in t?t.censor:lie,l=typeof i=="function",s=l&&i.length>1;if(e.length===0)return n||gh;iie({paths:e,serialize:n,censor:i});let{wildcards:a,wcLen:o,secret:u}=Yre({paths:e,censor:i}),c=Zre({secret:u,wcLen:o}),f="strict"in t?t.strict:!0;return Qre({secret:u,wcLen:o,serialize:n,strict:f,isCensorFct:l,censorFctTakesPath:s},nie({secret:u,censor:i,compileRestore:c,serialize:n,groupRedact:eie,nestedRedact:tie,wildcards:a,wcLen:o}))}});var zu=k((dNe,cN)=>{"use strict";var sie=Symbol("pino.setLevel"),aie=Symbol("pino.getLevel"),oie=Symbol("pino.levelVal"),uie=Symbol("pino.levelComp"),cie=Symbol("pino.useLevelLabels"),pie=Symbol("pino.useOnlyCustomLevels"),fie=Symbol("pino.mixin"),die=Symbol("pino.lsCache"),hie=Symbol("pino.chindings"),mie=Symbol("pino.asJson"),yie=Symbol("pino.write"),gie=Symbol("pino.redactFmt"),vie=Symbol("pino.time"),_ie=Symbol("pino.timeSliceIndex"),Eie=Symbol("pino.stream"),bie=Symbol("pino.stringify"),wie=Symbol("pino.stringifySafe"),Sie=Symbol("pino.stringifiers"),Tie=Symbol("pino.end"),xie=Symbol("pino.formatOpts"),Aie=Symbol("pino.messageKey"),Oie=Symbol("pino.errorKey"),Nie=Symbol("pino.nestedKey"),Cie=Symbol("pino.nestedKeyStr"),Rie=Symbol("pino.mixinMergeStrategy"),Iie=Symbol("pino.msgPrefix"),kie=Symbol("pino.wildcardFirst"),Die=Symbol.for("pino.serializers"),Pie=Symbol.for("pino.formatters"),Lie=Symbol.for("pino.hooks"),Fie=Symbol.for("pino.metadata");cN.exports={setLevelSym:sie,getLevelSym:aie,levelValSym:oie,levelCompSym:uie,useLevelLabelsSym:cie,mixinSym:fie,lsCacheSym:die,chindingsSym:hie,asJsonSym:mie,writeSym:yie,serializersSym:Die,redactFmtSym:gie,timeSym:vie,timeSliceIndexSym:_ie,streamSym:Eie,stringifySym:bie,stringifySafeSym:wie,stringifiersSym:Sie,endSym:Tie,formatOptsSym:xie,messageKeySym:Aie,errorKeySym:Oie,nestedKeySym:Nie,wildcardFirstSym:kie,needsMetadataGsym:Fie,useOnlyCustomLevelsSym:pie,formattersSym:Pie,hooksSym:Lie,nestedKeyStrSym:Cie,mixinMergeStrategySym:Rie,msgPrefixSym:Iie}});var bh=k((hNe,hN)=>{"use strict";var Eh=uN(),{redactFmtSym:jie,wildcardFirstSym:o8}=zu(),{rx:_h,validator:Uie}=Eh,pN=Uie({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:t=>`pino \u2013 redact paths array contains an invalid path (${t})`}),fN="[Redacted]",dN=!1;function Mie(t,e){let{paths:n,censor:r}=$ie(t),i=n.reduce((a,o)=>{_h.lastIndex=0;let u=_h.exec(o),c=_h.exec(o),f=u[1]!==void 0?u[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):u[0];if(f==="*"&&(f=o8),c===null)return a[f]=null,a;if(a[f]===null)return a;let{index:m}=c,d=`${o.substr(m,o.length-1)}`;return a[f]=a[f]||[],f!==o8&&a[f].length===0&&a[f].push(...a[o8]||[]),f===o8&&Object.keys(a).forEach(function(y){a[y]&&a[y].push(d)}),a[f].push(d),a},{}),l={[jie]:Eh({paths:n,censor:r,serialize:e,strict:dN})},s=(...a)=>e(typeof r=="function"?r(...a):r);return[...Object.keys(i),...Object.getOwnPropertySymbols(i)].reduce((a,o)=>{if(i[o]===null)a[o]=u=>s(u,[o]);else{let u=typeof r=="function"?(c,f)=>r(c,[o,...f]):r;a[o]=Eh({paths:i[o],censor:u,serialize:e,strict:dN})}return a},l)}function $ie(t){if(Array.isArray(t))return t={paths:t,censor:fN},pN(t),t;let{paths:e,censor:n=fN,remove:r}=t;if(Array.isArray(e)===!1)throw Error("pino \u2013 redact must contain an array of strings");return r===!0&&(n=void 0),pN({paths:e,censor:n}),{paths:e,censor:n}}hN.exports=Mie});var yN=k((mNe,mN)=>{"use strict";var Bie=()=>"",Hie=()=>`,"time":${Date.now()}`,Vie=()=>`,"time":${Math.round(Date.now()/1e3)}`,qie=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;mN.exports={nullTime:Bie,epochTime:Hie,unixTime:Vie,isoTime:qie}});var vN=k((yNe,gN)=>{"use strict";function zie(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}gN.exports=Gie;function Gie(t,e,n){var r=n&&n.stringify||zie,i=1;if(typeof t=="object"&&t!==null){var l=e.length+i;if(l===1)return t;var s=new Array(l);s[0]=r(t);for(var a=1;a-1?f:0,t.charCodeAt(d+1)){case 100:case 102:if(c>=o||e[c]==null)break;f=o||e[c]==null)break;f=o||e[c]===void 0)break;f",f=d+2,d++;break}u+=r(e[c]),f=d+2,d++;break;case 115:if(c>=o)break;f{"use strict";if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let e=function(n){if((n>0&&n<1/0)===!1)throw typeof n!="number"&&typeof n!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");Atomics.wait(t,0,0,Number(n))},t=new Int32Array(new SharedArrayBuffer(4));wh.exports=e}else{let t=function(e){if((e>0&&e<1/0)===!1)throw typeof e!="number"&&typeof e!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");let r=Date.now()+Number(e);for(;r>Date.now(););};wh.exports=t}});var AN=k((vNe,xN)=>{"use strict";var Pr=require("fs"),Jie=require("events"),Kie=require("util").inherits,_N=require("path"),xh=Sh(),u8=100,c8=Buffer.allocUnsafe(0),Xie=16*1024,EN="buffer",bN="utf8";function wN(t,e){e._opening=!0,e._writing=!0,e._asyncDrainScheduled=!1;function n(l,s){if(l){e._reopening=!1,e._writing=!1,e._opening=!1,e.sync?process.nextTick(()=>{e.listenerCount("error")>0&&e.emit("error",l)}):e.emit("error",l);return}e.fd=s,e.file=t,e._reopening=!1,e._opening=!1,e._writing=!1,e.sync?process.nextTick(()=>e.emit("ready")):e.emit("ready"),!(e._reopening||e.destroyed)&&(!e._writing&&e._len>e.minLength||e._flushPending)&&e._actualWrite()}let r=e.append?"a":"w",i=e.mode;if(e.sync)try{e.mkdir&&Pr.mkdirSync(_N.dirname(t),{recursive:!0});let l=Pr.openSync(t,r,i);n(null,l)}catch(l){throw n(l),l}else e.mkdir?Pr.mkdir(_N.dirname(t),{recursive:!0},l=>{if(l)return n(l);Pr.open(t,r,i,n)}):Pr.open(t,r,i,n)}function ys(t){if(!(this instanceof ys))return new ys(t);let{fd:e,dest:n,minLength:r,maxLength:i,maxWrite:l,sync:s,append:a=!0,mkdir:o,retryEAGAIN:u,fsync:c,contentMode:f,mode:m}=t||{};e=e||n,this._len=0,this.fd=-1,this._bufs=[],this._lens=[],this._writing=!1,this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._flushPending=!1,this._hwm=Math.max(r||0,16387),this.file=null,this.destroyed=!1,this.minLength=r||0,this.maxLength=i||0,this.maxWrite=l||Xie,this.sync=s||!1,this.writable=!0,this._fsync=c||!1,this.append=a||!1,this.mode=m,this.retryEAGAIN=u||(()=>!0),this.mkdir=o||!1;let d,y;if(f===EN)this._writingBuf=c8,this.write=Qie,this.flush=ele,this.flushSync=nle,this._actualWrite=ile,d=()=>Pr.writeSync(this.fd,this._writingBuf),y=()=>Pr.write(this.fd,this._writingBuf,this.release);else if(f===void 0||f===bN)this._writingBuf="",this.write=Yie,this.flush=Zie,this.flushSync=tle,this._actualWrite=rle,d=()=>Pr.writeSync(this.fd,this._writingBuf,"utf8"),y=()=>Pr.write(this.fd,this._writingBuf,"utf8",this.release);else throw new Error(`SonicBoom supports "${bN}" and "${EN}", but passed ${f}`);if(typeof e=="number")this.fd=e,process.nextTick(()=>this.emit("ready"));else if(typeof e=="string")wN(e,this);else throw new Error("SonicBoom supports only file descriptors and files");if(this.minLength>=this.maxWrite)throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);this.release=(_,S)=>{if(_){if((_.code==="EAGAIN"||_.code==="EBUSY")&&this.retryEAGAIN(_,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{xh(u8),this.release(void 0,0)}catch(g){this.release(g)}else setTimeout(y,u8);else this._writing=!1,this.emit("error",_);return}this.emit("write",S);let w=Th(this._writingBuf,this._len,S);if(this._len=w.len,this._writingBuf=w.writingBuf,this._writingBuf.length){if(!this.sync){y();return}try{do{let g=d(),v=Th(this._writingBuf,this._len,g);this._len=v.len,this._writingBuf=v.writingBuf}while(this._writingBuf.length)}catch(g){this.release(g);return}}this._fsync&&Pr.fsyncSync(this.fd);let E=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):E>this.minLength?this._actualWrite():this._ending?E>0?this._actualWrite():(this._writing=!1,p8(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(Wie,this)):this.emit("drain"))},this.on("newListener",function(_){_==="drain"&&(this._asyncDrainScheduled=!1)})}function Th(t,e,n){return typeof t=="string"&&Buffer.byteLength(t)!==n&&(n=Buffer.from(t).subarray(0,n).toString().length),e=Math.max(e-n,0),t=t.slice(n),{writingBuf:t,len:e}}function Wie(t){t.listenerCount("drain")>0&&(t._asyncDrainScheduled=!1,t.emit("drain"))}Kie(ys,Jie);function SN(t,e){return t.length===0?c8:t.length===1?t[0]:Buffer.concat(t,e)}function Yie(t){if(this.destroyed)throw new Error("SonicBoom destroyed");let e=this._len+t.length,n=this._bufs;return this.maxLength&&e>this.maxLength?(this.emit("drop",t),this._lenthis.maxWrite?n.push(""+t):n[n.length-1]+=t,this._len=e,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._lenthis.maxLength?(this.emit("drop",t),this._lenthis.maxWrite?(n.push([t]),r.push(t.length)):(n[n.length-1].push(t),r[r.length-1]+=t.length),this._len=e,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len{this._fsync?(this._flushPending=!1,t()):Pr.fsync(this.fd,r=>{this._flushPending=!1,t(r)}),this.off("error",n)},n=r=>{this._flushPending=!1,t(r),this.off("drain",e)};this.once("drain",e),this.once("error",n)}function Zie(t){if(t!=null&&typeof t!="function")throw new Error("flush cb must be a function");if(this.destroyed){let e=new Error("SonicBoom destroyed");if(t){t(e);return}throw e}if(this.minLength<=0){t?.();return}t&&TN.call(this,t),!this._writing&&(this._bufs.length===0&&this._bufs.push(""),this._actualWrite())}function ele(t){if(t!=null&&typeof t!="function")throw new Error("flush cb must be a function");if(this.destroyed){let e=new Error("SonicBoom destroyed");if(t){t(e);return}throw e}if(this.minLength<=0){t?.();return}t&&TN.call(this,t),!this._writing&&(this._bufs.length===0&&(this._bufs.push([]),this._lens.push(0)),this._actualWrite())}ys.prototype.reopen=function(t){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(t)});return}if(this._ending)return;if(!this.file)throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let e=this.fd;this.once("ready",()=>{e!==this.fd&&Pr.close(e,n=>{if(n)return this.emit("error",n)})}),wN(t||this.file,this)};ys.prototype.end=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}this._ending||(this._ending=!0,!this._writing&&(this._len>0&&this.fd>=0?this._actualWrite():p8(this)))};function tle(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");let t="";for(;this._bufs.length||t;){t.length<=0&&(t=this._bufs[0]);try{let e=Pr.writeSync(this.fd,t,"utf8"),n=Th(t,this._len,e);t=n.writingBuf,this._len=n.len,t.length<=0&&this._bufs.shift()}catch(e){if((e.code==="EAGAIN"||e.code==="EBUSY")&&!this.retryEAGAIN(e,t.length,this._len-t.length))throw e;xh(u8)}}try{Pr.fsyncSync(this.fd)}catch{}}function nle(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift([this._writingBuf]),this._writingBuf=c8);let t=c8;for(;this._bufs.length||t.length;){t.length<=0&&(t=SN(this._bufs[0],this._lens[0]));try{let e=Pr.writeSync(this.fd,t);t=t.subarray(e),this._len=Math.max(this._len-e,0),t.length<=0&&(this._bufs.shift(),this._lens.shift())}catch(e){if((e.code==="EAGAIN"||e.code==="EBUSY")&&!this.retryEAGAIN(e,t.length,this._len-t.length))throw e;xh(u8)}}}ys.prototype.destroy=function(){this.destroyed||p8(this)};function rle(){let t=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf||this._bufs.shift()||"",this.sync)try{let e=Pr.writeSync(this.fd,this._writingBuf,"utf8");t(null,e)}catch(e){t(e)}else Pr.write(this.fd,this._writingBuf,"utf8",t)}function ile(){let t=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:SN(this._bufs.shift(),this._lens.shift()),this.sync)try{let e=Pr.writeSync(this.fd,this._writingBuf);t(null,e)}catch(e){t(e)}else Pr.write(this.fd,this._writingBuf,t)}function p8(t){if(t.fd===-1){t.once("ready",p8.bind(null,t));return}t.destroyed=!0,t._bufs=[],t._lens=[],Pr.fsync(t.fd,e);function e(){t.fd!==1&&t.fd!==2?Pr.close(t.fd,n):n()}function n(r){if(r){t.emit("error",r);return}t._ending&&!t._writing&&t.emit("finish"),t.emit("close")}}ys.SonicBoom=ys;ys.default=ys;xN.exports=ys});var Ah=k((_Ne,IN)=>{"use strict";var gs={exit:[],beforeExit:[]},ON={exit:ale,beforeExit:ole},Gu;function lle(){Gu===void 0&&(Gu=new FinalizationRegistry(ule))}function sle(t){gs[t].length>0||process.on(t,ON[t])}function NN(t){gs[t].length>0||(process.removeListener(t,ON[t]),gs.exit.length===0&&gs.beforeExit.length===0&&(Gu=void 0))}function ale(){CN("exit")}function ole(){CN("beforeExit")}function CN(t){for(let e of gs[t]){let n=e.deref(),r=e.fn;n!==void 0&&r(n,t)}gs[t]=[]}function ule(t){for(let e of["exit","beforeExit"]){let n=gs[e].indexOf(t);gs[e].splice(n,n+1),NN(e)}}function RN(t,e,n){if(e===void 0)throw new Error("the object can't be undefined");sle(t);let r=new WeakRef(e);r.fn=n,lle(),Gu.register(e,r),gs[t].push(r)}function cle(t,e){RN("exit",t,e)}function ple(t,e){RN("beforeExit",t,e)}function fle(t){if(Gu!==void 0){Gu.unregister(t);for(let e of["exit","beforeExit"])gs[e]=gs[e].filter(n=>{let r=n.deref();return r&&r!==t}),NN(e)}}IN.exports={register:cle,registerBeforeExit:ple,unregister:fle}});var kN=k((ENe,dle)=>{dle.exports={name:"thread-stream",version:"2.4.1",description:"A streaming way to send data to a Node.js Worker Thread",main:"index.js",types:"index.d.ts",dependencies:{"real-require":"^0.2.0"},devDependencies:{"@types/node":"^20.1.0","@types/tap":"^15.0.0",desm:"^1.3.0",fastbench:"^1.0.1",husky:"^8.0.1","pino-elasticsearch":"^6.0.0","sonic-boom":"^3.0.0",standard:"^17.0.0",tap:"^16.2.0","ts-node":"^10.8.0",typescript:"^4.7.2","why-is-node-running":"^2.2.2"},scripts:{test:"standard && npm run transpile && tap test/*.test.*js && tap --ts test/*.test.*ts","test:ci":"standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts","test:ci:js":'tap --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*js"',"test:ci:ts":'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"',"test:yarn":'npm run transpile && tap "test/**/*.test.js" --no-check-coverage',transpile:"sh ./test/ts/transpile.sh",prepare:"husky install"},standard:{ignore:["test/ts/**/*"]},repository:{type:"git",url:"git+https://github.com/mcollina/thread-stream.git"},keywords:["worker","thread","threads","stream"],author:"Matteo Collina ",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var PN=k((bNe,DN)=>{"use strict";function hle(t,e,n,r,i){let l=Date.now()+r,s=Atomics.load(t,e);if(s===n){i(null,"ok");return}let a=s,o=u=>{Date.now()>l?i(null,"timed-out"):setTimeout(()=>{a=s,s=Atomics.load(t,e),s===a?o(u>=1e3?1e3:u*2):s===n?i(null,"ok"):i(null,"not-equal")},u)};o(1)}function mle(t,e,n,r,i){let l=Date.now()+r,s=Atomics.load(t,e);if(s!==n){i(null,"ok");return}let a=o=>{Date.now()>l?i(null,"timed-out"):setTimeout(()=>{s=Atomics.load(t,e),s!==n?i(null,"ok"):a(o>=1e3?1e3:o*2)},o)};a(1)}DN.exports={wait:hle,waitDiff:mle}});var FN=k((wNe,LN)=>{"use strict";LN.exports={WRITE_INDEX:4,READ_INDEX:8}});var BN=k((SNe,$N)=>{"use strict";var{version:yle}=kN(),{EventEmitter:gle}=require("events"),{Worker:vle}=require("worker_threads"),{join:_le}=require("path"),{pathToFileURL:Ele}=require("url"),{wait:ble}=PN(),{WRITE_INDEX:pl,READ_INDEX:Gs}=FN(),wle=require("buffer"),Sle=require("assert"),ye=Symbol("kImpl"),Tle=wle.constants.MAX_STRING_LENGTH,a4=class{constructor(e){this._value=e}deref(){return this._value}},d8=class{register(){}unregister(){}},xle=process.env.NODE_V8_COVERAGE?d8:global.FinalizationRegistry||d8,Ale=process.env.NODE_V8_COVERAGE?a4:global.WeakRef||a4,jN=new xle(t=>{t.exited||t.terminate()});function Ole(t,e){let{filename:n,workerData:r}=e,l=("__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{})["thread-stream-worker"]||_le(__dirname,"lib","worker.js"),s=new vle(l,{...e.workerOpts,trackUnmanagedFds:!1,workerData:{filename:n.indexOf("file://")===0?n:Ele(n).href,dataBuf:t[ye].dataBuf,stateBuf:t[ye].stateBuf,workerData:{$context:{threadStreamVersion:yle},...r}}});return s.stream=new a4(t),s.on("message",Nle),s.on("exit",MN),jN.register(t,s),s}function UN(t){Sle(!t[ye].sync),t[ye].needDrain&&(t[ye].needDrain=!1,t.emit("drain"))}function f8(t){let e=Atomics.load(t[ye].state,pl),n=t[ye].data.length-e;if(n>0){if(t[ye].buf.length===0){t[ye].flushing=!1,t[ye].ending?Ih(t):t[ye].needDrain&&process.nextTick(UN,t);return}let r=t[ye].buf.slice(0,n),i=Buffer.byteLength(r);i<=n?(t[ye].buf=t[ye].buf.slice(n),h8(t,r,f8.bind(null,t))):t.flush(()=>{if(!t.destroyed){for(Atomics.store(t[ye].state,Gs,0),Atomics.store(t[ye].state,pl,0);i>t[ye].data.length;)n=n/2,r=t[ye].buf.slice(0,n),i=Buffer.byteLength(r);t[ye].buf=t[ye].buf.slice(n),h8(t,r,f8.bind(null,t))}})}else if(n===0){if(e===0&&t[ye].buf.length===0)return;t.flush(()=>{Atomics.store(t[ye].state,Gs,0),Atomics.store(t[ye].state,pl,0),f8(t)})}else Js(t,new Error("overwritten"))}function Nle(t){let e=this.stream.deref();if(e===void 0){this.exited=!0,this.terminate();return}switch(t.code){case"READY":this.stream=new Ale(e),e.flush(()=>{e[ye].ready=!0,e.emit("ready")});break;case"ERROR":Js(e,t.err);break;case"EVENT":Array.isArray(t.args)?e.emit(t.name,...t.args):e.emit(t.name,t.args);break;case"WARNING":process.emitWarning(t.err);break;default:Js(e,new Error("this should not happen: "+t.code))}}function MN(t){let e=this.stream.deref();e!==void 0&&(jN.unregister(e),e.worker.exited=!0,e.worker.off("exit",MN),Js(e,t!==0?new Error("the worker thread exited"):null))}var Nh=class extends gle{constructor(e={}){if(super(),e.bufferSize<4)throw new Error("bufferSize must at least fit a 4-byte utf-8 char");this[ye]={},this[ye].stateBuf=new SharedArrayBuffer(128),this[ye].state=new Int32Array(this[ye].stateBuf),this[ye].dataBuf=new SharedArrayBuffer(e.bufferSize||4*1024*1024),this[ye].data=Buffer.from(this[ye].dataBuf),this[ye].sync=e.sync||!1,this[ye].ending=!1,this[ye].ended=!1,this[ye].needDrain=!1,this[ye].destroyed=!1,this[ye].flushing=!1,this[ye].ready=!1,this[ye].finished=!1,this[ye].errored=null,this[ye].closed=!1,this[ye].buf="",this.worker=Ole(this,e)}write(e){if(this[ye].destroyed)return Ch(this,new Error("the worker has exited")),!1;if(this[ye].ending)return Ch(this,new Error("the worker is ending")),!1;if(this[ye].flushing&&this[ye].buf.length+e.length>=Tle)try{Oh(this),this[ye].flushing=!0}catch(n){return Js(this,n),!1}if(this[ye].buf+=e,this[ye].sync)try{return Oh(this),!0}catch(n){return Js(this,n),!1}return this[ye].flushing||(this[ye].flushing=!0,setImmediate(f8,this)),this[ye].needDrain=this[ye].data.length-this[ye].buf.length-Atomics.load(this[ye].state,pl)<=0,!this[ye].needDrain}end(){this[ye].destroyed||(this[ye].ending=!0,Ih(this))}flush(e){if(this[ye].destroyed){typeof e=="function"&&process.nextTick(e,new Error("the worker has exited"));return}let n=Atomics.load(this[ye].state,pl);ble(this[ye].state,Gs,n,1/0,(r,i)=>{if(r){Js(this,r),process.nextTick(e,r);return}if(i==="not-equal"){this.flush(e);return}process.nextTick(e)})}flushSync(){this[ye].destroyed||(Oh(this),Rh(this))}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[ye].ready}get destroyed(){return this[ye].destroyed}get closed(){return this[ye].closed}get writable(){return!this[ye].destroyed&&!this[ye].ending}get writableEnded(){return this[ye].ending}get writableFinished(){return this[ye].finished}get writableNeedDrain(){return this[ye].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[ye].errored}};function Ch(t,e){setImmediate(()=>{t.emit("error",e)})}function Js(t,e){t[ye].destroyed||(t[ye].destroyed=!0,e&&(t[ye].errored=e,Ch(t,e)),t.worker.exited?setImmediate(()=>{t[ye].closed=!0,t.emit("close")}):t.worker.terminate().catch(()=>{}).then(()=>{t[ye].closed=!0,t.emit("close")}))}function h8(t,e,n){let r=Atomics.load(t[ye].state,pl),i=Buffer.byteLength(e);return t[ye].data.write(e,r),Atomics.store(t[ye].state,pl,r+i),Atomics.notify(t[ye].state,pl),n(),!0}function Ih(t){if(!(t[ye].ended||!t[ye].ending||t[ye].flushing)){t[ye].ended=!0;try{t.flushSync();let e=Atomics.load(t[ye].state,Gs);Atomics.store(t[ye].state,pl,-1),Atomics.notify(t[ye].state,pl);let n=0;for(;e!==-1;){if(Atomics.wait(t[ye].state,Gs,e,1e3),e=Atomics.load(t[ye].state,Gs),e===-2){Js(t,new Error("end() failed"));return}if(++n===10){Js(t,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{t[ye].finished=!0,t.emit("finish")})}catch(e){Js(t,e)}}}function Oh(t){let e=()=>{t[ye].ending?Ih(t):t[ye].needDrain&&process.nextTick(UN,t)};for(t[ye].flushing=!1;t[ye].buf.length!==0;){let n=Atomics.load(t[ye].state,pl),r=t[ye].data.length-n;if(r===0){Rh(t),Atomics.store(t[ye].state,Gs,0),Atomics.store(t[ye].state,pl,0);continue}else if(r<0)throw new Error("overwritten");let i=t[ye].buf.slice(0,r),l=Buffer.byteLength(i);if(l<=r)t[ye].buf=t[ye].buf.slice(r),h8(t,i,e);else{for(Rh(t),Atomics.store(t[ye].state,Gs,0),Atomics.store(t[ye].state,pl,0);l>t[ye].buf.length;)r=r/2,i=t[ye].buf.slice(0,r),l=Buffer.byteLength(i);t[ye].buf=t[ye].buf.slice(r),h8(t,i,e)}}}function Rh(t){if(t[ye].flushing)throw new Error("unable to flush while flushing");let e=Atomics.load(t[ye].state,pl),n=0;for(;;){let r=Atomics.load(t[ye].state,Gs);if(r===-2)throw Error("_flushSync failed");if(r!==e)Atomics.wait(t[ye].state,Gs,r,1e3);else break;if(++n===10)throw new Error("_flushSync took too long (10s)")}}$N.exports=Nh});var Ph=k((TNe,HN)=>{"use strict";var{createRequire:Cle}=require("module"),Rle=hh(),{join:kh,isAbsolute:Ile,sep:kle}=require("path"),Dle=Sh(),Dh=Ah(),Ple=BN();function Lle(t){Dh.register(t,jle),Dh.registerBeforeExit(t,Ule),t.on("close",function(){Dh.unregister(t)})}function Fle(t,e,n){let r=new Ple({filename:t,workerData:e,workerOpts:n});r.on("ready",i),r.on("close",function(){process.removeListener("exit",l)}),process.on("exit",l);function i(){process.removeListener("exit",l),r.unref(),n.autoEnd!==!1&&Lle(r)}function l(){r.closed||(r.flushSync(),Dle(100),r.end())}return r}function jle(t){t.ref(),t.flushSync(),t.end(),t.once("close",function(){t.unref()})}function Ule(t){t.flushSync()}function Mle(t){let{pipeline:e,targets:n,levels:r,dedupe:i,options:l={},worker:s={},caller:a=Rle()}=t,o=typeof a=="string"?[a]:a,u="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{},c=t.target;if(c&&n)throw new Error("only one of target or targets can be specified");return n?(c=u["pino-worker"]||kh(__dirname,"worker.js"),l.targets=n.map(m=>({...m,target:f(m.target)}))):e&&(c=u["pino-pipeline-worker"]||kh(__dirname,"worker-pipeline.js"),l.targets=e.map(m=>({...m,target:f(m.target)}))),r&&(l.levels=r),i&&(l.dedupe=i),Fle(f(c),l,s);function f(m){if(m=u[m]||m,Ile(m)||m.indexOf("file://")===0)return m;if(m==="pino/file")return kh(__dirname,"..","file.js");let d;for(let y of o)try{let _=y==="node:repl"?process.cwd()+kle:y;d=Cle(_).resolve(m);break}catch{continue}if(!d)throw new Error(`unable to determine transport target for "${m}"`);return d}}HN.exports=Mle});var g8=k((xNe,ZN)=>{"use strict";var VN=vN(),{mapHttpRequest:$le,mapHttpResponse:Ble}=dh(),Fh=AN(),qN=Ah(),{lsCacheSym:Hle,chindingsSym:JN,writeSym:zN,serializersSym:KN,formatOptsSym:GN,endSym:Vle,stringifiersSym:XN,stringifySym:WN,stringifySafeSym:jh,wildcardFirstSym:YN,nestedKeySym:qle,formattersSym:QN,messageKeySym:zle,errorKeySym:Gle,nestedKeyStrSym:Jle,msgPrefixSym:m8}=zu(),{isMainThread:Kle}=require("worker_threads"),Xle=Ph();function Ju(){}function Wle(t,e){if(!e)return n;return function(...i){e.call(this,i,n,t)};function n(r,...i){if(typeof r=="object"){let l=r;r!==null&&(r.method&&r.headers&&r.socket?r=$le(r):typeof r.setHeader=="function"&&(r=Ble(r)));let s;l===null&&i.length===0?s=[null]:(l=i.shift(),s=i),typeof this[m8]=="string"&&l!==void 0&&l!==null&&(l=this[m8]+l),this[zN](r,VN(l,s,this[GN]),t)}else{let l=r===void 0?i.shift():r;typeof this[m8]=="string"&&l!==void 0&&l!==null&&(l=this[m8]+l),this[zN](null,VN(l,i,this[GN]),t)}}}function Lh(t){let e="",n=0,r=!1,i=255,l=t.length;if(l>100)return JSON.stringify(t);for(var s=0;s=32;s++)i=t.charCodeAt(s),(i===34||i===92)&&(e+=t.slice(n,s)+"\\",n=s,r=!0);return r?e+=t.slice(n):e=t,i<32?JSON.stringify(t):'"'+e+'"'}function Yle(t,e,n,r){let i=this[WN],l=this[jh],s=this[XN],a=this[Vle],o=this[JN],u=this[KN],c=this[QN],f=this[zle],m=this[Gle],d=this[Hle][n]+r;d=d+o;let y;c.log&&(t=c.log(t));let _=s[YN],S="";for(let E in t)if(y=t[E],Object.prototype.hasOwnProperty.call(t,E)&&y!==void 0){u[E]?y=u[E](y):E===m&&u.err&&(y=u.err(y));let g=s[E]||_;switch(typeof y){case"undefined":case"function":continue;case"number":Number.isFinite(y)===!1&&(y=null);case"boolean":g&&(y=g(y));break;case"string":y=(g||Lh)(y);break;default:y=(g||i)(y,l)}if(y===void 0)continue;let v=Lh(E);S+=","+v+":"+y}let w="";if(e!==void 0){y=u[f]?u[f](e):e;let E=s[f]||_;switch(typeof y){case"function":break;case"number":Number.isFinite(y)===!1&&(y=null);case"boolean":E&&(y=E(y)),w=',"'+f+'":'+y;break;case"string":y=(E||Lh)(y),w=',"'+f+'":'+y;break;default:y=(E||i)(y,l),w=',"'+f+'":'+y}}return this[qle]&&S?d+this[Jle]+S.slice(1)+"}"+w+a:d+S+w+a}function Qle(t,e){let n,r=t[JN],i=t[WN],l=t[jh],s=t[XN],a=s[YN],o=t[KN],u=t[QN].bindings;e=u(e);for(let c in e)if(n=e[c],(c!=="level"&&c!=="serializers"&&c!=="formatters"&&c!=="customLevels"&&e.hasOwnProperty(c)&&n!==void 0)===!0){if(n=o[c]?o[c](n):n,n=(s[c]||a||i)(n,l),n===void 0)continue;r+=',"'+c+'":'+n}return r}function Zle(t){return t.write!==t.constructor.prototype.write}var ese=process.env.NODE_V8_COVERAGE||process.env.V8_COVERAGE;function y8(t){let e=new Fh(t);return e.on("error",n),!ese&&!t.sync&&Kle&&(qN.register(e,tse),e.on("close",function(){qN.unregister(e)})),e;function n(r){if(r.code==="EPIPE"){e.write=Ju,e.end=Ju,e.flushSync=Ju,e.destroy=Ju;return}e.removeListener("error",n),e.emit("error",r)}}function tse(t,e){t.destroyed||(e==="beforeExit"?(t.flush(),t.on("drain",function(){t.end()})):t.flushSync())}function nse(t){return function(n,r,i={},l){if(typeof i=="string")l=y8({dest:i}),i={};else if(typeof l=="string"){if(i&&i.transport)throw Error("only one of option.transport or stream can be specified");l=y8({dest:l})}else if(i instanceof Fh||i.writable||i._writableState)l=i,i={};else if(i.transport){if(i.transport instanceof Fh||i.transport.writable||i.transport._writableState)throw Error("option.transport do not allow stream, please pass to option directly. e.g. pino(transport)");if(i.transport.targets&&i.transport.targets.length&&i.formatters&&typeof i.formatters.level=="function")throw Error("option.transport.targets do not allow custom level formatters");let o;i.customLevels&&(o=i.useOnlyCustomLevels?i.customLevels:Object.assign({},i.levels,i.customLevels)),l=Xle({caller:r,...i.transport,levels:o})}if(i=Object.assign({},t,i),i.serializers=Object.assign({},t.serializers,i.serializers),i.formatters=Object.assign({},t.formatters,i.formatters),i.prettyPrint)throw new Error("prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)");let{enabled:s,onChild:a}=i;return s===!1&&(i.level="silent"),a||(i.onChild=Ju),l||(Zle(process.stdout)?l=process.stdout:l=y8({fd:process.stdout.fd||1})),{opts:i,stream:l}}}function rse(t,e){try{return JSON.stringify(t)}catch{try{return(e||this[jh])(t)}catch{return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function ise(t,e,n){return{level:t,bindings:e,log:n}}function lse(t){let e=Number(t);return typeof t=="string"&&Number.isFinite(e)?e:t===void 0?1:t}ZN.exports={noop:Ju,buildSafeSonicBoom:y8,asChindings:Qle,asJson:Yle,genLog:Wle,createArgsNormalizer:nse,stringify:rse,buildFormatters:ise,normalizeDestFileDescriptor:lse}});var v8=k((ANe,eC)=>{var sse={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},ase={ASC:"ASC",DESC:"DESC"};eC.exports={DEFAULT_LEVELS:sse,SORTING_ORDER:ase}});var $h=k((ONe,rC)=>{"use strict";var{lsCacheSym:ose,levelValSym:Uh,useOnlyCustomLevelsSym:use,streamSym:cse,formattersSym:pse,hooksSym:fse,levelCompSym:dse}=zu(),{noop:hse,genLog:ho}=g8(),{DEFAULT_LEVELS:Ks,SORTING_ORDER:tC}=v8(),nC={fatal:t=>{let e=ho(Ks.fatal,t);return function(...n){let r=this[cse];if(e.call(this,...n),typeof r.flushSync=="function")try{r.flushSync()}catch{}}},error:t=>ho(Ks.error,t),warn:t=>ho(Ks.warn,t),info:t=>ho(Ks.info,t),debug:t=>ho(Ks.debug,t),trace:t=>ho(Ks.trace,t)},Mh=Object.keys(Ks).reduce((t,e)=>(t[Ks[e]]=e,t),{}),mse=Object.keys(Mh).reduce((t,e)=>(t[e]='{"level":'+Number(e),t),{});function yse(t){let e=t[pse].level,{labels:n}=t.levels,r={};for(let i in n){let l=e(n[i],Number(i));r[i]=JSON.stringify(l).slice(0,-1)}return t[ose]=r,t}function gse(t,e){if(e)return!1;switch(t){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function vse(t){let{labels:e,values:n}=this.levels;if(typeof t=="number"){if(e[t]===void 0)throw Error("unknown level value"+t);t=e[t]}if(n[t]===void 0)throw Error("unknown level "+t);let r=this[Uh],i=this[Uh]=n[t],l=this[use],s=this[fse].logMethod;for(let a in n){if(i>n[a]){this[a]=hse;continue}this[a]=gse(a,l)?nC[a](s):ho(n[a],s)}this.emit("level-change",t,i,e[r],r,this)}function _se(t){let{levels:e,levelVal:n}=this;return e&&e.labels?e.labels[n]:""}function Ese(t){let{values:e}=this.levels,n=e[t];return n!==void 0&&this[dse](n,this[Uh])}function bse(t,e,n){return t===tC.DESC?e<=n:e>=n}function wse(t){return typeof t=="string"?bse.bind(null,t):t}function Sse(t=null,e=!1){let n=t?Object.keys(t).reduce((l,s)=>(l[t[s]]=s,l),{}):null,r=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),e?null:Mh,n),i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),e?null:Ks,t);return{labels:r,values:i}}function Tse(t,e,n){if(typeof t=="number"){if(![].concat(Object.keys(e||{}).map(l=>e[l]),n?[]:Object.keys(Mh).map(l=>+l),1/0).includes(t))throw Error(`default level:${t} must be included in custom levels`);return}let r=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),n?null:Ks,e);if(!(t in r))throw Error(`default level:${t} must be included in custom levels`)}function xse(t,e){let{labels:n,values:r}=t;for(let i in e){if(i in r)throw Error("levels cannot be overridden");if(e[i]in n)throw Error("pre-existing level values cannot be used for new levels")}}function Ase(t){if(typeof t!="function"&&!(typeof t=="string"&&Object.values(tC).includes(t)))throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}rC.exports={initialLsCache:mse,genLsCache:yse,levelMethods:nC,getLevel:_se,setLevel:vse,isLevelEnabled:Ese,mappings:Sse,assertNoLevelCollisions:xse,assertDefaultLevelFound:Tse,genLevelComparison:wse,assertLevelComparison:Ase}});var Bh=k((NNe,iC)=>{"use strict";iC.exports={version:"8.18.0"}});var mC=k((RNe,hC)=>{"use strict";var{EventEmitter:Ose}=require("events"),{lsCacheSym:Nse,levelValSym:Cse,setLevelSym:Vh,getLevelSym:lC,chindingsSym:qh,parsedChindingsSym:Rse,mixinSym:Ise,asJsonSym:cC,writeSym:kse,mixinMergeStrategySym:Dse,timeSym:Pse,timeSliceIndexSym:Lse,streamSym:pC,serializersSym:mo,formattersSym:Hh,errorKeySym:Fse,messageKeySym:jse,useOnlyCustomLevelsSym:Use,needsMetadataGsym:Mse,redactFmtSym:$se,stringifySym:Bse,formatOptsSym:Hse,stringifiersSym:Vse,msgPrefixSym:sC}=zu(),{getLevel:qse,setLevel:zse,isLevelEnabled:Gse,mappings:Jse,initialLsCache:Kse,genLsCache:Xse,assertNoLevelCollisions:Wse}=$h(),{asChindings:fC,asJson:Yse,buildFormatters:aC,stringify:oC}=g8(),{version:Qse}=Bh(),Zse=bh(),eae=class{},dC={constructor:eae,child:tae,bindings:nae,setBindings:rae,flush:aae,isLevelEnabled:Gse,version:Qse,get level(){return this[lC]()},set level(t){this[Vh](t)},get levelVal(){return this[Cse]},set levelVal(t){throw Error("levelVal is read-only")},[Nse]:Kse,[kse]:lae,[cC]:Yse,[lC]:qse,[Vh]:zse};Object.setPrototypeOf(dC,Ose.prototype);hC.exports=function(){return Object.create(dC)};var uC=t=>t;function tae(t,e){if(!t)throw Error("missing bindings for child Pino");e=e||{};let n=this[mo],r=this[Hh],i=Object.create(this);if(e.hasOwnProperty("serializers")===!0){i[mo]=Object.create(null);for(let c in n)i[mo][c]=n[c];let o=Object.getOwnPropertySymbols(n);for(var l=0;l{"use strict";var{hasOwnProperty:_8}=Object.prototype,go=Jh();go.configure=Jh;go.stringify=go;go.default=go;Kh.stringify=go;Kh.configure=Jh;_C.exports=go;var oae=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function v2(t){return t.length<5e3&&!oae.test(t)?`"${t}"`:JSON.stringify(t)}function zh(t){if(t.length>200)return t.sort();for(let e=1;en;)t[r]=t[r-1],r--;t[r]=n}return t}var uae=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Gh(t){return uae.call(t)!==void 0&&t.length!==0}function yC(t,e,n){t.length= 1`)}return n===void 0?1/0:n}function yo(t){return t===1?"1 item":`${t} items`}function pae(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function fae(t){if(_8.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return n=>{let r=`Object can not safely be stringified. Received type ${typeof n}`;throw typeof n!="function"&&(r+=` (${n.toString()})`),new Error(r)}}}function Jh(t){t={...t};let e=fae(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=cae(t),r=gC(t,"bigint"),i=gC(t,"deterministic"),l=vC(t,"maximumDepth"),s=vC(t,"maximumBreadth");function a(m,d,y,_,S,w){let E=d[m];switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(m)),E=_.call(d,m,E),typeof E){case"string":return v2(E);case"object":{if(E===null)return"null";if(y.indexOf(E)!==-1)return n;let g="",v=",",x=w;if(Array.isArray(E)){if(E.length===0)return"[]";if(l{"use strict";cN.exports=aie;function aie(t){let{secret:e,censor:n,compileRestore:r,serialize:i,groupRedact:l,nestedRedact:s,wildcards:a,wcLen:o}=t,u=[{secret:e,censor:n,compileRestore:r}];return i!==!1&&u.push({serialize:i}),o>0&&u.push({groupRedact:l,nestedRedact:s,wildcards:a,wcLen:o}),Object.assign(...u)}});var hN=k((xNe,dN)=>{"use strict";var fN=ZO(),oie=nN(),uie=iN(),cie=uN(),{groupRedact:pie,nestedRedact:fie}=_h(),die=pN(),hie=u8(),mie=fN(),Eh=t=>t;Eh.restore=Eh;var yie="[REDACTED]";bh.rx=hie;bh.validator=fN;dN.exports=bh;function bh(t={}){let e=Array.from(new Set(t.paths||[])),n="serialize"in t&&(t.serialize===!1||typeof t.serialize=="function")?t.serialize:JSON.stringify,r=t.remove;if(r===!0&&n!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let i=r===!0?void 0:"censor"in t?t.censor:yie,l=typeof i=="function",s=l&&i.length>1;if(e.length===0)return n||Eh;mie({paths:e,serialize:n,censor:i});let{wildcards:a,wcLen:o,secret:u}=oie({paths:e,censor:i}),c=cie({secret:u,wcLen:o}),f="strict"in t?t.strict:!0;return uie({secret:u,wcLen:o,serialize:n,strict:f,isCensorFct:l,censorFctTakesPath:s},die({secret:u,censor:i,compileRestore:c,serialize:n,groupRedact:pie,nestedRedact:fie,wildcards:a,wcLen:o}))}});var Ku=k((ANe,mN)=>{"use strict";var gie=Symbol("pino.setLevel"),vie=Symbol("pino.getLevel"),_ie=Symbol("pino.levelVal"),Eie=Symbol("pino.levelComp"),bie=Symbol("pino.useLevelLabels"),wie=Symbol("pino.useOnlyCustomLevels"),Sie=Symbol("pino.mixin"),Tie=Symbol("pino.lsCache"),xie=Symbol("pino.chindings"),Aie=Symbol("pino.asJson"),Oie=Symbol("pino.write"),Nie=Symbol("pino.redactFmt"),Cie=Symbol("pino.time"),Rie=Symbol("pino.timeSliceIndex"),Iie=Symbol("pino.stream"),kie=Symbol("pino.stringify"),Die=Symbol("pino.stringifySafe"),Pie=Symbol("pino.stringifiers"),Lie=Symbol("pino.end"),Fie=Symbol("pino.formatOpts"),jie=Symbol("pino.messageKey"),Uie=Symbol("pino.errorKey"),Mie=Symbol("pino.nestedKey"),$ie=Symbol("pino.nestedKeyStr"),Bie=Symbol("pino.mixinMergeStrategy"),Hie=Symbol("pino.msgPrefix"),Vie=Symbol("pino.wildcardFirst"),qie=Symbol.for("pino.serializers"),zie=Symbol.for("pino.formatters"),Gie=Symbol.for("pino.hooks"),Jie=Symbol.for("pino.metadata");mN.exports={setLevelSym:gie,getLevelSym:vie,levelValSym:_ie,levelCompSym:Eie,useLevelLabelsSym:bie,mixinSym:Sie,lsCacheSym:Tie,chindingsSym:xie,asJsonSym:Aie,writeSym:Oie,serializersSym:qie,redactFmtSym:Nie,timeSym:Cie,timeSliceIndexSym:Rie,streamSym:Iie,stringifySym:kie,stringifySafeSym:Die,stringifiersSym:Pie,endSym:Lie,formatOptsSym:Fie,messageKeySym:jie,errorKeySym:Uie,nestedKeySym:Mie,wildcardFirstSym:Vie,needsMetadataGsym:Jie,useOnlyCustomLevelsSym:wie,formattersSym:zie,hooksSym:Gie,nestedKeyStrSym:$ie,mixinMergeStrategySym:Bie,msgPrefixSym:Hie}});var Th=k((ONe,_N)=>{"use strict";var Sh=hN(),{redactFmtSym:Kie,wildcardFirstSym:c8}=Ku(),{rx:wh,validator:Xie}=Sh,yN=Xie({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:t=>`pino \u2013 redact paths array contains an invalid path (${t})`}),gN="[Redacted]",vN=!1;function Wie(t,e){let{paths:n,censor:r}=Yie(t),i=n.reduce((a,o)=>{wh.lastIndex=0;let u=wh.exec(o),c=wh.exec(o),f=u[1]!==void 0?u[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):u[0];if(f==="*"&&(f=c8),c===null)return a[f]=null,a;if(a[f]===null)return a;let{index:m}=c,d=`${o.substr(m,o.length-1)}`;return a[f]=a[f]||[],f!==c8&&a[f].length===0&&a[f].push(...a[c8]||[]),f===c8&&Object.keys(a).forEach(function(y){a[y]&&a[y].push(d)}),a[f].push(d),a},{}),l={[Kie]:Sh({paths:n,censor:r,serialize:e,strict:vN})},s=(...a)=>e(typeof r=="function"?r(...a):r);return[...Object.keys(i),...Object.getOwnPropertySymbols(i)].reduce((a,o)=>{if(i[o]===null)a[o]=u=>s(u,[o]);else{let u=typeof r=="function"?(c,f)=>r(c,[o,...f]):r;a[o]=Sh({paths:i[o],censor:u,serialize:e,strict:vN})}return a},l)}function Yie(t){if(Array.isArray(t))return t={paths:t,censor:gN},yN(t),t;let{paths:e,censor:n=gN,remove:r}=t;if(Array.isArray(e)===!1)throw Error("pino \u2013 redact must contain an array of strings");return r===!0&&(n=void 0),yN({paths:e,censor:n}),{paths:e,censor:n}}_N.exports=Wie});var bN=k((NNe,EN)=>{"use strict";var Qie=()=>"",Zie=()=>`,"time":${Date.now()}`,ele=()=>`,"time":${Math.round(Date.now()/1e3)}`,tle=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;EN.exports={nullTime:Qie,epochTime:Zie,unixTime:ele,isoTime:tle}});var SN=k((CNe,wN)=>{"use strict";function nle(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}wN.exports=rle;function rle(t,e,n){var r=n&&n.stringify||nle,i=1;if(typeof t=="object"&&t!==null){var l=e.length+i;if(l===1)return t;var s=new Array(l);s[0]=r(t);for(var a=1;a-1?f:0,t.charCodeAt(d+1)){case 100:case 102:if(c>=o||e[c]==null)break;f=o||e[c]==null)break;f=o||e[c]===void 0)break;f",f=d+2,d++;break}u+=r(e[c]),f=d+2,d++;break;case 115:if(c>=o)break;f{"use strict";if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let e=function(n){if((n>0&&n<1/0)===!1)throw typeof n!="number"&&typeof n!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");Atomics.wait(t,0,0,Number(n))},t=new Int32Array(new SharedArrayBuffer(4));xh.exports=e}else{let t=function(e){if((e>0&&e<1/0)===!1)throw typeof e!="number"&&typeof e!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");let r=Date.now()+Number(e);for(;r>Date.now(););};xh.exports=t}});var IN=k((INe,RN)=>{"use strict";var Lr=require("fs"),ile=require("events"),lle=require("util").inherits,TN=require("path"),Nh=Ah(),p8=100,f8=Buffer.allocUnsafe(0),sle=16*1024,xN="buffer",AN="utf8";function ON(t,e){e._opening=!0,e._writing=!0,e._asyncDrainScheduled=!1;function n(l,s){if(l){e._reopening=!1,e._writing=!1,e._opening=!1,e.sync?process.nextTick(()=>{e.listenerCount("error")>0&&e.emit("error",l)}):e.emit("error",l);return}e.fd=s,e.file=t,e._reopening=!1,e._opening=!1,e._writing=!1,e.sync?process.nextTick(()=>e.emit("ready")):e.emit("ready"),!(e._reopening||e.destroyed)&&(!e._writing&&e._len>e.minLength||e._flushPending)&&e._actualWrite()}let r=e.append?"a":"w",i=e.mode;if(e.sync)try{e.mkdir&&Lr.mkdirSync(TN.dirname(t),{recursive:!0});let l=Lr.openSync(t,r,i);n(null,l)}catch(l){throw n(l),l}else e.mkdir?Lr.mkdir(TN.dirname(t),{recursive:!0},l=>{if(l)return n(l);Lr.open(t,r,i,n)}):Lr.open(t,r,i,n)}function gs(t){if(!(this instanceof gs))return new gs(t);let{fd:e,dest:n,minLength:r,maxLength:i,maxWrite:l,sync:s,append:a=!0,mkdir:o,retryEAGAIN:u,fsync:c,contentMode:f,mode:m}=t||{};e=e||n,this._len=0,this.fd=-1,this._bufs=[],this._lens=[],this._writing=!1,this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._flushPending=!1,this._hwm=Math.max(r||0,16387),this.file=null,this.destroyed=!1,this.minLength=r||0,this.maxLength=i||0,this.maxWrite=l||sle,this.sync=s||!1,this.writable=!0,this._fsync=c||!1,this.append=a||!1,this.mode=m,this.retryEAGAIN=u||(()=>!0),this.mkdir=o||!1;let d,y;if(f===xN)this._writingBuf=f8,this.write=ule,this.flush=ple,this.flushSync=dle,this._actualWrite=mle,d=()=>Lr.writeSync(this.fd,this._writingBuf),y=()=>Lr.write(this.fd,this._writingBuf,this.release);else if(f===void 0||f===AN)this._writingBuf="",this.write=ole,this.flush=cle,this.flushSync=fle,this._actualWrite=hle,d=()=>Lr.writeSync(this.fd,this._writingBuf,"utf8"),y=()=>Lr.write(this.fd,this._writingBuf,"utf8",this.release);else throw new Error(`SonicBoom supports "${AN}" and "${xN}", but passed ${f}`);if(typeof e=="number")this.fd=e,process.nextTick(()=>this.emit("ready"));else if(typeof e=="string")ON(e,this);else throw new Error("SonicBoom supports only file descriptors and files");if(this.minLength>=this.maxWrite)throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);this.release=(_,S)=>{if(_){if((_.code==="EAGAIN"||_.code==="EBUSY")&&this.retryEAGAIN(_,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{Nh(p8),this.release(void 0,0)}catch(g){this.release(g)}else setTimeout(y,p8);else this._writing=!1,this.emit("error",_);return}this.emit("write",S);let w=Oh(this._writingBuf,this._len,S);if(this._len=w.len,this._writingBuf=w.writingBuf,this._writingBuf.length){if(!this.sync){y();return}try{do{let g=d(),v=Oh(this._writingBuf,this._len,g);this._len=v.len,this._writingBuf=v.writingBuf}while(this._writingBuf.length)}catch(g){this.release(g);return}}this._fsync&&Lr.fsyncSync(this.fd);let E=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):E>this.minLength?this._actualWrite():this._ending?E>0?this._actualWrite():(this._writing=!1,d8(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(ale,this)):this.emit("drain"))},this.on("newListener",function(_){_==="drain"&&(this._asyncDrainScheduled=!1)})}function Oh(t,e,n){return typeof t=="string"&&Buffer.byteLength(t)!==n&&(n=Buffer.from(t).subarray(0,n).toString().length),e=Math.max(e-n,0),t=t.slice(n),{writingBuf:t,len:e}}function ale(t){t.listenerCount("drain")>0&&(t._asyncDrainScheduled=!1,t.emit("drain"))}lle(gs,ile);function NN(t,e){return t.length===0?f8:t.length===1?t[0]:Buffer.concat(t,e)}function ole(t){if(this.destroyed)throw new Error("SonicBoom destroyed");let e=this._len+t.length,n=this._bufs;return this.maxLength&&e>this.maxLength?(this.emit("drop",t),this._lenthis.maxWrite?n.push(""+t):n[n.length-1]+=t,this._len=e,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._lenthis.maxLength?(this.emit("drop",t),this._lenthis.maxWrite?(n.push([t]),r.push(t.length)):(n[n.length-1].push(t),r[r.length-1]+=t.length),this._len=e,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len{this._fsync?(this._flushPending=!1,t()):Lr.fsync(this.fd,r=>{this._flushPending=!1,t(r)}),this.off("error",n)},n=r=>{this._flushPending=!1,t(r),this.off("drain",e)};this.once("drain",e),this.once("error",n)}function cle(t){if(t!=null&&typeof t!="function")throw new Error("flush cb must be a function");if(this.destroyed){let e=new Error("SonicBoom destroyed");if(t){t(e);return}throw e}if(this.minLength<=0){t?.();return}t&&CN.call(this,t),!this._writing&&(this._bufs.length===0&&this._bufs.push(""),this._actualWrite())}function ple(t){if(t!=null&&typeof t!="function")throw new Error("flush cb must be a function");if(this.destroyed){let e=new Error("SonicBoom destroyed");if(t){t(e);return}throw e}if(this.minLength<=0){t?.();return}t&&CN.call(this,t),!this._writing&&(this._bufs.length===0&&(this._bufs.push([]),this._lens.push(0)),this._actualWrite())}gs.prototype.reopen=function(t){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(t)});return}if(this._ending)return;if(!this.file)throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let e=this.fd;this.once("ready",()=>{e!==this.fd&&Lr.close(e,n=>{if(n)return this.emit("error",n)})}),ON(t||this.file,this)};gs.prototype.end=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}this._ending||(this._ending=!0,!this._writing&&(this._len>0&&this.fd>=0?this._actualWrite():d8(this)))};function fle(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");let t="";for(;this._bufs.length||t;){t.length<=0&&(t=this._bufs[0]);try{let e=Lr.writeSync(this.fd,t,"utf8"),n=Oh(t,this._len,e);t=n.writingBuf,this._len=n.len,t.length<=0&&this._bufs.shift()}catch(e){if((e.code==="EAGAIN"||e.code==="EBUSY")&&!this.retryEAGAIN(e,t.length,this._len-t.length))throw e;Nh(p8)}}try{Lr.fsyncSync(this.fd)}catch{}}function dle(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift([this._writingBuf]),this._writingBuf=f8);let t=f8;for(;this._bufs.length||t.length;){t.length<=0&&(t=NN(this._bufs[0],this._lens[0]));try{let e=Lr.writeSync(this.fd,t);t=t.subarray(e),this._len=Math.max(this._len-e,0),t.length<=0&&(this._bufs.shift(),this._lens.shift())}catch(e){if((e.code==="EAGAIN"||e.code==="EBUSY")&&!this.retryEAGAIN(e,t.length,this._len-t.length))throw e;Nh(p8)}}}gs.prototype.destroy=function(){this.destroyed||d8(this)};function hle(){let t=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf||this._bufs.shift()||"",this.sync)try{let e=Lr.writeSync(this.fd,this._writingBuf,"utf8");t(null,e)}catch(e){t(e)}else Lr.write(this.fd,this._writingBuf,"utf8",t)}function mle(){let t=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:NN(this._bufs.shift(),this._lens.shift()),this.sync)try{let e=Lr.writeSync(this.fd,this._writingBuf);t(null,e)}catch(e){t(e)}else Lr.write(this.fd,this._writingBuf,t)}function d8(t){if(t.fd===-1){t.once("ready",d8.bind(null,t));return}t.destroyed=!0,t._bufs=[],t._lens=[],Lr.fsync(t.fd,e);function e(){t.fd!==1&&t.fd!==2?Lr.close(t.fd,n):n()}function n(r){if(r){t.emit("error",r);return}t._ending&&!t._writing&&t.emit("finish"),t.emit("close")}}gs.SonicBoom=gs;gs.default=gs;RN.exports=gs});var Ch=k((kNe,FN)=>{"use strict";var vs={exit:[],beforeExit:[]},kN={exit:vle,beforeExit:_le},Xu;function yle(){Xu===void 0&&(Xu=new FinalizationRegistry(Ele))}function gle(t){vs[t].length>0||process.on(t,kN[t])}function DN(t){vs[t].length>0||(process.removeListener(t,kN[t]),vs.exit.length===0&&vs.beforeExit.length===0&&(Xu=void 0))}function vle(){PN("exit")}function _le(){PN("beforeExit")}function PN(t){for(let e of vs[t]){let n=e.deref(),r=e.fn;n!==void 0&&r(n,t)}vs[t]=[]}function Ele(t){for(let e of["exit","beforeExit"]){let n=vs[e].indexOf(t);vs[e].splice(n,n+1),DN(e)}}function LN(t,e,n){if(e===void 0)throw new Error("the object can't be undefined");gle(t);let r=new WeakRef(e);r.fn=n,yle(),Xu.register(e,r),vs[t].push(r)}function ble(t,e){LN("exit",t,e)}function wle(t,e){LN("beforeExit",t,e)}function Sle(t){if(Xu!==void 0){Xu.unregister(t);for(let e of["exit","beforeExit"])vs[e]=vs[e].filter(n=>{let r=n.deref();return r&&r!==t}),DN(e)}}FN.exports={register:ble,registerBeforeExit:wle,unregister:Sle}});var jN=k((DNe,Tle)=>{Tle.exports={name:"thread-stream",version:"2.4.1",description:"A streaming way to send data to a Node.js Worker Thread",main:"index.js",types:"index.d.ts",dependencies:{"real-require":"^0.2.0"},devDependencies:{"@types/node":"^20.1.0","@types/tap":"^15.0.0",desm:"^1.3.0",fastbench:"^1.0.1",husky:"^8.0.1","pino-elasticsearch":"^6.0.0","sonic-boom":"^3.0.0",standard:"^17.0.0",tap:"^16.2.0","ts-node":"^10.8.0",typescript:"^4.7.2","why-is-node-running":"^2.2.2"},scripts:{test:"standard && npm run transpile && tap test/*.test.*js && tap --ts test/*.test.*ts","test:ci":"standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts","test:ci:js":'tap --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*js"',"test:ci:ts":'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"',"test:yarn":'npm run transpile && tap "test/**/*.test.js" --no-check-coverage',transpile:"sh ./test/ts/transpile.sh",prepare:"husky install"},standard:{ignore:["test/ts/**/*"]},repository:{type:"git",url:"git+https://github.com/mcollina/thread-stream.git"},keywords:["worker","thread","threads","stream"],author:"Matteo Collina ",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var MN=k((PNe,UN)=>{"use strict";function xle(t,e,n,r,i){let l=Date.now()+r,s=Atomics.load(t,e);if(s===n){i(null,"ok");return}let a=s,o=u=>{Date.now()>l?i(null,"timed-out"):setTimeout(()=>{a=s,s=Atomics.load(t,e),s===a?o(u>=1e3?1e3:u*2):s===n?i(null,"ok"):i(null,"not-equal")},u)};o(1)}function Ale(t,e,n,r,i){let l=Date.now()+r,s=Atomics.load(t,e);if(s!==n){i(null,"ok");return}let a=o=>{Date.now()>l?i(null,"timed-out"):setTimeout(()=>{s=Atomics.load(t,e),s!==n?i(null,"ok"):a(o>=1e3?1e3:o*2)},o)};a(1)}UN.exports={wait:xle,waitDiff:Ale}});var BN=k((LNe,$N)=>{"use strict";$N.exports={WRITE_INDEX:4,READ_INDEX:8}});var GN=k((FNe,zN)=>{"use strict";var{version:Ole}=jN(),{EventEmitter:Nle}=require("events"),{Worker:Cle}=require("worker_threads"),{join:Rle}=require("path"),{pathToFileURL:Ile}=require("url"),{wait:kle}=MN(),{WRITE_INDEX:dl,READ_INDEX:Js}=BN(),Dle=require("buffer"),Ple=require("assert"),ye=Symbol("kImpl"),Lle=Dle.constants.MAX_STRING_LENGTH,u4=class{constructor(e){this._value=e}deref(){return this._value}},m8=class{register(){}unregister(){}},Fle=process.env.NODE_V8_COVERAGE?m8:global.FinalizationRegistry||m8,jle=process.env.NODE_V8_COVERAGE?u4:global.WeakRef||u4,HN=new Fle(t=>{t.exited||t.terminate()});function Ule(t,e){let{filename:n,workerData:r}=e,l=("__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{})["thread-stream-worker"]||Rle(__dirname,"lib","worker.js"),s=new Cle(l,{...e.workerOpts,trackUnmanagedFds:!1,workerData:{filename:n.indexOf("file://")===0?n:Ile(n).href,dataBuf:t[ye].dataBuf,stateBuf:t[ye].stateBuf,workerData:{$context:{threadStreamVersion:Ole},...r}}});return s.stream=new u4(t),s.on("message",Mle),s.on("exit",qN),HN.register(t,s),s}function VN(t){Ple(!t[ye].sync),t[ye].needDrain&&(t[ye].needDrain=!1,t.emit("drain"))}function h8(t){let e=Atomics.load(t[ye].state,dl),n=t[ye].data.length-e;if(n>0){if(t[ye].buf.length===0){t[ye].flushing=!1,t[ye].ending?Ph(t):t[ye].needDrain&&process.nextTick(VN,t);return}let r=t[ye].buf.slice(0,n),i=Buffer.byteLength(r);i<=n?(t[ye].buf=t[ye].buf.slice(n),y8(t,r,h8.bind(null,t))):t.flush(()=>{if(!t.destroyed){for(Atomics.store(t[ye].state,Js,0),Atomics.store(t[ye].state,dl,0);i>t[ye].data.length;)n=n/2,r=t[ye].buf.slice(0,n),i=Buffer.byteLength(r);t[ye].buf=t[ye].buf.slice(n),y8(t,r,h8.bind(null,t))}})}else if(n===0){if(e===0&&t[ye].buf.length===0)return;t.flush(()=>{Atomics.store(t[ye].state,Js,0),Atomics.store(t[ye].state,dl,0),h8(t)})}else Ks(t,new Error("overwritten"))}function Mle(t){let e=this.stream.deref();if(e===void 0){this.exited=!0,this.terminate();return}switch(t.code){case"READY":this.stream=new jle(e),e.flush(()=>{e[ye].ready=!0,e.emit("ready")});break;case"ERROR":Ks(e,t.err);break;case"EVENT":Array.isArray(t.args)?e.emit(t.name,...t.args):e.emit(t.name,t.args);break;case"WARNING":process.emitWarning(t.err);break;default:Ks(e,new Error("this should not happen: "+t.code))}}function qN(t){let e=this.stream.deref();e!==void 0&&(HN.unregister(e),e.worker.exited=!0,e.worker.off("exit",qN),Ks(e,t!==0?new Error("the worker thread exited"):null))}var Ih=class extends Nle{constructor(e={}){if(super(),e.bufferSize<4)throw new Error("bufferSize must at least fit a 4-byte utf-8 char");this[ye]={},this[ye].stateBuf=new SharedArrayBuffer(128),this[ye].state=new Int32Array(this[ye].stateBuf),this[ye].dataBuf=new SharedArrayBuffer(e.bufferSize||4*1024*1024),this[ye].data=Buffer.from(this[ye].dataBuf),this[ye].sync=e.sync||!1,this[ye].ending=!1,this[ye].ended=!1,this[ye].needDrain=!1,this[ye].destroyed=!1,this[ye].flushing=!1,this[ye].ready=!1,this[ye].finished=!1,this[ye].errored=null,this[ye].closed=!1,this[ye].buf="",this.worker=Ule(this,e)}write(e){if(this[ye].destroyed)return kh(this,new Error("the worker has exited")),!1;if(this[ye].ending)return kh(this,new Error("the worker is ending")),!1;if(this[ye].flushing&&this[ye].buf.length+e.length>=Lle)try{Rh(this),this[ye].flushing=!0}catch(n){return Ks(this,n),!1}if(this[ye].buf+=e,this[ye].sync)try{return Rh(this),!0}catch(n){return Ks(this,n),!1}return this[ye].flushing||(this[ye].flushing=!0,setImmediate(h8,this)),this[ye].needDrain=this[ye].data.length-this[ye].buf.length-Atomics.load(this[ye].state,dl)<=0,!this[ye].needDrain}end(){this[ye].destroyed||(this[ye].ending=!0,Ph(this))}flush(e){if(this[ye].destroyed){typeof e=="function"&&process.nextTick(e,new Error("the worker has exited"));return}let n=Atomics.load(this[ye].state,dl);kle(this[ye].state,Js,n,1/0,(r,i)=>{if(r){Ks(this,r),process.nextTick(e,r);return}if(i==="not-equal"){this.flush(e);return}process.nextTick(e)})}flushSync(){this[ye].destroyed||(Rh(this),Dh(this))}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[ye].ready}get destroyed(){return this[ye].destroyed}get closed(){return this[ye].closed}get writable(){return!this[ye].destroyed&&!this[ye].ending}get writableEnded(){return this[ye].ending}get writableFinished(){return this[ye].finished}get writableNeedDrain(){return this[ye].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[ye].errored}};function kh(t,e){setImmediate(()=>{t.emit("error",e)})}function Ks(t,e){t[ye].destroyed||(t[ye].destroyed=!0,e&&(t[ye].errored=e,kh(t,e)),t.worker.exited?setImmediate(()=>{t[ye].closed=!0,t.emit("close")}):t.worker.terminate().catch(()=>{}).then(()=>{t[ye].closed=!0,t.emit("close")}))}function y8(t,e,n){let r=Atomics.load(t[ye].state,dl),i=Buffer.byteLength(e);return t[ye].data.write(e,r),Atomics.store(t[ye].state,dl,r+i),Atomics.notify(t[ye].state,dl),n(),!0}function Ph(t){if(!(t[ye].ended||!t[ye].ending||t[ye].flushing)){t[ye].ended=!0;try{t.flushSync();let e=Atomics.load(t[ye].state,Js);Atomics.store(t[ye].state,dl,-1),Atomics.notify(t[ye].state,dl);let n=0;for(;e!==-1;){if(Atomics.wait(t[ye].state,Js,e,1e3),e=Atomics.load(t[ye].state,Js),e===-2){Ks(t,new Error("end() failed"));return}if(++n===10){Ks(t,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{t[ye].finished=!0,t.emit("finish")})}catch(e){Ks(t,e)}}}function Rh(t){let e=()=>{t[ye].ending?Ph(t):t[ye].needDrain&&process.nextTick(VN,t)};for(t[ye].flushing=!1;t[ye].buf.length!==0;){let n=Atomics.load(t[ye].state,dl),r=t[ye].data.length-n;if(r===0){Dh(t),Atomics.store(t[ye].state,Js,0),Atomics.store(t[ye].state,dl,0);continue}else if(r<0)throw new Error("overwritten");let i=t[ye].buf.slice(0,r),l=Buffer.byteLength(i);if(l<=r)t[ye].buf=t[ye].buf.slice(r),y8(t,i,e);else{for(Dh(t),Atomics.store(t[ye].state,Js,0),Atomics.store(t[ye].state,dl,0);l>t[ye].buf.length;)r=r/2,i=t[ye].buf.slice(0,r),l=Buffer.byteLength(i);t[ye].buf=t[ye].buf.slice(r),y8(t,i,e)}}}function Dh(t){if(t[ye].flushing)throw new Error("unable to flush while flushing");let e=Atomics.load(t[ye].state,dl),n=0;for(;;){let r=Atomics.load(t[ye].state,Js);if(r===-2)throw Error("_flushSync failed");if(r!==e)Atomics.wait(t[ye].state,Js,r,1e3);else break;if(++n===10)throw new Error("_flushSync took too long (10s)")}}zN.exports=Ih});var jh=k((jNe,JN)=>{"use strict";var{createRequire:$le}=require("module"),Ble=gh(),{join:Lh,isAbsolute:Hle,sep:Vle}=require("path"),qle=Ah(),Fh=Ch(),zle=GN();function Gle(t){Fh.register(t,Kle),Fh.registerBeforeExit(t,Xle),t.on("close",function(){Fh.unregister(t)})}function Jle(t,e,n){let r=new zle({filename:t,workerData:e,workerOpts:n});r.on("ready",i),r.on("close",function(){process.removeListener("exit",l)}),process.on("exit",l);function i(){process.removeListener("exit",l),r.unref(),n.autoEnd!==!1&&Gle(r)}function l(){r.closed||(r.flushSync(),qle(100),r.end())}return r}function Kle(t){t.ref(),t.flushSync(),t.end(),t.once("close",function(){t.unref()})}function Xle(t){t.flushSync()}function Wle(t){let{pipeline:e,targets:n,levels:r,dedupe:i,options:l={},worker:s={},caller:a=Ble()}=t,o=typeof a=="string"?[a]:a,u="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{},c=t.target;if(c&&n)throw new Error("only one of target or targets can be specified");return n?(c=u["pino-worker"]||Lh(__dirname,"worker.js"),l.targets=n.map(m=>({...m,target:f(m.target)}))):e&&(c=u["pino-pipeline-worker"]||Lh(__dirname,"worker-pipeline.js"),l.targets=e.map(m=>({...m,target:f(m.target)}))),r&&(l.levels=r),i&&(l.dedupe=i),Jle(f(c),l,s);function f(m){if(m=u[m]||m,Hle(m)||m.indexOf("file://")===0)return m;if(m==="pino/file")return Lh(__dirname,"..","file.js");let d;for(let y of o)try{let _=y==="node:repl"?process.cwd()+Vle:y;d=$le(_).resolve(m);break}catch{continue}if(!d)throw new Error(`unable to determine transport target for "${m}"`);return d}}JN.exports=Wle});var _8=k((UNe,iC)=>{"use strict";var KN=SN(),{mapHttpRequest:Yle,mapHttpResponse:Qle}=yh(),Mh=IN(),XN=Ch(),{lsCacheSym:Zle,chindingsSym:QN,writeSym:WN,serializersSym:ZN,formatOptsSym:YN,endSym:ese,stringifiersSym:eC,stringifySym:tC,stringifySafeSym:$h,wildcardFirstSym:nC,nestedKeySym:tse,formattersSym:rC,messageKeySym:nse,errorKeySym:rse,nestedKeyStrSym:ise,msgPrefixSym:g8}=Ku(),{isMainThread:lse}=require("worker_threads"),sse=jh();function Wu(){}function ase(t,e){if(!e)return n;return function(...i){e.call(this,i,n,t)};function n(r,...i){if(typeof r=="object"){let l=r;r!==null&&(r.method&&r.headers&&r.socket?r=Yle(r):typeof r.setHeader=="function"&&(r=Qle(r)));let s;l===null&&i.length===0?s=[null]:(l=i.shift(),s=i),typeof this[g8]=="string"&&l!==void 0&&l!==null&&(l=this[g8]+l),this[WN](r,KN(l,s,this[YN]),t)}else{let l=r===void 0?i.shift():r;typeof this[g8]=="string"&&l!==void 0&&l!==null&&(l=this[g8]+l),this[WN](null,KN(l,i,this[YN]),t)}}}function Uh(t){let e="",n=0,r=!1,i=255,l=t.length;if(l>100)return JSON.stringify(t);for(var s=0;s=32;s++)i=t.charCodeAt(s),(i===34||i===92)&&(e+=t.slice(n,s)+"\\",n=s,r=!0);return r?e+=t.slice(n):e=t,i<32?JSON.stringify(t):'"'+e+'"'}function ose(t,e,n,r){let i=this[tC],l=this[$h],s=this[eC],a=this[ese],o=this[QN],u=this[ZN],c=this[rC],f=this[nse],m=this[rse],d=this[Zle][n]+r;d=d+o;let y;c.log&&(t=c.log(t));let _=s[nC],S="";for(let E in t)if(y=t[E],Object.prototype.hasOwnProperty.call(t,E)&&y!==void 0){u[E]?y=u[E](y):E===m&&u.err&&(y=u.err(y));let g=s[E]||_;switch(typeof y){case"undefined":case"function":continue;case"number":Number.isFinite(y)===!1&&(y=null);case"boolean":g&&(y=g(y));break;case"string":y=(g||Uh)(y);break;default:y=(g||i)(y,l)}if(y===void 0)continue;let v=Uh(E);S+=","+v+":"+y}let w="";if(e!==void 0){y=u[f]?u[f](e):e;let E=s[f]||_;switch(typeof y){case"function":break;case"number":Number.isFinite(y)===!1&&(y=null);case"boolean":E&&(y=E(y)),w=',"'+f+'":'+y;break;case"string":y=(E||Uh)(y),w=',"'+f+'":'+y;break;default:y=(E||i)(y,l),w=',"'+f+'":'+y}}return this[tse]&&S?d+this[ise]+S.slice(1)+"}"+w+a:d+S+w+a}function use(t,e){let n,r=t[QN],i=t[tC],l=t[$h],s=t[eC],a=s[nC],o=t[ZN],u=t[rC].bindings;e=u(e);for(let c in e)if(n=e[c],(c!=="level"&&c!=="serializers"&&c!=="formatters"&&c!=="customLevels"&&e.hasOwnProperty(c)&&n!==void 0)===!0){if(n=o[c]?o[c](n):n,n=(s[c]||a||i)(n,l),n===void 0)continue;r+=',"'+c+'":'+n}return r}function cse(t){return t.write!==t.constructor.prototype.write}var pse=process.env.NODE_V8_COVERAGE||process.env.V8_COVERAGE;function v8(t){let e=new Mh(t);return e.on("error",n),!pse&&!t.sync&&lse&&(XN.register(e,fse),e.on("close",function(){XN.unregister(e)})),e;function n(r){if(r.code==="EPIPE"){e.write=Wu,e.end=Wu,e.flushSync=Wu,e.destroy=Wu;return}e.removeListener("error",n),e.emit("error",r)}}function fse(t,e){t.destroyed||(e==="beforeExit"?(t.flush(),t.on("drain",function(){t.end()})):t.flushSync())}function dse(t){return function(n,r,i={},l){if(typeof i=="string")l=v8({dest:i}),i={};else if(typeof l=="string"){if(i&&i.transport)throw Error("only one of option.transport or stream can be specified");l=v8({dest:l})}else if(i instanceof Mh||i.writable||i._writableState)l=i,i={};else if(i.transport){if(i.transport instanceof Mh||i.transport.writable||i.transport._writableState)throw Error("option.transport do not allow stream, please pass to option directly. e.g. pino(transport)");if(i.transport.targets&&i.transport.targets.length&&i.formatters&&typeof i.formatters.level=="function")throw Error("option.transport.targets do not allow custom level formatters");let o;i.customLevels&&(o=i.useOnlyCustomLevels?i.customLevels:Object.assign({},i.levels,i.customLevels)),l=sse({caller:r,...i.transport,levels:o})}if(i=Object.assign({},t,i),i.serializers=Object.assign({},t.serializers,i.serializers),i.formatters=Object.assign({},t.formatters,i.formatters),i.prettyPrint)throw new Error("prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)");let{enabled:s,onChild:a}=i;return s===!1&&(i.level="silent"),a||(i.onChild=Wu),l||(cse(process.stdout)?l=process.stdout:l=v8({fd:process.stdout.fd||1})),{opts:i,stream:l}}}function hse(t,e){try{return JSON.stringify(t)}catch{try{return(e||this[$h])(t)}catch{return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function mse(t,e,n){return{level:t,bindings:e,log:n}}function yse(t){let e=Number(t);return typeof t=="string"&&Number.isFinite(e)?e:t===void 0?1:t}iC.exports={noop:Wu,buildSafeSonicBoom:v8,asChindings:use,asJson:ose,genLog:ase,createArgsNormalizer:dse,stringify:hse,buildFormatters:mse,normalizeDestFileDescriptor:yse}});var E8=k((MNe,lC)=>{var gse={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},vse={ASC:"ASC",DESC:"DESC"};lC.exports={DEFAULT_LEVELS:gse,SORTING_ORDER:vse}});var Vh=k(($Ne,oC)=>{"use strict";var{lsCacheSym:_se,levelValSym:Bh,useOnlyCustomLevelsSym:Ese,streamSym:bse,formattersSym:wse,hooksSym:Sse,levelCompSym:Tse}=Ku(),{noop:xse,genLog:g3}=_8(),{DEFAULT_LEVELS:Xs,SORTING_ORDER:sC}=E8(),aC={fatal:t=>{let e=g3(Xs.fatal,t);return function(...n){let r=this[bse];if(e.call(this,...n),typeof r.flushSync=="function")try{r.flushSync()}catch{}}},error:t=>g3(Xs.error,t),warn:t=>g3(Xs.warn,t),info:t=>g3(Xs.info,t),debug:t=>g3(Xs.debug,t),trace:t=>g3(Xs.trace,t)},Hh=Object.keys(Xs).reduce((t,e)=>(t[Xs[e]]=e,t),{}),Ase=Object.keys(Hh).reduce((t,e)=>(t[e]='{"level":'+Number(e),t),{});function Ose(t){let e=t[wse].level,{labels:n}=t.levels,r={};for(let i in n){let l=e(n[i],Number(i));r[i]=JSON.stringify(l).slice(0,-1)}return t[_se]=r,t}function Nse(t,e){if(e)return!1;switch(t){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function Cse(t){let{labels:e,values:n}=this.levels;if(typeof t=="number"){if(e[t]===void 0)throw Error("unknown level value"+t);t=e[t]}if(n[t]===void 0)throw Error("unknown level "+t);let r=this[Bh],i=this[Bh]=n[t],l=this[Ese],s=this[Sse].logMethod;for(let a in n){if(i>n[a]){this[a]=xse;continue}this[a]=Nse(a,l)?aC[a](s):g3(n[a],s)}this.emit("level-change",t,i,e[r],r,this)}function Rse(t){let{levels:e,levelVal:n}=this;return e&&e.labels?e.labels[n]:""}function Ise(t){let{values:e}=this.levels,n=e[t];return n!==void 0&&this[Tse](n,this[Bh])}function kse(t,e,n){return t===sC.DESC?e<=n:e>=n}function Dse(t){return typeof t=="string"?kse.bind(null,t):t}function Pse(t=null,e=!1){let n=t?Object.keys(t).reduce((l,s)=>(l[t[s]]=s,l),{}):null,r=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),e?null:Hh,n),i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),e?null:Xs,t);return{labels:r,values:i}}function Lse(t,e,n){if(typeof t=="number"){if(![].concat(Object.keys(e||{}).map(l=>e[l]),n?[]:Object.keys(Hh).map(l=>+l),1/0).includes(t))throw Error(`default level:${t} must be included in custom levels`);return}let r=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),n?null:Xs,e);if(!(t in r))throw Error(`default level:${t} must be included in custom levels`)}function Fse(t,e){let{labels:n,values:r}=t;for(let i in e){if(i in r)throw Error("levels cannot be overridden");if(e[i]in n)throw Error("pre-existing level values cannot be used for new levels")}}function jse(t){if(typeof t!="function"&&!(typeof t=="string"&&Object.values(sC).includes(t)))throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}oC.exports={initialLsCache:Ase,genLsCache:Ose,levelMethods:aC,getLevel:Rse,setLevel:Cse,isLevelEnabled:Ise,mappings:Pse,assertNoLevelCollisions:Fse,assertDefaultLevelFound:Lse,genLevelComparison:Dse,assertLevelComparison:jse}});var qh=k((BNe,uC)=>{"use strict";uC.exports={version:"8.18.0"}});var EC=k((VNe,_C)=>{"use strict";var{EventEmitter:Use}=require("events"),{lsCacheSym:Mse,levelValSym:$se,setLevelSym:Gh,getLevelSym:cC,chindingsSym:Jh,parsedChindingsSym:Bse,mixinSym:Hse,asJsonSym:mC,writeSym:Vse,mixinMergeStrategySym:qse,timeSym:zse,timeSliceIndexSym:Gse,streamSym:yC,serializersSym:v3,formattersSym:zh,errorKeySym:Jse,messageKeySym:Kse,useOnlyCustomLevelsSym:Xse,needsMetadataGsym:Wse,redactFmtSym:Yse,stringifySym:Qse,formatOptsSym:Zse,stringifiersSym:eae,msgPrefixSym:pC}=Ku(),{getLevel:tae,setLevel:nae,isLevelEnabled:rae,mappings:iae,initialLsCache:lae,genLsCache:sae,assertNoLevelCollisions:aae}=Vh(),{asChindings:gC,asJson:oae,buildFormatters:fC,stringify:dC}=_8(),{version:uae}=qh(),cae=Th(),pae=class{},vC={constructor:pae,child:fae,bindings:dae,setBindings:hae,flush:vae,isLevelEnabled:rae,version:uae,get level(){return this[cC]()},set level(t){this[Gh](t)},get levelVal(){return this[$se]},set levelVal(t){throw Error("levelVal is read-only")},[Mse]:lae,[Vse]:yae,[mC]:oae,[cC]:tae,[Gh]:nae};Object.setPrototypeOf(vC,Use.prototype);_C.exports=function(){return Object.create(vC)};var hC=t=>t;function fae(t,e){if(!t)throw Error("missing bindings for child Pino");e=e||{};let n=this[v3],r=this[zh],i=Object.create(this);if(e.hasOwnProperty("serializers")===!0){i[v3]=Object.create(null);for(let c in n)i[v3][c]=n[c];let o=Object.getOwnPropertySymbols(n);for(var l=0;l{"use strict";var{hasOwnProperty:b8}=Object.prototype,E3=Wh();E3.configure=Wh;E3.stringify=E3;E3.default=E3;Yh.stringify=E3;Yh.configure=Wh;TC.exports=E3;var _ae=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function _2(t){return t.length<5e3&&!_ae.test(t)?`"${t}"`:JSON.stringify(t)}function Kh(t){if(t.length>200)return t.sort();for(let e=1;en;)t[r]=t[r-1],r--;t[r]=n}return t}var Eae=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Xh(t){return Eae.call(t)!==void 0&&t.length!==0}function bC(t,e,n){t.length= 1`)}return n===void 0?1/0:n}function _3(t){return t===1?"1 item":`${t} items`}function wae(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function Sae(t){if(b8.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return n=>{let r=`Object can not safely be stringified. Received type ${typeof n}`;throw typeof n!="function"&&(r+=` (${n.toString()})`),new Error(r)}}}function Wh(t){t={...t};let e=Sae(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=bae(t),r=wC(t,"bigint"),i=wC(t,"deterministic"),l=SC(t,"maximumDepth"),s=SC(t,"maximumBreadth");function a(m,d,y,_,S,w){let E=d[m];switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(m)),E=_.call(d,m,E),typeof E){case"string":return _2(E);case"object":{if(E===null)return"null";if(y.indexOf(E)!==-1)return n;let g="",v=",",x=w;if(Array.isArray(E)){if(E.length===0)return"[]";if(ls){let ce=E.length-s-1;g+=`${v}"... ${yo(ce)} not stringified"`}return S!==""&&(g+=`
+${w}`);let te=Math.min(E.length,s),Q=0;for(;Qs){let ce=E.length-s-1;g+=`${v}"... ${_3(ce)} not stringified"`}return S!==""&&(g+=`
${x}`),y.pop(),`[${g}]`}let O=Object.keys(E),N=O.length;if(N===0)return"{}";if(ls){let te=N-s;g+=`${U}"...":${R}"${yo(te)} not stringified"`,U=v}return S!==""&&U.length>1&&(g=`
+${w}`,R=" ");let F=Math.min(N,s);i&&!Xh(E)&&(O=Kh(O)),y.push(E);for(let te=0;tes){let te=N-s;g+=`${U}"...":${R}"${_3(te)} not stringified"`,U=v}return S!==""&&U.length>1&&(g=`
${w}${g}
-${x}`),y.pop(),`{${g}}`}case"number":return isFinite(E)?String(E):e?e(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(E);default:return e?e(E):void 0}}function o(m,d,y,_,S,w){switch(typeof d=="object"&&d!==null&&typeof d.toJSON=="function"&&(d=d.toJSON(m)),typeof d){case"string":return v2(d);case"object":{if(d===null)return"null";if(y.indexOf(d)!==-1)return n;let E=w,g="",v=",";if(Array.isArray(d)){if(d.length===0)return"[]";if(ls){let F=d.length-s-1;g+=`${v}"... ${yo(F)} not stringified"`}return S!==""&&(g+=`
+${w}`);let N=Math.min(d.length,s),R=0;for(;Rs){let F=d.length-s-1;g+=`${v}"... ${_3(F)} not stringified"`}return S!==""&&(g+=`
${E}`),y.pop(),`[${g}]`}y.push(d);let x="";S!==""&&(w+=S,v=`,
-${w}`,x=" ");let O="";for(let N of _){let R=o(N,d[N],y,_,S,w);R!==void 0&&(g+=`${O}${v2(N)}:${x}${R}`,O=v)}return S!==""&&O.length>1&&(g=`
+${w}`,x=" ");let O="";for(let N of _){let R=o(N,d[N],y,_,S,w);R!==void 0&&(g+=`${O}${_2(N)}:${x}${R}`,O=v)}return S!==""&&O.length>1&&(g=`
${w}${g}
-${E}`),y.pop(),`{${g}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(d);default:return e?e(d):void 0}}function u(m,d,y,_,S){switch(typeof d){case"string":return v2(d);case"object":{if(d===null)return"null";if(typeof d.toJSON=="function"){if(d=d.toJSON(m),typeof d!="object")return u(m,d,y,_,S);if(d===null)return"null"}if(y.indexOf(d)!==-1)return n;let w=S;if(Array.isArray(d)){if(d.length===0)return"[]";if(ls){let W=d.length-s-1;R+=`${U}"... ${yo(W)} not stringified"`}return R+=`
+${S}`,F=Math.min(d.length,s),te=0;for(;tes){let W=d.length-s-1;R+=`${U}"... ${_3(W)} not stringified"`}return R+=`
${w}`,y.pop(),`[${R}]`}let E=Object.keys(d),g=E.length;if(g===0)return"{}";if(ls){let R=g-s;x+=`${O}"...": "${yo(R)} not stringified"`,O=v}return O!==""&&(x=`
+${S}`,x="",O="",N=Math.min(g,s);Xh(d)&&(x+=bC(d,v,s),E=E.slice(d.length),N-=d.length,O=v),i&&(E=Kh(E)),y.push(d);for(let R=0;Rs){let R=g-s;x+=`${O}"...": "${_3(R)} not stringified"`,O=v}return O!==""&&(x=`
${S}${x}
-${w}`),y.pop(),`{${x}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(d);default:return e?e(d):void 0}}function c(m,d,y){switch(typeof d){case"string":return v2(d);case"object":{if(d===null)return"null";if(typeof d.toJSON=="function"){if(d=d.toJSON(m),typeof d!="object")return c(m,d,y);if(d===null)return"null"}if(y.indexOf(d)!==-1)return n;let _="";if(Array.isArray(d)){if(d.length===0)return"[]";if(ls){let N=d.length-s-1;_+=`,"... ${yo(N)} not stringified"`}return y.pop(),`[${_}]`}let S=Object.keys(d),w=S.length;if(w===0)return"{}";if(ls){let v=w-s;_+=`${E}"...":"${yo(v)} not stringified"`}return y.pop(),`{${_}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(d);default:return e?e(d):void 0}}function f(m,d,y){if(arguments.length>1){let _="";if(typeof y=="number"?_=" ".repeat(Math.min(y,10)):typeof y=="string"&&(_=y.slice(0,10)),d!=null){if(typeof d=="function")return a("",{"":m},[],d,_,"");if(Array.isArray(d))return o("",m,[],pae(d),_,"")}if(_.length!==0)return u("",m,[],_,"")}return c("",m,[])}return f}});var SC=k((INe,wC)=>{"use strict";var Xh=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:bC}=v8(),dae=bC.info;function hae(t,e){let n=0;t=t||[],e=e||{dedupe:!1};let r=Object.create(bC);r.silent=1/0,e.levels&&typeof e.levels=="object"&&Object.keys(e.levels).forEach(c=>{r[c]=e.levels[c]});let i={write:l,add:a,flushSync:s,end:o,minLevel:0,streams:[],clone:u,[Xh]:!0,streamLevels:r};return Array.isArray(t)?t.forEach(a,i):a.call(i,t),t=null,i;function l(c){let f,m=this.lastLevel,{streams:d}=this,y=0,_;for(let S=yae(d.length,e.dedupe);vae(S,d.length,e.dedupe);S=gae(S,e.dedupe))if(f=d[S],f.level<=m){if(y!==0&&y!==f.level)break;if(_=f.stream,_[Xh]){let{lastTime:w,lastMsg:E,lastObj:g,lastLogger:v}=this;_.lastLevel=m,_.lastTime=w,_.lastMsg=E,_.lastObj=g,_.lastLogger=v}_.write(c),e.dedupe&&(y=f.level)}else if(!e.dedupe)break}function s(){for(let{stream:c}of this.streams)typeof c.flushSync=="function"&&c.flushSync()}function a(c){if(!c)return i;let f=typeof c.write=="function"||c.stream,m=c.write?c:c.stream;if(!f)throw Error("stream object needs to implement either StreamEntry or DestinationStream interface");let{streams:d,streamLevels:y}=this,_;typeof c.levelVal=="number"?_=c.levelVal:typeof c.level=="string"?_=y[c.level]:typeof c.level=="number"?_=c.level:_=dae;let S={stream:m,level:_,levelVal:void 0,id:n++};return d.unshift(S),d.sort(mae),this.minLevel=d[0].level,i}function o(){for(let{stream:c}of this.streams)typeof c.flushSync=="function"&&c.flushSync(),c.end()}function u(c){let f=new Array(this.streams.length);for(let m=0;m=0:t{"use strict";var _ae=require("os"),IC=dh(),Eae=hh(),bae=bh(),kC=yN(),wae=mC(),DC=zu(),{configure:Sae}=EC(),{assertDefaultLevelFound:Tae,mappings:PC,genLsCache:xae,genLevelComparison:Aae,assertLevelComparison:Oae}=$h(),{DEFAULT_LEVELS:Nae,SORTING_ORDER:Cae}=v8(),{createArgsNormalizer:Rae,asChindings:Iae,buildSafeSonicBoom:TC,buildFormatters:kae,stringify:Wh,normalizeDestFileDescriptor:xC,noop:Dae}=g8(),{version:Pae}=Bh(),{chindingsSym:AC,redactFmtSym:Lae,serializersSym:OC,timeSym:Fae,timeSliceIndexSym:jae,streamSym:Uae,stringifySym:NC,stringifySafeSym:Yh,stringifiersSym:CC,setLevelSym:Mae,endSym:$ae,formatOptsSym:Bae,messageKeySym:Hae,errorKeySym:Vae,nestedKeySym:qae,mixinSym:zae,levelCompSym:Gae,useOnlyCustomLevelsSym:Jae,formattersSym:RC,hooksSym:Kae,nestedKeyStrSym:Xae,mixinMergeStrategySym:Wae,msgPrefixSym:Yae}=DC,{epochTime:LC,nullTime:Qae}=kC,{pid:Zae}=process,e2e=_ae.hostname(),t2e=IC.err,n2e={level:"info",levelComparison:Cae.ASC,levels:Nae,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:Zae,hostname:e2e},serializers:Object.assign(Object.create(null),{err:t2e}),formatters:Object.assign(Object.create(null),{bindings(t){return t},level(t,e){return{level:e}}}),hooks:{logMethod:void 0},timestamp:LC,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},r2e=Rae(n2e),i2e=Object.assign(Object.create(null),IC);function Qh(...t){let e={},{opts:n,stream:r}=r2e(e,Eae(),...t),{redact:i,crlf:l,serializers:s,timestamp:a,messageKey:o,errorKey:u,nestedKey:c,base:f,name:m,level:d,customLevels:y,levelComparison:_,mixin:S,mixinMergeStrategy:w,useOnlyCustomLevels:E,formatters:g,hooks:v,depthLimit:x,edgeLimit:O,onChild:N,msgPrefix:R}=n,U=Sae({maximumDepth:x,maximumBreadth:O}),F=kae(g.level,g.bindings,g.log),te=Wh.bind({[Yh]:U}),Q=i?bae(i,te):{},W=i?{stringify:Q[Lae]}:{stringify:te},ce="}"+(l?`\r
+${w}`),y.pop(),`{${x}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(d);default:return e?e(d):void 0}}function c(m,d,y){switch(typeof d){case"string":return _2(d);case"object":{if(d===null)return"null";if(typeof d.toJSON=="function"){if(d=d.toJSON(m),typeof d!="object")return c(m,d,y);if(d===null)return"null"}if(y.indexOf(d)!==-1)return n;let _="";if(Array.isArray(d)){if(d.length===0)return"[]";if(ls){let N=d.length-s-1;_+=`,"... ${_3(N)} not stringified"`}return y.pop(),`[${_}]`}let S=Object.keys(d),w=S.length;if(w===0)return"{}";if(ls){let v=w-s;_+=`${E}"...":"${_3(v)} not stringified"`}return y.pop(),`{${_}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(d);default:return e?e(d):void 0}}function f(m,d,y){if(arguments.length>1){let _="";if(typeof y=="number"?_=" ".repeat(Math.min(y,10)):typeof y=="string"&&(_=y.slice(0,10)),d!=null){if(typeof d=="function")return a("",{"":m},[],d,_,"");if(Array.isArray(d))return o("",m,[],wae(d),_,"")}if(_.length!==0)return u("",m,[],_,"")}return c("",m,[])}return f}});var NC=k((qNe,OC)=>{"use strict";var Qh=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:AC}=E8(),Tae=AC.info;function xae(t,e){let n=0;t=t||[],e=e||{dedupe:!1};let r=Object.create(AC);r.silent=1/0,e.levels&&typeof e.levels=="object"&&Object.keys(e.levels).forEach(c=>{r[c]=e.levels[c]});let i={write:l,add:a,flushSync:s,end:o,minLevel:0,streams:[],clone:u,[Qh]:!0,streamLevels:r};return Array.isArray(t)?t.forEach(a,i):a.call(i,t),t=null,i;function l(c){let f,m=this.lastLevel,{streams:d}=this,y=0,_;for(let S=Oae(d.length,e.dedupe);Cae(S,d.length,e.dedupe);S=Nae(S,e.dedupe))if(f=d[S],f.level<=m){if(y!==0&&y!==f.level)break;if(_=f.stream,_[Qh]){let{lastTime:w,lastMsg:E,lastObj:g,lastLogger:v}=this;_.lastLevel=m,_.lastTime=w,_.lastMsg=E,_.lastObj=g,_.lastLogger=v}_.write(c),e.dedupe&&(y=f.level)}else if(!e.dedupe)break}function s(){for(let{stream:c}of this.streams)typeof c.flushSync=="function"&&c.flushSync()}function a(c){if(!c)return i;let f=typeof c.write=="function"||c.stream,m=c.write?c:c.stream;if(!f)throw Error("stream object needs to implement either StreamEntry or DestinationStream interface");let{streams:d,streamLevels:y}=this,_;typeof c.levelVal=="number"?_=c.levelVal:typeof c.level=="string"?_=y[c.level]:typeof c.level=="number"?_=c.level:_=Tae;let S={stream:m,level:_,levelVal:void 0,id:n++};return d.unshift(S),d.sort(Aae),this.minLevel=d[0].level,i}function o(){for(let{stream:c}of this.streams)typeof c.flushSync=="function"&&c.flushSync(),c.end()}function u(c){let f=new Array(this.streams.length);for(let m=0;m=0:t{"use strict";var Rae=require("os"),FC=yh(),Iae=gh(),kae=Th(),jC=bN(),Dae=EC(),UC=Ku(),{configure:Pae}=xC(),{assertDefaultLevelFound:Lae,mappings:MC,genLsCache:Fae,genLevelComparison:jae,assertLevelComparison:Uae}=Vh(),{DEFAULT_LEVELS:Mae,SORTING_ORDER:$ae}=E8(),{createArgsNormalizer:Bae,asChindings:Hae,buildSafeSonicBoom:CC,buildFormatters:Vae,stringify:Zh,normalizeDestFileDescriptor:RC,noop:qae}=_8(),{version:zae}=qh(),{chindingsSym:IC,redactFmtSym:Gae,serializersSym:kC,timeSym:Jae,timeSliceIndexSym:Kae,streamSym:Xae,stringifySym:DC,stringifySafeSym:em,stringifiersSym:PC,setLevelSym:Wae,endSym:Yae,formatOptsSym:Qae,messageKeySym:Zae,errorKeySym:e2e,nestedKeySym:t2e,mixinSym:n2e,levelCompSym:r2e,useOnlyCustomLevelsSym:i2e,formattersSym:LC,hooksSym:l2e,nestedKeyStrSym:s2e,mixinMergeStrategySym:a2e,msgPrefixSym:o2e}=UC,{epochTime:$C,nullTime:u2e}=jC,{pid:c2e}=process,p2e=Rae.hostname(),f2e=FC.err,d2e={level:"info",levelComparison:$ae.ASC,levels:Mae,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:c2e,hostname:p2e},serializers:Object.assign(Object.create(null),{err:f2e}),formatters:Object.assign(Object.create(null),{bindings(t){return t},level(t,e){return{level:e}}}),hooks:{logMethod:void 0},timestamp:$C,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},h2e=Bae(d2e),m2e=Object.assign(Object.create(null),FC);function tm(...t){let e={},{opts:n,stream:r}=h2e(e,Iae(),...t),{redact:i,crlf:l,serializers:s,timestamp:a,messageKey:o,errorKey:u,nestedKey:c,base:f,name:m,level:d,customLevels:y,levelComparison:_,mixin:S,mixinMergeStrategy:w,useOnlyCustomLevels:E,formatters:g,hooks:v,depthLimit:x,edgeLimit:O,onChild:N,msgPrefix:R}=n,U=Pae({maximumDepth:x,maximumBreadth:O}),F=Vae(g.level,g.bindings,g.log),te=Zh.bind({[em]:U}),Q=i?kae(i,te):{},W=i?{stringify:Q[Gae]}:{stringify:te},ce="}"+(l?`\r
`:`
-`),we=Iae.bind(null,{[AC]:"",[OC]:s,[CC]:Q,[NC]:Wh,[Yh]:U,[RC]:F}),se="";f!==null&&(m===void 0?se=we(f):se=we(Object.assign({},f,{name:m})));let ee=a instanceof Function?a:a?LC:Qae,me=ee().indexOf(":")+1;if(E&&!y)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(S&&typeof S!="function")throw Error(`Unknown mixin type "${typeof S}" - expected "function"`);if(R&&typeof R!="string")throw Error(`Unknown msgPrefix type "${typeof R}" - expected "string"`);Tae(d,y,E);let P=PC(y,E);Oae(_);let G=Aae(_);return Object.assign(e,{levels:P,[Gae]:G,[Jae]:E,[Uae]:r,[Fae]:ee,[jae]:me,[NC]:Wh,[Yh]:U,[CC]:Q,[$ae]:ce,[Bae]:W,[Hae]:o,[Vae]:u,[qae]:c,[Xae]:c?`,${JSON.stringify(c)}:{`:"",[OC]:s,[zae]:S,[Wae]:w,[AC]:se,[RC]:F,[Kae]:v,silent:Dae,onChild:N,[Yae]:R}),Object.setPrototypeOf(e,wae()),xae(e),e[Mae](d),e}Kl.exports=Qh;Kl.exports.destination=(t=process.stdout.fd)=>typeof t=="object"?(t.dest=xC(t.dest||process.stdout.fd),TC(t)):TC({dest:xC(t),minLength:0});Kl.exports.transport=Ph();Kl.exports.multistream=SC();Kl.exports.levels=PC();Kl.exports.stdSerializers=i2e;Kl.exports.stdTimeFunctions=Object.assign({},kC);Kl.exports.symbols=DC;Kl.exports.version=Pae;Kl.exports.default=Qh;Kl.exports.pino=Qh});var o4=k((DNe,BC)=>{"use strict";var l2e=AO(),E8=FC(),{serializersSym:jC}=E8.symbols,{FST_ERR_LOG_INVALID_DESTINATION:s2e,FST_ERR_LOG_INVALID_LOGGER:a2e}=Li();function UC(t){if(t.stream&&t.file)throw new s2e;t.file&&(t.stream=E8.destination(t.file),delete t.file);let e=t.logger,n=t.genReqId,r=null;return e?(t.logger=void 0,t.genReqId=void 0,e[jC]&&(t.serializers=Object.assign({},t.serializers,e[jC])),r=e.child({},t),t.logger=e,t.genReqId=n):r=E8(t,t.stream),r}var Zh={req:function(e){return{method:e.method,url:e.url,version:e.headers&&e.headers["accept-version"],hostname:e.hostname,remoteAddress:e.ip,remotePort:e.socket?e.socket.remotePort:void 0}},err:E8.stdSerializers.err,res:function(e){return{statusCode:e.statusCode}}};function o2e(){let t=process.hrtime();return t[0]*1e3+t[1]/1e6}function u2e(t){if(!t.logger){let r=l2e;return r.child=()=>r,{logger:r,hasLogger:!1}}if(MC(t.logger))return{logger:UC({logger:t.logger,serializers:Object.assign({},Zh,t.logger.serializers)}),hasLogger:!0};let e={};return Object.prototype.toString.call(t.logger)==="[object Object]"&&Reflect.ownKeys(t.logger).forEach(r=>{Object.defineProperty(e,r,{value:t.logger[r],writable:!0,enumerable:!0,configurable:!0})}),e.level=e.level||"info",e.serializers=Object.assign({},Zh,e.serializers),t.logger=e,{logger:UC(t.logger),hasLogger:!0}}function MC(t,e){let n=["info","error","debug","fatal","warn","trace","child"],r=t?n.filter(i=>!t[i]||typeof t[i]!="function"):n;if(r.length){if(r.length===n.length&&!e)return!1;throw a2e(r.join(","))}else return!0}function c2e(t,e,n,r,i){let l={[t.requestIdLogLabel]:r},s=t.childLoggerFactory.call(t.server,e,l,i||{},n);return t.childLoggerFactory!==$C&&MC(s,!0),s}function $C(t,e,n){return t.child(e,n)}BC.exports={createLogger:u2e,createChildLogger:c2e,defaultChildLoggerFactory:$C,serializers:Zh,now:o2e}});var u4=k((PNe,HC)=>{"use strict";HC.exports=p2e;function Ku(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function p2e(t){if(t=t||{},t.circles)return f2e(t);return t.proto?r:n;function e(i,l){for(var s=Object.keys(i),a=new Array(s.length),o=0;o{"use strict";var d2e=u4()({circles:!1,proto:!0}),{kSchemaVisited:VC,kSchemaResponse:h2e}=pi(),tm=Symbol.for("fluent-schema-object"),{FST_ERR_SCH_MISSING_ID:m2e,FST_ERR_SCH_ALREADY_PRESENT:y2e,FST_ERR_SCH_DUPLICATE:g2e,FST_ERR_SCH_CONTENT_MISSING_SCHEMA:v2e}=Li(),zC=["params","body","querystring","query","headers"];function b8(t){this.store=t||{}}b8.prototype.add=function(t){let e=d2e(t.isFluentSchema||t.isFluentJSONSchema||t[tm]?t.valueOf():t),n=e.$id;if(!n)throw new m2e;if(this.store[n])throw new y2e(n);this.store[n]=e};b8.prototype.getSchemas=function(){return Object.assign({},this.store)};b8.prototype.getSchema=function(t){return this.store[t]};function qC(t){return typeof t=="object"&&Object.getPrototypeOf(t)!==Object.prototype}function _2e(t,e){if(t[VC])return t;if(t.query){if(t.querystring)throw new g2e("querystring");t.querystring=t.query}E2e(t);for(let n of zC){let r=t[n];r&&!qC(r)&&(t[n]=em(r,e.jsonShorthand))}if(t.response){let n=Object.keys(t.response);for(let r of n){if(qC(t.response[r]))continue;let i=t.response[r].content,l=!1;if(i){let s=Object.keys(i);for(let a=0;a{"use strict";var w2e=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;KC.exports=class JC{constructor(e){switch(e&&e.rounding){case"floor":this.parseInteger=Math.floor;break;case"ceil":this.parseInteger=Math.ceil;break;case"round":this.parseInteger=Math.round;break;case"trunc":default:this.parseInteger=Math.trunc;break}this._options=e}asInteger(e){if(typeof e=="number"){if(e===1/0||e===-1/0)throw new Error(`The value "${e}" cannot be converted to an integer.`);if(Number.isInteger(e))return""+e;if(Number.isNaN(e))throw new Error(`The value "${e}" cannot be converted to an integer.`);return this.parseInteger(e)}else{if(e===null)return"0";if(typeof e=="bigint")return e.toString();{let n=this.parseInteger(e);if(Number.isFinite(n))return""+n;throw new Error(`The value "${e}" cannot be converted to an integer.`)}}}asNumber(e){let n=Number(e);if(Number.isNaN(n))throw new Error(`The value "${e}" cannot be converted to a number.`);return Number.isFinite(n)?""+n:"null"}asBoolean(e){return e&&"true"||"false"}asDateTime(e){if(e===null)return'""';if(e instanceof Date)return'"'+e.toISOString()+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a date-time.`)}asDate(e){if(e===null)return'""';if(e instanceof Date)return'"'+new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().slice(0,10)+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a date.`)}asTime(e){if(e===null)return'""';if(e instanceof Date)return'"'+new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().slice(11,19)+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a time.`)}asString(e){if(typeof e!="string"){if(e===null)return'""';if(e instanceof Date)return'"'+e.toISOString()+'"';e instanceof RegExp?e=e.source:e=e.toString()}return e.length<42?this.asStringSmall(e):w2e.test(e)===!1?'"'+e+'"':JSON.stringify(e)}asStringSmall(e){let n=e.length,r="",i=-1,l=255;for(var s=0;s=55296&&l<=57343)return JSON.stringify(e);(l===34||l===92)&&(i===-1&&(i=0),r+=e.slice(i,s)+"\\",i=s)}return i===-1&&'"'+e+'"'||'"'+r+e.slice(i)+'"'}getState(){return this._options}static restoreFromState(e){return new JC(e)}}});var Xu=k(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.regexpCode=tn.getEsmExportName=tn.getProperty=tn.safeStringify=tn.stringify=tn.strConcat=tn.addCodeArg=tn.str=tn._=tn.nil=tn._Code=tn.Name=tn.IDENTIFIER=tn._CodeOrName=void 0;var p4=class{};tn._CodeOrName=p4;tn.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var vo=class extends p4{constructor(e){if(super(),!tn.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};tn.Name=vo;var Xl=class extends p4{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((n,r)=>`${n}${r}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((n,r)=>(r instanceof vo&&(n[r.str]=(n[r.str]||0)+1),n),{})}};tn._Code=Xl;tn.nil=new Xl("");function XC(t,...e){let n=[t[0]],r=0;for(;r{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.ValueScope=Yi.ValueScopeName=Yi.Scope=Yi.varKinds=Yi.UsedValueState=void 0;var fl=Xu(),lm=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},sm;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(sm=Yi.UsedValueState||(Yi.UsedValueState={}));Yi.varKinds={const:new fl.Name("const"),let:new fl.Name("let"),var:new fl.Name("var")};var w8=class{constructor({prefixes:e,parent:n}={}){this._names={},this._prefixes=e,this._parent=n}toName(e){return e instanceof fl.Name?e:this.name(e)}name(e){return new fl.Name(this._newName(e))}_newName(e){let n=this._names[e]||this._nameGroup(e);return`${e}${n.index++}`}_nameGroup(e){var n,r;if(!((r=(n=this._parent)===null||n===void 0?void 0:n._prefixes)===null||r===void 0)&&r.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Yi.Scope=w8;var S8=class extends fl.Name{constructor(e,n){super(n),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,fl._)`.${new fl.Name(n)}[${r}]`}};Yi.ValueScopeName=S8;var I2e=(0,fl._)`\n`,am=class extends w8{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?I2e:fl.nil}}get(){return this._scope}name(e){return new S8(e,this._newName(e))}value(e,n){var r;if(n.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(e),{prefix:l}=i,s=(r=n.key)!==null&&r!==void 0?r:n.ref,a=this._values[l];if(a){let c=a.get(s);if(c)return c}else a=this._values[l]=new Map;a.set(s,i);let o=this._scope[l]||(this._scope[l]=[]),u=o.length;return o[u]=n.ref,i.setValue(n,{property:l,itemIndex:u}),i}getValue(e,n){let r=this._values[e];if(r)return r.get(n)}scopeRefs(e,n=this._values){return this._reduceValues(n,r=>{if(r.scopePath===void 0)throw new Error(`CodeGen: name "${r}" has no value`);return(0,fl._)`${e}${r.scopePath}`})}scopeCode(e=this._values,n,r){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},n,r)}_reduceValues(e,n,r={},i){let l=fl.nil;for(let s in e){let a=e[s];if(!a)continue;let o=r[s]=r[s]||new Map;a.forEach(u=>{if(o.has(u))return;o.set(u,sm.Started);let c=n(u);if(c){let f=this.opts.es5?Yi.varKinds.var:Yi.varKinds.const;l=(0,fl._)`${l}${f} ${u} = ${c};${this.opts._n}`}else if(c=i?.(u))l=(0,fl._)`${l}${c}${this.opts._n}`;else throw new lm(u);o.set(u,sm.Completed)})}return l}};Yi.ValueScope=am});var st=k(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.or=It.and=It.not=It.CodeGen=It.operators=It.varKinds=It.ValueScopeName=It.ValueScope=It.Scope=It.Name=It.regexpCode=It.stringify=It.getProperty=It.nil=It.strConcat=It.str=It._=void 0;var Kt=Xu(),vs=T8(),_2=Xu();Object.defineProperty(It,"_",{enumerable:!0,get:function(){return _2._}});Object.defineProperty(It,"str",{enumerable:!0,get:function(){return _2.str}});Object.defineProperty(It,"strConcat",{enumerable:!0,get:function(){return _2.strConcat}});Object.defineProperty(It,"nil",{enumerable:!0,get:function(){return _2.nil}});Object.defineProperty(It,"getProperty",{enumerable:!0,get:function(){return _2.getProperty}});Object.defineProperty(It,"stringify",{enumerable:!0,get:function(){return _2.stringify}});Object.defineProperty(It,"regexpCode",{enumerable:!0,get:function(){return _2.regexpCode}});Object.defineProperty(It,"Name",{enumerable:!0,get:function(){return _2.Name}});var N8=T8();Object.defineProperty(It,"Scope",{enumerable:!0,get:function(){return N8.Scope}});Object.defineProperty(It,"ValueScope",{enumerable:!0,get:function(){return N8.ValueScope}});Object.defineProperty(It,"ValueScopeName",{enumerable:!0,get:function(){return N8.ValueScopeName}});Object.defineProperty(It,"varKinds",{enumerable:!0,get:function(){return N8.varKinds}});It.operators={GT:new Kt._Code(">"),GTE:new Kt._Code(">="),LT:new Kt._Code("<"),LTE:new Kt._Code("<="),EQ:new Kt._Code("==="),NEQ:new Kt._Code("!=="),NOT:new Kt._Code("!"),OR:new Kt._Code("||"),AND:new Kt._Code("&&"),ADD:new Kt._Code("+")};var ja=class{optimizeNodes(){return this}optimizeNames(e,n){return this}},om=class extends ja{constructor(e,n,r){super(),this.varKind=e,this.name=n,this.rhs=r}render({es5:e,_n:n}){let r=e?vs.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${r} ${this.name}${i};`+n}optimizeNames(e,n){if(e[this.name.str])return this.rhs&&(this.rhs=Yu(this.rhs,e,n)),this}get names(){return this.rhs instanceof Kt._CodeOrName?this.rhs.names:{}}},x8=class extends ja{constructor(e,n,r){super(),this.lhs=e,this.rhs=n,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof Kt.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Yu(this.rhs,e,n),this}get names(){let e=this.lhs instanceof Kt.Name?{}:{...this.lhs.names};return O8(e,this.rhs)}},um=class extends x8{constructor(e,n,r,i){super(e,r,i),this.op=n}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},cm=class extends ja{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},pm=class extends ja{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},fm=class extends ja{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},dm=class extends ja{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,n){return this.code=Yu(this.code,e,n),this}get names(){return this.code instanceof Kt._CodeOrName?this.code.names:{}}},d4=class extends ja{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((n,r)=>n+r.render(e),"")}optimizeNodes(){let{nodes:e}=this,n=e.length;for(;n--;){let r=e[n].optimizeNodes();Array.isArray(r)?e.splice(n,1,...r):r?e[n]=r:e.splice(n,1)}return e.length>0?this:void 0}optimizeNames(e,n){let{nodes:r}=this,i=r.length;for(;i--;){let l=r[i];l.optimizeNames(e,n)||(k2e(e,l.names),r.splice(i,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,n)=>bo(e,n.names),{})}},Ua=class extends d4{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},hm=class extends d4{},Wu=class extends Ua{};Wu.kind="else";var _o=class t extends Ua{constructor(e,n){super(n),this.condition=e}render(e){let n=`if(${this.condition})`+super.render(e);return this.else&&(n+="else "+this.else.render(e)),n}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let n=this.else;if(n){let r=n.optimizeNodes();n=this.else=Array.isArray(r)?new Wu(r):r}if(n)return e===!1?n instanceof t?n:n.nodes:this.nodes.length?this:new t(YC(e),n instanceof t?[n]:n.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,n){var r;if(this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(e,n),!!(super.optimizeNames(e,n)||this.else))return this.condition=Yu(this.condition,e,n),this}get names(){let e=super.names;return O8(e,this.condition),this.else&&bo(e,this.else.names),e}};_o.kind="if";var Eo=class extends Ua{};Eo.kind="for";var mm=class extends Eo{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,n){if(super.optimizeNames(e,n))return this.iteration=Yu(this.iteration,e,n),this}get names(){return bo(super.names,this.iteration.names)}},ym=class extends Eo{constructor(e,n,r,i){super(),this.varKind=e,this.name=n,this.from=r,this.to=i}render(e){let n=e.es5?vs.varKinds.var:this.varKind,{name:r,from:i,to:l}=this;return`for(${n} ${r}=${i}; ${r}<${l}; ${r}++)`+super.render(e)}get names(){let e=O8(super.names,this.from);return O8(e,this.to)}},A8=class extends Eo{constructor(e,n,r,i){super(),this.loop=e,this.varKind=n,this.name=r,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,n){if(super.optimizeNames(e,n))return this.iterable=Yu(this.iterable,e,n),this}get names(){return bo(super.names,this.iterable.names)}},h4=class extends Ua{constructor(e,n,r){super(),this.name=e,this.args=n,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};h4.kind="func";var m4=class extends d4{render(e){return"return "+super.render(e)}};m4.kind="return";var gm=class extends Ua{render(e){let n="try"+super.render(e);return this.catch&&(n+=this.catch.render(e)),this.finally&&(n+=this.finally.render(e)),n}optimizeNodes(){var e,n;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(n=this.finally)===null||n===void 0||n.optimizeNodes(),this}optimizeNames(e,n){var r,i;return super.optimizeNames(e,n),(r=this.catch)===null||r===void 0||r.optimizeNames(e,n),(i=this.finally)===null||i===void 0||i.optimizeNames(e,n),this}get names(){let e=super.names;return this.catch&&bo(e,this.catch.names),this.finally&&bo(e,this.finally.names),e}},y4=class extends Ua{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};y4.kind="catch";var g4=class extends Ua{render(e){return"finally"+super.render(e)}};g4.kind="finally";var vm=class{constructor(e,n={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...n,_n:n.lines?`
-`:""},this._extScope=e,this._scope=new vs.Scope({parent:e}),this._nodes=[new hm]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,n){let r=this._extScope.value(e,n);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,n){return this._extScope.getValue(e,n)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,n,r,i){let l=this._scope.toName(n);return r!==void 0&&i&&(this._constants[l.str]=r),this._leafNode(new om(e,l,r)),l}const(e,n,r){return this._def(vs.varKinds.const,e,n,r)}let(e,n,r){return this._def(vs.varKinds.let,e,n,r)}var(e,n,r){return this._def(vs.varKinds.var,e,n,r)}assign(e,n,r){return this._leafNode(new x8(e,n,r))}add(e,n){return this._leafNode(new um(e,It.operators.ADD,n))}code(e){return typeof e=="function"?e():e!==Kt.nil&&this._leafNode(new dm(e)),this}object(...e){let n=["{"];for(let[r,i]of e)n.length>1&&n.push(","),n.push(r),(r!==i||this.opts.es5)&&(n.push(":"),(0,Kt.addCodeArg)(n,i));return n.push("}"),new Kt._Code(n)}if(e,n,r){if(this._blockNode(new _o(e)),n&&r)this.code(n).else().code(r).endIf();else if(n)this.code(n).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new _o(e))}else(){return this._elseNode(new Wu)}endIf(){return this._endBlockNode(_o,Wu)}_for(e,n){return this._blockNode(e),n&&this.code(n).endFor(),this}for(e,n){return this._for(new mm(e),n)}forRange(e,n,r,i,l=this.opts.es5?vs.varKinds.var:vs.varKinds.let){let s=this._scope.toName(e);return this._for(new ym(l,s,n,r),()=>i(s))}forOf(e,n,r,i=vs.varKinds.const){let l=this._scope.toName(e);if(this.opts.es5){let s=n instanceof Kt.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,Kt._)`${s}.length`,a=>{this.var(l,(0,Kt._)`${s}[${a}]`),r(l)})}return this._for(new A8("of",i,l,n),()=>r(l))}forIn(e,n,r,i=this.opts.es5?vs.varKinds.var:vs.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Kt._)`Object.keys(${n})`,r);let l=this._scope.toName(e);return this._for(new A8("in",i,l,n),()=>r(l))}endFor(){return this._endBlockNode(Eo)}label(e){return this._leafNode(new cm(e))}break(e){return this._leafNode(new pm(e))}return(e){let n=new m4;if(this._blockNode(n),this.code(e),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(m4)}try(e,n,r){if(!n&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new gm;if(this._blockNode(i),this.code(e),n){let l=this.name("e");this._currNode=i.catch=new y4(l),n(l)}return r&&(this._currNode=i.finally=new g4,this.code(r)),this._endBlockNode(y4,g4)}throw(e){return this._leafNode(new fm(e))}block(e,n){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(n),this}endBlock(e){let n=this._blockStarts.pop();if(n===void 0)throw new Error("CodeGen: not in self-balancing block");let r=this._nodes.length-n;if(r<0||e!==void 0&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=n,this}func(e,n=Kt.nil,r,i){return this._blockNode(new h4(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(h4)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,n){let r=this._currNode;if(r instanceof e||n&&r instanceof n)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${n?`${e.kind}/${n.kind}`:e.kind}"`)}_elseNode(e){let n=this._currNode;if(!(n instanceof _o))throw new Error('CodeGen: "else" without "if"');return this._currNode=n.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let n=this._nodes;n[n.length-1]=e}};It.CodeGen=vm;function bo(t,e){for(let n in e)t[n]=(t[n]||0)+(e[n]||0);return t}function O8(t,e){return e instanceof Kt._CodeOrName?bo(t,e.names):t}function Yu(t,e,n){if(t instanceof Kt.Name)return r(t);if(!i(t))return t;return new Kt._Code(t._items.reduce((l,s)=>(s instanceof Kt.Name&&(s=r(s)),s instanceof Kt._Code?l.push(...s._items):l.push(s),l),[]));function r(l){let s=n[l.str];return s===void 0||e[l.str]!==1?l:(delete e[l.str],s)}function i(l){return l instanceof Kt._Code&&l._items.some(s=>s instanceof Kt.Name&&e[s.str]===1&&n[s.str]!==void 0)}}function k2e(t,e){for(let n in e)t[n]=(t[n]||0)-(e[n]||0)}function YC(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Kt._)`!${_m(t)}`}It.not=YC;var D2e=QC(It.operators.AND);function P2e(...t){return t.reduce(D2e)}It.and=P2e;var L2e=QC(It.operators.OR);function F2e(...t){return t.reduce(L2e)}It.or=F2e;function QC(t){return(e,n)=>e===Kt.nil?n:n===Kt.nil?e:(0,Kt._)`${_m(e)} ${t} ${_m(n)}`}function _m(t){return t instanceof Kt.Name?t:(0,Kt._)`(${t})`}});var Nt=k(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.checkStrictMode=kt.getErrorPath=kt.Type=kt.useFunc=kt.setEvaluated=kt.evaluatedPropsToName=kt.mergeEvaluated=kt.eachItem=kt.unescapeJsonPointer=kt.escapeJsonPointer=kt.escapeFragment=kt.unescapeFragment=kt.schemaRefOrVal=kt.schemaHasRulesButRef=kt.schemaHasRules=kt.checkUnknownRules=kt.alwaysValidSchema=kt.toHash=void 0;var er=st(),j2e=Xu();function U2e(t){let e={};for(let n of t)e[n]=!0;return e}kt.toHash=U2e;function M2e(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(tR(t,e),!nR(e,t.self.RULES.all))}kt.alwaysValidSchema=M2e;function tR(t,e=t.schema){let{opts:n,self:r}=t;if(!n.strictSchema||typeof e=="boolean")return;let i=r.RULES.keywords;for(let l in e)i[l]||sR(t,`unknown keyword: "${l}"`)}kt.checkUnknownRules=tR;function nR(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(e[n])return!0;return!1}kt.schemaHasRules=nR;function $2e(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(n!=="$ref"&&e.all[n])return!0;return!1}kt.schemaHasRulesButRef=$2e;function B2e({topSchemaRef:t,schemaPath:e},n,r,i){if(!i){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,er._)`${n}`}return(0,er._)`${t}${e}${(0,er.getProperty)(r)}`}kt.schemaRefOrVal=B2e;function H2e(t){return rR(decodeURIComponent(t))}kt.unescapeFragment=H2e;function V2e(t){return encodeURIComponent(Em(t))}kt.escapeFragment=V2e;function Em(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}kt.escapeJsonPointer=Em;function rR(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}kt.unescapeJsonPointer=rR;function q2e(t,e){if(Array.isArray(t))for(let n of t)e(n);else e(t)}kt.eachItem=q2e;function ZC({mergeNames:t,mergeToName:e,mergeValues:n,resultToName:r}){return(i,l,s,a)=>{let o=s===void 0?l:s instanceof er.Name?(l instanceof er.Name?t(i,l,s):e(i,l,s),s):l instanceof er.Name?(e(i,s,l),l):n(l,s);return a===er.Name&&!(o instanceof er.Name)?r(i,o):o}}kt.mergeEvaluated={props:ZC({mergeNames:(t,e,n)=>t.if((0,er._)`${n} !== true && ${e} !== undefined`,()=>{t.if((0,er._)`${e} === true`,()=>t.assign(n,!0),()=>t.assign(n,(0,er._)`${n} || {}`).code((0,er._)`Object.assign(${n}, ${e})`))}),mergeToName:(t,e,n)=>t.if((0,er._)`${n} !== true`,()=>{e===!0?t.assign(n,!0):(t.assign(n,(0,er._)`${n} || {}`),bm(t,n,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:iR}),items:ZC({mergeNames:(t,e,n)=>t.if((0,er._)`${n} !== true && ${e} !== undefined`,()=>t.assign(n,(0,er._)`${e} === true ? true : ${n} > ${e} ? ${n} : ${e}`)),mergeToName:(t,e,n)=>t.if((0,er._)`${n} !== true`,()=>t.assign(n,e===!0?!0:(0,er._)`${n} > ${e} ? ${n} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function iR(t,e){if(e===!0)return t.var("props",!0);let n=t.var("props",(0,er._)`{}`);return e!==void 0&&bm(t,n,e),n}kt.evaluatedPropsToName=iR;function bm(t,e,n){Object.keys(n).forEach(r=>t.assign((0,er._)`${e}${(0,er.getProperty)(r)}`,!0))}kt.setEvaluated=bm;var eR={};function z2e(t,e){return t.scopeValue("func",{ref:e,code:eR[e.code]||(eR[e.code]=new j2e._Code(e.code))})}kt.useFunc=z2e;var lR;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(lR=kt.Type||(kt.Type={}));function G2e(t,e,n){if(t instanceof er.Name){let r=e===lR.Num;return n?r?(0,er._)`"[" + ${t} + "]"`:(0,er._)`"['" + ${t} + "']"`:r?(0,er._)`"/" + ${t}`:(0,er._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,er.getProperty)(t).toString():"/"+Em(t)}kt.getErrorPath=G2e;function sR(t,e,n=t.opts.strictSchema){if(n){if(e=`strict mode: ${e}`,n===!0)throw new Error(e);t.self.logger.warn(e)}}kt.checkStrictMode=sR});var Wl=k(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});var ji=st(),J2e={data:new ji.Name("data"),valCxt:new ji.Name("valCxt"),instancePath:new ji.Name("instancePath"),parentData:new ji.Name("parentData"),parentDataProperty:new ji.Name("parentDataProperty"),rootData:new ji.Name("rootData"),dynamicAnchors:new ji.Name("dynamicAnchors"),vErrors:new ji.Name("vErrors"),errors:new ji.Name("errors"),this:new ji.Name("this"),self:new ji.Name("self"),scope:new ji.Name("scope"),json:new ji.Name("json"),jsonPos:new ji.Name("jsonPos"),jsonLen:new ji.Name("jsonLen"),jsonPart:new ji.Name("jsonPart")};wm.default=J2e});var v4=k(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.extendErrors=Ui.resetErrorsCount=Ui.reportExtraError=Ui.reportError=Ui.keyword$DataError=Ui.keywordError=void 0;var Yt=st(),C8=Nt(),Qi=Wl();Ui.keywordError={message:({keyword:t})=>(0,Yt.str)`must pass "${t}" keyword validation`};Ui.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,Yt.str)`"${t}" keyword must be ${e} ($data)`:(0,Yt.str)`"${t}" keyword is invalid ($data)`};function K2e(t,e=Ui.keywordError,n,r){let{it:i}=t,{gen:l,compositeRule:s,allErrors:a}=i,o=uR(t,e,n);r??(s||a)?aR(l,o):oR(i,(0,Yt._)`[${o}]`)}Ui.reportError=K2e;function X2e(t,e=Ui.keywordError,n){let{it:r}=t,{gen:i,compositeRule:l,allErrors:s}=r,a=uR(t,e,n);aR(i,a),l||s||oR(r,Qi.default.vErrors)}Ui.reportExtraError=X2e;function W2e(t,e){t.assign(Qi.default.errors,e),t.if((0,Yt._)`${Qi.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,Yt._)`${Qi.default.vErrors}.length`,e),()=>t.assign(Qi.default.vErrors,null)))}Ui.resetErrorsCount=W2e;function Y2e({gen:t,keyword:e,schemaValue:n,data:r,errsCount:i,it:l}){if(i===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",i,Qi.default.errors,a=>{t.const(s,(0,Yt._)`${Qi.default.vErrors}[${a}]`),t.if((0,Yt._)`${s}.instancePath === undefined`,()=>t.assign((0,Yt._)`${s}.instancePath`,(0,Yt.strConcat)(Qi.default.instancePath,l.errorPath))),t.assign((0,Yt._)`${s}.schemaPath`,(0,Yt.str)`${l.errSchemaPath}/${e}`),l.opts.verbose&&(t.assign((0,Yt._)`${s}.schema`,n),t.assign((0,Yt._)`${s}.data`,r))})}Ui.extendErrors=Y2e;function aR(t,e){let n=t.const("err",e);t.if((0,Yt._)`${Qi.default.vErrors} === null`,()=>t.assign(Qi.default.vErrors,(0,Yt._)`[${n}]`),(0,Yt._)`${Qi.default.vErrors}.push(${n})`),t.code((0,Yt._)`${Qi.default.errors}++`)}function oR(t,e){let{gen:n,validateName:r,schemaEnv:i}=t;i.$async?n.throw((0,Yt._)`new ${t.ValidationError}(${e})`):(n.assign((0,Yt._)`${r}.errors`,e),n.return(!1))}var wo={keyword:new Yt.Name("keyword"),schemaPath:new Yt.Name("schemaPath"),params:new Yt.Name("params"),propertyName:new Yt.Name("propertyName"),message:new Yt.Name("message"),schema:new Yt.Name("schema"),parentSchema:new Yt.Name("parentSchema")};function uR(t,e,n){let{createErrors:r}=t.it;return r===!1?(0,Yt._)`{}`:Q2e(t,e,n)}function Q2e(t,e,n={}){let{gen:r,it:i}=t,l=[Z2e(i,n),e3e(t,n)];return t3e(t,e,l),r.object(...l)}function Z2e({errorPath:t},{instancePath:e}){let n=e?(0,Yt.str)`${t}${(0,C8.getErrorPath)(e,C8.Type.Str)}`:t;return[Qi.default.instancePath,(0,Yt.strConcat)(Qi.default.instancePath,n)]}function e3e({keyword:t,it:{errSchemaPath:e}},{schemaPath:n,parentSchema:r}){let i=r?e:(0,Yt.str)`${e}/${t}`;return n&&(i=(0,Yt.str)`${i}${(0,C8.getErrorPath)(n,C8.Type.Str)}`),[wo.schemaPath,i]}function t3e(t,{params:e,message:n},r){let{keyword:i,data:l,schemaValue:s,it:a}=t,{opts:o,propertyName:u,topSchemaRef:c,schemaPath:f}=a;r.push([wo.keyword,i],[wo.params,typeof e=="function"?e(t):e||(0,Yt._)`{}`]),o.messages&&r.push([wo.message,typeof n=="function"?n(t):n]),o.verbose&&r.push([wo.schema,s],[wo.parentSchema,(0,Yt._)`${c}${f}`],[Qi.default.data,l]),u&&r.push([wo.propertyName,u])}});var pR=k(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.boolOrEmptySchema=Qu.topBoolOrEmptySchema=void 0;var n3e=v4(),r3e=st(),i3e=Wl(),l3e={message:"boolean schema is false"};function s3e(t){let{gen:e,schema:n,validateName:r}=t;n===!1?cR(t,!1):typeof n=="object"&&n.$async===!0?e.return(i3e.default.data):(e.assign((0,r3e._)`${r}.errors`,null),e.return(!0))}Qu.topBoolOrEmptySchema=s3e;function a3e(t,e){let{gen:n,schema:r}=t;r===!1?(n.var(e,!1),cR(t)):n.var(e,!0)}Qu.boolOrEmptySchema=a3e;function cR(t,e){let{gen:n,data:r}=t,i={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,n3e.reportError)(i,l3e,void 0,e)}});var Sm=k(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.getRules=Zu.isJSONType=void 0;var o3e=["string","number","integer","boolean","null","object","array"],u3e=new Set(o3e);function c3e(t){return typeof t=="string"&&u3e.has(t)}Zu.isJSONType=c3e;function p3e(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Zu.getRules=p3e});var Tm=k(E2=>{"use strict";Object.defineProperty(E2,"__esModule",{value:!0});E2.shouldUseRule=E2.shouldUseGroup=E2.schemaHasRulesForType=void 0;function f3e({schema:t,self:e},n){let r=e.RULES.types[n];return r&&r!==!0&&fR(t,r)}E2.schemaHasRulesForType=f3e;function fR(t,e){return e.rules.some(n=>dR(t,n))}E2.shouldUseGroup=fR;function dR(t,e){var n;return t[e.keyword]!==void 0||((n=e.definition.implements)===null||n===void 0?void 0:n.some(r=>t[r]!==void 0))}E2.shouldUseRule=dR});var E4=k(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.reportTypeError=wi.checkDataTypes=wi.checkDataType=wi.coerceAndCheckDataType=wi.getJSONTypes=wi.getSchemaTypes=wi.DataType=void 0;var d3e=Sm(),h3e=Tm(),m3e=v4(),Ot=st(),hR=Nt(),_4;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(_4=wi.DataType||(wi.DataType={}));function y3e(t){let e=mR(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}wi.getSchemaTypes=y3e;function mR(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(d3e.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}wi.getJSONTypes=mR;function g3e(t,e){let{gen:n,data:r,opts:i}=t,l=v3e(e,i.coerceTypes),s=e.length>0&&!(l.length===0&&e.length===1&&(0,h3e.schemaHasRulesForType)(t,e[0]));if(s){let a=Am(e,r,i.strictNumbers,_4.Wrong);n.if(a,()=>{l.length?_3e(t,e,l):Om(t)})}return s}wi.coerceAndCheckDataType=g3e;var yR=new Set(["string","number","integer","boolean","null"]);function v3e(t,e){return e?t.filter(n=>yR.has(n)||e==="array"&&n==="array"):[]}function _3e(t,e,n){let{gen:r,data:i,opts:l}=t,s=r.let("dataType",(0,Ot._)`typeof ${i}`),a=r.let("coerced",(0,Ot._)`undefined`);l.coerceTypes==="array"&&r.if((0,Ot._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>r.assign(i,(0,Ot._)`${i}[0]`).assign(s,(0,Ot._)`typeof ${i}`).if(Am(e,i,l.strictNumbers),()=>r.assign(a,i))),r.if((0,Ot._)`${a} !== undefined`);for(let u of n)(yR.has(u)||u==="array"&&l.coerceTypes==="array")&&o(u);r.else(),Om(t),r.endIf(),r.if((0,Ot._)`${a} !== undefined`,()=>{r.assign(i,a),E3e(t,a)});function o(u){switch(u){case"string":r.elseIf((0,Ot._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,Ot._)`"" + ${i}`).elseIf((0,Ot._)`${i} === null`).assign(a,(0,Ot._)`""`);return;case"number":r.elseIf((0,Ot._)`${s} == "boolean" || ${i} === null
+`),we=Hae.bind(null,{[IC]:"",[kC]:s,[PC]:Q,[DC]:Zh,[em]:U,[LC]:F}),se="";f!==null&&(m===void 0?se=we(f):se=we(Object.assign({},f,{name:m})));let ee=a instanceof Function?a:a?$C:u2e,me=ee().indexOf(":")+1;if(E&&!y)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(S&&typeof S!="function")throw Error(`Unknown mixin type "${typeof S}" - expected "function"`);if(R&&typeof R!="string")throw Error(`Unknown msgPrefix type "${typeof R}" - expected "string"`);Lae(d,y,E);let P=MC(y,E);Uae(_);let G=jae(_);return Object.assign(e,{levels:P,[r2e]:G,[i2e]:E,[Xae]:r,[Jae]:ee,[Kae]:me,[DC]:Zh,[em]:U,[PC]:Q,[Yae]:ce,[Qae]:W,[Zae]:o,[e2e]:u,[t2e]:c,[s2e]:c?`,${JSON.stringify(c)}:{`:"",[kC]:s,[n2e]:S,[a2e]:w,[IC]:se,[LC]:F,[l2e]:v,silent:qae,onChild:N,[o2e]:R}),Object.setPrototypeOf(e,Dae()),Fae(e),e[Wae](d),e}Xl.exports=tm;Xl.exports.destination=(t=process.stdout.fd)=>typeof t=="object"?(t.dest=RC(t.dest||process.stdout.fd),CC(t)):CC({dest:RC(t),minLength:0});Xl.exports.transport=jh();Xl.exports.multistream=NC();Xl.exports.levels=MC();Xl.exports.stdSerializers=m2e;Xl.exports.stdTimeFunctions=Object.assign({},jC);Xl.exports.symbols=UC;Xl.exports.version=zae;Xl.exports.default=tm;Xl.exports.pino=tm});var c4=k((GNe,GC)=>{"use strict";var y2e=IO(),w8=BC(),{serializersSym:HC}=w8.symbols,{FST_ERR_LOG_INVALID_DESTINATION:g2e,FST_ERR_LOG_INVALID_LOGGER:v2e}=Ui();function VC(t){if(t.stream&&t.file)throw new g2e;t.file&&(t.stream=w8.destination(t.file),delete t.file);let e=t.logger,n=t.genReqId,r=null;return e?(t.logger=void 0,t.genReqId=void 0,e[HC]&&(t.serializers=Object.assign({},t.serializers,e[HC])),r=e.child({},t),t.logger=e,t.genReqId=n):r=w8(t,t.stream),r}var nm={req:function(e){return{method:e.method,url:e.url,version:e.headers&&e.headers["accept-version"],hostname:e.hostname,remoteAddress:e.ip,remotePort:e.socket?e.socket.remotePort:void 0}},err:w8.stdSerializers.err,res:function(e){return{statusCode:e.statusCode}}};function _2e(){let t=process.hrtime();return t[0]*1e3+t[1]/1e6}function E2e(t){if(!t.logger){let r=y2e;return r.child=()=>r,{logger:r,hasLogger:!1}}if(qC(t.logger))return{logger:VC({logger:t.logger,serializers:Object.assign({},nm,t.logger.serializers)}),hasLogger:!0};let e={};return Object.prototype.toString.call(t.logger)==="[object Object]"&&Reflect.ownKeys(t.logger).forEach(r=>{Object.defineProperty(e,r,{value:t.logger[r],writable:!0,enumerable:!0,configurable:!0})}),e.level=e.level||"info",e.serializers=Object.assign({},nm,e.serializers),t.logger=e,{logger:VC(t.logger),hasLogger:!0}}function qC(t,e){let n=["info","error","debug","fatal","warn","trace","child"],r=t?n.filter(i=>!t[i]||typeof t[i]!="function"):n;if(r.length){if(r.length===n.length&&!e)return!1;throw v2e(r.join(","))}else return!0}function b2e(t,e,n,r,i){let l={[t.requestIdLogLabel]:r},s=t.childLoggerFactory.call(t.server,e,l,i||{},n);return t.childLoggerFactory!==zC&&qC(s,!0),s}function zC(t,e,n){return t.child(e,n)}GC.exports={createLogger:E2e,createChildLogger:b2e,defaultChildLoggerFactory:zC,serializers:nm,now:_2e}});var p4=k((JNe,JC)=>{"use strict";JC.exports=w2e;function Yu(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function w2e(t){if(t=t||{},t.circles)return S2e(t);return t.proto?r:n;function e(i,l){for(var s=Object.keys(i),a=new Array(s.length),o=0;o{"use strict";var T2e=p4()({circles:!1,proto:!0}),{kSchemaVisited:KC,kSchemaResponse:x2e}=di(),im=Symbol.for("fluent-schema-object"),{FST_ERR_SCH_MISSING_ID:A2e,FST_ERR_SCH_ALREADY_PRESENT:O2e,FST_ERR_SCH_DUPLICATE:N2e,FST_ERR_SCH_CONTENT_MISSING_SCHEMA:C2e}=Ui(),WC=["params","body","querystring","query","headers"];function S8(t){this.store=t||{}}S8.prototype.add=function(t){let e=T2e(t.isFluentSchema||t.isFluentJSONSchema||t[im]?t.valueOf():t),n=e.$id;if(!n)throw new A2e;if(this.store[n])throw new O2e(n);this.store[n]=e};S8.prototype.getSchemas=function(){return Object.assign({},this.store)};S8.prototype.getSchema=function(t){return this.store[t]};function XC(t){return typeof t=="object"&&Object.getPrototypeOf(t)!==Object.prototype}function R2e(t,e){if(t[KC])return t;if(t.query){if(t.querystring)throw new N2e("querystring");t.querystring=t.query}I2e(t);for(let n of WC){let r=t[n];r&&!XC(r)&&(t[n]=rm(r,e.jsonShorthand))}if(t.response){let n=Object.keys(t.response);for(let r of n){if(XC(t.response[r]))continue;let i=t.response[r].content,l=!1;if(i){let s=Object.keys(i);for(let a=0;a{"use strict";var D2e=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;ZC.exports=class QC{constructor(e){switch(e&&e.rounding){case"floor":this.parseInteger=Math.floor;break;case"ceil":this.parseInteger=Math.ceil;break;case"round":this.parseInteger=Math.round;break;case"trunc":default:this.parseInteger=Math.trunc;break}this._options=e}asInteger(e){if(typeof e=="number"){if(e===1/0||e===-1/0)throw new Error(`The value "${e}" cannot be converted to an integer.`);if(Number.isInteger(e))return""+e;if(Number.isNaN(e))throw new Error(`The value "${e}" cannot be converted to an integer.`);return this.parseInteger(e)}else{if(e===null)return"0";if(typeof e=="bigint")return e.toString();{let n=this.parseInteger(e);if(Number.isFinite(n))return""+n;throw new Error(`The value "${e}" cannot be converted to an integer.`)}}}asNumber(e){let n=Number(e);if(Number.isNaN(n))throw new Error(`The value "${e}" cannot be converted to a number.`);return Number.isFinite(n)?""+n:"null"}asBoolean(e){return e&&"true"||"false"}asDateTime(e){if(e===null)return'""';if(e instanceof Date)return'"'+e.toISOString()+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a date-time.`)}asDate(e){if(e===null)return'""';if(e instanceof Date)return'"'+new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().slice(0,10)+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a date.`)}asTime(e){if(e===null)return'""';if(e instanceof Date)return'"'+new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().slice(11,19)+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a time.`)}asString(e){if(typeof e!="string"){if(e===null)return'""';if(e instanceof Date)return'"'+e.toISOString()+'"';e instanceof RegExp?e=e.source:e=e.toString()}return e.length<42?this.asStringSmall(e):D2e.test(e)===!1?'"'+e+'"':JSON.stringify(e)}asStringSmall(e){let n=e.length,r="",i=-1,l=255;for(var s=0;s=55296&&l<=57343)return JSON.stringify(e);(l===34||l===92)&&(i===-1&&(i=0),r+=e.slice(i,s)+"\\",i=s)}return i===-1&&'"'+e+'"'||'"'+r+e.slice(i)+'"'}getState(){return this._options}static restoreFromState(e){return new QC(e)}}});var Qu=k(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.regexpCode=tn.getEsmExportName=tn.getProperty=tn.safeStringify=tn.stringify=tn.strConcat=tn.addCodeArg=tn.str=tn._=tn.nil=tn._Code=tn.Name=tn.IDENTIFIER=tn._CodeOrName=void 0;var d4=class{};tn._CodeOrName=d4;tn.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var b3=class extends d4{constructor(e){if(super(),!tn.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};tn.Name=b3;var Wl=class extends d4{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((n,r)=>`${n}${r}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((n,r)=>(r instanceof b3&&(n[r.str]=(n[r.str]||0)+1),n),{})}};tn._Code=Wl;tn.nil=new Wl("");function eR(t,...e){let n=[t[0]],r=0;for(;r{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.ValueScope=Zi.ValueScopeName=Zi.Scope=Zi.varKinds=Zi.UsedValueState=void 0;var hl=Qu(),om=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},um;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(um=Zi.UsedValueState||(Zi.UsedValueState={}));Zi.varKinds={const:new hl.Name("const"),let:new hl.Name("let"),var:new hl.Name("var")};var T8=class{constructor({prefixes:e,parent:n}={}){this._names={},this._prefixes=e,this._parent=n}toName(e){return e instanceof hl.Name?e:this.name(e)}name(e){return new hl.Name(this._newName(e))}_newName(e){let n=this._names[e]||this._nameGroup(e);return`${e}${n.index++}`}_nameGroup(e){var n,r;if(!((r=(n=this._parent)===null||n===void 0?void 0:n._prefixes)===null||r===void 0)&&r.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Zi.Scope=T8;var x8=class extends hl.Name{constructor(e,n){super(n),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,hl._)`.${new hl.Name(n)}[${r}]`}};Zi.ValueScopeName=x8;var H2e=(0,hl._)`\n`,cm=class extends T8{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?H2e:hl.nil}}get(){return this._scope}name(e){return new x8(e,this._newName(e))}value(e,n){var r;if(n.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(e),{prefix:l}=i,s=(r=n.key)!==null&&r!==void 0?r:n.ref,a=this._values[l];if(a){let c=a.get(s);if(c)return c}else a=this._values[l]=new Map;a.set(s,i);let o=this._scope[l]||(this._scope[l]=[]),u=o.length;return o[u]=n.ref,i.setValue(n,{property:l,itemIndex:u}),i}getValue(e,n){let r=this._values[e];if(r)return r.get(n)}scopeRefs(e,n=this._values){return this._reduceValues(n,r=>{if(r.scopePath===void 0)throw new Error(`CodeGen: name "${r}" has no value`);return(0,hl._)`${e}${r.scopePath}`})}scopeCode(e=this._values,n,r){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},n,r)}_reduceValues(e,n,r={},i){let l=hl.nil;for(let s in e){let a=e[s];if(!a)continue;let o=r[s]=r[s]||new Map;a.forEach(u=>{if(o.has(u))return;o.set(u,um.Started);let c=n(u);if(c){let f=this.opts.es5?Zi.varKinds.var:Zi.varKinds.const;l=(0,hl._)`${l}${f} ${u} = ${c};${this.opts._n}`}else if(c=i?.(u))l=(0,hl._)`${l}${c}${this.opts._n}`;else throw new om(u);o.set(u,um.Completed)})}return l}};Zi.ValueScope=cm});var st=k(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.or=It.and=It.not=It.CodeGen=It.operators=It.varKinds=It.ValueScopeName=It.ValueScope=It.Scope=It.Name=It.regexpCode=It.stringify=It.getProperty=It.nil=It.strConcat=It.str=It._=void 0;var Kt=Qu(),_s=A8(),E2=Qu();Object.defineProperty(It,"_",{enumerable:!0,get:function(){return E2._}});Object.defineProperty(It,"str",{enumerable:!0,get:function(){return E2.str}});Object.defineProperty(It,"strConcat",{enumerable:!0,get:function(){return E2.strConcat}});Object.defineProperty(It,"nil",{enumerable:!0,get:function(){return E2.nil}});Object.defineProperty(It,"getProperty",{enumerable:!0,get:function(){return E2.getProperty}});Object.defineProperty(It,"stringify",{enumerable:!0,get:function(){return E2.stringify}});Object.defineProperty(It,"regexpCode",{enumerable:!0,get:function(){return E2.regexpCode}});Object.defineProperty(It,"Name",{enumerable:!0,get:function(){return E2.Name}});var R8=A8();Object.defineProperty(It,"Scope",{enumerable:!0,get:function(){return R8.Scope}});Object.defineProperty(It,"ValueScope",{enumerable:!0,get:function(){return R8.ValueScope}});Object.defineProperty(It,"ValueScopeName",{enumerable:!0,get:function(){return R8.ValueScopeName}});Object.defineProperty(It,"varKinds",{enumerable:!0,get:function(){return R8.varKinds}});It.operators={GT:new Kt._Code(">"),GTE:new Kt._Code(">="),LT:new Kt._Code("<"),LTE:new Kt._Code("<="),EQ:new Kt._Code("==="),NEQ:new Kt._Code("!=="),NOT:new Kt._Code("!"),OR:new Kt._Code("||"),AND:new Kt._Code("&&"),ADD:new Kt._Code("+")};var Ua=class{optimizeNodes(){return this}optimizeNames(e,n){return this}},pm=class extends Ua{constructor(e,n,r){super(),this.varKind=e,this.name=n,this.rhs=r}render({es5:e,_n:n}){let r=e?_s.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${r} ${this.name}${i};`+n}optimizeNames(e,n){if(e[this.name.str])return this.rhs&&(this.rhs=e1(this.rhs,e,n)),this}get names(){return this.rhs instanceof Kt._CodeOrName?this.rhs.names:{}}},O8=class extends Ua{constructor(e,n,r){super(),this.lhs=e,this.rhs=n,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof Kt.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=e1(this.rhs,e,n),this}get names(){let e=this.lhs instanceof Kt.Name?{}:{...this.lhs.names};return C8(e,this.rhs)}},fm=class extends O8{constructor(e,n,r,i){super(e,r,i),this.op=n}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},dm=class extends Ua{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},hm=class extends Ua{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},mm=class extends Ua{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},ym=class extends Ua{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,n){return this.code=e1(this.code,e,n),this}get names(){return this.code instanceof Kt._CodeOrName?this.code.names:{}}},m4=class extends Ua{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((n,r)=>n+r.render(e),"")}optimizeNodes(){let{nodes:e}=this,n=e.length;for(;n--;){let r=e[n].optimizeNodes();Array.isArray(r)?e.splice(n,1,...r):r?e[n]=r:e.splice(n,1)}return e.length>0?this:void 0}optimizeNames(e,n){let{nodes:r}=this,i=r.length;for(;i--;){let l=r[i];l.optimizeNames(e,n)||(V2e(e,l.names),r.splice(i,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,n)=>T3(e,n.names),{})}},Ma=class extends m4{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},gm=class extends m4{},Zu=class extends Ma{};Zu.kind="else";var w3=class t extends Ma{constructor(e,n){super(n),this.condition=e}render(e){let n=`if(${this.condition})`+super.render(e);return this.else&&(n+="else "+this.else.render(e)),n}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let n=this.else;if(n){let r=n.optimizeNodes();n=this.else=Array.isArray(r)?new Zu(r):r}if(n)return e===!1?n instanceof t?n:n.nodes:this.nodes.length?this:new t(nR(e),n instanceof t?[n]:n.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,n){var r;if(this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(e,n),!!(super.optimizeNames(e,n)||this.else))return this.condition=e1(this.condition,e,n),this}get names(){let e=super.names;return C8(e,this.condition),this.else&&T3(e,this.else.names),e}};w3.kind="if";var S3=class extends Ma{};S3.kind="for";var vm=class extends S3{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,n){if(super.optimizeNames(e,n))return this.iteration=e1(this.iteration,e,n),this}get names(){return T3(super.names,this.iteration.names)}},_m=class extends S3{constructor(e,n,r,i){super(),this.varKind=e,this.name=n,this.from=r,this.to=i}render(e){let n=e.es5?_s.varKinds.var:this.varKind,{name:r,from:i,to:l}=this;return`for(${n} ${r}=${i}; ${r}<${l}; ${r}++)`+super.render(e)}get names(){let e=C8(super.names,this.from);return C8(e,this.to)}},N8=class extends S3{constructor(e,n,r,i){super(),this.loop=e,this.varKind=n,this.name=r,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,n){if(super.optimizeNames(e,n))return this.iterable=e1(this.iterable,e,n),this}get names(){return T3(super.names,this.iterable.names)}},y4=class extends Ma{constructor(e,n,r){super(),this.name=e,this.args=n,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};y4.kind="func";var g4=class extends m4{render(e){return"return "+super.render(e)}};g4.kind="return";var Em=class extends Ma{render(e){let n="try"+super.render(e);return this.catch&&(n+=this.catch.render(e)),this.finally&&(n+=this.finally.render(e)),n}optimizeNodes(){var e,n;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(n=this.finally)===null||n===void 0||n.optimizeNodes(),this}optimizeNames(e,n){var r,i;return super.optimizeNames(e,n),(r=this.catch)===null||r===void 0||r.optimizeNames(e,n),(i=this.finally)===null||i===void 0||i.optimizeNames(e,n),this}get names(){let e=super.names;return this.catch&&T3(e,this.catch.names),this.finally&&T3(e,this.finally.names),e}},v4=class extends Ma{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};v4.kind="catch";var _4=class extends Ma{render(e){return"finally"+super.render(e)}};_4.kind="finally";var bm=class{constructor(e,n={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...n,_n:n.lines?`
+`:""},this._extScope=e,this._scope=new _s.Scope({parent:e}),this._nodes=[new gm]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,n){let r=this._extScope.value(e,n);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,n){return this._extScope.getValue(e,n)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,n,r,i){let l=this._scope.toName(n);return r!==void 0&&i&&(this._constants[l.str]=r),this._leafNode(new pm(e,l,r)),l}const(e,n,r){return this._def(_s.varKinds.const,e,n,r)}let(e,n,r){return this._def(_s.varKinds.let,e,n,r)}var(e,n,r){return this._def(_s.varKinds.var,e,n,r)}assign(e,n,r){return this._leafNode(new O8(e,n,r))}add(e,n){return this._leafNode(new fm(e,It.operators.ADD,n))}code(e){return typeof e=="function"?e():e!==Kt.nil&&this._leafNode(new ym(e)),this}object(...e){let n=["{"];for(let[r,i]of e)n.length>1&&n.push(","),n.push(r),(r!==i||this.opts.es5)&&(n.push(":"),(0,Kt.addCodeArg)(n,i));return n.push("}"),new Kt._Code(n)}if(e,n,r){if(this._blockNode(new w3(e)),n&&r)this.code(n).else().code(r).endIf();else if(n)this.code(n).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new w3(e))}else(){return this._elseNode(new Zu)}endIf(){return this._endBlockNode(w3,Zu)}_for(e,n){return this._blockNode(e),n&&this.code(n).endFor(),this}for(e,n){return this._for(new vm(e),n)}forRange(e,n,r,i,l=this.opts.es5?_s.varKinds.var:_s.varKinds.let){let s=this._scope.toName(e);return this._for(new _m(l,s,n,r),()=>i(s))}forOf(e,n,r,i=_s.varKinds.const){let l=this._scope.toName(e);if(this.opts.es5){let s=n instanceof Kt.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,Kt._)`${s}.length`,a=>{this.var(l,(0,Kt._)`${s}[${a}]`),r(l)})}return this._for(new N8("of",i,l,n),()=>r(l))}forIn(e,n,r,i=this.opts.es5?_s.varKinds.var:_s.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Kt._)`Object.keys(${n})`,r);let l=this._scope.toName(e);return this._for(new N8("in",i,l,n),()=>r(l))}endFor(){return this._endBlockNode(S3)}label(e){return this._leafNode(new dm(e))}break(e){return this._leafNode(new hm(e))}return(e){let n=new g4;if(this._blockNode(n),this.code(e),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(g4)}try(e,n,r){if(!n&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Em;if(this._blockNode(i),this.code(e),n){let l=this.name("e");this._currNode=i.catch=new v4(l),n(l)}return r&&(this._currNode=i.finally=new _4,this.code(r)),this._endBlockNode(v4,_4)}throw(e){return this._leafNode(new mm(e))}block(e,n){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(n),this}endBlock(e){let n=this._blockStarts.pop();if(n===void 0)throw new Error("CodeGen: not in self-balancing block");let r=this._nodes.length-n;if(r<0||e!==void 0&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=n,this}func(e,n=Kt.nil,r,i){return this._blockNode(new y4(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(y4)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,n){let r=this._currNode;if(r instanceof e||n&&r instanceof n)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${n?`${e.kind}/${n.kind}`:e.kind}"`)}_elseNode(e){let n=this._currNode;if(!(n instanceof w3))throw new Error('CodeGen: "else" without "if"');return this._currNode=n.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let n=this._nodes;n[n.length-1]=e}};It.CodeGen=bm;function T3(t,e){for(let n in e)t[n]=(t[n]||0)+(e[n]||0);return t}function C8(t,e){return e instanceof Kt._CodeOrName?T3(t,e.names):t}function e1(t,e,n){if(t instanceof Kt.Name)return r(t);if(!i(t))return t;return new Kt._Code(t._items.reduce((l,s)=>(s instanceof Kt.Name&&(s=r(s)),s instanceof Kt._Code?l.push(...s._items):l.push(s),l),[]));function r(l){let s=n[l.str];return s===void 0||e[l.str]!==1?l:(delete e[l.str],s)}function i(l){return l instanceof Kt._Code&&l._items.some(s=>s instanceof Kt.Name&&e[s.str]===1&&n[s.str]!==void 0)}}function V2e(t,e){for(let n in e)t[n]=(t[n]||0)-(e[n]||0)}function nR(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Kt._)`!${wm(t)}`}It.not=nR;var q2e=rR(It.operators.AND);function z2e(...t){return t.reduce(q2e)}It.and=z2e;var G2e=rR(It.operators.OR);function J2e(...t){return t.reduce(G2e)}It.or=J2e;function rR(t){return(e,n)=>e===Kt.nil?n:n===Kt.nil?e:(0,Kt._)`${wm(e)} ${t} ${wm(n)}`}function wm(t){return t instanceof Kt.Name?t:(0,Kt._)`(${t})`}});var Nt=k(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.checkStrictMode=kt.getErrorPath=kt.Type=kt.useFunc=kt.setEvaluated=kt.evaluatedPropsToName=kt.mergeEvaluated=kt.eachItem=kt.unescapeJsonPointer=kt.escapeJsonPointer=kt.escapeFragment=kt.unescapeFragment=kt.schemaRefOrVal=kt.schemaHasRulesButRef=kt.schemaHasRules=kt.checkUnknownRules=kt.alwaysValidSchema=kt.toHash=void 0;var tr=st(),K2e=Qu();function X2e(t){let e={};for(let n of t)e[n]=!0;return e}kt.toHash=X2e;function W2e(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(sR(t,e),!aR(e,t.self.RULES.all))}kt.alwaysValidSchema=W2e;function sR(t,e=t.schema){let{opts:n,self:r}=t;if(!n.strictSchema||typeof e=="boolean")return;let i=r.RULES.keywords;for(let l in e)i[l]||pR(t,`unknown keyword: "${l}"`)}kt.checkUnknownRules=sR;function aR(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(e[n])return!0;return!1}kt.schemaHasRules=aR;function Y2e(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(n!=="$ref"&&e.all[n])return!0;return!1}kt.schemaHasRulesButRef=Y2e;function Q2e({topSchemaRef:t,schemaPath:e},n,r,i){if(!i){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,tr._)`${n}`}return(0,tr._)`${t}${e}${(0,tr.getProperty)(r)}`}kt.schemaRefOrVal=Q2e;function Z2e(t){return oR(decodeURIComponent(t))}kt.unescapeFragment=Z2e;function eoe(t){return encodeURIComponent(Sm(t))}kt.escapeFragment=eoe;function Sm(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}kt.escapeJsonPointer=Sm;function oR(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}kt.unescapeJsonPointer=oR;function toe(t,e){if(Array.isArray(t))for(let n of t)e(n);else e(t)}kt.eachItem=toe;function iR({mergeNames:t,mergeToName:e,mergeValues:n,resultToName:r}){return(i,l,s,a)=>{let o=s===void 0?l:s instanceof tr.Name?(l instanceof tr.Name?t(i,l,s):e(i,l,s),s):l instanceof tr.Name?(e(i,s,l),l):n(l,s);return a===tr.Name&&!(o instanceof tr.Name)?r(i,o):o}}kt.mergeEvaluated={props:iR({mergeNames:(t,e,n)=>t.if((0,tr._)`${n} !== true && ${e} !== undefined`,()=>{t.if((0,tr._)`${e} === true`,()=>t.assign(n,!0),()=>t.assign(n,(0,tr._)`${n} || {}`).code((0,tr._)`Object.assign(${n}, ${e})`))}),mergeToName:(t,e,n)=>t.if((0,tr._)`${n} !== true`,()=>{e===!0?t.assign(n,!0):(t.assign(n,(0,tr._)`${n} || {}`),Tm(t,n,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:uR}),items:iR({mergeNames:(t,e,n)=>t.if((0,tr._)`${n} !== true && ${e} !== undefined`,()=>t.assign(n,(0,tr._)`${e} === true ? true : ${n} > ${e} ? ${n} : ${e}`)),mergeToName:(t,e,n)=>t.if((0,tr._)`${n} !== true`,()=>t.assign(n,e===!0?!0:(0,tr._)`${n} > ${e} ? ${n} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function uR(t,e){if(e===!0)return t.var("props",!0);let n=t.var("props",(0,tr._)`{}`);return e!==void 0&&Tm(t,n,e),n}kt.evaluatedPropsToName=uR;function Tm(t,e,n){Object.keys(n).forEach(r=>t.assign((0,tr._)`${e}${(0,tr.getProperty)(r)}`,!0))}kt.setEvaluated=Tm;var lR={};function noe(t,e){return t.scopeValue("func",{ref:e,code:lR[e.code]||(lR[e.code]=new K2e._Code(e.code))})}kt.useFunc=noe;var cR;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(cR=kt.Type||(kt.Type={}));function roe(t,e,n){if(t instanceof tr.Name){let r=e===cR.Num;return n?r?(0,tr._)`"[" + ${t} + "]"`:(0,tr._)`"['" + ${t} + "']"`:r?(0,tr._)`"/" + ${t}`:(0,tr._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,tr.getProperty)(t).toString():"/"+Sm(t)}kt.getErrorPath=roe;function pR(t,e,n=t.opts.strictSchema){if(n){if(e=`strict mode: ${e}`,n===!0)throw new Error(e);t.self.logger.warn(e)}}kt.checkStrictMode=pR});var Yl=k(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var $i=st(),ioe={data:new $i.Name("data"),valCxt:new $i.Name("valCxt"),instancePath:new $i.Name("instancePath"),parentData:new $i.Name("parentData"),parentDataProperty:new $i.Name("parentDataProperty"),rootData:new $i.Name("rootData"),dynamicAnchors:new $i.Name("dynamicAnchors"),vErrors:new $i.Name("vErrors"),errors:new $i.Name("errors"),this:new $i.Name("this"),self:new $i.Name("self"),scope:new $i.Name("scope"),json:new $i.Name("json"),jsonPos:new $i.Name("jsonPos"),jsonLen:new $i.Name("jsonLen"),jsonPart:new $i.Name("jsonPart")};xm.default=ioe});var E4=k(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.extendErrors=Bi.resetErrorsCount=Bi.reportExtraError=Bi.reportError=Bi.keyword$DataError=Bi.keywordError=void 0;var Yt=st(),I8=Nt(),el=Yl();Bi.keywordError={message:({keyword:t})=>(0,Yt.str)`must pass "${t}" keyword validation`};Bi.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,Yt.str)`"${t}" keyword must be ${e} ($data)`:(0,Yt.str)`"${t}" keyword is invalid ($data)`};function loe(t,e=Bi.keywordError,n,r){let{it:i}=t,{gen:l,compositeRule:s,allErrors:a}=i,o=hR(t,e,n);r??(s||a)?fR(l,o):dR(i,(0,Yt._)`[${o}]`)}Bi.reportError=loe;function soe(t,e=Bi.keywordError,n){let{it:r}=t,{gen:i,compositeRule:l,allErrors:s}=r,a=hR(t,e,n);fR(i,a),l||s||dR(r,el.default.vErrors)}Bi.reportExtraError=soe;function aoe(t,e){t.assign(el.default.errors,e),t.if((0,Yt._)`${el.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,Yt._)`${el.default.vErrors}.length`,e),()=>t.assign(el.default.vErrors,null)))}Bi.resetErrorsCount=aoe;function ooe({gen:t,keyword:e,schemaValue:n,data:r,errsCount:i,it:l}){if(i===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",i,el.default.errors,a=>{t.const(s,(0,Yt._)`${el.default.vErrors}[${a}]`),t.if((0,Yt._)`${s}.instancePath === undefined`,()=>t.assign((0,Yt._)`${s}.instancePath`,(0,Yt.strConcat)(el.default.instancePath,l.errorPath))),t.assign((0,Yt._)`${s}.schemaPath`,(0,Yt.str)`${l.errSchemaPath}/${e}`),l.opts.verbose&&(t.assign((0,Yt._)`${s}.schema`,n),t.assign((0,Yt._)`${s}.data`,r))})}Bi.extendErrors=ooe;function fR(t,e){let n=t.const("err",e);t.if((0,Yt._)`${el.default.vErrors} === null`,()=>t.assign(el.default.vErrors,(0,Yt._)`[${n}]`),(0,Yt._)`${el.default.vErrors}.push(${n})`),t.code((0,Yt._)`${el.default.errors}++`)}function dR(t,e){let{gen:n,validateName:r,schemaEnv:i}=t;i.$async?n.throw((0,Yt._)`new ${t.ValidationError}(${e})`):(n.assign((0,Yt._)`${r}.errors`,e),n.return(!1))}var x3={keyword:new Yt.Name("keyword"),schemaPath:new Yt.Name("schemaPath"),params:new Yt.Name("params"),propertyName:new Yt.Name("propertyName"),message:new Yt.Name("message"),schema:new Yt.Name("schema"),parentSchema:new Yt.Name("parentSchema")};function hR(t,e,n){let{createErrors:r}=t.it;return r===!1?(0,Yt._)`{}`:uoe(t,e,n)}function uoe(t,e,n={}){let{gen:r,it:i}=t,l=[coe(i,n),poe(t,n)];return foe(t,e,l),r.object(...l)}function coe({errorPath:t},{instancePath:e}){let n=e?(0,Yt.str)`${t}${(0,I8.getErrorPath)(e,I8.Type.Str)}`:t;return[el.default.instancePath,(0,Yt.strConcat)(el.default.instancePath,n)]}function poe({keyword:t,it:{errSchemaPath:e}},{schemaPath:n,parentSchema:r}){let i=r?e:(0,Yt.str)`${e}/${t}`;return n&&(i=(0,Yt.str)`${i}${(0,I8.getErrorPath)(n,I8.Type.Str)}`),[x3.schemaPath,i]}function foe(t,{params:e,message:n},r){let{keyword:i,data:l,schemaValue:s,it:a}=t,{opts:o,propertyName:u,topSchemaRef:c,schemaPath:f}=a;r.push([x3.keyword,i],[x3.params,typeof e=="function"?e(t):e||(0,Yt._)`{}`]),o.messages&&r.push([x3.message,typeof n=="function"?n(t):n]),o.verbose&&r.push([x3.schema,s],[x3.parentSchema,(0,Yt._)`${c}${f}`],[el.default.data,l]),u&&r.push([x3.propertyName,u])}});var yR=k(t1=>{"use strict";Object.defineProperty(t1,"__esModule",{value:!0});t1.boolOrEmptySchema=t1.topBoolOrEmptySchema=void 0;var doe=E4(),hoe=st(),moe=Yl(),yoe={message:"boolean schema is false"};function goe(t){let{gen:e,schema:n,validateName:r}=t;n===!1?mR(t,!1):typeof n=="object"&&n.$async===!0?e.return(moe.default.data):(e.assign((0,hoe._)`${r}.errors`,null),e.return(!0))}t1.topBoolOrEmptySchema=goe;function voe(t,e){let{gen:n,schema:r}=t;r===!1?(n.var(e,!1),mR(t)):n.var(e,!0)}t1.boolOrEmptySchema=voe;function mR(t,e){let{gen:n,data:r}=t,i={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,doe.reportError)(i,yoe,void 0,e)}});var Am=k(n1=>{"use strict";Object.defineProperty(n1,"__esModule",{value:!0});n1.getRules=n1.isJSONType=void 0;var _oe=["string","number","integer","boolean","null","object","array"],Eoe=new Set(_oe);function boe(t){return typeof t=="string"&&Eoe.has(t)}n1.isJSONType=boe;function woe(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}n1.getRules=woe});var Om=k(b2=>{"use strict";Object.defineProperty(b2,"__esModule",{value:!0});b2.shouldUseRule=b2.shouldUseGroup=b2.schemaHasRulesForType=void 0;function Soe({schema:t,self:e},n){let r=e.RULES.types[n];return r&&r!==!0&&gR(t,r)}b2.schemaHasRulesForType=Soe;function gR(t,e){return e.rules.some(n=>vR(t,n))}b2.shouldUseGroup=gR;function vR(t,e){var n;return t[e.keyword]!==void 0||((n=e.definition.implements)===null||n===void 0?void 0:n.some(r=>t[r]!==void 0))}b2.shouldUseRule=vR});var w4=k(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.reportTypeError=xi.checkDataTypes=xi.checkDataType=xi.coerceAndCheckDataType=xi.getJSONTypes=xi.getSchemaTypes=xi.DataType=void 0;var Toe=Am(),xoe=Om(),Aoe=E4(),Ot=st(),_R=Nt(),b4;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(b4=xi.DataType||(xi.DataType={}));function Ooe(t){let e=ER(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}xi.getSchemaTypes=Ooe;function ER(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(Toe.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}xi.getJSONTypes=ER;function Noe(t,e){let{gen:n,data:r,opts:i}=t,l=Coe(e,i.coerceTypes),s=e.length>0&&!(l.length===0&&e.length===1&&(0,xoe.schemaHasRulesForType)(t,e[0]));if(s){let a=Cm(e,r,i.strictNumbers,b4.Wrong);n.if(a,()=>{l.length?Roe(t,e,l):Rm(t)})}return s}xi.coerceAndCheckDataType=Noe;var bR=new Set(["string","number","integer","boolean","null"]);function Coe(t,e){return e?t.filter(n=>bR.has(n)||e==="array"&&n==="array"):[]}function Roe(t,e,n){let{gen:r,data:i,opts:l}=t,s=r.let("dataType",(0,Ot._)`typeof ${i}`),a=r.let("coerced",(0,Ot._)`undefined`);l.coerceTypes==="array"&&r.if((0,Ot._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>r.assign(i,(0,Ot._)`${i}[0]`).assign(s,(0,Ot._)`typeof ${i}`).if(Cm(e,i,l.strictNumbers),()=>r.assign(a,i))),r.if((0,Ot._)`${a} !== undefined`);for(let u of n)(bR.has(u)||u==="array"&&l.coerceTypes==="array")&&o(u);r.else(),Rm(t),r.endIf(),r.if((0,Ot._)`${a} !== undefined`,()=>{r.assign(i,a),Ioe(t,a)});function o(u){switch(u){case"string":r.elseIf((0,Ot._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,Ot._)`"" + ${i}`).elseIf((0,Ot._)`${i} === null`).assign(a,(0,Ot._)`""`);return;case"number":r.elseIf((0,Ot._)`${s} == "boolean" || ${i} === null
|| (${s} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,Ot._)`+${i}`);return;case"integer":r.elseIf((0,Ot._)`${s} === "boolean" || ${i} === null
|| (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,Ot._)`+${i}`);return;case"boolean":r.elseIf((0,Ot._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,Ot._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":r.elseIf((0,Ot._)`${i} === "" || ${i} === 0 || ${i} === false`),r.assign(a,null);return;case"array":r.elseIf((0,Ot._)`${s} === "string" || ${s} === "number"
- || ${s} === "boolean" || ${i} === null`).assign(a,(0,Ot._)`[${i}]`)}}}function E3e({gen:t,parentData:e,parentDataProperty:n},r){t.if((0,Ot._)`${e} !== undefined`,()=>t.assign((0,Ot._)`${e}[${n}]`,r))}function xm(t,e,n,r=_4.Correct){let i=r===_4.Correct?Ot.operators.EQ:Ot.operators.NEQ,l;switch(t){case"null":return(0,Ot._)`${e} ${i} null`;case"array":l=(0,Ot._)`Array.isArray(${e})`;break;case"object":l=(0,Ot._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":l=s((0,Ot._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":l=s();break;default:return(0,Ot._)`typeof ${e} ${i} ${t}`}return r===_4.Correct?l:(0,Ot.not)(l);function s(a=Ot.nil){return(0,Ot.and)((0,Ot._)`typeof ${e} == "number"`,a,n?(0,Ot._)`isFinite(${e})`:Ot.nil)}}wi.checkDataType=xm;function Am(t,e,n,r){if(t.length===1)return xm(t[0],e,n,r);let i,l=(0,hR.toHash)(t);if(l.array&&l.object){let s=(0,Ot._)`typeof ${e} != "object"`;i=l.null?s:(0,Ot._)`!${e} || ${s}`,delete l.null,delete l.array,delete l.object}else i=Ot.nil;l.number&&delete l.integer;for(let s in l)i=(0,Ot.and)(i,xm(s,e,n,r));return i}wi.checkDataTypes=Am;var b3e={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,Ot._)`{type: ${t}}`:(0,Ot._)`{type: ${e}}`};function Om(t){let e=w3e(t);(0,m3e.reportError)(e,b3e)}wi.reportTypeError=Om;function w3e(t){let{gen:e,data:n,schema:r}=t,i=(0,hR.schemaRefOrVal)(t,r,"type");return{gen:e,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:t}}});var vR=k(R8=>{"use strict";Object.defineProperty(R8,"__esModule",{value:!0});R8.assignDefaults=void 0;var e1=st(),S3e=Nt();function T3e(t,e){let{properties:n,items:r}=t.schema;if(e==="object"&&n)for(let i in n)gR(t,i,n[i].default);else e==="array"&&Array.isArray(r)&&r.forEach((i,l)=>gR(t,l,i.default))}R8.assignDefaults=T3e;function gR(t,e,n){let{gen:r,compositeRule:i,data:l,opts:s}=t;if(n===void 0)return;let a=(0,e1._)`${l}${(0,e1.getProperty)(e)}`;if(i){(0,S3e.checkStrictMode)(t,`default is ignored for: ${a}`);return}let o=(0,e1._)`${a} === undefined`;s.useDefaults==="empty"&&(o=(0,e1._)`${o} || ${a} === null || ${a} === ""`),r.if(o,(0,e1._)`${a} = ${(0,e1.stringify)(n)}`)}});var Si=k(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.validateUnion=Xn.validateArray=Xn.usePattern=Xn.callValidateCode=Xn.schemaProperties=Xn.allSchemaProperties=Xn.noPropertyInData=Xn.propertyInData=Xn.isOwnProperty=Xn.hasPropFunc=Xn.reportMissingProp=Xn.checkMissingProp=Xn.checkReportMissingProp=void 0;var cr=st(),Nm=Nt(),b2=Wl(),x3e=Nt();function A3e(t,e){let{gen:n,data:r,it:i}=t;n.if(Rm(n,r,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,cr._)`${e}`},!0),t.error()})}Xn.checkReportMissingProp=A3e;function O3e({gen:t,data:e,it:{opts:n}},r,i){return(0,cr.or)(...r.map(l=>(0,cr.and)(Rm(t,e,l,n.ownProperties),(0,cr._)`${i} = ${l}`)))}Xn.checkMissingProp=O3e;function N3e(t,e){t.setParams({missingProperty:e},!0),t.error()}Xn.reportMissingProp=N3e;function _R(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,cr._)`Object.prototype.hasOwnProperty`})}Xn.hasPropFunc=_R;function Cm(t,e,n){return(0,cr._)`${_R(t)}.call(${e}, ${n})`}Xn.isOwnProperty=Cm;function C3e(t,e,n,r){let i=(0,cr._)`${e}${(0,cr.getProperty)(n)} !== undefined`;return r?(0,cr._)`${i} && ${Cm(t,e,n)}`:i}Xn.propertyInData=C3e;function Rm(t,e,n,r){let i=(0,cr._)`${e}${(0,cr.getProperty)(n)} === undefined`;return r?(0,cr.or)(i,(0,cr.not)(Cm(t,e,n))):i}Xn.noPropertyInData=Rm;function ER(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Xn.allSchemaProperties=ER;function R3e(t,e){return ER(e).filter(n=>!(0,Nm.alwaysValidSchema)(t,e[n]))}Xn.schemaProperties=R3e;function I3e({schemaCode:t,data:e,it:{gen:n,topSchemaRef:r,schemaPath:i,errorPath:l},it:s},a,o,u){let c=u?(0,cr._)`${t}, ${e}, ${r}${i}`:e,f=[[b2.default.instancePath,(0,cr.strConcat)(b2.default.instancePath,l)],[b2.default.parentData,s.parentData],[b2.default.parentDataProperty,s.parentDataProperty],[b2.default.rootData,b2.default.rootData]];s.opts.dynamicRef&&f.push([b2.default.dynamicAnchors,b2.default.dynamicAnchors]);let m=(0,cr._)`${c}, ${n.object(...f)}`;return o!==cr.nil?(0,cr._)`${a}.call(${o}, ${m})`:(0,cr._)`${a}(${m})`}Xn.callValidateCode=I3e;var k3e=(0,cr._)`new RegExp`;function D3e({gen:t,it:{opts:e}},n){let r=e.unicodeRegExp?"u":"",{regExp:i}=e.code,l=i(n,r);return t.scopeValue("pattern",{key:l.toString(),ref:l,code:(0,cr._)`${i.code==="new RegExp"?k3e:(0,x3e.useFunc)(t,i)}(${n}, ${r})`})}Xn.usePattern=D3e;function P3e(t){let{gen:e,data:n,keyword:r,it:i}=t,l=e.name("valid");if(i.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(l,!0),s(()=>e.break()),l;function s(a){let o=e.const("len",(0,cr._)`${n}.length`);e.forRange("i",0,o,u=>{t.subschema({keyword:r,dataProp:u,dataPropType:Nm.Type.Num},l),e.if((0,cr.not)(l),a)})}}Xn.validateArray=P3e;function L3e(t){let{gen:e,schema:n,keyword:r,it:i}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(o=>(0,Nm.alwaysValidSchema)(i,o))&&!i.opts.unevaluated)return;let s=e.let("valid",!1),a=e.name("_valid");e.block(()=>n.forEach((o,u)=>{let c=t.subschema({keyword:r,schemaProp:u,compositeRule:!0},a);e.assign(s,(0,cr._)`${s} || ${a}`),t.mergeValidEvaluated(c,a)||e.if((0,cr.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}Xn.validateUnion=L3e});var SR=k(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.validateKeywordUsage=Xs.validSchemaType=Xs.funcKeywordCode=Xs.macroKeywordCode=void 0;var Zi=st(),So=Wl(),F3e=Si(),j3e=v4();function U3e(t,e){let{gen:n,keyword:r,schema:i,parentSchema:l,it:s}=t,a=e.macro.call(s.self,i,l,s),o=wR(n,r,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let u=n.name("valid");t.subschema({schema:a,schemaPath:Zi.nil,errSchemaPath:`${s.errSchemaPath}/${r}`,topSchemaRef:o,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}Xs.macroKeywordCode=U3e;function M3e(t,e){var n;let{gen:r,keyword:i,schema:l,parentSchema:s,$data:a,it:o}=t;B3e(o,e);let u=!a&&e.compile?e.compile.call(o.self,l,s,o):e.validate,c=wR(r,i,u),f=r.let("valid");t.block$data(f,m),t.ok((n=e.valid)!==null&&n!==void 0?n:f);function m(){if(e.errors===!1)_(),e.modifying&&bR(t),S(()=>t.error());else{let w=e.async?d():y();e.modifying&&bR(t),S(()=>$3e(t,w))}}function d(){let w=r.let("ruleErrs",null);return r.try(()=>_((0,Zi._)`await `),E=>r.assign(f,!1).if((0,Zi._)`${E} instanceof ${o.ValidationError}`,()=>r.assign(w,(0,Zi._)`${E}.errors`),()=>r.throw(E))),w}function y(){let w=(0,Zi._)`${c}.errors`;return r.assign(w,null),_(Zi.nil),w}function _(w=e.async?(0,Zi._)`await `:Zi.nil){let E=o.opts.passContext?So.default.this:So.default.self,g=!("compile"in e&&!a||e.schema===!1);r.assign(f,(0,Zi._)`${w}${(0,F3e.callValidateCode)(t,c,E,g)}`,e.modifying)}function S(w){var E;r.if((0,Zi.not)((E=e.valid)!==null&&E!==void 0?E:f),w)}}Xs.funcKeywordCode=M3e;function bR(t){let{gen:e,data:n,it:r}=t;e.if(r.parentData,()=>e.assign(n,(0,Zi._)`${r.parentData}[${r.parentDataProperty}]`))}function $3e(t,e){let{gen:n}=t;n.if((0,Zi._)`Array.isArray(${e})`,()=>{n.assign(So.default.vErrors,(0,Zi._)`${So.default.vErrors} === null ? ${e} : ${So.default.vErrors}.concat(${e})`).assign(So.default.errors,(0,Zi._)`${So.default.vErrors}.length`),(0,j3e.extendErrors)(t)},()=>t.error())}function B3e({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function wR(t,e,n){if(n===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,Zi.stringify)(n)})}function H3e(t,e,n=!1){return!e.length||e.some(r=>r==="array"?Array.isArray(t):r==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==r||n&&typeof t>"u")}Xs.validSchemaType=H3e;function V3e({schema:t,opts:e,self:n,errSchemaPath:r},i,l){if(Array.isArray(i.keyword)?!i.keyword.includes(l):i.keyword!==l)throw new Error("ajv implementation error");let s=i.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${l}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(t[l])){let o=`keyword "${l}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(e.validateSchema==="log")n.logger.error(o);else throw new Error(o)}}Xs.validateKeywordUsage=V3e});var xR=k(w2=>{"use strict";Object.defineProperty(w2,"__esModule",{value:!0});w2.extendSubschemaMode=w2.extendSubschemaData=w2.getSubschema=void 0;var Ws=st(),TR=Nt();function q3e(t,{keyword:e,schemaProp:n,schema:r,schemaPath:i,errSchemaPath:l,topSchemaRef:s}){if(e!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return n===void 0?{schema:a,schemaPath:(0,Ws._)`${t.schemaPath}${(0,Ws.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[n],schemaPath:(0,Ws._)`${t.schemaPath}${(0,Ws.getProperty)(e)}${(0,Ws.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,TR.escapeFragment)(n)}`}}if(r!==void 0){if(i===void 0||l===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:i,topSchemaRef:s,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}w2.getSubschema=q3e;function z3e(t,e,{dataProp:n,dataPropType:r,data:i,dataTypes:l,propertyName:s}){if(i!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(n!==void 0){let{errorPath:u,dataPathArr:c,opts:f}=e,m=a.let("data",(0,Ws._)`${e.data}${(0,Ws.getProperty)(n)}`,!0);o(m),t.errorPath=(0,Ws.str)`${u}${(0,TR.getErrorPath)(n,r,f.jsPropertySyntax)}`,t.parentDataProperty=(0,Ws._)`${n}`,t.dataPathArr=[...c,t.parentDataProperty]}if(i!==void 0){let u=i instanceof Ws.Name?i:a.let("data",i,!0);o(u),s!==void 0&&(t.propertyName=s)}l&&(t.dataTypes=l);function o(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}w2.extendSubschemaData=z3e;function G3e(t,{jtdDiscriminator:e,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:l}){r!==void 0&&(t.compositeRule=r),i!==void 0&&(t.createErrors=i),l!==void 0&&(t.allErrors=l),t.jtdDiscriminator=e,t.jtdMetadata=n}w2.extendSubschemaMode=G3e});var t1=k((YNe,AR)=>{"use strict";AR.exports=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,l;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(l=Object.keys(e),r=l.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[i]))return!1;for(i=r;i--!==0;){var s=l[i];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}});var NR=k((QNe,OR)=>{"use strict";var S2=OR.exports=function(t,e,n){typeof e=="function"&&(n=e,e={}),n=e.cb||n;var r=typeof n=="function"?n:n.pre||function(){},i=n.post||function(){};I8(e,r,i,t,"",t)};S2.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};S2.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};S2.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};S2.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function I8(t,e,n,r,i,l,s,a,o,u){if(r&&typeof r=="object"&&!Array.isArray(r)){e(r,i,l,s,a,o,u);for(var c in r){var f=r[c];if(Array.isArray(f)){if(c in S2.arrayKeywords)for(var m=0;m{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.getSchemaRefs=dl.resolveUrl=dl.normalizeId=dl._getFullPath=dl.getFullPath=dl.inlineRef=void 0;var K3e=Nt(),X3e=t1(),W3e=NR(),Y3e=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Q3e(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Im(t):e?CR(t)<=e:!1}dl.inlineRef=Q3e;var Z3e=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Im(t){for(let e in t){if(Z3e.has(e))return!0;let n=t[e];if(Array.isArray(n)&&n.some(Im)||typeof n=="object"&&Im(n))return!0}return!1}function CR(t){let e=0;for(let n in t){if(n==="$ref")return 1/0;if(e++,!Y3e.has(n)&&(typeof t[n]=="object"&&(0,K3e.eachItem)(t[n],r=>e+=CR(r)),e===1/0))return 1/0}return e}function RR(t,e="",n){n!==!1&&(e=n1(e));let r=t.parse(e);return IR(t,r)}dl.getFullPath=RR;function IR(t,e){return t.serialize(e).split("#")[0]+"#"}dl._getFullPath=IR;var eoe=/#\/?$/;function n1(t){return t?t.replace(eoe,""):""}dl.normalizeId=n1;function toe(t,e,n){return n=n1(n),t.resolve(e,n)}dl.resolveUrl=toe;var noe=/^[a-z_][-a-z0-9._]*$/i;function roe(t,e){if(typeof t=="boolean")return{};let{schemaId:n,uriResolver:r}=this.opts,i=n1(t[n]||e),l={"":i},s=RR(r,i,!1),a={},o=new Set;return W3e(t,{allKeys:!0},(f,m,d,y)=>{if(y===void 0)return;let _=s+m,S=l[y];typeof f[n]=="string"&&(S=w.call(this,f[n])),E.call(this,f.$anchor),E.call(this,f.$dynamicAnchor),l[m]=S;function w(g){let v=this.opts.uriResolver.resolve;if(g=n1(S?v(S,g):g),o.has(g))throw c(g);o.add(g);let x=this.refs[g];return typeof x=="string"&&(x=this.refs[x]),typeof x=="object"?u(f,x.schema,g):g!==n1(_)&&(g[0]==="#"?(u(f,a[g],g),a[g]=f):this.refs[g]=_),g}function E(g){if(typeof g=="string"){if(!noe.test(g))throw new Error(`invalid anchor "${g}"`);w.call(this,`#${g}`)}}}),a;function u(f,m,d){if(m!==void 0&&!X3e(f,m))throw c(d)}function c(f){return new Error(`reference "${f}" resolves to more than one schema`)}}dl.getSchemaRefs=roe});var r1=k(T2=>{"use strict";Object.defineProperty(T2,"__esModule",{value:!0});T2.getData=T2.KeywordCxt=T2.validateFunctionCode=void 0;var FR=pR(),kR=E4(),Dm=Tm(),k8=E4(),ioe=vR(),S4=SR(),km=xR(),et=st(),dt=Wl(),loe=b4(),Ma=Nt(),w4=v4();function soe(t){if(MR(t)&&($R(t),UR(t))){uoe(t);return}jR(t,()=>(0,FR.topBoolOrEmptySchema)(t))}T2.validateFunctionCode=soe;function jR({gen:t,validateName:e,schema:n,schemaEnv:r,opts:i},l){i.code.es5?t.func(e,(0,et._)`${dt.default.data}, ${dt.default.valCxt}`,r.$async,()=>{t.code((0,et._)`"use strict"; ${DR(n,i)}`),ooe(t,i),t.code(l)}):t.func(e,(0,et._)`${dt.default.data}, ${aoe(i)}`,r.$async,()=>t.code(DR(n,i)).code(l))}function aoe(t){return(0,et._)`{${dt.default.instancePath}="", ${dt.default.parentData}, ${dt.default.parentDataProperty}, ${dt.default.rootData}=${dt.default.data}${t.dynamicRef?(0,et._)`, ${dt.default.dynamicAnchors}={}`:et.nil}}={}`}function ooe(t,e){t.if(dt.default.valCxt,()=>{t.var(dt.default.instancePath,(0,et._)`${dt.default.valCxt}.${dt.default.instancePath}`),t.var(dt.default.parentData,(0,et._)`${dt.default.valCxt}.${dt.default.parentData}`),t.var(dt.default.parentDataProperty,(0,et._)`${dt.default.valCxt}.${dt.default.parentDataProperty}`),t.var(dt.default.rootData,(0,et._)`${dt.default.valCxt}.${dt.default.rootData}`),e.dynamicRef&&t.var(dt.default.dynamicAnchors,(0,et._)`${dt.default.valCxt}.${dt.default.dynamicAnchors}`)},()=>{t.var(dt.default.instancePath,(0,et._)`""`),t.var(dt.default.parentData,(0,et._)`undefined`),t.var(dt.default.parentDataProperty,(0,et._)`undefined`),t.var(dt.default.rootData,dt.default.data),e.dynamicRef&&t.var(dt.default.dynamicAnchors,(0,et._)`{}`)})}function uoe(t){let{schema:e,opts:n,gen:r}=t;jR(t,()=>{n.$comment&&e.$comment&&HR(t),hoe(t),r.let(dt.default.vErrors,null),r.let(dt.default.errors,0),n.unevaluated&&coe(t),BR(t),goe(t)})}function coe(t){let{gen:e,validateName:n}=t;t.evaluated=e.const("evaluated",(0,et._)`${n}.evaluated`),e.if((0,et._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,et._)`${t.evaluated}.props`,(0,et._)`undefined`)),e.if((0,et._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,et._)`${t.evaluated}.items`,(0,et._)`undefined`))}function DR(t,e){let n=typeof t=="object"&&t[e.schemaId];return n&&(e.code.source||e.code.process)?(0,et._)`/*# sourceURL=${n} */`:et.nil}function poe(t,e){if(MR(t)&&($R(t),UR(t))){foe(t,e);return}(0,FR.boolOrEmptySchema)(t,e)}function UR({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let n in t)if(e.RULES.all[n])return!0;return!1}function MR(t){return typeof t.schema!="boolean"}function foe(t,e){let{schema:n,gen:r,opts:i}=t;i.$comment&&n.$comment&&HR(t),moe(t),yoe(t);let l=r.const("_errs",dt.default.errors);BR(t,l),r.var(e,(0,et._)`${l} === ${dt.default.errors}`)}function $R(t){(0,Ma.checkUnknownRules)(t),doe(t)}function BR(t,e){if(t.opts.jtd)return PR(t,[],!1,e);let n=(0,kR.getSchemaTypes)(t.schema),r=(0,kR.coerceAndCheckDataType)(t,n);PR(t,n,!r,e)}function doe(t){let{schema:e,errSchemaPath:n,opts:r,self:i}=t;e.$ref&&r.ignoreKeywordsWithRef&&(0,Ma.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function hoe(t){let{schema:e,opts:n}=t;e.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Ma.checkStrictMode)(t,"default is ignored in the schema root")}function moe(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,loe.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function yoe(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function HR({gen:t,schemaEnv:e,schema:n,errSchemaPath:r,opts:i}){let l=n.$comment;if(i.$comment===!0)t.code((0,et._)`${dt.default.self}.logger.log(${l})`);else if(typeof i.$comment=="function"){let s=(0,et.str)`${r}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,et._)`${dt.default.self}.opts.$comment(${l}, ${s}, ${a}.schema)`)}}function goe(t){let{gen:e,schemaEnv:n,validateName:r,ValidationError:i,opts:l}=t;n.$async?e.if((0,et._)`${dt.default.errors} === 0`,()=>e.return(dt.default.data),()=>e.throw((0,et._)`new ${i}(${dt.default.vErrors})`)):(e.assign((0,et._)`${r}.errors`,dt.default.vErrors),l.unevaluated&&voe(t),e.return((0,et._)`${dt.default.errors} === 0`))}function voe({gen:t,evaluated:e,props:n,items:r}){n instanceof et.Name&&t.assign((0,et._)`${e}.props`,n),r instanceof et.Name&&t.assign((0,et._)`${e}.items`,r)}function PR(t,e,n,r){let{gen:i,schema:l,data:s,allErrors:a,opts:o,self:u}=t,{RULES:c}=u;if(l.$ref&&(o.ignoreKeywordsWithRef||!(0,Ma.schemaHasRulesButRef)(l,c))){i.block(()=>qR(t,"$ref",c.all.$ref.definition));return}o.jtd||_oe(t,e),i.block(()=>{for(let m of c.rules)f(m);f(c.post)});function f(m){(0,Dm.shouldUseGroup)(l,m)&&(m.type?(i.if((0,k8.checkDataType)(m.type,s,o.strictNumbers)),LR(t,m),e.length===1&&e[0]===m.type&&n&&(i.else(),(0,k8.reportTypeError)(t)),i.endIf()):LR(t,m),a||i.if((0,et._)`${dt.default.errors} === ${r||0}`))}}function LR(t,e){let{gen:n,schema:r,opts:{useDefaults:i}}=t;i&&(0,ioe.assignDefaults)(t,e.type),n.block(()=>{for(let l of e.rules)(0,Dm.shouldUseRule)(r,l)&&qR(t,l.keyword,l.definition,e.type)})}function _oe(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(Eoe(t,e),t.opts.allowUnionTypes||boe(t,e),woe(t,t.dataTypes))}function Eoe(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(n=>{VR(t.dataTypes,n)||Pm(t,`type "${n}" not allowed by context "${t.dataTypes.join(",")}"`)}),Toe(t,e)}}function boe(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Pm(t,"use allowUnionTypes to allow union type keyword")}function woe(t,e){let n=t.self.RULES.all;for(let r in n){let i=n[r];if(typeof i=="object"&&(0,Dm.shouldUseRule)(t.schema,i)){let{type:l}=i.definition;l.length&&!l.some(s=>Soe(e,s))&&Pm(t,`missing type "${l.join(",")}" for keyword "${r}"`)}}}function Soe(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function VR(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function Toe(t,e){let n=[];for(let r of t.dataTypes)VR(e,r)?n.push(r):e.includes("integer")&&r==="number"&&n.push("integer");t.dataTypes=n}function Pm(t,e){let n=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${n}" (strictTypes)`,(0,Ma.checkStrictMode)(t,e,t.opts.strictTypes)}var D8=class{constructor(e,n,r){if((0,S4.validateKeywordUsage)(e,n,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=n.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ma.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=n,this.$data)this.schemaCode=e.gen.const("vSchema",zR(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,S4.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=e.gen.const("_errs",dt.default.errors))}result(e,n,r){this.failResult((0,et.not)(e),n,r)}failResult(e,n,r){this.gen.if(e),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,n){this.failResult((0,et.not)(e),void 0,n)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:n}=this;this.fail((0,et._)`${n} !== undefined && (${(0,et.or)(this.invalid$data(),e)})`)}error(e,n,r){if(n){this.setParams(n),this._error(e,r),this.setParams({});return}this._error(e,r)}_error(e,n){(e?w4.reportExtraError:w4.reportError)(this,this.def.error,n)}$dataError(){(0,w4.reportError)(this,this.def.$dataError||w4.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,w4.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,n){n?Object.assign(this.params,e):this.params=e}block$data(e,n,r=et.nil){this.gen.block(()=>{this.check$data(e,r),n()})}check$data(e=et.nil,n=et.nil){if(!this.$data)return;let{gen:r,schemaCode:i,schemaType:l,def:s}=this;r.if((0,et.or)((0,et._)`${i} === undefined`,n)),e!==et.nil&&r.assign(e,!0),(l.length||s.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==et.nil&&r.assign(e,!1)),r.else()}invalid$data(){let{gen:e,schemaCode:n,schemaType:r,def:i,it:l}=this;return(0,et.or)(s(),a());function s(){if(r.length){if(!(n instanceof et.Name))throw new Error("ajv implementation error");let o=Array.isArray(r)?r:[r];return(0,et._)`${(0,k8.checkDataTypes)(o,n,l.opts.strictNumbers,k8.DataType.Wrong)}`}return et.nil}function a(){if(i.validateSchema){let o=e.scopeValue("validate$data",{ref:i.validateSchema});return(0,et._)`!${o}(${n})`}return et.nil}}subschema(e,n){let r=(0,km.getSubschema)(this.it,e);(0,km.extendSubschemaData)(r,this.it,e),(0,km.extendSubschemaMode)(r,e);let i={...this.it,...r,items:void 0,props:void 0};return poe(i,n),i}mergeEvaluated(e,n){let{it:r,gen:i}=this;r.opts.unevaluated&&(r.props!==!0&&e.props!==void 0&&(r.props=Ma.mergeEvaluated.props(i,e.props,r.props,n)),r.items!==!0&&e.items!==void 0&&(r.items=Ma.mergeEvaluated.items(i,e.items,r.items,n)))}mergeValidEvaluated(e,n){let{it:r,gen:i}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return i.if(n,()=>this.mergeEvaluated(e,et.Name)),!0}};T2.KeywordCxt=D8;function qR(t,e,n,r){let i=new D8(t,n,e);"code"in n?n.code(i,r):i.$data&&n.validate?(0,S4.funcKeywordCode)(i,n):"macro"in n?(0,S4.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,S4.funcKeywordCode)(i,n)}var xoe=/^\/(?:[^~]|~0|~1)*$/,Aoe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function zR(t,{dataLevel:e,dataNames:n,dataPathArr:r}){let i,l;if(t==="")return dt.default.rootData;if(t[0]==="/"){if(!xoe.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,l=dt.default.rootData}else{let u=Aoe.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+u[1];if(i=u[2],i==="#"){if(c>=e)throw new Error(o("property/index",c));return r[e-c]}if(c>e)throw new Error(o("data",c));if(l=n[e-c],!i)return l}let s=l,a=i.split("/");for(let u of a)u&&(l=(0,et._)`${l}${(0,et.getProperty)((0,Ma.unescapeJsonPointer)(u))}`,s=(0,et._)`${s} && ${l}`);return s;function o(u,c){return`Cannot access ${u} ${c} levels up, current level is ${e}`}}T2.getData=zR});var T4=k(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var Lm=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Fm.default=Lm});var x2=k(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});var jm=b4(),Um=class extends Error{constructor(e,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,jm.resolveUrl)(e,n,r),this.missingSchema=(0,jm.normalizeId)((0,jm.getFullPath)(e,this.missingRef))}};Mm.default=Um});var xo=k(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.resolveSchema=Yl.getCompilingSchema=Yl.resolveRef=Yl.compileSchema=Yl.SchemaEnv=void 0;var _s=st(),Ooe=T4(),To=Wl(),Es=b4(),GR=Nt(),Noe=r1(),i1=class{constructor(e){var n;this.refs={},this.dynamicAnchors={};let r;typeof e.schema=="object"&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(n=e.baseId)!==null&&n!==void 0?n:(0,Es.normalizeId)(r?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=r?.$async,this.refs={}}};Yl.SchemaEnv=i1;function Bm(t){let e=JR.call(this,t);if(e)return e;let n=(0,Es.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:r,lines:i}=this.opts.code,{ownProperties:l}=this.opts,s=new _s.CodeGen(this.scope,{es5:r,lines:i,ownProperties:l}),a;t.$async&&(a=s.scopeValue("Error",{ref:Ooe.default,code:(0,_s._)`require("ajv/dist/runtime/validation_error").default`}));let o=s.scopeName("validate");t.validateName=o;let u={gen:s,allErrors:this.opts.allErrors,data:To.default.data,parentData:To.default.parentData,parentDataProperty:To.default.parentDataProperty,dataNames:[To.default.data],dataPathArr:[_s.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,_s.stringify)(t.schema)}:{ref:t.schema}),validateName:o,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:n,baseId:t.baseId||n,schemaPath:_s.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,_s._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(t),(0,Noe.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let f=s.toString();c=`${s.scopeRefs(To.default.scope)}return ${f}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let d=new Function(`${To.default.self}`,`${To.default.scope}`,c)(this,this.scope.get());if(this.scope.value(o,{ref:d}),d.errors=null,d.schema=t.schema,d.schemaEnv=t,t.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:o,validateCode:f,scopeValues:s._values}),this.opts.unevaluated){let{props:y,items:_}=u;d.evaluated={props:y instanceof _s.Name?void 0:y,items:_ instanceof _s.Name?void 0:_,dynamicProps:y instanceof _s.Name,dynamicItems:_ instanceof _s.Name},d.source&&(d.source.evaluated=(0,_s.stringify)(d.evaluated))}return t.validate=d,t}catch(f){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),f}finally{this._compilations.delete(t)}}Yl.compileSchema=Bm;function Coe(t,e,n){var r;n=(0,Es.resolveUrl)(this.opts.uriResolver,e,n);let i=t.refs[n];if(i)return i;let l=koe.call(this,t,n);if(l===void 0){let s=(r=t.localRefs)===null||r===void 0?void 0:r[n],{schemaId:a}=this.opts;s&&(l=new i1({schema:s,schemaId:a,root:t,baseId:e}))}if(l!==void 0)return t.refs[n]=Roe.call(this,l)}Yl.resolveRef=Coe;function Roe(t){return(0,Es.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Bm.call(this,t)}function JR(t){for(let e of this._compilations)if(Ioe(e,t))return e}Yl.getCompilingSchema=JR;function Ioe(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function koe(t,e){let n;for(;typeof(n=this.refs[e])=="string";)e=n;return n||this.schemas[e]||P8.call(this,t,e)}function P8(t,e){let n=this.opts.uriResolver.parse(e),r=(0,Es._getFullPath)(this.opts.uriResolver,n),i=(0,Es.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&r===i)return $m.call(this,n,t);let l=(0,Es.normalizeId)(r),s=this.refs[l]||this.schemas[l];if(typeof s=="string"){let a=P8.call(this,t,s);return typeof a?.schema!="object"?void 0:$m.call(this,n,a)}if(typeof s?.schema=="object"){if(s.validate||Bm.call(this,s),l===(0,Es.normalizeId)(e)){let{schema:a}=s,{schemaId:o}=this.opts,u=a[o];return u&&(i=(0,Es.resolveUrl)(this.opts.uriResolver,i,u)),new i1({schema:a,schemaId:o,root:t,baseId:i})}return $m.call(this,n,s)}}Yl.resolveSchema=P8;var Doe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function $m(t,{baseId:e,schema:n,root:r}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof n=="boolean")return;let o=n[(0,GR.unescapeFragment)(a)];if(o===void 0)return;n=o;let u=typeof n=="object"&&n[this.opts.schemaId];!Doe.has(a)&&u&&(e=(0,Es.resolveUrl)(this.opts.uriResolver,e,u))}let l;if(typeof n!="boolean"&&n.$ref&&!(0,GR.schemaHasRulesButRef)(n,this.RULES)){let a=(0,Es.resolveUrl)(this.opts.uriResolver,e,n.$ref);l=P8.call(this,r,a)}let{schemaId:s}=this.opts;if(l=l||new i1({schema:n,schemaId:s,root:r,baseId:e}),l.schema!==l.root.schema)return l}});var KR=k((iCe,Poe)=>{Poe.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var WR=k((L8,XR)=>{(function(t,e){typeof L8=="object"&&typeof XR<"u"?e(L8):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(L8,function(t){"use strict";function e(){for(var J=arguments.length,M=Array(J),Y=0;Y1){M[0]=M[0].slice(0,-1);for(var le=M.length-1,ae=1;ae= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=d-y,F=Math.floor,te=String.fromCharCode;function Q(J){throw new RangeError(R[J])}function W(J,M){for(var Y=[],le=J.length;le--;)Y[le]=M(J[le]);return Y}function ce(J,M){var Y=J.split("@"),le="";Y.length>1&&(le=Y[0]+"@",J=Y[1]),J=J.replace(N,".");var ae=J.split("."),Fe=W(ae,M).join(".");return le+Fe}function we(J){for(var M=[],Y=0,le=J.length;Y=55296&&ae<=56319&&Y>1,M+=F(M/Y);M>U*_>>1;ae+=d)M=F(M/U);return F(ae+(U+1)*M/(M+S))},G=function(M){var Y=[],le=M.length,ae=0,Fe=g,bt=E,Gt=M.lastIndexOf(v);Gt<0&&(Gt=0);for(var sn=0;sn=128&&Q("not-basic"),Y.push(M.charCodeAt(sn));for(var Sr=Gt>0?Gt+1:0;Sr=le&&Q("invalid-input");var lr=ee(M.charCodeAt(Sr++));(lr>=d||lr>F((m-ae)/ut))&&Q("overflow"),ae+=lr*ut;var Xt=Tr<=bt?y:Tr>=bt+_?_:Tr-bt;if(lrF(m/fn)&&Q("overflow"),ut*=fn}var en=Y.length+1;bt=P(ae-Ze,en,Ze==0),F(ae/en)>m-Fe&&Q("overflow"),Fe+=F(ae/en),ae%=en,Y.splice(ae++,0,Fe)}return String.fromCodePoint.apply(String,Y)},V=function(M){var Y=[];M=we(M);var le=M.length,ae=g,Fe=0,bt=E,Gt=!0,sn=!1,Sr=void 0;try{for(var Ze=M[Symbol.iterator](),ut;!(Gt=(ut=Ze.next()).done);Gt=!0){var Tr=ut.value;Tr<128&&Y.push(te(Tr))}}catch(an){sn=!0,Sr=an}finally{try{!Gt&&Ze.return&&Ze.return()}finally{if(sn)throw Sr}}var lr=Y.length,Xt=lr;for(lr&&Y.push(v);Xt=ae&&CiF((m-Fe)/Ki)&&Q("overflow"),Fe+=(fn-ae)*Ki,ae=fn;var Nl=!0,Ls=!1,Ml=void 0;try{for(var a2=M[Symbol.iterator](),si;!(Nl=(si=a2.next()).done);Nl=!0){var bu=si.value;if(bum&&Q("overflow"),bu==ae){for(var Gr=Fe,ba=d;;ba+=d){var ai=ba<=bt?y:ba>=bt+_?_:ba-bt;if(Gr>6|192).toString(16).toUpperCase()+"%"+(M&63|128).toString(16).toUpperCase():Y="%"+(M>>12|224).toString(16).toUpperCase()+"%"+(M>>6&63|128).toString(16).toUpperCase()+"%"+(M&63|128).toString(16).toUpperCase(),Y}function qe(J){for(var M="",Y=0,le=J.length;Y=194&&ae<224){if(le-Y>=6){var Fe=parseInt(J.substr(Y+4,2),16);M+=String.fromCharCode((ae&31)<<6|Fe&63)}else M+=J.substr(Y,6);Y+=6}else if(ae>=224){if(le-Y>=9){var bt=parseInt(J.substr(Y+4,2),16),Gt=parseInt(J.substr(Y+7,2),16);M+=String.fromCharCode((ae&15)<<12|(bt&63)<<6|Gt&63)}else M+=J.substr(Y,9);Y+=9}else M+=J.substr(Y,3),Y+=3}return M}function Ue(J,M){function Y(le){var ae=qe(le);return ae.match(M.UNRESERVED)?ae:le}return J.scheme&&(J.scheme=String(J.scheme).replace(M.PCT_ENCODED,Y).toLowerCase().replace(M.NOT_SCHEME,"")),J.userinfo!==void 0&&(J.userinfo=String(J.userinfo).replace(M.PCT_ENCODED,Y).replace(M.NOT_USERINFO,pt).replace(M.PCT_ENCODED,i)),J.host!==void 0&&(J.host=String(J.host).replace(M.PCT_ENCODED,Y).toLowerCase().replace(M.NOT_HOST,pt).replace(M.PCT_ENCODED,i)),J.path!==void 0&&(J.path=String(J.path).replace(M.PCT_ENCODED,Y).replace(J.scheme?M.NOT_PATH:M.NOT_PATH_NOSCHEME,pt).replace(M.PCT_ENCODED,i)),J.query!==void 0&&(J.query=String(J.query).replace(M.PCT_ENCODED,Y).replace(M.NOT_QUERY,pt).replace(M.PCT_ENCODED,i)),J.fragment!==void 0&&(J.fragment=String(J.fragment).replace(M.PCT_ENCODED,Y).replace(M.NOT_FRAGMENT,pt).replace(M.PCT_ENCODED,i)),J}function $t(J){return J.replace(/^0*(.*)/,"$1")||"0"}function gt(J,M){var Y=J.match(M.IPV4ADDRESS)||[],le=c(Y,2),ae=le[1];return ae?ae.split(".").map($t).join("."):J}function Et(J,M){var Y=J.match(M.IPV6ADDRESS)||[],le=c(Y,3),ae=le[1],Fe=le[2];if(ae){for(var bt=ae.toLowerCase().split("::").reverse(),Gt=c(bt,2),sn=Gt[0],Sr=Gt[1],Ze=Sr?Sr.split(":").map($t):[],ut=sn.split(":").map($t),Tr=M.IPV4ADDRESS.test(ut[ut.length-1]),lr=Tr?7:8,Xt=ut.length-lr,fn=Array(lr),en=0;en1){var un=fn.slice(0,Ir.index),Ci=fn.slice(Ir.index+Ir.length);Ji=un.join(":")+"::"+Ci.join(":")}else Ji=fn.join(":");return Fe&&(Ji+="%"+Fe),Ji}else return J}var ie=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ve="".match(/(){0}/)[1]===void 0;function Se(J){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y={},le=M.iri!==!1?u:o;M.reference==="suffix"&&(J=(M.scheme?M.scheme+":":"")+"//"+J);var ae=J.match(ie);if(ae){ve?(Y.scheme=ae[1],Y.userinfo=ae[3],Y.host=ae[4],Y.port=parseInt(ae[5],10),Y.path=ae[6]||"",Y.query=ae[7],Y.fragment=ae[8],isNaN(Y.port)&&(Y.port=ae[5])):(Y.scheme=ae[1]||void 0,Y.userinfo=J.indexOf("@")!==-1?ae[3]:void 0,Y.host=J.indexOf("//")!==-1?ae[4]:void 0,Y.port=parseInt(ae[5],10),Y.path=ae[6]||"",Y.query=J.indexOf("?")!==-1?ae[7]:void 0,Y.fragment=J.indexOf("#")!==-1?ae[8]:void 0,isNaN(Y.port)&&(Y.port=J.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ae[4]:void 0)),Y.host&&(Y.host=Et(gt(Y.host,le),le)),Y.scheme===void 0&&Y.userinfo===void 0&&Y.host===void 0&&Y.port===void 0&&!Y.path&&Y.query===void 0?Y.reference="same-document":Y.scheme===void 0?Y.reference="relative":Y.fragment===void 0?Y.reference="absolute":Y.reference="uri",M.reference&&M.reference!=="suffix"&&M.reference!==Y.reference&&(Y.error=Y.error||"URI is not a "+M.reference+" reference.");var Fe=Qe[(M.scheme||Y.scheme||"").toLowerCase()];if(!M.unicodeSupport&&(!Fe||!Fe.unicodeSupport)){if(Y.host&&(M.domainHost||Fe&&Fe.domainHost))try{Y.host=Tt.toASCII(Y.host.replace(le.PCT_ENCODED,qe).toLowerCase())}catch(bt){Y.error=Y.error||"Host's domain name can not be converted to ASCII via punycode: "+bt}Ue(Y,o)}else Ue(Y,le);Fe&&Fe.parse&&Fe.parse(Y,M)}else Y.error=Y.error||"URI can not be parsed.";return Y}function Xe(J,M){var Y=M.iri!==!1?u:o,le=[];return J.userinfo!==void 0&&(le.push(J.userinfo),le.push("@")),J.host!==void 0&&le.push(Et(gt(String(J.host),Y),Y).replace(Y.IPV6ADDRESS,function(ae,Fe,bt){return"["+Fe+(bt?"%25"+bt:"")+"]"})),(typeof J.port=="number"||typeof J.port=="string")&&(le.push(":"),le.push(String(J.port))),le.length?le.join(""):void 0}var ft=/^\.\.?\//,Pe=/^\/\.(\/|$)/,Lt=/^\/\.\.(\/|$)/,br=/^\/?(?:.|\n)*?(?=\/|$)/;function Ft(J){for(var M=[];J.length;)if(J.match(ft))J=J.replace(ft,"");else if(J.match(Pe))J=J.replace(Pe,"/");else if(J.match(Lt))J=J.replace(Lt,"/"),M.pop();else if(J==="."||J==="..")J="";else{var Y=J.match(br);if(Y){var le=Y[0];J=J.slice(le.length),M.push(le)}else throw new Error("Unexpected dot segment condition")}return M.join("")}function Zt(J){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=M.iri?u:o,le=[],ae=Qe[(M.scheme||J.scheme||"").toLowerCase()];if(ae&&ae.serialize&&ae.serialize(J,M),J.host&&!Y.IPV6ADDRESS.test(J.host)){if(M.domainHost||ae&&ae.domainHost)try{J.host=M.iri?Tt.toUnicode(J.host):Tt.toASCII(J.host.replace(Y.PCT_ENCODED,qe).toLowerCase())}catch(Gt){J.error=J.error||"Host's domain name can not be converted to "+(M.iri?"Unicode":"ASCII")+" via punycode: "+Gt}}Ue(J,Y),M.reference!=="suffix"&&J.scheme&&(le.push(J.scheme),le.push(":"));var Fe=Xe(J,M);if(Fe!==void 0&&(M.reference!=="suffix"&&le.push("//"),le.push(Fe),J.path&&J.path.charAt(0)!=="/"&&le.push("/")),J.path!==void 0){var bt=J.path;!M.absolutePath&&(!ae||!ae.absolutePath)&&(bt=Ft(bt)),Fe===void 0&&(bt=bt.replace(/^\/\//,"/%2F")),le.push(bt)}return J.query!==void 0&&(le.push("?"),le.push(J.query)),J.fragment!==void 0&&(le.push("#"),le.push(J.fragment)),le.join("")}function sl(J,M){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},le=arguments[3],ae={};return le||(J=Se(Zt(J,Y),Y),M=Se(Zt(M,Y),Y)),Y=Y||{},!Y.tolerant&&M.scheme?(ae.scheme=M.scheme,ae.userinfo=M.userinfo,ae.host=M.host,ae.port=M.port,ae.path=Ft(M.path||""),ae.query=M.query):(M.userinfo!==void 0||M.host!==void 0||M.port!==void 0?(ae.userinfo=M.userinfo,ae.host=M.host,ae.port=M.port,ae.path=Ft(M.path||""),ae.query=M.query):(M.path?(M.path.charAt(0)==="/"?ae.path=Ft(M.path):((J.userinfo!==void 0||J.host!==void 0||J.port!==void 0)&&!J.path?ae.path="/"+M.path:J.path?ae.path=J.path.slice(0,J.path.lastIndexOf("/")+1)+M.path:ae.path=M.path,ae.path=Ft(ae.path)),ae.query=M.query):(ae.path=J.path,M.query!==void 0?ae.query=M.query:ae.query=J.query),ae.userinfo=J.userinfo,ae.host=J.host,ae.port=J.port),ae.scheme=J.scheme),ae.fragment=M.fragment,ae}function fr(J,M,Y){var le=s({scheme:"null"},Y);return Zt(sl(Se(J,le),Se(M,le),le,!0),le)}function ii(J,M){return typeof J=="string"?J=Zt(Se(J,M),M):r(J)==="object"&&(J=Se(Zt(J,M),M)),J}function wr(J,M,Y){return typeof J=="string"?J=Zt(Se(J,Y),Y):r(J)==="object"&&(J=Zt(J,Y)),typeof M=="string"?M=Zt(Se(M,Y),Y):r(M)==="object"&&(M=Zt(M,Y)),J===M}function vi(J,M){return J&&J.toString().replace(!M||!M.iri?o.ESCAPE:u.ESCAPE,pt)}function Oi(J,M){return J&&J.toString().replace(!M||!M.iri?o.PCT_ENCODED:u.PCT_ENCODED,qe)}var jl={scheme:"http",domainHost:!0,parse:function(M,Y){return M.host||(M.error=M.error||"HTTP URIs must have a host."),M},serialize:function(M,Y){var le=String(M.scheme).toLowerCase()==="https";return(M.port===(le?443:80)||M.port==="")&&(M.port=void 0),M.path||(M.path="/"),M}},Cr={scheme:"https",domainHost:jl.domainHost,parse:jl.parse,serialize:jl.serialize};function _u(J){return typeof J.secure=="boolean"?J.secure:String(J.scheme).toLowerCase()==="wss"}var ks={scheme:"ws",domainHost:!0,parse:function(M,Y){var le=M;return le.secure=_u(le),le.resourceName=(le.path||"/")+(le.query?"?"+le.query:""),le.path=void 0,le.query=void 0,le},serialize:function(M,Y){if((M.port===(_u(M)?443:80)||M.port==="")&&(M.port=void 0),typeof M.secure=="boolean"&&(M.scheme=M.secure?"wss":"ws",M.secure=void 0),M.resourceName){var le=M.resourceName.split("?"),ae=c(le,2),Fe=ae[0],bt=ae[1];M.path=Fe&&Fe!=="/"?Fe:void 0,M.query=bt,M.resourceName=void 0}return M.fragment=void 0,M}},Zn={scheme:"wss",domainHost:ks.domainHost,parse:ks.parse,serialize:ks.serialize},Gi={},Of=!0,li="[A-Za-z0-9\\-\\.\\_\\~"+(Of?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Br="[0-9A-Fa-f]",Eu=n(n("%[EFef]"+Br+"%"+Br+Br+"%"+Br+Br)+"|"+n("%[89A-Fa-f]"+Br+"%"+Br+Br)+"|"+n("%"+Br+Br)),zr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",_a="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Ds=e(_a,'[\\"\\\\]'),mr="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Rr=new RegExp(li,"g"),Ea=new RegExp(Eu,"g"),Ni=new RegExp(e("[^]",zr,"[\\.]",'[\\"]',Ds),"g"),_i=new RegExp(e("[^]",li,mr),"g"),as=_i;function Ol(J){var M=qe(J);return M.match(Rr)?M:J}var os={scheme:"mailto",parse:function(M,Y){var le=M,ae=le.to=le.path?le.path.split(","):[];if(le.path=void 0,le.query){for(var Fe=!1,bt={},Gt=le.query.split("&"),sn=0,Sr=Gt.length;sn{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});var YR=WR();YR.code='require("ajv/dist/runtime/uri").default';Hm.default=YR});var zm=k(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.CodeGen=Ti.Name=Ti.nil=Ti.stringify=Ti.str=Ti._=Ti.KeywordCxt=void 0;var Loe=r1();Object.defineProperty(Ti,"KeywordCxt",{enumerable:!0,get:function(){return Loe.KeywordCxt}});var l1=st();Object.defineProperty(Ti,"_",{enumerable:!0,get:function(){return l1._}});Object.defineProperty(Ti,"str",{enumerable:!0,get:function(){return l1.str}});Object.defineProperty(Ti,"stringify",{enumerable:!0,get:function(){return l1.stringify}});Object.defineProperty(Ti,"nil",{enumerable:!0,get:function(){return l1.nil}});Object.defineProperty(Ti,"Name",{enumerable:!0,get:function(){return l1.Name}});Object.defineProperty(Ti,"CodeGen",{enumerable:!0,get:function(){return l1.CodeGen}});var Foe=T4(),rI=x2(),joe=Sm(),x4=xo(),Uoe=st(),A4=b4(),F8=E4(),qm=Nt(),ZR=KR(),Moe=QR(),iI=(t,e)=>new RegExp(t,e);iI.code="new RegExp";var $oe=["removeAdditional","useDefaults","coerceTypes"],Boe=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Hoe={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},Voe={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},eI=200;function qoe(t){var e,n,r,i,l,s,a,o,u,c,f,m,d,y,_,S,w,E,g,v,x,O,N,R,U;let F=t.strict,te=(e=t.code)===null||e===void 0?void 0:e.optimize,Q=te===!0||te===void 0?1:te||0,W=(r=(n=t.code)===null||n===void 0?void 0:n.regExp)!==null&&r!==void 0?r:iI,ce=(i=t.uriResolver)!==null&&i!==void 0?i:Moe.default;return{strictSchema:(s=(l=t.strictSchema)!==null&&l!==void 0?l:F)!==null&&s!==void 0?s:!0,strictNumbers:(o=(a=t.strictNumbers)!==null&&a!==void 0?a:F)!==null&&o!==void 0?o:!0,strictTypes:(c=(u=t.strictTypes)!==null&&u!==void 0?u:F)!==null&&c!==void 0?c:"log",strictTuples:(m=(f=t.strictTuples)!==null&&f!==void 0?f:F)!==null&&m!==void 0?m:"log",strictRequired:(y=(d=t.strictRequired)!==null&&d!==void 0?d:F)!==null&&y!==void 0?y:!1,code:t.code?{...t.code,optimize:Q,regExp:W}:{optimize:Q,regExp:W},loopRequired:(_=t.loopRequired)!==null&&_!==void 0?_:eI,loopEnum:(S=t.loopEnum)!==null&&S!==void 0?S:eI,meta:(w=t.meta)!==null&&w!==void 0?w:!0,messages:(E=t.messages)!==null&&E!==void 0?E:!0,inlineRefs:(g=t.inlineRefs)!==null&&g!==void 0?g:!0,schemaId:(v=t.schemaId)!==null&&v!==void 0?v:"$id",addUsedSchema:(x=t.addUsedSchema)!==null&&x!==void 0?x:!0,validateSchema:(O=t.validateSchema)!==null&&O!==void 0?O:!0,validateFormats:(N=t.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(R=t.unicodeRegExp)!==null&&R!==void 0?R:!0,int32range:(U=t.int32range)!==null&&U!==void 0?U:!0,uriResolver:ce}}var O4=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...qoe(e)};let{es5:n,lines:r}=this.opts.code;this.scope=new Uoe.ValueScope({scope:{},prefixes:Boe,es5:n,lines:r}),this.logger=Woe(e.logger);let i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,joe.getRules)(),tI.call(this,Hoe,e,"NOT SUPPORTED"),tI.call(this,Voe,e,"DEPRECATED","warn"),this._metaOpts=Koe.call(this),e.formats&&Goe.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&Joe.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),zoe.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:n,schemaId:r}=this.opts,i=ZR;r==="id"&&(i={...ZR},i.id=i.$id,delete i.$id),n&&e&&this.addMetaSchema(i,i[r],!1)}defaultMeta(){let{meta:e,schemaId:n}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[n]||e:void 0}validate(e,n){let r;if(typeof e=="string"){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);let i=r(n);return"$async"in r||(this.errors=r.errors),i}compile(e,n){let r=this._addSchema(e,n);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,n){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return i.call(this,e,n);async function i(c,f){await l.call(this,c.$schema);let m=this._addSchema(c,f);return m.validate||s.call(this,m)}async function l(c){c&&!this.getSchema(c)&&await i.call(this,{$ref:c},!0)}async function s(c){try{return this._compileSchemaEnv(c)}catch(f){if(!(f instanceof rI.default))throw f;return a.call(this,f),await o.call(this,f.missingSchema),s.call(this,c)}}function a({missingSchema:c,missingRef:f}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${f} cannot be resolved`)}async function o(c){let f=await u.call(this,c);this.refs[c]||await l.call(this,f.$schema),this.refs[c]||this.addSchema(f,c,n)}async function u(c){let f=this._loading[c];if(f)return f;try{return await(this._loading[c]=r(c))}finally{delete this._loading[c]}}}addSchema(e,n,r,i=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,r,i);return this}let l;if(typeof e=="object"){let{schemaId:s}=this.opts;if(l=e[s],l!==void 0&&typeof l!="string")throw new Error(`schema ${s} must be string`)}return n=(0,A4.normalizeId)(n||l),this._checkUnique(n),this.schemas[n]=this._addSchema(e,r,n,i,!0),this}addMetaSchema(e,n,r=this.opts.validateSchema){return this.addSchema(e,n,!0,r),this}validateSchema(e,n){if(typeof e=="boolean")return!0;let r;if(r=e.$schema,r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(r,e);if(!i&&n){let l="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(l);else throw new Error(l)}return i}getSchema(e){let n;for(;typeof(n=nI.call(this,e))=="string";)e=n;if(n===void 0){let{schemaId:r}=this.opts,i=new x4.SchemaEnv({schema:{},schemaId:r});if(n=x4.resolveSchema.call(this,i,e),!n)return;this.refs[e]=n}return n.validate||this._compileSchemaEnv(n)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let n=nI.call(this,e);return typeof n=="object"&&this._cache.delete(n.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let n=e;this._cache.delete(n);let r=e[this.opts.schemaId];return r&&(r=(0,A4.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let n of e)this.addKeyword(n);return this}addKeyword(e,n){let r;if(typeof e=="string")r=e,typeof n=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),n.keyword=r);else if(typeof e=="object"&&n===void 0){if(n=e,r=n.keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Qoe.call(this,r,n),!n)return(0,qm.eachItem)(r,l=>Vm.call(this,l)),this;eue.call(this,n);let i={...n,type:(0,F8.getJSONTypes)(n.type),schemaType:(0,F8.getJSONTypes)(n.schemaType)};return(0,qm.eachItem)(r,i.type.length===0?l=>Vm.call(this,l,i):l=>i.type.forEach(s=>Vm.call(this,l,i,s))),this}getKeyword(e){let n=this.RULES.all[e];return typeof n=="object"?n.definition:!!n}removeKeyword(e){let{RULES:n}=this;delete n.keywords[e],delete n.all[e];for(let r of n.rules){let i=r.rules.findIndex(l=>l.keyword===e);i>=0&&r.rules.splice(i,1)}return this}addFormat(e,n){return typeof n=="string"&&(n=new RegExp(n)),this.formats[e]=n,this}errorsText(e=this.errors,{separator:n=", ",dataVar:r="data"}={}){return!e||e.length===0?"No errors":e.map(i=>`${r}${i.instancePath} ${i.message}`).reduce((i,l)=>i+n+l)}$dataMetaSchema(e,n){let r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let i of n){let l=i.split("/").slice(1),s=e;for(let a of l)s=s[a];for(let a in r){let o=r[a];if(typeof o!="object")continue;let{$data:u}=o.definition,c=s[a];u&&c&&(s[a]=lI(c))}}return e}_removeAllSchemas(e,n){for(let r in e){let i=e[r];(!n||n.test(r))&&(typeof i=="string"?delete e[r]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[r]))}}_addSchema(e,n,r,i=this.opts.validateSchema,l=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof e=="object")s=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let o=this._cache.get(e);if(o!==void 0)return o;r=(0,A4.normalizeId)(s||r);let u=A4.getSchemaRefs.call(this,e,r);return o=new x4.SchemaEnv({schema:e,schemaId:a,meta:n,baseId:r,localRefs:u}),this._cache.set(o.schema,o),l&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=o),i&&this.validateSchema(e,!0),o}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):x4.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let n=this.opts;this.opts=this._metaOpts;try{x4.compileSchema.call(this,e)}finally{this.opts=n}}};Ti.default=O4;O4.ValidationError=Foe.default;O4.MissingRefError=rI.default;function tI(t,e,n,r="error"){for(let i in t){let l=i;l in e&&this.logger[r](`${n}: option ${i}. ${t[l]}`)}}function nI(t){return t=(0,A4.normalizeId)(t),this.schemas[t]||this.refs[t]}function zoe(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function Goe(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function Joe(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let n=t[e];n.keyword||(n.keyword=e),this.addKeyword(n)}}function Koe(){let t={...this.opts};for(let e of $oe)delete t[e];return t}var Xoe={log(){},warn(){},error(){}};function Woe(t){if(t===!1)return Xoe;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var Yoe=/^[a-z_$][a-z0-9_$:-]*$/i;function Qoe(t,e){let{RULES:n}=this;if((0,qm.eachItem)(t,r=>{if(n.keywords[r])throw new Error(`Keyword ${r} is already defined`);if(!Yoe.test(r))throw new Error(`Keyword ${r} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function Vm(t,e,n){var r;let i=e?.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:l}=this,s=i?l.post:l.rules.find(({type:o})=>o===n);if(s||(s={type:n,rules:[]},l.rules.push(s)),l.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,F8.getJSONTypes)(e.type),schemaType:(0,F8.getJSONTypes)(e.schemaType)}};e.before?Zoe.call(this,s,a,e.before):s.rules.push(a),l.all[t]=a,(r=e.implements)===null||r===void 0||r.forEach(o=>this.addKeyword(o))}function Zoe(t,e,n){let r=t.rules.findIndex(i=>i.keyword===n);r>=0?t.rules.splice(r,0,e):(t.rules.push(e),this.logger.warn(`rule ${n} is not defined`))}function eue(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=lI(e)),t.validateSchema=this.compile(e,!0))}var tue={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function lI(t){return{anyOf:[t,tue]}}});var sI=k(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});var nue={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Gm.default=nue});var Jm=k(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.callRef=Ao.getValidate=void 0;var rue=x2(),aI=Si(),hl=st(),s1=Wl(),oI=xo(),j8=Nt(),iue={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:n,it:r}=t,{baseId:i,schemaEnv:l,validateName:s,opts:a,self:o}=r,{root:u}=l;if((n==="#"||n==="#/")&&i===u.baseId)return f();let c=oI.resolveRef.call(o,u,i,n);if(c===void 0)throw new rue.default(r.opts.uriResolver,i,n);if(c instanceof oI.SchemaEnv)return m(c);return d(c);function f(){if(l===u)return U8(t,s,l,l.$async);let y=e.scopeValue("root",{ref:u});return U8(t,(0,hl._)`${y}.validate`,u,u.$async)}function m(y){let _=uI(t,y);U8(t,_,y,y.$async)}function d(y){let _=e.scopeValue("schema",a.code.source===!0?{ref:y,code:(0,hl.stringify)(y)}:{ref:y}),S=e.name("valid"),w=t.subschema({schema:y,dataTypes:[],schemaPath:hl.nil,topSchemaRef:_,errSchemaPath:n},S);t.mergeEvaluated(w),t.ok(S)}}};function uI(t,e){let{gen:n}=t;return e.validate?n.scopeValue("validate",{ref:e.validate}):(0,hl._)`${n.scopeValue("wrapper",{ref:e})}.validate`}Ao.getValidate=uI;function U8(t,e,n,r){let{gen:i,it:l}=t,{allErrors:s,schemaEnv:a,opts:o}=l,u=o.passContext?s1.default.this:hl.nil;r?c():f();function c(){if(!a.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,hl._)`await ${(0,aI.callValidateCode)(t,e,u)}`),d(e),s||i.assign(y,!0)},_=>{i.if((0,hl._)`!(${_} instanceof ${l.ValidationError})`,()=>i.throw(_)),m(_),s||i.assign(y,!1)}),t.ok(y)}function f(){t.result((0,aI.callValidateCode)(t,e,u),()=>d(e),()=>m(e))}function m(y){let _=(0,hl._)`${y}.errors`;i.assign(s1.default.vErrors,(0,hl._)`${s1.default.vErrors} === null ? ${_} : ${s1.default.vErrors}.concat(${_})`),i.assign(s1.default.errors,(0,hl._)`${s1.default.vErrors}.length`)}function d(y){var _;if(!l.opts.unevaluated)return;let S=(_=n?.validate)===null||_===void 0?void 0:_.evaluated;if(l.props!==!0)if(S&&!S.dynamicProps)S.props!==void 0&&(l.props=j8.mergeEvaluated.props(i,S.props,l.props));else{let w=i.var("props",(0,hl._)`${y}.evaluated.props`);l.props=j8.mergeEvaluated.props(i,w,l.props,hl.Name)}if(l.items!==!0)if(S&&!S.dynamicItems)S.items!==void 0&&(l.items=j8.mergeEvaluated.items(i,S.items,l.items));else{let w=i.var("items",(0,hl._)`${y}.evaluated.items`);l.items=j8.mergeEvaluated.items(i,w,l.items,hl.Name)}}}Ao.callRef=U8;Ao.default=iue});var cI=k(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});var lue=sI(),sue=Jm(),aue=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",lue.default,sue.default];Km.default=aue});var pI=k(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});var M8=st(),A2=M8.operators,$8={maximum:{okStr:"<=",ok:A2.LTE,fail:A2.GT},minimum:{okStr:">=",ok:A2.GTE,fail:A2.LT},exclusiveMaximum:{okStr:"<",ok:A2.LT,fail:A2.GTE},exclusiveMinimum:{okStr:">",ok:A2.GT,fail:A2.LTE}},oue={message:({keyword:t,schemaCode:e})=>(0,M8.str)`must be ${$8[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,M8._)`{comparison: ${$8[t].okStr}, limit: ${e}}`},uue={keyword:Object.keys($8),type:"number",schemaType:"number",$data:!0,error:oue,code(t){let{keyword:e,data:n,schemaCode:r}=t;t.fail$data((0,M8._)`${n} ${$8[e].fail} ${r} || isNaN(${n})`)}};Xm.default=uue});var fI=k(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});var N4=st(),cue={message:({schemaCode:t})=>(0,N4.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,N4._)`{multipleOf: ${t}}`},pue={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:cue,code(t){let{gen:e,data:n,schemaCode:r,it:i}=t,l=i.opts.multipleOfPrecision,s=e.let("res"),a=l?(0,N4._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${l}`:(0,N4._)`${s} !== parseInt(${s})`;t.fail$data((0,N4._)`(${r} === 0 || (${s} = ${n}/${r}, ${a}))`)}};Wm.default=pue});var hI=k(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});function dI(t){let e=t.length,n=0,r=0,i;for(;r=55296&&i<=56319&&r{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var Oo=st(),fue=Nt(),due=hI(),hue={message({keyword:t,schemaCode:e}){let n=t==="maxLength"?"more":"fewer";return(0,Oo.str)`must NOT have ${n} than ${e} characters`},params:({schemaCode:t})=>(0,Oo._)`{limit: ${t}}`},mue={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:hue,code(t){let{keyword:e,data:n,schemaCode:r,it:i}=t,l=e==="maxLength"?Oo.operators.GT:Oo.operators.LT,s=i.opts.unicode===!1?(0,Oo._)`${n}.length`:(0,Oo._)`${(0,fue.useFunc)(t.gen,due.default)}(${n})`;t.fail$data((0,Oo._)`${s} ${l} ${r}`)}};Qm.default=mue});var yI=k(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var yue=Si(),B8=st(),gue={message:({schemaCode:t})=>(0,B8.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,B8._)`{pattern: ${t}}`},vue={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:gue,code(t){let{data:e,$data:n,schema:r,schemaCode:i,it:l}=t,s=l.opts.unicodeRegExp?"u":"",a=n?(0,B8._)`(new RegExp(${i}, ${s}))`:(0,yue.usePattern)(t,r);t.fail$data((0,B8._)`!${a}.test(${e})`)}};Zm.default=vue});var gI=k(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var C4=st(),_ue={message({keyword:t,schemaCode:e}){let n=t==="maxProperties"?"more":"fewer";return(0,C4.str)`must NOT have ${n} than ${e} properties`},params:({schemaCode:t})=>(0,C4._)`{limit: ${t}}`},Eue={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:_ue,code(t){let{keyword:e,data:n,schemaCode:r}=t,i=e==="maxProperties"?C4.operators.GT:C4.operators.LT;t.fail$data((0,C4._)`Object.keys(${n}).length ${i} ${r}`)}};ey.default=Eue});var vI=k(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var R4=Si(),I4=st(),bue=Nt(),wue={message:({params:{missingProperty:t}})=>(0,I4.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,I4._)`{missingProperty: ${t}}`},Sue={keyword:"required",type:"object",schemaType:"array",$data:!0,error:wue,code(t){let{gen:e,schema:n,schemaCode:r,data:i,$data:l,it:s}=t,{opts:a}=s;if(!l&&n.length===0)return;let o=n.length>=a.loopRequired;if(s.allErrors?u():c(),a.strictRequired){let d=t.parentSchema.properties,{definedProperties:y}=t.it;for(let _ of n)if(d?.[_]===void 0&&!y.has(_)){let S=s.schemaEnv.baseId+s.errSchemaPath,w=`required property "${_}" is not defined at "${S}" (strictRequired)`;(0,bue.checkStrictMode)(s,w,s.opts.strictRequired)}}function u(){if(o||l)t.block$data(I4.nil,f);else for(let d of n)(0,R4.checkReportMissingProp)(t,d)}function c(){let d=e.let("missing");if(o||l){let y=e.let("valid",!0);t.block$data(y,()=>m(d,y)),t.ok(y)}else e.if((0,R4.checkMissingProp)(t,n,d)),(0,R4.reportMissingProp)(t,d),e.else()}function f(){e.forOf("prop",r,d=>{t.setParams({missingProperty:d}),e.if((0,R4.noPropertyInData)(e,i,d,a.ownProperties),()=>t.error())})}function m(d,y){t.setParams({missingProperty:d}),e.forOf(d,r,()=>{e.assign(y,(0,R4.propertyInData)(e,i,d,a.ownProperties)),e.if((0,I4.not)(y),()=>{t.error(),e.break()})},I4.nil)}}};ty.default=Sue});var _I=k(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});var k4=st(),Tue={message({keyword:t,schemaCode:e}){let n=t==="maxItems"?"more":"fewer";return(0,k4.str)`must NOT have ${n} than ${e} items`},params:({schemaCode:t})=>(0,k4._)`{limit: ${t}}`},xue={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Tue,code(t){let{keyword:e,data:n,schemaCode:r}=t,i=e==="maxItems"?k4.operators.GT:k4.operators.LT;t.fail$data((0,k4._)`${n}.length ${i} ${r}`)}};ny.default=xue});var D4=k(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var EI=t1();EI.code='require("ajv/dist/runtime/equal").default';ry.default=EI});var bI=k(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var iy=E4(),xi=st(),Aue=Nt(),Oue=D4(),Nue={message:({params:{i:t,j:e}})=>(0,xi.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,xi._)`{i: ${t}, j: ${e}}`},Cue={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Nue,code(t){let{gen:e,data:n,$data:r,schema:i,parentSchema:l,schemaCode:s,it:a}=t;if(!r&&!i)return;let o=e.let("valid"),u=l.items?(0,iy.getSchemaTypes)(l.items):[];t.block$data(o,c,(0,xi._)`${s} === false`),t.ok(o);function c(){let y=e.let("i",(0,xi._)`${n}.length`),_=e.let("j");t.setParams({i:y,j:_}),e.assign(o,!0),e.if((0,xi._)`${y} > 1`,()=>(f()?m:d)(y,_))}function f(){return u.length>0&&!u.some(y=>y==="object"||y==="array")}function m(y,_){let S=e.name("item"),w=(0,iy.checkDataTypes)(u,S,a.opts.strictNumbers,iy.DataType.Wrong),E=e.const("indices",(0,xi._)`{}`);e.for((0,xi._)`;${y}--;`,()=>{e.let(S,(0,xi._)`${n}[${y}]`),e.if(w,(0,xi._)`continue`),u.length>1&&e.if((0,xi._)`typeof ${S} == "string"`,(0,xi._)`${S} += "_"`),e.if((0,xi._)`typeof ${E}[${S}] == "number"`,()=>{e.assign(_,(0,xi._)`${E}[${S}]`),t.error(),e.assign(o,!1).break()}).code((0,xi._)`${E}[${S}] = ${y}`)})}function d(y,_){let S=(0,Aue.useFunc)(e,Oue.default),w=e.name("outer");e.label(w).for((0,xi._)`;${y}--;`,()=>e.for((0,xi._)`${_} = ${y}; ${_}--;`,()=>e.if((0,xi._)`${S}(${n}[${y}], ${n}[${_}])`,()=>{t.error(),e.assign(o,!1).break(w)})))}}};ly.default=Cue});var wI=k(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});var sy=st(),Rue=Nt(),Iue=D4(),kue={message:"must be equal to constant",params:({schemaCode:t})=>(0,sy._)`{allowedValue: ${t}}`},Due={keyword:"const",$data:!0,error:kue,code(t){let{gen:e,data:n,$data:r,schemaCode:i,schema:l}=t;r||l&&typeof l=="object"?t.fail$data((0,sy._)`!${(0,Rue.useFunc)(e,Iue.default)}(${n}, ${i})`):t.fail((0,sy._)`${l} !== ${n}`)}};ay.default=Due});var SI=k(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var P4=st(),Pue=Nt(),Lue=D4(),Fue={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,P4._)`{allowedValues: ${t}}`},jue={keyword:"enum",schemaType:"array",$data:!0,error:Fue,code(t){let{gen:e,data:n,$data:r,schema:i,schemaCode:l,it:s}=t;if(!r&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=s.opts.loopEnum,o,u=()=>o??(o=(0,Pue.useFunc)(e,Lue.default)),c;if(a||r)c=e.let("valid"),t.block$data(c,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=e.const("vSchema",l);c=(0,P4.or)(...i.map((y,_)=>m(d,_)))}t.pass(c);function f(){e.assign(c,!1),e.forOf("v",l,d=>e.if((0,P4._)`${u()}(${n}, ${d})`,()=>e.assign(c,!0).break()))}function m(d,y){let _=i[y];return typeof _=="object"&&_!==null?(0,P4._)`${u()}(${n}, ${d}[${y}])`:(0,P4._)`${n} === ${_}`}}};oy.default=jue});var TI=k(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var Uue=pI(),Mue=fI(),$ue=mI(),Bue=yI(),Hue=gI(),Vue=vI(),que=_I(),zue=bI(),Gue=wI(),Jue=SI(),Kue=[Uue.default,Mue.default,$ue.default,Bue.default,Hue.default,Vue.default,que.default,zue.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Gue.default,Jue.default];uy.default=Kue});var py=k(L4=>{"use strict";Object.defineProperty(L4,"__esModule",{value:!0});L4.validateAdditionalItems=void 0;var No=st(),cy=Nt(),Xue={message:({params:{len:t}})=>(0,No.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,No._)`{limit: ${t}}`},Wue={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Xue,code(t){let{parentSchema:e,it:n}=t,{items:r}=e;if(!Array.isArray(r)){(0,cy.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}xI(t,r)}};function xI(t,e){let{gen:n,schema:r,data:i,keyword:l,it:s}=t;s.items=!0;let a=n.const("len",(0,No._)`${i}.length`);if(r===!1)t.setParams({len:e.length}),t.pass((0,No._)`${a} <= ${e.length}`);else if(typeof r=="object"&&!(0,cy.alwaysValidSchema)(s,r)){let u=n.var("valid",(0,No._)`${a} <= ${e.length}`);n.if((0,No.not)(u),()=>o(u)),t.ok(u)}function o(u){n.forRange("i",e.length,a,c=>{t.subschema({keyword:l,dataProp:c,dataPropType:cy.Type.Num},u),s.allErrors||n.if((0,No.not)(u),()=>n.break())})}}L4.validateAdditionalItems=xI;L4.default=Wue});var fy=k(F4=>{"use strict";Object.defineProperty(F4,"__esModule",{value:!0});F4.validateTuple=void 0;var AI=st(),H8=Nt(),Yue=Si(),Que={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:n}=t;if(Array.isArray(e))return OI(t,"additionalItems",e);n.items=!0,!(0,H8.alwaysValidSchema)(n,e)&&t.ok((0,Yue.validateArray)(t))}};function OI(t,e,n=t.schema){let{gen:r,parentSchema:i,data:l,keyword:s,it:a}=t;c(i),a.opts.unevaluated&&n.length&&a.items!==!0&&(a.items=H8.mergeEvaluated.items(r,n.length,a.items));let o=r.name("valid"),u=r.const("len",(0,AI._)`${l}.length`);n.forEach((f,m)=>{(0,H8.alwaysValidSchema)(a,f)||(r.if((0,AI._)`${u} > ${m}`,()=>t.subschema({keyword:s,schemaProp:m,dataProp:m},o)),t.ok(o))});function c(f){let{opts:m,errSchemaPath:d}=a,y=n.length,_=y===f.minItems&&(y===f.maxItems||f[e]===!1);if(m.strictTuples&&!_){let S=`"${s}" is ${y}-tuple, but minItems or maxItems/${e} are not specified or different at path "${d}"`;(0,H8.checkStrictMode)(a,S,m.strictTuples)}}}F4.validateTuple=OI;F4.default=Que});var NI=k(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});var Zue=fy(),e1e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,Zue.validateTuple)(t,"items")};dy.default=e1e});var RI=k(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var CI=st(),t1e=Nt(),n1e=Si(),r1e=py(),i1e={message:({params:{len:t}})=>(0,CI.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,CI._)`{limit: ${t}}`},l1e={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:i1e,code(t){let{schema:e,parentSchema:n,it:r}=t,{prefixItems:i}=n;r.items=!0,!(0,t1e.alwaysValidSchema)(r,e)&&(i?(0,r1e.validateAdditionalItems)(t,i):t.ok((0,n1e.validateArray)(t)))}};hy.default=l1e});var II=k(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});var Ql=st(),V8=Nt(),s1e={message:({params:{min:t,max:e}})=>e===void 0?(0,Ql.str)`must contain at least ${t} valid item(s)`:(0,Ql.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Ql._)`{minContains: ${t}}`:(0,Ql._)`{minContains: ${t}, maxContains: ${e}}`},a1e={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:s1e,code(t){let{gen:e,schema:n,parentSchema:r,data:i,it:l}=t,s,a,{minContains:o,maxContains:u}=r;l.opts.next?(s=o===void 0?1:o,a=u):s=1;let c=e.const("len",(0,Ql._)`${i}.length`);if(t.setParams({min:s,max:a}),a===void 0&&s===0){(0,V8.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,V8.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,V8.alwaysValidSchema)(l,n)){let _=(0,Ql._)`${c} >= ${s}`;a!==void 0&&(_=(0,Ql._)`${_} && ${c} <= ${a}`),t.pass(_);return}l.items=!0;let f=e.name("valid");a===void 0&&s===1?d(f,()=>e.if(f,()=>e.break())):s===0?(e.let(f,!0),a!==void 0&&e.if((0,Ql._)`${i}.length > 0`,m)):(e.let(f,!1),m()),t.result(f,()=>t.reset());function m(){let _=e.name("_valid"),S=e.let("count",0);d(_,()=>e.if(_,()=>y(S)))}function d(_,S){e.forRange("i",0,c,w=>{t.subschema({keyword:"contains",dataProp:w,dataPropType:V8.Type.Num,compositeRule:!0},_),S()})}function y(_){e.code((0,Ql._)`${_}++`),a===void 0?e.if((0,Ql._)`${_} >= ${s}`,()=>e.assign(f,!0).break()):(e.if((0,Ql._)`${_} > ${a}`,()=>e.assign(f,!1).break()),s===1?e.assign(f,!0):e.if((0,Ql._)`${_} >= ${s}`,()=>e.assign(f,!0)))}}};my.default=a1e});var PI=k(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.validateSchemaDeps=Ys.validatePropertyDeps=Ys.error=void 0;var yy=st(),o1e=Nt(),j4=Si();Ys.error={message:({params:{property:t,depsCount:e,deps:n}})=>{let r=e===1?"property":"properties";return(0,yy.str)`must have ${r} ${n} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:n,missingProperty:r}})=>(0,yy._)`{property: ${t},
+ || ${s} === "boolean" || ${i} === null`).assign(a,(0,Ot._)`[${i}]`)}}}function Ioe({gen:t,parentData:e,parentDataProperty:n},r){t.if((0,Ot._)`${e} !== undefined`,()=>t.assign((0,Ot._)`${e}[${n}]`,r))}function Nm(t,e,n,r=b4.Correct){let i=r===b4.Correct?Ot.operators.EQ:Ot.operators.NEQ,l;switch(t){case"null":return(0,Ot._)`${e} ${i} null`;case"array":l=(0,Ot._)`Array.isArray(${e})`;break;case"object":l=(0,Ot._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":l=s((0,Ot._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":l=s();break;default:return(0,Ot._)`typeof ${e} ${i} ${t}`}return r===b4.Correct?l:(0,Ot.not)(l);function s(a=Ot.nil){return(0,Ot.and)((0,Ot._)`typeof ${e} == "number"`,a,n?(0,Ot._)`isFinite(${e})`:Ot.nil)}}xi.checkDataType=Nm;function Cm(t,e,n,r){if(t.length===1)return Nm(t[0],e,n,r);let i,l=(0,_R.toHash)(t);if(l.array&&l.object){let s=(0,Ot._)`typeof ${e} != "object"`;i=l.null?s:(0,Ot._)`!${e} || ${s}`,delete l.null,delete l.array,delete l.object}else i=Ot.nil;l.number&&delete l.integer;for(let s in l)i=(0,Ot.and)(i,Nm(s,e,n,r));return i}xi.checkDataTypes=Cm;var koe={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,Ot._)`{type: ${t}}`:(0,Ot._)`{type: ${e}}`};function Rm(t){let e=Doe(t);(0,Aoe.reportError)(e,koe)}xi.reportTypeError=Rm;function Doe(t){let{gen:e,data:n,schema:r}=t,i=(0,_R.schemaRefOrVal)(t,r,"type");return{gen:e,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:t}}});var SR=k(k8=>{"use strict";Object.defineProperty(k8,"__esModule",{value:!0});k8.assignDefaults=void 0;var r1=st(),Poe=Nt();function Loe(t,e){let{properties:n,items:r}=t.schema;if(e==="object"&&n)for(let i in n)wR(t,i,n[i].default);else e==="array"&&Array.isArray(r)&&r.forEach((i,l)=>wR(t,l,i.default))}k8.assignDefaults=Loe;function wR(t,e,n){let{gen:r,compositeRule:i,data:l,opts:s}=t;if(n===void 0)return;let a=(0,r1._)`${l}${(0,r1.getProperty)(e)}`;if(i){(0,Poe.checkStrictMode)(t,`default is ignored for: ${a}`);return}let o=(0,r1._)`${a} === undefined`;s.useDefaults==="empty"&&(o=(0,r1._)`${o} || ${a} === null || ${a} === ""`),r.if(o,(0,r1._)`${a} = ${(0,r1.stringify)(n)}`)}});var Ai=k(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.validateUnion=Wn.validateArray=Wn.usePattern=Wn.callValidateCode=Wn.schemaProperties=Wn.allSchemaProperties=Wn.noPropertyInData=Wn.propertyInData=Wn.isOwnProperty=Wn.hasPropFunc=Wn.reportMissingProp=Wn.checkMissingProp=Wn.checkReportMissingProp=void 0;var pr=st(),Im=Nt(),w2=Yl(),Foe=Nt();function joe(t,e){let{gen:n,data:r,it:i}=t;n.if(Dm(n,r,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,pr._)`${e}`},!0),t.error()})}Wn.checkReportMissingProp=joe;function Uoe({gen:t,data:e,it:{opts:n}},r,i){return(0,pr.or)(...r.map(l=>(0,pr.and)(Dm(t,e,l,n.ownProperties),(0,pr._)`${i} = ${l}`)))}Wn.checkMissingProp=Uoe;function Moe(t,e){t.setParams({missingProperty:e},!0),t.error()}Wn.reportMissingProp=Moe;function TR(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,pr._)`Object.prototype.hasOwnProperty`})}Wn.hasPropFunc=TR;function km(t,e,n){return(0,pr._)`${TR(t)}.call(${e}, ${n})`}Wn.isOwnProperty=km;function $oe(t,e,n,r){let i=(0,pr._)`${e}${(0,pr.getProperty)(n)} !== undefined`;return r?(0,pr._)`${i} && ${km(t,e,n)}`:i}Wn.propertyInData=$oe;function Dm(t,e,n,r){let i=(0,pr._)`${e}${(0,pr.getProperty)(n)} === undefined`;return r?(0,pr.or)(i,(0,pr.not)(km(t,e,n))):i}Wn.noPropertyInData=Dm;function xR(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Wn.allSchemaProperties=xR;function Boe(t,e){return xR(e).filter(n=>!(0,Im.alwaysValidSchema)(t,e[n]))}Wn.schemaProperties=Boe;function Hoe({schemaCode:t,data:e,it:{gen:n,topSchemaRef:r,schemaPath:i,errorPath:l},it:s},a,o,u){let c=u?(0,pr._)`${t}, ${e}, ${r}${i}`:e,f=[[w2.default.instancePath,(0,pr.strConcat)(w2.default.instancePath,l)],[w2.default.parentData,s.parentData],[w2.default.parentDataProperty,s.parentDataProperty],[w2.default.rootData,w2.default.rootData]];s.opts.dynamicRef&&f.push([w2.default.dynamicAnchors,w2.default.dynamicAnchors]);let m=(0,pr._)`${c}, ${n.object(...f)}`;return o!==pr.nil?(0,pr._)`${a}.call(${o}, ${m})`:(0,pr._)`${a}(${m})`}Wn.callValidateCode=Hoe;var Voe=(0,pr._)`new RegExp`;function qoe({gen:t,it:{opts:e}},n){let r=e.unicodeRegExp?"u":"",{regExp:i}=e.code,l=i(n,r);return t.scopeValue("pattern",{key:l.toString(),ref:l,code:(0,pr._)`${i.code==="new RegExp"?Voe:(0,Foe.useFunc)(t,i)}(${n}, ${r})`})}Wn.usePattern=qoe;function zoe(t){let{gen:e,data:n,keyword:r,it:i}=t,l=e.name("valid");if(i.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(l,!0),s(()=>e.break()),l;function s(a){let o=e.const("len",(0,pr._)`${n}.length`);e.forRange("i",0,o,u=>{t.subschema({keyword:r,dataProp:u,dataPropType:Im.Type.Num},l),e.if((0,pr.not)(l),a)})}}Wn.validateArray=zoe;function Goe(t){let{gen:e,schema:n,keyword:r,it:i}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(o=>(0,Im.alwaysValidSchema)(i,o))&&!i.opts.unevaluated)return;let s=e.let("valid",!1),a=e.name("_valid");e.block(()=>n.forEach((o,u)=>{let c=t.subschema({keyword:r,schemaProp:u,compositeRule:!0},a);e.assign(s,(0,pr._)`${s} || ${a}`),t.mergeValidEvaluated(c,a)||e.if((0,pr.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}Wn.validateUnion=Goe});var NR=k(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.validateKeywordUsage=Ws.validSchemaType=Ws.funcKeywordCode=Ws.macroKeywordCode=void 0;var tl=st(),A3=Yl(),Joe=Ai(),Koe=E4();function Xoe(t,e){let{gen:n,keyword:r,schema:i,parentSchema:l,it:s}=t,a=e.macro.call(s.self,i,l,s),o=OR(n,r,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let u=n.name("valid");t.subschema({schema:a,schemaPath:tl.nil,errSchemaPath:`${s.errSchemaPath}/${r}`,topSchemaRef:o,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}Ws.macroKeywordCode=Xoe;function Woe(t,e){var n;let{gen:r,keyword:i,schema:l,parentSchema:s,$data:a,it:o}=t;Qoe(o,e);let u=!a&&e.compile?e.compile.call(o.self,l,s,o):e.validate,c=OR(r,i,u),f=r.let("valid");t.block$data(f,m),t.ok((n=e.valid)!==null&&n!==void 0?n:f);function m(){if(e.errors===!1)_(),e.modifying&&AR(t),S(()=>t.error());else{let w=e.async?d():y();e.modifying&&AR(t),S(()=>Yoe(t,w))}}function d(){let w=r.let("ruleErrs",null);return r.try(()=>_((0,tl._)`await `),E=>r.assign(f,!1).if((0,tl._)`${E} instanceof ${o.ValidationError}`,()=>r.assign(w,(0,tl._)`${E}.errors`),()=>r.throw(E))),w}function y(){let w=(0,tl._)`${c}.errors`;return r.assign(w,null),_(tl.nil),w}function _(w=e.async?(0,tl._)`await `:tl.nil){let E=o.opts.passContext?A3.default.this:A3.default.self,g=!("compile"in e&&!a||e.schema===!1);r.assign(f,(0,tl._)`${w}${(0,Joe.callValidateCode)(t,c,E,g)}`,e.modifying)}function S(w){var E;r.if((0,tl.not)((E=e.valid)!==null&&E!==void 0?E:f),w)}}Ws.funcKeywordCode=Woe;function AR(t){let{gen:e,data:n,it:r}=t;e.if(r.parentData,()=>e.assign(n,(0,tl._)`${r.parentData}[${r.parentDataProperty}]`))}function Yoe(t,e){let{gen:n}=t;n.if((0,tl._)`Array.isArray(${e})`,()=>{n.assign(A3.default.vErrors,(0,tl._)`${A3.default.vErrors} === null ? ${e} : ${A3.default.vErrors}.concat(${e})`).assign(A3.default.errors,(0,tl._)`${A3.default.vErrors}.length`),(0,Koe.extendErrors)(t)},()=>t.error())}function Qoe({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function OR(t,e,n){if(n===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,tl.stringify)(n)})}function Zoe(t,e,n=!1){return!e.length||e.some(r=>r==="array"?Array.isArray(t):r==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==r||n&&typeof t>"u")}Ws.validSchemaType=Zoe;function e3e({schema:t,opts:e,self:n,errSchemaPath:r},i,l){if(Array.isArray(i.keyword)?!i.keyword.includes(l):i.keyword!==l)throw new Error("ajv implementation error");let s=i.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${l}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(t[l])){let o=`keyword "${l}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(e.validateSchema==="log")n.logger.error(o);else throw new Error(o)}}Ws.validateKeywordUsage=e3e});var RR=k(S2=>{"use strict";Object.defineProperty(S2,"__esModule",{value:!0});S2.extendSubschemaMode=S2.extendSubschemaData=S2.getSubschema=void 0;var Ys=st(),CR=Nt();function t3e(t,{keyword:e,schemaProp:n,schema:r,schemaPath:i,errSchemaPath:l,topSchemaRef:s}){if(e!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return n===void 0?{schema:a,schemaPath:(0,Ys._)`${t.schemaPath}${(0,Ys.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[n],schemaPath:(0,Ys._)`${t.schemaPath}${(0,Ys.getProperty)(e)}${(0,Ys.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,CR.escapeFragment)(n)}`}}if(r!==void 0){if(i===void 0||l===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:i,topSchemaRef:s,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}S2.getSubschema=t3e;function n3e(t,e,{dataProp:n,dataPropType:r,data:i,dataTypes:l,propertyName:s}){if(i!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(n!==void 0){let{errorPath:u,dataPathArr:c,opts:f}=e,m=a.let("data",(0,Ys._)`${e.data}${(0,Ys.getProperty)(n)}`,!0);o(m),t.errorPath=(0,Ys.str)`${u}${(0,CR.getErrorPath)(n,r,f.jsPropertySyntax)}`,t.parentDataProperty=(0,Ys._)`${n}`,t.dataPathArr=[...c,t.parentDataProperty]}if(i!==void 0){let u=i instanceof Ys.Name?i:a.let("data",i,!0);o(u),s!==void 0&&(t.propertyName=s)}l&&(t.dataTypes=l);function o(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}S2.extendSubschemaData=n3e;function r3e(t,{jtdDiscriminator:e,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:l}){r!==void 0&&(t.compositeRule=r),i!==void 0&&(t.createErrors=i),l!==void 0&&(t.allErrors=l),t.jtdDiscriminator=e,t.jtdMetadata=n}S2.extendSubschemaMode=r3e});var i1=k((cCe,IR)=>{"use strict";IR.exports=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,l;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(l=Object.keys(e),r=l.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[i]))return!1;for(i=r;i--!==0;){var s=l[i];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}});var DR=k((pCe,kR)=>{"use strict";var T2=kR.exports=function(t,e,n){typeof e=="function"&&(n=e,e={}),n=e.cb||n;var r=typeof n=="function"?n:n.pre||function(){},i=n.post||function(){};D8(e,r,i,t,"",t)};T2.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};T2.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};T2.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};T2.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function D8(t,e,n,r,i,l,s,a,o,u){if(r&&typeof r=="object"&&!Array.isArray(r)){e(r,i,l,s,a,o,u);for(var c in r){var f=r[c];if(Array.isArray(f)){if(c in T2.arrayKeywords)for(var m=0;m{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.getSchemaRefs=ml.resolveUrl=ml.normalizeId=ml._getFullPath=ml.getFullPath=ml.inlineRef=void 0;var l3e=Nt(),s3e=i1(),a3e=DR(),o3e=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function u3e(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Pm(t):e?PR(t)<=e:!1}ml.inlineRef=u3e;var c3e=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Pm(t){for(let e in t){if(c3e.has(e))return!0;let n=t[e];if(Array.isArray(n)&&n.some(Pm)||typeof n=="object"&&Pm(n))return!0}return!1}function PR(t){let e=0;for(let n in t){if(n==="$ref")return 1/0;if(e++,!o3e.has(n)&&(typeof t[n]=="object"&&(0,l3e.eachItem)(t[n],r=>e+=PR(r)),e===1/0))return 1/0}return e}function LR(t,e="",n){n!==!1&&(e=l1(e));let r=t.parse(e);return FR(t,r)}ml.getFullPath=LR;function FR(t,e){return t.serialize(e).split("#")[0]+"#"}ml._getFullPath=FR;var p3e=/#\/?$/;function l1(t){return t?t.replace(p3e,""):""}ml.normalizeId=l1;function f3e(t,e,n){return n=l1(n),t.resolve(e,n)}ml.resolveUrl=f3e;var d3e=/^[a-z_][-a-z0-9._]*$/i;function h3e(t,e){if(typeof t=="boolean")return{};let{schemaId:n,uriResolver:r}=this.opts,i=l1(t[n]||e),l={"":i},s=LR(r,i,!1),a={},o=new Set;return a3e(t,{allKeys:!0},(f,m,d,y)=>{if(y===void 0)return;let _=s+m,S=l[y];typeof f[n]=="string"&&(S=w.call(this,f[n])),E.call(this,f.$anchor),E.call(this,f.$dynamicAnchor),l[m]=S;function w(g){let v=this.opts.uriResolver.resolve;if(g=l1(S?v(S,g):g),o.has(g))throw c(g);o.add(g);let x=this.refs[g];return typeof x=="string"&&(x=this.refs[x]),typeof x=="object"?u(f,x.schema,g):g!==l1(_)&&(g[0]==="#"?(u(f,a[g],g),a[g]=f):this.refs[g]=_),g}function E(g){if(typeof g=="string"){if(!d3e.test(g))throw new Error(`invalid anchor "${g}"`);w.call(this,`#${g}`)}}}),a;function u(f,m,d){if(m!==void 0&&!s3e(f,m))throw c(d)}function c(f){return new Error(`reference "${f}" resolves to more than one schema`)}}ml.getSchemaRefs=h3e});var s1=k(x2=>{"use strict";Object.defineProperty(x2,"__esModule",{value:!0});x2.getData=x2.KeywordCxt=x2.validateFunctionCode=void 0;var BR=yR(),jR=w4(),Fm=Om(),P8=w4(),m3e=SR(),x4=NR(),Lm=RR(),et=st(),dt=Yl(),y3e=S4(),$a=Nt(),T4=E4();function g3e(t){if(qR(t)&&(zR(t),VR(t))){E3e(t);return}HR(t,()=>(0,BR.topBoolOrEmptySchema)(t))}x2.validateFunctionCode=g3e;function HR({gen:t,validateName:e,schema:n,schemaEnv:r,opts:i},l){i.code.es5?t.func(e,(0,et._)`${dt.default.data}, ${dt.default.valCxt}`,r.$async,()=>{t.code((0,et._)`"use strict"; ${UR(n,i)}`),_3e(t,i),t.code(l)}):t.func(e,(0,et._)`${dt.default.data}, ${v3e(i)}`,r.$async,()=>t.code(UR(n,i)).code(l))}function v3e(t){return(0,et._)`{${dt.default.instancePath}="", ${dt.default.parentData}, ${dt.default.parentDataProperty}, ${dt.default.rootData}=${dt.default.data}${t.dynamicRef?(0,et._)`, ${dt.default.dynamicAnchors}={}`:et.nil}}={}`}function _3e(t,e){t.if(dt.default.valCxt,()=>{t.var(dt.default.instancePath,(0,et._)`${dt.default.valCxt}.${dt.default.instancePath}`),t.var(dt.default.parentData,(0,et._)`${dt.default.valCxt}.${dt.default.parentData}`),t.var(dt.default.parentDataProperty,(0,et._)`${dt.default.valCxt}.${dt.default.parentDataProperty}`),t.var(dt.default.rootData,(0,et._)`${dt.default.valCxt}.${dt.default.rootData}`),e.dynamicRef&&t.var(dt.default.dynamicAnchors,(0,et._)`${dt.default.valCxt}.${dt.default.dynamicAnchors}`)},()=>{t.var(dt.default.instancePath,(0,et._)`""`),t.var(dt.default.parentData,(0,et._)`undefined`),t.var(dt.default.parentDataProperty,(0,et._)`undefined`),t.var(dt.default.rootData,dt.default.data),e.dynamicRef&&t.var(dt.default.dynamicAnchors,(0,et._)`{}`)})}function E3e(t){let{schema:e,opts:n,gen:r}=t;HR(t,()=>{n.$comment&&e.$comment&&JR(t),x3e(t),r.let(dt.default.vErrors,null),r.let(dt.default.errors,0),n.unevaluated&&b3e(t),GR(t),N3e(t)})}function b3e(t){let{gen:e,validateName:n}=t;t.evaluated=e.const("evaluated",(0,et._)`${n}.evaluated`),e.if((0,et._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,et._)`${t.evaluated}.props`,(0,et._)`undefined`)),e.if((0,et._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,et._)`${t.evaluated}.items`,(0,et._)`undefined`))}function UR(t,e){let n=typeof t=="object"&&t[e.schemaId];return n&&(e.code.source||e.code.process)?(0,et._)`/*# sourceURL=${n} */`:et.nil}function w3e(t,e){if(qR(t)&&(zR(t),VR(t))){S3e(t,e);return}(0,BR.boolOrEmptySchema)(t,e)}function VR({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let n in t)if(e.RULES.all[n])return!0;return!1}function qR(t){return typeof t.schema!="boolean"}function S3e(t,e){let{schema:n,gen:r,opts:i}=t;i.$comment&&n.$comment&&JR(t),A3e(t),O3e(t);let l=r.const("_errs",dt.default.errors);GR(t,l),r.var(e,(0,et._)`${l} === ${dt.default.errors}`)}function zR(t){(0,$a.checkUnknownRules)(t),T3e(t)}function GR(t,e){if(t.opts.jtd)return MR(t,[],!1,e);let n=(0,jR.getSchemaTypes)(t.schema),r=(0,jR.coerceAndCheckDataType)(t,n);MR(t,n,!r,e)}function T3e(t){let{schema:e,errSchemaPath:n,opts:r,self:i}=t;e.$ref&&r.ignoreKeywordsWithRef&&(0,$a.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function x3e(t){let{schema:e,opts:n}=t;e.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,$a.checkStrictMode)(t,"default is ignored in the schema root")}function A3e(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,y3e.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function O3e(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function JR({gen:t,schemaEnv:e,schema:n,errSchemaPath:r,opts:i}){let l=n.$comment;if(i.$comment===!0)t.code((0,et._)`${dt.default.self}.logger.log(${l})`);else if(typeof i.$comment=="function"){let s=(0,et.str)`${r}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,et._)`${dt.default.self}.opts.$comment(${l}, ${s}, ${a}.schema)`)}}function N3e(t){let{gen:e,schemaEnv:n,validateName:r,ValidationError:i,opts:l}=t;n.$async?e.if((0,et._)`${dt.default.errors} === 0`,()=>e.return(dt.default.data),()=>e.throw((0,et._)`new ${i}(${dt.default.vErrors})`)):(e.assign((0,et._)`${r}.errors`,dt.default.vErrors),l.unevaluated&&C3e(t),e.return((0,et._)`${dt.default.errors} === 0`))}function C3e({gen:t,evaluated:e,props:n,items:r}){n instanceof et.Name&&t.assign((0,et._)`${e}.props`,n),r instanceof et.Name&&t.assign((0,et._)`${e}.items`,r)}function MR(t,e,n,r){let{gen:i,schema:l,data:s,allErrors:a,opts:o,self:u}=t,{RULES:c}=u;if(l.$ref&&(o.ignoreKeywordsWithRef||!(0,$a.schemaHasRulesButRef)(l,c))){i.block(()=>XR(t,"$ref",c.all.$ref.definition));return}o.jtd||R3e(t,e),i.block(()=>{for(let m of c.rules)f(m);f(c.post)});function f(m){(0,Fm.shouldUseGroup)(l,m)&&(m.type?(i.if((0,P8.checkDataType)(m.type,s,o.strictNumbers)),$R(t,m),e.length===1&&e[0]===m.type&&n&&(i.else(),(0,P8.reportTypeError)(t)),i.endIf()):$R(t,m),a||i.if((0,et._)`${dt.default.errors} === ${r||0}`))}}function $R(t,e){let{gen:n,schema:r,opts:{useDefaults:i}}=t;i&&(0,m3e.assignDefaults)(t,e.type),n.block(()=>{for(let l of e.rules)(0,Fm.shouldUseRule)(r,l)&&XR(t,l.keyword,l.definition,e.type)})}function R3e(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(I3e(t,e),t.opts.allowUnionTypes||k3e(t,e),D3e(t,t.dataTypes))}function I3e(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(n=>{KR(t.dataTypes,n)||jm(t,`type "${n}" not allowed by context "${t.dataTypes.join(",")}"`)}),L3e(t,e)}}function k3e(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&jm(t,"use allowUnionTypes to allow union type keyword")}function D3e(t,e){let n=t.self.RULES.all;for(let r in n){let i=n[r];if(typeof i=="object"&&(0,Fm.shouldUseRule)(t.schema,i)){let{type:l}=i.definition;l.length&&!l.some(s=>P3e(e,s))&&jm(t,`missing type "${l.join(",")}" for keyword "${r}"`)}}}function P3e(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function KR(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function L3e(t,e){let n=[];for(let r of t.dataTypes)KR(e,r)?n.push(r):e.includes("integer")&&r==="number"&&n.push("integer");t.dataTypes=n}function jm(t,e){let n=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${n}" (strictTypes)`,(0,$a.checkStrictMode)(t,e,t.opts.strictTypes)}var L8=class{constructor(e,n,r){if((0,x4.validateKeywordUsage)(e,n,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=n.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,$a.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=n,this.$data)this.schemaCode=e.gen.const("vSchema",WR(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,x4.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=e.gen.const("_errs",dt.default.errors))}result(e,n,r){this.failResult((0,et.not)(e),n,r)}failResult(e,n,r){this.gen.if(e),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,n){this.failResult((0,et.not)(e),void 0,n)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:n}=this;this.fail((0,et._)`${n} !== undefined && (${(0,et.or)(this.invalid$data(),e)})`)}error(e,n,r){if(n){this.setParams(n),this._error(e,r),this.setParams({});return}this._error(e,r)}_error(e,n){(e?T4.reportExtraError:T4.reportError)(this,this.def.error,n)}$dataError(){(0,T4.reportError)(this,this.def.$dataError||T4.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,T4.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,n){n?Object.assign(this.params,e):this.params=e}block$data(e,n,r=et.nil){this.gen.block(()=>{this.check$data(e,r),n()})}check$data(e=et.nil,n=et.nil){if(!this.$data)return;let{gen:r,schemaCode:i,schemaType:l,def:s}=this;r.if((0,et.or)((0,et._)`${i} === undefined`,n)),e!==et.nil&&r.assign(e,!0),(l.length||s.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==et.nil&&r.assign(e,!1)),r.else()}invalid$data(){let{gen:e,schemaCode:n,schemaType:r,def:i,it:l}=this;return(0,et.or)(s(),a());function s(){if(r.length){if(!(n instanceof et.Name))throw new Error("ajv implementation error");let o=Array.isArray(r)?r:[r];return(0,et._)`${(0,P8.checkDataTypes)(o,n,l.opts.strictNumbers,P8.DataType.Wrong)}`}return et.nil}function a(){if(i.validateSchema){let o=e.scopeValue("validate$data",{ref:i.validateSchema});return(0,et._)`!${o}(${n})`}return et.nil}}subschema(e,n){let r=(0,Lm.getSubschema)(this.it,e);(0,Lm.extendSubschemaData)(r,this.it,e),(0,Lm.extendSubschemaMode)(r,e);let i={...this.it,...r,items:void 0,props:void 0};return w3e(i,n),i}mergeEvaluated(e,n){let{it:r,gen:i}=this;r.opts.unevaluated&&(r.props!==!0&&e.props!==void 0&&(r.props=$a.mergeEvaluated.props(i,e.props,r.props,n)),r.items!==!0&&e.items!==void 0&&(r.items=$a.mergeEvaluated.items(i,e.items,r.items,n)))}mergeValidEvaluated(e,n){let{it:r,gen:i}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return i.if(n,()=>this.mergeEvaluated(e,et.Name)),!0}};x2.KeywordCxt=L8;function XR(t,e,n,r){let i=new L8(t,n,e);"code"in n?n.code(i,r):i.$data&&n.validate?(0,x4.funcKeywordCode)(i,n):"macro"in n?(0,x4.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,x4.funcKeywordCode)(i,n)}var F3e=/^\/(?:[^~]|~0|~1)*$/,j3e=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function WR(t,{dataLevel:e,dataNames:n,dataPathArr:r}){let i,l;if(t==="")return dt.default.rootData;if(t[0]==="/"){if(!F3e.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,l=dt.default.rootData}else{let u=j3e.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+u[1];if(i=u[2],i==="#"){if(c>=e)throw new Error(o("property/index",c));return r[e-c]}if(c>e)throw new Error(o("data",c));if(l=n[e-c],!i)return l}let s=l,a=i.split("/");for(let u of a)u&&(l=(0,et._)`${l}${(0,et.getProperty)((0,$a.unescapeJsonPointer)(u))}`,s=(0,et._)`${s} && ${l}`);return s;function o(u,c){return`Cannot access ${u} ${c} levels up, current level is ${e}`}}x2.getData=WR});var A4=k(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});var Um=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Mm.default=Um});var A2=k(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});var $m=S4(),Bm=class extends Error{constructor(e,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,$m.resolveUrl)(e,n,r),this.missingSchema=(0,$m.normalizeId)((0,$m.getFullPath)(e,this.missingRef))}};Hm.default=Bm});var N3=k(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.resolveSchema=Ql.getCompilingSchema=Ql.resolveRef=Ql.compileSchema=Ql.SchemaEnv=void 0;var Es=st(),U3e=A4(),O3=Yl(),bs=S4(),YR=Nt(),M3e=s1(),a1=class{constructor(e){var n;this.refs={},this.dynamicAnchors={};let r;typeof e.schema=="object"&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(n=e.baseId)!==null&&n!==void 0?n:(0,bs.normalizeId)(r?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=r?.$async,this.refs={}}};Ql.SchemaEnv=a1;function qm(t){let e=QR.call(this,t);if(e)return e;let n=(0,bs.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:r,lines:i}=this.opts.code,{ownProperties:l}=this.opts,s=new Es.CodeGen(this.scope,{es5:r,lines:i,ownProperties:l}),a;t.$async&&(a=s.scopeValue("Error",{ref:U3e.default,code:(0,Es._)`require("ajv/dist/runtime/validation_error").default`}));let o=s.scopeName("validate");t.validateName=o;let u={gen:s,allErrors:this.opts.allErrors,data:O3.default.data,parentData:O3.default.parentData,parentDataProperty:O3.default.parentDataProperty,dataNames:[O3.default.data],dataPathArr:[Es.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Es.stringify)(t.schema)}:{ref:t.schema}),validateName:o,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:n,baseId:t.baseId||n,schemaPath:Es.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Es._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(t),(0,M3e.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let f=s.toString();c=`${s.scopeRefs(O3.default.scope)}return ${f}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let d=new Function(`${O3.default.self}`,`${O3.default.scope}`,c)(this,this.scope.get());if(this.scope.value(o,{ref:d}),d.errors=null,d.schema=t.schema,d.schemaEnv=t,t.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:o,validateCode:f,scopeValues:s._values}),this.opts.unevaluated){let{props:y,items:_}=u;d.evaluated={props:y instanceof Es.Name?void 0:y,items:_ instanceof Es.Name?void 0:_,dynamicProps:y instanceof Es.Name,dynamicItems:_ instanceof Es.Name},d.source&&(d.source.evaluated=(0,Es.stringify)(d.evaluated))}return t.validate=d,t}catch(f){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),f}finally{this._compilations.delete(t)}}Ql.compileSchema=qm;function $3e(t,e,n){var r;n=(0,bs.resolveUrl)(this.opts.uriResolver,e,n);let i=t.refs[n];if(i)return i;let l=V3e.call(this,t,n);if(l===void 0){let s=(r=t.localRefs)===null||r===void 0?void 0:r[n],{schemaId:a}=this.opts;s&&(l=new a1({schema:s,schemaId:a,root:t,baseId:e}))}if(l!==void 0)return t.refs[n]=B3e.call(this,l)}Ql.resolveRef=$3e;function B3e(t){return(0,bs.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:qm.call(this,t)}function QR(t){for(let e of this._compilations)if(H3e(e,t))return e}Ql.getCompilingSchema=QR;function H3e(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function V3e(t,e){let n;for(;typeof(n=this.refs[e])=="string";)e=n;return n||this.schemas[e]||F8.call(this,t,e)}function F8(t,e){let n=this.opts.uriResolver.parse(e),r=(0,bs._getFullPath)(this.opts.uriResolver,n),i=(0,bs.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&r===i)return Vm.call(this,n,t);let l=(0,bs.normalizeId)(r),s=this.refs[l]||this.schemas[l];if(typeof s=="string"){let a=F8.call(this,t,s);return typeof a?.schema!="object"?void 0:Vm.call(this,n,a)}if(typeof s?.schema=="object"){if(s.validate||qm.call(this,s),l===(0,bs.normalizeId)(e)){let{schema:a}=s,{schemaId:o}=this.opts,u=a[o];return u&&(i=(0,bs.resolveUrl)(this.opts.uriResolver,i,u)),new a1({schema:a,schemaId:o,root:t,baseId:i})}return Vm.call(this,n,s)}}Ql.resolveSchema=F8;var q3e=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Vm(t,{baseId:e,schema:n,root:r}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof n=="boolean")return;let o=n[(0,YR.unescapeFragment)(a)];if(o===void 0)return;n=o;let u=typeof n=="object"&&n[this.opts.schemaId];!q3e.has(a)&&u&&(e=(0,bs.resolveUrl)(this.opts.uriResolver,e,u))}let l;if(typeof n!="boolean"&&n.$ref&&!(0,YR.schemaHasRulesButRef)(n,this.RULES)){let a=(0,bs.resolveUrl)(this.opts.uriResolver,e,n.$ref);l=F8.call(this,r,a)}let{schemaId:s}=this.opts;if(l=l||new a1({schema:n,schemaId:s,root:r,baseId:e}),l.schema!==l.root.schema)return l}});var ZR=k((gCe,z3e)=>{z3e.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var tI=k((j8,eI)=>{(function(t,e){typeof j8=="object"&&typeof eI<"u"?e(j8):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(j8,function(t){"use strict";function e(){for(var J=arguments.length,M=Array(J),Y=0;Y1){M[0]=M[0].slice(0,-1);for(var le=M.length-1,ae=1;ae= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=d-y,F=Math.floor,te=String.fromCharCode;function Q(J){throw new RangeError(R[J])}function W(J,M){for(var Y=[],le=J.length;le--;)Y[le]=M(J[le]);return Y}function ce(J,M){var Y=J.split("@"),le="";Y.length>1&&(le=Y[0]+"@",J=Y[1]),J=J.replace(N,".");var ae=J.split("."),je=W(ae,M).join(".");return le+je}function we(J){for(var M=[],Y=0,le=J.length;Y=55296&&ae<=56319&&Y>1,M+=F(M/Y);M>U*_>>1;ae+=d)M=F(M/U);return F(ae+(U+1)*M/(M+S))},G=function(M){var Y=[],le=M.length,ae=0,je=g,bt=E,Gt=M.lastIndexOf(v);Gt<0&&(Gt=0);for(var sn=0;sn=128&&Q("not-basic"),Y.push(M.charCodeAt(sn));for(var Tr=Gt>0?Gt+1:0;Tr=le&&Q("invalid-input");var sr=ee(M.charCodeAt(Tr++));(sr>=d||sr>F((m-ae)/ut))&&Q("overflow"),ae+=sr*ut;var Xt=xr<=bt?y:xr>=bt+_?_:xr-bt;if(srF(m/fn)&&Q("overflow"),ut*=fn}var en=Y.length+1;bt=P(ae-Ze,en,Ze==0),F(ae/en)>m-je&&Q("overflow"),je+=F(ae/en),ae%=en,Y.splice(ae++,0,je)}return String.fromCodePoint.apply(String,Y)},V=function(M){var Y=[];M=we(M);var le=M.length,ae=g,je=0,bt=E,Gt=!0,sn=!1,Tr=void 0;try{for(var Ze=M[Symbol.iterator](),ut;!(Gt=(ut=Ze.next()).done);Gt=!0){var xr=ut.value;xr<128&&Y.push(te(xr))}}catch(an){sn=!0,Tr=an}finally{try{!Gt&&Ze.return&&Ze.return()}finally{if(sn)throw Tr}}var sr=Y.length,Xt=sr;for(sr&&Y.push(v);Xt=ae&&kiF((m-je)/Wi)&&Q("overflow"),je+=(fn-ae)*Wi,ae=fn;var Cl=!0,Fs=!1,$l=void 0;try{for(var o2=M[Symbol.iterator](),oi;!(Cl=(oi=o2.next()).done);Cl=!0){var Tu=oi.value;if(Tum&&Q("overflow"),Tu==ae){for(var Kr=je,wa=d;;wa+=d){var ui=wa<=bt?y:wa>=bt+_?_:wa-bt;if(Kr>6|192).toString(16).toUpperCase()+"%"+(M&63|128).toString(16).toUpperCase():Y="%"+(M>>12|224).toString(16).toUpperCase()+"%"+(M>>6&63|128).toString(16).toUpperCase()+"%"+(M&63|128).toString(16).toUpperCase(),Y}function ze(J){for(var M="",Y=0,le=J.length;Y=194&&ae<224){if(le-Y>=6){var je=parseInt(J.substr(Y+4,2),16);M+=String.fromCharCode((ae&31)<<6|je&63)}else M+=J.substr(Y,6);Y+=6}else if(ae>=224){if(le-Y>=9){var bt=parseInt(J.substr(Y+4,2),16),Gt=parseInt(J.substr(Y+7,2),16);M+=String.fromCharCode((ae&15)<<12|(bt&63)<<6|Gt&63)}else M+=J.substr(Y,9);Y+=9}else M+=J.substr(Y,3),Y+=3}return M}function Ue(J,M){function Y(le){var ae=ze(le);return ae.match(M.UNRESERVED)?ae:le}return J.scheme&&(J.scheme=String(J.scheme).replace(M.PCT_ENCODED,Y).toLowerCase().replace(M.NOT_SCHEME,"")),J.userinfo!==void 0&&(J.userinfo=String(J.userinfo).replace(M.PCT_ENCODED,Y).replace(M.NOT_USERINFO,pt).replace(M.PCT_ENCODED,i)),J.host!==void 0&&(J.host=String(J.host).replace(M.PCT_ENCODED,Y).toLowerCase().replace(M.NOT_HOST,pt).replace(M.PCT_ENCODED,i)),J.path!==void 0&&(J.path=String(J.path).replace(M.PCT_ENCODED,Y).replace(J.scheme?M.NOT_PATH:M.NOT_PATH_NOSCHEME,pt).replace(M.PCT_ENCODED,i)),J.query!==void 0&&(J.query=String(J.query).replace(M.PCT_ENCODED,Y).replace(M.NOT_QUERY,pt).replace(M.PCT_ENCODED,i)),J.fragment!==void 0&&(J.fragment=String(J.fragment).replace(M.PCT_ENCODED,Y).replace(M.NOT_FRAGMENT,pt).replace(M.PCT_ENCODED,i)),J}function $t(J){return J.replace(/^0*(.*)/,"$1")||"0"}function gt(J,M){var Y=J.match(M.IPV4ADDRESS)||[],le=c(Y,2),ae=le[1];return ae?ae.split(".").map($t).join("."):J}function Et(J,M){var Y=J.match(M.IPV6ADDRESS)||[],le=c(Y,3),ae=le[1],je=le[2];if(ae){for(var bt=ae.toLowerCase().split("::").reverse(),Gt=c(bt,2),sn=Gt[0],Tr=Gt[1],Ze=Tr?Tr.split(":").map($t):[],ut=sn.split(":").map($t),xr=M.IPV4ADDRESS.test(ut[ut.length-1]),sr=xr?7:8,Xt=ut.length-sr,fn=Array(sr),en=0;en1){var cn=fn.slice(0,kr.index),ki=fn.slice(kr.index+kr.length);Xi=cn.join(":")+"::"+ki.join(":")}else Xi=fn.join(":");return je&&(Xi+="%"+je),Xi}else return J}var ie=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ve="".match(/(){0}/)[1]===void 0;function Se(J){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y={},le=M.iri!==!1?u:o;M.reference==="suffix"&&(J=(M.scheme?M.scheme+":":"")+"//"+J);var ae=J.match(ie);if(ae){ve?(Y.scheme=ae[1],Y.userinfo=ae[3],Y.host=ae[4],Y.port=parseInt(ae[5],10),Y.path=ae[6]||"",Y.query=ae[7],Y.fragment=ae[8],isNaN(Y.port)&&(Y.port=ae[5])):(Y.scheme=ae[1]||void 0,Y.userinfo=J.indexOf("@")!==-1?ae[3]:void 0,Y.host=J.indexOf("//")!==-1?ae[4]:void 0,Y.port=parseInt(ae[5],10),Y.path=ae[6]||"",Y.query=J.indexOf("?")!==-1?ae[7]:void 0,Y.fragment=J.indexOf("#")!==-1?ae[8]:void 0,isNaN(Y.port)&&(Y.port=J.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ae[4]:void 0)),Y.host&&(Y.host=Et(gt(Y.host,le),le)),Y.scheme===void 0&&Y.userinfo===void 0&&Y.host===void 0&&Y.port===void 0&&!Y.path&&Y.query===void 0?Y.reference="same-document":Y.scheme===void 0?Y.reference="relative":Y.fragment===void 0?Y.reference="absolute":Y.reference="uri",M.reference&&M.reference!=="suffix"&&M.reference!==Y.reference&&(Y.error=Y.error||"URI is not a "+M.reference+" reference.");var je=Qe[(M.scheme||Y.scheme||"").toLowerCase()];if(!M.unicodeSupport&&(!je||!je.unicodeSupport)){if(Y.host&&(M.domainHost||je&&je.domainHost))try{Y.host=Tt.toASCII(Y.host.replace(le.PCT_ENCODED,ze).toLowerCase())}catch(bt){Y.error=Y.error||"Host's domain name can not be converted to ASCII via punycode: "+bt}Ue(Y,o)}else Ue(Y,le);je&&je.parse&&je.parse(Y,M)}else Y.error=Y.error||"URI can not be parsed.";return Y}function Xe(J,M){var Y=M.iri!==!1?u:o,le=[];return J.userinfo!==void 0&&(le.push(J.userinfo),le.push("@")),J.host!==void 0&&le.push(Et(gt(String(J.host),Y),Y).replace(Y.IPV6ADDRESS,function(ae,je,bt){return"["+je+(bt?"%25"+bt:"")+"]"})),(typeof J.port=="number"||typeof J.port=="string")&&(le.push(":"),le.push(String(J.port))),le.length?le.join(""):void 0}var ft=/^\.\.?\//,Pe=/^\/\.(\/|$)/,Lt=/^\/\.\.(\/|$)/,wr=/^\/?(?:.|\n)*?(?=\/|$)/;function Ft(J){for(var M=[];J.length;)if(J.match(ft))J=J.replace(ft,"");else if(J.match(Pe))J=J.replace(Pe,"/");else if(J.match(Lt))J=J.replace(Lt,"/"),M.pop();else if(J==="."||J==="..")J="";else{var Y=J.match(wr);if(Y){var le=Y[0];J=J.slice(le.length),M.push(le)}else throw new Error("Unexpected dot segment condition")}return M.join("")}function Zt(J){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=M.iri?u:o,le=[],ae=Qe[(M.scheme||J.scheme||"").toLowerCase()];if(ae&&ae.serialize&&ae.serialize(J,M),J.host&&!Y.IPV6ADDRESS.test(J.host)){if(M.domainHost||ae&&ae.domainHost)try{J.host=M.iri?Tt.toUnicode(J.host):Tt.toASCII(J.host.replace(Y.PCT_ENCODED,ze).toLowerCase())}catch(Gt){J.error=J.error||"Host's domain name can not be converted to "+(M.iri?"Unicode":"ASCII")+" via punycode: "+Gt}}Ue(J,Y),M.reference!=="suffix"&&J.scheme&&(le.push(J.scheme),le.push(":"));var je=Xe(J,M);if(je!==void 0&&(M.reference!=="suffix"&&le.push("//"),le.push(je),J.path&&J.path.charAt(0)!=="/"&&le.push("/")),J.path!==void 0){var bt=J.path;!M.absolutePath&&(!ae||!ae.absolutePath)&&(bt=Ft(bt)),je===void 0&&(bt=bt.replace(/^\/\//,"/%2F")),le.push(bt)}return J.query!==void 0&&(le.push("?"),le.push(J.query)),J.fragment!==void 0&&(le.push("#"),le.push(J.fragment)),le.join("")}function ol(J,M){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},le=arguments[3],ae={};return le||(J=Se(Zt(J,Y),Y),M=Se(Zt(M,Y),Y)),Y=Y||{},!Y.tolerant&&M.scheme?(ae.scheme=M.scheme,ae.userinfo=M.userinfo,ae.host=M.host,ae.port=M.port,ae.path=Ft(M.path||""),ae.query=M.query):(M.userinfo!==void 0||M.host!==void 0||M.port!==void 0?(ae.userinfo=M.userinfo,ae.host=M.host,ae.port=M.port,ae.path=Ft(M.path||""),ae.query=M.query):(M.path?(M.path.charAt(0)==="/"?ae.path=Ft(M.path):((J.userinfo!==void 0||J.host!==void 0||J.port!==void 0)&&!J.path?ae.path="/"+M.path:J.path?ae.path=J.path.slice(0,J.path.lastIndexOf("/")+1)+M.path:ae.path=M.path,ae.path=Ft(ae.path)),ae.query=M.query):(ae.path=J.path,M.query!==void 0?ae.query=M.query:ae.query=J.query),ae.userinfo=J.userinfo,ae.host=J.host,ae.port=J.port),ae.scheme=J.scheme),ae.fragment=M.fragment,ae}function dr(J,M,Y){var le=s({scheme:"null"},Y);return Zt(ol(Se(J,le),Se(M,le),le,!0),le)}function si(J,M){return typeof J=="string"?J=Zt(Se(J,M),M):r(J)==="object"&&(J=Se(Zt(J,M),M)),J}function Sr(J,M,Y){return typeof J=="string"?J=Zt(Se(J,Y),Y):r(J)==="object"&&(J=Zt(J,Y)),typeof M=="string"?M=Zt(Se(M,Y),Y):r(M)==="object"&&(M=Zt(M,Y)),J===M}function bi(J,M){return J&&J.toString().replace(!M||!M.iri?o.ESCAPE:u.ESCAPE,pt)}function Ri(J,M){return J&&J.toString().replace(!M||!M.iri?o.PCT_ENCODED:u.PCT_ENCODED,ze)}var Ul={scheme:"http",domainHost:!0,parse:function(M,Y){return M.host||(M.error=M.error||"HTTP URIs must have a host."),M},serialize:function(M,Y){var le=String(M.scheme).toLowerCase()==="https";return(M.port===(le?443:80)||M.port==="")&&(M.port=void 0),M.path||(M.path="/"),M}},Rr={scheme:"https",domainHost:Ul.domainHost,parse:Ul.parse,serialize:Ul.serialize};function wu(J){return typeof J.secure=="boolean"?J.secure:String(J.scheme).toLowerCase()==="wss"}var Ds={scheme:"ws",domainHost:!0,parse:function(M,Y){var le=M;return le.secure=wu(le),le.resourceName=(le.path||"/")+(le.query?"?"+le.query:""),le.path=void 0,le.query=void 0,le},serialize:function(M,Y){if((M.port===(wu(M)?443:80)||M.port==="")&&(M.port=void 0),typeof M.secure=="boolean"&&(M.scheme=M.secure?"wss":"ws",M.secure=void 0),M.resourceName){var le=M.resourceName.split("?"),ae=c(le,2),je=ae[0],bt=ae[1];M.path=je&&je!=="/"?je:void 0,M.query=bt,M.resourceName=void 0}return M.fragment=void 0,M}},er={scheme:"wss",domainHost:Ds.domainHost,parse:Ds.parse,serialize:Ds.serialize},Ki={},Rf=!0,ai="[A-Za-z0-9\\-\\.\\_\\~"+(Rf?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Hr="[0-9A-Fa-f]",Su=n(n("%[EFef]"+Hr+"%"+Hr+Hr+"%"+Hr+Hr)+"|"+n("%[89A-Fa-f]"+Hr+"%"+Hr+Hr)+"|"+n("%"+Hr+Hr)),Jr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Ea="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Ps=e(Ea,'[\\"\\\\]'),yr="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Ir=new RegExp(ai,"g"),ba=new RegExp(Su,"g"),Ii=new RegExp(e("[^]",Jr,"[\\.]",'[\\"]',Ps),"g"),wi=new RegExp(e("[^]",ai,yr),"g"),os=wi;function Nl(J){var M=ze(J);return M.match(Ir)?M:J}var us={scheme:"mailto",parse:function(M,Y){var le=M,ae=le.to=le.path?le.path.split(","):[];if(le.path=void 0,le.query){for(var je=!1,bt={},Gt=le.query.split("&"),sn=0,Tr=Gt.length;sn{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});var nI=tI();nI.code='require("ajv/dist/runtime/uri").default';zm.default=nI});var Km=k(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.CodeGen=Oi.Name=Oi.nil=Oi.stringify=Oi.str=Oi._=Oi.KeywordCxt=void 0;var G3e=s1();Object.defineProperty(Oi,"KeywordCxt",{enumerable:!0,get:function(){return G3e.KeywordCxt}});var o1=st();Object.defineProperty(Oi,"_",{enumerable:!0,get:function(){return o1._}});Object.defineProperty(Oi,"str",{enumerable:!0,get:function(){return o1.str}});Object.defineProperty(Oi,"stringify",{enumerable:!0,get:function(){return o1.stringify}});Object.defineProperty(Oi,"nil",{enumerable:!0,get:function(){return o1.nil}});Object.defineProperty(Oi,"Name",{enumerable:!0,get:function(){return o1.Name}});Object.defineProperty(Oi,"CodeGen",{enumerable:!0,get:function(){return o1.CodeGen}});var J3e=A4(),oI=A2(),K3e=Am(),O4=N3(),X3e=st(),N4=S4(),U8=w4(),Jm=Nt(),iI=ZR(),W3e=rI(),uI=(t,e)=>new RegExp(t,e);uI.code="new RegExp";var Y3e=["removeAdditional","useDefaults","coerceTypes"],Q3e=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Z3e={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},eue={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},lI=200;function tue(t){var e,n,r,i,l,s,a,o,u,c,f,m,d,y,_,S,w,E,g,v,x,O,N,R,U;let F=t.strict,te=(e=t.code)===null||e===void 0?void 0:e.optimize,Q=te===!0||te===void 0?1:te||0,W=(r=(n=t.code)===null||n===void 0?void 0:n.regExp)!==null&&r!==void 0?r:uI,ce=(i=t.uriResolver)!==null&&i!==void 0?i:W3e.default;return{strictSchema:(s=(l=t.strictSchema)!==null&&l!==void 0?l:F)!==null&&s!==void 0?s:!0,strictNumbers:(o=(a=t.strictNumbers)!==null&&a!==void 0?a:F)!==null&&o!==void 0?o:!0,strictTypes:(c=(u=t.strictTypes)!==null&&u!==void 0?u:F)!==null&&c!==void 0?c:"log",strictTuples:(m=(f=t.strictTuples)!==null&&f!==void 0?f:F)!==null&&m!==void 0?m:"log",strictRequired:(y=(d=t.strictRequired)!==null&&d!==void 0?d:F)!==null&&y!==void 0?y:!1,code:t.code?{...t.code,optimize:Q,regExp:W}:{optimize:Q,regExp:W},loopRequired:(_=t.loopRequired)!==null&&_!==void 0?_:lI,loopEnum:(S=t.loopEnum)!==null&&S!==void 0?S:lI,meta:(w=t.meta)!==null&&w!==void 0?w:!0,messages:(E=t.messages)!==null&&E!==void 0?E:!0,inlineRefs:(g=t.inlineRefs)!==null&&g!==void 0?g:!0,schemaId:(v=t.schemaId)!==null&&v!==void 0?v:"$id",addUsedSchema:(x=t.addUsedSchema)!==null&&x!==void 0?x:!0,validateSchema:(O=t.validateSchema)!==null&&O!==void 0?O:!0,validateFormats:(N=t.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(R=t.unicodeRegExp)!==null&&R!==void 0?R:!0,int32range:(U=t.int32range)!==null&&U!==void 0?U:!0,uriResolver:ce}}var C4=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...tue(e)};let{es5:n,lines:r}=this.opts.code;this.scope=new X3e.ValueScope({scope:{},prefixes:Q3e,es5:n,lines:r}),this.logger=aue(e.logger);let i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,K3e.getRules)(),sI.call(this,Z3e,e,"NOT SUPPORTED"),sI.call(this,eue,e,"DEPRECATED","warn"),this._metaOpts=lue.call(this),e.formats&&rue.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&iue.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),nue.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:n,schemaId:r}=this.opts,i=iI;r==="id"&&(i={...iI},i.id=i.$id,delete i.$id),n&&e&&this.addMetaSchema(i,i[r],!1)}defaultMeta(){let{meta:e,schemaId:n}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[n]||e:void 0}validate(e,n){let r;if(typeof e=="string"){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);let i=r(n);return"$async"in r||(this.errors=r.errors),i}compile(e,n){let r=this._addSchema(e,n);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,n){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return i.call(this,e,n);async function i(c,f){await l.call(this,c.$schema);let m=this._addSchema(c,f);return m.validate||s.call(this,m)}async function l(c){c&&!this.getSchema(c)&&await i.call(this,{$ref:c},!0)}async function s(c){try{return this._compileSchemaEnv(c)}catch(f){if(!(f instanceof oI.default))throw f;return a.call(this,f),await o.call(this,f.missingSchema),s.call(this,c)}}function a({missingSchema:c,missingRef:f}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${f} cannot be resolved`)}async function o(c){let f=await u.call(this,c);this.refs[c]||await l.call(this,f.$schema),this.refs[c]||this.addSchema(f,c,n)}async function u(c){let f=this._loading[c];if(f)return f;try{return await(this._loading[c]=r(c))}finally{delete this._loading[c]}}}addSchema(e,n,r,i=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,r,i);return this}let l;if(typeof e=="object"){let{schemaId:s}=this.opts;if(l=e[s],l!==void 0&&typeof l!="string")throw new Error(`schema ${s} must be string`)}return n=(0,N4.normalizeId)(n||l),this._checkUnique(n),this.schemas[n]=this._addSchema(e,r,n,i,!0),this}addMetaSchema(e,n,r=this.opts.validateSchema){return this.addSchema(e,n,!0,r),this}validateSchema(e,n){if(typeof e=="boolean")return!0;let r;if(r=e.$schema,r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(r,e);if(!i&&n){let l="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(l);else throw new Error(l)}return i}getSchema(e){let n;for(;typeof(n=aI.call(this,e))=="string";)e=n;if(n===void 0){let{schemaId:r}=this.opts,i=new O4.SchemaEnv({schema:{},schemaId:r});if(n=O4.resolveSchema.call(this,i,e),!n)return;this.refs[e]=n}return n.validate||this._compileSchemaEnv(n)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let n=aI.call(this,e);return typeof n=="object"&&this._cache.delete(n.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let n=e;this._cache.delete(n);let r=e[this.opts.schemaId];return r&&(r=(0,N4.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let n of e)this.addKeyword(n);return this}addKeyword(e,n){let r;if(typeof e=="string")r=e,typeof n=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),n.keyword=r);else if(typeof e=="object"&&n===void 0){if(n=e,r=n.keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(uue.call(this,r,n),!n)return(0,Jm.eachItem)(r,l=>Gm.call(this,l)),this;pue.call(this,n);let i={...n,type:(0,U8.getJSONTypes)(n.type),schemaType:(0,U8.getJSONTypes)(n.schemaType)};return(0,Jm.eachItem)(r,i.type.length===0?l=>Gm.call(this,l,i):l=>i.type.forEach(s=>Gm.call(this,l,i,s))),this}getKeyword(e){let n=this.RULES.all[e];return typeof n=="object"?n.definition:!!n}removeKeyword(e){let{RULES:n}=this;delete n.keywords[e],delete n.all[e];for(let r of n.rules){let i=r.rules.findIndex(l=>l.keyword===e);i>=0&&r.rules.splice(i,1)}return this}addFormat(e,n){return typeof n=="string"&&(n=new RegExp(n)),this.formats[e]=n,this}errorsText(e=this.errors,{separator:n=", ",dataVar:r="data"}={}){return!e||e.length===0?"No errors":e.map(i=>`${r}${i.instancePath} ${i.message}`).reduce((i,l)=>i+n+l)}$dataMetaSchema(e,n){let r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let i of n){let l=i.split("/").slice(1),s=e;for(let a of l)s=s[a];for(let a in r){let o=r[a];if(typeof o!="object")continue;let{$data:u}=o.definition,c=s[a];u&&c&&(s[a]=cI(c))}}return e}_removeAllSchemas(e,n){for(let r in e){let i=e[r];(!n||n.test(r))&&(typeof i=="string"?delete e[r]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[r]))}}_addSchema(e,n,r,i=this.opts.validateSchema,l=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof e=="object")s=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let o=this._cache.get(e);if(o!==void 0)return o;r=(0,N4.normalizeId)(s||r);let u=N4.getSchemaRefs.call(this,e,r);return o=new O4.SchemaEnv({schema:e,schemaId:a,meta:n,baseId:r,localRefs:u}),this._cache.set(o.schema,o),l&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=o),i&&this.validateSchema(e,!0),o}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):O4.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let n=this.opts;this.opts=this._metaOpts;try{O4.compileSchema.call(this,e)}finally{this.opts=n}}};Oi.default=C4;C4.ValidationError=J3e.default;C4.MissingRefError=oI.default;function sI(t,e,n,r="error"){for(let i in t){let l=i;l in e&&this.logger[r](`${n}: option ${i}. ${t[l]}`)}}function aI(t){return t=(0,N4.normalizeId)(t),this.schemas[t]||this.refs[t]}function nue(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function rue(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function iue(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let n=t[e];n.keyword||(n.keyword=e),this.addKeyword(n)}}function lue(){let t={...this.opts};for(let e of Y3e)delete t[e];return t}var sue={log(){},warn(){},error(){}};function aue(t){if(t===!1)return sue;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var oue=/^[a-z_$][a-z0-9_$:-]*$/i;function uue(t,e){let{RULES:n}=this;if((0,Jm.eachItem)(t,r=>{if(n.keywords[r])throw new Error(`Keyword ${r} is already defined`);if(!oue.test(r))throw new Error(`Keyword ${r} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function Gm(t,e,n){var r;let i=e?.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:l}=this,s=i?l.post:l.rules.find(({type:o})=>o===n);if(s||(s={type:n,rules:[]},l.rules.push(s)),l.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,U8.getJSONTypes)(e.type),schemaType:(0,U8.getJSONTypes)(e.schemaType)}};e.before?cue.call(this,s,a,e.before):s.rules.push(a),l.all[t]=a,(r=e.implements)===null||r===void 0||r.forEach(o=>this.addKeyword(o))}function cue(t,e,n){let r=t.rules.findIndex(i=>i.keyword===n);r>=0?t.rules.splice(r,0,e):(t.rules.push(e),this.logger.warn(`rule ${n} is not defined`))}function pue(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=cI(e)),t.validateSchema=this.compile(e,!0))}var fue={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function cI(t){return{anyOf:[t,fue]}}});var pI=k(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});var due={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Xm.default=due});var Wm=k(C3=>{"use strict";Object.defineProperty(C3,"__esModule",{value:!0});C3.callRef=C3.getValidate=void 0;var hue=A2(),fI=Ai(),yl=st(),u1=Yl(),dI=N3(),M8=Nt(),mue={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:n,it:r}=t,{baseId:i,schemaEnv:l,validateName:s,opts:a,self:o}=r,{root:u}=l;if((n==="#"||n==="#/")&&i===u.baseId)return f();let c=dI.resolveRef.call(o,u,i,n);if(c===void 0)throw new hue.default(r.opts.uriResolver,i,n);if(c instanceof dI.SchemaEnv)return m(c);return d(c);function f(){if(l===u)return $8(t,s,l,l.$async);let y=e.scopeValue("root",{ref:u});return $8(t,(0,yl._)`${y}.validate`,u,u.$async)}function m(y){let _=hI(t,y);$8(t,_,y,y.$async)}function d(y){let _=e.scopeValue("schema",a.code.source===!0?{ref:y,code:(0,yl.stringify)(y)}:{ref:y}),S=e.name("valid"),w=t.subschema({schema:y,dataTypes:[],schemaPath:yl.nil,topSchemaRef:_,errSchemaPath:n},S);t.mergeEvaluated(w),t.ok(S)}}};function hI(t,e){let{gen:n}=t;return e.validate?n.scopeValue("validate",{ref:e.validate}):(0,yl._)`${n.scopeValue("wrapper",{ref:e})}.validate`}C3.getValidate=hI;function $8(t,e,n,r){let{gen:i,it:l}=t,{allErrors:s,schemaEnv:a,opts:o}=l,u=o.passContext?u1.default.this:yl.nil;r?c():f();function c(){if(!a.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,yl._)`await ${(0,fI.callValidateCode)(t,e,u)}`),d(e),s||i.assign(y,!0)},_=>{i.if((0,yl._)`!(${_} instanceof ${l.ValidationError})`,()=>i.throw(_)),m(_),s||i.assign(y,!1)}),t.ok(y)}function f(){t.result((0,fI.callValidateCode)(t,e,u),()=>d(e),()=>m(e))}function m(y){let _=(0,yl._)`${y}.errors`;i.assign(u1.default.vErrors,(0,yl._)`${u1.default.vErrors} === null ? ${_} : ${u1.default.vErrors}.concat(${_})`),i.assign(u1.default.errors,(0,yl._)`${u1.default.vErrors}.length`)}function d(y){var _;if(!l.opts.unevaluated)return;let S=(_=n?.validate)===null||_===void 0?void 0:_.evaluated;if(l.props!==!0)if(S&&!S.dynamicProps)S.props!==void 0&&(l.props=M8.mergeEvaluated.props(i,S.props,l.props));else{let w=i.var("props",(0,yl._)`${y}.evaluated.props`);l.props=M8.mergeEvaluated.props(i,w,l.props,yl.Name)}if(l.items!==!0)if(S&&!S.dynamicItems)S.items!==void 0&&(l.items=M8.mergeEvaluated.items(i,S.items,l.items));else{let w=i.var("items",(0,yl._)`${y}.evaluated.items`);l.items=M8.mergeEvaluated.items(i,w,l.items,yl.Name)}}}C3.callRef=$8;C3.default=mue});var mI=k(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});var yue=pI(),gue=Wm(),vue=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",yue.default,gue.default];Ym.default=vue});var yI=k(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var B8=st(),O2=B8.operators,H8={maximum:{okStr:"<=",ok:O2.LTE,fail:O2.GT},minimum:{okStr:">=",ok:O2.GTE,fail:O2.LT},exclusiveMaximum:{okStr:"<",ok:O2.LT,fail:O2.GTE},exclusiveMinimum:{okStr:">",ok:O2.GT,fail:O2.LTE}},_ue={message:({keyword:t,schemaCode:e})=>(0,B8.str)`must be ${H8[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,B8._)`{comparison: ${H8[t].okStr}, limit: ${e}}`},Eue={keyword:Object.keys(H8),type:"number",schemaType:"number",$data:!0,error:_ue,code(t){let{keyword:e,data:n,schemaCode:r}=t;t.fail$data((0,B8._)`${n} ${H8[e].fail} ${r} || isNaN(${n})`)}};Qm.default=Eue});var gI=k(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var R4=st(),bue={message:({schemaCode:t})=>(0,R4.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,R4._)`{multipleOf: ${t}}`},wue={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:bue,code(t){let{gen:e,data:n,schemaCode:r,it:i}=t,l=i.opts.multipleOfPrecision,s=e.let("res"),a=l?(0,R4._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${l}`:(0,R4._)`${s} !== parseInt(${s})`;t.fail$data((0,R4._)`(${r} === 0 || (${s} = ${n}/${r}, ${a}))`)}};Zm.default=wue});var _I=k(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});function vI(t){let e=t.length,n=0,r=0,i;for(;r=55296&&i<=56319&&r{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var R3=st(),Sue=Nt(),Tue=_I(),xue={message({keyword:t,schemaCode:e}){let n=t==="maxLength"?"more":"fewer";return(0,R3.str)`must NOT have ${n} than ${e} characters`},params:({schemaCode:t})=>(0,R3._)`{limit: ${t}}`},Aue={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:xue,code(t){let{keyword:e,data:n,schemaCode:r,it:i}=t,l=e==="maxLength"?R3.operators.GT:R3.operators.LT,s=i.opts.unicode===!1?(0,R3._)`${n}.length`:(0,R3._)`${(0,Sue.useFunc)(t.gen,Tue.default)}(${n})`;t.fail$data((0,R3._)`${s} ${l} ${r}`)}};ty.default=Aue});var bI=k(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});var Oue=Ai(),V8=st(),Nue={message:({schemaCode:t})=>(0,V8.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,V8._)`{pattern: ${t}}`},Cue={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Nue,code(t){let{data:e,$data:n,schema:r,schemaCode:i,it:l}=t,s=l.opts.unicodeRegExp?"u":"",a=n?(0,V8._)`(new RegExp(${i}, ${s}))`:(0,Oue.usePattern)(t,r);t.fail$data((0,V8._)`!${a}.test(${e})`)}};ny.default=Cue});var wI=k(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var I4=st(),Rue={message({keyword:t,schemaCode:e}){let n=t==="maxProperties"?"more":"fewer";return(0,I4.str)`must NOT have ${n} than ${e} properties`},params:({schemaCode:t})=>(0,I4._)`{limit: ${t}}`},Iue={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Rue,code(t){let{keyword:e,data:n,schemaCode:r}=t,i=e==="maxProperties"?I4.operators.GT:I4.operators.LT;t.fail$data((0,I4._)`Object.keys(${n}).length ${i} ${r}`)}};ry.default=Iue});var SI=k(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var k4=Ai(),D4=st(),kue=Nt(),Due={message:({params:{missingProperty:t}})=>(0,D4.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,D4._)`{missingProperty: ${t}}`},Pue={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Due,code(t){let{gen:e,schema:n,schemaCode:r,data:i,$data:l,it:s}=t,{opts:a}=s;if(!l&&n.length===0)return;let o=n.length>=a.loopRequired;if(s.allErrors?u():c(),a.strictRequired){let d=t.parentSchema.properties,{definedProperties:y}=t.it;for(let _ of n)if(d?.[_]===void 0&&!y.has(_)){let S=s.schemaEnv.baseId+s.errSchemaPath,w=`required property "${_}" is not defined at "${S}" (strictRequired)`;(0,kue.checkStrictMode)(s,w,s.opts.strictRequired)}}function u(){if(o||l)t.block$data(D4.nil,f);else for(let d of n)(0,k4.checkReportMissingProp)(t,d)}function c(){let d=e.let("missing");if(o||l){let y=e.let("valid",!0);t.block$data(y,()=>m(d,y)),t.ok(y)}else e.if((0,k4.checkMissingProp)(t,n,d)),(0,k4.reportMissingProp)(t,d),e.else()}function f(){e.forOf("prop",r,d=>{t.setParams({missingProperty:d}),e.if((0,k4.noPropertyInData)(e,i,d,a.ownProperties),()=>t.error())})}function m(d,y){t.setParams({missingProperty:d}),e.forOf(d,r,()=>{e.assign(y,(0,k4.propertyInData)(e,i,d,a.ownProperties)),e.if((0,D4.not)(y),()=>{t.error(),e.break()})},D4.nil)}}};iy.default=Pue});var TI=k(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var P4=st(),Lue={message({keyword:t,schemaCode:e}){let n=t==="maxItems"?"more":"fewer";return(0,P4.str)`must NOT have ${n} than ${e} items`},params:({schemaCode:t})=>(0,P4._)`{limit: ${t}}`},Fue={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Lue,code(t){let{keyword:e,data:n,schemaCode:r}=t,i=e==="maxItems"?P4.operators.GT:P4.operators.LT;t.fail$data((0,P4._)`${n}.length ${i} ${r}`)}};ly.default=Fue});var L4=k(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var xI=i1();xI.code='require("ajv/dist/runtime/equal").default';sy.default=xI});var AI=k(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var ay=w4(),Ni=st(),jue=Nt(),Uue=L4(),Mue={message:({params:{i:t,j:e}})=>(0,Ni.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Ni._)`{i: ${t}, j: ${e}}`},$ue={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Mue,code(t){let{gen:e,data:n,$data:r,schema:i,parentSchema:l,schemaCode:s,it:a}=t;if(!r&&!i)return;let o=e.let("valid"),u=l.items?(0,ay.getSchemaTypes)(l.items):[];t.block$data(o,c,(0,Ni._)`${s} === false`),t.ok(o);function c(){let y=e.let("i",(0,Ni._)`${n}.length`),_=e.let("j");t.setParams({i:y,j:_}),e.assign(o,!0),e.if((0,Ni._)`${y} > 1`,()=>(f()?m:d)(y,_))}function f(){return u.length>0&&!u.some(y=>y==="object"||y==="array")}function m(y,_){let S=e.name("item"),w=(0,ay.checkDataTypes)(u,S,a.opts.strictNumbers,ay.DataType.Wrong),E=e.const("indices",(0,Ni._)`{}`);e.for((0,Ni._)`;${y}--;`,()=>{e.let(S,(0,Ni._)`${n}[${y}]`),e.if(w,(0,Ni._)`continue`),u.length>1&&e.if((0,Ni._)`typeof ${S} == "string"`,(0,Ni._)`${S} += "_"`),e.if((0,Ni._)`typeof ${E}[${S}] == "number"`,()=>{e.assign(_,(0,Ni._)`${E}[${S}]`),t.error(),e.assign(o,!1).break()}).code((0,Ni._)`${E}[${S}] = ${y}`)})}function d(y,_){let S=(0,jue.useFunc)(e,Uue.default),w=e.name("outer");e.label(w).for((0,Ni._)`;${y}--;`,()=>e.for((0,Ni._)`${_} = ${y}; ${_}--;`,()=>e.if((0,Ni._)`${S}(${n}[${y}], ${n}[${_}])`,()=>{t.error(),e.assign(o,!1).break(w)})))}}};oy.default=$ue});var OI=k(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});var uy=st(),Bue=Nt(),Hue=L4(),Vue={message:"must be equal to constant",params:({schemaCode:t})=>(0,uy._)`{allowedValue: ${t}}`},que={keyword:"const",$data:!0,error:Vue,code(t){let{gen:e,data:n,$data:r,schemaCode:i,schema:l}=t;r||l&&typeof l=="object"?t.fail$data((0,uy._)`!${(0,Bue.useFunc)(e,Hue.default)}(${n}, ${i})`):t.fail((0,uy._)`${l} !== ${n}`)}};cy.default=que});var NI=k(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var F4=st(),zue=Nt(),Gue=L4(),Jue={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,F4._)`{allowedValues: ${t}}`},Kue={keyword:"enum",schemaType:"array",$data:!0,error:Jue,code(t){let{gen:e,data:n,$data:r,schema:i,schemaCode:l,it:s}=t;if(!r&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=s.opts.loopEnum,o,u=()=>o??(o=(0,zue.useFunc)(e,Gue.default)),c;if(a||r)c=e.let("valid"),t.block$data(c,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=e.const("vSchema",l);c=(0,F4.or)(...i.map((y,_)=>m(d,_)))}t.pass(c);function f(){e.assign(c,!1),e.forOf("v",l,d=>e.if((0,F4._)`${u()}(${n}, ${d})`,()=>e.assign(c,!0).break()))}function m(d,y){let _=i[y];return typeof _=="object"&&_!==null?(0,F4._)`${u()}(${n}, ${d}[${y}])`:(0,F4._)`${n} === ${_}`}}};py.default=Kue});var CI=k(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var Xue=yI(),Wue=gI(),Yue=EI(),Que=bI(),Zue=wI(),e1e=SI(),t1e=TI(),n1e=AI(),r1e=OI(),i1e=NI(),l1e=[Xue.default,Wue.default,Yue.default,Que.default,Zue.default,e1e.default,t1e.default,n1e.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},r1e.default,i1e.default];fy.default=l1e});var hy=k(j4=>{"use strict";Object.defineProperty(j4,"__esModule",{value:!0});j4.validateAdditionalItems=void 0;var I3=st(),dy=Nt(),s1e={message:({params:{len:t}})=>(0,I3.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,I3._)`{limit: ${t}}`},a1e={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:s1e,code(t){let{parentSchema:e,it:n}=t,{items:r}=e;if(!Array.isArray(r)){(0,dy.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}RI(t,r)}};function RI(t,e){let{gen:n,schema:r,data:i,keyword:l,it:s}=t;s.items=!0;let a=n.const("len",(0,I3._)`${i}.length`);if(r===!1)t.setParams({len:e.length}),t.pass((0,I3._)`${a} <= ${e.length}`);else if(typeof r=="object"&&!(0,dy.alwaysValidSchema)(s,r)){let u=n.var("valid",(0,I3._)`${a} <= ${e.length}`);n.if((0,I3.not)(u),()=>o(u)),t.ok(u)}function o(u){n.forRange("i",e.length,a,c=>{t.subschema({keyword:l,dataProp:c,dataPropType:dy.Type.Num},u),s.allErrors||n.if((0,I3.not)(u),()=>n.break())})}}j4.validateAdditionalItems=RI;j4.default=a1e});var my=k(U4=>{"use strict";Object.defineProperty(U4,"__esModule",{value:!0});U4.validateTuple=void 0;var II=st(),q8=Nt(),o1e=Ai(),u1e={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:n}=t;if(Array.isArray(e))return kI(t,"additionalItems",e);n.items=!0,!(0,q8.alwaysValidSchema)(n,e)&&t.ok((0,o1e.validateArray)(t))}};function kI(t,e,n=t.schema){let{gen:r,parentSchema:i,data:l,keyword:s,it:a}=t;c(i),a.opts.unevaluated&&n.length&&a.items!==!0&&(a.items=q8.mergeEvaluated.items(r,n.length,a.items));let o=r.name("valid"),u=r.const("len",(0,II._)`${l}.length`);n.forEach((f,m)=>{(0,q8.alwaysValidSchema)(a,f)||(r.if((0,II._)`${u} > ${m}`,()=>t.subschema({keyword:s,schemaProp:m,dataProp:m},o)),t.ok(o))});function c(f){let{opts:m,errSchemaPath:d}=a,y=n.length,_=y===f.minItems&&(y===f.maxItems||f[e]===!1);if(m.strictTuples&&!_){let S=`"${s}" is ${y}-tuple, but minItems or maxItems/${e} are not specified or different at path "${d}"`;(0,q8.checkStrictMode)(a,S,m.strictTuples)}}}U4.validateTuple=kI;U4.default=u1e});var DI=k(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var c1e=my(),p1e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,c1e.validateTuple)(t,"items")};yy.default=p1e});var LI=k(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var PI=st(),f1e=Nt(),d1e=Ai(),h1e=hy(),m1e={message:({params:{len:t}})=>(0,PI.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,PI._)`{limit: ${t}}`},y1e={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:m1e,code(t){let{schema:e,parentSchema:n,it:r}=t,{prefixItems:i}=n;r.items=!0,!(0,f1e.alwaysValidSchema)(r,e)&&(i?(0,h1e.validateAdditionalItems)(t,i):t.ok((0,d1e.validateArray)(t)))}};gy.default=y1e});var FI=k(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var Zl=st(),z8=Nt(),g1e={message:({params:{min:t,max:e}})=>e===void 0?(0,Zl.str)`must contain at least ${t} valid item(s)`:(0,Zl.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Zl._)`{minContains: ${t}}`:(0,Zl._)`{minContains: ${t}, maxContains: ${e}}`},v1e={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:g1e,code(t){let{gen:e,schema:n,parentSchema:r,data:i,it:l}=t,s,a,{minContains:o,maxContains:u}=r;l.opts.next?(s=o===void 0?1:o,a=u):s=1;let c=e.const("len",(0,Zl._)`${i}.length`);if(t.setParams({min:s,max:a}),a===void 0&&s===0){(0,z8.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,z8.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,z8.alwaysValidSchema)(l,n)){let _=(0,Zl._)`${c} >= ${s}`;a!==void 0&&(_=(0,Zl._)`${_} && ${c} <= ${a}`),t.pass(_);return}l.items=!0;let f=e.name("valid");a===void 0&&s===1?d(f,()=>e.if(f,()=>e.break())):s===0?(e.let(f,!0),a!==void 0&&e.if((0,Zl._)`${i}.length > 0`,m)):(e.let(f,!1),m()),t.result(f,()=>t.reset());function m(){let _=e.name("_valid"),S=e.let("count",0);d(_,()=>e.if(_,()=>y(S)))}function d(_,S){e.forRange("i",0,c,w=>{t.subschema({keyword:"contains",dataProp:w,dataPropType:z8.Type.Num,compositeRule:!0},_),S()})}function y(_){e.code((0,Zl._)`${_}++`),a===void 0?e.if((0,Zl._)`${_} >= ${s}`,()=>e.assign(f,!0).break()):(e.if((0,Zl._)`${_} > ${a}`,()=>e.assign(f,!1).break()),s===1?e.assign(f,!0):e.if((0,Zl._)`${_} >= ${s}`,()=>e.assign(f,!0)))}}};vy.default=v1e});var MI=k(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.validateSchemaDeps=Qs.validatePropertyDeps=Qs.error=void 0;var _y=st(),_1e=Nt(),M4=Ai();Qs.error={message:({params:{property:t,depsCount:e,deps:n}})=>{let r=e===1?"property":"properties";return(0,_y.str)`must have ${r} ${n} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:n,missingProperty:r}})=>(0,_y._)`{property: ${t},
missingProperty: ${r},
depsCount: ${e},
- deps: ${n}}`};var u1e={keyword:"dependencies",type:"object",schemaType:"object",error:Ys.error,code(t){let[e,n]=c1e(t);kI(t,e),DI(t,n)}};function c1e({schema:t}){let e={},n={};for(let r in t){if(r==="__proto__")continue;let i=Array.isArray(t[r])?e:n;i[r]=t[r]}return[e,n]}function kI(t,e=t.schema){let{gen:n,data:r,it:i}=t;if(Object.keys(e).length===0)return;let l=n.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let o=(0,j4.propertyInData)(n,r,s,i.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?n.if(o,()=>{for(let u of a)(0,j4.checkReportMissingProp)(t,u)}):(n.if((0,yy._)`${o} && (${(0,j4.checkMissingProp)(t,a,l)})`),(0,j4.reportMissingProp)(t,l),n.else())}}Ys.validatePropertyDeps=kI;function DI(t,e=t.schema){let{gen:n,data:r,keyword:i,it:l}=t,s=n.name("valid");for(let a in e)(0,o1e.alwaysValidSchema)(l,e[a])||(n.if((0,j4.propertyInData)(n,r,a,l.opts.ownProperties),()=>{let o=t.subschema({keyword:i,schemaProp:a},s);t.mergeValidEvaluated(o,s)},()=>n.var(s,!0)),t.ok(s))}Ys.validateSchemaDeps=DI;Ys.default=u1e});var FI=k(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var LI=st(),p1e=Nt(),f1e={message:"property name must be valid",params:({params:t})=>(0,LI._)`{propertyName: ${t.propertyName}}`},d1e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:f1e,code(t){let{gen:e,schema:n,data:r,it:i}=t;if((0,p1e.alwaysValidSchema)(i,n))return;let l=e.name("valid");e.forIn("key",r,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},l),e.if((0,LI.not)(l),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(l)}};gy.default=d1e});var _y=k(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var q8=Si(),bs=st(),h1e=Wl(),z8=Nt(),m1e={message:"must NOT have additional properties",params:({params:t})=>(0,bs._)`{additionalProperty: ${t.additionalProperty}}`},y1e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:m1e,code(t){let{gen:e,schema:n,parentSchema:r,data:i,errsCount:l,it:s}=t;if(!l)throw new Error("ajv implementation error");let{allErrors:a,opts:o}=s;if(s.props=!0,o.removeAdditional!=="all"&&(0,z8.alwaysValidSchema)(s,n))return;let u=(0,q8.allSchemaProperties)(r.properties),c=(0,q8.allSchemaProperties)(r.patternProperties);f(),t.ok((0,bs._)`${l} === ${h1e.default.errors}`);function f(){e.forIn("key",i,S=>{!u.length&&!c.length?y(S):e.if(m(S),()=>y(S))})}function m(S){let w;if(u.length>8){let E=(0,z8.schemaRefOrVal)(s,r.properties,"properties");w=(0,q8.isOwnProperty)(e,E,S)}else u.length?w=(0,bs.or)(...u.map(E=>(0,bs._)`${S} === ${E}`)):w=bs.nil;return c.length&&(w=(0,bs.or)(w,...c.map(E=>(0,bs._)`${(0,q8.usePattern)(t,E)}.test(${S})`))),(0,bs.not)(w)}function d(S){e.code((0,bs._)`delete ${i}[${S}]`)}function y(S){if(o.removeAdditional==="all"||o.removeAdditional&&n===!1){d(S);return}if(n===!1){t.setParams({additionalProperty:S}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,z8.alwaysValidSchema)(s,n)){let w=e.name("valid");o.removeAdditional==="failing"?(_(S,w,!1),e.if((0,bs.not)(w),()=>{t.reset(),d(S)})):(_(S,w),a||e.if((0,bs.not)(w),()=>e.break()))}}function _(S,w,E){let g={keyword:"additionalProperties",dataProp:S,dataPropType:z8.Type.Str};E===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(g,w)}}};vy.default=y1e});var MI=k(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var g1e=r1(),jI=Si(),Ey=Nt(),UI=_y(),v1e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:r,data:i,it:l}=t;l.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&UI.default.code(new g1e.KeywordCxt(l,UI.default,"additionalProperties"));let s=(0,jI.allSchemaProperties)(n);for(let f of s)l.definedProperties.add(f);l.opts.unevaluated&&s.length&&l.props!==!0&&(l.props=Ey.mergeEvaluated.props(e,(0,Ey.toHash)(s),l.props));let a=s.filter(f=>!(0,Ey.alwaysValidSchema)(l,n[f]));if(a.length===0)return;let o=e.name("valid");for(let f of a)u(f)?c(f):(e.if((0,jI.propertyInData)(e,i,f,l.opts.ownProperties)),c(f),l.allErrors||e.else().var(o,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(o);function u(f){return l.opts.useDefaults&&!l.compositeRule&&n[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},o)}}};by.default=v1e});var VI=k(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var $I=Si(),G8=st(),BI=Nt(),HI=Nt(),_1e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:r,parentSchema:i,it:l}=t,{opts:s}=l,a=(0,$I.allSchemaProperties)(n),o=a.filter(_=>(0,BI.alwaysValidSchema)(l,n[_]));if(a.length===0||o.length===a.length&&(!l.opts.unevaluated||l.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&i.properties,c=e.name("valid");l.props!==!0&&!(l.props instanceof G8.Name)&&(l.props=(0,HI.evaluatedPropsToName)(e,l.props));let{props:f}=l;m();function m(){for(let _ of a)u&&d(_),l.allErrors?y(_):(e.var(c,!0),y(_),e.if(c))}function d(_){for(let S in u)new RegExp(_).test(S)&&(0,BI.checkStrictMode)(l,`property ${S} matches pattern ${_} (use allowMatchingProperties)`)}function y(_){e.forIn("key",r,S=>{e.if((0,G8._)`${(0,$I.usePattern)(t,_)}.test(${S})`,()=>{let w=o.includes(_);w||t.subschema({keyword:"patternProperties",schemaProp:_,dataProp:S,dataPropType:HI.Type.Str},c),l.opts.unevaluated&&f!==!0?e.assign((0,G8._)`${f}[${S}]`,!0):!w&&!l.allErrors&&e.if((0,G8.not)(c),()=>e.break())})})}}};wy.default=_1e});var qI=k(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var E1e=Nt(),b1e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:n,it:r}=t;if((0,E1e.alwaysValidSchema)(r,n)){t.fail();return}let i=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Sy.default=b1e});var zI=k(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var w1e=Si(),S1e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:w1e.validateUnion,error:{message:"must match a schema in anyOf"}};Ty.default=S1e});var GI=k(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var J8=st(),T1e=Nt(),x1e={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,J8._)`{passingSchemas: ${t.passing}}`},A1e={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:x1e,code(t){let{gen:e,schema:n,parentSchema:r,it:i}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(i.opts.discriminator&&r.discriminator)return;let l=n,s=e.let("valid",!1),a=e.let("passing",null),o=e.name("_valid");t.setParams({passing:a}),e.block(u),t.result(s,()=>t.reset(),()=>t.error(!0));function u(){l.forEach((c,f)=>{let m;(0,T1e.alwaysValidSchema)(i,c)?e.var(o,!0):m=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},o),f>0&&e.if((0,J8._)`${o} && ${s}`).assign(s,!1).assign(a,(0,J8._)`[${a}, ${f}]`).else(),e.if(o,()=>{e.assign(s,!0),e.assign(a,f),m&&t.mergeEvaluated(m,J8.Name)})})}}};xy.default=A1e});var JI=k(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var O1e=Nt(),N1e={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:n,it:r}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");let i=e.name("valid");n.forEach((l,s)=>{if((0,O1e.alwaysValidSchema)(r,l))return;let a=t.subschema({keyword:"allOf",schemaProp:s},i);t.ok(i),t.mergeEvaluated(a)})}};Ay.default=N1e});var WI=k(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var K8=st(),XI=Nt(),C1e={message:({params:t})=>(0,K8.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,K8._)`{failingKeyword: ${t.ifClause}}`},R1e={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:C1e,code(t){let{gen:e,parentSchema:n,it:r}=t;n.then===void 0&&n.else===void 0&&(0,XI.checkStrictMode)(r,'"if" without "then" and "else" is ignored');let i=KI(r,"then"),l=KI(r,"else");if(!i&&!l)return;let s=e.let("valid",!0),a=e.name("_valid");if(o(),t.reset(),i&&l){let c=e.let("ifClause");t.setParams({ifClause:c}),e.if(a,u("then",c),u("else",c))}else i?e.if(a,u("then")):e.if((0,K8.not)(a),u("else"));t.pass(s,()=>t.error(!0));function o(){let c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(c)}function u(c,f){return()=>{let m=t.subschema({keyword:c},a);e.assign(s,a),t.mergeValidEvaluated(m,s),f?e.assign(f,(0,K8._)`${c}`):t.setParams({ifClause:c})}}}};function KI(t,e){let n=t.schema[e];return n!==void 0&&!(0,XI.alwaysValidSchema)(t,n)}Oy.default=R1e});var YI=k(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var I1e=Nt(),k1e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:n}){e.if===void 0&&(0,I1e.checkStrictMode)(n,`"${t}" without "if" is ignored`)}};Ny.default=k1e});var QI=k(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var D1e=py(),P1e=NI(),L1e=fy(),F1e=RI(),j1e=II(),U1e=PI(),M1e=FI(),$1e=_y(),B1e=MI(),H1e=VI(),V1e=qI(),q1e=zI(),z1e=GI(),G1e=JI(),J1e=WI(),K1e=YI();function X1e(t=!1){let e=[V1e.default,q1e.default,z1e.default,G1e.default,J1e.default,K1e.default,M1e.default,$1e.default,U1e.default,B1e.default,H1e.default];return t?e.push(P1e.default,F1e.default):e.push(D1e.default,L1e.default),e.push(j1e.default),e}Cy.default=X1e});var ZI=k(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var Lr=st(),W1e={message:({schemaCode:t})=>(0,Lr.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Lr._)`{format: ${t}}`},Y1e={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:W1e,code(t,e){let{gen:n,data:r,$data:i,schema:l,schemaCode:s,it:a}=t,{opts:o,errSchemaPath:u,schemaEnv:c,self:f}=a;if(!o.validateFormats)return;i?m():d();function m(){let y=n.scopeValue("formats",{ref:f.formats,code:o.code.formats}),_=n.const("fDef",(0,Lr._)`${y}[${s}]`),S=n.let("fType"),w=n.let("format");n.if((0,Lr._)`typeof ${_} == "object" && !(${_} instanceof RegExp)`,()=>n.assign(S,(0,Lr._)`${_}.type || "string"`).assign(w,(0,Lr._)`${_}.validate`),()=>n.assign(S,(0,Lr._)`"string"`).assign(w,_)),t.fail$data((0,Lr.or)(E(),g()));function E(){return o.strictSchema===!1?Lr.nil:(0,Lr._)`${s} && !${w}`}function g(){let v=c.$async?(0,Lr._)`(${_}.async ? await ${w}(${r}) : ${w}(${r}))`:(0,Lr._)`${w}(${r})`,x=(0,Lr._)`(typeof ${w} == "function" ? ${v} : ${w}.test(${r}))`;return(0,Lr._)`${w} && ${w} !== true && ${S} === ${e} && !${x}`}}function d(){let y=f.formats[l];if(!y){E();return}if(y===!0)return;let[_,S,w]=g(y);_===e&&t.pass(v());function E(){if(o.strictSchema===!1){f.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${l}" ignored in schema at path "${u}"`}}function g(x){let O=x instanceof RegExp?(0,Lr.regexpCode)(x):o.code.formats?(0,Lr._)`${o.code.formats}${(0,Lr.getProperty)(l)}`:void 0,N=n.scopeValue("formats",{key:l,ref:x,code:O});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,Lr._)`${N}.validate`]:["string",x,N]}function v(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!c.$async)throw new Error("async format in sync schema");return(0,Lr._)`await ${w}(${r})`}return typeof S=="function"?(0,Lr._)`${w}(${r})`:(0,Lr._)`${w}.test(${r})`}}}};Ry.default=Y1e});var ek=k(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var Q1e=ZI(),Z1e=[Q1e.default];Iy.default=Z1e});var tk=k(a1=>{"use strict";Object.defineProperty(a1,"__esModule",{value:!0});a1.contentVocabulary=a1.metadataVocabulary=void 0;a1.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];a1.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var rk=k(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var e0e=cI(),t0e=TI(),n0e=QI(),r0e=ek(),nk=tk(),i0e=[e0e.default,t0e.default,(0,n0e.default)(),r0e.default,nk.metadataVocabulary,nk.contentVocabulary];ky.default=i0e});var Dy=k(U4=>{"use strict";Object.defineProperty(U4,"__esModule",{value:!0});U4.DiscrError=void 0;var l0e;(function(t){t.Tag="tag",t.Mapping="mapping"})(l0e=U4.DiscrError||(U4.DiscrError={}))});var lk=k(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var o1=st(),Py=Dy(),ik=xo(),s0e=Nt(),a0e={message:({params:{discrError:t,tagName:e}})=>t===Py.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:n}})=>(0,o1._)`{error: ${t}, tag: ${n}, tagValue: ${e}}`},o0e={keyword:"discriminator",type:"object",schemaType:"object",error:a0e,code(t){let{gen:e,data:n,schema:r,parentSchema:i,it:l}=t,{oneOf:s}=i;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=r.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let o=e.let("valid",!1),u=e.const("tag",(0,o1._)`${n}${(0,o1.getProperty)(a)}`);e.if((0,o1._)`typeof ${u} == "string"`,()=>c(),()=>t.error(!1,{discrError:Py.DiscrError.Tag,tag:u,tagName:a})),t.ok(o);function c(){let d=m();e.if(!1);for(let y in d)e.elseIf((0,o1._)`${u} === ${y}`),e.assign(o,f(d[y]));e.else(),t.error(!1,{discrError:Py.DiscrError.Mapping,tag:u,tagName:a}),e.endIf()}function f(d){let y=e.name("valid"),_=t.subschema({keyword:"oneOf",schemaProp:d},y);return t.mergeEvaluated(_,o1.Name),y}function m(){var d;let y={},_=w(i),S=!0;for(let v=0;v{u0e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Y8=k((gr,ok)=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.MissingRefError=gr.ValidationError=gr.CodeGen=gr.Name=gr.nil=gr.stringify=gr.str=gr._=gr.KeywordCxt=void 0;var c0e=zm(),p0e=rk(),f0e=lk(),ak=sk(),d0e=["/properties"],X8="http://json-schema.org/draft-07/schema",W8=class extends c0e.default{_addVocabularies(){super._addVocabularies(),p0e.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(f0e.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(ak,d0e):ak;this.addMetaSchema(e,X8,!1),this.refs["http://json-schema.org/schema"]=X8}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(X8)?X8:void 0)}};ok.exports=gr=W8;Object.defineProperty(gr,"__esModule",{value:!0});gr.default=W8;var h0e=r1();Object.defineProperty(gr,"KeywordCxt",{enumerable:!0,get:function(){return h0e.KeywordCxt}});var u1=st();Object.defineProperty(gr,"_",{enumerable:!0,get:function(){return u1._}});Object.defineProperty(gr,"str",{enumerable:!0,get:function(){return u1.str}});Object.defineProperty(gr,"stringify",{enumerable:!0,get:function(){return u1.stringify}});Object.defineProperty(gr,"nil",{enumerable:!0,get:function(){return u1.nil}});Object.defineProperty(gr,"Name",{enumerable:!0,get:function(){return u1.Name}});Object.defineProperty(gr,"CodeGen",{enumerable:!0,get:function(){return u1.CodeGen}});var m0e=T4();Object.defineProperty(gr,"ValidationError",{enumerable:!0,get:function(){return m0e.default}});var y0e=x2();Object.defineProperty(gr,"MissingRefError",{enumerable:!0,get:function(){return y0e.default}})});var ck=k((JCe,uk)=>{"use strict";var g0e={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};uk.exports={HEX:g0e}});var vk=k((KCe,gk)=>{"use strict";var{HEX:v0e}=ck();function hk(t){if(yk(t,".")<3)return{host:t,isIPV4:!1};let e=t.match(/^(\b[01]?\d{1,2}|\b2[0-4]\d|\b25[0-5])(\.([01]?\d{1,2}|2[0-4]\d|25[0-5])){3}$/u)||[],[n]=e;return n?{host:E0e(n,"."),isIPV4:!0}:{host:t,isIPV4:!1}}function Fy(t){let e="",n=!0;for(let r of t){if(r!=="0"&&n===!0&&(n=!1),v0e[r]===void 0)return;n||(e+=r)}return e}function _0e(t){let e=0,n={error:!1,address:"",zone:""},r=[],i=[],l=!1,s=!1,a=!1;function o(){if(i.length){if(l===!1){let u=Fy(i.join(""));if(u!==void 0)r.push(u);else return n.error=!0,!1}i.length=0}return!0}for(let u=0;u7){n.error=!0;break}u-1>=0&&t[u-1]===":"&&(s=!0);continue}else if(c==="%"){if(!o())break;l=!0}else{i.push(c);continue}}return i.length&&(l?n.zone=i.join(""):a?r.push(i.join("")):r.push(Fy(i.join("")))),n.address=r.join(""),n}function mk(t,e={}){if(yk(t,":")<2)return{host:t,isIPV6:!1};let n=_0e(t);if(n.error)return{host:t,isIPV6:!1};{let r=n.address,i=n.address;return n.zone&&(r+="%"+n.zone,i+="%25"+n.zone),{host:r,escapedHost:i,isIPV6:!0}}}function E0e(t,e){let n="",r=!0,i=t.length;for(let l=0;l{"use strict";var x0e=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,A0e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function _k(t){return typeof t.secure=="boolean"?t.secure:String(t.scheme).toLowerCase()==="wss"}function Ek(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function bk(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function O0e(t){return t.secure=_k(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function N0e(t){if((t.port===(_k(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,n]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=n,t.resourceName=void 0}return t.fragment=void 0,t}function C0e(t,e){if(!t.path)return t.error="URN can not be parsed",t;let n=t.path.match(A0e);if(n){let r=e.scheme||t.scheme||"urn";t.nid=n[1].toLowerCase(),t.nss=n[2];let i=`${r}:${e.nid||t.nid}`,l=jy[i];t.path=void 0,l&&(t=l.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function R0e(t,e){let n=e.scheme||t.scheme||"urn",r=t.nid.toLowerCase(),i=`${n}:${e.nid||r}`,l=jy[i];l&&(t=l.serialize(t,e));let s=t,a=t.nss;return s.path=`${r||e.nid}:${a}`,e.skipEscape=!0,s}function I0e(t,e){let n=t;return n.uuid=n.nss,n.nss=void 0,!e.tolerant&&(!n.uuid||!x0e.test(n.uuid))&&(n.error=n.error||"UUID is not valid."),n}function k0e(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var wk={scheme:"http",domainHost:!0,parse:Ek,serialize:bk},D0e={scheme:"https",domainHost:wk.domainHost,parse:Ek,serialize:bk},Q8={scheme:"ws",domainHost:!0,parse:O0e,serialize:N0e},P0e={scheme:"wss",domainHost:Q8.domainHost,parse:Q8.parse,serialize:Q8.serialize},L0e={scheme:"urn",parse:C0e,serialize:R0e,skipNormalize:!0},F0e={scheme:"urn:uuid",parse:I0e,serialize:k0e,skipNormalize:!0},jy={http:wk,https:D0e,ws:Q8,wss:P0e,urn:L0e,"urn:uuid":F0e};Sk.exports=jy});var My=k((WCe,e9)=>{"use strict";var j0e=require("node:url"),{normalizeIPv6:U0e,normalizeIPv4:M0e,removeDotSegments:M4,recomposeAuthority:$0e,normalizeComponentEncoding:Z8}=vk(),xk=Tk();function B0e(t,e){return typeof t=="string"?t=Qs($a(t,e),e):typeof t=="object"&&(t=$a(Qs(t,e),e)),t}function H0e(t,e,n){let r=Object.assign({scheme:"null"},n),i=Ak($a(t,r),$a(e,r),r,!0);return Qs(i,{...r,skipEscape:!0})}function Ak(t,e,n,r){let i={};return r||(t=$a(Qs(t,n),n),e=$a(Qs(e,n),n)),n=n||{},!n.tolerant&&e.scheme?(i.scheme=e.scheme,i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=M4(e.path||""),i.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=M4(e.path||""),i.query=e.query):(e.path?(e.path.charAt(0)==="/"?i.path=M4(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?i.path="/"+e.path:t.path?i.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:i.path=e.path,i.path=M4(i.path)),i.query=e.query):(i.path=t.path,e.query!==void 0?i.query=e.query:i.query=t.query),i.userinfo=t.userinfo,i.host=t.host,i.port=t.port),i.scheme=t.scheme),i.fragment=e.fragment,i}function V0e(t,e,n){return typeof t=="string"?(t=unescape(t),t=Qs(Z8($a(t,n),!0),{...n,skipEscape:!0})):typeof t=="object"&&(t=Qs(Z8(t,!0),{...n,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=Qs(Z8($a(e,n),!0),{...n,skipEscape:!0})):typeof e=="object"&&(e=Qs(Z8(e,!0),{...n,skipEscape:!0})),t.toLowerCase()===e.toLowerCase()}function Qs(t,e){let n={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},r=Object.assign({},e),i=[],l=xk[(r.scheme||n.scheme||"").toLowerCase()];l&&l.serialize&&l.serialize(n,r),n.path!==void 0&&(r.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),n.scheme!==void 0&&(n.path=n.path.split("%3A").join(":")))),r.reference!=="suffix"&&n.scheme&&(i.push(n.scheme),i.push(":"));let s=$0e(n,r);if(s!==void 0&&(r.reference!=="suffix"&&i.push("//"),i.push(s),n.path&&n.path.charAt(0)!=="/"&&i.push("/")),n.path!==void 0){let a=n.path;!r.absolutePath&&(!l||!l.absolutePath)&&(a=M4(a)),s===void 0&&(a=a.replace(/^\/\//u,"/%2F")),i.push(a)}return n.query!==void 0&&(i.push("?"),i.push(n.query)),n.fragment!==void 0&&(i.push("#"),i.push(n.fragment)),i.join("")}var q0e=Array.from({length:127},(t,e)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function z0e(t){let e=0;for(let n=0,r=t.length;n126||q0e[e])return!0;return!1}var G0e=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function $a(t,e){let n=Object.assign({},e),r={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=t.indexOf("%")!==-1;n.reference==="suffix"&&(t=(n.scheme?n.scheme+":":"")+"//"+t);let l=t.match(G0e);if(l){if(r.scheme=l[1],r.userinfo=l[3],r.host=l[4],r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=l[7],r.fragment=l[8],isNaN(r.port)&&(r.port=l[5]),r.host){let a=M0e(r.host);a.isIPV4===!1?r.host=U0e(a.host,{isIPV4:!1}).host.toLowerCase():r.host=a.host}r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&!r.path&&r.query===void 0?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==r.reference&&(r.error=r.error||"URI is not a "+n.reference+" reference.");let s=xk[(n.scheme||r.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!s||!s.unicodeSupport)&&r.host&&(n.domainHost||s&&s.domainHost)&&z0e(r.host))try{r.host=j0e.domainToASCII(r.host.toLowerCase())}catch(a){r.error=r.error||"Host's domain name can not be converted to ASCII: "+a}(!s||s&&!s.skipNormalize)&&(i&&r.scheme!==void 0&&(r.scheme=unescape(r.scheme)),i&&r.userinfo!==void 0&&(r.userinfo=unescape(r.userinfo)),i&&r.host!==void 0&&(r.host=unescape(r.host)),r.path!==void 0&&r.path.length&&(r.path=encodeURI(r.path)),r.fragment!==void 0&&r.fragment.length&&(r.fragment=encodeURI(decodeURI(r.fragment)))),s&&s.parse&&s.parse(r,n)}else r.error=r.error||"URI can not be parsed.";return r}var Uy={normalize:B0e,resolve:H0e,resolveComponents:Ak,equal:V0e,serialize:Qs,parse:$a};e9.exports=Uy;e9.exports.default=Uy;e9.exports.fastUri=Uy});var t9=k(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.formatNames=Zs.fastFormats=Zs.fullFormats=void 0;function c1(t,e){return{validate:t,compare:e}}Zs.fullFormats={date:c1(Ck,Hy),time:c1(Rk,Vy),"date-time":c1(W0e,Ik),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Z0e,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:s4e,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:e4e,int32:{type:"number",validate:r4e},int64:{type:"number",validate:i4e},float:{type:"number",validate:Nk},double:{type:"number",validate:Nk},password:!0,binary:!0};Zs.fastFormats={...Zs.fullFormats,date:c1(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Hy),time:c1(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Vy),"date-time":c1(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Ik),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Zs.formatNames=Object.keys(Zs.fullFormats);function J0e(t){return t%4===0&&(t%100!==0||t%400===0)}var K0e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,X0e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Ck(t){let e=K0e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],i=+e[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&J0e(n)?29:X0e[r])}function Hy(t,e){if(t&&e)return t>e?1:te?1:t=t4e}function i4e(t){return Number.isInteger(t)}function Nk(){return!0}var l4e=/[^\\]\\Z/;function s4e(t){if(l4e.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var kk=k(p1=>{"use strict";Object.defineProperty(p1,"__esModule",{value:!0});p1.formatLimitDefinition=void 0;var a4e=Y8(),ws=st(),O2=ws.operators,n9={formatMaximum:{okStr:"<=",ok:O2.LTE,fail:O2.GT},formatMinimum:{okStr:">=",ok:O2.GTE,fail:O2.LT},formatExclusiveMaximum:{okStr:"<",ok:O2.LT,fail:O2.GTE},formatExclusiveMinimum:{okStr:">",ok:O2.GT,fail:O2.LTE}},o4e={message:({keyword:t,schemaCode:e})=>ws.str`should be ${n9[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>ws._`{comparison: ${n9[t].okStr}, limit: ${e}}`};p1.formatLimitDefinition={keyword:Object.keys(n9),type:"string",schemaType:"string",$data:!0,error:o4e,code(t){let{gen:e,data:n,schemaCode:r,keyword:i,it:l}=t,{opts:s,self:a}=l;if(!s.validateFormats)return;let o=new a4e.KeywordCxt(l,a.RULES.all.format.definition,"format");o.$data?u():c();function u(){let m=e.scopeValue("formats",{ref:a.formats,code:s.code.formats}),d=e.const("fmt",ws._`${m}[${o.schemaCode}]`);t.fail$data(ws.or(ws._`typeof ${d} != "object"`,ws._`${d} instanceof RegExp`,ws._`typeof ${d}.compare != "function"`,f(d)))}function c(){let m=o.schema,d=a.formats[m];if(!d||d===!0)return;if(typeof d!="object"||d instanceof RegExp||typeof d.compare!="function")throw new Error(`"${i}": format "${m}" does not define "compare" function`);let y=e.scopeValue("formats",{key:m,ref:d,code:s.code.formats?ws._`${s.code.formats}${ws.getProperty(m)}`:void 0});t.fail$data(f(y))}function f(m){return ws._`${m}.compare(${n}, ${r}) ${n9[i].fail} 0`}},dependencies:["format"]};var u4e=t=>(t.addKeyword(p1.formatLimitDefinition),t);p1.default=u4e});var Gy=k(($4,Lk)=>{"use strict";Object.defineProperty($4,"__esModule",{value:!0});var f1=t9(),c4e=kk(),qy=st(),Dk=new qy.Name("fullFormats"),p4e=new qy.Name("fastFormats"),zy=(t,e={keywords:!0})=>{if(Array.isArray(e))return Pk(t,e,f1.fullFormats,Dk),t;let[n,r]=e.mode==="fast"?[f1.fastFormats,p4e]:[f1.fullFormats,Dk],i=e.formats||f1.formatNames;return Pk(t,i,n,r),e.keywords&&c4e.default(t),t};zy.get=(t,e="full")=>{let r=(e==="fast"?f1.fastFormats:f1.fullFormats)[t];if(!r)throw new Error(`Unknown format "${t}"`);return r};function Pk(t,e,n,r){var i,l;(i=(l=t.opts.code).formats)!==null&&i!==void 0||(l.formats=qy._`require("ajv-formats/dist/formats").${r}`);for(let s of e)t.addFormat(s,n[s])}Lk.exports=$4=zy;Object.defineProperty($4,"__esModule",{value:!0});$4.default=zy});var Ky=k((ZCe,Fk)=>{"use strict";var f4e=Y8(),d4e=My(),h4e=Gy(),m4e=u4()({proto:!0}),Jy=class t{constructor(e){this.ajv=new f4e({...e,strictSchema:!1,validateSchema:!1,allowUnionTypes:!0,uriResolver:d4e}),h4e(this.ajv),this.ajv.addKeyword({keyword:"fjs_type",type:"object",errors:!1,validate:(n,r)=>r instanceof Date}),this._ajvSchemas={},this._ajvOptions=e||{}}addSchema(e,n){let r=e.$id||n;if(e.$id!==void 0&&e.$id[0]==="#"&&(r=n+e.$id),this.ajv.refs[r]===void 0&&this.ajv.schemas[r]===void 0){let i=m4e(e);this.convertSchemaToAjvFormat(i),this.ajv.addSchema(i,r),this._ajvSchemas[r]=e}}validate(e,n){return this.ajv.validate(e,n)}convertSchemaToAjvFormat(e){if(e!==null){e.type==="string"?(e.fjs_type="string",e.type=["string","object"]):Array.isArray(e.type)&&e.type.includes("string")&&!e.type.includes("object")&&(e.fjs_type="string",e.type.push("object"));for(let n in e)typeof e[n]=="object"&&this.convertSchemaToAjvFormat(e[n])}}getState(){return{ajvOptions:this._ajvOptions,ajvSchemas:this._ajvSchemas}}static restoreFromState(e){let n=new t(e.ajvOptions);for(let[r,i]of Object.entries(e.ajvSchemas))n.ajv.addSchema(i,r);return n}};Fk.exports=Jy});var Wy=k((eRe,Xy)=>{"use strict";function y4e(t,e,n,r){let i="";return e.validatorSchemasIds.size>0?(i+=`const validatorState = ${JSON.stringify(r.getState())}
+ deps: ${n}}`};var E1e={keyword:"dependencies",type:"object",schemaType:"object",error:Qs.error,code(t){let[e,n]=b1e(t);jI(t,e),UI(t,n)}};function b1e({schema:t}){let e={},n={};for(let r in t){if(r==="__proto__")continue;let i=Array.isArray(t[r])?e:n;i[r]=t[r]}return[e,n]}function jI(t,e=t.schema){let{gen:n,data:r,it:i}=t;if(Object.keys(e).length===0)return;let l=n.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let o=(0,M4.propertyInData)(n,r,s,i.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?n.if(o,()=>{for(let u of a)(0,M4.checkReportMissingProp)(t,u)}):(n.if((0,_y._)`${o} && (${(0,M4.checkMissingProp)(t,a,l)})`),(0,M4.reportMissingProp)(t,l),n.else())}}Qs.validatePropertyDeps=jI;function UI(t,e=t.schema){let{gen:n,data:r,keyword:i,it:l}=t,s=n.name("valid");for(let a in e)(0,_1e.alwaysValidSchema)(l,e[a])||(n.if((0,M4.propertyInData)(n,r,a,l.opts.ownProperties),()=>{let o=t.subschema({keyword:i,schemaProp:a},s);t.mergeValidEvaluated(o,s)},()=>n.var(s,!0)),t.ok(s))}Qs.validateSchemaDeps=UI;Qs.default=E1e});var BI=k(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var $I=st(),w1e=Nt(),S1e={message:"property name must be valid",params:({params:t})=>(0,$I._)`{propertyName: ${t.propertyName}}`},T1e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:S1e,code(t){let{gen:e,schema:n,data:r,it:i}=t;if((0,w1e.alwaysValidSchema)(i,n))return;let l=e.name("valid");e.forIn("key",r,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},l),e.if((0,$I.not)(l),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(l)}};Ey.default=T1e});var wy=k(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var G8=Ai(),ws=st(),x1e=Yl(),J8=Nt(),A1e={message:"must NOT have additional properties",params:({params:t})=>(0,ws._)`{additionalProperty: ${t.additionalProperty}}`},O1e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:A1e,code(t){let{gen:e,schema:n,parentSchema:r,data:i,errsCount:l,it:s}=t;if(!l)throw new Error("ajv implementation error");let{allErrors:a,opts:o}=s;if(s.props=!0,o.removeAdditional!=="all"&&(0,J8.alwaysValidSchema)(s,n))return;let u=(0,G8.allSchemaProperties)(r.properties),c=(0,G8.allSchemaProperties)(r.patternProperties);f(),t.ok((0,ws._)`${l} === ${x1e.default.errors}`);function f(){e.forIn("key",i,S=>{!u.length&&!c.length?y(S):e.if(m(S),()=>y(S))})}function m(S){let w;if(u.length>8){let E=(0,J8.schemaRefOrVal)(s,r.properties,"properties");w=(0,G8.isOwnProperty)(e,E,S)}else u.length?w=(0,ws.or)(...u.map(E=>(0,ws._)`${S} === ${E}`)):w=ws.nil;return c.length&&(w=(0,ws.or)(w,...c.map(E=>(0,ws._)`${(0,G8.usePattern)(t,E)}.test(${S})`))),(0,ws.not)(w)}function d(S){e.code((0,ws._)`delete ${i}[${S}]`)}function y(S){if(o.removeAdditional==="all"||o.removeAdditional&&n===!1){d(S);return}if(n===!1){t.setParams({additionalProperty:S}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,J8.alwaysValidSchema)(s,n)){let w=e.name("valid");o.removeAdditional==="failing"?(_(S,w,!1),e.if((0,ws.not)(w),()=>{t.reset(),d(S)})):(_(S,w),a||e.if((0,ws.not)(w),()=>e.break()))}}function _(S,w,E){let g={keyword:"additionalProperties",dataProp:S,dataPropType:J8.Type.Str};E===!1&&Object.assign(g,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(g,w)}}};by.default=O1e});var qI=k(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var N1e=s1(),HI=Ai(),Sy=Nt(),VI=wy(),C1e={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:r,data:i,it:l}=t;l.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&VI.default.code(new N1e.KeywordCxt(l,VI.default,"additionalProperties"));let s=(0,HI.allSchemaProperties)(n);for(let f of s)l.definedProperties.add(f);l.opts.unevaluated&&s.length&&l.props!==!0&&(l.props=Sy.mergeEvaluated.props(e,(0,Sy.toHash)(s),l.props));let a=s.filter(f=>!(0,Sy.alwaysValidSchema)(l,n[f]));if(a.length===0)return;let o=e.name("valid");for(let f of a)u(f)?c(f):(e.if((0,HI.propertyInData)(e,i,f,l.opts.ownProperties)),c(f),l.allErrors||e.else().var(o,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(o);function u(f){return l.opts.useDefaults&&!l.compositeRule&&n[f].default!==void 0}function c(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},o)}}};Ty.default=C1e});var KI=k(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var zI=Ai(),K8=st(),GI=Nt(),JI=Nt(),R1e={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:r,parentSchema:i,it:l}=t,{opts:s}=l,a=(0,zI.allSchemaProperties)(n),o=a.filter(_=>(0,GI.alwaysValidSchema)(l,n[_]));if(a.length===0||o.length===a.length&&(!l.opts.unevaluated||l.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&i.properties,c=e.name("valid");l.props!==!0&&!(l.props instanceof K8.Name)&&(l.props=(0,JI.evaluatedPropsToName)(e,l.props));let{props:f}=l;m();function m(){for(let _ of a)u&&d(_),l.allErrors?y(_):(e.var(c,!0),y(_),e.if(c))}function d(_){for(let S in u)new RegExp(_).test(S)&&(0,GI.checkStrictMode)(l,`property ${S} matches pattern ${_} (use allowMatchingProperties)`)}function y(_){e.forIn("key",r,S=>{e.if((0,K8._)`${(0,zI.usePattern)(t,_)}.test(${S})`,()=>{let w=o.includes(_);w||t.subschema({keyword:"patternProperties",schemaProp:_,dataProp:S,dataPropType:JI.Type.Str},c),l.opts.unevaluated&&f!==!0?e.assign((0,K8._)`${f}[${S}]`,!0):!w&&!l.allErrors&&e.if((0,K8.not)(c),()=>e.break())})})}}};xy.default=R1e});var XI=k(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var I1e=Nt(),k1e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:n,it:r}=t;if((0,I1e.alwaysValidSchema)(r,n)){t.fail();return}let i=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Ay.default=k1e});var WI=k(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var D1e=Ai(),P1e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:D1e.validateUnion,error:{message:"must match a schema in anyOf"}};Oy.default=P1e});var YI=k(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var X8=st(),L1e=Nt(),F1e={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,X8._)`{passingSchemas: ${t.passing}}`},j1e={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:F1e,code(t){let{gen:e,schema:n,parentSchema:r,it:i}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(i.opts.discriminator&&r.discriminator)return;let l=n,s=e.let("valid",!1),a=e.let("passing",null),o=e.name("_valid");t.setParams({passing:a}),e.block(u),t.result(s,()=>t.reset(),()=>t.error(!0));function u(){l.forEach((c,f)=>{let m;(0,L1e.alwaysValidSchema)(i,c)?e.var(o,!0):m=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},o),f>0&&e.if((0,X8._)`${o} && ${s}`).assign(s,!1).assign(a,(0,X8._)`[${a}, ${f}]`).else(),e.if(o,()=>{e.assign(s,!0),e.assign(a,f),m&&t.mergeEvaluated(m,X8.Name)})})}}};Ny.default=j1e});var QI=k(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var U1e=Nt(),M1e={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:n,it:r}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");let i=e.name("valid");n.forEach((l,s)=>{if((0,U1e.alwaysValidSchema)(r,l))return;let a=t.subschema({keyword:"allOf",schemaProp:s},i);t.ok(i),t.mergeEvaluated(a)})}};Cy.default=M1e});var tk=k(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var W8=st(),ek=Nt(),$1e={message:({params:t})=>(0,W8.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,W8._)`{failingKeyword: ${t.ifClause}}`},B1e={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:$1e,code(t){let{gen:e,parentSchema:n,it:r}=t;n.then===void 0&&n.else===void 0&&(0,ek.checkStrictMode)(r,'"if" without "then" and "else" is ignored');let i=ZI(r,"then"),l=ZI(r,"else");if(!i&&!l)return;let s=e.let("valid",!0),a=e.name("_valid");if(o(),t.reset(),i&&l){let c=e.let("ifClause");t.setParams({ifClause:c}),e.if(a,u("then",c),u("else",c))}else i?e.if(a,u("then")):e.if((0,W8.not)(a),u("else"));t.pass(s,()=>t.error(!0));function o(){let c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(c)}function u(c,f){return()=>{let m=t.subschema({keyword:c},a);e.assign(s,a),t.mergeValidEvaluated(m,s),f?e.assign(f,(0,W8._)`${c}`):t.setParams({ifClause:c})}}}};function ZI(t,e){let n=t.schema[e];return n!==void 0&&!(0,ek.alwaysValidSchema)(t,n)}Ry.default=B1e});var nk=k(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var H1e=Nt(),V1e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:n}){e.if===void 0&&(0,H1e.checkStrictMode)(n,`"${t}" without "if" is ignored`)}};Iy.default=V1e});var rk=k(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var q1e=hy(),z1e=DI(),G1e=my(),J1e=LI(),K1e=FI(),X1e=MI(),W1e=BI(),Y1e=wy(),Q1e=qI(),Z1e=KI(),e0e=XI(),t0e=WI(),n0e=YI(),r0e=QI(),i0e=tk(),l0e=nk();function s0e(t=!1){let e=[e0e.default,t0e.default,n0e.default,r0e.default,i0e.default,l0e.default,W1e.default,Y1e.default,X1e.default,Q1e.default,Z1e.default];return t?e.push(z1e.default,J1e.default):e.push(q1e.default,G1e.default),e.push(K1e.default),e}ky.default=s0e});var ik=k(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var Fr=st(),a0e={message:({schemaCode:t})=>(0,Fr.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Fr._)`{format: ${t}}`},o0e={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:a0e,code(t,e){let{gen:n,data:r,$data:i,schema:l,schemaCode:s,it:a}=t,{opts:o,errSchemaPath:u,schemaEnv:c,self:f}=a;if(!o.validateFormats)return;i?m():d();function m(){let y=n.scopeValue("formats",{ref:f.formats,code:o.code.formats}),_=n.const("fDef",(0,Fr._)`${y}[${s}]`),S=n.let("fType"),w=n.let("format");n.if((0,Fr._)`typeof ${_} == "object" && !(${_} instanceof RegExp)`,()=>n.assign(S,(0,Fr._)`${_}.type || "string"`).assign(w,(0,Fr._)`${_}.validate`),()=>n.assign(S,(0,Fr._)`"string"`).assign(w,_)),t.fail$data((0,Fr.or)(E(),g()));function E(){return o.strictSchema===!1?Fr.nil:(0,Fr._)`${s} && !${w}`}function g(){let v=c.$async?(0,Fr._)`(${_}.async ? await ${w}(${r}) : ${w}(${r}))`:(0,Fr._)`${w}(${r})`,x=(0,Fr._)`(typeof ${w} == "function" ? ${v} : ${w}.test(${r}))`;return(0,Fr._)`${w} && ${w} !== true && ${S} === ${e} && !${x}`}}function d(){let y=f.formats[l];if(!y){E();return}if(y===!0)return;let[_,S,w]=g(y);_===e&&t.pass(v());function E(){if(o.strictSchema===!1){f.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${l}" ignored in schema at path "${u}"`}}function g(x){let O=x instanceof RegExp?(0,Fr.regexpCode)(x):o.code.formats?(0,Fr._)`${o.code.formats}${(0,Fr.getProperty)(l)}`:void 0,N=n.scopeValue("formats",{key:l,ref:x,code:O});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,Fr._)`${N}.validate`]:["string",x,N]}function v(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!c.$async)throw new Error("async format in sync schema");return(0,Fr._)`await ${w}(${r})`}return typeof S=="function"?(0,Fr._)`${w}(${r})`:(0,Fr._)`${w}.test(${r})`}}}};Dy.default=o0e});var lk=k(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var u0e=ik(),c0e=[u0e.default];Py.default=c0e});var sk=k(c1=>{"use strict";Object.defineProperty(c1,"__esModule",{value:!0});c1.contentVocabulary=c1.metadataVocabulary=void 0;c1.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];c1.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var ok=k(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var p0e=mI(),f0e=CI(),d0e=rk(),h0e=lk(),ak=sk(),m0e=[p0e.default,f0e.default,(0,d0e.default)(),h0e.default,ak.metadataVocabulary,ak.contentVocabulary];Ly.default=m0e});var Fy=k($4=>{"use strict";Object.defineProperty($4,"__esModule",{value:!0});$4.DiscrError=void 0;var y0e;(function(t){t.Tag="tag",t.Mapping="mapping"})(y0e=$4.DiscrError||($4.DiscrError={}))});var ck=k(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var p1=st(),jy=Fy(),uk=N3(),g0e=Nt(),v0e={message:({params:{discrError:t,tagName:e}})=>t===jy.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:n}})=>(0,p1._)`{error: ${t}, tag: ${n}, tagValue: ${e}}`},_0e={keyword:"discriminator",type:"object",schemaType:"object",error:v0e,code(t){let{gen:e,data:n,schema:r,parentSchema:i,it:l}=t,{oneOf:s}=i;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=r.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let o=e.let("valid",!1),u=e.const("tag",(0,p1._)`${n}${(0,p1.getProperty)(a)}`);e.if((0,p1._)`typeof ${u} == "string"`,()=>c(),()=>t.error(!1,{discrError:jy.DiscrError.Tag,tag:u,tagName:a})),t.ok(o);function c(){let d=m();e.if(!1);for(let y in d)e.elseIf((0,p1._)`${u} === ${y}`),e.assign(o,f(d[y]));e.else(),t.error(!1,{discrError:jy.DiscrError.Mapping,tag:u,tagName:a}),e.endIf()}function f(d){let y=e.name("valid"),_=t.subschema({keyword:"oneOf",schemaProp:d},y);return t.mergeEvaluated(_,p1.Name),y}function m(){var d;let y={},_=w(i),S=!0;for(let v=0;v{E0e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Z8=k((vr,dk)=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.MissingRefError=vr.ValidationError=vr.CodeGen=vr.Name=vr.nil=vr.stringify=vr.str=vr._=vr.KeywordCxt=void 0;var b0e=Km(),w0e=ok(),S0e=ck(),fk=pk(),T0e=["/properties"],Y8="http://json-schema.org/draft-07/schema",Q8=class extends b0e.default{_addVocabularies(){super._addVocabularies(),w0e.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(S0e.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(fk,T0e):fk;this.addMetaSchema(e,Y8,!1),this.refs["http://json-schema.org/schema"]=Y8}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Y8)?Y8:void 0)}};dk.exports=vr=Q8;Object.defineProperty(vr,"__esModule",{value:!0});vr.default=Q8;var x0e=s1();Object.defineProperty(vr,"KeywordCxt",{enumerable:!0,get:function(){return x0e.KeywordCxt}});var f1=st();Object.defineProperty(vr,"_",{enumerable:!0,get:function(){return f1._}});Object.defineProperty(vr,"str",{enumerable:!0,get:function(){return f1.str}});Object.defineProperty(vr,"stringify",{enumerable:!0,get:function(){return f1.stringify}});Object.defineProperty(vr,"nil",{enumerable:!0,get:function(){return f1.nil}});Object.defineProperty(vr,"Name",{enumerable:!0,get:function(){return f1.Name}});Object.defineProperty(vr,"CodeGen",{enumerable:!0,get:function(){return f1.CodeGen}});var A0e=A4();Object.defineProperty(vr,"ValidationError",{enumerable:!0,get:function(){return A0e.default}});var O0e=A2();Object.defineProperty(vr,"MissingRefError",{enumerable:!0,get:function(){return O0e.default}})});var mk=k((sRe,hk)=>{"use strict";var N0e={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};hk.exports={HEX:N0e}});var Sk=k((aRe,wk)=>{"use strict";var{HEX:C0e}=mk();function _k(t){if(bk(t,".")<3)return{host:t,isIPV4:!1};let e=t.match(/^(\b[01]?\d{1,2}|\b2[0-4]\d|\b25[0-5])(\.([01]?\d{1,2}|2[0-4]\d|25[0-5])){3}$/u)||[],[n]=e;return n?{host:I0e(n,"."),isIPV4:!0}:{host:t,isIPV4:!1}}function My(t){let e="",n=!0;for(let r of t){if(r!=="0"&&n===!0&&(n=!1),C0e[r]===void 0)return;n||(e+=r)}return e}function R0e(t){let e=0,n={error:!1,address:"",zone:""},r=[],i=[],l=!1,s=!1,a=!1;function o(){if(i.length){if(l===!1){let u=My(i.join(""));if(u!==void 0)r.push(u);else return n.error=!0,!1}i.length=0}return!0}for(let u=0;u7){n.error=!0;break}u-1>=0&&t[u-1]===":"&&(s=!0);continue}else if(c==="%"){if(!o())break;l=!0}else{i.push(c);continue}}return i.length&&(l?n.zone=i.join(""):a?r.push(i.join("")):r.push(My(i.join("")))),n.address=r.join(""),n}function Ek(t,e={}){if(bk(t,":")<2)return{host:t,isIPV6:!1};let n=R0e(t);if(n.error)return{host:t,isIPV6:!1};{let r=n.address,i=n.address;return n.zone&&(r+="%"+n.zone,i+="%25"+n.zone),{host:r,escapedHost:i,isIPV6:!0}}}function I0e(t,e){let n="",r=!0,i=t.length;for(let l=0;l{"use strict";var F0e=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,j0e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Tk(t){return typeof t.secure=="boolean"?t.secure:String(t.scheme).toLowerCase()==="wss"}function xk(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function Ak(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function U0e(t){return t.secure=Tk(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function M0e(t){if((t.port===(Tk(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,n]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=n,t.resourceName=void 0}return t.fragment=void 0,t}function $0e(t,e){if(!t.path)return t.error="URN can not be parsed",t;let n=t.path.match(j0e);if(n){let r=e.scheme||t.scheme||"urn";t.nid=n[1].toLowerCase(),t.nss=n[2];let i=`${r}:${e.nid||t.nid}`,l=$y[i];t.path=void 0,l&&(t=l.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function B0e(t,e){let n=e.scheme||t.scheme||"urn",r=t.nid.toLowerCase(),i=`${n}:${e.nid||r}`,l=$y[i];l&&(t=l.serialize(t,e));let s=t,a=t.nss;return s.path=`${r||e.nid}:${a}`,e.skipEscape=!0,s}function H0e(t,e){let n=t;return n.uuid=n.nss,n.nss=void 0,!e.tolerant&&(!n.uuid||!F0e.test(n.uuid))&&(n.error=n.error||"UUID is not valid."),n}function V0e(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var Ok={scheme:"http",domainHost:!0,parse:xk,serialize:Ak},q0e={scheme:"https",domainHost:Ok.domainHost,parse:xk,serialize:Ak},e9={scheme:"ws",domainHost:!0,parse:U0e,serialize:M0e},z0e={scheme:"wss",domainHost:e9.domainHost,parse:e9.parse,serialize:e9.serialize},G0e={scheme:"urn",parse:$0e,serialize:B0e,skipNormalize:!0},J0e={scheme:"urn:uuid",parse:H0e,serialize:V0e,skipNormalize:!0},$y={http:Ok,https:q0e,ws:e9,wss:z0e,urn:G0e,"urn:uuid":J0e};Nk.exports=$y});var Hy=k((uRe,n9)=>{"use strict";var K0e=require("node:url"),{normalizeIPv6:X0e,normalizeIPv4:W0e,removeDotSegments:B4,recomposeAuthority:Y0e,normalizeComponentEncoding:t9}=Sk(),Rk=Ck();function Q0e(t,e){return typeof t=="string"?t=Zs(Ba(t,e),e):typeof t=="object"&&(t=Ba(Zs(t,e),e)),t}function Z0e(t,e,n){let r=Object.assign({scheme:"null"},n),i=Ik(Ba(t,r),Ba(e,r),r,!0);return Zs(i,{...r,skipEscape:!0})}function Ik(t,e,n,r){let i={};return r||(t=Ba(Zs(t,n),n),e=Ba(Zs(e,n),n)),n=n||{},!n.tolerant&&e.scheme?(i.scheme=e.scheme,i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=B4(e.path||""),i.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=B4(e.path||""),i.query=e.query):(e.path?(e.path.charAt(0)==="/"?i.path=B4(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?i.path="/"+e.path:t.path?i.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:i.path=e.path,i.path=B4(i.path)),i.query=e.query):(i.path=t.path,e.query!==void 0?i.query=e.query:i.query=t.query),i.userinfo=t.userinfo,i.host=t.host,i.port=t.port),i.scheme=t.scheme),i.fragment=e.fragment,i}function e4e(t,e,n){return typeof t=="string"?(t=unescape(t),t=Zs(t9(Ba(t,n),!0),{...n,skipEscape:!0})):typeof t=="object"&&(t=Zs(t9(t,!0),{...n,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=Zs(t9(Ba(e,n),!0),{...n,skipEscape:!0})):typeof e=="object"&&(e=Zs(t9(e,!0),{...n,skipEscape:!0})),t.toLowerCase()===e.toLowerCase()}function Zs(t,e){let n={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},r=Object.assign({},e),i=[],l=Rk[(r.scheme||n.scheme||"").toLowerCase()];l&&l.serialize&&l.serialize(n,r),n.path!==void 0&&(r.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),n.scheme!==void 0&&(n.path=n.path.split("%3A").join(":")))),r.reference!=="suffix"&&n.scheme&&(i.push(n.scheme),i.push(":"));let s=Y0e(n,r);if(s!==void 0&&(r.reference!=="suffix"&&i.push("//"),i.push(s),n.path&&n.path.charAt(0)!=="/"&&i.push("/")),n.path!==void 0){let a=n.path;!r.absolutePath&&(!l||!l.absolutePath)&&(a=B4(a)),s===void 0&&(a=a.replace(/^\/\//u,"/%2F")),i.push(a)}return n.query!==void 0&&(i.push("?"),i.push(n.query)),n.fragment!==void 0&&(i.push("#"),i.push(n.fragment)),i.join("")}var t4e=Array.from({length:127},(t,e)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function n4e(t){let e=0;for(let n=0,r=t.length;n126||t4e[e])return!0;return!1}var r4e=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Ba(t,e){let n=Object.assign({},e),r={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=t.indexOf("%")!==-1;n.reference==="suffix"&&(t=(n.scheme?n.scheme+":":"")+"//"+t);let l=t.match(r4e);if(l){if(r.scheme=l[1],r.userinfo=l[3],r.host=l[4],r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=l[7],r.fragment=l[8],isNaN(r.port)&&(r.port=l[5]),r.host){let a=W0e(r.host);a.isIPV4===!1?r.host=X0e(a.host,{isIPV4:!1}).host.toLowerCase():r.host=a.host}r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&!r.path&&r.query===void 0?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==r.reference&&(r.error=r.error||"URI is not a "+n.reference+" reference.");let s=Rk[(n.scheme||r.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!s||!s.unicodeSupport)&&r.host&&(n.domainHost||s&&s.domainHost)&&n4e(r.host))try{r.host=K0e.domainToASCII(r.host.toLowerCase())}catch(a){r.error=r.error||"Host's domain name can not be converted to ASCII: "+a}(!s||s&&!s.skipNormalize)&&(i&&r.scheme!==void 0&&(r.scheme=unescape(r.scheme)),i&&r.userinfo!==void 0&&(r.userinfo=unescape(r.userinfo)),i&&r.host!==void 0&&(r.host=unescape(r.host)),r.path!==void 0&&r.path.length&&(r.path=encodeURI(r.path)),r.fragment!==void 0&&r.fragment.length&&(r.fragment=encodeURI(decodeURI(r.fragment)))),s&&s.parse&&s.parse(r,n)}else r.error=r.error||"URI can not be parsed.";return r}var By={normalize:Q0e,resolve:Z0e,resolveComponents:Ik,equal:e4e,serialize:Zs,parse:Ba};n9.exports=By;n9.exports.default=By;n9.exports.fastUri=By});var r9=k(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.formatNames=ea.fastFormats=ea.fullFormats=void 0;function d1(t,e){return{validate:t,compare:e}}ea.fullFormats={date:d1(Pk,zy),time:d1(Lk,Gy),"date-time":d1(a4e,Fk),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:c4e,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:g4e,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:p4e,int32:{type:"number",validate:h4e},int64:{type:"number",validate:m4e},float:{type:"number",validate:Dk},double:{type:"number",validate:Dk},password:!0,binary:!0};ea.fastFormats={...ea.fullFormats,date:d1(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,zy),time:d1(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Gy),"date-time":d1(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Fk),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};ea.formatNames=Object.keys(ea.fullFormats);function i4e(t){return t%4===0&&(t%100!==0||t%400===0)}var l4e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,s4e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Pk(t){let e=l4e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],i=+e[3];return r>=1&&r<=12&&i>=1&&i<=(r===2&&i4e(n)?29:s4e[r])}function zy(t,e){if(t&&e)return t>e?1:te?1:t=f4e}function m4e(t){return Number.isInteger(t)}function Dk(){return!0}var y4e=/[^\\]\\Z/;function g4e(t){if(y4e.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var jk=k(h1=>{"use strict";Object.defineProperty(h1,"__esModule",{value:!0});h1.formatLimitDefinition=void 0;var v4e=Z8(),Ss=st(),N2=Ss.operators,i9={formatMaximum:{okStr:"<=",ok:N2.LTE,fail:N2.GT},formatMinimum:{okStr:">=",ok:N2.GTE,fail:N2.LT},formatExclusiveMaximum:{okStr:"<",ok:N2.LT,fail:N2.GTE},formatExclusiveMinimum:{okStr:">",ok:N2.GT,fail:N2.LTE}},_4e={message:({keyword:t,schemaCode:e})=>Ss.str`should be ${i9[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>Ss._`{comparison: ${i9[t].okStr}, limit: ${e}}`};h1.formatLimitDefinition={keyword:Object.keys(i9),type:"string",schemaType:"string",$data:!0,error:_4e,code(t){let{gen:e,data:n,schemaCode:r,keyword:i,it:l}=t,{opts:s,self:a}=l;if(!s.validateFormats)return;let o=new v4e.KeywordCxt(l,a.RULES.all.format.definition,"format");o.$data?u():c();function u(){let m=e.scopeValue("formats",{ref:a.formats,code:s.code.formats}),d=e.const("fmt",Ss._`${m}[${o.schemaCode}]`);t.fail$data(Ss.or(Ss._`typeof ${d} != "object"`,Ss._`${d} instanceof RegExp`,Ss._`typeof ${d}.compare != "function"`,f(d)))}function c(){let m=o.schema,d=a.formats[m];if(!d||d===!0)return;if(typeof d!="object"||d instanceof RegExp||typeof d.compare!="function")throw new Error(`"${i}": format "${m}" does not define "compare" function`);let y=e.scopeValue("formats",{key:m,ref:d,code:s.code.formats?Ss._`${s.code.formats}${Ss.getProperty(m)}`:void 0});t.fail$data(f(y))}function f(m){return Ss._`${m}.compare(${n}, ${r}) ${i9[i].fail} 0`}},dependencies:["format"]};var E4e=t=>(t.addKeyword(h1.formatLimitDefinition),t);h1.default=E4e});var Xy=k((H4,$k)=>{"use strict";Object.defineProperty(H4,"__esModule",{value:!0});var m1=r9(),b4e=jk(),Jy=st(),Uk=new Jy.Name("fullFormats"),w4e=new Jy.Name("fastFormats"),Ky=(t,e={keywords:!0})=>{if(Array.isArray(e))return Mk(t,e,m1.fullFormats,Uk),t;let[n,r]=e.mode==="fast"?[m1.fastFormats,w4e]:[m1.fullFormats,Uk],i=e.formats||m1.formatNames;return Mk(t,i,n,r),e.keywords&&b4e.default(t),t};Ky.get=(t,e="full")=>{let r=(e==="fast"?m1.fastFormats:m1.fullFormats)[t];if(!r)throw new Error(`Unknown format "${t}"`);return r};function Mk(t,e,n,r){var i,l;(i=(l=t.opts.code).formats)!==null&&i!==void 0||(l.formats=Jy._`require("ajv-formats/dist/formats").${r}`);for(let s of e)t.addFormat(s,n[s])}$k.exports=H4=Ky;Object.defineProperty(H4,"__esModule",{value:!0});H4.default=Ky});var Yy=k((fRe,Bk)=>{"use strict";var S4e=Z8(),T4e=Hy(),x4e=Xy(),A4e=p4()({proto:!0}),Wy=class t{constructor(e){this.ajv=new S4e({...e,strictSchema:!1,validateSchema:!1,allowUnionTypes:!0,uriResolver:T4e}),x4e(this.ajv),this.ajv.addKeyword({keyword:"fjs_type",type:"object",errors:!1,validate:(n,r)=>r instanceof Date}),this._ajvSchemas={},this._ajvOptions=e||{}}addSchema(e,n){let r=e.$id||n;if(e.$id!==void 0&&e.$id[0]==="#"&&(r=n+e.$id),this.ajv.refs[r]===void 0&&this.ajv.schemas[r]===void 0){let i=A4e(e);this.convertSchemaToAjvFormat(i),this.ajv.addSchema(i,r),this._ajvSchemas[r]=e}}validate(e,n){return this.ajv.validate(e,n)}convertSchemaToAjvFormat(e){if(e!==null){e.type==="string"?(e.fjs_type="string",e.type=["string","object"]):Array.isArray(e.type)&&e.type.includes("string")&&!e.type.includes("object")&&(e.fjs_type="string",e.type.push("object"));for(let n in e)typeof e[n]=="object"&&this.convertSchemaToAjvFormat(e[n])}}getState(){return{ajvOptions:this._ajvOptions,ajvSchemas:this._ajvSchemas}}static restoreFromState(e){let n=new t(e.ajvOptions);for(let[r,i]of Object.entries(e.ajvSchemas))n.ajv.addSchema(i,r);return n}};Bk.exports=Wy});var Zy=k((dRe,Qy)=>{"use strict";function O4e(t,e,n,r){let i="";return e.validatorSchemasIds.size>0?(i+=`const validatorState = ${JSON.stringify(r.getState())}
`,i+=`const validator = Validator.restoreFromState(validatorState)
`):i+=`const validator = null
`,`
@@ -119,7 +119,7 @@ ${w}`),y.pop(),`{${x}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";
${i}
- module.exports = ${t.toString()}(validator, serializer)`}Xy.exports=y4e;Xy.exports.dependencies={Serializer:nm(),Validator:Ky()}});var Uk=k((nRe,jk)=>{"use strict";var{dependencies:g4e}=Wy(),{Serializer:v4e,Validator:tRe}=g4e,_4e={mode:"standalone"},E4e=v4e.restoreFromState(_4e),b4e=null;jk.exports=function(e,n){function r(l){let s=l&&typeof l.toJSON=="function"?l.toJSON():l;if(s===null)return"{}";let a=!1,o="{";return s.statusCode!==void 0&&(!a&&(a=!0)||(o+=","),o+='"statusCode":',o+=n.asNumber(s.statusCode)),s.code!==void 0&&(!a&&(a=!0)||(o+=","),o+='"code":',o+=n.asString(s.code)),s.error!==void 0&&(!a&&(a=!0)||(o+=","),o+='"error":',o+=n.asString(s.error)),s.message!==void 0&&(!a&&(a=!0)||(o+=","),o+='"message":',o+=n.asString(s.message)),o+"}"}return r}(b4e,E4e)});var B4=k((rRe,Hk)=>{"use strict";var Mk=require("node:http").STATUS_CODES,w4e=Zd(),{kReplyHeaders:Co,kReplyNextErrorHandler:r9,kReplyIsRunningOnErrorHook:S4e,kReplyHasStatusCode:T4e,kRouteContext:Bk}=pi(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:x4e,FST_ERR_FAILED_ERROR_SERIALIZATION:A4e}=Li(),{getSchemaSerializer:O4e}=c4(),Yy=Uk(),N4e={func:R4e,toJSON(){return this.func.name.toString()+"()"}};function C4e(t,e,n){t[S4e]=!1;let r=t[Bk];if(t[r9]===!1){$k(e,t,function(a,o){try{a.raw.writeHead(a.raw.statusCode,a[Co])}catch(u){a.log.warn({req:a.request,res:a,err:u},u&&u.message),a.raw.writeHead(a.raw.statusCode)}a.raw.end(o)});return}let i=t[r9]||r.errorHandler;t[r9]=Object.getPrototypeOf(i),delete t[Co]["content-type"],delete t[Co]["content-length"];let l=i.func;if(!l){t[r9]=!1,$k(e,t,n);return}let s=l(e,t.request,t);s!==void 0&&(s!==null&&typeof s.then=="function"?w4e(s,t):t.send(s))}function R4e(t,e,n){if(k4e(t,n),!n[T4e]||n.statusCode===200){let r=t.statusCode||t.status;n.code(r>=400?r:500)}n.statusCode<500?n.log.info({res:n,err:t},t&&t.message):n.log.error({req:e,res:n,err:t},t&&t.message),n.send(t)}function $k(t,e,n){let r=e.raw,i=e.statusCode;e[Co]["content-type"]=e[Co]["content-type"]??"application/json; charset=utf-8";let l;try{let s=O4e(e[Bk],i,e[Co]["content-type"]);l=s===!1?Yy({error:Mk[i+""],code:t.code,message:t.message,statusCode:i}):s(Object.create(t,{error:{value:Mk[i+""]},message:{value:t.message},statusCode:{value:i}}))}catch(s){e.log.error({err:s,statusCode:r.statusCode},"The serializer for the given status code failed"),e.code(500),l=Yy(new A4e(s.message,t.message))}typeof l!="string"&&!Buffer.isBuffer(l)&&(l=Yy(new x4e(typeof l))),e[Co]["content-length"]=""+Buffer.byteLength(l),n(e,l)}function I4e(t=N4e,e){if(!e)return t;let n=Object.create(t);return n.func=e,n}function k4e(t,e){let n=e.raw,r=n.statusCode;r=r>=400?r:500,t!=null&&(t.headers!==void 0&&e.headers(t.headers),t.status>=400?r=t.status:t.statusCode>=400&&(r=t.statusCode)),n.statusCode=r}Hk.exports={buildErrorHandler:I4e,handleError:C4e}});var u9=k((iRe,o9)=>{"use strict";var tg=require("node:stream").finished,D4e=require("node:stream").Readable,{kFourOhFourContext:Vk,kPublicRouteContext:qk,kReplyErrorHandlerCalled:Qk,kReplyHijacked:H4,kReplyStartTime:V4,kReplyEndTime:rg,kReplySerializer:Ba,kReplySerializerDefault:l9,kReplyIsError:s9,kReplyHeaders:sr,kReplyTrailers:fi,kReplyHasStatusCode:ig,kReplyIsRunningOnErrorHook:lg,kReplyNextErrorHandler:P4e,kDisableRequestLogging:Zk,kSchemaResponse:a9,kReplyCacheSerializeFns:N2,kSchemaController:Qy,kOptions:L4e,kRouteContext:jt}=pi(),{onSendHookRunner:eD,onResponseHookRunner:F4e,preHandlerHookRunner:j4e,preSerializationHookRunner:U4e}=h2(),zk=rh()[Symbol.for("internals")],M4e=o4(),ng=M4e.now,{handleError:Gk}=B4(),{getSchemaSerializer:$4e}=c4(),Zy={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:B4e,FST_ERR_REP_RESPONSE_BODY_CONSUMED:H4e,FST_ERR_REP_ALREADY_SENT:tD,FST_ERR_REP_SENT_VALUE:V4e,FST_ERR_SEND_INSIDE_ONERR:q4e,FST_ERR_BAD_STATUS_CODE:z4e,FST_ERR_BAD_TRAILER_NAME:G4e,FST_ERR_BAD_TRAILER_VALUE:J4e,FST_ERR_MISSING_SERIALIZATION_FN:K4e,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:X4e}=Li(),{FSTDEP010:W4e,FSTDEP013:Y4e,FSTDEP019:Q4e,FSTDEP020:Z4e}=La(),nD=Object.prototype.toString;function tr(t,e,n){this.raw=t,this[Ba]=null,this[Qk]=!1,this[s9]=!1,this[lg]=!1,this.request=e,this[sr]={},this[fi]=null,this[ig]=!1,this[V4]=void 0,this.log=n}tr.props=[];Object.defineProperties(tr.prototype,{[jt]:{get(){return this.request[jt]}},context:{get(){return Q4e(),this.request[jt]}},elapsedTime:{get(){return this[V4]===void 0?0:(this[rg]||ng())-this[V4]}},server:{get(){return this.request[jt].server}},sent:{enumerable:!0,get(){return(this[H4]||this.raw.writableEnded)===!0},set(t){if(W4e(),t!==!0)throw new V4e;if(this.sent&&this[H4])throw new tD(this.request.url,this.request.method);this[H4]=!0}},statusCode:{get(){return this.raw.statusCode},set(t){this.code(t)}},[qk]:{get(){return this.request[qk]}}});tr.prototype.hijack=function(){return this[H4]=!0,this};tr.prototype.send=function(t){if(this[lg]===!0)throw new q4e;if(this.sent)return this.log.warn({err:new tD(this.request.url,this.request.method)}),this;if(t instanceof Error||this[s9]===!0)return this[s9]=!1,q4(this,t,Ro),this;if(t===void 0)return Ro(this,t),this;let e=this.getHeader("content-type"),n=e!==void 0;if(t!==null){if(typeof t.pipe=="function"||typeof t.getReader=="function"||nD.call(t)==="[object Response]")return Ro(this,t),this;if(t?.buffer instanceof ArrayBuffer){n===!1&&(this[sr]["content-type"]=Zy.OCTET);let r=Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength);return Ro(this,r),this}if(n===!1&&typeof t=="string")return this[sr]["content-type"]=Zy.PLAIN,Ro(this,t),this}if(this[Ba]!==null){if(typeof t!="string")return Jk(this,t),this;t=this[Ba](t)}else if(n===!1||e.indexOf("json")>-1){if(n===!1)this[sr]["content-type"]=Zy.JSON;else if(e.indexOf("charset")===-1){let r=e.trim();r.endsWith(";")?this[sr]["content-type"]=`${r} charset=utf-8`:this[sr]["content-type"]=`${r}; charset=utf-8`}if(typeof t!="string")return Jk(this,t),this}return Ro(this,t),this};tr.prototype.getHeader=function(t){t=t.toLowerCase();let e=this.raw,n=this[sr][t];return n===void 0&&e.hasHeader(t)&&(n=e.getHeader(t)),n};tr.prototype.getHeaders=function(){return{...this.raw.getHeaders(),...this[sr]}};tr.prototype.hasHeader=function(t){return t=t.toLowerCase(),this[sr][t]!==void 0||this.raw.hasHeader(t)};tr.prototype.removeHeader=function(t){return delete this[sr][t.toLowerCase()],this};tr.prototype.header=function(t,e=""){return t=t.toLowerCase(),this[sr][t]&&t==="set-cookie"?(typeof this[sr][t]=="string"&&(this[sr][t]=[this[sr][t]]),Array.isArray(e)?Array.prototype.push.apply(this[sr][t],e):this[sr][t].push(e)):this[sr][t]=e,this};tr.prototype.headers=function(t){let e=Object.keys(t);for(var n=0;n!==e.length;++n){let r=e[n];this.header(r,t[r])}return this};var ece=new Set(["transfer-encoding","content-length","host","cache-control","max-forwards","te","authorization","set-cookie","content-encoding","content-type","content-range","trailer"]);tr.prototype.trailer=function(t,e){if(t=t.toLowerCase(),ece.has(t))throw new G4e(t);if(typeof e!="function")throw new J4e(t,typeof e);return this[fi]===null&&(this[fi]={}),this[fi][t]=e,this};tr.prototype.hasTrailer=function(t){return this[fi]?.[t.toLowerCase()]!==void 0};tr.prototype.removeTrailer=function(t){return this[fi]===null?this:(this[fi][t.toLowerCase()]=void 0,this)};tr.prototype.code=function(t){let e=Number(t);if(isNaN(e)||e<100||e>599)throw new z4e(t||String(t));return this.raw.statusCode=e,this[ig]=!0,this};tr.prototype.status=tr.prototype.code;tr.prototype.getSerializationFunction=function(t,e){let n;return typeof t=="string"||typeof t=="number"?typeof e=="string"?n=this[jt][a9]?.[t]?.[e]:n=this[jt][a9]?.[t]:typeof t=="object"&&(n=this[jt][N2]?.get(t)),n};tr.prototype.compileSerializationSchema=function(t,e=null,n=null){let{request:r}=this,{method:i,url:l}=r;if(this[jt][N2]?.has(t))return this[jt][N2].get(t);let a=(this[jt].serializerCompiler||this.server[Qy].serializerCompiler||this.server[Qy].setupSerializer(this.server[L4e])||this.server[Qy].serializerCompiler)({schema:t,method:i,url:l,httpStatus:e,contentType:n});return this[jt][N2]==null&&(this[jt][N2]=new WeakMap),this[jt][N2].set(t,a),a};tr.prototype.serializeInput=function(t,e,n,r){let i=n,l;if(n=typeof e=="string"||typeof e=="number"?e:n,r=n&&i!==n?i:r,n!=null){if(r!=null?l=this[jt][a9]?.[n]?.[r]:l=this[jt][a9]?.[n],l==null)throw r?new X4e(n,r):new K4e(n)}else this[jt][N2]?.has(e)?l=this[jt][N2].get(e):l=this.compileSerializationSchema(e,n,r);return l(t)};tr.prototype.serialize=function(t){return this[Ba]!==null?this[Ba](t):this[jt]&&this[jt][l9]?this[jt][l9](t,this.raw.statusCode):lD(this[jt],t,this.raw.statusCode)};tr.prototype.serializer=function(t){return this[Ba]=t,this};tr.prototype.type=function(t){return this[sr]["content-type"]=t,this};tr.prototype.redirect=function(t,e){return typeof t=="string"&&(e=t,t=this[ig]?this.raw.statusCode:302),this.header("location",e).code(t).send()};tr.prototype.callNotFound=function(){return sce(this),this};tr.prototype.getResponseTime=function(){return Z4e(),this.elapsedTime};tr.prototype.then=function(t,e){if(this.sent){t();return}tg(this.raw,n=>{n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"?e?e(n):this.log&&this.log.warn("unhandled rejection on reply.then"):t()})};function Jk(t,e){t[jt].preSerialization!==null?U4e(t[jt].preSerialization,t.request,t,e,Kk):Kk(null,t.request,t,e)}function Kk(t,e,n,r){if(t!=null){q4(n,t);return}try{n[Ba]!==null?r=n[Ba](r):n[jt]&&n[jt][l9]?r=n[jt][l9](r,n.raw.statusCode):r=lD(n[jt],r,n.raw.statusCode,n[sr]["content-type"])}catch(i){tce(i,n),q4(n,i);return}Ro(n,r)}function tce(t,e){t.serialization=e[jt].config}function Ro(t,e){t[jt].onSend!==null?eD(t[jt].onSend,t.request,t,e,nce):rD(t,e)}function nce(t,e,n,r){t!=null?q4(n,t):rD(n,r)}function eg(t,e){let n=t.raw;try{n.writeHead(e,t[sr])}catch(r){throw r.code==="ERR_HTTP_HEADERS_SENT"&&t.log.warn(`Reply was already sent, did you forget to "return reply" in the "${t.request.raw.url}" (${t.request.raw.method}) route?`),r}}function rD(t,e){let n=t.raw,r=t.request;if(t[fi]!==null){let s=Object.keys(t[fi]),a="";for(let o of s)typeof t[fi][o]=="function"&&(a+=" ",a+=o);t.header("Transfer-Encoding","chunked"),t.header("Trailer",a.trim())}let i=nD.call(e)==="[object Response]";i&&typeof e.status=="number"&&t.code(e.status);let l=n.statusCode;if(e==null){l>=200&&l!==204&&l!==304&&r.method!=="HEAD"&&t[fi]===null&&(t[sr]["content-length"]="0"),eg(t,l),i9(e,n,t);return}if(l>=100&&l<200||l===204){t.removeHeader("content-type"),t.removeHeader("content-length"),eg(t,l),i9(void 0,n,t),typeof e.resume=="function"&&(e.on("error",sD),e.resume());return}if(typeof e.pipe=="function"){iD(e,n,t);return}if(typeof e.getReader=="function"){Wk(e,n,t);return}if(i){if(typeof e.headers=="object"&&typeof e.headers.forEach=="function")for(let[s,a]of e.headers)t.header(s,a);if(e.body!=null){if(e.bodyUsed)throw new H4e;Wk(e.body,n,t)}return}if(typeof e!="string"&&!Buffer.isBuffer(e))throw new B4e(typeof e);if(t[fi]===null){let s=t[sr]["content-length"];(!s||r.raw.method!=="HEAD"&&Number(s)!==Buffer.byteLength(e))&&(t[sr]["content-length"]=""+Buffer.byteLength(e))}eg(t,l),n.write(e),i9(e,n,t)}function Xk(t,e,n){e.code==="ERR_STREAM_PREMATURE_CLOSE"?t[Zk]||t.info({res:n},"stream closed prematurely"):t.warn({err:e},"response terminated with an error with headers already sent")}function Wk(t,e,n){let r=D4e.fromWeb(t);iD(r,e,n)}function iD(t,e,n){let r=!0,i=!1;if(rce(t,e,n),tg(t,{readable:!0,writable:!1},function(l){r=!1,l!=null&&(e.headersSent||n.request.raw.aborted===!0?(i||(i=!0,Xk(n.log,l,e)),e.destroy()):q4(n,l))}),tg(e,function(l){r&&(l!=null&&e.headersSent&&!i&&(i=!0,Xk(n.log,l,e)),typeof t.destroy=="function"?t.destroy():typeof t.close=="function"?t.close(sD):typeof t.abort=="function"?t.abort():n.log.warn("stream payload does not end properly"))}),e.headersSent)n.log.warn("response will send, but you shouldn't use res.writeHead in stream mode");else for(let l in n[sr])e.setHeader(l,n[sr][l]);t.pipe(e)}function i9(t,e,n){if(n[fi]===null){e.end(null,null,null);return}let r=Object.keys(n[fi]),i={},l=0,s=!0;function a(){l===0&&(e.addTrailers(i),e.end(null,null,null))}for(let o of r){let u=function(f,m){l++,f?n.log.debug(f):i[o]=m,process.nextTick(a)};if(typeof n[fi][o]!="function")continue;s=!1,l--;let c=n[fi][o](n,t,u);typeof c=="object"&&typeof c.then=="function"?c.then(f=>u(null,f),u):c!=null&&(Y4e(),u(null,c))}s&&e.end(null,null,null)}function rce(t,e,n){n[fi]!==null&&t.on("end",()=>i9(null,e,n))}function q4(t,e,n){t[jt].onError!==null&&!t[P4e]?(t[lg]=!0,eD(t[jt].onError,t.request,t,e,()=>Gk(t,e,n))):Gk(t,e,n)}function ice(t){t[V4]=ng();let e=n=>{t[rg]=ng(),t.raw.removeListener("finish",e),t.raw.removeListener("error",e);let r=t[jt];r&&r.onResponse!==null?F4e(r.onResponse,t.request,t,Yk):Yk(n,t.request,t)};t.raw.on("finish",e),t.raw.on("error",e)}function Yk(t,e,n){if(n.log[Zk])return;let r=n.elapsedTime;if(t!=null){n.log.error({res:n,err:t,responseTime:r},"request errored");return}n.log.info({res:n,responseTime:r},"request completed")}function lce(t){let e=t.props.slice();function n(r,i,l){this.raw=r,this[s9]=!1,this[Qk]=!1,this[H4]=!1,this[Ba]=null,this.request=i,this[sr]={},this[fi]=null,this[V4]=void 0,this[rg]=void 0,this.log=l;for(var s,a=0;a{"use strict";aD.exports=ace;function ace(t){if(!t)throw new TypeError("argument req is required");var e=uce(t.headers["x-forwarded-for"]||""),n=oce(t),r=[n].concat(e);return r}function oce(t){return t.socket?t.socket.remoteAddress:t.connection.remoteAddress}function uce(t){for(var e=t.length,n=[],r=t.length,i=t.length-1;i>=0;i--)switch(t.charCodeAt(i)){case 32:r===e&&(r=e=i);break;case 44:r!==e&&n.push(t.substring(r,e)),r=e=i;break;default:r=i;break}return r!==e&&n.push(t.substring(r,e)),n}});var cD=k((uD,z4)=>{(function(){var t,e,n,r,i,l,s,a,o;e={},a=this,typeof z4<"u"&&z4!==null&&z4.exports?z4.exports=e:a.ipaddr=e,s=function(u,c,f,m){var d,y;if(u.length!==c.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(d=0;m>0;){if(y=f-m,y<0&&(y=0),u[d]>>y!==c[d]>>y)return!1;m-=f,d+=1}return!0},e.subnetMatch=function(u,c,f){var m,d,y,_,S;f==null&&(f="unicast");for(y in c)for(_=c[y],_[0]&&!(_[0]instanceof Array)&&(_=[_]),m=0,d=_.length;m=0;f=m+=-1)if(d=this.octets[f],d in S){if(_=S[d],y&&_!==0)return null;_!==8&&(y=!0),c+=_}else return null;return 32-c},u}(),n="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp("^"+n+"\\."+n+"\\."+n+"\\."+n+"$","i"),longValue:new RegExp("^"+n+"$","i")},e.IPv4.parser=function(u){var c,f,m,d,y;if(f=function(_){return _[0]==="0"&&_[1]!=="x"?parseInt(_,8):parseInt(_)},c=u.match(r.fourOctet))return function(){var _,S,w,E;for(w=c.slice(1,6),E=[],_=0,S=w.length;_4294967295||y<0)throw new Error("ipaddr: address outside defined range");return function(){var _,S;for(S=[],d=_=0;_<=24;d=_+=8)S.push(y>>d&255);return S}().reverse()}else return null},e.IPv6=function(){function u(c,f){var m,d,y,_,S,w;if(c.length===16)for(this.parts=[],m=d=0;d<=14;m=d+=2)this.parts.push(c[m]<<8|c[m+1]);else if(c.length===8)this.parts=c;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(w=this.parts,y=0,_=w.length;y<_;y++)if(S=w[y],!(0<=S&&S<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");f&&(this.zoneId=f)}return u.prototype.kind=function(){return"ipv6"},u.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},u.prototype.toRFC5952String=function(){var c,f,m,d,y;for(d=/((^|:)(0(:|$)){2,})/g,y=this.toNormalizedString(),c=0,f=-1;m=d.exec(y);)m[0].length>f&&(c=m.index,f=m[0].length);return f<0?y:y.substring(0,c)+"::"+y.substring(c+f)},u.prototype.toByteArray=function(){var c,f,m,d,y;for(c=[],y=this.parts,f=0,m=y.length;f>8),c.push(d&255);return c},u.prototype.toNormalizedString=function(){var c,f,m;return c=function(){var d,y,_,S;for(_=this.parts,S=[],d=0,y=_.length;d>8,c&255,f>>8,f&255])},u.prototype.prefixLengthFromSubnetMask=function(){var c,f,m,d,y,_,S;for(S={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},c=0,y=!1,f=m=7;m>=0;f=m+=-1)if(d=this.parts[f],d in S){if(_=S[d],y&&_!==0)return null;_!==16&&(y=!0),c+=_}else return null;return 128-c},u}(),i="(?:[0-9a-f]+::?)+",o="%[0-9a-z]{1,}",l={zoneIndex:new RegExp(o,"i"),native:new RegExp("^(::)?("+i+")?([0-9a-f]+)?(::)?("+o+")?$","i"),transitional:new RegExp("^((?:"+i+")|(?:::)(?:"+i+")?)"+(n+"\\."+n+"\\."+n+"\\."+n)+("("+o+")?$"),"i")},t=function(u,c){var f,m,d,y,_,S;if(u.indexOf("::")!==u.lastIndexOf("::"))return null;for(S=(u.match(l.zoneIndex)||[])[0],S&&(S=S.substring(1),u=u.replace(/%.+$/,"")),f=0,m=-1;(m=u.indexOf(":",m+1))>=0;)f++;if(u.substr(0,2)==="::"&&f--,u.substr(-2,2)==="::"&&f--,f>c)return null;for(_=c-f,y=":";_--;)y+="0:";return u=u.replace("::",y),u[0]===":"&&(u=u.slice(1)),u[u.length-1]===":"&&(u=u.slice(0,-1)),c=function(){var w,E,g,v;for(g=u.split(":"),v=[],w=0,E=g.length;w=0&&c<=32))return m=[this.parse(f[1]),c],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},e.IPv4.subnetMaskFromPrefixLength=function(u){var c,f,m;if(u=parseInt(u),u<0||u>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(m=[0,0,0,0],f=0,c=Math.floor(u/8);f=0&&c<=128))return m=[this.parse(f[1]),c],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},e.isValid=function(u){return e.IPv6.isValid(u)||e.IPv4.isValid(u)},e.parse=function(u){if(e.IPv6.isValid(u))return e.IPv6.parse(u);if(e.IPv4.isValid(u))return e.IPv4.parse(u);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},e.parseCIDR=function(u){var c;try{return e.IPv6.parseCIDR(u)}catch(f){c=f;try{return e.IPv4.parseCIDR(u)}catch(m){throw c=m,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},e.fromByteArray=function(u){var c;if(c=u.length,c===4)return new e.IPv4(u);if(c===16)return new e.IPv6(u);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},e.process=function(u){var c;return c=this.parse(u),c.kind()==="ipv6"&&c.isIPv4MappedAddress()?c.toIPv4Address():c}}).call(uD)});var mD=k((sRe,f9)=>{"use strict";f9.exports=yce;f9.exports.all=dD;f9.exports.compile=hD;var cce=oD(),fD=cD(),pce=/^[0-9]+$/,c9=fD.isValid,p9=fD.parse,pD={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function dD(t,e){var n=cce(t);if(!e)return n;typeof e!="function"&&(e=hD(e));for(var r=0;ri)throw new TypeError("invalid range on address: "+t);return[r,l]}function mce(t){var e=p9(t),n=e.kind();return n==="ipv4"?e.prefixLengthFromSubnetMask():null}function yce(t,e){if(!t)throw new TypeError("req argument is required");if(!e)throw new TypeError("trust argument is required");var n=dD(t,e),r=n[n.length-1];return r}function gce(){return!1}function vce(t){return function(n){if(!c9(n))return!1;for(var r=p9(n),i,l=r.kind(),s=0;s{var Ece="2.0.0",bce=Number.MAX_SAFE_INTEGER||9007199254740991,wce=16,Sce=250,Tce=["major","premajor","minor","preminor","patch","prepatch","prerelease"];yD.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:wce,MAX_SAFE_BUILD_LENGTH:Sce,MAX_SAFE_INTEGER:bce,RELEASE_TYPES:Tce,SEMVER_SPEC_VERSION:Ece,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var J4=k((oRe,gD)=>{var xce=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};gD.exports=xce});var d1=k((Ha,vD)=>{var{MAX_SAFE_COMPONENT_LENGTH:sg,MAX_SAFE_BUILD_LENGTH:Ace,MAX_LENGTH:Oce}=G4(),Nce=J4();Ha=vD.exports={};var Cce=Ha.re=[],Rce=Ha.safeRe=[],Je=Ha.src=[],Ke=Ha.t={},Ice=0,ag="[a-zA-Z0-9-]",kce=[["\\s",1],["\\d",Oce],[ag,Ace]],Dce=t=>{for(let[e,n]of kce)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},Ct=(t,e,n)=>{let r=Dce(e),i=Ice++;Nce(t,i,e),Ke[t]=i,Je[i]=e,Cce[i]=new RegExp(e,n?"g":void 0),Rce[i]=new RegExp(r,n?"g":void 0)};Ct("NUMERICIDENTIFIER","0|[1-9]\\d*");Ct("NUMERICIDENTIFIERLOOSE","\\d+");Ct("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${ag}*`);Ct("MAINVERSION",`(${Je[Ke.NUMERICIDENTIFIER]})\\.(${Je[Ke.NUMERICIDENTIFIER]})\\.(${Je[Ke.NUMERICIDENTIFIER]})`);Ct("MAINVERSIONLOOSE",`(${Je[Ke.NUMERICIDENTIFIERLOOSE]})\\.(${Je[Ke.NUMERICIDENTIFIERLOOSE]})\\.(${Je[Ke.NUMERICIDENTIFIERLOOSE]})`);Ct("PRERELEASEIDENTIFIER",`(?:${Je[Ke.NUMERICIDENTIFIER]}|${Je[Ke.NONNUMERICIDENTIFIER]})`);Ct("PRERELEASEIDENTIFIERLOOSE",`(?:${Je[Ke.NUMERICIDENTIFIERLOOSE]}|${Je[Ke.NONNUMERICIDENTIFIER]})`);Ct("PRERELEASE",`(?:-(${Je[Ke.PRERELEASEIDENTIFIER]}(?:\\.${Je[Ke.PRERELEASEIDENTIFIER]})*))`);Ct("PRERELEASELOOSE",`(?:-?(${Je[Ke.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Je[Ke.PRERELEASEIDENTIFIERLOOSE]})*))`);Ct("BUILDIDENTIFIER",`${ag}+`);Ct("BUILD",`(?:\\+(${Je[Ke.BUILDIDENTIFIER]}(?:\\.${Je[Ke.BUILDIDENTIFIER]})*))`);Ct("FULLPLAIN",`v?${Je[Ke.MAINVERSION]}${Je[Ke.PRERELEASE]}?${Je[Ke.BUILD]}?`);Ct("FULL",`^${Je[Ke.FULLPLAIN]}$`);Ct("LOOSEPLAIN",`[v=\\s]*${Je[Ke.MAINVERSIONLOOSE]}${Je[Ke.PRERELEASELOOSE]}?${Je[Ke.BUILD]}?`);Ct("LOOSE",`^${Je[Ke.LOOSEPLAIN]}$`);Ct("GTLT","((?:<|>)?=?)");Ct("XRANGEIDENTIFIERLOOSE",`${Je[Ke.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ct("XRANGEIDENTIFIER",`${Je[Ke.NUMERICIDENTIFIER]}|x|X|\\*`);Ct("XRANGEPLAIN",`[v=\\s]*(${Je[Ke.XRANGEIDENTIFIER]})(?:\\.(${Je[Ke.XRANGEIDENTIFIER]})(?:\\.(${Je[Ke.XRANGEIDENTIFIER]})(?:${Je[Ke.PRERELEASE]})?${Je[Ke.BUILD]}?)?)?`);Ct("XRANGEPLAINLOOSE",`[v=\\s]*(${Je[Ke.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Je[Ke.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Je[Ke.XRANGEIDENTIFIERLOOSE]})(?:${Je[Ke.PRERELEASELOOSE]})?${Je[Ke.BUILD]}?)?)?`);Ct("XRANGE",`^${Je[Ke.GTLT]}\\s*${Je[Ke.XRANGEPLAIN]}$`);Ct("XRANGELOOSE",`^${Je[Ke.GTLT]}\\s*${Je[Ke.XRANGEPLAINLOOSE]}$`);Ct("COERCE",`(^|[^\\d])(\\d{1,${sg}})(?:\\.(\\d{1,${sg}}))?(?:\\.(\\d{1,${sg}}))?(?:$|[^\\d])`);Ct("COERCERTL",Je[Ke.COERCE],!0);Ct("LONETILDE","(?:~>?)");Ct("TILDETRIM",`(\\s*)${Je[Ke.LONETILDE]}\\s+`,!0);Ha.tildeTrimReplace="$1~";Ct("TILDE",`^${Je[Ke.LONETILDE]}${Je[Ke.XRANGEPLAIN]}$`);Ct("TILDELOOSE",`^${Je[Ke.LONETILDE]}${Je[Ke.XRANGEPLAINLOOSE]}$`);Ct("LONECARET","(?:\\^)");Ct("CARETTRIM",`(\\s*)${Je[Ke.LONECARET]}\\s+`,!0);Ha.caretTrimReplace="$1^";Ct("CARET",`^${Je[Ke.LONECARET]}${Je[Ke.XRANGEPLAIN]}$`);Ct("CARETLOOSE",`^${Je[Ke.LONECARET]}${Je[Ke.XRANGEPLAINLOOSE]}$`);Ct("COMPARATORLOOSE",`^${Je[Ke.GTLT]}\\s*(${Je[Ke.LOOSEPLAIN]})$|^$`);Ct("COMPARATOR",`^${Je[Ke.GTLT]}\\s*(${Je[Ke.FULLPLAIN]})$|^$`);Ct("COMPARATORTRIM",`(\\s*)${Je[Ke.GTLT]}\\s*(${Je[Ke.LOOSEPLAIN]}|${Je[Ke.XRANGEPLAIN]})`,!0);Ha.comparatorTrimReplace="$1$2$3";Ct("HYPHENRANGE",`^\\s*(${Je[Ke.XRANGEPLAIN]})\\s+-\\s+(${Je[Ke.XRANGEPLAIN]})\\s*$`);Ct("HYPHENRANGELOOSE",`^\\s*(${Je[Ke.XRANGEPLAINLOOSE]})\\s+-\\s+(${Je[Ke.XRANGEPLAINLOOSE]})\\s*$`);Ct("STAR","(<|>)?=?\\s*\\*");Ct("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ct("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var d9=k((uRe,_D)=>{var Pce=Object.freeze({loose:!0}),Lce=Object.freeze({}),Fce=t=>t?typeof t!="object"?Pce:t:Lce;_D.exports=Fce});var og=k((cRe,wD)=>{var ED=/^[0-9]+$/,bD=(t,e)=>{let n=ED.test(t),r=ED.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:tbD(e,t);wD.exports={compareIdentifiers:bD,rcompareIdentifiers:jce}});var Mi=k((pRe,AD)=>{var h9=J4(),{MAX_LENGTH:SD,MAX_SAFE_INTEGER:m9}=G4(),{safeRe:TD,t:xD}=d1(),Uce=d9(),{compareIdentifiers:h1}=og(),ug=class t{constructor(e,n){if(n=Uce(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>SD)throw new TypeError(`version is longer than ${SD} characters`);h9("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?TD[xD.LOOSE]:TD[xD.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>m9||this.major<0)throw new TypeError("Invalid major version");if(this.minor>m9||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>m9||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let l=+i;if(l>=0&&l=0;)typeof this.prerelease[l]=="number"&&(this.prerelease[l]++,l=-2);if(l===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let l=[n,i];r===!1&&(l=[n]),h1(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=l):this.prerelease=l}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};AD.exports=ug});var Io=k((fRe,ND)=>{var OD=Mi(),Mce=(t,e,n=!1)=>{if(t instanceof OD)return t;try{return new OD(t,e)}catch(r){if(!n)return null;throw r}};ND.exports=Mce});var RD=k((dRe,CD)=>{var $ce=Io(),Bce=(t,e)=>{let n=$ce(t,e);return n?n.version:null};CD.exports=Bce});var kD=k((hRe,ID)=>{var Hce=Io(),Vce=(t,e)=>{let n=Hce(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};ID.exports=Vce});var LD=k((mRe,PD)=>{var DD=Mi(),qce=(t,e,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new DD(t instanceof DD?t.version:t,n).inc(e,r,i).version}catch{return null}};PD.exports=qce});var UD=k((yRe,jD)=>{var FD=Io(),zce=(t,e)=>{let n=FD(t,null,!0),r=FD(e,null,!0),i=n.compare(r);if(i===0)return null;let l=i>0,s=l?n:r,a=l?r:n,o=!!s.prerelease.length;if(!!a.prerelease.length&&!o)return!a.patch&&!a.minor?"major":s.patch?"patch":s.minor?"minor":"major";let c=o?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};jD.exports=zce});var $D=k((gRe,MD)=>{var Gce=Mi(),Jce=(t,e)=>new Gce(t,e).major;MD.exports=Jce});var HD=k((vRe,BD)=>{var Kce=Mi(),Xce=(t,e)=>new Kce(t,e).minor;BD.exports=Xce});var qD=k((_Re,VD)=>{var Wce=Mi(),Yce=(t,e)=>new Wce(t,e).patch;VD.exports=Yce});var GD=k((ERe,zD)=>{var Qce=Io(),Zce=(t,e)=>{let n=Qce(t,e);return n&&n.prerelease.length?n.prerelease:null};zD.exports=Zce});var Zl=k((bRe,KD)=>{var JD=Mi(),e5e=(t,e,n)=>new JD(t,n).compare(new JD(e,n));KD.exports=e5e});var WD=k((wRe,XD)=>{var t5e=Zl(),n5e=(t,e,n)=>t5e(e,t,n);XD.exports=n5e});var QD=k((SRe,YD)=>{var r5e=Zl(),i5e=(t,e)=>r5e(t,e,!0);YD.exports=i5e});var y9=k((TRe,eP)=>{var ZD=Mi(),l5e=(t,e,n)=>{let r=new ZD(t,n),i=new ZD(e,n);return r.compare(i)||r.compareBuild(i)};eP.exports=l5e});var nP=k((xRe,tP)=>{var s5e=y9(),a5e=(t,e)=>t.sort((n,r)=>s5e(n,r,e));tP.exports=a5e});var iP=k((ARe,rP)=>{var o5e=y9(),u5e=(t,e)=>t.sort((n,r)=>o5e(r,n,e));rP.exports=u5e});var K4=k((ORe,lP)=>{var c5e=Zl(),p5e=(t,e,n)=>c5e(t,e,n)>0;lP.exports=p5e});var g9=k((NRe,sP)=>{var f5e=Zl(),d5e=(t,e,n)=>f5e(t,e,n)<0;sP.exports=d5e});var cg=k((CRe,aP)=>{var h5e=Zl(),m5e=(t,e,n)=>h5e(t,e,n)===0;aP.exports=m5e});var pg=k((RRe,oP)=>{var y5e=Zl(),g5e=(t,e,n)=>y5e(t,e,n)!==0;oP.exports=g5e});var v9=k((IRe,uP)=>{var v5e=Zl(),_5e=(t,e,n)=>v5e(t,e,n)>=0;uP.exports=_5e});var _9=k((kRe,cP)=>{var E5e=Zl(),b5e=(t,e,n)=>E5e(t,e,n)<=0;cP.exports=b5e});var fg=k((DRe,pP)=>{var w5e=cg(),S5e=pg(),T5e=K4(),x5e=v9(),A5e=g9(),O5e=_9(),N5e=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return w5e(t,n,r);case"!=":return S5e(t,n,r);case">":return T5e(t,n,r);case">=":return x5e(t,n,r);case"<":return A5e(t,n,r);case"<=":return O5e(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};pP.exports=N5e});var dP=k((PRe,fP)=>{var C5e=Mi(),R5e=Io(),{safeRe:E9,t:b9}=d1(),I5e=(t,e)=>{if(t instanceof C5e)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(E9[b9.COERCE]);else{let r;for(;(r=E9[b9.COERCERTL].exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),E9[b9.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;E9[b9.COERCERTL].lastIndex=-1}return n===null?null:R5e(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,e)};fP.exports=I5e});var mP=k((LRe,hP)=>{"use strict";hP.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var gP=k((FRe,yP)=>{"use strict";yP.exports=on;on.Node=ko;on.create=on;function on(t){var e=this;if(e instanceof on||(e=new on),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=e;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;r!==null;i++)n=t(n,r.value,i),r=r.next;return n};on.prototype.reduceReverse=function(t,e){var n,r=this.tail;if(arguments.length>1)n=e;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;r!==null;i--)n=t(n,r.value,i),r=r.prev;return n};on.prototype.toArray=function(){for(var t=new Array(this.length),e=0,n=this.head;n!==null;e++)t[e]=n.value,n=n.next;return t};on.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,n=this.tail;n!==null;e++)t[e]=n.value,n=n.prev;return t};on.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var n=new on;if(ethis.length&&(e=this.length);for(var r=0,i=this.head;i!==null&&rthis.length&&(e=this.length);for(var r=this.length,i=this.tail;i!==null&&r>e;r--)i=i.prev;for(;i!==null&&r>t;r--,i=i.prev)n.push(i.value);return n};on.prototype.splice=function(t,e,...n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var r=0,i=this.head;i!==null&&r{"use strict";var L5e=gP(),Do=Symbol("max"),qa=Symbol("length"),m1=Symbol("lengthCalculator"),W4=Symbol("allowStale"),Po=Symbol("maxAge"),Va=Symbol("dispose"),vP=Symbol("noDisposeOnSet"),di=Symbol("lruList"),Ss=Symbol("cache"),EP=Symbol("updateAgeOnGet"),dg=()=>1,mg=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let n=this[Do]=e.max||1/0,r=e.length||dg;if(this[m1]=typeof r!="function"?dg:r,this[W4]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Po]=e.maxAge||0,this[Va]=e.dispose,this[vP]=e.noDisposeOnSet||!1,this[EP]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Do]=e||1/0,X4(this)}get max(){return this[Do]}set allowStale(e){this[W4]=!!e}get allowStale(){return this[W4]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Po]=e,X4(this)}get maxAge(){return this[Po]}set lengthCalculator(e){typeof e!="function"&&(e=dg),e!==this[m1]&&(this[m1]=e,this[qa]=0,this[di].forEach(n=>{n.length=this[m1](n.value,n.key),this[qa]+=n.length})),X4(this)}get lengthCalculator(){return this[m1]}get length(){return this[qa]}get itemCount(){return this[di].length}rforEach(e,n){n=n||this;for(let r=this[di].tail;r!==null;){let i=r.prev;_P(this,e,r,n),r=i}}forEach(e,n){n=n||this;for(let r=this[di].head;r!==null;){let i=r.next;_P(this,e,r,n),r=i}}keys(){return this[di].toArray().map(e=>e.key)}values(){return this[di].toArray().map(e=>e.value)}reset(){this[Va]&&this[di]&&this[di].length&&this[di].forEach(e=>this[Va](e.key,e.value)),this[Ss]=new Map,this[di]=new L5e,this[qa]=0}dump(){return this[di].map(e=>w9(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[di]}set(e,n,r){if(r=r||this[Po],r&&typeof r!="number")throw new TypeError("maxAge must be a number");let i=r?Date.now():0,l=this[m1](n,e);if(this[Ss].has(e)){if(l>this[Do])return y1(this,this[Ss].get(e)),!1;let o=this[Ss].get(e).value;return this[Va]&&(this[vP]||this[Va](e,o.value)),o.now=i,o.maxAge=r,o.value=n,this[qa]+=l-o.length,o.length=l,this.get(e),X4(this),!0}let s=new yg(e,n,l,i,r);return s.length>this[Do]?(this[Va]&&this[Va](e,n),!1):(this[qa]+=s.length,this[di].unshift(s),this[Ss].set(e,this[di].head),X4(this),!0)}has(e){if(!this[Ss].has(e))return!1;let n=this[Ss].get(e).value;return!w9(this,n)}get(e){return hg(this,e,!0)}peek(e){return hg(this,e,!1)}pop(){let e=this[di].tail;return e?(y1(this,e),e.value):null}del(e){y1(this,this[Ss].get(e))}load(e){this.reset();let n=Date.now();for(let r=e.length-1;r>=0;r--){let i=e[r],l=i.e||0;if(l===0)this.set(i.k,i.v);else{let s=l-n;s>0&&this.set(i.k,i.v,s)}}}prune(){this[Ss].forEach((e,n)=>hg(this,n,!1))}},hg=(t,e,n)=>{let r=t[Ss].get(e);if(r){let i=r.value;if(w9(t,i)){if(y1(t,r),!t[W4])return}else n&&(t[EP]&&(r.value.now=Date.now()),t[di].unshiftNode(r));return i.value}},w9=(t,e)=>{if(!e||!e.maxAge&&!t[Po])return!1;let n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[Po]&&n>t[Po]},X4=t=>{if(t[qa]>t[Do])for(let e=t[di].tail;t[qa]>t[Do]&&e!==null;){let n=e.prev;y1(t,e),e=n}},y1=(t,e)=>{if(e){let n=e.value;t[Va]&&t[Va](n.key,n.value),t[qa]-=n.length,t[Ss].delete(n.key),t[di].removeNode(e)}},yg=class{constructor(e,n,r,i,l){this.key=e,this.value=n,this.length=r,this.now=i,this.maxAge=l||0}},_P=(t,e,n,r)=>{let i=n.value;w9(t,i)&&(y1(t,n),t[W4]||(i=void 0)),i&&e.call(r,i.value,i.key,t)};bP.exports=mg});var es=k((URe,AP)=>{var gg=class t{constructor(e,n){if(n=j5e(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof vg)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(i=>!TP(i[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&q5e(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let r=((this.options.includePrerelease&&H5e)|(this.options.loose&&V5e))+":"+e,i=SP.get(r);if(i)return i;let l=this.options.loose,s=l?ml[el.HYPHENRANGELOOSE]:ml[el.HYPHENRANGE];e=e.replace(s,e6e(this.options.includePrerelease)),pr("hyphen replace",e),e=e.replace(ml[el.COMPARATORTRIM],M5e),pr("comparator trim",e),e=e.replace(ml[el.TILDETRIM],$5e),pr("tilde trim",e),e=e.replace(ml[el.CARETTRIM],B5e),pr("caret trim",e);let a=e.split(" ").map(f=>z5e(f,this.options)).join(" ").split(/\s+/).map(f=>Z5e(f,this.options));l&&(a=a.filter(f=>(pr("loose invalid filter",f,this.options),!!f.match(ml[el.COMPARATORLOOSE])))),pr("range list",a);let o=new Map,u=a.map(f=>new vg(f,this.options));for(let f of u){if(TP(f))return[f];o.set(f.value,f)}o.size>1&&o.has("")&&o.delete("");let c=[...o.values()];return SP.set(r,c),c}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>xP(r,n)&&e.set.some(i=>xP(i,n)&&r.every(l=>i.every(s=>l.intersects(s,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new U5e(e,this.options)}catch{return!1}for(let n=0;nt.value==="<0.0.0-0",q5e=t=>t.value==="",xP=(t,e)=>{let n=!0,r=t.slice(),i=r.pop();for(;n&&r.length;)n=r.every(l=>i.intersects(l,e)),i=r.pop();return n},z5e=(t,e)=>(pr("comp",t,e),t=K5e(t,e),pr("caret",t),t=G5e(t,e),pr("tildes",t),t=W5e(t,e),pr("xrange",t),t=Q5e(t,e),pr("stars",t),t),tl=t=>!t||t.toLowerCase()==="x"||t==="*",G5e=(t,e)=>t.trim().split(/\s+/).map(n=>J5e(n,e)).join(" "),J5e=(t,e)=>{let n=e.loose?ml[el.TILDELOOSE]:ml[el.TILDE];return t.replace(n,(r,i,l,s,a)=>{pr("tilde",t,r,i,l,s,a);let o;return tl(i)?o="":tl(l)?o=`>=${i}.0.0 <${+i+1}.0.0-0`:tl(s)?o=`>=${i}.${l}.0 <${i}.${+l+1}.0-0`:a?(pr("replaceTilde pr",a),o=`>=${i}.${l}.${s}-${a} <${i}.${+l+1}.0-0`):o=`>=${i}.${l}.${s} <${i}.${+l+1}.0-0`,pr("tilde return",o),o})},K5e=(t,e)=>t.trim().split(/\s+/).map(n=>X5e(n,e)).join(" "),X5e=(t,e)=>{pr("caret",t,e);let n=e.loose?ml[el.CARETLOOSE]:ml[el.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(i,l,s,a,o)=>{pr("caret",t,i,l,s,a,o);let u;return tl(l)?u="":tl(s)?u=`>=${l}.0.0${r} <${+l+1}.0.0-0`:tl(a)?l==="0"?u=`>=${l}.${s}.0${r} <${l}.${+s+1}.0-0`:u=`>=${l}.${s}.0${r} <${+l+1}.0.0-0`:o?(pr("replaceCaret pr",o),l==="0"?s==="0"?u=`>=${l}.${s}.${a}-${o} <${l}.${s}.${+a+1}-0`:u=`>=${l}.${s}.${a}-${o} <${l}.${+s+1}.0-0`:u=`>=${l}.${s}.${a}-${o} <${+l+1}.0.0-0`):(pr("no pr"),l==="0"?s==="0"?u=`>=${l}.${s}.${a}${r} <${l}.${s}.${+a+1}-0`:u=`>=${l}.${s}.${a}${r} <${l}.${+s+1}.0-0`:u=`>=${l}.${s}.${a} <${+l+1}.0.0-0`),pr("caret return",u),u})},W5e=(t,e)=>(pr("replaceXRanges",t,e),t.split(/\s+/).map(n=>Y5e(n,e)).join(" ")),Y5e=(t,e)=>{t=t.trim();let n=e.loose?ml[el.XRANGELOOSE]:ml[el.XRANGE];return t.replace(n,(r,i,l,s,a,o)=>{pr("xRange",t,r,i,l,s,a,o);let u=tl(l),c=u||tl(s),f=c||tl(a),m=f;return i==="="&&m&&(i=""),o=e.includePrerelease?"-0":"",u?i===">"||i==="<"?r="<0.0.0-0":r="*":i&&m?(c&&(s=0),a=0,i===">"?(i=">=",c?(l=+l+1,s=0,a=0):(s=+s+1,a=0)):i==="<="&&(i="<",c?l=+l+1:s=+s+1),i==="<"&&(o="-0"),r=`${i+l}.${s}.${a}${o}`):c?r=`>=${l}.0.0${o} <${+l+1}.0.0-0`:f&&(r=`>=${l}.${s}.0${o} <${l}.${+s+1}.0-0`),pr("xRange return",r),r})},Q5e=(t,e)=>(pr("replaceStars",t,e),t.trim().replace(ml[el.STAR],"")),Z5e=(t,e)=>(pr("replaceGTE0",t,e),t.trim().replace(ml[e.includePrerelease?el.GTE0PRE:el.GTE0],"")),e6e=t=>(e,n,r,i,l,s,a,o,u,c,f,m,d)=>(tl(r)?n="":tl(i)?n=`>=${r}.0.0${t?"-0":""}`:tl(l)?n=`>=${r}.${i}.0${t?"-0":""}`:s?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,tl(u)?o="":tl(c)?o=`<${+u+1}.0.0-0`:tl(f)?o=`<${u}.${+c+1}.0-0`:m?o=`<=${u}.${c}.${f}-${m}`:t?o=`<${u}.${c}.${+f+1}-0`:o=`<=${o}`,`${n} ${o}`.trim()),t6e=(t,e,n)=>{for(let r=0;r0){let i=t[r].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var Y4=k((MRe,kP)=>{var Q4=Symbol("SemVer ANY"),bg=class t{static get ANY(){return Q4}constructor(e,n){if(n=OP(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Eg("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===Q4?this.value="":this.value=this.operator+this.semver.version,Eg("comp",this)}parse(e){let n=this.options.loose?NP[CP.COMPARATORLOOSE]:NP[CP.COMPARATOR],r=e.match(n);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new RP(r[2],this.options.loose):this.semver=Q4}toString(){return this.value}test(e){if(Eg("Comparator.test",e,this.options.loose),this.semver===Q4||e===Q4)return!0;if(typeof e=="string")try{e=new RP(e,this.options)}catch{return!1}return _g(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new IP(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new IP(this.value,n).test(e.semver):(n=OP(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||_g(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||_g(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};kP.exports=bg;var OP=d9(),{safeRe:NP,t:CP}=d1(),_g=fg(),Eg=J4(),RP=Mi(),IP=es()});var Z4=k(($Re,DP)=>{var n6e=es(),r6e=(t,e,n)=>{try{e=new n6e(e,n)}catch{return!1}return e.test(t)};DP.exports=r6e});var LP=k((BRe,PP)=>{var i6e=es(),l6e=(t,e)=>new i6e(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));PP.exports=l6e});var jP=k((HRe,FP)=>{var s6e=Mi(),a6e=es(),o6e=(t,e,n)=>{let r=null,i=null,l=null;try{l=new a6e(e,n)}catch{return null}return t.forEach(s=>{l.test(s)&&(!r||i.compare(s)===-1)&&(r=s,i=new s6e(r,n))}),r};FP.exports=o6e});var MP=k((VRe,UP)=>{var u6e=Mi(),c6e=es(),p6e=(t,e,n)=>{let r=null,i=null,l=null;try{l=new c6e(e,n)}catch{return null}return t.forEach(s=>{l.test(s)&&(!r||i.compare(s)===1)&&(r=s,i=new u6e(r,n))}),r};UP.exports=p6e});var HP=k((qRe,BP)=>{var wg=Mi(),f6e=es(),$P=K4(),d6e=(t,e)=>{t=new f6e(t,e);let n=new wg("0.0.0");if(t.test(n)||(n=new wg("0.0.0-0"),t.test(n)))return n;n=null;for(let r=0;r{let a=new wg(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!l||$P(a,l))&&(l=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),l&&(!n||$P(n,l))&&(n=l)}return n&&t.test(n)?n:null};BP.exports=d6e});var qP=k((zRe,VP)=>{var h6e=es(),m6e=(t,e)=>{try{return new h6e(t,e).range||"*"}catch{return null}};VP.exports=m6e});var S9=k((GRe,KP)=>{var y6e=Mi(),JP=Y4(),{ANY:g6e}=JP,v6e=es(),_6e=Z4(),zP=K4(),GP=g9(),E6e=_9(),b6e=v9(),w6e=(t,e,n,r)=>{t=new y6e(t,r),e=new v6e(e,r);let i,l,s,a,o;switch(n){case">":i=zP,l=E6e,s=GP,a=">",o=">=";break;case"<":i=GP,l=b6e,s=zP,a="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_6e(t,e,r))return!1;for(let u=0;u{d.semver===g6e&&(d=new JP(">=0.0.0")),f=f||d,m=m||d,i(d.semver,f.semver,r)?f=d:s(d.semver,m.semver,r)&&(m=d)}),f.operator===a||f.operator===o||(!m.operator||m.operator===a)&&l(t,m.semver))return!1;if(m.operator===o&&s(t,m.semver))return!1}return!0};KP.exports=w6e});var WP=k((JRe,XP)=>{var S6e=S9(),T6e=(t,e,n)=>S6e(t,e,">",n);XP.exports=T6e});var QP=k((KRe,YP)=>{var x6e=S9(),A6e=(t,e,n)=>x6e(t,e,"<",n);YP.exports=A6e});var tL=k((XRe,eL)=>{var ZP=es(),O6e=(t,e,n)=>(t=new ZP(t,n),e=new ZP(e,n),t.intersects(e,n));eL.exports=O6e});var rL=k((WRe,nL)=>{var N6e=Z4(),C6e=Zl();nL.exports=(t,e,n)=>{let r=[],i=null,l=null,s=t.sort((c,f)=>C6e(c,f,n));for(let c of s)N6e(c,e,n)?(l=c,i||(i=c)):(l&&r.push([i,l]),l=null,i=null);i&&r.push([i,null]);let a=[];for(let[c,f]of r)c===f?a.push(c):!f&&c===s[0]?a.push("*"):f?c===s[0]?a.push(`<=${f}`):a.push(`${c} - ${f}`):a.push(`>=${c}`);let o=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return o.length{var iL=es(),Tg=Y4(),{ANY:Sg}=Tg,ec=Z4(),xg=Zl(),R6e=(t,e,n={})=>{if(t===e)return!0;t=new iL(t,n),e=new iL(e,n);let r=!1;e:for(let i of t.set){for(let l of e.set){let s=k6e(i,l,n);if(r=r||s!==null,s)continue e}if(r)return!1}return!0},I6e=[new Tg(">=0.0.0-0")],lL=[new Tg(">=0.0.0")],k6e=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Sg){if(e.length===1&&e[0].semver===Sg)return!0;n.includePrerelease?t=I6e:t=lL}if(e.length===1&&e[0].semver===Sg){if(n.includePrerelease)return!0;e=lL}let r=new Set,i,l;for(let d of t)d.operator===">"||d.operator===">="?i=sL(i,d,n):d.operator==="<"||d.operator==="<="?l=aL(l,d,n):r.add(d.semver);if(r.size>1)return null;let s;if(i&&l){if(s=xg(i.semver,l.semver,n),s>0)return null;if(s===0&&(i.operator!==">="||l.operator!=="<="))return null}for(let d of r){if(i&&!ec(d,String(i),n)||l&&!ec(d,String(l),n))return null;for(let y of e)if(!ec(d,String(y),n))return!1;return!0}let a,o,u,c,f=l&&!n.includePrerelease&&l.semver.prerelease.length?l.semver:!1,m=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&l.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let d of e){if(c=c||d.operator===">"||d.operator===">=",u=u||d.operator==="<"||d.operator==="<=",i){if(m&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===m.major&&d.semver.minor===m.minor&&d.semver.patch===m.patch&&(m=!1),d.operator===">"||d.operator===">="){if(a=sL(i,d,n),a===d&&a!==i)return!1}else if(i.operator===">="&&!ec(i.semver,String(d),n))return!1}if(l){if(f&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===f.major&&d.semver.minor===f.minor&&d.semver.patch===f.patch&&(f=!1),d.operator==="<"||d.operator==="<="){if(o=aL(l,d,n),o===d&&o!==l)return!1}else if(l.operator==="<="&&!ec(l.semver,String(d),n))return!1}if(!d.operator&&(l||i)&&s!==0)return!1}return!(i&&u&&!l&&s!==0||l&&c&&!i&&s!==0||m||f)},sL=(t,e,n)=>{if(!t)return e;let r=xg(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},aL=(t,e,n)=>{if(!t)return e;let r=xg(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};oL.exports=R6e});var Og=k((QRe,fL)=>{var Ag=d1(),cL=G4(),D6e=Mi(),pL=og(),P6e=Io(),L6e=RD(),F6e=kD(),j6e=LD(),U6e=UD(),M6e=$D(),$6e=HD(),B6e=qD(),H6e=GD(),V6e=Zl(),q6e=WD(),z6e=QD(),G6e=y9(),J6e=nP(),K6e=iP(),X6e=K4(),W6e=g9(),Y6e=cg(),Q6e=pg(),Z6e=v9(),e8e=_9(),t8e=fg(),n8e=dP(),r8e=Y4(),i8e=es(),l8e=Z4(),s8e=LP(),a8e=jP(),o8e=MP(),u8e=HP(),c8e=qP(),p8e=S9(),f8e=WP(),d8e=QP(),h8e=tL(),m8e=rL(),y8e=uL();fL.exports={parse:P6e,valid:L6e,clean:F6e,inc:j6e,diff:U6e,major:M6e,minor:$6e,patch:B6e,prerelease:H6e,compare:V6e,rcompare:q6e,compareLoose:z6e,compareBuild:G6e,sort:J6e,rsort:K6e,gt:X6e,lt:W6e,eq:Y6e,neq:Q6e,gte:Z6e,lte:e8e,cmp:t8e,coerce:n8e,Comparator:r8e,Range:i8e,satisfies:l8e,toComparators:s8e,maxSatisfying:a8e,minSatisfying:o8e,minVersion:u8e,validRange:c8e,outside:p8e,gtr:f8e,ltr:d8e,intersects:h8e,simplifyRange:m8e,subset:y8e,SemVer:D6e,re:Ag.re,src:Ag.src,tokens:Ag.t,SEMVER_SPEC_VERSION:cL.SEMVER_SPEC_VERSION,RELEASE_TYPES:cL.RELEASE_TYPES,compareIdentifiers:pL.compareIdentifiers,rcompareIdentifiers:pL.rcompareIdentifiers}});var x9=k((ZRe,Ig)=>{"use strict";var T9=mD(),g8e=Og(),{FSTDEP005:v8e,FSTDEP012:_8e,FSTDEP015:E8e,FSTDEP016:b8e,FSTDEP017:w8e,FSTDEP018:S8e}=La(),{kHasBeenDecorated:T8e,kSchemaBody:x8e,kSchemaHeaders:A8e,kSchemaParams:O8e,kSchemaQuerystring:dL,kSchemaController:Ng,kOptions:N8e,kRequestCacheValidateFns:C2,kRouteContext:Fr,kPublicRouteContext:hL,kRequestOriginalUrl:Cg}=pi(),{FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:C8e}=Li(),mL={body:x8e,headers:A8e,params:O8e,querystring:dL,query:dL};function Rg(t,e,n,r,i,l){this.id=t,this[Fr]=l,this.params=e,this.raw=n,this.query=r,this.log=i,this.body=void 0}Rg.props=[];function R8e(t){if(typeof t=="function")return t;if(t===!0)return function(){return!0};if(typeof t=="number")return function(e,n){return nn.trim());return T9.compile(e)}return T9.compile(t)}function I8e(t,e){return e?k8e(t,e):gL(t)}function gL(t){let e=t.props.slice();function n(r,i,l,s,a,o){this.id=r,this[Fr]=o,this.params=i,this.raw=l,this.query=s,this.log=a,this.body=void 0;for(var u,c=0;ct.config},schema:{get:()=>t.schema}}),Object.freeze(i)}},routerMethod:{get(){return S8e(),this[Fr].config?.method}},routeConfig:{get(){return b8e(),this[Fr][hL]?.config}},routeSchema:{get(){return E8e(),this[Fr][hL].schema}},is404:{get(){return this[Fr].config?.url===void 0}},connection:{get(){return g8e.gte(process.versions.node,"13.0.0")&&v8e(),this.raw.connection}},socket:{get(){return this.raw.socket}},ip:{get(){if(this.socket)return this.socket.remoteAddress}},hostname:{get(){return this.raw.headers.host||this.raw.headers[":authority"]}},protocol:{get(){if(this.socket)return this.socket.encrypted?"https":"http"}},headers:{get(){return this.additionalHeaders?Object.assign({},this.raw.headers,this.additionalHeaders):this.raw.headers},set(t){this.additionalHeaders=t}},getValidationFunction:{value:function(t){if(typeof t=="string"){let e=mL[t];return this[Fr][e]}else if(typeof t=="object")return this[Fr][C2]?.get(t)}},compileValidationSchema:{value:function(t,e=null){let{method:n,url:r}=this;if(this[Fr][C2]?.has(t))return this[Fr][C2].get(t);let l=(this[Fr].validatorCompiler||this.server[Ng].validatorCompiler||this.server[Ng].setupValidator(this.server[N8e])||this.server[Ng].validatorCompiler)({schema:t,method:n,url:r,httpPart:e});return this[Fr][C2]==null&&(this[Fr][C2]=new WeakMap),this[Fr][C2].set(t,l),l}},validateInput:{value:function(t,e,n){n=typeof e=="string"?e:n;let r=n!=null&&typeof n=="string"&&mL[n],i;if(r&&(i=this[Fr][r]),i==null&&(e==null||typeof e!="object"||Array.isArray(e)))throw new C8e(n);return i==null&&(this[Fr][C2]?.has(e)?i=this[Fr][C2].get(e):i=this.compileValidationSchema(e,n)),i(t)}}});Ig.exports=Rg;Ig.exports.buildRequest=I8e});var A9=k((eIe,vL)=>{"use strict";var{kFourOhFourContext:D8e,kReplySerializerDefault:P8e,kSchemaErrorFormatter:L8e,kErrorHandler:F8e,kChildLoggerFactory:j8e,kOptions:U8e,kReply:M8e,kRequest:$8e,kBodyLimit:B8e,kLogLevel:H8e,kContentTypeParser:V8e,kRouteByFastify:q8e,kRequestCacheValidateFns:z8e,kReplyCacheSerializeFns:G8e,kPublicRouteContext:J8e}=pi();function K8e({schema:t,handler:e,config:n,requestIdLogLabel:r,childLoggerFactory:i,errorHandler:l,bodyLimit:s,logLevel:a,logSerializers:o,attachValidation:u,validatorCompiler:c,serializerCompiler:f,replySerializer:m,schemaErrorFormatter:d,exposeHeadRoute:y,prefixTrailingSlash:_,server:S,isFastify:w}){this.schema=t,this.handler=e,this.Reply=S[M8e],this.Request=S[$8e],this.contentTypeParser=S[V8e],this.onRequest=null,this.onSend=null,this.onError=null,this.onTimeout=null,this.preHandler=null,this.onResponse=null,this.preSerialization=null,this.onRequestAbort=null,this.config=n,this.errorHandler=l||S[F8e],this.requestIdLogLabel=r||S[U8e].requestIdLogLabel,this.childLoggerFactory=i||S[j8e],this._middie=null,this._parserOptions={limit:s||S[B8e]},this.exposeHeadRoute=y,this.prefixTrailingSlash=_,this.logLevel=a||S[H8e],this.logSerializers=o,this[D8e]=null,this.attachValidation=u,this[P8e]=m,this.schemaErrorFormatter=d||S[L8e]||W8e,this[q8e]=w,this[z8e]=null,this[G8e]=null,this.validatorCompiler=c||null,this.serializerCompiler=f||null,this[J8e]=X8e(this),this.server=S}function X8e(t){return Object.create(null,{schema:{enumerable:!0,get(){return t.schema}},config:{enumerable:!0,get(){return t.config}}})}function W8e(t,e){let n="",r=", ";for(var i=0;i!==t.length;++i){let l=t[i];n+=e+(l.instancePath||"")+" "+l.message+r}return new Error(n.slice(0,-r.length))}vL.exports=K8e});var kg=k((tIe,_L)=>{"use strict";_L.exports={supportedMethods:["DELETE","GET","HEAD","PATCH","POST","PUT","OPTIONS","PROPFIND","PROPPATCH","MKCOL","COPY","MOVE","LOCK","UNLOCK","TRACE","SEARCH"]}});var jg=k((nIe,SL)=>{"use strict";var{kReply:Dg,kRequest:Pg,kState:Y8e,kHasBeenDecorated:Q8e}=pi(),{FST_ERR_DEC_ALREADY_PRESENT:EL,FST_ERR_DEC_MISSING_DEPENDENCY:Z8e,FST_ERR_DEC_AFTER_START:e9e,FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:t9e}=Li(),{FSTDEP006:n9e}=La();function r9e(t,e,n,r){if(Object.prototype.hasOwnProperty.call(t,e))throw new EL(e);Lg(t,e,r),n&&(typeof n.getter=="function"||typeof n.setter=="function")?Object.defineProperty(t,e,{get:n.getter,set:n.setter}):t[e]=n}function bL(t,e,n,r){let i=t.prototype;if(Object.prototype.hasOwnProperty.call(i,e)||N9(t,e))throw new EL(e);t[Q8e]=!0,Lg(t,e,r),n&&(typeof n.getter=="function"||typeof n.setter=="function")?Object.defineProperty(i,e,{get:n.getter,set:n.setter}):typeof n=="function"?i[e]=n:t.props.push({key:e,value:n})}function wL(t,e){typeof e=="object"&&e&&!(typeof e.getter=="function"||typeof e.setter=="function")&&n9e(t)}function i9e(t,e,n){return Fg(this,t),r9e(this,t,e,n),this}function O9(t,e){return e?e in t||t.prototype&&e in t.prototype||N9(t,e):t in this}function N9(t,e){return t.props?t.props.find(({key:n})=>n===e):!1}function l9e(t){return t&&N9(this[Pg],t)?!0:O9(this[Pg].prototype,t)}function s9e(t){return t&&N9(this[Dg],t)?!0:O9(this[Dg].prototype,t)}function Lg(t,e,n){if(n!=null){if(!Array.isArray(n))throw new t9e(e);for(var r=0;r!==n.length;++r)if(!O9(t,n[r]))throw new Z8e(n[r])}}function a9e(t,e,n){return Fg(this,t),wL(t,e),bL(this[Dg],t,e,n),this}function o9e(t,e,n){return Fg(this,t),wL(t,e),bL(this[Pg],t,e,n),this}function Fg(t,e){if(t[Y8e].started)throw new e9e(e)}SL.exports={add:i9e,exist:O9,existRequest:l9e,existReply:s9e,dependencies:Lg,decorateReply:a9e,decorateRequest:o9e}});var xL=k(ea=>{"use strict";var Ug=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=new Map,this.last=null,this.max=e,this.ttl=n}get size(){return this.items.size}clear(){this.items=new Map,this.first=null,this.last=null}delete(e){if(this.items.has(e)){let n=this.items.get(e);this.items.delete(e),n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;this.items.delete(e.key),this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(this.items.has(e))return this.items.get(e).expiry}get(e){if(this.items.has(e)){let n=this.items.get(e);if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl;return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items.set(e,r),this.size===1?this.first=r:this.last.next=r,this.last=r}},Mg=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=new Map,this.last=null,this.max=e,this.ttl=n}get size(){return this.items.size}bumpLru(e){if(this.last===e)return;let n=this.last,r=e.next,i=e.prev;this.first===e&&(this.first=r),e.next=null,e.prev=n,n.next=e,i!==null&&(i.next=r),r!==null&&(r.prev=i),this.last=e}clear(){this.items=new Map,this.first=null,this.last=null}delete(e){if(this.items.has(e)){let n=this.items.get(e);this.items.delete(e),n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;this.items.delete(e.key),this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(this.items.has(e))return this.items.get(e).expiry}get(e){if(this.items.has(e)){let n=this.items.get(e);if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return this.bumpLru(n),n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl,this.last!==i&&this.bumpLru(i);return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items.set(e,r),this.size===1?this.first=r:this.last.next=r,this.last=r}},tc=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=e,this.ttl=n}bumpLru(e){if(this.last===e)return;let n=this.last,r=e.next,i=e.prev;this.first===e&&(this.first=r),e.next=null,e.prev=n,n.next=e,i!==null&&(i.next=r),r!==null&&(r.prev=i),this.last=e}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];delete this.items[e],this.size--,n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return this.bumpLru(n),n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl,this.last!==i&&this.bumpLru(i);return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items[e]=r,++this.size===1?this.first=r:this.last.next=r,this.last=r}},C9=class{constructor(){this.records={}}initForCache(e,n){this.records[e]={[n]:{cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}}resetForCache(e){for(let n of Object.keys(this.records[e]))this.records[e][n]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}getStatistics(){return this.records}};function TL(t){return`${t.getFullYear()}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}`}var $g=class{constructor(e,n,r){this.cacheId=e,this.statisticTtlInHours=n,this.collectionStart=new Date,this.currentTimeStamp=TL(this.collectionStart),this.records=r||new C9,this.records.initForCache(this.cacheId,this.currentTimeStamp)}get currentRecord(){return this.records.records[this.cacheId][this.currentTimeStamp]||(this.records.records[this.cacheId][this.currentTimeStamp]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,sets:0,invalidateOne:0,invalidateAll:0}),this.records.records[this.cacheId][this.currentTimeStamp]}hoursPassed(){return(Date.now()-this.collectionStart)/1e3/60/60}addHit(){this.archiveIfNeeded(),this.currentRecord.hits++}addFalsyHit(){this.archiveIfNeeded(),this.currentRecord.falsyHits++}addEmptyHit(){this.archiveIfNeeded(),this.currentRecord.emptyHits++}addMiss(){this.archiveIfNeeded(),this.currentRecord.misses++}addEviction(){this.archiveIfNeeded(),this.currentRecord.evictions++}setCacheSize(e){this.archiveIfNeeded(),this.currentRecord.cacheSize=e}addExpiration(){this.archiveIfNeeded(),this.currentRecord.expirations++}addSet(){this.archiveIfNeeded(),this.currentRecord.sets++}addInvalidateOne(){this.archiveIfNeeded(),this.currentRecord.invalidateOne++}addInvalidateAll(){this.archiveIfNeeded(),this.currentRecord.invalidateAll++}getStatistics(){return this.records.getStatistics()}archiveIfNeeded(){this.hoursPassed()>=this.statisticTtlInHours&&(this.collectionStart=new Date,this.currentTimeStamp=TL(this.collectionStart),this.records.initForCache(this.cacheId,this.currentTimeStamp))}},R9=class extends tc{constructor(e,n,r,i,l){if(super(e||1e3,n||0),!r)throw new Error("Cache id is mandatory");this.hitStatistics=new $g(r,l!==void 0?l:24,i)}getStatistics(){return this.hitStatistics.getStatistics()}set(e,n){super.set(e,n),this.hitStatistics.addSet(),this.hitStatistics.setCacheSize(this.size)}evict(){super.evict(),this.hitStatistics.addEviction(),this.hitStatistics.setCacheSize(this.size)}delete(e,n=!1){super.delete(e),n||this.hitStatistics.addInvalidateOne(),this.hitStatistics.setCacheSize(this.size)}clear(){super.clear(),this.hitStatistics.addInvalidateAll(),this.hitStatistics.setCacheSize(this.size)}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e,!0),this.hitStatistics.addExpiration();return}return this.bumpLru(n),n.value||this.hitStatistics.addFalsyHit(),(n.value===void 0||n.value===null||n.value==="")&&this.hitStatistics.addEmptyHit(),this.hitStatistics.addHit(),n.value}this.hitStatistics.addMiss()}},I9=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=e,this.ttl=n}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];delete this.items[e],this.size--,n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl;return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items[e]=r,++this.size===1?this.first=r:this.last.next=r,this.last=r}};ea.Fifo=I9;ea.FifoMap=Ug;ea.FifoObject=I9;ea.HitStatisticsRecord=C9;ea.Lru=tc;ea.LruHitStatistics=R9;ea.LruMap=Mg;ea.LruObject=tc;ea.LruObjectHitStatistics=R9});var CL=k((iIe,nc)=>{"use strict";var P9=function(){};P9.prototype=Object.create(null);var k9=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,D9=/\\([\v\u0020-\u00ff])/gu,AL=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,Lo={type:"",parameters:new P9};Object.freeze(Lo.parameters);Object.freeze(Lo);function OL(t){if(typeof t!="string")throw new TypeError("argument header is required and must be a string");let e=t.indexOf(";"),n=e!==-1?t.slice(0,e).trim():t.trim();if(AL.test(n)===!1)throw new TypeError("invalid media type");let r={type:n.toLowerCase(),parameters:new P9};if(e===-1)return r;let i,l,s;for(k9.lastIndex=e;l=k9.exec(t);){if(l.index!==e)throw new TypeError("invalid parameter format");e+=l[0].length,i=l[1].toLowerCase(),s=l[2],s[0]==='"'&&(s=s.slice(1,s.length-1),D9.test(s)&&(s=s.replace(D9,"$1"))),r.parameters[i]=s}if(e!==t.length)throw new TypeError("invalid parameter format");return r}function NL(t){if(typeof t!="string")return Lo;let e=t.indexOf(";"),n=e!==-1?t.slice(0,e).trim():t.trim();if(AL.test(n)===!1)return Lo;let r={type:n.toLowerCase(),parameters:new P9};if(e===-1)return r;let i,l,s;for(k9.lastIndex=e;l=k9.exec(t);){if(l.index!==e)return Lo;e+=l[0].length,i=l[1].toLowerCase(),s=l[2],s[0]==='"'&&(s=s.slice(1,s.length-1),D9.test(s)&&(s=s.replace(D9,"$1"))),r.parameters[i]=s}return e!==t.length?Lo:r}nc.exports.default={parse:OL,safeParse:NL};nc.exports.parse=OL;nc.exports.safeParse=NL;nc.exports.defaultContentType=Lo});var PL=k((lIe,g1)=>{"use strict";var u9e=typeof Buffer<"u",RL=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,IL=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function kL(t,e,n){n==null&&e!==null&&typeof e=="object"&&(n=e,e=void 0),u9e&&Buffer.isBuffer(t)&&(t=t.toString()),t&&t.charCodeAt(0)===65279&&(t=t.slice(1));let r=JSON.parse(t,e);if(r===null||typeof r!="object")return r;let i=n&&n.protoAction||"error",l=n&&n.constructorAction||"error";if(i==="ignore"&&l==="ignore")return r;if(i!=="ignore"&&l!=="ignore"){if(RL.test(t)===!1&&IL.test(t)===!1)return r}else if(i!=="ignore"&&l==="ignore"){if(RL.test(t)===!1)return r}else if(IL.test(t)===!1)return r;return DL(r,{protoAction:i,constructorAction:l,safe:n&&n.safe})}function DL(t,{protoAction:e="error",constructorAction:n="error",safe:r}={}){let i=[t];for(;i.length;){let l=i;i=[];for(let s of l){if(e!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"__proto__")){if(r===!0)return null;if(e==="error")throw new SyntaxError("Object contains forbidden prototype property");delete s.__proto__}if(n!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"constructor")&&Object.prototype.hasOwnProperty.call(s.constructor,"prototype")){if(r===!0)return null;if(n==="error")throw new SyntaxError("Object contains forbidden prototype property");delete s.constructor}for(let a in s){let o=s[a];o&&typeof o=="object"&&i.push(o)}}}return t}function Bg(t,e,n){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return kL(t,e,n)}finally{Error.stackTraceLimit=r}}function c9e(t,e){let n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return kL(t,e,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=n}}g1.exports=Bg;g1.exports.default=Bg;g1.exports.parse=Bg;g1.exports.safeParse=c9e;g1.exports.scan=DL});var Gg=k((sIe,ic)=>{"use strict";var{AsyncResource:p9e}=require("node:async_hooks"),{Fifo:FL}=xL(),{safeParse:jL,defaultContentType:f9e}=CL(),d9e=PL(),{kDefaultJsonParse:rc,kContentTypeParser:v1,kBodyLimit:h9e,kRequestPayloadStream:UL,kState:Vg,kTestInternals:m9e,kReplyIsError:ML,kRouteContext:y9e}=pi(),{FST_ERR_CTP_INVALID_TYPE:$L,FST_ERR_CTP_EMPTY_TYPE:g9e,FST_ERR_CTP_ALREADY_PRESENT:v9e,FST_ERR_CTP_INVALID_HANDLER:_9e,FST_ERR_CTP_INVALID_PARSE_TYPE:E9e,FST_ERR_CTP_BODY_TOO_LARGE:LL,FST_ERR_CTP_INVALID_MEDIA_TYPE:b9e,FST_ERR_CTP_INVALID_CONTENT_LENGTH:w9e,FST_ERR_CTP_EMPTY_JSON_BODY:S9e,FST_ERR_CTP_INSTANCE_ALREADY_STARTED:qg}=Li();function za(t,e,n){this[rc]=HL(e,n),this.customParsers=new Map,this.customParsers.set("application/json",new Hg(!0,!1,t,this[rc])),this.customParsers.set("text/plain",new Hg(!0,!1,t,zg)),this.parserList=[new L9("application/json"),new L9("text/plain")],this.parserRegExpList=[],this.cache=new FL(100)}za.prototype.add=function(t,e,n){let r=typeof t=="string";if(!r&&!(t instanceof RegExp))throw new $L;if(r&&t.length===0)throw new g9e;if(typeof n!="function")throw new _9e;if(this.existingParser(t))throw new v9e(t);if(e.parseAs!==void 0&&e.parseAs!=="string"&&e.parseAs!=="buffer")throw new E9e(e.parseAs);let i=new Hg(e.parseAs==="string",e.parseAs==="buffer",e.bodyLimit,n);r&&t==="*"?this.customParsers.set("",i):(r?this.parserList.unshift(new L9(t)):(t.isEssence=t.source.indexOf(";")===-1,this.parserRegExpList.unshift(t)),this.customParsers.set(t.toString(),i))};za.prototype.hasParser=function(t){return this.customParsers.has(typeof t=="string"?t:t.toString())};za.prototype.existingParser=function(t){return t==="application/json"&&this.customParsers.has(t)?this.customParsers.get(t).fn!==this[rc]:t==="text/plain"&&this.customParsers.has(t)?this.customParsers.get(t).fn!==zg:this.hasParser(t)};za.prototype.getParser=function(t){if(this.hasParser(t))return this.customParsers.get(t);let e=this.cache.get(t);if(e!==void 0)return e;let n=jL(t);if(n===f9e)return this.customParsers.get("");for(var r=0;r!==this.parserList.length;++r){let l=this.parserList[r];if(C9e(n,l)){let s=this.customParsers.get(l.name);return this.cache.set(t,s),s}}for(var i=0;i!==this.parserRegExpList.length;++i){let l=this.parserRegExpList[i];if(R9e(t,n.type,l)){let s=this.customParsers.get(l.toString());return this.cache.set(t,s),s}}return this.customParsers.get("")};za.prototype.removeAll=function(){this.customParsers=new Map,this.parserRegExpList=[],this.parserList=[],this.cache=new FL(100)};za.prototype.remove=function(t){if(!(typeof t=="string"||t instanceof RegExp))throw new $L;let e=this.customParsers.delete(t.toString()),n=typeof t=="string"?this.parserList:this.parserRegExpList,r=n.findIndex(i=>i.toString()===t.toString());return r>-1&&n.splice(r,1),e||r>-1};za.prototype.run=function(t,e,n,r){let i=this.getParser(t);if(i===void 0){n.is404?e(n,r):r.send(new b9e(t||void 0));return}let l=new p9e("content-type-parser:run",n);if(i.asString===!0||i.asBuffer===!0)BL(n,r,r[y9e]._parserOptions,i,s);else{let a=i.fn(n,n[UL],s);a&&typeof a.then=="function"&&a.then(o=>s(null,o),s)}function s(a,o){l.runInAsyncScope(()=>{l.emitDestroy(),a?(r[ML]=!0,r.send(a)):(n.body=o,e(n,r))})}};function BL(t,e,n,r,i){let l=r.asString,s=n.limit===null?r.bodyLimit:n.limit,a=t.headers["content-length"]===void 0?NaN:Number(t.headers["content-length"]);if(a>s){e.header("connection","close"),e.send(new LL);return}let o=0,u=l===!0?"":[],c=t[UL]||t.raw;l===!0&&c.setEncoding("utf8"),c.on("data",f),c.on("end",m),c.on("error",m),c.resume();function f(d){o+=d.length;let{receivedEncodedLength:y=0}=c;if(o>s||y>s){c.removeListener("data",f),c.removeListener("end",m),c.removeListener("error",m),e.send(new LL);return}l===!0?u+=d:u.push(d)}function m(d){if(c.removeListener("data",f),c.removeListener("end",m),c.removeListener("error",m),d!==void 0){typeof d.statusCode=="number"&&d.statusCode>=400||(d.statusCode=400),e[ML]=!0,e.code(d.statusCode).send(d);return}if(l===!0&&(o=Buffer.byteLength(u)),!Number.isNaN(a)&&(c.receivedEncodedLength||o)!==a){e.header("connection","close"),e.send(new w9e);return}l===!1&&(u=Buffer.concat(u));let y=r.fn(t,u,i);y&&typeof y.then=="function"&&y.then(_=>i(null,_),i)}}function HL(t,e){return n;function n(r,i,l){if(i===""||i==null||Buffer.isBuffer(i)&&i.length===0)return l(new S9e,void 0);let s;try{s=d9e.parse(i,{protoAction:t,constructorAction:e})}catch(a){return a.statusCode=400,l(a,void 0)}l(null,s)}}function zg(t,e,n){n(null,e)}function Hg(t,e,n,r){this.asString=t,this.asBuffer=e,this.bodyLimit=n,this.fn=r}function T9e(t){let e=new za;return e[rc]=t[rc],e.customParsers=new Map(t.customParsers.entries()),e.parserList=t.parserList.slice(),e.parserRegExpList=t.parserRegExpList.slice(),e}function x9e(t,e,n){if(this[Vg].started)throw new qg("addContentTypeParser");return typeof e=="function"&&(n=e,e={}),e||(e={}),e.bodyLimit||(e.bodyLimit=this[h9e]),Array.isArray(t)?t.forEach(r=>this[v1].add(r,e,n)):this[v1].add(t,e,n),this}function A9e(t){return this[v1].hasParser(t)}function O9e(t){if(this[Vg].started)throw new qg("removeContentTypeParser");if(Array.isArray(t))for(let e of t)this[v1].remove(e);else this[v1].remove(t)}function N9e(){if(this[Vg].started)throw new qg("removeAllContentTypeParsers");this[v1].removeAll()}function C9e(t,e){if(e.isEssence)return t.type.indexOf(e)!==-1;if(t.type.indexOf(e.type)===-1)return!1;for(let n of e.parameterKeys)if(!(n in t.parameters)||t.parameters[n]!==e.parameters[n])return!1;return!0}function R9e(t,e,n){return n.isEssence?n.test(e):n.test(t)}function L9(t){this.name=t;let e=jL(t);if(this.isEssence=t.indexOf(";")===-1,this.isEssence===!1&&e.type===""){let n=t.split(";",1)[0];this.type=n===""?t:n}else this.type=e.type;this.parameters=e.parameters,this.parameterKeys=Object.keys(e.parameters)}L9.prototype.toString=function(){return this.name};ic.exports=za;ic.exports.helpers={buildContentTypeParser:T9e,addContentTypeParser:x9e,hasContentTypeParser:A9e,removeContentTypeParser:O9e,removeAllContentTypeParsers:N9e};ic.exports.defaultParsers={getDefaultJsonParser:HL,defaultTextParser:zg};ic.exports[m9e]={rawBody:BL}});var VL=k((aIe,F9)=>{"use strict";var I9e=Object.getPrototypeOf({});function Jg(t){function e(w){return w!=="constructor"&&w!=="prototype"&&w!=="__proto__"}function n(w){let E=0,g=w.length,v=new Array(g);for(E=0;Etypeof w!="object"||w===null||w instanceof RegExp||w instanceof Date||w instanceof Buffer:w=>typeof w!="object"||w===null||w instanceof RegExp||w instanceof Date,m=t&&typeof t.mergeArray=="function"?t.mergeArray({clone:d,deepmerge:_,getKeys:a,isMergeableObject:u}):i;function d(w){return u(w)?Array.isArray(w)?n(w):r(w):w}function y(w,E){let g={},v=a(w),x=a(E),O,N,R;for(O=0,N=v.length;O{"use strict";var qL=t1(),k9e=Symbol.for("json-schema-ref"),Kg=class{#e;#t;#r;#i;#l;constructor(e={}){this.#e={},this.#t={},this.#r=e.insertRefSymbol??!1,this.#i=e.allowEqualDuplicates??!0,this.#l=e.cloneSchemaWithoutRefs??!1}addSchema(e,n){e.$id!==void 0&&e.$id.charAt(0)!=="#"?n=e.$id:this.#u(e,n),this.#a(e,n)}getSchema(e,n="#"){let r=this.#e[e];if(r===void 0)throw new Error(`Cannot resolve ref "${e}${n}". Schema with id "${e}" is not found.`);return r.anchors[n]!==void 0?r.anchors[n]:zL(r.schema,n)}hasSchema(e){return this.#e[e]!==void 0}getSchemaRefs(e){let n=this.#e[e];if(n===void 0)throw new Error(`Schema with id "${e}" is not found.`);return n.refs}getSchemaDependencies(e,n={}){let r=this.#e[e];for(let i of r.refs){let l=i.schemaId;n[l]===void 0&&(n[l]=this.getSchema(l),this.getSchemaDependencies(l,n))}return n}derefSchema(e){if(this.#t[e]!==void 0)return;let n=this.#e[e];if(n===void 0)throw new Error(`Schema with id "${e}" is not found.`);!this.#l&&n.refs.length===0&&(this.#t[e]={schema:n.schema,anchors:n.anchors});let r=[];this.#n(n.schema,e,r);let i=this.getSchemaDependencies(e);for(let l in i){let s=i[l];this.#n(s,l,r)}for(let l of r){let{refSchemaId:s,refJsonPointer:a}=this.#s(l.ref,l.sourceSchemaId),o=this.getDerefSchema(s,a);if(o===null)throw new Error(`Cannot resolve ref "${l.ref}". Ref "${a}" is not found in schema "${s}".`);l.targetSchema=o,l.targetSchemaId=s}for(let l of r)this.#o(l,r)}getDerefSchema(e,n="#"){let r=this.#t[e];return r===void 0&&(this.derefSchema(e),r=this.#t[e]),r.anchors[n]!==void 0?r.anchors[n]:zL(r.schema,n)}#s(e,n){let r=e.indexOf("#");return r===-1?{refSchemaId:e,refJsonPointer:"#"}:r===0?{refSchemaId:n,refJsonPointer:e}:{refSchemaId:e.slice(0,r),refJsonPointer:e.slice(r)}}#a(e,n){let r=e.$id;r!==void 0&&typeof r=="string"&&(r.charAt(0)==="#"?this.#c(e,n,r):(this.#u(e,r),n=r));let i=e.$ref;if(i!==void 0&&typeof i=="string"){let{refSchemaId:l,refJsonPointer:s}=this.#s(i,n);this.#e[n].refs.push({schemaId:l,jsonPointer:s})}for(let l in e)typeof e[l]=="object"&&e[l]!==null&&this.#a(e[l],n)}#n(e,n,r=[]){let i=Array.isArray(e)?[...e]:{...e},l=i.$id;l!==void 0&&typeof l=="string"&&(l.charAt(0)==="#"?this.#f(i,n,l):(this.#p(i,l),n=l)),i.$ref!==void 0&&r.push({ref:i.$ref,sourceSchemaId:n,sourceSchema:i});for(let s in i){let a=i[s];typeof a=="object"&&a!==null&&(i[s]=this.#n(a,n,r))}return i}#o(e,n){let{sourceSchema:r,targetSchema:i}=e;if(r.$ref){if(this.#r&&(r[k9e]=r.$ref),delete r.$ref,i.$ref){let l=n.find(s=>s.sourceSchema===i);this.#o(l,n)}for(let l in i)if(l!=="$id"){if(r[l]!==void 0){if(qL(r[l],i[l]))continue;throw new Error(`Cannot resolve ref "${e.ref}". Property "${l}" is already exist in schema "${e.sourceSchemaId}".`)}r[l]=i[l]}e.isResolved=!0}}#u(e,n){let r=this.#e[n];if(r!==void 0){if(this.#i&&qL(e,r.schema))return;throw new Error(`There is already another schema with id "${n}".`)}this.#e[n]={schema:e,anchors:{},refs:[]}}#c(e,n,r){let{anchors:i}=this.#e[n];if(i[r]!==void 0)throw new Error(`There is already another anchor "${r}" in a schema "${n}".`);i[r]=e}#p(e,n){this.#t[n]===void 0&&(this.#t[n]={schema:e,anchors:{}})}#f(e,n,r){let{anchors:i}=this.#t[n];i[r]=e}};function zL(t,e){let n=e.split("/"),r=t;for(let i of n)if(!(i===""||i==="#")){if(typeof r!="object"||r===null)return null;r=r[i]}return r??null}GL.exports={RefResolver:Kg}});var QL=k((uIe,Wg)=>{"use strict";Wg.exports=Oe;Wg.exports.default=Oe;var D9e={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},KL={enum:["array","boolean","integer","null","number","object","string"]},XL=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,P9e=t9().fullFormats.uri,WL=t9().fullFormats.regex;function ts(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:i=t}={}){let l=null,s=0,a=s;return typeof t=="number"&&!(t%1)&&!isNaN(t)&&isFinite(t)?s===a&&typeof t=="number"&&isFinite(t)&&(t<0||isNaN(t))?(ts.errors=[{instancePath:e,schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1):(ts.errors=l,s===0):(ts.errors=[{instancePath:e,schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1)}var Xg={validate:Oe};function nl(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:i=t}={}){let l=null,s=0;if(s===0)if(Array.isArray(t)){if(t.length<1)return nl.errors=[{instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{var a=!0;let o=t.length;for(let u=0;u",limit:0},message:"must be > 0"}],!1}else return Oe.errors=[{instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===s}else var a=!0;if(a){if(t.maximum!==void 0){let g=t.maximum,v=s;if(!(typeof g=="number"&&isFinite(g)))return Oe.errors=[{instancePath:e+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===s}else var a=!0;if(a){if(t.exclusiveMaximum!==void 0){let g=t.exclusiveMaximum,v=s;if(!(typeof g=="number"&&isFinite(g)))return Oe.errors=[{instancePath:e+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===s}else var a=!0;if(a){if(t.minimum!==void 0){let g=t.minimum,v=s;if(!(typeof g=="number"&&isFinite(g)))return Oe.errors=[{instancePath:e+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===s}else var a=!0;if(a){if(t.exclusiveMinimum!==void 0){let g=t.exclusiveMinimum,v=s;if(!(typeof g=="number"&&isFinite(g)))return Oe.errors=[{instancePath:e+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===s}else var a=!0;if(a){if(t.maxLength!==void 0){let g=t.maxLength,v=s,x=s;if(!(typeof g=="number"&&!(g%1)&&!isNaN(g)&&isFinite(g)))return Oe.errors=[{instancePath:e+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(s===x&&typeof g=="number"&&isFinite(g)&&(g<0||isNaN(g)))return Oe.errors=[{instancePath:e+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=v===s}else var a=!0;if(a){if(t.minLength!==void 0){let g=s;ts(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:i})||(l=l===null?ts.errors:l.concat(ts.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.pattern!==void 0){let g=t.pattern,v=s;if(s===v&&s===v)if(typeof g=="string"){if(!WL(g))return Oe.errors=[{instancePath:e+"/pattern",schemaPath:"#/properties/pattern/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'}],!1}else return Oe.errors=[{instancePath:e+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===s}else var a=!0;if(a){if(t.additionalItems!==void 0){let g=s;Oe(t.additionalItems,{instancePath:e+"/additionalItems",parentData:t,parentDataProperty:"additionalItems",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.items!==void 0){let g=t.items,v=s,x=s,O=!1,N=s;Oe(g,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var o=N===s;if(O=O||o,!O){let U=s;nl(g,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(l=l===null?nl.errors:l.concat(nl.errors),s=l.length);var o=U===s;O=O||o}if(O)s=x,l!==null&&(x?l.length=x:l=null);else{let U={instancePath:e+"/items",schemaPath:"#/properties/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return l===null?l=[U]:l.push(U),s++,Oe.errors=l,!1}var a=v===s}else var a=!0;if(a){if(t.maxItems!==void 0){let g=t.maxItems,v=s,x=s;if(!(typeof g=="number"&&!(g%1)&&!isNaN(g)&&isFinite(g)))return Oe.errors=[{instancePath:e+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(s===x&&typeof g=="number"&&isFinite(g)&&(g<0||isNaN(g)))return Oe.errors=[{instancePath:e+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=v===s}else var a=!0;if(a){if(t.minItems!==void 0){let g=s;ts(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:i})||(l=l===null?ts.errors:l.concat(ts.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.uniqueItems!==void 0){let g=s;if(typeof t.uniqueItems!="boolean")return Oe.errors=[{instancePath:e+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var a=g===s}else var a=!0;if(a){if(t.contains!==void 0){let g=s;Oe(t.contains,{instancePath:e+"/contains",parentData:t,parentDataProperty:"contains",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.maxProperties!==void 0){let g=t.maxProperties,v=s,x=s;if(!(typeof g=="number"&&!(g%1)&&!isNaN(g)&&isFinite(g)))return Oe.errors=[{instancePath:e+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(s===x&&typeof g=="number"&&isFinite(g)&&(g<0||isNaN(g)))return Oe.errors=[{instancePath:e+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=v===s}else var a=!0;if(a){if(t.minProperties!==void 0){let g=s;ts(t.minProperties,{instancePath:e+"/minProperties",parentData:t,parentDataProperty:"minProperties",rootData:i})||(l=l===null?ts.errors:l.concat(ts.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.required!==void 0){let g=t.required,v=s;if(s===s)if(Array.isArray(g)){var u=!0;let N=g.length;for(let R=0;R1){let F={};for(;R--;){let te=g[R];if(typeof te=="string"){if(typeof F[te]=="number"){return U=F[te],Oe.errors=[{instancePath:e+"/required",schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:R,j:U},message:"must NOT have duplicate items (items ## "+U+" and "+R+" are identical)"}],!1;break}F[te]=R}}}}}else return Oe.errors=[{instancePath:e+"/required",schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=v===s}else var a=!0;if(a){if(t.additionalProperties!==void 0){let g=s;Oe(t.additionalProperties,{instancePath:e+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.definitions!==void 0){let g=t.definitions,v=s;if(s===v)if(g&&typeof g=="object"&&!Array.isArray(g))for(let O in g){let N=s;Oe(g[O],{instancePath:e+"/definitions/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:g,parentDataProperty:O,rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var c=N===s;if(!c)break}else return Oe.errors=[{instancePath:e+"/definitions",schemaPath:"#/properties/definitions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=v===s}else var a=!0;if(a){if(t.properties!==void 0){let g=t.properties,v=s;if(s===v)if(g&&typeof g=="object"&&!Array.isArray(g))for(let O in g){let N=s;Oe(g[O],{instancePath:e+"/properties/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:g,parentDataProperty:O,rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var f=N===s;if(!f)break}else return Oe.errors=[{instancePath:e+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=v===s}else var a=!0;if(a){if(t.patternProperties!==void 0){let g=t.patternProperties,v=s;if(s===v)if(g&&typeof g=="object"&&!Array.isArray(g)){for(let O in g){let N=s;if(s===N&&typeof O=="string"&&!WL(O)){let R={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"',propertyName:O};l===null?l=[R]:l.push(R),s++}var m=N===s;if(!m){let R={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames",keyword:"propertyNames",params:{propertyName:O},message:"property name must be valid"};return l===null?l=[R]:l.push(R),s++,Oe.errors=l,!1;break}}if(m)for(let O in g){let N=s;Oe(g[O],{instancePath:e+"/patternProperties/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:g,parentDataProperty:O,rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var d=N===s;if(!d)break}}else return Oe.errors=[{instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=v===s}else var a=!0;if(a){if(t.dependencies!==void 0){let g=t.dependencies,v=s;if(s===v)if(g&&typeof g=="object"&&!Array.isArray(g))for(let O in g){let N=g[O],R=s,U=s,F=!1,te=s;Oe(N,{instancePath:e+"/dependencies/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:g,parentDataProperty:O,rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var y=te===s;if(F=F||y,!F){let Q=s;if(s===s)if(Array.isArray(N)){var _=!0;let we=N.length;for(let se=0;se1){let me={};for(;se--;){let P=N[se];if(typeof P=="string"){if(typeof me[P]=="number"){ee=me[P];let G={instancePath:e+"/dependencies/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:se,j:ee},message:"must NOT have duplicate items (items ## "+ee+" and "+se+" are identical)"};l===null?l=[G]:l.push(G),s++;break}me[P]=se}}}}}else{let we={instancePath:e+"/dependencies/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"};l===null?l=[we]:l.push(we),s++}var y=Q===s;F=F||y}if(F)s=U,l!==null&&(U?l.length=U:l=null);else{let Q={instancePath:e+"/dependencies/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/dependencies/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return l===null?l=[Q]:l.push(Q),s++,Oe.errors=l,!1}var S=R===s;if(!S)break}else return Oe.errors=[{instancePath:e+"/dependencies",schemaPath:"#/properties/dependencies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=v===s}else var a=!0;if(a){if(t.propertyNames!==void 0){let g=s;Oe(t.propertyNames,{instancePath:e+"/propertyNames",parentData:t,parentDataProperty:"propertyNames",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.enum!==void 0){let g=t.enum,v=s;if(s===v)if(Array.isArray(g)){if(g.length<1)return Oe.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{let O=g.length,N;if(O>1){e:for(;O--;)for(N=O;N--;)if(YL(g[O],g[N])){return Oe.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/uniqueItems",keyword:"uniqueItems",params:{i:O,j:N},message:"must NOT have duplicate items (items ## "+N+" and "+O+" are identical)"}],!1;break e}}}}else return Oe.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=v===s}else var a=!0;if(a){if(t.type!==void 0){let g=t.type,v=s,x=s,O=!1,N=s;if(!(g==="array"||g==="boolean"||g==="integer"||g==="null"||g==="number"||g==="object"||g==="string")){let U={instancePath:e+"/type",schemaPath:"#/definitions/simpleTypes/enum",keyword:"enum",params:{allowedValues:KL.enum},message:"must be equal to one of the allowed values"};l===null?l=[U]:l.push(U),s++}var w=N===s;if(O=O||w,!O){let U=s;if(s===U)if(Array.isArray(g))if(g.length<1){let te={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};l===null?l=[te]:l.push(te),s++}else{var E=!0;let te=g.length;for(let Q=0;Q1){e:for(;Q--;)for(W=Q;W--;)if(YL(g[Q],g[W])){let ce={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i:Q,j:W},message:"must NOT have duplicate items (items ## "+W+" and "+Q+" are identical)"};l===null?l=[ce]:l.push(ce),s++;break e}}}}else{let te={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};l===null?l=[te]:l.push(te),s++}var w=U===s;O=O||w}if(O)s=x,l!==null&&(x?l.length=x:l=null);else{let U={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return l===null?l=[U]:l.push(U),s++,Oe.errors=l,!1}var a=v===s}else var a=!0;if(a){if(t.format!==void 0){let g=s;if(typeof t.format!="string")return Oe.errors=[{instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=g===s}else var a=!0;if(a){if(t.contentMediaType!==void 0){let g=s;if(typeof t.contentMediaType!="string")return Oe.errors=[{instancePath:e+"/contentMediaType",schemaPath:"#/properties/contentMediaType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=g===s}else var a=!0;if(a){if(t.contentEncoding!==void 0){let g=s;if(typeof t.contentEncoding!="string")return Oe.errors=[{instancePath:e+"/contentEncoding",schemaPath:"#/properties/contentEncoding/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=g===s}else var a=!0;if(a){if(t.if!==void 0){let g=s;Oe(t.if,{instancePath:e+"/if",parentData:t,parentDataProperty:"if",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.then!==void 0){let g=s;Oe(t.then,{instancePath:e+"/then",parentData:t,parentDataProperty:"then",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.else!==void 0){let g=s;Oe(t.else,{instancePath:e+"/else",parentData:t,parentDataProperty:"else",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.allOf!==void 0){let g=s;nl(t.allOf,{instancePath:e+"/allOf",parentData:t,parentDataProperty:"allOf",rootData:i})||(l=l===null?nl.errors:l.concat(nl.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.anyOf!==void 0){let g=s;nl(t.anyOf,{instancePath:e+"/anyOf",parentData:t,parentDataProperty:"anyOf",rootData:i})||(l=l===null?nl.errors:l.concat(nl.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.oneOf!==void 0){let g=s;nl(t.oneOf,{instancePath:e+"/oneOf",parentData:t,parentDataProperty:"oneOf",rootData:i})||(l=l===null?nl.errors:l.concat(nl.errors),s=l.length);var a=g===s}else var a=!0;if(a)if(t.not!==void 0){let g=s;Oe(t.not,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return Oe.errors=l,s===0}});var eF=k((cIe,ZL)=>{"use strict";var Yg=class t{constructor(e,n,r="#"){this.schema=e,this.schemaId=n,this.jsonPointer=r,this.mergedSchemaId=null}getPropertyLocation(e){let n=new t(this.schema[e],this.schemaId,this.jsonPointer+"/"+e);return this.mergedSchemaId!==null&&n.addMergedSchema(this.schema[e],this.mergedSchemaId,this.jsonPointer+"/"+e),n}getSchemaId(){return this.mergedSchemaId||this.schemaId}getOriginSchemaId(){return this.schemaId}getSchemaRef(){return this.getSchemaId()+this.jsonPointer}addMergedSchema(e,n,r="#"){this.schema=e,this.mergedSchemaId=n,this.jsonPointer=r}};ZL.exports=Yg});var dF=k((pIe,b1)=>{"use strict";var Qg=VL()(),L9e=u4()({proto:!0}),{RefResolver:F9e}=JL(),tF=QL(),j9e=nm(),U9e=Ky(),rF=eF(),M9e=/'/g,j9=2e4,iF="default",$9e=["floor","ceil","round","trunc"],lF=["default","json-stringify"],_1="!addComma && (addComma = true) || (json += ',')",sF=0;function Zg(t,e){if(!tF(t)){e?e=`"${e}" `:e="";let n=tF.errors[0],r=new Error(`${e}schema is invalid: data${n.instancePath} ${n.message}`);throw r.errors=Zg.errors,r}}function E1(t,e,n){let r=n.indexOf("#");r===-1&&(r=n.length);let i=n.slice(0,r)||e.getOriginSchemaId(),l=n.slice(r)||"#",s=t.refResolver.getSchema(i,l);if(s===null)throw new Error(`Cannot find reference "${n}"`);let a=new rF(s,i,l);return s.$ref!==void 0?E1(t,a,s.$ref):a}function nF(t,e){return t.$id&&t.$id.charAt(0)!=="#"?t.$id:e}function ev(t,e){Zg(t),e=e||{};let n={functions:[],functionsCounter:0,functionsNamesBySchema:new Map,options:e,wrapObjects:!0,refResolver:new F9e,rootSchemaId:t.$id||`__fjs_root_${sF++}`,validatorSchemasIds:new Set},r=nF(t,n.rootSchemaId);if(n.refResolver.hasSchema(r)||n.refResolver.addSchema(t,n.rootSchemaId),e.schema)for(let c in e.schema){let f=e.schema[c],m=nF(f,c);n.refResolver.hasSchema(m)||(Zg(f,c),n.refResolver.addSchema(f,c))}if(e.rounding&&!$9e.includes(e.rounding))throw new Error(`Unsupported integer rounding method ${e.rounding}`);if(e.largeArrayMechanism)if(lF.includes(e.largeArrayMechanism))iF=e.largeArrayMechanism;else throw new Error(`Unsupported large array mechanism ${e.largeArrayMechanism}`);if(e.largeArraySize)if(typeof e.largeArraySize=="string"&&Number.isFinite(Number.parseInt(e.largeArraySize,10)))j9=Number.parseInt(e.largeArraySize,10);else if(typeof e.largeArraySize=="number"&&Number.isInteger(e.largeArraySize))j9=e.largeArraySize;else if(typeof e.largeArraySize=="bigint")j9=Number(e.largeArraySize);else throw new Error(`Unsupported large array size. Expected integer-like, got ${typeof e.largeArraySize} with value ${e.largeArraySize}`);let i=new rF(t,n.rootSchemaId),l=ta(n,i,"input"),s;l==="json += anonymous0(input)"?s=`
+ module.exports = ${t.toString()}(validator, serializer)`}Qy.exports=O4e;Qy.exports.dependencies={Serializer:lm(),Validator:Yy()}});var Vk=k((mRe,Hk)=>{"use strict";var{dependencies:N4e}=Zy(),{Serializer:C4e,Validator:hRe}=N4e,R4e={mode:"standalone"},I4e=C4e.restoreFromState(R4e),k4e=null;Hk.exports=function(e,n){function r(l){let s=l&&typeof l.toJSON=="function"?l.toJSON():l;if(s===null)return"{}";let a=!1,o="{";return s.statusCode!==void 0&&(!a&&(a=!0)||(o+=","),o+='"statusCode":',o+=n.asNumber(s.statusCode)),s.code!==void 0&&(!a&&(a=!0)||(o+=","),o+='"code":',o+=n.asString(s.code)),s.error!==void 0&&(!a&&(a=!0)||(o+=","),o+='"error":',o+=n.asString(s.error)),s.message!==void 0&&(!a&&(a=!0)||(o+=","),o+='"message":',o+=n.asString(s.message)),o+"}"}return r}(k4e,I4e)});var V4=k((yRe,Jk)=>{"use strict";var qk=require("node:http").STATUS_CODES,D4e=nh(),{kReplyHeaders:k3,kReplyNextErrorHandler:l9,kReplyIsRunningOnErrorHook:P4e,kReplyHasStatusCode:L4e,kRouteContext:Gk}=di(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:F4e,FST_ERR_FAILED_ERROR_SERIALIZATION:j4e}=Ui(),{getSchemaSerializer:U4e}=f4(),eg=Vk(),M4e={func:B4e,toJSON(){return this.func.name.toString()+"()"}};function $4e(t,e,n){t[P4e]=!1;let r=t[Gk];if(t[l9]===!1){zk(e,t,function(a,o){try{a.raw.writeHead(a.raw.statusCode,a[k3])}catch(u){a.log.warn({req:a.request,res:a,err:u},u&&u.message),a.raw.writeHead(a.raw.statusCode)}a.raw.end(o)});return}let i=t[l9]||r.errorHandler;t[l9]=Object.getPrototypeOf(i),delete t[k3]["content-type"],delete t[k3]["content-length"];let l=i.func;if(!l){t[l9]=!1,zk(e,t,n);return}let s=l(e,t.request,t);s!==void 0&&(s!==null&&typeof s.then=="function"?D4e(s,t):t.send(s))}function B4e(t,e,n){if(V4e(t,n),!n[L4e]||n.statusCode===200){let r=t.statusCode||t.status;n.code(r>=400?r:500)}n.statusCode<500?n.log.info({res:n,err:t},t&&t.message):n.log.error({req:e,res:n,err:t},t&&t.message),n.send(t)}function zk(t,e,n){let r=e.raw,i=e.statusCode;e[k3]["content-type"]=e[k3]["content-type"]??"application/json; charset=utf-8";let l;try{let s=U4e(e[Gk],i,e[k3]["content-type"]);l=s===!1?eg({error:qk[i+""],code:t.code,message:t.message,statusCode:i}):s(Object.create(t,{error:{value:qk[i+""]},message:{value:t.message},statusCode:{value:i}}))}catch(s){e.log.error({err:s,statusCode:r.statusCode},"The serializer for the given status code failed"),e.code(500),l=eg(new j4e(s.message,t.message))}typeof l!="string"&&!Buffer.isBuffer(l)&&(l=eg(new F4e(typeof l))),e[k3]["content-length"]=""+Buffer.byteLength(l),n(e,l)}function H4e(t=M4e,e){if(!e)return t;let n=Object.create(t);return n.func=e,n}function V4e(t,e){let n=e.raw,r=n.statusCode;r=r>=400?r:500,t!=null&&(t.headers!==void 0&&e.headers(t.headers),t.status>=400?r=t.status:t.statusCode>=400&&(r=t.statusCode)),n.statusCode=r}Jk.exports={buildErrorHandler:H4e,handleError:$4e}});var p9=k((gRe,c9)=>{"use strict";var ig=require("node:stream").finished,q4e=require("node:stream").Readable,{kFourOhFourContext:Kk,kPublicRouteContext:Xk,kReplyErrorHandlerCalled:rD,kReplyHijacked:q4,kReplyStartTime:z4,kReplyEndTime:sg,kReplySerializer:Ha,kReplySerializerDefault:a9,kReplyIsError:o9,kReplyHeaders:ar,kReplyTrailers:hi,kReplyHasStatusCode:ag,kReplyIsRunningOnErrorHook:og,kReplyNextErrorHandler:z4e,kDisableRequestLogging:iD,kSchemaResponse:u9,kReplyCacheSerializeFns:C2,kSchemaController:tg,kOptions:G4e,kRouteContext:jt}=di(),{onSendHookRunner:lD,onResponseHookRunner:J4e,preHandlerHookRunner:K4e,preSerializationHookRunner:X4e}=m2(),Wk=sh()[Symbol.for("internals")],W4e=c4(),lg=W4e.now,{handleError:Yk}=V4(),{getSchemaSerializer:Y4e}=f4(),ng={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:Q4e,FST_ERR_REP_RESPONSE_BODY_CONSUMED:Z4e,FST_ERR_REP_ALREADY_SENT:sD,FST_ERR_REP_SENT_VALUE:ece,FST_ERR_SEND_INSIDE_ONERR:tce,FST_ERR_BAD_STATUS_CODE:nce,FST_ERR_BAD_TRAILER_NAME:rce,FST_ERR_BAD_TRAILER_VALUE:ice,FST_ERR_MISSING_SERIALIZATION_FN:lce,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:sce}=Ui(),{FSTDEP010:ace,FSTDEP013:oce,FSTDEP019:uce,FSTDEP020:cce}=Fa(),aD=Object.prototype.toString;function nr(t,e,n){this.raw=t,this[Ha]=null,this[rD]=!1,this[o9]=!1,this[og]=!1,this.request=e,this[ar]={},this[hi]=null,this[ag]=!1,this[z4]=void 0,this.log=n}nr.props=[];Object.defineProperties(nr.prototype,{[jt]:{get(){return this.request[jt]}},context:{get(){return uce(),this.request[jt]}},elapsedTime:{get(){return this[z4]===void 0?0:(this[sg]||lg())-this[z4]}},server:{get(){return this.request[jt].server}},sent:{enumerable:!0,get(){return(this[q4]||this.raw.writableEnded)===!0},set(t){if(ace(),t!==!0)throw new ece;if(this.sent&&this[q4])throw new sD(this.request.url,this.request.method);this[q4]=!0}},statusCode:{get(){return this.raw.statusCode},set(t){this.code(t)}},[Xk]:{get(){return this.request[Xk]}}});nr.prototype.hijack=function(){return this[q4]=!0,this};nr.prototype.send=function(t){if(this[og]===!0)throw new tce;if(this.sent)return this.log.warn({err:new sD(this.request.url,this.request.method)}),this;if(t instanceof Error||this[o9]===!0)return this[o9]=!1,G4(this,t,D3),this;if(t===void 0)return D3(this,t),this;let e=this.getHeader("content-type"),n=e!==void 0;if(t!==null){if(typeof t.pipe=="function"||typeof t.getReader=="function"||aD.call(t)==="[object Response]")return D3(this,t),this;if(t?.buffer instanceof ArrayBuffer){n===!1&&(this[ar]["content-type"]=ng.OCTET);let r=Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength);return D3(this,r),this}if(n===!1&&typeof t=="string")return this[ar]["content-type"]=ng.PLAIN,D3(this,t),this}if(this[Ha]!==null){if(typeof t!="string")return Qk(this,t),this;t=this[Ha](t)}else if(n===!1||e.indexOf("json")>-1){if(n===!1)this[ar]["content-type"]=ng.JSON;else if(e.indexOf("charset")===-1){let r=e.trim();r.endsWith(";")?this[ar]["content-type"]=`${r} charset=utf-8`:this[ar]["content-type"]=`${r}; charset=utf-8`}if(typeof t!="string")return Qk(this,t),this}return D3(this,t),this};nr.prototype.getHeader=function(t){t=t.toLowerCase();let e=this.raw,n=this[ar][t];return n===void 0&&e.hasHeader(t)&&(n=e.getHeader(t)),n};nr.prototype.getHeaders=function(){return{...this.raw.getHeaders(),...this[ar]}};nr.prototype.hasHeader=function(t){return t=t.toLowerCase(),this[ar][t]!==void 0||this.raw.hasHeader(t)};nr.prototype.removeHeader=function(t){return delete this[ar][t.toLowerCase()],this};nr.prototype.header=function(t,e=""){return t=t.toLowerCase(),this[ar][t]&&t==="set-cookie"?(typeof this[ar][t]=="string"&&(this[ar][t]=[this[ar][t]]),Array.isArray(e)?Array.prototype.push.apply(this[ar][t],e):this[ar][t].push(e)):this[ar][t]=e,this};nr.prototype.headers=function(t){let e=Object.keys(t);for(var n=0;n!==e.length;++n){let r=e[n];this.header(r,t[r])}return this};var pce=new Set(["transfer-encoding","content-length","host","cache-control","max-forwards","te","authorization","set-cookie","content-encoding","content-type","content-range","trailer"]);nr.prototype.trailer=function(t,e){if(t=t.toLowerCase(),pce.has(t))throw new rce(t);if(typeof e!="function")throw new ice(t,typeof e);return this[hi]===null&&(this[hi]={}),this[hi][t]=e,this};nr.prototype.hasTrailer=function(t){return this[hi]?.[t.toLowerCase()]!==void 0};nr.prototype.removeTrailer=function(t){return this[hi]===null?this:(this[hi][t.toLowerCase()]=void 0,this)};nr.prototype.code=function(t){let e=Number(t);if(isNaN(e)||e<100||e>599)throw new nce(t||String(t));return this.raw.statusCode=e,this[ag]=!0,this};nr.prototype.status=nr.prototype.code;nr.prototype.getSerializationFunction=function(t,e){let n;return typeof t=="string"||typeof t=="number"?typeof e=="string"?n=this[jt][u9]?.[t]?.[e]:n=this[jt][u9]?.[t]:typeof t=="object"&&(n=this[jt][C2]?.get(t)),n};nr.prototype.compileSerializationSchema=function(t,e=null,n=null){let{request:r}=this,{method:i,url:l}=r;if(this[jt][C2]?.has(t))return this[jt][C2].get(t);let a=(this[jt].serializerCompiler||this.server[tg].serializerCompiler||this.server[tg].setupSerializer(this.server[G4e])||this.server[tg].serializerCompiler)({schema:t,method:i,url:l,httpStatus:e,contentType:n});return this[jt][C2]==null&&(this[jt][C2]=new WeakMap),this[jt][C2].set(t,a),a};nr.prototype.serializeInput=function(t,e,n,r){let i=n,l;if(n=typeof e=="string"||typeof e=="number"?e:n,r=n&&i!==n?i:r,n!=null){if(r!=null?l=this[jt][u9]?.[n]?.[r]:l=this[jt][u9]?.[n],l==null)throw r?new sce(n,r):new lce(n)}else this[jt][C2]?.has(e)?l=this[jt][C2].get(e):l=this.compileSerializationSchema(e,n,r);return l(t)};nr.prototype.serialize=function(t){return this[Ha]!==null?this[Ha](t):this[jt]&&this[jt][a9]?this[jt][a9](t,this.raw.statusCode):cD(this[jt],t,this.raw.statusCode)};nr.prototype.serializer=function(t){return this[Ha]=t,this};nr.prototype.type=function(t){return this[ar]["content-type"]=t,this};nr.prototype.redirect=function(t,e){return typeof t=="string"&&(e=t,t=this[ag]?this.raw.statusCode:302),this.header("location",e).code(t).send()};nr.prototype.callNotFound=function(){return gce(this),this};nr.prototype.getResponseTime=function(){return cce(),this.elapsedTime};nr.prototype.then=function(t,e){if(this.sent){t();return}ig(this.raw,n=>{n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"?e?e(n):this.log&&this.log.warn("unhandled rejection on reply.then"):t()})};function Qk(t,e){t[jt].preSerialization!==null?X4e(t[jt].preSerialization,t.request,t,e,Zk):Zk(null,t.request,t,e)}function Zk(t,e,n,r){if(t!=null){G4(n,t);return}try{n[Ha]!==null?r=n[Ha](r):n[jt]&&n[jt][a9]?r=n[jt][a9](r,n.raw.statusCode):r=cD(n[jt],r,n.raw.statusCode,n[ar]["content-type"])}catch(i){fce(i,n),G4(n,i);return}D3(n,r)}function fce(t,e){t.serialization=e[jt].config}function D3(t,e){t[jt].onSend!==null?lD(t[jt].onSend,t.request,t,e,dce):oD(t,e)}function dce(t,e,n,r){t!=null?G4(n,t):oD(n,r)}function rg(t,e){let n=t.raw;try{n.writeHead(e,t[ar])}catch(r){throw r.code==="ERR_HTTP_HEADERS_SENT"&&t.log.warn(`Reply was already sent, did you forget to "return reply" in the "${t.request.raw.url}" (${t.request.raw.method}) route?`),r}}function oD(t,e){let n=t.raw,r=t.request;if(t[hi]!==null){let s=Object.keys(t[hi]),a="";for(let o of s)typeof t[hi][o]=="function"&&(a+=" ",a+=o);t.header("Transfer-Encoding","chunked"),t.header("Trailer",a.trim())}let i=aD.call(e)==="[object Response]";i&&typeof e.status=="number"&&t.code(e.status);let l=n.statusCode;if(e==null){l>=200&&l!==204&&l!==304&&r.method!=="HEAD"&&t[hi]===null&&(t[ar]["content-length"]="0"),rg(t,l),s9(e,n,t);return}if(l>=100&&l<200||l===204){t.removeHeader("content-type"),t.removeHeader("content-length"),rg(t,l),s9(void 0,n,t),typeof e.resume=="function"&&(e.on("error",pD),e.resume());return}if(typeof e.pipe=="function"){uD(e,n,t);return}if(typeof e.getReader=="function"){tD(e,n,t);return}if(i){if(typeof e.headers=="object"&&typeof e.headers.forEach=="function")for(let[s,a]of e.headers)t.header(s,a);if(e.body!=null){if(e.bodyUsed)throw new Z4e;tD(e.body,n,t)}return}if(typeof e!="string"&&!Buffer.isBuffer(e))throw new Q4e(typeof e);if(t[hi]===null){let s=t[ar]["content-length"];(!s||r.raw.method!=="HEAD"&&Number(s)!==Buffer.byteLength(e))&&(t[ar]["content-length"]=""+Buffer.byteLength(e))}rg(t,l),n.write(e),s9(e,n,t)}function eD(t,e,n){e.code==="ERR_STREAM_PREMATURE_CLOSE"?t[iD]||t.info({res:n},"stream closed prematurely"):t.warn({err:e},"response terminated with an error with headers already sent")}function tD(t,e,n){let r=q4e.fromWeb(t);uD(r,e,n)}function uD(t,e,n){let r=!0,i=!1;if(hce(t,e,n),ig(t,{readable:!0,writable:!1},function(l){r=!1,l!=null&&(e.headersSent||n.request.raw.aborted===!0?(i||(i=!0,eD(n.log,l,e)),e.destroy()):G4(n,l))}),ig(e,function(l){r&&(l!=null&&e.headersSent&&!i&&(i=!0,eD(n.log,l,e)),typeof t.destroy=="function"?t.destroy():typeof t.close=="function"?t.close(pD):typeof t.abort=="function"?t.abort():n.log.warn("stream payload does not end properly"))}),e.headersSent)n.log.warn("response will send, but you shouldn't use res.writeHead in stream mode");else for(let l in n[ar])e.setHeader(l,n[ar][l]);t.pipe(e)}function s9(t,e,n){if(n[hi]===null){e.end(null,null,null);return}let r=Object.keys(n[hi]),i={},l=0,s=!0;function a(){l===0&&(e.addTrailers(i),e.end(null,null,null))}for(let o of r){let u=function(f,m){l++,f?n.log.debug(f):i[o]=m,process.nextTick(a)};if(typeof n[hi][o]!="function")continue;s=!1,l--;let c=n[hi][o](n,t,u);typeof c=="object"&&typeof c.then=="function"?c.then(f=>u(null,f),u):c!=null&&(oce(),u(null,c))}s&&e.end(null,null,null)}function hce(t,e,n){n[hi]!==null&&t.on("end",()=>s9(null,e,n))}function G4(t,e,n){t[jt].onError!==null&&!t[z4e]?(t[og]=!0,lD(t[jt].onError,t.request,t,e,()=>Yk(t,e,n))):Yk(t,e,n)}function mce(t){t[z4]=lg();let e=n=>{t[sg]=lg(),t.raw.removeListener("finish",e),t.raw.removeListener("error",e);let r=t[jt];r&&r.onResponse!==null?J4e(r.onResponse,t.request,t,nD):nD(n,t.request,t)};t.raw.on("finish",e),t.raw.on("error",e)}function nD(t,e,n){if(n.log[iD])return;let r=n.elapsedTime;if(t!=null){n.log.error({res:n,err:t,responseTime:r},"request errored");return}n.log.info({res:n,responseTime:r},"request completed")}function yce(t){let e=t.props.slice();function n(r,i,l){this.raw=r,this[o9]=!1,this[rD]=!1,this[q4]=!1,this[Ha]=null,this.request=i,this[ar]={},this[hi]=null,this[z4]=void 0,this[sg]=void 0,this.log=l;for(var s,a=0;a{"use strict";fD.exports=vce;function vce(t){if(!t)throw new TypeError("argument req is required");var e=Ece(t.headers["x-forwarded-for"]||""),n=_ce(t),r=[n].concat(e);return r}function _ce(t){return t.socket?t.socket.remoteAddress:t.connection.remoteAddress}function Ece(t){for(var e=t.length,n=[],r=t.length,i=t.length-1;i>=0;i--)switch(t.charCodeAt(i)){case 32:r===e&&(r=e=i);break;case 44:r!==e&&n.push(t.substring(r,e)),r=e=i;break;default:r=i;break}return r!==e&&n.push(t.substring(r,e)),n}});var mD=k((hD,J4)=>{(function(){var t,e,n,r,i,l,s,a,o;e={},a=this,typeof J4<"u"&&J4!==null&&J4.exports?J4.exports=e:a.ipaddr=e,s=function(u,c,f,m){var d,y;if(u.length!==c.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(d=0;m>0;){if(y=f-m,y<0&&(y=0),u[d]>>y!==c[d]>>y)return!1;m-=f,d+=1}return!0},e.subnetMatch=function(u,c,f){var m,d,y,_,S;f==null&&(f="unicast");for(y in c)for(_=c[y],_[0]&&!(_[0]instanceof Array)&&(_=[_]),m=0,d=_.length;m=0;f=m+=-1)if(d=this.octets[f],d in S){if(_=S[d],y&&_!==0)return null;_!==8&&(y=!0),c+=_}else return null;return 32-c},u}(),n="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp("^"+n+"\\."+n+"\\."+n+"\\."+n+"$","i"),longValue:new RegExp("^"+n+"$","i")},e.IPv4.parser=function(u){var c,f,m,d,y;if(f=function(_){return _[0]==="0"&&_[1]!=="x"?parseInt(_,8):parseInt(_)},c=u.match(r.fourOctet))return function(){var _,S,w,E;for(w=c.slice(1,6),E=[],_=0,S=w.length;_4294967295||y<0)throw new Error("ipaddr: address outside defined range");return function(){var _,S;for(S=[],d=_=0;_<=24;d=_+=8)S.push(y>>d&255);return S}().reverse()}else return null},e.IPv6=function(){function u(c,f){var m,d,y,_,S,w;if(c.length===16)for(this.parts=[],m=d=0;d<=14;m=d+=2)this.parts.push(c[m]<<8|c[m+1]);else if(c.length===8)this.parts=c;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(w=this.parts,y=0,_=w.length;y<_;y++)if(S=w[y],!(0<=S&&S<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");f&&(this.zoneId=f)}return u.prototype.kind=function(){return"ipv6"},u.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},u.prototype.toRFC5952String=function(){var c,f,m,d,y;for(d=/((^|:)(0(:|$)){2,})/g,y=this.toNormalizedString(),c=0,f=-1;m=d.exec(y);)m[0].length>f&&(c=m.index,f=m[0].length);return f<0?y:y.substring(0,c)+"::"+y.substring(c+f)},u.prototype.toByteArray=function(){var c,f,m,d,y;for(c=[],y=this.parts,f=0,m=y.length;f>8),c.push(d&255);return c},u.prototype.toNormalizedString=function(){var c,f,m;return c=function(){var d,y,_,S;for(_=this.parts,S=[],d=0,y=_.length;d>8,c&255,f>>8,f&255])},u.prototype.prefixLengthFromSubnetMask=function(){var c,f,m,d,y,_,S;for(S={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},c=0,y=!1,f=m=7;m>=0;f=m+=-1)if(d=this.parts[f],d in S){if(_=S[d],y&&_!==0)return null;_!==16&&(y=!0),c+=_}else return null;return 128-c},u}(),i="(?:[0-9a-f]+::?)+",o="%[0-9a-z]{1,}",l={zoneIndex:new RegExp(o,"i"),native:new RegExp("^(::)?("+i+")?([0-9a-f]+)?(::)?("+o+")?$","i"),transitional:new RegExp("^((?:"+i+")|(?:::)(?:"+i+")?)"+(n+"\\."+n+"\\."+n+"\\."+n)+("("+o+")?$"),"i")},t=function(u,c){var f,m,d,y,_,S;if(u.indexOf("::")!==u.lastIndexOf("::"))return null;for(S=(u.match(l.zoneIndex)||[])[0],S&&(S=S.substring(1),u=u.replace(/%.+$/,"")),f=0,m=-1;(m=u.indexOf(":",m+1))>=0;)f++;if(u.substr(0,2)==="::"&&f--,u.substr(-2,2)==="::"&&f--,f>c)return null;for(_=c-f,y=":";_--;)y+="0:";return u=u.replace("::",y),u[0]===":"&&(u=u.slice(1)),u[u.length-1]===":"&&(u=u.slice(0,-1)),c=function(){var w,E,g,v;for(g=u.split(":"),v=[],w=0,E=g.length;w=0&&c<=32))return m=[this.parse(f[1]),c],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},e.IPv4.subnetMaskFromPrefixLength=function(u){var c,f,m;if(u=parseInt(u),u<0||u>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(m=[0,0,0,0],f=0,c=Math.floor(u/8);f=0&&c<=128))return m=[this.parse(f[1]),c],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},e.isValid=function(u){return e.IPv6.isValid(u)||e.IPv4.isValid(u)},e.parse=function(u){if(e.IPv6.isValid(u))return e.IPv6.parse(u);if(e.IPv4.isValid(u))return e.IPv4.parse(u);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},e.parseCIDR=function(u){var c;try{return e.IPv6.parseCIDR(u)}catch(f){c=f;try{return e.IPv4.parseCIDR(u)}catch(m){throw c=m,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},e.fromByteArray=function(u){var c;if(c=u.length,c===4)return new e.IPv4(u);if(c===16)return new e.IPv6(u);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},e.process=function(u){var c;return c=this.parse(u),c.kind()==="ipv6"&&c.isIPv4MappedAddress()?c.toIPv4Address():c}}).call(hD)});var ED=k((_Re,h9)=>{"use strict";h9.exports=Oce;h9.exports.all=vD;h9.exports.compile=_D;var bce=dD(),gD=mD(),wce=/^[0-9]+$/,f9=gD.isValid,d9=gD.parse,yD={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function vD(t,e){var n=bce(t);if(!e)return n;typeof e!="function"&&(e=_D(e));for(var r=0;ri)throw new TypeError("invalid range on address: "+t);return[r,l]}function Ace(t){var e=d9(t),n=e.kind();return n==="ipv4"?e.prefixLengthFromSubnetMask():null}function Oce(t,e){if(!t)throw new TypeError("req argument is required");if(!e)throw new TypeError("trust argument is required");var n=vD(t,e),r=n[n.length-1];return r}function Nce(){return!1}function Cce(t){return function(n){if(!f9(n))return!1;for(var r=d9(n),i,l=r.kind(),s=0;s{var Ice="2.0.0",kce=Number.MAX_SAFE_INTEGER||9007199254740991,Dce=16,Pce=250,Lce=["major","premajor","minor","preminor","patch","prepatch","prerelease"];bD.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Dce,MAX_SAFE_BUILD_LENGTH:Pce,MAX_SAFE_INTEGER:kce,RELEASE_TYPES:Lce,SEMVER_SPEC_VERSION:Ice,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var X4=k((bRe,wD)=>{var Fce=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};wD.exports=Fce});var y1=k((Va,SD)=>{var{MAX_SAFE_COMPONENT_LENGTH:ug,MAX_SAFE_BUILD_LENGTH:jce,MAX_LENGTH:Uce}=K4(),Mce=X4();Va=SD.exports={};var $ce=Va.re=[],Bce=Va.safeRe=[],Je=Va.src=[],Ke=Va.t={},Hce=0,cg="[a-zA-Z0-9-]",Vce=[["\\s",1],["\\d",Uce],[cg,jce]],qce=t=>{for(let[e,n]of Vce)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},Ct=(t,e,n)=>{let r=qce(e),i=Hce++;Mce(t,i,e),Ke[t]=i,Je[i]=e,$ce[i]=new RegExp(e,n?"g":void 0),Bce[i]=new RegExp(r,n?"g":void 0)};Ct("NUMERICIDENTIFIER","0|[1-9]\\d*");Ct("NUMERICIDENTIFIERLOOSE","\\d+");Ct("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${cg}*`);Ct("MAINVERSION",`(${Je[Ke.NUMERICIDENTIFIER]})\\.(${Je[Ke.NUMERICIDENTIFIER]})\\.(${Je[Ke.NUMERICIDENTIFIER]})`);Ct("MAINVERSIONLOOSE",`(${Je[Ke.NUMERICIDENTIFIERLOOSE]})\\.(${Je[Ke.NUMERICIDENTIFIERLOOSE]})\\.(${Je[Ke.NUMERICIDENTIFIERLOOSE]})`);Ct("PRERELEASEIDENTIFIER",`(?:${Je[Ke.NUMERICIDENTIFIER]}|${Je[Ke.NONNUMERICIDENTIFIER]})`);Ct("PRERELEASEIDENTIFIERLOOSE",`(?:${Je[Ke.NUMERICIDENTIFIERLOOSE]}|${Je[Ke.NONNUMERICIDENTIFIER]})`);Ct("PRERELEASE",`(?:-(${Je[Ke.PRERELEASEIDENTIFIER]}(?:\\.${Je[Ke.PRERELEASEIDENTIFIER]})*))`);Ct("PRERELEASELOOSE",`(?:-?(${Je[Ke.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Je[Ke.PRERELEASEIDENTIFIERLOOSE]})*))`);Ct("BUILDIDENTIFIER",`${cg}+`);Ct("BUILD",`(?:\\+(${Je[Ke.BUILDIDENTIFIER]}(?:\\.${Je[Ke.BUILDIDENTIFIER]})*))`);Ct("FULLPLAIN",`v?${Je[Ke.MAINVERSION]}${Je[Ke.PRERELEASE]}?${Je[Ke.BUILD]}?`);Ct("FULL",`^${Je[Ke.FULLPLAIN]}$`);Ct("LOOSEPLAIN",`[v=\\s]*${Je[Ke.MAINVERSIONLOOSE]}${Je[Ke.PRERELEASELOOSE]}?${Je[Ke.BUILD]}?`);Ct("LOOSE",`^${Je[Ke.LOOSEPLAIN]}$`);Ct("GTLT","((?:<|>)?=?)");Ct("XRANGEIDENTIFIERLOOSE",`${Je[Ke.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ct("XRANGEIDENTIFIER",`${Je[Ke.NUMERICIDENTIFIER]}|x|X|\\*`);Ct("XRANGEPLAIN",`[v=\\s]*(${Je[Ke.XRANGEIDENTIFIER]})(?:\\.(${Je[Ke.XRANGEIDENTIFIER]})(?:\\.(${Je[Ke.XRANGEIDENTIFIER]})(?:${Je[Ke.PRERELEASE]})?${Je[Ke.BUILD]}?)?)?`);Ct("XRANGEPLAINLOOSE",`[v=\\s]*(${Je[Ke.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Je[Ke.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Je[Ke.XRANGEIDENTIFIERLOOSE]})(?:${Je[Ke.PRERELEASELOOSE]})?${Je[Ke.BUILD]}?)?)?`);Ct("XRANGE",`^${Je[Ke.GTLT]}\\s*${Je[Ke.XRANGEPLAIN]}$`);Ct("XRANGELOOSE",`^${Je[Ke.GTLT]}\\s*${Je[Ke.XRANGEPLAINLOOSE]}$`);Ct("COERCE",`(^|[^\\d])(\\d{1,${ug}})(?:\\.(\\d{1,${ug}}))?(?:\\.(\\d{1,${ug}}))?(?:$|[^\\d])`);Ct("COERCERTL",Je[Ke.COERCE],!0);Ct("LONETILDE","(?:~>?)");Ct("TILDETRIM",`(\\s*)${Je[Ke.LONETILDE]}\\s+`,!0);Va.tildeTrimReplace="$1~";Ct("TILDE",`^${Je[Ke.LONETILDE]}${Je[Ke.XRANGEPLAIN]}$`);Ct("TILDELOOSE",`^${Je[Ke.LONETILDE]}${Je[Ke.XRANGEPLAINLOOSE]}$`);Ct("LONECARET","(?:\\^)");Ct("CARETTRIM",`(\\s*)${Je[Ke.LONECARET]}\\s+`,!0);Va.caretTrimReplace="$1^";Ct("CARET",`^${Je[Ke.LONECARET]}${Je[Ke.XRANGEPLAIN]}$`);Ct("CARETLOOSE",`^${Je[Ke.LONECARET]}${Je[Ke.XRANGEPLAINLOOSE]}$`);Ct("COMPARATORLOOSE",`^${Je[Ke.GTLT]}\\s*(${Je[Ke.LOOSEPLAIN]})$|^$`);Ct("COMPARATOR",`^${Je[Ke.GTLT]}\\s*(${Je[Ke.FULLPLAIN]})$|^$`);Ct("COMPARATORTRIM",`(\\s*)${Je[Ke.GTLT]}\\s*(${Je[Ke.LOOSEPLAIN]}|${Je[Ke.XRANGEPLAIN]})`,!0);Va.comparatorTrimReplace="$1$2$3";Ct("HYPHENRANGE",`^\\s*(${Je[Ke.XRANGEPLAIN]})\\s+-\\s+(${Je[Ke.XRANGEPLAIN]})\\s*$`);Ct("HYPHENRANGELOOSE",`^\\s*(${Je[Ke.XRANGEPLAINLOOSE]})\\s+-\\s+(${Je[Ke.XRANGEPLAINLOOSE]})\\s*$`);Ct("STAR","(<|>)?=?\\s*\\*");Ct("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ct("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var m9=k((wRe,TD)=>{var zce=Object.freeze({loose:!0}),Gce=Object.freeze({}),Jce=t=>t?typeof t!="object"?zce:t:Gce;TD.exports=Jce});var pg=k((SRe,OD)=>{var xD=/^[0-9]+$/,AD=(t,e)=>{let n=xD.test(t),r=xD.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:tAD(e,t);OD.exports={compareIdentifiers:AD,rcompareIdentifiers:Kce}});var Hi=k((TRe,ID)=>{var y9=X4(),{MAX_LENGTH:ND,MAX_SAFE_INTEGER:g9}=K4(),{safeRe:CD,t:RD}=y1(),Xce=m9(),{compareIdentifiers:g1}=pg(),fg=class t{constructor(e,n){if(n=Xce(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ND)throw new TypeError(`version is longer than ${ND} characters`);y9("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?CD[RD.LOOSE]:CD[RD.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>g9||this.major<0)throw new TypeError("Invalid major version");if(this.minor>g9||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>g9||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let l=+i;if(l>=0&&l=0;)typeof this.prerelease[l]=="number"&&(this.prerelease[l]++,l=-2);if(l===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let l=[n,i];r===!1&&(l=[n]),g1(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=l):this.prerelease=l}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};ID.exports=fg});var P3=k((xRe,DD)=>{var kD=Hi(),Wce=(t,e,n=!1)=>{if(t instanceof kD)return t;try{return new kD(t,e)}catch(r){if(!n)return null;throw r}};DD.exports=Wce});var LD=k((ARe,PD)=>{var Yce=P3(),Qce=(t,e)=>{let n=Yce(t,e);return n?n.version:null};PD.exports=Qce});var jD=k((ORe,FD)=>{var Zce=P3(),e5e=(t,e)=>{let n=Zce(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};FD.exports=e5e});var $D=k((NRe,MD)=>{var UD=Hi(),t5e=(t,e,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new UD(t instanceof UD?t.version:t,n).inc(e,r,i).version}catch{return null}};MD.exports=t5e});var VD=k((CRe,HD)=>{var BD=P3(),n5e=(t,e)=>{let n=BD(t,null,!0),r=BD(e,null,!0),i=n.compare(r);if(i===0)return null;let l=i>0,s=l?n:r,a=l?r:n,o=!!s.prerelease.length;if(!!a.prerelease.length&&!o)return!a.patch&&!a.minor?"major":s.patch?"patch":s.minor?"minor":"major";let c=o?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};HD.exports=n5e});var zD=k((RRe,qD)=>{var r5e=Hi(),i5e=(t,e)=>new r5e(t,e).major;qD.exports=i5e});var JD=k((IRe,GD)=>{var l5e=Hi(),s5e=(t,e)=>new l5e(t,e).minor;GD.exports=s5e});var XD=k((kRe,KD)=>{var a5e=Hi(),o5e=(t,e)=>new a5e(t,e).patch;KD.exports=o5e});var YD=k((DRe,WD)=>{var u5e=P3(),c5e=(t,e)=>{let n=u5e(t,e);return n&&n.prerelease.length?n.prerelease:null};WD.exports=c5e});var es=k((PRe,ZD)=>{var QD=Hi(),p5e=(t,e,n)=>new QD(t,n).compare(new QD(e,n));ZD.exports=p5e});var tP=k((LRe,eP)=>{var f5e=es(),d5e=(t,e,n)=>f5e(e,t,n);eP.exports=d5e});var rP=k((FRe,nP)=>{var h5e=es(),m5e=(t,e)=>h5e(t,e,!0);nP.exports=m5e});var v9=k((jRe,lP)=>{var iP=Hi(),y5e=(t,e,n)=>{let r=new iP(t,n),i=new iP(e,n);return r.compare(i)||r.compareBuild(i)};lP.exports=y5e});var aP=k((URe,sP)=>{var g5e=v9(),v5e=(t,e)=>t.sort((n,r)=>g5e(n,r,e));sP.exports=v5e});var uP=k((MRe,oP)=>{var _5e=v9(),E5e=(t,e)=>t.sort((n,r)=>_5e(r,n,e));oP.exports=E5e});var W4=k(($Re,cP)=>{var b5e=es(),w5e=(t,e,n)=>b5e(t,e,n)>0;cP.exports=w5e});var _9=k((BRe,pP)=>{var S5e=es(),T5e=(t,e,n)=>S5e(t,e,n)<0;pP.exports=T5e});var dg=k((HRe,fP)=>{var x5e=es(),A5e=(t,e,n)=>x5e(t,e,n)===0;fP.exports=A5e});var hg=k((VRe,dP)=>{var O5e=es(),N5e=(t,e,n)=>O5e(t,e,n)!==0;dP.exports=N5e});var E9=k((qRe,hP)=>{var C5e=es(),R5e=(t,e,n)=>C5e(t,e,n)>=0;hP.exports=R5e});var b9=k((zRe,mP)=>{var I5e=es(),k5e=(t,e,n)=>I5e(t,e,n)<=0;mP.exports=k5e});var mg=k((GRe,yP)=>{var D5e=dg(),P5e=hg(),L5e=W4(),F5e=E9(),j5e=_9(),U5e=b9(),M5e=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return D5e(t,n,r);case"!=":return P5e(t,n,r);case">":return L5e(t,n,r);case">=":return F5e(t,n,r);case"<":return j5e(t,n,r);case"<=":return U5e(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};yP.exports=M5e});var vP=k((JRe,gP)=>{var $5e=Hi(),B5e=P3(),{safeRe:w9,t:S9}=y1(),H5e=(t,e)=>{if(t instanceof $5e)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(w9[S9.COERCE]);else{let r;for(;(r=w9[S9.COERCERTL].exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),w9[S9.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;w9[S9.COERCERTL].lastIndex=-1}return n===null?null:B5e(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,e)};gP.exports=H5e});var EP=k((KRe,_P)=>{"use strict";_P.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var wP=k((XRe,bP)=>{"use strict";bP.exports=on;on.Node=L3;on.create=on;function on(t){var e=this;if(e instanceof on||(e=new on),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=e;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;r!==null;i++)n=t(n,r.value,i),r=r.next;return n};on.prototype.reduceReverse=function(t,e){var n,r=this.tail;if(arguments.length>1)n=e;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;r!==null;i--)n=t(n,r.value,i),r=r.prev;return n};on.prototype.toArray=function(){for(var t=new Array(this.length),e=0,n=this.head;n!==null;e++)t[e]=n.value,n=n.next;return t};on.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,n=this.tail;n!==null;e++)t[e]=n.value,n=n.prev;return t};on.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var n=new on;if(ethis.length&&(e=this.length);for(var r=0,i=this.head;i!==null&&rthis.length&&(e=this.length);for(var r=this.length,i=this.tail;i!==null&&r>e;r--)i=i.prev;for(;i!==null&&r>t;r--,i=i.prev)n.push(i.value);return n};on.prototype.splice=function(t,e,...n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var r=0,i=this.head;i!==null&&r{"use strict";var G5e=wP(),F3=Symbol("max"),za=Symbol("length"),v1=Symbol("lengthCalculator"),Q4=Symbol("allowStale"),j3=Symbol("maxAge"),qa=Symbol("dispose"),SP=Symbol("noDisposeOnSet"),mi=Symbol("lruList"),Ts=Symbol("cache"),xP=Symbol("updateAgeOnGet"),yg=()=>1,vg=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let n=this[F3]=e.max||1/0,r=e.length||yg;if(this[v1]=typeof r!="function"?yg:r,this[Q4]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[j3]=e.maxAge||0,this[qa]=e.dispose,this[SP]=e.noDisposeOnSet||!1,this[xP]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[F3]=e||1/0,Y4(this)}get max(){return this[F3]}set allowStale(e){this[Q4]=!!e}get allowStale(){return this[Q4]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[j3]=e,Y4(this)}get maxAge(){return this[j3]}set lengthCalculator(e){typeof e!="function"&&(e=yg),e!==this[v1]&&(this[v1]=e,this[za]=0,this[mi].forEach(n=>{n.length=this[v1](n.value,n.key),this[za]+=n.length})),Y4(this)}get lengthCalculator(){return this[v1]}get length(){return this[za]}get itemCount(){return this[mi].length}rforEach(e,n){n=n||this;for(let r=this[mi].tail;r!==null;){let i=r.prev;TP(this,e,r,n),r=i}}forEach(e,n){n=n||this;for(let r=this[mi].head;r!==null;){let i=r.next;TP(this,e,r,n),r=i}}keys(){return this[mi].toArray().map(e=>e.key)}values(){return this[mi].toArray().map(e=>e.value)}reset(){this[qa]&&this[mi]&&this[mi].length&&this[mi].forEach(e=>this[qa](e.key,e.value)),this[Ts]=new Map,this[mi]=new G5e,this[za]=0}dump(){return this[mi].map(e=>T9(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[mi]}set(e,n,r){if(r=r||this[j3],r&&typeof r!="number")throw new TypeError("maxAge must be a number");let i=r?Date.now():0,l=this[v1](n,e);if(this[Ts].has(e)){if(l>this[F3])return _1(this,this[Ts].get(e)),!1;let o=this[Ts].get(e).value;return this[qa]&&(this[SP]||this[qa](e,o.value)),o.now=i,o.maxAge=r,o.value=n,this[za]+=l-o.length,o.length=l,this.get(e),Y4(this),!0}let s=new _g(e,n,l,i,r);return s.length>this[F3]?(this[qa]&&this[qa](e,n),!1):(this[za]+=s.length,this[mi].unshift(s),this[Ts].set(e,this[mi].head),Y4(this),!0)}has(e){if(!this[Ts].has(e))return!1;let n=this[Ts].get(e).value;return!T9(this,n)}get(e){return gg(this,e,!0)}peek(e){return gg(this,e,!1)}pop(){let e=this[mi].tail;return e?(_1(this,e),e.value):null}del(e){_1(this,this[Ts].get(e))}load(e){this.reset();let n=Date.now();for(let r=e.length-1;r>=0;r--){let i=e[r],l=i.e||0;if(l===0)this.set(i.k,i.v);else{let s=l-n;s>0&&this.set(i.k,i.v,s)}}}prune(){this[Ts].forEach((e,n)=>gg(this,n,!1))}},gg=(t,e,n)=>{let r=t[Ts].get(e);if(r){let i=r.value;if(T9(t,i)){if(_1(t,r),!t[Q4])return}else n&&(t[xP]&&(r.value.now=Date.now()),t[mi].unshiftNode(r));return i.value}},T9=(t,e)=>{if(!e||!e.maxAge&&!t[j3])return!1;let n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[j3]&&n>t[j3]},Y4=t=>{if(t[za]>t[F3])for(let e=t[mi].tail;t[za]>t[F3]&&e!==null;){let n=e.prev;_1(t,e),e=n}},_1=(t,e)=>{if(e){let n=e.value;t[qa]&&t[qa](n.key,n.value),t[za]-=n.length,t[Ts].delete(n.key),t[mi].removeNode(e)}},_g=class{constructor(e,n,r,i,l){this.key=e,this.value=n,this.length=r,this.now=i,this.maxAge=l||0}},TP=(t,e,n,r)=>{let i=n.value;T9(t,i)&&(_1(t,n),t[Q4]||(i=void 0)),i&&e.call(r,i.value,i.key,t)};AP.exports=vg});var ts=k((YRe,IP)=>{var Eg=class t{constructor(e,n){if(n=K5e(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof bg)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(i=>!CP(i[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&t6e(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let r=((this.options.includePrerelease&&Z5e)|(this.options.loose&&e6e))+":"+e,i=NP.get(r);if(i)return i;let l=this.options.loose,s=l?gl[nl.HYPHENRANGELOOSE]:gl[nl.HYPHENRANGE];e=e.replace(s,p6e(this.options.includePrerelease)),fr("hyphen replace",e),e=e.replace(gl[nl.COMPARATORTRIM],W5e),fr("comparator trim",e),e=e.replace(gl[nl.TILDETRIM],Y5e),fr("tilde trim",e),e=e.replace(gl[nl.CARETTRIM],Q5e),fr("caret trim",e);let a=e.split(" ").map(f=>n6e(f,this.options)).join(" ").split(/\s+/).map(f=>c6e(f,this.options));l&&(a=a.filter(f=>(fr("loose invalid filter",f,this.options),!!f.match(gl[nl.COMPARATORLOOSE])))),fr("range list",a);let o=new Map,u=a.map(f=>new bg(f,this.options));for(let f of u){if(CP(f))return[f];o.set(f.value,f)}o.size>1&&o.has("")&&o.delete("");let c=[...o.values()];return NP.set(r,c),c}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>RP(r,n)&&e.set.some(i=>RP(i,n)&&r.every(l=>i.every(s=>l.intersects(s,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new X5e(e,this.options)}catch{return!1}for(let n=0;nt.value==="<0.0.0-0",t6e=t=>t.value==="",RP=(t,e)=>{let n=!0,r=t.slice(),i=r.pop();for(;n&&r.length;)n=r.every(l=>i.intersects(l,e)),i=r.pop();return n},n6e=(t,e)=>(fr("comp",t,e),t=l6e(t,e),fr("caret",t),t=r6e(t,e),fr("tildes",t),t=a6e(t,e),fr("xrange",t),t=u6e(t,e),fr("stars",t),t),rl=t=>!t||t.toLowerCase()==="x"||t==="*",r6e=(t,e)=>t.trim().split(/\s+/).map(n=>i6e(n,e)).join(" "),i6e=(t,e)=>{let n=e.loose?gl[nl.TILDELOOSE]:gl[nl.TILDE];return t.replace(n,(r,i,l,s,a)=>{fr("tilde",t,r,i,l,s,a);let o;return rl(i)?o="":rl(l)?o=`>=${i}.0.0 <${+i+1}.0.0-0`:rl(s)?o=`>=${i}.${l}.0 <${i}.${+l+1}.0-0`:a?(fr("replaceTilde pr",a),o=`>=${i}.${l}.${s}-${a} <${i}.${+l+1}.0-0`):o=`>=${i}.${l}.${s} <${i}.${+l+1}.0-0`,fr("tilde return",o),o})},l6e=(t,e)=>t.trim().split(/\s+/).map(n=>s6e(n,e)).join(" "),s6e=(t,e)=>{fr("caret",t,e);let n=e.loose?gl[nl.CARETLOOSE]:gl[nl.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(i,l,s,a,o)=>{fr("caret",t,i,l,s,a,o);let u;return rl(l)?u="":rl(s)?u=`>=${l}.0.0${r} <${+l+1}.0.0-0`:rl(a)?l==="0"?u=`>=${l}.${s}.0${r} <${l}.${+s+1}.0-0`:u=`>=${l}.${s}.0${r} <${+l+1}.0.0-0`:o?(fr("replaceCaret pr",o),l==="0"?s==="0"?u=`>=${l}.${s}.${a}-${o} <${l}.${s}.${+a+1}-0`:u=`>=${l}.${s}.${a}-${o} <${l}.${+s+1}.0-0`:u=`>=${l}.${s}.${a}-${o} <${+l+1}.0.0-0`):(fr("no pr"),l==="0"?s==="0"?u=`>=${l}.${s}.${a}${r} <${l}.${s}.${+a+1}-0`:u=`>=${l}.${s}.${a}${r} <${l}.${+s+1}.0-0`:u=`>=${l}.${s}.${a} <${+l+1}.0.0-0`),fr("caret return",u),u})},a6e=(t,e)=>(fr("replaceXRanges",t,e),t.split(/\s+/).map(n=>o6e(n,e)).join(" ")),o6e=(t,e)=>{t=t.trim();let n=e.loose?gl[nl.XRANGELOOSE]:gl[nl.XRANGE];return t.replace(n,(r,i,l,s,a,o)=>{fr("xRange",t,r,i,l,s,a,o);let u=rl(l),c=u||rl(s),f=c||rl(a),m=f;return i==="="&&m&&(i=""),o=e.includePrerelease?"-0":"",u?i===">"||i==="<"?r="<0.0.0-0":r="*":i&&m?(c&&(s=0),a=0,i===">"?(i=">=",c?(l=+l+1,s=0,a=0):(s=+s+1,a=0)):i==="<="&&(i="<",c?l=+l+1:s=+s+1),i==="<"&&(o="-0"),r=`${i+l}.${s}.${a}${o}`):c?r=`>=${l}.0.0${o} <${+l+1}.0.0-0`:f&&(r=`>=${l}.${s}.0${o} <${l}.${+s+1}.0-0`),fr("xRange return",r),r})},u6e=(t,e)=>(fr("replaceStars",t,e),t.trim().replace(gl[nl.STAR],"")),c6e=(t,e)=>(fr("replaceGTE0",t,e),t.trim().replace(gl[e.includePrerelease?nl.GTE0PRE:nl.GTE0],"")),p6e=t=>(e,n,r,i,l,s,a,o,u,c,f,m,d)=>(rl(r)?n="":rl(i)?n=`>=${r}.0.0${t?"-0":""}`:rl(l)?n=`>=${r}.${i}.0${t?"-0":""}`:s?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,rl(u)?o="":rl(c)?o=`<${+u+1}.0.0-0`:rl(f)?o=`<${u}.${+c+1}.0-0`:m?o=`<=${u}.${c}.${f}-${m}`:t?o=`<${u}.${c}.${+f+1}-0`:o=`<=${o}`,`${n} ${o}`.trim()),f6e=(t,e,n)=>{for(let r=0;r0){let i=t[r].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var Z4=k((QRe,jP)=>{var ec=Symbol("SemVer ANY"),Tg=class t{static get ANY(){return ec}constructor(e,n){if(n=kP(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Sg("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===ec?this.value="":this.value=this.operator+this.semver.version,Sg("comp",this)}parse(e){let n=this.options.loose?DP[PP.COMPARATORLOOSE]:DP[PP.COMPARATOR],r=e.match(n);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new LP(r[2],this.options.loose):this.semver=ec}toString(){return this.value}test(e){if(Sg("Comparator.test",e,this.options.loose),this.semver===ec||e===ec)return!0;if(typeof e=="string")try{e=new LP(e,this.options)}catch{return!1}return wg(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new FP(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new FP(this.value,n).test(e.semver):(n=kP(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||wg(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||wg(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};jP.exports=Tg;var kP=m9(),{safeRe:DP,t:PP}=y1(),wg=mg(),Sg=X4(),LP=Hi(),FP=ts()});var tc=k((ZRe,UP)=>{var d6e=ts(),h6e=(t,e,n)=>{try{e=new d6e(e,n)}catch{return!1}return e.test(t)};UP.exports=h6e});var $P=k((eIe,MP)=>{var m6e=ts(),y6e=(t,e)=>new m6e(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));MP.exports=y6e});var HP=k((tIe,BP)=>{var g6e=Hi(),v6e=ts(),_6e=(t,e,n)=>{let r=null,i=null,l=null;try{l=new v6e(e,n)}catch{return null}return t.forEach(s=>{l.test(s)&&(!r||i.compare(s)===-1)&&(r=s,i=new g6e(r,n))}),r};BP.exports=_6e});var qP=k((nIe,VP)=>{var E6e=Hi(),b6e=ts(),w6e=(t,e,n)=>{let r=null,i=null,l=null;try{l=new b6e(e,n)}catch{return null}return t.forEach(s=>{l.test(s)&&(!r||i.compare(s)===1)&&(r=s,i=new E6e(r,n))}),r};VP.exports=w6e});var JP=k((rIe,GP)=>{var xg=Hi(),S6e=ts(),zP=W4(),T6e=(t,e)=>{t=new S6e(t,e);let n=new xg("0.0.0");if(t.test(n)||(n=new xg("0.0.0-0"),t.test(n)))return n;n=null;for(let r=0;r{let a=new xg(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!l||zP(a,l))&&(l=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),l&&(!n||zP(n,l))&&(n=l)}return n&&t.test(n)?n:null};GP.exports=T6e});var XP=k((iIe,KP)=>{var x6e=ts(),A6e=(t,e)=>{try{return new x6e(t,e).range||"*"}catch{return null}};KP.exports=A6e});var x9=k((lIe,ZP)=>{var O6e=Hi(),QP=Z4(),{ANY:N6e}=QP,C6e=ts(),R6e=tc(),WP=W4(),YP=_9(),I6e=b9(),k6e=E9(),D6e=(t,e,n,r)=>{t=new O6e(t,r),e=new C6e(e,r);let i,l,s,a,o;switch(n){case">":i=WP,l=I6e,s=YP,a=">",o=">=";break;case"<":i=YP,l=k6e,s=WP,a="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(R6e(t,e,r))return!1;for(let u=0;u{d.semver===N6e&&(d=new QP(">=0.0.0")),f=f||d,m=m||d,i(d.semver,f.semver,r)?f=d:s(d.semver,m.semver,r)&&(m=d)}),f.operator===a||f.operator===o||(!m.operator||m.operator===a)&&l(t,m.semver))return!1;if(m.operator===o&&s(t,m.semver))return!1}return!0};ZP.exports=D6e});var tL=k((sIe,eL)=>{var P6e=x9(),L6e=(t,e,n)=>P6e(t,e,">",n);eL.exports=L6e});var rL=k((aIe,nL)=>{var F6e=x9(),j6e=(t,e,n)=>F6e(t,e,"<",n);nL.exports=j6e});var sL=k((oIe,lL)=>{var iL=ts(),U6e=(t,e,n)=>(t=new iL(t,n),e=new iL(e,n),t.intersects(e,n));lL.exports=U6e});var oL=k((uIe,aL)=>{var M6e=tc(),$6e=es();aL.exports=(t,e,n)=>{let r=[],i=null,l=null,s=t.sort((c,f)=>$6e(c,f,n));for(let c of s)M6e(c,e,n)?(l=c,i||(i=c)):(l&&r.push([i,l]),l=null,i=null);i&&r.push([i,null]);let a=[];for(let[c,f]of r)c===f?a.push(c):!f&&c===s[0]?a.push("*"):f?c===s[0]?a.push(`<=${f}`):a.push(`${c} - ${f}`):a.push(`>=${c}`);let o=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return o.length{var uL=ts(),Og=Z4(),{ANY:Ag}=Og,nc=tc(),Ng=es(),B6e=(t,e,n={})=>{if(t===e)return!0;t=new uL(t,n),e=new uL(e,n);let r=!1;e:for(let i of t.set){for(let l of e.set){let s=V6e(i,l,n);if(r=r||s!==null,s)continue e}if(r)return!1}return!0},H6e=[new Og(">=0.0.0-0")],cL=[new Og(">=0.0.0")],V6e=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Ag){if(e.length===1&&e[0].semver===Ag)return!0;n.includePrerelease?t=H6e:t=cL}if(e.length===1&&e[0].semver===Ag){if(n.includePrerelease)return!0;e=cL}let r=new Set,i,l;for(let d of t)d.operator===">"||d.operator===">="?i=pL(i,d,n):d.operator==="<"||d.operator==="<="?l=fL(l,d,n):r.add(d.semver);if(r.size>1)return null;let s;if(i&&l){if(s=Ng(i.semver,l.semver,n),s>0)return null;if(s===0&&(i.operator!==">="||l.operator!=="<="))return null}for(let d of r){if(i&&!nc(d,String(i),n)||l&&!nc(d,String(l),n))return null;for(let y of e)if(!nc(d,String(y),n))return!1;return!0}let a,o,u,c,f=l&&!n.includePrerelease&&l.semver.prerelease.length?l.semver:!1,m=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&l.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let d of e){if(c=c||d.operator===">"||d.operator===">=",u=u||d.operator==="<"||d.operator==="<=",i){if(m&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===m.major&&d.semver.minor===m.minor&&d.semver.patch===m.patch&&(m=!1),d.operator===">"||d.operator===">="){if(a=pL(i,d,n),a===d&&a!==i)return!1}else if(i.operator===">="&&!nc(i.semver,String(d),n))return!1}if(l){if(f&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===f.major&&d.semver.minor===f.minor&&d.semver.patch===f.patch&&(f=!1),d.operator==="<"||d.operator==="<="){if(o=fL(l,d,n),o===d&&o!==l)return!1}else if(l.operator==="<="&&!nc(l.semver,String(d),n))return!1}if(!d.operator&&(l||i)&&s!==0)return!1}return!(i&&u&&!l&&s!==0||l&&c&&!i&&s!==0||m||f)},pL=(t,e,n)=>{if(!t)return e;let r=Ng(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},fL=(t,e,n)=>{if(!t)return e;let r=Ng(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};dL.exports=B6e});var Rg=k((pIe,gL)=>{var Cg=y1(),mL=K4(),q6e=Hi(),yL=pg(),z6e=P3(),G6e=LD(),J6e=jD(),K6e=$D(),X6e=VD(),W6e=zD(),Y6e=JD(),Q6e=XD(),Z6e=YD(),e8e=es(),t8e=tP(),n8e=rP(),r8e=v9(),i8e=aP(),l8e=uP(),s8e=W4(),a8e=_9(),o8e=dg(),u8e=hg(),c8e=E9(),p8e=b9(),f8e=mg(),d8e=vP(),h8e=Z4(),m8e=ts(),y8e=tc(),g8e=$P(),v8e=HP(),_8e=qP(),E8e=JP(),b8e=XP(),w8e=x9(),S8e=tL(),T8e=rL(),x8e=sL(),A8e=oL(),O8e=hL();gL.exports={parse:z6e,valid:G6e,clean:J6e,inc:K6e,diff:X6e,major:W6e,minor:Y6e,patch:Q6e,prerelease:Z6e,compare:e8e,rcompare:t8e,compareLoose:n8e,compareBuild:r8e,sort:i8e,rsort:l8e,gt:s8e,lt:a8e,eq:o8e,neq:u8e,gte:c8e,lte:p8e,cmp:f8e,coerce:d8e,Comparator:h8e,Range:m8e,satisfies:y8e,toComparators:g8e,maxSatisfying:v8e,minSatisfying:_8e,minVersion:E8e,validRange:b8e,outside:w8e,gtr:S8e,ltr:T8e,intersects:x8e,simplifyRange:A8e,subset:O8e,SemVer:q6e,re:Cg.re,src:Cg.src,tokens:Cg.t,SEMVER_SPEC_VERSION:mL.SEMVER_SPEC_VERSION,RELEASE_TYPES:mL.RELEASE_TYPES,compareIdentifiers:yL.compareIdentifiers,rcompareIdentifiers:yL.rcompareIdentifiers}});var O9=k((fIe,Pg)=>{"use strict";var A9=ED(),N8e=Rg(),{FSTDEP005:C8e,FSTDEP012:R8e,FSTDEP015:I8e,FSTDEP016:k8e,FSTDEP017:D8e,FSTDEP018:P8e}=Fa(),{kHasBeenDecorated:L8e,kSchemaBody:F8e,kSchemaHeaders:j8e,kSchemaParams:U8e,kSchemaQuerystring:vL,kSchemaController:Ig,kOptions:M8e,kRequestCacheValidateFns:R2,kRouteContext:jr,kPublicRouteContext:_L,kRequestOriginalUrl:kg}=di(),{FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:$8e}=Ui(),EL={body:F8e,headers:j8e,params:U8e,querystring:vL,query:vL};function Dg(t,e,n,r,i,l){this.id=t,this[jr]=l,this.params=e,this.raw=n,this.query=r,this.log=i,this.body=void 0}Dg.props=[];function B8e(t){if(typeof t=="function")return t;if(t===!0)return function(){return!0};if(typeof t=="number")return function(e,n){return nn.trim());return A9.compile(e)}return A9.compile(t)}function H8e(t,e){return e?V8e(t,e):wL(t)}function wL(t){let e=t.props.slice();function n(r,i,l,s,a,o){this.id=r,this[jr]=o,this.params=i,this.raw=l,this.query=s,this.log=a,this.body=void 0;for(var u,c=0;ct.config},schema:{get:()=>t.schema}}),Object.freeze(i)}},routerMethod:{get(){return P8e(),this[jr].config?.method}},routeConfig:{get(){return k8e(),this[jr][_L]?.config}},routeSchema:{get(){return I8e(),this[jr][_L].schema}},is404:{get(){return this[jr].config?.url===void 0}},connection:{get(){return N8e.gte(process.versions.node,"13.0.0")&&C8e(),this.raw.connection}},socket:{get(){return this.raw.socket}},ip:{get(){if(this.socket)return this.socket.remoteAddress}},hostname:{get(){return this.raw.headers.host||this.raw.headers[":authority"]}},protocol:{get(){if(this.socket)return this.socket.encrypted?"https":"http"}},headers:{get(){return this.additionalHeaders?Object.assign({},this.raw.headers,this.additionalHeaders):this.raw.headers},set(t){this.additionalHeaders=t}},getValidationFunction:{value:function(t){if(typeof t=="string"){let e=EL[t];return this[jr][e]}else if(typeof t=="object")return this[jr][R2]?.get(t)}},compileValidationSchema:{value:function(t,e=null){let{method:n,url:r}=this;if(this[jr][R2]?.has(t))return this[jr][R2].get(t);let l=(this[jr].validatorCompiler||this.server[Ig].validatorCompiler||this.server[Ig].setupValidator(this.server[M8e])||this.server[Ig].validatorCompiler)({schema:t,method:n,url:r,httpPart:e});return this[jr][R2]==null&&(this[jr][R2]=new WeakMap),this[jr][R2].set(t,l),l}},validateInput:{value:function(t,e,n){n=typeof e=="string"?e:n;let r=n!=null&&typeof n=="string"&&EL[n],i;if(r&&(i=this[jr][r]),i==null&&(e==null||typeof e!="object"||Array.isArray(e)))throw new $8e(n);return i==null&&(this[jr][R2]?.has(e)?i=this[jr][R2].get(e):i=this.compileValidationSchema(e,n)),i(t)}}});Pg.exports=Dg;Pg.exports.buildRequest=H8e});var N9=k((dIe,SL)=>{"use strict";var{kFourOhFourContext:q8e,kReplySerializerDefault:z8e,kSchemaErrorFormatter:G8e,kErrorHandler:J8e,kChildLoggerFactory:K8e,kOptions:X8e,kReply:W8e,kRequest:Y8e,kBodyLimit:Q8e,kLogLevel:Z8e,kContentTypeParser:e9e,kRouteByFastify:t9e,kRequestCacheValidateFns:n9e,kReplyCacheSerializeFns:r9e,kPublicRouteContext:i9e}=di();function l9e({schema:t,handler:e,config:n,requestIdLogLabel:r,childLoggerFactory:i,errorHandler:l,bodyLimit:s,logLevel:a,logSerializers:o,attachValidation:u,validatorCompiler:c,serializerCompiler:f,replySerializer:m,schemaErrorFormatter:d,exposeHeadRoute:y,prefixTrailingSlash:_,server:S,isFastify:w}){this.schema=t,this.handler=e,this.Reply=S[W8e],this.Request=S[Y8e],this.contentTypeParser=S[e9e],this.onRequest=null,this.onSend=null,this.onError=null,this.onTimeout=null,this.preHandler=null,this.onResponse=null,this.preSerialization=null,this.onRequestAbort=null,this.config=n,this.errorHandler=l||S[J8e],this.requestIdLogLabel=r||S[X8e].requestIdLogLabel,this.childLoggerFactory=i||S[K8e],this._middie=null,this._parserOptions={limit:s||S[Q8e]},this.exposeHeadRoute=y,this.prefixTrailingSlash=_,this.logLevel=a||S[Z8e],this.logSerializers=o,this[q8e]=null,this.attachValidation=u,this[z8e]=m,this.schemaErrorFormatter=d||S[G8e]||a9e,this[t9e]=w,this[n9e]=null,this[r9e]=null,this.validatorCompiler=c||null,this.serializerCompiler=f||null,this[i9e]=s9e(this),this.server=S}function s9e(t){return Object.create(null,{schema:{enumerable:!0,get(){return t.schema}},config:{enumerable:!0,get(){return t.config}}})}function a9e(t,e){let n="",r=", ";for(var i=0;i!==t.length;++i){let l=t[i];n+=e+(l.instancePath||"")+" "+l.message+r}return new Error(n.slice(0,-r.length))}SL.exports=l9e});var Lg=k((hIe,TL)=>{"use strict";TL.exports={supportedMethods:["DELETE","GET","HEAD","PATCH","POST","PUT","OPTIONS","PROPFIND","PROPPATCH","MKCOL","COPY","MOVE","LOCK","UNLOCK","TRACE","SEARCH"]}});var $g=k((mIe,NL)=>{"use strict";var{kReply:Fg,kRequest:jg,kState:o9e,kHasBeenDecorated:u9e}=di(),{FST_ERR_DEC_ALREADY_PRESENT:xL,FST_ERR_DEC_MISSING_DEPENDENCY:c9e,FST_ERR_DEC_AFTER_START:p9e,FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:f9e}=Ui(),{FSTDEP006:d9e}=Fa();function h9e(t,e,n,r){if(Object.prototype.hasOwnProperty.call(t,e))throw new xL(e);Ug(t,e,r),n&&(typeof n.getter=="function"||typeof n.setter=="function")?Object.defineProperty(t,e,{get:n.getter,set:n.setter}):t[e]=n}function AL(t,e,n,r){let i=t.prototype;if(Object.prototype.hasOwnProperty.call(i,e)||R9(t,e))throw new xL(e);t[u9e]=!0,Ug(t,e,r),n&&(typeof n.getter=="function"||typeof n.setter=="function")?Object.defineProperty(i,e,{get:n.getter,set:n.setter}):typeof n=="function"?i[e]=n:t.props.push({key:e,value:n})}function OL(t,e){typeof e=="object"&&e&&!(typeof e.getter=="function"||typeof e.setter=="function")&&d9e(t)}function m9e(t,e,n){return Mg(this,t),h9e(this,t,e,n),this}function C9(t,e){return e?e in t||t.prototype&&e in t.prototype||R9(t,e):t in this}function R9(t,e){return t.props?t.props.find(({key:n})=>n===e):!1}function y9e(t){return t&&R9(this[jg],t)?!0:C9(this[jg].prototype,t)}function g9e(t){return t&&R9(this[Fg],t)?!0:C9(this[Fg].prototype,t)}function Ug(t,e,n){if(n!=null){if(!Array.isArray(n))throw new f9e(e);for(var r=0;r!==n.length;++r)if(!C9(t,n[r]))throw new c9e(n[r])}}function v9e(t,e,n){return Mg(this,t),OL(t,e),AL(this[Fg],t,e,n),this}function _9e(t,e,n){return Mg(this,t),OL(t,e),AL(this[jg],t,e,n),this}function Mg(t,e){if(t[o9e].started)throw new p9e(e)}NL.exports={add:m9e,exist:C9,existRequest:y9e,existReply:g9e,dependencies:Ug,decorateReply:v9e,decorateRequest:_9e}});var RL=k(ta=>{"use strict";var Bg=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=new Map,this.last=null,this.max=e,this.ttl=n}get size(){return this.items.size}clear(){this.items=new Map,this.first=null,this.last=null}delete(e){if(this.items.has(e)){let n=this.items.get(e);this.items.delete(e),n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;this.items.delete(e.key),this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(this.items.has(e))return this.items.get(e).expiry}get(e){if(this.items.has(e)){let n=this.items.get(e);if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl;return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items.set(e,r),this.size===1?this.first=r:this.last.next=r,this.last=r}},Hg=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=new Map,this.last=null,this.max=e,this.ttl=n}get size(){return this.items.size}bumpLru(e){if(this.last===e)return;let n=this.last,r=e.next,i=e.prev;this.first===e&&(this.first=r),e.next=null,e.prev=n,n.next=e,i!==null&&(i.next=r),r!==null&&(r.prev=i),this.last=e}clear(){this.items=new Map,this.first=null,this.last=null}delete(e){if(this.items.has(e)){let n=this.items.get(e);this.items.delete(e),n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;this.items.delete(e.key),this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(this.items.has(e))return this.items.get(e).expiry}get(e){if(this.items.has(e)){let n=this.items.get(e);if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return this.bumpLru(n),n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl,this.last!==i&&this.bumpLru(i);return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items.set(e,r),this.size===1?this.first=r:this.last.next=r,this.last=r}},rc=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=e,this.ttl=n}bumpLru(e){if(this.last===e)return;let n=this.last,r=e.next,i=e.prev;this.first===e&&(this.first=r),e.next=null,e.prev=n,n.next=e,i!==null&&(i.next=r),r!==null&&(r.prev=i),this.last=e}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];delete this.items[e],this.size--,n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return this.bumpLru(n),n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl,this.last!==i&&this.bumpLru(i);return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items[e]=r,++this.size===1?this.first=r:this.last.next=r,this.last=r}},I9=class{constructor(){this.records={}}initForCache(e,n){this.records[e]={[n]:{cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}}resetForCache(e){for(let n of Object.keys(this.records[e]))this.records[e][n]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}getStatistics(){return this.records}};function CL(t){return`${t.getFullYear()}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}`}var Vg=class{constructor(e,n,r){this.cacheId=e,this.statisticTtlInHours=n,this.collectionStart=new Date,this.currentTimeStamp=CL(this.collectionStart),this.records=r||new I9,this.records.initForCache(this.cacheId,this.currentTimeStamp)}get currentRecord(){return this.records.records[this.cacheId][this.currentTimeStamp]||(this.records.records[this.cacheId][this.currentTimeStamp]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,sets:0,invalidateOne:0,invalidateAll:0}),this.records.records[this.cacheId][this.currentTimeStamp]}hoursPassed(){return(Date.now()-this.collectionStart)/1e3/60/60}addHit(){this.archiveIfNeeded(),this.currentRecord.hits++}addFalsyHit(){this.archiveIfNeeded(),this.currentRecord.falsyHits++}addEmptyHit(){this.archiveIfNeeded(),this.currentRecord.emptyHits++}addMiss(){this.archiveIfNeeded(),this.currentRecord.misses++}addEviction(){this.archiveIfNeeded(),this.currentRecord.evictions++}setCacheSize(e){this.archiveIfNeeded(),this.currentRecord.cacheSize=e}addExpiration(){this.archiveIfNeeded(),this.currentRecord.expirations++}addSet(){this.archiveIfNeeded(),this.currentRecord.sets++}addInvalidateOne(){this.archiveIfNeeded(),this.currentRecord.invalidateOne++}addInvalidateAll(){this.archiveIfNeeded(),this.currentRecord.invalidateAll++}getStatistics(){return this.records.getStatistics()}archiveIfNeeded(){this.hoursPassed()>=this.statisticTtlInHours&&(this.collectionStart=new Date,this.currentTimeStamp=CL(this.collectionStart),this.records.initForCache(this.cacheId,this.currentTimeStamp))}},k9=class extends rc{constructor(e,n,r,i,l){if(super(e||1e3,n||0),!r)throw new Error("Cache id is mandatory");this.hitStatistics=new Vg(r,l!==void 0?l:24,i)}getStatistics(){return this.hitStatistics.getStatistics()}set(e,n){super.set(e,n),this.hitStatistics.addSet(),this.hitStatistics.setCacheSize(this.size)}evict(){super.evict(),this.hitStatistics.addEviction(),this.hitStatistics.setCacheSize(this.size)}delete(e,n=!1){super.delete(e),n||this.hitStatistics.addInvalidateOne(),this.hitStatistics.setCacheSize(this.size)}clear(){super.clear(),this.hitStatistics.addInvalidateAll(),this.hitStatistics.setCacheSize(this.size)}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e,!0),this.hitStatistics.addExpiration();return}return this.bumpLru(n),n.value||this.hitStatistics.addFalsyHit(),(n.value===void 0||n.value===null||n.value==="")&&this.hitStatistics.addEmptyHit(),this.hitStatistics.addHit(),n.value}this.hitStatistics.addMiss()}},D9=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=e,this.ttl=n}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];delete this.items[e],this.size--,n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl;return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items[e]=r,++this.size===1?this.first=r:this.last.next=r,this.last=r}};ta.Fifo=D9;ta.FifoMap=Bg;ta.FifoObject=D9;ta.HitStatisticsRecord=I9;ta.Lru=rc;ta.LruHitStatistics=k9;ta.LruMap=Hg;ta.LruObject=rc;ta.LruObjectHitStatistics=k9});var PL=k((gIe,ic)=>{"use strict";var F9=function(){};F9.prototype=Object.create(null);var P9=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,L9=/\\([\v\u0020-\u00ff])/gu,IL=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,U3={type:"",parameters:new F9};Object.freeze(U3.parameters);Object.freeze(U3);function kL(t){if(typeof t!="string")throw new TypeError("argument header is required and must be a string");let e=t.indexOf(";"),n=e!==-1?t.slice(0,e).trim():t.trim();if(IL.test(n)===!1)throw new TypeError("invalid media type");let r={type:n.toLowerCase(),parameters:new F9};if(e===-1)return r;let i,l,s;for(P9.lastIndex=e;l=P9.exec(t);){if(l.index!==e)throw new TypeError("invalid parameter format");e+=l[0].length,i=l[1].toLowerCase(),s=l[2],s[0]==='"'&&(s=s.slice(1,s.length-1),L9.test(s)&&(s=s.replace(L9,"$1"))),r.parameters[i]=s}if(e!==t.length)throw new TypeError("invalid parameter format");return r}function DL(t){if(typeof t!="string")return U3;let e=t.indexOf(";"),n=e!==-1?t.slice(0,e).trim():t.trim();if(IL.test(n)===!1)return U3;let r={type:n.toLowerCase(),parameters:new F9};if(e===-1)return r;let i,l,s;for(P9.lastIndex=e;l=P9.exec(t);){if(l.index!==e)return U3;e+=l[0].length,i=l[1].toLowerCase(),s=l[2],s[0]==='"'&&(s=s.slice(1,s.length-1),L9.test(s)&&(s=s.replace(L9,"$1"))),r.parameters[i]=s}return e!==t.length?U3:r}ic.exports.default={parse:kL,safeParse:DL};ic.exports.parse=kL;ic.exports.safeParse=DL;ic.exports.defaultContentType=U3});var ML=k((vIe,E1)=>{"use strict";var E9e=typeof Buffer<"u",LL=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,FL=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function jL(t,e,n){n==null&&e!==null&&typeof e=="object"&&(n=e,e=void 0),E9e&&Buffer.isBuffer(t)&&(t=t.toString()),t&&t.charCodeAt(0)===65279&&(t=t.slice(1));let r=JSON.parse(t,e);if(r===null||typeof r!="object")return r;let i=n&&n.protoAction||"error",l=n&&n.constructorAction||"error";if(i==="ignore"&&l==="ignore")return r;if(i!=="ignore"&&l!=="ignore"){if(LL.test(t)===!1&&FL.test(t)===!1)return r}else if(i!=="ignore"&&l==="ignore"){if(LL.test(t)===!1)return r}else if(FL.test(t)===!1)return r;return UL(r,{protoAction:i,constructorAction:l,safe:n&&n.safe})}function UL(t,{protoAction:e="error",constructorAction:n="error",safe:r}={}){let i=[t];for(;i.length;){let l=i;i=[];for(let s of l){if(e!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"__proto__")){if(r===!0)return null;if(e==="error")throw new SyntaxError("Object contains forbidden prototype property");delete s.__proto__}if(n!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"constructor")&&Object.prototype.hasOwnProperty.call(s.constructor,"prototype")){if(r===!0)return null;if(n==="error")throw new SyntaxError("Object contains forbidden prototype property");delete s.constructor}for(let a in s){let o=s[a];o&&typeof o=="object"&&i.push(o)}}}return t}function qg(t,e,n){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return jL(t,e,n)}finally{Error.stackTraceLimit=r}}function b9e(t,e){let n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return jL(t,e,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=n}}E1.exports=qg;E1.exports.default=qg;E1.exports.parse=qg;E1.exports.safeParse=b9e;E1.exports.scan=UL});var Xg=k((_Ie,sc)=>{"use strict";var{AsyncResource:w9e}=require("node:async_hooks"),{Fifo:BL}=RL(),{safeParse:HL,defaultContentType:S9e}=PL(),T9e=ML(),{kDefaultJsonParse:lc,kContentTypeParser:b1,kBodyLimit:x9e,kRequestPayloadStream:VL,kState:Gg,kTestInternals:A9e,kReplyIsError:qL,kRouteContext:O9e}=di(),{FST_ERR_CTP_INVALID_TYPE:zL,FST_ERR_CTP_EMPTY_TYPE:N9e,FST_ERR_CTP_ALREADY_PRESENT:C9e,FST_ERR_CTP_INVALID_HANDLER:R9e,FST_ERR_CTP_INVALID_PARSE_TYPE:I9e,FST_ERR_CTP_BODY_TOO_LARGE:$L,FST_ERR_CTP_INVALID_MEDIA_TYPE:k9e,FST_ERR_CTP_INVALID_CONTENT_LENGTH:D9e,FST_ERR_CTP_EMPTY_JSON_BODY:P9e,FST_ERR_CTP_INSTANCE_ALREADY_STARTED:Jg}=Ui();function Ga(t,e,n){this[lc]=JL(e,n),this.customParsers=new Map,this.customParsers.set("application/json",new zg(!0,!1,t,this[lc])),this.customParsers.set("text/plain",new zg(!0,!1,t,Kg)),this.parserList=[new j9("application/json"),new j9("text/plain")],this.parserRegExpList=[],this.cache=new BL(100)}Ga.prototype.add=function(t,e,n){let r=typeof t=="string";if(!r&&!(t instanceof RegExp))throw new zL;if(r&&t.length===0)throw new N9e;if(typeof n!="function")throw new R9e;if(this.existingParser(t))throw new C9e(t);if(e.parseAs!==void 0&&e.parseAs!=="string"&&e.parseAs!=="buffer")throw new I9e(e.parseAs);let i=new zg(e.parseAs==="string",e.parseAs==="buffer",e.bodyLimit,n);r&&t==="*"?this.customParsers.set("",i):(r?this.parserList.unshift(new j9(t)):(t.isEssence=t.source.indexOf(";")===-1,this.parserRegExpList.unshift(t)),this.customParsers.set(t.toString(),i))};Ga.prototype.hasParser=function(t){return this.customParsers.has(typeof t=="string"?t:t.toString())};Ga.prototype.existingParser=function(t){return t==="application/json"&&this.customParsers.has(t)?this.customParsers.get(t).fn!==this[lc]:t==="text/plain"&&this.customParsers.has(t)?this.customParsers.get(t).fn!==Kg:this.hasParser(t)};Ga.prototype.getParser=function(t){if(this.hasParser(t))return this.customParsers.get(t);let e=this.cache.get(t);if(e!==void 0)return e;let n=HL(t);if(n===S9e)return this.customParsers.get("");for(var r=0;r!==this.parserList.length;++r){let l=this.parserList[r];if($9e(n,l)){let s=this.customParsers.get(l.name);return this.cache.set(t,s),s}}for(var i=0;i!==this.parserRegExpList.length;++i){let l=this.parserRegExpList[i];if(B9e(t,n.type,l)){let s=this.customParsers.get(l.toString());return this.cache.set(t,s),s}}return this.customParsers.get("")};Ga.prototype.removeAll=function(){this.customParsers=new Map,this.parserRegExpList=[],this.parserList=[],this.cache=new BL(100)};Ga.prototype.remove=function(t){if(!(typeof t=="string"||t instanceof RegExp))throw new zL;let e=this.customParsers.delete(t.toString()),n=typeof t=="string"?this.parserList:this.parserRegExpList,r=n.findIndex(i=>i.toString()===t.toString());return r>-1&&n.splice(r,1),e||r>-1};Ga.prototype.run=function(t,e,n,r){let i=this.getParser(t);if(i===void 0){n.is404?e(n,r):r.send(new k9e(t||void 0));return}let l=new w9e("content-type-parser:run",n);if(i.asString===!0||i.asBuffer===!0)GL(n,r,r[O9e]._parserOptions,i,s);else{let a=i.fn(n,n[VL],s);a&&typeof a.then=="function"&&a.then(o=>s(null,o),s)}function s(a,o){l.runInAsyncScope(()=>{l.emitDestroy(),a?(r[qL]=!0,r.send(a)):(n.body=o,e(n,r))})}};function GL(t,e,n,r,i){let l=r.asString,s=n.limit===null?r.bodyLimit:n.limit,a=t.headers["content-length"]===void 0?NaN:Number(t.headers["content-length"]);if(a>s){e.header("connection","close"),e.send(new $L);return}let o=0,u=l===!0?"":[],c=t[VL]||t.raw;l===!0&&c.setEncoding("utf8"),c.on("data",f),c.on("end",m),c.on("error",m),c.resume();function f(d){o+=d.length;let{receivedEncodedLength:y=0}=c;if(o>s||y>s){c.removeListener("data",f),c.removeListener("end",m),c.removeListener("error",m),e.send(new $L);return}l===!0?u+=d:u.push(d)}function m(d){if(c.removeListener("data",f),c.removeListener("end",m),c.removeListener("error",m),d!==void 0){typeof d.statusCode=="number"&&d.statusCode>=400||(d.statusCode=400),e[qL]=!0,e.code(d.statusCode).send(d);return}if(l===!0&&(o=Buffer.byteLength(u)),!Number.isNaN(a)&&(c.receivedEncodedLength||o)!==a){e.header("connection","close"),e.send(new D9e);return}l===!1&&(u=Buffer.concat(u));let y=r.fn(t,u,i);y&&typeof y.then=="function"&&y.then(_=>i(null,_),i)}}function JL(t,e){return n;function n(r,i,l){if(i===""||i==null||Buffer.isBuffer(i)&&i.length===0)return l(new P9e,void 0);let s;try{s=T9e.parse(i,{protoAction:t,constructorAction:e})}catch(a){return a.statusCode=400,l(a,void 0)}l(null,s)}}function Kg(t,e,n){n(null,e)}function zg(t,e,n,r){this.asString=t,this.asBuffer=e,this.bodyLimit=n,this.fn=r}function L9e(t){let e=new Ga;return e[lc]=t[lc],e.customParsers=new Map(t.customParsers.entries()),e.parserList=t.parserList.slice(),e.parserRegExpList=t.parserRegExpList.slice(),e}function F9e(t,e,n){if(this[Gg].started)throw new Jg("addContentTypeParser");return typeof e=="function"&&(n=e,e={}),e||(e={}),e.bodyLimit||(e.bodyLimit=this[x9e]),Array.isArray(t)?t.forEach(r=>this[b1].add(r,e,n)):this[b1].add(t,e,n),this}function j9e(t){return this[b1].hasParser(t)}function U9e(t){if(this[Gg].started)throw new Jg("removeContentTypeParser");if(Array.isArray(t))for(let e of t)this[b1].remove(e);else this[b1].remove(t)}function M9e(){if(this[Gg].started)throw new Jg("removeAllContentTypeParsers");this[b1].removeAll()}function $9e(t,e){if(e.isEssence)return t.type.indexOf(e)!==-1;if(t.type.indexOf(e.type)===-1)return!1;for(let n of e.parameterKeys)if(!(n in t.parameters)||t.parameters[n]!==e.parameters[n])return!1;return!0}function B9e(t,e,n){return n.isEssence?n.test(e):n.test(t)}function j9(t){this.name=t;let e=HL(t);if(this.isEssence=t.indexOf(";")===-1,this.isEssence===!1&&e.type===""){let n=t.split(";",1)[0];this.type=n===""?t:n}else this.type=e.type;this.parameters=e.parameters,this.parameterKeys=Object.keys(e.parameters)}j9.prototype.toString=function(){return this.name};sc.exports=Ga;sc.exports.helpers={buildContentTypeParser:L9e,addContentTypeParser:F9e,hasContentTypeParser:j9e,removeContentTypeParser:U9e,removeAllContentTypeParsers:M9e};sc.exports.defaultParsers={getDefaultJsonParser:JL,defaultTextParser:Kg};sc.exports[A9e]={rawBody:GL}});var KL=k((EIe,U9)=>{"use strict";var H9e=Object.getPrototypeOf({});function Wg(t){function e(w){return w!=="constructor"&&w!=="prototype"&&w!=="__proto__"}function n(w){let E=0,g=w.length,v=new Array(g);for(E=0;Etypeof w!="object"||w===null||w instanceof RegExp||w instanceof Date||w instanceof Buffer:w=>typeof w!="object"||w===null||w instanceof RegExp||w instanceof Date,m=t&&typeof t.mergeArray=="function"?t.mergeArray({clone:d,deepmerge:_,getKeys:a,isMergeableObject:u}):i;function d(w){return u(w)?Array.isArray(w)?n(w):r(w):w}function y(w,E){let g={},v=a(w),x=a(E),O,N,R;for(O=0,N=v.length;O{"use strict";var XL=i1(),V9e=Symbol.for("json-schema-ref"),Yg=class{#e;#t;#r;#i;#l;constructor(e={}){this.#e={},this.#t={},this.#r=e.insertRefSymbol??!1,this.#i=e.allowEqualDuplicates??!0,this.#l=e.cloneSchemaWithoutRefs??!1}addSchema(e,n){e.$id!==void 0&&e.$id.charAt(0)!=="#"?n=e.$id:this.#u(e,n),this.#a(e,n)}getSchema(e,n="#"){let r=this.#e[e];if(r===void 0)throw new Error(`Cannot resolve ref "${e}${n}". Schema with id "${e}" is not found.`);return r.anchors[n]!==void 0?r.anchors[n]:WL(r.schema,n)}hasSchema(e){return this.#e[e]!==void 0}getSchemaRefs(e){let n=this.#e[e];if(n===void 0)throw new Error(`Schema with id "${e}" is not found.`);return n.refs}getSchemaDependencies(e,n={}){let r=this.#e[e];for(let i of r.refs){let l=i.schemaId;n[l]===void 0&&(n[l]=this.getSchema(l),this.getSchemaDependencies(l,n))}return n}derefSchema(e){if(this.#t[e]!==void 0)return;let n=this.#e[e];if(n===void 0)throw new Error(`Schema with id "${e}" is not found.`);!this.#l&&n.refs.length===0&&(this.#t[e]={schema:n.schema,anchors:n.anchors});let r=[];this.#n(n.schema,e,r);let i=this.getSchemaDependencies(e);for(let l in i){let s=i[l];this.#n(s,l,r)}for(let l of r){let{refSchemaId:s,refJsonPointer:a}=this.#s(l.ref,l.sourceSchemaId),o=this.getDerefSchema(s,a);if(o===null)throw new Error(`Cannot resolve ref "${l.ref}". Ref "${a}" is not found in schema "${s}".`);l.targetSchema=o,l.targetSchemaId=s}for(let l of r)this.#o(l,r)}getDerefSchema(e,n="#"){let r=this.#t[e];return r===void 0&&(this.derefSchema(e),r=this.#t[e]),r.anchors[n]!==void 0?r.anchors[n]:WL(r.schema,n)}#s(e,n){let r=e.indexOf("#");return r===-1?{refSchemaId:e,refJsonPointer:"#"}:r===0?{refSchemaId:n,refJsonPointer:e}:{refSchemaId:e.slice(0,r),refJsonPointer:e.slice(r)}}#a(e,n){let r=e.$id;r!==void 0&&typeof r=="string"&&(r.charAt(0)==="#"?this.#c(e,n,r):(this.#u(e,r),n=r));let i=e.$ref;if(i!==void 0&&typeof i=="string"){let{refSchemaId:l,refJsonPointer:s}=this.#s(i,n);this.#e[n].refs.push({schemaId:l,jsonPointer:s})}for(let l in e)typeof e[l]=="object"&&e[l]!==null&&this.#a(e[l],n)}#n(e,n,r=[]){let i=Array.isArray(e)?[...e]:{...e},l=i.$id;l!==void 0&&typeof l=="string"&&(l.charAt(0)==="#"?this.#f(i,n,l):(this.#p(i,l),n=l)),i.$ref!==void 0&&r.push({ref:i.$ref,sourceSchemaId:n,sourceSchema:i});for(let s in i){let a=i[s];typeof a=="object"&&a!==null&&(i[s]=this.#n(a,n,r))}return i}#o(e,n){let{sourceSchema:r,targetSchema:i}=e;if(r.$ref){if(this.#r&&(r[V9e]=r.$ref),delete r.$ref,i.$ref){let l=n.find(s=>s.sourceSchema===i);this.#o(l,n)}for(let l in i)if(l!=="$id"){if(r[l]!==void 0){if(XL(r[l],i[l]))continue;throw new Error(`Cannot resolve ref "${e.ref}". Property "${l}" is already exist in schema "${e.sourceSchemaId}".`)}r[l]=i[l]}e.isResolved=!0}}#u(e,n){let r=this.#e[n];if(r!==void 0){if(this.#i&&XL(e,r.schema))return;throw new Error(`There is already another schema with id "${n}".`)}this.#e[n]={schema:e,anchors:{},refs:[]}}#c(e,n,r){let{anchors:i}=this.#e[n];if(i[r]!==void 0)throw new Error(`There is already another anchor "${r}" in a schema "${n}".`);i[r]=e}#p(e,n){this.#t[n]===void 0&&(this.#t[n]={schema:e,anchors:{}})}#f(e,n,r){let{anchors:i}=this.#t[n];i[r]=e}};function WL(t,e){let n=e.split("/"),r=t;for(let i of n)if(!(i===""||i==="#")){if(typeof r!="object"||r===null)return null;r=r[i]}return r??null}YL.exports={RefResolver:Yg}});var rF=k((wIe,Zg)=>{"use strict";Zg.exports=Oe;Zg.exports.default=Oe;var q9e={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},ZL={enum:["array","boolean","integer","null","number","object","string"]},eF=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,z9e=r9().fullFormats.uri,tF=r9().fullFormats.regex;function ns(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:i=t}={}){let l=null,s=0,a=s;return typeof t=="number"&&!(t%1)&&!isNaN(t)&&isFinite(t)?s===a&&typeof t=="number"&&isFinite(t)&&(t<0||isNaN(t))?(ns.errors=[{instancePath:e,schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1):(ns.errors=l,s===0):(ns.errors=[{instancePath:e,schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1)}var Qg={validate:Oe};function il(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:i=t}={}){let l=null,s=0;if(s===0)if(Array.isArray(t)){if(t.length<1)return il.errors=[{instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{var a=!0;let o=t.length;for(let u=0;u",limit:0},message:"must be > 0"}],!1}else return Oe.errors=[{instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===s}else var a=!0;if(a){if(t.maximum!==void 0){let g=t.maximum,v=s;if(!(typeof g=="number"&&isFinite(g)))return Oe.errors=[{instancePath:e+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===s}else var a=!0;if(a){if(t.exclusiveMaximum!==void 0){let g=t.exclusiveMaximum,v=s;if(!(typeof g=="number"&&isFinite(g)))return Oe.errors=[{instancePath:e+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===s}else var a=!0;if(a){if(t.minimum!==void 0){let g=t.minimum,v=s;if(!(typeof g=="number"&&isFinite(g)))return Oe.errors=[{instancePath:e+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===s}else var a=!0;if(a){if(t.exclusiveMinimum!==void 0){let g=t.exclusiveMinimum,v=s;if(!(typeof g=="number"&&isFinite(g)))return Oe.errors=[{instancePath:e+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===s}else var a=!0;if(a){if(t.maxLength!==void 0){let g=t.maxLength,v=s,x=s;if(!(typeof g=="number"&&!(g%1)&&!isNaN(g)&&isFinite(g)))return Oe.errors=[{instancePath:e+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(s===x&&typeof g=="number"&&isFinite(g)&&(g<0||isNaN(g)))return Oe.errors=[{instancePath:e+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=v===s}else var a=!0;if(a){if(t.minLength!==void 0){let g=s;ns(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:i})||(l=l===null?ns.errors:l.concat(ns.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.pattern!==void 0){let g=t.pattern,v=s;if(s===v&&s===v)if(typeof g=="string"){if(!tF(g))return Oe.errors=[{instancePath:e+"/pattern",schemaPath:"#/properties/pattern/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'}],!1}else return Oe.errors=[{instancePath:e+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===s}else var a=!0;if(a){if(t.additionalItems!==void 0){let g=s;Oe(t.additionalItems,{instancePath:e+"/additionalItems",parentData:t,parentDataProperty:"additionalItems",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.items!==void 0){let g=t.items,v=s,x=s,O=!1,N=s;Oe(g,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var o=N===s;if(O=O||o,!O){let U=s;il(g,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(l=l===null?il.errors:l.concat(il.errors),s=l.length);var o=U===s;O=O||o}if(O)s=x,l!==null&&(x?l.length=x:l=null);else{let U={instancePath:e+"/items",schemaPath:"#/properties/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return l===null?l=[U]:l.push(U),s++,Oe.errors=l,!1}var a=v===s}else var a=!0;if(a){if(t.maxItems!==void 0){let g=t.maxItems,v=s,x=s;if(!(typeof g=="number"&&!(g%1)&&!isNaN(g)&&isFinite(g)))return Oe.errors=[{instancePath:e+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(s===x&&typeof g=="number"&&isFinite(g)&&(g<0||isNaN(g)))return Oe.errors=[{instancePath:e+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=v===s}else var a=!0;if(a){if(t.minItems!==void 0){let g=s;ns(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:i})||(l=l===null?ns.errors:l.concat(ns.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.uniqueItems!==void 0){let g=s;if(typeof t.uniqueItems!="boolean")return Oe.errors=[{instancePath:e+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var a=g===s}else var a=!0;if(a){if(t.contains!==void 0){let g=s;Oe(t.contains,{instancePath:e+"/contains",parentData:t,parentDataProperty:"contains",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.maxProperties!==void 0){let g=t.maxProperties,v=s,x=s;if(!(typeof g=="number"&&!(g%1)&&!isNaN(g)&&isFinite(g)))return Oe.errors=[{instancePath:e+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(s===x&&typeof g=="number"&&isFinite(g)&&(g<0||isNaN(g)))return Oe.errors=[{instancePath:e+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=v===s}else var a=!0;if(a){if(t.minProperties!==void 0){let g=s;ns(t.minProperties,{instancePath:e+"/minProperties",parentData:t,parentDataProperty:"minProperties",rootData:i})||(l=l===null?ns.errors:l.concat(ns.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.required!==void 0){let g=t.required,v=s;if(s===s)if(Array.isArray(g)){var u=!0;let N=g.length;for(let R=0;R1){let F={};for(;R--;){let te=g[R];if(typeof te=="string"){if(typeof F[te]=="number"){return U=F[te],Oe.errors=[{instancePath:e+"/required",schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:R,j:U},message:"must NOT have duplicate items (items ## "+U+" and "+R+" are identical)"}],!1;break}F[te]=R}}}}}else return Oe.errors=[{instancePath:e+"/required",schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=v===s}else var a=!0;if(a){if(t.additionalProperties!==void 0){let g=s;Oe(t.additionalProperties,{instancePath:e+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.definitions!==void 0){let g=t.definitions,v=s;if(s===v)if(g&&typeof g=="object"&&!Array.isArray(g))for(let O in g){let N=s;Oe(g[O],{instancePath:e+"/definitions/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:g,parentDataProperty:O,rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var c=N===s;if(!c)break}else return Oe.errors=[{instancePath:e+"/definitions",schemaPath:"#/properties/definitions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=v===s}else var a=!0;if(a){if(t.properties!==void 0){let g=t.properties,v=s;if(s===v)if(g&&typeof g=="object"&&!Array.isArray(g))for(let O in g){let N=s;Oe(g[O],{instancePath:e+"/properties/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:g,parentDataProperty:O,rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var f=N===s;if(!f)break}else return Oe.errors=[{instancePath:e+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=v===s}else var a=!0;if(a){if(t.patternProperties!==void 0){let g=t.patternProperties,v=s;if(s===v)if(g&&typeof g=="object"&&!Array.isArray(g)){for(let O in g){let N=s;if(s===N&&typeof O=="string"&&!tF(O)){let R={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"',propertyName:O};l===null?l=[R]:l.push(R),s++}var m=N===s;if(!m){let R={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames",keyword:"propertyNames",params:{propertyName:O},message:"property name must be valid"};return l===null?l=[R]:l.push(R),s++,Oe.errors=l,!1;break}}if(m)for(let O in g){let N=s;Oe(g[O],{instancePath:e+"/patternProperties/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:g,parentDataProperty:O,rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var d=N===s;if(!d)break}}else return Oe.errors=[{instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=v===s}else var a=!0;if(a){if(t.dependencies!==void 0){let g=t.dependencies,v=s;if(s===v)if(g&&typeof g=="object"&&!Array.isArray(g))for(let O in g){let N=g[O],R=s,U=s,F=!1,te=s;Oe(N,{instancePath:e+"/dependencies/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:g,parentDataProperty:O,rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var y=te===s;if(F=F||y,!F){let Q=s;if(s===s)if(Array.isArray(N)){var _=!0;let we=N.length;for(let se=0;se1){let me={};for(;se--;){let P=N[se];if(typeof P=="string"){if(typeof me[P]=="number"){ee=me[P];let G={instancePath:e+"/dependencies/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:se,j:ee},message:"must NOT have duplicate items (items ## "+ee+" and "+se+" are identical)"};l===null?l=[G]:l.push(G),s++;break}me[P]=se}}}}}else{let we={instancePath:e+"/dependencies/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"};l===null?l=[we]:l.push(we),s++}var y=Q===s;F=F||y}if(F)s=U,l!==null&&(U?l.length=U:l=null);else{let Q={instancePath:e+"/dependencies/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/dependencies/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return l===null?l=[Q]:l.push(Q),s++,Oe.errors=l,!1}var S=R===s;if(!S)break}else return Oe.errors=[{instancePath:e+"/dependencies",schemaPath:"#/properties/dependencies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=v===s}else var a=!0;if(a){if(t.propertyNames!==void 0){let g=s;Oe(t.propertyNames,{instancePath:e+"/propertyNames",parentData:t,parentDataProperty:"propertyNames",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.enum!==void 0){let g=t.enum,v=s;if(s===v)if(Array.isArray(g)){if(g.length<1)return Oe.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{let O=g.length,N;if(O>1){e:for(;O--;)for(N=O;N--;)if(nF(g[O],g[N])){return Oe.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/uniqueItems",keyword:"uniqueItems",params:{i:O,j:N},message:"must NOT have duplicate items (items ## "+N+" and "+O+" are identical)"}],!1;break e}}}}else return Oe.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=v===s}else var a=!0;if(a){if(t.type!==void 0){let g=t.type,v=s,x=s,O=!1,N=s;if(!(g==="array"||g==="boolean"||g==="integer"||g==="null"||g==="number"||g==="object"||g==="string")){let U={instancePath:e+"/type",schemaPath:"#/definitions/simpleTypes/enum",keyword:"enum",params:{allowedValues:ZL.enum},message:"must be equal to one of the allowed values"};l===null?l=[U]:l.push(U),s++}var w=N===s;if(O=O||w,!O){let U=s;if(s===U)if(Array.isArray(g))if(g.length<1){let te={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};l===null?l=[te]:l.push(te),s++}else{var E=!0;let te=g.length;for(let Q=0;Q1){e:for(;Q--;)for(W=Q;W--;)if(nF(g[Q],g[W])){let ce={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i:Q,j:W},message:"must NOT have duplicate items (items ## "+W+" and "+Q+" are identical)"};l===null?l=[ce]:l.push(ce),s++;break e}}}}else{let te={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};l===null?l=[te]:l.push(te),s++}var w=U===s;O=O||w}if(O)s=x,l!==null&&(x?l.length=x:l=null);else{let U={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return l===null?l=[U]:l.push(U),s++,Oe.errors=l,!1}var a=v===s}else var a=!0;if(a){if(t.format!==void 0){let g=s;if(typeof t.format!="string")return Oe.errors=[{instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=g===s}else var a=!0;if(a){if(t.contentMediaType!==void 0){let g=s;if(typeof t.contentMediaType!="string")return Oe.errors=[{instancePath:e+"/contentMediaType",schemaPath:"#/properties/contentMediaType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=g===s}else var a=!0;if(a){if(t.contentEncoding!==void 0){let g=s;if(typeof t.contentEncoding!="string")return Oe.errors=[{instancePath:e+"/contentEncoding",schemaPath:"#/properties/contentEncoding/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=g===s}else var a=!0;if(a){if(t.if!==void 0){let g=s;Oe(t.if,{instancePath:e+"/if",parentData:t,parentDataProperty:"if",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.then!==void 0){let g=s;Oe(t.then,{instancePath:e+"/then",parentData:t,parentDataProperty:"then",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.else!==void 0){let g=s;Oe(t.else,{instancePath:e+"/else",parentData:t,parentDataProperty:"else",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.allOf!==void 0){let g=s;il(t.allOf,{instancePath:e+"/allOf",parentData:t,parentDataProperty:"allOf",rootData:i})||(l=l===null?il.errors:l.concat(il.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.anyOf!==void 0){let g=s;il(t.anyOf,{instancePath:e+"/anyOf",parentData:t,parentDataProperty:"anyOf",rootData:i})||(l=l===null?il.errors:l.concat(il.errors),s=l.length);var a=g===s}else var a=!0;if(a){if(t.oneOf!==void 0){let g=s;il(t.oneOf,{instancePath:e+"/oneOf",parentData:t,parentDataProperty:"oneOf",rootData:i})||(l=l===null?il.errors:l.concat(il.errors),s=l.length);var a=g===s}else var a=!0;if(a)if(t.not!==void 0){let g=s;Oe(t.not,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:i})||(l=l===null?Oe.errors:l.concat(Oe.errors),s=l.length);var a=g===s}else var a=!0}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return Oe.errors=l,s===0}});var lF=k((SIe,iF)=>{"use strict";var ev=class t{constructor(e,n,r="#"){this.schema=e,this.schemaId=n,this.jsonPointer=r,this.mergedSchemaId=null}getPropertyLocation(e){let n=new t(this.schema[e],this.schemaId,this.jsonPointer+"/"+e);return this.mergedSchemaId!==null&&n.addMergedSchema(this.schema[e],this.mergedSchemaId,this.jsonPointer+"/"+e),n}getSchemaId(){return this.mergedSchemaId||this.schemaId}getOriginSchemaId(){return this.schemaId}getSchemaRef(){return this.getSchemaId()+this.jsonPointer}addMergedSchema(e,n,r="#"){this.schema=e,this.mergedSchemaId=n,this.jsonPointer=r}};iF.exports=ev});var vF=k((TIe,T1)=>{"use strict";var tv=KL()(),G9e=p4()({proto:!0}),{RefResolver:J9e}=QL(),sF=rF(),K9e=lm(),X9e=Yy(),oF=lF(),W9e=/'/g,M9=2e4,uF="default",Y9e=["floor","ceil","round","trunc"],cF=["default","json-stringify"],w1="!addComma && (addComma = true) || (json += ',')",pF=0;function nv(t,e){if(!sF(t)){e?e=`"${e}" `:e="";let n=sF.errors[0],r=new Error(`${e}schema is invalid: data${n.instancePath} ${n.message}`);throw r.errors=nv.errors,r}}function S1(t,e,n){let r=n.indexOf("#");r===-1&&(r=n.length);let i=n.slice(0,r)||e.getOriginSchemaId(),l=n.slice(r)||"#",s=t.refResolver.getSchema(i,l);if(s===null)throw new Error(`Cannot find reference "${n}"`);let a=new oF(s,i,l);return s.$ref!==void 0?S1(t,a,s.$ref):a}function aF(t,e){return t.$id&&t.$id.charAt(0)!=="#"?t.$id:e}function rv(t,e){nv(t),e=e||{};let n={functions:[],functionsCounter:0,functionsNamesBySchema:new Map,options:e,wrapObjects:!0,refResolver:new J9e,rootSchemaId:t.$id||`__fjs_root_${pF++}`,validatorSchemasIds:new Set},r=aF(t,n.rootSchemaId);if(n.refResolver.hasSchema(r)||n.refResolver.addSchema(t,n.rootSchemaId),e.schema)for(let c in e.schema){let f=e.schema[c],m=aF(f,c);n.refResolver.hasSchema(m)||(nv(f,c),n.refResolver.addSchema(f,c))}if(e.rounding&&!Y9e.includes(e.rounding))throw new Error(`Unsupported integer rounding method ${e.rounding}`);if(e.largeArrayMechanism)if(cF.includes(e.largeArrayMechanism))uF=e.largeArrayMechanism;else throw new Error(`Unsupported large array mechanism ${e.largeArrayMechanism}`);if(e.largeArraySize)if(typeof e.largeArraySize=="string"&&Number.isFinite(Number.parseInt(e.largeArraySize,10)))M9=Number.parseInt(e.largeArraySize,10);else if(typeof e.largeArraySize=="number"&&Number.isInteger(e.largeArraySize))M9=e.largeArraySize;else if(typeof e.largeArraySize=="bigint")M9=Number(e.largeArraySize);else throw new Error(`Unsupported large array size. Expected integer-like, got ${typeof e.largeArraySize} with value ${e.largeArraySize}`);let i=new oF(t,n.rootSchemaId),l=na(n,i,"input"),s;l==="json += anonymous0(input)"?s=`
${n.functions.join(`
`)}
const main = anonymous0
@@ -133,9 +133,9 @@ ${w}`),y.pop(),`{${x}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";
${n.functions.join(`
`)}
return main
- `;let a=new j9e(e),o=new U9e(e.ajv);for(let c of n.validatorSchemasIds){let f=n.refResolver.getSchema(c);o.addSchema(f,c);let m=n.refResolver.getSchemaDependencies(c);for(let[d,y]of Object.entries(m))o.addSchema(y,d)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:o,serializer:a,code:`validator
+ `;let a=new K9e(e),o=new X9e(e.ajv);for(let c of n.validatorSchemasIds){let f=n.refResolver.getSchema(c);o.addSchema(f,c);let m=n.refResolver.getSchemaDependencies(c);for(let[d,y]of Object.entries(m))o.addSchema(y,d)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:o,serializer:a,code:`validator
serializer
-${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode==="standalone"?Wy()(u,n,a,o):u(o,a)}var B9e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],H9e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],V9e=["maxLength","minLength","pattern"],q9e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function aF(t){for(var e of B9e)if(e in t)return"object";for(var e of H9e)if(e in t)return"array";for(var e of V9e)if(e in t)return"string";for(var e of q9e)if(e in t)return"number";return t.type}function z9e(t,e){let n=e.schema,r=Object.keys(n.properties||{}),i=`
+${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode==="standalone"?Zy()(u,n,a,o):u(o,a)}var Q9e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],Z9e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],e7e=["maxLength","minLength","pattern"],t7e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function fF(t){for(var e of Q9e)if(e in t)return"object";for(var e of Z9e)if(e in t)return"array";for(var e of e7e)if(e in t)return"string";for(var e of t7e)if(e in t)return"number";return t.type}function n7e(t,e){let n=e.schema,r=Object.keys(n.properties||{}),i=`
const propertiesKeys = ${JSON.stringify(r)}
for (const [key, value] of Object.entries(obj)) {
if (
@@ -146,61 +146,61 @@ ${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode===
) continue
`,l=e.getPropertyLocation("patternProperties"),s=l.schema;if(s!==void 0)for(let u in s){let c=l.getPropertyLocation(u);i+=`
if (/${u.replace(/\\*\//g,"\\/")}/.test(key)) {
- ${_1}
+ ${w1}
json += serializer.asString(key) + ':'
- ${ta(t,c,"value")}
+ ${na(t,c,"value")}
continue
}
`}let o=e.getPropertyLocation("additionalProperties").schema;if(o!==void 0)if(o===!0)i+=`
- ${_1}
+ ${w1}
json += serializer.asString(key) + ':' + JSON.stringify(value)
`;else{let u=e.getPropertyLocation("additionalProperties");i+=`
- ${_1}
+ ${w1}
json += serializer.asString(key) + ':'
- ${ta(t,u,"value")}
+ ${na(t,u,"value")}
`}return i+=`
}
- `,i}function G9e(t,e){let n="",r=e.schema,i=r.required||[],l=e.getPropertyLocation("properties"),s=[],a=[];if(r.properties)for(let u of Object.keys(r.properties)){if(i.indexOf(u)===-1)continue;let c=l.getPropertyLocation(u);c.schema.$ref&&(c=E1(t,e,c.schema.$ref));let f=JSON.stringify(u);c.schema.default===void 0&&(n+=`if (obj[${f}] === undefined) throw new Error('${f} is required!')
+ `,i}function r7e(t,e){let n="",r=e.schema,i=r.required||[],l=e.getPropertyLocation("properties"),s=[],a=[];if(r.properties)for(let u of Object.keys(r.properties)){if(i.indexOf(u)===-1)continue;let c=l.getPropertyLocation(u);c.schema.$ref&&(c=S1(t,e,c.schema.$ref));let f=JSON.stringify(u);c.schema.default===void 0&&(n+=`if (obj[${f}] === undefined) throw new Error('${f} is required!')
`,a.push(u)),s.push(u)}for(let u of i)s.indexOf(u)===-1&&(n+=`if (obj['${u}'] === undefined) throw new Error('"${u}" is required!')
`);n+=`
let addComma = false
let json = '${t.wrapObjects?"{":""}'
- `;let o=t.wrapObjects;if(t.wrapObjects=!0,r.properties)for(let u of Object.keys(r.properties)){let c=l.getPropertyLocation(u);c.schema.$ref&&(c=E1(t,e,c.schema.$ref));let f=JSON.stringify(u);if(a.indexOf(u)!==-1)n+=`
- ${_1}
+ `;let o=t.wrapObjects;if(t.wrapObjects=!0,r.properties)for(let u of Object.keys(r.properties)){let c=l.getPropertyLocation(u);c.schema.$ref&&(c=S1(t,e,c.schema.$ref));let f=JSON.stringify(u);if(a.indexOf(u)!==-1)n+=`
+ ${w1}
json += ${JSON.stringify(f+":")}
- ${ta(t,c,`obj[${f}]`)}
+ ${na(t,c,`obj[${f}]`)}
`;else{n+=`
if (obj[${f}] !== undefined) {
- ${_1}
+ ${w1}
json += ${JSON.stringify(f+":")}
- ${ta(t,c,`obj[${f}]`)}
+ ${na(t,c,`obj[${f}]`)}
}
`;let m=c.schema.default;m!==void 0&&(n+=`
else {
- ${_1}
+ ${w1}
json += ${JSON.stringify(f+":"+JSON.stringify(m))}
}
- `)}}return(r.patternProperties||r.additionalProperties)&&(n+=z9e(t,e)),t.wrapObjects=o,n+=`
+ `)}}return(r.patternProperties||r.additionalProperties)&&(n+=n7e(t,e)),t.wrapObjects=o,n+=`
return json${t.wrapObjects?" + '}'":""}
- `,n}function oF(t,e,n,r){let i=e.getPropertyLocation("allOf");for(let l=0;l ${i.length}) {
throw new Error(\`Item at ${i.length} does not match schema definition.\`)
}
- `),iF==="json-stringify"&&(a+=`if (arrayLength && arrayLength >= ${j9}) return JSON.stringify(obj)
+ `),uF==="json-stringify"&&(a+=`if (arrayLength && arrayLength >= ${M9}) return JSON.stringify(obj)
`),a+=`
let jsonOutput = ''
- `,Array.isArray(i)){for(let u=0;ucF(i,e)).join(" || ")})`)}return n}function pF(t){return"anonymous"+t.functionsCounter++}function W9e(t,e,n){let i=e.schema.type.sort(a=>a==="null"?-1:1),l="";i.forEach((a,o)=>{e.schema={...e.schema,type:a};let u=fF(t,e,n),c=o===0?"if":"else if";switch(a){case"null":l+=`
+ )`;break;case"integer":n=`Number.isInteger(obj${e})`;break;case"number":n=`Number.isFinite(obj${e})`;break;case"boolean":n=`typeof obj${e} === 'boolean'`;break;case"object":n=`obj${e} && typeof obj${e} === 'object' && obj${e}.constructor === Object`;break;case"array":n=`Array.isArray(obj${e})`;break;default:Array.isArray(t)&&(n=`(${t.map(i=>mF(i,e)).join(" || ")})`)}return n}function yF(t){return"anonymous"+t.functionsCounter++}function a7e(t,e,n){let i=e.schema.type.sort(a=>a==="null"?-1:1),l="";i.forEach((a,o)=>{e.schema={...e.schema,type:a};let u=gF(t,e,n),c=o===0?"if":"else if";switch(a){case"null":l+=`
${c} (${n} === null)
${u}
`;break;case"string":{l+=`
@@ -278,17 +278,17 @@ ${s}`,ajv:o.ajv};let u=new Function("validator","serializer",s);return e.mode===
${u}
`;break}}});let s=e.getSchemaRef();return s.startsWith(t.rootSchemaId)&&(s=s.replace(t.rootSchemaId,"")),l+=`
else throw new TypeError(\`The value of '${s}' does not match schema definition.\`)
- `,l}function fF(t,e,n){let r=e.schema;switch(r.type){case"null":return"json += 'null'";case"string":return r.format==="date-time"?`json += serializer.asDateTime(${n})`:r.format==="date"?`json += serializer.asDate(${n})`:r.format==="time"?`json += serializer.asTime(${n})`:`json += serializer.asString(${n})`;case"integer":return`json += serializer.asInteger(${n})`;case"number":return`json += serializer.asNumber(${n})`;case"boolean":return`json += serializer.asBoolean(${n})`;case"object":return`json += ${uF(t,e)}(${n})`;case"array":return`json += ${X9e(t,e)}(${n})`;case void 0:return`json += JSON.stringify(${n})`;default:throw new Error(`${r.type} unsupported`)}}function Y9e(t,e){let n=t.schema,r=n.type,i=Array.isArray(r)&&r.includes("null"),l="";return i&&(l+=`
+ `,l}function gF(t,e,n){let r=e.schema;switch(r.type){case"null":return"json += 'null'";case"string":return r.format==="date-time"?`json += serializer.asDateTime(${n})`:r.format==="date"?`json += serializer.asDate(${n})`:r.format==="time"?`json += serializer.asTime(${n})`:`json += serializer.asString(${n})`;case"integer":return`json += serializer.asInteger(${n})`;case"number":return`json += serializer.asNumber(${n})`;case"boolean":return`json += serializer.asBoolean(${n})`;case"object":return`json += ${hF(t,e)}(${n})`;case"array":return`json += ${s7e(t,e)}(${n})`;case void 0:return`json += JSON.stringify(${n})`;default:throw new Error(`${r.type} unsupported`)}}function o7e(t,e){let n=t.schema,r=n.type,i=Array.isArray(r)&&r.includes("null"),l="";return i&&(l+=`
if (${e} === null) {
json += 'null'
} else {
- `),l+=`json += '${JSON.stringify(n.const).replace(M9e,"\\'")}'`,i&&(l+=`
+ `),l+=`json += '${JSON.stringify(n.const).replace(W9e,"\\'")}'`,i&&(l+=`
}
- `),l}function ta(t,e,n){let r=e.schema;if(typeof r=="boolean")return`json += JSON.stringify(${n})`;if(r.$ref&&(e=E1(t,e,r.$ref),r=e.schema),r.type===void 0){let a=aF(r);a&&(r.type=a)}if(r.if&&r.then)return J9e(t,e,n);r.allOf&&(oF(t,e,r,L9e(r)),r=e.schema);let i=r.type,l="";if((i===void 0||i==="object")&&(r.anyOf||r.oneOf)){if(t.validatorSchemasIds.add(e.getSchemaId()),r.type==="object"){t.wrapObjects=!1;let c=uF(t,e);l+=`
+ `),l}function na(t,e,n){let r=e.schema;if(typeof r=="boolean")return`json += JSON.stringify(${n})`;if(r.$ref&&(e=S1(t,e,r.$ref),r=e.schema),r.type===void 0){let a=fF(r);a&&(r.type=a)}if(r.if&&r.then)return i7e(t,e,n);r.allOf&&(dF(t,e,r,G9e(r)),r=e.schema);let i=r.type,l="";if((i===void 0||i==="object")&&(r.anyOf||r.oneOf)){if(t.validatorSchemasIds.add(e.getSchemaId()),r.type==="object"){t.wrapObjects=!1;let c=hF(t,e);l+=`
json += '{'
json += ${c}(${n})
json += ','
- `}let a=r.anyOf?"anyOf":"oneOf",o=e.getPropertyLocation(a);for(let c=0;c{"use strict";var Q9e=nv();function hF(t={readMode:!0}){if(t.readMode===!0&&typeof t.restoreFunction!="function")throw new Error("You must provide a function for the restoreFunction-option when readMode ON");if(t.readMode!==!0&&typeof t.storeFunction!="function")throw new Error("You must provide a function for the storeFunction-option when readMode OFF");if(t.readMode===!0)return function(){return function(r){return t.restoreFunction(r)}};let e=Q9e();return function(r,i={}){i.mode="standalone";let l=e(r,i);return function(s){let a=l(s);return t.storeFunction(s,a),new Function(a)}}}tv.exports=hF;tv.exports.default=hF});var nv=k((dIe,lc)=>{"use strict";var Z9e=dF();function rv(){return function(e,n){let r=Object.assign({},n,{schema:e});return e7e.bind(null,r)}}function e7e(t,{schema:e}){return t.schema&&e.$id&&t.schema[e.$id]&&(t.schema={...t.schema},delete t.schema[e.$id]),Z9e(e,t)}lc.exports=rv;lc.exports.default=rv;lc.exports.SerializerSelector=rv;lc.exports.StandaloneSerializer=mF()});var Ga=k(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.checkMetadata=void 0;var t7e=Nt(),n7e={keyword:"metadata",schemaType:"object",code(t){yF(t);let{gen:e,schema:n,it:r}=t;if((0,t7e.alwaysValidSchema)(r,n))return;let i=e.name("valid");t.subschema({keyword:"metadata",jtdMetadata:!0},i),t.ok(i)}};function yF({it:t,keyword:e},n){if(t.jtdMetadata!==n)throw new Error(`JTD: "${e}" cannot be used in this schema location`)}sc.checkMetadata=yF;sc.default=n7e});var U9=k(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.hasRef=void 0;var gF=xo(),ac=st(),r7e=x2(),vF=Wl(),_F=Jm(),i7e=Ga(),l7e={keyword:"ref",schemaType:"string",code(t){(0,i7e.checkMetadata)(t);let{gen:e,data:n,schema:r,parentSchema:i,it:l}=t,{schemaEnv:{root:s}}=l,a=e.name("valid");i.nullable?(e.var(a,(0,ac._)`${n} === null`),e.if((0,ac.not)(a),o)):(e.var(a,!1),o()),t.ok(a);function o(){var f;let m=(f=s.schema.definitions)===null||f===void 0?void 0:f[r];if(!m)throw new r7e.default(l.opts.uriResolver,"",r,`No definition ${r}`);iv(m)||!l.opts.inlineRefs?u(m):c(m)}function u(f){let m=gF.compileSchema.call(l.self,new gF.SchemaEnv({schema:f,root:s,schemaPath:`/definitions/${r}`})),d=(0,_F.getValidate)(t,m),y=e.const("_errs",vF.default.errors);(0,_F.callRef)(t,d,m,m.$async),e.assign(a,(0,ac._)`${y} === ${vF.default.errors}`)}function c(f){let m=e.scopeValue("schema",l.opts.code.source===!0?{ref:f,code:(0,ac.stringify)(f)}:{ref:f});t.subschema({schema:f,dataTypes:[],schemaPath:ac.nil,topSchemaRef:m,errSchemaPath:`/definitions/${r}`},a)}}};function iv(t){for(let e in t){let n;if(e==="ref"||typeof(n=t[e])=="object"&&iv(n))return!0}return!1}oc.hasRef=iv;oc.default=l7e});var sv=k(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0});var s7e=/t|\s/i,a7e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o7e=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i,u7e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function bF(t,e){let n=t.split(s7e);return n.length===2&&EF(n[0])&&c7e(n[1])||e&&n.length===1&&EF(n[0])}lv.default=bF;function EF(t){let e=a7e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],i=+e[3];return r>=1&&r<=12&&i>=1&&(i<=u7e[r]||r===2&&i===29&&(n%100===0?n%400===0:n%4===0))}function c7e(t){let e=o7e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],i=+e[3],l=+(e[4]||0),s=+(e[5]||0);return n<=23&&r<=59&&i<=59||n-l===23&&r-s===59&&i===60}bF.code='require("ajv/dist/runtime/timestamp").default'});var w1=k(R2=>{"use strict";Object.defineProperty(R2,"__esModule",{value:!0});R2.typeErrorParams=R2.typeErrorMessage=R2.typeError=void 0;var p7e=st();function f7e(t){return{message:e=>wF(e,t),params:e=>SF(e,t)}}R2.typeError=f7e;function wF({parentSchema:t},e){return t?.nullable?`must be ${e} or null`:`must be ${e}`}R2.typeErrorMessage=wF;function SF({parentSchema:t},e){return(0,p7e._)`{type: ${e}, nullable: ${!!t?.nullable}}`}R2.typeErrorParams=SF});var av=k(S1=>{"use strict";Object.defineProperty(S1,"__esModule",{value:!0});S1.intRange=void 0;var kl=st(),d7e=sv(),h7e=Nt(),m7e=Ga(),TF=w1();S1.intRange={int8:[-128,127,3],uint8:[0,255,3],int16:[-32768,32767,5],uint16:[0,65535,5],int32:[-2147483648,2147483647,10],uint32:[0,4294967295,10]};var y7e={message:t=>(0,TF.typeErrorMessage)(t,t.schema),params:t=>(0,TF.typeErrorParams)(t,t.schema)};function g7e(t){let{gen:e,data:n,it:r}=t,{timestamp:i,allowDate:l}=r.opts;if(i==="date")return(0,kl._)`${n} instanceof Date `;let s=(0,h7e.useFunc)(e,d7e.default),a=l?(0,kl._)`, true`:kl.nil,o=(0,kl._)`typeof ${n} == "string" && ${s}(${n}${a})`;return i==="string"?o:(0,kl.or)((0,kl._)`${n} instanceof Date`,o)}var v7e={keyword:"type",schemaType:"string",error:y7e,code(t){(0,m7e.checkMetadata)(t);let{data:e,schema:n,parentSchema:r,it:i}=t,l;switch(n){case"boolean":case"string":l=(0,kl._)`typeof ${e} == ${n}`;break;case"timestamp":{l=g7e(t);break}case"float32":case"float64":l=(0,kl._)`typeof ${e} == "number"`;break;default:{let s=n;if(l=(0,kl._)`typeof ${e} == "number" && isFinite(${e}) && !(${e} % 1)`,!i.opts.int32range&&(s==="int32"||s==="uint32"))s==="uint32"&&(l=(0,kl._)`${l} && ${e} >= 0`);else{let[a,o]=S1.intRange[s];l=(0,kl._)`${l} && ${e} >= ${a} && ${e} <= ${o}`}}}t.pass(r.nullable?(0,kl.or)((0,kl._)`${e} === null`,l):l)}};S1.default=v7e});var x1=k(T1=>{"use strict";Object.defineProperty(T1,"__esModule",{value:!0});T1.checkNullableObject=T1.checkNullable=void 0;var M9=st();function xF({gen:t,data:e,parentSchema:n},r=M9.nil){let i=t.name("valid");return n.nullable?(t.let(i,(0,M9._)`${e} === null`),r=(0,M9.not)(i)):t.let(i,!1),[i,r]}T1.checkNullable=xF;function _7e(t,e){let[n,r]=xF(t,e);return[n,(0,M9._)`${r} && typeof ${t.data} == "object" && !Array.isArray(${t.data})`]}T1.checkNullableObject=_7e});var AF=k(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0});var I2=st(),E7e=Ga(),b7e=x1(),w7e={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,I2._)`{allowedValues: ${t}}`},S7e={keyword:"enum",schemaType:"array",error:w7e,code(t){(0,E7e.checkMetadata)(t);let{gen:e,data:n,schema:r,schemaValue:i,parentSchema:l,it:s}=t;if(r.length===0)throw new Error("enum must have non-empty array");if(r.length!==new Set(r).size)throw new Error("enum items must be unique");let a,o=(0,I2._)`typeof ${n} == "string"`;if(r.length>=s.opts.loopEnum){let c;[a,c]=(0,b7e.checkNullable)(t,o),e.if(c,u)}else{if(!Array.isArray(r))throw new Error("ajv implementation error");a=(0,I2.and)(o,(0,I2.or)(...r.map(c=>(0,I2._)`${n} === ${c}`))),l.nullable&&(a=(0,I2.or)((0,I2._)`${n} === null`,a))}t.pass(a);function u(){e.forOf("v",i,c=>e.if((0,I2._)`${a} = ${n} === ${c}`,()=>e.break()))}}};ov.default=S7e});var NF=k(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0});var T7e=Nt(),x7e=Si(),OF=st(),A7e=Ga(),O7e=x1(),N7e=w1(),C7e={keyword:"elements",schemaType:"object",error:(0,N7e.typeError)("array"),code(t){(0,A7e.checkMetadata)(t);let{gen:e,data:n,schema:r,it:i}=t;if((0,T7e.alwaysValidSchema)(i,r))return;let[l]=(0,O7e.checkNullable)(t);e.if((0,OF.not)(l),()=>e.if((0,OF._)`Array.isArray(${n})`,()=>e.assign(l,(0,x7e.validateArray)(t)),()=>t.error())),t.ok(l)}};uv.default=C7e});var pv=k(k2=>{"use strict";Object.defineProperty(k2,"__esModule",{value:!0});k2.validateProperties=k2.error=void 0;var cv=Si(),CF=Nt(),Ja=st(),R7e=Ga(),I7e=x1(),RF=w1(),A1;(function(t){t.Additional="additional",t.Missing="missing"})(A1||(A1={}));k2.error={message:t=>{let{params:e}=t;return e.propError?e.propError===A1.Additional?"must NOT have additional properties":`must have property '${e.missingProperty}'`:(0,RF.typeErrorMessage)(t,"object")},params:t=>{let{params:e}=t;return e.propError?e.propError===A1.Additional?(0,Ja._)`{error: ${e.propError}, additionalProperty: ${e.additionalProperty}}`:(0,Ja._)`{error: ${e.propError}, missingProperty: ${e.missingProperty}}`:(0,RF.typeErrorParams)(t,"object")}};var k7e={keyword:"properties",schemaType:"object",error:k2.error,code:IF};function IF(t){(0,R7e.checkMetadata)(t);let{gen:e,data:n,parentSchema:r,it:i}=t,{additionalProperties:l,nullable:s}=r;if(i.jtdDiscriminator&&s)throw new Error("JTD: nullable inside discriminator mapping");if(d())throw new Error("JTD: properties and optionalProperties have common members");let[a,o]=y("properties"),[u,c]=y("optionalProperties");if(o.length===0&&c.length===0&&l)return;let[f,m]=i.jtdDiscriminator===void 0?(0,I7e.checkNullableObject)(t,n):[e.let("valid",!1),!0];e.if(m,()=>e.assign(f,!0).block(()=>{_(o,"properties",!0),_(c,"optionalProperties"),l||w()})),t.pass(f);function d(){let g=r.properties,v=r.optionalProperties;if(!(g&&v))return!1;for(let x in g)if(Object.prototype.hasOwnProperty.call(v,x))return!0;return!1}function y(g){let v=r[g],x=v?(0,cv.allSchemaProperties)(v):[];if(i.jtdDiscriminator&&x.some(N=>N===i.jtdDiscriminator))throw new Error(`JTD: discriminator tag used in ${g}`);let O=x.filter(N=>!(0,CF.alwaysValidSchema)(i,v[N]));return[x,O]}function _(g,v,x){let O=e.var("valid");for(let R of g)e.if((0,cv.propertyInData)(e,n,R,i.opts.ownProperties),()=>S(R,v,O),()=>N(R)),t.ok(O);function N(R){x?(e.assign(O,!1),t.error(!1,{propError:A1.Missing,missingProperty:R},{schemaPath:R})):e.assign(O,!0)}}function S(g,v,x){t.subschema({keyword:v,schemaProp:g,dataProp:g},x)}function w(){e.forIn("key",n,g=>{let v=E(g,a,"properties",i.jtdDiscriminator),x=E(g,u,"optionalProperties"),O=v===!0?x:x===!0?v:(0,Ja.and)(v,x);e.if(O,()=>{i.opts.removeAdditional?e.code((0,Ja._)`delete ${n}[${g}]`):(t.error(!1,{propError:A1.Additional,additionalProperty:g},{instancePath:g,parentSchema:!0}),i.opts.allErrors||e.break())})})}function E(g,v,x,O){let N;if(v.length>8){let R=(0,CF.schemaRefOrVal)(i,r[x],x);N=(0,Ja.not)((0,cv.isOwnProperty)(e,R,g)),O!==void 0&&(N=(0,Ja.and)(N,(0,Ja._)`${g} !== ${O}`))}else if(v.length||O!==void 0){let R=O===void 0?v:[O].concat(v);N=(0,Ja.and)(...R.map(U=>(0,Ja._)`${g} !== ${U}`))}else N=!0;return N}}k2.validateProperties=IF;k2.default=k7e});var DF=k(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});var kF=pv(),D7e={keyword:"optionalProperties",schemaType:"object",error:kF.error,code(t){t.parentSchema.properties||(0,kF.validateProperties)(t)}};fv.default=D7e});var LF=k(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});var Fo=st(),P7e=Ga(),L7e=x1(),PF=w1(),$9=Dy(),F7e={message:t=>{let{schema:e,params:n}=t;return n.discrError?n.discrError===$9.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in mapping`:(0,PF.typeErrorMessage)(t,"object")},params:t=>{let{schema:e,params:n}=t;return n.discrError?(0,Fo._)`{error: ${n.discrError}, tag: ${e}, tagValue: ${n.tag}}`:(0,PF.typeErrorParams)(t,"object")}},j7e={keyword:"discriminator",schemaType:"string",implements:["mapping"],error:F7e,code(t){(0,P7e.checkMetadata)(t);let{gen:e,data:n,schema:r,parentSchema:i}=t,[l,s]=(0,L7e.checkNullableObject)(t,n);e.if(s),a(),e.elseIf((0,Fo.not)(l)),t.error(),e.endIf(),t.ok(l);function a(){let c=e.const("tag",(0,Fo._)`${n}${(0,Fo.getProperty)(r)}`);e.if((0,Fo._)`${c} === undefined`),t.error(!1,{discrError:$9.DiscrError.Tag,tag:c}),e.elseIf((0,Fo._)`typeof ${c} == "string"`),o(c),e.else(),t.error(!1,{discrError:$9.DiscrError.Tag,tag:c},{instancePath:r}),e.endIf()}function o(c){e.if(!1);for(let f in i.mapping)e.elseIf((0,Fo._)`${c} === ${f}`),e.assign(l,u(f));e.else(),t.error(!1,{discrError:$9.DiscrError.Mapping,tag:c},{instancePath:r,schemaPath:"mapping",parentSchema:!0}),e.endIf()}function u(c){let f=e.name("valid");return t.subschema({keyword:"mapping",schemaProp:c,jtdDiscriminator:r},f),f}}};dv.default=j7e});var jF=k(hv=>{"use strict";Object.defineProperty(hv,"__esModule",{value:!0});var FF=Nt(),B9=st(),U7e=Ga(),M7e=x1(),$7e=w1(),B7e={keyword:"values",schemaType:"object",error:(0,$7e.typeError)("object"),code(t){(0,U7e.checkMetadata)(t);let{gen:e,data:n,schema:r,it:i}=t,[l,s]=(0,M7e.checkNullableObject)(t,n);(0,FF.alwaysValidSchema)(i,r)?e.if((0,B9.not)((0,B9.or)(s,l)),()=>t.error()):(e.if(s),e.assign(l,a()),e.elseIf((0,B9.not)(l)),t.error(),e.endIf()),t.ok(l);function a(){let o=e.name("valid");if(i.allErrors){let c=e.let("valid",!0);return u(()=>e.assign(c,!1)),c}return e.var(o,!0),u(()=>e.break()),o;function u(c){e.forIn("key",n,f=>{t.subschema({keyword:"values",dataProp:f,dataPropType:FF.Type.Str},o),e.if((0,B9.not)(o),c)})}}}};hv.default=B7e});var UF=k(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});var H7e=Si(),V7e={keyword:"union",schemaType:"array",trackErrors:!0,code:H7e.validateUnion,error:{message:"must match a schema in union"}};mv.default=V7e});var MF=k(yv=>{"use strict";Object.defineProperty(yv,"__esModule",{value:!0});var q7e=U9(),z7e=av(),G7e=AF(),J7e=NF(),K7e=pv(),X7e=DF(),W7e=LF(),Y7e=jF(),Q7e=UF(),Z7e=Ga(),epe=["definitions",q7e.default,z7e.default,G7e.default,J7e.default,K7e.default,X7e.default,W7e.default,Y7e.default,Q7e.default,Z7e.default,{keyword:"additionalProperties",schemaType:"boolean"},{keyword:"nullable",schemaType:"boolean"}];yv.default=epe});var VF=k(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});var Ka=t=>{let e={nullable:{type:"boolean"},metadata:{optionalProperties:{union:{elements:{ref:"schema"}}},additionalProperties:!0}};return t&&(e.definitions={values:{ref:"schema"}}),e},tpe=t=>({optionalProperties:Ka(t)}),npe=t=>({properties:{ref:{type:"string"}},optionalProperties:Ka(t)}),rpe=t=>({properties:{type:{enum:["boolean","timestamp","string","float32","float64","int8","uint8","int16","uint16","int32","uint32"]}},optionalProperties:Ka(t)}),ipe=t=>({properties:{enum:{elements:{type:"string"}}},optionalProperties:Ka(t)}),lpe=t=>({properties:{elements:{ref:"schema"}},optionalProperties:Ka(t)}),BF=t=>({properties:{properties:{values:{ref:"schema"}}},optionalProperties:{optionalProperties:{values:{ref:"schema"}},additionalProperties:{type:"boolean"},...Ka(t)}}),HF=t=>({properties:{optionalProperties:{values:{ref:"schema"}}},optionalProperties:{additionalProperties:{type:"boolean"},...Ka(t)}}),spe=t=>({properties:{discriminator:{type:"string"},mapping:{values:{metadata:{union:[BF(!1),HF(!1)]}}}},optionalProperties:Ka(t)}),ape=t=>({properties:{values:{ref:"schema"}},optionalProperties:Ka(t)}),$F=t=>({metadata:{union:[tpe,npe,rpe,ipe,lpe,BF,HF,spe,ape].map(e=>e(t))}}),ope={definitions:{schema:$F(!1)},...$F(!0)};gv.default=ope});var vv=k(H9=>{"use strict";Object.defineProperty(H9,"__esModule",{value:!0});H9.jtdForms=void 0;H9.jtdForms=["elements","values","discriminator","properties","optionalProperties","enum","type","ref"]});var zF=k(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});var _v=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,upe={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function qF(t){return _v.lastIndex=0,'"'+(_v.test(t)?t.replace(_v,e=>{let n=upe[e];return typeof n=="string"?n:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}):t)+'"'}Ev.default=qF;qF.code='require("ajv/dist/runtime/quote").default'});var YF=k(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});var cpe=vv(),JF=xo(),qt=st(),ppe=x2(),ar=Wl(),fpe=Si(),dpe=U9(),hpe=Nt(),mpe=zF(),ype={elements:vpe,values:_pe,discriminator:Epe,properties:GF,optionalProperties:GF,enum:uc,type:bpe,ref:Spe};function KF(t,e){let n=JF.getCompilingSchema.call(this,t);if(n)return n;let{es5:r,lines:i}=this.opts.code,{ownProperties:l}=this.opts,s=new qt.CodeGen(this.scope,{es5:r,lines:i,ownProperties:l}),a=s.scopeName("serialize"),o={self:this,gen:s,schema:t.schema,schemaEnv:t,definitions:e,data:ar.default.data},u;try{this._compilations.add(t),t.serializeName=a,s.func(a,ar.default.data,!1,()=>{s.let(ar.default.json,(0,qt.str)``),cc(o),s.return(ar.default.json)}),s.optimize(this.opts.code.optimize);let c=s.toString();u=`${s.scopeRefs(ar.default.scope)}return ${c}`;let m=new Function(`${ar.default.scope}`,u)(this.scope.get());this.scope.value(a,{ref:m}),t.serialize=m}catch(c){throw u&&this.logger.error("Error compiling serializer, function code:",u),delete t.serialize,delete t.serializeName,c}finally{this._compilations.delete(t)}return t}wv.default=KF;function cc(t){let e;for(let n of cpe.jtdForms)if(n in t.schema){e=n;break}gpe(t,e?ype[e]:xpe)}function gpe(t,e){let{gen:n,schema:r,data:i}=t;if(!r.nullable)return e(t);n.if((0,qt._)`${i} === undefined || ${i} === null`,()=>n.add(ar.default.json,(0,qt._)`"null"`),()=>e(t))}function vpe(t){let{gen:e,schema:n,data:r}=t;e.add(ar.default.json,(0,qt.str)`[`);let i=e.let("first",!0);e.forOf("el",r,l=>{bv(t,i),cc({...t,schema:n.elements,data:l})}),e.add(ar.default.json,(0,qt.str)`]`)}function _pe(t){let{gen:e,schema:n,data:r}=t;e.add(ar.default.json,(0,qt.str)`{`);let i=e.let("first",!0);e.forIn("key",r,l=>XF(t,l,n.values,i)),e.add(ar.default.json,(0,qt.str)`}`)}function XF(t,e,n,r){let{gen:i,data:l}=t;bv(t,r),uc({...t,data:e}),i.add(ar.default.json,(0,qt.str)`:`);let s=i.const("value",(0,qt._)`${l}${(0,qt.getProperty)(e)}`);cc({...t,schema:n,data:s})}function Epe(t){let{gen:e,schema:n,data:r}=t,{discriminator:i}=n;e.add(ar.default.json,(0,qt.str)`{${JSON.stringify(i)}:`);let l=e.const("tag",(0,qt._)`${r}${(0,qt.getProperty)(i)}`);uc({...t,data:l}),e.if(!1);for(let s in n.mapping){e.elseIf((0,qt._)`${l} === ${s}`);let a=n.mapping[s];WF({...t,schema:a},i)}e.endIf(),e.add(ar.default.json,(0,qt.str)`}`)}function GF(t){let{gen:e}=t;e.add(ar.default.json,(0,qt.str)`{`),WF(t),e.add(ar.default.json,(0,qt.str)`}`)}function WF(t,e){let{gen:n,schema:r,data:i}=t,{properties:l,optionalProperties:s}=r,a=m(l),o=m(s),u=d(a.concat(o)),c=!e,f;for(let w of a)c?c=!1:n.add(ar.default.json,(0,qt.str)`,`),_(w,l[w],y(w));c&&(f=n.let("first",!0));for(let w of o){let E=y(w);n.if((0,qt.and)((0,qt._)`${E} !== undefined`,(0,fpe.isOwnProperty)(n,i,w)),()=>{bv(t,f),_(w,s[w],E)})}r.additionalProperties&&n.forIn("key",i,w=>n.if(S(w,u),()=>XF(t,w,{},f)));function m(w){return w?Object.keys(w):[]}function d(w){if(e&&w.push(e),new Set(w).size!==w.length)throw new Error("JTD: properties/optionalProperties/disciminator overlap");return w}function y(w){return n.const("value",(0,qt._)`${i}${(0,qt.getProperty)(w)}`)}function _(w,E,g){n.add(ar.default.json,(0,qt.str)`${JSON.stringify(w)}:`),cc({...t,schema:E,data:g})}function S(w,E){return E.length?(0,qt.and)(...E.map(g=>(0,qt._)`${w} !== ${g}`)):!0}}function bpe(t){let{gen:e,schema:n,data:r}=t;switch(n.type){case"boolean":e.add(ar.default.json,(0,qt._)`${r} ? "true" : "false"`);break;case"string":uc(t);break;case"timestamp":e.if((0,qt._)`${r} instanceof Date`,()=>e.add(ar.default.json,(0,qt._)`'"' + ${r}.toISOString() + '"'`),()=>uc(t));break;default:wpe(t)}}function uc({gen:t,data:e}){t.add(ar.default.json,(0,qt._)`${(0,hpe.useFunc)(t,mpe.default)}(${e})`)}function wpe({gen:t,data:e}){t.add(ar.default.json,(0,qt._)`"" + ${e}`)}function Spe(t){let{gen:e,self:n,data:r,definitions:i,schema:l,schemaEnv:s}=t,{ref:a}=l,o=i[a];if(!o)throw new ppe.default(n.opts.uriResolver,"",a,`No definition ${a}`);if(!(0,dpe.hasRef)(o))return cc({...t,schema:o});let{root:u}=s,c=KF.call(n,new JF.SchemaEnv({schema:o,root:u}),i);e.add(ar.default.json,(0,qt._)`${Tpe(e,c)}(${r})`)}function Tpe(t,e){return e.serialize?t.scopeValue("serialize",{ref:e.serialize}):(0,qt._)`${t.scopeValue("wrapper",{ref:e})}.serialize`}function xpe({gen:t,data:e}){t.add(ar.default.json,(0,qt._)`JSON.stringify(${e})`)}function bv({gen:t},e){e?t.if(e,()=>t.assign(e,!1),()=>t.add(ar.default.json,(0,qt.str)`,`)):t.add(ar.default.json,(0,qt.str)`,`)}});var ZF=k(P2=>{"use strict";Object.defineProperty(P2,"__esModule",{value:!0});P2.parseJsonString=P2.parseJsonNumber=P2.parseJson=void 0;var Ape=/position\s(\d+)$/;function Xa(t,e){let n;Xa.message=void 0;let r;e&&(t=t.slice(e));try{return Xa.position=e+t.length,JSON.parse(t)}catch(i){if(r=Ape.exec(i.message),!r){Xa.message="unexpected end";return}n=+r[1];let l=t[n];t=t.slice(0,n),Xa.position=e+n;try{return JSON.parse(t)}catch{Xa.message=`unexpected token ${l}`;return}}}P2.parseJson=Xa;Xa.message=void 0;Xa.position=0;Xa.code='require("ajv/dist/runtime/parseJson").parseJson';function Wa(t,e,n){let r="",i;if(Wa.message=void 0,t[e]==="-"&&(r+="-",e++),t[e]==="0")r+="0",e++;else if(!l(n)){s();return}if(n)return Wa.position=e,+r;if(t[e]==="."&&(r+=".",e++,!l())){s();return}if(i=t[e],(i==="e"||i==="E")&&(r+="e",e++,i=t[e],(i==="+"||i==="-")&&(r+=i,e++),!l())){s();return}return Wa.position=e,+r;function l(a){let o=!1;for(;i=t[e],i>="0"&&i<="9"&&(a===void 0||a-- >0);)o=!0,r+=i,e++;return o}function s(){Wa.position=e,Wa.message=e="a"&&r<="f")s+=r.charCodeAt(0)-Ope+10;else if(r>="0"&&r<="9")s+=r.charCodeAt(0)-Npe;else{i(`unexpected token ${r}`);return}e++}n+=String.fromCharCode(s)}else{i(`unexpected token ${r}`);return}else if(r===void 0){i("unexpected end");return}else if(r.charCodeAt(0)>=32)n+=r;else{i(`unexpected token ${r}`);return}return D2.position=e,n;function i(l){D2.position=e,D2.message=l}}P2.parseJsonString=D2;D2.message=void 0;D2.position=0;D2.code='require("ajv/dist/runtime/parseJson").parseJsonString'});var cj=k(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});var Cpe=vv(),rj=xo(),tt=st(),Rpe=x2(),Ht=Wl(),Ipe=Si(),kpe=U9(),Dpe=av(),xv=ZF(),ij=Nt(),Ppe=sv(),Lpe={elements:Mpe,values:$pe,discriminator:Hpe,properties:ej,optionalProperties:ej,enum:qpe,type:Vpe,ref:zpe};function lj(t,e){let n=rj.getCompilingSchema.call(this,t);if(n)return n;let{es5:r,lines:i}=this.opts.code,{ownProperties:l}=this.opts,s=new tt.CodeGen(this.scope,{es5:r,lines:i,ownProperties:l}),a=s.scopeName("parse"),o={self:this,gen:s,schema:t.schema,schemaEnv:t,definitions:e,data:Ht.default.data,parseName:a,char:s.name("c")},u;try{this._compilations.add(t),t.parseName=a,Fpe(o),s.optimize(this.opts.code.optimize);let c=s.toString();u=`${s.scopeRefs(Ht.default.scope)}return ${c}`;let m=new Function(`${Ht.default.scope}`,u)(this.scope.get());this.scope.value(a,{ref:m}),t.parse=m}catch(c){throw u&&this.logger.error("Error compiling parser, function code:",u),delete t.parse,delete t.parseName,c}finally{this._compilations.delete(t)}return t}Rv.default=lj;var Tv=(0,tt._)`undefined`;function Fpe(t){let{gen:e,parseName:n,char:r}=t;e.func(n,(0,tt._)`${Ht.default.json}, ${Ht.default.jsonPos}, ${Ht.default.jsonPart}`,!1,()=>{e.let(Ht.default.data),e.let(r),e.assign((0,tt._)`${n}.message`,Tv),e.assign((0,tt._)`${n}.position`,Tv),e.assign(Ht.default.jsonPos,(0,tt._)`${Ht.default.jsonPos} || 0`),e.const(Ht.default.jsonLen,(0,tt._)`${Ht.default.json}.length`),V9(t),Cv(t),e.if(Ht.default.jsonPart,()=>{e.assign((0,tt._)`${n}.position`,Ht.default.jsonPos),e.return(Ht.default.data)}),e.if((0,tt._)`${Ht.default.jsonPos} === ${Ht.default.jsonLen}`,()=>e.return(Ht.default.data)),O1(t)})}function V9(t){let e;for(let n of Cpe.jtdForms)if(n in t.schema){e=n;break}e?Upe(t,Lpe[e]):Ov(t)}var jpe=nj(!0,nj(!1,O1));function Upe(t,e){let{gen:n,schema:r,data:i}=t;if(!r.nullable)return e(t);pc(t,"null",e,()=>n.assign(i,null))}function Mpe(t){let{gen:e,schema:n,data:r}=t;na(t,"[");let i=e.let("i",0);e.assign(r,(0,tt._)`[]`),Av(t,"]",()=>{let l=e.let("el");V9({...t,schema:n.elements,data:l}),e.assign((0,tt._)`${r}[${i}++]`,l)})}function $pe(t){let{gen:e,schema:n,data:r}=t;na(t,"{"),e.assign(r,(0,tt._)`{}`),Av(t,"}",()=>Bpe(t,n.values))}function Av(t,e,n){sj(t,e,n),na(t,e)}function sj(t,e,n){let{gen:r}=t;r.for((0,tt._)`;${Ht.default.jsonPos}<${Ht.default.jsonLen} && ${q9(1)}!==${e};`,()=>{n(),pc(t,",",()=>r.break(),i)});function i(){pc(t,e,()=>{},O1)}}function Bpe(t,e){let{gen:n}=t,r=n.let("key");jo({...t,data:r}),na(t,":"),oj(t,r,e)}function Hpe(t){let{gen:e,data:n,schema:r}=t,{discriminator:i,mapping:l}=r;na(t,"{"),e.assign(n,(0,tt._)`{}`);let s=e.const("pos",Ht.default.jsonPos),a=e.let("value"),o=e.let("tag");sj(t,"}",()=>{let u=e.let("key");jo({...t,data:u}),na(t,":"),e.if((0,tt._)`${u} === ${i}`,()=>{jo({...t,data:o}),e.assign((0,tt._)`${n}[${u}]`,o),e.break()},()=>Ov({...t,data:a}))}),e.assign(Ht.default.jsonPos,s),e.if((0,tt._)`${o} === undefined`),Ya(t,(0,tt.str)`discriminator tag not found`);for(let u in l)e.elseIf((0,tt._)`${o} === ${u}`),aj({...t,schema:l[u]},i);e.else(),Ya(t,(0,tt.str)`discriminator value not in schema`),e.endIf()}function ej(t){let{gen:e,data:n}=t;na(t,"{"),e.assign(n,(0,tt._)`{}`),aj(t)}function aj(t,e){let{gen:n,schema:r,data:i}=t,{properties:l,optionalProperties:s,additionalProperties:a}=r;if(Av(t,"}",()=>{let o=n.let("key");if(jo({...t,data:o}),na(t,":"),n.if(!1),tj(t,o,l),tj(t,o,s),e){n.elseIf((0,tt._)`${o} === ${e}`);let u=n.let("tag");jo({...t,data:u})}n.else(),a?Ov({...t,data:(0,tt._)`${i}[${o}]`}):Ya(t,(0,tt.str)`property ${o} not allowed`),n.endIf()}),l){let o=(0,Ipe.hasPropFunc)(n),u=(0,tt.and)(...Object.keys(l).map(c=>(0,tt._)`${o}.call(${i}, ${c})`));n.if((0,tt.not)(u),()=>Ya(t,(0,tt.str)`missing required properties`))}}function tj(t,e,n={}){let{gen:r}=t;for(let i in n)r.elseIf((0,tt._)`${e} === ${i}`),oj(t,e,n[i])}function oj(t,e,n){V9({...t,schema:n,data:(0,tt._)`${t.data}[${e}]`})}function Vpe(t){let{gen:e,schema:n,data:r,self:i}=t;switch(n.type){case"boolean":jpe(t);break;case"string":jo(t);break;case"timestamp":{jo(t);let l=(0,ij.useFunc)(e,Ppe.default),{allowDate:s,parseDate:a}=i.opts,o=s?(0,tt._)`!${l}(${r}, true)`:(0,tt._)`!${l}(${r})`,u=a?(0,tt.or)(o,(0,tt._)`(${r} = new Date(${r}), false)`,(0,tt._)`isNaN(${r}.valueOf())`):o;e.if(u,()=>Ya(t,(0,tt.str)`invalid timestamp`));break}case"float32":case"float64":Sv(t);break;default:{let l=n.type;if(!i.opts.int32range&&(l==="int32"||l==="uint32"))Sv(t,16),l==="uint32"&&e.if((0,tt._)`${r} < 0`,()=>Ya(t,(0,tt.str)`integer out of range`));else{let[s,a,o]=Dpe.intRange[l];Sv(t,o),e.if((0,tt._)`${r} < ${s} || ${r} > ${a}`,()=>Ya(t,(0,tt.str)`integer out of range`))}}}}function jo(t){na(t,'"'),Nv(t,xv.parseJsonString)}function qpe(t){let{gen:e,data:n,schema:r}=t,i=r.enum;na(t,'"'),e.if(!1);for(let l of i){let s=JSON.stringify(l).slice(1);e.elseIf((0,tt._)`${q9(s.length)} === ${s}`),e.assign(n,(0,tt.str)`${l}`),e.add(Ht.default.jsonPos,s.length)}e.else(),O1(t),e.endIf()}function Sv(t,e){let{gen:n}=t;Cv(t),n.if((0,tt._)`"-0123456789".indexOf(${q9(1)}) < 0`,()=>O1(t),()=>Nv(t,xv.parseJsonNumber,e))}function nj(t,e){return n=>{let{gen:r,data:i}=n;pc(n,`${t}`,()=>e(n),()=>r.assign(i,t))}}function zpe(t){let{gen:e,self:n,definitions:r,schema:i,schemaEnv:l}=t,{ref:s}=i,a=r[s];if(!a)throw new Rpe.default(n.opts.uriResolver,"",s,`No definition ${s}`);if(!(0,kpe.hasRef)(a))return V9({...t,schema:a});let{root:o}=l,u=lj.call(n,new rj.SchemaEnv({schema:a,root:o}),r);uj(t,Gpe(e,u),!0)}function Gpe(t,e){return e.parse?t.scopeValue("parse",{ref:e.parse}):(0,tt._)`${t.scopeValue("wrapper",{ref:e})}.parse`}function Ov(t){Nv(t,xv.parseJson)}function Nv(t,e,n){uj(t,(0,ij.useFunc)(t.gen,e),n)}function uj(t,e,n){let{gen:r,data:i}=t;r.assign(i,(0,tt._)`${e}(${Ht.default.json}, ${Ht.default.jsonPos}${n?(0,tt._)`, ${n}`:tt.nil})`),r.assign(Ht.default.jsonPos,(0,tt._)`${e}.position`),r.if((0,tt._)`${i} === undefined`,()=>Ya(t,(0,tt._)`${e}.message`))}function na(t,e){pc(t,e,O1)}function pc(t,e,n,r){let{gen:i}=t,l=e.length;Cv(t),i.if((0,tt._)`${q9(l)} === ${e}`,()=>{i.add(Ht.default.jsonPos,l),r?.(t)},()=>n(t))}function Cv({gen:t,char:e}){t.code((0,tt._)`while((${e}=${Ht.default.json}[${Ht.default.jsonPos}],${e}===" "||${e}==="\\n"||${e}==="\\r"||${e}==="\\t"))${Ht.default.jsonPos}++;`)}function q9(t){return t===1?(0,tt._)`${Ht.default.json}[${Ht.default.jsonPos}]`:(0,tt._)`${Ht.default.json}.slice(${Ht.default.jsonPos}, ${Ht.default.jsonPos}+${t})`}function O1(t){Ya(t,(0,tt._)`"unexpected token " + ${Ht.default.json}[${Ht.default.jsonPos}]`)}function Ya({gen:t,parseName:e},n){t.assign((0,tt._)`${e}.message`,n),t.assign((0,tt._)`${e}.position`,Ht.default.jsonPos),t.return(Tv)}});var kv=k((vr,pj)=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.MissingRefError=vr.ValidationError=vr.CodeGen=vr.Name=vr.nil=vr.stringify=vr.str=vr._=vr.KeywordCxt=void 0;var Jpe=zm(),Kpe=MF(),Xpe=VF(),Wpe=YF(),Ype=cj(),Iv="JTD-meta-schema",z9=class extends Jpe.default{constructor(e={}){super({...e,jtd:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(Kpe.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema(),this.opts.meta&&this.addMetaSchema(Xpe.default,Iv,!1)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Iv)?Iv:void 0)}compileSerializer(e){let n=this._addSchema(e);return n.serialize||this._compileSerializer(n)}compileParser(e){let n=this._addSchema(e);return n.parse||this._compileParser(n)}_compileSerializer(e){if(Wpe.default.call(this,e,e.schema.definitions||{}),!e.serialize)throw new Error("ajv implementation error");return e.serialize}_compileParser(e){if(Ype.default.call(this,e,e.schema.definitions||{}),!e.parse)throw new Error("ajv implementation error");return e.parse}};pj.exports=vr=z9;Object.defineProperty(vr,"__esModule",{value:!0});vr.default=z9;var Qpe=r1();Object.defineProperty(vr,"KeywordCxt",{enumerable:!0,get:function(){return Qpe.KeywordCxt}});var N1=st();Object.defineProperty(vr,"_",{enumerable:!0,get:function(){return N1._}});Object.defineProperty(vr,"str",{enumerable:!0,get:function(){return N1.str}});Object.defineProperty(vr,"stringify",{enumerable:!0,get:function(){return N1.stringify}});Object.defineProperty(vr,"nil",{enumerable:!0,get:function(){return N1.nil}});Object.defineProperty(vr,"Name",{enumerable:!0,get:function(){return N1.Name}});Object.defineProperty(vr,"CodeGen",{enumerable:!0,get:function(){return N1.CodeGen}});var Zpe=T4();Object.defineProperty(vr,"ValidationError",{enumerable:!0,get:function(){return Zpe.default}});var efe=x2();Object.defineProperty(vr,"MissingRefError",{enumerable:!0,get:function(){return efe.default}})});var Dv=k((PIe,fj)=>{"use strict";var tfe=My();fj.exports=Object.freeze({coerceTypes:"array",useDefaults:!0,removeAdditional:!0,uriResolver:tfe,addUsedSchema:!1,allErrors:!1})});var mj=k((LIe,hj)=>{"use strict";var nfe=Y8().default,rfe=kv(),dj=Dv(),Pv=class{constructor(e,n){n.mode==="JTD"?this.ajv=new rfe(Object.assign({},dj,n.customOptions)):this.ajv=new nfe(Object.assign({},dj,n.customOptions));let r=!0;if(n.plugins&&n.plugins.length>0)for(let l of n.plugins)Array.isArray(l)?(r=r&&l[0].name!=="formatsPlugin",l[0](this.ajv,l[1])):(r=r&&l.name!=="formatsPlugin",l(this.ajv));r&&Gy()(this.ajv);let i=Object.values(e);for(let l of i)this.ajv.addSchema(l)}buildValidatorFunction({schema:e}){if(e.$id){let n=this.ajv.getSchema(e.$id);if(n)return n}return this.ajv.compile(e)}};hj.exports=Pv});var gj=k((FIe,yj)=>{"use strict";var ife=kv(),lfe=Dv(),Lv=class{constructor(e,n){this.ajv=new ife(Object.assign({},lfe,n))}buildSerializerFunction({schema:e}){return this.ajv.compileSerializer(e)}};yj.exports=Lv});var Ej=k((dc,_j)=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});var fc=T8(),Ts=Xu();function vj(t,e){if(!t.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:n}=t.scope.opts;return typeof e=="function"?i(e.source):e!==void 0?l(e,r):l(t.schemas,a=>a.meta?void 0:t.compile(a.schema));function r(a){let o=t.getSchema(a);if(!o)throw new Error(`moduleCode: no schema with id ${a}`);return o}function i(a){let o={},u=a?.validateName,c=s(o,a);return t.opts.code.esm?`"use strict";${n}export const validate = ${u};${n}export default ${u};${n}${c}`:`"use strict";${n}module.exports = ${u};${n}module.exports.default = ${u};${n}${c}`}function l(a,o){var u;let c={},f=(0,Ts._)`"use strict";`;for(let m in a){let d=o(a[m]);if(d){let y=s(c,d.source),_=t.opts.code.esm?(0,Ts._)`export const ${(0,Ts.getEsmExportName)(m)}`:(0,Ts._)`exports${(0,Ts.getProperty)(m)}`;f=(0,Ts._)`${f}${n}${_} = ${(u=d.source)===null||u===void 0?void 0:u.validateName};${n}${y}`}}return`${f}`}function s(a,o){if(!o)throw new Error('moduleCode: function does not have "source" property');if(m(o.validateName)===fc.UsedValueState.Completed)return Ts.nil;d(o.validateName,fc.UsedValueState.Started);let u=t.scope.scopeCode(o.scopeValues,a,f),c=new Ts._Code(`${u}${n}${o.validateCode}`);return o.evaluated?(0,Ts._)`${c}${o.validateName}.evaluated = ${o.evaluated};${n}`:c;function f(y){var _;let S=(_=y.value)===null||_===void 0?void 0:_.ref;if(y.prefix==="validate"&&typeof S=="function")return s(a,S.source);if((y.prefix==="root"||y.prefix==="wrapper")&&typeof S=="object"){let{validate:w,validateName:E}=S;if(!E)throw new Error("ajv internal error");let g=t.opts.code.es5?fc.varKinds.var:fc.varKinds.const,v=(0,Ts._)`${g} ${y} = {validate: ${E}};`;if(m(E)===fc.UsedValueState.Started)return v;let x=s(a,w?.source);return(0,Ts._)`${v}${n}${x}`}}function m(y){var _;return(_=a[y.prefix])===null||_===void 0?void 0:_.get(y)}function d(y,_){let{prefix:S}=y;(a[S]=a[S]||new Map).set(y,_)}}}_j.exports=dc=vj;Object.defineProperty(dc,"__esModule",{value:!0});dc.default=vj});var Sj=k((jIe,wj)=>{"use strict";var bj=Fv(),sfe=Ej().default;function afe(t={readMode:!0}){if(t.readMode===!0&&!t.restoreFunction)throw new Error("You must provide a restoreFunction options when readMode ON");if(t.readMode!==!0&&!t.storeFunction)throw new Error("You must provide a storeFunction options when readMode OFF");if(t.readMode===!0)return function(){return function(r){return t.restoreFunction(r)}};let e=bj();return function(r,i={}){(!i.customOptions||!i.customOptions.code)&&(i.customOptions=Object.assign({},i.customOptions,{code:{source:!0}}));let l=e(r,i);return function(s){let a=l(s),o=sfe(l[bj.AjvReference].ajv,a);return t.storeFunction(s,o),a}}}wj.exports=afe});var Fv=k((UIe,C1)=>{"use strict";var xj=Symbol.for("fastify.ajv-compiler.reference"),ofe=mj(),ufe=gj();function jv(t){let e=new Map,n=new Map;return t&&t.jtdSerializer===!0?function(i,l){let s=Tj({},l);if(n.has(s))return n.get(s);let a=new ufe(i,l),o=a.buildSerializerFunction.bind(a);return n.set(s,o),o}:function(i,l){let s=Tj(i,l.customOptions);if(e.has(s))return e.get(s);let a=new ofe(i,l),o=a.buildValidatorFunction.bind(a);return e.set(s,o),l.customOptions.code!==void 0&&(o[xj]=a),o}}function Tj(t,e){let n=JSON.stringify(t),r=JSON.stringify(e);return`${n}${r}`}C1.exports=jv;C1.exports.default=jv;C1.exports.AjvCompiler=jv;C1.exports.AjvReference=xj;C1.exports.StandaloneValidator=Sj()});var Uv=k((MIe,Aj)=>{"use strict";var{buildSchemas:cfe}=c4(),pfe=nv(),ffe=Fv();function dfe(t,e){if(t)return new R1(t,e);let n=Object.assign({buildValidator:null,buildSerializer:null},e?.compilersFactory);n.buildValidator||(n.buildValidator=ffe()),n.buildSerializer||(n.buildSerializer=pfe());let r={bucket:e&&e.bucket||cfe,compilersFactory:n,isCustomValidatorCompiler:typeof e?.compilersFactory?.buildValidator=="function",isCustomSerializerCompiler:typeof e?.compilersFactory?.buildValidator=="function"};return new R1(void 0,r)}var R1=class{constructor(e,n){this.opts=n||e?.opts,this.addedSchemas=!1,this.compilersFactory=this.opts.compilersFactory,e?(this.schemaBucket=this.opts.bucket(e.getSchemas()),this.validatorCompiler=e.getValidatorCompiler(),this.serializerCompiler=e.getSerializerCompiler(),this.isCustomValidatorCompiler=e.isCustomValidatorCompiler,this.isCustomSerializerCompiler=e.isCustomSerializerCompiler,this.parent=e):(this.schemaBucket=this.opts.bucket(),this.isCustomValidatorCompiler=this.opts.isCustomValidatorCompiler||!1,this.isCustomSerializerCompiler=this.opts.isCustomSerializerCompiler||!1)}add(e){return this.addedSchemas=!0,this.schemaBucket.add(e)}getSchema(e){return this.schemaBucket.getSchema(e)}getSchemas(){return this.schemaBucket.getSchemas()}setValidatorCompiler(e){this.compilersFactory=Object.assign({},this.compilersFactory,{buildValidator:()=>e}),this.validatorCompiler=e,this.isCustomValidatorCompiler=!0}setSerializerCompiler(e){this.compilersFactory=Object.assign({},this.compilersFactory,{buildSerializer:()=>e}),this.serializerCompiler=e,this.isCustomSerializerCompiler=!0}getValidatorCompiler(){return this.validatorCompiler||this.parent&&this.parent.getValidatorCompiler()}getSerializerCompiler(){return this.serializerCompiler||this.parent&&this.parent.getSerializerCompiler()}getSerializerBuilder(){return this.compilersFactory.buildSerializer||this.parent&&this.parent.getSerializerBuilder()}getValidatorBuilder(){return this.compilersFactory.buildValidator||this.parent&&this.parent.getValidatorBuilder()}setupValidator(e){this.validatorCompiler!==void 0&&!this.addedSchemas||(this.validatorCompiler=this.getValidatorBuilder()(this.schemaBucket.getSchemas(),e.ajv))}setupSerializer(e){this.serializerCompiler!==void 0&&!this.addedSchemas||(this.serializerCompiler=this.getSerializerBuilder()(this.schemaBucket.getSchemas(),e.serializerOpts))}};R1.buildSchemaController=dfe;Aj.exports=R1});var qv=k(($Ie,Vv)=>{"use strict";var Mv=Og(),Bv=require("node:assert"),Hv=Symbol.for("registered-plugin"),{kTestInternals:hfe}=pi(),{exist:mfe,existReply:yfe,existRequest:gfe}=jg(),{FST_ERR_PLUGIN_VERSION_MISMATCH:vfe,FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:_fe}=Li(),{FSTWRN002:Efe}=La();function hc(t){return t[Symbol.for("plugin-meta")]}function Oj(t){let e=Nj(t);if(e)return e;let n=require.cache;if(n){let r=Object.keys(n);for(let i=0;ie.trim()).join(" -- ")}function Nj(t){return t[Symbol.for("fastify.display-name")]}function Cj(t){return!!t[Symbol.for("skip-override")]}function Rj(t){let e=hc(t);if(!e)return;let n=e.dependencies;n&&(Bv(Array.isArray(n),"The dependencies should be an array of strings"),n.forEach(r=>{Bv(this[Hv].indexOf(r)>-1,`The dependency '${r}' of plugin '${e.name}' is not registered`)}))}function Ij(t){let e=hc(t);if(!e)return;let{decorators:n,name:r}=e;n&&(n.fastify&&$v(this,"Fastify",n.fastify,r),n.reply&&$v(this,"Reply",n.reply,r),n.request&&$v(this,"Request",n.request,r))}var wfe={Fastify:mfe,Request:gfe,Reply:yfe};function $v(t,e,n,r){Bv(Array.isArray(n),"The decorators should be an array of strings"),n.forEach(i=>{let l=typeof r=="string"?` required by '${r}'`:"";if(!wfe[e].call(t,i))throw new _fe(i,l,e)})}function Sfe(t){let e=hc(t);if(!e)return;let n=e.fastify,r=/-rc.+$/.test(this.version);if(!(r===!0&&Mv.gt(this.version,Mv.coerce(n))===!0)&&n&&Mv.satisfies(this.version,n,{includePrerelease:r})===!1)throw new vfe(e.name,n,this.version)}function Tfe(t){let e=hc(t);if(!e)return;let n=e.name;if(n)return this[Hv].push(n),n}function xfe(t,e){t.constructor.name==="AsyncFunction"&&t.length===3&&Efe(e||"anonymous")}function Afe(t){let e=Tfe.call(this,t)||Oj(t);return xfe.call(this,t,e),Sfe.call(this,t),Ij.call(this,t),Rj.call(this,t),Cj(t)}Vv.exports={getPluginName:Oj,getFuncPreview:bfe,kRegisteredPlugins:Hv,getDisplayName:Nj,registerPlugin:Afe};Vv.exports[hfe]={shouldSkipOverride:Cj,getMeta:hc,checkDecorators:Ij,checkDependencies:Rj}});var G9=k((BIe,kj)=>{"use strict";function Ofe(t,e){let n=e||Cfe();return t?Rfe(t,n):n}function Nfe(t,e){return t.genReqId(e)}function Cfe(){let e=0;return function(){return e=e+1&2147483647,`req-${e.toString(36)}`}}function Rfe(t,e){return function(n){return n.headers[t]||e(n)}}kj.exports={getGenReqId:Nfe,reqIdGenFactory:Ofe}});var Fj=k((HIe,Lj)=>{"use strict";var Dj=12,Ife=0,zv=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function kfe(t){var e=t.indexOf("%");if(e===-1)return t;for(var n=t.length,r="",i=0,l=0,s=e,a=Dj;e>-1&&e>10),56320+(l&1023)),l=0,i=e+3,e=s=t.indexOf("%",i);else{if(a===Ife)return null;if(e+=3,e{"use strict";var jj=Fj(),Uj=/\+/g,Mj=function(){};Mj.prototype=Object.create(null);function Pfe(t){let e=new Mj;if(typeof t!="string")return e;let n=t.length,r="",i="",l=-1,s=-1,a=!1,o=!1,u=!1,c=!1,f=!1,m=0;for(let d=0;dl,f||(s=d),r=t.slice(l+1,s),f||r.length>0){u&&(r=r.replace(Uj," ")),a&&(r=jj(r)||r),f&&(i=t.slice(s+1,d),c&&(i=i.replace(Uj," ")),o&&(i=jj(i)||i));let y=e[r];y===void 0?e[r]=i:y.pop?y.push(i):e[r]=[y,i]}i="",l=d,s=d,a=!1,o=!1,u=!1,c=!1}else m===61?s<=l?s=d:o=!0:m===43?s>l?c=!0:u=!0:m===37&&(s>l?o=!0:a=!0);return e}$j.exports=Pfe});var Vj=k((qIe,Hj)=>{var ra=Array.from({length:256},(t,e)=>"%"+((e<16?"0":"")+e.toString(16)).toUpperCase()),Lfe=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function Ffe(t){let e=t.length;if(e===0)return"";let n="",r=0,i=0;e:for(;i>6]+ra[128|l&63];continue}if(l<55296||l>=57344){r=i+1,n+=ra[224|l>>12]+ra[128|l>>6&63]+ra[128|l&63];continue}if(++i,i>=e)throw new Error("URI malformed");let s=t.charCodeAt(i)&1023;r=i+1,l=65536+((l&1023)<<10|s),n+=ra[240|l>>18]+ra[128|l>>12&63]+ra[128|l>>6&63]+ra[128|l&63]}return r===0?t:r{"use strict";var{encodeString:Gv}=Vj();function qj(t){let e=typeof t;return e==="string"?Gv(t):e==="bigint"?t.toString():e==="boolean"?t?"true":"false":e==="number"&&Number.isFinite(t)?t<1e21?""+t:Gv(""+t):""}function jfe(t){let e="";if(t===null||typeof t!="object")return e;let n="&",r=Object.keys(t),i=r.length,l=0;for(let s=0;s{"use strict";var Jj=Bj(),Kj=Gj(),Xj={parse:Jj,stringify:Kj};mc.exports=Xj;mc.exports.default=Xj;mc.exports.parse=Jj;mc.exports.stringify=Kj});var yc=k((JIe,Yj)=>{Yj.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}});var Kv=k(L2=>{var hn=yc(),Jv=()=>[{type:hn.RANGE,from:48,to:57}],Qj=()=>[{type:hn.CHAR,value:95},{type:hn.RANGE,from:97,to:122},{type:hn.RANGE,from:65,to:90}].concat(Jv()),Zj=()=>[{type:hn.CHAR,value:9},{type:hn.CHAR,value:10},{type:hn.CHAR,value:11},{type:hn.CHAR,value:12},{type:hn.CHAR,value:13},{type:hn.CHAR,value:32},{type:hn.CHAR,value:160},{type:hn.CHAR,value:5760},{type:hn.RANGE,from:8192,to:8202},{type:hn.CHAR,value:8232},{type:hn.CHAR,value:8233},{type:hn.CHAR,value:8239},{type:hn.CHAR,value:8287},{type:hn.CHAR,value:12288},{type:hn.CHAR,value:65279}],Ufe=()=>[{type:hn.CHAR,value:10},{type:hn.CHAR,value:13},{type:hn.CHAR,value:8232},{type:hn.CHAR,value:8233}];L2.words=()=>({type:hn.SET,set:Qj(),not:!1});L2.notWords=()=>({type:hn.SET,set:Qj(),not:!0});L2.ints=()=>({type:hn.SET,set:Jv(),not:!1});L2.notInts=()=>({type:hn.SET,set:Jv(),not:!0});L2.whitespace=()=>({type:hn.SET,set:Zj(),not:!1});L2.notWhitespace=()=>({type:hn.SET,set:Zj(),not:!0});L2.anyChar=()=>({type:hn.SET,set:Ufe(),not:!0})});var tU=k(gc=>{var eU=yc(),I1=Kv(),Mfe="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",$fe={0:0,t:9,n:10,v:11,f:12,r:13};gc.strToChars=function(t){var e=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return t=t.replace(e,function(n,r,i,l,s,a,o,u){if(i)return n;var c=r?8:l?parseInt(l,16):s?parseInt(s,16):a?parseInt(a,8):o?Mfe.indexOf(o):$fe[u],f=String.fromCharCode(c);return/[[\]{}^$.|?*+()]/.test(f)&&(f="\\"+f),f}),t};gc.tokenizeClass=(t,e)=>{for(var n=[],r=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,i,l;(i=r.exec(t))!=null;)if(i[1])n.push(I1.words());else if(i[2])n.push(I1.ints());else if(i[3])n.push(I1.whitespace());else if(i[4])n.push(I1.notWords());else if(i[5])n.push(I1.notInts());else if(i[6])n.push(I1.notWhitespace());else if(i[7])n.push({type:eU.RANGE,from:(i[8]||i[9]).charCodeAt(0),to:i[10].charCodeAt(0)});else if(l=i[12])n.push({type:eU.CHAR,value:l.charCodeAt(0)});else return[n,r.lastIndex];gc.error(e,"Unterminated character class")};gc.error=(t,e)=>{throw new SyntaxError("Invalid regular expression: /"+t+"/: "+e)}});var nU=k(vc=>{var J9=yc();vc.wordBoundary=()=>({type:J9.POSITION,value:"b"});vc.nonWordBoundary=()=>({type:J9.POSITION,value:"B"});vc.begin=()=>({type:J9.POSITION,value:"^"});vc.end=()=>({type:J9.POSITION,value:"$"})});var rU=k((YIe,Xv)=>{var k1=tU(),ns=yc(),Uo=Kv(),K9=nU();Xv.exports=t=>{var e=0,n,r,i={type:ns.ROOT,stack:[]},l=i,s=i.stack,a=[],o=w=>{k1.error(t,`Nothing to repeat at column ${w-1}`)},u=k1.strToChars(t);for(n=u.length;e{"use strict";var iU=rU(),Bfe=iU.types;lU.exports=function(t,e){e||(e={});var n=e.limit===void 0?25:e.limit;Hfe(t)?t=t.source:typeof t!="string"&&(t=String(t));try{t=iU(t)}catch{return!1}var r=0;return function i(l,s){var a,o,u;if(l.type===Bfe.REPETITION&&(s++,r++,s>1||r>n))return!1;if(l.options){for(a=0,u=l.options.length;a{"use strict";aU.exports={name:"__fmw_internal_strategy_merged_tree_http_method__",storage:function(){let t={};return{get:e=>t[e]||null,set:(e,n)=>{t[e]=n}}},deriveConstraint:t=>t.method,mustMatchWhenDerived:!0}});var hU=k((eke,dU)=>{"use strict";var oU=t1(),uU=X9(),cU=Symbol("treeData");function pU(t,e=""){let n="",r=Object.keys(t);for(let i=0;i{"use strict";var u7e=lv();function _F(t={readMode:!0}){if(t.readMode===!0&&typeof t.restoreFunction!="function")throw new Error("You must provide a function for the restoreFunction-option when readMode ON");if(t.readMode!==!0&&typeof t.storeFunction!="function")throw new Error("You must provide a function for the storeFunction-option when readMode OFF");if(t.readMode===!0)return function(){return function(r){return t.restoreFunction(r)}};let e=u7e();return function(r,i={}){i.mode="standalone";let l=e(r,i);return function(s){let a=l(s);return t.storeFunction(s,a),new Function(a)}}}iv.exports=_F;iv.exports.default=_F});var lv=k((AIe,ac)=>{"use strict";var c7e=vF();function sv(){return function(e,n){let r=Object.assign({},n,{schema:e});return p7e.bind(null,r)}}function p7e(t,{schema:e}){return t.schema&&e.$id&&t.schema[e.$id]&&(t.schema={...t.schema},delete t.schema[e.$id]),c7e(e,t)}ac.exports=sv;ac.exports.default=sv;ac.exports.SerializerSelector=sv;ac.exports.StandaloneSerializer=EF()});var Ja=k(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.checkMetadata=void 0;var f7e=Nt(),d7e={keyword:"metadata",schemaType:"object",code(t){bF(t);let{gen:e,schema:n,it:r}=t;if((0,f7e.alwaysValidSchema)(r,n))return;let i=e.name("valid");t.subschema({keyword:"metadata",jtdMetadata:!0},i),t.ok(i)}};function bF({it:t,keyword:e},n){if(t.jtdMetadata!==n)throw new Error(`JTD: "${e}" cannot be used in this schema location`)}oc.checkMetadata=bF;oc.default=d7e});var $9=k(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.hasRef=void 0;var wF=N3(),uc=st(),h7e=A2(),SF=Yl(),TF=Wm(),m7e=Ja(),y7e={keyword:"ref",schemaType:"string",code(t){(0,m7e.checkMetadata)(t);let{gen:e,data:n,schema:r,parentSchema:i,it:l}=t,{schemaEnv:{root:s}}=l,a=e.name("valid");i.nullable?(e.var(a,(0,uc._)`${n} === null`),e.if((0,uc.not)(a),o)):(e.var(a,!1),o()),t.ok(a);function o(){var f;let m=(f=s.schema.definitions)===null||f===void 0?void 0:f[r];if(!m)throw new h7e.default(l.opts.uriResolver,"",r,`No definition ${r}`);av(m)||!l.opts.inlineRefs?u(m):c(m)}function u(f){let m=wF.compileSchema.call(l.self,new wF.SchemaEnv({schema:f,root:s,schemaPath:`/definitions/${r}`})),d=(0,TF.getValidate)(t,m),y=e.const("_errs",SF.default.errors);(0,TF.callRef)(t,d,m,m.$async),e.assign(a,(0,uc._)`${y} === ${SF.default.errors}`)}function c(f){let m=e.scopeValue("schema",l.opts.code.source===!0?{ref:f,code:(0,uc.stringify)(f)}:{ref:f});t.subschema({schema:f,dataTypes:[],schemaPath:uc.nil,topSchemaRef:m,errSchemaPath:`/definitions/${r}`},a)}}};function av(t){for(let e in t){let n;if(e==="ref"||typeof(n=t[e])=="object"&&av(n))return!0}return!1}cc.hasRef=av;cc.default=y7e});var uv=k(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0});var g7e=/t|\s/i,v7e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,_7e=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i,E7e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function AF(t,e){let n=t.split(g7e);return n.length===2&&xF(n[0])&&b7e(n[1])||e&&n.length===1&&xF(n[0])}ov.default=AF;function xF(t){let e=v7e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],i=+e[3];return r>=1&&r<=12&&i>=1&&(i<=E7e[r]||r===2&&i===29&&(n%100===0?n%400===0:n%4===0))}function b7e(t){let e=_7e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],i=+e[3],l=+(e[4]||0),s=+(e[5]||0);return n<=23&&r<=59&&i<=59||n-l===23&&r-s===59&&i===60}AF.code='require("ajv/dist/runtime/timestamp").default'});var x1=k(I2=>{"use strict";Object.defineProperty(I2,"__esModule",{value:!0});I2.typeErrorParams=I2.typeErrorMessage=I2.typeError=void 0;var w7e=st();function S7e(t){return{message:e=>OF(e,t),params:e=>NF(e,t)}}I2.typeError=S7e;function OF({parentSchema:t},e){return t?.nullable?`must be ${e} or null`:`must be ${e}`}I2.typeErrorMessage=OF;function NF({parentSchema:t},e){return(0,w7e._)`{type: ${e}, nullable: ${!!t?.nullable}}`}I2.typeErrorParams=NF});var cv=k(A1=>{"use strict";Object.defineProperty(A1,"__esModule",{value:!0});A1.intRange=void 0;var Dl=st(),T7e=uv(),x7e=Nt(),A7e=Ja(),CF=x1();A1.intRange={int8:[-128,127,3],uint8:[0,255,3],int16:[-32768,32767,5],uint16:[0,65535,5],int32:[-2147483648,2147483647,10],uint32:[0,4294967295,10]};var O7e={message:t=>(0,CF.typeErrorMessage)(t,t.schema),params:t=>(0,CF.typeErrorParams)(t,t.schema)};function N7e(t){let{gen:e,data:n,it:r}=t,{timestamp:i,allowDate:l}=r.opts;if(i==="date")return(0,Dl._)`${n} instanceof Date `;let s=(0,x7e.useFunc)(e,T7e.default),a=l?(0,Dl._)`, true`:Dl.nil,o=(0,Dl._)`typeof ${n} == "string" && ${s}(${n}${a})`;return i==="string"?o:(0,Dl.or)((0,Dl._)`${n} instanceof Date`,o)}var C7e={keyword:"type",schemaType:"string",error:O7e,code(t){(0,A7e.checkMetadata)(t);let{data:e,schema:n,parentSchema:r,it:i}=t,l;switch(n){case"boolean":case"string":l=(0,Dl._)`typeof ${e} == ${n}`;break;case"timestamp":{l=N7e(t);break}case"float32":case"float64":l=(0,Dl._)`typeof ${e} == "number"`;break;default:{let s=n;if(l=(0,Dl._)`typeof ${e} == "number" && isFinite(${e}) && !(${e} % 1)`,!i.opts.int32range&&(s==="int32"||s==="uint32"))s==="uint32"&&(l=(0,Dl._)`${l} && ${e} >= 0`);else{let[a,o]=A1.intRange[s];l=(0,Dl._)`${l} && ${e} >= ${a} && ${e} <= ${o}`}}}t.pass(r.nullable?(0,Dl.or)((0,Dl._)`${e} === null`,l):l)}};A1.default=C7e});var N1=k(O1=>{"use strict";Object.defineProperty(O1,"__esModule",{value:!0});O1.checkNullableObject=O1.checkNullable=void 0;var B9=st();function RF({gen:t,data:e,parentSchema:n},r=B9.nil){let i=t.name("valid");return n.nullable?(t.let(i,(0,B9._)`${e} === null`),r=(0,B9.not)(i)):t.let(i,!1),[i,r]}O1.checkNullable=RF;function R7e(t,e){let[n,r]=RF(t,e);return[n,(0,B9._)`${r} && typeof ${t.data} == "object" && !Array.isArray(${t.data})`]}O1.checkNullableObject=R7e});var IF=k(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});var k2=st(),I7e=Ja(),k7e=N1(),D7e={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,k2._)`{allowedValues: ${t}}`},P7e={keyword:"enum",schemaType:"array",error:D7e,code(t){(0,I7e.checkMetadata)(t);let{gen:e,data:n,schema:r,schemaValue:i,parentSchema:l,it:s}=t;if(r.length===0)throw new Error("enum must have non-empty array");if(r.length!==new Set(r).size)throw new Error("enum items must be unique");let a,o=(0,k2._)`typeof ${n} == "string"`;if(r.length>=s.opts.loopEnum){let c;[a,c]=(0,k7e.checkNullable)(t,o),e.if(c,u)}else{if(!Array.isArray(r))throw new Error("ajv implementation error");a=(0,k2.and)(o,(0,k2.or)(...r.map(c=>(0,k2._)`${n} === ${c}`))),l.nullable&&(a=(0,k2.or)((0,k2._)`${n} === null`,a))}t.pass(a);function u(){e.forOf("v",i,c=>e.if((0,k2._)`${a} = ${n} === ${c}`,()=>e.break()))}}};pv.default=P7e});var DF=k(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});var L7e=Nt(),F7e=Ai(),kF=st(),j7e=Ja(),U7e=N1(),M7e=x1(),$7e={keyword:"elements",schemaType:"object",error:(0,M7e.typeError)("array"),code(t){(0,j7e.checkMetadata)(t);let{gen:e,data:n,schema:r,it:i}=t;if((0,L7e.alwaysValidSchema)(i,r))return;let[l]=(0,U7e.checkNullable)(t);e.if((0,kF.not)(l),()=>e.if((0,kF._)`Array.isArray(${n})`,()=>e.assign(l,(0,F7e.validateArray)(t)),()=>t.error())),t.ok(l)}};fv.default=$7e});var hv=k(D2=>{"use strict";Object.defineProperty(D2,"__esModule",{value:!0});D2.validateProperties=D2.error=void 0;var dv=Ai(),PF=Nt(),Ka=st(),B7e=Ja(),H7e=N1(),LF=x1(),C1;(function(t){t.Additional="additional",t.Missing="missing"})(C1||(C1={}));D2.error={message:t=>{let{params:e}=t;return e.propError?e.propError===C1.Additional?"must NOT have additional properties":`must have property '${e.missingProperty}'`:(0,LF.typeErrorMessage)(t,"object")},params:t=>{let{params:e}=t;return e.propError?e.propError===C1.Additional?(0,Ka._)`{error: ${e.propError}, additionalProperty: ${e.additionalProperty}}`:(0,Ka._)`{error: ${e.propError}, missingProperty: ${e.missingProperty}}`:(0,LF.typeErrorParams)(t,"object")}};var V7e={keyword:"properties",schemaType:"object",error:D2.error,code:FF};function FF(t){(0,B7e.checkMetadata)(t);let{gen:e,data:n,parentSchema:r,it:i}=t,{additionalProperties:l,nullable:s}=r;if(i.jtdDiscriminator&&s)throw new Error("JTD: nullable inside discriminator mapping");if(d())throw new Error("JTD: properties and optionalProperties have common members");let[a,o]=y("properties"),[u,c]=y("optionalProperties");if(o.length===0&&c.length===0&&l)return;let[f,m]=i.jtdDiscriminator===void 0?(0,H7e.checkNullableObject)(t,n):[e.let("valid",!1),!0];e.if(m,()=>e.assign(f,!0).block(()=>{_(o,"properties",!0),_(c,"optionalProperties"),l||w()})),t.pass(f);function d(){let g=r.properties,v=r.optionalProperties;if(!(g&&v))return!1;for(let x in g)if(Object.prototype.hasOwnProperty.call(v,x))return!0;return!1}function y(g){let v=r[g],x=v?(0,dv.allSchemaProperties)(v):[];if(i.jtdDiscriminator&&x.some(N=>N===i.jtdDiscriminator))throw new Error(`JTD: discriminator tag used in ${g}`);let O=x.filter(N=>!(0,PF.alwaysValidSchema)(i,v[N]));return[x,O]}function _(g,v,x){let O=e.var("valid");for(let R of g)e.if((0,dv.propertyInData)(e,n,R,i.opts.ownProperties),()=>S(R,v,O),()=>N(R)),t.ok(O);function N(R){x?(e.assign(O,!1),t.error(!1,{propError:C1.Missing,missingProperty:R},{schemaPath:R})):e.assign(O,!0)}}function S(g,v,x){t.subschema({keyword:v,schemaProp:g,dataProp:g},x)}function w(){e.forIn("key",n,g=>{let v=E(g,a,"properties",i.jtdDiscriminator),x=E(g,u,"optionalProperties"),O=v===!0?x:x===!0?v:(0,Ka.and)(v,x);e.if(O,()=>{i.opts.removeAdditional?e.code((0,Ka._)`delete ${n}[${g}]`):(t.error(!1,{propError:C1.Additional,additionalProperty:g},{instancePath:g,parentSchema:!0}),i.opts.allErrors||e.break())})})}function E(g,v,x,O){let N;if(v.length>8){let R=(0,PF.schemaRefOrVal)(i,r[x],x);N=(0,Ka.not)((0,dv.isOwnProperty)(e,R,g)),O!==void 0&&(N=(0,Ka.and)(N,(0,Ka._)`${g} !== ${O}`))}else if(v.length||O!==void 0){let R=O===void 0?v:[O].concat(v);N=(0,Ka.and)(...R.map(U=>(0,Ka._)`${g} !== ${U}`))}else N=!0;return N}}D2.validateProperties=FF;D2.default=V7e});var UF=k(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});var jF=hv(),q7e={keyword:"optionalProperties",schemaType:"object",error:jF.error,code(t){t.parentSchema.properties||(0,jF.validateProperties)(t)}};mv.default=q7e});var $F=k(yv=>{"use strict";Object.defineProperty(yv,"__esModule",{value:!0});var M3=st(),z7e=Ja(),G7e=N1(),MF=x1(),H9=Fy(),J7e={message:t=>{let{schema:e,params:n}=t;return n.discrError?n.discrError===H9.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in mapping`:(0,MF.typeErrorMessage)(t,"object")},params:t=>{let{schema:e,params:n}=t;return n.discrError?(0,M3._)`{error: ${n.discrError}, tag: ${e}, tagValue: ${n.tag}}`:(0,MF.typeErrorParams)(t,"object")}},K7e={keyword:"discriminator",schemaType:"string",implements:["mapping"],error:J7e,code(t){(0,z7e.checkMetadata)(t);let{gen:e,data:n,schema:r,parentSchema:i}=t,[l,s]=(0,G7e.checkNullableObject)(t,n);e.if(s),a(),e.elseIf((0,M3.not)(l)),t.error(),e.endIf(),t.ok(l);function a(){let c=e.const("tag",(0,M3._)`${n}${(0,M3.getProperty)(r)}`);e.if((0,M3._)`${c} === undefined`),t.error(!1,{discrError:H9.DiscrError.Tag,tag:c}),e.elseIf((0,M3._)`typeof ${c} == "string"`),o(c),e.else(),t.error(!1,{discrError:H9.DiscrError.Tag,tag:c},{instancePath:r}),e.endIf()}function o(c){e.if(!1);for(let f in i.mapping)e.elseIf((0,M3._)`${c} === ${f}`),e.assign(l,u(f));e.else(),t.error(!1,{discrError:H9.DiscrError.Mapping,tag:c},{instancePath:r,schemaPath:"mapping",parentSchema:!0}),e.endIf()}function u(c){let f=e.name("valid");return t.subschema({keyword:"mapping",schemaProp:c,jtdDiscriminator:r},f),f}}};yv.default=K7e});var HF=k(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});var BF=Nt(),V9=st(),X7e=Ja(),W7e=N1(),Y7e=x1(),Q7e={keyword:"values",schemaType:"object",error:(0,Y7e.typeError)("object"),code(t){(0,X7e.checkMetadata)(t);let{gen:e,data:n,schema:r,it:i}=t,[l,s]=(0,W7e.checkNullableObject)(t,n);(0,BF.alwaysValidSchema)(i,r)?e.if((0,V9.not)((0,V9.or)(s,l)),()=>t.error()):(e.if(s),e.assign(l,a()),e.elseIf((0,V9.not)(l)),t.error(),e.endIf()),t.ok(l);function a(){let o=e.name("valid");if(i.allErrors){let c=e.let("valid",!0);return u(()=>e.assign(c,!1)),c}return e.var(o,!0),u(()=>e.break()),o;function u(c){e.forIn("key",n,f=>{t.subschema({keyword:"values",dataProp:f,dataPropType:BF.Type.Str},o),e.if((0,V9.not)(o),c)})}}}};gv.default=Q7e});var VF=k(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});var Z7e=Ai(),epe={keyword:"union",schemaType:"array",trackErrors:!0,code:Z7e.validateUnion,error:{message:"must match a schema in union"}};vv.default=epe});var qF=k(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});var tpe=$9(),npe=cv(),rpe=IF(),ipe=DF(),lpe=hv(),spe=UF(),ape=$F(),ope=HF(),upe=VF(),cpe=Ja(),ppe=["definitions",tpe.default,npe.default,rpe.default,ipe.default,lpe.default,spe.default,ape.default,ope.default,upe.default,cpe.default,{keyword:"additionalProperties",schemaType:"boolean"},{keyword:"nullable",schemaType:"boolean"}];_v.default=ppe});var KF=k(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});var Xa=t=>{let e={nullable:{type:"boolean"},metadata:{optionalProperties:{union:{elements:{ref:"schema"}}},additionalProperties:!0}};return t&&(e.definitions={values:{ref:"schema"}}),e},fpe=t=>({optionalProperties:Xa(t)}),dpe=t=>({properties:{ref:{type:"string"}},optionalProperties:Xa(t)}),hpe=t=>({properties:{type:{enum:["boolean","timestamp","string","float32","float64","int8","uint8","int16","uint16","int32","uint32"]}},optionalProperties:Xa(t)}),mpe=t=>({properties:{enum:{elements:{type:"string"}}},optionalProperties:Xa(t)}),ype=t=>({properties:{elements:{ref:"schema"}},optionalProperties:Xa(t)}),GF=t=>({properties:{properties:{values:{ref:"schema"}}},optionalProperties:{optionalProperties:{values:{ref:"schema"}},additionalProperties:{type:"boolean"},...Xa(t)}}),JF=t=>({properties:{optionalProperties:{values:{ref:"schema"}}},optionalProperties:{additionalProperties:{type:"boolean"},...Xa(t)}}),gpe=t=>({properties:{discriminator:{type:"string"},mapping:{values:{metadata:{union:[GF(!1),JF(!1)]}}}},optionalProperties:Xa(t)}),vpe=t=>({properties:{values:{ref:"schema"}},optionalProperties:Xa(t)}),zF=t=>({metadata:{union:[fpe,dpe,hpe,mpe,ype,GF,JF,gpe,vpe].map(e=>e(t))}}),_pe={definitions:{schema:zF(!1)},...zF(!0)};Ev.default=_pe});var bv=k(q9=>{"use strict";Object.defineProperty(q9,"__esModule",{value:!0});q9.jtdForms=void 0;q9.jtdForms=["elements","values","discriminator","properties","optionalProperties","enum","type","ref"]});var WF=k(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});var wv=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Epe={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function XF(t){return wv.lastIndex=0,'"'+(wv.test(t)?t.replace(wv,e=>{let n=Epe[e];return typeof n=="string"?n:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}):t)+'"'}Sv.default=XF;XF.code='require("ajv/dist/runtime/quote").default'});var nj=k(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});var bpe=bv(),QF=N3(),qt=st(),wpe=A2(),or=Yl(),Spe=Ai(),Tpe=$9(),xpe=Nt(),Ape=WF(),Ope={elements:Cpe,values:Rpe,discriminator:Ipe,properties:YF,optionalProperties:YF,enum:pc,type:kpe,ref:Ppe};function ZF(t,e){let n=QF.getCompilingSchema.call(this,t);if(n)return n;let{es5:r,lines:i}=this.opts.code,{ownProperties:l}=this.opts,s=new qt.CodeGen(this.scope,{es5:r,lines:i,ownProperties:l}),a=s.scopeName("serialize"),o={self:this,gen:s,schema:t.schema,schemaEnv:t,definitions:e,data:or.default.data},u;try{this._compilations.add(t),t.serializeName=a,s.func(a,or.default.data,!1,()=>{s.let(or.default.json,(0,qt.str)``),fc(o),s.return(or.default.json)}),s.optimize(this.opts.code.optimize);let c=s.toString();u=`${s.scopeRefs(or.default.scope)}return ${c}`;let m=new Function(`${or.default.scope}`,u)(this.scope.get());this.scope.value(a,{ref:m}),t.serialize=m}catch(c){throw u&&this.logger.error("Error compiling serializer, function code:",u),delete t.serialize,delete t.serializeName,c}finally{this._compilations.delete(t)}return t}xv.default=ZF;function fc(t){let e;for(let n of bpe.jtdForms)if(n in t.schema){e=n;break}Npe(t,e?Ope[e]:Fpe)}function Npe(t,e){let{gen:n,schema:r,data:i}=t;if(!r.nullable)return e(t);n.if((0,qt._)`${i} === undefined || ${i} === null`,()=>n.add(or.default.json,(0,qt._)`"null"`),()=>e(t))}function Cpe(t){let{gen:e,schema:n,data:r}=t;e.add(or.default.json,(0,qt.str)`[`);let i=e.let("first",!0);e.forOf("el",r,l=>{Tv(t,i),fc({...t,schema:n.elements,data:l})}),e.add(or.default.json,(0,qt.str)`]`)}function Rpe(t){let{gen:e,schema:n,data:r}=t;e.add(or.default.json,(0,qt.str)`{`);let i=e.let("first",!0);e.forIn("key",r,l=>ej(t,l,n.values,i)),e.add(or.default.json,(0,qt.str)`}`)}function ej(t,e,n,r){let{gen:i,data:l}=t;Tv(t,r),pc({...t,data:e}),i.add(or.default.json,(0,qt.str)`:`);let s=i.const("value",(0,qt._)`${l}${(0,qt.getProperty)(e)}`);fc({...t,schema:n,data:s})}function Ipe(t){let{gen:e,schema:n,data:r}=t,{discriminator:i}=n;e.add(or.default.json,(0,qt.str)`{${JSON.stringify(i)}:`);let l=e.const("tag",(0,qt._)`${r}${(0,qt.getProperty)(i)}`);pc({...t,data:l}),e.if(!1);for(let s in n.mapping){e.elseIf((0,qt._)`${l} === ${s}`);let a=n.mapping[s];tj({...t,schema:a},i)}e.endIf(),e.add(or.default.json,(0,qt.str)`}`)}function YF(t){let{gen:e}=t;e.add(or.default.json,(0,qt.str)`{`),tj(t),e.add(or.default.json,(0,qt.str)`}`)}function tj(t,e){let{gen:n,schema:r,data:i}=t,{properties:l,optionalProperties:s}=r,a=m(l),o=m(s),u=d(a.concat(o)),c=!e,f;for(let w of a)c?c=!1:n.add(or.default.json,(0,qt.str)`,`),_(w,l[w],y(w));c&&(f=n.let("first",!0));for(let w of o){let E=y(w);n.if((0,qt.and)((0,qt._)`${E} !== undefined`,(0,Spe.isOwnProperty)(n,i,w)),()=>{Tv(t,f),_(w,s[w],E)})}r.additionalProperties&&n.forIn("key",i,w=>n.if(S(w,u),()=>ej(t,w,{},f)));function m(w){return w?Object.keys(w):[]}function d(w){if(e&&w.push(e),new Set(w).size!==w.length)throw new Error("JTD: properties/optionalProperties/disciminator overlap");return w}function y(w){return n.const("value",(0,qt._)`${i}${(0,qt.getProperty)(w)}`)}function _(w,E,g){n.add(or.default.json,(0,qt.str)`${JSON.stringify(w)}:`),fc({...t,schema:E,data:g})}function S(w,E){return E.length?(0,qt.and)(...E.map(g=>(0,qt._)`${w} !== ${g}`)):!0}}function kpe(t){let{gen:e,schema:n,data:r}=t;switch(n.type){case"boolean":e.add(or.default.json,(0,qt._)`${r} ? "true" : "false"`);break;case"string":pc(t);break;case"timestamp":e.if((0,qt._)`${r} instanceof Date`,()=>e.add(or.default.json,(0,qt._)`'"' + ${r}.toISOString() + '"'`),()=>pc(t));break;default:Dpe(t)}}function pc({gen:t,data:e}){t.add(or.default.json,(0,qt._)`${(0,xpe.useFunc)(t,Ape.default)}(${e})`)}function Dpe({gen:t,data:e}){t.add(or.default.json,(0,qt._)`"" + ${e}`)}function Ppe(t){let{gen:e,self:n,data:r,definitions:i,schema:l,schemaEnv:s}=t,{ref:a}=l,o=i[a];if(!o)throw new wpe.default(n.opts.uriResolver,"",a,`No definition ${a}`);if(!(0,Tpe.hasRef)(o))return fc({...t,schema:o});let{root:u}=s,c=ZF.call(n,new QF.SchemaEnv({schema:o,root:u}),i);e.add(or.default.json,(0,qt._)`${Lpe(e,c)}(${r})`)}function Lpe(t,e){return e.serialize?t.scopeValue("serialize",{ref:e.serialize}):(0,qt._)`${t.scopeValue("wrapper",{ref:e})}.serialize`}function Fpe({gen:t,data:e}){t.add(or.default.json,(0,qt._)`JSON.stringify(${e})`)}function Tv({gen:t},e){e?t.if(e,()=>t.assign(e,!1),()=>t.add(or.default.json,(0,qt.str)`,`)):t.add(or.default.json,(0,qt.str)`,`)}});var ij=k(L2=>{"use strict";Object.defineProperty(L2,"__esModule",{value:!0});L2.parseJsonString=L2.parseJsonNumber=L2.parseJson=void 0;var jpe=/position\s(\d+)$/;function Wa(t,e){let n;Wa.message=void 0;let r;e&&(t=t.slice(e));try{return Wa.position=e+t.length,JSON.parse(t)}catch(i){if(r=jpe.exec(i.message),!r){Wa.message="unexpected end";return}n=+r[1];let l=t[n];t=t.slice(0,n),Wa.position=e+n;try{return JSON.parse(t)}catch{Wa.message=`unexpected token ${l}`;return}}}L2.parseJson=Wa;Wa.message=void 0;Wa.position=0;Wa.code='require("ajv/dist/runtime/parseJson").parseJson';function Ya(t,e,n){let r="",i;if(Ya.message=void 0,t[e]==="-"&&(r+="-",e++),t[e]==="0")r+="0",e++;else if(!l(n)){s();return}if(n)return Ya.position=e,+r;if(t[e]==="."&&(r+=".",e++,!l())){s();return}if(i=t[e],(i==="e"||i==="E")&&(r+="e",e++,i=t[e],(i==="+"||i==="-")&&(r+=i,e++),!l())){s();return}return Ya.position=e,+r;function l(a){let o=!1;for(;i=t[e],i>="0"&&i<="9"&&(a===void 0||a-- >0);)o=!0,r+=i,e++;return o}function s(){Ya.position=e,Ya.message=e="a"&&r<="f")s+=r.charCodeAt(0)-Upe+10;else if(r>="0"&&r<="9")s+=r.charCodeAt(0)-Mpe;else{i(`unexpected token ${r}`);return}e++}n+=String.fromCharCode(s)}else{i(`unexpected token ${r}`);return}else if(r===void 0){i("unexpected end");return}else if(r.charCodeAt(0)>=32)n+=r;else{i(`unexpected token ${r}`);return}return P2.position=e,n;function i(l){P2.position=e,P2.message=l}}L2.parseJsonString=P2;P2.message=void 0;P2.position=0;P2.code='require("ajv/dist/runtime/parseJson").parseJsonString'});var mj=k(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});var $pe=bv(),oj=N3(),tt=st(),Bpe=A2(),Ht=Yl(),Hpe=Ai(),Vpe=$9(),qpe=cv(),Nv=ij(),uj=Nt(),zpe=uv(),Gpe={elements:Wpe,values:Ype,discriminator:Zpe,properties:lj,optionalProperties:lj,enum:tfe,type:efe,ref:nfe};function cj(t,e){let n=oj.getCompilingSchema.call(this,t);if(n)return n;let{es5:r,lines:i}=this.opts.code,{ownProperties:l}=this.opts,s=new tt.CodeGen(this.scope,{es5:r,lines:i,ownProperties:l}),a=s.scopeName("parse"),o={self:this,gen:s,schema:t.schema,schemaEnv:t,definitions:e,data:Ht.default.data,parseName:a,char:s.name("c")},u;try{this._compilations.add(t),t.parseName=a,Jpe(o),s.optimize(this.opts.code.optimize);let c=s.toString();u=`${s.scopeRefs(Ht.default.scope)}return ${c}`;let m=new Function(`${Ht.default.scope}`,u)(this.scope.get());this.scope.value(a,{ref:m}),t.parse=m}catch(c){throw u&&this.logger.error("Error compiling parser, function code:",u),delete t.parse,delete t.parseName,c}finally{this._compilations.delete(t)}return t}Dv.default=cj;var Ov=(0,tt._)`undefined`;function Jpe(t){let{gen:e,parseName:n,char:r}=t;e.func(n,(0,tt._)`${Ht.default.json}, ${Ht.default.jsonPos}, ${Ht.default.jsonPart}`,!1,()=>{e.let(Ht.default.data),e.let(r),e.assign((0,tt._)`${n}.message`,Ov),e.assign((0,tt._)`${n}.position`,Ov),e.assign(Ht.default.jsonPos,(0,tt._)`${Ht.default.jsonPos} || 0`),e.const(Ht.default.jsonLen,(0,tt._)`${Ht.default.json}.length`),z9(t),kv(t),e.if(Ht.default.jsonPart,()=>{e.assign((0,tt._)`${n}.position`,Ht.default.jsonPos),e.return(Ht.default.data)}),e.if((0,tt._)`${Ht.default.jsonPos} === ${Ht.default.jsonLen}`,()=>e.return(Ht.default.data)),R1(t)})}function z9(t){let e;for(let n of $pe.jtdForms)if(n in t.schema){e=n;break}e?Xpe(t,Gpe[e]):Rv(t)}var Kpe=aj(!0,aj(!1,R1));function Xpe(t,e){let{gen:n,schema:r,data:i}=t;if(!r.nullable)return e(t);dc(t,"null",e,()=>n.assign(i,null))}function Wpe(t){let{gen:e,schema:n,data:r}=t;ra(t,"[");let i=e.let("i",0);e.assign(r,(0,tt._)`[]`),Cv(t,"]",()=>{let l=e.let("el");z9({...t,schema:n.elements,data:l}),e.assign((0,tt._)`${r}[${i}++]`,l)})}function Ype(t){let{gen:e,schema:n,data:r}=t;ra(t,"{"),e.assign(r,(0,tt._)`{}`),Cv(t,"}",()=>Qpe(t,n.values))}function Cv(t,e,n){pj(t,e,n),ra(t,e)}function pj(t,e,n){let{gen:r}=t;r.for((0,tt._)`;${Ht.default.jsonPos}<${Ht.default.jsonLen} && ${G9(1)}!==${e};`,()=>{n(),dc(t,",",()=>r.break(),i)});function i(){dc(t,e,()=>{},R1)}}function Qpe(t,e){let{gen:n}=t,r=n.let("key");$3({...t,data:r}),ra(t,":"),dj(t,r,e)}function Zpe(t){let{gen:e,data:n,schema:r}=t,{discriminator:i,mapping:l}=r;ra(t,"{"),e.assign(n,(0,tt._)`{}`);let s=e.const("pos",Ht.default.jsonPos),a=e.let("value"),o=e.let("tag");pj(t,"}",()=>{let u=e.let("key");$3({...t,data:u}),ra(t,":"),e.if((0,tt._)`${u} === ${i}`,()=>{$3({...t,data:o}),e.assign((0,tt._)`${n}[${u}]`,o),e.break()},()=>Rv({...t,data:a}))}),e.assign(Ht.default.jsonPos,s),e.if((0,tt._)`${o} === undefined`),Qa(t,(0,tt.str)`discriminator tag not found`);for(let u in l)e.elseIf((0,tt._)`${o} === ${u}`),fj({...t,schema:l[u]},i);e.else(),Qa(t,(0,tt.str)`discriminator value not in schema`),e.endIf()}function lj(t){let{gen:e,data:n}=t;ra(t,"{"),e.assign(n,(0,tt._)`{}`),fj(t)}function fj(t,e){let{gen:n,schema:r,data:i}=t,{properties:l,optionalProperties:s,additionalProperties:a}=r;if(Cv(t,"}",()=>{let o=n.let("key");if($3({...t,data:o}),ra(t,":"),n.if(!1),sj(t,o,l),sj(t,o,s),e){n.elseIf((0,tt._)`${o} === ${e}`);let u=n.let("tag");$3({...t,data:u})}n.else(),a?Rv({...t,data:(0,tt._)`${i}[${o}]`}):Qa(t,(0,tt.str)`property ${o} not allowed`),n.endIf()}),l){let o=(0,Hpe.hasPropFunc)(n),u=(0,tt.and)(...Object.keys(l).map(c=>(0,tt._)`${o}.call(${i}, ${c})`));n.if((0,tt.not)(u),()=>Qa(t,(0,tt.str)`missing required properties`))}}function sj(t,e,n={}){let{gen:r}=t;for(let i in n)r.elseIf((0,tt._)`${e} === ${i}`),dj(t,e,n[i])}function dj(t,e,n){z9({...t,schema:n,data:(0,tt._)`${t.data}[${e}]`})}function efe(t){let{gen:e,schema:n,data:r,self:i}=t;switch(n.type){case"boolean":Kpe(t);break;case"string":$3(t);break;case"timestamp":{$3(t);let l=(0,uj.useFunc)(e,zpe.default),{allowDate:s,parseDate:a}=i.opts,o=s?(0,tt._)`!${l}(${r}, true)`:(0,tt._)`!${l}(${r})`,u=a?(0,tt.or)(o,(0,tt._)`(${r} = new Date(${r}), false)`,(0,tt._)`isNaN(${r}.valueOf())`):o;e.if(u,()=>Qa(t,(0,tt.str)`invalid timestamp`));break}case"float32":case"float64":Av(t);break;default:{let l=n.type;if(!i.opts.int32range&&(l==="int32"||l==="uint32"))Av(t,16),l==="uint32"&&e.if((0,tt._)`${r} < 0`,()=>Qa(t,(0,tt.str)`integer out of range`));else{let[s,a,o]=qpe.intRange[l];Av(t,o),e.if((0,tt._)`${r} < ${s} || ${r} > ${a}`,()=>Qa(t,(0,tt.str)`integer out of range`))}}}}function $3(t){ra(t,'"'),Iv(t,Nv.parseJsonString)}function tfe(t){let{gen:e,data:n,schema:r}=t,i=r.enum;ra(t,'"'),e.if(!1);for(let l of i){let s=JSON.stringify(l).slice(1);e.elseIf((0,tt._)`${G9(s.length)} === ${s}`),e.assign(n,(0,tt.str)`${l}`),e.add(Ht.default.jsonPos,s.length)}e.else(),R1(t),e.endIf()}function Av(t,e){let{gen:n}=t;kv(t),n.if((0,tt._)`"-0123456789".indexOf(${G9(1)}) < 0`,()=>R1(t),()=>Iv(t,Nv.parseJsonNumber,e))}function aj(t,e){return n=>{let{gen:r,data:i}=n;dc(n,`${t}`,()=>e(n),()=>r.assign(i,t))}}function nfe(t){let{gen:e,self:n,definitions:r,schema:i,schemaEnv:l}=t,{ref:s}=i,a=r[s];if(!a)throw new Bpe.default(n.opts.uriResolver,"",s,`No definition ${s}`);if(!(0,Vpe.hasRef)(a))return z9({...t,schema:a});let{root:o}=l,u=cj.call(n,new oj.SchemaEnv({schema:a,root:o}),r);hj(t,rfe(e,u),!0)}function rfe(t,e){return e.parse?t.scopeValue("parse",{ref:e.parse}):(0,tt._)`${t.scopeValue("wrapper",{ref:e})}.parse`}function Rv(t){Iv(t,Nv.parseJson)}function Iv(t,e,n){hj(t,(0,uj.useFunc)(t.gen,e),n)}function hj(t,e,n){let{gen:r,data:i}=t;r.assign(i,(0,tt._)`${e}(${Ht.default.json}, ${Ht.default.jsonPos}${n?(0,tt._)`, ${n}`:tt.nil})`),r.assign(Ht.default.jsonPos,(0,tt._)`${e}.position`),r.if((0,tt._)`${i} === undefined`,()=>Qa(t,(0,tt._)`${e}.message`))}function ra(t,e){dc(t,e,R1)}function dc(t,e,n,r){let{gen:i}=t,l=e.length;kv(t),i.if((0,tt._)`${G9(l)} === ${e}`,()=>{i.add(Ht.default.jsonPos,l),r?.(t)},()=>n(t))}function kv({gen:t,char:e}){t.code((0,tt._)`while((${e}=${Ht.default.json}[${Ht.default.jsonPos}],${e}===" "||${e}==="\\n"||${e}==="\\r"||${e}==="\\t"))${Ht.default.jsonPos}++;`)}function G9(t){return t===1?(0,tt._)`${Ht.default.json}[${Ht.default.jsonPos}]`:(0,tt._)`${Ht.default.json}.slice(${Ht.default.jsonPos}, ${Ht.default.jsonPos}+${t})`}function R1(t){Qa(t,(0,tt._)`"unexpected token " + ${Ht.default.json}[${Ht.default.jsonPos}]`)}function Qa({gen:t,parseName:e},n){t.assign((0,tt._)`${e}.message`,n),t.assign((0,tt._)`${e}.position`,Ht.default.jsonPos),t.return(Ov)}});var Lv=k((_r,yj)=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.MissingRefError=_r.ValidationError=_r.CodeGen=_r.Name=_r.nil=_r.stringify=_r.str=_r._=_r.KeywordCxt=void 0;var ife=Km(),lfe=qF(),sfe=KF(),afe=nj(),ofe=mj(),Pv="JTD-meta-schema",J9=class extends ife.default{constructor(e={}){super({...e,jtd:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(lfe.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema(),this.opts.meta&&this.addMetaSchema(sfe.default,Pv,!1)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Pv)?Pv:void 0)}compileSerializer(e){let n=this._addSchema(e);return n.serialize||this._compileSerializer(n)}compileParser(e){let n=this._addSchema(e);return n.parse||this._compileParser(n)}_compileSerializer(e){if(afe.default.call(this,e,e.schema.definitions||{}),!e.serialize)throw new Error("ajv implementation error");return e.serialize}_compileParser(e){if(ofe.default.call(this,e,e.schema.definitions||{}),!e.parse)throw new Error("ajv implementation error");return e.parse}};yj.exports=_r=J9;Object.defineProperty(_r,"__esModule",{value:!0});_r.default=J9;var ufe=s1();Object.defineProperty(_r,"KeywordCxt",{enumerable:!0,get:function(){return ufe.KeywordCxt}});var I1=st();Object.defineProperty(_r,"_",{enumerable:!0,get:function(){return I1._}});Object.defineProperty(_r,"str",{enumerable:!0,get:function(){return I1.str}});Object.defineProperty(_r,"stringify",{enumerable:!0,get:function(){return I1.stringify}});Object.defineProperty(_r,"nil",{enumerable:!0,get:function(){return I1.nil}});Object.defineProperty(_r,"Name",{enumerable:!0,get:function(){return I1.Name}});Object.defineProperty(_r,"CodeGen",{enumerable:!0,get:function(){return I1.CodeGen}});var cfe=A4();Object.defineProperty(_r,"ValidationError",{enumerable:!0,get:function(){return cfe.default}});var pfe=A2();Object.defineProperty(_r,"MissingRefError",{enumerable:!0,get:function(){return pfe.default}})});var Fv=k((JIe,gj)=>{"use strict";var ffe=Hy();gj.exports=Object.freeze({coerceTypes:"array",useDefaults:!0,removeAdditional:!0,uriResolver:ffe,addUsedSchema:!1,allErrors:!1})});var Ej=k((KIe,_j)=>{"use strict";var dfe=Z8().default,hfe=Lv(),vj=Fv(),jv=class{constructor(e,n){n.mode==="JTD"?this.ajv=new hfe(Object.assign({},vj,n.customOptions)):this.ajv=new dfe(Object.assign({},vj,n.customOptions));let r=!0;if(n.plugins&&n.plugins.length>0)for(let l of n.plugins)Array.isArray(l)?(r=r&&l[0].name!=="formatsPlugin",l[0](this.ajv,l[1])):(r=r&&l.name!=="formatsPlugin",l(this.ajv));r&&Xy()(this.ajv);let i=Object.values(e);for(let l of i)this.ajv.addSchema(l)}buildValidatorFunction({schema:e}){if(e.$id){let n=this.ajv.getSchema(e.$id);if(n)return n}return this.ajv.compile(e)}};_j.exports=jv});var wj=k((XIe,bj)=>{"use strict";var mfe=Lv(),yfe=Fv(),Uv=class{constructor(e,n){this.ajv=new mfe(Object.assign({},yfe,n))}buildSerializerFunction({schema:e}){return this.ajv.compileSerializer(e)}};bj.exports=Uv});var xj=k((mc,Tj)=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var hc=A8(),xs=Qu();function Sj(t,e){if(!t.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:n}=t.scope.opts;return typeof e=="function"?i(e.source):e!==void 0?l(e,r):l(t.schemas,a=>a.meta?void 0:t.compile(a.schema));function r(a){let o=t.getSchema(a);if(!o)throw new Error(`moduleCode: no schema with id ${a}`);return o}function i(a){let o={},u=a?.validateName,c=s(o,a);return t.opts.code.esm?`"use strict";${n}export const validate = ${u};${n}export default ${u};${n}${c}`:`"use strict";${n}module.exports = ${u};${n}module.exports.default = ${u};${n}${c}`}function l(a,o){var u;let c={},f=(0,xs._)`"use strict";`;for(let m in a){let d=o(a[m]);if(d){let y=s(c,d.source),_=t.opts.code.esm?(0,xs._)`export const ${(0,xs.getEsmExportName)(m)}`:(0,xs._)`exports${(0,xs.getProperty)(m)}`;f=(0,xs._)`${f}${n}${_} = ${(u=d.source)===null||u===void 0?void 0:u.validateName};${n}${y}`}}return`${f}`}function s(a,o){if(!o)throw new Error('moduleCode: function does not have "source" property');if(m(o.validateName)===hc.UsedValueState.Completed)return xs.nil;d(o.validateName,hc.UsedValueState.Started);let u=t.scope.scopeCode(o.scopeValues,a,f),c=new xs._Code(`${u}${n}${o.validateCode}`);return o.evaluated?(0,xs._)`${c}${o.validateName}.evaluated = ${o.evaluated};${n}`:c;function f(y){var _;let S=(_=y.value)===null||_===void 0?void 0:_.ref;if(y.prefix==="validate"&&typeof S=="function")return s(a,S.source);if((y.prefix==="root"||y.prefix==="wrapper")&&typeof S=="object"){let{validate:w,validateName:E}=S;if(!E)throw new Error("ajv internal error");let g=t.opts.code.es5?hc.varKinds.var:hc.varKinds.const,v=(0,xs._)`${g} ${y} = {validate: ${E}};`;if(m(E)===hc.UsedValueState.Started)return v;let x=s(a,w?.source);return(0,xs._)`${v}${n}${x}`}}function m(y){var _;return(_=a[y.prefix])===null||_===void 0?void 0:_.get(y)}function d(y,_){let{prefix:S}=y;(a[S]=a[S]||new Map).set(y,_)}}}Tj.exports=mc=Sj;Object.defineProperty(mc,"__esModule",{value:!0});mc.default=Sj});var Nj=k((WIe,Oj)=>{"use strict";var Aj=Mv(),gfe=xj().default;function vfe(t={readMode:!0}){if(t.readMode===!0&&!t.restoreFunction)throw new Error("You must provide a restoreFunction options when readMode ON");if(t.readMode!==!0&&!t.storeFunction)throw new Error("You must provide a storeFunction options when readMode OFF");if(t.readMode===!0)return function(){return function(r){return t.restoreFunction(r)}};let e=Aj();return function(r,i={}){(!i.customOptions||!i.customOptions.code)&&(i.customOptions=Object.assign({},i.customOptions,{code:{source:!0}}));let l=e(r,i);return function(s){let a=l(s),o=gfe(l[Aj.AjvReference].ajv,a);return t.storeFunction(s,o),a}}}Oj.exports=vfe});var Mv=k((YIe,k1)=>{"use strict";var Rj=Symbol.for("fastify.ajv-compiler.reference"),_fe=Ej(),Efe=wj();function $v(t){let e=new Map,n=new Map;return t&&t.jtdSerializer===!0?function(i,l){let s=Cj({},l);if(n.has(s))return n.get(s);let a=new Efe(i,l),o=a.buildSerializerFunction.bind(a);return n.set(s,o),o}:function(i,l){let s=Cj(i,l.customOptions);if(e.has(s))return e.get(s);let a=new _fe(i,l),o=a.buildValidatorFunction.bind(a);return e.set(s,o),l.customOptions.code!==void 0&&(o[Rj]=a),o}}function Cj(t,e){let n=JSON.stringify(t),r=JSON.stringify(e);return`${n}${r}`}k1.exports=$v;k1.exports.default=$v;k1.exports.AjvCompiler=$v;k1.exports.AjvReference=Rj;k1.exports.StandaloneValidator=Nj()});var Bv=k((QIe,Ij)=>{"use strict";var{buildSchemas:bfe}=f4(),wfe=lv(),Sfe=Mv();function Tfe(t,e){if(t)return new D1(t,e);let n=Object.assign({buildValidator:null,buildSerializer:null},e?.compilersFactory);n.buildValidator||(n.buildValidator=Sfe()),n.buildSerializer||(n.buildSerializer=wfe());let r={bucket:e&&e.bucket||bfe,compilersFactory:n,isCustomValidatorCompiler:typeof e?.compilersFactory?.buildValidator=="function",isCustomSerializerCompiler:typeof e?.compilersFactory?.buildValidator=="function"};return new D1(void 0,r)}var D1=class{constructor(e,n){this.opts=n||e?.opts,this.addedSchemas=!1,this.compilersFactory=this.opts.compilersFactory,e?(this.schemaBucket=this.opts.bucket(e.getSchemas()),this.validatorCompiler=e.getValidatorCompiler(),this.serializerCompiler=e.getSerializerCompiler(),this.isCustomValidatorCompiler=e.isCustomValidatorCompiler,this.isCustomSerializerCompiler=e.isCustomSerializerCompiler,this.parent=e):(this.schemaBucket=this.opts.bucket(),this.isCustomValidatorCompiler=this.opts.isCustomValidatorCompiler||!1,this.isCustomSerializerCompiler=this.opts.isCustomSerializerCompiler||!1)}add(e){return this.addedSchemas=!0,this.schemaBucket.add(e)}getSchema(e){return this.schemaBucket.getSchema(e)}getSchemas(){return this.schemaBucket.getSchemas()}setValidatorCompiler(e){this.compilersFactory=Object.assign({},this.compilersFactory,{buildValidator:()=>e}),this.validatorCompiler=e,this.isCustomValidatorCompiler=!0}setSerializerCompiler(e){this.compilersFactory=Object.assign({},this.compilersFactory,{buildSerializer:()=>e}),this.serializerCompiler=e,this.isCustomSerializerCompiler=!0}getValidatorCompiler(){return this.validatorCompiler||this.parent&&this.parent.getValidatorCompiler()}getSerializerCompiler(){return this.serializerCompiler||this.parent&&this.parent.getSerializerCompiler()}getSerializerBuilder(){return this.compilersFactory.buildSerializer||this.parent&&this.parent.getSerializerBuilder()}getValidatorBuilder(){return this.compilersFactory.buildValidator||this.parent&&this.parent.getValidatorBuilder()}setupValidator(e){this.validatorCompiler!==void 0&&!this.addedSchemas||(this.validatorCompiler=this.getValidatorBuilder()(this.schemaBucket.getSchemas(),e.ajv))}setupSerializer(e){this.serializerCompiler!==void 0&&!this.addedSchemas||(this.serializerCompiler=this.getSerializerBuilder()(this.schemaBucket.getSchemas(),e.serializerOpts))}};D1.buildSchemaController=Tfe;Ij.exports=D1});var Jv=k((ZIe,Gv)=>{"use strict";var Hv=Rg(),qv=require("node:assert"),zv=Symbol.for("registered-plugin"),{kTestInternals:xfe}=di(),{exist:Afe,existReply:Ofe,existRequest:Nfe}=$g(),{FST_ERR_PLUGIN_VERSION_MISMATCH:Cfe,FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:Rfe}=Ui(),{FSTWRN002:Ife}=Fa();function yc(t){return t[Symbol.for("plugin-meta")]}function kj(t){let e=Dj(t);if(e)return e;let n=require.cache;if(n){let r=Object.keys(n);for(let i=0;ie.trim()).join(" -- ")}function Dj(t){return t[Symbol.for("fastify.display-name")]}function Pj(t){return!!t[Symbol.for("skip-override")]}function Lj(t){let e=yc(t);if(!e)return;let n=e.dependencies;n&&(qv(Array.isArray(n),"The dependencies should be an array of strings"),n.forEach(r=>{qv(this[zv].indexOf(r)>-1,`The dependency '${r}' of plugin '${e.name}' is not registered`)}))}function Fj(t){let e=yc(t);if(!e)return;let{decorators:n,name:r}=e;n&&(n.fastify&&Vv(this,"Fastify",n.fastify,r),n.reply&&Vv(this,"Reply",n.reply,r),n.request&&Vv(this,"Request",n.request,r))}var Dfe={Fastify:Afe,Request:Nfe,Reply:Ofe};function Vv(t,e,n,r){qv(Array.isArray(n),"The decorators should be an array of strings"),n.forEach(i=>{let l=typeof r=="string"?` required by '${r}'`:"";if(!Dfe[e].call(t,i))throw new Rfe(i,l,e)})}function Pfe(t){let e=yc(t);if(!e)return;let n=e.fastify,r=/-rc.+$/.test(this.version);if(!(r===!0&&Hv.gt(this.version,Hv.coerce(n))===!0)&&n&&Hv.satisfies(this.version,n,{includePrerelease:r})===!1)throw new Cfe(e.name,n,this.version)}function Lfe(t){let e=yc(t);if(!e)return;let n=e.name;if(n)return this[zv].push(n),n}function Ffe(t,e){t.constructor.name==="AsyncFunction"&&t.length===3&&Ife(e||"anonymous")}function jfe(t){let e=Lfe.call(this,t)||kj(t);return Ffe.call(this,t,e),Pfe.call(this,t),Fj.call(this,t),Lj.call(this,t),Pj(t)}Gv.exports={getPluginName:kj,getFuncPreview:kfe,kRegisteredPlugins:zv,getDisplayName:Dj,registerPlugin:jfe};Gv.exports[xfe]={shouldSkipOverride:Pj,getMeta:yc,checkDecorators:Fj,checkDependencies:Lj}});var K9=k((eke,jj)=>{"use strict";function Ufe(t,e){let n=e||$fe();return t?Bfe(t,n):n}function Mfe(t,e){return t.genReqId(e)}function $fe(){let e=0;return function(){return e=e+1&2147483647,`req-${e.toString(36)}`}}function Bfe(t,e){return function(n){return n.headers[t]||e(n)}}jj.exports={getGenReqId:Mfe,reqIdGenFactory:Ufe}});var Bj=k((tke,$j)=>{"use strict";var Uj=12,Hfe=0,Kv=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function Vfe(t){var e=t.indexOf("%");if(e===-1)return t;for(var n=t.length,r="",i=0,l=0,s=e,a=Uj;e>-1&&e>10),56320+(l&1023)),l=0,i=e+3,e=s=t.indexOf("%",i);else{if(a===Hfe)return null;if(e+=3,e{"use strict";var Hj=Bj(),Vj=/\+/g,qj=function(){};qj.prototype=Object.create(null);function zfe(t){let e=new qj;if(typeof t!="string")return e;let n=t.length,r="",i="",l=-1,s=-1,a=!1,o=!1,u=!1,c=!1,f=!1,m=0;for(let d=0;dl,f||(s=d),r=t.slice(l+1,s),f||r.length>0){u&&(r=r.replace(Vj," ")),a&&(r=Hj(r)||r),f&&(i=t.slice(s+1,d),c&&(i=i.replace(Vj," ")),o&&(i=Hj(i)||i));let y=e[r];y===void 0?e[r]=i:y.pop?y.push(i):e[r]=[y,i]}i="",l=d,s=d,a=!1,o=!1,u=!1,c=!1}else m===61?s<=l?s=d:o=!0:m===43?s>l?c=!0:u=!0:m===37&&(s>l?o=!0:a=!0);return e}zj.exports=zfe});var Kj=k((rke,Jj)=>{var ia=Array.from({length:256},(t,e)=>"%"+((e<16?"0":"")+e.toString(16)).toUpperCase()),Gfe=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function Jfe(t){let e=t.length;if(e===0)return"";let n="",r=0,i=0;e:for(;i>6]+ia[128|l&63];continue}if(l<55296||l>=57344){r=i+1,n+=ia[224|l>>12]+ia[128|l>>6&63]+ia[128|l&63];continue}if(++i,i>=e)throw new Error("URI malformed");let s=t.charCodeAt(i)&1023;r=i+1,l=65536+((l&1023)<<10|s),n+=ia[240|l>>18]+ia[128|l>>12&63]+ia[128|l>>6&63]+ia[128|l&63]}return r===0?t:r{"use strict";var{encodeString:Xv}=Kj();function Xj(t){let e=typeof t;return e==="string"?Xv(t):e==="bigint"?t.toString():e==="boolean"?t?"true":"false":e==="number"&&Number.isFinite(t)?t<1e21?""+t:Xv(""+t):""}function Kfe(t){let e="";if(t===null||typeof t!="object")return e;let n="&",r=Object.keys(t),i=r.length,l=0;for(let s=0;s{"use strict";var Qj=Gj(),Zj=Yj(),eU={parse:Qj,stringify:Zj};gc.exports=eU;gc.exports.default=eU;gc.exports.parse=Qj;gc.exports.stringify=Zj});var vc=k((ske,nU)=>{nU.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}});var Yv=k(F2=>{var hn=vc(),Wv=()=>[{type:hn.RANGE,from:48,to:57}],rU=()=>[{type:hn.CHAR,value:95},{type:hn.RANGE,from:97,to:122},{type:hn.RANGE,from:65,to:90}].concat(Wv()),iU=()=>[{type:hn.CHAR,value:9},{type:hn.CHAR,value:10},{type:hn.CHAR,value:11},{type:hn.CHAR,value:12},{type:hn.CHAR,value:13},{type:hn.CHAR,value:32},{type:hn.CHAR,value:160},{type:hn.CHAR,value:5760},{type:hn.RANGE,from:8192,to:8202},{type:hn.CHAR,value:8232},{type:hn.CHAR,value:8233},{type:hn.CHAR,value:8239},{type:hn.CHAR,value:8287},{type:hn.CHAR,value:12288},{type:hn.CHAR,value:65279}],Xfe=()=>[{type:hn.CHAR,value:10},{type:hn.CHAR,value:13},{type:hn.CHAR,value:8232},{type:hn.CHAR,value:8233}];F2.words=()=>({type:hn.SET,set:rU(),not:!1});F2.notWords=()=>({type:hn.SET,set:rU(),not:!0});F2.ints=()=>({type:hn.SET,set:Wv(),not:!1});F2.notInts=()=>({type:hn.SET,set:Wv(),not:!0});F2.whitespace=()=>({type:hn.SET,set:iU(),not:!1});F2.notWhitespace=()=>({type:hn.SET,set:iU(),not:!0});F2.anyChar=()=>({type:hn.SET,set:Xfe(),not:!0})});var sU=k(_c=>{var lU=vc(),P1=Yv(),Wfe="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",Yfe={0:0,t:9,n:10,v:11,f:12,r:13};_c.strToChars=function(t){var e=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return t=t.replace(e,function(n,r,i,l,s,a,o,u){if(i)return n;var c=r?8:l?parseInt(l,16):s?parseInt(s,16):a?parseInt(a,8):o?Wfe.indexOf(o):Yfe[u],f=String.fromCharCode(c);return/[[\]{}^$.|?*+()]/.test(f)&&(f="\\"+f),f}),t};_c.tokenizeClass=(t,e)=>{for(var n=[],r=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,i,l;(i=r.exec(t))!=null;)if(i[1])n.push(P1.words());else if(i[2])n.push(P1.ints());else if(i[3])n.push(P1.whitespace());else if(i[4])n.push(P1.notWords());else if(i[5])n.push(P1.notInts());else if(i[6])n.push(P1.notWhitespace());else if(i[7])n.push({type:lU.RANGE,from:(i[8]||i[9]).charCodeAt(0),to:i[10].charCodeAt(0)});else if(l=i[12])n.push({type:lU.CHAR,value:l.charCodeAt(0)});else return[n,r.lastIndex];_c.error(e,"Unterminated character class")};_c.error=(t,e)=>{throw new SyntaxError("Invalid regular expression: /"+t+"/: "+e)}});var aU=k(Ec=>{var X9=vc();Ec.wordBoundary=()=>({type:X9.POSITION,value:"b"});Ec.nonWordBoundary=()=>({type:X9.POSITION,value:"B"});Ec.begin=()=>({type:X9.POSITION,value:"^"});Ec.end=()=>({type:X9.POSITION,value:"$"})});var oU=k((cke,Qv)=>{var L1=sU(),rs=vc(),B3=Yv(),W9=aU();Qv.exports=t=>{var e=0,n,r,i={type:rs.ROOT,stack:[]},l=i,s=i.stack,a=[],o=w=>{L1.error(t,`Nothing to repeat at column ${w-1}`)},u=L1.strToChars(t);for(n=u.length;e{"use strict";var uU=oU(),Qfe=uU.types;cU.exports=function(t,e){e||(e={});var n=e.limit===void 0?25:e.limit;Zfe(t)?t=t.source:typeof t!="string"&&(t=String(t));try{t=uU(t)}catch{return!1}var r=0;return function i(l,s){var a,o,u;if(l.type===Qfe.REPETITION&&(s++,r++,s>1||r>n))return!1;if(l.options){for(a=0,u=l.options.length;a{"use strict";fU.exports={name:"__fmw_internal_strategy_merged_tree_http_method__",storage:function(){let t={};return{get:e=>t[e]||null,set:(e,n)=>{t[e]=n}}},deriveConstraint:t=>t.method,mustMatchWhenDerived:!0}});var _U=k((dke,vU)=>{"use strict";var dU=i1(),hU=Y9(),mU=Symbol("treeData");function yU(t,e=""){let n="",r=Object.keys(t);for(let i=0;ifU(e)):typeof t=="symbol"?t.toString():typeof t=="function"?Vfe(t):t}function qfe(t,e){if(!e.includeMeta)return{};let n=e.buildPrettyMeta(t),r={},i=e.includeMeta;Array.isArray(i)||(i=Reflect.ownKeys(n));for(let l of i){if(!Object.prototype.hasOwnProperty.call(n,l))continue;let s=l.toString(),a=n[l];if(a!=null){let o=JSON.stringify(fU(a));r[s]=o}}return r}function zfe(t){let e="";for(let[n,r]of Object.entries(t))e+=`
-\u2022 (${n}) ${r}`;return e}function Gfe(t){let e={...t.opts.constraints},n=e[uU.name];return delete e[uU.name],{...t,method:n,opts:{constraints:e}}}function Jfe(t){let e=` (${t.method})`,n=t.opts.constraints||{};return Object.keys(n).length!==0&&(e+=" "+JSON.stringify(n)),e+=zfe(t.metaData),e}function Kfe(t){return t.reduce((e,n)=>{for(let r of e)if(oU(n.opts.constraints,r.opts.constraints)&&oU(n.metaData,r.metaData))return r.method+=", "+n.method,e;return e.push(n),e},[])}function Xfe(t,e,n){let r=t.routes;return n.method===void 0&&(r=r.map(Gfe)),r=r.map(i=>(i.metaData=qfe(i,n),i)),n.method===void 0&&(r=Kfe(r)),r.map(Jfe).join(`
-${e}`)}function W9(t,e,n,r){if((t.isLeafNode||r.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[cU]=Xfe(t,n,r)),n=""),t.staticChildren)for(let i of Object.values(t.staticChildren))W9(i,e,n+i.prefix,r);if(t.parametricChildren)for(let i of Object.values(t.parametricChildren)){let l=Array.from(i.nodePaths).join("|");W9(i,e,n+l,r)}t.wildcardChild&&W9(t.wildcardChild,e,"*",r)}function Wfe(t,e){let n={};return W9(t,n,t.prefix,e),pU(n)}dU.exports={prettyPrintTree:Wfe}});var yU=k((tke,mU)=>{"use strict";var Yfe=X9(),Wv=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(e){return e===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(e)}addHandler(e,n){let r=n.params,i=n.opts.constraints||{},l={params:r,constraints:i,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(r)},s=Object.keys(i);s.length===0&&(this.unconstrainedHandler=l);for(let o of s)this.constraints.includes(o)||(o==="version"?this.constraints.unshift(o):this.constraints.push(o));let a=s.includes(Yfe.name);if(!a&&this.handlers.length>=32)throw new Error("find-my-way supports a maximum of 32 route handlers per node when there are constraints, limit reached");this.handlers.push(l),this.handlers.sort((o,u)=>Object.keys(o.constraints).length-Object.keys(u.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,i)}_compileCreateParamsObject(e){let n=[];for(let r=0;rgU(e)):typeof t=="symbol"?t.toString():typeof t=="function"?ede(t):t}function tde(t,e){if(!e.includeMeta)return{};let n=e.buildPrettyMeta(t),r={},i=e.includeMeta;Array.isArray(i)||(i=Reflect.ownKeys(n));for(let l of i){if(!Object.prototype.hasOwnProperty.call(n,l))continue;let s=l.toString(),a=n[l];if(a!=null){let o=JSON.stringify(gU(a));r[s]=o}}return r}function nde(t){let e="";for(let[n,r]of Object.entries(t))e+=`
+\u2022 (${n}) ${r}`;return e}function rde(t){let e={...t.opts.constraints},n=e[hU.name];return delete e[hU.name],{...t,method:n,opts:{constraints:e}}}function ide(t){let e=` (${t.method})`,n=t.opts.constraints||{};return Object.keys(n).length!==0&&(e+=" "+JSON.stringify(n)),e+=nde(t.metaData),e}function lde(t){return t.reduce((e,n)=>{for(let r of e)if(dU(n.opts.constraints,r.opts.constraints)&&dU(n.metaData,r.metaData))return r.method+=", "+n.method,e;return e.push(n),e},[])}function sde(t,e,n){let r=t.routes;return n.method===void 0&&(r=r.map(rde)),r=r.map(i=>(i.metaData=tde(i,n),i)),n.method===void 0&&(r=lde(r)),r.map(ide).join(`
+${e}`)}function Q9(t,e,n,r){if((t.isLeafNode||r.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[mU]=sde(t,n,r)),n=""),t.staticChildren)for(let i of Object.values(t.staticChildren))Q9(i,e,n+i.prefix,r);if(t.parametricChildren)for(let i of Object.values(t.parametricChildren)){let l=Array.from(i.nodePaths).join("|");Q9(i,e,n+l,r)}t.wildcardChild&&Q9(t.wildcardChild,e,"*",r)}function ade(t,e){let n={};return Q9(t,n,t.prefix,e),yU(n)}vU.exports={prettyPrintTree:ade}});var bU=k((hke,EU)=>{"use strict";var ode=Y9(),Zv=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(e){return e===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(e)}addHandler(e,n){let r=n.params,i=n.opts.constraints||{},l={params:r,constraints:i,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(r)},s=Object.keys(i);s.length===0&&(this.unconstrainedHandler=l);for(let o of s)this.constraints.includes(o)||(o==="version"?this.constraints.unshift(o):this.constraints.push(o));let a=s.includes(ode.name);if(!a&&this.handlers.length>=32)throw new Error("find-my-way supports a maximum of 32 route handlers per node when there are constraints, limit reached");this.handlers.push(l),this.handlers.sort((o,u)=>Object.keys(o.constraints).length-Object.keys(u.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,i)}_compileCreateParamsObject(e){let n=[];for(let r=0;r{"use strict";var Qfe=yU(),n7={STATIC:0,PARAMETRIC:1,WILDCARD:2},Y9=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,n){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new Qfe),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},Q9=class extends Y9{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,n){let r=this.staticChildren[e.charAt(n)];return r===void 0||!r.matchPrefix(e,n)?null:r}getStaticChild(e,n=0){if(e.length===n)return this;let r=this.findStaticMatchingChild(e,n);return r?r.getStaticChild(e,n+r.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let n=this.staticChildren[e.charAt(0)];if(n){let i=1;for(;i(i.regex&&i.regex.source)===n);return r||null}createParametricChild(e,n,r){let i=this.getParametricChild(e);return i?(i.nodePaths.add(r),i):(i=new e7(e,n,r),this.parametricChildren.push(i),this.parametricChildren.sort((l,s)=>l.isRegex?s.isRegex?l.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(l.staticSuffix)?1:l.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),i)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new t7,this.wildcardChild}split(e,n){let r=this.prefix.slice(0,n),i=this.prefix.slice(n);this.prefix=i,this._compilePrefixMatch();let l=new t(r);return l.staticChildren[i.charAt(0)]=this,e.staticChildren[r.charAt(0)]=l,l}getNextNode(e,n,r,i){let l=this.findStaticMatchingChild(e,n),s=0;if(l===null){if(this.parametricChildren.length===0)return this.wildcardChild;l=this.parametricChildren[0],s=1}this.wildcardChild!==null&&r.push({paramsCount:i,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)r.push({paramsCount:i,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return l}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let n=1;n{"use strict";var Zfe=require("assert");function _c(){if(!(this instanceof _c))return new _c;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}_c.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,r,i]=t.split(".");return n=Number(n)||0,r=Number(r)||0,i=Number(i)||0,n>=this.maxMajor&&(this.maxMajor=n,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),r>=(this.maxMinors[n]||0)&&(this.maxMinors[n]=r,this.store[`${n}.x`]=e,this.store[`${n}.x.x`]=e),i>=(this.store[`${n}.${r}`]||0)&&(this.maxPatches[`${n}.${r}`]=i,this.store[`${n}.${r}.x`]=e),this.store[`${n}.${r}.${i}`]=e,this};_c.prototype.get=function(t){return this.store[t]};_U.exports={name:"version",mustMatchWhenDerived:!0,storage:_c,validate(t){Zfe(typeof t=="string","Version should be a string")}}});var wU=k((ike,bU)=>{"use strict";var ede=require("assert");function tde(){let t={},e=[];return{get:n=>{let r=t[n];if(r)return r;for(let i of e)if(i.host.test(n))return i.value},set:(n,r)=>{n instanceof RegExp?e.push({host:n,value:r}):t[n]=r}}}bU.exports={name:"host",mustMatchWhenDerived:!1,storage:tde,validate(t){ede(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var TU=k((lke,SU)=>{"use strict";var nde=EU(),rde=wU(),Yv=require("assert"),Qv=class{constructor(e){if(this.strategies={version:nde,host:rde},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let n of Object.values(e))this.addConstraintStrategy(n)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let n=this.strategies[e];return n!==void 0?n.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(Yv(typeof e.name=="string"&&e.name!=="","strategy.name is required."),Yv(e.storage&&typeof e.storage=="function","strategy.storage function is required."),Yv(e.deriveConstraint&&typeof e.deriveConstraint=="function","strategy.deriveConstraint function is required."),this.strategies[e.name]&&this.strategies[e.name].isCustom)throw new Error(`There already exists a custom constraint with the name ${e.name}.`);if(this.isStrategyUsed(e.name))throw new Error(`There already exists a route with ${e.name} constraint.`);e.isCustom=!0,e.isAsync=e.deriveConstraint.length===3,this.strategies[e.name]=e,e.mustMatchWhenDerived&&this.noteUsage({[e.name]:e})}deriveConstraints(e,n,r){let i=this.deriveSyncConstraints(e,n);if(r===void 0)return i;this.deriveAsyncConstraints(i,e,n,r)}deriveSyncConstraints(e,n){}noteUsage(e){if(e){let n=this.strategiesInUse.size;for(let r in e)this.strategies[r].isAsync?this.asyncStrategiesInUse.add(r):this.strategiesInUse.add(r);n!==this.strategiesInUse.size&&this._buildDeriveConstraints()}}newStoreForConstraint(e){if(!this.strategies[e])throw new Error(`No strategy registered for constraint key ${e}`);return this.strategies[e].storage()}validateConstraints(e){for(let n in e){let r=e[n];if(typeof r>"u")throw new Error("Can't pass an undefined constraint value, must pass null or no key at all");let i=this.strategies[n];if(!i)throw new Error(`No strategy registered for constraint key ${n}`);i.validate&&i.validate(r)}}deriveAsyncConstraints(e,n,r,i){let l=this.asyncStrategiesInUse.size;if(l===0){i(null,e);return}e=e||{};for(let s of this.asyncStrategiesInUse)this.strategies[s].deriveConstraint(n,r,(o,u)=>{if(o!==null){i(o);return}e[s]=u,--l===0&&i(null,e)})}_buildDeriveConstraints(){if(this.strategiesInUse.size===0)return;let e=["return {"];for(let n of this.strategiesInUse){let r=this.strategies[n];if(r.isCustom)e.push(` ${r.name}: this.strategies.${n}.deriveConstraint(req, ctx),`);else if(n==="version")e.push(" version: req.headers['accept-version'],");else if(n==="host")e.push(" host: req.headers.host || req.headers[':authority'],");else throw new Error("unknown non-custom strategy for compiling constraint derivation function")}e.push("}"),this.deriveSyncConstraints=new Function("req","ctx",e.join(`
-`)).bind(this)}};SU.exports=Qv});var AU=k((ske,xU)=>{"use strict";var ide=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];xU.exports=ide});var CU=k((ake,NU)=>{"use strict";function OU(t,e){return t===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:t===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:t===52&&e===48?"@":null}function lde(t,e){let n=!1,r=!1,i="";for(let s=1;s{"use strict";var jr=require("assert"),ade=Wj(),r7=sU(),t_=t1(),{prettyPrintTree:ode}=hU(),{StaticNode:RU,NODE_TYPES:Zv}=vU(),ude=TU(),D1=AU(),e_=X9(),{safeDecodeURI:cde,safeDecodeURIComponent:IU}=CU(),kU=/^https?:\/\/.*?\//,Mo=/(\/:[^/()]*?)\?(\/?)/;if(!r7(kU))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!r7(Mo))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function _r(t){if(!(this instanceof _r))return new _r(t);t=t||{},this._opts=t,t.defaultRoute?(jr(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(jr(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(jr(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=pde,t.querystringParser?(jr(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:ade.parse(e),this.caseSensitive=t.caseSensitive===void 0?!0:t.caseSensitive,this.ignoreTrailingSlash=t.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=t.ignoreDuplicateSlashes||!1,this.maxParamLength=t.maxParamLength||100,this.allowUnsafeRegex=t.allowUnsafeRegex||!1,this.constrainer=new ude(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}_r.prototype.on=function(e,n,r,i,l){typeof r=="function"&&(i!==void 0&&(l=i),i=r,r={}),jr(typeof n=="string","Path should be a string"),jr(n.length>0,"The path could not be empty"),jr(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),jr(typeof i=="function","Handler should be a function");let s=n.match(Mo);if(s){jr(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let u=n.replace(Mo,"$1$2"),c=n.replace(Mo,"$2");this.on(e,u,r,i,l),this.on(e,c,r,i,l);return}let a=n;this.ignoreDuplicateSlashes&&(n=n_(n)),this.ignoreTrailingSlash&&(n=r_(n));let o=Array.isArray(e)?e:[e];for(let u of o)jr(typeof u=="string","Method should be a string"),jr(D1.includes(u),`Method '${u}' is not an http method.`),this._on(u,n,r,i,l,a)};_r.prototype._on=function(e,n,r,i,l){let s={};r.constraints!==void 0&&(jr(typeof r.constraints=="object"&&r.constraints!==null,"Constraints should be an object"),Object.keys(r.constraints).length!==0&&(s=r.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new RU("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new RU(""),this.trees[e].staticChildren["/"]=m}let o=this.trees[e],u=o.prefix.length,c=[];for(let m=0;m<=a.length;m++){if(a.charCodeAt(m)===58&&a.charCodeAt(m+1)===58){m++;continue}let d=a.charCodeAt(m)===58&&a.charCodeAt(m+1)!==58,y=a.charCodeAt(m)===42;if(d||y||m===a.length&&m!==u){let _=a.slice(u,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),o=o.createStaticChild(_)}if(d){let _=!1,S=[],w=m+1;for(let E=w;;E++){let g=a.charCodeAt(E),v=g===40,x=g===45||g===46,O=g===47||E===a.length;if(v||x||O){let N=a.slice(w,E);if(c.push(N),_=_||v||x,v){let F=LU(a,E),te=a.slice(E,F+1);this.allowUnsafeRegex||jr(r7(new RegExp(te)),`The regex '${te}' is not safe!`),S.push(PU(te)),E=F+1}else S.push("(.*?)");let R=E;for(;E0,"The path could not be empty"),jr(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),jr(typeof r>"u"||typeof r=="object"&&!Array.isArray(r)&&r!==null,"Constraints should be an object or undefined.");let i=n.match(Mo);if(i){jr(n.length===i.index+i[0].length,"Optional Parameter needs to be the last parameter of the path");let s=n.replace(Mo,"$1$2"),a=n.replace(Mo,"$2");this.off(e,s,r),this.off(e,a,r);return}this.ignoreDuplicateSlashes&&(n=n_(n)),this.ignoreTrailingSlash&&(n=r_(n));let l=Array.isArray(e)?e:[e];for(let s of l)this._off(s,n,r)};_r.prototype._off=function(e,n,r){jr(typeof e=="string","Method should be a string"),jr(D1.includes(e),`Method '${e}' is not an http method.`);function i(o){return e!==o.method||n!==o.path}function l(o){return i(o)||!t_(r,o.opts.constraints||{})}let s=r?l:i,a=this.routes.filter(s);this._rebuild(a)};_r.prototype.lookup=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i===void 0){let l=this.constrainer.deriveConstraints(e,r),s=this.find(e.method,e.url,l);return this.callHandler(s,e,n,r)}this.constrainer.deriveConstraints(e,r,(l,s)=>{if(l!==null){i(l);return}try{let a=this.find(e.method,e.url,s),o=this.callHandler(a,e,n,r);i(null,o)}catch(a){i(a)}})};_r.prototype.callHandler=function(e,n,r,i){return e===null?this._defaultRoute(n,r,i):i===void 0?e.handler(n,r,e.params,e.store,e.searchParams):e.handler.call(i,n,r,e.params,e.store,e.searchParams)};_r.prototype.find=function(e,n,r){let i=this.trees[e];if(i===void 0)return null;n.charCodeAt(0)!==47&&(n=n.replace(kU,"/")),this.ignoreDuplicateSlashes&&(n=n_(n));let l,s,a;try{l=cde(n,this.useSemicolonDelimiter),n=l.path,s=l.querystring,a=l.shouldDecodeParam}catch{return this._onBadUrl(n)}this.ignoreTrailingSlash&&(n=r_(n));let o=n;this.caseSensitive===!1&&(n=n.toLowerCase());let u=this.maxParamLength,c=i.prefix.length,f=[],m=n.length,d=[];for(;;){if(c===m&&i.isLeafNode){let _=i.handlerStorage.getMatchingHandler(r);if(_!==null)return{handler:_.handler,store:_.store,params:_._createParamsObject(f),searchParams:this.querystringParser(s)}}let y=i.getNextNode(n,c,d,f.length);if(y===null){if(d.length===0)return null;let _=d.pop();c=_.brotherPathIndex,f.splice(_.paramsCount),y=_.brotherNode}if(i=y,i.kind===Zv.STATIC){c+=i.prefix.length;continue}if(i.kind===Zv.WILDCARD){let _=o.slice(c);a&&(_=IU(_)),f.push(_),c=m;continue}if(i.kind===Zv.PARAMETRIC){let _=o.indexOf("/",c);_===-1&&(_=m);let S=o.slice(c,_);if(a&&(S=IU(S)),i.isRegex){let w=i.regex.exec(S);if(w===null)continue;for(let E=1;Eu)return null;f.push(g)}}else{if(S.length>u)return null;f.push(S)}c=_}}};_r.prototype._rebuild=function(t){this.reset();for(let e of t){let{method:n,path:r,opts:i,handler:l,store:s}=e;this._on(n,r,i,l,s)}};_r.prototype._defaultRoute=function(t,e,n){if(this.defaultRoute!==null)return n===void 0?this.defaultRoute(t,e):this.defaultRoute.call(n,t,e);e.statusCode=404,e.end()};_r.prototype._onBadUrl=function(t){if(this.onBadUrl===null)return null;let e=this.onBadUrl;return{handler:(n,r,i)=>e(t,n,r),params:{},store:null}};_r.prototype.prettyPrint=function(t={}){let e=t.method;t.buildPrettyMeta=this.buildPrettyMeta.bind(this);let n=null;if(e===void 0){let{version:r,host:i,...l}=this.constrainer.strategies;l[e_.name]=e_;let s=new _r({...this._opts,constraints:l}),a=this.routes.map(o=>{let u={...o.opts.constraints,[e_.name]:o.method};return{...o,method:"MERGED",opts:{constraints:u}}});s._rebuild(a),n=s.trees.MERGED}else n=this.trees[e];return n==null?"(empty tree)":ode(n,t)};for(let t in D1){if(!D1.hasOwnProperty(t))continue;let e=D1[t],n=e.toLowerCase();if(_r.prototype[n])throw new Error("Method already exists: "+n);_r.prototype[n]=function(r,i,l){return this.on(e,r,i,l)}}_r.prototype.all=function(t,e,n){this.on(D1,t,e,n)};FU.exports=_r;function DU(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function n_(t){return t.replace(/\/\/+/g,"/")}function r_(t){return t.length>1&&t.charCodeAt(t.length-1)===47?t.slice(0,-1):t}function PU(t){return t.charCodeAt(1)===94&&(t=t.slice(0,1)+t.slice(2)),t.charCodeAt(t.length-2)===36&&(t=t.slice(0,t.length-2)+t.slice(t.length-1)),t}function LU(t,e){let n=1;for(;e{"use strict";function l_(t,e,n,r){if(n===void 0)return e.header("content-length","0"),r(null,null);if(typeof n.resume=="function")return n.on("error",l=>{e.log.error({err:l},"Error on Stream found for HEAD route")}),n.resume(),r(null,null);let i=""+Buffer.byteLength(n);e.header("content-length",i),r(null,null)}function fde(t){return t==null?l_:Array.isArray(t)?[...t,l_]:[t,l_]}jU.exports={parseHeadOnSendHandlers:fde}});var tM=k((cke,eM)=>{"use strict";var dde=i_(),hde=A9(),MU=rh(),{onRequestAbortHookRunner:mde,lifecycleHooks:$U,preParsingHookRunner:yde,onTimeoutHookRunner:gde,onRequestHookRunner:vde}=h2(),{supportedMethods:_de}=kg(),{normalizeSchema:Ede}=c4(),{parseHeadOnSendHandlers:bde}=UU(),{FSTDEP007:wde,FSTDEP008:Sde,FSTDEP014:BU}=La(),{compileSchemasForValidation:Tde,compileSchemasForSerialization:xde}=Qd(),{FST_ERR_SCH_VALIDATION_BUILD:Ade,FST_ERR_SCH_SERIALIZATION_BUILD:Ode,FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:Nde,FST_ERR_DUPLICATED_ROUTE:Cde,FST_ERR_INVALID_URL:Rde,FST_ERR_HOOK_INVALID_HANDLER:HU,FST_ERR_ROUTE_OPTIONS_NOT_OBJ:Ide,FST_ERR_ROUTE_DUPLICATED_HANDLER:kde,FST_ERR_ROUTE_HANDLER_NOT_FN:VU,FST_ERR_ROUTE_MISSING_HANDLER:Dde,FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:Pde,FST_ERR_ROUTE_METHOD_INVALID:Lde,FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:Fde,FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:jde,FST_ERR_HOOK_INVALID_ASYNC_HANDLER:s_}=Li(),{kRoutePrefix:Ude,kLogLevel:Mde,kLogSerializers:qU,kHooks:zU,kSchemaController:$de,kOptions:GU,kReplySerializerDefault:a_,kReplyIsError:Bde,kRequestPayloadStream:Hde,kDisableRequestLogging:Vde,kSchemaErrorFormatter:qde,kErrorHandler:JU,kHasBeenDecorated:KU,kRequestAcceptVersion:o_,kRouteByFastify:u_,kRouteContext:XU}=pi(),{buildErrorHandler:zde}=B4(),{createChildLogger:Gde}=o4(),{getGenReqId:Jde}=G9();function Kde(t){let e=dde(t.config),n,r,i,l,s,a,o,u,c,f,m,d,y,_=!1;return{setup(R,U){n=U.avvio,r=U.fourOhFour,i=U.logger,l=U.hasLogger,s=U.setupResponseListeners,a=U.throwIfAlreadyStarted,d=U.validateHTTPVersion,m=R.exposeHeadRoutes,o=R.disableRequestLogging,u=R.ignoreTrailingSlash,c=R.ignoreDuplicateSlashes,f=Object.prototype.hasOwnProperty.call(R,"return503OnClosing")?R.return503OnClosing:!0,y=U.keepAliveConnections},routing:e.lookup.bind(e),route:O,hasRoute:v,prepareRoute:g,getDefaultRoute:function(){return BU(),e.defaultRoute},setDefaultRoute:function(R){if(BU(),typeof R!="function")throw new Nde;e.defaultRoute=R},routeHandler:N,closeRoutes:()=>{_=!0},printRoutes:e.prettyPrint.bind(e),addConstraintStrategy:S,hasConstraintStrategy:w,isAsyncConstraint:E,findRoute:x};function S(R){return a("Cannot add constraint strategy!"),e.addConstraintStrategy(R)}function w(R){return e.hasConstraintStrategy(R)}function E(){return e.constrainer.asyncStrategiesInUse.size>0}function g({method:R,url:U,options:F,handler:te,isFastify:Q}){if(typeof U!="string")throw new Rde(typeof U);if(!te&&typeof F=="function")te=F,F={};else if(te&&typeof te=="function"){if(Object.prototype.toString.call(F)!=="[object Object]")throw new Ide(R,U);if(F.handler)throw typeof F.handler=="function"?new kde(R,U):new VU(R,U)}return F=Object.assign({},F,{method:R,url:U,path:U,handler:te||F&&F.handler}),O.call(this,{options:F,isFastify:Q})}function v({options:R}){return x(R)!==null}function x(R){let U=e.find(R.method,R.url||"",R.constraints);return U?{handler:U.handler,params:U.params,searchParams:U.searchParams}:null}function O({options:R,isFastify:U}){let F={...R},{exposeHeadRoute:te}=F,W=te!=null?te:m,ce=F.method==="GET"||Array.isArray(F.method)&&F.method.includes("GET"),we=F.method==="HEAD"||Array.isArray(F.method)&&F.method.includes("HEAD"),se=W&&ce?{...R}:null;a("Cannot add route!");let ee=F.url||F.path||"";if(Array.isArray(F.method))for(var me=0;me0&&F.method!=="HEAD")switch(F.prefixTrailingSlash){case"slash":G.call(this,{path:ee,isFastify:U});break;case"no-slash":G.call(this,{path:"",isFastify:U});break;case"both":default:G.call(this,{path:"",isFastify:U}),u!==!0&&(c!==!0||!P.endsWith("/"))&&G.call(this,{path:ee,prefixing:!0,isFastify:U})}else ee[0]==="/"&&P.endsWith("/")?G.call(this,{path:ee.slice(1),isFastify:U}):G.call(this,{path:ee,isFastify:U});return this;function G({path:V,prefixing:q=!1,isFastify:Qn=!1}){let Tt=P+V;if(F.url=Tt,F.path=Tt,F.routePath=V,F.prefix=P,F.logLevel=F.logLevel||this[Mde],(this[qU]||F.logSerializers)&&(F.logSerializers=Object.assign(Object.create(this[qU]),F.logSerializers)),F.attachValidation==null&&(F.attachValidation=!1),q===!1)for(let gt of this[zU].onRoute)gt.call(this,F);for(let gt of $U)if(F&> in F){if(Array.isArray(F[gt]))for(let Et of F[gt]){if(typeof Et!="function")throw new HU(gt,Object.prototype.toString.call(Et));if(gt==="onSend"||gt==="preSerialization"||gt==="onError"||gt==="preParsing"){if(Et.constructor.name==="AsyncFunction"&&Et.length===4)throw new s_}else if(gt==="onRequestAbort"){if(Et.constructor.name==="AsyncFunction"&&Et.length!==1)throw new s_}else if(Et.constructor.name==="AsyncFunction"&&Et.length===3)throw new s_}else if(F[gt]!==void 0&&typeof F[gt]!="function")throw new HU(gt,Object.prototype.toString.call(F[gt]))}let Qe=F.constraints||{},pt={...F.config,url:Tt,method:F.method},qe=new hde({schema:F.schema,handler:F.handler.bind(this),config:pt,errorHandler:F.errorHandler,childLoggerFactory:F.childLoggerFactory,bodyLimit:F.bodyLimit,logLevel:F.logLevel,logSerializers:F.logSerializers,attachValidation:F.attachValidation,schemaErrorFormatter:F.schemaErrorFormatter,replySerializer:this[a_],validatorCompiler:F.validatorCompiler,serializerCompiler:F.serializerCompiler,exposeHeadRoute:W,prefixTrailingSlash:F.prefixTrailingSlash||"both",server:this,isFastify:Qn});F.version&&(Sde(),Qe.version=F.version);let Ue=e.findRoute("HEAD",F.url,Qe),$t=Ue!==null;we&&$t&&!qe[u_]&&Ue.store[u_]&&e.off("HEAD",F.url,Qe);try{e.on(F.method,F.url,{constraints:Qe},N,qe)}catch(gt){if(!qe[u_])throw gt.message.includes(`Method '${F.method}' already declared for route '${F.url}'`)?new Cde(F.method,F.url):gt}if(this.after((gt,Et)=>{qe.errorHandler=F.errorHandler?zde(this[JU],F.errorHandler):this[JU],qe._parserOptions.limit=F.bodyLimit||null,qe.logLevel=F.logLevel,qe.logSerializers=F.logSerializers,qe.attachValidation=F.attachValidation,qe[a_]=this[a_],qe.schemaErrorFormatter=F.schemaErrorFormatter||this[qde]||qe.schemaErrorFormatter,n.once("preReady",()=>{for(let ie of $U){let ve=this[zU][ie].concat(F[ie]||[]).map(Se=>Se.bind(this));qe[ie]=ve.length?ve:null}for(;!qe.Request[KU]&&qe.Request.parent;)qe.Request=qe.Request.parent;for(;!qe.Reply[KU]&&qe.Reply.parent;)qe.Reply=qe.Reply.parent;if(r.setContext(this,qe),F.schema){qe.schema=Ede(qe.schema,this.initialConfig);let ie=this[$de];!F.validatorCompiler&&(F.schema.body||F.schema.headers||F.schema.querystring||F.schema.params)&&ie.setupValidator(this[GU]);try{let ve=typeof F?.validatorCompiler=="function"||ie.isCustomValidatorCompiler;Tde(qe,F.validatorCompiler||ie.validatorCompiler,ve)}catch(ve){throw new Ade(F.method,Tt,ve.message)}F.schema.response&&!F.serializerCompiler&&ie.setupSerializer(this[GU]);try{xde(qe,F.serializerCompiler||ie.serializerCompiler)}catch(ve){throw new Ode(F.method,Tt,ve.message)}}}),Et(gt)}),W&&ce&&!we&&!$t){let gt=bde(se.onSend);g.call(this,{method:"HEAD",url:V,options:{...se,onSend:gt},isFastify:!0})}else $t&&te&&wde()}}function N(R,U,F,te,Q){let W=Jde(te.server,R),ce={level:te.logLevel};te.logSerializers&&(ce.serializers=te.logSerializers);let we=Gde(te,i,R,W,ce);if(we[Vde]=o,!d(R.httpVersion)){we.info({res:{statusCode:505}},"request aborted - invalid HTTP version");let P='{"error":"HTTP Version Not Supported","message":"HTTP Version Not Supported","statusCode":505}',G={"Content-Type":"application/json","Content-Length":P.length};U.writeHead(505,G),U.end(P);return}if(_===!0&&(R.httpVersionMajor!==2&&U.setHeader("Connection","close"),f)){let P={"Content-Type":"application/json","Content-Length":"80"};U.writeHead(503,P),U.end('{"error":"Service Unavailable","message":"Service Unavailable","statusCode":503}'),we.info({res:{statusCode:503}},"request aborted - refusing to accept new requests as server is closing");return}String.prototype.toLowerCase.call(R.headers.connection||"")==="keep-alive"&&y.has(R.socket)===!1&&(y.add(R.socket),R.socket.on("close",Yde.bind({keepAliveConnections:y,socket:R.socket}))),R.headers[o_]!==void 0&&(R.headers["accept-version"]=R.headers[o_],R.headers[o_]=void 0);let ee=new te.Request(W,F,R,Q,we,te),me=new te.Reply(U,ee,we);o===!1&&we.info({req:ee},"incoming request"),(l===!0||te.onResponse!==null)&&s(me),te.onRequest!==null?vde(te.onRequest,ee,me,QU):QU(null,ee,me),te.onRequestAbort!==null&&R.on("close",()=>{R.aborted&&mde(te.onRequestAbort,ee,Xde.bind(null,me))}),te.onTimeout!==null&&(ee.raw.socket._meta||ee.raw.socket.on("timeout",Wde),ee.raw.socket._meta={context:te,request:ee,reply:me})}}function Xde(t,e){e&&t.log.error({err:e},"onRequestAborted hook failed")}function Wde(){let{context:t,request:e,reply:n}=this._meta;gde(t.onTimeout,e,n,Qde)}function WU(t){if(typeof t!="string")throw new Lde;if(t=t.toUpperCase(),_de.indexOf(t)===-1)throw new Pde(t);return t}function YU(t,e,n){if((t==="GET"||t==="HEAD")&&n&&n.body)throw new Fde(t,e)}function ZU(t){if(t!==void 0&&(!Number.isInteger(t)||t<=0))throw new jde(t)}function QU(t,e,n){if(n.sent!==!0){if(t!=null){n[Bde]=!0,n.send(t);return}e[Hde]=e.raw,e[XU].preParsing!==null?yde(e[XU].preParsing,e,n,MU):MU(null,e,n)}}function Yde(){this.keepAliveConnections.delete(this.socket)}function Qde(){}eM.exports={buildRouting:Kde,validateBodyLimitOption:ZU}});var oM=k((pke,aM)=>{"use strict";var Zde=i_(),nM=u9(),rM=x9(),ehe=A9(),{kRoutePrefix:the,kCanSetNotFoundHandler:Ec,kFourOhFourLevelInstance:bc,kFourOhFourContext:ia,kHooks:nhe,kErrorHandler:iM}=pi(),{lifecycleHooks:rhe}=h2(),{buildErrorHandler:ihe}=B4(),{FST_ERR_NOT_FOUND:lhe}=Li(),{createChildLogger:lM}=o4(),{getGenReqId:sM}=G9();function she(t){let{logger:e}=t,n=Zde({onBadUrl:s(),defaultRoute:c}),r=null;return{router:n,setNotFoundHandler:o,setContext:a,arrange404:i};function i(f){f[bc]=f,f[Ec]=!0,n.onBadUrl=n.onBadUrl.bind(f),n.defaultRoute=n.defaultRoute.bind(f)}function l(f,m){let{url:d,method:y}=f.raw,_=`Route ${y}:${d} not found`;f.log.info(_),m.code(404).send({message:_,error:"Not Found",statusCode:404})}function s(){return function(m,d,y){let _=this[bc][ia],S=sM(_.server,d),w=lM(_,e,d,S),E=new rM(S,null,d,null,w,_),g=new nM(y,E,w);r(E,g)}}function a(f,m){let d=Object.assign({},f[ia]);d.onSend=m.onSend,m[ia]=d}function o(f,m,d,y){this[Ec]===void 0&&(this[Ec]=!0),this[ia]===void 0&&(this[ia]=null);let _=this,S=this[the]||"/";if(this[Ec]===!1)throw new Error(`Not found handler already set for Fastify instance with prefix: '${S}'`);typeof f=="object"&&(f.preHandler&&(Array.isArray(f.preHandler)?f.preHandler=f.preHandler.map(w=>w.bind(_)):f.preHandler=f.preHandler.bind(_)),f.preValidation&&(Array.isArray(f.preValidation)?f.preValidation=f.preValidation.map(w=>w.bind(_)):f.preValidation=f.preValidation.bind(_))),typeof f=="function"&&(m=f,f=void 0),f=f||{},m?(this[bc][Ec]=!1,m=m.bind(this),r=m):(m=l,r=l),this.after((w,E)=>{u.call(this,S,f,m,d,y),E(w)})}function u(f,m,d,y,_){let S=new ehe({schema:m.schema,handler:d,config:m.config||{},server:this});if(y.once("preReady",()=>{let w=this[ia];for(let E of rhe){let g=this[nhe][E].concat(m[E]||[]).map(v=>v.bind(this));w[E]=g.length?g:null}w.errorHandler=m.errorHandler?ihe(this[iM],m.errorHandler):this[iM]}),this[ia]!==null&&f==="/"){Object.assign(this[ia],S);return}this[bc][ia]=S,n.all(f+(f.endsWith("/")?"*":"/*"),_,S),n.all(f,_,S)}function c(f,m){let d=this[bc][ia],y=sM(d.server,f),_=lM(d,e,f,y);_.info({req:f},"incoming request");let S=new rM(y,null,f,null,_,d),w=new nM(m,S,_);S.log.warn("the default handler for 404 did not catch this, this is likely a fastify bug, please report it"),S.log.warn(n.prettyPrint()),w.code(404).send(new lhe)}}aM.exports=she});var cM=k((fke,i7)=>{"use strict";i7.exports=nn;i7.exports.default=nn;var uM={type:"object",additionalProperties:!1,properties:{connectionTimeout:{type:"integer",default:0},keepAliveTimeout:{type:"integer",default:72e3},forceCloseConnections:{oneOf:[{type:"string",pattern:"idle"},{type:"boolean"}]},maxRequestsPerSocket:{type:"integer",default:0,nullable:!0},requestTimeout:{type:"integer",default:0},bodyLimit:{type:"integer",default:1048576},caseSensitive:{type:"boolean",default:!0},allowUnsafeRegex:{type:"boolean",default:!1},http2:{type:"boolean"},https:{if:{not:{oneOf:[{type:"boolean"},{type:"null"},{type:"object",additionalProperties:!1,required:["allowHTTP1"],properties:{allowHTTP1:{type:"boolean"}}}]}},then:{setDefaultValue:!0}},ignoreTrailingSlash:{type:"boolean",default:!1},ignoreDuplicateSlashes:{type:"boolean",default:!1},disableRequestLogging:{type:"boolean",default:!1},jsonShorthand:{type:"boolean",default:!0},maxParamLength:{type:"integer",default:100},onProtoPoisoning:{type:"string",default:"error"},onConstructorPoisoning:{type:"string",default:"error"},pluginTimeout:{type:"integer",default:1e4},requestIdHeader:{anyOf:[{enum:[!1]},{type:"string"}],default:"request-id"},requestIdLogLabel:{type:"string",default:"reqId"},http2SessionTimeout:{type:"integer",default:72e3},exposeHeadRoutes:{type:"boolean",default:!0},useSemicolonDelimiter:{type:"boolean",default:!0},versioning:{type:"object",additionalProperties:!0,required:["storage","deriveVersion"],properties:{storage:{},deriveVersion:{}}},constraints:{type:"object",additionalProperties:{type:"object",required:["name","storage","validate","deriveConstraint"],additionalProperties:!0,properties:{name:{type:"string"},storage:{},validate:{},deriveConstraint:{}}}}}},ahe=Object.prototype.hasOwnProperty,ohe=new RegExp("idle","u");function nn(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:i=t}={}){let l=null,s=0;if(s===0)if(t&&typeof t=="object"&&!Array.isArray(t)){t.connectionTimeout===void 0&&(t.connectionTimeout=0),t.keepAliveTimeout===void 0&&(t.keepAliveTimeout=72e3),t.maxRequestsPerSocket===void 0&&(t.maxRequestsPerSocket=0),t.requestTimeout===void 0&&(t.requestTimeout=0),t.bodyLimit===void 0&&(t.bodyLimit=1048576),t.caseSensitive===void 0&&(t.caseSensitive=!0),t.allowUnsafeRegex===void 0&&(t.allowUnsafeRegex=!1),t.ignoreTrailingSlash===void 0&&(t.ignoreTrailingSlash=!1),t.ignoreDuplicateSlashes===void 0&&(t.ignoreDuplicateSlashes=!1),t.disableRequestLogging===void 0&&(t.disableRequestLogging=!1),t.jsonShorthand===void 0&&(t.jsonShorthand=!0),t.maxParamLength===void 0&&(t.maxParamLength=100),t.onProtoPoisoning===void 0&&(t.onProtoPoisoning="error"),t.onConstructorPoisoning===void 0&&(t.onConstructorPoisoning="error"),t.pluginTimeout===void 0&&(t.pluginTimeout=1e4),t.requestIdHeader===void 0&&(t.requestIdHeader="request-id"),t.requestIdLogLabel===void 0&&(t.requestIdLogLabel="reqId"),t.http2SessionTimeout===void 0&&(t.http2SessionTimeout=72e3),t.exposeHeadRoutes===void 0&&(t.exposeHeadRoutes=!0),t.useSemicolonDelimiter===void 0&&(t.useSemicolonDelimiter=!0);let y=s;for(let _ in t)ahe.call(uM.properties,_)||delete t[_];if(y===s){let _=t.connectionTimeout,S=s;if(!(typeof _=="number"&&!(_%1)&&!isNaN(_)&&isFinite(_))){let w=typeof _,E;if(E===void 0)if(w==="boolean"||_===null||w==="string"&&_&&_==+_&&!(_%1))E=+_;else return nn.errors=[{instancePath:e+"/connectionTimeout",schemaPath:"#/properties/connectionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;E!==void 0&&(_=E,t!==void 0&&(t.connectionTimeout=E))}var a=S===s;if(a){let w=t.keepAliveTimeout,E=s;if(!(typeof w=="number"&&!(w%1)&&!isNaN(w)&&isFinite(w))){let v=typeof w,x;if(x===void 0)if(v==="boolean"||w===null||v==="string"&&w&&w==+w&&!(w%1))x=+w;else return nn.errors=[{instancePath:e+"/keepAliveTimeout",schemaPath:"#/properties/keepAliveTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;x!==void 0&&(w=x,t!==void 0&&(t.keepAliveTimeout=x))}var a=E===s;if(a){if(t.forceCloseConnections!==void 0){let v=t.forceCloseConnections,x=s,O=s,N=!1,R=null,U=s;if(typeof v!="string"){let Q=typeof v,W;if(W===void 0)if(Q=="number"||Q=="boolean")W=""+v;else if(v===null)W="";else{let ce={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[ce]:l.push(ce),s++}W!==void 0&&(v=W,t!==void 0&&(t.forceCloseConnections=W))}if(s===U&&typeof v=="string"&&!ohe.test(v)){let Q={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/pattern",keyword:"pattern",params:{pattern:"idle"},message:'must match pattern "idle"'};l===null?l=[Q]:l.push(Q),s++}var o=U===s;o&&(N=!0,R=0);let F=s;if(typeof v!="boolean"){let Q;if(Q===void 0)if(v==="false"||v===0||v===null)Q=!1;else if(v==="true"||v===1)Q=!0;else{let W={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/1/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};l===null?l=[W]:l.push(W),s++}Q!==void 0&&(v=Q,t!==void 0&&(t.forceCloseConnections=Q))}var o=F===s;if(o&&N?(N=!1,R=[R,1]):o&&(N=!0,R=1),N)s=O,l!==null&&(O?l.length=O:l=null);else{let Q={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf",keyword:"oneOf",params:{passingSchemas:R},message:"must match exactly one schema in oneOf"};return l===null?l=[Q]:l.push(Q),s++,nn.errors=l,!1}var a=x===s}else var a=!0;if(a){let v=t.maxRequestsPerSocket,x=s;if(!(typeof v=="number"&&!(v%1)&&!isNaN(v)&&isFinite(v))&&v!==null){let N=typeof v,R;if(R===void 0)if(N==="boolean"||v===null||N==="string"&&v&&v==+v&&!(v%1))R=+v;else if(v===""||v===0||v===!1)R=null;else return nn.errors=[{instancePath:e+"/maxRequestsPerSocket",schemaPath:"#/properties/maxRequestsPerSocket/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;R!==void 0&&(v=R,t!==void 0&&(t.maxRequestsPerSocket=R))}var a=x===s;if(a){let N=t.requestTimeout,R=s;if(!(typeof N=="number"&&!(N%1)&&!isNaN(N)&&isFinite(N))){let F=typeof N,te;if(te===void 0)if(F==="boolean"||N===null||F==="string"&&N&&N==+N&&!(N%1))te=+N;else return nn.errors=[{instancePath:e+"/requestTimeout",schemaPath:"#/properties/requestTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;te!==void 0&&(N=te,t!==void 0&&(t.requestTimeout=te))}var a=R===s;if(a){let F=t.bodyLimit,te=s;if(!(typeof F=="number"&&!(F%1)&&!isNaN(F)&&isFinite(F))){let W=typeof F,ce;if(ce===void 0)if(W==="boolean"||F===null||W==="string"&&F&&F==+F&&!(F%1))ce=+F;else return nn.errors=[{instancePath:e+"/bodyLimit",schemaPath:"#/properties/bodyLimit/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;ce!==void 0&&(F=ce,t!==void 0&&(t.bodyLimit=ce))}var a=te===s;if(a){let W=t.caseSensitive,ce=s;if(typeof W!="boolean"){let se;if(se===void 0)if(W==="false"||W===0||W===null)se=!1;else if(W==="true"||W===1)se=!0;else return nn.errors=[{instancePath:e+"/caseSensitive",schemaPath:"#/properties/caseSensitive/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;se!==void 0&&(W=se,t!==void 0&&(t.caseSensitive=se))}var a=ce===s;if(a){let se=t.allowUnsafeRegex,ee=s;if(typeof se!="boolean"){let P;if(P===void 0)if(se==="false"||se===0||se===null)P=!1;else if(se==="true"||se===1)P=!0;else return nn.errors=[{instancePath:e+"/allowUnsafeRegex",schemaPath:"#/properties/allowUnsafeRegex/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;P!==void 0&&(se=P,t!==void 0&&(t.allowUnsafeRegex=P))}var a=ee===s;if(a){if(t.http2!==void 0){let P=t.http2,G=s;if(typeof P!="boolean"){let q;if(q===void 0)if(P==="false"||P===0||P===null)q=!1;else if(P==="true"||P===1)q=!0;else return nn.errors=[{instancePath:e+"/http2",schemaPath:"#/properties/http2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;q!==void 0&&(P=q,t!==void 0&&(t.http2=q))}var a=G===s}else var a=!0;if(a){if(t.https!==void 0){let P=t.https,G=s,V=s,q=!0,Qn=s,Tt=s,Qe=s,pt=s,qe=!1,Ue=null,$t=s;if(typeof P!="boolean"){let ie;if(ie===void 0)if(P==="false"||P===0||P===null)ie=!1;else if(P==="true"||P===1)ie=!0;else{let ve={};l===null?l=[ve]:l.push(ve),s++}ie!==void 0&&(P=ie,t!==void 0&&(t.https=ie))}var u=$t===s;u&&(qe=!0,Ue=0);let gt=s;if(P!==null){let ie;if(ie===void 0)if(P===""||P===0||P===!1)ie=null;else{let ve={};l===null?l=[ve]:l.push(ve),s++}ie!==void 0&&(P=ie,t!==void 0&&(t.https=ie))}var u=gt===s;if(u&&qe)qe=!1,Ue=[Ue,1];else{u&&(qe=!0,Ue=1);let ie=s;if(s===ie)if(P&&typeof P=="object"&&!Array.isArray(P)){let Se;if(P.allowHTTP1===void 0&&(Se="allowHTTP1")){let Xe={};l===null?l=[Xe]:l.push(Xe),s++}else{let Xe=s;for(let ft in P)ft!=="allowHTTP1"&&delete P[ft];if(Xe===s&&P.allowHTTP1!==void 0){let ft=P.allowHTTP1;if(typeof ft!="boolean"){let Pe;if(Pe===void 0)if(ft==="false"||ft===0||ft===null)Pe=!1;else if(ft==="true"||ft===1)Pe=!0;else{let Lt={};l===null?l=[Lt]:l.push(Lt),s++}Pe!==void 0&&(ft=Pe,P!==void 0&&(P.allowHTTP1=Pe))}}}}else{let Se={};l===null?l=[Se]:l.push(Se),s++}var u=ie===s;u&&qe?(qe=!1,Ue=[Ue,2]):u&&(qe=!0,Ue=2)}if(qe)s=pt,l!==null&&(pt?l.length=pt:l=null);else{let ie={};l===null?l=[ie]:l.push(ie),s++}var c=Qe===s;if(c){let ie={};l===null?l=[ie]:l.push(ie),s++}else s=Tt,l!==null&&(Tt?l.length=Tt:l=null);var f=Qn===s;if(s=V,l!==null&&(V?l.length=V:l=null),f){let ie=s;t.https=!0;var f=ie===s;q=f}if(!q){let ie={instancePath:e+"/https",schemaPath:"#/properties/https/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};return l===null?l=[ie]:l.push(ie),s++,nn.errors=l,!1}var a=G===s}else var a=!0;if(a){let P=t.ignoreTrailingSlash,G=s;if(typeof P!="boolean"){let q;if(q===void 0)if(P==="false"||P===0||P===null)q=!1;else if(P==="true"||P===1)q=!0;else return nn.errors=[{instancePath:e+"/ignoreTrailingSlash",schemaPath:"#/properties/ignoreTrailingSlash/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;q!==void 0&&(P=q,t!==void 0&&(t.ignoreTrailingSlash=q))}var a=G===s;if(a){let q=t.ignoreDuplicateSlashes,Qn=s;if(typeof q!="boolean"){let Qe;if(Qe===void 0)if(q==="false"||q===0||q===null)Qe=!1;else if(q==="true"||q===1)Qe=!0;else return nn.errors=[{instancePath:e+"/ignoreDuplicateSlashes",schemaPath:"#/properties/ignoreDuplicateSlashes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Qe!==void 0&&(q=Qe,t!==void 0&&(t.ignoreDuplicateSlashes=Qe))}var a=Qn===s;if(a){let Qe=t.disableRequestLogging,pt=s;if(typeof Qe!="boolean"){let Ue;if(Ue===void 0)if(Qe==="false"||Qe===0||Qe===null)Ue=!1;else if(Qe==="true"||Qe===1)Ue=!0;else return nn.errors=[{instancePath:e+"/disableRequestLogging",schemaPath:"#/properties/disableRequestLogging/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Ue!==void 0&&(Qe=Ue,t!==void 0&&(t.disableRequestLogging=Ue))}var a=pt===s;if(a){let Ue=t.jsonShorthand,$t=s;if(typeof Ue!="boolean"){let Et;if(Et===void 0)if(Ue==="false"||Ue===0||Ue===null)Et=!1;else if(Ue==="true"||Ue===1)Et=!0;else return nn.errors=[{instancePath:e+"/jsonShorthand",schemaPath:"#/properties/jsonShorthand/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Et!==void 0&&(Ue=Et,t!==void 0&&(t.jsonShorthand=Et))}var a=$t===s;if(a){let Et=t.maxParamLength,ie=s;if(!(typeof Et=="number"&&!(Et%1)&&!isNaN(Et)&&isFinite(Et))){let Se=typeof Et,Xe;if(Xe===void 0)if(Se==="boolean"||Et===null||Se==="string"&&Et&&Et==+Et&&!(Et%1))Xe=+Et;else return nn.errors=[{instancePath:e+"/maxParamLength",schemaPath:"#/properties/maxParamLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;Xe!==void 0&&(Et=Xe,t!==void 0&&(t.maxParamLength=Xe))}var a=ie===s;if(a){let Se=t.onProtoPoisoning,Xe=s;if(typeof Se!="string"){let Pe=typeof Se,Lt;if(Lt===void 0)if(Pe=="number"||Pe=="boolean")Lt=""+Se;else if(Se===null)Lt="";else return nn.errors=[{instancePath:e+"/onProtoPoisoning",schemaPath:"#/properties/onProtoPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Lt!==void 0&&(Se=Lt,t!==void 0&&(t.onProtoPoisoning=Lt))}var a=Xe===s;if(a){let Pe=t.onConstructorPoisoning,Lt=s;if(typeof Pe!="string"){let Ft=typeof Pe,Zt;if(Zt===void 0)if(Ft=="number"||Ft=="boolean")Zt=""+Pe;else if(Pe===null)Zt="";else return nn.errors=[{instancePath:e+"/onConstructorPoisoning",schemaPath:"#/properties/onConstructorPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Zt!==void 0&&(Pe=Zt,t!==void 0&&(t.onConstructorPoisoning=Zt))}var a=Lt===s;if(a){let Ft=t.pluginTimeout,Zt=s;if(!(typeof Ft=="number"&&!(Ft%1)&&!isNaN(Ft)&&isFinite(Ft))){let fr=typeof Ft,ii;if(ii===void 0)if(fr==="boolean"||Ft===null||fr==="string"&&Ft&&Ft==+Ft&&!(Ft%1))ii=+Ft;else return nn.errors=[{instancePath:e+"/pluginTimeout",schemaPath:"#/properties/pluginTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;ii!==void 0&&(Ft=ii,t!==void 0&&(t.pluginTimeout=ii))}var a=Zt===s;if(a){let fr=t.requestIdHeader,ii=s,wr=s,vi=!1,Oi=s;if(fr!==!1){let Cr={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/0/enum",keyword:"enum",params:{allowedValues:uM.properties.requestIdHeader.anyOf[0].enum},message:"must be equal to one of the allowed values"};l===null?l=[Cr]:l.push(Cr),s++}var m=Oi===s;if(vi=vi||m,!vi){let Cr=s;if(typeof fr!="string"){let ks=typeof fr,Zn;if(Zn===void 0)if(ks=="number"||ks=="boolean")Zn=""+fr;else if(fr===null)Zn="";else{let Gi={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[Gi]:l.push(Gi),s++}Zn!==void 0&&(fr=Zn,t!==void 0&&(t.requestIdHeader=Zn))}var m=Cr===s;vi=vi||m}if(vi)s=wr,l!==null&&(wr?l.length=wr:l=null);else{let Cr={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return l===null?l=[Cr]:l.push(Cr),s++,nn.errors=l,!1}var a=ii===s;if(a){let Cr=t.requestIdLogLabel,_u=s;if(typeof Cr!="string"){let Zn=typeof Cr,Gi;if(Gi===void 0)if(Zn=="number"||Zn=="boolean")Gi=""+Cr;else if(Cr===null)Gi="";else return nn.errors=[{instancePath:e+"/requestIdLogLabel",schemaPath:"#/properties/requestIdLogLabel/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Gi!==void 0&&(Cr=Gi,t!==void 0&&(t.requestIdLogLabel=Gi))}var a=_u===s;if(a){let Zn=t.http2SessionTimeout,Gi=s;if(!(typeof Zn=="number"&&!(Zn%1)&&!isNaN(Zn)&&isFinite(Zn))){let li=typeof Zn,Br;if(Br===void 0)if(li==="boolean"||Zn===null||li==="string"&&Zn&&Zn==+Zn&&!(Zn%1))Br=+Zn;else return nn.errors=[{instancePath:e+"/http2SessionTimeout",schemaPath:"#/properties/http2SessionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;Br!==void 0&&(Zn=Br,t!==void 0&&(t.http2SessionTimeout=Br))}var a=Gi===s;if(a){let li=t.exposeHeadRoutes,Br=s;if(typeof li!="boolean"){let zr;if(zr===void 0)if(li==="false"||li===0||li===null)zr=!1;else if(li==="true"||li===1)zr=!0;else return nn.errors=[{instancePath:e+"/exposeHeadRoutes",schemaPath:"#/properties/exposeHeadRoutes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;zr!==void 0&&(li=zr,t!==void 0&&(t.exposeHeadRoutes=zr))}var a=Br===s;if(a){let zr=t.useSemicolonDelimiter,_a=s;if(typeof zr!="boolean"){let mr;if(mr===void 0)if(zr==="false"||zr===0||zr===null)mr=!1;else if(zr==="true"||zr===1)mr=!0;else return nn.errors=[{instancePath:e+"/useSemicolonDelimiter",schemaPath:"#/properties/useSemicolonDelimiter/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;mr!==void 0&&(zr=mr,t!==void 0&&(t.useSemicolonDelimiter=mr))}var a=_a===s;if(a){if(t.versioning!==void 0){let mr=t.versioning,Rr=s;if(s===Rr)if(mr&&typeof mr=="object"&&!Array.isArray(mr)){let Ni;if(mr.storage===void 0&&(Ni="storage")||mr.deriveVersion===void 0&&(Ni="deriveVersion"))return nn.errors=[{instancePath:e+"/versioning",schemaPath:"#/properties/versioning/required",keyword:"required",params:{missingProperty:Ni},message:"must have required property '"+Ni+"'"}],!1}else return nn.errors=[{instancePath:e+"/versioning",schemaPath:"#/properties/versioning/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=Rr===s}else var a=!0;if(a)if(t.constraints!==void 0){let mr=t.constraints,Rr=s;if(s===Rr)if(mr&&typeof mr=="object"&&!Array.isArray(mr))for(let Ni in mr){let _i=mr[Ni],as=s;if(s===as)if(_i&&typeof _i=="object"&&!Array.isArray(_i)){let Ol;if(_i.name===void 0&&(Ol="name")||_i.storage===void 0&&(Ol="storage")||_i.validate===void 0&&(Ol="validate")||_i.deriveConstraint===void 0&&(Ol="deriveConstraint"))return nn.errors=[{instancePath:e+"/constraints/"+Ni.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/required",keyword:"required",params:{missingProperty:Ol},message:"must have required property '"+Ol+"'"}],!1;if(_i.name!==void 0){let os=_i.name;if(typeof os!="string"){let Ps=typeof os,Ul;if(Ul===void 0)if(Ps=="number"||Ps=="boolean")Ul=""+os;else if(os===null)Ul="";else return nn.errors=[{instancePath:e+"/constraints/"+Ni.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/constraints/additionalProperties/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Ul!==void 0&&(os=Ul,_i!==void 0&&(_i.name=Ul))}}}else return nn.errors=[{instancePath:e+"/constraints/"+Ni.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=as===s;if(!d)break}else return nn.errors=[{instancePath:e+"/constraints",schemaPath:"#/properties/constraints/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=Rr===s}else var a=!0}}}}}}}}}}}}}}}}}}}}}}}}}else return nn.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return nn.errors=l,s===0}i7.exports.defaultInitOptions={connectionTimeout:0,keepAliveTimeout:72e3,maxRequestsPerSocket:0,requestTimeout:0,bodyLimit:1048576,caseSensitive:!0,allowUnsafeRegex:!1,disableRequestLogging:!1,jsonShorthand:!0,ignoreTrailingSlash:!1,ignoreDuplicateSlashes:!1,maxParamLength:100,onProtoPoisoning:"error",onConstructorPoisoning:"error",pluginTimeout:1e4,requestIdHeader:"request-id",requestIdLogLabel:"reqId",http2SessionTimeout:72e3,exposeHeadRoutes:!0,useSemicolonDelimiter:!0}});var pM=k((dke,s7)=>{"use strict";var l7=cM(),uhe=u4()({circles:!0,proto:!1}),{FST_ERR_INIT_OPTS_INVALID:che}=Li();function phe(t){let e=uhe(t);if(!l7(e)){let n=new che(JSON.stringify(l7.errors.map(r=>r.message)));throw n.errors=l7.errors,n}return c_(e)}function c_(t){let e=Object.getOwnPropertyNames(t);for(let n of e){let r=t[n];ArrayBuffer.isView(r)&&!(r instanceof DataView)||(t[n]=r&&typeof r=="object"?c_(r):r)}return Object.freeze(t)}s7.exports=phe;s7.exports.defaultInitOptions=l7.defaultInitOptions;s7.exports.utils={deepFreezeObject:c_}});var EM=k((hke,_M)=>{"use strict";var{kAvvioBoot:fhe,kChildren:fM,kRoutePrefix:dM,kLogLevel:hM,kLogSerializers:p_,kHooks:f_,kSchemaController:P1,kContentTypeParser:mM,kReply:yM,kRequest:gM,kFourOhFour:dhe,kPluginNameChain:vM}=pi(),hhe=u9(),mhe=x9(),yhe=Uv(),ghe=Gg(),{buildHooks:vhe}=h2(),wc=qv();_M.exports=function(e,n,r){let i=wc.registerPlugin.call(e,n),l=wc.getPluginName(n)||wc.getFuncPreview(n);if(i)return e[vM].push(l),e;let s=Object.create(e);e[fM].push(s),s.ready=e[fhe].bind(s),s[fM]=[],s[yM]=hhe.buildReply(s[yM]),s[gM]=mhe.buildRequest(s[gM]),s[mM]=ghe.helpers.buildContentTypeParser(s[mM]),s[f_]=vhe(s[f_]),s[dM]=_he(s[dM],r.prefix),s[hM]=r.logLevel||s[hM],s[P1]=yhe.buildSchemaController(e[P1]),s.getSchema=s[P1].getSchema.bind(s[P1]),s.getSchemas=s[P1].getSchemas.bind(s[P1]),s[wc.kRegisteredPlugins]=Object.create(s[wc.kRegisteredPlugins]),s[vM]=[l],(s[p_]||r.logSerializers)&&(s[p_]=Object.assign(Object.create(s[p_]),r.logSerializers)),r.prefix&&s[dhe].arrange404(s);for(let a of s[f_].onRegister)a.call(this,s,r);return s};function _he(t,e){return e?(t.endsWith("/")&&e[0]==="/"?e=e.slice(1):e[0]!=="/"&&(e="/"+e),t+e):t}});var wM=k((mke,bM)=>{"use strict";bM.exports=function(){return{[Symbol.iterator]:function*(){},add(){},delete(){},has(){return!0}}}});var SM=k(d_=>{"use strict";d_.parse=bhe;d_.serialize=whe;var Ehe=Object.prototype.toString,a7=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function bhe(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var n={},r=e||{},i=r.decode||She,l=0;l{"use strict";var{format:h_}=require("node:util");function m_(){let t={},e=new Map,n=Object.create(null);function r(s,a,o,{unlimited:u=!1}={}){if(!s)throw new Error("Warning name must not be empty");if(!a)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(a=a.toUpperCase(),t[a]!==void 0)throw new Error(`The code '${a}' already exist`);function c(f,m,d){let y;return f&&m&&d?y=h_(o,f,m,d):f&&m?y=h_(o,f,m):f?y=h_(o,f):y=o,{code:a,name:s,message:y}}return Object.assign(n,{unlimited:u}),e.set(a,u),t[a]=c,t[a]}function i(s,a,o={}){return r("DeprecationWarning",s,a,o)}function l(s,a,o,u){if(e.get(s)===!0&&n.unlimited===!1)return;if(t[s]===void 0)throw new Error(`The code '${s}' does not exist`);e.set(s,!0);let c=t[s](a,o,u);process.emitWarning(c.message,c.name,c.code)}return{create:r,createDeprecation:i,emit:l,emitted:e}}o7.exports=m_;o7.exports.default=m_;o7.exports.processWarning=m_});var OM=k((vke,AM)=>{"use strict";var{URL:xM}=require("node:url"),y_="http://localhost";AM.exports=function(e,n){(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]")&&e.startsWith("//")&&(e=y_+e);let r=typeof e=="object"?Object.assign(new xM(y_),e):new xM(e,y_);if(typeof n=="string"){n=new URLSearchParams(n);for(let i of n.keys()){r.searchParams.delete(i);for(let l of n.getAll(i))r.searchParams.append(i,l)}}else{let i=Object.assign({},e.query,n);for(let l in i){let s=i[l];if(Array.isArray(s)){r.searchParams.delete(l);for(let a of s)r.searchParams.append(l,a)}else r.searchParams.set(l,s)}}return r}});var IM=k((_ke,u7)=>{"use strict";var{Readable:NM,addAbortSignal:Ohe}=require("node:stream"),v_=require("node:util"),Nhe=SM(),Che=require("node:assert"),CM=TM()(),Rhe=OM(),{EventEmitter:Ihe}=require("node:events");CM.create("FastifyDeprecationLightMyRequest","FST_LIGHTMYREQUEST_DEP01",'You are accessing "request.connection", use "request.socket" instead.');function khe(t){return t.port?t.host:t.hostname+(t.protocol==="https:"?":443":":80")}var g_=class extends Ihe{constructor(e){super(),this.remoteAddress=e}};function RM(t){return new e(this);function e(n){la.call(n,{...t,Request:void 0}),Object.assign(this,n);for(let r of Object.keys(la.prototype))this.constructor.prototype[r]=la.prototype[r];return v_.inherits(this.constructor,t.Request),this}}function la(t){NM.call(this,{autoDestroy:!1});let e=Rhe(t.url||t.path,t.query);this.url=e.pathname+e.search,this.aborted=!1,this.httpVersionMajor=1,this.httpVersionMinor=1,this.httpVersion="1.1",this.method=t.method?t.method.toUpperCase():"GET",this.headers={},this.rawHeaders=[];let n=t.headers||{};for(let s in n){let a=s.toLowerCase();if((a==="user-agent"||a==="content-type")&&n[s]===void 0){this.headers[a]=void 0;continue}let o=n[s];Che(o!==void 0,'invalid value "undefined" for header '+s),this.headers[a]=""+o}if("user-agent"in this.headers||(this.headers["user-agent"]="lightMyRequest"),this.headers.host=this.headers.host||t.authority||khe(e),t.cookies){let{cookies:s}=t,a=Object.keys(s).map(o=>Nhe.serialize(o,s[o]));this.headers.cookie&&a.unshift(this.headers.cookie),this.headers.cookie=a.join("; ")}this.socket=new g_(t.remoteAddress||"127.0.0.1"),Object.defineProperty(this,"connection",{get(){return CM.emit("FST_LIGHTMYREQUEST_DEP01"),this.socket},configurable:!0});let r=t.payload||t.body||null,i=r&&typeof r.resume=="function";r&&typeof r!="string"&&!i&&!Buffer.isBuffer(r)&&(r=JSON.stringify(r),"content-type"in this.headers||(this.headers["content-type"]="application/json")),r&&!i&&!Object.prototype.hasOwnProperty.call(this.headers,"content-length")&&(this.headers["content-length"]=(Buffer.isBuffer(r)?r.length:Buffer.byteLength(r)).toString());for(let s of Object.keys(this.headers))this.rawHeaders.push(s,this.headers[s]);this._lightMyRequest={payload:r,isDone:!1,simulate:t.simulate||{}};let l=t.signal;return l&&Ohe(l,this),this}v_.inherits(la,NM);v_.inherits(RM,la);la.prototype.prepare=function(t){let e=this._lightMyRequest.payload;if(!e||typeof e.resume!="function")return t();let n=[];e.on("data",r=>n.push(Buffer.from(r))),e.on("end",()=>{let r=Buffer.concat(n);return this.headers["content-length"]=this.headers["content-length"]||""+r.length,this._lightMyRequest.payload=r,t()}),e.resume()};la.prototype._read=function(t){setImmediate(()=>{if(this._lightMyRequest.isDone){this._lightMyRequest.simulate.end!==!1&&this.push(null);return}this._lightMyRequest.isDone=!0,this._lightMyRequest.payload&&(this._lightMyRequest.simulate.split?(this.push(this._lightMyRequest.payload.slice(0,1)),this.push(this._lightMyRequest.payload.slice(1))):this.push(this._lightMyRequest.payload)),this._lightMyRequest.simulate.error&&this.emit("error",new Error("Simulated")),this._lightMyRequest.simulate.close&&this.emit("close"),this._lightMyRequest.simulate.end!==!1&&this.push(null)})};la.prototype.destroy=function(t){this.destroyed||this._lightMyRequest.isDone||(this.destroyed=!0,t&&(this._error=!0,process.nextTick(()=>this.emit("error",t))),process.nextTick(()=>this.emit("close")))};u7.exports=la;u7.exports.Request=la;u7.exports.CustomRequest=RM});var DM=k((Eke,Sc)=>{"use strict";var L1={decodeValues:!0,map:!1,silent:!1};function __(t){return typeof t=="string"&&!!t.trim()}function E_(t,e){var n=t.split(";").filter(__),r=n.shift(),i=Dhe(r),l=i.name,s=i.value;e=e?Object.assign({},L1,e):L1;try{s=e.decodeValues?decodeURIComponent(s):s}catch(o){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+s+"'. Set options.decodeValues to false to disable this feature.",o)}var a={name:l,value:s};return n.forEach(function(o){var u=o.split("="),c=u.shift().trimLeft().toLowerCase(),f=u.join("=");c==="expires"?a.expires=new Date(f):c==="max-age"?a.maxAge=parseInt(f,10):c==="secure"?a.secure=!0:c==="httponly"?a.httpOnly=!0:c==="samesite"?a.sameSite=f:a[c]=f}),a}function Dhe(t){var e="",n="",r=t.split("=");return r.length>1?(e=r.shift(),n=r.join("=")):n=t,{name:e,value:n}}function kM(t,e){if(e=e?Object.assign({},L1,e):L1,!t)return e.map?{}:[];if(t.headers)if(typeof t.headers.getSetCookie=="function")t=t.headers.getSetCookie();else if(t.headers["set-cookie"])t=t.headers["set-cookie"];else{var n=t.headers[Object.keys(t.headers).find(function(i){return i.toLowerCase()==="set-cookie"})];!n&&t.headers.cookie&&!e.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),t=n}if(Array.isArray(t)||(t=[t]),e=e?Object.assign({},L1,e):L1,e.map){var r={};return t.filter(__).reduce(function(i,l){var s=E_(l,e);return i[s.name]=s,i},r)}else return t.filter(__).map(function(i){return E_(i,e)})}function Phe(t){if(Array.isArray(t))return t;if(typeof t!="string")return[];var e=[],n=0,r,i,l,s,a;function o(){for(;n=t.length)&&e.push(t.substring(r,t.length))}return e}Sc.exports=kM;Sc.exports.parse=kM;Sc.exports.parseString=E_;Sc.exports.splitCookiesString=Phe});var FM=k((bke,LM)=>{"use strict";var Tc=require("node:http"),{Writable:Lhe}=require("node:stream"),Fhe=require("node:util"),jhe=DM();function F2(t,e,n){Tc.ServerResponse.call(this,t),this._lightMyRequest={headers:null,trailers:{},payloadChunks:[]},this.setHeader("foo","bar"),this.removeHeader("foo"),this.assignSocket(Mhe()),this._promiseCallback=typeof n=="function";let r=!1,i=s=>{if(r=!0,this._promiseCallback)return process.nextTick(()=>e(s));process.nextTick(()=>e(null,s))},l=s=>{if(!r){if(r=!0,this._promiseCallback)return process.nextTick(()=>n(s));process.nextTick(()=>e(s,null))}};this.once("finish",()=>{let s=Uhe(this);s.raw.req=t,i(s)}),this.connection.once("error",l),this.once("error",l),this.once("close",l)}Fhe.inherits(F2,Tc.ServerResponse);F2.prototype.setTimeout=function(t,e){return this.timeoutHandle=setTimeout(()=>{this.emit("timeout")},t),this.on("timeout",e),this};F2.prototype.writeHead=function(){let t=Tc.ServerResponse.prototype.writeHead.apply(this,arguments);return PM(this),t};F2.prototype.write=function(t,e,n){return this.timeoutHandle&&clearTimeout(this.timeoutHandle),Tc.ServerResponse.prototype.write.call(this,t,e,n),this._lightMyRequest.payloadChunks.push(Buffer.from(t,e)),!0};F2.prototype.end=function(t,e,n){t&&this.write(t,e),Tc.ServerResponse.prototype.end.call(this,n),this.emit("finish"),this.destroy()};F2.prototype.destroy=function(t){this.destroyed||(this.destroyed=!0,t&&process.nextTick(()=>this.emit("error",t)),process.nextTick(()=>this.emit("close")))};F2.prototype.addTrailers=function(t){for(let e in t)this._lightMyRequest.trailers[e.toLowerCase().trim()]=t[e].toString().trim()};function Uhe(t){t._lightMyRequest.headers===null&&PM(t),$he(t);let e={raw:{res:t},headers:t._lightMyRequest.headers,statusCode:t.statusCode,statusMessage:t.statusMessage,trailers:{},get cookies(){return jhe.parse(this)}},n=Buffer.concat(t._lightMyRequest.payloadChunks);return e.rawPayload=n,e.payload=n.toString(),e.body=e.payload,e.trailers=t._lightMyRequest.trailers,e.json=function(){return JSON.parse(e.payload)},e}function Mhe(){return new Lhe({write(t,e,n){setImmediate(n)}})}function $he(t){let e=t._lightMyRequest.headers;for(let n of Object.keys(e)){let r=e[n];Array.isArray(r)?e[n]=r.map(i=>""+i):e[n]=""+r}}function PM(t){t._lightMyRequest.headers=Object.assign({},t.getHeaders()),["Date","Connection","Transfer-Encoding"].forEach(e=>{let n=new RegExp("\\r\\n"+e+": ([^\\r]*)\\r\\n"),r=t._header.match(n);r&&(t._lightMyRequest.headers[e.toLowerCase()]=r[1])})}LM.exports=F2});var jM=k((wke,b_)=>{"use strict";b_.exports=Vr;b_.exports.default=Vr;var Bhe={type:"object",properties:{url:{oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},path:{oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},cookies:{type:"object",additionalProperties:!0},headers:{type:"object",additionalProperties:!0},query:{anyOf:[{type:"object",additionalProperties:!0},{type:"string"}]},simulate:{type:"object",properties:{end:{type:"boolean"},split:{type:"boolean"},error:{type:"boolean"},close:{type:"boolean"}}},authority:{type:"string"},remoteAddress:{type:"string"},method:{type:"string",enum:["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE","acl","bind","checkout","connect","copy","delete","get","head","link","lock","m-search","merge","mkactivity","mkcalendar","mkcol","move","notify","options","patch","post","propfind","proppatch","purge","put","rebind","report","search","source","subscribe","trace","unbind","unlink","unlock","unsubscribe"]},validate:{type:"boolean"}},additionalProperties:!0,oneOf:[{required:["url"]},{required:["path"]}]};function Vr(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:i=t}={}){let l=null,s=0,a=s,o=!1,u=null,c=s;if(t&&typeof t=="object"&&!Array.isArray(t)){let v;if(t.url===void 0&&(v="url")){let x={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"};l===null?l=[x]:l.push(x),s++}}var m=c===s;m&&(o=!0,u=0);let f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){let v;if(t.path===void 0&&(v="path")){let x={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"};l===null?l=[x]:l.push(x),s++}}var m=f===s;if(m&&o?(o=!1,u=[u,1]):m&&(o=!0,u=1),o)s=a,l!==null&&(a?l.length=a:l=null);else{let v={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};return l===null?l=[v]:l.push(v),s++,Vr.errors=l,!1}if(s===0)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.url!==void 0){let v=t.url,x=s,O=s,N=!1,R=null,U=s;if(typeof v!="string"){let te=typeof v,Q;if(Q===void 0)if(te=="number"||te=="boolean")Q=""+v;else if(v===null)Q="";else{let W={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[W]:l.push(W),s++}Q!==void 0&&(v=Q,t!==void 0&&(t.url=Q))}var y=U===s;y&&(N=!0,R=0);let F=s;if(s===F)if(v&&typeof v=="object"&&!Array.isArray(v)){let te;if(v.pathname===void 0&&(te="pathname")){let Q={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/1/required",keyword:"required",params:{missingProperty:te},message:"must have required property '"+te+"'"};l===null?l=[Q]:l.push(Q),s++}else{if(v.protocol!==void 0){let Q=v.protocol,W=s;if(typeof Q!="string"){let ce=typeof Q,we;if(we===void 0)if(ce=="number"||ce=="boolean")we=""+Q;else if(Q===null)we="";else{let se={instancePath:e+"/url/protocol",schemaPath:"#/properties/url/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[se]:l.push(se),s++}we!==void 0&&(Q=we,v!==void 0&&(v.protocol=we))}var d=W===s}else var d=!0;if(d){if(v.hostname!==void 0){let Q=v.hostname,W=s;if(typeof Q!="string"){let we=typeof Q,se;if(se===void 0)if(we=="number"||we=="boolean")se=""+Q;else if(Q===null)se="";else{let ee={instancePath:e+"/url/hostname",schemaPath:"#/properties/url/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[ee]:l.push(ee),s++}se!==void 0&&(Q=se,v!==void 0&&(v.hostname=se))}var d=W===s}else var d=!0;if(d)if(v.pathname!==void 0){let Q=v.pathname,W=s;if(typeof Q!="string"){let we=typeof Q,se;if(se===void 0)if(we=="number"||we=="boolean")se=""+Q;else if(Q===null)se="";else{let ee={instancePath:e+"/url/pathname",schemaPath:"#/properties/url/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[ee]:l.push(ee),s++}se!==void 0&&(Q=se,v!==void 0&&(v.pathname=se))}var d=W===s}else var d=!0}}}else{let te={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};l===null?l=[te]:l.push(te),s++}var y=F===s;if(y&&N?(N=!1,R=[R,1]):y&&(N=!0,R=1),N)s=O,l!==null&&(O?l.length=O:l=null);else{let te={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf",keyword:"oneOf",params:{passingSchemas:R},message:"must match exactly one schema in oneOf"};return l===null?l=[te]:l.push(te),s++,Vr.errors=l,!1}var _=x===s}else var _=!0;if(_){if(t.path!==void 0){let v=t.path,x=s,O=s,N=!1,R=null,U=s;if(typeof v!="string"){let Q=typeof v,W;if(W===void 0)if(Q=="number"||Q=="boolean")W=""+v;else if(v===null)W="";else{let ce={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[ce]:l.push(ce),s++}W!==void 0&&(v=W,t!==void 0&&(t.path=W))}var w=U===s;w&&(N=!0,R=0);let F=s;if(s===F)if(v&&typeof v=="object"&&!Array.isArray(v)){let Q;if(v.pathname===void 0&&(Q="pathname")){let W={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/1/required",keyword:"required",params:{missingProperty:Q},message:"must have required property '"+Q+"'"};l===null?l=[W]:l.push(W),s++}else{if(v.protocol!==void 0){let W=v.protocol,ce=s;if(typeof W!="string"){let we=typeof W,se;if(se===void 0)if(we=="number"||we=="boolean")se=""+W;else if(W===null)se="";else{let ee={instancePath:e+"/path/protocol",schemaPath:"#/properties/path/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[ee]:l.push(ee),s++}se!==void 0&&(W=se,v!==void 0&&(v.protocol=se))}var S=ce===s}else var S=!0;if(S){if(v.hostname!==void 0){let W=v.hostname,ce=s;if(typeof W!="string"){let se=typeof W,ee;if(ee===void 0)if(se=="number"||se=="boolean")ee=""+W;else if(W===null)ee="";else{let me={instancePath:e+"/path/hostname",schemaPath:"#/properties/path/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[me]:l.push(me),s++}ee!==void 0&&(W=ee,v!==void 0&&(v.hostname=ee))}var S=ce===s}else var S=!0;if(S)if(v.pathname!==void 0){let W=v.pathname,ce=s;if(typeof W!="string"){let se=typeof W,ee;if(ee===void 0)if(se=="number"||se=="boolean")ee=""+W;else if(W===null)ee="";else{let me={instancePath:e+"/path/pathname",schemaPath:"#/properties/path/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[me]:l.push(me),s++}ee!==void 0&&(W=ee,v!==void 0&&(v.pathname=ee))}var S=ce===s}else var S=!0}}}else{let Q={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};l===null?l=[Q]:l.push(Q),s++}var w=F===s;if(w&&N?(N=!1,R=[R,1]):w&&(N=!0,R=1),N)s=O,l!==null&&(O?l.length=O:l=null);else{let Q={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf",keyword:"oneOf",params:{passingSchemas:R},message:"must match exactly one schema in oneOf"};return l===null?l=[Q]:l.push(Q),s++,Vr.errors=l,!1}var _=x===s}else var _=!0;if(_){if(t.cookies!==void 0){let v=t.cookies,x=s;if(s===x&&!(v&&typeof v=="object"&&!Array.isArray(v)))return Vr.errors=[{instancePath:e+"/cookies",schemaPath:"#/properties/cookies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=x===s}else var _=!0;if(_){if(t.headers!==void 0){let v=t.headers,x=s;if(s===x&&!(v&&typeof v=="object"&&!Array.isArray(v)))return Vr.errors=[{instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=x===s}else var _=!0;if(_){if(t.query!==void 0){let v=t.query,x=s,O=s,N=!1,R=s;if(s===R&&!(v&&typeof v=="object"&&!Array.isArray(v))){let F={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};l===null?l=[F]:l.push(F),s++}var E=R===s;if(N=N||E,!N){let F=s;if(typeof v!="string"){let Q=typeof v,W;if(W===void 0)if(Q=="number"||Q=="boolean")W=""+v;else if(v===null)W="";else{let ce={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[ce]:l.push(ce),s++}W!==void 0&&(v=W,t!==void 0&&(t.query=W))}var E=F===s;N=N||E}if(N)s=O,l!==null&&(O?l.length=O:l=null);else{let F={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return l===null?l=[F]:l.push(F),s++,Vr.errors=l,!1}var _=x===s}else var _=!0;if(_){if(t.simulate!==void 0){let v=t.simulate,x=s;if(s===x)if(v&&typeof v=="object"&&!Array.isArray(v)){if(v.end!==void 0){let N=v.end,R=s;if(typeof N!="boolean"){let U;if(U===void 0)if(N==="false"||N===0||N===null)U=!1;else if(N==="true"||N===1)U=!0;else return Vr.errors=[{instancePath:e+"/simulate/end",schemaPath:"#/properties/simulate/properties/end/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;U!==void 0&&(N=U,v!==void 0&&(v.end=U))}var g=R===s}else var g=!0;if(g){if(v.split!==void 0){let N=v.split,R=s;if(typeof N!="boolean"){let F;if(F===void 0)if(N==="false"||N===0||N===null)F=!1;else if(N==="true"||N===1)F=!0;else return Vr.errors=[{instancePath:e+"/simulate/split",schemaPath:"#/properties/simulate/properties/split/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;F!==void 0&&(N=F,v!==void 0&&(v.split=F))}var g=R===s}else var g=!0;if(g){if(v.error!==void 0){let N=v.error,R=s;if(typeof N!="boolean"){let F;if(F===void 0)if(N==="false"||N===0||N===null)F=!1;else if(N==="true"||N===1)F=!0;else return Vr.errors=[{instancePath:e+"/simulate/error",schemaPath:"#/properties/simulate/properties/error/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;F!==void 0&&(N=F,v!==void 0&&(v.error=F))}var g=R===s}else var g=!0;if(g)if(v.close!==void 0){let N=v.close,R=s;if(typeof N!="boolean"){let F;if(F===void 0)if(N==="false"||N===0||N===null)F=!1;else if(N==="true"||N===1)F=!0;else return Vr.errors=[{instancePath:e+"/simulate/close",schemaPath:"#/properties/simulate/properties/close/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;F!==void 0&&(N=F,v!==void 0&&(v.close=F))}var g=R===s}else var g=!0}}}else return Vr.errors=[{instancePath:e+"/simulate",schemaPath:"#/properties/simulate/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=x===s}else var _=!0;if(_){if(t.authority!==void 0){let v=t.authority,x=s;if(typeof v!="string"){let N=typeof v,R;if(R===void 0)if(N=="number"||N=="boolean")R=""+v;else if(v===null)R="";else return Vr.errors=[{instancePath:e+"/authority",schemaPath:"#/properties/authority/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;R!==void 0&&(v=R,t!==void 0&&(t.authority=R))}var _=x===s}else var _=!0;if(_){if(t.remoteAddress!==void 0){let v=t.remoteAddress,x=s;if(typeof v!="string"){let N=typeof v,R;if(R===void 0)if(N=="number"||N=="boolean")R=""+v;else if(v===null)R="";else return Vr.errors=[{instancePath:e+"/remoteAddress",schemaPath:"#/properties/remoteAddress/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;R!==void 0&&(v=R,t!==void 0&&(t.remoteAddress=R))}var _=x===s}else var _=!0;if(_){if(t.method!==void 0){let v=t.method,x=s;if(typeof v!="string"){let N=typeof v,R;if(R===void 0)if(N=="number"||N=="boolean")R=""+v;else if(v===null)R="";else return Vr.errors=[{instancePath:e+"/method",schemaPath:"#/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;R!==void 0&&(v=R,t!==void 0&&(t.method=R))}if(!(v==="ACL"||v==="BIND"||v==="CHECKOUT"||v==="CONNECT"||v==="COPY"||v==="DELETE"||v==="GET"||v==="HEAD"||v==="LINK"||v==="LOCK"||v==="M-SEARCH"||v==="MERGE"||v==="MKACTIVITY"||v==="MKCALENDAR"||v==="MKCOL"||v==="MOVE"||v==="NOTIFY"||v==="OPTIONS"||v==="PATCH"||v==="POST"||v==="PROPFIND"||v==="PROPPATCH"||v==="PURGE"||v==="PUT"||v==="REBIND"||v==="REPORT"||v==="SEARCH"||v==="SOURCE"||v==="SUBSCRIBE"||v==="TRACE"||v==="UNBIND"||v==="UNLINK"||v==="UNLOCK"||v==="UNSUBSCRIBE"||v==="acl"||v==="bind"||v==="checkout"||v==="connect"||v==="copy"||v==="delete"||v==="get"||v==="head"||v==="link"||v==="lock"||v==="m-search"||v==="merge"||v==="mkactivity"||v==="mkcalendar"||v==="mkcol"||v==="move"||v==="notify"||v==="options"||v==="patch"||v==="post"||v==="propfind"||v==="proppatch"||v==="purge"||v==="put"||v==="rebind"||v==="report"||v==="search"||v==="source"||v==="subscribe"||v==="trace"||v==="unbind"||v==="unlink"||v==="unlock"||v==="unsubscribe"))return Vr.errors=[{instancePath:e+"/method",schemaPath:"#/properties/method/enum",keyword:"enum",params:{allowedValues:Bhe.properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var _=x===s}else var _=!0;if(_)if(t.validate!==void 0){let v=t.validate,x=s;if(typeof v!="boolean"){let N;if(N===void 0)if(v==="false"||v===0||v===null)N=!1;else if(v==="true"||v===1)N=!0;else return Vr.errors=[{instancePath:e+"/validate",schemaPath:"#/properties/validate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;N!==void 0&&(v=N,t!==void 0&&(t.validate=N))}var _=x===s}else var _=!0}}}}}}}}}else return Vr.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Vr.errors=l,s===0}});var $M=k((Ske,Ac)=>{"use strict";var Hhe=require("node:assert"),w_=IM(),c7=FM(),f7="The dispatch function has already been invoked",UM=jM();function S_(t,e,n){return typeof n>"u"?new xc(t,e):p7(t,e,n)}function MM(t,e,n,r){return n.once("error",function(i){this.destroyed&&r.destroy(i)}),n.once("close",function(){this.destroyed&&!this._error&&r.destroy()}),n.prepare(()=>t.call(e,n,r))}function p7(t,e,n){if(e=typeof e=="string"?{url:e}:e,e.validate!==!1&&(Hhe(typeof t=="function","dispatchFunc should be a function"),!UM(e)))throw new Error(UM.errors.map(s=>s.message));let r=e.server||{},i=e.Request?w_.CustomRequest:w_;if(t.request&&t.request.app===t&&(Object.setPrototypeOf(Object.getPrototypeOf(t.request),i.prototype),Object.setPrototypeOf(Object.getPrototypeOf(t.response),c7.prototype)),typeof n=="function"){let l=new i(e),s=new c7(l,n);return MM(t,r,l,s)}else return new Promise((l,s)=>{let a=new i(e),o=new c7(a,l,s);MM(t,r,a,o)})}function xc(t,e){typeof e=="string"?this.option={url:e}:this.option=Object.assign({},e),this.dispatch=t,this._hasInvoked=!1,this._promise=null,this.option.autoStart!==!1&&process.nextTick(()=>{this._hasInvoked||this.end()})}var Vhe=["delete","get","head","options","patch","post","put","trace"];Vhe.forEach(t=>{xc.prototype[t]=function(e){if(this._hasInvoked===!0||this._promise)throw new Error(f7);return this.option.url=e,this.option.method=t.toUpperCase(),this}});var qhe=["body","cookies","headers","payload","query"];qhe.forEach(t=>{xc.prototype[t]=function(e){if(this._hasInvoked===!0||this._promise)throw new Error(f7);return this.option[t]=e,this}});xc.prototype.end=function(t){if(this._hasInvoked===!0||this._promise)throw new Error(f7);if(this._hasInvoked=!0,typeof t=="function")p7(this.dispatch,this.option,t);else return this._promise=p7(this.dispatch,this.option),this._promise};Object.getOwnPropertyNames(Promise.prototype).forEach(t=>{t!=="constructor"&&(xc.prototype[t]=function(...e){if(!this._promise){if(this._hasInvoked===!0)throw new Error(f7);this._hasInvoked=!0,this._promise=p7(this.dispatch,this.option)}return this._promise[t](...e)})});function zhe(t){return t instanceof w_||t instanceof c7||t&&t.constructor&&t.constructor.name==="_CustomLMRRequest"}Ac.exports=S_;Ac.exports.default=S_;Ac.exports.inject=S_;Ac.exports.isInjection=zhe});var t$=k((Tke,y7)=>{"use strict";var Ghe="4.26.0",Jhe=KA(),T_=require("node:http"),Oc,{kAvvioBoot:Nc,kChildren:x_,kServerBindings:BM,kBodyLimit:Khe,kRoutePrefix:HM,kLogLevel:Xhe,kLogSerializers:Whe,kHooks:A_,kSchemaController:j2,kRequestAcceptVersion:Yhe,kReplySerializerDefault:VM,kContentTypeParser:Qhe,kReply:Zhe,kRequest:eme,kFourOhFour:tme,kState:Ur,kOptions:O_,kPluginNameChain:Cc,kSchemaErrorFormatter:N_,kErrorHandler:d7,kKeepAliveConnections:C_,kChildLoggerFactory:R_,kGenReqId:I_}=pi(),{createServer:nme,compileValidateHTTPVersion:rme}=_O(),Rc=u9(),h7=x9(),ime=A9(),{supportedMethods:lme}=kg(),F1=jg(),$o=Gg(),qM=Uv(),{Hooks:sme,hookRunnerApplication:zM,supportedHooks:k_}=h2(),{createLogger:ame,createChildLogger:GM,defaultChildLoggerFactory:ome}=o4(),JM=qv(),{getGenReqId:KM,reqIdGenFactory:XM}=G9(),{buildRouting:ume,validateBodyLimitOption:cme}=tM(),pme=oM(),e$=pM(),fme=EM(),{FSTDEP009:dme}=La(),hme=wM(),{appendStackTrace:mme,AVVIO_ERRORS_MAP:WM,...Bo}=Li(),{defaultInitOptions:yl}=e$,{FST_ERR_ASYNC_CONSTRAINT:yme,FST_ERR_BAD_URL:gme,FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:vme,FST_ERR_OPTIONS_NOT_OBJ:_me,FST_ERR_QSP_NOT_FN:Eme,FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:bme,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:wme,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:Sme,FST_ERR_VERSION_CONSTRAINT_NOT_STR:Tme,FST_ERR_INSTANCE_ALREADY_LISTENING:xme,FST_ERR_REOPENED_CLOSE_SERVER:Ame,FST_ERR_ROUTE_REWRITE_NOT_STR:Ome,FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:YM}=Bo,{buildErrorHandler:QM}=B4();function Nme(t){let e={};return["errorHandler","logLevel","logSerializers"].concat(k_).forEach(r=>{e[r]=t.store[r]}),Object.assign({},e)}function m7(t){if(t=t||{},typeof t!="object")throw new _me;if(t.querystringParser&&typeof t.querystringParser!="function")throw new Eme(typeof t.querystringParser);if(t.schemaController&&t.schemaController.bucket&&typeof t.schemaController.bucket!="function")throw new bme(typeof t.schemaController.bucket);cme(t.bodyLimit);let e=t.requestIdHeader===!1?!1:(t.requestIdHeader||yl.requestIdHeader).toLowerCase(),n=XM(e,t.genReqId),r=t.requestIdLogLabel||"reqId",i=t.bodyLimit||yl.bodyLimit,l=t.disableRequestLogging||!1,s=Object.assign({customOptions:{},plugins:[]},t.ajv),a=t.frameworkErrors;if(!s.customOptions||Object.prototype.toString.call(s.customOptions)!=="[object Object]")throw new wme(typeof s.customOptions);if(!s.plugins||!Array.isArray(s.plugins))throw new Sme(typeof s.plugins);let{logger:o,hasLogger:u}=ame(t);t.connectionTimeout=t.connectionTimeout||yl.connectionTimeout,t.keepAliveTimeout=t.keepAliveTimeout||yl.keepAliveTimeout,t.maxRequestsPerSocket=t.maxRequestsPerSocket||yl.maxRequestsPerSocket,t.requestTimeout=t.requestTimeout||yl.requestTimeout,t.logger=o,t.requestIdHeader=e,t.requestIdLogLabel=r,t.disableRequestLogging=l,t.ajv=s,t.clientErrorHandler=t.clientErrorHandler||ee;let c=e$(t);t.exposeHeadRoutes=c.exposeHeadRoutes;let f=t.constraints;t.versioning&&(dme(),f={...f,version:{name:"version",mustMatchWhenDerived:!0,storage:t.versioning.storage,deriveConstraint:t.versioning.deriveVersion,validate(ie){if(typeof ie!="string")throw new Tme}}});let m=ume({config:{defaultRoute:me,onBadUrl:P,constraints:f,ignoreTrailingSlash:t.ignoreTrailingSlash||yl.ignoreTrailingSlash,ignoreDuplicateSlashes:t.ignoreDuplicateSlashes||yl.ignoreDuplicateSlashes,maxParamLength:t.maxParamLength||yl.maxParamLength,caseSensitive:t.caseSensitive,allowUnsafeRegex:t.allowUnsafeRegex||yl.allowUnsafeRegex,buildPrettyMeta:Nme,querystringParser:t.querystringParser,useSemicolonDelimiter:t.useSemicolonDelimiter??yl.useSemicolonDelimiter}}),d=pme(t),y=gt(m,t);t.http2SessionTimeout=c.http2SessionTimeout;let{server:_,listen:S}=nme(t,y),w=typeof _.closeAllConnections=="function",E=typeof _.closeIdleConnections=="function",g=t.forceCloseConnections;if(g==="idle"&&!E)throw new vme;typeof g!="boolean"&&(g=E?"idle":!1);let v=!w&&g===!0?new Set:hme(),x=Rc.setupResponseListeners,O=qM.buildSchemaController(null,t.schemaController),N={[Ur]:{listening:!1,closing:!1,started:!1,ready:!1,booting:!1,readyPromise:null},[C_]:v,[O_]:t,[x_]:[],[BM]:[],[Khe]:i,[HM]:"",[Xhe]:"",[Whe]:null,[A_]:new sme,[j2]:O,[N_]:null,[d7]:QM(),[R_]:ome,[VM]:null,[Qhe]:new $o(i,t.onProtoPoisoning||yl.onProtoPoisoning,t.onConstructorPoisoning||yl.onConstructorPoisoning),[Zhe]:Rc.buildReply(Rc),[eme]:h7.buildRequest(h7,t.trustProxy),[tme]:d,[JM.kRegisteredPlugins]:[],[Cc]:["fastify"],[Nc]:null,[I_]:n,routing:y,getDefaultRoute:m.getDefaultRoute.bind(m),setDefaultRoute:m.setDefaultRoute.bind(m),delete:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"DELETE",url:ve,options:Se,handler:Xe})},get:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"GET",url:ve,options:Se,handler:Xe})},head:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"HEAD",url:ve,options:Se,handler:Xe})},patch:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"PATCH",url:ve,options:Se,handler:Xe})},post:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"POST",url:ve,options:Se,handler:Xe})},put:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"PUT",url:ve,options:Se,handler:Xe})},options:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"OPTIONS",url:ve,options:Se,handler:Xe})},all:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:lme,url:ve,options:Se,handler:Xe})},route:function(ve){return m.route.call(this,{options:ve})},hasRoute:function(ve){return m.hasRoute.call(this,{options:ve})},findRoute:function(ve){return m.findRoute(ve)},log:o,withTypeProvider:ce,addHook:we,addSchema:se,getSchema:O.getSchema.bind(O),getSchemas:O.getSchemas.bind(O),setValidatorCompiler:q,setSerializerCompiler:Tt,setSchemaController:Qe,setReplySerializer:pt,setSchemaErrorFormatter:Qn,setGenReqId:Et,addContentTypeParser:$o.helpers.addContentTypeParser,hasContentTypeParser:$o.helpers.hasContentTypeParser,getDefaultJsonParser:$o.defaultParsers.getDefaultJsonParser,defaultTextParser:$o.defaultParsers.defaultTextParser,removeContentTypeParser:$o.helpers.removeContentTypeParser,removeAllContentTypeParsers:$o.helpers.removeAllContentTypeParsers,register:null,after:null,ready:null,onClose:null,close:null,printPlugins:null,hasPlugin:function(ie){return this[JM.kRegisteredPlugins].includes(ie)||this[Cc].includes(ie)},listen:S,server:_,addresses:function(){let ie=this[BM].map(ve=>ve.address());return ie.push(this.server.address()),ie.filter(ve=>ve)},decorate:F1.add,hasDecorator:F1.exist,decorateReply:F1.decorateReply,decorateRequest:F1.decorateRequest,hasRequestDecorator:F1.existRequest,hasReplyDecorator:F1.existReply,inject:Q,printRoutes:$t,setNotFoundHandler:V,setErrorHandler:qe,setChildLoggerFactory:Ue,initialConfig:c,addConstraintStrategy:m.addConstraintStrategy.bind(m),hasConstraintStrategy:m.hasConstraintStrategy.bind(m)};Object.defineProperties(N,{listeningOrigin:{get(){let ie=this.addresses().slice(-1).pop();if(typeof ie=="string")return ie;let ve=ie.family==="IPv6"?`[${ie.address}]`:ie.address;return`${this[O_].https?"https":"http"}://${ve}:${ie.port}`}},pluginName:{configurable:!0,get(){return this[Cc].length>1?this[Cc].join(" -> "):this[Cc][0]}},prefix:{configurable:!0,get(){return this[HM]}},validatorCompiler:{configurable:!0,get(){return this[j2].getValidatorCompiler()}},serializerCompiler:{configurable:!0,get(){return this[j2].getSerializerCompiler()}},childLoggerFactory:{configurable:!0,get(){return this[R_]}},version:{configurable:!0,get(){return Ghe}},errorHandler:{configurable:!0,get(){return this[d7].func}},genReqId:{configurable:!0,get(){return this[I_]}}}),t.schemaErrorFormatter&&(ZM(t.schemaErrorFormatter),N[N_]=t.schemaErrorFormatter.bind(N));let R=Number(t.pluginTimeout),U=Jhe(N,{autostart:!1,timeout:isNaN(R)===!1?R:yl.pluginTimeout,expose:{use:"register"}});U.override=fme,U.on("start",()=>N[Ur].started=!0),N[Nc]=N.ready,N.ready=W,N.printPlugins=U.prettyPrint.bind(U),U.once("preReady",()=>{N.onClose((ie,ve)=>{N[Ur].closing=!0,m.closeRoutes(),zM("preClose",N[Nc],N,function(){if(N[Ur].listening){if(g==="idle")ie.server.closeIdleConnections();else if(w&&g)ie.server.closeAllConnections();else if(g===!0)for(let Se of N[C_])Se.destroy(),N[C_].delete(Se)}!t.serverFactory||N[Ur].listening?ie.server.close(function(Se){Se&&Se.code!=="ERR_SERVER_NOT_RUNNING"?ve(null):ve()}):process.nextTick(ve,null)})})});let F=new ime({server:N,config:{}});N.setNotFoundHandler(),d.arrange404(N),m.setup(t,{avvio:U,fourOhFour:d,logger:o,hasLogger:u,setupResponseListeners:x,throwIfAlreadyStarted:te,validateHTTPVersion:rme(t),keepAliveConnections:v}),_.on("clientError",t.clientErrorHandler.bind(N));try{let ve=require("node:diagnostics_channel").channel("fastify.initialization");ve.hasSubscribers&&ve.publish({fastify:N})}catch{}return"asyncDispose"in Symbol&&(N[Symbol.asyncDispose]=function(){return N.close()}),N;function te(ie){if(N[Ur].started)throw new xme(ie)}function Q(ie,ve){if(Oc===void 0&&(Oc=$M()),N[Ur].started){if(N[Ur].closing){let Se=new Ame;if(ve){ve(Se);return}else return Promise.reject(Se)}return Oc(y,ie,ve)}if(ve)this.ready(Se=>{Se?ve(Se,null):Oc(y,ie,ve)});else return Oc((Se,Xe)=>{this.ready(function(ft){if(ft){Xe.emit("error",ft);return}y(Se,Xe)})},ie)}function W(ie){if(this[Ur].readyPromise!==null){if(ie!=null){this[Ur].readyPromise.then(()=>ie(null,N),ie);return}return this[Ur].readyPromise}let ve,Se;if(process.nextTick(Xe),this[Ur].readyPromise=new Promise(function(Pe,Lt){ve=Pe,Se=Lt}),ie)this[Ur].readyPromise.then(()=>ie(null,N),ie);else return this[Ur].readyPromise;function Xe(){N[Nc]((Pe,Lt)=>{Pe||N[Ur].started||N[Ur].ready||N[Ur].booting?ft(Pe):(N[Ur].booting=!0,zM("onReady",N[Nc],N,ft)),Lt()})}function ft(Pe){if(Pe=Pe!=null&&WM[Pe.code]!=null?mme(Pe,new WM[Pe.code](Pe.message)):Pe,Pe)return Se(Pe);ve(N),N[Ur].booting=!1,N[Ur].ready=!0,N[Ur].promise=null}}function ce(){return this}function we(ie,ve){if(te('Cannot call "addHook"!'),ve==null)throw new Bo.FST_ERR_HOOK_INVALID_HANDLER(ie,ve);if(ie==="onSend"||ie==="preSerialization"||ie==="onError"||ie==="preParsing"){if(ve.constructor.name==="AsyncFunction"&&ve.length===4)throw new Bo.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(ie==="onReady"||ie==="onListen"){if(ve.constructor.name==="AsyncFunction"&&ve.length!==0)throw new Bo.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(ie==="onRequestAbort"){if(ve.constructor.name==="AsyncFunction"&&ve.length!==1)throw new Bo.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(ve.constructor.name==="AsyncFunction"&&ve.length===3)throw new Bo.FST_ERR_HOOK_INVALID_ASYNC_HANDLER;return ie==="onClose"?this.onClose(ve):ie==="onReady"||ie==="onListen"||ie==="onRoute"?this[A_].add(ie,ve):this.after((Xe,ft)=>{Se.call(this,ie,ve),ft(Xe)}),this;function Se(Xe,ft){this[A_].add(Xe,ft),this[x_].forEach(Pe=>Se.call(Pe,Xe,ft))}}function se(ie){return te('Cannot call "addSchema"!'),this[j2].add(ie),this[x_].forEach(ve=>ve.addSchema(ie)),this}function ee(ie,ve){if(ie.code==="ECONNRESET"||ve.destroyed)return;let Se,Xe,ft,Pe;ie.code==="ERR_HTTP_REQUEST_TIMEOUT"?(Xe="408",ft=T_.STATUS_CODES[Xe],Se=`{"error":"${ft}","message":"Client Timeout","statusCode":408}`,Pe="timeout"):ie.code==="HPE_HEADER_OVERFLOW"?(Xe="431",ft=T_.STATUS_CODES[Xe],Se=`{"error":"${ft}","message":"Exceeded maximum allowed HTTP header size","statusCode":431}`,Pe="header_overflow"):(Xe="400",ft=T_.STATUS_CODES[Xe],Se=`{"error":"${ft}","message":"Client Error","statusCode":400}`,Pe="error"),this.log.trace({err:ie},`client ${Pe}`),ve.writable&&ve.write(`HTTP/1.1 ${Xe} ${ft}\r
+`))}};EU.exports=Zv});var SU=k((mke,wU)=>{"use strict";var ude=bU(),i7={STATIC:0,PARAMETRIC:1,WILDCARD:2},Z9=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,n){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new ude),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},e7=class extends Z9{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,n){let r=this.staticChildren[e.charAt(n)];return r===void 0||!r.matchPrefix(e,n)?null:r}getStaticChild(e,n=0){if(e.length===n)return this;let r=this.findStaticMatchingChild(e,n);return r?r.getStaticChild(e,n+r.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let n=this.staticChildren[e.charAt(0)];if(n){let i=1;for(;i(i.regex&&i.regex.source)===n);return r||null}createParametricChild(e,n,r){let i=this.getParametricChild(e);return i?(i.nodePaths.add(r),i):(i=new n7(e,n,r),this.parametricChildren.push(i),this.parametricChildren.sort((l,s)=>l.isRegex?s.isRegex?l.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(l.staticSuffix)?1:l.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),i)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new r7,this.wildcardChild}split(e,n){let r=this.prefix.slice(0,n),i=this.prefix.slice(n);this.prefix=i,this._compilePrefixMatch();let l=new t(r);return l.staticChildren[i.charAt(0)]=this,e.staticChildren[r.charAt(0)]=l,l}getNextNode(e,n,r,i){let l=this.findStaticMatchingChild(e,n),s=0;if(l===null){if(this.parametricChildren.length===0)return this.wildcardChild;l=this.parametricChildren[0],s=1}this.wildcardChild!==null&&r.push({paramsCount:i,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)r.push({paramsCount:i,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return l}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let n=1;n{"use strict";var cde=require("assert");function bc(){if(!(this instanceof bc))return new bc;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}bc.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,r,i]=t.split(".");return n=Number(n)||0,r=Number(r)||0,i=Number(i)||0,n>=this.maxMajor&&(this.maxMajor=n,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),r>=(this.maxMinors[n]||0)&&(this.maxMinors[n]=r,this.store[`${n}.x`]=e,this.store[`${n}.x.x`]=e),i>=(this.store[`${n}.${r}`]||0)&&(this.maxPatches[`${n}.${r}`]=i,this.store[`${n}.${r}.x`]=e),this.store[`${n}.${r}.${i}`]=e,this};bc.prototype.get=function(t){return this.store[t]};TU.exports={name:"version",mustMatchWhenDerived:!0,storage:bc,validate(t){cde(typeof t=="string","Version should be a string")}}});var OU=k((gke,AU)=>{"use strict";var pde=require("assert");function fde(){let t={},e=[];return{get:n=>{let r=t[n];if(r)return r;for(let i of e)if(i.host.test(n))return i.value},set:(n,r)=>{n instanceof RegExp?e.push({host:n,value:r}):t[n]=r}}}AU.exports={name:"host",mustMatchWhenDerived:!1,storage:fde,validate(t){pde(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var CU=k((vke,NU)=>{"use strict";var dde=xU(),hde=OU(),e_=require("assert"),t_=class{constructor(e){if(this.strategies={version:dde,host:hde},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let n of Object.values(e))this.addConstraintStrategy(n)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let n=this.strategies[e];return n!==void 0?n.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(e_(typeof e.name=="string"&&e.name!=="","strategy.name is required."),e_(e.storage&&typeof e.storage=="function","strategy.storage function is required."),e_(e.deriveConstraint&&typeof e.deriveConstraint=="function","strategy.deriveConstraint function is required."),this.strategies[e.name]&&this.strategies[e.name].isCustom)throw new Error(`There already exists a custom constraint with the name ${e.name}.`);if(this.isStrategyUsed(e.name))throw new Error(`There already exists a route with ${e.name} constraint.`);e.isCustom=!0,e.isAsync=e.deriveConstraint.length===3,this.strategies[e.name]=e,e.mustMatchWhenDerived&&this.noteUsage({[e.name]:e})}deriveConstraints(e,n,r){let i=this.deriveSyncConstraints(e,n);if(r===void 0)return i;this.deriveAsyncConstraints(i,e,n,r)}deriveSyncConstraints(e,n){}noteUsage(e){if(e){let n=this.strategiesInUse.size;for(let r in e)this.strategies[r].isAsync?this.asyncStrategiesInUse.add(r):this.strategiesInUse.add(r);n!==this.strategiesInUse.size&&this._buildDeriveConstraints()}}newStoreForConstraint(e){if(!this.strategies[e])throw new Error(`No strategy registered for constraint key ${e}`);return this.strategies[e].storage()}validateConstraints(e){for(let n in e){let r=e[n];if(typeof r>"u")throw new Error("Can't pass an undefined constraint value, must pass null or no key at all");let i=this.strategies[n];if(!i)throw new Error(`No strategy registered for constraint key ${n}`);i.validate&&i.validate(r)}}deriveAsyncConstraints(e,n,r,i){let l=this.asyncStrategiesInUse.size;if(l===0){i(null,e);return}e=e||{};for(let s of this.asyncStrategiesInUse)this.strategies[s].deriveConstraint(n,r,(o,u)=>{if(o!==null){i(o);return}e[s]=u,--l===0&&i(null,e)})}_buildDeriveConstraints(){if(this.strategiesInUse.size===0)return;let e=["return {"];for(let n of this.strategiesInUse){let r=this.strategies[n];if(r.isCustom)e.push(` ${r.name}: this.strategies.${n}.deriveConstraint(req, ctx),`);else if(n==="version")e.push(" version: req.headers['accept-version'],");else if(n==="host")e.push(" host: req.headers.host || req.headers[':authority'],");else throw new Error("unknown non-custom strategy for compiling constraint derivation function")}e.push("}"),this.deriveSyncConstraints=new Function("req","ctx",e.join(`
+`)).bind(this)}};NU.exports=t_});var IU=k((_ke,RU)=>{"use strict";var mde=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];RU.exports=mde});var PU=k((Eke,DU)=>{"use strict";function kU(t,e){return t===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:t===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:t===52&&e===48?"@":null}function yde(t,e){let n=!1,r=!1,i="";for(let s=1;s{"use strict";var Ur=require("assert"),vde=tU(),l7=pU(),i_=i1(),{prettyPrintTree:_de}=_U(),{StaticNode:LU,NODE_TYPES:n_}=SU(),Ede=CU(),F1=IU(),r_=Y9(),{safeDecodeURI:bde,safeDecodeURIComponent:FU}=PU(),jU=/^https?:\/\/.*?\//,H3=/(\/:[^/()]*?)\?(\/?)/;if(!l7(jU))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!l7(H3))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Er(t){if(!(this instanceof Er))return new Er(t);t=t||{},this._opts=t,t.defaultRoute?(Ur(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(Ur(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(Ur(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=wde,t.querystringParser?(Ur(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:vde.parse(e),this.caseSensitive=t.caseSensitive===void 0?!0:t.caseSensitive,this.ignoreTrailingSlash=t.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=t.ignoreDuplicateSlashes||!1,this.maxParamLength=t.maxParamLength||100,this.allowUnsafeRegex=t.allowUnsafeRegex||!1,this.constrainer=new Ede(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Er.prototype.on=function(e,n,r,i,l){typeof r=="function"&&(i!==void 0&&(l=i),i=r,r={}),Ur(typeof n=="string","Path should be a string"),Ur(n.length>0,"The path could not be empty"),Ur(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),Ur(typeof i=="function","Handler should be a function");let s=n.match(H3);if(s){Ur(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let u=n.replace(H3,"$1$2"),c=n.replace(H3,"$2");this.on(e,u,r,i,l),this.on(e,c,r,i,l);return}let a=n;this.ignoreDuplicateSlashes&&(n=l_(n)),this.ignoreTrailingSlash&&(n=s_(n));let o=Array.isArray(e)?e:[e];for(let u of o)Ur(typeof u=="string","Method should be a string"),Ur(F1.includes(u),`Method '${u}' is not an http method.`),this._on(u,n,r,i,l,a)};Er.prototype._on=function(e,n,r,i,l){let s={};r.constraints!==void 0&&(Ur(typeof r.constraints=="object"&&r.constraints!==null,"Constraints should be an object"),Object.keys(r.constraints).length!==0&&(s=r.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new LU("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new LU(""),this.trees[e].staticChildren["/"]=m}let o=this.trees[e],u=o.prefix.length,c=[];for(let m=0;m<=a.length;m++){if(a.charCodeAt(m)===58&&a.charCodeAt(m+1)===58){m++;continue}let d=a.charCodeAt(m)===58&&a.charCodeAt(m+1)!==58,y=a.charCodeAt(m)===42;if(d||y||m===a.length&&m!==u){let _=a.slice(u,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),o=o.createStaticChild(_)}if(d){let _=!1,S=[],w=m+1;for(let E=w;;E++){let g=a.charCodeAt(E),v=g===40,x=g===45||g===46,O=g===47||E===a.length;if(v||x||O){let N=a.slice(w,E);if(c.push(N),_=_||v||x,v){let F=$U(a,E),te=a.slice(E,F+1);this.allowUnsafeRegex||Ur(l7(new RegExp(te)),`The regex '${te}' is not safe!`),S.push(MU(te)),E=F+1}else S.push("(.*?)");let R=E;for(;E0,"The path could not be empty"),Ur(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),Ur(typeof r>"u"||typeof r=="object"&&!Array.isArray(r)&&r!==null,"Constraints should be an object or undefined.");let i=n.match(H3);if(i){Ur(n.length===i.index+i[0].length,"Optional Parameter needs to be the last parameter of the path");let s=n.replace(H3,"$1$2"),a=n.replace(H3,"$2");this.off(e,s,r),this.off(e,a,r);return}this.ignoreDuplicateSlashes&&(n=l_(n)),this.ignoreTrailingSlash&&(n=s_(n));let l=Array.isArray(e)?e:[e];for(let s of l)this._off(s,n,r)};Er.prototype._off=function(e,n,r){Ur(typeof e=="string","Method should be a string"),Ur(F1.includes(e),`Method '${e}' is not an http method.`);function i(o){return e!==o.method||n!==o.path}function l(o){return i(o)||!i_(r,o.opts.constraints||{})}let s=r?l:i,a=this.routes.filter(s);this._rebuild(a)};Er.prototype.lookup=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i===void 0){let l=this.constrainer.deriveConstraints(e,r),s=this.find(e.method,e.url,l);return this.callHandler(s,e,n,r)}this.constrainer.deriveConstraints(e,r,(l,s)=>{if(l!==null){i(l);return}try{let a=this.find(e.method,e.url,s),o=this.callHandler(a,e,n,r);i(null,o)}catch(a){i(a)}})};Er.prototype.callHandler=function(e,n,r,i){return e===null?this._defaultRoute(n,r,i):i===void 0?e.handler(n,r,e.params,e.store,e.searchParams):e.handler.call(i,n,r,e.params,e.store,e.searchParams)};Er.prototype.find=function(e,n,r){let i=this.trees[e];if(i===void 0)return null;n.charCodeAt(0)!==47&&(n=n.replace(jU,"/")),this.ignoreDuplicateSlashes&&(n=l_(n));let l,s,a;try{l=bde(n,this.useSemicolonDelimiter),n=l.path,s=l.querystring,a=l.shouldDecodeParam}catch{return this._onBadUrl(n)}this.ignoreTrailingSlash&&(n=s_(n));let o=n;this.caseSensitive===!1&&(n=n.toLowerCase());let u=this.maxParamLength,c=i.prefix.length,f=[],m=n.length,d=[];for(;;){if(c===m&&i.isLeafNode){let _=i.handlerStorage.getMatchingHandler(r);if(_!==null)return{handler:_.handler,store:_.store,params:_._createParamsObject(f),searchParams:this.querystringParser(s)}}let y=i.getNextNode(n,c,d,f.length);if(y===null){if(d.length===0)return null;let _=d.pop();c=_.brotherPathIndex,f.splice(_.paramsCount),y=_.brotherNode}if(i=y,i.kind===n_.STATIC){c+=i.prefix.length;continue}if(i.kind===n_.WILDCARD){let _=o.slice(c);a&&(_=FU(_)),f.push(_),c=m;continue}if(i.kind===n_.PARAMETRIC){let _=o.indexOf("/",c);_===-1&&(_=m);let S=o.slice(c,_);if(a&&(S=FU(S)),i.isRegex){let w=i.regex.exec(S);if(w===null)continue;for(let E=1;Eu)return null;f.push(g)}}else{if(S.length>u)return null;f.push(S)}c=_}}};Er.prototype._rebuild=function(t){this.reset();for(let e of t){let{method:n,path:r,opts:i,handler:l,store:s}=e;this._on(n,r,i,l,s)}};Er.prototype._defaultRoute=function(t,e,n){if(this.defaultRoute!==null)return n===void 0?this.defaultRoute(t,e):this.defaultRoute.call(n,t,e);e.statusCode=404,e.end()};Er.prototype._onBadUrl=function(t){if(this.onBadUrl===null)return null;let e=this.onBadUrl;return{handler:(n,r,i)=>e(t,n,r),params:{},store:null}};Er.prototype.prettyPrint=function(t={}){let e=t.method;t.buildPrettyMeta=this.buildPrettyMeta.bind(this);let n=null;if(e===void 0){let{version:r,host:i,...l}=this.constrainer.strategies;l[r_.name]=r_;let s=new Er({...this._opts,constraints:l}),a=this.routes.map(o=>{let u={...o.opts.constraints,[r_.name]:o.method};return{...o,method:"MERGED",opts:{constraints:u}}});s._rebuild(a),n=s.trees.MERGED}else n=this.trees[e];return n==null?"(empty tree)":_de(n,t)};for(let t in F1){if(!F1.hasOwnProperty(t))continue;let e=F1[t],n=e.toLowerCase();if(Er.prototype[n])throw new Error("Method already exists: "+n);Er.prototype[n]=function(r,i,l){return this.on(e,r,i,l)}}Er.prototype.all=function(t,e,n){this.on(F1,t,e,n)};BU.exports=Er;function UU(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function l_(t){return t.replace(/\/\/+/g,"/")}function s_(t){return t.length>1&&t.charCodeAt(t.length-1)===47?t.slice(0,-1):t}function MU(t){return t.charCodeAt(1)===94&&(t=t.slice(0,1)+t.slice(2)),t.charCodeAt(t.length-2)===36&&(t=t.slice(0,t.length-2)+t.slice(t.length-1)),t}function $U(t,e){let n=1;for(;e{"use strict";function o_(t,e,n,r){if(n===void 0)return e.header("content-length","0"),r(null,null);if(typeof n.resume=="function")return n.on("error",l=>{e.log.error({err:l},"Error on Stream found for HEAD route")}),n.resume(),r(null,null);let i=""+Buffer.byteLength(n);e.header("content-length",i),r(null,null)}function Sde(t){return t==null?o_:Array.isArray(t)?[...t,o_]:[t,o_]}HU.exports={parseHeadOnSendHandlers:Sde}});var sM=k((Ske,lM)=>{"use strict";var Tde=a_(),xde=N9(),qU=sh(),{onRequestAbortHookRunner:Ade,lifecycleHooks:zU,preParsingHookRunner:Ode,onTimeoutHookRunner:Nde,onRequestHookRunner:Cde}=m2(),{supportedMethods:Rde}=Lg(),{normalizeSchema:Ide}=f4(),{parseHeadOnSendHandlers:kde}=VU(),{FSTDEP007:Dde,FSTDEP008:Pde,FSTDEP014:GU}=Fa(),{compileSchemasForValidation:Lde,compileSchemasForSerialization:Fde}=th(),{FST_ERR_SCH_VALIDATION_BUILD:jde,FST_ERR_SCH_SERIALIZATION_BUILD:Ude,FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:Mde,FST_ERR_DUPLICATED_ROUTE:$de,FST_ERR_INVALID_URL:Bde,FST_ERR_HOOK_INVALID_HANDLER:JU,FST_ERR_ROUTE_OPTIONS_NOT_OBJ:Hde,FST_ERR_ROUTE_DUPLICATED_HANDLER:Vde,FST_ERR_ROUTE_HANDLER_NOT_FN:KU,FST_ERR_ROUTE_MISSING_HANDLER:qde,FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:zde,FST_ERR_ROUTE_METHOD_INVALID:Gde,FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:Jde,FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:Kde,FST_ERR_HOOK_INVALID_ASYNC_HANDLER:u_}=Ui(),{kRoutePrefix:Xde,kLogLevel:Wde,kLogSerializers:XU,kHooks:WU,kSchemaController:Yde,kOptions:YU,kReplySerializerDefault:c_,kReplyIsError:Qde,kRequestPayloadStream:Zde,kDisableRequestLogging:ehe,kSchemaErrorFormatter:the,kErrorHandler:QU,kHasBeenDecorated:ZU,kRequestAcceptVersion:p_,kRouteByFastify:f_,kRouteContext:eM}=di(),{buildErrorHandler:nhe}=V4(),{createChildLogger:rhe}=c4(),{getGenReqId:ihe}=K9();function lhe(t){let e=Tde(t.config),n,r,i,l,s,a,o,u,c,f,m,d,y,_=!1;return{setup(R,U){n=U.avvio,r=U.fourOhFour,i=U.logger,l=U.hasLogger,s=U.setupResponseListeners,a=U.throwIfAlreadyStarted,d=U.validateHTTPVersion,m=R.exposeHeadRoutes,o=R.disableRequestLogging,u=R.ignoreTrailingSlash,c=R.ignoreDuplicateSlashes,f=Object.prototype.hasOwnProperty.call(R,"return503OnClosing")?R.return503OnClosing:!0,y=U.keepAliveConnections},routing:e.lookup.bind(e),route:O,hasRoute:v,prepareRoute:g,getDefaultRoute:function(){return GU(),e.defaultRoute},setDefaultRoute:function(R){if(GU(),typeof R!="function")throw new Mde;e.defaultRoute=R},routeHandler:N,closeRoutes:()=>{_=!0},printRoutes:e.prettyPrint.bind(e),addConstraintStrategy:S,hasConstraintStrategy:w,isAsyncConstraint:E,findRoute:x};function S(R){return a("Cannot add constraint strategy!"),e.addConstraintStrategy(R)}function w(R){return e.hasConstraintStrategy(R)}function E(){return e.constrainer.asyncStrategiesInUse.size>0}function g({method:R,url:U,options:F,handler:te,isFastify:Q}){if(typeof U!="string")throw new Bde(typeof U);if(!te&&typeof F=="function")te=F,F={};else if(te&&typeof te=="function"){if(Object.prototype.toString.call(F)!=="[object Object]")throw new Hde(R,U);if(F.handler)throw typeof F.handler=="function"?new Vde(R,U):new KU(R,U)}return F=Object.assign({},F,{method:R,url:U,path:U,handler:te||F&&F.handler}),O.call(this,{options:F,isFastify:Q})}function v({options:R}){return x(R)!==null}function x(R){let U=e.find(R.method,R.url||"",R.constraints);return U?{handler:U.handler,params:U.params,searchParams:U.searchParams}:null}function O({options:R,isFastify:U}){let F={...R},{exposeHeadRoute:te}=F,W=te!=null?te:m,ce=F.method==="GET"||Array.isArray(F.method)&&F.method.includes("GET"),we=F.method==="HEAD"||Array.isArray(F.method)&&F.method.includes("HEAD"),se=W&&ce?{...R}:null;a("Cannot add route!");let ee=F.url||F.path||"";if(Array.isArray(F.method))for(var me=0;me0&&F.method!=="HEAD")switch(F.prefixTrailingSlash){case"slash":G.call(this,{path:ee,isFastify:U});break;case"no-slash":G.call(this,{path:"",isFastify:U});break;case"both":default:G.call(this,{path:"",isFastify:U}),u!==!0&&(c!==!0||!P.endsWith("/"))&&G.call(this,{path:ee,prefixing:!0,isFastify:U})}else ee[0]==="/"&&P.endsWith("/")?G.call(this,{path:ee.slice(1),isFastify:U}):G.call(this,{path:ee,isFastify:U});return this;function G({path:V,prefixing:q=!1,isFastify:Zn=!1}){let Tt=P+V;if(F.url=Tt,F.path=Tt,F.routePath=V,F.prefix=P,F.logLevel=F.logLevel||this[Wde],(this[XU]||F.logSerializers)&&(F.logSerializers=Object.assign(Object.create(this[XU]),F.logSerializers)),F.attachValidation==null&&(F.attachValidation=!1),q===!1)for(let gt of this[WU].onRoute)gt.call(this,F);for(let gt of zU)if(F&> in F){if(Array.isArray(F[gt]))for(let Et of F[gt]){if(typeof Et!="function")throw new JU(gt,Object.prototype.toString.call(Et));if(gt==="onSend"||gt==="preSerialization"||gt==="onError"||gt==="preParsing"){if(Et.constructor.name==="AsyncFunction"&&Et.length===4)throw new u_}else if(gt==="onRequestAbort"){if(Et.constructor.name==="AsyncFunction"&&Et.length!==1)throw new u_}else if(Et.constructor.name==="AsyncFunction"&&Et.length===3)throw new u_}else if(F[gt]!==void 0&&typeof F[gt]!="function")throw new JU(gt,Object.prototype.toString.call(F[gt]))}let Qe=F.constraints||{},pt={...F.config,url:Tt,method:F.method},ze=new xde({schema:F.schema,handler:F.handler.bind(this),config:pt,errorHandler:F.errorHandler,childLoggerFactory:F.childLoggerFactory,bodyLimit:F.bodyLimit,logLevel:F.logLevel,logSerializers:F.logSerializers,attachValidation:F.attachValidation,schemaErrorFormatter:F.schemaErrorFormatter,replySerializer:this[c_],validatorCompiler:F.validatorCompiler,serializerCompiler:F.serializerCompiler,exposeHeadRoute:W,prefixTrailingSlash:F.prefixTrailingSlash||"both",server:this,isFastify:Zn});F.version&&(Pde(),Qe.version=F.version);let Ue=e.findRoute("HEAD",F.url,Qe),$t=Ue!==null;we&&$t&&!ze[f_]&&Ue.store[f_]&&e.off("HEAD",F.url,Qe);try{e.on(F.method,F.url,{constraints:Qe},N,ze)}catch(gt){if(!ze[f_])throw gt.message.includes(`Method '${F.method}' already declared for route '${F.url}'`)?new $de(F.method,F.url):gt}if(this.after((gt,Et)=>{ze.errorHandler=F.errorHandler?nhe(this[QU],F.errorHandler):this[QU],ze._parserOptions.limit=F.bodyLimit||null,ze.logLevel=F.logLevel,ze.logSerializers=F.logSerializers,ze.attachValidation=F.attachValidation,ze[c_]=this[c_],ze.schemaErrorFormatter=F.schemaErrorFormatter||this[the]||ze.schemaErrorFormatter,n.once("preReady",()=>{for(let ie of zU){let ve=this[WU][ie].concat(F[ie]||[]).map(Se=>Se.bind(this));ze[ie]=ve.length?ve:null}for(;!ze.Request[ZU]&&ze.Request.parent;)ze.Request=ze.Request.parent;for(;!ze.Reply[ZU]&&ze.Reply.parent;)ze.Reply=ze.Reply.parent;if(r.setContext(this,ze),F.schema){ze.schema=Ide(ze.schema,this.initialConfig);let ie=this[Yde];!F.validatorCompiler&&(F.schema.body||F.schema.headers||F.schema.querystring||F.schema.params)&&ie.setupValidator(this[YU]);try{let ve=typeof F?.validatorCompiler=="function"||ie.isCustomValidatorCompiler;Lde(ze,F.validatorCompiler||ie.validatorCompiler,ve)}catch(ve){throw new jde(F.method,Tt,ve.message)}F.schema.response&&!F.serializerCompiler&&ie.setupSerializer(this[YU]);try{Fde(ze,F.serializerCompiler||ie.serializerCompiler)}catch(ve){throw new Ude(F.method,Tt,ve.message)}}}),Et(gt)}),W&&ce&&!we&&!$t){let gt=kde(se.onSend);g.call(this,{method:"HEAD",url:V,options:{...se,onSend:gt},isFastify:!0})}else $t&&te&&Dde()}}function N(R,U,F,te,Q){let W=ihe(te.server,R),ce={level:te.logLevel};te.logSerializers&&(ce.serializers=te.logSerializers);let we=rhe(te,i,R,W,ce);if(we[ehe]=o,!d(R.httpVersion)){we.info({res:{statusCode:505}},"request aborted - invalid HTTP version");let P='{"error":"HTTP Version Not Supported","message":"HTTP Version Not Supported","statusCode":505}',G={"Content-Type":"application/json","Content-Length":P.length};U.writeHead(505,G),U.end(P);return}if(_===!0&&(R.httpVersionMajor!==2&&U.setHeader("Connection","close"),f)){let P={"Content-Type":"application/json","Content-Length":"80"};U.writeHead(503,P),U.end('{"error":"Service Unavailable","message":"Service Unavailable","statusCode":503}'),we.info({res:{statusCode:503}},"request aborted - refusing to accept new requests as server is closing");return}String.prototype.toLowerCase.call(R.headers.connection||"")==="keep-alive"&&y.has(R.socket)===!1&&(y.add(R.socket),R.socket.on("close",ohe.bind({keepAliveConnections:y,socket:R.socket}))),R.headers[p_]!==void 0&&(R.headers["accept-version"]=R.headers[p_],R.headers[p_]=void 0);let ee=new te.Request(W,F,R,Q,we,te),me=new te.Reply(U,ee,we);o===!1&&we.info({req:ee},"incoming request"),(l===!0||te.onResponse!==null)&&s(me),te.onRequest!==null?Cde(te.onRequest,ee,me,rM):rM(null,ee,me),te.onRequestAbort!==null&&R.on("close",()=>{R.aborted&&Ade(te.onRequestAbort,ee,she.bind(null,me))}),te.onTimeout!==null&&(ee.raw.socket._meta||ee.raw.socket.on("timeout",ahe),ee.raw.socket._meta={context:te,request:ee,reply:me})}}function she(t,e){e&&t.log.error({err:e},"onRequestAborted hook failed")}function ahe(){let{context:t,request:e,reply:n}=this._meta;Nde(t.onTimeout,e,n,uhe)}function tM(t){if(typeof t!="string")throw new Gde;if(t=t.toUpperCase(),Rde.indexOf(t)===-1)throw new zde(t);return t}function nM(t,e,n){if((t==="GET"||t==="HEAD")&&n&&n.body)throw new Jde(t,e)}function iM(t){if(t!==void 0&&(!Number.isInteger(t)||t<=0))throw new Kde(t)}function rM(t,e,n){if(n.sent!==!0){if(t!=null){n[Qde]=!0,n.send(t);return}e[Zde]=e.raw,e[eM].preParsing!==null?Ode(e[eM].preParsing,e,n,qU):qU(null,e,n)}}function ohe(){this.keepAliveConnections.delete(this.socket)}function uhe(){}lM.exports={buildRouting:lhe,validateBodyLimitOption:iM}});var dM=k((Tke,fM)=>{"use strict";var che=a_(),aM=p9(),oM=O9(),phe=N9(),{kRoutePrefix:fhe,kCanSetNotFoundHandler:wc,kFourOhFourLevelInstance:Sc,kFourOhFourContext:la,kHooks:dhe,kErrorHandler:uM}=di(),{lifecycleHooks:hhe}=m2(),{buildErrorHandler:mhe}=V4(),{FST_ERR_NOT_FOUND:yhe}=Ui(),{createChildLogger:cM}=c4(),{getGenReqId:pM}=K9();function ghe(t){let{logger:e}=t,n=che({onBadUrl:s(),defaultRoute:c}),r=null;return{router:n,setNotFoundHandler:o,setContext:a,arrange404:i};function i(f){f[Sc]=f,f[wc]=!0,n.onBadUrl=n.onBadUrl.bind(f),n.defaultRoute=n.defaultRoute.bind(f)}function l(f,m){let{url:d,method:y}=f.raw,_=`Route ${y}:${d} not found`;f.log.info(_),m.code(404).send({message:_,error:"Not Found",statusCode:404})}function s(){return function(m,d,y){let _=this[Sc][la],S=pM(_.server,d),w=cM(_,e,d,S),E=new oM(S,null,d,null,w,_),g=new aM(y,E,w);r(E,g)}}function a(f,m){let d=Object.assign({},f[la]);d.onSend=m.onSend,m[la]=d}function o(f,m,d,y){this[wc]===void 0&&(this[wc]=!0),this[la]===void 0&&(this[la]=null);let _=this,S=this[fhe]||"/";if(this[wc]===!1)throw new Error(`Not found handler already set for Fastify instance with prefix: '${S}'`);typeof f=="object"&&(f.preHandler&&(Array.isArray(f.preHandler)?f.preHandler=f.preHandler.map(w=>w.bind(_)):f.preHandler=f.preHandler.bind(_)),f.preValidation&&(Array.isArray(f.preValidation)?f.preValidation=f.preValidation.map(w=>w.bind(_)):f.preValidation=f.preValidation.bind(_))),typeof f=="function"&&(m=f,f=void 0),f=f||{},m?(this[Sc][wc]=!1,m=m.bind(this),r=m):(m=l,r=l),this.after((w,E)=>{u.call(this,S,f,m,d,y),E(w)})}function u(f,m,d,y,_){let S=new phe({schema:m.schema,handler:d,config:m.config||{},server:this});if(y.once("preReady",()=>{let w=this[la];for(let E of hhe){let g=this[dhe][E].concat(m[E]||[]).map(v=>v.bind(this));w[E]=g.length?g:null}w.errorHandler=m.errorHandler?mhe(this[uM],m.errorHandler):this[uM]}),this[la]!==null&&f==="/"){Object.assign(this[la],S);return}this[Sc][la]=S,n.all(f+(f.endsWith("/")?"*":"/*"),_,S),n.all(f,_,S)}function c(f,m){let d=this[Sc][la],y=pM(d.server,f),_=cM(d,e,f,y);_.info({req:f},"incoming request");let S=new oM(y,null,f,null,_,d),w=new aM(m,S,_);S.log.warn("the default handler for 404 did not catch this, this is likely a fastify bug, please report it"),S.log.warn(n.prettyPrint()),w.code(404).send(new yhe)}}fM.exports=ghe});var mM=k((xke,s7)=>{"use strict";s7.exports=nn;s7.exports.default=nn;var hM={type:"object",additionalProperties:!1,properties:{connectionTimeout:{type:"integer",default:0},keepAliveTimeout:{type:"integer",default:72e3},forceCloseConnections:{oneOf:[{type:"string",pattern:"idle"},{type:"boolean"}]},maxRequestsPerSocket:{type:"integer",default:0,nullable:!0},requestTimeout:{type:"integer",default:0},bodyLimit:{type:"integer",default:1048576},caseSensitive:{type:"boolean",default:!0},allowUnsafeRegex:{type:"boolean",default:!1},http2:{type:"boolean"},https:{if:{not:{oneOf:[{type:"boolean"},{type:"null"},{type:"object",additionalProperties:!1,required:["allowHTTP1"],properties:{allowHTTP1:{type:"boolean"}}}]}},then:{setDefaultValue:!0}},ignoreTrailingSlash:{type:"boolean",default:!1},ignoreDuplicateSlashes:{type:"boolean",default:!1},disableRequestLogging:{type:"boolean",default:!1},jsonShorthand:{type:"boolean",default:!0},maxParamLength:{type:"integer",default:100},onProtoPoisoning:{type:"string",default:"error"},onConstructorPoisoning:{type:"string",default:"error"},pluginTimeout:{type:"integer",default:1e4},requestIdHeader:{anyOf:[{enum:[!1]},{type:"string"}],default:"request-id"},requestIdLogLabel:{type:"string",default:"reqId"},http2SessionTimeout:{type:"integer",default:72e3},exposeHeadRoutes:{type:"boolean",default:!0},useSemicolonDelimiter:{type:"boolean",default:!0},versioning:{type:"object",additionalProperties:!0,required:["storage","deriveVersion"],properties:{storage:{},deriveVersion:{}}},constraints:{type:"object",additionalProperties:{type:"object",required:["name","storage","validate","deriveConstraint"],additionalProperties:!0,properties:{name:{type:"string"},storage:{},validate:{},deriveConstraint:{}}}}}},vhe=Object.prototype.hasOwnProperty,_he=new RegExp("idle","u");function nn(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:i=t}={}){let l=null,s=0;if(s===0)if(t&&typeof t=="object"&&!Array.isArray(t)){t.connectionTimeout===void 0&&(t.connectionTimeout=0),t.keepAliveTimeout===void 0&&(t.keepAliveTimeout=72e3),t.maxRequestsPerSocket===void 0&&(t.maxRequestsPerSocket=0),t.requestTimeout===void 0&&(t.requestTimeout=0),t.bodyLimit===void 0&&(t.bodyLimit=1048576),t.caseSensitive===void 0&&(t.caseSensitive=!0),t.allowUnsafeRegex===void 0&&(t.allowUnsafeRegex=!1),t.ignoreTrailingSlash===void 0&&(t.ignoreTrailingSlash=!1),t.ignoreDuplicateSlashes===void 0&&(t.ignoreDuplicateSlashes=!1),t.disableRequestLogging===void 0&&(t.disableRequestLogging=!1),t.jsonShorthand===void 0&&(t.jsonShorthand=!0),t.maxParamLength===void 0&&(t.maxParamLength=100),t.onProtoPoisoning===void 0&&(t.onProtoPoisoning="error"),t.onConstructorPoisoning===void 0&&(t.onConstructorPoisoning="error"),t.pluginTimeout===void 0&&(t.pluginTimeout=1e4),t.requestIdHeader===void 0&&(t.requestIdHeader="request-id"),t.requestIdLogLabel===void 0&&(t.requestIdLogLabel="reqId"),t.http2SessionTimeout===void 0&&(t.http2SessionTimeout=72e3),t.exposeHeadRoutes===void 0&&(t.exposeHeadRoutes=!0),t.useSemicolonDelimiter===void 0&&(t.useSemicolonDelimiter=!0);let y=s;for(let _ in t)vhe.call(hM.properties,_)||delete t[_];if(y===s){let _=t.connectionTimeout,S=s;if(!(typeof _=="number"&&!(_%1)&&!isNaN(_)&&isFinite(_))){let w=typeof _,E;if(E===void 0)if(w==="boolean"||_===null||w==="string"&&_&&_==+_&&!(_%1))E=+_;else return nn.errors=[{instancePath:e+"/connectionTimeout",schemaPath:"#/properties/connectionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;E!==void 0&&(_=E,t!==void 0&&(t.connectionTimeout=E))}var a=S===s;if(a){let w=t.keepAliveTimeout,E=s;if(!(typeof w=="number"&&!(w%1)&&!isNaN(w)&&isFinite(w))){let v=typeof w,x;if(x===void 0)if(v==="boolean"||w===null||v==="string"&&w&&w==+w&&!(w%1))x=+w;else return nn.errors=[{instancePath:e+"/keepAliveTimeout",schemaPath:"#/properties/keepAliveTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;x!==void 0&&(w=x,t!==void 0&&(t.keepAliveTimeout=x))}var a=E===s;if(a){if(t.forceCloseConnections!==void 0){let v=t.forceCloseConnections,x=s,O=s,N=!1,R=null,U=s;if(typeof v!="string"){let Q=typeof v,W;if(W===void 0)if(Q=="number"||Q=="boolean")W=""+v;else if(v===null)W="";else{let ce={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[ce]:l.push(ce),s++}W!==void 0&&(v=W,t!==void 0&&(t.forceCloseConnections=W))}if(s===U&&typeof v=="string"&&!_he.test(v)){let Q={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/pattern",keyword:"pattern",params:{pattern:"idle"},message:'must match pattern "idle"'};l===null?l=[Q]:l.push(Q),s++}var o=U===s;o&&(N=!0,R=0);let F=s;if(typeof v!="boolean"){let Q;if(Q===void 0)if(v==="false"||v===0||v===null)Q=!1;else if(v==="true"||v===1)Q=!0;else{let W={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/1/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};l===null?l=[W]:l.push(W),s++}Q!==void 0&&(v=Q,t!==void 0&&(t.forceCloseConnections=Q))}var o=F===s;if(o&&N?(N=!1,R=[R,1]):o&&(N=!0,R=1),N)s=O,l!==null&&(O?l.length=O:l=null);else{let Q={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf",keyword:"oneOf",params:{passingSchemas:R},message:"must match exactly one schema in oneOf"};return l===null?l=[Q]:l.push(Q),s++,nn.errors=l,!1}var a=x===s}else var a=!0;if(a){let v=t.maxRequestsPerSocket,x=s;if(!(typeof v=="number"&&!(v%1)&&!isNaN(v)&&isFinite(v))&&v!==null){let N=typeof v,R;if(R===void 0)if(N==="boolean"||v===null||N==="string"&&v&&v==+v&&!(v%1))R=+v;else if(v===""||v===0||v===!1)R=null;else return nn.errors=[{instancePath:e+"/maxRequestsPerSocket",schemaPath:"#/properties/maxRequestsPerSocket/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;R!==void 0&&(v=R,t!==void 0&&(t.maxRequestsPerSocket=R))}var a=x===s;if(a){let N=t.requestTimeout,R=s;if(!(typeof N=="number"&&!(N%1)&&!isNaN(N)&&isFinite(N))){let F=typeof N,te;if(te===void 0)if(F==="boolean"||N===null||F==="string"&&N&&N==+N&&!(N%1))te=+N;else return nn.errors=[{instancePath:e+"/requestTimeout",schemaPath:"#/properties/requestTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;te!==void 0&&(N=te,t!==void 0&&(t.requestTimeout=te))}var a=R===s;if(a){let F=t.bodyLimit,te=s;if(!(typeof F=="number"&&!(F%1)&&!isNaN(F)&&isFinite(F))){let W=typeof F,ce;if(ce===void 0)if(W==="boolean"||F===null||W==="string"&&F&&F==+F&&!(F%1))ce=+F;else return nn.errors=[{instancePath:e+"/bodyLimit",schemaPath:"#/properties/bodyLimit/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;ce!==void 0&&(F=ce,t!==void 0&&(t.bodyLimit=ce))}var a=te===s;if(a){let W=t.caseSensitive,ce=s;if(typeof W!="boolean"){let se;if(se===void 0)if(W==="false"||W===0||W===null)se=!1;else if(W==="true"||W===1)se=!0;else return nn.errors=[{instancePath:e+"/caseSensitive",schemaPath:"#/properties/caseSensitive/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;se!==void 0&&(W=se,t!==void 0&&(t.caseSensitive=se))}var a=ce===s;if(a){let se=t.allowUnsafeRegex,ee=s;if(typeof se!="boolean"){let P;if(P===void 0)if(se==="false"||se===0||se===null)P=!1;else if(se==="true"||se===1)P=!0;else return nn.errors=[{instancePath:e+"/allowUnsafeRegex",schemaPath:"#/properties/allowUnsafeRegex/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;P!==void 0&&(se=P,t!==void 0&&(t.allowUnsafeRegex=P))}var a=ee===s;if(a){if(t.http2!==void 0){let P=t.http2,G=s;if(typeof P!="boolean"){let q;if(q===void 0)if(P==="false"||P===0||P===null)q=!1;else if(P==="true"||P===1)q=!0;else return nn.errors=[{instancePath:e+"/http2",schemaPath:"#/properties/http2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;q!==void 0&&(P=q,t!==void 0&&(t.http2=q))}var a=G===s}else var a=!0;if(a){if(t.https!==void 0){let P=t.https,G=s,V=s,q=!0,Zn=s,Tt=s,Qe=s,pt=s,ze=!1,Ue=null,$t=s;if(typeof P!="boolean"){let ie;if(ie===void 0)if(P==="false"||P===0||P===null)ie=!1;else if(P==="true"||P===1)ie=!0;else{let ve={};l===null?l=[ve]:l.push(ve),s++}ie!==void 0&&(P=ie,t!==void 0&&(t.https=ie))}var u=$t===s;u&&(ze=!0,Ue=0);let gt=s;if(P!==null){let ie;if(ie===void 0)if(P===""||P===0||P===!1)ie=null;else{let ve={};l===null?l=[ve]:l.push(ve),s++}ie!==void 0&&(P=ie,t!==void 0&&(t.https=ie))}var u=gt===s;if(u&&ze)ze=!1,Ue=[Ue,1];else{u&&(ze=!0,Ue=1);let ie=s;if(s===ie)if(P&&typeof P=="object"&&!Array.isArray(P)){let Se;if(P.allowHTTP1===void 0&&(Se="allowHTTP1")){let Xe={};l===null?l=[Xe]:l.push(Xe),s++}else{let Xe=s;for(let ft in P)ft!=="allowHTTP1"&&delete P[ft];if(Xe===s&&P.allowHTTP1!==void 0){let ft=P.allowHTTP1;if(typeof ft!="boolean"){let Pe;if(Pe===void 0)if(ft==="false"||ft===0||ft===null)Pe=!1;else if(ft==="true"||ft===1)Pe=!0;else{let Lt={};l===null?l=[Lt]:l.push(Lt),s++}Pe!==void 0&&(ft=Pe,P!==void 0&&(P.allowHTTP1=Pe))}}}}else{let Se={};l===null?l=[Se]:l.push(Se),s++}var u=ie===s;u&&ze?(ze=!1,Ue=[Ue,2]):u&&(ze=!0,Ue=2)}if(ze)s=pt,l!==null&&(pt?l.length=pt:l=null);else{let ie={};l===null?l=[ie]:l.push(ie),s++}var c=Qe===s;if(c){let ie={};l===null?l=[ie]:l.push(ie),s++}else s=Tt,l!==null&&(Tt?l.length=Tt:l=null);var f=Zn===s;if(s=V,l!==null&&(V?l.length=V:l=null),f){let ie=s;t.https=!0;var f=ie===s;q=f}if(!q){let ie={instancePath:e+"/https",schemaPath:"#/properties/https/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};return l===null?l=[ie]:l.push(ie),s++,nn.errors=l,!1}var a=G===s}else var a=!0;if(a){let P=t.ignoreTrailingSlash,G=s;if(typeof P!="boolean"){let q;if(q===void 0)if(P==="false"||P===0||P===null)q=!1;else if(P==="true"||P===1)q=!0;else return nn.errors=[{instancePath:e+"/ignoreTrailingSlash",schemaPath:"#/properties/ignoreTrailingSlash/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;q!==void 0&&(P=q,t!==void 0&&(t.ignoreTrailingSlash=q))}var a=G===s;if(a){let q=t.ignoreDuplicateSlashes,Zn=s;if(typeof q!="boolean"){let Qe;if(Qe===void 0)if(q==="false"||q===0||q===null)Qe=!1;else if(q==="true"||q===1)Qe=!0;else return nn.errors=[{instancePath:e+"/ignoreDuplicateSlashes",schemaPath:"#/properties/ignoreDuplicateSlashes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Qe!==void 0&&(q=Qe,t!==void 0&&(t.ignoreDuplicateSlashes=Qe))}var a=Zn===s;if(a){let Qe=t.disableRequestLogging,pt=s;if(typeof Qe!="boolean"){let Ue;if(Ue===void 0)if(Qe==="false"||Qe===0||Qe===null)Ue=!1;else if(Qe==="true"||Qe===1)Ue=!0;else return nn.errors=[{instancePath:e+"/disableRequestLogging",schemaPath:"#/properties/disableRequestLogging/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Ue!==void 0&&(Qe=Ue,t!==void 0&&(t.disableRequestLogging=Ue))}var a=pt===s;if(a){let Ue=t.jsonShorthand,$t=s;if(typeof Ue!="boolean"){let Et;if(Et===void 0)if(Ue==="false"||Ue===0||Ue===null)Et=!1;else if(Ue==="true"||Ue===1)Et=!0;else return nn.errors=[{instancePath:e+"/jsonShorthand",schemaPath:"#/properties/jsonShorthand/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Et!==void 0&&(Ue=Et,t!==void 0&&(t.jsonShorthand=Et))}var a=$t===s;if(a){let Et=t.maxParamLength,ie=s;if(!(typeof Et=="number"&&!(Et%1)&&!isNaN(Et)&&isFinite(Et))){let Se=typeof Et,Xe;if(Xe===void 0)if(Se==="boolean"||Et===null||Se==="string"&&Et&&Et==+Et&&!(Et%1))Xe=+Et;else return nn.errors=[{instancePath:e+"/maxParamLength",schemaPath:"#/properties/maxParamLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;Xe!==void 0&&(Et=Xe,t!==void 0&&(t.maxParamLength=Xe))}var a=ie===s;if(a){let Se=t.onProtoPoisoning,Xe=s;if(typeof Se!="string"){let Pe=typeof Se,Lt;if(Lt===void 0)if(Pe=="number"||Pe=="boolean")Lt=""+Se;else if(Se===null)Lt="";else return nn.errors=[{instancePath:e+"/onProtoPoisoning",schemaPath:"#/properties/onProtoPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Lt!==void 0&&(Se=Lt,t!==void 0&&(t.onProtoPoisoning=Lt))}var a=Xe===s;if(a){let Pe=t.onConstructorPoisoning,Lt=s;if(typeof Pe!="string"){let Ft=typeof Pe,Zt;if(Zt===void 0)if(Ft=="number"||Ft=="boolean")Zt=""+Pe;else if(Pe===null)Zt="";else return nn.errors=[{instancePath:e+"/onConstructorPoisoning",schemaPath:"#/properties/onConstructorPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Zt!==void 0&&(Pe=Zt,t!==void 0&&(t.onConstructorPoisoning=Zt))}var a=Lt===s;if(a){let Ft=t.pluginTimeout,Zt=s;if(!(typeof Ft=="number"&&!(Ft%1)&&!isNaN(Ft)&&isFinite(Ft))){let dr=typeof Ft,si;if(si===void 0)if(dr==="boolean"||Ft===null||dr==="string"&&Ft&&Ft==+Ft&&!(Ft%1))si=+Ft;else return nn.errors=[{instancePath:e+"/pluginTimeout",schemaPath:"#/properties/pluginTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;si!==void 0&&(Ft=si,t!==void 0&&(t.pluginTimeout=si))}var a=Zt===s;if(a){let dr=t.requestIdHeader,si=s,Sr=s,bi=!1,Ri=s;if(dr!==!1){let Rr={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/0/enum",keyword:"enum",params:{allowedValues:hM.properties.requestIdHeader.anyOf[0].enum},message:"must be equal to one of the allowed values"};l===null?l=[Rr]:l.push(Rr),s++}var m=Ri===s;if(bi=bi||m,!bi){let Rr=s;if(typeof dr!="string"){let Ds=typeof dr,er;if(er===void 0)if(Ds=="number"||Ds=="boolean")er=""+dr;else if(dr===null)er="";else{let Ki={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[Ki]:l.push(Ki),s++}er!==void 0&&(dr=er,t!==void 0&&(t.requestIdHeader=er))}var m=Rr===s;bi=bi||m}if(bi)s=Sr,l!==null&&(Sr?l.length=Sr:l=null);else{let Rr={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return l===null?l=[Rr]:l.push(Rr),s++,nn.errors=l,!1}var a=si===s;if(a){let Rr=t.requestIdLogLabel,wu=s;if(typeof Rr!="string"){let er=typeof Rr,Ki;if(Ki===void 0)if(er=="number"||er=="boolean")Ki=""+Rr;else if(Rr===null)Ki="";else return nn.errors=[{instancePath:e+"/requestIdLogLabel",schemaPath:"#/properties/requestIdLogLabel/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Ki!==void 0&&(Rr=Ki,t!==void 0&&(t.requestIdLogLabel=Ki))}var a=wu===s;if(a){let er=t.http2SessionTimeout,Ki=s;if(!(typeof er=="number"&&!(er%1)&&!isNaN(er)&&isFinite(er))){let ai=typeof er,Hr;if(Hr===void 0)if(ai==="boolean"||er===null||ai==="string"&&er&&er==+er&&!(er%1))Hr=+er;else return nn.errors=[{instancePath:e+"/http2SessionTimeout",schemaPath:"#/properties/http2SessionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;Hr!==void 0&&(er=Hr,t!==void 0&&(t.http2SessionTimeout=Hr))}var a=Ki===s;if(a){let ai=t.exposeHeadRoutes,Hr=s;if(typeof ai!="boolean"){let Jr;if(Jr===void 0)if(ai==="false"||ai===0||ai===null)Jr=!1;else if(ai==="true"||ai===1)Jr=!0;else return nn.errors=[{instancePath:e+"/exposeHeadRoutes",schemaPath:"#/properties/exposeHeadRoutes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Jr!==void 0&&(ai=Jr,t!==void 0&&(t.exposeHeadRoutes=Jr))}var a=Hr===s;if(a){let Jr=t.useSemicolonDelimiter,Ea=s;if(typeof Jr!="boolean"){let yr;if(yr===void 0)if(Jr==="false"||Jr===0||Jr===null)yr=!1;else if(Jr==="true"||Jr===1)yr=!0;else return nn.errors=[{instancePath:e+"/useSemicolonDelimiter",schemaPath:"#/properties/useSemicolonDelimiter/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;yr!==void 0&&(Jr=yr,t!==void 0&&(t.useSemicolonDelimiter=yr))}var a=Ea===s;if(a){if(t.versioning!==void 0){let yr=t.versioning,Ir=s;if(s===Ir)if(yr&&typeof yr=="object"&&!Array.isArray(yr)){let Ii;if(yr.storage===void 0&&(Ii="storage")||yr.deriveVersion===void 0&&(Ii="deriveVersion"))return nn.errors=[{instancePath:e+"/versioning",schemaPath:"#/properties/versioning/required",keyword:"required",params:{missingProperty:Ii},message:"must have required property '"+Ii+"'"}],!1}else return nn.errors=[{instancePath:e+"/versioning",schemaPath:"#/properties/versioning/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=Ir===s}else var a=!0;if(a)if(t.constraints!==void 0){let yr=t.constraints,Ir=s;if(s===Ir)if(yr&&typeof yr=="object"&&!Array.isArray(yr))for(let Ii in yr){let wi=yr[Ii],os=s;if(s===os)if(wi&&typeof wi=="object"&&!Array.isArray(wi)){let Nl;if(wi.name===void 0&&(Nl="name")||wi.storage===void 0&&(Nl="storage")||wi.validate===void 0&&(Nl="validate")||wi.deriveConstraint===void 0&&(Nl="deriveConstraint"))return nn.errors=[{instancePath:e+"/constraints/"+Ii.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/required",keyword:"required",params:{missingProperty:Nl},message:"must have required property '"+Nl+"'"}],!1;if(wi.name!==void 0){let us=wi.name;if(typeof us!="string"){let Ls=typeof us,Ml;if(Ml===void 0)if(Ls=="number"||Ls=="boolean")Ml=""+us;else if(us===null)Ml="";else return nn.errors=[{instancePath:e+"/constraints/"+Ii.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/constraints/additionalProperties/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Ml!==void 0&&(us=Ml,wi!==void 0&&(wi.name=Ml))}}}else return nn.errors=[{instancePath:e+"/constraints/"+Ii.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=os===s;if(!d)break}else return nn.errors=[{instancePath:e+"/constraints",schemaPath:"#/properties/constraints/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=Ir===s}else var a=!0}}}}}}}}}}}}}}}}}}}}}}}}}else return nn.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return nn.errors=l,s===0}s7.exports.defaultInitOptions={connectionTimeout:0,keepAliveTimeout:72e3,maxRequestsPerSocket:0,requestTimeout:0,bodyLimit:1048576,caseSensitive:!0,allowUnsafeRegex:!1,disableRequestLogging:!1,jsonShorthand:!0,ignoreTrailingSlash:!1,ignoreDuplicateSlashes:!1,maxParamLength:100,onProtoPoisoning:"error",onConstructorPoisoning:"error",pluginTimeout:1e4,requestIdHeader:"request-id",requestIdLogLabel:"reqId",http2SessionTimeout:72e3,exposeHeadRoutes:!0,useSemicolonDelimiter:!0}});var yM=k((Ake,o7)=>{"use strict";var a7=mM(),Ehe=p4()({circles:!0,proto:!1}),{FST_ERR_INIT_OPTS_INVALID:bhe}=Ui();function whe(t){let e=Ehe(t);if(!a7(e)){let n=new bhe(JSON.stringify(a7.errors.map(r=>r.message)));throw n.errors=a7.errors,n}return d_(e)}function d_(t){let e=Object.getOwnPropertyNames(t);for(let n of e){let r=t[n];ArrayBuffer.isView(r)&&!(r instanceof DataView)||(t[n]=r&&typeof r=="object"?d_(r):r)}return Object.freeze(t)}o7.exports=whe;o7.exports.defaultInitOptions=a7.defaultInitOptions;o7.exports.utils={deepFreezeObject:d_}});var xM=k((Oke,TM)=>{"use strict";var{kAvvioBoot:She,kChildren:gM,kRoutePrefix:vM,kLogLevel:_M,kLogSerializers:h_,kHooks:m_,kSchemaController:j1,kContentTypeParser:EM,kReply:bM,kRequest:wM,kFourOhFour:The,kPluginNameChain:SM}=di(),xhe=p9(),Ahe=O9(),Ohe=Bv(),Nhe=Xg(),{buildHooks:Che}=m2(),Tc=Jv();TM.exports=function(e,n,r){let i=Tc.registerPlugin.call(e,n),l=Tc.getPluginName(n)||Tc.getFuncPreview(n);if(i)return e[SM].push(l),e;let s=Object.create(e);e[gM].push(s),s.ready=e[She].bind(s),s[gM]=[],s[bM]=xhe.buildReply(s[bM]),s[wM]=Ahe.buildRequest(s[wM]),s[EM]=Nhe.helpers.buildContentTypeParser(s[EM]),s[m_]=Che(s[m_]),s[vM]=Rhe(s[vM],r.prefix),s[_M]=r.logLevel||s[_M],s[j1]=Ohe.buildSchemaController(e[j1]),s.getSchema=s[j1].getSchema.bind(s[j1]),s.getSchemas=s[j1].getSchemas.bind(s[j1]),s[Tc.kRegisteredPlugins]=Object.create(s[Tc.kRegisteredPlugins]),s[SM]=[l],(s[h_]||r.logSerializers)&&(s[h_]=Object.assign(Object.create(s[h_]),r.logSerializers)),r.prefix&&s[The].arrange404(s);for(let a of s[m_].onRegister)a.call(this,s,r);return s};function Rhe(t,e){return e?(t.endsWith("/")&&e[0]==="/"?e=e.slice(1):e[0]!=="/"&&(e="/"+e),t+e):t}});var OM=k((Nke,AM)=>{"use strict";AM.exports=function(){return{[Symbol.iterator]:function*(){},add(){},delete(){},has(){return!0}}}});var NM=k(y_=>{"use strict";y_.parse=khe;y_.serialize=Dhe;var Ihe=Object.prototype.toString,u7=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function khe(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var n={},r=e||{},i=r.decode||Phe,l=0;l{"use strict";var{format:g_}=require("node:util");function v_(){let t={},e=new Map,n=Object.create(null);function r(s,a,o,{unlimited:u=!1}={}){if(!s)throw new Error("Warning name must not be empty");if(!a)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(a=a.toUpperCase(),t[a]!==void 0)throw new Error(`The code '${a}' already exist`);function c(f,m,d){let y;return f&&m&&d?y=g_(o,f,m,d):f&&m?y=g_(o,f,m):f?y=g_(o,f):y=o,{code:a,name:s,message:y}}return Object.assign(n,{unlimited:u}),e.set(a,u),t[a]=c,t[a]}function i(s,a,o={}){return r("DeprecationWarning",s,a,o)}function l(s,a,o,u){if(e.get(s)===!0&&n.unlimited===!1)return;if(t[s]===void 0)throw new Error(`The code '${s}' does not exist`);e.set(s,!0);let c=t[s](a,o,u);process.emitWarning(c.message,c.name,c.code)}return{create:r,createDeprecation:i,emit:l,emitted:e}}c7.exports=v_;c7.exports.default=v_;c7.exports.processWarning=v_});var kM=k((Ike,IM)=>{"use strict";var{URL:RM}=require("node:url"),__="http://localhost";IM.exports=function(e,n){(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]")&&e.startsWith("//")&&(e=__+e);let r=typeof e=="object"?Object.assign(new RM(__),e):new RM(e,__);if(typeof n=="string"){n=new URLSearchParams(n);for(let i of n.keys()){r.searchParams.delete(i);for(let l of n.getAll(i))r.searchParams.append(i,l)}}else{let i=Object.assign({},e.query,n);for(let l in i){let s=i[l];if(Array.isArray(s)){r.searchParams.delete(l);for(let a of s)r.searchParams.append(l,a)}else r.searchParams.set(l,s)}}return r}});var FM=k((kke,p7)=>{"use strict";var{Readable:DM,addAbortSignal:Uhe}=require("node:stream"),b_=require("node:util"),Mhe=NM(),$he=require("node:assert"),PM=CM()(),Bhe=kM(),{EventEmitter:Hhe}=require("node:events");PM.create("FastifyDeprecationLightMyRequest","FST_LIGHTMYREQUEST_DEP01",'You are accessing "request.connection", use "request.socket" instead.');function Vhe(t){return t.port?t.host:t.hostname+(t.protocol==="https:"?":443":":80")}var E_=class extends Hhe{constructor(e){super(),this.remoteAddress=e}};function LM(t){return new e(this);function e(n){sa.call(n,{...t,Request:void 0}),Object.assign(this,n);for(let r of Object.keys(sa.prototype))this.constructor.prototype[r]=sa.prototype[r];return b_.inherits(this.constructor,t.Request),this}}function sa(t){DM.call(this,{autoDestroy:!1});let e=Bhe(t.url||t.path,t.query);this.url=e.pathname+e.search,this.aborted=!1,this.httpVersionMajor=1,this.httpVersionMinor=1,this.httpVersion="1.1",this.method=t.method?t.method.toUpperCase():"GET",this.headers={},this.rawHeaders=[];let n=t.headers||{};for(let s in n){let a=s.toLowerCase();if((a==="user-agent"||a==="content-type")&&n[s]===void 0){this.headers[a]=void 0;continue}let o=n[s];$he(o!==void 0,'invalid value "undefined" for header '+s),this.headers[a]=""+o}if("user-agent"in this.headers||(this.headers["user-agent"]="lightMyRequest"),this.headers.host=this.headers.host||t.authority||Vhe(e),t.cookies){let{cookies:s}=t,a=Object.keys(s).map(o=>Mhe.serialize(o,s[o]));this.headers.cookie&&a.unshift(this.headers.cookie),this.headers.cookie=a.join("; ")}this.socket=new E_(t.remoteAddress||"127.0.0.1"),Object.defineProperty(this,"connection",{get(){return PM.emit("FST_LIGHTMYREQUEST_DEP01"),this.socket},configurable:!0});let r=t.payload||t.body||null,i=r&&typeof r.resume=="function";r&&typeof r!="string"&&!i&&!Buffer.isBuffer(r)&&(r=JSON.stringify(r),"content-type"in this.headers||(this.headers["content-type"]="application/json")),r&&!i&&!Object.prototype.hasOwnProperty.call(this.headers,"content-length")&&(this.headers["content-length"]=(Buffer.isBuffer(r)?r.length:Buffer.byteLength(r)).toString());for(let s of Object.keys(this.headers))this.rawHeaders.push(s,this.headers[s]);this._lightMyRequest={payload:r,isDone:!1,simulate:t.simulate||{}};let l=t.signal;return l&&Uhe(l,this),this}b_.inherits(sa,DM);b_.inherits(LM,sa);sa.prototype.prepare=function(t){let e=this._lightMyRequest.payload;if(!e||typeof e.resume!="function")return t();let n=[];e.on("data",r=>n.push(Buffer.from(r))),e.on("end",()=>{let r=Buffer.concat(n);return this.headers["content-length"]=this.headers["content-length"]||""+r.length,this._lightMyRequest.payload=r,t()}),e.resume()};sa.prototype._read=function(t){setImmediate(()=>{if(this._lightMyRequest.isDone){this._lightMyRequest.simulate.end!==!1&&this.push(null);return}this._lightMyRequest.isDone=!0,this._lightMyRequest.payload&&(this._lightMyRequest.simulate.split?(this.push(this._lightMyRequest.payload.slice(0,1)),this.push(this._lightMyRequest.payload.slice(1))):this.push(this._lightMyRequest.payload)),this._lightMyRequest.simulate.error&&this.emit("error",new Error("Simulated")),this._lightMyRequest.simulate.close&&this.emit("close"),this._lightMyRequest.simulate.end!==!1&&this.push(null)})};sa.prototype.destroy=function(t){this.destroyed||this._lightMyRequest.isDone||(this.destroyed=!0,t&&(this._error=!0,process.nextTick(()=>this.emit("error",t))),process.nextTick(()=>this.emit("close")))};p7.exports=sa;p7.exports.Request=sa;p7.exports.CustomRequest=LM});var UM=k((Dke,xc)=>{"use strict";var U1={decodeValues:!0,map:!1,silent:!1};function w_(t){return typeof t=="string"&&!!t.trim()}function S_(t,e){var n=t.split(";").filter(w_),r=n.shift(),i=qhe(r),l=i.name,s=i.value;e=e?Object.assign({},U1,e):U1;try{s=e.decodeValues?decodeURIComponent(s):s}catch(o){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+s+"'. Set options.decodeValues to false to disable this feature.",o)}var a={name:l,value:s};return n.forEach(function(o){var u=o.split("="),c=u.shift().trimLeft().toLowerCase(),f=u.join("=");c==="expires"?a.expires=new Date(f):c==="max-age"?a.maxAge=parseInt(f,10):c==="secure"?a.secure=!0:c==="httponly"?a.httpOnly=!0:c==="samesite"?a.sameSite=f:a[c]=f}),a}function qhe(t){var e="",n="",r=t.split("=");return r.length>1?(e=r.shift(),n=r.join("=")):n=t,{name:e,value:n}}function jM(t,e){if(e=e?Object.assign({},U1,e):U1,!t)return e.map?{}:[];if(t.headers)if(typeof t.headers.getSetCookie=="function")t=t.headers.getSetCookie();else if(t.headers["set-cookie"])t=t.headers["set-cookie"];else{var n=t.headers[Object.keys(t.headers).find(function(i){return i.toLowerCase()==="set-cookie"})];!n&&t.headers.cookie&&!e.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),t=n}if(Array.isArray(t)||(t=[t]),e=e?Object.assign({},U1,e):U1,e.map){var r={};return t.filter(w_).reduce(function(i,l){var s=S_(l,e);return i[s.name]=s,i},r)}else return t.filter(w_).map(function(i){return S_(i,e)})}function zhe(t){if(Array.isArray(t))return t;if(typeof t!="string")return[];var e=[],n=0,r,i,l,s,a;function o(){for(;n=t.length)&&e.push(t.substring(r,t.length))}return e}xc.exports=jM;xc.exports.parse=jM;xc.exports.parseString=S_;xc.exports.splitCookiesString=zhe});var BM=k((Pke,$M)=>{"use strict";var Ac=require("node:http"),{Writable:Ghe}=require("node:stream"),Jhe=require("node:util"),Khe=UM();function j2(t,e,n){Ac.ServerResponse.call(this,t),this._lightMyRequest={headers:null,trailers:{},payloadChunks:[]},this.setHeader("foo","bar"),this.removeHeader("foo"),this.assignSocket(Whe()),this._promiseCallback=typeof n=="function";let r=!1,i=s=>{if(r=!0,this._promiseCallback)return process.nextTick(()=>e(s));process.nextTick(()=>e(null,s))},l=s=>{if(!r){if(r=!0,this._promiseCallback)return process.nextTick(()=>n(s));process.nextTick(()=>e(s,null))}};this.once("finish",()=>{let s=Xhe(this);s.raw.req=t,i(s)}),this.connection.once("error",l),this.once("error",l),this.once("close",l)}Jhe.inherits(j2,Ac.ServerResponse);j2.prototype.setTimeout=function(t,e){return this.timeoutHandle=setTimeout(()=>{this.emit("timeout")},t),this.on("timeout",e),this};j2.prototype.writeHead=function(){let t=Ac.ServerResponse.prototype.writeHead.apply(this,arguments);return MM(this),t};j2.prototype.write=function(t,e,n){return this.timeoutHandle&&clearTimeout(this.timeoutHandle),Ac.ServerResponse.prototype.write.call(this,t,e,n),this._lightMyRequest.payloadChunks.push(Buffer.from(t,e)),!0};j2.prototype.end=function(t,e,n){t&&this.write(t,e),Ac.ServerResponse.prototype.end.call(this,n),this.emit("finish"),this.destroy()};j2.prototype.destroy=function(t){this.destroyed||(this.destroyed=!0,t&&process.nextTick(()=>this.emit("error",t)),process.nextTick(()=>this.emit("close")))};j2.prototype.addTrailers=function(t){for(let e in t)this._lightMyRequest.trailers[e.toLowerCase().trim()]=t[e].toString().trim()};function Xhe(t){t._lightMyRequest.headers===null&&MM(t),Yhe(t);let e={raw:{res:t},headers:t._lightMyRequest.headers,statusCode:t.statusCode,statusMessage:t.statusMessage,trailers:{},get cookies(){return Khe.parse(this)}},n=Buffer.concat(t._lightMyRequest.payloadChunks);return e.rawPayload=n,e.payload=n.toString(),e.body=e.payload,e.trailers=t._lightMyRequest.trailers,e.json=function(){return JSON.parse(e.payload)},e}function Whe(){return new Ghe({write(t,e,n){setImmediate(n)}})}function Yhe(t){let e=t._lightMyRequest.headers;for(let n of Object.keys(e)){let r=e[n];Array.isArray(r)?e[n]=r.map(i=>""+i):e[n]=""+r}}function MM(t){t._lightMyRequest.headers=Object.assign({},t.getHeaders()),["Date","Connection","Transfer-Encoding"].forEach(e=>{let n=new RegExp("\\r\\n"+e+": ([^\\r]*)\\r\\n"),r=t._header.match(n);r&&(t._lightMyRequest.headers[e.toLowerCase()]=r[1])})}$M.exports=j2});var HM=k((Lke,T_)=>{"use strict";T_.exports=qr;T_.exports.default=qr;var Qhe={type:"object",properties:{url:{oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},path:{oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},cookies:{type:"object",additionalProperties:!0},headers:{type:"object",additionalProperties:!0},query:{anyOf:[{type:"object",additionalProperties:!0},{type:"string"}]},simulate:{type:"object",properties:{end:{type:"boolean"},split:{type:"boolean"},error:{type:"boolean"},close:{type:"boolean"}}},authority:{type:"string"},remoteAddress:{type:"string"},method:{type:"string",enum:["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE","acl","bind","checkout","connect","copy","delete","get","head","link","lock","m-search","merge","mkactivity","mkcalendar","mkcol","move","notify","options","patch","post","propfind","proppatch","purge","put","rebind","report","search","source","subscribe","trace","unbind","unlink","unlock","unsubscribe"]},validate:{type:"boolean"}},additionalProperties:!0,oneOf:[{required:["url"]},{required:["path"]}]};function qr(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:i=t}={}){let l=null,s=0,a=s,o=!1,u=null,c=s;if(t&&typeof t=="object"&&!Array.isArray(t)){let v;if(t.url===void 0&&(v="url")){let x={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"};l===null?l=[x]:l.push(x),s++}}var m=c===s;m&&(o=!0,u=0);let f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){let v;if(t.path===void 0&&(v="path")){let x={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"};l===null?l=[x]:l.push(x),s++}}var m=f===s;if(m&&o?(o=!1,u=[u,1]):m&&(o=!0,u=1),o)s=a,l!==null&&(a?l.length=a:l=null);else{let v={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};return l===null?l=[v]:l.push(v),s++,qr.errors=l,!1}if(s===0)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.url!==void 0){let v=t.url,x=s,O=s,N=!1,R=null,U=s;if(typeof v!="string"){let te=typeof v,Q;if(Q===void 0)if(te=="number"||te=="boolean")Q=""+v;else if(v===null)Q="";else{let W={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[W]:l.push(W),s++}Q!==void 0&&(v=Q,t!==void 0&&(t.url=Q))}var y=U===s;y&&(N=!0,R=0);let F=s;if(s===F)if(v&&typeof v=="object"&&!Array.isArray(v)){let te;if(v.pathname===void 0&&(te="pathname")){let Q={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/1/required",keyword:"required",params:{missingProperty:te},message:"must have required property '"+te+"'"};l===null?l=[Q]:l.push(Q),s++}else{if(v.protocol!==void 0){let Q=v.protocol,W=s;if(typeof Q!="string"){let ce=typeof Q,we;if(we===void 0)if(ce=="number"||ce=="boolean")we=""+Q;else if(Q===null)we="";else{let se={instancePath:e+"/url/protocol",schemaPath:"#/properties/url/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[se]:l.push(se),s++}we!==void 0&&(Q=we,v!==void 0&&(v.protocol=we))}var d=W===s}else var d=!0;if(d){if(v.hostname!==void 0){let Q=v.hostname,W=s;if(typeof Q!="string"){let we=typeof Q,se;if(se===void 0)if(we=="number"||we=="boolean")se=""+Q;else if(Q===null)se="";else{let ee={instancePath:e+"/url/hostname",schemaPath:"#/properties/url/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[ee]:l.push(ee),s++}se!==void 0&&(Q=se,v!==void 0&&(v.hostname=se))}var d=W===s}else var d=!0;if(d)if(v.pathname!==void 0){let Q=v.pathname,W=s;if(typeof Q!="string"){let we=typeof Q,se;if(se===void 0)if(we=="number"||we=="boolean")se=""+Q;else if(Q===null)se="";else{let ee={instancePath:e+"/url/pathname",schemaPath:"#/properties/url/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[ee]:l.push(ee),s++}se!==void 0&&(Q=se,v!==void 0&&(v.pathname=se))}var d=W===s}else var d=!0}}}else{let te={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};l===null?l=[te]:l.push(te),s++}var y=F===s;if(y&&N?(N=!1,R=[R,1]):y&&(N=!0,R=1),N)s=O,l!==null&&(O?l.length=O:l=null);else{let te={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf",keyword:"oneOf",params:{passingSchemas:R},message:"must match exactly one schema in oneOf"};return l===null?l=[te]:l.push(te),s++,qr.errors=l,!1}var _=x===s}else var _=!0;if(_){if(t.path!==void 0){let v=t.path,x=s,O=s,N=!1,R=null,U=s;if(typeof v!="string"){let Q=typeof v,W;if(W===void 0)if(Q=="number"||Q=="boolean")W=""+v;else if(v===null)W="";else{let ce={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[ce]:l.push(ce),s++}W!==void 0&&(v=W,t!==void 0&&(t.path=W))}var w=U===s;w&&(N=!0,R=0);let F=s;if(s===F)if(v&&typeof v=="object"&&!Array.isArray(v)){let Q;if(v.pathname===void 0&&(Q="pathname")){let W={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/1/required",keyword:"required",params:{missingProperty:Q},message:"must have required property '"+Q+"'"};l===null?l=[W]:l.push(W),s++}else{if(v.protocol!==void 0){let W=v.protocol,ce=s;if(typeof W!="string"){let we=typeof W,se;if(se===void 0)if(we=="number"||we=="boolean")se=""+W;else if(W===null)se="";else{let ee={instancePath:e+"/path/protocol",schemaPath:"#/properties/path/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[ee]:l.push(ee),s++}se!==void 0&&(W=se,v!==void 0&&(v.protocol=se))}var S=ce===s}else var S=!0;if(S){if(v.hostname!==void 0){let W=v.hostname,ce=s;if(typeof W!="string"){let se=typeof W,ee;if(ee===void 0)if(se=="number"||se=="boolean")ee=""+W;else if(W===null)ee="";else{let me={instancePath:e+"/path/hostname",schemaPath:"#/properties/path/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[me]:l.push(me),s++}ee!==void 0&&(W=ee,v!==void 0&&(v.hostname=ee))}var S=ce===s}else var S=!0;if(S)if(v.pathname!==void 0){let W=v.pathname,ce=s;if(typeof W!="string"){let se=typeof W,ee;if(ee===void 0)if(se=="number"||se=="boolean")ee=""+W;else if(W===null)ee="";else{let me={instancePath:e+"/path/pathname",schemaPath:"#/properties/path/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[me]:l.push(me),s++}ee!==void 0&&(W=ee,v!==void 0&&(v.pathname=ee))}var S=ce===s}else var S=!0}}}else{let Q={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};l===null?l=[Q]:l.push(Q),s++}var w=F===s;if(w&&N?(N=!1,R=[R,1]):w&&(N=!0,R=1),N)s=O,l!==null&&(O?l.length=O:l=null);else{let Q={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf",keyword:"oneOf",params:{passingSchemas:R},message:"must match exactly one schema in oneOf"};return l===null?l=[Q]:l.push(Q),s++,qr.errors=l,!1}var _=x===s}else var _=!0;if(_){if(t.cookies!==void 0){let v=t.cookies,x=s;if(s===x&&!(v&&typeof v=="object"&&!Array.isArray(v)))return qr.errors=[{instancePath:e+"/cookies",schemaPath:"#/properties/cookies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=x===s}else var _=!0;if(_){if(t.headers!==void 0){let v=t.headers,x=s;if(s===x&&!(v&&typeof v=="object"&&!Array.isArray(v)))return qr.errors=[{instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=x===s}else var _=!0;if(_){if(t.query!==void 0){let v=t.query,x=s,O=s,N=!1,R=s;if(s===R&&!(v&&typeof v=="object"&&!Array.isArray(v))){let F={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};l===null?l=[F]:l.push(F),s++}var E=R===s;if(N=N||E,!N){let F=s;if(typeof v!="string"){let Q=typeof v,W;if(W===void 0)if(Q=="number"||Q=="boolean")W=""+v;else if(v===null)W="";else{let ce={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};l===null?l=[ce]:l.push(ce),s++}W!==void 0&&(v=W,t!==void 0&&(t.query=W))}var E=F===s;N=N||E}if(N)s=O,l!==null&&(O?l.length=O:l=null);else{let F={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return l===null?l=[F]:l.push(F),s++,qr.errors=l,!1}var _=x===s}else var _=!0;if(_){if(t.simulate!==void 0){let v=t.simulate,x=s;if(s===x)if(v&&typeof v=="object"&&!Array.isArray(v)){if(v.end!==void 0){let N=v.end,R=s;if(typeof N!="boolean"){let U;if(U===void 0)if(N==="false"||N===0||N===null)U=!1;else if(N==="true"||N===1)U=!0;else return qr.errors=[{instancePath:e+"/simulate/end",schemaPath:"#/properties/simulate/properties/end/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;U!==void 0&&(N=U,v!==void 0&&(v.end=U))}var g=R===s}else var g=!0;if(g){if(v.split!==void 0){let N=v.split,R=s;if(typeof N!="boolean"){let F;if(F===void 0)if(N==="false"||N===0||N===null)F=!1;else if(N==="true"||N===1)F=!0;else return qr.errors=[{instancePath:e+"/simulate/split",schemaPath:"#/properties/simulate/properties/split/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;F!==void 0&&(N=F,v!==void 0&&(v.split=F))}var g=R===s}else var g=!0;if(g){if(v.error!==void 0){let N=v.error,R=s;if(typeof N!="boolean"){let F;if(F===void 0)if(N==="false"||N===0||N===null)F=!1;else if(N==="true"||N===1)F=!0;else return qr.errors=[{instancePath:e+"/simulate/error",schemaPath:"#/properties/simulate/properties/error/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;F!==void 0&&(N=F,v!==void 0&&(v.error=F))}var g=R===s}else var g=!0;if(g)if(v.close!==void 0){let N=v.close,R=s;if(typeof N!="boolean"){let F;if(F===void 0)if(N==="false"||N===0||N===null)F=!1;else if(N==="true"||N===1)F=!0;else return qr.errors=[{instancePath:e+"/simulate/close",schemaPath:"#/properties/simulate/properties/close/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;F!==void 0&&(N=F,v!==void 0&&(v.close=F))}var g=R===s}else var g=!0}}}else return qr.errors=[{instancePath:e+"/simulate",schemaPath:"#/properties/simulate/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=x===s}else var _=!0;if(_){if(t.authority!==void 0){let v=t.authority,x=s;if(typeof v!="string"){let N=typeof v,R;if(R===void 0)if(N=="number"||N=="boolean")R=""+v;else if(v===null)R="";else return qr.errors=[{instancePath:e+"/authority",schemaPath:"#/properties/authority/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;R!==void 0&&(v=R,t!==void 0&&(t.authority=R))}var _=x===s}else var _=!0;if(_){if(t.remoteAddress!==void 0){let v=t.remoteAddress,x=s;if(typeof v!="string"){let N=typeof v,R;if(R===void 0)if(N=="number"||N=="boolean")R=""+v;else if(v===null)R="";else return qr.errors=[{instancePath:e+"/remoteAddress",schemaPath:"#/properties/remoteAddress/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;R!==void 0&&(v=R,t!==void 0&&(t.remoteAddress=R))}var _=x===s}else var _=!0;if(_){if(t.method!==void 0){let v=t.method,x=s;if(typeof v!="string"){let N=typeof v,R;if(R===void 0)if(N=="number"||N=="boolean")R=""+v;else if(v===null)R="";else return qr.errors=[{instancePath:e+"/method",schemaPath:"#/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;R!==void 0&&(v=R,t!==void 0&&(t.method=R))}if(!(v==="ACL"||v==="BIND"||v==="CHECKOUT"||v==="CONNECT"||v==="COPY"||v==="DELETE"||v==="GET"||v==="HEAD"||v==="LINK"||v==="LOCK"||v==="M-SEARCH"||v==="MERGE"||v==="MKACTIVITY"||v==="MKCALENDAR"||v==="MKCOL"||v==="MOVE"||v==="NOTIFY"||v==="OPTIONS"||v==="PATCH"||v==="POST"||v==="PROPFIND"||v==="PROPPATCH"||v==="PURGE"||v==="PUT"||v==="REBIND"||v==="REPORT"||v==="SEARCH"||v==="SOURCE"||v==="SUBSCRIBE"||v==="TRACE"||v==="UNBIND"||v==="UNLINK"||v==="UNLOCK"||v==="UNSUBSCRIBE"||v==="acl"||v==="bind"||v==="checkout"||v==="connect"||v==="copy"||v==="delete"||v==="get"||v==="head"||v==="link"||v==="lock"||v==="m-search"||v==="merge"||v==="mkactivity"||v==="mkcalendar"||v==="mkcol"||v==="move"||v==="notify"||v==="options"||v==="patch"||v==="post"||v==="propfind"||v==="proppatch"||v==="purge"||v==="put"||v==="rebind"||v==="report"||v==="search"||v==="source"||v==="subscribe"||v==="trace"||v==="unbind"||v==="unlink"||v==="unlock"||v==="unsubscribe"))return qr.errors=[{instancePath:e+"/method",schemaPath:"#/properties/method/enum",keyword:"enum",params:{allowedValues:Qhe.properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var _=x===s}else var _=!0;if(_)if(t.validate!==void 0){let v=t.validate,x=s;if(typeof v!="boolean"){let N;if(N===void 0)if(v==="false"||v===0||v===null)N=!1;else if(v==="true"||v===1)N=!0;else return qr.errors=[{instancePath:e+"/validate",schemaPath:"#/properties/validate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;N!==void 0&&(v=N,t!==void 0&&(t.validate=N))}var _=x===s}else var _=!0}}}}}}}}}else return qr.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return qr.errors=l,s===0}});var zM=k((Fke,Nc)=>{"use strict";var Zhe=require("node:assert"),x_=FM(),f7=BM(),h7="The dispatch function has already been invoked",VM=HM();function A_(t,e,n){return typeof n>"u"?new Oc(t,e):d7(t,e,n)}function qM(t,e,n,r){return n.once("error",function(i){this.destroyed&&r.destroy(i)}),n.once("close",function(){this.destroyed&&!this._error&&r.destroy()}),n.prepare(()=>t.call(e,n,r))}function d7(t,e,n){if(e=typeof e=="string"?{url:e}:e,e.validate!==!1&&(Zhe(typeof t=="function","dispatchFunc should be a function"),!VM(e)))throw new Error(VM.errors.map(s=>s.message));let r=e.server||{},i=e.Request?x_.CustomRequest:x_;if(t.request&&t.request.app===t&&(Object.setPrototypeOf(Object.getPrototypeOf(t.request),i.prototype),Object.setPrototypeOf(Object.getPrototypeOf(t.response),f7.prototype)),typeof n=="function"){let l=new i(e),s=new f7(l,n);return qM(t,r,l,s)}else return new Promise((l,s)=>{let a=new i(e),o=new f7(a,l,s);qM(t,r,a,o)})}function Oc(t,e){typeof e=="string"?this.option={url:e}:this.option=Object.assign({},e),this.dispatch=t,this._hasInvoked=!1,this._promise=null,this.option.autoStart!==!1&&process.nextTick(()=>{this._hasInvoked||this.end()})}var eme=["delete","get","head","options","patch","post","put","trace"];eme.forEach(t=>{Oc.prototype[t]=function(e){if(this._hasInvoked===!0||this._promise)throw new Error(h7);return this.option.url=e,this.option.method=t.toUpperCase(),this}});var tme=["body","cookies","headers","payload","query"];tme.forEach(t=>{Oc.prototype[t]=function(e){if(this._hasInvoked===!0||this._promise)throw new Error(h7);return this.option[t]=e,this}});Oc.prototype.end=function(t){if(this._hasInvoked===!0||this._promise)throw new Error(h7);if(this._hasInvoked=!0,typeof t=="function")d7(this.dispatch,this.option,t);else return this._promise=d7(this.dispatch,this.option),this._promise};Object.getOwnPropertyNames(Promise.prototype).forEach(t=>{t!=="constructor"&&(Oc.prototype[t]=function(...e){if(!this._promise){if(this._hasInvoked===!0)throw new Error(h7);this._hasInvoked=!0,this._promise=d7(this.dispatch,this.option)}return this._promise[t](...e)})});function nme(t){return t instanceof x_||t instanceof f7||t&&t.constructor&&t.constructor.name==="_CustomLMRRequest"}Nc.exports=A_;Nc.exports.default=A_;Nc.exports.inject=A_;Nc.exports.isInjection=nme});var s$=k((jke,v7)=>{"use strict";var rme="4.26.0",ime=ZA(),O_=require("node:http"),Cc,{kAvvioBoot:Rc,kChildren:N_,kServerBindings:GM,kBodyLimit:lme,kRoutePrefix:JM,kLogLevel:sme,kLogSerializers:ame,kHooks:C_,kSchemaController:U2,kRequestAcceptVersion:ome,kReplySerializerDefault:KM,kContentTypeParser:ume,kReply:cme,kRequest:pme,kFourOhFour:fme,kState:Mr,kOptions:R_,kPluginNameChain:Ic,kSchemaErrorFormatter:I_,kErrorHandler:m7,kKeepAliveConnections:k_,kChildLoggerFactory:D_,kGenReqId:P_}=di(),{createServer:dme,compileValidateHTTPVersion:hme}=TO(),kc=p9(),y7=O9(),mme=N9(),{supportedMethods:yme}=Lg(),M1=$g(),V3=Xg(),XM=Bv(),{Hooks:gme,hookRunnerApplication:WM,supportedHooks:L_}=m2(),{createLogger:vme,createChildLogger:YM,defaultChildLoggerFactory:_me}=c4(),QM=Jv(),{getGenReqId:ZM,reqIdGenFactory:e$}=K9(),{buildRouting:Eme,validateBodyLimitOption:bme}=sM(),wme=dM(),l$=yM(),Sme=xM(),{FSTDEP009:Tme}=Fa(),xme=OM(),{appendStackTrace:Ame,AVVIO_ERRORS_MAP:t$,...q3}=Ui(),{defaultInitOptions:vl}=l$,{FST_ERR_ASYNC_CONSTRAINT:Ome,FST_ERR_BAD_URL:Nme,FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:Cme,FST_ERR_OPTIONS_NOT_OBJ:Rme,FST_ERR_QSP_NOT_FN:Ime,FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:kme,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:Dme,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:Pme,FST_ERR_VERSION_CONSTRAINT_NOT_STR:Lme,FST_ERR_INSTANCE_ALREADY_LISTENING:Fme,FST_ERR_REOPENED_CLOSE_SERVER:jme,FST_ERR_ROUTE_REWRITE_NOT_STR:Ume,FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:n$}=q3,{buildErrorHandler:r$}=V4();function Mme(t){let e={};return["errorHandler","logLevel","logSerializers"].concat(L_).forEach(r=>{e[r]=t.store[r]}),Object.assign({},e)}function g7(t){if(t=t||{},typeof t!="object")throw new Rme;if(t.querystringParser&&typeof t.querystringParser!="function")throw new Ime(typeof t.querystringParser);if(t.schemaController&&t.schemaController.bucket&&typeof t.schemaController.bucket!="function")throw new kme(typeof t.schemaController.bucket);bme(t.bodyLimit);let e=t.requestIdHeader===!1?!1:(t.requestIdHeader||vl.requestIdHeader).toLowerCase(),n=e$(e,t.genReqId),r=t.requestIdLogLabel||"reqId",i=t.bodyLimit||vl.bodyLimit,l=t.disableRequestLogging||!1,s=Object.assign({customOptions:{},plugins:[]},t.ajv),a=t.frameworkErrors;if(!s.customOptions||Object.prototype.toString.call(s.customOptions)!=="[object Object]")throw new Dme(typeof s.customOptions);if(!s.plugins||!Array.isArray(s.plugins))throw new Pme(typeof s.plugins);let{logger:o,hasLogger:u}=vme(t);t.connectionTimeout=t.connectionTimeout||vl.connectionTimeout,t.keepAliveTimeout=t.keepAliveTimeout||vl.keepAliveTimeout,t.maxRequestsPerSocket=t.maxRequestsPerSocket||vl.maxRequestsPerSocket,t.requestTimeout=t.requestTimeout||vl.requestTimeout,t.logger=o,t.requestIdHeader=e,t.requestIdLogLabel=r,t.disableRequestLogging=l,t.ajv=s,t.clientErrorHandler=t.clientErrorHandler||ee;let c=l$(t);t.exposeHeadRoutes=c.exposeHeadRoutes;let f=t.constraints;t.versioning&&(Tme(),f={...f,version:{name:"version",mustMatchWhenDerived:!0,storage:t.versioning.storage,deriveConstraint:t.versioning.deriveVersion,validate(ie){if(typeof ie!="string")throw new Lme}}});let m=Eme({config:{defaultRoute:me,onBadUrl:P,constraints:f,ignoreTrailingSlash:t.ignoreTrailingSlash||vl.ignoreTrailingSlash,ignoreDuplicateSlashes:t.ignoreDuplicateSlashes||vl.ignoreDuplicateSlashes,maxParamLength:t.maxParamLength||vl.maxParamLength,caseSensitive:t.caseSensitive,allowUnsafeRegex:t.allowUnsafeRegex||vl.allowUnsafeRegex,buildPrettyMeta:Mme,querystringParser:t.querystringParser,useSemicolonDelimiter:t.useSemicolonDelimiter??vl.useSemicolonDelimiter}}),d=wme(t),y=gt(m,t);t.http2SessionTimeout=c.http2SessionTimeout;let{server:_,listen:S}=dme(t,y),w=typeof _.closeAllConnections=="function",E=typeof _.closeIdleConnections=="function",g=t.forceCloseConnections;if(g==="idle"&&!E)throw new Cme;typeof g!="boolean"&&(g=E?"idle":!1);let v=!w&&g===!0?new Set:xme(),x=kc.setupResponseListeners,O=XM.buildSchemaController(null,t.schemaController),N={[Mr]:{listening:!1,closing:!1,started:!1,ready:!1,booting:!1,readyPromise:null},[k_]:v,[R_]:t,[N_]:[],[GM]:[],[lme]:i,[JM]:"",[sme]:"",[ame]:null,[C_]:new gme,[U2]:O,[I_]:null,[m7]:r$(),[D_]:_me,[KM]:null,[ume]:new V3(i,t.onProtoPoisoning||vl.onProtoPoisoning,t.onConstructorPoisoning||vl.onConstructorPoisoning),[cme]:kc.buildReply(kc),[pme]:y7.buildRequest(y7,t.trustProxy),[fme]:d,[QM.kRegisteredPlugins]:[],[Ic]:["fastify"],[Rc]:null,[P_]:n,routing:y,getDefaultRoute:m.getDefaultRoute.bind(m),setDefaultRoute:m.setDefaultRoute.bind(m),delete:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"DELETE",url:ve,options:Se,handler:Xe})},get:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"GET",url:ve,options:Se,handler:Xe})},head:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"HEAD",url:ve,options:Se,handler:Xe})},patch:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"PATCH",url:ve,options:Se,handler:Xe})},post:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"POST",url:ve,options:Se,handler:Xe})},put:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"PUT",url:ve,options:Se,handler:Xe})},options:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:"OPTIONS",url:ve,options:Se,handler:Xe})},all:function(ve,Se,Xe){return m.prepareRoute.call(this,{method:yme,url:ve,options:Se,handler:Xe})},route:function(ve){return m.route.call(this,{options:ve})},hasRoute:function(ve){return m.hasRoute.call(this,{options:ve})},findRoute:function(ve){return m.findRoute(ve)},log:o,withTypeProvider:ce,addHook:we,addSchema:se,getSchema:O.getSchema.bind(O),getSchemas:O.getSchemas.bind(O),setValidatorCompiler:q,setSerializerCompiler:Tt,setSchemaController:Qe,setReplySerializer:pt,setSchemaErrorFormatter:Zn,setGenReqId:Et,addContentTypeParser:V3.helpers.addContentTypeParser,hasContentTypeParser:V3.helpers.hasContentTypeParser,getDefaultJsonParser:V3.defaultParsers.getDefaultJsonParser,defaultTextParser:V3.defaultParsers.defaultTextParser,removeContentTypeParser:V3.helpers.removeContentTypeParser,removeAllContentTypeParsers:V3.helpers.removeAllContentTypeParsers,register:null,after:null,ready:null,onClose:null,close:null,printPlugins:null,hasPlugin:function(ie){return this[QM.kRegisteredPlugins].includes(ie)||this[Ic].includes(ie)},listen:S,server:_,addresses:function(){let ie=this[GM].map(ve=>ve.address());return ie.push(this.server.address()),ie.filter(ve=>ve)},decorate:M1.add,hasDecorator:M1.exist,decorateReply:M1.decorateReply,decorateRequest:M1.decorateRequest,hasRequestDecorator:M1.existRequest,hasReplyDecorator:M1.existReply,inject:Q,printRoutes:$t,setNotFoundHandler:V,setErrorHandler:ze,setChildLoggerFactory:Ue,initialConfig:c,addConstraintStrategy:m.addConstraintStrategy.bind(m),hasConstraintStrategy:m.hasConstraintStrategy.bind(m)};Object.defineProperties(N,{listeningOrigin:{get(){let ie=this.addresses().slice(-1).pop();if(typeof ie=="string")return ie;let ve=ie.family==="IPv6"?`[${ie.address}]`:ie.address;return`${this[R_].https?"https":"http"}://${ve}:${ie.port}`}},pluginName:{configurable:!0,get(){return this[Ic].length>1?this[Ic].join(" -> "):this[Ic][0]}},prefix:{configurable:!0,get(){return this[JM]}},validatorCompiler:{configurable:!0,get(){return this[U2].getValidatorCompiler()}},serializerCompiler:{configurable:!0,get(){return this[U2].getSerializerCompiler()}},childLoggerFactory:{configurable:!0,get(){return this[D_]}},version:{configurable:!0,get(){return rme}},errorHandler:{configurable:!0,get(){return this[m7].func}},genReqId:{configurable:!0,get(){return this[P_]}}}),t.schemaErrorFormatter&&(i$(t.schemaErrorFormatter),N[I_]=t.schemaErrorFormatter.bind(N));let R=Number(t.pluginTimeout),U=ime(N,{autostart:!1,timeout:isNaN(R)===!1?R:vl.pluginTimeout,expose:{use:"register"}});U.override=Sme,U.on("start",()=>N[Mr].started=!0),N[Rc]=N.ready,N.ready=W,N.printPlugins=U.prettyPrint.bind(U),U.once("preReady",()=>{N.onClose((ie,ve)=>{N[Mr].closing=!0,m.closeRoutes(),WM("preClose",N[Rc],N,function(){if(N[Mr].listening){if(g==="idle")ie.server.closeIdleConnections();else if(w&&g)ie.server.closeAllConnections();else if(g===!0)for(let Se of N[k_])Se.destroy(),N[k_].delete(Se)}!t.serverFactory||N[Mr].listening?ie.server.close(function(Se){Se&&Se.code!=="ERR_SERVER_NOT_RUNNING"?ve(null):ve()}):process.nextTick(ve,null)})})});let F=new mme({server:N,config:{}});N.setNotFoundHandler(),d.arrange404(N),m.setup(t,{avvio:U,fourOhFour:d,logger:o,hasLogger:u,setupResponseListeners:x,throwIfAlreadyStarted:te,validateHTTPVersion:hme(t),keepAliveConnections:v}),_.on("clientError",t.clientErrorHandler.bind(N));try{let ve=require("node:diagnostics_channel").channel("fastify.initialization");ve.hasSubscribers&&ve.publish({fastify:N})}catch{}return"asyncDispose"in Symbol&&(N[Symbol.asyncDispose]=function(){return N.close()}),N;function te(ie){if(N[Mr].started)throw new Fme(ie)}function Q(ie,ve){if(Cc===void 0&&(Cc=zM()),N[Mr].started){if(N[Mr].closing){let Se=new jme;if(ve){ve(Se);return}else return Promise.reject(Se)}return Cc(y,ie,ve)}if(ve)this.ready(Se=>{Se?ve(Se,null):Cc(y,ie,ve)});else return Cc((Se,Xe)=>{this.ready(function(ft){if(ft){Xe.emit("error",ft);return}y(Se,Xe)})},ie)}function W(ie){if(this[Mr].readyPromise!==null){if(ie!=null){this[Mr].readyPromise.then(()=>ie(null,N),ie);return}return this[Mr].readyPromise}let ve,Se;if(process.nextTick(Xe),this[Mr].readyPromise=new Promise(function(Pe,Lt){ve=Pe,Se=Lt}),ie)this[Mr].readyPromise.then(()=>ie(null,N),ie);else return this[Mr].readyPromise;function Xe(){N[Rc]((Pe,Lt)=>{Pe||N[Mr].started||N[Mr].ready||N[Mr].booting?ft(Pe):(N[Mr].booting=!0,WM("onReady",N[Rc],N,ft)),Lt()})}function ft(Pe){if(Pe=Pe!=null&&t$[Pe.code]!=null?Ame(Pe,new t$[Pe.code](Pe.message)):Pe,Pe)return Se(Pe);ve(N),N[Mr].booting=!1,N[Mr].ready=!0,N[Mr].promise=null}}function ce(){return this}function we(ie,ve){if(te('Cannot call "addHook"!'),ve==null)throw new q3.FST_ERR_HOOK_INVALID_HANDLER(ie,ve);if(ie==="onSend"||ie==="preSerialization"||ie==="onError"||ie==="preParsing"){if(ve.constructor.name==="AsyncFunction"&&ve.length===4)throw new q3.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(ie==="onReady"||ie==="onListen"){if(ve.constructor.name==="AsyncFunction"&&ve.length!==0)throw new q3.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(ie==="onRequestAbort"){if(ve.constructor.name==="AsyncFunction"&&ve.length!==1)throw new q3.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(ve.constructor.name==="AsyncFunction"&&ve.length===3)throw new q3.FST_ERR_HOOK_INVALID_ASYNC_HANDLER;return ie==="onClose"?this.onClose(ve):ie==="onReady"||ie==="onListen"||ie==="onRoute"?this[C_].add(ie,ve):this.after((Xe,ft)=>{Se.call(this,ie,ve),ft(Xe)}),this;function Se(Xe,ft){this[C_].add(Xe,ft),this[N_].forEach(Pe=>Se.call(Pe,Xe,ft))}}function se(ie){return te('Cannot call "addSchema"!'),this[U2].add(ie),this[N_].forEach(ve=>ve.addSchema(ie)),this}function ee(ie,ve){if(ie.code==="ECONNRESET"||ve.destroyed)return;let Se,Xe,ft,Pe;ie.code==="ERR_HTTP_REQUEST_TIMEOUT"?(Xe="408",ft=O_.STATUS_CODES[Xe],Se=`{"error":"${ft}","message":"Client Timeout","statusCode":408}`,Pe="timeout"):ie.code==="HPE_HEADER_OVERFLOW"?(Xe="431",ft=O_.STATUS_CODES[Xe],Se=`{"error":"${ft}","message":"Exceeded maximum allowed HTTP header size","statusCode":431}`,Pe="header_overflow"):(Xe="400",ft=O_.STATUS_CODES[Xe],Se=`{"error":"${ft}","message":"Client Error","statusCode":400}`,Pe="error"),this.log.trace({err:ie},`client ${Pe}`),ve.writable&&ve.write(`HTTP/1.1 ${Xe} ${ft}\r
Content-Length: ${Se.length}\r
Content-Type: application/json\r
\r
-${Se}`),ve.destroy(ie)}function me(ie,ve){ie.headers["accept-version"]!==void 0&&(ie.headers[Yhe]=ie.headers["accept-version"],ie.headers["accept-version"]=void 0),d.router.lookup(ie,ve)}function P(ie,ve,Se){if(a){let ft=KM(F.server,ve),Pe=GM(F,o,ve,ft),Lt=new h7(ft,null,ve,null,Pe,F),br=new Rc(Se,Lt,Pe);return l===!1&&Pe.info({req:Lt},"incoming request"),a(new gme(ie),Lt,br)}let Xe=`{"error":"Bad Request","code":"FST_ERR_BAD_URL","message":"'${ie}' is not a valid url component","statusCode":400}`;Se.writeHead(400,{"Content-Type":"application/json","Content-Length":Xe.length}),Se.end(Xe)}function G(ie,ve,Se){if(ie!==!1)return function(ft){if(ft){if(a){let Lt=KM(F.server,ve),br=GM(F,o,ve,Lt),Ft=new h7(Lt,null,ve,null,br,F),Zt=new Rc(Se,Ft,br);return l===!1&&br.info({req:Ft},"incoming request"),a(new yme,Ft,Zt)}let Pe='{"error":"Internal Server Error","message":"Unexpected error from async constraint","statusCode":500}';Se.writeHead(500,{"Content-Type":"application/json","Content-Length":Pe.length}),Se.end(Pe)}}}function V(ie,ve){return te('Cannot call "setNotFoundHandler"!'),d.setNotFoundHandler.call(this,ie,ve,U,m.routeHandler),this}function q(ie){return te('Cannot call "setValidatorCompiler"!'),this[j2].setValidatorCompiler(ie),this}function Qn(ie){return te('Cannot call "setSchemaErrorFormatter"!'),ZM(ie),this[N_]=ie.bind(this),this}function Tt(ie){return te('Cannot call "setSerializerCompiler"!'),this[j2].setSerializerCompiler(ie),this}function Qe(ie){te('Cannot call "setSchemaController"!');let ve=this[j2],Se=qM.buildSchemaController(ve,Object.assign({},ve.opts,ie));return this[j2]=Se,this.getSchema=Se.getSchema.bind(Se),this.getSchemas=Se.getSchemas.bind(Se),this}function pt(ie){return te('Cannot call "setReplySerializer"!'),this[VM]=ie,this}function qe(ie){return te('Cannot call "setErrorHandler"!'),this[d7]=QM(this[d7],ie.bind(this)),this}function Ue(ie){return te('Cannot call "setChildLoggerFactory"!'),this[R_]=ie,this}function $t(ie={}){return ie.includeMeta=ie.includeHooks?ie.includeMeta?k_.concat(ie.includeMeta):k_:ie.includeMeta,m.printRoutes(ie)}function gt(ie,{rewriteUrl:ve,logger:Se}){let Xe;return function(Pe,Lt){if(Xe===void 0&&(Xe=ie.isAsyncConstraint()),ve){Pe.originalUrl=Pe.url;let br=ve.call(N,Pe);if(typeof br=="string")Pe.url=br;else{let Ft=new Ome(Pe.url,typeof br);Pe.destroy(Ft)}}ie.routing(Pe,Lt,G(Xe,Pe,Lt))}}function Et(ie){return te('Cannot call "setGenReqId"!'),this[I_]=XM(this[O_].requestIdHeader,ie),this}}m7.errorCodes=Bo;function ZM(t){if(typeof t!="function")throw new YM(typeof t);if(t.constructor.name==="AsyncFunction")throw new YM("AsyncFunction")}y7.exports=m7;y7.exports.fastify=m7;y7.exports.default=m7});var Nq=k((uPe,Oq)=>{"use strict";Oq.exports=Error});var Rq=k((cPe,Cq)=>{"use strict";Cq.exports=EvalError});var kq=k((pPe,Iq)=>{"use strict";Iq.exports=RangeError});var Pq=k((fPe,Dq)=>{"use strict";Dq.exports=ReferenceError});var bb=k((dPe,Lq)=>{"use strict";Lq.exports=SyntaxError});var y0=k((hPe,Fq)=>{"use strict";Fq.exports=TypeError});var Uq=k((mPe,jq)=>{"use strict";jq.exports=URIError});var $q=k((yPe,Mq)=>{"use strict";Mq.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[n]=i;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var Vq=k((gPe,Hq)=>{"use strict";var Bq=typeof Symbol<"u"&&Symbol,NEe=$q();Hq.exports=function(){return typeof Bq!="function"||typeof Symbol!="function"||typeof Bq("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:NEe()}});var zq=k((vPe,qq)=>{"use strict";var wb={__proto__:null,foo:{}},CEe=Object;qq.exports=function(){return{__proto__:wb}.foo===wb.foo&&!(wb instanceof CEe)}});var Kq=k((_Pe,Jq)=>{"use strict";var REe="Function.prototype.bind called on incompatible ",IEe=Object.prototype.toString,kEe=Math.max,DEe="[object Function]",Gq=function(e,n){for(var r=[],i=0;i{"use strict";var FEe=Kq();Xq.exports=Function.prototype.bind||FEe});var Yq=k((bPe,Wq)=>{"use strict";var jEe=Function.prototype.call,UEe=Object.prototype.hasOwnProperty,MEe=Up();Wq.exports=MEe.call(jEe,UEe)});var uu=k((wPe,nz)=>{"use strict";var zt,$Ee=Nq(),BEe=Rq(),HEe=kq(),VEe=Pq(),E0=bb(),_0=y0(),qEe=Uq(),tz=Function,Sb=function(t){try{return tz('"use strict"; return ('+t+").constructor;")()}catch{}},au=Object.getOwnPropertyDescriptor;if(au)try{au({},"")}catch{au=null}var Tb=function(){throw new _0},zEe=au?function(){try{return arguments.callee,Tb}catch{try{return au(arguments,"callee").get}catch{return Tb}}}():Tb,g0=Vq()(),GEe=zq()(),gi=Object.getPrototypeOf||(GEe?function(t){return t.__proto__}:null),v0={},JEe=typeof Uint8Array>"u"||!gi?zt:gi(Uint8Array),ou={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?zt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?zt:ArrayBuffer,"%ArrayIteratorPrototype%":g0&&gi?gi([][Symbol.iterator]()):zt,"%AsyncFromSyncIteratorPrototype%":zt,"%AsyncFunction%":v0,"%AsyncGenerator%":v0,"%AsyncGeneratorFunction%":v0,"%AsyncIteratorPrototype%":v0,"%Atomics%":typeof Atomics>"u"?zt:Atomics,"%BigInt%":typeof BigInt>"u"?zt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?zt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?zt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?zt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Ee,"%eval%":eval,"%EvalError%":BEe,"%Float32Array%":typeof Float32Array>"u"?zt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?zt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?zt:FinalizationRegistry,"%Function%":tz,"%GeneratorFunction%":v0,"%Int8Array%":typeof Int8Array>"u"?zt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?zt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?zt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g0&&gi?gi(gi([][Symbol.iterator]())):zt,"%JSON%":typeof JSON=="object"?JSON:zt,"%Map%":typeof Map>"u"?zt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!g0||!gi?zt:gi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?zt:Promise,"%Proxy%":typeof Proxy>"u"?zt:Proxy,"%RangeError%":HEe,"%ReferenceError%":VEe,"%Reflect%":typeof Reflect>"u"?zt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?zt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!g0||!gi?zt:gi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?zt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g0&&gi?gi(""[Symbol.iterator]()):zt,"%Symbol%":g0?Symbol:zt,"%SyntaxError%":E0,"%ThrowTypeError%":zEe,"%TypedArray%":JEe,"%TypeError%":_0,"%Uint8Array%":typeof Uint8Array>"u"?zt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?zt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?zt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?zt:Uint32Array,"%URIError%":qEe,"%WeakMap%":typeof WeakMap>"u"?zt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?zt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?zt:WeakSet};if(gi)try{null.error}catch(t){Qq=gi(gi(t)),ou["%Error.prototype%"]=Qq}var Qq,KEe=function t(e){var n;if(e==="%AsyncFunction%")n=Sb("async function () {}");else if(e==="%GeneratorFunction%")n=Sb("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=Sb("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&gi&&(n=gi(i.prototype))}return ou[e]=n,n},Zq={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T5=Up(),Mp=Yq(),XEe=T5.call(Function.call,Array.prototype.concat),WEe=T5.call(Function.apply,Array.prototype.splice),ez=T5.call(Function.call,String.prototype.replace),$p=T5.call(Function.call,String.prototype.slice),YEe=T5.call(Function.call,RegExp.prototype.exec),QEe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ZEe=/\\(\\)?/g,ebe=function(e){var n=$p(e,0,1),r=$p(e,-1);if(n==="%"&&r!=="%")throw new E0("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new E0("invalid intrinsic syntax, expected opening `%`");var i=[];return ez(e,QEe,function(l,s,a,o){i[i.length]=a?ez(o,ZEe,"$1"):s||l}),i},tbe=function(e,n){var r=e,i;if(Mp(Zq,r)&&(i=Zq[r],r="%"+i[0]+"%"),Mp(ou,r)){var l=ou[r];if(l===v0&&(l=KEe(r)),typeof l>"u"&&!n)throw new _0("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:l}}throw new E0("intrinsic "+e+" does not exist!")};nz.exports=function(e,n){if(typeof e!="string"||e.length===0)throw new _0("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new _0('"allowMissing" argument must be a boolean');if(YEe(/^%?[^%]*%?$/,e)===null)throw new E0("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=ebe(e),i=r.length>0?r[0]:"",l=tbe("%"+i+"%",n),s=l.name,a=l.value,o=!1,u=l.alias;u&&(i=u[0],WEe(r,XEe([0,1],u)));for(var c=1,f=!0;c=r.length){var _=au(a,m);f=!!_,f&&"get"in _&&!("originalValue"in _.get)?a=_.get:a=a[m]}else f=Mp(a,m),a=a[m];f&&!o&&(ou[s]=a)}}return a}});var Hp=k((SPe,rz)=>{"use strict";var nbe=uu(),Bp=nbe("%Object.defineProperty%",!0)||!1;if(Bp)try{Bp({},"a",{value:1})}catch{Bp=!1}rz.exports=Bp});var xb=k((TPe,iz)=>{"use strict";var rbe=uu(),Vp=rbe("%Object.getOwnPropertyDescriptor%",!0);if(Vp)try{Vp([],"length")}catch{Vp=null}iz.exports=Vp});var oz=k((xPe,az)=>{"use strict";var lz=Hp(),ibe=bb(),b0=y0(),sz=xb();az.exports=function(e,n,r){if(!e||typeof e!="object"&&typeof e!="function")throw new b0("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new b0("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new b0("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new b0("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new b0("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new b0("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,o=!!sz&&sz(e,n);if(lz)lz(e,n,{configurable:s===null&&o?o.configurable:!s,enumerable:i===null&&o?o.enumerable:!i,value:r,writable:l===null&&o?o.writable:!l});else if(a||!i&&!l&&!s)e[n]=r;else throw new ibe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var pz=k((APe,cz)=>{"use strict";var Ab=Hp(),uz=function(){return!!Ab};uz.hasArrayLengthDefineBug=function(){if(!Ab)return null;try{return Ab([],"length",{value:1}).length!==1}catch{return!0}};cz.exports=uz});var yz=k((OPe,mz)=>{"use strict";var lbe=uu(),fz=oz(),sbe=pz()(),dz=xb(),hz=y0(),abe=lbe("%Math.floor%");mz.exports=function(e,n){if(typeof e!="function")throw new hz("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||abe(n)!==n)throw new hz("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,l=!0;if("length"in e&&dz){var s=dz(e,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(l=!1)}return(i||l||!r)&&(sbe?fz(e,"length",n,!0,!0):fz(e,"length",n)),e}});var wz=k((NPe,qp)=>{"use strict";var Ob=Up(),zp=uu(),obe=yz(),ube=y0(),_z=zp("%Function.prototype.apply%"),Ez=zp("%Function.prototype.call%"),bz=zp("%Reflect.apply%",!0)||Ob.call(Ez,_z),gz=Hp(),cbe=zp("%Math.max%");qp.exports=function(e){if(typeof e!="function")throw new ube("a function is required");var n=bz(Ob,Ez,arguments);return obe(n,1+cbe(0,e.length-(arguments.length-1)),!0)};var vz=function(){return bz(Ob,_z,arguments)};gz?gz(qp.exports,"apply",{value:vz}):qp.exports.apply=vz});var Az=k((CPe,xz)=>{"use strict";var Sz=uu(),Tz=wz(),pbe=Tz(Sz("String.prototype.indexOf"));xz.exports=function(e,n){var r=Sz(e,!!n);return typeof r=="function"&&pbe(e,".prototype.")>-1?Tz(r):r}});var Nz=k((RPe,Oz)=>{Oz.exports=require("util").inspect});var Kz=k((IPe,Jz)=>{var jb=typeof Map=="function"&&Map.prototype,Nb=Object.getOwnPropertyDescriptor&&jb?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Jp=jb&&Nb&&typeof Nb.get=="function"?Nb.get:null,Cz=jb&&Map.prototype.forEach,Ub=typeof Set=="function"&&Set.prototype,Cb=Object.getOwnPropertyDescriptor&&Ub?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Kp=Ub&&Cb&&typeof Cb.get=="function"?Cb.get:null,Rz=Ub&&Set.prototype.forEach,fbe=typeof WeakMap=="function"&&WeakMap.prototype,A5=fbe?WeakMap.prototype.has:null,dbe=typeof WeakSet=="function"&&WeakSet.prototype,O5=dbe?WeakSet.prototype.has:null,hbe=typeof WeakRef=="function"&&WeakRef.prototype,Iz=hbe?WeakRef.prototype.deref:null,mbe=Boolean.prototype.valueOf,ybe=Object.prototype.toString,gbe=Function.prototype.toString,vbe=String.prototype.match,Mb=String.prototype.slice,t3=String.prototype.replace,_be=String.prototype.toUpperCase,kz=String.prototype.toLowerCase,Bz=RegExp.prototype.test,Dz=Array.prototype.concat,ma=Array.prototype.join,Ebe=Array.prototype.slice,Pz=Math.floor,kb=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Rb=Object.getOwnPropertySymbols,Db=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,w0=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Vi=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===w0||!0)?Symbol.toStringTag:null,Hz=Object.prototype.propertyIsEnumerable,Lz=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Fz(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Bz.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var r=t<0?-Pz(-t):Pz(t);if(r!==t){var i=String(r),l=Mb.call(e,i.length+1);return t3.call(i,n,"$&_")+"."+t3.call(t3.call(l,/([0-9]{3})/g,"$&_"),/_$/,"")}}return t3.call(e,n,"$&_")}var Pb=Nz(),jz=Pb.custom,Uz=qz(jz)?jz:null;Jz.exports=function t(e,n,r,i){var l=n||{};if(e3(l,"quoteStyle")&&l.quoteStyle!=="single"&&l.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(e3(l,"maxStringLength")&&(typeof l.maxStringLength=="number"?l.maxStringLength<0&&l.maxStringLength!==1/0:l.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=e3(l,"customInspect")?l.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(e3(l,"indent")&&l.indent!==null&&l.indent!==" "&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(e3(l,"numericSeparator")&&typeof l.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=l.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Gz(e,l);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var o=String(e);return a?Fz(e,o):o}if(typeof e=="bigint"){var u=String(e)+"n";return a?Fz(e,u):u}var c=typeof l.depth>"u"?5:l.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof e=="object")return Lb(e)?"[Array]":"[Object]";var f=Ube(l,r);if(typeof i>"u")i=[];else if(zz(i,e)>=0)return"[Circular]";function m(W,ce,we){if(ce&&(i=Ebe.call(i),i.push(ce)),we){var se={depth:l.depth};return e3(l,"quoteStyle")&&(se.quoteStyle=l.quoteStyle),t(W,se,r+1,i)}return t(W,l,r+1,i)}if(typeof e=="function"&&!Mz(e)){var d=Cbe(e),y=Gp(e,m);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+ma.call(y,", ")+" }":"")}if(qz(e)){var _=w0?t3.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Db.call(e);return typeof e=="object"&&!w0?x5(_):_}if(Lbe(e)){for(var S="<"+kz.call(String(e.nodeName)),w=e.attributes||[],E=0;E",e.childNodes&&e.childNodes.length&&(S+="..."),S+=""+kz.call(String(e.nodeName))+">",S}if(Lb(e)){if(e.length===0)return"[]";var g=Gp(e,m);return f&&!jbe(g)?"["+Fb(g,f)+"]":"[ "+ma.call(g,", ")+" ]"}if(Sbe(e)){var v=Gp(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!Hz.call(e,"cause")?"{ ["+String(e)+"] "+ma.call(Dz.call("[cause]: "+m(e.cause),v),", ")+" }":v.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ma.call(v,", ")+" }"}if(typeof e=="object"&&s){if(Uz&&typeof e[Uz]=="function"&&Pb)return Pb(e,{depth:c-r});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Rbe(e)){var x=[];return Cz&&Cz.call(e,function(W,ce){x.push(m(ce,e,!0)+" => "+m(W,e))}),$z("Map",Jp.call(e),x,f)}if(Dbe(e)){var O=[];return Rz&&Rz.call(e,function(W){O.push(m(W,e))}),$z("Set",Kp.call(e),O,f)}if(Ibe(e))return Ib("WeakMap");if(Pbe(e))return Ib("WeakSet");if(kbe(e))return Ib("WeakRef");if(xbe(e))return x5(m(Number(e)));if(Obe(e))return x5(m(kb.call(e)));if(Abe(e))return x5(mbe.call(e));if(Tbe(e))return x5(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!wbe(e)&&!Mz(e)){var N=Gp(e,m),R=Lz?Lz(e)===Object.prototype:e instanceof Object||e.constructor===Object,U=e instanceof Object?"":"null prototype",F=!R&&Vi&&Object(e)===e&&Vi in e?Mb.call(n3(e),8,-1):U?"Object":"",te=R||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Q=te+(F||U?"["+ma.call(Dz.call([],F||[],U||[]),": ")+"] ":"");return N.length===0?Q+"{}":f?Q+"{"+Fb(N,f)+"}":Q+"{ "+ma.call(N,", ")+" }"}return String(e)};function Vz(t,e,n){var r=(n.quoteStyle||e)==="double"?'"':"'";return r+t+r}function bbe(t){return t3.call(String(t),/"/g,""")}function Lb(t){return n3(t)==="[object Array]"&&(!Vi||!(typeof t=="object"&&Vi in t))}function wbe(t){return n3(t)==="[object Date]"&&(!Vi||!(typeof t=="object"&&Vi in t))}function Mz(t){return n3(t)==="[object RegExp]"&&(!Vi||!(typeof t=="object"&&Vi in t))}function Sbe(t){return n3(t)==="[object Error]"&&(!Vi||!(typeof t=="object"&&Vi in t))}function Tbe(t){return n3(t)==="[object String]"&&(!Vi||!(typeof t=="object"&&Vi in t))}function xbe(t){return n3(t)==="[object Number]"&&(!Vi||!(typeof t=="object"&&Vi in t))}function Abe(t){return n3(t)==="[object Boolean]"&&(!Vi||!(typeof t=="object"&&Vi in t))}function qz(t){if(w0)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Db)return!1;try{return Db.call(t),!0}catch{}return!1}function Obe(t){if(!t||typeof t!="object"||!kb)return!1;try{return kb.call(t),!0}catch{}return!1}var Nbe=Object.prototype.hasOwnProperty||function(t){return t in this};function e3(t,e){return Nbe.call(t,e)}function n3(t){return ybe.call(t)}function Cbe(t){if(t.name)return t.name;var e=vbe.call(gbe.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function zz(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Gz(Mb.call(t,0,e.maxStringLength),e)+r}var i=t3.call(t3.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Fbe);return Vz(i,"single",e)}function Fbe(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+_be.call(e.toString(16))}function x5(t){return"Object("+t+")"}function Ib(t){return t+" { ? }"}function $z(t,e,n,r){var i=r?Fb(n,r):ma.call(n,", ");return t+" ("+e+") {"+i+"}"}function jbe(t){for(var e=0;e=0)return!1;return!0}function Ube(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=ma.call(Array(t.indent+1)," ");else return null;return{base:n,prev:ma.call(Array(e+1),n)}}function Fb(t,e){if(t.length===0)return"";var n=`
-`+e.prev+e.base;return n+ma.call(t,","+n)+`
-`+e.prev}function Gp(t,e){var n=Lb(t),r=[];if(n){r.length=t.length;for(var i=0;i{"use strict";var Xz=uu(),S0=Az(),Mbe=Kz(),$be=y0(),Xp=Xz("%WeakMap%",!0),Wp=Xz("%Map%",!0),Bbe=S0("WeakMap.prototype.get",!0),Hbe=S0("WeakMap.prototype.set",!0),Vbe=S0("WeakMap.prototype.has",!0),qbe=S0("Map.prototype.get",!0),zbe=S0("Map.prototype.set",!0),Gbe=S0("Map.prototype.has",!0),$b=function(t,e){for(var n=t,r;(r=n.next)!==null;n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},Jbe=function(t,e){var n=$b(t,e);return n&&n.value},Kbe=function(t,e,n){var r=$b(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}},Xbe=function(t,e){return!!$b(t,e)};Wz.exports=function(){var e,n,r,i={assert:function(l){if(!i.has(l))throw new $be("Side channel does not contain "+Mbe(l))},get:function(l){if(Xp&&l&&(typeof l=="object"||typeof l=="function")){if(e)return Bbe(e,l)}else if(Wp){if(n)return qbe(n,l)}else if(r)return Jbe(r,l)},has:function(l){if(Xp&&l&&(typeof l=="object"||typeof l=="function")){if(e)return Vbe(e,l)}else if(Wp){if(n)return Gbe(n,l)}else if(r)return Xbe(r,l);return!1},set:function(l,s){Xp&&l&&(typeof l=="object"||typeof l=="function")?(e||(e=new Xp),Hbe(e,l,s)):Wp?(n||(n=new Wp),zbe(n,l,s)):(r||(r={key:{},next:null}),Kbe(r,l,s))}};return i}});var Yp=k((DPe,Qz)=>{"use strict";var Wbe=String.prototype.replace,Ybe=/%20/g,Bb={RFC1738:"RFC1738",RFC3986:"RFC3986"};Qz.exports={default:Bb.RFC3986,formatters:{RFC1738:function(t){return Wbe.call(t,Ybe,"+")},RFC3986:function(t){return String(t)}},RFC1738:Bb.RFC1738,RFC3986:Bb.RFC3986}});var qb=k((PPe,eG)=>{"use strict";var Qbe=Yp(),Hb=Object.prototype.hasOwnProperty,cu=Array.isArray,ya=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Zbe=function(e){for(;e.length>1;){var n=e.pop(),r=n.obj[n.prop];if(cu(r)){for(var i=[],l=0;l=Vb?s.slice(o,o+Vb):s,c=[],f=0;f=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||l===Qbe.RFC1738&&(m===40||m===41)){c[c.length]=u.charAt(f);continue}if(m<128){c[c.length]=ya[m];continue}if(m<2048){c[c.length]=ya[192|m>>6]+ya[128|m&63];continue}if(m<55296||m>=57344){c[c.length]=ya[224|m>>12]+ya[128|m>>6&63]+ya[128|m&63];continue}f+=1,m=65536+((m&1023)<<10|u.charCodeAt(f)&1023),c[c.length]=ya[240|m>>18]+ya[128|m>>12&63]+ya[128|m>>6&63]+ya[128|m&63]}a+=c.join("")}return a},iwe=function(e){for(var n=[{obj:{o:e},prop:"o"}],r=[],i=0;i{"use strict";var nG=Yz(),Qp=qb(),N5=Yp(),uwe=Object.prototype.hasOwnProperty,rG={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},ga=Array.isArray,cwe=Array.prototype.push,iG=function(t,e){cwe.apply(t,ga(e)?e:[e])},pwe=Date.prototype.toISOString,tG=N5.default,ti={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Qp.encode,encodeValuesOnly:!1,format:tG,formatter:N5.formatters[tG],indices:!1,serializeDate:function(e){return pwe.call(e)},skipNulls:!1,strictNullHandling:!1},fwe=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},zb={},dwe=function t(e,n,r,i,l,s,a,o,u,c,f,m,d,y,_,S,w,E){for(var g=e,v=E,x=0,O=!1;(v=v.get(zb))!==void 0&&!O;){var N=v.get(e);if(x+=1,typeof N<"u"){if(N===x)throw new RangeError("Cyclic object value");O=!0}typeof v.get(zb)>"u"&&(x=0)}if(typeof c=="function"?g=c(n,g):g instanceof Date?g=d(g):r==="comma"&&ga(g)&&(g=Qp.maybeMap(g,function(G){return G instanceof Date?d(G):G})),g===null){if(s)return u&&!S?u(n,ti.encoder,w,"key",y):n;g=""}if(fwe(g)||Qp.isBuffer(g)){if(u){var R=S?n:u(n,ti.encoder,w,"key",y);return[_(R)+"="+_(u(g,ti.encoder,w,"value",y))]}return[_(n)+"="+_(String(g))]}var U=[];if(typeof g>"u")return U;var F;if(r==="comma"&&ga(g))S&&u&&(g=Qp.maybeMap(g,u)),F=[{value:g.length>0?g.join(",")||null:void 0}];else if(ga(c))F=c;else{var te=Object.keys(g);F=f?te.sort(f):te}var Q=o?n.replace(/\./g,"%2E"):n,W=i&&ga(g)&&g.length===1?Q+"[]":Q;if(l&&ga(g)&&g.length===0)return W+"[]";for(var ce=0;ce"u"?e.encodeDotInKeys===!0?!0:ti.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:ti.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ti.allowEmptyArrays,arrayFormat:s,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ti.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?ti.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:ti.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:ti.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:ti.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:ti.encodeValuesOnly,filter:l,format:r,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:ti.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:ti.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ti.strictNullHandling}};lG.exports=function(t,e){var n=t,r=hwe(e),i,l;typeof r.filter=="function"?(l=r.filter,n=l("",n)):ga(r.filter)&&(l=r.filter,i=l);var s=[];if(typeof n!="object"||n===null)return"";var a=rG[r.arrayFormat],o=a==="comma"&&r.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var u=nG(),c=0;c0?d+m:""}});var uG=k((FPe,oG)=>{"use strict";var T0=qb(),Gb=Object.prototype.hasOwnProperty,mwe=Array.isArray,$r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:T0.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ywe=function(t){return t.replace(/(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},aG=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},gwe="utf8=%26%2310003%3B",vwe="utf8=%E2%9C%93",_we=function(e,n){var r={__proto__:null},i=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,l),a=-1,o,u=n.charset;if(n.charsetSentinel)for(o=0;o-1&&(y=mwe(y)?[y]:y);var _=Gb.call(r,d);_&&n.duplicates==="combine"?r[d]=T0.combine(r[d],y):(!_||n.duplicates==="last")&&(r[d]=y)}return r},Ewe=function(t,e,n,r){for(var i=r?e:aG(e,n),l=t.length-1;l>=0;--l){var s,a=t[l];if(a==="[]"&&n.parseArrays)s=n.allowEmptyArrays&&i===""?[]:[].concat(i);else{s=n.plainObjects?Object.create(null):{};var o=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=n.decodeDotInKeys?o.replace(/%2E/g,"."):o,c=parseInt(u,10);!n.parseArrays&&u===""?s={0:i}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=i):u!=="__proto__"&&(s[u]=i)}i=s}return i},bwe=function(e,n,r,i){if(e){var l=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,o=r.depth>0&&s.exec(l),u=o?l.slice(0,o.index):l,c=[];if(u){if(!r.plainObjects&&Gb.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var f=0;r.depth>0&&(o=a.exec(l))!==null&&f"u"?$r.charset:e.charset,r=typeof e.duplicates>"u"?$r.duplicates:e.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:$r.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:$r.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:$r.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:$r.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:$r.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:$r.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:$r.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:$r.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:$r.decoder,delimiter:typeof e.delimiter=="string"||T0.isRegExp(e.delimiter)?e.delimiter:$r.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:$r.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:$r.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:$r.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:$r.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:$r.strictNullHandling}};oG.exports=function(t,e){var n=wwe(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof t=="string"?_we(t,n):t,i=n.plainObjects?Object.create(null):{},l=Object.keys(r),s=0;s{"use strict";var Swe=sG(),Twe=uG(),xwe=Yp();cG.exports={formats:xwe,parse:Twe,stringify:Swe}});var xG=k((VPe,TG)=>{var SG=require("stream").Stream,sSe=require("util");TG.exports=Rs;function Rs(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}sSe.inherits(Rs,SG);Rs.create=function(t,e){var n=new this;e=e||{};for(var r in e)n[r]=e[r];n.source=t;var i=t.emit;return t.emit=function(){return n._handleEmit(arguments),i.apply(t,arguments)},t.on("error",function(){}),n.pauseStream&&t.pause(),n};Object.defineProperty(Rs.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Rs.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Rs.prototype.resume=function(){this._released||this.release(),this.source.resume()};Rs.prototype.pause=function(){this.source.pause()};Rs.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};Rs.prototype.pipe=function(){var t=SG.prototype.pipe.apply(this,arguments);return this.resume(),t};Rs.prototype._handleEmit=function(t){if(this._released){this.emit.apply(this,t);return}t[0]==="data"&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t)};Rs.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}});var CG=k((qPe,NG)=>{var aSe=require("util"),OG=require("stream").Stream,AG=xG();NG.exports=Nr;function Nr(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}aSe.inherits(Nr,OG);Nr.create=function(t){var e=new this;t=t||{};for(var n in t)e[n]=t[n];return e};Nr.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Nr.prototype.append=function(t){var e=Nr.isStreamLike(t);if(e){if(!(t instanceof AG)){var n=AG.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=n}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};Nr.prototype.pipe=function(t,e){return OG.prototype.pipe.call(this,t,e),this.resume(),t};Nr.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Nr.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(n){var r=Nr.isStreamLike(n);r&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};Nr.prototype._pipeNext=function(t){this._currentStream=t;var e=Nr.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var n=t;this.write(n),this._getNext()};Nr.prototype._handleErrors=function(t){var e=this;t.on("error",function(n){e._emitError(n)})};Nr.prototype.write=function(t){this.emit("data",t)};Nr.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Nr.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Nr.prototype.end=function(){this._reset(),this.emit("end")};Nr.prototype.destroy=function(){this._reset(),this.emit("close")};Nr.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Nr.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Nr.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Nr.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var RG=k((zPe,oSe)=>{oSe.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var kG=k((GPe,IG)=>{IG.exports=RG()});var LG=k(Tl=>{"use strict";var rf=kG(),uSe=require("path").extname,DG=/^\s*([^;\s]*)(?:;|\s|$)/,cSe=/^text\//i;Tl.charset=PG;Tl.charsets={lookup:PG};Tl.contentType=pSe;Tl.extension=fSe;Tl.extensions=Object.create(null);Tl.lookup=dSe;Tl.types=Object.create(null);hSe(Tl.extensions,Tl.types);function PG(t){if(!t||typeof t!="string")return!1;var e=DG.exec(t),n=e&&rf[e[1].toLowerCase()];return n&&n.charset?n.charset:e&&cSe.test(e[1])?"UTF-8":!1}function pSe(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?Tl.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var n=Tl.charset(e);n&&(e+="; charset="+n.toLowerCase())}return e}function fSe(t){if(!t||typeof t!="string")return!1;var e=DG.exec(t),n=e&&Tl.extensions[e[1].toLowerCase()];return!n||!n.length?!1:n[0]}function dSe(t){if(!t||typeof t!="string")return!1;var e=uSe("x."+t).toLowerCase().substr(1);return e&&Tl.types[e]||!1}function hSe(t,e){var n=["nginx","apache",void 0,"iana"];Object.keys(rf).forEach(function(i){var l=rf[i],s=l.extensions;if(!(!s||!s.length)){t[i]=s;for(var a=0;ac||u===c&&e[o].substr(0,12)==="application/"))continue}e[o]=i}}})}});var jG=k((KPe,FG)=>{FG.exports=mSe;function mSe(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var Wb=k((XPe,MG)=>{var UG=jG();MG.exports=ySe;function ySe(t){var e=!1;return UG(function(){e=!0}),function(r,i){e?t(r,i):UG(function(){t(r,i)})}}});var Yb=k((WPe,$G)=>{$G.exports=gSe;function gSe(t){Object.keys(t.jobs).forEach(vSe.bind(t)),t.jobs={}}function vSe(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var Qb=k((YPe,HG)=>{var BG=Wb(),_Se=Yb();HG.exports=ESe;function ESe(t,e,n,r){var i=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[i]=bSe(e,i,t[i],function(l,s){i in n.jobs&&(delete n.jobs[i],l?_Se(n):n.results[i]=s,r(l,n.results))})}function bSe(t,e,n,r){var i;return t.length==2?i=t(n,BG(r)):i=t(n,e,BG(r)),i}});var Zb=k((QPe,VG)=>{VG.exports=wSe;function wSe(t,e){var n=!Array.isArray(t),r={index:0,keyedList:n||e?Object.keys(t):null,jobs:{},results:n?{}:[],size:n?Object.keys(t).length:t.length};return e&&r.keyedList.sort(n?e:function(i,l){return e(t[i],t[l])}),r}});var ew=k((ZPe,qG)=>{var SSe=Yb(),TSe=Wb();qG.exports=xSe;function xSe(t){Object.keys(this.jobs).length&&(this.index=this.size,SSe(this),TSe(t)(null,this.results))}});var GG=k((eLe,zG)=>{var ASe=Qb(),OSe=Zb(),NSe=ew();zG.exports=CSe;function CSe(t,e,n){for(var r=OSe(t);r.index<(r.keyedList||t).length;)ASe(t,e,r,function(i,l){if(i){n(i,l);return}if(Object.keys(r.jobs).length===0){n(null,r.results);return}}),r.index++;return NSe.bind(r,n)}});var tw=k((tLe,lf)=>{var JG=Qb(),RSe=Zb(),ISe=ew();lf.exports=kSe;lf.exports.ascending=KG;lf.exports.descending=DSe;function kSe(t,e,n,r){var i=RSe(t,n);return JG(t,e,i,function l(s,a){if(s){r(s,a);return}if(i.index++,i.index<(i.keyedList||t).length){JG(t,e,i,l);return}r(null,i.results)}),ISe.bind(i,r)}function KG(t,e){return te?1:0}function DSe(t,e){return-1*KG(t,e)}});var WG=k((nLe,XG)=>{var PSe=tw();XG.exports=LSe;function LSe(t,e,n){return PSe(t,e,null,n)}});var QG=k((rLe,YG)=>{YG.exports={parallel:GG(),serial:WG(),serialOrdered:tw()}});var eJ=k((iLe,ZG)=>{ZG.exports=function(t,e){return Object.keys(e).forEach(function(n){t[n]=t[n]||e[n]}),t}});var rJ=k((lLe,nJ)=>{var lw=CG(),tJ=require("util"),nw=require("path"),FSe=require("http"),jSe=require("https"),USe=require("url").parse,MSe=require("fs"),$Se=require("stream").Stream,rw=LG(),BSe=QG(),iw=eJ();nJ.exports=ln;tJ.inherits(ln,lw);function ln(t){if(!(this instanceof ln))return new ln(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],lw.call(this),t=t||{};for(var e in t)this[e]=t[e]}ln.LINE_BREAK=`\r
-`;ln.DEFAULT_CONTENT_TYPE="application/octet-stream";ln.prototype.append=function(t,e,n){n=n||{},typeof n=="string"&&(n={filename:n});var r=lw.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),tJ.isArray(e)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(t,e,n),l=this._multiPartFooter();r(i),r(e),r(l),this._trackLength(i,e,n)};ln.prototype._trackLength=function(t,e,n){var r=0;n.knownLength!=null?r+=+n.knownLength:Buffer.isBuffer(e)?r=e.length:typeof e=="string"&&(r=Buffer.byteLength(e)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(t)+ln.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof $Se))&&(n.knownLength||this._valuesToMeasure.push(e))};ln.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):MSe.stat(t.path,function(n,r){var i;if(n){e(n);return}i=r.size-(t.start?t.start:0),e(null,i)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(n){t.pause(),e(null,+n.headers["content-length"])}),t.resume()):e("Unknown stream")};ln.prototype._multiPartHeader=function(t,e,n){if(typeof n.header=="string")return n.header;var r=this._getContentDisposition(e,n),i=this._getContentType(e,n),l="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};typeof n.header=="object"&&iw(s,n.header);var a;for(var o in s)s.hasOwnProperty(o)&&(a=s[o],a!=null&&(Array.isArray(a)||(a=[a]),a.length&&(l+=o+": "+a.join("; ")+ln.LINE_BREAK)));return"--"+this.getBoundary()+ln.LINE_BREAK+l+ln.LINE_BREAK};ln.prototype._getContentDisposition=function(t,e){var n,r;return typeof e.filepath=="string"?n=nw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?n=nw.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(n=nw.basename(t.client._httpMessage.path||"")),n&&(r='filename="'+n+'"'),r};ln.prototype._getContentType=function(t,e){var n=e.contentType;return!n&&t.name&&(n=rw.lookup(t.name)),!n&&t.path&&(n=rw.lookup(t.path)),!n&&t.readable&&t.hasOwnProperty("httpVersion")&&(n=t.headers["content-type"]),!n&&(e.filepath||e.filename)&&(n=rw.lookup(e.filepath||e.filename)),!n&&typeof t=="object"&&(n=ln.DEFAULT_CONTENT_TYPE),n};ln.prototype._multiPartFooter=function(){return function(t){var e=ln.LINE_BREAK,n=this._streams.length===0;n&&(e+=this._lastBoundary()),t(e)}.bind(this)};ln.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ln.LINE_BREAK};ln.prototype.getHeaders=function(t){var e,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(n[e.toLowerCase()]=t[e]);return n};ln.prototype.setBoundary=function(t){this._boundary=t};ln.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ln.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),n=0,r=this._streams.length;n