@minimax-ai/code 0.6.3 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/CHANGELOG.md +58 -2
  2. package/CHANGELOG.zh-CN.md +30 -1
  3. package/README.md +59 -0
  4. package/README.zh-CN.md +41 -0
  5. package/assets/agents/mavis/skills/minimax-code-product/SKILL.md +7 -6
  6. package/assets/agents/mavis/skills/minimax-code-product/references/account-models.md +13 -4
  7. package/assets/agents/mavis/skills/minimax-code-product/references/agents.md +1 -1
  8. package/assets/agents/mavis/skills/minimax-code-product/references/extensions.md +1 -1
  9. package/assets/agents/mavis/skills/minimax-code-product/references/workflows.md +1 -1
  10. package/chunks/{anthropic-HVUDB2UQ.js → anthropic-3PPUMUI5.js} +1 -1
  11. package/chunks/{application-JOJGAMXA.js → application-ZJ5NM3DF.js} +1 -1
  12. package/chunks/{auth-command-CO6IUQQ5.js → auth-command-OLQL7FZY.js} +1 -1
  13. package/chunks/{azure-openai-responses-2XUN7HBR.js → azure-openai-responses-TINWNAR2.js} +1 -1
  14. package/chunks/{chunk-EL5XOH23.js → chunk-2XPMNZVR.js} +541 -536
  15. package/chunks/{chunk-VN3EYAMT.js → chunk-37SOT72H.js} +1 -1
  16. package/chunks/{chunk-Z4VKGZFA.js → chunk-3FETZOUF.js} +30 -30
  17. package/chunks/{chunk-WJZDMLYV.js → chunk-3MHUE4DM.js} +1 -1
  18. package/chunks/{chunk-UJCQHSQD.js → chunk-76MC32T2.js} +1 -1
  19. package/chunks/{chunk-U7ACBEGU.js → chunk-JIWEZSQY.js} +676 -675
  20. package/chunks/{chunk-7CKVJIAL.js → chunk-JL7ZXU6T.js} +1 -1
  21. package/chunks/{chunk-YC47AWPX.js → chunk-LM3FMMAB.js} +1 -1
  22. package/chunks/{chunk-GPPNWE6W.js → chunk-LQIEYG3O.js} +8 -3
  23. package/chunks/{chunk-T6KXDH7B.js → chunk-NFVRVRCL.js} +1 -1
  24. package/chunks/{chunk-YPNDEPC5.js → chunk-NXXFMBAV.js} +1 -1
  25. package/chunks/{chunk-HVP63X6W.js → chunk-ONRKFD6S.js} +1 -1
  26. package/chunks/{chunk-T4F6MBL2.js → chunk-OSA3A5UV.js} +1 -1
  27. package/chunks/chunk-RDUENEEQ.js +2 -0
  28. package/chunks/{chunk-XYED4XTT.js → chunk-TWO6GIVD.js} +99 -99
  29. package/chunks/{chunk-5GISCO53.js → chunk-U5SHMJ7Y.js} +1 -1
  30. package/chunks/{chunk-G64EFDMH.js → chunk-UOE7W4PK.js} +1 -1
  31. package/chunks/{data-dir-4GSZVAMG.js → data-dir-KFZIXVT7.js} +1 -1
  32. package/chunks/{dist-DQKO47DC.js → dist-PBZ5PIWM.js} +1 -1
  33. package/chunks/{google-R5XVVF36.js → google-W4KKPJIU.js} +1 -1
  34. package/chunks/{google-vertex-IQCRUNEW.js → google-vertex-K2VBU5YX.js} +1 -1
  35. package/chunks/{install-source-KWOIXLTZ.js → install-source-REWTEDE3.js} +1 -1
  36. package/chunks/{launcher-ST7GNBTY.js → launcher-BK5UP7KA.js} +159 -156
  37. package/chunks/{lifecycle-MEDWAANQ.js → lifecycle-RMTLVDXY.js} +1 -1
  38. package/chunks/main-ANJ6TEDF.js +9 -0
  39. package/chunks/{mistral-YGQW5B3K.js → mistral-5IVMGNIC.js} +1 -1
  40. package/chunks/{openai-codex-responses-2JCAFRE3.js → openai-codex-responses-HMN5LXLI.js} +1 -1
  41. package/chunks/{openai-completions-HCLBIIWV.js → openai-completions-A22BIUQL.js} +1 -1
  42. package/chunks/openai-responses-7MFUVUZA.js +2 -0
  43. package/chunks/{plugin-command-EZNOWONW.js → plugin-command-AXB4A2DP.js} +1 -1
  44. package/chunks/{provider-command-OJLRQ76A.js → provider-command-2MVBCAF6.js} +1 -1
  45. package/chunks/{run-acp-command-Z5CVNHZZ.js → run-acp-command-4JFNMYRS.js} +2 -2
  46. package/chunks/{run-exec-command-MT4Y6VPF.js → run-exec-command-SAUHM46S.js} +8 -8
  47. package/chunks/{update-XSUZQSPB.js → update-HOQ5YQFF.js} +1 -1
  48. package/cli.js +2 -2
  49. package/package.json +1 -1
  50. package/chunks/chunk-22LFXEGJ.js +0 -2
  51. package/chunks/main-7X6VQMDB.js +0 -9
  52. package/chunks/openai-responses-65UFQVVM.js +0 -2
@@ -1,11 +1,11 @@
1
1
  import { createRequire as __mavis_cR } from "module"; import { basename as __mavis_basename, dirname as __mavis_dirname, join as __mavis_join } from "path"; import { fileURLToPath as __mavis_fileURLToPath, pathToFileURL as __mavis_pathToFileURL } from "url"; const __mavis_tuiCurrentModuleDir = __mavis_dirname(__mavis_fileURLToPath(import.meta.url)); const __mavis_tuiPackageRoot = __mavis_basename(__mavis_tuiCurrentModuleDir) === "chunks" ? __mavis_dirname(__mavis_tuiCurrentModuleDir) : __mavis_tuiCurrentModuleDir; const __mavis_tuiPackageEntryUrl = __mavis_pathToFileURL(__mavis_join(__mavis_tuiPackageRoot, "cli.js")).href; const require = __mavis_cR(__mavis_tuiPackageEntryUrl); const __dirname = __mavis_tuiPackageRoot;
2
- import{a as Qg}from"./chunk-CWWDVX6C.js";import{a as H,b as Xg,c as L,d as yl,e as bl,f as Jg}from"./chunk-D76SO2ME.js";var Gi=L((TM,zl)=>{"use strict";var gr=e=>e&&typeof e.message=="string",Hi=e=>{if(!e)return;let t=e.cause;if(typeof t=="function"){let r=e.cause();return gr(r)?r:void 0}else return gr(t)?t:void 0},Ul=(e,t)=>{if(!gr(e))return"";let r=e.stack||"";if(t.has(e))return r+`
3
- causes have become circular...`;let n=Hi(e);return n?(t.add(e),r+`
4
- caused by: `+Ul(n,t)):r},ib=e=>Ul(e,new Set),Wl=(e,t,r)=>{if(!gr(e))return"";let n=r?"":e.message||"";if(t.has(e))return n+": ...";let i=Hi(e);if(i){t.add(e);let o=typeof e.cause=="function";return n+(o?"":": ")+Wl(i,t,o)}else return n},ob=e=>Wl(e,new Set);zl.exports={isErrorLike:gr,getErrorCause:Hi,stackWithCauses:ib,messageWithCauses:ob}});var Ki=L((AM,Hl)=>{"use strict";var sb=Symbol("circular-ref-tag"),nn=Symbol("pino-raw-err-ref"),Vl=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[nn]},set:function(e){this[nn]=e}}});Object.defineProperty(Vl,nn,{writable:!0,value:{}});Hl.exports={pinoErrProto:Vl,pinoErrorSymbols:{seen:sb,rawSymbol:nn}}});var Yl=L((kM,Kl)=>{"use strict";Kl.exports=Xi;var{messageWithCauses:ab,stackWithCauses:lb,isErrorLike:Gl}=Gi(),{pinoErrProto:ub,pinoErrorSymbols:cb}=Ki(),{seen:Yi}=cb,{toString:fb}=Object.prototype;function Xi(e){if(!Gl(e))return e;e[Yi]=void 0;let t=Object.create(ub);t.type=fb.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=ab(e),t.stack=lb(e),Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(r=>Xi(r)));for(let r in e)if(t[r]===void 0){let n=e[r];Gl(n)?r!=="cause"&&!Object.prototype.hasOwnProperty.call(n,Yi)&&(t[r]=Xi(n)):t[r]=n}return delete e[Yi],t.raw=e,t}});var Jl=L((RM,Xl)=>{"use strict";Xl.exports=sn;var{isErrorLike:Ji}=Gi(),{pinoErrProto:db,pinoErrorSymbols:hb}=Ki(),{seen:on}=hb,{toString:pb}=Object.prototype;function sn(e){if(!Ji(e))return e;e[on]=void 0;let t=Object.create(db);t.type=pb.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=e.message,t.stack=e.stack,Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(r=>sn(r))),Ji(e.cause)&&!Object.prototype.hasOwnProperty.call(e.cause,on)&&(t.cause=sn(e.cause));for(let r in e)if(t[r]===void 0){let n=e[r];Ji(n)?Object.prototype.hasOwnProperty.call(n,on)||(t[r]=sn(n)):t[r]=n}return delete e[on],t.raw=e,t}});var tu=L((vM,eu)=>{"use strict";eu.exports={mapHttpRequest:mb,reqSerializer:Zl};var Qi=Symbol("pino-raw-req-ref"),Ql=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[Qi]},set:function(e){this[Qi]=e}}});Object.defineProperty(Ql,Qi,{writable:!0,value:{}});function Zl(e){let t=e.info||e.socket,r=Object.create(Ql);if(r.id=typeof e.id=="function"?e.id():e.id||(e.info?e.info.id:void 0),r.method=e.method,e.originalUrl)r.url=e.originalUrl;else{let n=e.path;r.url=typeof n=="string"?n:e.url?e.url.path||e.url:void 0}return e.query&&(r.query=e.query),e.params&&(r.params=e.params),r.headers=e.headers,r.remoteAddress=t&&t.remoteAddress,r.remotePort=t&&t.remotePort,r.raw=e.raw||e,r}function mb(e){return{req:Zl(e)}}});var ou=L((LM,iu)=>{"use strict";iu.exports={mapHttpResponse:gb,resSerializer:nu};var Zi=Symbol("pino-raw-res-ref"),ru=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[Zi]},set:function(e){this[Zi]=e}}});Object.defineProperty(ru,Zi,{writable:!0,value:{}});function nu(e){let t=Object.create(ru);return t.statusCode=e.headersSent?e.statusCode:null,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}function gb(e){return{res:nu(e)}}});var to=L((CM,su)=>{"use strict";var eo=Yl(),yb=Jl(),an=tu(),ln=ou();su.exports={err:eo,errWithCause:yb,mapHttpRequest:an.mapHttpRequest,mapHttpResponse:ln.mapHttpResponse,req:an.reqSerializer,res:ln.resSerializer,wrapErrorSerializer:function(t){return t===eo?t:function(n){return t(eo(n))}},wrapRequestSerializer:function(t){return t===an.reqSerializer?t:function(n){return t(an.reqSerializer(n))}},wrapResponseSerializer:function(t){return t===ln.resSerializer?t:function(n){return t(ln.resSerializer(n))}}}});var ro=L((IM,au)=>{"use strict";function bb(e,t){return t}au.exports=function(){let t=Error.prepareStackTrace;Error.prepareStackTrace=bb;let r=new Error().stack;if(Error.prepareStackTrace=t,!Array.isArray(r))return;let n=r.slice(2),i=[];for(let o of n)o&&i.push(o.getFileName());return i}});var hu=L((OM,du)=>{"use strict";function no(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array){let t=[];for(let r=0;r<e.length;r++)t[r]=no(e[r]);return t}if(typeof e=="object"){let t=Object.create(Object.getPrototypeOf(e));for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=no(e[r]));return t}return e}function lu(e){let t=[],r="",n=!1,i=!1,o="";for(let s=0;s<e.length;s++){let a=e[s];!n&&a==="."?r&&(t.push(r),r=""):a==="["?(r&&(t.push(r),r=""),n=!0):a==="]"&&n?(t.push(r),r="",n=!1,i=!1):(a==='"'||a==="'")&&n?i?a===o?(i=!1,o=""):r+=a:(i=!0,o=a):r+=a}return r&&t.push(r),t}function uu(e,t,r){let n=e;for(let o=0;o<t.length-1;o++){let s=t[o];if(typeof n!="object"||n===null||!(s in n)||typeof n[s]!="object"||n[s]===null)return!1;n=n[s]}let i=t[t.length-1];if(i==="*"){if(Array.isArray(n))for(let o=0;o<n.length;o++)n[o]=r;else if(typeof n=="object"&&n!==null)for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(n[o]=r)}else typeof n=="object"&&n!==null&&i in n&&Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=r);return!0}function cu(e,t){let r=e;for(let i=0;i<t.length-1;i++){let o=t[i];if(typeof r!="object"||r===null||!(o in r)||typeof r[o]!="object"||r[o]===null)return!1;r=r[o]}let n=t[t.length-1];if(n==="*"){if(Array.isArray(r))for(let i=0;i<r.length;i++)r[i]=void 0;else if(typeof r=="object"&&r!==null)for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&delete r[i]}else typeof r=="object"&&r!==null&&n in r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n];return!0}var un=Symbol("PATH_NOT_FOUND");function wb(e,t){let r=e;for(let n of t){if(r==null||typeof r!="object"||r===null||!(n in r))return un;r=r[n]}return r}function Sb(e,t){let r=e;for(let n of t){if(r==null||typeof r!="object"||r===null)return;r=r[n]}return r}function Eb(e,t,r,n=!1){for(let i of t){let o=lu(i);if(o.includes("*"))fu(e,o,r,i,n);else if(n)cu(e,o);else{let s=wb(e,o);if(s===un)continue;let a=typeof r=="function"?r(s,o):r;uu(e,o,a)}}}function fu(e,t,r,n,i=!1){let o=t.indexOf("*");if(o===t.length-1){let s=t.slice(0,-1),a=e;for(let l of s){if(a==null||typeof a!="object"||a===null)return;a=a[l]}if(Array.isArray(a))if(i)for(let l=0;l<a.length;l++)a[l]=void 0;else for(let l=0;l<a.length;l++){let u=[...s,l.toString()],c=typeof r=="function"?r(a[l],u):r;a[l]=c}else if(typeof a=="object"&&a!==null)if(i){let l=[];for(let u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.push(u);for(let u of l)delete a[u]}else for(let l in a){let u=[...s,l],c=typeof r=="function"?r(a[l],u):r;a[l]=c}}else _b(e,t,r,o,n,i)}function _b(e,t,r,n,i,o=!1){let s=t.slice(0,n),a=t.slice(n+1),l=[];function u(c,d){if(d===s.length){if(Array.isArray(c))for(let h=0;h<c.length;h++)l[d]=h.toString(),u(c[h],d+1);else if(typeof c=="object"&&c!==null)for(let h in c)l[d]=h,u(c[h],d+1)}else if(d<s.length){let h=s[d];c&&typeof c=="object"&&c!==null&&h in c&&(l[d]=h,u(c[h],d+1))}else if(a.includes("*"))fu(c,a,typeof r=="function"?(f,p)=>{let m=[...l.slice(0,d),...p];return r(f,m)}:r,i,o);else if(o)cu(c,a);else{let h=typeof r=="function"?r(Sb(c,a),[...l.slice(0,d),...a]):r;uu(c,a,h)}}if(s.length===0)u(e,0);else{let c=e;for(let d=0;d<s.length;d++){let h=s[d];if(c==null||typeof c!="object"||c===null)return;c=c[h],l[d]=h}c!=null&&u(c,s.length)}}function xb(e){if(e.length===0)return null;let t=new Map;for(let r of e){let n=lu(r),i=t;for(let o=0;o<n.length;o++){let s=n[o];i.has(s)||i.set(s,new Map),i=i.get(s)}}return t}function Tb(e,t){if(!t)return e;function r(n,i,o=0){if(!i||i.size===0||n===null||typeof n!="object")return n;if(n instanceof Date)return new Date(n.getTime());if(Array.isArray(n)){let a=[];for(let l=0;l<n.length;l++){let u=l.toString();i.has(u)||i.has("*")?a[l]=r(n[l],i.get(u)||i.get("*")):a[l]=n[l]}return a}let s=Object.create(Object.getPrototypeOf(n));for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i.has(a)||i.has("*")?s[a]=r(n[a],i.get(a)||i.get("*")):s[a]=n[a]);return s}return r(e,t)}function Ab(e){if(typeof e!="string")throw new Error("Paths must be (non-empty) strings");if(e==="")throw new Error("Invalid redaction path ()");if(e.includes(".."))throw new Error(`Invalid redaction path (${e})`);if(e.includes(","))throw new Error(`Invalid redaction path (${e})`);let t=0,r=!1,n="";for(let i=0;i<e.length;i++){let o=e[i];if((o==='"'||o==="'")&&t>0)r?o===n&&(r=!1,n=""):(r=!0,n=o);else if(o==="["&&!r)t++;else if(o==="]"&&!r&&(t--,t<0))throw new Error(`Invalid redaction path (${e})`)}if(t!==0)throw new Error(`Invalid redaction path (${e})`)}function kb(e){if(!Array.isArray(e))throw new TypeError("paths must be an array");for(let t of e)Ab(t)}function Rb(e={}){let{paths:t=[],censor:r="[REDACTED]",serialize:n=JSON.stringify,strict:i=!0,remove:o=!1}=e;kb(t);let s=xb(t);return function(l){if(i&&(l===null||typeof l!="object")&&(l==null||typeof l!="object"))return n?n(l):l;let u=Tb(l,s),c=l,d=r;return typeof r=="function"&&(d=r),Eb(u,t,d,o),n===!1?(u.restore=function(){return no(c)},u):typeof n=="function"?n(u):JSON.stringify(u)}}du.exports=Rb});var Bt=L((MM,pu)=>{"use strict";var vb=Symbol("pino.setLevel"),Lb=Symbol("pino.getLevel"),Cb=Symbol("pino.levelVal"),Ib=Symbol("pino.levelComp"),Ob=Symbol("pino.useLevelLabels"),Mb=Symbol("pino.useOnlyCustomLevels"),Nb=Symbol("pino.mixin"),Db=Symbol("pino.lsCache"),Pb=Symbol("pino.chindings"),qb=Symbol("pino.asJson"),Bb=Symbol("pino.write"),Fb=Symbol("pino.redactFmt"),jb=Symbol("pino.time"),$b=Symbol("pino.timeSliceIndex"),Ub=Symbol("pino.stream"),Wb=Symbol("pino.stringify"),zb=Symbol("pino.stringifySafe"),Vb=Symbol("pino.stringifiers"),Hb=Symbol("pino.end"),Gb=Symbol("pino.formatOpts"),Kb=Symbol("pino.messageKey"),Yb=Symbol("pino.errorKey"),Xb=Symbol("pino.nestedKey"),Jb=Symbol("pino.nestedKeyStr"),Qb=Symbol("pino.mixinMergeStrategy"),Zb=Symbol("pino.msgPrefix"),ew=Symbol("pino.wildcardFirst"),tw=Symbol.for("pino.serializers"),rw=Symbol.for("pino.formatters"),nw=Symbol.for("pino.hooks"),iw=Symbol.for("pino.metadata");pu.exports={setLevelSym:vb,getLevelSym:Lb,levelValSym:Cb,levelCompSym:Ib,useLevelLabelsSym:Ob,mixinSym:Nb,lsCacheSym:Db,chindingsSym:Pb,asJsonSym:qb,writeSym:Bb,serializersSym:tw,redactFmtSym:Fb,timeSym:jb,timeSliceIndexSym:$b,streamSym:Ub,stringifySym:Wb,stringifySafeSym:zb,stringifiersSym:Vb,endSym:Hb,formatOptsSym:Gb,messageKeySym:Kb,errorKeySym:Yb,nestedKeySym:Xb,wildcardFirstSym:ew,needsMetadataGsym:iw,useOnlyCustomLevelsSym:Mb,formattersSym:rw,hooksSym:nw,nestedKeyStrSym:Jb,mixinMergeStrategySym:Qb,msgPrefixSym:Zb}});var oo=L((NM,bu)=>{"use strict";var mu=hu(),{redactFmtSym:ow,wildcardFirstSym:cn}=Bt(),io=/[^.[\]]+|\[([^[\]]*?)\]/g,gu="[Redacted]",yu=!1;function sw(e,t){let{paths:r,censor:n,remove:i}=aw(e),o=r.reduce((l,u)=>{io.lastIndex=0;let c=io.exec(u),d=io.exec(u),h=c[1]!==void 0?c[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):c[0];if(h==="*"&&(h=cn),d===null)return l[h]=null,l;if(l[h]===null)return l;let{index:f}=d,p=`${u.substr(f,u.length-1)}`;return l[h]=l[h]||[],h!==cn&&l[h].length===0&&l[h].push(...l[cn]||[]),h===cn&&Object.keys(l).forEach(function(m){l[m]&&l[m].push(p)}),l[h].push(p),l},{}),s={[ow]:mu({paths:r,censor:n,serialize:t,strict:yu,remove:i})},a=(...l)=>t(typeof n=="function"?n(...l):n);return[...Object.keys(o),...Object.getOwnPropertySymbols(o)].reduce((l,u)=>{if(o[u]===null)l[u]=c=>a(c,[u]);else{let c=typeof n=="function"?(d,h)=>n(d,[u,...h]):n;l[u]=mu({paths:o[u],censor:c,serialize:t,strict:yu,remove:i})}return l},s)}function aw(e){if(Array.isArray(e))return e={paths:e,censor:gu},e;let{paths:t,censor:r=gu,remove:n}=e;if(Array.isArray(t)===!1)throw Error("pino \u2013 redact must contain an array of strings");return n===!0&&(r=void 0),{paths:t,censor:r,remove:n}}bu.exports=sw});var Eu=L((DM,Su)=>{"use strict";var lw=()=>"",uw=()=>`,"time":${Date.now()}`,cw=()=>`,"time":${Math.round(Date.now()/1e3)}`,fw=()=>`,"time":"${new Date(Date.now()).toISOString()}"`,dw=1000000n,wu=1000000000n,hw=BigInt(Date.now())*dw,pw=process.hrtime.bigint(),mw=()=>{let e=process.hrtime.bigint()-pw,t=hw+e,r=t/wu,n=t%wu,i=Number(r*1000n+n/1000000n),o=new Date(i),s=o.getUTCFullYear(),a=(o.getUTCMonth()+1).toString().padStart(2,"0"),l=o.getUTCDate().toString().padStart(2,"0"),u=o.getUTCHours().toString().padStart(2,"0"),c=o.getUTCMinutes().toString().padStart(2,"0"),d=o.getUTCSeconds().toString().padStart(2,"0");return`,"time":"${s}-${a}-${l}T${u}:${c}:${d}.${n.toString().padStart(9,"0")}Z"`};Su.exports={nullTime:lw,epochTime:uw,unixTime:cw,isoTime:fw,isoTimeNano:mw}});var xu=L((PM,_u)=>{"use strict";function gw(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}_u.exports=yw;function yw(e,t,r){var n=r&&r.stringify||gw,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var a=1;a<o;a++)s[a]=n(t[a]);return s.join(" ")}if(typeof e!="string")return e;var l=t.length;if(l===0)return e;for(var u="",c=1-i,d=-1,h=e&&e.length||0,f=0;f<h;){if(e.charCodeAt(f)===37&&f+1<h){switch(d=d>-1?d:0,e.charCodeAt(f+1)){case 100:case 102:if(c>=l||t[c]==null)break;d<f&&(u+=e.slice(d,f)),u+=Number(t[c]),d=f+2,f++;break;case 105:if(c>=l||t[c]==null)break;d<f&&(u+=e.slice(d,f)),u+=Math.floor(Number(t[c])),d=f+2,f++;break;case 79:case 111:case 106:if(c>=l||t[c]===void 0)break;d<f&&(u+=e.slice(d,f));var p=typeof t[c];if(p==="string"){u+="'"+t[c]+"'",d=f+2,f++;break}if(p==="function"){u+=t[c].name||"<anonymous>",d=f+2,f++;break}u+=n(t[c]),d=f+2,f++;break;case 115:if(c>=l)break;d<f&&(u+=e.slice(d,f)),u+=String(t[c]),d=f+2,f++;break;case 37:d<f&&(u+=e.slice(d,f)),u+="%",d=f+2,f++,c--;break}++c}++f}return d===-1?e:(d<h&&(u+=e.slice(d)),u)}});var ao=L((qM,so)=>{"use strict";if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let t=function(r){if((r>0&&r<1/0)===!1)throw typeof r!="number"&&typeof r!="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(e,0,0,Number(r))},e=new Int32Array(new SharedArrayBuffer(4));so.exports=t}else{let e=function(t){if((t>0&&t<1/0)===!1)throw typeof t!="number"&&typeof t!="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 n=Date.now()+Number(t);for(;n>Date.now(););};so.exports=e}});var co=L((BM,Cu)=>{"use strict";var Q=H("fs"),bw=H("events"),ww=H("util").inherits,Tu=H("path"),uo=ao(),Sw=H("assert"),fn=100,dn=Buffer.allocUnsafe(0),Ew=16*1024,Au="buffer",ku="utf8",[_w,xw]=(process.versions.node||"0.0").split(".").map(Number),Tw=_w>=22&&xw>=7;function Ru(e,t){t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;function r(o,s){if(o){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",o)}):t.emit("error",o);return}let a=t._reopening;t.fd=s,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),!t.destroyed&&(!t._writing&&t._len>t.minLength||t._flushPending?t._actualWrite():a&&process.nextTick(()=>t.emit("drain")))}let n=t.append?"a":"w",i=t.mode;if(t.sync)try{t.mkdir&&Q.mkdirSync(Tu.dirname(e),{recursive:!0});let o=Q.openSync(e,n,i);r(null,o)}catch(o){throw r(o),o}else t.mkdir?Q.mkdir(Tu.dirname(e),{recursive:!0},o=>{if(o)return r(o);Q.open(e,n,i,r)}):Q.open(e,n,i,r)}function Re(e){if(!(this instanceof Re))return new Re(e);let{fd:t,dest:r,minLength:n,maxLength:i,maxWrite:o,periodicFlush:s,sync:a,append:l=!0,mkdir:u,retryEAGAIN:c,fsync:d,contentMode:h,mode:f}=e||{};t=t||r,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(n||0,16387),this.file=null,this.destroyed=!1,this.minLength=n||0,this.maxLength=i||0,this.maxWrite=o||Ew,this._periodicFlush=s||0,this._periodicFlushTimer=void 0,this.sync=a||!1,this.writable=!0,this._fsync=d||!1,this.append=l||!1,this.mode=f,this.retryEAGAIN=c||(()=>!0),this.mkdir=u||!1;let p,m;if(h===Au)this._writingBuf=dn,this.write=Rw,this.flush=Lw,this.flushSync=Iw,this._actualWrite=Mw,p=()=>Q.writeSync(this.fd,this._writingBuf),m=()=>Q.write(this.fd,this._writingBuf,this.release);else if(h===void 0||h===ku)this._writingBuf="",this.write=kw,this.flush=vw,this.flushSync=Cw,this._actualWrite=Ow,p=()=>Buffer.isBuffer(this._writingBuf)?Q.writeSync(this.fd,this._writingBuf):Q.writeSync(this.fd,this._writingBuf,"utf8"),m=()=>Buffer.isBuffer(this._writingBuf)?Q.write(this.fd,this._writingBuf,this.release):Q.write(this.fd,this._writingBuf,"utf8",this.release);else throw new Error(`SonicBoom supports "${ku}" and "${Au}", but passed ${h}`);if(typeof t=="number")this.fd=t,process.nextTick(()=>this.emit("ready"));else if(typeof t=="string")Ru(t,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=(w,y)=>{if(w){if((w.code==="EAGAIN"||w.code==="EBUSY")&&this.retryEAGAIN(w,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{uo(fn),this.release(void 0,0)}catch(T){this.release(T)}else setTimeout(m,fn);else this._writing=!1,this.emit("error",w);return}this.emit("write",y);let x=lo(this._writingBuf,this._len,y);if(this._len=x.len,this._writingBuf=x.writingBuf,this._writingBuf.length){if(!this.sync){m();return}try{do{let T=p(),R=lo(this._writingBuf,this._len,T);this._len=R.len,this._writingBuf=R.writingBuf}while(this._writingBuf.length)}catch(T){this.release(T);return}}this._fsync&&Q.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,hn(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(Aw,this)):this.emit("drain"))},this.on("newListener",function(w){w==="drain"&&(this._asyncDrainScheduled=!1)}),this._periodicFlush!==0&&(this._periodicFlushTimer=setInterval(()=>this.flush(null),this._periodicFlush),this._periodicFlushTimer.unref())}function lo(e,t,r){return typeof e=="string"&&(e=Buffer.from(e)),t=Math.max(t-r,0),e=e.subarray(r),{writingBuf:e,len:t}}function Aw(e){e.listenerCount("drain")>0&&(e._asyncDrainScheduled=!1,e.emit("drain"))}ww(Re,bw);function vu(e,t){return e.length===0?dn:e.length===1?e[0]:Buffer.concat(e,t)}function kw(e){if(this.destroyed)throw new Error("SonicBoom destroyed");e=""+e;let t=Buffer.byteLength(e),r=this._len+t,n=this._bufs;return this.maxLength&&r>this.maxLength?(this.emit("drop",e),this._len<this._hwm):(n.length===0||Buffer.byteLength(n[n.length-1])+t>this.maxWrite?n.push(e):n[n.length-1]+=e,this._len=r,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len<this._hwm)}function Rw(e){if(this.destroyed)throw new Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs,n=this._lens;return this.maxLength&&t>this.maxLength?(this.emit("drop",e),this._len<this._hwm):(r.length===0||n[n.length-1]+e.length>this.maxWrite?(r.push([e]),n.push(e.length)):(r[r.length-1].push(e),n[n.length-1]+=e.length),this._len=t,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len<this._hwm)}function Lu(e){this._flushPending=!0;let t=()=>{if(this._fsync)this._flushPending=!1,e();else try{Q.fsync(this.fd,n=>{this._flushPending=!1,e(n)})}catch(n){e(n)}this.off("error",r)},r=n=>{this._flushPending=!1,e(n),this.off("drain",t)};this.once("drain",t),this.once("error",r)}function vw(e){if(e!=null&&typeof e!="function")throw new Error("flush cb must be a function");if(this.destroyed){let t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}e&&Lu.call(this,e),!this._writing&&(this._bufs.length===0&&this._bufs.push(""),this._actualWrite())}function Lw(e){if(e!=null&&typeof e!="function")throw new Error("flush cb must be a function");if(this.destroyed){let t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}e&&Lu.call(this,e),!this._writing&&(this._bufs.length===0&&(this._bufs.push([]),this._lens.push(0)),this._actualWrite())}Re.prototype.reopen=function(e){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});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(e&&(this.file=e),this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&Q.close(t,r=>{if(r)return this.emit("error",r)})}),Ru(this.file,this)};Re.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():hn(this)))};function Cw(){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 e="";for(;this._bufs.length||e.length;){e.length<=0&&(e=this._bufs[0]);try{let t=Buffer.isBuffer(e)?Q.writeSync(this.fd,e):Q.writeSync(this.fd,e,"utf8"),r=lo(e,this._len,t);e=r.writingBuf,this._len=r.len,e.length<=0&&this._bufs.shift()}catch(t){if((t.code==="EAGAIN"||t.code==="EBUSY")&&!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;uo(fn)}}try{Q.fsyncSync(this.fd)}catch{}}function Iw(){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=dn);let e=dn;for(;this._bufs.length||e.length;){e.length<=0&&(e=vu(this._bufs[0],this._lens[0]));try{let t=Q.writeSync(this.fd,e);e=e.subarray(t),this._len=Math.max(this._len-t,0),e.length<=0&&(this._bufs.shift(),this._lens.shift())}catch(t){if((t.code==="EAGAIN"||t.code==="EBUSY")&&!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;uo(fn)}}}Re.prototype.destroy=function(){this.destroyed||hn(this)};function Ow(){let e=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:this._bufs.shift()||"",this.sync)try{let t=Buffer.isBuffer(this._writingBuf)?Q.writeSync(this.fd,this._writingBuf):Q.writeSync(this.fd,this._writingBuf,"utf8");e(null,t)}catch(t){e(t)}else Q.write(this.fd,this._writingBuf,e)}function Mw(){let e=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:vu(this._bufs.shift(),this._lens.shift()),this.sync)try{let t=Q.writeSync(this.fd,this._writingBuf);e(null,t)}catch(t){e(t)}else Tw&&(this._writingBuf=Buffer.from(this._writingBuf)),Q.write(this.fd,this._writingBuf,e)}function hn(e){if(e.fd===-1){e.once("ready",hn.bind(null,e));return}e._periodicFlushTimer!==void 0&&clearInterval(e._periodicFlushTimer),e.destroyed=!0,e._bufs=[],e._lens=[],Sw(typeof e.fd=="number",`sonic.fd must be a number, got ${typeof e.fd}`);try{Q.fsync(e.fd,t)}catch{}function t(){e.fd!==1&&e.fd!==2?Q.close(e.fd,r):r()}function r(n){if(n){e.emit("error",n);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}}Re.SonicBoom=Re;Re.default=Re;Cu.exports=Re});var pn=L((FM,Du)=>{"use strict";var ve={exit:[],beforeExit:[]},Iu={exit:Pw,beforeExit:qw},Ft;function Nw(){Ft===void 0&&(Ft=new FinalizationRegistry(Bw))}function Dw(e){ve[e].length>0||process.on(e,Iu[e])}function Ou(e){ve[e].length>0||(process.removeListener(e,Iu[e]),ve.exit.length===0&&ve.beforeExit.length===0&&(Ft=void 0))}function Pw(){Mu("exit")}function qw(){Mu("beforeExit")}function Mu(e){for(let t of ve[e]){let r=t.deref(),n=t.fn;r!==void 0&&n(r,e)}ve[e]=[]}function Bw(e){for(let t of["exit","beforeExit"]){let r=ve[t].indexOf(e);ve[t].splice(r,r+1),Ou(t)}}function Nu(e,t,r){if(t===void 0)throw new Error("the object can't be undefined");Dw(e);let n=new WeakRef(t);n.fn=r,Nw(),Ft.register(t,n),ve[e].push(n)}function Fw(e,t){Nu("exit",e,t)}function jw(e,t){Nu("beforeExit",e,t)}function $w(e){if(Ft!==void 0){Ft.unregister(e);for(let t of["exit","beforeExit"])ve[t]=ve[t].filter(r=>{let n=r.deref();return n&&n!==e}),Ou(t)}}Du.exports={register:Fw,registerBeforeExit:jw,unregister:$w}});var Pu=L((jM,Uw)=>{Uw.exports={name:"thread-stream",version:"3.1.0",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","@yao-pkg/pkg":"^5.11.5",desm:"^1.3.0",fastbench:"^1.0.1",husky:"^9.0.6","pino-elasticsearch":"^8.0.0","sonic-boom":"^4.0.1",standard:"^17.0.0",tap:"^16.2.0","ts-node":"^10.8.0",typescript:"^5.3.2","why-is-node-running":"^2.2.2"},scripts:{build:"tsc --noEmit",test:'standard && npm run build && 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 --timeout=120 --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/**/*","test/syntax-error.mjs"]},repository:{type:"git",url:"git+https://github.com/mcollina/thread-stream.git"},keywords:["worker","thread","threads","stream"],author:"Matteo Collina <hello@matteocollina.com>",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var Bu=L(($M,qu)=>{"use strict";function Ww(e,t,r,n,i){let o=Date.now()+n,s=Atomics.load(e,t);if(s===r){i(null,"ok");return}let a=s,l=u=>{Date.now()>o?i(null,"timed-out"):setTimeout(()=>{a=s,s=Atomics.load(e,t),s===a?l(u>=1e3?1e3:u*2):s===r?i(null,"ok"):i(null,"not-equal")},u)};l(1)}function zw(e,t,r,n,i){let o=Date.now()+n,s=Atomics.load(e,t);if(s!==r){i(null,"ok");return}let a=l=>{Date.now()>o?i(null,"timed-out"):setTimeout(()=>{s=Atomics.load(e,t),s!==r?i(null,"ok"):a(l>=1e3?1e3:l*2)},l)};a(1)}qu.exports={wait:Ww,waitDiff:zw}});var ju=L((UM,Fu)=>{"use strict";Fu.exports={WRITE_INDEX:4,READ_INDEX:8}});var Vu=L((WM,zu)=>{"use strict";var{version:Vw}=Pu(),{EventEmitter:Hw}=H("events"),{Worker:Gw}=H("worker_threads"),{join:Kw}=H("path"),{pathToFileURL:Yw}=H("url"),{wait:Xw}=Bu(),{WRITE_INDEX:ge,READ_INDEX:Oe}=ju(),Jw=H("buffer"),Qw=H("assert"),k=Symbol("kImpl"),Zw=Jw.constants.MAX_STRING_LENGTH,yr=class{constructor(t){this._value=t}deref(){return this._value}},gn=class{register(){}unregister(){}},eS=process.env.NODE_V8_COVERAGE?gn:global.FinalizationRegistry||gn,tS=process.env.NODE_V8_COVERAGE?yr:global.WeakRef||yr,$u=new eS(e=>{e.exited||e.terminate()});function rS(e,t){let{filename:r,workerData:n}=t,o=("__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{})["thread-stream-worker"]||Kw(__dirname,"lib","worker.js"),s=new Gw(o,{...t.workerOpts,trackUnmanagedFds:!1,workerData:{filename:r.indexOf("file://")===0?r:Yw(r).href,dataBuf:e[k].dataBuf,stateBuf:e[k].stateBuf,workerData:{$context:{threadStreamVersion:Vw},...n}}});return s.stream=new yr(e),s.on("message",nS),s.on("exit",Wu),$u.register(e,s),s}function Uu(e){Qw(!e[k].sync),e[k].needDrain&&(e[k].needDrain=!1,e.emit("drain"))}function mn(e){let t=Atomics.load(e[k].state,ge),r=e[k].data.length-t;if(r>0){if(e[k].buf.length===0){e[k].flushing=!1,e[k].ending?go(e):e[k].needDrain&&process.nextTick(Uu,e);return}let n=e[k].buf.slice(0,r),i=Buffer.byteLength(n);i<=r?(e[k].buf=e[k].buf.slice(r),yn(e,n,mn.bind(null,e))):e.flush(()=>{if(!e.destroyed){for(Atomics.store(e[k].state,Oe,0),Atomics.store(e[k].state,ge,0);i>e[k].data.length;)r=r/2,n=e[k].buf.slice(0,r),i=Buffer.byteLength(n);e[k].buf=e[k].buf.slice(r),yn(e,n,mn.bind(null,e))}})}else if(r===0){if(t===0&&e[k].buf.length===0)return;e.flush(()=>{Atomics.store(e[k].state,Oe,0),Atomics.store(e[k].state,ge,0),mn(e)})}else Me(e,new Error("overwritten"))}function nS(e){let t=this.stream.deref();if(t===void 0){this.exited=!0,this.terminate();return}switch(e.code){case"READY":this.stream=new tS(t),t.flush(()=>{t[k].ready=!0,t.emit("ready")});break;case"ERROR":Me(t,e.err);break;case"EVENT":Array.isArray(e.args)?t.emit(e.name,...e.args):t.emit(e.name,e.args);break;case"WARNING":process.emitWarning(e.err);break;default:Me(t,new Error("this should not happen: "+e.code))}}function Wu(e){let t=this.stream.deref();t!==void 0&&($u.unregister(t),t.worker.exited=!0,t.worker.off("exit",Wu),Me(t,e!==0?new Error("the worker thread exited"):null))}var ho=class extends Hw{constructor(t={}){if(super(),t.bufferSize<4)throw new Error("bufferSize must at least fit a 4-byte utf-8 char");this[k]={},this[k].stateBuf=new SharedArrayBuffer(128),this[k].state=new Int32Array(this[k].stateBuf),this[k].dataBuf=new SharedArrayBuffer(t.bufferSize||4*1024*1024),this[k].data=Buffer.from(this[k].dataBuf),this[k].sync=t.sync||!1,this[k].ending=!1,this[k].ended=!1,this[k].needDrain=!1,this[k].destroyed=!1,this[k].flushing=!1,this[k].ready=!1,this[k].finished=!1,this[k].errored=null,this[k].closed=!1,this[k].buf="",this.worker=rS(this,t),this.on("message",(r,n)=>{this.worker.postMessage(r,n)})}write(t){if(this[k].destroyed)return po(this,new Error("the worker has exited")),!1;if(this[k].ending)return po(this,new Error("the worker is ending")),!1;if(this[k].flushing&&this[k].buf.length+t.length>=Zw)try{fo(this),this[k].flushing=!0}catch(r){return Me(this,r),!1}if(this[k].buf+=t,this[k].sync)try{return fo(this),!0}catch(r){return Me(this,r),!1}return this[k].flushing||(this[k].flushing=!0,setImmediate(mn,this)),this[k].needDrain=this[k].data.length-this[k].buf.length-Atomics.load(this[k].state,ge)<=0,!this[k].needDrain}end(){this[k].destroyed||(this[k].ending=!0,go(this))}flush(t){if(this[k].destroyed){typeof t=="function"&&process.nextTick(t,new Error("the worker has exited"));return}let r=Atomics.load(this[k].state,ge);Xw(this[k].state,Oe,r,1/0,(n,i)=>{if(n){Me(this,n),process.nextTick(t,n);return}if(i==="not-equal"){this.flush(t);return}process.nextTick(t)})}flushSync(){this[k].destroyed||(fo(this),mo(this))}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[k].ready}get destroyed(){return this[k].destroyed}get closed(){return this[k].closed}get writable(){return!this[k].destroyed&&!this[k].ending}get writableEnded(){return this[k].ending}get writableFinished(){return this[k].finished}get writableNeedDrain(){return this[k].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[k].errored}};function po(e,t){setImmediate(()=>{e.emit("error",t)})}function Me(e,t){e[k].destroyed||(e[k].destroyed=!0,t&&(e[k].errored=t,po(e,t)),e.worker.exited?setImmediate(()=>{e[k].closed=!0,e.emit("close")}):e.worker.terminate().catch(()=>{}).then(()=>{e[k].closed=!0,e.emit("close")}))}function yn(e,t,r){let n=Atomics.load(e[k].state,ge),i=Buffer.byteLength(t);return e[k].data.write(t,n),Atomics.store(e[k].state,ge,n+i),Atomics.notify(e[k].state,ge),r(),!0}function go(e){if(!(e[k].ended||!e[k].ending||e[k].flushing)){e[k].ended=!0;try{e.flushSync();let t=Atomics.load(e[k].state,Oe);Atomics.store(e[k].state,ge,-1),Atomics.notify(e[k].state,ge);let r=0;for(;t!==-1;){if(Atomics.wait(e[k].state,Oe,t,1e3),t=Atomics.load(e[k].state,Oe),t===-2){Me(e,new Error("end() failed"));return}if(++r===10){Me(e,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{e[k].finished=!0,e.emit("finish")})}catch(t){Me(e,t)}}}function fo(e){let t=()=>{e[k].ending?go(e):e[k].needDrain&&process.nextTick(Uu,e)};for(e[k].flushing=!1;e[k].buf.length!==0;){let r=Atomics.load(e[k].state,ge),n=e[k].data.length-r;if(n===0){mo(e),Atomics.store(e[k].state,Oe,0),Atomics.store(e[k].state,ge,0);continue}else if(n<0)throw new Error("overwritten");let i=e[k].buf.slice(0,n),o=Buffer.byteLength(i);if(o<=n)e[k].buf=e[k].buf.slice(n),yn(e,i,t);else{for(mo(e),Atomics.store(e[k].state,Oe,0),Atomics.store(e[k].state,ge,0);o>e[k].buf.length;)n=n/2,i=e[k].buf.slice(0,n),o=Buffer.byteLength(i);e[k].buf=e[k].buf.slice(n),yn(e,i,t)}}}function mo(e){if(e[k].flushing)throw new Error("unable to flush while flushing");let t=Atomics.load(e[k].state,ge),r=0;for(;;){let n=Atomics.load(e[k].state,Oe);if(n===-2)throw Error("_flushSync failed");if(n!==t)Atomics.wait(e[k].state,Oe,n,1e3);else break;if(++r===10)throw new Error("_flushSync took too long (10s)")}}zu.exports=ho});var wo=L((zM,Hu)=>{"use strict";var{createRequire:iS}=H("module"),oS=ro(),{join:yo,isAbsolute:sS,sep:aS}=H("node:path"),lS=ao(),bo=pn(),uS=Vu();function cS(e){bo.register(e,dS),bo.registerBeforeExit(e,hS),e.on("close",function(){bo.unregister(e)})}function fS(e,t,r,n){let i=new uS({filename:e,workerData:t,workerOpts:r,sync:n});i.on("ready",o),i.on("close",function(){process.removeListener("exit",s)}),process.on("exit",s);function o(){process.removeListener("exit",s),i.unref(),r.autoEnd!==!1&&cS(i)}function s(){i.closed||(i.flushSync(),lS(100),i.end())}return i}function dS(e){e.ref(),e.flushSync(),e.end(),e.once("close",function(){e.unref()})}function hS(e){e.flushSync()}function pS(e){let{pipeline:t,targets:r,levels:n,dedupe:i,worker:o={},caller:s=oS(),sync:a=!1}=e,l={...e.options},u=typeof s=="string"?[s]:s,c="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{},d=e.target;if(d&&r)throw new Error("only one of target or targets can be specified");return r?(d=c["pino-worker"]||yo(__dirname,"worker.js"),l.targets=r.filter(f=>f.target).map(f=>({...f,target:h(f.target)})),l.pipelines=r.filter(f=>f.pipeline).map(f=>f.pipeline.map(p=>({...p,level:f.level,target:h(p.target)})))):t&&(d=c["pino-worker"]||yo(__dirname,"worker.js"),l.pipelines=[t.map(f=>({...f,target:h(f.target)}))]),n&&(l.levels=n),i&&(l.dedupe=i),l.pinoWillSendConfig=!0,fS(h(d),l,o,a);function h(f){if(f=c[f]||f,sS(f)||f.indexOf("file://")===0)return f;if(f==="pino/file")return yo(__dirname,"..","file.js");let p;for(let m of u)try{let w=m==="node:repl"?process.cwd()+aS:m;p=iS(w).resolve(f);break}catch{continue}if(!p)throw new Error(`unable to determine transport target for "${f}"`);return p}}Hu.exports=pS});var En=L((VM,oc)=>{"use strict";var Gu=H("node:diagnostics_channel"),Ku=xu(),{mapHttpRequest:mS,mapHttpResponse:gS}=to(),Eo=co(),Yu=pn(),{lsCacheSym:yS,chindingsSym:Zu,writeSym:Xu,serializersSym:ec,formatOptsSym:Ju,endSym:bS,stringifiersSym:tc,stringifySym:rc,stringifySafeSym:_o,wildcardFirstSym:nc,nestedKeySym:wS,formattersSym:ic,messageKeySym:SS,errorKeySym:ES,nestedKeyStrSym:_S,msgPrefixSym:bn}=Bt(),{isMainThread:xS}=H("worker_threads"),TS=wo(),Sn;typeof Gu.tracingChannel=="function"?Sn=Gu.tracingChannel("pino_asJson"):Sn={hasSubscribers:!1,traceSync(e,t,r,...n){return e.call(r,...n)}};function jt(){}function AS(e,t){if(!t)return r;return function(...i){t.call(this,i,r,e)};function r(n,...i){if(typeof n=="object"){let o=n;n!==null&&(n.method&&n.headers&&n.socket?n=mS(n):typeof n.setHeader=="function"&&(n=gS(n)));let s;o===null&&i.length===0?s=[null]:(o=i.shift(),s=i),typeof this[bn]=="string"&&o!==void 0&&o!==null&&(o=this[bn]+o),this[Xu](n,Ku(o,s,this[Ju]),e)}else{let o=n===void 0?i.shift():n;typeof this[bn]=="string"&&o!==void 0&&o!==null&&(o=this[bn]+o),this[Xu](null,Ku(o,i,this[Ju]),e)}}}function So(e){let t="",r=0,n=!1,i=255,o=e.length;if(o>100)return JSON.stringify(e);for(var s=0;s<o&&i>=32;s++)i=e.charCodeAt(s),(i===34||i===92)&&(t+=e.slice(r,s)+"\\",r=s,n=!0);return n?t+=e.slice(r):t=e,i<32?JSON.stringify(e):'"'+t+'"'}function kS(e,t,r,n){if(Sn.hasSubscribers===!1)return Qu.call(this,e,t,r,n);let i={instance:this,arguments};return Sn.traceSync(Qu,i,this,e,t,r,n)}function Qu(e,t,r,n){let i=this[rc],o=this[_o],s=this[tc],a=this[bS],l=this[Zu],u=this[ec],c=this[ic],d=this[SS],h=this[ES],f=this[yS][r]+n;f=f+l;let p;c.log&&(e=c.log(e));let m=s[nc],w="";for(let x in e)if(p=e[x],Object.prototype.hasOwnProperty.call(e,x)&&p!==void 0){u[x]?p=u[x](p):x===h&&u.err&&(p=u.err(p));let E=s[x]||m;switch(typeof p){case"undefined":case"function":continue;case"number":Number.isFinite(p)===!1&&(p=null);case"boolean":E&&(p=E(p));break;case"string":p=(E||So)(p);break;default:p=(E||i)(p,o)}if(p===void 0)continue;let T=So(x);w+=","+T+":"+p}let y="";if(t!==void 0){p=u[d]?u[d](t):t;let x=s[d]||m;switch(typeof p){case"function":break;case"number":Number.isFinite(p)===!1&&(p=null);case"boolean":x&&(p=x(p)),y=',"'+d+'":'+p;break;case"string":p=(x||So)(p),y=',"'+d+'":'+p;break;default:p=(x||i)(p,o),y=',"'+d+'":'+p}}return this[wS]&&w?f+this[_S]+w.slice(1)+"}"+y+a:f+w+y+a}function RS(e,t){let r,n=e[Zu],i=e[rc],o=e[_o],s=e[tc],a=s[nc],l=e[ec],u=e[ic].bindings;t=u(t);for(let c in t)if(r=t[c],((c.length<5||c!=="level"&&c!=="serializers"&&c!=="formatters"&&c!=="customLevels")&&t.hasOwnProperty(c)&&r!==void 0)===!0){if(r=l[c]?l[c](r):r,r=(s[c]||a||i)(r,o),r===void 0)continue;n+=',"'+c+'":'+r}return n}function vS(e){return e.write!==e.constructor.prototype.write}function wn(e){let t=new Eo(e);return t.on("error",r),!e.sync&&xS&&(Yu.register(t,LS),t.on("close",function(){Yu.unregister(t)})),t;function r(n){if(n.code==="EPIPE"){t.write=jt,t.end=jt,t.flushSync=jt,t.destroy=jt;return}t.removeListener("error",r),t.emit("error",n)}}function LS(e,t){e.destroyed||(t==="beforeExit"?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}function CS(e){return function(r,n,i={},o){if(typeof i=="string")o=wn({dest:i}),i={};else if(typeof o=="string"){if(i&&i.transport)throw Error("only one of option.transport or stream can be specified");o=wn({dest:o})}else if(i instanceof Eo||i.writable||i._writableState)o=i,i={};else if(i.transport){if(i.transport instanceof Eo||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 l;i.customLevels&&(l=i.useOnlyCustomLevels?i.customLevels:Object.assign({},i.levels,i.customLevels)),o=TS({caller:n,...i.transport,levels:l})}if(i=Object.assign({},e,i),i.serializers=Object.assign({},e.serializers,i.serializers),i.formatters=Object.assign({},e.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=jt),o||(vS(process.stdout)?o=process.stdout:o=wn({fd:process.stdout.fd||1})),{opts:i,stream:o}}}function IS(e,t){try{return JSON.stringify(e)}catch{try{return(t||this[_o])(e)}catch{return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function OS(e,t,r){return{level:e,bindings:t,log:r}}function MS(e){let t=Number(e);return typeof e=="string"&&Number.isFinite(t)?t:e===void 0?1:e}oc.exports={noop:jt,buildSafeSonicBoom:wn,asChindings:RS,asJson:kS,genLog:AS,createArgsNormalizer:CS,stringify:IS,buildFormatters:OS,normalizeDestFileDescriptor:MS}});var _n=L((HM,sc)=>{var NS={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},DS={ASC:"ASC",DESC:"DESC"};sc.exports={DEFAULT_LEVELS:NS,SORTING_ORDER:DS}});var Ao=L((GM,cc)=>{"use strict";var{lsCacheSym:PS,levelValSym:xo,useOnlyCustomLevelsSym:qS,streamSym:BS,formattersSym:FS,hooksSym:jS,levelCompSym:ac}=Bt(),{noop:$S,genLog:pt}=En(),{DEFAULT_LEVELS:Ne,SORTING_ORDER:lc}=_n(),uc={fatal:e=>{let t=pt(Ne.fatal,e);return function(...r){let n=this[BS];if(t.call(this,...r),typeof n.flushSync=="function")try{n.flushSync()}catch{}}},error:e=>pt(Ne.error,e),warn:e=>pt(Ne.warn,e),info:e=>pt(Ne.info,e),debug:e=>pt(Ne.debug,e),trace:e=>pt(Ne.trace,e)},To=Object.keys(Ne).reduce((e,t)=>(e[Ne[t]]=t,e),{}),US=Object.keys(To).reduce((e,t)=>(e[t]='{"level":'+Number(t),e),{});function WS(e){let t=e[FS].level,{labels:r}=e.levels,n={};for(let i in r){let o=t(r[i],Number(i));n[i]=JSON.stringify(o).slice(0,-1)}return e[PS]=n,e}function zS(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function VS(e){let{labels:t,values:r}=this.levels;if(typeof e=="number"){if(t[e]===void 0)throw Error("unknown level value"+e);e=t[e]}if(r[e]===void 0)throw Error("unknown level "+e);let n=this[xo],i=this[xo]=r[e],o=this[qS],s=this[ac],a=this[jS].logMethod;for(let l in r){if(s(r[l],i)===!1){this[l]=$S;continue}this[l]=zS(l,o)?uc[l](a):pt(r[l],a)}this.emit("level-change",e,i,t[n],n,this)}function HS(e){let{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""}function GS(e){let{values:t}=this.levels,r=t[e];return r!==void 0&&this[ac](r,this[xo])}function KS(e,t,r){return e===lc.DESC?t<=r:t>=r}function YS(e){return typeof e=="string"?KS.bind(null,e):e}function XS(e=null,t=!1){let r=e?Object.keys(e).reduce((o,s)=>(o[e[s]]=s,o),{}):null,n=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:To,r),i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:Ne,e);return{labels:n,values:i}}function JS(e,t,r){if(typeof e=="number"){if(![].concat(Object.keys(t||{}).map(o=>t[o]),r?[]:Object.keys(To).map(o=>+o),1/0).includes(e))throw Error(`default level:${e} must be included in custom levels`);return}let n=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:Ne,t);if(!(e in n))throw Error(`default level:${e} must be included in custom levels`)}function QS(e,t){let{labels:r,values:n}=e;for(let i in t){if(i in n)throw Error("levels cannot be overridden");if(t[i]in r)throw Error("pre-existing level values cannot be used for new levels")}}function ZS(e){if(typeof e!="function"&&!(typeof e=="string"&&Object.values(lc).includes(e)))throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}cc.exports={initialLsCache:US,genLsCache:WS,levelMethods:uc,getLevel:HS,setLevel:VS,isLevelEnabled:GS,mappings:XS,assertNoLevelCollisions:QS,assertDefaultLevelFound:JS,genLevelComparison:YS,assertLevelComparison:ZS}});var ko=L((KM,fc)=>{"use strict";fc.exports={version:"9.14.0"}});var wc=L((XM,bc)=>{"use strict";var{EventEmitter:eE}=H("node:events"),{lsCacheSym:tE,levelValSym:rE,setLevelSym:Tn,getLevelSym:dc,chindingsSym:An,parsedChindingsSym:nE,mixinSym:iE,asJsonSym:pc,writeSym:oE,mixinMergeStrategySym:sE,timeSym:aE,timeSliceIndexSym:lE,streamSym:mc,serializersSym:mt,formattersSym:br,errorKeySym:uE,messageKeySym:cE,useOnlyCustomLevelsSym:fE,needsMetadataGsym:dE,redactFmtSym:hE,stringifySym:pE,formatOptsSym:mE,stringifiersSym:gE,msgPrefixSym:vo,hooksSym:yE}=Bt(),{getLevel:bE,setLevel:wE,isLevelEnabled:SE,mappings:EE,initialLsCache:_E,genLsCache:xE,assertNoLevelCollisions:TE}=Ao(),{asChindings:Lo,asJson:AE,buildFormatters:Ro,stringify:hc,noop:gc}=En(),{version:kE}=ko(),RE=oo(),vE=class{},yc={constructor:vE,child:LE,bindings:CE,setBindings:IE,flush:NE,isLevelEnabled:SE,version:kE,get level(){return this[dc]()},set level(e){this[Tn](e)},get levelVal(){return this[rE]},set levelVal(e){throw Error("levelVal is read-only")},get msgPrefix(){return this[vo]},get[Symbol.toStringTag](){return"Pino"},[tE]:_E,[oE]:ME,[pc]:AE,[dc]:bE,[Tn]:wE};Object.setPrototypeOf(yc,eE.prototype);bc.exports=function(){return Object.create(yc)};var xn=e=>e;function LE(e,t){if(!e)throw Error("missing bindings for child Pino");let r=this[mt],n=this[br],i=Object.create(this);if(t==null)return i[br].bindings!==xn&&(i[br]=Ro(n.level,xn,n.log)),i[An]=Lo(i,e),i[Tn](this.level),this.onChild!==gc&&this.onChild(i),i;if(t.hasOwnProperty("serializers")===!0){i[mt]=Object.create(null);for(let c in r)i[mt][c]=r[c];let l=Object.getOwnPropertySymbols(r);for(var o=0;o<l.length;o++){let c=l[o];i[mt][c]=r[c]}for(let c in t.serializers)i[mt][c]=t.serializers[c];let u=Object.getOwnPropertySymbols(t.serializers);for(var s=0;s<u.length;s++){let c=u[s];i[mt][c]=t.serializers[c]}}else i[mt]=r;if(t.hasOwnProperty("formatters")){let{level:l,bindings:u,log:c}=t.formatters;i[br]=Ro(l||n.level,u||xn,c||n.log)}else i[br]=Ro(n.level,xn,n.log);if(t.hasOwnProperty("customLevels")===!0&&(TE(this.levels,t.customLevels),i.levels=EE(t.customLevels,i[fE]),xE(i)),typeof t.redact=="object"&&t.redact!==null||Array.isArray(t.redact)){i.redact=t.redact;let l=RE(i.redact,hc),u={stringify:l[hE]};i[pE]=hc,i[gE]=l,i[mE]=u}typeof t.msgPrefix=="string"&&(i[vo]=(this[vo]||"")+t.msgPrefix),i[An]=Lo(i,e);let a=t.level||this.level;return i[Tn](a),this.onChild(i),i}function CE(){let t=`{${this[An].substr(1)}}`,r=JSON.parse(t);return delete r.pid,delete r.hostname,r}function IE(e){let t=Lo(this,e);this[An]=t,delete this[nE]}function OE(e,t){return Object.assign(t,e)}function ME(e,t,r){let n=this[aE](),i=this[iE],o=this[uE],s=this[cE],a=this[sE]||OE,l,u=this[yE].streamWrite;e==null?l={}:e instanceof Error?(l={[o]:e},t===void 0&&(t=e.message)):(l=e,t===void 0&&e[s]===void 0&&e[o]&&(t=e[o].message)),i&&(l=a(l,i(l,r,this)));let c=this[pc](l,t,r,n),d=this[mc];d[dE]===!0&&(d.lastLevel=r,d.lastObj=l,d.lastMsg=t,d.lastTime=n.slice(this[lE]),d.lastLogger=this),d.write(u?u(c):c)}function NE(e){if(e!=null&&typeof e!="function")throw Error("callback must be a function");let t=this[mc];typeof t.flush=="function"?t.flush(e||gc):e&&e()}});var xc=L((Mo,_c)=>{"use strict";var{hasOwnProperty:wr}=Object.prototype,yt=Oo();yt.configure=Oo;yt.stringify=yt;yt.default=yt;Mo.stringify=yt;Mo.configure=Oo;_c.exports=yt;var DE=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Qe(e){return e.length<5e3&&!DE.test(e)?`"${e}"`:JSON.stringify(e)}function Co(e,t){if(e.length>200||t)return e.sort(t);for(let r=1;r<e.length;r++){let n=e[r],i=r;for(;i!==0&&e[i-1]>n;)e[i]=e[i-1],i--;e[i]=n}return e}var PE=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Io(e){return PE.call(e)!==void 0&&e.length!==0}function Sc(e,t,r){e.length<r&&(r=e.length);let n=t===","?"":" ",i=`"0":${n}${e[0]}`;for(let o=1;o<r;o++)i+=`${t}"${o}":${n}${e[o]}`;return i}function qE(e){if(wr.call(e,"circularValue")){let t=e.circularValue;if(typeof t=="string")return`"${t}"`;if(t==null)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function BE(e){let t;if(wr.call(e,"deterministic")&&(t=e.deterministic,typeof t!="boolean"&&typeof t!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return t===void 0?!0:t}function FE(e,t){let r;if(wr.call(e,t)&&(r=e[t],typeof r!="boolean"))throw new TypeError(`The "${t}" argument must be of type boolean`);return r===void 0?!0:r}function Ec(e,t){let r;if(wr.call(e,t)){if(r=e[t],typeof r!="number")throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${t}" argument must be an integer`);if(r<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return r===void 0?1/0:r}function gt(e){return e===1?"1 item":`${e} items`}function jE(e){let t=new Set;for(let r of e)(typeof r=="string"||typeof r=="number")&&t.add(String(r));return t}function $E(e){if(wr.call(e,"strict")){let t=e.strict;if(typeof t!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(t)return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;throw typeof r!="function"&&(n+=` (${r.toString()})`),new Error(n)}}}function Oo(e){e={...e};let t=$E(e);t&&(e.bigint===void 0&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));let r=qE(e),n=FE(e,"bigint"),i=BE(e),o=typeof i=="function"?i:void 0,s=Ec(e,"maximumDepth"),a=Ec(e,"maximumBreadth");function l(f,p,m,w,y,x){let E=p[f];switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(f)),E=w.call(p,f,E),typeof E){case"string":return Qe(E);case"object":{if(E===null)return"null";if(m.indexOf(E)!==-1)return r;let T="",R=",",S=x;if(Array.isArray(E)){if(E.length===0)return"[]";if(s<m.length+1)return'"[Array]"';m.push(E),y!==""&&(x+=y,T+=`
2
+ import{a as Zg}from"./chunk-CWWDVX6C.js";import{a as H,b as Jg,c as L,d as bl,e as wl,f as Qg}from"./chunk-D76SO2ME.js";var Ki=L((kM,Vl)=>{"use strict";var gr=e=>e&&typeof e.message=="string",Gi=e=>{if(!e)return;let t=e.cause;if(typeof t=="function"){let r=e.cause();return gr(r)?r:void 0}else return gr(t)?t:void 0},Wl=(e,t)=>{if(!gr(e))return"";let r=e.stack||"";if(t.has(e))return r+`
3
+ causes have become circular...`;let n=Gi(e);return n?(t.add(e),r+`
4
+ caused by: `+Wl(n,t)):r},ob=e=>Wl(e,new Set),zl=(e,t,r)=>{if(!gr(e))return"";let n=r?"":e.message||"";if(t.has(e))return n+": ...";let i=Gi(e);if(i){t.add(e);let o=typeof e.cause=="function";return n+(o?"":": ")+zl(i,t,o)}else return n},sb=e=>zl(e,new Set);Vl.exports={isErrorLike:gr,getErrorCause:Gi,stackWithCauses:ob,messageWithCauses:sb}});var Yi=L((RM,Gl)=>{"use strict";var ab=Symbol("circular-ref-tag"),nn=Symbol("pino-raw-err-ref"),Hl=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[nn]},set:function(e){this[nn]=e}}});Object.defineProperty(Hl,nn,{writable:!0,value:{}});Gl.exports={pinoErrProto:Hl,pinoErrorSymbols:{seen:ab,rawSymbol:nn}}});var Xl=L((vM,Yl)=>{"use strict";Yl.exports=Ji;var{messageWithCauses:lb,stackWithCauses:ub,isErrorLike:Kl}=Ki(),{pinoErrProto:cb,pinoErrorSymbols:fb}=Yi(),{seen:Xi}=fb,{toString:db}=Object.prototype;function Ji(e){if(!Kl(e))return e;e[Xi]=void 0;let t=Object.create(cb);t.type=db.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=lb(e),t.stack=ub(e),Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(r=>Ji(r)));for(let r in e)if(t[r]===void 0){let n=e[r];Kl(n)?r!=="cause"&&!Object.prototype.hasOwnProperty.call(n,Xi)&&(t[r]=Ji(n)):t[r]=n}return delete e[Xi],t.raw=e,t}});var Ql=L((LM,Jl)=>{"use strict";Jl.exports=sn;var{isErrorLike:Qi}=Ki(),{pinoErrProto:hb,pinoErrorSymbols:pb}=Yi(),{seen:on}=pb,{toString:mb}=Object.prototype;function sn(e){if(!Qi(e))return e;e[on]=void 0;let t=Object.create(hb);t.type=mb.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=e.message,t.stack=e.stack,Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(r=>sn(r))),Qi(e.cause)&&!Object.prototype.hasOwnProperty.call(e.cause,on)&&(t.cause=sn(e.cause));for(let r in e)if(t[r]===void 0){let n=e[r];Qi(n)?Object.prototype.hasOwnProperty.call(n,on)||(t[r]=sn(n)):t[r]=n}return delete e[on],t.raw=e,t}});var ru=L((CM,tu)=>{"use strict";tu.exports={mapHttpRequest:gb,reqSerializer:eu};var Zi=Symbol("pino-raw-req-ref"),Zl=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[Zi]},set:function(e){this[Zi]=e}}});Object.defineProperty(Zl,Zi,{writable:!0,value:{}});function eu(e){let t=e.info||e.socket,r=Object.create(Zl);if(r.id=typeof e.id=="function"?e.id():e.id||(e.info?e.info.id:void 0),r.method=e.method,e.originalUrl)r.url=e.originalUrl;else{let n=e.path;r.url=typeof n=="string"?n:e.url?e.url.path||e.url:void 0}return e.query&&(r.query=e.query),e.params&&(r.params=e.params),r.headers=e.headers,r.remoteAddress=t&&t.remoteAddress,r.remotePort=t&&t.remotePort,r.raw=e.raw||e,r}function gb(e){return{req:eu(e)}}});var su=L((IM,ou)=>{"use strict";ou.exports={mapHttpResponse:yb,resSerializer:iu};var eo=Symbol("pino-raw-res-ref"),nu=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[eo]},set:function(e){this[eo]=e}}});Object.defineProperty(nu,eo,{writable:!0,value:{}});function iu(e){let t=Object.create(nu);return t.statusCode=e.headersSent?e.statusCode:null,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}function yb(e){return{res:iu(e)}}});var ro=L((OM,au)=>{"use strict";var to=Xl(),bb=Ql(),an=ru(),ln=su();au.exports={err:to,errWithCause:bb,mapHttpRequest:an.mapHttpRequest,mapHttpResponse:ln.mapHttpResponse,req:an.reqSerializer,res:ln.resSerializer,wrapErrorSerializer:function(t){return t===to?t:function(n){return t(to(n))}},wrapRequestSerializer:function(t){return t===an.reqSerializer?t:function(n){return t(an.reqSerializer(n))}},wrapResponseSerializer:function(t){return t===ln.resSerializer?t:function(n){return t(ln.resSerializer(n))}}}});var no=L((MM,lu)=>{"use strict";function wb(e,t){return t}lu.exports=function(){let t=Error.prepareStackTrace;Error.prepareStackTrace=wb;let r=new Error().stack;if(Error.prepareStackTrace=t,!Array.isArray(r))return;let n=r.slice(2),i=[];for(let o of n)o&&i.push(o.getFileName());return i}});var pu=L((NM,hu)=>{"use strict";function io(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array){let t=[];for(let r=0;r<e.length;r++)t[r]=io(e[r]);return t}if(typeof e=="object"){let t=Object.create(Object.getPrototypeOf(e));for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=io(e[r]));return t}return e}function uu(e){let t=[],r="",n=!1,i=!1,o="";for(let s=0;s<e.length;s++){let a=e[s];!n&&a==="."?r&&(t.push(r),r=""):a==="["?(r&&(t.push(r),r=""),n=!0):a==="]"&&n?(t.push(r),r="",n=!1,i=!1):(a==='"'||a==="'")&&n?i?a===o?(i=!1,o=""):r+=a:(i=!0,o=a):r+=a}return r&&t.push(r),t}function cu(e,t,r){let n=e;for(let o=0;o<t.length-1;o++){let s=t[o];if(typeof n!="object"||n===null||!(s in n)||typeof n[s]!="object"||n[s]===null)return!1;n=n[s]}let i=t[t.length-1];if(i==="*"){if(Array.isArray(n))for(let o=0;o<n.length;o++)n[o]=r;else if(typeof n=="object"&&n!==null)for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(n[o]=r)}else typeof n=="object"&&n!==null&&i in n&&Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=r);return!0}function fu(e,t){let r=e;for(let i=0;i<t.length-1;i++){let o=t[i];if(typeof r!="object"||r===null||!(o in r)||typeof r[o]!="object"||r[o]===null)return!1;r=r[o]}let n=t[t.length-1];if(n==="*"){if(Array.isArray(r))for(let i=0;i<r.length;i++)r[i]=void 0;else if(typeof r=="object"&&r!==null)for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&delete r[i]}else typeof r=="object"&&r!==null&&n in r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n];return!0}var un=Symbol("PATH_NOT_FOUND");function Sb(e,t){let r=e;for(let n of t){if(r==null||typeof r!="object"||r===null||!(n in r))return un;r=r[n]}return r}function Eb(e,t){let r=e;for(let n of t){if(r==null||typeof r!="object"||r===null)return;r=r[n]}return r}function _b(e,t,r,n=!1){for(let i of t){let o=uu(i);if(o.includes("*"))du(e,o,r,i,n);else if(n)fu(e,o);else{let s=Sb(e,o);if(s===un)continue;let a=typeof r=="function"?r(s,o):r;cu(e,o,a)}}}function du(e,t,r,n,i=!1){let o=t.indexOf("*");if(o===t.length-1){let s=t.slice(0,-1),a=e;for(let l of s){if(a==null||typeof a!="object"||a===null)return;a=a[l]}if(Array.isArray(a))if(i)for(let l=0;l<a.length;l++)a[l]=void 0;else for(let l=0;l<a.length;l++){let u=[...s,l.toString()],c=typeof r=="function"?r(a[l],u):r;a[l]=c}else if(typeof a=="object"&&a!==null)if(i){let l=[];for(let u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.push(u);for(let u of l)delete a[u]}else for(let l in a){let u=[...s,l],c=typeof r=="function"?r(a[l],u):r;a[l]=c}}else xb(e,t,r,o,n,i)}function xb(e,t,r,n,i,o=!1){let s=t.slice(0,n),a=t.slice(n+1),l=[];function u(c,d){if(d===s.length){if(Array.isArray(c))for(let h=0;h<c.length;h++)l[d]=h.toString(),u(c[h],d+1);else if(typeof c=="object"&&c!==null)for(let h in c)l[d]=h,u(c[h],d+1)}else if(d<s.length){let h=s[d];c&&typeof c=="object"&&c!==null&&h in c&&(l[d]=h,u(c[h],d+1))}else if(a.includes("*"))du(c,a,typeof r=="function"?(f,p)=>{let m=[...l.slice(0,d),...p];return r(f,m)}:r,i,o);else if(o)fu(c,a);else{let h=typeof r=="function"?r(Eb(c,a),[...l.slice(0,d),...a]):r;cu(c,a,h)}}if(s.length===0)u(e,0);else{let c=e;for(let d=0;d<s.length;d++){let h=s[d];if(c==null||typeof c!="object"||c===null)return;c=c[h],l[d]=h}c!=null&&u(c,s.length)}}function Tb(e){if(e.length===0)return null;let t=new Map;for(let r of e){let n=uu(r),i=t;for(let o=0;o<n.length;o++){let s=n[o];i.has(s)||i.set(s,new Map),i=i.get(s)}}return t}function Ab(e,t){if(!t)return e;function r(n,i,o=0){if(!i||i.size===0||n===null||typeof n!="object")return n;if(n instanceof Date)return new Date(n.getTime());if(Array.isArray(n)){let a=[];for(let l=0;l<n.length;l++){let u=l.toString();i.has(u)||i.has("*")?a[l]=r(n[l],i.get(u)||i.get("*")):a[l]=n[l]}return a}let s=Object.create(Object.getPrototypeOf(n));for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i.has(a)||i.has("*")?s[a]=r(n[a],i.get(a)||i.get("*")):s[a]=n[a]);return s}return r(e,t)}function kb(e){if(typeof e!="string")throw new Error("Paths must be (non-empty) strings");if(e==="")throw new Error("Invalid redaction path ()");if(e.includes(".."))throw new Error(`Invalid redaction path (${e})`);if(e.includes(","))throw new Error(`Invalid redaction path (${e})`);let t=0,r=!1,n="";for(let i=0;i<e.length;i++){let o=e[i];if((o==='"'||o==="'")&&t>0)r?o===n&&(r=!1,n=""):(r=!0,n=o);else if(o==="["&&!r)t++;else if(o==="]"&&!r&&(t--,t<0))throw new Error(`Invalid redaction path (${e})`)}if(t!==0)throw new Error(`Invalid redaction path (${e})`)}function Rb(e){if(!Array.isArray(e))throw new TypeError("paths must be an array");for(let t of e)kb(t)}function vb(e={}){let{paths:t=[],censor:r="[REDACTED]",serialize:n=JSON.stringify,strict:i=!0,remove:o=!1}=e;Rb(t);let s=Tb(t);return function(l){if(i&&(l===null||typeof l!="object")&&(l==null||typeof l!="object"))return n?n(l):l;let u=Ab(l,s),c=l,d=r;return typeof r=="function"&&(d=r),_b(u,t,d,o),n===!1?(u.restore=function(){return io(c)},u):typeof n=="function"?n(u):JSON.stringify(u)}}hu.exports=vb});var Bt=L((DM,mu)=>{"use strict";var Lb=Symbol("pino.setLevel"),Cb=Symbol("pino.getLevel"),Ib=Symbol("pino.levelVal"),Ob=Symbol("pino.levelComp"),Mb=Symbol("pino.useLevelLabels"),Nb=Symbol("pino.useOnlyCustomLevels"),Db=Symbol("pino.mixin"),Pb=Symbol("pino.lsCache"),qb=Symbol("pino.chindings"),Bb=Symbol("pino.asJson"),Fb=Symbol("pino.write"),jb=Symbol("pino.redactFmt"),$b=Symbol("pino.time"),Ub=Symbol("pino.timeSliceIndex"),Wb=Symbol("pino.stream"),zb=Symbol("pino.stringify"),Vb=Symbol("pino.stringifySafe"),Hb=Symbol("pino.stringifiers"),Gb=Symbol("pino.end"),Kb=Symbol("pino.formatOpts"),Yb=Symbol("pino.messageKey"),Xb=Symbol("pino.errorKey"),Jb=Symbol("pino.nestedKey"),Qb=Symbol("pino.nestedKeyStr"),Zb=Symbol("pino.mixinMergeStrategy"),ew=Symbol("pino.msgPrefix"),tw=Symbol("pino.wildcardFirst"),rw=Symbol.for("pino.serializers"),nw=Symbol.for("pino.formatters"),iw=Symbol.for("pino.hooks"),ow=Symbol.for("pino.metadata");mu.exports={setLevelSym:Lb,getLevelSym:Cb,levelValSym:Ib,levelCompSym:Ob,useLevelLabelsSym:Mb,mixinSym:Db,lsCacheSym:Pb,chindingsSym:qb,asJsonSym:Bb,writeSym:Fb,serializersSym:rw,redactFmtSym:jb,timeSym:$b,timeSliceIndexSym:Ub,streamSym:Wb,stringifySym:zb,stringifySafeSym:Vb,stringifiersSym:Hb,endSym:Gb,formatOptsSym:Kb,messageKeySym:Yb,errorKeySym:Xb,nestedKeySym:Jb,wildcardFirstSym:tw,needsMetadataGsym:ow,useOnlyCustomLevelsSym:Nb,formattersSym:nw,hooksSym:iw,nestedKeyStrSym:Qb,mixinMergeStrategySym:Zb,msgPrefixSym:ew}});var so=L((PM,wu)=>{"use strict";var gu=pu(),{redactFmtSym:sw,wildcardFirstSym:cn}=Bt(),oo=/[^.[\]]+|\[([^[\]]*?)\]/g,yu="[Redacted]",bu=!1;function aw(e,t){let{paths:r,censor:n,remove:i}=lw(e),o=r.reduce((l,u)=>{oo.lastIndex=0;let c=oo.exec(u),d=oo.exec(u),h=c[1]!==void 0?c[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):c[0];if(h==="*"&&(h=cn),d===null)return l[h]=null,l;if(l[h]===null)return l;let{index:f}=d,p=`${u.substr(f,u.length-1)}`;return l[h]=l[h]||[],h!==cn&&l[h].length===0&&l[h].push(...l[cn]||[]),h===cn&&Object.keys(l).forEach(function(m){l[m]&&l[m].push(p)}),l[h].push(p),l},{}),s={[sw]:gu({paths:r,censor:n,serialize:t,strict:bu,remove:i})},a=(...l)=>t(typeof n=="function"?n(...l):n);return[...Object.keys(o),...Object.getOwnPropertySymbols(o)].reduce((l,u)=>{if(o[u]===null)l[u]=c=>a(c,[u]);else{let c=typeof n=="function"?(d,h)=>n(d,[u,...h]):n;l[u]=gu({paths:o[u],censor:c,serialize:t,strict:bu,remove:i})}return l},s)}function lw(e){if(Array.isArray(e))return e={paths:e,censor:yu},e;let{paths:t,censor:r=yu,remove:n}=e;if(Array.isArray(t)===!1)throw Error("pino \u2013 redact must contain an array of strings");return n===!0&&(r=void 0),{paths:t,censor:r,remove:n}}wu.exports=aw});var _u=L((qM,Eu)=>{"use strict";var uw=()=>"",cw=()=>`,"time":${Date.now()}`,fw=()=>`,"time":${Math.round(Date.now()/1e3)}`,dw=()=>`,"time":"${new Date(Date.now()).toISOString()}"`,hw=1000000n,Su=1000000000n,pw=BigInt(Date.now())*hw,mw=process.hrtime.bigint(),gw=()=>{let e=process.hrtime.bigint()-mw,t=pw+e,r=t/Su,n=t%Su,i=Number(r*1000n+n/1000000n),o=new Date(i),s=o.getUTCFullYear(),a=(o.getUTCMonth()+1).toString().padStart(2,"0"),l=o.getUTCDate().toString().padStart(2,"0"),u=o.getUTCHours().toString().padStart(2,"0"),c=o.getUTCMinutes().toString().padStart(2,"0"),d=o.getUTCSeconds().toString().padStart(2,"0");return`,"time":"${s}-${a}-${l}T${u}:${c}:${d}.${n.toString().padStart(9,"0")}Z"`};Eu.exports={nullTime:uw,epochTime:cw,unixTime:fw,isoTime:dw,isoTimeNano:gw}});var Tu=L((BM,xu)=>{"use strict";function yw(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}xu.exports=bw;function bw(e,t,r){var n=r&&r.stringify||yw,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var a=1;a<o;a++)s[a]=n(t[a]);return s.join(" ")}if(typeof e!="string")return e;var l=t.length;if(l===0)return e;for(var u="",c=1-i,d=-1,h=e&&e.length||0,f=0;f<h;){if(e.charCodeAt(f)===37&&f+1<h){switch(d=d>-1?d:0,e.charCodeAt(f+1)){case 100:case 102:if(c>=l||t[c]==null)break;d<f&&(u+=e.slice(d,f)),u+=Number(t[c]),d=f+2,f++;break;case 105:if(c>=l||t[c]==null)break;d<f&&(u+=e.slice(d,f)),u+=Math.floor(Number(t[c])),d=f+2,f++;break;case 79:case 111:case 106:if(c>=l||t[c]===void 0)break;d<f&&(u+=e.slice(d,f));var p=typeof t[c];if(p==="string"){u+="'"+t[c]+"'",d=f+2,f++;break}if(p==="function"){u+=t[c].name||"<anonymous>",d=f+2,f++;break}u+=n(t[c]),d=f+2,f++;break;case 115:if(c>=l)break;d<f&&(u+=e.slice(d,f)),u+=String(t[c]),d=f+2,f++;break;case 37:d<f&&(u+=e.slice(d,f)),u+="%",d=f+2,f++,c--;break}++c}++f}return d===-1?e:(d<h&&(u+=e.slice(d)),u)}});var lo=L((FM,ao)=>{"use strict";if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let t=function(r){if((r>0&&r<1/0)===!1)throw typeof r!="number"&&typeof r!="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(e,0,0,Number(r))},e=new Int32Array(new SharedArrayBuffer(4));ao.exports=t}else{let e=function(t){if((t>0&&t<1/0)===!1)throw typeof t!="number"&&typeof t!="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 n=Date.now()+Number(t);for(;n>Date.now(););};ao.exports=e}});var fo=L((jM,Iu)=>{"use strict";var Q=H("fs"),ww=H("events"),Sw=H("util").inherits,Au=H("path"),co=lo(),Ew=H("assert"),fn=100,dn=Buffer.allocUnsafe(0),_w=16*1024,ku="buffer",Ru="utf8",[xw,Tw]=(process.versions.node||"0.0").split(".").map(Number),Aw=xw>=22&&Tw>=7;function vu(e,t){t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;function r(o,s){if(o){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",o)}):t.emit("error",o);return}let a=t._reopening;t.fd=s,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),!t.destroyed&&(!t._writing&&t._len>t.minLength||t._flushPending?t._actualWrite():a&&process.nextTick(()=>t.emit("drain")))}let n=t.append?"a":"w",i=t.mode;if(t.sync)try{t.mkdir&&Q.mkdirSync(Au.dirname(e),{recursive:!0});let o=Q.openSync(e,n,i);r(null,o)}catch(o){throw r(o),o}else t.mkdir?Q.mkdir(Au.dirname(e),{recursive:!0},o=>{if(o)return r(o);Q.open(e,n,i,r)}):Q.open(e,n,i,r)}function Re(e){if(!(this instanceof Re))return new Re(e);let{fd:t,dest:r,minLength:n,maxLength:i,maxWrite:o,periodicFlush:s,sync:a,append:l=!0,mkdir:u,retryEAGAIN:c,fsync:d,contentMode:h,mode:f}=e||{};t=t||r,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(n||0,16387),this.file=null,this.destroyed=!1,this.minLength=n||0,this.maxLength=i||0,this.maxWrite=o||_w,this._periodicFlush=s||0,this._periodicFlushTimer=void 0,this.sync=a||!1,this.writable=!0,this._fsync=d||!1,this.append=l||!1,this.mode=f,this.retryEAGAIN=c||(()=>!0),this.mkdir=u||!1;let p,m;if(h===ku)this._writingBuf=dn,this.write=vw,this.flush=Cw,this.flushSync=Ow,this._actualWrite=Nw,p=()=>Q.writeSync(this.fd,this._writingBuf),m=()=>Q.write(this.fd,this._writingBuf,this.release);else if(h===void 0||h===Ru)this._writingBuf="",this.write=Rw,this.flush=Lw,this.flushSync=Iw,this._actualWrite=Mw,p=()=>Buffer.isBuffer(this._writingBuf)?Q.writeSync(this.fd,this._writingBuf):Q.writeSync(this.fd,this._writingBuf,"utf8"),m=()=>Buffer.isBuffer(this._writingBuf)?Q.write(this.fd,this._writingBuf,this.release):Q.write(this.fd,this._writingBuf,"utf8",this.release);else throw new Error(`SonicBoom supports "${Ru}" and "${ku}", but passed ${h}`);if(typeof t=="number")this.fd=t,process.nextTick(()=>this.emit("ready"));else if(typeof t=="string")vu(t,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=(w,y)=>{if(w){if((w.code==="EAGAIN"||w.code==="EBUSY")&&this.retryEAGAIN(w,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{co(fn),this.release(void 0,0)}catch(T){this.release(T)}else setTimeout(m,fn);else this._writing=!1,this.emit("error",w);return}this.emit("write",y);let x=uo(this._writingBuf,this._len,y);if(this._len=x.len,this._writingBuf=x.writingBuf,this._writingBuf.length){if(!this.sync){m();return}try{do{let T=p(),R=uo(this._writingBuf,this._len,T);this._len=R.len,this._writingBuf=R.writingBuf}while(this._writingBuf.length)}catch(T){this.release(T);return}}this._fsync&&Q.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,hn(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(kw,this)):this.emit("drain"))},this.on("newListener",function(w){w==="drain"&&(this._asyncDrainScheduled=!1)}),this._periodicFlush!==0&&(this._periodicFlushTimer=setInterval(()=>this.flush(null),this._periodicFlush),this._periodicFlushTimer.unref())}function uo(e,t,r){return typeof e=="string"&&(e=Buffer.from(e)),t=Math.max(t-r,0),e=e.subarray(r),{writingBuf:e,len:t}}function kw(e){e.listenerCount("drain")>0&&(e._asyncDrainScheduled=!1,e.emit("drain"))}Sw(Re,ww);function Lu(e,t){return e.length===0?dn:e.length===1?e[0]:Buffer.concat(e,t)}function Rw(e){if(this.destroyed)throw new Error("SonicBoom destroyed");e=""+e;let t=Buffer.byteLength(e),r=this._len+t,n=this._bufs;return this.maxLength&&r>this.maxLength?(this.emit("drop",e),this._len<this._hwm):(n.length===0||Buffer.byteLength(n[n.length-1])+t>this.maxWrite?n.push(e):n[n.length-1]+=e,this._len=r,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len<this._hwm)}function vw(e){if(this.destroyed)throw new Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs,n=this._lens;return this.maxLength&&t>this.maxLength?(this.emit("drop",e),this._len<this._hwm):(r.length===0||n[n.length-1]+e.length>this.maxWrite?(r.push([e]),n.push(e.length)):(r[r.length-1].push(e),n[n.length-1]+=e.length),this._len=t,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len<this._hwm)}function Cu(e){this._flushPending=!0;let t=()=>{if(this._fsync)this._flushPending=!1,e();else try{Q.fsync(this.fd,n=>{this._flushPending=!1,e(n)})}catch(n){e(n)}this.off("error",r)},r=n=>{this._flushPending=!1,e(n),this.off("drain",t)};this.once("drain",t),this.once("error",r)}function Lw(e){if(e!=null&&typeof e!="function")throw new Error("flush cb must be a function");if(this.destroyed){let t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}e&&Cu.call(this,e),!this._writing&&(this._bufs.length===0&&this._bufs.push(""),this._actualWrite())}function Cw(e){if(e!=null&&typeof e!="function")throw new Error("flush cb must be a function");if(this.destroyed){let t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}e&&Cu.call(this,e),!this._writing&&(this._bufs.length===0&&(this._bufs.push([]),this._lens.push(0)),this._actualWrite())}Re.prototype.reopen=function(e){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});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(e&&(this.file=e),this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&Q.close(t,r=>{if(r)return this.emit("error",r)})}),vu(this.file,this)};Re.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():hn(this)))};function Iw(){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 e="";for(;this._bufs.length||e.length;){e.length<=0&&(e=this._bufs[0]);try{let t=Buffer.isBuffer(e)?Q.writeSync(this.fd,e):Q.writeSync(this.fd,e,"utf8"),r=uo(e,this._len,t);e=r.writingBuf,this._len=r.len,e.length<=0&&this._bufs.shift()}catch(t){if((t.code==="EAGAIN"||t.code==="EBUSY")&&!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;co(fn)}}try{Q.fsyncSync(this.fd)}catch{}}function Ow(){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=dn);let e=dn;for(;this._bufs.length||e.length;){e.length<=0&&(e=Lu(this._bufs[0],this._lens[0]));try{let t=Q.writeSync(this.fd,e);e=e.subarray(t),this._len=Math.max(this._len-t,0),e.length<=0&&(this._bufs.shift(),this._lens.shift())}catch(t){if((t.code==="EAGAIN"||t.code==="EBUSY")&&!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;co(fn)}}}Re.prototype.destroy=function(){this.destroyed||hn(this)};function Mw(){let e=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:this._bufs.shift()||"",this.sync)try{let t=Buffer.isBuffer(this._writingBuf)?Q.writeSync(this.fd,this._writingBuf):Q.writeSync(this.fd,this._writingBuf,"utf8");e(null,t)}catch(t){e(t)}else Q.write(this.fd,this._writingBuf,e)}function Nw(){let e=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:Lu(this._bufs.shift(),this._lens.shift()),this.sync)try{let t=Q.writeSync(this.fd,this._writingBuf);e(null,t)}catch(t){e(t)}else Aw&&(this._writingBuf=Buffer.from(this._writingBuf)),Q.write(this.fd,this._writingBuf,e)}function hn(e){if(e.fd===-1){e.once("ready",hn.bind(null,e));return}e._periodicFlushTimer!==void 0&&clearInterval(e._periodicFlushTimer),e.destroyed=!0,e._bufs=[],e._lens=[],Ew(typeof e.fd=="number",`sonic.fd must be a number, got ${typeof e.fd}`);try{Q.fsync(e.fd,t)}catch{}function t(){e.fd!==1&&e.fd!==2?Q.close(e.fd,r):r()}function r(n){if(n){e.emit("error",n);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}}Re.SonicBoom=Re;Re.default=Re;Iu.exports=Re});var pn=L(($M,Pu)=>{"use strict";var ve={exit:[],beforeExit:[]},Ou={exit:qw,beforeExit:Bw},Ft;function Dw(){Ft===void 0&&(Ft=new FinalizationRegistry(Fw))}function Pw(e){ve[e].length>0||process.on(e,Ou[e])}function Mu(e){ve[e].length>0||(process.removeListener(e,Ou[e]),ve.exit.length===0&&ve.beforeExit.length===0&&(Ft=void 0))}function qw(){Nu("exit")}function Bw(){Nu("beforeExit")}function Nu(e){for(let t of ve[e]){let r=t.deref(),n=t.fn;r!==void 0&&n(r,e)}ve[e]=[]}function Fw(e){for(let t of["exit","beforeExit"]){let r=ve[t].indexOf(e);ve[t].splice(r,r+1),Mu(t)}}function Du(e,t,r){if(t===void 0)throw new Error("the object can't be undefined");Pw(e);let n=new WeakRef(t);n.fn=r,Dw(),Ft.register(t,n),ve[e].push(n)}function jw(e,t){Du("exit",e,t)}function $w(e,t){Du("beforeExit",e,t)}function Uw(e){if(Ft!==void 0){Ft.unregister(e);for(let t of["exit","beforeExit"])ve[t]=ve[t].filter(r=>{let n=r.deref();return n&&n!==e}),Mu(t)}}Pu.exports={register:jw,registerBeforeExit:$w,unregister:Uw}});var qu=L((UM,Ww)=>{Ww.exports={name:"thread-stream",version:"3.1.0",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","@yao-pkg/pkg":"^5.11.5",desm:"^1.3.0",fastbench:"^1.0.1",husky:"^9.0.6","pino-elasticsearch":"^8.0.0","sonic-boom":"^4.0.1",standard:"^17.0.0",tap:"^16.2.0","ts-node":"^10.8.0",typescript:"^5.3.2","why-is-node-running":"^2.2.2"},scripts:{build:"tsc --noEmit",test:'standard && npm run build && 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 --timeout=120 --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/**/*","test/syntax-error.mjs"]},repository:{type:"git",url:"git+https://github.com/mcollina/thread-stream.git"},keywords:["worker","thread","threads","stream"],author:"Matteo Collina <hello@matteocollina.com>",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var Fu=L((WM,Bu)=>{"use strict";function zw(e,t,r,n,i){let o=Date.now()+n,s=Atomics.load(e,t);if(s===r){i(null,"ok");return}let a=s,l=u=>{Date.now()>o?i(null,"timed-out"):setTimeout(()=>{a=s,s=Atomics.load(e,t),s===a?l(u>=1e3?1e3:u*2):s===r?i(null,"ok"):i(null,"not-equal")},u)};l(1)}function Vw(e,t,r,n,i){let o=Date.now()+n,s=Atomics.load(e,t);if(s!==r){i(null,"ok");return}let a=l=>{Date.now()>o?i(null,"timed-out"):setTimeout(()=>{s=Atomics.load(e,t),s!==r?i(null,"ok"):a(l>=1e3?1e3:l*2)},l)};a(1)}Bu.exports={wait:zw,waitDiff:Vw}});var $u=L((zM,ju)=>{"use strict";ju.exports={WRITE_INDEX:4,READ_INDEX:8}});var Hu=L((VM,Vu)=>{"use strict";var{version:Hw}=qu(),{EventEmitter:Gw}=H("events"),{Worker:Kw}=H("worker_threads"),{join:Yw}=H("path"),{pathToFileURL:Xw}=H("url"),{wait:Jw}=Fu(),{WRITE_INDEX:ge,READ_INDEX:Oe}=$u(),Qw=H("buffer"),Zw=H("assert"),k=Symbol("kImpl"),eS=Qw.constants.MAX_STRING_LENGTH,yr=class{constructor(t){this._value=t}deref(){return this._value}},gn=class{register(){}unregister(){}},tS=process.env.NODE_V8_COVERAGE?gn:global.FinalizationRegistry||gn,rS=process.env.NODE_V8_COVERAGE?yr:global.WeakRef||yr,Uu=new tS(e=>{e.exited||e.terminate()});function nS(e,t){let{filename:r,workerData:n}=t,o=("__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{})["thread-stream-worker"]||Yw(__dirname,"lib","worker.js"),s=new Kw(o,{...t.workerOpts,trackUnmanagedFds:!1,workerData:{filename:r.indexOf("file://")===0?r:Xw(r).href,dataBuf:e[k].dataBuf,stateBuf:e[k].stateBuf,workerData:{$context:{threadStreamVersion:Hw},...n}}});return s.stream=new yr(e),s.on("message",iS),s.on("exit",zu),Uu.register(e,s),s}function Wu(e){Zw(!e[k].sync),e[k].needDrain&&(e[k].needDrain=!1,e.emit("drain"))}function mn(e){let t=Atomics.load(e[k].state,ge),r=e[k].data.length-t;if(r>0){if(e[k].buf.length===0){e[k].flushing=!1,e[k].ending?yo(e):e[k].needDrain&&process.nextTick(Wu,e);return}let n=e[k].buf.slice(0,r),i=Buffer.byteLength(n);i<=r?(e[k].buf=e[k].buf.slice(r),yn(e,n,mn.bind(null,e))):e.flush(()=>{if(!e.destroyed){for(Atomics.store(e[k].state,Oe,0),Atomics.store(e[k].state,ge,0);i>e[k].data.length;)r=r/2,n=e[k].buf.slice(0,r),i=Buffer.byteLength(n);e[k].buf=e[k].buf.slice(r),yn(e,n,mn.bind(null,e))}})}else if(r===0){if(t===0&&e[k].buf.length===0)return;e.flush(()=>{Atomics.store(e[k].state,Oe,0),Atomics.store(e[k].state,ge,0),mn(e)})}else Me(e,new Error("overwritten"))}function iS(e){let t=this.stream.deref();if(t===void 0){this.exited=!0,this.terminate();return}switch(e.code){case"READY":this.stream=new rS(t),t.flush(()=>{t[k].ready=!0,t.emit("ready")});break;case"ERROR":Me(t,e.err);break;case"EVENT":Array.isArray(e.args)?t.emit(e.name,...e.args):t.emit(e.name,e.args);break;case"WARNING":process.emitWarning(e.err);break;default:Me(t,new Error("this should not happen: "+e.code))}}function zu(e){let t=this.stream.deref();t!==void 0&&(Uu.unregister(t),t.worker.exited=!0,t.worker.off("exit",zu),Me(t,e!==0?new Error("the worker thread exited"):null))}var po=class extends Gw{constructor(t={}){if(super(),t.bufferSize<4)throw new Error("bufferSize must at least fit a 4-byte utf-8 char");this[k]={},this[k].stateBuf=new SharedArrayBuffer(128),this[k].state=new Int32Array(this[k].stateBuf),this[k].dataBuf=new SharedArrayBuffer(t.bufferSize||4*1024*1024),this[k].data=Buffer.from(this[k].dataBuf),this[k].sync=t.sync||!1,this[k].ending=!1,this[k].ended=!1,this[k].needDrain=!1,this[k].destroyed=!1,this[k].flushing=!1,this[k].ready=!1,this[k].finished=!1,this[k].errored=null,this[k].closed=!1,this[k].buf="",this.worker=nS(this,t),this.on("message",(r,n)=>{this.worker.postMessage(r,n)})}write(t){if(this[k].destroyed)return mo(this,new Error("the worker has exited")),!1;if(this[k].ending)return mo(this,new Error("the worker is ending")),!1;if(this[k].flushing&&this[k].buf.length+t.length>=eS)try{ho(this),this[k].flushing=!0}catch(r){return Me(this,r),!1}if(this[k].buf+=t,this[k].sync)try{return ho(this),!0}catch(r){return Me(this,r),!1}return this[k].flushing||(this[k].flushing=!0,setImmediate(mn,this)),this[k].needDrain=this[k].data.length-this[k].buf.length-Atomics.load(this[k].state,ge)<=0,!this[k].needDrain}end(){this[k].destroyed||(this[k].ending=!0,yo(this))}flush(t){if(this[k].destroyed){typeof t=="function"&&process.nextTick(t,new Error("the worker has exited"));return}let r=Atomics.load(this[k].state,ge);Jw(this[k].state,Oe,r,1/0,(n,i)=>{if(n){Me(this,n),process.nextTick(t,n);return}if(i==="not-equal"){this.flush(t);return}process.nextTick(t)})}flushSync(){this[k].destroyed||(ho(this),go(this))}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[k].ready}get destroyed(){return this[k].destroyed}get closed(){return this[k].closed}get writable(){return!this[k].destroyed&&!this[k].ending}get writableEnded(){return this[k].ending}get writableFinished(){return this[k].finished}get writableNeedDrain(){return this[k].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[k].errored}};function mo(e,t){setImmediate(()=>{e.emit("error",t)})}function Me(e,t){e[k].destroyed||(e[k].destroyed=!0,t&&(e[k].errored=t,mo(e,t)),e.worker.exited?setImmediate(()=>{e[k].closed=!0,e.emit("close")}):e.worker.terminate().catch(()=>{}).then(()=>{e[k].closed=!0,e.emit("close")}))}function yn(e,t,r){let n=Atomics.load(e[k].state,ge),i=Buffer.byteLength(t);return e[k].data.write(t,n),Atomics.store(e[k].state,ge,n+i),Atomics.notify(e[k].state,ge),r(),!0}function yo(e){if(!(e[k].ended||!e[k].ending||e[k].flushing)){e[k].ended=!0;try{e.flushSync();let t=Atomics.load(e[k].state,Oe);Atomics.store(e[k].state,ge,-1),Atomics.notify(e[k].state,ge);let r=0;for(;t!==-1;){if(Atomics.wait(e[k].state,Oe,t,1e3),t=Atomics.load(e[k].state,Oe),t===-2){Me(e,new Error("end() failed"));return}if(++r===10){Me(e,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{e[k].finished=!0,e.emit("finish")})}catch(t){Me(e,t)}}}function ho(e){let t=()=>{e[k].ending?yo(e):e[k].needDrain&&process.nextTick(Wu,e)};for(e[k].flushing=!1;e[k].buf.length!==0;){let r=Atomics.load(e[k].state,ge),n=e[k].data.length-r;if(n===0){go(e),Atomics.store(e[k].state,Oe,0),Atomics.store(e[k].state,ge,0);continue}else if(n<0)throw new Error("overwritten");let i=e[k].buf.slice(0,n),o=Buffer.byteLength(i);if(o<=n)e[k].buf=e[k].buf.slice(n),yn(e,i,t);else{for(go(e),Atomics.store(e[k].state,Oe,0),Atomics.store(e[k].state,ge,0);o>e[k].buf.length;)n=n/2,i=e[k].buf.slice(0,n),o=Buffer.byteLength(i);e[k].buf=e[k].buf.slice(n),yn(e,i,t)}}}function go(e){if(e[k].flushing)throw new Error("unable to flush while flushing");let t=Atomics.load(e[k].state,ge),r=0;for(;;){let n=Atomics.load(e[k].state,Oe);if(n===-2)throw Error("_flushSync failed");if(n!==t)Atomics.wait(e[k].state,Oe,n,1e3);else break;if(++r===10)throw new Error("_flushSync took too long (10s)")}}Vu.exports=po});var So=L((HM,Gu)=>{"use strict";var{createRequire:oS}=H("module"),sS=no(),{join:bo,isAbsolute:aS,sep:lS}=H("node:path"),uS=lo(),wo=pn(),cS=Hu();function fS(e){wo.register(e,hS),wo.registerBeforeExit(e,pS),e.on("close",function(){wo.unregister(e)})}function dS(e,t,r,n){let i=new cS({filename:e,workerData:t,workerOpts:r,sync:n});i.on("ready",o),i.on("close",function(){process.removeListener("exit",s)}),process.on("exit",s);function o(){process.removeListener("exit",s),i.unref(),r.autoEnd!==!1&&fS(i)}function s(){i.closed||(i.flushSync(),uS(100),i.end())}return i}function hS(e){e.ref(),e.flushSync(),e.end(),e.once("close",function(){e.unref()})}function pS(e){e.flushSync()}function mS(e){let{pipeline:t,targets:r,levels:n,dedupe:i,worker:o={},caller:s=sS(),sync:a=!1}=e,l={...e.options},u=typeof s=="string"?[s]:s,c="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{},d=e.target;if(d&&r)throw new Error("only one of target or targets can be specified");return r?(d=c["pino-worker"]||bo(__dirname,"worker.js"),l.targets=r.filter(f=>f.target).map(f=>({...f,target:h(f.target)})),l.pipelines=r.filter(f=>f.pipeline).map(f=>f.pipeline.map(p=>({...p,level:f.level,target:h(p.target)})))):t&&(d=c["pino-worker"]||bo(__dirname,"worker.js"),l.pipelines=[t.map(f=>({...f,target:h(f.target)}))]),n&&(l.levels=n),i&&(l.dedupe=i),l.pinoWillSendConfig=!0,dS(h(d),l,o,a);function h(f){if(f=c[f]||f,aS(f)||f.indexOf("file://")===0)return f;if(f==="pino/file")return bo(__dirname,"..","file.js");let p;for(let m of u)try{let w=m==="node:repl"?process.cwd()+lS:m;p=oS(w).resolve(f);break}catch{continue}if(!p)throw new Error(`unable to determine transport target for "${f}"`);return p}}Gu.exports=mS});var En=L((GM,sc)=>{"use strict";var Ku=H("node:diagnostics_channel"),Yu=Tu(),{mapHttpRequest:gS,mapHttpResponse:yS}=ro(),_o=fo(),Xu=pn(),{lsCacheSym:bS,chindingsSym:ec,writeSym:Ju,serializersSym:tc,formatOptsSym:Qu,endSym:wS,stringifiersSym:rc,stringifySym:nc,stringifySafeSym:xo,wildcardFirstSym:ic,nestedKeySym:SS,formattersSym:oc,messageKeySym:ES,errorKeySym:_S,nestedKeyStrSym:xS,msgPrefixSym:bn}=Bt(),{isMainThread:TS}=H("worker_threads"),AS=So(),Sn;typeof Ku.tracingChannel=="function"?Sn=Ku.tracingChannel("pino_asJson"):Sn={hasSubscribers:!1,traceSync(e,t,r,...n){return e.call(r,...n)}};function jt(){}function kS(e,t){if(!t)return r;return function(...i){t.call(this,i,r,e)};function r(n,...i){if(typeof n=="object"){let o=n;n!==null&&(n.method&&n.headers&&n.socket?n=gS(n):typeof n.setHeader=="function"&&(n=yS(n)));let s;o===null&&i.length===0?s=[null]:(o=i.shift(),s=i),typeof this[bn]=="string"&&o!==void 0&&o!==null&&(o=this[bn]+o),this[Ju](n,Yu(o,s,this[Qu]),e)}else{let o=n===void 0?i.shift():n;typeof this[bn]=="string"&&o!==void 0&&o!==null&&(o=this[bn]+o),this[Ju](null,Yu(o,i,this[Qu]),e)}}}function Eo(e){let t="",r=0,n=!1,i=255,o=e.length;if(o>100)return JSON.stringify(e);for(var s=0;s<o&&i>=32;s++)i=e.charCodeAt(s),(i===34||i===92)&&(t+=e.slice(r,s)+"\\",r=s,n=!0);return n?t+=e.slice(r):t=e,i<32?JSON.stringify(e):'"'+t+'"'}function RS(e,t,r,n){if(Sn.hasSubscribers===!1)return Zu.call(this,e,t,r,n);let i={instance:this,arguments};return Sn.traceSync(Zu,i,this,e,t,r,n)}function Zu(e,t,r,n){let i=this[nc],o=this[xo],s=this[rc],a=this[wS],l=this[ec],u=this[tc],c=this[oc],d=this[ES],h=this[_S],f=this[bS][r]+n;f=f+l;let p;c.log&&(e=c.log(e));let m=s[ic],w="";for(let x in e)if(p=e[x],Object.prototype.hasOwnProperty.call(e,x)&&p!==void 0){u[x]?p=u[x](p):x===h&&u.err&&(p=u.err(p));let E=s[x]||m;switch(typeof p){case"undefined":case"function":continue;case"number":Number.isFinite(p)===!1&&(p=null);case"boolean":E&&(p=E(p));break;case"string":p=(E||Eo)(p);break;default:p=(E||i)(p,o)}if(p===void 0)continue;let T=Eo(x);w+=","+T+":"+p}let y="";if(t!==void 0){p=u[d]?u[d](t):t;let x=s[d]||m;switch(typeof p){case"function":break;case"number":Number.isFinite(p)===!1&&(p=null);case"boolean":x&&(p=x(p)),y=',"'+d+'":'+p;break;case"string":p=(x||Eo)(p),y=',"'+d+'":'+p;break;default:p=(x||i)(p,o),y=',"'+d+'":'+p}}return this[SS]&&w?f+this[xS]+w.slice(1)+"}"+y+a:f+w+y+a}function vS(e,t){let r,n=e[ec],i=e[nc],o=e[xo],s=e[rc],a=s[ic],l=e[tc],u=e[oc].bindings;t=u(t);for(let c in t)if(r=t[c],((c.length<5||c!=="level"&&c!=="serializers"&&c!=="formatters"&&c!=="customLevels")&&t.hasOwnProperty(c)&&r!==void 0)===!0){if(r=l[c]?l[c](r):r,r=(s[c]||a||i)(r,o),r===void 0)continue;n+=',"'+c+'":'+r}return n}function LS(e){return e.write!==e.constructor.prototype.write}function wn(e){let t=new _o(e);return t.on("error",r),!e.sync&&TS&&(Xu.register(t,CS),t.on("close",function(){Xu.unregister(t)})),t;function r(n){if(n.code==="EPIPE"){t.write=jt,t.end=jt,t.flushSync=jt,t.destroy=jt;return}t.removeListener("error",r),t.emit("error",n)}}function CS(e,t){e.destroyed||(t==="beforeExit"?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}function IS(e){return function(r,n,i={},o){if(typeof i=="string")o=wn({dest:i}),i={};else if(typeof o=="string"){if(i&&i.transport)throw Error("only one of option.transport or stream can be specified");o=wn({dest:o})}else if(i instanceof _o||i.writable||i._writableState)o=i,i={};else if(i.transport){if(i.transport instanceof _o||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 l;i.customLevels&&(l=i.useOnlyCustomLevels?i.customLevels:Object.assign({},i.levels,i.customLevels)),o=AS({caller:n,...i.transport,levels:l})}if(i=Object.assign({},e,i),i.serializers=Object.assign({},e.serializers,i.serializers),i.formatters=Object.assign({},e.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=jt),o||(LS(process.stdout)?o=process.stdout:o=wn({fd:process.stdout.fd||1})),{opts:i,stream:o}}}function OS(e,t){try{return JSON.stringify(e)}catch{try{return(t||this[xo])(e)}catch{return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function MS(e,t,r){return{level:e,bindings:t,log:r}}function NS(e){let t=Number(e);return typeof e=="string"&&Number.isFinite(t)?t:e===void 0?1:e}sc.exports={noop:jt,buildSafeSonicBoom:wn,asChindings:vS,asJson:RS,genLog:kS,createArgsNormalizer:IS,stringify:OS,buildFormatters:MS,normalizeDestFileDescriptor:NS}});var _n=L((KM,ac)=>{var DS={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},PS={ASC:"ASC",DESC:"DESC"};ac.exports={DEFAULT_LEVELS:DS,SORTING_ORDER:PS}});var ko=L((YM,fc)=>{"use strict";var{lsCacheSym:qS,levelValSym:To,useOnlyCustomLevelsSym:BS,streamSym:FS,formattersSym:jS,hooksSym:$S,levelCompSym:lc}=Bt(),{noop:US,genLog:pt}=En(),{DEFAULT_LEVELS:Ne,SORTING_ORDER:uc}=_n(),cc={fatal:e=>{let t=pt(Ne.fatal,e);return function(...r){let n=this[FS];if(t.call(this,...r),typeof n.flushSync=="function")try{n.flushSync()}catch{}}},error:e=>pt(Ne.error,e),warn:e=>pt(Ne.warn,e),info:e=>pt(Ne.info,e),debug:e=>pt(Ne.debug,e),trace:e=>pt(Ne.trace,e)},Ao=Object.keys(Ne).reduce((e,t)=>(e[Ne[t]]=t,e),{}),WS=Object.keys(Ao).reduce((e,t)=>(e[t]='{"level":'+Number(t),e),{});function zS(e){let t=e[jS].level,{labels:r}=e.levels,n={};for(let i in r){let o=t(r[i],Number(i));n[i]=JSON.stringify(o).slice(0,-1)}return e[qS]=n,e}function VS(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function HS(e){let{labels:t,values:r}=this.levels;if(typeof e=="number"){if(t[e]===void 0)throw Error("unknown level value"+e);e=t[e]}if(r[e]===void 0)throw Error("unknown level "+e);let n=this[To],i=this[To]=r[e],o=this[BS],s=this[lc],a=this[$S].logMethod;for(let l in r){if(s(r[l],i)===!1){this[l]=US;continue}this[l]=VS(l,o)?cc[l](a):pt(r[l],a)}this.emit("level-change",e,i,t[n],n,this)}function GS(e){let{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""}function KS(e){let{values:t}=this.levels,r=t[e];return r!==void 0&&this[lc](r,this[To])}function YS(e,t,r){return e===uc.DESC?t<=r:t>=r}function XS(e){return typeof e=="string"?YS.bind(null,e):e}function JS(e=null,t=!1){let r=e?Object.keys(e).reduce((o,s)=>(o[e[s]]=s,o),{}):null,n=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:Ao,r),i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:Ne,e);return{labels:n,values:i}}function QS(e,t,r){if(typeof e=="number"){if(![].concat(Object.keys(t||{}).map(o=>t[o]),r?[]:Object.keys(Ao).map(o=>+o),1/0).includes(e))throw Error(`default level:${e} must be included in custom levels`);return}let n=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:Ne,t);if(!(e in n))throw Error(`default level:${e} must be included in custom levels`)}function ZS(e,t){let{labels:r,values:n}=e;for(let i in t){if(i in n)throw Error("levels cannot be overridden");if(t[i]in r)throw Error("pre-existing level values cannot be used for new levels")}}function eE(e){if(typeof e!="function"&&!(typeof e=="string"&&Object.values(uc).includes(e)))throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}fc.exports={initialLsCache:WS,genLsCache:zS,levelMethods:cc,getLevel:GS,setLevel:HS,isLevelEnabled:KS,mappings:JS,assertNoLevelCollisions:ZS,assertDefaultLevelFound:QS,genLevelComparison:XS,assertLevelComparison:eE}});var Ro=L((XM,dc)=>{"use strict";dc.exports={version:"9.14.0"}});var Sc=L((QM,wc)=>{"use strict";var{EventEmitter:tE}=H("node:events"),{lsCacheSym:rE,levelValSym:nE,setLevelSym:Tn,getLevelSym:hc,chindingsSym:An,parsedChindingsSym:iE,mixinSym:oE,asJsonSym:mc,writeSym:sE,mixinMergeStrategySym:aE,timeSym:lE,timeSliceIndexSym:uE,streamSym:gc,serializersSym:mt,formattersSym:br,errorKeySym:cE,messageKeySym:fE,useOnlyCustomLevelsSym:dE,needsMetadataGsym:hE,redactFmtSym:pE,stringifySym:mE,formatOptsSym:gE,stringifiersSym:yE,msgPrefixSym:Lo,hooksSym:bE}=Bt(),{getLevel:wE,setLevel:SE,isLevelEnabled:EE,mappings:_E,initialLsCache:xE,genLsCache:TE,assertNoLevelCollisions:AE}=ko(),{asChindings:Co,asJson:kE,buildFormatters:vo,stringify:pc,noop:yc}=En(),{version:RE}=Ro(),vE=so(),LE=class{},bc={constructor:LE,child:CE,bindings:IE,setBindings:OE,flush:DE,isLevelEnabled:EE,version:RE,get level(){return this[hc]()},set level(e){this[Tn](e)},get levelVal(){return this[nE]},set levelVal(e){throw Error("levelVal is read-only")},get msgPrefix(){return this[Lo]},get[Symbol.toStringTag](){return"Pino"},[rE]:xE,[sE]:NE,[mc]:kE,[hc]:wE,[Tn]:SE};Object.setPrototypeOf(bc,tE.prototype);wc.exports=function(){return Object.create(bc)};var xn=e=>e;function CE(e,t){if(!e)throw Error("missing bindings for child Pino");let r=this[mt],n=this[br],i=Object.create(this);if(t==null)return i[br].bindings!==xn&&(i[br]=vo(n.level,xn,n.log)),i[An]=Co(i,e),i[Tn](this.level),this.onChild!==yc&&this.onChild(i),i;if(t.hasOwnProperty("serializers")===!0){i[mt]=Object.create(null);for(let c in r)i[mt][c]=r[c];let l=Object.getOwnPropertySymbols(r);for(var o=0;o<l.length;o++){let c=l[o];i[mt][c]=r[c]}for(let c in t.serializers)i[mt][c]=t.serializers[c];let u=Object.getOwnPropertySymbols(t.serializers);for(var s=0;s<u.length;s++){let c=u[s];i[mt][c]=t.serializers[c]}}else i[mt]=r;if(t.hasOwnProperty("formatters")){let{level:l,bindings:u,log:c}=t.formatters;i[br]=vo(l||n.level,u||xn,c||n.log)}else i[br]=vo(n.level,xn,n.log);if(t.hasOwnProperty("customLevels")===!0&&(AE(this.levels,t.customLevels),i.levels=_E(t.customLevels,i[dE]),TE(i)),typeof t.redact=="object"&&t.redact!==null||Array.isArray(t.redact)){i.redact=t.redact;let l=vE(i.redact,pc),u={stringify:l[pE]};i[mE]=pc,i[yE]=l,i[gE]=u}typeof t.msgPrefix=="string"&&(i[Lo]=(this[Lo]||"")+t.msgPrefix),i[An]=Co(i,e);let a=t.level||this.level;return i[Tn](a),this.onChild(i),i}function IE(){let t=`{${this[An].substr(1)}}`,r=JSON.parse(t);return delete r.pid,delete r.hostname,r}function OE(e){let t=Co(this,e);this[An]=t,delete this[iE]}function ME(e,t){return Object.assign(t,e)}function NE(e,t,r){let n=this[lE](),i=this[oE],o=this[cE],s=this[fE],a=this[aE]||ME,l,u=this[bE].streamWrite;e==null?l={}:e instanceof Error?(l={[o]:e},t===void 0&&(t=e.message)):(l=e,t===void 0&&e[s]===void 0&&e[o]&&(t=e[o].message)),i&&(l=a(l,i(l,r,this)));let c=this[mc](l,t,r,n),d=this[gc];d[hE]===!0&&(d.lastLevel=r,d.lastObj=l,d.lastMsg=t,d.lastTime=n.slice(this[uE]),d.lastLogger=this),d.write(u?u(c):c)}function DE(e){if(e!=null&&typeof e!="function")throw Error("callback must be a function");let t=this[gc];typeof t.flush=="function"?t.flush(e||yc):e&&e()}});var Tc=L((No,xc)=>{"use strict";var{hasOwnProperty:wr}=Object.prototype,yt=Mo();yt.configure=Mo;yt.stringify=yt;yt.default=yt;No.stringify=yt;No.configure=Mo;xc.exports=yt;var PE=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Qe(e){return e.length<5e3&&!PE.test(e)?`"${e}"`:JSON.stringify(e)}function Io(e,t){if(e.length>200||t)return e.sort(t);for(let r=1;r<e.length;r++){let n=e[r],i=r;for(;i!==0&&e[i-1]>n;)e[i]=e[i-1],i--;e[i]=n}return e}var qE=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Oo(e){return qE.call(e)!==void 0&&e.length!==0}function Ec(e,t,r){e.length<r&&(r=e.length);let n=t===","?"":" ",i=`"0":${n}${e[0]}`;for(let o=1;o<r;o++)i+=`${t}"${o}":${n}${e[o]}`;return i}function BE(e){if(wr.call(e,"circularValue")){let t=e.circularValue;if(typeof t=="string")return`"${t}"`;if(t==null)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function FE(e){let t;if(wr.call(e,"deterministic")&&(t=e.deterministic,typeof t!="boolean"&&typeof t!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return t===void 0?!0:t}function jE(e,t){let r;if(wr.call(e,t)&&(r=e[t],typeof r!="boolean"))throw new TypeError(`The "${t}" argument must be of type boolean`);return r===void 0?!0:r}function _c(e,t){let r;if(wr.call(e,t)){if(r=e[t],typeof r!="number")throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${t}" argument must be an integer`);if(r<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return r===void 0?1/0:r}function gt(e){return e===1?"1 item":`${e} items`}function $E(e){let t=new Set;for(let r of e)(typeof r=="string"||typeof r=="number")&&t.add(String(r));return t}function UE(e){if(wr.call(e,"strict")){let t=e.strict;if(typeof t!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(t)return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;throw typeof r!="function"&&(n+=` (${r.toString()})`),new Error(n)}}}function Mo(e){e={...e};let t=UE(e);t&&(e.bigint===void 0&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));let r=BE(e),n=jE(e,"bigint"),i=FE(e),o=typeof i=="function"?i:void 0,s=_c(e,"maximumDepth"),a=_c(e,"maximumBreadth");function l(f,p,m,w,y,x){let E=p[f];switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(f)),E=w.call(p,f,E),typeof E){case"string":return Qe(E);case"object":{if(E===null)return"null";if(m.indexOf(E)!==-1)return r;let T="",R=",",S=x;if(Array.isArray(E)){if(E.length===0)return"[]";if(s<m.length+1)return'"[Array]"';m.push(E),y!==""&&(x+=y,T+=`
5
5
  ${x}`,R=`,
6
6
  ${x}`);let D=Math.min(E.length,a),_=0;for(;_<D-1;_++){let P=l(String(_),E,m,w,y,x);T+=P!==void 0?P:"null",T+=R}let q=l(String(_),E,m,w,y,x);if(T+=q!==void 0?q:"null",E.length-1>a){let P=E.length-a-1;T+=`${R}"... ${gt(P)} not stringified"`}return y!==""&&(T+=`
7
7
  ${S}`),m.pop(),`[${T}]`}let C=Object.keys(E),O=C.length;if(O===0)return"{}";if(s<m.length+1)return'"[Object]"';let v="",N="";y!==""&&(x+=y,R=`,
8
- ${x}`,v=" ");let W=Math.min(O,a);i&&!Io(E)&&(C=Co(C,o)),m.push(E);for(let D=0;D<W;D++){let _=C[D],q=l(_,E,m,w,y,x);q!==void 0&&(T+=`${N}${Qe(_)}:${v}${q}`,N=R)}if(O>a){let D=O-a;T+=`${N}"...":${v}"${gt(D)} not stringified"`,N=R}return y!==""&&N.length>1&&(T=`
8
+ ${x}`,v=" ");let W=Math.min(O,a);i&&!Oo(E)&&(C=Io(C,o)),m.push(E);for(let D=0;D<W;D++){let _=C[D],q=l(_,E,m,w,y,x);q!==void 0&&(T+=`${N}${Qe(_)}:${v}${q}`,N=R)}if(O>a){let D=O-a;T+=`${N}"...":${v}"${gt(D)} not stringified"`,N=R}return y!==""&&N.length>1&&(T=`
9
9
  ${x}${T}
10
10
  ${S}`),m.pop(),`{${T}}`}case"number":return isFinite(E)?String(E):t?t(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(E);default:return t?t(E):void 0}}function u(f,p,m,w,y,x){switch(typeof p=="object"&&p!==null&&typeof p.toJSON=="function"&&(p=p.toJSON(f)),typeof p){case"string":return Qe(p);case"object":{if(p===null)return"null";if(m.indexOf(p)!==-1)return r;let E=x,T="",R=",";if(Array.isArray(p)){if(p.length===0)return"[]";if(s<m.length+1)return'"[Array]"';m.push(p),y!==""&&(x+=y,T+=`
11
11
  ${x}`,R=`,
@@ -17,39 +17,39 @@ ${E}`),m.pop(),`{${T}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";
17
17
  ${y}`,N=`,
18
18
  ${y}`,W=Math.min(p.length,a),D=0;for(;D<W-1;D++){let q=c(String(D),p[D],m,w,y);v+=q!==void 0?q:"null",v+=N}let _=c(String(D),p[D],m,w,y);if(v+=_!==void 0?_:"null",p.length-1>a){let q=p.length-a-1;v+=`${N}"... ${gt(q)} not stringified"`}return v+=`
19
19
  ${x}`,m.pop(),`[${v}]`}let E=Object.keys(p),T=E.length;if(T===0)return"{}";if(s<m.length+1)return'"[Object]"';y+=w;let R=`,
20
- ${y}`,S="",C="",O=Math.min(T,a);Io(p)&&(S+=Sc(p,R,a),E=E.slice(p.length),O-=p.length,C=R),i&&(E=Co(E,o)),m.push(p);for(let v=0;v<O;v++){let N=E[v],W=c(N,p[N],m,w,y);W!==void 0&&(S+=`${C}${Qe(N)}: ${W}`,C=R)}if(T>a){let v=T-a;S+=`${C}"...": "${gt(v)} not stringified"`,C=R}return C!==""&&(S=`
20
+ ${y}`,S="",C="",O=Math.min(T,a);Oo(p)&&(S+=Ec(p,R,a),E=E.slice(p.length),O-=p.length,C=R),i&&(E=Io(E,o)),m.push(p);for(let v=0;v<O;v++){let N=E[v],W=c(N,p[N],m,w,y);W!==void 0&&(S+=`${C}${Qe(N)}: ${W}`,C=R)}if(T>a){let v=T-a;S+=`${C}"...": "${gt(v)} not stringified"`,C=R}return C!==""&&(S=`
21
21
  ${y}${S}
22
- ${x}`),m.pop(),`{${S}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(p);default:return t?t(p):void 0}}function d(f,p,m){switch(typeof p){case"string":return Qe(p);case"object":{if(p===null)return"null";if(typeof p.toJSON=="function"){if(p=p.toJSON(f),typeof p!="object")return d(f,p,m);if(p===null)return"null"}if(m.indexOf(p)!==-1)return r;let w="",y=p.length!==void 0;if(y&&Array.isArray(p)){if(p.length===0)return"[]";if(s<m.length+1)return'"[Array]"';m.push(p);let S=Math.min(p.length,a),C=0;for(;C<S-1;C++){let v=d(String(C),p[C],m);w+=v!==void 0?v:"null",w+=","}let O=d(String(C),p[C],m);if(w+=O!==void 0?O:"null",p.length-1>a){let v=p.length-a-1;w+=`,"... ${gt(v)} not stringified"`}return m.pop(),`[${w}]`}let x=Object.keys(p),E=x.length;if(E===0)return"{}";if(s<m.length+1)return'"[Object]"';let T="",R=Math.min(E,a);y&&Io(p)&&(w+=Sc(p,",",a),x=x.slice(p.length),R-=p.length,T=","),i&&(x=Co(x,o)),m.push(p);for(let S=0;S<R;S++){let C=x[S],O=d(C,p[C],m);O!==void 0&&(w+=`${T}${Qe(C)}:${O}`,T=",")}if(E>a){let S=E-a;w+=`${T}"...":"${gt(S)} not stringified"`}return m.pop(),`{${w}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(p);default:return t?t(p):void 0}}function h(f,p,m){if(arguments.length>1){let w="";if(typeof m=="number"?w=" ".repeat(Math.min(m,10)):typeof m=="string"&&(w=m.slice(0,10)),p!=null){if(typeof p=="function")return l("",{"":f},[],p,w,"");if(Array.isArray(p))return u("",f,[],jE(p),w,"")}if(w.length!==0)return c("",f,[],w,"")}return d("",f,[])}return h}});var Rc=L((JM,kc)=>{"use strict";var No=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:Ac}=_n(),UE=Ac.info;function WE(e,t){e=e||[],t=t||{dedupe:!1};let r=Object.create(Ac);r.silent=1/0,t.levels&&typeof t.levels=="object"&&Object.keys(t.levels).forEach(d=>{r[d]=t.levels[d]});let n={write:i,add:a,remove:l,emit:o,flushSync:s,end:u,minLevel:0,lastId:0,streams:[],clone:c,[No]:!0,streamLevels:r};return Array.isArray(e)?e.forEach(a,n):a.call(n,e),e=null,n;function i(d){let h,f=this.lastLevel,{streams:p}=this,m=0,w;for(let y=zE(p.length,t.dedupe);HE(y,p.length,t.dedupe);y=VE(y,t.dedupe))if(h=p[y],h.level<=f){if(m!==0&&m!==h.level)break;if(w=h.stream,w[No]){let{lastTime:x,lastMsg:E,lastObj:T,lastLogger:R}=this;w.lastLevel=f,w.lastTime=x,w.lastMsg=E,w.lastObj=T,w.lastLogger=R}w.write(d),t.dedupe&&(m=h.level)}else if(!t.dedupe)break}function o(...d){for(let{stream:h}of this.streams)typeof h.emit=="function"&&h.emit(...d)}function s(){for(let{stream:d}of this.streams)typeof d.flushSync=="function"&&d.flushSync()}function a(d){if(!d)return n;let h=typeof d.write=="function"||d.stream,f=d.write?d:d.stream;if(!h)throw Error("stream object needs to implement either StreamEntry or DestinationStream interface");let{streams:p,streamLevels:m}=this,w;typeof d.levelVal=="number"?w=d.levelVal:typeof d.level=="string"?w=m[d.level]:typeof d.level=="number"?w=d.level:w=UE;let y={stream:f,level:w,levelVal:void 0,id:++n.lastId};return p.unshift(y),p.sort(Tc),this.minLevel=p[0].level,n}function l(d){let{streams:h}=this,f=h.findIndex(p=>p.id===d);return f>=0&&(h.splice(f,1),h.sort(Tc),this.minLevel=h.length>0?h[0].level:-1),n}function u(){for(let{stream:d}of this.streams)typeof d.flushSync=="function"&&d.flushSync(),d.end()}function c(d){let h=new Array(this.streams.length);for(let f=0;f<h.length;f++)h[f]={level:d,stream:this.streams[f].stream};return{write:i,add:a,remove:l,minLevel:d,streams:h,clone:c,emit:o,flushSync:s,[No]:!0}}}function Tc(e,t){return e.level-t.level}function zE(e,t){return t?e-1:0}function VE(e,t){return t?e-1:e+1}function HE(e,t,r){return r?e>=0:e<t}kc.exports=WE});var $c=L((QM,xe)=>{"use strict";var GE=H("node:os"),Dc=to(),KE=ro(),YE=oo(),Pc=Eu(),XE=wc(),qc=Bt(),{configure:JE}=xc(),{assertDefaultLevelFound:QE,mappings:Bc,genLsCache:ZE,genLevelComparison:e_,assertLevelComparison:t_}=Ao(),{DEFAULT_LEVELS:Fc,SORTING_ORDER:r_}=_n(),{createArgsNormalizer:n_,asChindings:i_,buildSafeSonicBoom:vc,buildFormatters:o_,stringify:Do,normalizeDestFileDescriptor:Lc,noop:s_}=En(),{version:a_}=ko(),{chindingsSym:Cc,redactFmtSym:l_,serializersSym:Ic,timeSym:u_,timeSliceIndexSym:c_,streamSym:f_,stringifySym:Oc,stringifySafeSym:Po,stringifiersSym:Mc,setLevelSym:d_,endSym:h_,formatOptsSym:p_,messageKeySym:m_,errorKeySym:g_,nestedKeySym:y_,mixinSym:b_,levelCompSym:w_,useOnlyCustomLevelsSym:S_,formattersSym:Nc,hooksSym:E_,nestedKeyStrSym:__,mixinMergeStrategySym:x_,msgPrefixSym:T_}=qc,{epochTime:jc,nullTime:A_}=Pc,{pid:k_}=process,R_=GE.hostname(),v_=Dc.err,L_={level:"info",levelComparison:r_.ASC,levels:Fc,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:k_,hostname:R_},serializers:Object.assign(Object.create(null),{err:v_}),formatters:Object.assign(Object.create(null),{bindings(e){return e},level(e,t){return{level:t}}}),hooks:{logMethod:void 0,streamWrite:void 0},timestamp:jc,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},C_=n_(L_),I_=Object.assign(Object.create(null),Dc);function qo(...e){let t={},{opts:r,stream:n}=C_(t,KE(),...e);r.level&&typeof r.level=="string"&&Fc[r.level.toLowerCase()]!==void 0&&(r.level=r.level.toLowerCase());let{redact:i,crlf:o,serializers:s,timestamp:a,messageKey:l,errorKey:u,nestedKey:c,base:d,name:h,level:f,customLevels:p,levelComparison:m,mixin:w,mixinMergeStrategy:y,useOnlyCustomLevels:x,formatters:E,hooks:T,depthLimit:R,edgeLimit:S,onChild:C,msgPrefix:O}=r,v=JE({maximumDepth:R,maximumBreadth:S}),N=o_(E.level,E.bindings,E.log),W=Do.bind({[Po]:v}),D=i?YE(i,W):{},_=i?{stringify:D[l_]}:{stringify:W},q="}"+(o?`\r
22
+ ${x}`),m.pop(),`{${S}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(p);default:return t?t(p):void 0}}function d(f,p,m){switch(typeof p){case"string":return Qe(p);case"object":{if(p===null)return"null";if(typeof p.toJSON=="function"){if(p=p.toJSON(f),typeof p!="object")return d(f,p,m);if(p===null)return"null"}if(m.indexOf(p)!==-1)return r;let w="",y=p.length!==void 0;if(y&&Array.isArray(p)){if(p.length===0)return"[]";if(s<m.length+1)return'"[Array]"';m.push(p);let S=Math.min(p.length,a),C=0;for(;C<S-1;C++){let v=d(String(C),p[C],m);w+=v!==void 0?v:"null",w+=","}let O=d(String(C),p[C],m);if(w+=O!==void 0?O:"null",p.length-1>a){let v=p.length-a-1;w+=`,"... ${gt(v)} not stringified"`}return m.pop(),`[${w}]`}let x=Object.keys(p),E=x.length;if(E===0)return"{}";if(s<m.length+1)return'"[Object]"';let T="",R=Math.min(E,a);y&&Oo(p)&&(w+=Ec(p,",",a),x=x.slice(p.length),R-=p.length,T=","),i&&(x=Io(x,o)),m.push(p);for(let S=0;S<R;S++){let C=x[S],O=d(C,p[C],m);O!==void 0&&(w+=`${T}${Qe(C)}:${O}`,T=",")}if(E>a){let S=E-a;w+=`${T}"...":"${gt(S)} not stringified"`}return m.pop(),`{${w}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(p);default:return t?t(p):void 0}}function h(f,p,m){if(arguments.length>1){let w="";if(typeof m=="number"?w=" ".repeat(Math.min(m,10)):typeof m=="string"&&(w=m.slice(0,10)),p!=null){if(typeof p=="function")return l("",{"":f},[],p,w,"");if(Array.isArray(p))return u("",f,[],$E(p),w,"")}if(w.length!==0)return c("",f,[],w,"")}return d("",f,[])}return h}});var vc=L((ZM,Rc)=>{"use strict";var Do=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:kc}=_n(),WE=kc.info;function zE(e,t){e=e||[],t=t||{dedupe:!1};let r=Object.create(kc);r.silent=1/0,t.levels&&typeof t.levels=="object"&&Object.keys(t.levels).forEach(d=>{r[d]=t.levels[d]});let n={write:i,add:a,remove:l,emit:o,flushSync:s,end:u,minLevel:0,lastId:0,streams:[],clone:c,[Do]:!0,streamLevels:r};return Array.isArray(e)?e.forEach(a,n):a.call(n,e),e=null,n;function i(d){let h,f=this.lastLevel,{streams:p}=this,m=0,w;for(let y=VE(p.length,t.dedupe);GE(y,p.length,t.dedupe);y=HE(y,t.dedupe))if(h=p[y],h.level<=f){if(m!==0&&m!==h.level)break;if(w=h.stream,w[Do]){let{lastTime:x,lastMsg:E,lastObj:T,lastLogger:R}=this;w.lastLevel=f,w.lastTime=x,w.lastMsg=E,w.lastObj=T,w.lastLogger=R}w.write(d),t.dedupe&&(m=h.level)}else if(!t.dedupe)break}function o(...d){for(let{stream:h}of this.streams)typeof h.emit=="function"&&h.emit(...d)}function s(){for(let{stream:d}of this.streams)typeof d.flushSync=="function"&&d.flushSync()}function a(d){if(!d)return n;let h=typeof d.write=="function"||d.stream,f=d.write?d:d.stream;if(!h)throw Error("stream object needs to implement either StreamEntry or DestinationStream interface");let{streams:p,streamLevels:m}=this,w;typeof d.levelVal=="number"?w=d.levelVal:typeof d.level=="string"?w=m[d.level]:typeof d.level=="number"?w=d.level:w=WE;let y={stream:f,level:w,levelVal:void 0,id:++n.lastId};return p.unshift(y),p.sort(Ac),this.minLevel=p[0].level,n}function l(d){let{streams:h}=this,f=h.findIndex(p=>p.id===d);return f>=0&&(h.splice(f,1),h.sort(Ac),this.minLevel=h.length>0?h[0].level:-1),n}function u(){for(let{stream:d}of this.streams)typeof d.flushSync=="function"&&d.flushSync(),d.end()}function c(d){let h=new Array(this.streams.length);for(let f=0;f<h.length;f++)h[f]={level:d,stream:this.streams[f].stream};return{write:i,add:a,remove:l,minLevel:d,streams:h,clone:c,emit:o,flushSync:s,[Do]:!0}}}function Ac(e,t){return e.level-t.level}function VE(e,t){return t?e-1:0}function HE(e,t){return t?e-1:e+1}function GE(e,t,r){return r?e>=0:e<t}Rc.exports=zE});var Uc=L((eN,xe)=>{"use strict";var KE=H("node:os"),Pc=ro(),YE=no(),XE=so(),qc=_u(),JE=Sc(),Bc=Bt(),{configure:QE}=Tc(),{assertDefaultLevelFound:ZE,mappings:Fc,genLsCache:e_,genLevelComparison:t_,assertLevelComparison:r_}=ko(),{DEFAULT_LEVELS:jc,SORTING_ORDER:n_}=_n(),{createArgsNormalizer:i_,asChindings:o_,buildSafeSonicBoom:Lc,buildFormatters:s_,stringify:Po,normalizeDestFileDescriptor:Cc,noop:a_}=En(),{version:l_}=Ro(),{chindingsSym:Ic,redactFmtSym:u_,serializersSym:Oc,timeSym:c_,timeSliceIndexSym:f_,streamSym:d_,stringifySym:Mc,stringifySafeSym:qo,stringifiersSym:Nc,setLevelSym:h_,endSym:p_,formatOptsSym:m_,messageKeySym:g_,errorKeySym:y_,nestedKeySym:b_,mixinSym:w_,levelCompSym:S_,useOnlyCustomLevelsSym:E_,formattersSym:Dc,hooksSym:__,nestedKeyStrSym:x_,mixinMergeStrategySym:T_,msgPrefixSym:A_}=Bc,{epochTime:$c,nullTime:k_}=qc,{pid:R_}=process,v_=KE.hostname(),L_=Pc.err,C_={level:"info",levelComparison:n_.ASC,levels:jc,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:R_,hostname:v_},serializers:Object.assign(Object.create(null),{err:L_}),formatters:Object.assign(Object.create(null),{bindings(e){return e},level(e,t){return{level:t}}}),hooks:{logMethod:void 0,streamWrite:void 0},timestamp:$c,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},I_=i_(C_),O_=Object.assign(Object.create(null),Pc);function Bo(...e){let t={},{opts:r,stream:n}=I_(t,YE(),...e);r.level&&typeof r.level=="string"&&jc[r.level.toLowerCase()]!==void 0&&(r.level=r.level.toLowerCase());let{redact:i,crlf:o,serializers:s,timestamp:a,messageKey:l,errorKey:u,nestedKey:c,base:d,name:h,level:f,customLevels:p,levelComparison:m,mixin:w,mixinMergeStrategy:y,useOnlyCustomLevels:x,formatters:E,hooks:T,depthLimit:R,edgeLimit:S,onChild:C,msgPrefix:O}=r,v=QE({maximumDepth:R,maximumBreadth:S}),N=s_(E.level,E.bindings,E.log),W=Po.bind({[qo]:v}),D=i?XE(i,W):{},_=i?{stringify:D[u_]}:{stringify:W},q="}"+(o?`\r
23
23
  `:`
24
- `),P=i_.bind(null,{[Cc]:"",[Ic]:s,[Mc]:D,[Oc]:Do,[Po]:v,[Nc]:N}),X="";d!==null&&(h===void 0?X=P(d):X=P(Object.assign({},d,{name:h})));let ne=a instanceof Function?a:a?jc:A_,ye=ne().indexOf(":")+1;if(x&&!p)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(w&&typeof w!="function")throw Error(`Unknown mixin type "${typeof w}" - expected "function"`);if(O&&typeof O!="string")throw Error(`Unknown msgPrefix type "${typeof O}" - expected "string"`);QE(f,p,x);let be=Bc(p,x);typeof n.emit=="function"&&n.emit("message",{code:"PINO_CONFIG",config:{levels:be,messageKey:l,errorKey:u}}),t_(m);let g=e_(m);return Object.assign(t,{levels:be,[w_]:g,[S_]:x,[f_]:n,[u_]:ne,[c_]:ye,[Oc]:Do,[Po]:v,[Mc]:D,[h_]:q,[p_]:_,[m_]:l,[g_]:u,[y_]:c,[__]:c?`,${JSON.stringify(c)}:{`:"",[Ic]:s,[b_]:w,[x_]:y,[Cc]:X,[Nc]:N,[E_]:T,silent:s_,onChild:C,[T_]:O}),Object.setPrototypeOf(t,XE()),ZE(t),t[d_](f),t}xe.exports=qo;xe.exports.destination=(e=process.stdout.fd)=>typeof e=="object"?(e.dest=Lc(e.dest||process.stdout.fd),vc(e)):vc({dest:Lc(e),minLength:0});xe.exports.transport=wo();xe.exports.multistream=Rc();xe.exports.levels=Bc();xe.exports.stdSerializers=I_;xe.exports.stdTimeFunctions=Object.assign({},Pc);xe.exports.symbols=qc;xe.exports.version=a_;xe.exports.default=qo;xe.exports.pino=qo});var Fo=L(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});var O_=H("tty");function M_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Bo=M_(O_),{env:Ze={},argv:Wc=[],platform:N_=""}=typeof process>"u"?{}:process,D_="NO_COLOR"in Ze||Wc.includes("--no-color"),P_="FORCE_COLOR"in Ze||Wc.includes("--color"),q_=N_==="win32",zc=Ze.TERM==="dumb",B_=Bo&&Bo.isatty&&Bo.isatty(1)&&Ze.TERM&&!zc,F_="CI"in Ze&&("GITHUB_ACTIONS"in Ze||"GITLAB_CI"in Ze||"CIRCLECI"in Ze),Vc=!D_&&(P_||q_&&!zc||B_||F_),Hc=(e,t,r,n,i=t.substring(0,e)+n,o=t.substring(e+r.length),s=o.indexOf(r))=>i+(s<0?o:Hc(s,o,r,n)),j_=(e,t,r,n,i)=>e<0?r+t+n:r+Hc(e,t,n,i)+n,$_=(e,t,r=e,n=e.length+1)=>i=>i||!(i===""||i===void 0)?j_((""+i).indexOf(t,n),i,e,t,r):"",U=(e,t,r)=>$_(`\x1B[${e}m`,`\x1B[${t}m`,r),Uc={reset:U(0,0),bold:U(1,22,"\x1B[22m\x1B[1m"),dim:U(2,22,"\x1B[22m\x1B[2m"),italic:U(3,23),underline:U(4,24),inverse:U(7,27),hidden:U(8,28),strikethrough:U(9,29),black:U(30,39),red:U(31,39),green:U(32,39),yellow:U(33,39),blue:U(34,39),magenta:U(35,39),cyan:U(36,39),white:U(37,39),gray:U(90,39),bgBlack:U(40,49),bgRed:U(41,49),bgGreen:U(42,49),bgYellow:U(43,49),bgBlue:U(44,49),bgMagenta:U(45,49),bgCyan:U(46,49),bgWhite:U(47,49),blackBright:U(90,39),redBright:U(91,39),greenBright:U(92,39),yellowBright:U(93,39),blueBright:U(94,39),magentaBright:U(95,39),cyanBright:U(96,39),whiteBright:U(97,39),bgBlackBright:U(100,49),bgRedBright:U(101,49),bgGreenBright:U(102,49),bgYellowBright:U(103,49),bgBlueBright:U(104,49),bgMagentaBright:U(105,49),bgCyanBright:U(106,49),bgWhiteBright:U(107,49)},Gc=({useColor:e=Vc}={})=>e?Uc:Object.keys(Uc).reduce((t,r)=>({...t,[r]:String}),{}),{reset:U_,bold:W_,dim:z_,italic:V_,underline:H_,inverse:G_,hidden:K_,strikethrough:Y_,black:X_,red:J_,green:Q_,yellow:Z_,blue:ex,magenta:tx,cyan:rx,white:nx,gray:ix,bgBlack:ox,bgRed:sx,bgGreen:ax,bgYellow:lx,bgBlue:ux,bgMagenta:cx,bgCyan:fx,bgWhite:dx,blackBright:hx,redBright:px,greenBright:mx,yellowBright:gx,blueBright:yx,magentaBright:bx,cyanBright:wx,whiteBright:Sx,bgBlackBright:Ex,bgRedBright:_x,bgGreenBright:xx,bgYellowBright:Tx,bgBlueBright:Ax,bgMagentaBright:kx,bgCyanBright:Rx,bgWhiteBright:vx}=Gc();B.bgBlack=ox;B.bgBlackBright=Ex;B.bgBlue=ux;B.bgBlueBright=Ax;B.bgCyan=fx;B.bgCyanBright=Rx;B.bgGreen=ax;B.bgGreenBright=xx;B.bgMagenta=cx;B.bgMagentaBright=kx;B.bgRed=sx;B.bgRedBright=_x;B.bgWhite=dx;B.bgWhiteBright=vx;B.bgYellow=lx;B.bgYellowBright=Tx;B.black=X_;B.blackBright=hx;B.blue=ex;B.blueBright=yx;B.bold=W_;B.createColors=Gc;B.cyan=rx;B.cyanBright=wx;B.dim=z_;B.gray=ix;B.green=Q_;B.greenBright=mx;B.hidden=K_;B.inverse=G_;B.isColorSupported=Vc;B.italic=V_;B.magenta=tx;B.magentaBright=bx;B.red=J_;B.redBright=px;B.reset=U_;B.strikethrough=Y_;B.underline=H_;B.white=nx;B.whiteBright=Sx;B.yellow=Z_;B.yellowBright=gx});var Xc=L((eN,Yc)=>{Yc.exports=Kc;function Kc(e,t){if(e&&t)return Kc(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var o=e.apply(this,n),s=n[n.length-1];return typeof o=="function"&&o!==s&&Object.keys(s).forEach(function(a){o[a]=s[a]}),o}}});var $o=L((tN,jo)=>{var Jc=Xc();jo.exports=Jc(kn);jo.exports.strict=Jc(Qc);kn.proto=kn(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return kn(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Qc(this)},configurable:!0})});function kn(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Qc(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var tf=L((rN,ef)=>{var Lx=$o(),Cx=function(){},Ix=global.Bare?queueMicrotask:process.nextTick.bind(process),Ox=function(e){return e.setHeader&&typeof e.abort=="function"},Mx=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},Zc=function(e,t,r){if(typeof t=="function")return Zc(e,null,t);t||(t={}),r=Lx(r||Cx);var n=e._writableState,i=e._readableState,o=t.readable||t.readable!==!1&&e.readable,s=t.writable||t.writable!==!1&&e.writable,a=!1,l=function(){e.writable||u()},u=function(){s=!1,o||r.call(e)},c=function(){o=!1,s||r.call(e)},d=function(w){r.call(e,w?new Error("exited with error code: "+w):null)},h=function(w){r.call(e,w)},f=function(){Ix(p)},p=function(){if(!a){if(o&&!(i&&i.ended&&!i.destroyed))return r.call(e,new Error("premature close"));if(s&&!(n&&n.ended&&!n.destroyed))return r.call(e,new Error("premature close"))}},m=function(){e.req.on("finish",u)};return Ox(e)?(e.on("complete",u),e.on("abort",f),e.req?m():e.on("request",m)):s&&!n&&(e.on("end",l),e.on("close",l)),Mx(e)&&e.on("exit",d),e.on("end",c),e.on("finish",u),t.error!==!1&&e.on("error",h),e.on("close",f),function(){a=!0,e.removeListener("complete",u),e.removeListener("abort",f),e.removeListener("request",m),e.req&&e.req.removeListener("finish",u),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",u),e.removeListener("exit",d),e.removeListener("end",c),e.removeListener("error",h),e.removeListener("close",f)}};ef.exports=Zc});var of=L((nN,nf)=>{var Nx=$o(),Dx=tf(),Rn;try{Rn=H("fs")}catch{}var Sr=function(){},Px=typeof process>"u"?!1:/^v?\.0/.test(process.version),vn=function(e){return typeof e=="function"},qx=function(e){return!Px||!Rn?!1:(e instanceof(Rn.ReadStream||Sr)||e instanceof(Rn.WriteStream||Sr))&&vn(e.close)},Bx=function(e){return e.setHeader&&vn(e.abort)},Fx=function(e,t,r,n){n=Nx(n);var i=!1;e.on("close",function(){i=!0}),Dx(e,{readable:t,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,qx(e))return e.close(Sr);if(Bx(e))return e.abort();if(vn(e.destroy))return e.destroy();n(s||new Error("stream was destroyed"))}}},rf=function(e){e()},jx=function(e,t){return e.pipe(t)},$x=function(){var e=Array.prototype.slice.call(arguments),t=vn(e[e.length-1]||Sr)&&e.pop()||Sr;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,n=e.map(function(i,o){var s=o<e.length-1,a=o>0;return Fx(i,s,a,function(l){r||(r=l),l&&n.forEach(rf),!s&&(n.forEach(rf),t(r))})});return e.reduce(jx)};nf.exports=$x});var te=L((iN,sf)=>{"use strict";var Uo=class extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError(`Expected input to be an Array, got ${typeof t}`);let r="";for(let n=0;n<t.length;n++)r+=` ${t[n].stack}
25
- `;super(r),this.name="AggregateError",this.errors=t}};sf.exports={AggregateError:Uo,ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array}});var Wo=L((oN,af)=>{"use strict";af.exports={format(e,...t){return e.replace(/%([sdifj])/g,function(...[r,n]){let i=t.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(e){switch(typeof e){case"string":if(e.includes("'"))if(e.includes('"')){if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}else return`"${e}"`;return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}});var ce=L((sN,cf)=>{"use strict";var{format:Ux,inspect:Ln}=Wo(),{AggregateError:Wx}=te(),zx=globalThis.AggregateError||Wx,Vx=Symbol("kIsNodeError"),Hx=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Gx=/^([A-Z][a-z0-9]*)+$/,Kx="__node_internal_",Cn={};function bt(e,t){if(!e)throw new Cn.ERR_INTERNAL_ASSERTION(t)}function lf(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Yx(e,t,r){if(typeof t=="function")return bt(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let n=(t.match(/%[dfijoOs]/g)||[]).length;return bt(n===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?t:Ux(t,...r)}function le(e,t,r){r||(r=Error);class n extends r{constructor(...o){super(Yx(e,t,o))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=e,n.prototype[Vx]=!0,Cn[e]=n}function uf(e){let t=Kx+e.name;return Object.defineProperty(e,"name",{value:t}),e}function Xx(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let r=new zx([t,e],t.message);return r.code=t.code,r}return e||t}var zo=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Cn.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};le("ERR_ASSERTION","%s",Error);le("ERR_INVALID_ARG_TYPE",(e,t,r)=>{bt(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";let i=[],o=[],s=[];for(let l of t)bt(typeof l=="string","All expected entries have to be of type string"),Hx.includes(l)?i.push(l.toLowerCase()):Gx.test(l)?o.push(l):(bt(l!=="object",'The value "object" should be written as "Object"'),s.push(l));if(o.length>0){let l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),o.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();n+=`one of type ${i.join(", ")}, or ${l}`}}(o.length>0||s.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();n+=`an instance of ${o.join(", ")}, or ${l}`}}s.length>0&&(n+=" or ")}switch(s.length){case 0:break;case 1:s[0].toLowerCase()!==s[0]&&(n+="an "),n+=`${s[0]}`;break;case 2:n+=`one of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();n+=`one of ${s.join(", ")}, or ${l}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)n+=`. Received an instance of ${r.constructor.name}`;else{let l=Ln(r,{depth:-1});n+=`. Received ${l}`}}else{let l=Ln(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),n+=`. Received type ${typeof r} (${l})`}return n},TypeError);le("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=Ln(t);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);le("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var n;let i=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${i}.`},TypeError);le("ERR_MISSING_ARGS",(...e)=>{bt(e.length>0,"At least one arg needs to be specified");let t,r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(n=>`"${n}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}break}return`${t} must be specified`},TypeError);le("ERR_OUT_OF_RANGE",(e,t,r)=>{bt(t,'Missing "range" argument');let n;if(Number.isInteger(r)&&Math.abs(r)>2**32)n=lf(String(r));else if(typeof r=="bigint"){n=String(r);let i=BigInt(2)**BigInt(32);(r>i||r<-i)&&(n=lf(n)),n+="n"}else n=Ln(r);return`The value of "${e}" is out of range. It must be ${t}. Received ${n}`},RangeError);le("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);le("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);le("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);le("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);le("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);le("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);le("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);le("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);le("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);le("ERR_STREAM_WRITE_AFTER_END","write after end",Error);le("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);cf.exports={AbortError:zo,aggregateTwoErrors:uf(Xx),hideStackFrames:uf,codes:Cn}});var Sf=L((xr,_r)=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});var gf=new WeakMap,Vo=new WeakMap;function Z(e){let t=gf.get(e);return console.assert(t!=null,"'this' is expected an Event object, but got",e),t}function ff(e){if(e.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener);return}e.event.cancelable&&(e.canceled=!0,typeof e.event.preventDefault=="function"&&e.event.preventDefault())}function $t(e,t){gf.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(t);for(let n=0;n<r.length;++n){let i=r[n];i in this||Object.defineProperty(this,i,yf(i))}}$t.prototype={get type(){return Z(this).event.type},get target(){return Z(this).eventTarget},get currentTarget(){return Z(this).currentTarget},composedPath(){let e=Z(this).currentTarget;return e==null?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return Z(this).eventPhase},stopPropagation(){let e=Z(this);e.stopped=!0,typeof e.event.stopPropagation=="function"&&e.event.stopPropagation()},stopImmediatePropagation(){let e=Z(this);e.stopped=!0,e.immediateStopped=!0,typeof e.event.stopImmediatePropagation=="function"&&e.event.stopImmediatePropagation()},get bubbles(){return!!Z(this).event.bubbles},get cancelable(){return!!Z(this).event.cancelable},preventDefault(){ff(Z(this))},get defaultPrevented(){return Z(this).canceled},get composed(){return!!Z(this).event.composed},get timeStamp(){return Z(this).timeStamp},get srcElement(){return Z(this).eventTarget},get cancelBubble(){return Z(this).stopped},set cancelBubble(e){if(!e)return;let t=Z(this);t.stopped=!0,typeof t.event.cancelBubble=="boolean"&&(t.event.cancelBubble=!0)},get returnValue(){return!Z(this).canceled},set returnValue(e){e||ff(Z(this))},initEvent(){}};Object.defineProperty($t.prototype,"constructor",{value:$t,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf($t.prototype,window.Event.prototype),Vo.set(window.Event.prototype,$t));function yf(e){return{get(){return Z(this).event[e]},set(t){Z(this).event[e]=t},configurable:!0,enumerable:!0}}function Jx(e){return{value(){let t=Z(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function Qx(e,t){let r=Object.keys(t);if(r.length===0)return e;function n(i,o){e.call(this,i,o)}n.prototype=Object.create(e.prototype,{constructor:{value:n,configurable:!0,writable:!0}});for(let i=0;i<r.length;++i){let o=r[i];if(!(o in e.prototype)){let a=typeof Object.getOwnPropertyDescriptor(t,o).value=="function";Object.defineProperty(n.prototype,o,a?Jx(o):yf(o))}}return n}function bf(e){if(e==null||e===Object.prototype)return $t;let t=Vo.get(e);return t==null&&(t=Qx(bf(Object.getPrototypeOf(e)),e),Vo.set(e,t)),t}function Zx(e,t){let r=bf(Object.getPrototypeOf(t));return new r(e,t)}function eT(e){return Z(e).immediateStopped}function tT(e,t){Z(e).eventPhase=t}function rT(e,t){Z(e).currentTarget=t}function df(e,t){Z(e).passiveListener=t}var wf=new WeakMap,hf=1,pf=2,In=3;function On(e){return e!==null&&typeof e=="object"}function Er(e){let t=wf.get(e);if(t==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return t}function nT(e){return{get(){let r=Er(this).get(e);for(;r!=null;){if(r.listenerType===In)return r.listener;r=r.next}return null},set(t){typeof t!="function"&&!On(t)&&(t=null);let r=Er(this),n=null,i=r.get(e);for(;i!=null;)i.listenerType===In?n!==null?n.next=i.next:i.next!==null?r.set(e,i.next):r.delete(e):n=i,i=i.next;if(t!==null){let o={listener:t,listenerType:In,passive:!1,once:!1,next:null};n===null?r.set(e,o):n.next=o}},configurable:!0,enumerable:!0}}function Ho(e,t){Object.defineProperty(e,`on${t}`,nT(t))}function mf(e){function t(){Le.call(this)}t.prototype=Object.create(Le.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let r=0;r<e.length;++r)Ho(t.prototype,e[r]);return t}function Le(){if(this instanceof Le){wf.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return mf(arguments[0]);if(arguments.length>0){let e=new Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return mf(e)}throw new TypeError("Cannot call a class as a function")}Le.prototype={addEventListener(e,t,r){if(t==null)return;if(typeof t!="function"&&!On(t))throw new TypeError("'listener' should be a function or an object.");let n=Er(this),i=On(r),s=(i?!!r.capture:!!r)?hf:pf,a={listener:t,listenerType:s,passive:i&&!!r.passive,once:i&&!!r.once,next:null},l=n.get(e);if(l===void 0){n.set(e,a);return}let u=null;for(;l!=null;){if(l.listener===t&&l.listenerType===s)return;u=l,l=l.next}u.next=a},removeEventListener(e,t,r){if(t==null)return;let n=Er(this),o=(On(r)?!!r.capture:!!r)?hf:pf,s=null,a=n.get(e);for(;a!=null;){if(a.listener===t&&a.listenerType===o){s!==null?s.next=a.next:a.next!==null?n.set(e,a.next):n.delete(e);return}s=a,a=a.next}},dispatchEvent(e){if(e==null||typeof e.type!="string")throw new TypeError('"event.type" should be a string.');let t=Er(this),r=e.type,n=t.get(r);if(n==null)return!0;let i=Zx(this,e),o=null;for(;n!=null;){if(n.once?o!==null?o.next=n.next:n.next!==null?t.set(r,n.next):t.delete(r):o=n,df(i,n.passive?n.listener:null),typeof n.listener=="function")try{n.listener.call(this,i)}catch(s){typeof console<"u"&&typeof console.error=="function"&&console.error(s)}else n.listenerType!==In&&typeof n.listener.handleEvent=="function"&&n.listener.handleEvent(i);if(eT(i))break;n=n.next}return df(i,null),tT(i,0),rT(i,null),!i.defaultPrevented}};Object.defineProperty(Le.prototype,"constructor",{value:Le,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(Le.prototype,window.EventTarget.prototype);xr.defineEventAttribute=Ho;xr.EventTarget=Le;xr.default=Le;_r.exports=Le;_r.exports.EventTarget=_r.exports.default=Le;_r.exports.defineEventAttribute=Ho});var Ut=L((Ar,Tr)=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var Go=Sf(),et=class extends Go.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let t=Mn.get(this);if(typeof t!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return t}};Go.defineEventAttribute(et.prototype,"abort");function iT(){let e=Object.create(et.prototype);return Go.EventTarget.call(e),Mn.set(e,!1),e}function oT(e){Mn.get(e)===!1&&(Mn.set(e,!0),e.dispatchEvent({type:"abort"}))}var Mn=new WeakMap;Object.defineProperties(et.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(et.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var tt=class{constructor(){_f.set(this,iT())}get signal(){return Ef(this)}abort(){oT(Ef(this))}},_f=new WeakMap;function Ef(e){let t=_f.get(e);if(t==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${e===null?"null":typeof e}`);return t}Object.defineProperties(tt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(tt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Ar.AbortController=tt;Ar.AbortSignal=et;Ar.default=tt;Tr.exports=tt;Tr.exports.AbortController=Tr.exports.default=tt;Tr.exports.AbortSignal=et});var he=L((aN,Yo)=>{"use strict";var sT=H("buffer"),{format:aT,inspect:lT}=Wo(),{codes:{ERR_INVALID_ARG_TYPE:Ko}}=ce(),{kResistStopPropagation:uT,AggregateError:cT,SymbolDispose:fT}=te(),dT=globalThis.AbortSignal||Ut().AbortSignal,hT=globalThis.AbortController||Ut().AbortController,pT=Object.getPrototypeOf(async function(){}).constructor,xf=globalThis.Blob||sT.Blob,mT=typeof xf<"u"?function(t){return t instanceof xf}:function(t){return!1},Tf=(e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new Ko(t,"AbortSignal",e)},gT=(e,t)=>{if(typeof e!="function")throw new Ko(t,"Function",e)};Yo.exports={AggregateError:cT,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}},promisify(e){return new Promise((t,r)=>{e((n,...i)=>n?r(n):t(...i))})},debuglog(){return function(){}},format:aT,inspect:lT,types:{isAsyncFunction(e){return e instanceof pT},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:mT,deprecate(e,t){return e},addAbortListener:H("events").addAbortListener||function(t,r){if(t===void 0)throw new Ko("signal","AbortSignal",t);Tf(t,"signal"),gT(r,"listener");let n;return t.aborted?queueMicrotask(()=>r()):(t.addEventListener("abort",r,{__proto__:null,once:!0,[uT]:!0}),n=()=>{t.removeEventListener("abort",r)}),{__proto__:null,[fT](){var i;(i=n)===null||i===void 0||i()}}},AbortSignalAny:dT.any||function(t){if(t.length===1)return t[0];let r=new hT,n=()=>r.abort();return t.forEach(i=>{Tf(i,"signals"),i.addEventListener("abort",n,{once:!0})}),r.signal.addEventListener("abort",()=>{t.forEach(i=>i.removeEventListener("abort",n))},{once:!0}),r.signal}};Yo.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var zt=L((lN,Nf)=>{"use strict";var{ArrayIsArray:Jo,ArrayPrototypeIncludes:vf,ArrayPrototypeJoin:Lf,ArrayPrototypeMap:yT,NumberIsInteger:Qo,NumberIsNaN:bT,NumberMAX_SAFE_INTEGER:wT,NumberMIN_SAFE_INTEGER:ST,NumberParseInt:ET,ObjectPrototypeHasOwnProperty:_T,RegExpPrototypeExec:Cf,String:xT,StringPrototypeToUpperCase:TT,StringPrototypeTrim:AT}=te(),{hideStackFrames:Te,codes:{ERR_SOCKET_BAD_PORT:kT,ERR_INVALID_ARG_TYPE:fe,ERR_INVALID_ARG_VALUE:Wt,ERR_OUT_OF_RANGE:wt,ERR_UNKNOWN_SIGNAL:Af}}=ce(),{normalizeEncoding:RT}=he(),{isAsyncFunction:vT,isArrayBufferView:LT}=he().types,kf={};function CT(e){return e===(e|0)}function IT(e){return e===e>>>0}var OT=/^[0-7]+$/,MT="must be a 32-bit unsigned integer or an octal string";function NT(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(Cf(OT,e)===null)throw new Wt(t,e,MT);e=ET(e,8)}return If(e,t),e}var DT=Te((e,t,r=ST,n=wT)=>{if(typeof e!="number")throw new fe(t,"number",e);if(!Qo(e))throw new wt(t,"an integer",e);if(e<r||e>n)throw new wt(t,`>= ${r} && <= ${n}`,e)}),PT=Te((e,t,r=-2147483648,n=2147483647)=>{if(typeof e!="number")throw new fe(t,"number",e);if(!Qo(e))throw new wt(t,"an integer",e);if(e<r||e>n)throw new wt(t,`>= ${r} && <= ${n}`,e)}),If=Te((e,t,r=!1)=>{if(typeof e!="number")throw new fe(t,"number",e);if(!Qo(e))throw new wt(t,"an integer",e);let n=r?1:0,i=4294967295;if(e<n||e>i)throw new wt(t,`>= ${n} && <= ${i}`,e)});function Zo(e,t){if(typeof e!="string")throw new fe(t,"string",e)}function qT(e,t,r=void 0,n){if(typeof e!="number")throw new fe(t,"number",e);if(r!=null&&e<r||n!=null&&e>n||(r!=null||n!=null)&&bT(e))throw new wt(t,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,e)}var BT=Te((e,t,r)=>{if(!vf(r,e)){let i="must be one of: "+Lf(yT(r,o=>typeof o=="string"?`'${o}'`:xT(o)),", ");throw new Wt(t,e,i)}});function Of(e,t){if(typeof e!="boolean")throw new fe(t,"boolean",e)}function Xo(e,t,r){return e==null||!_T(e,t)?r:e[t]}var FT=Te((e,t,r=null)=>{let n=Xo(r,"allowArray",!1),i=Xo(r,"allowFunction",!1);if(!Xo(r,"nullable",!1)&&e===null||!n&&Jo(e)||typeof e!="object"&&(!i||typeof e!="function"))throw new fe(t,"Object",e)}),jT=Te((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new fe(t,"a dictionary",e)}),Nn=Te((e,t,r=0)=>{if(!Jo(e))throw new fe(t,"Array",e);if(e.length<r){let n=`must be longer than ${r}`;throw new Wt(t,e,n)}});function $T(e,t){Nn(e,t);for(let r=0;r<e.length;r++)Zo(e[r],`${t}[${r}]`)}function UT(e,t){Nn(e,t);for(let r=0;r<e.length;r++)Of(e[r],`${t}[${r}]`)}function WT(e,t){Nn(e,t);for(let r=0;r<e.length;r++){let n=e[r],i=`${t}[${r}]`;if(n==null)throw new fe(i,"AbortSignal",n);Mf(n,i)}}function zT(e,t="signal"){if(Zo(e,t),kf[e]===void 0)throw kf[TT(e)]!==void 0?new Af(e+" (signals must use all capital letters)"):new Af(e)}var VT=Te((e,t="buffer")=>{if(!LT(e))throw new fe(t,["Buffer","TypedArray","DataView"],e)});function HT(e,t){let r=RT(t),n=e.length;if(r==="hex"&&n%2!==0)throw new Wt("encoding",t,`is invalid for data of length ${n}`)}function GT(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&AT(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new kT(t,e,r);return e|0}var Mf=Te((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new fe(t,"AbortSignal",e)}),KT=Te((e,t)=>{if(typeof e!="function")throw new fe(t,"Function",e)}),YT=Te((e,t)=>{if(typeof e!="function"||vT(e))throw new fe(t,"Function",e)}),XT=Te((e,t)=>{if(e!==void 0)throw new fe(t,"undefined",e)});function JT(e,t,r){if(!vf(r,e))throw new fe(t,`('${Lf(r,"|")}')`,e)}var QT=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Rf(e,t){if(typeof e>"u"||!Cf(QT,e))throw new Wt(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function ZT(e){if(typeof e=="string")return Rf(e,"hints"),e;if(Jo(e)){let t=e.length,r="";if(t===0)return r;for(let n=0;n<t;n++){let i=e[n];Rf(i,"hints"),r+=i,n!==t-1&&(r+=", ")}return r}throw new Wt("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}Nf.exports={isInt32:CT,isUint32:IT,parseFileMode:NT,validateArray:Nn,validateStringArray:$T,validateBooleanArray:UT,validateAbortSignalArray:WT,validateBoolean:Of,validateBuffer:VT,validateDictionary:jT,validateEncoding:HT,validateFunction:KT,validateInt32:PT,validateInteger:DT,validateNumber:qT,validateObject:FT,validateOneOf:BT,validatePlainFunction:YT,validatePort:GT,validateSignalName:zT,validateString:Zo,validateUint32:If,validateUndefined:XT,validateUnion:JT,validateAbortSignal:Mf,validateLinkHeaderValue:ZT}});var rt=L((uN,Df)=>{Df.exports=global.process});var Pe=L((cN,Xf)=>{"use strict";var{SymbolAsyncIterator:Pf,SymbolIterator:qf,SymbolFor:St}=te(),Bf=St("nodejs.stream.destroyed"),Ff=St("nodejs.stream.errored"),es=St("nodejs.stream.readable"),ts=St("nodejs.stream.writable"),jf=St("nodejs.stream.disturbed"),e0=St("nodejs.webstream.isClosedPromise"),t0=St("nodejs.webstream.controllerErrorFunction");function Dn(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function Pn(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function r0(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function De(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function $f(e){return!!(e&&!De(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function Uf(e){return!!(e&&!De(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function Wf(e){return!!(e&&!De(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function n0(e){return $f(e)||Uf(e)||Wf(e)}function i0(e,t){return e==null?!1:t===!0?typeof e[Pf]=="function":t===!1?typeof e[qf]=="function":typeof e[Pf]=="function"||typeof e[qf]=="function"}function qn(e){if(!De(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[Bf]||n!=null&&n.destroyed)}function zf(e){if(!Pn(e))return null;if(e.writableEnded===!0)return!0;let t=e._writableState;return t!=null&&t.errored?!1:typeof t?.ended!="boolean"?null:t.ended}function o0(e,t){if(!Pn(e))return null;if(e.writableFinished===!0)return!0;let r=e._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function s0(e){if(!Dn(e))return null;if(e.readableEnded===!0)return!0;let t=e._readableState;return!t||t.errored?!1:typeof t?.ended!="boolean"?null:t.ended}function Vf(e,t){if(!Dn(e))return null;let r=e._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function Hf(e){return e&&e[es]!=null?e[es]:typeof e?.readable!="boolean"?null:qn(e)?!1:Dn(e)&&e.readable&&!Vf(e)}function Gf(e){return e&&e[ts]!=null?e[ts]:typeof e?.writable!="boolean"?null:qn(e)?!1:Pn(e)&&e.writable&&!zf(e)}function a0(e,t){return De(e)?qn(e)?!0:!(t?.readable!==!1&&Hf(e)||t?.writable!==!1&&Gf(e)):null}function l0(e){var t,r;return De(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function u0(e){var t,r;return De(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function c0(e){if(!De(e))return null;if(typeof e.closed=="boolean")return e.closed;let t=e._writableState,r=e._readableState;return typeof t?.closed=="boolean"||typeof r?.closed=="boolean"?t?.closed||r?.closed:typeof e._closed=="boolean"&&Kf(e)?e._closed:null}function Kf(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function Yf(e){return typeof e._sent100=="boolean"&&Kf(e)}function f0(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function d0(e){if(!De(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!n&&Yf(e)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===!1)}function h0(e){var t;return!!(e&&((t=e[jf])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function p0(e){var t,r,n,i,o,s,a,l,u,c;return!!(e&&((t=(r=(n=(i=(o=(s=e[Ff])!==null&&s!==void 0?s:e.readableErrored)!==null&&o!==void 0?o:e.writableErrored)!==null&&i!==void 0?i:(a=e._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&n!==void 0?n:(l=e._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=e._readableState)===null||u===void 0?void 0:u.errored)!==null&&t!==void 0?t:!((c=e._writableState)===null||c===void 0)&&c.errored))}Xf.exports={isDestroyed:qn,kIsDestroyed:Bf,isDisturbed:h0,kIsDisturbed:jf,isErrored:p0,kIsErrored:Ff,isReadable:Hf,kIsReadable:es,kIsClosedPromise:e0,kControllerErrorFunction:t0,kIsWritable:ts,isClosed:c0,isDuplexNodeStream:r0,isFinished:a0,isIterable:i0,isReadableNodeStream:Dn,isReadableStream:$f,isReadableEnded:s0,isReadableFinished:Vf,isReadableErrored:u0,isNodeStream:De,isWebStream:n0,isWritable:Gf,isWritableNodeStream:Pn,isWritableStream:Uf,isWritableEnded:zf,isWritableFinished:o0,isWritableErrored:l0,isServerRequest:f0,isServerResponse:Yf,willEmitClose:d0,isTransformStream:Wf}});var Ve=L((fN,ss)=>{"use strict";var nt=rt(),{AbortError:od,codes:m0}=ce(),{ERR_INVALID_ARG_TYPE:g0,ERR_STREAM_PREMATURE_CLOSE:Jf}=m0,{kEmptyObject:ns,once:is}=he(),{validateAbortSignal:y0,validateFunction:b0,validateObject:w0,validateBoolean:S0}=zt(),{Promise:E0,PromisePrototypeThen:_0,SymbolDispose:sd}=te(),{isClosed:x0,isReadable:Qf,isReadableNodeStream:rs,isReadableStream:T0,isReadableFinished:Zf,isReadableErrored:ed,isWritable:td,isWritableNodeStream:rd,isWritableStream:A0,isWritableFinished:nd,isWritableErrored:id,isNodeStream:k0,willEmitClose:R0,kIsClosedPromise:v0}=Pe(),Vt;function L0(e){return e.setHeader&&typeof e.abort=="function"}var os=()=>{};function ad(e,t,r){var n,i;if(arguments.length===2?(r=t,t=ns):t==null?t=ns:w0(t,"options"),b0(r,"callback"),y0(t.signal,"options.signal"),r=is(r),T0(e)||A0(e))return C0(e,t,r);if(!k0(e))throw new g0("stream",["ReadableStream","WritableStream","Stream"],e);let o=(n=t.readable)!==null&&n!==void 0?n:rs(e),s=(i=t.writable)!==null&&i!==void 0?i:rd(e),a=e._writableState,l=e._readableState,u=()=>{e.writable||h()},c=R0(e)&&rs(e)===o&&rd(e)===s,d=nd(e,!1),h=()=>{d=!0,e.destroyed&&(c=!1),!(c&&(!e.readable||o))&&(!o||f)&&r.call(e)},f=Zf(e,!1),p=()=>{f=!0,e.destroyed&&(c=!1),!(c&&(!e.writable||s))&&(!s||d)&&r.call(e)},m=R=>{r.call(e,R)},w=x0(e),y=()=>{w=!0;let R=id(e)||ed(e);if(R&&typeof R!="boolean")return r.call(e,R);if(o&&!f&&rs(e,!0)&&!Zf(e,!1))return r.call(e,new Jf);if(s&&!d&&!nd(e,!1))return r.call(e,new Jf);r.call(e)},x=()=>{w=!0;let R=id(e)||ed(e);if(R&&typeof R!="boolean")return r.call(e,R);r.call(e)},E=()=>{e.req.on("finish",h)};L0(e)?(e.on("complete",h),c||e.on("abort",y),e.req?E():e.on("request",E)):s&&!a&&(e.on("end",u),e.on("close",u)),!c&&typeof e.aborted=="boolean"&&e.on("aborted",y),e.on("end",p),e.on("finish",h),t.error!==!1&&e.on("error",m),e.on("close",y),w?nt.nextTick(y):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?c||nt.nextTick(x):(!o&&(!c||Qf(e))&&(d||td(e)===!1)||!s&&(!c||td(e))&&(f||Qf(e)===!1)||l&&e.req&&e.aborted)&&nt.nextTick(x);let T=()=>{r=os,e.removeListener("aborted",y),e.removeListener("complete",h),e.removeListener("abort",y),e.removeListener("request",E),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",y)};if(t.signal&&!w){let R=()=>{let S=r;T(),S.call(e,new od(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)nt.nextTick(R);else{Vt=Vt||he().addAbortListener;let S=Vt(t.signal,R),C=r;r=is((...O)=>{S[sd](),C.apply(e,O)})}}return T}function C0(e,t,r){let n=!1,i=os;if(t.signal)if(i=()=>{n=!0,r.call(e,new od(void 0,{cause:t.signal.reason}))},t.signal.aborted)nt.nextTick(i);else{Vt=Vt||he().addAbortListener;let s=Vt(t.signal,i),a=r;r=is((...l)=>{s[sd](),a.apply(e,l)})}let o=(...s)=>{n||nt.nextTick(()=>r.apply(e,s))};return _0(e[v0].promise,o,o),os}function I0(e,t){var r;let n=!1;return t===null&&(t=ns),(r=t)!==null&&r!==void 0&&r.cleanup&&(S0(t.cleanup,"cleanup"),n=t.cleanup),new E0((i,o)=>{let s=ad(e,t,a=>{n&&s(),a?o(a):i()})})}ss.exports=ad;ss.exports.finished=I0});var Et=L((dN,md)=>{"use strict";var qe=rt(),{aggregateTwoErrors:O0,codes:{ERR_MULTIPLE_CALLBACK:M0},AbortError:N0}=ce(),{Symbol:cd}=te(),{kIsDestroyed:D0,isDestroyed:P0,isFinished:q0,isServerRequest:B0}=Pe(),fd=cd("kDestroy"),as=cd("kConstruct");function dd(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function F0(e,t){let r=this._readableState,n=this._writableState,i=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(dd(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),i.constructed?ld(this,e,t):this.once(fd,function(o){ld(this,O0(o,e),t)}),this)}function ld(e,t,r){let n=!1;function i(o){if(n)return;n=!0;let s=e._readableState,a=e._writableState;dd(o,a,s),a&&(a.closed=!0),s&&(s.closed=!0),typeof r=="function"&&r(o),o?qe.nextTick(j0,e,o):qe.nextTick(hd,e)}try{e._destroy(t||null,i)}catch(o){i(o)}}function j0(e,t){ls(e,t),hd(e)}function hd(e){let t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function ls(e,t){let r=e._readableState,n=e._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function $0(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function us(e,t,r){let n=e._readableState,i=e._writableState;if(i!=null&&i.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||i!=null&&i.autoDestroy?e.destroy(t):t&&(t.stack,i&&!i.errored&&(i.errored=t),n&&!n.errored&&(n.errored=t),r?qe.nextTick(ls,e,t):ls(e,t))}function U0(e,t){if(typeof e._construct!="function")return;let r=e._readableState,n=e._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),e.once(as,t),!(e.listenerCount(as)>1)&&qe.nextTick(W0,e)}function W0(e){let t=!1;function r(n){if(t){us(e,n??new M0);return}t=!0;let i=e._readableState,o=e._writableState,s=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),s.destroyed?e.emit(fd,n):n?us(e,n,!0):qe.nextTick(z0,e)}try{e._construct(n=>{qe.nextTick(r,n)})}catch(n){qe.nextTick(r,n)}}function z0(e){e.emit(as)}function ud(e){return e?.setHeader&&typeof e.abort=="function"}function pd(e){e.emit("close")}function V0(e,t){e.emit("error",t),qe.nextTick(pd,e)}function H0(e,t){!e||P0(e)||(!t&&!q0(e)&&(t=new N0),B0(e)?(e.socket=null,e.destroy(t)):ud(e)?e.abort():ud(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?qe.nextTick(V0,e,t):qe.nextTick(pd,e),e.destroyed||(e[D0]=!0))}md.exports={construct:U0,destroyer:H0,destroy:F0,undestroy:$0,errorOrDestroy:us}});var jn=L((hN,yd)=>{"use strict";var{ArrayIsArray:G0,ObjectSetPrototypeOf:gd}=te(),{EventEmitter:Bn}=H("events");function Fn(e){Bn.call(this,e)}gd(Fn.prototype,Bn.prototype);gd(Fn,Bn);Fn.prototype.pipe=function(e,t){let r=this;function n(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",s),r.on("close",a));let o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function l(c){u(),Bn.listenerCount(this,"error")===0&&this.emit("error",c)}cs(r,"error",l),cs(e,"error",l);function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",a),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e};function cs(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):G0(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}yd.exports={Stream:Fn,prependListener:cs}});var kr=L((pN,$n)=>{"use strict";var{SymbolDispose:K0}=te(),{AbortError:bd,codes:Y0}=ce(),{isNodeStream:wd,isWebStream:X0,kControllerErrorFunction:J0}=Pe(),Q0=Ve(),{ERR_INVALID_ARG_TYPE:Sd}=Y0,fs,Z0=(e,t)=>{if(typeof e!="object"||!("aborted"in e))throw new Sd(t,"AbortSignal",e)};$n.exports.addAbortSignal=function(t,r){if(Z0(t,"signal"),!wd(r)&&!X0(r))throw new Sd("stream",["ReadableStream","WritableStream","Stream"],r);return $n.exports.addAbortSignalNoValidate(t,r)};$n.exports.addAbortSignalNoValidate=function(e,t){if(typeof e!="object"||!("aborted"in e))return t;let r=wd(t)?()=>{t.destroy(new bd(void 0,{cause:e.reason}))}:()=>{t[J0](new bd(void 0,{cause:e.reason}))};if(e.aborted)r();else{fs=fs||he().addAbortListener;let n=fs(e,r);Q0(t,n[K0])}return t}});var xd=L((gN,_d)=>{"use strict";var{StringPrototypeSlice:Ed,SymbolIterator:eA,TypedArrayPrototypeSet:Un,Uint8Array:tA}=te(),{Buffer:ds}=H("buffer"),{inspect:rA}=he();_d.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){let r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){let r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=t+r.data;return n}concat(t){if(this.length===0)return ds.alloc(0);let r=ds.allocUnsafe(t>>>0),n=this.head,i=0;for(;n;)Un(r,n.data,i),i+=n.data.length,n=n.next;return r}consume(t,r){let n=this.head.data;if(t<n.length){let i=n.slice(0,t);return this.head.data=n.slice(t),i}return t===n.length?this.shift():r?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[eA](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let r="",n=this.head,i=0;do{let o=n.data;if(t>o.length)r+=o,t-=o.length;else{t===o.length?(r+=o,++i,n.next?this.head=n.next:this.head=this.tail=null):(r+=Ed(o,0,t),this.head=n,n.data=Ed(o,t));break}++i}while((n=n.next)!==null);return this.length-=i,r}_getBuffer(t){let r=ds.allocUnsafe(t),n=t,i=this.head,o=0;do{let s=i.data;if(t>s.length)Un(r,s,n-t),t-=s.length;else{t===s.length?(Un(r,s,n-t),++o,i.next?this.head=i.next:this.head=this.tail=null):(Un(r,new tA(s.buffer,s.byteOffset,t),n-t),this.head=i,i.data=s.slice(t));break}++o}while((i=i.next)!==null);return this.length-=o,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return rA(this,{...r,depth:0,customInspect:!1})}}});var Rr=L((yN,Rd)=>{"use strict";var{MathFloor:nA,NumberIsInteger:iA}=te(),{validateInteger:oA}=zt(),{ERR_INVALID_ARG_VALUE:sA}=ce().codes,Td=16*1024,Ad=16;function aA(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function kd(e){return e?Ad:Td}function lA(e,t){oA(t,"value",0),e?Ad=t:Td=t}function uA(e,t,r,n){let i=aA(t,n,r);if(i!=null){if(!iA(i)||i<0){let o=n?`options.${r}`:"options.highWaterMark";throw new sA(o,i)}return nA(i)}return kd(e.objectMode)}Rd.exports={getHighWaterMark:uA,getDefaultHighWaterMark:kd,setDefaultHighWaterMark:lA}});var Cd=L(Ld=>{"use strict";var ps=Qg().Buffer,vd=ps.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function cA(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function fA(e){var t=cA(e);if(typeof t!="string"&&(ps.isEncoding===vd||!vd(e)))throw new Error("Unknown encoding: "+e);return t||e}Ld.StringDecoder=vr;function vr(e){this.encoding=fA(e);var t;switch(this.encoding){case"utf16le":this.text=yA,this.end=bA,t=4;break;case"utf8":this.fillLast=pA,t=4;break;case"base64":this.text=wA,this.end=SA,t=3;break;default:this.write=EA,this.end=_A;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ps.allocUnsafe(t)}vr.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};vr.prototype.end=gA;vr.prototype.text=mA;vr.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function hs(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function dA(e,t,r){var n=t.length-1;if(n<r)return 0;var i=hs(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=hs(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=hs(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function hA(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function pA(e){var t=this.lastTotal-this.lastNeed,r=hA(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function mA(e,t){var r=dA(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function gA(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function yA(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function bA(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function wA(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function SA(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function EA(e){return e.toString(this.encoding)}function _A(e){return e&&e.length?this.write(e):""}});var ms=L((wN,Nd)=>{"use strict";var Id=rt(),{PromisePrototypeThen:xA,SymbolAsyncIterator:Od,SymbolIterator:Md}=te(),{Buffer:TA}=H("buffer"),{ERR_INVALID_ARG_TYPE:AA,ERR_STREAM_NULL_VALUES:kA}=ce().codes;function RA(e,t,r){let n;if(typeof t=="string"||t instanceof TA)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let i;if(t&&t[Od])i=!0,n=t[Od]();else if(t&&t[Md])i=!1,n=t[Md]();else throw new AA("iterable",["Iterable"],t);let o=new e({objectMode:!0,highWaterMark:1,...r}),s=!1;o._read=function(){s||(s=!0,l())},o._destroy=function(u,c){xA(a(u),()=>Id.nextTick(c,u),d=>Id.nextTick(c,d||u))};async function a(u){let c=u!=null,d=typeof n.throw=="function";if(c&&d){let{value:h,done:f}=await n.throw(u);if(await h,f)return}if(typeof n.return=="function"){let{value:h}=await n.return();await h}}async function l(){for(;;){try{let{value:u,done:c}=i?await n.next():n.next();if(c)o.push(null);else{let d=u&&typeof u.then=="function"?await u:u;if(d===null)throw s=!1,new kA;if(o.push(d))continue;s=!1}}catch(u){o.destroy(u)}break}}return o}Nd.exports=RA});var Cr=L((SN,Qd)=>{"use strict";var Ce=rt(),{ArrayPrototypeIndexOf:vA,NumberIsInteger:LA,NumberIsNaN:CA,NumberParseInt:IA,ObjectDefineProperties:xs,ObjectKeys:OA,ObjectSetPrototypeOf:qd,Promise:Bd,SafeSet:MA,SymbolAsyncDispose:NA,SymbolAsyncIterator:DA,Symbol:PA}=te();Qd.exports=z;z.ReadableState=Hn;var{EventEmitter:qA}=H("events"),{Stream:it,prependListener:BA}=jn(),{Buffer:gs}=H("buffer"),{addAbortSignal:FA}=kr(),Fd=Ve(),G=he().debuglog("stream",e=>{G=e}),jA=xd(),Kt=Et(),{getHighWaterMark:$A,getDefaultHighWaterMark:UA}=Rr(),{aggregateTwoErrors:Dd,codes:{ERR_INVALID_ARG_TYPE:WA,ERR_METHOD_NOT_IMPLEMENTED:zA,ERR_OUT_OF_RANGE:VA,ERR_STREAM_PUSH_AFTER_EOF:HA,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:GA},AbortError:KA}=ce(),{validateObject:YA}=zt(),_t=PA("kPaused"),{StringDecoder:jd}=Cd(),XA=ms();qd(z.prototype,it.prototype);qd(z,it);var ys=()=>{},{errorOrDestroy:Ht}=Kt,Gt=1,JA=2,$d=4,Lr=8,Ud=16,Wn=32,zn=64,Wd=128,QA=256,ZA=512,ek=1024,Es=2048,_s=4096,tk=8192,rk=16384,nk=32768,zd=65536,ik=1<<17,ok=1<<18;function oe(e){return{enumerable:!1,get(){return(this.state&e)!==0},set(t){t?this.state|=e:this.state&=~e}}}xs(Hn.prototype,{objectMode:oe(Gt),ended:oe(JA),endEmitted:oe($d),reading:oe(Lr),constructed:oe(Ud),sync:oe(Wn),needReadable:oe(zn),emittedReadable:oe(Wd),readableListening:oe(QA),resumeScheduled:oe(ZA),errorEmitted:oe(ek),emitClose:oe(Es),autoDestroy:oe(_s),destroyed:oe(tk),closed:oe(rk),closeEmitted:oe(nk),multiAwaitDrain:oe(zd),readingMore:oe(ik),dataEmitted:oe(ok)});function Hn(e,t,r){typeof r!="boolean"&&(r=t instanceof Be()),this.state=Es|_s|Ud|Wn,e&&e.objectMode&&(this.state|=Gt),r&&e&&e.readableObjectMode&&(this.state|=Gt),this.highWaterMark=e?$A(this,e,"readableHighWaterMark",r):UA(!1),this.buffer=new jA,this.length=0,this.pipes=[],this.flowing=null,this[_t]=null,e&&e.emitClose===!1&&(this.state&=~Es),e&&e.autoDestroy===!1&&(this.state&=~_s),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new jd(e.encoding),this.encoding=e.encoding)}function z(e){if(!(this instanceof z))return new z(e);let t=this instanceof Be();this._readableState=new Hn(e,this,t),e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.construct=="function"&&(this._construct=e.construct),e.signal&&!t&&FA(e.signal,this)),it.call(this,e),Kt.construct(this,()=>{this._readableState.needReadable&&Vn(this,this._readableState)})}z.prototype.destroy=Kt.destroy;z.prototype._undestroy=Kt.undestroy;z.prototype._destroy=function(e,t){t(e)};z.prototype[qA.captureRejectionSymbol]=function(e){this.destroy(e)};z.prototype[NA]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new KA,this.destroy(e)),new Bd((t,r)=>Fd(this,n=>n&&n!==e?r(n):t(null)))};z.prototype.push=function(e,t){return Vd(this,e,t,!1)};z.prototype.unshift=function(e,t){return Vd(this,e,t,!0)};function Vd(e,t,r,n){G("readableAddChunk",t);let i=e._readableState,o;if((i.state&Gt)===0&&(typeof t=="string"?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?t=gs.from(t,r).toString(i.encoding):(t=gs.from(t,r),r=""))):t instanceof gs?r="":it._isUint8Array(t)?(t=it._uint8ArrayToBuffer(t),r=""):t!=null&&(o=new WA("chunk",["string","Buffer","Uint8Array"],t))),o)Ht(e,o);else if(t===null)i.state&=~Lr,lk(e,i);else if((i.state&Gt)!==0||t&&t.length>0)if(n)if((i.state&$d)!==0)Ht(e,new GA);else{if(i.destroyed||i.errored)return!1;bs(e,i,t,!0)}else if(i.ended)Ht(e,new HA);else{if(i.destroyed||i.errored)return!1;i.state&=~Lr,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||t.length!==0?bs(e,i,t,!1):Vn(e,i)):bs(e,i,t,!1)}else n||(i.state&=~Lr,Vn(e,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function bs(e,t,r,n){t.flowing&&t.length===0&&!t.sync&&e.listenerCount("data")>0?((t.state&zd)!==0?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),(t.state&zn)!==0&&Gn(e)),Vn(e,t)}z.prototype.isPaused=function(){let e=this._readableState;return e[_t]===!0||e.flowing===!1};z.prototype.setEncoding=function(e){let t=new jd(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,n="";for(let i of r)n+=t.write(i);return r.clear(),n!==""&&r.push(n),this._readableState.length=n.length,this};var sk=1073741824;function ak(e){if(e>sk)throw new VA("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++,e}function Pd(e,t){return e<=0||t.length===0&&t.ended?0:(t.state&Gt)!==0?1:CA(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}z.prototype.read=function(e){G("read",e),e===void 0?e=NaN:LA(e)||(e=IA(e,10));let t=this._readableState,r=e;if(e>t.highWaterMark&&(t.highWaterMark=ak(e)),e!==0&&(t.state&=~Wd),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return G("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?ws(this):Gn(this),null;if(e=Pd(e,t),e===0&&t.ended)return t.length===0&&ws(this),null;let n=(t.state&zn)!==0;if(G("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,G("length less than watermark",n)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)n=!1,G("reading, ended or constructing",n);else if(n){G("do read"),t.state|=Lr|Wn,t.length===0&&(t.state|=zn);try{this._read(t.highWaterMark)}catch(o){Ht(this,o)}t.state&=~Wn,t.reading||(e=Pd(r,t))}let i;return e>0?i=Xd(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&ws(this)),i!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit("data",i)),i};function lk(e,t){if(G("onEofChunk"),!t.ended){if(t.decoder){let r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?Gn(e):(t.needReadable=!1,t.emittedReadable=!0,Hd(e))}}function Gn(e){let t=e._readableState;G("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(G("emitReadable",t.flowing),t.emittedReadable=!0,Ce.nextTick(Hd,e))}function Hd(e){let t=e._readableState;G("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Kd(e)}function Vn(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,Ce.nextTick(uk,e,t))}function uk(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){let r=t.length;if(G("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}z.prototype._read=function(e){throw new zA("_read()")};z.prototype.pipe=function(e,t){let r=this,n=this._readableState;n.pipes.length===1&&(n.multiAwaitDrain||(n.multiAwaitDrain=!0,n.awaitDrainWriters=new MA(n.awaitDrainWriters?[n.awaitDrainWriters]:[]))),n.pipes.push(e),G("pipe count=%d opts=%j",n.pipes.length,t);let o=(!t||t.end!==!1)&&e!==Ce.stdout&&e!==Ce.stderr?a:w;n.endEmitted?Ce.nextTick(o):r.once("end",o),e.on("unpipe",s);function s(y,x){G("onunpipe"),y===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,c())}function a(){G("onend"),e.end()}let l,u=!1;function c(){G("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),l&&e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",w),r.removeListener("data",h),u=!0,l&&n.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&l()}function d(){u||(n.pipes.length===1&&n.pipes[0]===e?(G("false write response, pause",0),n.awaitDrainWriters=e,n.multiAwaitDrain=!1):n.pipes.length>1&&n.pipes.includes(e)&&(G("false write response, pause",n.awaitDrainWriters.size),n.awaitDrainWriters.add(e)),r.pause()),l||(l=ck(r,e),e.on("drain",l))}r.on("data",h);function h(y){G("ondata");let x=e.write(y);G("dest.write",x),x===!1&&d()}function f(y){if(G("onerror",y),w(),e.removeListener("error",f),e.listenerCount("error")===0){let x=e._writableState||e._readableState;x&&!x.errorEmitted?Ht(e,y):e.emit("error",y)}}BA(e,"error",f);function p(){e.removeListener("finish",m),w()}e.once("close",p);function m(){G("onfinish"),e.removeListener("close",p),w()}e.once("finish",m);function w(){G("unpipe"),r.unpipe(e)}return e.emit("pipe",r),e.writableNeedDrain===!0?d():n.flowing||(G("pipe resume"),r.resume()),e};function ck(e,t){return function(){let n=e._readableState;n.awaitDrainWriters===t?(G("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(G("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),(!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&e.listenerCount("data")&&e.resume()}}z.prototype.unpipe=function(e){let t=this._readableState,r={hasUnpiped:!1};if(t.pipes.length===0)return this;if(!e){let i=t.pipes;t.pipes=[],this.pause();for(let o=0;o<i.length;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}let n=vA(t.pipes,e);return n===-1?this:(t.pipes.splice(n,1),t.pipes.length===0&&this.pause(),e.emit("unpipe",this,r),this)};z.prototype.on=function(e,t){let r=it.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,G("on readable",n.length,n.reading),n.length?Gn(this):n.reading||Ce.nextTick(fk,this)),r};z.prototype.addListener=z.prototype.on;z.prototype.removeListener=function(e,t){let r=it.prototype.removeListener.call(this,e,t);return e==="readable"&&Ce.nextTick(Gd,this),r};z.prototype.off=z.prototype.removeListener;z.prototype.removeAllListeners=function(e){let t=it.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&Ce.nextTick(Gd,this),t};function Gd(e){let t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&t[_t]===!1?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function fk(e){G("readable nexttick read 0"),e.read(0)}z.prototype.resume=function(){let e=this._readableState;return e.flowing||(G("resume"),e.flowing=!e.readableListening,dk(this,e)),e[_t]=!1,this};function dk(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Ce.nextTick(hk,e,t))}function hk(e,t){G("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Kd(e),t.flowing&&!t.reading&&e.read(0)}z.prototype.pause=function(){return G("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(G("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[_t]=!0,this};function Kd(e){let t=e._readableState;for(G("flow",t.flowing);t.flowing&&e.read()!==null;);}z.prototype.wrap=function(e){let t=!1;e.on("data",n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())}),e.on("end",()=>{this.push(null)}),e.on("error",n=>{Ht(this,n)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let r=OA(e);for(let n=1;n<r.length;n++){let i=r[n];this[i]===void 0&&typeof e[i]=="function"&&(this[i]=e[i].bind(e))}return this};z.prototype[DA]=function(){return Yd(this)};z.prototype.iterator=function(e){return e!==void 0&&YA(e,"options"),Yd(this,e)};function Yd(e,t){typeof e.read!="function"&&(e=z.wrap(e,{objectMode:!0}));let r=pk(e,t);return r.stream=e,r}async function*pk(e,t){let r=ys;function n(s){this===e?(r(),r=ys):r=s}e.on("readable",n);let i,o=Fd(e,{writable:!1},s=>{i=s?Dd(i,s):null,r(),r=ys});try{for(;;){let s=e.destroyed?null:e.read();if(s!==null)yield s;else{if(i)throw i;if(i===null)return;await new Bd(n)}}}catch(s){throw i=Dd(i,s),i}finally{(i||t?.destroyOnReturn!==!1)&&(i===void 0||e._readableState.autoDestroy)?Kt.destroyer(e,null):(e.off("readable",n),o())}}xs(z.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&e.readable!==!1&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});xs(Hn.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[_t]!==!1},set(e){this[_t]=!!e}}});z._fromList=Xd;function Xd(e,t){if(t.length===0)return null;let r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function ws(e){let t=e._readableState;G("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,Ce.nextTick(mk,t,e))}function mk(e,t){if(G("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.emit("end"),t.writable&&t.allowHalfOpen===!1)Ce.nextTick(gk,t);else if(e.autoDestroy){let r=t._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&t.destroy()}}}function gk(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}z.from=function(e,t){return XA(z,e,t)};var Ss;function Jd(){return Ss===void 0&&(Ss={}),Ss}z.fromWeb=function(e,t){return Jd().newStreamReadableFromReadableStream(e,t)};z.toWeb=function(e,t){return Jd().newReadableStreamFromStreamReadable(e,t)};z.wrap=function(e,t){var r,n;return new z({objectMode:(r=(n=e.readableObjectMode)!==null&&n!==void 0?n:e.objectMode)!==null&&r!==void 0?r:!0,...t,destroy(i,o){Kt.destroyer(e,i),o(i)}}).wrap(e)}});var Qn=L((EN,ch)=>{"use strict";var xt=rt(),{ArrayPrototypeSlice:th,Error:yk,FunctionPrototypeSymbolHasInstance:rh,ObjectDefineProperty:nh,ObjectDefineProperties:bk,ObjectSetPrototypeOf:ih,StringPrototypeToLowerCase:wk,Symbol:Sk,SymbolHasInstance:Ek}=te();ch.exports=re;re.WritableState=Mr;var{EventEmitter:_k}=H("events"),Ir=jn().Stream,{Buffer:Kn}=H("buffer"),Jn=Et(),{addAbortSignal:xk}=kr(),{getHighWaterMark:Tk,getDefaultHighWaterMark:Ak}=Rr(),{ERR_INVALID_ARG_TYPE:kk,ERR_METHOD_NOT_IMPLEMENTED:Rk,ERR_MULTIPLE_CALLBACK:oh,ERR_STREAM_CANNOT_PIPE:vk,ERR_STREAM_DESTROYED:Or,ERR_STREAM_ALREADY_FINISHED:Lk,ERR_STREAM_NULL_VALUES:Ck,ERR_STREAM_WRITE_AFTER_END:Ik,ERR_UNKNOWN_ENCODING:sh}=ce().codes,{errorOrDestroy:Yt}=Jn;ih(re.prototype,Ir.prototype);ih(re,Ir);function ks(){}var Xt=Sk("kOnFinished");function Mr(e,t,r){typeof r!="boolean"&&(r=t instanceof Be()),this.objectMode=!!(e&&e.objectMode),r&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?Tk(this,e,"writableHighWaterMark",r):Ak(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let n=!!(e&&e.decodeStrings===!1);this.decodeStrings=!n,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Mk.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Xn(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Xt]=[]}function Xn(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}Mr.prototype.getBuffer=function(){return th(this.buffered,this.bufferedIndex)};nh(Mr.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function re(e){let t=this instanceof Be();if(!t&&!rh(re,this))return new re(e);this._writableState=new Mr(e,this,t),e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final),typeof e.construct=="function"&&(this._construct=e.construct),e.signal&&xk(e.signal,this)),Ir.call(this,e),Jn.construct(this,()=>{let r=this._writableState;r.writing||vs(this,r),Ls(this,r)})}nh(re,Ek,{__proto__:null,value:function(e){return rh(this,e)?!0:this!==re?!1:e&&e._writableState instanceof Mr}});re.prototype.pipe=function(){Yt(this,new vk)};function ah(e,t,r,n){let i=e._writableState;if(typeof r=="function")n=r,r=i.defaultEncoding;else{if(!r)r=i.defaultEncoding;else if(r!=="buffer"&&!Kn.isEncoding(r))throw new sh(r);typeof n!="function"&&(n=ks)}if(t===null)throw new Ck;if(!i.objectMode)if(typeof t=="string")i.decodeStrings!==!1&&(t=Kn.from(t,r),r="buffer");else if(t instanceof Kn)r="buffer";else if(Ir._isUint8Array(t))t=Ir._uint8ArrayToBuffer(t),r="buffer";else throw new kk("chunk",["string","Buffer","Uint8Array"],t);let o;return i.ending?o=new Ik:i.destroyed&&(o=new Or("write")),o?(xt.nextTick(n,o),Yt(e,o,!0),o):(i.pendingcb++,Ok(e,i,t,r,n))}re.prototype.write=function(e,t,r){return ah(this,e,t,r)===!0};re.prototype.cork=function(){this._writableState.corked++};re.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||vs(this,e))};re.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=wk(t)),!Kn.isEncoding(t))throw new sh(t);return this._writableState.defaultEncoding=t,this};function Ok(e,t,r,n,i){let o=t.objectMode?1:r.length;t.length+=o;let s=t.length<t.highWaterMark;return s||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:i}),t.allBuffers&&n!=="buffer"&&(t.allBuffers=!1),t.allNoop&&i!==ks&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1),s&&!t.errored&&!t.destroyed}function Zd(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Or("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function eh(e,t,r,n){--t.pendingcb,n(r),Rs(t),Yt(e,r)}function Mk(e,t){let r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function"){Yt(e,new oh);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),n?xt.nextTick(eh,e,r,t,i):eh(e,r,t,i)):(r.buffered.length>r.bufferedIndex&&vs(e,r),n?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===i?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:i,stream:e,state:r},xt.nextTick(Nk,r.afterWriteTickInfo)):lh(e,r,1,i))}function Nk({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,lh(e,t,r,n)}function lh(e,t,r,n){for(!t.ending&&!e.destroyed&&t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,n();t.destroyed&&Rs(t),Ls(e,t)}function Rs(e){if(e.writing)return;for(let i=e.bufferedIndex;i<e.buffered.length;++i){var t;let{chunk:o,callback:s}=e.buffered[i],a=e.objectMode?1:o.length;e.length-=a,s((t=e.errored)!==null&&t!==void 0?t:new Or("write"))}let r=e[Xt].splice(0);for(let i=0;i<r.length;i++){var n;r[i]((n=e.errored)!==null&&n!==void 0?n:new Or("end"))}Xn(e)}function vs(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:r,bufferedIndex:n,objectMode:i}=t,o=r.length-n;if(!o)return;let s=n;if(t.bufferProcessing=!0,o>1&&e._writev){t.pendingcb-=o-1;let a=t.allNoop?ks:u=>{for(let c=s;c<r.length;++c)r[c].callback(u)},l=t.allNoop&&s===0?r:th(r,s);l.allBuffers=t.allBuffers,Zd(e,t,!0,t.length,l,"",a),Xn(t)}else{do{let{chunk:a,encoding:l,callback:u}=r[s];r[s++]=null;let c=i?1:a.length;Zd(e,t,!1,c,a,l,u)}while(s<r.length&&!t.writing);s===r.length?Xn(t):s>256?(r.splice(0,s),t.bufferedIndex=0):t.bufferedIndex=s}t.bufferProcessing=!1}re.prototype._write=function(e,t,r){if(this._writev)this._writev([{chunk:e,encoding:t}],r);else throw new Rk("_write()")};re.prototype._writev=null;re.prototype.end=function(e,t,r){let n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null);let i;if(e!=null){let o=ah(this,e,t);o instanceof yk&&(i=o)}return n.corked&&(n.corked=1,this.uncork()),i||(!n.errored&&!n.ending?(n.ending=!0,Ls(this,n,!0),n.ended=!0):n.finished?i=new Lk("end"):n.destroyed&&(i=new Or("end"))),typeof r=="function"&&(i||n.finished?xt.nextTick(r,i):n[Xt].push(r)),this};function Yn(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function Dk(e,t){let r=!1;function n(i){if(r){Yt(e,i??oh());return}if(r=!0,t.pendingcb--,i){let o=t[Xt].splice(0);for(let s=0;s<o.length;s++)o[s](i);Yt(e,i,t.sync)}else Yn(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,xt.nextTick(As,e,t))}t.sync=!0,t.pendingcb++;try{e._final(n)}catch(i){n(i)}t.sync=!1}function Pk(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.finalCalled=!0,Dk(e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Ls(e,t,r){Yn(t)&&(Pk(e,t),t.pendingcb===0&&(r?(t.pendingcb++,xt.nextTick((n,i)=>{Yn(i)?As(n,i):i.pendingcb--},e,t)):Yn(t)&&(t.pendingcb++,As(e,t))))}function As(e,t){t.pendingcb--,t.finished=!0;let r=t[Xt].splice(0);for(let n=0;n<r.length;n++)r[n]();if(e.emit("finish"),t.autoDestroy){let n=e._readableState;(!n||n.autoDestroy&&(n.endEmitted||n.readable===!1))&&e.destroy()}}bk(re.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&e.writable!==!1&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let e=this._writableState;return e?!e.destroyed&&!e.ending&&e.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var qk=Jn.destroy;re.prototype.destroy=function(e,t){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[Xt].length)&&xt.nextTick(Rs,r),qk.call(this,e,t),this};re.prototype._undestroy=Jn.undestroy;re.prototype._destroy=function(e,t){t(e)};re.prototype[_k.captureRejectionSymbol]=function(e){this.destroy(e)};var Ts;function uh(){return Ts===void 0&&(Ts={}),Ts}re.fromWeb=function(e,t){return uh().newStreamWritableFromWritableStream(e,t)};re.toWeb=function(e){return uh().newWritableStreamFromStreamWritable(e)}});var Ah=L((_N,Th)=>{var Cs=rt(),Bk=H("buffer"),{isReadable:Fk,isWritable:jk,isIterable:fh,isNodeStream:$k,isReadableNodeStream:dh,isWritableNodeStream:hh,isDuplexNodeStream:Uk,isReadableStream:ph,isWritableStream:mh}=Pe(),gh=Ve(),{AbortError:_h,codes:{ERR_INVALID_ARG_TYPE:Wk,ERR_INVALID_RETURN_VALUE:yh}}=ce(),{destroyer:Qt}=Et(),zk=Be(),xh=Cr(),Vk=Qn(),{createDeferredPromise:bh}=he(),wh=ms(),Sh=globalThis.Blob||Bk.Blob,Hk=typeof Sh<"u"?function(t){return t instanceof Sh}:function(t){return!1},Gk=globalThis.AbortController||Ut().AbortController,{FunctionPrototypeCall:Eh}=te(),ot=class extends zk{constructor(t){super(t),t?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};Th.exports=function e(t,r){if(Uk(t))return t;if(dh(t))return Jt({readable:t});if(hh(t))return Jt({writable:t});if($k(t))return Jt({writable:!1,readable:!1});if(ph(t))return Jt({readable:xh.fromWeb(t)});if(mh(t))return Jt({writable:Vk.fromWeb(t)});if(typeof t=="function"){let{value:i,write:o,final:s,destroy:a}=Kk(t);if(fh(i))return wh(ot,i,{objectMode:!0,write:o,final:s,destroy:a});let l=i?.then;if(typeof l=="function"){let u,c=Eh(l,i,d=>{if(d!=null)throw new yh("nully","body",d)},d=>{Qt(u,d)});return u=new ot({objectMode:!0,readable:!1,write:o,final(d){s(async()=>{try{await c,Cs.nextTick(d,null)}catch(h){Cs.nextTick(d,h)}})},destroy:a})}throw new yh("Iterable, AsyncIterable or AsyncFunction",r,i)}if(Hk(t))return e(t.arrayBuffer());if(fh(t))return wh(ot,t,{objectMode:!0,writable:!1});if(ph(t?.readable)&&mh(t?.writable))return ot.fromWeb(t);if(typeof t?.writable=="object"||typeof t?.readable=="object"){let i=t!=null&&t.readable?dh(t?.readable)?t?.readable:e(t.readable):void 0,o=t!=null&&t.writable?hh(t?.writable)?t?.writable:e(t.writable):void 0;return Jt({readable:i,writable:o})}let n=t?.then;if(typeof n=="function"){let i;return Eh(n,t,o=>{o!=null&&i.push(o),i.push(null)},o=>{Qt(i,o)}),i=new ot({objectMode:!0,writable:!1,read(){}})}throw new Wk(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)};function Kk(e){let{promise:t,resolve:r}=bh(),n=new Gk,i=n.signal;return{value:e((async function*(){for(;;){let s=t;t=null;let{chunk:a,done:l,cb:u}=await s;if(Cs.nextTick(u),l)return;if(i.aborted)throw new _h(void 0,{cause:i.reason});({promise:t,resolve:r}=bh()),yield a}})(),{signal:i}),write(s,a,l){let u=r;r=null,u({chunk:s,done:!1,cb:l})},final(s){let a=r;r=null,a({done:!0,cb:s})},destroy(s,a){n.abort(),a(s)}}}function Jt(e){let t=e.readable&&typeof e.readable.read!="function"?xh.wrap(e.readable):e.readable,r=e.writable,n=!!Fk(t),i=!!jk(r),o,s,a,l,u;function c(d){let h=l;l=null,h?h(d):d&&u.destroy(d)}return u=new ot({readableObjectMode:!!(t!=null&&t.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:n,writable:i}),i&&(gh(r,d=>{i=!1,d&&Qt(t,d),c(d)}),u._write=function(d,h,f){r.write(d,h)?f():o=f},u._final=function(d){r.end(),s=d},r.on("drain",function(){if(o){let d=o;o=null,d()}}),r.on("finish",function(){if(s){let d=s;s=null,d()}})),n&&(gh(t,d=>{n=!1,d&&Qt(t,d),c(d)}),t.on("readable",function(){if(a){let d=a;a=null,d()}}),t.on("end",function(){u.push(null)}),u._read=function(){for(;;){let d=t.read();if(d===null){a=u._read;return}if(!u.push(d))return}}),u._destroy=function(d,h){!d&&l!==null&&(d=new _h),a=null,o=null,s=null,l===null?h(d):(l=h,Qt(r,d),Qt(t,d))},u}});var Be=L((xN,vh)=>{"use strict";var{ObjectDefineProperties:Yk,ObjectGetOwnPropertyDescriptor:He,ObjectKeys:Xk,ObjectSetPrototypeOf:kh}=te();vh.exports=Ie;var Ms=Cr(),Ae=Qn();kh(Ie.prototype,Ms.prototype);kh(Ie,Ms);{let e=Xk(Ae.prototype);for(let t=0;t<e.length;t++){let r=e[t];Ie.prototype[r]||(Ie.prototype[r]=Ae.prototype[r])}}function Ie(e){if(!(this instanceof Ie))return new Ie(e);Ms.call(this,e),Ae.call(this,e),e?(this.allowHalfOpen=e.allowHalfOpen!==!1,e.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}Yk(Ie.prototype,{writable:{__proto__:null,...He(Ae.prototype,"writable")},writableHighWaterMark:{__proto__:null,...He(Ae.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...He(Ae.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...He(Ae.prototype,"writableBuffer")},writableLength:{__proto__:null,...He(Ae.prototype,"writableLength")},writableFinished:{__proto__:null,...He(Ae.prototype,"writableFinished")},writableCorked:{__proto__:null,...He(Ae.prototype,"writableCorked")},writableEnded:{__proto__:null,...He(Ae.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...He(Ae.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}});var Is;function Rh(){return Is===void 0&&(Is={}),Is}Ie.fromWeb=function(e,t){return Rh().newStreamDuplexFromReadableWritablePair(e,t)};Ie.toWeb=function(e){return Rh().newReadableWritablePairFromDuplex(e)};var Os;Ie.from=function(e){return Os||(Os=Ah()),Os(e,"body")}});var Ps=L((TN,Ch)=>{"use strict";var{ObjectSetPrototypeOf:Lh,Symbol:Jk}=te();Ch.exports=Ge;var{ERR_METHOD_NOT_IMPLEMENTED:Qk}=ce().codes,Ds=Be(),{getHighWaterMark:Zk}=Rr();Lh(Ge.prototype,Ds.prototype);Lh(Ge,Ds);var Nr=Jk("kCallback");function Ge(e){if(!(this instanceof Ge))return new Ge(e);let t=e?Zk(this,e,"readableHighWaterMark",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),Ds.call(this,e),this._readableState.sync=!1,this[Nr]=null,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",eR)}function Ns(e){typeof this._flush=="function"&&!this.destroyed?this._flush((t,r)=>{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function eR(){this._final!==Ns&&Ns.call(this)}Ge.prototype._final=Ns;Ge.prototype._transform=function(e,t,r){throw new Qk("_transform()")};Ge.prototype._write=function(e,t,r){let n=this._readableState,i=this._writableState,o=n.length;this._transform(e,t,(s,a)=>{if(s){r(s);return}a!=null&&this.push(a),i.ended||o===n.length||n.length<n.highWaterMark?r():this[Nr]=r})};Ge.prototype._read=function(){if(this[Nr]){let e=this[Nr];this[Nr]=null,e()}}});var Bs=L((AN,Oh)=>{"use strict";var{ObjectSetPrototypeOf:Ih}=te();Oh.exports=Zt;var qs=Ps();Ih(Zt.prototype,qs.prototype);Ih(Zt,qs);function Zt(e){if(!(this instanceof Zt))return new Zt(e);qs.call(this,e)}Zt.prototype._transform=function(e,t,r){r(null,e)}});var ri=L((kN,qh)=>{var Dr=rt(),{ArrayIsArray:tR,Promise:rR,SymbolAsyncIterator:nR,SymbolDispose:iR}=te(),ti=Ve(),{once:oR}=he(),sR=Et(),Mh=Be(),{aggregateTwoErrors:aR,codes:{ERR_INVALID_ARG_TYPE:Gs,ERR_INVALID_RETURN_VALUE:Fs,ERR_MISSING_ARGS:lR,ERR_STREAM_DESTROYED:uR,ERR_STREAM_PREMATURE_CLOSE:cR},AbortError:fR}=ce(),{validateFunction:dR,validateAbortSignal:hR}=zt(),{isIterable:Tt,isReadable:js,isReadableNodeStream:ei,isNodeStream:Nh,isTransformStream:er,isWebStream:pR,isReadableStream:$s,isReadableFinished:mR}=Pe(),gR=globalThis.AbortController||Ut().AbortController,Us,Ws,zs;function Dh(e,t,r){let n=!1;e.on("close",()=>{n=!0});let i=ti(e,{readable:t,writable:r},o=>{n=!o});return{destroy:o=>{n||(n=!0,sR.destroyer(e,o||new uR("pipe")))},cleanup:i}}function yR(e){return dR(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function Vs(e){if(Tt(e))return e;if(ei(e))return bR(e);throw new Gs("val",["Readable","Iterable","AsyncIterable"],e)}async function*bR(e){Ws||(Ws=Cr()),yield*Ws.prototype[nR].call(e)}async function Zn(e,t,r,{end:n}){let i,o=null,s=u=>{if(u&&(i=u),o){let c=o;o=null,c()}},a=()=>new rR((u,c)=>{i?c(i):o=()=>{i?c(i):u()}});t.on("drain",s);let l=ti(t,{readable:!1},s);try{t.writableNeedDrain&&await a();for await(let u of e)t.write(u)||await a();n&&(t.end(),await a()),r()}catch(u){r(i!==u?aR(i,u):u)}finally{l(),t.off("drain",s)}}async function Hs(e,t,r,{end:n}){er(t)&&(t=t.writable);let i=t.getWriter();try{for await(let o of e)await i.ready,i.write(o).catch(()=>{});await i.ready,n&&await i.close(),r()}catch(o){try{await i.abort(o),r(o)}catch(s){r(s)}}}function wR(...e){return Ph(e,oR(yR(e)))}function Ph(e,t,r){if(e.length===1&&tR(e[0])&&(e=e[0]),e.length<2)throw new lR("streams");let n=new gR,i=n.signal,o=r?.signal,s=[];hR(o,"options.signal");function a(){p(new fR)}zs=zs||he().addAbortListener;let l;o&&(l=zs(o,a));let u,c,d=[],h=0;function f(E){p(E,--h===0)}function p(E,T){var R;if(E&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=E),!(!u&&!T)){for(;d.length;)d.shift()(u);(R=l)===null||R===void 0||R[iR](),n.abort(),T&&(u||s.forEach(S=>S()),Dr.nextTick(t,u,c))}}let m;for(let E=0;E<e.length;E++){let T=e[E],R=E<e.length-1,S=E>0,C=R||r?.end!==!1,O=E===e.length-1;if(Nh(T)){let v=function(N){N&&N.name!=="AbortError"&&N.code!=="ERR_STREAM_PREMATURE_CLOSE"&&f(N)};var x=v;if(C){let{destroy:N,cleanup:W}=Dh(T,R,S);d.push(N),js(T)&&O&&s.push(W)}T.on("error",v),js(T)&&O&&s.push(()=>{T.removeListener("error",v)})}if(E===0)if(typeof T=="function"){if(m=T({signal:i}),!Tt(m))throw new Fs("Iterable, AsyncIterable or Stream","source",m)}else Tt(T)||ei(T)||er(T)?m=T:m=Mh.from(T);else if(typeof T=="function"){if(er(m)){var w;m=Vs((w=m)===null||w===void 0?void 0:w.readable)}else m=Vs(m);if(m=T(m,{signal:i}),R){if(!Tt(m,!0))throw new Fs("AsyncIterable",`transform[${E-1}]`,m)}else{var y;Us||(Us=Bs());let v=new Us({objectMode:!0}),N=(y=m)===null||y===void 0?void 0:y.then;if(typeof N=="function")h++,N.call(m,_=>{c=_,_!=null&&v.write(_),C&&v.end(),Dr.nextTick(f)},_=>{v.destroy(_),Dr.nextTick(f,_)});else if(Tt(m,!0))h++,Zn(m,v,f,{end:C});else if($s(m)||er(m)){let _=m.readable||m;h++,Zn(_,v,f,{end:C})}else throw new Fs("AsyncIterable or Promise","destination",m);m=v;let{destroy:W,cleanup:D}=Dh(m,!1,!0);d.push(W),O&&s.push(D)}}else if(Nh(T)){if(ei(m)){h+=2;let v=SR(m,T,f,{end:C});js(T)&&O&&s.push(v)}else if(er(m)||$s(m)){let v=m.readable||m;h++,Zn(v,T,f,{end:C})}else if(Tt(m))h++,Zn(m,T,f,{end:C});else throw new Gs("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=T}else if(pR(T)){if(ei(m))h++,Hs(Vs(m),T,f,{end:C});else if($s(m)||Tt(m))h++,Hs(m,T,f,{end:C});else if(er(m))h++,Hs(m.readable,T,f,{end:C});else throw new Gs("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=T}else m=Mh.from(T)}return(i!=null&&i.aborted||o!=null&&o.aborted)&&Dr.nextTick(a),m}function SR(e,t,r,{end:n}){let i=!1;if(t.on("close",()=>{i||r(new cR)}),e.pipe(t,{end:!1}),n){let s=function(){i=!0,t.end()};var o=s;mR(e)?Dr.nextTick(s):e.once("end",s)}else r();return ti(e,{readable:!0,writable:!1},s=>{let a=e._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?e.once("end",r).once("error",r):r(s)}),ti(t,{readable:!1,writable:!0},r)}qh.exports={pipelineImpl:Ph,pipeline:wR}});var Ys=L((RN,Wh)=>{"use strict";var{pipeline:ER}=ri(),ni=Be(),{destroyer:_R}=Et(),{isNodeStream:ii,isReadable:Bh,isWritable:Fh,isWebStream:Ks,isTransformStream:At,isWritableStream:jh,isReadableStream:$h}=Pe(),{AbortError:xR,codes:{ERR_INVALID_ARG_VALUE:Uh,ERR_MISSING_ARGS:TR}}=ce(),AR=Ve();Wh.exports=function(...t){if(t.length===0)throw new TR("streams");if(t.length===1)return ni.from(t[0]);let r=[...t];if(typeof t[0]=="function"&&(t[0]=ni.from(t[0])),typeof t[t.length-1]=="function"){let f=t.length-1;t[f]=ni.from(t[f])}for(let f=0;f<t.length;++f)if(!(!ii(t[f])&&!Ks(t[f]))){if(f<t.length-1&&!(Bh(t[f])||$h(t[f])||At(t[f])))throw new Uh(`streams[${f}]`,r[f],"must be readable");if(f>0&&!(Fh(t[f])||jh(t[f])||At(t[f])))throw new Uh(`streams[${f}]`,r[f],"must be writable")}let n,i,o,s,a;function l(f){let p=s;s=null,p?p(f):f?a.destroy(f):!h&&!d&&a.destroy()}let u=t[0],c=ER(t,l),d=!!(Fh(u)||jh(u)||At(u)),h=!!(Bh(c)||$h(c)||At(c));if(a=new ni({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(c!=null&&c.readableObjectMode),writable:d,readable:h}),d){if(ii(u))a._write=function(p,m,w){u.write(p,m)?w():n=w},a._final=function(p){u.end(),i=p},u.on("drain",function(){if(n){let p=n;n=null,p()}});else if(Ks(u)){let m=(At(u)?u.writable:u).getWriter();a._write=async function(w,y,x){try{await m.ready,m.write(w).catch(()=>{}),x()}catch(E){x(E)}},a._final=async function(w){try{await m.ready,m.close().catch(()=>{}),i=w}catch(y){w(y)}}}let f=At(c)?c.readable:c;AR(f,()=>{if(i){let p=i;i=null,p()}})}if(h){if(ii(c))c.on("readable",function(){if(o){let f=o;o=null,f()}}),c.on("end",function(){a.push(null)}),a._read=function(){for(;;){let f=c.read();if(f===null){o=a._read;return}if(!a.push(f))return}};else if(Ks(c)){let p=(At(c)?c.readable:c).getReader();a._read=async function(){for(;;)try{let{value:m,done:w}=await p.read();if(!a.push(m))return;if(w){a.push(null);return}}catch{return}}}}return a._destroy=function(f,p){!f&&s!==null&&(f=new xR),o=null,n=null,i=null,s===null?p(f):(s=p,ii(c)&&_R(c,f))},a}});var Zh=L((vN,Qs)=>{"use strict";var kR=globalThis.AbortController||Ut().AbortController,{codes:{ERR_INVALID_ARG_VALUE:RR,ERR_INVALID_ARG_TYPE:Pr,ERR_MISSING_ARGS:vR,ERR_OUT_OF_RANGE:LR},AbortError:Fe}=ce(),{validateAbortSignal:kt,validateInteger:zh,validateObject:Rt}=zt(),CR=te().Symbol("kWeak"),IR=te().Symbol("kResistStopPropagation"),{finished:OR}=Ve(),MR=Ys(),{addAbortSignalNoValidate:NR}=kr(),{isWritable:DR,isNodeStream:PR}=Pe(),{deprecate:qR}=he(),{ArrayPrototypePush:BR,Boolean:FR,MathFloor:Vh,Number:jR,NumberIsNaN:$R,Promise:Hh,PromiseReject:Gh,PromiseResolve:UR,PromisePrototypeThen:Kh,Symbol:Xh}=te(),oi=Xh("kEmpty"),Yh=Xh("kEof");function WR(e,t){if(t!=null&&Rt(t,"options"),t?.signal!=null&&kt(t.signal,"options.signal"),PR(e)&&!DR(e))throw new RR("stream",e,"must be writable");let r=MR(this,e);return t!=null&&t.signal&&NR(t.signal,r),r}function si(e,t){if(typeof e!="function")throw new Pr("fn",["Function","AsyncFunction"],e);t!=null&&Rt(t,"options"),t?.signal!=null&&kt(t.signal,"options.signal");let r=1;t?.concurrency!=null&&(r=Vh(t.concurrency));let n=r-1;return t?.highWaterMark!=null&&(n=Vh(t.highWaterMark)),zh(r,"options.concurrency",1),zh(n,"options.highWaterMark",0),n+=r,async function*(){let o=he().AbortSignalAny([t?.signal].filter(FR)),s=this,a=[],l={signal:o},u,c,d=!1,h=0;function f(){d=!0,p()}function p(){h-=1,m()}function m(){c&&!d&&h<r&&a.length<n&&(c(),c=null)}async function w(){try{for await(let y of s){if(d)return;if(o.aborted)throw new Fe;try{if(y=e(y,l),y===oi)continue;y=UR(y)}catch(x){y=Gh(x)}h+=1,Kh(y,p,f),a.push(y),u&&(u(),u=null),!d&&(a.length>=n||h>=r)&&await new Hh(x=>{c=x})}a.push(Yh)}catch(y){let x=Gh(y);Kh(x,p,f),a.push(x)}finally{d=!0,u&&(u(),u=null)}}w();try{for(;;){for(;a.length>0;){let y=await a[0];if(y===Yh)return;if(o.aborted)throw new Fe;y!==oi&&(yield y),a.shift(),m()}await new Hh(y=>{u=y})}}finally{d=!0,c&&(c(),c=null)}}.call(this)}function zR(e=void 0){return e!=null&&Rt(e,"options"),e?.signal!=null&&kt(e.signal,"options.signal"),async function*(){let r=0;for await(let i of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new Fe({cause:e.signal.reason});yield[r++,i]}}.call(this)}async function Jh(e,t=void 0){for await(let r of Js.call(this,e,t))return!0;return!1}async function VR(e,t=void 0){if(typeof e!="function")throw new Pr("fn",["Function","AsyncFunction"],e);return!await Jh.call(this,async(...r)=>!await e(...r),t)}async function HR(e,t){for await(let r of Js.call(this,e,t))return r}async function GR(e,t){if(typeof e!="function")throw new Pr("fn",["Function","AsyncFunction"],e);async function r(n,i){return await e(n,i),oi}for await(let n of si.call(this,r,t));}function Js(e,t){if(typeof e!="function")throw new Pr("fn",["Function","AsyncFunction"],e);async function r(n,i){return await e(n,i)?n:oi}return si.call(this,r,t)}var Xs=class extends vR{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function KR(e,t,r){var n;if(typeof e!="function")throw new Pr("reducer",["Function","AsyncFunction"],e);r!=null&&Rt(r,"options"),r?.signal!=null&&kt(r.signal,"options.signal");let i=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){let u=new Fe(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await OR(this.destroy(u)),u}let o=new kR,s=o.signal;if(r!=null&&r.signal){let u={once:!0,[CR]:this,[IR]:!0};r.signal.addEventListener("abort",()=>o.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new Fe;i?t=await e(t,u,{signal:s}):(t=u,i=!0)}if(!a&&!i)throw new Xs}finally{o.abort()}return t}async function YR(e){e!=null&&Rt(e,"options"),e?.signal!=null&&kt(e.signal,"options.signal");let t=[];for await(let n of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new Fe(void 0,{cause:e.signal.reason});BR(t,n)}return t}function XR(e,t){let r=si.call(this,e,t);return async function*(){for await(let i of r)yield*i}.call(this)}function Qh(e){if(e=jR(e),$R(e))return 0;if(e<0)throw new LR("number",">= 0",e);return e}function JR(e,t=void 0){return t!=null&&Rt(t,"options"),t?.signal!=null&&kt(t.signal,"options.signal"),e=Qh(e),async function*(){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new Fe;for await(let o of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new Fe;e--<=0&&(yield o)}}.call(this)}function QR(e,t=void 0){return t!=null&&Rt(t,"options"),t?.signal!=null&&kt(t.signal,"options.signal"),e=Qh(e),async function*(){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new Fe;for await(let o of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new Fe;if(e-- >0&&(yield o),e<=0)return}}.call(this)}Qs.exports.streamReturningOperators={asIndexedPairs:qR(zR,"readable.asIndexedPairs will be removed in a future version."),drop:JR,filter:Js,flatMap:XR,map:si,take:QR,compose:WR};Qs.exports.promiseReturningOperators={every:VR,forEach:GR,reduce:KR,toArray:YR,some:Jh,find:HR}});var Zs=L((LN,ep)=>{"use strict";var{ArrayPrototypePop:ZR,Promise:ev}=te(),{isIterable:tv,isNodeStream:rv,isWebStream:nv}=Pe(),{pipelineImpl:iv}=ri(),{finished:ov}=Ve();ea();function sv(...e){return new ev((t,r)=>{let n,i,o=e[e.length-1];if(o&&typeof o=="object"&&!rv(o)&&!tv(o)&&!nv(o)){let s=ZR(e);n=s.signal,i=s.end}iv(e,(s,a)=>{s?r(s):t(a)},{signal:n,end:i})})}ep.exports={finished:ov,pipeline:sv}});var ea=L((CN,up)=>{"use strict";var{Buffer:av}=H("buffer"),{ObjectDefineProperty:Ke,ObjectKeys:np,ReflectApply:ip}=te(),{promisify:{custom:op}}=he(),{streamReturningOperators:tp,promiseReturningOperators:rp}=Zh(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:sp}}=ce(),lv=Ys(),{setDefaultHighWaterMark:uv,getDefaultHighWaterMark:cv}=Rr(),{pipeline:ap}=ri(),{destroyer:fv}=Et(),lp=Ve(),ta=Zs(),qr=Pe(),ee=up.exports=jn().Stream;ee.isDestroyed=qr.isDestroyed;ee.isDisturbed=qr.isDisturbed;ee.isErrored=qr.isErrored;ee.isReadable=qr.isReadable;ee.isWritable=qr.isWritable;ee.Readable=Cr();for(let e of np(tp)){let r=function(...n){if(new.target)throw sp();return ee.Readable.from(ip(t,this,n))},t=tp[e];Ke(r,"name",{__proto__:null,value:t.name}),Ke(r,"length",{__proto__:null,value:t.length}),Ke(ee.Readable.prototype,e,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let e of np(rp)){let r=function(...n){if(new.target)throw sp();return ip(t,this,n)},t=rp[e];Ke(r,"name",{__proto__:null,value:t.name}),Ke(r,"length",{__proto__:null,value:t.length}),Ke(ee.Readable.prototype,e,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}ee.Writable=Qn();ee.Duplex=Be();ee.Transform=Ps();ee.PassThrough=Bs();ee.pipeline=ap;var{addAbortSignal:dv}=kr();ee.addAbortSignal=dv;ee.finished=lp;ee.destroy=fv;ee.compose=lv;ee.setDefaultHighWaterMark=uv;ee.getDefaultHighWaterMark=cv;Ke(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return ta}});Ke(ap,op,{__proto__:null,enumerable:!0,get(){return ta.pipeline}});Ke(lp,op,{__proto__:null,enumerable:!0,get(){return ta.finished}});ee.Stream=ee;ee._isUint8Array=function(t){return t instanceof Uint8Array};ee._uint8ArrayToBuffer=function(t){return av.from(t.buffer,t.byteOffset,t.byteLength)}});var cp=L((IN,V)=>{"use strict";var se=H("stream");if(se&&process.env.READABLE_STREAM==="disable"){let e=se.promises;V.exports._uint8ArrayToBuffer=se._uint8ArrayToBuffer,V.exports._isUint8Array=se._isUint8Array,V.exports.isDisturbed=se.isDisturbed,V.exports.isErrored=se.isErrored,V.exports.isReadable=se.isReadable,V.exports.Readable=se.Readable,V.exports.Writable=se.Writable,V.exports.Duplex=se.Duplex,V.exports.Transform=se.Transform,V.exports.PassThrough=se.PassThrough,V.exports.addAbortSignal=se.addAbortSignal,V.exports.finished=se.finished,V.exports.destroy=se.destroy,V.exports.pipeline=se.pipeline,V.exports.compose=se.compose,Object.defineProperty(se,"promises",{configurable:!0,enumerable:!0,get(){return e}}),V.exports.Stream=se.Stream}else{let e=ea(),t=Zs(),r=e.Readable.destroy;V.exports=e.Readable,V.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,V.exports._isUint8Array=e._isUint8Array,V.exports.isDisturbed=e.isDisturbed,V.exports.isErrored=e.isErrored,V.exports.isReadable=e.isReadable,V.exports.Readable=e.Readable,V.exports.Writable=e.Writable,V.exports.Duplex=e.Duplex,V.exports.Transform=e.Transform,V.exports.PassThrough=e.PassThrough,V.exports.addAbortSignal=e.addAbortSignal,V.exports.finished=e.finished,V.exports.destroy=e.destroy,V.exports.destroy=r,V.exports.pipeline=e.pipeline,V.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return t}}),V.exports.Stream=e.Stream}V.exports.default=V.exports});var pp=L((ON,hp)=>{"use strict";var{Transform:hv}=H("stream"),{StringDecoder:pv}=H("string_decoder"),st=Symbol("last"),ai=Symbol("decoder");function mv(e,t,r){let n;if(this.overflow){if(n=this[ai].write(e).split(this.matcher),n.length===1)return r();n.shift(),this.overflow=!1}else this[st]+=this[ai].write(e),n=this[st].split(this.matcher);this[st]=n.pop();for(let i=0;i<n.length;i++)try{dp(this,this.mapper(n[i]))}catch(o){return r(o)}if(this.overflow=this[st].length>this.maxLength,this.overflow&&!this.skipOverflow){r(new Error("maximum buffer reached"));return}r()}function gv(e){if(this[st]+=this[ai].end(),this[st])try{dp(this,this.mapper(this[st]))}catch(t){return e(t)}e()}function dp(e,t){t!==void 0&&e.push(t)}function fp(e){return e}function yv(e,t,r){switch(e=e||/\r?\n/,t=t||fp,r=r||{},arguments.length){case 1:typeof e=="function"?(t=e,e=/\r?\n/):typeof e=="object"&&!(e instanceof RegExp)&&!e[Symbol.split]&&(r=e,e=/\r?\n/);break;case 2:typeof e=="function"?(r=t,t=e,e=/\r?\n/):typeof t=="object"&&(r=t,t=fp)}r=Object.assign({},r),r.autoDestroy=!0,r.transform=mv,r.flush=gv,r.readableObjectMode=!0;let n=new hv(r);return n[st]="",n[ai]=new pv("utf8"),n.matcher=e,n.mapper=t,n.maxLength=r.maxLength,n.skipOverflow=r.skipOverflow||!1,n.overflow=!1,n._destroy=function(i,o){this._writableState.errorEmitted=!1,o(i)},n}hp.exports=yv});var wp=L((MN,bp)=>{"use strict";var mp=Symbol.for("pino.metadata"),bv=pp(),{Duplex:wv}=H("stream"),{parentPort:gp,workerData:yp}=H("worker_threads");function Sv(){let e,t,r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}bp.exports=function(t,r={}){let n=r.expectPinoConfig===!0&&yp?.workerData?.pinoWillSendConfig===!0,i=r.parse==="lines",o=typeof r.parseLine=="function"?r.parseLine:JSON.parse,s=r.close||Ev,a=bv(function(u){let c;try{c=o(u)}catch(d){this.emit("unknown",u,d);return}if(c===null){this.emit("unknown",u,"Null value ignored");return}return typeof c!="object"&&(c={data:c,time:Date.now()}),a[mp]&&(a.lastTime=c.time,a.lastLevel=c.level,a.lastObj=c),i?u:c},{autoDestroy:!0});if(a._destroy=function(u,c){let d=s(u,c);d&&typeof d.then=="function"&&d.then(c,c)},r.expectPinoConfig===!0&&yp?.workerData?.pinoWillSendConfig!==!0&&setImmediate(()=>{a.emit("error",new Error("This transport is not compatible with the current version of pino. Please upgrade pino to the latest version."))}),r.metadata!==!1&&(a[mp]=!0,a.lastTime=0,a.lastLevel=0,a.lastObj=null),n){let u={},c=Sv();return gp.on("message",function d(h){h.code==="PINO_CONFIG"&&(u=h.config,c.resolve(),gp.off("message",d))}),Object.defineProperties(a,{levels:{get(){return u.levels}},messageKey:{get(){return u.messageKey}},errorKey:{get(){return u.errorKey}}}),c.then(l)}return l();function l(){let u=t(a);if(u&&typeof u.catch=="function")u.catch(c=>{a.destroy(c)}),u=null;else if(r.enablePipelining&&u)return wv.from({writable:a,readable:u});return a}};function Ev(e,t){process.nextTick(t,e)}});var Ye=L((NN,Sp)=>{"use strict";Sp.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",DATE_FORMAT_SIMPLE:"HH:MM:ss.l",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}});var li=L((DN,xp)=>{"use strict";xp.exports=_v;var{LEVELS:Ep,LEVEL_NAMES:_p}=Ye();function _v(e,t,r){let n=e?t||Ep:Object.assign({},Ep,t),i=e?r||_p:Object.assign({},_p,r);return function(o){let s="default";return Number.isInteger(+o)?s=Object.prototype.hasOwnProperty.call(n,o)?o:s:s=Object.prototype.hasOwnProperty.call(i,o.toLowerCase())?i[o.toLowerCase()]:s,[n[s],s]}}});var sa=L((PN,kp)=>{"use strict";var Xe=e=>e,ra={default:Xe,60:Xe,50:Xe,40:Xe,30:Xe,20:Xe,10:Xe,message:Xe,greyMessage:Xe},{createColors:Tp}=Fo(),xv=li(),Br=Tp({useColor:!0}),{white:na,bgRed:Tv,red:Av,yellow:kv,green:Rv,blue:vv,gray:ia,cyan:Ap}=Br,ui={default:na,60:Tv,50:Av,40:kv,30:Rv,20:vv,10:ia,message:Ap,greyMessage:ia};function Lv(e){return e.reduce(function(t,[r,n]){return t[r]=typeof Br[n]=="function"?Br[n]:na,t},{default:na,message:Ap,greyMessage:ia})}function oa(e){return function(t,r,{customLevels:n,customLevelNames:i}={}){let[o,s]=xv(e,n,i)(t);return Object.prototype.hasOwnProperty.call(r,s)?r[s](o):r.default(o)}}function Cv(e){let t=oa(e),r=function(n,i){return t(n,ra,i)};return r.message=ra.message,r.greyMessage=ra.greyMessage,r.colors=Tp({useColor:!1}),r}function Iv(e){let t=oa(e),r=function(n,i){return t(n,ui,i)};return r.message=ui.message,r.greyMessage=ui.greyMessage,r.colors=Br,r}function Ov(e,t){let r=Lv(e),n=t?r:Object.assign({},ui,r),i=oa(t),o=function(s,a){return i(s,n,a)};return o.colors=Br,o.message=o.message||n.message,o.greyMessage=o.greyMessage||n.greyMessage,o}kp.exports=function(t=!1,r,n){return t&&r!==void 0?Ov(r,n):t?Iv(n):Cv(n)}});var aa=L((qN,Rp)=>{"use strict";Rp.exports=function(){}});var Lp=L((BN,vp)=>{"use strict";vp.exports=Dv;var{isMainThread:Mv}=H("worker_threads"),Nv=co(),ci=aa();function Dv(e){let t=new Nv(e);return t.on("error",r),!process.env.NODE_V8_COVERAGE&&!e.sync&&Mv&&Pv(t),t;function r(n){if(n.code==="EPIPE"){t.write=ci,t.end=ci,t.flushSync=ci,t.destroy=ci;return}t.removeListener("error",r)}}function Pv(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=pn();t.register(e,qv),e.on("close",function(){t.unregister(e)})}}function qv(e,t){e.destroyed||(t==="beforeExit"?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}});var fi=L((FN,Cp)=>{"use strict";Cp.exports=Bv;function Bv(e){return e instanceof Date&&!Number.isNaN(e.getTime())}});var la=L((jN,Ip)=>{"use strict";Ip.exports=jv;var Fv=fi();function jv(e){let t=new Date(e);return Fv(t)||(t=new Date(+e)),t}});var di=L(($N,Op)=>{"use strict";Op.exports=$v;function $v(e){let t=[],r=!1,n="";for(let i=0;i<e.length;i++){let o=e.charAt(i);if(o==="\\"){r=!0;continue}if(r){r=!1,n+=o;continue}if(o==="."){t.push(n),n="";continue}n+=o}return n.length&&t.push(n),t}});var tr=L((UN,Mp)=>{"use strict";Mp.exports=Wv;var Uv=di();function Wv(e,t){let r=Array.isArray(t)?t:Uv(t);for(let n of r){if(!Object.prototype.hasOwnProperty.call(e,n))return;e=e[n]}return e}});var ua=L((WN,Np)=>{"use strict";Np.exports=Hv;var zv=tr(),Vv=di();function Hv(e,t){let r=Vv(t),n=r.pop();e=zv(e,r),e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]}});var Vp={};yl(Vp,{copyStrict:()=>AL,createCopier:()=>ma,createStrictCopier:()=>zp,default:()=>kL});function Xv(){return new Yv}function Jv(){return new WeakMap}function da(e){if(!e)return ca(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:ca(e);if(t&&~Gv.call(t).indexOf("[native code]"))try{return new t}catch{}return ca(e)}function Zv(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function eL(e){return e.flags}function Dp(e){var t=Kv.call(e);return t.substring(8,t.length-1)}function rL(e){return e[Symbol.toStringTag]||Dp(e)}function aL(e){return Pp(e).concat(ha(e))}function pi(e,t,r){for(var n=lL(e),i=0,o=n.length,s=void 0,a=void 0;i<o;++i)if(s=n[i],!(s==="callee"||s==="caller")){if(a=oL(e,s),!a){t[s]=r.copier(e[s],r);continue}!a.get&&!a.set&&(a.value=r.copier(a.value,r));try{iL(t,s,a)}catch{t[s]=a.value}}return t}function uL(e,t){var r=new t.Constructor;t.cache.set(e,r);for(var n=0,i=e.length;n<i;++n)r[n]=t.copier(e[n],t);return r}function cL(e,t){var r=new t.Constructor;return t.cache.set(e,r),pi(e,r,t)}function jp(e,t){return e.slice(0)}function fL(e,t){return e.slice(0,e.size,e.type)}function dL(e,t){return new t.Constructor(jp(e.buffer))}function hL(e,t){return new t.Constructor(e.getTime())}function $p(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach(function(n,i){r.set(i,t.copier(n,t))}),r}function pL(e,t){return pi(e,$p(e,t),t)}function mL(e,t){var r=da(t.prototype);t.cache.set(e,r);for(var n in e)Bp.call(e,n)&&(r[n]=t.copier(e[n],t));return r}function gL(e,t){var r=da(t.prototype);t.cache.set(e,r);for(var n in e)Bp.call(e,n)&&(r[n]=t.copier(e[n],t));for(var i=ha(e),o=0,s=i.length,a=void 0;o<s;++o)a=i[o],sL.call(e,a)&&(r[a]=t.copier(e[a],t));return r}function bL(e,t){var r=da(t.prototype);return t.cache.set(e,r),pi(e,r,t)}function fa(e,t){return new t.Constructor(e.valueOf())}function wL(e,t){var r=new t.Constructor(e.source,tL(e));return r.lastIndex=e.lastIndex,r}function hi(e,t){return e}function Up(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach(function(n){r.add(t.copier(n,t))}),r}function SL(e,t){return pi(e,Up(e,t),t)}function TL(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:fa,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:fa,Object:e.object,Promise:hi,RegExp:e.regExp,Set:e.set,String:fa,WeakMap:hi,WeakSet:hi,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}function ma(e){var t=pa({},Wp,e),r=TL(t),n=r.Array,i=r.Object;function o(s,a){if(a.prototype=a.Constructor=void 0,!s||typeof s!="object")return s;if(a.cache.has(s))return a.cache.get(s);if(a.prototype=_L(s),a.Constructor=a.prototype&&a.prototype.constructor,!a.Constructor||a.Constructor===Object)return i(s,a);if(EL(s))return n(s,a);var l=r[nL(s)];return l?l(s,a):typeof s.then=="function"?s:i(s,a)}return function(a){return o(a,{Constructor:void 0,cache:Qv(),copier:o,prototype:void 0})}}function zp(e){return ma(pa({},xL,e))}var Gv,ca,Kv,Yv,Qv,tL,nL,iL,oL,Pp,ha,qp,Bp,sL,Fp,lL,yL,EL,pa,_L,Wp,xL,AL,kL,Hp=Xg(()=>{Gv=Function.prototype.toString,ca=Object.create,Kv=Object.prototype.toString,Yv=(function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(t){return!!~this._keys.indexOf(t)},e.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},e.prototype.set=function(t,r){this._keys.push(t),this._values.push(r)},e})();Qv=typeof WeakMap<"u"?Jv:Xv;tL=/test/g.flags==="g"?eL:Zv;nL=typeof Symbol<"u"?rL:Dp,iL=Object.defineProperty,oL=Object.getOwnPropertyDescriptor,Pp=Object.getOwnPropertyNames,ha=Object.getOwnPropertySymbols,qp=Object.prototype,Bp=qp.hasOwnProperty,sL=qp.propertyIsEnumerable,Fp=typeof ha=="function";lL=Fp?aL:Pp;yL=Fp?gL:mL;EL=Array.isArray,pa=Object.assign,_L=Object.getPrototypeOf||(function(e){return e.__proto__}),Wp={array:uL,arrayBuffer:jp,blob:fL,dataView:dL,date:hL,error:hi,map:$p,object:yL,regExp:wL,set:Up},xL=pa({},Wp,{array:cL,map:pL,object:bL,set:SL});AL=zp({}),kL=ma({})});var ga=L((zN,Gp)=>{"use strict";Gp.exports=CL;var{createCopier:RL}=(Hp(),Jg(Vp)),vL=RL({}),LL=ua();function CL({log:e,context:t}){let{ignoreKeys:r,includeKeys:n}=t,i=vL(e);if(n){let o={};return n.forEach(s=>{o[s]=i[s]}),o}return r.forEach(o=>{LL(i,o)}),i}});var Yp=L((ya,Kp)=>{"use strict";function rr(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rr=function(r){return typeof r}:rr=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rr(e)}(function(e){var t=arguments,r=(function(){var l=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g;return function(d,h,f,p){if(t.length===1&&a(d)==="string"&&!/\d/.test(d)&&(h=d,d=void 0),d=d||d===0?d:new Date,d instanceof Date||(d=new Date(d)),isNaN(d))throw TypeError("Invalid date");h=String(r.masks[h]||h||r.masks.default);var m=h.slice(0,4);(m==="UTC:"||m==="GMT:")&&(h=h.slice(4),f=!0,m==="GMT:"&&(p=!0));var w=function(){return f?"getUTC":"get"},y=function(){return d[w()+"Date"]()},x=function(){return d[w()+"Day"]()},E=function(){return d[w()+"Month"]()},T=function(){return d[w()+"FullYear"]()},R=function(){return d[w()+"Hours"]()},S=function(){return d[w()+"Minutes"]()},C=function(){return d[w()+"Seconds"]()},O=function(){return d[w()+"Milliseconds"]()},v=function(){return f?0:d.getTimezoneOffset()},N=function(){return o(d)},W=function(){return s(d)},D={d:function(){return y()},dd:function(){return n(y())},ddd:function(){return r.i18n.dayNames[x()]},DDD:function(){return i({y:T(),m:E(),d:y(),_:w(),dayName:r.i18n.dayNames[x()],short:!0})},dddd:function(){return r.i18n.dayNames[x()+7]},DDDD:function(){return i({y:T(),m:E(),d:y(),_:w(),dayName:r.i18n.dayNames[x()+7]})},m:function(){return E()+1},mm:function(){return n(E()+1)},mmm:function(){return r.i18n.monthNames[E()]},mmmm:function(){return r.i18n.monthNames[E()+12]},yy:function(){return String(T()).slice(2)},yyyy:function(){return n(T(),4)},h:function(){return R()%12||12},hh:function(){return n(R()%12||12)},H:function(){return R()},HH:function(){return n(R())},M:function(){return S()},MM:function(){return n(S())},s:function(){return C()},ss:function(){return n(C())},l:function(){return n(O(),3)},L:function(){return n(Math.floor(O()/10))},t:function(){return R()<12?r.i18n.timeNames[0]:r.i18n.timeNames[1]},tt:function(){return R()<12?r.i18n.timeNames[2]:r.i18n.timeNames[3]},T:function(){return R()<12?r.i18n.timeNames[4]:r.i18n.timeNames[5]},TT:function(){return R()<12?r.i18n.timeNames[6]:r.i18n.timeNames[7]},Z:function(){return p?"GMT":f?"UTC":(String(d).match(u)||[""]).pop().replace(c,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(v()>0?"-":"+")+n(Math.floor(Math.abs(v())/60)*100+Math.abs(v())%60,4)},p:function(){return(v()>0?"-":"+")+n(Math.floor(Math.abs(v())/60),2)+":"+n(Math.floor(Math.abs(v())%60),2)},S:function(){return["th","st","nd","rd"][y()%10>3?0:(y()%100-y()%10!=10)*y()%10]},W:function(){return N()},WW:function(){return n(N())},N:function(){return W()}};return h.replace(l,function(_){return _ in D?D[_]():_.slice(1,_.length-1)})}})();r.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},r.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var n=function(u,c){for(u=String(u),c=c||2;u.length<c;)u="0"+u;return u},i=function(u){var c=u.y,d=u.m,h=u.d,f=u._,p=u.dayName,m=u.short,w=m===void 0?!1:m,y=new Date,x=new Date;x.setDate(x[f+"Date"]()-1);var E=new Date;E.setDate(E[f+"Date"]()+1);var T=function(){return y[f+"Date"]()},R=function(){return y[f+"Month"]()},S=function(){return y[f+"FullYear"]()},C=function(){return x[f+"Date"]()},O=function(){return x[f+"Month"]()},v=function(){return x[f+"FullYear"]()},N=function(){return E[f+"Date"]()},W=function(){return E[f+"Month"]()},D=function(){return E[f+"FullYear"]()};return S()===c&&R()===d&&T()===h?w?"Tdy":"Today":v()===c&&O()===d&&C()===h?w?"Ysd":"Yesterday":D()===c&&W()===d&&N()===h?w?"Tmw":"Tomorrow":p},o=function(u){var c=new Date(u.getFullYear(),u.getMonth(),u.getDate());c.setDate(c.getDate()-(c.getDay()+6)%7+3);var d=new Date(c.getFullYear(),0,4);d.setDate(d.getDate()-(d.getDay()+6)%7+3);var h=c.getTimezoneOffset()-d.getTimezoneOffset();c.setHours(c.getHours()-h);var f=(c-d)/(864e5*7);return 1+Math.floor(f)},s=function(u){var c=u.getDay();return c===0&&(c=7),c},a=function(u){return u===null?"null":u===void 0?"undefined":rr(u)!=="object"?rr(u):Array.isArray(u)?"array":{}.toString.call(u).slice(8,-1).toLowerCase()};typeof define=="function"&&define.amd?define(function(){return r}):(typeof ya>"u"?"undefined":rr(ya))==="object"?Kp.exports=r:e.dateFormat=r})(void 0)});var ba=L((VN,Xp)=>{"use strict";Xp.exports=DL;var{DATE_FORMAT:IL,DATE_FORMAT_SIMPLE:OL}=Ye(),Fr=Yp(),ML=la(),NL=fi();function DL(e,t=!1){if(t===!1)return e;let r=ML(e);if(!NL(r))return e;if(t===!0)return Fr(r,OL);let n=t.toUpperCase();if(n==="SYS:STANDARD")return Fr(r,IL);let i=n.substr(0,4);return i==="SYS:"||i==="UTC:"?i==="UTC:"?Fr(r,t):Fr(r,t.slice(4)):Fr(r,`UTC:${t}`)}});var wa=L((HN,Jp)=>{"use strict";Jp.exports=PL;function PL(e){return e?typeof e=="string"?e.split(",").reduce((t,r,n)=>{let[i,o=n]=r.split(":");return t[i.toLowerCase()]=o,t},{}):Object.prototype.toString.call(e)==="[object Object]"?Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{}):{}:{}}});var Sa=L((GN,Qp)=>{"use strict";Qp.exports=qL;function qL(e){return e?typeof e=="string"?e.split(",").reduce((t,r,n)=>{let[i,o=n]=r.split(":");return t[o]=i.toUpperCase(),t},{default:"USERLVL"}):Object.prototype.toString.call(e)==="[object Object]"?Object.keys(e).reduce((t,r)=>(t[e[r]]=r.toUpperCase(),t),{default:"USERLVL"}):{}:{}}});var Ea=L((KN,Zp)=>{"use strict";Zp.exports=FL;var BL=tr();function FL(e,t){return e=e.replace(/{if (.*?)}(.*?){end}/g,r),e=e.replace(/{if (.*?)}/g,""),e=e.replace(/{end}/g,""),e.replace(/\s+/g," ").trim();function r(n,i,o){let s=BL(t,i);return s&&o.includes(i)?o.replace(new RegExp("{"+i+"}","g"),s):""}}});var mi=L((YN,em)=>{"use strict";em.exports=jL;function jL(e){return Object.prototype.toString.apply(e)==="[object Object]"}});var jr=L((XN,tm)=>{"use strict";tm.exports=$L;function $L({input:e,ident:t=" ",eol:r=`
26
- `}){let n=e.split(/\r?\n/);for(let i=1;i<n.length;i+=1)n[i]=t+n[i];return n.join(r)}});var om=L((JN,im)=>{"use strict";im.exports=VL;var{LEVEL_NAMES:rm}=Ye(),nm=sa(),UL=Sa(),WL=wa(),zL=li();function VL(e){let t=e.crlf?`\r
24
+ `),P=o_.bind(null,{[Ic]:"",[Oc]:s,[Nc]:D,[Mc]:Po,[qo]:v,[Dc]:N}),X="";d!==null&&(h===void 0?X=P(d):X=P(Object.assign({},d,{name:h})));let ne=a instanceof Function?a:a?$c:k_,ye=ne().indexOf(":")+1;if(x&&!p)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(w&&typeof w!="function")throw Error(`Unknown mixin type "${typeof w}" - expected "function"`);if(O&&typeof O!="string")throw Error(`Unknown msgPrefix type "${typeof O}" - expected "string"`);ZE(f,p,x);let be=Fc(p,x);typeof n.emit=="function"&&n.emit("message",{code:"PINO_CONFIG",config:{levels:be,messageKey:l,errorKey:u}}),r_(m);let g=t_(m);return Object.assign(t,{levels:be,[S_]:g,[E_]:x,[d_]:n,[c_]:ne,[f_]:ye,[Mc]:Po,[qo]:v,[Nc]:D,[p_]:q,[m_]:_,[g_]:l,[y_]:u,[b_]:c,[x_]:c?`,${JSON.stringify(c)}:{`:"",[Oc]:s,[w_]:w,[T_]:y,[Ic]:X,[Dc]:N,[__]:T,silent:a_,onChild:C,[A_]:O}),Object.setPrototypeOf(t,JE()),e_(t),t[h_](f),t}xe.exports=Bo;xe.exports.destination=(e=process.stdout.fd)=>typeof e=="object"?(e.dest=Cc(e.dest||process.stdout.fd),Lc(e)):Lc({dest:Cc(e),minLength:0});xe.exports.transport=So();xe.exports.multistream=vc();xe.exports.levels=Fc();xe.exports.stdSerializers=O_;xe.exports.stdTimeFunctions=Object.assign({},qc);xe.exports.symbols=Bc;xe.exports.version=l_;xe.exports.default=Bo;xe.exports.pino=Bo});var jo=L(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});var M_=H("tty");function N_(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var Fo=N_(M_),{env:Ze={},argv:zc=[],platform:D_=""}=typeof process>"u"?{}:process,P_="NO_COLOR"in Ze||zc.includes("--no-color"),q_="FORCE_COLOR"in Ze||zc.includes("--color"),B_=D_==="win32",Vc=Ze.TERM==="dumb",F_=Fo&&Fo.isatty&&Fo.isatty(1)&&Ze.TERM&&!Vc,j_="CI"in Ze&&("GITHUB_ACTIONS"in Ze||"GITLAB_CI"in Ze||"CIRCLECI"in Ze),Hc=!P_&&(q_||B_&&!Vc||F_||j_),Gc=(e,t,r,n,i=t.substring(0,e)+n,o=t.substring(e+r.length),s=o.indexOf(r))=>i+(s<0?o:Gc(s,o,r,n)),$_=(e,t,r,n,i)=>e<0?r+t+n:r+Gc(e,t,n,i)+n,U_=(e,t,r=e,n=e.length+1)=>i=>i||!(i===""||i===void 0)?$_((""+i).indexOf(t,n),i,e,t,r):"",U=(e,t,r)=>U_(`\x1B[${e}m`,`\x1B[${t}m`,r),Wc={reset:U(0,0),bold:U(1,22,"\x1B[22m\x1B[1m"),dim:U(2,22,"\x1B[22m\x1B[2m"),italic:U(3,23),underline:U(4,24),inverse:U(7,27),hidden:U(8,28),strikethrough:U(9,29),black:U(30,39),red:U(31,39),green:U(32,39),yellow:U(33,39),blue:U(34,39),magenta:U(35,39),cyan:U(36,39),white:U(37,39),gray:U(90,39),bgBlack:U(40,49),bgRed:U(41,49),bgGreen:U(42,49),bgYellow:U(43,49),bgBlue:U(44,49),bgMagenta:U(45,49),bgCyan:U(46,49),bgWhite:U(47,49),blackBright:U(90,39),redBright:U(91,39),greenBright:U(92,39),yellowBright:U(93,39),blueBright:U(94,39),magentaBright:U(95,39),cyanBright:U(96,39),whiteBright:U(97,39),bgBlackBright:U(100,49),bgRedBright:U(101,49),bgGreenBright:U(102,49),bgYellowBright:U(103,49),bgBlueBright:U(104,49),bgMagentaBright:U(105,49),bgCyanBright:U(106,49),bgWhiteBright:U(107,49)},Kc=({useColor:e=Hc}={})=>e?Wc:Object.keys(Wc).reduce((t,r)=>({...t,[r]:String}),{}),{reset:W_,bold:z_,dim:V_,italic:H_,underline:G_,inverse:K_,hidden:Y_,strikethrough:X_,black:J_,red:Q_,green:Z_,yellow:ex,blue:tx,magenta:rx,cyan:nx,white:ix,gray:ox,bgBlack:sx,bgRed:ax,bgGreen:lx,bgYellow:ux,bgBlue:cx,bgMagenta:fx,bgCyan:dx,bgWhite:hx,blackBright:px,redBright:mx,greenBright:gx,yellowBright:yx,blueBright:bx,magentaBright:wx,cyanBright:Sx,whiteBright:Ex,bgBlackBright:_x,bgRedBright:xx,bgGreenBright:Tx,bgYellowBright:Ax,bgBlueBright:kx,bgMagentaBright:Rx,bgCyanBright:vx,bgWhiteBright:Lx}=Kc();B.bgBlack=sx;B.bgBlackBright=_x;B.bgBlue=cx;B.bgBlueBright=kx;B.bgCyan=dx;B.bgCyanBright=vx;B.bgGreen=lx;B.bgGreenBright=Tx;B.bgMagenta=fx;B.bgMagentaBright=Rx;B.bgRed=ax;B.bgRedBright=xx;B.bgWhite=hx;B.bgWhiteBright=Lx;B.bgYellow=ux;B.bgYellowBright=Ax;B.black=J_;B.blackBright=px;B.blue=tx;B.blueBright=bx;B.bold=z_;B.createColors=Kc;B.cyan=nx;B.cyanBright=Sx;B.dim=V_;B.gray=ox;B.green=Z_;B.greenBright=gx;B.hidden=Y_;B.inverse=K_;B.isColorSupported=Hc;B.italic=H_;B.magenta=rx;B.magentaBright=wx;B.red=Q_;B.redBright=mx;B.reset=W_;B.strikethrough=X_;B.underline=G_;B.white=ix;B.whiteBright=Ex;B.yellow=ex;B.yellowBright=yx});var Jc=L((rN,Xc)=>{Xc.exports=Yc;function Yc(e,t){if(e&&t)return Yc(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var o=e.apply(this,n),s=n[n.length-1];return typeof o=="function"&&o!==s&&Object.keys(s).forEach(function(a){o[a]=s[a]}),o}}});var Uo=L((nN,$o)=>{var Qc=Jc();$o.exports=Qc(kn);$o.exports.strict=Qc(Zc);kn.proto=kn(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return kn(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Zc(this)},configurable:!0})});function kn(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Zc(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var rf=L((iN,tf)=>{var Cx=Uo(),Ix=function(){},Ox=global.Bare?queueMicrotask:process.nextTick.bind(process),Mx=function(e){return e.setHeader&&typeof e.abort=="function"},Nx=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},ef=function(e,t,r){if(typeof t=="function")return ef(e,null,t);t||(t={}),r=Cx(r||Ix);var n=e._writableState,i=e._readableState,o=t.readable||t.readable!==!1&&e.readable,s=t.writable||t.writable!==!1&&e.writable,a=!1,l=function(){e.writable||u()},u=function(){s=!1,o||r.call(e)},c=function(){o=!1,s||r.call(e)},d=function(w){r.call(e,w?new Error("exited with error code: "+w):null)},h=function(w){r.call(e,w)},f=function(){Ox(p)},p=function(){if(!a){if(o&&!(i&&i.ended&&!i.destroyed))return r.call(e,new Error("premature close"));if(s&&!(n&&n.ended&&!n.destroyed))return r.call(e,new Error("premature close"))}},m=function(){e.req.on("finish",u)};return Mx(e)?(e.on("complete",u),e.on("abort",f),e.req?m():e.on("request",m)):s&&!n&&(e.on("end",l),e.on("close",l)),Nx(e)&&e.on("exit",d),e.on("end",c),e.on("finish",u),t.error!==!1&&e.on("error",h),e.on("close",f),function(){a=!0,e.removeListener("complete",u),e.removeListener("abort",f),e.removeListener("request",m),e.req&&e.req.removeListener("finish",u),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",u),e.removeListener("exit",d),e.removeListener("end",c),e.removeListener("error",h),e.removeListener("close",f)}};tf.exports=ef});var sf=L((oN,of)=>{var Dx=Uo(),Px=rf(),Rn;try{Rn=H("fs")}catch{}var Sr=function(){},qx=typeof process>"u"?!1:/^v?\.0/.test(process.version),vn=function(e){return typeof e=="function"},Bx=function(e){return!qx||!Rn?!1:(e instanceof(Rn.ReadStream||Sr)||e instanceof(Rn.WriteStream||Sr))&&vn(e.close)},Fx=function(e){return e.setHeader&&vn(e.abort)},jx=function(e,t,r,n){n=Dx(n);var i=!1;e.on("close",function(){i=!0}),Px(e,{readable:t,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,Bx(e))return e.close(Sr);if(Fx(e))return e.abort();if(vn(e.destroy))return e.destroy();n(s||new Error("stream was destroyed"))}}},nf=function(e){e()},$x=function(e,t){return e.pipe(t)},Ux=function(){var e=Array.prototype.slice.call(arguments),t=vn(e[e.length-1]||Sr)&&e.pop()||Sr;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,n=e.map(function(i,o){var s=o<e.length-1,a=o>0;return jx(i,s,a,function(l){r||(r=l),l&&n.forEach(nf),!s&&(n.forEach(nf),t(r))})});return e.reduce($x)};of.exports=Ux});var te=L((sN,af)=>{"use strict";var Wo=class extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError(`Expected input to be an Array, got ${typeof t}`);let r="";for(let n=0;n<t.length;n++)r+=` ${t[n].stack}
25
+ `;super(r),this.name="AggregateError",this.errors=t}};af.exports={AggregateError:Wo,ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array}});var zo=L((aN,lf)=>{"use strict";lf.exports={format(e,...t){return e.replace(/%([sdifj])/g,function(...[r,n]){let i=t.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(e){switch(typeof e){case"string":if(e.includes("'"))if(e.includes('"')){if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}else return`"${e}"`;return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}});var ce=L((lN,ff)=>{"use strict";var{format:Wx,inspect:Ln}=zo(),{AggregateError:zx}=te(),Vx=globalThis.AggregateError||zx,Hx=Symbol("kIsNodeError"),Gx=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Kx=/^([A-Z][a-z0-9]*)+$/,Yx="__node_internal_",Cn={};function bt(e,t){if(!e)throw new Cn.ERR_INTERNAL_ASSERTION(t)}function uf(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Xx(e,t,r){if(typeof t=="function")return bt(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let n=(t.match(/%[dfijoOs]/g)||[]).length;return bt(n===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?t:Wx(t,...r)}function le(e,t,r){r||(r=Error);class n extends r{constructor(...o){super(Xx(e,t,o))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=e,n.prototype[Hx]=!0,Cn[e]=n}function cf(e){let t=Yx+e.name;return Object.defineProperty(e,"name",{value:t}),e}function Jx(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let r=new Vx([t,e],t.message);return r.code=t.code,r}return e||t}var Vo=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Cn.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};le("ERR_ASSERTION","%s",Error);le("ERR_INVALID_ARG_TYPE",(e,t,r)=>{bt(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";let i=[],o=[],s=[];for(let l of t)bt(typeof l=="string","All expected entries have to be of type string"),Gx.includes(l)?i.push(l.toLowerCase()):Kx.test(l)?o.push(l):(bt(l!=="object",'The value "object" should be written as "Object"'),s.push(l));if(o.length>0){let l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),o.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();n+=`one of type ${i.join(", ")}, or ${l}`}}(o.length>0||s.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();n+=`an instance of ${o.join(", ")}, or ${l}`}}s.length>0&&(n+=" or ")}switch(s.length){case 0:break;case 1:s[0].toLowerCase()!==s[0]&&(n+="an "),n+=`${s[0]}`;break;case 2:n+=`one of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();n+=`one of ${s.join(", ")}, or ${l}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)n+=`. Received an instance of ${r.constructor.name}`;else{let l=Ln(r,{depth:-1});n+=`. Received ${l}`}}else{let l=Ln(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),n+=`. Received type ${typeof r} (${l})`}return n},TypeError);le("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=Ln(t);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);le("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var n;let i=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${i}.`},TypeError);le("ERR_MISSING_ARGS",(...e)=>{bt(e.length>0,"At least one arg needs to be specified");let t,r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(n=>`"${n}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}break}return`${t} must be specified`},TypeError);le("ERR_OUT_OF_RANGE",(e,t,r)=>{bt(t,'Missing "range" argument');let n;if(Number.isInteger(r)&&Math.abs(r)>2**32)n=uf(String(r));else if(typeof r=="bigint"){n=String(r);let i=BigInt(2)**BigInt(32);(r>i||r<-i)&&(n=uf(n)),n+="n"}else n=Ln(r);return`The value of "${e}" is out of range. It must be ${t}. Received ${n}`},RangeError);le("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);le("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);le("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);le("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);le("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);le("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);le("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);le("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);le("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);le("ERR_STREAM_WRITE_AFTER_END","write after end",Error);le("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);ff.exports={AbortError:Vo,aggregateTwoErrors:cf(Jx),hideStackFrames:cf,codes:Cn}});var Ef=L((xr,_r)=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});var yf=new WeakMap,Ho=new WeakMap;function Z(e){let t=yf.get(e);return console.assert(t!=null,"'this' is expected an Event object, but got",e),t}function df(e){if(e.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener);return}e.event.cancelable&&(e.canceled=!0,typeof e.event.preventDefault=="function"&&e.event.preventDefault())}function $t(e,t){yf.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(t);for(let n=0;n<r.length;++n){let i=r[n];i in this||Object.defineProperty(this,i,bf(i))}}$t.prototype={get type(){return Z(this).event.type},get target(){return Z(this).eventTarget},get currentTarget(){return Z(this).currentTarget},composedPath(){let e=Z(this).currentTarget;return e==null?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return Z(this).eventPhase},stopPropagation(){let e=Z(this);e.stopped=!0,typeof e.event.stopPropagation=="function"&&e.event.stopPropagation()},stopImmediatePropagation(){let e=Z(this);e.stopped=!0,e.immediateStopped=!0,typeof e.event.stopImmediatePropagation=="function"&&e.event.stopImmediatePropagation()},get bubbles(){return!!Z(this).event.bubbles},get cancelable(){return!!Z(this).event.cancelable},preventDefault(){df(Z(this))},get defaultPrevented(){return Z(this).canceled},get composed(){return!!Z(this).event.composed},get timeStamp(){return Z(this).timeStamp},get srcElement(){return Z(this).eventTarget},get cancelBubble(){return Z(this).stopped},set cancelBubble(e){if(!e)return;let t=Z(this);t.stopped=!0,typeof t.event.cancelBubble=="boolean"&&(t.event.cancelBubble=!0)},get returnValue(){return!Z(this).canceled},set returnValue(e){e||df(Z(this))},initEvent(){}};Object.defineProperty($t.prototype,"constructor",{value:$t,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf($t.prototype,window.Event.prototype),Ho.set(window.Event.prototype,$t));function bf(e){return{get(){return Z(this).event[e]},set(t){Z(this).event[e]=t},configurable:!0,enumerable:!0}}function Qx(e){return{value(){let t=Z(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function Zx(e,t){let r=Object.keys(t);if(r.length===0)return e;function n(i,o){e.call(this,i,o)}n.prototype=Object.create(e.prototype,{constructor:{value:n,configurable:!0,writable:!0}});for(let i=0;i<r.length;++i){let o=r[i];if(!(o in e.prototype)){let a=typeof Object.getOwnPropertyDescriptor(t,o).value=="function";Object.defineProperty(n.prototype,o,a?Qx(o):bf(o))}}return n}function wf(e){if(e==null||e===Object.prototype)return $t;let t=Ho.get(e);return t==null&&(t=Zx(wf(Object.getPrototypeOf(e)),e),Ho.set(e,t)),t}function eT(e,t){let r=wf(Object.getPrototypeOf(t));return new r(e,t)}function tT(e){return Z(e).immediateStopped}function rT(e,t){Z(e).eventPhase=t}function nT(e,t){Z(e).currentTarget=t}function hf(e,t){Z(e).passiveListener=t}var Sf=new WeakMap,pf=1,mf=2,In=3;function On(e){return e!==null&&typeof e=="object"}function Er(e){let t=Sf.get(e);if(t==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return t}function iT(e){return{get(){let r=Er(this).get(e);for(;r!=null;){if(r.listenerType===In)return r.listener;r=r.next}return null},set(t){typeof t!="function"&&!On(t)&&(t=null);let r=Er(this),n=null,i=r.get(e);for(;i!=null;)i.listenerType===In?n!==null?n.next=i.next:i.next!==null?r.set(e,i.next):r.delete(e):n=i,i=i.next;if(t!==null){let o={listener:t,listenerType:In,passive:!1,once:!1,next:null};n===null?r.set(e,o):n.next=o}},configurable:!0,enumerable:!0}}function Go(e,t){Object.defineProperty(e,`on${t}`,iT(t))}function gf(e){function t(){Le.call(this)}t.prototype=Object.create(Le.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let r=0;r<e.length;++r)Go(t.prototype,e[r]);return t}function Le(){if(this instanceof Le){Sf.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return gf(arguments[0]);if(arguments.length>0){let e=new Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return gf(e)}throw new TypeError("Cannot call a class as a function")}Le.prototype={addEventListener(e,t,r){if(t==null)return;if(typeof t!="function"&&!On(t))throw new TypeError("'listener' should be a function or an object.");let n=Er(this),i=On(r),s=(i?!!r.capture:!!r)?pf:mf,a={listener:t,listenerType:s,passive:i&&!!r.passive,once:i&&!!r.once,next:null},l=n.get(e);if(l===void 0){n.set(e,a);return}let u=null;for(;l!=null;){if(l.listener===t&&l.listenerType===s)return;u=l,l=l.next}u.next=a},removeEventListener(e,t,r){if(t==null)return;let n=Er(this),o=(On(r)?!!r.capture:!!r)?pf:mf,s=null,a=n.get(e);for(;a!=null;){if(a.listener===t&&a.listenerType===o){s!==null?s.next=a.next:a.next!==null?n.set(e,a.next):n.delete(e);return}s=a,a=a.next}},dispatchEvent(e){if(e==null||typeof e.type!="string")throw new TypeError('"event.type" should be a string.');let t=Er(this),r=e.type,n=t.get(r);if(n==null)return!0;let i=eT(this,e),o=null;for(;n!=null;){if(n.once?o!==null?o.next=n.next:n.next!==null?t.set(r,n.next):t.delete(r):o=n,hf(i,n.passive?n.listener:null),typeof n.listener=="function")try{n.listener.call(this,i)}catch(s){typeof console<"u"&&typeof console.error=="function"&&console.error(s)}else n.listenerType!==In&&typeof n.listener.handleEvent=="function"&&n.listener.handleEvent(i);if(tT(i))break;n=n.next}return hf(i,null),rT(i,0),nT(i,null),!i.defaultPrevented}};Object.defineProperty(Le.prototype,"constructor",{value:Le,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(Le.prototype,window.EventTarget.prototype);xr.defineEventAttribute=Go;xr.EventTarget=Le;xr.default=Le;_r.exports=Le;_r.exports.EventTarget=_r.exports.default=Le;_r.exports.defineEventAttribute=Go});var Ut=L((Ar,Tr)=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var Ko=Ef(),et=class extends Ko.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let t=Mn.get(this);if(typeof t!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return t}};Ko.defineEventAttribute(et.prototype,"abort");function oT(){let e=Object.create(et.prototype);return Ko.EventTarget.call(e),Mn.set(e,!1),e}function sT(e){Mn.get(e)===!1&&(Mn.set(e,!0),e.dispatchEvent({type:"abort"}))}var Mn=new WeakMap;Object.defineProperties(et.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(et.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var tt=class{constructor(){xf.set(this,oT())}get signal(){return _f(this)}abort(){sT(_f(this))}},xf=new WeakMap;function _f(e){let t=xf.get(e);if(t==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${e===null?"null":typeof e}`);return t}Object.defineProperties(tt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(tt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Ar.AbortController=tt;Ar.AbortSignal=et;Ar.default=tt;Tr.exports=tt;Tr.exports.AbortController=Tr.exports.default=tt;Tr.exports.AbortSignal=et});var he=L((uN,Xo)=>{"use strict";var aT=H("buffer"),{format:lT,inspect:uT}=zo(),{codes:{ERR_INVALID_ARG_TYPE:Yo}}=ce(),{kResistStopPropagation:cT,AggregateError:fT,SymbolDispose:dT}=te(),hT=globalThis.AbortSignal||Ut().AbortSignal,pT=globalThis.AbortController||Ut().AbortController,mT=Object.getPrototypeOf(async function(){}).constructor,Tf=globalThis.Blob||aT.Blob,gT=typeof Tf<"u"?function(t){return t instanceof Tf}:function(t){return!1},Af=(e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new Yo(t,"AbortSignal",e)},yT=(e,t)=>{if(typeof e!="function")throw new Yo(t,"Function",e)};Xo.exports={AggregateError:fT,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}},promisify(e){return new Promise((t,r)=>{e((n,...i)=>n?r(n):t(...i))})},debuglog(){return function(){}},format:lT,inspect:uT,types:{isAsyncFunction(e){return e instanceof mT},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:gT,deprecate(e,t){return e},addAbortListener:H("events").addAbortListener||function(t,r){if(t===void 0)throw new Yo("signal","AbortSignal",t);Af(t,"signal"),yT(r,"listener");let n;return t.aborted?queueMicrotask(()=>r()):(t.addEventListener("abort",r,{__proto__:null,once:!0,[cT]:!0}),n=()=>{t.removeEventListener("abort",r)}),{__proto__:null,[dT](){var i;(i=n)===null||i===void 0||i()}}},AbortSignalAny:hT.any||function(t){if(t.length===1)return t[0];let r=new pT,n=()=>r.abort();return t.forEach(i=>{Af(i,"signals"),i.addEventListener("abort",n,{once:!0})}),r.signal.addEventListener("abort",()=>{t.forEach(i=>i.removeEventListener("abort",n))},{once:!0}),r.signal}};Xo.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var zt=L((cN,Df)=>{"use strict";var{ArrayIsArray:Qo,ArrayPrototypeIncludes:Lf,ArrayPrototypeJoin:Cf,ArrayPrototypeMap:bT,NumberIsInteger:Zo,NumberIsNaN:wT,NumberMAX_SAFE_INTEGER:ST,NumberMIN_SAFE_INTEGER:ET,NumberParseInt:_T,ObjectPrototypeHasOwnProperty:xT,RegExpPrototypeExec:If,String:TT,StringPrototypeToUpperCase:AT,StringPrototypeTrim:kT}=te(),{hideStackFrames:Te,codes:{ERR_SOCKET_BAD_PORT:RT,ERR_INVALID_ARG_TYPE:fe,ERR_INVALID_ARG_VALUE:Wt,ERR_OUT_OF_RANGE:wt,ERR_UNKNOWN_SIGNAL:kf}}=ce(),{normalizeEncoding:vT}=he(),{isAsyncFunction:LT,isArrayBufferView:CT}=he().types,Rf={};function IT(e){return e===(e|0)}function OT(e){return e===e>>>0}var MT=/^[0-7]+$/,NT="must be a 32-bit unsigned integer or an octal string";function DT(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(If(MT,e)===null)throw new Wt(t,e,NT);e=_T(e,8)}return Of(e,t),e}var PT=Te((e,t,r=ET,n=ST)=>{if(typeof e!="number")throw new fe(t,"number",e);if(!Zo(e))throw new wt(t,"an integer",e);if(e<r||e>n)throw new wt(t,`>= ${r} && <= ${n}`,e)}),qT=Te((e,t,r=-2147483648,n=2147483647)=>{if(typeof e!="number")throw new fe(t,"number",e);if(!Zo(e))throw new wt(t,"an integer",e);if(e<r||e>n)throw new wt(t,`>= ${r} && <= ${n}`,e)}),Of=Te((e,t,r=!1)=>{if(typeof e!="number")throw new fe(t,"number",e);if(!Zo(e))throw new wt(t,"an integer",e);let n=r?1:0,i=4294967295;if(e<n||e>i)throw new wt(t,`>= ${n} && <= ${i}`,e)});function es(e,t){if(typeof e!="string")throw new fe(t,"string",e)}function BT(e,t,r=void 0,n){if(typeof e!="number")throw new fe(t,"number",e);if(r!=null&&e<r||n!=null&&e>n||(r!=null||n!=null)&&wT(e))throw new wt(t,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,e)}var FT=Te((e,t,r)=>{if(!Lf(r,e)){let i="must be one of: "+Cf(bT(r,o=>typeof o=="string"?`'${o}'`:TT(o)),", ");throw new Wt(t,e,i)}});function Mf(e,t){if(typeof e!="boolean")throw new fe(t,"boolean",e)}function Jo(e,t,r){return e==null||!xT(e,t)?r:e[t]}var jT=Te((e,t,r=null)=>{let n=Jo(r,"allowArray",!1),i=Jo(r,"allowFunction",!1);if(!Jo(r,"nullable",!1)&&e===null||!n&&Qo(e)||typeof e!="object"&&(!i||typeof e!="function"))throw new fe(t,"Object",e)}),$T=Te((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new fe(t,"a dictionary",e)}),Nn=Te((e,t,r=0)=>{if(!Qo(e))throw new fe(t,"Array",e);if(e.length<r){let n=`must be longer than ${r}`;throw new Wt(t,e,n)}});function UT(e,t){Nn(e,t);for(let r=0;r<e.length;r++)es(e[r],`${t}[${r}]`)}function WT(e,t){Nn(e,t);for(let r=0;r<e.length;r++)Mf(e[r],`${t}[${r}]`)}function zT(e,t){Nn(e,t);for(let r=0;r<e.length;r++){let n=e[r],i=`${t}[${r}]`;if(n==null)throw new fe(i,"AbortSignal",n);Nf(n,i)}}function VT(e,t="signal"){if(es(e,t),Rf[e]===void 0)throw Rf[AT(e)]!==void 0?new kf(e+" (signals must use all capital letters)"):new kf(e)}var HT=Te((e,t="buffer")=>{if(!CT(e))throw new fe(t,["Buffer","TypedArray","DataView"],e)});function GT(e,t){let r=vT(t),n=e.length;if(r==="hex"&&n%2!==0)throw new Wt("encoding",t,`is invalid for data of length ${n}`)}function KT(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&kT(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new RT(t,e,r);return e|0}var Nf=Te((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new fe(t,"AbortSignal",e)}),YT=Te((e,t)=>{if(typeof e!="function")throw new fe(t,"Function",e)}),XT=Te((e,t)=>{if(typeof e!="function"||LT(e))throw new fe(t,"Function",e)}),JT=Te((e,t)=>{if(e!==void 0)throw new fe(t,"undefined",e)});function QT(e,t,r){if(!Lf(r,e))throw new fe(t,`('${Cf(r,"|")}')`,e)}var ZT=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function vf(e,t){if(typeof e>"u"||!If(ZT,e))throw new Wt(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function e0(e){if(typeof e=="string")return vf(e,"hints"),e;if(Qo(e)){let t=e.length,r="";if(t===0)return r;for(let n=0;n<t;n++){let i=e[n];vf(i,"hints"),r+=i,n!==t-1&&(r+=", ")}return r}throw new Wt("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}Df.exports={isInt32:IT,isUint32:OT,parseFileMode:DT,validateArray:Nn,validateStringArray:UT,validateBooleanArray:WT,validateAbortSignalArray:zT,validateBoolean:Mf,validateBuffer:HT,validateDictionary:$T,validateEncoding:GT,validateFunction:YT,validateInt32:qT,validateInteger:PT,validateNumber:BT,validateObject:jT,validateOneOf:FT,validatePlainFunction:XT,validatePort:KT,validateSignalName:VT,validateString:es,validateUint32:Of,validateUndefined:JT,validateUnion:QT,validateAbortSignal:Nf,validateLinkHeaderValue:e0}});var rt=L((fN,Pf)=>{Pf.exports=global.process});var Pe=L((dN,Jf)=>{"use strict";var{SymbolAsyncIterator:qf,SymbolIterator:Bf,SymbolFor:St}=te(),Ff=St("nodejs.stream.destroyed"),jf=St("nodejs.stream.errored"),ts=St("nodejs.stream.readable"),rs=St("nodejs.stream.writable"),$f=St("nodejs.stream.disturbed"),t0=St("nodejs.webstream.isClosedPromise"),r0=St("nodejs.webstream.controllerErrorFunction");function Dn(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function Pn(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function n0(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function De(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function Uf(e){return!!(e&&!De(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function Wf(e){return!!(e&&!De(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function zf(e){return!!(e&&!De(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function i0(e){return Uf(e)||Wf(e)||zf(e)}function o0(e,t){return e==null?!1:t===!0?typeof e[qf]=="function":t===!1?typeof e[Bf]=="function":typeof e[qf]=="function"||typeof e[Bf]=="function"}function qn(e){if(!De(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[Ff]||n!=null&&n.destroyed)}function Vf(e){if(!Pn(e))return null;if(e.writableEnded===!0)return!0;let t=e._writableState;return t!=null&&t.errored?!1:typeof t?.ended!="boolean"?null:t.ended}function s0(e,t){if(!Pn(e))return null;if(e.writableFinished===!0)return!0;let r=e._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function a0(e){if(!Dn(e))return null;if(e.readableEnded===!0)return!0;let t=e._readableState;return!t||t.errored?!1:typeof t?.ended!="boolean"?null:t.ended}function Hf(e,t){if(!Dn(e))return null;let r=e._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function Gf(e){return e&&e[ts]!=null?e[ts]:typeof e?.readable!="boolean"?null:qn(e)?!1:Dn(e)&&e.readable&&!Hf(e)}function Kf(e){return e&&e[rs]!=null?e[rs]:typeof e?.writable!="boolean"?null:qn(e)?!1:Pn(e)&&e.writable&&!Vf(e)}function l0(e,t){return De(e)?qn(e)?!0:!(t?.readable!==!1&&Gf(e)||t?.writable!==!1&&Kf(e)):null}function u0(e){var t,r;return De(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function c0(e){var t,r;return De(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function f0(e){if(!De(e))return null;if(typeof e.closed=="boolean")return e.closed;let t=e._writableState,r=e._readableState;return typeof t?.closed=="boolean"||typeof r?.closed=="boolean"?t?.closed||r?.closed:typeof e._closed=="boolean"&&Yf(e)?e._closed:null}function Yf(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function Xf(e){return typeof e._sent100=="boolean"&&Yf(e)}function d0(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function h0(e){if(!De(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!n&&Xf(e)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===!1)}function p0(e){var t;return!!(e&&((t=e[$f])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function m0(e){var t,r,n,i,o,s,a,l,u,c;return!!(e&&((t=(r=(n=(i=(o=(s=e[jf])!==null&&s!==void 0?s:e.readableErrored)!==null&&o!==void 0?o:e.writableErrored)!==null&&i!==void 0?i:(a=e._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&n!==void 0?n:(l=e._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=e._readableState)===null||u===void 0?void 0:u.errored)!==null&&t!==void 0?t:!((c=e._writableState)===null||c===void 0)&&c.errored))}Jf.exports={isDestroyed:qn,kIsDestroyed:Ff,isDisturbed:p0,kIsDisturbed:$f,isErrored:m0,kIsErrored:jf,isReadable:Gf,kIsReadable:ts,kIsClosedPromise:t0,kControllerErrorFunction:r0,kIsWritable:rs,isClosed:f0,isDuplexNodeStream:n0,isFinished:l0,isIterable:o0,isReadableNodeStream:Dn,isReadableStream:Uf,isReadableEnded:a0,isReadableFinished:Hf,isReadableErrored:c0,isNodeStream:De,isWebStream:i0,isWritable:Kf,isWritableNodeStream:Pn,isWritableStream:Wf,isWritableEnded:Vf,isWritableFinished:s0,isWritableErrored:u0,isServerRequest:d0,isServerResponse:Xf,willEmitClose:h0,isTransformStream:zf}});var Ve=L((hN,as)=>{"use strict";var nt=rt(),{AbortError:sd,codes:g0}=ce(),{ERR_INVALID_ARG_TYPE:y0,ERR_STREAM_PREMATURE_CLOSE:Qf}=g0,{kEmptyObject:is,once:os}=he(),{validateAbortSignal:b0,validateFunction:w0,validateObject:S0,validateBoolean:E0}=zt(),{Promise:_0,PromisePrototypeThen:x0,SymbolDispose:ad}=te(),{isClosed:T0,isReadable:Zf,isReadableNodeStream:ns,isReadableStream:A0,isReadableFinished:ed,isReadableErrored:td,isWritable:rd,isWritableNodeStream:nd,isWritableStream:k0,isWritableFinished:id,isWritableErrored:od,isNodeStream:R0,willEmitClose:v0,kIsClosedPromise:L0}=Pe(),Vt;function C0(e){return e.setHeader&&typeof e.abort=="function"}var ss=()=>{};function ld(e,t,r){var n,i;if(arguments.length===2?(r=t,t=is):t==null?t=is:S0(t,"options"),w0(r,"callback"),b0(t.signal,"options.signal"),r=os(r),A0(e)||k0(e))return I0(e,t,r);if(!R0(e))throw new y0("stream",["ReadableStream","WritableStream","Stream"],e);let o=(n=t.readable)!==null&&n!==void 0?n:ns(e),s=(i=t.writable)!==null&&i!==void 0?i:nd(e),a=e._writableState,l=e._readableState,u=()=>{e.writable||h()},c=v0(e)&&ns(e)===o&&nd(e)===s,d=id(e,!1),h=()=>{d=!0,e.destroyed&&(c=!1),!(c&&(!e.readable||o))&&(!o||f)&&r.call(e)},f=ed(e,!1),p=()=>{f=!0,e.destroyed&&(c=!1),!(c&&(!e.writable||s))&&(!s||d)&&r.call(e)},m=R=>{r.call(e,R)},w=T0(e),y=()=>{w=!0;let R=od(e)||td(e);if(R&&typeof R!="boolean")return r.call(e,R);if(o&&!f&&ns(e,!0)&&!ed(e,!1))return r.call(e,new Qf);if(s&&!d&&!id(e,!1))return r.call(e,new Qf);r.call(e)},x=()=>{w=!0;let R=od(e)||td(e);if(R&&typeof R!="boolean")return r.call(e,R);r.call(e)},E=()=>{e.req.on("finish",h)};C0(e)?(e.on("complete",h),c||e.on("abort",y),e.req?E():e.on("request",E)):s&&!a&&(e.on("end",u),e.on("close",u)),!c&&typeof e.aborted=="boolean"&&e.on("aborted",y),e.on("end",p),e.on("finish",h),t.error!==!1&&e.on("error",m),e.on("close",y),w?nt.nextTick(y):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?c||nt.nextTick(x):(!o&&(!c||Zf(e))&&(d||rd(e)===!1)||!s&&(!c||rd(e))&&(f||Zf(e)===!1)||l&&e.req&&e.aborted)&&nt.nextTick(x);let T=()=>{r=ss,e.removeListener("aborted",y),e.removeListener("complete",h),e.removeListener("abort",y),e.removeListener("request",E),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",y)};if(t.signal&&!w){let R=()=>{let S=r;T(),S.call(e,new sd(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)nt.nextTick(R);else{Vt=Vt||he().addAbortListener;let S=Vt(t.signal,R),C=r;r=os((...O)=>{S[ad](),C.apply(e,O)})}}return T}function I0(e,t,r){let n=!1,i=ss;if(t.signal)if(i=()=>{n=!0,r.call(e,new sd(void 0,{cause:t.signal.reason}))},t.signal.aborted)nt.nextTick(i);else{Vt=Vt||he().addAbortListener;let s=Vt(t.signal,i),a=r;r=os((...l)=>{s[ad](),a.apply(e,l)})}let o=(...s)=>{n||nt.nextTick(()=>r.apply(e,s))};return x0(e[L0].promise,o,o),ss}function O0(e,t){var r;let n=!1;return t===null&&(t=is),(r=t)!==null&&r!==void 0&&r.cleanup&&(E0(t.cleanup,"cleanup"),n=t.cleanup),new _0((i,o)=>{let s=ld(e,t,a=>{n&&s(),a?o(a):i()})})}as.exports=ld;as.exports.finished=O0});var Et=L((pN,gd)=>{"use strict";var qe=rt(),{aggregateTwoErrors:M0,codes:{ERR_MULTIPLE_CALLBACK:N0},AbortError:D0}=ce(),{Symbol:fd}=te(),{kIsDestroyed:P0,isDestroyed:q0,isFinished:B0,isServerRequest:F0}=Pe(),dd=fd("kDestroy"),ls=fd("kConstruct");function hd(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function j0(e,t){let r=this._readableState,n=this._writableState,i=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(hd(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),i.constructed?ud(this,e,t):this.once(dd,function(o){ud(this,M0(o,e),t)}),this)}function ud(e,t,r){let n=!1;function i(o){if(n)return;n=!0;let s=e._readableState,a=e._writableState;hd(o,a,s),a&&(a.closed=!0),s&&(s.closed=!0),typeof r=="function"&&r(o),o?qe.nextTick($0,e,o):qe.nextTick(pd,e)}try{e._destroy(t||null,i)}catch(o){i(o)}}function $0(e,t){us(e,t),pd(e)}function pd(e){let t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function us(e,t){let r=e._readableState,n=e._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function U0(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function cs(e,t,r){let n=e._readableState,i=e._writableState;if(i!=null&&i.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||i!=null&&i.autoDestroy?e.destroy(t):t&&(t.stack,i&&!i.errored&&(i.errored=t),n&&!n.errored&&(n.errored=t),r?qe.nextTick(us,e,t):us(e,t))}function W0(e,t){if(typeof e._construct!="function")return;let r=e._readableState,n=e._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),e.once(ls,t),!(e.listenerCount(ls)>1)&&qe.nextTick(z0,e)}function z0(e){let t=!1;function r(n){if(t){cs(e,n??new N0);return}t=!0;let i=e._readableState,o=e._writableState,s=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),s.destroyed?e.emit(dd,n):n?cs(e,n,!0):qe.nextTick(V0,e)}try{e._construct(n=>{qe.nextTick(r,n)})}catch(n){qe.nextTick(r,n)}}function V0(e){e.emit(ls)}function cd(e){return e?.setHeader&&typeof e.abort=="function"}function md(e){e.emit("close")}function H0(e,t){e.emit("error",t),qe.nextTick(md,e)}function G0(e,t){!e||q0(e)||(!t&&!B0(e)&&(t=new D0),F0(e)?(e.socket=null,e.destroy(t)):cd(e)?e.abort():cd(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?qe.nextTick(H0,e,t):qe.nextTick(md,e),e.destroyed||(e[P0]=!0))}gd.exports={construct:W0,destroyer:G0,destroy:j0,undestroy:U0,errorOrDestroy:cs}});var jn=L((mN,bd)=>{"use strict";var{ArrayIsArray:K0,ObjectSetPrototypeOf:yd}=te(),{EventEmitter:Bn}=H("events");function Fn(e){Bn.call(this,e)}yd(Fn.prototype,Bn.prototype);yd(Fn,Bn);Fn.prototype.pipe=function(e,t){let r=this;function n(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",s),r.on("close",a));let o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function l(c){u(),Bn.listenerCount(this,"error")===0&&this.emit("error",c)}fs(r,"error",l),fs(e,"error",l);function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",a),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e};function fs(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):K0(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}bd.exports={Stream:Fn,prependListener:fs}});var kr=L((gN,$n)=>{"use strict";var{SymbolDispose:Y0}=te(),{AbortError:wd,codes:X0}=ce(),{isNodeStream:Sd,isWebStream:J0,kControllerErrorFunction:Q0}=Pe(),Z0=Ve(),{ERR_INVALID_ARG_TYPE:Ed}=X0,ds,eA=(e,t)=>{if(typeof e!="object"||!("aborted"in e))throw new Ed(t,"AbortSignal",e)};$n.exports.addAbortSignal=function(t,r){if(eA(t,"signal"),!Sd(r)&&!J0(r))throw new Ed("stream",["ReadableStream","WritableStream","Stream"],r);return $n.exports.addAbortSignalNoValidate(t,r)};$n.exports.addAbortSignalNoValidate=function(e,t){if(typeof e!="object"||!("aborted"in e))return t;let r=Sd(t)?()=>{t.destroy(new wd(void 0,{cause:e.reason}))}:()=>{t[Q0](new wd(void 0,{cause:e.reason}))};if(e.aborted)r();else{ds=ds||he().addAbortListener;let n=ds(e,r);Z0(t,n[Y0])}return t}});var Td=L((bN,xd)=>{"use strict";var{StringPrototypeSlice:_d,SymbolIterator:tA,TypedArrayPrototypeSet:Un,Uint8Array:rA}=te(),{Buffer:hs}=H("buffer"),{inspect:nA}=he();xd.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){let r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){let r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=t+r.data;return n}concat(t){if(this.length===0)return hs.alloc(0);let r=hs.allocUnsafe(t>>>0),n=this.head,i=0;for(;n;)Un(r,n.data,i),i+=n.data.length,n=n.next;return r}consume(t,r){let n=this.head.data;if(t<n.length){let i=n.slice(0,t);return this.head.data=n.slice(t),i}return t===n.length?this.shift():r?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[tA](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let r="",n=this.head,i=0;do{let o=n.data;if(t>o.length)r+=o,t-=o.length;else{t===o.length?(r+=o,++i,n.next?this.head=n.next:this.head=this.tail=null):(r+=_d(o,0,t),this.head=n,n.data=_d(o,t));break}++i}while((n=n.next)!==null);return this.length-=i,r}_getBuffer(t){let r=hs.allocUnsafe(t),n=t,i=this.head,o=0;do{let s=i.data;if(t>s.length)Un(r,s,n-t),t-=s.length;else{t===s.length?(Un(r,s,n-t),++o,i.next?this.head=i.next:this.head=this.tail=null):(Un(r,new rA(s.buffer,s.byteOffset,t),n-t),this.head=i,i.data=s.slice(t));break}++o}while((i=i.next)!==null);return this.length-=o,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return nA(this,{...r,depth:0,customInspect:!1})}}});var Rr=L((wN,vd)=>{"use strict";var{MathFloor:iA,NumberIsInteger:oA}=te(),{validateInteger:sA}=zt(),{ERR_INVALID_ARG_VALUE:aA}=ce().codes,Ad=16*1024,kd=16;function lA(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Rd(e){return e?kd:Ad}function uA(e,t){sA(t,"value",0),e?kd=t:Ad=t}function cA(e,t,r,n){let i=lA(t,n,r);if(i!=null){if(!oA(i)||i<0){let o=n?`options.${r}`:"options.highWaterMark";throw new aA(o,i)}return iA(i)}return Rd(e.objectMode)}vd.exports={getHighWaterMark:cA,getDefaultHighWaterMark:Rd,setDefaultHighWaterMark:uA}});var Id=L(Cd=>{"use strict";var ms=Zg().Buffer,Ld=ms.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function fA(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function dA(e){var t=fA(e);if(typeof t!="string"&&(ms.isEncoding===Ld||!Ld(e)))throw new Error("Unknown encoding: "+e);return t||e}Cd.StringDecoder=vr;function vr(e){this.encoding=dA(e);var t;switch(this.encoding){case"utf16le":this.text=bA,this.end=wA,t=4;break;case"utf8":this.fillLast=mA,t=4;break;case"base64":this.text=SA,this.end=EA,t=3;break;default:this.write=_A,this.end=xA;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ms.allocUnsafe(t)}vr.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};vr.prototype.end=yA;vr.prototype.text=gA;vr.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function ps(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function hA(e,t,r){var n=t.length-1;if(n<r)return 0;var i=ps(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=ps(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=ps(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function pA(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function mA(e){var t=this.lastTotal-this.lastNeed,r=pA(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function gA(e,t){var r=hA(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function yA(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function bA(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function wA(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function SA(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function EA(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function _A(e){return e.toString(this.encoding)}function xA(e){return e&&e.length?this.write(e):""}});var gs=L((EN,Dd)=>{"use strict";var Od=rt(),{PromisePrototypeThen:TA,SymbolAsyncIterator:Md,SymbolIterator:Nd}=te(),{Buffer:AA}=H("buffer"),{ERR_INVALID_ARG_TYPE:kA,ERR_STREAM_NULL_VALUES:RA}=ce().codes;function vA(e,t,r){let n;if(typeof t=="string"||t instanceof AA)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let i;if(t&&t[Md])i=!0,n=t[Md]();else if(t&&t[Nd])i=!1,n=t[Nd]();else throw new kA("iterable",["Iterable"],t);let o=new e({objectMode:!0,highWaterMark:1,...r}),s=!1;o._read=function(){s||(s=!0,l())},o._destroy=function(u,c){TA(a(u),()=>Od.nextTick(c,u),d=>Od.nextTick(c,d||u))};async function a(u){let c=u!=null,d=typeof n.throw=="function";if(c&&d){let{value:h,done:f}=await n.throw(u);if(await h,f)return}if(typeof n.return=="function"){let{value:h}=await n.return();await h}}async function l(){for(;;){try{let{value:u,done:c}=i?await n.next():n.next();if(c)o.push(null);else{let d=u&&typeof u.then=="function"?await u:u;if(d===null)throw s=!1,new RA;if(o.push(d))continue;s=!1}}catch(u){o.destroy(u)}break}}return o}Dd.exports=vA});var Cr=L((_N,Zd)=>{"use strict";var Ce=rt(),{ArrayPrototypeIndexOf:LA,NumberIsInteger:CA,NumberIsNaN:IA,NumberParseInt:OA,ObjectDefineProperties:Ts,ObjectKeys:MA,ObjectSetPrototypeOf:Bd,Promise:Fd,SafeSet:NA,SymbolAsyncDispose:DA,SymbolAsyncIterator:PA,Symbol:qA}=te();Zd.exports=z;z.ReadableState=Hn;var{EventEmitter:BA}=H("events"),{Stream:it,prependListener:FA}=jn(),{Buffer:ys}=H("buffer"),{addAbortSignal:jA}=kr(),jd=Ve(),G=he().debuglog("stream",e=>{G=e}),$A=Td(),Kt=Et(),{getHighWaterMark:UA,getDefaultHighWaterMark:WA}=Rr(),{aggregateTwoErrors:Pd,codes:{ERR_INVALID_ARG_TYPE:zA,ERR_METHOD_NOT_IMPLEMENTED:VA,ERR_OUT_OF_RANGE:HA,ERR_STREAM_PUSH_AFTER_EOF:GA,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:KA},AbortError:YA}=ce(),{validateObject:XA}=zt(),_t=qA("kPaused"),{StringDecoder:$d}=Id(),JA=gs();Bd(z.prototype,it.prototype);Bd(z,it);var bs=()=>{},{errorOrDestroy:Ht}=Kt,Gt=1,QA=2,Ud=4,Lr=8,Wd=16,Wn=32,zn=64,zd=128,ZA=256,ek=512,tk=1024,_s=2048,xs=4096,rk=8192,nk=16384,ik=32768,Vd=65536,ok=1<<17,sk=1<<18;function oe(e){return{enumerable:!1,get(){return(this.state&e)!==0},set(t){t?this.state|=e:this.state&=~e}}}Ts(Hn.prototype,{objectMode:oe(Gt),ended:oe(QA),endEmitted:oe(Ud),reading:oe(Lr),constructed:oe(Wd),sync:oe(Wn),needReadable:oe(zn),emittedReadable:oe(zd),readableListening:oe(ZA),resumeScheduled:oe(ek),errorEmitted:oe(tk),emitClose:oe(_s),autoDestroy:oe(xs),destroyed:oe(rk),closed:oe(nk),closeEmitted:oe(ik),multiAwaitDrain:oe(Vd),readingMore:oe(ok),dataEmitted:oe(sk)});function Hn(e,t,r){typeof r!="boolean"&&(r=t instanceof Be()),this.state=_s|xs|Wd|Wn,e&&e.objectMode&&(this.state|=Gt),r&&e&&e.readableObjectMode&&(this.state|=Gt),this.highWaterMark=e?UA(this,e,"readableHighWaterMark",r):WA(!1),this.buffer=new $A,this.length=0,this.pipes=[],this.flowing=null,this[_t]=null,e&&e.emitClose===!1&&(this.state&=~_s),e&&e.autoDestroy===!1&&(this.state&=~xs),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new $d(e.encoding),this.encoding=e.encoding)}function z(e){if(!(this instanceof z))return new z(e);let t=this instanceof Be();this._readableState=new Hn(e,this,t),e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.construct=="function"&&(this._construct=e.construct),e.signal&&!t&&jA(e.signal,this)),it.call(this,e),Kt.construct(this,()=>{this._readableState.needReadable&&Vn(this,this._readableState)})}z.prototype.destroy=Kt.destroy;z.prototype._undestroy=Kt.undestroy;z.prototype._destroy=function(e,t){t(e)};z.prototype[BA.captureRejectionSymbol]=function(e){this.destroy(e)};z.prototype[DA]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new YA,this.destroy(e)),new Fd((t,r)=>jd(this,n=>n&&n!==e?r(n):t(null)))};z.prototype.push=function(e,t){return Hd(this,e,t,!1)};z.prototype.unshift=function(e,t){return Hd(this,e,t,!0)};function Hd(e,t,r,n){G("readableAddChunk",t);let i=e._readableState,o;if((i.state&Gt)===0&&(typeof t=="string"?(r=r||i.defaultEncoding,i.encoding!==r&&(n&&i.encoding?t=ys.from(t,r).toString(i.encoding):(t=ys.from(t,r),r=""))):t instanceof ys?r="":it._isUint8Array(t)?(t=it._uint8ArrayToBuffer(t),r=""):t!=null&&(o=new zA("chunk",["string","Buffer","Uint8Array"],t))),o)Ht(e,o);else if(t===null)i.state&=~Lr,uk(e,i);else if((i.state&Gt)!==0||t&&t.length>0)if(n)if((i.state&Ud)!==0)Ht(e,new KA);else{if(i.destroyed||i.errored)return!1;ws(e,i,t,!0)}else if(i.ended)Ht(e,new GA);else{if(i.destroyed||i.errored)return!1;i.state&=~Lr,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||t.length!==0?ws(e,i,t,!1):Vn(e,i)):ws(e,i,t,!1)}else n||(i.state&=~Lr,Vn(e,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function ws(e,t,r,n){t.flowing&&t.length===0&&!t.sync&&e.listenerCount("data")>0?((t.state&Vd)!==0?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),(t.state&zn)!==0&&Gn(e)),Vn(e,t)}z.prototype.isPaused=function(){let e=this._readableState;return e[_t]===!0||e.flowing===!1};z.prototype.setEncoding=function(e){let t=new $d(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,n="";for(let i of r)n+=t.write(i);return r.clear(),n!==""&&r.push(n),this._readableState.length=n.length,this};var ak=1073741824;function lk(e){if(e>ak)throw new HA("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++,e}function qd(e,t){return e<=0||t.length===0&&t.ended?0:(t.state&Gt)!==0?1:IA(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}z.prototype.read=function(e){G("read",e),e===void 0?e=NaN:CA(e)||(e=OA(e,10));let t=this._readableState,r=e;if(e>t.highWaterMark&&(t.highWaterMark=lk(e)),e!==0&&(t.state&=~zd),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return G("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Ss(this):Gn(this),null;if(e=qd(e,t),e===0&&t.ended)return t.length===0&&Ss(this),null;let n=(t.state&zn)!==0;if(G("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,G("length less than watermark",n)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)n=!1,G("reading, ended or constructing",n);else if(n){G("do read"),t.state|=Lr|Wn,t.length===0&&(t.state|=zn);try{this._read(t.highWaterMark)}catch(o){Ht(this,o)}t.state&=~Wn,t.reading||(e=qd(r,t))}let i;return e>0?i=Jd(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Ss(this)),i!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit("data",i)),i};function uk(e,t){if(G("onEofChunk"),!t.ended){if(t.decoder){let r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?Gn(e):(t.needReadable=!1,t.emittedReadable=!0,Gd(e))}}function Gn(e){let t=e._readableState;G("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(G("emitReadable",t.flowing),t.emittedReadable=!0,Ce.nextTick(Gd,e))}function Gd(e){let t=e._readableState;G("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Yd(e)}function Vn(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,Ce.nextTick(ck,e,t))}function ck(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){let r=t.length;if(G("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}z.prototype._read=function(e){throw new VA("_read()")};z.prototype.pipe=function(e,t){let r=this,n=this._readableState;n.pipes.length===1&&(n.multiAwaitDrain||(n.multiAwaitDrain=!0,n.awaitDrainWriters=new NA(n.awaitDrainWriters?[n.awaitDrainWriters]:[]))),n.pipes.push(e),G("pipe count=%d opts=%j",n.pipes.length,t);let o=(!t||t.end!==!1)&&e!==Ce.stdout&&e!==Ce.stderr?a:w;n.endEmitted?Ce.nextTick(o):r.once("end",o),e.on("unpipe",s);function s(y,x){G("onunpipe"),y===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,c())}function a(){G("onend"),e.end()}let l,u=!1;function c(){G("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),l&&e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",w),r.removeListener("data",h),u=!0,l&&n.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&l()}function d(){u||(n.pipes.length===1&&n.pipes[0]===e?(G("false write response, pause",0),n.awaitDrainWriters=e,n.multiAwaitDrain=!1):n.pipes.length>1&&n.pipes.includes(e)&&(G("false write response, pause",n.awaitDrainWriters.size),n.awaitDrainWriters.add(e)),r.pause()),l||(l=fk(r,e),e.on("drain",l))}r.on("data",h);function h(y){G("ondata");let x=e.write(y);G("dest.write",x),x===!1&&d()}function f(y){if(G("onerror",y),w(),e.removeListener("error",f),e.listenerCount("error")===0){let x=e._writableState||e._readableState;x&&!x.errorEmitted?Ht(e,y):e.emit("error",y)}}FA(e,"error",f);function p(){e.removeListener("finish",m),w()}e.once("close",p);function m(){G("onfinish"),e.removeListener("close",p),w()}e.once("finish",m);function w(){G("unpipe"),r.unpipe(e)}return e.emit("pipe",r),e.writableNeedDrain===!0?d():n.flowing||(G("pipe resume"),r.resume()),e};function fk(e,t){return function(){let n=e._readableState;n.awaitDrainWriters===t?(G("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(G("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),(!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&e.listenerCount("data")&&e.resume()}}z.prototype.unpipe=function(e){let t=this._readableState,r={hasUnpiped:!1};if(t.pipes.length===0)return this;if(!e){let i=t.pipes;t.pipes=[],this.pause();for(let o=0;o<i.length;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}let n=LA(t.pipes,e);return n===-1?this:(t.pipes.splice(n,1),t.pipes.length===0&&this.pause(),e.emit("unpipe",this,r),this)};z.prototype.on=function(e,t){let r=it.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,G("on readable",n.length,n.reading),n.length?Gn(this):n.reading||Ce.nextTick(dk,this)),r};z.prototype.addListener=z.prototype.on;z.prototype.removeListener=function(e,t){let r=it.prototype.removeListener.call(this,e,t);return e==="readable"&&Ce.nextTick(Kd,this),r};z.prototype.off=z.prototype.removeListener;z.prototype.removeAllListeners=function(e){let t=it.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&Ce.nextTick(Kd,this),t};function Kd(e){let t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&t[_t]===!1?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function dk(e){G("readable nexttick read 0"),e.read(0)}z.prototype.resume=function(){let e=this._readableState;return e.flowing||(G("resume"),e.flowing=!e.readableListening,hk(this,e)),e[_t]=!1,this};function hk(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Ce.nextTick(pk,e,t))}function pk(e,t){G("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Yd(e),t.flowing&&!t.reading&&e.read(0)}z.prototype.pause=function(){return G("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(G("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[_t]=!0,this};function Yd(e){let t=e._readableState;for(G("flow",t.flowing);t.flowing&&e.read()!==null;);}z.prototype.wrap=function(e){let t=!1;e.on("data",n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())}),e.on("end",()=>{this.push(null)}),e.on("error",n=>{Ht(this,n)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let r=MA(e);for(let n=1;n<r.length;n++){let i=r[n];this[i]===void 0&&typeof e[i]=="function"&&(this[i]=e[i].bind(e))}return this};z.prototype[PA]=function(){return Xd(this)};z.prototype.iterator=function(e){return e!==void 0&&XA(e,"options"),Xd(this,e)};function Xd(e,t){typeof e.read!="function"&&(e=z.wrap(e,{objectMode:!0}));let r=mk(e,t);return r.stream=e,r}async function*mk(e,t){let r=bs;function n(s){this===e?(r(),r=bs):r=s}e.on("readable",n);let i,o=jd(e,{writable:!1},s=>{i=s?Pd(i,s):null,r(),r=bs});try{for(;;){let s=e.destroyed?null:e.read();if(s!==null)yield s;else{if(i)throw i;if(i===null)return;await new Fd(n)}}}catch(s){throw i=Pd(i,s),i}finally{(i||t?.destroyOnReturn!==!1)&&(i===void 0||e._readableState.autoDestroy)?Kt.destroyer(e,null):(e.off("readable",n),o())}}Ts(z.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&e.readable!==!1&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});Ts(Hn.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[_t]!==!1},set(e){this[_t]=!!e}}});z._fromList=Jd;function Jd(e,t){if(t.length===0)return null;let r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Ss(e){let t=e._readableState;G("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,Ce.nextTick(gk,t,e))}function gk(e,t){if(G("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.emit("end"),t.writable&&t.allowHalfOpen===!1)Ce.nextTick(yk,t);else if(e.autoDestroy){let r=t._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&t.destroy()}}}function yk(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}z.from=function(e,t){return JA(z,e,t)};var Es;function Qd(){return Es===void 0&&(Es={}),Es}z.fromWeb=function(e,t){return Qd().newStreamReadableFromReadableStream(e,t)};z.toWeb=function(e,t){return Qd().newReadableStreamFromStreamReadable(e,t)};z.wrap=function(e,t){var r,n;return new z({objectMode:(r=(n=e.readableObjectMode)!==null&&n!==void 0?n:e.objectMode)!==null&&r!==void 0?r:!0,...t,destroy(i,o){Kt.destroyer(e,i),o(i)}}).wrap(e)}});var Qn=L((xN,fh)=>{"use strict";var xt=rt(),{ArrayPrototypeSlice:rh,Error:bk,FunctionPrototypeSymbolHasInstance:nh,ObjectDefineProperty:ih,ObjectDefineProperties:wk,ObjectSetPrototypeOf:oh,StringPrototypeToLowerCase:Sk,Symbol:Ek,SymbolHasInstance:_k}=te();fh.exports=re;re.WritableState=Mr;var{EventEmitter:xk}=H("events"),Ir=jn().Stream,{Buffer:Kn}=H("buffer"),Jn=Et(),{addAbortSignal:Tk}=kr(),{getHighWaterMark:Ak,getDefaultHighWaterMark:kk}=Rr(),{ERR_INVALID_ARG_TYPE:Rk,ERR_METHOD_NOT_IMPLEMENTED:vk,ERR_MULTIPLE_CALLBACK:sh,ERR_STREAM_CANNOT_PIPE:Lk,ERR_STREAM_DESTROYED:Or,ERR_STREAM_ALREADY_FINISHED:Ck,ERR_STREAM_NULL_VALUES:Ik,ERR_STREAM_WRITE_AFTER_END:Ok,ERR_UNKNOWN_ENCODING:ah}=ce().codes,{errorOrDestroy:Yt}=Jn;oh(re.prototype,Ir.prototype);oh(re,Ir);function Rs(){}var Xt=Ek("kOnFinished");function Mr(e,t,r){typeof r!="boolean"&&(r=t instanceof Be()),this.objectMode=!!(e&&e.objectMode),r&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?Ak(this,e,"writableHighWaterMark",r):kk(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let n=!!(e&&e.decodeStrings===!1);this.decodeStrings=!n,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Nk.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Xn(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Xt]=[]}function Xn(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}Mr.prototype.getBuffer=function(){return rh(this.buffered,this.bufferedIndex)};ih(Mr.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function re(e){let t=this instanceof Be();if(!t&&!nh(re,this))return new re(e);this._writableState=new Mr(e,this,t),e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final),typeof e.construct=="function"&&(this._construct=e.construct),e.signal&&Tk(e.signal,this)),Ir.call(this,e),Jn.construct(this,()=>{let r=this._writableState;r.writing||Ls(this,r),Cs(this,r)})}ih(re,_k,{__proto__:null,value:function(e){return nh(this,e)?!0:this!==re?!1:e&&e._writableState instanceof Mr}});re.prototype.pipe=function(){Yt(this,new Lk)};function lh(e,t,r,n){let i=e._writableState;if(typeof r=="function")n=r,r=i.defaultEncoding;else{if(!r)r=i.defaultEncoding;else if(r!=="buffer"&&!Kn.isEncoding(r))throw new ah(r);typeof n!="function"&&(n=Rs)}if(t===null)throw new Ik;if(!i.objectMode)if(typeof t=="string")i.decodeStrings!==!1&&(t=Kn.from(t,r),r="buffer");else if(t instanceof Kn)r="buffer";else if(Ir._isUint8Array(t))t=Ir._uint8ArrayToBuffer(t),r="buffer";else throw new Rk("chunk",["string","Buffer","Uint8Array"],t);let o;return i.ending?o=new Ok:i.destroyed&&(o=new Or("write")),o?(xt.nextTick(n,o),Yt(e,o,!0),o):(i.pendingcb++,Mk(e,i,t,r,n))}re.prototype.write=function(e,t,r){return lh(this,e,t,r)===!0};re.prototype.cork=function(){this._writableState.corked++};re.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||Ls(this,e))};re.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=Sk(t)),!Kn.isEncoding(t))throw new ah(t);return this._writableState.defaultEncoding=t,this};function Mk(e,t,r,n,i){let o=t.objectMode?1:r.length;t.length+=o;let s=t.length<t.highWaterMark;return s||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:i}),t.allBuffers&&n!=="buffer"&&(t.allBuffers=!1),t.allNoop&&i!==Rs&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1),s&&!t.errored&&!t.destroyed}function eh(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Or("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function th(e,t,r,n){--t.pendingcb,n(r),vs(t),Yt(e,r)}function Nk(e,t){let r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function"){Yt(e,new sh);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),n?xt.nextTick(th,e,r,t,i):th(e,r,t,i)):(r.buffered.length>r.bufferedIndex&&Ls(e,r),n?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===i?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:i,stream:e,state:r},xt.nextTick(Dk,r.afterWriteTickInfo)):uh(e,r,1,i))}function Dk({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,uh(e,t,r,n)}function uh(e,t,r,n){for(!t.ending&&!e.destroyed&&t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,n();t.destroyed&&vs(t),Cs(e,t)}function vs(e){if(e.writing)return;for(let i=e.bufferedIndex;i<e.buffered.length;++i){var t;let{chunk:o,callback:s}=e.buffered[i],a=e.objectMode?1:o.length;e.length-=a,s((t=e.errored)!==null&&t!==void 0?t:new Or("write"))}let r=e[Xt].splice(0);for(let i=0;i<r.length;i++){var n;r[i]((n=e.errored)!==null&&n!==void 0?n:new Or("end"))}Xn(e)}function Ls(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:r,bufferedIndex:n,objectMode:i}=t,o=r.length-n;if(!o)return;let s=n;if(t.bufferProcessing=!0,o>1&&e._writev){t.pendingcb-=o-1;let a=t.allNoop?Rs:u=>{for(let c=s;c<r.length;++c)r[c].callback(u)},l=t.allNoop&&s===0?r:rh(r,s);l.allBuffers=t.allBuffers,eh(e,t,!0,t.length,l,"",a),Xn(t)}else{do{let{chunk:a,encoding:l,callback:u}=r[s];r[s++]=null;let c=i?1:a.length;eh(e,t,!1,c,a,l,u)}while(s<r.length&&!t.writing);s===r.length?Xn(t):s>256?(r.splice(0,s),t.bufferedIndex=0):t.bufferedIndex=s}t.bufferProcessing=!1}re.prototype._write=function(e,t,r){if(this._writev)this._writev([{chunk:e,encoding:t}],r);else throw new vk("_write()")};re.prototype._writev=null;re.prototype.end=function(e,t,r){let n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null);let i;if(e!=null){let o=lh(this,e,t);o instanceof bk&&(i=o)}return n.corked&&(n.corked=1,this.uncork()),i||(!n.errored&&!n.ending?(n.ending=!0,Cs(this,n,!0),n.ended=!0):n.finished?i=new Ck("end"):n.destroyed&&(i=new Or("end"))),typeof r=="function"&&(i||n.finished?xt.nextTick(r,i):n[Xt].push(r)),this};function Yn(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function Pk(e,t){let r=!1;function n(i){if(r){Yt(e,i??sh());return}if(r=!0,t.pendingcb--,i){let o=t[Xt].splice(0);for(let s=0;s<o.length;s++)o[s](i);Yt(e,i,t.sync)}else Yn(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,xt.nextTick(ks,e,t))}t.sync=!0,t.pendingcb++;try{e._final(n)}catch(i){n(i)}t.sync=!1}function qk(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.finalCalled=!0,Pk(e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Cs(e,t,r){Yn(t)&&(qk(e,t),t.pendingcb===0&&(r?(t.pendingcb++,xt.nextTick((n,i)=>{Yn(i)?ks(n,i):i.pendingcb--},e,t)):Yn(t)&&(t.pendingcb++,ks(e,t))))}function ks(e,t){t.pendingcb--,t.finished=!0;let r=t[Xt].splice(0);for(let n=0;n<r.length;n++)r[n]();if(e.emit("finish"),t.autoDestroy){let n=e._readableState;(!n||n.autoDestroy&&(n.endEmitted||n.readable===!1))&&e.destroy()}}wk(re.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&e.writable!==!1&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let e=this._writableState;return e?!e.destroyed&&!e.ending&&e.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var Bk=Jn.destroy;re.prototype.destroy=function(e,t){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[Xt].length)&&xt.nextTick(vs,r),Bk.call(this,e,t),this};re.prototype._undestroy=Jn.undestroy;re.prototype._destroy=function(e,t){t(e)};re.prototype[xk.captureRejectionSymbol]=function(e){this.destroy(e)};var As;function ch(){return As===void 0&&(As={}),As}re.fromWeb=function(e,t){return ch().newStreamWritableFromWritableStream(e,t)};re.toWeb=function(e){return ch().newWritableStreamFromStreamWritable(e)}});var kh=L((TN,Ah)=>{var Is=rt(),Fk=H("buffer"),{isReadable:jk,isWritable:$k,isIterable:dh,isNodeStream:Uk,isReadableNodeStream:hh,isWritableNodeStream:ph,isDuplexNodeStream:Wk,isReadableStream:mh,isWritableStream:gh}=Pe(),yh=Ve(),{AbortError:xh,codes:{ERR_INVALID_ARG_TYPE:zk,ERR_INVALID_RETURN_VALUE:bh}}=ce(),{destroyer:Qt}=Et(),Vk=Be(),Th=Cr(),Hk=Qn(),{createDeferredPromise:wh}=he(),Sh=gs(),Eh=globalThis.Blob||Fk.Blob,Gk=typeof Eh<"u"?function(t){return t instanceof Eh}:function(t){return!1},Kk=globalThis.AbortController||Ut().AbortController,{FunctionPrototypeCall:_h}=te(),ot=class extends Vk{constructor(t){super(t),t?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};Ah.exports=function e(t,r){if(Wk(t))return t;if(hh(t))return Jt({readable:t});if(ph(t))return Jt({writable:t});if(Uk(t))return Jt({writable:!1,readable:!1});if(mh(t))return Jt({readable:Th.fromWeb(t)});if(gh(t))return Jt({writable:Hk.fromWeb(t)});if(typeof t=="function"){let{value:i,write:o,final:s,destroy:a}=Yk(t);if(dh(i))return Sh(ot,i,{objectMode:!0,write:o,final:s,destroy:a});let l=i?.then;if(typeof l=="function"){let u,c=_h(l,i,d=>{if(d!=null)throw new bh("nully","body",d)},d=>{Qt(u,d)});return u=new ot({objectMode:!0,readable:!1,write:o,final(d){s(async()=>{try{await c,Is.nextTick(d,null)}catch(h){Is.nextTick(d,h)}})},destroy:a})}throw new bh("Iterable, AsyncIterable or AsyncFunction",r,i)}if(Gk(t))return e(t.arrayBuffer());if(dh(t))return Sh(ot,t,{objectMode:!0,writable:!1});if(mh(t?.readable)&&gh(t?.writable))return ot.fromWeb(t);if(typeof t?.writable=="object"||typeof t?.readable=="object"){let i=t!=null&&t.readable?hh(t?.readable)?t?.readable:e(t.readable):void 0,o=t!=null&&t.writable?ph(t?.writable)?t?.writable:e(t.writable):void 0;return Jt({readable:i,writable:o})}let n=t?.then;if(typeof n=="function"){let i;return _h(n,t,o=>{o!=null&&i.push(o),i.push(null)},o=>{Qt(i,o)}),i=new ot({objectMode:!0,writable:!1,read(){}})}throw new zk(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)};function Yk(e){let{promise:t,resolve:r}=wh(),n=new Kk,i=n.signal;return{value:e((async function*(){for(;;){let s=t;t=null;let{chunk:a,done:l,cb:u}=await s;if(Is.nextTick(u),l)return;if(i.aborted)throw new xh(void 0,{cause:i.reason});({promise:t,resolve:r}=wh()),yield a}})(),{signal:i}),write(s,a,l){let u=r;r=null,u({chunk:s,done:!1,cb:l})},final(s){let a=r;r=null,a({done:!0,cb:s})},destroy(s,a){n.abort(),a(s)}}}function Jt(e){let t=e.readable&&typeof e.readable.read!="function"?Th.wrap(e.readable):e.readable,r=e.writable,n=!!jk(t),i=!!$k(r),o,s,a,l,u;function c(d){let h=l;l=null,h?h(d):d&&u.destroy(d)}return u=new ot({readableObjectMode:!!(t!=null&&t.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:n,writable:i}),i&&(yh(r,d=>{i=!1,d&&Qt(t,d),c(d)}),u._write=function(d,h,f){r.write(d,h)?f():o=f},u._final=function(d){r.end(),s=d},r.on("drain",function(){if(o){let d=o;o=null,d()}}),r.on("finish",function(){if(s){let d=s;s=null,d()}})),n&&(yh(t,d=>{n=!1,d&&Qt(t,d),c(d)}),t.on("readable",function(){if(a){let d=a;a=null,d()}}),t.on("end",function(){u.push(null)}),u._read=function(){for(;;){let d=t.read();if(d===null){a=u._read;return}if(!u.push(d))return}}),u._destroy=function(d,h){!d&&l!==null&&(d=new xh),a=null,o=null,s=null,l===null?h(d):(l=h,Qt(r,d),Qt(t,d))},u}});var Be=L((AN,Lh)=>{"use strict";var{ObjectDefineProperties:Xk,ObjectGetOwnPropertyDescriptor:He,ObjectKeys:Jk,ObjectSetPrototypeOf:Rh}=te();Lh.exports=Ie;var Ns=Cr(),Ae=Qn();Rh(Ie.prototype,Ns.prototype);Rh(Ie,Ns);{let e=Jk(Ae.prototype);for(let t=0;t<e.length;t++){let r=e[t];Ie.prototype[r]||(Ie.prototype[r]=Ae.prototype[r])}}function Ie(e){if(!(this instanceof Ie))return new Ie(e);Ns.call(this,e),Ae.call(this,e),e?(this.allowHalfOpen=e.allowHalfOpen!==!1,e.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}Xk(Ie.prototype,{writable:{__proto__:null,...He(Ae.prototype,"writable")},writableHighWaterMark:{__proto__:null,...He(Ae.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...He(Ae.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...He(Ae.prototype,"writableBuffer")},writableLength:{__proto__:null,...He(Ae.prototype,"writableLength")},writableFinished:{__proto__:null,...He(Ae.prototype,"writableFinished")},writableCorked:{__proto__:null,...He(Ae.prototype,"writableCorked")},writableEnded:{__proto__:null,...He(Ae.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...He(Ae.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}});var Os;function vh(){return Os===void 0&&(Os={}),Os}Ie.fromWeb=function(e,t){return vh().newStreamDuplexFromReadableWritablePair(e,t)};Ie.toWeb=function(e){return vh().newReadableWritablePairFromDuplex(e)};var Ms;Ie.from=function(e){return Ms||(Ms=kh()),Ms(e,"body")}});var qs=L((kN,Ih)=>{"use strict";var{ObjectSetPrototypeOf:Ch,Symbol:Qk}=te();Ih.exports=Ge;var{ERR_METHOD_NOT_IMPLEMENTED:Zk}=ce().codes,Ps=Be(),{getHighWaterMark:eR}=Rr();Ch(Ge.prototype,Ps.prototype);Ch(Ge,Ps);var Nr=Qk("kCallback");function Ge(e){if(!(this instanceof Ge))return new Ge(e);let t=e?eR(this,e,"readableHighWaterMark",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),Ps.call(this,e),this._readableState.sync=!1,this[Nr]=null,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",tR)}function Ds(e){typeof this._flush=="function"&&!this.destroyed?this._flush((t,r)=>{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function tR(){this._final!==Ds&&Ds.call(this)}Ge.prototype._final=Ds;Ge.prototype._transform=function(e,t,r){throw new Zk("_transform()")};Ge.prototype._write=function(e,t,r){let n=this._readableState,i=this._writableState,o=n.length;this._transform(e,t,(s,a)=>{if(s){r(s);return}a!=null&&this.push(a),i.ended||o===n.length||n.length<n.highWaterMark?r():this[Nr]=r})};Ge.prototype._read=function(){if(this[Nr]){let e=this[Nr];this[Nr]=null,e()}}});var Fs=L((RN,Mh)=>{"use strict";var{ObjectSetPrototypeOf:Oh}=te();Mh.exports=Zt;var Bs=qs();Oh(Zt.prototype,Bs.prototype);Oh(Zt,Bs);function Zt(e){if(!(this instanceof Zt))return new Zt(e);Bs.call(this,e)}Zt.prototype._transform=function(e,t,r){r(null,e)}});var ri=L((vN,Bh)=>{var Dr=rt(),{ArrayIsArray:rR,Promise:nR,SymbolAsyncIterator:iR,SymbolDispose:oR}=te(),ti=Ve(),{once:sR}=he(),aR=Et(),Nh=Be(),{aggregateTwoErrors:lR,codes:{ERR_INVALID_ARG_TYPE:Ks,ERR_INVALID_RETURN_VALUE:js,ERR_MISSING_ARGS:uR,ERR_STREAM_DESTROYED:cR,ERR_STREAM_PREMATURE_CLOSE:fR},AbortError:dR}=ce(),{validateFunction:hR,validateAbortSignal:pR}=zt(),{isIterable:Tt,isReadable:$s,isReadableNodeStream:ei,isNodeStream:Dh,isTransformStream:er,isWebStream:mR,isReadableStream:Us,isReadableFinished:gR}=Pe(),yR=globalThis.AbortController||Ut().AbortController,Ws,zs,Vs;function Ph(e,t,r){let n=!1;e.on("close",()=>{n=!0});let i=ti(e,{readable:t,writable:r},o=>{n=!o});return{destroy:o=>{n||(n=!0,aR.destroyer(e,o||new cR("pipe")))},cleanup:i}}function bR(e){return hR(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function Hs(e){if(Tt(e))return e;if(ei(e))return wR(e);throw new Ks("val",["Readable","Iterable","AsyncIterable"],e)}async function*wR(e){zs||(zs=Cr()),yield*zs.prototype[iR].call(e)}async function Zn(e,t,r,{end:n}){let i,o=null,s=u=>{if(u&&(i=u),o){let c=o;o=null,c()}},a=()=>new nR((u,c)=>{i?c(i):o=()=>{i?c(i):u()}});t.on("drain",s);let l=ti(t,{readable:!1},s);try{t.writableNeedDrain&&await a();for await(let u of e)t.write(u)||await a();n&&(t.end(),await a()),r()}catch(u){r(i!==u?lR(i,u):u)}finally{l(),t.off("drain",s)}}async function Gs(e,t,r,{end:n}){er(t)&&(t=t.writable);let i=t.getWriter();try{for await(let o of e)await i.ready,i.write(o).catch(()=>{});await i.ready,n&&await i.close(),r()}catch(o){try{await i.abort(o),r(o)}catch(s){r(s)}}}function SR(...e){return qh(e,sR(bR(e)))}function qh(e,t,r){if(e.length===1&&rR(e[0])&&(e=e[0]),e.length<2)throw new uR("streams");let n=new yR,i=n.signal,o=r?.signal,s=[];pR(o,"options.signal");function a(){p(new dR)}Vs=Vs||he().addAbortListener;let l;o&&(l=Vs(o,a));let u,c,d=[],h=0;function f(E){p(E,--h===0)}function p(E,T){var R;if(E&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=E),!(!u&&!T)){for(;d.length;)d.shift()(u);(R=l)===null||R===void 0||R[oR](),n.abort(),T&&(u||s.forEach(S=>S()),Dr.nextTick(t,u,c))}}let m;for(let E=0;E<e.length;E++){let T=e[E],R=E<e.length-1,S=E>0,C=R||r?.end!==!1,O=E===e.length-1;if(Dh(T)){let v=function(N){N&&N.name!=="AbortError"&&N.code!=="ERR_STREAM_PREMATURE_CLOSE"&&f(N)};var x=v;if(C){let{destroy:N,cleanup:W}=Ph(T,R,S);d.push(N),$s(T)&&O&&s.push(W)}T.on("error",v),$s(T)&&O&&s.push(()=>{T.removeListener("error",v)})}if(E===0)if(typeof T=="function"){if(m=T({signal:i}),!Tt(m))throw new js("Iterable, AsyncIterable or Stream","source",m)}else Tt(T)||ei(T)||er(T)?m=T:m=Nh.from(T);else if(typeof T=="function"){if(er(m)){var w;m=Hs((w=m)===null||w===void 0?void 0:w.readable)}else m=Hs(m);if(m=T(m,{signal:i}),R){if(!Tt(m,!0))throw new js("AsyncIterable",`transform[${E-1}]`,m)}else{var y;Ws||(Ws=Fs());let v=new Ws({objectMode:!0}),N=(y=m)===null||y===void 0?void 0:y.then;if(typeof N=="function")h++,N.call(m,_=>{c=_,_!=null&&v.write(_),C&&v.end(),Dr.nextTick(f)},_=>{v.destroy(_),Dr.nextTick(f,_)});else if(Tt(m,!0))h++,Zn(m,v,f,{end:C});else if(Us(m)||er(m)){let _=m.readable||m;h++,Zn(_,v,f,{end:C})}else throw new js("AsyncIterable or Promise","destination",m);m=v;let{destroy:W,cleanup:D}=Ph(m,!1,!0);d.push(W),O&&s.push(D)}}else if(Dh(T)){if(ei(m)){h+=2;let v=ER(m,T,f,{end:C});$s(T)&&O&&s.push(v)}else if(er(m)||Us(m)){let v=m.readable||m;h++,Zn(v,T,f,{end:C})}else if(Tt(m))h++,Zn(m,T,f,{end:C});else throw new Ks("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=T}else if(mR(T)){if(ei(m))h++,Gs(Hs(m),T,f,{end:C});else if(Us(m)||Tt(m))h++,Gs(m,T,f,{end:C});else if(er(m))h++,Gs(m.readable,T,f,{end:C});else throw new Ks("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=T}else m=Nh.from(T)}return(i!=null&&i.aborted||o!=null&&o.aborted)&&Dr.nextTick(a),m}function ER(e,t,r,{end:n}){let i=!1;if(t.on("close",()=>{i||r(new fR)}),e.pipe(t,{end:!1}),n){let s=function(){i=!0,t.end()};var o=s;gR(e)?Dr.nextTick(s):e.once("end",s)}else r();return ti(e,{readable:!0,writable:!1},s=>{let a=e._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?e.once("end",r).once("error",r):r(s)}),ti(t,{readable:!1,writable:!0},r)}Bh.exports={pipelineImpl:qh,pipeline:SR}});var Xs=L((LN,zh)=>{"use strict";var{pipeline:_R}=ri(),ni=Be(),{destroyer:xR}=Et(),{isNodeStream:ii,isReadable:Fh,isWritable:jh,isWebStream:Ys,isTransformStream:At,isWritableStream:$h,isReadableStream:Uh}=Pe(),{AbortError:TR,codes:{ERR_INVALID_ARG_VALUE:Wh,ERR_MISSING_ARGS:AR}}=ce(),kR=Ve();zh.exports=function(...t){if(t.length===0)throw new AR("streams");if(t.length===1)return ni.from(t[0]);let r=[...t];if(typeof t[0]=="function"&&(t[0]=ni.from(t[0])),typeof t[t.length-1]=="function"){let f=t.length-1;t[f]=ni.from(t[f])}for(let f=0;f<t.length;++f)if(!(!ii(t[f])&&!Ys(t[f]))){if(f<t.length-1&&!(Fh(t[f])||Uh(t[f])||At(t[f])))throw new Wh(`streams[${f}]`,r[f],"must be readable");if(f>0&&!(jh(t[f])||$h(t[f])||At(t[f])))throw new Wh(`streams[${f}]`,r[f],"must be writable")}let n,i,o,s,a;function l(f){let p=s;s=null,p?p(f):f?a.destroy(f):!h&&!d&&a.destroy()}let u=t[0],c=_R(t,l),d=!!(jh(u)||$h(u)||At(u)),h=!!(Fh(c)||Uh(c)||At(c));if(a=new ni({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(c!=null&&c.readableObjectMode),writable:d,readable:h}),d){if(ii(u))a._write=function(p,m,w){u.write(p,m)?w():n=w},a._final=function(p){u.end(),i=p},u.on("drain",function(){if(n){let p=n;n=null,p()}});else if(Ys(u)){let m=(At(u)?u.writable:u).getWriter();a._write=async function(w,y,x){try{await m.ready,m.write(w).catch(()=>{}),x()}catch(E){x(E)}},a._final=async function(w){try{await m.ready,m.close().catch(()=>{}),i=w}catch(y){w(y)}}}let f=At(c)?c.readable:c;kR(f,()=>{if(i){let p=i;i=null,p()}})}if(h){if(ii(c))c.on("readable",function(){if(o){let f=o;o=null,f()}}),c.on("end",function(){a.push(null)}),a._read=function(){for(;;){let f=c.read();if(f===null){o=a._read;return}if(!a.push(f))return}};else if(Ys(c)){let p=(At(c)?c.readable:c).getReader();a._read=async function(){for(;;)try{let{value:m,done:w}=await p.read();if(!a.push(m))return;if(w){a.push(null);return}}catch{return}}}}return a._destroy=function(f,p){!f&&s!==null&&(f=new TR),o=null,n=null,i=null,s===null?p(f):(s=p,ii(c)&&xR(c,f))},a}});var ep=L((CN,Zs)=>{"use strict";var RR=globalThis.AbortController||Ut().AbortController,{codes:{ERR_INVALID_ARG_VALUE:vR,ERR_INVALID_ARG_TYPE:Pr,ERR_MISSING_ARGS:LR,ERR_OUT_OF_RANGE:CR},AbortError:Fe}=ce(),{validateAbortSignal:kt,validateInteger:Vh,validateObject:Rt}=zt(),IR=te().Symbol("kWeak"),OR=te().Symbol("kResistStopPropagation"),{finished:MR}=Ve(),NR=Xs(),{addAbortSignalNoValidate:DR}=kr(),{isWritable:PR,isNodeStream:qR}=Pe(),{deprecate:BR}=he(),{ArrayPrototypePush:FR,Boolean:jR,MathFloor:Hh,Number:$R,NumberIsNaN:UR,Promise:Gh,PromiseReject:Kh,PromiseResolve:WR,PromisePrototypeThen:Yh,Symbol:Jh}=te(),oi=Jh("kEmpty"),Xh=Jh("kEof");function zR(e,t){if(t!=null&&Rt(t,"options"),t?.signal!=null&&kt(t.signal,"options.signal"),qR(e)&&!PR(e))throw new vR("stream",e,"must be writable");let r=NR(this,e);return t!=null&&t.signal&&DR(t.signal,r),r}function si(e,t){if(typeof e!="function")throw new Pr("fn",["Function","AsyncFunction"],e);t!=null&&Rt(t,"options"),t?.signal!=null&&kt(t.signal,"options.signal");let r=1;t?.concurrency!=null&&(r=Hh(t.concurrency));let n=r-1;return t?.highWaterMark!=null&&(n=Hh(t.highWaterMark)),Vh(r,"options.concurrency",1),Vh(n,"options.highWaterMark",0),n+=r,async function*(){let o=he().AbortSignalAny([t?.signal].filter(jR)),s=this,a=[],l={signal:o},u,c,d=!1,h=0;function f(){d=!0,p()}function p(){h-=1,m()}function m(){c&&!d&&h<r&&a.length<n&&(c(),c=null)}async function w(){try{for await(let y of s){if(d)return;if(o.aborted)throw new Fe;try{if(y=e(y,l),y===oi)continue;y=WR(y)}catch(x){y=Kh(x)}h+=1,Yh(y,p,f),a.push(y),u&&(u(),u=null),!d&&(a.length>=n||h>=r)&&await new Gh(x=>{c=x})}a.push(Xh)}catch(y){let x=Kh(y);Yh(x,p,f),a.push(x)}finally{d=!0,u&&(u(),u=null)}}w();try{for(;;){for(;a.length>0;){let y=await a[0];if(y===Xh)return;if(o.aborted)throw new Fe;y!==oi&&(yield y),a.shift(),m()}await new Gh(y=>{u=y})}}finally{d=!0,c&&(c(),c=null)}}.call(this)}function VR(e=void 0){return e!=null&&Rt(e,"options"),e?.signal!=null&&kt(e.signal,"options.signal"),async function*(){let r=0;for await(let i of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new Fe({cause:e.signal.reason});yield[r++,i]}}.call(this)}async function Qh(e,t=void 0){for await(let r of Qs.call(this,e,t))return!0;return!1}async function HR(e,t=void 0){if(typeof e!="function")throw new Pr("fn",["Function","AsyncFunction"],e);return!await Qh.call(this,async(...r)=>!await e(...r),t)}async function GR(e,t){for await(let r of Qs.call(this,e,t))return r}async function KR(e,t){if(typeof e!="function")throw new Pr("fn",["Function","AsyncFunction"],e);async function r(n,i){return await e(n,i),oi}for await(let n of si.call(this,r,t));}function Qs(e,t){if(typeof e!="function")throw new Pr("fn",["Function","AsyncFunction"],e);async function r(n,i){return await e(n,i)?n:oi}return si.call(this,r,t)}var Js=class extends LR{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function YR(e,t,r){var n;if(typeof e!="function")throw new Pr("reducer",["Function","AsyncFunction"],e);r!=null&&Rt(r,"options"),r?.signal!=null&&kt(r.signal,"options.signal");let i=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){let u=new Fe(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await MR(this.destroy(u)),u}let o=new RR,s=o.signal;if(r!=null&&r.signal){let u={once:!0,[IR]:this,[OR]:!0};r.signal.addEventListener("abort",()=>o.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new Fe;i?t=await e(t,u,{signal:s}):(t=u,i=!0)}if(!a&&!i)throw new Js}finally{o.abort()}return t}async function XR(e){e!=null&&Rt(e,"options"),e?.signal!=null&&kt(e.signal,"options.signal");let t=[];for await(let n of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new Fe(void 0,{cause:e.signal.reason});FR(t,n)}return t}function JR(e,t){let r=si.call(this,e,t);return async function*(){for await(let i of r)yield*i}.call(this)}function Zh(e){if(e=$R(e),UR(e))return 0;if(e<0)throw new CR("number",">= 0",e);return e}function QR(e,t=void 0){return t!=null&&Rt(t,"options"),t?.signal!=null&&kt(t.signal,"options.signal"),e=Zh(e),async function*(){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new Fe;for await(let o of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new Fe;e--<=0&&(yield o)}}.call(this)}function ZR(e,t=void 0){return t!=null&&Rt(t,"options"),t?.signal!=null&&kt(t.signal,"options.signal"),e=Zh(e),async function*(){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new Fe;for await(let o of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new Fe;if(e-- >0&&(yield o),e<=0)return}}.call(this)}Zs.exports.streamReturningOperators={asIndexedPairs:BR(VR,"readable.asIndexedPairs will be removed in a future version."),drop:QR,filter:Qs,flatMap:JR,map:si,take:ZR,compose:zR};Zs.exports.promiseReturningOperators={every:HR,forEach:KR,reduce:YR,toArray:XR,some:Qh,find:GR}});var ea=L((IN,tp)=>{"use strict";var{ArrayPrototypePop:ev,Promise:tv}=te(),{isIterable:rv,isNodeStream:nv,isWebStream:iv}=Pe(),{pipelineImpl:ov}=ri(),{finished:sv}=Ve();ta();function av(...e){return new tv((t,r)=>{let n,i,o=e[e.length-1];if(o&&typeof o=="object"&&!nv(o)&&!rv(o)&&!iv(o)){let s=ev(e);n=s.signal,i=s.end}ov(e,(s,a)=>{s?r(s):t(a)},{signal:n,end:i})})}tp.exports={finished:sv,pipeline:av}});var ta=L((ON,cp)=>{"use strict";var{Buffer:lv}=H("buffer"),{ObjectDefineProperty:Ke,ObjectKeys:ip,ReflectApply:op}=te(),{promisify:{custom:sp}}=he(),{streamReturningOperators:rp,promiseReturningOperators:np}=ep(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:ap}}=ce(),uv=Xs(),{setDefaultHighWaterMark:cv,getDefaultHighWaterMark:fv}=Rr(),{pipeline:lp}=ri(),{destroyer:dv}=Et(),up=Ve(),ra=ea(),qr=Pe(),ee=cp.exports=jn().Stream;ee.isDestroyed=qr.isDestroyed;ee.isDisturbed=qr.isDisturbed;ee.isErrored=qr.isErrored;ee.isReadable=qr.isReadable;ee.isWritable=qr.isWritable;ee.Readable=Cr();for(let e of ip(rp)){let r=function(...n){if(new.target)throw ap();return ee.Readable.from(op(t,this,n))},t=rp[e];Ke(r,"name",{__proto__:null,value:t.name}),Ke(r,"length",{__proto__:null,value:t.length}),Ke(ee.Readable.prototype,e,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let e of ip(np)){let r=function(...n){if(new.target)throw ap();return op(t,this,n)},t=np[e];Ke(r,"name",{__proto__:null,value:t.name}),Ke(r,"length",{__proto__:null,value:t.length}),Ke(ee.Readable.prototype,e,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}ee.Writable=Qn();ee.Duplex=Be();ee.Transform=qs();ee.PassThrough=Fs();ee.pipeline=lp;var{addAbortSignal:hv}=kr();ee.addAbortSignal=hv;ee.finished=up;ee.destroy=dv;ee.compose=uv;ee.setDefaultHighWaterMark=cv;ee.getDefaultHighWaterMark=fv;Ke(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return ra}});Ke(lp,sp,{__proto__:null,enumerable:!0,get(){return ra.pipeline}});Ke(up,sp,{__proto__:null,enumerable:!0,get(){return ra.finished}});ee.Stream=ee;ee._isUint8Array=function(t){return t instanceof Uint8Array};ee._uint8ArrayToBuffer=function(t){return lv.from(t.buffer,t.byteOffset,t.byteLength)}});var fp=L((MN,V)=>{"use strict";var se=H("stream");if(se&&process.env.READABLE_STREAM==="disable"){let e=se.promises;V.exports._uint8ArrayToBuffer=se._uint8ArrayToBuffer,V.exports._isUint8Array=se._isUint8Array,V.exports.isDisturbed=se.isDisturbed,V.exports.isErrored=se.isErrored,V.exports.isReadable=se.isReadable,V.exports.Readable=se.Readable,V.exports.Writable=se.Writable,V.exports.Duplex=se.Duplex,V.exports.Transform=se.Transform,V.exports.PassThrough=se.PassThrough,V.exports.addAbortSignal=se.addAbortSignal,V.exports.finished=se.finished,V.exports.destroy=se.destroy,V.exports.pipeline=se.pipeline,V.exports.compose=se.compose,Object.defineProperty(se,"promises",{configurable:!0,enumerable:!0,get(){return e}}),V.exports.Stream=se.Stream}else{let e=ta(),t=ea(),r=e.Readable.destroy;V.exports=e.Readable,V.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,V.exports._isUint8Array=e._isUint8Array,V.exports.isDisturbed=e.isDisturbed,V.exports.isErrored=e.isErrored,V.exports.isReadable=e.isReadable,V.exports.Readable=e.Readable,V.exports.Writable=e.Writable,V.exports.Duplex=e.Duplex,V.exports.Transform=e.Transform,V.exports.PassThrough=e.PassThrough,V.exports.addAbortSignal=e.addAbortSignal,V.exports.finished=e.finished,V.exports.destroy=e.destroy,V.exports.destroy=r,V.exports.pipeline=e.pipeline,V.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return t}}),V.exports.Stream=e.Stream}V.exports.default=V.exports});var mp=L((NN,pp)=>{"use strict";var{Transform:pv}=H("stream"),{StringDecoder:mv}=H("string_decoder"),st=Symbol("last"),ai=Symbol("decoder");function gv(e,t,r){let n;if(this.overflow){if(n=this[ai].write(e).split(this.matcher),n.length===1)return r();n.shift(),this.overflow=!1}else this[st]+=this[ai].write(e),n=this[st].split(this.matcher);this[st]=n.pop();for(let i=0;i<n.length;i++)try{hp(this,this.mapper(n[i]))}catch(o){return r(o)}if(this.overflow=this[st].length>this.maxLength,this.overflow&&!this.skipOverflow){r(new Error("maximum buffer reached"));return}r()}function yv(e){if(this[st]+=this[ai].end(),this[st])try{hp(this,this.mapper(this[st]))}catch(t){return e(t)}e()}function hp(e,t){t!==void 0&&e.push(t)}function dp(e){return e}function bv(e,t,r){switch(e=e||/\r?\n/,t=t||dp,r=r||{},arguments.length){case 1:typeof e=="function"?(t=e,e=/\r?\n/):typeof e=="object"&&!(e instanceof RegExp)&&!e[Symbol.split]&&(r=e,e=/\r?\n/);break;case 2:typeof e=="function"?(r=t,t=e,e=/\r?\n/):typeof t=="object"&&(r=t,t=dp)}r=Object.assign({},r),r.autoDestroy=!0,r.transform=gv,r.flush=yv,r.readableObjectMode=!0;let n=new pv(r);return n[st]="",n[ai]=new mv("utf8"),n.matcher=e,n.mapper=t,n.maxLength=r.maxLength,n.skipOverflow=r.skipOverflow||!1,n.overflow=!1,n._destroy=function(i,o){this._writableState.errorEmitted=!1,o(i)},n}pp.exports=bv});var Sp=L((DN,wp)=>{"use strict";var gp=Symbol.for("pino.metadata"),wv=mp(),{Duplex:Sv}=H("stream"),{parentPort:yp,workerData:bp}=H("worker_threads");function Ev(){let e,t,r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}wp.exports=function(t,r={}){let n=r.expectPinoConfig===!0&&bp?.workerData?.pinoWillSendConfig===!0,i=r.parse==="lines",o=typeof r.parseLine=="function"?r.parseLine:JSON.parse,s=r.close||_v,a=wv(function(u){let c;try{c=o(u)}catch(d){this.emit("unknown",u,d);return}if(c===null){this.emit("unknown",u,"Null value ignored");return}return typeof c!="object"&&(c={data:c,time:Date.now()}),a[gp]&&(a.lastTime=c.time,a.lastLevel=c.level,a.lastObj=c),i?u:c},{autoDestroy:!0});if(a._destroy=function(u,c){let d=s(u,c);d&&typeof d.then=="function"&&d.then(c,c)},r.expectPinoConfig===!0&&bp?.workerData?.pinoWillSendConfig!==!0&&setImmediate(()=>{a.emit("error",new Error("This transport is not compatible with the current version of pino. Please upgrade pino to the latest version."))}),r.metadata!==!1&&(a[gp]=!0,a.lastTime=0,a.lastLevel=0,a.lastObj=null),n){let u={},c=Ev();return yp.on("message",function d(h){h.code==="PINO_CONFIG"&&(u=h.config,c.resolve(),yp.off("message",d))}),Object.defineProperties(a,{levels:{get(){return u.levels}},messageKey:{get(){return u.messageKey}},errorKey:{get(){return u.errorKey}}}),c.then(l)}return l();function l(){let u=t(a);if(u&&typeof u.catch=="function")u.catch(c=>{a.destroy(c)}),u=null;else if(r.enablePipelining&&u)return Sv.from({writable:a,readable:u});return a}};function _v(e,t){process.nextTick(t,e)}});var Ye=L((PN,Ep)=>{"use strict";Ep.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",DATE_FORMAT_SIMPLE:"HH:MM:ss.l",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}});var li=L((qN,Tp)=>{"use strict";Tp.exports=xv;var{LEVELS:_p,LEVEL_NAMES:xp}=Ye();function xv(e,t,r){let n=e?t||_p:Object.assign({},_p,t),i=e?r||xp:Object.assign({},xp,r);return function(o){let s="default";return Number.isInteger(+o)?s=Object.prototype.hasOwnProperty.call(n,o)?o:s:s=Object.prototype.hasOwnProperty.call(i,o.toLowerCase())?i[o.toLowerCase()]:s,[n[s],s]}}});var aa=L((BN,Rp)=>{"use strict";var Xe=e=>e,na={default:Xe,60:Xe,50:Xe,40:Xe,30:Xe,20:Xe,10:Xe,message:Xe,greyMessage:Xe},{createColors:Ap}=jo(),Tv=li(),Br=Ap({useColor:!0}),{white:ia,bgRed:Av,red:kv,yellow:Rv,green:vv,blue:Lv,gray:oa,cyan:kp}=Br,ui={default:ia,60:Av,50:kv,40:Rv,30:vv,20:Lv,10:oa,message:kp,greyMessage:oa};function Cv(e){return e.reduce(function(t,[r,n]){return t[r]=typeof Br[n]=="function"?Br[n]:ia,t},{default:ia,message:kp,greyMessage:oa})}function sa(e){return function(t,r,{customLevels:n,customLevelNames:i}={}){let[o,s]=Tv(e,n,i)(t);return Object.prototype.hasOwnProperty.call(r,s)?r[s](o):r.default(o)}}function Iv(e){let t=sa(e),r=function(n,i){return t(n,na,i)};return r.message=na.message,r.greyMessage=na.greyMessage,r.colors=Ap({useColor:!1}),r}function Ov(e){let t=sa(e),r=function(n,i){return t(n,ui,i)};return r.message=ui.message,r.greyMessage=ui.greyMessage,r.colors=Br,r}function Mv(e,t){let r=Cv(e),n=t?r:Object.assign({},ui,r),i=sa(t),o=function(s,a){return i(s,n,a)};return o.colors=Br,o.message=o.message||n.message,o.greyMessage=o.greyMessage||n.greyMessage,o}Rp.exports=function(t=!1,r,n){return t&&r!==void 0?Mv(r,n):t?Ov(n):Iv(n)}});var la=L((FN,vp)=>{"use strict";vp.exports=function(){}});var Cp=L((jN,Lp)=>{"use strict";Lp.exports=Pv;var{isMainThread:Nv}=H("worker_threads"),Dv=fo(),ci=la();function Pv(e){let t=new Dv(e);return t.on("error",r),!process.env.NODE_V8_COVERAGE&&!e.sync&&Nv&&qv(t),t;function r(n){if(n.code==="EPIPE"){t.write=ci,t.end=ci,t.flushSync=ci,t.destroy=ci;return}t.removeListener("error",r)}}function qv(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=pn();t.register(e,Bv),e.on("close",function(){t.unregister(e)})}}function Bv(e,t){e.destroyed||(t==="beforeExit"?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}});var fi=L(($N,Ip)=>{"use strict";Ip.exports=Fv;function Fv(e){return e instanceof Date&&!Number.isNaN(e.getTime())}});var ua=L((UN,Op)=>{"use strict";Op.exports=$v;var jv=fi();function $v(e){let t=new Date(e);return jv(t)||(t=new Date(+e)),t}});var di=L((WN,Mp)=>{"use strict";Mp.exports=Uv;function Uv(e){let t=[],r=!1,n="";for(let i=0;i<e.length;i++){let o=e.charAt(i);if(o==="\\"){r=!0;continue}if(r){r=!1,n+=o;continue}if(o==="."){t.push(n),n="";continue}n+=o}return n.length&&t.push(n),t}});var tr=L((zN,Np)=>{"use strict";Np.exports=zv;var Wv=di();function zv(e,t){let r=Array.isArray(t)?t:Wv(t);for(let n of r){if(!Object.prototype.hasOwnProperty.call(e,n))return;e=e[n]}return e}});var ca=L((VN,Dp)=>{"use strict";Dp.exports=Gv;var Vv=tr(),Hv=di();function Gv(e,t){let r=Hv(t),n=r.pop();e=Vv(e,r),e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]}});var Hp={};bl(Hp,{copyStrict:()=>kL,createCopier:()=>ga,createStrictCopier:()=>Vp,default:()=>RL});function Jv(){return new Xv}function Qv(){return new WeakMap}function ha(e){if(!e)return fa(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:fa(e);if(t&&~Kv.call(t).indexOf("[native code]"))try{return new t}catch{}return fa(e)}function eL(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function tL(e){return e.flags}function Pp(e){var t=Yv.call(e);return t.substring(8,t.length-1)}function nL(e){return e[Symbol.toStringTag]||Pp(e)}function lL(e){return qp(e).concat(pa(e))}function pi(e,t,r){for(var n=uL(e),i=0,o=n.length,s=void 0,a=void 0;i<o;++i)if(s=n[i],!(s==="callee"||s==="caller")){if(a=sL(e,s),!a){t[s]=r.copier(e[s],r);continue}!a.get&&!a.set&&(a.value=r.copier(a.value,r));try{oL(t,s,a)}catch{t[s]=a.value}}return t}function cL(e,t){var r=new t.Constructor;t.cache.set(e,r);for(var n=0,i=e.length;n<i;++n)r[n]=t.copier(e[n],t);return r}function fL(e,t){var r=new t.Constructor;return t.cache.set(e,r),pi(e,r,t)}function $p(e,t){return e.slice(0)}function dL(e,t){return e.slice(0,e.size,e.type)}function hL(e,t){return new t.Constructor($p(e.buffer))}function pL(e,t){return new t.Constructor(e.getTime())}function Up(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach(function(n,i){r.set(i,t.copier(n,t))}),r}function mL(e,t){return pi(e,Up(e,t),t)}function gL(e,t){var r=ha(t.prototype);t.cache.set(e,r);for(var n in e)Fp.call(e,n)&&(r[n]=t.copier(e[n],t));return r}function yL(e,t){var r=ha(t.prototype);t.cache.set(e,r);for(var n in e)Fp.call(e,n)&&(r[n]=t.copier(e[n],t));for(var i=pa(e),o=0,s=i.length,a=void 0;o<s;++o)a=i[o],aL.call(e,a)&&(r[a]=t.copier(e[a],t));return r}function wL(e,t){var r=ha(t.prototype);return t.cache.set(e,r),pi(e,r,t)}function da(e,t){return new t.Constructor(e.valueOf())}function SL(e,t){var r=new t.Constructor(e.source,rL(e));return r.lastIndex=e.lastIndex,r}function hi(e,t){return e}function Wp(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach(function(n){r.add(t.copier(n,t))}),r}function EL(e,t){return pi(e,Wp(e,t),t)}function AL(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:da,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:da,Object:e.object,Promise:hi,RegExp:e.regExp,Set:e.set,String:da,WeakMap:hi,WeakSet:hi,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}function ga(e){var t=ma({},zp,e),r=AL(t),n=r.Array,i=r.Object;function o(s,a){if(a.prototype=a.Constructor=void 0,!s||typeof s!="object")return s;if(a.cache.has(s))return a.cache.get(s);if(a.prototype=xL(s),a.Constructor=a.prototype&&a.prototype.constructor,!a.Constructor||a.Constructor===Object)return i(s,a);if(_L(s))return n(s,a);var l=r[iL(s)];return l?l(s,a):typeof s.then=="function"?s:i(s,a)}return function(a){return o(a,{Constructor:void 0,cache:Zv(),copier:o,prototype:void 0})}}function Vp(e){return ga(ma({},TL,e))}var Kv,fa,Yv,Xv,Zv,rL,iL,oL,sL,qp,pa,Bp,Fp,aL,jp,uL,bL,_L,ma,xL,zp,TL,kL,RL,Gp=Jg(()=>{Kv=Function.prototype.toString,fa=Object.create,Yv=Object.prototype.toString,Xv=(function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(t){return!!~this._keys.indexOf(t)},e.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},e.prototype.set=function(t,r){this._keys.push(t),this._values.push(r)},e})();Zv=typeof WeakMap<"u"?Qv:Jv;rL=/test/g.flags==="g"?tL:eL;iL=typeof Symbol<"u"?nL:Pp,oL=Object.defineProperty,sL=Object.getOwnPropertyDescriptor,qp=Object.getOwnPropertyNames,pa=Object.getOwnPropertySymbols,Bp=Object.prototype,Fp=Bp.hasOwnProperty,aL=Bp.propertyIsEnumerable,jp=typeof pa=="function";uL=jp?lL:qp;bL=jp?yL:gL;_L=Array.isArray,ma=Object.assign,xL=Object.getPrototypeOf||(function(e){return e.__proto__}),zp={array:cL,arrayBuffer:$p,blob:dL,dataView:hL,date:pL,error:hi,map:Up,object:bL,regExp:SL,set:Wp},TL=ma({},zp,{array:fL,map:mL,object:wL,set:EL});kL=Vp({}),RL=ga({})});var ya=L((HN,Kp)=>{"use strict";Kp.exports=IL;var{createCopier:vL}=(Gp(),Qg(Hp)),LL=vL({}),CL=ca();function IL({log:e,context:t}){let{ignoreKeys:r,includeKeys:n}=t,i=LL(e);if(n){let o={};return n.forEach(s=>{o[s]=i[s]}),o}return r.forEach(o=>{CL(i,o)}),i}});var Xp=L((ba,Yp)=>{"use strict";function rr(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rr=function(r){return typeof r}:rr=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rr(e)}(function(e){var t=arguments,r=(function(){var l=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g;return function(d,h,f,p){if(t.length===1&&a(d)==="string"&&!/\d/.test(d)&&(h=d,d=void 0),d=d||d===0?d:new Date,d instanceof Date||(d=new Date(d)),isNaN(d))throw TypeError("Invalid date");h=String(r.masks[h]||h||r.masks.default);var m=h.slice(0,4);(m==="UTC:"||m==="GMT:")&&(h=h.slice(4),f=!0,m==="GMT:"&&(p=!0));var w=function(){return f?"getUTC":"get"},y=function(){return d[w()+"Date"]()},x=function(){return d[w()+"Day"]()},E=function(){return d[w()+"Month"]()},T=function(){return d[w()+"FullYear"]()},R=function(){return d[w()+"Hours"]()},S=function(){return d[w()+"Minutes"]()},C=function(){return d[w()+"Seconds"]()},O=function(){return d[w()+"Milliseconds"]()},v=function(){return f?0:d.getTimezoneOffset()},N=function(){return o(d)},W=function(){return s(d)},D={d:function(){return y()},dd:function(){return n(y())},ddd:function(){return r.i18n.dayNames[x()]},DDD:function(){return i({y:T(),m:E(),d:y(),_:w(),dayName:r.i18n.dayNames[x()],short:!0})},dddd:function(){return r.i18n.dayNames[x()+7]},DDDD:function(){return i({y:T(),m:E(),d:y(),_:w(),dayName:r.i18n.dayNames[x()+7]})},m:function(){return E()+1},mm:function(){return n(E()+1)},mmm:function(){return r.i18n.monthNames[E()]},mmmm:function(){return r.i18n.monthNames[E()+12]},yy:function(){return String(T()).slice(2)},yyyy:function(){return n(T(),4)},h:function(){return R()%12||12},hh:function(){return n(R()%12||12)},H:function(){return R()},HH:function(){return n(R())},M:function(){return S()},MM:function(){return n(S())},s:function(){return C()},ss:function(){return n(C())},l:function(){return n(O(),3)},L:function(){return n(Math.floor(O()/10))},t:function(){return R()<12?r.i18n.timeNames[0]:r.i18n.timeNames[1]},tt:function(){return R()<12?r.i18n.timeNames[2]:r.i18n.timeNames[3]},T:function(){return R()<12?r.i18n.timeNames[4]:r.i18n.timeNames[5]},TT:function(){return R()<12?r.i18n.timeNames[6]:r.i18n.timeNames[7]},Z:function(){return p?"GMT":f?"UTC":(String(d).match(u)||[""]).pop().replace(c,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(v()>0?"-":"+")+n(Math.floor(Math.abs(v())/60)*100+Math.abs(v())%60,4)},p:function(){return(v()>0?"-":"+")+n(Math.floor(Math.abs(v())/60),2)+":"+n(Math.floor(Math.abs(v())%60),2)},S:function(){return["th","st","nd","rd"][y()%10>3?0:(y()%100-y()%10!=10)*y()%10]},W:function(){return N()},WW:function(){return n(N())},N:function(){return W()}};return h.replace(l,function(_){return _ in D?D[_]():_.slice(1,_.length-1)})}})();r.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},r.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var n=function(u,c){for(u=String(u),c=c||2;u.length<c;)u="0"+u;return u},i=function(u){var c=u.y,d=u.m,h=u.d,f=u._,p=u.dayName,m=u.short,w=m===void 0?!1:m,y=new Date,x=new Date;x.setDate(x[f+"Date"]()-1);var E=new Date;E.setDate(E[f+"Date"]()+1);var T=function(){return y[f+"Date"]()},R=function(){return y[f+"Month"]()},S=function(){return y[f+"FullYear"]()},C=function(){return x[f+"Date"]()},O=function(){return x[f+"Month"]()},v=function(){return x[f+"FullYear"]()},N=function(){return E[f+"Date"]()},W=function(){return E[f+"Month"]()},D=function(){return E[f+"FullYear"]()};return S()===c&&R()===d&&T()===h?w?"Tdy":"Today":v()===c&&O()===d&&C()===h?w?"Ysd":"Yesterday":D()===c&&W()===d&&N()===h?w?"Tmw":"Tomorrow":p},o=function(u){var c=new Date(u.getFullYear(),u.getMonth(),u.getDate());c.setDate(c.getDate()-(c.getDay()+6)%7+3);var d=new Date(c.getFullYear(),0,4);d.setDate(d.getDate()-(d.getDay()+6)%7+3);var h=c.getTimezoneOffset()-d.getTimezoneOffset();c.setHours(c.getHours()-h);var f=(c-d)/(864e5*7);return 1+Math.floor(f)},s=function(u){var c=u.getDay();return c===0&&(c=7),c},a=function(u){return u===null?"null":u===void 0?"undefined":rr(u)!=="object"?rr(u):Array.isArray(u)?"array":{}.toString.call(u).slice(8,-1).toLowerCase()};typeof define=="function"&&define.amd?define(function(){return r}):(typeof ba>"u"?"undefined":rr(ba))==="object"?Yp.exports=r:e.dateFormat=r})(void 0)});var wa=L((GN,Jp)=>{"use strict";Jp.exports=PL;var{DATE_FORMAT:OL,DATE_FORMAT_SIMPLE:ML}=Ye(),Fr=Xp(),NL=ua(),DL=fi();function PL(e,t=!1){if(t===!1)return e;let r=NL(e);if(!DL(r))return e;if(t===!0)return Fr(r,ML);let n=t.toUpperCase();if(n==="SYS:STANDARD")return Fr(r,OL);let i=n.substr(0,4);return i==="SYS:"||i==="UTC:"?i==="UTC:"?Fr(r,t):Fr(r,t.slice(4)):Fr(r,`UTC:${t}`)}});var Sa=L((KN,Qp)=>{"use strict";Qp.exports=qL;function qL(e){return e?typeof e=="string"?e.split(",").reduce((t,r,n)=>{let[i,o=n]=r.split(":");return t[i.toLowerCase()]=o,t},{}):Object.prototype.toString.call(e)==="[object Object]"?Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{}):{}:{}}});var Ea=L((YN,Zp)=>{"use strict";Zp.exports=BL;function BL(e){return e?typeof e=="string"?e.split(",").reduce((t,r,n)=>{let[i,o=n]=r.split(":");return t[o]=i.toUpperCase(),t},{default:"USERLVL"}):Object.prototype.toString.call(e)==="[object Object]"?Object.keys(e).reduce((t,r)=>(t[e[r]]=r.toUpperCase(),t),{default:"USERLVL"}):{}:{}}});var _a=L((XN,em)=>{"use strict";em.exports=jL;var FL=tr();function jL(e,t){return e=e.replace(/{if (.*?)}(.*?){end}/g,r),e=e.replace(/{if (.*?)}/g,""),e=e.replace(/{end}/g,""),e.replace(/\s+/g," ").trim();function r(n,i,o){let s=FL(t,i);return s&&o.includes(i)?o.replace(new RegExp("{"+i+"}","g"),s):""}}});var mi=L((JN,tm)=>{"use strict";tm.exports=$L;function $L(e){return Object.prototype.toString.apply(e)==="[object Object]"}});var jr=L((QN,rm)=>{"use strict";rm.exports=UL;function UL({input:e,ident:t=" ",eol:r=`
26
+ `}){let n=e.split(/\r?\n/);for(let i=1;i<n.length;i+=1)n[i]=t+n[i];return n.join(r)}});var sm=L((ZN,om)=>{"use strict";om.exports=HL;var{LEVEL_NAMES:nm}=Ye(),im=aa(),WL=Ea(),zL=Sa(),VL=li();function HL(e){let t=e.crlf?`\r
27
27
  `:`
28
- `,r=" ",{customPrettifiers:n,errorLikeObjectKeys:i,hideObject:o,levelFirst:s,levelKey:a,levelLabel:l,messageFormat:u,messageKey:c,minimumLevel:d,singleLine:h,timestampKey:f,translateTime:p}=e,m=e.errorProps.split(","),w=typeof e.useOnlyCustomProps=="boolean"?e.useOnlyCustomProps:e.useOnlyCustomProps==="true",y=UL(e.customLevels),x=WL(e.customLevels),E=zL(w,y,x),T;if(e.customColors)if(typeof e.customColors=="string")T=e.customColors.split(",").reduce((N,W)=>{let[D,_]=W.split(":"),P=(w?e.customLevels:x[D]!==void 0)?x[D]:rm[D],X=P!==void 0?P:D;return N.push([X,_]),N},[]);else if(typeof e.customColors=="object")T=Object.keys(e.customColors).reduce((N,W)=>{let[D,_]=[W,e.customColors[W]],P=(w?e.customLevels:x[D]!==void 0)?x[D]:rm[D],X=P!==void 0?P:D;return N.push([X,_]),N},[]);else throw new Error("options.customColors must be of type string or object.");let R={customLevels:y,customLevelNames:x};w===!0&&!e.customLevels&&(R.customLevels=void 0,R.customLevelNames=void 0);let S=e.include!==void 0?new Set(e.include.split(",")):void 0,C=!S&&e.ignore?new Set(e.ignore.split(",")):void 0,O=nm(e.colorize,T,w),v=e.colorizeObjects?O:nm(!1,[],!1);return{EOL:t,IDENT:r,colorizer:O,customColors:T,customLevelNames:x,customLevels:y,customPrettifiers:n,customProperties:R,errorLikeObjectKeys:i,errorProps:m,getLevelLabelData:E,hideObject:o,ignoreKeys:C,includeKeys:S,levelFirst:s,levelKey:a,levelLabel:l,messageFormat:u,messageKey:c,minimumLevel:d,objectColorizer:v,singleLine:h,timestampKey:f,translateTime:p,useOnlyCustomProps:w}}});var fm=L((QN,cm)=>{cm.exports=$r;$r.default=$r;$r.stable=lm;$r.stableStringify=lm;var gi="[...]",sm="[Circular]",Lt=[],vt=[];function am(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function $r(e,t,r,n){typeof n>"u"&&(n=am()),_a(e,"",0,[],void 0,0,n);var i;try{vt.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,um(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Lt.length!==0;){var o=Lt.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function nr(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),Lt.push([n,r,t,i])):vt.push([t,r,e]):(n[r]=e,Lt.push([n,r,t]))}function _a(e,t,r,n,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){nr(sm,e,t,i);return}if(typeof s.depthLimit<"u"&&o>s.depthLimit){nr(gi,e,t,i);return}if(typeof s.edgesLimit<"u"&&r+1>s.edgesLimit){nr(gi,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)_a(e[a],a,a,n,e,o,s);else{var l=Object.keys(e);for(a=0;a<l.length;a++){var u=l[a];_a(e[u],u,a,n,e,o,s)}}n.pop()}}function HL(e,t){return e<t?-1:e>t?1:0}function lm(e,t,r,n){typeof n>"u"&&(n=am());var i=xa(e,"",0,[],void 0,0,n)||e,o;try{vt.length===0?o=JSON.stringify(i,t,r):o=JSON.stringify(i,um(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Lt.length!==0;){var s=Lt.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return o}function xa(e,t,r,n,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){nr(sm,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof s.depthLimit<"u"&&o>s.depthLimit){nr(gi,e,t,i);return}if(typeof s.edgesLimit<"u"&&r+1>s.edgesLimit){nr(gi,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)xa(e[a],a,a,n,e,o,s);else{var l={},u=Object.keys(e).sort(HL);for(a=0;a<u.length;a++){var c=u[a];xa(e[c],c,a,n,e,o,s),l[c]=e[c]}if(typeof i<"u")Lt.push([i,t,e]),i[t]=l;else return l}n.pop()}}function um(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(vt.length>0)for(var n=0;n<vt.length;n++){var i=vt[n];if(i[1]===t&&i[0]===r){r=i[2],vt.splice(n,1);break}}return e.call(this,t,r)}}});var Ta=L((ZN,dm)=>{"use strict";dm.exports=KL;var GL=jr();function KL({keyName:e,lines:t,eol:r,ident:n}){let i="",o=GL({input:t,ident:n,eol:r}),s=`${n}${e}: ${o}${r}`.split(r);for(let a=0;a<s.length;a+=1){a!==0&&(i+=r);let l=s[a];if(/^\s*"stack"/.test(l)){let u=/^(\s*"stack":)\s*(".*"),?$/.exec(l);if(u&&u.length===3){let c=/^\s*/.exec(l)[0].length+4,d=" ".repeat(c),h=u[2];i+=u[1]+r+d+JSON.parse(h).replace(/\n/g,r+d)}else i+=l}else i+=l}return i}});var yi=L((eD,hm)=>{"use strict";hm.exports=QL;var{LOGGER_KEYS:YL}=Ye(),Aa=fm(),XL=jr(),JL=Ta();function QL({log:e,excludeLoggerKeys:t=!0,skipKeys:r=[],context:n}){let{EOL:i,IDENT:o,customPrettifiers:s,errorLikeObjectKeys:a,objectColorizer:l,singleLine:u,colorizer:c}=n,d=[].concat(r);t===!0&&Array.prototype.push.apply(d,YL);let h="",{plain:f,errors:p}=Object.entries(e).reduce(({plain:m,errors:w},[y,x])=>{if(d.includes(y)===!1){let E=typeof s[y]=="function"?s[y](x,y,e,{colors:c.colors}):x;a.includes(y)?w[y]=E:m[y]=E}return{plain:m,errors:w}},{plain:{},errors:{}});return u?(Object.keys(f).length>0&&(h+=l.greyMessage(Aa(f))),h+=i,h=h.replace(/\\\\/gi,"\\")):Object.entries(f).forEach(([m,w])=>{let y=typeof s[m]=="function"?w:Aa(w,null,2);if(y===void 0)return;y=y.replace(/\\\\/gi,"\\");let x=XL({input:y,ident:o,eol:i});h+=`${o}${m}:${x.startsWith(i)?"":" "}${x}${i}`}),Object.entries(p).forEach(([m,w])=>{let y=typeof s[m]=="function"?w:Aa(w,null,2);y!==void 0&&(h+=JL({keyName:m,lines:y,eol:i,ident:o}))}),h}});var ka=L((tD,pm)=>{"use strict";pm.exports=nC;var{LOGGER_KEYS:ZL}=Ye(),eC=mi(),tC=jr(),rC=yi();function nC({log:e,context:t}){let{EOL:r,IDENT:n,errorProps:i,messageKey:o}=t,s=e.stack,a=tC({input:s,ident:n,eol:r}),l=`${n}${a}${r}`;if(i.length>0){let u=ZL.concat(o,"type","stack"),c;i[0]==="*"?c=Object.keys(e).filter(d=>u.includes(d)===!1):c=i.filter(d=>u.includes(d)===!1);for(let d=0;d<c.length;d+=1){let h=c[d];if(h in e){if(eC(e[h])){let f=rC({log:e[h],excludeLoggerKeys:!1,context:{...t,IDENT:n+n}});l=`${l}${n}${h}: {${r}${f}${n}}${r}`;continue}l=`${l}${n}${h}: ${e[h]}${r}`}}}return l}});var Ra=L((rD,mm)=>{"use strict";mm.exports=oC;var iC=tr();function oC({log:e,context:t}){let{colorizer:r,customLevels:n,customLevelNames:i,levelKey:o,getLevelLabelData:s}=t,a=t.customPrettifiers?.level,l=iC(e,o);if(l===void 0)return;let u=r(l,{customLevels:n,customLevelNames:i});if(a){let[c]=s(l);return a(l,o,e,{label:c,labelColorized:u,colors:r.colors})}return u}});var va=L((nD,ym)=>{"use strict";ym.exports=lC;var{LEVELS:sC}=Ye(),gm=tr(),aC=Ea();function lC({log:e,context:t}){let{colorizer:r,customLevels:n,levelKey:i,levelLabel:o,messageFormat:s,messageKey:a,useOnlyCustomProps:l}=t;if(s&&typeof s=="string"){let u=aC(s,e),c=String(u).replace(/{([^{}]+)}/g,function(d,h){let f;return h===o&&(f=gm(e,i))!==void 0?(l?n===void 0:n[f]===void 0)?sC[f]:n[f]:gm(e,h)||""});return r.message(c)}if(s&&typeof s=="function"){let u=s(e,a,o,{colors:r.colors});return r.message(u)}if(a in e&&!(typeof e[a]!="string"&&typeof e[a]!="number"&&typeof e[a]!="boolean"))return r.message(e[a])}});var La=L((iD,bm)=>{"use strict";bm.exports=uC;function uC({log:e,context:t}){let{customPrettifiers:r,colorizer:n}=t,i="";if(e.name||e.pid||e.hostname){if(i+="(",e.name&&(i+=r.name?r.name(e.name,"name",e,{colors:n.colors}):e.name),e.pid){let o=r.pid?r.pid(e.pid,"pid",e,{colors:n.colors}):e.pid;e.name&&e.pid?i+="/"+o:i+=o}if(e.hostname){let o=r.hostname?r.hostname(e.hostname,"hostname",e,{colors:n.colors}):e.hostname;i+=`${i==="("?"on":" on"} ${o}`}i+=")"}if(e.caller){let o=r.caller?r.caller(e.caller,"caller",e,{colors:n.colors}):e.caller;i+=`${i===""?"":" "}<${o}>`}if(i!=="")return i}});var Ca=L((oD,wm)=>{"use strict";wm.exports=fC;var cC=ba();function fC({log:e,context:t}){let{timestampKey:r,translateTime:n}=t,i=t.customPrettifiers?.time,o=null;if(r in e?o=e[r]:"timestamp"in e&&(o=e.timestamp),o===null)return;let s=n?cC(o,n):o;return i?i(s):`[${s}]`}});var Em=L((sD,Sm)=>{"use strict";Sm.exports={buildSafeSonicBoom:Lp(),createDate:la(),deleteLogProperty:ua(),filterLog:ga(),formatTime:ba(),getPropertyValue:tr(),handleCustomLevelsNamesOpts:wa(),handleCustomLevelsOpts:Sa(),interpretConditionals:Ea(),isObject:mi(),isValidDate:fi(),joinLinesWithIndentation:jr(),noop:aa(),parseFactoryOptions:om(),prettifyErrorLog:ka(),prettifyError:Ta(),prettifyLevel:Ra(),prettifyMessage:va(),prettifyMetadata:La(),prettifyObject:yi(),prettifyTime:Ca(),splitPropertyKey:di(),getLevelLabelData:li()}});var km=L((aD,ir)=>{"use strict";var dC=typeof Buffer<"u",_m=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,xm=/"(?: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 Tm(e,t,r){r==null&&t!==null&&typeof t=="object"&&(r=t,t=void 0),dC&&Buffer.isBuffer(e)&&(e=e.toString()),e&&e.charCodeAt(0)===65279&&(e=e.slice(1));let n=JSON.parse(e,t);if(n===null||typeof n!="object")return n;let i=r&&r.protoAction||"error",o=r&&r.constructorAction||"error";if(i==="ignore"&&o==="ignore")return n;if(i!=="ignore"&&o!=="ignore"){if(_m.test(e)===!1&&xm.test(e)===!1)return n}else if(i!=="ignore"&&o==="ignore"){if(_m.test(e)===!1)return n}else if(xm.test(e)===!1)return n;return Am(n,{protoAction:i,constructorAction:o,safe:r&&r.safe})}function Am(e,{protoAction:t="error",constructorAction:r="error",safe:n}={}){let i=[e];for(;i.length;){let o=i;i=[];for(let s of o){if(t!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"__proto__")){if(n===!0)return null;if(t==="error")throw new SyntaxError("Object contains forbidden prototype property");delete s.__proto__}if(r!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"constructor")&&Object.prototype.hasOwnProperty.call(s.constructor,"prototype")){if(n===!0)return null;if(r==="error")throw new SyntaxError("Object contains forbidden prototype property");delete s.constructor}for(let a in s){let l=s[a];l&&typeof l=="object"&&i.push(l)}}}return e}function Ia(e,t,r){let n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return Tm(e,t,r)}finally{Error.stackTraceLimit=n}}function hC(e,t){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return Tm(e,t,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=r}}ir.exports=Ia;ir.exports.default=Ia;ir.exports.parse=Ia;ir.exports.safeParse=hC;ir.exports.scan=Am});var Lm=L((lD,vm)=>{"use strict";vm.exports=AC;var pC=km(),Rm=mi(),mC=ka(),gC=Ra(),yC=va(),bC=La(),wC=yi(),SC=Ca(),EC=ga(),{LEVELS:_C,LEVEL_KEY:xC,LEVEL_NAMES:Oa}=Ye(),TC=e=>{try{return{value:pC.parse(e,{protoAction:"remove"})}}catch(t){return{err:t}}};function AC(e){let t;if(Rm(e))t=e;else{let a=TC(e);if(a.err||!Rm(a.value))return e+this.EOL;t=a.value}if(this.minimumLevel){let a;this.useOnlyCustomProps?a=this.customLevels:a=this.customLevelNames[this.minimumLevel]!==void 0;let l;if(a?l=this.customLevelNames[this.minimumLevel]:l=Oa[this.minimumLevel],l||(l=typeof this.minimumLevel=="string"?Oa[this.minimumLevel]:Oa[_C[this.minimumLevel].toLowerCase()]),t[this.levelKey===void 0?xC:this.levelKey]<l)return}let r=yC({log:t,context:this.context});(this.ignoreKeys||this.includeKeys)&&(t=EC({log:t,context:this.context}));let n=gC({log:t,context:{...this.context,...this.context.customProperties}}),i=bC({log:t,context:this.context}),o=SC({log:t,context:this.context}),s="";if(this.levelFirst&&n&&(s=`${n}`),o&&s===""?s=`${o}`:o&&(s=`${s} ${o}`),!this.levelFirst&&n&&(s.length>0?s=`${s} ${n}`:s=n),i&&(s.length>0?s=`${s} ${i}:`:s=i),s.endsWith(":")===!1&&s!==""&&(s+=":"),r!==void 0&&(s.length>0?s=`${s} ${r}`:s=r),s.length>0&&!this.singleLine&&(s+=this.EOL),t.type==="Error"&&typeof t.stack=="string"){let a=mC({log:t,context:this.context});this.singleLine&&(s+=this.EOL),s+=a}else if(this.hideObject===!1){let a=[this.messageKey,this.levelKey,this.timestampKey].filter(u=>typeof t[u]=="string"||typeof t[u]=="number"||typeof t[u]=="boolean"),l=wC({log:t,skipKeys:a,context:this.context});this.singleLine&&!/^\s$/.test(l)&&(s+=" "),s+=l}return s}});var Om=L((uD,at)=>{"use strict";var{isColorSupported:Cm}=Fo(),kC=of(),{Transform:RC}=cp(),vC=wp(),LC=sa(),{ERROR_LIKE_KEYS:Im,LEVEL_KEY:CC,LEVEL_LABEL:IC,MESSAGE_KEY:OC,TIMESTAMP_KEY:MC}=Ye(),{buildSafeSonicBoom:NC,parseFactoryOptions:DC}=Em(),PC=Lm(),qC={colorize:Cm,colorizeObjects:!0,crlf:!1,customColors:null,customLevels:null,customPrettifiers:{},errorLikeObjectKeys:Im,errorProps:"",hideObject:!1,ignore:"hostname",include:void 0,levelFirst:!1,levelKey:CC,levelLabel:IC,messageFormat:null,messageKey:OC,minimumLevel:void 0,outputStream:process.stdout,singleLine:!1,timestampKey:MC,translateTime:!0,useOnlyCustomProps:!0};function Ma(e){let t=DC(Object.assign({},qC,e));return PC.bind({...t,context:t})}function bi(e={}){let t=Ma(e),r;return vC(function(n){n.on("message",function o(s){!s||s.code!=="PINO_CONFIG"||(Object.assign(e,{messageKey:s.config.messageKey,errorLikeObjectKeys:Array.from(new Set([...e.errorLikeObjectKeys||Im,s.config.errorKey])),customLevels:s.config.levels.values}),t=Ma(e),n.off("message",o))});let i=new RC({objectMode:!0,autoDestroy:!0,transform(o,s,a){let l=t(o);a(null,l)}});return typeof e.destination=="object"&&typeof e.destination.write=="function"?r=e.destination:r=NC({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),n.on("unknown",function(o){r.write(o+`
29
- `)}),kC(n,i,r),i},{parse:"lines",close(n,i){r.on("close",()=>{i(n)})}})}at.exports=bi;at.exports.build=bi;at.exports.PinoPretty=bi;at.exports.prettyFactory=Ma;at.exports.colorizerFactory=LC;at.exports.isColorSupported=Cm;at.exports.default=bi});function Zg(e={}){let t=e.internalBuild===!0,r=e.insideBuild===!0;if(t&&r)throw new Error("A product build cannot be both internal and inside");let n=wl(e.buildEnv);return{buildEnv:n,variant:r?"inside":t?"internal":"standard",isDev:n==="dev",isTest:n==="test",isStaging:n==="staging",isProd:n==="prod",isInternalBuild:t,isInsideBuild:r}}function wl(e){if(e==="development")return"dev";if(e==="production")return"prod";if(e==="dev"||e==="test"||e==="staging"||e==="prod")return e}var ey=new Set(["EACCES","EBUSY","EPERM"]),ty=4,ry=50;function ny(e,t={}){let r=t.platform??process.platform,n=Math.max(0,Math.floor(t.retries??ty)),i=Math.max(0,Math.floor(t.retryDelayMs??ry)),o=t.wait??oy;for(let s=0;;s+=1)try{return e()}catch(a){if(r!=="win32"||s>=n||!iy(a))throw a;o(i*(s+1))}}function iy(e){return typeof e=="object"&&e!==null&&"code"in e&&typeof e.code=="string"&&ey.has(e.code)}function oy(e){e<=0||Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,e)}var sy="memory-cleanup",Qr="cron:";function ay(e,t){return`${Qr}${e}:${t}`}function ly(e,t){return e}function uy(e){if(!e?.startsWith(Qr))return null;let t=e.slice(Qr.length).split(":");if(t.length<2)return null;let[r,...n]=t,i=n.join(":");return r&&i?{agentName:r,cronName:i}:null}function eM(e){return/^self-[a-f0-9]{32}$/.test(e??"")}var ji="[Content truncated; read or search the original memory file for more.]";function cy(e=16384){let t=Math.max(0,Math.min(16384,e));return{take(r,n,i="tail",o=16384){let s=Math.min(o,t-n("").length-2);if(!r||s<=0)return;let a=r;if(a.length>s){let l=s-ji.length-1;if(l<=0)return;a=i==="head"?`${r.slice(0,l).replace(/[\uD800-\uDBFF]$/u,"")}
30
- ${ji}`:`${ji}
31
- ${r.slice(-l).replace(/^[\uDC00-\uDFFF]/u,"")}`}return t-=n(a).length+2,a},include(r){return!r||r.length+2>t?!1:(t-=r.length+2,!0)}}}function fy(e){return Array.isArray(e)?e.reduce((t,r)=>{if(!r||typeof r!="object")return t;let{kind:n,startOffset:i,endOffset:o}=r;return n!=="MEMORY"||typeof i!="number"||typeof o!="number"?t:t+Math.max(0,o-i)+2},0):0}import{createRequire as dy}from"node:module";var sM=dy(__mavis_tuiPackageEntryUrl);function hy(e,t){return`${e.trim()}:${t.trim()}`}var en=(()=>{try{return{asterisk:new RegExp("(?<!\\*)\\*(?=\\S)([\\s\\S]*?\\S)\\*(?!\\*)","gu"),underscore:new RegExp("(?<!_)_(?=\\S)([\\s\\S]*?\\S)_(?!_)","gu"),replacement:"$1"}}catch{return{asterisk:/(^|[^*])\*(?=\S)([\s\S]*?\S)\*(?!\*)/gu,underscore:/(^|[^_])_(?=\S)([\s\S]*?\S)_(?!_)/gu,replacement:"$1$2"}}})(),py=/<(user-provided-context|mavis-chat-context|html-selection-context)\b[^>]*>([\s\S]*?)(?:<\/\1\s*>|$)/giu,my=/<(agent-message|agent-context|system-reminder|peer-memory-path|engine-message|inbound-context|archon_internal_context|locale-context|runtime-data-context|permission-ask|permission-response|questionnaire-ask|questionnaire-response|deliver-assets|deliver_assets|mavis-thinking)\b[^>]*>[\s\S]*?<\/\1\s*>/giu,gy=/<media\b[^>]*\/?\s*>/giu,yy=/\s+/gu,Sl=/^User comment \(requested change\):[ \t]*(.*)$/u,El=/^Requested edit for this selected PPT region:[ \t]*(.*)$/u,by=/^\d+\.\s+Comment \d+:[ \t]*(.+)$/u,wy=/^Untrusted .+ evidence\b/iu,Sy=/(?:^|\n)\s*(?:# Added chat context|(?:## )?(?:Selection sessions|User requested changes|Requested edits)|User comment \(requested change\):|Requested edit for this selected PPT region:|USER REQUEST \(user-authored\):|Untrusted .+ evidence\b|UNTRUSTED PPTX LOCATOR EVIDENCE)/iu;function Ey(e){return e.trim().replace(yy," ")}function _y(e){let t=e.replace(/\r\n?/gu,`
28
+ `,r=" ",{customPrettifiers:n,errorLikeObjectKeys:i,hideObject:o,levelFirst:s,levelKey:a,levelLabel:l,messageFormat:u,messageKey:c,minimumLevel:d,singleLine:h,timestampKey:f,translateTime:p}=e,m=e.errorProps.split(","),w=typeof e.useOnlyCustomProps=="boolean"?e.useOnlyCustomProps:e.useOnlyCustomProps==="true",y=WL(e.customLevels),x=zL(e.customLevels),E=VL(w,y,x),T;if(e.customColors)if(typeof e.customColors=="string")T=e.customColors.split(",").reduce((N,W)=>{let[D,_]=W.split(":"),P=(w?e.customLevels:x[D]!==void 0)?x[D]:nm[D],X=P!==void 0?P:D;return N.push([X,_]),N},[]);else if(typeof e.customColors=="object")T=Object.keys(e.customColors).reduce((N,W)=>{let[D,_]=[W,e.customColors[W]],P=(w?e.customLevels:x[D]!==void 0)?x[D]:nm[D],X=P!==void 0?P:D;return N.push([X,_]),N},[]);else throw new Error("options.customColors must be of type string or object.");let R={customLevels:y,customLevelNames:x};w===!0&&!e.customLevels&&(R.customLevels=void 0,R.customLevelNames=void 0);let S=e.include!==void 0?new Set(e.include.split(",")):void 0,C=!S&&e.ignore?new Set(e.ignore.split(",")):void 0,O=im(e.colorize,T,w),v=e.colorizeObjects?O:im(!1,[],!1);return{EOL:t,IDENT:r,colorizer:O,customColors:T,customLevelNames:x,customLevels:y,customPrettifiers:n,customProperties:R,errorLikeObjectKeys:i,errorProps:m,getLevelLabelData:E,hideObject:o,ignoreKeys:C,includeKeys:S,levelFirst:s,levelKey:a,levelLabel:l,messageFormat:u,messageKey:c,minimumLevel:d,objectColorizer:v,singleLine:h,timestampKey:f,translateTime:p,useOnlyCustomProps:w}}});var dm=L((eD,fm)=>{fm.exports=$r;$r.default=$r;$r.stable=um;$r.stableStringify=um;var gi="[...]",am="[Circular]",Lt=[],vt=[];function lm(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function $r(e,t,r,n){typeof n>"u"&&(n=lm()),xa(e,"",0,[],void 0,0,n);var i;try{vt.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,cm(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Lt.length!==0;){var o=Lt.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function nr(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),Lt.push([n,r,t,i])):vt.push([t,r,e]):(n[r]=e,Lt.push([n,r,t]))}function xa(e,t,r,n,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){nr(am,e,t,i);return}if(typeof s.depthLimit<"u"&&o>s.depthLimit){nr(gi,e,t,i);return}if(typeof s.edgesLimit<"u"&&r+1>s.edgesLimit){nr(gi,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)xa(e[a],a,a,n,e,o,s);else{var l=Object.keys(e);for(a=0;a<l.length;a++){var u=l[a];xa(e[u],u,a,n,e,o,s)}}n.pop()}}function GL(e,t){return e<t?-1:e>t?1:0}function um(e,t,r,n){typeof n>"u"&&(n=lm());var i=Ta(e,"",0,[],void 0,0,n)||e,o;try{vt.length===0?o=JSON.stringify(i,t,r):o=JSON.stringify(i,cm(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Lt.length!==0;){var s=Lt.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return o}function Ta(e,t,r,n,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){nr(am,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof s.depthLimit<"u"&&o>s.depthLimit){nr(gi,e,t,i);return}if(typeof s.edgesLimit<"u"&&r+1>s.edgesLimit){nr(gi,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)Ta(e[a],a,a,n,e,o,s);else{var l={},u=Object.keys(e).sort(GL);for(a=0;a<u.length;a++){var c=u[a];Ta(e[c],c,a,n,e,o,s),l[c]=e[c]}if(typeof i<"u")Lt.push([i,t,e]),i[t]=l;else return l}n.pop()}}function cm(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(vt.length>0)for(var n=0;n<vt.length;n++){var i=vt[n];if(i[1]===t&&i[0]===r){r=i[2],vt.splice(n,1);break}}return e.call(this,t,r)}}});var Aa=L((tD,hm)=>{"use strict";hm.exports=YL;var KL=jr();function YL({keyName:e,lines:t,eol:r,ident:n}){let i="",o=KL({input:t,ident:n,eol:r}),s=`${n}${e}: ${o}${r}`.split(r);for(let a=0;a<s.length;a+=1){a!==0&&(i+=r);let l=s[a];if(/^\s*"stack"/.test(l)){let u=/^(\s*"stack":)\s*(".*"),?$/.exec(l);if(u&&u.length===3){let c=/^\s*/.exec(l)[0].length+4,d=" ".repeat(c),h=u[2];i+=u[1]+r+d+JSON.parse(h).replace(/\n/g,r+d)}else i+=l}else i+=l}return i}});var yi=L((rD,pm)=>{"use strict";pm.exports=ZL;var{LOGGER_KEYS:XL}=Ye(),ka=dm(),JL=jr(),QL=Aa();function ZL({log:e,excludeLoggerKeys:t=!0,skipKeys:r=[],context:n}){let{EOL:i,IDENT:o,customPrettifiers:s,errorLikeObjectKeys:a,objectColorizer:l,singleLine:u,colorizer:c}=n,d=[].concat(r);t===!0&&Array.prototype.push.apply(d,XL);let h="",{plain:f,errors:p}=Object.entries(e).reduce(({plain:m,errors:w},[y,x])=>{if(d.includes(y)===!1){let E=typeof s[y]=="function"?s[y](x,y,e,{colors:c.colors}):x;a.includes(y)?w[y]=E:m[y]=E}return{plain:m,errors:w}},{plain:{},errors:{}});return u?(Object.keys(f).length>0&&(h+=l.greyMessage(ka(f))),h+=i,h=h.replace(/\\\\/gi,"\\")):Object.entries(f).forEach(([m,w])=>{let y=typeof s[m]=="function"?w:ka(w,null,2);if(y===void 0)return;y=y.replace(/\\\\/gi,"\\");let x=JL({input:y,ident:o,eol:i});h+=`${o}${m}:${x.startsWith(i)?"":" "}${x}${i}`}),Object.entries(p).forEach(([m,w])=>{let y=typeof s[m]=="function"?w:ka(w,null,2);y!==void 0&&(h+=QL({keyName:m,lines:y,eol:i,ident:o}))}),h}});var Ra=L((nD,mm)=>{"use strict";mm.exports=iC;var{LOGGER_KEYS:eC}=Ye(),tC=mi(),rC=jr(),nC=yi();function iC({log:e,context:t}){let{EOL:r,IDENT:n,errorProps:i,messageKey:o}=t,s=e.stack,a=rC({input:s,ident:n,eol:r}),l=`${n}${a}${r}`;if(i.length>0){let u=eC.concat(o,"type","stack"),c;i[0]==="*"?c=Object.keys(e).filter(d=>u.includes(d)===!1):c=i.filter(d=>u.includes(d)===!1);for(let d=0;d<c.length;d+=1){let h=c[d];if(h in e){if(tC(e[h])){let f=nC({log:e[h],excludeLoggerKeys:!1,context:{...t,IDENT:n+n}});l=`${l}${n}${h}: {${r}${f}${n}}${r}`;continue}l=`${l}${n}${h}: ${e[h]}${r}`}}}return l}});var va=L((iD,gm)=>{"use strict";gm.exports=sC;var oC=tr();function sC({log:e,context:t}){let{colorizer:r,customLevels:n,customLevelNames:i,levelKey:o,getLevelLabelData:s}=t,a=t.customPrettifiers?.level,l=oC(e,o);if(l===void 0)return;let u=r(l,{customLevels:n,customLevelNames:i});if(a){let[c]=s(l);return a(l,o,e,{label:c,labelColorized:u,colors:r.colors})}return u}});var La=L((oD,bm)=>{"use strict";bm.exports=uC;var{LEVELS:aC}=Ye(),ym=tr(),lC=_a();function uC({log:e,context:t}){let{colorizer:r,customLevels:n,levelKey:i,levelLabel:o,messageFormat:s,messageKey:a,useOnlyCustomProps:l}=t;if(s&&typeof s=="string"){let u=lC(s,e),c=String(u).replace(/{([^{}]+)}/g,function(d,h){let f;return h===o&&(f=ym(e,i))!==void 0?(l?n===void 0:n[f]===void 0)?aC[f]:n[f]:ym(e,h)||""});return r.message(c)}if(s&&typeof s=="function"){let u=s(e,a,o,{colors:r.colors});return r.message(u)}if(a in e&&!(typeof e[a]!="string"&&typeof e[a]!="number"&&typeof e[a]!="boolean"))return r.message(e[a])}});var Ca=L((sD,wm)=>{"use strict";wm.exports=cC;function cC({log:e,context:t}){let{customPrettifiers:r,colorizer:n}=t,i="";if(e.name||e.pid||e.hostname){if(i+="(",e.name&&(i+=r.name?r.name(e.name,"name",e,{colors:n.colors}):e.name),e.pid){let o=r.pid?r.pid(e.pid,"pid",e,{colors:n.colors}):e.pid;e.name&&e.pid?i+="/"+o:i+=o}if(e.hostname){let o=r.hostname?r.hostname(e.hostname,"hostname",e,{colors:n.colors}):e.hostname;i+=`${i==="("?"on":" on"} ${o}`}i+=")"}if(e.caller){let o=r.caller?r.caller(e.caller,"caller",e,{colors:n.colors}):e.caller;i+=`${i===""?"":" "}<${o}>`}if(i!=="")return i}});var Ia=L((aD,Sm)=>{"use strict";Sm.exports=dC;var fC=wa();function dC({log:e,context:t}){let{timestampKey:r,translateTime:n}=t,i=t.customPrettifiers?.time,o=null;if(r in e?o=e[r]:"timestamp"in e&&(o=e.timestamp),o===null)return;let s=n?fC(o,n):o;return i?i(s):`[${s}]`}});var _m=L((lD,Em)=>{"use strict";Em.exports={buildSafeSonicBoom:Cp(),createDate:ua(),deleteLogProperty:ca(),filterLog:ya(),formatTime:wa(),getPropertyValue:tr(),handleCustomLevelsNamesOpts:Sa(),handleCustomLevelsOpts:Ea(),interpretConditionals:_a(),isObject:mi(),isValidDate:fi(),joinLinesWithIndentation:jr(),noop:la(),parseFactoryOptions:sm(),prettifyErrorLog:Ra(),prettifyError:Aa(),prettifyLevel:va(),prettifyMessage:La(),prettifyMetadata:Ca(),prettifyObject:yi(),prettifyTime:Ia(),splitPropertyKey:di(),getLevelLabelData:li()}});var Rm=L((uD,ir)=>{"use strict";var hC=typeof Buffer<"u",xm=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,Tm=/"(?: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 Am(e,t,r){r==null&&t!==null&&typeof t=="object"&&(r=t,t=void 0),hC&&Buffer.isBuffer(e)&&(e=e.toString()),e&&e.charCodeAt(0)===65279&&(e=e.slice(1));let n=JSON.parse(e,t);if(n===null||typeof n!="object")return n;let i=r&&r.protoAction||"error",o=r&&r.constructorAction||"error";if(i==="ignore"&&o==="ignore")return n;if(i!=="ignore"&&o!=="ignore"){if(xm.test(e)===!1&&Tm.test(e)===!1)return n}else if(i!=="ignore"&&o==="ignore"){if(xm.test(e)===!1)return n}else if(Tm.test(e)===!1)return n;return km(n,{protoAction:i,constructorAction:o,safe:r&&r.safe})}function km(e,{protoAction:t="error",constructorAction:r="error",safe:n}={}){let i=[e];for(;i.length;){let o=i;i=[];for(let s of o){if(t!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"__proto__")){if(n===!0)return null;if(t==="error")throw new SyntaxError("Object contains forbidden prototype property");delete s.__proto__}if(r!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"constructor")&&Object.prototype.hasOwnProperty.call(s.constructor,"prototype")){if(n===!0)return null;if(r==="error")throw new SyntaxError("Object contains forbidden prototype property");delete s.constructor}for(let a in s){let l=s[a];l&&typeof l=="object"&&i.push(l)}}}return e}function Oa(e,t,r){let n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return Am(e,t,r)}finally{Error.stackTraceLimit=n}}function pC(e,t){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return Am(e,t,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=r}}ir.exports=Oa;ir.exports.default=Oa;ir.exports.parse=Oa;ir.exports.safeParse=pC;ir.exports.scan=km});var Cm=L((cD,Lm)=>{"use strict";Lm.exports=kC;var mC=Rm(),vm=mi(),gC=Ra(),yC=va(),bC=La(),wC=Ca(),SC=yi(),EC=Ia(),_C=ya(),{LEVELS:xC,LEVEL_KEY:TC,LEVEL_NAMES:Ma}=Ye(),AC=e=>{try{return{value:mC.parse(e,{protoAction:"remove"})}}catch(t){return{err:t}}};function kC(e){let t;if(vm(e))t=e;else{let a=AC(e);if(a.err||!vm(a.value))return e+this.EOL;t=a.value}if(this.minimumLevel){let a;this.useOnlyCustomProps?a=this.customLevels:a=this.customLevelNames[this.minimumLevel]!==void 0;let l;if(a?l=this.customLevelNames[this.minimumLevel]:l=Ma[this.minimumLevel],l||(l=typeof this.minimumLevel=="string"?Ma[this.minimumLevel]:Ma[xC[this.minimumLevel].toLowerCase()]),t[this.levelKey===void 0?TC:this.levelKey]<l)return}let r=bC({log:t,context:this.context});(this.ignoreKeys||this.includeKeys)&&(t=_C({log:t,context:this.context}));let n=yC({log:t,context:{...this.context,...this.context.customProperties}}),i=wC({log:t,context:this.context}),o=EC({log:t,context:this.context}),s="";if(this.levelFirst&&n&&(s=`${n}`),o&&s===""?s=`${o}`:o&&(s=`${s} ${o}`),!this.levelFirst&&n&&(s.length>0?s=`${s} ${n}`:s=n),i&&(s.length>0?s=`${s} ${i}:`:s=i),s.endsWith(":")===!1&&s!==""&&(s+=":"),r!==void 0&&(s.length>0?s=`${s} ${r}`:s=r),s.length>0&&!this.singleLine&&(s+=this.EOL),t.type==="Error"&&typeof t.stack=="string"){let a=gC({log:t,context:this.context});this.singleLine&&(s+=this.EOL),s+=a}else if(this.hideObject===!1){let a=[this.messageKey,this.levelKey,this.timestampKey].filter(u=>typeof t[u]=="string"||typeof t[u]=="number"||typeof t[u]=="boolean"),l=SC({log:t,skipKeys:a,context:this.context});this.singleLine&&!/^\s$/.test(l)&&(s+=" "),s+=l}return s}});var Mm=L((fD,at)=>{"use strict";var{isColorSupported:Im}=jo(),RC=sf(),{Transform:vC}=fp(),LC=Sp(),CC=aa(),{ERROR_LIKE_KEYS:Om,LEVEL_KEY:IC,LEVEL_LABEL:OC,MESSAGE_KEY:MC,TIMESTAMP_KEY:NC}=Ye(),{buildSafeSonicBoom:DC,parseFactoryOptions:PC}=_m(),qC=Cm(),BC={colorize:Im,colorizeObjects:!0,crlf:!1,customColors:null,customLevels:null,customPrettifiers:{},errorLikeObjectKeys:Om,errorProps:"",hideObject:!1,ignore:"hostname",include:void 0,levelFirst:!1,levelKey:IC,levelLabel:OC,messageFormat:null,messageKey:MC,minimumLevel:void 0,outputStream:process.stdout,singleLine:!1,timestampKey:NC,translateTime:!0,useOnlyCustomProps:!0};function Na(e){let t=PC(Object.assign({},BC,e));return qC.bind({...t,context:t})}function bi(e={}){let t=Na(e),r;return LC(function(n){n.on("message",function o(s){!s||s.code!=="PINO_CONFIG"||(Object.assign(e,{messageKey:s.config.messageKey,errorLikeObjectKeys:Array.from(new Set([...e.errorLikeObjectKeys||Om,s.config.errorKey])),customLevels:s.config.levels.values}),t=Na(e),n.off("message",o))});let i=new vC({objectMode:!0,autoDestroy:!0,transform(o,s,a){let l=t(o);a(null,l)}});return typeof e.destination=="object"&&typeof e.destination.write=="function"?r=e.destination:r=DC({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),n.on("unknown",function(o){r.write(o+`
29
+ `)}),RC(n,i,r),i},{parse:"lines",close(n,i){r.on("close",()=>{i(n)})}})}at.exports=bi;at.exports.build=bi;at.exports.PinoPretty=bi;at.exports.prettyFactory=Na;at.exports.colorizerFactory=CC;at.exports.isColorSupported=Im;at.exports.default=bi});function ey(e={}){let t=e.internalBuild===!0,r=e.insideBuild===!0;if(t&&r)throw new Error("A product build cannot be both internal and inside");let n=Sl(e.buildEnv);return{buildEnv:n,variant:r?"inside":t?"internal":"standard",isDev:n==="dev",isTest:n==="test",isStaging:n==="staging",isProd:n==="prod",isInternalBuild:t,isInsideBuild:r}}function Sl(e){if(e==="development")return"dev";if(e==="production")return"prod";if(e==="dev"||e==="test"||e==="staging"||e==="prod")return e}var ty=new Set(["EACCES","EBUSY","EPERM"]),ry=4,ny=50;function iy(e,t={}){let r=t.platform??process.platform,n=Math.max(0,Math.floor(t.retries??ry)),i=Math.max(0,Math.floor(t.retryDelayMs??ny)),o=t.wait??sy;for(let s=0;;s+=1)try{return e()}catch(a){if(r!=="win32"||s>=n||!oy(a))throw a;o(i*(s+1))}}function oy(e){return typeof e=="object"&&e!==null&&"code"in e&&typeof e.code=="string"&&ty.has(e.code)}function sy(e){e<=0||Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,e)}var ay="memory-cleanup",Qr="cron:";function ly(e,t){return`${Qr}${e}:${t}`}function uy(e,t){return e}function cy(e){if(!e?.startsWith(Qr))return null;let t=e.slice(Qr.length).split(":");if(t.length<2)return null;let[r,...n]=t,i=n.join(":");return r&&i?{agentName:r,cronName:i}:null}function rM(e){return/^self-[a-f0-9]{32}$/.test(e??"")}var $i="[Content truncated; read or search the original memory file for more.]";function fy(e=16384){let t=Math.max(0,Math.min(16384,e));return{take(r,n,i="tail",o=16384){let s=Math.min(o,t-n("").length-2);if(!r||s<=0)return;let a=r;if(a.length>s){let l=s-$i.length-1;if(l<=0)return;a=i==="head"?`${r.slice(0,l).replace(/[\uD800-\uDBFF]$/u,"")}
30
+ ${$i}`:`${$i}
31
+ ${r.slice(-l).replace(/^[\uDC00-\uDFFF]/u,"")}`}return t-=n(a).length+2,a},include(r){return!r||r.length+2>t?!1:(t-=r.length+2,!0)}}}function dy(e){return Array.isArray(e)?e.reduce((t,r)=>{if(!r||typeof r!="object")return t;let{kind:n,startOffset:i,endOffset:o}=r;return n!=="MEMORY"||typeof i!="number"||typeof o!="number"?t:t+Math.max(0,o-i)+2},0):0}import{createRequire as hy}from"node:module";var lM=hy(__mavis_tuiPackageEntryUrl);function py(e,t){return`${e.trim()}:${t.trim()}`}var en=(()=>{try{return{asterisk:new RegExp("(?<!\\*)\\*(?=\\S)([\\s\\S]*?\\S)\\*(?!\\*)","gu"),underscore:new RegExp("(?<!_)_(?=\\S)([\\s\\S]*?\\S)_(?!_)","gu"),replacement:"$1"}}catch{return{asterisk:/(^|[^*])\*(?=\S)([\s\S]*?\S)\*(?!\*)/gu,underscore:/(^|[^_])_(?=\S)([\s\S]*?\S)_(?!_)/gu,replacement:"$1$2"}}})(),my=/<(user-provided-context|mavis-chat-context|html-selection-context)\b[^>]*>([\s\S]*?)(?:<\/\1\s*>|$)/giu,gy=/<(agent-message|agent-context|system-reminder|peer-memory-path|engine-message|inbound-context|archon_internal_context|locale-context|runtime-data-context|permission-ask|permission-response|questionnaire-ask|questionnaire-response|deliver-assets|deliver_assets|mavis-thinking)\b[^>]*>[\s\S]*?<\/\1\s*>/giu,yy=/<media\b[^>]*\/?\s*>/giu,by=/\s+/gu,El=/^User comment \(requested change\):[ \t]*(.*)$/u,_l=/^Requested edit for this selected PPT region:[ \t]*(.*)$/u,wy=/^\d+\.\s+Comment \d+:[ \t]*(.+)$/u,Sy=/^Untrusted .+ evidence\b/iu,Ey=/(?:^|\n)\s*(?:# Added chat context|(?:## )?(?:Selection sessions|User requested changes|Requested edits)|User comment \(requested change\):|Requested edit for this selected PPT region:|USER REQUEST \(user-authored\):|Untrusted .+ evidence\b|UNTRUSTED PPTX LOCATOR EVIDENCE)/iu;function _y(e){return e.trim().replace(by," ")}function xy(e){let t=e.replace(/\r\n?/gu,`
32
32
  `).split(`
33
- `),r=[],n=[];for(let i=0;i<t.length;i+=1){let o=t[i]?.trim()??"",s=by.exec(o);s?.[1]&&r.push(s[1].trim());let a=Sl.exec(o),l=El.exec(o);if(!a&&!l)continue;let u=[],c=(a?.[1]??l?.[1])?.trim();c&&u.push(c);for(let h=i+1;h<t.length;h+=1){let f=t[h]?.trim()??"";if(!f||wy.test(f)||Sl.test(f)||El.test(f))break;u.push(f)}let d=tn(u.join(`
34
- `));d&&n.push(d)}return n.length>0?n:r.map(tn)}function tn(e){return Ey(e.replace(/\r\n?/gu,`
35
- `).replace(/^[ \t]{0,3}(?:[-*_][ \t]*){3,}$/gmu,"").replace(/^[ \t]{0,3}(?:`{3,}|~{3,})[^\n]*$/gmu,"").replace(/^[ \t]{0,3}#{1,6}[ \t]+/gmu,"").replace(/^[ \t]{0,3}>[ \t]?/gmu,"").replace(/^[ \t]*(?:[-+*]|\d+[.)])[ \t]+/gmu,"").replace(/!\[([^\]]*)\]\([^)]*\)/gu,"$1").replace(/\[([^\]]+)\]\([^)]*\)/gu,"$1").replace(/(`+)([\s\S]*?)\1/gu,"$2").replace(/(\*\*|__)(?=\S)([\s\S]*?\S)\1/gu,"$2").replace(/~~(?=\S)([\s\S]*?\S)~~/gu,"$1").replace(en.asterisk,en.replacement).replace(en.underscore,en.replacement).replace(/\\([\\`*_[\]{}()#+\-.!>])/gu,"$1"))}function xy(e){return/<\/(user-provided-context|mavis-chat-context|html-selection-context)\s*>$/iu.test(e[0]??"")}function Ty(e){return xy(e)||Sy.test(e[2]??"")}function Ay(e,t){let r="",n=0;for(let i of t){let o=i.index??n;r+=e.slice(n,o),n=o+(i[0]?.length??0)}return r+e.slice(n)}function ky(e){if(!e)return"";let t=Array.from(e.matchAll(py)).filter(Ty),r=t.flatMap(i=>_y(i[2]??"")),n=tn(Ay(e,t).replace(my,"").replace(gy,""));return tn([...r,n].filter(Boolean).join(`
36
- `))}function Ry(e,t){let r=hr(e.url);if(!r)return[];let n=$i(t).replace(/<!--[\s\S]*?-->/gu,"").replace(/<(script|style)\b[^>]*>[\s\S]*?<\/\1\s*>/giu,""),i=n.split(/<body\b/iu,1)[0]?.slice(0,65536)??"",o=/<title\b[^>]*>([^<]*)<\/title\s*>/iu.exec(i)?.[1],s=o?Ui(o).trim():e.name,a,l=e.favicon;for(let f of i.matchAll(/<link\b[^>]*>/giu)){let p=_l(f[0]),m=p.rel?.toLowerCase().split(/\s+/u)??[];m.includes("canonical")&&(a??=hr(p.href,r)),m.includes("icon")&&!p.mask&&(l??=hr(p.href,r))}let u={...e,...l?{favicon:l}:{}},c=[u];a&&a!==r&&c.push({...u,name:s,url:a});let d=vy(r,s);d&&c.push({...u,name:s,url:d}),Ly(r,n,c);let h=new Map;for(let f of c)h.has(f.url)||h.set(f.url,f);return Array.from(h.values())}function $i(e,t=0){if(t>8)return"";if(typeof e=="string")return e.slice(0,2e6);if(Array.isArray(e)){let n="";for(let i of e)if(n+=$i(i,t+1).slice(0,2e6-n.length),n.length>=2e6)break;return n}if(!e||typeof e!="object")return"";let r=e;return $i(r.content??r.text??r.output,t+1)}function hr(e,t){if(e?.trim())try{let r=new URL(e,t);return!["https:","http:"].includes(r.protocol)||r.username||r.password?void 0:r.href}catch{return}}function Ui(e){let t={amp:"&",quot:'"',apos:"'",lt:"<",gt:">"};return e.replace(/&(#x[0-9a-f]+|#\d+|amp|quot|apos|lt|gt);/giu,(r,n)=>{if(!n.startsWith("#"))return t[n.toLowerCase()]??r;let i=n[1]?.toLowerCase()==="x",o=Number.parseInt(n.slice(i?2:1),i?16:10);return o>0&&o<=1114111?String.fromCodePoint(o):r})}function _l(e){let t={};for(let r of e.matchAll(/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/gu)){let n=r[1]?.toLowerCase();n&&(t[n]=Ui(r[2]??r[3]??r[4]??""))}return t}function vy(e,t){let r=new URL(e);if(r.hostname!=="baike.baidu.com"||!/^\/item\/[^/]+\/?$/u.test(r.pathname))return;let n=/^(.{1,120})_百度百科$/u.exec(t)?.[1]?.trim();if(!(!n||/[/?#]/u.test(n)))return`${r.origin}/item/${encodeURIComponent(n)}`}function Ly(e,t,r){let n=new URL(e);if(!(!["duckduckgo.com","html.duckduckgo.com"].includes(n.hostname)||!/^\/html\/?$/u.test(n.pathname)))for(let i of t.matchAll(/<a\b([^>]*)>([\s\S]*?)<\/a\s*>/giu)){if(r.length>=100)break;let o=_l(i[1]??"");if(!o.class?.split(/\s+/u).includes("result__a"))continue;let s=hr(o.href,e);if(!s)continue;let a=new URL(s);if(["duckduckgo.com","html.duckduckgo.com"].includes(a.hostname)){if(a.pathname!=="/l/")continue;s=hr(a.searchParams.get("uddg")??void 0)}let l=Ui((i[2]??"").replace(/<[^>]*>/gu,"")).trim();s&&l&&r.push({url:s,name:l,evidence:l})}}function Cy(e,t){let r=new Map,n=new Map;for(let[s,a]of t){let l=Tl(a);for(let u of l.split(/\r?\n/u)){let c=u.trim();kl(c)&&xl(r,c,s)}for(let u of Al(l))xl(n,u,s)}let i=new Set,o=Tl(e);for(let[s,a]of r)a&&o.includes(s)&&i.add(a);for(let s of Al(o)){let a=n.get(s);a&&i.add(a)}return i}function xl(e,t,r){e.has(t)?e.get(t)!==r&&e.set(t,null):e.set(t,r)}function Tl(e){return e.slice(0,2e5).normalize("NFKC").replace(/```[\s\S]*?```|~~~[\s\S]*?~~~/gu,`
33
+ `),r=[],n=[];for(let i=0;i<t.length;i+=1){let o=t[i]?.trim()??"",s=wy.exec(o);s?.[1]&&r.push(s[1].trim());let a=El.exec(o),l=_l.exec(o);if(!a&&!l)continue;let u=[],c=(a?.[1]??l?.[1])?.trim();c&&u.push(c);for(let h=i+1;h<t.length;h+=1){let f=t[h]?.trim()??"";if(!f||Sy.test(f)||El.test(f)||_l.test(f))break;u.push(f)}let d=tn(u.join(`
34
+ `));d&&n.push(d)}return n.length>0?n:r.map(tn)}function tn(e){return _y(e.replace(/\r\n?/gu,`
35
+ `).replace(/^[ \t]{0,3}(?:[-*_][ \t]*){3,}$/gmu,"").replace(/^[ \t]{0,3}(?:`{3,}|~{3,})[^\n]*$/gmu,"").replace(/^[ \t]{0,3}#{1,6}[ \t]+/gmu,"").replace(/^[ \t]{0,3}>[ \t]?/gmu,"").replace(/^[ \t]*(?:[-+*]|\d+[.)])[ \t]+/gmu,"").replace(/!\[([^\]]*)\]\([^)]*\)/gu,"$1").replace(/\[([^\]]+)\]\([^)]*\)/gu,"$1").replace(/(`+)([\s\S]*?)\1/gu,"$2").replace(/(\*\*|__)(?=\S)([\s\S]*?\S)\1/gu,"$2").replace(/~~(?=\S)([\s\S]*?\S)~~/gu,"$1").replace(en.asterisk,en.replacement).replace(en.underscore,en.replacement).replace(/\\([\\`*_[\]{}()#+\-.!>])/gu,"$1"))}function Ty(e){return/<\/(user-provided-context|mavis-chat-context|html-selection-context)\s*>$/iu.test(e[0]??"")}function Ay(e){return Ty(e)||Ey.test(e[2]??"")}function ky(e,t){let r="",n=0;for(let i of t){let o=i.index??n;r+=e.slice(n,o),n=o+(i[0]?.length??0)}return r+e.slice(n)}function Ry(e){if(!e)return"";let t=Array.from(e.matchAll(my)).filter(Ay),r=t.flatMap(i=>xy(i[2]??"")),n=tn(ky(e,t).replace(gy,"").replace(yy,""));return tn([...r,n].filter(Boolean).join(`
36
+ `))}function vy(e,t){let r=hr(e.url);if(!r)return[];let n=Ui(t).replace(/<!--[\s\S]*?-->/gu,"").replace(/<(script|style)\b[^>]*>[\s\S]*?<\/\1\s*>/giu,""),i=n.split(/<body\b/iu,1)[0]?.slice(0,65536)??"",o=/<title\b[^>]*>([^<]*)<\/title\s*>/iu.exec(i)?.[1],s=o?Wi(o).trim():e.name,a,l=e.favicon;for(let f of i.matchAll(/<link\b[^>]*>/giu)){let p=xl(f[0]),m=p.rel?.toLowerCase().split(/\s+/u)??[];m.includes("canonical")&&(a??=hr(p.href,r)),m.includes("icon")&&!p.mask&&(l??=hr(p.href,r))}let u={...e,...l?{favicon:l}:{}},c=[u];a&&a!==r&&c.push({...u,name:s,url:a});let d=Ly(r,s);d&&c.push({...u,name:s,url:d}),Cy(r,n,c);let h=new Map;for(let f of c)h.has(f.url)||h.set(f.url,f);return Array.from(h.values())}function Ui(e,t=0){if(t>8)return"";if(typeof e=="string")return e.slice(0,2e6);if(Array.isArray(e)){let n="";for(let i of e)if(n+=Ui(i,t+1).slice(0,2e6-n.length),n.length>=2e6)break;return n}if(!e||typeof e!="object")return"";let r=e;return Ui(r.content??r.text??r.output,t+1)}function hr(e,t){if(e?.trim())try{let r=new URL(e,t);return!["https:","http:"].includes(r.protocol)||r.username||r.password?void 0:r.href}catch{return}}function Wi(e){let t={amp:"&",quot:'"',apos:"'",lt:"<",gt:">"};return e.replace(/&(#x[0-9a-f]+|#\d+|amp|quot|apos|lt|gt);/giu,(r,n)=>{if(!n.startsWith("#"))return t[n.toLowerCase()]??r;let i=n[1]?.toLowerCase()==="x",o=Number.parseInt(n.slice(i?2:1),i?16:10);return o>0&&o<=1114111?String.fromCodePoint(o):r})}function xl(e){let t={};for(let r of e.matchAll(/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/gu)){let n=r[1]?.toLowerCase();n&&(t[n]=Wi(r[2]??r[3]??r[4]??""))}return t}function Ly(e,t){let r=new URL(e);if(r.hostname!=="baike.baidu.com"||!/^\/item\/[^/]+\/?$/u.test(r.pathname))return;let n=/^(.{1,120})_百度百科$/u.exec(t)?.[1]?.trim();if(!(!n||/[/?#]/u.test(n)))return`${r.origin}/item/${encodeURIComponent(n)}`}function Cy(e,t,r){let n=new URL(e);if(!(!["duckduckgo.com","html.duckduckgo.com"].includes(n.hostname)||!/^\/html\/?$/u.test(n.pathname)))for(let i of t.matchAll(/<a\b([^>]*)>([\s\S]*?)<\/a\s*>/giu)){if(r.length>=100)break;let o=xl(i[1]??"");if(!o.class?.split(/\s+/u).includes("result__a"))continue;let s=hr(o.href,e);if(!s)continue;let a=new URL(s);if(["duckduckgo.com","html.duckduckgo.com"].includes(a.hostname)){if(a.pathname!=="/l/")continue;s=hr(a.searchParams.get("uddg")??void 0)}let l=Wi((i[2]??"").replace(/<[^>]*>/gu,"")).trim();s&&l&&r.push({url:s,name:l,evidence:l})}}function Iy(e,t){let r=new Map,n=new Map;for(let[s,a]of t){let l=Al(a);for(let u of l.split(/\r?\n/u)){let c=u.trim();Rl(c)&&Tl(r,c,s)}for(let u of kl(l))Tl(n,u,s)}let i=new Set,o=Al(e);for(let[s,a]of r)a&&o.includes(s)&&i.add(a);for(let s of kl(o)){let a=n.get(s);a&&i.add(a)}return i}function Tl(e,t,r){e.has(t)?e.get(t)!==r&&e.set(t,null):e.set(t,r)}function Al(e){return e.slice(0,2e5).normalize("NFKC").replace(/```[\s\S]*?```|~~~[\s\S]*?~~~/gu,`
37
37
  `).replace(/<(script|style)\b[^>]*>[\s\S]*?<\/\1\s*>/giu,`
38
38
  `).replace(/<\/?(?:p|div|li|br|h[1-6])\b[^>]*>/giu,`
39
- `).replace(/<[^>]*>/gu,"").replace(/!?\[[^\]\n]*\]\([^\n)]*\)/gu,"").replace(/https?:\/\/[^\s<>]+/giu,"")}function Al(e){return e.split(/[\n。!?;,!?;]+|,(?!\d)|\.(?=\s|$)/u).map(t=>t.trim().replace(/^(?:[-+*]|\d+[.)]|#{1,6}|>)\s+/u,"")).map(t=>t.replace(/[*_`]/gu,"").trim()).map(t=>new RegExp("\\p{Script=Han}","u").test(t)?t.replace(/\s+/gu,""):t.replace(/\s+/gu," ")).filter(kl)}function kl(e){let t=e.match(new RegExp("\\p{Script=Han}","gu"))?.length??0;return e.length<=500&&(t>=7||t===0&&e.length>=24&&(e.match(new RegExp("\\p{L}{2,}","gu"))?.length??0)>=4)}var Iy=new Set(["url","href","link","source_url","sourceUrl","favicon","favicon_url","faviconUrl","site_icon","siteIcon","icon"]);function Oy(e,t={}){let r=[];Wi(e,r,new Set,0,t);let n=new Map;return r.forEach(i=>{n.has(i.url)||n.set(i.url,i)}),Array.from(n.values())}function Wi(e,t,r,n,i){if(n>8||t.length>=100)return;let o=Cl(e);if(typeof o=="string"){i.includeText!==!1&&My(o,t);return}if(Array.isArray(o)){if(r.has(o))return;r.add(o),o.forEach(u=>Wi(u,t,r,n+1,i));return}let s=Il(o);if(!s||r.has(s))return;r.add(s);let a=pr(Y(s.url)??Y(s.href)??Y(s.link)??Y(s.source_url)??Y(s.sourceUrl)),l=Y(s.title)??Y(s.page_title)??Y(s.pageTitle)??Y(s.snippet)??Y(s.description)??Y(s.summary)??Y(s.text);if(a&&(!i.requireSourceMetadata||l)){let u=Ny(a,[Y(s.title),Y(s.page_title),Y(s.pageTitle),Y(s.name),Y(s.label)],[Rl(s.content),Rl(s.text)]),c=[u,Y(s.snippet),Y(s.description),Y(s.summary),Y(s.text),Y(s.content)?.split(/(?:^|\n)\[(?:附加字段|additional fields?)[^\]]*\]/iu,1)[0]?.trim()].filter(f=>!!f).join(`
40
- `).slice(0,2e5),d=Dy(s.content),h=pr(Y(s.favicon)??Y(s.favicon_url)??Y(s.faviconUrl)??Y(s.site_icon)??Y(s.siteIcon)??Y(s.icon)??Y(d?.favicon)??Y(d?.favicon_url)??Y(d?.faviconUrl)??Y(d?.site_icon)??Y(d?.siteIcon)??Y(d?.icon));t.push({name:u,url:a,...h?{favicon:h}:{},...c?{evidence:c}:{}});return}Object.entries(s).forEach(([u,c])=>{Iy.has(u)||Wi(c,t,r,n+1,i)})}function My(e,t){if(!e.trim()||e.length>2e5)return;let r=new Set;for(let n of e.matchAll(/(?<!!)\[([^\]\n]+)\]\(\s*(https?:\/\/[^\s<>"')\],。;:!?]+)(?:\s+(?:"[^"]*"|'[^']*'))?\s*\)/giu)){let i=pr(n[2]);if(!i)continue;r.add(i);let o=n[1]?.trim();t.push({name:o&&!Ll(o,i)?o:i,url:i,evidence:vl(e,n.index??0)})}for(let n of e.matchAll(/https?:\/\/[^\s<>"')\],。;:!?]+/giu)){let i=pr(n[0]),o=vl(e,n.index??0);!i||r.has(i)||/["']?(?:favicon(?:_url|Url)?|site_(?:icon)|siteIcon|icon)["']?\s*:/iu.test(o)||t.push({name:i,url:i,evidence:o})}}function Rl(e){if(typeof e!="string")return;let t=/<title[^>]*>\s*([^<]{2,120})\s*<\/title>/iu.exec(e)?.[1]?.trim();return t||/^#{1,2}\s+(.{2,120})$/mu.exec(e)?.[1]?.trim()}function Ny(e,t,r){return[...t,...r].find(n=>typeof n=="string"&&!Ll(n,e))??e}function Ll(e,t){if(pr(e)===t)return!0;let r=new URL(t).hostname.toLowerCase(),n=e.toLowerCase().replace(/^https?:\/\//u,"").replace(/\/$/u,"");return n===r||n===r.replace(/^www\./u,"")}function vl(e,t){let r=e.lastIndexOf(`
39
+ `).replace(/<[^>]*>/gu,"").replace(/!?\[[^\]\n]*\]\([^\n)]*\)/gu,"").replace(/https?:\/\/[^\s<>]+/giu,"")}function kl(e){return e.split(/[\n。!?;,!?;]+|,(?!\d)|\.(?=\s|$)/u).map(t=>t.trim().replace(/^(?:[-+*]|\d+[.)]|#{1,6}|>)\s+/u,"")).map(t=>t.replace(/[*_`]/gu,"").trim()).map(t=>new RegExp("\\p{Script=Han}","u").test(t)?t.replace(/\s+/gu,""):t.replace(/\s+/gu," ")).filter(Rl)}function Rl(e){let t=e.match(new RegExp("\\p{Script=Han}","gu"))?.length??0;return e.length<=500&&(t>=7||t===0&&e.length>=24&&(e.match(new RegExp("\\p{L}{2,}","gu"))?.length??0)>=4)}var Oy=new Set(["url","href","link","source_url","sourceUrl","favicon","favicon_url","faviconUrl","site_icon","siteIcon","icon"]);function My(e,t={}){let r=[];zi(e,r,new Set,0,t);let n=new Map;return r.forEach(i=>{n.has(i.url)||n.set(i.url,i)}),Array.from(n.values())}function zi(e,t,r,n,i){if(n>8||t.length>=100)return;let o=Il(e);if(typeof o=="string"){i.includeText!==!1&&Ny(o,t);return}if(Array.isArray(o)){if(r.has(o))return;r.add(o),o.forEach(u=>zi(u,t,r,n+1,i));return}let s=Ol(o);if(!s||r.has(s))return;r.add(s);let a=pr(Y(s.url)??Y(s.href)??Y(s.link)??Y(s.source_url)??Y(s.sourceUrl)),l=Y(s.title)??Y(s.page_title)??Y(s.pageTitle)??Y(s.snippet)??Y(s.description)??Y(s.summary)??Y(s.text);if(a&&(!i.requireSourceMetadata||l)){let u=Dy(a,[Y(s.title),Y(s.page_title),Y(s.pageTitle),Y(s.name),Y(s.label)],[vl(s.content),vl(s.text)]),c=[u,Y(s.snippet),Y(s.description),Y(s.summary),Y(s.text),Y(s.content)?.split(/(?:^|\n)\[(?:附加字段|additional fields?)[^\]]*\]/iu,1)[0]?.trim()].filter(f=>!!f).join(`
40
+ `).slice(0,2e5),d=Py(s.content),h=pr(Y(s.favicon)??Y(s.favicon_url)??Y(s.faviconUrl)??Y(s.site_icon)??Y(s.siteIcon)??Y(s.icon)??Y(d?.favicon)??Y(d?.favicon_url)??Y(d?.faviconUrl)??Y(d?.site_icon)??Y(d?.siteIcon)??Y(d?.icon));t.push({name:u,url:a,...h?{favicon:h}:{},...c?{evidence:c}:{}});return}Object.entries(s).forEach(([u,c])=>{Oy.has(u)||zi(c,t,r,n+1,i)})}function Ny(e,t){if(!e.trim()||e.length>2e5)return;let r=new Set;for(let n of e.matchAll(/(?<!!)\[([^\]\n]+)\]\(\s*(https?:\/\/[^\s<>"')\],。;:!?]+)(?:\s+(?:"[^"]*"|'[^']*'))?\s*\)/giu)){let i=pr(n[2]);if(!i)continue;r.add(i);let o=n[1]?.trim();t.push({name:o&&!Cl(o,i)?o:i,url:i,evidence:Ll(e,n.index??0)})}for(let n of e.matchAll(/https?:\/\/[^\s<>"')\],。;:!?]+/giu)){let i=pr(n[0]),o=Ll(e,n.index??0);!i||r.has(i)||/["']?(?:favicon(?:_url|Url)?|site_(?:icon)|siteIcon|icon)["']?\s*:/iu.test(o)||t.push({name:i,url:i,evidence:o})}}function vl(e){if(typeof e!="string")return;let t=/<title[^>]*>\s*([^<]{2,120})\s*<\/title>/iu.exec(e)?.[1]?.trim();return t||/^#{1,2}\s+(.{2,120})$/mu.exec(e)?.[1]?.trim()}function Dy(e,t,r){return[...t,...r].find(n=>typeof n=="string"&&!Cl(n,e))??e}function Cl(e,t){if(pr(e)===t)return!0;let r=new URL(t).hostname.toLowerCase(),n=e.toLowerCase().replace(/^https?:\/\//u,"").replace(/\/$/u,"");return n===r||n===r.replace(/^www\./u,"")}function Ll(e,t){let r=e.lastIndexOf(`
41
41
  `,Math.max(0,t-1))+1,n=e.indexOf(`
42
- `,t),i=n<0?e.length:n;return e.slice(r,i).trim().slice(0,500)}function Dy(e){if(typeof e!="string"||e.length>2e5)return;let r=Array.from(e.matchAll(/(?:^|\n)\[(?:附加字段|additional fields?)[^\]]*\]\s*/giu)).at(-1);if(r?.index!==void 0)return Il(Cl(e.slice(r.index+r[0].length)))}function Cl(e){if(typeof e!="string")return e;let t=e.trim();if(t.length===0||t.length>2e5||!t.startsWith("{")&&!t.startsWith("["))return e;try{return JSON.parse(t)}catch{return e}}function Il(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:void 0}function Y(e){return typeof e=="string"&&e.trim()?e.trim():void 0}function pr(e){if(e)try{let t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"?t.href:void 0}catch{return}}var Py=0xcbf29ce484222325n,qy=0x100000001b3n,By=0xffffffffffffffffn;var Ol=/^[a-f0-9]{6}$/iu;function Ml(e){let t=Py;for(let r of new TextEncoder().encode(e))t^=BigInt(r),t=t*qy&By;return`c${t.toString(36).padStart(13,"0")}`}function Fy(e,t){return`${e}:call:${Ml(t)}`}function Nl(e,t){if(!Ol.test(e))return;let r=e.toLowerCase(),n=new Set;for(let i of t){if(!Ol.test(i))continue;let o=i.toLowerCase(),s=0;for(let a=0;a<r.length&&(r[a]!==o[a]&&(s+=1),!(s>1));a+=1);s===1&&n.add(o)}return n.size===1?n.values().next().value:void 0}function jy(e,t,r){let n=new Set(t);if(n.has(e))return e;let i=r.get(e)??r.get(e.toLowerCase());if(i)return i;let o=Nl(e,Array.from(r,([s,a])=>n.has(a)?s:""));return(o&&r.get(o))??e}var zi=class{tails=new Map;async acquire(t){let r=this.tails.get(t)??Promise.resolve(),n=()=>{},i=new Promise(a=>{n=a}),o=$y(r,i);this.tails.set(t,o),await Dl(r);let s=!1;return()=>{s||(s=!0,n(),this.tails.get(t)===o&&this.tails.delete(t))}}async run(t,r){let n=await this.acquire(t);try{return await r()}finally{n()}}};async function $y(e,t){await Dl(e),await t}async function Dl(e){try{await e}catch{}}var Uy=[".key",".pem",".p12",".pfx",".jks",".keystore",".kdbx",".ovpn",".ppk",".tfstate"],Wy=new Set([".envrc",".git-credentials",".netrc",".npmrc",".pypirc","auth.json","credentials","credentials.json","id_dsa","id_ecdsa","id_ed25519","id_rsa"]),zy=new Set([".aws",".azure",".docker",".kube",".ssh"]);function Vy(e){let t=e.replaceAll("\\","/").toLowerCase(),r=t.split("/"),n=r.at(-1)??t;return n===".env"||n.startsWith(".env.")||n.includes("credential")||/^(?:client[-_]?secret|service[-_]?account)(?:[-_.].*)?\.json$/u.test(n)||n.includes("secret")||Wy.has(n)||r.some(i=>zy.has(i))||Uy.some(i=>n.endsWith(i))}var Pl={"HTTP-Referer":"https://agent.minimax.io/","X-OpenRouter-Title":"MiniMax Code","X-OpenRouter-Categories":"cli-agent"};function ql(e){if(!e)return!1;try{let t=new URL(e);return t.protocol==="https:"&&t.hostname.toLowerCase()==="openrouter.ai"}catch{return!1}}function Hy(e,t){if(!ql(e))return t?{...t}:void 0;let r=new Map;for(let[n,i]of Object.entries(t??{}))r.set(n.toLowerCase(),{name:n,value:i});for(let[n,i]of Object.entries(Pl))r.set(n.toLowerCase(),{name:n,value:i});return Object.fromEntries([...r.values()].map(({name:n,value:i})=>[n,i]))}var Gy=30*86400,Ky=14*86400;var Yy=[1,5,10,25,50,100,250,500,1e3,2500,5e3,1e4],Xy={maxAttempts:3,baseDelayMs:250,maxDelayMs:5e3,maxRetryBatches:100,maxRetryMetrics:1e5},Jy=/^[a-zA-Z_:][a-zA-Z0-9_:]*$/,jl="/archon/internal/api/v1/metrics/batch",$l="/matrix/api/v1/metrics/batch",ze=class extends Error{status;retryable;constructor(t,r){super(t),this.name="MetricsReportError",this.status=r.status,this.retryable=r.retryable}},rn=class{options;constructor(t){this.options={...t,...t.endpoint?{endpoint:t.endpoint.replace(/\/+$/,""),batchPath:Zy(t.batchPath??jl)}:{}}}async reportBatch(t){if(!this.options.endpoint){if(!this.options.reportMetric)throw new ze("Metrics reporter requires either endpoint or reportMetric",{retryable:!1});for(let i of t.metrics)await this.options.reportMetric(i,{service:t.service,timestamp:t.timestamp});return{accepted:t.metrics.length}}let r=new AbortController,n=setTimeout(()=>r.abort(),this.options.requestTimeoutMs??3e3);try{let i=await(this.options.fetch??fetch)(`${this.options.endpoint}${this.options.batchPath}`,{method:"POST",headers:{...this.options.headers??{},"Content-Type":"application/json"},body:JSON.stringify(nb(t)),signal:r.signal});if(!i.ok)throw new ze(`Metrics report failed with HTTP ${i.status}`,{status:i.status,retryable:i.status===429||i.status>=500});return await i.json().catch(()=>({}))}catch(i){throw i instanceof ze?i:new ze("Metrics report failed before a response was received",{retryable:!0})}finally{clearTimeout(n)}}},Vi=class{reporter;serviceName;flushIntervalMs;maxBatchSize;maxSeries;maxLabelKeys;maxLabelValueLength;defaultLabels;histogramBuckets;histogramBucketsByName;stickyGauge;retry;onError;now;setTimer;clearTimer;counters=new Map;gauges=new Map;histograms=new Map;metricNameSeriesCounts=new Map;retryBuffer=[];flushTimer;flushInFlight;closed=!1;constructor(t){this.reporter=t.reporter,this.serviceName=t.serviceName,this.flushIntervalMs=t.flushIntervalMs??5e3,this.maxBatchSize=t.maxBatchSize??1e3,this.maxSeries=t.maxSeries??5e4,this.maxLabelKeys=t.maxLabelKeys??20,this.maxLabelValueLength=t.maxLabelValueLength??512,this.defaultLabels=Bl(t.defaultLabels??{}),this.histogramBuckets=Fl(t.histogramBuckets??Yy),this.histogramBucketsByName=Object.fromEntries(Object.entries(t.histogramBucketsByName??{}).map(([r,n])=>[r,Fl(n)])),this.stickyGauge=t.stickyGauge??!1,this.retry={...Xy,...t.retry??{}},this.onError=t.onError,this.now=t.now??Date.now,this.setTimer=t.setTimer??setTimeout,this.clearTimer=t.clearTimer??clearTimeout,this.flushIntervalMs>0&&this.scheduleFlush()}counter(t,r=1,n={}){if(this.closed||!Number.isFinite(r)||r<=0)return;let i=this.validateAndMergeLabels("counter",t,n);if(!i)return;let o=mr("counter",t,i),s=this.counters.get(o),a=this.now();s?(s.value+=r,s.updatedAt=a):this.counters.set(o,{name:t,labels:i,value:r,updatedAt:a}),this.flushWhenFull()}gauge(t,r,n={}){if(this.closed||!Number.isFinite(r))return;let i=this.validateAndMergeLabels("gauge",t,n);i&&(this.gauges.set(mr("gauge",t,i),{name:t,labels:i,value:r,updatedAt:this.now()}),this.flushWhenFull())}histogram(t,r,n={}){if(this.closed||!Number.isFinite(r))return;let i=this.validateAndMergeLabels("histogram",t,n);if(!i)return;let o=mr("histogram",t,i),s=this.histogramBucketsByName[t]??this.histogramBuckets,a=this.histograms.get(o);a||(a={name:t,labels:i,buckets:s,bucketCounts:s.map(()=>0),count:0,sum:0,updatedAt:this.now()},this.histograms.set(o,a)),a.count+=1,a.sum+=r,a.updatedAt=this.now();for(let l=0;l<a.buckets.length;l+=1){let u=a.buckets[l];u!==void 0&&r<=u&&(a.bucketCounts[l]=(a.bucketCounts[l]??0)+1)}this.flushWhenFull()}async flush(){this.flushInFlight&&await this.flushInFlight,this.flushInFlight=this.flushOnce().finally(()=>{this.flushInFlight=void 0}),await this.flushInFlight}async close(){this.closed=!0,this.flushTimer&&(this.clearTimer(this.flushTimer),this.flushTimer=void 0),await this.flush()}async flushOnce(){let t=this.takeSnapshot();if(!(t.length===0&&this.retryBuffer.length===0)){await this.drainRetryBuffer();for(let r of rb(t,this.maxBatchSize))await this.sendOrBuffer({service:this.serviceName,timestamp:this.now(),metrics:r})}}async drainRetryBuffer(){let t=this.retryBuffer.splice(0,this.retryBuffer.length);for(let r of t)await this.sendOrBuffer(r.request,r.attempts)}async sendOrBuffer(t,r=0){if(t.metrics.length!==0)try{await this.reporter.reportBatch(t)}catch(n){tb(n)&&r+1<this.retry.maxAttempts?this.pushRetryBatch({request:t,attempts:r+1}):this.onError?.(n)}}pushRetryBatch(t){for(this.retryBuffer.push(t);(this.retryBuffer.length>this.retry.maxRetryBatches||this.retryBuffer.reduce((r,n)=>r+n.request.metrics.length,0)>this.retry.maxRetryMetrics)&&this.retryBuffer.shift();)this.onError?.(new ze("Metrics retry buffer exceeded its limit; dropped oldest batch",{retryable:!1}))}takeSnapshot(){let t=[];for(let r of this.counters.values())t.push({type:"counter",name:r.name,labels:r.labels,value:r.value,updatedAt:r.updatedAt});this.counters.clear();for(let r of this.gauges.values())t.push({type:"gauge",name:r.name,labels:r.labels,value:r.value,updatedAt:r.updatedAt});this.stickyGauge||this.gauges.clear();for(let r of this.histograms.values())t.push({type:"histogram",name:r.name,labels:r.labels,count:r.count,sum:r.sum,buckets:Object.fromEntries(r.buckets.map((n,i)=>[String(n),r.bucketCounts[i]??0])),updatedAt:r.updatedAt});return this.histograms.clear(),t}validateAndMergeLabels(t,r,n){if(!Jy.test(r))return this.onError?.(new Error(`Invalid metric name: ${r}`)),null;let i=Bl({...this.defaultLabels,...n}),o=Object.entries(i);if(o.length>this.maxLabelKeys)return this.onError?.(new Error(`Metric ${r} has too many label keys`)),null;if(o.some(([,a])=>a.length>this.maxLabelValueLength))return this.onError?.(new Error(`Metric ${r} has a label value exceeding max length`)),null;let s=mr(t,r,i);return this.canAcceptSeries(r,s)?i:(this.onError?.(new Error(`Metric series limit exceeded for ${r}`)),null)}canAcceptSeries(t,r){if(this.counters.has(r)||this.gauges.has(r)||this.histograms.has(r))return!0;if(this.counters.size+this.gauges.size+this.histograms.size>=this.maxSeries)return!1;let i=this.metricNameSeriesCounts.get(t);return i||(i=new Set,this.metricNameSeriesCounts.set(t,i)),i.add(r),!0}flushWhenFull(){this.counters.size+this.gauges.size+this.histograms.size>=this.maxBatchSize&&this.flush().catch(r=>this.onError?.(r))}scheduleFlush(){this.flushTimer=this.setTimer(()=>{this.flush().catch(t=>this.onError?.(t)).finally(()=>{this.closed||this.scheduleFlush()})},this.flushIntervalMs),this.flushTimer.unref?.()}};function Qy(e){return new rn({...e,endpoint:eb(e),batchPath:$l})}function mr(e,t,r={}){let n=Object.keys(r).sort().map(i=>`${i}=${r[i]}`).join(",");return`${e}:${t}{${n}}`}function Bl(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>t.length>0&&r!==void 0).sort(([t],[r])=>t.localeCompare(r)))}function Fl(e){return[...new Set(e.filter(t=>Number.isFinite(t)))].sort((t,r)=>t-r)}function Zy(e){let t=e.trim();return t?t.startsWith("/")?t:`/${t}`:jl}function eb(e){let t=e.configuredDomainUrl?.trim();return t||(e.isEn?e.isProd?"https://agent.minimax.io":e.isStaging?"https://agent.minimax.io":(e.isDev,"https://agent.minimax.io"):e.isProd?"https://agent.minimax.cn":e.isStaging?"https://agent.minimaxi.com":(e.isDev,"https://agent.minimaxi.com"))}function tb(e){return e instanceof ze?e.retryable:!0}function rb(e,t){let r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r}function nb(e){return{service:e.service,timestamp:e.timestamp,metrics:e.metrics.map(t=>t.type==="histogram"?{metrics_type:t.type,name:t.name,labels:t.labels,count:t.count,sum:t.sum,buckets:t.buckets,updated_at:t.updatedAt}:{metrics_type:t.type,name:t.name,labels:t.labels,value:t.value,updated_at:t.updatedAt})}}var Pm=bl($c(),1),qm=bl(Om(),1);import YC from"node:path";import{createWriteStream as XC}from"node:fs";import{Writable as JC}from"node:stream";var BC=new Set(["authorization","proxyauthorization","apikey","apisecret","accesstoken","refreshtoken","idtoken","authtoken","bearertoken","sessiontoken","bearertokens","clientsecret","clientsecrets","clientappsecret","accesskey","accesskeyid","accesskeysecret","secretaccesskey","privatekey","signingkey","credential","credentials","password","passwd","pwd","cookie","cookies","jwt","secret","secrets"]),FC=/\bsk-[A-Za-z0-9._-]{8,}\b/gu,jC=/\b(authorization\s*[:=]\s*)((?:[A-Za-z][A-Za-z-]*)\s+)?[^,\n}]*/giu,$C=/("(?:api[_-]?key|apikey|x-api-key|authorization|access[_-]?token|refresh[_-]?token|client[_-]?secret)"\s*:\s*)"(?:\\.|[^"\\])*"/giu,UC=/((?:api[_-]?key|x-api-key|client[_-]?secret)\s*[:=]\s*)[^\s"',}]+/giu,WC=/\b(Bearer\s+)[A-Za-z0-9._~+/=-]{8,}/giu,zC=["authorization","apikey","apisecret","accesstoken","refreshtoken","idtoken","authtoken","bearertoken","sessiontoken","clientsecret","privatekey","signingkey","password","passwd","secret","credential"];function VC(e){let t=KC(e);return BC.has(t)||zC.some(r=>t.endsWith(r))}function Da(e){return e.replace(FC,"sk-***").replace($C,'$1"***"').replace(jC,(t,r,n)=>`${r}${n??""}***`).replace(UC,"$1***").replace(WC,"$1***")}var HC=8,Mm="[truncated]",GC="[circular]";function Nm(e){return Na(e,new WeakSet,0)}function Na(e,t,r){if(typeof e=="string")return Da(e);if(e===null||typeof e!="object")return e;if(r>=HC)return Mm;if(t.has(e))return GC;t.add(e);try{if(Array.isArray(e))return e.map(i=>Na(i,t,r+1));let n={};for(let[i,o]of Object.entries(e))n[i]=VC(i)?"***":Na(o,t,r+1);return n}catch{return Mm}finally{t.delete(e)}}function KC(e){return e.toLowerCase().replace(/[^a-z0-9]/gu,"")}function QC(e){try{return JSON.stringify(e)}catch{return JSON.stringify(Object.keys(e))}}function ZC(){let{stack:e}=new Error;if(!e)return;let t=e.split(`
43
- `).slice(1),r;for(let n of t){if(n.includes("structured-logger.ts")||n.includes("logger.ts")||n.includes("node:internal"))continue;let i=n.match(/at\s+(?:.+\s+\()?(.+):(\d+):(\d+)\)?$/);if(!i)continue;let o=i[1]?.replace(/^file:\/\//,""),s=i[2];if(!o||!s||o.includes("/node_modules/")||o.includes("/pino/"))continue;let a=`${YC.basename(o)}:${s}`;if(o.includes("/packages/")||o.includes("/src/"))return a;r=r??a}return r}function eI(e){let t=new Set(["level","time","pid","hostname","source","msg","traceId"]);return(0,qm.default)({colorize:e?.colorize??!1,destination:e?.destination??process.stdout,translateTime:"SYS:HH:MM:ss.l",ignore:"pid,hostname",singleLine:!0,hideObject:!0,messageFormat:(r,n)=>{let i=r.source??"",o=r.traceId,s=r[n]??"",a={};for(let d of Object.keys(r))t.has(d)||(a[d]=r[d]);let l=Nm(a),u=Object.keys(l).length>0?` ${QC(l)}`:"",c=o?` [${o}]`:"";return`[${String(i)}]${c} ${Da(String(s))}${u}
44
- `}})}function Bm(e={}){let t=e.env??process.env,r=t.NODE_ENV!=="production",i={level:e.level??t.LOG_LEVEL??"info",mixin(){let a=ZC();return a?{source:a}:{}}},o=e.destination??process.stdout,s=nI(o,e.disk);return(0,Pm.default)(i,eI({colorize:e.colorize??r,destination:s}))}var tI=/\u001b\[[0-9;?]*[ -/]*[@-~]/g;function rI(e){return e.includes("\x1B")?e.replace(tI,""):e}function nI(e,t){let r=typeof e=="number"?iI(e):e;return new JC({autoDestroy:!1,decodeStrings:!1,defaultEncoding:"utf8",write(n,i,o){let s=typeof n=="string"?n:Buffer.from(n).toString("utf8");try{r.write(s)}catch{}if(t)try{t.write(rI(s))}catch{}o()}})}function iI(e){return XC("",{fd:e,autoClose:!1})}var oI=new Set(["trace","debug","info","warn","error","fatal"]);function Dm(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.traceId=="string"}function Fm(e){return new Proxy(e,{get(t,r){let n=Reflect.get(t,r,t);return typeof r=="string"&&oI.has(r)&&typeof n=="function"?(i,...o)=>{if(Dm(i)&&!("ctx"in i))return n.call(t,{traceId:i.traceId},...o);if(i!==null&&typeof i=="object"&&"ctx"in i){let{ctx:s,...a}=i,l=Dm(s)?{traceId:s.traceId,...a}:{...a};return n.call(t,l,...o)}return n.call(t,i,...o)}:typeof n=="function"?n.bind(t):n}})}import Ct from"node:fs/promises";import It from"node:path";var sI=50*1024*1024,aI=512*1024*1024,lI=10080*60*1e3;function Wm(e){let t=e.dir,r=e.prefix??"runtime",n=e.maxBytesPerFile??sI,i=e.maxTotalBytes??aI,o=e.retentionMs??lI,s=e.now??Date.now,a=e.onError??(()=>{});if(r.length===0||/[/\\]/.test(r))throw new Error(`createDiskLogTransport: invalid prefix ${JSON.stringify(r)}`);if(n<=0||i<=0||o<=0)throw new Error("createDiskLogTransport: maxBytesPerFile, maxTotalBytes, retentionMs must be > 0");let l={hourKey:null,partIndex:0,currentPath:null,currentSize:0},u=Promise.resolve(),c=!1,d=!1,h=!1,f=!1,p=(S,C)=>C===0?`${r}-${S}.log`:`${r}-${S}.${C}.log`,m=async()=>{c||(await Ct.mkdir(t,{recursive:!0}),c=!0)},w=async S=>{let C=Pa(s());C!==l.hourKey&&(l.hourKey=C,l.partIndex=0,l.currentPath=It.join(t,p(C,0)),l.currentSize=await jm(l.currentPath),x());let O=!1;for(;l.currentSize>0&&l.currentSize+S>n;)l.partIndex+=1,l.currentPath=It.join(t,p(l.hourKey,l.partIndex)),l.currentSize=await jm(l.currentPath),O=!0;return O},y=async S=>{let C=Buffer.from(S,"utf8");try{await m()}catch(v){a(v);return}let O=!1;try{O=await w(C.byteLength)}catch(v){a(v);return}if(l.currentPath)try{await Ct.appendFile(l.currentPath,C),l.currentSize+=C.byteLength,O&&x()}catch(v){a(v)}},x=()=>{if(h){f=!0;return}h=!0,Promise.resolve().then(()=>$m({dir:t,prefix:r,maxTotalBytes:i,retentionMs:o,now:s,onError:a})).catch(S=>a(S)).finally(()=>{h=!1,f&&(f=!1,x())})};return{write:S=>{d||(u=u.then(()=>y(S)).catch(C=>{a(C)}))},flush:async()=>{await u},close:async()=>{if(!d){d=!0;try{await u}catch{}await uI(()=>!h);try{await $m({dir:t,prefix:r,maxTotalBytes:i,retentionMs:o,now:s,onError:a})}catch(S){a(S)}}},getCurrentFilePath:()=>l.currentPath}}function Pa(e){let t=new Date(e),r=t.getFullYear().toString().padStart(4,"0"),n=(t.getMonth()+1).toString().padStart(2,"0"),i=t.getDate().toString().padStart(2,"0"),o=t.getHours().toString().padStart(2,"0");return`${r}${n}${i}${o}`}async function jm(e){try{let t=await Ct.stat(e);return t.isFile()?t.size:0}catch{return 0}}async function uI(e,t=50,r=5){for(let n=0;n<t;n+=1){if(e())return;await new Promise(i=>setTimeout(i,r))}}async function $m(e){let{dir:t,prefix:r,maxTotalBytes:n,retentionMs:i,now:o,onError:s}=e,a;try{a=await Ct.readdir(t)}catch{return}let l=new RegExp(`^${cI(r)}-\\d{10}(?:\\.\\d+)?\\.log$`),u=o()-i,c=[];for(let f of a){if(!l.test(f))continue;let p=It.join(t,f);try{let m=await Ct.stat(p);if(!m.isFile())continue;c.push({path:p,size:m.size,mtimeMs:m.mtimeMs,live:!0})}catch{}}for(let f of c)if(f.mtimeMs<u)try{await Ct.unlink(f.path),f.live=!1}catch(p){s(p)}let d=c.filter(f=>f.live).sort((f,p)=>f.mtimeMs-p.mtimeMs||fI(f.path,p.path)),h=d.reduce((f,p)=>f+p.size,0);for(let f=0;f<d.length-1&&h>n;f+=1){let p=d[f];if(p)try{await Ct.unlink(p.path),h-=p.size}catch(m){s(m)}}}function cI(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fI(e,t){let r=Um(It.basename(e)),n=Um(It.basename(t));return!r||!n?It.basename(e).localeCompare(It.basename(t)):r.hourKey.localeCompare(n.hourKey)||r.partIndex-n.partIndex}function Um(e){let t=/-(\d{10})(?:\.(\d+))?\.log$/.exec(e);if(!t)return null;let r=t[1];return r?{hourKey:r,partIndex:t[2]?Number(t[2]):0}:null}function dI(e){switch(e){case"per-sender":case"per-chat":case"shared-task":return e;case"root":case"main":case"pin":return"project-main"}}var or={explore:{whenToUse:"Locate code and collect evidence with read-only Git and code investigation; cannot create or edit files. Use verifier for code review, audits, and acceptance checks."},worker:{whenToUse:"Bounded production work with explicit scope, ownership, deliverable, and acceptance."},verifier:{whenToUse:"Independently review code, audit, or validate an existing deliverable against acceptance criteria and report evidence-backed findings; no project-file changes. Temporary validation artifacts require an explicitly designated temporary location."}},qa=Object.keys(or),hI=["mavis",...qa],pI={mavis:"Broad or mixed-scope work that does not fit a specialist role.",explore:or.explore.whenToUse,worker:or.worker.whenToUse,verifier:or.verifier.whenToUse},zm=[...qa,"main","mavis"],mI=new Set(zm);function Vm(e){return e===3||e==="builtin"}function gI(e){if(typeof e?.name!="string")return;let t=e.name;return t.toLowerCase().startsWith("agent:")?t:mI.has(t.toLowerCase())&&!Vm(e.creationSource)?`agent:${t}`:t}var Hm='Use the `requestRef` returned by the native `mavis` tool with command "agent list". For built-in work use mavis, explore, worker, or verifier. Use `agent:<stable-name>` to select the exact manual/custom Agent when its name collides with a reserved role or primary alias; ordinary custom names use their raw stable name.',yI=`${Hm} "me" selects the current Agent.`,bI='Built-in name or stable custom `requestRef`. Use `agent:<stable-name>` for a custom Agent whose name collides with a reserved role or primary alias; ordinary custom names use their raw stable name. Use the native `mavis` tool with command "agent list" for discovery only when needed and available.',wI="Use explore, worker, or verifier for built-in work. For a known custom Agent, use its stable `requestRef`. Use `agent:<stable-name>` to select the exact manual/custom Agent when its name collides with a reserved role or primary alias; ordinary custom names use their raw stable name.";function Gm(e){return Object.hasOwn(or,e)}function SI(e){let t=e.trim().toLowerCase();return Gm(t)?t:void 0}function EI(){return hI.map(e=>`- ${e} \u2014 ${pI[e]}`).join(`
45
- `)}function _I(e={}){return e.includeMavis===!1?wI:bI}var Km=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico","avif"]),Ym={bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};var Ur={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",svg:"image/svg+xml",ico:"image/x-icon",avif:"image/avif",pdf:"application/pdf",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.12",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",key:"application/vnd.apple.keynote",html:"text/html",htm:"text/html",txt:"text/plain",md:"text/markdown",markdown:"text/markdown",json:"application/json",csv:"text/csv",tsv:"text/tab-separated-values",xml:"application/xml",yaml:"application/yaml",yml:"application/yaml",js:"text/javascript",jsx:"text/javascript",mjs:"text/javascript",cjs:"text/javascript",ts:"text/typescript",tsx:"text/typescript",css:"text/css",scss:"text/x-scss",sql:"application/sql",mp4:"video/mp4",webm:"video/webm",mov:"video/quicktime",mp3:"audio/mpeg",m4a:"audio/mp4",wav:"audio/wav",ogg:"audio/ogg",flac:"audio/flac",aac:"audio/aac",mkv:"video/x-matroska"};function xI(e){return e.split("#")[0]?.split("?")[0]??e}function sr(e){let t=xI(e.trim()),r=t.split("/").pop()??t,n=r.lastIndexOf(".");return n<0||n===r.length-1?"":r.slice(n+1).toLowerCase()}function Xm(e){let t=sr(e);return Ym[t]}function TI(e){let t=Xm(e);return t==="image/jpeg"||t==="image/png"}function Jm(e){return e.type?.trim().toLowerCase()??""}function wi(e){let t=Jm(e);return t==="image"||Km.has(t)?!0:t?!1:Km.has(sr(e.path))}function Ba(e){if(e.mimeType)return e.mimeType;let t=Jm(e);if(t==="html"||t==="web"||t==="website"||t==="url"||t==="link")return"text/html";if(t==="audio")return"audio/mpeg";if(t==="video")return"video/mp4";if(t==="ppt"||t==="pptx"||t==="powerpoint"||t==="presentation")return"application/vnd.openxmlformats-officedocument.presentationml.presentation";if(t==="doc"||t==="docx"||t==="word"||t==="document")return"application/vnd.openxmlformats-officedocument.wordprocessingml.document";if(t==="xls"||t==="xlsx"||t==="excel"||t==="spreadsheet")return"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";if(Ur[t])return Ur[t];let r=e.name?sr(e.name):"",n=sr(e.path);return Ur[r]??Ur[n]}var AI=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico","avif","heic"]),kI=new Set(["mp3","m4a","wav","ogg","flac","aac","opus","silk"]),RI=new Set(["mp4","webm","mov","mkv","avi"]),vI=new Set(["image","img","photo"]),LI=new Set(["audio","voice","mp3"]),CI=new Set(["video","mp4","mov"]);function Fa(e){let t=e.mimeType?.trim().toLowerCase()??"";if(t.startsWith("image/"))return"image";if(t.startsWith("audio/"))return"audio";if(t.startsWith("video/"))return"video";let r=e.type?.trim().toLowerCase()??"";if(r){if(vI.has(r))return"image";if(LI.has(r))return"audio";if(CI.has(r))return"video"}let n=(e.name?sr(e.name):"")||(e.path?sr(e.path):"");if(n){if(AI.has(n))return"image";if(kI.has(n))return"audio";if(RI.has(n))return"video"}return"file"}function II(e){return e.trim().startsWith("data:")}function OI(e){if(typeof globalThis.atob!="function")throw new Error("Base64 decoding is not available in this environment.");let t=globalThis.atob(e),r=Uint8Array.from(t,n=>n.charCodeAt(0));return new TextDecoder().decode(r)}function ja(e){if(!II(e))return null;let t=e.indexOf(",");if(t<0)return null;let r=e.slice(5,t),n=e.slice(t+1),i=r.endsWith(";base64"),o=(i?r.slice(0,-7):r).split(";")[0]||"text/plain";if(o.startsWith("image/"))return{mimeType:o,content:e};try{return{mimeType:o,content:i?OI(n):decodeURIComponent(n)}}catch{return null}}var MI={};function $a(e,t){let r=t||MI,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Zm(e,n,i)}function Zm(e,t,r){if(NI(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qm(e.children,t,r)}return Array.isArray(e)?Qm(e,t,r):""}function Qm(e,t,r){let n=[],i=-1;for(;++i<e.length;)n[i]=Zm(e[i],t,r);return n.join("")}function NI(e){return!!(e&&typeof e=="object")}var Ua={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
46
- `,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var DI={}.hasOwnProperty;function ar(e){return DI.call(Ua,e)?Ua[e]:!1}function ue(e,t,r,n){let i=e.length,o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);o<n.length;)s=n.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function pe(e,t){return e.length>0?(ue(e,e.length,0,t),e):t}var eg={}.hasOwnProperty;function tg(e){let t={},r=-1;for(;++r<e.length;)PI(t,e[r]);return t}function PI(e,t){let r;for(r in t){let i=(eg.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r],s;if(o)for(s in o){eg.call(i,s)||(i[s]=[]);let a=o[s];qI(i[s],Array.isArray(a)?a:a?[a]:[])}}}function qI(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);ue(e,0,0,n)}function Si(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}function Je(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Ee=lt(/[A-Za-z]/),me=lt(/[\dA-Za-z]/),rg=lt(/[#-'*+\--9=?A-Z^-~]/);function Wr(e){return e!==null&&(e<32||e===127)}var zr=lt(/\d/),ng=lt(/[\dA-Fa-f]/),ig=lt(/[!-/:-@[-`{-~]/);function M(e){return e!==null&&e<-2}function ie(e){return e!==null&&(e<0||e===32)}function F(e){return e===-2||e===-1||e===32}var og=lt(new RegExp("\\p{P}|\\p{S}","u")),sg=lt(/\s/);function lt(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function $(e,t,r,n){let i=n?n-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return F(l)?(e.enter(r),a(l)):t(l)}function a(l){return F(l)&&o++<i?(e.consume(l),a):(e.exit(r),t(l))}}var ag={tokenize:BI};function BI(e){let t=e.attempt(this.parser.constructs.contentInitial,n,i),r;return t;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),$(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return M(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}var ug={tokenize:FI},lg={tokenize:jI};function FI(e){let t=this,r=[],n=0,i,o,s;return a;function a(E){if(n<r.length){let T=r[n];return t.containerState=T[1],e.attempt(T[0].continuation,l,u)(E)}return u(E)}function l(E){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();let T=t.events.length,R=T,S;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){S=t.events[R][1].end;break}y(n);let C=T;for(;C<t.events.length;)t.events[C][1].end={...S},C++;return ue(t.events,R+1,0,t.events.slice(T)),t.events.length=C,u(E)}return a(E)}function u(E){if(n===r.length){if(!i)return h(E);if(i.currentConstruct&&i.currentConstruct.concrete)return p(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(lg,c,d)(E)}function c(E){return i&&x(),y(n),h(E)}function d(E){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,p(E)}function h(E){return t.containerState={},e.attempt(lg,f,p)(E)}function f(E){return n++,r.push([t.currentConstruct,t.containerState]),h(E)}function p(E){if(E===null){i&&x(),y(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),m(E)}function m(E){if(E===null){w(e.exit("chunkFlow"),!0),y(0),e.consume(E);return}return M(E)?(e.consume(E),w(e.exit("chunkFlow")),n=0,t.interrupt=void 0,a):(e.consume(E),m)}function w(E,T){let R=t.sliceStream(E);if(T&&R.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(R),t.parser.lazy[E.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<s&&(!i.events[S][1].end||i.events[S][1].end.offset>s))return;let C=t.events.length,O=C,v,N;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(v){N=t.events[O][1].end;break}v=!0}for(y(n),S=C;S<t.events.length;)t.events[S][1].end={...N},S++;ue(t.events,O+1,0,t.events.slice(C)),t.events.length=S}}function y(E){let T=r.length;for(;T-- >E;){let R=r[T];t.containerState=R[1],R[0].exit.call(t,e)}r.length=E}function x(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function jI(e,t,r){return $(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Wa(e){if(e===null||ie(e)||sg(e))return 1;if(og(e))return 2}function lr(e,t,r){let n=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}var Vr={name:"attention",resolveAll:$I,tokenize:UI};function $I(e,t){let r=-1,n,i,o,s,a,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let d={...e[n][1].end},h={...e[r][1].start};cg(d,-l),cg(h,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:h},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[n][1].end={...s.start},e[r][1].start={...a.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=pe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=pe(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=pe(u,lr(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=pe(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=pe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,ue(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function UI(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Wa(n),o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;let u=e.exit("attentionSequence"),c=Wa(l),d=!c||c===2&&i||r.includes(l),h=!i||i===2&&c||r.includes(n);return u._open=!!(o===42?d:d&&(i||!h)),u._close=!!(o===42?h:h&&(c||!d)),t(l)}}function cg(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var za={name:"autolink",tokenize:WI};function WI(e,t,r){let n=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(f){return Ee(f)?(e.consume(f),s):f===64?r(f):u(f)}function s(f){return f===43||f===45||f===46||me(f)?(n=1,a(f)):u(f)}function a(f){return f===58?(e.consume(f),n=0,l):(f===43||f===45||f===46||me(f))&&n++<32?(e.consume(f),a):(n=0,u(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||Wr(f)?r(f):(e.consume(f),l)}function u(f){return f===64?(e.consume(f),c):rg(f)?(e.consume(f),u):r(f)}function c(f){return me(f)?d(f):r(f)}function d(f){return f===46?(e.consume(f),n=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):h(f)}function h(f){if((f===45||me(f))&&n++<63){let p=f===45?h:d;return e.consume(f),p}return r(f)}}var ut={partial:!0,tokenize:zI};function zI(e,t,r){return n;function n(o){return F(o)?$(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||M(o)?t(o):r(o)}}var Ei={continuation:{tokenize:HI},exit:GI,name:"blockQuote",tokenize:VI};function VI(e,t,r){let n=this;return i;function i(s){if(s===62){let a=n.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return r(s)}function o(s){return F(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function HI(e,t,r){let n=this;return i;function i(s){return F(s)?$(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(Ei,t,r)(s)}}function GI(e){e.exit("blockQuote")}var _i={name:"characterEscape",tokenize:KI};function KI(e,t,r){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return ig(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}var xi={name:"characterReference",tokenize:YI};function YI(e,t,r){let n=this,i=0,o,s;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=me,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=ng,c):(e.enter("characterReferenceValue"),o=7,s=zr,c(d))}function c(d){if(d===59&&i){let h=e.exit("characterReferenceValue");return s===me&&!ar(n.sliceSerialize(h))?r(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<o?(e.consume(d),c):r(d)}}var fg={partial:!0,tokenize:JI},Ti={concrete:!0,name:"codeFenced",tokenize:XI};function XI(e,t,r){let n=this,i={partial:!0,tokenize:R},o=0,s=0,a;return l;function l(S){return u(S)}function u(S){let C=n.events[n.events.length-1];return o=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===a?(s++,e.consume(S),c):s<3?r(S):(e.exit("codeFencedFenceSequence"),F(S)?$(e,d,"whitespace")(S):d(S))}function d(S){return S===null||M(S)?(e.exit("codeFencedFence"),n.interrupt?t(S):e.check(fg,m,T)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||M(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):F(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$(e,f,"whitespace")(S)):S===96&&S===a?r(S):(e.consume(S),h)}function f(S){return S===null||M(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||M(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===a?r(S):(e.consume(S),p)}function m(S){return e.attempt(i,T,w)(S)}function w(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y}function y(S){return o>0&&F(S)?$(e,x,"linePrefix",o+1)(S):x(S)}function x(S){return S===null||M(S)?e.check(fg,m,T)(S):(e.enter("codeFlowValue"),E(S))}function E(S){return S===null||M(S)?(e.exit("codeFlowValue"),x(S)):(e.consume(S),E)}function T(S){return e.exit("codeFenced"),t(S)}function R(S,C,O){let v=0;return N;function N(P){return S.enter("lineEnding"),S.consume(P),S.exit("lineEnding"),W}function W(P){return S.enter("codeFencedFence"),F(P)?$(S,D,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):D(P)}function D(P){return P===a?(S.enter("codeFencedFenceSequence"),_(P)):O(P)}function _(P){return P===a?(v++,S.consume(P),_):v>=s?(S.exit("codeFencedFenceSequence"),F(P)?$(S,q,"whitespace")(P):q(P)):O(P)}function q(P){return P===null||M(P)?(S.exit("codeFencedFence"),C(P)):O(P)}}}function JI(e,t,r){let n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}var Hr={name:"codeIndented",tokenize:ZI},QI={partial:!0,tokenize:e1};function ZI(e,t,r){let n=this;return i;function i(u){return e.enter("codeIndented"),$(e,o,"linePrefix",5)(u)}function o(u){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):M(u)?e.attempt(QI,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||M(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function e1(e,t,r){let n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):M(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):$(e,o,"linePrefix",5)(s)}function o(s){let a=n.events[n.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):M(s)?i(s):r(s)}}var Va={name:"codeText",previous:r1,resolve:t1,tokenize:n1};function t1(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function r1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function n1(e,t,r){let n=this,i=0,o,s;return a;function a(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),i++,l):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?r(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(s=e.enter("codeTextSequence"),o=0,d(h)):M(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||M(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),c)}function d(h){return h===96?(e.consume(h),o++,d):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",c(h))}}var Ai=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){let i=r||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Gr(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Gr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Gr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);Gr(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Gr(this.left,r.reverse())}}};function Gr(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function ki(e){let t={},r=-1,n,i,o,s,a,l,u,c=new Ai(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,i1(c,r)),r=t[r],u=!0);else if(n[1]._container){for(o=r,i=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(n[1].end={...c.get(i)[1].start},a=c.slice(i,r),a.unshift(n),c.splice(i,r-i+1,a))}}return ue(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function i1(e,t){let r=e.get(t)[1],n=e.get(t)[2],i=t-1,o=[],s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let a=s.events,l=[],u={},c,d,h=-1,f=r,p=0,m=0,w=[m];for(;f;){for(;e.get(++i)[1]!==f;);o.push(i),f._tokenizer||(c=n.sliceStream(f),f.next||c.push(null),d&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=r;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(m=h+1,w.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):w.pop(),h=w.length;h--;){let y=a.slice(w[h],w[h+1]),x=o.pop();l.push([x,x+y.length-1]),e.splice(x,2,y)}for(l.reverse(),h=-1;++h<l.length;)u[p+l[h][0]]=p+l[h][1],p+=l[h][1]-l[h][0]-1;return u}var Ha={resolve:s1,tokenize:a1},o1={partial:!0,tokenize:l1};function s1(e){return ki(e),e}function a1(e,t){let r;return n;function n(a){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):M(a)?e.check(o1,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function l1(e,t,r){let n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),$(e,o,"linePrefix")}function o(s){if(s===null||M(s))return r(s);let a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function Ri(e,t,r,n,i,o,s,a,l){let u=l||Number.POSITIVE_INFINITY,c=0;return d;function d(y){return y===60?(e.enter(n),e.enter(i),e.enter(o),e.consume(y),e.exit(o),h):y===null||y===32||y===41||Wr(y)?r(y):(e.enter(n),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(y))}function h(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(e.exit("chunkString"),e.exit(a),h(y)):y===null||y===60||M(y)?r(y):(e.consume(y),y===92?p:f)}function p(y){return y===60||y===62||y===92?(e.consume(y),f):f(y)}function m(y){return!c&&(y===null||y===41||ie(y))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(n),t(y)):c<u&&y===40?(e.consume(y),c++,m):y===41?(e.consume(y),c--,m):y===null||y===32||y===40||Wr(y)?r(y):(e.consume(y),y===92?w:m)}function w(y){return y===40||y===41||y===92?(e.consume(y),m):m(y)}}function vi(e,t,r,n,i,o){let s=this,a=0,l;return u;function u(f){return e.enter(n),e.enter(i),e.consume(f),e.exit(i),e.enter(o),c}function c(f){return a>999||f===null||f===91||f===93&&!l||f===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?r(f):f===93?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(n),t):M(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||M(f)||a++>999?(e.exit("chunkString"),c(f)):(e.consume(f),l||(l=!F(f)),f===92?h:d)}function h(f){return f===91||f===92||f===93?(e.consume(f),a++,d):d(f)}}function Li(e,t,r,n,i,o){let s;return a;function a(h){return h===34||h===39||h===40?(e.enter(n),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,l):r(h)}function l(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):(e.enter(o),u(h))}function u(h){return h===s?(e.exit(o),l(s)):h===null?r(h):M(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),$(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||M(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?d:c)}function d(h){return h===s||h===92?(e.consume(h),c):c(h)}}function Ot(e,t){let r;return n;function n(i){return M(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):F(i)?$(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}var Ga={name:"definition",tokenize:c1},u1={partial:!0,tokenize:f1};function c1(e,t,r){let n=this,i;return o;function o(f){return e.enter("definition"),s(f)}function s(f){return vi.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=Je(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):r(f)}function l(f){return ie(f)?Ot(e,u)(f):u(f)}function u(f){return Ri(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(u1,d,d)(f)}function d(f){return F(f)?$(e,h,"whitespace")(f):h(f)}function h(f){return f===null||M(f)?(e.exit("definition"),n.parser.defined.push(i),t(f)):r(f)}}function f1(e,t,r){return n;function n(a){return ie(a)?Ot(e,i)(a):r(a)}function i(a){return Li(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return F(a)?$(e,s,"whitespace")(a):s(a)}function s(a){return a===null||M(a)?t(a):r(a)}}var Ka={name:"hardBreakEscape",tokenize:d1};function d1(e,t,r){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return M(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}var Ya={name:"headingAtx",resolve:h1,tokenize:p1};function h1(e,t){let r=e.length-2,n=3,i,o;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},o={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},ue(e,n,r-n+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function p1(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||ie(c)?(e.exit("atxHeadingSequence"),a(c)):r(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||M(c)?(e.exit("atxHeading"),t(c)):F(c)?$(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||ie(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}var dg=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Xa=["pre","script","style","textarea"];var Ja={concrete:!0,name:"htmlFlow",resolveTo:y1,tokenize:b1},m1={partial:!0,tokenize:S1},g1={partial:!0,tokenize:w1};function y1(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function b1(e,t,r){let n=this,i,o,s,a,l;return u;function u(b){return c(b)}function c(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),d}function d(b){return b===33?(e.consume(b),h):b===47?(e.consume(b),o=!0,m):b===63?(e.consume(b),i=3,n.interrupt?t:g):Ee(b)?(e.consume(b),s=String.fromCharCode(b),w):r(b)}function h(b){return b===45?(e.consume(b),i=2,f):b===91?(e.consume(b),i=5,a=0,p):Ee(b)?(e.consume(b),i=4,n.interrupt?t:g):r(b)}function f(b){return b===45?(e.consume(b),n.interrupt?t:g):r(b)}function p(b){let we="CDATA[";return b===we.charCodeAt(a++)?(e.consume(b),a===we.length?n.interrupt?t:D:p):r(b)}function m(b){return Ee(b)?(e.consume(b),s=String.fromCharCode(b),w):r(b)}function w(b){if(b===null||b===47||b===62||ie(b)){let we=b===47,ft=s.toLowerCase();return!we&&!o&&Xa.includes(ft)?(i=1,n.interrupt?t(b):D(b)):dg.includes(s.toLowerCase())?(i=6,we?(e.consume(b),y):n.interrupt?t(b):D(b)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(b):o?x(b):E(b))}return b===45||me(b)?(e.consume(b),s+=String.fromCharCode(b),w):r(b)}function y(b){return b===62?(e.consume(b),n.interrupt?t:D):r(b)}function x(b){return F(b)?(e.consume(b),x):N(b)}function E(b){return b===47?(e.consume(b),N):b===58||b===95||Ee(b)?(e.consume(b),T):F(b)?(e.consume(b),E):N(b)}function T(b){return b===45||b===46||b===58||b===95||me(b)?(e.consume(b),T):R(b)}function R(b){return b===61?(e.consume(b),S):F(b)?(e.consume(b),R):E(b)}function S(b){return b===null||b===60||b===61||b===62||b===96?r(b):b===34||b===39?(e.consume(b),l=b,C):F(b)?(e.consume(b),S):O(b)}function C(b){return b===l?(e.consume(b),l=null,v):b===null||M(b)?r(b):(e.consume(b),C)}function O(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||ie(b)?R(b):(e.consume(b),O)}function v(b){return b===47||b===62||F(b)?E(b):r(b)}function N(b){return b===62?(e.consume(b),W):r(b)}function W(b){return b===null||M(b)?D(b):F(b)?(e.consume(b),W):r(b)}function D(b){return b===45&&i===2?(e.consume(b),X):b===60&&i===1?(e.consume(b),ne):b===62&&i===4?(e.consume(b),_e):b===63&&i===3?(e.consume(b),g):b===93&&i===5?(e.consume(b),be):M(b)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(m1,je,_)(b)):b===null||M(b)?(e.exit("htmlFlowData"),_(b)):(e.consume(b),D)}function _(b){return e.check(g1,q,je)(b)}function q(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),P}function P(b){return b===null||M(b)?_(b):(e.enter("htmlFlowData"),D(b))}function X(b){return b===45?(e.consume(b),g):D(b)}function ne(b){return b===47?(e.consume(b),s="",ye):D(b)}function ye(b){if(b===62){let we=s.toLowerCase();return Xa.includes(we)?(e.consume(b),_e):D(b)}return Ee(b)&&s.length<8?(e.consume(b),s+=String.fromCharCode(b),ye):D(b)}function be(b){return b===93?(e.consume(b),g):D(b)}function g(b){return b===62?(e.consume(b),_e):b===45&&i===2?(e.consume(b),g):D(b)}function _e(b){return b===null||M(b)?(e.exit("htmlFlowData"),je(b)):(e.consume(b),_e)}function je(b){return e.exit("htmlFlow"),t(b)}}function w1(e,t,r){let n=this;return i;function i(s){return M(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):r(s)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function S1(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ut,t,r)}}var Qa={name:"htmlText",tokenize:E1};function E1(e,t,r){let n=this,i,o,s;return a;function a(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),l}function l(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),R):g===63?(e.consume(g),E):Ee(g)?(e.consume(g),O):r(g)}function u(g){return g===45?(e.consume(g),c):g===91?(e.consume(g),o=0,p):Ee(g)?(e.consume(g),x):r(g)}function c(g){return g===45?(e.consume(g),f):r(g)}function d(g){return g===null?r(g):g===45?(e.consume(g),h):M(g)?(s=d,ne(g)):(e.consume(g),d)}function h(g){return g===45?(e.consume(g),f):d(g)}function f(g){return g===62?X(g):g===45?h(g):d(g)}function p(g){let _e="CDATA[";return g===_e.charCodeAt(o++)?(e.consume(g),o===_e.length?m:p):r(g)}function m(g){return g===null?r(g):g===93?(e.consume(g),w):M(g)?(s=m,ne(g)):(e.consume(g),m)}function w(g){return g===93?(e.consume(g),y):m(g)}function y(g){return g===62?X(g):g===93?(e.consume(g),y):m(g)}function x(g){return g===null||g===62?X(g):M(g)?(s=x,ne(g)):(e.consume(g),x)}function E(g){return g===null?r(g):g===63?(e.consume(g),T):M(g)?(s=E,ne(g)):(e.consume(g),E)}function T(g){return g===62?X(g):E(g)}function R(g){return Ee(g)?(e.consume(g),S):r(g)}function S(g){return g===45||me(g)?(e.consume(g),S):C(g)}function C(g){return M(g)?(s=C,ne(g)):F(g)?(e.consume(g),C):X(g)}function O(g){return g===45||me(g)?(e.consume(g),O):g===47||g===62||ie(g)?v(g):r(g)}function v(g){return g===47?(e.consume(g),X):g===58||g===95||Ee(g)?(e.consume(g),N):M(g)?(s=v,ne(g)):F(g)?(e.consume(g),v):X(g)}function N(g){return g===45||g===46||g===58||g===95||me(g)?(e.consume(g),N):W(g)}function W(g){return g===61?(e.consume(g),D):M(g)?(s=W,ne(g)):F(g)?(e.consume(g),W):v(g)}function D(g){return g===null||g===60||g===61||g===62||g===96?r(g):g===34||g===39?(e.consume(g),i=g,_):M(g)?(s=D,ne(g)):F(g)?(e.consume(g),D):(e.consume(g),q)}function _(g){return g===i?(e.consume(g),i=void 0,P):g===null?r(g):M(g)?(s=_,ne(g)):(e.consume(g),_)}function q(g){return g===null||g===34||g===39||g===60||g===61||g===96?r(g):g===47||g===62||ie(g)?v(g):(e.consume(g),q)}function P(g){return g===47||g===62||ie(g)?v(g):r(g)}function X(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):r(g)}function ne(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),ye}function ye(g){return F(g)?$(e,be,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):be(g)}function be(g){return e.enter("htmlTextData"),s(g)}}var Mt={name:"labelEnd",resolveAll:A1,resolveTo:k1,tokenize:R1},_1={tokenize:v1},x1={tokenize:L1},T1={tokenize:C1};function A1(e){let t=-1,r=[];for(;++t<e.length;){let n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&ue(e,0,e.length,r),e}function k1(e,t){let r=e.length,n=0,i,o,s,a;for(;r--;)if(i=e[r][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);let l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+n+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=pe(a,e.slice(o+1,o+n+3)),a=pe(a,[["enter",c,t]]),a=pe(a,lr(t.parser.constructs.insideSpan.null,e.slice(o+n+4,s-3),t)),a=pe(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=pe(a,e.slice(s+1)),a=pe(a,[["exit",l,t]]),ue(e,o,e.length,a),e}function R1(e,t,r){let n=this,i=n.events.length,o,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return a;function a(h){return o?o._inactive?d(h):(s=n.parser.defined.includes(Je(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):r(h)}function l(h){return h===40?e.attempt(_1,c,s?c:d)(h):h===91?e.attempt(x1,c,s?u:d)(h):s?c(h):d(h)}function u(h){return e.attempt(T1,c,d)(h)}function c(h){return t(h)}function d(h){return o._balanced=!0,r(h)}}function v1(e,t,r){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return ie(d)?Ot(e,o)(d):o(d)}function o(d){return d===41?c(d):Ri(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return ie(d)?Ot(e,l)(d):c(d)}function a(d){return r(d)}function l(d){return d===34||d===39||d===40?Li(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return ie(d)?Ot(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):r(d)}}function L1(e,t,r){let n=this;return i;function i(a){return vi.call(n,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(Je(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function C1(e,t,r){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}var Za={name:"labelStartImage",resolveAll:Mt.resolveAll,tokenize:I1};function I1(e,t,r){let n=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):r(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):t(a)}}var el={name:"labelStartLink",resolveAll:Mt.resolveAll,tokenize:O1};function O1(e,t,r){let n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}var Kr={name:"lineEnding",tokenize:M1};function M1(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),$(e,t,"linePrefix")}}var Nt={name:"thematicBreak",tokenize:N1};function N1(e,t,r){let n=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||M(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),F(u)?$(e,a,"whitespace")(u):a(u))}}var de={continuation:{tokenize:B1},exit:j1,name:"list",tokenize:q1},D1={partial:!0,tokenize:$1},P1={partial:!0,tokenize:F1};function q1(e,t,r){let n=this,i=n.events[n.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(f){let p=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:zr(f)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Nt,r,u)(f):u(f);if(!n.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return r(f)}function l(f){return zr(f)&&++s<10?(e.consume(f),l):(!n.interrupt||s<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):r(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,e.check(ut,n.interrupt?r:c,e.attempt(D1,h,d))}function c(f){return n.containerState.initialBlankLine=!0,o++,h(f)}function d(f){return F(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),h):r(f)}function h(f){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function B1(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(ut,i,o);function i(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,$(e,t,"listItemIndent",n.containerState.size+1)(a)}function o(a){return n.containerState.furtherBlankLines||!F(a)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(a)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(P1,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,$(e,e.attempt(de,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function F1(e,t,r){let n=this;return $(e,i,"listItemIndent",n.containerState.size+1);function i(o){let s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(o):r(o)}}function j1(e){e.exit(this.containerState.type)}function $1(e,t,r){let n=this;return $(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){let s=n.events[n.events.length-1];return!F(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}var Ci={name:"setextUnderline",resolveTo:U1,tokenize:W1};function U1(e,t){let r=e.length,n,i,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);let s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function W1(e,t,r){let n=this,i;return o;function o(u){let c=n.events.length,d;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){d=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),i=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),F(u)?$(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||M(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var hg={tokenize:z1};function z1(e){let t=this,r=e.attempt(ut,n,e.attempt(this.parser.constructs.flowInitial,i,$(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ha,i)),"linePrefix")));return r;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var pg={resolveAll:bg()},mg=yg("string"),gg=yg("text");function yg(e){return{resolveAll:bg(e==="text"?V1:void 0),tokenize:t};function t(r){let n=this,i=this.parser.constructs[e],o=r.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),o(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;let d=i[c],h=-1;if(d)for(;++h<d.length;){let f=d[h];if(!f.previous||f.previous.call(n,n.previous))return!0}return!1}}}function bg(e){return t;function t(r,n){let i=-1,o;for(;++i<=r.length;)o===void 0?r[i]&&r[i][1].type==="data"&&(o=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==o+2&&(r[o][1].end=r[i-1][1].end,r.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(r,n):r}}function V1(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],i=t.sliceStream(n),o=i.length,s=-1,a=0,l;for(;o--;){let u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(a=0),a){let u={type:r===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:n.start._bufferIndex+s,_index:n.start._index+o,line:n.end.line,column:n.end.column-a,offset:n.end.offset-a},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}var tl={};yl(tl,{attentionMarkers:()=>Z1,contentInitial:()=>G1,disable:()=>eO,document:()=>H1,flow:()=>Y1,flowInitial:()=>K1,insideSpan:()=>Q1,string:()=>X1,text:()=>J1});var H1={42:de,43:de,45:de,48:de,49:de,50:de,51:de,52:de,53:de,54:de,55:de,56:de,57:de,62:Ei},G1={91:Ga},K1={[-2]:Hr,[-1]:Hr,32:Hr},Y1={35:Ya,42:Nt,45:[Ci,Nt],60:Ja,61:Ci,95:Nt,96:Ti,126:Ti},X1={38:xi,92:_i},J1={[-5]:Kr,[-4]:Kr,[-3]:Kr,33:Za,38:xi,42:Vr,60:[za,Qa],91:el,92:[Ka,_i],93:Mt,95:Vr,96:Va},Q1={null:[Vr,pg]},Z1={null:[42,95]},eO={null:[]};function wg(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},i={},o=[],s=[],a=[],l=!0,u={attempt:v(C),check:v(O),consume:T,enter:R,exit:S,interrupt:v(O,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:w,parser:e,previous:null,sliceSerialize:p,sliceStream:m,write:f},d=t.tokenize.call(c,u),h;return t.resolveAll&&o.push(t),c;function f(_){return s=pe(s,_),x(),s[s.length-1]!==null?[]:(N(t,0),c.events=lr(o,c.events,c),c.events)}function p(_,q){return rO(m(_),q)}function m(_){return tO(s,_)}function w(){let{_bufferIndex:_,_index:q,line:P,column:X,offset:ne}=n;return{_bufferIndex:_,_index:q,line:P,column:X,offset:ne}}function y(_){i[_.line]=_.column,D()}function x(){let _;for(;n._index<s.length;){let q=s[n._index];if(typeof q=="string")for(_=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===_&&n._bufferIndex<q.length;)E(q.charCodeAt(n._bufferIndex));else E(q)}}function E(_){l=void 0,h=_,d=d(_)}function T(_){M(_)?(n.line++,n.column=1,n.offset+=_===-3?2:1,D()):_!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=_,l=!0}function R(_,q){let P=q||{};return P.type=_,P.start=w(),c.events.push(["enter",P,c]),a.push(P),P}function S(_){let q=a.pop();return q.end=w(),c.events.push(["exit",q,c]),q}function C(_,q){N(_,q.from)}function O(_,q){q.restore()}function v(_,q){return P;function P(X,ne,ye){let be,g,_e,je;return Array.isArray(X)?we(X):"tokenize"in X?we([X]):b(X);function b(ae){return cr;function cr($e){let dt=$e!==null&&ae[$e],Pt=$e!==null&&ae.null,Fi=[...Array.isArray(dt)?dt:dt?[dt]:[],...Array.isArray(Pt)?Pt:Pt?[Pt]:[]];return we(Fi)($e)}}function we(ae){return be=ae,g=0,ae.length===0?ye:ft(ae[g])}function ft(ae){return cr;function cr($e){return je=W(),_e=ae,ae.partial||(c.currentConstruct=ae),ae.name&&c.parser.constructs.disable.null.includes(ae.name)?Jr($e):ae.tokenize.call(q?Object.assign(Object.create(c),q):c,u,Bi,Jr)($e)}}function Bi(ae){return l=!0,_(_e,je),ne}function Jr(ae){return l=!0,je.restore(),++g<be.length?ft(be[g]):ye}}}function N(_,q){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&ue(c.events,q,c.events.length-q,_.resolve(c.events.slice(q),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function W(){let _=w(),q=c.previous,P=c.currentConstruct,X=c.events.length,ne=Array.from(a);return{from:X,restore:ye};function ye(){n=_,c.previous=q,c.currentConstruct=P,c.events.length=X,a=ne,D()}}function D(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function tO(e,t){let r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex,s;if(r===i)s=[e[r].slice(n,o)];else{if(s=e.slice(r,i),n>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(n):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function rO(e,t){let r=-1,n=[],i;for(;++r<e.length;){let o=e[r],s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
42
+ `,t),i=n<0?e.length:n;return e.slice(r,i).trim().slice(0,500)}function Py(e){if(typeof e!="string"||e.length>2e5)return;let r=Array.from(e.matchAll(/(?:^|\n)\[(?:附加字段|additional fields?)[^\]]*\]\s*/giu)).at(-1);if(r?.index!==void 0)return Ol(Il(e.slice(r.index+r[0].length)))}function Il(e){if(typeof e!="string")return e;let t=e.trim();if(t.length===0||t.length>2e5||!t.startsWith("{")&&!t.startsWith("["))return e;try{return JSON.parse(t)}catch{return e}}function Ol(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:void 0}function Y(e){return typeof e=="string"&&e.trim()?e.trim():void 0}function pr(e){if(e)try{let t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"?t.href:void 0}catch{return}}var qy=0xcbf29ce484222325n,By=0x100000001b3n,Fy=0xffffffffffffffffn;var Ml=/^[a-f0-9]{6}$/iu;function Nl(e){let t=qy;for(let r of new TextEncoder().encode(e))t^=BigInt(r),t=t*By&Fy;return`c${t.toString(36).padStart(13,"0")}`}function jy(e,t){return`${e}:call:${Nl(t)}`}function Dl(e,t){if(!Ml.test(e))return;let r=e.toLowerCase(),n=new Set;for(let i of t){if(!Ml.test(i))continue;let o=i.toLowerCase(),s=0;for(let a=0;a<r.length&&(r[a]!==o[a]&&(s+=1),!(s>1));a+=1);s===1&&n.add(o)}return n.size===1?n.values().next().value:void 0}function $y(e,t,r){let n=new Set(t);if(n.has(e))return e;let i=r.get(e)??r.get(e.toLowerCase());if(i)return i;let o=Dl(e,Array.from(r,([s,a])=>n.has(a)?s:""));return(o&&r.get(o))??e}var Vi=class{tails=new Map;async acquire(t){let r=this.tails.get(t)??Promise.resolve(),n=()=>{},i=new Promise(a=>{n=a}),o=Uy(r,i);this.tails.set(t,o),await Pl(r);let s=!1;return()=>{s||(s=!0,n(),this.tails.get(t)===o&&this.tails.delete(t))}}async run(t,r){let n=await this.acquire(t);try{return await r()}finally{n()}}};async function Uy(e,t){await Pl(e),await t}async function Pl(e){try{await e}catch{}}var Wy=[".key",".pem",".p12",".pfx",".jks",".keystore",".kdbx",".ovpn",".ppk",".tfstate"],zy=new Set([".envrc",".git-credentials",".netrc",".npmrc",".pypirc","auth.json","credentials","credentials.json","id_dsa","id_ecdsa","id_ed25519","id_rsa"]),Vy=new Set([".aws",".azure",".docker",".kube",".ssh"]);function Hy(e){let t=e.replaceAll("\\","/").toLowerCase(),r=t.split("/"),n=r.at(-1)??t;return n===".env"||n.startsWith(".env.")||n.includes("credential")||/^(?:client[-_]?secret|service[-_]?account)(?:[-_.].*)?\.json$/u.test(n)||n.includes("secret")||zy.has(n)||r.some(i=>Vy.has(i))||Wy.some(i=>n.endsWith(i))}var ql={"HTTP-Referer":"https://agent.minimax.io/","X-OpenRouter-Title":"MiniMax Code","X-OpenRouter-Categories":"cli-agent"};function Bl(e){if(!e)return!1;try{let t=new URL(e);return t.protocol==="https:"&&t.hostname.toLowerCase()==="openrouter.ai"}catch{return!1}}function Gy(e,t){if(!Bl(e))return t?{...t}:void 0;let r=new Map;for(let[n,i]of Object.entries(t??{}))r.set(n.toLowerCase(),{name:n,value:i});for(let[n,i]of Object.entries(ql))r.set(n.toLowerCase(),{name:n,value:i});return Object.fromEntries([...r.values()].map(({name:n,value:i})=>[n,i]))}var Ky=30*86400,Yy=14*86400;var Xy=[1,5,10,25,50,100,250,500,1e3,2500,5e3,1e4],Jy={maxAttempts:3,baseDelayMs:250,maxDelayMs:5e3,maxRetryBatches:100,maxRetryMetrics:1e5},Qy=/^[a-zA-Z_:][a-zA-Z0-9_:]*$/,$l="/archon/internal/api/v1/metrics/batch",Ul="/matrix/api/v1/metrics/batch",ze=class extends Error{status;retryable;constructor(t,r){super(t),this.name="MetricsReportError",this.status=r.status,this.retryable=r.retryable}},rn=class{options;constructor(t){this.options={...t,...t.endpoint?{endpoint:t.endpoint.replace(/\/+$/,""),batchPath:eb(t.batchPath??$l)}:{}}}async reportBatch(t){if(!this.options.endpoint){if(!this.options.reportMetric)throw new ze("Metrics reporter requires either endpoint or reportMetric",{retryable:!1});for(let i of t.metrics)await this.options.reportMetric(i,{service:t.service,timestamp:t.timestamp});return{accepted:t.metrics.length}}let r=new AbortController,n=setTimeout(()=>r.abort(),this.options.requestTimeoutMs??3e3);try{let i=await(this.options.fetch??fetch)(`${this.options.endpoint}${this.options.batchPath}`,{method:"POST",headers:{...this.options.headers??{},"Content-Type":"application/json"},body:JSON.stringify(ib(t)),signal:r.signal});if(!i.ok)throw new ze(`Metrics report failed with HTTP ${i.status}`,{status:i.status,retryable:i.status===429||i.status>=500});return await i.json().catch(()=>({}))}catch(i){throw i instanceof ze?i:new ze("Metrics report failed before a response was received",{retryable:!0})}finally{clearTimeout(n)}}},Hi=class{reporter;serviceName;flushIntervalMs;maxBatchSize;maxSeries;maxLabelKeys;maxLabelValueLength;defaultLabels;histogramBuckets;histogramBucketsByName;stickyGauge;retry;onError;now;setTimer;clearTimer;counters=new Map;gauges=new Map;histograms=new Map;metricNameSeriesCounts=new Map;retryBuffer=[];flushTimer;flushInFlight;closed=!1;constructor(t){this.reporter=t.reporter,this.serviceName=t.serviceName,this.flushIntervalMs=t.flushIntervalMs??5e3,this.maxBatchSize=t.maxBatchSize??1e3,this.maxSeries=t.maxSeries??5e4,this.maxLabelKeys=t.maxLabelKeys??20,this.maxLabelValueLength=t.maxLabelValueLength??512,this.defaultLabels=Fl(t.defaultLabels??{}),this.histogramBuckets=jl(t.histogramBuckets??Xy),this.histogramBucketsByName=Object.fromEntries(Object.entries(t.histogramBucketsByName??{}).map(([r,n])=>[r,jl(n)])),this.stickyGauge=t.stickyGauge??!1,this.retry={...Jy,...t.retry??{}},this.onError=t.onError,this.now=t.now??Date.now,this.setTimer=t.setTimer??setTimeout,this.clearTimer=t.clearTimer??clearTimeout,this.flushIntervalMs>0&&this.scheduleFlush()}counter(t,r=1,n={}){if(this.closed||!Number.isFinite(r)||r<=0)return;let i=this.validateAndMergeLabels("counter",t,n);if(!i)return;let o=mr("counter",t,i),s=this.counters.get(o),a=this.now();s?(s.value+=r,s.updatedAt=a):this.counters.set(o,{name:t,labels:i,value:r,updatedAt:a}),this.flushWhenFull()}gauge(t,r,n={}){if(this.closed||!Number.isFinite(r))return;let i=this.validateAndMergeLabels("gauge",t,n);i&&(this.gauges.set(mr("gauge",t,i),{name:t,labels:i,value:r,updatedAt:this.now()}),this.flushWhenFull())}histogram(t,r,n={}){if(this.closed||!Number.isFinite(r))return;let i=this.validateAndMergeLabels("histogram",t,n);if(!i)return;let o=mr("histogram",t,i),s=this.histogramBucketsByName[t]??this.histogramBuckets,a=this.histograms.get(o);a||(a={name:t,labels:i,buckets:s,bucketCounts:s.map(()=>0),count:0,sum:0,updatedAt:this.now()},this.histograms.set(o,a)),a.count+=1,a.sum+=r,a.updatedAt=this.now();for(let l=0;l<a.buckets.length;l+=1){let u=a.buckets[l];u!==void 0&&r<=u&&(a.bucketCounts[l]=(a.bucketCounts[l]??0)+1)}this.flushWhenFull()}async flush(){this.flushInFlight&&await this.flushInFlight,this.flushInFlight=this.flushOnce().finally(()=>{this.flushInFlight=void 0}),await this.flushInFlight}async close(){this.closed=!0,this.flushTimer&&(this.clearTimer(this.flushTimer),this.flushTimer=void 0),await this.flush()}async flushOnce(){let t=this.takeSnapshot();if(!(t.length===0&&this.retryBuffer.length===0)){await this.drainRetryBuffer();for(let r of nb(t,this.maxBatchSize))await this.sendOrBuffer({service:this.serviceName,timestamp:this.now(),metrics:r})}}async drainRetryBuffer(){let t=this.retryBuffer.splice(0,this.retryBuffer.length);for(let r of t)await this.sendOrBuffer(r.request,r.attempts)}async sendOrBuffer(t,r=0){if(t.metrics.length!==0)try{await this.reporter.reportBatch(t)}catch(n){rb(n)&&r+1<this.retry.maxAttempts?this.pushRetryBatch({request:t,attempts:r+1}):this.onError?.(n)}}pushRetryBatch(t){for(this.retryBuffer.push(t);(this.retryBuffer.length>this.retry.maxRetryBatches||this.retryBuffer.reduce((r,n)=>r+n.request.metrics.length,0)>this.retry.maxRetryMetrics)&&this.retryBuffer.shift();)this.onError?.(new ze("Metrics retry buffer exceeded its limit; dropped oldest batch",{retryable:!1}))}takeSnapshot(){let t=[];for(let r of this.counters.values())t.push({type:"counter",name:r.name,labels:r.labels,value:r.value,updatedAt:r.updatedAt});this.counters.clear();for(let r of this.gauges.values())t.push({type:"gauge",name:r.name,labels:r.labels,value:r.value,updatedAt:r.updatedAt});this.stickyGauge||this.gauges.clear();for(let r of this.histograms.values())t.push({type:"histogram",name:r.name,labels:r.labels,count:r.count,sum:r.sum,buckets:Object.fromEntries(r.buckets.map((n,i)=>[String(n),r.bucketCounts[i]??0])),updatedAt:r.updatedAt});return this.histograms.clear(),t}validateAndMergeLabels(t,r,n){if(!Qy.test(r))return this.onError?.(new Error(`Invalid metric name: ${r}`)),null;let i=Fl({...this.defaultLabels,...n}),o=Object.entries(i);if(o.length>this.maxLabelKeys)return this.onError?.(new Error(`Metric ${r} has too many label keys`)),null;if(o.some(([,a])=>a.length>this.maxLabelValueLength))return this.onError?.(new Error(`Metric ${r} has a label value exceeding max length`)),null;let s=mr(t,r,i);return this.canAcceptSeries(r,s)?i:(this.onError?.(new Error(`Metric series limit exceeded for ${r}`)),null)}canAcceptSeries(t,r){if(this.counters.has(r)||this.gauges.has(r)||this.histograms.has(r))return!0;if(this.counters.size+this.gauges.size+this.histograms.size>=this.maxSeries)return!1;let i=this.metricNameSeriesCounts.get(t);return i||(i=new Set,this.metricNameSeriesCounts.set(t,i)),i.add(r),!0}flushWhenFull(){this.counters.size+this.gauges.size+this.histograms.size>=this.maxBatchSize&&this.flush().catch(r=>this.onError?.(r))}scheduleFlush(){this.flushTimer=this.setTimer(()=>{this.flush().catch(t=>this.onError?.(t)).finally(()=>{this.closed||this.scheduleFlush()})},this.flushIntervalMs),this.flushTimer.unref?.()}};function Zy(e){return new rn({...e,endpoint:tb(e),batchPath:Ul})}function mr(e,t,r={}){let n=Object.keys(r).sort().map(i=>`${i}=${r[i]}`).join(",");return`${e}:${t}{${n}}`}function Fl(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>t.length>0&&r!==void 0).sort(([t],[r])=>t.localeCompare(r)))}function jl(e){return[...new Set(e.filter(t=>Number.isFinite(t)))].sort((t,r)=>t-r)}function eb(e){let t=e.trim();return t?t.startsWith("/")?t:`/${t}`:$l}function tb(e){let t=e.configuredDomainUrl?.trim();return t||(e.isEn?e.isProd?"https://agent.minimax.io":e.isStaging?"https://agent.minimax.io":(e.isDev,"https://agent.minimax.io"):e.isProd?"https://agent.minimax.cn":e.isStaging?"https://agent.minimaxi.com":(e.isDev,"https://agent.minimaxi.com"))}function rb(e){return e instanceof ze?e.retryable:!0}function nb(e,t){let r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r}function ib(e){return{service:e.service,timestamp:e.timestamp,metrics:e.metrics.map(t=>t.type==="histogram"?{metrics_type:t.type,name:t.name,labels:t.labels,count:t.count,sum:t.sum,buckets:t.buckets,updated_at:t.updatedAt}:{metrics_type:t.type,name:t.name,labels:t.labels,value:t.value,updated_at:t.updatedAt})}}var qm=wl(Uc(),1),Bm=wl(Mm(),1);import XC from"node:path";import{createWriteStream as JC}from"node:fs";import{Writable as QC}from"node:stream";var FC=new Set(["authorization","proxyauthorization","apikey","apisecret","accesstoken","refreshtoken","idtoken","authtoken","bearertoken","sessiontoken","bearertokens","clientsecret","clientsecrets","clientappsecret","accesskey","accesskeyid","accesskeysecret","secretaccesskey","privatekey","signingkey","credential","credentials","password","passwd","pwd","cookie","cookies","jwt","secret","secrets"]),jC=/\bsk-[A-Za-z0-9._-]{8,}\b/gu,$C=/\b(authorization\s*[:=]\s*)((?:[A-Za-z][A-Za-z-]*)\s+)?[^,\n}]*/giu,UC=/("(?:api[_-]?key|apikey|x-api-key|authorization|access[_-]?token|refresh[_-]?token|client[_-]?secret)"\s*:\s*)"(?:\\.|[^"\\])*"/giu,WC=/((?:api[_-]?key|x-api-key|client[_-]?secret)\s*[:=]\s*)[^\s"',}]+/giu,zC=/\b(Bearer\s+)[A-Za-z0-9._~+/=-]{8,}/giu,VC=["authorization","apikey","apisecret","accesstoken","refreshtoken","idtoken","authtoken","bearertoken","sessiontoken","clientsecret","privatekey","signingkey","password","passwd","secret","credential"];function HC(e){let t=YC(e);return FC.has(t)||VC.some(r=>t.endsWith(r))}function Pa(e){return e.replace(jC,"sk-***").replace(UC,'$1"***"').replace($C,(t,r,n)=>`${r}${n??""}***`).replace(WC,"$1***").replace(zC,"$1***")}var GC=8,Nm="[truncated]",KC="[circular]";function Dm(e){return Da(e,new WeakSet,0)}function Da(e,t,r){if(typeof e=="string")return Pa(e);if(e===null||typeof e!="object")return e;if(r>=GC)return Nm;if(t.has(e))return KC;t.add(e);try{if(Array.isArray(e))return e.map(i=>Da(i,t,r+1));let n={};for(let[i,o]of Object.entries(e))n[i]=HC(i)?"***":Da(o,t,r+1);return n}catch{return Nm}finally{t.delete(e)}}function YC(e){return e.toLowerCase().replace(/[^a-z0-9]/gu,"")}function ZC(e){try{return JSON.stringify(e)}catch{return JSON.stringify(Object.keys(e))}}function eI(){let{stack:e}=new Error;if(!e)return;let t=e.split(`
43
+ `).slice(1),r;for(let n of t){if(n.includes("structured-logger.ts")||n.includes("logger.ts")||n.includes("node:internal"))continue;let i=n.match(/at\s+(?:.+\s+\()?(.+):(\d+):(\d+)\)?$/);if(!i)continue;let o=i[1]?.replace(/^file:\/\//,""),s=i[2];if(!o||!s||o.includes("/node_modules/")||o.includes("/pino/"))continue;let a=`${XC.basename(o)}:${s}`;if(o.includes("/packages/")||o.includes("/src/"))return a;r=r??a}return r}function tI(e){let t=new Set(["level","time","pid","hostname","source","msg","traceId"]);return(0,Bm.default)({colorize:e?.colorize??!1,destination:e?.destination??process.stdout,translateTime:"SYS:HH:MM:ss.l",ignore:"pid,hostname",singleLine:!0,hideObject:!0,messageFormat:(r,n)=>{let i=r.source??"",o=r.traceId,s=r[n]??"",a={};for(let d of Object.keys(r))t.has(d)||(a[d]=r[d]);let l=Dm(a),u=Object.keys(l).length>0?` ${ZC(l)}`:"",c=o?` [${o}]`:"";return`[${String(i)}]${c} ${Pa(String(s))}${u}
44
+ `}})}function Fm(e={}){let t=e.env??process.env,r=t.NODE_ENV!=="production",i={level:e.level??t.LOG_LEVEL??"info",mixin(){let a=eI();return a?{source:a}:{}}},o=e.destination??process.stdout,s=iI(o,e.disk);return(0,qm.default)(i,tI({colorize:e.colorize??r,destination:s}))}var rI=/\u001b\[[0-9;?]*[ -/]*[@-~]/g;function nI(e){return e.includes("\x1B")?e.replace(rI,""):e}function iI(e,t){let r=typeof e=="number"?oI(e):e;return new QC({autoDestroy:!1,decodeStrings:!1,defaultEncoding:"utf8",write(n,i,o){let s=typeof n=="string"?n:Buffer.from(n).toString("utf8");try{r.write(s)}catch{}if(t)try{t.write(nI(s))}catch{}o()}})}function oI(e){return JC("",{fd:e,autoClose:!1})}var sI=new Set(["trace","debug","info","warn","error","fatal"]);function Pm(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.traceId=="string"}function jm(e){return new Proxy(e,{get(t,r){let n=Reflect.get(t,r,t);return typeof r=="string"&&sI.has(r)&&typeof n=="function"?(i,...o)=>{if(Pm(i)&&!("ctx"in i))return n.call(t,{traceId:i.traceId},...o);if(i!==null&&typeof i=="object"&&"ctx"in i){let{ctx:s,...a}=i,l=Pm(s)?{traceId:s.traceId,...a}:{...a};return n.call(t,l,...o)}return n.call(t,i,...o)}:typeof n=="function"?n.bind(t):n}})}import Ct from"node:fs/promises";import It from"node:path";var aI=50*1024*1024,lI=512*1024*1024,uI=10080*60*1e3;function zm(e){let t=e.dir,r=e.prefix??"runtime",n=e.maxBytesPerFile??aI,i=e.maxTotalBytes??lI,o=e.retentionMs??uI,s=e.now??Date.now,a=e.onError??(()=>{});if(r.length===0||/[/\\]/.test(r))throw new Error(`createDiskLogTransport: invalid prefix ${JSON.stringify(r)}`);if(n<=0||i<=0||o<=0)throw new Error("createDiskLogTransport: maxBytesPerFile, maxTotalBytes, retentionMs must be > 0");let l={hourKey:null,partIndex:0,currentPath:null,currentSize:0},u=Promise.resolve(),c=!1,d=!1,h=!1,f=!1,p=(S,C)=>C===0?`${r}-${S}.log`:`${r}-${S}.${C}.log`,m=async()=>{c||(await Ct.mkdir(t,{recursive:!0}),c=!0)},w=async S=>{let C=qa(s());C!==l.hourKey&&(l.hourKey=C,l.partIndex=0,l.currentPath=It.join(t,p(C,0)),l.currentSize=await $m(l.currentPath),x());let O=!1;for(;l.currentSize>0&&l.currentSize+S>n;)l.partIndex+=1,l.currentPath=It.join(t,p(l.hourKey,l.partIndex)),l.currentSize=await $m(l.currentPath),O=!0;return O},y=async S=>{let C=Buffer.from(S,"utf8");try{await m()}catch(v){a(v);return}let O=!1;try{O=await w(C.byteLength)}catch(v){a(v);return}if(l.currentPath)try{await Ct.appendFile(l.currentPath,C),l.currentSize+=C.byteLength,O&&x()}catch(v){a(v)}},x=()=>{if(h){f=!0;return}h=!0,Promise.resolve().then(()=>Um({dir:t,prefix:r,maxTotalBytes:i,retentionMs:o,now:s,onError:a})).catch(S=>a(S)).finally(()=>{h=!1,f&&(f=!1,x())})};return{write:S=>{d||(u=u.then(()=>y(S)).catch(C=>{a(C)}))},flush:async()=>{await u},close:async()=>{if(!d){d=!0;try{await u}catch{}await cI(()=>!h);try{await Um({dir:t,prefix:r,maxTotalBytes:i,retentionMs:o,now:s,onError:a})}catch(S){a(S)}}},getCurrentFilePath:()=>l.currentPath}}function qa(e){let t=new Date(e),r=t.getFullYear().toString().padStart(4,"0"),n=(t.getMonth()+1).toString().padStart(2,"0"),i=t.getDate().toString().padStart(2,"0"),o=t.getHours().toString().padStart(2,"0");return`${r}${n}${i}${o}`}async function $m(e){try{let t=await Ct.stat(e);return t.isFile()?t.size:0}catch{return 0}}async function cI(e,t=50,r=5){for(let n=0;n<t;n+=1){if(e())return;await new Promise(i=>setTimeout(i,r))}}async function Um(e){let{dir:t,prefix:r,maxTotalBytes:n,retentionMs:i,now:o,onError:s}=e,a;try{a=await Ct.readdir(t)}catch{return}let l=new RegExp(`^${fI(r)}-\\d{10}(?:\\.\\d+)?\\.log$`),u=o()-i,c=[];for(let f of a){if(!l.test(f))continue;let p=It.join(t,f);try{let m=await Ct.stat(p);if(!m.isFile())continue;c.push({path:p,size:m.size,mtimeMs:m.mtimeMs,live:!0})}catch{}}for(let f of c)if(f.mtimeMs<u)try{await Ct.unlink(f.path),f.live=!1}catch(p){s(p)}let d=c.filter(f=>f.live).sort((f,p)=>f.mtimeMs-p.mtimeMs||dI(f.path,p.path)),h=d.reduce((f,p)=>f+p.size,0);for(let f=0;f<d.length-1&&h>n;f+=1){let p=d[f];if(p)try{await Ct.unlink(p.path),h-=p.size}catch(m){s(m)}}}function fI(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function dI(e,t){let r=Wm(It.basename(e)),n=Wm(It.basename(t));return!r||!n?It.basename(e).localeCompare(It.basename(t)):r.hourKey.localeCompare(n.hourKey)||r.partIndex-n.partIndex}function Wm(e){let t=/-(\d{10})(?:\.(\d+))?\.log$/.exec(e);if(!t)return null;let r=t[1];return r?{hourKey:r,partIndex:t[2]?Number(t[2]):0}:null}function hI(e){switch(e){case"per-sender":case"per-chat":case"shared-task":return e;case"root":case"main":case"pin":return"project-main"}}var or={explore:{whenToUse:"Locate code and collect evidence with read-only Git and code investigation; cannot create or edit files. Use verifier for code review, audits, and acceptance checks."},worker:{whenToUse:"Bounded production work with explicit scope, ownership, deliverable, and acceptance."},verifier:{whenToUse:"Independently review code, audit, or validate an existing deliverable against acceptance criteria and report evidence-backed findings; no project-file changes. Temporary validation artifacts require an explicitly designated temporary location."}},Ba=Object.keys(or),pI=["mavis",...Ba],mI={mavis:"Broad or mixed-scope work that does not fit a specialist role.",explore:or.explore.whenToUse,worker:or.worker.whenToUse,verifier:or.verifier.whenToUse},Vm=[...Ba,"main","mavis"],gI=new Set(Vm);function Hm(e){return e===3||e==="builtin"}function yI(e){if(typeof e?.name!="string")return;let t=e.name;return t.toLowerCase().startsWith("agent:")?t:gI.has(t.toLowerCase())&&!Hm(e.creationSource)?`agent:${t}`:t}var Gm='Use the `requestRef` returned by the native `mavis` tool with command "agent list". For built-in work use mavis, explore, worker, or verifier. Use `agent:<stable-name>` to select the exact manual/custom Agent when its name collides with a reserved role or primary alias; ordinary custom names use their raw stable name.',bI=`${Gm} "me" selects the current Agent.`,wI='Built-in name or stable custom `requestRef`. Use `agent:<stable-name>` for a custom Agent whose name collides with a reserved role or primary alias; ordinary custom names use their raw stable name. Use the native `mavis` tool with command "agent list" for discovery only when needed and available.',SI="Use explore, worker, or verifier for built-in work. For a known custom Agent, use its stable `requestRef`. Use `agent:<stable-name>` to select the exact manual/custom Agent when its name collides with a reserved role or primary alias; ordinary custom names use their raw stable name.";function Km(e){return Object.hasOwn(or,e)}function EI(e){let t=e.trim().toLowerCase();return Km(t)?t:void 0}function _I(){return pI.map(e=>`- ${e} \u2014 ${mI[e]}`).join(`
45
+ `)}function xI(e={}){return e.includeMavis===!1?SI:wI}var Ym=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico","avif"]),Xm={bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};var Ur={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",svg:"image/svg+xml",ico:"image/x-icon",avif:"image/avif",pdf:"application/pdf",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.12",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",key:"application/vnd.apple.keynote",html:"text/html",htm:"text/html",txt:"text/plain",md:"text/markdown",markdown:"text/markdown",json:"application/json",csv:"text/csv",tsv:"text/tab-separated-values",xml:"application/xml",yaml:"application/yaml",yml:"application/yaml",js:"text/javascript",jsx:"text/javascript",mjs:"text/javascript",cjs:"text/javascript",ts:"text/typescript",tsx:"text/typescript",css:"text/css",scss:"text/x-scss",sql:"application/sql",mp4:"video/mp4",webm:"video/webm",mov:"video/quicktime",mp3:"audio/mpeg",m4a:"audio/mp4",wav:"audio/wav",ogg:"audio/ogg",flac:"audio/flac",aac:"audio/aac",mkv:"video/x-matroska"};function TI(e){return e.split("#")[0]?.split("?")[0]??e}function sr(e){let t=TI(e.trim()),r=t.split("/").pop()??t,n=r.lastIndexOf(".");return n<0||n===r.length-1?"":r.slice(n+1).toLowerCase()}function Jm(e){let t=sr(e);return Xm[t]}function AI(e){let t=Jm(e);return t==="image/jpeg"||t==="image/png"}function Qm(e){return e.type?.trim().toLowerCase()??""}function wi(e){let t=Qm(e);return t==="image"||Ym.has(t)?!0:t?!1:Ym.has(sr(e.path))}function Fa(e){if(e.mimeType)return e.mimeType;let t=Qm(e);if(t==="html"||t==="web"||t==="website"||t==="url"||t==="link")return"text/html";if(t==="audio")return"audio/mpeg";if(t==="video")return"video/mp4";if(t==="ppt"||t==="pptx"||t==="powerpoint"||t==="presentation")return"application/vnd.openxmlformats-officedocument.presentationml.presentation";if(t==="doc"||t==="docx"||t==="word"||t==="document")return"application/vnd.openxmlformats-officedocument.wordprocessingml.document";if(t==="xls"||t==="xlsx"||t==="excel"||t==="spreadsheet")return"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";if(Ur[t])return Ur[t];let r=e.name?sr(e.name):"",n=sr(e.path);return Ur[r]??Ur[n]}var kI=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico","avif","heic"]),RI=new Set(["mp3","m4a","wav","ogg","flac","aac","opus","silk"]),vI=new Set(["mp4","webm","mov","mkv","avi"]),LI=new Set(["image","img","photo"]),CI=new Set(["audio","voice","mp3"]),II=new Set(["video","mp4","mov"]);function ja(e){let t=e.mimeType?.trim().toLowerCase()??"";if(t.startsWith("image/"))return"image";if(t.startsWith("audio/"))return"audio";if(t.startsWith("video/"))return"video";let r=e.type?.trim().toLowerCase()??"";if(r){if(LI.has(r))return"image";if(CI.has(r))return"audio";if(II.has(r))return"video"}let n=(e.name?sr(e.name):"")||(e.path?sr(e.path):"");if(n){if(kI.has(n))return"image";if(RI.has(n))return"audio";if(vI.has(n))return"video"}return"file"}function OI(e){return e.trim().startsWith("data:")}function MI(e){if(typeof globalThis.atob!="function")throw new Error("Base64 decoding is not available in this environment.");let t=globalThis.atob(e),r=Uint8Array.from(t,n=>n.charCodeAt(0));return new TextDecoder().decode(r)}function $a(e){if(!OI(e))return null;let t=e.indexOf(",");if(t<0)return null;let r=e.slice(5,t),n=e.slice(t+1),i=r.endsWith(";base64"),o=(i?r.slice(0,-7):r).split(";")[0]||"text/plain";if(o.startsWith("image/"))return{mimeType:o,content:e};try{return{mimeType:o,content:i?MI(n):decodeURIComponent(n)}}catch{return null}}var NI={};function Ua(e,t){let r=t||NI,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return eg(e,n,i)}function eg(e,t,r){if(DI(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Zm(e.children,t,r)}return Array.isArray(e)?Zm(e,t,r):""}function Zm(e,t,r){let n=[],i=-1;for(;++i<e.length;)n[i]=eg(e[i],t,r);return n.join("")}function DI(e){return!!(e&&typeof e=="object")}var Wa={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
46
+ `,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var PI={}.hasOwnProperty;function ar(e){return PI.call(Wa,e)?Wa[e]:!1}function ue(e,t,r,n){let i=e.length,o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);o<n.length;)s=n.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function pe(e,t){return e.length>0?(ue(e,e.length,0,t),e):t}var tg={}.hasOwnProperty;function rg(e){let t={},r=-1;for(;++r<e.length;)qI(t,e[r]);return t}function qI(e,t){let r;for(r in t){let i=(tg.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r],s;if(o)for(s in o){tg.call(i,s)||(i[s]=[]);let a=o[s];BI(i[s],Array.isArray(a)?a:a?[a]:[])}}}function BI(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);ue(e,0,0,n)}function Si(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}function Je(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Ee=lt(/[A-Za-z]/),me=lt(/[\dA-Za-z]/),ng=lt(/[#-'*+\--9=?A-Z^-~]/);function Wr(e){return e!==null&&(e<32||e===127)}var zr=lt(/\d/),ig=lt(/[\dA-Fa-f]/),og=lt(/[!-/:-@[-`{-~]/);function M(e){return e!==null&&e<-2}function ie(e){return e!==null&&(e<0||e===32)}function F(e){return e===-2||e===-1||e===32}var sg=lt(new RegExp("\\p{P}|\\p{S}","u")),ag=lt(/\s/);function lt(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function $(e,t,r,n){let i=n?n-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return F(l)?(e.enter(r),a(l)):t(l)}function a(l){return F(l)&&o++<i?(e.consume(l),a):(e.exit(r),t(l))}}var lg={tokenize:FI};function FI(e){let t=e.attempt(this.parser.constructs.contentInitial,n,i),r;return t;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),$(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return M(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}var cg={tokenize:jI},ug={tokenize:$I};function jI(e){let t=this,r=[],n=0,i,o,s;return a;function a(E){if(n<r.length){let T=r[n];return t.containerState=T[1],e.attempt(T[0].continuation,l,u)(E)}return u(E)}function l(E){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();let T=t.events.length,R=T,S;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){S=t.events[R][1].end;break}y(n);let C=T;for(;C<t.events.length;)t.events[C][1].end={...S},C++;return ue(t.events,R+1,0,t.events.slice(T)),t.events.length=C,u(E)}return a(E)}function u(E){if(n===r.length){if(!i)return h(E);if(i.currentConstruct&&i.currentConstruct.concrete)return p(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ug,c,d)(E)}function c(E){return i&&x(),y(n),h(E)}function d(E){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,p(E)}function h(E){return t.containerState={},e.attempt(ug,f,p)(E)}function f(E){return n++,r.push([t.currentConstruct,t.containerState]),h(E)}function p(E){if(E===null){i&&x(),y(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),m(E)}function m(E){if(E===null){w(e.exit("chunkFlow"),!0),y(0),e.consume(E);return}return M(E)?(e.consume(E),w(e.exit("chunkFlow")),n=0,t.interrupt=void 0,a):(e.consume(E),m)}function w(E,T){let R=t.sliceStream(E);if(T&&R.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(R),t.parser.lazy[E.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<s&&(!i.events[S][1].end||i.events[S][1].end.offset>s))return;let C=t.events.length,O=C,v,N;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(v){N=t.events[O][1].end;break}v=!0}for(y(n),S=C;S<t.events.length;)t.events[S][1].end={...N},S++;ue(t.events,O+1,0,t.events.slice(C)),t.events.length=S}}function y(E){let T=r.length;for(;T-- >E;){let R=r[T];t.containerState=R[1],R[0].exit.call(t,e)}r.length=E}function x(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function $I(e,t,r){return $(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function za(e){if(e===null||ie(e)||ag(e))return 1;if(sg(e))return 2}function lr(e,t,r){let n=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}var Vr={name:"attention",resolveAll:UI,tokenize:WI};function UI(e,t){let r=-1,n,i,o,s,a,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let d={...e[n][1].end},h={...e[r][1].start};fg(d,-l),fg(h,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:h},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[n][1].end={...s.start},e[r][1].start={...a.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=pe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=pe(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=pe(u,lr(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=pe(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=pe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,ue(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function WI(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=za(n),o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;let u=e.exit("attentionSequence"),c=za(l),d=!c||c===2&&i||r.includes(l),h=!i||i===2&&c||r.includes(n);return u._open=!!(o===42?d:d&&(i||!h)),u._close=!!(o===42?h:h&&(c||!d)),t(l)}}function fg(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Va={name:"autolink",tokenize:zI};function zI(e,t,r){let n=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(f){return Ee(f)?(e.consume(f),s):f===64?r(f):u(f)}function s(f){return f===43||f===45||f===46||me(f)?(n=1,a(f)):u(f)}function a(f){return f===58?(e.consume(f),n=0,l):(f===43||f===45||f===46||me(f))&&n++<32?(e.consume(f),a):(n=0,u(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||Wr(f)?r(f):(e.consume(f),l)}function u(f){return f===64?(e.consume(f),c):ng(f)?(e.consume(f),u):r(f)}function c(f){return me(f)?d(f):r(f)}function d(f){return f===46?(e.consume(f),n=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):h(f)}function h(f){if((f===45||me(f))&&n++<63){let p=f===45?h:d;return e.consume(f),p}return r(f)}}var ut={partial:!0,tokenize:VI};function VI(e,t,r){return n;function n(o){return F(o)?$(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||M(o)?t(o):r(o)}}var Ei={continuation:{tokenize:GI},exit:KI,name:"blockQuote",tokenize:HI};function HI(e,t,r){let n=this;return i;function i(s){if(s===62){let a=n.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return r(s)}function o(s){return F(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function GI(e,t,r){let n=this;return i;function i(s){return F(s)?$(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(Ei,t,r)(s)}}function KI(e){e.exit("blockQuote")}var _i={name:"characterEscape",tokenize:YI};function YI(e,t,r){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return og(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}var xi={name:"characterReference",tokenize:XI};function XI(e,t,r){let n=this,i=0,o,s;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=me,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=ig,c):(e.enter("characterReferenceValue"),o=7,s=zr,c(d))}function c(d){if(d===59&&i){let h=e.exit("characterReferenceValue");return s===me&&!ar(n.sliceSerialize(h))?r(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<o?(e.consume(d),c):r(d)}}var dg={partial:!0,tokenize:QI},Ti={concrete:!0,name:"codeFenced",tokenize:JI};function JI(e,t,r){let n=this,i={partial:!0,tokenize:R},o=0,s=0,a;return l;function l(S){return u(S)}function u(S){let C=n.events[n.events.length-1];return o=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===a?(s++,e.consume(S),c):s<3?r(S):(e.exit("codeFencedFenceSequence"),F(S)?$(e,d,"whitespace")(S):d(S))}function d(S){return S===null||M(S)?(e.exit("codeFencedFence"),n.interrupt?t(S):e.check(dg,m,T)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||M(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):F(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$(e,f,"whitespace")(S)):S===96&&S===a?r(S):(e.consume(S),h)}function f(S){return S===null||M(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||M(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===a?r(S):(e.consume(S),p)}function m(S){return e.attempt(i,T,w)(S)}function w(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y}function y(S){return o>0&&F(S)?$(e,x,"linePrefix",o+1)(S):x(S)}function x(S){return S===null||M(S)?e.check(dg,m,T)(S):(e.enter("codeFlowValue"),E(S))}function E(S){return S===null||M(S)?(e.exit("codeFlowValue"),x(S)):(e.consume(S),E)}function T(S){return e.exit("codeFenced"),t(S)}function R(S,C,O){let v=0;return N;function N(P){return S.enter("lineEnding"),S.consume(P),S.exit("lineEnding"),W}function W(P){return S.enter("codeFencedFence"),F(P)?$(S,D,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):D(P)}function D(P){return P===a?(S.enter("codeFencedFenceSequence"),_(P)):O(P)}function _(P){return P===a?(v++,S.consume(P),_):v>=s?(S.exit("codeFencedFenceSequence"),F(P)?$(S,q,"whitespace")(P):q(P)):O(P)}function q(P){return P===null||M(P)?(S.exit("codeFencedFence"),C(P)):O(P)}}}function QI(e,t,r){let n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}var Hr={name:"codeIndented",tokenize:e1},ZI={partial:!0,tokenize:t1};function e1(e,t,r){let n=this;return i;function i(u){return e.enter("codeIndented"),$(e,o,"linePrefix",5)(u)}function o(u){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):M(u)?e.attempt(ZI,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||M(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function t1(e,t,r){let n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):M(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):$(e,o,"linePrefix",5)(s)}function o(s){let a=n.events[n.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):M(s)?i(s):r(s)}}var Ha={name:"codeText",previous:n1,resolve:r1,tokenize:i1};function r1(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function n1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function i1(e,t,r){let n=this,i=0,o,s;return a;function a(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),i++,l):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?r(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(s=e.enter("codeTextSequence"),o=0,d(h)):M(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||M(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),c)}function d(h){return h===96?(e.consume(h),o++,d):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",c(h))}}var Ai=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){let i=r||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Gr(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Gr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Gr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);Gr(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Gr(this.left,r.reverse())}}};function Gr(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function ki(e){let t={},r=-1,n,i,o,s,a,l,u,c=new Ai(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,o1(c,r)),r=t[r],u=!0);else if(n[1]._container){for(o=r,i=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(n[1].end={...c.get(i)[1].start},a=c.slice(i,r),a.unshift(n),c.splice(i,r-i+1,a))}}return ue(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function o1(e,t){let r=e.get(t)[1],n=e.get(t)[2],i=t-1,o=[],s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let a=s.events,l=[],u={},c,d,h=-1,f=r,p=0,m=0,w=[m];for(;f;){for(;e.get(++i)[1]!==f;);o.push(i),f._tokenizer||(c=n.sliceStream(f),f.next||c.push(null),d&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=r;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(m=h+1,w.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):w.pop(),h=w.length;h--;){let y=a.slice(w[h],w[h+1]),x=o.pop();l.push([x,x+y.length-1]),e.splice(x,2,y)}for(l.reverse(),h=-1;++h<l.length;)u[p+l[h][0]]=p+l[h][1],p+=l[h][1]-l[h][0]-1;return u}var Ga={resolve:a1,tokenize:l1},s1={partial:!0,tokenize:u1};function a1(e){return ki(e),e}function l1(e,t){let r;return n;function n(a){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):M(a)?e.check(s1,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function u1(e,t,r){let n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),$(e,o,"linePrefix")}function o(s){if(s===null||M(s))return r(s);let a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function Ri(e,t,r,n,i,o,s,a,l){let u=l||Number.POSITIVE_INFINITY,c=0;return d;function d(y){return y===60?(e.enter(n),e.enter(i),e.enter(o),e.consume(y),e.exit(o),h):y===null||y===32||y===41||Wr(y)?r(y):(e.enter(n),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(y))}function h(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(e.exit("chunkString"),e.exit(a),h(y)):y===null||y===60||M(y)?r(y):(e.consume(y),y===92?p:f)}function p(y){return y===60||y===62||y===92?(e.consume(y),f):f(y)}function m(y){return!c&&(y===null||y===41||ie(y))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(n),t(y)):c<u&&y===40?(e.consume(y),c++,m):y===41?(e.consume(y),c--,m):y===null||y===32||y===40||Wr(y)?r(y):(e.consume(y),y===92?w:m)}function w(y){return y===40||y===41||y===92?(e.consume(y),m):m(y)}}function vi(e,t,r,n,i,o){let s=this,a=0,l;return u;function u(f){return e.enter(n),e.enter(i),e.consume(f),e.exit(i),e.enter(o),c}function c(f){return a>999||f===null||f===91||f===93&&!l||f===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?r(f):f===93?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(n),t):M(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||M(f)||a++>999?(e.exit("chunkString"),c(f)):(e.consume(f),l||(l=!F(f)),f===92?h:d)}function h(f){return f===91||f===92||f===93?(e.consume(f),a++,d):d(f)}}function Li(e,t,r,n,i,o){let s;return a;function a(h){return h===34||h===39||h===40?(e.enter(n),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,l):r(h)}function l(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):(e.enter(o),u(h))}function u(h){return h===s?(e.exit(o),l(s)):h===null?r(h):M(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),$(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||M(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?d:c)}function d(h){return h===s||h===92?(e.consume(h),c):c(h)}}function Ot(e,t){let r;return n;function n(i){return M(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):F(i)?$(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}var Ka={name:"definition",tokenize:f1},c1={partial:!0,tokenize:d1};function f1(e,t,r){let n=this,i;return o;function o(f){return e.enter("definition"),s(f)}function s(f){return vi.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=Je(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):r(f)}function l(f){return ie(f)?Ot(e,u)(f):u(f)}function u(f){return Ri(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(c1,d,d)(f)}function d(f){return F(f)?$(e,h,"whitespace")(f):h(f)}function h(f){return f===null||M(f)?(e.exit("definition"),n.parser.defined.push(i),t(f)):r(f)}}function d1(e,t,r){return n;function n(a){return ie(a)?Ot(e,i)(a):r(a)}function i(a){return Li(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return F(a)?$(e,s,"whitespace")(a):s(a)}function s(a){return a===null||M(a)?t(a):r(a)}}var Ya={name:"hardBreakEscape",tokenize:h1};function h1(e,t,r){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return M(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}var Xa={name:"headingAtx",resolve:p1,tokenize:m1};function p1(e,t){let r=e.length-2,n=3,i,o;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},o={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},ue(e,n,r-n+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function m1(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||ie(c)?(e.exit("atxHeadingSequence"),a(c)):r(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||M(c)?(e.exit("atxHeading"),t(c)):F(c)?$(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||ie(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}var hg=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ja=["pre","script","style","textarea"];var Qa={concrete:!0,name:"htmlFlow",resolveTo:b1,tokenize:w1},g1={partial:!0,tokenize:E1},y1={partial:!0,tokenize:S1};function b1(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function w1(e,t,r){let n=this,i,o,s,a,l;return u;function u(b){return c(b)}function c(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),d}function d(b){return b===33?(e.consume(b),h):b===47?(e.consume(b),o=!0,m):b===63?(e.consume(b),i=3,n.interrupt?t:g):Ee(b)?(e.consume(b),s=String.fromCharCode(b),w):r(b)}function h(b){return b===45?(e.consume(b),i=2,f):b===91?(e.consume(b),i=5,a=0,p):Ee(b)?(e.consume(b),i=4,n.interrupt?t:g):r(b)}function f(b){return b===45?(e.consume(b),n.interrupt?t:g):r(b)}function p(b){let we="CDATA[";return b===we.charCodeAt(a++)?(e.consume(b),a===we.length?n.interrupt?t:D:p):r(b)}function m(b){return Ee(b)?(e.consume(b),s=String.fromCharCode(b),w):r(b)}function w(b){if(b===null||b===47||b===62||ie(b)){let we=b===47,ft=s.toLowerCase();return!we&&!o&&Ja.includes(ft)?(i=1,n.interrupt?t(b):D(b)):hg.includes(s.toLowerCase())?(i=6,we?(e.consume(b),y):n.interrupt?t(b):D(b)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(b):o?x(b):E(b))}return b===45||me(b)?(e.consume(b),s+=String.fromCharCode(b),w):r(b)}function y(b){return b===62?(e.consume(b),n.interrupt?t:D):r(b)}function x(b){return F(b)?(e.consume(b),x):N(b)}function E(b){return b===47?(e.consume(b),N):b===58||b===95||Ee(b)?(e.consume(b),T):F(b)?(e.consume(b),E):N(b)}function T(b){return b===45||b===46||b===58||b===95||me(b)?(e.consume(b),T):R(b)}function R(b){return b===61?(e.consume(b),S):F(b)?(e.consume(b),R):E(b)}function S(b){return b===null||b===60||b===61||b===62||b===96?r(b):b===34||b===39?(e.consume(b),l=b,C):F(b)?(e.consume(b),S):O(b)}function C(b){return b===l?(e.consume(b),l=null,v):b===null||M(b)?r(b):(e.consume(b),C)}function O(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||ie(b)?R(b):(e.consume(b),O)}function v(b){return b===47||b===62||F(b)?E(b):r(b)}function N(b){return b===62?(e.consume(b),W):r(b)}function W(b){return b===null||M(b)?D(b):F(b)?(e.consume(b),W):r(b)}function D(b){return b===45&&i===2?(e.consume(b),X):b===60&&i===1?(e.consume(b),ne):b===62&&i===4?(e.consume(b),_e):b===63&&i===3?(e.consume(b),g):b===93&&i===5?(e.consume(b),be):M(b)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(g1,je,_)(b)):b===null||M(b)?(e.exit("htmlFlowData"),_(b)):(e.consume(b),D)}function _(b){return e.check(y1,q,je)(b)}function q(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),P}function P(b){return b===null||M(b)?_(b):(e.enter("htmlFlowData"),D(b))}function X(b){return b===45?(e.consume(b),g):D(b)}function ne(b){return b===47?(e.consume(b),s="",ye):D(b)}function ye(b){if(b===62){let we=s.toLowerCase();return Ja.includes(we)?(e.consume(b),_e):D(b)}return Ee(b)&&s.length<8?(e.consume(b),s+=String.fromCharCode(b),ye):D(b)}function be(b){return b===93?(e.consume(b),g):D(b)}function g(b){return b===62?(e.consume(b),_e):b===45&&i===2?(e.consume(b),g):D(b)}function _e(b){return b===null||M(b)?(e.exit("htmlFlowData"),je(b)):(e.consume(b),_e)}function je(b){return e.exit("htmlFlow"),t(b)}}function S1(e,t,r){let n=this;return i;function i(s){return M(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):r(s)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function E1(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ut,t,r)}}var Za={name:"htmlText",tokenize:_1};function _1(e,t,r){let n=this,i,o,s;return a;function a(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),l}function l(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),R):g===63?(e.consume(g),E):Ee(g)?(e.consume(g),O):r(g)}function u(g){return g===45?(e.consume(g),c):g===91?(e.consume(g),o=0,p):Ee(g)?(e.consume(g),x):r(g)}function c(g){return g===45?(e.consume(g),f):r(g)}function d(g){return g===null?r(g):g===45?(e.consume(g),h):M(g)?(s=d,ne(g)):(e.consume(g),d)}function h(g){return g===45?(e.consume(g),f):d(g)}function f(g){return g===62?X(g):g===45?h(g):d(g)}function p(g){let _e="CDATA[";return g===_e.charCodeAt(o++)?(e.consume(g),o===_e.length?m:p):r(g)}function m(g){return g===null?r(g):g===93?(e.consume(g),w):M(g)?(s=m,ne(g)):(e.consume(g),m)}function w(g){return g===93?(e.consume(g),y):m(g)}function y(g){return g===62?X(g):g===93?(e.consume(g),y):m(g)}function x(g){return g===null||g===62?X(g):M(g)?(s=x,ne(g)):(e.consume(g),x)}function E(g){return g===null?r(g):g===63?(e.consume(g),T):M(g)?(s=E,ne(g)):(e.consume(g),E)}function T(g){return g===62?X(g):E(g)}function R(g){return Ee(g)?(e.consume(g),S):r(g)}function S(g){return g===45||me(g)?(e.consume(g),S):C(g)}function C(g){return M(g)?(s=C,ne(g)):F(g)?(e.consume(g),C):X(g)}function O(g){return g===45||me(g)?(e.consume(g),O):g===47||g===62||ie(g)?v(g):r(g)}function v(g){return g===47?(e.consume(g),X):g===58||g===95||Ee(g)?(e.consume(g),N):M(g)?(s=v,ne(g)):F(g)?(e.consume(g),v):X(g)}function N(g){return g===45||g===46||g===58||g===95||me(g)?(e.consume(g),N):W(g)}function W(g){return g===61?(e.consume(g),D):M(g)?(s=W,ne(g)):F(g)?(e.consume(g),W):v(g)}function D(g){return g===null||g===60||g===61||g===62||g===96?r(g):g===34||g===39?(e.consume(g),i=g,_):M(g)?(s=D,ne(g)):F(g)?(e.consume(g),D):(e.consume(g),q)}function _(g){return g===i?(e.consume(g),i=void 0,P):g===null?r(g):M(g)?(s=_,ne(g)):(e.consume(g),_)}function q(g){return g===null||g===34||g===39||g===60||g===61||g===96?r(g):g===47||g===62||ie(g)?v(g):(e.consume(g),q)}function P(g){return g===47||g===62||ie(g)?v(g):r(g)}function X(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):r(g)}function ne(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),ye}function ye(g){return F(g)?$(e,be,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):be(g)}function be(g){return e.enter("htmlTextData"),s(g)}}var Mt={name:"labelEnd",resolveAll:k1,resolveTo:R1,tokenize:v1},x1={tokenize:L1},T1={tokenize:C1},A1={tokenize:I1};function k1(e){let t=-1,r=[];for(;++t<e.length;){let n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&ue(e,0,e.length,r),e}function R1(e,t){let r=e.length,n=0,i,o,s,a;for(;r--;)if(i=e[r][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);let l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+n+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=pe(a,e.slice(o+1,o+n+3)),a=pe(a,[["enter",c,t]]),a=pe(a,lr(t.parser.constructs.insideSpan.null,e.slice(o+n+4,s-3),t)),a=pe(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=pe(a,e.slice(s+1)),a=pe(a,[["exit",l,t]]),ue(e,o,e.length,a),e}function v1(e,t,r){let n=this,i=n.events.length,o,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return a;function a(h){return o?o._inactive?d(h):(s=n.parser.defined.includes(Je(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):r(h)}function l(h){return h===40?e.attempt(x1,c,s?c:d)(h):h===91?e.attempt(T1,c,s?u:d)(h):s?c(h):d(h)}function u(h){return e.attempt(A1,c,d)(h)}function c(h){return t(h)}function d(h){return o._balanced=!0,r(h)}}function L1(e,t,r){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return ie(d)?Ot(e,o)(d):o(d)}function o(d){return d===41?c(d):Ri(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return ie(d)?Ot(e,l)(d):c(d)}function a(d){return r(d)}function l(d){return d===34||d===39||d===40?Li(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return ie(d)?Ot(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):r(d)}}function C1(e,t,r){let n=this;return i;function i(a){return vi.call(n,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(Je(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function I1(e,t,r){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}var el={name:"labelStartImage",resolveAll:Mt.resolveAll,tokenize:O1};function O1(e,t,r){let n=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):r(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):t(a)}}var tl={name:"labelStartLink",resolveAll:Mt.resolveAll,tokenize:M1};function M1(e,t,r){let n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}var Kr={name:"lineEnding",tokenize:N1};function N1(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),$(e,t,"linePrefix")}}var Nt={name:"thematicBreak",tokenize:D1};function D1(e,t,r){let n=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||M(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),F(u)?$(e,a,"whitespace")(u):a(u))}}var de={continuation:{tokenize:F1},exit:$1,name:"list",tokenize:B1},P1={partial:!0,tokenize:U1},q1={partial:!0,tokenize:j1};function B1(e,t,r){let n=this,i=n.events[n.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(f){let p=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:zr(f)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Nt,r,u)(f):u(f);if(!n.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return r(f)}function l(f){return zr(f)&&++s<10?(e.consume(f),l):(!n.interrupt||s<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):r(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,e.check(ut,n.interrupt?r:c,e.attempt(P1,h,d))}function c(f){return n.containerState.initialBlankLine=!0,o++,h(f)}function d(f){return F(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),h):r(f)}function h(f){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function F1(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(ut,i,o);function i(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,$(e,t,"listItemIndent",n.containerState.size+1)(a)}function o(a){return n.containerState.furtherBlankLines||!F(a)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(a)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(q1,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,$(e,e.attempt(de,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function j1(e,t,r){let n=this;return $(e,i,"listItemIndent",n.containerState.size+1);function i(o){let s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(o):r(o)}}function $1(e){e.exit(this.containerState.type)}function U1(e,t,r){let n=this;return $(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){let s=n.events[n.events.length-1];return!F(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}var Ci={name:"setextUnderline",resolveTo:W1,tokenize:z1};function W1(e,t){let r=e.length,n,i,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);let s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function z1(e,t,r){let n=this,i;return o;function o(u){let c=n.events.length,d;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){d=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),i=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),F(u)?$(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||M(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var pg={tokenize:V1};function V1(e){let t=this,r=e.attempt(ut,n,e.attempt(this.parser.constructs.flowInitial,i,$(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ga,i)),"linePrefix")));return r;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var mg={resolveAll:wg()},gg=bg("string"),yg=bg("text");function bg(e){return{resolveAll:wg(e==="text"?H1:void 0),tokenize:t};function t(r){let n=this,i=this.parser.constructs[e],o=r.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),o(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;let d=i[c],h=-1;if(d)for(;++h<d.length;){let f=d[h];if(!f.previous||f.previous.call(n,n.previous))return!0}return!1}}}function wg(e){return t;function t(r,n){let i=-1,o;for(;++i<=r.length;)o===void 0?r[i]&&r[i][1].type==="data"&&(o=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==o+2&&(r[o][1].end=r[i-1][1].end,r.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(r,n):r}}function H1(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],i=t.sliceStream(n),o=i.length,s=-1,a=0,l;for(;o--;){let u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(a=0),a){let u={type:r===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:n.start._bufferIndex+s,_index:n.start._index+o,line:n.end.line,column:n.end.column-a,offset:n.end.offset-a},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}var rl={};bl(rl,{attentionMarkers:()=>eO,contentInitial:()=>K1,disable:()=>tO,document:()=>G1,flow:()=>X1,flowInitial:()=>Y1,insideSpan:()=>Z1,string:()=>J1,text:()=>Q1});var G1={42:de,43:de,45:de,48:de,49:de,50:de,51:de,52:de,53:de,54:de,55:de,56:de,57:de,62:Ei},K1={91:Ka},Y1={[-2]:Hr,[-1]:Hr,32:Hr},X1={35:Xa,42:Nt,45:[Ci,Nt],60:Qa,61:Ci,95:Nt,96:Ti,126:Ti},J1={38:xi,92:_i},Q1={[-5]:Kr,[-4]:Kr,[-3]:Kr,33:el,38:xi,42:Vr,60:[Va,Za],91:tl,92:[Ya,_i],93:Mt,95:Vr,96:Ha},Z1={null:[Vr,mg]},eO={null:[42,95]},tO={null:[]};function Sg(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},i={},o=[],s=[],a=[],l=!0,u={attempt:v(C),check:v(O),consume:T,enter:R,exit:S,interrupt:v(O,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:w,parser:e,previous:null,sliceSerialize:p,sliceStream:m,write:f},d=t.tokenize.call(c,u),h;return t.resolveAll&&o.push(t),c;function f(_){return s=pe(s,_),x(),s[s.length-1]!==null?[]:(N(t,0),c.events=lr(o,c.events,c),c.events)}function p(_,q){return nO(m(_),q)}function m(_){return rO(s,_)}function w(){let{_bufferIndex:_,_index:q,line:P,column:X,offset:ne}=n;return{_bufferIndex:_,_index:q,line:P,column:X,offset:ne}}function y(_){i[_.line]=_.column,D()}function x(){let _;for(;n._index<s.length;){let q=s[n._index];if(typeof q=="string")for(_=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===_&&n._bufferIndex<q.length;)E(q.charCodeAt(n._bufferIndex));else E(q)}}function E(_){l=void 0,h=_,d=d(_)}function T(_){M(_)?(n.line++,n.column=1,n.offset+=_===-3?2:1,D()):_!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=_,l=!0}function R(_,q){let P=q||{};return P.type=_,P.start=w(),c.events.push(["enter",P,c]),a.push(P),P}function S(_){let q=a.pop();return q.end=w(),c.events.push(["exit",q,c]),q}function C(_,q){N(_,q.from)}function O(_,q){q.restore()}function v(_,q){return P;function P(X,ne,ye){let be,g,_e,je;return Array.isArray(X)?we(X):"tokenize"in X?we([X]):b(X);function b(ae){return cr;function cr($e){let dt=$e!==null&&ae[$e],Pt=$e!==null&&ae.null,ji=[...Array.isArray(dt)?dt:dt?[dt]:[],...Array.isArray(Pt)?Pt:Pt?[Pt]:[]];return we(ji)($e)}}function we(ae){return be=ae,g=0,ae.length===0?ye:ft(ae[g])}function ft(ae){return cr;function cr($e){return je=W(),_e=ae,ae.partial||(c.currentConstruct=ae),ae.name&&c.parser.constructs.disable.null.includes(ae.name)?Jr($e):ae.tokenize.call(q?Object.assign(Object.create(c),q):c,u,Fi,Jr)($e)}}function Fi(ae){return l=!0,_(_e,je),ne}function Jr(ae){return l=!0,je.restore(),++g<be.length?ft(be[g]):ye}}}function N(_,q){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&ue(c.events,q,c.events.length-q,_.resolve(c.events.slice(q),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function W(){let _=w(),q=c.previous,P=c.currentConstruct,X=c.events.length,ne=Array.from(a);return{from:X,restore:ye};function ye(){n=_,c.previous=q,c.currentConstruct=P,c.events.length=X,a=ne,D()}}function D(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function rO(e,t){let r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex,s;if(r===i)s=[e[r].slice(n,o)];else{if(s=e.slice(r,i),n>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(n):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function nO(e,t){let r=-1,n=[],i;for(;++r<e.length;){let o=e[r],s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
47
47
  `;break}case-3:{s=`\r
48
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,n.push(s)}return n.join("")}function rl(e){let n={constructs:tg([tl,...(e||{}).extensions||[]]),content:i(ag),defined:[],document:i(ug),flow:i(hg),lazy:{},string:i(mg),text:i(gg)};return n;function i(o){return s;function s(a){return wg(n,o,a)}}}function nl(e){for(;!ki(e););return e}var Sg=/[\0\t\n\r]/g;function il(){let e=1,t="",r=!0,n;return i;function i(o,s,a){let l=[],u,c,d,h,f;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),d=0,t="",r&&(o.charCodeAt(0)===65279&&d++,r=void 0);d<o.length;){if(Sg.lastIndex=d,u=Sg.exec(o),h=u&&u.index!==void 0?u.index:o.length,f=o.charCodeAt(h),!u){t=o.slice(d);break}if(f===10&&d===h&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),d<h&&(l.push(o.slice(d,h)),e+=h-d),f){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}d=h+1}return a&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}var nO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Eg(e){return e.replace(nO,iO)}function iO(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let i=r.charCodeAt(1),o=i===120||i===88;return Si(r.slice(o?2:1),o?16:10)}return ar(r)||e}function ur(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?_g(e.position):"start"in e||"end"in e?_g(e):"line"in e||"column"in e?ol(e):""}function ol(e){return xg(e&&e.line)+":"+xg(e&&e.column)}function _g(e){return ol(e&&e.start)+"-"+ol(e&&e.end)}function xg(e){return e&&typeof e=="number"?e:1}var Ag={}.hasOwnProperty;function sl(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),oO(r)(nl(rl(r).document().write(il()(e,t,!0))))}function oO(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ml),autolinkProtocol:v,autolinkEmail:v,atxHeading:o(dl),blockQuote:o($e),characterEscape:v,characterReference:v,codeFenced:o(dt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(dt,s),codeText:o(Pt,s),codeTextData:v,data:v,codeFlowValue:v,definition:o(Fi),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Wg),hardBreakEscape:o(hl),hardBreakTrailing:o(hl),htmlFlow:o(pl,s),htmlFlowData:v,htmlText:o(pl,s),htmlTextData:v,image:o(zg),label:s,link:o(ml),listItem:o(Vg),listItemValue:h,listOrdered:o(gl,d),listUnordered:o(gl),paragraph:o(Hg),reference:b,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(dl),strong:o(Gg),thematicBreak:o(Yg)},exit:{atxHeading:l(),atxHeadingSequence:R,autolink:l(),autolinkEmail:cr,autolinkProtocol:ae,blockQuote:l(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:ft,characterReferenceMarkerNumeric:ft,characterReferenceValue:Bi,characterReference:Jr,codeFenced:l(w),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:p,codeFlowValue:N,codeIndented:l(y),codeText:l(P),codeTextData:N,data:N,definition:l(),definitionDestinationString:T,definitionLabelString:x,definitionTitleString:E,emphasis:l(),hardBreakEscape:l(D),hardBreakTrailing:l(D),htmlFlow:l(_),htmlFlowData:N,htmlText:l(q),htmlTextData:N,image:l(ne),label:be,labelText:ye,lineEnding:W,link:l(X),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:we,resourceDestinationString:g,resourceTitleString:_e,resource:je,setextHeading:l(O),setextHeadingLineSequence:C,setextHeadingText:S,strong:l(),thematicBreak:l()}};kg(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(A){let I={type:"root",children:[]},j={stack:[I],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:r},K=[],J=-1;for(;++J<A.length;)if(A[J][1].type==="listOrdered"||A[J][1].type==="listUnordered")if(A[J][0]==="enter")K.push(J);else{let ke=K.pop();J=i(A,ke,J)}for(J=-1;++J<A.length;){let ke=t[A[J][0]];Ag.call(ke,A[J][1].type)&&ke[A[J][1].type].call(Object.assign({sliceSerialize:A[J][2].sliceSerialize},j),A[J][1])}if(j.tokenStack.length>0){let ke=j.tokenStack[j.tokenStack.length-1];(ke[1]||Tg).call(j,void 0,ke[0])}for(I.position={start:ct(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:ct(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},J=-1;++J<t.transforms.length;)I=t.transforms[J](I)||I;return I}function i(A,I,j){let K=I-1,J=-1,ke=!1,ht,Ue,fr,dr;for(;++K<=j;){let Se=A[K];switch(Se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Se[0]==="enter"?J++:J--,dr=void 0;break}case"lineEndingBlank":{Se[0]==="enter"&&(ht&&!dr&&!J&&!fr&&(fr=K),dr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dr=void 0}if(!J&&Se[0]==="enter"&&Se[1].type==="listItemPrefix"||J===-1&&Se[0]==="exit"&&(Se[1].type==="listUnordered"||Se[1].type==="listOrdered")){if(ht){let qt=K;for(Ue=void 0;qt--;){let We=A[qt];if(We[1].type==="lineEnding"||We[1].type==="lineEndingBlank"){if(We[0]==="exit")continue;Ue&&(A[Ue][1].type="lineEndingBlank",ke=!0),We[1].type="lineEnding",Ue=qt}else if(!(We[1].type==="linePrefix"||We[1].type==="blockQuotePrefix"||We[1].type==="blockQuotePrefixWhitespace"||We[1].type==="blockQuoteMarker"||We[1].type==="listItemIndent"))break}fr&&(!Ue||fr<Ue)&&(ht._spread=!0),ht.end=Object.assign({},Ue?A[Ue][1].start:Se[1].end),A.splice(Ue||K,0,["exit",ht,Se[2]]),K++,j++}if(Se[1].type==="listItemPrefix"){let qt={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start),end:void 0};ht=qt,A.splice(K,0,["enter",qt,Se[2]]),K++,j++,fr=void 0,dr=!0}}}return A[I][1]._spread=ke,j}function o(A,I){return j;function j(K){a.call(this,A(K),K),I&&I.call(this,K)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(A,I,j){this.stack[this.stack.length-1].children.push(A),this.stack.push(A),this.tokenStack.push([I,j||void 0]),A.position={start:ct(I.start),end:void 0}}function l(A){return I;function I(j){A&&A.call(this,j),u.call(this,j)}}function u(A,I){let j=this.stack.pop(),K=this.tokenStack.pop();if(K)K[0].type!==A.type&&(I?I.call(this,A,K[0]):(K[1]||Tg).call(this,A,K[0]));else throw new Error("Cannot close `"+A.type+"` ("+ur({start:A.start,end:A.end})+"): it\u2019s not open");j.position.end=ct(A.end)}function c(){return $a(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(A){if(this.data.expectingFirstListItemValue){let I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(A),10),this.data.expectingFirstListItemValue=void 0}}function f(){let A=this.resume(),I=this.stack[this.stack.length-1];I.lang=A}function p(){let A=this.resume(),I=this.stack[this.stack.length-1];I.meta=A}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){let A=this.resume(),I=this.stack[this.stack.length-1];I.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let A=this.resume(),I=this.stack[this.stack.length-1];I.value=A.replace(/(\r?\n|\r)$/g,"")}function x(A){let I=this.resume(),j=this.stack[this.stack.length-1];j.label=I,j.identifier=Je(this.sliceSerialize(A)).toLowerCase()}function E(){let A=this.resume(),I=this.stack[this.stack.length-1];I.title=A}function T(){let A=this.resume(),I=this.stack[this.stack.length-1];I.url=A}function R(A){let I=this.stack[this.stack.length-1];if(!I.depth){let j=this.sliceSerialize(A).length;I.depth=j}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(A){let I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(A).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function v(A){let j=this.stack[this.stack.length-1].children,K=j[j.length-1];(!K||K.type!=="text")&&(K=Kg(),K.position={start:ct(A.start),end:void 0},j.push(K)),this.stack.push(K)}function N(A){let I=this.stack.pop();I.value+=this.sliceSerialize(A),I.position.end=ct(A.end)}function W(A){let I=this.stack[this.stack.length-1];if(this.data.atHardBreak){let j=I.children[I.children.length-1];j.position.end=ct(A.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(v.call(this,A),N.call(this,A))}function D(){this.data.atHardBreak=!0}function _(){let A=this.resume(),I=this.stack[this.stack.length-1];I.value=A}function q(){let A=this.resume(),I=this.stack[this.stack.length-1];I.value=A}function P(){let A=this.resume(),I=this.stack[this.stack.length-1];I.value=A}function X(){let A=this.stack[this.stack.length-1];if(this.data.inReference){let I=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=I,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function ne(){let A=this.stack[this.stack.length-1];if(this.data.inReference){let I=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=I,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function ye(A){let I=this.sliceSerialize(A),j=this.stack[this.stack.length-2];j.label=Eg(I),j.identifier=Je(I).toLowerCase()}function be(){let A=this.stack[this.stack.length-1],I=this.resume(),j=this.stack[this.stack.length-1];if(this.data.inReference=!0,j.type==="link"){let K=A.children;j.children=K}else j.alt=I}function g(){let A=this.resume(),I=this.stack[this.stack.length-1];I.url=A}function _e(){let A=this.resume(),I=this.stack[this.stack.length-1];I.title=A}function je(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function we(A){let I=this.resume(),j=this.stack[this.stack.length-1];j.label=I,j.identifier=Je(this.sliceSerialize(A)).toLowerCase(),this.data.referenceType="full"}function ft(A){this.data.characterReferenceType=A.type}function Bi(A){let I=this.sliceSerialize(A),j=this.data.characterReferenceType,K;j?(K=Si(I,j==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):K=ar(I);let J=this.stack[this.stack.length-1];J.value+=K}function Jr(A){let I=this.stack.pop();I.position.end=ct(A.end)}function ae(A){N.call(this,A);let I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(A)}function cr(A){N.call(this,A);let I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(A)}function $e(){return{type:"blockquote",children:[]}}function dt(){return{type:"code",lang:null,meta:null,value:""}}function Pt(){return{type:"inlineCode",value:""}}function Fi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Wg(){return{type:"emphasis",children:[]}}function dl(){return{type:"heading",depth:0,children:[]}}function hl(){return{type:"break"}}function pl(){return{type:"html",value:""}}function zg(){return{type:"image",title:null,url:"",alt:null}}function ml(){return{type:"link",title:null,url:"",children:[]}}function gl(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function Vg(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function Hg(){return{type:"paragraph",children:[]}}function Gg(){return{type:"strong",children:[]}}function Kg(){return{type:"text",value:""}}function Yg(){return{type:"thematicBreak"}}}function ct(e){return{line:e.line,column:e.column,offset:e.offset}}function kg(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?kg(e,n):sO(e,n)}}function sO(e,t){let r;for(r in t)if(Ag.call(t,r))switch(r){case"canContainEols":{let n=t[r];n&&e[r].push(...n);break}case"transforms":{let n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{let n=t[r];n&&Object.assign(e[r],n);break}}}function Tg(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ur({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ur({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ur({start:t.start,end:t.end})+") is still open")}function aO(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function lO(e){return e.includes("`")||e.includes("~~~")||e.includes(" ")||e.includes(" ")}function uO(e,t,r){return typeof r=="function"?e.replace(t,(n,...i)=>r(n,...i)):e.replace(t,r)}function Rg(e){if(e.length<=1)return e;let t=e.filter(n=>n.end>n.start).sort((n,i)=>n.start-i.start||n.end-i.end),r=[];for(let n of t){let i=r[r.length-1];if(!i||n.start>i.end){r.push({...n});continue}i.end=Math.max(i.end,n.end)}return r}function cO(e){let t=[],r=0;for(;r<e.length;){let n=e.indexOf(`
49
- `,r),i=n===-1?e.length:n,o=n===-1?e.length:n+1,s=e.slice(r,i),a=/^( {0,3})(`{3,}|~{3,})/.exec(s);if(!a){r=o;continue}let l=a[2]??"",u=l[0]??"";if(!l||!u){r=o;continue}let c=l.length,d=new RegExp(`^ {0,3}${aO(u)}{${c},}\\s*$`),h=o,f=e.length;for(;h<e.length;){let p=e.indexOf(`
50
- `,h),m=p===-1?e.length:p,w=p===-1?e.length:p+1,y=e.slice(h,m);if(d.test(y)){f=w;break}h=w}t.push({start:r,end:f}),r=f}return t}function fO(e){if(!/`{3}|~{3}| {4}|\t/.test(e))return[];let t=[],r=[...sl(e).children];for(let n of r){let i=n.position?.start.offset,o=n.position?.end.offset;if(i!==void 0&&o!==void 0){if(n.type==="code")t.push({start:i,end:o});else if(n.type==="html")for(let s of cO(e.slice(i,o)))t.push({start:i+s.start,end:i+s.end})}if("children"in n)for(let s of n.children)r.push(s)}return Rg(t)}function dO(e,t){let r=[],n=0,i=(o,s)=>{let a=o;for(;a<s;){if(e[a]!=="`"){a+=1;continue}let l=a,u=a+1;for(;u<s&&e[u]==="`";)u+=1;let c=e.slice(l,u),d=e.indexOf(c,u);if(d===-1||d>=s){a=u;continue}r.push({start:l,end:d+c.length}),a=d+c.length}};for(let o of t)n<o.start&&i(n,o.start),n=Math.max(n,o.end);return n<e.length&&i(n,e.length),r}function Oi(e){if(!lO(e))return[];let t=fO(e),r=dO(e,t);return Rg([...t,...r])}function hO(e,t){return t.some(r=>e>=r.start&&e<r.end)}function pO(e){let t=e.at(-1),r=t!==null&&typeof t=="object"?e.at(-3):e.at(-2);return typeof r=="number"?r:null}var Ii=class{text;ranges;constructor(t){this.text=t}get value(){return this.text}protectedRanges(){return this.ranges??=Oi(this.text),this.ranges}update(t){return t!==this.text&&(this.text=t,this.ranges=void 0),this}map(t){let r=vg(this.text,this.protectedRanges()).map(n=>n.type==="protected"?n.content:t(n.content)).join("");return this.update(r)}replace(t,r){t.lastIndex=0;let n=t.test(this.text);if(t.lastIndex=0,!n)return this;let i=this.protectedRanges();if(i.length===0)return this.update(uO(this.text,t,r));let o=this.text.replace(t,(s,...a)=>{let l=pO(a);return l!==null&&hO(l,i)?s:typeof r=="function"?r(s,...a):r});return this.update(o)}};function Yr(e,t,r){return new Ii(e).replace(t,r).value}function HB(e){return vg(e,Oi(e))}function vg(e,t){if(t.length===0)return[{type:"text",content:e}];let r=[],n=0;for(let i of t)n<i.start&&r.push({type:"text",content:e.slice(n,i.start)}),r.push({type:"protected",content:e.slice(i.start,i.end)}),n=i.end;return n<e.length&&r.push({type:"text",content:e.slice(n)}),r.length>0?r:[{type:"text",content:e}]}function GB(e,t){return new Ii(e).map(t).value}var ll="commit-id-",ul="share-asset-",Lg="mavis-session-deliverable:",mO=".mavis/canvas-assets";function ZB(e){if(!e.startsWith(Lg))return null;try{return decodeURIComponent(e.slice(Lg.length)).trim()||null}catch{return null}}function eF(e,t){let r=e.trim().replace(/[^A-Za-z0-9_-]/gu,"-").slice(0,256)||"asset",n=t.trim().replace(/[<>:"/\\|?*\u0000-\u001F]/gu,"-").replace(/[. ]+$/gu,"").slice(-120)||"asset";return`${mO}/${r}-${n}`}function Ni(e){return e?.trim().startsWith(ll)===!0}function Dt(e){let t=e.trim();return t.startsWith(ll)?t.slice(ll.length):t}function Di(e){return e?.trim().startsWith(ul)===!0}function gO(e){let t=e.trim();return t.startsWith(ul)?t.slice(ul.length):t}function tF(e){if(e.shareAssetId||Di(e.path))return null;let t=e.driveNodeId?.trim();if(t)return Di(t)?null:Dt(t);let r=e.nodeId?.trim();if(r)return Dt(r);let n=e.artifactId?.trim();return Ni(n)?Dt(n):Ni(e.path)?Dt(e.path):null}function yO(e){return/^https?:\/\//u.test(e.trim())}function bO(e){return e.trim().startsWith("blob:")}var Cg=/<(deliver-assets|deliver_assets)\b[^>]*>([\s\S]*?)<\/\1>/g,Ig=/<\/?deliver[-_]assets\b[^>]*>/g,wO=/<item>([\s\S]*?)<\/item>/g,SO=/<item>[\s\S]*?<\/item>/g,Ng=/<media\s+([^>]*?)\/>/g,EO=/<media\s+[^>]*?\/>/g,Og=/(\w+)="([^"]*)"/g,_O=/<\/?publish[_-]artifact\b[^>]*>/gi,xO=/<preview_card\b[^>]*>([\s\S]*?)<\/preview_card>/gi,TO=/^\s*preview_cards?:\s*$/gim;function Xr(e){return e.replace(/&/gu,"&amp;").replace(/</gu,"&lt;").replace(/>/gu,"&gt;").replace(/"/gu,"&quot;")}function Pi(e){return e.replace(/&quot;/gu,'"').replace(/&apos;|&#39;/gu,"'").replace(/&lt;/gu,"<").replace(/&gt;/gu,">").replace(/&amp;/gu,"&")}function AO(e,t){let r=/\b(?:data-path|path)\s*=\s*(?:"([^"]*)"|'([^']*)')/iu.exec(e);return Pi(r?.[1]??r?.[2]??t.trim())}function cl(e){return Yr(e,/<media\b[\s\S]*?\/>/giu,t=>t.replace(/\bsrc\s*=\s*"<filepath\b([^>]*)>([\s\S]*?)<\/filepath>"/giu,(r,n,i)=>{let o=AO(n,i).trim();return o?`src="${Xr(o)}"`:String(r)}))}function kO(e){let t=e.trim();return t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("~")||t.includes("/")||/\.[A-Za-z0-9]{1,12}(?:[?#].*)?$/u.test(t)}function Dg(e,t){let r=e.trim();return Di(r)?!1:Ni(r)?!0:t&&!!r&&!yO(r)&&!bO(r)&&!ja(r)&&!kO(r)}function RO(e){return["<deliver-assets>","<item>",e.artifactId?`<artifact_id>${Xr(e.artifactId)}</artifact_id>`:`<path>${Xr(e.path)}</path>`,e.name?`<name>${Xr(e.name)}</name>`:"",e.type?`<type>${Xr(e.type)}</type>`:"","</item>","</deliver-assets>"].filter(Boolean).join(`
51
- `)}function al(e,t){return new RegExp(`^${t}\\s*:\\s*(.+)$`,"iu").exec(e.trim())?.[1]?.trim()||null}function vO(e){let t=e.split(/\r?\n/u).map(s=>s.trim()).filter(s=>s.length>0);if(t.length===0)return null;let r=t.map(s=>al(s,"path")).find(Boolean)??t[0],n=t.map(s=>al(s,"name")).find(Boolean)??(t[1]&&!t[1].includes(":")?t[1]:void 0),i=t.map(s=>al(s,"type")).find(Boolean)??(t[2]&&!t[2].includes(":")?t[2]:void 0),o=r?.trim();return!o||/\s/u.test(o)?null:{path:o,name:n?.trim()||void 0,type:i?.trim()||void 0}}function LO(e){let t=Yr(e,_O,"");return t=Yr(t,xO,(r,n)=>{if(typeof n!="string")return r;let i=n.trim();if(i.includes("<deliver-assets>")||i.includes("<deliver_assets>")||/<media\s+/u.test(i))return i;let o=vO(i);return o?RO(o):i}),t=Yr(t,TO,""),t.trim()}function CO(e){return/<\/?publish[_-]artifact\b/iu.test(e)||/<preview_card\b/iu.test(e)||/^\s*preview_cards?:\s*$/imu.test(e)}function IO(e){let t=Oi(e);if(t.length===0)return e;let r=e.split("");for(let n of t)for(let i=n.start;i<n.end&&i<r.length;i+=1)r[i]=" ";return r.join("")}function Mi(e,t){let n=new RegExp(`<${t}>([\\s\\S]*?)<\\/${t}>`,"iu").exec(e)?.[1]?.trim();if(n)return Pi(n);let o=new RegExp(`<${t}>([\\s\\S]*?)(?=<\\/?(?:path|artifact_id|name|type|item|deliver-assets|deliver_assets)\\b|$)`,"iu").exec(e)?.[1]?.trim();return o?Pi(o):null}function OO(e,t){let r=[],n,i=new RegExp(`${wO.source}|${Ng.source}`,"g");for(i.lastIndex=0;(n=i.exec(e))!==null;){let o=n[1],s=n[2];if(typeof s=="string"){let a=Pg(s,t);a&&r.push(a);continue}if(typeof o=="string"){let a=Mi(o,"artifact_id")?.trim(),l=Mi(o,"path")?.trim();if(!l&&!a)continue;let u=a&&Ni(a)?Dt(a):null;if(!l&&a&&!u)continue;let c=!a&&l&&Dg(l,t)?Dt(l):null,d=u??c??void 0;r.push(qg({path:l??(u?a??"":""),...a?{artifactId:a}:{},...d?{driveNodeId:d}:{},name:Mi(o,"name")??void 0,type:Mi(o,"type")??void 0}))}}return r}function MO(e){return e.replace(SO,"").replace(EO,"").trim()}function Pg(e,t){let r={};Og.lastIndex=0;let n;for(;(n=Og.exec(e))!==null;){let[,l,u]=n;l&&u&&(r[l]=Pi(u))}let i=r.src?.trim()||r.path?.trim();if(!i)return null;let o=Di(i)?gO(i):void 0,s=r.status?.trim().toLowerCase(),a=s==="deleted"||r.deleted?.trim().toLowerCase()==="true";return qg({path:i,...o?{shareAssetId:o}:{},...s==="deleted"?{status:"deleted"}:{},...Dg(i,t)?{driveNodeId:Dt(i)}:{},name:r.name?.trim()||r.caption?.trim()||void 0,type:r.type?.trim()||void 0,nodeId:r.node_id?.trim()||void 0,coverPath:r.cover?.trim()||void 0,...a?{deleted:!0}:{}})}function qg(e){let t=ja(e.path);return t?.mimeType.startsWith("image/")?{...e,name:e.name??`image.${NO(t.mimeType)}`,type:e.type??"image",mimeType:e.mimeType??t.mimeType}:e}function NO(e){let t=e.slice(6).toLowerCase();return t==="jpeg"?"jpg":t==="svg+xml"?"svg":t==="x-icon"||t==="vnd.microsoft.icon"?"ico":/^[a-z0-9]+$/u.test(t)?t:"img"}function DO(e){return e.length>0&&e.every(t=>!t.deleted&&wi(t))?{type:"image-gallery",items:e}:{type:"deliver-assets",items:e}}function Mg(e){let t=[],r=[],n=null,i=()=>{r.length>0&&t.push(DO(r)),r=[],n=null};for(let o of e){let s=!o.deleted&&wi(o)?"image":"asset";n&&n!==s&&i(),n=s,r.push(o)}return i(),t}function rF(e,t={}){let r=t.cloudDrivePathDetection??!1,n=cl(e),i=CO(n)?LO(n):n,o=IO(i),s=(()=>{Ig.lastIndex=0;let T;for(;(T=Ig.exec(o))!==null;)if(T[0].trim())return!0;return!1})(),a=!s&&/<media\s+/.test(o);if(!s&&!a)return[{type:"text",content:i}];let l=[],u=s?new RegExp(Cg.source,"g"):new RegExp(`${Cg.source}|${Ng.source}`,"g"),c=T=>{T&&l.push({type:"text",content:T})},d=0,h,f=!1;for(u.lastIndex=0;(h=u.exec(o))!==null;){f=!0;let T=i.slice(d,h.index).trim();c(T);let R=h[2],S=h[3];if(typeof R=="string"){let C=OO(R,r),O=MO(R);C.length===0?c(O):(O&&l.push({type:"text",content:O}),l.push({type:"deliver-assets",items:C}))}else if(typeof S=="string"){let C=Pg(S,r);C&&l.push({type:"asset-item",item:C})}d=h.index+h[0].length}if(!f)return[{type:"text",content:i}];let p=i.slice(d).trim();c(p);let m=[],w=[],y=new Set,x=T=>T.filter(R=>{let S=R.artifactId?.trim()||R.path.trim();return!S||y.has(S)?!1:(y.add(S),!0)}),E=()=>{w.length!==0&&(m.push(...Mg(w)),w=[])};for(let T of l){if(T.type==="asset-item"){w.push(...x([T.item]));continue}if(E(),T.type==="deliver-assets"){let S=x(T.items);S.length>0&&m.push(...Mg(S));continue}let R=m.at(-1);R?.type==="text"?R.content=`${R.content}
48
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,n.push(s)}return n.join("")}function nl(e){let n={constructs:rg([rl,...(e||{}).extensions||[]]),content:i(lg),defined:[],document:i(cg),flow:i(pg),lazy:{},string:i(gg),text:i(yg)};return n;function i(o){return s;function s(a){return Sg(n,o,a)}}}function il(e){for(;!ki(e););return e}var Eg=/[\0\t\n\r]/g;function ol(){let e=1,t="",r=!0,n;return i;function i(o,s,a){let l=[],u,c,d,h,f;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),d=0,t="",r&&(o.charCodeAt(0)===65279&&d++,r=void 0);d<o.length;){if(Eg.lastIndex=d,u=Eg.exec(o),h=u&&u.index!==void 0?u.index:o.length,f=o.charCodeAt(h),!u){t=o.slice(d);break}if(f===10&&d===h&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),d<h&&(l.push(o.slice(d,h)),e+=h-d),f){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}d=h+1}return a&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}var iO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _g(e){return e.replace(iO,oO)}function oO(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let i=r.charCodeAt(1),o=i===120||i===88;return Si(r.slice(o?2:1),o?16:10)}return ar(r)||e}function ur(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?xg(e.position):"start"in e||"end"in e?xg(e):"line"in e||"column"in e?sl(e):""}function sl(e){return Tg(e&&e.line)+":"+Tg(e&&e.column)}function xg(e){return sl(e&&e.start)+"-"+sl(e&&e.end)}function Tg(e){return e&&typeof e=="number"?e:1}var kg={}.hasOwnProperty;function al(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),sO(r)(il(nl(r).document().write(ol()(e,t,!0))))}function sO(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(gl),autolinkProtocol:v,autolinkEmail:v,atxHeading:o(hl),blockQuote:o($e),characterEscape:v,characterReference:v,codeFenced:o(dt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(dt,s),codeText:o(Pt,s),codeTextData:v,data:v,codeFlowValue:v,definition:o(ji),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(zg),hardBreakEscape:o(pl),hardBreakTrailing:o(pl),htmlFlow:o(ml,s),htmlFlowData:v,htmlText:o(ml,s),htmlTextData:v,image:o(Vg),label:s,link:o(gl),listItem:o(Hg),listItemValue:h,listOrdered:o(yl,d),listUnordered:o(yl),paragraph:o(Gg),reference:b,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(hl),strong:o(Kg),thematicBreak:o(Xg)},exit:{atxHeading:l(),atxHeadingSequence:R,autolink:l(),autolinkEmail:cr,autolinkProtocol:ae,blockQuote:l(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:ft,characterReferenceMarkerNumeric:ft,characterReferenceValue:Fi,characterReference:Jr,codeFenced:l(w),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:p,codeFlowValue:N,codeIndented:l(y),codeText:l(P),codeTextData:N,data:N,definition:l(),definitionDestinationString:T,definitionLabelString:x,definitionTitleString:E,emphasis:l(),hardBreakEscape:l(D),hardBreakTrailing:l(D),htmlFlow:l(_),htmlFlowData:N,htmlText:l(q),htmlTextData:N,image:l(ne),label:be,labelText:ye,lineEnding:W,link:l(X),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:we,resourceDestinationString:g,resourceTitleString:_e,resource:je,setextHeading:l(O),setextHeadingLineSequence:C,setextHeadingText:S,strong:l(),thematicBreak:l()}};Rg(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(A){let I={type:"root",children:[]},j={stack:[I],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:r},K=[],J=-1;for(;++J<A.length;)if(A[J][1].type==="listOrdered"||A[J][1].type==="listUnordered")if(A[J][0]==="enter")K.push(J);else{let ke=K.pop();J=i(A,ke,J)}for(J=-1;++J<A.length;){let ke=t[A[J][0]];kg.call(ke,A[J][1].type)&&ke[A[J][1].type].call(Object.assign({sliceSerialize:A[J][2].sliceSerialize},j),A[J][1])}if(j.tokenStack.length>0){let ke=j.tokenStack[j.tokenStack.length-1];(ke[1]||Ag).call(j,void 0,ke[0])}for(I.position={start:ct(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:ct(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},J=-1;++J<t.transforms.length;)I=t.transforms[J](I)||I;return I}function i(A,I,j){let K=I-1,J=-1,ke=!1,ht,Ue,fr,dr;for(;++K<=j;){let Se=A[K];switch(Se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Se[0]==="enter"?J++:J--,dr=void 0;break}case"lineEndingBlank":{Se[0]==="enter"&&(ht&&!dr&&!J&&!fr&&(fr=K),dr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dr=void 0}if(!J&&Se[0]==="enter"&&Se[1].type==="listItemPrefix"||J===-1&&Se[0]==="exit"&&(Se[1].type==="listUnordered"||Se[1].type==="listOrdered")){if(ht){let qt=K;for(Ue=void 0;qt--;){let We=A[qt];if(We[1].type==="lineEnding"||We[1].type==="lineEndingBlank"){if(We[0]==="exit")continue;Ue&&(A[Ue][1].type="lineEndingBlank",ke=!0),We[1].type="lineEnding",Ue=qt}else if(!(We[1].type==="linePrefix"||We[1].type==="blockQuotePrefix"||We[1].type==="blockQuotePrefixWhitespace"||We[1].type==="blockQuoteMarker"||We[1].type==="listItemIndent"))break}fr&&(!Ue||fr<Ue)&&(ht._spread=!0),ht.end=Object.assign({},Ue?A[Ue][1].start:Se[1].end),A.splice(Ue||K,0,["exit",ht,Se[2]]),K++,j++}if(Se[1].type==="listItemPrefix"){let qt={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start),end:void 0};ht=qt,A.splice(K,0,["enter",qt,Se[2]]),K++,j++,fr=void 0,dr=!0}}}return A[I][1]._spread=ke,j}function o(A,I){return j;function j(K){a.call(this,A(K),K),I&&I.call(this,K)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(A,I,j){this.stack[this.stack.length-1].children.push(A),this.stack.push(A),this.tokenStack.push([I,j||void 0]),A.position={start:ct(I.start),end:void 0}}function l(A){return I;function I(j){A&&A.call(this,j),u.call(this,j)}}function u(A,I){let j=this.stack.pop(),K=this.tokenStack.pop();if(K)K[0].type!==A.type&&(I?I.call(this,A,K[0]):(K[1]||Ag).call(this,A,K[0]));else throw new Error("Cannot close `"+A.type+"` ("+ur({start:A.start,end:A.end})+"): it\u2019s not open");j.position.end=ct(A.end)}function c(){return Ua(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(A){if(this.data.expectingFirstListItemValue){let I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(A),10),this.data.expectingFirstListItemValue=void 0}}function f(){let A=this.resume(),I=this.stack[this.stack.length-1];I.lang=A}function p(){let A=this.resume(),I=this.stack[this.stack.length-1];I.meta=A}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){let A=this.resume(),I=this.stack[this.stack.length-1];I.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let A=this.resume(),I=this.stack[this.stack.length-1];I.value=A.replace(/(\r?\n|\r)$/g,"")}function x(A){let I=this.resume(),j=this.stack[this.stack.length-1];j.label=I,j.identifier=Je(this.sliceSerialize(A)).toLowerCase()}function E(){let A=this.resume(),I=this.stack[this.stack.length-1];I.title=A}function T(){let A=this.resume(),I=this.stack[this.stack.length-1];I.url=A}function R(A){let I=this.stack[this.stack.length-1];if(!I.depth){let j=this.sliceSerialize(A).length;I.depth=j}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(A){let I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(A).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function v(A){let j=this.stack[this.stack.length-1].children,K=j[j.length-1];(!K||K.type!=="text")&&(K=Yg(),K.position={start:ct(A.start),end:void 0},j.push(K)),this.stack.push(K)}function N(A){let I=this.stack.pop();I.value+=this.sliceSerialize(A),I.position.end=ct(A.end)}function W(A){let I=this.stack[this.stack.length-1];if(this.data.atHardBreak){let j=I.children[I.children.length-1];j.position.end=ct(A.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(v.call(this,A),N.call(this,A))}function D(){this.data.atHardBreak=!0}function _(){let A=this.resume(),I=this.stack[this.stack.length-1];I.value=A}function q(){let A=this.resume(),I=this.stack[this.stack.length-1];I.value=A}function P(){let A=this.resume(),I=this.stack[this.stack.length-1];I.value=A}function X(){let A=this.stack[this.stack.length-1];if(this.data.inReference){let I=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=I,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function ne(){let A=this.stack[this.stack.length-1];if(this.data.inReference){let I=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=I,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function ye(A){let I=this.sliceSerialize(A),j=this.stack[this.stack.length-2];j.label=_g(I),j.identifier=Je(I).toLowerCase()}function be(){let A=this.stack[this.stack.length-1],I=this.resume(),j=this.stack[this.stack.length-1];if(this.data.inReference=!0,j.type==="link"){let K=A.children;j.children=K}else j.alt=I}function g(){let A=this.resume(),I=this.stack[this.stack.length-1];I.url=A}function _e(){let A=this.resume(),I=this.stack[this.stack.length-1];I.title=A}function je(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function we(A){let I=this.resume(),j=this.stack[this.stack.length-1];j.label=I,j.identifier=Je(this.sliceSerialize(A)).toLowerCase(),this.data.referenceType="full"}function ft(A){this.data.characterReferenceType=A.type}function Fi(A){let I=this.sliceSerialize(A),j=this.data.characterReferenceType,K;j?(K=Si(I,j==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):K=ar(I);let J=this.stack[this.stack.length-1];J.value+=K}function Jr(A){let I=this.stack.pop();I.position.end=ct(A.end)}function ae(A){N.call(this,A);let I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(A)}function cr(A){N.call(this,A);let I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(A)}function $e(){return{type:"blockquote",children:[]}}function dt(){return{type:"code",lang:null,meta:null,value:""}}function Pt(){return{type:"inlineCode",value:""}}function ji(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function zg(){return{type:"emphasis",children:[]}}function hl(){return{type:"heading",depth:0,children:[]}}function pl(){return{type:"break"}}function ml(){return{type:"html",value:""}}function Vg(){return{type:"image",title:null,url:"",alt:null}}function gl(){return{type:"link",title:null,url:"",children:[]}}function yl(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function Hg(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function Gg(){return{type:"paragraph",children:[]}}function Kg(){return{type:"strong",children:[]}}function Yg(){return{type:"text",value:""}}function Xg(){return{type:"thematicBreak"}}}function ct(e){return{line:e.line,column:e.column,offset:e.offset}}function Rg(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?Rg(e,n):aO(e,n)}}function aO(e,t){let r;for(r in t)if(kg.call(t,r))switch(r){case"canContainEols":{let n=t[r];n&&e[r].push(...n);break}case"transforms":{let n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{let n=t[r];n&&Object.assign(e[r],n);break}}}function Ag(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ur({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ur({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ur({start:t.start,end:t.end})+") is still open")}function lO(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function uO(e){return e.includes("`")||e.includes("~~~")||e.includes(" ")||e.includes(" ")}function cO(e,t,r){return typeof r=="function"?e.replace(t,(n,...i)=>r(n,...i)):e.replace(t,r)}function vg(e){if(e.length<=1)return e;let t=e.filter(n=>n.end>n.start).sort((n,i)=>n.start-i.start||n.end-i.end),r=[];for(let n of t){let i=r[r.length-1];if(!i||n.start>i.end){r.push({...n});continue}i.end=Math.max(i.end,n.end)}return r}function fO(e){let t=[],r=0;for(;r<e.length;){let n=e.indexOf(`
49
+ `,r),i=n===-1?e.length:n,o=n===-1?e.length:n+1,s=e.slice(r,i),a=/^( {0,3})(`{3,}|~{3,})/.exec(s);if(!a){r=o;continue}let l=a[2]??"",u=l[0]??"";if(!l||!u){r=o;continue}let c=l.length,d=new RegExp(`^ {0,3}${lO(u)}{${c},}\\s*$`),h=o,f=e.length;for(;h<e.length;){let p=e.indexOf(`
50
+ `,h),m=p===-1?e.length:p,w=p===-1?e.length:p+1,y=e.slice(h,m);if(d.test(y)){f=w;break}h=w}t.push({start:r,end:f}),r=f}return t}function dO(e){if(!/`{3}|~{3}| {4}|\t/.test(e))return[];let t=[],r=[...al(e).children];for(let n of r){let i=n.position?.start.offset,o=n.position?.end.offset;if(i!==void 0&&o!==void 0){if(n.type==="code")t.push({start:i,end:o});else if(n.type==="html")for(let s of fO(e.slice(i,o)))t.push({start:i+s.start,end:i+s.end})}if("children"in n)for(let s of n.children)r.push(s)}return vg(t)}function hO(e,t){let r=[],n=0,i=(o,s)=>{let a=o;for(;a<s;){if(e[a]!=="`"){a+=1;continue}let l=a,u=a+1;for(;u<s&&e[u]==="`";)u+=1;let c=e.slice(l,u),d=e.indexOf(c,u);if(d===-1||d>=s){a=u;continue}r.push({start:l,end:d+c.length}),a=d+c.length}};for(let o of t)n<o.start&&i(n,o.start),n=Math.max(n,o.end);return n<e.length&&i(n,e.length),r}function Oi(e){if(!uO(e))return[];let t=dO(e),r=hO(e,t);return vg([...t,...r])}function pO(e,t){return t.some(r=>e>=r.start&&e<r.end)}function mO(e){let t=e.at(-1),r=t!==null&&typeof t=="object"?e.at(-3):e.at(-2);return typeof r=="number"?r:null}var Ii=class{text;ranges;constructor(t){this.text=t}get value(){return this.text}protectedRanges(){return this.ranges??=Oi(this.text),this.ranges}update(t){return t!==this.text&&(this.text=t,this.ranges=void 0),this}map(t){let r=Lg(this.text,this.protectedRanges()).map(n=>n.type==="protected"?n.content:t(n.content)).join("");return this.update(r)}replace(t,r){t.lastIndex=0;let n=t.test(this.text);if(t.lastIndex=0,!n)return this;let i=this.protectedRanges();if(i.length===0)return this.update(cO(this.text,t,r));let o=this.text.replace(t,(s,...a)=>{let l=mO(a);return l!==null&&pO(l,i)?s:typeof r=="function"?r(s,...a):r});return this.update(o)}};function Yr(e,t,r){return new Ii(e).replace(t,r).value}function KB(e){return Lg(e,Oi(e))}function Lg(e,t){if(t.length===0)return[{type:"text",content:e}];let r=[],n=0;for(let i of t)n<i.start&&r.push({type:"text",content:e.slice(n,i.start)}),r.push({type:"protected",content:e.slice(i.start,i.end)}),n=i.end;return n<e.length&&r.push({type:"text",content:e.slice(n)}),r.length>0?r:[{type:"text",content:e}]}function YB(e,t){return new Ii(e).map(t).value}var ul="commit-id-",cl="share-asset-",Cg="mavis-session-deliverable:",gO=".mavis/canvas-assets";function tF(e){if(!e.startsWith(Cg))return null;try{return decodeURIComponent(e.slice(Cg.length)).trim()||null}catch{return null}}function rF(e,t){let r=e.trim().replace(/[^A-Za-z0-9_-]/gu,"-").slice(0,256)||"asset",n=t.trim().replace(/[<>:"/\\|?*\u0000-\u001F]/gu,"-").replace(/[. ]+$/gu,"").slice(-120)||"asset";return`${gO}/${r}-${n}`}function Ni(e){return e?.trim().startsWith(ul)===!0}function Dt(e){let t=e.trim();return t.startsWith(ul)?t.slice(ul.length):t}function Di(e){return e?.trim().startsWith(cl)===!0}function yO(e){let t=e.trim();return t.startsWith(cl)?t.slice(cl.length):t}function nF(e){if(e.shareAssetId||Di(e.path))return null;let t=e.driveNodeId?.trim();if(t)return Di(t)?null:Dt(t);let r=e.nodeId?.trim();if(r)return Dt(r);let n=e.artifactId?.trim();return Ni(n)?Dt(n):Ni(e.path)?Dt(e.path):null}function bO(e){return/^https?:\/\//u.test(e.trim())}function wO(e){return e.trim().startsWith("blob:")}var Ig=/<(deliver-assets|deliver_assets)\b[^>]*>([\s\S]*?)<\/\1>/g,Og=/<\/?deliver[-_]assets\b[^>]*>/g,SO=/<item>([\s\S]*?)<\/item>/g,EO=/<item>[\s\S]*?<\/item>/g,Dg=/<media\s+([^>]*?)\/>/g,_O=/<media\s+[^>]*?\/>/g,Mg=/(\w+)="([^"]*)"/g,xO=/<\/?publish[_-]artifact\b[^>]*>/gi,TO=/<preview_card\b[^>]*>([\s\S]*?)<\/preview_card>/gi,AO=/^\s*preview_cards?:\s*$/gim;function Xr(e){return e.replace(/&/gu,"&amp;").replace(/</gu,"&lt;").replace(/>/gu,"&gt;").replace(/"/gu,"&quot;")}function Pi(e){return e.replace(/&quot;/gu,'"').replace(/&apos;|&#39;/gu,"'").replace(/&lt;/gu,"<").replace(/&gt;/gu,">").replace(/&amp;/gu,"&")}function kO(e,t){let r=/\b(?:data-path|path)\s*=\s*(?:"([^"]*)"|'([^']*)')/iu.exec(e);return Pi(r?.[1]??r?.[2]??t.trim())}function fl(e){return Yr(e,/<media\b[\s\S]*?\/>/giu,t=>t.replace(/\bsrc\s*=\s*"<filepath\b([^>]*)>([\s\S]*?)<\/filepath>"/giu,(r,n,i)=>{let o=kO(n,i).trim();return o?`src="${Xr(o)}"`:String(r)}))}function RO(e){let t=e.trim();return t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("~")||t.includes("/")||/\.[A-Za-z0-9]{1,12}(?:[?#].*)?$/u.test(t)}function Pg(e,t){let r=e.trim();return Di(r)?!1:Ni(r)?!0:t&&!!r&&!bO(r)&&!wO(r)&&!$a(r)&&!RO(r)}function vO(e){return["<deliver-assets>","<item>",e.artifactId?`<artifact_id>${Xr(e.artifactId)}</artifact_id>`:`<path>${Xr(e.path)}</path>`,e.name?`<name>${Xr(e.name)}</name>`:"",e.type?`<type>${Xr(e.type)}</type>`:"","</item>","</deliver-assets>"].filter(Boolean).join(`
51
+ `)}function ll(e,t){return new RegExp(`^${t}\\s*:\\s*(.+)$`,"iu").exec(e.trim())?.[1]?.trim()||null}function LO(e){let t=e.split(/\r?\n/u).map(s=>s.trim()).filter(s=>s.length>0);if(t.length===0)return null;let r=t.map(s=>ll(s,"path")).find(Boolean)??t[0],n=t.map(s=>ll(s,"name")).find(Boolean)??(t[1]&&!t[1].includes(":")?t[1]:void 0),i=t.map(s=>ll(s,"type")).find(Boolean)??(t[2]&&!t[2].includes(":")?t[2]:void 0),o=r?.trim();return!o||/\s/u.test(o)?null:{path:o,name:n?.trim()||void 0,type:i?.trim()||void 0}}function CO(e){let t=Yr(e,xO,"");return t=Yr(t,TO,(r,n)=>{if(typeof n!="string")return r;let i=n.trim();if(i.includes("<deliver-assets>")||i.includes("<deliver_assets>")||/<media\s+/u.test(i))return i;let o=LO(i);return o?vO(o):i}),t=Yr(t,AO,""),t.trim()}function IO(e){return/<\/?publish[_-]artifact\b/iu.test(e)||/<preview_card\b/iu.test(e)||/^\s*preview_cards?:\s*$/imu.test(e)}function OO(e){let t=Oi(e);if(t.length===0)return e;let r=e.split("");for(let n of t)for(let i=n.start;i<n.end&&i<r.length;i+=1)r[i]=" ";return r.join("")}function Mi(e,t){let n=new RegExp(`<${t}>([\\s\\S]*?)<\\/${t}>`,"iu").exec(e)?.[1]?.trim();if(n)return Pi(n);let o=new RegExp(`<${t}>([\\s\\S]*?)(?=<\\/?(?:path|artifact_id|name|type|item|deliver-assets|deliver_assets)\\b|$)`,"iu").exec(e)?.[1]?.trim();return o?Pi(o):null}function MO(e,t){let r=[],n,i=new RegExp(`${SO.source}|${Dg.source}`,"g");for(i.lastIndex=0;(n=i.exec(e))!==null;){let o=n[1],s=n[2];if(typeof s=="string"){let a=qg(s,t);a&&r.push(a);continue}if(typeof o=="string"){let a=Mi(o,"artifact_id")?.trim(),l=Mi(o,"path")?.trim();if(!l&&!a)continue;let u=a&&Ni(a)?Dt(a):null;if(!l&&a&&!u)continue;let c=!a&&l&&Pg(l,t)?Dt(l):null,d=u??c??void 0;r.push(Bg({path:l??(u?a??"":""),...a?{artifactId:a}:{},...d?{driveNodeId:d}:{},name:Mi(o,"name")??void 0,type:Mi(o,"type")??void 0}))}}return r}function NO(e){return e.replace(EO,"").replace(_O,"").trim()}function qg(e,t){let r={};Mg.lastIndex=0;let n;for(;(n=Mg.exec(e))!==null;){let[,l,u]=n;l&&u&&(r[l]=Pi(u))}let i=r.src?.trim()||r.path?.trim();if(!i)return null;let o=Di(i)?yO(i):void 0,s=r.status?.trim().toLowerCase(),a=s==="deleted"||r.deleted?.trim().toLowerCase()==="true";return Bg({path:i,...o?{shareAssetId:o}:{},...s==="deleted"?{status:"deleted"}:{},...Pg(i,t)?{driveNodeId:Dt(i)}:{},name:r.name?.trim()||r.caption?.trim()||void 0,type:r.type?.trim()||void 0,nodeId:r.node_id?.trim()||void 0,coverPath:r.cover?.trim()||void 0,...a?{deleted:!0}:{}})}function Bg(e){let t=$a(e.path);return t?.mimeType.startsWith("image/")?{...e,name:e.name??`image.${DO(t.mimeType)}`,type:e.type??"image",mimeType:e.mimeType??t.mimeType}:e}function DO(e){let t=e.slice(6).toLowerCase();return t==="jpeg"?"jpg":t==="svg+xml"?"svg":t==="x-icon"||t==="vnd.microsoft.icon"?"ico":/^[a-z0-9]+$/u.test(t)?t:"img"}function PO(e){return e.length>0&&e.every(t=>!t.deleted&&wi(t))?{type:"image-gallery",items:e}:{type:"deliver-assets",items:e}}function Ng(e){let t=[],r=[],n=null,i=()=>{r.length>0&&t.push(PO(r)),r=[],n=null};for(let o of e){let s=!o.deleted&&wi(o)?"image":"asset";n&&n!==s&&i(),n=s,r.push(o)}return i(),t}function iF(e,t={}){let r=t.cloudDrivePathDetection??!1,n=fl(e),i=IO(n)?CO(n):n,o=OO(i),s=(()=>{Og.lastIndex=0;let T;for(;(T=Og.exec(o))!==null;)if(T[0].trim())return!0;return!1})(),a=!s&&/<media\s+/.test(o);if(!s&&!a)return[{type:"text",content:i}];let l=[],u=s?new RegExp(Ig.source,"g"):new RegExp(`${Ig.source}|${Dg.source}`,"g"),c=T=>{T&&l.push({type:"text",content:T})},d=0,h,f=!1;for(u.lastIndex=0;(h=u.exec(o))!==null;){f=!0;let T=i.slice(d,h.index).trim();c(T);let R=h[2],S=h[3];if(typeof R=="string"){let C=MO(R,r),O=NO(R);C.length===0?c(O):(O&&l.push({type:"text",content:O}),l.push({type:"deliver-assets",items:C}))}else if(typeof S=="string"){let C=qg(S,r);C&&l.push({type:"asset-item",item:C})}d=h.index+h[0].length}if(!f)return[{type:"text",content:i}];let p=i.slice(d).trim();c(p);let m=[],w=[],y=new Set,x=T=>T.filter(R=>{let S=R.artifactId?.trim()||R.path.trim();return!S||y.has(S)?!1:(y.add(S),!0)}),E=()=>{w.length!==0&&(m.push(...Ng(w)),w=[])};for(let T of l){if(T.type==="asset-item"){w.push(...x([T.item]));continue}if(E(),T.type==="deliver-assets"){let S=x(T.items);S.length>0&&m.push(...Ng(S));continue}let R=m.at(-1);R?.type==="text"?R.content=`${R.content}
52
52
 
53
- ${T.content}`.trim():m.push(T)}return E(),m.length>0?m:[]}var PO=/<(deliver-assets|deliver_assets)\b[^>]*>([\s\S]*?)<\/\1>/g,qO=/<item>([\s\S]*?)<\/item>/g,Fg=/<media\s+([^>]*?)\/>/g,Bg=/(\w+)="([^"]*)"/g;function fl(e){return e.replace(/&quot;/gu,'"').replace(/&apos;|&#39;/gu,"'").replace(/&lt;/gu,"<").replace(/&gt;/gu,">").replace(/&amp;/gu,"&")}function BO(e){let r=(e.split("?")[0]?.split("#")[0]??"").split(/[\\/]/u);return r[r.length-1]?.trim()||void 0}function qi(e,t){let n=new RegExp(`<${t}>([\\s\\S]*?)<\\/${t}>`,"iu").exec(e)?.[1]?.trim();if(n)return fl(n);let o=new RegExp(`<${t}>([\\s\\S]*?)(?=<\\/?(?:path|artifact_id|name|type|item|deliver-assets|deliver_assets)\\b|$)`,"iu").exec(e)?.[1]?.trim();return o?fl(o):null}function jg(e){let t=e.name?.trim(),r=e.caption?.trim(),n=t||r||BO(e.path),i=t?"explicit":r?"caption":n?"path":void 0,o=Ba({path:e.path,name:n,type:e.type}),s=Fa({type:e.type,mimeType:o,name:n,path:e.path});return{path:e.path,kind:s,...e.type?{type:e.type}:{},...n?{name:n}:{},...i?{nameSource:i}:{},...o?{mimeType:o}:{},...e.caption?{caption:e.caption}:{},...e.artifactId?{artifactId:e.artifactId}:{}}}function $g(e){let t={};Bg.lastIndex=0;let r;for(;(r=Bg.exec(e))!==null;){let[,i,o]=r;i&&o!==void 0&&(t[i]=fl(o))}let n=t.src?.trim();return n?jg({path:n,type:t.type?.trim()||void 0,name:t.name?.trim()||void 0,caption:t.caption?.trim()||void 0}):null}function FO(e){let t=qi(e,"artifact_id"),r=qi(e,"path");return!r&&!t?null:jg({path:r??t??"",type:qi(e,"type")??void 0,name:qi(e,"name")??void 0,...t?{artifactId:t}:{}})}function jO(e){let t=[],r=new RegExp(`${qO.source}|${Fg.source}`,"g");r.lastIndex=0;let n;for(;(n=r.exec(e))!==null;){let i=n[1],o=n[2];if(typeof o=="string"){let s=$g(o);s&&t.push(s)}else if(typeof i=="string"){let s=FO(i);s&&t.push(s)}}return t}function $O(e){return e.replace(/[^\S\r\n]*\r?\n(?:[^\S\r\n]*\r?\n){2,}/gu,`
53
+ ${T.content}`.trim():m.push(T)}return E(),m.length>0?m:[]}var qO=/<(deliver-assets|deliver_assets)\b[^>]*>([\s\S]*?)<\/\1>/g,BO=/<item>([\s\S]*?)<\/item>/g,jg=/<media\s+([^>]*?)\/>/g,Fg=/(\w+)="([^"]*)"/g;function dl(e){return e.replace(/&quot;/gu,'"').replace(/&apos;|&#39;/gu,"'").replace(/&lt;/gu,"<").replace(/&gt;/gu,">").replace(/&amp;/gu,"&")}function FO(e){let r=(e.split("?")[0]?.split("#")[0]??"").split(/[\\/]/u);return r[r.length-1]?.trim()||void 0}function qi(e,t){let n=new RegExp(`<${t}>([\\s\\S]*?)<\\/${t}>`,"iu").exec(e)?.[1]?.trim();if(n)return dl(n);let o=new RegExp(`<${t}>([\\s\\S]*?)(?=<\\/?(?:path|artifact_id|name|type|item|deliver-assets|deliver_assets)\\b|$)`,"iu").exec(e)?.[1]?.trim();return o?dl(o):null}function $g(e){let t=e.name?.trim(),r=e.caption?.trim(),n=t||r||FO(e.path),i=t?"explicit":r?"caption":n?"path":void 0,o=Fa({path:e.path,name:n,type:e.type}),s=ja({type:e.type,mimeType:o,name:n,path:e.path});return{path:e.path,kind:s,...e.type?{type:e.type}:{},...n?{name:n}:{},...i?{nameSource:i}:{},...o?{mimeType:o}:{},...e.caption?{caption:e.caption}:{},...e.artifactId?{artifactId:e.artifactId}:{}}}function Ug(e){let t={};Fg.lastIndex=0;let r;for(;(r=Fg.exec(e))!==null;){let[,i,o]=r;i&&o!==void 0&&(t[i]=dl(o))}let n=t.src?.trim();return n?$g({path:n,type:t.type?.trim()||void 0,name:t.name?.trim()||void 0,caption:t.caption?.trim()||void 0}):null}function jO(e){let t=qi(e,"artifact_id"),r=qi(e,"path");return!r&&!t?null:$g({path:r??t??"",type:qi(e,"type")??void 0,name:qi(e,"name")??void 0,...t?{artifactId:t}:{}})}function $O(e){let t=[],r=new RegExp(`${BO.source}|${jg.source}`,"g");r.lastIndex=0;let n;for(;(n=r.exec(e))!==null;){let i=n[1],o=n[2];if(typeof o=="string"){let s=Ug(o);s&&t.push(s)}else if(typeof i=="string"){let s=jO(i);s&&t.push(s)}}return t}function UO(e){return e.replace(/[^\S\r\n]*\r?\n(?:[^\S\r\n]*\r?\n){2,}/gu,`
54
54
 
55
- `).replace(/[^\S\r\n]+$/gmu,"").trim()}function UO(e){if(!e)return{text:e,media:[]};let t=cl(e),r=[],n=new RegExp(`${PO.source}|${Fg.source}`,"g");n.lastIndex=0;let i,o=0,s="",a=!1;for(;(i=n.exec(t))!==null;){a=!0,s+=t.slice(o,i.index),o=i.index+i[0].length;let l=i[2],u=i[3];if(typeof l=="string")r.push(...jO(l));else if(typeof u=="string"){let c=$g(u);c&&r.push(c)}}return a?(s+=t.slice(o),{text:$O(s),media:r}):{text:t,media:[]}}function Ug(e,t){let r=new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s>]+))`,"iu"),n=e.match(r);if(n)return n[1]??n[2]??n[3]}function WO(e){if(!e)return;let r=(e.split("?")[0]?.split("#")[0]??"").split(/[\\/]/u),n=r[r.length-1]?.trim();if(n)return n}function zO(e){let t=Ug(e,"caption")?.trim();if(t)return`[\u5A92\u4F53: ${t}]`;let r=WO(Ug(e,"src"))?.trim();return r?`[\u5A92\u4F53: ${r}]`:"[\u5A92\u4F53]"}function VO(e){let t=/<(?:media|asset)\b[^>]*\/?>/giu,r=e.match(t);return r?r.length:0}var HO=/<media(?:\s+[^>]*?)?\s*\/?>/giu,GO=/<deliver-assets(?:\s+[^>]*)?>[\s\S]*?<\/deliver-assets>/giu;function KO(e){if(!e)return e;let t=e;return t=t.replace(GO,r=>{let n=r.replace(/^<deliver-assets(?:\s+[^>]*)?>/iu,"").replace(/<\/deliver-assets>\s*$/iu,""),i=VO(n);return i>0?`[${i} \u4E2A\u4EA4\u4ED8\u8D44\u4EA7]`:"[\u4EA4\u4ED8\u8D44\u4EA7]"}),t=t.replace(HO,r=>zO(r)),t}function lF(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;let t=e;return t.kind==="questionnaire-response"&&typeof t.requestId=="string"&&t.requestId.length>0&&t.mode==="questionnaire"&&t.purpose==="ordinary"&&Object.keys(t).length===4}var YO="Others...";function XO(e,t,r){if(!JO(e))return t?{...t}:void 0;let n={...t};for(let i of Object.keys(n))(i.toLowerCase()==="x-opencode-session"||i.toLowerCase()==="user-agent")&&delete n[i];return n["x-opencode-session"]=r||crypto.randomUUID(),n["user-agent"]="MiniMaxCode",n}function JO(e){if(!e)return!1;try{let t=new URL(e);return t.protocol==="https:"&&t.hostname==="opencode.ai"&&(t.pathname==="/zen/go"||t.pathname.startsWith("/zen/go/"))}catch{return!1}}export{cy as a,fy as b,Zg as c,hy as d,ky as e,Ry as f,Cy as g,Oy as h,Fy as i,jy as j,zi as k,Vy as l,Hy as m,ny as n,sy as o,ay as p,ly as q,uy as r,eM as s,Vi as t,Qy as u,Da as v,Bm as w,Fm as x,Wm as y,dI as z,Vm as A,gI as B,yI as C,Gm as D,SI as E,EI as F,_I as G,Ur as H,Xm as I,TI as J,Ba as K,Fa as L,II as M,HB as N,GB as O,ZB as P,eF as Q,Ni as R,tF as S,yO as T,bO as U,IO as V,rF as W,UO as X,KO as Y,lF as Z,YO as _,XO as $};
55
+ `).replace(/[^\S\r\n]+$/gmu,"").trim()}function WO(e){if(!e)return{text:e,media:[]};let t=fl(e),r=[],n=new RegExp(`${qO.source}|${jg.source}`,"g");n.lastIndex=0;let i,o=0,s="",a=!1;for(;(i=n.exec(t))!==null;){a=!0,s+=t.slice(o,i.index),o=i.index+i[0].length;let l=i[2],u=i[3];if(typeof l=="string")r.push(...$O(l));else if(typeof u=="string"){let c=Ug(u);c&&r.push(c)}}return a?(s+=t.slice(o),{text:UO(s),media:r}):{text:t,media:[]}}function Wg(e,t){let r=new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s>]+))`,"iu"),n=e.match(r);if(n)return n[1]??n[2]??n[3]}function zO(e){if(!e)return;let r=(e.split("?")[0]?.split("#")[0]??"").split(/[\\/]/u),n=r[r.length-1]?.trim();if(n)return n}function VO(e){let t=Wg(e,"caption")?.trim();if(t)return`[\u5A92\u4F53: ${t}]`;let r=zO(Wg(e,"src"))?.trim();return r?`[\u5A92\u4F53: ${r}]`:"[\u5A92\u4F53]"}function HO(e){let t=/<(?:media|asset)\b[^>]*\/?>/giu,r=e.match(t);return r?r.length:0}var GO=/<media(?:\s+[^>]*?)?\s*\/?>/giu,KO=/<deliver-assets(?:\s+[^>]*)?>[\s\S]*?<\/deliver-assets>/giu;function YO(e){if(!e)return e;let t=e;return t=t.replace(KO,r=>{let n=r.replace(/^<deliver-assets(?:\s+[^>]*)?>/iu,"").replace(/<\/deliver-assets>\s*$/iu,""),i=HO(n);return i>0?`[${i} \u4E2A\u4EA4\u4ED8\u8D44\u4EA7]`:"[\u4EA4\u4ED8\u8D44\u4EA7]"}),t=t.replace(GO,r=>VO(r)),t}function cF(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;let t=e;return t.kind==="questionnaire-response"&&typeof t.requestId=="string"&&t.requestId.length>0&&t.mode==="questionnaire"&&t.purpose==="ordinary"&&Object.keys(t).length===4}var XO="Others...";var Bi="MiniMaxCode";function JO(e){let t={...e};return Object.keys(t).some(r=>r.toLowerCase()==="user-agent")||(t["User-Agent"]=Bi),t}function QO(e,t,r){if(!ZO(e))return t?{...t}:void 0;let n={...t};for(let i of Object.keys(n))(i.toLowerCase()==="x-opencode-session"||i.toLowerCase()==="user-agent")&&delete n[i];return n["x-opencode-session"]=r||crypto.randomUUID(),n["user-agent"]=Bi,n}function ZO(e){if(!e)return!1;try{let t=new URL(e);return t.protocol==="https:"&&t.hostname==="opencode.ai"&&(t.pathname==="/zen/go"||t.pathname.startsWith("/zen/go/"))}catch{return!1}}export{fy as a,dy as b,ey as c,py as d,Ry as e,vy as f,Iy as g,My as h,jy as i,$y as j,Vi as k,Hy as l,Gy as m,iy as n,ay as o,ly as p,uy as q,cy as r,rM as s,Hi as t,Zy as u,Pa as v,Fm as w,jm as x,zm as y,hI as z,Hm as A,yI as B,bI as C,Km as D,EI as E,_I as F,xI as G,Ur as H,Jm as I,AI as J,Fa as K,ja as L,OI as M,KB as N,YB as O,tF as P,rF as Q,Ni as R,nF as S,bO as T,wO as U,OO as V,iF as W,WO as X,YO as Y,cF as Z,XO as _,JO as $,QO as aa};